@dfinity/nns 0.4.2-nightly-2022-06-02 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/esm/{chunk-KUIJF2IJ.js → chunk-BCUFAIRO.js} +2 -2
- package/dist/esm/{chunk-KUIJF2IJ.js.map → chunk-BCUFAIRO.js.map} +0 -0
- package/dist/esm/{chunk-E6UFXMWU.js → chunk-BVNLDI2R.js} +2 -2
- package/dist/esm/{chunk-E6UFXMWU.js.map → chunk-BVNLDI2R.js.map} +1 -1
- package/dist/esm/{chunk-WKPCKMOO.js → chunk-FZYDRSYR.js} +2 -2
- package/dist/esm/{chunk-WKPCKMOO.js.map → chunk-FZYDRSYR.js.map} +0 -0
- package/dist/esm/{chunk-HPCMNLTU.js → chunk-PTMKC5FF.js} +2 -2
- package/dist/esm/{chunk-HPCMNLTU.js.map → chunk-PTMKC5FF.js.map} +0 -0
- package/dist/esm/{chunk-DRE7O6A5.js → chunk-Z667VRMY.js} +2 -2
- package/dist/esm/{chunk-DRE7O6A5.js.map → chunk-Z667VRMY.js.map} +0 -0
- package/dist/esm/genesis_token.js +1 -1
- package/dist/esm/governance.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ledger.js +1 -1
- package/package.json +5 -5
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -11,7 +11,7 @@ var al=Object.create;var on=Object.defineProperty;var gl=Object.getOwnPropertyDe
|
|
|
11
11
|
<span dir=rtl>`+t+"</span>"};goog.i18n.bidi.enforceRtlInText=function(t){return goog.i18n.bidi.Format.RLE+t+goog.i18n.bidi.Format.PDF};goog.i18n.bidi.enforceLtrInHtml=function(t){return t.charAt(0)=="<"?t.replace(/<\w+/,"$& dir=ltr"):`
|
|
12
12
|
<span dir=ltr>`+t+"</span>"};goog.i18n.bidi.enforceLtrInText=function(t){return goog.i18n.bidi.Format.LRE+t+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(t){return t.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(t){return t.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1\u05F4").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1\u05F3")};goog.i18n.bidi.wordSeparatorRe_=/\s+/;goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/;goog.i18n.bidi.rtlDetectionThreshold_=.4;goog.i18n.bidi.estimateDirection=function(t,o){var r=0,n=0,i=!1;for(t=goog.i18n.bidi.stripHtmlIfNeeded_(t,o).split(goog.i18n.bidi.wordSeparatorRe_),o=0;o<t.length;o++){var s=t[o];goog.i18n.bidi.startsWithRtl(s)?(r++,n++):goog.i18n.bidi.isRequiredLtrRe_.test(s)?i=!0:goog.i18n.bidi.hasAnyLtr(s)?n++:goog.i18n.bidi.hasNumeralsRe_.test(s)&&(i=!0)}return n==0?i?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:r/n>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR};goog.i18n.bidi.detectRtlDirectionality=function(t,o){return goog.i18n.bidi.estimateDirection(t,o)==goog.i18n.bidi.Dir.RTL};goog.i18n.bidi.setElementDirAndAlign=function(t,o){t&&(o=goog.i18n.bidi.toDir(o))&&(t.style.textAlign=o==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,t.dir=o==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")};goog.i18n.bidi.setElementDirByTextDirectionality=function(t,o){switch(goog.i18n.bidi.estimateDirection(o)){case goog.i18n.bidi.Dir.LTR:t.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:t.dir="rtl";break;default:t.removeAttribute("dir")}};goog.i18n.bidi.DirectionalString=function(){};goog.html.TrustedResourceUrl=function(){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_="",this.trustedURL_=null,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(t,o){var r=goog.html.TrustedResourceUrl.unwrap(this);r=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(r);var n=r[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(r[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",r[2]||"",t)+goog.html.TrustedResourceUrl.stringifyParams_("#",n,o))};goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"});goog.html.TrustedResourceUrl.unwrap=function(t){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t).toString()};goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(t){return t instanceof goog.html.TrustedResourceUrl&&t.constructor===goog.html.TrustedResourceUrl&&t.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+t+"' of type "+goog.typeOf(t)),"type_error:TrustedResourceUrl")};goog.html.TrustedResourceUrl.unwrapTrustedURL=function(t){return t.trustedURL_?t.trustedURL_:goog.html.TrustedResourceUrl.unwrap(t)};goog.html.TrustedResourceUrl.format=function(t,o){var r=goog.string.Const.unwrap(t);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(r))throw Error("Invalid TrustedResourceUrl format: "+r);return t=r.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,function(n,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw Error('Found marker, "'+i+'", in format string, "'+r+'", but no valid label mapping found in args: '+JSON.stringify(o));return n=o[i],n instanceof goog.string.Const?goog.string.Const.unwrap(n):encodeURIComponent(String(n))}),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)};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(t,o,r,n){return goog.html.TrustedResourceUrl.format(t,o).cloneWithParams(r,n)};goog.html.TrustedResourceUrl.fromConstant=function(t){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(t))};goog.html.TrustedResourceUrl.fromConstants=function(t){for(var o="",r=0;r<t.length;r++)o+=goog.string.Const.unwrap(t[r]);return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(o)};goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(t){var o=new goog.html.TrustedResourceUrl;return o.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScriptURL(t):t,goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY&&(o.trustedURL_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createURL(t)),o};goog.html.TrustedResourceUrl.stringifyParams_=function(t,o,r){if(r==null)return o;if(goog.isString(r))return r?t+encodeURIComponent(r):"";for(var n in r){var i=r[n];i=goog.isArray(i)?i:[i];for(var s=0;s<i.length;s++){var p=i[s];p!=null&&(o||(o=t),o+=(o.length>t.length?"&":"")+encodeURIComponent(n)+"="+encodeURIComponent(String(p)))}}return o};goog.string.internal={};goog.string.internal.startsWith=function(t,o){return t.lastIndexOf(o,0)==0};goog.string.internal.endsWith=function(t,o){var r=t.length-o.length;return 0<=r&&t.indexOf(o,r)==r};goog.string.internal.caseInsensitiveStartsWith=function(t,o){return goog.string.internal.caseInsensitiveCompare(o,t.substr(0,o.length))==0};goog.string.internal.caseInsensitiveEndsWith=function(t,o){return goog.string.internal.caseInsensitiveCompare(o,t.substr(t.length-o.length,o.length))==0};goog.string.internal.caseInsensitiveEquals=function(t,o){return t.toLowerCase()==o.toLowerCase()};goog.string.internal.isEmptyOrWhitespace=function(t){return/^[\s\xa0]*$/.test(t)};goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};goog.string.internal.caseInsensitiveCompare=function(t,o){return t=String(t).toLowerCase(),o=String(o).toLowerCase(),t<o?-1:t==o?0:1};goog.string.internal.newLineToBr=function(t,o){return t.replace(/(\r\n|\r|\n)/g,o?"<br />":"<br>")};goog.string.internal.htmlEscape=function(t,o){if(o)t=t.replace(goog.string.internal.AMP_RE_,"&").replace(goog.string.internal.LT_RE_,"<").replace(goog.string.internal.GT_RE_,">").replace(goog.string.internal.QUOT_RE_,""").replace(goog.string.internal.SINGLE_QUOTE_RE_,"'").replace(goog.string.internal.NULL_RE_,"�");else{if(!goog.string.internal.ALL_RE_.test(t))return t;t.indexOf("&")!=-1&&(t=t.replace(goog.string.internal.AMP_RE_,"&")),t.indexOf("<")!=-1&&(t=t.replace(goog.string.internal.LT_RE_,"<")),t.indexOf(">")!=-1&&(t=t.replace(goog.string.internal.GT_RE_,">")),t.indexOf('"')!=-1&&(t=t.replace(goog.string.internal.QUOT_RE_,""")),t.indexOf("'")!=-1&&(t=t.replace(goog.string.internal.SINGLE_QUOTE_RE_,"'")),t.indexOf("\0")!=-1&&(t=t.replace(goog.string.internal.NULL_RE_,"�"))}return t};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(t,o){return goog.string.internal.newLineToBr(t.replace(/ /g,"  "),o)};goog.string.internal.contains=function(t,o){return t.indexOf(o)!=-1};goog.string.internal.caseInsensitiveContains=function(t,o){return goog.string.internal.contains(t.toLowerCase(),o.toLowerCase())};goog.string.internal.compareVersions=function(t,o){var r=0;t=goog.string.internal.trim(String(t)).split("."),o=goog.string.internal.trim(String(o)).split(".");for(var n=Math.max(t.length,o.length),i=0;r==0&&i<n;i++){var s=t[i]||"",p=o[i]||"";do{if(s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],p=/(\d*)(\D*)(.*)/.exec(p)||["","","",""],s[0].length==0&&p[0].length==0)break;r=s[1].length==0?0:parseInt(s[1],10);var A=p[1].length==0?0:parseInt(p[1],10);r=goog.string.internal.compareElements_(r,A)||goog.string.internal.compareElements_(s[2].length==0,p[2].length==0)||goog.string.internal.compareElements_(s[2],p[2]),s=s[3],p=p[3]}while(r==0)}return r};goog.string.internal.compareElements_=function(t,o){return t<o?-1:t>o?1:0};goog.html.SafeUrl=function(){this.privateDoNotAccessOrElseSafeUrlWrappedValue_="",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(t){return goog.html.SafeUrl.unwrapTrustedURL(t).toString()};goog.html.SafeUrl.unwrapTrustedURL=function(t){return t instanceof goog.html.SafeUrl&&t.constructor===goog.html.SafeUrl&&t.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+t+"' of type "+goog.typeOf(t)),"type_error:SafeUrl")};goog.html.SafeUrl.fromConstant=function(t){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(t))};goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))(?:;\w+=(?:\w+|"[\w;=]+"))*$/i;goog.html.SafeUrl.isSafeMimeType=function(t){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(t)};goog.html.SafeUrl.fromBlob=function(t){return t=goog.html.SAFE_MIME_TYPE_PATTERN_.test(t.type)?goog.fs.url.createObjectUrl(t):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.DATA_URL_PATTERN_=/^data:([^,]*);base64,[a-z0-9+\/]+=*$/i;goog.html.SafeUrl.fromDataUrl=function(t){t=t.replace(/(%0A|%0D)/g,"");var o=t.match(goog.html.DATA_URL_PATTERN_);return o=o&&goog.html.SAFE_MIME_TYPE_PATTERN_.test(o[1]),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o?t:goog.html.SafeUrl.INNOCUOUS_STRING)};goog.html.SafeUrl.fromTelUrl=function(t){return goog.string.internal.caseInsensitiveStartsWith(t,"tel:")||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i;goog.html.SafeUrl.fromSipUrl=function(t){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(t))||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeUrl.fromFacebookMessengerUrl=function(t){return goog.string.internal.caseInsensitiveStartsWith(t,"fb-messenger://share")||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeUrl.fromWhatsAppUrl=function(t){return goog.string.internal.caseInsensitiveStartsWith(t,"whatsapp://send")||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeUrl.fromSmsUrl=function(t){return goog.string.internal.caseInsensitiveStartsWith(t,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(t)||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeUrl.isSmsUrlBodyValid_=function(t){var o=t.indexOf("#");if(0<o&&(t=t.substring(0,o)),o=t.match(/[?&]body=/gi),!o)return!0;if(1<o.length)return!1;if(t=t.match(/[?&]body=([^&]*)/)[1],!t)return!0;try{decodeURIComponent(t)}catch{return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(t)};goog.html.SafeUrl.fromSshUrl=function(t){return goog.string.internal.caseInsensitiveStartsWith(t,"ssh://")||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeUrl.sanitizeChromeExtensionUrl=function(t,o){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//,t,o)};goog.html.SafeUrl.sanitizeFirefoxExtensionUrl=function(t,o){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//,t,o)};goog.html.SafeUrl.sanitizeEdgeExtensionUrl=function(t,o){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//,t,o)};goog.html.SafeUrl.sanitizeExtensionUrl_=function(t,o,r){return(t=t.exec(o))?(t=t[1],(r instanceof goog.string.Const?[goog.string.Const.unwrap(r)]:r.map(function(n){return goog.string.Const.unwrap(n)})).indexOf(t)==-1&&(o=goog.html.SafeUrl.INNOCUOUS_STRING)):o=goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)};goog.html.SafeUrl.fromTrustedResourceUrl=function(t){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(t))};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(t){return t instanceof goog.html.SafeUrl?t:(t=typeof t=="object"&&t.implementsGoogStringTypedString?t.getTypedStringValue():String(t),goog.html.SAFE_URL_PATTERN_.test(t)||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t))};goog.html.SafeUrl.sanitizeAssertUnchanged=function(t,o){return t instanceof goog.html.SafeUrl?t:(t=typeof t=="object"&&t.implementsGoogStringTypedString?t.getTypedStringValue():String(t),o&&/^data:/i.test(t)&&(o=goog.html.SafeUrl.fromDataUrl(t),o.getTypedStringValue()==t)?o:(goog.asserts.assert(goog.html.SAFE_URL_PATTERN_.test(t),"%s does not match the safe URL pattern",t)||(t=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)))};goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(t){var o=new goog.html.SafeUrl;return o.privateDoNotAccessOrElseSafeUrlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createURL(t):t,o};goog.html.SafeUrl.ABOUT_BLANK=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank");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(t){return t=goog.string.Const.unwrap(t),t.length===0?goog.html.SafeStyle.EMPTY:(goog.asserts.assert(goog.string.internal.endsWith(t,";"),"Last character of style string is not ';': "+t),goog.asserts.assert(goog.string.internal.contains(t,":"),`Style string must contain at least one ':', to specify a "name: value" pair: `+t),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t))};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(t){return t instanceof goog.html.SafeStyle&&t.constructor===goog.html.SafeStyle&&t.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseSafeStyleWrappedValue_:(goog.asserts.fail("expected object of type SafeStyle, got '"+t+"' of type "+goog.typeOf(t)),"type_error:SafeStyle")};goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(t){return new goog.html.SafeStyle().initSecurityPrivateDoNotAccessOrElse_(t)};goog.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_=function(t){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_=t,this};goog.html.SafeStyle.EMPTY=goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse("");goog.html.SafeStyle.INNOCUOUS_STRING="zClosurez";goog.html.SafeStyle.create=function(t){var o="",r;for(r in t){if(!/^[-_a-zA-Z0-9]+$/.test(r))throw Error("Name allows only [-_a-zA-Z0-9], got: "+r);var n=t[r];n!=null&&(n=goog.isArray(n)?goog.array.map(n,goog.html.SafeStyle.sanitizePropertyValue_).join(" "):goog.html.SafeStyle.sanitizePropertyValue_(n),o+=r+":"+n+";")}return o?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(o):goog.html.SafeStyle.EMPTY};goog.html.SafeStyle.sanitizePropertyValue_=function(t){if(t instanceof goog.html.SafeUrl)return'url("'+goog.html.SafeUrl.unwrap(t).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(t=t instanceof goog.string.Const?goog.string.Const.unwrap(t):goog.html.SafeStyle.sanitizePropertyValueString_(String(t)),/[{;}]/.test(t))throw new goog.asserts.AssertionError("Value does not allow [{;}], got: %s.",[t]);return t};goog.html.SafeStyle.sanitizePropertyValueString_=function(t){var o=t.replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.URL_RE_,"url");if(goog.html.SafeStyle.VALUE_RE_.test(o)){if(goog.html.SafeStyle.COMMENT_RE_.test(t))return goog.asserts.fail("String value disallows comments, got: "+t),goog.html.SafeStyle.INNOCUOUS_STRING;if(!goog.html.SafeStyle.hasBalancedQuotes_(t))return goog.asserts.fail("String value requires balanced quotes, got: "+t),goog.html.SafeStyle.INNOCUOUS_STRING;if(!goog.html.SafeStyle.hasBalancedSquareBrackets_(t))return goog.asserts.fail("String value requires balanced square brackets and one identifier per pair of brackets, got: "+t),goog.html.SafeStyle.INNOCUOUS_STRING}else return goog.asserts.fail("String value allows only "+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+" and simple functions, got: "+t),goog.html.SafeStyle.INNOCUOUS_STRING;return goog.html.SafeStyle.sanitizeUrl_(t)};goog.html.SafeStyle.hasBalancedQuotes_=function(t){for(var o=!0,r=!0,n=0;n<t.length;n++){var i=t.charAt(n);i=="'"&&r?o=!o:i=='"'&&o&&(r=!r)}return o&&r};goog.html.SafeStyle.hasBalancedSquareBrackets_=function(t){for(var o=!0,r=/^[-_a-zA-Z0-9]$/,n=0;n<t.length;n++){var i=t.charAt(n);if(i=="]"){if(o)return!1;o=!0}else if(i=="["){if(!o)return!1;o=!1}else if(!o&&!r.test(i))return!1}return o};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.FUNCTIONS_RE_=/\b(hsl|hsla|rgb|rgba|matrix|calc|minmax|fit-content|repeat|(rotate|scale|translate)(X|Y|Z|3d)?)\([-+*/0-9a-z.%\[\], ]+\)/g;goog.html.SafeStyle.COMMENT_RE_=/\/\*/;goog.html.SafeStyle.sanitizeUrl_=function(t){return t.replace(goog.html.SafeStyle.URL_RE_,function(o,r,n,i){var s="";return n=n.replace(/^(['"])(.*)\1$/,function(p,A,y){return s=A,y}),o=goog.html.SafeUrl.sanitize(n).getTypedStringValue(),r+s+o+s+i})};goog.html.SafeStyle.concat=function(t){var o="",r=function(n){goog.isArray(n)?goog.array.forEach(n,r):o+=goog.html.SafeStyle.unwrap(n)};return goog.array.forEach(arguments,r),o?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(o):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(t,o){if(goog.string.internal.contains(t,"<"))throw Error("Selector does not allow '<', got: "+t);var r=t.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: "+t);if(!goog.html.SafeStyleSheet.hasBalancedBrackets_(r))throw Error("() and [] in selector must be balanced, got: "+t);return o instanceof goog.html.SafeStyle||(o=goog.html.SafeStyle.create(o)),t=t+"{"+goog.html.SafeStyle.unwrap(o).replace(/</g,"\\3C ")+"}",goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)};goog.html.SafeStyleSheet.hasBalancedBrackets_=function(t){for(var o={"(":")","[":"]"},r=[],n=0;n<t.length;n++){var i=t[n];if(o[i])r.push(o[i]);else if(goog.object.contains(o,i)&&r.pop()!=i)return!1}return r.length==0};goog.html.SafeStyleSheet.concat=function(t){var o="",r=function(n){goog.isArray(n)?goog.array.forEach(n,r):o+=goog.html.SafeStyleSheet.unwrap(n)};return goog.array.forEach(arguments,r),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(o)};goog.html.SafeStyleSheet.fromConstant=function(t){return t=goog.string.Const.unwrap(t),t.length===0?goog.html.SafeStyleSheet.EMPTY:(goog.asserts.assert(!goog.string.internal.contains(t,"<"),"Forbidden '<' character in style sheet string: "+t),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t))};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(t){return t instanceof goog.html.SafeStyleSheet&&t.constructor===goog.html.SafeStyleSheet&&t.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(goog.asserts.fail("expected object of type SafeStyleSheet, got '"+t+"' of type "+goog.typeOf(t)),"type_error:SafeStyleSheet")};goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(t){return new goog.html.SafeStyleSheet().initSecurityPrivateDoNotAccessOrElse_(t)};goog.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_=function(t){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=t,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 t=goog.labs.userAgent.util.getNavigator_();return t&&(t=t.userAgent)?t:""};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(t){goog.labs.userAgent.util.userAgent_=t||goog.labs.userAgent.util.getNativeUserAgentString_()};goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_};goog.labs.userAgent.util.matchUserAgent=function(t){var o=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.contains(o,t)};goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(t){var o=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.caseInsensitiveContains(o,t)};goog.labs.userAgent.util.extractVersionTuples=function(t){for(var o=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,r=[],n;n=o.exec(t);)r.push([n[1],n[2],n[3]||void 0]);return r};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 t(i){return i=goog.array.find(i,n),r[i]||""}var o=goog.labs.userAgent.util.getUserAgent();if(goog.labs.userAgent.browser.isIE())return goog.labs.userAgent.browser.getIEVersion_(o);o=goog.labs.userAgent.util.extractVersionTuples(o);var r={};goog.array.forEach(o,function(i){r[i[0]]=i[1]});var n=goog.partial(goog.object.containsKey,r);return goog.labs.userAgent.browser.isOpera()?t(["Version","Opera"]):goog.labs.userAgent.browser.isEdge()?t(["Edge"]):goog.labs.userAgent.browser.isEdgeChromium()?t(["Edg"]):goog.labs.userAgent.browser.isChrome()?t(["Chrome","CriOS"]):(o=o[2])&&o[1]||""};goog.labs.userAgent.browser.isVersionOrHigher=function(t){return 0<=goog.string.internal.compareVersions(goog.labs.userAgent.browser.getVersion(),t)};goog.labs.userAgent.browser.getIEVersion_=function(t){var o=/rv: *([\d\.]*)/.exec(t);if(o&&o[1])return o[1];o="";var r=/MSIE +([\d\.]+)/.exec(t);if(r&&r[1])if(t=/Trident\/(\d.\d)/.exec(t),r[1]=="7.0")if(t&&t[1])switch(t[1]){case"4.0":o="8.0";break;case"5.0":o="9.0";break;case"6.0":o="10.0";break;case"7.0":o="11.0"}else o="7.0";else o=r[1];return o};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.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(t){return goog.html.SafeHtml.unwrapTrustedHTML(t).toString()};goog.html.SafeHtml.unwrapTrustedHTML=function(t){return t instanceof goog.html.SafeHtml&&t.constructor===goog.html.SafeHtml&&t.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?t.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeHtml, got '"+t+"' of type "+goog.typeOf(t)),"type_error:SafeHtml")};goog.html.SafeHtml.htmlEscape=function(t){if(t instanceof goog.html.SafeHtml)return t;var o=typeof t=="object",r=null;return o&&t.implementsGoogI18nBidiDirectionalString&&(r=t.getDirection()),t=o&&t.implementsGoogStringTypedString?t.getTypedStringValue():String(t),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(t),r)};goog.html.SafeHtml.htmlEscapePreservingNewlines=function(t){return t instanceof goog.html.SafeHtml?t:(t=goog.html.SafeHtml.htmlEscape(t),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(goog.html.SafeHtml.unwrap(t)),t.getDirection()))};goog.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(t){return t instanceof goog.html.SafeHtml?t:(t=goog.html.SafeHtml.htmlEscape(t),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(goog.html.SafeHtml.unwrap(t)),t.getDirection()))};goog.html.SafeHtml.from=goog.html.SafeHtml.htmlEscape;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(t,o,r){return goog.html.SafeHtml.verifyTagName(String(t)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(t),o,r)};goog.html.SafeHtml.verifyTagName=function(t){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(t))throw Error("Invalid tag name <"+t+">.");if(t.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error("Tag name <"+t+"> is not allowed for SafeHtml.")};goog.html.SafeHtml.createIframe=function(t,o,r,n){t&&goog.html.TrustedResourceUrl.unwrap(t);var i={};return i.src=t||null,i.srcdoc=o&&goog.html.SafeHtml.unwrap(o),t=goog.html.SafeHtml.combineAttributes(i,{sandbox:""},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",t,n)};goog.html.SafeHtml.createSandboxIframe=function(t,o,r,n){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error("The browser does not support sandboxed iframes.");var i={};return i.src=t?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(t)):null,i.srcdoc=o||null,i.sandbox="",t=goog.html.SafeHtml.combineAttributes(i,{},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",t,n)};goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype};goog.html.SafeHtml.createScriptSrc=function(t,o){return goog.html.TrustedResourceUrl.unwrap(t),t=goog.html.SafeHtml.combineAttributes({src:t},{},o),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",t)};goog.html.SafeHtml.createScript=function(t,o){for(var r in o){var n=r.toLowerCase();if(n=="language"||n=="src"||n=="text"||n=="type")throw Error('Cannot set "'+n+'" attribute')}for(r="",t=goog.array.concat(t),n=0;n<t.length;n++)r+=goog.html.SafeScript.unwrap(t[n]);return t=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",o,t)};goog.html.SafeHtml.createStyle=function(t,o){o=goog.html.SafeHtml.combineAttributes({type:"text/css"},{},o);var r="";t=goog.array.concat(t);for(var n=0;n<t.length;n++)r+=goog.html.SafeStyleSheet.unwrap(t[n]);return t=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",o,t)};goog.html.SafeHtml.createMetaRefresh=function(t,o){return t=goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(t)),(goog.labs.userAgent.browser.isIE()||goog.labs.userAgent.browser.isEdge())&&goog.string.internal.contains(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",{"http-equiv":"refresh",content:(o||0)+"; url="+t})};goog.html.SafeHtml.getAttrNameAndValue_=function(t,o,r){if(r instanceof goog.string.Const)r=goog.string.Const.unwrap(r);else if(o.toLowerCase()=="style")r=goog.html.SafeHtml.getStyleValue_(r);else{if(/^on/i.test(o))throw Error('Attribute "'+o+'" requires goog.string.Const value, "'+r+'" given.');if(o.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(goog.isString(r))r=goog.html.SafeUrl.sanitize(r).getTypedStringValue();else throw Error('Attribute "'+o+'" on tag "'+t+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+r+'" given.')}return r.implementsGoogStringTypedString&&(r=r.getTypedStringValue()),goog.asserts.assert(goog.isString(r)||goog.isNumber(r),"String or number value expected, got "+typeof r+" with value: "+r),o+'="'+goog.string.internal.htmlEscape(String(r))+'"'};goog.html.SafeHtml.getStyleValue_=function(t){if(!goog.isObject(t))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof t+" given: "+t);return t instanceof goog.html.SafeStyle||(t=goog.html.SafeStyle.create(t)),goog.html.SafeStyle.unwrap(t)};goog.html.SafeHtml.createWithDir=function(t,o,r,n){return o=goog.html.SafeHtml.create(o,r,n),o.dir_=t,o};goog.html.SafeHtml.join=function(t,o){t=goog.html.SafeHtml.htmlEscape(t);var r=t.getDirection(),n=[],i=function(s){goog.isArray(s)?goog.array.forEach(s,i):(s=goog.html.SafeHtml.htmlEscape(s),n.push(goog.html.SafeHtml.unwrap(s)),s=s.getDirection(),r==goog.i18n.bidi.Dir.NEUTRAL?r=s:s!=goog.i18n.bidi.Dir.NEUTRAL&&r!=s&&(r=null))};return goog.array.forEach(o,i),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(n.join(goog.html.SafeHtml.unwrap(t)),r)};goog.html.SafeHtml.concat=function(t){return goog.html.SafeHtml.join(goog.html.SafeHtml.EMPTY,Array.prototype.slice.call(arguments))};goog.html.SafeHtml.concatWithDir=function(t,o){var r=goog.html.SafeHtml.concat(goog.array.slice(arguments,1));return r.dir_=t,r};goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(t,o){return new goog.html.SafeHtml().initSecurityPrivateDoNotAccessOrElse_(t,o)};goog.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_=function(t,o){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createHTML(t):t,this.dir_=o,this};goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(t,o,r){var n=null,i="<"+t+goog.html.SafeHtml.stringifyAttributes(t,o);return goog.isDefAndNotNull(r)?goog.isArray(r)||(r=[r]):r=[],goog.dom.tags.isVoidTag(t.toLowerCase())?(goog.asserts.assert(!r.length,"Void tag <"+t+"> does not allow content."),i+=">"):(n=goog.html.SafeHtml.concat(r),i+=">"+goog.html.SafeHtml.unwrap(n)+"</"+t+">",n=n.getDirection()),(t=o&&o.dir)&&(n=/^(ltr|rtl|auto)$/i.test(t)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(i,n)};goog.html.SafeHtml.stringifyAttributes=function(t,o){var r="";if(o)for(var n in o){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(n))throw Error('Invalid attribute name "'+n+'".');var i=o[n];goog.isDefAndNotNull(i)&&(r+=" "+goog.html.SafeHtml.getAttrNameAndValue_(t,n,i))}return r};goog.html.SafeHtml.combineAttributes=function(t,o,r){var n={},i;for(i in t)goog.asserts.assert(i.toLowerCase()==i,"Must be lower case"),n[i]=t[i];for(i in o)goog.asserts.assert(i.toLowerCase()==i,"Must be lower case"),n[i]=o[i];for(i in r){var s=i.toLowerCase();if(s in t)throw Error('Cannot override "'+s+'" attribute, got "'+i+'" with value "'+r[i]+'"');s in o&&delete n[s],n[i]=r[i]}return n};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(t,o,r){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(o,r||null)};goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(t,o){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(o)};goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(t,o){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(o)};goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(t,o){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(o)};goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(t,o){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)};goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(t,o){return goog.asserts.assertString(goog.string.Const.unwrap(t),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(t)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(o)};goog.dom.safe={};goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"};goog.dom.safe.insertAdjacentHtml=function(t,o,r){t.insertAdjacentHTML(o,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 t=document.createElement("div"),o=document.createElement("div");return o.appendChild(document.createElement("div")),t.appendChild(o),goog.DEBUG&&!t.firstChild?!1:(o=t.firstChild.firstChild,t.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),!o.parentElement)});goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(t,o){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;t.lastChild;)t.removeChild(t.lastChild);t.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(o)};goog.dom.safe.setInnerHtml=function(t,o){if(goog.asserts.ENABLE_ASSERTS){var r=t.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 "+t.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(t,o)};goog.dom.safe.setOuterHtml=function(t,o){t.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(o)};goog.dom.safe.setFormElementAction=function(t,o){o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),goog.dom.asserts.assertIsHTMLFormElement(t).action=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setButtonFormAction=function(t,o){o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),goog.dom.asserts.assertIsHTMLButtonElement(t).formAction=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setInputFormAction=function(t,o){o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),goog.dom.asserts.assertIsHTMLInputElement(t).formAction=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setStyle=function(t,o){t.style.cssText=goog.html.SafeStyle.unwrap(o)};goog.dom.safe.documentWrite=function(t,o){t.write(goog.html.SafeHtml.unwrapTrustedHTML(o))};goog.dom.safe.setAnchorHref=function(t,o){goog.dom.asserts.assertIsHTMLAnchorElement(t),o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),t.href=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setImageSrc=function(t,o){if(goog.dom.asserts.assertIsHTMLImageElement(t),!(o instanceof goog.html.SafeUrl)){var r=/^data:image\//i.test(o);o=goog.html.SafeUrl.sanitizeAssertUnchanged(o,r)}t.src=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setAudioSrc=function(t,o){if(goog.dom.asserts.assertIsHTMLAudioElement(t),!(o instanceof goog.html.SafeUrl)){var r=/^data:audio\//i.test(o);o=goog.html.SafeUrl.sanitizeAssertUnchanged(o,r)}t.src=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setVideoSrc=function(t,o){if(goog.dom.asserts.assertIsHTMLVideoElement(t),!(o instanceof goog.html.SafeUrl)){var r=/^data:video\//i.test(o);o=goog.html.SafeUrl.sanitizeAssertUnchanged(o,r)}t.src=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.setEmbedSrc=function(t,o){goog.dom.asserts.assertIsHTMLEmbedElement(t),t.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(o)};goog.dom.safe.setFrameSrc=function(t,o){goog.dom.asserts.assertIsHTMLFrameElement(t),t.src=goog.html.TrustedResourceUrl.unwrapTrustedURL(o)};goog.dom.safe.setIframeSrc=function(t,o){goog.dom.asserts.assertIsHTMLIFrameElement(t),t.src=goog.html.TrustedResourceUrl.unwrapTrustedURL(o)};goog.dom.safe.setIframeSrcdoc=function(t,o){goog.dom.asserts.assertIsHTMLIFrameElement(t),t.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(o)};goog.dom.safe.setLinkHrefAndRel=function(t,o,r){goog.dom.asserts.assertIsHTMLLinkElement(t),t.rel=r,goog.string.internal.caseInsensitiveContains(r,"stylesheet")?(goog.asserts.assert(o instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),t.href=goog.html.TrustedResourceUrl.unwrapTrustedURL(o)):t.href=o instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrapTrustedURL(o):o instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrapTrustedURL(o):goog.html.SafeUrl.unwrapTrustedURL(goog.html.SafeUrl.sanitizeAssertUnchanged(o))};goog.dom.safe.setObjectData=function(t,o){goog.dom.asserts.assertIsHTMLObjectElement(t),t.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(o)};goog.dom.safe.setScriptSrc=function(t,o){goog.dom.asserts.assertIsHTMLScriptElement(t),t.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(o),(o=goog.getScriptNonce())&&t.setAttribute("nonce",o)};goog.dom.safe.setScriptContent=function(t,o){goog.dom.asserts.assertIsHTMLScriptElement(t),t.text=goog.html.SafeScript.unwrapTrustedScript(o),(o=goog.getScriptNonce())&&t.setAttribute("nonce",o)};goog.dom.safe.setLocationHref=function(t,o){goog.dom.asserts.assertIsLocation(t),o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),t.href=goog.html.SafeUrl.unwrapTrustedURL(o)};goog.dom.safe.assignLocation=function(t,o){goog.dom.asserts.assertIsLocation(t),o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),t.assign(goog.html.SafeUrl.unwrapTrustedURL(o))};goog.dom.safe.replaceLocation=function(t,o){goog.dom.asserts.assertIsLocation(t),o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),t.replace(goog.html.SafeUrl.unwrapTrustedURL(o))};goog.dom.safe.openInWindow=function(t,o,r,n,i){return t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),(o||goog.global).open(goog.html.SafeUrl.unwrapTrustedURL(t),r?goog.string.Const.unwrap(r):"",n,i)};goog.dom.safe.parseFromStringHtml=function(t,o){return goog.dom.safe.parseFromString(t,o,"text/html")};goog.dom.safe.parseFromString=function(t,o,r){return t.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(o),r)};goog.dom.safe.createImageFromBlob=function(t){if(!/^image\/.*/g.test(t.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var o=goog.global.URL.createObjectURL(t);return t=new goog.global.Image,t.onload=function(){goog.global.URL.revokeObjectURL(o)},goog.dom.safe.setImageSrc(t,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),o)),t};goog.string.DETECT_DOUBLE_ESCAPING=!1;goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1;goog.string.Unicode={NBSP:"\xA0"};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(t,o){for(var r=t.split("%s"),n="",i=Array.prototype.slice.call(arguments,1);i.length&&1<r.length;)n+=r.shift()+i.shift();return n+r.join("%s")};goog.string.collapseWhitespace=function(t){return t.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace;goog.string.isEmptyString=function(t){return t.length==0};goog.string.isEmpty=goog.string.isEmptyOrWhitespace;goog.string.isEmptyOrWhitespaceSafe=function(t){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(t))};goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe;goog.string.isBreakingWhitespace=function(t){return!/[^\t\n\r ]/.test(t)};goog.string.isAlpha=function(t){return!/[^a-zA-Z]/.test(t)};goog.string.isNumeric=function(t){return!/[^0-9]/.test(t)};goog.string.isAlphaNumeric=function(t){return!/[^a-zA-Z0-9]/.test(t)};goog.string.isSpace=function(t){return t==" "};goog.string.isUnicodeChar=function(t){return t.length==1&&" "<=t&&"~">=t||"\x80"<=t&&"\uFFFD">=t};goog.string.stripNewlines=function(t){return t.replace(/(\r\n|\r|\n)+/g," ")};goog.string.canonicalizeNewlines=function(t){return t.replace(/(\r\n|\r|\n)/g,`
|
|
13
13
|
`)};goog.string.normalizeWhitespace=function(t){return t.replace(/\xa0|\s/g," ")};goog.string.normalizeSpaces=function(t){return t.replace(/\xa0|[ \t]+/g," ")};goog.string.collapseBreakingSpaces=function(t){return t.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};goog.string.trim=goog.string.internal.trim;goog.string.trimLeft=function(t){return t.replace(/^[\s\xa0]+/,"")};goog.string.trimRight=function(t){return t.replace(/[\s\xa0]+$/,"")};goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare;goog.string.numberAwareCompare_=function(t,o,r){if(t==o)return 0;if(!t)return-1;if(!o)return 1;for(var n=t.toLowerCase().match(r),i=o.toLowerCase().match(r),s=Math.min(n.length,i.length),p=0;p<s;p++){r=n[p];var A=i[p];if(r!=A)return t=parseInt(r,10),!isNaN(t)&&(o=parseInt(A,10),!isNaN(o)&&t-o)?t-o:r<A?-1:1}return n.length!=i.length?n.length-i.length:t<o?-1:1};goog.string.intAwareCompare=function(t,o){return goog.string.numberAwareCompare_(t,o,/\d+|\D+/g)};goog.string.floatAwareCompare=function(t,o){return goog.string.numberAwareCompare_(t,o,/\d+|\.\d+|\D+/g)};goog.string.numerateCompare=goog.string.floatAwareCompare;goog.string.urlEncode=function(t){return encodeURIComponent(String(t))};goog.string.urlDecode=function(t){return decodeURIComponent(t.replace(/\+/g," "))};goog.string.newLineToBr=goog.string.internal.newLineToBr;goog.string.htmlEscape=function(t,o){return t=goog.string.internal.htmlEscape(t,o),goog.string.DETECT_DOUBLE_ESCAPING&&(t=t.replace(goog.string.E_RE_,"e")),t};goog.string.E_RE_=/e/g;goog.string.unescapeEntities=function(t){return goog.string.contains(t,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(t):goog.string.unescapePureXmlEntities_(t):t};goog.string.unescapeEntitiesWithDocument=function(t,o){return goog.string.contains(t,"&")?goog.string.unescapeEntitiesUsingDom_(t,o):t};goog.string.unescapeEntitiesUsingDom_=function(t,o){var r={"&":"&","<":"<",">":">",""":'"'},n=o?o.createElement("div"):goog.global.document.createElement("div");return t.replace(goog.string.HTML_ENTITY_PATTERN_,function(i,s){var p=r[i];return p||(s.charAt(0)=="#"&&(s=Number("0"+s.substr(1)),isNaN(s)||(p=String.fromCharCode(s))),p||(goog.dom.safe.setInnerHtml(n,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),i+" ")),p=n.firstChild.nodeValue.slice(0,-1)),r[i]=p)})};goog.string.unescapePureXmlEntities_=function(t){return t.replace(/&([^;]+);/g,function(o,r){switch(r){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return r.charAt(0)!="#"||(r=Number("0"+r.substr(1)),isNaN(r))?o:String.fromCharCode(r)}})};goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g;goog.string.whitespaceEscape=function(t,o){return goog.string.newLineToBr(t.replace(/ /g,"  "),o)};goog.string.preserveSpaces=function(t){return t.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)};goog.string.stripQuotes=function(t,o){for(var r=o.length,n=0;n<r;n++){var i=r==1?o:o.charAt(n);if(t.charAt(0)==i&&t.charAt(t.length-1)==i)return t.substring(1,t.length-1)}return t};goog.string.truncate=function(t,o,r){return r&&(t=goog.string.unescapeEntities(t)),t.length>o&&(t=t.substring(0,o-3)+"..."),r&&(t=goog.string.htmlEscape(t)),t};goog.string.truncateMiddle=function(t,o,r,n){if(r&&(t=goog.string.unescapeEntities(t)),n&&t.length>o){n>o&&(n=o);var i=t.length-n;t=t.substring(0,o-n)+"..."+t.substring(i)}else t.length>o&&(n=Math.floor(o/2),i=t.length-n,t=t.substring(0,n+o%2)+"..."+t.substring(i));return r&&(t=goog.string.htmlEscape(t)),t};goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"};goog.string.jsEscapeCache_={"'":"\\'"};goog.string.quote=function(t){t=String(t);for(var o=['"'],r=0;r<t.length;r++){var n=t.charAt(r),i=n.charCodeAt(0);o[r+1]=goog.string.specialEscapeChars_[n]||(31<i&&127>i?n:goog.string.escapeChar(n))}return o.push('"'),o.join("")};goog.string.escapeString=function(t){for(var o=[],r=0;r<t.length;r++)o[r]=goog.string.escapeChar(t.charAt(r));return o.join("")};goog.string.escapeChar=function(t){if(t in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[t];if(t in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[t]=goog.string.specialEscapeChars_[t];var o=t.charCodeAt(0);if(31<o&&127>o)var r=t;else 256>o?(r="\\x",(16>o||256<o)&&(r+="0")):(r="\\u",4096>o&&(r+="0")),r+=o.toString(16).toUpperCase();return goog.string.jsEscapeCache_[t]=r};goog.string.contains=goog.string.internal.contains;goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains;goog.string.countOf=function(t,o){return t&&o?t.split(o).length-1:0};goog.string.removeAt=function(t,o,r){var n=t;return 0<=o&&o<t.length&&0<r&&(n=t.substr(0,o)+t.substr(o+r,t.length-o-r)),n};goog.string.remove=function(t,o){return t.replace(o,"")};goog.string.removeAll=function(t,o){return o=new RegExp(goog.string.regExpEscape(o),"g"),t.replace(o,"")};goog.string.replaceAll=function(t,o,r){return o=new RegExp(goog.string.regExpEscape(o),"g"),t.replace(o,r.replace(/\$/g,"$$$$"))};goog.string.regExpEscape=function(t){return String(t).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};goog.string.repeat=String.prototype.repeat?function(t,o){return t.repeat(o)}:function(t,o){return Array(o+1).join(t)};goog.string.padNumber=function(t,o,r){return t=goog.isDef(r)?t.toFixed(r):String(t),r=t.indexOf("."),r==-1&&(r=t.length),goog.string.repeat("0",Math.max(0,o-r))+t};goog.string.makeSafe=function(t){return t==null?"":String(t)};goog.string.buildString=function(t){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(t){for(var o=0,r=0;r<t.length;++r)o=31*o+t.charCodeAt(r)>>>0;return o};goog.string.uniqueStringCounter_=2147483648*Math.random()|0;goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++};goog.string.toNumber=function(t){var o=Number(t);return o==0&&goog.string.isEmptyOrWhitespace(t)?NaN:o};goog.string.isLowerCamelCase=function(t){return/^[a-z]+([A-Z][a-z]*)*$/.test(t)};goog.string.isUpperCamelCase=function(t){return/^([A-Z][a-z]*)+$/.test(t)};goog.string.toCamelCase=function(t){return String(t).replace(/\-([a-z])/g,function(o,r){return r.toUpperCase()})};goog.string.toSelectorCase=function(t){return String(t).replace(/([A-Z])/g,"-$1").toLowerCase()};goog.string.toTitleCase=function(t,o){return o=goog.isString(o)?goog.string.regExpEscape(o):"\\s",t.replace(new RegExp("(^"+(o?"|["+o+"]+":"")+")([a-z])","g"),function(r,n,i){return n+i.toUpperCase()})};goog.string.capitalize=function(t){return String(t.charAt(0)).toUpperCase()+String(t.substr(1)).toLowerCase()};goog.string.parseInt=function(t){return isFinite(t)&&(t=String(t)),goog.isString(t)?/^\s*-?0x/i.test(t)?parseInt(t,16):parseInt(t,10):NaN};goog.string.splitLimit=function(t,o,r){t=t.split(o);for(var n=[];0<r&&t.length;)n.push(t.shift()),r--;return t.length&&n.push(t.join(o)),n};goog.string.lastComponent=function(t,o){if(o)typeof o=="string"&&(o=[o]);else return t;for(var r=-1,n=0;n<o.length;n++)if(o[n]!=""){var i=t.lastIndexOf(o[n]);i>r&&(r=i)}return r==-1?t:t.slice(r+1)};goog.string.editDistance=function(t,o){var r=[],n=[];if(t==o)return 0;if(!t.length||!o.length)return Math.max(t.length,o.length);for(var i=0;i<o.length+1;i++)r[i]=i;for(i=0;i<t.length;i++){n[0]=i+1;for(var s=0;s<o.length;s++)n[s+1]=Math.min(n[s]+1,r[s+1]+1,r[s]+Number(t[i]!=o[s]));for(s=0;s<r.length;s++)r[s]=n[s]}return n[o.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 t=goog.labs.userAgent.util.getUserAgent();if(t){t=goog.labs.userAgent.util.extractVersionTuples(t);var o=goog.labs.userAgent.engine.getEngineTuple_(t);if(o)return o[0]=="Gecko"?goog.labs.userAgent.engine.getVersionForKey_(t,"Firefox"):o[1];t=t[0];var r;if(t&&(r=t[2])&&(r=/Trident\/([^\s;]+)/.exec(r)))return r[1]}return""};goog.labs.userAgent.engine.getEngineTuple_=function(t){if(!goog.labs.userAgent.engine.isEdge())return t[1];for(var o=0;o<t.length;o++){var r=t[o];if(r[0]=="Edge")return r}};goog.labs.userAgent.engine.isVersionOrHigher=function(t){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),t)};goog.labs.userAgent.engine.getVersionForKey_=function(t,o){return(t=goog.array.find(t,function(r){return o==r[0]}))&&t[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.isGo2Phone=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("GAFP")};goog.labs.userAgent.platform.getVersion=function(){var t=goog.labs.userAgent.util.getUserAgent(),o="";return goog.labs.userAgent.platform.isWindows()?(o=/Windows (?:NT|Phone) ([0-9.]+)/,o=(t=o.exec(t))?t[1]:"0.0"):goog.labs.userAgent.platform.isIos()?(o=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,o=(t=o.exec(t))&&t[1].replace(/_/g,".")):goog.labs.userAgent.platform.isMacintosh()?(o=/Mac OS X ([0-9_.]+)/,o=(t=o.exec(t))?t[1].replace(/_/g,"."):"10"):goog.labs.userAgent.platform.isKaiOS()?(o=/(?:KaiOS)\/(\S+)/i,o=(t=o.exec(t))&&t[1]):goog.labs.userAgent.platform.isAndroid()?(o=/Android\s+([^\);]+)(\)|;)/,o=(t=o.exec(t))&&t[1]):goog.labs.userAgent.platform.isChromeOS()&&(o=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,o=(t=o.exec(t))&&t[1]),o||""};goog.labs.userAgent.platform.isVersionOrHigher=function(t){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),t)};goog.reflect={};goog.reflect.object=function(t,o){return o};goog.reflect.objectProperty=function(t,o){return t};goog.reflect.sinkValue=function(t){return goog.reflect.sinkValue[" "](t),t};goog.reflect.sinkValue[" "]=goog.nullFunction;goog.reflect.canAccessProperty=function(t,o){try{return goog.reflect.sinkValue(t[o]),!0}catch{}return!1};goog.reflect.cache=function(t,o,r,n){return n=n?n(o):o,Object.prototype.hasOwnProperty.call(t,n)?t[n]:t[n]=r(o)};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 t=goog.userAgent.getNavigatorTyped();return t&&t.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.ASSUME_GO2PHONE=!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 t=goog.userAgent.getNavigatorTyped();return!!t&&goog.string.contains(t.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.GO2PHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_GO2PHONE:goog.labs.userAgent.platform.isGo2Phone();goog.userAgent.determineVersion_=function(){var t="",o=goog.userAgent.getVersionRegexResult_();return o&&(t=o?o[1]:""),goog.userAgent.IE&&(o=goog.userAgent.getDocumentMode_(),o!=null&&o>parseFloat(t))?String(o):t};goog.userAgent.getVersionRegexResult_=function(){var t=goog.userAgent.getUserAgentString();if(goog.userAgent.GECKO)return/rv:([^\);]+)(\)|;)/.exec(t);if(goog.userAgent.EDGE)return/Edge\/([\d\.]+)/.exec(t);if(goog.userAgent.IE)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t);if(goog.userAgent.WEBKIT)return/WebKit\/(\S+)/.exec(t);if(goog.userAgent.OPERA)return/(?:Version)[ \/]?(\S+)/.exec(t)};goog.userAgent.getDocumentMode_=function(){var t=goog.global.document;return t?t.documentMode:void 0};goog.userAgent.VERSION=goog.userAgent.determineVersion_();goog.userAgent.compare=function(t,o){return goog.string.compareVersions(t,o)};goog.userAgent.isVersionOrHigherCache_={};goog.userAgent.isVersionOrHigher=function(t){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,t,function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,t)})};goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher;goog.userAgent.isDocumentModeOrHigher=function(t){return Number(goog.userAgent.DOCUMENT_MODE)>=t};goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher;goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE)return goog.userAgent.getDocumentMode_()}();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(t){return goog.string.contains(goog.crypt.base64.paddingChars_,t)};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_||typeof goog.global.btoa=="function";goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&typeof goog.global.atob=="function";goog.crypt.base64.encodeByteArray=function(t,o){goog.asserts.assert(goog.isArrayLike(t),"encodeByteArray takes an array as a parameter"),o===void 0&&(o=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),o=goog.crypt.base64.byteToCharMaps_[o];for(var r=[],n=0;n<t.length;n+=3){var i=t[n],s=n+1<t.length,p=s?t[n+1]:0,A=n+2<t.length,y=A?t[n+2]:0,M=i>>2;i=(i&3)<<4|p>>4,p=(p&15)<<2|y>>6,y&=63,A||(y=64,s||(p=64)),r.push(o[M],o[i],o[p]||"",o[y]||"")}return r.join("")};goog.crypt.base64.encodeString=function(t,o){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!o?goog.global.btoa(t):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(t),o)};goog.crypt.base64.decodeString=function(t,o){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!o)return goog.global.atob(t);var r="";return goog.crypt.base64.decodeStringInternal_(t,function(n){r+=String.fromCharCode(n)}),r};goog.crypt.base64.decodeStringToByteArray=function(t,o){var r=[];return goog.crypt.base64.decodeStringInternal_(t,function(n){r.push(n)}),r};goog.crypt.base64.decodeStringToUint8Array=function(t){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var o=t.length,r=3*o/4;r%3?r=Math.floor(r):goog.crypt.base64.isPadding_(t[o-1])&&(r=goog.crypt.base64.isPadding_(t[o-2])?r-2:r-1);var n=new Uint8Array(r),i=0;return goog.crypt.base64.decodeStringInternal_(t,function(s){n[i++]=s}),n.subarray(0,i)};goog.crypt.base64.decodeStringInternal_=function(t,o){function r(y){for(;n<t.length;){var M=t.charAt(n++),G=goog.crypt.base64.charToByteMap_[M];if(G!=null)return G;if(!goog.string.isEmptyOrWhitespace(M))throw Error("Unknown base64 encoding at char: "+M)}return y}goog.crypt.base64.init_();for(var n=0;;){var i=r(-1),s=r(0),p=r(64),A=r(64);if(A===64&&i===-1)break;o(i<<2|s>>4),p!=64&&(o(s<<4&240|p>>2),A!=64&&o(p<<6&192|A))}};goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var t=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),o=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var n=t.concat(o[r].split(""));goog.crypt.base64.byteToCharMaps_[r]=n;for(var i=0;i<n.length;i++){var s=n[i],p=goog.crypt.base64.charToByteMap_[s];p===void 0?goog.crypt.base64.charToByteMap_[s]=i:goog.asserts.assert(p===i)}}}};jspb.utils={};jspb.utils.split64Low=0;jspb.utils.split64High=0;jspb.utils.splitUint64=function(t){var o=t>>>0;t=Math.floor((t-o)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=o,jspb.utils.split64High=t};jspb.utils.splitInt64=function(t){var o=0>t;t=Math.abs(t);var r=t>>>0;t=Math.floor((t-r)/jspb.BinaryConstants.TWO_TO_32),t>>>=0,o&&(t=~t>>>0,r=(~r>>>0)+1,4294967295<r&&(r=0,t++,4294967295<t&&(t=0))),jspb.utils.split64Low=r,jspb.utils.split64High=t};jspb.utils.splitZigzag64=function(t){var o=0>t;t=2*Math.abs(t),jspb.utils.splitUint64(t),t=jspb.utils.split64Low;var r=jspb.utils.split64High;o&&(t==0?r==0?r=t=4294967295:(r--,t=4294967295):t--),jspb.utils.split64Low=t,jspb.utils.split64High=r};jspb.utils.splitFloat32=function(t){var o=0>t?1:0;if(t=o?-t:t,t===0)0<1/t?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(t))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(t>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(o<<31|2139095040)>>>0;else if(t<jspb.BinaryConstants.FLOAT32_MIN)t=Math.round(t/Math.pow(2,-149)),jspb.utils.split64High=0,jspb.utils.split64Low=(o<<31|t)>>>0;else{var r=Math.floor(Math.log(t)/Math.LN2);t*=Math.pow(2,-r),t=Math.round(t*jspb.BinaryConstants.TWO_TO_23),16777216<=t&&++r,jspb.utils.split64High=0,jspb.utils.split64Low=(o<<31|r+127<<23|t&8388607)>>>0}};jspb.utils.splitFloat64=function(t){var o=0>t?1:0;if(t=o?-t:t,t===0)jspb.utils.split64High=0<1/t?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(t))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(t>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(o<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(t<jspb.BinaryConstants.FLOAT64_MIN){var r=t/Math.pow(2,-1074);t=r/jspb.BinaryConstants.TWO_TO_32,jspb.utils.split64High=(o<<31|t)>>>0,jspb.utils.split64Low=r>>>0}else{r=t;var n=0;if(2<=r)for(;2<=r&&1023>n;)n++,r/=2;else for(;1>r&&-1022<n;)r*=2,n--;r=t*Math.pow(2,-n),t=r*jspb.BinaryConstants.TWO_TO_20&1048575,r=r*jspb.BinaryConstants.TWO_TO_52>>>0,jspb.utils.split64High=(o<<31|n+1023<<20|t)>>>0,jspb.utils.split64Low=r}};jspb.utils.splitHash64=function(t){var o=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),s=t.charCodeAt(4),p=t.charCodeAt(5),A=t.charCodeAt(6);t=t.charCodeAt(7),jspb.utils.split64Low=o+(r<<8)+(n<<16)+(i<<24)>>>0,jspb.utils.split64High=s+(p<<8)+(A<<16)+(t<<24)>>>0};jspb.utils.joinUint64=function(t,o){return o*jspb.BinaryConstants.TWO_TO_32+(t>>>0)};jspb.utils.joinInt64=function(t,o){var r=o&2147483648;return r&&(t=~t+1>>>0,o=~o>>>0,t==0&&(o=o+1>>>0)),t=jspb.utils.joinUint64(t,o),r?-t:t};jspb.utils.toZigzag64=function(t,o,r){var n=o>>31;return r(t<<1^n,(o<<1|t>>>31)^n)};jspb.utils.joinZigzag64=function(t,o){return jspb.utils.fromZigzag64(t,o,jspb.utils.joinInt64)};jspb.utils.fromZigzag64=function(t,o,r){var n=-(t&1);return r((t>>>1|o<<31)^n,o>>>1^n)};jspb.utils.joinFloat32=function(t,o){o=2*(t>>31)+1;var r=t>>>23&255;return t&=8388607,r==255?t?NaN:1/0*o:r==0?o*Math.pow(2,-149)*t:o*Math.pow(2,r-150)*(t+Math.pow(2,23))};jspb.utils.joinFloat64=function(t,o){var r=2*(o>>31)+1,n=o>>>20&2047;return t=jspb.BinaryConstants.TWO_TO_32*(o&1048575)+t,n==2047?t?NaN:1/0*r:n==0?r*Math.pow(2,-1074)*t:r*Math.pow(2,n-1075)*(t+jspb.BinaryConstants.TWO_TO_52)};jspb.utils.joinHash64=function(t,o){return String.fromCharCode(t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255,o>>>0&255,o>>>8&255,o>>>16&255,o>>>24&255)};jspb.utils.DIGITS="0123456789abcdef".split("");jspb.utils.ZERO_CHAR_CODE_=48;jspb.utils.A_CHAR_CODE_=97;jspb.utils.joinUnsignedDecimalString=function(t,o){function r(i,s){return i=i?String(i):"",s?"0000000".slice(i.length)+i:i}if(2097151>=o)return""+jspb.utils.joinUint64(t,o);var n=(t>>>24|o<<8)>>>0&16777215;return o=o>>16&65535,t=(t&16777215)+6777216*n+6710656*o,n+=8147497*o,o*=2,1e7<=t&&(n+=Math.floor(t/1e7),t%=1e7),1e7<=n&&(o+=Math.floor(n/1e7),n%=1e7),r(o,0)+r(n,o)+r(t,1)};jspb.utils.joinSignedDecimalString=function(t,o){var r=o&2147483648;return r&&(t=~t+1>>>0,o=~o+(t==0?1:0)>>>0),t=jspb.utils.joinUnsignedDecimalString(t,o),r?"-"+t:t};jspb.utils.hash64ToDecimalString=function(t,o){jspb.utils.splitHash64(t),t=jspb.utils.split64Low;var r=jspb.utils.split64High;return o?jspb.utils.joinSignedDecimalString(t,r):jspb.utils.joinUnsignedDecimalString(t,r)};jspb.utils.hash64ArrayToDecimalStrings=function(t,o){for(var r=Array(t.length),n=0;n<t.length;n++)r[n]=jspb.utils.hash64ToDecimalString(t[n],o);return r};jspb.utils.decimalStringToHash64=function(t){function o(p,A){for(var y=0;8>y&&(p!==1||0<A);y++)A=p*i[y]+A,i[y]=A&255,A>>>=8}function r(){for(var p=0;8>p;p++)i[p]=~i[p]&255}goog.asserts.assert(0<t.length);var n=!1;t[0]==="-"&&(n=!0,t=t.slice(1));for(var i=[0,0,0,0,0,0,0,0],s=0;s<t.length;s++)o(10,t.charCodeAt(s)-jspb.utils.ZERO_CHAR_CODE_);return n&&(r(),o(1,1)),goog.crypt.byteArrayToString(i)};jspb.utils.splitDecimalString=function(t){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(t))};jspb.utils.toHexDigit_=function(t){return String.fromCharCode(10>t?jspb.utils.ZERO_CHAR_CODE_+t:jspb.utils.A_CHAR_CODE_-10+t)};jspb.utils.fromHexCharCode_=function(t){return t>=jspb.utils.A_CHAR_CODE_?t-jspb.utils.A_CHAR_CODE_+10:t-jspb.utils.ZERO_CHAR_CODE_};jspb.utils.hash64ToHexString=function(t){var o=Array(18);o[0]="0",o[1]="x";for(var r=0;8>r;r++){var n=t.charCodeAt(7-r);o[2*r+2]=jspb.utils.toHexDigit_(n>>4),o[2*r+3]=jspb.utils.toHexDigit_(n&15)}return o.join("")};jspb.utils.hexStringToHash64=function(t){t=t.toLowerCase(),goog.asserts.assert(t.length==18),goog.asserts.assert(t[0]=="0"),goog.asserts.assert(t[1]=="x");for(var o="",r=0;8>r;r++){var n=jspb.utils.fromHexCharCode_(t.charCodeAt(2*r+2)),i=jspb.utils.fromHexCharCode_(t.charCodeAt(2*r+3));o=String.fromCharCode(16*n+i)+o}return o};jspb.utils.hash64ToNumber=function(t,o){jspb.utils.splitHash64(t),t=jspb.utils.split64Low;var r=jspb.utils.split64High;return o?jspb.utils.joinInt64(t,r):jspb.utils.joinUint64(t,r)};jspb.utils.numberToHash64=function(t){return jspb.utils.splitInt64(t),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.utils.countVarints=function(t,o,r){for(var n=0,i=o;i<r;i++)n+=t[i]>>7;return r-o-n};jspb.utils.countVarintFields=function(t,o,r,n){var i=0;if(n=8*n+jspb.BinaryConstants.WireType.VARINT,128>n)for(;o<r&&t[o++]==n;)for(i++;;){var s=t[o++];if((s&128)==0)break}else for(;o<r;){for(s=n;128<s;){if(t[o]!=(s&127|128))return i;o++,s>>=7}if(t[o++]!=s)break;for(i++;s=t[o++],(s&128)!=0;);}return i};jspb.utils.countFixedFields_=function(t,o,r,n,i){var s=0;if(128>n)for(;o<r&&t[o++]==n;)s++,o+=i;else for(;o<r;){for(var p=n;128<p;){if(t[o++]!=(p&127|128))return s;p>>=7}if(t[o++]!=p)break;s++,o+=i}return s};jspb.utils.countFixed32Fields=function(t,o,r,n){return jspb.utils.countFixedFields_(t,o,r,8*n+jspb.BinaryConstants.WireType.FIXED32,4)};jspb.utils.countFixed64Fields=function(t,o,r,n){return jspb.utils.countFixedFields_(t,o,r,8*n+jspb.BinaryConstants.WireType.FIXED64,8)};jspb.utils.countDelimitedFields=function(t,o,r,n){var i=0;for(n=8*n+jspb.BinaryConstants.WireType.DELIMITED;o<r;){for(var s=n;128<s;){if(t[o++]!=(s&127|128))return i;s>>=7}if(t[o++]!=s)break;i++;for(var p=0,A=1;s=t[o++],p+=(s&127)*A,A*=128,(s&128)!=0;);o+=p}return i};jspb.utils.debugBytesToTextFormat=function(t){var o='"';if(t){t=jspb.utils.byteSourceToUint8Array(t);for(var r=0;r<t.length;r++)o+="\\x",16>t[r]&&(o+="0"),o+=t[r].toString(16)}return o+'"'};jspb.utils.debugScalarToTextFormat=function(t){return typeof t=="string"?goog.string.quote(t):t.toString()};jspb.utils.stringToByteArray=function(t){for(var o=new Uint8Array(t.length),r=0;r<t.length;r++){var n=t.charCodeAt(r);if(255<n)throw Error("Conversion error: string contains codepoint outside of byte range");o[r]=n}return o};jspb.utils.byteSourceToUint8Array=function(t){return t.constructor===Uint8Array?t:t.constructor===ArrayBuffer||typeof Buffer<"u"&&t.constructor===Buffer||t.constructor===Array?new Uint8Array(t):t.constructor===String?goog.crypt.base64.decodeStringToUint8Array(t):(goog.asserts.fail("Type not convertible to Uint8Array."),new Uint8Array(0))};jspb.BinaryDecoder=function(t,o,r){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1,t&&this.setBlock(t,o,r)};jspb.BinaryDecoder.instanceCache_=[];jspb.BinaryDecoder.alloc=function(t,o,r){if(jspb.BinaryDecoder.instanceCache_.length){var n=jspb.BinaryDecoder.instanceCache_.pop();return t&&n.setBlock(t,o,r),n}return new jspb.BinaryDecoder(t,o,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(t,o,r){this.bytes_=jspb.utils.byteSourceToUint8Array(t),this.start_=o!==void 0?o:0,this.end_=r!==void 0?this.start_+r:this.bytes_.length,this.cursor_=this.start_};jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_};jspb.BinaryDecoder.prototype.setEnd=function(t){this.end_=t};jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_};jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_};jspb.BinaryDecoder.prototype.setCursor=function(t){this.cursor_=t};jspb.BinaryDecoder.prototype.advance=function(t){this.cursor_+=t,goog.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(t){for(var o=128,r=0,n=0,i=0;4>i&&128<=o;i++)o=this.bytes_[this.cursor_++],r|=(o&127)<<7*i;if(128<=o&&(o=this.bytes_[this.cursor_++],r|=(o&127)<<28,n|=(o&127)>>4),128<=o)for(i=0;5>i&&128<=o;i++)o=this.bytes_[this.cursor_++],n|=(o&127)<<7*i+3;if(128>o)return t(r>>>0,n>>>0);goog.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0};jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(t){return this.readSplitVarint64(function(o,r){return jspb.utils.fromZigzag64(o,r,t)})};jspb.BinaryDecoder.prototype.readSplitFixed64=function(t){var o=this.bytes_,r=this.cursor_;this.cursor_+=8;for(var n=0,i=0,s=r+7;s>=r;s--)n=n<<8|o[s],i=i<<8|o[s+4];return t(n,i)};jspb.BinaryDecoder.prototype.skipVarint=function(){for(;this.bytes_[this.cursor_]&128;)this.cursor_++;this.cursor_++};jspb.BinaryDecoder.prototype.unskipVarint=function(t){for(;128<t;)this.cursor_--,t>>>=7;this.cursor_--};jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var t=this.bytes_,o=t[this.cursor_+0],r=o&127;return 128>o?(this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),r):(o=t[this.cursor_+1],r|=(o&127)<<7,128>o?(this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),r):(o=t[this.cursor_+2],r|=(o&127)<<14,128>o?(this.cursor_+=3,goog.asserts.assert(this.cursor_<=this.end_),r):(o=t[this.cursor_+3],r|=(o&127)<<21,128>o?(this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),r):(o=t[this.cursor_+4],r|=(o&15)<<28,128>o?(this.cursor_+=5,goog.asserts.assert(this.cursor_<=this.end_),r>>>0):(this.cursor_+=5,128<=t[this.cursor_++]&&128<=t[this.cursor_++]&&128<=t[this.cursor_++]&&128<=t[this.cursor_++]&&128<=t[this.cursor_++]&&goog.asserts.assert(!1),goog.asserts.assert(this.cursor_<=this.end_),r)))))};jspb.BinaryDecoder.prototype.readSignedVarint32=jspb.BinaryDecoder.prototype.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 t=this.readUnsignedVarint32();return t>>>1^-(t&1)};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 t=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),t};jspb.BinaryDecoder.prototype.readUint16=function(){var t=this.bytes_[this.cursor_+0],o=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),t<<0|o<<8};jspb.BinaryDecoder.prototype.readUint32=function(){var t=this.bytes_[this.cursor_+0],o=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],n=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),(t<<0|o<<8|r<<16|n<<24)>>>0};jspb.BinaryDecoder.prototype.readUint64=function(){var t=this.readUint32(),o=this.readUint32();return jspb.utils.joinUint64(t,o)};jspb.BinaryDecoder.prototype.readUint64String=function(){var t=this.readUint32(),o=this.readUint32();return jspb.utils.joinUnsignedDecimalString(t,o)};jspb.BinaryDecoder.prototype.readInt8=function(){var t=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),t<<24>>24};jspb.BinaryDecoder.prototype.readInt16=function(){var t=this.bytes_[this.cursor_+0],o=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),(t<<0|o<<8)<<16>>16};jspb.BinaryDecoder.prototype.readInt32=function(){var t=this.bytes_[this.cursor_+0],o=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],n=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),t<<0|o<<8|r<<16|n<<24};jspb.BinaryDecoder.prototype.readInt64=function(){var t=this.readUint32(),o=this.readUint32();return jspb.utils.joinInt64(t,o)};jspb.BinaryDecoder.prototype.readInt64String=function(){var t=this.readUint32(),o=this.readUint32();return jspb.utils.joinSignedDecimalString(t,o)};jspb.BinaryDecoder.prototype.readFloat=function(){var t=this.readUint32();return jspb.utils.joinFloat32(t,0)};jspb.BinaryDecoder.prototype.readDouble=function(){var t=this.readUint32(),o=this.readUint32();return jspb.utils.joinFloat64(t,o)};jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]};jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()};jspb.BinaryDecoder.prototype.readString=function(t){var o=this.bytes_,r=this.cursor_;t=r+t;for(var n=[],i="";r<t;){var s=o[r++];if(128>s)n.push(s);else{if(192>s)continue;if(224>s){var p=o[r++];n.push((s&31)<<6|p&63)}else if(240>s){p=o[r++];var A=o[r++];n.push((s&15)<<12|(p&63)<<6|A&63)}else if(248>s){p=o[r++],A=o[r++];var y=o[r++];s=(s&7)<<18|(p&63)<<12|(A&63)<<6|y&63,s-=65536,n.push((s>>10&1023)+55296,(s&1023)+56320)}}8192<=n.length&&(i+=String.fromCharCode.apply(null,n),n.length=0)}return i+=goog.crypt.byteArrayToString(n),this.cursor_=r,i};jspb.BinaryDecoder.prototype.readStringWithLength=function(){var t=this.readUnsignedVarint32();return this.readString(t)};jspb.BinaryDecoder.prototype.readBytes=function(t){if(0>t||this.cursor_+t>this.bytes_.length)return this.error_=!0,goog.asserts.fail("Invalid byte length!"),new Uint8Array(0);var o=this.bytes_.subarray(this.cursor_,this.cursor_+t);return this.cursor_+=t,goog.asserts.assert(this.cursor_<=this.end_),o};jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)};jspb.BinaryDecoder.prototype.readFixedHash64=function(){var t=this.bytes_,o=this.cursor_,r=t[o+0],n=t[o+1],i=t[o+2],s=t[o+3],p=t[o+4],A=t[o+5],y=t[o+6];return t=t[o+7],this.cursor_+=8,String.fromCharCode(r,n,i,s,p,A,y,t)};jspb.BinaryReader=function(t,o,r){this.decoder_=jspb.BinaryDecoder.alloc(t,o,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(t,o,r){if(jspb.BinaryReader.instanceCache_.length){var n=jspb.BinaryReader.instanceCache_.pop();return t&&n.decoder_.setBlock(t,o,r),n}return new jspb.BinaryReader(t,o,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_};jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_};jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED};jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP};jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()};jspb.BinaryReader.prototype.setBlock=function(t,o,r){this.decoder_.setBlock(t,o,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(t){this.decoder_.advance(t)};jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return goog.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var t=this.decoder_.readUnsignedVarint32(),o=t>>>3;return t&=7,t!=jspb.BinaryConstants.WireType.VARINT&&t!=jspb.BinaryConstants.WireType.FIXED32&&t!=jspb.BinaryConstants.WireType.FIXED64&&t!=jspb.BinaryConstants.WireType.DELIMITED&&t!=jspb.BinaryConstants.WireType.START_GROUP&&t!=jspb.BinaryConstants.WireType.END_GROUP?(goog.asserts.fail("Invalid wire type: %s (at position %s)",t,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=o,this.nextWireType_=t,!0)};jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)};jspb.BinaryReader.prototype.skipMatchingFields=function(){var t=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==t;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()};jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(goog.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()};jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)goog.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var t=this.decoder_.readUnsignedVarint32();this.decoder_.advance(t)}};jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(goog.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)};jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(goog.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)};jspb.BinaryReader.prototype.skipGroup=function(){var t=this.nextField_;do{if(!this.nextField()){goog.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=t&&(goog.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}while(1)};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:goog.asserts.fail("Invalid wire encoding for field.")}};jspb.BinaryReader.prototype.registerReadCallback=function(t,o){this.readCallbacks_===null&&(this.readCallbacks_={}),goog.asserts.assert(!this.readCallbacks_[t]),this.readCallbacks_[t]=o};jspb.BinaryReader.prototype.runReadCallback=function(t){return goog.asserts.assert(this.readCallbacks_!==null),t=this.readCallbacks_[t],goog.asserts.assert(t),t(this)};jspb.BinaryReader.prototype.readAny=function(t){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(t);var o=jspb.BinaryConstants.FieldType;switch(t){case o.DOUBLE:return this.readDouble();case o.FLOAT:return this.readFloat();case o.INT64:return this.readInt64();case o.UINT64:return this.readUint64();case o.INT32:return this.readInt32();case o.FIXED64:return this.readFixed64();case o.FIXED32:return this.readFixed32();case o.BOOL:return this.readBool();case o.STRING:return this.readString();case o.GROUP:goog.asserts.fail("Group field type not supported in readAny()");case o.MESSAGE:goog.asserts.fail("Message field type not supported in readAny()");case o.BYTES:return this.readBytes();case o.UINT32:return this.readUint32();case o.ENUM:return this.readEnum();case o.SFIXED32:return this.readSfixed32();case o.SFIXED64:return this.readSfixed64();case o.SINT32:return this.readSint32();case o.SINT64:return this.readSint64();case o.FHASH64:return this.readFixedHash64();case o.VHASH64:return this.readVarintHash64();default:goog.asserts.fail("Invalid field type in readAny()")}return 0};jspb.BinaryReader.prototype.readMessage=function(t,o){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var r=this.decoder_.getEnd(),n=this.decoder_.readUnsignedVarint32();n=this.decoder_.getCursor()+n,this.decoder_.setEnd(n),o(t,this),this.decoder_.setCursor(n),this.decoder_.setEnd(r)};jspb.BinaryReader.prototype.readGroup=function(t,o,r){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),goog.asserts.assert(this.nextField_==t),r(o,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(goog.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)};jspb.BinaryReader.prototype.getFieldDecoder=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var t=this.decoder_.readUnsignedVarint32(),o=this.decoder_.getCursor(),r=o+t;return t=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),o,t),this.decoder_.setCursor(r),t};jspb.BinaryReader.prototype.readInt32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()};jspb.BinaryReader.prototype.readInt32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()};jspb.BinaryReader.prototype.readInt64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()};jspb.BinaryReader.prototype.readInt64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()};jspb.BinaryReader.prototype.readUint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()};jspb.BinaryReader.prototype.readUint32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()};jspb.BinaryReader.prototype.readUint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()};jspb.BinaryReader.prototype.readUint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()};jspb.BinaryReader.prototype.readSint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()};jspb.BinaryReader.prototype.readSint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()};jspb.BinaryReader.prototype.readSint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()};jspb.BinaryReader.prototype.readFixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()};jspb.BinaryReader.prototype.readFixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()};jspb.BinaryReader.prototype.readFixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()};jspb.BinaryReader.prototype.readSfixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()};jspb.BinaryReader.prototype.readSfixed32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()};jspb.BinaryReader.prototype.readSfixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()};jspb.BinaryReader.prototype.readSfixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()};jspb.BinaryReader.prototype.readFloat=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()};jspb.BinaryReader.prototype.readDouble=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()};jspb.BinaryReader.prototype.readBool=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()};jspb.BinaryReader.prototype.readEnum=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()};jspb.BinaryReader.prototype.readString=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var t=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(t)};jspb.BinaryReader.prototype.readBytes=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var t=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(t)};jspb.BinaryReader.prototype.readVarintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()};jspb.BinaryReader.prototype.readSintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()};jspb.BinaryReader.prototype.readSplitVarint64=function(t){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(t)};jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(t){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(function(o,r){return jspb.utils.fromZigzag64(o,r,t)})};jspb.BinaryReader.prototype.readFixedHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()};jspb.BinaryReader.prototype.readSplitFixed64=function(t){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(t)};jspb.BinaryReader.prototype.readPackedField_=function(t){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();o=this.decoder_.getCursor()+o;for(var r=[];this.decoder_.getCursor()<o;)r.push(t.call(this.decoder_));return r};jspb.BinaryReader.prototype.readPackedInt32=function(){return this.readPackedField_(this.decoder_.readSignedVarint32)};jspb.BinaryReader.prototype.readPackedInt32String=function(){return this.readPackedField_(this.decoder_.readSignedVarint32String)};jspb.BinaryReader.prototype.readPackedInt64=function(){return this.readPackedField_(this.decoder_.readSignedVarint64)};jspb.BinaryReader.prototype.readPackedInt64String=function(){return this.readPackedField_(this.decoder_.readSignedVarint64String)};jspb.BinaryReader.prototype.readPackedUint32=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32)};jspb.BinaryReader.prototype.readPackedUint32String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32String)};jspb.BinaryReader.prototype.readPackedUint64=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64)};jspb.BinaryReader.prototype.readPackedUint64String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64String)};jspb.BinaryReader.prototype.readPackedSint32=function(){return this.readPackedField_(this.decoder_.readZigzagVarint32)};jspb.BinaryReader.prototype.readPackedSint64=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64)};jspb.BinaryReader.prototype.readPackedSint64String=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64String)};jspb.BinaryReader.prototype.readPackedFixed32=function(){return this.readPackedField_(this.decoder_.readUint32)};jspb.BinaryReader.prototype.readPackedFixed64=function(){return this.readPackedField_(this.decoder_.readUint64)};jspb.BinaryReader.prototype.readPackedFixed64String=function(){return this.readPackedField_(this.decoder_.readUint64String)};jspb.BinaryReader.prototype.readPackedSfixed32=function(){return this.readPackedField_(this.decoder_.readInt32)};jspb.BinaryReader.prototype.readPackedSfixed64=function(){return this.readPackedField_(this.decoder_.readInt64)};jspb.BinaryReader.prototype.readPackedSfixed64String=function(){return this.readPackedField_(this.decoder_.readInt64String)};jspb.BinaryReader.prototype.readPackedFloat=function(){return this.readPackedField_(this.decoder_.readFloat)};jspb.BinaryReader.prototype.readPackedDouble=function(){return this.readPackedField_(this.decoder_.readDouble)};jspb.BinaryReader.prototype.readPackedBool=function(){return this.readPackedField_(this.decoder_.readBool)};jspb.BinaryReader.prototype.readPackedEnum=function(){return this.readPackedField_(this.decoder_.readEnum)};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 t=this.buffer_;return this.buffer_=[],t};jspb.BinaryEncoder.prototype.writeSplitVarint64=function(t,o){for(goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32);0<o||127<t;)this.buffer_.push(t&127|128),t=(t>>>7|o<<25)>>>0,o>>>=7;this.buffer_.push(t)};jspb.BinaryEncoder.prototype.writeSplitFixed64=function(t,o){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),this.writeUint32(t),this.writeUint32(o)};jspb.BinaryEncoder.prototype.writeUnsignedVarint32=function(t){for(goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32);127<t;)this.buffer_.push(t&127|128),t>>>=7;this.buffer_.push(t)};jspb.BinaryEncoder.prototype.writeSignedVarint32=function(t){if(goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),0<=t)this.writeUnsignedVarint32(t);else{for(var o=0;9>o;o++)this.buffer_.push(t&127|128),t>>=7;this.buffer_.push(1)}};jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitInt64(t),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeSignedVarint64=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(t),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeZigzagVarint32=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeUnsignedVarint32((t<<1^t>>31)>>>0)};jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitZigzag64(t),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeZigzagVarint64String=function(t){this.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(t))};jspb.BinaryEncoder.prototype.writeZigzagVarintHash64=function(t){var o=this;jspb.utils.splitHash64(t),jspb.utils.toZigzag64(jspb.utils.split64Low,jspb.utils.split64High,function(r,n){o.writeSplitVarint64(r>>>0,n>>>0)})};jspb.BinaryEncoder.prototype.writeUint8=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&256>t),this.buffer_.push(t>>>0&255)};jspb.BinaryEncoder.prototype.writeUint16=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&65536>t),this.buffer_.push(t>>>0&255),this.buffer_.push(t>>>8&255)};jspb.BinaryEncoder.prototype.writeUint32=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.buffer_.push(t>>>0&255),this.buffer_.push(t>>>8&255),this.buffer_.push(t>>>16&255),this.buffer_.push(t>>>24&255)};jspb.BinaryEncoder.prototype.writeUint64=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitUint64(t),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeInt8=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(-128<=t&&128>t),this.buffer_.push(t>>>0&255)};jspb.BinaryEncoder.prototype.writeInt16=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(-32768<=t&&32768>t),this.buffer_.push(t>>>0&255),this.buffer_.push(t>>>8&255)};jspb.BinaryEncoder.prototype.writeInt32=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.buffer_.push(t>>>0&255),this.buffer_.push(t>>>8&255),this.buffer_.push(t>>>16&255),this.buffer_.push(t>>>24&255)};jspb.BinaryEncoder.prototype.writeInt64=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(t),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeInt64String=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(+t>=-jspb.BinaryConstants.TWO_TO_63&&+t<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(t)),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeFloat=function(t){goog.asserts.assert(t===1/0||t===-1/0||isNaN(t)||t>=-jspb.BinaryConstants.FLOAT32_MAX&&t<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(t),this.writeUint32(jspb.utils.split64Low)};jspb.BinaryEncoder.prototype.writeDouble=function(t){goog.asserts.assert(t===1/0||t===-1/0||isNaN(t)||t>=-jspb.BinaryConstants.FLOAT64_MAX&&t<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(t),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeBool=function(t){goog.asserts.assert(typeof t=="boolean"||typeof t=="number"),this.buffer_.push(t?1:0)};jspb.BinaryEncoder.prototype.writeEnum=function(t){goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32(t)};jspb.BinaryEncoder.prototype.writeBytes=function(t){this.buffer_.push.apply(this.buffer_,t)};jspb.BinaryEncoder.prototype.writeVarintHash64=function(t){jspb.utils.splitHash64(t),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeFixedHash64=function(t){jspb.utils.splitHash64(t),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)};jspb.BinaryEncoder.prototype.writeString=function(t){for(var o=this.buffer_.length,r=0;r<t.length;r++){var n=t.charCodeAt(r);if(128>n)this.buffer_.push(n);else if(2048>n)this.buffer_.push(n>>6|192),this.buffer_.push(n&63|128);else if(65536>n)if(55296<=n&&56319>=n&&r+1<t.length){var i=t.charCodeAt(r+1);56320<=i&&57343>=i&&(n=1024*(n-55296)+i-56320+65536,this.buffer_.push(n>>18|240),this.buffer_.push(n>>12&63|128),this.buffer_.push(n>>6&63|128),this.buffer_.push(n&63|128),r++)}else this.buffer_.push(n>>12|224),this.buffer_.push(n>>6&63|128),this.buffer_.push(n&63|128)}return this.buffer_.length-o};jspb.arith={};jspb.arith.UInt64=function(t,o){this.lo=t,this.hi=o};jspb.arith.UInt64.prototype.cmp=function(t){return this.hi<t.hi||this.hi==t.hi&&this.lo<t.lo?-1:this.hi==t.hi&&this.lo==t.lo?0:1};jspb.arith.UInt64.prototype.rightShift=function(){return new jspb.arith.UInt64((this.lo>>>1|(this.hi&1)<<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!!(this.hi&2147483648)};jspb.arith.UInt64.prototype.lsb=function(){return!!(this.lo&1)};jspb.arith.UInt64.prototype.zero=function(){return this.lo==0&&this.hi==0};jspb.arith.UInt64.prototype.add=function(t){return new jspb.arith.UInt64((this.lo+t.lo&4294967295)>>>0>>>0,((this.hi+t.hi&4294967295)>>>0)+(4294967296<=this.lo+t.lo?1:0)>>>0)};jspb.arith.UInt64.prototype.sub=function(t){return new jspb.arith.UInt64((this.lo-t.lo&4294967295)>>>0>>>0,((this.hi-t.hi&4294967295)>>>0)-(0>this.lo-t.lo?1:0)>>>0)};jspb.arith.UInt64.mul32x32=function(t,o){var r=t&65535;t>>>=16;var n=o&65535,i=o>>>16;for(o=r*n+65536*(r*i&65535)+65536*(t*n&65535),r=t*i+(r*i>>>16)+(t*n>>>16);4294967296<=o;)o-=4294967296,r+=1;return new jspb.arith.UInt64(o>>>0,r>>>0)};jspb.arith.UInt64.prototype.mul=function(t){var o=jspb.arith.UInt64.mul32x32(this.lo,t);return t=jspb.arith.UInt64.mul32x32(this.hi,t),t.hi=t.lo,t.lo=0,o.add(t)};jspb.arith.UInt64.prototype.div=function(t){if(t==0)return[];var o=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(this.lo,this.hi);t=new jspb.arith.UInt64(t,0);for(var n=new jspb.arith.UInt64(1,0);!t.msb();)t=t.leftShift(),n=n.leftShift();for(;!n.zero();)0>=t.cmp(r)&&(o=o.add(n),r=r.sub(t)),t=t.rightShift(),n=n.rightShift();return[o,r]};jspb.arith.UInt64.prototype.toString=function(){for(var t="",o=this;!o.zero();){o=o.div(10);var r=o[0];t=o[1].lo+t,o=r}return t==""&&(t="0"),t};jspb.arith.UInt64.fromString=function(t){for(var o=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(0,0),n=0;n<t.length;n++){if("0">t[n]||"9"<t[n])return null;var i=parseInt(t[n],10);r.lo=i,o=o.mul(10).add(r)}return o};jspb.arith.UInt64.prototype.clone=function(){return new jspb.arith.UInt64(this.lo,this.hi)};jspb.arith.Int64=function(t,o){this.lo=t,this.hi=o};jspb.arith.Int64.prototype.add=function(t){return new jspb.arith.Int64((this.lo+t.lo&4294967295)>>>0>>>0,((this.hi+t.hi&4294967295)>>>0)+(4294967296<=this.lo+t.lo?1:0)>>>0)};jspb.arith.Int64.prototype.sub=function(t){return new jspb.arith.Int64((this.lo-t.lo&4294967295)>>>0>>>0,((this.hi-t.hi&4294967295)>>>0)-(0>this.lo-t.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 t=(this.hi&2147483648)!=0,o=new jspb.arith.UInt64(this.lo,this.hi);return t&&(o=new jspb.arith.UInt64(0,0).sub(o)),(t?"-":"")+o.toString()};jspb.arith.Int64.fromString=function(t){var o=0<t.length&&t[0]=="-";return o&&(t=t.substring(1)),t=jspb.arith.UInt64.fromString(t),t===null?null:(o&&(t=new jspb.arith.UInt64(0,0).sub(t)),new jspb.arith.Int64(t.lo,t.hi))};jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]};jspb.BinaryWriter.prototype.appendUint8Array_=function(t){var o=this.encoder_.end();this.blocks_.push(o),this.blocks_.push(t),this.totalLength_+=o.length+t.length};jspb.BinaryWriter.prototype.beginDelimited_=function(t){return this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),t=this.encoder_.end(),this.blocks_.push(t),this.totalLength_+=t.length,t.push(this.totalLength_),t};jspb.BinaryWriter.prototype.endDelimited_=function(t){var o=t.pop();for(o=this.totalLength_+this.encoder_.length()-o,goog.asserts.assert(0<=o);127<o;)t.push(o&127|128),o>>>=7,this.totalLength_++;t.push(o),this.totalLength_++};jspb.BinaryWriter.prototype.writeSerializedMessage=function(t,o,r){this.appendUint8Array_(t.subarray(o,r))};jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(t,o,r){t!=null&&o!=null&&r!=null&&this.writeSerializedMessage(t,o,r)};jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]};jspb.BinaryWriter.prototype.getResultBuffer=function(){goog.asserts.assert(this.bookmarks_.length==0);for(var t=new Uint8Array(this.totalLength_+this.encoder_.length()),o=this.blocks_,r=o.length,n=0,i=0;i<r;i++){var s=o[i];t.set(s,n),n+=s.length}return o=this.encoder_.end(),t.set(o,n),n+=o.length,goog.asserts.assert(n==t.length),this.blocks_=[t],t};jspb.BinaryWriter.prototype.getResultBase64String=function(t){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),t)};jspb.BinaryWriter.prototype.beginSubMessage=function(t){this.bookmarks_.push(this.beginDelimited_(t))};jspb.BinaryWriter.prototype.endSubMessage=function(){goog.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())};jspb.BinaryWriter.prototype.writeFieldHeader_=function(t,o){goog.asserts.assert(1<=t&&t==Math.floor(t)),this.encoder_.writeUnsignedVarint32(8*t+o)};jspb.BinaryWriter.prototype.writeAny=function(t,o,r){var n=jspb.BinaryConstants.FieldType;switch(t){case n.DOUBLE:this.writeDouble(o,r);break;case n.FLOAT:this.writeFloat(o,r);break;case n.INT64:this.writeInt64(o,r);break;case n.UINT64:this.writeUint64(o,r);break;case n.INT32:this.writeInt32(o,r);break;case n.FIXED64:this.writeFixed64(o,r);break;case n.FIXED32:this.writeFixed32(o,r);break;case n.BOOL:this.writeBool(o,r);break;case n.STRING:this.writeString(o,r);break;case n.GROUP:goog.asserts.fail("Group field type not supported in writeAny()");break;case n.MESSAGE:goog.asserts.fail("Message field type not supported in writeAny()");break;case n.BYTES:this.writeBytes(o,r);break;case n.UINT32:this.writeUint32(o,r);break;case n.ENUM:this.writeEnum(o,r);break;case n.SFIXED32:this.writeSfixed32(o,r);break;case n.SFIXED64:this.writeSfixed64(o,r);break;case n.SINT32:this.writeSint32(o,r);break;case n.SINT64:this.writeSint64(o,r);break;case n.FHASH64:this.writeFixedHash64(o,r);break;case n.VHASH64:this.writeVarintHash64(o,r);break;default:goog.asserts.fail("Invalid field type in writeAny()")}};jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(o))};jspb.BinaryWriter.prototype.writeSignedVarint32_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(o))};jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(o))};jspb.BinaryWriter.prototype.writeSignedVarint64_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(o))};jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(o))};jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(o))};jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(o))};jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(o))};jspb.BinaryWriter.prototype.writeInt32=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(t,o))};jspb.BinaryWriter.prototype.writeInt32String=function(t,o){o!=null&&(o=parseInt(o,10),goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(t,o))};jspb.BinaryWriter.prototype.writeInt64=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),this.writeSignedVarint64_(t,o))};jspb.BinaryWriter.prototype.writeInt64String=function(t,o){o!=null&&(o=jspb.arith.Int64.fromString(o),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(o.lo,o.hi))};jspb.BinaryWriter.prototype.writeUint32=function(t,o){o!=null&&(goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(t,o))};jspb.BinaryWriter.prototype.writeUint32String=function(t,o){o!=null&&(o=parseInt(o,10),goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(t,o))};jspb.BinaryWriter.prototype.writeUint64=function(t,o){o!=null&&(goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_64),this.writeUnsignedVarint64_(t,o))};jspb.BinaryWriter.prototype.writeUint64String=function(t,o){o!=null&&(o=jspb.arith.UInt64.fromString(o),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(o.lo,o.hi))};jspb.BinaryWriter.prototype.writeSint32=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(t,o))};jspb.BinaryWriter.prototype.writeSint64=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64_(t,o))};jspb.BinaryWriter.prototype.writeSintHash64=function(t,o){o!=null&&this.writeZigzagVarintHash64_(t,o)};jspb.BinaryWriter.prototype.writeSint64String=function(t,o){o!=null&&this.writeZigzagVarint64String_(t,o)};jspb.BinaryWriter.prototype.writeFixed32=function(t,o){o!=null&&(goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(o))};jspb.BinaryWriter.prototype.writeFixed64=function(t,o){o!=null&&(goog.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_64),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeUint64(o))};jspb.BinaryWriter.prototype.writeFixed64String=function(t,o){o!=null&&(o=jspb.arith.UInt64.fromString(o),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(o.lo,o.hi))};jspb.BinaryWriter.prototype.writeSfixed32=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(o))};jspb.BinaryWriter.prototype.writeSfixed64=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeInt64(o))};jspb.BinaryWriter.prototype.writeSfixed64String=function(t,o){o!=null&&(o=jspb.arith.Int64.fromString(o),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(o.lo,o.hi))};jspb.BinaryWriter.prototype.writeFloat=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(o))};jspb.BinaryWriter.prototype.writeDouble=function(t,o){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(o))};jspb.BinaryWriter.prototype.writeBool=function(t,o){o!=null&&(goog.asserts.assert(typeof o=="boolean"||typeof o=="number"),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(o))};jspb.BinaryWriter.prototype.writeEnum=function(t,o){o!=null&&(goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(o))};jspb.BinaryWriter.prototype.writeString=function(t,o){o!=null&&(t=this.beginDelimited_(t),this.encoder_.writeString(o),this.endDelimited_(t))};jspb.BinaryWriter.prototype.writeBytes=function(t,o){o!=null&&(o=jspb.utils.byteSourceToUint8Array(o),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(o.length),this.appendUint8Array_(o))};jspb.BinaryWriter.prototype.writeMessage=function(t,o,r){o!=null&&(t=this.beginDelimited_(t),r(o,this),this.endDelimited_(t))};jspb.BinaryWriter.prototype.writeMessageSet=function(t,o,r){o!=null&&(this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.START_GROUP),this.writeFieldHeader_(2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t),t=this.beginDelimited_(3),r(o,this),this.endDelimited_(t),this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.END_GROUP))};jspb.BinaryWriter.prototype.writeGroup=function(t,o,r){o!=null&&(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.START_GROUP),r(o,this),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.END_GROUP))};jspb.BinaryWriter.prototype.writeFixedHash64=function(t,o){o!=null&&(goog.asserts.assert(o.length==8),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeFixedHash64(o))};jspb.BinaryWriter.prototype.writeVarintHash64=function(t,o){o!=null&&(goog.asserts.assert(o.length==8),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeVarintHash64(o))};jspb.BinaryWriter.prototype.writeSplitFixed64=function(t,o,r){this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(o,r)};jspb.BinaryWriter.prototype.writeSplitVarint64=function(t,o,r){this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(o,r)};jspb.BinaryWriter.prototype.writeSplitZigzagVarint64=function(t,o,r){this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.VARINT);var n=this.encoder_;jspb.utils.toZigzag64(o,r,function(i,s){n.writeSplitVarint64(i>>>0,s>>>0)})};jspb.BinaryWriter.prototype.writeRepeatedInt32=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeSignedVarint32_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedInt32String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeInt32String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedInt64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeSignedVarint64_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSplitFixed64=function(t,o,r,n){if(o!=null)for(var i=0;i<o.length;i++)this.writeSplitFixed64(t,r(o[i]),n(o[i]))};jspb.BinaryWriter.prototype.writeRepeatedSplitVarint64=function(t,o,r,n){if(o!=null)for(var i=0;i<o.length;i++)this.writeSplitVarint64(t,r(o[i]),n(o[i]))};jspb.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64=function(t,o,r,n){if(o!=null)for(var i=0;i<o.length;i++)this.writeSplitZigzagVarint64(t,r(o[i]),n(o[i]))};jspb.BinaryWriter.prototype.writeRepeatedInt64String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeInt64String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedUint32=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeUnsignedVarint32_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedUint32String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeUint32String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedUint64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeUnsignedVarint64_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedUint64String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeUint64String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSint32=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeZigzagVarint32_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSint64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeZigzagVarint64_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSint64String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeZigzagVarint64String_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSintHash64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeZigzagVarintHash64_(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedFixed32=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeFixed32(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedFixed64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeFixed64(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedFixed64String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeFixed64String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSfixed32=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeSfixed32(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSfixed64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeSfixed64(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedSfixed64String=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeSfixed64String(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedFloat=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeFloat(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedDouble=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeDouble(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedBool=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeBool(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedEnum=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeEnum(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedString=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeString(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedBytes=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeBytes(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedMessage=function(t,o,r){if(o!=null)for(var n=0;n<o.length;n++){var i=this.beginDelimited_(t);r(o[n],this),this.endDelimited_(i)}};jspb.BinaryWriter.prototype.writeRepeatedGroup=function(t,o,r){if(o!=null)for(var n=0;n<o.length;n++)this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.START_GROUP),r(o[n],this),this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.END_GROUP)};jspb.BinaryWriter.prototype.writeRepeatedFixedHash64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeFixedHash64(t,o[r])};jspb.BinaryWriter.prototype.writeRepeatedVarintHash64=function(t,o){if(o!=null)for(var r=0;r<o.length;r++)this.writeVarintHash64(t,o[r])};jspb.BinaryWriter.prototype.writePackedInt32=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeSignedVarint32(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedInt32String=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeSignedVarint32(parseInt(o[r],10));this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedInt64=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeSignedVarint64(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSplitFixed64=function(t,o,r,n){if(o!=null){t=this.beginDelimited_(t);for(var i=0;i<o.length;i++)this.encoder_.writeSplitFixed64(r(o[i]),n(o[i]));this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSplitVarint64=function(t,o,r,n){if(o!=null){t=this.beginDelimited_(t);for(var i=0;i<o.length;i++)this.encoder_.writeSplitVarint64(r(o[i]),n(o[i]));this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSplitZigzagVarint64=function(t,o,r,n){if(o!=null){t=this.beginDelimited_(t);for(var i=this.encoder_,s=0;s<o.length;s++)jspb.utils.toZigzag64(r(o[s]),n(o[s]),function(p,A){i.writeSplitVarint64(p>>>0,A>>>0)});this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedInt64String=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++){var n=jspb.arith.Int64.fromString(o[r]);this.encoder_.writeSplitVarint64(n.lo,n.hi)}this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedUint32=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeUnsignedVarint32(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedUint32String=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeUnsignedVarint32(parseInt(o[r],10));this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedUint64=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeUnsignedVarint64(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedUint64String=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++){var n=jspb.arith.UInt64.fromString(o[r]);this.encoder_.writeSplitVarint64(n.lo,n.hi)}this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSint32=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeZigzagVarint32(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSint64=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeZigzagVarint64(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSint64String=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(o[r]));this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedSintHash64=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeZigzagVarintHash64(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedFixed32=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*o.length),t=0;t<o.length;t++)this.encoder_.writeUint32(o[t])};jspb.BinaryWriter.prototype.writePackedFixed64=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++)this.encoder_.writeUint64(o[t])};jspb.BinaryWriter.prototype.writePackedFixed64String=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++){var r=jspb.arith.UInt64.fromString(o[t]);this.encoder_.writeSplitFixed64(r.lo,r.hi)}};jspb.BinaryWriter.prototype.writePackedSfixed32=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*o.length),t=0;t<o.length;t++)this.encoder_.writeInt32(o[t])};jspb.BinaryWriter.prototype.writePackedSfixed64=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++)this.encoder_.writeInt64(o[t])};jspb.BinaryWriter.prototype.writePackedSfixed64String=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++)this.encoder_.writeInt64String(o[t])};jspb.BinaryWriter.prototype.writePackedFloat=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*o.length),t=0;t<o.length;t++)this.encoder_.writeFloat(o[t])};jspb.BinaryWriter.prototype.writePackedDouble=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++)this.encoder_.writeDouble(o[t])};jspb.BinaryWriter.prototype.writePackedBool=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(o.length),t=0;t<o.length;t++)this.encoder_.writeBool(o[t])};jspb.BinaryWriter.prototype.writePackedEnum=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeEnum(o[r]);this.endDelimited_(t)}};jspb.BinaryWriter.prototype.writePackedFixedHash64=function(t,o){if(o!=null&&o.length)for(this.writeFieldHeader_(t,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*o.length),t=0;t<o.length;t++)this.encoder_.writeFixedHash64(o[t])};jspb.BinaryWriter.prototype.writePackedVarintHash64=function(t,o){if(o!=null&&o.length){t=this.beginDelimited_(t);for(var r=0;r<o.length;r++)this.encoder_.writeVarintHash64(o[r]);this.endDelimited_(t)}};jspb.Map=function(t,o){this.arr_=t,this.valueCtor_=o,this.map_={},this.arrClean=!0,0<this.arr_.length&&this.loadFromArray_()};jspb.Map.prototype.loadFromArray_=function(){for(var t=0;t<this.arr_.length;t++){var o=this.arr_[t],r=o[0];this.map_[r.toString()]=new jspb.Map.Entry_(r,o[1])}this.arrClean=!0};jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var t=this.map_,o;for(o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var r=t[o].valueWrapper;r&&r.toArray()}}}else{for(this.arr_.length=0,t=this.stringKeys_(),t.sort(),o=0;o<t.length;o++){var n=this.map_[t[o]];(r=n.valueWrapper)&&r.toArray(),this.arr_.push([n.key,n.value])}this.arrClean=!0}return this.arr_};jspb.Map.prototype.toObject=function(t,o){for(var r=this.toArray(),n=[],i=0;i<r.length;i++){var s=this.map_[r[i][0].toString()];this.wrapEntry_(s);var p=s.valueWrapper;p?(goog.asserts.assert(o),n.push([s.key,o(t,p)])):n.push([s.key,s.value])}return n};jspb.Map.fromObject=function(t,o,r){o=new jspb.Map([],o);for(var n=0;n<t.length;n++){var i=t[n][0],s=r(t[n][1]);o.set(i,s)}return o};jspb.Map.ArrayIteratorIterable_=function(t){this.idx_=0,this.arr_=t};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};jspb.Map.prototype.clear=function(){this.map_={},this.arrClean=!1};jspb.Map.prototype.del=function(t){t=t.toString();var o=this.map_.hasOwnProperty(t);return delete this.map_[t],this.arrClean=!1,o};jspb.Map.prototype.getEntryList=function(){var t=[],o=this.stringKeys_();o.sort();for(var r=0;r<o.length;r++){var n=this.map_[o[r]];t.push([n.key,n.value])}return t};jspb.Map.prototype.entries=function(){var t=[],o=this.stringKeys_();o.sort();for(var r=0;r<o.length;r++){var n=this.map_[o[r]];t.push([n.key,this.wrapEntry_(n)])}return new jspb.Map.ArrayIteratorIterable_(t)};jspb.Map.prototype.keys=function(){var t=[],o=this.stringKeys_();o.sort();for(var r=0;r<o.length;r++)t.push(this.map_[o[r]].key);return new jspb.Map.ArrayIteratorIterable_(t)};jspb.Map.prototype.values=function(){var t=[],o=this.stringKeys_();o.sort();for(var r=0;r<o.length;r++)t.push(this.wrapEntry_(this.map_[o[r]]));return new jspb.Map.ArrayIteratorIterable_(t)};jspb.Map.prototype.forEach=function(t,o){var r=this.stringKeys_();r.sort();for(var n=0;n<r.length;n++){var i=this.map_[r[n]];t.call(o,this.wrapEntry_(i),i.key,this)}};jspb.Map.prototype.set=function(t,o){var r=new jspb.Map.Entry_(t);return this.valueCtor_?(r.valueWrapper=o,r.value=o.toArray()):r.value=o,this.map_[t.toString()]=r,this.arrClean=!1,this};jspb.Map.prototype.wrapEntry_=function(t){return this.valueCtor_?(t.valueWrapper||(t.valueWrapper=new this.valueCtor_(t.value)),t.valueWrapper):t.value};jspb.Map.prototype.get=function(t){if(t=this.map_[t.toString()])return this.wrapEntry_(t)};jspb.Map.prototype.has=function(t){return t.toString()in this.map_};jspb.Map.prototype.serializeBinary=function(t,o,r,n,i){var s=this.stringKeys_();s.sort();for(var p=0;p<s.length;p++){var A=this.map_[s[p]];o.beginSubMessage(t),r.call(o,1,A.key),this.valueCtor_?n.call(o,2,this.wrapEntry_(A),i):n.call(o,2,A.value),o.endSubMessage()}};jspb.Map.deserializeBinary=function(t,o,r,n,i,s,p){for(;o.nextField()&&!o.isEndGroup();){var A=o.getFieldNumber();A==1?s=r.call(o):A==2&&(t.valueCtor_?(goog.asserts.assert(i),p||(p=new t.valueCtor_),n.call(o,p,i)):p=n.call(o))}goog.asserts.assert(s!=null),goog.asserts.assert(p!=null),t.set(s,p)};jspb.Map.prototype.stringKeys_=function(){var t=this.map_,o=[],r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&o.push(r);return o};jspb.Map.Entry_=function(t,o){this.key=t,this.value=o,this.valueWrapper=void 0};jspb.ExtensionFieldInfo=function(t,o,r,n,i){this.fieldIndex=t,this.fieldName=o,this.ctor=r,this.toObjectFn=n,this.isRepeated=i};jspb.ExtensionFieldBinaryInfo=function(t,o,r,n,i,s){this.fieldInfo=t,this.binaryReaderFn=o,this.binaryWriterFn=r,this.binaryMessageSerializeFn=n,this.binaryMessageDeserializeFn=i,this.isPacked=s};jspb.ExtensionFieldInfo.prototype.isMessageType=function(){return!!this.ctor};jspb.Message=function(){};jspb.Message.GENERATE_TO_OBJECT=!0;jspb.Message.GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE;jspb.Message.GENERATE_TO_STRING=!0;jspb.Message.ASSUME_LOCAL_ARRAYS=!1;jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS=!0;jspb.Message.SUPPORTS_UINT8ARRAY_=typeof Uint8Array=="function";jspb.Message.prototype.getJsPbMessageId=function(){return this.messageId_};jspb.Message.getIndex_=function(t,o){return o+t.arrayIndexOffset_};jspb.Message.hiddenES6Property_=function(){};jspb.Message.getFieldNumber_=function(t,o){return o-t.arrayIndexOffset_};jspb.Message.initialize=function(t,o,r,n,i,s){if(t.wrappers_=null,o||(o=r?[r]:[]),t.messageId_=r?String(r):void 0,t.arrayIndexOffset_=r===0?-1:0,t.array=o,jspb.Message.initPivotAndExtensionObject_(t,n),t.convertedPrimitiveFields_={},jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS||(t.repeatedFields=i),i)for(o=0;o<i.length;o++)r=i[o],r<t.pivot_?(r=jspb.Message.getIndex_(t,r),t.array[r]=t.array[r]||jspb.Message.EMPTY_LIST_SENTINEL_):(jspb.Message.maybeInitEmptyExtensionObject_(t),t.extensionObject_[r]=t.extensionObject_[r]||jspb.Message.EMPTY_LIST_SENTINEL_);if(s&&s.length)for(o=0;o<s.length;o++)jspb.Message.computeOneofCase(t,s[o])};jspb.Message.EMPTY_LIST_SENTINEL_=goog.DEBUG&&Object.freeze?Object.freeze([]):[];jspb.Message.isArray_=function(t){return jspb.Message.ASSUME_LOCAL_ARRAYS?t instanceof Array:Array.isArray(t)};jspb.Message.isExtensionObject_=function(t){return t!==null&&typeof t=="object"&&!jspb.Message.isArray_(t)&&!(jspb.Message.SUPPORTS_UINT8ARRAY_&&t instanceof Uint8Array)};jspb.Message.initPivotAndExtensionObject_=function(t,o){var r=t.array.length,n=-1;if(r&&(n=r-1,r=t.array[n],jspb.Message.isExtensionObject_(r))){t.pivot_=jspb.Message.getFieldNumber_(t,n),t.extensionObject_=r;return}-1<o?(t.pivot_=Math.max(o,jspb.Message.getFieldNumber_(t,n+1)),t.extensionObject_=null):t.pivot_=Number.MAX_VALUE};jspb.Message.maybeInitEmptyExtensionObject_=function(t){var o=jspb.Message.getIndex_(t,t.pivot_);t.array[o]||(t.extensionObject_=t.array[o]={})};jspb.Message.toObjectList=function(t,o,r){for(var n=[],i=0;i<t.length;i++)n[i]=o.call(t[i],r,t[i]);return n};jspb.Message.toObjectExtension=function(t,o,r,n,i){for(var s in r){var p=r[s],A=n.call(t,p);if(A!=null){for(var y in p.fieldName)if(p.fieldName.hasOwnProperty(y))break;o[y]=p.toObjectFn?p.isRepeated?jspb.Message.toObjectList(A,p.toObjectFn,i):p.toObjectFn(i,A):A}}};jspb.Message.serializeBinaryExtensions=function(t,o,r,n){for(var i in r){var s=r[i],p=s.fieldInfo;if(!s.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var A=n.call(t,p);if(A!=null)if(p.isMessageType())if(s.binaryMessageSerializeFn)s.binaryWriterFn.call(o,p.fieldIndex,A,s.binaryMessageSerializeFn);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else s.binaryWriterFn.call(o,p.fieldIndex,A)}};jspb.Message.readBinaryExtension=function(t,o,r,n,i){var s=r[o.getFieldNumber()];if(s){if(r=s.fieldInfo,!s.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(r.isMessageType()){var p=new r.ctor;s.binaryReaderFn.call(o,p,s.binaryMessageDeserializeFn)}else p=s.binaryReaderFn.call(o);r.isRepeated&&!s.isPacked?(o=n.call(t,r))?o.push(p):i.call(t,r,[p]):i.call(t,r,p)}else o.skipField()};jspb.Message.getField=function(t,o){if(o<t.pivot_){o=jspb.Message.getIndex_(t,o);var r=t.array[o];return r===jspb.Message.EMPTY_LIST_SENTINEL_?t.array[o]=[]:r}if(t.extensionObject_)return r=t.extensionObject_[o],r===jspb.Message.EMPTY_LIST_SENTINEL_?t.extensionObject_[o]=[]:r};jspb.Message.getRepeatedField=function(t,o){return jspb.Message.getField(t,o)};jspb.Message.getOptionalFloatingPointField=function(t,o){return t=jspb.Message.getField(t,o),t==null?t:+t};jspb.Message.getBooleanField=function(t,o){return t=jspb.Message.getField(t,o),t==null?t:!!t};jspb.Message.getRepeatedFloatingPointField=function(t,o){var r=jspb.Message.getRepeatedField(t,o);if(t.convertedPrimitiveFields_||(t.convertedPrimitiveFields_={}),!t.convertedPrimitiveFields_[o]){for(var n=0;n<r.length;n++)r[n]=+r[n];t.convertedPrimitiveFields_[o]=!0}return r};jspb.Message.getRepeatedBooleanField=function(t,o){var r=jspb.Message.getRepeatedField(t,o);if(t.convertedPrimitiveFields_||(t.convertedPrimitiveFields_={}),!t.convertedPrimitiveFields_[o]){for(var n=0;n<r.length;n++)r[n]=!!r[n];t.convertedPrimitiveFields_[o]=!0}return r};jspb.Message.bytesAsB64=function(t){return t==null||typeof t=="string"?t:jspb.Message.SUPPORTS_UINT8ARRAY_&&t instanceof Uint8Array?goog.crypt.base64.encodeByteArray(t):(goog.asserts.fail("Cannot coerce to b64 string: "+goog.typeOf(t)),null)};jspb.Message.bytesAsU8=function(t){return t==null||t instanceof Uint8Array?t:typeof t=="string"?goog.crypt.base64.decodeStringToUint8Array(t):(goog.asserts.fail("Cannot coerce to Uint8Array: "+goog.typeOf(t)),null)};jspb.Message.bytesListAsB64=function(t){return jspb.Message.assertConsistentTypes_(t),t.length&&typeof t[0]!="string"?goog.array.map(t,jspb.Message.bytesAsB64):t};jspb.Message.bytesListAsU8=function(t){return jspb.Message.assertConsistentTypes_(t),!t.length||t[0]instanceof Uint8Array?t:goog.array.map(t,jspb.Message.bytesAsU8)};jspb.Message.assertConsistentTypes_=function(t){if(goog.DEBUG&&t&&1<t.length){var o=goog.typeOf(t[0]);goog.array.forEach(t,function(r){goog.typeOf(r)!=o&&goog.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+goog.typeOf(r)+" expected "+o)})}};jspb.Message.getFieldWithDefault=function(t,o,r){return t=jspb.Message.getField(t,o),t??r};jspb.Message.getBooleanFieldWithDefault=function(t,o,r){return t=jspb.Message.getBooleanField(t,o),t??r};jspb.Message.getFloatingPointFieldWithDefault=function(t,o,r){return t=jspb.Message.getOptionalFloatingPointField(t,o),t??r};jspb.Message.getFieldProto3=jspb.Message.getFieldWithDefault;jspb.Message.getMapField=function(t,o,r,n){if(t.wrappers_||(t.wrappers_={}),o in t.wrappers_)return t.wrappers_[o];var i=jspb.Message.getField(t,o);if(!i){if(r)return;i=[],jspb.Message.setField(t,o,i)}return t.wrappers_[o]=new jspb.Map(i,n)};jspb.Message.setField=function(t,o,r){return goog.asserts.assertInstanceof(t,jspb.Message),o<t.pivot_?t.array[jspb.Message.getIndex_(t,o)]=r:(jspb.Message.maybeInitEmptyExtensionObject_(t),t.extensionObject_[o]=r),t};jspb.Message.setProto3IntField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,0)};jspb.Message.setProto3FloatField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,0)};jspb.Message.setProto3BooleanField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,!1)};jspb.Message.setProto3StringField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,"")};jspb.Message.setProto3BytesField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,"")};jspb.Message.setProto3EnumField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,0)};jspb.Message.setProto3StringIntField=function(t,o,r){return jspb.Message.setFieldIgnoringDefault_(t,o,r,"0")};jspb.Message.setFieldIgnoringDefault_=function(t,o,r,n){return goog.asserts.assertInstanceof(t,jspb.Message),r!==n?jspb.Message.setField(t,o,r):o<t.pivot_?t.array[jspb.Message.getIndex_(t,o)]=null:(jspb.Message.maybeInitEmptyExtensionObject_(t),delete t.extensionObject_[o]),t};jspb.Message.addToRepeatedField=function(t,o,r,n){return goog.asserts.assertInstanceof(t,jspb.Message),o=jspb.Message.getRepeatedField(t,o),n!=null?o.splice(n,0,r):o.push(r),t};jspb.Message.setOneofField=function(t,o,r,n){return goog.asserts.assertInstanceof(t,jspb.Message),(r=jspb.Message.computeOneofCase(t,r))&&r!==o&&n!==void 0&&(t.wrappers_&&r in t.wrappers_&&(t.wrappers_[r]=void 0),jspb.Message.setField(t,r,void 0)),jspb.Message.setField(t,o,n)};jspb.Message.computeOneofCase=function(t,o){for(var r,n,i=0;i<o.length;i++){var s=o[i],p=jspb.Message.getField(t,s);p!=null&&(r=s,n=p,jspb.Message.setField(t,s,void 0))}return r?(jspb.Message.setField(t,r,n),r):0};jspb.Message.getWrapperField=function(t,o,r,n){if(t.wrappers_||(t.wrappers_={}),!t.wrappers_[r]){var i=jspb.Message.getField(t,r);(n||i)&&(t.wrappers_[r]=new o(i))}return t.wrappers_[r]};jspb.Message.getRepeatedWrapperField=function(t,o,r){return jspb.Message.wrapRepeatedField_(t,o,r),o=t.wrappers_[r],o==jspb.Message.EMPTY_LIST_SENTINEL_&&(o=t.wrappers_[r]=[]),o};jspb.Message.wrapRepeatedField_=function(t,o,r){if(t.wrappers_||(t.wrappers_={}),!t.wrappers_[r]){for(var n=jspb.Message.getRepeatedField(t,r),i=[],s=0;s<n.length;s++)i[s]=new o(n[s]);t.wrappers_[r]=i}};jspb.Message.setWrapperField=function(t,o,r){goog.asserts.assertInstanceof(t,jspb.Message),t.wrappers_||(t.wrappers_={});var n=r&&r.toArray();return t.wrappers_[o]=r,jspb.Message.setField(t,o,n)};jspb.Message.setOneofWrapperField=function(t,o,r,n){goog.asserts.assertInstanceof(t,jspb.Message),t.wrappers_||(t.wrappers_={});var i=n&&n.toArray();return t.wrappers_[o]=n,jspb.Message.setOneofField(t,o,r,i)};jspb.Message.setRepeatedWrapperField=function(t,o,r){goog.asserts.assertInstanceof(t,jspb.Message),t.wrappers_||(t.wrappers_={}),r=r||[];for(var n=[],i=0;i<r.length;i++)n[i]=r[i].toArray();return t.wrappers_[o]=r,jspb.Message.setField(t,o,n)};jspb.Message.addToRepeatedWrapperField=function(t,o,r,n,i){jspb.Message.wrapRepeatedField_(t,n,o);var s=t.wrappers_[o];return s||(s=t.wrappers_[o]=[]),r=r||new n,t=jspb.Message.getRepeatedField(t,o),i!=null?(s.splice(i,0,r),t.splice(i,0,r.toArray())):(s.push(r),t.push(r.toArray())),r};jspb.Message.toMap=function(t,o,r,n){for(var i={},s=0;s<t.length;s++)i[o.call(t[s])]=r?r.call(t[s],n,t[s]):t[s];return i};jspb.Message.prototype.syncMapFields_=function(){if(this.wrappers_)for(var t in this.wrappers_){var o=this.wrappers_[t];if(Array.isArray(o))for(var r=0;r<o.length;r++)o[r]&&o[r].toArray();else o&&o.toArray()}};jspb.Message.prototype.toArray=function(){return this.syncMapFields_(),this.array};jspb.Message.GENERATE_TO_STRING&&(jspb.Message.prototype.toString=function(){return this.syncMapFields_(),this.array.toString()});jspb.Message.prototype.getExtension=function(t){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var o=t.fieldIndex;if(t.isRepeated){if(t.isMessageType())return this.wrappers_[o]||(this.wrappers_[o]=goog.array.map(this.extensionObject_[o]||[],function(r){return new t.ctor(r)})),this.wrappers_[o]}else if(t.isMessageType())return!this.wrappers_[o]&&this.extensionObject_[o]&&(this.wrappers_[o]=new t.ctor(this.extensionObject_[o])),this.wrappers_[o];return this.extensionObject_[o]}};jspb.Message.prototype.setExtension=function(t,o){this.wrappers_||(this.wrappers_={}),jspb.Message.maybeInitEmptyExtensionObject_(this);var r=t.fieldIndex;return t.isRepeated?(o=o||[],t.isMessageType()?(this.wrappers_[r]=o,this.extensionObject_[r]=goog.array.map(o,function(n){return n.toArray()})):this.extensionObject_[r]=o):t.isMessageType()?(this.wrappers_[r]=o,this.extensionObject_[r]=o&&o.toArray()):this.extensionObject_[r]=o,this};jspb.Message.difference=function(t,o){if(!(t instanceof o.constructor))throw Error("Messages have different types.");var r=t.toArray();o=o.toArray();var n=[],i=0,s=r.length>o.length?r.length:o.length;for(t.getJsPbMessageId()&&(n[0]=t.getJsPbMessageId(),i=1);i<s;i++)jspb.Message.compareFields(r[i],o[i])||(n[i]=o[i]);return new t.constructor(n)};jspb.Message.equals=function(t,o){return t==o||!(!t||!o)&&t instanceof o.constructor&&jspb.Message.compareFields(t.toArray(),o.toArray())};jspb.Message.compareExtensions=function(t,o){t=t||{},o=o||{};var r={},n;for(n in t)r[n]=0;for(n in o)r[n]=0;for(n in r)if(!jspb.Message.compareFields(t[n],o[n]))return!1;return!0};jspb.Message.compareFields=function(t,o){if(t==o)return!0;if(!goog.isObject(t)||!goog.isObject(o))return typeof t=="number"&&isNaN(t)||typeof o=="number"&&isNaN(o)?String(t)==String(o):!1;if(t.constructor!=o.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&t.constructor===Uint8Array){if(t.length!=o.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!=o[r])return!1;return!0}if(t.constructor===Array){var n=void 0,i=void 0,s=Math.max(t.length,o.length);for(r=0;r<s;r++){var p=t[r],A=o[r];if(p&&p.constructor==Object&&(goog.asserts.assert(n===void 0),goog.asserts.assert(r===t.length-1),n=p,p=void 0),A&&A.constructor==Object&&(goog.asserts.assert(i===void 0),goog.asserts.assert(r===o.length-1),i=A,A=void 0),!jspb.Message.compareFields(p,A))return!1}return n||i?(n=n||{},i=i||{},jspb.Message.compareExtensions(n,i)):!0}if(t.constructor===Object)return jspb.Message.compareExtensions(t,o);throw Error("Invalid type in JSPB array")};jspb.Message.prototype.cloneMessage=function(){return jspb.Message.cloneMessage(this)};jspb.Message.prototype.clone=function(){return jspb.Message.cloneMessage(this)};jspb.Message.clone=function(t){return jspb.Message.cloneMessage(t)};jspb.Message.cloneMessage=function(t){return new t.constructor(jspb.Message.clone_(t.toArray()))};jspb.Message.copyInto=function(t,o){goog.asserts.assertInstanceof(t,jspb.Message),goog.asserts.assertInstanceof(o,jspb.Message),goog.asserts.assert(t.constructor==o.constructor,"Copy source and target message should have the same type."),t=jspb.Message.clone(t);for(var r=o.toArray(),n=t.toArray(),i=r.length=0;i<n.length;i++)r[i]=n[i];o.wrappers_=t.wrappers_,o.extensionObject_=t.extensionObject_};jspb.Message.clone_=function(t){if(Array.isArray(t)){for(var o=Array(t.length),r=0;r<t.length;r++){var n=t[r];n!=null&&(o[r]=typeof n=="object"?jspb.Message.clone_(goog.asserts.assert(n)):n)}return o}if(jspb.Message.SUPPORTS_UINT8ARRAY_&&t instanceof Uint8Array)return new Uint8Array(t);o={};for(r in t)n=t[r],n!=null&&(o[r]=typeof n=="object"?jspb.Message.clone_(goog.asserts.assert(n)):n);return o};jspb.Message.registerMessageType=function(t,o){o.messageId=t};jspb.Message.messageSetExtensions={};jspb.Message.messageSetExtensionsBinary={};jspb.Export={};typeof exports=="object"&&(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)});var da=J(Aa=>{var g=mr(),H=g,_e=function(){return this||window||_e||self||Function("return this")()}.call(null);H.exportSymbol("proto.google.protobuf.DescriptorProto",null,_e);H.exportSymbol("proto.google.protobuf.DescriptorProto.ExtensionRange",null,_e);H.exportSymbol("proto.google.protobuf.DescriptorProto.ReservedRange",null,_e);H.exportSymbol("proto.google.protobuf.EnumDescriptorProto",null,_e);H.exportSymbol("proto.google.protobuf.EnumDescriptorProto.EnumReservedRange",null,_e);H.exportSymbol("proto.google.protobuf.EnumOptions",null,_e);H.exportSymbol("proto.google.protobuf.EnumValueDescriptorProto",null,_e);H.exportSymbol("proto.google.protobuf.EnumValueOptions",null,_e);H.exportSymbol("proto.google.protobuf.ExtensionRangeOptions",null,_e);H.exportSymbol("proto.google.protobuf.FieldDescriptorProto",null,_e);H.exportSymbol("proto.google.protobuf.FieldDescriptorProto.Label",null,_e);H.exportSymbol("proto.google.protobuf.FieldDescriptorProto.Type",null,_e);H.exportSymbol("proto.google.protobuf.FieldOptions",null,_e);H.exportSymbol("proto.google.protobuf.FieldOptions.CType",null,_e);H.exportSymbol("proto.google.protobuf.FieldOptions.JSType",null,_e);H.exportSymbol("proto.google.protobuf.FileDescriptorProto",null,_e);H.exportSymbol("proto.google.protobuf.FileDescriptorSet",null,_e);H.exportSymbol("proto.google.protobuf.FileOptions",null,_e);H.exportSymbol("proto.google.protobuf.FileOptions.OptimizeMode",null,_e);H.exportSymbol("proto.google.protobuf.GeneratedCodeInfo",null,_e);H.exportSymbol("proto.google.protobuf.GeneratedCodeInfo.Annotation",null,_e);H.exportSymbol("proto.google.protobuf.MessageOptions",null,_e);H.exportSymbol("proto.google.protobuf.MethodDescriptorProto",null,_e);H.exportSymbol("proto.google.protobuf.MethodOptions",null,_e);H.exportSymbol("proto.google.protobuf.MethodOptions.IdempotencyLevel",null,_e);H.exportSymbol("proto.google.protobuf.OneofDescriptorProto",null,_e);H.exportSymbol("proto.google.protobuf.OneofOptions",null,_e);H.exportSymbol("proto.google.protobuf.ServiceDescriptorProto",null,_e);H.exportSymbol("proto.google.protobuf.ServiceOptions",null,_e);H.exportSymbol("proto.google.protobuf.SourceCodeInfo",null,_e);H.exportSymbol("proto.google.protobuf.SourceCodeInfo.Location",null,_e);H.exportSymbol("proto.google.protobuf.UninterpretedOption",null,_e);H.exportSymbol("proto.google.protobuf.UninterpretedOption.NamePart",null,_e);proto.google.protobuf.FileDescriptorSet=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.FileDescriptorSet.repeatedFields_,null)};H.inherits(proto.google.protobuf.FileDescriptorSet,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.FileDescriptorSet.displayName="proto.google.protobuf.FileDescriptorSet");proto.google.protobuf.FileDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.FileDescriptorProto.repeatedFields_,null)};H.inherits(proto.google.protobuf.FileDescriptorProto,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.FileDescriptorProto.displayName="proto.google.protobuf.FileDescriptorProto");proto.google.protobuf.DescriptorProto=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.DescriptorProto.repeatedFields_,null)};H.inherits(proto.google.protobuf.DescriptorProto,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.displayName="proto.google.protobuf.DescriptorProto");proto.google.protobuf.DescriptorProto.ExtensionRange=function(t){g.Message.initialize(this,t,0,-1,null,null)};H.inherits(proto.google.protobuf.DescriptorProto.ExtensionRange,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.ExtensionRange.displayName="proto.google.protobuf.DescriptorProto.ExtensionRange");proto.google.protobuf.DescriptorProto.ReservedRange=function(t){g.Message.initialize(this,t,0,-1,null,null)};H.inherits(proto.google.protobuf.DescriptorProto.ReservedRange,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.ReservedRange.displayName="proto.google.protobuf.DescriptorProto.ReservedRange");proto.google.protobuf.ExtensionRangeOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.ExtensionRangeOptions.repeatedFields_,null)};H.inherits(proto.google.protobuf.ExtensionRangeOptions,g.Message);H.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(t){g.Message.initialize(this,t,0,-1,null,null)};H.inherits(proto.google.protobuf.FieldDescriptorProto,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.FieldDescriptorProto.displayName="proto.google.protobuf.FieldDescriptorProto");proto.google.protobuf.OneofDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,null,null)};H.inherits(proto.google.protobuf.OneofDescriptorProto,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.OneofDescriptorProto.displayName="proto.google.protobuf.OneofDescriptorProto");proto.google.protobuf.EnumDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.EnumDescriptorProto.repeatedFields_,null)};H.inherits(proto.google.protobuf.EnumDescriptorProto,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumDescriptorProto.displayName="proto.google.protobuf.EnumDescriptorProto");proto.google.protobuf.EnumDescriptorProto.EnumReservedRange=function(t){g.Message.initialize(this,t,0,-1,null,null)};H.inherits(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.displayName="proto.google.protobuf.EnumDescriptorProto.EnumReservedRange");proto.google.protobuf.EnumValueDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,null,null)};H.inherits(proto.google.protobuf.EnumValueDescriptorProto,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumValueDescriptorProto.displayName="proto.google.protobuf.EnumValueDescriptorProto");proto.google.protobuf.ServiceDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.ServiceDescriptorProto.repeatedFields_,null)};H.inherits(proto.google.protobuf.ServiceDescriptorProto,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.ServiceDescriptorProto.displayName="proto.google.protobuf.ServiceDescriptorProto");proto.google.protobuf.MethodDescriptorProto=function(t){g.Message.initialize(this,t,0,-1,null,null)};H.inherits(proto.google.protobuf.MethodDescriptorProto,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.MethodDescriptorProto.displayName="proto.google.protobuf.MethodDescriptorProto");proto.google.protobuf.FileOptions=function(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.FileOptions.repeatedFields_,null)};H.inherits(proto.google.protobuf.FileOptions,g.Message);H.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(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.MessageOptions.repeatedFields_,null)};H.inherits(proto.google.protobuf.MessageOptions,g.Message);H.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(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.FieldOptions.repeatedFields_,null)};H.inherits(proto.google.protobuf.FieldOptions,g.Message);H.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(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.OneofOptions.repeatedFields_,null)};H.inherits(proto.google.protobuf.OneofOptions,g.Message);H.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(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.EnumOptions.repeatedFields_,null)};H.inherits(proto.google.protobuf.EnumOptions,g.Message);H.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(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.EnumValueOptions.repeatedFields_,null)};H.inherits(proto.google.protobuf.EnumValueOptions,g.Message);H.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(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.ServiceOptions.repeatedFields_,null)};H.inherits(proto.google.protobuf.ServiceOptions,g.Message);H.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(t){g.Message.initialize(this,t,0,500,proto.google.protobuf.MethodOptions.repeatedFields_,null)};H.inherits(proto.google.protobuf.MethodOptions,g.Message);H.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(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.UninterpretedOption.repeatedFields_,null)};H.inherits(proto.google.protobuf.UninterpretedOption,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.UninterpretedOption.displayName="proto.google.protobuf.UninterpretedOption");proto.google.protobuf.UninterpretedOption.NamePart=function(t){g.Message.initialize(this,t,0,-1,null,null)};H.inherits(proto.google.protobuf.UninterpretedOption.NamePart,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.UninterpretedOption.NamePart.displayName="proto.google.protobuf.UninterpretedOption.NamePart");proto.google.protobuf.SourceCodeInfo=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.SourceCodeInfo.repeatedFields_,null)};H.inherits(proto.google.protobuf.SourceCodeInfo,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.SourceCodeInfo.displayName="proto.google.protobuf.SourceCodeInfo");proto.google.protobuf.SourceCodeInfo.Location=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_,null)};H.inherits(proto.google.protobuf.SourceCodeInfo.Location,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.SourceCodeInfo.Location.displayName="proto.google.protobuf.SourceCodeInfo.Location");proto.google.protobuf.GeneratedCodeInfo=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.GeneratedCodeInfo.repeatedFields_,null)};H.inherits(proto.google.protobuf.GeneratedCodeInfo,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.GeneratedCodeInfo.displayName="proto.google.protobuf.GeneratedCodeInfo");proto.google.protobuf.GeneratedCodeInfo.Annotation=function(t){g.Message.initialize(this,t,0,-1,proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_,null)};H.inherits(proto.google.protobuf.GeneratedCodeInfo.Annotation,g.Message);H.DEBUG&&!COMPILED&&(proto.google.protobuf.GeneratedCodeInfo.Annotation.displayName="proto.google.protobuf.GeneratedCodeInfo.Annotation");proto.google.protobuf.FileDescriptorSet.repeatedFields_=[1];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileDescriptorSet.prototype.toObject=function(t){return proto.google.protobuf.FileDescriptorSet.toObject(t,this)},proto.google.protobuf.FileDescriptorSet.toObject=function(t,o){var r,n={fileList:g.Message.toObjectList(o.getFileList(),proto.google.protobuf.FileDescriptorProto.toObject,t)};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.FileDescriptorSet.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.FileDescriptorSet;return proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader(r,o)};proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.google.protobuf.FileDescriptorProto;o.readMessage(n,proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader),t.addFile(n);break;default:o.skipField();break}}return t};proto.google.protobuf.FileDescriptorSet.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getFileList(),r.length>0&&o.writeRepeatedMessage(1,r,proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter)};proto.google.protobuf.FileDescriptorSet.prototype.getFileList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.FileDescriptorProto,1)};proto.google.protobuf.FileDescriptorSet.prototype.setFileList=function(t){return g.Message.setRepeatedWrapperField(this,1,t)};proto.google.protobuf.FileDescriptorSet.prototype.addFile=function(t,o){return g.Message.addToRepeatedWrapperField(this,1,t,proto.google.protobuf.FileDescriptorProto,o)};proto.google.protobuf.FileDescriptorSet.prototype.clearFileList=function(){return this.setFileList([])};proto.google.protobuf.FileDescriptorProto.repeatedFields_=[3,10,11,4,5,6,7];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.FileDescriptorProto.toObject(t,this)},proto.google.protobuf.FileDescriptorProto.toObject=function(t,o){var r,n={name:(r=g.Message.getField(o,1))==null?void 0:r,pb_package:(r=g.Message.getField(o,2))==null?void 0:r,dependencyList:(r=g.Message.getRepeatedField(o,3))==null?void 0:r,publicDependencyList:(r=g.Message.getRepeatedField(o,10))==null?void 0:r,weakDependencyList:(r=g.Message.getRepeatedField(o,11))==null?void 0:r,messageTypeList:g.Message.toObjectList(o.getMessageTypeList(),proto.google.protobuf.DescriptorProto.toObject,t),enumTypeList:g.Message.toObjectList(o.getEnumTypeList(),proto.google.protobuf.EnumDescriptorProto.toObject,t),serviceList:g.Message.toObjectList(o.getServiceList(),proto.google.protobuf.ServiceDescriptorProto.toObject,t),extensionList:g.Message.toObjectList(o.getExtensionList(),proto.google.protobuf.FieldDescriptorProto.toObject,t),options:(r=o.getOptions())&&proto.google.protobuf.FileOptions.toObject(t,r),sourceCodeInfo:(r=o.getSourceCodeInfo())&&proto.google.protobuf.SourceCodeInfo.toObject(t,r),syntax:(r=g.Message.getField(o,12))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.FileDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.FileDescriptorProto;return proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var s=o.readString();t.setName(s);break;case 2:var s=o.readString();t.setPackage(s);break;case 3:var s=o.readString();t.addDependency(s);break;case 10:for(var i=o.isDelimited()?o.readPackedInt32():[o.readInt32()],n=0;n<i.length;n++)t.addPublicDependency(i[n]);break;case 11:for(var i=o.isDelimited()?o.readPackedInt32():[o.readInt32()],n=0;n<i.length;n++)t.addWeakDependency(i[n]);break;case 4:var s=new proto.google.protobuf.DescriptorProto;o.readMessage(s,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader),t.addMessageType(s);break;case 5:var s=new proto.google.protobuf.EnumDescriptorProto;o.readMessage(s,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader),t.addEnumType(s);break;case 6:var s=new proto.google.protobuf.ServiceDescriptorProto;o.readMessage(s,proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader),t.addService(s);break;case 7:var s=new proto.google.protobuf.FieldDescriptorProto;o.readMessage(s,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),t.addExtension$(s);break;case 8:var s=new proto.google.protobuf.FileOptions;o.readMessage(s,proto.google.protobuf.FileOptions.deserializeBinaryFromReader),t.setOptions(s);break;case 9:var s=new proto.google.protobuf.SourceCodeInfo;o.readMessage(s,proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader),t.setSourceCodeInfo(s);break;case 12:var s=o.readString();t.setSyntax(s);break;default:o.skipField();break}}return t};proto.google.protobuf.FileDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,2),r!=null&&o.writeString(2,r),r=t.getDependencyList(),r.length>0&&o.writeRepeatedString(3,r),r=t.getPublicDependencyList(),r.length>0&&o.writeRepeatedInt32(10,r),r=t.getWeakDependencyList(),r.length>0&&o.writeRepeatedInt32(11,r),r=t.getMessageTypeList(),r.length>0&&o.writeRepeatedMessage(4,r,proto.google.protobuf.DescriptorProto.serializeBinaryToWriter),r=t.getEnumTypeList(),r.length>0&&o.writeRepeatedMessage(5,r,proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter),r=t.getServiceList(),r.length>0&&o.writeRepeatedMessage(6,r,proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter),r=t.getExtensionList(),r.length>0&&o.writeRepeatedMessage(7,r,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),r=t.getOptions(),r!=null&&o.writeMessage(8,r,proto.google.protobuf.FileOptions.serializeBinaryToWriter),r=t.getSourceCodeInfo(),r!=null&&o.writeMessage(9,r,proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter),r=g.Message.getField(t,12),r!=null&&o.writeString(12,r)};proto.google.protobuf.FileDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.FileDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.FileDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.FileDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.FileDescriptorProto.prototype.getPackage=function(){return g.Message.getFieldWithDefault(this,2,"")};proto.google.protobuf.FileDescriptorProto.prototype.setPackage=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.FileDescriptorProto.prototype.clearPackage=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.FileDescriptorProto.prototype.hasPackage=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.FileDescriptorProto.prototype.getDependencyList=function(){return g.Message.getRepeatedField(this,3)};proto.google.protobuf.FileDescriptorProto.prototype.setDependencyList=function(t){return g.Message.setField(this,3,t||[])};proto.google.protobuf.FileDescriptorProto.prototype.addDependency=function(t,o){return g.Message.addToRepeatedField(this,3,t,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearDependencyList=function(){return this.setDependencyList([])};proto.google.protobuf.FileDescriptorProto.prototype.getPublicDependencyList=function(){return g.Message.getRepeatedField(this,10)};proto.google.protobuf.FileDescriptorProto.prototype.setPublicDependencyList=function(t){return g.Message.setField(this,10,t||[])};proto.google.protobuf.FileDescriptorProto.prototype.addPublicDependency=function(t,o){return g.Message.addToRepeatedField(this,10,t,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearPublicDependencyList=function(){return this.setPublicDependencyList([])};proto.google.protobuf.FileDescriptorProto.prototype.getWeakDependencyList=function(){return g.Message.getRepeatedField(this,11)};proto.google.protobuf.FileDescriptorProto.prototype.setWeakDependencyList=function(t){return g.Message.setField(this,11,t||[])};proto.google.protobuf.FileDescriptorProto.prototype.addWeakDependency=function(t,o){return g.Message.addToRepeatedField(this,11,t,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearWeakDependencyList=function(){return this.setWeakDependencyList([])};proto.google.protobuf.FileDescriptorProto.prototype.getMessageTypeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto,4)};proto.google.protobuf.FileDescriptorProto.prototype.setMessageTypeList=function(t){return g.Message.setRepeatedWrapperField(this,4,t)};proto.google.protobuf.FileDescriptorProto.prototype.addMessageType=function(t,o){return g.Message.addToRepeatedWrapperField(this,4,t,proto.google.protobuf.DescriptorProto,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearMessageTypeList=function(){return this.setMessageTypeList([])};proto.google.protobuf.FileDescriptorProto.prototype.getEnumTypeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto,5)};proto.google.protobuf.FileDescriptorProto.prototype.setEnumTypeList=function(t){return g.Message.setRepeatedWrapperField(this,5,t)};proto.google.protobuf.FileDescriptorProto.prototype.addEnumType=function(t,o){return g.Message.addToRepeatedWrapperField(this,5,t,proto.google.protobuf.EnumDescriptorProto,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearEnumTypeList=function(){return this.setEnumTypeList([])};proto.google.protobuf.FileDescriptorProto.prototype.getServiceList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.ServiceDescriptorProto,6)};proto.google.protobuf.FileDescriptorProto.prototype.setServiceList=function(t){return g.Message.setRepeatedWrapperField(this,6,t)};proto.google.protobuf.FileDescriptorProto.prototype.addService=function(t,o){return g.Message.addToRepeatedWrapperField(this,6,t,proto.google.protobuf.ServiceDescriptorProto,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearServiceList=function(){return this.setServiceList([])};proto.google.protobuf.FileDescriptorProto.prototype.getExtensionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,7)};proto.google.protobuf.FileDescriptorProto.prototype.setExtensionList=function(t){return g.Message.setRepeatedWrapperField(this,7,t)};proto.google.protobuf.FileDescriptorProto.prototype.addExtension$=function(t,o){return g.Message.addToRepeatedWrapperField(this,7,t,proto.google.protobuf.FieldDescriptorProto,o)};proto.google.protobuf.FileDescriptorProto.prototype.clearExtensionList=function(){return this.setExtensionList([])};proto.google.protobuf.FileDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.FileOptions,8)};proto.google.protobuf.FileDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,8,t)};proto.google.protobuf.FileDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.FileDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,8)!=null};proto.google.protobuf.FileDescriptorProto.prototype.getSourceCodeInfo=function(){return g.Message.getWrapperField(this,proto.google.protobuf.SourceCodeInfo,9)};proto.google.protobuf.FileDescriptorProto.prototype.setSourceCodeInfo=function(t){return g.Message.setWrapperField(this,9,t)};proto.google.protobuf.FileDescriptorProto.prototype.clearSourceCodeInfo=function(){return this.setSourceCodeInfo(void 0)};proto.google.protobuf.FileDescriptorProto.prototype.hasSourceCodeInfo=function(){return g.Message.getField(this,9)!=null};proto.google.protobuf.FileDescriptorProto.prototype.getSyntax=function(){return g.Message.getFieldWithDefault(this,12,"")};proto.google.protobuf.FileDescriptorProto.prototype.setSyntax=function(t){return g.Message.setField(this,12,t)};proto.google.protobuf.FileDescriptorProto.prototype.clearSyntax=function(){return g.Message.setField(this,12,void 0)};proto.google.protobuf.FileDescriptorProto.prototype.hasSyntax=function(){return g.Message.getField(this,12)!=null};proto.google.protobuf.DescriptorProto.repeatedFields_=[2,6,3,4,5,8,9,10];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.DescriptorProto.toObject(t,this)},proto.google.protobuf.DescriptorProto.toObject=function(t,o){var r,n={name:(r=g.Message.getField(o,1))==null?void 0:r,fieldList:g.Message.toObjectList(o.getFieldList(),proto.google.protobuf.FieldDescriptorProto.toObject,t),extensionList:g.Message.toObjectList(o.getExtensionList(),proto.google.protobuf.FieldDescriptorProto.toObject,t),nestedTypeList:g.Message.toObjectList(o.getNestedTypeList(),proto.google.protobuf.DescriptorProto.toObject,t),enumTypeList:g.Message.toObjectList(o.getEnumTypeList(),proto.google.protobuf.EnumDescriptorProto.toObject,t),extensionRangeList:g.Message.toObjectList(o.getExtensionRangeList(),proto.google.protobuf.DescriptorProto.ExtensionRange.toObject,t),oneofDeclList:g.Message.toObjectList(o.getOneofDeclList(),proto.google.protobuf.OneofDescriptorProto.toObject,t),options:(r=o.getOptions())&&proto.google.protobuf.MessageOptions.toObject(t,r),reservedRangeList:g.Message.toObjectList(o.getReservedRangeList(),proto.google.protobuf.DescriptorProto.ReservedRange.toObject,t),reservedNameList:(r=g.Message.getRepeatedField(o,10))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.DescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.DescriptorProto;return proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setName(n);break;case 2:var n=new proto.google.protobuf.FieldDescriptorProto;o.readMessage(n,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),t.addField(n);break;case 6:var n=new proto.google.protobuf.FieldDescriptorProto;o.readMessage(n,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),t.addExtension$(n);break;case 3:var n=new proto.google.protobuf.DescriptorProto;o.readMessage(n,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader),t.addNestedType(n);break;case 4:var n=new proto.google.protobuf.EnumDescriptorProto;o.readMessage(n,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader),t.addEnumType(n);break;case 5:var n=new proto.google.protobuf.DescriptorProto.ExtensionRange;o.readMessage(n,proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader),t.addExtensionRange(n);break;case 8:var n=new proto.google.protobuf.OneofDescriptorProto;o.readMessage(n,proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader),t.addOneofDecl(n);break;case 7:var n=new proto.google.protobuf.MessageOptions;o.readMessage(n,proto.google.protobuf.MessageOptions.deserializeBinaryFromReader),t.setOptions(n);break;case 9:var n=new proto.google.protobuf.DescriptorProto.ReservedRange;o.readMessage(n,proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader),t.addReservedRange(n);break;case 10:var n=o.readString();t.addReservedName(n);break;default:o.skipField();break}}return t};proto.google.protobuf.DescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.DescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.DescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=t.getFieldList(),r.length>0&&o.writeRepeatedMessage(2,r,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),r=t.getExtensionList(),r.length>0&&o.writeRepeatedMessage(6,r,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),r=t.getNestedTypeList(),r.length>0&&o.writeRepeatedMessage(3,r,proto.google.protobuf.DescriptorProto.serializeBinaryToWriter),r=t.getEnumTypeList(),r.length>0&&o.writeRepeatedMessage(4,r,proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter),r=t.getExtensionRangeList(),r.length>0&&o.writeRepeatedMessage(5,r,proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter),r=t.getOneofDeclList(),r.length>0&&o.writeRepeatedMessage(8,r,proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter),r=t.getOptions(),r!=null&&o.writeMessage(7,r,proto.google.protobuf.MessageOptions.serializeBinaryToWriter),r=t.getReservedRangeList(),r.length>0&&o.writeRepeatedMessage(9,r,proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter),r=t.getReservedNameList(),r.length>0&&o.writeRepeatedString(10,r)};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.toObject=function(t){return proto.google.protobuf.DescriptorProto.ExtensionRange.toObject(t,this)},proto.google.protobuf.DescriptorProto.ExtensionRange.toObject=function(t,o){var r,n={start:(r=g.Message.getField(o,1))==null?void 0:r,end:(r=g.Message.getField(o,2))==null?void 0:r,options:(r=o.getOptions())&&proto.google.protobuf.ExtensionRangeOptions.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.DescriptorProto.ExtensionRange;return proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader(r,o)};proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readInt32();t.setStart(n);break;case 2:var n=o.readInt32();t.setEnd(n);break;case 3:var n=new proto.google.protobuf.ExtensionRangeOptions;o.readMessage(n,proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader),t.setOptions(n);break;default:o.skipField();break}}return t};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeInt32(1,r),r=g.Message.getField(t,2),r!=null&&o.writeInt32(2,r),r=t.getOptions(),r!=null&&o.writeMessage(3,r,proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getStart=function(){return g.Message.getFieldWithDefault(this,1,0)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setStart=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearStart=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasStart=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getEnd=function(){return g.Message.getFieldWithDefault(this,2,0)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setEnd=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearEnd=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasEnd=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.ExtensionRangeOptions,3)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setOptions=function(t){return g.Message.setWrapperField(this,3,t)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasOptions=function(){return g.Message.getField(this,3)!=null};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.ReservedRange.prototype.toObject=function(t){return proto.google.protobuf.DescriptorProto.ReservedRange.toObject(t,this)},proto.google.protobuf.DescriptorProto.ReservedRange.toObject=function(t,o){var r,n={start:(r=g.Message.getField(o,1))==null?void 0:r,end:(r=g.Message.getField(o,2))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.DescriptorProto.ReservedRange;return proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader(r,o)};proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readInt32();t.setStart(n);break;case 2:var n=o.readInt32();t.setEnd(n);break;default:o.skipField();break}}return t};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeInt32(1,r),r=g.Message.getField(t,2),r!=null&&o.writeInt32(2,r)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getStart=function(){return g.Message.getFieldWithDefault(this,1,0)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setStart=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearStart=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasStart=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getEnd=function(){return g.Message.getFieldWithDefault(this,2,0)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setEnd=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearEnd=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasEnd=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.DescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.DescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.DescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.DescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.DescriptorProto.prototype.getFieldList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,2)};proto.google.protobuf.DescriptorProto.prototype.setFieldList=function(t){return g.Message.setRepeatedWrapperField(this,2,t)};proto.google.protobuf.DescriptorProto.prototype.addField=function(t,o){return g.Message.addToRepeatedWrapperField(this,2,t,proto.google.protobuf.FieldDescriptorProto,o)};proto.google.protobuf.DescriptorProto.prototype.clearFieldList=function(){return this.setFieldList([])};proto.google.protobuf.DescriptorProto.prototype.getExtensionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,6)};proto.google.protobuf.DescriptorProto.prototype.setExtensionList=function(t){return g.Message.setRepeatedWrapperField(this,6,t)};proto.google.protobuf.DescriptorProto.prototype.addExtension$=function(t,o){return g.Message.addToRepeatedWrapperField(this,6,t,proto.google.protobuf.FieldDescriptorProto,o)};proto.google.protobuf.DescriptorProto.prototype.clearExtensionList=function(){return this.setExtensionList([])};proto.google.protobuf.DescriptorProto.prototype.getNestedTypeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto,3)};proto.google.protobuf.DescriptorProto.prototype.setNestedTypeList=function(t){return g.Message.setRepeatedWrapperField(this,3,t)};proto.google.protobuf.DescriptorProto.prototype.addNestedType=function(t,o){return g.Message.addToRepeatedWrapperField(this,3,t,proto.google.protobuf.DescriptorProto,o)};proto.google.protobuf.DescriptorProto.prototype.clearNestedTypeList=function(){return this.setNestedTypeList([])};proto.google.protobuf.DescriptorProto.prototype.getEnumTypeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto,4)};proto.google.protobuf.DescriptorProto.prototype.setEnumTypeList=function(t){return g.Message.setRepeatedWrapperField(this,4,t)};proto.google.protobuf.DescriptorProto.prototype.addEnumType=function(t,o){return g.Message.addToRepeatedWrapperField(this,4,t,proto.google.protobuf.EnumDescriptorProto,o)};proto.google.protobuf.DescriptorProto.prototype.clearEnumTypeList=function(){return this.setEnumTypeList([])};proto.google.protobuf.DescriptorProto.prototype.getExtensionRangeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto.ExtensionRange,5)};proto.google.protobuf.DescriptorProto.prototype.setExtensionRangeList=function(t){return g.Message.setRepeatedWrapperField(this,5,t)};proto.google.protobuf.DescriptorProto.prototype.addExtensionRange=function(t,o){return g.Message.addToRepeatedWrapperField(this,5,t,proto.google.protobuf.DescriptorProto.ExtensionRange,o)};proto.google.protobuf.DescriptorProto.prototype.clearExtensionRangeList=function(){return this.setExtensionRangeList([])};proto.google.protobuf.DescriptorProto.prototype.getOneofDeclList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.OneofDescriptorProto,8)};proto.google.protobuf.DescriptorProto.prototype.setOneofDeclList=function(t){return g.Message.setRepeatedWrapperField(this,8,t)};proto.google.protobuf.DescriptorProto.prototype.addOneofDecl=function(t,o){return g.Message.addToRepeatedWrapperField(this,8,t,proto.google.protobuf.OneofDescriptorProto,o)};proto.google.protobuf.DescriptorProto.prototype.clearOneofDeclList=function(){return this.setOneofDeclList([])};proto.google.protobuf.DescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.MessageOptions,7)};proto.google.protobuf.DescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,7,t)};proto.google.protobuf.DescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.DescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,7)!=null};proto.google.protobuf.DescriptorProto.prototype.getReservedRangeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto.ReservedRange,9)};proto.google.protobuf.DescriptorProto.prototype.setReservedRangeList=function(t){return g.Message.setRepeatedWrapperField(this,9,t)};proto.google.protobuf.DescriptorProto.prototype.addReservedRange=function(t,o){return g.Message.addToRepeatedWrapperField(this,9,t,proto.google.protobuf.DescriptorProto.ReservedRange,o)};proto.google.protobuf.DescriptorProto.prototype.clearReservedRangeList=function(){return this.setReservedRangeList([])};proto.google.protobuf.DescriptorProto.prototype.getReservedNameList=function(){return g.Message.getRepeatedField(this,10)};proto.google.protobuf.DescriptorProto.prototype.setReservedNameList=function(t){return g.Message.setField(this,10,t||[])};proto.google.protobuf.DescriptorProto.prototype.addReservedName=function(t,o){return g.Message.addToRepeatedField(this,10,t,o)};proto.google.protobuf.DescriptorProto.prototype.clearReservedNameList=function(){return this.setReservedNameList([])};proto.google.protobuf.ExtensionRangeOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ExtensionRangeOptions.prototype.toObject=function(t){return proto.google.protobuf.ExtensionRangeOptions.toObject(t,this)},proto.google.protobuf.ExtensionRangeOptions.toObject=function(t,o){var r,n={uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.ExtensionRangeOptions.extensions,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.ExtensionRangeOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.ExtensionRangeOptions;return proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.ExtensionRangeOptions.extensionsBinary,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension,proto.google.protobuf.ExtensionRangeOptions.prototype.setExtension);break}}return t};proto.google.protobuf.ExtensionRangeOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.ExtensionRangeOptions.extensionsBinary,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension)};proto.google.protobuf.ExtensionRangeOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.ExtensionRangeOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.ExtensionRangeOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.ExtensionRangeOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FieldDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.FieldDescriptorProto.toObject(t,this)},proto.google.protobuf.FieldDescriptorProto.toObject=function(t,o){var r,n={name:(r=g.Message.getField(o,1))==null?void 0:r,number:(r=g.Message.getField(o,3))==null?void 0:r,label:(r=g.Message.getField(o,4))==null?void 0:r,type:(r=g.Message.getField(o,5))==null?void 0:r,typeName:(r=g.Message.getField(o,6))==null?void 0:r,extendee:(r=g.Message.getField(o,2))==null?void 0:r,defaultValue:(r=g.Message.getField(o,7))==null?void 0:r,oneofIndex:(r=g.Message.getField(o,9))==null?void 0:r,jsonName:(r=g.Message.getField(o,10))==null?void 0:r,options:(r=o.getOptions())&&proto.google.protobuf.FieldOptions.toObject(t,r),proto3Optional:(r=g.Message.getBooleanField(o,17))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.FieldDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.FieldDescriptorProto;return proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setName(n);break;case 3:var n=o.readInt32();t.setNumber(n);break;case 4:var n=o.readEnum();t.setLabel(n);break;case 5:var n=o.readEnum();t.setType(n);break;case 6:var n=o.readString();t.setTypeName(n);break;case 2:var n=o.readString();t.setExtendee(n);break;case 7:var n=o.readString();t.setDefaultValue(n);break;case 9:var n=o.readInt32();t.setOneofIndex(n);break;case 10:var n=o.readString();t.setJsonName(n);break;case 8:var n=new proto.google.protobuf.FieldOptions;o.readMessage(n,proto.google.protobuf.FieldOptions.deserializeBinaryFromReader),t.setOptions(n);break;case 17:var n=o.readBool();t.setProto3Optional(n);break;default:o.skipField();break}}return t};proto.google.protobuf.FieldDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,3),r!=null&&o.writeInt32(3,r),r=g.Message.getField(t,4),r!=null&&o.writeEnum(4,r),r=g.Message.getField(t,5),r!=null&&o.writeEnum(5,r),r=g.Message.getField(t,6),r!=null&&o.writeString(6,r),r=g.Message.getField(t,2),r!=null&&o.writeString(2,r),r=g.Message.getField(t,7),r!=null&&o.writeString(7,r),r=g.Message.getField(t,9),r!=null&&o.writeInt32(9,r),r=g.Message.getField(t,10),r!=null&&o.writeString(10,r),r=t.getOptions(),r!=null&&o.writeMessage(8,r,proto.google.protobuf.FieldOptions.serializeBinaryToWriter),r=g.Message.getField(t,17),r!=null&&o.writeBool(17,r)};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 g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.FieldDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getNumber=function(){return g.Message.getFieldWithDefault(this,3,0)};proto.google.protobuf.FieldDescriptorProto.prototype.setNumber=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearNumber=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasNumber=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getLabel=function(){return g.Message.getFieldWithDefault(this,4,1)};proto.google.protobuf.FieldDescriptorProto.prototype.setLabel=function(t){return g.Message.setField(this,4,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearLabel=function(){return g.Message.setField(this,4,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasLabel=function(){return g.Message.getField(this,4)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getType=function(){return g.Message.getFieldWithDefault(this,5,1)};proto.google.protobuf.FieldDescriptorProto.prototype.setType=function(t){return g.Message.setField(this,5,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearType=function(){return g.Message.setField(this,5,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasType=function(){return g.Message.getField(this,5)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getTypeName=function(){return g.Message.getFieldWithDefault(this,6,"")};proto.google.protobuf.FieldDescriptorProto.prototype.setTypeName=function(t){return g.Message.setField(this,6,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearTypeName=function(){return g.Message.setField(this,6,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasTypeName=function(){return g.Message.getField(this,6)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getExtendee=function(){return g.Message.getFieldWithDefault(this,2,"")};proto.google.protobuf.FieldDescriptorProto.prototype.setExtendee=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearExtendee=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasExtendee=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getDefaultValue=function(){return g.Message.getFieldWithDefault(this,7,"")};proto.google.protobuf.FieldDescriptorProto.prototype.setDefaultValue=function(t){return g.Message.setField(this,7,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearDefaultValue=function(){return g.Message.setField(this,7,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasDefaultValue=function(){return g.Message.getField(this,7)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getOneofIndex=function(){return g.Message.getFieldWithDefault(this,9,0)};proto.google.protobuf.FieldDescriptorProto.prototype.setOneofIndex=function(t){return g.Message.setField(this,9,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearOneofIndex=function(){return g.Message.setField(this,9,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasOneofIndex=function(){return g.Message.getField(this,9)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getJsonName=function(){return g.Message.getFieldWithDefault(this,10,"")};proto.google.protobuf.FieldDescriptorProto.prototype.setJsonName=function(t){return g.Message.setField(this,10,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearJsonName=function(){return g.Message.setField(this,10,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasJsonName=function(){return g.Message.getField(this,10)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.FieldOptions,8)};proto.google.protobuf.FieldDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,8,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,8)!=null};proto.google.protobuf.FieldDescriptorProto.prototype.getProto3Optional=function(){return g.Message.getBooleanFieldWithDefault(this,17,!1)};proto.google.protobuf.FieldDescriptorProto.prototype.setProto3Optional=function(t){return g.Message.setField(this,17,t)};proto.google.protobuf.FieldDescriptorProto.prototype.clearProto3Optional=function(){return g.Message.setField(this,17,void 0)};proto.google.protobuf.FieldDescriptorProto.prototype.hasProto3Optional=function(){return g.Message.getField(this,17)!=null};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.OneofDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.OneofDescriptorProto.toObject(t,this)},proto.google.protobuf.OneofDescriptorProto.toObject=function(t,o){var r,n={name:(r=g.Message.getField(o,1))==null?void 0:r,options:(r=o.getOptions())&&proto.google.protobuf.OneofOptions.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.OneofDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.OneofDescriptorProto;return proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setName(n);break;case 2:var n=new proto.google.protobuf.OneofOptions;o.readMessage(n,proto.google.protobuf.OneofOptions.deserializeBinaryFromReader),t.setOptions(n);break;default:o.skipField();break}}return t};proto.google.protobuf.OneofDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=t.getOptions(),r!=null&&o.writeMessage(2,r,proto.google.protobuf.OneofOptions.serializeBinaryToWriter)};proto.google.protobuf.OneofDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.OneofDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.OneofDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.OneofDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.OneofDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.OneofOptions,2)};proto.google.protobuf.OneofDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,2,t)};proto.google.protobuf.OneofDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.OneofDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.EnumDescriptorProto.repeatedFields_=[2,4,5];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.EnumDescriptorProto.toObject(t,this)},proto.google.protobuf.EnumDescriptorProto.toObject=function(t,o){var r,n={name:(r=g.Message.getField(o,1))==null?void 0:r,valueList:g.Message.toObjectList(o.getValueList(),proto.google.protobuf.EnumValueDescriptorProto.toObject,t),options:(r=o.getOptions())&&proto.google.protobuf.EnumOptions.toObject(t,r),reservedRangeList:g.Message.toObjectList(o.getReservedRangeList(),proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject,t),reservedNameList:(r=g.Message.getRepeatedField(o,5))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.EnumDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.EnumDescriptorProto;return proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setName(n);break;case 2:var n=new proto.google.protobuf.EnumValueDescriptorProto;o.readMessage(n,proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader),t.addValue(n);break;case 3:var n=new proto.google.protobuf.EnumOptions;o.readMessage(n,proto.google.protobuf.EnumOptions.deserializeBinaryFromReader),t.setOptions(n);break;case 4:var n=new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange;o.readMessage(n,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader),t.addReservedRange(n);break;case 5:var n=o.readString();t.addReservedName(n);break;default:o.skipField();break}}return t};proto.google.protobuf.EnumDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=t.getValueList(),r.length>0&&o.writeRepeatedMessage(2,r,proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter),r=t.getOptions(),r!=null&&o.writeMessage(3,r,proto.google.protobuf.EnumOptions.serializeBinaryToWriter),r=t.getReservedRangeList(),r.length>0&&o.writeRepeatedMessage(4,r,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter),r=t.getReservedNameList(),r.length>0&&o.writeRepeatedString(5,r)};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.toObject=function(t){return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(t,this)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject=function(t,o){var r,n={start:(r=g.Message.getField(o,1))==null?void 0:r,end:(r=g.Message.getField(o,2))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange;return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader(r,o)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readInt32();t.setStart(n);break;case 2:var n=o.readInt32();t.setEnd(n);break;default:o.skipField();break}}return t};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeInt32(1,r),r=g.Message.getField(t,2),r!=null&&o.writeInt32(2,r)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getStart=function(){return g.Message.getFieldWithDefault(this,1,0)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setStart=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearStart=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasStart=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getEnd=function(){return g.Message.getFieldWithDefault(this,2,0)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setEnd=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearEnd=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasEnd=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.EnumDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.EnumDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.EnumDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.EnumDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.EnumDescriptorProto.prototype.getValueList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumValueDescriptorProto,2)};proto.google.protobuf.EnumDescriptorProto.prototype.setValueList=function(t){return g.Message.setRepeatedWrapperField(this,2,t)};proto.google.protobuf.EnumDescriptorProto.prototype.addValue=function(t,o){return g.Message.addToRepeatedWrapperField(this,2,t,proto.google.protobuf.EnumValueDescriptorProto,o)};proto.google.protobuf.EnumDescriptorProto.prototype.clearValueList=function(){return this.setValueList([])};proto.google.protobuf.EnumDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.EnumOptions,3)};proto.google.protobuf.EnumDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,3,t)};proto.google.protobuf.EnumDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.EnumDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.EnumDescriptorProto.prototype.getReservedRangeList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,4)};proto.google.protobuf.EnumDescriptorProto.prototype.setReservedRangeList=function(t){return g.Message.setRepeatedWrapperField(this,4,t)};proto.google.protobuf.EnumDescriptorProto.prototype.addReservedRange=function(t,o){return g.Message.addToRepeatedWrapperField(this,4,t,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,o)};proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedRangeList=function(){return this.setReservedRangeList([])};proto.google.protobuf.EnumDescriptorProto.prototype.getReservedNameList=function(){return g.Message.getRepeatedField(this,5)};proto.google.protobuf.EnumDescriptorProto.prototype.setReservedNameList=function(t){return g.Message.setField(this,5,t||[])};proto.google.protobuf.EnumDescriptorProto.prototype.addReservedName=function(t,o){return g.Message.addToRepeatedField(this,5,t,o)};proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedNameList=function(){return this.setReservedNameList([])};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumValueDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.EnumValueDescriptorProto.toObject(t,this)},proto.google.protobuf.EnumValueDescriptorProto.toObject=function(t,o){var r,n={name:(r=g.Message.getField(o,1))==null?void 0:r,number:(r=g.Message.getField(o,2))==null?void 0:r,options:(r=o.getOptions())&&proto.google.protobuf.EnumValueOptions.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.EnumValueDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.EnumValueDescriptorProto;return proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setName(n);break;case 2:var n=o.readInt32();t.setNumber(n);break;case 3:var n=new proto.google.protobuf.EnumValueOptions;o.readMessage(n,proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader),t.setOptions(n);break;default:o.skipField();break}}return t};proto.google.protobuf.EnumValueDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,2),r!=null&&o.writeInt32(2,r),r=t.getOptions(),r!=null&&o.writeMessage(3,r,proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter)};proto.google.protobuf.EnumValueDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.EnumValueDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.EnumValueDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.EnumValueDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.EnumValueDescriptorProto.prototype.getNumber=function(){return g.Message.getFieldWithDefault(this,2,0)};proto.google.protobuf.EnumValueDescriptorProto.prototype.setNumber=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.EnumValueDescriptorProto.prototype.clearNumber=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.EnumValueDescriptorProto.prototype.hasNumber=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.EnumValueDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.EnumValueOptions,3)};proto.google.protobuf.EnumValueDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,3,t)};proto.google.protobuf.EnumValueDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.EnumValueDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.ServiceDescriptorProto.repeatedFields_=[2];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ServiceDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.ServiceDescriptorProto.toObject(t,this)},proto.google.protobuf.ServiceDescriptorProto.toObject=function(t,o){var r,n={name:(r=g.Message.getField(o,1))==null?void 0:r,methodList:g.Message.toObjectList(o.getMethodList(),proto.google.protobuf.MethodDescriptorProto.toObject,t),options:(r=o.getOptions())&&proto.google.protobuf.ServiceOptions.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.ServiceDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.ServiceDescriptorProto;return proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setName(n);break;case 2:var n=new proto.google.protobuf.MethodDescriptorProto;o.readMessage(n,proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader),t.addMethod(n);break;case 3:var n=new proto.google.protobuf.ServiceOptions;o.readMessage(n,proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader),t.setOptions(n);break;default:o.skipField();break}}return t};proto.google.protobuf.ServiceDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=t.getMethodList(),r.length>0&&o.writeRepeatedMessage(2,r,proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter),r=t.getOptions(),r!=null&&o.writeMessage(3,r,proto.google.protobuf.ServiceOptions.serializeBinaryToWriter)};proto.google.protobuf.ServiceDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.ServiceDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.ServiceDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.ServiceDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.ServiceDescriptorProto.prototype.getMethodList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.MethodDescriptorProto,2)};proto.google.protobuf.ServiceDescriptorProto.prototype.setMethodList=function(t){return g.Message.setRepeatedWrapperField(this,2,t)};proto.google.protobuf.ServiceDescriptorProto.prototype.addMethod=function(t,o){return g.Message.addToRepeatedWrapperField(this,2,t,proto.google.protobuf.MethodDescriptorProto,o)};proto.google.protobuf.ServiceDescriptorProto.prototype.clearMethodList=function(){return this.setMethodList([])};proto.google.protobuf.ServiceDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.ServiceOptions,3)};proto.google.protobuf.ServiceDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,3,t)};proto.google.protobuf.ServiceDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.ServiceDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,3)!=null};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MethodDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.MethodDescriptorProto.toObject(t,this)},proto.google.protobuf.MethodDescriptorProto.toObject=function(t,o){var r,n={name:(r=g.Message.getField(o,1))==null?void 0:r,inputType:(r=g.Message.getField(o,2))==null?void 0:r,outputType:(r=g.Message.getField(o,3))==null?void 0:r,options:(r=o.getOptions())&&proto.google.protobuf.MethodOptions.toObject(t,r),clientStreaming:g.Message.getBooleanFieldWithDefault(o,5,!1),serverStreaming:g.Message.getBooleanFieldWithDefault(o,6,!1)};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.MethodDescriptorProto.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.MethodDescriptorProto;return proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader(r,o)};proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setName(n);break;case 2:var n=o.readString();t.setInputType(n);break;case 3:var n=o.readString();t.setOutputType(n);break;case 4:var n=new proto.google.protobuf.MethodOptions;o.readMessage(n,proto.google.protobuf.MethodOptions.deserializeBinaryFromReader),t.setOptions(n);break;case 5:var n=o.readBool();t.setClientStreaming(n);break;case 6:var n=o.readBool();t.setServerStreaming(n);break;default:o.skipField();break}}return t};proto.google.protobuf.MethodDescriptorProto.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,2),r!=null&&o.writeString(2,r),r=g.Message.getField(t,3),r!=null&&o.writeString(3,r),r=t.getOptions(),r!=null&&o.writeMessage(4,r,proto.google.protobuf.MethodOptions.serializeBinaryToWriter),r=g.Message.getField(t,5),r!=null&&o.writeBool(5,r),r=g.Message.getField(t,6),r!=null&&o.writeBool(6,r)};proto.google.protobuf.MethodDescriptorProto.prototype.getName=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.MethodDescriptorProto.prototype.setName=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearName=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasName=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.MethodDescriptorProto.prototype.getInputType=function(){return g.Message.getFieldWithDefault(this,2,"")};proto.google.protobuf.MethodDescriptorProto.prototype.setInputType=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearInputType=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasInputType=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.MethodDescriptorProto.prototype.getOutputType=function(){return g.Message.getFieldWithDefault(this,3,"")};proto.google.protobuf.MethodDescriptorProto.prototype.setOutputType=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearOutputType=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasOutputType=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.MethodDescriptorProto.prototype.getOptions=function(){return g.Message.getWrapperField(this,proto.google.protobuf.MethodOptions,4)};proto.google.protobuf.MethodDescriptorProto.prototype.setOptions=function(t){return g.Message.setWrapperField(this,4,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasOptions=function(){return g.Message.getField(this,4)!=null};proto.google.protobuf.MethodDescriptorProto.prototype.getClientStreaming=function(){return g.Message.getBooleanFieldWithDefault(this,5,!1)};proto.google.protobuf.MethodDescriptorProto.prototype.setClientStreaming=function(t){return g.Message.setField(this,5,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearClientStreaming=function(){return g.Message.setField(this,5,void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasClientStreaming=function(){return g.Message.getField(this,5)!=null};proto.google.protobuf.MethodDescriptorProto.prototype.getServerStreaming=function(){return g.Message.getBooleanFieldWithDefault(this,6,!1)};proto.google.protobuf.MethodDescriptorProto.prototype.setServerStreaming=function(t){return g.Message.setField(this,6,t)};proto.google.protobuf.MethodDescriptorProto.prototype.clearServerStreaming=function(){return g.Message.setField(this,6,void 0)};proto.google.protobuf.MethodDescriptorProto.prototype.hasServerStreaming=function(){return g.Message.getField(this,6)!=null};proto.google.protobuf.FileOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileOptions.prototype.toObject=function(t){return proto.google.protobuf.FileOptions.toObject(t,this)},proto.google.protobuf.FileOptions.toObject=function(t,o){var r,n={javaPackage:(r=g.Message.getField(o,1))==null?void 0:r,javaOuterClassname:(r=g.Message.getField(o,8))==null?void 0:r,javaMultipleFiles:g.Message.getBooleanFieldWithDefault(o,10,!1),javaGenerateEqualsAndHash:(r=g.Message.getBooleanField(o,20))==null?void 0:r,javaStringCheckUtf8:g.Message.getBooleanFieldWithDefault(o,27,!1),optimizeFor:g.Message.getFieldWithDefault(o,9,1),goPackage:(r=g.Message.getField(o,11))==null?void 0:r,ccGenericServices:g.Message.getBooleanFieldWithDefault(o,16,!1),javaGenericServices:g.Message.getBooleanFieldWithDefault(o,17,!1),pyGenericServices:g.Message.getBooleanFieldWithDefault(o,18,!1),phpGenericServices:g.Message.getBooleanFieldWithDefault(o,42,!1),deprecated:g.Message.getBooleanFieldWithDefault(o,23,!1),ccEnableArenas:g.Message.getBooleanFieldWithDefault(o,31,!0),objcClassPrefix:(r=g.Message.getField(o,36))==null?void 0:r,csharpNamespace:(r=g.Message.getField(o,37))==null?void 0:r,swiftPrefix:(r=g.Message.getField(o,39))==null?void 0:r,phpClassPrefix:(r=g.Message.getField(o,40))==null?void 0:r,phpNamespace:(r=g.Message.getField(o,41))==null?void 0:r,phpMetadataNamespace:(r=g.Message.getField(o,44))==null?void 0:r,rubyPackage:(r=g.Message.getField(o,45))==null?void 0:r,uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.FileOptions.extensions,proto.google.protobuf.FileOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.FileOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.FileOptions;return proto.google.protobuf.FileOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.FileOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setJavaPackage(n);break;case 8:var n=o.readString();t.setJavaOuterClassname(n);break;case 10:var n=o.readBool();t.setJavaMultipleFiles(n);break;case 20:var n=o.readBool();t.setJavaGenerateEqualsAndHash(n);break;case 27:var n=o.readBool();t.setJavaStringCheckUtf8(n);break;case 9:var n=o.readEnum();t.setOptimizeFor(n);break;case 11:var n=o.readString();t.setGoPackage(n);break;case 16:var n=o.readBool();t.setCcGenericServices(n);break;case 17:var n=o.readBool();t.setJavaGenericServices(n);break;case 18:var n=o.readBool();t.setPyGenericServices(n);break;case 42:var n=o.readBool();t.setPhpGenericServices(n);break;case 23:var n=o.readBool();t.setDeprecated(n);break;case 31:var n=o.readBool();t.setCcEnableArenas(n);break;case 36:var n=o.readString();t.setObjcClassPrefix(n);break;case 37:var n=o.readString();t.setCsharpNamespace(n);break;case 39:var n=o.readString();t.setSwiftPrefix(n);break;case 40:var n=o.readString();t.setPhpClassPrefix(n);break;case 41:var n=o.readString();t.setPhpNamespace(n);break;case 44:var n=o.readString();t.setPhpMetadataNamespace(n);break;case 45:var n=o.readString();t.setRubyPackage(n);break;case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.FileOptions.extensionsBinary,proto.google.protobuf.FileOptions.prototype.getExtension,proto.google.protobuf.FileOptions.prototype.setExtension);break}}return t};proto.google.protobuf.FileOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.FileOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.FileOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,8),r!=null&&o.writeString(8,r),r=g.Message.getField(t,10),r!=null&&o.writeBool(10,r),r=g.Message.getField(t,20),r!=null&&o.writeBool(20,r),r=g.Message.getField(t,27),r!=null&&o.writeBool(27,r),r=g.Message.getField(t,9),r!=null&&o.writeEnum(9,r),r=g.Message.getField(t,11),r!=null&&o.writeString(11,r),r=g.Message.getField(t,16),r!=null&&o.writeBool(16,r),r=g.Message.getField(t,17),r!=null&&o.writeBool(17,r),r=g.Message.getField(t,18),r!=null&&o.writeBool(18,r),r=g.Message.getField(t,42),r!=null&&o.writeBool(42,r),r=g.Message.getField(t,23),r!=null&&o.writeBool(23,r),r=g.Message.getField(t,31),r!=null&&o.writeBool(31,r),r=g.Message.getField(t,36),r!=null&&o.writeString(36,r),r=g.Message.getField(t,37),r!=null&&o.writeString(37,r),r=g.Message.getField(t,39),r!=null&&o.writeString(39,r),r=g.Message.getField(t,40),r!=null&&o.writeString(40,r),r=g.Message.getField(t,41),r!=null&&o.writeString(41,r),r=g.Message.getField(t,44),r!=null&&o.writeString(44,r),r=g.Message.getField(t,45),r!=null&&o.writeString(45,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,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 g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.FileOptions.prototype.setJavaPackage=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.FileOptions.prototype.clearJavaPackage=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaPackage=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.FileOptions.prototype.getJavaOuterClassname=function(){return g.Message.getFieldWithDefault(this,8,"")};proto.google.protobuf.FileOptions.prototype.setJavaOuterClassname=function(t){return g.Message.setField(this,8,t)};proto.google.protobuf.FileOptions.prototype.clearJavaOuterClassname=function(){return g.Message.setField(this,8,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaOuterClassname=function(){return g.Message.getField(this,8)!=null};proto.google.protobuf.FileOptions.prototype.getJavaMultipleFiles=function(){return g.Message.getBooleanFieldWithDefault(this,10,!1)};proto.google.protobuf.FileOptions.prototype.setJavaMultipleFiles=function(t){return g.Message.setField(this,10,t)};proto.google.protobuf.FileOptions.prototype.clearJavaMultipleFiles=function(){return g.Message.setField(this,10,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaMultipleFiles=function(){return g.Message.getField(this,10)!=null};proto.google.protobuf.FileOptions.prototype.getJavaGenerateEqualsAndHash=function(){return g.Message.getBooleanFieldWithDefault(this,20,!1)};proto.google.protobuf.FileOptions.prototype.setJavaGenerateEqualsAndHash=function(t){return g.Message.setField(this,20,t)};proto.google.protobuf.FileOptions.prototype.clearJavaGenerateEqualsAndHash=function(){return g.Message.setField(this,20,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaGenerateEqualsAndHash=function(){return g.Message.getField(this,20)!=null};proto.google.protobuf.FileOptions.prototype.getJavaStringCheckUtf8=function(){return g.Message.getBooleanFieldWithDefault(this,27,!1)};proto.google.protobuf.FileOptions.prototype.setJavaStringCheckUtf8=function(t){return g.Message.setField(this,27,t)};proto.google.protobuf.FileOptions.prototype.clearJavaStringCheckUtf8=function(){return g.Message.setField(this,27,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaStringCheckUtf8=function(){return g.Message.getField(this,27)!=null};proto.google.protobuf.FileOptions.prototype.getOptimizeFor=function(){return g.Message.getFieldWithDefault(this,9,1)};proto.google.protobuf.FileOptions.prototype.setOptimizeFor=function(t){return g.Message.setField(this,9,t)};proto.google.protobuf.FileOptions.prototype.clearOptimizeFor=function(){return g.Message.setField(this,9,void 0)};proto.google.protobuf.FileOptions.prototype.hasOptimizeFor=function(){return g.Message.getField(this,9)!=null};proto.google.protobuf.FileOptions.prototype.getGoPackage=function(){return g.Message.getFieldWithDefault(this,11,"")};proto.google.protobuf.FileOptions.prototype.setGoPackage=function(t){return g.Message.setField(this,11,t)};proto.google.protobuf.FileOptions.prototype.clearGoPackage=function(){return g.Message.setField(this,11,void 0)};proto.google.protobuf.FileOptions.prototype.hasGoPackage=function(){return g.Message.getField(this,11)!=null};proto.google.protobuf.FileOptions.prototype.getCcGenericServices=function(){return g.Message.getBooleanFieldWithDefault(this,16,!1)};proto.google.protobuf.FileOptions.prototype.setCcGenericServices=function(t){return g.Message.setField(this,16,t)};proto.google.protobuf.FileOptions.prototype.clearCcGenericServices=function(){return g.Message.setField(this,16,void 0)};proto.google.protobuf.FileOptions.prototype.hasCcGenericServices=function(){return g.Message.getField(this,16)!=null};proto.google.protobuf.FileOptions.prototype.getJavaGenericServices=function(){return g.Message.getBooleanFieldWithDefault(this,17,!1)};proto.google.protobuf.FileOptions.prototype.setJavaGenericServices=function(t){return g.Message.setField(this,17,t)};proto.google.protobuf.FileOptions.prototype.clearJavaGenericServices=function(){return g.Message.setField(this,17,void 0)};proto.google.protobuf.FileOptions.prototype.hasJavaGenericServices=function(){return g.Message.getField(this,17)!=null};proto.google.protobuf.FileOptions.prototype.getPyGenericServices=function(){return g.Message.getBooleanFieldWithDefault(this,18,!1)};proto.google.protobuf.FileOptions.prototype.setPyGenericServices=function(t){return g.Message.setField(this,18,t)};proto.google.protobuf.FileOptions.prototype.clearPyGenericServices=function(){return g.Message.setField(this,18,void 0)};proto.google.protobuf.FileOptions.prototype.hasPyGenericServices=function(){return g.Message.getField(this,18)!=null};proto.google.protobuf.FileOptions.prototype.getPhpGenericServices=function(){return g.Message.getBooleanFieldWithDefault(this,42,!1)};proto.google.protobuf.FileOptions.prototype.setPhpGenericServices=function(t){return g.Message.setField(this,42,t)};proto.google.protobuf.FileOptions.prototype.clearPhpGenericServices=function(){return g.Message.setField(this,42,void 0)};proto.google.protobuf.FileOptions.prototype.hasPhpGenericServices=function(){return g.Message.getField(this,42)!=null};proto.google.protobuf.FileOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,23,!1)};proto.google.protobuf.FileOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,23,t)};proto.google.protobuf.FileOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,23,void 0)};proto.google.protobuf.FileOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,23)!=null};proto.google.protobuf.FileOptions.prototype.getCcEnableArenas=function(){return g.Message.getBooleanFieldWithDefault(this,31,!0)};proto.google.protobuf.FileOptions.prototype.setCcEnableArenas=function(t){return g.Message.setField(this,31,t)};proto.google.protobuf.FileOptions.prototype.clearCcEnableArenas=function(){return g.Message.setField(this,31,void 0)};proto.google.protobuf.FileOptions.prototype.hasCcEnableArenas=function(){return g.Message.getField(this,31)!=null};proto.google.protobuf.FileOptions.prototype.getObjcClassPrefix=function(){return g.Message.getFieldWithDefault(this,36,"")};proto.google.protobuf.FileOptions.prototype.setObjcClassPrefix=function(t){return g.Message.setField(this,36,t)};proto.google.protobuf.FileOptions.prototype.clearObjcClassPrefix=function(){return g.Message.setField(this,36,void 0)};proto.google.protobuf.FileOptions.prototype.hasObjcClassPrefix=function(){return g.Message.getField(this,36)!=null};proto.google.protobuf.FileOptions.prototype.getCsharpNamespace=function(){return g.Message.getFieldWithDefault(this,37,"")};proto.google.protobuf.FileOptions.prototype.setCsharpNamespace=function(t){return g.Message.setField(this,37,t)};proto.google.protobuf.FileOptions.prototype.clearCsharpNamespace=function(){return g.Message.setField(this,37,void 0)};proto.google.protobuf.FileOptions.prototype.hasCsharpNamespace=function(){return g.Message.getField(this,37)!=null};proto.google.protobuf.FileOptions.prototype.getSwiftPrefix=function(){return g.Message.getFieldWithDefault(this,39,"")};proto.google.protobuf.FileOptions.prototype.setSwiftPrefix=function(t){return g.Message.setField(this,39,t)};proto.google.protobuf.FileOptions.prototype.clearSwiftPrefix=function(){return g.Message.setField(this,39,void 0)};proto.google.protobuf.FileOptions.prototype.hasSwiftPrefix=function(){return g.Message.getField(this,39)!=null};proto.google.protobuf.FileOptions.prototype.getPhpClassPrefix=function(){return g.Message.getFieldWithDefault(this,40,"")};proto.google.protobuf.FileOptions.prototype.setPhpClassPrefix=function(t){return g.Message.setField(this,40,t)};proto.google.protobuf.FileOptions.prototype.clearPhpClassPrefix=function(){return g.Message.setField(this,40,void 0)};proto.google.protobuf.FileOptions.prototype.hasPhpClassPrefix=function(){return g.Message.getField(this,40)!=null};proto.google.protobuf.FileOptions.prototype.getPhpNamespace=function(){return g.Message.getFieldWithDefault(this,41,"")};proto.google.protobuf.FileOptions.prototype.setPhpNamespace=function(t){return g.Message.setField(this,41,t)};proto.google.protobuf.FileOptions.prototype.clearPhpNamespace=function(){return g.Message.setField(this,41,void 0)};proto.google.protobuf.FileOptions.prototype.hasPhpNamespace=function(){return g.Message.getField(this,41)!=null};proto.google.protobuf.FileOptions.prototype.getPhpMetadataNamespace=function(){return g.Message.getFieldWithDefault(this,44,"")};proto.google.protobuf.FileOptions.prototype.setPhpMetadataNamespace=function(t){return g.Message.setField(this,44,t)};proto.google.protobuf.FileOptions.prototype.clearPhpMetadataNamespace=function(){return g.Message.setField(this,44,void 0)};proto.google.protobuf.FileOptions.prototype.hasPhpMetadataNamespace=function(){return g.Message.getField(this,44)!=null};proto.google.protobuf.FileOptions.prototype.getRubyPackage=function(){return g.Message.getFieldWithDefault(this,45,"")};proto.google.protobuf.FileOptions.prototype.setRubyPackage=function(t){return g.Message.setField(this,45,t)};proto.google.protobuf.FileOptions.prototype.clearRubyPackage=function(){return g.Message.setField(this,45,void 0)};proto.google.protobuf.FileOptions.prototype.hasRubyPackage=function(){return g.Message.getField(this,45)!=null};proto.google.protobuf.FileOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.FileOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.FileOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.FileOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.MessageOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MessageOptions.prototype.toObject=function(t){return proto.google.protobuf.MessageOptions.toObject(t,this)},proto.google.protobuf.MessageOptions.toObject=function(t,o){var r,n={messageSetWireFormat:g.Message.getBooleanFieldWithDefault(o,1,!1),noStandardDescriptorAccessor:g.Message.getBooleanFieldWithDefault(o,2,!1),deprecated:g.Message.getBooleanFieldWithDefault(o,3,!1),mapEntry:(r=g.Message.getBooleanField(o,7))==null?void 0:r,uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.MessageOptions.extensions,proto.google.protobuf.MessageOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.MessageOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.MessageOptions;return proto.google.protobuf.MessageOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.MessageOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBool();t.setMessageSetWireFormat(n);break;case 2:var n=o.readBool();t.setNoStandardDescriptorAccessor(n);break;case 3:var n=o.readBool();t.setDeprecated(n);break;case 7:var n=o.readBool();t.setMapEntry(n);break;case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.MessageOptions.extensionsBinary,proto.google.protobuf.MessageOptions.prototype.getExtension,proto.google.protobuf.MessageOptions.prototype.setExtension);break}}return t};proto.google.protobuf.MessageOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.MessageOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.MessageOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeBool(1,r),r=g.Message.getField(t,2),r!=null&&o.writeBool(2,r),r=g.Message.getField(t,3),r!=null&&o.writeBool(3,r),r=g.Message.getField(t,7),r!=null&&o.writeBool(7,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.MessageOptions.extensionsBinary,proto.google.protobuf.MessageOptions.prototype.getExtension)};proto.google.protobuf.MessageOptions.prototype.getMessageSetWireFormat=function(){return g.Message.getBooleanFieldWithDefault(this,1,!1)};proto.google.protobuf.MessageOptions.prototype.setMessageSetWireFormat=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.MessageOptions.prototype.clearMessageSetWireFormat=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.MessageOptions.prototype.hasMessageSetWireFormat=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.MessageOptions.prototype.getNoStandardDescriptorAccessor=function(){return g.Message.getBooleanFieldWithDefault(this,2,!1)};proto.google.protobuf.MessageOptions.prototype.setNoStandardDescriptorAccessor=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.MessageOptions.prototype.clearNoStandardDescriptorAccessor=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.MessageOptions.prototype.hasNoStandardDescriptorAccessor=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.MessageOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,3,!1)};proto.google.protobuf.MessageOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.MessageOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.MessageOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.MessageOptions.prototype.getMapEntry=function(){return g.Message.getBooleanFieldWithDefault(this,7,!1)};proto.google.protobuf.MessageOptions.prototype.setMapEntry=function(t){return g.Message.setField(this,7,t)};proto.google.protobuf.MessageOptions.prototype.clearMapEntry=function(){return g.Message.setField(this,7,void 0)};proto.google.protobuf.MessageOptions.prototype.hasMapEntry=function(){return g.Message.getField(this,7)!=null};proto.google.protobuf.MessageOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.MessageOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.MessageOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.MessageOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.FieldOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FieldOptions.prototype.toObject=function(t){return proto.google.protobuf.FieldOptions.toObject(t,this)},proto.google.protobuf.FieldOptions.toObject=function(t,o){var r,n={ctype:g.Message.getFieldWithDefault(o,1,0),packed:(r=g.Message.getBooleanField(o,2))==null?void 0:r,jstype:g.Message.getFieldWithDefault(o,6,0),lazy:g.Message.getBooleanFieldWithDefault(o,5,!1),unverifiedLazy:g.Message.getBooleanFieldWithDefault(o,15,!1),deprecated:g.Message.getBooleanFieldWithDefault(o,3,!1),weak:g.Message.getBooleanFieldWithDefault(o,10,!1),uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.FieldOptions.extensions,proto.google.protobuf.FieldOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.FieldOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.FieldOptions;return proto.google.protobuf.FieldOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.FieldOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readEnum();t.setCtype(n);break;case 2:var n=o.readBool();t.setPacked(n);break;case 6:var n=o.readEnum();t.setJstype(n);break;case 5:var n=o.readBool();t.setLazy(n);break;case 15:var n=o.readBool();t.setUnverifiedLazy(n);break;case 3:var n=o.readBool();t.setDeprecated(n);break;case 10:var n=o.readBool();t.setWeak(n);break;case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.FieldOptions.extensionsBinary,proto.google.protobuf.FieldOptions.prototype.getExtension,proto.google.protobuf.FieldOptions.prototype.setExtension);break}}return t};proto.google.protobuf.FieldOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.FieldOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.FieldOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeEnum(1,r),r=g.Message.getField(t,2),r!=null&&o.writeBool(2,r),r=g.Message.getField(t,6),r!=null&&o.writeEnum(6,r),r=g.Message.getField(t,5),r!=null&&o.writeBool(5,r),r=g.Message.getField(t,15),r!=null&&o.writeBool(15,r),r=g.Message.getField(t,3),r!=null&&o.writeBool(3,r),r=g.Message.getField(t,10),r!=null&&o.writeBool(10,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,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 g.Message.getFieldWithDefault(this,1,0)};proto.google.protobuf.FieldOptions.prototype.setCtype=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.FieldOptions.prototype.clearCtype=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.FieldOptions.prototype.hasCtype=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.FieldOptions.prototype.getPacked=function(){return g.Message.getBooleanFieldWithDefault(this,2,!1)};proto.google.protobuf.FieldOptions.prototype.setPacked=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.FieldOptions.prototype.clearPacked=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.FieldOptions.prototype.hasPacked=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.FieldOptions.prototype.getJstype=function(){return g.Message.getFieldWithDefault(this,6,0)};proto.google.protobuf.FieldOptions.prototype.setJstype=function(t){return g.Message.setField(this,6,t)};proto.google.protobuf.FieldOptions.prototype.clearJstype=function(){return g.Message.setField(this,6,void 0)};proto.google.protobuf.FieldOptions.prototype.hasJstype=function(){return g.Message.getField(this,6)!=null};proto.google.protobuf.FieldOptions.prototype.getLazy=function(){return g.Message.getBooleanFieldWithDefault(this,5,!1)};proto.google.protobuf.FieldOptions.prototype.setLazy=function(t){return g.Message.setField(this,5,t)};proto.google.protobuf.FieldOptions.prototype.clearLazy=function(){return g.Message.setField(this,5,void 0)};proto.google.protobuf.FieldOptions.prototype.hasLazy=function(){return g.Message.getField(this,5)!=null};proto.google.protobuf.FieldOptions.prototype.getUnverifiedLazy=function(){return g.Message.getBooleanFieldWithDefault(this,15,!1)};proto.google.protobuf.FieldOptions.prototype.setUnverifiedLazy=function(t){return g.Message.setField(this,15,t)};proto.google.protobuf.FieldOptions.prototype.clearUnverifiedLazy=function(){return g.Message.setField(this,15,void 0)};proto.google.protobuf.FieldOptions.prototype.hasUnverifiedLazy=function(){return g.Message.getField(this,15)!=null};proto.google.protobuf.FieldOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,3,!1)};proto.google.protobuf.FieldOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.FieldOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.FieldOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.FieldOptions.prototype.getWeak=function(){return g.Message.getBooleanFieldWithDefault(this,10,!1)};proto.google.protobuf.FieldOptions.prototype.setWeak=function(t){return g.Message.setField(this,10,t)};proto.google.protobuf.FieldOptions.prototype.clearWeak=function(){return g.Message.setField(this,10,void 0)};proto.google.protobuf.FieldOptions.prototype.hasWeak=function(){return g.Message.getField(this,10)!=null};proto.google.protobuf.FieldOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.FieldOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.FieldOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.FieldOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.OneofOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.OneofOptions.prototype.toObject=function(t){return proto.google.protobuf.OneofOptions.toObject(t,this)},proto.google.protobuf.OneofOptions.toObject=function(t,o){var r,n={uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.OneofOptions.extensions,proto.google.protobuf.OneofOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.OneofOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.OneofOptions;return proto.google.protobuf.OneofOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.OneofOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.OneofOptions.extensionsBinary,proto.google.protobuf.OneofOptions.prototype.getExtension,proto.google.protobuf.OneofOptions.prototype.setExtension);break}}return t};proto.google.protobuf.OneofOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.OneofOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.OneofOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.OneofOptions.extensionsBinary,proto.google.protobuf.OneofOptions.prototype.getExtension)};proto.google.protobuf.OneofOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.OneofOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.OneofOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.OneofOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.EnumOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumOptions.prototype.toObject=function(t){return proto.google.protobuf.EnumOptions.toObject(t,this)},proto.google.protobuf.EnumOptions.toObject=function(t,o){var r,n={allowAlias:(r=g.Message.getBooleanField(o,2))==null?void 0:r,deprecated:g.Message.getBooleanFieldWithDefault(o,3,!1),uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.EnumOptions.extensions,proto.google.protobuf.EnumOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.EnumOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.EnumOptions;return proto.google.protobuf.EnumOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.EnumOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 2:var n=o.readBool();t.setAllowAlias(n);break;case 3:var n=o.readBool();t.setDeprecated(n);break;case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.EnumOptions.extensionsBinary,proto.google.protobuf.EnumOptions.prototype.getExtension,proto.google.protobuf.EnumOptions.prototype.setExtension);break}}return t};proto.google.protobuf.EnumOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.EnumOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.EnumOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,2),r!=null&&o.writeBool(2,r),r=g.Message.getField(t,3),r!=null&&o.writeBool(3,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.EnumOptions.extensionsBinary,proto.google.protobuf.EnumOptions.prototype.getExtension)};proto.google.protobuf.EnumOptions.prototype.getAllowAlias=function(){return g.Message.getBooleanFieldWithDefault(this,2,!1)};proto.google.protobuf.EnumOptions.prototype.setAllowAlias=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.EnumOptions.prototype.clearAllowAlias=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.EnumOptions.prototype.hasAllowAlias=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.EnumOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,3,!1)};proto.google.protobuf.EnumOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.EnumOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.EnumOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.EnumOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.EnumOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.EnumOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.EnumOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.EnumValueOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumValueOptions.prototype.toObject=function(t){return proto.google.protobuf.EnumValueOptions.toObject(t,this)},proto.google.protobuf.EnumValueOptions.toObject=function(t,o){var r,n={deprecated:g.Message.getBooleanFieldWithDefault(o,1,!1),uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.EnumValueOptions.extensions,proto.google.protobuf.EnumValueOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.EnumValueOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.EnumValueOptions;return proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBool();t.setDeprecated(n);break;case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.EnumValueOptions.extensionsBinary,proto.google.protobuf.EnumValueOptions.prototype.getExtension,proto.google.protobuf.EnumValueOptions.prototype.setExtension);break}}return t};proto.google.protobuf.EnumValueOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeBool(1,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.EnumValueOptions.extensionsBinary,proto.google.protobuf.EnumValueOptions.prototype.getExtension)};proto.google.protobuf.EnumValueOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,1,!1)};proto.google.protobuf.EnumValueOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.EnumValueOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.EnumValueOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.EnumValueOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.EnumValueOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.EnumValueOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.EnumValueOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.ServiceOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ServiceOptions.prototype.toObject=function(t){return proto.google.protobuf.ServiceOptions.toObject(t,this)},proto.google.protobuf.ServiceOptions.toObject=function(t,o){var r,n={deprecated:g.Message.getBooleanFieldWithDefault(o,33,!1),uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.ServiceOptions.extensions,proto.google.protobuf.ServiceOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.ServiceOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.ServiceOptions;return proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 33:var n=o.readBool();t.setDeprecated(n);break;case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.ServiceOptions.extensionsBinary,proto.google.protobuf.ServiceOptions.prototype.getExtension,proto.google.protobuf.ServiceOptions.prototype.setExtension);break}}return t};proto.google.protobuf.ServiceOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.ServiceOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.ServiceOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,33),r!=null&&o.writeBool(33,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,proto.google.protobuf.ServiceOptions.extensionsBinary,proto.google.protobuf.ServiceOptions.prototype.getExtension)};proto.google.protobuf.ServiceOptions.prototype.getDeprecated=function(){return g.Message.getBooleanFieldWithDefault(this,33,!1)};proto.google.protobuf.ServiceOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,33,t)};proto.google.protobuf.ServiceOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,33,void 0)};proto.google.protobuf.ServiceOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,33)!=null};proto.google.protobuf.ServiceOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.ServiceOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.ServiceOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.ServiceOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.MethodOptions.repeatedFields_=[999];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MethodOptions.prototype.toObject=function(t){return proto.google.protobuf.MethodOptions.toObject(t,this)},proto.google.protobuf.MethodOptions.toObject=function(t,o){var r,n={deprecated:g.Message.getBooleanFieldWithDefault(o,33,!1),idempotencyLevel:g.Message.getFieldWithDefault(o,34,0),uninterpretedOptionList:g.Message.toObjectList(o.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return g.Message.toObjectExtension(o,n,proto.google.protobuf.MethodOptions.extensions,proto.google.protobuf.MethodOptions.prototype.getExtension,t),t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.MethodOptions.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.MethodOptions;return proto.google.protobuf.MethodOptions.deserializeBinaryFromReader(r,o)};proto.google.protobuf.MethodOptions.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 33:var n=o.readBool();t.setDeprecated(n);break;case 34:var n=o.readEnum();t.setIdempotencyLevel(n);break;case 999:var n=new proto.google.protobuf.UninterpretedOption;o.readMessage(n,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(n);break;default:g.Message.readBinaryExtension(t,o,proto.google.protobuf.MethodOptions.extensionsBinary,proto.google.protobuf.MethodOptions.prototype.getExtension,proto.google.protobuf.MethodOptions.prototype.setExtension);break}}return t};proto.google.protobuf.MethodOptions.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.MethodOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.MethodOptions.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,33),r!=null&&o.writeBool(33,r),r=g.Message.getField(t,34),r!=null&&o.writeEnum(34,r),r=t.getUninterpretedOptionList(),r.length>0&&o.writeRepeatedMessage(999,r,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),g.Message.serializeBinaryExtensions(t,o,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 g.Message.getBooleanFieldWithDefault(this,33,!1)};proto.google.protobuf.MethodOptions.prototype.setDeprecated=function(t){return g.Message.setField(this,33,t)};proto.google.protobuf.MethodOptions.prototype.clearDeprecated=function(){return g.Message.setField(this,33,void 0)};proto.google.protobuf.MethodOptions.prototype.hasDeprecated=function(){return g.Message.getField(this,33)!=null};proto.google.protobuf.MethodOptions.prototype.getIdempotencyLevel=function(){return g.Message.getFieldWithDefault(this,34,0)};proto.google.protobuf.MethodOptions.prototype.setIdempotencyLevel=function(t){return g.Message.setField(this,34,t)};proto.google.protobuf.MethodOptions.prototype.clearIdempotencyLevel=function(){return g.Message.setField(this,34,void 0)};proto.google.protobuf.MethodOptions.prototype.hasIdempotencyLevel=function(){return g.Message.getField(this,34)!=null};proto.google.protobuf.MethodOptions.prototype.getUninterpretedOptionList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)};proto.google.protobuf.MethodOptions.prototype.setUninterpretedOptionList=function(t){return g.Message.setRepeatedWrapperField(this,999,t)};proto.google.protobuf.MethodOptions.prototype.addUninterpretedOption=function(t,o){return g.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,o)};proto.google.protobuf.MethodOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])};proto.google.protobuf.UninterpretedOption.repeatedFields_=[2];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UninterpretedOption.prototype.toObject=function(t){return proto.google.protobuf.UninterpretedOption.toObject(t,this)},proto.google.protobuf.UninterpretedOption.toObject=function(t,o){var r,n={nameList:g.Message.toObjectList(o.getNameList(),proto.google.protobuf.UninterpretedOption.NamePart.toObject,t),identifierValue:(r=g.Message.getField(o,3))==null?void 0:r,positiveIntValue:(r=g.Message.getField(o,4))==null?void 0:r,negativeIntValue:(r=g.Message.getField(o,5))==null?void 0:r,doubleValue:(r=g.Message.getOptionalFloatingPointField(o,6))==null?void 0:r,stringValue:o.getStringValue_asB64(),aggregateValue:(r=g.Message.getField(o,8))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.UninterpretedOption.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.UninterpretedOption;return proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader(r,o)};proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 2:var n=new proto.google.protobuf.UninterpretedOption.NamePart;o.readMessage(n,proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader),t.addName(n);break;case 3:var n=o.readString();t.setIdentifierValue(n);break;case 4:var n=o.readUint64();t.setPositiveIntValue(n);break;case 5:var n=o.readInt64();t.setNegativeIntValue(n);break;case 6:var n=o.readDouble();t.setDoubleValue(n);break;case 7:var n=o.readBytes();t.setStringValue(n);break;case 8:var n=o.readString();t.setAggregateValue(n);break;default:o.skipField();break}}return t};proto.google.protobuf.UninterpretedOption.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getNameList(),r.length>0&&o.writeRepeatedMessage(2,r,proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter),r=g.Message.getField(t,3),r!=null&&o.writeString(3,r),r=g.Message.getField(t,4),r!=null&&o.writeUint64(4,r),r=g.Message.getField(t,5),r!=null&&o.writeInt64(5,r),r=g.Message.getField(t,6),r!=null&&o.writeDouble(6,r),r=g.Message.getField(t,7),r!=null&&o.writeBytes(7,r),r=g.Message.getField(t,8),r!=null&&o.writeString(8,r)};g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UninterpretedOption.NamePart.prototype.toObject=function(t){return proto.google.protobuf.UninterpretedOption.NamePart.toObject(t,this)},proto.google.protobuf.UninterpretedOption.NamePart.toObject=function(t,o){var r,n={namePart:(r=g.Message.getField(o,1))==null?void 0:r,isExtension:(r=g.Message.getBooleanField(o,2))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.UninterpretedOption.NamePart;return proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader(r,o)};proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setNamePart(n);break;case 2:var n=o.readBool();t.setIsExtension(n);break;default:o.skipField();break}}return t};proto.google.protobuf.UninterpretedOption.NamePart.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter=function(t,o){var r=void 0;r=g.Message.getField(t,1),r!=null&&o.writeString(1,r),r=g.Message.getField(t,2),r!=null&&o.writeBool(2,r)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.getNamePart=function(){return g.Message.getFieldWithDefault(this,1,"")};proto.google.protobuf.UninterpretedOption.NamePart.prototype.setNamePart=function(t){return g.Message.setField(this,1,t)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearNamePart=function(){return g.Message.setField(this,1,void 0)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasNamePart=function(){return g.Message.getField(this,1)!=null};proto.google.protobuf.UninterpretedOption.NamePart.prototype.getIsExtension=function(){return g.Message.getBooleanFieldWithDefault(this,2,!1)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.setIsExtension=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearIsExtension=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasIsExtension=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.UninterpretedOption.prototype.getNameList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption.NamePart,2)};proto.google.protobuf.UninterpretedOption.prototype.setNameList=function(t){return g.Message.setRepeatedWrapperField(this,2,t)};proto.google.protobuf.UninterpretedOption.prototype.addName=function(t,o){return g.Message.addToRepeatedWrapperField(this,2,t,proto.google.protobuf.UninterpretedOption.NamePart,o)};proto.google.protobuf.UninterpretedOption.prototype.clearNameList=function(){return this.setNameList([])};proto.google.protobuf.UninterpretedOption.prototype.getIdentifierValue=function(){return g.Message.getFieldWithDefault(this,3,"")};proto.google.protobuf.UninterpretedOption.prototype.setIdentifierValue=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.UninterpretedOption.prototype.clearIdentifierValue=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasIdentifierValue=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.UninterpretedOption.prototype.getPositiveIntValue=function(){return g.Message.getFieldWithDefault(this,4,0)};proto.google.protobuf.UninterpretedOption.prototype.setPositiveIntValue=function(t){return g.Message.setField(this,4,t)};proto.google.protobuf.UninterpretedOption.prototype.clearPositiveIntValue=function(){return g.Message.setField(this,4,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasPositiveIntValue=function(){return g.Message.getField(this,4)!=null};proto.google.protobuf.UninterpretedOption.prototype.getNegativeIntValue=function(){return g.Message.getFieldWithDefault(this,5,0)};proto.google.protobuf.UninterpretedOption.prototype.setNegativeIntValue=function(t){return g.Message.setField(this,5,t)};proto.google.protobuf.UninterpretedOption.prototype.clearNegativeIntValue=function(){return g.Message.setField(this,5,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasNegativeIntValue=function(){return g.Message.getField(this,5)!=null};proto.google.protobuf.UninterpretedOption.prototype.getDoubleValue=function(){return g.Message.getFloatingPointFieldWithDefault(this,6,0)};proto.google.protobuf.UninterpretedOption.prototype.setDoubleValue=function(t){return g.Message.setField(this,6,t)};proto.google.protobuf.UninterpretedOption.prototype.clearDoubleValue=function(){return g.Message.setField(this,6,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasDoubleValue=function(){return g.Message.getField(this,6)!=null};proto.google.protobuf.UninterpretedOption.prototype.getStringValue=function(){return g.Message.getFieldWithDefault(this,7,"")};proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asB64=function(){return g.Message.bytesAsB64(this.getStringValue())};proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asU8=function(){return g.Message.bytesAsU8(this.getStringValue())};proto.google.protobuf.UninterpretedOption.prototype.setStringValue=function(t){return g.Message.setField(this,7,t)};proto.google.protobuf.UninterpretedOption.prototype.clearStringValue=function(){return g.Message.setField(this,7,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasStringValue=function(){return g.Message.getField(this,7)!=null};proto.google.protobuf.UninterpretedOption.prototype.getAggregateValue=function(){return g.Message.getFieldWithDefault(this,8,"")};proto.google.protobuf.UninterpretedOption.prototype.setAggregateValue=function(t){return g.Message.setField(this,8,t)};proto.google.protobuf.UninterpretedOption.prototype.clearAggregateValue=function(){return g.Message.setField(this,8,void 0)};proto.google.protobuf.UninterpretedOption.prototype.hasAggregateValue=function(){return g.Message.getField(this,8)!=null};proto.google.protobuf.SourceCodeInfo.repeatedFields_=[1];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.SourceCodeInfo.prototype.toObject=function(t){return proto.google.protobuf.SourceCodeInfo.toObject(t,this)},proto.google.protobuf.SourceCodeInfo.toObject=function(t,o){var r,n={locationList:g.Message.toObjectList(o.getLocationList(),proto.google.protobuf.SourceCodeInfo.Location.toObject,t)};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.SourceCodeInfo.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.SourceCodeInfo;return proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader(r,o)};proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.google.protobuf.SourceCodeInfo.Location;o.readMessage(n,proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader),t.addLocation(n);break;default:o.skipField();break}}return t};proto.google.protobuf.SourceCodeInfo.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getLocationList(),r.length>0&&o.writeRepeatedMessage(1,r,proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter)};proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_=[1,2,6];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.SourceCodeInfo.Location.prototype.toObject=function(t){return proto.google.protobuf.SourceCodeInfo.Location.toObject(t,this)},proto.google.protobuf.SourceCodeInfo.Location.toObject=function(t,o){var r,n={pathList:(r=g.Message.getRepeatedField(o,1))==null?void 0:r,spanList:(r=g.Message.getRepeatedField(o,2))==null?void 0:r,leadingComments:(r=g.Message.getField(o,3))==null?void 0:r,trailingComments:(r=g.Message.getField(o,4))==null?void 0:r,leadingDetachedCommentsList:(r=g.Message.getRepeatedField(o,6))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.SourceCodeInfo.Location.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.SourceCodeInfo.Location;return proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader(r,o)};proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:for(var i=o.isDelimited()?o.readPackedInt32():[o.readInt32()],n=0;n<i.length;n++)t.addPath(i[n]);break;case 2:for(var i=o.isDelimited()?o.readPackedInt32():[o.readInt32()],n=0;n<i.length;n++)t.addSpan(i[n]);break;case 3:var s=o.readString();t.setLeadingComments(s);break;case 4:var s=o.readString();t.setTrailingComments(s);break;case 6:var s=o.readString();t.addLeadingDetachedComments(s);break;default:o.skipField();break}}return t};proto.google.protobuf.SourceCodeInfo.Location.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getPathList(),r.length>0&&o.writePackedInt32(1,r),r=t.getSpanList(),r.length>0&&o.writePackedInt32(2,r),r=g.Message.getField(t,3),r!=null&&o.writeString(3,r),r=g.Message.getField(t,4),r!=null&&o.writeString(4,r),r=t.getLeadingDetachedCommentsList(),r.length>0&&o.writeRepeatedString(6,r)};proto.google.protobuf.SourceCodeInfo.Location.prototype.getPathList=function(){return g.Message.getRepeatedField(this,1)};proto.google.protobuf.SourceCodeInfo.Location.prototype.setPathList=function(t){return g.Message.setField(this,1,t||[])};proto.google.protobuf.SourceCodeInfo.Location.prototype.addPath=function(t,o){return g.Message.addToRepeatedField(this,1,t,o)};proto.google.protobuf.SourceCodeInfo.Location.prototype.clearPathList=function(){return this.setPathList([])};proto.google.protobuf.SourceCodeInfo.Location.prototype.getSpanList=function(){return g.Message.getRepeatedField(this,2)};proto.google.protobuf.SourceCodeInfo.Location.prototype.setSpanList=function(t){return g.Message.setField(this,2,t||[])};proto.google.protobuf.SourceCodeInfo.Location.prototype.addSpan=function(t,o){return g.Message.addToRepeatedField(this,2,t,o)};proto.google.protobuf.SourceCodeInfo.Location.prototype.clearSpanList=function(){return this.setSpanList([])};proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingComments=function(){return g.Message.getFieldWithDefault(this,3,"")};proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingComments=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingComments=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.SourceCodeInfo.Location.prototype.hasLeadingComments=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.SourceCodeInfo.Location.prototype.getTrailingComments=function(){return g.Message.getFieldWithDefault(this,4,"")};proto.google.protobuf.SourceCodeInfo.Location.prototype.setTrailingComments=function(t){return g.Message.setField(this,4,t)};proto.google.protobuf.SourceCodeInfo.Location.prototype.clearTrailingComments=function(){return g.Message.setField(this,4,void 0)};proto.google.protobuf.SourceCodeInfo.Location.prototype.hasTrailingComments=function(){return g.Message.getField(this,4)!=null};proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingDetachedCommentsList=function(){return g.Message.getRepeatedField(this,6)};proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingDetachedCommentsList=function(t){return g.Message.setField(this,6,t||[])};proto.google.protobuf.SourceCodeInfo.Location.prototype.addLeadingDetachedComments=function(t,o){return g.Message.addToRepeatedField(this,6,t,o)};proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingDetachedCommentsList=function(){return this.setLeadingDetachedCommentsList([])};proto.google.protobuf.SourceCodeInfo.prototype.getLocationList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.SourceCodeInfo.Location,1)};proto.google.protobuf.SourceCodeInfo.prototype.setLocationList=function(t){return g.Message.setRepeatedWrapperField(this,1,t)};proto.google.protobuf.SourceCodeInfo.prototype.addLocation=function(t,o){return g.Message.addToRepeatedWrapperField(this,1,t,proto.google.protobuf.SourceCodeInfo.Location,o)};proto.google.protobuf.SourceCodeInfo.prototype.clearLocationList=function(){return this.setLocationList([])};proto.google.protobuf.GeneratedCodeInfo.repeatedFields_=[1];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.GeneratedCodeInfo.prototype.toObject=function(t){return proto.google.protobuf.GeneratedCodeInfo.toObject(t,this)},proto.google.protobuf.GeneratedCodeInfo.toObject=function(t,o){var r,n={annotationList:g.Message.toObjectList(o.getAnnotationList(),proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject,t)};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.GeneratedCodeInfo.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.GeneratedCodeInfo;return proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader(r,o)};proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.google.protobuf.GeneratedCodeInfo.Annotation;o.readMessage(n,proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader),t.addAnnotation(n);break;default:o.skipField();break}}return t};proto.google.protobuf.GeneratedCodeInfo.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getAnnotationList(),r.length>0&&o.writeRepeatedMessage(1,r,proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter)};proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_=[1];g.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.toObject=function(t){return proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject(t,this)},proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject=function(t,o){var r,n={pathList:(r=g.Message.getRepeatedField(o,1))==null?void 0:r,sourceFile:(r=g.Message.getField(o,2))==null?void 0:r,begin:(r=g.Message.getField(o,3))==null?void 0:r,end:(r=g.Message.getField(o,4))==null?void 0:r};return t&&(n.$jspbMessageInstance=o),n});proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinary=function(t){var o=new g.BinaryReader(t),r=new proto.google.protobuf.GeneratedCodeInfo.Annotation;return proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader(r,o)};proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:for(var n=o.isDelimited()?o.readPackedInt32():[o.readInt32()],i=0;i<n.length;i++)t.addPath(n[i]);break;case 2:var s=o.readString();t.setSourceFile(s);break;case 3:var s=o.readInt32();t.setBegin(s);break;case 4:var s=o.readInt32();t.setEnd(s);break;default:o.skipField();break}}return t};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.serializeBinary=function(){var t=new g.BinaryWriter;return proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getPathList(),r.length>0&&o.writePackedInt32(1,r),r=g.Message.getField(t,2),r!=null&&o.writeString(2,r),r=g.Message.getField(t,3),r!=null&&o.writeInt32(3,r),r=g.Message.getField(t,4),r!=null&&o.writeInt32(4,r)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getPathList=function(){return g.Message.getRepeatedField(this,1)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setPathList=function(t){return g.Message.setField(this,1,t||[])};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.addPath=function(t,o){return g.Message.addToRepeatedField(this,1,t,o)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearPathList=function(){return this.setPathList([])};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getSourceFile=function(){return g.Message.getFieldWithDefault(this,2,"")};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setSourceFile=function(t){return g.Message.setField(this,2,t)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearSourceFile=function(){return g.Message.setField(this,2,void 0)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasSourceFile=function(){return g.Message.getField(this,2)!=null};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getBegin=function(){return g.Message.getFieldWithDefault(this,3,0)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setBegin=function(t){return g.Message.setField(this,3,t)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearBegin=function(){return g.Message.setField(this,3,void 0)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasBegin=function(){return g.Message.getField(this,3)!=null};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getEnd=function(){return g.Message.getFieldWithDefault(this,4,0)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setEnd=function(t){return g.Message.setField(this,4,t)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearEnd=function(){return g.Message.setField(this,4,void 0)};proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasEnd=function(){return g.Message.getField(this,4)!=null};proto.google.protobuf.GeneratedCodeInfo.prototype.getAnnotationList=function(){return g.Message.getRepeatedWrapperField(this,proto.google.protobuf.GeneratedCodeInfo.Annotation,1)};proto.google.protobuf.GeneratedCodeInfo.prototype.setAnnotationList=function(t){return g.Message.setRepeatedWrapperField(this,1,t)};proto.google.protobuf.GeneratedCodeInfo.prototype.addAnnotation=function(t,o){return g.Message.addToRepeatedWrapperField(this,1,t,proto.google.protobuf.GeneratedCodeInfo.Annotation,o)};proto.google.protobuf.GeneratedCodeInfo.prototype.clearAnnotationList=function(){return this.setAnnotationList([])};H.object.extend(Aa,proto.google.protobuf)});var rn=J(fa=>{var Y=mr(),je=Y,Ut=function(){return this?this:typeof window<"u"?window:typeof Ut<"u"?Ut:typeof self<"u"?self:Function("return this")()}.call(null),Ir=da();je.object.extend(proto,Ir);je.exportSymbol("proto.ic_base_types.pb.v1.CanisterAuthzInfo",null,Ut);je.exportSymbol("proto.ic_base_types.pb.v1.CanisterId",null,Ut);je.exportSymbol("proto.ic_base_types.pb.v1.MethodAuthzInfo",null,Ut);je.exportSymbol("proto.ic_base_types.pb.v1.NeuronId",null,Ut);je.exportSymbol("proto.ic_base_types.pb.v1.PrincipalId",null,Ut);je.exportSymbol("proto.ic_base_types.pb.v1.ProposalId",null,Ut);je.exportSymbol("proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021",null,Ut);je.exportSymbol("proto.ic_base_types.pb.v1.tuiSignedMessage",null,Ut);proto.ic_base_types.pb.v1.PrincipalId=function(t){Y.Message.initialize(this,t,0,-1,null,null)};je.inherits(proto.ic_base_types.pb.v1.PrincipalId,Y.Message);je.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.PrincipalId.displayName="proto.ic_base_types.pb.v1.PrincipalId");proto.ic_base_types.pb.v1.CanisterId=function(t){Y.Message.initialize(this,t,0,-1,null,null)};je.inherits(proto.ic_base_types.pb.v1.CanisterId,Y.Message);je.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.CanisterId.displayName="proto.ic_base_types.pb.v1.CanisterId");proto.ic_base_types.pb.v1.NeuronId=function(t){Y.Message.initialize(this,t,0,-1,null,null)};je.inherits(proto.ic_base_types.pb.v1.NeuronId,Y.Message);je.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.NeuronId.displayName="proto.ic_base_types.pb.v1.NeuronId");proto.ic_base_types.pb.v1.ProposalId=function(t){Y.Message.initialize(this,t,0,-1,null,null)};je.inherits(proto.ic_base_types.pb.v1.ProposalId,Y.Message);je.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.ProposalId.displayName="proto.ic_base_types.pb.v1.ProposalId");proto.ic_base_types.pb.v1.MethodAuthzInfo=function(t){Y.Message.initialize(this,t,0,-1,proto.ic_base_types.pb.v1.MethodAuthzInfo.repeatedFields_,null)};je.inherits(proto.ic_base_types.pb.v1.MethodAuthzInfo,Y.Message);je.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.MethodAuthzInfo.displayName="proto.ic_base_types.pb.v1.MethodAuthzInfo");proto.ic_base_types.pb.v1.CanisterAuthzInfo=function(t){Y.Message.initialize(this,t,0,-1,proto.ic_base_types.pb.v1.CanisterAuthzInfo.repeatedFields_,null)};je.inherits(proto.ic_base_types.pb.v1.CanisterAuthzInfo,Y.Message);je.DEBUG&&!COMPILED&&(proto.ic_base_types.pb.v1.CanisterAuthzInfo.displayName="proto.ic_base_types.pb.v1.CanisterAuthzInfo");Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.PrincipalId.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.PrincipalId.toObject(t,this)},proto.ic_base_types.pb.v1.PrincipalId.toObject=function(t,o){var r,n={serializedId:o.getSerializedId_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_base_types.pb.v1.PrincipalId.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.PrincipalId;return proto.ic_base_types.pb.v1.PrincipalId.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.PrincipalId.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBytes();t.setSerializedId(n);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.PrincipalId.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.PrincipalId.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.PrincipalId.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getSerializedId_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_base_types.pb.v1.PrincipalId.prototype.getSerializedId=function(){return Y.Message.getFieldWithDefault(this,1,"")};proto.ic_base_types.pb.v1.PrincipalId.prototype.getSerializedId_asB64=function(){return Y.Message.bytesAsB64(this.getSerializedId())};proto.ic_base_types.pb.v1.PrincipalId.prototype.getSerializedId_asU8=function(){return Y.Message.bytesAsU8(this.getSerializedId())};proto.ic_base_types.pb.v1.PrincipalId.prototype.setSerializedId=function(t){return Y.Message.setProto3BytesField(this,1,t)};Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.CanisterId.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.CanisterId.toObject(t,this)},proto.ic_base_types.pb.v1.CanisterId.toObject=function(t,o){var r,n={serializedId:o.getSerializedId_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_base_types.pb.v1.CanisterId.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.CanisterId;return proto.ic_base_types.pb.v1.CanisterId.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.CanisterId.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBytes();t.setSerializedId(n);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.CanisterId.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.CanisterId.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.CanisterId.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getSerializedId_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_base_types.pb.v1.CanisterId.prototype.getSerializedId=function(){return Y.Message.getFieldWithDefault(this,1,"")};proto.ic_base_types.pb.v1.CanisterId.prototype.getSerializedId_asB64=function(){return Y.Message.bytesAsB64(this.getSerializedId())};proto.ic_base_types.pb.v1.CanisterId.prototype.getSerializedId_asU8=function(){return Y.Message.bytesAsU8(this.getSerializedId())};proto.ic_base_types.pb.v1.CanisterId.prototype.setSerializedId=function(t){return Y.Message.setProto3BytesField(this,1,t)};Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.NeuronId.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.NeuronId.toObject(t,this)},proto.ic_base_types.pb.v1.NeuronId.toObject=function(t,o){var r,n={id:Y.Message.getFieldWithDefault(o,2,"0")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_base_types.pb.v1.NeuronId.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.NeuronId;return proto.ic_base_types.pb.v1.NeuronId.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.NeuronId.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 2:var n=o.readUint64String();t.setId(n);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.NeuronId.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.NeuronId.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.NeuronId.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getId(),parseInt(r,10)!==0&&o.writeUint64String(2,r)};proto.ic_base_types.pb.v1.NeuronId.prototype.getId=function(){return Y.Message.getFieldWithDefault(this,2,"0")};proto.ic_base_types.pb.v1.NeuronId.prototype.setId=function(t){return Y.Message.setProto3StringIntField(this,2,t)};Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.ProposalId.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.ProposalId.toObject(t,this)},proto.ic_base_types.pb.v1.ProposalId.toObject=function(t,o){var r,n={id:Y.Message.getFieldWithDefault(o,1,"0")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_base_types.pb.v1.ProposalId.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.ProposalId;return proto.ic_base_types.pb.v1.ProposalId.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.ProposalId.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readUint64String();t.setId(n);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.ProposalId.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.ProposalId.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.ProposalId.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getId(),parseInt(r,10)!==0&&o.writeUint64String(1,r)};proto.ic_base_types.pb.v1.ProposalId.prototype.getId=function(){return Y.Message.getFieldWithDefault(this,1,"0")};proto.ic_base_types.pb.v1.ProposalId.prototype.setId=function(t){return Y.Message.setProto3StringIntField(this,1,t)};proto.ic_base_types.pb.v1.MethodAuthzInfo.repeatedFields_=[2];Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.MethodAuthzInfo.toObject(t,this)},proto.ic_base_types.pb.v1.MethodAuthzInfo.toObject=function(t,o){var r,n={methodName:Y.Message.getFieldWithDefault(o,1,""),principalIdsList:o.getPrincipalIdsList_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.MethodAuthzInfo;return proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readString();t.setMethodName(n);break;case 2:var n=o.readBytes();t.addPrincipalIds(n);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.MethodAuthzInfo.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.MethodAuthzInfo.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMethodName(),r.length>0&&o.writeString(1,r),r=t.getPrincipalIdsList_asU8(),r.length>0&&o.writeRepeatedBytes(2,r)};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getMethodName=function(){return Y.Message.getFieldWithDefault(this,1,"")};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.setMethodName=function(t){return Y.Message.setProto3StringField(this,1,t)};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getPrincipalIdsList=function(){return Y.Message.getRepeatedField(this,2)};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getPrincipalIdsList_asB64=function(){return Y.Message.bytesListAsB64(this.getPrincipalIdsList())};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getPrincipalIdsList_asU8=function(){return Y.Message.bytesListAsU8(this.getPrincipalIdsList())};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.setPrincipalIdsList=function(t){return Y.Message.setField(this,2,t||[])};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.addPrincipalIds=function(t,o){return Y.Message.addToRepeatedField(this,2,t,o)};proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.clearPrincipalIdsList=function(){return this.setPrincipalIdsList([])};proto.ic_base_types.pb.v1.CanisterAuthzInfo.repeatedFields_=[1];Y.Message.GENERATE_TO_OBJECT&&(proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.toObject=function(t){return proto.ic_base_types.pb.v1.CanisterAuthzInfo.toObject(t,this)},proto.ic_base_types.pb.v1.CanisterAuthzInfo.toObject=function(t,o){var r,n={methodsAuthzList:Y.Message.toObjectList(o.getMethodsAuthzList(),proto.ic_base_types.pb.v1.MethodAuthzInfo.toObject,t)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_base_types.pb.v1.CanisterAuthzInfo.deserializeBinary=function(t){var o=new Y.BinaryReader(t),r=new proto.ic_base_types.pb.v1.CanisterAuthzInfo;return proto.ic_base_types.pb.v1.CanisterAuthzInfo.deserializeBinaryFromReader(r,o)};proto.ic_base_types.pb.v1.CanisterAuthzInfo.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_base_types.pb.v1.MethodAuthzInfo;o.readMessage(n,proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinaryFromReader),t.addMethodsAuthz(n);break;default:o.skipField();break}}return t};proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.serializeBinary=function(){var t=new Y.BinaryWriter;return proto.ic_base_types.pb.v1.CanisterAuthzInfo.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_base_types.pb.v1.CanisterAuthzInfo.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMethodsAuthzList(),r.length>0&&o.writeRepeatedMessage(1,r,proto.ic_base_types.pb.v1.MethodAuthzInfo.serializeBinaryToWriter)};proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.getMethodsAuthzList=function(){return Y.Message.getRepeatedWrapperField(this,proto.ic_base_types.pb.v1.MethodAuthzInfo,1)};proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.setMethodsAuthzList=function(t){return Y.Message.setRepeatedWrapperField(this,1,t)};proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.addMethodsAuthz=function(t,o){return Y.Message.addToRepeatedWrapperField(this,1,t,proto.ic_base_types.pb.v1.MethodAuthzInfo,o)};proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.clearMethodsAuthzList=function(){return this.setMethodsAuthzList([])};proto.ic_base_types.pb.v1.tuiSignedMessage=new Y.ExtensionFieldInfo(2e4,{tuiSignedMessage:0},null,null,0);Ir.MessageOptions.extensionsBinary[2e4]=new Y.ExtensionFieldBinaryInfo(proto.ic_base_types.pb.v1.tuiSignedMessage,Y.BinaryReader.prototype.readBool,Y.BinaryWriter.prototype.writeBool,void 0,void 0,!1);Ir.MessageOptions.extensions[2e4]=proto.ic_base_types.pb.v1.tuiSignedMessage;proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021=new Y.ExtensionFieldInfo(20001,{tuiSignedDisplayQ22021:0},null,null,0);Ir.FieldOptions.extensionsBinary[20001]=new Y.ExtensionFieldBinaryInfo(proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021,Y.BinaryReader.prototype.readBool,Y.BinaryWriter.prototype.writeBool,void 0,void 0,!1);Ir.FieldOptions.extensions[20001]=proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021;je.object.extend(fa,proto.ic_base_types.pb.v1)});var Bo=J(ha=>{var l=mr(),D=l,ce=function(){return this?this:typeof window<"u"?window:typeof ce<"u"?ce:typeof self<"u"?self:Function("return this")()}.call(null),ze=rn();D.object.extend(proto,ze);D.exportSymbol("proto.ic_ledger.pb.v1.Account",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.AccountBalanceRequest",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.AccountBalanceResponse",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.AccountIdentifier",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.Block",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.BlockHeight",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.Burn",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.Certification",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.CyclesNotificationResponse",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.CyclesNotificationResponse.ResponseCase",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.EncodedBlock",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.EncodedBlocks",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.GetBlocksRequest",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.GetBlocksResponse",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.GetBlocksResponse.GetBlocksContentCase",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.Hash",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.ICPTs",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.Memo",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.Mint",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.NotifyRequest",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.NotifyResponse",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.Payment",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.Refund",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.Send",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.SendRequest",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.SendResponse",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.Subaccount",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.TimeStamp",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.TipOfChainRequest",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.TipOfChainResponse",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.ToppedUp",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.Transaction",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.Transaction.TransferCase",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.TransactionNotificationRequest",null,ce);D.exportSymbol("proto.ic_ledger.pb.v1.TransactionNotificationResponse",null,ce);proto.ic_ledger.pb.v1.SendRequest=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.SendRequest,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.SendRequest.displayName="proto.ic_ledger.pb.v1.SendRequest");proto.ic_ledger.pb.v1.SendResponse=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.SendResponse,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.SendResponse.displayName="proto.ic_ledger.pb.v1.SendResponse");proto.ic_ledger.pb.v1.NotifyRequest=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.NotifyRequest,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.NotifyRequest.displayName="proto.ic_ledger.pb.v1.NotifyRequest");proto.ic_ledger.pb.v1.NotifyResponse=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.NotifyResponse,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.NotifyResponse.displayName="proto.ic_ledger.pb.v1.NotifyResponse");proto.ic_ledger.pb.v1.TransactionNotificationRequest=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.TransactionNotificationRequest,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.TransactionNotificationRequest.displayName="proto.ic_ledger.pb.v1.TransactionNotificationRequest");proto.ic_ledger.pb.v1.TransactionNotificationResponse=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.TransactionNotificationResponse,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.TransactionNotificationResponse.displayName="proto.ic_ledger.pb.v1.TransactionNotificationResponse");proto.ic_ledger.pb.v1.CyclesNotificationResponse=function(t){l.Message.initialize(this,t,0,-1,null,proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_)};D.inherits(proto.ic_ledger.pb.v1.CyclesNotificationResponse,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.CyclesNotificationResponse.displayName="proto.ic_ledger.pb.v1.CyclesNotificationResponse");proto.ic_ledger.pb.v1.AccountBalanceRequest=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.AccountBalanceRequest,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.AccountBalanceRequest.displayName="proto.ic_ledger.pb.v1.AccountBalanceRequest");proto.ic_ledger.pb.v1.AccountBalanceResponse=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.AccountBalanceResponse,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.AccountBalanceResponse.displayName="proto.ic_ledger.pb.v1.AccountBalanceResponse");proto.ic_ledger.pb.v1.TipOfChainRequest=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.TipOfChainRequest,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.TipOfChainRequest.displayName="proto.ic_ledger.pb.v1.TipOfChainRequest");proto.ic_ledger.pb.v1.TipOfChainResponse=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.TipOfChainResponse,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.TipOfChainResponse.displayName="proto.ic_ledger.pb.v1.TipOfChainResponse");proto.ic_ledger.pb.v1.EncodedBlock=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.EncodedBlock,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.EncodedBlock.displayName="proto.ic_ledger.pb.v1.EncodedBlock");proto.ic_ledger.pb.v1.GetBlocksRequest=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.GetBlocksRequest,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.GetBlocksRequest.displayName="proto.ic_ledger.pb.v1.GetBlocksRequest");proto.ic_ledger.pb.v1.Refund=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.Refund,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Refund.displayName="proto.ic_ledger.pb.v1.Refund");proto.ic_ledger.pb.v1.ToppedUp=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.ToppedUp,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.ToppedUp.displayName="proto.ic_ledger.pb.v1.ToppedUp");proto.ic_ledger.pb.v1.EncodedBlocks=function(t){l.Message.initialize(this,t,0,-1,proto.ic_ledger.pb.v1.EncodedBlocks.repeatedFields_,null)};D.inherits(proto.ic_ledger.pb.v1.EncodedBlocks,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.EncodedBlocks.displayName="proto.ic_ledger.pb.v1.EncodedBlocks");proto.ic_ledger.pb.v1.GetBlocksResponse=function(t){l.Message.initialize(this,t,0,-1,null,proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_)};D.inherits(proto.ic_ledger.pb.v1.GetBlocksResponse,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.GetBlocksResponse.displayName="proto.ic_ledger.pb.v1.GetBlocksResponse");proto.ic_ledger.pb.v1.ICPTs=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.ICPTs,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.ICPTs.displayName="proto.ic_ledger.pb.v1.ICPTs");proto.ic_ledger.pb.v1.Payment=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.Payment,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Payment.displayName="proto.ic_ledger.pb.v1.Payment");proto.ic_ledger.pb.v1.BlockHeight=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.BlockHeight,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.BlockHeight.displayName="proto.ic_ledger.pb.v1.BlockHeight");proto.ic_ledger.pb.v1.Block=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.Block,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Block.displayName="proto.ic_ledger.pb.v1.Block");proto.ic_ledger.pb.v1.Hash=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.Hash,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Hash.displayName="proto.ic_ledger.pb.v1.Hash");proto.ic_ledger.pb.v1.Account=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.Account,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Account.displayName="proto.ic_ledger.pb.v1.Account");proto.ic_ledger.pb.v1.Transaction=function(t){l.Message.initialize(this,t,0,-1,null,proto.ic_ledger.pb.v1.Transaction.oneofGroups_)};D.inherits(proto.ic_ledger.pb.v1.Transaction,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Transaction.displayName="proto.ic_ledger.pb.v1.Transaction");proto.ic_ledger.pb.v1.Send=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.Send,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Send.displayName="proto.ic_ledger.pb.v1.Send");proto.ic_ledger.pb.v1.Mint=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.Mint,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Mint.displayName="proto.ic_ledger.pb.v1.Mint");proto.ic_ledger.pb.v1.Burn=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.Burn,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Burn.displayName="proto.ic_ledger.pb.v1.Burn");proto.ic_ledger.pb.v1.AccountIdentifier=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.AccountIdentifier,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.AccountIdentifier.displayName="proto.ic_ledger.pb.v1.AccountIdentifier");proto.ic_ledger.pb.v1.Subaccount=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.Subaccount,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Subaccount.displayName="proto.ic_ledger.pb.v1.Subaccount");proto.ic_ledger.pb.v1.Memo=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.Memo,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Memo.displayName="proto.ic_ledger.pb.v1.Memo");proto.ic_ledger.pb.v1.TimeStamp=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.TimeStamp,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.TimeStamp.displayName="proto.ic_ledger.pb.v1.TimeStamp");proto.ic_ledger.pb.v1.Certification=function(t){l.Message.initialize(this,t,0,-1,null,null)};D.inherits(proto.ic_ledger.pb.v1.Certification,l.Message);D.DEBUG&&!COMPILED&&(proto.ic_ledger.pb.v1.Certification.displayName="proto.ic_ledger.pb.v1.Certification");l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.SendRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.SendRequest.toObject(t,this)},proto.ic_ledger.pb.v1.SendRequest.toObject=function(t,o){var r,n={memo:(r=o.getMemo())&&proto.ic_ledger.pb.v1.Memo.toObject(t,r),payment:(r=o.getPayment())&&proto.ic_ledger.pb.v1.Payment.toObject(t,r),maxFee:(r=o.getMaxFee())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r),fromSubaccount:(r=o.getFromSubaccount())&&proto.ic_ledger.pb.v1.Subaccount.toObject(t,r),to:(r=o.getTo())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),createdAt:(r=o.getCreatedAt())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r),createdAtTime:(r=o.getCreatedAtTime())&&proto.ic_ledger.pb.v1.TimeStamp.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.SendRequest.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.SendRequest;return proto.ic_ledger.pb.v1.SendRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.SendRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.Memo;o.readMessage(n,proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader),t.setMemo(n);break;case 2:var n=new proto.ic_ledger.pb.v1.Payment;o.readMessage(n,proto.ic_ledger.pb.v1.Payment.deserializeBinaryFromReader),t.setPayment(n);break;case 3:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setMaxFee(n);break;case 4:var n=new proto.ic_ledger.pb.v1.Subaccount;o.readMessage(n,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader),t.setFromSubaccount(n);break;case 5:var n=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(n,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setTo(n);break;case 6:var n=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(n,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setCreatedAt(n);break;case 7:var n=new proto.ic_ledger.pb.v1.TimeStamp;o.readMessage(n,proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader),t.setCreatedAtTime(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.SendRequest.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.SendRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.SendRequest.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMemo(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter),r=t.getPayment(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.Payment.serializeBinaryToWriter),r=t.getMaxFee(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter),r=t.getFromSubaccount(),r!=null&&o.writeMessage(4,r,proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter),r=t.getTo(),r!=null&&o.writeMessage(5,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getCreatedAt(),r!=null&&o.writeMessage(6,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter),r=t.getCreatedAtTime(),r!=null&&o.writeMessage(7,r,proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.SendRequest.prototype.getMemo=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Memo,1)};proto.ic_ledger.pb.v1.SendRequest.prototype.setMemo=function(t){return l.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearMemo=function(){return this.setMemo(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasMemo=function(){return l.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getPayment=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Payment,2)};proto.ic_ledger.pb.v1.SendRequest.prototype.setPayment=function(t){return l.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearPayment=function(){return this.setPayment(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasPayment=function(){return l.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getMaxFee=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,3)};proto.ic_ledger.pb.v1.SendRequest.prototype.setMaxFee=function(t){return l.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearMaxFee=function(){return this.setMaxFee(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasMaxFee=function(){return l.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getFromSubaccount=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Subaccount,4)};proto.ic_ledger.pb.v1.SendRequest.prototype.setFromSubaccount=function(t){return l.Message.setWrapperField(this,4,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearFromSubaccount=function(){return this.setFromSubaccount(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasFromSubaccount=function(){return l.Message.getField(this,4)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getTo=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,5)};proto.ic_ledger.pb.v1.SendRequest.prototype.setTo=function(t){return l.Message.setWrapperField(this,5,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearTo=function(){return this.setTo(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasTo=function(){return l.Message.getField(this,5)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getCreatedAt=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,6)};proto.ic_ledger.pb.v1.SendRequest.prototype.setCreatedAt=function(t){return l.Message.setWrapperField(this,6,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearCreatedAt=function(){return this.setCreatedAt(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasCreatedAt=function(){return l.Message.getField(this,6)!=null};proto.ic_ledger.pb.v1.SendRequest.prototype.getCreatedAtTime=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.TimeStamp,7)};proto.ic_ledger.pb.v1.SendRequest.prototype.setCreatedAtTime=function(t){return l.Message.setWrapperField(this,7,t)};proto.ic_ledger.pb.v1.SendRequest.prototype.clearCreatedAtTime=function(){return this.setCreatedAtTime(void 0)};proto.ic_ledger.pb.v1.SendRequest.prototype.hasCreatedAtTime=function(){return l.Message.getField(this,7)!=null};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.SendResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.SendResponse.toObject(t,this)},proto.ic_ledger.pb.v1.SendResponse.toObject=function(t,o){var r,n={resultingHeight:(r=o.getResultingHeight())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.SendResponse.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.SendResponse;return proto.ic_ledger.pb.v1.SendResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.SendResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(n,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setResultingHeight(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.SendResponse.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.SendResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.SendResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getResultingHeight(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.SendResponse.prototype.getResultingHeight=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,1)};proto.ic_ledger.pb.v1.SendResponse.prototype.setResultingHeight=function(t){return l.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.SendResponse.prototype.clearResultingHeight=function(){return this.setResultingHeight(void 0)};proto.ic_ledger.pb.v1.SendResponse.prototype.hasResultingHeight=function(){return l.Message.getField(this,1)!=null};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.NotifyRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.NotifyRequest.toObject(t,this)},proto.ic_ledger.pb.v1.NotifyRequest.toObject=function(t,o){var r,n={blockHeight:(r=o.getBlockHeight())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r),maxFee:(r=o.getMaxFee())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r),fromSubaccount:(r=o.getFromSubaccount())&&proto.ic_ledger.pb.v1.Subaccount.toObject(t,r),toCanister:(r=o.getToCanister())&&ze.PrincipalId.toObject(t,r),toSubaccount:(r=o.getToSubaccount())&&proto.ic_ledger.pb.v1.Subaccount.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.NotifyRequest.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.NotifyRequest;return proto.ic_ledger.pb.v1.NotifyRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.NotifyRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(n,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setBlockHeight(n);break;case 2:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setMaxFee(n);break;case 3:var n=new proto.ic_ledger.pb.v1.Subaccount;o.readMessage(n,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader),t.setFromSubaccount(n);break;case 4:var n=new ze.PrincipalId;o.readMessage(n,ze.PrincipalId.deserializeBinaryFromReader),t.setToCanister(n);break;case 5:var n=new proto.ic_ledger.pb.v1.Subaccount;o.readMessage(n,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader),t.setToSubaccount(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.NotifyRequest.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.NotifyRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.NotifyRequest.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBlockHeight(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter),r=t.getMaxFee(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter),r=t.getFromSubaccount(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter),r=t.getToCanister(),r!=null&&o.writeMessage(4,r,ze.PrincipalId.serializeBinaryToWriter),r=t.getToSubaccount(),r!=null&&o.writeMessage(5,r,proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.getBlockHeight=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,1)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.setBlockHeight=function(t){return l.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearBlockHeight=function(){return this.setBlockHeight(void 0)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasBlockHeight=function(){return l.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.NotifyRequest.prototype.getMaxFee=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,2)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.setMaxFee=function(t){return l.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearMaxFee=function(){return this.setMaxFee(void 0)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasMaxFee=function(){return l.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.NotifyRequest.prototype.getFromSubaccount=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Subaccount,3)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.setFromSubaccount=function(t){return l.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearFromSubaccount=function(){return this.setFromSubaccount(void 0)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasFromSubaccount=function(){return l.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.NotifyRequest.prototype.getToCanister=function(){return l.Message.getWrapperField(this,ze.PrincipalId,4)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.setToCanister=function(t){return l.Message.setWrapperField(this,4,t)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearToCanister=function(){return this.setToCanister(void 0)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasToCanister=function(){return l.Message.getField(this,4)!=null};proto.ic_ledger.pb.v1.NotifyRequest.prototype.getToSubaccount=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Subaccount,5)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.setToSubaccount=function(t){return l.Message.setWrapperField(this,5,t)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearToSubaccount=function(){return this.setToSubaccount(void 0)};proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasToSubaccount=function(){return l.Message.getField(this,5)!=null};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.NotifyResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.NotifyResponse.toObject(t,this)},proto.ic_ledger.pb.v1.NotifyResponse.toObject=function(t,o){var r,n={};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.NotifyResponse.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.NotifyResponse;return proto.ic_ledger.pb.v1.NotifyResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.NotifyResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.NotifyResponse.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.NotifyResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.NotifyResponse.serializeBinaryToWriter=function(t,o){var r=void 0};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.TransactionNotificationRequest.toObject(t,this)},proto.ic_ledger.pb.v1.TransactionNotificationRequest.toObject=function(t,o){var r,n={from:(r=o.getFrom())&&ze.PrincipalId.toObject(t,r),fromSubaccount:(r=o.getFromSubaccount())&&proto.ic_ledger.pb.v1.Subaccount.toObject(t,r),to:(r=o.getTo())&&ze.PrincipalId.toObject(t,r),toSubaccount:(r=o.getToSubaccount())&&proto.ic_ledger.pb.v1.Subaccount.toObject(t,r),blockHeight:(r=o.getBlockHeight())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r),amount:(r=o.getAmount())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r),memo:(r=o.getMemo())&&proto.ic_ledger.pb.v1.Memo.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.TransactionNotificationRequest;return proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new ze.PrincipalId;o.readMessage(n,ze.PrincipalId.deserializeBinaryFromReader),t.setFrom(n);break;case 2:var n=new proto.ic_ledger.pb.v1.Subaccount;o.readMessage(n,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader),t.setFromSubaccount(n);break;case 3:var n=new ze.PrincipalId;o.readMessage(n,ze.PrincipalId.deserializeBinaryFromReader),t.setTo(n);break;case 4:var n=new proto.ic_ledger.pb.v1.Subaccount;o.readMessage(n,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader),t.setToSubaccount(n);break;case 5:var n=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(n,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setBlockHeight(n);break;case 6:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setAmount(n);break;case 7:var n=new proto.ic_ledger.pb.v1.Memo;o.readMessage(n,proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader),t.setMemo(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.TransactionNotificationRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.TransactionNotificationRequest.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getFrom(),r!=null&&o.writeMessage(1,r,ze.PrincipalId.serializeBinaryToWriter),r=t.getFromSubaccount(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter),r=t.getTo(),r!=null&&o.writeMessage(3,r,ze.PrincipalId.serializeBinaryToWriter),r=t.getToSubaccount(),r!=null&&o.writeMessage(4,r,proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter),r=t.getBlockHeight(),r!=null&&o.writeMessage(5,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter),r=t.getAmount(),r!=null&&o.writeMessage(6,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter),r=t.getMemo(),r!=null&&o.writeMessage(7,r,proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getFrom=function(){return l.Message.getWrapperField(this,ze.PrincipalId,1)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setFrom=function(t){return l.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearFrom=function(){return this.setFrom(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasFrom=function(){return l.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getFromSubaccount=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Subaccount,2)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setFromSubaccount=function(t){return l.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearFromSubaccount=function(){return this.setFromSubaccount(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasFromSubaccount=function(){return l.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getTo=function(){return l.Message.getWrapperField(this,ze.PrincipalId,3)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setTo=function(t){return l.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearTo=function(){return this.setTo(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasTo=function(){return l.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getToSubaccount=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Subaccount,4)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setToSubaccount=function(t){return l.Message.setWrapperField(this,4,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearToSubaccount=function(){return this.setToSubaccount(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasToSubaccount=function(){return l.Message.getField(this,4)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getBlockHeight=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,5)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setBlockHeight=function(t){return l.Message.setWrapperField(this,5,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearBlockHeight=function(){return this.setBlockHeight(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasBlockHeight=function(){return l.Message.getField(this,5)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getAmount=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,6)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setAmount=function(t){return l.Message.setWrapperField(this,6,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearAmount=function(){return this.setAmount(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasAmount=function(){return l.Message.getField(this,6)!=null};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getMemo=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Memo,7)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setMemo=function(t){return l.Message.setWrapperField(this,7,t)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearMemo=function(){return this.setMemo(void 0)};proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasMemo=function(){return l.Message.getField(this,7)!=null};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.TransactionNotificationResponse.toObject(t,this)},proto.ic_ledger.pb.v1.TransactionNotificationResponse.toObject=function(t,o){var r,n={response:o.getResponse_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.TransactionNotificationResponse.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.TransactionNotificationResponse;return proto.ic_ledger.pb.v1.TransactionNotificationResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.TransactionNotificationResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBytes();t.setResponse(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.TransactionNotificationResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.TransactionNotificationResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getResponse_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.getResponse=function(){return l.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.getResponse_asB64=function(){return l.Message.bytesAsB64(this.getResponse())};proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.getResponse_asU8=function(){return l.Message.bytesAsU8(this.getResponse())};proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.setResponse=function(t){return l.Message.setProto3BytesField(this,1,t)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_=[[1,2,3]];proto.ic_ledger.pb.v1.CyclesNotificationResponse.ResponseCase={RESPONSE_NOT_SET:0,CREATED_CANISTER_ID:1,REFUND:2,TOPPED_UP:3};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getResponseCase=function(){return l.Message.computeOneofCase(this,proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0])};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.CyclesNotificationResponse.toObject(t,this)},proto.ic_ledger.pb.v1.CyclesNotificationResponse.toObject=function(t,o){var r,n={createdCanisterId:(r=o.getCreatedCanisterId())&&ze.PrincipalId.toObject(t,r),refund:(r=o.getRefund())&&proto.ic_ledger.pb.v1.Refund.toObject(t,r),toppedUp:(r=o.getToppedUp())&&proto.ic_ledger.pb.v1.ToppedUp.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.CyclesNotificationResponse;return proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new ze.PrincipalId;o.readMessage(n,ze.PrincipalId.deserializeBinaryFromReader),t.setCreatedCanisterId(n);break;case 2:var n=new proto.ic_ledger.pb.v1.Refund;o.readMessage(n,proto.ic_ledger.pb.v1.Refund.deserializeBinaryFromReader),t.setRefund(n);break;case 3:var n=new proto.ic_ledger.pb.v1.ToppedUp;o.readMessage(n,proto.ic_ledger.pb.v1.ToppedUp.deserializeBinaryFromReader),t.setToppedUp(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.CyclesNotificationResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.CyclesNotificationResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getCreatedCanisterId(),r!=null&&o.writeMessage(1,r,ze.PrincipalId.serializeBinaryToWriter),r=t.getRefund(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.Refund.serializeBinaryToWriter),r=t.getToppedUp(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.ToppedUp.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getCreatedCanisterId=function(){return l.Message.getWrapperField(this,ze.PrincipalId,1)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.setCreatedCanisterId=function(t){return l.Message.setOneofWrapperField(this,1,proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.clearCreatedCanisterId=function(){return this.setCreatedCanisterId(void 0)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.hasCreatedCanisterId=function(){return l.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getRefund=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Refund,2)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.setRefund=function(t){return l.Message.setOneofWrapperField(this,2,proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.clearRefund=function(){return this.setRefund(void 0)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.hasRefund=function(){return l.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getToppedUp=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ToppedUp,3)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.setToppedUp=function(t){return l.Message.setOneofWrapperField(this,3,proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.clearToppedUp=function(){return this.setToppedUp(void 0)};proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.hasToppedUp=function(){return l.Message.getField(this,3)!=null};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.AccountBalanceRequest.toObject(t,this)},proto.ic_ledger.pb.v1.AccountBalanceRequest.toObject=function(t,o){var r,n={account:(r=o.getAccount())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.AccountBalanceRequest;return proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(n,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setAccount(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.AccountBalanceRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.AccountBalanceRequest.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getAccount(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.getAccount=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,1)};proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.setAccount=function(t){return l.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.clearAccount=function(){return this.setAccount(void 0)};proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.hasAccount=function(){return l.Message.getField(this,1)!=null};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.AccountBalanceResponse.toObject(t,this)},proto.ic_ledger.pb.v1.AccountBalanceResponse.toObject=function(t,o){var r,n={balance:(r=o.getBalance())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.AccountBalanceResponse.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.AccountBalanceResponse;return proto.ic_ledger.pb.v1.AccountBalanceResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.AccountBalanceResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setBalance(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.AccountBalanceResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.AccountBalanceResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBalance(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.getBalance=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,1)};proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.setBalance=function(t){return l.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.clearBalance=function(){return this.setBalance(void 0)};proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.hasBalance=function(){return l.Message.getField(this,1)!=null};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.TipOfChainRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.TipOfChainRequest.toObject(t,this)},proto.ic_ledger.pb.v1.TipOfChainRequest.toObject=function(t,o){var r,n={};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.TipOfChainRequest.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.TipOfChainRequest;return proto.ic_ledger.pb.v1.TipOfChainRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.TipOfChainRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.TipOfChainRequest.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.TipOfChainRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.TipOfChainRequest.serializeBinaryToWriter=function(t,o){var r=void 0};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.TipOfChainResponse.toObject(t,this)},proto.ic_ledger.pb.v1.TipOfChainResponse.toObject=function(t,o){var r,n={certification:(r=o.getCertification())&&proto.ic_ledger.pb.v1.Certification.toObject(t,r),chainLength:(r=o.getChainLength())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.TipOfChainResponse;return proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.Certification;o.readMessage(n,proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader),t.setCertification(n);break;case 2:var n=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(n,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setChainLength(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.TipOfChainResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.TipOfChainResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getCertification(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.Certification.serializeBinaryToWriter),r=t.getChainLength(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.getCertification=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Certification,1)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.setCertification=function(t){return l.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.clearCertification=function(){return this.setCertification(void 0)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.hasCertification=function(){return l.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.getChainLength=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,2)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.setChainLength=function(t){return l.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.clearChainLength=function(){return this.setChainLength(void 0)};proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.hasChainLength=function(){return l.Message.getField(this,2)!=null};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.EncodedBlock.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.EncodedBlock.toObject(t,this)},proto.ic_ledger.pb.v1.EncodedBlock.toObject=function(t,o){var r,n={block:o.getBlock_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.EncodedBlock;return proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBytes();t.setBlock(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.EncodedBlock.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBlock_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.EncodedBlock.prototype.getBlock=function(){return l.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.EncodedBlock.prototype.getBlock_asB64=function(){return l.Message.bytesAsB64(this.getBlock())};proto.ic_ledger.pb.v1.EncodedBlock.prototype.getBlock_asU8=function(){return l.Message.bytesAsU8(this.getBlock())};proto.ic_ledger.pb.v1.EncodedBlock.prototype.setBlock=function(t){return l.Message.setProto3BytesField(this,1,t)};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.GetBlocksRequest.toObject(t,this)},proto.ic_ledger.pb.v1.GetBlocksRequest.toObject=function(t,o){var r,n={start:l.Message.getFieldWithDefault(o,1,"0"),length:l.Message.getFieldWithDefault(o,2,"0")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.GetBlocksRequest;return proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readUint64String();t.setStart(n);break;case 2:var n=o.readUint64String();t.setLength(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.GetBlocksRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.GetBlocksRequest.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getStart(),parseInt(r,10)!==0&&o.writeUint64String(1,r),r=t.getLength(),parseInt(r,10)!==0&&o.writeUint64String(2,r)};proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.getStart=function(){return l.Message.getFieldWithDefault(this,1,"0")};proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.setStart=function(t){return l.Message.setProto3StringIntField(this,1,t)};proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.getLength=function(){return l.Message.getFieldWithDefault(this,2,"0")};proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.setLength=function(t){return l.Message.setProto3StringIntField(this,2,t)};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Refund.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Refund.toObject(t,this)},proto.ic_ledger.pb.v1.Refund.toObject=function(t,o){var r,n={refund:(r=o.getRefund())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r),error:l.Message.getFieldWithDefault(o,3,"")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Refund.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Refund;return proto.ic_ledger.pb.v1.Refund.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Refund.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 2:var n=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(n,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setRefund(n);break;case 3:var n=o.readString();t.setError(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Refund.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.Refund.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Refund.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getRefund(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter),r=t.getError(),r.length>0&&o.writeString(3,r)};proto.ic_ledger.pb.v1.Refund.prototype.getRefund=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,2)};proto.ic_ledger.pb.v1.Refund.prototype.setRefund=function(t){return l.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.Refund.prototype.clearRefund=function(){return this.setRefund(void 0)};proto.ic_ledger.pb.v1.Refund.prototype.hasRefund=function(){return l.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Refund.prototype.getError=function(){return l.Message.getFieldWithDefault(this,3,"")};proto.ic_ledger.pb.v1.Refund.prototype.setError=function(t){return l.Message.setProto3StringField(this,3,t)};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.ToppedUp.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.ToppedUp.toObject(t,this)},proto.ic_ledger.pb.v1.ToppedUp.toObject=function(t,o){var r,n={};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.ToppedUp.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.ToppedUp;return proto.ic_ledger.pb.v1.ToppedUp.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.ToppedUp.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.ToppedUp.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.ToppedUp.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.ToppedUp.serializeBinaryToWriter=function(t,o){var r=void 0};proto.ic_ledger.pb.v1.EncodedBlocks.repeatedFields_=[1];l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.EncodedBlocks.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.EncodedBlocks.toObject(t,this)},proto.ic_ledger.pb.v1.EncodedBlocks.toObject=function(t,o){var r,n={blocksList:l.Message.toObjectList(o.getBlocksList(),proto.ic_ledger.pb.v1.EncodedBlock.toObject,t)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.EncodedBlocks;return proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.EncodedBlock;o.readMessage(n,proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader),t.addBlocks(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.EncodedBlocks.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.EncodedBlocks.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.EncodedBlocks.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBlocksList(),r.length>0&&o.writeRepeatedMessage(1,r,proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.EncodedBlocks.prototype.getBlocksList=function(){return l.Message.getRepeatedWrapperField(this,proto.ic_ledger.pb.v1.EncodedBlock,1)};proto.ic_ledger.pb.v1.EncodedBlocks.prototype.setBlocksList=function(t){return l.Message.setRepeatedWrapperField(this,1,t)};proto.ic_ledger.pb.v1.EncodedBlocks.prototype.addBlocks=function(t,o){return l.Message.addToRepeatedWrapperField(this,1,t,proto.ic_ledger.pb.v1.EncodedBlock,o)};proto.ic_ledger.pb.v1.EncodedBlocks.prototype.clearBlocksList=function(){return this.setBlocksList([])};proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_=[[1,2]];proto.ic_ledger.pb.v1.GetBlocksResponse.GetBlocksContentCase={GET_BLOCKS_CONTENT_NOT_SET:0,BLOCKS:1,ERROR:2};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.getGetBlocksContentCase=function(){return l.Message.computeOneofCase(this,proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0])};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.GetBlocksResponse.toObject(t,this)},proto.ic_ledger.pb.v1.GetBlocksResponse.toObject=function(t,o){var r,n={blocks:(r=o.getBlocks())&&proto.ic_ledger.pb.v1.EncodedBlocks.toObject(t,r),error:l.Message.getFieldWithDefault(o,2,"")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.GetBlocksResponse;return proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.EncodedBlocks;o.readMessage(n,proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader),t.setBlocks(n);break;case 2:var n=o.readString();t.setError(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.GetBlocksResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.GetBlocksResponse.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBlocks(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.EncodedBlocks.serializeBinaryToWriter),r=l.Message.getField(t,2),r!=null&&o.writeString(2,r)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.getBlocks=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.EncodedBlocks,1)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.setBlocks=function(t){return l.Message.setOneofWrapperField(this,1,proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.clearBlocks=function(){return this.setBlocks(void 0)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.hasBlocks=function(){return l.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.getError=function(){return l.Message.getFieldWithDefault(this,2,"")};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.setError=function(t){return l.Message.setOneofField(this,2,proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.clearError=function(){return l.Message.setOneofField(this,2,proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0],void 0)};proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.hasError=function(){return l.Message.getField(this,2)!=null};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.ICPTs.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.ICPTs.toObject(t,this)},proto.ic_ledger.pb.v1.ICPTs.toObject=function(t,o){var r,n={e8s:l.Message.getFieldWithDefault(o,1,"0")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.ICPTs.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.ICPTs;return proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readUint64String();t.setE8s(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.ICPTs.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getE8s(),parseInt(r,10)!==0&&o.writeUint64String(1,r)};proto.ic_ledger.pb.v1.ICPTs.prototype.getE8s=function(){return l.Message.getFieldWithDefault(this,1,"0")};proto.ic_ledger.pb.v1.ICPTs.prototype.setE8s=function(t){return l.Message.setProto3StringIntField(this,1,t)};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Payment.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Payment.toObject(t,this)},proto.ic_ledger.pb.v1.Payment.toObject=function(t,o){var r,n={receiverGets:(r=o.getReceiverGets())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Payment.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Payment;return proto.ic_ledger.pb.v1.Payment.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Payment.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setReceiverGets(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Payment.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.Payment.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Payment.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getReceiverGets(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Payment.prototype.getReceiverGets=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,1)};proto.ic_ledger.pb.v1.Payment.prototype.setReceiverGets=function(t){return l.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.Payment.prototype.clearReceiverGets=function(){return this.setReceiverGets(void 0)};proto.ic_ledger.pb.v1.Payment.prototype.hasReceiverGets=function(){return l.Message.getField(this,1)!=null};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.BlockHeight.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.BlockHeight.toObject(t,this)},proto.ic_ledger.pb.v1.BlockHeight.toObject=function(t,o){var r,n={height:l.Message.getFieldWithDefault(o,1,"0")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.BlockHeight.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.BlockHeight;return proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readUint64String();t.setHeight(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.BlockHeight.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getHeight(),parseInt(r,10)!==0&&o.writeUint64String(1,r)};proto.ic_ledger.pb.v1.BlockHeight.prototype.getHeight=function(){return l.Message.getFieldWithDefault(this,1,"0")};proto.ic_ledger.pb.v1.BlockHeight.prototype.setHeight=function(t){return l.Message.setProto3StringIntField(this,1,t)};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Block.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Block.toObject(t,this)},proto.ic_ledger.pb.v1.Block.toObject=function(t,o){var r,n={parentHash:(r=o.getParentHash())&&proto.ic_ledger.pb.v1.Hash.toObject(t,r),timestamp:(r=o.getTimestamp())&&proto.ic_ledger.pb.v1.TimeStamp.toObject(t,r),transaction:(r=o.getTransaction())&&proto.ic_ledger.pb.v1.Transaction.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Block.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Block;return proto.ic_ledger.pb.v1.Block.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Block.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.Hash;o.readMessage(n,proto.ic_ledger.pb.v1.Hash.deserializeBinaryFromReader),t.setParentHash(n);break;case 2:var n=new proto.ic_ledger.pb.v1.TimeStamp;o.readMessage(n,proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader),t.setTimestamp(n);break;case 3:var n=new proto.ic_ledger.pb.v1.Transaction;o.readMessage(n,proto.ic_ledger.pb.v1.Transaction.deserializeBinaryFromReader),t.setTransaction(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Block.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.Block.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Block.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getParentHash(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.Hash.serializeBinaryToWriter),r=t.getTimestamp(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter),r=t.getTransaction(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.Transaction.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Block.prototype.getParentHash=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Hash,1)};proto.ic_ledger.pb.v1.Block.prototype.setParentHash=function(t){return l.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.Block.prototype.clearParentHash=function(){return this.setParentHash(void 0)};proto.ic_ledger.pb.v1.Block.prototype.hasParentHash=function(){return l.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.Block.prototype.getTimestamp=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.TimeStamp,2)};proto.ic_ledger.pb.v1.Block.prototype.setTimestamp=function(t){return l.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.Block.prototype.clearTimestamp=function(){return this.setTimestamp(void 0)};proto.ic_ledger.pb.v1.Block.prototype.hasTimestamp=function(){return l.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Block.prototype.getTransaction=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Transaction,3)};proto.ic_ledger.pb.v1.Block.prototype.setTransaction=function(t){return l.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.Block.prototype.clearTransaction=function(){return this.setTransaction(void 0)};proto.ic_ledger.pb.v1.Block.prototype.hasTransaction=function(){return l.Message.getField(this,3)!=null};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Hash.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Hash.toObject(t,this)},proto.ic_ledger.pb.v1.Hash.toObject=function(t,o){var r,n={hash:o.getHash_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Hash.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Hash;return proto.ic_ledger.pb.v1.Hash.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Hash.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBytes();t.setHash(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Hash.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.Hash.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Hash.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getHash_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.Hash.prototype.getHash=function(){return l.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.Hash.prototype.getHash_asB64=function(){return l.Message.bytesAsB64(this.getHash())};proto.ic_ledger.pb.v1.Hash.prototype.getHash_asU8=function(){return l.Message.bytesAsU8(this.getHash())};proto.ic_ledger.pb.v1.Hash.prototype.setHash=function(t){return l.Message.setProto3BytesField(this,1,t)};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Account.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Account.toObject(t,this)},proto.ic_ledger.pb.v1.Account.toObject=function(t,o){var r,n={identifier:(r=o.getIdentifier())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),balance:(r=o.getBalance())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Account.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Account;return proto.ic_ledger.pb.v1.Account.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Account.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(n,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setIdentifier(n);break;case 2:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setBalance(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Account.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.Account.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Account.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getIdentifier(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getBalance(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Account.prototype.getIdentifier=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,1)};proto.ic_ledger.pb.v1.Account.prototype.setIdentifier=function(t){return l.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.Account.prototype.clearIdentifier=function(){return this.setIdentifier(void 0)};proto.ic_ledger.pb.v1.Account.prototype.hasIdentifier=function(){return l.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.Account.prototype.getBalance=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,2)};proto.ic_ledger.pb.v1.Account.prototype.setBalance=function(t){return l.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.Account.prototype.clearBalance=function(){return this.setBalance(void 0)};proto.ic_ledger.pb.v1.Account.prototype.hasBalance=function(){return l.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Transaction.oneofGroups_=[[1,2,3]];proto.ic_ledger.pb.v1.Transaction.TransferCase={TRANSFER_NOT_SET:0,BURN:1,MINT:2,SEND:3};proto.ic_ledger.pb.v1.Transaction.prototype.getTransferCase=function(){return l.Message.computeOneofCase(this,proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0])};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Transaction.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Transaction.toObject(t,this)},proto.ic_ledger.pb.v1.Transaction.toObject=function(t,o){var r,n={burn:(r=o.getBurn())&&proto.ic_ledger.pb.v1.Burn.toObject(t,r),mint:(r=o.getMint())&&proto.ic_ledger.pb.v1.Mint.toObject(t,r),send:(r=o.getSend())&&proto.ic_ledger.pb.v1.Send.toObject(t,r),memo:(r=o.getMemo())&&proto.ic_ledger.pb.v1.Memo.toObject(t,r),createdAt:(r=o.getCreatedAt())&&proto.ic_ledger.pb.v1.BlockHeight.toObject(t,r),createdAtTime:(r=o.getCreatedAtTime())&&proto.ic_ledger.pb.v1.TimeStamp.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Transaction.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Transaction;return proto.ic_ledger.pb.v1.Transaction.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Transaction.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.Burn;o.readMessage(n,proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader),t.setBurn(n);break;case 2:var n=new proto.ic_ledger.pb.v1.Mint;o.readMessage(n,proto.ic_ledger.pb.v1.Mint.deserializeBinaryFromReader),t.setMint(n);break;case 3:var n=new proto.ic_ledger.pb.v1.Send;o.readMessage(n,proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader),t.setSend(n);break;case 4:var n=new proto.ic_ledger.pb.v1.Memo;o.readMessage(n,proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader),t.setMemo(n);break;case 5:var n=new proto.ic_ledger.pb.v1.BlockHeight;o.readMessage(n,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader),t.setCreatedAt(n);break;case 6:var n=new proto.ic_ledger.pb.v1.TimeStamp;o.readMessage(n,proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader),t.setCreatedAtTime(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Transaction.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.Transaction.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Transaction.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getBurn(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.Burn.serializeBinaryToWriter),r=t.getMint(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.Mint.serializeBinaryToWriter),r=t.getSend(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter),r=t.getMemo(),r!=null&&o.writeMessage(4,r,proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter),r=t.getCreatedAt(),r!=null&&o.writeMessage(5,r,proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter),r=t.getCreatedAtTime(),r!=null&&o.writeMessage(6,r,proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Transaction.prototype.getBurn=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Burn,1)};proto.ic_ledger.pb.v1.Transaction.prototype.setBurn=function(t){return l.Message.setOneofWrapperField(this,1,proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearBurn=function(){return this.setBurn(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasBurn=function(){return l.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.Transaction.prototype.getMint=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Mint,2)};proto.ic_ledger.pb.v1.Transaction.prototype.setMint=function(t){return l.Message.setOneofWrapperField(this,2,proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearMint=function(){return this.setMint(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasMint=function(){return l.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Transaction.prototype.getSend=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Send,3)};proto.ic_ledger.pb.v1.Transaction.prototype.setSend=function(t){return l.Message.setOneofWrapperField(this,3,proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0],t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearSend=function(){return this.setSend(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasSend=function(){return l.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.Transaction.prototype.getMemo=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.Memo,4)};proto.ic_ledger.pb.v1.Transaction.prototype.setMemo=function(t){return l.Message.setWrapperField(this,4,t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearMemo=function(){return this.setMemo(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasMemo=function(){return l.Message.getField(this,4)!=null};proto.ic_ledger.pb.v1.Transaction.prototype.getCreatedAt=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.BlockHeight,5)};proto.ic_ledger.pb.v1.Transaction.prototype.setCreatedAt=function(t){return l.Message.setWrapperField(this,5,t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearCreatedAt=function(){return this.setCreatedAt(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasCreatedAt=function(){return l.Message.getField(this,5)!=null};proto.ic_ledger.pb.v1.Transaction.prototype.getCreatedAtTime=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.TimeStamp,6)};proto.ic_ledger.pb.v1.Transaction.prototype.setCreatedAtTime=function(t){return l.Message.setWrapperField(this,6,t)};proto.ic_ledger.pb.v1.Transaction.prototype.clearCreatedAtTime=function(){return this.setCreatedAtTime(void 0)};proto.ic_ledger.pb.v1.Transaction.prototype.hasCreatedAtTime=function(){return l.Message.getField(this,6)!=null};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Send.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Send.toObject(t,this)},proto.ic_ledger.pb.v1.Send.toObject=function(t,o){var r,n={from:(r=o.getFrom())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),to:(r=o.getTo())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),amount:(r=o.getAmount())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r),maxFee:(r=o.getMaxFee())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Send.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Send;return proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(n,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setFrom(n);break;case 2:var n=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(n,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setTo(n);break;case 3:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setAmount(n);break;case 4:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setMaxFee(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Send.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getFrom(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getTo(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getAmount(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter),r=t.getMaxFee(),r!=null&&o.writeMessage(4,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Send.prototype.getFrom=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,1)};proto.ic_ledger.pb.v1.Send.prototype.setFrom=function(t){return l.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.Send.prototype.clearFrom=function(){return this.setFrom(void 0)};proto.ic_ledger.pb.v1.Send.prototype.hasFrom=function(){return l.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.Send.prototype.getTo=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,2)};proto.ic_ledger.pb.v1.Send.prototype.setTo=function(t){return l.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.Send.prototype.clearTo=function(){return this.setTo(void 0)};proto.ic_ledger.pb.v1.Send.prototype.hasTo=function(){return l.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Send.prototype.getAmount=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,3)};proto.ic_ledger.pb.v1.Send.prototype.setAmount=function(t){return l.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.Send.prototype.clearAmount=function(){return this.setAmount(void 0)};proto.ic_ledger.pb.v1.Send.prototype.hasAmount=function(){return l.Message.getField(this,3)!=null};proto.ic_ledger.pb.v1.Send.prototype.getMaxFee=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,4)};proto.ic_ledger.pb.v1.Send.prototype.setMaxFee=function(t){return l.Message.setWrapperField(this,4,t)};proto.ic_ledger.pb.v1.Send.prototype.clearMaxFee=function(){return this.setMaxFee(void 0)};proto.ic_ledger.pb.v1.Send.prototype.hasMaxFee=function(){return l.Message.getField(this,4)!=null};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Mint.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Mint.toObject(t,this)},proto.ic_ledger.pb.v1.Mint.toObject=function(t,o){var r,n={to:(r=o.getTo())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),amount:(r=o.getAmount())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Mint.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Mint;return proto.ic_ledger.pb.v1.Mint.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Mint.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 2:var n=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(n,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setTo(n);break;case 3:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setAmount(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Mint.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.Mint.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Mint.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getTo(),r!=null&&o.writeMessage(2,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getAmount(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Mint.prototype.getTo=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,2)};proto.ic_ledger.pb.v1.Mint.prototype.setTo=function(t){return l.Message.setWrapperField(this,2,t)};proto.ic_ledger.pb.v1.Mint.prototype.clearTo=function(){return this.setTo(void 0)};proto.ic_ledger.pb.v1.Mint.prototype.hasTo=function(){return l.Message.getField(this,2)!=null};proto.ic_ledger.pb.v1.Mint.prototype.getAmount=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,3)};proto.ic_ledger.pb.v1.Mint.prototype.setAmount=function(t){return l.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.Mint.prototype.clearAmount=function(){return this.setAmount(void 0)};proto.ic_ledger.pb.v1.Mint.prototype.hasAmount=function(){return l.Message.getField(this,3)!=null};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Burn.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Burn.toObject(t,this)},proto.ic_ledger.pb.v1.Burn.toObject=function(t,o){var r,n={from:(r=o.getFrom())&&proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,r),amount:(r=o.getAmount())&&proto.ic_ledger.pb.v1.ICPTs.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Burn.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Burn;return proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=new proto.ic_ledger.pb.v1.AccountIdentifier;o.readMessage(n,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader),t.setFrom(n);break;case 3:var n=new proto.ic_ledger.pb.v1.ICPTs;o.readMessage(n,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader),t.setAmount(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Burn.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.Burn.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Burn.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getFrom(),r!=null&&o.writeMessage(1,r,proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter),r=t.getAmount(),r!=null&&o.writeMessage(3,r,proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter)};proto.ic_ledger.pb.v1.Burn.prototype.getFrom=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.AccountIdentifier,1)};proto.ic_ledger.pb.v1.Burn.prototype.setFrom=function(t){return l.Message.setWrapperField(this,1,t)};proto.ic_ledger.pb.v1.Burn.prototype.clearFrom=function(){return this.setFrom(void 0)};proto.ic_ledger.pb.v1.Burn.prototype.hasFrom=function(){return l.Message.getField(this,1)!=null};proto.ic_ledger.pb.v1.Burn.prototype.getAmount=function(){return l.Message.getWrapperField(this,proto.ic_ledger.pb.v1.ICPTs,3)};proto.ic_ledger.pb.v1.Burn.prototype.setAmount=function(t){return l.Message.setWrapperField(this,3,t)};proto.ic_ledger.pb.v1.Burn.prototype.clearAmount=function(){return this.setAmount(void 0)};proto.ic_ledger.pb.v1.Burn.prototype.hasAmount=function(){return l.Message.getField(this,3)!=null};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.AccountIdentifier.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.AccountIdentifier.toObject(t,this)},proto.ic_ledger.pb.v1.AccountIdentifier.toObject=function(t,o){var r,n={hash:o.getHash_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.AccountIdentifier;return proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBytes();t.setHash(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.AccountIdentifier.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getHash_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.AccountIdentifier.prototype.getHash=function(){return l.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.AccountIdentifier.prototype.getHash_asB64=function(){return l.Message.bytesAsB64(this.getHash())};proto.ic_ledger.pb.v1.AccountIdentifier.prototype.getHash_asU8=function(){return l.Message.bytesAsU8(this.getHash())};proto.ic_ledger.pb.v1.AccountIdentifier.prototype.setHash=function(t){return l.Message.setProto3BytesField(this,1,t)};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Subaccount.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Subaccount.toObject(t,this)},proto.ic_ledger.pb.v1.Subaccount.toObject=function(t,o){var r,n={subAccount:o.getSubAccount_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Subaccount.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Subaccount;return proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBytes();t.setSubAccount(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Subaccount.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getSubAccount_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.Subaccount.prototype.getSubAccount=function(){return l.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.Subaccount.prototype.getSubAccount_asB64=function(){return l.Message.bytesAsB64(this.getSubAccount())};proto.ic_ledger.pb.v1.Subaccount.prototype.getSubAccount_asU8=function(){return l.Message.bytesAsU8(this.getSubAccount())};proto.ic_ledger.pb.v1.Subaccount.prototype.setSubAccount=function(t){return l.Message.setProto3BytesField(this,1,t)};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Memo.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Memo.toObject(t,this)},proto.ic_ledger.pb.v1.Memo.toObject=function(t,o){var r,n={memo:l.Message.getFieldWithDefault(o,1,"0")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Memo.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Memo;return proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readUint64String();t.setMemo(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Memo.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMemo(),parseInt(r,10)!==0&&o.writeUint64String(1,r)};proto.ic_ledger.pb.v1.Memo.prototype.getMemo=function(){return l.Message.getFieldWithDefault(this,1,"0")};proto.ic_ledger.pb.v1.Memo.prototype.setMemo=function(t){return l.Message.setProto3StringIntField(this,1,t)};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.TimeStamp.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.TimeStamp.toObject(t,this)},proto.ic_ledger.pb.v1.TimeStamp.toObject=function(t,o){var r,n={timestampNanos:l.Message.getFieldWithDefault(o,1,"0")};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.TimeStamp.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.TimeStamp;return proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readUint64String();t.setTimestampNanos(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.TimeStamp.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getTimestampNanos(),parseInt(r,10)!==0&&o.writeUint64String(1,r)};proto.ic_ledger.pb.v1.TimeStamp.prototype.getTimestampNanos=function(){return l.Message.getFieldWithDefault(this,1,"0")};proto.ic_ledger.pb.v1.TimeStamp.prototype.setTimestampNanos=function(t){return l.Message.setProto3StringIntField(this,1,t)};l.Message.GENERATE_TO_OBJECT&&(proto.ic_ledger.pb.v1.Certification.prototype.toObject=function(t){return proto.ic_ledger.pb.v1.Certification.toObject(t,this)},proto.ic_ledger.pb.v1.Certification.toObject=function(t,o){var r,n={certification:o.getCertification_asB64()};return t&&(n.$jspbMessageInstance=o),n});proto.ic_ledger.pb.v1.Certification.deserializeBinary=function(t){var o=new l.BinaryReader(t),r=new proto.ic_ledger.pb.v1.Certification;return proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader(r,o)};proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();){var r=o.getFieldNumber();switch(r){case 1:var n=o.readBytes();t.setCertification(n);break;default:o.skipField();break}}return t};proto.ic_ledger.pb.v1.Certification.prototype.serializeBinary=function(){var t=new l.BinaryWriter;return proto.ic_ledger.pb.v1.Certification.serializeBinaryToWriter(this,t),t.getResultBuffer()};proto.ic_ledger.pb.v1.Certification.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getCertification_asU8(),r.length>0&&o.writeBytes(1,r)};proto.ic_ledger.pb.v1.Certification.prototype.getCertification=function(){return l.Message.getFieldWithDefault(this,1,"")};proto.ic_ledger.pb.v1.Certification.prototype.getCertification_asB64=function(){return l.Message.bytesAsB64(this.getCertification())};proto.ic_ledger.pb.v1.Certification.prototype.getCertification_asU8=function(){return l.Message.bytesAsU8(this.getCertification())};proto.ic_ledger.pb.v1.Certification.prototype.setCertification=function(t){return l.Message.setProto3BytesField(this,1,t)};D.object.extend(ha,proto.ic_ledger.pb.v1)});var Ka=J(ln=>{"use strict";ln.byteLength=wl;ln.toByteArray=Sl;ln.fromByteArray=Fl;var Dt=[],Ct=[],Ml=typeof Uint8Array<"u"?Uint8Array:Array,Si="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Eo=0,La=Si.length;Eo<La;++Eo)Dt[Eo]=Si[Eo],Ct[Si.charCodeAt(Eo)]=Eo;var Eo,La;Ct["-".charCodeAt(0)]=62;Ct["_".charCodeAt(0)]=63;function Ja(t){var o=t.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=o);var n=r===o?0:4-r%4;return[r,n]}function wl(t){var o=Ja(t),r=o[0],n=o[1];return(r+n)*3/4-n}function Rl(t,o,r){return(o+r)*3/4-r}function Sl(t){var o,r=Ja(t),n=r[0],i=r[1],s=new Ml(Rl(t,n,i)),p=0,A=i>0?n-4:n,y;for(y=0;y<A;y+=4)o=Ct[t.charCodeAt(y)]<<18|Ct[t.charCodeAt(y+1)]<<12|Ct[t.charCodeAt(y+2)]<<6|Ct[t.charCodeAt(y+3)],s[p++]=o>>16&255,s[p++]=o>>8&255,s[p++]=o&255;return i===2&&(o=Ct[t.charCodeAt(y)]<<2|Ct[t.charCodeAt(y+1)]>>4,s[p++]=o&255),i===1&&(o=Ct[t.charCodeAt(y)]<<10|Ct[t.charCodeAt(y+1)]<<4|Ct[t.charCodeAt(y+2)]>>2,s[p++]=o>>8&255,s[p++]=o&255),s}function Nl(t){return Dt[t>>18&63]+Dt[t>>12&63]+Dt[t>>6&63]+Dt[t&63]}function xl(t,o,r){for(var n,i=[],s=o;s<r;s+=3)n=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(t[s+2]&255),i.push(Nl(n));return i.join("")}function Fl(t){for(var o,r=t.length,n=r%3,i=[],s=16383,p=0,A=r-n;p<A;p+=s)i.push(xl(t,p,p+s>A?A:p+s));return n===1?(o=t[r-1],i.push(Dt[o>>2]+Dt[o<<4&63]+"==")):n===2&&(o=(t[r-2]<<8)+t[r-1],i.push(Dt[o>>10]+Dt[o>>4&63]+Dt[o<<2&63]+"=")),i.join("")}});var xi=J(Ni=>{Ni.read=function(t,o,r,n,i){var s,p,A=i*8-n-1,y=(1<<A)-1,M=y>>1,G=-7,T=r?i-1:0,L=r?-1:1,P=t[o+T];for(T+=L,s=P&(1<<-G)-1,P>>=-G,G+=A;G>0;s=s*256+t[o+T],T+=L,G-=8);for(p=s&(1<<-G)-1,s>>=-G,G+=n;G>0;p=p*256+t[o+T],T+=L,G-=8);if(s===0)s=1-M;else{if(s===y)return p?NaN:(P?-1:1)*(1/0);p=p+Math.pow(2,n),s=s-M}return(P?-1:1)*p*Math.pow(2,s-n)};Ni.write=function(t,o,r,n,i,s){var p,A,y,M=s*8-i-1,G=(1<<M)-1,T=G>>1,L=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=n?0:s-1,Z=n?1:-1,ne=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(A=isNaN(o)?1:0,p=G):(p=Math.floor(Math.log(o)/Math.LN2),o*(y=Math.pow(2,-p))<1&&(p--,y*=2),p+T>=1?o+=L/y:o+=L*Math.pow(2,1-T),o*y>=2&&(p++,y/=2),p+T>=G?(A=0,p=G):p+T>=1?(A=(o*y-1)*Math.pow(2,i),p=p+T):(A=o*Math.pow(2,T-1)*Math.pow(2,i),p=0));i>=8;t[r+P]=A&255,P+=Z,A/=256,i-=8);for(p=p<<i|A,M+=i;M>0;t[r+P]=p&255,P+=Z,p/=256,M-=8);t[r+P-Z]|=ne*128}});var Ag=J(jo=>{"use strict";var Fi=Ka(),Uo=xi(),Za=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;jo.Buffer=O;jo.SlowBuffer=kl;jo.INSPECT_MAX_BYTES=50;var An=2147483647;jo.kMaxLength=An;O.TYPED_ARRAY_SUPPORT=Tl();!O.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function Tl(){try{let t=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(t,o),t.foo()===42}catch{return!1}}Object.defineProperty(O.prototype,"parent",{enumerable:!0,get:function(){if(!!O.isBuffer(this))return this.buffer}});Object.defineProperty(O.prototype,"offset",{enumerable:!0,get:function(){if(!!O.isBuffer(this))return this.byteOffset}});function ro(t){if(t>An)throw new RangeError('The value "'+t+'" is invalid for option "size"');let o=new Uint8Array(t);return Object.setPrototypeOf(o,O.prototype),o}function O(t,o,r){if(typeof t=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Gi(t)}return tg(t,o,r)}O.poolSize=8192;function tg(t,o,r){if(typeof t=="string")return Ql(t,o);if(ArrayBuffer.isView(t))return Gl(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(jt(t,ArrayBuffer)||t&&jt(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(jt(t,SharedArrayBuffer)||t&&jt(t.buffer,SharedArrayBuffer)))return Oi(t,o,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return O.from(n,o,r);let i=Pl(t);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return O.from(t[Symbol.toPrimitive]("string"),o,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}O.from=function(t,o,r){return tg(t,o,r)};Object.setPrototypeOf(O.prototype,Uint8Array.prototype);Object.setPrototypeOf(O,Uint8Array);function og(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Ol(t,o,r){return og(t),t<=0?ro(t):o!==void 0?typeof r=="string"?ro(t).fill(o,r):ro(t).fill(o):ro(t)}O.alloc=function(t,o,r){return Ol(t,o,r)};function Gi(t){return og(t),ro(t<0?0:Pi(t)|0)}O.allocUnsafe=function(t){return Gi(t)};O.allocUnsafeSlow=function(t){return Gi(t)};function Ql(t,o){if((typeof o!="string"||o==="")&&(o="utf8"),!O.isEncoding(o))throw new TypeError("Unknown encoding: "+o);let r=rg(t,o)|0,n=ro(r),i=n.write(t,o);return i!==r&&(n=n.slice(0,i)),n}function Ti(t){let o=t.length<0?0:Pi(t.length)|0,r=ro(o);for(let n=0;n<o;n+=1)r[n]=t[n]&255;return r}function Gl(t){if(jt(t,Uint8Array)){let o=new Uint8Array(t);return Oi(o.buffer,o.byteOffset,o.byteLength)}return Ti(t)}function Oi(t,o,r){if(o<0||t.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<o+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return o===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,o):n=new Uint8Array(t,o,r),Object.setPrototypeOf(n,O.prototype),n}function Pl(t){if(O.isBuffer(t)){let o=Pi(t.length)|0,r=ro(o);return r.length===0||t.copy(r,0,0,o),r}if(t.length!==void 0)return typeof t.length!="number"||Ui(t.length)?ro(0):Ti(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Ti(t.data)}function Pi(t){if(t>=An)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+An.toString(16)+" bytes");return t|0}function kl(t){return+t!=t&&(t=0),O.alloc(+t)}O.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==O.prototype};O.compare=function(o,r){if(jt(o,Uint8Array)&&(o=O.from(o,o.offset,o.byteLength)),jt(r,Uint8Array)&&(r=O.from(r,r.offset,r.byteLength)),!O.isBuffer(o)||!O.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===r)return 0;let n=o.length,i=r.length;for(let s=0,p=Math.min(n,i);s<p;++s)if(o[s]!==r[s]){n=o[s],i=r[s];break}return n<i?-1:i<n?1:0};O.isEncoding=function(o){switch(String(o).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}};O.concat=function(o,r){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return O.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<o.length;++n)r+=o[n].length;let i=O.allocUnsafe(r),s=0;for(n=0;n<o.length;++n){let p=o[n];if(jt(p,Uint8Array))s+p.length>i.length?(O.isBuffer(p)||(p=O.from(p)),p.copy(i,s)):Uint8Array.prototype.set.call(i,p,s);else if(O.isBuffer(p))p.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=p.length}return i};function rg(t,o){if(O.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||jt(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(o){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Qi(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return lg(t).length;default:if(i)return n?-1:Qi(t).length;o=(""+o).toLowerCase(),i=!0}}O.byteLength=rg;function Ul(t,o,r){let n=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,o>>>=0,r<=o))return"";for(t||(t="utf8");;)switch(t){case"hex":return Jl(this,o,r);case"utf8":case"utf-8":return ig(this,o,r);case"ascii":return Yl(this,o,r);case"latin1":case"binary":return Ll(this,o,r);case"base64":return zl(this,o,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kl(this,o,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}O.prototype._isBuffer=!0;function vo(t,o,r){let n=t[o];t[o]=t[r],t[r]=n}O.prototype.swap16=function(){let o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<o;r+=2)vo(this,r,r+1);return this};O.prototype.swap32=function(){let o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<o;r+=4)vo(this,r,r+3),vo(this,r+1,r+2);return this};O.prototype.swap64=function(){let o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<o;r+=8)vo(this,r,r+7),vo(this,r+1,r+6),vo(this,r+2,r+5),vo(this,r+3,r+4);return this};O.prototype.toString=function(){let o=this.length;return o===0?"":arguments.length===0?ig(this,0,o):Ul.apply(this,arguments)};O.prototype.toLocaleString=O.prototype.toString;O.prototype.equals=function(o){if(!O.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:O.compare(this,o)===0};O.prototype.inspect=function(){let o="",r=jo.INSPECT_MAX_BYTES;return o=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(o+=" ... "),"<Buffer "+o+">"};Za&&(O.prototype[Za]=O.prototype.inspect);O.prototype.compare=function(o,r,n,i,s){if(jt(o,Uint8Array)&&(o=O.from(o,o.offset,o.byteLength)),!O.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(r===void 0&&(r=0),n===void 0&&(n=o?o.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),r<0||n>o.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&r>=n)return 0;if(i>=s)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,s>>>=0,this===o)return 0;let p=s-i,A=n-r,y=Math.min(p,A),M=this.slice(i,s),G=o.slice(r,n);for(let T=0;T<y;++T)if(M[T]!==G[T]){p=M[T],A=G[T];break}return p<A?-1:A<p?1:0};function ng(t,o,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Ui(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof o=="string"&&(o=O.from(o,n)),O.isBuffer(o))return o.length===0?-1:Xa(t,o,r,n,i);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,o,r):Uint8Array.prototype.lastIndexOf.call(t,o,r):Xa(t,[o],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Xa(t,o,r,n,i){let s=1,p=t.length,A=o.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||o.length<2)return-1;s=2,p/=2,A/=2,r/=2}function y(G,T){return s===1?G[T]:G.readUInt16BE(T*s)}let M;if(i){let G=-1;for(M=r;M<p;M++)if(y(t,M)===y(o,G===-1?0:M-G)){if(G===-1&&(G=M),M-G+1===A)return G*s}else G!==-1&&(M-=M-G),G=-1}else for(r+A>p&&(r=p-A),M=r;M>=0;M--){let G=!0;for(let T=0;T<A;T++)if(y(t,M+T)!==y(o,T)){G=!1;break}if(G)return M}return-1}O.prototype.includes=function(o,r,n){return this.indexOf(o,r,n)!==-1};O.prototype.indexOf=function(o,r,n){return ng(this,o,r,n,!0)};O.prototype.lastIndexOf=function(o,r,n){return ng(this,o,r,n,!1)};function Dl(t,o,r,n){r=Number(r)||0;let i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;let s=o.length;n>s/2&&(n=s/2);let p;for(p=0;p<n;++p){let A=parseInt(o.substr(p*2,2),16);if(Ui(A))return p;t[r+p]=A}return p}function jl(t,o,r,n){return dn(Qi(o,t.length-r),t,r,n)}function Hl(t,o,r,n){return dn(eA(o),t,r,n)}function Wl(t,o,r,n){return dn(lg(o),t,r,n)}function ql(t,o,r,n){return dn(tA(o,t.length-r),t,r,n)}O.prototype.write=function(o,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-r;if((n===void 0||n>s)&&(n=s),o.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let p=!1;for(;;)switch(i){case"hex":return Dl(this,o,r,n);case"utf8":case"utf-8":return jl(this,o,r,n);case"ascii":case"latin1":case"binary":return Hl(this,o,r,n);case"base64":return Wl(this,o,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ql(this,o,r,n);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};O.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function zl(t,o,r){return o===0&&r===t.length?Fi.fromByteArray(t):Fi.fromByteArray(t.slice(o,r))}function ig(t,o,r){r=Math.min(t.length,r);let n=[],i=o;for(;i<r;){let s=t[i],p=null,A=s>239?4:s>223?3:s>191?2:1;if(i+A<=r){let y,M,G,T;switch(A){case 1:s<128&&(p=s);break;case 2:y=t[i+1],(y&192)===128&&(T=(s&31)<<6|y&63,T>127&&(p=T));break;case 3:y=t[i+1],M=t[i+2],(y&192)===128&&(M&192)===128&&(T=(s&15)<<12|(y&63)<<6|M&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:y=t[i+1],M=t[i+2],G=t[i+3],(y&192)===128&&(M&192)===128&&(G&192)===128&&(T=(s&15)<<18|(y&63)<<12|(M&63)<<6|G&63,T>65535&&T<1114112&&(p=T))}}p===null?(p=65533,A=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|p&1023),n.push(p),i+=A}return Vl(n)}var $a=4096;function Vl(t){let o=t.length;if(o<=$a)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<o;)r+=String.fromCharCode.apply(String,t.slice(n,n+=$a));return r}function Yl(t,o,r){let n="";r=Math.min(t.length,r);for(let i=o;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function Ll(t,o,r){let n="";r=Math.min(t.length,r);for(let i=o;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Jl(t,o,r){let n=t.length;(!o||o<0)&&(o=0),(!r||r<0||r>n)&&(r=n);let i="";for(let s=o;s<r;++s)i+=oA[t[s]];return i}function Kl(t,o,r){let n=t.slice(o,r),i="";for(let s=0;s<n.length-1;s+=2)i+=String.fromCharCode(n[s]+n[s+1]*256);return i}O.prototype.slice=function(o,r){let n=this.length;o=~~o,r=r===void 0?n:~~r,o<0?(o+=n,o<0&&(o=0)):o>n&&(o=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<o&&(r=o);let i=this.subarray(o,r);return Object.setPrototypeOf(i,O.prototype),i};function tt(t,o,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+o>r)throw new RangeError("Trying to access beyond buffer length")}O.prototype.readUintLE=O.prototype.readUIntLE=function(o,r,n){o=o>>>0,r=r>>>0,n||tt(o,r,this.length);let i=this[o],s=1,p=0;for(;++p<r&&(s*=256);)i+=this[o+p]*s;return i};O.prototype.readUintBE=O.prototype.readUIntBE=function(o,r,n){o=o>>>0,r=r>>>0,n||tt(o,r,this.length);let i=this[o+--r],s=1;for(;r>0&&(s*=256);)i+=this[o+--r]*s;return i};O.prototype.readUint8=O.prototype.readUInt8=function(o,r){return o=o>>>0,r||tt(o,1,this.length),this[o]};O.prototype.readUint16LE=O.prototype.readUInt16LE=function(o,r){return o=o>>>0,r||tt(o,2,this.length),this[o]|this[o+1]<<8};O.prototype.readUint16BE=O.prototype.readUInt16BE=function(o,r){return o=o>>>0,r||tt(o,2,this.length),this[o]<<8|this[o+1]};O.prototype.readUint32LE=O.prototype.readUInt32LE=function(o,r){return o=o>>>0,r||tt(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};O.prototype.readUint32BE=O.prototype.readUInt32BE=function(o,r){return o=o>>>0,r||tt(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};O.prototype.readBigUInt64LE=co(function(o){o=o>>>0,Do(o,"offset");let r=this[o],n=this[o+7];(r===void 0||n===void 0)&&xr(o,this.length-8);let i=r+this[++o]*2**8+this[++o]*2**16+this[++o]*2**24,s=this[++o]+this[++o]*2**8+this[++o]*2**16+n*2**24;return BigInt(i)+(BigInt(s)<<BigInt(32))});O.prototype.readBigUInt64BE=co(function(o){o=o>>>0,Do(o,"offset");let r=this[o],n=this[o+7];(r===void 0||n===void 0)&&xr(o,this.length-8);let i=r*2**24+this[++o]*2**16+this[++o]*2**8+this[++o],s=this[++o]*2**24+this[++o]*2**16+this[++o]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(s)});O.prototype.readIntLE=function(o,r,n){o=o>>>0,r=r>>>0,n||tt(o,r,this.length);let i=this[o],s=1,p=0;for(;++p<r&&(s*=256);)i+=this[o+p]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*r)),i};O.prototype.readIntBE=function(o,r,n){o=o>>>0,r=r>>>0,n||tt(o,r,this.length);let i=r,s=1,p=this[o+--i];for(;i>0&&(s*=256);)p+=this[o+--i]*s;return s*=128,p>=s&&(p-=Math.pow(2,8*r)),p};O.prototype.readInt8=function(o,r){return o=o>>>0,r||tt(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};O.prototype.readInt16LE=function(o,r){o=o>>>0,r||tt(o,2,this.length);let n=this[o]|this[o+1]<<8;return n&32768?n|4294901760:n};O.prototype.readInt16BE=function(o,r){o=o>>>0,r||tt(o,2,this.length);let n=this[o+1]|this[o]<<8;return n&32768?n|4294901760:n};O.prototype.readInt32LE=function(o,r){return o=o>>>0,r||tt(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};O.prototype.readInt32BE=function(o,r){return o=o>>>0,r||tt(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};O.prototype.readBigInt64LE=co(function(o){o=o>>>0,Do(o,"offset");let r=this[o],n=this[o+7];(r===void 0||n===void 0)&&xr(o,this.length-8);let i=this[o+4]+this[o+5]*2**8+this[o+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(r+this[++o]*2**8+this[++o]*2**16+this[++o]*2**24)});O.prototype.readBigInt64BE=co(function(o){o=o>>>0,Do(o,"offset");let r=this[o],n=this[o+7];(r===void 0||n===void 0)&&xr(o,this.length-8);let i=(r<<24)+this[++o]*2**16+this[++o]*2**8+this[++o];return(BigInt(i)<<BigInt(32))+BigInt(this[++o]*2**24+this[++o]*2**16+this[++o]*2**8+n)});O.prototype.readFloatLE=function(o,r){return o=o>>>0,r||tt(o,4,this.length),Uo.read(this,o,!0,23,4)};O.prototype.readFloatBE=function(o,r){return o=o>>>0,r||tt(o,4,this.length),Uo.read(this,o,!1,23,4)};O.prototype.readDoubleLE=function(o,r){return o=o>>>0,r||tt(o,8,this.length),Uo.read(this,o,!0,52,8)};O.prototype.readDoubleBE=function(o,r){return o=o>>>0,r||tt(o,8,this.length),Uo.read(this,o,!1,52,8)};function dt(t,o,r,n,i,s){if(!O.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>i||o<s)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}O.prototype.writeUintLE=O.prototype.writeUIntLE=function(o,r,n,i){if(o=+o,r=r>>>0,n=n>>>0,!i){let A=Math.pow(2,8*n)-1;dt(this,o,r,n,A,0)}let s=1,p=0;for(this[r]=o&255;++p<n&&(s*=256);)this[r+p]=o/s&255;return r+n};O.prototype.writeUintBE=O.prototype.writeUIntBE=function(o,r,n,i){if(o=+o,r=r>>>0,n=n>>>0,!i){let A=Math.pow(2,8*n)-1;dt(this,o,r,n,A,0)}let s=n-1,p=1;for(this[r+s]=o&255;--s>=0&&(p*=256);)this[r+s]=o/p&255;return r+n};O.prototype.writeUint8=O.prototype.writeUInt8=function(o,r,n){return o=+o,r=r>>>0,n||dt(this,o,r,1,255,0),this[r]=o&255,r+1};O.prototype.writeUint16LE=O.prototype.writeUInt16LE=function(o,r,n){return o=+o,r=r>>>0,n||dt(this,o,r,2,65535,0),this[r]=o&255,this[r+1]=o>>>8,r+2};O.prototype.writeUint16BE=O.prototype.writeUInt16BE=function(o,r,n){return o=+o,r=r>>>0,n||dt(this,o,r,2,65535,0),this[r]=o>>>8,this[r+1]=o&255,r+2};O.prototype.writeUint32LE=O.prototype.writeUInt32LE=function(o,r,n){return o=+o,r=r>>>0,n||dt(this,o,r,4,4294967295,0),this[r+3]=o>>>24,this[r+2]=o>>>16,this[r+1]=o>>>8,this[r]=o&255,r+4};O.prototype.writeUint32BE=O.prototype.writeUInt32BE=function(o,r,n){return o=+o,r=r>>>0,n||dt(this,o,r,4,4294967295,0),this[r]=o>>>24,this[r+1]=o>>>16,this[r+2]=o>>>8,this[r+3]=o&255,r+4};function sg(t,o,r,n,i){ug(o,n,i,t,r,7);let s=Number(o&BigInt(4294967295));t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s;let p=Number(o>>BigInt(32)&BigInt(4294967295));return t[r++]=p,p=p>>8,t[r++]=p,p=p>>8,t[r++]=p,p=p>>8,t[r++]=p,r}function ag(t,o,r,n,i){ug(o,n,i,t,r,7);let s=Number(o&BigInt(4294967295));t[r+7]=s,s=s>>8,t[r+6]=s,s=s>>8,t[r+5]=s,s=s>>8,t[r+4]=s;let p=Number(o>>BigInt(32)&BigInt(4294967295));return t[r+3]=p,p=p>>8,t[r+2]=p,p=p>>8,t[r+1]=p,p=p>>8,t[r]=p,r+8}O.prototype.writeBigUInt64LE=co(function(o,r=0){return sg(this,o,r,BigInt(0),BigInt("0xffffffffffffffff"))});O.prototype.writeBigUInt64BE=co(function(o,r=0){return ag(this,o,r,BigInt(0),BigInt("0xffffffffffffffff"))});O.prototype.writeIntLE=function(o,r,n,i){if(o=+o,r=r>>>0,!i){let y=Math.pow(2,8*n-1);dt(this,o,r,n,y-1,-y)}let s=0,p=1,A=0;for(this[r]=o&255;++s<n&&(p*=256);)o<0&&A===0&&this[r+s-1]!==0&&(A=1),this[r+s]=(o/p>>0)-A&255;return r+n};O.prototype.writeIntBE=function(o,r,n,i){if(o=+o,r=r>>>0,!i){let y=Math.pow(2,8*n-1);dt(this,o,r,n,y-1,-y)}let s=n-1,p=1,A=0;for(this[r+s]=o&255;--s>=0&&(p*=256);)o<0&&A===0&&this[r+s+1]!==0&&(A=1),this[r+s]=(o/p>>0)-A&255;return r+n};O.prototype.writeInt8=function(o,r,n){return o=+o,r=r>>>0,n||dt(this,o,r,1,127,-128),o<0&&(o=255+o+1),this[r]=o&255,r+1};O.prototype.writeInt16LE=function(o,r,n){return o=+o,r=r>>>0,n||dt(this,o,r,2,32767,-32768),this[r]=o&255,this[r+1]=o>>>8,r+2};O.prototype.writeInt16BE=function(o,r,n){return o=+o,r=r>>>0,n||dt(this,o,r,2,32767,-32768),this[r]=o>>>8,this[r+1]=o&255,r+2};O.prototype.writeInt32LE=function(o,r,n){return o=+o,r=r>>>0,n||dt(this,o,r,4,2147483647,-2147483648),this[r]=o&255,this[r+1]=o>>>8,this[r+2]=o>>>16,this[r+3]=o>>>24,r+4};O.prototype.writeInt32BE=function(o,r,n){return o=+o,r=r>>>0,n||dt(this,o,r,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[r]=o>>>24,this[r+1]=o>>>16,this[r+2]=o>>>8,this[r+3]=o&255,r+4};O.prototype.writeBigInt64LE=co(function(o,r=0){return sg(this,o,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});O.prototype.writeBigInt64BE=co(function(o,r=0){return ag(this,o,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function gg(t,o,r,n,i,s){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function pg(t,o,r,n,i){return o=+o,r=r>>>0,i||gg(t,o,r,4,34028234663852886e22,-34028234663852886e22),Uo.write(t,o,r,n,23,4),r+4}O.prototype.writeFloatLE=function(o,r,n){return pg(this,o,r,!0,n)};O.prototype.writeFloatBE=function(o,r,n){return pg(this,o,r,!1,n)};function cg(t,o,r,n,i){return o=+o,r=r>>>0,i||gg(t,o,r,8,17976931348623157e292,-17976931348623157e292),Uo.write(t,o,r,n,52,8),r+8}O.prototype.writeDoubleLE=function(o,r,n){return cg(this,o,r,!0,n)};O.prototype.writeDoubleBE=function(o,r,n){return cg(this,o,r,!1,n)};O.prototype.copy=function(o,r,n,i){if(!O.isBuffer(o))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=o.length&&(r=o.length),r||(r=0),i>0&&i<n&&(i=n),i===n||o.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),o.length-r<i-n&&(i=o.length-r+n);let s=i-n;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(o,this.subarray(n,i),r),s};O.prototype.fill=function(o,r,n,i){if(typeof o=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!O.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(o.length===1){let p=o.charCodeAt(0);(i==="utf8"&&p<128||i==="latin1")&&(o=p)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,o||(o=0);let s;if(typeof o=="number")for(s=r;s<n;++s)this[s]=o;else{let p=O.isBuffer(o)?o:O.from(o,i),A=p.length;if(A===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(s=0;s<n-r;++s)this[s+r]=p[s%A]}return this};var ko={};function ki(t,o,r){ko[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:o.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}ki("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);ki("ERR_INVALID_ARG_TYPE",function(t,o){return`The "${t}" argument must be of type number. Received type ${typeof o}`},TypeError);ki("ERR_OUT_OF_RANGE",function(t,o,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=eg(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=eg(i)),i+="n"),n+=` It must be ${o}. Received ${i}`,n},RangeError);function eg(t){let o="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)o=`_${t.slice(r-3,r)}${o}`;return`${t.slice(0,r)}${o}`}function Zl(t,o,r){Do(o,"offset"),(t[o]===void 0||t[o+r]===void 0)&&xr(o,t.length-(r+1))}function ug(t,o,r,n,i,s){if(t>r||t<o){let p=typeof o=="bigint"?"n":"",A;throw s>3?o===0||o===BigInt(0)?A=`>= 0${p} and < 2${p} ** ${(s+1)*8}${p}`:A=`>= -(2${p} ** ${(s+1)*8-1}${p}) and < 2 ** ${(s+1)*8-1}${p}`:A=`>= ${o}${p} and <= ${r}${p}`,new ko.ERR_OUT_OF_RANGE("value",A,t)}Zl(n,i,s)}function Do(t,o){if(typeof t!="number")throw new ko.ERR_INVALID_ARG_TYPE(o,"number",t)}function xr(t,o,r){throw Math.floor(t)!==t?(Do(t,r),new ko.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):o<0?new ko.ERR_BUFFER_OUT_OF_BOUNDS:new ko.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${o}`,t)}var Xl=/[^+/0-9A-Za-z-_]/g;function $l(t){if(t=t.split("=")[0],t=t.trim().replace(Xl,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Qi(t,o){o=o||1/0;let r,n=t.length,i=null,s=[];for(let p=0;p<n;++p){if(r=t.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(o-=3)>-1&&s.push(239,191,189);continue}else if(p+1===n){(o-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(o-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(o-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((o-=1)<0)break;s.push(r)}else if(r<2048){if((o-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((o-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((o-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function eA(t){let o=[];for(let r=0;r<t.length;++r)o.push(t.charCodeAt(r)&255);return o}function tA(t,o){let r,n,i,s=[];for(let p=0;p<t.length&&!((o-=2)<0);++p)r=t.charCodeAt(p),n=r>>8,i=r%256,s.push(i),s.push(n);return s}function lg(t){return Fi.toByteArray($l(t))}function dn(t,o,r,n){let i;for(i=0;i<n&&!(i+r>=o.length||i>=t.length);++i)o[i+r]=t[i];return i}function jt(t,o){return t instanceof o||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===o.name}function Ui(t){return t!==t}var oA=function(){let t="0123456789abcdef",o=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)o[n+i]=t[r]+t[i]}return o}();function co(t){return typeof BigInt>"u"?rA:t}function rA(){throw new Error("BigInt not supported")}});var dg=J(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.ReplicaRejectCode=void 0;var nA;(function(t){t[t.SysFatal=1]="SysFatal",t[t.SysTransient=2]="SysTransient",t[t.DestinationInvalid=3]="DestinationInvalid",t[t.CanisterReject=4]="CanisterReject",t[t.CanisterError=5]="CanisterError"})(nA=Fr.ReplicaRejectCode||(Fr.ReplicaRejectCode={}))});var fg=J(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.decode=Wo.encode=void 0;var fn="abcdefghijklmnopqrstuvwxyz234567",Ho=Object.create(null);for(let t=0;t<fn.length;t++)Ho[fn[t]]=t;Ho["0"]=Ho.o;Ho["1"]=Ho.i;function iA(t){let o=0,r=0,n="";function i(s){return o<0?r|=s>>-o:r=s<<o&248,o>3?(o-=8,1):(o<4&&(n+=fn[r>>3],o+=5),0)}for(let s=0;s<t.length;)s+=i(t[s]);return n+(o<0?fn[r>>3]:"")}Wo.encode=iA;function sA(t){let o=0,r=0,n=new Uint8Array(t.length*4/3|0),i=0;function s(p){let A=Ho[p.toLowerCase()];if(A===void 0)throw new Error(`Invalid character: ${JSON.stringify(p)}`);A<<=3,r|=A>>>o,o+=5,o>=8&&(n[i++]=r,o-=8,o>0?r=A<<5-o&255:r=0)}for(let p of t)s(p);return n.slice(0,i)}Wo.decode=sA});var hg=J(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.getCrc32=void 0;var aA=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function gA(t){let o=new Uint8Array(t),r=-1;for(let n=0;n<o.length;n++){let s=(o[n]^r)&255;r=aA[s]^r>>>8}return(r^-1)>>>0}hn.getCrc32=gA});var _g=J(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.sha224=void 0;var pA=Oo();function cA(t){let o=pA.sha224.create();return o.update(t),new Uint8Array(o.array())}_n.sha224=cA});var yt=J(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.Principal=void 0;var bg=fg(),uA=hg(),lA=_g(),AA=2,yg=4,dA=t=>{var o;return new Uint8Array(((o=t.match(/.{1,2}/g))!==null&&o!==void 0?o:[]).map(r=>parseInt(r,16)))},fA=t=>t.reduce((o,r)=>o+r.toString(16).padStart(2,"0"),""),qo=class{constructor(o){this._arr=o,this._isPrincipal=!0}static anonymous(){return new this(new Uint8Array([yg]))}static selfAuthenticating(o){let r=(0,lA.sha224)(o);return new this(new Uint8Array([...r,AA]))}static from(o){if(typeof o=="string")return qo.fromText(o);if(typeof o=="object"&&o!==null&&o._isPrincipal===!0)return new qo(o._arr);throw new Error(`Impossible to convert ${JSON.stringify(o)} to Principal.`)}static fromHex(o){return new this(dA(o))}static fromText(o){let r=o.toLowerCase().replace(/-/g,""),n=(0,bg.decode)(r);n=n.slice(4,n.length);let i=new this(n);if(i.toText()!==o)throw new Error(`Principal "${i.toText()}" does not have a valid checksum (original value "${o}" may not be a valid Principal ID).`);return i}static fromUint8Array(o){return new this(o)}isAnonymous(){return this._arr.byteLength===1&&this._arr[0]===yg}toUint8Array(){return this._arr}toHex(){return fA(this._arr).toUpperCase()}toText(){let o=new ArrayBuffer(4);new DataView(o).setUint32(0,(0,uA.getCrc32)(this._arr));let n=new Uint8Array(o),i=Uint8Array.from(this._arr),s=new Uint8Array([...n,...i]),A=(0,bg.encode)(s).match(/.{1,5}/g);if(!A)throw new Error;return A.join("-")}toString(){return this.toText()}};bn.Principal=qo});var Bn=J(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.AgentError=void 0;var Tr=class extends Error{constructor(o){super(o),this.message=o,Object.setPrototypeOf(this,Tr.prototype)}};yn.AgentError=Tr});var En=J(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.PipeArrayBuffer=Ht.fromHexString=Ht.toHexString=Ht.concat=void 0;function hA(...t){let o=new Uint8Array(t.reduce((n,i)=>n+i.byteLength,0)),r=0;for(let n of t)o.set(new Uint8Array(n),r),r+=n.byteLength;return o}Ht.concat=hA;function _A(t){return new Uint8Array(t).reduce((o,r)=>o+r.toString(16).padStart(2,"0"),"")}Ht.toHexString=_A;function bA(t){var o;return new Uint8Array(((o=t.match(/.{1,2}/g))!==null&&o!==void 0?o:[]).map(r=>parseInt(r,16)))}Ht.fromHexString=bA;var Di=class{constructor(o,r=(o==null?void 0:o.byteLength)||0){this._buffer=o||new ArrayBuffer(0),this._view=new Uint8Array(this._buffer,0,r)}get buffer(){return this._view.slice()}get byteLength(){return this._view.byteLength}read(o){let r=this._view.subarray(0,o);return this._view=this._view.subarray(o),r.slice().buffer}readUint8(){let o=this._view[0];return this._view=this._view.subarray(1),o}write(o){let r=new Uint8Array(o),n=this._view.byteLength;this._view.byteOffset+this._view.byteLength+r.byteLength>=this._buffer.byteLength?this.alloc(r.byteLength):this._view=new Uint8Array(this._buffer,this._view.byteOffset,this._view.byteLength+r.byteLength),this._view.set(r,n)}get end(){return this._view.byteLength===0}alloc(o){let r=new ArrayBuffer((this._buffer.byteLength+o)*1.2|0),n=new Uint8Array(r,0,this._view.byteLength+o);n.set(this._view),this._buffer=r,this._view=n}};Ht.PipeArrayBuffer=Di});var ji=J(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.idlLabelToId=void 0;function yA(t){let r=new TextEncoder().encode(t),n=0;for(let i of r)n=(n*223+i)%2**32;return n}function BA(t){if(/^_\d+_$/.test(t)||/^_0x[0-9a-fA-F]+_$/.test(t)){let o=+t.slice(1,-1);if(Number.isSafeInteger(o)&&o>=0&&o<2**32)return o}return yA(t)}vn.idlLabelToId=BA});var Wi=J(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.readIntLE=He.readUIntLE=He.writeIntLE=He.writeUIntLE=He.slebDecode=He.slebEncode=He.lebDecode=He.lebEncode=He.safeReadUint8=He.safeRead=void 0;var Hi=En();function Bg(){throw new Error("unexpected end of buffer")}function Eg(t,o){return t.byteLength<o&&Bg(),t.read(o)}He.safeRead=Eg;function mn(t){let o=t.readUint8();return o===void 0&&Bg(),o}He.safeReadUint8=mn;function EA(t){if(typeof t=="number"&&(t=BigInt(t)),t<BigInt(0))throw new Error("Cannot leb encode negative values.");let o=(t===BigInt(0)?0:Math.ceil(Math.log2(Number(t))))+1,r=new Hi.PipeArrayBuffer(new ArrayBuffer(o),0);for(;;){let n=Number(t&BigInt(127));if(t/=BigInt(128),t===BigInt(0)){r.write(new Uint8Array([n]));break}else r.write(new Uint8Array([n|128]))}return r.buffer}He.lebEncode=EA;function vg(t){let o=BigInt(1),r=BigInt(0),n;do n=mn(t),r+=BigInt(n&127).valueOf()*o,o*=BigInt(128);while(n>=128);return r}He.lebDecode=vg;function vA(t){typeof t=="number"&&(t=BigInt(t));let o=t<BigInt(0);o&&(t=-t-BigInt(1));let r=(t===BigInt(0)?0:Math.ceil(Math.log2(Number(t))))+1,n=new Hi.PipeArrayBuffer(new ArrayBuffer(r),0);for(;;){let s=i(t);if(t/=BigInt(128),o&&t===BigInt(0)&&(s&64)!==0||!o&&t===BigInt(0)&&(s&64)===0){n.write(new Uint8Array([s]));break}else n.write(new Uint8Array([s|128]))}function i(s){let p=s%BigInt(128);return Number(o?BigInt(128)-p-BigInt(1):p)}return n.buffer}He.slebEncode=vA;function mA(t){let o=new Uint8Array(t.buffer),r=0;for(;r<o.byteLength;r++)if(o[r]<128){if((o[r]&64)===0)return vg(t);break}let n=new Uint8Array(Eg(t,r+1)),i=BigInt(0);for(let s=n.byteLength-1;s>=0;s--)i=i*BigInt(128)+BigInt(128-(n[s]&127)-1);return-i-BigInt(1)}He.slebDecode=mA;function IA(t,o){if(BigInt(t)<BigInt(0))throw new Error("Cannot write negative values.");return mg(t,o)}He.writeUIntLE=IA;function mg(t,o){t=BigInt(t);let r=new Hi.PipeArrayBuffer(new ArrayBuffer(Math.min(1,o)),0),n=0,i=BigInt(256),s=BigInt(0),p=Number(t%i);for(r.write(new Uint8Array([p]));++n<o;)t<0&&s===BigInt(0)&&p!==0&&(s=BigInt(1)),p=Number((t/i-s)%BigInt(256)),r.write(new Uint8Array([p])),i*=BigInt(256);return r.buffer}He.writeIntLE=mg;function Ig(t,o){let r=BigInt(mn(t)),n=BigInt(1),i=0;for(;++i<o;){n*=BigInt(256);let s=BigInt(mn(t));r=r+n*s}return r}He.readUIntLE=Ig;function CA(t,o){let r=Ig(t,o),n=BigInt(2)**(BigInt(8)*BigInt(o-1)+BigInt(7));return r>=n&&(r-=n*BigInt(2)),r}He.readIntLE=CA});var Yi=J(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.Variant=Q.Record=Q.Opt=Q.Vec=Q.Tuple=Q.Principal=Q.Nat64=Q.Nat32=Q.Nat16=Q.Nat8=Q.Int64=Q.Int32=Q.Int16=Q.Int8=Q.Float64=Q.Float32=Q.Nat=Q.Int=Q.Text=Q.Null=Q.Bool=Q.Unknown=Q.Reserved=Q.Empty=Q.decode=Q.encode=Q.ServiceClass=Q.FuncClass=Q.PrincipalClass=Q.RecClass=Q.VariantClass=Q.TupleClass=Q.RecordClass=Q.OptClass=Q.VecClass=Q.FixedNatClass=Q.FixedIntClass=Q.FloatClass=Q.NatClass=Q.IntClass=Q.TextClass=Q.ReservedClass=Q.NullClass=Q.BoolClass=Q.UnknownClass=Q.EmptyClass=Q.ConstructType=Q.PrimitiveType=Q.Type=Q.Visitor=void 0;Q.Service=Q.Func=Q.Rec=void 0;var MA=yt(),ye=En(),Mt=ji(),z=Wi(),In="DIDL";function Or(t,o,r){return t.map((n,i)=>r(n,o[i]))}var qi=class{constructor(){this._typs=[],this._idx=new Map}has(o){return this._idx.has(o.name)}add(o,r){let n=this._typs.length;this._idx.set(o.name,n),this._typs.push(r)}merge(o,r){let n=this._idx.get(o.name),i=this._idx.get(r);if(n===void 0)throw new Error("Missing type index for "+o);if(i===void 0)throw new Error("Missing type index for "+r);this._typs[n]=this._typs[i],this._typs.splice(i,1),this._idx.delete(r)}encode(){let o=(0,z.lebEncode)(this._typs.length),r=(0,ye.concat)(...this._typs);return(0,ye.concat)(o,r)}indexOf(o){if(!this._idx.has(o))throw new Error("Missing type index for "+o);return(0,z.slebEncode)(this._idx.get(o)||0)}},zi=class{visitType(o,r){throw new Error("Not implemented")}visitPrimitive(o,r){return this.visitType(o,r)}visitEmpty(o,r){return this.visitPrimitive(o,r)}visitBool(o,r){return this.visitPrimitive(o,r)}visitNull(o,r){return this.visitPrimitive(o,r)}visitReserved(o,r){return this.visitPrimitive(o,r)}visitText(o,r){return this.visitPrimitive(o,r)}visitNumber(o,r){return this.visitPrimitive(o,r)}visitInt(o,r){return this.visitNumber(o,r)}visitNat(o,r){return this.visitNumber(o,r)}visitFloat(o,r){return this.visitPrimitive(o,r)}visitFixedInt(o,r){return this.visitNumber(o,r)}visitFixedNat(o,r){return this.visitNumber(o,r)}visitPrincipal(o,r){return this.visitPrimitive(o,r)}visitConstruct(o,r){return this.visitType(o,r)}visitVec(o,r,n){return this.visitConstruct(o,n)}visitOpt(o,r,n){return this.visitConstruct(o,n)}visitRecord(o,r,n){return this.visitConstruct(o,n)}visitTuple(o,r,n){let i=r.map((s,p)=>[`_${p}_`,s]);return this.visitRecord(o,i,n)}visitVariant(o,r,n){return this.visitConstruct(o,n)}visitRec(o,r,n){return this.visitConstruct(r,n)}visitFunc(o,r){return this.visitConstruct(o,r)}visitService(o,r){return this.visitConstruct(o,r)}};Q.Visitor=zi;var zo=class{display(){return this.name}valueToString(o){return Cg(o)}buildTypeTable(o){o.has(this)||this._buildTypeTableImpl(o)}};Q.Type=zo;var ft=class extends zo{checkType(o){if(this.name!==o.name)throw new Error(`type mismatch: type on the wire ${o.name}, expect type ${this.name}`);return o}_buildTypeTableImpl(o){}};Q.PrimitiveType=ft;var qt=class extends zo{checkType(o){if(o instanceof zt){let r=o.getType();if(typeof r>"u")throw new Error("type mismatch with uninitialized type");return r}throw new Error(`type mismatch: type on the wire ${o.name}, expect type ${this.name}`)}encodeType(o){return o.indexOf(this.name)}};Q.ConstructType=qt;var Cn=class extends ft{accept(o,r){return o.visitEmpty(this,r)}covariant(o){return!1}encodeValue(){throw new Error("Empty cannot appear as a function argument")}valueToString(){throw new Error("Empty cannot appear as a value")}encodeType(){return(0,z.slebEncode)(-17)}decodeValue(){throw new Error("Empty cannot appear as an output")}get name(){return"empty"}};Q.EmptyClass=Cn;var Mn=class extends zo{checkType(o){throw new Error("Method not implemented for unknown.")}accept(o,r){throw o.visitType(this,r)}covariant(o){return!1}encodeValue(){throw new Error("Unknown cannot appear as a function argument")}valueToString(){throw new Error("Unknown cannot appear as a value")}encodeType(){throw new Error("Unknown cannot be serialized")}decodeValue(o,r){let n=r.decodeValue(o,r);Object(n)!==n&&(n=Object(n));let i;return r instanceof zt?i=()=>r.getType():i=()=>r,Object.defineProperty(n,"type",{value:i,writable:!0,enumerable:!1,configurable:!0}),n}_buildTypeTableImpl(){throw new Error("Unknown cannot be serialized")}get name(){return"Unknown"}};Q.UnknownClass=Mn;var wn=class extends ft{accept(o,r){return o.visitBool(this,r)}covariant(o){return typeof o=="boolean"}encodeValue(o){return new Uint8Array([o?1:0])}encodeType(){return(0,z.slebEncode)(-2)}decodeValue(o,r){switch(this.checkType(r),(0,z.safeReadUint8)(o)){case 0:return!1;case 1:return!0;default:throw new Error("Boolean value out of range")}}get name(){return"bool"}};Q.BoolClass=wn;var Rn=class extends ft{accept(o,r){return o.visitNull(this,r)}covariant(o){return o===null}encodeValue(){return new ArrayBuffer(0)}encodeType(){return(0,z.slebEncode)(-1)}decodeValue(o,r){return this.checkType(r),null}get name(){return"null"}};Q.NullClass=Rn;var Vo=class extends ft{accept(o,r){return o.visitReserved(this,r)}covariant(o){return!0}encodeValue(){return new ArrayBuffer(0)}encodeType(){return(0,z.slebEncode)(-16)}decodeValue(o,r){return r.name!==this.name&&r.decodeValue(o,r),null}get name(){return"reserved"}};Q.ReservedClass=Vo;var Sn=class extends ft{accept(o,r){return o.visitText(this,r)}covariant(o){return typeof o=="string"}encodeValue(o){let r=new TextEncoder().encode(o),n=(0,z.lebEncode)(r.byteLength);return(0,ye.concat)(n,r)}encodeType(){return(0,z.slebEncode)(-15)}decodeValue(o,r){this.checkType(r);let n=(0,z.lebDecode)(o),i=(0,z.safeRead)(o,Number(n));return new TextDecoder("utf8",{fatal:!0}).decode(i)}get name(){return"text"}valueToString(o){return'"'+o+'"'}};Q.TextClass=Sn;var Nn=class extends ft{accept(o,r){return o.visitInt(this,r)}covariant(o){return typeof o=="bigint"||Number.isInteger(o)}encodeValue(o){return(0,z.slebEncode)(o)}encodeType(){return(0,z.slebEncode)(-4)}decodeValue(o,r){return this.checkType(r),(0,z.slebDecode)(o)}get name(){return"int"}valueToString(o){return o.toString()}};Q.IntClass=Nn;var xn=class extends ft{accept(o,r){return o.visitNat(this,r)}covariant(o){return typeof o=="bigint"&&o>=BigInt(0)||Number.isInteger(o)&&o>=0}encodeValue(o){return(0,z.lebEncode)(o)}encodeType(){return(0,z.slebEncode)(-3)}decodeValue(o,r){return this.checkType(r),(0,z.lebDecode)(o)}get name(){return"nat"}valueToString(o){return o.toString()}};Q.NatClass=xn;var Qr=class extends ft{constructor(o){if(super(),this._bits=o,o!==32&&o!==64)throw new Error("not a valid float type")}accept(o,r){return o.visitFloat(this,r)}covariant(o){return typeof o=="number"||o instanceof Number}encodeValue(o){let r=new ArrayBuffer(this._bits/8),n=new DataView(r);return this._bits===32?n.setFloat32(0,o,!0):n.setFloat64(0,o,!0),r}encodeType(){let o=this._bits===32?-13:-14;return(0,z.slebEncode)(o)}decodeValue(o,r){this.checkType(r);let n=(0,z.safeRead)(o,this._bits/8),i=new DataView(n);return this._bits===32?i.getFloat32(0,!0):i.getFloat64(0,!0)}get name(){return"float"+this._bits}valueToString(o){return o.toString()}};Q.FloatClass=Qr;var no=class extends ft{constructor(o){super(),this._bits=o}accept(o,r){return o.visitFixedInt(this,r)}covariant(o){let r=BigInt(2)**BigInt(this._bits-1)*BigInt(-1),n=BigInt(2)**BigInt(this._bits-1)-BigInt(1);if(typeof o=="bigint")return o>=r&&o<=n;if(Number.isInteger(o)){let i=BigInt(o);return i>=r&&i<=n}else return!1}encodeValue(o){return(0,z.writeIntLE)(o,this._bits/8)}encodeType(){let o=Math.log2(this._bits)-3;return(0,z.slebEncode)(-9-o)}decodeValue(o,r){this.checkType(r);let n=(0,z.readIntLE)(o,this._bits/8);return this._bits<=32?Number(n):n}get name(){return`int${this._bits}`}valueToString(o){return o.toString()}};Q.FixedIntClass=no;var Wt=class extends ft{constructor(o){super(),this.bits=o}accept(o,r){return o.visitFixedNat(this,r)}covariant(o){let r=BigInt(2)**BigInt(this.bits);return typeof o=="bigint"&&o>=BigInt(0)?o<r:Number.isInteger(o)&&o>=0?BigInt(o)<r:!1}encodeValue(o){return(0,z.writeUIntLE)(o,this.bits/8)}encodeType(){let o=Math.log2(this.bits)-3;return(0,z.slebEncode)(-5-o)}decodeValue(o,r){this.checkType(r);let n=(0,z.readUIntLE)(o,this.bits/8);return this.bits<=32?Number(n):n}get name(){return`nat${this.bits}`}valueToString(o){return o.toString()}};Q.FixedNatClass=Wt;var Yo=class extends qt{constructor(o){super(),this._type=o,this._blobOptimization=!1,o instanceof Wt&&o.bits===8&&(this._blobOptimization=!0)}accept(o,r){return o.visitVec(this,this._type,r)}covariant(o){let r=this._type instanceof Wt?this._type.bits:this._type instanceof no?this._type._bits:0;return ArrayBuffer.isView(o)&&r==o.BYTES_PER_ELEMENT*8||Array.isArray(o)&&o.every(n=>this._type.covariant(n))}encodeValue(o){let r=(0,z.lebEncode)(o.length);if(this._blobOptimization)return(0,ye.concat)(r,new Uint8Array(o));if(ArrayBuffer.isView(o))return(0,ye.concat)(r,new Uint8Array(o.buffer));let n=new ye.PipeArrayBuffer(new ArrayBuffer(r.byteLength+o.length),0);n.write(r);for(let i of o){let s=this._type.encodeValue(i);n.write(new Uint8Array(s))}return n.buffer}_buildTypeTableImpl(o){this._type.buildTypeTable(o);let r=(0,z.slebEncode)(-19),n=this._type.encodeType(o);o.add(this,(0,ye.concat)(r,n))}decodeValue(o,r){let n=this.checkType(r);if(!(n instanceof Yo))throw new Error("Not a vector type");let i=Number((0,z.lebDecode)(o));if(this._type instanceof Wt){if(this._type.bits==8)return new Uint8Array(o.read(i));if(this._type.bits==16)return new Uint16Array(o.read(i*2));if(this._type.bits==32)return new Uint32Array(o.read(i*4));if(this._type.bits==64)return new BigUint64Array(o.read(i*8))}if(this._type instanceof no){if(this._type._bits==8)return new Int8Array(o.read(i));if(this._type._bits==16)return new Int16Array(o.read(i*2));if(this._type._bits==32)return new Int32Array(o.read(i*4));if(this._type._bits==64)return new BigInt64Array(o.read(i*8))}let s=[];for(let p=0;p<i;p++)s.push(this._type.decodeValue(o,n._type));return s}get name(){return`vec ${this._type.name}`}display(){return`vec ${this._type.display()}`}valueToString(o){let r=o.map(n=>this._type.valueToString(n));return"vec {"+r.join("; ")+"}"}};Q.VecClass=Yo;var uo=class extends qt{constructor(o){super(),this._type=o}accept(o,r){return o.visitOpt(this,this._type,r)}covariant(o){return Array.isArray(o)&&(o.length===0||o.length===1&&this._type.covariant(o[0]))}encodeValue(o){return o.length===0?new Uint8Array([0]):(0,ye.concat)(new Uint8Array([1]),this._type.encodeValue(o[0]))}_buildTypeTableImpl(o){this._type.buildTypeTable(o);let r=(0,z.slebEncode)(-18),n=this._type.encodeType(o);o.add(this,(0,ye.concat)(r,n))}decodeValue(o,r){let n=this.checkType(r);if(!(n instanceof uo))throw new Error("Not an option type");switch((0,z.safeReadUint8)(o)){case 0:return[];case 1:return[this._type.decodeValue(o,n._type)];default:throw new Error("Not an option value")}}get name(){return`opt ${this._type.name}`}display(){return`opt ${this._type.display()}`}valueToString(o){return o.length===0?"null":`opt ${this._type.valueToString(o[0])}`}};Q.OptClass=uo;var mo=class extends qt{constructor(o={}){super(),this._fields=Object.entries(o).sort((r,n)=>(0,Mt.idlLabelToId)(r[0])-(0,Mt.idlLabelToId)(n[0]))}accept(o,r){return o.visitRecord(this,this._fields,r)}tryAsTuple(){let o=[];for(let r=0;r<this._fields.length;r++){let[n,i]=this._fields[r];if(n!==`_${r}_`)return null;o.push(i)}return o}covariant(o){return typeof o=="object"&&this._fields.every(([r,n])=>{if(!o.hasOwnProperty(r))throw new Error(`Record is missing key "${r}".`);return n.covariant(o[r])})}encodeValue(o){let r=this._fields.map(([i])=>o[i]),n=Or(this._fields,r,([,i],s)=>i.encodeValue(s));return(0,ye.concat)(...n)}_buildTypeTableImpl(o){this._fields.forEach(([s,p])=>p.buildTypeTable(o));let r=(0,z.slebEncode)(-20),n=(0,z.lebEncode)(this._fields.length),i=this._fields.map(([s,p])=>(0,ye.concat)((0,z.lebEncode)((0,Mt.idlLabelToId)(s)),p.encodeType(o)));o.add(this,(0,ye.concat)(r,n,(0,ye.concat)(...i)))}decodeValue(o,r){let n=this.checkType(r);if(!(n instanceof mo))throw new Error("Not a record type");let i={},s=0,p=0;for(;p<n._fields.length;){let[A,y]=n._fields[p];if(s>=this._fields.length){y.decodeValue(o,y),p++;continue}let[M,G]=this._fields[s];if((0,Mt.idlLabelToId)(this._fields[s][0])!==(0,Mt.idlLabelToId)(A)){if(G instanceof uo||G instanceof Vo){i[M]=[],s++;continue}y.decodeValue(o,y),p++;continue}i[M]=G.decodeValue(o,y),s++,p++}for(let[A,y]of this._fields.slice(s))if(y instanceof uo||y instanceof Vo)i[A]=[];else throw new Error("Cannot find required field "+A);return i}get name(){return`record {${this._fields.map(([r,n])=>r+":"+n.name).join("; ")}}`}display(){return`record {${this._fields.map(([r,n])=>r+":"+n.display()).join("; ")}}`}valueToString(o){let r=this._fields.map(([i])=>o[i]);return`record {${Or(this._fields,r,([i,s],p)=>i+"="+s.valueToString(p)).join("; ")}}`}};Q.RecordClass=mo;var Lo=class extends mo{constructor(o){let r={};o.forEach((n,i)=>r["_"+i+"_"]=n),super(r),this._components=o}accept(o,r){return o.visitTuple(this,this._components,r)}covariant(o){return Array.isArray(o)&&o.length>=this._fields.length&&this._components.every((r,n)=>r.covariant(o[n]))}encodeValue(o){let r=Or(this._components,o,(n,i)=>n.encodeValue(i));return(0,ye.concat)(...r)}decodeValue(o,r){let n=this.checkType(r);if(!(n instanceof Lo))throw new Error("not a tuple type");if(n._components.length<this._components.length)throw new Error("tuple mismatch");let i=[];for(let[s,p]of n._components.entries())s>=this._components.length?p.decodeValue(o,p):i.push(this._components[s].decodeValue(o,p));return i}display(){return`record {${this._components.map(r=>r.display()).join("; ")}}`}valueToString(o){return`record {${Or(this._components,o,(n,i)=>n.valueToString(i)).join("; ")}}`}};Q.TupleClass=Lo;var Jo=class extends qt{constructor(o={}){super(),this._fields=Object.entries(o).sort((r,n)=>(0,Mt.idlLabelToId)(r[0])-(0,Mt.idlLabelToId)(n[0]))}accept(o,r){return o.visitVariant(this,this._fields,r)}covariant(o){return typeof o=="object"&&Object.entries(o).length===1&&this._fields.every(([r,n])=>!o.hasOwnProperty(r)||n.covariant(o[r]))}encodeValue(o){for(let r=0;r<this._fields.length;r++){let[n,i]=this._fields[r];if(o.hasOwnProperty(n)){let s=(0,z.lebEncode)(r),p=i.encodeValue(o[n]);return(0,ye.concat)(s,p)}}throw Error("Variant has no data: "+o)}_buildTypeTableImpl(o){this._fields.forEach(([,s])=>{s.buildTypeTable(o)});let r=(0,z.slebEncode)(-21),n=(0,z.lebEncode)(this._fields.length),i=this._fields.map(([s,p])=>(0,ye.concat)((0,z.lebEncode)((0,Mt.idlLabelToId)(s)),p.encodeType(o)));o.add(this,(0,ye.concat)(r,n,...i))}decodeValue(o,r){let n=this.checkType(r);if(!(n instanceof Jo))throw new Error("Not a variant type");let i=Number((0,z.lebDecode)(o));if(i>=n._fields.length)throw Error("Invalid variant index: "+i);let[s,p]=n._fields[i];for(let[A,y]of this._fields)if((0,Mt.idlLabelToId)(s)===(0,Mt.idlLabelToId)(A)){let M=y.decodeValue(o,p);return{[A]:M}}throw new Error("Cannot find field hash "+s)}get name(){return`variant {${this._fields.map(([r,n])=>r+":"+n.name).join("; ")}}`}display(){return`variant {${this._fields.map(([r,n])=>r+(n.name==="null"?"":`:${n.display()}`)).join("; ")}}`}valueToString(o){for(let[r,n]of this._fields)if(o.hasOwnProperty(r)){let i=n.valueToString(o[r]);return i==="null"?`variant {${r}}`:`variant {${r}=${i}}`}throw new Error("Variant has no data: "+o)}};Q.VariantClass=Jo;var zt=class extends qt{constructor(){super(...arguments),this._id=zt._counter++,this._type=void 0}accept(o,r){if(!this._type)throw Error("Recursive type uninitialized.");return o.visitRec(this,this._type,r)}fill(o){this._type=o}getType(){return this._type}covariant(o){return this._type?this._type.covariant(o):!1}encodeValue(o){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.encodeValue(o)}_buildTypeTableImpl(o){if(!this._type)throw Error("Recursive type uninitialized.");o.add(this,new Uint8Array([])),this._type.buildTypeTable(o),o.merge(this,this._type.name)}decodeValue(o,r){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.decodeValue(o,r)}get name(){return`rec_${this._id}`}display(){if(!this._type)throw Error("Recursive type uninitialized.");return`\u03BC${this.name}.${this._type.name}`}valueToString(o){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.valueToString(o)}};Q.RecClass=zt;zt._counter=0;function Vi(t){if((0,z.safeReadUint8)(t)!==1)throw new Error("Cannot decode principal");let r=Number((0,z.lebDecode)(t));return MA.Principal.fromUint8Array(new Uint8Array((0,z.safeRead)(t,r)))}var Fn=class extends ft{accept(o,r){return o.visitPrincipal(this,r)}covariant(o){return o&&o._isPrincipal}encodeValue(o){let r=o.toUint8Array(),n=(0,z.lebEncode)(r.byteLength);return(0,ye.concat)(new Uint8Array([1]),n,r)}encodeType(){return(0,z.slebEncode)(-24)}decodeValue(o,r){return this.checkType(r),Vi(o)}get name(){return"principal"}valueToString(o){return`${this.name} "${o.toText()}"`}};Q.PrincipalClass=Fn;var Gr=class extends qt{constructor(o,r,n=[]){super(),this.argTypes=o,this.retTypes=r,this.annotations=n}static argsToString(o,r){if(o.length!==r.length)throw new Error("arity mismatch");return"("+o.map((n,i)=>n.valueToString(r[i])).join(", ")+")"}accept(o,r){return o.visitFunc(this,r)}covariant(o){return Array.isArray(o)&&o.length===2&&o[0]&&o[0]._isPrincipal&&typeof o[1]=="string"}encodeValue([o,r]){let n=o.toUint8Array(),i=(0,z.lebEncode)(n.byteLength),s=(0,ye.concat)(new Uint8Array([1]),i,n),p=new TextEncoder().encode(r),A=(0,z.lebEncode)(p.byteLength);return(0,ye.concat)(new Uint8Array([1]),s,A,p)}_buildTypeTableImpl(o){this.argTypes.forEach(M=>M.buildTypeTable(o)),this.retTypes.forEach(M=>M.buildTypeTable(o));let r=(0,z.slebEncode)(-22),n=(0,z.lebEncode)(this.argTypes.length),i=(0,ye.concat)(...this.argTypes.map(M=>M.encodeType(o))),s=(0,z.lebEncode)(this.retTypes.length),p=(0,ye.concat)(...this.retTypes.map(M=>M.encodeType(o))),A=(0,z.lebEncode)(this.annotations.length),y=(0,ye.concat)(...this.annotations.map(M=>this.encodeAnnotation(M)));o.add(this,(0,ye.concat)(r,n,i,s,p,A,y))}decodeValue(o){if((0,z.safeReadUint8)(o)!==1)throw new Error("Cannot decode function reference");let n=Vi(o),i=Number((0,z.lebDecode)(o)),s=(0,z.safeRead)(o,i),A=new TextDecoder("utf8",{fatal:!0}).decode(s);return[n,A]}get name(){let o=this.argTypes.map(i=>i.name).join(", "),r=this.retTypes.map(i=>i.name).join(", "),n=" "+this.annotations.join(" ");return`(${o}) -> (${r})${n}`}valueToString([o,r]){return`func "${o.toText()}".${r}`}display(){let o=this.argTypes.map(i=>i.display()).join(", "),r=this.retTypes.map(i=>i.display()).join(", "),n=" "+this.annotations.join(" ");return`(${o}) \u2192 (${r})${n}`}encodeAnnotation(o){if(o==="query")return new Uint8Array([1]);if(o==="oneway")return new Uint8Array([2]);throw new Error("Illegal function annotation")}};Q.FuncClass=Gr;var Tn=class extends qt{constructor(o){super(),this._fields=Object.entries(o).sort((r,n)=>(0,Mt.idlLabelToId)(r[0])-(0,Mt.idlLabelToId)(n[0]))}accept(o,r){return o.visitService(this,r)}covariant(o){return o&&o._isPrincipal}encodeValue(o){let r=o.toUint8Array(),n=(0,z.lebEncode)(r.length);return(0,ye.concat)(new Uint8Array([1]),n,r)}_buildTypeTableImpl(o){this._fields.forEach(([s,p])=>p.buildTypeTable(o));let r=(0,z.slebEncode)(-23),n=(0,z.lebEncode)(this._fields.length),i=this._fields.map(([s,p])=>{let A=new TextEncoder().encode(s),y=(0,z.lebEncode)(A.length);return(0,ye.concat)(y,A,p.encodeType(o))});o.add(this,(0,ye.concat)(r,n,...i))}decodeValue(o){return Vi(o)}get name(){return`service {${this._fields.map(([r,n])=>r+":"+n.name).join("; ")}}`}valueToString(o){return`service "${o.toText()}"`}};Q.ServiceClass=Tn;function Cg(t){return JSON.stringify(t,(o,r)=>typeof r=="bigint"?`BigInt(${r})`:r)}function wA(t,o){if(o.length<t.length)throw Error("Wrong number of message arguments");let r=new qi;t.forEach(y=>y.buildTypeTable(r));let n=new TextEncoder().encode(In),i=r.encode(),s=(0,z.lebEncode)(o.length),p=(0,ye.concat)(...t.map(y=>y.encodeType(r))),A=(0,ye.concat)(...Or(t,o,(y,M)=>{if(!y.covariant(M))throw new Error(`Invalid ${y.display()} argument: ${Cg(M)}`);return y.encodeValue(M)}));return(0,ye.concat)(n,i,s,p,A)}Q.encode=wA;function RA(t,o){let r=new ye.PipeArrayBuffer(o);if(o.byteLength<In.length)throw new Error("Message length smaller than magic number");let n=(0,z.safeRead)(r,In.length),i=new TextDecoder().decode(n);if(i!==In)throw new Error("Wrong magic number: "+JSON.stringify(i));function s(P){let Z=[],ne=Number((0,z.lebDecode)(P));for(let be=0;be<ne;be++){let we=Number((0,z.slebDecode)(P));switch(we){case-18:case-19:{let Re=Number((0,z.slebDecode)(P));Z.push([we,Re]);break}case-20:case-21:{let Re=[],te=Number((0,z.lebDecode)(P)),X;for(;te--;){let ge=Number((0,z.lebDecode)(P));if(ge>=Math.pow(2,32))throw new Error("field id out of 32-bit range");if(typeof X=="number"&&X>=ge)throw new Error("field id collision or not sorted");X=ge;let Ae=Number((0,z.slebDecode)(P));Re.push([ge,Ae])}Z.push([we,Re]);break}case-22:{let Re=[],te=Number((0,z.lebDecode)(P));for(;te--;)Re.push(Number((0,z.slebDecode)(P)));let X=[],ge=Number((0,z.lebDecode)(P));for(;ge--;)X.push(Number((0,z.slebDecode)(P)));let Ae=[],q=Number((0,z.lebDecode)(P));for(;q--;)switch(Number((0,z.lebDecode)(P))){case 1:{Ae.push("query");break}case 2:{Ae.push("oneway");break}default:throw new Error("unknown annotation")}Z.push([we,[Re,X,Ae]]);break}case-23:{let Re=Number((0,z.lebDecode)(P)),te=[];for(;Re--;){let X=Number((0,z.lebDecode)(P)),ge=new TextDecoder().decode((0,z.safeRead)(P,X)),Ae=(0,z.slebDecode)(P);te.push([ge,Ae])}Z.push([we,te]);break}default:throw new Error("Illegal op_code: "+we)}}let le=[],re=Number((0,z.lebDecode)(P));for(let be=0;be<re;be++)le.push(Number((0,z.slebDecode)(P)));return[Z,le]}let[p,A]=s(r);if(A.length<t.length)throw new Error("Wrong number of return values");let y=p.map(P=>xg());function M(P){if(P<-24)throw new Error("future value not supported");if(P<0)switch(P){case-1:return Q.Null;case-2:return Q.Bool;case-3:return Q.Nat;case-4:return Q.Int;case-5:return Q.Nat8;case-6:return Q.Nat16;case-7:return Q.Nat32;case-8:return Q.Nat64;case-9:return Q.Int8;case-10:return Q.Int16;case-11:return Q.Int32;case-12:return Q.Int64;case-13:return Q.Float32;case-14:return Q.Float64;case-15:return Q.Text;case-16:return Q.Reserved;case-17:return Q.Empty;case-24:return Q.Principal;default:throw new Error("Illegal op_code: "+P)}if(P>=p.length)throw new Error("type index out of range");return y[P]}function G(P){switch(P[0]){case-19:{let Z=M(P[1]);return wg(Z)}case-18:{let Z=M(P[1]);return Rg(Z)}case-20:{let Z={};for(let[re,be]of P[1]){let we=`_${re}_`;Z[we]=M(be)}let ne=Sg(Z),le=ne.tryAsTuple();return Array.isArray(le)?Mg(...le):ne}case-21:{let Z={};for(let[ne,le]of P[1]){let re=`_${ne}_`;Z[re]=M(le)}return Ng(Z)}case-22:{let[Z,ne,le]=P[1];return Fg(Z.map(re=>M(re)),ne.map(re=>M(re)),le)}case-23:{let Z={},ne=P[1];for(let[le,re]of ne){let be=M(re);if(be instanceof zt&&(be=be.getType()),!(be instanceof Gr))throw new Error("Illegal service definition: services can only contain functions");Z[le]=be}return Tg(Z)}default:throw new Error("Illegal op_code: "+P[0])}}p.forEach((P,Z)=>{let ne=G(P);y[Z].fill(ne)});let T=A.map(P=>M(P)),L=t.map((P,Z)=>P.decodeValue(r,T[Z]));for(let P=t.length;P<T.length;P++)T[P].decodeValue(r,T[P]);if(r.byteLength>0)throw new Error("decode: Left-over bytes");return L}Q.decode=RA;Q.Empty=new Cn;Q.Reserved=new Vo;Q.Unknown=new Mn;Q.Bool=new wn;Q.Null=new Rn;Q.Text=new Sn;Q.Int=new Nn;Q.Nat=new xn;Q.Float32=new Qr(32);Q.Float64=new Qr(64);Q.Int8=new no(8);Q.Int16=new no(16);Q.Int32=new no(32);Q.Int64=new no(64);Q.Nat8=new Wt(8);Q.Nat16=new Wt(16);Q.Nat32=new Wt(32);Q.Nat64=new Wt(64);Q.Principal=new Fn;function Mg(...t){return new Lo(t)}Q.Tuple=Mg;function wg(t){return new Yo(t)}Q.Vec=wg;function Rg(t){return new uo(t)}Q.Opt=Rg;function Sg(t){return new mo(t)}Q.Record=Sg;function Ng(t){return new Jo(t)}Q.Variant=Ng;function xg(){return new zt}Q.Rec=xg;function Fg(t,o,r=[]){return new Gr(t,o,r)}Q.Func=Fg;function Tg(t){return new Tn(t)}Q.Service=Tg});var es=J(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.VecForm=pt.OptionForm=pt.VariantForm=pt.TupleForm=pt.RecordForm=pt.InputForm=pt.InputBox=void 0;var Li=class{constructor(o,r){this.idl=o,this.ui=r,this.label=null,this.value=void 0;let n=document.createElement("span");n.className="status",this.status=n,r.input&&(r.input.addEventListener("blur",()=>{r.input.value!==""&&this.parse()}),r.input.addEventListener("input",()=>{n.style.display="none",r.input.classList.remove("reject")}))}isRejected(){return this.value===void 0}parse(o={}){if(this.ui.form){let r=this.ui.form.parse(o);return this.value=r,r}if(this.ui.input){let r=this.ui.input;try{let n=this.ui.parse(this.idl,o,r.value);if(!this.idl.covariant(n))throw new Error(`${r.value} is not of type ${this.idl.display()}`);return this.status.style.display="none",this.value=n,n}catch(n){r.classList.add("reject"),this.status.style.display="block",this.status.innerHTML="InputError: "+n.message,this.value=void 0;return}}return null}render(o){let r=document.createElement("span");if(this.label){let n=document.createElement("label");n.innerText=this.label,r.appendChild(n)}this.ui.input&&(r.appendChild(this.ui.input),r.appendChild(this.status)),this.ui.form&&this.ui.form.render(r),o.appendChild(r)}};pt.InputBox=Li;var lo=class{constructor(o){this.ui=o,this.form=[]}renderForm(o){this.ui.container?(this.form.forEach(r=>r.render(this.ui.container)),o.appendChild(this.ui.container)):this.form.forEach(r=>r.render(o))}render(o){if(this.ui.open&&this.ui.event){o.appendChild(this.ui.open);let r=this;r.ui.open.addEventListener(r.ui.event,()=>{if(r.ui.container)r.ui.container.innerHTML="";else{let n=r.ui.open.nextElementSibling;n&&n.parentNode.removeChild(n)}r.generateForm(),r.renderForm(o)})}else this.generateForm(),this.renderForm(o)}};pt.InputForm=lo;var Ji=class extends lo{constructor(o,r){super(r),this.fields=o,this.ui=r}generateForm(){this.form=this.fields.map(([o,r])=>{let n=this.ui.render(r);return this.ui.labelMap&&this.ui.labelMap.hasOwnProperty(o)?n.label=this.ui.labelMap[o]+" ":n.label=o+" ",n})}parse(o){let r={};if(this.fields.forEach(([n,i],s)=>{let p=this.form[s].parse(o);r[n]=p}),!this.form.some(n=>n.isRejected()))return r}};pt.RecordForm=Ji;var Ki=class extends lo{constructor(o,r){super(r),this.components=o,this.ui=r}generateForm(){this.form=this.components.map(o=>this.ui.render(o))}parse(o){let r=[];if(this.components.forEach((n,i)=>{let s=this.form[i].parse(o);r.push(s)}),!this.form.some(n=>n.isRejected()))return r}};pt.TupleForm=Ki;var Zi=class extends lo{constructor(o,r){super(r),this.fields=o,this.ui=r}generateForm(){let o=this.ui.open.selectedIndex,[r,n]=this.fields[o],i=this.ui.render(n);this.form=[i]}parse(o){let r=this.ui.open,n=r.options[r.selectedIndex].value,i=this.form[0].parse(o);if(i===void 0)return;let s={};return s[n]=i,s}};pt.VariantForm=Zi;var Xi=class extends lo{constructor(o,r){super(r),this.ty=o,this.ui=r}generateForm(){if(this.ui.open.checked){let o=this.ui.render(this.ty);this.form=[o]}else this.form=[]}parse(o){if(this.form.length===0)return[];{let r=this.form[0].parse(o);return r===void 0?void 0:[r]}}};pt.OptionForm=Xi;var $i=class extends lo{constructor(o,r){super(r),this.ty=o,this.ui=r}generateForm(){let o=+this.ui.open.value;this.form=[];for(let r=0;r<o;r++){let n=this.ui.render(this.ty);this.form.push(n)}}parse(o){let r=this.form.map(n=>n.parse(o));if(!this.form.some(n=>n.isRejected()))return r}};pt.VecForm=$i});var Qg=J(pe=>{"use strict";var SA=pe&&pe.__createBinding||(Object.create?function(t,o,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,n){n===void 0&&(n=r),t[n]=o[r]}),NA=pe&&pe.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),Og=pe&&pe.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&SA(o,t,r);return NA(o,t),o};Object.defineProperty(pe,"__esModule",{value:!0});pe.renderValue=pe.renderInput=pe.Render=pe.vecForm=pe.optForm=pe.variantForm=pe.tupleForm=pe.recordForm=pe.inputBox=void 0;var Qn=Og(Yi()),ts=yt(),Ko=Og(es()),xA={parse:kA},Pr={render:is},FA=(t,o)=>new Ko.InputBox(t,Object.assign(Object.assign({},xA),o));pe.inputBox=FA;var TA=(t,o)=>new Ko.RecordForm(t,Object.assign(Object.assign({},Pr),o));pe.recordForm=TA;var OA=(t,o)=>new Ko.TupleForm(t,Object.assign(Object.assign({},Pr),o));pe.tupleForm=OA;var QA=(t,o)=>new Ko.VariantForm(t,Object.assign(Object.assign({},Pr),o));pe.variantForm=QA;var GA=(t,o)=>new Ko.OptionForm(t,Object.assign(Object.assign({},Pr),o));pe.optForm=GA;var PA=(t,o)=>new Ko.VecForm(t,Object.assign(Object.assign({},Pr),o));pe.vecForm=PA;var On=class extends Qn.Visitor{visitType(o,r){let n=document.createElement("input");return n.classList.add("argument"),n.placeholder=o.display(),(0,pe.inputBox)(o,{input:n})}visitNull(o,r){return(0,pe.inputBox)(o,{})}visitRecord(o,r,n){let i={};if(r.length>1){let p=document.createElement("div");p.classList.add("popup-form"),i={container:p}}let s=(0,pe.recordForm)(r,i);return(0,pe.inputBox)(o,{form:s})}visitTuple(o,r,n){let i={};if(r.length>1){let p=document.createElement("div");p.classList.add("popup-form"),i={container:p}}let s=(0,pe.tupleForm)(r,i);return(0,pe.inputBox)(o,{form:s})}visitVariant(o,r,n){let i=document.createElement("select");for(let[A,y]of r){let M=new Option(A);i.add(M)}i.selectedIndex=-1,i.classList.add("open");let s={open:i,event:"change"},p=(0,pe.variantForm)(r,s);return(0,pe.inputBox)(o,{form:p})}visitOpt(o,r,n){let i=document.createElement("input");i.type="checkbox",i.classList.add("open");let s=(0,pe.optForm)(r,{open:i,event:"change"});return(0,pe.inputBox)(o,{form:s})}visitVec(o,r,n){let i=document.createElement("input");i.type="number",i.min="0",i.max="100",i.style.width="8rem",i.placeholder="len",i.classList.add("open");let s=document.createElement("div");s.classList.add("popup-form");let p=(0,pe.vecForm)(r,{open:i,event:"change",container:s});return(0,pe.inputBox)(o,{form:p})}visitRec(o,r,n){return is(r)}};pe.Render=On;var os=class extends Qn.Visitor{visitNull(o,r){return null}visitBool(o,r){if(r==="true")return!0;if(r==="false")return!1;throw new Error(`Cannot parse ${r} as boolean`)}visitText(o,r){return r}visitFloat(o,r){return parseFloat(r)}visitNumber(o,r){return BigInt(r)}visitPrincipal(o,r){return ts.Principal.fromText(r)}visitService(o,r){return ts.Principal.fromText(r)}visitFunc(o,r){let n=r.split(".",2);return[ts.Principal.fromText(n[0]),n[1]]}},rs=class extends Qn.Visitor{visitNull(o,r){return null}visitBool(o,r){return Math.random()<.5}visitText(o,r){return Math.random().toString(36).substring(6)}visitFloat(o,r){return Math.random()}visitInt(o,r){return BigInt(this.generateNumber(!0))}visitNat(o,r){return BigInt(this.generateNumber(!1))}visitFixedInt(o,r){return BigInt(this.generateNumber(!0))}visitFixedNat(o,r){return BigInt(this.generateNumber(!1))}generateNumber(o){let r=Math.floor(Math.random()*100);return o&&Math.random()<.5?-r:r}};function kA(t,o,r){return o.random&&r===""?t.accept(new rs,r):t.accept(new os,r)}function is(t){return t.accept(new On,null)}pe.renderInput=is;function Io(t,o,r){return t.accept(new ns,{input:o,value:r})}pe.renderValue=Io;var ns=class extends Qn.Visitor{visitType(o,r){r.input.ui.input.value=o.valueToString(r.value)}visitNull(o,r){}visitText(o,r){r.input.ui.input.value=r.value}visitRec(o,r,n){Io(r,n.input,n.value)}visitOpt(o,r,n){if(n.value.length!==0){let i=n.input.ui.form,s=i.ui.open;s.checked=!0,s.dispatchEvent(new Event(i.ui.event)),Io(r,i.form[0],n.value[0])}}visitRecord(o,r,n){let i=n.input.ui.form;r.forEach(([s,p],A)=>{Io(p,i.form[A],n.value[s])})}visitTuple(o,r,n){let i=n.input.ui.form;r.forEach((s,p)=>{Io(s,i.form[p],n.value[p])})}visitVariant(o,r,n){let i=n.input.ui.form,s=Object.entries(n.value)[0];r.forEach(([p,A],y)=>{if(p===s[0]){let M=i.ui.open;M.selectedIndex=y,M.dispatchEvent(new Event(i.ui.event)),Io(A,i.form[0],s[1])}})}visitVec(o,r,n){let i=n.input.ui.form,s=n.value.length,p=i.ui.open;p.value=s,p.dispatchEvent(new Event(i.ui.event)),n.value.forEach((A,y)=>{Io(r,i.form[y],A)})}}});var Pg=J(Gg=>{"use strict";Object.defineProperty(Gg,"__esModule",{value:!0})});var Co=J(ot=>{"use strict";var kg=ot&&ot.__createBinding||(Object.create?function(t,o,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,n){n===void 0&&(n=r),t[n]=o[r]}),UA=ot&&ot.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),Zo=ot&&ot.__exportStar||function(t,o){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(o,r)&&kg(o,t,r)},DA=ot&&ot.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&kg(o,t,r);return UA(o,t),o};Object.defineProperty(ot,"__esModule",{value:!0});ot.IDL=void 0;Zo(Qg(),ot);Zo(es(),ot);ot.IDL=DA(Yi());Zo(ji(),ot);Zo(Wi(),ot);Zo(En(),ot);Zo(Pg(),ot)});var kr=J((Ug,Gn)=>{(function(t){"use strict";var o,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,i=Math.floor,s="[BigNumber Error] ",p=s+"Number primitive has more than 15 significant digits: ",A=1e14,y=14,M=9007199254740991,G=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],T=1e7,L=1e9;function P(te){var X,ge,Ae,q=j.prototype={constructor:j,toString:null,valueOf:null},Be=new j(1),Ee=20,ve=4,Te=-7,qe=21,st=-1e7,Ye=1e7,lt=!1,Oe=1,at=0,Zt={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},It="0123456789abcdefghijklmnopqrstuvwxyz",Xt=!0;function j(_,B){var E,N,C,R,F,v,w,x,S=this;if(!(S instanceof j))return new j(_,B);if(B==null){if(_&&_._isBigNumber===!0){S.s=_.s,!_.c||_.e>Ye?S.c=S.e=null:_.e<st?S.c=[S.e=0]:(S.e=_.e,S.c=_.c.slice());return}if((v=typeof _=="number")&&_*0==0){if(S.s=1/_<0?(_=-_,-1):1,_===~~_){for(R=0,F=_;F>=10;F/=10,R++);R>Ye?S.c=S.e=null:(S.e=R,S.c=[_]);return}x=String(_)}else{if(!r.test(x=String(_)))return Ae(S,x,v);S.s=x.charCodeAt(0)==45?(x=x.slice(1),-1):1}(R=x.indexOf("."))>-1&&(x=x.replace(".","")),(F=x.search(/e/i))>0?(R<0&&(R=F),R+=+x.slice(F+1),x=x.substring(0,F)):R<0&&(R=x.length)}else{if(re(B,2,It.length,"Base"),B==10&&Xt)return S=new j(_),Xe(S,Ee+S.e+1,ve);if(x=String(_),v=typeof _=="number"){if(_*0!=0)return Ae(S,x,v,B);if(S.s=1/_<0?(x=x.slice(1),-1):1,j.DEBUG&&x.replace(/^0\.0*|\./,"").length>15)throw Error(p+_)}else S.s=x.charCodeAt(0)===45?(x=x.slice(1),-1):1;for(E=It.slice(0,B),R=F=0,w=x.length;F<w;F++)if(E.indexOf(N=x.charAt(F))<0){if(N=="."){if(F>R){R=w;continue}}else if(!C&&(x==x.toUpperCase()&&(x=x.toLowerCase())||x==x.toLowerCase()&&(x=x.toUpperCase()))){C=!0,F=-1,R=0;continue}return Ae(S,String(_),v,B)}v=!1,x=ge(x,B,10,S.s),(R=x.indexOf("."))>-1?x=x.replace(".",""):R=x.length}for(F=0;x.charCodeAt(F)===48;F++);for(w=x.length;x.charCodeAt(--w)===48;);if(x=x.slice(F,++w)){if(w-=F,v&&j.DEBUG&&w>15&&(_>M||_!==i(_)))throw Error(p+S.s*_);if((R=R-F-1)>Ye)S.c=S.e=null;else if(R<st)S.c=[S.e=0];else{if(S.e=R,S.c=[],F=(R+1)%y,R<0&&(F+=y),F<w){for(F&&S.c.push(+x.slice(0,F)),w-=y;F<w;)S.c.push(+x.slice(F,F+=y));F=y-(x=x.slice(F)).length}else F-=w;for(;F--;x+="0");S.c.push(+x)}}else S.c=[S.e=0]}j.clone=P,j.ROUND_UP=0,j.ROUND_DOWN=1,j.ROUND_CEIL=2,j.ROUND_FLOOR=3,j.ROUND_HALF_UP=4,j.ROUND_HALF_DOWN=5,j.ROUND_HALF_EVEN=6,j.ROUND_HALF_CEIL=7,j.ROUND_HALF_FLOOR=8,j.EUCLID=9,j.config=j.set=function(_){var B,E;if(_!=null)if(typeof _=="object"){if(_.hasOwnProperty(B="DECIMAL_PLACES")&&(E=_[B],re(E,0,L,B),Ee=E),_.hasOwnProperty(B="ROUNDING_MODE")&&(E=_[B],re(E,0,8,B),ve=E),_.hasOwnProperty(B="EXPONENTIAL_AT")&&(E=_[B],E&&E.pop?(re(E[0],-L,0,B),re(E[1],0,L,B),Te=E[0],qe=E[1]):(re(E,-L,L,B),Te=-(qe=E<0?-E:E))),_.hasOwnProperty(B="RANGE"))if(E=_[B],E&&E.pop)re(E[0],-L,-1,B),re(E[1],1,L,B),st=E[0],Ye=E[1];else if(re(E,-L,L,B),E)st=-(Ye=E<0?-E:E);else throw Error(s+B+" cannot be zero: "+E);if(_.hasOwnProperty(B="CRYPTO"))if(E=_[B],E===!!E)if(E)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))lt=E;else throw lt=!E,Error(s+"crypto unavailable");else lt=E;else throw Error(s+B+" not true or false: "+E);if(_.hasOwnProperty(B="MODULO_MODE")&&(E=_[B],re(E,0,9,B),Oe=E),_.hasOwnProperty(B="POW_PRECISION")&&(E=_[B],re(E,0,L,B),at=E),_.hasOwnProperty(B="FORMAT"))if(E=_[B],typeof E=="object")Zt=E;else throw Error(s+B+" not an object: "+E);if(_.hasOwnProperty(B="ALPHABET"))if(E=_[B],typeof E=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(E))Xt=E.slice(0,10)=="0123456789",It=E;else throw Error(s+B+" invalid: "+E)}else throw Error(s+"Object expected: "+_);return{DECIMAL_PLACES:Ee,ROUNDING_MODE:ve,EXPONENTIAL_AT:[Te,qe],RANGE:[st,Ye],CRYPTO:lt,MODULO_MODE:Oe,POW_PRECISION:at,FORMAT:Zt,ALPHABET:It}},j.isBigNumber=function(_){if(!_||_._isBigNumber!==!0)return!1;if(!j.DEBUG)return!0;var B,E,N=_.c,C=_.e,R=_.s;e:if({}.toString.call(N)=="[object Array]"){if((R===1||R===-1)&&C>=-L&&C<=L&&C===i(C)){if(N[0]===0){if(C===0&&N.length===1)return!0;break e}if(B=(C+1)%y,B<1&&(B+=y),String(N[0]).length==B){for(B=0;B<N.length;B++)if(E=N[B],E<0||E>=A||E!==i(E))break e;if(E!==0)return!0}}}else if(N===null&&C===null&&(R===null||R===1||R===-1))return!0;throw Error(s+"Invalid BigNumber: "+_)},j.maximum=j.max=function(){return Pt(arguments,q.lt)},j.minimum=j.min=function(){return Pt(arguments,q.gt)},j.random=function(){var _=9007199254740992,B=Math.random()*_&2097151?function(){return i(Math.random()*_)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(E){var N,C,R,F,v,w=0,x=[],S=new j(Be);if(E==null?E=Ee:re(E,0,L),F=n(E/y),lt)if(crypto.getRandomValues){for(N=crypto.getRandomValues(new Uint32Array(F*=2));w<F;)v=N[w]*131072+(N[w+1]>>>11),v>=9e15?(C=crypto.getRandomValues(new Uint32Array(2)),N[w]=C[0],N[w+1]=C[1]):(x.push(v%1e14),w+=2);w=F/2}else if(crypto.randomBytes){for(N=crypto.randomBytes(F*=7);w<F;)v=(N[w]&31)*281474976710656+N[w+1]*1099511627776+N[w+2]*4294967296+N[w+3]*16777216+(N[w+4]<<16)+(N[w+5]<<8)+N[w+6],v>=9e15?crypto.randomBytes(7).copy(N,w):(x.push(v%1e14),w+=7);w=F/7}else throw lt=!1,Error(s+"crypto unavailable");if(!lt)for(;w<F;)v=B(),v<9e15&&(x[w++]=v%1e14);for(F=x[--w],E%=y,F&&E&&(v=G[y-E],x[w]=i(F/v)*v);x[w]===0;x.pop(),w--);if(w<0)x=[R=0];else{for(R=-1;x[0]===0;x.splice(0,1),R-=y);for(w=1,v=x[0];v>=10;v/=10,w++);w<y&&(R-=y-w)}return S.e=R,S.c=x,S}}(),j.sum=function(){for(var _=1,B=arguments,E=new j(B[0]);_<B.length;)E=E.plus(B[_++]);return E},ge=function(){var _="0123456789";function B(E,N,C,R){for(var F,v=[0],w,x=0,S=E.length;x<S;){for(w=v.length;w--;v[w]*=N);for(v[0]+=R.indexOf(E.charAt(x++)),F=0;F<v.length;F++)v[F]>C-1&&(v[F+1]==null&&(v[F+1]=0),v[F+1]+=v[F]/C|0,v[F]%=C)}return v.reverse()}return function(E,N,C,R,F){var v,w,x,S,k,W,$,se,me=E.indexOf("."),Se=Ee,ie=ve;for(me>=0&&(S=at,at=0,E=E.replace(".",""),se=new j(N),W=se.pow(E.length-me),at=S,se.c=B(Re(ne(W.c),W.e,"0"),10,C,_),se.e=se.c.length),$=B(E,N,C,F?(v=It,_):(v=_,It)),x=S=$.length;$[--S]==0;$.pop());if(!$[0])return v.charAt(0);if(me<0?--x:(W.c=$,W.e=x,W.s=R,W=X(W,se,Se,ie,C),$=W.c,k=W.r,x=W.e),w=x+Se+1,me=$[w],S=C/2,k=k||w<0||$[w+1]!=null,k=ie<4?(me!=null||k)&&(ie==0||ie==(W.s<0?3:2)):me>S||me==S&&(ie==4||k||ie==6&&$[w-1]&1||ie==(W.s<0?8:7)),w<1||!$[0])E=k?Re(v.charAt(1),-Se,v.charAt(0)):v.charAt(0);else{if($.length=w,k)for(--C;++$[--w]>C;)$[w]=0,w||(++x,$=[1].concat($));for(S=$.length;!$[--S];);for(me=0,E="";me<=S;E+=v.charAt($[me++]));E=Re(E,x,v.charAt(0))}return E}}(),X=function(){function _(N,C,R){var F,v,w,x,S=0,k=N.length,W=C%T,$=C/T|0;for(N=N.slice();k--;)w=N[k]%T,x=N[k]/T|0,F=$*w+x*W,v=W*w+F%T*T+S,S=(v/R|0)+(F/T|0)+$*x,N[k]=v%R;return S&&(N=[S].concat(N)),N}function B(N,C,R,F){var v,w;if(R!=F)w=R>F?1:-1;else for(v=w=0;v<R;v++)if(N[v]!=C[v]){w=N[v]>C[v]?1:-1;break}return w}function E(N,C,R,F){for(var v=0;R--;)N[R]-=v,v=N[R]<C[R]?1:0,N[R]=v*F+N[R]-C[R];for(;!N[0]&&N.length>1;N.splice(0,1));}return function(N,C,R,F,v){var w,x,S,k,W,$,se,me,Se,ie,ee,xe,kt,$t,eo,gt,fe,$e=N.s==C.s?1:-1,Qe=N.c,Ie=C.c;if(!Qe||!Qe[0]||!Ie||!Ie[0])return new j(!N.s||!C.s||(Qe?Ie&&Qe[0]==Ie[0]:!Ie)?NaN:Qe&&Qe[0]==0||!Ie?$e*0:$e/0);for(me=new j($e),Se=me.c=[],x=N.e-C.e,$e=R+x+1,v||(v=A,x=Z(N.e/y)-Z(C.e/y),$e=$e/y|0),S=0;Ie[S]==(Qe[S]||0);S++);if(Ie[S]>(Qe[S]||0)&&x--,$e<0)Se.push(1),k=!0;else{for($t=Qe.length,gt=Ie.length,S=0,$e+=2,W=i(v/(Ie[0]+1)),W>1&&(Ie=_(Ie,W,v),Qe=_(Qe,W,v),gt=Ie.length,$t=Qe.length),kt=gt,ie=Qe.slice(0,gt),ee=ie.length;ee<gt;ie[ee++]=0);fe=Ie.slice(),fe=[0].concat(fe),eo=Ie[0],Ie[1]>=v/2&&eo++;do{if(W=0,w=B(Ie,ie,gt,ee),w<0){if(xe=ie[0],gt!=ee&&(xe=xe*v+(ie[1]||0)),W=i(xe/eo),W>1)for(W>=v&&(W=v-1),$=_(Ie,W,v),se=$.length,ee=ie.length;B($,ie,se,ee)==1;)W--,E($,gt<se?fe:Ie,se,v),se=$.length,w=1;else W==0&&(w=W=1),$=Ie.slice(),se=$.length;if(se<ee&&($=[0].concat($)),E(ie,$,ee,v),ee=ie.length,w==-1)for(;B(Ie,ie,gt,ee)<1;)W++,E(ie,gt<ee?fe:Ie,ee,v),ee=ie.length}else w===0&&(W++,ie=[0]);Se[S++]=W,ie[0]?ie[ee++]=Qe[kt]||0:(ie=[Qe[kt]],ee=1)}while((kt++<$t||ie[0]!=null)&&$e--);k=ie[0]!=null,Se[0]||Se.splice(0,1)}if(v==A){for(S=1,$e=Se[0];$e>=10;$e/=10,S++);Xe(me,R+(me.e=S+x*y-1)+1,F,k)}else me.e=x,me.r=+k;return me}}();function I(_,B,E,N){var C,R,F,v,w;if(E==null?E=ve:re(E,0,8),!_.c)return _.toString();if(C=_.c[0],F=_.e,B==null)w=ne(_.c),w=N==1||N==2&&(F<=Te||F>=qe)?we(w,F):Re(w,F,"0");else if(_=Xe(new j(_),B,E),R=_.e,w=ne(_.c),v=w.length,N==1||N==2&&(B<=R||R<=Te)){for(;v<B;w+="0",v++);w=we(w,R)}else if(B-=F,w=Re(w,R,"0"),R+1>v){if(--B>0)for(w+=".";B--;w+="0");}else if(B+=R-v,B>0)for(R+1==v&&(w+=".");B--;w+="0");return _.s<0&&C?"-"+w:w}function Pt(_,B){for(var E,N=1,C=new j(_[0]);N<_.length;N++)if(E=new j(_[N]),E.s)B.call(C,E)&&(C=E);else{C=E;break}return C}function bt(_,B,E){for(var N=1,C=B.length;!B[--C];B.pop());for(C=B[0];C>=10;C/=10,N++);return(E=N+E*y-1)>Ye?_.c=_.e=null:E<st?_.c=[_.e=0]:(_.e=E,_.c=B),_}Ae=function(){var _=/^(-?)0([xbo])(?=\w[\w.]*$)/i,B=/^([^.]+)\.$/,E=/^\.([^.]+)$/,N=/^-?(Infinity|NaN)$/,C=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(R,F,v,w){var x,S=v?F:F.replace(C,"");if(N.test(S))R.s=isNaN(S)?null:S<0?-1:1;else{if(!v&&(S=S.replace(_,function(k,W,$){return x=($=$.toLowerCase())=="x"?16:$=="b"?2:8,!w||w==x?W:k}),w&&(x=w,S=S.replace(B,"$1").replace(E,"0.$1")),F!=S))return new j(S,x);if(j.DEBUG)throw Error(s+"Not a"+(w?" base "+w:"")+" number: "+F);R.s=null}R.c=R.e=null}}();function Xe(_,B,E,N){var C,R,F,v,w,x,S,k=_.c,W=G;if(k){e:{for(C=1,v=k[0];v>=10;v/=10,C++);if(R=B-C,R<0)R+=y,F=B,w=k[x=0],S=w/W[C-F-1]%10|0;else if(x=n((R+1)/y),x>=k.length)if(N){for(;k.length<=x;k.push(0));w=S=0,C=1,R%=y,F=R-y+1}else break e;else{for(w=v=k[x],C=1;v>=10;v/=10,C++);R%=y,F=R-y+C,S=F<0?0:w/W[C-F-1]%10|0}if(N=N||B<0||k[x+1]!=null||(F<0?w:w%W[C-F-1]),N=E<4?(S||N)&&(E==0||E==(_.s<0?3:2)):S>5||S==5&&(E==4||N||E==6&&(R>0?F>0?w/W[C-F]:0:k[x-1])%10&1||E==(_.s<0?8:7)),B<1||!k[0])return k.length=0,N?(B-=_.e+1,k[0]=W[(y-B%y)%y],_.e=-B||0):k[0]=_.e=0,_;if(R==0?(k.length=x,v=1,x--):(k.length=x+1,v=W[y-R],k[x]=F>0?i(w/W[C-F]%W[F])*v:0),N)for(;;)if(x==0){for(R=1,F=k[0];F>=10;F/=10,R++);for(F=k[0]+=v,v=1;F>=10;F/=10,v++);R!=v&&(_.e++,k[0]==A&&(k[0]=1));break}else{if(k[x]+=v,k[x]!=A)break;k[x--]=0,v=1}for(R=k.length;k[--R]===0;k.pop());}_.e>Ye?_.c=_.e=null:_.e<st&&(_.c=[_.e=0])}return _}function oe(_){var B,E=_.e;return E===null?_.toString():(B=ne(_.c),B=E<=Te||E>=qe?we(B,E):Re(B,E,"0"),_.s<0?"-"+B:B)}return q.absoluteValue=q.abs=function(){var _=new j(this);return _.s<0&&(_.s=1),_},q.comparedTo=function(_,B){return le(this,new j(_,B))},q.decimalPlaces=q.dp=function(_,B){var E,N,C,R=this;if(_!=null)return re(_,0,L),B==null?B=ve:re(B,0,8),Xe(new j(R),_+R.e+1,B);if(!(E=R.c))return null;if(N=((C=E.length-1)-Z(this.e/y))*y,C=E[C])for(;C%10==0;C/=10,N--);return N<0&&(N=0),N},q.dividedBy=q.div=function(_,B){return X(this,new j(_,B),Ee,ve)},q.dividedToIntegerBy=q.idiv=function(_,B){return X(this,new j(_,B),0,1)},q.exponentiatedBy=q.pow=function(_,B){var E,N,C,R,F,v,w,x,S,k=this;if(_=new j(_),_.c&&!_.isInteger())throw Error(s+"Exponent not an integer: "+oe(_));if(B!=null&&(B=new j(B)),v=_.e>14,!k.c||!k.c[0]||k.c[0]==1&&!k.e&&k.c.length==1||!_.c||!_.c[0])return S=new j(Math.pow(+oe(k),v?2-be(_):+oe(_))),B?S.mod(B):S;if(w=_.s<0,B){if(B.c?!B.c[0]:!B.s)return new j(NaN);N=!w&&k.isInteger()&&B.isInteger(),N&&(k=k.mod(B))}else{if(_.e>9&&(k.e>0||k.e<-1||(k.e==0?k.c[0]>1||v&&k.c[1]>=24e7:k.c[0]<8e13||v&&k.c[0]<=9999975e7)))return R=k.s<0&&be(_)?-0:0,k.e>-1&&(R=1/R),new j(w?1/R:R);at&&(R=n(at/y+2))}for(v?(E=new j(.5),w&&(_.s=1),x=be(_)):(C=Math.abs(+oe(_)),x=C%2),S=new j(Be);;){if(x){if(S=S.times(k),!S.c)break;R?S.c.length>R&&(S.c.length=R):N&&(S=S.mod(B))}if(C){if(C=i(C/2),C===0)break;x=C%2}else if(_=_.times(E),Xe(_,_.e+1,1),_.e>14)x=be(_);else{if(C=+oe(_),C===0)break;x=C%2}k=k.times(k),R?k.c&&k.c.length>R&&(k.c.length=R):N&&(k=k.mod(B))}return N?S:(w&&(S=Be.div(S)),B?S.mod(B):R?Xe(S,at,ve,F):S)},q.integerValue=function(_){var B=new j(this);return _==null?_=ve:re(_,0,8),Xe(B,B.e+1,_)},q.isEqualTo=q.eq=function(_,B){return le(this,new j(_,B))===0},q.isFinite=function(){return!!this.c},q.isGreaterThan=q.gt=function(_,B){return le(this,new j(_,B))>0},q.isGreaterThanOrEqualTo=q.gte=function(_,B){return(B=le(this,new j(_,B)))===1||B===0},q.isInteger=function(){return!!this.c&&Z(this.e/y)>this.c.length-2},q.isLessThan=q.lt=function(_,B){return le(this,new j(_,B))<0},q.isLessThanOrEqualTo=q.lte=function(_,B){return(B=le(this,new j(_,B)))===-1||B===0},q.isNaN=function(){return!this.s},q.isNegative=function(){return this.s<0},q.isPositive=function(){return this.s>0},q.isZero=function(){return!!this.c&&this.c[0]==0},q.minus=function(_,B){var E,N,C,R,F=this,v=F.s;if(_=new j(_,B),B=_.s,!v||!B)return new j(NaN);if(v!=B)return _.s=-B,F.plus(_);var w=F.e/y,x=_.e/y,S=F.c,k=_.c;if(!w||!x){if(!S||!k)return S?(_.s=-B,_):new j(k?F:NaN);if(!S[0]||!k[0])return k[0]?(_.s=-B,_):new j(S[0]?F:ve==3?-0:0)}if(w=Z(w),x=Z(x),S=S.slice(),v=w-x){for((R=v<0)?(v=-v,C=S):(x=w,C=k),C.reverse(),B=v;B--;C.push(0));C.reverse()}else for(N=(R=(v=S.length)<(B=k.length))?v:B,v=B=0;B<N;B++)if(S[B]!=k[B]){R=S[B]<k[B];break}if(R&&(C=S,S=k,k=C,_.s=-_.s),B=(N=k.length)-(E=S.length),B>0)for(;B--;S[E++]=0);for(B=A-1;N>v;){if(S[--N]<k[N]){for(E=N;E&&!S[--E];S[E]=B);--S[E],S[N]+=A}S[N]-=k[N]}for(;S[0]==0;S.splice(0,1),--x);return S[0]?bt(_,S,x):(_.s=ve==3?-1:1,_.c=[_.e=0],_)},q.modulo=q.mod=function(_,B){var E,N,C=this;return _=new j(_,B),!C.c||!_.s||_.c&&!_.c[0]?new j(NaN):!_.c||C.c&&!C.c[0]?new j(C):(Oe==9?(N=_.s,_.s=1,E=X(C,_,0,3),_.s=N,E.s*=N):E=X(C,_,0,Oe),_=C.minus(E.times(_)),!_.c[0]&&Oe==1&&(_.s=C.s),_)},q.multipliedBy=q.times=function(_,B){var E,N,C,R,F,v,w,x,S,k,W,$,se,me,Se,ie=this,ee=ie.c,xe=(_=new j(_,B)).c;if(!ee||!xe||!ee[0]||!xe[0])return!ie.s||!_.s||ee&&!ee[0]&&!xe||xe&&!xe[0]&&!ee?_.c=_.e=_.s=null:(_.s*=ie.s,!ee||!xe?_.c=_.e=null:(_.c=[0],_.e=0)),_;for(N=Z(ie.e/y)+Z(_.e/y),_.s*=ie.s,w=ee.length,k=xe.length,w<k&&(se=ee,ee=xe,xe=se,C=w,w=k,k=C),C=w+k,se=[];C--;se.push(0));for(me=A,Se=T,C=k;--C>=0;){for(E=0,W=xe[C]%Se,$=xe[C]/Se|0,F=w,R=C+F;R>C;)x=ee[--F]%Se,S=ee[F]/Se|0,v=$*x+S*W,x=W*x+v%Se*Se+se[R]+E,E=(x/me|0)+(v/Se|0)+$*S,se[R--]=x%me;se[R]=E}return E?++N:se.splice(0,1),bt(_,se,N)},q.negated=function(){var _=new j(this);return _.s=-_.s||null,_},q.plus=function(_,B){var E,N=this,C=N.s;if(_=new j(_,B),B=_.s,!C||!B)return new j(NaN);if(C!=B)return _.s=-B,N.minus(_);var R=N.e/y,F=_.e/y,v=N.c,w=_.c;if(!R||!F){if(!v||!w)return new j(C/0);if(!v[0]||!w[0])return w[0]?_:new j(v[0]?N:C*0)}if(R=Z(R),F=Z(F),v=v.slice(),C=R-F){for(C>0?(F=R,E=w):(C=-C,E=v),E.reverse();C--;E.push(0));E.reverse()}for(C=v.length,B=w.length,C-B<0&&(E=w,w=v,v=E,B=C),C=0;B;)C=(v[--B]=v[B]+w[B]+C)/A|0,v[B]=A===v[B]?0:v[B]%A;return C&&(v=[C].concat(v),++F),bt(_,v,F)},q.precision=q.sd=function(_,B){var E,N,C,R=this;if(_!=null&&_!==!!_)return re(_,1,L),B==null?B=ve:re(B,0,8),Xe(new j(R),_,B);if(!(E=R.c))return null;if(C=E.length-1,N=C*y+1,C=E[C]){for(;C%10==0;C/=10,N--);for(C=E[0];C>=10;C/=10,N++);}return _&&R.e+1>N&&(N=R.e+1),N},q.shiftedBy=function(_){return re(_,-M,M),this.times("1e"+_)},q.squareRoot=q.sqrt=function(){var _,B,E,N,C,R=this,F=R.c,v=R.s,w=R.e,x=Ee+4,S=new j("0.5");if(v!==1||!F||!F[0])return new j(!v||v<0&&(!F||F[0])?NaN:F?R:1/0);if(v=Math.sqrt(+oe(R)),v==0||v==1/0?(B=ne(F),(B.length+w)%2==0&&(B+="0"),v=Math.sqrt(+B),w=Z((w+1)/2)-(w<0||w%2),v==1/0?B="5e"+w:(B=v.toExponential(),B=B.slice(0,B.indexOf("e")+1)+w),E=new j(B)):E=new j(v+""),E.c[0]){for(w=E.e,v=w+x,v<3&&(v=0);;)if(C=E,E=S.times(C.plus(X(R,C,x,1))),ne(C.c).slice(0,v)===(B=ne(E.c)).slice(0,v))if(E.e<w&&--v,B=B.slice(v-3,v+1),B=="9999"||!N&&B=="4999"){if(!N&&(Xe(C,C.e+Ee+2,0),C.times(C).eq(R))){E=C;break}x+=4,v+=4,N=1}else{(!+B||!+B.slice(1)&&B.charAt(0)=="5")&&(Xe(E,E.e+Ee+2,1),_=!E.times(E).eq(R));break}}return Xe(E,E.e+Ee+1,ve,_)},q.toExponential=function(_,B){return _!=null&&(re(_,0,L),_++),I(this,_,B,1)},q.toFixed=function(_,B){return _!=null&&(re(_,0,L),_=_+this.e+1),I(this,_,B)},q.toFormat=function(_,B,E){var N,C=this;if(E==null)_!=null&&B&&typeof B=="object"?(E=B,B=null):_&&typeof _=="object"?(E=_,_=B=null):E=Zt;else if(typeof E!="object")throw Error(s+"Argument not an object: "+E);if(N=C.toFixed(_,B),C.c){var R,F=N.split("."),v=+E.groupSize,w=+E.secondaryGroupSize,x=E.groupSeparator||"",S=F[0],k=F[1],W=C.s<0,$=W?S.slice(1):S,se=$.length;if(w&&(R=v,v=w,w=R,se-=R),v>0&&se>0){for(R=se%v||v,S=$.substr(0,R);R<se;R+=v)S+=x+$.substr(R,v);w>0&&(S+=x+$.slice(R)),W&&(S="-"+S)}N=k?S+(E.decimalSeparator||"")+((w=+E.fractionGroupSize)?k.replace(new RegExp("\\d{"+w+"}\\B","g"),"$&"+(E.fractionGroupSeparator||"")):k):S}return(E.prefix||"")+N+(E.suffix||"")},q.toFraction=function(_){var B,E,N,C,R,F,v,w,x,S,k,W,$=this,se=$.c;if(_!=null&&(v=new j(_),!v.isInteger()&&(v.c||v.s!==1)||v.lt(Be)))throw Error(s+"Argument "+(v.isInteger()?"out of range: ":"not an integer: ")+oe(v));if(!se)return new j($);for(B=new j(Be),x=E=new j(Be),N=w=new j(Be),W=ne(se),R=B.e=W.length-$.e-1,B.c[0]=G[(F=R%y)<0?y+F:F],_=!_||v.comparedTo(B)>0?R>0?B:x:v,F=Ye,Ye=1/0,v=new j(W),w.c[0]=0;S=X(v,B,0,1),C=E.plus(S.times(N)),C.comparedTo(_)!=1;)E=N,N=C,x=w.plus(S.times(C=x)),w=C,B=v.minus(S.times(C=B)),v=C;return C=X(_.minus(E),N,0,1),w=w.plus(C.times(x)),E=E.plus(C.times(N)),w.s=x.s=$.s,R=R*2,k=X(x,N,R,ve).minus($).abs().comparedTo(X(w,E,R,ve).minus($).abs())<1?[x,N]:[w,E],Ye=F,k},q.toNumber=function(){return+oe(this)},q.toPrecision=function(_,B){return _!=null&&re(_,1,L),I(this,_,B,2)},q.toString=function(_){var B,E=this,N=E.s,C=E.e;return C===null?N?(B="Infinity",N<0&&(B="-"+B)):B="NaN":(_==null?B=C<=Te||C>=qe?we(ne(E.c),C):Re(ne(E.c),C,"0"):_===10&&Xt?(E=Xe(new j(E),Ee+C+1,ve),B=Re(ne(E.c),E.e,"0")):(re(_,2,It.length,"Base"),B=ge(Re(ne(E.c),C,"0"),10,_,N,!0)),N<0&&E.c[0]&&(B="-"+B)),B},q.valueOf=q.toJSON=function(){return oe(this)},q._isBigNumber=!0,te!=null&&j.set(te),j}function Z(te){var X=te|0;return te>0||te===X?X:X-1}function ne(te){for(var X,ge,Ae=1,q=te.length,Be=te[0]+"";Ae<q;){for(X=te[Ae++]+"",ge=y-X.length;ge--;X="0"+X);Be+=X}for(q=Be.length;Be.charCodeAt(--q)===48;);return Be.slice(0,q+1||1)}function le(te,X){var ge,Ae,q=te.c,Be=X.c,Ee=te.s,ve=X.s,Te=te.e,qe=X.e;if(!Ee||!ve)return null;if(ge=q&&!q[0],Ae=Be&&!Be[0],ge||Ae)return ge?Ae?0:-ve:Ee;if(Ee!=ve)return Ee;if(ge=Ee<0,Ae=Te==qe,!q||!Be)return Ae?0:!q^ge?1:-1;if(!Ae)return Te>qe^ge?1:-1;for(ve=(Te=q.length)<(qe=Be.length)?Te:qe,Ee=0;Ee<ve;Ee++)if(q[Ee]!=Be[Ee])return q[Ee]>Be[Ee]^ge?1:-1;return Te==qe?0:Te>qe^ge?1:-1}function re(te,X,ge,Ae){if(te<X||te>ge||te!==i(te))throw Error(s+(Ae||"Argument")+(typeof te=="number"?te<X||te>ge?" out of range: ":" not an integer: ":" not a primitive number: ")+String(te))}function be(te){var X=te.c.length-1;return Z(te.e/y)==X&&te.c[X]%2!=0}function we(te,X){return(te.length>1?te.charAt(0)+"."+te.slice(1):te)+(X<0?"e":"e+")+X}function Re(te,X,ge){var Ae,q;if(X<0){for(q=ge+".";++X;q+=ge);te=q+te}else if(Ae=te.length,++X>Ae){for(q=ge,X-=Ae;--X;q+=ge);te+=q}else X<Ae&&(te=te.slice(0,X)+"."+te.slice(X));return te}o=P(),o.default=o.BigNumber=o,typeof define=="function"&&define.amd?define(function(){return o}):typeof Gn<"u"&&Gn.exports?Gn.exports=o:(t||(t=typeof self<"u"&&self?self:window),t.BigNumber=o)})(Ug)});var jg=J((gy,Dg)=>{Dg.exports=function(o,r,n){var i=new o.Uint8Array(n),s=r.pushInt,p=r.pushInt32,A=r.pushInt32Neg,y=r.pushInt64,M=r.pushInt64Neg,G=r.pushFloat,T=r.pushFloatSingle,L=r.pushFloatDouble,P=r.pushTrue,Z=r.pushFalse,ne=r.pushUndefined,le=r.pushNull,re=r.pushInfinity,be=r.pushInfinityNeg,we=r.pushNaN,Re=r.pushNaNNeg,te=r.pushArrayStart,X=r.pushArrayStartFixed,ge=r.pushArrayStartFixed32,Ae=r.pushArrayStartFixed64,q=r.pushObjectStart,Be=r.pushObjectStartFixed,Ee=r.pushObjectStartFixed32,ve=r.pushObjectStartFixed64,Te=r.pushByteString,qe=r.pushByteStringStart,st=r.pushUtf8String,Ye=r.pushUtf8StringStart,lt=r.pushSimpleUnassigned,Oe=r.pushTagStart,at=r.pushTagStart4,Zt=r.pushTagStart8,It=r.pushTagUnassigned,Xt=r.pushBreak,j=o.Math.pow,I=0,Pt=0,bt=0;function Xe(m){for(m=m|0,I=0,Pt=m;(I|0)<(Pt|0)&&(bt=sl[i[I]&255](i[I]|0)|0,!((bt|0)>0)););return bt|0}function oe(m){return m=m|0,((I|0)+(m|0)|0)<(Pt|0)?0:1}function _(m){return m=m|0,i[m|0]<<8|i[m+1|0]|0}function B(m){return m=m|0,i[m|0]<<24|i[m+1|0]<<16|i[m+2|0]<<8|i[m+3|0]|0}function E(m){return m=m|0,s(m|0),I=I+1|0,0}function N(m){return m=m|0,oe(1)|0?1:(s(i[I+1|0]|0),I=I+2|0,0)}function C(m){return m=m|0,oe(2)|0?1:(s(_(I+1|0)|0),I=I+3|0,0)}function R(m){return m=m|0,oe(4)|0?1:(p(_(I+1|0)|0,_(I+3|0)|0),I=I+5|0,0)}function F(m){return m=m|0,oe(8)|0?1:(y(_(I+1|0)|0,_(I+3|0)|0,_(I+5|0)|0,_(I+7|0)|0),I=I+9|0,0)}function v(m){return m=m|0,s(-1-(m-32|0)|0),I=I+1|0,0}function w(m){return m=m|0,oe(1)|0?1:(s(-1-(i[I+1|0]|0)|0),I=I+2|0,0)}function x(m){m=m|0;var de=0;return oe(2)|0?1:(de=_(I+1|0)|0,s(-1-(de|0)|0),I=I+3|0,0)}function S(m){return m=m|0,oe(4)|0?1:(A(_(I+1|0)|0,_(I+3|0)|0),I=I+5|0,0)}function k(m){return m=m|0,oe(8)|0?1:(M(_(I+1|0)|0,_(I+3|0)|0,_(I+5|0)|0,_(I+7|0)|0),I=I+9|0,0)}function W(m){m=m|0;var de=0,he=0,ue=0;return ue=m-64|0,oe(ue|0)|0?1:(de=I+1|0,he=(I+1|0)+(ue|0)|0,Te(de|0,he|0),I=he|0,0)}function $(m){m=m|0;var de=0,he=0,ue=0;return oe(1)|0||(ue=i[I+1|0]|0,de=I+2|0,he=(I+2|0)+(ue|0)|0,oe(ue+1|0)|0)?1:(Te(de|0,he|0),I=he|0,0)}function se(m){m=m|0;var de=0,he=0,ue=0;return oe(2)|0||(ue=_(I+1|0)|0,de=I+3|0,he=(I+3|0)+(ue|0)|0,oe(ue+2|0)|0)?1:(Te(de|0,he|0),I=he|0,0)}function me(m){m=m|0;var de=0,he=0,ue=0;return oe(4)|0||(ue=B(I+1|0)|0,de=I+5|0,he=(I+5|0)+(ue|0)|0,oe(ue+4|0)|0)?1:(Te(de|0,he|0),I=he|0,0)}function Se(m){return m=m|0,1}function ie(m){return m=m|0,qe(),I=I+1|0,0}function ee(m){m=m|0;var de=0,he=0,ue=0;return ue=m-96|0,oe(ue|0)|0?1:(de=I+1|0,he=(I+1|0)+(ue|0)|0,st(de|0,he|0),I=he|0,0)}function xe(m){m=m|0;var de=0,he=0,ue=0;return oe(1)|0||(ue=i[I+1|0]|0,de=I+2|0,he=(I+2|0)+(ue|0)|0,oe(ue+1|0)|0)?1:(st(de|0,he|0),I=he|0,0)}function kt(m){m=m|0;var de=0,he=0,ue=0;return oe(2)|0||(ue=_(I+1|0)|0,de=I+3|0,he=(I+3|0)+(ue|0)|0,oe(ue+2|0)|0)?1:(st(de|0,he|0),I=he|0,0)}function $t(m){m=m|0;var de=0,he=0,ue=0;return oe(4)|0||(ue=B(I+1|0)|0,de=I+5|0,he=(I+5|0)+(ue|0)|0,oe(ue+4|0)|0)?1:(st(de|0,he|0),I=he|0,0)}function eo(m){return m=m|0,1}function gt(m){return m=m|0,Ye(),I=I+1|0,0}function fe(m){return m=m|0,X(m-128|0),I=I+1|0,0}function $e(m){return m=m|0,oe(1)|0?1:(X(i[I+1|0]|0),I=I+2|0,0)}function Qe(m){return m=m|0,oe(2)|0?1:(X(_(I+1|0)|0),I=I+3|0,0)}function Ie(m){return m=m|0,oe(4)|0?1:(ge(_(I+1|0)|0,_(I+3|0)|0),I=I+5|0,0)}function _r(m){return m=m|0,oe(8)|0?1:(Ae(_(I+1|0)|0,_(I+3|0)|0,_(I+5|0)|0,_(I+7|0)|0),I=I+9|0,0)}function br(m){return m=m|0,te(),I=I+1|0,0}function Ce(m){m=m|0;var de=0;return de=m-160|0,oe(de|0)|0?1:(Be(de|0),I=I+1|0,0)}function yr(m){return m=m|0,oe(1)|0?1:(Be(i[I+1|0]|0),I=I+2|0,0)}function Br(m){return m=m|0,oe(2)|0?1:(Be(_(I+1|0)|0),I=I+3|0,0)}function Er(m){return m=m|0,oe(4)|0?1:(Ee(_(I+1|0)|0,_(I+3|0)|0),I=I+5|0,0)}function zu(m){return m=m|0,oe(8)|0?1:(ve(_(I+1|0)|0,_(I+3|0)|0,_(I+5|0)|0,_(I+7|0)|0),I=I+9|0,0)}function Vu(m){return m=m|0,q(),I=I+1|0,0}function To(m){return m=m|0,Oe(m-192|0|0),I=I+1|0,0}function A_(m){return m=m|0,Oe(m|0),I=I+1|0,0}function d_(m){return m=m|0,Oe(m|0),I=I+1|0,0}function f_(m){return m=m|0,Oe(m|0),I=I+1|0,0}function h_(m){return m=m|0,Oe(m|0),I=I+1|0,0}function et(m){return m=m|0,Oe(m-192|0|0),I=I+1|0,0}function __(m){return m=m|0,Oe(m|0),I=I+1|0,0}function b_(m){return m=m|0,Oe(m|0),I=I+1|0,0}function y_(m){return m=m|0,Oe(m|0),I=I+1|0,0}function Yu(m){return m=m|0,oe(1)|0?1:(Oe(i[I+1|0]|0),I=I+2|0,0)}function Lu(m){return m=m|0,oe(2)|0?1:(Oe(_(I+1|0)|0),I=I+3|0,0)}function Ju(m){return m=m|0,oe(4)|0?1:(at(_(I+1|0)|0,_(I+3|0)|0),I=I+5|0,0)}function Ku(m){return m=m|0,oe(8)|0?1:(Zt(_(I+1|0)|0,_(I+3|0)|0,_(I+5|0)|0,_(I+7|0)|0),I=I+9|0,0)}function Ve(m){return m=m|0,lt((m|0)-224|0),I=I+1|0,0}function Zu(m){return m=m|0,Z(),I=I+1|0,0}function Xu(m){return m=m|0,P(),I=I+1|0,0}function $u(m){return m=m|0,le(),I=I+1|0,0}function el(m){return m=m|0,ne(),I=I+1|0,0}function tl(m){return m=m|0,oe(1)|0?1:(lt(i[I+1|0]|0),I=I+2|0,0)}function ol(m){m=m|0;var de=0,he=0,ue=1,tn=0,vr=0,B_=0;return oe(2)|0?1:(de=i[I+1|0]|0,he=i[I+2|0]|0,(de|0)&128&&(ue=-1),tn=+(((de|0)&124)>>2),vr=+(((de|0)&3)<<8|he),+tn==0?G(+(+ue*5960464477539063e-23*+vr)):+tn==31?+ue==1?+vr>0?we():re():+vr>0?Re():be():G(+(+ue*j(2,+(+tn-25))*+(1024+vr))),I=I+3|0,0)}function rl(m){return m=m|0,oe(4)|0?1:(T(i[I+1|0]|0,i[I+2|0]|0,i[I+3|0]|0,i[I+4|0]|0),I=I+5|0,0)}function nl(m){return m=m|0,oe(8)|0?1:(L(i[I+1|0]|0,i[I+2|0]|0,i[I+3|0]|0,i[I+4|0]|0,i[I+5|0]|0,i[I+6|0]|0,i[I+7|0]|0,i[I+8|0]|0),I=I+9|0,0)}function Ne(m){return m=m|0,1}function il(m){return m=m|0,Xt(),I=I+1|0,0}var sl=[E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,N,C,R,F,Ne,Ne,Ne,Ne,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,w,x,S,k,Ne,Ne,Ne,Ne,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,$,se,me,Se,Ne,Ne,Ne,ie,ee,ee,ee,ee,ee,ee,ee,ee,ee,ee,ee,ee,ee,ee,ee,ee,ee,ee,ee,ee,ee,ee,ee,ee,xe,kt,$t,eo,Ne,Ne,Ne,gt,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,$e,Qe,Ie,_r,Ne,Ne,Ne,br,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,yr,Br,Er,zu,Ne,Ne,Ne,Vu,To,To,To,To,To,To,et,et,et,et,et,et,et,et,et,et,et,et,et,et,et,et,et,et,Yu,Lu,Ju,Ku,Ne,Ne,Ne,Ne,Ve,Ve,Ve,Ve,Ve,Ve,Ve,Ve,Ve,Ve,Ve,Ve,Ve,Ve,Ve,Ve,Ve,Ve,Ve,Ve,Zu,Xu,$u,el,tl,ol,rl,nl,Ne,Ne,Ne,il];return{parse:Xe}}});var Ur=J(Bt=>{"use strict";var ss=kr().BigNumber;Bt.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7};Bt.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36};Bt.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31};Bt.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23};Bt.SYMS={NULL:Symbol("null"),UNDEFINED:Symbol("undef"),PARENT:Symbol("parent"),BREAK:Symbol("break"),STREAM:Symbol("stream")};Bt.SHIFT32=Math.pow(2,32);Bt.SHIFT16=Math.pow(2,16);Bt.MAX_SAFE_HIGH=2097151;Bt.NEG_ONE=new ss(-1);Bt.TEN=new ss(10);Bt.TWO=new ss(2);Bt.PARENT={ARRAY:0,OBJECT:1,MAP:2,TAG:3,BYTE_STRING:4,UTF8_STRING:5}});var Pn=J(wt=>{"use strict";var{Buffer:jA}=require("buffer"),Wg=kr().BigNumber,qg=Ur(),Hg=qg.SHIFT32,HA=qg.SHIFT16,WA=2097151;wt.parseHalf=function(o){var r,n,i;return i=o[0]&128?-1:1,r=(o[0]&124)>>2,n=(o[0]&3)<<8|o[1],r?r===31?i*(n?0/0:1/0):i*Math.pow(2,r-25)*(1024+n):i*5960464477539063e-23*n};function qA(t){return t<16?"0"+t.toString(16):t.toString(16)}wt.arrayBufferToBignumber=function(t){let o=t.byteLength,r="";for(let n=0;n<o;n++)r+=qA(t[n]);return new Wg(r,16)};wt.buildMap=t=>{let o=new Map,r=Object.keys(t),n=r.length;for(let i=0;i<n;i++)o.set(r[i],t[r[i]]);return o};wt.buildInt32=(t,o)=>t*HA+o;wt.buildInt64=(t,o,r,n)=>{let i=wt.buildInt32(t,o),s=wt.buildInt32(r,n);return i>WA?new Wg(i).times(Hg).plus(s):i*Hg+s};wt.writeHalf=function(o,r){let n=jA.allocUnsafe(4);n.writeFloatBE(r,0);let i=n.readUInt32BE(0);if((i&8191)!==0)return!1;var s=i>>16&32768;let p=i>>23&255,A=i&8388607;if(p>=113&&p<=142)s+=(p-112<<10)+(A>>13);else if(p>=103&&p<113){if(A&(1<<126-p)-1)return!1;s+=A+8388608>>126-p}else return!1;return o.writeUInt16BE(s,0),!0};wt.keySorter=function(t,o){var r=t[0].byteLength,n=o[0].byteLength;return r>n?1:n>r?-1:t[0].compare(o[0])};wt.isNegativeZero=t=>t===0&&1/t<0;wt.nextPowerOf2=t=>{let o=0;if(t&&!(t&t-1))return t;for(;t!==0;)t>>=1,o+=1;return 1<<o}});var ps=J((uy,zg)=>{"use strict";var gs=Ur(),zA=gs.MT,kn=gs.SIMPLE,as=gs.SYMS,Xo=class{constructor(o){if(typeof o!="number")throw new Error("Invalid Simple type: "+typeof o);if(o<0||o>255||(o|0)!==o)throw new Error("value must be a small positive integer: "+o);this.value=o}toString(){return"simple("+this.value+")"}inspect(){return"simple("+this.value+")"}encodeCBOR(o){return o._pushInt(this.value,zA.SIMPLE_FLOAT)}static isSimple(o){return o instanceof Xo}static decode(o,r){switch(r==null&&(r=!0),o){case kn.FALSE:return!1;case kn.TRUE:return!0;case kn.NULL:return r?null:as.NULL;case kn.UNDEFINED:return r?void 0:as.UNDEFINED;case-1:if(!r)throw new Error("Invalid BREAK");return as.BREAK;default:return new Xo(o)}}};zg.exports=Xo});var cs=J((ly,Vg)=>{"use strict";var $o=class{constructor(o,r,n){if(this.tag=o,this.value=r,this.err=n,typeof this.tag!="number")throw new Error("Invalid tag type ("+typeof this.tag+")");if(this.tag<0||(this.tag|0)!==this.tag)throw new Error("Tag must be a positive integer: "+this.tag)}toString(){return`${this.tag}(${JSON.stringify(this.value)})`}encodeCBOR(o){return o._pushTag(this.tag),o.pushAny(this.value)}convert(o){var r,n;if(n=o!=null?o[this.tag]:void 0,typeof n!="function"&&(n=$o["_tag"+this.tag],typeof n!="function"))return this;try{return n.call($o,this.value)}catch(i){return r=i,this.err=r,this}}};Vg.exports=$o});var ls=J((Ay,Lg)=>{"use strict";var{URL:VA,URLSearchParams:YA,format:LA}=require("url"),Yg="http://localhost",us=class extends VA{constructor(o="",r=Yg){super(o,r),this.path=this.pathname+this.search,this.auth=this.username&&this.password?this.username+":"+this.password:null,this.query=this.search&&this.search.startsWith("?")?this.search.slice(1):null}format(){return this.toString()}};Lg.exports={URLWithLegacySupport:us,URLSearchParams:YA,format:LA,defaultBase:Yg}});var Zg=J((dy,Kg)=>{"use strict";var{URLWithLegacySupport:Jg,format:JA}=ls();Kg.exports=(t,o={},r={},n)=>{let i=o.protocol?o.protocol.replace(":",""):"http";i=(r[i]||n||i)+":";let s;try{s=new Jg(t)}catch{s={}}let p=Object.assign({},o,{protocol:i||s.protocol,host:o.host||s.host});return new Jg(t,JA(p)).toString()}});var As=J((fy,Xg)=>{"use strict";var{URLWithLegacySupport:KA,format:ZA,URLSearchParams:XA,defaultBase:$A}=ls(),ed=Zg();Xg.exports={URL:KA,URLSearchParams:XA,format:ZA,relative:ed,defaultBase:$A}});var ds=J((hy,ep)=>{"use strict";var{Buffer:er}=require("buffer"),$g=xi(),td=kr().BigNumber,od=jg(),ct=Pn(),Me=Ur(),rd=ps(),nd=cs(),{URL:id}=As(),Ao=class{constructor(o){o=o||{},!o.size||o.size<65536?o.size=65536:o.size=ct.nextPowerOf2(o.size),this._heap=new ArrayBuffer(o.size),this._heap8=new Uint8Array(this._heap),this._buffer=er.from(this._heap),this._reset(),this._knownTags=Object.assign({0:r=>new Date(r),1:r=>new Date(r*1e3),2:r=>ct.arrayBufferToBignumber(r),3:r=>Me.NEG_ONE.minus(ct.arrayBufferToBignumber(r)),4:r=>Me.TEN.pow(r[0]).times(r[1]),5:r=>Me.TWO.pow(r[0]).times(r[1]),32:r=>new id(r),35:r=>new RegExp(r)},o.tags),this.parser=od(global,{log:console.log.bind(console),pushInt:this.pushInt.bind(this),pushInt32:this.pushInt32.bind(this),pushInt32Neg:this.pushInt32Neg.bind(this),pushInt64:this.pushInt64.bind(this),pushInt64Neg:this.pushInt64Neg.bind(this),pushFloat:this.pushFloat.bind(this),pushFloatSingle:this.pushFloatSingle.bind(this),pushFloatDouble:this.pushFloatDouble.bind(this),pushTrue:this.pushTrue.bind(this),pushFalse:this.pushFalse.bind(this),pushUndefined:this.pushUndefined.bind(this),pushNull:this.pushNull.bind(this),pushInfinity:this.pushInfinity.bind(this),pushInfinityNeg:this.pushInfinityNeg.bind(this),pushNaN:this.pushNaN.bind(this),pushNaNNeg:this.pushNaNNeg.bind(this),pushArrayStart:this.pushArrayStart.bind(this),pushArrayStartFixed:this.pushArrayStartFixed.bind(this),pushArrayStartFixed32:this.pushArrayStartFixed32.bind(this),pushArrayStartFixed64:this.pushArrayStartFixed64.bind(this),pushObjectStart:this.pushObjectStart.bind(this),pushObjectStartFixed:this.pushObjectStartFixed.bind(this),pushObjectStartFixed32:this.pushObjectStartFixed32.bind(this),pushObjectStartFixed64:this.pushObjectStartFixed64.bind(this),pushByteString:this.pushByteString.bind(this),pushByteStringStart:this.pushByteStringStart.bind(this),pushUtf8String:this.pushUtf8String.bind(this),pushUtf8StringStart:this.pushUtf8StringStart.bind(this),pushSimpleUnassigned:this.pushSimpleUnassigned.bind(this),pushTagUnassigned:this.pushTagUnassigned.bind(this),pushTagStart:this.pushTagStart.bind(this),pushTagStart4:this.pushTagStart4.bind(this),pushTagStart8:this.pushTagStart8.bind(this),pushBreak:this.pushBreak.bind(this)},this._heap)}get _depth(){return this._parents.length}get _currentParent(){return this._parents[this._depth-1]}get _ref(){return this._currentParent.ref}_closeParent(){var o=this._parents.pop();if(o.length>0)throw new Error(`Missing ${o.length} elements`);switch(o.type){case Me.PARENT.TAG:this._push(this.createTag(o.ref[0],o.ref[1]));break;case Me.PARENT.BYTE_STRING:this._push(this.createByteString(o.ref,o.length));break;case Me.PARENT.UTF8_STRING:this._push(this.createUtf8String(o.ref,o.length));break;case Me.PARENT.MAP:if(o.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createMap(o.ref,o.length));break;case Me.PARENT.OBJECT:if(o.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createObject(o.ref,o.length));break;case Me.PARENT.ARRAY:this._push(this.createArray(o.ref,o.length));break;default:break}this._currentParent&&this._currentParent.type===Me.PARENT.TAG&&this._dec()}_dec(){let o=this._currentParent;o.length<0||(o.length--,o.length===0&&this._closeParent())}_push(o,r){let n=this._currentParent;switch(n.values++,n.type){case Me.PARENT.ARRAY:case Me.PARENT.BYTE_STRING:case Me.PARENT.UTF8_STRING:n.length>-1?this._ref[this._ref.length-n.length]=o:this._ref.push(o),this._dec();break;case Me.PARENT.OBJECT:n.tmpKey!=null?(this._ref[n.tmpKey]=o,n.tmpKey=null,this._dec()):(n.tmpKey=o,typeof n.tmpKey!="string"&&(n.type=Me.PARENT.MAP,n.ref=ct.buildMap(n.ref)));break;case Me.PARENT.MAP:n.tmpKey!=null?(this._ref.set(n.tmpKey,o),n.tmpKey=null,this._dec()):n.tmpKey=o;break;case Me.PARENT.TAG:this._ref.push(o),r||this._dec();break;default:throw new Error("Unknown parent type")}}_createParent(o,r,n){this._parents[this._depth]={type:r,length:n,ref:o,values:0,tmpKey:null}}_reset(){this._res=[],this._parents=[{type:Me.PARENT.ARRAY,length:-1,ref:this._res,values:0,tmpKey:null}]}createTag(o,r){let n=this._knownTags[o];return n?n(r):new nd(o,r)}createMap(o,r){return o}createObject(o,r){return o}createArray(o,r){return o}createByteString(o,r){return er.concat(o)}createByteStringFromHeap(o,r){return o===r?er.alloc(0):er.from(this._heap.slice(o,r))}createInt(o){return o}createInt32(o,r){return ct.buildInt32(o,r)}createInt64(o,r,n,i){return ct.buildInt64(o,r,n,i)}createFloat(o){return o}createFloatSingle(o,r,n,i){return $g.read([o,r,n,i],0,!1,23,4)}createFloatDouble(o,r,n,i,s,p,A,y){return $g.read([o,r,n,i,s,p,A,y],0,!1,52,8)}createInt32Neg(o,r){return-1-ct.buildInt32(o,r)}createInt64Neg(o,r,n,i){let s=ct.buildInt32(o,r),p=ct.buildInt32(n,i);return s>Me.MAX_SAFE_HIGH?Me.NEG_ONE.minus(new td(s).times(Me.SHIFT32).plus(p)):-1-(s*Me.SHIFT32+p)}createTrue(){return!0}createFalse(){return!1}createNull(){return null}createUndefined(){}createInfinity(){return 1/0}createInfinityNeg(){return-1/0}createNaN(){return NaN}createNaNNeg(){return NaN}createUtf8String(o,r){return o.join("")}createUtf8StringFromHeap(o,r){return o===r?"":this._buffer.toString("utf8",o,r)}createSimpleUnassigned(o){return new rd(o)}pushInt(o){this._push(this.createInt(o))}pushInt32(o,r){this._push(this.createInt32(o,r))}pushInt64(o,r,n,i){this._push(this.createInt64(o,r,n,i))}pushFloat(o){this._push(this.createFloat(o))}pushFloatSingle(o,r,n,i){this._push(this.createFloatSingle(o,r,n,i))}pushFloatDouble(o,r,n,i,s,p,A,y){this._push(this.createFloatDouble(o,r,n,i,s,p,A,y))}pushInt32Neg(o,r){this._push(this.createInt32Neg(o,r))}pushInt64Neg(o,r,n,i){this._push(this.createInt64Neg(o,r,n,i))}pushTrue(){this._push(this.createTrue())}pushFalse(){this._push(this.createFalse())}pushNull(){this._push(this.createNull())}pushUndefined(){this._push(this.createUndefined())}pushInfinity(){this._push(this.createInfinity())}pushInfinityNeg(){this._push(this.createInfinityNeg())}pushNaN(){this._push(this.createNaN())}pushNaNNeg(){this._push(this.createNaNNeg())}pushArrayStart(){this._createParent([],Me.PARENT.ARRAY,-1)}pushArrayStartFixed(o){this._createArrayStartFixed(o)}pushArrayStartFixed32(o,r){let n=ct.buildInt32(o,r);this._createArrayStartFixed(n)}pushArrayStartFixed64(o,r,n,i){let s=ct.buildInt64(o,r,n,i);this._createArrayStartFixed(s)}pushObjectStart(){this._createObjectStartFixed(-1)}pushObjectStartFixed(o){this._createObjectStartFixed(o)}pushObjectStartFixed32(o,r){let n=ct.buildInt32(o,r);this._createObjectStartFixed(n)}pushObjectStartFixed64(o,r,n,i){let s=ct.buildInt64(o,r,n,i);this._createObjectStartFixed(s)}pushByteStringStart(){this._parents[this._depth]={type:Me.PARENT.BYTE_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushByteString(o,r){this._push(this.createByteStringFromHeap(o,r))}pushUtf8StringStart(){this._parents[this._depth]={type:Me.PARENT.UTF8_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushUtf8String(o,r){this._push(this.createUtf8StringFromHeap(o,r))}pushSimpleUnassigned(o){this._push(this.createSimpleUnassigned(o))}pushTagStart(o){this._parents[this._depth]={type:Me.PARENT.TAG,length:1,ref:[o]}}pushTagStart4(o,r){this.pushTagStart(ct.buildInt32(o,r))}pushTagStart8(o,r,n,i){this.pushTagStart(ct.buildInt64(o,r,n,i))}pushTagUnassigned(o){this._push(this.createTag(o))}pushBreak(){if(this._currentParent.length>-1)throw new Error("Unexpected break");this._closeParent()}_createObjectStartFixed(o){if(o===0){this._push(this.createObject({}));return}this._createParent({},Me.PARENT.OBJECT,o)}_createArrayStartFixed(o){if(o===0){this._push(this.createArray([]));return}this._createParent(new Array(o),Me.PARENT.ARRAY,o)}_decode(o){if(o.byteLength===0)throw new Error("Input too short");this._reset(),this._heap8.set(o);let r=this.parser.parse(o.byteLength);if(this._depth>1){for(;this._currentParent.length===0;)this._closeParent();if(this._depth>1)throw new Error("Undeterminated nesting")}if(r>0)throw new Error("Failed to parse");if(this._res.length===0)throw new Error("No valid result")}decodeFirst(o){return this._decode(o),this._res[0]}decodeAll(o){return this._decode(o),this._res}static decode(o,r){return typeof o=="string"&&(o=er.from(o,r||"hex")),new Ao({size:o.length}).decodeFirst(o)}static decodeAll(o,r){return typeof o=="string"&&(o=er.from(o,r||"hex")),new Ao({size:o.length}).decodeAll(o)}};Ao.decodeFirst=Ao.decode;ep.exports=Ao});var rp=J((_y,op)=>{"use strict";var{Buffer:fs}=require("buffer"),sd=ds(),ad=Pn(),Dr=class extends sd{createTag(o,r){return`${o}(${r})`}createInt(o){return super.createInt(o).toString()}createInt32(o,r){return super.createInt32(o,r).toString()}createInt64(o,r,n,i){return super.createInt64(o,r,n,i).toString()}createInt32Neg(o,r){return super.createInt32Neg(o,r).toString()}createInt64Neg(o,r,n,i){return super.createInt64Neg(o,r,n,i).toString()}createTrue(){return"true"}createFalse(){return"false"}createFloat(o){let r=super.createFloat(o);return ad.isNegativeZero(o)?"-0_1":`${r}_1`}createFloatSingle(o,r,n,i){return`${super.createFloatSingle(o,r,n,i)}_2`}createFloatDouble(o,r,n,i,s,p,A,y){return`${super.createFloatDouble(o,r,n,i,s,p,A,y)}_3`}createByteString(o,r){let n=o.join(", ");return r===-1?`(_ ${n})`:`h'${n}`}createByteStringFromHeap(o,r){return`h'${fs.from(super.createByteStringFromHeap(o,r)).toString("hex")}'`}createInfinity(){return"Infinity_1"}createInfinityNeg(){return"-Infinity_1"}createNaN(){return"NaN_1"}createNaNNeg(){return"-NaN_1"}createNull(){return"null"}createUndefined(){return"undefined"}createSimpleUnassigned(o){return`simple(${o})`}createArray(o,r){let n=super.createArray(o,r);return r===-1?`[_ ${n.join(", ")}]`:`[${n.join(", ")}]`}createMap(o,r){let n=super.createMap(o),i=Array.from(n.keys()).reduce(tp(n),"");return r===-1?`{_ ${i}}`:`{${i}}`}createObject(o,r){let n=super.createObject(o),i=Object.keys(n).reduce(tp(n),"");return r===-1?`{_ ${i}}`:`{${i}}`}createUtf8String(o,r){let n=o.join(", ");return r===-1?`(_ ${n})`:`"${n}"`}createUtf8StringFromHeap(o,r){return`"${fs.from(super.createUtf8StringFromHeap(o,r)).toString("utf8")}"`}static diagnose(o,r){return typeof o=="string"&&(o=fs.from(o,r||"hex")),new Dr().decodeFirst(o)}};op.exports=Dr;function tp(t){return(o,r)=>o?`${o}, ${r}: ${t[r]}`:`${r}: ${t[r]}`}});var gp=J((by,ap)=>{"use strict";var{Buffer:Vt}=require("buffer"),{URL:gd}=As(),_s=kr().BigNumber,hs=Pn(),Je=Ur(),Ft=Je.MT,Un=Je.NUMBYTES,np=Je.SHIFT32,ip=Je.SYMS,tr=Je.TAG,pd=Je.MT.SIMPLE_FLOAT<<5|Je.NUMBYTES.TWO,cd=Je.MT.SIMPLE_FLOAT<<5|Je.NUMBYTES.FOUR,ud=Je.MT.SIMPLE_FLOAT<<5|Je.NUMBYTES.EIGHT,ld=Je.MT.SIMPLE_FLOAT<<5|Je.SIMPLE.TRUE,Ad=Je.MT.SIMPLE_FLOAT<<5|Je.SIMPLE.FALSE,dd=Je.MT.SIMPLE_FLOAT<<5|Je.SIMPLE.UNDEFINED,sp=Je.MT.SIMPLE_FLOAT<<5|Je.SIMPLE.NULL,fd=new _s("0x20000000000000"),hd=Vt.from("f97e00","hex"),_d=Vt.from("f9fc00","hex"),bd=Vt.from("f97c00","hex");function yd(t){return{}.toString.call(t).slice(8,-1)}var or=class{constructor(o){o=o||{},this.streaming=typeof o.stream=="function",this.onData=o.stream,this.semanticTypes=[[gd,this._pushUrl],[_s,this._pushBigNumber]];let r=o.genTypes||[],n=r.length;for(let i=0;i<n;i++)this.addSemanticType(r[i][0],r[i][1]);this._reset()}addSemanticType(o,r){let n=this.semanticTypes.length;for(let i=0;i<n;i++)if(this.semanticTypes[i][0]===o){let p=this.semanticTypes[i][1];return this.semanticTypes[i][1]=r,p}return this.semanticTypes.push([o,r]),null}push(o){return o&&(this.result[this.offset]=o,this.resultMethod[this.offset]=0,this.resultLength[this.offset]=o.length,this.offset++,this.streaming&&this.onData(this.finalize())),!0}pushWrite(o,r,n){return this.result[this.offset]=o,this.resultMethod[this.offset]=r,this.resultLength[this.offset]=n,this.offset++,this.streaming&&this.onData(this.finalize()),!0}_pushUInt8(o){return this.pushWrite(o,1,1)}_pushUInt16BE(o){return this.pushWrite(o,2,2)}_pushUInt32BE(o){return this.pushWrite(o,3,4)}_pushDoubleBE(o){return this.pushWrite(o,4,8)}_pushNaN(){return this.push(hd)}_pushInfinity(o){let r=o<0?_d:bd;return this.push(r)}_pushFloat(o){let r=Vt.allocUnsafe(2);if(hs.writeHalf(r,o)&&hs.parseHalf(r)===o)return this._pushUInt8(pd)&&this.push(r);let n=Vt.allocUnsafe(4);return n.writeFloatBE(o,0),n.readFloatBE(0)===o?this._pushUInt8(cd)&&this.push(n):this._pushUInt8(ud)&&this._pushDoubleBE(o)}_pushInt(o,r,n){let i=r<<5;return o<24?this._pushUInt8(i|o):o<=255?this._pushUInt8(i|Un.ONE)&&this._pushUInt8(o):o<=65535?this._pushUInt8(i|Un.TWO)&&this._pushUInt16BE(o):o<=4294967295?this._pushUInt8(i|Un.FOUR)&&this._pushUInt32BE(o):o<=Number.MAX_SAFE_INTEGER?this._pushUInt8(i|Un.EIGHT)&&this._pushUInt32BE(Math.floor(o/np))&&this._pushUInt32BE(o%np):r===Ft.NEG_INT?this._pushFloat(n):this._pushFloat(o)}_pushIntNum(o){return o<0?this._pushInt(-o-1,Ft.NEG_INT,o):this._pushInt(o,Ft.POS_INT)}_pushNumber(o){switch(!1){case o===o:return this._pushNaN(o);case isFinite(o):return this._pushInfinity(o);case o%1!==0:return this._pushIntNum(o);default:return this._pushFloat(o)}}_pushString(o){let r=Vt.byteLength(o,"utf8");return this._pushInt(r,Ft.UTF8_STRING)&&this.pushWrite(o,5,r)}_pushBoolean(o){return this._pushUInt8(o?ld:Ad)}_pushUndefined(o){return this._pushUInt8(dd)}_pushArray(o,r){let n=r.length;if(!o._pushInt(n,Ft.ARRAY))return!1;for(let i=0;i<n;i++)if(!o.pushAny(r[i]))return!1;return!0}_pushTag(o){return this._pushInt(o,Ft.TAG)}_pushDate(o,r){return o._pushTag(tr.DATE_EPOCH)&&o.pushAny(Math.round(r/1e3))}_pushBuffer(o,r){return o._pushInt(r.length,Ft.BYTE_STRING)&&o.push(r)}_pushNoFilter(o,r){return o._pushBuffer(o,r.slice())}_pushRegexp(o,r){return o._pushTag(tr.REGEXP)&&o.pushAny(r.source)}_pushSet(o,r){if(!o._pushInt(r.size,Ft.ARRAY))return!1;for(let n of r)if(!o.pushAny(n))return!1;return!0}_pushUrl(o,r){return o._pushTag(tr.URI)&&o.pushAny(r.format())}_pushBigint(o){let r=tr.POS_BIGINT;o.isNegative()&&(o=o.negated().minus(1),r=tr.NEG_BIGINT);let n=o.toString(16);n.length%2&&(n="0"+n);let i=Vt.from(n,"hex");return this._pushTag(r)&&this._pushBuffer(this,i)}_pushBigNumber(o,r){if(r.isNaN())return o._pushNaN();if(!r.isFinite())return o._pushInfinity(r.isNegative()?-1/0:1/0);if(r.isInteger())return o._pushBigint(r);if(!(o._pushTag(tr.DECIMAL_FRAC)&&o._pushInt(2,Ft.ARRAY)))return!1;let n=r.decimalPlaces(),i=r.multipliedBy(new _s(10).pow(n));return o._pushIntNum(-n)?i.abs().isLessThan(fd)?o._pushIntNum(i.toNumber()):o._pushBigint(i):!1}_pushMap(o,r){return o._pushInt(r.size,Ft.MAP)?this._pushRawMap(r.size,Array.from(r)):!1}_pushObject(o){if(!o)return this._pushUInt8(sp);for(var r=this.semanticTypes.length,n=0;n<r;n++)if(o instanceof this.semanticTypes[n][0])return this.semanticTypes[n][1].call(o,this,o);var i=o.encodeCBOR;if(typeof i=="function")return i.call(o,this);var s=Object.keys(o),p=s.length;return this._pushInt(p,Ft.MAP)?this._pushRawMap(p,s.map(A=>[A,o[A]])):!1}_pushRawMap(o,r){r=r.map(function(i){return i[0]=or.encode(i[0]),i}).sort(hs.keySorter);for(var n=0;n<o;n++)if(!this.push(r[n][0])||!this.pushAny(r[n][1]))return!1;return!0}write(o){return this.pushAny(o)}pushAny(o){var r=yd(o);switch(r){case"Number":return this._pushNumber(o);case"String":return this._pushString(o);case"Boolean":return this._pushBoolean(o);case"Object":return this._pushObject(o);case"Array":return this._pushArray(this,o);case"Uint8Array":return this._pushBuffer(this,Vt.isBuffer(o)?o:Vt.from(o));case"Null":return this._pushUInt8(sp);case"Undefined":return this._pushUndefined(o);case"Map":return this._pushMap(this,o);case"Set":return this._pushSet(this,o);case"URL":return this._pushUrl(this,o);case"BigNumber":return this._pushBigNumber(this,o);case"Date":return this._pushDate(this,o);case"RegExp":return this._pushRegexp(this,o);case"Symbol":switch(o){case ip.NULL:return this._pushObject(null);case ip.UNDEFINED:return this._pushUndefined(void 0);default:throw new Error("Unknown symbol: "+o.toString())}default:throw new Error("Unknown type: "+typeof o+", "+(o?o.toString():""))}}finalize(){if(this.offset===0)return null;for(var o=this.result,r=this.resultLength,n=this.resultMethod,i=this.offset,s=0,p=0;p<i;p++)s+=r[p];var A=Vt.allocUnsafe(s),y=0,M=0;for(p=0;p<i;p++){switch(M=r[p],n[p]){case 0:o[p].copy(A,y);break;case 1:A.writeUInt8(o[p],y,!0);break;case 2:A.writeUInt16BE(o[p],y,!0);break;case 3:A.writeUInt32BE(o[p],y,!0);break;case 4:A.writeDoubleBE(o[p],y,!0);break;case 5:A.write(o[p],y,M,"utf8");break;default:throw new Error("unkown method")}y+=M}var G=A;return this._reset(),G}_reset(){this.result=[],this.resultMethod=[],this.resultLength=[],this.offset=0}static encode(o){let r=new or;if(!r.pushAny(o))throw new Error("Failed to encode input");return r.finalize()}};ap.exports=or});var bs=J(Ke=>{"use strict";Ke.Diagnose=rp();Ke.Decoder=ds();Ke.Encoder=gp();Ke.Simple=ps();Ke.Tagged=cs();Ke.decodeAll=Ke.Decoder.decodeAll;Ke.decodeFirst=Ke.Decoder.decodeFirst;Ke.diagnose=Ke.Diagnose.diagnose;Ke.encode=Ke.Encoder.encode;Ke.decode=Ke.Decoder.decode;Ke.leveldb={decode:Ke.Decoder.decodeAll,encode:Ke.Encoder.encode,buffer:!0,name:"cbor"}});var Lt=J(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.compare=Yt.fromHex=Yt.toHex=Yt.concat=void 0;function Bd(...t){let o=new Uint8Array(t.reduce((n,i)=>n+i.byteLength,0)),r=0;for(let n of t)o.set(new Uint8Array(n),r),r+=n.byteLength;return o.buffer}Yt.concat=Bd;function Ed(t){return[...new Uint8Array(t)].map(o=>o.toString(16).padStart(2,"0")).join("")}Yt.toHex=Ed;var vd=new RegExp(/^([0-9A-F]{2})*$/i);function md(t){if(!vd.test(t))throw new Error("Invalid hexadecimal string.");let o=[...t].reduce((r,n,i)=>(r[i/2|0]=(r[i/2|0]||"")+n,r),[]).map(r=>Number.parseInt(r,16));return new Uint8Array(o).buffer}Yt.fromHex=md;function Id(t,o){if(t.byteLength!==o.byteLength)return t.byteLength-o.byteLength;let r=new Uint8Array(t),n=new Uint8Array(o);for(let i=0;i<r.length;i++)if(r[i]!==n[i])return r[i]-n[i];return 0}Yt.compare=Id});var Hr=J(Jt=>{"use strict";var Cd=Jt&&Jt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.requestIdOf=Jt.hashValue=Jt.hash=void 0;var pp=Co(),Md=Cd(bs()),wd=Oo(),Dn=Lt();function fo(t){return wd.sha256.create().update(new Uint8Array(t)).arrayBuffer()}Jt.hash=fo;function jr(t){if(t instanceof Md.default.Tagged)return jr(t.value);if(typeof t=="string")return cp(t);if(typeof t=="number")return fo(pp.lebEncode(t));if(t instanceof ArrayBuffer||ArrayBuffer.isView(t))return fo(t);if(Array.isArray(t)){let o=t.map(jr);return fo(Dn.concat(...o))}else{if(t&&typeof t=="object"&&t._isPrincipal)return fo(t.toUint8Array());if(typeof t=="object"&&t!==null&&typeof t.toHash=="function")return jr(t.toHash());if(typeof t=="bigint")return fo(pp.lebEncode(t))}throw Object.assign(new Error(`Attempt to hash a value of unsupported type: ${t}`),{value:t})}Jt.hashValue=jr;var cp=t=>{let o=new TextEncoder().encode(t);return fo(o)};function Rd(t){let n=Object.entries(t).filter(([,p])=>p!==void 0).map(([p,A])=>{let y=cp(p),M=jr(A);return[y,M]}).sort(([p],[A])=>Dn.compare(p,A)),i=Dn.concat(...n.map(p=>Dn.concat(...p)));return fo(i)}Jt.requestIdOf=Rd});var Es=J(Kt=>{"use strict";var Sd=Kt&&Kt.__rest||function(t,o){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&o.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)o.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.createIdentityDescriptor=Kt.AnonymousIdentity=Kt.SignIdentity=void 0;var up=yt(),Nd=Hr(),lp=Lt(),xd=new TextEncoder().encode(`
|
|
14
|
-
ic-request`),ys=class{getPrincipal(){return this._principal||(this._principal=up.Principal.selfAuthenticating(new Uint8Array(this.getPublicKey().toDer()))),this._principal}async transformRequest(o){let{body:r}=o,n=Sd(o,["body"]),i=await Nd.requestIdOf(r);return Object.assign(Object.assign({},n),{body:{content:r,sender_pubkey:this.getPublicKey().toDer(),sender_sig:await this.sign(lp.concat(xd,i))}})}};Kt.SignIdentity=ys;var Bs=class{getPrincipal(){return up.Principal.anonymous()}async transformRequest(o){return Object.assign(Object.assign({},o),{body:{content:o.body}})}};Kt.AnonymousIdentity=Bs;function Fd(t){return"getPublicKey"in t?{type:"PublicKeyIdentity",publicKey:lp.toHex(t.getPublicKey().toDer())}:{type:"AnonymousIdentity"}}Kt.createIdentityDescriptor=Fd});var Is=J(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});var Td=9007199254740992;function io(t,...o){let r=new Uint8Array(t.byteLength+o.reduce((i,s)=>i+s.byteLength,0));r.set(new Uint8Array(t),0);let n=t.byteLength;for(let i of o)r.set(new Uint8Array(i),n),n+=i.byteLength;return r.buffer}function Tt(t,o,r){r=r.replace(/[^0-9a-fA-F]/g,"");let n=2**(o-24);r=r.slice(-n*2).padStart(n*2,"0");let i=[(t<<5)+o].concat(r.match(/../g).map(s=>parseInt(s,16)));return new Uint8Array(i).buffer}function jn(t,o){if(o<24)return new Uint8Array([(t<<5)+o]).buffer;{let r=o<=255?24:o<=65535?25:o<=4294967295?26:27;return Tt(t,r,o.toString(16))}}function Ap(t){let o=[];for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);n<128?o.push(n):n<2048?o.push(192|n>>6,128|n&63):n<55296||n>=57344?o.push(224|n>>12,128|n>>6&63,128|n&63):(r++,n=(n&1023)<<10|t.charCodeAt(r)&1023,o.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|n&63))}return io(new Uint8Array(jn(3,t.length)),new Uint8Array(o))}function Od(t,o){if(t==14277111)return io(new Uint8Array([217,217,247]),o);if(t<24)return io(new Uint8Array([(6<<5)+t]),o);{let r=t<=255?24:t<=65535?25:t<=4294967295?26:27,n=2**(r-24),i=t.toString(16).slice(-n*2).padStart(n*2,"0"),s=[(6<<5)+r].concat(i.match(/../g).map(p=>parseInt(p,16)));return new Uint8Array(s).buffer}}Fe.tagged=Od;function Wr(t){return new Uint8Array(t).buffer}Fe.raw=Wr;function vs(t){if(isNaN(t))throw new RangeError("Invalid number.");t=Math.min(Math.max(0,t),23);let o=[(0<<5)+t];return new Uint8Array(o).buffer}Fe.uSmall=vs;function dp(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,t),255),t=t.toString(16),Tt(0,24,t)}Fe.u8=dp;function fp(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,t),65535),t=t.toString(16),Tt(0,25,t)}Fe.u16=fp;function hp(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,t),4294967295),t=t.toString(16),Tt(0,26,t)}Fe.u32=hp;function ms(t,o){if(typeof t=="string"&&o==16){if(t.match(/[^0-9a-fA-F]/))throw new RangeError("Invalid number.");return Tt(0,27,t)}if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,t),Td),t=t.toString(16),Tt(0,27,t)}Fe.u64=ms;function _p(t){if(isNaN(t))throw new RangeError("Invalid number.");if(t===0)return vs(0);t=Math.min(Math.max(0,-t),24)-1;let o=[(1<<5)+t];return new Uint8Array(o).buffer}Fe.iSmall=_p;function bp(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,-t-1),255),t=t.toString(16),Tt(1,24,t)}Fe.i8=bp;function yp(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,-t-1),65535),t=t.toString(16),Tt(1,25,t)}Fe.i16=yp;function Bp(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,-t-1),4294967295),t=t.toString(16),Tt(1,26,t)}Fe.i32=Bp;function Ep(t,o){if(typeof t=="string"&&o==16){if(t.startsWith("-")?t=t.slice(1):t="0",t.match(/[^0-9a-fA-F]/)||t.length>16)throw new RangeError("Invalid number.");let r=!1,n=t.split("").reduceRight((i,s)=>{if(r)return s+i;let p=parseInt(s,16)-1;return p>=0?(r=!0,p.toString(16)+i):"f"+i},"");return r?Tt(1,27,n):ms(0)}if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,-t-1),9007199254740992),t=t.toString(16),Tt(1,27,t)}Fe.i64=Ep;function Qd(t){return t>=0?t<24?vs(t):t<=255?dp(t):t<=65535?fp(t):t<=4294967295?hp(t):ms(t):t>=-24?_p(t):t>=-255?bp(t):t>=-65535?yp(t):t>=-4294967295?Bp(t):Ep(t)}Fe.number=Qd;function Gd(t){return io(jn(2,t.byteLength),t)}Fe.bytes=Gd;function Pd(t){return Ap(t)}Fe.string=Pd;function kd(t){return io(jn(4,t.length),...t)}Fe.array=kd;function Ud(t,o=!1){t instanceof Map||(t=new Map(Object.entries(t)));let r=Array.from(t.entries());return o&&(r=r.sort(([n],[i])=>n.localeCompare(i))),io(jn(5,t.size),...r.map(([n,i])=>io(Ap(n),i)))}Fe.map=Ud;function Dd(t){let o=new Float32Array([t]);return io(new Uint8Array([(7<<5)+26]),new Uint8Array(o.buffer))}Fe.singleFloat=Dd;function jd(t){let o=new Float64Array([t]);return io(new Uint8Array([(7<<5)+27]),new Uint8Array(o.buffer))}Fe.doubleFloat=jd;function Hd(t){return t?vp():mp()}Fe.bool=Hd;function vp(){return Wr(new Uint8Array([(7<<5)+21]))}Fe.true_=vp;function mp(){return Wr(new Uint8Array([(7<<5)+20]))}Fe.false_=mp;function Wd(){return Wr(new Uint8Array([(7<<5)+22]))}Fe.null_=Wd;function qd(){return Wr(new Uint8Array([(7<<5)+23]))}Fe.undefined_=qd});var Ip=J(ho=>{"use strict";var zd=ho&&ho.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(o[r]=t[r]);return o.default=t,o};Object.defineProperty(ho,"__esModule",{value:!0});var Ot=zd(Is()),Vd=[ArrayBuffer,Uint8Array,Uint16Array,Uint32Array,Int8Array,Int16Array,Int32Array,Float32Array,Float64Array],Hn=class{constructor(o,r=!1){this._serializer=o,this._stable=r,this.name="jsonDefault",this.priority=-100}match(o){return["undefined","boolean","number","string","object"].indexOf(typeof o)!=-1}encode(o){switch(typeof o){case"undefined":return Ot.undefined_();case"boolean":return Ot.bool(o);case"number":return Math.floor(o)===o?Ot.number(o):Ot.doubleFloat(o);case"string":return Ot.string(o);case"object":if(o===null)return Ot.null_();if(Array.isArray(o))return Ot.array(o.map(r=>this._serializer.serializeValue(r)));if(Vd.find(r=>o instanceof r))return Ot.bytes(o.buffer);if(Object.getOwnPropertyNames(o).indexOf("toJSON")!==-1)return this.encode(o.toJSON());if(o instanceof Map){let r=new Map;for(let[n,i]of o.entries())r.set(n,this._serializer.serializeValue(i));return Ot.map(r,this._stable)}else{let r=new Map;for(let[n,i]of Object.entries(o))r.set(n,this._serializer.serializeValue(i));return Ot.map(r,this._stable)}default:throw new Error("Invalid value.")}}};ho.JsonDefaultCborEncoder=Hn;var Wn=class{constructor(){this.name="cborEncoder",this.priority=-90}match(o){return typeof o=="object"&&typeof o.toCBOR=="function"}encode(o){return o.toCBOR()}};ho.ToCborEncoder=Wn;var qn=class{constructor(){this._encoders=new Set}static withDefaultEncoders(o=!1){let r=new this;return r.addEncoder(new Hn(r,o)),r.addEncoder(new Wn),r}removeEncoder(o){for(let r of this._encoders.values())r.name==o&&this._encoders.delete(r)}addEncoder(o){this._encoders.add(o)}getEncoderFor(o){let r=null;for(let n of this._encoders)(!r||n.priority>r.priority)&&n.match(o)&&(r=n);if(r===null)throw new Error("Could not find an encoder for value.");return r}serializeValue(o){return this.getEncoderFor(o).encode(o)}serialize(o){return this.serializeValue(o)}};ho.CborSerializer=qn;var Cs=class extends qn{serialize(o){return Ot.raw(new Uint8Array([...new Uint8Array([217,217,247]),...new Uint8Array(super.serializeValue(o))]))}};ho.SelfDescribeCborSerializer=Cs});var zn=J(Mo=>{"use strict";function Yd(t){for(var o in t)Mo.hasOwnProperty(o)||(Mo[o]=t[o])}var Ld=Mo&&Mo.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(o[r]=t[r]);return o.default=t,o};Object.defineProperty(Mo,"__esModule",{value:!0});Yd(Ip());var Jd=Ld(Is());Mo.value=Jd});var Yn=J(it=>{"use strict";var Kd=it&&it.__createBinding||(Object.create?function(t,o,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,n){n===void 0&&(n=r),t[n]=o[r]}),Zd=it&&it.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),Xd=it&&it.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Kd(o,t,r);return Zd(o,t),o},$d=it&&it.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(it,"__esModule",{value:!0});it.decode=it.encode=it.CborTag=void 0;var ef=$d(bs()),rr=Xd(zn()),tf=zn(),Ms=Lt(),ws=class{get name(){return"Principal"}get priority(){return 0}match(o){return o&&o._isPrincipal===!0}encode(o){return rr.value.bytes(o.toUint8Array())}},Rs=class{get name(){return"Buffer"}get priority(){return 1}match(o){return o instanceof ArrayBuffer||ArrayBuffer.isView(o)}encode(o){return rr.value.bytes(new Uint8Array(o))}},Ss=class{get name(){return"BigInt"}get priority(){return 1}match(o){return typeof o=="bigint"}encode(o){return o>BigInt(0)?rr.value.tagged(2,rr.value.bytes(Ms.fromHex(o.toString(16)))):rr.value.tagged(3,rr.value.bytes(Ms.fromHex((BigInt("-1")*o).toString(16))))}},Vn=tf.SelfDescribeCborSerializer.withDefaultEncoders(!0);Vn.addEncoder(new ws);Vn.addEncoder(new Rs);Vn.addEncoder(new Ss);var Mp;(function(t){t[t.Uint64LittleEndian=71]="Uint64LittleEndian",t[t.Semantic=55799]="Semantic"})(Mp=it.CborTag||(it.CborTag={}));function of(t){return Vn.serialize(t)}it.encode=of;function Cp(t){let o=t.byteLength,r=BigInt(0);for(let n=0;n<o;n++)r=r*BigInt(256)+BigInt(t[n]);return r}var Ns=class extends ef.default.Decoder{createByteString(o){return Ms.concat(...o)}createByteStringFromHeap(o,r){return o===r?new ArrayBuffer(0):new Uint8Array(this._heap.slice(o,r))}};function rf(t){let o=new Uint8Array(t);return new Ns({size:o.byteLength,tags:{2:n=>Cp(n),3:n=>-Cp(n),[Mp.Semantic]:n=>n}}).decodeFirst(o)}it.decode=rf});var qr=J(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.makeNonce=wo.SubmitRequestType=void 0;var nf;(function(t){t.Call="call"})(nf=wo.SubmitRequestType||(wo.SubmitRequestType={}));function sf(){let t=new ArrayBuffer(16),o=new DataView(t),r=BigInt(+Date.now()),n=Math.floor(Math.random()*4294967295),i=Math.floor(Math.random()*4294967295);return o.setBigUint64(0,r),o.setUint32(8,n),o.setUint32(12,i),t}wo.makeNonce=sf});var Jn=J(ht=>{"use strict";var af=ht&&ht.__createBinding||(Object.create?function(t,o,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,n){n===void 0&&(n=r),t[n]=o[r]}),gf=ht&&ht.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),pf=ht&&ht.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&af(o,t,r);return gf(o,t),o};Object.defineProperty(ht,"__esModule",{value:!0});ht.makeExpiryTransform=ht.makeNonceTransform=ht.Expiry=void 0;var cf=Co(),uf=pf(zn()),lf=qr(),Af=BigInt(1e6),df=BigInt(60*1e3),Ln=class{constructor(o){this._value=(BigInt(Date.now())+BigInt(o)-df)*Af}toCBOR(){return uf.value.u64(this._value.toString(16),16)}toHash(){return cf.lebEncode(this._value)}};ht.Expiry=Ln;function ff(t=lf.makeNonce){return async o=>{o.endpoint==="call"&&(o.body.nonce=t())}}ht.makeNonceTransform=ff;function hf(t){return async o=>{o.body.ingress_expiry=new Ln(t)}}ht.makeExpiryTransform=hf});var Np=J(Ze=>{"use strict";var Rp=Ze&&Ze.__createBinding||(Object.create?function(t,o,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,n){n===void 0&&(n=r),t[n]=o[r]}),_f=Ze&&Ze.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),bf=Ze&&Ze.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Rp(o,t,r);return _f(o,t),o},yf=Ze&&Ze.__exportStar||function(t,o){for(var r in t)r!=="default"&&!o.hasOwnProperty(r)&&Rp(o,t,r)};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.HttpAgent=Ze.IdentityInvalidError=Ze.RequestStatusResponseStatus=void 0;var Ro=yt(),Sp=Bn(),Bf=Es(),nr=bf(Yn()),Ef=Hr(),vf=Lt(),Kn=Jn(),wp=qr();yf(Jn(),Ze);var mf=qr();Object.defineProperty(Ze,"makeNonce",{enumerable:!0,get:function(){return mf.makeNonce}});var If;(function(t){t.Received="received",t.Processing="processing",t.Replied="replied",t.Rejected="rejected",t.Unknown="unknown",t.Done="done"})(If=Ze.RequestStatusResponseStatus||(Ze.RequestStatusResponseStatus={}));var xs=5*60*1e3,Cf="308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100814c0e6ec71fab583b08bd81373c255c3c371b2e84863c98a4f1e08b74235d14fb5d9c0cd546d9685f913a0c0b2cc5341583bf4b4392e467db96d65b9bb4cb717112f8472e0d5a4d14505ffd7484b01291091c5f87b98883463f98091a0baaae",Mf="ic0.app",wf=".ic0.app",zr=class extends Sp.AgentError{constructor(o){super(o),this.message=o}},So=class extends Sp.AgentError{constructor(o){super(o),this.message=o}};Ze.IdentityInvalidError=So;function Rf(){let t;if(typeof window<"u")if(window.fetch)t=window.fetch.bind(window);else throw new zr("Fetch implementation was not available. You appear to be in a browser context, but window.fetch was not present.");else if(typeof global<"u")if(global.fetch)t=global.fetch.bind(global);else throw new zr("Fetch implementation was not available. You appear to be in a Node.js context, but global.fetch was not available.");else typeof self<"u"&&self.fetch&&(t=self.fetch.bind(self));if(t)return t;throw new zr("Fetch implementation was not available. Please provide fetch to the HttpAgent constructor, or ensure it is available in the window or global context.")}var Vr=class{constructor(o={}){if(this.rootKey=vf.fromHex(Cf),this._pipeline=[],this._rootKeyFetched=!1,o.source){if(!(o.source instanceof Vr))throw new Error("An Agent's source can only be another HttpAgent");this._pipeline=[...o.source._pipeline],this._identity=o.source._identity,this._fetch=o.source._fetch,this._host=o.source._host,this._credentials=o.source._credentials}else this._fetch=o.fetch||Rf()||fetch.bind(global);if(o.host!==void 0)!o.host.match(/^[a-z]+:/)&&typeof window<"u"?this._host=new URL(window.location.protocol+"//"+o.host):this._host=new URL(o.host);else if(o.source!==void 0)this._host=o.source._host;else{let r=typeof window<"u"?window.location:void 0;if(!r)throw new Error("Must specify a host to connect to.");this._host=new URL(r+"")}if(this._host.hostname.endsWith(wf)&&(this._host.hostname=Mf),o.credentials){let{name:r,password:n}=o.credentials;this._credentials=`${r}${n?":"+n:""}`}this._identity=Promise.resolve(o.identity||new Bf.AnonymousIdentity),o.disableNonce||this.addTransform(Kn.makeNonceTransform(wp.makeNonce))}addTransform(o,r=o.priority||0){let n=this._pipeline.findIndex(i=>(i.priority||0)<r);this._pipeline.splice(n>=0?n:this._pipeline.length,0,Object.assign(o,{priority:r}))}async getPrincipal(){if(!this._identity)throw new So("This identity has expired due this application's security policy. Please refresh your authentication.");return(await this._identity).getPrincipal()}async call(o,r,n){let i=await(n!==void 0?await n:await this._identity);if(!i)throw new So("This identity has expired due this application's security policy. Please refresh your authentication.");let s=Ro.Principal.from(o),p=r.effectiveCanisterId?Ro.Principal.from(r.effectiveCanisterId):s,A=i.getPrincipal()||Ro.Principal.anonymous(),y={request_type:wp.SubmitRequestType.Call,canister_id:s,method_name:r.methodName,arg:r.arg,sender:A,ingress_expiry:new Kn.Expiry(xs)},M=await this._transform({request:{body:null,method:"POST",headers:Object.assign({"Content-Type":"application/cbor"},this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{})},endpoint:"call",body:y});M=await i.transformRequest(M);let G=nr.encode(M.body),[T,L]=await Promise.all([this._fetch(""+new URL(`/api/v2/canister/${p.toText()}/call`,this._host),Object.assign(Object.assign({},M.request),{body:G})),Ef.requestIdOf(y)]);if(!T.ok)throw new Error(`Server returned an error:
|
|
14
|
+
ic-request`),ys=class{getPrincipal(){return this._principal||(this._principal=up.Principal.selfAuthenticating(new Uint8Array(this.getPublicKey().toDer()))),this._principal}async transformRequest(o){let{body:r}=o,n=Sd(o,["body"]),i=await Nd.requestIdOf(r);return Object.assign(Object.assign({},n),{body:{content:r,sender_pubkey:this.getPublicKey().toDer(),sender_sig:await this.sign(lp.concat(xd,i))}})}};Kt.SignIdentity=ys;var Bs=class{getPrincipal(){return up.Principal.anonymous()}async transformRequest(o){return Object.assign(Object.assign({},o),{body:{content:o.body}})}};Kt.AnonymousIdentity=Bs;function Fd(t){return"getPublicKey"in t?{type:"PublicKeyIdentity",publicKey:lp.toHex(t.getPublicKey().toDer())}:{type:"AnonymousIdentity"}}Kt.createIdentityDescriptor=Fd});var Is=J(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});var Td=9007199254740992;function io(t,...o){let r=new Uint8Array(t.byteLength+o.reduce((i,s)=>i+s.byteLength,0));r.set(new Uint8Array(t),0);let n=t.byteLength;for(let i of o)r.set(new Uint8Array(i),n),n+=i.byteLength;return r.buffer}function Tt(t,o,r){r=r.replace(/[^0-9a-fA-F]/g,"");let n=2**(o-24);r=r.slice(-n*2).padStart(n*2,"0");let i=[(t<<5)+o].concat(r.match(/../g).map(s=>parseInt(s,16)));return new Uint8Array(i).buffer}function jn(t,o){if(o<24)return new Uint8Array([(t<<5)+o]).buffer;{let r=o<=255?24:o<=65535?25:o<=4294967295?26:27;return Tt(t,r,o.toString(16))}}function Ap(t){let o=[];for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);n<128?o.push(n):n<2048?o.push(192|n>>6,128|n&63):n<55296||n>=57344?o.push(224|n>>12,128|n>>6&63,128|n&63):(r++,n=(n&1023)<<10|t.charCodeAt(r)&1023,o.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|n&63))}return io(new Uint8Array(jn(3,t.length)),new Uint8Array(o))}function Od(t,o){if(t==14277111)return io(new Uint8Array([217,217,247]),o);if(t<24)return io(new Uint8Array([(6<<5)+t]),o);{let r=t<=255?24:t<=65535?25:t<=4294967295?26:27,n=2**(r-24),i=t.toString(16).slice(-n*2).padStart(n*2,"0"),s=[(6<<5)+r].concat(i.match(/../g).map(p=>parseInt(p,16)));return new Uint8Array(s).buffer}}Fe.tagged=Od;function Wr(t){return new Uint8Array(t).buffer}Fe.raw=Wr;function vs(t){if(isNaN(t))throw new RangeError("Invalid number.");t=Math.min(Math.max(0,t),23);let o=[(0<<5)+t];return new Uint8Array(o).buffer}Fe.uSmall=vs;function dp(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,t),255),t=t.toString(16),Tt(0,24,t)}Fe.u8=dp;function fp(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,t),65535),t=t.toString(16),Tt(0,25,t)}Fe.u16=fp;function hp(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,t),4294967295),t=t.toString(16),Tt(0,26,t)}Fe.u32=hp;function ms(t,o){if(typeof t=="string"&&o==16){if(t.match(/[^0-9a-fA-F]/))throw new RangeError("Invalid number.");return Tt(0,27,t)}if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,t),Td),t=t.toString(16),Tt(0,27,t)}Fe.u64=ms;function _p(t){if(isNaN(t))throw new RangeError("Invalid number.");if(t===0)return vs(0);t=Math.min(Math.max(0,-t),24)-1;let o=[(1<<5)+t];return new Uint8Array(o).buffer}Fe.iSmall=_p;function bp(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,-t-1),255),t=t.toString(16),Tt(1,24,t)}Fe.i8=bp;function yp(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,-t-1),65535),t=t.toString(16),Tt(1,25,t)}Fe.i16=yp;function Bp(t,o){if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,-t-1),4294967295),t=t.toString(16),Tt(1,26,t)}Fe.i32=Bp;function Ep(t,o){if(typeof t=="string"&&o==16){if(t.startsWith("-")?t=t.slice(1):t="0",t.match(/[^0-9a-fA-F]/)||t.length>16)throw new RangeError("Invalid number.");let r=!1,n=t.split("").reduceRight((i,s)=>{if(r)return s+i;let p=parseInt(s,16)-1;return p>=0?(r=!0,p.toString(16)+i):"f"+i},"");return r?Tt(1,27,n):ms(0)}if(t=parseInt(""+t,o),isNaN(t))throw new RangeError("Invalid number.");return t=Math.min(Math.max(0,-t-1),9007199254740992),t=t.toString(16),Tt(1,27,t)}Fe.i64=Ep;function Qd(t){return t>=0?t<24?vs(t):t<=255?dp(t):t<=65535?fp(t):t<=4294967295?hp(t):ms(t):t>=-24?_p(t):t>=-255?bp(t):t>=-65535?yp(t):t>=-4294967295?Bp(t):Ep(t)}Fe.number=Qd;function Gd(t){return io(jn(2,t.byteLength),t)}Fe.bytes=Gd;function Pd(t){return Ap(t)}Fe.string=Pd;function kd(t){return io(jn(4,t.length),...t)}Fe.array=kd;function Ud(t,o=!1){t instanceof Map||(t=new Map(Object.entries(t)));let r=Array.from(t.entries());return o&&(r=r.sort(([n],[i])=>n.localeCompare(i))),io(jn(5,t.size),...r.map(([n,i])=>io(Ap(n),i)))}Fe.map=Ud;function Dd(t){let o=new Float32Array([t]);return io(new Uint8Array([(7<<5)+26]),new Uint8Array(o.buffer))}Fe.singleFloat=Dd;function jd(t){let o=new Float64Array([t]);return io(new Uint8Array([(7<<5)+27]),new Uint8Array(o.buffer))}Fe.doubleFloat=jd;function Hd(t){return t?vp():mp()}Fe.bool=Hd;function vp(){return Wr(new Uint8Array([(7<<5)+21]))}Fe.true_=vp;function mp(){return Wr(new Uint8Array([(7<<5)+20]))}Fe.false_=mp;function Wd(){return Wr(new Uint8Array([(7<<5)+22]))}Fe.null_=Wd;function qd(){return Wr(new Uint8Array([(7<<5)+23]))}Fe.undefined_=qd});var Ip=J(ho=>{"use strict";var zd=ho&&ho.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(o[r]=t[r]);return o.default=t,o};Object.defineProperty(ho,"__esModule",{value:!0});var Ot=zd(Is()),Vd=[ArrayBuffer,Uint8Array,Uint16Array,Uint32Array,Int8Array,Int16Array,Int32Array,Float32Array,Float64Array],Hn=class{constructor(o,r=!1){this._serializer=o,this._stable=r,this.name="jsonDefault",this.priority=-100}match(o){return["undefined","boolean","number","string","object"].indexOf(typeof o)!=-1}encode(o){switch(typeof o){case"undefined":return Ot.undefined_();case"boolean":return Ot.bool(o);case"number":return Math.floor(o)===o?Ot.number(o):Ot.doubleFloat(o);case"string":return Ot.string(o);case"object":if(o===null)return Ot.null_();if(Array.isArray(o))return Ot.array(o.map(r=>this._serializer.serializeValue(r)));if(Vd.find(r=>o instanceof r))return Ot.bytes(o.buffer);if(Object.getOwnPropertyNames(o).indexOf("toJSON")!==-1)return this.encode(o.toJSON());if(o instanceof Map){let r=new Map;for(let[n,i]of o.entries())r.set(n,this._serializer.serializeValue(i));return Ot.map(r,this._stable)}else{let r=new Map;for(let[n,i]of Object.entries(o))r.set(n,this._serializer.serializeValue(i));return Ot.map(r,this._stable)}default:throw new Error("Invalid value.")}}};ho.JsonDefaultCborEncoder=Hn;var Wn=class{constructor(){this.name="cborEncoder",this.priority=-90}match(o){return typeof o=="object"&&typeof o.toCBOR=="function"}encode(o){return o.toCBOR()}};ho.ToCborEncoder=Wn;var qn=class{constructor(){this._encoders=new Set}static withDefaultEncoders(o=!1){let r=new this;return r.addEncoder(new Hn(r,o)),r.addEncoder(new Wn),r}removeEncoder(o){for(let r of this._encoders.values())r.name==o&&this._encoders.delete(r)}addEncoder(o){this._encoders.add(o)}getEncoderFor(o){let r=null;for(let n of this._encoders)(!r||n.priority>r.priority)&&n.match(o)&&(r=n);if(r===null)throw new Error("Could not find an encoder for value.");return r}serializeValue(o){return this.getEncoderFor(o).encode(o)}serialize(o){return this.serializeValue(o)}};ho.CborSerializer=qn;var Cs=class extends qn{serialize(o){return Ot.raw(new Uint8Array([...new Uint8Array([217,217,247]),...new Uint8Array(super.serializeValue(o))]))}};ho.SelfDescribeCborSerializer=Cs});var zn=J(Mo=>{"use strict";function Yd(t){for(var o in t)Mo.hasOwnProperty(o)||(Mo[o]=t[o])}var Ld=Mo&&Mo.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(o[r]=t[r]);return o.default=t,o};Object.defineProperty(Mo,"__esModule",{value:!0});Yd(Ip());var Jd=Ld(Is());Mo.value=Jd});var Yn=J(it=>{"use strict";var Kd=it&&it.__createBinding||(Object.create?function(t,o,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,n){n===void 0&&(n=r),t[n]=o[r]}),Zd=it&&it.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),Xd=it&&it.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Kd(o,t,r);return Zd(o,t),o},$d=it&&it.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(it,"__esModule",{value:!0});it.decode=it.encode=it.CborTag=void 0;var ef=$d(bs()),rr=Xd(zn()),tf=zn(),Ms=Lt(),ws=class{get name(){return"Principal"}get priority(){return 0}match(o){return o&&o._isPrincipal===!0}encode(o){return rr.value.bytes(o.toUint8Array())}},Rs=class{get name(){return"Buffer"}get priority(){return 1}match(o){return o instanceof ArrayBuffer||ArrayBuffer.isView(o)}encode(o){return rr.value.bytes(new Uint8Array(o))}},Ss=class{get name(){return"BigInt"}get priority(){return 1}match(o){return typeof o=="bigint"}encode(o){return o>BigInt(0)?rr.value.tagged(2,rr.value.bytes(Ms.fromHex(o.toString(16)))):rr.value.tagged(3,rr.value.bytes(Ms.fromHex((BigInt("-1")*o).toString(16))))}},Vn=tf.SelfDescribeCborSerializer.withDefaultEncoders(!0);Vn.addEncoder(new ws);Vn.addEncoder(new Rs);Vn.addEncoder(new Ss);var Mp;(function(t){t[t.Uint64LittleEndian=71]="Uint64LittleEndian",t[t.Semantic=55799]="Semantic"})(Mp=it.CborTag||(it.CborTag={}));function of(t){return Vn.serialize(t)}it.encode=of;function Cp(t){let o=t.byteLength,r=BigInt(0);for(let n=0;n<o;n++)r=r*BigInt(256)+BigInt(t[n]);return r}var Ns=class extends ef.default.Decoder{createByteString(o){return Ms.concat(...o)}createByteStringFromHeap(o,r){return o===r?new ArrayBuffer(0):new Uint8Array(this._heap.slice(o,r))}};function rf(t){let o=new Uint8Array(t);return new Ns({size:o.byteLength,tags:{2:n=>Cp(n),3:n=>-Cp(n),[Mp.Semantic]:n=>n}}).decodeFirst(o)}it.decode=rf});var qr=J(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.makeNonce=wo.SubmitRequestType=void 0;var nf;(function(t){t.Call="call"})(nf=wo.SubmitRequestType||(wo.SubmitRequestType={}));function sf(){let t=new ArrayBuffer(16),o=new DataView(t),r=BigInt(+Date.now()),n=Math.floor(Math.random()*4294967295),i=Math.floor(Math.random()*4294967295);if(typeof o.setBigUint64=="function")o.setBigUint64(0,r);else{let s=BigInt(1)<<BigInt(32);o.setUint32(0,Number(r>>BigInt(32))),o.setUint32(4,Number(r%s))}return o.setUint32(8,n),o.setUint32(12,i),t}wo.makeNonce=sf});var Jn=J(ht=>{"use strict";var af=ht&&ht.__createBinding||(Object.create?function(t,o,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,n){n===void 0&&(n=r),t[n]=o[r]}),gf=ht&&ht.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),pf=ht&&ht.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&af(o,t,r);return gf(o,t),o};Object.defineProperty(ht,"__esModule",{value:!0});ht.makeExpiryTransform=ht.makeNonceTransform=ht.Expiry=void 0;var cf=Co(),uf=pf(zn()),lf=qr(),Af=BigInt(1e6),df=BigInt(60*1e3),Ln=class{constructor(o){this._value=(BigInt(Date.now())+BigInt(o)-df)*Af}toCBOR(){return uf.value.u64(this._value.toString(16),16)}toHash(){return cf.lebEncode(this._value)}};ht.Expiry=Ln;function ff(t=lf.makeNonce){return async o=>{o.endpoint==="call"&&(o.body.nonce=t())}}ht.makeNonceTransform=ff;function hf(t){return async o=>{o.body.ingress_expiry=new Ln(t)}}ht.makeExpiryTransform=hf});var Np=J(Ze=>{"use strict";var Rp=Ze&&Ze.__createBinding||(Object.create?function(t,o,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return o[r]}})}:function(t,o,r,n){n===void 0&&(n=r),t[n]=o[r]}),_f=Ze&&Ze.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),bf=Ze&&Ze.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Rp(o,t,r);return _f(o,t),o},yf=Ze&&Ze.__exportStar||function(t,o){for(var r in t)r!=="default"&&!o.hasOwnProperty(r)&&Rp(o,t,r)};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.HttpAgent=Ze.IdentityInvalidError=Ze.RequestStatusResponseStatus=void 0;var Ro=yt(),Sp=Bn(),Bf=Es(),nr=bf(Yn()),Ef=Hr(),vf=Lt(),Kn=Jn(),wp=qr();yf(Jn(),Ze);var mf=qr();Object.defineProperty(Ze,"makeNonce",{enumerable:!0,get:function(){return mf.makeNonce}});var If;(function(t){t.Received="received",t.Processing="processing",t.Replied="replied",t.Rejected="rejected",t.Unknown="unknown",t.Done="done"})(If=Ze.RequestStatusResponseStatus||(Ze.RequestStatusResponseStatus={}));var xs=5*60*1e3,Cf="308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100814c0e6ec71fab583b08bd81373c255c3c371b2e84863c98a4f1e08b74235d14fb5d9c0cd546d9685f913a0c0b2cc5341583bf4b4392e467db96d65b9bb4cb717112f8472e0d5a4d14505ffd7484b01291091c5f87b98883463f98091a0baaae",Mf="ic0.app",wf=".ic0.app",zr=class extends Sp.AgentError{constructor(o){super(o),this.message=o}},So=class extends Sp.AgentError{constructor(o){super(o),this.message=o}};Ze.IdentityInvalidError=So;function Rf(){let t;if(typeof window<"u")if(window.fetch)t=window.fetch.bind(window);else throw new zr("Fetch implementation was not available. You appear to be in a browser context, but window.fetch was not present.");else if(typeof global<"u")if(global.fetch)t=global.fetch.bind(global);else throw new zr("Fetch implementation was not available. You appear to be in a Node.js context, but global.fetch was not available.");else typeof self<"u"&&self.fetch&&(t=self.fetch.bind(self));if(t)return t;throw new zr("Fetch implementation was not available. Please provide fetch to the HttpAgent constructor, or ensure it is available in the window or global context.")}var Vr=class{constructor(o={}){if(this.rootKey=vf.fromHex(Cf),this._pipeline=[],this._rootKeyFetched=!1,o.source){if(!(o.source instanceof Vr))throw new Error("An Agent's source can only be another HttpAgent");this._pipeline=[...o.source._pipeline],this._identity=o.source._identity,this._fetch=o.source._fetch,this._host=o.source._host,this._credentials=o.source._credentials}else this._fetch=o.fetch||Rf()||fetch.bind(global);if(o.host!==void 0)!o.host.match(/^[a-z]+:/)&&typeof window<"u"?this._host=new URL(window.location.protocol+"//"+o.host):this._host=new URL(o.host);else if(o.source!==void 0)this._host=o.source._host;else{let r=typeof window<"u"?window.location:void 0;if(!r)throw new Error("Must specify a host to connect to.");this._host=new URL(r+"")}if(this._host.hostname.endsWith(wf)&&(this._host.hostname=Mf),o.credentials){let{name:r,password:n}=o.credentials;this._credentials=`${r}${n?":"+n:""}`}this._identity=Promise.resolve(o.identity||new Bf.AnonymousIdentity),o.disableNonce||this.addTransform(Kn.makeNonceTransform(wp.makeNonce))}addTransform(o,r=o.priority||0){let n=this._pipeline.findIndex(i=>(i.priority||0)<r);this._pipeline.splice(n>=0?n:this._pipeline.length,0,Object.assign(o,{priority:r}))}async getPrincipal(){if(!this._identity)throw new So("This identity has expired due this application's security policy. Please refresh your authentication.");return(await this._identity).getPrincipal()}async call(o,r,n){let i=await(n!==void 0?await n:await this._identity);if(!i)throw new So("This identity has expired due this application's security policy. Please refresh your authentication.");let s=Ro.Principal.from(o),p=r.effectiveCanisterId?Ro.Principal.from(r.effectiveCanisterId):s,A=i.getPrincipal()||Ro.Principal.anonymous(),y={request_type:wp.SubmitRequestType.Call,canister_id:s,method_name:r.methodName,arg:r.arg,sender:A,ingress_expiry:new Kn.Expiry(xs)},M=await this._transform({request:{body:null,method:"POST",headers:Object.assign({"Content-Type":"application/cbor"},this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{})},endpoint:"call",body:y});M=await i.transformRequest(M);let G=nr.encode(M.body),[T,L]=await Promise.all([this._fetch(""+new URL(`/api/v2/canister/${p.toText()}/call`,this._host),Object.assign(Object.assign({},M.request),{body:G})),Ef.requestIdOf(y)]);if(!T.ok)throw new Error(`Server returned an error:
|
|
15
15
|
Code: ${T.status} (${T.statusText})
|
|
16
16
|
Body: ${await T.text()}
|
|
17
17
|
`);return{requestId:L,response:{ok:T.ok,status:T.status,statusText:T.statusText}}}async query(o,r,n){let i=await(n!==void 0?await n:await this._identity);if(!i)throw new So("This identity has expired due this application's security policy. Please refresh your authentication.");let s=typeof o=="string"?Ro.Principal.fromText(o):o,p=(i==null?void 0:i.getPrincipal())||Ro.Principal.anonymous(),A={request_type:"query",canister_id:s,method_name:r.methodName,arg:r.arg,sender:p,ingress_expiry:new Kn.Expiry(xs)},y=await this._transform({request:{method:"POST",headers:Object.assign({"Content-Type":"application/cbor"},this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{})},endpoint:"read",body:A});y=await(i==null?void 0:i.transformRequest(y));let M=nr.encode(y.body),G=await this._fetch(""+new URL(`/api/v2/canister/${s.toText()}/query`,this._host),Object.assign(Object.assign({},y.request),{body:M}));if(!G.ok)throw new Error(`Server returned an error:
|