var d,e=e||{};e.scope={};e.ASSUME_ES5=!1;e.ASSUME_NO_NATIVE_MAP=!1;e.ASSUME_NO_NATIVE_SET=!1;e.SIMPLE_FROUND_POLYFILL=!1;e.objectCreate=e.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b};e.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(c){}return!1};
e.setPrototypeOf="function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:e.underscoreProtoCanBeSet()?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null;
e.inherits=function(a,b){a.prototype=e.objectCreate(b.prototype);a.prototype.constructor=a;if(e.setPrototypeOf){var c=e.setPrototypeOf;c(a,b)}else for(c in b)if("prototype"!=c)if(Object.defineProperties){var g=Object.getOwnPropertyDescriptor(b,c);g&&Object.defineProperty(a,c,g)}else a[c]=b[c];a.superClass_=b.prototype};e.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var g=a.length,h=0;h<g;h++){var k=a[h];if(b.call(c,k,h,a))return{i:h,v:k}}return{i:-1,v:void 0}};
e.defineProperty=e.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};e.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};e.global=e.getGlobal(this);
e.polyfill=function(a,b){if(b){var c=e.global;a=a.split(".");for(var g=0;g<a.length-1;g++){var h=a[g];h in c||(c[h]={});c=c[h]}a=a[a.length-1];g=c[a];b=b(g);b!=g&&null!=b&&e.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};e.checkStringArgs=function(a){if(null==a)throw new TypeError("The 'this' value for String.prototype.repeat must not be null or undefined");return a+""};
e.polyfill("String.prototype.repeat",function(a){return a?a:function(b){var c=e.checkStringArgs(this);if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var g="";b;)if(b&1&&(g+=c),b>>>=1)c+=c;return g}});var f=f||{};f.global=this||self;f.isDef=function(a){return void 0!==a};f.isString=function(a){return"string"==typeof a};f.isBoolean=function(a){return"boolean"==typeof a};f.isNumber=function(a){return"number"==typeof a};
f.exportPath_=function(a,b,c){a=a.split(".");c=c||f.global;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var g;a.length&&(g=a.shift());)a.length||void 0===b?c=c[g]&&c[g]!==Object.prototype[g]?c[g]:c[g]={}:c[g]=b};f.define=function(a,b){return b};f.FEATURESET_YEAR=2012;f.DEBUG=!0;f.LOCALE="en";f.TRUSTED_SITE=!0;f.STRICT_MODE_COMPATIBLE=!1;f.DISALLOW_TEST_ONLY_CODE=!f.DEBUG;f.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;
f.provide=function(a){if(f.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");f.constructNamespace_(a)};f.constructNamespace_=function(a,b){f.exportPath_(a,b)};f.getScriptNonce=function(){null===f.cspNonce_&&(f.cspNonce_=f.getScriptNonce_());return f.cspNonce_};f.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/;f.cspNonce_=null;
f.getScriptNonce_=function(){var a=f.global.document;return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&f.NONCE_PATTERN_.test(a)?a:""};f.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;
f.module=function(a){if("string"!==typeof a||!a||-1==a.search(f.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!f.isInGoogModuleLoader_())throw Error("Module "+a+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(f.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");
f.moduleLoaderState_.moduleName=a};f.module.get=function(){return null};f.module.getInternal_=function(){return null};f.ModuleType={ES6:"es6",GOOG:"goog"};f.moduleLoaderState_=null;f.isInModuleLoader_=function(){return f.isInGoogModuleLoader_()||f.isInEs6ModuleLoader_()};f.isInGoogModuleLoader_=function(){return!!f.moduleLoaderState_&&f.moduleLoaderState_.type==f.ModuleType.GOOG};
f.isInEs6ModuleLoader_=function(){if(f.moduleLoaderState_&&f.moduleLoaderState_.type==f.ModuleType.ES6)return!0;var a=f.global.$jscomp;return a?"function"!=typeof a.getCurrentModulePath?!1:!!a.getCurrentModulePath():!1};f.module.declareLegacyNamespace=function(){f.moduleLoaderState_.declareLegacyNamespace=!0};
f.declareModuleId=function(a){if(f.moduleLoaderState_)f.moduleLoaderState_.moduleName=a;else{var b=f.global.$jscomp;if(!b||"function"!=typeof b.getCurrentModulePath)throw Error('Module with namespace "'+a+'" has been loaded incorrectly.');b=b.require(b.getCurrentModulePath());f.loadedModules_[a]={exports:b,type:f.ModuleType.ES6,moduleId:a}}};f.setTestOnly=function(a){if(f.DISALLOW_TEST_ONLY_CODE)throw a=a||"",Error("Importing test-only code into non-debug environment"+(a?": "+a:"."));};
f.forwardDeclare=function(){};f.getObjectByName=function(a){a=a.split(".");for(var b=f.global,c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};f.globalize=function(a,b){b=b||f.global;for(var c in a)b[c]=a[c]};f.addDependency=function(){};f.useStrictRequires=!1;f.ENABLE_DEBUG_LOADER=!0;f.logToConsole_=function(a){f.global.console&&f.global.console.error(a)};f.require=function(){};f.requireType=function(){return{}};f.basePath="";f.nullFunction=function(){};
f.abstractMethod=function(){throw Error("unimplemented abstract method");};f.addSingletonGetter=function(a){a.instance_=void 0;a.getInstance=function(){if(a.instance_)return a.instance_;f.DEBUG&&(f.instantiatedSingletons_[f.instantiatedSingletons_.length]=a);return a.instance_=new a}};f.instantiatedSingletons_=[];f.LOAD_MODULE_USING_EVAL=!0;f.SEAL_MODULE_EXPORTS=f.DEBUG;f.loadedModules_={};f.DEPENDENCIES_ENABLED=!1;f.TRANSPILE="detect";f.ASSUME_ES_MODULES_TRANSPILED=!1;f.TRANSPILE_TO_LANGUAGE="";
f.TRANSPILER="transpile.js";f.hasBadLetScoping=null;f.useSafari10Workaround=function(){if(null==f.hasBadLetScoping){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(b){a=!1}f.hasBadLetScoping=a}return f.hasBadLetScoping};f.workaroundSafari10EvalBug=function(a){return"(function(){"+a+"\n;})();\n"};
f.loadModule=function(a){var b=f.moduleLoaderState_;try{f.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:f.ModuleType.GOOG};if(f.isFunction(a))var c=a.call(void 0,{});else if("string"===typeof a)f.useSafari10Workaround()&&(a=f.workaroundSafari10EvalBug(a)),c=f.loadModuleFromSource_.call(void 0,a);else throw Error("Invalid module definition");var g=f.moduleLoaderState_.moduleName;if("string"===typeof g&&g)f.moduleLoaderState_.declareLegacyNamespace?f.constructNamespace_(g,c):f.SEAL_MODULE_EXPORTS&&
Object.seal&&"object"==typeof c&&null!=c&&Object.seal(c),f.loadedModules_[g]={exports:c,type:f.ModuleType.GOOG,moduleId:f.moduleLoaderState_.moduleName};else throw Error('Invalid module name "'+g+'"');}finally{f.moduleLoaderState_=b}};f.loadModuleFromSource_=function(a){eval(a);return{}};f.normalizePath_=function(a){a=a.split("/");for(var b=0;b<a.length;)"."==a[b]?a.splice(b,1):b&&".."==a[b]&&a[b-1]&&".."!=a[b-1]?a.splice(--b,2):b++;return a.join("/")};
f.loadFileSync_=function(a){if(f.global.CLOSURE_LOAD_FILE_SYNC)return f.global.CLOSURE_LOAD_FILE_SYNC(a);try{var b=new f.global.XMLHttpRequest;b.open("get",a,!1);b.send();return 0==b.status||200==b.status?b.responseText:null}catch(c){return null}};
f.transpile_=function(a,b,c){var g=f.global.$jscomp;g||(f.global.$jscomp=g={});var h=g.transpile;if(!h){var k=f.basePath+f.TRANSPILER,m=f.loadFileSync_(k);if(m){(function(){(0,eval)(m+"\n//# sourceURL="+k)}).call(f.global);if(f.global.$gwtExport&&f.global.$gwtExport.$jscomp&&!f.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(f.global.$gwtExport));f.global.$jscomp.transpile=f.global.$gwtExport.$jscomp.transpile;
g=f.global.$jscomp;h=g.transpile}}if(!h){var t=" requires transpilation but no transpiler was found.";t+=' Please add "//javascript/closure:transpiler" as a data dependency to ensure it is included.';h=g.transpile=function(u,w){f.logToConsole_(w+t);return u}}return h(a,b,c)};
f.typeOf=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b};f.isNull=function(a){return null===a};f.isDefAndNotNull=function(a){return null!=a};f.isArray=function(a){return"array"==f.typeOf(a)};f.isArrayLike=function(a){var b=f.typeOf(a);return"array"==b||"object"==b&&"number"==typeof a.length};f.isDateLike=function(a){return f.isObject(a)&&"function"==typeof a.getFullYear};f.isFunction=function(a){return"function"==f.typeOf(a)};
f.isObject=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};f.getUid=function(a){return a[f.UID_PROPERTY_]||(a[f.UID_PROPERTY_]=++f.uidCounter_)};f.hasUid=function(a){return!!a[f.UID_PROPERTY_]};f.removeUid=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(f.UID_PROPERTY_);try{delete a[f.UID_PROPERTY_]}catch(b){}};f.UID_PROPERTY_="closure_uid_"+(1E9*Math.random()>>>0);f.uidCounter_=0;f.getHashCode=f.getUid;f.removeHashCode=f.removeUid;
f.cloneObject=function(a){var b=f.typeOf(a);if("object"==b||"array"==b){if("function"===typeof a.clone)return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=f.cloneObject(a[c]);return b}return a};f.bindNative_=function(a,b,c){return a.call.apply(a.bind,arguments)};
f.bindJs_=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var g=Array.prototype.slice.call(arguments,2);return function(){var h=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(h,g);return a.apply(b,h)}}return function(){return a.apply(b,arguments)}};f.bind=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?f.bind=f.bindNative_:f.bind=f.bindJs_;return f.bind.apply(null,arguments)};
f.partial=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var g=c.slice();g.push.apply(g,arguments);return a.apply(this,g)}};f.mixin=function(a,b){for(var c in b)a[c]=b[c]};f.now=f.TRUSTED_SITE&&Date.now||function(){return+new Date};
f.globalEval=function(a){if(f.global.execScript)f.global.execScript(a,"JavaScript");else if(f.global.eval){if(null==f.evalWorksForGlobals_){try{f.global.eval("var _evalTest_ = 1;")}catch(g){}if("undefined"!=typeof f.global._evalTest_){try{delete f.global._evalTest_}catch(g){}f.evalWorksForGlobals_=!0}else f.evalWorksForGlobals_=!1}if(f.evalWorksForGlobals_)f.global.eval(a);else{var b=f.global.document,c=b.createElement("script");c.type="text/javascript";c.defer=!1;c.appendChild(b.createTextNode(a));
b.head.appendChild(c);b.head.removeChild(c)}}else throw Error("goog.globalEval not available");};f.evalWorksForGlobals_=null;
f.getCssName=function(a,b){if("."==String(a).charAt(0))throw Error('className passed in goog.getCssName must not start with ".". You passed: '+a);var c=function(h){return f.cssNameMapping_[h]||h},g=function(h){h=h.split("-");for(var k=[],m=0;m<h.length;m++)k.push(c(h[m]));return k.join("-")};g=f.cssNameMapping_?"BY_WHOLE"==f.cssNameMappingStyle_?c:g:function(h){return h};a=b?a+"-"+g(b):g(a);return f.global.CLOSURE_CSS_NAME_MAP_FN?f.global.CLOSURE_CSS_NAME_MAP_FN(a):a};
f.setCssNameMapping=function(a,b){f.cssNameMapping_=a;f.cssNameMappingStyle_=b};f.getMsg=function(a,b,c){c&&c.html&&(a=a.replace(/</g,"&lt;"));b&&(a=a.replace(/\{\$([^}]+)}/g,function(g,h){return null!=b&&h in b?b[h]:g}));return a};f.getMsgWithFallback=function(a){return a};f.exportSymbol=function(a,b,c){f.exportPath_(a,b,c)};f.exportProperty=function(a,b,c){a[b]=c};
f.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(g,h,k){for(var m=Array(arguments.length-2),t=2;t<arguments.length;t++)m[t-2]=arguments[t];return b.prototype[h].apply(g,m)}};
f.base=function(a,b,c){var g=arguments.callee.caller;if(f.STRICT_MODE_COMPATIBLE||f.DEBUG&&!g)throw Error("arguments.caller not defined.  goog.base() cannot be used with strict mode code. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");if("undefined"!==typeof g.superClass_){for(var h=Array(arguments.length-1),k=1;k<arguments.length;k++)h[k-1]=arguments[k];return g.superClass_.constructor.apply(a,h)}if("string"!=typeof b&&"symbol"!=typeof b)throw Error("method names provided to goog.base must be a string or a symbol");
h=Array(arguments.length-2);for(k=2;k<arguments.length;k++)h[k-2]=arguments[k];k=!1;for(var m=a.constructor.prototype;m;m=Object.getPrototypeOf(m))if(m[b]===g)k=!0;else if(k)return m[b].apply(a,h);if(a[b]===g)return a.constructor.prototype[b].apply(a,h);throw Error("goog.base called from a method of one name to a method of a different name");};f.scope=function(a){if(f.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");a.call(f.global)};
f.defineClass=function(a,b){var c=b.constructor,g=b.statics;c&&c!=Object.prototype.constructor||(c=function(){throw Error("cannot instantiate an interface (no constructor defined).");});c=f.defineClass.createSealingConstructor_(c,a);a&&f.inherits(c,a);delete b.constructor;delete b.statics;f.defineClass.applyProperties_(c.prototype,b);null!=g&&(g instanceof Function?g(c):f.defineClass.applyProperties_(c,g));return c};f.defineClass.SEAL_CLASS_INSTANCES=f.DEBUG;
f.defineClass.createSealingConstructor_=function(a,b){if(!f.defineClass.SEAL_CLASS_INSTANCES)return a;var c=!f.defineClass.isUnsealable_(b),g=function(){var h=a.apply(this,arguments)||this;h[f.UID_PROPERTY_]=h[f.UID_PROPERTY_];this.constructor===g&&c&&Object.seal instanceof Function&&Object.seal(h);return h};return g};f.defineClass.isUnsealable_=function(a){return a&&a.prototype&&a.prototype[f.UNSEALABLE_CONSTRUCTOR_PROPERTY_]};f.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
f.defineClass.applyProperties_=function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);for(var g=0;g<f.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;g++)c=f.defineClass.OBJECT_PROTOTYPE_FIELDS_[g],Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};f.tagUnsealableClass=function(){};f.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable";f.TRUSTED_TYPES_POLICY_NAME="";f.identity_=function(a){return a};
f.createTrustedTypesPolicy=function(a){var b=null,c=f.global.trustedTypes||f.global.TrustedTypes;if(!c||!c.createPolicy)return b;try{b=c.createPolicy(a,{createHTML:f.identity_,createScript:f.identity_,createScriptURL:f.identity_,createURL:f.identity_})}catch(g){f.logToConsole_(g.message)}return b};f.TRUSTED_TYPES_POLICY_=f.TRUSTED_TYPES_POLICY_NAME?f.createTrustedTypesPolicy(f.TRUSTED_TYPES_POLICY_NAME+"#base"):null;f.craw={};f.craw.AppBackgroundDelegate=function(){};f.craw.AppBackgroundDelegate.impl_=f.craw.AppBackgroundDelegate;f.craw.AppBackgroundDelegate.setImpl=function(){f.craw.AppBackgroundDelegate.impl_=l.BackgroundDelegate};f.craw.AppBackgroundDelegate.createImpl=function(){return new f.craw.AppBackgroundDelegate.impl_};f.craw.AppBackgroundDelegate.prototype.getWindowBounds=function(){};f.craw.WindowConfig=function(a,b){this.url_=a;this.useAuth_=b};f.craw.WindowConfig.prototype.getUrl=function(){return this.url_};f.craw.WindowConfig.prototype.getUseAuth=function(){return this.useAuth_};var l={Errors:{}};l.Errors.ErrorTypes={MINT_JWT_ERROR:"MINT_JWT_ERROR",PURCHASE_CANCELED:"PURCHASE_CANCELED",CONSUME_PURCHASE_ERROR:"CONSUME_PURCHASE_ERROR",GET_PURCHASES_ERROR:"GET_PURCHASES_ERROR",GET_SKU_DETAILS_ERROR:"GET_SKU_DETAILS_ERROR",ENV_NOT_SUPPORTED_ERROR:"ENV_NOT_SUPPORTED_ERROR",TOKEN_MISSING_ERROR:"TOKEN_MISSING_ERROR",INVALID_RESPONSE_ERROR:"INVALID_RESPONSE_ERROR"};l.Errors.getErrorResponse=function(a){return{request:{},response:{errorType:a}}};f.debug={};f.debug.Error=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,f.debug.Error);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};f.inherits(f.debug.Error,Error);f.debug.Error.prototype.name="CustomError";f.dom={};f.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};f.asserts={};f.asserts.ENABLE_ASSERTS=f.DEBUG;f.asserts.AssertionError=function(a,b){f.debug.Error.call(this,f.asserts.subs_(a,b))};f.inherits(f.asserts.AssertionError,f.debug.Error);f.asserts.AssertionError.prototype.name="AssertionError";f.asserts.DEFAULT_ERROR_HANDLER=function(a){throw a;};f.asserts.errorHandler_=f.asserts.DEFAULT_ERROR_HANDLER;f.asserts.subs_=function(a,b){a=a.split("%s");for(var c="",g=a.length-1,h=0;h<g;h++)c+=a[h]+(h<b.length?b[h]:"%s");return c+a[g]};
f.asserts.doAssertFailure_=function(a,b,c,g){var h="Assertion failed";if(c){h+=": "+c;var k=g}else a&&(h+=": "+a,k=b);a=new f.asserts.AssertionError(""+h,k||[]);f.asserts.errorHandler_(a)};f.asserts.setErrorHandler=function(a){f.asserts.ENABLE_ASSERTS&&(f.asserts.errorHandler_=a)};f.asserts.assert=function(a,b,c){f.asserts.ENABLE_ASSERTS&&!a&&f.asserts.doAssertFailure_("",null,b,Array.prototype.slice.call(arguments,2));return a};
f.asserts.assertExists=function(a,b,c){f.asserts.ENABLE_ASSERTS&&null==a&&f.asserts.doAssertFailure_("Expected to exist: %s.",[a],b,Array.prototype.slice.call(arguments,2));return a};f.asserts.fail=function(a,b){f.asserts.ENABLE_ASSERTS&&f.asserts.errorHandler_(new f.asserts.AssertionError("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};
f.asserts.assertNumber=function(a,b,c){f.asserts.ENABLE_ASSERTS&&"number"!==typeof a&&f.asserts.doAssertFailure_("Expected number but got %s: %s.",[f.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};f.asserts.assertString=function(a,b,c){f.asserts.ENABLE_ASSERTS&&"string"!==typeof a&&f.asserts.doAssertFailure_("Expected string but got %s: %s.",[f.typeOf(a),a],b,Array.prototype.slice.call(arguments,2))};
f.asserts.assertFunction=function(a,b,c){f.asserts.ENABLE_ASSERTS&&!f.isFunction(a)&&f.asserts.doAssertFailure_("Expected function but got %s: %s.",[f.typeOf(a),a],b,Array.prototype.slice.call(arguments,2))};f.asserts.assertObject=function(a,b,c){f.asserts.ENABLE_ASSERTS&&!f.isObject(a)&&f.asserts.doAssertFailure_("Expected object but got %s: %s.",[f.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
f.asserts.assertArray=function(a,b,c){f.asserts.ENABLE_ASSERTS&&!f.isArray(a)&&f.asserts.doAssertFailure_("Expected array but got %s: %s.",[f.typeOf(a),a],b,Array.prototype.slice.call(arguments,2))};f.asserts.assertBoolean=function(a,b,c){f.asserts.ENABLE_ASSERTS&&"boolean"!==typeof a&&f.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[f.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
f.asserts.assertElement=function(a,b,c){!f.asserts.ENABLE_ASSERTS||f.isObject(a)&&a.nodeType==f.dom.NodeType.ELEMENT||f.asserts.doAssertFailure_("Expected Element but got %s: %s.",[f.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};f.asserts.assertInstanceof=function(a,b,c,g){!f.asserts.ENABLE_ASSERTS||a instanceof b||f.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[f.asserts.getType_(b),f.asserts.getType_(a)],c,Array.prototype.slice.call(arguments,3));return a};
f.asserts.assertFinite=function(a,b,c){!f.asserts.ENABLE_ASSERTS||"number"==typeof a&&isFinite(a)||f.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[a],b,Array.prototype.slice.call(arguments,2));return a};f.asserts.assertObjectPrototypeIsIntact=function(){for(var a in Object.prototype)f.asserts.fail(a+" should not be enumerable in Object.prototype.")};
f.asserts.getType_=function(a){return a instanceof Function?a.displayName||a.name||"unknown type name":a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):null===a?"null":typeof a};f.array={};f.NATIVE_ARRAY_PROTOTYPES=f.TRUSTED_SITE;f.array.ASSUME_NATIVE_FUNCTIONS=2012<f.FEATURESET_YEAR;f.array.peek=function(a){return a[a.length-1]};f.array.last=f.array.peek;
f.array.indexOf=f.NATIVE_ARRAY_PROTOTYPES&&(f.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(a,b,c){f.asserts.assert(null!=a.length);return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
f.array.lastIndexOf=f.NATIVE_ARRAY_PROTOTYPES&&(f.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(a,b,c){f.asserts.assert(null!=a.length);return Array.prototype.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
f.array.forEach=f.NATIVE_ARRAY_PROTOTYPES&&(f.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(a,b,c){f.asserts.assert(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var g=a.length,h="string"===typeof a?a.split(""):a,k=0;k<g;k++)k in h&&b.call(c,h[k],k,a)};f.array.forEachRight=function(a,b){var c=a.length,g="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in g&&b.call(void 0,g[c],c,a)};
f.array.filter=f.NATIVE_ARRAY_PROTOTYPES&&(f.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(a,b,c){f.asserts.assert(null!=a.length);return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var g=a.length,h=[],k=0,m="string"===typeof a?a.split(""):a,t=0;t<g;t++)if(t in m){var u=m[t];b.call(c,u,t,a)&&(h[k++]=u)}return h};
f.array.map=f.NATIVE_ARRAY_PROTOTYPES&&(f.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(a,b,c){f.asserts.assert(null!=a.length);return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var g=a.length,h=Array(g),k="string"===typeof a?a.split(""):a,m=0;m<g;m++)m in k&&(h[m]=b.call(c,k[m],m,a));return h};
f.array.reduce=f.NATIVE_ARRAY_PROTOTYPES&&(f.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(a,b,c,g){f.asserts.assert(null!=a.length);g&&(b=f.bind(b,g));return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,g){var h=c;f.array.forEach(a,function(k,m){h=b.call(g,h,k,m,a)});return h};
f.array.reduceRight=f.NATIVE_ARRAY_PROTOTYPES&&(f.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(a,b,c,g){f.asserts.assert(null!=a.length);f.asserts.assert(null!=b);g&&(b=f.bind(b,g));return Array.prototype.reduceRight.call(a,b,c)}:function(a,b,c,g){var h=c;f.array.forEachRight(a,function(k,m){h=b.call(g,h,k,m,a)});return h};
f.array.some=f.NATIVE_ARRAY_PROTOTYPES&&(f.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(a,b,c){f.asserts.assert(null!=a.length);return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var g=a.length,h="string"===typeof a?a.split(""):a,k=0;k<g;k++)if(k in h&&b.call(c,h[k],k,a))return!0;return!1};
f.array.every=f.NATIVE_ARRAY_PROTOTYPES&&(f.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(a,b,c){f.asserts.assert(null!=a.length);return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var g=a.length,h="string"===typeof a?a.split(""):a,k=0;k<g;k++)if(k in h&&!b.call(c,h[k],k,a))return!1;return!0};f.array.count=function(a,b,c){var g=0;f.array.forEach(a,function(h,k,m){b.call(c,h,k,m)&&++g},c);return g};
f.array.find=function(a,b,c){b=f.array.findIndex(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};f.array.findIndex=function(a,b,c){for(var g=a.length,h="string"===typeof a?a.split(""):a,k=0;k<g;k++)if(k in h&&b.call(c,h[k],k,a))return k;return-1};f.array.findRight=function(a,b,c){b=f.array.findIndexRight(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
f.array.findIndexRight=function(a,b,c){var g=a.length,h="string"===typeof a?a.split(""):a;for(--g;0<=g;g--)if(g in h&&b.call(c,h[g],g,a))return g;return-1};f.array.contains=function(a,b){return 0<=f.array.indexOf(a,b)};f.array.isEmpty=function(a){return 0==a.length};f.array.clear=function(a){if(!f.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};f.array.insert=function(a,b){f.array.contains(a,b)||a.push(b)};f.array.insertAt=function(a,b,c){f.array.splice(a,c,0,b)};
f.array.insertArrayAt=function(a,b,c){f.partial(f.array.splice,a,c,0).apply(null,b)};f.array.insertBefore=function(a,b,c){var g;2==arguments.length||0>(g=f.array.indexOf(a,c))?a.push(b):f.array.insertAt(a,b,g)};f.array.remove=function(a,b){b=f.array.indexOf(a,b);var c;(c=0<=b)&&f.array.removeAt(a,b);return c};f.array.removeLast=function(a,b){b=f.array.lastIndexOf(a,b);return 0<=b?(f.array.removeAt(a,b),!0):!1};
f.array.removeAt=function(a,b){f.asserts.assert(null!=a.length);return 1==Array.prototype.splice.call(a,b,1).length};f.array.removeIf=function(a,b,c){b=f.array.findIndex(a,b,c);return 0<=b?(f.array.removeAt(a,b),!0):!1};f.array.removeAllIf=function(a,b,c){var g=0;f.array.forEachRight(a,function(h,k){b.call(c,h,k,a)&&f.array.removeAt(a,k)&&g++});return g};f.array.concat=function(a){return Array.prototype.concat.apply([],arguments)};f.array.join=function(a){return Array.prototype.concat.apply([],arguments)};
f.array.toArray=function(a){var b=a.length;if(0<b){for(var c=Array(b),g=0;g<b;g++)c[g]=a[g];return c}return[]};f.array.clone=f.array.toArray;f.array.extend=function(a,b){for(var c=1;c<arguments.length;c++){var g=arguments[c];if(f.isArrayLike(g)){var h=a.length||0,k=g.length||0;a.length=h+k;for(var m=0;m<k;m++)a[h+m]=g[m]}else a.push(g)}};f.array.splice=function(a,b,c,g){f.asserts.assert(null!=a.length);return Array.prototype.splice.apply(a,f.array.slice(arguments,1))};
f.array.slice=function(a,b,c){f.asserts.assert(null!=a.length);return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};f.array.removeDuplicates=function(a,b){b=b||a;for(var c={},g=0,h=0;h<a.length;){var k=a[h++];var m=k;m=f.isObject(m)?"o"+f.getUid(m):(typeof m).charAt(0)+m;Object.prototype.hasOwnProperty.call(c,m)||(c[m]=!0,b[g++]=k)}b.length=g};f.array.binarySearch=function(a,b,c){return f.array.binarySearch_(a,c||f.array.defaultCompare,!1,b)};
f.array.binarySelect=function(a,b,c){return f.array.binarySearch_(a,b,!0,void 0,c)};f.array.binarySearch_=function(a,b,c,g,h){for(var k=0,m=a.length,t;k<m;){var u=k+(m-k>>>1);var w=c?b.call(h,a[u],u,a):b(g,a[u]);0<w?k=u+1:(m=u,t=!w)}return t?k:-k-1};f.array.sort=function(a,b){a.sort(b||f.array.defaultCompare)};
f.array.stableSort=function(a,b){for(var c=Array(a.length),g=0;g<a.length;g++)c[g]={index:g,value:a[g]};var h=b||f.array.defaultCompare;f.array.sort(c,function(k,m){return h(k.value,m.value)||k.index-m.index});for(g=0;g<a.length;g++)a[g]=c[g].value};f.array.sortByKey=function(a,b,c){var g=c||f.array.defaultCompare;f.array.sort(a,function(h,k){return g(b(h),b(k))})};f.array.sortObjectsByKey=function(a,b,c){f.array.sortByKey(a,function(g){return g[b]},c)};
f.array.isSorted=function(a){for(var b=f.array.defaultCompare,c=1;c<a.length;c++)if(0<b(a[c-1],a[c]))return!1;return!0};f.array.equals=function(a,b){if(!f.isArrayLike(a)||!f.isArrayLike(b)||a.length!=b.length)return!1;for(var c=a.length,g=f.array.defaultCompareEquality,h=0;h<c;h++)if(!g(a[h],b[h]))return!1;return!0};
f.array.compare3=function(a,b,c){c=c||f.array.defaultCompare;for(var g=Math.min(a.length,b.length),h=0;h<g;h++){var k=c(a[h],b[h]);if(0!=k)return k}return f.array.defaultCompare(a.length,b.length)};f.array.defaultCompare=function(a,b){return a>b?1:a<b?-1:0};f.array.inverseDefaultCompare=function(a,b){return-f.array.defaultCompare(a,b)};f.array.defaultCompareEquality=function(a,b){return a===b};
f.array.binaryInsert=function(a,b,c){c=f.array.binarySearch(a,b,c);return 0>c?(f.array.insertAt(a,b,-(c+1)),!0):!1};f.array.binaryRemove=function(a,b,c){b=f.array.binarySearch(a,b,c);return 0<=b?f.array.removeAt(a,b):!1};f.array.bucket=function(a,b,c){for(var g={},h=0;h<a.length;h++){var k=a[h],m=b.call(c,k,h,a);void 0!==m&&(g[m]||(g[m]=[])).push(k)}return g};f.array.toObject=function(a,b,c){var g={};f.array.forEach(a,function(h,k){g[b.call(c,h,k,a)]=h});return g};
f.array.range=function(a,b,c){var g=[],h=0,k=a;c=c||1;void 0!==b&&(h=a,k=b);if(0>c*(k-h))return[];if(0<c)for(a=h;a<k;a+=c)g.push(a);else for(a=h;a>k;a+=c)g.push(a);return g};f.array.repeat=function(a,b){for(var c=[],g=0;g<b;g++)c[g]=a;return c};f.array.flatten=function(a){for(var b=[],c=0;c<arguments.length;c++){var g=arguments[c];if(f.isArray(g))for(var h=0;h<g.length;h+=8192){var k=f.array.slice(g,h,h+8192);k=f.array.flatten.apply(null,k);for(var m=0;m<k.length;m++)b.push(k[m])}else b.push(g)}return b};
f.array.rotate=function(a,b){f.asserts.assert(null!=a.length);a.length&&(b%=a.length,0<b?Array.prototype.unshift.apply(a,a.splice(-b,b)):0>b&&Array.prototype.push.apply(a,a.splice(0,-b)));return a};f.array.moveItem=function(a,b,c){f.asserts.assert(0<=b&&b<a.length);f.asserts.assert(0<=c&&c<a.length);b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])};
f.array.zip=function(a){if(!arguments.length)return[];for(var b=[],c=arguments[0].length,g=1;g<arguments.length;g++)arguments[g].length<c&&(c=arguments[g].length);for(g=0;g<c;g++){for(var h=[],k=0;k<arguments.length;k++)h.push(arguments[k][g]);b.push(h)}return b};f.array.shuffle=function(a,b){b=b||Math.random;for(var c=a.length-1;0<c;c--){var g=Math.floor(b()*(c+1)),h=a[c];a[c]=a[g];a[g]=h}};f.array.copyByIndex=function(a,b){var c=[];f.array.forEach(b,function(g){c.push(a[g])});return c};
f.array.concatMap=function(a,b,c){return f.array.concat.apply([],f.array.map(a,b,c))};f.debug.errorcontext={};f.debug.errorcontext.addErrorContext=function(a,b,c){a[f.debug.errorcontext.CONTEXT_KEY_]||(a[f.debug.errorcontext.CONTEXT_KEY_]={});a[f.debug.errorcontext.CONTEXT_KEY_][b]=c};f.debug.errorcontext.getErrorContext=function(a){return a[f.debug.errorcontext.CONTEXT_KEY_]||{}};f.debug.errorcontext.CONTEXT_KEY_="__closure__error__context__984382";f.string={};f.string.internal={};f.string.internal.startsWith=function(a,b){return 0==a.lastIndexOf(b,0)};f.string.internal.endsWith=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};f.string.internal.caseInsensitiveStartsWith=function(a,b){return 0==f.string.internal.caseInsensitiveCompare(b,a.substr(0,b.length))};f.string.internal.caseInsensitiveEndsWith=function(a,b){return 0==f.string.internal.caseInsensitiveCompare(b,a.substr(a.length-b.length,b.length))};
f.string.internal.caseInsensitiveEquals=function(a,b){return a.toLowerCase()==b.toLowerCase()};f.string.internal.isEmptyOrWhitespace=function(a){return/^[\s\xa0]*$/.test(a)};f.string.internal.trim=f.TRUSTED_SITE&&String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};f.string.internal.caseInsensitiveCompare=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1};
f.string.internal.newLineToBr=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")};
f.string.internal.htmlEscape=function(a,b){if(b)a=a.replace(f.string.internal.AMP_RE_,"&amp;").replace(f.string.internal.LT_RE_,"&lt;").replace(f.string.internal.GT_RE_,"&gt;").replace(f.string.internal.QUOT_RE_,"&quot;").replace(f.string.internal.SINGLE_QUOTE_RE_,"&#39;").replace(f.string.internal.NULL_RE_,"&#0;");else{if(!f.string.internal.ALL_RE_.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(f.string.internal.AMP_RE_,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(f.string.internal.LT_RE_,"&lt;"));
-1!=a.indexOf(">")&&(a=a.replace(f.string.internal.GT_RE_,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(f.string.internal.QUOT_RE_,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(f.string.internal.SINGLE_QUOTE_RE_,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(f.string.internal.NULL_RE_,"&#0;"))}return a};f.string.internal.AMP_RE_=/&/g;f.string.internal.LT_RE_=/</g;f.string.internal.GT_RE_=/>/g;f.string.internal.QUOT_RE_=/"/g;f.string.internal.SINGLE_QUOTE_RE_=/'/g;f.string.internal.NULL_RE_=/\x00/g;
f.string.internal.ALL_RE_=/[\x00&<>"']/;f.string.internal.whitespaceEscape=function(a){return f.string.internal.newLineToBr(a.replace(/  /g," &#160;"),void 0)};f.string.internal.contains=function(a,b){return-1!=a.indexOf(b)};f.string.internal.caseInsensitiveContains=function(a,b){return f.string.internal.contains(a.toLowerCase(),b.toLowerCase())};
f.string.internal.compareVersions=function(a,b){var c=0;a=f.string.internal.trim(String(a)).split(".");b=f.string.internal.trim(String(b)).split(".");for(var g=Math.max(a.length,b.length),h=0;0==c&&h<g;h++){var k=a[h]||"",m=b[h]||"";do{k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];if(0==k[0].length&&0==m[0].length)break;c=f.string.internal.compareElements_(0==k[1].length?0:parseInt(k[1],10),0==m[1].length?0:parseInt(m[1],10))||f.string.internal.compareElements_(0==
k[2].length,0==m[2].length)||f.string.internal.compareElements_(k[2],m[2]);k=k[3];m=m[3]}while(0==c)}return c};f.string.internal.compareElements_=function(a,b){return a<b?-1:a>b?1:0};f.labs={};f.labs.userAgent={};f.labs.userAgent.util={};f.labs.userAgent.util.getNativeUserAgentString_=function(){var a=f.labs.userAgent.util.getNavigator_();return a&&(a=a.userAgent)?a:""};f.labs.userAgent.util.getNavigator_=function(){return f.global.navigator};f.labs.userAgent.util.userAgent_=f.labs.userAgent.util.getNativeUserAgentString_();f.labs.userAgent.util.setUserAgent=function(a){f.labs.userAgent.util.userAgent_=a||f.labs.userAgent.util.getNativeUserAgentString_()};
f.labs.userAgent.util.getUserAgent=function(){return f.labs.userAgent.util.userAgent_};f.labs.userAgent.util.matchUserAgent=function(a){return f.string.internal.contains(f.labs.userAgent.util.getUserAgent(),a)};f.labs.userAgent.util.matchUserAgentIgnoreCase=function(a){return f.string.internal.caseInsensitiveContains(f.labs.userAgent.util.getUserAgent(),a)};
f.labs.userAgent.util.extractVersionTuples=function(a){for(var b=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,c=[],g;g=b.exec(a);)c.push([g[1],g[2],g[3]||void 0]);return c};f.object={};f.object.is=function(a,b){return a===b?0!==a||1/a===1/b:a!==a&&b!==b};f.object.forEach=function(a,b,c){for(var g in a)b.call(c,a[g],g,a)};f.object.filter=function(a,b,c){var g={},h;for(h in a)b.call(c,a[h],h,a)&&(g[h]=a[h]);return g};f.object.map=function(a,b,c){var g={},h;for(h in a)g[h]=b.call(c,a[h],h,a);return g};f.object.some=function(a,b,c){for(var g in a)if(b.call(c,a[g],g,a))return!0;return!1};f.object.every=function(a,b,c){for(var g in a)if(!b.call(c,a[g],g,a))return!1;return!0};
f.object.getCount=function(a){var b=0,c;for(c in a)b++;return b};f.object.getAnyKey=function(a){for(var b in a)return b};f.object.getAnyValue=function(a){for(var b in a)return a[b]};f.object.contains=function(a,b){return f.object.containsValue(a,b)};f.object.getValues=function(a){var b=[],c=0,g;for(g in a)b[c++]=a[g];return b};f.object.getKeys=function(a){var b=[],c=0,g;for(g in a)b[c++]=g;return b};
f.object.getValueByKeys=function(a,b){var c=f.isArrayLike(b),g=c?b:arguments;for(c=c?0:1;c<g.length;c++){if(null==a)return;a=a[g[c]]}return a};f.object.containsKey=function(a,b){return null!==a&&b in a};f.object.containsValue=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};f.object.findKey=function(a,b,c){for(var g in a)if(b.call(c,a[g],g,a))return g};f.object.findValue=function(a,b,c){return(b=f.object.findKey(a,b,c))&&a[b]};f.object.isEmpty=function(a){for(var b in a)return!1;return!0};
f.object.clear=function(a){for(var b in a)delete a[b]};f.object.remove=function(a,b){var c;(c=b in a)&&delete a[b];return c};f.object.add=function(a,b,c){if(null!==a&&b in a)throw Error('The object already contains the key "'+b+'"');f.object.set(a,b,c)};f.object.get=function(a,b,c){return null!==a&&b in a?a[b]:c};f.object.set=function(a,b,c){a[b]=c};f.object.setIfUndefined=function(a,b,c){return b in a?a[b]:a[b]=c};
f.object.setWithReturnValueIfNotSet=function(a,b,c){if(b in a)return a[b];c=c();return a[b]=c};f.object.equals=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var g in b)if(!(g in a))return!1;return!0};f.object.clone=function(a){var b={},c;for(c in a)b[c]=a[c];return b};f.object.unsafeClone=function(a){var b=f.typeOf(a);if("object"==b||"array"==b){if(f.isFunction(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=f.object.unsafeClone(a[c]);return b}return a};
f.object.transpose=function(a){var b={},c;for(c in a)b[a[c]]=c;return b};f.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");f.object.extend=function(a,b){for(var c,g,h=1;h<arguments.length;h++){g=arguments[h];for(c in g)a[c]=g[c];for(var k=0;k<f.object.PROTOTYPE_FIELDS_.length;k++)c=f.object.PROTOTYPE_FIELDS_[k],Object.prototype.hasOwnProperty.call(g,c)&&(a[c]=g[c])}};
f.object.create=function(a){var b=arguments.length;if(1==b&&f.isArray(arguments[0]))return f.object.create.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},g=0;g<b;g+=2)c[arguments[g]]=arguments[g+1];return c};f.object.createSet=function(a){var b=arguments.length;if(1==b&&f.isArray(arguments[0]))return f.object.createSet.apply(null,arguments[0]);for(var c={},g=0;g<b;g++)c[arguments[g]]=!0;return c};
f.object.createImmutableView=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};f.object.isImmutableView=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};
f.object.getAllPropertyNames=function(a,b,c){if(!a)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return f.object.getKeys(a);for(var g={};a&&(a!==Object.prototype||b)&&(a!==Function.prototype||c);){for(var h=Object.getOwnPropertyNames(a),k=0;k<h.length;k++)g[h[k]]=!0;a=Object.getPrototypeOf(a)}return f.object.getKeys(g)};f.object.getSuperClass=function(a){return(a=Object.getPrototypeOf(a.prototype))&&a.constructor};f.labs.userAgent.browser={};f.labs.userAgent.browser.matchOpera_=function(){return f.labs.userAgent.util.matchUserAgent("Opera")};f.labs.userAgent.browser.matchIE_=function(){return f.labs.userAgent.util.matchUserAgent("Trident")||f.labs.userAgent.util.matchUserAgent("MSIE")};f.labs.userAgent.browser.matchEdgeHtml_=function(){return f.labs.userAgent.util.matchUserAgent("Edge")};f.labs.userAgent.browser.matchEdgeChromium_=function(){return f.labs.userAgent.util.matchUserAgent("Edg/")};
f.labs.userAgent.browser.matchOperaChromium_=function(){return f.labs.userAgent.util.matchUserAgent("OPR")};f.labs.userAgent.browser.matchFirefox_=function(){return f.labs.userAgent.util.matchUserAgent("Firefox")||f.labs.userAgent.util.matchUserAgent("FxiOS")};
f.labs.userAgent.browser.matchSafari_=function(){return f.labs.userAgent.util.matchUserAgent("Safari")&&!(f.labs.userAgent.browser.matchChrome_()||f.labs.userAgent.browser.matchCoast_()||f.labs.userAgent.browser.matchOpera_()||f.labs.userAgent.browser.matchEdgeHtml_()||f.labs.userAgent.browser.matchEdgeChromium_()||f.labs.userAgent.browser.matchOperaChromium_()||f.labs.userAgent.browser.matchFirefox_()||f.labs.userAgent.browser.isSilk()||f.labs.userAgent.util.matchUserAgent("Android"))};
f.labs.userAgent.browser.matchCoast_=function(){return f.labs.userAgent.util.matchUserAgent("Coast")};f.labs.userAgent.browser.matchIosWebview_=function(){return(f.labs.userAgent.util.matchUserAgent("iPad")||f.labs.userAgent.util.matchUserAgent("iPhone"))&&!f.labs.userAgent.browser.matchSafari_()&&!f.labs.userAgent.browser.matchChrome_()&&!f.labs.userAgent.browser.matchCoast_()&&!f.labs.userAgent.browser.matchFirefox_()&&f.labs.userAgent.util.matchUserAgent("AppleWebKit")};
f.labs.userAgent.browser.matchChrome_=function(){return(f.labs.userAgent.util.matchUserAgent("Chrome")||f.labs.userAgent.util.matchUserAgent("CriOS"))&&!f.labs.userAgent.browser.matchEdgeHtml_()};f.labs.userAgent.browser.matchAndroidBrowser_=function(){return f.labs.userAgent.util.matchUserAgent("Android")&&!(f.labs.userAgent.browser.isChrome()||f.labs.userAgent.browser.isFirefox()||f.labs.userAgent.browser.isOpera()||f.labs.userAgent.browser.isSilk())};f.labs.userAgent.browser.isOpera=f.labs.userAgent.browser.matchOpera_;
f.labs.userAgent.browser.isIE=f.labs.userAgent.browser.matchIE_;f.labs.userAgent.browser.isEdge=f.labs.userAgent.browser.matchEdgeHtml_;f.labs.userAgent.browser.isEdgeChromium=f.labs.userAgent.browser.matchEdgeChromium_;f.labs.userAgent.browser.isOperaChromium=f.labs.userAgent.browser.matchOperaChromium_;f.labs.userAgent.browser.isFirefox=f.labs.userAgent.browser.matchFirefox_;f.labs.userAgent.browser.isSafari=f.labs.userAgent.browser.matchSafari_;f.labs.userAgent.browser.isCoast=f.labs.userAgent.browser.matchCoast_;
f.labs.userAgent.browser.isIosWebview=f.labs.userAgent.browser.matchIosWebview_;f.labs.userAgent.browser.isChrome=f.labs.userAgent.browser.matchChrome_;f.labs.userAgent.browser.isAndroidBrowser=f.labs.userAgent.browser.matchAndroidBrowser_;f.labs.userAgent.browser.isSilk=function(){return f.labs.userAgent.util.matchUserAgent("Silk")};
f.labs.userAgent.browser.getVersion=function(){function a(h){h=f.array.find(h,g);return c[h]||""}var b=f.labs.userAgent.util.getUserAgent();if(f.labs.userAgent.browser.isIE())return f.labs.userAgent.browser.getIEVersion_(b);b=f.labs.userAgent.util.extractVersionTuples(b);var c={};f.array.forEach(b,function(h){c[h[0]]=h[1]});var g=f.partial(f.object.containsKey,c);return f.labs.userAgent.browser.isOpera()?a(["Version","Opera"]):f.labs.userAgent.browser.isEdge()?a(["Edge"]):f.labs.userAgent.browser.isEdgeChromium()?
a(["Edg"]):f.labs.userAgent.browser.isChrome()?a(["Chrome","CriOS"]):(b=b[2])&&b[1]||""};f.labs.userAgent.browser.isVersionOrHigher=function(a){return 0<=f.string.internal.compareVersions(f.labs.userAgent.browser.getVersion(),a)};
f.labs.userAgent.browser.getIEVersion_=function(a){var b=/rv: *([\d\.]*)/.exec(a);if(b&&b[1])return b[1];b="";var c=/MSIE +([\d\.]+)/.exec(a);if(c&&c[1])if(a=/Trident\/(\d.\d)/.exec(a),"7.0"==c[1])if(a&&a[1])switch(a[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=c[1];return b};f.dom.asserts={};f.dom.asserts.assertIsLocation=function(a){if(f.asserts.ENABLE_ASSERTS){var b=f.dom.asserts.getWindow_(a);b&&(!a||!(a instanceof b.Location)&&a instanceof b.Element)&&f.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",f.dom.asserts.debugStringForType_(a))}};
f.dom.asserts.assertIsElementType_=function(a,b){if(f.asserts.ENABLE_ASSERTS){var c=f.dom.asserts.getWindow_(a);c&&"undefined"!=typeof c[b]&&(a&&(a instanceof c[b]||!(a instanceof c.Location||a instanceof c.Element))||f.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",b,f.dom.asserts.debugStringForType_(a)))}return a};f.dom.asserts.assertIsHTMLAnchorElement=function(a){f.dom.asserts.assertIsElementType_(a,"HTMLAnchorElement")};
f.dom.asserts.assertIsHTMLButtonElement=function(a){return f.dom.asserts.assertIsElementType_(a,"HTMLButtonElement")};f.dom.asserts.assertIsHTMLLinkElement=function(a){f.dom.asserts.assertIsElementType_(a,"HTMLLinkElement")};f.dom.asserts.assertIsHTMLImageElement=function(a){f.dom.asserts.assertIsElementType_(a,"HTMLImageElement")};f.dom.asserts.assertIsHTMLAudioElement=function(a){f.dom.asserts.assertIsElementType_(a,"HTMLAudioElement")};
f.dom.asserts.assertIsHTMLVideoElement=function(a){f.dom.asserts.assertIsElementType_(a,"HTMLVideoElement")};f.dom.asserts.assertIsHTMLInputElement=function(a){return f.dom.asserts.assertIsElementType_(a,"HTMLInputElement")};f.dom.asserts.assertIsHTMLTextAreaElement=function(a){return f.dom.asserts.assertIsElementType_(a,"HTMLTextAreaElement")};f.dom.asserts.assertIsHTMLCanvasElement=function(a){return f.dom.asserts.assertIsElementType_(a,"HTMLCanvasElement")};
f.dom.asserts.assertIsHTMLEmbedElement=function(a){f.dom.asserts.assertIsElementType_(a,"HTMLEmbedElement")};f.dom.asserts.assertIsHTMLFormElement=function(a){return f.dom.asserts.assertIsElementType_(a,"HTMLFormElement")};f.dom.asserts.assertIsHTMLFrameElement=function(a){f.dom.asserts.assertIsElementType_(a,"HTMLFrameElement")};f.dom.asserts.assertIsHTMLIFrameElement=function(a){f.dom.asserts.assertIsElementType_(a,"HTMLIFrameElement")};
f.dom.asserts.assertIsHTMLObjectElement=function(a){f.dom.asserts.assertIsElementType_(a,"HTMLObjectElement")};f.dom.asserts.assertIsHTMLScriptElement=function(a){f.dom.asserts.assertIsElementType_(a,"HTMLScriptElement")};f.dom.asserts.debugStringForType_=function(a){if(f.isObject(a))try{return a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a)}catch(b){return"<object could not be stringified>"}else return void 0===a?"undefined":null===a?"null":typeof a};
f.dom.asserts.getWindow_=function(a){try{var b=a&&a.ownerDocument,c=b&&(b.defaultView||b.parentWindow);c=c||f.global;if(c.Element&&c.Location)return c}catch(g){}return null};f.functions={};f.functions.constant=function(a){return function(){return a}};f.functions.FALSE=function(){return!1};f.functions.TRUE=function(){return!0};f.functions.NULL=function(){return null};f.functions.identity=function(a){return a};f.functions.error=function(a){return function(){throw Error(a);}};f.functions.fail=function(){};f.functions.lock=function(a,b){b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};f.functions.nth=function(a){return function(){return arguments[a]}};
f.functions.partialRight=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var g=Array.prototype.slice.call(arguments);g.push.apply(g,c);return a.apply(this,g)}};f.functions.withReturnValue=function(a,b){return f.functions.sequence(a,f.functions.constant(b))};f.functions.equalTo=function(a,b){return function(c){return b?a==c:a===c}};
f.functions.compose=function(a,b){var c=arguments,g=c.length;return function(){var h;g&&(h=c[g-1].apply(this,arguments));for(var k=g-2;0<=k;k--)h=c[k].call(this,h);return h}};f.functions.sequence=function(a){var b=arguments,c=b.length;return function(){for(var g,h=0;h<c;h++)g=b[h].apply(this,arguments);return g}};f.functions.and=function(a){var b=arguments,c=b.length;return function(){for(var g=0;g<c;g++)if(!b[g].apply(this,arguments))return!1;return!0}};
f.functions.or=function(a){var b=arguments,c=b.length;return function(){for(var g=0;g<c;g++)if(b[g].apply(this,arguments))return!0;return!1}};f.functions.not=function(a){return function(){return!a.apply(this,arguments)}};f.functions.create=function(a,b){var c=function(){};c.prototype=a.prototype;c=new c;a.apply(c,Array.prototype.slice.call(arguments,1));return c};f.functions.CACHE_RETURN_VALUE=!0;
f.functions.cacheReturnValue=function(a){var b=!1,c;return function(){if(!f.functions.CACHE_RETURN_VALUE)return a();b||(c=a(),b=!0);return c}};f.functions.once=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};f.functions.debounce=function(a,b,c){var g=0;return function(h){f.global.clearTimeout(g);var k=arguments;g=f.global.setTimeout(function(){a.apply(c,k)},b)}};
f.functions.throttle=function(a,b,c){var g=0,h=!1,k=[],m=function(){g=0;h&&(h=!1,t())},t=function(){g=f.global.setTimeout(m,b);a.apply(c,k)};return function(u){k=arguments;g?h=!0:t()}};f.functions.rateLimit=function(a,b,c){var g=0,h=function(){g=0};return function(k){g||(g=f.global.setTimeout(h,b),a.apply(c,arguments))}};f.dom.HtmlElement=function(){};f.dom.TagName=function(a){this.tagName_=a};f.dom.TagName.prototype.toString=function(){return this.tagName_};f.dom.TagName.A=new f.dom.TagName("A");f.dom.TagName.ABBR=new f.dom.TagName("ABBR");f.dom.TagName.ACRONYM=new f.dom.TagName("ACRONYM");f.dom.TagName.ADDRESS=new f.dom.TagName("ADDRESS");f.dom.TagName.APPLET=new f.dom.TagName("APPLET");f.dom.TagName.AREA=new f.dom.TagName("AREA");f.dom.TagName.ARTICLE=new f.dom.TagName("ARTICLE");f.dom.TagName.ASIDE=new f.dom.TagName("ASIDE");
f.dom.TagName.AUDIO=new f.dom.TagName("AUDIO");f.dom.TagName.B=new f.dom.TagName("B");f.dom.TagName.BASE=new f.dom.TagName("BASE");f.dom.TagName.BASEFONT=new f.dom.TagName("BASEFONT");f.dom.TagName.BDI=new f.dom.TagName("BDI");f.dom.TagName.BDO=new f.dom.TagName("BDO");f.dom.TagName.BIG=new f.dom.TagName("BIG");f.dom.TagName.BLOCKQUOTE=new f.dom.TagName("BLOCKQUOTE");f.dom.TagName.BODY=new f.dom.TagName("BODY");f.dom.TagName.BR=new f.dom.TagName("BR");f.dom.TagName.BUTTON=new f.dom.TagName("BUTTON");
f.dom.TagName.CANVAS=new f.dom.TagName("CANVAS");f.dom.TagName.CAPTION=new f.dom.TagName("CAPTION");f.dom.TagName.CENTER=new f.dom.TagName("CENTER");f.dom.TagName.CITE=new f.dom.TagName("CITE");f.dom.TagName.CODE=new f.dom.TagName("CODE");f.dom.TagName.COL=new f.dom.TagName("COL");f.dom.TagName.COLGROUP=new f.dom.TagName("COLGROUP");f.dom.TagName.COMMAND=new f.dom.TagName("COMMAND");f.dom.TagName.DATA=new f.dom.TagName("DATA");f.dom.TagName.DATALIST=new f.dom.TagName("DATALIST");
f.dom.TagName.DD=new f.dom.TagName("DD");f.dom.TagName.DEL=new f.dom.TagName("DEL");f.dom.TagName.DETAILS=new f.dom.TagName("DETAILS");f.dom.TagName.DFN=new f.dom.TagName("DFN");f.dom.TagName.DIALOG=new f.dom.TagName("DIALOG");f.dom.TagName.DIR=new f.dom.TagName("DIR");f.dom.TagName.DIV=new f.dom.TagName("DIV");f.dom.TagName.DL=new f.dom.TagName("DL");f.dom.TagName.DT=new f.dom.TagName("DT");f.dom.TagName.EM=new f.dom.TagName("EM");f.dom.TagName.EMBED=new f.dom.TagName("EMBED");
f.dom.TagName.FIELDSET=new f.dom.TagName("FIELDSET");f.dom.TagName.FIGCAPTION=new f.dom.TagName("FIGCAPTION");f.dom.TagName.FIGURE=new f.dom.TagName("FIGURE");f.dom.TagName.FONT=new f.dom.TagName("FONT");f.dom.TagName.FOOTER=new f.dom.TagName("FOOTER");f.dom.TagName.FORM=new f.dom.TagName("FORM");f.dom.TagName.FRAME=new f.dom.TagName("FRAME");f.dom.TagName.FRAMESET=new f.dom.TagName("FRAMESET");f.dom.TagName.H1=new f.dom.TagName("H1");f.dom.TagName.H2=new f.dom.TagName("H2");f.dom.TagName.H3=new f.dom.TagName("H3");
f.dom.TagName.H4=new f.dom.TagName("H4");f.dom.TagName.H5=new f.dom.TagName("H5");f.dom.TagName.H6=new f.dom.TagName("H6");f.dom.TagName.HEAD=new f.dom.TagName("HEAD");f.dom.TagName.HEADER=new f.dom.TagName("HEADER");f.dom.TagName.HGROUP=new f.dom.TagName("HGROUP");f.dom.TagName.HR=new f.dom.TagName("HR");f.dom.TagName.HTML=new f.dom.TagName("HTML");f.dom.TagName.I=new f.dom.TagName("I");f.dom.TagName.IFRAME=new f.dom.TagName("IFRAME");f.dom.TagName.IMG=new f.dom.TagName("IMG");
f.dom.TagName.INPUT=new f.dom.TagName("INPUT");f.dom.TagName.INS=new f.dom.TagName("INS");f.dom.TagName.ISINDEX=new f.dom.TagName("ISINDEX");f.dom.TagName.KBD=new f.dom.TagName("KBD");f.dom.TagName.KEYGEN=new f.dom.TagName("KEYGEN");f.dom.TagName.LABEL=new f.dom.TagName("LABEL");f.dom.TagName.LEGEND=new f.dom.TagName("LEGEND");f.dom.TagName.LI=new f.dom.TagName("LI");f.dom.TagName.LINK=new f.dom.TagName("LINK");f.dom.TagName.MAIN=new f.dom.TagName("MAIN");f.dom.TagName.MAP=new f.dom.TagName("MAP");
f.dom.TagName.MARK=new f.dom.TagName("MARK");f.dom.TagName.MATH=new f.dom.TagName("MATH");f.dom.TagName.MENU=new f.dom.TagName("MENU");f.dom.TagName.MENUITEM=new f.dom.TagName("MENUITEM");f.dom.TagName.META=new f.dom.TagName("META");f.dom.TagName.METER=new f.dom.TagName("METER");f.dom.TagName.NAV=new f.dom.TagName("NAV");f.dom.TagName.NOFRAMES=new f.dom.TagName("NOFRAMES");f.dom.TagName.NOSCRIPT=new f.dom.TagName("NOSCRIPT");f.dom.TagName.OBJECT=new f.dom.TagName("OBJECT");f.dom.TagName.OL=new f.dom.TagName("OL");
f.dom.TagName.OPTGROUP=new f.dom.TagName("OPTGROUP");f.dom.TagName.OPTION=new f.dom.TagName("OPTION");f.dom.TagName.OUTPUT=new f.dom.TagName("OUTPUT");f.dom.TagName.P=new f.dom.TagName("P");f.dom.TagName.PARAM=new f.dom.TagName("PARAM");f.dom.TagName.PICTURE=new f.dom.TagName("PICTURE");f.dom.TagName.PRE=new f.dom.TagName("PRE");f.dom.TagName.PROGRESS=new f.dom.TagName("PROGRESS");f.dom.TagName.Q=new f.dom.TagName("Q");f.dom.TagName.RP=new f.dom.TagName("RP");f.dom.TagName.RT=new f.dom.TagName("RT");
f.dom.TagName.RTC=new f.dom.TagName("RTC");f.dom.TagName.RUBY=new f.dom.TagName("RUBY");f.dom.TagName.S=new f.dom.TagName("S");f.dom.TagName.SAMP=new f.dom.TagName("SAMP");f.dom.TagName.SCRIPT=new f.dom.TagName("SCRIPT");f.dom.TagName.SECTION=new f.dom.TagName("SECTION");f.dom.TagName.SELECT=new f.dom.TagName("SELECT");f.dom.TagName.SMALL=new f.dom.TagName("SMALL");f.dom.TagName.SOURCE=new f.dom.TagName("SOURCE");f.dom.TagName.SPAN=new f.dom.TagName("SPAN");f.dom.TagName.STRIKE=new f.dom.TagName("STRIKE");
f.dom.TagName.STRONG=new f.dom.TagName("STRONG");f.dom.TagName.STYLE=new f.dom.TagName("STYLE");f.dom.TagName.SUB=new f.dom.TagName("SUB");f.dom.TagName.SUMMARY=new f.dom.TagName("SUMMARY");f.dom.TagName.SUP=new f.dom.TagName("SUP");f.dom.TagName.SVG=new f.dom.TagName("SVG");f.dom.TagName.TABLE=new f.dom.TagName("TABLE");f.dom.TagName.TBODY=new f.dom.TagName("TBODY");f.dom.TagName.TD=new f.dom.TagName("TD");f.dom.TagName.TEMPLATE=new f.dom.TagName("TEMPLATE");f.dom.TagName.TEXTAREA=new f.dom.TagName("TEXTAREA");
f.dom.TagName.TFOOT=new f.dom.TagName("TFOOT");f.dom.TagName.TH=new f.dom.TagName("TH");f.dom.TagName.THEAD=new f.dom.TagName("THEAD");f.dom.TagName.TIME=new f.dom.TagName("TIME");f.dom.TagName.TITLE=new f.dom.TagName("TITLE");f.dom.TagName.TR=new f.dom.TagName("TR");f.dom.TagName.TRACK=new f.dom.TagName("TRACK");f.dom.TagName.TT=new f.dom.TagName("TT");f.dom.TagName.U=new f.dom.TagName("U");f.dom.TagName.UL=new f.dom.TagName("UL");f.dom.TagName.VAR=new f.dom.TagName("VAR");f.dom.TagName.VIDEO=new f.dom.TagName("VIDEO");
f.dom.TagName.WBR=new f.dom.TagName("WBR");f.dom.tags={};f.dom.tags.VOID_TAGS_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};f.dom.tags.isVoidTag=function(a){return!0===f.dom.tags.VOID_TAGS_[a]};f.html={};f.html.trustedtypes={};f.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY=f.TRUSTED_TYPES_POLICY_NAME?f.createTrustedTypesPolicy(f.TRUSTED_TYPES_POLICY_NAME+"#html"):null;f.string.TypedString=function(){};f.string.Const=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===f.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=f.string.Const.TYPE_MARKER_};f.string.Const.prototype.implementsGoogStringTypedString=!0;f.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
f.DEBUG&&(f.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"});f.string.Const.unwrap=function(a){if(a instanceof f.string.Const&&a.constructor===f.string.Const&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===f.string.Const.TYPE_MARKER_)return a.stringConstValueWithSecurityContract__googStringSecurityPrivate_;f.asserts.fail("expected object of type Const, got '"+a+"'");return"type_error:Const"};
f.string.Const.from=function(a){return new f.string.Const(f.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,a)};f.string.Const.TYPE_MARKER_={};f.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={};f.string.Const.EMPTY=f.string.Const.from("");f.html.SafeScript=function(){this.privateDoNotAccessOrElseSafeScriptWrappedValue_="";this.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=f.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};f.html.SafeScript.prototype.implementsGoogStringTypedString=!0;f.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};f.html.SafeScript.fromConstant=function(a){a=f.string.Const.unwrap(a);return 0===a.length?f.html.SafeScript.EMPTY:f.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(a)};
f.html.SafeScript.fromConstantAndArgs=function(a,b){for(var c=[],g=1;g<arguments.length;g++)c.push(f.html.SafeScript.stringify_(arguments[g]));return f.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("("+f.string.Const.unwrap(a)+")("+c.join(", ")+");")};f.html.SafeScript.fromJson=function(a){return f.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(f.html.SafeScript.stringify_(a))};f.html.SafeScript.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString()};
f.DEBUG&&(f.html.SafeScript.prototype.toString=function(){return"SafeScript{"+this.privateDoNotAccessOrElseSafeScriptWrappedValue_+"}"});f.html.SafeScript.unwrap=function(a){return f.html.SafeScript.unwrapTrustedScript(a).toString()};
f.html.SafeScript.unwrapTrustedScript=function(a){if(a instanceof f.html.SafeScript&&a.constructor===f.html.SafeScript&&a.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===f.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_)return a.privateDoNotAccessOrElseSafeScriptWrappedValue_;f.asserts.fail("expected object of type SafeScript, got '"+a+"' of type "+f.typeOf(a));return"type_error:SafeScript"};f.html.SafeScript.stringify_=function(a){return JSON.stringify(a).replace(/</g,"\\x3c")};
f.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(a){return(new f.html.SafeScript).initSecurityPrivateDoNotAccessOrElse_(a)};f.html.SafeScript.prototype.initSecurityPrivateDoNotAccessOrElse_=function(a){this.privateDoNotAccessOrElseSafeScriptWrappedValue_=f.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?f.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScript(a):a;return this};f.html.SafeScript.EMPTY=f.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("");f.fs={};f.fs.url={};f.fs.url.createObjectUrl=function(a){return f.fs.url.getUrlObject_().createObjectURL(a)};f.fs.url.revokeObjectUrl=function(a){f.fs.url.getUrlObject_().revokeObjectURL(a)};f.fs.url.getUrlObject_=function(){var a=f.fs.url.findUrlObject_();if(null!=a)return a;throw Error("This browser doesn't seem to support blob URLs");};
f.fs.url.findUrlObject_=function(){return void 0!==f.global.URL&&void 0!==f.global.URL.createObjectURL?f.global.URL:void 0!==f.global.webkitURL&&void 0!==f.global.webkitURL.createObjectURL?f.global.webkitURL:void 0!==f.global.createObjectURL?f.global:null};f.fs.url.browserSupportsObjectUrls=function(){return null!=f.fs.url.findUrlObject_()};f.i18n={};f.i18n.bidi={};f.i18n.bidi.FORCE_RTL=!1;
f.i18n.bidi.IS_RTL=f.i18n.bidi.FORCE_RTL||("ar"==f.LOCALE.substring(0,2).toLowerCase()||"fa"==f.LOCALE.substring(0,2).toLowerCase()||"he"==f.LOCALE.substring(0,2).toLowerCase()||"iw"==f.LOCALE.substring(0,2).toLowerCase()||"ps"==f.LOCALE.substring(0,2).toLowerCase()||"sd"==f.LOCALE.substring(0,2).toLowerCase()||"ug"==f.LOCALE.substring(0,2).toLowerCase()||"ur"==f.LOCALE.substring(0,2).toLowerCase()||"yi"==f.LOCALE.substring(0,2).toLowerCase())&&(2==f.LOCALE.length||"-"==f.LOCALE.substring(2,3)||"_"==
f.LOCALE.substring(2,3))||3<=f.LOCALE.length&&"ckb"==f.LOCALE.substring(0,3).toLowerCase()&&(3==f.LOCALE.length||"-"==f.LOCALE.substring(3,4)||"_"==f.LOCALE.substring(3,4))||7<=f.LOCALE.length&&("-"==f.LOCALE.substring(2,3)||"_"==f.LOCALE.substring(2,3))&&("adlm"==f.LOCALE.substring(3,7).toLowerCase()||"arab"==f.LOCALE.substring(3,7).toLowerCase()||"hebr"==f.LOCALE.substring(3,7).toLowerCase()||"nkoo"==f.LOCALE.substring(3,7).toLowerCase()||"rohg"==f.LOCALE.substring(3,7).toLowerCase()||"thaa"==f.LOCALE.substring(3,
7).toLowerCase())||8<=f.LOCALE.length&&("-"==f.LOCALE.substring(3,4)||"_"==f.LOCALE.substring(3,4))&&("adlm"==f.LOCALE.substring(4,8).toLowerCase()||"arab"==f.LOCALE.substring(4,8).toLowerCase()||"hebr"==f.LOCALE.substring(4,8).toLowerCase()||"nkoo"==f.LOCALE.substring(4,8).toLowerCase()||"rohg"==f.LOCALE.substring(4,8).toLowerCase()||"thaa"==f.LOCALE.substring(4,8).toLowerCase());f.i18n.bidi.Format={LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"};f.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0};
f.i18n.bidi.RIGHT="right";f.i18n.bidi.LEFT="left";f.i18n.bidi.I18N_RIGHT=f.i18n.bidi.IS_RTL?f.i18n.bidi.LEFT:f.i18n.bidi.RIGHT;f.i18n.bidi.I18N_LEFT=f.i18n.bidi.IS_RTL?f.i18n.bidi.RIGHT:f.i18n.bidi.LEFT;f.i18n.bidi.toDir=function(a){return"number"==typeof a?0<a?f.i18n.bidi.Dir.LTR:0>a?f.i18n.bidi.Dir.RTL:f.i18n.bidi.Dir.NEUTRAL:null==a?null:a?f.i18n.bidi.Dir.RTL:f.i18n.bidi.Dir.LTR};f.i18n.bidi.ltrChars_="A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff";
f.i18n.bidi.rtlChars_="\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc";f.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g;f.i18n.bidi.stripHtmlIfNeeded_=function(a,b){return b?a.replace(f.i18n.bidi.htmlSkipReg_,""):a};f.i18n.bidi.rtlCharReg_=new RegExp("["+f.i18n.bidi.rtlChars_+"]");f.i18n.bidi.ltrCharReg_=new RegExp("["+f.i18n.bidi.ltrChars_+"]");f.i18n.bidi.hasAnyRtl=function(a,b){return f.i18n.bidi.rtlCharReg_.test(f.i18n.bidi.stripHtmlIfNeeded_(a,b))};
f.i18n.bidi.hasRtlChar=f.i18n.bidi.hasAnyRtl;f.i18n.bidi.hasAnyLtr=function(a){return f.i18n.bidi.ltrCharReg_.test(f.i18n.bidi.stripHtmlIfNeeded_(a,void 0))};f.i18n.bidi.ltrRe_=new RegExp("^["+f.i18n.bidi.ltrChars_+"]");f.i18n.bidi.rtlRe_=new RegExp("^["+f.i18n.bidi.rtlChars_+"]");f.i18n.bidi.isRtlChar=function(a){return f.i18n.bidi.rtlRe_.test(a)};f.i18n.bidi.isLtrChar=function(a){return f.i18n.bidi.ltrRe_.test(a)};f.i18n.bidi.isNeutralChar=function(a){return!f.i18n.bidi.isLtrChar(a)&&!f.i18n.bidi.isRtlChar(a)};
f.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+f.i18n.bidi.rtlChars_+"]*["+f.i18n.bidi.ltrChars_+"]");f.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+f.i18n.bidi.ltrChars_+"]*["+f.i18n.bidi.rtlChars_+"]");f.i18n.bidi.startsWithRtl=function(a,b){return f.i18n.bidi.rtlDirCheckRe_.test(f.i18n.bidi.stripHtmlIfNeeded_(a,b))};f.i18n.bidi.isRtlText=f.i18n.bidi.startsWithRtl;f.i18n.bidi.startsWithLtr=function(a,b){return f.i18n.bidi.ltrDirCheckRe_.test(f.i18n.bidi.stripHtmlIfNeeded_(a,b))};
f.i18n.bidi.isLtrText=f.i18n.bidi.startsWithLtr;f.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/;f.i18n.bidi.isNeutralText=function(a,b){a=f.i18n.bidi.stripHtmlIfNeeded_(a,b);return f.i18n.bidi.isRequiredLtrRe_.test(a)||!f.i18n.bidi.hasAnyLtr(a)&&!f.i18n.bidi.hasAnyRtl(a)};f.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+f.i18n.bidi.ltrChars_+"][^"+f.i18n.bidi.rtlChars_+"]*$");f.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+f.i18n.bidi.rtlChars_+"][^"+f.i18n.bidi.ltrChars_+"]*$");
f.i18n.bidi.endsWithLtr=function(a,b){return f.i18n.bidi.ltrExitDirCheckRe_.test(f.i18n.bidi.stripHtmlIfNeeded_(a,b))};f.i18n.bidi.isLtrExitText=f.i18n.bidi.endsWithLtr;f.i18n.bidi.endsWithRtl=function(a,b){return f.i18n.bidi.rtlExitDirCheckRe_.test(f.i18n.bidi.stripHtmlIfNeeded_(a,b))};f.i18n.bidi.isRtlExitText=f.i18n.bidi.endsWithRtl;f.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;
f.i18n.bidi.isRtlLanguage=function(a){return f.i18n.bidi.rtlLocalesRe_.test(a)};f.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g;f.i18n.bidi.guardBracketInText=function(a,b){b=(void 0===b?f.i18n.bidi.hasAnyRtl(a):b)?f.i18n.bidi.Format.RLM:f.i18n.bidi.Format.LRM;return a.replace(f.i18n.bidi.bracketGuardTextRe_,b+"$&"+b)};f.i18n.bidi.enforceRtlInHtml=function(a){return"<"==a.charAt(0)?a.replace(/<\w+/,"$& dir=rtl"):"\n<span dir=rtl>"+a+"</span>"};
f.i18n.bidi.enforceRtlInText=function(a){return f.i18n.bidi.Format.RLE+a+f.i18n.bidi.Format.PDF};f.i18n.bidi.enforceLtrInHtml=function(a){return"<"==a.charAt(0)?a.replace(/<\w+/,"$& dir=ltr"):"\n<span dir=ltr>"+a+"</span>"};f.i18n.bidi.enforceLtrInText=function(a){return f.i18n.bidi.Format.LRE+a+f.i18n.bidi.Format.PDF};f.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g;f.i18n.bidi.leftRe_=/left/gi;f.i18n.bidi.rightRe_=/right/gi;f.i18n.bidi.tempRe_=/%%%%/g;
f.i18n.bidi.mirrorCSS=function(a){return a.replace(f.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(f.i18n.bidi.leftRe_,"%%%%").replace(f.i18n.bidi.rightRe_,f.i18n.bidi.LEFT).replace(f.i18n.bidi.tempRe_,f.i18n.bidi.RIGHT)};f.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g;f.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g;f.i18n.bidi.normalizeHebrewQuote=function(a){return a.replace(f.i18n.bidi.doubleQuoteSubstituteRe_,"$1\u05f4").replace(f.i18n.bidi.singleQuoteSubstituteRe_,"$1\u05f3")};
f.i18n.bidi.wordSeparatorRe_=/\s+/;f.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/;f.i18n.bidi.rtlDetectionThreshold_=.4;
f.i18n.bidi.estimateDirection=function(a,b){var c=0,g=0,h=!1;a=f.i18n.bidi.stripHtmlIfNeeded_(a,b).split(f.i18n.bidi.wordSeparatorRe_);for(b=0;b<a.length;b++){var k=a[b];f.i18n.bidi.startsWithRtl(k)?(c++,g++):f.i18n.bidi.isRequiredLtrRe_.test(k)?h=!0:f.i18n.bidi.hasAnyLtr(k)?g++:f.i18n.bidi.hasNumeralsRe_.test(k)&&(h=!0)}return 0==g?h?f.i18n.bidi.Dir.LTR:f.i18n.bidi.Dir.NEUTRAL:c/g>f.i18n.bidi.rtlDetectionThreshold_?f.i18n.bidi.Dir.RTL:f.i18n.bidi.Dir.LTR};
f.i18n.bidi.detectRtlDirectionality=function(a,b){return f.i18n.bidi.estimateDirection(a,b)==f.i18n.bidi.Dir.RTL};f.i18n.bidi.setElementDirAndAlign=function(a,b){a&&(b=f.i18n.bidi.toDir(b))&&(a.style.textAlign=b==f.i18n.bidi.Dir.RTL?f.i18n.bidi.RIGHT:f.i18n.bidi.LEFT,a.dir=b==f.i18n.bidi.Dir.RTL?"rtl":"ltr")};f.i18n.bidi.setElementDirByTextDirectionality=function(a,b){switch(f.i18n.bidi.estimateDirection(b)){case f.i18n.bidi.Dir.LTR:a.dir="ltr";break;case f.i18n.bidi.Dir.RTL:a.dir="rtl";break;default:a.removeAttribute("dir")}};
f.i18n.bidi.DirectionalString=function(){};f.html.TrustedResourceUrl=function(a,b,c){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=a===f.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&b||"";this.trustedURL_=a===f.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&c||null;this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=f.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};f.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0;
f.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()};f.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0;f.html.TrustedResourceUrl.prototype.getDirection=function(){return f.i18n.bidi.Dir.LTR};f.DEBUG&&(f.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"});
f.html.TrustedResourceUrl.unwrap=function(a){return f.html.TrustedResourceUrl.unwrapTrustedScriptURL(a).toString()};
f.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(a){if(a instanceof f.html.TrustedResourceUrl&&a.constructor===f.html.TrustedResourceUrl&&a.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===f.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_)return a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_;f.asserts.fail("expected object of type TrustedResourceUrl, got '"+a+"' of type "+f.typeOf(a));return"type_error:TrustedResourceUrl"};
f.html.TrustedResourceUrl.unwrapTrustedURL=function(a){return a.trustedURL_?a.trustedURL_:f.html.TrustedResourceUrl.unwrap(a)};
f.html.TrustedResourceUrl.format=function(a,b){var c=f.string.Const.unwrap(a);if(!f.html.TrustedResourceUrl.BASE_URL_.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(f.html.TrustedResourceUrl.FORMAT_MARKER_,function(g,h){if(!Object.prototype.hasOwnProperty.call(b,h))throw Error('Found marker, "'+h+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));g=b[h];return g instanceof f.string.Const?f.string.Const.unwrap(g):encodeURIComponent(String(g))});
return f.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(a)};f.html.TrustedResourceUrl.FORMAT_MARKER_=/%{(\w+)}/g;f.html.TrustedResourceUrl.BASE_URL_=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i;f.html.TrustedResourceUrl.URL_PARAM_PARSER_=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/;
f.html.TrustedResourceUrl.formatWithParams=function(a,b,c,g){a=f.html.TrustedResourceUrl.format(a,b);a=f.html.TrustedResourceUrl.unwrap(a);a=f.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(a);b=a[3]||"";return f.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(a[1]+f.html.TrustedResourceUrl.stringifyParams_("?",a[2]||"",c)+f.html.TrustedResourceUrl.stringifyParams_("#",b,g))};f.html.TrustedResourceUrl.fromConstant=function(a){return f.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(f.string.Const.unwrap(a))};
f.html.TrustedResourceUrl.fromConstants=function(a){for(var b="",c=0;c<a.length;c++)b+=f.string.Const.unwrap(a[c]);return f.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(b)};f.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};
f.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(a){var b=f.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?f.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScriptURL(a):a;a=f.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?f.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createURL(a):null;return new f.html.TrustedResourceUrl(f.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_,b,a)};
f.html.TrustedResourceUrl.stringifyParams_=function(a,b,c){if(null==c)return b;if("string"===typeof c)return c?a+encodeURIComponent(c):"";for(var g in c){var h=c[g];h=f.isArray(h)?h:[h];for(var k=0;k<h.length;k++){var m=h[k];null!=m&&(b||(b=a),b+=(b.length>a.length?"&":"")+encodeURIComponent(g)+"="+encodeURIComponent(String(m)))}}return b};f.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_={};f.html.SafeUrl=function(a,b){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=a===f.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&b||"";this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=f.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};f.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez";f.html.SafeUrl.prototype.implementsGoogStringTypedString=!0;f.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()};
f.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0;f.html.SafeUrl.prototype.getDirection=function(){return f.i18n.bidi.Dir.LTR};f.DEBUG&&(f.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeUrlWrappedValue_+"}"});f.html.SafeUrl.unwrap=function(a){return f.html.SafeUrl.unwrapTrustedURL(a).toString()};
f.html.SafeUrl.unwrapTrustedURL=function(a){if(a instanceof f.html.SafeUrl&&a.constructor===f.html.SafeUrl&&a.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===f.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_)return a.privateDoNotAccessOrElseSafeUrlWrappedValue_;f.asserts.fail("expected object of type SafeUrl, got '"+a+"' of type "+f.typeOf(a));return"type_error:SafeUrl"};f.html.SafeUrl.fromConstant=function(a){return f.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(f.string.Const.unwrap(a))};
f.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;f.html.SafeUrl.isSafeMimeType=function(a){return f.html.SAFE_MIME_TYPE_PATTERN_.test(a)};f.html.SafeUrl.fromBlob=function(a){a=f.html.SAFE_MIME_TYPE_PATTERN_.test(a.type)?f.fs.url.createObjectUrl(a):f.html.SafeUrl.INNOCUOUS_STRING;return f.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a)};
f.html.DATA_URL_PATTERN_=/^data:([^,]*);base64,[a-z0-9+\/]+=*$/i;f.html.SafeUrl.fromDataUrl=function(a){a=a.replace(/(%0A|%0D)/g,"");var b=a.match(f.html.DATA_URL_PATTERN_);b=b&&f.html.SAFE_MIME_TYPE_PATTERN_.test(b[1]);return f.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(b?a:f.html.SafeUrl.INNOCUOUS_STRING)};f.html.SafeUrl.fromTelUrl=function(a){f.string.internal.caseInsensitiveStartsWith(a,"tel:")||(a=f.html.SafeUrl.INNOCUOUS_STRING);return f.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a)};
f.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i;f.html.SafeUrl.fromSipUrl=function(a){f.html.SIP_URL_PATTERN_.test(decodeURIComponent(a))||(a=f.html.SafeUrl.INNOCUOUS_STRING);return f.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a)};f.html.SafeUrl.fromFacebookMessengerUrl=function(a){f.string.internal.caseInsensitiveStartsWith(a,"fb-messenger://share")||(a=f.html.SafeUrl.INNOCUOUS_STRING);return f.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a)};
f.html.SafeUrl.fromWhatsAppUrl=function(a){f.string.internal.caseInsensitiveStartsWith(a,"whatsapp://send")||(a=f.html.SafeUrl.INNOCUOUS_STRING);return f.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a)};f.html.SafeUrl.fromSmsUrl=function(a){f.string.internal.caseInsensitiveStartsWith(a,"sms:")&&f.html.SafeUrl.isSmsUrlBodyValid_(a)||(a=f.html.SafeUrl.INNOCUOUS_STRING);return f.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a)};
f.html.SafeUrl.isSmsUrlBodyValid_=function(a){var b=a.indexOf("#");0<b&&(a=a.substring(0,b));b=a.match(/[?&]body=/gi);if(!b)return!0;if(1<b.length)return!1;a=a.match(/[?&]body=([^&]*)/)[1];if(!a)return!0;try{decodeURIComponent(a)}catch(c){return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(a)};f.html.SafeUrl.fromSshUrl=function(a){f.string.internal.caseInsensitiveStartsWith(a,"ssh://")||(a=f.html.SafeUrl.INNOCUOUS_STRING);return f.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a)};
f.html.SafeUrl.sanitizeChromeExtensionUrl=function(a,b){return f.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//,a,b)};f.html.SafeUrl.sanitizeFirefoxExtensionUrl=function(a,b){return f.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//,a,b)};f.html.SafeUrl.sanitizeEdgeExtensionUrl=function(a,b){return f.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//,a,b)};
f.html.SafeUrl.sanitizeExtensionUrl_=function(a,b,c){(a=a.exec(b))?(a=a[1],-1==(c instanceof f.string.Const?[f.string.Const.unwrap(c)]:c.map(function(g){return f.string.Const.unwrap(g)})).indexOf(a)&&(b=f.html.SafeUrl.INNOCUOUS_STRING)):b=f.html.SafeUrl.INNOCUOUS_STRING;return f.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(b)};f.html.SafeUrl.fromTrustedResourceUrl=function(a){return f.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(f.html.TrustedResourceUrl.unwrap(a))};
f.html.SAFE_URL_PATTERN_=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;f.html.SafeUrl.SAFE_URL_PATTERN=f.html.SAFE_URL_PATTERN_;f.html.SafeUrl.sanitize=function(a){if(a instanceof f.html.SafeUrl)return a;a="object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);f.html.SAFE_URL_PATTERN_.test(a)||(a=f.html.SafeUrl.INNOCUOUS_STRING);return f.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a)};
f.html.SafeUrl.sanitizeAssertUnchanged=function(a,b){if(a instanceof f.html.SafeUrl)return a;a="object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);if(b&&/^data:/i.test(a)&&(b=f.html.SafeUrl.fromDataUrl(a),b.getTypedStringValue()==a))return b;f.asserts.assert(f.html.SAFE_URL_PATTERN_.test(a),"%s does not match the safe URL pattern",a)||(a=f.html.SafeUrl.INNOCUOUS_STRING);return f.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a)};
f.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};f.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(a){return new f.html.SafeUrl(f.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_,f.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?f.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createURL(a):a)};f.html.SafeUrl.ABOUT_BLANK=f.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank");f.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_={};f.html.SafeStyle=function(){this.privateDoNotAccessOrElseSafeStyleWrappedValue_="";this.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=f.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};f.html.SafeStyle.prototype.implementsGoogStringTypedString=!0;f.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};
f.html.SafeStyle.fromConstant=function(a){a=f.string.Const.unwrap(a);if(0===a.length)return f.html.SafeStyle.EMPTY;f.asserts.assert(f.string.internal.endsWith(a,";"),"Last character of style string is not ';': "+a);f.asserts.assert(f.string.internal.contains(a,":"),"Style string must contain at least one ':', to specify a \"name: value\" pair: "+a);return f.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(a)};f.html.SafeStyle.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_};
f.DEBUG&&(f.html.SafeStyle.prototype.toString=function(){return"SafeStyle{"+this.privateDoNotAccessOrElseSafeStyleWrappedValue_+"}"});f.html.SafeStyle.unwrap=function(a){if(a instanceof f.html.SafeStyle&&a.constructor===f.html.SafeStyle&&a.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===f.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_)return a.privateDoNotAccessOrElseSafeStyleWrappedValue_;f.asserts.fail("expected object of type SafeStyle, got '"+a+"' of type "+f.typeOf(a));return"type_error:SafeStyle"};
f.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(a){return(new f.html.SafeStyle).initSecurityPrivateDoNotAccessOrElse_(a)};f.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_=function(a){this.privateDoNotAccessOrElseSafeStyleWrappedValue_=a;return this};f.html.SafeStyle.EMPTY=f.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse("");f.html.SafeStyle.INNOCUOUS_STRING="zClosurez";
f.html.SafeStyle.create=function(a){var b="",c;for(c in a){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var g=a[c];null!=g&&(g=f.isArray(g)?f.array.map(g,f.html.SafeStyle.sanitizePropertyValue_).join(" "):f.html.SafeStyle.sanitizePropertyValue_(g),b+=c+":"+g+";")}return b?f.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(b):f.html.SafeStyle.EMPTY};
f.html.SafeStyle.sanitizePropertyValue_=function(a){if(a instanceof f.html.SafeUrl)return'url("'+f.html.SafeUrl.unwrap(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof f.string.Const?f.string.Const.unwrap(a):f.html.SafeStyle.sanitizePropertyValueString_(String(a));if(/[{;}]/.test(a))throw new f.asserts.AssertionError("Value does not allow [{;}], got: %s.",[a]);return a};
f.html.SafeStyle.sanitizePropertyValueString_=function(a){var b=a.replace(f.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(f.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(f.html.SafeStyle.URL_RE_,"url");if(f.html.SafeStyle.VALUE_RE_.test(b)){if(f.html.SafeStyle.COMMENT_RE_.test(a))return f.asserts.fail("String value disallows comments, got: "+a),f.html.SafeStyle.INNOCUOUS_STRING;if(!f.html.SafeStyle.hasBalancedQuotes_(a))return f.asserts.fail("String value requires balanced quotes, got: "+a),f.html.SafeStyle.INNOCUOUS_STRING;
if(!f.html.SafeStyle.hasBalancedSquareBrackets_(a))return f.asserts.fail("String value requires balanced square brackets and one identifier per pair of brackets, got: "+a),f.html.SafeStyle.INNOCUOUS_STRING}else return f.asserts.fail("String value allows only "+f.html.SafeStyle.VALUE_ALLOWED_CHARS_+" and simple functions, got: "+a),f.html.SafeStyle.INNOCUOUS_STRING;return f.html.SafeStyle.sanitizeUrl_(a)};
f.html.SafeStyle.hasBalancedQuotes_=function(a){for(var b=!0,c=!0,g=0;g<a.length;g++){var h=a.charAt(g);"'"==h&&c?b=!b:'"'==h&&b&&(c=!c)}return b&&c};f.html.SafeStyle.hasBalancedSquareBrackets_=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,g=0;g<a.length;g++){var h=a.charAt(g);if("]"==h){if(b)return!1;b=!0}else if("["==h){if(!b)return!1;b=!1}else if(!b&&!c.test(h))return!1}return b};f.html.SafeStyle.VALUE_ALLOWED_CHARS_="[-,.\"'%_!# a-zA-Z0-9\\[\\]]";
f.html.SafeStyle.VALUE_RE_=new RegExp("^"+f.html.SafeStyle.VALUE_ALLOWED_CHARS_+"+$");f.html.SafeStyle.URL_RE_=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g;f.html.SafeStyle.ALLOWED_FUNCTIONS_="calc cubic-bezier fit-content hsl hsla matrix minmax repeat rgb rgba (rotate|scale|translate)(X|Y|Z|3d)?".split(" ");f.html.SafeStyle.FUNCTIONS_RE_=new RegExp("\\b("+f.html.SafeStyle.ALLOWED_FUNCTIONS_.join("|")+")\\([-+*/0-9a-z.%\\[\\], ]+\\)","g");
f.html.SafeStyle.COMMENT_RE_=/\/\*/;f.html.SafeStyle.sanitizeUrl_=function(a){return a.replace(f.html.SafeStyle.URL_RE_,function(b,c,g,h){var k="";g=g.replace(/^(['"])(.*)\1$/,function(m,t,u){k=t;return u});b=f.html.SafeUrl.sanitize(g).getTypedStringValue();return c+k+b+k+h})};
f.html.SafeStyle.concat=function(a){var b="",c=function(g){f.isArray(g)?f.array.forEach(g,c):b+=f.html.SafeStyle.unwrap(g)};f.array.forEach(arguments,c);return b?f.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(b):f.html.SafeStyle.EMPTY};f.html.SafeStyleSheet=function(){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_="";this.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=f.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};f.html.SafeStyleSheet.prototype.implementsGoogStringTypedString=!0;f.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};
f.html.SafeStyleSheet.createRule=function(a,b){if(f.string.internal.contains(a,"<"))throw Error("Selector does not allow '<', got: "+a);var c=a.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g,"");if(!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=^$|]+$/.test(c))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+a);if(!f.html.SafeStyleSheet.hasBalancedBrackets_(c))throw Error("() and [] in selector must be balanced, got: "+a);b instanceof f.html.SafeStyle||(b=f.html.SafeStyle.create(b));
a=a+"{"+f.html.SafeStyle.unwrap(b).replace(/</g,"\\3C ")+"}";return f.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(a)};f.html.SafeStyleSheet.hasBalancedBrackets_=function(a){for(var b={"(":")","[":"]"},c=[],g=0;g<a.length;g++){var h=a[g];if(b[h])c.push(b[h]);else if(f.object.contains(b,h)&&c.pop()!=h)return!1}return 0==c.length};
f.html.SafeStyleSheet.concat=function(a){var b="",c=function(g){f.isArray(g)?f.array.forEach(g,c):b+=f.html.SafeStyleSheet.unwrap(g)};f.array.forEach(arguments,c);return f.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(b)};f.html.SafeStyleSheet.fromConstant=function(a){a=f.string.Const.unwrap(a);if(0===a.length)return f.html.SafeStyleSheet.EMPTY;f.asserts.assert(!f.string.internal.contains(a,"<"),"Forbidden '<' character in style sheet string: "+a);return f.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(a)};
f.html.SafeStyleSheet.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_};f.DEBUG&&(f.html.SafeStyleSheet.prototype.toString=function(){return"SafeStyleSheet{"+this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_+"}"});
f.html.SafeStyleSheet.unwrap=function(a){if(a instanceof f.html.SafeStyleSheet&&a.constructor===f.html.SafeStyleSheet&&a.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===f.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_)return a.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_;f.asserts.fail("expected object of type SafeStyleSheet, got '"+a+"' of type "+f.typeOf(a));return"type_error:SafeStyleSheet"};
f.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(a){return(new f.html.SafeStyleSheet).initSecurityPrivateDoNotAccessOrElse_(a)};f.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_=function(a){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=a;return this};f.html.SafeStyleSheet.EMPTY=f.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse("");f.html.SafeHtml=function(){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_="";this.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=f.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_;this.dir_=null};f.html.SafeHtml.ENABLE_ERROR_MESSAGES=f.DEBUG;f.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE=!0;f.html.SafeHtml.prototype.implementsGoogI18nBidiDirectionalString=!0;f.html.SafeHtml.prototype.getDirection=function(){return this.dir_};f.html.SafeHtml.prototype.implementsGoogStringTypedString=!0;
f.html.SafeHtml.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()};f.DEBUG&&(f.html.SafeHtml.prototype.toString=function(){return"SafeHtml{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"});f.html.SafeHtml.unwrap=function(a){return f.html.SafeHtml.unwrapTrustedHTML(a).toString()};
f.html.SafeHtml.unwrapTrustedHTML=function(a){if(a instanceof f.html.SafeHtml&&a.constructor===f.html.SafeHtml&&a.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===f.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_)return a.privateDoNotAccessOrElseSafeHtmlWrappedValue_;f.asserts.fail("expected object of type SafeHtml, got '"+a+"' of type "+f.typeOf(a));return"type_error:SafeHtml"};
f.html.SafeHtml.htmlEscape=function(a){if(a instanceof f.html.SafeHtml)return a;var b="object"==typeof a,c=null;b&&a.implementsGoogI18nBidiDirectionalString&&(c=a.getDirection());return f.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(f.string.internal.htmlEscape(b&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a)),c)};
f.html.SafeHtml.htmlEscapePreservingNewlines=function(a){if(a instanceof f.html.SafeHtml)return a;a=f.html.SafeHtml.htmlEscape(a);return f.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(f.string.internal.newLineToBr(f.html.SafeHtml.unwrap(a)),a.getDirection())};
f.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(a){if(a instanceof f.html.SafeHtml)return a;a=f.html.SafeHtml.htmlEscape(a);return f.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(f.string.internal.whitespaceEscape(f.html.SafeHtml.unwrap(a)),a.getDirection())};f.html.SafeHtml.from=f.html.SafeHtml.htmlEscape;f.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/;f.html.SafeHtml.URL_ATTRIBUTES_={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0};
f.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};f.html.SafeHtml.create=function(a,b,c){f.html.SafeHtml.verifyTagName(String(a));return f.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(a),b,c)};
f.html.SafeHtml.verifyTagName=function(a){if(!f.html.SafeHtml.VALID_NAMES_IN_TAG_.test(a))throw Error(f.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Invalid tag name <"+a+">.":"");if(a.toUpperCase()in f.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error(f.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Tag name <"+a+"> is not allowed for SafeHtml.":"");};
f.html.SafeHtml.createIframe=function(a,b,c,g){a&&f.html.TrustedResourceUrl.unwrap(a);var h={};h.src=a||null;h.srcdoc=b&&f.html.SafeHtml.unwrap(b);a=f.html.SafeHtml.combineAttributes(h,{sandbox:""},c);return f.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",a,g)};
f.html.SafeHtml.createSandboxIframe=function(a,b,c,g){if(!f.html.SafeHtml.canUseSandboxIframe())throw Error(f.html.SafeHtml.ENABLE_ERROR_MESSAGES?"The browser does not support sandboxed iframes.":"");var h={};h.src=a?f.html.SafeUrl.unwrap(f.html.SafeUrl.sanitize(a)):null;h.srcdoc=b||null;h.sandbox="";a=f.html.SafeHtml.combineAttributes(h,{},c);return f.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",a,g)};
f.html.SafeHtml.canUseSandboxIframe=function(){return f.global.HTMLIFrameElement&&"sandbox"in f.global.HTMLIFrameElement.prototype};f.html.SafeHtml.createScriptSrc=function(a,b){f.html.TrustedResourceUrl.unwrap(a);a=f.html.SafeHtml.combineAttributes({src:a},{},b);return f.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",a)};
f.html.SafeHtml.createScript=function(a,b){for(var c in b){var g=c.toLowerCase();if("language"==g||"src"==g||"text"==g||"type"==g)throw Error(f.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot set "'+g+'" attribute':"");}c="";a=f.array.concat(a);for(g=0;g<a.length;g++)c+=f.html.SafeScript.unwrap(a[g]);a=f.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(c,f.i18n.bidi.Dir.NEUTRAL);return f.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",b,a)};
f.html.SafeHtml.createStyle=function(a,b){b=f.html.SafeHtml.combineAttributes({type:"text/css"},{},b);var c="";a=f.array.concat(a);for(var g=0;g<a.length;g++)c+=f.html.SafeStyleSheet.unwrap(a[g]);a=f.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(c,f.i18n.bidi.Dir.NEUTRAL);return f.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",b,a)};
f.html.SafeHtml.createMetaRefresh=function(a,b){a=f.html.SafeUrl.unwrap(f.html.SafeUrl.sanitize(a));(f.labs.userAgent.browser.isIE()||f.labs.userAgent.browser.isEdge())&&f.string.internal.contains(a,";")&&(a="'"+a.replace(/'/g,"%27")+"'");return f.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",{"http-equiv":"refresh",content:(b||0)+"; url="+a})};
f.html.SafeHtml.getAttrNameAndValue_=function(a,b,c){if(c instanceof f.string.Const)c=f.string.Const.unwrap(c);else if("style"==b.toLowerCase())if(f.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE)c=f.html.SafeHtml.getStyleValue_(c);else throw Error(f.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "style" not supported.':"");else{if(/^on/i.test(b))throw Error(f.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+b+'" requires goog.string.Const value, "'+c+'" given.':"");if(b.toLowerCase()in f.html.SafeHtml.URL_ATTRIBUTES_)if(c instanceof
f.html.TrustedResourceUrl)c=f.html.TrustedResourceUrl.unwrap(c);else if(c instanceof f.html.SafeUrl)c=f.html.SafeUrl.unwrap(c);else if("string"===typeof c)c=f.html.SafeUrl.sanitize(c).getTypedStringValue();else throw Error(f.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+b+'" on tag "'+a+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+c+'" given.':"");}c.implementsGoogStringTypedString&&(c=c.getTypedStringValue());f.asserts.assert("string"===typeof c||"number"===typeof c,
"String or number value expected, got "+typeof c+" with value: "+c);return b+'="'+f.string.internal.htmlEscape(String(c))+'"'};f.html.SafeHtml.getStyleValue_=function(a){if(!f.isObject(a))throw Error(f.html.SafeHtml.ENABLE_ERROR_MESSAGES?'The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof a+" given: "+a:"");a instanceof f.html.SafeStyle||(a=f.html.SafeStyle.create(a));return f.html.SafeStyle.unwrap(a)};
f.html.SafeHtml.createWithDir=function(a,b,c,g){b=f.html.SafeHtml.create(b,c,g);b.dir_=a;return b};
f.html.SafeHtml.join=function(a,b){a=f.html.SafeHtml.htmlEscape(a);var c=a.getDirection(),g=[],h=function(k){f.isArray(k)?f.array.forEach(k,h):(k=f.html.SafeHtml.htmlEscape(k),g.push(f.html.SafeHtml.unwrap(k)),k=k.getDirection(),c==f.i18n.bidi.Dir.NEUTRAL?c=k:k!=f.i18n.bidi.Dir.NEUTRAL&&c!=k&&(c=null))};f.array.forEach(b,h);return f.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(g.join(f.html.SafeHtml.unwrap(a)),c)};
f.html.SafeHtml.concat=function(a){return f.html.SafeHtml.join(f.html.SafeHtml.EMPTY,Array.prototype.slice.call(arguments))};f.html.SafeHtml.concatWithDir=function(a,b){var c=f.html.SafeHtml.concat(f.array.slice(arguments,1));c.dir_=a;return c};f.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};f.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(a,b){return(new f.html.SafeHtml).initSecurityPrivateDoNotAccessOrElse_(a,b)};
f.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_=function(a,b){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=f.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?f.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createHTML(a):a;this.dir_=b;return this};
f.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(a,b,c){var g=null;var h="<"+a+f.html.SafeHtml.stringifyAttributes(a,b);null==c?c=[]:f.isArray(c)||(c=[c]);f.dom.tags.isVoidTag(a.toLowerCase())?(f.asserts.assert(!c.length,"Void tag <"+a+"> does not allow content."),h+=">"):(g=f.html.SafeHtml.concat(c),h+=">"+f.html.SafeHtml.unwrap(g)+"</"+a+">",g=g.getDirection());(a=b&&b.dir)&&(g=/^(ltr|rtl|auto)$/i.test(a)?f.i18n.bidi.Dir.NEUTRAL:null);return f.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(h,
g)};f.html.SafeHtml.stringifyAttributes=function(a,b){var c="";if(b)for(var g in b){if(!f.html.SafeHtml.VALID_NAMES_IN_TAG_.test(g))throw Error(f.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Invalid attribute name "'+g+'".':"");var h=b[g];null!=h&&(c+=" "+f.html.SafeHtml.getAttrNameAndValue_(a,g,h))}return c};
f.html.SafeHtml.combineAttributes=function(a,b,c){var g={},h;for(h in a)f.asserts.assert(h.toLowerCase()==h,"Must be lower case"),g[h]=a[h];for(h in b)f.asserts.assert(h.toLowerCase()==h,"Must be lower case"),g[h]=b[h];if(c)for(h in c){var k=h.toLowerCase();if(k in a)throw Error(f.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot override "'+k+'" attribute, got "'+h+'" with value "'+c[h]+'"':"");k in b&&delete g[k];g[h]=c[h]}return g};
f.html.SafeHtml.DOCTYPE_HTML=f.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>",f.i18n.bidi.Dir.NEUTRAL);f.html.SafeHtml.EMPTY=f.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",f.i18n.bidi.Dir.NEUTRAL);f.html.SafeHtml.BR=f.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>",f.i18n.bidi.Dir.NEUTRAL);f.html.uncheckedconversions={};f.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract=function(a,b){f.asserts.assertString(f.string.Const.unwrap(a),"must provide justification");f.asserts.assert(!f.string.internal.isEmptyOrWhitespace(f.string.Const.unwrap(a)),"must provide non-empty justification");return f.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(b,null)};
f.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(a,b){f.asserts.assertString(f.string.Const.unwrap(a),"must provide justification");f.asserts.assert(!f.string.internal.isEmptyOrWhitespace(f.string.Const.unwrap(a)),"must provide non-empty justification");return f.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(b)};
f.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(a,b){f.asserts.assertString(f.string.Const.unwrap(a),"must provide justification");f.asserts.assert(!f.string.internal.isEmptyOrWhitespace(f.string.Const.unwrap(a)),"must provide non-empty justification");return f.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(b)};
f.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(a,b){f.asserts.assertString(f.string.Const.unwrap(a),"must provide justification");f.asserts.assert(!f.string.internal.isEmptyOrWhitespace(f.string.Const.unwrap(a)),"must provide non-empty justification");return f.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(b)};
f.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(a,b){f.asserts.assertString(f.string.Const.unwrap(a),"must provide justification");f.asserts.assert(!f.string.internal.isEmptyOrWhitespace(f.string.Const.unwrap(a)),"must provide non-empty justification");return f.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(b)};
f.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(a,b){f.asserts.assertString(f.string.Const.unwrap(a),"must provide justification");f.asserts.assert(!f.string.internal.isEmptyOrWhitespace(f.string.Const.unwrap(a)),"must provide non-empty justification");return f.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(b)};f.dom.safe={};f.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"};f.dom.safe.insertAdjacentHtml=function(a,b,c){a.insertAdjacentHTML(b,f.html.SafeHtml.unwrapTrustedHTML(c))};f.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0};
f.dom.safe.isInnerHtmlCleanupRecursive_=f.functions.cacheReturnValue(function(){if(f.DEBUG&&"undefined"===typeof document)return!1;var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);if(f.DEBUG&&!a.firstChild)return!1;b=a.firstChild.firstChild;a.innerHTML=f.html.SafeHtml.unwrapTrustedHTML(f.html.SafeHtml.EMPTY);return!b.parentElement});
f.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(a,b){if(f.dom.safe.isInnerHtmlCleanupRecursive_())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=f.html.SafeHtml.unwrapTrustedHTML(b)};f.dom.safe.setInnerHtml=function(a,b){if(f.asserts.ENABLE_ASSERTS&&f.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[a.tagName.toUpperCase()])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+a.tagName+".");f.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(a,b)};
f.dom.safe.setOuterHtml=function(a,b){a.outerHTML=f.html.SafeHtml.unwrapTrustedHTML(b)};f.dom.safe.setFormElementAction=function(a,b){b=b instanceof f.html.SafeUrl?b:f.html.SafeUrl.sanitizeAssertUnchanged(b);f.dom.asserts.assertIsHTMLFormElement(a).action=f.html.SafeUrl.unwrapTrustedURL(b)};f.dom.safe.setButtonFormAction=function(a,b){b=b instanceof f.html.SafeUrl?b:f.html.SafeUrl.sanitizeAssertUnchanged(b);f.dom.asserts.assertIsHTMLButtonElement(a).formAction=f.html.SafeUrl.unwrapTrustedURL(b)};
f.dom.safe.setInputFormAction=function(a,b){b=b instanceof f.html.SafeUrl?b:f.html.SafeUrl.sanitizeAssertUnchanged(b);f.dom.asserts.assertIsHTMLInputElement(a).formAction=f.html.SafeUrl.unwrapTrustedURL(b)};f.dom.safe.setStyle=function(a,b){a.style.cssText=f.html.SafeStyle.unwrap(b)};f.dom.safe.documentWrite=function(a){a.write(f.html.SafeHtml.unwrapTrustedHTML(f.html.SafeHtml.EMPTY))};
f.dom.safe.setAnchorHref=function(a,b){f.dom.asserts.assertIsHTMLAnchorElement(a);b=b instanceof f.html.SafeUrl?b:f.html.SafeUrl.sanitizeAssertUnchanged(b);a.href=f.html.SafeUrl.unwrapTrustedURL(b)};f.dom.safe.setImageSrc=function(a,b){f.dom.asserts.assertIsHTMLImageElement(a);b=b instanceof f.html.SafeUrl?b:f.html.SafeUrl.sanitizeAssertUnchanged(b,/^data:image\//i.test(b));a.src=f.html.SafeUrl.unwrapTrustedURL(b)};
f.dom.safe.setAudioSrc=function(a,b){f.dom.asserts.assertIsHTMLAudioElement(a);b=b instanceof f.html.SafeUrl?b:f.html.SafeUrl.sanitizeAssertUnchanged(b,/^data:audio\//i.test(b));a.src=f.html.SafeUrl.unwrapTrustedURL(b)};f.dom.safe.setVideoSrc=function(a,b){f.dom.asserts.assertIsHTMLVideoElement(a);b=b instanceof f.html.SafeUrl?b:f.html.SafeUrl.sanitizeAssertUnchanged(b,/^data:video\//i.test(b));a.src=f.html.SafeUrl.unwrapTrustedURL(b)};
f.dom.safe.setEmbedSrc=function(a,b){f.dom.asserts.assertIsHTMLEmbedElement(a);a.src=f.html.TrustedResourceUrl.unwrapTrustedScriptURL(b)};f.dom.safe.setFrameSrc=function(a,b){f.dom.asserts.assertIsHTMLFrameElement(a);a.src=f.html.TrustedResourceUrl.unwrapTrustedURL(b)};f.dom.safe.setIframeSrc=function(a){var b=f.html.TrustedResourceUrl.fromConstant(f.string.Const.EMPTY);f.dom.asserts.assertIsHTMLIFrameElement(a);a.src=f.html.TrustedResourceUrl.unwrapTrustedURL(b)};
f.dom.safe.setIframeSrcdoc=function(a,b){f.dom.asserts.assertIsHTMLIFrameElement(a);a.srcdoc=f.html.SafeHtml.unwrapTrustedHTML(b)};
f.dom.safe.setLinkHrefAndRel=function(a,b,c){f.dom.asserts.assertIsHTMLLinkElement(a);a.rel=c;f.string.internal.caseInsensitiveContains(c,"stylesheet")?(f.asserts.assert(b instanceof f.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),a.href=f.html.TrustedResourceUrl.unwrapTrustedURL(b)):a.href=b instanceof f.html.TrustedResourceUrl?f.html.TrustedResourceUrl.unwrapTrustedURL(b):b instanceof f.html.SafeUrl?f.html.SafeUrl.unwrapTrustedURL(b):f.html.SafeUrl.unwrapTrustedURL(f.html.SafeUrl.sanitizeAssertUnchanged(b))};
f.dom.safe.setObjectData=function(a,b){f.dom.asserts.assertIsHTMLObjectElement(a);a.data=f.html.TrustedResourceUrl.unwrapTrustedScriptURL(b)};f.dom.safe.setScriptSrc=function(a,b){f.dom.asserts.assertIsHTMLScriptElement(a);a.src=f.html.TrustedResourceUrl.unwrapTrustedScriptURL(b);(b=f.getScriptNonce())&&a.setAttribute("nonce",b)};
f.dom.safe.setScriptContent=function(a,b){f.dom.asserts.assertIsHTMLScriptElement(a);a.text=f.html.SafeScript.unwrapTrustedScript(b);(b=f.getScriptNonce())&&a.setAttribute("nonce",b)};f.dom.safe.setLocationHref=function(a,b){f.dom.asserts.assertIsLocation(a);b=b instanceof f.html.SafeUrl?b:f.html.SafeUrl.sanitizeAssertUnchanged(b);a.href=f.html.SafeUrl.unwrapTrustedURL(b)};
f.dom.safe.assignLocation=function(a,b){f.dom.asserts.assertIsLocation(a);b=b instanceof f.html.SafeUrl?b:f.html.SafeUrl.sanitizeAssertUnchanged(b);a.assign(f.html.SafeUrl.unwrapTrustedURL(b))};f.dom.safe.replaceLocation=function(a,b){f.dom.asserts.assertIsLocation(a);b=b instanceof f.html.SafeUrl?b:f.html.SafeUrl.sanitizeAssertUnchanged(b);a.replace(f.html.SafeUrl.unwrapTrustedURL(b))};
f.dom.safe.openInWindow=function(a,b,c,g,h){a=a instanceof f.html.SafeUrl?a:f.html.SafeUrl.sanitizeAssertUnchanged(a);return(b||f.global).open(f.html.SafeUrl.unwrapTrustedURL(a),c?f.string.Const.unwrap(c):"",g,h)};f.dom.safe.parseFromStringHtml=function(a,b){return f.dom.safe.parseFromString(a,b,"text/html")};f.dom.safe.parseFromString=function(a,b,c){return a.parseFromString(f.html.SafeHtml.unwrapTrustedHTML(b),c)};
f.dom.safe.createImageFromBlob=function(a){if(!/^image\/.*/g.test(a.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var b=f.global.URL.createObjectURL(a);a=new f.global.Image;a.onload=function(){f.global.URL.revokeObjectURL(b)};f.dom.safe.setImageSrc(a,f.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(f.string.Const.from("Image blob URL."),b));return a};f.string.DETECT_DOUBLE_ESCAPING=!1;f.string.FORCE_NON_DOM_HTML_UNESCAPING=!1;f.string.Unicode={NBSP:"\u00a0"};f.string.startsWith=f.string.internal.startsWith;f.string.endsWith=f.string.internal.endsWith;f.string.caseInsensitiveStartsWith=f.string.internal.caseInsensitiveStartsWith;f.string.caseInsensitiveEndsWith=f.string.internal.caseInsensitiveEndsWith;f.string.caseInsensitiveEquals=f.string.internal.caseInsensitiveEquals;
f.string.subs=function(a,b){for(var c=a.split("%s"),g="",h=Array.prototype.slice.call(arguments,1);h.length&&1<c.length;)g+=c.shift()+h.shift();return g+c.join("%s")};f.string.collapseWhitespace=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};f.string.isEmptyOrWhitespace=f.string.internal.isEmptyOrWhitespace;f.string.isEmptyString=function(a){return 0==a.length};f.string.isEmpty=f.string.isEmptyOrWhitespace;f.string.isEmptyOrWhitespaceSafe=function(a){return f.string.isEmptyOrWhitespace(f.string.makeSafe(a))};
f.string.isEmptySafe=f.string.isEmptyOrWhitespaceSafe;f.string.isBreakingWhitespace=function(a){return!/[^\t\n\r ]/.test(a)};f.string.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};f.string.isNumeric=function(a){return!/[^0-9]/.test(a)};f.string.isAlphaNumeric=function(a){return!/[^a-zA-Z0-9]/.test(a)};f.string.isSpace=function(a){return" "==a};f.string.isUnicodeChar=function(a){return 1==a.length&&" "<=a&&"~">=a||"\u0080"<=a&&"\ufffd">=a};
f.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};f.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};f.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," ")};f.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")};f.string.collapseBreakingSpaces=function(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};f.string.trim=f.string.internal.trim;
f.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};f.string.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};f.string.caseInsensitiveCompare=f.string.internal.caseInsensitiveCompare;
f.string.numberAwareCompare_=function(a,b,c){if(a==b)return 0;if(!a)return-1;if(!b)return 1;for(var g=a.toLowerCase().match(c),h=b.toLowerCase().match(c),k=Math.min(g.length,h.length),m=0;m<k;m++){c=g[m];var t=h[m];if(c!=t)return a=parseInt(c,10),!isNaN(a)&&(b=parseInt(t,10),!isNaN(b)&&a-b)?a-b:c<t?-1:1}return g.length!=h.length?g.length-h.length:a<b?-1:1};f.string.intAwareCompare=function(a,b){return f.string.numberAwareCompare_(a,b,/\d+|\D+/g)};
f.string.floatAwareCompare=function(a,b){return f.string.numberAwareCompare_(a,b,/\d+|\.\d+|\D+/g)};f.string.numerateCompare=f.string.floatAwareCompare;f.string.urlEncode=function(a){return encodeURIComponent(String(a))};f.string.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," "))};f.string.newLineToBr=f.string.internal.newLineToBr;f.string.htmlEscape=function(a,b){a=f.string.internal.htmlEscape(a,b);f.string.DETECT_DOUBLE_ESCAPING&&(a=a.replace(f.string.E_RE_,"&#101;"));return a};
f.string.E_RE_=/e/g;f.string.unescapeEntities=function(a){return f.string.contains(a,"&")?!f.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in f.global?f.string.unescapeEntitiesUsingDom_(a):f.string.unescapePureXmlEntities_(a):a};f.string.unescapeEntitiesWithDocument=function(a,b){return f.string.contains(a,"&")?f.string.unescapeEntitiesUsingDom_(a,b):a};
f.string.unescapeEntitiesUsingDom_=function(a,b){var c={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var g=b?b.createElement("div"):f.global.document.createElement("div");return a.replace(f.string.HTML_ENTITY_PATTERN_,function(h,k){var m=c[h];if(m)return m;"#"==k.charAt(0)&&(k=Number("0"+k.substr(1)),isNaN(k)||(m=String.fromCharCode(k)));m||(f.dom.safe.setInnerHtml(g,f.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(f.string.Const.from("Single HTML entity."),h+" ")),m=g.firstChild.nodeValue.slice(0,
-1));return c[h]=m})};f.string.unescapePureXmlEntities_=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return"#"!=c.charAt(0)||(c=Number("0"+c.substr(1)),isNaN(c))?b:String.fromCharCode(c)}})};f.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g;f.string.whitespaceEscape=function(a){return f.string.newLineToBr(a.replace(/  /g," &#160;"),void 0)};
f.string.preserveSpaces=function(a){return a.replace(/(^|[\n ]) /g,"$1"+f.string.Unicode.NBSP)};f.string.stripQuotes=function(a,b){for(var c=b.length,g=0;g<c;g++){var h=1==c?b:b.charAt(g);if(a.charAt(0)==h&&a.charAt(a.length-1)==h)return a.substring(1,a.length-1)}return a};f.string.truncate=function(a,b,c){c&&(a=f.string.unescapeEntities(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=f.string.htmlEscape(a));return a};
f.string.truncateMiddle=function(a,b,c,g){c&&(a=f.string.unescapeEntities(a));g&&a.length>b?(g>b&&(g=b),a=a.substring(0,b-g)+"..."+a.substring(a.length-g)):a.length>b&&(g=Math.floor(b/2),a=a.substring(0,g+b%2)+"..."+a.substring(a.length-g));c&&(a=f.string.htmlEscape(a));return a};f.string.specialEscapeChars_={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"};f.string.jsEscapeCache_={"'":"\\'"};
f.string.quote=function(a){a=String(a);for(var b=['"'],c=0;c<a.length;c++){var g=a.charAt(c),h=g.charCodeAt(0);b[c+1]=f.string.specialEscapeChars_[g]||(31<h&&127>h?g:f.string.escapeChar(g))}b.push('"');return b.join("")};f.string.escapeString=function(a){for(var b=[],c=0;c<a.length;c++)b[c]=f.string.escapeChar(a.charAt(c));return b.join("")};
f.string.escapeChar=function(a){if(a in f.string.jsEscapeCache_)return f.string.jsEscapeCache_[a];if(a in f.string.specialEscapeChars_)return f.string.jsEscapeCache_[a]=f.string.specialEscapeChars_[a];var b=a.charCodeAt(0);if(31<b&&127>b)var c=a;else{if(256>b){if(c="\\x",16>b||256<b)c+="0"}else c="\\u",4096>b&&(c+="0");c+=b.toString(16).toUpperCase()}return f.string.jsEscapeCache_[a]=c};f.string.contains=f.string.internal.contains;f.string.caseInsensitiveContains=f.string.internal.caseInsensitiveContains;
f.string.countOf=function(a,b){return a&&b?a.split(b).length-1:0};f.string.removeAt=function(a){return a};f.string.remove=function(a,b){return a.replace(b,"")};f.string.removeAll=function(a,b){b=new RegExp(f.string.regExpEscape(b),"g");return a.replace(b,"")};f.string.replaceAll=function(a,b,c){b=new RegExp(f.string.regExpEscape(b),"g");return a.replace(b,c.replace(/\$/g,"$$$$"))};f.string.regExpEscape=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
f.string.repeat=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};f.string.padNumber=function(a,b,c){a=void 0!==c?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return f.string.repeat("0",Math.max(0,b-c))+a};f.string.makeSafe=function(a){return null==a?"":String(a)};f.string.buildString=function(a){return Array.prototype.join.call(arguments,"")};
f.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^f.now()).toString(36)};f.string.compareVersions=f.string.internal.compareVersions;f.string.hashCode=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};f.string.uniqueStringCounter_=2147483648*Math.random()|0;f.string.createUniqueString=function(){return"goog_"+f.string.uniqueStringCounter_++};
f.string.toNumber=function(a){var b=Number(a);return 0==b&&f.string.isEmptyOrWhitespace(a)?NaN:b};f.string.isLowerCamelCase=function(a){return/^[a-z]+([A-Z][a-z]*)*$/.test(a)};f.string.isUpperCamelCase=function(a){return/^([A-Z][a-z]*)+$/.test(a)};f.string.toCamelCase=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};f.string.toSelectorCase=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};
f.string.toTitleCase=function(a,b){b="string"===typeof b?f.string.regExpEscape(b):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(c,g,h){return g+h.toUpperCase()})};f.string.capitalize=function(a){return String(a.charAt(0)).toUpperCase()+String(a.substr(1)).toLowerCase()};f.string.parseInt=function(a){isFinite(a)&&(a=String(a));return"string"===typeof a?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN};
f.string.splitLimit=function(a,b,c){a=a.split(b);for(var g=[];0<c&&a.length;)g.push(a.shift()),c--;a.length&&g.push(a.join(b));return g};f.string.lastComponent=function(a,b){if(b)"string"==typeof b&&(b=[b]);else return a;for(var c=-1,g=0;g<b.length;g++)if(""!=b[g]){var h=a.lastIndexOf(b[g]);h>c&&(c=h)}return-1==c?a:a.slice(c+1)};
f.string.editDistance=function(a,b){var c=[],g=[];if(a==b)return 0;if(!a.length||!b.length)return Math.max(a.length,b.length);for(var h=0;h<b.length+1;h++)c[h]=h;for(h=0;h<a.length;h++){g[0]=h+1;for(var k=0;k<b.length;k++)g[k+1]=Math.min(g[k]+1,c[k+1]+1,c[k]+Number(a[h]!=b[k]));for(k=0;k<c.length;k++)c[k]=g[k]}return g[b.length]};f.labs.userAgent.engine={};f.labs.userAgent.engine.isPresto=function(){return f.labs.userAgent.util.matchUserAgent("Presto")};f.labs.userAgent.engine.isTrident=function(){return f.labs.userAgent.util.matchUserAgent("Trident")||f.labs.userAgent.util.matchUserAgent("MSIE")};f.labs.userAgent.engine.isEdge=function(){return f.labs.userAgent.util.matchUserAgent("Edge")};f.labs.userAgent.engine.isWebKit=function(){return f.labs.userAgent.util.matchUserAgentIgnoreCase("WebKit")&&!f.labs.userAgent.engine.isEdge()};
f.labs.userAgent.engine.isGecko=function(){return f.labs.userAgent.util.matchUserAgent("Gecko")&&!f.labs.userAgent.engine.isWebKit()&&!f.labs.userAgent.engine.isTrident()&&!f.labs.userAgent.engine.isEdge()};
f.labs.userAgent.engine.getVersion=function(){var a=f.labs.userAgent.util.getUserAgent();if(a){a=f.labs.userAgent.util.extractVersionTuples(a);var b=f.labs.userAgent.engine.getEngineTuple_(a);if(b)return"Gecko"==b[0]?f.labs.userAgent.engine.getVersionForKey_(a):b[1];a=a[0];var c;if(a&&(c=a[2])&&(c=/Trident\/([^\s;]+)/.exec(c)))return c[1]}return""};
f.labs.userAgent.engine.getEngineTuple_=function(a){if(!f.labs.userAgent.engine.isEdge())return a[1];for(var b=0;b<a.length;b++){var c=a[b];if("Edge"==c[0])return c}};f.labs.userAgent.engine.isVersionOrHigher=function(a){return 0<=f.string.compareVersions(f.labs.userAgent.engine.getVersion(),a)};f.labs.userAgent.engine.getVersionForKey_=function(a){return(a=f.array.find(a,function(b){return"Firefox"==b[0]}))&&a[1]||""};f.labs.userAgent.platform={};f.labs.userAgent.platform.isAndroid=function(){return f.labs.userAgent.util.matchUserAgent("Android")};f.labs.userAgent.platform.isIpod=function(){return f.labs.userAgent.util.matchUserAgent("iPod")};f.labs.userAgent.platform.isIphone=function(){return f.labs.userAgent.util.matchUserAgent("iPhone")&&!f.labs.userAgent.util.matchUserAgent("iPod")&&!f.labs.userAgent.util.matchUserAgent("iPad")};f.labs.userAgent.platform.isIpad=function(){return f.labs.userAgent.util.matchUserAgent("iPad")};
f.labs.userAgent.platform.isIos=function(){return f.labs.userAgent.platform.isIphone()||f.labs.userAgent.platform.isIpad()||f.labs.userAgent.platform.isIpod()};f.labs.userAgent.platform.isMacintosh=function(){return f.labs.userAgent.util.matchUserAgent("Macintosh")};f.labs.userAgent.platform.isLinux=function(){return f.labs.userAgent.util.matchUserAgent("Linux")};f.labs.userAgent.platform.isWindows=function(){return f.labs.userAgent.util.matchUserAgent("Windows")};
f.labs.userAgent.platform.isChromeOS=function(){return f.labs.userAgent.util.matchUserAgent("CrOS")};f.labs.userAgent.platform.isChromecast=function(){return f.labs.userAgent.util.matchUserAgent("CrKey")};f.labs.userAgent.platform.isKaiOS=function(){return f.labs.userAgent.util.matchUserAgentIgnoreCase("KaiOS")};f.labs.userAgent.platform.isGo2Phone=function(){return f.labs.userAgent.util.matchUserAgentIgnoreCase("GAFP")};
f.labs.userAgent.platform.getVersion=function(){var a=f.labs.userAgent.util.getUserAgent(),b="";f.labs.userAgent.platform.isWindows()?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):f.labs.userAgent.platform.isIos()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):f.labs.userAgent.platform.isMacintosh()?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):f.labs.userAgent.platform.isKaiOS()?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&
a[1]):f.labs.userAgent.platform.isAndroid()?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):f.labs.userAgent.platform.isChromeOS()&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);return b||""};f.labs.userAgent.platform.isVersionOrHigher=function(a){return 0<=f.string.compareVersions(f.labs.userAgent.platform.getVersion(),a)};f.reflect={};f.reflect.object=function(a,b){return b};f.reflect.objectProperty=function(a){return a};f.reflect.sinkValue=function(a){f.reflect.sinkValue[" "](a);return a};f.reflect.sinkValue[" "]=f.nullFunction;f.reflect.canAccessProperty=function(a){try{return f.reflect.sinkValue(a.nodeName),!0}catch(b){}return!1};f.reflect.cache=function(a,b,c,g){g=g?g(b):b;return Object.prototype.hasOwnProperty.call(a,g)?a[g]:a[g]=c(b)};f.userAgent={};f.userAgent.ASSUME_IE=!1;f.userAgent.ASSUME_EDGE=!1;f.userAgent.ASSUME_GECKO=!1;f.userAgent.ASSUME_WEBKIT=!1;f.userAgent.ASSUME_MOBILE_WEBKIT=!1;f.userAgent.ASSUME_OPERA=!1;f.userAgent.ASSUME_ANY_VERSION=!1;f.userAgent.BROWSER_KNOWN_=f.userAgent.ASSUME_IE||f.userAgent.ASSUME_EDGE||f.userAgent.ASSUME_GECKO||f.userAgent.ASSUME_MOBILE_WEBKIT||f.userAgent.ASSUME_WEBKIT||f.userAgent.ASSUME_OPERA;f.userAgent.getUserAgentString=function(){return f.labs.userAgent.util.getUserAgent()};
f.userAgent.getNavigatorTyped=function(){return f.global.navigator||null};f.userAgent.getNavigator=function(){return f.userAgent.getNavigatorTyped()};f.userAgent.OPERA=f.userAgent.BROWSER_KNOWN_?f.userAgent.ASSUME_OPERA:f.labs.userAgent.browser.isOpera();f.userAgent.IE=f.userAgent.BROWSER_KNOWN_?f.userAgent.ASSUME_IE:f.labs.userAgent.browser.isIE();f.userAgent.EDGE=f.userAgent.BROWSER_KNOWN_?f.userAgent.ASSUME_EDGE:f.labs.userAgent.engine.isEdge();f.userAgent.EDGE_OR_IE=f.userAgent.EDGE||f.userAgent.IE;
f.userAgent.GECKO=f.userAgent.BROWSER_KNOWN_?f.userAgent.ASSUME_GECKO:f.labs.userAgent.engine.isGecko();f.userAgent.WEBKIT=f.userAgent.BROWSER_KNOWN_?f.userAgent.ASSUME_WEBKIT||f.userAgent.ASSUME_MOBILE_WEBKIT:f.labs.userAgent.engine.isWebKit();f.userAgent.isMobile_=function(){return f.userAgent.WEBKIT&&f.labs.userAgent.util.matchUserAgent("Mobile")};f.userAgent.MOBILE=f.userAgent.ASSUME_MOBILE_WEBKIT||f.userAgent.isMobile_();f.userAgent.SAFARI=f.userAgent.WEBKIT;
f.userAgent.determinePlatform_=function(){var a=f.userAgent.getNavigatorTyped();return a&&a.platform||""};f.userAgent.PLATFORM=f.userAgent.determinePlatform_();f.userAgent.ASSUME_MAC=!1;f.userAgent.ASSUME_WINDOWS=!1;f.userAgent.ASSUME_LINUX=!1;f.userAgent.ASSUME_X11=!1;f.userAgent.ASSUME_ANDROID=!1;f.userAgent.ASSUME_IPHONE=!1;f.userAgent.ASSUME_IPAD=!1;f.userAgent.ASSUME_IPOD=!1;f.userAgent.ASSUME_KAIOS=!1;f.userAgent.ASSUME_GO2PHONE=!1;
f.userAgent.PLATFORM_KNOWN_=f.userAgent.ASSUME_MAC||f.userAgent.ASSUME_WINDOWS||f.userAgent.ASSUME_LINUX||f.userAgent.ASSUME_X11||f.userAgent.ASSUME_ANDROID||f.userAgent.ASSUME_IPHONE||f.userAgent.ASSUME_IPAD||f.userAgent.ASSUME_IPOD;f.userAgent.MAC=f.userAgent.PLATFORM_KNOWN_?f.userAgent.ASSUME_MAC:f.labs.userAgent.platform.isMacintosh();f.userAgent.WINDOWS=f.userAgent.PLATFORM_KNOWN_?f.userAgent.ASSUME_WINDOWS:f.labs.userAgent.platform.isWindows();
f.userAgent.isLegacyLinux_=function(){return f.labs.userAgent.platform.isLinux()||f.labs.userAgent.platform.isChromeOS()};f.userAgent.LINUX=f.userAgent.PLATFORM_KNOWN_?f.userAgent.ASSUME_LINUX:f.userAgent.isLegacyLinux_();f.userAgent.isX11_=function(){var a=f.userAgent.getNavigatorTyped();return!!a&&f.string.contains(a.appVersion||"","X11")};f.userAgent.X11=f.userAgent.PLATFORM_KNOWN_?f.userAgent.ASSUME_X11:f.userAgent.isX11_();
f.userAgent.ANDROID=f.userAgent.PLATFORM_KNOWN_?f.userAgent.ASSUME_ANDROID:f.labs.userAgent.platform.isAndroid();f.userAgent.IPHONE=f.userAgent.PLATFORM_KNOWN_?f.userAgent.ASSUME_IPHONE:f.labs.userAgent.platform.isIphone();f.userAgent.IPAD=f.userAgent.PLATFORM_KNOWN_?f.userAgent.ASSUME_IPAD:f.labs.userAgent.platform.isIpad();f.userAgent.IPOD=f.userAgent.PLATFORM_KNOWN_?f.userAgent.ASSUME_IPOD:f.labs.userAgent.platform.isIpod();
f.userAgent.IOS=f.userAgent.PLATFORM_KNOWN_?f.userAgent.ASSUME_IPHONE||f.userAgent.ASSUME_IPAD||f.userAgent.ASSUME_IPOD:f.labs.userAgent.platform.isIos();f.userAgent.KAIOS=f.userAgent.PLATFORM_KNOWN_?f.userAgent.ASSUME_KAIOS:f.labs.userAgent.platform.isKaiOS();f.userAgent.GO2PHONE=f.userAgent.PLATFORM_KNOWN_?f.userAgent.ASSUME_GO2PHONE:f.labs.userAgent.platform.isGo2Phone();
f.userAgent.determineVersion_=function(){var a="",b=f.userAgent.getVersionRegexResult_();b&&(a=b?b[1]:"");return f.userAgent.IE&&(b=f.userAgent.getDocumentMode_(),null!=b&&b>parseFloat(a))?String(b):a};
f.userAgent.getVersionRegexResult_=function(){var a=f.userAgent.getUserAgentString();if(f.userAgent.GECKO)return/rv:([^\);]+)(\)|;)/.exec(a);if(f.userAgent.EDGE)return/Edge\/([\d\.]+)/.exec(a);if(f.userAgent.IE)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(f.userAgent.WEBKIT)return/WebKit\/(\S+)/.exec(a);if(f.userAgent.OPERA)return/(?:Version)[ \/]?(\S+)/.exec(a)};f.userAgent.getDocumentMode_=function(){var a=f.global.document;return a?a.documentMode:void 0};f.userAgent.VERSION=f.userAgent.determineVersion_();
f.userAgent.compare=function(a,b){return f.string.compareVersions(a,b)};f.userAgent.isVersionOrHigherCache_={};f.userAgent.isVersionOrHigher=function(a){return f.userAgent.ASSUME_ANY_VERSION||f.reflect.cache(f.userAgent.isVersionOrHigherCache_,a,function(){return 0<=f.string.compareVersions(f.userAgent.VERSION,a)})};f.userAgent.isVersion=f.userAgent.isVersionOrHigher;f.userAgent.isDocumentModeOrHigher=function(a){return Number(f.userAgent.DOCUMENT_MODE)>=a};f.userAgent.isDocumentMode=f.userAgent.isDocumentModeOrHigher;
var aa;aa=f.global.document&&f.userAgent.IE?f.userAgent.getDocumentMode_():void 0;f.userAgent.DOCUMENT_MODE=aa;f.debug.LOGGING_ENABLED=f.DEBUG;f.debug.FORCE_SLOPPY_STACKS=!1;f.debug.catchErrors=function(a,b,c){c=c||f.global;var g=c.onerror,h=!!b;f.userAgent.WEBKIT&&!f.userAgent.isVersionOrHigher("535.3")&&(h=!h);c.onerror=function(k,m,t,u,w){g&&g(k,m,t,u,w);a({message:k,fileName:m,line:t,lineNumber:t,col:u,error:w});return h}};
f.debug.expose=function(a,b){if("undefined"==typeof a)return"undefined";if(null==a)return"NULL";var c=[],g;for(g in a)if(b||!f.isFunction(a[g])){var h=g+" = ";try{h+=a[g]}catch(k){h+="*** "+k+" ***"}c.push(h)}return c.join("\n")};
f.debug.deepExpose=function(a,b){var c=[],g=[],h={},k=function(m,t){var u=t+"  ";try{if(void 0===m)c.push("undefined");else if(null===m)c.push("NULL");else if("string"===typeof m)c.push('"'+m.replace(/\n/g,"\n"+t)+'"');else if(f.isFunction(m))c.push(String(m).replace(/\n/g,"\n"+t));else if(f.isObject(m)){f.hasUid(m)||g.push(m);var w=f.getUid(m);if(h[w])c.push("*** reference loop detected (id="+w+") ***");else{h[w]=!0;c.push("{");for(var z in m)if(b||!f.isFunction(m[z]))c.push("\n"),c.push(u),c.push(z+
" = "),k(m[z],u);c.push("\n"+t+"}");delete h[w]}}else c.push(m)}catch(Q){c.push("*** "+Q+" ***")}};k(a,"");for(a=0;a<g.length;a++)f.removeUid(g[a]);return c.join("")};f.debug.exposeArray=function(a){for(var b=[],c=0;c<a.length;c++)f.isArray(a[c])?b.push(f.debug.exposeArray(a[c])):b.push(a[c]);return"[ "+b.join(", ")+" ]"};
f.debug.normalizeErrorObject=function(a){var b=f.getObjectByName("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var g=a.lineNumber||a.line||"Not available"}catch(k){g="Not available",c=!0}try{var h=a.fileName||a.filename||a.sourceURL||f.global.$googDebugFname||b}catch(k){h="Not available",c=!0}return!c&&a.lineNumber&&a.fileName&&a.stack&&
a.message&&a.name?a:(b=a.message,null==b&&(b=a.constructor&&a.constructor instanceof Function?'Unknown Error of type "'+(a.constructor.name?a.constructor.name:f.debug.getFunctionName(a.constructor))+'"':"Unknown Error of unknown type"),{message:b,name:a.name||"UnknownError",lineNumber:g,fileName:h,stack:a.stack||"Not available"})};
f.debug.enhanceError=function(a,b){a instanceof Error||(a=Error(a),Error.captureStackTrace&&Error.captureStackTrace(a,f.debug.enhanceError));a.stack||(a.stack=f.debug.getStacktrace(f.debug.enhanceError));if(b){for(var c=0;a["message"+c];)++c;a["message"+c]=String(b)}return a};f.debug.enhanceErrorWithContext=function(a,b){a=f.debug.enhanceError(a);if(b)for(var c in b)f.debug.errorcontext.addErrorContext(a,c,b[c]);return a};
f.debug.getStacktraceSimple=function(a){if(!f.debug.FORCE_SLOPPY_STACKS){var b=f.debug.getNativeStackTrace_(f.debug.getStacktraceSimple);if(b)return b}b=[];for(var c=arguments.callee.caller,g=0;c&&(!a||g<a);){b.push(f.debug.getFunctionName(c));b.push("()\n");try{c=c.caller}catch(h){b.push("[exception trying to get caller]\n");break}g++;if(g>=f.debug.MAX_STACK_DEPTH){b.push("[...long stack...]");break}}a&&g>=a?b.push("[...reached max depth limit...]"):b.push("[end]");return b.join("")};
f.debug.MAX_STACK_DEPTH=50;f.debug.getNativeStackTrace_=function(a){var b=Error();if(Error.captureStackTrace)return Error.captureStackTrace(b,a),String(b.stack);try{throw b;}catch(c){b=c}return(a=b.stack)?String(a):null};f.debug.getStacktrace=function(a){var b;f.debug.FORCE_SLOPPY_STACKS||(b=f.debug.getNativeStackTrace_(a||f.debug.getStacktrace));b||(b=f.debug.getStacktraceHelper_(a||arguments.callee.caller,[]));return b};
f.debug.getStacktraceHelper_=function(a,b){var c=[];if(f.array.contains(b,a))c.push("[...circular reference...]");else if(a&&b.length<f.debug.MAX_STACK_DEPTH){c.push(f.debug.getFunctionName(a)+"(");for(var g=a.arguments,h=0;g&&h<g.length;h++){0<h&&c.push(", ");var k=g[h];switch(typeof k){case "object":k=k?"object":"null";break;case "string":break;case "number":k=String(k);break;case "boolean":k=k?"true":"false";break;case "function":k=(k=f.debug.getFunctionName(k))?k:"[fn]";break;default:k=typeof k}40<
k.length&&(k=k.substr(0,40)+"...");c.push(k)}b.push(a);c.push(")\n");try{c.push(f.debug.getStacktraceHelper_(a.caller,b))}catch(m){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")};f.debug.getFunctionName=function(a){if(f.debug.fnNameCache_[a])return f.debug.fnNameCache_[a];a=String(a);if(!f.debug.fnNameCache_[a]){var b=/function\s+([^\(]+)/m.exec(a);f.debug.fnNameCache_[a]=b?b[1]:"[Anonymous]"}return f.debug.fnNameCache_[a]};
f.debug.makeWhitespaceVisible=function(a){return a.replace(/ /g,"[_]").replace(/\f/g,"[f]").replace(/\n/g,"[n]\n").replace(/\r/g,"[r]").replace(/\t/g,"[t]")};f.debug.runtimeType=function(a){return a instanceof Function?a.displayName||a.name||"unknown type name":a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):null===a?"null":typeof a};f.debug.fnNameCache_={};f.debug.freezeInternal_=f.DEBUG&&Object.freeze||function(a){return a};f.debug.freeze=function(a){return f.debug.freezeInternal_(a)};f.debug.entryPointRegistry={};f.debug.EntryPointMonitor=function(){};f.debug.entryPointRegistry.refList_=[];f.debug.entryPointRegistry.monitors_=[];f.debug.entryPointRegistry.monitorsMayExist_=!1;f.debug.entryPointRegistry.register=function(a){f.debug.entryPointRegistry.refList_[f.debug.entryPointRegistry.refList_.length]=a;if(f.debug.entryPointRegistry.monitorsMayExist_)for(var b=f.debug.entryPointRegistry.monitors_,c=0;c<b.length;c++)a(f.bind(b[c].wrap,b[c]))};
f.debug.entryPointRegistry.monitorAll=function(a){f.debug.entryPointRegistry.monitorsMayExist_=!0;for(var b=f.bind(a.wrap,a),c=0;c<f.debug.entryPointRegistry.refList_.length;c++)f.debug.entryPointRegistry.refList_[c](b);f.debug.entryPointRegistry.monitors_.push(a)};
f.debug.entryPointRegistry.unmonitorAllIfPossible=function(a){var b=f.debug.entryPointRegistry.monitors_;f.asserts.assert(a==b[b.length-1],"Only the most recent monitor can be unwrapped.");a=f.bind(a.unwrap,a);for(var c=0;c<f.debug.entryPointRegistry.refList_.length;c++)f.debug.entryPointRegistry.refList_[c](a);b.length--};f.disposable={};f.disposable.IDisposable=function(){};f.Disposable=function(){f.Disposable.MONITORING_MODE!=f.Disposable.MonitoringMode.OFF&&(f.Disposable.instances_[f.getUid(this)]=this);this.disposed_=this.disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};f.Disposable.MonitoringMode={OFF:0,PERMANENT:1,INTERACTIVE:2};f.Disposable.MONITORING_MODE=0;f.Disposable.INCLUDE_STACK_ON_CREATION=!0;f.Disposable.instances_={};
f.Disposable.getUndisposedObjects=function(){var a=[],b;for(b in f.Disposable.instances_)f.Disposable.instances_.hasOwnProperty(b)&&a.push(f.Disposable.instances_[Number(b)]);return a};f.Disposable.clearUndisposedObjects=function(){f.Disposable.instances_={}};f.Disposable.prototype.disposed_=!1;f.Disposable.prototype.isDisposed=function(){return this.disposed_};
f.Disposable.prototype.dispose=function(){if(!this.disposed_&&(this.disposed_=!0,this.disposeInternal(),f.Disposable.MONITORING_MODE!=f.Disposable.MonitoringMode.OFF)){var a=f.getUid(this);if(f.Disposable.MONITORING_MODE==f.Disposable.MonitoringMode.PERMANENT&&!f.Disposable.instances_.hasOwnProperty(a))throw Error(this+" did not call the goog.Disposable base constructor or was disposed of after a clearUndisposedObjects call");if(f.Disposable.MONITORING_MODE!=f.Disposable.MonitoringMode.OFF&&this.onDisposeCallbacks_&&
0<this.onDisposeCallbacks_.length)throw Error(this+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete f.Disposable.instances_[a]}};f.Disposable.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};f.Disposable.isDisposed=function(){return!1};f.dispose=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
f.disposeAll=function(a){for(var b=0,c=arguments.length;b<c;++b){var g=arguments[b];f.isArrayLike(g)?f.disposeAll.apply(null,g):f.dispose(g)}};f.events={};e.scope.purify=function(a){return{valueOf:a}.valueOf()};
f.events.BrowserFeature={HAS_W3C_BUTTON:!f.userAgent.IE||f.userAgent.isDocumentModeOrHigher(9),HAS_W3C_EVENT_SUPPORT:!f.userAgent.IE||f.userAgent.isDocumentModeOrHigher(9),SET_KEY_CODE_TO_PREVENT_DEFAULT:f.userAgent.IE&&!f.userAgent.isVersionOrHigher("9"),HAS_NAVIGATOR_ONLINE_PROPERTY:!f.userAgent.WEBKIT||f.userAgent.isVersionOrHigher("528"),HAS_HTML5_NETWORK_EVENT_SUPPORT:f.userAgent.GECKO&&f.userAgent.isVersionOrHigher("1.9b")||f.userAgent.IE&&f.userAgent.isVersionOrHigher("8")||f.userAgent.OPERA&&
f.userAgent.isVersionOrHigher("9.5")||f.userAgent.WEBKIT&&f.userAgent.isVersionOrHigher("528"),HTML5_NETWORK_EVENTS_FIRE_ON_BODY:f.userAgent.GECKO&&!f.userAgent.isVersionOrHigher("8")||f.userAgent.IE&&!f.userAgent.isVersionOrHigher("9"),TOUCH_ENABLED:"ontouchstart"in f.global||!!(f.global.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!f.global.navigator||!f.global.navigator.maxTouchPoints&&!f.global.navigator.msMaxTouchPoints),POINTER_EVENTS:"PointerEvent"in f.global,
MSPOINTER_EVENTS:"MSPointerEvent"in f.global&&!(!f.global.navigator||!f.global.navigator.msPointerEnabled),PASSIVE_EVENTS:(0,e.scope.purify)(function(){if(!f.global.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{f.global.addEventListener("test",f.nullFunction,b),f.global.removeEventListener("test",f.nullFunction,b)}catch(c){}return a})};f.events.EventId=function(a){this.id=a};f.events.EventId.prototype.toString=function(){return this.id};f.events.Event=function(a,b){this.type=a instanceof f.events.EventId?String(a):a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1;this.returnValue_=!0};f.events.Event.prototype.stopPropagation=function(){this.propagationStopped_=!0};f.events.Event.prototype.preventDefault=function(){this.defaultPrevented=!0;this.returnValue_=!1};f.events.Event.stopPropagation=function(a){a.stopPropagation()};f.events.Event.preventDefault=function(a){a.preventDefault()};f.events.getVendorPrefixedName_=function(a){return f.userAgent.WEBKIT?"webkit"+a:f.userAgent.OPERA?"o"+a.toLowerCase():a.toLowerCase()};
f.events.EventType={CLICK:"click",RIGHTCLICK:"rightclick",DBLCLICK:"dblclick",AUXCLICK:"auxclick",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEMOVE:"mousemove",MOUSEENTER:"mouseenter",MOUSELEAVE:"mouseleave",MOUSECANCEL:"mousecancel",SELECTIONCHANGE:"selectionchange",SELECTSTART:"selectstart",WHEEL:"wheel",KEYPRESS:"keypress",KEYDOWN:"keydown",KEYUP:"keyup",BLUR:"blur",FOCUS:"focus",DEACTIVATE:"deactivate",FOCUSIN:"focusin",FOCUSOUT:"focusout",CHANGE:"change",
RESET:"reset",SELECT:"select",SUBMIT:"submit",INPUT:"input",PROPERTYCHANGE:"propertychange",DRAGSTART:"dragstart",DRAG:"drag",DRAGENTER:"dragenter",DRAGOVER:"dragover",DRAGLEAVE:"dragleave",DROP:"drop",DRAGEND:"dragend",TOUCHSTART:"touchstart",TOUCHMOVE:"touchmove",TOUCHEND:"touchend",TOUCHCANCEL:"touchcancel",BEFOREUNLOAD:"beforeunload",CONSOLEMESSAGE:"consolemessage",CONTEXTMENU:"contextmenu",DEVICECHANGE:"devicechange",DEVICEMOTION:"devicemotion",DEVICEORIENTATION:"deviceorientation",DOMCONTENTLOADED:"DOMContentLoaded",
ERROR:"error",HELP:"help",LOAD:"load",LOSECAPTURE:"losecapture",ORIENTATIONCHANGE:"orientationchange",READYSTATECHANGE:"readystatechange",RESIZE:"resize",SCROLL:"scroll",UNLOAD:"unload",CANPLAY:"canplay",CANPLAYTHROUGH:"canplaythrough",DURATIONCHANGE:"durationchange",EMPTIED:"emptied",ENDED:"ended",LOADEDDATA:"loadeddata",LOADEDMETADATA:"loadedmetadata",PAUSE:"pause",PLAY:"play",PLAYING:"playing",RATECHANGE:"ratechange",SEEKED:"seeked",SEEKING:"seeking",STALLED:"stalled",SUSPEND:"suspend",TIMEUPDATE:"timeupdate",
VOLUMECHANGE:"volumechange",WAITING:"waiting",SOURCEOPEN:"sourceopen",SOURCEENDED:"sourceended",SOURCECLOSED:"sourceclosed",ABORT:"abort",UPDATE:"update",UPDATESTART:"updatestart",UPDATEEND:"updateend",HASHCHANGE:"hashchange",PAGEHIDE:"pagehide",PAGESHOW:"pageshow",POPSTATE:"popstate",COPY:"copy",PASTE:"paste",CUT:"cut",BEFORECOPY:"beforecopy",BEFORECUT:"beforecut",BEFOREPASTE:"beforepaste",ONLINE:"online",OFFLINE:"offline",MESSAGE:"message",CONNECT:"connect",INSTALL:"install",ACTIVATE:"activate",
FETCH:"fetch",FOREIGNFETCH:"foreignfetch",MESSAGEERROR:"messageerror",STATECHANGE:"statechange",UPDATEFOUND:"updatefound",CONTROLLERCHANGE:"controllerchange",ANIMATIONSTART:f.events.getVendorPrefixedName_("AnimationStart"),ANIMATIONEND:f.events.getVendorPrefixedName_("AnimationEnd"),ANIMATIONITERATION:f.events.getVendorPrefixedName_("AnimationIteration"),TRANSITIONEND:f.events.getVendorPrefixedName_("TransitionEnd"),POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTERCANCEL:"pointercancel",POINTERMOVE:"pointermove",
POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",GOTPOINTERCAPTURE:"gotpointercapture",LOSTPOINTERCAPTURE:"lostpointercapture",MSGESTURECHANGE:"MSGestureChange",MSGESTUREEND:"MSGestureEnd",MSGESTUREHOLD:"MSGestureHold",MSGESTURESTART:"MSGestureStart",MSGESTURETAP:"MSGestureTap",MSGOTPOINTERCAPTURE:"MSGotPointerCapture",MSINERTIASTART:"MSInertiaStart",MSLOSTPOINTERCAPTURE:"MSLostPointerCapture",MSPOINTERCANCEL:"MSPointerCancel",MSPOINTERDOWN:"MSPointerDown",
MSPOINTERENTER:"MSPointerEnter",MSPOINTERHOVER:"MSPointerHover",MSPOINTERLEAVE:"MSPointerLeave",MSPOINTERMOVE:"MSPointerMove",MSPOINTEROUT:"MSPointerOut",MSPOINTEROVER:"MSPointerOver",MSPOINTERUP:"MSPointerUp",TEXT:"text",TEXTINPUT:f.userAgent.IE?"textinput":"textInput",COMPOSITIONSTART:"compositionstart",COMPOSITIONUPDATE:"compositionupdate",COMPOSITIONEND:"compositionend",BEFOREINPUT:"beforeinput",EXIT:"exit",LOADABORT:"loadabort",LOADCOMMIT:"loadcommit",LOADREDIRECT:"loadredirect",LOADSTART:"loadstart",
LOADSTOP:"loadstop",RESPONSIVE:"responsive",SIZECHANGED:"sizechanged",UNRESPONSIVE:"unresponsive",VISIBILITYCHANGE:"visibilitychange",STORAGE:"storage",DOMSUBTREEMODIFIED:"DOMSubtreeModified",DOMNODEINSERTED:"DOMNodeInserted",DOMNODEREMOVED:"DOMNodeRemoved",DOMNODEREMOVEDFROMDOCUMENT:"DOMNodeRemovedFromDocument",DOMNODEINSERTEDINTODOCUMENT:"DOMNodeInsertedIntoDocument",DOMATTRMODIFIED:"DOMAttrModified",DOMCHARACTERDATAMODIFIED:"DOMCharacterDataModified",BEFOREPRINT:"beforeprint",AFTERPRINT:"afterprint",
BEFOREINSTALLPROMPT:"beforeinstallprompt",APPINSTALLED:"appinstalled"};f.events.getPointerFallbackEventName_=function(a,b,c){return f.events.BrowserFeature.POINTER_EVENTS?a:f.events.BrowserFeature.MSPOINTER_EVENTS?b:c};
f.events.PointerFallbackEventType={POINTERDOWN:f.events.getPointerFallbackEventName_(f.events.EventType.POINTERDOWN,f.events.EventType.MSPOINTERDOWN,f.events.EventType.MOUSEDOWN),POINTERUP:f.events.getPointerFallbackEventName_(f.events.EventType.POINTERUP,f.events.EventType.MSPOINTERUP,f.events.EventType.MOUSEUP),POINTERCANCEL:f.events.getPointerFallbackEventName_(f.events.EventType.POINTERCANCEL,f.events.EventType.MSPOINTERCANCEL,f.events.EventType.MOUSECANCEL),POINTERMOVE:f.events.getPointerFallbackEventName_(f.events.EventType.POINTERMOVE,
f.events.EventType.MSPOINTERMOVE,f.events.EventType.MOUSEMOVE),POINTEROVER:f.events.getPointerFallbackEventName_(f.events.EventType.POINTEROVER,f.events.EventType.MSPOINTEROVER,f.events.EventType.MOUSEOVER),POINTEROUT:f.events.getPointerFallbackEventName_(f.events.EventType.POINTEROUT,f.events.EventType.MSPOINTEROUT,f.events.EventType.MOUSEOUT),POINTERENTER:f.events.getPointerFallbackEventName_(f.events.EventType.POINTERENTER,f.events.EventType.MSPOINTERENTER,f.events.EventType.MOUSEENTER),POINTERLEAVE:f.events.getPointerFallbackEventName_(f.events.EventType.POINTERLEAVE,
f.events.EventType.MSPOINTERLEAVE,f.events.EventType.MOUSELEAVE)};
f.events.PointerTouchFallbackEventType={POINTERDOWN:f.events.getPointerFallbackEventName_(f.events.EventType.POINTERDOWN,f.events.EventType.MSPOINTERDOWN,f.events.EventType.TOUCHSTART),POINTERUP:f.events.getPointerFallbackEventName_(f.events.EventType.POINTERUP,f.events.EventType.MSPOINTERUP,f.events.EventType.TOUCHEND),POINTERCANCEL:f.events.getPointerFallbackEventName_(f.events.EventType.POINTERCANCEL,f.events.EventType.MSPOINTERCANCEL,f.events.EventType.TOUCHCANCEL),POINTERMOVE:f.events.getPointerFallbackEventName_(f.events.EventType.POINTERMOVE,
f.events.EventType.MSPOINTERMOVE,f.events.EventType.TOUCHMOVE)};f.events.PointerAsMouseEventType={MOUSEDOWN:f.events.PointerFallbackEventType.POINTERDOWN,MOUSEUP:f.events.PointerFallbackEventType.POINTERUP,MOUSECANCEL:f.events.PointerFallbackEventType.POINTERCANCEL,MOUSEMOVE:f.events.PointerFallbackEventType.POINTERMOVE,MOUSEOVER:f.events.PointerFallbackEventType.POINTEROVER,MOUSEOUT:f.events.PointerFallbackEventType.POINTEROUT,MOUSEENTER:f.events.PointerFallbackEventType.POINTERENTER,MOUSELEAVE:f.events.PointerFallbackEventType.POINTERLEAVE};
f.events.MouseAsMouseEventType={MOUSEDOWN:f.events.EventType.MOUSEDOWN,MOUSEUP:f.events.EventType.MOUSEUP,MOUSECANCEL:f.events.EventType.MOUSECANCEL,MOUSEMOVE:f.events.EventType.MOUSEMOVE,MOUSEOVER:f.events.EventType.MOUSEOVER,MOUSEOUT:f.events.EventType.MOUSEOUT,MOUSEENTER:f.events.EventType.MOUSEENTER,MOUSELEAVE:f.events.EventType.MOUSELEAVE};
f.events.PointerAsTouchEventType={TOUCHCANCEL:f.events.PointerTouchFallbackEventType.POINTERCANCEL,TOUCHEND:f.events.PointerTouchFallbackEventType.POINTERUP,TOUCHMOVE:f.events.PointerTouchFallbackEventType.POINTERMOVE,TOUCHSTART:f.events.PointerTouchFallbackEventType.POINTERDOWN};f.events.USE_LAYER_XY_AS_OFFSET_XY=!1;
f.events.BrowserEvent=function(a,b){f.events.Event.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.event_=null;if(a){var c=this.type=a.type,g=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||
a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?f.userAgent.GECKO&&(f.reflect.canAccessProperty(b)||(b=null)):c==f.events.EventType.MOUSEOVER?b=a.fromElement:c==f.events.EventType.MOUSEOUT&&(b=a.toElement);this.relatedTarget=b;g?(this.clientX=void 0!==g.clientX?g.clientX:g.pageX,this.clientY=void 0!==g.clientY?g.clientY:g.pageY,this.screenX=g.screenX||0,this.screenY=g.screenY||0):(f.events.USE_LAYER_XY_AS_OFFSET_XY?(this.offsetX=void 0!==a.layerX?a.layerX:a.offsetX,this.offsetY=void 0!==a.layerY?
a.layerY:a.offsetY):(this.offsetX=f.userAgent.WEBKIT||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=f.userAgent.WEBKIT||void 0!==a.offsetY?a.offsetY:a.layerY),this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;
this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=f.events.BrowserEvent.getPointerType_(a);this.state=a.state;this.event_=a;a.defaultPrevented&&this.preventDefault()}};f.inherits(f.events.BrowserEvent,f.events.Event);f.events.BrowserEvent.MouseButton={LEFT:0,MIDDLE:1,RIGHT:2};f.events.BrowserEvent.PointerType={MOUSE:"mouse",PEN:"pen",TOUCH:"touch"};f.events.BrowserEvent.IEButtonMap=f.debug.freeze([1,4,2]);f.events.BrowserEvent.IE_BUTTON_MAP=f.events.BrowserEvent.IEButtonMap;
f.events.BrowserEvent.IE_POINTER_TYPE_MAP=f.debug.freeze({2:f.events.BrowserEvent.PointerType.TOUCH,3:f.events.BrowserEvent.PointerType.PEN,4:f.events.BrowserEvent.PointerType.MOUSE});f.events.BrowserEvent.prototype.stopPropagation=function(){f.events.BrowserEvent.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
f.events.BrowserEvent.prototype.preventDefault=function(){f.events.BrowserEvent.superClass_.preventDefault.call(this);var a=this.event_;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,f.events.BrowserFeature.SET_KEY_CODE_TO_PREVENT_DEFAULT)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};f.events.BrowserEvent.getPointerType_=function(a){return"string"===typeof a.pointerType?a.pointerType:f.events.BrowserEvent.IE_POINTER_TYPE_MAP[a.pointerType]||""};f.events.Listenable=function(){};f.events.Listenable.IMPLEMENTED_BY_PROP="closure_listenable_"+(1E6*Math.random()|0);f.events.Listenable.addImplementation=function(a){a.prototype[f.events.Listenable.IMPLEMENTED_BY_PROP]=!0};f.events.Listenable.isImplementedBy=function(a){return!(!a||!a[f.events.Listenable.IMPLEMENTED_BY_PROP])};f.events.ListenableKey=function(){};f.events.ListenableKey.counter_=0;f.events.ListenableKey.reserveKey=function(){return++f.events.ListenableKey.counter_};f.events.Listener=function(a,b,c,g,h){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!g;this.handler=h;this.key=f.events.ListenableKey.reserveKey();this.removed=this.callOnce=!1};f.events.Listener.ENABLE_MONITORING=!1;var n=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=null};f.events.ListenerMap=function(a){this.src=a;this.listeners={};this.typeCount_=0};f.events.ListenerMap.prototype.add=function(a,b,c,g,h){var k=a.toString();a=this.listeners[k];a||(a=this.listeners[k]=[],this.typeCount_++);var m=f.events.ListenerMap.findListenerIndex_(a,b,g,h);-1<m?(b=a[m],c||(b.callOnce=!1)):(b=new f.events.Listener(b,this.src,k,!!g,h),b.callOnce=c,a.push(b));return b};
f.events.ListenerMap.prototype.remove=function(a,b,c,g){a=a.toString();if(!(a in this.listeners))return!1;var h=this.listeners[a];b=f.events.ListenerMap.findListenerIndex_(h,b,c,g);return-1<b?(n(h[b]),f.array.removeAt(h,b),0==h.length&&(delete this.listeners[a],this.typeCount_--),!0):!1};var ba=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var g=f.array.remove(a.listeners[c],b);g&&(n(b),0==a.listeners[c].length&&(delete a.listeners[c],a.typeCount_--));return g};
f.events.ListenerMap.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var g=this.listeners[c],h=0;h<g.length;h++)++b,n(g[h]);delete this.listeners[c];this.typeCount_--}return b};f.events.ListenerMap.prototype.getListeners=function(a,b){a=this.listeners[a.toString()];var c=[];if(a)for(var g=0;g<a.length;++g){var h=a[g];h.capture==b&&c.push(h)}return c};
f.events.ListenerMap.prototype.getListener=function(a,b,c,g){a=this.listeners[a.toString()];var h=-1;a&&(h=f.events.ListenerMap.findListenerIndex_(a,b,c,g));return-1<h?a[h]:null};f.events.ListenerMap.prototype.hasListener=function(a,b){var c=void 0!==a,g=c?a.toString():"",h=void 0!==b;return f.object.some(this.listeners,function(k){for(var m=0;m<k.length;++m)if(!(c&&k[m].type!=g||h&&k[m].capture!=b))return!0;return!1})};
f.events.ListenerMap.findListenerIndex_=function(a,b,c,g){for(var h=0;h<a.length;++h){var k=a[h];if(!k.removed&&k.listener==b&&k.capture==!!c&&k.handler==g)return h}return-1};f.events.LISTENER_MAP_PROP_="closure_lm_"+(1E6*Math.random()|0);f.events.onString_="on";f.events.onStringMap_={};f.events.CaptureSimulationMode={OFF_AND_FAIL:0,OFF_AND_SILENT:1,ON:2};f.events.CAPTURE_SIMULATION_MODE=2;f.events.listenerCountEstimate_=0;
f.events.listen=function(a,b,c,g,h){if(g&&g.once)return f.events.listenOnce(a,b,c,g,h);if(f.isArray(b)){for(var k=0;k<b.length;k++)f.events.listen(a,b[k],c,g,h);return null}c=f.events.wrapListener(c);return f.events.Listenable.isImplementedBy(a)?a.listen(b,c,f.isObject(g)?!!g.capture:!!g,h):f.events.listen_(a,b,c,!1,g,h)};
f.events.listen_=function(a,b,c,g,h,k){if(!b)throw Error("Invalid event type");var m=f.isObject(h)?!!h.capture:!!h;if(m&&!f.events.BrowserFeature.HAS_W3C_EVENT_SUPPORT){if(f.events.CAPTURE_SIMULATION_MODE==f.events.CaptureSimulationMode.OFF_AND_FAIL)return f.asserts.fail("Can not register capture listener in IE8-."),null;if(f.events.CAPTURE_SIMULATION_MODE==f.events.CaptureSimulationMode.OFF_AND_SILENT)return null}var t=f.events.getListenerMap_(a);t||(a[f.events.LISTENER_MAP_PROP_]=t=new f.events.ListenerMap(a));
c=t.add(b,c,g,m,k);if(c.proxy)return c;g=f.events.getProxy();c.proxy=g;g.src=a;g.listener=c;if(a.addEventListener)f.events.BrowserFeature.PASSIVE_EVENTS||(h=m),void 0===h&&(h=!1),a.addEventListener(b.toString(),g,h);else if(a.attachEvent)a.attachEvent(f.events.getOnString_(b.toString()),g);else if(a.addListener&&a.removeListener)f.asserts.assert("change"===b,"MediaQueryList only has a change event"),a.addListener(g);else throw Error("addEventListener and attachEvent are unavailable.");f.events.listenerCountEstimate_++;
return c};f.events.getProxy=function(){var a=f.events.handleBrowserEvent_,b=f.events.BrowserFeature.HAS_W3C_EVENT_SUPPORT?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b};
f.events.listenOnce=function(a,b,c,g,h){if(f.isArray(b)){for(var k=0;k<b.length;k++)f.events.listenOnce(a,b[k],c,g,h);return null}c=f.events.wrapListener(c);return f.events.Listenable.isImplementedBy(a)?a.listenOnce(b,c,f.isObject(g)?!!g.capture:!!g,h):f.events.listen_(a,b,c,!0,g,h)};f.events.listenWithWrapper=function(a,b,c,g,h){b.listen(a,c,g,h)};
f.events.unlisten=function(a,b,c,g,h){if(f.isArray(b)){for(var k=0;k<b.length;k++)f.events.unlisten(a,b[k],c,g,h);return null}g=f.isObject(g)?!!g.capture:!!g;c=f.events.wrapListener(c);if(f.events.Listenable.isImplementedBy(a))return a.unlisten(b,c,g,h);if(!a)return!1;if(a=f.events.getListenerMap_(a))if(b=a.getListener(b,c,g,h))return f.events.unlistenByKey(b);return!1};
f.events.unlistenByKey=function(a){if("number"===typeof a||!a||a.removed)return!1;var b=a.src;if(f.events.Listenable.isImplementedBy(b))return b.unlistenByKey(a);var c=a.type,g=a.proxy;b.removeEventListener?b.removeEventListener(c,g,a.capture):b.detachEvent?b.detachEvent(f.events.getOnString_(c),g):b.addListener&&b.removeListener&&b.removeListener(g);f.events.listenerCountEstimate_--;(c=f.events.getListenerMap_(b))?(ba(c,a),0==c.typeCount_&&(c.src=null,b[f.events.LISTENER_MAP_PROP_]=null)):n(a);return!0};
f.events.unlistenWithWrapper=function(a,b,c,g,h){b.unlisten(a,c,g,h)};f.events.removeAll=function(a,b){if(!a)return 0;if(f.events.Listenable.isImplementedBy(a))return a.eventTargetListeners_?a.eventTargetListeners_.removeAll(b):0;a=f.events.getListenerMap_(a);if(!a)return 0;var c=0;b=b&&b.toString();for(var g in a.listeners)if(!b||g==b)for(var h=a.listeners[g].concat(),k=0;k<h.length;++k)f.events.unlistenByKey(h[k])&&++c;return c};
f.events.getListeners=function(a,b){return f.events.Listenable.isImplementedBy(a)?a.getListeners(b,void 0):a?(a=f.events.getListenerMap_(a))?a.getListeners(b,void 0):[]:[]};f.events.getListener=function(a,b,c,g){c=f.events.wrapListener(c);g=!!g;return f.events.Listenable.isImplementedBy(a)?a.getListener(b,c,g,void 0):a?(a=f.events.getListenerMap_(a))?a.getListener(b,c,g,void 0):null:null};
f.events.hasListener=function(a,b,c){if(f.events.Listenable.isImplementedBy(a))return a.hasListener(b,c);a=f.events.getListenerMap_(a);return!!a&&a.hasListener(b,c)};f.events.expose=function(a){var b=[],c;for(c in a)a[c]&&a[c].id?b.push(c+" = "+a[c]+" ("+a[c].id+")"):b.push(c+" = "+a[c]);return b.join("\n")};f.events.getOnString_=function(a){return a in f.events.onStringMap_?f.events.onStringMap_[a]:f.events.onStringMap_[a]=f.events.onString_+a};
f.events.fireListeners=function(a,b,c){return f.events.Listenable.isImplementedBy(a)?a.fireListeners(b,c,void 0):f.events.fireListeners_(a,b,c,void 0)};f.events.fireListeners_=function(a,b,c,g){var h=!0;if(a=f.events.getListenerMap_(a))if(b=a.listeners[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var k=b[a];k&&k.capture==c&&!k.removed&&(k=f.events.fireListener(k,g),h=h&&!1!==k)}return h};
f.events.fireListener=function(a,b){var c=a.listener,g=a.handler||a.src;a.callOnce&&f.events.unlistenByKey(a);return c.call(g,b)};f.events.getTotalListenerCount=function(){return f.events.listenerCountEstimate_};f.events.dispatchEvent=function(a,b){f.asserts.assert(f.events.Listenable.isImplementedBy(a),"Can not use goog.events.dispatchEvent with non-goog.events.Listenable instance.");return a.dispatchEvent(b)};f.events.protectBrowserEventEntryPoint=function(a){f.events.handleBrowserEvent_=a.protectEntryPoint(f.events.handleBrowserEvent_)};
f.events.handleBrowserEvent_=function(a,b){if(a.removed)return!0;if(!f.events.BrowserFeature.HAS_W3C_EVENT_SUPPORT){var c=b||f.getObjectByName("window.event");b=new f.events.BrowserEvent(c,this);var g=!0;if(f.events.CAPTURE_SIMULATION_MODE==f.events.CaptureSimulationMode.ON){if(!f.events.isMarkedIeEvent_(c)){f.events.markIeEvent_(c);c=[];for(var h=b.currentTarget;h;h=h.parentNode)c.push(h);a=a.type;for(h=c.length-1;!b.propagationStopped_&&0<=h;h--){b.currentTarget=c[h];var k=f.events.fireListeners_(c[h],
a,!0,b);g=g&&k}for(h=0;!b.propagationStopped_&&h<c.length;h++)b.currentTarget=c[h],k=f.events.fireListeners_(c[h],a,!1,b),g=g&&k}}else g=f.events.fireListener(a,b);return g}return f.events.fireListener(a,new f.events.BrowserEvent(b,this))};f.events.markIeEvent_=function(a){var b=!1;if(0==a.keyCode)try{a.keyCode=-1;return}catch(c){b=!0}if(b||void 0==a.returnValue)a.returnValue=!0};f.events.isMarkedIeEvent_=function(a){return 0>a.keyCode||void 0!=a.returnValue};f.events.uniqueIdCounter_=0;
f.events.getUniqueId=function(a){return a+"_"+f.events.uniqueIdCounter_++};f.events.getListenerMap_=function(a){a=a[f.events.LISTENER_MAP_PROP_];return a instanceof f.events.ListenerMap?a:null};f.events.LISTENER_WRAPPER_PROP_="__closure_events_fn_"+(1E9*Math.random()>>>0);
f.events.wrapListener=function(a){f.asserts.assert(a,"Listener can not be null.");if(f.isFunction(a))return a;f.asserts.assert(a.handleEvent,"An object listener must have handleEvent method.");a[f.events.LISTENER_WRAPPER_PROP_]||(a[f.events.LISTENER_WRAPPER_PROP_]=function(b){return a.handleEvent(b)});return a[f.events.LISTENER_WRAPPER_PROP_]};f.debug.entryPointRegistry.register(function(a){f.events.handleBrowserEvent_=a(f.events.handleBrowserEvent_)});f.events.EventTarget=function(){f.Disposable.call(this);this.eventTargetListeners_=new f.events.ListenerMap(this);this.actualEventTarget_=this;this.parentEventTarget_=null};f.inherits(f.events.EventTarget,f.Disposable);f.events.Listenable.addImplementation(f.events.EventTarget);f.events.EventTarget.MAX_ANCESTORS_=1E3;d=f.events.EventTarget.prototype;d.addEventListener=function(a,b,c,g){f.events.listen(this,a,b,c,g)};d.removeEventListener=function(a,b,c,g){f.events.unlisten(this,a,b,c,g)};
d.dispatchEvent=function(a){ca(this);var b=this.parentEventTarget_;if(b){var c=[];for(var g=1;b;b=b.parentEventTarget_)c.push(b),f.asserts.assert(++g<f.events.EventTarget.MAX_ANCESTORS_,"infinite loop")}return f.events.EventTarget.dispatchEventInternal_(this.actualEventTarget_,a,c)};d.disposeInternal=function(){f.events.EventTarget.superClass_.disposeInternal.call(this);this.eventTargetListeners_&&this.eventTargetListeners_.removeAll(void 0);this.parentEventTarget_=null};
d.listen=function(a,b,c,g){ca(this);return this.eventTargetListeners_.add(String(a),b,!1,c,g)};d.listenOnce=function(a,b,c,g){return this.eventTargetListeners_.add(String(a),b,!0,c,g)};d.unlisten=function(a,b,c,g){return this.eventTargetListeners_.remove(String(a),b,c,g)};d.unlistenByKey=function(a){return ba(this.eventTargetListeners_,a)};
d.fireListeners=function(a,b,c){a=this.eventTargetListeners_.listeners[String(a)];if(!a)return!0;a=a.concat();for(var g=!0,h=0;h<a.length;++h){var k=a[h];if(k&&!k.removed&&k.capture==b){var m=k.listener,t=k.handler||k.src;k.callOnce&&this.unlistenByKey(k);g=!1!==m.call(t,c)&&g}}return g&&0!=c.returnValue_};d.getListeners=function(a,b){return this.eventTargetListeners_.getListeners(String(a),b)};d.getListener=function(a,b,c,g){return this.eventTargetListeners_.getListener(String(a),b,c,g)};
d.hasListener=function(a,b){return this.eventTargetListeners_.hasListener(void 0!==a?String(a):void 0,b)};var ca=function(a){f.asserts.assert(a.eventTargetListeners_,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};
f.events.EventTarget.dispatchEventInternal_=function(a,b,c){var g=b.type||b;if("string"===typeof b)b=new f.events.Event(b,a);else if(b instanceof f.events.Event)b.target=b.target||a;else{var h=b;b=new f.events.Event(g,a);f.object.extend(b,h)}h=!0;if(c)for(var k=c.length-1;!b.propagationStopped_&&0<=k;k--){var m=b.currentTarget=c[k];h=m.fireListeners(g,!0,b)&&h}b.propagationStopped_||(m=b.currentTarget=a,h=m.fireListeners(g,!0,b)&&h,b.propagationStopped_||(h=m.fireListeners(g,!1,b)&&h));if(c)for(k=
0;!b.propagationStopped_&&k<c.length;k++)m=b.currentTarget=c[k],h=m.fireListeners(g,!1,b)&&h;return h};f.math={};f.math.randomInt=function(a){return Math.floor(Math.random()*a)};f.math.uniformRandom=function(a,b){return a+Math.random()*(b-a)};f.math.clamp=function(a,b,c){return Math.min(Math.max(a,b),c)};f.math.modulo=function(a,b){a%=b;return 0>a*b?a+b:a};f.math.lerp=function(a,b,c){return a+c*(b-a)};f.math.nearlyEquals=function(a,b,c){return Math.abs(a-b)<=(c||1E-6)};f.math.standardAngle=function(a){return f.math.modulo(a,360)};f.math.standardAngleInRadians=function(a){return f.math.modulo(a,2*Math.PI)};
f.math.toRadians=function(a){return a*Math.PI/180};f.math.toDegrees=function(a){return 180*a/Math.PI};f.math.angleDx=function(a,b){return b*Math.cos(f.math.toRadians(a))};f.math.angleDy=function(a,b){return b*Math.sin(f.math.toRadians(a))};f.math.angle=function(a,b,c,g){return f.math.standardAngle(f.math.toDegrees(Math.atan2(g-b,c-a)))};f.math.angleDifference=function(a,b){a=f.math.standardAngle(b)-f.math.standardAngle(a);180<a?a-=360:-180>=a&&(a=360+a);return a};
f.math.sign=function(a){return 0<a?1:0>a?-1:a};f.math.longestCommonSubsequence=function(a,b,c,g){c=c||function(z,Q){return z==Q};g=g||function(z){return a[z]};for(var h=a.length,k=b.length,m=[],t=0;t<h+1;t++)m[t]=[],m[t][0]=0;for(var u=0;u<k+1;u++)m[0][u]=0;for(t=1;t<=h;t++)for(u=1;u<=k;u++)c(a[t-1],b[u-1])?m[t][u]=m[t-1][u-1]+1:m[t][u]=Math.max(m[t-1][u],m[t][u-1]);var w=[];t=h;for(u=k;0<t&&0<u;)c(a[t-1],b[u-1])?(w.unshift(g(t-1,u-1)),t--,u--):m[t-1][u]>m[t][u-1]?t--:u--;return w};
f.math.sum=function(a){return f.array.reduce(arguments,function(b,c){return b+c},0)};f.math.average=function(a){return f.math.sum.apply(null,arguments)/arguments.length};f.math.sampleVariance=function(a){var b=arguments.length;if(2>b)return 0;var c=f.math.average.apply(null,arguments);return f.math.sum.apply(null,f.array.map(arguments,function(g){return Math.pow(g-c,2)}))/(b-1)};f.math.standardDeviation=function(a){return Math.sqrt(f.math.sampleVariance.apply(null,arguments))};
f.math.isInt=function(a){return isFinite(a)&&0==a%1};f.math.isFiniteNumber=function(a){return isFinite(a)};f.math.isNegativeZero=function(a){return 0==a&&0>1/a};f.math.log10Floor=function(a){if(0<a){var b=Math.round(Math.log(a)*Math.LOG10E);return b-(parseFloat("1e"+b)>a?1:0)}return 0==a?-Infinity:NaN};f.math.safeFloor=function(a,b){f.asserts.assert(void 0===b||0<b);return Math.floor(a+(b||2E-15))};f.math.safeCeil=function(a,b){f.asserts.assert(void 0===b||0<b);return Math.ceil(a-(b||2E-15))};f.iter={};f.iter.StopIteration="StopIteration"in f.global?f.global.StopIteration:{message:"StopIteration",stack:""};f.iter.Iterator=function(){};f.iter.Iterator.prototype.next=function(){throw f.iter.StopIteration;};f.iter.Iterator.prototype.__iterator__=function(){return this};
f.iter.toIterator=function(a){if(a instanceof f.iter.Iterator)return a;if("function"==typeof a.__iterator__)return a.__iterator__(!1);if(f.isArrayLike(a)){var b=0,c=new f.iter.Iterator;c.next=function(){for(;;){if(b>=a.length)throw f.iter.StopIteration;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");};
f.iter.forEach=function(a,b,c){if(f.isArrayLike(a))try{f.array.forEach(a,b,c)}catch(g){if(g!==f.iter.StopIteration)throw g;}else{a=f.iter.toIterator(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(g){if(g!==f.iter.StopIteration)throw g;}}};f.iter.filter=function(a,b,c){var g=f.iter.toIterator(a);a=new f.iter.Iterator;a.next=function(){for(;;){var h=g.next();if(b.call(c,h,void 0,g))return h}};return a};f.iter.filterFalse=function(a,b,c){return f.iter.filter(a,f.functions.not(b),c)};
f.iter.range=function(a,b,c){var g=0,h=a,k=c||1;1<arguments.length&&(g=a,h=+b);if(0==k)throw Error("Range step argument must not be zero");var m=new f.iter.Iterator;m.next=function(){if(0<k&&g>=h||0>k&&g<=h)throw f.iter.StopIteration;var t=g;g+=k;return t};return m};f.iter.join=function(a,b){return f.iter.toArray(a).join(b)};f.iter.map=function(a,b,c){var g=f.iter.toIterator(a);a=new f.iter.Iterator;a.next=function(){var h=g.next();return b.call(c,h,void 0,g)};return a};
f.iter.reduce=function(a,b,c,g){var h=c;f.iter.forEach(a,function(k){h=b.call(g,h,k)});return h};f.iter.some=function(a,b,c){a=f.iter.toIterator(a);try{for(;;)if(b.call(c,a.next(),void 0,a))return!0}catch(g){if(g!==f.iter.StopIteration)throw g;}return!1};f.iter.every=function(a,b,c){a=f.iter.toIterator(a);try{for(;;)if(!b.call(c,a.next(),void 0,a))return!1}catch(g){if(g!==f.iter.StopIteration)throw g;}return!0};f.iter.chain=function(a){return f.iter.chainFromIterable(arguments)};
f.iter.chainFromIterable=function(a){var b=f.iter.toIterator(a);a=new f.iter.Iterator;var c=null;a.next=function(){for(;;){if(null==c){var g=b.next();c=f.iter.toIterator(g)}try{return c.next()}catch(h){if(h!==f.iter.StopIteration)throw h;c=null}}};return a};f.iter.dropWhile=function(a,b,c){var g=f.iter.toIterator(a);a=new f.iter.Iterator;var h=!0;a.next=function(){for(;;){var k=g.next();if(!h||!b.call(c,k,void 0,g))return h=!1,k}};return a};
f.iter.takeWhile=function(a,b,c){var g=f.iter.toIterator(a);a=new f.iter.Iterator;a.next=function(){var h=g.next();if(b.call(c,h,void 0,g))return h;throw f.iter.StopIteration;};return a};f.iter.toArray=function(a){if(f.isArrayLike(a))return f.array.toArray(a);a=f.iter.toIterator(a);var b=[];f.iter.forEach(a,function(c){b.push(c)});return b};f.iter.equals=function(a,b){a=f.iter.zipLongest({},a,b);var c=f.array.defaultCompareEquality;return f.iter.every(a,function(g){return c(g[0],g[1])})};
f.iter.nextOrValue=function(a){try{f.iter.toIterator(a).next()}catch(b){if(b!=f.iter.StopIteration)throw b;}};
f.iter.product=function(a){if(f.array.some(arguments,function(h){return!h.length})||!arguments.length)return new f.iter.Iterator;var b=new f.iter.Iterator,c=arguments,g=f.array.repeat(0,c.length);b.next=function(){if(g){for(var h=f.array.map(g,function(m,t){return c[t][m]}),k=g.length-1;0<=k;k--){f.asserts.assert(g);if(g[k]<c[k].length-1){g[k]++;break}if(0==k){g=null;break}g[k]=0}return h}throw f.iter.StopIteration;};return b};
f.iter.cycle=function(a){var b=f.iter.toIterator(a),c=[],g=0;a=new f.iter.Iterator;var h=!1;a.next=function(){var k=null;if(!h)try{return k=b.next(),c.push(k),k}catch(m){if(m!=f.iter.StopIteration||f.array.isEmpty(c))throw m;h=!0}k=c[g];g=(g+1)%c.length;return k};return a};f.iter.count=function(a,b){var c=a||0,g=void 0!==b?b:1;a=new f.iter.Iterator;a.next=function(){var h=c;c+=g;return h};return a};f.iter.repeat=function(a){var b=new f.iter.Iterator;b.next=f.functions.constant(a);return b};
f.iter.accumulate=function(a){var b=f.iter.toIterator(a),c=0;a=new f.iter.Iterator;a.next=function(){return c+=b.next()};return a};f.iter.zip=function(a){var b=arguments,c=new f.iter.Iterator;if(0<b.length){var g=f.array.map(b,f.iter.toIterator);c.next=function(){return f.array.map(g,function(h){return h.next()})}}return c};
f.iter.zipLongest=function(a,b){var c=f.array.slice(arguments,1),g=new f.iter.Iterator;if(0<c.length){var h=f.array.map(c,f.iter.toIterator);g.next=function(){var k=!1,m=f.array.map(h,function(t){try{var u=t.next();k=!0}catch(w){if(w!==f.iter.StopIteration)throw w;u=a}return u});if(!k)throw f.iter.StopIteration;return m}}return g};f.iter.compress=function(a,b){var c=f.iter.toIterator(b);return f.iter.filter(a,function(){return!!c.next()})};
f.iter.GroupByIterator_=function(a,b){this.iterator=f.iter.toIterator(a);this.keyFunc=b||f.functions.identity};f.inherits(f.iter.GroupByIterator_,f.iter.Iterator);
f.iter.GroupByIterator_.prototype.next=function(){for(;this.currentKey==this.targetKey;)this.currentValue=this.iterator.next(),this.currentKey=this.keyFunc(this.currentValue);for(var a=this.targetKey=this.currentKey,b=this.targetKey,c=[];this.currentKey==b;){c.push(this.currentValue);try{this.currentValue=this.iterator.next()}catch(g){if(g!==f.iter.StopIteration)throw g;break}this.currentKey=this.keyFunc(this.currentValue)}return[a,c]};
f.iter.groupBy=function(a,b){return new f.iter.GroupByIterator_(a,b)};f.iter.starMap=function(a,b,c){var g=f.iter.toIterator(a);a=new f.iter.Iterator;a.next=function(){var h=f.iter.toArray(g.next());return b.apply(c,f.array.concat(h,void 0,g))};return a};
f.iter.tee=function(a,b){var c=f.iter.toIterator(a),g=f.array.map(f.array.range("number"===typeof b?b:2),function(){return[]}),h=function(){var k=c.next();f.array.forEach(g,function(m){m.push(k)})};return f.array.map(g,function(k){var m=new f.iter.Iterator;m.next=function(){f.array.isEmpty(k)&&h();f.asserts.assert(!f.array.isEmpty(k));return k.shift()};return m})};f.iter.enumerate=function(a,b){return f.iter.zip(f.iter.count(b),a)};
f.iter.limit=function(a,b){f.asserts.assert(f.math.isInt(b)&&0<=b);var c=f.iter.toIterator(a);a=new f.iter.Iterator;var g=b;a.next=function(){if(0<g--)return c.next();throw f.iter.StopIteration;};return a};f.iter.consume=function(a,b){f.asserts.assert(f.math.isInt(b)&&0<=b);for(a=f.iter.toIterator(a);0<b--;)f.iter.nextOrValue(a);return a};
f.iter.slice=function(a,b,c){f.asserts.assert(f.math.isInt(b)&&0<=b);a=f.iter.consume(a,b);"number"===typeof c&&(f.asserts.assert(f.math.isInt(c)&&c>=b),a=f.iter.limit(a,c-b));return a};f.iter.hasDuplicates_=function(a){var b=[];f.array.removeDuplicates(a,b);return a.length!=b.length};f.iter.permutations=function(a,b){a=f.iter.toArray(a);b=f.array.repeat(a,"number"===typeof b?b:a.length);b=f.iter.product.apply(void 0,b);return f.iter.filter(b,function(c){return!f.iter.hasDuplicates_(c)})};
f.iter.combinations=function(a,b){function c(k){return g[k]}var g=f.iter.toArray(a);a=f.iter.range(g.length);b=f.iter.permutations(a,b);var h=f.iter.filter(b,function(k){return f.array.isSorted(k)});b=new f.iter.Iterator;b.next=function(){return f.array.map(h.next(),c)};return b};
f.iter.combinationsWithReplacement=function(a,b){function c(k){return g[k]}var g=f.iter.toArray(a);a=f.array.range(g.length);b=f.array.repeat(a,b);b=f.iter.product.apply(void 0,b);var h=f.iter.filter(b,function(k){return f.array.isSorted(k)});b=new f.iter.Iterator;b.next=function(){return f.array.map(h.next(),c)};return b};f.structs={};f.structs.Map=function(a,b){this.map_={};this.keys_=[];this.version_=this.count_=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var g=0;g<c;g+=2)this.set(arguments[g],arguments[g+1])}else a&&this.addAll(a)};d=f.structs.Map.prototype;d.getCount=function(){return this.count_};d.getValues=function(){p(this);for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a};d.getKeys=function(){p(this);return this.keys_.concat()};
d.containsKey=function(a){return f.structs.Map.hasKey_(this.map_,a)};d.containsValue=function(a){for(var b=0;b<this.keys_.length;b++){var c=this.keys_[b];if(f.structs.Map.hasKey_(this.map_,c)&&this.map_[c]==a)return!0}return!1};d.equals=function(a,b){if(this===a)return!0;if(this.count_!=a.getCount())return!1;b=b||f.structs.Map.defaultEquals;p(this);for(var c,g=0;c=this.keys_[g];g++)if(!b(this.get(c),a.get(c)))return!1;return!0};f.structs.Map.defaultEquals=function(a,b){return a===b};
f.structs.Map.prototype.isEmpty=function(){return 0==this.count_};f.structs.Map.prototype.clear=function(){this.map_={};this.version_=this.count_=this.keys_.length=0};f.structs.Map.prototype.remove=function(a){return f.structs.Map.hasKey_(this.map_,a)?(delete this.map_[a],this.count_--,this.version_++,this.keys_.length>2*this.count_&&p(this),!0):!1};
var p=function(a){if(a.count_!=a.keys_.length){for(var b=0,c=0;b<a.keys_.length;){var g=a.keys_[b];f.structs.Map.hasKey_(a.map_,g)&&(a.keys_[c++]=g);b++}a.keys_.length=c}if(a.count_!=a.keys_.length){var h={};for(c=b=0;b<a.keys_.length;)g=a.keys_[b],f.structs.Map.hasKey_(h,g)||(a.keys_[c++]=g,h[g]=1),b++;a.keys_.length=c}};d=f.structs.Map.prototype;d.get=function(a,b){return f.structs.Map.hasKey_(this.map_,a)?this.map_[a]:b};
d.set=function(a,b){f.structs.Map.hasKey_(this.map_,a)||(this.count_++,this.keys_.push(a),this.version_++);this.map_[a]=b};d.addAll=function(a){if(a instanceof f.structs.Map)for(var b=a.getKeys(),c=0;c<b.length;c++)this.set(b[c],a.get(b[c]));else for(b in a)this.set(b,a[b])};d.forEach=function(a,b){for(var c=this.getKeys(),g=0;g<c.length;g++){var h=c[g],k=this.get(h);a.call(b,k,h,this)}};d.clone=function(){return new f.structs.Map(this)};
d.transpose=function(){for(var a=new f.structs.Map,b=0;b<this.keys_.length;b++){var c=this.keys_[b];a.set(this.map_[c],c)}return a};d.toObject=function(){p(this);for(var a={},b=0;b<this.keys_.length;b++){var c=this.keys_[b];a[c]=this.map_[c]}return a};
d.__iterator__=function(a){p(this);var b=0,c=this.version_,g=this,h=new f.iter.Iterator;h.next=function(){if(c!=g.version_)throw Error("The map has changed since the iterator was created");if(b>=g.keys_.length)throw f.iter.StopIteration;var k=g.keys_[b++];return a?k:g.map_[k]};return h};f.structs.Map.hasKey_=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};f.structs.LinkedMap=function(a){this.maxCount_=a||null;this.cache_=!0;this.evictionCallback_=void 0;this.map_=new f.structs.Map;this.head_=new f.structs.LinkedMap.Node_("",void 0);this.head_.next=this.head_.prev=this.head_};var ea=function(a,b){(b=a.map_.get(b))&&a.cache_&&(b.remove(),da(a,b));return b};d=f.structs.LinkedMap.prototype;d.get=function(a,b){return(a=ea(this,a))?a.value:b};
d.set=function(a,b){var c=ea(this,a);c?c.value=b:(c=new f.structs.LinkedMap.Node_(a,b),this.map_.set(a,c),da(this,c))};d.peek=function(){return this.head_.next.value};d.shift=function(){return fa(this,this.head_.next)};d.pop=function(){return fa(this,this.head_.prev)};d.remove=function(a){return(a=this.map_.get(a))?(this.removeNode(a),!0):!1};d.removeNode=function(a){a.remove();this.map_.remove(a.key)};d.getCount=function(){return this.map_.getCount()};d.isEmpty=function(){return this.map_.isEmpty()};
d.getKeys=function(){return this.map(function(a,b){return b})};d.getValues=function(){return this.map(function(a){return a})};d.contains=function(a){return this.some(function(b){return b==a})};d.containsKey=function(a){return this.map_.containsKey(a)};d.clear=function(){ha(this,0)};d.forEach=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)a.call(b,c.value,c.key,this)};d.map=function(a,b){for(var c=[],g=this.head_.next;g!=this.head_;g=g.next)c.push(a.call(b,g.value,g.key,this));return c};
d.some=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1};d.every=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};
var da=function(a,b){a.cache_?(b.next=a.head_.next,b.prev=a.head_,a.head_.next=b,b.next.prev=b):(b.prev=a.head_.prev,b.next=a.head_,a.head_.prev=b,b.prev.next=b);null!=a.maxCount_&&ha(a,a.maxCount_)},ha=function(a,b){for(;a.getCount()>b;){var c=a.cache_?a.head_.prev:a.head_.next;a.removeNode(c);a.evictionCallback_&&a.evictionCallback_(c.key,c.value)}},fa=function(a,b){a.head_!=b&&a.removeNode(b);return b.value};f.structs.LinkedMap.Node_=function(a,b){this.key=a;this.value=b};
f.structs.LinkedMap.Node_.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};l.LicensesCache=function(a,b){f.events.EventTarget.call(this);this.timeout_=a||36E5;this.cache_=new f.structs.LinkedMap(b||100)};e.inherits(l.LicensesCache,f.events.EventTarget);l.LicensesCache.prototype.get=function(a){a=this.cache_.get(a);var b;if(b=a)b=this.timeout_,b=f.now()-a.timeStamp_<=b;return b?a.licenses_:null};l.LicensesCache.prototype.remove=function(a){this.cache_.remove(a)};l.LicensesCache.Entry=function(a){this.timeStamp_=f.now();this.licenses_=a};f.structs.getCount=function(a){return a.getCount&&"function"==typeof a.getCount?a.getCount():f.isArrayLike(a)||"string"===typeof a?a.length:f.object.getCount(a)};f.structs.getValues=function(a){if(a.getValues&&"function"==typeof a.getValues)return a.getValues();if("string"===typeof a)return a.split("");if(f.isArrayLike(a)){for(var b=[],c=a.length,g=0;g<c;g++)b.push(a[g]);return b}return f.object.getValues(a)};
f.structs.getKeys=function(a){if(a.getKeys&&"function"==typeof a.getKeys)return a.getKeys();if(!a.getValues||"function"!=typeof a.getValues){if(f.isArrayLike(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return f.object.getKeys(a)}};
f.structs.contains=function(a,b){return a.contains&&"function"==typeof a.contains?a.contains(b):a.containsValue&&"function"==typeof a.containsValue?a.containsValue(b):f.isArrayLike(a)||"string"===typeof a?f.array.contains(a,b):f.object.containsValue(a,b)};f.structs.isEmpty=function(a){return a.isEmpty&&"function"==typeof a.isEmpty?a.isEmpty():f.isArrayLike(a)||"string"===typeof a?f.array.isEmpty(a):f.object.isEmpty(a)};
f.structs.clear=function(a){a.clear&&"function"==typeof a.clear?a.clear():f.isArrayLike(a)?f.array.clear(a):f.object.clear(a)};f.structs.forEach=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(f.isArrayLike(a)||"string"===typeof a)f.array.forEach(a,b,c);else for(var g=f.structs.getKeys(a),h=f.structs.getValues(a),k=h.length,m=0;m<k;m++)b.call(c,h[m],g&&g[m],a)};
f.structs.filter=function(a,b,c){if("function"==typeof a.filter)return a.filter(b,c);if(f.isArrayLike(a)||"string"===typeof a)return f.array.filter(a,b,c);var g=f.structs.getKeys(a),h=f.structs.getValues(a),k=h.length;if(g){var m={};for(var t=0;t<k;t++)b.call(c,h[t],g[t],a)&&(m[g[t]]=h[t])}else for(m=[],t=0;t<k;t++)b.call(c,h[t],void 0,a)&&m.push(h[t]);return m};
f.structs.map=function(a,b,c){if("function"==typeof a.map)return a.map(b,c);if(f.isArrayLike(a)||"string"===typeof a)return f.array.map(a,b,c);var g=f.structs.getKeys(a),h=f.structs.getValues(a),k=h.length;if(g){var m={};for(var t=0;t<k;t++)m[g[t]]=b.call(c,h[t],g[t],a)}else for(m=[],t=0;t<k;t++)m[t]=b.call(c,h[t],void 0,a);return m};
f.structs.some=function(a,b,c){if("function"==typeof a.some)return a.some(b,c);if(f.isArrayLike(a)||"string"===typeof a)return f.array.some(a,b,c);for(var g=f.structs.getKeys(a),h=f.structs.getValues(a),k=h.length,m=0;m<k;m++)if(b.call(c,h[m],g&&g[m],a))return!0;return!1};
f.structs.every=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(f.isArrayLike(a)||"string"===typeof a)return f.array.every(a,b,c);for(var g=f.structs.getKeys(a),h=f.structs.getValues(a),k=h.length,m=0;m<k;m++)if(!b.call(c,h[m],g&&g[m],a))return!1;return!0};f.uri={};f.uri.utils={};f.uri.utils.CharCode_={AMPERSAND:38,EQUAL:61,HASH:35,QUESTION:63};f.uri.utils.buildFromEncodedParts=function(a,b,c,g,h,k,m){var t="";a&&(t+=a+":");c&&(t+="//",b&&(t+=b+"@"),t+=c,g&&(t+=":"+g));h&&(t+=h);k&&(t+="?"+k);m&&(t+="#"+m);return t};f.uri.utils.splitRe_=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;f.uri.utils.ComponentIndex={SCHEME:1,USER_INFO:2,DOMAIN:3,PORT:4,PATH:5,QUERY_DATA:6,FRAGMENT:7};
f.uri.utils.split=function(a){return a.match(f.uri.utils.splitRe_)};f.uri.utils.decodeIfPossible_=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):a};f.uri.utils.getComponentByIndex_=function(a,b){return f.uri.utils.split(b)[a]||null};f.uri.utils.getScheme=function(a){return f.uri.utils.getComponentByIndex_(f.uri.utils.ComponentIndex.SCHEME,a)};
f.uri.utils.getEffectiveScheme=function(a){a=f.uri.utils.getScheme(a);!a&&f.global.self&&f.global.self.location&&(a=f.global.self.location.protocol,a=a.substr(0,a.length-1));return a?a.toLowerCase():""};f.uri.utils.getUserInfoEncoded=function(){return f.uri.utils.getComponentByIndex_(f.uri.utils.ComponentIndex.USER_INFO,void 0)};f.uri.utils.getUserInfo=function(){return f.uri.utils.decodeIfPossible_(f.uri.utils.getUserInfoEncoded())};
f.uri.utils.getDomainEncoded=function(){return f.uri.utils.getComponentByIndex_(f.uri.utils.ComponentIndex.DOMAIN,void 0)};f.uri.utils.getDomain=function(){return f.uri.utils.decodeIfPossible_(f.uri.utils.getDomainEncoded(),!0)};f.uri.utils.getPort=function(){return Number(f.uri.utils.getComponentByIndex_(f.uri.utils.ComponentIndex.PORT,void 0))||null};f.uri.utils.getPathEncoded=function(){return f.uri.utils.getComponentByIndex_(f.uri.utils.ComponentIndex.PATH,void 0)};
f.uri.utils.getPath=function(){return f.uri.utils.decodeIfPossible_(f.uri.utils.getPathEncoded(),!0)};f.uri.utils.getQueryData=function(){return f.uri.utils.getComponentByIndex_(f.uri.utils.ComponentIndex.QUERY_DATA,void 0)};f.uri.utils.getFragmentEncoded=function(){var a=(void 0).indexOf("#");return 0>a?null:(void 0).substr(a+1)};f.uri.utils.setFragmentEncoded=function(a,b){return f.uri.utils.removeFragment(a)+(b?"#"+b:"")};f.uri.utils.getFragment=function(){return f.uri.utils.decodeIfPossible_(f.uri.utils.getFragmentEncoded())};
f.uri.utils.getHost=function(a){a=f.uri.utils.split(a);return f.uri.utils.buildFromEncodedParts(a[f.uri.utils.ComponentIndex.SCHEME],a[f.uri.utils.ComponentIndex.USER_INFO],a[f.uri.utils.ComponentIndex.DOMAIN],a[f.uri.utils.ComponentIndex.PORT])};f.uri.utils.getOrigin=function(a){a=f.uri.utils.split(a);return f.uri.utils.buildFromEncodedParts(a[f.uri.utils.ComponentIndex.SCHEME],null,a[f.uri.utils.ComponentIndex.DOMAIN],a[f.uri.utils.ComponentIndex.PORT])};
f.uri.utils.getPathAndAfter=function(a){a=f.uri.utils.split(a);return f.uri.utils.buildFromEncodedParts(null,null,null,null,a[f.uri.utils.ComponentIndex.PATH],a[f.uri.utils.ComponentIndex.QUERY_DATA],a[f.uri.utils.ComponentIndex.FRAGMENT])};f.uri.utils.removeFragment=function(a){var b=a.indexOf("#");return 0>b?a:a.substr(0,b)};
f.uri.utils.haveSameDomain=function(a,b){a=f.uri.utils.split(a);b=f.uri.utils.split(b);return a[f.uri.utils.ComponentIndex.DOMAIN]==b[f.uri.utils.ComponentIndex.DOMAIN]&&a[f.uri.utils.ComponentIndex.SCHEME]==b[f.uri.utils.ComponentIndex.SCHEME]&&a[f.uri.utils.ComponentIndex.PORT]==b[f.uri.utils.ComponentIndex.PORT]};f.uri.utils.assertNoFragmentsOrQueries_=function(a){f.asserts.assert(0>a.indexOf("#")&&0>a.indexOf("?"),"goog.uri.utils: Fragment or query identifiers are not supported: [%s]",a)};
f.uri.utils.parseQueryData=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var g=a[c].indexOf("="),h=null;if(0<=g){var k=a[c].substring(0,g);h=a[c].substring(g+1)}else k=a[c];b(k,h?f.string.urlDecode(h):"")}}};f.uri.utils.splitQueryData_=function(a){var b=a.indexOf("#");0>b&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var g=""}else g=a.substring(c+1,b);return[a.substr(0,c),g,a.substr(b)]};f.uri.utils.joinQueryData_=function(a){return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
f.uri.utils.appendQueryData_=function(a,b){return b?a?a+"&"+b:b:a};f.uri.utils.appendQueryDataToUri_=function(a,b){if(!b)return a;a=f.uri.utils.splitQueryData_(a);a[1]=f.uri.utils.appendQueryData_(a[1],b);return f.uri.utils.joinQueryData_(a)};f.uri.utils.appendKeyValuePairs_=function(a,b,c){f.asserts.assertString(a);if(f.isArray(b)){f.asserts.assertArray(b);for(var g=0;g<b.length;g++)f.uri.utils.appendKeyValuePairs_(a,String(b[g]),c)}else null!=b&&c.push(a+(""===b?"":"="+f.string.urlEncode(b)))};
f.uri.utils.buildQueryData=function(a,b){f.asserts.assert(0==Math.max(a.length-(b||0),0)%2,"goog.uri.utils: Key/value lists must be even in length.");var c=[];for(b=b||0;b<a.length;b+=2)f.uri.utils.appendKeyValuePairs_(a[b],a[b+1],c);return c.join("&")};f.uri.utils.buildQueryDataFromMap=function(a){var b=[],c;for(c in a)f.uri.utils.appendKeyValuePairs_(c,a[c],b);return b.join("&")};
f.uri.utils.appendParams=function(a,b){var c=2==arguments.length?f.uri.utils.buildQueryData(arguments[1],0):f.uri.utils.buildQueryData(arguments,1);return f.uri.utils.appendQueryDataToUri_(a,c)};f.uri.utils.appendParamsFromMap=function(a,b){b=f.uri.utils.buildQueryDataFromMap(b);return f.uri.utils.appendQueryDataToUri_(a,b)};f.uri.utils.appendParam=function(a,b,c){c=null!=c?"="+f.string.urlEncode(c):"";return f.uri.utils.appendQueryDataToUri_(a,b+c)};
f.uri.utils.findParam_=function(a,b,c,g){for(var h=c.length;0<=(b=a.indexOf(c,b))&&b<g;){var k=a.charCodeAt(b-1);if(k==f.uri.utils.CharCode_.AMPERSAND||k==f.uri.utils.CharCode_.QUESTION)if(k=a.charCodeAt(b+h),!k||k==f.uri.utils.CharCode_.EQUAL||k==f.uri.utils.CharCode_.AMPERSAND||k==f.uri.utils.CharCode_.HASH)return b;b+=h+1}return-1};f.uri.utils.hashOrEndRe_=/#|$/;f.uri.utils.hasParam=function(a,b){return 0<=f.uri.utils.findParam_(a,0,b,a.search(f.uri.utils.hashOrEndRe_))};
f.uri.utils.getParamValue=function(a,b){var c=a.search(f.uri.utils.hashOrEndRe_),g=f.uri.utils.findParam_(a,0,b,c);if(0>g)return null;var h=a.indexOf("&",g);if(0>h||h>c)h=c;g+=b.length+1;return f.string.urlDecode(a.substr(g,h-g))};f.uri.utils.getParamValues=function(a,b){for(var c=a.search(f.uri.utils.hashOrEndRe_),g=0,h,k=[];0<=(h=f.uri.utils.findParam_(a,g,b,c));){g=a.indexOf("&",h);if(0>g||g>c)g=c;h+=b.length+1;k.push(f.string.urlDecode(a.substr(h,g-h)))}return k};
f.uri.utils.trailingQueryPunctuationRe_=/[?&]($|#)/;f.uri.utils.removeParam=function(a,b){for(var c=a.search(f.uri.utils.hashOrEndRe_),g=0,h,k=[];0<=(h=f.uri.utils.findParam_(a,g,b,c));)k.push(a.substring(g,h)),g=Math.min(a.indexOf("&",h)+1||c,c);k.push(a.substr(g));return k.join("").replace(f.uri.utils.trailingQueryPunctuationRe_,"$1")};
f.uri.utils.setParam=function(a){var b=f.uri.utils.StandardQueryParam.RANDOM,c=f.string.getRandomString();return f.uri.utils.appendParam(f.uri.utils.removeParam(a,b),b,c)};f.uri.utils.setParamsFromMap=function(a,b){a=f.uri.utils.splitQueryData_(a);var c=a[1],g=[];c&&f.array.forEach(c.split("&"),function(h){var k=h.indexOf("=");b.hasOwnProperty(0<=k?h.substr(0,k):h)||g.push(h)});a[1]=f.uri.utils.appendQueryData_(g.join("&"),f.uri.utils.buildQueryDataFromMap(b));return f.uri.utils.joinQueryData_(a)};
f.uri.utils.appendPath=function(a,b){f.uri.utils.assertNoFragmentsOrQueries_(a);f.string.endsWith(a,"/")&&(a=a.substr(0,a.length-1));f.string.startsWith(b,"/")&&(b=b.substr(1));return f.string.buildString(a,"/",b)};f.uri.utils.setPath=function(a,b){f.string.startsWith(b,"/");f.uri.utils.split(a)};f.uri.utils.StandardQueryParam={RANDOM:"zx"};f.uri.utils.makeUnique=function(a){return f.uri.utils.setParam(a)};f.Uri=function(a,b){this.domain_=this.userInfo_=this.scheme_="";this.port_=null;this.fragment_=this.path_="";this.ignoreCase_=this.isReadOnly_=!1;var c;a instanceof f.Uri?(this.ignoreCase_=void 0!==b?b:a.ignoreCase_,q(this,a.getScheme()),r(this,a.getUserInfo()),v(this,a.getDomain()),ia(this,a.getPort()),this.setPath(a.getPath()),x(this,a.getQueryData().clone()),ja(this,a.getFragment())):a&&(c=f.uri.utils.split(String(a)))?(this.ignoreCase_=!!b,q(this,c[f.uri.utils.ComponentIndex.SCHEME]||"",!0),r(this,
c[f.uri.utils.ComponentIndex.USER_INFO]||"",!0),v(this,c[f.uri.utils.ComponentIndex.DOMAIN]||"",!0),ia(this,c[f.uri.utils.ComponentIndex.PORT]),this.setPath(c[f.uri.utils.ComponentIndex.PATH]||"",!0),x(this,c[f.uri.utils.ComponentIndex.QUERY_DATA]||"",!0),ja(this,c[f.uri.utils.ComponentIndex.FRAGMENT]||"",!0)):(this.ignoreCase_=!!b,this.queryData_=new f.Uri.QueryData(null,this.ignoreCase_))};f.Uri.RANDOM_PARAM=f.uri.utils.StandardQueryParam.RANDOM;
f.Uri.prototype.toString=function(){var a=[],b=this.getScheme();b&&a.push(f.Uri.encodeSpecialChars_(b,f.Uri.reDisallowedInSchemeOrUserInfo_,!0),":");var c=this.getDomain();if(c||"file"==b)a.push("//"),(b=this.getUserInfo())&&a.push(f.Uri.encodeSpecialChars_(b,f.Uri.reDisallowedInSchemeOrUserInfo_,!0),"@"),a.push(f.Uri.removeDoubleEncoding_(f.string.urlEncode(c))),c=this.getPort(),null!=c&&a.push(":",String(c));if(c=this.getPath())this.domain_&&"/"!=c.charAt(0)&&a.push("/"),a.push(f.Uri.encodeSpecialChars_(c,
"/"==c.charAt(0)?f.Uri.reDisallowedInAbsolutePath_:f.Uri.reDisallowedInRelativePath_,!0));(c=this.queryData_.toString())&&a.push("?",c);(c=this.getFragment())&&a.push("#",f.Uri.encodeSpecialChars_(c,f.Uri.reDisallowedInFragment_));return a.join("")};
f.Uri.prototype.resolve=function(a){var b=this.clone(),c=!!a.scheme_;c?q(b,a.getScheme()):c=!!a.userInfo_;c?r(b,a.getUserInfo()):c=!!a.domain_;c?v(b,a.getDomain()):c=null!=a.port_;var g=a.getPath();if(c)ia(b,a.getPort());else if(c=!!a.path_){if("/"!=g.charAt(0))if(this.domain_&&!this.path_)g="/"+g;else{var h=b.getPath().lastIndexOf("/");-1!=h&&(g=b.getPath().substr(0,h+1)+g)}g=f.Uri.removeDotSegments(g)}c?b.setPath(g):c=""!==a.queryData_.toString();c?x(b,a.getQueryData().clone()):c=!!a.fragment_;
c&&ja(b,a.getFragment());return b};f.Uri.prototype.clone=function(){return new f.Uri(this)};f.Uri.prototype.getScheme=function(){return this.scheme_};var q=function(a,b,c){y(a);a.scheme_=c?f.Uri.decodeOrEmpty_(b,!0):b;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""))};f.Uri.prototype.getUserInfo=function(){return this.userInfo_};var r=function(a,b,c){y(a);a.userInfo_=c?f.Uri.decodeOrEmpty_(b):b};f.Uri.prototype.getDomain=function(){return this.domain_};
var v=function(a,b,c){y(a);a.domain_=c?f.Uri.decodeOrEmpty_(b,!0):b};f.Uri.prototype.getPort=function(){return this.port_};var ia=function(a,b){y(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.port_=b}else a.port_=null};f.Uri.prototype.getPath=function(){return this.path_};f.Uri.prototype.setPath=function(a,b){y(this);this.path_=b?f.Uri.decodeOrEmpty_(a,!0):a};
var x=function(a,b,c){y(a);b instanceof f.Uri.QueryData?(a.queryData_=b,a.queryData_.setIgnoreCase(a.ignoreCase_)):(c||(b=f.Uri.encodeSpecialChars_(b,f.Uri.reDisallowedInQuery_)),a.queryData_=new f.Uri.QueryData(b,a.ignoreCase_))};f.Uri.prototype.getQueryData=function(){return this.queryData_};f.Uri.prototype.getQuery=function(){return this.queryData_.toString()};f.Uri.prototype.getFragment=function(){return this.fragment_};var ja=function(a,b,c){y(a);a.fragment_=c?f.Uri.decodeOrEmpty_(b):b};
f.Uri.prototype.makeUnique=function(){y(this);var a=f.Uri.RANDOM_PARAM,b=f.string.getRandomString();y(this);this.queryData_.set(a,b);return this};f.Uri.prototype.removeParameter=function(a){y(this);this.queryData_.remove(a);return this};var y=function(a){if(a.isReadOnly_)throw Error("Tried to modify a read-only Uri");};f.Uri.prototype.setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a)};
f.Uri.parse=function(a,b){return a instanceof f.Uri?a.clone():new f.Uri(a,b)};f.Uri.create=function(a,b,c,g,h,k,m,t){t=new f.Uri(null,t);a&&q(t,a);b&&r(t,b);c&&v(t,c);g&&ia(t,g);h&&t.setPath(h);k&&x(t,k);m&&ja(t,m);return t};f.Uri.resolve=function(a,b){a instanceof f.Uri||(a=f.Uri.parse(a));b instanceof f.Uri||(b=f.Uri.parse(b));return a.resolve(b)};
f.Uri.removeDotSegments=function(a){if(".."==a||"."==a)return"";if(f.string.contains(a,"./")||f.string.contains(a,"/.")){var b=f.string.startsWith(a,"/");a=a.split("/");for(var c=[],g=0;g<a.length;){var h=a[g++];"."==h?b&&g==a.length&&c.push(""):".."==h?((1<c.length||1==c.length&&""!=c[0])&&c.pop(),b&&g==a.length&&c.push("")):(c.push(h),b=!0)}return c.join("/")}return a};f.Uri.decodeOrEmpty_=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
f.Uri.encodeSpecialChars_=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,f.Uri.encodeChar_),c&&(a=f.Uri.removeDoubleEncoding_(a)),a):null};f.Uri.encodeChar_=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};f.Uri.removeDoubleEncoding_=function(a){return a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")};f.Uri.reDisallowedInSchemeOrUserInfo_=/[#\/\?@]/g;f.Uri.reDisallowedInRelativePath_=/[#\?:]/g;f.Uri.reDisallowedInAbsolutePath_=/[#\?]/g;
f.Uri.reDisallowedInQuery_=/[#\?@]/g;f.Uri.reDisallowedInFragment_=/#/g;f.Uri.haveSameDomain=function(a,b){a=f.uri.utils.split(a);b=f.uri.utils.split(b);return a[f.uri.utils.ComponentIndex.DOMAIN]==b[f.uri.utils.ComponentIndex.DOMAIN]&&a[f.uri.utils.ComponentIndex.PORT]==b[f.uri.utils.ComponentIndex.PORT]};f.Uri.QueryData=function(a,b){this.count_=this.keyMap_=null;this.encodedQuery_=a||null;this.ignoreCase_=!!b};
var A=function(a){a.keyMap_||(a.keyMap_=new f.structs.Map,a.count_=0,a.encodedQuery_&&f.uri.utils.parseQueryData(a.encodedQuery_,function(b,c){a.add(f.string.urlDecode(b),c)}))};f.Uri.QueryData.createFromMap=function(a,b,c){b=f.structs.getKeys(a);if("undefined"==typeof b)throw Error("Keys are undefined");c=new f.Uri.QueryData(null,c);a=f.structs.getValues(a);for(var g=0;g<b.length;g++){var h=b[g],k=a[g];f.isArray(k)?la(c,h,k):c.add(h,k)}return c};
f.Uri.QueryData.createFromKeysValues=function(a,b,c,g){if(a.length!=b.length)throw Error("Mismatched lengths for keys/values");c=new f.Uri.QueryData(null,g);for(g=0;g<a.length;g++)c.add(a[g],b[g]);return c};d=f.Uri.QueryData.prototype;d.getCount=function(){A(this);return this.count_};d.add=function(a,b){A(this);this.encodedQuery_=null;a=C(this,a);var c=this.keyMap_.get(a);c||this.keyMap_.set(a,c=[]);c.push(b);this.count_=f.asserts.assertNumber(this.count_)+1;return this};
d.remove=function(a){A(this);a=C(this,a);return this.keyMap_.containsKey(a)?(this.encodedQuery_=null,this.count_=f.asserts.assertNumber(this.count_)-this.keyMap_.get(a).length,this.keyMap_.remove(a)):!1};d.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};d.isEmpty=function(){A(this);return 0==this.count_};d.containsKey=function(a){A(this);a=C(this,a);return this.keyMap_.containsKey(a)};d.containsValue=function(a){var b=this.getValues();return f.array.contains(b,a)};
d.forEach=function(a,b){A(this);this.keyMap_.forEach(function(c,g){f.array.forEach(c,function(h){a.call(b,h,g,this)},this)},this)};d.getKeys=function(){A(this);for(var a=this.keyMap_.getValues(),b=this.keyMap_.getKeys(),c=[],g=0;g<b.length;g++)for(var h=a[g],k=0;k<h.length;k++)c.push(b[g]);return c};
d.getValues=function(a){A(this);var b=[];if("string"===typeof a)this.containsKey(a)&&(b=f.array.concat(b,this.keyMap_.get(C(this,a))));else{a=this.keyMap_.getValues();for(var c=0;c<a.length;c++)b=f.array.concat(b,a[c])}return b};d.set=function(a,b){A(this);this.encodedQuery_=null;a=C(this,a);this.containsKey(a)&&(this.count_=f.asserts.assertNumber(this.count_)-this.keyMap_.get(a).length);this.keyMap_.set(a,[b]);this.count_=f.asserts.assertNumber(this.count_)+1;return this};
d.get=function(a,b){if(!a)return b;a=this.getValues(a);return 0<a.length?String(a[0]):b};var la=function(a,b,c){a.remove(b);0<c.length&&(a.encodedQuery_=null,a.keyMap_.set(C(a,b),f.array.clone(c)),a.count_=f.asserts.assertNumber(a.count_)+c.length)};
f.Uri.QueryData.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var a=[],b=this.keyMap_.getKeys(),c=0;c<b.length;c++){var g=b[c],h=f.string.urlEncode(g);g=this.getValues(g);for(var k=0;k<g.length;k++){var m=h;""!==g[k]&&(m+="="+f.string.urlEncode(g[k]));a.push(m)}}return this.encodedQuery_=a.join("&")};
f.Uri.QueryData.prototype.clone=function(){var a=new f.Uri.QueryData;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=this.keyMap_.clone(),a.count_=this.count_);return a};var C=function(a,b){b=String(b);a.ignoreCase_&&(b=b.toLowerCase());return b};f.Uri.QueryData.prototype.setIgnoreCase=function(a){a&&!this.ignoreCase_&&(A(this),this.encodedQuery_=null,this.keyMap_.forEach(function(b,c){var g=c.toLowerCase();c!=g&&(this.remove(c),la(this,g,b))},this));this.ignoreCase_=a};
f.Uri.QueryData.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)f.structs.forEach(arguments[b],function(c,g){this.add(g,c)},this)};l.WebStoreService=function(){this.baseUrl_=l.WebStoreService.Environment.SANDBOX;this.baseUrlAndPath_=this.baseUrl_+l.WebStoreService.WEB_STORE_REQUEST_PATH_};l.WebStoreService.Environment={PROD:"https://www.googleapis.com",SANDBOX:"https://www-googleapis-staging.sandbox.google.com"};l.WebStoreService.WEB_STORE_REQUEST_PATH_="/chromewebstore/v1.1";
var ma=function(a,b,c,g,h,k,m,t,u,w,z,Q){var bb=c?c:"",cb=t||"application/x-www-form-urlencoded",ka=z||null,za=Q||null,Aa=function(G,B){if(B&&200==G){G=null;try{G=JSON.parse(B)}catch(mb){k(l.Errors.ErrorTypes.INVALID_RESPONSE_ERROR);return}ka&&za&&(console.log("Updating the licenses cache for appId: "+ka),za.cache_.set(ka,new l.LicensesCache.Entry(G)));h(G)}else k(l.Errors.ErrorTypes.INVALID_RESPONSE_ERROR)};z=function(G){if(G){var B=new XMLHttpRequest;B.open(g,b);B.setRequestHeader("Authorization",
"Bearer "+G);B.setRequestHeader("Content-Type",cb);B.onreadystatechange=function(){4==B.readyState&&(401==B.status&&G?chrome.identity.removeCachedAuthToken({token:G},function(){m?ma(a,g,c,g,h,k,!1,t,u,w):(console.log(B),Aa(B.status,B.responseText))}):(console.log(B),Aa(B.status,B.responseText)))};B.send(bb)}else k(l.Errors.ErrorTypes.TOKEN_MISSING_ERROR)};w?z(w):chrome.identity.getAuthToken({interactive:u||!1},z)},na=function(a,b){b=b.parameters||{};if("env"in b){switch(b.env){case "prod":a.baseUrl_=
l.WebStoreService.Environment.PROD;break;default:a.baseUrl_=l.WebStoreService.Environment.SANDBOX}a.baseUrlAndPath_=a.baseUrl_+l.WebStoreService.WEB_STORE_REQUEST_PATH_}};l.WebStoreService.prototype.onFailure_=function(a,b,c){a(l.Errors.getErrorResponse(c||b))};
var oa=function(a,b,c,g,h,k){var m=new f.Uri.QueryData;m.add("projection",h.projection?h.projection:"THIN");var t=new f.Uri(a.baseUrlAndPath_+"/items/"+b+"/payments");x(t,m);g=f.bind(a.onFailure_,a,g,l.Errors.ErrorTypes.GET_PURCHASES_ERROR);console.log("Making a request to apiary to retrieve licenses for appId: "+b);ma(a,t.toString(),null,"GET",c,g,!0,void 0,h.interactive,void 0,b,k)},pa=function(a,b,c,g,h,k){b=a.baseUrlAndPath_+"/items/"+b+"/skus/"+c;h=f.bind(a.onFailure_,a,h,l.Errors.ErrorTypes.CONSUME_PURCHASE_ERROR);
console.log("Sending consume call to apiary.");ma(a,b,null,"DELETE",g,h,!0,void 0,k)},qa=function(a,b,c,g,h,k){var m=new f.Uri.QueryData;m.add("hl",k.hl?k.hl:window.navigator.language);k.gl&&m.add("gl",k.gl);m.add("projection",k.projection?k.projection:"THIN");b=a.baseUrlAndPath_+"/items/"+b+"/skus";h&&(b=b+"/"+h);h=new f.Uri(b);x(h,m);g=f.bind(a.onFailure_,a,g,l.Errors.ErrorTypes.GET_SKU_DETAILS_ERROR);ma(a,h.toString(),null,"GET",c,g,!0,void 0,k.interactive)};f.crypt={};f.crypt.stringToByteArray=function(a){for(var b=[],c=0,g=0;g<a.length;g++){var h=a.charCodeAt(g);255<h&&(b[c++]=h&255,h>>=8);b[c++]=h}return b};f.crypt.byteArrayToString=function(a){if(8192>=a.length)return String.fromCharCode.apply(null,a);for(var b="",c=0;c<a.length;c+=8192){var g=f.array.slice(a,c,c+8192);b+=String.fromCharCode.apply(null,g)}return b};f.crypt.byteArrayToHex=function(a,b){return f.array.map(a,function(c){c=c.toString(16);return 1<c.length?c:"0"+c}).join(b||"")};
f.crypt.hexToByteArray=function(a){f.asserts.assert(0==a.length%2,"Key string length must be multiple of 2");for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
f.crypt.stringToUtf8ByteArray=function(a){for(var b=[],c=0,g=0;g<a.length;g++){var h=a.charCodeAt(g);128>h?b[c++]=h:(2048>h?b[c++]=h>>6|192:(55296==(h&64512)&&g+1<a.length&&56320==(a.charCodeAt(g+1)&64512)?(h=65536+((h&1023)<<10)+(a.charCodeAt(++g)&1023),b[c++]=h>>18|240,b[c++]=h>>12&63|128):b[c++]=h>>12|224,b[c++]=h>>6&63|128),b[c++]=h&63|128)}return b};
f.crypt.utf8ByteArrayToString=function(a){for(var b=[],c=0,g=0;c<a.length;){var h=a[c++];if(128>h)b[g++]=String.fromCharCode(h);else if(191<h&&224>h){var k=a[c++];b[g++]=String.fromCharCode((h&31)<<6|k&63)}else if(239<h&&365>h){k=a[c++];var m=a[c++],t=a[c++];h=((h&7)<<18|(k&63)<<12|(m&63)<<6|t&63)-65536;b[g++]=String.fromCharCode(55296+(h>>10));b[g++]=String.fromCharCode(56320+(h&1023))}else k=a[c++],m=a[c++],b[g++]=String.fromCharCode((h&15)<<12|(k&63)<<6|m&63)}return b.join("")};
f.crypt.xorByteArray=function(a,b){f.asserts.assert(a.length==b.length,"XOR array lengths must match");for(var c=[],g=0;g<a.length;g++)c.push(a[g]^b[g]);return c};f.userAgent.product={};f.userAgent.product.ASSUME_FIREFOX=!1;f.userAgent.product.ASSUME_IPHONE=!1;f.userAgent.product.ASSUME_IPAD=!1;f.userAgent.product.ASSUME_ANDROID=!1;f.userAgent.product.ASSUME_CHROME=!1;f.userAgent.product.ASSUME_SAFARI=!1;
f.userAgent.product.PRODUCT_KNOWN_=f.userAgent.ASSUME_IE||f.userAgent.ASSUME_EDGE||f.userAgent.ASSUME_OPERA||f.userAgent.product.ASSUME_FIREFOX||f.userAgent.product.ASSUME_IPHONE||f.userAgent.product.ASSUME_IPAD||f.userAgent.product.ASSUME_ANDROID||f.userAgent.product.ASSUME_CHROME||f.userAgent.product.ASSUME_SAFARI;f.userAgent.product.OPERA=f.userAgent.OPERA;f.userAgent.product.IE=f.userAgent.IE;f.userAgent.product.EDGE=f.userAgent.EDGE;
f.userAgent.product.FIREFOX=f.userAgent.product.PRODUCT_KNOWN_?f.userAgent.product.ASSUME_FIREFOX:f.labs.userAgent.browser.isFirefox();f.userAgent.product.isIphoneOrIpod_=function(){return f.labs.userAgent.platform.isIphone()||f.labs.userAgent.platform.isIpod()};f.userAgent.product.IPHONE=f.userAgent.product.PRODUCT_KNOWN_?f.userAgent.product.ASSUME_IPHONE:f.userAgent.product.isIphoneOrIpod_();f.userAgent.product.IPAD=f.userAgent.product.PRODUCT_KNOWN_?f.userAgent.product.ASSUME_IPAD:f.labs.userAgent.platform.isIpad();
f.userAgent.product.ANDROID=f.userAgent.product.PRODUCT_KNOWN_?f.userAgent.product.ASSUME_ANDROID:f.labs.userAgent.browser.isAndroidBrowser();f.userAgent.product.CHROME=f.userAgent.product.PRODUCT_KNOWN_?f.userAgent.product.ASSUME_CHROME:f.labs.userAgent.browser.isChrome();f.userAgent.product.isSafariDesktop_=function(){return f.labs.userAgent.browser.isSafari()&&!f.labs.userAgent.platform.isIos()};f.userAgent.product.SAFARI=f.userAgent.product.PRODUCT_KNOWN_?f.userAgent.product.ASSUME_SAFARI:f.userAgent.product.isSafariDesktop_();f.crypt.base64={};f.crypt.base64.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";f.crypt.base64.ENCODED_VALS=f.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=";f.crypt.base64.ENCODED_VALS_WEBSAFE=f.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.";f.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4};f.crypt.base64.paddingChars_="=.";
f.crypt.base64.isPadding_=function(a){return f.string.contains(f.crypt.base64.paddingChars_,a)};f.crypt.base64.byteToCharMaps_={};f.crypt.base64.charToByteMap_=null;f.crypt.base64.ASSUME_NATIVE_SUPPORT_=f.userAgent.GECKO||f.userAgent.WEBKIT&&!f.userAgent.product.SAFARI||f.userAgent.OPERA;f.crypt.base64.HAS_NATIVE_ENCODE_=f.crypt.base64.ASSUME_NATIVE_SUPPORT_||"function"==typeof f.global.btoa;
f.crypt.base64.HAS_NATIVE_DECODE_=f.crypt.base64.ASSUME_NATIVE_SUPPORT_||!f.userAgent.product.SAFARI&&!f.userAgent.IE&&"function"==typeof f.global.atob;
f.crypt.base64.encodeByteArray=function(a,b){f.asserts.assert(f.isArrayLike(a),"encodeByteArray takes an array as a parameter");void 0===b&&(b=f.crypt.base64.Alphabet.DEFAULT);f.crypt.base64.init_();b=f.crypt.base64.byteToCharMaps_[b];for(var c=[],g=0;g<a.length;g+=3){var h=a[g],k=g+1<a.length,m=k?a[g+1]:0,t=g+2<a.length,u=t?a[g+2]:0,w=h>>2;h=(h&3)<<4|m>>4;m=(m&15)<<2|u>>6;u&=63;t||(u=64,k||(m=64));c.push(b[w],b[h],b[m]||"",b[u]||"")}return c.join("")};
f.crypt.base64.encodeString=function(a,b){return f.crypt.base64.HAS_NATIVE_ENCODE_&&!b?f.global.btoa(a):f.crypt.base64.encodeByteArray(f.crypt.stringToByteArray(a),b)};f.crypt.base64.decodeString=function(a,b){if(f.crypt.base64.HAS_NATIVE_DECODE_&&!b)return f.global.atob(a);var c="";f.crypt.base64.decodeStringInternal_(a,function(g){c+=String.fromCharCode(g)});return c};f.crypt.base64.decodeStringToByteArray=function(a){var b=[];f.crypt.base64.decodeStringInternal_(a,function(c){b.push(c)});return b};
f.crypt.base64.decodeStringToUint8Array=function(a){f.asserts.assert(!f.userAgent.IE||f.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):f.crypt.base64.isPadding_(a[b-1])&&(c=f.crypt.base64.isPadding_(a[b-2])?c-2:c-1);var g=new Uint8Array(c),h=0;f.crypt.base64.decodeStringInternal_(a,function(k){g[h++]=k});return g.subarray(0,h)};
f.crypt.base64.decodeStringInternal_=function(a,b){function c(u){for(;g<a.length;){var w=a.charAt(g++),z=f.crypt.base64.charToByteMap_[w];if(null!=z)return z;if(!f.string.isEmptyOrWhitespace(w))throw Error("Unknown base64 encoding at char: "+w);}return u}f.crypt.base64.init_();for(var g=0;;){var h=c(-1),k=c(0),m=c(64),t=c(64);if(64===t&&-1===h)break;b(h<<2|k>>4);64!=m&&(b(k<<4&240|m>>2),64!=t&&b(m<<6&192|t))}};
f.crypt.base64.init_=function(){if(!f.crypt.base64.charToByteMap_){f.crypt.base64.charToByteMap_={};for(var a=f.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var g=a.concat(b[c].split(""));f.crypt.base64.byteToCharMaps_[c]=g;for(var h=0;h<g.length;h++){var k=g[h],m=f.crypt.base64.charToByteMap_[k];void 0===m?f.crypt.base64.charToByteMap_[k]=h:f.asserts.assert(m===h)}}}};var D={arith:{}};D.arith.UInt64=function(a,b){this.lo=a;this.hi=b};D.arith.UInt64.prototype.cmp=function(a){return this.hi<a.hi||this.hi==a.hi&&this.lo<a.lo?-1:this.hi==a.hi&&this.lo==a.lo?0:1};var ra=function(a){return new D.arith.UInt64((a.lo>>>1|(a.hi&1)<<31)>>>0,a.hi>>>1>>>0)},sa=function(a){return new D.arith.UInt64(a.lo<<1>>>0,(a.hi<<1|a.lo>>>31)>>>0)};
D.arith.UInt64.prototype.add=function(a){return new D.arith.UInt64((this.lo+a.lo&4294967295)>>>0>>>0,((this.hi+a.hi&4294967295)>>>0)+(4294967296<=this.lo+a.lo?1:0)>>>0)};D.arith.UInt64.prototype.sub=function(a){return new D.arith.UInt64((this.lo-a.lo&4294967295)>>>0>>>0,((this.hi-a.hi&4294967295)>>>0)-(0>this.lo-a.lo?1:0)>>>0)};
D.arith.UInt64.mul32x32=function(a){var b=a&65535,c=a>>>16;a=10*b+65536*(0*b&65535)+65536*(10*c&65535);for(b=0*c+(0*b>>>16)+(10*c>>>16);4294967296<=a;)a-=4294967296,b+=1;return new D.arith.UInt64(a>>>0,b>>>0)};
D.arith.UInt64.prototype.toString=function(){for(var a="",b=this;0!=b.lo||0!=b.hi;){var c=new D.arith.UInt64(0,0);b=new D.arith.UInt64(b.lo,b.hi);for(var g=new D.arith.UInt64(10,0),h=new D.arith.UInt64(1,0);!(g.hi&2147483648);)g=sa(g),h=sa(h);for(;0!=h.lo||0!=h.hi;)0>=g.cmp(b)&&(c=c.add(h),b=b.sub(g)),g=ra(g),h=ra(h);c=[c,b];b=c[0];a=c[1].lo+a}""==a&&(a="0");return a};
D.arith.UInt64.fromString=function(a){for(var b=new D.arith.UInt64(0,0),c=new D.arith.UInt64(0,0),g=0;g<a.length;g++){if("0">a[g]||"9"<a[g])return null;c.lo=parseInt(a[g],10);var h=D.arith.UInt64.mul32x32(b.lo);b=D.arith.UInt64.mul32x32(b.hi);b.hi=b.lo;b.lo=0;b=h.add(b).add(c)}return b};D.arith.UInt64.prototype.clone=function(){return new D.arith.UInt64(this.lo,this.hi)};D.arith.Int64=function(a,b){this.lo=a;this.hi=b};
D.arith.Int64.prototype.add=function(a){return new D.arith.Int64((this.lo+a.lo&4294967295)>>>0>>>0,((this.hi+a.hi&4294967295)>>>0)+(4294967296<=this.lo+a.lo?1:0)>>>0)};D.arith.Int64.prototype.sub=function(a){return new D.arith.Int64((this.lo-a.lo&4294967295)>>>0>>>0,((this.hi-a.hi&4294967295)>>>0)-(0>this.lo-a.lo?1:0)>>>0)};D.arith.Int64.prototype.clone=function(){return new D.arith.Int64(this.lo,this.hi)};
D.arith.Int64.prototype.toString=function(){var a=0!=(this.hi&2147483648),b=new D.arith.UInt64(this.lo,this.hi);a&&(b=(new D.arith.UInt64(0,0)).sub(b));return(a?"-":"")+b.toString()};D.arith.Int64.fromString=function(a){var b=0<a.length&&"-"==a[0];b&&(a=a.substring(1));a=D.arith.UInt64.fromString(a);if(null===a)return null;b&&(a=(new D.arith.UInt64(0,0)).sub(a));return new D.arith.Int64(a.lo,a.hi)};D.BinaryConstants={};D.ConstBinaryMessage=function(){};D.BinaryMessage=function(){};D.BinaryConstants.FieldType={INVALID:-1,DOUBLE:1,FLOAT:2,INT64:3,UINT64:4,INT32:5,FIXED64:6,FIXED32:7,BOOL:8,STRING:9,GROUP:10,MESSAGE:11,BYTES:12,UINT32:13,ENUM:14,SFIXED32:15,SFIXED64:16,SINT32:17,SINT64:18,FHASH64:30,VHASH64:31};D.BinaryConstants.WireType={INVALID:-1,VARINT:0,FIXED64:1,DELIMITED:2,START_GROUP:3,END_GROUP:4,FIXED32:5};
D.BinaryConstants.FieldTypeToWireType=function(a){var b=D.BinaryConstants.FieldType,c=D.BinaryConstants.WireType;switch(a){case b.INT32:case b.INT64:case b.UINT32:case b.UINT64:case b.SINT32:case b.SINT64:case b.BOOL:case b.ENUM:case b.VHASH64:return c.VARINT;case b.DOUBLE:case b.FIXED64:case b.SFIXED64:case b.FHASH64:return c.FIXED64;case b.STRING:case b.MESSAGE:case b.BYTES:return c.DELIMITED;case b.FLOAT:case b.FIXED32:case b.SFIXED32:return c.FIXED32;default:return c.INVALID}};
D.BinaryConstants.INVALID_FIELD_NUMBER=-1;D.BinaryConstants.FLOAT32_EPS=1.401298464324817E-45;D.BinaryConstants.FLOAT32_MIN=1.1754943508222875E-38;D.BinaryConstants.FLOAT32_MAX=3.4028234663852886E38;D.BinaryConstants.FLOAT64_EPS=4.9E-324;D.BinaryConstants.FLOAT64_MIN=2.2250738585072014E-308;D.BinaryConstants.FLOAT64_MAX=1.7976931348623157E308;D.BinaryConstants.TWO_TO_20=1048576;D.BinaryConstants.TWO_TO_23=8388608;D.BinaryConstants.TWO_TO_31=2147483648;D.BinaryConstants.TWO_TO_32=4294967296;
D.BinaryConstants.TWO_TO_52=4503599627370496;D.BinaryConstants.TWO_TO_63=0x7fffffffffffffff;D.BinaryConstants.TWO_TO_64=1.8446744073709552E19;D.BinaryConstants.ZERO_HASH="\x00\x00\x00\x00\x00\x00\x00\x00";D.utils={};D.utils.split64Low=0;D.utils.split64High=0;D.utils.splitUint64=function(a){var b=a>>>0;a=Math.floor((a-b)/D.BinaryConstants.TWO_TO_32)>>>0;D.utils.split64Low=b;D.utils.split64High=a};D.utils.splitInt64=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/D.BinaryConstants.TWO_TO_32);a>>>=0;b&&(a=~a>>>0,c=(~c>>>0)+1,4294967295<c&&(c=0,a++,4294967295<a&&(a=0)));D.utils.split64Low=c;D.utils.split64High=a};
D.utils.splitZigzag64=function(a){var b=0>a;a=2*Math.abs(a);D.utils.splitUint64(a);a=D.utils.split64Low;var c=D.utils.split64High;b&&(0==a?0==c?c=a=4294967295:(c--,a=4294967295):a--);D.utils.split64Low=a;D.utils.split64High=c};
D.utils.splitFloat32=function(a){var b=0>a?1:0;a=b?-a:a;if(0===a)0<1/a?(D.utils.split64High=0,D.utils.split64Low=0):(D.utils.split64High=0,D.utils.split64Low=2147483648);else if(isNaN(a))D.utils.split64High=0,D.utils.split64Low=2147483647;else if(a>D.BinaryConstants.FLOAT32_MAX)D.utils.split64High=0,D.utils.split64Low=(b<<31|2139095040)>>>0;else if(a<D.BinaryConstants.FLOAT32_MIN)a=Math.round(a/Math.pow(2,-149)),D.utils.split64High=0,D.utils.split64Low=(b<<31|a)>>>0;else{var c=Math.floor(Math.log(a)/
Math.LN2);a*=Math.pow(2,-c);a=Math.round(a*D.BinaryConstants.TWO_TO_23)&8388607;D.utils.split64High=0;D.utils.split64Low=(b<<31|c+127<<23|a)>>>0}};
D.utils.splitFloat64=function(a){var b=0>a?1:0;a=b?-a:a;if(0===a)D.utils.split64High=0<1/a?0:2147483648,D.utils.split64Low=0;else if(isNaN(a))D.utils.split64High=2147483647,D.utils.split64Low=4294967295;else if(a>D.BinaryConstants.FLOAT64_MAX)D.utils.split64High=(b<<31|2146435072)>>>0,D.utils.split64Low=0;else if(a<D.BinaryConstants.FLOAT64_MIN){var c=a/Math.pow(2,-1074);a=c/D.BinaryConstants.TWO_TO_32;D.utils.split64High=(b<<31|a)>>>0;D.utils.split64Low=c>>>0}else{c=a;var g=0;if(2<=c)for(;2<=c&&
1023>g;)g++,c/=2;else for(;1>c&&-1022<g;)c*=2,g--;c=a*Math.pow(2,-g);a=c*D.BinaryConstants.TWO_TO_20&1048575;c=c*D.BinaryConstants.TWO_TO_52>>>0;D.utils.split64High=(b<<31|g+1023<<20|a)>>>0;D.utils.split64Low=c}};D.utils.splitHash64=function(a){var b=a.charCodeAt(4),c=a.charCodeAt(5),g=a.charCodeAt(6),h=a.charCodeAt(7);D.utils.split64Low=a.charCodeAt(0)+(a.charCodeAt(1)<<8)+(a.charCodeAt(2)<<16)+(a.charCodeAt(3)<<24)>>>0;D.utils.split64High=b+(c<<8)+(g<<16)+(h<<24)>>>0};
D.utils.joinUint64=function(a,b){return b*D.BinaryConstants.TWO_TO_32+(a>>>0)};D.utils.joinInt64=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=D.utils.joinUint64(a,b);return c?-a:a};D.utils.toZigzag64=function(a,b,c){var g=b>>31;return c(a<<1^g,(b<<1|a>>>31)^g)};D.utils.joinZigzag64=function(a,b){return D.utils.fromZigzag64(a,b)};D.utils.fromZigzag64=function(a,b){var c=D.utils.joinInt64,g=-(a&1);return c((a>>>1|b<<31)^g,b>>>1^g)};
D.utils.joinFloat32=function(a){var b=2*(a>>31)+1,c=a>>>23&255;a&=8388607;return 255==c?a?NaN:Infinity*b:0==c?b*Math.pow(2,-149)*a:b*Math.pow(2,c-150)*(a+Math.pow(2,23))};D.utils.joinFloat64=function(a,b){var c=2*(b>>31)+1,g=b>>>20&2047;a=D.BinaryConstants.TWO_TO_32*(b&1048575)+a;return 2047==g?a?NaN:Infinity*c:0==g?c*Math.pow(2,-1074)*a:c*Math.pow(2,g-1075)*(a+D.BinaryConstants.TWO_TO_52)};
D.utils.joinHash64=function(){var a=D.utils.split64Low,b=D.utils.split64High;return String.fromCharCode(a>>>0&255,a>>>8&255,a>>>16&255,a>>>24&255,b>>>0&255,b>>>8&255,b>>>16&255,b>>>24&255)};D.utils.DIGITS="0123456789abcdef".split("");D.utils.ZERO_CHAR_CODE_=48;D.utils.A_CHAR_CODE_=97;
D.utils.joinUnsignedDecimalString=function(a,b){function c(h,k){h=h?String(h):"";return k?"0000000".slice(h.length)+h:h}if(2097151>=b)return""+(D.BinaryConstants.TWO_TO_32*b+a);var g=(a>>>24|b<<8)>>>0&16777215;b=b>>16&65535;a=(a&16777215)+6777216*g+6710656*b;g+=8147497*b;b*=2;1E7<=a&&(g+=Math.floor(a/1E7),a%=1E7);1E7<=g&&(b+=Math.floor(g/1E7),g%=1E7);return c(b,0)+c(g,b)+c(a,1)};
D.utils.joinSignedDecimalString=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b+(0==a?1:0)>>>0);a=D.utils.joinUnsignedDecimalString(a,b);return c?"-"+a:a};D.utils.hash64ToDecimalString=function(a,b){D.utils.splitHash64(a);a=D.utils.split64Low;var c=D.utils.split64High;return b?D.utils.joinSignedDecimalString(a,c):D.utils.joinUnsignedDecimalString(a,c)};D.utils.hash64ArrayToDecimalStrings=function(a,b){for(var c=Array(a.length),g=0;g<a.length;g++)c[g]=D.utils.hash64ToDecimalString(a[g],b);return c};
D.utils.decimalStringToHash64=function(a){function b(m,t){for(var u=0;8>u&&(1!==m||0<t);u++)t=m*h[u]+t,h[u]=t&255,t>>>=8}function c(){for(var m=0;8>m;m++)h[m]=~h[m]&255}f.asserts.assert(0<a.length);var g=!1;"-"===a[0]&&(g=!0,a=a.slice(1));for(var h=[0,0,0,0,0,0,0,0],k=0;k<a.length;k++)b(10,a.charCodeAt(k)-D.utils.ZERO_CHAR_CODE_);g&&(c(),b(1,1));return f.crypt.byteArrayToString(h)};D.utils.splitDecimalString=function(a){D.utils.splitHash64(D.utils.decimalStringToHash64(a))};
D.utils.toHexDigit_=function(a){return String.fromCharCode(10>a?D.utils.ZERO_CHAR_CODE_+a:D.utils.A_CHAR_CODE_-10+a)};D.utils.fromHexCharCode_=function(a){return a>=D.utils.A_CHAR_CODE_?a-D.utils.A_CHAR_CODE_+10:a-D.utils.ZERO_CHAR_CODE_};D.utils.hash64ToHexString=function(a){var b=Array(18);b[0]="0";b[1]="x";for(var c=0;8>c;c++){var g=a.charCodeAt(7-c);b[2*c+2]=D.utils.toHexDigit_(g>>4);b[2*c+3]=D.utils.toHexDigit_(g&15)}return b.join("")};
D.utils.hexStringToHash64=function(a){a=a.toLowerCase();f.asserts.assert(18==a.length);f.asserts.assert("0"==a[0]);f.asserts.assert("x"==a[1]);for(var b="",c=0;8>c;c++)b=String.fromCharCode(16*D.utils.fromHexCharCode_(a.charCodeAt(2*c+2))+D.utils.fromHexCharCode_(a.charCodeAt(2*c+3)))+b;return b};D.utils.hash64ToNumber=function(a,b){D.utils.splitHash64(a);a=D.utils.split64Low;var c=D.utils.split64High;return b?D.utils.joinInt64(a,c):D.utils.joinUint64(a,c)};
D.utils.numberToHash64=function(a){D.utils.splitInt64(a);return D.utils.joinHash64()};D.utils.countVarints=function(a,b,c){for(var g=0,h=b;h<c;h++)g+=a[h]>>7;return c-b-g};D.utils.countVarintFields=function(a,b,c,g){var h=0;g=8*g+D.BinaryConstants.WireType.VARINT;if(128>g)for(;b<c&&a[b++]==g;)for(h++;;){var k=a[b++];if(0==(k&128))break}else for(;b<c;){for(k=g;128<k;){if(a[b]!=(k&127|128))return h;b++;k>>=7}if(a[b++]!=k)break;for(h++;k=a[b++],0!=(k&128););}return h};
D.utils.countFixedFields_=function(a,b,c,g,h){var k=0;if(128>g)for(;b<c&&a[b++]==g;)k++,b+=h;else for(;b<c;){for(var m=g;128<m;){if(a[b++]!=(m&127|128))return k;m>>=7}if(a[b++]!=m)break;k++;b+=h}return k};D.utils.countFixed32Fields=function(a,b,c,g){return D.utils.countFixedFields_(a,b,c,8*g+D.BinaryConstants.WireType.FIXED32,4)};D.utils.countFixed64Fields=function(a,b,c,g){return D.utils.countFixedFields_(a,b,c,8*g+D.BinaryConstants.WireType.FIXED64,8)};
D.utils.countDelimitedFields=function(a,b,c,g){var h=0;for(g=8*g+D.BinaryConstants.WireType.DELIMITED;b<c;){for(var k=g;128<k;){if(a[b++]!=(k&127|128))return h;k>>=7}if(a[b++]!=k)break;h++;for(var m=0,t=1;k=a[b++],m+=(k&127)*t,t*=128,0!=(k&128););b+=m}return h};D.utils.debugBytesToTextFormat=function(a){var b='"';if(a){a=D.utils.byteSourceToUint8Array(a);for(var c=0;c<a.length;c++)b+="\\x",16>a[c]&&(b+="0"),b+=a[c].toString(16)}return b+'"'};
D.utils.debugScalarToTextFormat=function(a){return f.isString(a)?f.string.quote(a):a.toString()};D.utils.stringToByteArray=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++){var g=a.charCodeAt(c);if(255<g)throw Error("Conversion error: string contains codepoint outside of byte range");b[c]=g}return b};
D.utils.byteSourceToUint8Array=function(a){if(a.constructor===Uint8Array)return a;if(a.constructor===ArrayBuffer)return new Uint8Array(a);if(a.constructor===Array)return new Uint8Array(a);if(a.constructor===String)return f.crypt.base64.decodeStringToUint8Array(a);f.asserts.fail("Type not convertible to Uint8Array.");return new Uint8Array(0)};D.BinaryDecoder=function(a,b,c){this.bytes_=null;this.cursor_=this.end_=this.start_=0;this.error_=!1;a&&this.setBlock(a,b,c)};D.BinaryDecoder.instanceCache_=[];D.BinaryDecoder.alloc=function(a,b,c){if(D.BinaryDecoder.instanceCache_.length){var g=D.BinaryDecoder.instanceCache_.pop();a&&g.setBlock(a,b,c);return g}return new D.BinaryDecoder(a,b,c)};d=D.BinaryDecoder.prototype;d.clone=function(){return D.BinaryDecoder.alloc(this.bytes_,this.start_,this.end_-this.start_)};
d.clear=function(){this.bytes_=null;this.cursor_=this.end_=this.start_=0;this.error_=!1};d.setBlock=function(a,b,c){this.bytes_=D.utils.byteSourceToUint8Array(a);this.start_=f.isDef(b)?b:0;this.end_=f.isDef(c)?this.start_+c:this.bytes_.length;this.cursor_=this.start_};d.getEnd=function(){return this.end_};d.setEnd=function(a){this.end_=a};d.reset=function(){this.cursor_=this.start_};d.getCursor=function(){return this.cursor_};d.advance=function(a){this.cursor_+=a;f.asserts.assert(this.cursor_<=this.end_)};
d.getError=function(){return this.error_||0>this.cursor_||this.cursor_>this.end_};d.readSplitVarint64=function(a){for(var b=128,c=0,g=0,h=0;4>h&&128<=b;h++)b=this.bytes_[this.cursor_++],c|=(b&127)<<7*h;128<=b&&(b=this.bytes_[this.cursor_++],c|=(b&127)<<28,g|=(b&127)>>4);if(128<=b)for(h=0;5>h&&128<=b;h++)b=this.bytes_[this.cursor_++],g|=(b&127)<<7*h+3;if(128>b)return a(c>>>0,g>>>0);f.asserts.fail("Failed to read varint, encoding is invalid.");this.error_=!0};
d.readUnsignedVarint32=function(){var a=this.bytes_;var b=a[this.cursor_+0];var c=b&127;if(128>b)return this.cursor_+=1,f.asserts.assert(this.cursor_<=this.end_),c;b=a[this.cursor_+1];c|=(b&127)<<7;if(128>b)return this.cursor_+=2,f.asserts.assert(this.cursor_<=this.end_),c;b=a[this.cursor_+2];c|=(b&127)<<14;if(128>b)return this.cursor_+=3,f.asserts.assert(this.cursor_<=this.end_),c;b=a[this.cursor_+3];c|=(b&127)<<21;if(128>b)return this.cursor_+=4,f.asserts.assert(this.cursor_<=this.end_),c;b=a[this.cursor_+
4];c|=(b&15)<<28;if(128>b)return this.cursor_+=5,f.asserts.assert(this.cursor_<=this.end_),c>>>0;this.cursor_+=5;128<=a[this.cursor_++]&&128<=a[this.cursor_++]&&128<=a[this.cursor_++]&&128<=a[this.cursor_++]&&128<=a[this.cursor_++]&&f.asserts.assert(!1);f.asserts.assert(this.cursor_<=this.end_);return c};d.readSignedVarint32=D.BinaryDecoder.prototype.readUnsignedVarint32;d.readSignedVarint64=function(){return this.readSplitVarint64(D.utils.joinInt64)};d.readSignedVarint64String=function(){return this.readSplitVarint64(D.utils.joinSignedDecimalString)};
d.readUint32=function(){var a=this.bytes_[this.cursor_+0],b=this.bytes_[this.cursor_+1],c=this.bytes_[this.cursor_+2],g=this.bytes_[this.cursor_+3];this.cursor_+=4;f.asserts.assert(this.cursor_<=this.end_);return(a<<0|b<<8|c<<16|g<<24)>>>0};d.readUint64=function(){var a=this.readUint32(),b=this.readUint32();return D.utils.joinUint64(a,b)};
d.readInt32=function(){var a=this.bytes_[this.cursor_+0],b=this.bytes_[this.cursor_+1],c=this.bytes_[this.cursor_+2],g=this.bytes_[this.cursor_+3];this.cursor_+=4;f.asserts.assert(this.cursor_<=this.end_);return a<<0|b<<8|c<<16|g<<24};d.readInt64=function(){var a=this.readUint32(),b=this.readUint32();return D.utils.joinInt64(a,b)};d.readInt64String=function(){var a=this.readUint32(),b=this.readUint32();return D.utils.joinSignedDecimalString(a,b)};
d.readDouble=function(){var a=this.readUint32(),b=this.readUint32();return D.utils.joinFloat64(a,b)};d.readBool=function(){return!!this.bytes_[this.cursor_++]};d.readEnum=function(){return this.readSignedVarint32()};
d.readString=function(a){var b=this.bytes_,c=this.cursor_;a=c+a;for(var g=[],h="";c<a;){var k=b[c++];if(128>k)g.push(k);else if(192>k)continue;else if(224>k){var m=b[c++];g.push((k&31)<<6|m&63)}else if(240>k){m=b[c++];var t=b[c++];g.push((k&15)<<12|(m&63)<<6|t&63)}else if(248>k){m=b[c++];t=b[c++];var u=b[c++];k=(k&7)<<18|(m&63)<<12|(t&63)<<6|u&63;k-=65536;g.push((k>>10&1023)+55296,(k&1023)+56320)}8192<=g.length&&(h+=String.fromCharCode.apply(null,g),g.length=0)}h+=f.crypt.byteArrayToString(g);this.cursor_=
c;return h};d.readBytes=function(a){if(0>a||this.cursor_+a>this.bytes_.length)return this.error_=!0,f.asserts.fail("Invalid byte length!"),new Uint8Array(0);var b=this.bytes_.subarray(this.cursor_,this.cursor_+a);this.cursor_+=a;f.asserts.assert(this.cursor_<=this.end_);return b};D.BinaryEncoder=function(){this.buffer_=[]};D.BinaryEncoder.prototype.length=function(){return this.buffer_.length};D.BinaryEncoder.prototype.end=function(){var a=this.buffer_;this.buffer_=[];return a};
D.BinaryEncoder.prototype.writeSplitVarint64=function(a,b){f.asserts.assert(a==Math.floor(a));f.asserts.assert(b==Math.floor(b));f.asserts.assert(0<=a&&a<D.BinaryConstants.TWO_TO_32);for(f.asserts.assert(0<=b&&b<D.BinaryConstants.TWO_TO_32);0<b||127<a;)this.buffer_.push(a&127|128),a=(a>>>7|b<<25)>>>0,b>>>=7;this.buffer_.push(a)};
D.BinaryEncoder.prototype.writeSplitFixed64=function(a,b){f.asserts.assert(a==Math.floor(a));f.asserts.assert(b==Math.floor(b));f.asserts.assert(0<=a&&a<D.BinaryConstants.TWO_TO_32);f.asserts.assert(0<=b&&b<D.BinaryConstants.TWO_TO_32);this.writeUint32(a);this.writeUint32(b)};
var ta=function(a,b){f.asserts.assert(b==Math.floor(b));for(f.asserts.assert(0<=b&&b<D.BinaryConstants.TWO_TO_32);127<b;)a.buffer_.push(b&127|128),b>>>=7;a.buffer_.push(b)},E=function(a,b){f.asserts.assert(b==Math.floor(b));f.asserts.assert(b>=-D.BinaryConstants.TWO_TO_31&&b<D.BinaryConstants.TWO_TO_31);if(0<=b)ta(a,b);else{for(var c=0;9>c;c++)a.buffer_.push(b&127|128),b>>=7;a.buffer_.push(1)}},ua=function(a,b){f.asserts.assert(b==Math.floor(b));f.asserts.assert(b>=-D.BinaryConstants.TWO_TO_63&&b<
D.BinaryConstants.TWO_TO_63);D.utils.splitInt64(b);a.writeSplitVarint64(D.utils.split64Low,D.utils.split64High)};d=D.BinaryEncoder.prototype;d.writeUint32=function(a){f.asserts.assert(a==Math.floor(a));f.asserts.assert(0<=a&&a<D.BinaryConstants.TWO_TO_32);this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255);this.buffer_.push(a>>>16&255);this.buffer_.push(a>>>24&255)};
d.writeUint64=function(a){f.asserts.assert(a==Math.floor(a));f.asserts.assert(0<=a&&a<D.BinaryConstants.TWO_TO_64);D.utils.splitUint64(a);this.writeUint32(D.utils.split64Low);this.writeUint32(D.utils.split64High)};d.writeInt32=function(a){f.asserts.assert(a==Math.floor(a));f.asserts.assert(a>=-D.BinaryConstants.TWO_TO_31&&a<D.BinaryConstants.TWO_TO_31);this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255);this.buffer_.push(a>>>16&255);this.buffer_.push(a>>>24&255)};
d.writeInt64=function(a){f.asserts.assert(a==Math.floor(a));f.asserts.assert(a>=-D.BinaryConstants.TWO_TO_63&&a<D.BinaryConstants.TWO_TO_63);D.utils.splitInt64(a);this.writeSplitFixed64(D.utils.split64Low,D.utils.split64High)};d.writeInt64String=function(a){f.asserts.assert(a==Math.floor(a));f.asserts.assert(+a>=-D.BinaryConstants.TWO_TO_63&&+a<D.BinaryConstants.TWO_TO_63);D.utils.splitHash64(D.utils.decimalStringToHash64(a));this.writeSplitFixed64(D.utils.split64Low,D.utils.split64High)};
d.writeDouble=function(a){f.asserts.assert(Infinity===a||-Infinity===a||isNaN(a)||a>=-D.BinaryConstants.FLOAT64_MAX&&a<=D.BinaryConstants.FLOAT64_MAX);D.utils.splitFloat64(a);this.writeUint32(D.utils.split64Low);this.writeUint32(D.utils.split64High)};d.writeBool=function(a){f.asserts.assert(f.isBoolean(a)||f.isNumber(a));this.buffer_.push(a?1:0)};d.writeEnum=function(a){f.asserts.assert(a==Math.floor(a));f.asserts.assert(a>=-D.BinaryConstants.TWO_TO_31&&a<D.BinaryConstants.TWO_TO_31);E(this,a)};
d.writeBytes=function(a){this.buffer_.push.apply(this.buffer_,a)};
d.writeString=function(a){for(var b=0;b<a.length;b++){var c=a.charCodeAt(b);if(128>c)this.buffer_.push(c);else if(2048>c)this.buffer_.push(c>>6|192),this.buffer_.push(c&63|128);else if(65536>c)if(55296<=c&&56319>=c&&b+1<a.length){var g=a.charCodeAt(b+1);56320<=g&&57343>=g&&(c=1024*(c-55296)+g-56320+65536,this.buffer_.push(c>>18|240),this.buffer_.push(c>>12&63|128),this.buffer_.push(c>>6&63|128),this.buffer_.push(c&63|128),b++)}else this.buffer_.push(c>>12|224),this.buffer_.push(c>>6&63|128),this.buffer_.push(c&
63|128)}};D.BinaryReader=function(a,b,c){this.decoder_=D.BinaryDecoder.alloc(a,b,c);this.fieldCursor_=this.decoder_.getCursor();this.nextField_=D.BinaryConstants.INVALID_FIELD_NUMBER;this.nextWireType_=D.BinaryConstants.WireType.INVALID;this.error_=!1};D.BinaryReader.instanceCache_=[];D.BinaryReader.alloc=function(a,b,c){if(D.BinaryReader.instanceCache_.length){var g=D.BinaryReader.instanceCache_.pop();a&&g.decoder_.setBlock(a,b,c);return g}return new D.BinaryReader(a,b,c)};D.BinaryReader.prototype.alloc=D.BinaryReader.alloc;
D.BinaryReader.prototype.getCursor=function(){return this.decoder_.getCursor()};var F=function(a){return a.nextWireType_==D.BinaryConstants.WireType.END_GROUP};D.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()};D.BinaryReader.prototype.setBlock=function(a,b,c){this.decoder_.setBlock(a,b,c);this.nextField_=D.BinaryConstants.INVALID_FIELD_NUMBER;this.nextWireType_=D.BinaryConstants.WireType.INVALID};
D.BinaryReader.prototype.reset=function(){this.decoder_.reset();this.nextField_=D.BinaryConstants.INVALID_FIELD_NUMBER;this.nextWireType_=D.BinaryConstants.WireType.INVALID};D.BinaryReader.prototype.advance=function(a){this.decoder_.advance(a)};
var H=function(a){var b=a.decoder_;if(b.cursor_==b.end_)return!1;if(a.getError())return f.asserts.fail("Decoder hit an error"),!1;a.fieldCursor_=a.decoder_.getCursor();var c=a.decoder_.readUnsignedVarint32();b=c>>>3;c&=7;if(c!=D.BinaryConstants.WireType.VARINT&&c!=D.BinaryConstants.WireType.FIXED32&&c!=D.BinaryConstants.WireType.FIXED64&&c!=D.BinaryConstants.WireType.DELIMITED&&c!=D.BinaryConstants.WireType.START_GROUP&&c!=D.BinaryConstants.WireType.END_GROUP)return f.asserts.fail("Invalid wire type: %s (at position %s)",
c,a.fieldCursor_),a.error_=!0,!1;a.nextField_=b;a.nextWireType_=c;return!0},I=function(a){switch(a.nextWireType_){case D.BinaryConstants.WireType.VARINT:if(a.nextWireType_!=D.BinaryConstants.WireType.VARINT)f.asserts.fail("Invalid wire type for skipVarintField"),I(a);else{for(a=a.decoder_;a.bytes_[a.cursor_]&128;)a.cursor_++;a.cursor_++}break;case D.BinaryConstants.WireType.FIXED64:a.nextWireType_!=D.BinaryConstants.WireType.FIXED64?(f.asserts.fail("Invalid wire type for skipFixed64Field"),I(a)):
a.decoder_.advance(8);break;case D.BinaryConstants.WireType.DELIMITED:if(a.nextWireType_!=D.BinaryConstants.WireType.DELIMITED)f.asserts.fail("Invalid wire type for skipDelimitedField"),I(a);else{var b=a.decoder_.readUnsignedVarint32();a.decoder_.advance(b)}break;case D.BinaryConstants.WireType.FIXED32:a.nextWireType_!=D.BinaryConstants.WireType.FIXED32?(f.asserts.fail("Invalid wire type for skipFixed32Field"),I(a)):a.decoder_.advance(4);break;case D.BinaryConstants.WireType.START_GROUP:b=a.nextField_;
do{if(!H(a)){f.asserts.fail("Unmatched start-group tag: stream EOF");a.error_=!0;break}if(a.nextWireType_==D.BinaryConstants.WireType.END_GROUP){a.nextField_!=b&&(f.asserts.fail("Unmatched end-group tag"),a.error_=!0);break}I(a)}while(1);break;default:f.asserts.fail("Invalid wire encoding for field.")}};d=D.BinaryReader.prototype;
d.readMessage=function(a,b){f.asserts.assert(this.nextWireType_==D.BinaryConstants.WireType.DELIMITED);var c=this.decoder_.getEnd(),g=this.decoder_.readUnsignedVarint32();g=this.decoder_.getCursor()+g;this.decoder_.setEnd(g);b(a,this);this.decoder_.cursor_=g;this.decoder_.setEnd(c)};d.readInt32=function(){f.asserts.assert(this.nextWireType_==D.BinaryConstants.WireType.VARINT);return this.decoder_.readSignedVarint32()};
d.readInt64=function(){f.asserts.assert(this.nextWireType_==D.BinaryConstants.WireType.VARINT);return this.decoder_.readSignedVarint64()};d.readInt64String=function(){f.asserts.assert(this.nextWireType_==D.BinaryConstants.WireType.VARINT);return this.decoder_.readSignedVarint64String()};d.readUint32=function(){f.asserts.assert(this.nextWireType_==D.BinaryConstants.WireType.VARINT);return this.decoder_.readUnsignedVarint32()};
d.readUint64=function(){f.asserts.assert(this.nextWireType_==D.BinaryConstants.WireType.VARINT);return this.decoder_.readSplitVarint64(D.utils.joinUint64)};var va=function(a){f.asserts.assert(a.nextWireType_==D.BinaryConstants.WireType.VARINT);a=a.decoder_.readUnsignedVarint32();return a>>>1^-(a&1)};d=D.BinaryReader.prototype;d.readDouble=function(){f.asserts.assert(this.nextWireType_==D.BinaryConstants.WireType.FIXED64);return this.decoder_.readDouble()};
d.readBool=function(){f.asserts.assert(this.nextWireType_==D.BinaryConstants.WireType.VARINT);return!!this.decoder_.readUnsignedVarint32()};d.readEnum=function(){f.asserts.assert(this.nextWireType_==D.BinaryConstants.WireType.VARINT);return this.decoder_.readSignedVarint64()};d.readString=function(){f.asserts.assert(this.nextWireType_==D.BinaryConstants.WireType.DELIMITED);var a=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(a)};
d.readBytes=function(){f.asserts.assert(this.nextWireType_==D.BinaryConstants.WireType.DELIMITED);var a=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(a)};d.readSplitVarint64=function(a){f.asserts.assert(this.nextWireType_==D.BinaryConstants.WireType.VARINT);return this.decoder_.readSplitVarint64(a)};
var J=function(a,b){f.asserts.assert(a.nextWireType_==D.BinaryConstants.WireType.DELIMITED);var c=a.decoder_.readUnsignedVarint32();c=a.decoder_.getCursor()+c;for(var g=[];a.decoder_.getCursor()<c;)g.push(b.call(a.decoder_));return g};D.BinaryWriter=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new D.BinaryEncoder};var L=function(a,b){K(a,b,D.BinaryConstants.WireType.DELIMITED);b=a.encoder_.end();a.blocks_.push(b);a.totalLength_+=b.length;b.push(a.totalLength_);return b},M=function(a,b){var c=b.pop();c=a.totalLength_+a.encoder_.length()-c;for(f.asserts.assert(0<=c);127<c;)b.push(c&127|128),c>>>=7,a.totalLength_++;b.push(c);a.totalLength_++};
D.BinaryWriter.prototype.reset=function(){this.blocks_=[];this.encoder_.end();this.totalLength_=0};var K=function(a,b,c){f.asserts.assert(1<=b&&b==Math.floor(b));ta(a.encoder_,8*b+c)},wa=function(a,b,c){null!=c&&(K(a,b,D.BinaryConstants.WireType.VARINT),E(a.encoder_,c))};d=D.BinaryWriter.prototype;d.writeInt32=function(a,b){null!=b&&(f.asserts.assert(b>=-D.BinaryConstants.TWO_TO_31&&b<D.BinaryConstants.TWO_TO_31),wa(this,a,b))};
d.writeInt64=function(a,b){null!=b&&(f.asserts.assert(b>=-D.BinaryConstants.TWO_TO_63&&b<D.BinaryConstants.TWO_TO_63),null!=b&&(K(this,a,D.BinaryConstants.WireType.VARINT),ua(this.encoder_,b)))};d.writeInt64String=function(a,b){null!=b&&(b=D.arith.Int64.fromString(b),K(this,a,D.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(b.lo,b.hi))};d.writeUint32=function(){};
d.writeUint64=function(a,b){null!=b&&(f.asserts.assert(0<=b&&b<D.BinaryConstants.TWO_TO_64),null!=b&&(K(this,a,D.BinaryConstants.WireType.VARINT),a=this.encoder_,f.asserts.assert(b==Math.floor(b)),f.asserts.assert(0<=b&&b<D.BinaryConstants.TWO_TO_64),D.utils.splitInt64(b),a.writeSplitVarint64(D.utils.split64Low,D.utils.split64High)))};
var xa=function(a,b,c){null!=c&&(f.asserts.assert(c>=-D.BinaryConstants.TWO_TO_31&&c<D.BinaryConstants.TWO_TO_31),null!=c&&(K(a,b,D.BinaryConstants.WireType.VARINT),a=a.encoder_,f.asserts.assert(c==Math.floor(c)),f.asserts.assert(c>=-D.BinaryConstants.TWO_TO_31&&c<D.BinaryConstants.TWO_TO_31),ta(a,(c<<1^c>>31)>>>0)))};d=D.BinaryWriter.prototype;d.writeDouble=function(a,b){null!=b&&(K(this,a,D.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(b))};
d.writeBool=function(a,b){null!=b&&(f.asserts.assert(f.isBoolean(b)||f.isNumber(b)),K(this,a,D.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(b))};d.writeEnum=function(a,b){null!=b&&(f.asserts.assert(b>=-D.BinaryConstants.TWO_TO_31&&b<D.BinaryConstants.TWO_TO_31),K(this,a,D.BinaryConstants.WireType.VARINT),E(this.encoder_,b))};d.writeString=function(a,b){null!=b&&(a=L(this,a),this.encoder_.writeString(b),M(this,a))};
d.writeBytes=function(a,b){null!=b&&(b=D.utils.byteSourceToUint8Array(b),K(this,a,D.BinaryConstants.WireType.DELIMITED),ta(this.encoder_,b.length),a=this.encoder_.end(),this.blocks_.push(a),this.blocks_.push(b),this.totalLength_+=a.length+b.length)};var N=function(a,b,c,g){null!=c&&(b=L(a,b),g(c,a),M(a,b))};
D.BinaryWriter.prototype.writeMessageSet=function(a,b,c){null!=b&&(K(this,1,D.BinaryConstants.WireType.START_GROUP),K(this,2,D.BinaryConstants.WireType.VARINT),E(this.encoder_,a),a=L(this,3),c(b,this),M(this,a),K(this,1,D.BinaryConstants.WireType.END_GROUP))};D.BinaryWriter.prototype.writeSplitFixed64=function(a,b){K(this,a,D.BinaryConstants.WireType.FIXED64);this.encoder_.writeSplitFixed64(b,void 0)};
D.BinaryWriter.prototype.writeSplitVarint64=function(a,b){K(this,a,D.BinaryConstants.WireType.VARINT);this.encoder_.writeSplitVarint64(b,void 0)};
var ya=function(a,b,c){if(null!=c)for(var g=0;g<c.length;g++)wa(a,b,c[g])},Ba=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)a.writeEnum(1,b[c])},O=function(a,b,c){if(null!=c)for(var g=0;g<c.length;g++)a.writeString(b,c[g])},P=function(a,b,c,g){if(null!=c)for(var h=0;h<c.length;h++){var k=L(a,b);g(c[h],a);M(a,k)}},Ca=function(a,b,c){if(null!=c&&c.length){b=L(a,b);for(var g=0;g<c.length;g++)E(a.encoder_,c[g]);M(a,b)}};D.Map=function(a,b){this.arr_=a;this.valueCtor_=b;this.map_={};this.arrClean=!0;if(0<this.arr_.length){for(a=0;a<this.arr_.length;a++){b=this.arr_[a];var c=b[0];this.map_[c.toString()]=new D.Map.Entry_(c,b[1])}this.arrClean=!0}};
D.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var a=this.map_,b;for(b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b].valueWrapper;c&&c.toArray()}}}else{this.arr_.length=0;a=R(this);a.sort();for(b=0;b<a.length;b++){var g=this.map_[a[b]];(c=g.valueWrapper)&&c.toArray();this.arr_.push([g.key,g.value])}this.arrClean=!0}return this.arr_};
D.Map.prototype.toObject=function(a,b){for(var c=this.toArray(),g=[],h=0;h<c.length;h++){var k=this.map_[c[h][0].toString()];S(this,k);var m=k.valueWrapper;m?(f.asserts.assert(b),g.push([k.key,b(a,m)])):g.push([k.key,k.value])}return g};D.Map.fromObject=function(a,b,c){b=new D.Map([],b);for(var g=0;g<a.length;g++){var h=a[g][0],k=c(a[g][1]);b.set(h,k)}return b};D.Map.ArrayIteratorIterable_=function(a){this.idx_=0;this.arr_=a};
D.Map.ArrayIteratorIterable_.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}};"undefined"!=typeof Symbol&&(D.Map.ArrayIteratorIterable_.prototype[Symbol.iterator]=function(){return this});d=D.Map.prototype;d.clear=function(){this.map_={};this.arrClean=!1};d.entries=function(){var a=[],b=R(this);b.sort();for(var c=0;c<b.length;c++){var g=this.map_[b[c]];a.push([g.key,S(this,g)])}return new D.Map.ArrayIteratorIterable_(a)};
d.keys=function(){var a=[],b=R(this);b.sort();for(var c=0;c<b.length;c++)a.push(this.map_[b[c]].key);return new D.Map.ArrayIteratorIterable_(a)};d.values=function(){var a=[],b=R(this);b.sort();for(var c=0;c<b.length;c++)a.push(S(this,this.map_[b[c]]));return new D.Map.ArrayIteratorIterable_(a)};d.forEach=function(a,b){var c=R(this);c.sort();for(var g=0;g<c.length;g++){var h=this.map_[c[g]];a.call(b,S(this,h),h.key,this)}};
d.set=function(a,b){var c=new D.Map.Entry_(a);this.valueCtor_?(c.valueWrapper=b,c.value=b.toArray()):c.value=b;this.map_[a.toString()]=c;this.arrClean=!1;return this};var S=function(a,b){return a.valueCtor_?(b.valueWrapper||(b.valueWrapper=new a.valueCtor_(b.value)),b.valueWrapper):b.value};D.Map.prototype.get=function(a){if(a=this.map_[a.toString()])return S(this,a)};D.Map.prototype.has=function(a){return a.toString()in this.map_};
D.Map.deserializeBinary=function(a){for(var b=void 0,c=void 0;H(void 0)&&!F(void 0);){var g=(void 0).nextField_;1==g?b=(void 0).call(void 0):2==g&&(a.valueCtor_?(f.asserts.assert(void 0),c||(c=new a.valueCtor_),(void 0).call(void 0,c,void 0)):c=(void 0).call(void 0))}f.asserts.assert(void 0!=b);f.asserts.assert(void 0!=c);a.set(b,c)};var R=function(a){a=a.map_;var b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b};
D.Map.Entry_=function(a,b){this.key=a;this.value=b;this.valueWrapper=void 0};D.ExtensionFieldInfo=function(){var a=T.postaladdress.PostalAddress,b=T.postaladdress.PostalAddress.toObject;this.fieldIndex=3514611;this.fieldName={messageSetExtension:0};this.ctor=a;this.toObjectFn=b;this.isRepeated=0};
D.ExtensionFieldBinaryInfo=function(){var a=D.BinaryReader.prototype.readMessage,b=D.BinaryWriter.prototype.writeMessageSet,c=T.postaladdress.PostalAddress.serializeBinaryToWriter,g=T.postaladdress.PostalAddress.deserializeBinaryFromReader;this.fieldInfo=T.postaladdress.PostalAddress.messageSetExtension;this.binaryReaderFn=a;this.binaryWriterFn=b;this.binaryMessageSerializeFn=c;this.binaryMessageDeserializeFn=g;this.isPacked=!1};D.Message=function(){};D.Message.GENERATE_TO_OBJECT=!0;
D.Message.GENERATE_FROM_OBJECT=!f.DISALLOW_TEST_ONLY_CODE;D.Message.GENERATE_TO_STRING=!0;D.Message.ASSUME_LOCAL_ARRAYS=!1;D.Message.SERIALIZE_EMPTY_TRAILING_FIELDS=!0;D.Message.SUPPORTS_UINT8ARRAY_="function"==typeof Uint8Array;D.Message.getIndex_=function(a,b){return b+a.arrayIndexOffset_};D.Message.hiddenES6Property_=function(){};D.Message.getFieldNumber_=function(a,b){return b-a.arrayIndexOffset_};
D.Message.initialize=function(a,b,c,g,h,k){a.wrappers_=null;b||(b=c?[c]:[]);a.messageId_=c?String(c):void 0;a.arrayIndexOffset_=0===c?-1:0;a.array=b;D.Message.initPivotAndExtensionObject_(a,g);a.convertedPrimitiveFields_={};D.Message.SERIALIZE_EMPTY_TRAILING_FIELDS||(a.repeatedFields=h);if(h)for(b=0;b<h.length;b++)c=h[b],c<a.pivot_?(c=D.Message.getIndex_(a,c),a.array[c]=a.array[c]||D.Message.EMPTY_LIST_SENTINEL_):(D.Message.maybeInitEmptyExtensionObject_(a),a.extensionObject_[c]=a.extensionObject_[c]||
D.Message.EMPTY_LIST_SENTINEL_);if(k&&k.length)for(b=0;b<k.length;b++)D.Message.computeOneofCase(a,k[b])};D.Message.EMPTY_LIST_SENTINEL_=f.DEBUG&&Object.freeze?Object.freeze([]):[];D.Message.isArray_=function(a){return D.Message.ASSUME_LOCAL_ARRAYS?a instanceof Array:f.isArray(a)};D.Message.isExtensionObject_=function(a){return null!==a&&"object"==typeof a&&!D.Message.isArray_(a)&&!(D.Message.SUPPORTS_UINT8ARRAY_&&a instanceof Uint8Array)};
D.Message.initPivotAndExtensionObject_=function(a,b){var c=a.array.length,g=-1;if(c&&(g=c-1,c=a.array[g],D.Message.isExtensionObject_(c))){a.pivot_=D.Message.getFieldNumber_(a,g);a.extensionObject_=c;return}-1<b?(a.pivot_=Math.max(b,D.Message.getFieldNumber_(a,g+1)),a.extensionObject_=null):a.pivot_=Number.MAX_VALUE};D.Message.maybeInitEmptyExtensionObject_=function(a){var b=D.Message.getIndex_(a,a.pivot_);a.array[b]||(a.extensionObject_=a.array[b]={})};
D.Message.toObjectList=function(a,b,c){for(var g=[],h=0;h<a.length;h++)g[h]=b.call(a[h],c,a[h]);return g};D.Message.toObjectExtension=function(a,b,c,g,h){for(var k in c){var m=c[k],t=g.call(a,m);if(null!=t){for(var u in m.fieldName)if(m.fieldName.hasOwnProperty(u))break;b[u]=m.toObjectFn?m.isRepeated?D.Message.toObjectList(t,m.toObjectFn,h):m.toObjectFn(h,t):t}}};
D.Message.serializeBinaryExtensions=function(a,b,c,g){for(var h in c){var k=c[h],m=k.fieldInfo;if(!k.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var t=g.call(a,m);if(null!=t)if(m.ctor)if(k.binaryMessageSerializeFn)k.binaryWriterFn.call(b,m.fieldIndex,t,k.binaryMessageSerializeFn);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else k.binaryWriterFn.call(b,
m.fieldIndex,t)}};
D.Message.readBinaryExtensionMessageSet=function(a,b){var c=D.Message.messageSetExtensionsBinary,g=T.proto2.bridge.MessageSet.prototype.setExtension;if(1==b.nextField_&&b.nextWireType_==D.BinaryConstants.WireType.START_GROUP){for(var h=0,k=null;H(b)&&(0!=b.nextWireType_||0!=b.nextField_);)if(b.nextWireType_==D.BinaryConstants.WireType.VARINT&&2==b.nextField_)h=b.readUint32();else if(b.nextWireType_==D.BinaryConstants.WireType.DELIMITED&&3==b.nextField_)k=b.readBytes();else if(b.nextWireType_==D.BinaryConstants.WireType.END_GROUP)break;
else I(b);if(1!=b.nextField_||b.nextWireType_!=D.BinaryConstants.WireType.END_GROUP||null==k||0==h)throw Error("Malformed binary bytes for message set");if(b=c[h])c=b.fieldInfo,h=new c.ctor,b.binaryMessageDeserializeFn.call(h,h,new D.BinaryReader(k)),g.call(a,c,h)}else I(b)};
D.Message.readBinaryExtension=function(a,b,c,g,h){var k=c[b.nextField_];if(k){c=k.fieldInfo;if(!k.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(c.ctor){var m=new c.ctor;k.binaryReaderFn.call(b,m,k.binaryMessageDeserializeFn)}else m=k.binaryReaderFn.call(b);c.isRepeated&&!k.isPacked?(b=g.call(a,c))?b.push(m):h.call(a,c,[m]):h.call(a,c,m)}else I(b)};
D.Message.getField=function(a,b){if(b<a.pivot_){b=D.Message.getIndex_(a,b);var c=a.array[b];return c===D.Message.EMPTY_LIST_SENTINEL_?a.array[b]=[]:c}if(a.extensionObject_)return c=a.extensionObject_[b],c===D.Message.EMPTY_LIST_SENTINEL_?a.extensionObject_[b]=[]:c};D.Message.getRepeatedField=function(a,b){return D.Message.getField(a,b)};D.Message.getOptionalFloatingPointField=function(a,b){a=D.Message.getField(a,b);return null==a?a:+a};
D.Message.getBooleanField=function(a,b){a=D.Message.getField(a,b);return null==a?a:!!a};D.Message.getRepeatedFloatingPointField=function(a,b){var c=D.Message.getRepeatedField(a,b);a.convertedPrimitiveFields_||(a.convertedPrimitiveFields_={});if(!a.convertedPrimitiveFields_[b]){for(var g=0;g<c.length;g++)c[g]=+c[g];a.convertedPrimitiveFields_[b]=!0}return c};
D.Message.getRepeatedBooleanField=function(a,b){var c=D.Message.getRepeatedField(a,b);a.convertedPrimitiveFields_||(a.convertedPrimitiveFields_={});if(!a.convertedPrimitiveFields_[b]){for(var g=0;g<c.length;g++)c[g]=!!c[g];a.convertedPrimitiveFields_[b]=!0}return c};D.Message.bytesAsB64=function(a){if(null==a||f.isString(a))return a;if(D.Message.SUPPORTS_UINT8ARRAY_&&a instanceof Uint8Array)return f.crypt.base64.encodeByteArray(a);f.asserts.fail("Cannot coerce to b64 string: "+f.typeOf(a));return null};
D.Message.bytesAsU8=function(a){if(null==a||a instanceof Uint8Array)return a;if(f.isString(a))return f.crypt.base64.decodeStringToUint8Array(a);f.asserts.fail("Cannot coerce to Uint8Array: "+f.typeOf(a));return null};D.Message.bytesListAsB64=function(a){D.Message.assertConsistentTypes_(a);return!a.length||f.isString(a[0])?a:f.array.map(a,D.Message.bytesAsB64)};D.Message.bytesListAsU8=function(a){D.Message.assertConsistentTypes_(a);return!a.length||a[0]instanceof Uint8Array?a:f.array.map(a,D.Message.bytesAsU8)};
D.Message.assertConsistentTypes_=function(a){if(f.DEBUG&&a&&1<a.length){var b=f.typeOf(a[0]);f.array.forEach(a,function(c){f.typeOf(c)!=b&&f.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+f.typeOf(c)+" expected "+b)})}};D.Message.getFieldWithDefault=function(a,b,c){a=D.Message.getField(a,b);return null==a?c:a};D.Message.getBooleanFieldWithDefault=function(a,b,c){a=D.Message.getBooleanField(a,b);return null==a?c:a};
D.Message.getFloatingPointFieldWithDefault=function(a,b,c){a=D.Message.getOptionalFloatingPointField(a,b);return null==a?c:a};D.Message.getFieldProto3=D.Message.getFieldWithDefault;D.Message.getMapField=function(a,b,c,g){a.wrappers_||(a.wrappers_={});if(b in a.wrappers_)return a.wrappers_[b];var h=D.Message.getField(a,b);if(!h){if(c)return;h=[];D.Message.setField(a,b,h)}return a.wrappers_[b]=new D.Map(h,g)};
D.Message.setField=function(a,b,c){f.asserts.assertInstanceof(a,D.Message);b<a.pivot_?a.array[D.Message.getIndex_(a,b)]=c:(D.Message.maybeInitEmptyExtensionObject_(a),a.extensionObject_[b]=c);return a};D.Message.setProto3IntField=function(a,b,c){return D.Message.setFieldIgnoringDefault_(a,b,c,0)};D.Message.setProto3FloatField=function(a,b,c){D.Message.setFieldIgnoringDefault_(a,b,c,0)};D.Message.setProto3BooleanField=function(a,b,c){return D.Message.setFieldIgnoringDefault_(a,b,c,!1)};
D.Message.setProto3StringField=function(a,b,c){return D.Message.setFieldIgnoringDefault_(a,b,c,"")};D.Message.setProto3BytesField=function(a,b,c){return D.Message.setFieldIgnoringDefault_(a,b,c,"")};D.Message.setProto3EnumField=function(a,b,c){return D.Message.setFieldIgnoringDefault_(a,b,c,0)};D.Message.setProto3StringIntField=function(a,b,c){return D.Message.setFieldIgnoringDefault_(a,b,c,"0")};
D.Message.setFieldIgnoringDefault_=function(a,b,c,g){f.asserts.assertInstanceof(a,D.Message);c!==g?D.Message.setField(a,b,c):a.array[D.Message.getIndex_(a,b)]=null;return a};D.Message.addToRepeatedField=function(a,b,c,g){f.asserts.assertInstanceof(a,D.Message);b=D.Message.getRepeatedField(a,b);void 0!=g?b.splice(g,0,c):b.push(c);return a};
D.Message.setOneofField=function(a,b,c,g){f.asserts.assertInstanceof(a,D.Message);(c=D.Message.computeOneofCase(a,c))&&c!==b&&void 0!==g&&(a.wrappers_&&c in a.wrappers_&&(a.wrappers_[c]=void 0),D.Message.setField(a,c,void 0));D.Message.setField(a,b,g)};D.Message.computeOneofCase=function(a,b){for(var c,g,h=0;h<b.length;h++){var k=b[h],m=D.Message.getField(a,k);null!=m&&(c=k,g=m,D.Message.setField(a,k,void 0))}return c?(D.Message.setField(a,c,g),c):0};
D.Message.getWrapperField=function(a,b,c){a.wrappers_||(a.wrappers_={});if(!a.wrappers_[c]){var g=D.Message.getField(a,c);g&&(a.wrappers_[c]=new b(g))}return a.wrappers_[c]};D.Message.getRepeatedWrapperField=function(a,b,c){D.Message.wrapRepeatedField_(a,b,c);b=a.wrappers_[c];b==D.Message.EMPTY_LIST_SENTINEL_&&(b=a.wrappers_[c]=[]);return b};
D.Message.wrapRepeatedField_=function(a,b,c){a.wrappers_||(a.wrappers_={});if(!a.wrappers_[c]){for(var g=D.Message.getRepeatedField(a,c),h=[],k=0;k<g.length;k++)h[k]=new b(g[k]);a.wrappers_[c]=h}};D.Message.setWrapperField=function(a,b,c){f.asserts.assertInstanceof(a,D.Message);a.wrappers_||(a.wrappers_={});var g=c?c.toArray():c;a.wrappers_[b]=c;return D.Message.setField(a,b,g)};
D.Message.setOneofWrapperField=function(a,b,c,g){f.asserts.assertInstanceof(a,D.Message);a.wrappers_||(a.wrappers_={});var h=g?g.toArray():g;a.wrappers_[b]=g;D.Message.setOneofField(a,b,c,h)};D.Message.setRepeatedWrapperField=function(a,b,c){f.asserts.assertInstanceof(a,D.Message);a.wrappers_||(a.wrappers_={});c=c||[];for(var g=[],h=0;h<c.length;h++)g[h]=c[h].toArray();a.wrappers_[b]=c;D.Message.setField(a,b,g)};
D.Message.addToRepeatedWrapperField=function(a,b,c,g,h){D.Message.wrapRepeatedField_(a,g,b);var k=a.wrappers_[b];k||(k=a.wrappers_[b]=[]);c=c?c:new g;a=D.Message.getRepeatedField(a,b);void 0!=h?(k.splice(h,0,c),a.splice(h,0,c.toArray())):(k.push(c),a.push(c.toArray()));return c};D.Message.toMap=function(a,b,c,g){for(var h={},k=0;k<a.length;k++)h[b.call(a[k])]=c?c.call(a[k],g,a[k]):a[k];return h};
var Da=function(a){if(a.wrappers_)for(var b in a.wrappers_){var c=a.wrappers_[b];if(f.isArray(c))for(var g=0;g<c.length;g++)c[g]&&c[g].toArray();else c&&c.toArray()}};D.Message.prototype.toArray=function(){Da(this);return this.array};
D.Message.prototype.serialize=D.Message.SUPPORTS_UINT8ARRAY_?function(){var a=Uint8Array.prototype.toJSON;Uint8Array.prototype.toJSON=function(){return f.crypt.base64.encodeByteArray(this)};try{return JSON.stringify(this.array&&D.Message.prepareForSerialize_(this.toArray(),this),D.Message.serializeSpecialNumbers_)}finally{Uint8Array.prototype.toJSON=a}}:function(){return JSON.stringify(this.array&&D.Message.prepareForSerialize_(this.toArray(),this),D.Message.serializeSpecialNumbers_)};
D.Message.prepareForSerialize_=function(a,b){if(D.Message.SERIALIZE_EMPTY_TRAILING_FIELDS)return a;for(var c,g=a.length,h=!1,k,m=a.length;m--;){var t=a[m];if(D.Message.isArray_(t)){var u=f.isArray(b)?b[m]:b&&b.wrappers_?b.wrappers_[D.Message.getFieldNumber_(b,m)]:void 0;t=D.Message.prepareForSerialize_(t,u);!t.length&&b&&(f.isArray(b)||b.repeatedFields&&-1!=b.repeatedFields.indexOf(D.Message.getFieldNumber_(b,m))&&(t=null));t!=a[m]&&(h=!0)}else if(D.Message.isExtensionObject_(t)){k=D.Message.prepareExtensionForSerialize_(t,
b&&f.asserts.assertInstanceof(b,D.Message));k!=t&&(h=!0);g--;continue}null==t&&g==m+1?(h=!0,g--):h&&(c||(c=a.slice(0,g)),c[m]=t)}if(!h)return a;c||(c=a.slice(0,g));k&&c.push(k);return c};
D.Message.prepareExtensionForSerialize_=function(a,b){var c={},g=!1,h;for(h in a){var k=a[h];if(D.Message.isArray_(k)){var m=D.Message.prepareForSerialize_(k,b&&b.wrappers_&&b.wrappers_[h]);!m.length&&b&&b.repeatedFields&&-1!=b.repeatedFields.indexOf(+h)||(c[h]=m);c[h]!=k&&(g=!0)}else null!=k?c[h]=k:g=!0}if(!g)return a;for(h in c)return c;return null};D.Message.serializeSpecialNumbers_=function(a,b){return f.isNumber(b)&&(isNaN(b)||Infinity===b||-Infinity===b)?String(b):b};
D.Message.deserializeWithCtor=function(a,b){a=new a(b?JSON.parse(b):null);f.asserts.assertInstanceof(a,D.Message);return a};D.Message.deserialize=function(a,b){return D.Message.deserializeWithCtor(a,b)};D.Message.GENERATE_TO_STRING&&(D.Message.prototype.toString=function(){Da(this);return this.array.toString()});
D.Message.prototype.getExtension=function(a){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var b=a.fieldIndex;if(a.isRepeated){if(a.ctor)return this.wrappers_[b]||(this.wrappers_[b]=f.array.map(this.extensionObject_[b]||[],function(c){return new a.ctor(c)})),this.wrappers_[b]}else if(a.ctor)return!this.wrappers_[b]&&this.extensionObject_[b]&&(this.wrappers_[b]=new a.ctor(this.extensionObject_[b])),this.wrappers_[b];return this.extensionObject_[b]}};
D.Message.prototype.setExtension=function(a,b){this.wrappers_||(this.wrappers_={});D.Message.maybeInitEmptyExtensionObject_(this);var c=a.fieldIndex;a.isRepeated?(b=b||[],a.ctor?(this.wrappers_[c]=b,this.extensionObject_[c]=f.array.map(b,function(g){return g.toArray()})):this.extensionObject_[c]=b):a.ctor?(this.wrappers_[c]=b,this.extensionObject_[c]=b?b.toArray():b):this.extensionObject_[c]=b;return this};
D.Message.difference=function(a,b){if(!(a instanceof b.constructor))throw Error("Messages have different types.");var c=a.toArray();b=b.toArray();var g=[],h=0,k=c.length>b.length?c.length:b.length;a.messageId_&&(g[0]=a.messageId_,h=1);for(;h<k;h++)D.Message.compareFields(c[h],b[h])||(g[h]=b[h]);return new a.constructor(g)};D.Message.equals=function(a,b){return a==b||!(!a||!b)&&a instanceof b.constructor&&D.Message.compareFields(a.toArray(),b.toArray())};
D.Message.compareExtensions=function(a,b){a=a||{};b=b||{};var c={},g;for(g in a)c[g]=0;for(g in b)c[g]=0;for(g in c)if(!D.Message.compareFields(a[g],b[g]))return!1;return!0};
D.Message.compareFields=function(a,b){if(a==b)return!0;if(!f.isObject(a)||!f.isObject(b))return f.isNumber(a)&&isNaN(a)||f.isNumber(b)&&isNaN(b)?String(a)==String(b):!1;if(a.constructor!=b.constructor)return!1;if(D.Message.SUPPORTS_UINT8ARRAY_&&a.constructor===Uint8Array){if(a.length!=b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}if(a.constructor===Array){var g=void 0,h=void 0,k=Math.max(a.length,b.length);for(c=0;c<k;c++){var m=a[c],t=b[c];m&&m.constructor==Object&&
(f.asserts.assert(void 0===g),f.asserts.assert(c===a.length-1),g=m,m=void 0);t&&t.constructor==Object&&(f.asserts.assert(void 0===h),f.asserts.assert(c===b.length-1),h=t,t=void 0);if(!D.Message.compareFields(m,t))return!1}return g||h?(g=g||{},h=h||{},D.Message.compareExtensions(g,h)):!0}if(a.constructor===Object)return D.Message.compareExtensions(a,b);throw Error("Invalid type in JSPB array");};D.Message.prototype.cloneMessage=function(){return D.Message.cloneMessage(this)};
D.Message.prototype.clone=function(){return D.Message.cloneMessage(this)};D.Message.clone=function(a){return D.Message.cloneMessage(a)};D.Message.cloneMessage=function(a){return new a.constructor(D.Message.clone_(a.toArray()))};
D.Message.copyInto=function(a,b){f.asserts.assertInstanceof(a,D.Message);f.asserts.assertInstanceof(b,D.Message);f.asserts.assert(a.constructor==b.constructor,"Copy source and target message should have the same type.");a=D.Message.clone(a);for(var c=b.toArray(),g=a.toArray(),h=c.length=0;h<g.length;h++)c[h]=g[h];b.wrappers_=a.wrappers_;b.extensionObject_=a.extensionObject_};
D.Message.clone_=function(a){if(f.isArray(a)){for(var b=Array(a.length),c=0;c<a.length;c++){var g=a[c];null!=g&&(b[c]="object"==typeof g?D.Message.clone_(f.asserts.assert(g)):g)}return b}if(D.Message.SUPPORTS_UINT8ARRAY_&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)g=a[c],null!=g&&(b[c]="object"==typeof g?D.Message.clone_(f.asserts.assert(g)):g);return b};D.Message.registerMessageType=function(a,b){b.messageId=a};D.Message.messageSetExtensions={};
D.Message.messageSetExtensionsBinary={};var T={proto2:{}};T.proto2.UninterpretedOption=function(a){D.Message.initialize(this,a,0,-1,T.proto2.UninterpretedOption.repeatedFields_,null)};f.inherits(T.proto2.UninterpretedOption,D.Message);T.proto2.UninterpretedOption.NamePart=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.proto2.UninterpretedOption.NamePart,D.Message);T.proto2.UninterpretedOption.repeatedFields_=[2];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.UninterpretedOption.prototype.toObject=function(a){return T.proto2.UninterpretedOption.toObject(a,this)},T.proto2.UninterpretedOption.toObject=function(a,b){var c,g={nameList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.proto2.UninterpretedOption.NamePart,2),T.proto2.UninterpretedOption.NamePart.toObject,a),identifierValue:null==(c=D.Message.getField(b,3))?void 0:c,positiveIntValue:null==(c=D.Message.getField(b,4))?void 0:c,negativeIntValue:null==
(c=D.Message.getField(b,5))?void 0:c,doubleValue:null==(c=D.Message.getOptionalFloatingPointField(b,6))?void 0:c,stringValue:D.Message.bytesAsB64(b.getStringValue()),aggregateValue:null==(c=D.Message.getField(b,8))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.UninterpretedOption.ObjectFormat=function(){},T.proto2.UninterpretedOption.fromObject=function(a){var b=new T.proto2.UninterpretedOption;a.nameList&&D.Message.setRepeatedWrapperField(b,2,a.nameList.map(T.proto2.UninterpretedOption.NamePart.fromObject));null!=a.identifierValue&&D.Message.setField(b,3,a.identifierValue);null!=a.positiveIntValue&&D.Message.setField(b,4,a.positiveIntValue);null!=a.negativeIntValue&&D.Message.setField(b,5,a.negativeIntValue);null!=
a.doubleValue&&D.Message.setField(b,6,a.doubleValue);null!=a.stringValue&&D.Message.setField(b,7,a.stringValue);null!=a.aggregateValue&&D.Message.setField(b,8,a.aggregateValue);return b});T.proto2.UninterpretedOption.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.UninterpretedOption;return T.proto2.UninterpretedOption.deserializeBinaryFromReader(b,a)};
T.proto2.UninterpretedOption.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 2:var c=new T.proto2.UninterpretedOption.NamePart;b.readMessage(c,T.proto2.UninterpretedOption.NamePart.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,2,c,T.proto2.UninterpretedOption.NamePart,void 0);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;case 4:c=b.readUint64();D.Message.setField(a,4,c);break;case 5:c=b.readInt64();D.Message.setField(a,5,c);
break;case 6:c=b.readDouble();D.Message.setField(a,6,c);break;case 7:c=b.readBytes();a.setStringValue(c);break;case 8:c=b.readString();D.Message.setField(a,8,c);break;default:I(b)}return a};
T.proto2.UninterpretedOption.serializeBinaryToWriter=function(a,b){var c=D.Message.getRepeatedWrapperField(a,T.proto2.UninterpretedOption.NamePart,2);0<c.length&&P(b,2,c,T.proto2.UninterpretedOption.NamePart.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getField(a,4);null!=c&&b.writeUint64(4,c);c=D.Message.getField(a,5);null!=c&&b.writeInt64(5,c);c=D.Message.getField(a,6);null!=c&&b.writeDouble(6,c);c=D.Message.getField(a,7);null!=c&&b.writeBytes(7,c);
c=D.Message.getField(a,8);null!=c&&b.writeString(8,c)};D.Message.GENERATE_TO_OBJECT&&(T.proto2.UninterpretedOption.NamePart.prototype.toObject=function(a){return T.proto2.UninterpretedOption.NamePart.toObject(a,this)},T.proto2.UninterpretedOption.NamePart.toObject=function(a,b){var c,g={namePart:null==(c=D.Message.getField(b,1))?void 0:c,isExtension:null==(c=D.Message.getBooleanField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.UninterpretedOption.NamePart.ObjectFormat=function(){},T.proto2.UninterpretedOption.NamePart.fromObject=function(a){var b=new T.proto2.UninterpretedOption.NamePart;null!=a.namePart&&D.Message.setField(b,1,a.namePart);null!=a.isExtension&&D.Message.setField(b,2,a.isExtension);return b});
T.proto2.UninterpretedOption.NamePart.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.UninterpretedOption.NamePart;return T.proto2.UninterpretedOption.NamePart.deserializeBinaryFromReader(b,a)};T.proto2.UninterpretedOption.NamePart.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=b.readBool();D.Message.setField(a,2,c);break;default:I(b)}return a};
T.proto2.UninterpretedOption.NamePart.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeBool(2,c)};T.proto2.UninterpretedOption.NamePart.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.UninterpretedOption.NamePart,a)};T.proto2.UninterpretedOption.prototype.getStringValue=function(){return D.Message.getField(this,7)};
T.proto2.UninterpretedOption.prototype.setStringValue=function(a){return D.Message.setField(this,7,a)};T.proto2.UninterpretedOption.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.UninterpretedOption,a)};T.proto2.EnumOptions=function(a){D.Message.initialize(this,a,0,500,T.proto2.EnumOptions.repeatedFields_,null)};f.inherits(T.proto2.EnumOptions,D.Message);T.proto2.EnumOptions.extensions={};T.proto2.EnumOptions.extensionsBinary={};T.proto2.EnumOptions.repeatedFields_=[999];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.EnumOptions.prototype.toObject=function(a){return T.proto2.EnumOptions.toObject(a,this)},T.proto2.EnumOptions.toObject=function(a,b){var c,g={proto1Name:null==(c=D.Message.getField(b,1))?void 0:c,allowAlias:null==(c=D.Message.getBooleanField(b,2))?void 0:c,deprecated:D.Message.getBooleanFieldWithDefault(b,3,!1),uninterpretedOptionList:D.Message.toObjectList(U(b),T.proto2.UninterpretedOption.toObject,a)};D.Message.toObjectExtension(b,g,T.proto2.EnumOptions.extensions,
T.proto2.EnumOptions.prototype.getExtension,a);a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.EnumOptions.ObjectFormat=function(){},T.proto2.EnumOptions.fromObject=function(a){var b=new T.proto2.EnumOptions;null!=a.proto1Name&&D.Message.setField(b,1,a.proto1Name);null!=a.allowAlias&&D.Message.setField(b,2,a.allowAlias);null!=a.deprecated&&D.Message.setField(b,3,a.deprecated);a.uninterpretedOptionList&&D.Message.setRepeatedWrapperField(b,999,a.uninterpretedOptionList.map(T.proto2.UninterpretedOption.fromObject));return b});
T.proto2.EnumOptions.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.EnumOptions;return T.proto2.EnumOptions.deserializeBinaryFromReader(b,a)};
T.proto2.EnumOptions.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=b.readBool();D.Message.setField(a,2,c);break;case 3:c=b.readBool();a.setDeprecated(c);break;case 999:c=new T.proto2.UninterpretedOption;b.readMessage(c,T.proto2.UninterpretedOption.deserializeBinaryFromReader);a.addUninterpretedOption(c);break;default:D.Message.readBinaryExtension(a,b,T.proto2.EnumOptions.extensionsBinary,T.proto2.EnumOptions.prototype.getExtension,
T.proto2.EnumOptions.prototype.setExtension)}return a};T.proto2.EnumOptions.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeBool(2,c);c=D.Message.getField(a,3);null!=c&&b.writeBool(3,c);c=U(a);0<c.length&&P(b,999,c,T.proto2.UninterpretedOption.serializeBinaryToWriter);D.Message.serializeBinaryExtensions(a,b,T.proto2.EnumOptions.extensionsBinary,T.proto2.EnumOptions.prototype.getExtension)};
T.proto2.EnumOptions.prototype.setDeprecated=function(a){D.Message.setField(this,3,a)};var U=function(a){return D.Message.getRepeatedWrapperField(a,T.proto2.UninterpretedOption,999)};T.proto2.EnumOptions.prototype.addUninterpretedOption=function(a){D.Message.addToRepeatedWrapperField(this,999,a,T.proto2.UninterpretedOption,void 0)};T.proto2.EnumOptions.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.EnumOptions,a)};T.proto2.EnumValueOptions=function(a){D.Message.initialize(this,a,0,500,T.proto2.EnumValueOptions.repeatedFields_,null)};f.inherits(T.proto2.EnumValueOptions,D.Message);T.proto2.EnumValueOptions.extensions={};T.proto2.EnumValueOptions.extensionsBinary={};T.proto2.EnumValueOptions.repeatedFields_=[999];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.EnumValueOptions.prototype.toObject=function(a){return T.proto2.EnumValueOptions.toObject(a,this)},T.proto2.EnumValueOptions.toObject=function(a,b){var c={deprecated:D.Message.getBooleanFieldWithDefault(b,1,!1),uninterpretedOptionList:D.Message.toObjectList(U(b),T.proto2.UninterpretedOption.toObject,a)};D.Message.toObjectExtension(b,c,T.proto2.EnumValueOptions.extensions,T.proto2.EnumValueOptions.prototype.getExtension,a);a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.EnumValueOptions.ObjectFormat=function(){},T.proto2.EnumValueOptions.fromObject=function(a){var b=new T.proto2.EnumValueOptions;null!=a.deprecated&&D.Message.setField(b,1,a.deprecated);a.uninterpretedOptionList&&D.Message.setRepeatedWrapperField(b,999,a.uninterpretedOptionList.map(T.proto2.UninterpretedOption.fromObject));return b});
T.proto2.EnumValueOptions.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.EnumValueOptions;return T.proto2.EnumValueOptions.deserializeBinaryFromReader(b,a)};
T.proto2.EnumValueOptions.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readBool();a.setDeprecated(c);break;case 999:c=new T.proto2.UninterpretedOption;b.readMessage(c,T.proto2.UninterpretedOption.deserializeBinaryFromReader);a.addUninterpretedOption(c);break;default:D.Message.readBinaryExtension(a,b,T.proto2.EnumValueOptions.extensionsBinary,T.proto2.EnumValueOptions.prototype.getExtension,T.proto2.EnumValueOptions.prototype.setExtension)}return a};
T.proto2.EnumValueOptions.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeBool(1,c);c=U(a);0<c.length&&P(b,999,c,T.proto2.UninterpretedOption.serializeBinaryToWriter);D.Message.serializeBinaryExtensions(a,b,T.proto2.EnumValueOptions.extensionsBinary,T.proto2.EnumValueOptions.prototype.getExtension)};T.proto2.EnumValueOptions.prototype.setDeprecated=function(a){D.Message.setField(this,1,a)};
T.proto2.EnumValueOptions.prototype.addUninterpretedOption=function(a){D.Message.addToRepeatedWrapperField(this,999,a,T.proto2.UninterpretedOption,void 0)};T.proto2.EnumValueOptions.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.EnumValueOptions,a)};T.proto2.EnumValueDescriptorProto=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.proto2.EnumValueDescriptorProto,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.proto2.EnumValueDescriptorProto.prototype.toObject=function(a){return T.proto2.EnumValueDescriptorProto.toObject(a,this)},T.proto2.EnumValueDescriptorProto.toObject=function(a,b){var c,g={name:null==(c=D.Message.getField(b,1))?void 0:c,number:null==(c=D.Message.getField(b,2))?void 0:c,options:(c=b.getOptions())&&T.proto2.EnumValueOptions.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.EnumValueDescriptorProto.ObjectFormat=function(){},T.proto2.EnumValueDescriptorProto.fromObject=function(a){var b=new T.proto2.EnumValueDescriptorProto;null!=a.name&&D.Message.setField(b,1,a.name);null!=a.number&&D.Message.setField(b,2,a.number);a.options&&D.Message.setWrapperField(b,3,T.proto2.EnumValueOptions.fromObject(a.options));return b});
T.proto2.EnumValueDescriptorProto.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.EnumValueDescriptorProto;return T.proto2.EnumValueDescriptorProto.deserializeBinaryFromReader(b,a)};
T.proto2.EnumValueDescriptorProto.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setName(c);break;case 2:c=b.readInt32();a.setNumber(c);break;case 3:c=new T.proto2.EnumValueOptions;b.readMessage(c,T.proto2.EnumValueOptions.deserializeBinaryFromReader);a.setOptions(c);break;default:I(b)}return a};
T.proto2.EnumValueDescriptorProto.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeInt32(2,c);c=a.getOptions();null!=c&&N(b,3,c,T.proto2.EnumValueOptions.serializeBinaryToWriter)};T.proto2.EnumValueDescriptorProto.prototype.setName=function(a){D.Message.setField(this,1,a)};T.proto2.EnumValueDescriptorProto.prototype.setNumber=function(a){D.Message.setField(this,2,a)};
T.proto2.EnumValueDescriptorProto.prototype.getOptions=function(){return D.Message.getWrapperField(this,T.proto2.EnumValueOptions,3)};T.proto2.EnumValueDescriptorProto.prototype.setOptions=function(a){D.Message.setWrapperField(this,3,a)};T.proto2.EnumValueDescriptorProto.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.EnumValueDescriptorProto,a)};T.proto2.EnumDescriptorProto=function(a){D.Message.initialize(this,a,0,-1,T.proto2.EnumDescriptorProto.repeatedFields_,null)};f.inherits(T.proto2.EnumDescriptorProto,D.Message);T.proto2.EnumDescriptorProto.EnumReservedRange=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.proto2.EnumDescriptorProto.EnumReservedRange,D.Message);T.proto2.EnumDescriptorProto.repeatedFields_=[2,4,5];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.EnumDescriptorProto.prototype.toObject=function(a){return T.proto2.EnumDescriptorProto.toObject(a,this)},T.proto2.EnumDescriptorProto.toObject=function(a,b){var c,g={name:null==(c=D.Message.getField(b,1))?void 0:c,valueList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.proto2.EnumValueDescriptorProto,2),T.proto2.EnumValueDescriptorProto.toObject,a),options:(c=b.getOptions())&&T.proto2.EnumOptions.toObject(a,c),reservedRangeList:D.Message.toObjectList(b.getReservedRangeList(),
T.proto2.EnumDescriptorProto.EnumReservedRange.toObject,a),reservedNameList:null==(c=D.Message.getRepeatedField(b,5))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.EnumDescriptorProto.ObjectFormat=function(){},T.proto2.EnumDescriptorProto.fromObject=function(a){var b=new T.proto2.EnumDescriptorProto;null!=a.name&&D.Message.setField(b,1,a.name);a.valueList&&D.Message.setRepeatedWrapperField(b,2,a.valueList.map(T.proto2.EnumValueDescriptorProto.fromObject));a.options&&D.Message.setWrapperField(b,3,T.proto2.EnumOptions.fromObject(a.options));a.reservedRangeList&&D.Message.setRepeatedWrapperField(b,4,a.reservedRangeList.map(T.proto2.EnumDescriptorProto.EnumReservedRange.fromObject));
null!=a.reservedNameList&&D.Message.setField(b,5,a.reservedNameList);return b});T.proto2.EnumDescriptorProto.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.EnumDescriptorProto;return T.proto2.EnumDescriptorProto.deserializeBinaryFromReader(b,a)};
T.proto2.EnumDescriptorProto.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setName(c);break;case 2:c=new T.proto2.EnumValueDescriptorProto;b.readMessage(c,T.proto2.EnumValueDescriptorProto.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,2,c,T.proto2.EnumValueDescriptorProto,void 0);break;case 3:c=new T.proto2.EnumOptions;b.readMessage(c,T.proto2.EnumOptions.deserializeBinaryFromReader);a.setOptions(c);break;case 4:c=
new T.proto2.EnumDescriptorProto.EnumReservedRange;b.readMessage(c,T.proto2.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader);a.addReservedRange(c);break;case 5:c=b.readString();a.addReservedName(c);break;default:I(b)}return a};
T.proto2.EnumDescriptorProto.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getRepeatedWrapperField(a,T.proto2.EnumValueDescriptorProto,2);0<c.length&&P(b,2,c,T.proto2.EnumValueDescriptorProto.serializeBinaryToWriter);c=a.getOptions();null!=c&&N(b,3,c,T.proto2.EnumOptions.serializeBinaryToWriter);c=a.getReservedRangeList();0<c.length&&P(b,4,c,T.proto2.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter);c=a.getReservedNameList();
0<c.length&&O(b,5,c)};D.Message.GENERATE_TO_OBJECT&&(T.proto2.EnumDescriptorProto.EnumReservedRange.prototype.toObject=function(a){return T.proto2.EnumDescriptorProto.EnumReservedRange.toObject(a,this)},T.proto2.EnumDescriptorProto.EnumReservedRange.toObject=function(a,b){var c,g={start:null==(c=D.Message.getField(b,1))?void 0:c,end:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.EnumDescriptorProto.EnumReservedRange.ObjectFormat=function(){},T.proto2.EnumDescriptorProto.EnumReservedRange.fromObject=function(a){var b=new T.proto2.EnumDescriptorProto.EnumReservedRange;null!=a.start&&D.Message.setField(b,1,a.start);null!=a.end&&D.Message.setField(b,2,a.end);return b});
T.proto2.EnumDescriptorProto.EnumReservedRange.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.EnumDescriptorProto.EnumReservedRange;return T.proto2.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader(b,a)};T.proto2.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setStart(c);break;case 2:c=b.readInt32();a.setEnd(c);break;default:I(b)}return a};
T.proto2.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=D.Message.getField(a,2);null!=c&&b.writeInt32(2,c)};T.proto2.EnumDescriptorProto.EnumReservedRange.prototype.setStart=function(a){return D.Message.setField(this,1,a)};T.proto2.EnumDescriptorProto.EnumReservedRange.prototype.getEnd=function(){return D.Message.getField(this,2)};
T.proto2.EnumDescriptorProto.EnumReservedRange.prototype.setEnd=function(a){return D.Message.setField(this,2,a)};T.proto2.EnumDescriptorProto.EnumReservedRange.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.EnumDescriptorProto.EnumReservedRange,a)};d=T.proto2.EnumDescriptorProto.prototype;d.setName=function(a){D.Message.setField(this,1,a)};d.getOptions=function(){return D.Message.getWrapperField(this,T.proto2.EnumOptions,3)};
d.setOptions=function(a){D.Message.setWrapperField(this,3,a)};d.getReservedRangeList=function(){return D.Message.getRepeatedWrapperField(this,T.proto2.EnumDescriptorProto.EnumReservedRange,4)};d.addReservedRange=function(a){D.Message.addToRepeatedWrapperField(this,4,a,T.proto2.EnumDescriptorProto.EnumReservedRange,void 0)};d.getReservedNameList=function(){return D.Message.getRepeatedField(this,5)};d.addReservedName=function(a){D.Message.addToRepeatedField(this,5,a,void 0)};
T.proto2.EnumDescriptorProto.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.EnumDescriptorProto,a)};T.proto2.ExtensionRangeOptions=function(a){D.Message.initialize(this,a,0,500,T.proto2.ExtensionRangeOptions.repeatedFields_,null)};f.inherits(T.proto2.ExtensionRangeOptions,D.Message);T.proto2.ExtensionRangeOptions.extensions={};T.proto2.ExtensionRangeOptions.extensionsBinary={};T.proto2.ExtensionRangeOptions.repeatedFields_=[999];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.ExtensionRangeOptions.prototype.toObject=function(a){return T.proto2.ExtensionRangeOptions.toObject(a,this)},T.proto2.ExtensionRangeOptions.toObject=function(a,b){var c={uninterpretedOptionList:D.Message.toObjectList(U(b),T.proto2.UninterpretedOption.toObject,a)};D.Message.toObjectExtension(b,c,T.proto2.ExtensionRangeOptions.extensions,T.proto2.ExtensionRangeOptions.prototype.getExtension,a);a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.ExtensionRangeOptions.ObjectFormat=function(){},T.proto2.ExtensionRangeOptions.fromObject=function(a){var b=new T.proto2.ExtensionRangeOptions;a.uninterpretedOptionList&&D.Message.setRepeatedWrapperField(b,999,a.uninterpretedOptionList.map(T.proto2.UninterpretedOption.fromObject));return b});
T.proto2.ExtensionRangeOptions.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.ExtensionRangeOptions;return T.proto2.ExtensionRangeOptions.deserializeBinaryFromReader(b,a)};
T.proto2.ExtensionRangeOptions.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 999:var c=new T.proto2.UninterpretedOption;b.readMessage(c,T.proto2.UninterpretedOption.deserializeBinaryFromReader);a.addUninterpretedOption(c);break;default:D.Message.readBinaryExtension(a,b,T.proto2.ExtensionRangeOptions.extensionsBinary,T.proto2.ExtensionRangeOptions.prototype.getExtension,T.proto2.ExtensionRangeOptions.prototype.setExtension)}return a};
T.proto2.ExtensionRangeOptions.serializeBinaryToWriter=function(a,b){var c=U(a);0<c.length&&P(b,999,c,T.proto2.UninterpretedOption.serializeBinaryToWriter);D.Message.serializeBinaryExtensions(a,b,T.proto2.ExtensionRangeOptions.extensionsBinary,T.proto2.ExtensionRangeOptions.prototype.getExtension)};T.proto2.ExtensionRangeOptions.prototype.addUninterpretedOption=function(a){D.Message.addToRepeatedWrapperField(this,999,a,T.proto2.UninterpretedOption,void 0)};
T.proto2.ExtensionRangeOptions.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.ExtensionRangeOptions,a)};T.proto2.FieldOptions=function(a){D.Message.initialize(this,a,0,500,T.proto2.FieldOptions.repeatedFields_,null)};f.inherits(T.proto2.FieldOptions,D.Message);T.proto2.FieldOptions.extensions={};T.proto2.FieldOptions.extensionsBinary={};T.proto2.FieldOptions.UpgradedOption=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.proto2.FieldOptions.UpgradedOption,D.Message);T.proto2.FieldOptions.repeatedFields_=[11,999];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.FieldOptions.prototype.toObject=function(a){return T.proto2.FieldOptions.toObject(a,this)},T.proto2.FieldOptions.toObject=function(a,b){var c,g={ctype:D.Message.getFieldWithDefault(b,1,0),packed:null==(c=D.Message.getBooleanField(b,2))?void 0:c,jstype:D.Message.getFieldWithDefault(b,6,0),lazy:D.Message.getBooleanFieldWithDefault(b,5,!1),deprecated:D.Message.getBooleanFieldWithDefault(b,3,!1),weak:D.Message.getBooleanFieldWithDefault(b,10,!1),upgradedOptionList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,
T.proto2.FieldOptions.UpgradedOption,11),T.proto2.FieldOptions.UpgradedOption.toObject,a),deprecatedRawMessage:D.Message.getBooleanFieldWithDefault(b,12,!1),enforceUtf8:D.Message.getBooleanFieldWithDefault(b,13,!0),ccOpenEnum:D.Message.getBooleanFieldWithDefault(b,14,!1),uninterpretedOptionList:D.Message.toObjectList(U(b),T.proto2.UninterpretedOption.toObject,a)};D.Message.toObjectExtension(b,g,T.proto2.FieldOptions.extensions,T.proto2.FieldOptions.prototype.getExtension,a);a&&(g.$jspbMessageInstance=
b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.FieldOptions.ObjectFormat=function(){},T.proto2.FieldOptions.fromObject=function(a){var b=new T.proto2.FieldOptions;null!=a.ctype&&D.Message.setField(b,1,a.ctype);null!=a.packed&&D.Message.setField(b,2,a.packed);null!=a.jstype&&D.Message.setField(b,6,a.jstype);null!=a.lazy&&D.Message.setField(b,5,a.lazy);null!=a.deprecated&&D.Message.setField(b,3,a.deprecated);null!=a.weak&&D.Message.setField(b,10,a.weak);a.upgradedOptionList&&D.Message.setRepeatedWrapperField(b,11,
a.upgradedOptionList.map(T.proto2.FieldOptions.UpgradedOption.fromObject));null!=a.deprecatedRawMessage&&D.Message.setField(b,12,a.deprecatedRawMessage);null!=a.enforceUtf8&&D.Message.setField(b,13,a.enforceUtf8);null!=a.ccOpenEnum&&D.Message.setField(b,14,a.ccOpenEnum);a.uninterpretedOptionList&&D.Message.setRepeatedWrapperField(b,999,a.uninterpretedOptionList.map(T.proto2.UninterpretedOption.fromObject));return b});
T.proto2.FieldOptions.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.FieldOptions;return T.proto2.FieldOptions.deserializeBinaryFromReader(b,a)};
T.proto2.FieldOptions.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;case 2:c=b.readBool();D.Message.setField(a,2,c);break;case 6:c=b.readEnum();D.Message.setField(a,6,c);break;case 5:c=b.readBool();D.Message.setField(a,5,c);break;case 3:c=b.readBool();a.setDeprecated(c);break;case 10:c=b.readBool();D.Message.setField(a,10,c);break;case 11:c=new T.proto2.FieldOptions.UpgradedOption;b.readMessage(c,T.proto2.FieldOptions.UpgradedOption.deserializeBinaryFromReader);
D.Message.addToRepeatedWrapperField(a,11,c,T.proto2.FieldOptions.UpgradedOption,void 0);break;case 12:c=b.readBool();D.Message.setField(a,12,c);break;case 13:c=b.readBool();D.Message.setField(a,13,c);break;case 14:c=b.readBool();D.Message.setField(a,14,c);break;case 999:c=new T.proto2.UninterpretedOption;b.readMessage(c,T.proto2.UninterpretedOption.deserializeBinaryFromReader);a.addUninterpretedOption(c);break;default:D.Message.readBinaryExtension(a,b,T.proto2.FieldOptions.extensionsBinary,T.proto2.FieldOptions.prototype.getExtension,
T.proto2.FieldOptions.prototype.setExtension)}return a};
T.proto2.FieldOptions.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeBool(2,c);c=D.Message.getField(a,6);null!=c&&b.writeEnum(6,c);c=D.Message.getField(a,5);null!=c&&b.writeBool(5,c);c=D.Message.getField(a,3);null!=c&&b.writeBool(3,c);c=D.Message.getField(a,10);null!=c&&b.writeBool(10,c);c=D.Message.getRepeatedWrapperField(a,T.proto2.FieldOptions.UpgradedOption,11);0<c.length&&P(b,11,c,T.proto2.FieldOptions.UpgradedOption.serializeBinaryToWriter);
c=D.Message.getField(a,12);null!=c&&b.writeBool(12,c);c=D.Message.getField(a,13);null!=c&&b.writeBool(13,c);c=D.Message.getField(a,14);null!=c&&b.writeBool(14,c);c=U(a);0<c.length&&P(b,999,c,T.proto2.UninterpretedOption.serializeBinaryToWriter);D.Message.serializeBinaryExtensions(a,b,T.proto2.FieldOptions.extensionsBinary,T.proto2.FieldOptions.prototype.getExtension)};T.proto2.FieldOptions.CType={STRING:0,CORD:1,STRING_PIECE:2};T.proto2.FieldOptions.JSType={JS_NORMAL:0,JS_STRING:1,JS_NUMBER:2};
D.Message.GENERATE_TO_OBJECT&&(T.proto2.FieldOptions.UpgradedOption.prototype.toObject=function(a){return T.proto2.FieldOptions.UpgradedOption.toObject(a,this)},T.proto2.FieldOptions.UpgradedOption.toObject=function(a,b){var c,g={name:null==(c=D.Message.getField(b,1))?void 0:c,value:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.FieldOptions.UpgradedOption.ObjectFormat=function(){},T.proto2.FieldOptions.UpgradedOption.fromObject=function(a){var b=new T.proto2.FieldOptions.UpgradedOption;null!=a.name&&D.Message.setField(b,1,a.name);null!=a.value&&D.Message.setField(b,2,a.value);return b});
T.proto2.FieldOptions.UpgradedOption.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.FieldOptions.UpgradedOption;return T.proto2.FieldOptions.UpgradedOption.deserializeBinaryFromReader(b,a)};T.proto2.FieldOptions.UpgradedOption.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setName(c);break;case 2:c=b.readString();a.setValue(c);break;default:I(b)}return a};
T.proto2.FieldOptions.UpgradedOption.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c)};T.proto2.FieldOptions.UpgradedOption.prototype.setName=function(a){D.Message.setField(this,1,a)};T.proto2.FieldOptions.UpgradedOption.prototype.setValue=function(a){D.Message.setField(this,2,a)};
T.proto2.FieldOptions.UpgradedOption.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.FieldOptions.UpgradedOption,a)};T.proto2.FieldOptions.prototype.setDeprecated=function(a){D.Message.setField(this,3,a)};T.proto2.FieldOptions.prototype.addUninterpretedOption=function(a){D.Message.addToRepeatedWrapperField(this,999,a,T.proto2.UninterpretedOption,void 0)};T.proto2.FieldOptions.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.FieldOptions,a)};T.proto2.FieldDescriptorProto=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.proto2.FieldDescriptorProto,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.proto2.FieldDescriptorProto.prototype.toObject=function(a){return T.proto2.FieldDescriptorProto.toObject(a,this)},T.proto2.FieldDescriptorProto.toObject=function(a,b){var c,g={name:null==(c=D.Message.getField(b,1))?void 0:c,number:null==(c=D.Message.getField(b,3))?void 0:c,label:null==(c=D.Message.getField(b,4))?void 0:c,type:null==(c=D.Message.getField(b,5))?void 0:c,typeName:null==(c=D.Message.getField(b,6))?void 0:c,extendee:null==(c=D.Message.getField(b,2))?void 0:
c,defaultValue:null==(c=D.Message.getField(b,7))?void 0:c,oneofIndex:null==(c=D.Message.getField(b,9))?void 0:c,jsonName:null==(c=D.Message.getField(b,10))?void 0:c,options:(c=b.getOptions())&&T.proto2.FieldOptions.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.FieldDescriptorProto.ObjectFormat=function(){},T.proto2.FieldDescriptorProto.fromObject=function(a){var b=new T.proto2.FieldDescriptorProto;null!=a.name&&D.Message.setField(b,1,a.name);null!=a.number&&D.Message.setField(b,3,a.number);null!=a.label&&D.Message.setField(b,4,a.label);null!=a.type&&D.Message.setField(b,5,a.type);null!=a.typeName&&D.Message.setField(b,6,a.typeName);null!=a.extendee&&D.Message.setField(b,2,a.extendee);null!=a.defaultValue&&D.Message.setField(b,
7,a.defaultValue);null!=a.oneofIndex&&D.Message.setField(b,9,a.oneofIndex);null!=a.jsonName&&D.Message.setField(b,10,a.jsonName);a.options&&D.Message.setWrapperField(b,8,T.proto2.FieldOptions.fromObject(a.options));return b});T.proto2.FieldDescriptorProto.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.FieldDescriptorProto;return T.proto2.FieldDescriptorProto.deserializeBinaryFromReader(b,a)};
T.proto2.FieldDescriptorProto.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setName(c);break;case 3:c=b.readInt32();a.setNumber(c);break;case 4:c=b.readEnum();a.setLabel(c);break;case 5:c=b.readEnum();a.setType(c);break;case 6:c=b.readString();D.Message.setField(a,6,c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 7:c=b.readString();D.Message.setField(a,7,c);break;case 9:c=b.readInt32();D.Message.setField(a,9,c);
break;case 10:c=b.readString();D.Message.setField(a,10,c);break;case 8:c=new T.proto2.FieldOptions;b.readMessage(c,T.proto2.FieldOptions.deserializeBinaryFromReader);a.setOptions(c);break;default:I(b)}return a};
T.proto2.FieldDescriptorProto.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,3);null!=c&&b.writeInt32(3,c);c=D.Message.getField(a,4);null!=c&&b.writeEnum(4,c);c=D.Message.getField(a,5);null!=c&&b.writeEnum(5,c);c=D.Message.getField(a,6);null!=c&&b.writeString(6,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,7);null!=c&&b.writeString(7,c);c=D.Message.getField(a,9);null!=c&&b.writeInt32(9,c);c=D.Message.getField(a,
10);null!=c&&b.writeString(10,c);c=a.getOptions();null!=c&&N(b,8,c,T.proto2.FieldOptions.serializeBinaryToWriter)};T.proto2.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};T.proto2.FieldDescriptorProto.Label={LABEL_OPTIONAL:1,LABEL_REQUIRED:2,LABEL_REPEATED:3};
d=T.proto2.FieldDescriptorProto.prototype;d.setName=function(a){D.Message.setField(this,1,a)};d.setNumber=function(a){D.Message.setField(this,3,a)};d.setLabel=function(a){D.Message.setField(this,4,a)};d.setType=function(a){D.Message.setField(this,5,a)};d.getTypeName=function(){return D.Message.getField(this,6)};d.getOptions=function(){return D.Message.getWrapperField(this,T.proto2.FieldOptions,8)};d.setOptions=function(a){D.Message.setWrapperField(this,8,a)};
T.proto2.FieldDescriptorProto.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.FieldDescriptorProto,a)};T.proto2.MessageOptions=function(a){D.Message.initialize(this,a,0,500,T.proto2.MessageOptions.repeatedFields_,null)};f.inherits(T.proto2.MessageOptions,D.Message);T.proto2.MessageOptions.extensions={};T.proto2.MessageOptions.extensionsBinary={};T.proto2.MessageOptions.repeatedFields_=[4,5,999];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.MessageOptions.prototype.toObject=function(a){return T.proto2.MessageOptions.toObject(a,this)},T.proto2.MessageOptions.toObject=function(a,b){var c,g={experimentalJavaMessageInterfaceList:null==(c=D.Message.getRepeatedField(b,4))?void 0:c,experimentalJavaBuilderInterfaceList:null==(c=D.Message.getRepeatedField(b,5))?void 0:c,messageSetWireFormat:D.Message.getBooleanFieldWithDefault(b,1,!1),noStandardDescriptorAccessor:D.Message.getBooleanFieldWithDefault(b,
2,!1),deprecated:D.Message.getBooleanFieldWithDefault(b,3,!1),mapEntry:null==(c=D.Message.getBooleanField(b,7))?void 0:c,goApiFlag:null==(c=D.Message.getField(b,10))?void 0:c,uninterpretedOptionList:D.Message.toObjectList(U(b),T.proto2.UninterpretedOption.toObject,a)};D.Message.toObjectExtension(b,g,T.proto2.MessageOptions.extensions,T.proto2.MessageOptions.prototype.getExtension,a);a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.MessageOptions.ObjectFormat=function(){},T.proto2.MessageOptions.fromObject=function(a){var b=new T.proto2.MessageOptions;null!=a.experimentalJavaMessageInterfaceList&&D.Message.setField(b,4,a.experimentalJavaMessageInterfaceList);null!=a.experimentalJavaBuilderInterfaceList&&D.Message.setField(b,5,a.experimentalJavaBuilderInterfaceList);null!=a.messageSetWireFormat&&D.Message.setField(b,1,a.messageSetWireFormat);null!=a.noStandardDescriptorAccessor&&D.Message.setField(b,
2,a.noStandardDescriptorAccessor);null!=a.deprecated&&D.Message.setField(b,3,a.deprecated);null!=a.mapEntry&&D.Message.setField(b,7,a.mapEntry);null!=a.goApiFlag&&D.Message.setField(b,10,a.goApiFlag);a.uninterpretedOptionList&&D.Message.setRepeatedWrapperField(b,999,a.uninterpretedOptionList.map(T.proto2.UninterpretedOption.fromObject));return b});
T.proto2.MessageOptions.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.MessageOptions;return T.proto2.MessageOptions.deserializeBinaryFromReader(b,a)};
T.proto2.MessageOptions.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 4:var c=b.readString();D.Message.addToRepeatedField(a,4,c,void 0);break;case 5:c=b.readString();D.Message.addToRepeatedField(a,5,c,void 0);break;case 1:c=b.readBool();D.Message.setField(a,1,c);break;case 2:c=b.readBool();D.Message.setField(a,2,c);break;case 3:c=b.readBool();a.setDeprecated(c);break;case 7:c=b.readBool();D.Message.setField(a,7,c);break;case 10:c=b.readString();a.setGoApiFlag(c);
break;case 999:c=new T.proto2.UninterpretedOption;b.readMessage(c,T.proto2.UninterpretedOption.deserializeBinaryFromReader);a.addUninterpretedOption(c);break;default:D.Message.readBinaryExtension(a,b,T.proto2.MessageOptions.extensionsBinary,T.proto2.MessageOptions.prototype.getExtension,T.proto2.MessageOptions.prototype.setExtension)}return a};
T.proto2.MessageOptions.serializeBinaryToWriter=function(a,b){var c=D.Message.getRepeatedField(a,4);0<c.length&&O(b,4,c);c=D.Message.getRepeatedField(a,5);0<c.length&&O(b,5,c);c=D.Message.getField(a,1);null!=c&&b.writeBool(1,c);c=D.Message.getField(a,2);null!=c&&b.writeBool(2,c);c=D.Message.getField(a,3);null!=c&&b.writeBool(3,c);c=D.Message.getField(a,7);null!=c&&b.writeBool(7,c);c=D.Message.getField(a,10);null!=c&&b.writeString(10,c);c=U(a);0<c.length&&P(b,999,c,T.proto2.UninterpretedOption.serializeBinaryToWriter);
D.Message.serializeBinaryExtensions(a,b,T.proto2.MessageOptions.extensionsBinary,T.proto2.MessageOptions.prototype.getExtension)};T.proto2.MessageOptions.prototype.setDeprecated=function(a){D.Message.setField(this,3,a)};T.proto2.MessageOptions.prototype.setGoApiFlag=function(a){D.Message.setField(this,10,a)};T.proto2.MessageOptions.prototype.addUninterpretedOption=function(a){D.Message.addToRepeatedWrapperField(this,999,a,T.proto2.UninterpretedOption,void 0)};
T.proto2.MessageOptions.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.MessageOptions,a)};T.proto2.OneofOptions=function(a){D.Message.initialize(this,a,0,500,T.proto2.OneofOptions.repeatedFields_,null)};f.inherits(T.proto2.OneofOptions,D.Message);T.proto2.OneofOptions.extensions={};T.proto2.OneofOptions.extensionsBinary={};T.proto2.OneofOptions.repeatedFields_=[999];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.OneofOptions.prototype.toObject=function(a){return T.proto2.OneofOptions.toObject(a,this)},T.proto2.OneofOptions.toObject=function(a,b){var c={uninterpretedOptionList:D.Message.toObjectList(U(b),T.proto2.UninterpretedOption.toObject,a)};D.Message.toObjectExtension(b,c,T.proto2.OneofOptions.extensions,T.proto2.OneofOptions.prototype.getExtension,a);a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.OneofOptions.ObjectFormat=function(){},T.proto2.OneofOptions.fromObject=function(a){var b=new T.proto2.OneofOptions;a.uninterpretedOptionList&&D.Message.setRepeatedWrapperField(b,999,a.uninterpretedOptionList.map(T.proto2.UninterpretedOption.fromObject));return b});T.proto2.OneofOptions.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.OneofOptions;return T.proto2.OneofOptions.deserializeBinaryFromReader(b,a)};
T.proto2.OneofOptions.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 999:var c=new T.proto2.UninterpretedOption;b.readMessage(c,T.proto2.UninterpretedOption.deserializeBinaryFromReader);a.addUninterpretedOption(c);break;default:D.Message.readBinaryExtension(a,b,T.proto2.OneofOptions.extensionsBinary,T.proto2.OneofOptions.prototype.getExtension,T.proto2.OneofOptions.prototype.setExtension)}return a};
T.proto2.OneofOptions.serializeBinaryToWriter=function(a,b){var c=U(a);0<c.length&&P(b,999,c,T.proto2.UninterpretedOption.serializeBinaryToWriter);D.Message.serializeBinaryExtensions(a,b,T.proto2.OneofOptions.extensionsBinary,T.proto2.OneofOptions.prototype.getExtension)};T.proto2.OneofOptions.prototype.addUninterpretedOption=function(a){D.Message.addToRepeatedWrapperField(this,999,a,T.proto2.UninterpretedOption,void 0)};
T.proto2.OneofOptions.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.OneofOptions,a)};T.proto2.OneofDescriptorProto=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.proto2.OneofDescriptorProto,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.proto2.OneofDescriptorProto.prototype.toObject=function(a){return T.proto2.OneofDescriptorProto.toObject(a,this)},T.proto2.OneofDescriptorProto.toObject=function(a,b){var c,g={name:null==(c=D.Message.getField(b,1))?void 0:c,options:(c=b.getOptions())&&T.proto2.OneofOptions.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.OneofDescriptorProto.ObjectFormat=function(){},T.proto2.OneofDescriptorProto.fromObject=function(a){var b=new T.proto2.OneofDescriptorProto;null!=a.name&&D.Message.setField(b,1,a.name);a.options&&D.Message.setWrapperField(b,2,T.proto2.OneofOptions.fromObject(a.options));return b});
T.proto2.OneofDescriptorProto.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.OneofDescriptorProto;return T.proto2.OneofDescriptorProto.deserializeBinaryFromReader(b,a)};T.proto2.OneofDescriptorProto.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setName(c);break;case 2:c=new T.proto2.OneofOptions;b.readMessage(c,T.proto2.OneofOptions.deserializeBinaryFromReader);a.setOptions(c);break;default:I(b)}return a};
T.proto2.OneofDescriptorProto.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=a.getOptions();null!=c&&N(b,2,c,T.proto2.OneofOptions.serializeBinaryToWriter)};T.proto2.OneofDescriptorProto.prototype.setName=function(a){D.Message.setField(this,1,a)};T.proto2.OneofDescriptorProto.prototype.getOptions=function(){return D.Message.getWrapperField(this,T.proto2.OneofOptions,2)};
T.proto2.OneofDescriptorProto.prototype.setOptions=function(a){D.Message.setWrapperField(this,2,a)};T.proto2.OneofDescriptorProto.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.OneofDescriptorProto,a)};T.proto2.DescriptorProto=function(a){D.Message.initialize(this,a,0,-1,T.proto2.DescriptorProto.repeatedFields_,null)};f.inherits(T.proto2.DescriptorProto,D.Message);T.proto2.DescriptorProto.ExtensionRange=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.proto2.DescriptorProto.ExtensionRange,D.Message);T.proto2.DescriptorProto.ReservedRange=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.proto2.DescriptorProto.ReservedRange,D.Message);
T.proto2.DescriptorProto.repeatedFields_=[2,6,3,4,5,8,9,10];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.DescriptorProto.prototype.toObject=function(a){return T.proto2.DescriptorProto.toObject(a,this)},T.proto2.DescriptorProto.toObject=function(a,b){var c,g={name:null==(c=D.Message.getField(b,1))?void 0:c,fieldList:D.Message.toObjectList(b.getFieldList(),T.proto2.FieldDescriptorProto.toObject,a),extensionList:D.Message.toObjectList(b.getExtensionList(),T.proto2.FieldDescriptorProto.toObject,a),nestedTypeList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.proto2.DescriptorProto,
3),T.proto2.DescriptorProto.toObject,a),enumTypeList:D.Message.toObjectList(b.getEnumTypeList(),T.proto2.EnumDescriptorProto.toObject,a),extensionRangeList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.proto2.DescriptorProto.ExtensionRange,5),T.proto2.DescriptorProto.ExtensionRange.toObject,a),oneofDeclList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.proto2.OneofDescriptorProto,8),T.proto2.OneofDescriptorProto.toObject,a),options:(c=b.getOptions())&&T.proto2.MessageOptions.toObject(a,
c),reservedRangeList:D.Message.toObjectList(b.getReservedRangeList(),T.proto2.DescriptorProto.ReservedRange.toObject,a),reservedNameList:null==(c=D.Message.getRepeatedField(b,10))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.DescriptorProto.ObjectFormat=function(){},T.proto2.DescriptorProto.fromObject=function(a){var b=new T.proto2.DescriptorProto;null!=a.name&&D.Message.setField(b,1,a.name);a.fieldList&&D.Message.setRepeatedWrapperField(b,2,a.fieldList.map(T.proto2.FieldDescriptorProto.fromObject));a.extensionList&&D.Message.setRepeatedWrapperField(b,6,a.extensionList.map(T.proto2.FieldDescriptorProto.fromObject));a.nestedTypeList&&D.Message.setRepeatedWrapperField(b,3,a.nestedTypeList.map(T.proto2.DescriptorProto.fromObject));
a.enumTypeList&&D.Message.setRepeatedWrapperField(b,4,a.enumTypeList.map(T.proto2.EnumDescriptorProto.fromObject));a.extensionRangeList&&D.Message.setRepeatedWrapperField(b,5,a.extensionRangeList.map(T.proto2.DescriptorProto.ExtensionRange.fromObject));a.oneofDeclList&&D.Message.setRepeatedWrapperField(b,8,a.oneofDeclList.map(T.proto2.OneofDescriptorProto.fromObject));a.options&&D.Message.setWrapperField(b,7,T.proto2.MessageOptions.fromObject(a.options));a.reservedRangeList&&D.Message.setRepeatedWrapperField(b,
9,a.reservedRangeList.map(T.proto2.DescriptorProto.ReservedRange.fromObject));null!=a.reservedNameList&&D.Message.setField(b,10,a.reservedNameList);return b});T.proto2.DescriptorProto.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.DescriptorProto;return T.proto2.DescriptorProto.deserializeBinaryFromReader(b,a)};
T.proto2.DescriptorProto.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setName(c);break;case 2:c=new T.proto2.FieldDescriptorProto;b.readMessage(c,T.proto2.FieldDescriptorProto.deserializeBinaryFromReader);a.addField(c);break;case 6:c=new T.proto2.FieldDescriptorProto;b.readMessage(c,T.proto2.FieldDescriptorProto.deserializeBinaryFromReader);a.addExtension$(c);break;case 3:c=new T.proto2.DescriptorProto;b.readMessage(c,T.proto2.DescriptorProto.deserializeBinaryFromReader);
D.Message.addToRepeatedWrapperField(a,3,c,T.proto2.DescriptorProto,void 0);break;case 4:c=new T.proto2.EnumDescriptorProto;b.readMessage(c,T.proto2.EnumDescriptorProto.deserializeBinaryFromReader);a.addEnumType(c);break;case 5:c=new T.proto2.DescriptorProto.ExtensionRange;b.readMessage(c,T.proto2.DescriptorProto.ExtensionRange.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,5,c,T.proto2.DescriptorProto.ExtensionRange,void 0);break;case 8:c=new T.proto2.OneofDescriptorProto;b.readMessage(c,
T.proto2.OneofDescriptorProto.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,8,c,T.proto2.OneofDescriptorProto,void 0);break;case 7:c=new T.proto2.MessageOptions;b.readMessage(c,T.proto2.MessageOptions.deserializeBinaryFromReader);a.setOptions(c);break;case 9:c=new T.proto2.DescriptorProto.ReservedRange;b.readMessage(c,T.proto2.DescriptorProto.ReservedRange.deserializeBinaryFromReader);a.addReservedRange(c);break;case 10:c=b.readString();a.addReservedName(c);break;default:I(b)}return a};
T.proto2.DescriptorProto.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=a.getFieldList();0<c.length&&P(b,2,c,T.proto2.FieldDescriptorProto.serializeBinaryToWriter);c=a.getExtensionList();0<c.length&&P(b,6,c,T.proto2.FieldDescriptorProto.serializeBinaryToWriter);c=D.Message.getRepeatedWrapperField(a,T.proto2.DescriptorProto,3);0<c.length&&P(b,3,c,T.proto2.DescriptorProto.serializeBinaryToWriter);c=a.getEnumTypeList();0<c.length&&P(b,4,c,T.proto2.EnumDescriptorProto.serializeBinaryToWriter);
c=D.Message.getRepeatedWrapperField(a,T.proto2.DescriptorProto.ExtensionRange,5);0<c.length&&P(b,5,c,T.proto2.DescriptorProto.ExtensionRange.serializeBinaryToWriter);c=D.Message.getRepeatedWrapperField(a,T.proto2.OneofDescriptorProto,8);0<c.length&&P(b,8,c,T.proto2.OneofDescriptorProto.serializeBinaryToWriter);c=a.getOptions();null!=c&&N(b,7,c,T.proto2.MessageOptions.serializeBinaryToWriter);c=a.getReservedRangeList();0<c.length&&P(b,9,c,T.proto2.DescriptorProto.ReservedRange.serializeBinaryToWriter);
c=a.getReservedNameList();0<c.length&&O(b,10,c)};D.Message.GENERATE_TO_OBJECT&&(T.proto2.DescriptorProto.ExtensionRange.prototype.toObject=function(a){return T.proto2.DescriptorProto.ExtensionRange.toObject(a,this)},T.proto2.DescriptorProto.ExtensionRange.toObject=function(a,b){var c,g={start:null==(c=D.Message.getField(b,1))?void 0:c,end:null==(c=D.Message.getField(b,2))?void 0:c,options:(c=b.getOptions())&&T.proto2.ExtensionRangeOptions.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.DescriptorProto.ExtensionRange.ObjectFormat=function(){},T.proto2.DescriptorProto.ExtensionRange.fromObject=function(a){var b=new T.proto2.DescriptorProto.ExtensionRange;null!=a.start&&D.Message.setField(b,1,a.start);null!=a.end&&D.Message.setField(b,2,a.end);a.options&&D.Message.setWrapperField(b,3,T.proto2.ExtensionRangeOptions.fromObject(a.options));return b});
T.proto2.DescriptorProto.ExtensionRange.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.DescriptorProto.ExtensionRange;return T.proto2.DescriptorProto.ExtensionRange.deserializeBinaryFromReader(b,a)};
T.proto2.DescriptorProto.ExtensionRange.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setStart(c);break;case 2:c=b.readInt32();a.setEnd(c);break;case 3:c=new T.proto2.ExtensionRangeOptions;b.readMessage(c,T.proto2.ExtensionRangeOptions.deserializeBinaryFromReader);a.setOptions(c);break;default:I(b)}return a};
T.proto2.DescriptorProto.ExtensionRange.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=D.Message.getField(a,2);null!=c&&b.writeInt32(2,c);c=a.getOptions();null!=c&&N(b,3,c,T.proto2.ExtensionRangeOptions.serializeBinaryToWriter)};d=T.proto2.DescriptorProto.ExtensionRange.prototype;d.setStart=function(a){return D.Message.setField(this,1,a)};d.getEnd=function(){return D.Message.getField(this,2)};d.setEnd=function(a){return D.Message.setField(this,2,a)};
d.getOptions=function(){return D.Message.getWrapperField(this,T.proto2.ExtensionRangeOptions,3)};d.setOptions=function(a){D.Message.setWrapperField(this,3,a)};T.proto2.DescriptorProto.ExtensionRange.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.DescriptorProto.ExtensionRange,a)};
D.Message.GENERATE_TO_OBJECT&&(T.proto2.DescriptorProto.ReservedRange.prototype.toObject=function(a){return T.proto2.DescriptorProto.ReservedRange.toObject(a,this)},T.proto2.DescriptorProto.ReservedRange.toObject=function(a,b){var c,g={start:null==(c=D.Message.getField(b,1))?void 0:c,end:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.DescriptorProto.ReservedRange.ObjectFormat=function(){},T.proto2.DescriptorProto.ReservedRange.fromObject=function(a){var b=new T.proto2.DescriptorProto.ReservedRange;null!=a.start&&D.Message.setField(b,1,a.start);null!=a.end&&D.Message.setField(b,2,a.end);return b});
T.proto2.DescriptorProto.ReservedRange.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.DescriptorProto.ReservedRange;return T.proto2.DescriptorProto.ReservedRange.deserializeBinaryFromReader(b,a)};T.proto2.DescriptorProto.ReservedRange.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setStart(c);break;case 2:c=b.readInt32();a.setEnd(c);break;default:I(b)}return a};
T.proto2.DescriptorProto.ReservedRange.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=D.Message.getField(a,2);null!=c&&b.writeInt32(2,c)};T.proto2.DescriptorProto.ReservedRange.prototype.setStart=function(a){return D.Message.setField(this,1,a)};T.proto2.DescriptorProto.ReservedRange.prototype.getEnd=function(){return D.Message.getField(this,2)};T.proto2.DescriptorProto.ReservedRange.prototype.setEnd=function(a){return D.Message.setField(this,2,a)};
T.proto2.DescriptorProto.ReservedRange.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.DescriptorProto.ReservedRange,a)};d=T.proto2.DescriptorProto.prototype;d.setName=function(a){D.Message.setField(this,1,a)};d.getFieldList=function(){return D.Message.getRepeatedWrapperField(this,T.proto2.FieldDescriptorProto,2)};d.addField=function(a){D.Message.addToRepeatedWrapperField(this,2,a,T.proto2.FieldDescriptorProto,void 0)};
d.getExtensionList=function(){return D.Message.getRepeatedWrapperField(this,T.proto2.FieldDescriptorProto,6)};d.addExtension$=function(a){D.Message.addToRepeatedWrapperField(this,6,a,T.proto2.FieldDescriptorProto,void 0)};d.getEnumTypeList=function(){return D.Message.getRepeatedWrapperField(this,T.proto2.EnumDescriptorProto,4)};d.addEnumType=function(a){D.Message.addToRepeatedWrapperField(this,4,a,T.proto2.EnumDescriptorProto,void 0)};
d.getOptions=function(){return D.Message.getWrapperField(this,T.proto2.MessageOptions,7)};d.setOptions=function(a){D.Message.setWrapperField(this,7,a)};d.getReservedRangeList=function(){return D.Message.getRepeatedWrapperField(this,T.proto2.DescriptorProto.ReservedRange,9)};d.addReservedRange=function(a){D.Message.addToRepeatedWrapperField(this,9,a,T.proto2.DescriptorProto.ReservedRange,void 0)};d.getReservedNameList=function(){return D.Message.getRepeatedField(this,10)};
d.addReservedName=function(a){D.Message.addToRepeatedField(this,10,a,void 0)};T.proto2.DescriptorProto.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.DescriptorProto,a)};T.proto2.FileOptions=function(a){D.Message.initialize(this,a,0,500,T.proto2.FileOptions.repeatedFields_,null)};f.inherits(T.proto2.FileOptions,D.Message);T.proto2.FileOptions.extensions={};T.proto2.FileOptions.extensionsBinary={};T.proto2.FileOptions.repeatedFields_=[999];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.FileOptions.prototype.toObject=function(a){return T.proto2.FileOptions.toObject(a,this)},T.proto2.FileOptions.toObject=function(a,b){var c,g={ccApiVersion:D.Message.getFieldWithDefault(b,2,2),ccUtf8Verification:D.Message.getBooleanFieldWithDefault(b,24,!0),javaPackage:null==(c=D.Message.getField(b,1))?void 0:c,pyApiVersion:D.Message.getFieldWithDefault(b,4,2),javaApiVersion:D.Message.getFieldWithDefault(b,5,2),javaUseJavaproto2:D.Message.getBooleanFieldWithDefault(b,
6,!0),javaJava5Enums:D.Message.getBooleanFieldWithDefault(b,7,!0),javaAltApiPackage:null==(c=D.Message.getField(b,19))?void 0:c,javaEnableDualGenerateMutableApi:D.Message.getBooleanFieldWithDefault(b,26,!1),javaOuterClassname:null==(c=D.Message.getField(b,8))?void 0:c,javaMultipleFiles:D.Message.getBooleanFieldWithDefault(b,10,!1),javaStringCheckUtf8:D.Message.getBooleanFieldWithDefault(b,27,!1),javaMutableApi:D.Message.getBooleanFieldWithDefault(b,28,!1),javaMultipleFilesMutablePackage:null==(c=
D.Message.getField(b,29))?void 0:c,optimizeFor:D.Message.getFieldWithDefault(b,9,1),goPackage:null==(c=D.Message.getField(b,11))?void 0:c,goApiFlag:null==(c=D.Message.getField(b,46))?void 0:c,javascriptPackage:null==(c=D.Message.getField(b,12))?void 0:c,szlApiVersion:D.Message.getFieldWithDefault(b,14,2),ccGenericServices:D.Message.getBooleanFieldWithDefault(b,16,!1),javaGenericServices:D.Message.getBooleanFieldWithDefault(b,17,!1),pyGenericServices:D.Message.getBooleanFieldWithDefault(b,18,!1),phpGenericServices:D.Message.getBooleanFieldWithDefault(b,
42,!1),deprecated:D.Message.getBooleanFieldWithDefault(b,23,!1),ccEnableArenas:D.Message.getBooleanFieldWithDefault(b,31,!1),objcClassPrefix:null==(c=D.Message.getField(b,36))?void 0:c,csharpNamespace:null==(c=D.Message.getField(b,37))?void 0:c,swiftPrefix:null==(c=D.Message.getField(b,39))?void 0:c,phpClassPrefix:null==(c=D.Message.getField(b,40))?void 0:c,phpNamespace:null==(c=D.Message.getField(b,41))?void 0:c,phpMetadataNamespace:null==(c=D.Message.getField(b,44))?void 0:c,rubyPackage:null==(c=
D.Message.getField(b,45))?void 0:c,useJavaStubbyLibrary:null==(c=D.Message.getBooleanField(b,47))?void 0:c,uninterpretedOptionList:D.Message.toObjectList(U(b),T.proto2.UninterpretedOption.toObject,a)};D.Message.toObjectExtension(b,g,T.proto2.FileOptions.extensions,T.proto2.FileOptions.prototype.getExtension,a);a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.FileOptions.ObjectFormat=function(){},T.proto2.FileOptions.fromObject=function(a){var b=new T.proto2.FileOptions;null!=a.ccApiVersion&&D.Message.setField(b,2,a.ccApiVersion);null!=a.ccUtf8Verification&&D.Message.setField(b,24,a.ccUtf8Verification);null!=a.javaPackage&&D.Message.setField(b,1,a.javaPackage);null!=a.pyApiVersion&&D.Message.setField(b,4,a.pyApiVersion);null!=a.javaApiVersion&&D.Message.setField(b,5,a.javaApiVersion);null!=a.javaUseJavaproto2&&
D.Message.setField(b,6,a.javaUseJavaproto2);null!=a.javaJava5Enums&&D.Message.setField(b,7,a.javaJava5Enums);null!=a.javaAltApiPackage&&D.Message.setField(b,19,a.javaAltApiPackage);null!=a.javaEnableDualGenerateMutableApi&&D.Message.setField(b,26,a.javaEnableDualGenerateMutableApi);null!=a.javaOuterClassname&&D.Message.setField(b,8,a.javaOuterClassname);null!=a.javaMultipleFiles&&D.Message.setField(b,10,a.javaMultipleFiles);null!=a.javaStringCheckUtf8&&D.Message.setField(b,27,a.javaStringCheckUtf8);
null!=a.javaMutableApi&&D.Message.setField(b,28,a.javaMutableApi);null!=a.javaMultipleFilesMutablePackage&&D.Message.setField(b,29,a.javaMultipleFilesMutablePackage);null!=a.optimizeFor&&D.Message.setField(b,9,a.optimizeFor);null!=a.goPackage&&D.Message.setField(b,11,a.goPackage);null!=a.goApiFlag&&D.Message.setField(b,46,a.goApiFlag);null!=a.javascriptPackage&&D.Message.setField(b,12,a.javascriptPackage);null!=a.szlApiVersion&&D.Message.setField(b,14,a.szlApiVersion);null!=a.ccGenericServices&&D.Message.setField(b,
16,a.ccGenericServices);null!=a.javaGenericServices&&D.Message.setField(b,17,a.javaGenericServices);null!=a.pyGenericServices&&D.Message.setField(b,18,a.pyGenericServices);null!=a.phpGenericServices&&D.Message.setField(b,42,a.phpGenericServices);null!=a.deprecated&&D.Message.setField(b,23,a.deprecated);null!=a.ccEnableArenas&&D.Message.setField(b,31,a.ccEnableArenas);null!=a.objcClassPrefix&&D.Message.setField(b,36,a.objcClassPrefix);null!=a.csharpNamespace&&D.Message.setField(b,37,a.csharpNamespace);
null!=a.swiftPrefix&&D.Message.setField(b,39,a.swiftPrefix);null!=a.phpClassPrefix&&D.Message.setField(b,40,a.phpClassPrefix);null!=a.phpNamespace&&D.Message.setField(b,41,a.phpNamespace);null!=a.phpMetadataNamespace&&D.Message.setField(b,44,a.phpMetadataNamespace);null!=a.rubyPackage&&D.Message.setField(b,45,a.rubyPackage);null!=a.useJavaStubbyLibrary&&D.Message.setField(b,47,a.useJavaStubbyLibrary);a.uninterpretedOptionList&&D.Message.setRepeatedWrapperField(b,999,a.uninterpretedOptionList.map(T.proto2.UninterpretedOption.fromObject));
return b});T.proto2.FileOptions.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.FileOptions;return T.proto2.FileOptions.deserializeBinaryFromReader(b,a)};
T.proto2.FileOptions.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 2:var c=b.readInt32();D.Message.setField(a,2,c);break;case 24:c=b.readBool();D.Message.setField(a,24,c);break;case 1:c=b.readString();D.Message.setField(a,1,c);break;case 4:c=b.readInt32();D.Message.setField(a,4,c);break;case 5:c=b.readInt32();D.Message.setField(a,5,c);break;case 6:c=b.readBool();D.Message.setField(a,6,c);break;case 7:c=b.readBool();D.Message.setField(a,7,c);break;case 19:c=
b.readString();D.Message.setField(a,19,c);break;case 26:c=b.readBool();D.Message.setField(a,26,c);break;case 8:c=b.readString();D.Message.setField(a,8,c);break;case 10:c=b.readBool();D.Message.setField(a,10,c);break;case 27:c=b.readBool();D.Message.setField(a,27,c);break;case 28:c=b.readBool();D.Message.setField(a,28,c);break;case 29:c=b.readString();D.Message.setField(a,29,c);break;case 9:c=b.readEnum();D.Message.setField(a,9,c);break;case 11:c=b.readString();D.Message.setField(a,11,c);break;case 46:c=
b.readString();a.setGoApiFlag(c);break;case 12:c=b.readString();D.Message.setField(a,12,c);break;case 14:c=b.readInt32();D.Message.setField(a,14,c);break;case 16:c=b.readBool();D.Message.setField(a,16,c);break;case 17:c=b.readBool();D.Message.setField(a,17,c);break;case 18:c=b.readBool();D.Message.setField(a,18,c);break;case 42:c=b.readBool();D.Message.setField(a,42,c);break;case 23:c=b.readBool();a.setDeprecated(c);break;case 31:c=b.readBool();D.Message.setField(a,31,c);break;case 36:c=b.readString();
D.Message.setField(a,36,c);break;case 37:c=b.readString();D.Message.setField(a,37,c);break;case 39:c=b.readString();D.Message.setField(a,39,c);break;case 40:c=b.readString();D.Message.setField(a,40,c);break;case 41:c=b.readString();D.Message.setField(a,41,c);break;case 44:c=b.readString();D.Message.setField(a,44,c);break;case 45:c=b.readString();D.Message.setField(a,45,c);break;case 47:c=b.readBool();D.Message.setField(a,47,c);break;case 999:c=new T.proto2.UninterpretedOption;b.readMessage(c,T.proto2.UninterpretedOption.deserializeBinaryFromReader);
a.addUninterpretedOption(c);break;default:D.Message.readBinaryExtension(a,b,T.proto2.FileOptions.extensionsBinary,T.proto2.FileOptions.prototype.getExtension,T.proto2.FileOptions.prototype.setExtension)}return a};
T.proto2.FileOptions.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,2);null!=c&&b.writeInt32(2,c);c=D.Message.getField(a,24);null!=c&&b.writeBool(24,c);c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,4);null!=c&&b.writeInt32(4,c);c=D.Message.getField(a,5);null!=c&&b.writeInt32(5,c);c=D.Message.getField(a,6);null!=c&&b.writeBool(6,c);c=D.Message.getField(a,7);null!=c&&b.writeBool(7,c);c=D.Message.getField(a,19);null!=c&&b.writeString(19,c);c=D.Message.getField(a,
26);null!=c&&b.writeBool(26,c);c=D.Message.getField(a,8);null!=c&&b.writeString(8,c);c=D.Message.getField(a,10);null!=c&&b.writeBool(10,c);c=D.Message.getField(a,27);null!=c&&b.writeBool(27,c);c=D.Message.getField(a,28);null!=c&&b.writeBool(28,c);c=D.Message.getField(a,29);null!=c&&b.writeString(29,c);c=D.Message.getField(a,9);null!=c&&b.writeEnum(9,c);c=D.Message.getField(a,11);null!=c&&b.writeString(11,c);c=D.Message.getField(a,46);null!=c&&b.writeString(46,c);c=D.Message.getField(a,12);null!=c&&
b.writeString(12,c);c=D.Message.getField(a,14);null!=c&&b.writeInt32(14,c);c=D.Message.getField(a,16);null!=c&&b.writeBool(16,c);c=D.Message.getField(a,17);null!=c&&b.writeBool(17,c);c=D.Message.getField(a,18);null!=c&&b.writeBool(18,c);c=D.Message.getField(a,42);null!=c&&b.writeBool(42,c);c=D.Message.getField(a,23);null!=c&&b.writeBool(23,c);c=D.Message.getField(a,31);null!=c&&b.writeBool(31,c);c=D.Message.getField(a,36);null!=c&&b.writeString(36,c);c=D.Message.getField(a,37);null!=c&&b.writeString(37,
c);c=D.Message.getField(a,39);null!=c&&b.writeString(39,c);c=D.Message.getField(a,40);null!=c&&b.writeString(40,c);c=D.Message.getField(a,41);null!=c&&b.writeString(41,c);c=D.Message.getField(a,44);null!=c&&b.writeString(44,c);c=D.Message.getField(a,45);null!=c&&b.writeString(45,c);c=D.Message.getField(a,47);null!=c&&b.writeBool(47,c);c=U(a);0<c.length&&P(b,999,c,T.proto2.UninterpretedOption.serializeBinaryToWriter);D.Message.serializeBinaryExtensions(a,b,T.proto2.FileOptions.extensionsBinary,T.proto2.FileOptions.prototype.getExtension)};
T.proto2.FileOptions.OptimizeMode={SPEED:1,CODE_SIZE:2,LITE_RUNTIME:3};T.proto2.FileOptions.prototype.setGoApiFlag=function(a){D.Message.setField(this,46,a)};T.proto2.FileOptions.prototype.setDeprecated=function(a){D.Message.setField(this,23,a)};T.proto2.FileOptions.prototype.addUninterpretedOption=function(a){D.Message.addToRepeatedWrapperField(this,999,a,T.proto2.UninterpretedOption,void 0)};T.proto2.FileOptions.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.FileOptions,a)};T.proto2.MethodOptions=function(a){D.Message.initialize(this,a,0,500,T.proto2.MethodOptions.repeatedFields_,null)};f.inherits(T.proto2.MethodOptions,D.Message);T.proto2.MethodOptions.extensions={};T.proto2.MethodOptions.extensionsBinary={};T.proto2.MethodOptions.repeatedFields_=[999];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.MethodOptions.prototype.toObject=function(a){return T.proto2.MethodOptions.toObject(a,this)},T.proto2.MethodOptions.toObject=function(a,b){var c,g={protocol:D.Message.getFieldWithDefault(b,7,0),deadline:D.Message.getFloatingPointFieldWithDefault(b,8,-1),duplicateSuppression:D.Message.getBooleanFieldWithDefault(b,9,!1),failFast:D.Message.getBooleanFieldWithDefault(b,10,!1),endUserCredsRequested:D.Message.getBooleanFieldWithDefault(b,26,!1),clientLogging:D.Message.getFieldWithDefault(b,
11,256),serverLogging:D.Message.getFieldWithDefault(b,12,256),securityLevel:D.Message.getFieldWithDefault(b,13,0),responseFormat:D.Message.getFieldWithDefault(b,15,0),requestFormat:D.Message.getFieldWithDefault(b,17,0),streamType:null==(c=D.Message.getField(b,18))?void 0:c,securityLabel:null==(c=D.Message.getField(b,19))?void 0:c,clientStreaming:null==(c=D.Message.getBooleanField(b,20))?void 0:c,serverStreaming:null==(c=D.Message.getBooleanField(b,21))?void 0:c,legacyStreamType:null==(c=D.Message.getField(b,
22))?void 0:c,legacyResultType:null==(c=D.Message.getField(b,23))?void 0:c,goLegacyChannelApi:null==(c=D.Message.getBooleanField(b,29))?void 0:c,legacyClientInitialTokens:D.Message.getFieldWithDefault(b,24,-1),legacyServerInitialTokens:D.Message.getFieldWithDefault(b,25,-1),legacyTokenUnit:D.Message.getFieldWithDefault(b,28,1),logLevel:D.Message.getFieldWithDefault(b,27,2),deprecated:D.Message.getBooleanFieldWithDefault(b,33,!1),idempotencyLevel:D.Message.getFieldWithDefault(b,34,0),uninterpretedOptionList:D.Message.toObjectList(U(b),
T.proto2.UninterpretedOption.toObject,a)};D.Message.toObjectExtension(b,g,T.proto2.MethodOptions.extensions,T.proto2.MethodOptions.prototype.getExtension,a);a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.MethodOptions.ObjectFormat=function(){},T.proto2.MethodOptions.fromObject=function(a){var b=new T.proto2.MethodOptions;null!=a.protocol&&D.Message.setField(b,7,a.protocol);null!=a.deadline&&D.Message.setField(b,8,a.deadline);null!=a.duplicateSuppression&&D.Message.setField(b,9,a.duplicateSuppression);null!=a.failFast&&D.Message.setField(b,10,a.failFast);null!=a.endUserCredsRequested&&D.Message.setField(b,26,a.endUserCredsRequested);null!=a.clientLogging&&
D.Message.setField(b,11,a.clientLogging);null!=a.serverLogging&&D.Message.setField(b,12,a.serverLogging);null!=a.securityLevel&&D.Message.setField(b,13,a.securityLevel);null!=a.responseFormat&&D.Message.setField(b,15,a.responseFormat);null!=a.requestFormat&&D.Message.setField(b,17,a.requestFormat);null!=a.streamType&&D.Message.setField(b,18,a.streamType);null!=a.securityLabel&&D.Message.setField(b,19,a.securityLabel);null!=a.clientStreaming&&D.Message.setField(b,20,a.clientStreaming);null!=a.serverStreaming&&
D.Message.setField(b,21,a.serverStreaming);null!=a.legacyStreamType&&D.Message.setField(b,22,a.legacyStreamType);null!=a.legacyResultType&&D.Message.setField(b,23,a.legacyResultType);null!=a.goLegacyChannelApi&&D.Message.setField(b,29,a.goLegacyChannelApi);null!=a.legacyClientInitialTokens&&D.Message.setField(b,24,a.legacyClientInitialTokens);null!=a.legacyServerInitialTokens&&D.Message.setField(b,25,a.legacyServerInitialTokens);null!=a.legacyTokenUnit&&D.Message.setField(b,28,a.legacyTokenUnit);
null!=a.logLevel&&D.Message.setField(b,27,a.logLevel);null!=a.deprecated&&D.Message.setField(b,33,a.deprecated);null!=a.idempotencyLevel&&D.Message.setField(b,34,a.idempotencyLevel);a.uninterpretedOptionList&&D.Message.setRepeatedWrapperField(b,999,a.uninterpretedOptionList.map(T.proto2.UninterpretedOption.fromObject));return b});
T.proto2.MethodOptions.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.MethodOptions;return T.proto2.MethodOptions.deserializeBinaryFromReader(b,a)};
T.proto2.MethodOptions.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 7:var c=b.readEnum();D.Message.setField(a,7,c);break;case 8:c=b.readDouble();a.setDeadline(c);break;case 9:c=b.readBool();D.Message.setField(a,9,c);break;case 10:c=b.readBool();a.setFailFast(c);break;case 26:c=b.readBool();a.setEndUserCredsRequested(c);break;case 11:c=va(b);a.setClientLogging(c);break;case 12:c=va(b);a.setServerLogging(c);break;case 13:c=b.readEnum();a.setSecurityLevel(c);
break;case 15:c=b.readEnum();D.Message.setField(a,15,c);break;case 17:c=b.readEnum();D.Message.setField(a,17,c);break;case 18:c=b.readString();D.Message.setField(a,18,c);break;case 19:c=b.readString();a.setSecurityLabel(c);break;case 20:c=b.readBool();a.setClientStreaming(c);break;case 21:c=b.readBool();a.setServerStreaming(c);break;case 22:c=b.readString();D.Message.setField(a,22,c);break;case 23:c=b.readString();D.Message.setField(a,23,c);break;case 29:c=b.readBool();D.Message.setField(a,29,c);
break;case 24:c=b.readInt64();D.Message.setField(a,24,c);break;case 25:c=b.readInt64();D.Message.setField(a,25,c);break;case 28:c=b.readEnum();D.Message.setField(a,28,c);break;case 27:c=b.readEnum();a.setLogLevel(c);break;case 33:c=b.readBool();a.setDeprecated(c);break;case 34:c=b.readEnum();D.Message.setField(a,34,c);break;case 999:c=new T.proto2.UninterpretedOption;b.readMessage(c,T.proto2.UninterpretedOption.deserializeBinaryFromReader);a.addUninterpretedOption(c);break;default:D.Message.readBinaryExtension(a,
b,T.proto2.MethodOptions.extensionsBinary,T.proto2.MethodOptions.prototype.getExtension,T.proto2.MethodOptions.prototype.setExtension)}return a};
T.proto2.MethodOptions.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,7);null!=c&&b.writeEnum(7,c);c=D.Message.getField(a,8);null!=c&&b.writeDouble(8,c);c=D.Message.getField(a,9);null!=c&&b.writeBool(9,c);c=D.Message.getField(a,10);null!=c&&b.writeBool(10,c);c=D.Message.getField(a,26);null!=c&&b.writeBool(26,c);c=D.Message.getField(a,11);null!=c&&xa(b,11,c);c=D.Message.getField(a,12);null!=c&&xa(b,12,c);c=D.Message.getField(a,13);null!=c&&b.writeEnum(13,c);c=D.Message.getField(a,
15);null!=c&&b.writeEnum(15,c);c=D.Message.getField(a,17);null!=c&&b.writeEnum(17,c);c=D.Message.getField(a,18);null!=c&&b.writeString(18,c);c=D.Message.getField(a,19);null!=c&&b.writeString(19,c);c=D.Message.getField(a,20);null!=c&&b.writeBool(20,c);c=D.Message.getField(a,21);null!=c&&b.writeBool(21,c);c=D.Message.getField(a,22);null!=c&&b.writeString(22,c);c=D.Message.getField(a,23);null!=c&&b.writeString(23,c);c=D.Message.getField(a,29);null!=c&&b.writeBool(29,c);c=D.Message.getField(a,24);null!=
c&&b.writeInt64(24,c);c=D.Message.getField(a,25);null!=c&&b.writeInt64(25,c);c=D.Message.getField(a,28);null!=c&&b.writeEnum(28,c);c=D.Message.getField(a,27);null!=c&&b.writeEnum(27,c);c=D.Message.getField(a,33);null!=c&&b.writeBool(33,c);c=D.Message.getField(a,34);null!=c&&b.writeEnum(34,c);c=U(a);0<c.length&&P(b,999,c,T.proto2.UninterpretedOption.serializeBinaryToWriter);D.Message.serializeBinaryExtensions(a,b,T.proto2.MethodOptions.extensionsBinary,T.proto2.MethodOptions.prototype.getExtension)};
T.proto2.MethodOptions.Protocol={TCP:0,UDP:1};T.proto2.MethodOptions.SecurityLevel={NONE:0,INTEGRITY:1,PRIVACY_AND_INTEGRITY:2,STRONG_PRIVACY_AND_INTEGRITY:3};T.proto2.MethodOptions.Format={UNCOMPRESSED:0,ZIPPY_COMPRESSED:1};T.proto2.MethodOptions.LogLevel={LOG_NONE:0,LOG_HEADER_ONLY:1,LOG_HEADER_AND_NON_PRIVATE_PAYLOAD_INTERNAL:2,LOG_HEADER_AND_FILTERED_PAYLOAD:3,LOG_HEADER_AND_PAYLOAD:4};T.proto2.MethodOptions.TokenUnit={MESSAGE:0,BYTE:1};
T.proto2.MethodOptions.IdempotencyLevel={IDEMPOTENCY_UNKNOWN:0,NO_SIDE_EFFECTS:1,IDEMPOTENT:2};d=T.proto2.MethodOptions.prototype;d.setDeadline=function(a){D.Message.setField(this,8,a)};d.setFailFast=function(a){D.Message.setField(this,10,a)};d.setEndUserCredsRequested=function(a){D.Message.setField(this,26,a)};d.setClientLogging=function(a){D.Message.setField(this,11,a)};d.setServerLogging=function(a){D.Message.setField(this,12,a)};d.setSecurityLevel=function(a){D.Message.setField(this,13,a)};
d.setSecurityLabel=function(a){D.Message.setField(this,19,a)};d.setClientStreaming=function(a){D.Message.setField(this,20,a)};d.setServerStreaming=function(a){D.Message.setField(this,21,a)};d.setLogLevel=function(a){D.Message.setField(this,27,a)};d.setDeprecated=function(a){D.Message.setField(this,33,a)};d.addUninterpretedOption=function(a){D.Message.addToRepeatedWrapperField(this,999,a,T.proto2.UninterpretedOption,void 0)};
T.proto2.MethodOptions.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.MethodOptions,a)};T.proto2.MethodDescriptorProto=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.proto2.MethodDescriptorProto,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.proto2.MethodDescriptorProto.prototype.toObject=function(a){return T.proto2.MethodDescriptorProto.toObject(a,this)},T.proto2.MethodDescriptorProto.toObject=function(a,b){var c,g={name:null==(c=D.Message.getField(b,1))?void 0:c,inputType:null==(c=D.Message.getField(b,2))?void 0:c,outputType:null==(c=D.Message.getField(b,3))?void 0:c,options:(c=b.getOptions())&&T.proto2.MethodOptions.toObject(a,c),clientStreaming:D.Message.getBooleanFieldWithDefault(b,5,!1),serverStreaming:D.Message.getBooleanFieldWithDefault(b,
6,!1)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.MethodDescriptorProto.ObjectFormat=function(){},T.proto2.MethodDescriptorProto.fromObject=function(a){var b=new T.proto2.MethodDescriptorProto;null!=a.name&&D.Message.setField(b,1,a.name);null!=a.inputType&&D.Message.setField(b,2,a.inputType);null!=a.outputType&&D.Message.setField(b,3,a.outputType);a.options&&D.Message.setWrapperField(b,4,T.proto2.MethodOptions.fromObject(a.options));null!=a.clientStreaming&&D.Message.setField(b,5,a.clientStreaming);null!=
a.serverStreaming&&D.Message.setField(b,6,a.serverStreaming);return b});T.proto2.MethodDescriptorProto.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.MethodDescriptorProto;return T.proto2.MethodDescriptorProto.deserializeBinaryFromReader(b,a)};
T.proto2.MethodDescriptorProto.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setName(c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;case 4:c=new T.proto2.MethodOptions;b.readMessage(c,T.proto2.MethodOptions.deserializeBinaryFromReader);a.setOptions(c);break;case 5:c=b.readBool();a.setClientStreaming(c);break;case 6:c=b.readBool();a.setServerStreaming(c);break;
default:I(b)}return a};T.proto2.MethodDescriptorProto.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=a.getOptions();null!=c&&N(b,4,c,T.proto2.MethodOptions.serializeBinaryToWriter);c=D.Message.getField(a,5);null!=c&&b.writeBool(5,c);c=D.Message.getField(a,6);null!=c&&b.writeBool(6,c)};d=T.proto2.MethodDescriptorProto.prototype;
d.setName=function(a){D.Message.setField(this,1,a)};d.getOptions=function(){return D.Message.getWrapperField(this,T.proto2.MethodOptions,4)};d.setOptions=function(a){D.Message.setWrapperField(this,4,a)};d.setClientStreaming=function(a){D.Message.setField(this,5,a)};d.setServerStreaming=function(a){D.Message.setField(this,6,a)};T.proto2.MethodDescriptorProto.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.MethodDescriptorProto,a)};T.proto2.ServiceOptions=function(a){D.Message.initialize(this,a,0,500,T.proto2.ServiceOptions.repeatedFields_,null)};f.inherits(T.proto2.ServiceOptions,D.Message);T.proto2.ServiceOptions.extensions={};T.proto2.ServiceOptions.extensionsBinary={};T.proto2.ServiceOptions.repeatedFields_=[999];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.ServiceOptions.prototype.toObject=function(a){return T.proto2.ServiceOptions.toObject(a,this)},T.proto2.ServiceOptions.toObject=function(a,b){var c={multicastStub:D.Message.getBooleanFieldWithDefault(b,20,!1),failureDetectionDelay:D.Message.getFloatingPointFieldWithDefault(b,16,-1),deprecated:D.Message.getBooleanFieldWithDefault(b,33,!1),uninterpretedOptionList:D.Message.toObjectList(U(b),T.proto2.UninterpretedOption.toObject,a)};D.Message.toObjectExtension(b,
c,T.proto2.ServiceOptions.extensions,T.proto2.ServiceOptions.prototype.getExtension,a);a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.ServiceOptions.ObjectFormat=function(){},T.proto2.ServiceOptions.fromObject=function(a){var b=new T.proto2.ServiceOptions;null!=a.multicastStub&&D.Message.setField(b,20,a.multicastStub);null!=a.failureDetectionDelay&&D.Message.setField(b,16,a.failureDetectionDelay);null!=a.deprecated&&D.Message.setField(b,33,a.deprecated);a.uninterpretedOptionList&&D.Message.setRepeatedWrapperField(b,999,a.uninterpretedOptionList.map(T.proto2.UninterpretedOption.fromObject));
return b});T.proto2.ServiceOptions.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.ServiceOptions;return T.proto2.ServiceOptions.deserializeBinaryFromReader(b,a)};
T.proto2.ServiceOptions.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 20:var c=b.readBool();D.Message.setField(a,20,c);break;case 16:c=b.readDouble();D.Message.setField(a,16,c);break;case 33:c=b.readBool();a.setDeprecated(c);break;case 999:c=new T.proto2.UninterpretedOption;b.readMessage(c,T.proto2.UninterpretedOption.deserializeBinaryFromReader);a.addUninterpretedOption(c);break;default:D.Message.readBinaryExtension(a,b,T.proto2.ServiceOptions.extensionsBinary,
T.proto2.ServiceOptions.prototype.getExtension,T.proto2.ServiceOptions.prototype.setExtension)}return a};T.proto2.ServiceOptions.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,20);null!=c&&b.writeBool(20,c);c=D.Message.getField(a,16);null!=c&&b.writeDouble(16,c);c=D.Message.getField(a,33);null!=c&&b.writeBool(33,c);c=U(a);0<c.length&&P(b,999,c,T.proto2.UninterpretedOption.serializeBinaryToWriter);D.Message.serializeBinaryExtensions(a,b,T.proto2.ServiceOptions.extensionsBinary,T.proto2.ServiceOptions.prototype.getExtension)};
T.proto2.ServiceOptions.prototype.setDeprecated=function(a){D.Message.setField(this,33,a)};T.proto2.ServiceOptions.prototype.addUninterpretedOption=function(a){D.Message.addToRepeatedWrapperField(this,999,a,T.proto2.UninterpretedOption,void 0)};T.proto2.ServiceOptions.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.ServiceOptions,a)};T.proto2.StreamOptions=function(a){D.Message.initialize(this,a,0,500,T.proto2.StreamOptions.repeatedFields_,null)};f.inherits(T.proto2.StreamOptions,D.Message);T.proto2.StreamOptions.extensions={};T.proto2.StreamOptions.extensionsBinary={};T.proto2.StreamOptions.repeatedFields_=[999];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.StreamOptions.prototype.toObject=function(a){return T.proto2.StreamOptions.toObject(a,this)},T.proto2.StreamOptions.toObject=function(a,b){var c,g={clientInitialTokens:D.Message.getFieldWithDefault(b,1,-1),serverInitialTokens:D.Message.getFieldWithDefault(b,2,-1),tokenUnit:D.Message.getFieldWithDefault(b,3,0),securityLevel:D.Message.getFieldWithDefault(b,4,0),securityLabel:null==(c=D.Message.getField(b,5))?void 0:c,clientLogging:D.Message.getFieldWithDefault(b,
6,256),serverLogging:D.Message.getFieldWithDefault(b,7,256),deadline:D.Message.getFloatingPointFieldWithDefault(b,8,-1),failFast:D.Message.getBooleanFieldWithDefault(b,9,!1),endUserCredsRequested:D.Message.getBooleanFieldWithDefault(b,10,!1),logLevel:D.Message.getFieldWithDefault(b,11,2),deprecated:D.Message.getBooleanFieldWithDefault(b,33,!1),uninterpretedOptionList:D.Message.toObjectList(U(b),T.proto2.UninterpretedOption.toObject,a)};D.Message.toObjectExtension(b,g,T.proto2.StreamOptions.extensions,
T.proto2.StreamOptions.prototype.getExtension,a);a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.StreamOptions.ObjectFormat=function(){},T.proto2.StreamOptions.fromObject=function(a){var b=new T.proto2.StreamOptions;null!=a.clientInitialTokens&&D.Message.setField(b,1,a.clientInitialTokens);null!=a.serverInitialTokens&&D.Message.setField(b,2,a.serverInitialTokens);null!=a.tokenUnit&&D.Message.setField(b,3,a.tokenUnit);null!=a.securityLevel&&D.Message.setField(b,4,a.securityLevel);null!=a.securityLabel&&D.Message.setField(b,5,a.securityLabel);null!=a.clientLogging&&
D.Message.setField(b,6,a.clientLogging);null!=a.serverLogging&&D.Message.setField(b,7,a.serverLogging);null!=a.deadline&&D.Message.setField(b,8,a.deadline);null!=a.failFast&&D.Message.setField(b,9,a.failFast);null!=a.endUserCredsRequested&&D.Message.setField(b,10,a.endUserCredsRequested);null!=a.logLevel&&D.Message.setField(b,11,a.logLevel);null!=a.deprecated&&D.Message.setField(b,33,a.deprecated);a.uninterpretedOptionList&&D.Message.setRepeatedWrapperField(b,999,a.uninterpretedOptionList.map(T.proto2.UninterpretedOption.fromObject));
return b});T.proto2.StreamOptions.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.StreamOptions;return T.proto2.StreamOptions.deserializeBinaryFromReader(b,a)};
T.proto2.StreamOptions.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt64();D.Message.setField(a,1,c);break;case 2:c=b.readInt64();D.Message.setField(a,2,c);break;case 3:c=b.readEnum();D.Message.setField(a,3,c);break;case 4:c=b.readEnum();a.setSecurityLevel(c);break;case 5:c=b.readString();a.setSecurityLabel(c);break;case 6:c=b.readInt32();a.setClientLogging(c);break;case 7:c=b.readInt32();a.setServerLogging(c);break;case 8:c=b.readDouble();a.setDeadline(c);
break;case 9:c=b.readBool();a.setFailFast(c);break;case 10:c=b.readBool();a.setEndUserCredsRequested(c);break;case 11:c=b.readEnum();a.setLogLevel(c);break;case 33:c=b.readBool();a.setDeprecated(c);break;case 999:c=new T.proto2.UninterpretedOption;b.readMessage(c,T.proto2.UninterpretedOption.deserializeBinaryFromReader);a.addUninterpretedOption(c);break;default:D.Message.readBinaryExtension(a,b,T.proto2.StreamOptions.extensionsBinary,T.proto2.StreamOptions.prototype.getExtension,T.proto2.StreamOptions.prototype.setExtension)}return a};
T.proto2.StreamOptions.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt64(1,c);c=D.Message.getField(a,2);null!=c&&b.writeInt64(2,c);c=D.Message.getField(a,3);null!=c&&b.writeEnum(3,c);c=D.Message.getField(a,4);null!=c&&b.writeEnum(4,c);c=D.Message.getField(a,5);null!=c&&b.writeString(5,c);c=D.Message.getField(a,6);null!=c&&b.writeInt32(6,c);c=D.Message.getField(a,7);null!=c&&b.writeInt32(7,c);c=D.Message.getField(a,8);null!=c&&b.writeDouble(8,c);c=D.Message.getField(a,
9);null!=c&&b.writeBool(9,c);c=D.Message.getField(a,10);null!=c&&b.writeBool(10,c);c=D.Message.getField(a,11);null!=c&&b.writeEnum(11,c);c=D.Message.getField(a,33);null!=c&&b.writeBool(33,c);c=U(a);0<c.length&&P(b,999,c,T.proto2.UninterpretedOption.serializeBinaryToWriter);D.Message.serializeBinaryExtensions(a,b,T.proto2.StreamOptions.extensionsBinary,T.proto2.StreamOptions.prototype.getExtension)};T.proto2.StreamOptions.TokenUnit={MESSAGE:0,BYTE:1};d=T.proto2.StreamOptions.prototype;
d.setSecurityLevel=function(a){D.Message.setField(this,4,a)};d.setSecurityLabel=function(a){D.Message.setField(this,5,a)};d.setClientLogging=function(a){D.Message.setField(this,6,a)};d.setServerLogging=function(a){D.Message.setField(this,7,a)};d.setDeadline=function(a){D.Message.setField(this,8,a)};d.setFailFast=function(a){D.Message.setField(this,9,a)};d.setEndUserCredsRequested=function(a){D.Message.setField(this,10,a)};d.setLogLevel=function(a){D.Message.setField(this,11,a)};
d.setDeprecated=function(a){D.Message.setField(this,33,a)};d.addUninterpretedOption=function(a){D.Message.addToRepeatedWrapperField(this,999,a,T.proto2.UninterpretedOption,void 0)};T.proto2.StreamOptions.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.StreamOptions,a)};T.proto2.StreamDescriptorProto=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.proto2.StreamDescriptorProto,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.proto2.StreamDescriptorProto.prototype.toObject=function(a){return T.proto2.StreamDescriptorProto.toObject(a,this)},T.proto2.StreamDescriptorProto.toObject=function(a,b){var c,g={name:null==(c=D.Message.getField(b,1))?void 0:c,clientMessageType:null==(c=D.Message.getField(b,2))?void 0:c,serverMessageType:null==(c=D.Message.getField(b,3))?void 0:c,options:(c=b.getOptions())&&T.proto2.StreamOptions.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.StreamDescriptorProto.ObjectFormat=function(){},T.proto2.StreamDescriptorProto.fromObject=function(a){var b=new T.proto2.StreamDescriptorProto;null!=a.name&&D.Message.setField(b,1,a.name);null!=a.clientMessageType&&D.Message.setField(b,2,a.clientMessageType);null!=a.serverMessageType&&D.Message.setField(b,3,a.serverMessageType);a.options&&D.Message.setWrapperField(b,4,T.proto2.StreamOptions.fromObject(a.options));return b});
T.proto2.StreamDescriptorProto.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.StreamDescriptorProto;return T.proto2.StreamDescriptorProto.deserializeBinaryFromReader(b,a)};
T.proto2.StreamDescriptorProto.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setName(c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;case 4:c=new T.proto2.StreamOptions;b.readMessage(c,T.proto2.StreamOptions.deserializeBinaryFromReader);a.setOptions(c);break;default:I(b)}return a};
T.proto2.StreamDescriptorProto.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=a.getOptions();null!=c&&N(b,4,c,T.proto2.StreamOptions.serializeBinaryToWriter)};T.proto2.StreamDescriptorProto.prototype.setName=function(a){D.Message.setField(this,1,a)};
T.proto2.StreamDescriptorProto.prototype.getOptions=function(){return D.Message.getWrapperField(this,T.proto2.StreamOptions,4)};T.proto2.StreamDescriptorProto.prototype.setOptions=function(a){D.Message.setWrapperField(this,4,a)};T.proto2.StreamDescriptorProto.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.StreamDescriptorProto,a)};T.proto2.ServiceDescriptorProto=function(a){D.Message.initialize(this,a,0,-1,T.proto2.ServiceDescriptorProto.repeatedFields_,null)};f.inherits(T.proto2.ServiceDescriptorProto,D.Message);T.proto2.ServiceDescriptorProto.repeatedFields_=[2,4];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.ServiceDescriptorProto.prototype.toObject=function(a){return T.proto2.ServiceDescriptorProto.toObject(a,this)},T.proto2.ServiceDescriptorProto.toObject=function(a,b){var c,g={name:null==(c=D.Message.getField(b,1))?void 0:c,methodList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.proto2.MethodDescriptorProto,2),T.proto2.MethodDescriptorProto.toObject,a),streamList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.proto2.StreamDescriptorProto,
4),T.proto2.StreamDescriptorProto.toObject,a),options:(c=b.getOptions())&&T.proto2.ServiceOptions.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.ServiceDescriptorProto.ObjectFormat=function(){},T.proto2.ServiceDescriptorProto.fromObject=function(a){var b=new T.proto2.ServiceDescriptorProto;null!=a.name&&D.Message.setField(b,1,a.name);a.methodList&&D.Message.setRepeatedWrapperField(b,2,a.methodList.map(T.proto2.MethodDescriptorProto.fromObject));a.streamList&&D.Message.setRepeatedWrapperField(b,4,a.streamList.map(T.proto2.StreamDescriptorProto.fromObject));a.options&&D.Message.setWrapperField(b,3,T.proto2.ServiceOptions.fromObject(a.options));
return b});T.proto2.ServiceDescriptorProto.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.ServiceDescriptorProto;return T.proto2.ServiceDescriptorProto.deserializeBinaryFromReader(b,a)};
T.proto2.ServiceDescriptorProto.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setName(c);break;case 2:c=new T.proto2.MethodDescriptorProto;b.readMessage(c,T.proto2.MethodDescriptorProto.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,2,c,T.proto2.MethodDescriptorProto,void 0);break;case 4:c=new T.proto2.StreamDescriptorProto;b.readMessage(c,T.proto2.StreamDescriptorProto.deserializeBinaryFromReader);a.addStream(c);
break;case 3:c=new T.proto2.ServiceOptions;b.readMessage(c,T.proto2.ServiceOptions.deserializeBinaryFromReader);a.setOptions(c);break;default:I(b)}return a};
T.proto2.ServiceDescriptorProto.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getRepeatedWrapperField(a,T.proto2.MethodDescriptorProto,2);0<c.length&&P(b,2,c,T.proto2.MethodDescriptorProto.serializeBinaryToWriter);c=D.Message.getRepeatedWrapperField(a,T.proto2.StreamDescriptorProto,4);0<c.length&&P(b,4,c,T.proto2.StreamDescriptorProto.serializeBinaryToWriter);c=a.getOptions();null!=c&&N(b,3,c,T.proto2.ServiceOptions.serializeBinaryToWriter)};
T.proto2.ServiceDescriptorProto.prototype.setName=function(a){D.Message.setField(this,1,a)};T.proto2.ServiceDescriptorProto.prototype.addStream=function(a,b){return D.Message.addToRepeatedWrapperField(this,4,a,T.proto2.StreamDescriptorProto,b)};T.proto2.ServiceDescriptorProto.prototype.getOptions=function(){return D.Message.getWrapperField(this,T.proto2.ServiceOptions,3)};T.proto2.ServiceDescriptorProto.prototype.setOptions=function(a){D.Message.setWrapperField(this,3,a)};
T.proto2.ServiceDescriptorProto.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.ServiceDescriptorProto,a)};T.proto2.SourceCodeInfo=function(a){D.Message.initialize(this,a,0,-1,T.proto2.SourceCodeInfo.repeatedFields_,null)};f.inherits(T.proto2.SourceCodeInfo,D.Message);T.proto2.SourceCodeInfo.Location=function(a){D.Message.initialize(this,a,0,-1,T.proto2.SourceCodeInfo.Location.repeatedFields_,null)};f.inherits(T.proto2.SourceCodeInfo.Location,D.Message);T.proto2.SourceCodeInfo.repeatedFields_=[1];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.SourceCodeInfo.prototype.toObject=function(a){return T.proto2.SourceCodeInfo.toObject(a,this)},T.proto2.SourceCodeInfo.toObject=function(a,b){var c={locationList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.proto2.SourceCodeInfo.Location,1),T.proto2.SourceCodeInfo.Location.toObject,a)};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.SourceCodeInfo.ObjectFormat=function(){},T.proto2.SourceCodeInfo.fromObject=function(a){var b=new T.proto2.SourceCodeInfo;a.locationList&&D.Message.setRepeatedWrapperField(b,1,a.locationList.map(T.proto2.SourceCodeInfo.Location.fromObject));return b});T.proto2.SourceCodeInfo.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.SourceCodeInfo;return T.proto2.SourceCodeInfo.deserializeBinaryFromReader(b,a)};
T.proto2.SourceCodeInfo.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.proto2.SourceCodeInfo.Location;b.readMessage(c,T.proto2.SourceCodeInfo.Location.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,1,c,T.proto2.SourceCodeInfo.Location,void 0);break;default:I(b)}return a};
T.proto2.SourceCodeInfo.serializeBinaryToWriter=function(a,b){a=D.Message.getRepeatedWrapperField(a,T.proto2.SourceCodeInfo.Location,1);0<a.length&&P(b,1,a,T.proto2.SourceCodeInfo.Location.serializeBinaryToWriter)};T.proto2.SourceCodeInfo.Location.repeatedFields_=[1,2,6];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.SourceCodeInfo.Location.prototype.toObject=function(a){return T.proto2.SourceCodeInfo.Location.toObject(a,this)},T.proto2.SourceCodeInfo.Location.toObject=function(a,b){var c,g={pathList:null==(c=D.Message.getRepeatedField(b,1))?void 0:c,spanList:null==(c=D.Message.getRepeatedField(b,2))?void 0:c,leadingComments:null==(c=D.Message.getField(b,3))?void 0:c,trailingComments:null==(c=D.Message.getField(b,4))?void 0:c,leadingDetachedCommentsList:null==(c=D.Message.getRepeatedField(b,
6))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.SourceCodeInfo.Location.ObjectFormat=function(){},T.proto2.SourceCodeInfo.Location.fromObject=function(a){var b=new T.proto2.SourceCodeInfo.Location;null!=a.pathList&&D.Message.setField(b,1,a.pathList);null!=a.spanList&&D.Message.setField(b,2,a.spanList);null!=a.leadingComments&&D.Message.setField(b,3,a.leadingComments);null!=a.trailingComments&&D.Message.setField(b,4,a.trailingComments);null!=a.leadingDetachedCommentsList&&D.Message.setField(b,6,a.leadingDetachedCommentsList);
return b});T.proto2.SourceCodeInfo.Location.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.SourceCodeInfo.Location;return T.proto2.SourceCodeInfo.Location.deserializeBinaryFromReader(b,a)};
T.proto2.SourceCodeInfo.Location.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=J(b,b.decoder_.readSignedVarint32);a.setPathList(c);break;case 2:c=J(b,b.decoder_.readSignedVarint32);D.Message.setField(a,2,c||[]);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;case 4:c=b.readString();D.Message.setField(a,4,c);break;case 6:c=b.readString();D.Message.addToRepeatedField(a,6,c,void 0);break;default:I(b)}return a};
T.proto2.SourceCodeInfo.Location.serializeBinaryToWriter=function(a,b){var c=D.Message.getRepeatedField(a,1);0<c.length&&Ca(b,1,c);c=D.Message.getRepeatedField(a,2);0<c.length&&Ca(b,2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getRepeatedField(a,6);0<c.length&&O(b,6,c)};T.proto2.SourceCodeInfo.Location.prototype.setPathList=function(a){D.Message.setField(this,1,a||[])};
T.proto2.SourceCodeInfo.Location.prototype.addPath=function(a,b){return D.Message.addToRepeatedField(this,1,a,b)};T.proto2.SourceCodeInfo.Location.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.SourceCodeInfo.Location,a)};T.proto2.SourceCodeInfo.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.SourceCodeInfo,a)};T.proto2.FileDescriptorProto=function(a){D.Message.initialize(this,a,0,-1,T.proto2.FileDescriptorProto.repeatedFields_,null)};f.inherits(T.proto2.FileDescriptorProto,D.Message);T.proto2.FileDescriptorProto.repeatedFields_=[3,10,11,4,5,6,7];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.FileDescriptorProto.prototype.toObject=function(a){return T.proto2.FileDescriptorProto.toObject(a,this)},T.proto2.FileDescriptorProto.toObject=function(a,b){var c,g={name:null==(c=D.Message.getField(b,1))?void 0:c,pb_package:null==(c=D.Message.getField(b,2))?void 0:c,dependencyList:null==(c=D.Message.getRepeatedField(b,3))?void 0:c,publicDependencyList:null==(c=D.Message.getRepeatedField(b,10))?void 0:c,weakDependencyList:null==(c=D.Message.getRepeatedField(b,
11))?void 0:c,messageTypeList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.proto2.DescriptorProto,4),T.proto2.DescriptorProto.toObject,a),enumTypeList:D.Message.toObjectList(b.getEnumTypeList(),T.proto2.EnumDescriptorProto.toObject,a),serviceList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.proto2.ServiceDescriptorProto,6),T.proto2.ServiceDescriptorProto.toObject,a),extensionList:D.Message.toObjectList(b.getExtensionList(),T.proto2.FieldDescriptorProto.toObject,a),
options:(c=b.getOptions())&&T.proto2.FileOptions.toObject(a,c),sourceCodeInfo:(c=D.Message.getWrapperField(b,T.proto2.SourceCodeInfo,9))&&T.proto2.SourceCodeInfo.toObject(a,c),syntax:null==(c=D.Message.getField(b,12))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.FileDescriptorProto.ObjectFormat=function(){},T.proto2.FileDescriptorProto.fromObject=function(a){var b=new T.proto2.FileDescriptorProto;null!=a.name&&D.Message.setField(b,1,a.name);null!=a.pb_package&&D.Message.setField(b,2,a.pb_package);null!=a.dependencyList&&D.Message.setField(b,3,a.dependencyList);null!=a.publicDependencyList&&D.Message.setField(b,10,a.publicDependencyList);null!=a.weakDependencyList&&D.Message.setField(b,11,a.weakDependencyList);a.messageTypeList&&
D.Message.setRepeatedWrapperField(b,4,a.messageTypeList.map(T.proto2.DescriptorProto.fromObject));a.enumTypeList&&D.Message.setRepeatedWrapperField(b,5,a.enumTypeList.map(T.proto2.EnumDescriptorProto.fromObject));a.serviceList&&D.Message.setRepeatedWrapperField(b,6,a.serviceList.map(T.proto2.ServiceDescriptorProto.fromObject));a.extensionList&&D.Message.setRepeatedWrapperField(b,7,a.extensionList.map(T.proto2.FieldDescriptorProto.fromObject));a.options&&D.Message.setWrapperField(b,8,T.proto2.FileOptions.fromObject(a.options));
a.sourceCodeInfo&&D.Message.setWrapperField(b,9,T.proto2.SourceCodeInfo.fromObject(a.sourceCodeInfo));null!=a.syntax&&D.Message.setField(b,12,a.syntax);return b});T.proto2.FileDescriptorProto.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.FileDescriptorProto;return T.proto2.FileDescriptorProto.deserializeBinaryFromReader(b,a)};
T.proto2.FileDescriptorProto.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setName(c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readString();a.addDependency(c);break;case 10:c=b.readInt32();D.Message.addToRepeatedField(a,10,c,void 0);break;case 11:c=b.readInt32();D.Message.addToRepeatedField(a,11,c,void 0);break;case 4:c=new T.proto2.DescriptorProto;b.readMessage(c,T.proto2.DescriptorProto.deserializeBinaryFromReader);
D.Message.addToRepeatedWrapperField(a,4,c,T.proto2.DescriptorProto,void 0);break;case 5:c=new T.proto2.EnumDescriptorProto;b.readMessage(c,T.proto2.EnumDescriptorProto.deserializeBinaryFromReader);a.addEnumType(c);break;case 6:c=new T.proto2.ServiceDescriptorProto;b.readMessage(c,T.proto2.ServiceDescriptorProto.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,6,c,T.proto2.ServiceDescriptorProto,void 0);break;case 7:c=new T.proto2.FieldDescriptorProto;b.readMessage(c,T.proto2.FieldDescriptorProto.deserializeBinaryFromReader);
a.addExtension$(c);break;case 8:c=new T.proto2.FileOptions;b.readMessage(c,T.proto2.FileOptions.deserializeBinaryFromReader);a.setOptions(c);break;case 9:c=new T.proto2.SourceCodeInfo;b.readMessage(c,T.proto2.SourceCodeInfo.deserializeBinaryFromReader);D.Message.setWrapperField(a,9,c);break;case 12:c=b.readString();D.Message.setField(a,12,c);break;default:I(b)}return a};
T.proto2.FileDescriptorProto.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getRepeatedField(a,3);0<c.length&&O(b,3,c);c=D.Message.getRepeatedField(a,10);0<c.length&&ya(b,10,c);c=D.Message.getRepeatedField(a,11);0<c.length&&ya(b,11,c);c=D.Message.getRepeatedWrapperField(a,T.proto2.DescriptorProto,4);0<c.length&&P(b,4,c,T.proto2.DescriptorProto.serializeBinaryToWriter);c=a.getEnumTypeList();
0<c.length&&P(b,5,c,T.proto2.EnumDescriptorProto.serializeBinaryToWriter);c=D.Message.getRepeatedWrapperField(a,T.proto2.ServiceDescriptorProto,6);0<c.length&&P(b,6,c,T.proto2.ServiceDescriptorProto.serializeBinaryToWriter);c=a.getExtensionList();0<c.length&&P(b,7,c,T.proto2.FieldDescriptorProto.serializeBinaryToWriter);c=a.getOptions();null!=c&&N(b,8,c,T.proto2.FileOptions.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.proto2.SourceCodeInfo,9);null!=c&&N(b,9,c,T.proto2.SourceCodeInfo.serializeBinaryToWriter);
c=D.Message.getField(a,12);null!=c&&b.writeString(12,c)};d=T.proto2.FileDescriptorProto.prototype;d.setName=function(a){D.Message.setField(this,1,a)};d.addDependency=function(a){D.Message.addToRepeatedField(this,3,a,void 0)};d.getEnumTypeList=function(){return D.Message.getRepeatedWrapperField(this,T.proto2.EnumDescriptorProto,5)};d.addEnumType=function(a){D.Message.addToRepeatedWrapperField(this,5,a,T.proto2.EnumDescriptorProto,void 0)};
d.getExtensionList=function(){return D.Message.getRepeatedWrapperField(this,T.proto2.FieldDescriptorProto,7)};d.addExtension$=function(a){D.Message.addToRepeatedWrapperField(this,7,a,T.proto2.FieldDescriptorProto,void 0)};d.getOptions=function(){return D.Message.getWrapperField(this,T.proto2.FileOptions,8)};d.setOptions=function(a){D.Message.setWrapperField(this,8,a)};T.proto2.FileDescriptorProto.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.FileDescriptorProto,a)};T.proto2.FileDescriptorSet=function(a){D.Message.initialize(this,a,0,-1,T.proto2.FileDescriptorSet.repeatedFields_,null)};f.inherits(T.proto2.FileDescriptorSet,D.Message);T.proto2.FileDescriptorSet.repeatedFields_=[1];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.FileDescriptorSet.prototype.toObject=function(a){return T.proto2.FileDescriptorSet.toObject(a,this)},T.proto2.FileDescriptorSet.toObject=function(a,b){var c={fileList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.proto2.FileDescriptorProto,1),T.proto2.FileDescriptorProto.toObject,a)};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.FileDescriptorSet.ObjectFormat=function(){},T.proto2.FileDescriptorSet.fromObject=function(a){var b=new T.proto2.FileDescriptorSet;a.fileList&&D.Message.setRepeatedWrapperField(b,1,a.fileList.map(T.proto2.FileDescriptorProto.fromObject));return b});T.proto2.FileDescriptorSet.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.FileDescriptorSet;return T.proto2.FileDescriptorSet.deserializeBinaryFromReader(b,a)};
T.proto2.FileDescriptorSet.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.proto2.FileDescriptorProto;b.readMessage(c,T.proto2.FileDescriptorProto.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,1,c,T.proto2.FileDescriptorProto,void 0);break;default:I(b)}return a};T.proto2.FileDescriptorSet.serializeBinaryToWriter=function(a,b){a=D.Message.getRepeatedWrapperField(a,T.proto2.FileDescriptorProto,1);0<a.length&&P(b,1,a,T.proto2.FileDescriptorProto.serializeBinaryToWriter)};
T.proto2.FileDescriptorSet.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.FileDescriptorSet,a)};T.proto2.GeneratedCodeInfo=function(a){D.Message.initialize(this,a,0,-1,T.proto2.GeneratedCodeInfo.repeatedFields_,null)};f.inherits(T.proto2.GeneratedCodeInfo,D.Message);T.proto2.GeneratedCodeInfo.Annotation=function(a){D.Message.initialize(this,a,0,-1,T.proto2.GeneratedCodeInfo.Annotation.repeatedFields_,null)};f.inherits(T.proto2.GeneratedCodeInfo.Annotation,D.Message);T.proto2.GeneratedCodeInfo.repeatedFields_=[1];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.GeneratedCodeInfo.prototype.toObject=function(a){return T.proto2.GeneratedCodeInfo.toObject(a,this)},T.proto2.GeneratedCodeInfo.toObject=function(a,b){var c={annotationList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.proto2.GeneratedCodeInfo.Annotation,1),T.proto2.GeneratedCodeInfo.Annotation.toObject,a)};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.GeneratedCodeInfo.ObjectFormat=function(){},T.proto2.GeneratedCodeInfo.fromObject=function(a){var b=new T.proto2.GeneratedCodeInfo;a.annotationList&&D.Message.setRepeatedWrapperField(b,1,a.annotationList.map(T.proto2.GeneratedCodeInfo.Annotation.fromObject));return b});T.proto2.GeneratedCodeInfo.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.GeneratedCodeInfo;return T.proto2.GeneratedCodeInfo.deserializeBinaryFromReader(b,a)};
T.proto2.GeneratedCodeInfo.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.proto2.GeneratedCodeInfo.Annotation;b.readMessage(c,T.proto2.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,1,c,T.proto2.GeneratedCodeInfo.Annotation,void 0);break;default:I(b)}return a};
T.proto2.GeneratedCodeInfo.serializeBinaryToWriter=function(a,b){a=D.Message.getRepeatedWrapperField(a,T.proto2.GeneratedCodeInfo.Annotation,1);0<a.length&&P(b,1,a,T.proto2.GeneratedCodeInfo.Annotation.serializeBinaryToWriter)};T.proto2.GeneratedCodeInfo.Annotation.repeatedFields_=[1];
D.Message.GENERATE_TO_OBJECT&&(T.proto2.GeneratedCodeInfo.Annotation.prototype.toObject=function(a){return T.proto2.GeneratedCodeInfo.Annotation.toObject(a,this)},T.proto2.GeneratedCodeInfo.Annotation.toObject=function(a,b){var c,g={pathList:null==(c=D.Message.getRepeatedField(b,1))?void 0:c,sourceFile:null==(c=D.Message.getField(b,2))?void 0:c,begin:null==(c=D.Message.getField(b,3))?void 0:c,end:null==(c=D.Message.getField(b,4))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.GeneratedCodeInfo.Annotation.ObjectFormat=function(){},T.proto2.GeneratedCodeInfo.Annotation.fromObject=function(a){var b=new T.proto2.GeneratedCodeInfo.Annotation;null!=a.pathList&&D.Message.setField(b,1,a.pathList);null!=a.sourceFile&&D.Message.setField(b,2,a.sourceFile);null!=a.begin&&D.Message.setField(b,3,a.begin);null!=a.end&&D.Message.setField(b,4,a.end);return b});
T.proto2.GeneratedCodeInfo.Annotation.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.GeneratedCodeInfo.Annotation;return T.proto2.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader(b,a)};
T.proto2.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=J(b,b.decoder_.readSignedVarint32);a.setPathList(c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readInt32();D.Message.setField(a,3,c);break;case 4:c=b.readInt32();a.setEnd(c);break;default:I(b)}return a};
T.proto2.GeneratedCodeInfo.Annotation.serializeBinaryToWriter=function(a,b){var c=D.Message.getRepeatedField(a,1);0<c.length&&Ca(b,1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeInt32(3,c);c=D.Message.getField(a,4);null!=c&&b.writeInt32(4,c)};T.proto2.GeneratedCodeInfo.Annotation.prototype.setPathList=function(a){D.Message.setField(this,1,a||[])};
T.proto2.GeneratedCodeInfo.Annotation.prototype.addPath=function(a,b){return D.Message.addToRepeatedField(this,1,a,b)};T.proto2.GeneratedCodeInfo.Annotation.prototype.getEnd=function(){return D.Message.getField(this,4)};T.proto2.GeneratedCodeInfo.Annotation.prototype.setEnd=function(a){return D.Message.setField(this,4,a)};T.proto2.GeneratedCodeInfo.Annotation.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.GeneratedCodeInfo.Annotation,a)};
T.proto2.GeneratedCodeInfo.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.GeneratedCodeInfo,a)};T.datapol={};T.datapol.DataFormat={DF_NONE:0,DF_HTTPHEADER:1,DF_COOKIE:2,DF_URL:3,DF_CGI_ARGS:4,DF_HOST_ORDER:5,DF_BYTE_SWAPPED:6,DF_LOGGING_ELEMENT_TYPE_ID:7};T.datapol.FieldDetails=function(a){D.Message.initialize(this,a,0,-1,T.datapol.FieldDetails.repeatedFields_,null)};f.inherits(T.datapol.FieldDetails,D.Message);T.datapol.FieldDetails.repeatedFields_=[1];D.Message.GENERATE_TO_OBJECT&&(T.datapol.FieldDetails.prototype.toObject=function(a){return T.datapol.FieldDetails.toObject(a,this)},T.datapol.FieldDetails.toObject=function(a,b){var c,g={semanticTypeList:null==(c=D.Message.getRepeatedField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.datapol.FieldDetails.ObjectFormat=function(){},T.datapol.FieldDetails.fromObject=function(a){var b=new T.datapol.FieldDetails;null!=a.semanticTypeList&&D.Message.setField(b,1,a.semanticTypeList);return b});T.datapol.FieldDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.datapol.FieldDetails;return T.datapol.FieldDetails.deserializeBinaryFromReader(b,a)};
T.datapol.FieldDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();a.addSemanticType(c);break;default:I(b)}return a};T.datapol.FieldDetails.serializeBinaryToWriter=function(a,b){a=D.Message.getRepeatedField(a,1);0<a.length&&Ba(b,a)};T.datapol.FieldDetails.prototype.addSemanticType=function(a){D.Message.addToRepeatedField(this,1,a,void 0)};
T.datapol.FieldDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.datapol.FieldDetails,a)};T.datapol.LocationQualifier=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.datapol.LocationQualifier,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.datapol.LocationQualifier.prototype.toObject=function(a){return T.datapol.LocationQualifier.toObject(a,this)},T.datapol.LocationQualifier.toObject=function(a,b){var c={nonUserLocation:D.Message.getBooleanFieldWithDefault(b,1,!1),preciseLocation:D.Message.getBooleanFieldWithDefault(b,2,!1)};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.datapol.LocationQualifier.ObjectFormat=function(){},T.datapol.LocationQualifier.fromObject=function(a){var b=new T.datapol.LocationQualifier;null!=a.nonUserLocation&&D.Message.setField(b,1,a.nonUserLocation);null!=a.preciseLocation&&D.Message.setField(b,2,a.preciseLocation);return b});
T.datapol.LocationQualifier.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.datapol.LocationQualifier;return T.datapol.LocationQualifier.deserializeBinaryFromReader(b,a)};T.datapol.LocationQualifier.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readBool();a.setNonUserLocation(c);break;case 2:c=b.readBool();D.Message.setField(a,2,c);break;default:I(b)}return a};
T.datapol.LocationQualifier.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeBool(1,c);c=D.Message.getField(a,2);null!=c&&b.writeBool(2,c)};T.datapol.LocationQualifier.prototype.setNonUserLocation=function(a){D.Message.setField(this,1,a)};T.datapol.LocationQualifier.deserialize=function(a){return D.Message.deserializeWithCtor(T.datapol.LocationQualifier,a)};T.datapol.MessageDetails=function(a){D.Message.initialize(this,a,0,-1,T.datapol.MessageDetails.repeatedFields_,null)};f.inherits(T.datapol.MessageDetails,D.Message);T.datapol.MessageDetails.repeatedFields_=[1];
D.Message.GENERATE_TO_OBJECT&&(T.datapol.MessageDetails.prototype.toObject=function(a){return T.datapol.MessageDetails.toObject(a,this)},T.datapol.MessageDetails.toObject=function(a,b){var c,g={semanticTypeList:null==(c=D.Message.getRepeatedField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.datapol.MessageDetails.ObjectFormat=function(){},T.datapol.MessageDetails.fromObject=function(a){var b=new T.datapol.MessageDetails;null!=a.semanticTypeList&&D.Message.setField(b,1,a.semanticTypeList);return b});T.datapol.MessageDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.datapol.MessageDetails;return T.datapol.MessageDetails.deserializeBinaryFromReader(b,a)};
T.datapol.MessageDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();a.addSemanticType(c);break;default:I(b)}return a};T.datapol.MessageDetails.serializeBinaryToWriter=function(a,b){a=D.Message.getRepeatedField(a,1);0<a.length&&Ba(b,a)};T.datapol.MessageDetails.prototype.addSemanticType=function(a){D.Message.addToRepeatedField(this,1,a,void 0)};
T.datapol.MessageDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.datapol.MessageDetails,a)};T.datapol.Qualifier=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.datapol.Qualifier,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.datapol.Qualifier.prototype.toObject=function(a){return T.datapol.Qualifier.toObject(a,this)},T.datapol.Qualifier.toObject=function(a,b){var c,g={isPublic:D.Message.getBooleanFieldWithDefault(b,1,!1),isGoogle:D.Message.getBooleanFieldWithDefault(b,2,!1),otherUser:D.Message.getBooleanFieldWithDefault(b,3,!1),isPartner:D.Message.getBooleanFieldWithDefault(b,4,!1),isPublisher:D.Message.getBooleanFieldWithDefault(b,5,!1),hasExplicitConsent:D.Message.getBooleanFieldWithDefault(b,
6,!1),isEncrypted:D.Message.getBooleanFieldWithDefault(b,7,!1),relatedField:null==(c=D.Message.getField(b,8))?void 0:c,nonUserLocation:D.Message.getBooleanFieldWithDefault(b,9,!1),limitedAccess:D.Message.getBooleanFieldWithDefault(b,10,!1),autoTombstone:D.Message.getBooleanFieldWithDefault(b,14,!1),autoDeleteWithinWipeout:D.Message.getBooleanFieldWithDefault(b,11,!1),autoDeleteWithin180Days:D.Message.getBooleanFieldWithDefault(b,13,!1),isAccessTarget:D.Message.getBooleanFieldWithDefault(b,12,!1)};
a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.datapol.Qualifier.ObjectFormat=function(){},T.datapol.Qualifier.fromObject=function(a){var b=new T.datapol.Qualifier;null!=a.isPublic&&D.Message.setField(b,1,a.isPublic);null!=a.isGoogle&&D.Message.setField(b,2,a.isGoogle);null!=a.otherUser&&D.Message.setField(b,3,a.otherUser);null!=a.isPartner&&D.Message.setField(b,4,a.isPartner);null!=a.isPublisher&&D.Message.setField(b,5,a.isPublisher);null!=a.hasExplicitConsent&&D.Message.setField(b,6,a.hasExplicitConsent);null!=
a.isEncrypted&&D.Message.setField(b,7,a.isEncrypted);null!=a.relatedField&&D.Message.setField(b,8,a.relatedField);null!=a.nonUserLocation&&D.Message.setField(b,9,a.nonUserLocation);null!=a.limitedAccess&&D.Message.setField(b,10,a.limitedAccess);null!=a.autoTombstone&&D.Message.setField(b,14,a.autoTombstone);null!=a.autoDeleteWithinWipeout&&D.Message.setField(b,11,a.autoDeleteWithinWipeout);null!=a.autoDeleteWithin180Days&&D.Message.setField(b,13,a.autoDeleteWithin180Days);null!=a.isAccessTarget&&
D.Message.setField(b,12,a.isAccessTarget);return b});T.datapol.Qualifier.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.datapol.Qualifier;return T.datapol.Qualifier.deserializeBinaryFromReader(b,a)};
T.datapol.Qualifier.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readBool();D.Message.setField(a,1,c);break;case 2:c=b.readBool();D.Message.setField(a,2,c);break;case 3:c=b.readBool();D.Message.setField(a,3,c);break;case 4:c=b.readBool();D.Message.setField(a,4,c);break;case 5:c=b.readBool();D.Message.setField(a,5,c);break;case 6:c=b.readBool();D.Message.setField(a,6,c);break;case 7:c=b.readBool();D.Message.setField(a,7,c);break;case 8:c=b.readInt32();
D.Message.setField(a,8,c);break;case 9:c=b.readBool();a.setNonUserLocation(c);break;case 10:c=b.readBool();D.Message.setField(a,10,c);break;case 14:c=b.readBool();D.Message.setField(a,14,c);break;case 11:c=b.readBool();D.Message.setField(a,11,c);break;case 13:c=b.readBool();D.Message.setField(a,13,c);break;case 12:c=b.readBool();D.Message.setField(a,12,c);break;default:I(b)}return a};
T.datapol.Qualifier.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeBool(1,c);c=D.Message.getField(a,2);null!=c&&b.writeBool(2,c);c=D.Message.getField(a,3);null!=c&&b.writeBool(3,c);c=D.Message.getField(a,4);null!=c&&b.writeBool(4,c);c=D.Message.getField(a,5);null!=c&&b.writeBool(5,c);c=D.Message.getField(a,6);null!=c&&b.writeBool(6,c);c=D.Message.getField(a,7);null!=c&&b.writeBool(7,c);c=D.Message.getField(a,8);null!=c&&b.writeInt32(8,c);c=D.Message.getField(a,
9);null!=c&&b.writeBool(9,c);c=D.Message.getField(a,10);null!=c&&b.writeBool(10,c);c=D.Message.getField(a,14);null!=c&&b.writeBool(14,c);c=D.Message.getField(a,11);null!=c&&b.writeBool(11,c);c=D.Message.getField(a,13);null!=c&&b.writeBool(13,c);c=D.Message.getField(a,12);null!=c&&b.writeBool(12,c)};T.datapol.Qualifier.prototype.setNonUserLocation=function(a){D.Message.setField(this,9,a)};T.datapol.Qualifier.deserialize=function(a){return D.Message.deserializeWithCtor(T.datapol.Qualifier,a)};T.datapol.RetentionSpec=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.datapol.RetentionSpec,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.datapol.RetentionSpec.prototype.toObject=function(a){return T.datapol.RetentionSpec.toObject(a,this)},T.datapol.RetentionSpec.toObject=function(a,b){var c={desiredRetention:D.Message.getFieldWithDefault(b,1,0),context:D.Message.getFieldWithDefault(b,2,"*")};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.datapol.RetentionSpec.ObjectFormat=function(){},T.datapol.RetentionSpec.fromObject=function(a){var b=new T.datapol.RetentionSpec;null!=a.desiredRetention&&D.Message.setField(b,1,a.desiredRetention);null!=a.context&&D.Message.setField(b,2,a.context);return b});T.datapol.RetentionSpec.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.datapol.RetentionSpec;return T.datapol.RetentionSpec.deserializeBinaryFromReader(b,a)};
T.datapol.RetentionSpec.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;default:I(b)}return a};T.datapol.RetentionSpec.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c)};
T.datapol.RetentionSpec.prototype.getContext=function(){return D.Message.getFieldWithDefault(this,2,"*")};T.datapol.RetentionSpec.deserialize=function(a){return D.Message.deserializeWithCtor(T.datapol.RetentionSpec,a)};T.datapol.RetentionTag={RT_DEFAULT:0,RT_OBSOLETE:1,RT_WEEK:10,RT_MONTH:20,RT_5_WEEKS:21,RT_QUARTER:30,RT_HALF_A_YEAR:40,RT_YEAR:50,RT_16_MONTHS:58,RT_YEAR_AND_A_HALF:60,RT_2_YEARS:70,RT_3_YEARS:80,RT_ARCHIVAL:1E3};T.datapol.SemanticType={ST_NOT_SPECIFIED:0,ST_NOT_REQUIRED:999,ST_PSEUDONYMOUS_ID:1E3,ST_ZWIEBACK_ID:1001,ST_PREF_ID:1002,ST_BISCOTTI_ID:1003,ST_ANALYTICS_ID:1004,ST_MANDELBREAD_ID:1005,ST_ANDROID_LOGGING_ID2:1006,ST_ACSA_ID:1007,ST_HERREVAD_ID:1008,ST_IDENTIFYING_ID:1100,ST_EMAIL_ID:1102,ST_NAME:1103,ST_PHONE_NUMBER:1104,ST_GAIA_ID:1105,ST_USERNAME:1106,ST_GSERVICES_ANDROID_ID:1107,ST_ARES_ID:1108,ST_MEDICAL_RECORD_NUMBER:1109,ST_PAYMENTS_RISK_DATA:1110,ST_SPII_ID:1200,ST_GOVERNMENT_ID_NUMBER:1201,
ST_HEALTHCARE_INFO:1203,ST_SENSITIVE_BACKGROUND_INFO:1204,ST_CARDHOLDER_DATA:1202,ST_CHD_PAN:1211,ST_CHD_INFO:1212,ST_PAYMENTS_INFO:1220,ST_CRITICAL_PAYMENT_INFO:1221,ST_PAYMENT_ID:1222,ST_LIMITED_USE_PAYMENTS_INFO:1223,ST_PAYMENTS_INFERRED_REAL_IDENTITY:1224,ST_PAYMENTS_TRANSACTION_INFO:1240,ST_NETWORK_ENDPOINT:1300,ST_IP_ADDRESS:1301,ST_HARDWARE_ID:1400,ST_ANDROID_LOGGING_ID:1401,ST_SOFTWARE_ID:1500,ST_USER_AGENT:1501,ST_ANONYMOUS_DATA:1600,ST_DEMOGRAPHIC_INFO:1601,ST_LOCATION:1700,ST_PRECISE_LOCATION:1701,
ST_COARSE_LOCATION:1702,ST_GOOGLE_RELATIONSHIP_ID:1800,ST_CUSTOMER_ID:1801,ST_PARTNER_ID:1802,ST_PUBLISHER_ID:1803,ST_USER_CONTENT:1900,ST_USER_QUERY:1901,ST_THIRD_PARTY_DATA:2E3,ST_TIMESTAMP:2100,ST_SENSITIVE_TIMESTAMP:2101,ST_SESSION_ID:2300,ST_PERSONAL_DATA:2400,ST_AVOCADO_ID:2500,ST_SECURITY_MATERIAL:2600,ST_SECURITY_KEY:2601,ST_ACCOUNT_CREDENTIAL:2602,ST_PAYMENTS_PCI_SAD:2603,ST_CONTENT_DEPENDENT:9900,ST_DEBUG_INFO:9901,ST_KEY_VALUE_PAIR:9902,ST_KEY:9903,ST_VALUE:9904,ST_REFERER_URL:9905};T.moneta={};T.moneta.integrator={};T.moneta.integrator.common={};T.moneta.integrator.common.FundsGuaranteeId=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.FundsGuaranteeId,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.FundsGuaranteeId.prototype.toObject=function(a){return T.moneta.integrator.common.FundsGuaranteeId.toObject(a,this)},T.moneta.integrator.common.FundsGuaranteeId.toObject=function(a,b){var c,g={billableService:null==(c=D.Message.getField(b,1))?void 0:c,fundsGuaranteeRequestId:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.FundsGuaranteeId.ObjectFormat=function(){},T.moneta.integrator.common.FundsGuaranteeId.fromObject=function(a){var b=new T.moneta.integrator.common.FundsGuaranteeId;null!=a.billableService&&D.Message.setField(b,1,a.billableService);null!=a.fundsGuaranteeRequestId&&D.Message.setField(b,2,a.fundsGuaranteeRequestId);return b});
T.moneta.integrator.common.FundsGuaranteeId.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.FundsGuaranteeId;return T.moneta.integrator.common.FundsGuaranteeId.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.FundsGuaranteeId.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setBillableService(c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;default:I(b)}return a};
T.moneta.integrator.common.FundsGuaranteeId.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c)};T.moneta.integrator.common.FundsGuaranteeId.prototype.setBillableService=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.FundsGuaranteeId.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.FundsGuaranteeId,a)};T.moneta.integrator.common.ProductCorrelationId=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.ProductCorrelationId,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.ProductCorrelationId.prototype.toObject=function(a){return T.moneta.integrator.common.ProductCorrelationId.toObject(a,this)},T.moneta.integrator.common.ProductCorrelationId.toObject=function(a,b){var c,g={billableService:null==(c=D.Message.getField(b,1))?void 0:c,productAccountKey:null==(c=D.Message.getField(b,2))?void 0:c,productOrderLineKey:null==(c=D.Message.getField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.ProductCorrelationId.ObjectFormat=function(){},T.moneta.integrator.common.ProductCorrelationId.fromObject=function(a){var b=new T.moneta.integrator.common.ProductCorrelationId;null!=a.billableService&&D.Message.setField(b,1,a.billableService);null!=a.productAccountKey&&D.Message.setField(b,2,a.productAccountKey);null!=a.productOrderLineKey&&D.Message.setField(b,3,a.productOrderLineKey);return b});
T.moneta.integrator.common.ProductCorrelationId.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.ProductCorrelationId;return T.moneta.integrator.common.ProductCorrelationId.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.ProductCorrelationId.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setBillableService(c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;default:I(b)}return a};
T.moneta.integrator.common.ProductCorrelationId.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c)};T.moneta.integrator.common.ProductCorrelationId.prototype.setBillableService=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.ProductCorrelationId.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.ProductCorrelationId,a)};T.moneta.integrator.common.SubscriptionId=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.SubscriptionId,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.SubscriptionId.prototype.toObject=function(a){return T.moneta.integrator.common.SubscriptionId.toObject(a,this)},T.moneta.integrator.common.SubscriptionId.toObject=function(a,b){var c,g={billableService:null==(c=D.Message.getField(b,1))?void 0:c,requestId:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.SubscriptionId.ObjectFormat=function(){},T.moneta.integrator.common.SubscriptionId.fromObject=function(a){var b=new T.moneta.integrator.common.SubscriptionId;null!=a.billableService&&D.Message.setField(b,1,a.billableService);null!=a.requestId&&D.Message.setField(b,2,a.requestId);return b});
T.moneta.integrator.common.SubscriptionId.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.SubscriptionId;return T.moneta.integrator.common.SubscriptionId.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.SubscriptionId.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setBillableService(c);break;case 2:c=b.readString();a.setRequestId(c);break;default:I(b)}return a};
T.moneta.integrator.common.SubscriptionId.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c)};T.moneta.integrator.common.SubscriptionId.prototype.setBillableService=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.SubscriptionId.prototype.setRequestId=function(a){D.Message.setField(this,2,a)};
T.moneta.integrator.common.SubscriptionId.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.SubscriptionId,a)};T.moneta.integrator.callbacks={};T.moneta.integrator.callbacks.common={};T.moneta.integrator.callbacks.common.CallbackRequestHeader=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.callbacks.common.CallbackRequestHeader,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.callbacks.common.CallbackRequestHeader.prototype.toObject=function(a){return T.moneta.integrator.callbacks.common.CallbackRequestHeader.toObject(a,this)},T.moneta.integrator.callbacks.common.CallbackRequestHeader.toObject=function(a,b){var c,g={productCorrelationId:(c=b.getProductCorrelationId())&&T.moneta.integrator.common.ProductCorrelationId.toObject(a,c),fundsGuaranteeId:(c=b.getFundsGuaranteeId())&&T.moneta.integrator.common.FundsGuaranteeId.toObject(a,
c),subscriptionId:(c=b.getSubscriptionId())&&T.moneta.integrator.common.SubscriptionId.toObject(a,c),billingCustomerNumber:null==(c=D.Message.getField(b,6))?void 0:c,billableService:null==(c=D.Message.getField(b,4))?void 0:c,requestSequenceNumber:null==(c=D.Message.getField(b,2))?void 0:c,resourceForPermissionCheck:null==(c=D.Message.getField(b,5))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.callbacks.common.CallbackRequestHeader.ObjectFormat=function(){},T.moneta.integrator.callbacks.common.CallbackRequestHeader.fromObject=function(a){var b=new T.moneta.integrator.callbacks.common.CallbackRequestHeader;a.productCorrelationId&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.ProductCorrelationId.fromObject(a.productCorrelationId));a.fundsGuaranteeId&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.FundsGuaranteeId.fromObject(a.fundsGuaranteeId));
a.subscriptionId&&D.Message.setWrapperField(b,7,T.moneta.integrator.common.SubscriptionId.fromObject(a.subscriptionId));null!=a.billingCustomerNumber&&D.Message.setField(b,6,a.billingCustomerNumber);null!=a.billableService&&D.Message.setField(b,4,a.billableService);null!=a.requestSequenceNumber&&D.Message.setField(b,2,a.requestSequenceNumber);null!=a.resourceForPermissionCheck&&D.Message.setField(b,5,a.resourceForPermissionCheck);return b});
T.moneta.integrator.callbacks.common.CallbackRequestHeader.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.callbacks.common.CallbackRequestHeader;return T.moneta.integrator.callbacks.common.CallbackRequestHeader.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.callbacks.common.CallbackRequestHeader.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.ProductCorrelationId;b.readMessage(c,T.moneta.integrator.common.ProductCorrelationId.deserializeBinaryFromReader);a.setProductCorrelationId(c);break;case 3:c=new T.moneta.integrator.common.FundsGuaranteeId;b.readMessage(c,T.moneta.integrator.common.FundsGuaranteeId.deserializeBinaryFromReader);a.setFundsGuaranteeId(c);
break;case 7:c=new T.moneta.integrator.common.SubscriptionId;b.readMessage(c,T.moneta.integrator.common.SubscriptionId.deserializeBinaryFromReader);a.setSubscriptionId(c);break;case 6:c=b.readInt64();a.setBillingCustomerNumber(c);break;case 4:c=b.readInt32();a.setBillableService(c);break;case 2:c=b.readInt64();D.Message.setField(a,2,c);break;case 5:c=b.readString();D.Message.setField(a,5,c);break;default:I(b)}return a};
T.moneta.integrator.callbacks.common.CallbackRequestHeader.serializeBinaryToWriter=function(a,b){var c=a.getProductCorrelationId();null!=c&&N(b,1,c,T.moneta.integrator.common.ProductCorrelationId.serializeBinaryToWriter);c=a.getFundsGuaranteeId();null!=c&&N(b,3,c,T.moneta.integrator.common.FundsGuaranteeId.serializeBinaryToWriter);c=a.getSubscriptionId();null!=c&&N(b,7,c,T.moneta.integrator.common.SubscriptionId.serializeBinaryToWriter);c=D.Message.getField(a,6);null!=c&&b.writeInt64(6,c);c=D.Message.getField(a,
4);null!=c&&b.writeInt32(4,c);c=D.Message.getField(a,2);null!=c&&b.writeInt64(2,c);c=D.Message.getField(a,5);null!=c&&b.writeString(5,c)};d=T.moneta.integrator.callbacks.common.CallbackRequestHeader.prototype;d.getProductCorrelationId=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.ProductCorrelationId,1)};d.setProductCorrelationId=function(a){D.Message.setWrapperField(this,1,a)};
d.getFundsGuaranteeId=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.FundsGuaranteeId,3)};d.setFundsGuaranteeId=function(a){D.Message.setWrapperField(this,3,a)};d.getSubscriptionId=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.SubscriptionId,7)};d.setSubscriptionId=function(a){D.Message.setWrapperField(this,7,a)};d.setBillingCustomerNumber=function(a){D.Message.setField(this,6,a)};
d.setBillableService=function(a){D.Message.setField(this,4,a)};T.moneta.integrator.callbacks.common.CallbackRequestHeader.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.callbacks.common.CallbackRequestHeader,a)};T.moneta.integrator.common.PurchaseOrderId=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.PurchaseOrderId,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.PurchaseOrderId.prototype.toObject=function(a){return T.moneta.integrator.common.PurchaseOrderId.toObject(a,this)},T.moneta.integrator.common.PurchaseOrderId.toObject=function(a,b){var c,g={billableService:null==(c=D.Message.getField(b,1))?void 0:c,requestId:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.PurchaseOrderId.ObjectFormat=function(){},T.moneta.integrator.common.PurchaseOrderId.fromObject=function(a){var b=new T.moneta.integrator.common.PurchaseOrderId;null!=a.billableService&&D.Message.setField(b,1,a.billableService);null!=a.requestId&&D.Message.setField(b,2,a.requestId);return b});
T.moneta.integrator.common.PurchaseOrderId.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.PurchaseOrderId;return T.moneta.integrator.common.PurchaseOrderId.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.PurchaseOrderId.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setBillableService(c);break;case 2:c=b.readString();a.setRequestId(c);break;default:I(b)}return a};
T.moneta.integrator.common.PurchaseOrderId.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c)};T.moneta.integrator.common.PurchaseOrderId.prototype.setBillableService=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.PurchaseOrderId.prototype.setRequestId=function(a){D.Message.setField(this,2,a)};
T.moneta.integrator.common.PurchaseOrderId.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.PurchaseOrderId,a)};T.jspb={};T.jspb.DoNotUse={DO_NOT_USE_UNKNOWN:0};T.jspb.JsType={INT52:0,NUMBER:1,STRING:2,INTEGER:100};T.moneta.integrator.common.error={};T.moneta.integrator.common.error.ErrorDescription=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.error.ErrorDescription,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.error.ErrorDescription.prototype.toObject=function(a){return T.moneta.integrator.common.error.ErrorDescription.toObject(a,this)},T.moneta.integrator.common.error.ErrorDescription.toObject=function(a,b){var c,g={errorMessage:null==(c=D.Message.getField(b,1))?void 0:c,errorCode:null==(c=D.Message.getField(b,2))?void 0:c,helpCenterUrl:null==(c=D.Message.getField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.error.ErrorDescription.ObjectFormat=function(){},T.moneta.integrator.common.error.ErrorDescription.fromObject=function(a){var b=new T.moneta.integrator.common.error.ErrorDescription;null!=a.errorMessage&&D.Message.setField(b,1,a.errorMessage);null!=a.errorCode&&D.Message.setField(b,2,a.errorCode);null!=a.helpCenterUrl&&D.Message.setField(b,3,a.helpCenterUrl);return b});
T.moneta.integrator.common.error.ErrorDescription.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.error.ErrorDescription;return T.moneta.integrator.common.error.ErrorDescription.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.error.ErrorDescription.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setErrorMessage(c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;default:I(b)}return a};
T.moneta.integrator.common.error.ErrorDescription.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c)};T.moneta.integrator.common.error.ErrorDescription.prototype.setErrorMessage=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.error.ErrorDescription.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.error.ErrorDescription,a)};T.moneta.integrator.common.error.FieldError=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.error.FieldError,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.error.FieldError.prototype.toObject=function(a){return T.moneta.integrator.common.error.FieldError.toObject(a,this)},T.moneta.integrator.common.error.FieldError.toObject=function(a,b){var c,g={id:null==(c=D.Message.getField(b,1))?void 0:c,error:(c=b.getError())&&T.moneta.integrator.common.error.ErrorDescription.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.error.FieldError.ObjectFormat=function(){},T.moneta.integrator.common.error.FieldError.fromObject=function(a){var b=new T.moneta.integrator.common.error.FieldError;null!=a.id&&D.Message.setField(b,1,a.id);a.error&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.error.ErrorDescription.fromObject(a.error));return b});
T.moneta.integrator.common.error.FieldError.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.error.FieldError;return T.moneta.integrator.common.error.FieldError.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.error.FieldError.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setId(c);break;case 2:c=new T.moneta.integrator.common.error.ErrorDescription;b.readMessage(c,T.moneta.integrator.common.error.ErrorDescription.deserializeBinaryFromReader);a.setError(c);break;default:I(b)}return a};
T.moneta.integrator.common.error.FieldError.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=a.getError();null!=c&&N(b,2,c,T.moneta.integrator.common.error.ErrorDescription.serializeBinaryToWriter)};T.moneta.integrator.common.error.FieldError.prototype.setId=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.error.FieldError.prototype.getError=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.error.ErrorDescription,2)};T.moneta.integrator.common.error.FieldError.prototype.setError=function(a){D.Message.setWrapperField(this,2,a)};T.moneta.integrator.common.error.FieldError.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.error.FieldError,a)};T.html={};T.html.CustomSafeUrlScheme={TEL:0,SMS:1,CALLTO:2,WTAI:3,RTSP:4,MARKET:5,GEO:6,SKYPE:7,WHATSAPP:8,ITMS_BOOKS:9,GLASS:10,ITMS_APPS:11,GOOGLEASSISTANT:12,ASSISTANT_SETTINGS:13,SSH:14,INTENT:15};T.html.SafeHtmlProto=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.html.SafeHtmlProto,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.html.SafeHtmlProto.prototype.toObject=function(a){return T.html.SafeHtmlProto.toObject(a,this)},T.html.SafeHtmlProto.toObject=function(a,b){var c,g={privateDoNotAccessOrElseSafeHtmlWrappedValue:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.html.SafeHtmlProto.ObjectFormat=function(){},T.html.SafeHtmlProto.fromObject=function(a){var b=new T.html.SafeHtmlProto;null!=a.privateDoNotAccessOrElseSafeHtmlWrappedValue&&D.Message.setField(b,2,a.privateDoNotAccessOrElseSafeHtmlWrappedValue);return b});T.html.SafeHtmlProto.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.html.SafeHtmlProto;return T.html.SafeHtmlProto.deserializeBinaryFromReader(b,a)};
T.html.SafeHtmlProto.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 2:var c=b.readString();D.Message.setField(a,2,c);break;default:I(b)}return a};T.html.SafeHtmlProto.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,2);null!=a&&b.writeString(2,a)};T.html.SafeHtmlProto.deserialize=function(a){return D.Message.deserializeWithCtor(T.html.SafeHtmlProto,a)};T.html.SafeScriptProto=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.html.SafeScriptProto,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.html.SafeScriptProto.prototype.toObject=function(a){return T.html.SafeScriptProto.toObject(a,this)},T.html.SafeScriptProto.toObject=function(a,b){var c,g={privateDoNotAccessOrElseSafeScriptWrappedValue:null==(c=D.Message.getField(b,6))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.html.SafeScriptProto.ObjectFormat=function(){},T.html.SafeScriptProto.fromObject=function(a){var b=new T.html.SafeScriptProto;null!=a.privateDoNotAccessOrElseSafeScriptWrappedValue&&D.Message.setField(b,6,a.privateDoNotAccessOrElseSafeScriptWrappedValue);return b});T.html.SafeScriptProto.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.html.SafeScriptProto;return T.html.SafeScriptProto.deserializeBinaryFromReader(b,a)};
T.html.SafeScriptProto.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 6:var c=b.readString();D.Message.setField(a,6,c);break;default:I(b)}return a};T.html.SafeScriptProto.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,6);null!=a&&b.writeString(6,a)};T.html.SafeScriptProto.deserialize=function(a){return D.Message.deserializeWithCtor(T.html.SafeScriptProto,a)};T.html.SafeStyleProto=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.html.SafeStyleProto,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.html.SafeStyleProto.prototype.toObject=function(a){return T.html.SafeStyleProto.toObject(a,this)},T.html.SafeStyleProto.toObject=function(a,b){var c,g={privateDoNotAccessOrElseSafeStyleWrappedValue:null==(c=D.Message.getField(b,5))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.html.SafeStyleProto.ObjectFormat=function(){},T.html.SafeStyleProto.fromObject=function(a){var b=new T.html.SafeStyleProto;null!=a.privateDoNotAccessOrElseSafeStyleWrappedValue&&D.Message.setField(b,5,a.privateDoNotAccessOrElseSafeStyleWrappedValue);return b});T.html.SafeStyleProto.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.html.SafeStyleProto;return T.html.SafeStyleProto.deserializeBinaryFromReader(b,a)};
T.html.SafeStyleProto.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 5:var c=b.readString();D.Message.setField(a,5,c);break;default:I(b)}return a};T.html.SafeStyleProto.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,5);null!=a&&b.writeString(5,a)};T.html.SafeStyleProto.deserialize=function(a){return D.Message.deserializeWithCtor(T.html.SafeStyleProto,a)};T.html.SafeStyleSheetProto=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.html.SafeStyleSheetProto,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.html.SafeStyleSheetProto.prototype.toObject=function(a){return T.html.SafeStyleSheetProto.toObject(a,this)},T.html.SafeStyleSheetProto.toObject=function(a,b){var c,g={privateDoNotAccessOrElseSafeStyleSheetWrappedValue:null==(c=D.Message.getField(b,7))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.html.SafeStyleSheetProto.ObjectFormat=function(){},T.html.SafeStyleSheetProto.fromObject=function(a){var b=new T.html.SafeStyleSheetProto;null!=a.privateDoNotAccessOrElseSafeStyleSheetWrappedValue&&D.Message.setField(b,7,a.privateDoNotAccessOrElseSafeStyleSheetWrappedValue);return b});
T.html.SafeStyleSheetProto.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.html.SafeStyleSheetProto;return T.html.SafeStyleSheetProto.deserializeBinaryFromReader(b,a)};T.html.SafeStyleSheetProto.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 7:var c=b.readString();D.Message.setField(a,7,c);break;default:I(b)}return a};T.html.SafeStyleSheetProto.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,7);null!=a&&b.writeString(7,a)};
T.html.SafeStyleSheetProto.deserialize=function(a){return D.Message.deserializeWithCtor(T.html.SafeStyleSheetProto,a)};T.html.SafeUrlProto=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.html.SafeUrlProto,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.html.SafeUrlProto.prototype.toObject=function(a){return T.html.SafeUrlProto.toObject(a,this)},T.html.SafeUrlProto.toObject=function(a,b){var c,g={privateDoNotAccessOrElseSafeUrlWrappedValue:null==(c=D.Message.getField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.html.SafeUrlProto.ObjectFormat=function(){},T.html.SafeUrlProto.fromObject=function(a){var b=new T.html.SafeUrlProto;null!=a.privateDoNotAccessOrElseSafeUrlWrappedValue&&D.Message.setField(b,3,a.privateDoNotAccessOrElseSafeUrlWrappedValue);return b});T.html.SafeUrlProto.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.html.SafeUrlProto;return T.html.SafeUrlProto.deserializeBinaryFromReader(b,a)};
T.html.SafeUrlProto.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 3:var c=b.readString();D.Message.setField(a,3,c);break;default:I(b)}return a};T.html.SafeUrlProto.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,3);null!=a&&b.writeString(3,a)};T.html.SafeUrlProto.deserialize=function(a){return D.Message.deserializeWithCtor(T.html.SafeUrlProto,a)};T.html.SpliceableSafeHtmlProto=function(a){D.Message.initialize(this,a,0,-1,T.html.SpliceableSafeHtmlProto.repeatedFields_,null)};f.inherits(T.html.SpliceableSafeHtmlProto,D.Message);T.html.SpliceableSafeHtmlProto.Segment=function(a){D.Message.initialize(this,a,0,-1,null,T.html.SpliceableSafeHtmlProto.Segment.oneofGroups_)};f.inherits(T.html.SpliceableSafeHtmlProto.Segment,D.Message);T.html.SpliceableSafeHtmlProto.repeatedFields_=[1];
D.Message.GENERATE_TO_OBJECT&&(T.html.SpliceableSafeHtmlProto.prototype.toObject=function(a){return T.html.SpliceableSafeHtmlProto.toObject(a,this)},T.html.SpliceableSafeHtmlProto.toObject=function(a,b){var c={segmentList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.html.SpliceableSafeHtmlProto.Segment,1),T.html.SpliceableSafeHtmlProto.Segment.toObject,a)};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.html.SpliceableSafeHtmlProto.ObjectFormat=function(){},T.html.SpliceableSafeHtmlProto.fromObject=function(a){var b=new T.html.SpliceableSafeHtmlProto;a.segmentList&&D.Message.setRepeatedWrapperField(b,1,a.segmentList.map(T.html.SpliceableSafeHtmlProto.Segment.fromObject));return b});
T.html.SpliceableSafeHtmlProto.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.html.SpliceableSafeHtmlProto;return T.html.SpliceableSafeHtmlProto.deserializeBinaryFromReader(b,a)};
T.html.SpliceableSafeHtmlProto.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.html.SpliceableSafeHtmlProto.Segment;b.readMessage(c,T.html.SpliceableSafeHtmlProto.Segment.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,1,c,T.html.SpliceableSafeHtmlProto.Segment,void 0);break;default:I(b)}return a};
T.html.SpliceableSafeHtmlProto.serializeBinaryToWriter=function(a,b){a=D.Message.getRepeatedWrapperField(a,T.html.SpliceableSafeHtmlProto.Segment,1);0<a.length&&P(b,1,a,T.html.SpliceableSafeHtmlProto.Segment.serializeBinaryToWriter)};T.html.SpliceableSafeHtmlProto.Segment.oneofGroups_=[[2,1]];T.html.SpliceableSafeHtmlProto.Segment.ValueCase={VALUE_NOT_SET:0,SAFE_HTML:2,PLACEHOLDER_LABEL:1};
D.Message.GENERATE_TO_OBJECT&&(T.html.SpliceableSafeHtmlProto.Segment.prototype.toObject=function(a){return T.html.SpliceableSafeHtmlProto.Segment.toObject(a,this)},T.html.SpliceableSafeHtmlProto.Segment.toObject=function(a,b){var c,g={safeHtml:(c=D.Message.getWrapperField(b,T.html.SafeHtmlProto,2))&&T.html.SafeHtmlProto.toObject(a,c),placeholderLabel:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.html.SpliceableSafeHtmlProto.Segment.ObjectFormat=function(){},T.html.SpliceableSafeHtmlProto.Segment.fromObject=function(a){var b=new T.html.SpliceableSafeHtmlProto.Segment;a.safeHtml&&D.Message.setWrapperField(b,2,T.html.SafeHtmlProto.fromObject(a.safeHtml));null!=a.placeholderLabel&&D.Message.setField(b,1,a.placeholderLabel);return b});
T.html.SpliceableSafeHtmlProto.Segment.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.html.SpliceableSafeHtmlProto.Segment;return T.html.SpliceableSafeHtmlProto.Segment.deserializeBinaryFromReader(b,a)};
T.html.SpliceableSafeHtmlProto.Segment.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 2:var c=new T.html.SafeHtmlProto;b.readMessage(c,T.html.SafeHtmlProto.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,2,T.html.SpliceableSafeHtmlProto.Segment.oneofGroups_[0],c);break;case 1:c=b.readString();D.Message.setOneofField(a,1,T.html.SpliceableSafeHtmlProto.Segment.oneofGroups_[0],c);break;default:I(b)}return a};
T.html.SpliceableSafeHtmlProto.Segment.serializeBinaryToWriter=function(a,b){var c=D.Message.getWrapperField(a,T.html.SafeHtmlProto,2);null!=c&&N(b,2,c,T.html.SafeHtmlProto.serializeBinaryToWriter);c=D.Message.getField(a,1);null!=c&&b.writeString(1,c)};T.html.SpliceableSafeHtmlProto.Segment.deserialize=function(a){return D.Message.deserializeWithCtor(T.html.SpliceableSafeHtmlProto.Segment,a)};
T.html.SpliceableSafeHtmlProto.deserialize=function(a){return D.Message.deserializeWithCtor(T.html.SpliceableSafeHtmlProto,a)};T.html.TrustedResourceUrlProto=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.html.TrustedResourceUrlProto,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.html.TrustedResourceUrlProto.prototype.toObject=function(a){return T.html.TrustedResourceUrlProto.toObject(a,this)},T.html.TrustedResourceUrlProto.toObject=function(a,b){var c,g={privateDoNotAccessOrElseTrustedResourceUrlWrappedValue:null==(c=D.Message.getField(b,4))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.html.TrustedResourceUrlProto.ObjectFormat=function(){},T.html.TrustedResourceUrlProto.fromObject=function(a){var b=new T.html.TrustedResourceUrlProto;null!=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue&&D.Message.setField(b,4,a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue);return b});
T.html.TrustedResourceUrlProto.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.html.TrustedResourceUrlProto;return T.html.TrustedResourceUrlProto.deserializeBinaryFromReader(b,a)};T.html.TrustedResourceUrlProto.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 4:var c=b.readString();D.Message.setField(a,4,c);break;default:I(b)}return a};
T.html.TrustedResourceUrlProto.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,4);null!=a&&b.writeString(4,a)};T.html.TrustedResourceUrlProto.deserialize=function(a){return D.Message.deserializeWithCtor(T.html.TrustedResourceUrlProto,a)};T.moneta.integrator.common.buyflow={};T.moneta.integrator.common.buyflow.Action=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.buyflow.Action,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.Action.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.Action.toObject(a,this)},T.moneta.integrator.common.buyflow.Action.toObject=function(a,b){var c,g={id:null==(c=D.Message.getField(b,1))?void 0:c,buttonText:null==(c=D.Message.getField(b,2))?void 0:c,displayType:null==(c=D.Message.getField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.Action.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.Action.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.Action;null!=a.id&&D.Message.setField(b,1,a.id);null!=a.buttonText&&D.Message.setField(b,2,a.buttonText);null!=a.displayType&&D.Message.setField(b,3,a.displayType);return b});
T.moneta.integrator.common.buyflow.Action.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.Action;return T.moneta.integrator.common.buyflow.Action.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.buyflow.Action.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setId(c);break;case 2:c=b.readString();a.setButtonText(c);break;case 3:c=b.readEnum();a.setDisplayType(c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.Action.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeEnum(3,c)};T.moneta.integrator.common.buyflow.Action.prototype.setId=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.buyflow.Action.prototype.setButtonText=function(a){D.Message.setField(this,2,a)};
T.moneta.integrator.common.buyflow.Action.prototype.setDisplayType=function(a){D.Message.setField(this,3,a)};T.moneta.integrator.common.buyflow.Action.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.Action,a)};T.moneta.integrator.common.buyflow.CustomFieldValidation=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.buyflow.CustomFieldValidation.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.buyflow.CustomFieldValidation,D.Message);T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex,D.Message);
T.moneta.integrator.common.buyflow.CustomFieldValidation.repeatedFields_=[3];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.CustomFieldValidation.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.CustomFieldValidation.toObject(a,this)},T.moneta.integrator.common.buyflow.CustomFieldValidation.toObject=function(a,b){var c,g={minLength:null==(c=D.Message.getField(b,1))?void 0:c,maxLength:null==(c=D.Message.getField(b,2))?void 0:c,validationRegexList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex,
3),T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex.toObject,a)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.CustomFieldValidation.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.CustomFieldValidation.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.CustomFieldValidation;null!=a.minLength&&D.Message.setField(b,1,a.minLength);null!=a.maxLength&&D.Message.setField(b,2,a.maxLength);a.validationRegexList&&D.Message.setRepeatedWrapperField(b,3,a.validationRegexList.map(T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex.fromObject));
return b});T.moneta.integrator.common.buyflow.CustomFieldValidation.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.CustomFieldValidation;return T.moneta.integrator.common.buyflow.CustomFieldValidation.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.CustomFieldValidation.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();D.Message.setField(a,1,c);break;case 2:c=b.readInt32();D.Message.setField(a,2,c);break;case 3:c=new T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex;b.readMessage(c,T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,3,c,T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex,
void 0);break;default:I(b)}return a};T.moneta.integrator.common.buyflow.CustomFieldValidation.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=D.Message.getField(a,2);null!=c&&b.writeInt32(2,c);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex,3);0<c.length&&P(b,3,c,T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex.serializeBinaryToWriter)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex.toObject(a,this)},T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex.toObject=function(a,b){var c,g={regex:null==(c=D.Message.getField(b,1))?void 0:c,error:(c=b.getError())&&T.moneta.integrator.common.error.ErrorDescription.toObject(a,c)};a&&(g.$jspbMessageInstance=
b);return g});D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex;null!=a.regex&&D.Message.setField(b,1,a.regex);a.error&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.error.ErrorDescription.fromObject(a.error));return b});
T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex;return T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=new T.moneta.integrator.common.error.ErrorDescription;b.readMessage(c,T.moneta.integrator.common.error.ErrorDescription.deserializeBinaryFromReader);a.setError(c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=a.getError();null!=c&&N(b,2,c,T.moneta.integrator.common.error.ErrorDescription.serializeBinaryToWriter)};T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex.prototype.getError=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.error.ErrorDescription,2)};
T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex.prototype.setError=function(a){D.Message.setWrapperField(this,2,a)};T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.CustomFieldValidation.ValidationRegex,a)};
T.moneta.integrator.common.buyflow.CustomFieldValidation.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.CustomFieldValidation,a)};T.moneta.integrator.common.buyflow.CustomField=function(a){D.Message.initialize(this,a,0,-1,null,T.moneta.integrator.common.buyflow.CustomField.oneofGroups_)};f.inherits(T.moneta.integrator.common.buyflow.CustomField,D.Message);T.moneta.integrator.common.buyflow.CustomField.TextInputField=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.buyflow.CustomField.TextInputField,D.Message);
T.moneta.integrator.common.buyflow.CustomField.ClearableField=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.buyflow.CustomField.ClearableField,D.Message);T.moneta.integrator.common.buyflow.CustomField.FixedField=function(a){D.Message.initialize(this,a,0,-1,null,T.moneta.integrator.common.buyflow.CustomField.FixedField.oneofGroups_)};f.inherits(T.moneta.integrator.common.buyflow.CustomField.FixedField,D.Message);
T.moneta.integrator.common.buyflow.CustomField.CheckboxField=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.buyflow.CustomField.CheckboxField,D.Message);T.moneta.integrator.common.buyflow.CustomField.oneofGroups_=[[6,7,8,9]];T.moneta.integrator.common.buyflow.CustomField.FieldCase={FIELD_NOT_SET:0,TEXT_INPUT_FIELD:6,CLEARABLE_FIELD:7,FIXED_FIELD:8,CHECKBOX_FIELD:9};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.CustomField.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.CustomField.toObject(a,this)},T.moneta.integrator.common.buyflow.CustomField.toObject=function(a,b){var c,g={id:null==(c=D.Message.getField(b,1))?void 0:c,label:null==(c=D.Message.getField(b,2))?void 0:c,fieldDescription:null==(c=D.Message.getField(b,3))?void 0:c,validation:(c=b.getValidation())&&T.moneta.integrator.common.buyflow.CustomFieldValidation.toObject(a,
c),textInputField:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.buyflow.CustomField.TextInputField,6))&&T.moneta.integrator.common.buyflow.CustomField.TextInputField.toObject(a,c),clearableField:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.buyflow.CustomField.ClearableField,7))&&T.moneta.integrator.common.buyflow.CustomField.ClearableField.toObject(a,c),fixedField:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.buyflow.CustomField.FixedField,8))&&T.moneta.integrator.common.buyflow.CustomField.FixedField.toObject(a,
c),checkboxField:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.buyflow.CustomField.CheckboxField,9))&&T.moneta.integrator.common.buyflow.CustomField.CheckboxField.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.CustomField.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.CustomField.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.CustomField;null!=a.id&&D.Message.setField(b,1,a.id);null!=a.label&&D.Message.setField(b,2,a.label);null!=a.fieldDescription&&D.Message.setField(b,3,a.fieldDescription);a.validation&&D.Message.setWrapperField(b,5,T.moneta.integrator.common.buyflow.CustomFieldValidation.fromObject(a.validation));
a.textInputField&&D.Message.setWrapperField(b,6,T.moneta.integrator.common.buyflow.CustomField.TextInputField.fromObject(a.textInputField));a.clearableField&&D.Message.setWrapperField(b,7,T.moneta.integrator.common.buyflow.CustomField.ClearableField.fromObject(a.clearableField));a.fixedField&&D.Message.setWrapperField(b,8,T.moneta.integrator.common.buyflow.CustomField.FixedField.fromObject(a.fixedField));a.checkboxField&&D.Message.setWrapperField(b,9,T.moneta.integrator.common.buyflow.CustomField.CheckboxField.fromObject(a.checkboxField));
return b});T.moneta.integrator.common.buyflow.CustomField.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.CustomField;return T.moneta.integrator.common.buyflow.CustomField.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.CustomField.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setId(c);break;case 2:c=b.readString();a.setLabel(c);break;case 3:c=b.readString();a.setFieldDescription(c);break;case 5:c=new T.moneta.integrator.common.buyflow.CustomFieldValidation;b.readMessage(c,T.moneta.integrator.common.buyflow.CustomFieldValidation.deserializeBinaryFromReader);a.setValidation(c);break;case 6:c=new T.moneta.integrator.common.buyflow.CustomField.TextInputField;
b.readMessage(c,T.moneta.integrator.common.buyflow.CustomField.TextInputField.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,6,T.moneta.integrator.common.buyflow.CustomField.oneofGroups_[0],c);break;case 7:c=new T.moneta.integrator.common.buyflow.CustomField.ClearableField;b.readMessage(c,T.moneta.integrator.common.buyflow.CustomField.ClearableField.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,7,T.moneta.integrator.common.buyflow.CustomField.oneofGroups_[0],c);break;
case 8:c=new T.moneta.integrator.common.buyflow.CustomField.FixedField;b.readMessage(c,T.moneta.integrator.common.buyflow.CustomField.FixedField.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,8,T.moneta.integrator.common.buyflow.CustomField.oneofGroups_[0],c);break;case 9:c=new T.moneta.integrator.common.buyflow.CustomField.CheckboxField;b.readMessage(c,T.moneta.integrator.common.buyflow.CustomField.CheckboxField.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,9,T.moneta.integrator.common.buyflow.CustomField.oneofGroups_[0],
c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.CustomField.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=a.getValidation();null!=c&&N(b,5,c,T.moneta.integrator.common.buyflow.CustomFieldValidation.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.buyflow.CustomField.TextInputField,6);null!=c&&N(b,6,c,T.moneta.integrator.common.buyflow.CustomField.TextInputField.serializeBinaryToWriter);
c=D.Message.getWrapperField(a,T.moneta.integrator.common.buyflow.CustomField.ClearableField,7);null!=c&&N(b,7,c,T.moneta.integrator.common.buyflow.CustomField.ClearableField.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.buyflow.CustomField.FixedField,8);null!=c&&N(b,8,c,T.moneta.integrator.common.buyflow.CustomField.FixedField.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.buyflow.CustomField.CheckboxField,9);null!=c&&N(b,9,c,
T.moneta.integrator.common.buyflow.CustomField.CheckboxField.serializeBinaryToWriter)};T.moneta.integrator.common.buyflow.CustomField.FixedFieldDisplayType={UNKNOWN:0,DEFAULT:1,WITH_TOP_BOTTOM_BORDER:2,INFO:3,QUOTE:4};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.CustomField.TextInputField.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.CustomField.TextInputField.toObject(a,this)},T.moneta.integrator.common.buyflow.CustomField.TextInputField.toObject=function(a,b){var c,g={label:null==(c=D.Message.getField(b,1))?void 0:c,fieldDescription:null==(c=D.Message.getField(b,2))?void 0:c,validation:(c=b.getValidation())&&T.moneta.integrator.common.buyflow.CustomFieldValidation.toObject(a,
c),buttonText:null==(c=D.Message.getField(b,4))?void 0:c,buttonDisplayType:null==(c=D.Message.getField(b,5))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.CustomField.TextInputField.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.CustomField.TextInputField.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.CustomField.TextInputField;null!=a.label&&D.Message.setField(b,1,a.label);null!=a.fieldDescription&&D.Message.setField(b,2,a.fieldDescription);a.validation&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.buyflow.CustomFieldValidation.fromObject(a.validation));
null!=a.buttonText&&D.Message.setField(b,4,a.buttonText);null!=a.buttonDisplayType&&D.Message.setField(b,5,a.buttonDisplayType);return b});T.moneta.integrator.common.buyflow.CustomField.TextInputField.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.CustomField.TextInputField;return T.moneta.integrator.common.buyflow.CustomField.TextInputField.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.CustomField.TextInputField.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setLabel(c);break;case 2:c=b.readString();a.setFieldDescription(c);break;case 3:c=new T.moneta.integrator.common.buyflow.CustomFieldValidation;b.readMessage(c,T.moneta.integrator.common.buyflow.CustomFieldValidation.deserializeBinaryFromReader);a.setValidation(c);break;case 4:c=b.readString();a.setButtonText(c);break;case 5:c=
b.readEnum();a.setButtonDisplayType(c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.CustomField.TextInputField.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=a.getValidation();null!=c&&N(b,3,c,T.moneta.integrator.common.buyflow.CustomFieldValidation.serializeBinaryToWriter);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getField(a,5);null!=c&&b.writeEnum(5,c)};d=T.moneta.integrator.common.buyflow.CustomField.TextInputField.prototype;
d.setLabel=function(a){D.Message.setField(this,1,a)};d.setFieldDescription=function(a){D.Message.setField(this,2,a)};d.getValidation=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.buyflow.CustomFieldValidation,3)};d.setValidation=function(a){D.Message.setWrapperField(this,3,a)};d.setButtonText=function(a){D.Message.setField(this,4,a)};d.setButtonDisplayType=function(a){D.Message.setField(this,5,a)};
T.moneta.integrator.common.buyflow.CustomField.TextInputField.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.CustomField.TextInputField,a)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.CustomField.ClearableField.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.CustomField.ClearableField.toObject(a,this)},T.moneta.integrator.common.buyflow.CustomField.ClearableField.toObject=function(a,b){var c,g={fieldDescription:null==(c=D.Message.getField(b,1))?void 0:c,buttonText:null==(c=D.Message.getField(b,2))?void 0:c,buttonDisplayType:null==(c=D.Message.getField(b,3))?void 0:c,deleteAccessibilityLabel:null==
(c=D.Message.getField(b,4))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.CustomField.ClearableField.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.CustomField.ClearableField.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.CustomField.ClearableField;null!=a.fieldDescription&&D.Message.setField(b,1,a.fieldDescription);null!=a.buttonText&&D.Message.setField(b,2,a.buttonText);null!=a.buttonDisplayType&&D.Message.setField(b,3,a.buttonDisplayType);null!=a.deleteAccessibilityLabel&&
D.Message.setField(b,4,a.deleteAccessibilityLabel);return b});T.moneta.integrator.common.buyflow.CustomField.ClearableField.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.CustomField.ClearableField;return T.moneta.integrator.common.buyflow.CustomField.ClearableField.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.CustomField.ClearableField.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setFieldDescription(c);break;case 2:c=b.readString();a.setButtonText(c);break;case 3:c=b.readEnum();a.setButtonDisplayType(c);break;case 4:c=b.readString();D.Message.setField(a,4,c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.CustomField.ClearableField.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeEnum(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c)};T.moneta.integrator.common.buyflow.CustomField.ClearableField.prototype.setFieldDescription=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.buyflow.CustomField.ClearableField.prototype.setButtonText=function(a){D.Message.setField(this,2,a)};T.moneta.integrator.common.buyflow.CustomField.ClearableField.prototype.setButtonDisplayType=function(a){D.Message.setField(this,3,a)};T.moneta.integrator.common.buyflow.CustomField.ClearableField.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.CustomField.ClearableField,a)};
T.moneta.integrator.common.buyflow.CustomField.FixedField.oneofGroups_=[[1,2],[4,5]];T.moneta.integrator.common.buyflow.CustomField.FixedField.DetailMessageCase={DETAIL_MESSAGE_NOT_SET:0,FIELD_DESCRIPTION:1,FIELD_DESCRIPTION_HTML:2};T.moneta.integrator.common.buyflow.CustomField.FixedField.WidthCase={WIDTH_NOT_SET:0,WIDTH_IN_PIXELS:4,WIDTH_IN_RELATIVE_PERCENT:5};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.CustomField.FixedField.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.CustomField.FixedField.toObject(a,this)},T.moneta.integrator.common.buyflow.CustomField.FixedField.toObject=function(a,b){var c,g={fieldDescription:null==(c=D.Message.getField(b,1))?void 0:c,fieldDescriptionHtml:(c=Ea(b))&&T.html.SafeHtmlProto.toObject(a,c),displayType:D.Message.getFieldWithDefault(b,3,1),widthInPixels:null==(c=D.Message.getField(b,
4))?void 0:c,widthInRelativePercent:null==(c=D.Message.getField(b,5))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.CustomField.FixedField.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.CustomField.FixedField.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.CustomField.FixedField;null!=a.fieldDescription&&D.Message.setField(b,1,a.fieldDescription);a.fieldDescriptionHtml&&D.Message.setWrapperField(b,2,T.html.SafeHtmlProto.fromObject(a.fieldDescriptionHtml));null!=a.displayType&&D.Message.setField(b,3,a.displayType);
null!=a.widthInPixels&&D.Message.setField(b,4,a.widthInPixels);null!=a.widthInRelativePercent&&D.Message.setField(b,5,a.widthInRelativePercent);return b});T.moneta.integrator.common.buyflow.CustomField.FixedField.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.CustomField.FixedField;return T.moneta.integrator.common.buyflow.CustomField.FixedField.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.CustomField.FixedField.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setFieldDescription(c);break;case 2:c=new T.html.SafeHtmlProto;b.readMessage(c,T.html.SafeHtmlProto.deserializeBinaryFromReader);a.setFieldDescriptionHtml(c);break;case 3:c=b.readEnum();a.setDisplayType(c);break;case 4:c=b.readInt32();D.Message.setOneofField(a,4,T.moneta.integrator.common.buyflow.CustomField.FixedField.oneofGroups_[1],
c);break;case 5:c=b.readInt32();D.Message.setOneofField(a,5,T.moneta.integrator.common.buyflow.CustomField.FixedField.oneofGroups_[1],c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.CustomField.FixedField.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=Ea(a);null!=c&&N(b,2,c,T.html.SafeHtmlProto.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeEnum(3,c);c=D.Message.getField(a,4);null!=c&&b.writeInt32(4,c);c=D.Message.getField(a,5);null!=c&&b.writeInt32(5,c)};
T.moneta.integrator.common.buyflow.CustomField.FixedField.prototype.setFieldDescription=function(a){D.Message.setOneofField(this,1,T.moneta.integrator.common.buyflow.CustomField.FixedField.oneofGroups_[0],a)};var Ea=function(a){return D.Message.getWrapperField(a,T.html.SafeHtmlProto,2)};
T.moneta.integrator.common.buyflow.CustomField.FixedField.prototype.setFieldDescriptionHtml=function(a){D.Message.setOneofWrapperField(this,2,T.moneta.integrator.common.buyflow.CustomField.FixedField.oneofGroups_[0],a)};T.moneta.integrator.common.buyflow.CustomField.FixedField.prototype.setDisplayType=function(a){D.Message.setField(this,3,a)};
T.moneta.integrator.common.buyflow.CustomField.FixedField.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.CustomField.FixedField,a)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.CustomField.CheckboxField.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.CustomField.CheckboxField.toObject(a,this)},T.moneta.integrator.common.buyflow.CustomField.CheckboxField.toObject=function(a,b){var c,g={initiallyChecked:null==(c=D.Message.getBooleanField(b,1))?void 0:c,fieldDescriptionHtml:(c=Ea(b))&&T.html.SafeHtmlProto.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.CustomField.CheckboxField.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.CustomField.CheckboxField.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.CustomField.CheckboxField;null!=a.initiallyChecked&&D.Message.setField(b,1,a.initiallyChecked);a.fieldDescriptionHtml&&D.Message.setWrapperField(b,2,T.html.SafeHtmlProto.fromObject(a.fieldDescriptionHtml));return b});
T.moneta.integrator.common.buyflow.CustomField.CheckboxField.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.CustomField.CheckboxField;return T.moneta.integrator.common.buyflow.CustomField.CheckboxField.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.CustomField.CheckboxField.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readBool();D.Message.setField(a,1,c);break;case 2:c=new T.html.SafeHtmlProto;b.readMessage(c,T.html.SafeHtmlProto.deserializeBinaryFromReader);a.setFieldDescriptionHtml(c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.CustomField.CheckboxField.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeBool(1,c);c=Ea(a);null!=c&&N(b,2,c,T.html.SafeHtmlProto.serializeBinaryToWriter)};T.moneta.integrator.common.buyflow.CustomField.CheckboxField.prototype.setFieldDescriptionHtml=function(a){D.Message.setWrapperField(this,2,a)};
T.moneta.integrator.common.buyflow.CustomField.CheckboxField.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.CustomField.CheckboxField,a)};d=T.moneta.integrator.common.buyflow.CustomField.prototype;d.setId=function(a){D.Message.setField(this,1,a)};d.setLabel=function(a){D.Message.setField(this,2,a)};d.setFieldDescription=function(a){D.Message.setField(this,3,a)};
d.getValidation=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.buyflow.CustomFieldValidation,5)};d.setValidation=function(a){D.Message.setWrapperField(this,5,a)};T.moneta.integrator.common.buyflow.CustomField.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.CustomField,a)};T.moneta.integrator.common.buyflow.CustomFieldValue=function(a){D.Message.initialize(this,a,0,-1,null,T.moneta.integrator.common.buyflow.CustomFieldValue.oneofGroups_)};f.inherits(T.moneta.integrator.common.buyflow.CustomFieldValue,D.Message);T.moneta.integrator.common.buyflow.CustomFieldValue.oneofGroups_=[[2,3]];T.moneta.integrator.common.buyflow.CustomFieldValue.FieldValueCase={FIELD_VALUE_NOT_SET:0,VALUE:2,BOOLEAN_VALUE:3};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.CustomFieldValue.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.CustomFieldValue.toObject(a,this)},T.moneta.integrator.common.buyflow.CustomFieldValue.toObject=function(a,b){var c,g={id:null==(c=D.Message.getField(b,1))?void 0:c,value:null==(c=D.Message.getField(b,2))?void 0:c,booleanValue:null==(c=D.Message.getBooleanField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.CustomFieldValue.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.CustomFieldValue.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.CustomFieldValue;null!=a.id&&D.Message.setField(b,1,a.id);null!=a.value&&D.Message.setField(b,2,a.value);null!=a.booleanValue&&D.Message.setField(b,3,a.booleanValue);return b});
T.moneta.integrator.common.buyflow.CustomFieldValue.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.CustomFieldValue;return T.moneta.integrator.common.buyflow.CustomFieldValue.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.CustomFieldValue.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setId(c);break;case 2:c=b.readString();a.setValue(c);break;case 3:c=b.readBool();D.Message.setOneofField(a,3,T.moneta.integrator.common.buyflow.CustomFieldValue.oneofGroups_[0],c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.CustomFieldValue.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeBool(3,c)};T.moneta.integrator.common.buyflow.CustomFieldValue.prototype.setId=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.buyflow.CustomFieldValue.prototype.setValue=function(a){D.Message.setOneofField(this,2,T.moneta.integrator.common.buyflow.CustomFieldValue.oneofGroups_[0],a)};T.moneta.integrator.common.buyflow.CustomFieldValue.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.CustomFieldValue,a)};T.moneta.integrator.common.buyflow.CustomSectionDetails=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.buyflow.CustomSectionDetails.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.buyflow.CustomSectionDetails,D.Message);T.moneta.integrator.common.buyflow.CustomSectionDetails.repeatedFields_=[2,4];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.CustomSectionDetails.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.CustomSectionDetails.toObject(a,this)},T.moneta.integrator.common.buyflow.CustomSectionDetails.toObject=function(a,b){var c,g={sectionTitle:null==(c=D.Message.getField(b,1))?void 0:c,description:null==(c=D.Message.getField(b,6))?void 0:c,fieldList:D.Message.toObjectList(b.getFieldList(),T.moneta.integrator.common.buyflow.CustomField.toObject,
a),termsOfService:null==(c=D.Message.getField(b,3))?void 0:c,sectionLevelActionList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.buyflow.Action,4),T.moneta.integrator.common.buyflow.Action.toObject,a),keepExpanded:null==(c=D.Message.getBooleanField(b,5))?void 0:c,icon:null==(c=D.Message.getField(b,7))?void 0:c,position:null==(c=D.Message.getField(b,8))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.CustomSectionDetails.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.CustomSectionDetails.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.CustomSectionDetails;null!=a.sectionTitle&&D.Message.setField(b,1,a.sectionTitle);null!=a.description&&D.Message.setField(b,6,a.description);a.fieldList&&D.Message.setRepeatedWrapperField(b,2,a.fieldList.map(T.moneta.integrator.common.buyflow.CustomField.fromObject));
null!=a.termsOfService&&D.Message.setField(b,3,a.termsOfService);a.sectionLevelActionList&&D.Message.setRepeatedWrapperField(b,4,a.sectionLevelActionList.map(T.moneta.integrator.common.buyflow.Action.fromObject));null!=a.keepExpanded&&D.Message.setField(b,5,a.keepExpanded);null!=a.icon&&D.Message.setField(b,7,a.icon);null!=a.position&&D.Message.setField(b,8,a.position);return b});
T.moneta.integrator.common.buyflow.CustomSectionDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.CustomSectionDetails;return T.moneta.integrator.common.buyflow.CustomSectionDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.CustomSectionDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 6:c=b.readString();a.setDescription(c);break;case 2:c=new T.moneta.integrator.common.buyflow.CustomField;b.readMessage(c,T.moneta.integrator.common.buyflow.CustomField.deserializeBinaryFromReader);a.addField(c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;case 4:c=new T.moneta.integrator.common.buyflow.Action;
b.readMessage(c,T.moneta.integrator.common.buyflow.Action.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,4,c,T.moneta.integrator.common.buyflow.Action,void 0);break;case 5:c=b.readBool();D.Message.setField(a,5,c);break;case 7:c=b.readEnum();a.setIcon(c);break;case 8:c=b.readEnum();a.setPosition(c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.CustomSectionDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,6);null!=c&&b.writeString(6,c);c=a.getFieldList();0<c.length&&P(b,2,c,T.moneta.integrator.common.buyflow.CustomField.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.buyflow.Action,4);0<c.length&&P(b,4,c,T.moneta.integrator.common.buyflow.Action.serializeBinaryToWriter);
c=D.Message.getField(a,5);null!=c&&b.writeBool(5,c);c=D.Message.getField(a,7);null!=c&&b.writeEnum(7,c);c=D.Message.getField(a,8);null!=c&&b.writeEnum(8,c)};T.moneta.integrator.common.buyflow.CustomSectionDetails.Icon={UNKNOWN_ICON:0,LOCATION:1,SHIPPING_METHOD:2,STORE_DIRECTORY:3,GIFT_CARD:4};T.moneta.integrator.common.buyflow.CustomSectionDetails.Position={DEFAULT:0,TOP:1,BOTTOM:2};d=T.moneta.integrator.common.buyflow.CustomSectionDetails.prototype;
d.setDescription=function(a){D.Message.setField(this,6,a)};d.getFieldList=function(){return D.Message.getRepeatedWrapperField(this,T.moneta.integrator.common.buyflow.CustomField,2)};d.addField=function(a){D.Message.addToRepeatedWrapperField(this,2,a,T.moneta.integrator.common.buyflow.CustomField,void 0)};d.setIcon=function(a){return D.Message.setField(this,7,a)};d.setPosition=function(a){return D.Message.setField(this,8,a)};
T.moneta.integrator.common.buyflow.CustomSectionDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.CustomSectionDetails,a)};T.moneta.integrator.common.buyflow.CustomSectionDetailsValue=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.buyflow.CustomSectionDetailsValue,D.Message);T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.repeatedFields_=[1];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.toObject(a,this)},T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.toObject=function(a,b){var c,g={fieldValueList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.buyflow.CustomFieldValue,1),T.moneta.integrator.common.buyflow.CustomFieldValue.toObject,a),triggerId:null==
(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.CustomSectionDetailsValue;a.fieldValueList&&D.Message.setRepeatedWrapperField(b,1,a.fieldValueList.map(T.moneta.integrator.common.buyflow.CustomFieldValue.fromObject));null!=a.triggerId&&D.Message.setField(b,2,a.triggerId);return b});
T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.CustomSectionDetailsValue;return T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.buyflow.CustomFieldValue;b.readMessage(c,T.moneta.integrator.common.buyflow.CustomFieldValue.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,1,c,T.moneta.integrator.common.buyflow.CustomFieldValue,void 0);break;case 2:c=b.readInt32();D.Message.setField(a,2,c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.serializeBinaryToWriter=function(a,b){var c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.buyflow.CustomFieldValue,1);0<c.length&&P(b,1,c,T.moneta.integrator.common.buyflow.CustomFieldValue.serializeBinaryToWriter);c=D.Message.getField(a,2);null!=c&&b.writeInt32(2,c)};
T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.CustomSectionDetailsValue,a)};T.moneta.integrator.common.buyflow.CustomSectionEnums=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.buyflow.CustomSectionEnums,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.CustomSectionEnums.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.CustomSectionEnums.toObject(a,this)},T.moneta.integrator.common.buyflow.CustomSectionEnums.toObject=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.CustomSectionEnums.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.CustomSectionEnums.fromObject=function(){return new T.moneta.integrator.common.buyflow.CustomSectionEnums});
T.moneta.integrator.common.buyflow.CustomSectionEnums.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.CustomSectionEnums;return T.moneta.integrator.common.buyflow.CustomSectionEnums.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.buyflow.CustomSectionEnums.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)I(b);return a};T.moneta.integrator.common.buyflow.CustomSectionEnums.serializeBinaryToWriter=function(){};
T.moneta.integrator.common.buyflow.CustomSectionEnums.ButtonDisplayType={UNKNOWN_DISPLAY_TYPE:0,PRIMARY:1,SECONDARY:2};T.moneta.integrator.common.buyflow.CustomSectionEnums.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.CustomSectionEnums,a)};T.moneta.integrator.common.buyflow.FinancingParameters=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.buyflow.FinancingParameters,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.FinancingParameters.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.FinancingParameters.toObject(a,this)},T.moneta.integrator.common.buyflow.FinancingParameters.toObject=function(a,b){var c,g={userFacingTransactionId:null==(c=D.Message.getField(b,6))?void 0:c,financingType:null==(c=D.Message.getField(b,1))?void 0:c,financingTypeDurationMonths:null==(c=D.Message.getField(b,4))?void 0:c,annualPercentageRate:null==
(c=D.Message.getOptionalFloatingPointField(b,8))?void 0:c,offerDescriptionHtml:(c=D.Message.getWrapperField(b,T.html.SafeHtmlProto,2))&&T.html.SafeHtmlProto.toObject(a,c),offerDescription:null==(c=D.Message.getField(b,7))?void 0:c,detailedDescriptionHtml:(c=D.Message.getWrapperField(b,T.html.SafeHtmlProto,5))&&T.html.SafeHtmlProto.toObject(a,c),availableWithoutOffer:null==(c=D.Message.getBooleanField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.FinancingParameters.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.FinancingParameters.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.FinancingParameters;null!=a.userFacingTransactionId&&D.Message.setField(b,6,a.userFacingTransactionId);null!=a.financingType&&D.Message.setField(b,1,a.financingType);null!=a.financingTypeDurationMonths&&D.Message.setField(b,4,a.financingTypeDurationMonths);null!=a.annualPercentageRate&&
D.Message.setField(b,8,a.annualPercentageRate);a.offerDescriptionHtml&&D.Message.setWrapperField(b,2,T.html.SafeHtmlProto.fromObject(a.offerDescriptionHtml));null!=a.offerDescription&&D.Message.setField(b,7,a.offerDescription);a.detailedDescriptionHtml&&D.Message.setWrapperField(b,5,T.html.SafeHtmlProto.fromObject(a.detailedDescriptionHtml));null!=a.availableWithoutOffer&&D.Message.setField(b,3,a.availableWithoutOffer);return b});
T.moneta.integrator.common.buyflow.FinancingParameters.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.FinancingParameters;return T.moneta.integrator.common.buyflow.FinancingParameters.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.FinancingParameters.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 6:var c=b.readString();a.setUserFacingTransactionId(c);break;case 1:c=b.readString();D.Message.setField(a,1,c);break;case 4:c=b.readInt32();D.Message.setField(a,4,c);break;case 8:c=b.readDouble();D.Message.setField(a,8,c);break;case 2:c=new T.html.SafeHtmlProto;b.readMessage(c,T.html.SafeHtmlProto.deserializeBinaryFromReader);D.Message.setWrapperField(a,2,c);
break;case 7:c=b.readString();D.Message.setField(a,7,c);break;case 5:c=new T.html.SafeHtmlProto;b.readMessage(c,T.html.SafeHtmlProto.deserializeBinaryFromReader);D.Message.setWrapperField(a,5,c);break;case 3:c=b.readBool();D.Message.setField(a,3,c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.FinancingParameters.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,6);null!=c&&b.writeString(6,c);c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,4);null!=c&&b.writeInt32(4,c);c=D.Message.getField(a,8);null!=c&&b.writeDouble(8,c);c=D.Message.getWrapperField(a,T.html.SafeHtmlProto,2);null!=c&&N(b,2,c,T.html.SafeHtmlProto.serializeBinaryToWriter);c=D.Message.getField(a,7);null!=c&&b.writeString(7,c);c=D.Message.getWrapperField(a,
T.html.SafeHtmlProto,5);null!=c&&N(b,5,c,T.html.SafeHtmlProto.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeBool(3,c)};T.moneta.integrator.common.buyflow.FinancingParameters.prototype.setUserFacingTransactionId=function(a){D.Message.setField(this,6,a)};T.moneta.integrator.common.buyflow.FinancingParameters.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.FinancingParameters,a)};T.proto2.bridge={};T.proto2.bridge.MessageSet=function(a){D.Message.initialize(this,a,0,1,null,null)};f.inherits(T.proto2.bridge.MessageSet,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.proto2.bridge.MessageSet.prototype.toObject=function(a){return T.proto2.bridge.MessageSet.toObject(a,this)},T.proto2.bridge.MessageSet.toObject=function(a,b){var c={};D.Message.toObjectExtension(b,c,D.Message.messageSetExtensions,T.proto2.bridge.MessageSet.prototype.getExtension,a);a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.proto2.bridge.MessageSet.ObjectFormat=function(){},T.proto2.bridge.MessageSet.fromObject=function(){return new T.proto2.bridge.MessageSet});T.proto2.bridge.MessageSet.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.proto2.bridge.MessageSet;return T.proto2.bridge.MessageSet.deserializeBinaryFromReader(b,a)};T.proto2.bridge.MessageSet.deserializeBinaryFromReader=function(a,b){for(;H(b);)D.Message.readBinaryExtensionMessageSet(a,b);return a};
T.proto2.bridge.MessageSet.serializeBinaryToWriter=function(a,b){D.Message.serializeBinaryExtensions(a,b,D.Message.messageSetExtensionsBinary,T.proto2.bridge.MessageSet.prototype.getExtension)};T.proto2.bridge.MessageSet.deserialize=function(a){return D.Message.deserializeWithCtor(T.proto2.bridge.MessageSet,a)};T.f1={};T.f1.SchemaVisibility=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.f1.SchemaVisibility,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.f1.SchemaVisibility.prototype.toObject=function(a){return T.f1.SchemaVisibility.toObject(a,this)},T.f1.SchemaVisibility.toObject=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c});D.Message.GENERATE_FROM_OBJECT&&(T.f1.SchemaVisibility.ObjectFormat=function(){},T.f1.SchemaVisibility.fromObject=function(){return new T.f1.SchemaVisibility});
T.f1.SchemaVisibility.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.f1.SchemaVisibility;return T.f1.SchemaVisibility.deserializeBinaryFromReader(b,a)};T.f1.SchemaVisibility.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)I(b);return a};T.f1.SchemaVisibility.serializeBinaryToWriter=function(){};T.f1.SchemaVisibility.Visibility={STAGING:1,PRIVATE:2,PUBLIC:3,DEPRECATED:4};
T.f1.SchemaVisibility.deserialize=function(a){return D.Message.deserializeWithCtor(T.f1.SchemaVisibility,a)};T.postaladdress={};T.postaladdress.PostalAddress=function(a){D.Message.initialize(this,a,0,-1,T.postaladdress.PostalAddress.repeatedFields_,null)};f.inherits(T.postaladdress.PostalAddress,D.Message);T.postaladdress.PostalAddress.repeatedFields_=[14];
D.Message.GENERATE_TO_OBJECT&&(T.postaladdress.PostalAddress.prototype.toObject=function(a){return T.postaladdress.PostalAddress.toObject(a,this)},T.postaladdress.PostalAddress.toObject=function(a,b){var c,g={countryNameCode:null==(c=D.Message.getField(b,1))?void 0:c,countryName:null==(c=D.Message.getField(b,2))?void 0:c,isDisputed:null==(c=D.Message.getBooleanField(b,31))?void 0:c,languageCode:null==(c=D.Message.getField(b,26))?void 0:c,administrativeAreaName:null==(c=D.Message.getField(b,3))?void 0:
c,subAdministrativeAreaName:null==(c=D.Message.getField(b,4))?void 0:c,localityName:null==(c=D.Message.getField(b,5))?void 0:c,dependentLocalityName:null==(c=D.Message.getField(b,17))?void 0:c,thoroughfareName:null==(c=D.Message.getField(b,6))?void 0:c,thoroughfareNumber:null==(c=D.Message.getField(b,11))?void 0:c,dependentThoroughfareName:null==(c=D.Message.getField(b,21))?void 0:c,postalCodeNumber:null==(c=D.Message.getField(b,12))?void 0:c,postalCodeNumberExtension:null==(c=D.Message.getField(b,
13))?void 0:c,sortingCode:null==(c=D.Message.getField(b,29))?void 0:c,postBoxNumber:null==(c=D.Message.getField(b,30))?void 0:c,premiseName:null==(c=D.Message.getField(b,15))?void 0:c,subPremiseName:null==(c=D.Message.getField(b,16))?void 0:c,addressLineList:null==(c=D.Message.getRepeatedField(b,14))?void 0:c,firmName:null==(c=D.Message.getField(b,27))?void 0:c,recipientName:null==(c=D.Message.getField(b,28))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.postaladdress.PostalAddress.ObjectFormat=function(){},T.postaladdress.PostalAddress.fromObject=function(a){var b=new T.postaladdress.PostalAddress;null!=a.countryNameCode&&D.Message.setField(b,1,a.countryNameCode);null!=a.countryName&&D.Message.setField(b,2,a.countryName);null!=a.isDisputed&&D.Message.setField(b,31,a.isDisputed);null!=a.languageCode&&D.Message.setField(b,26,a.languageCode);null!=a.administrativeAreaName&&D.Message.setField(b,3,a.administrativeAreaName);
null!=a.subAdministrativeAreaName&&D.Message.setField(b,4,a.subAdministrativeAreaName);null!=a.localityName&&D.Message.setField(b,5,a.localityName);null!=a.dependentLocalityName&&D.Message.setField(b,17,a.dependentLocalityName);null!=a.thoroughfareName&&D.Message.setField(b,6,a.thoroughfareName);null!=a.thoroughfareNumber&&D.Message.setField(b,11,a.thoroughfareNumber);null!=a.dependentThoroughfareName&&D.Message.setField(b,21,a.dependentThoroughfareName);null!=a.postalCodeNumber&&D.Message.setField(b,
12,a.postalCodeNumber);null!=a.postalCodeNumberExtension&&D.Message.setField(b,13,a.postalCodeNumberExtension);null!=a.sortingCode&&D.Message.setField(b,29,a.sortingCode);null!=a.postBoxNumber&&D.Message.setField(b,30,a.postBoxNumber);null!=a.premiseName&&D.Message.setField(b,15,a.premiseName);null!=a.subPremiseName&&D.Message.setField(b,16,a.subPremiseName);null!=a.addressLineList&&D.Message.setField(b,14,a.addressLineList);null!=a.firmName&&D.Message.setField(b,27,a.firmName);null!=a.recipientName&&
D.Message.setField(b,28,a.recipientName);return b});T.postaladdress.PostalAddress.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.postaladdress.PostalAddress;return T.postaladdress.PostalAddress.deserializeBinaryFromReader(b,a)};
T.postaladdress.PostalAddress.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 31:c=b.readBool();D.Message.setField(a,31,c);break;case 26:c=b.readString();D.Message.setField(a,26,c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;case 4:c=b.readString();D.Message.setField(a,4,c);break;case 5:c=b.readString();D.Message.setField(a,5,c);
break;case 17:c=b.readString();D.Message.setField(a,17,c);break;case 6:c=b.readString();D.Message.setField(a,6,c);break;case 11:c=b.readString();D.Message.setField(a,11,c);break;case 21:c=b.readString();D.Message.setField(a,21,c);break;case 12:c=b.readString();D.Message.setField(a,12,c);break;case 13:c=b.readString();D.Message.setField(a,13,c);break;case 29:c=b.readString();D.Message.setField(a,29,c);break;case 30:c=b.readString();D.Message.setField(a,30,c);break;case 15:c=b.readString();D.Message.setField(a,
15,c);break;case 16:c=b.readString();D.Message.setField(a,16,c);break;case 14:c=b.readString();D.Message.addToRepeatedField(a,14,c,void 0);break;case 27:c=b.readString();D.Message.setField(a,27,c);break;case 28:c=b.readString();D.Message.setField(a,28,c);break;default:I(b)}return a};
T.postaladdress.PostalAddress.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,31);null!=c&&b.writeBool(31,c);c=D.Message.getField(a,26);null!=c&&b.writeString(26,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getField(a,5);null!=c&&b.writeString(5,c);c=D.Message.getField(a,17);null!=c&&b.writeString(17,
c);c=D.Message.getField(a,6);null!=c&&b.writeString(6,c);c=D.Message.getField(a,11);null!=c&&b.writeString(11,c);c=D.Message.getField(a,21);null!=c&&b.writeString(21,c);c=D.Message.getField(a,12);null!=c&&b.writeString(12,c);c=D.Message.getField(a,13);null!=c&&b.writeString(13,c);c=D.Message.getField(a,29);null!=c&&b.writeString(29,c);c=D.Message.getField(a,30);null!=c&&b.writeString(30,c);c=D.Message.getField(a,15);null!=c&&b.writeString(15,c);c=D.Message.getField(a,16);null!=c&&b.writeString(16,
c);c=D.Message.getRepeatedField(a,14);0<c.length&&O(b,14,c);c=D.Message.getField(a,27);null!=c&&b.writeString(27,c);c=D.Message.getField(a,28);null!=c&&b.writeString(28,c)};T.postaladdress.PostalAddress.messageSetExtension=new D.ExtensionFieldInfo;D.Message.messageSetExtensionsBinary[3514611]=new D.ExtensionFieldBinaryInfo;D.Message.messageSetExtensions[3514611]=T.postaladdress.PostalAddress.messageSetExtension;
T.postaladdress.PostalAddress.deserialize=function(a){return D.Message.deserializeWithCtor(T.postaladdress.PostalAddress,a)};T.moneta.integrator.common.Amount=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.Amount,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.Amount.prototype.toObject=function(a){return T.moneta.integrator.common.Amount.toObject(a,this)},T.moneta.integrator.common.Amount.toObject=function(a,b){var c,g={amountInMicros:null==(c=D.Message.getField(b,1))?void 0:c,currency:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.Amount.ObjectFormat=function(){},T.moneta.integrator.common.Amount.fromObject=function(a){var b=new T.moneta.integrator.common.Amount;null!=a.amountInMicros&&D.Message.setField(b,1,a.amountInMicros);null!=a.currency&&D.Message.setField(b,2,a.currency);return b});
T.moneta.integrator.common.Amount.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.Amount;return T.moneta.integrator.common.Amount.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.Amount.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt64();D.Message.setField(a,1,c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;default:I(b)}return a};
T.moneta.integrator.common.Amount.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt64(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c)};T.moneta.integrator.common.Amount.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.Amount,a)};T.moneta.integrator.common.cart={};T.moneta.integrator.common.cart.TaxInfo=function(a){D.Message.initialize(this,a,0,-1,null,T.moneta.integrator.common.cart.TaxInfo.oneofGroups_)};f.inherits(T.moneta.integrator.common.cart.TaxInfo,D.Message);T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.repeatedFields_,T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.oneofGroups_)};
f.inherits(T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo,D.Message);T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax,D.Message);T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo,D.Message);
T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo,D.Message);T.moneta.integrator.common.cart.TaxInfo.oneofGroups_=[[2,3,4,5]];T.moneta.integrator.common.cart.TaxInfo.TaxInfoCase={TAX_INFO_NOT_SET:0,PRECOMPUTED_TAX_AMOUNT:2,TAX_COMPUTATION_INFO:3,PRECOMPUTED_TAX_INFO:4,NO_TAX_INFO:5};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.TaxInfo.prototype.toObject=function(a){return T.moneta.integrator.common.cart.TaxInfo.toObject(a,this)},T.moneta.integrator.common.cart.TaxInfo.toObject=function(a,b){var c,g={precomputedTaxAmount:(c=b.getPrecomputedTaxAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),taxComputationInfo:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo,3))&&T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo.toObject(a,
c),precomputedTaxInfo:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo,4))&&T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.toObject(a,c),noTaxInfo:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo,5))&&T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.TaxInfo.ObjectFormat=function(){},T.moneta.integrator.common.cart.TaxInfo.fromObject=function(a){var b=new T.moneta.integrator.common.cart.TaxInfo;a.precomputedTaxAmount&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.precomputedTaxAmount));a.taxComputationInfo&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo.fromObject(a.taxComputationInfo));a.precomputedTaxInfo&&
D.Message.setWrapperField(b,4,T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.fromObject(a.precomputedTaxInfo));a.noTaxInfo&&D.Message.setWrapperField(b,5,T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo.fromObject(a.noTaxInfo));return b});T.moneta.integrator.common.cart.TaxInfo.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.TaxInfo;return T.moneta.integrator.common.cart.TaxInfo.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.TaxInfo.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 2:var c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setPrecomputedTaxAmount(c);break;case 3:c=new T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo;b.readMessage(c,T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,3,T.moneta.integrator.common.cart.TaxInfo.oneofGroups_[0],
c);break;case 4:c=new T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo;b.readMessage(c,T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,4,T.moneta.integrator.common.cart.TaxInfo.oneofGroups_[0],c);break;case 5:c=new T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo;b.readMessage(c,T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,5,T.moneta.integrator.common.cart.TaxInfo.oneofGroups_[0],
c);break;default:I(b)}return a};
T.moneta.integrator.common.cart.TaxInfo.serializeBinaryToWriter=function(a,b){var c=a.getPrecomputedTaxAmount();null!=c&&N(b,2,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo,3);null!=c&&N(b,3,c,T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo,4);null!=c&&N(b,4,c,T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.serializeBinaryToWriter);
c=D.Message.getWrapperField(a,T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo,5);null!=c&&N(b,5,c,T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo.serializeBinaryToWriter)};T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.repeatedFields_=[5];T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.oneofGroups_=[[2,6]];T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.ThirdPartySellerIdentifierCase={THIRD_PARTY_SELLER_IDENTIFIER_NOT_SET:0,SELLER_PRODUCT_CORRELATION_ID:2,UNSPECIFIED_THIRD_PARTY_SELLER:6};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.prototype.toObject=function(a){return T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.toObject(a,this)},T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.toObject=function(a,b){var c,g={sellerProductCorrelationId:(c=Fa(b))&&T.moneta.integrator.common.ProductCorrelationId.toObject(a,c),unspecifiedThirdPartySeller:null==(c=D.Message.getBooleanField(b,6))?void 0:c,assesseeAddress:(c=b.getAssesseeAddress())&&
T.postaladdress.PostalAddress.toObject(a,c),precomputedTaxList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax,5),T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.toObject,a)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.ObjectFormat=function(){},T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.fromObject=function(a){var b=new T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo;a.sellerProductCorrelationId&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.ProductCorrelationId.fromObject(a.sellerProductCorrelationId));null!=a.unspecifiedThirdPartySeller&&D.Message.setField(b,6,a.unspecifiedThirdPartySeller);
a.assesseeAddress&&D.Message.setWrapperField(b,3,T.postaladdress.PostalAddress.fromObject(a.assesseeAddress));a.precomputedTaxList&&D.Message.setRepeatedWrapperField(b,5,a.precomputedTaxList.map(T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.fromObject));return b});
T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo;return T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 2:var c=new T.moneta.integrator.common.ProductCorrelationId;b.readMessage(c,T.moneta.integrator.common.ProductCorrelationId.deserializeBinaryFromReader);a.setSellerProductCorrelationId(c);break;case 6:c=b.readBool();D.Message.setOneofField(a,6,T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.oneofGroups_[0],c);break;case 3:c=new T.postaladdress.PostalAddress;
b.readMessage(c,T.postaladdress.PostalAddress.deserializeBinaryFromReader);a.setAssesseeAddress(c);break;case 5:c=new T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax;b.readMessage(c,T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,5,c,T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax,void 0);break;default:I(b)}return a};
T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.serializeBinaryToWriter=function(a,b){var c=Fa(a);null!=c&&N(b,2,c,T.moneta.integrator.common.ProductCorrelationId.serializeBinaryToWriter);c=D.Message.getField(a,6);null!=c&&b.writeBool(6,c);c=a.getAssesseeAddress();null!=c&&N(b,3,c,T.postaladdress.PostalAddress.serializeBinaryToWriter);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax,5);0<c.length&&P(b,5,c,T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.serializeBinaryToWriter)};
var Fa=function(a){return D.Message.getWrapperField(a,T.moneta.integrator.common.ProductCorrelationId,2)};T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.prototype.setSellerProductCorrelationId=function(a){D.Message.setOneofWrapperField(this,2,T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.oneofGroups_[0],a)};
T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.prototype.getAssesseeAddress=function(){return D.Message.getWrapperField(this,T.postaladdress.PostalAddress,3)};T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.prototype.setAssesseeAddress=function(a){D.Message.setWrapperField(this,3,a)};T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.TaxInfo.PrecomputedTaxInfo,a)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.prototype.toObject=function(a){return T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.toObject(a,this)},T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.toObject=function(a,b){var c,g={precomputedTaxAmount:(c=b.getPrecomputedTaxAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),taxCategory:null==(c=D.Message.getField(b,4))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.ObjectFormat=function(){},T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.fromObject=function(a){var b=new T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax;a.precomputedTaxAmount&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Amount.fromObject(a.precomputedTaxAmount));null!=a.taxCategory&&D.Message.setField(b,4,a.taxCategory);return b});
T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax;return T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setPrecomputedTaxAmount(c);break;case 4:c=b.readInt32();a.setTaxCategory(c);break;default:I(b)}return a};
T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.serializeBinaryToWriter=function(a,b){var c=a.getPrecomputedTaxAmount();null!=c&&N(b,1,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,4);null!=c&&b.writeInt32(4,c)};T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.prototype.getPrecomputedTaxAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,1)};
T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.prototype.setPrecomputedTaxAmount=function(a){D.Message.setWrapperField(this,1,a)};T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.prototype.setTaxCategory=function(a){D.Message.setField(this,4,a)};T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.TaxInfo.PrecomputedTax,a)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo.prototype.toObject=function(a){return T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo.toObject(a,this)},T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo.toObject=function(a,b){var c,g={sellerProductCorrelationId:(c=Fa(b))&&T.moneta.integrator.common.ProductCorrelationId.toObject(a,c),productCode:null==(c=D.Message.getField(b,3))?void 0:c,movementCode:null==(c=D.Message.getField(b,4))?void 0:
c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo.ObjectFormat=function(){},T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo.fromObject=function(a){var b=new T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo;a.sellerProductCorrelationId&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.ProductCorrelationId.fromObject(a.sellerProductCorrelationId));null!=a.productCode&&D.Message.setField(b,3,a.productCode);null!=a.movementCode&&D.Message.setField(b,
4,a.movementCode);return b});T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo;return T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 2:var c=new T.moneta.integrator.common.ProductCorrelationId;b.readMessage(c,T.moneta.integrator.common.ProductCorrelationId.deserializeBinaryFromReader);a.setSellerProductCorrelationId(c);break;case 3:c=b.readInt64String();a.setProductCode(c);break;case 4:c=b;f.asserts.assert(c.nextWireType_==D.BinaryConstants.WireType.VARINT);c=c.decoder_.readSignedVarint32().toString();
D.Message.setField(a,4,c);break;default:I(b)}return a};T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo.serializeBinaryToWriter=function(a,b){var c=Fa(a);null!=c&&N(b,2,c,T.moneta.integrator.common.ProductCorrelationId.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeInt64String(3,c);c=D.Message.getField(a,4);null!=c&&null!=c&&(a=parseInt(c,10),f.asserts.assert(a>=-D.BinaryConstants.TWO_TO_31&&a<D.BinaryConstants.TWO_TO_31),wa(b,4,a))};
T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo.prototype.setSellerProductCorrelationId=function(a){D.Message.setWrapperField(this,2,a)};T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo.prototype.setProductCode=function(a){D.Message.setField(this,3,a)};T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.TaxInfo.TaxComputationInfo,a)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo.prototype.toObject=function(a){return T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo.toObject(a,this)},T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo.toObject=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c});D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo.ObjectFormat=function(){},T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo.fromObject=function(){return new T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo});
T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo;return T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)I(b);return a};T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo.serializeBinaryToWriter=function(){};
T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.TaxInfo.NoTaxInfo,a)};T.moneta.integrator.common.cart.TaxInfo.prototype.getPrecomputedTaxAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,2)};
T.moneta.integrator.common.cart.TaxInfo.prototype.setPrecomputedTaxAmount=function(a){D.Message.setOneofWrapperField(this,2,T.moneta.integrator.common.cart.TaxInfo.oneofGroups_[0],a)};T.moneta.integrator.common.cart.TaxInfo.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.TaxInfo,a)};T.moneta.integrator.common.Duration=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.Duration,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.Duration.prototype.toObject=function(a){return T.moneta.integrator.common.Duration.toObject(a,this)},T.moneta.integrator.common.Duration.toObject=function(a,b){var c,g={count:null==(c=D.Message.getField(b,1))?void 0:c,unit:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.Duration.ObjectFormat=function(){},T.moneta.integrator.common.Duration.fromObject=function(a){var b=new T.moneta.integrator.common.Duration;null!=a.count&&D.Message.setField(b,1,a.count);null!=a.unit&&D.Message.setField(b,2,a.unit);return b});
T.moneta.integrator.common.Duration.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.Duration;return T.moneta.integrator.common.Duration.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.Duration.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setCount(c);break;case 2:c=b.readEnum();a.setUnit(c);break;default:I(b)}return a};
T.moneta.integrator.common.Duration.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=D.Message.getField(a,2);null!=c&&b.writeEnum(2,c)};T.moneta.integrator.common.Duration.Unit={UNKNOWN_UNIT:0,DAILY:1,WEEKLY:2,MONTHLY:3,YEARLY:4,HOURLY:5};T.moneta.integrator.common.Duration.prototype.getCount=function(){return D.Message.getField(this,1)};T.moneta.integrator.common.Duration.prototype.setCount=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.Duration.prototype.setUnit=function(a){D.Message.setField(this,2,a)};T.moneta.integrator.common.Duration.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.Duration,a)};T.moneta.integrator.common.Frequency=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.Frequency,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.Frequency.prototype.toObject=function(a){return T.moneta.integrator.common.Frequency.toObject(a,this)},T.moneta.integrator.common.Frequency.toObject=function(a,b){var c,g={count:null==(c=D.Message.getField(b,1))?void 0:c,period:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.Frequency.ObjectFormat=function(){},T.moneta.integrator.common.Frequency.fromObject=function(a){var b=new T.moneta.integrator.common.Frequency;null!=a.count&&D.Message.setField(b,1,a.count);null!=a.period&&D.Message.setField(b,2,a.period);return b});
T.moneta.integrator.common.Frequency.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.Frequency;return T.moneta.integrator.common.Frequency.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.Frequency.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setCount(c);break;case 2:c=b.readEnum();D.Message.setField(a,2,c);break;default:I(b)}return a};
T.moneta.integrator.common.Frequency.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=D.Message.getField(a,2);null!=c&&b.writeEnum(2,c)};T.moneta.integrator.common.Frequency.Period={UNKNOWN_FREQUENCY:0,DAILY:1,WEEKLY:2,MONTHLY:3,YEARLY:4,HOURLY:5,MINUTELY:6};T.moneta.integrator.common.Frequency.prototype.getCount=function(){return D.Message.getField(this,1)};
T.moneta.integrator.common.Frequency.prototype.setCount=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.Frequency.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.Frequency,a)};T.moneta.integrator.common.address={};T.moneta.integrator.common.address.AddressDeliveryInstruction=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.address.AddressDeliveryInstruction,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.address.AddressDeliveryInstruction.prototype.toObject=function(a){return T.moneta.integrator.common.address.AddressDeliveryInstruction.toObject(a,this)},T.moneta.integrator.common.address.AddressDeliveryInstruction.toObject=function(a,b){var c,g={addressDeliveryInstructionType:null==(c=D.Message.getField(b,1))?void 0:c,addressDeliveryInstructionValue:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.address.AddressDeliveryInstruction.ObjectFormat=function(){},T.moneta.integrator.common.address.AddressDeliveryInstruction.fromObject=function(a){var b=new T.moneta.integrator.common.address.AddressDeliveryInstruction;null!=a.addressDeliveryInstructionType&&D.Message.setField(b,1,a.addressDeliveryInstructionType);null!=a.addressDeliveryInstructionValue&&D.Message.setField(b,2,a.addressDeliveryInstructionValue);return b});
T.moneta.integrator.common.address.AddressDeliveryInstruction.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.address.AddressDeliveryInstruction;return T.moneta.integrator.common.address.AddressDeliveryInstruction.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.address.AddressDeliveryInstruction.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;default:I(b)}return a};T.moneta.integrator.common.address.AddressDeliveryInstruction.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c)};
T.moneta.integrator.common.address.AddressDeliveryInstruction.AddressDeliveryInstructionType={UNKNOWN:0,GATE_CODE:1,EXTRA_INSTRUCTIONS:2};T.moneta.integrator.common.address.AddressDeliveryInstruction.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.address.AddressDeliveryInstruction,a)};T.google={};T.google.type={};T.google.type.LatLng=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.google.type.LatLng,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.google.type.LatLng.prototype.toObject=function(a){return T.google.type.LatLng.toObject(a,this)},T.google.type.LatLng.toObject=function(a,b){var c={latitude:D.Message.getFloatingPointFieldWithDefault(b,1,0),longitude:D.Message.getFloatingPointFieldWithDefault(b,2,0)};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.google.type.LatLng.ObjectFormat=function(){},T.google.type.LatLng.fromObject=function(a){var b=new T.google.type.LatLng;null!=a.latitude&&D.Message.setField(b,1,a.latitude);null!=a.longitude&&D.Message.setField(b,2,a.longitude);return b});T.google.type.LatLng.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.google.type.LatLng;return T.google.type.LatLng.deserializeBinaryFromReader(b,a)};
T.google.type.LatLng.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readDouble();D.Message.setProto3FloatField(a,1,c);break;case 2:c=b.readDouble();D.Message.setProto3FloatField(a,2,c);break;default:I(b)}return a};T.google.type.LatLng.serializeBinaryToWriter=function(a,b){var c=D.Message.getFloatingPointFieldWithDefault(a,1,0);0!==c&&b.writeDouble(1,c);c=D.Message.getFloatingPointFieldWithDefault(a,2,0);0!==c&&b.writeDouble(2,c)};
T.google.type.LatLng.deserialize=function(a){return D.Message.deserializeWithCtor(T.google.type.LatLng,a)};T.moneta.integrator.common.address.AddressGeocodingInfo=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.address.AddressGeocodingInfo,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.address.AddressGeocodingInfo.prototype.toObject=function(a){return T.moneta.integrator.common.address.AddressGeocodingInfo.toObject(a,this)},T.moneta.integrator.common.address.AddressGeocodingInfo.toObject=function(a,b){var c,g={latLng:(c=D.Message.getWrapperField(b,T.google.type.LatLng,1))&&T.google.type.LatLng.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.address.AddressGeocodingInfo.ObjectFormat=function(){},T.moneta.integrator.common.address.AddressGeocodingInfo.fromObject=function(a){var b=new T.moneta.integrator.common.address.AddressGeocodingInfo;a.latLng&&D.Message.setWrapperField(b,1,T.google.type.LatLng.fromObject(a.latLng));return b});
T.moneta.integrator.common.address.AddressGeocodingInfo.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.address.AddressGeocodingInfo;return T.moneta.integrator.common.address.AddressGeocodingInfo.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.address.AddressGeocodingInfo.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.google.type.LatLng;b.readMessage(c,T.google.type.LatLng.deserializeBinaryFromReader);D.Message.setWrapperField(a,1,c);break;default:I(b)}return a};T.moneta.integrator.common.address.AddressGeocodingInfo.serializeBinaryToWriter=function(a,b){a=D.Message.getWrapperField(a,T.google.type.LatLng,1);null!=a&&N(b,1,a,T.google.type.LatLng.serializeBinaryToWriter)};
T.moneta.integrator.common.address.AddressGeocodingInfo.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.address.AddressGeocodingInfo,a)};T.moneta.integrator.common.address.AddressLabel=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.address.AddressLabel,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.address.AddressLabel.prototype.toObject=function(a){return T.moneta.integrator.common.address.AddressLabel.toObject(a,this)},T.moneta.integrator.common.address.AddressLabel.toObject=function(a,b){var c,g={labelType:null==(c=D.Message.getField(b,1))?void 0:c,customLabel:null==(c=D.Message.getField(b,2))?void 0:c,universalAccess:D.Message.getBooleanFieldWithDefault(b,3,!1)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.address.AddressLabel.ObjectFormat=function(){},T.moneta.integrator.common.address.AddressLabel.fromObject=function(a){var b=new T.moneta.integrator.common.address.AddressLabel;null!=a.labelType&&D.Message.setField(b,1,a.labelType);null!=a.customLabel&&D.Message.setField(b,2,a.customLabel);null!=a.universalAccess&&D.Message.setField(b,3,a.universalAccess);return b});
T.moneta.integrator.common.address.AddressLabel.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.address.AddressLabel;return T.moneta.integrator.common.address.AddressLabel.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.address.AddressLabel.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readBool();D.Message.setField(a,3,c);break;default:I(b)}return a};
T.moneta.integrator.common.address.AddressLabel.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeBool(3,c)};
T.moneta.integrator.common.address.AddressLabel.LabelType={LABEL_TYPE_UNKNOWN:0,LABEL_TYPE_SHIPPING_HOME:1,LABEL_TYPE_SHIPPING_WORK:2,LABEL_TYPE_SHIPPING_PREFERRED:3,LABEL_TYPE_SHIPPING_LAST_USED:4,LABEL_TYPE_CUSTOM:5,LABEL_TYPE_SHIPPING_RESIDENTIAL:6,LABEL_TYPE_SHIPPING_BUSINESS:7};T.moneta.integrator.common.address.AddressLabel.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.address.AddressLabel,a)};T.moneta.integrator.common.address.AddressLabelOperation=function(a){D.Message.initialize(this,a,0,-1,null,T.moneta.integrator.common.address.AddressLabelOperation.oneofGroups_)};f.inherits(T.moneta.integrator.common.address.AddressLabelOperation,D.Message);T.moneta.integrator.common.address.AddressLabelOperation.AddOperation=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.address.AddressLabelOperation.AddOperation,D.Message);
T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation,D.Message);T.moneta.integrator.common.address.AddressLabelOperation.oneofGroups_=[[2,3]];T.moneta.integrator.common.address.AddressLabelOperation.OperationCase={OPERATION_NOT_SET:0,ADD_OPERATION:2,DELETE_OPERATION:3};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.address.AddressLabelOperation.prototype.toObject=function(a){return T.moneta.integrator.common.address.AddressLabelOperation.toObject(a,this)},T.moneta.integrator.common.address.AddressLabelOperation.toObject=function(a,b){var c,g={addressLabel:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.address.AddressLabel,1))&&T.moneta.integrator.common.address.AddressLabel.toObject(a,c),addOperation:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.address.AddressLabelOperation.AddOperation,
2))&&T.moneta.integrator.common.address.AddressLabelOperation.AddOperation.toObject(a,c),deleteOperation:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation,3))&&T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.address.AddressLabelOperation.ObjectFormat=function(){},T.moneta.integrator.common.address.AddressLabelOperation.fromObject=function(a){var b=new T.moneta.integrator.common.address.AddressLabelOperation;a.addressLabel&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.address.AddressLabel.fromObject(a.addressLabel));a.addOperation&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.address.AddressLabelOperation.AddOperation.fromObject(a.addOperation));
a.deleteOperation&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation.fromObject(a.deleteOperation));return b});T.moneta.integrator.common.address.AddressLabelOperation.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.address.AddressLabelOperation;return T.moneta.integrator.common.address.AddressLabelOperation.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.address.AddressLabelOperation.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.address.AddressLabel;b.readMessage(c,T.moneta.integrator.common.address.AddressLabel.deserializeBinaryFromReader);D.Message.setWrapperField(a,1,c);break;case 2:c=new T.moneta.integrator.common.address.AddressLabelOperation.AddOperation;b.readMessage(c,T.moneta.integrator.common.address.AddressLabelOperation.AddOperation.deserializeBinaryFromReader);
D.Message.setOneofWrapperField(a,2,T.moneta.integrator.common.address.AddressLabelOperation.oneofGroups_[0],c);break;case 3:c=new T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation;b.readMessage(c,T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,3,T.moneta.integrator.common.address.AddressLabelOperation.oneofGroups_[0],c);break;default:I(b)}return a};
T.moneta.integrator.common.address.AddressLabelOperation.serializeBinaryToWriter=function(a,b){var c=D.Message.getWrapperField(a,T.moneta.integrator.common.address.AddressLabel,1);null!=c&&N(b,1,c,T.moneta.integrator.common.address.AddressLabel.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.address.AddressLabelOperation.AddOperation,2);null!=c&&N(b,2,c,T.moneta.integrator.common.address.AddressLabelOperation.AddOperation.serializeBinaryToWriter);c=D.Message.getWrapperField(a,
T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation,3);null!=c&&N(b,3,c,T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation.serializeBinaryToWriter)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.address.AddressLabelOperation.AddOperation.prototype.toObject=function(a){return T.moneta.integrator.common.address.AddressLabelOperation.AddOperation.toObject(a,this)},T.moneta.integrator.common.address.AddressLabelOperation.AddOperation.toObject=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.address.AddressLabelOperation.AddOperation.ObjectFormat=function(){},T.moneta.integrator.common.address.AddressLabelOperation.AddOperation.fromObject=function(){return new T.moneta.integrator.common.address.AddressLabelOperation.AddOperation});
T.moneta.integrator.common.address.AddressLabelOperation.AddOperation.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.address.AddressLabelOperation.AddOperation;return T.moneta.integrator.common.address.AddressLabelOperation.AddOperation.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.address.AddressLabelOperation.AddOperation.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)I(b);return a};
T.moneta.integrator.common.address.AddressLabelOperation.AddOperation.serializeBinaryToWriter=function(){};T.moneta.integrator.common.address.AddressLabelOperation.AddOperation.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.address.AddressLabelOperation.AddOperation,a)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation.prototype.toObject=function(a){return T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation.toObject(a,this)},T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation.toObject=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation.ObjectFormat=function(){},T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation.fromObject=function(){return new T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation});
T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation;return T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)I(b);return a};
T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation.serializeBinaryToWriter=function(){};T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.address.AddressLabelOperation.DeleteOperation,a)};T.moneta.integrator.common.address.AddressLabelOperation.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.address.AddressLabelOperation,a)};T.moneta.integrator.common.address.AddressNormalizationSignature=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.address.AddressNormalizationSignature,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.address.AddressNormalizationSignature.prototype.toObject=function(a){return T.moneta.integrator.common.address.AddressNormalizationSignature.toObject(a,this)},T.moneta.integrator.common.address.AddressNormalizationSignature.toObject=function(a,b){var c,g={address:(c=b.getAddress())&&T.postaladdress.PostalAddress.toObject(a,c),addressGeocodingInfo:(c=b.getAddressGeocodingInfo())&&T.moneta.integrator.common.address.AddressGeocodingInfo.toObject(a,
c),addressNormalizationToken:D.Message.bytesAsB64(b.getAddressNormalizationToken())};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.address.AddressNormalizationSignature.ObjectFormat=function(){},T.moneta.integrator.common.address.AddressNormalizationSignature.fromObject=function(a){var b=new T.moneta.integrator.common.address.AddressNormalizationSignature;a.address&&D.Message.setWrapperField(b,1,T.postaladdress.PostalAddress.fromObject(a.address));a.addressGeocodingInfo&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.address.AddressGeocodingInfo.fromObject(a.addressGeocodingInfo));
null!=a.addressNormalizationToken&&D.Message.setField(b,3,a.addressNormalizationToken);return b});T.moneta.integrator.common.address.AddressNormalizationSignature.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.address.AddressNormalizationSignature;return T.moneta.integrator.common.address.AddressNormalizationSignature.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.address.AddressNormalizationSignature.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.postaladdress.PostalAddress;b.readMessage(c,T.postaladdress.PostalAddress.deserializeBinaryFromReader);a.setAddress(c);break;case 2:c=new T.moneta.integrator.common.address.AddressGeocodingInfo;b.readMessage(c,T.moneta.integrator.common.address.AddressGeocodingInfo.deserializeBinaryFromReader);a.setAddressGeocodingInfo(c);break;case 3:c=
b.readBytes();a.setAddressNormalizationToken(c);break;default:I(b)}return a};T.moneta.integrator.common.address.AddressNormalizationSignature.serializeBinaryToWriter=function(a,b){var c=a.getAddress();null!=c&&N(b,1,c,T.postaladdress.PostalAddress.serializeBinaryToWriter);c=a.getAddressGeocodingInfo();null!=c&&N(b,2,c,T.moneta.integrator.common.address.AddressGeocodingInfo.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeBytes(3,c)};d=T.moneta.integrator.common.address.AddressNormalizationSignature.prototype;
d.getAddress=function(){return D.Message.getWrapperField(this,T.postaladdress.PostalAddress,1)};d.setAddress=function(a){D.Message.setWrapperField(this,1,a)};d.getAddressGeocodingInfo=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.address.AddressGeocodingInfo,2)};d.setAddressGeocodingInfo=function(a){D.Message.setWrapperField(this,2,a)};d.getAddressNormalizationToken=function(){return D.Message.getField(this,3)};
d.setAddressNormalizationToken=function(a){D.Message.setField(this,3,a)};T.moneta.integrator.common.address.AddressNormalizationSignature.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.address.AddressNormalizationSignature,a)};T.moneta.integrator.common.address.AddressNormalizationToken=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.address.AddressNormalizationToken,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.address.AddressNormalizationToken.prototype.toObject=function(a){return T.moneta.integrator.common.address.AddressNormalizationToken.toObject(a,this)},T.moneta.integrator.common.address.AddressNormalizationToken.toObject=function(a,b){var c,g={standardizer:null==(c=D.Message.getField(b,1))?void 0:c,standardizationTimestampMillis:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.address.AddressNormalizationToken.ObjectFormat=function(){},T.moneta.integrator.common.address.AddressNormalizationToken.fromObject=function(a){var b=new T.moneta.integrator.common.address.AddressNormalizationToken;null!=a.standardizer&&D.Message.setField(b,1,a.standardizer);null!=a.standardizationTimestampMillis&&D.Message.setField(b,2,a.standardizationTimestampMillis);return b});
T.moneta.integrator.common.address.AddressNormalizationToken.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.address.AddressNormalizationToken;return T.moneta.integrator.common.address.AddressNormalizationToken.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.address.AddressNormalizationToken.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;case 2:c=b.readInt64();D.Message.setField(a,2,c);break;default:I(b)}return a};T.moneta.integrator.common.address.AddressNormalizationToken.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeInt64(2,c)};
T.moneta.integrator.common.address.AddressNormalizationToken.Standardizer={STANDARDIZER_UNKNOWN:0,STANDARDIZER_USER:1,STANDARDIZER_ALPS:2,STANDARDIZER_LOQATE:3};T.moneta.integrator.common.address.AddressNormalizationToken.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.address.AddressNormalizationToken,a)};T.moneta.integrator.common.address.AddressNormalizationType={ADDRESS_NORMALIZATION_TYPE_UNKNOWN:0,ADDRESS_NORMALIZATION_TYPE_DEFAULT:1,ADDRESS_NORMALIZATION_TYPE_EXTERNAL:2};T.moneta.integrator.common.address.NormalizationResultType={NORMALIZATION_RESULT_TYPE_UNKNOWN:0,NORMALIZATION_RESULT_TYPE_GOOD:1,NORMALIZATION_RESULT_TYPE_NEEDS_USER_REVIEW:2};T.moneta.integrator.common.address.Address=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.address.Address.repeatedFields_,T.moneta.integrator.common.address.Address.oneofGroups_)};f.inherits(T.moneta.integrator.common.address.Address,D.Message);T.moneta.integrator.common.address.Address.repeatedFields_=[4,6];T.moneta.integrator.common.address.Address.oneofGroups_=[[1,8]];T.moneta.integrator.common.address.Address.IdCase={ID_NOT_SET:0,ADDRESS_ID:1,EXTERNAL_ADDRESS_ID:8};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.address.Address.prototype.toObject=function(a){return T.moneta.integrator.common.address.Address.toObject(a,this)},T.moneta.integrator.common.address.Address.toObject=function(a,b){var c,g={addressId:null==(c=D.Message.getField(b,1))?void 0:c,externalAddressId:null==(c=D.Message.getField(b,8))?void 0:c,address:(c=b.getAddress())&&T.postaladdress.PostalAddress.toObject(a,c),addressNormalizationType:null==(c=D.Message.getField(b,7))?void 0:c,
normalizationResultType:null==(c=D.Message.getField(b,9))?void 0:c,addressNormalizationToken:D.Message.bytesAsB64(b.getAddressNormalizationToken()),addressNormalizationSignature:D.Message.bytesAsB64(D.Message.getField(b,11)),phoneNumber:null==(c=D.Message.getField(b,3))?void 0:c,addressDeliveryInstructionList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.address.AddressDeliveryInstruction,4),T.moneta.integrator.common.address.AddressDeliveryInstruction.toObject,
a),addressGeocodingInfo:(c=b.getAddressGeocodingInfo())&&T.moneta.integrator.common.address.AddressGeocodingInfo.toObject(a,c),addressLabelList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.address.AddressLabel,6),T.moneta.integrator.common.address.AddressLabel.toObject,a)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.address.Address.ObjectFormat=function(){},T.moneta.integrator.common.address.Address.fromObject=function(a){var b=new T.moneta.integrator.common.address.Address;null!=a.addressId&&D.Message.setField(b,1,a.addressId);null!=a.externalAddressId&&D.Message.setField(b,8,a.externalAddressId);a.address&&D.Message.setWrapperField(b,2,T.postaladdress.PostalAddress.fromObject(a.address));null!=a.addressNormalizationType&&D.Message.setField(b,7,a.addressNormalizationType);
null!=a.normalizationResultType&&D.Message.setField(b,9,a.normalizationResultType);null!=a.addressNormalizationToken&&D.Message.setField(b,10,a.addressNormalizationToken);null!=a.addressNormalizationSignature&&D.Message.setField(b,11,a.addressNormalizationSignature);null!=a.phoneNumber&&D.Message.setField(b,3,a.phoneNumber);a.addressDeliveryInstructionList&&D.Message.setRepeatedWrapperField(b,4,a.addressDeliveryInstructionList.map(T.moneta.integrator.common.address.AddressDeliveryInstruction.fromObject));
a.addressGeocodingInfo&&D.Message.setWrapperField(b,5,T.moneta.integrator.common.address.AddressGeocodingInfo.fromObject(a.addressGeocodingInfo));a.addressLabelList&&D.Message.setRepeatedWrapperField(b,6,a.addressLabelList.map(T.moneta.integrator.common.address.AddressLabel.fromObject));return b});
T.moneta.integrator.common.address.Address.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.address.Address;return T.moneta.integrator.common.address.Address.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.address.Address.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt64String();a.setAddressId(c);break;case 8:c=b.readInt64String();D.Message.setOneofField(a,8,T.moneta.integrator.common.address.Address.oneofGroups_[0],c);break;case 2:c=new T.postaladdress.PostalAddress;b.readMessage(c,T.postaladdress.PostalAddress.deserializeBinaryFromReader);a.setAddress(c);break;case 7:c=b.readEnum();D.Message.setField(a,7,c);break;case 9:c=
b.readEnum();D.Message.setField(a,9,c);break;case 10:c=b.readBytes();a.setAddressNormalizationToken(c);break;case 11:c=b.readBytes();D.Message.setField(a,11,c);break;case 3:c=b.readString();a.setPhoneNumber(c);break;case 4:c=new T.moneta.integrator.common.address.AddressDeliveryInstruction;b.readMessage(c,T.moneta.integrator.common.address.AddressDeliveryInstruction.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,4,c,T.moneta.integrator.common.address.AddressDeliveryInstruction,
void 0);break;case 5:c=new T.moneta.integrator.common.address.AddressGeocodingInfo;b.readMessage(c,T.moneta.integrator.common.address.AddressGeocodingInfo.deserializeBinaryFromReader);a.setAddressGeocodingInfo(c);break;case 6:c=new T.moneta.integrator.common.address.AddressLabel;b.readMessage(c,T.moneta.integrator.common.address.AddressLabel.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,6,c,T.moneta.integrator.common.address.AddressLabel,void 0);break;default:I(b)}return a};
T.moneta.integrator.common.address.Address.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt64String(1,c);c=D.Message.getField(a,8);null!=c&&b.writeInt64String(8,c);c=a.getAddress();null!=c&&N(b,2,c,T.postaladdress.PostalAddress.serializeBinaryToWriter);c=D.Message.getField(a,7);null!=c&&b.writeEnum(7,c);c=D.Message.getField(a,9);null!=c&&b.writeEnum(9,c);c=D.Message.getField(a,10);null!=c&&b.writeBytes(10,c);c=D.Message.getField(a,11);null!=c&&b.writeBytes(11,
c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.address.AddressDeliveryInstruction,4);0<c.length&&P(b,4,c,T.moneta.integrator.common.address.AddressDeliveryInstruction.serializeBinaryToWriter);c=a.getAddressGeocodingInfo();null!=c&&N(b,5,c,T.moneta.integrator.common.address.AddressGeocodingInfo.serializeBinaryToWriter);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.address.AddressLabel,6);0<c.length&&P(b,6,
c,T.moneta.integrator.common.address.AddressLabel.serializeBinaryToWriter)};d=T.moneta.integrator.common.address.Address.prototype;d.setAddressId=function(a){D.Message.setOneofField(this,1,T.moneta.integrator.common.address.Address.oneofGroups_[0],a)};d.getAddress=function(){return D.Message.getWrapperField(this,T.postaladdress.PostalAddress,2)};d.setAddress=function(a){D.Message.setWrapperField(this,2,a)};d.getAddressNormalizationToken=function(){return D.Message.getField(this,10)};
d.setAddressNormalizationToken=function(a){D.Message.setField(this,10,a)};d.setPhoneNumber=function(a){D.Message.setField(this,3,a)};d.getAddressGeocodingInfo=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.address.AddressGeocodingInfo,5)};d.setAddressGeocodingInfo=function(a){D.Message.setWrapperField(this,5,a)};T.moneta.integrator.common.address.Address.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.address.Address,a)};T.moneta.integrator.common.descriptionpayload={};T.moneta.integrator.common.descriptionpayload.Ads4Payload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.Ads4Payload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.Ads4Payload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.Ads4Payload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.Ads4Payload.toObject=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.Ads4Payload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.Ads4Payload.fromObject=function(){return new T.moneta.integrator.common.descriptionpayload.Ads4Payload});
T.moneta.integrator.common.descriptionpayload.Ads4Payload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.Ads4Payload;return T.moneta.integrator.common.descriptionpayload.Ads4Payload.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.descriptionpayload.Ads4Payload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)I(b);return a};T.moneta.integrator.common.descriptionpayload.Ads4Payload.serializeBinaryToWriter=function(){};
T.moneta.integrator.common.descriptionpayload.Ads4Payload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.Ads4Payload,a)};T.moneta.integrator.common.descriptionpayload.AdSensePayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.AdSensePayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.AdSensePayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.AdSensePayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.AdSensePayload.toObject=function(a,b){var c,g={webPropertyId:null==(c=D.Message.getField(b,1))?void 0:c,usageType:null==(c=D.Message.getField(b,2))?void 0:c,billingSyndicationProductId:null==(c=D.Message.getField(b,4))?void 0:c,adxBuyerNetworkName:null==
(c=D.Message.getField(b,3))?void 0:c,playRewarded:null==(c=D.Message.getBooleanField(b,5))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.AdSensePayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.AdSensePayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.AdSensePayload;null!=a.webPropertyId&&D.Message.setField(b,1,a.webPropertyId);null!=a.usageType&&D.Message.setField(b,2,a.usageType);null!=a.billingSyndicationProductId&&D.Message.setField(b,4,a.billingSyndicationProductId);null!=a.adxBuyerNetworkName&&
D.Message.setField(b,3,a.adxBuyerNetworkName);null!=a.playRewarded&&D.Message.setField(b,5,a.playRewarded);return b});T.moneta.integrator.common.descriptionpayload.AdSensePayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.AdSensePayload;return T.moneta.integrator.common.descriptionpayload.AdSensePayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.AdSensePayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt64();D.Message.setField(a,1,c);break;case 2:c=b.readEnum();a.setUsageType(c);break;case 4:c=b.readInt32();D.Message.setField(a,4,c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;case 5:c=b.readBool();D.Message.setField(a,5,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.AdSensePayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt64(1,c);c=D.Message.getField(a,2);null!=c&&b.writeEnum(2,c);c=D.Message.getField(a,4);null!=c&&b.writeInt32(4,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getField(a,5);null!=c&&b.writeBool(5,c)};
T.moneta.integrator.common.descriptionpayload.AdSensePayload.UsageType={UNKNOWN_USAGE_TYPE:0,MONETIZED_EARNINGS:1,MONETIZED_EARNINGS_PLUS_SPAM:9,ADJUSTMENT_INJECTED_EARNINGS:11,MONETIZED_SENSITIVE_SPAM:10,SPAM_ADJUSTMENT:2,TYM_GM_PUB_EARNINGS:3,TYM_GM_PUB_EARNINGS_ADJ:4,TYM_PM_PUB_FEES:5,TYM_PM_PUB_FEES_ADJ:6,TIERED_REVSHARE_BONUS:7,CORRECTIVE_ADJUSTMENT:8,BONUS_ADJUSTMENT:12};
T.moneta.integrator.common.descriptionpayload.AdSensePayload.prototype.setUsageType=function(a){D.Message.setField(this,2,a)};T.moneta.integrator.common.descriptionpayload.AdSensePayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.AdSensePayload,a)};T.moneta.integrator.common.descriptionpayload.AdWordsPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.AdWordsPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.AdWordsPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.AdWordsPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.AdWordsPayload.toObject=function(a,b){var c,g={payloadType:null==(c=D.Message.getField(b,1))?void 0:c,identifyingName:null==(c=D.Message.getField(b,2))?void 0:c,campaignId:null==(c=D.Message.getField(b,3))?void 0:c,budgetId:null==(c=D.Message.getField(b,
4))?void 0:c,costType:null==(c=D.Message.getField(b,7))?void 0:c,billingInfoType:null==(c=D.Message.getField(b,5))?void 0:c,customerBudgetId:null==(c=D.Message.getField(b,6))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.AdWordsPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.AdWordsPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.AdWordsPayload;null!=a.payloadType&&D.Message.setField(b,1,a.payloadType);null!=a.identifyingName&&D.Message.setField(b,2,a.identifyingName);null!=a.campaignId&&D.Message.setField(b,3,a.campaignId);null!=a.budgetId&&D.Message.setField(b,4,a.budgetId);
null!=a.costType&&D.Message.setField(b,7,a.costType);null!=a.billingInfoType&&D.Message.setField(b,5,a.billingInfoType);null!=a.customerBudgetId&&D.Message.setField(b,6,a.customerBudgetId);return b});T.moneta.integrator.common.descriptionpayload.AdWordsPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.AdWordsPayload;return T.moneta.integrator.common.descriptionpayload.AdWordsPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.AdWordsPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readInt64();a.setCampaignId(c);break;case 4:c=b.readInt64();D.Message.setField(a,4,c);break;case 7:c=b.readEnum();a.setCostType(c);break;case 5:c=b.readEnum();D.Message.setField(a,5,c);break;case 6:c=b.readInt64();D.Message.setField(a,
6,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.AdWordsPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeInt64(3,c);c=D.Message.getField(a,4);null!=c&&b.writeInt64(4,c);c=D.Message.getField(a,7);null!=c&&b.writeEnum(7,c);c=D.Message.getField(a,5);null!=c&&b.writeEnum(5,c);c=D.Message.getField(a,6);null!=c&&b.writeInt64(6,c)};
T.moneta.integrator.common.descriptionpayload.AdWordsPayload.PayloadType={UNKNOWN_PAYLOAD_TYPE:0,DELIVERY_PAYLOAD:1,OVERRUN_PAYLOAD:2,ADJUSTMENT_PAYLOAD:3};T.moneta.integrator.common.descriptionpayload.AdWordsPayload.CostType={UNKNOWN_COST_TYPE:0,CPC:1,CPM:2,CPA:3,CPP:4,CPV:5,CPD:6,CPAUDIO:7,CPE:8,CPT:9,CPL:10};T.moneta.integrator.common.descriptionpayload.AdWordsPayload.BillingInfoType={UNKNOWN_BILLING_INFO_TYPE:0,TYM_SCRAPING:1,TYM_SCRAPING_ADJ:2};
T.moneta.integrator.common.descriptionpayload.AdWordsPayload.prototype.setCampaignId=function(a){D.Message.setField(this,3,a)};T.moneta.integrator.common.descriptionpayload.AdWordsPayload.prototype.setCostType=function(a){D.Message.setField(this,7,a)};T.moneta.integrator.common.descriptionpayload.AdWordsPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.AdWordsPayload,a)};T.moneta.integrator.common.descriptionpayload.AnalyticsPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.AnalyticsPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.toObject=function(a,b){var c,g={premiumClientInfoUid:null==(c=D.Message.getField(b,1))?void 0:c,premiumClientName:null==(c=D.Message.getField(b,2))?void 0:c,resellerUid:null==(c=D.Message.getField(b,3))?void 0:c,poReference:null==
(c=D.Message.getField(b,4))?void 0:c,productType:null==(c=D.Message.getField(b,5))?void 0:c,feeType:null==(c=D.Message.getField(b,6))?void 0:c,adjustmentChargeDateMillis:null==(c=D.Message.getField(b,7))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.AnalyticsPayload;null!=a.premiumClientInfoUid&&D.Message.setField(b,1,a.premiumClientInfoUid);null!=a.premiumClientName&&D.Message.setField(b,2,a.premiumClientName);null!=a.resellerUid&&D.Message.setField(b,3,a.resellerUid);null!=a.poReference&&
D.Message.setField(b,4,a.poReference);null!=a.productType&&D.Message.setField(b,5,a.productType);null!=a.feeType&&D.Message.setField(b,6,a.feeType);null!=a.adjustmentChargeDateMillis&&D.Message.setField(b,7,a.adjustmentChargeDateMillis);return b});
T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.AnalyticsPayload;return T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;case 4:c=b.readString();D.Message.setField(a,4,c);break;case 5:c=b.readEnum();a.setProductType(c);break;case 6:c=b.readEnum();a.setFeeType(c);break;case 7:c=b.readInt64();D.Message.setField(a,
7,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getField(a,5);null!=c&&b.writeEnum(5,c);c=D.Message.getField(a,6);null!=c&&b.writeEnum(6,c);c=D.Message.getField(a,7);null!=c&&b.writeInt64(7,c)};
T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.ProductType={UNKNOWN_PRODUCT_TYPE:0,GOOGLE_ANALYTICS:1,GOOGLE_TAG_MANAGER:2,OPTIMIZE:3,AUDIENCE_CENTER:4,DIGITAL_ATTRIBUTION:5,TV_ATTRIBUTION:6,MMM:7,DATA_STUDIO:8,GOOGLE_CONSUMER_SURVEYS_360:9,GOOGLE_CONSUMER_SURVEYS_CONSUMER:10};
T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.FeeType={UNKNOWN_FEE_TYPE:0,USAGE_FEE:1,SETUP_FEE:2,SERVICES_FEE:3,EXTRA_ACCOUNT_FEE:4,THIRD_PARTY_COST_FEE:5,THIRD_PARTY_DESTINATION_FEE:6,DVIP_CREDIT:7,OVERAGE_HITS_FEE:8,OVERAGE_IMPRESSIONS_FEE:9,OVERAGE_BLENDED_FEE:10,PURCHASE:11,ADJUSTMENT_CHARGE:12};T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.prototype.setProductType=function(a){D.Message.setField(this,5,a)};
T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.prototype.setFeeType=function(a){D.Message.setField(this,6,a)};T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.AnalyticsPayload,a)};T.moneta.integrator.common.descriptionpayload.AndroidOemPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.AndroidOemPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.toObject=function(a,b){var c,g={usageType:null==(c=D.Message.getField(b,1))?void 0:c,countryTier:null==(c=D.Message.getField(b,2))?void 0:c,deviceTier:null==(c=D.Message.getField(b,3))?void 0:c,rateAmount:(c=b.getRateAmount())&&
T.moneta.integrator.common.Amount.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.AndroidOemPayload;null!=a.usageType&&D.Message.setField(b,1,a.usageType);null!=a.countryTier&&D.Message.setField(b,2,a.countryTier);null!=a.deviceTier&&D.Message.setField(b,3,a.deviceTier);a.rateAmount&&D.Message.setWrapperField(b,4,T.moneta.integrator.common.Amount.fromObject(a.rateAmount));
return b});T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.AndroidOemPayload;return T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();a.setUsageType(c);break;case 2:c=b.readEnum();D.Message.setField(a,2,c);break;case 3:c=b.readEnum();D.Message.setField(a,3,c);break;case 4:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setRateAmount(c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeEnum(2,c);c=D.Message.getField(a,3);null!=c&&b.writeEnum(3,c);c=a.getRateAmount();null!=c&&N(b,4,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter)};T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.UsageType={UNKNOWN_USAGE_TYPE:0,USAGE_TYPE_LICENSE_FEE:1,USAGE_TYPE_GSA:2,USAGE_TYPE_GSA_CHROME:3};
T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.CountryTier={UNKNOWN_COUNTRY_TIER:0,COUNTRY_GROUP_1:1,COUNTRY_GROUP_2:2,COUNTRY_GROUP_3:3,TURKEY:4};T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.DeviceTier={UNKNOWN_DEVICE_TIER:0,PHONE_TIER_1:1,PHONE_TIER_2:2,PHONE_TIER_3:3,TABLETS:4};T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.prototype.setUsageType=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.prototype.getRateAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,4)};T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.prototype.setRateAmount=function(a){D.Message.setWrapperField(this,4,a)};
T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.AndroidOemPayload,a)};T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload.toObject=function(a,b){var c,g={country:null==(c=D.Message.getField(b,1))?void 0:c,rateAmount:(c=b.getRateAmount())&&T.moneta.integrator.common.Amount.toObject(a,c)};a&&(g.$jspbMessageInstance=
b);return g});D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload;null!=a.country&&D.Message.setField(b,1,a.country);a.rateAmount&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.rateAmount));return b});
T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload;return T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setRateAmount(c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=a.getRateAmount();null!=c&&N(b,2,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter)};T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload.prototype.getRateAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,2)};
T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload.prototype.setRateAmount=function(a){D.Message.setWrapperField(this,2,a)};T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload,a)};T.moneta.integrator.common.descriptionpayload.CarrierChargePayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.CarrierChargePayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.CarrierChargePayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.CarrierChargePayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.CarrierChargePayload.toObject=function(a,b){var c,g={paymentEventId:null==(c=D.Message.getField(b,1))?void 0:c,paymentId:null==(c=D.Message.getField(b,2))?void 0:c,processingFee:null==(c=D.Message.getBooleanField(b,3))?void 0:c,correlationId:null==
(c=D.Message.getField(b,4))?void 0:c,itemPrice:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,5))&&T.moneta.integrator.common.Amount.toObject(a,c),tax:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,6))&&T.moneta.integrator.common.Amount.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.CarrierChargePayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.CarrierChargePayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.CarrierChargePayload;null!=a.paymentEventId&&D.Message.setField(b,1,a.paymentEventId);null!=a.paymentId&&D.Message.setField(b,2,a.paymentId);null!=a.processingFee&&D.Message.setField(b,3,a.processingFee);null!=a.correlationId&&D.Message.setField(b,
4,a.correlationId);a.itemPrice&&D.Message.setWrapperField(b,5,T.moneta.integrator.common.Amount.fromObject(a.itemPrice));a.tax&&D.Message.setWrapperField(b,6,T.moneta.integrator.common.Amount.fromObject(a.tax));return b});
T.moneta.integrator.common.descriptionpayload.CarrierChargePayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.CarrierChargePayload;return T.moneta.integrator.common.descriptionpayload.CarrierChargePayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.CarrierChargePayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readBool();D.Message.setField(a,3,c);break;case 4:c=b.readString();D.Message.setField(a,4,c);break;case 5:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,
5,c);break;case 6:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,6,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.CarrierChargePayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeBool(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,5);null!=c&&N(b,5,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,
6);null!=c&&N(b,6,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter)};T.moneta.integrator.common.descriptionpayload.CarrierChargePayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.CarrierChargePayload,a)};T.moneta.integrator.common.descriptionpayload.CheckoutPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.CheckoutPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.CheckoutPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.CheckoutPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.CheckoutPayload.toObject=function(a,b){var c,g={cartCreatorId:null==(c=D.Message.getField(b,1))?void 0:c,cartId:null==(c=D.Message.getField(b,2))?void 0:c,usageType:null==(c=D.Message.getField(b,3))?void 0:c,refundType:null==(c=D.Message.getField(b,
4))?void 0:c,lineItemId:null==(c=D.Message.getField(b,5))?void 0:c,sku:null==(c=D.Message.getField(b,6))?void 0:c,name:null==(c=D.Message.getField(b,7))?void 0:c,inAppProductId:null==(c=D.Message.getField(b,8))?void 0:c,chromeAppId:null==(c=D.Message.getField(b,9))?void 0:c,productTitle:null==(c=D.Message.getField(b,10))?void 0:c,productId:null==(c=D.Message.getField(b,11))?void 0:c,productType:null==(c=D.Message.getField(b,12))?void 0:c,productHardware:null==(c=D.Message.getField(b,13))?void 0:c,
skuFromAssetId:null==(c=D.Message.getField(b,14))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.CheckoutPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.CheckoutPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.CheckoutPayload;null!=a.cartCreatorId&&D.Message.setField(b,1,a.cartCreatorId);null!=a.cartId&&D.Message.setField(b,2,a.cartId);null!=a.usageType&&D.Message.setField(b,3,a.usageType);null!=a.refundType&&D.Message.setField(b,4,a.refundType);
null!=a.lineItemId&&D.Message.setField(b,5,a.lineItemId);null!=a.sku&&D.Message.setField(b,6,a.sku);null!=a.name&&D.Message.setField(b,7,a.name);null!=a.inAppProductId&&D.Message.setField(b,8,a.inAppProductId);null!=a.chromeAppId&&D.Message.setField(b,9,a.chromeAppId);null!=a.productTitle&&D.Message.setField(b,10,a.productTitle);null!=a.productId&&D.Message.setField(b,11,a.productId);null!=a.productType&&D.Message.setField(b,12,a.productType);null!=a.productHardware&&D.Message.setField(b,13,a.productHardware);
null!=a.skuFromAssetId&&D.Message.setField(b,14,a.skuFromAssetId);return b});T.moneta.integrator.common.descriptionpayload.CheckoutPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.CheckoutPayload;return T.moneta.integrator.common.descriptionpayload.CheckoutPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.CheckoutPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt64();D.Message.setField(a,1,c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readEnum();a.setUsageType(c);break;case 4:c=b.readEnum();D.Message.setField(a,4,c);break;case 5:c=b.readInt64();D.Message.setField(a,5,c);break;case 6:c=b.readString();a.setSku(c);break;case 7:c=b.readString();a.setName(c);break;case 8:c=
b.readString();D.Message.setField(a,8,c);break;case 9:c=b.readString();D.Message.setField(a,9,c);break;case 10:c=b.readString();D.Message.setField(a,10,c);break;case 11:c=b.readString();a.setProductId(c);break;case 12:c=b.readInt32();a.setProductType(c);break;case 13:c=b.readString();D.Message.setField(a,13,c);break;case 14:c=b.readString();D.Message.setField(a,14,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.CheckoutPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt64(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeEnum(3,c);c=D.Message.getField(a,4);null!=c&&b.writeEnum(4,c);c=D.Message.getField(a,5);null!=c&&b.writeInt64(5,c);c=D.Message.getField(a,6);null!=c&&b.writeString(6,c);c=D.Message.getField(a,7);null!=c&&b.writeString(7,c);c=D.Message.getField(a,8);
null!=c&&b.writeString(8,c);c=D.Message.getField(a,9);null!=c&&b.writeString(9,c);c=D.Message.getField(a,10);null!=c&&b.writeString(10,c);c=D.Message.getField(a,11);null!=c&&b.writeString(11,c);c=D.Message.getField(a,12);null!=c&&b.writeInt32(12,c);c=D.Message.getField(a,13);null!=c&&b.writeString(13,c);c=D.Message.getField(a,14);null!=c&&b.writeString(14,c)};
T.moneta.integrator.common.descriptionpayload.CheckoutPayload.CheckoutUsageType={UNKNOWN_CHECKOUT_USAGE_TYPE:0,CHARGE:1,REVENUE_SHARE:2,GOOGLE_FEE:3,GOOGLE_ADJUSTMENT:4,MERCHANT_PROMOTION:5,CHARGEBACK_FEE:6};T.moneta.integrator.common.descriptionpayload.CheckoutPayload.RefundType={UNKNOWN_REFUND_TYPE:0,FULL:1,ONE_SIDED:2,CHARGEBACK:3,PARTIAL:4};d=T.moneta.integrator.common.descriptionpayload.CheckoutPayload.prototype;d.setUsageType=function(a){D.Message.setField(this,3,a)};
d.setSku=function(a){D.Message.setField(this,6,a)};d.setName=function(a){D.Message.setField(this,7,a)};d.setProductId=function(a){D.Message.setField(this,11,a)};d.setProductType=function(a){D.Message.setField(this,12,a)};T.moneta.integrator.common.descriptionpayload.CheckoutPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.CheckoutPayload,a)};T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload.toObject=function(a,b){var c,g={description:null==(c=D.Message.getField(b,1))?void 0:c,salesOrderId:null==(c=D.Message.getField(b,2))?void 0:c,originalSalesOrderId:null==(c=D.Message.getField(b,4))?void 0:
c,unitPrice:(c=b.getUnitPrice())&&T.moneta.integrator.common.Amount.toObject(a,c),sku:null==(c=D.Message.getField(b,5))?void 0:c,revenueBundleId:null==(c=D.Message.getField(b,6))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload;null!=a.description&&D.Message.setField(b,1,a.description);null!=a.salesOrderId&&D.Message.setField(b,2,a.salesOrderId);null!=a.originalSalesOrderId&&D.Message.setField(b,4,a.originalSalesOrderId);
a.unitPrice&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.Amount.fromObject(a.unitPrice));null!=a.sku&&D.Message.setField(b,5,a.sku);null!=a.revenueBundleId&&D.Message.setField(b,6,a.revenueBundleId);return b});
T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload;return T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setDescription(c);break;case 2:c=b.readString();a.setSalesOrderId(c);break;case 4:c=b.readString();D.Message.setField(a,4,c);break;case 3:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setUnitPrice(c);break;case 5:c=b.readString();a.setSku(c);break;
case 6:c=b.readString();D.Message.setField(a,6,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=a.getUnitPrice();null!=c&&N(b,3,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,5);null!=c&&b.writeString(5,c);c=D.Message.getField(a,6);null!=c&&b.writeString(6,c)};d=T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload.prototype;
d.setDescription=function(a){D.Message.setField(this,1,a)};d.setSalesOrderId=function(a){D.Message.setField(this,2,a)};d.getUnitPrice=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,3)};d.setUnitPrice=function(a){D.Message.setWrapperField(this,3,a)};d.setSku=function(a){D.Message.setField(this,5,a)};
T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload,a)};T.moneta.integrator.common.descriptionpayload.CloudPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.CloudPayload,D.Message);T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.CloudPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.CloudPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.CloudPayload.toObject=function(a,b){var c,g={sourceId:null==(c=D.Message.getField(b,1))?void 0:c,providerDescription:null==(c=D.Message.getField(b,2))?void 0:c,resourceDescription:null==(c=D.Message.getField(b,3))?void 0:c,projectName:null==(c=D.Message.getField(b,
4))?void 0:c,unitName:null==(c=D.Message.getField(b,5))?void 0:c,preferredMultiplier:null==(c=D.Message.getField(b,6))?void 0:c,currencyConversion:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion,7))&&T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion.toObject(a,c),cloudAccountId:null==(c=D.Message.getField(b,8))?void 0:c,devconsoleProjectId:null==(c=D.Message.getField(b,9))?void 0:c,skuUniqueId:null==(c=D.Message.getField(b,
10))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.CloudPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.CloudPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.CloudPayload;null!=a.sourceId&&D.Message.setField(b,1,a.sourceId);null!=a.providerDescription&&D.Message.setField(b,2,a.providerDescription);null!=a.resourceDescription&&D.Message.setField(b,3,a.resourceDescription);null!=a.projectName&&D.Message.setField(b,
4,a.projectName);null!=a.unitName&&D.Message.setField(b,5,a.unitName);null!=a.preferredMultiplier&&D.Message.setField(b,6,a.preferredMultiplier);a.currencyConversion&&D.Message.setWrapperField(b,7,T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion.fromObject(a.currencyConversion));null!=a.cloudAccountId&&D.Message.setField(b,8,a.cloudAccountId);null!=a.devconsoleProjectId&&D.Message.setField(b,9,a.devconsoleProjectId);null!=a.skuUniqueId&&D.Message.setField(b,10,a.skuUniqueId);
return b});T.moneta.integrator.common.descriptionpayload.CloudPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.CloudPayload;return T.moneta.integrator.common.descriptionpayload.CloudPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.CloudPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;case 4:c=b.readString();D.Message.setField(a,4,c);break;case 5:c=b.readEnum();D.Message.setField(a,5,c);break;case 6:c=b.readInt64();D.Message.setField(a,6,c);break;case 7:c=new T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion;
b.readMessage(c,T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion.deserializeBinaryFromReader);D.Message.setWrapperField(a,7,c);break;case 8:c=b.readString();D.Message.setField(a,8,c);break;case 9:c=b.readString();D.Message.setField(a,9,c);break;case 10:c=b.readString();D.Message.setField(a,10,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.CloudPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getField(a,5);null!=c&&b.writeEnum(5,c);c=D.Message.getField(a,6);null!=c&&b.writeInt64(6,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion,
7);null!=c&&N(b,7,c,T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion.serializeBinaryToWriter);c=D.Message.getField(a,8);null!=c&&b.writeString(8,c);c=D.Message.getField(a,9);null!=c&&b.writeString(9,c);c=D.Message.getField(a,10);null!=c&&b.writeString(10,c)};T.moneta.integrator.common.descriptionpayload.CloudPayload.UnitName={UNKNOWN_UNIT_NAME:0,COUNT:1,CURRENCY_MICROS:2,MEBIBYTES:3,SECONDS:4,GIBIBYTE_SECONDS:5};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion.toObject=function(a,b){var c,g={originalCurrencyCode:null==(c=D.Message.getField(b,1))?void 0:c,resultCurrencyCode:null==(c=D.Message.getField(b,2))?void 0:c,rate:null==(c=D.Message.getOptionalFloatingPointField(b,
3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion;null!=a.originalCurrencyCode&&D.Message.setField(b,1,a.originalCurrencyCode);null!=a.resultCurrencyCode&&D.Message.setField(b,2,a.resultCurrencyCode);null!=a.rate&&D.Message.setField(b,
3,a.rate);return b});T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion;return T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readDouble();a.setRate(c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeDouble(3,c)};T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion.prototype.getRate=function(){return D.Message.getOptionalFloatingPointField(this,3)};
T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion.prototype.setRate=function(a){D.Message.setField(this,3,a)};T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.CloudPayload.CurrencyConversion,a)};
T.moneta.integrator.common.descriptionpayload.CloudPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.CloudPayload,a)};T.moneta.integrator.common.descriptionpayload.PrismaData=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.PrismaData,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.PrismaData.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.PrismaData.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.PrismaData.toObject=function(a,b){var c,g={clientCode:null==(c=D.Message.getField(b,1))?void 0:c,productCode:null==(c=D.Message.getField(b,2))?void 0:c,estimateCode:null==(c=D.Message.getField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.PrismaData.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.PrismaData.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.PrismaData;null!=a.clientCode&&D.Message.setField(b,1,a.clientCode);null!=a.productCode&&D.Message.setField(b,2,a.productCode);null!=a.estimateCode&&D.Message.setField(b,3,a.estimateCode);return b});
T.moneta.integrator.common.descriptionpayload.PrismaData.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.PrismaData;return T.moneta.integrator.common.descriptionpayload.PrismaData.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.PrismaData.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=b.readString();a.setProductCode(c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.PrismaData.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c)};T.moneta.integrator.common.descriptionpayload.PrismaData.prototype.setProductCode=function(a){D.Message.setField(this,2,a)};
T.moneta.integrator.common.descriptionpayload.PrismaData.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.PrismaData,a)};T.moneta.integrator.common.descriptionpayload.DbmPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.DbmPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.DbmPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.DbmPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.DbmPayload.toObject=function(a,b){var c,g={partnerId:null==(c=D.Message.getField(b,1))?void 0:c,partnerName:null==(c=D.Message.getField(b,2))?void 0:c,advertiserId:null==(c=D.Message.getField(b,3))?void 0:c,advertiserName:null==(c=D.Message.getField(b,4))?
void 0:c,orderId:null==(c=D.Message.getField(b,5))?void 0:c,orderName:null==(c=D.Message.getField(b,6))?void 0:c,mediaPlanId:null==(c=D.Message.getField(b,11))?void 0:c,mediaPlanName:null==(c=D.Message.getField(b,12))?void 0:c,billingFeatureType:null==(c=D.Message.getField(b,7))?void 0:c,purchaseOrderKey:null==(c=D.Message.getField(b,8))?void 0:c,orderNameKey:null==(c=D.Message.getField(b,9))?void 0:c,budgetSegmentDescription:null==(c=D.Message.getField(b,10))?void 0:c,aggregationFeatureType:null==
(c=D.Message.getField(b,13))?void 0:c,externalBudgetId:null==(c=D.Message.getField(b,14))?void 0:c,budgetInvoiceGroupingId:null==(c=D.Message.getField(b,15))?void 0:c,prismaData:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.PrismaData,16))&&T.moneta.integrator.common.descriptionpayload.PrismaData.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.DbmPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.DbmPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.DbmPayload;null!=a.partnerId&&D.Message.setField(b,1,a.partnerId);null!=a.partnerName&&D.Message.setField(b,2,a.partnerName);null!=a.advertiserId&&D.Message.setField(b,3,a.advertiserId);null!=a.advertiserName&&D.Message.setField(b,4,a.advertiserName);
null!=a.orderId&&D.Message.setField(b,5,a.orderId);null!=a.orderName&&D.Message.setField(b,6,a.orderName);null!=a.mediaPlanId&&D.Message.setField(b,11,a.mediaPlanId);null!=a.mediaPlanName&&D.Message.setField(b,12,a.mediaPlanName);null!=a.billingFeatureType&&D.Message.setField(b,7,a.billingFeatureType);null!=a.purchaseOrderKey&&D.Message.setField(b,8,a.purchaseOrderKey);null!=a.orderNameKey&&D.Message.setField(b,9,a.orderNameKey);null!=a.budgetSegmentDescription&&D.Message.setField(b,10,a.budgetSegmentDescription);
null!=a.aggregationFeatureType&&D.Message.setField(b,13,a.aggregationFeatureType);null!=a.externalBudgetId&&D.Message.setField(b,14,a.externalBudgetId);null!=a.budgetInvoiceGroupingId&&D.Message.setField(b,15,a.budgetInvoiceGroupingId);a.prismaData&&D.Message.setWrapperField(b,16,T.moneta.integrator.common.descriptionpayload.PrismaData.fromObject(a.prismaData));return b});
T.moneta.integrator.common.descriptionpayload.DbmPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.DbmPayload;return T.moneta.integrator.common.descriptionpayload.DbmPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.DbmPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt64();a.setPartnerId(c);break;case 2:c=b.readString();a.setPartnerName(c);break;case 3:c=b.readInt64();a.setAdvertiserId(c);break;case 4:c=b.readString();a.setAdvertiserName(c);break;case 5:c=b.readInt64();a.setOrderId(c);break;case 6:c=b.readString();a.setOrderName(c);break;case 11:c=b.readInt64();a.setMediaPlanId(c);break;case 12:c=b.readString();
a.setMediaPlanName(c);break;case 7:c=b.readEnum();a.setBillingFeatureType(c);break;case 8:c=b.readString();a.setPurchaseOrderKey(c);break;case 9:c=b.readString();a.setOrderNameKey(c);break;case 10:c=b.readString();D.Message.setField(a,10,c);break;case 13:c=b.readEnum();D.Message.setField(a,13,c);break;case 14:c=b.readString();D.Message.setField(a,14,c);break;case 15:c=b.readString();D.Message.setField(a,15,c);break;case 16:c=new T.moneta.integrator.common.descriptionpayload.PrismaData;b.readMessage(c,
T.moneta.integrator.common.descriptionpayload.PrismaData.deserializeBinaryFromReader);D.Message.setWrapperField(a,16,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.DbmPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt64(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeInt64(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getField(a,5);null!=c&&b.writeInt64(5,c);c=D.Message.getField(a,6);null!=c&&b.writeString(6,c);c=D.Message.getField(a,11);null!=c&&b.writeInt64(11,c);c=D.Message.getField(a,12);
null!=c&&b.writeString(12,c);c=D.Message.getField(a,7);null!=c&&b.writeEnum(7,c);c=D.Message.getField(a,8);null!=c&&b.writeString(8,c);c=D.Message.getField(a,9);null!=c&&b.writeString(9,c);c=D.Message.getField(a,10);null!=c&&b.writeString(10,c);c=D.Message.getField(a,13);null!=c&&b.writeEnum(13,c);c=D.Message.getField(a,14);null!=c&&b.writeString(14,c);c=D.Message.getField(a,15);null!=c&&b.writeString(15,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.PrismaData,16);
null!=c&&N(b,16,c,T.moneta.integrator.common.descriptionpayload.PrismaData.serializeBinaryToWriter)};
T.moneta.integrator.common.descriptionpayload.DbmPayload.DbmBillingFeatureType={UNKNOWN_DBM_BILLING_FEATURE_TYPE:0,BID_MANAGER_FEE:1,DBM_MEDIA_COST:2,DBM_THIRD_PARTY_FEE:3,DBM_DATA_FEE:4,DBM_TOTAL_COST:5,DBM_SEPARATE_MEDIA:6,DBM_SEPARATE_PLATFORM:7,DBM_SEPARATE_MEDIA_PLATFORM:8,DVIP_FUND:9,DOUBLE_VERIFY:10,INTEGRAL_AD_SCIENCE:11,INTEGRAL_AD_SCIENCE_VIDEO:12,SHOP_LOCAL:13,CRM_ONBOARDING_FEE:14,CRM_ONBOARDING_MIN_FEE:15,DBM_SPAM_TOTAL:16,DBM_SPAM_MEDIA:17,DBM_SPAM_PLATFORM:18,LINEAR_TV_ADJUSTMENT:19,
LINEAR_TV_ADJUSTMENT_MEDIA:20,LINEAR_TV_ADJUSTMENT_PLATFORM:21,TRUEVIEW_OVERSPEND:22,TRUEVIEW_OVERSPEND_MEDIA:23,TRUEVIEW_OVERSPEND_PLATFORM:24,TRACKING:25,TRUEVIEW_OVERSPEND_DATA:26,TRUEVIEW_OVERSPEND_THIRD_PARTY:27,TRUEVIEW_OVERSPEND_SEPARATE_PLATFORM:28,TRUEVIEW_OVERSPEND_SEPARATE_MEDIA:29,TRUEVIEW_OVERSPEND_SEPARATE_MEDIA_PLATFORM:30,OVERSPEND:31,OVERSPEND_MEDIA:32,OVERSPEND_PLATFORM:33,DBM_PREMIUM_FEE:34,CPM_STANDARD:35,DBM_VIDEO_FEE:36,DBM_INVALID_ACTIVITY_CREDIT:37,DBM_INVALID_ACTIVITY_CREDIT_MEDIA:38,
DBM_INVALID_ACTIVITY_CREDIT_PLATFORM:39};d=T.moneta.integrator.common.descriptionpayload.DbmPayload.prototype;d.setPartnerId=function(a){D.Message.setField(this,1,a)};d.setPartnerName=function(a){D.Message.setField(this,2,a)};d.setAdvertiserId=function(a){D.Message.setField(this,3,a)};d.setAdvertiserName=function(a){D.Message.setField(this,4,a)};d.setOrderId=function(a){D.Message.setField(this,5,a)};d.setOrderName=function(a){D.Message.setField(this,6,a)};
d.setMediaPlanId=function(a){D.Message.setField(this,11,a)};d.setMediaPlanName=function(a){D.Message.setField(this,12,a)};d.setBillingFeatureType=function(a){D.Message.setField(this,7,a)};d.setPurchaseOrderKey=function(a){D.Message.setField(this,8,a)};d.setOrderNameKey=function(a){D.Message.setField(this,9,a)};T.moneta.integrator.common.descriptionpayload.DbmPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.DbmPayload,a)};T.moneta.integrator.common.descriptionpayload.Dfa7Payload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.Dfa7Payload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.Dfa7Payload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.Dfa7Payload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.Dfa7Payload.toObject=function(a,b){var c,g={advertiserId:null==(c=D.Message.getField(b,1))?void 0:c,advertiserName:null==(c=D.Message.getField(b,2))?void 0:c,orderId:null==(c=D.Message.getField(b,3))?void 0:c,orderName:null==(c=D.Message.getField(b,4))?
void 0:c,unitOfMeasure:null==(c=D.Message.getField(b,5))?void 0:c,unitPriceInMicros:null==(c=D.Message.getField(b,6))?void 0:c,billingInvoiceCode:null==(c=D.Message.getField(b,7))?void 0:c,feeType:null==(c=D.Message.getField(b,8))?void 0:c,billingFeatureType:null==(c=D.Message.getField(b,9))?void 0:c,purchaseOrderKey:null==(c=D.Message.getField(b,10))?void 0:c,orderNameKey:null==(c=D.Message.getField(b,11))?void 0:c,accountId:null==(c=D.Message.getField(b,12))?void 0:c,accountName:null==(c=D.Message.getField(b,
13))?void 0:c,partnerId:null==(c=D.Message.getField(b,14))?void 0:c,partnerName:null==(c=D.Message.getField(b,15))?void 0:c,xbidAdvertiserId:null==(c=D.Message.getField(b,16))?void 0:c,xbidAdvertiserName:null==(c=D.Message.getField(b,17))?void 0:c,mediaPlanId:null==(c=D.Message.getField(b,18))?void 0:c,mediaPlanName:null==(c=D.Message.getField(b,19))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.Dfa7Payload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.Dfa7Payload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.Dfa7Payload;null!=a.advertiserId&&D.Message.setField(b,1,a.advertiserId);null!=a.advertiserName&&D.Message.setField(b,2,a.advertiserName);null!=a.orderId&&D.Message.setField(b,3,a.orderId);null!=a.orderName&&D.Message.setField(b,4,a.orderName);null!=
a.unitOfMeasure&&D.Message.setField(b,5,a.unitOfMeasure);null!=a.unitPriceInMicros&&D.Message.setField(b,6,a.unitPriceInMicros);null!=a.billingInvoiceCode&&D.Message.setField(b,7,a.billingInvoiceCode);null!=a.feeType&&D.Message.setField(b,8,a.feeType);null!=a.billingFeatureType&&D.Message.setField(b,9,a.billingFeatureType);null!=a.purchaseOrderKey&&D.Message.setField(b,10,a.purchaseOrderKey);null!=a.orderNameKey&&D.Message.setField(b,11,a.orderNameKey);null!=a.accountId&&D.Message.setField(b,12,a.accountId);
null!=a.accountName&&D.Message.setField(b,13,a.accountName);null!=a.partnerId&&D.Message.setField(b,14,a.partnerId);null!=a.partnerName&&D.Message.setField(b,15,a.partnerName);null!=a.xbidAdvertiserId&&D.Message.setField(b,16,a.xbidAdvertiserId);null!=a.xbidAdvertiserName&&D.Message.setField(b,17,a.xbidAdvertiserName);null!=a.mediaPlanId&&D.Message.setField(b,18,a.mediaPlanId);null!=a.mediaPlanName&&D.Message.setField(b,19,a.mediaPlanName);return b});
T.moneta.integrator.common.descriptionpayload.Dfa7Payload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.Dfa7Payload;return T.moneta.integrator.common.descriptionpayload.Dfa7Payload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.Dfa7Payload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt64();a.setAdvertiserId(c);break;case 2:c=b.readString();a.setAdvertiserName(c);break;case 3:c=b.readInt64();a.setOrderId(c);break;case 4:c=b.readString();a.setOrderName(c);break;case 5:c=b.readEnum();a.setUnitOfMeasure(c);break;case 6:c=b.readInt64();D.Message.setField(a,6,c);break;case 7:c=b.readString();a.setBillingInvoiceCode(c);break;
case 8:c=b.readEnum();a.setFeeType(c);break;case 9:c=b.readEnum();a.setBillingFeatureType(c);break;case 10:c=b.readString();a.setPurchaseOrderKey(c);break;case 11:c=b.readString();a.setOrderNameKey(c);break;case 12:c=b.readInt64();D.Message.setField(a,12,c);break;case 13:c=b.readString();D.Message.setField(a,13,c);break;case 14:c=b.readInt64();a.setPartnerId(c);break;case 15:c=b.readString();a.setPartnerName(c);break;case 16:c=b.readInt64();D.Message.setField(a,16,c);break;case 17:c=b.readString();
D.Message.setField(a,17,c);break;case 18:c=b.readInt64();a.setMediaPlanId(c);break;case 19:c=b.readString();a.setMediaPlanName(c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.Dfa7Payload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt64(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeInt64(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getField(a,5);null!=c&&b.writeEnum(5,c);c=D.Message.getField(a,6);null!=c&&b.writeInt64(6,c);c=D.Message.getField(a,7);null!=c&&b.writeString(7,c);c=D.Message.getField(a,8);null!=
c&&b.writeEnum(8,c);c=D.Message.getField(a,9);null!=c&&b.writeEnum(9,c);c=D.Message.getField(a,10);null!=c&&b.writeString(10,c);c=D.Message.getField(a,11);null!=c&&b.writeString(11,c);c=D.Message.getField(a,12);null!=c&&b.writeInt64(12,c);c=D.Message.getField(a,13);null!=c&&b.writeString(13,c);c=D.Message.getField(a,14);null!=c&&b.writeInt64(14,c);c=D.Message.getField(a,15);null!=c&&b.writeString(15,c);c=D.Message.getField(a,16);null!=c&&b.writeInt64(16,c);c=D.Message.getField(a,17);null!=c&&b.writeString(17,
c);c=D.Message.getField(a,18);null!=c&&b.writeInt64(18,c);c=D.Message.getField(a,19);null!=c&&b.writeString(19,c)};T.moneta.integrator.common.descriptionpayload.Dfa7Payload.UnitOfMeasure={UNKNOWN_UNIT_OF_MEASURE:0,UNIT_CPM:1,UNIT_CPC:2,UNIT_EA:3,UNIT_P2C:4,UNIT_TOTAL:5};
T.moneta.integrator.common.descriptionpayload.Dfa7Payload.FeeType={UNKNOWN_FEE_TYPE:0,FEE_TYPE_CPC:1,FEE_TYPE_CREDIT:2,FEE_TYPE_DEBIT:3,FEE_TYPE_MINIMUM:4,FEE_TYPE_DISCOUNT:5,FEE_TYPE_DISPLAY_FEE:6,FEE_TYPE_OTHER_ADJUSTMENTS:7,FEE_TYPE_PREMIUM_FEATURES:8,FEE_TYPE_CPM:9};
T.moneta.integrator.common.descriptionpayload.Dfa7Payload.BillingFeatureType={UNKNOWN_BILLING_FEATURE_TYPE:0,CPM_STANDARD:1,CPC_STANDARD:2,MINIMUM:3,PATH_TO_CONVERSION:4,RICHMEDIA_INPAGE:5,RICHMEDIA_EXPANDING:6,RICHMEDIA_FLOATING:7,RICHMEDIA_VIDEO:8,RICHMEDIA_TEASER:9,RICHMEDIA_VPAID:10,RICHMEDIA_INSTREAM:11,PIXEL:12,TRACKING:13,TRAFFICKING_FEATURE:14,CUSTOM_REPORTS:15,E2C_CPM:16,E2C_FLAT:17,DATA_TRANSFER_CPM:18,DATA_TRANSFER_FLAT:19,DATA_TRANSFER_SETUP:20,STARTUP:21,DATA_TRANSFER_HYBRID:22,STATEMENT_OF_WORK:23,
PROVIDED_LIST_REMARKETING:24,PROVIDED_LIST_REMARKETING_SETUP:25,ENHANCED_FORMATS:26,RICHMEDIA_EXPRESS_IMAGE:27,TRACKING_FOR_IMPRESSIONS:28,TRACKING_FOR_CLICKS:29,COMSCORE_VCE:30,JORDAN_MEDIA_COST:31,NIELSEN_OCR:32,DOUBLE_VERIFY:33,INTEGRAL_AD_SCIENCE:34,INTEGRAL_AD_SCIENCE_VIDEO:35,BID_MANAGER_FEE:36,SHOP_LOCAL:37,DBM_DATA_FEE:38,DBM_MEDIA_COST:39,DBM_THIRD_PARTY_FEE:40,DVIP_FUND:41,RICHMEDIA_VAST_REDIRECT:42,DBM_TOTAL_COST:43,DBM_SEPARATE_MEDIA:44,DBM_SEPARATE_PLATFORM:45,DBM_SEPARATE_MEDIA_PLATFORM:46,
RICHMEDIA_VPAID_VIDEO:47};d=T.moneta.integrator.common.descriptionpayload.Dfa7Payload.prototype;d.setAdvertiserId=function(a){D.Message.setField(this,1,a)};d.setAdvertiserName=function(a){D.Message.setField(this,2,a)};d.setOrderId=function(a){D.Message.setField(this,3,a)};d.setOrderName=function(a){D.Message.setField(this,4,a)};d.setUnitOfMeasure=function(a){D.Message.setField(this,5,a)};d.setBillingInvoiceCode=function(a){D.Message.setField(this,7,a)};
d.setFeeType=function(a){D.Message.setField(this,8,a)};d.setBillingFeatureType=function(a){D.Message.setField(this,9,a)};d.setPurchaseOrderKey=function(a){D.Message.setField(this,10,a)};d.setOrderNameKey=function(a){D.Message.setField(this,11,a)};d.setPartnerId=function(a){D.Message.setField(this,14,a)};d.setPartnerName=function(a){D.Message.setField(this,15,a)};d.setMediaPlanId=function(a){D.Message.setField(this,18,a)};d.setMediaPlanName=function(a){D.Message.setField(this,19,a)};
T.moneta.integrator.common.descriptionpayload.Dfa7Payload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.Dfa7Payload,a)};T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.toObject=function(a,b){var c,g={advertiserId:null==(c=D.Message.getField(b,2))?void 0:c,advertiserName:null==(c=D.Message.getField(b,3))?void 0:c,feeType:null==(c=D.Message.getField(b,4))?void 0:c,unitOfMeasure:null==
(c=D.Message.getField(b,5))?void 0:c,unitPrice:(c=b.getUnitPrice())&&T.moneta.integrator.common.Amount.toObject(a,c),poNumber:null==(c=D.Message.getField(b,7))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload;null!=a.advertiserId&&D.Message.setField(b,2,a.advertiserId);null!=a.advertiserName&&D.Message.setField(b,3,a.advertiserName);null!=a.feeType&&D.Message.setField(b,4,a.feeType);null!=a.unitOfMeasure&&
D.Message.setField(b,5,a.unitOfMeasure);a.unitPrice&&D.Message.setWrapperField(b,6,T.moneta.integrator.common.Amount.fromObject(a.unitPrice));null!=a.poNumber&&D.Message.setField(b,7,a.poNumber);return b});
T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload;return T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 2:var c=b.readInt64();a.setAdvertiserId(c);break;case 3:c=b.readString();a.setAdvertiserName(c);break;case 4:c=b.readEnum();a.setFeeType(c);break;case 5:c=b.readEnum();a.setUnitOfMeasure(c);break;case 6:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setUnitPrice(c);break;
case 7:c=b.readString();a.setPoNumber(c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,2);null!=c&&b.writeInt64(2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getField(a,4);null!=c&&b.writeEnum(4,c);c=D.Message.getField(a,5);null!=c&&b.writeEnum(5,c);c=a.getUnitPrice();null!=c&&N(b,6,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,7);null!=c&&b.writeString(7,c)};
T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.FeeType={UNKNOWN_FEE_TYPE:0,PERCENT_OF_MEDIA:1,ADJUSTMENT:2,MINIMUM_FEE:3};T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.UnitOfMeasure={UNKNOWN_UNIT_OF_MEASURE:0,EA:1};d=T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.prototype;d.setAdvertiserId=function(a){D.Message.setField(this,2,a)};d.setAdvertiserName=function(a){D.Message.setField(this,3,a)};
d.setFeeType=function(a){D.Message.setField(this,4,a)};d.setUnitOfMeasure=function(a){D.Message.setField(this,5,a)};d.getUnitPrice=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,6)};d.setUnitPrice=function(a){D.Message.setWrapperField(this,6,a)};d.setPoNumber=function(a){D.Message.setField(this,7,a)};
T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload,a)};T.moneta.integrator.common.descriptionpayload.DsmPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.DsmPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.DsmPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.DsmPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.DsmPayload.toObject=function(a,b){var c,g={proposalId:null==(c=D.Message.getField(b,1))?void 0:c,adName:null==(c=D.Message.getField(b,2))?void 0:c,costType:null==(c=D.Message.getField(b,3))?void 0:c,adRateInMicros:null==(c=D.Message.getField(b,4))?void 0:
c,contractedUnits:null==(c=D.Message.getField(b,5))?void 0:c,adStartDateMillis:null==(c=D.Message.getField(b,6))?void 0:c,adEndDateMillis:null==(c=D.Message.getField(b,7))?void 0:c,customProductTypeName:null==(c=D.Message.getField(b,8))?void 0:c,productId:null==(c=D.Message.getField(b,9))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.DsmPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.DsmPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.DsmPayload;null!=a.proposalId&&D.Message.setField(b,1,a.proposalId);null!=a.adName&&D.Message.setField(b,2,a.adName);null!=a.costType&&D.Message.setField(b,3,a.costType);null!=a.adRateInMicros&&D.Message.setField(b,4,a.adRateInMicros);null!=a.contractedUnits&&
D.Message.setField(b,5,a.contractedUnits);null!=a.adStartDateMillis&&D.Message.setField(b,6,a.adStartDateMillis);null!=a.adEndDateMillis&&D.Message.setField(b,7,a.adEndDateMillis);null!=a.customProductTypeName&&D.Message.setField(b,8,a.customProductTypeName);null!=a.productId&&D.Message.setField(b,9,a.productId);return b});
T.moneta.integrator.common.descriptionpayload.DsmPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.DsmPayload;return T.moneta.integrator.common.descriptionpayload.DsmPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.DsmPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt64();a.setProposalId(c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readEnum();a.setCostType(c);break;case 4:c=b.readInt64();D.Message.setField(a,4,c);break;case 5:c=b.readInt32();D.Message.setField(a,5,c);break;case 6:c=b.readInt64();D.Message.setField(a,6,c);break;case 7:c=b.readInt64();D.Message.setField(a,7,
c);break;case 8:c=b.readString();D.Message.setField(a,8,c);break;case 9:c=b.readInt64();a.setProductId(c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.DsmPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt64(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeEnum(3,c);c=D.Message.getField(a,4);null!=c&&b.writeInt64(4,c);c=D.Message.getField(a,5);null!=c&&b.writeInt32(5,c);c=D.Message.getField(a,6);null!=c&&b.writeInt64(6,c);c=D.Message.getField(a,7);null!=c&&b.writeInt64(7,c);c=D.Message.getField(a,8);null!=
c&&b.writeString(8,c);c=D.Message.getField(a,9);null!=c&&b.writeInt64(9,c)};T.moneta.integrator.common.descriptionpayload.DsmPayload.CostType={UNKNOWN_COST_TYPE:0,CPM:1,CPD:2,FLAT_FEE:3};T.moneta.integrator.common.descriptionpayload.DsmPayload.prototype.setProposalId=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.descriptionpayload.DsmPayload.prototype.setCostType=function(a){D.Message.setField(this,3,a)};
T.moneta.integrator.common.descriptionpayload.DsmPayload.prototype.setProductId=function(a){D.Message.setField(this,9,a)};T.moneta.integrator.common.descriptionpayload.DsmPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.DsmPayload,a)};T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage.toObject=function(a,b){var c,g={type:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage;null!=a.type&&D.Message.setField(b,1,a.type);return b});
T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage;return T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();a.setType(c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeEnum(1,a)};T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage.UsageType={UNKNOWN_USAGE_TYPE:0,ONE_TIME_FEE:1,LOST_FEE:2,DISCOUNT:3};T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage.prototype.setType=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage,a)};T.moneta.integrator.common.descriptionpayload.PromotionDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.PromotionDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.PromotionDetails.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.PromotionDetails.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.PromotionDetails.toObject=function(a,b){var c,g={promotionId:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.PromotionDetails.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.PromotionDetails.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.PromotionDetails;null!=a.promotionId&&D.Message.setField(b,1,a.promotionId);return b});
T.moneta.integrator.common.descriptionpayload.PromotionDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.PromotionDetails;return T.moneta.integrator.common.descriptionpayload.PromotionDetails.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.descriptionpayload.PromotionDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.PromotionDetails.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeString(1,a)};T.moneta.integrator.common.descriptionpayload.PromotionDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.PromotionDetails,a)};T.moneta.integrator.common.descriptionpayload.SeatBasedUsage=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.SeatBasedUsage,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.toObject=function(a,b){var c,g={type:null==(c=D.Message.getField(b,1))?void 0:c,subscriptionNumUnits:null==(c=D.Message.getField(b,2))?void 0:c,subscriptionUnitType:null==(c=D.Message.getField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=
b);return g});D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.SeatBasedUsage;null!=a.type&&D.Message.setField(b,1,a.type);null!=a.subscriptionNumUnits&&D.Message.setField(b,2,a.subscriptionNumUnits);null!=a.subscriptionUnitType&&D.Message.setField(b,3,a.subscriptionUnitType);return b});
T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.SeatBasedUsage;return T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();a.setType(c);break;case 2:c=b.readInt32();D.Message.setField(a,2,c);break;case 3:c=b.readEnum();D.Message.setField(a,3,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeInt32(2,c);c=D.Message.getField(a,3);null!=c&&b.writeEnum(3,c)};
T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.UsageType={UNKNOWN_USAGE_TYPE:0,COMMITMENT_START:1,COMMITMENT_END:2,COMMITMENT_RENEWAL:3,COMMITMENT_BASE_MONTHLY_USAGE:4,COMMITMENT_CHANGE:5,COMMITMENT_CANCELLED:6,USER_DAILY_USAGE:7,PREPAY_TO_POSTPAY_ADJ:8,ADVANCE_FEE:9,COUPON_DISCOUNT:10,ONE_TIME_FEE:11,POSTINI_MIGRATION_CREDIT:12,APPS_MANUAL_MIGRATION_CREDIT:13};
T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.SubscriptionUnitType={UNKNOWN_SUBSCRIPTION_UNIT_TYPE:0,GB:1,TB:2,LICENSE:3};T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.prototype.setType=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.SeatBasedUsage,a)};T.moneta.integrator.common.descriptionpayload.SiteWideUsage=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.SiteWideUsage,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.SiteWideUsage.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.SiteWideUsage.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.SiteWideUsage.toObject=function(a,b){var c,g={type:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.SiteWideUsage.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.SiteWideUsage.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.SiteWideUsage;null!=a.type&&D.Message.setField(b,1,a.type);return b});
T.moneta.integrator.common.descriptionpayload.SiteWideUsage.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.SiteWideUsage;return T.moneta.integrator.common.descriptionpayload.SiteWideUsage.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.descriptionpayload.SiteWideUsage.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();a.setType(c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.SiteWideUsage.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeEnum(1,a)};T.moneta.integrator.common.descriptionpayload.SiteWideUsage.UsageType={UNKNOWN_USAGE_TYPE:0,COMMITMENT_START:1,COMMITMENT_RENEWAL:2};T.moneta.integrator.common.descriptionpayload.SiteWideUsage.prototype.setType=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.descriptionpayload.SiteWideUsage.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.SiteWideUsage,a)};T.moneta.integrator.common.descriptionpayload.EnterprisePayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.EnterprisePayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.EnterprisePayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.EnterprisePayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.EnterprisePayload.toObject=function(a,b){var c,g={skuId:null==(c=D.Message.getField(b,1))?void 0:c,subProduct:null==(c=D.Message.getField(b,2))?void 0:c,usageProtoType:null==(c=D.Message.getField(b,3))?void 0:c,seatBasedUsage:(c=D.Message.getWrapperField(b,
T.moneta.integrator.common.descriptionpayload.SeatBasedUsage,4))&&T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.toObject(a,c),siteWideUsage:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.SiteWideUsage,5))&&T.moneta.integrator.common.descriptionpayload.SiteWideUsage.toObject(a,c),physicalGoodsUsage:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage,6))&&T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage.toObject(a,
c),purchaseOrderId:null==(c=D.Message.getField(b,7))?void 0:c,orderId:null==(c=D.Message.getField(b,8))?void 0:c,subscriptionCustomerName:null==(c=D.Message.getField(b,9))?void 0:c,purchaseOrderIdKey:null==(c=D.Message.getField(b,10))?void 0:c,darDomainName:null==(c=D.Message.getField(b,11))?void 0:c,promotionDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.PromotionDetails,12))&&T.moneta.integrator.common.descriptionpayload.PromotionDetails.toObject(a,c)};a&&(g.$jspbMessageInstance=
b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.EnterprisePayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.EnterprisePayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.EnterprisePayload;null!=a.skuId&&D.Message.setField(b,1,a.skuId);null!=a.subProduct&&D.Message.setField(b,2,a.subProduct);null!=a.usageProtoType&&D.Message.setField(b,3,a.usageProtoType);a.seatBasedUsage&&D.Message.setWrapperField(b,4,
T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.fromObject(a.seatBasedUsage));a.siteWideUsage&&D.Message.setWrapperField(b,5,T.moneta.integrator.common.descriptionpayload.SiteWideUsage.fromObject(a.siteWideUsage));a.physicalGoodsUsage&&D.Message.setWrapperField(b,6,T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage.fromObject(a.physicalGoodsUsage));null!=a.purchaseOrderId&&D.Message.setField(b,7,a.purchaseOrderId);null!=a.orderId&&D.Message.setField(b,8,a.orderId);null!=
a.subscriptionCustomerName&&D.Message.setField(b,9,a.subscriptionCustomerName);null!=a.purchaseOrderIdKey&&D.Message.setField(b,10,a.purchaseOrderIdKey);null!=a.darDomainName&&D.Message.setField(b,11,a.darDomainName);a.promotionDetails&&D.Message.setWrapperField(b,12,T.moneta.integrator.common.descriptionpayload.PromotionDetails.fromObject(a.promotionDetails));return b});
T.moneta.integrator.common.descriptionpayload.EnterprisePayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.EnterprisePayload;return T.moneta.integrator.common.descriptionpayload.EnterprisePayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.EnterprisePayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;case 2:c=b.readEnum();D.Message.setField(a,2,c);break;case 3:c=b.readEnum();D.Message.setField(a,3,c);break;case 4:c=new T.moneta.integrator.common.descriptionpayload.SeatBasedUsage;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.deserializeBinaryFromReader);D.Message.setWrapperField(a,
4,c);break;case 5:c=new T.moneta.integrator.common.descriptionpayload.SiteWideUsage;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.SiteWideUsage.deserializeBinaryFromReader);D.Message.setWrapperField(a,5,c);break;case 6:c=new T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage.deserializeBinaryFromReader);D.Message.setWrapperField(a,6,c);break;case 7:c=b.readString();a.setPurchaseOrderId(c);
break;case 8:c=b.readString();a.setOrderId(c);break;case 9:c=b.readString();D.Message.setField(a,9,c);break;case 10:c=b.readString();D.Message.setField(a,10,c);break;case 11:c=b.readString();D.Message.setField(a,11,c);break;case 12:c=new T.moneta.integrator.common.descriptionpayload.PromotionDetails;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.PromotionDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,12,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.EnterprisePayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeEnum(2,c);c=D.Message.getField(a,3);null!=c&&b.writeEnum(3,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.SeatBasedUsage,4);null!=c&&N(b,4,c,T.moneta.integrator.common.descriptionpayload.SeatBasedUsage.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.SiteWideUsage,
5);null!=c&&N(b,5,c,T.moneta.integrator.common.descriptionpayload.SiteWideUsage.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage,6);null!=c&&N(b,6,c,T.moneta.integrator.common.descriptionpayload.PhysicalGoodsUsage.serializeBinaryToWriter);c=D.Message.getField(a,7);null!=c&&b.writeString(7,c);c=D.Message.getField(a,8);null!=c&&b.writeString(8,c);c=D.Message.getField(a,9);null!=c&&b.writeString(9,c);c=D.Message.getField(a,10);null!=
c&&b.writeString(10,c);c=D.Message.getField(a,11);null!=c&&b.writeString(11,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.PromotionDetails,12);null!=c&&N(b,12,c,T.moneta.integrator.common.descriptionpayload.PromotionDetails.serializeBinaryToWriter)};T.moneta.integrator.common.descriptionpayload.EnterprisePayload.SkuId={UNKNOWN_SKU_ID:0,GAB:1,GAU:2,GA_POSTINI:3,GAL:4,GAB_VAULT:5,GAETP:6,HIRE:7,ARCHIVED_GAU:8,ARCHIVED_GAETP:9};
T.moneta.integrator.common.descriptionpayload.EnterprisePayload.SubProductType={UNKNOWN_SUB_PRODUCT_TYPE:0,APPS:1,VOICE:2,PIKEPLACE:3,MEETINGS:4,DOMAIN_REGISTRATION:5,STORAGE:6,CHROMEBOOKS:7,VAULT:8,COORDINATE:10,GOOGLE_HIRE:11,IDENTITY_PRO:12,GSUITE_ARCHIVED:13};T.moneta.integrator.common.descriptionpayload.EnterprisePayload.UsageProtoType={UNKNOWN_USAGE_PROTO_TYPE:0,SEAT_BASED_USAGE:1,SITE_WIDE_USAGE:2,PHYSICAL_GOODS_USAGE:3};
T.moneta.integrator.common.descriptionpayload.EnterprisePayload.prototype.getPurchaseOrderId=function(){return D.Message.getField(this,7)};T.moneta.integrator.common.descriptionpayload.EnterprisePayload.prototype.setPurchaseOrderId=function(a){D.Message.setField(this,7,a)};T.moneta.integrator.common.descriptionpayload.EnterprisePayload.prototype.setOrderId=function(a){D.Message.setField(this,8,a)};
T.moneta.integrator.common.descriptionpayload.EnterprisePayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.EnterprisePayload,a)};T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails.toObject=function(a,b){var c,g={taxType:null==(c=D.Message.getField(b,1))?void 0:c,voiceFee:null==(c=D.Message.getBooleanField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails;null!=a.taxType&&D.Message.setField(b,1,a.taxType);null!=a.voiceFee&&D.Message.setField(b,2,a.voiceFee);return b});
T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails;return T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();a.setTaxType(c);break;case 2:c=b.readBool();D.Message.setField(a,2,c);break;default:I(b)}return a};T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeBool(2,c)};
T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails.TaxType={UNKNOWN_TAX_TYPE:0,MANDATORY_TAX:1,DISCRETIONARY_TAX:2};T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails.prototype.setTaxType=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails,a)};T.moneta.integrator.common.descriptionpayload.VoiceCallDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.VoiceCallDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.VoiceCallDetails.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.VoiceCallDetails.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.VoiceCallDetails.toObject=function(a,b){var c,g={phoneNumber:null==(c=D.Message.getField(b,1))?void 0:c,displayTimeZone:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.VoiceCallDetails.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.VoiceCallDetails.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.VoiceCallDetails;null!=a.phoneNumber&&D.Message.setField(b,1,a.phoneNumber);null!=a.displayTimeZone&&D.Message.setField(b,2,a.displayTimeZone);return b});
T.moneta.integrator.common.descriptionpayload.VoiceCallDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.VoiceCallDetails;return T.moneta.integrator.common.descriptionpayload.VoiceCallDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.VoiceCallDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setPhoneNumber(c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;default:I(b)}return a};T.moneta.integrator.common.descriptionpayload.VoiceCallDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c)};
T.moneta.integrator.common.descriptionpayload.VoiceCallDetails.prototype.setPhoneNumber=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.descriptionpayload.VoiceCallDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.VoiceCallDetails,a)};T.moneta.integrator.common.descriptionpayload.FiberPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.FiberPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.FiberPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.FiberPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.FiberPayload.toObject=function(a,b){var c,g={usageType:null==(c=D.Message.getField(b,1))?void 0:c,description:null==(c=D.Message.getField(b,2))?void 0:c,showDate:null==(c=D.Message.getBooleanField(b,3))?void 0:c,lineItemMessage:null==(c=D.Message.getField(b,
4))?void 0:c,taxesAndFeesDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails,5))&&T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails.toObject(a,c),voiceCallDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.VoiceCallDetails,6))&&T.moneta.integrator.common.descriptionpayload.VoiceCallDetails.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.FiberPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.FiberPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.FiberPayload;null!=a.usageType&&D.Message.setField(b,1,a.usageType);null!=a.description&&D.Message.setField(b,2,a.description);null!=a.showDate&&D.Message.setField(b,3,a.showDate);null!=a.lineItemMessage&&D.Message.setField(b,4,a.lineItemMessage);
a.taxesAndFeesDetails&&D.Message.setWrapperField(b,5,T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails.fromObject(a.taxesAndFeesDetails));a.voiceCallDetails&&D.Message.setWrapperField(b,6,T.moneta.integrator.common.descriptionpayload.VoiceCallDetails.fromObject(a.voiceCallDetails));return b});
T.moneta.integrator.common.descriptionpayload.FiberPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.FiberPayload;return T.moneta.integrator.common.descriptionpayload.FiberPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.FiberPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();a.setUsageType(c);break;case 2:c=b.readString();a.setDescription(c);break;case 3:c=b.readBool();D.Message.setField(a,3,c);break;case 4:c=b.readEnum();D.Message.setField(a,4,c);break;case 5:c=new T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails.deserializeBinaryFromReader);
D.Message.setWrapperField(a,5,c);break;case 6:c=new T.moneta.integrator.common.descriptionpayload.VoiceCallDetails;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.VoiceCallDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,6,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.FiberPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeBool(3,c);c=D.Message.getField(a,4);null!=c&&b.writeEnum(4,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails,5);null!=c&&N(b,5,c,T.moneta.integrator.common.descriptionpayload.TaxesAndFeesDetails.serializeBinaryToWriter);
c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.VoiceCallDetails,6);null!=c&&N(b,6,c,T.moneta.integrator.common.descriptionpayload.VoiceCallDetails.serializeBinaryToWriter)};T.moneta.integrator.common.descriptionpayload.FiberPayload.UsageType={UNKNOWN_USAGE_TYPE:0,SERVICE:1,EQUIPMENT:2,TAXES_FEES:3,PAY_PER_VIEW:4,OTHER:5,VOICE_CALL:6};
T.moneta.integrator.common.descriptionpayload.FiberPayload.LineItemMessage={UNKNOWN_LINE_ITEM_MESSAGE:0,DATA_GIGABIT:1,DATA_BASIC_100:2,DATA_BROADBAND:3,DATA_MEGABIT:4,DATA_COMMUNITY_GIGABIT:5,DATA_RESIDENTIAL_2_5G:187,DATA_RESIDENTIAL_5G:188,DATA_RESIDENTIAL_10G:189,DATA_SMB_GIGABIT:6,DATA_SMB_100:129,DATA_SMB_250:130,DATA_SMB_1000:131,DATA_SMB_2_5G:190,DATA_SMB_5G:191,DATA_SMB_10G:192,FIBER_INSIDE:7,STATIC_IP_1:8,STATIC_IP_5:9,STATIC_IP_13:132,VIDEO_LIFELINE:10,VIDEO_FULL_VIDEO:11,VIDEO_LOCAL:162,
VIDEO_HBO:12,VIDEO_SPORTS:13,VIDEO_STARZ:14,VIDEO_SHOWTIME:15,VIDEO_HISPANIC:16,VIDEO_NFLREDZONE:17,VIDEO_ESPN_3D:18,VIDEO_CINEMAX:19,VIDEO_MOVIES:20,VIDEO_PREMIUM_ADD_ON:21,VIDEO_FAMILY:134,VIDEO_ALL_IN:144,VOICE_MONTHLY:22,VOICE_USAGE:23,STREAMING_VIDEO_CHARGE_HBO_NOW:145,STREAMING_VIDEO_YOUTUBE_RED:146,STREAMING_AUDIO_CHARGE_SPOTIFY:147,CONSTRUCTION_FEE:24,CONSTRUCTION_FEE_MONTHLY:25,CONSTRUCTION_FEE_MONTHLY_TAXED:26,CONSTRUCTION_FEE_WAIVED:27,INSTALLATION_UPFRONT_FEE:28,INSTALLATION_TERMINATION_FEE:29,
THIN_BRUNO_WARRANTY:30,FAT_BRUNO_WARRANTY:31,FAT_BRUNO_WAIVED:32,THIN_BRUNO:33,THIN_BRUNO_FREE:34,THIN_BRUNO_MONTHLY:35,THIN_BRUNO_MONTHLY_TAXED_UPFRONT:36,THIN_BRUNO_MONTHLY_TAXED:37,THIN_BRUNO_RENTAL_TAXED:38,THIN_BRUNO_WAIVED:39,NEXUS_7_WAIVED:40,CHROME_BOOK_MONTHLY:41,CHROME_BOOK_MONTHLY_TAXED:42,NEST_THERMOSTAT_PURCHASE:43,NEST_THERMOSTAT_CREDIT:44,NEST_CAM_PURCHASE:45,NEST_CAM_CREDIT:46,NEST_PROTECT_PURCHASE:47,NEST_PROTECT_CREDIT:48,VOICE_UPS_POWER_UNIT_PURCHASE:135,VOICE_UPS_POWER_UNIT_CREDIT:136,
VOICE_UPS_EXTERNAL_BATTERY_PURCHASE:137,VOICE_UPS_EXTERNAL_BATTERY_CREDIT:138,GOOGLE_WIFI_PURCHASE:169,GOOGLE_WIFI_CREDIT:179,ANDROID_TV_PURCHASE:170,ANDROID_TV_CREDIT:180,PAY_PER_VIEW_LINE_ITEM_MESSAGE:49,PAY_PER_VIEW_CREDIT:50,VIDEO_ON_DEMAND:51,VIDEO_ON_DEMAND_CREDIT:52,TECH_SUPPORT:53,HOME_REPAIR:54,CREDIT:55,REGISTRATION_FEE_CREDIT:56,CONSTRUCTION_FEE_CREDIT:57,COMMUNITY_BONUS:171,REFERRAL_CREDIT:181,CONSTRUCTION_TERMINATION_FEE:58,THIN_BRUNO_TERMINATION_FEE:59,FAT_BRUNO_TERMINATION_FEE:60,NETWORK_BOX_TERMINATION_FEE:61,
VOICE_BOX_TERMINATION_FEE:126,NEXUS_7_TERMINATION_FEE:62,THIN_BRUNO_ROLLUP:63,THIN_BRUNO_ROLLUP_TAXED_UPFRONT:64,CHROME_BOOK_ROLLUP:65,KANSAS_VIDEO_SERVICE_PROVIDER_FEE:66,MISSOURI_VIDEO_SERVICE_PROVIDER_FEE:67,UTAH_PROVO_FRANCHISE_FEE:68,UTAH_MULTI_CHAN_AV_FEE:69,UTAH_MULTI_CHAN_AV_FEE_CRED:70,TEXAS_FRANCHISE_FEE:71,TEXAS_PEG_FEE:72,CALIFORNIA_FRANCHISE_FEE:73,CALIFORNIA_PEG_FEE:157,GEORGIA_FRANCHISE_FEE:74,ARIZONA_FRANCHISE_FEE:75,TENNESSEE_FRANCHISE_FEE:76,OREGON_FRANCHISE_FEE:77,ALABAMA_FRANCHISE_FEE:165,
KENTUCKY_FRANCHISE_FEE:166,OTHER_PEG_FEE:167,OTHER_FRANCHISE_FEE:168,CITY_RIGHT_OF_WAY_FEE:182,BALANCE_TRANSFER:78,PROMOTIONAL_DISCOUNT:79,APPOINTMENT_ISSUE_CREDIT:80,LOST_EQUIPMENT_FEE:81,EQUIPMENT_CREDIT:82,ACCIDENTAL_VOD_CREDIT:83,OUTAGE_CREDIT:84,OUTAGE_CREDIT_SMB:85,REMOTE_CONTROL_PURCHASE:127,EQUIPMENT_RELOCATION:139,NON_FIBER_EQUIPMENT:140,WALL_FISH:141,CUSTOM_CABLE_ROUTING:142,RECONNECT_FEE:185,RECONNECT_CREDIT:186,DESCRIPTION_PASS_THROUGH:125,VOICE_FEE_1:86,VOICE_FEE_2:87,VOICE_FEE_3:88,
VOICE_FEE_4:89,VOICE_FEE_5:90,VOICE_FEE_6:91,VOICE_FEE_7:92,VOICE_FEE_8:93,VOICE_FEE_9:94,VOICE_FEE_10:95,VOICE_FEE_11:96,VOICE_FEE_12:97,VOICE_FEE_13:98,VOICE_FEE_14:99,VOICE_FEE_15:100,VOICE_FEE_16:101,VOICE_FEE_17:102,VOICE_FEE_18:103,VOICE_FEE_19:104,VOICE_FEE_20:105,VOICE_FEE_21:106,VOICE_FEE_22:107,VOICE_FEE_23:108,VOICE_FEE_24:109,VOICE_FEE_25:110,VOICE_FEE_26:111,VOICE_FEE_27:112,VOICE_FEE_28:113,VOICE_FEE_29:114,VOICE_FEE_30:115,VOICE_FEE_31:116,VOICE_FEE_32:117,VOICE_FEE_33:118,VOICE_FEE_34:119,
VOICE_FEE_35:120,VOICE_FEE_36:121,VOICE_FEE_37:122,VOICE_FEE_38:123,VOICE_FEE_39:124,VOICE_FEE_40:128,VOICE_FEE_41:148,VOICE_FEE_42:149,VOICE_FEE_43:150,VOICE_FEE_44:152,VOICE_FEE_45:153,VOICE_FEE_46:154,VOICE_FEE_47:155,VOICE_FEE_48:156,VOICE_FEE_49:158,VOICE_FEE_50:159,VOICE_FEE_51:160,VOICE_FEE_52:161,VOICE_FEE_53:163,VOICE_FEE_54:164,VOICE_FEE_55:172,VOICE_FEE_56:173,VOICE_FEE_57:174,VOICE_FEE_58:175,VOICE_FEE_59:176,VOICE_FEE_60:177,VOICE_FEE_61:178,VOICE_FEE_62:183,VOICE_FEE_63:184,REGISTRATION_FEE_PAID_VIA_FG:133,
HIGH_COST_BUILD_FEE_PAID_VIA_FG:143,HIGH_COST_BUILD_FEE_REFUND_VIA_FG:151};T.moneta.integrator.common.descriptionpayload.FiberPayload.prototype.setUsageType=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.descriptionpayload.FiberPayload.prototype.setDescription=function(a){D.Message.setField(this,2,a)};
T.moneta.integrator.common.descriptionpayload.FiberPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.FiberPayload,a)};T.moneta.integrator.common.descriptionpayload.GiftCardPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.GiftCardPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.GiftCardPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.GiftCardPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.GiftCardPayload.toObject=function(a,b){var c,g={costType:null==(c=D.Message.getField(b,1))?void 0:c,namespace:null==(c=D.Message.getField(b,2))?void 0:c,vendorProductCode:null==(c=D.Message.getField(b,3))?void 0:c,batchDescription:null==(c=D.Message.getField(b,
4))?void 0:c,giftCardType:null==(c=D.Message.getField(b,5))?void 0:c,eventType:null==(c=D.Message.getField(b,6))?void 0:c,faceValue:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,7))&&T.moneta.integrator.common.Amount.toObject(a,c),commission:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,8))&&T.moneta.integrator.common.Amount.toObject(a,c),discount:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,9))&&T.moneta.integrator.common.Amount.toObject(a,
c),leafRetailerId:null==(c=D.Message.getField(b,10))?void 0:c,denomination:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,11))&&T.moneta.integrator.common.Amount.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.GiftCardPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.GiftCardPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.GiftCardPayload;null!=a.costType&&D.Message.setField(b,1,a.costType);null!=a.namespace&&D.Message.setField(b,2,a.namespace);null!=a.vendorProductCode&&D.Message.setField(b,3,a.vendorProductCode);null!=a.batchDescription&&D.Message.setField(b,
4,a.batchDescription);null!=a.giftCardType&&D.Message.setField(b,5,a.giftCardType);null!=a.eventType&&D.Message.setField(b,6,a.eventType);a.faceValue&&D.Message.setWrapperField(b,7,T.moneta.integrator.common.Amount.fromObject(a.faceValue));a.commission&&D.Message.setWrapperField(b,8,T.moneta.integrator.common.Amount.fromObject(a.commission));a.discount&&D.Message.setWrapperField(b,9,T.moneta.integrator.common.Amount.fromObject(a.discount));null!=a.leafRetailerId&&D.Message.setField(b,10,a.leafRetailerId);
a.denomination&&D.Message.setWrapperField(b,11,T.moneta.integrator.common.Amount.fromObject(a.denomination));return b});T.moneta.integrator.common.descriptionpayload.GiftCardPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.GiftCardPayload;return T.moneta.integrator.common.descriptionpayload.GiftCardPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.GiftCardPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();a.setCostType(c);break;case 2:c=b.readEnum();D.Message.setField(a,2,c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;case 4:c=b.readString();D.Message.setField(a,4,c);break;case 5:c=b.readEnum();D.Message.setField(a,5,c);break;case 6:c=b.readEnum();D.Message.setField(a,6,c);break;case 7:c=new T.moneta.integrator.common.Amount;
b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,7,c);break;case 8:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,8,c);break;case 9:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,9,c);break;case 10:c=b.readString();D.Message.setField(a,10,c);break;
case 11:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,11,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.GiftCardPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeEnum(2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getField(a,5);null!=c&&b.writeEnum(5,c);c=D.Message.getField(a,6);null!=c&&b.writeEnum(6,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,7);null!=c&&N(b,7,
c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,8);null!=c&&N(b,8,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,9);null!=c&&N(b,9,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,10);null!=c&&b.writeString(10,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,11);null!=c&&N(b,11,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter)};
T.moneta.integrator.common.descriptionpayload.GiftCardPayload.CostType={UNKNOWN_COST_TYPE:0,PHYSICAL_CARD_VALUE:1,VIRTUAL_CARD_VALUE:2,VENDOR_FEES:3};T.moneta.integrator.common.descriptionpayload.GiftCardPayload.Namespace={UNKNOWN_NAMESPACE:0,OPEN_LOOP:1,GOOGLE_PLAY:2};T.moneta.integrator.common.descriptionpayload.GiftCardPayload.GiftCardType={UNKNOWN_GIFT_CARD_TYPE:0,POSA:1,ASSISTED:3,SELF_SERVICE:4,ONLINE:5};
T.moneta.integrator.common.descriptionpayload.GiftCardPayload.EventType={UNKNOWN_GIFT_CARD_EVENT_TYPE:0,CREATION:1,PREAUTH_ACTIVATION:2,ACTIVATION:3,REVERSE_ACTIVATION:4,PREAUTH_DEACTIVATION:5,DEACTIVATION:6,REVERSE_DEACTIVATION:7,REDEMPTION:8,CANCELATION:9,VENDOR_NUMBER_UPDATE:10,EXPIRATION:11,EXPIRATION_UPDATE:12,BREAKAGE:13,REVERSE_BREAKAGE:14};T.moneta.integrator.common.descriptionpayload.GiftCardPayload.prototype.setCostType=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.descriptionpayload.GiftCardPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.GiftCardPayload,a)};T.moneta.integrator.common.descriptionpayload.GoogleOnePayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.GoogleOnePayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.GoogleOnePayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.GoogleOnePayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.GoogleOnePayload.toObject=function(a,b){var c,g={description:null==(c=D.Message.getField(b,1))?void 0:c,unitOfMeasure:null==(c=D.Message.getField(b,2))?void 0:c,unitPrice:(c=b.getUnitPrice())&&T.moneta.integrator.common.Amount.toObject(a,c),poNumber:null==
(c=D.Message.getField(b,4))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.GoogleOnePayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.GoogleOnePayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.GoogleOnePayload;null!=a.description&&D.Message.setField(b,1,a.description);null!=a.unitOfMeasure&&D.Message.setField(b,2,a.unitOfMeasure);a.unitPrice&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.Amount.fromObject(a.unitPrice));
null!=a.poNumber&&D.Message.setField(b,4,a.poNumber);return b});T.moneta.integrator.common.descriptionpayload.GoogleOnePayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.GoogleOnePayload;return T.moneta.integrator.common.descriptionpayload.GoogleOnePayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.GoogleOnePayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setDescription(c);break;case 2:c=b.readEnum();a.setUnitOfMeasure(c);break;case 3:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setUnitPrice(c);break;case 4:c=b.readString();a.setPoNumber(c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.GoogleOnePayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeEnum(2,c);c=a.getUnitPrice();null!=c&&N(b,3,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c)};T.moneta.integrator.common.descriptionpayload.GoogleOnePayload.UnitOfMeasure={UNKNOWN_UNIT_OF_MEASURE:0,EACH:1,MONTH:2};d=T.moneta.integrator.common.descriptionpayload.GoogleOnePayload.prototype;
d.setDescription=function(a){D.Message.setField(this,1,a)};d.setUnitOfMeasure=function(a){D.Message.setField(this,2,a)};d.getUnitPrice=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,3)};d.setUnitPrice=function(a){D.Message.setWrapperField(this,3,a)};d.setPoNumber=function(a){D.Message.setField(this,4,a)};
T.moneta.integrator.common.descriptionpayload.GoogleOnePayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.GoogleOnePayload,a)};T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.toObject=function(a,b){var c,g={transactionId:null==(c=D.Message.getField(b,4))?void 0:c,usageType:null==(c=D.Message.getField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload;null!=a.transactionId&&D.Message.setField(b,4,a.transactionId);null!=a.usageType&&D.Message.setField(b,3,a.usageType);return b});
T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload;return T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 4:var c=b.readString();a.setTransactionId(c);break;case 3:c=b.readEnum();a.setUsageType(c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getField(a,3);null!=c&&b.writeEnum(3,c)};T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.UsageType={UNKNOWN_USAGE_TYPE:0,CHARGE:1,CAPTURE_FEE:2,REFUND_FEE:3};
T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.prototype.setTransactionId=function(a){D.Message.setField(this,4,a)};T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.prototype.setUsageType=function(a){D.Message.setField(this,3,a)};T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload,a)};T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload.toObject=function(a,b){var c,g={externalTransactionId:null==(c=D.Message.getField(b,1))?void 0:c,description:null==(c=D.Message.getField(b,2))?void 0:c,lineItemDisplayRank:null==(c=D.Message.getField(b,3))?void 0:
c,stockKeepingUnit:null==(c=D.Message.getField(b,4))?void 0:c,purchaseOrderKey:null==(c=D.Message.getField(b,5))?void 0:c,partnerOrderNumber:null==(c=D.Message.getField(b,6))?void 0:c,unitPrice:(c=b.getUnitPrice())&&T.moneta.integrator.common.Amount.toObject(a,c),shippingTimeMillis:null==(c=D.Message.getField(b,8))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload;null!=a.externalTransactionId&&D.Message.setField(b,1,a.externalTransactionId);null!=a.description&&D.Message.setField(b,2,a.description);null!=a.lineItemDisplayRank&&D.Message.setField(b,3,a.lineItemDisplayRank);
null!=a.stockKeepingUnit&&D.Message.setField(b,4,a.stockKeepingUnit);null!=a.purchaseOrderKey&&D.Message.setField(b,5,a.purchaseOrderKey);null!=a.partnerOrderNumber&&D.Message.setField(b,6,a.partnerOrderNumber);a.unitPrice&&D.Message.setWrapperField(b,7,T.moneta.integrator.common.Amount.fromObject(a.unitPrice));null!=a.shippingTimeMillis&&D.Message.setField(b,8,a.shippingTimeMillis);return b});
T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload;return T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=b.readString();a.setDescription(c);break;case 3:c=b.readInt32();a.setLineItemDisplayRank(c);break;case 4:c=b.readString();a.setStockKeepingUnit(c);break;case 5:c=b.readString();a.setPurchaseOrderKey(c);break;case 6:c=b.readString();D.Message.setField(a,6,c);break;case 7:c=new T.moneta.integrator.common.Amount;
b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setUnitPrice(c);break;case 8:c=b.readInt64();D.Message.setField(a,8,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeInt32(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getField(a,5);null!=c&&b.writeString(5,c);c=D.Message.getField(a,6);null!=c&&b.writeString(6,c);c=a.getUnitPrice();null!=c&&N(b,7,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);
c=D.Message.getField(a,8);null!=c&&b.writeInt64(8,c)};d=T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload.prototype;d.setDescription=function(a){D.Message.setField(this,2,a)};d.setLineItemDisplayRank=function(a){D.Message.setField(this,3,a)};d.setStockKeepingUnit=function(a){D.Message.setField(this,4,a)};d.setPurchaseOrderKey=function(a){D.Message.setField(this,5,a)};d.getUnitPrice=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,7)};
d.setUnitPrice=function(a){D.Message.setWrapperField(this,7,a)};T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload,a)};T.googlesql={};T.googlesql.DeprecatedEncoding=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.googlesql.DeprecatedEncoding,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.googlesql.DeprecatedEncoding.prototype.toObject=function(a){return T.googlesql.DeprecatedEncoding.toObject(a,this)},T.googlesql.DeprecatedEncoding.toObject=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.googlesql.DeprecatedEncoding.ObjectFormat=function(){},T.googlesql.DeprecatedEncoding.fromObject=function(){return new T.googlesql.DeprecatedEncoding});T.googlesql.DeprecatedEncoding.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.googlesql.DeprecatedEncoding;return T.googlesql.DeprecatedEncoding.deserializeBinaryFromReader(b,a)};T.googlesql.DeprecatedEncoding.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)I(b);return a};
T.googlesql.DeprecatedEncoding.serializeBinaryToWriter=function(){};T.googlesql.DeprecatedEncoding.Encoding={DEFAULT_ENCODING:0,DATE_PACKED32:1,DATE_DECIMAL:1,__FIELDFORMAT_ENCODING__SWITCH_MUST_HAVE_A_DEFAULT__:-1};T.googlesql.DeprecatedEncoding.deserialize=function(a){return D.Message.deserializeWithCtor(T.googlesql.DeprecatedEncoding,a)};T.googlesql.FieldFormat=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.googlesql.FieldFormat,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.googlesql.FieldFormat.prototype.toObject=function(a){return T.googlesql.FieldFormat.toObject(a,this)},T.googlesql.FieldFormat.toObject=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c});D.Message.GENERATE_FROM_OBJECT&&(T.googlesql.FieldFormat.ObjectFormat=function(){},T.googlesql.FieldFormat.fromObject=function(){return new T.googlesql.FieldFormat});
T.googlesql.FieldFormat.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.googlesql.FieldFormat;return T.googlesql.FieldFormat.deserializeBinaryFromReader(b,a)};T.googlesql.FieldFormat.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)I(b);return a};T.googlesql.FieldFormat.serializeBinaryToWriter=function(){};
T.googlesql.FieldFormat.Format={DEFAULT_FORMAT:0,DATE:1,TIMESTAMP_SECONDS:2,TIMESTAMP_MILLIS:3,TIMESTAMP_MICROS:4,TIMESTAMP_NANOS:5,DATE_DECIMAL:6,TIME_MICROS:7,DATETIME_MICROS:8,ST_GEOGRAPHY_ENCODED:9,NUMERIC:10,__FIELDFORMAT_TYPE__SWITCH_MUST_HAVE_A_DEFAULT__:-1};T.googlesql.FieldFormat.deserialize=function(a){return D.Message.deserializeWithCtor(T.googlesql.FieldFormat,a)};T.googlesql.TableType={DEFAULT_TABLE_TYPE:0,SQL_TABLE:1,VALUE_TABLE:2};T.googlesql.WireFormatAnnotationEmptyMessage=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.googlesql.WireFormatAnnotationEmptyMessage,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.googlesql.WireFormatAnnotationEmptyMessage.prototype.toObject=function(a){return T.googlesql.WireFormatAnnotationEmptyMessage.toObject(a,this)},T.googlesql.WireFormatAnnotationEmptyMessage.toObject=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.googlesql.WireFormatAnnotationEmptyMessage.ObjectFormat=function(){},T.googlesql.WireFormatAnnotationEmptyMessage.fromObject=function(){return new T.googlesql.WireFormatAnnotationEmptyMessage});T.googlesql.WireFormatAnnotationEmptyMessage.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.googlesql.WireFormatAnnotationEmptyMessage;return T.googlesql.WireFormatAnnotationEmptyMessage.deserializeBinaryFromReader(b,a)};
T.googlesql.WireFormatAnnotationEmptyMessage.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)I(b);return a};T.googlesql.WireFormatAnnotationEmptyMessage.serializeBinaryToWriter=function(){};T.googlesql.WireFormatAnnotationEmptyMessage.deserialize=function(a){return D.Message.deserializeWithCtor(T.googlesql.WireFormatAnnotationEmptyMessage,a)};T.moneta.integrator.common.descriptionpayload.GoogleStorePayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.GoogleStorePayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.toObject=function(a,b){var c,g={userFacingTransactionId:null==(c=D.Message.getField(b,1))?void 0:c,description:null==(c=D.Message.getField(b,2))?void 0:c,lineItemDisplayRank:null==(c=D.Message.getField(b,3))?void 0:c,stockKeepingUnit:null==
(c=D.Message.getField(b,4))?void 0:c,documentId:null==(c=D.Message.getField(b,5))?void 0:c,bundleId:null==(c=D.Message.getField(b,6))?void 0:c,orderCreationTime:null==(c=D.Message.getField(b,7))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.GoogleStorePayload;null!=a.userFacingTransactionId&&D.Message.setField(b,1,a.userFacingTransactionId);null!=a.description&&D.Message.setField(b,2,a.description);null!=a.lineItemDisplayRank&&D.Message.setField(b,3,a.lineItemDisplayRank);
null!=a.stockKeepingUnit&&D.Message.setField(b,4,a.stockKeepingUnit);null!=a.documentId&&D.Message.setField(b,5,a.documentId);null!=a.bundleId&&D.Message.setField(b,6,a.bundleId);null!=a.orderCreationTime&&D.Message.setField(b,7,a.orderCreationTime);return b});
T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.GoogleStorePayload;return T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setUserFacingTransactionId(c);break;case 2:c=b.readString();a.setDescription(c);break;case 3:c=b.readInt32();a.setLineItemDisplayRank(c);break;case 4:c=b.readString();a.setStockKeepingUnit(c);break;case 5:c=b.readString();D.Message.setField(a,5,c);break;case 6:c=b.readInt32();D.Message.setField(a,6,c);break;case 7:c=b.readInt64();
D.Message.setField(a,7,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeInt32(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getField(a,5);null!=c&&b.writeString(5,c);c=D.Message.getField(a,6);null!=c&&b.writeInt32(6,c);c=D.Message.getField(a,7);null!=c&&b.writeInt64(7,c)};
T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.prototype.setUserFacingTransactionId=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.prototype.setDescription=function(a){D.Message.setField(this,2,a)};T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.prototype.setLineItemDisplayRank=function(a){D.Message.setField(this,3,a)};
T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.prototype.setStockKeepingUnit=function(a){D.Message.setField(this,4,a)};T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.GoogleStorePayload,a)};T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.toObject=function(a,b){var c,g={userFacingTransactionId:null==(c=D.Message.getField(b,1))?void 0:c,description:null==(c=D.Message.getField(b,2))?void 0:c,lineItemDisplayRank:null==
(c=D.Message.getField(b,3))?void 0:c,revrecStockKeepingUnit:null==(c=D.Message.getField(b,4))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload;null!=a.userFacingTransactionId&&D.Message.setField(b,1,a.userFacingTransactionId);null!=a.description&&D.Message.setField(b,2,a.description);null!=a.lineItemDisplayRank&&D.Message.setField(b,
3,a.lineItemDisplayRank);null!=a.revrecStockKeepingUnit&&D.Message.setField(b,4,a.revrecStockKeepingUnit);return b});T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload;return T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setUserFacingTransactionId(c);break;case 2:c=b.readString();a.setDescription(c);break;case 3:c=b.readInt32();a.setLineItemDisplayRank(c);break;case 4:c=b.readString();D.Message.setField(a,4,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeInt32(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c)};T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.prototype.setUserFacingTransactionId=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.prototype.setDescription=function(a){D.Message.setField(this,2,a)};T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.prototype.setLineItemDisplayRank=function(a){D.Message.setField(this,3,a)};
T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload,a)};T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload.toObject=function(a,b){var c,g={description:null==(c=D.Message.getField(b,1))?void 0:c,unitOfMeasure:null==(c=D.Message.getField(b,2))?void 0:c,unitPrice:(c=b.getUnitPrice())&&T.moneta.integrator.common.Amount.toObject(a,
c),poNumber:null==(c=D.Message.getField(b,4))?void 0:c,advertiserId:null==(c=D.Message.getField(b,5))?void 0:c,advertiserName:null==(c=D.Message.getField(b,6))?void 0:c,campaignId:null==(c=D.Message.getField(b,7))?void 0:c,campaignName:null==(c=D.Message.getField(b,8))?void 0:c,productDescriptionKey:null==(c=D.Message.getField(b,9))?void 0:c,contractId:null==(c=D.Message.getField(b,10))?void 0:c,contractName:null==(c=D.Message.getField(b,11))?void 0:c,advertiserExternalCustomerId:null==(c=D.Message.getField(b,
12))?void 0:c,partnerId:null==(c=D.Message.getField(b,13))?void 0:c,networkId:null==(c=D.Message.getField(b,14))?void 0:c,proposalId:null==(c=D.Message.getField(b,15))?void 0:c,monthlyPremiumFee:null==(c=D.Message.getField(b,16))?void 0:c,billingInvoiceCode:null==(c=D.Message.getField(b,17))?void 0:c,glAccountNumber:null==(c=D.Message.getField(b,18))?void 0:c,costCenter:null==(c=D.Message.getField(b,19))?void 0:c,glProductCode:null==(c=D.Message.getField(b,20))?void 0:c,taxGlAccount:null==(c=D.Message.getField(b,
21))?void 0:c,glLocationCode:null==(c=D.Message.getField(b,22))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload;null!=a.description&&D.Message.setField(b,1,a.description);null!=a.unitOfMeasure&&D.Message.setField(b,2,a.unitOfMeasure);a.unitPrice&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.Amount.fromObject(a.unitPrice));
null!=a.poNumber&&D.Message.setField(b,4,a.poNumber);null!=a.advertiserId&&D.Message.setField(b,5,a.advertiserId);null!=a.advertiserName&&D.Message.setField(b,6,a.advertiserName);null!=a.campaignId&&D.Message.setField(b,7,a.campaignId);null!=a.campaignName&&D.Message.setField(b,8,a.campaignName);null!=a.productDescriptionKey&&D.Message.setField(b,9,a.productDescriptionKey);null!=a.contractId&&D.Message.setField(b,10,a.contractId);null!=a.contractName&&D.Message.setField(b,11,a.contractName);null!=
a.advertiserExternalCustomerId&&D.Message.setField(b,12,a.advertiserExternalCustomerId);null!=a.partnerId&&D.Message.setField(b,13,a.partnerId);null!=a.networkId&&D.Message.setField(b,14,a.networkId);null!=a.proposalId&&D.Message.setField(b,15,a.proposalId);null!=a.monthlyPremiumFee&&D.Message.setField(b,16,a.monthlyPremiumFee);null!=a.billingInvoiceCode&&D.Message.setField(b,17,a.billingInvoiceCode);null!=a.glAccountNumber&&D.Message.setField(b,18,a.glAccountNumber);null!=a.costCenter&&D.Message.setField(b,
19,a.costCenter);null!=a.glProductCode&&D.Message.setField(b,20,a.glProductCode);null!=a.taxGlAccount&&D.Message.setField(b,21,a.taxGlAccount);null!=a.glLocationCode&&D.Message.setField(b,22,a.glLocationCode);return b});
T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload;return T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setDescription(c);break;case 2:c=b.readEnum();a.setUnitOfMeasure(c);break;case 3:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setUnitPrice(c);break;case 4:c=b.readString();a.setPoNumber(c);break;case 5:c=b.readString();a.setAdvertiserId(c);break;
case 6:c=b.readString();a.setAdvertiserName(c);break;case 7:c=b.readString();a.setCampaignId(c);break;case 8:c=b.readString();D.Message.setField(a,8,c);break;case 9:c=b.readString();D.Message.setField(a,9,c);break;case 10:c=b.readString();D.Message.setField(a,10,c);break;case 11:c=b.readString();D.Message.setField(a,11,c);break;case 12:c=b.readString();D.Message.setField(a,12,c);break;case 13:c=b.readString();a.setPartnerId(c);break;case 14:c=b.readString();D.Message.setField(a,14,c);break;case 15:c=
b.readString();a.setProposalId(c);break;case 16:c=b.readString();D.Message.setField(a,16,c);break;case 17:c=b.readString();a.setBillingInvoiceCode(c);break;case 18:c=b.readString();D.Message.setField(a,18,c);break;case 19:c=b.readString();D.Message.setField(a,19,c);break;case 20:c=b.readString();D.Message.setField(a,20,c);break;case 21:c=b.readString();D.Message.setField(a,21,c);break;case 22:c=b.readString();D.Message.setField(a,22,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeEnum(2,c);c=a.getUnitPrice();null!=c&&N(b,3,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getField(a,5);null!=c&&b.writeString(5,c);c=D.Message.getField(a,6);null!=c&&b.writeString(6,c);c=D.Message.getField(a,7);
null!=c&&b.writeString(7,c);c=D.Message.getField(a,8);null!=c&&b.writeString(8,c);c=D.Message.getField(a,9);null!=c&&b.writeString(9,c);c=D.Message.getField(a,10);null!=c&&b.writeString(10,c);c=D.Message.getField(a,11);null!=c&&b.writeString(11,c);c=D.Message.getField(a,12);null!=c&&b.writeString(12,c);c=D.Message.getField(a,13);null!=c&&b.writeString(13,c);c=D.Message.getField(a,14);null!=c&&b.writeString(14,c);c=D.Message.getField(a,15);null!=c&&b.writeString(15,c);c=D.Message.getField(a,16);null!=
c&&b.writeString(16,c);c=D.Message.getField(a,17);null!=c&&b.writeString(17,c);c=D.Message.getField(a,18);null!=c&&b.writeString(18,c);c=D.Message.getField(a,19);null!=c&&b.writeString(19,c);c=D.Message.getField(a,20);null!=c&&b.writeString(20,c);c=D.Message.getField(a,21);null!=c&&b.writeString(21,c);c=D.Message.getField(a,22);null!=c&&b.writeString(22,c)};
T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload.UnitOfMeasure={UNKNOWN_UNIT_OF_MEASURE:0,EA:1,ACTION:2,BD:3,BO:4,BAG:5,BOX:6,CPC:7,CPM:8,CARTON:9,CASE:10,CENTILITER:11,CENTIMETER:12,CLICK:13,DAY:14,DECILITER:15,DEKAGRAM:16,DOZEN:17,EURO:18,FT:19,FLAT:20,GS:21,GALLON:22,GRAM:23,HR:24,HECTOGRAM:25,IMPRESSION:26,INCH:27,KT:28,KILOGRAM:29,LB:30,LITER:31,MS:32,METER:33,MILLILITER:34,MILLIMETER:35,MONTH:36,MONTH_EACH:37,MONTH_USER:38,OUNCE:39,PD:40,PK:41,PAIR:42,PINT:43,QT:44,QUARTER:45,
REAM:46,ROLL:47,SEMI_ANNUAL:48,SET:49,TAIWAN_DOLLAR:50,TEN_PACK:51,TON:52,TOTAL:53,TUBE:54,USD:55,YARD:56,YEAR:57,YEAR_USER:58};d=T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload.prototype;d.setDescription=function(a){D.Message.setField(this,1,a)};d.setUnitOfMeasure=function(a){D.Message.setField(this,2,a)};d.getUnitPrice=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,3)};d.setUnitPrice=function(a){D.Message.setWrapperField(this,3,a)};
d.setPoNumber=function(a){D.Message.setField(this,4,a)};d.setAdvertiserId=function(a){D.Message.setField(this,5,a)};d.setAdvertiserName=function(a){D.Message.setField(this,6,a)};d.setCampaignId=function(a){D.Message.setField(this,7,a)};d.setPartnerId=function(a){D.Message.setField(this,13,a)};d.setProposalId=function(a){D.Message.setField(this,15,a)};d.setBillingInvoiceCode=function(a){D.Message.setField(this,17,a)};
T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload,a)};T.moneta.integrator.common.descriptionpayload.NovaPayload=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.descriptionpayload.NovaPayload.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.NovaPayload,D.Message);T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets,D.Message);
T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory,D.Message);
T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown,D.Message);T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus=function(a){D.Message.initialize(this,a,0,-1,null,null)};
f.inherits(T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus,D.Message);T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails,D.Message);T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo=function(a){D.Message.initialize(this,a,0,-1,null,null)};
f.inherits(T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo,D.Message);T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription,D.Message);T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};
f.inherits(T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails,D.Message);T.moneta.integrator.common.descriptionpayload.NovaPayload.repeatedFields_=[17];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.NovaPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.NovaPayload.toObject=function(a,b){var c,g={lineItem:D.Message.bytesAsB64(D.Message.getField(b,20)),type:null==(c=D.Message.getField(b,1))?void 0:c,rate:(c=b.getRate())&&T.moneta.integrator.common.Amount.toObject(a,c),countryCode:null==(c=D.Message.getField(b,
3))?void 0:c,dstCountryCode:null==(c=D.Message.getField(b,4))?void 0:c,direction:null==(c=D.Message.getField(b,5))?void 0:c,unlimited:null==(c=D.Message.getBooleanField(b,6))?void 0:c,tethering:null==(c=D.Message.getBooleanField(b,7))?void 0:c,international:null==(c=D.Message.getBooleanField(b,8))?void 0:c,callerPhone:null==(c=D.Message.getField(b,9))?void 0:c,calleePhone:null==(c=D.Message.getField(b,10))?void 0:c,gaiaId:null==(c=D.Message.getField(b,11))?void 0:c,taxBuckets:(c=D.Message.getWrapperField(b,
T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets,12))&&T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.toObject(a,c),startTimestampSec:null==(c=D.Message.getField(b,13))?void 0:c,endTimestampSec:null==(c=D.Message.getField(b,14))?void 0:c,deviceFinancingStatus:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus,15))&&T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus.toObject(a,
c),prorationDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails,16))&&T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails.toObject(a,c),dataBytesByDayList:null==(c=D.Message.getRepeatedField(b,17))?void 0:c,claimInfo:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo,18))&&T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.toObject(a,c),deviceDetails:(c=
D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails,19))&&T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails.toObject(a,c),displayIdentifier:null==(c=D.Message.getField(b,21))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.NovaPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload;null!=a.lineItem&&D.Message.setField(b,20,a.lineItem);null!=a.type&&D.Message.setField(b,1,a.type);a.rate&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.rate));null!=a.countryCode&&D.Message.setField(b,3,
a.countryCode);null!=a.dstCountryCode&&D.Message.setField(b,4,a.dstCountryCode);null!=a.direction&&D.Message.setField(b,5,a.direction);null!=a.unlimited&&D.Message.setField(b,6,a.unlimited);null!=a.tethering&&D.Message.setField(b,7,a.tethering);null!=a.international&&D.Message.setField(b,8,a.international);null!=a.callerPhone&&D.Message.setField(b,9,a.callerPhone);null!=a.calleePhone&&D.Message.setField(b,10,a.calleePhone);null!=a.gaiaId&&D.Message.setField(b,11,a.gaiaId);a.taxBuckets&&D.Message.setWrapperField(b,
12,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.fromObject(a.taxBuckets));null!=a.startTimestampSec&&D.Message.setField(b,13,a.startTimestampSec);null!=a.endTimestampSec&&D.Message.setField(b,14,a.endTimestampSec);a.deviceFinancingStatus&&D.Message.setWrapperField(b,15,T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus.fromObject(a.deviceFinancingStatus));a.prorationDetails&&D.Message.setWrapperField(b,16,T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails.fromObject(a.prorationDetails));
null!=a.dataBytesByDayList&&D.Message.setField(b,17,a.dataBytesByDayList);a.claimInfo&&D.Message.setWrapperField(b,18,T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.fromObject(a.claimInfo));a.deviceDetails&&D.Message.setWrapperField(b,19,T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails.fromObject(a.deviceDetails));null!=a.displayIdentifier&&D.Message.setField(b,21,a.displayIdentifier);return b});
T.moneta.integrator.common.descriptionpayload.NovaPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload;return T.moneta.integrator.common.descriptionpayload.NovaPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 20:var c=b.readBytes();D.Message.setField(a,20,c);break;case 1:c=b.readEnum();a.setType(c);break;case 2:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setRate(c);break;case 3:c=b.readString();a.setCountryCode(c);break;case 4:c=b.readString();D.Message.setField(a,4,c);break;case 5:c=
b.readEnum();a.setDirection(c);break;case 6:c=b.readBool();D.Message.setField(a,6,c);break;case 7:c=b.readBool();D.Message.setField(a,7,c);break;case 8:c=b.readBool();D.Message.setField(a,8,c);break;case 9:c=b.readString();D.Message.setField(a,9,c);break;case 10:c=b.readString();D.Message.setField(a,10,c);break;case 11:c=b;f.asserts.assert(c.nextWireType_==D.BinaryConstants.WireType.FIXED64);c=c.decoder_.readUint64();a.setGaiaId(c);break;case 12:c=new T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets;
b.readMessage(c,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.deserializeBinaryFromReader);D.Message.setWrapperField(a,12,c);break;case 13:c=b.readInt64();D.Message.setField(a,13,c);break;case 14:c=b.readInt64();D.Message.setField(a,14,c);break;case 15:c=new T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus.deserializeBinaryFromReader);D.Message.setWrapperField(a,
15,c);break;case 16:c=new T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,16,c);break;case 17:c=J(b,b.decoder_.readSignedVarint64);D.Message.setField(a,17,c||[]);break;case 18:c=new T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.deserializeBinaryFromReader);
D.Message.setWrapperField(a,18,c);break;case 19:c=new T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,19,c);break;case 21:c=b.readString();D.Message.setField(a,21,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.NovaPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,20);null!=c&&b.writeBytes(20,c);c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=a.getRate();null!=c&&N(b,2,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getField(a,5);null!=c&&b.writeEnum(5,c);c=D.Message.getField(a,6);null!=c&&b.writeBool(6,
c);c=D.Message.getField(a,7);null!=c&&b.writeBool(7,c);c=D.Message.getField(a,8);null!=c&&b.writeBool(8,c);c=D.Message.getField(a,9);null!=c&&b.writeString(9,c);c=D.Message.getField(a,10);null!=c&&b.writeString(10,c);c=D.Message.getField(a,11);null!=c&&null!=c&&(f.asserts.assert(0<=c&&c<D.BinaryConstants.TWO_TO_64),K(b,11,D.BinaryConstants.WireType.FIXED64),b.encoder_.writeUint64(c));c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets,12);null!=c&&N(b,
12,c,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.serializeBinaryToWriter);c=D.Message.getField(a,13);null!=c&&b.writeInt64(13,c);c=D.Message.getField(a,14);null!=c&&b.writeInt64(14,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus,15);null!=c&&N(b,15,c,T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails,
16);null!=c&&N(b,16,c,T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails.serializeBinaryToWriter);c=D.Message.getRepeatedField(a,17);if(0<c.length&&null!=c&&c.length){for(var g=L(b,17),h=0;h<c.length;h++)ua(b.encoder_,c[h]);M(b,g)}c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo,18);null!=c&&N(b,18,c,T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails,
19);null!=c&&N(b,19,c,T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails.serializeBinaryToWriter);c=D.Message.getField(a,21);null!=c&&b.writeString(21,c)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.ItemType={UNKNOWN_ITEM_TYPE:0,DATA_USAGE:1,VOICE_AND_TEXT:2,TAXES_AND_FEES:3,PAYMENT:4,ADJUSTMENT:5,PRIOR_BALANCE:6,UNLIMITED_DATA:7,PREPAID_DATA_ALLOWANCE:8,DATA_REFUND:9,METERED_VOICE:10,METERED_SMS:11,METERED_MMS:12,DEVICE_FINANCING:13,DEVICE_FINANCING_REFUND:15,DEVICE_REPLACEMENT:16,GOOGLE_VOICE_BALANCE:14,DEVICE_INSURANCE_PREMIUM:17,DEVICE_INSURANCE_DEDUCTIBLE:18,ACTIVATION_PROMO_PENALTY:19,REFERRAL_CREDIT:20,SERVICE_CREDIT:21,UNLIMITED_PLAN:22};
T.moneta.integrator.common.descriptionpayload.NovaPayload.Direction={UNKNOWN_DIRECTION:0,INCOMING:1,OUTGOING:2};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.toObject=function(a,b){var c,g={discretionary:(c=Ga(b))&&T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.toObject(a,c),mandatory:(c=Ha(b))&&T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.toObject(a,
c),dependsOnJurisdiction:(c=Ia(b))&&T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets;a.discretionary&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.fromObject(a.discretionary));a.mandatory&&D.Message.setWrapperField(b,
2,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.fromObject(a.mandatory));a.dependsOnJurisdiction&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.fromObject(a.dependsOnJurisdiction));return b});
T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets;return T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.deserializeBinaryFromReader);D.Message.setWrapperField(a,1,c);break;case 2:c=new T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory;
b.readMessage(c,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.deserializeBinaryFromReader);D.Message.setWrapperField(a,2,c);break;case 3:c=new T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.deserializeBinaryFromReader);D.Message.setWrapperField(a,3,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.serializeBinaryToWriter=function(a,b){var c=Ga(a);null!=c&&N(b,1,c,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.serializeBinaryToWriter);c=Ha(a);null!=c&&N(b,2,c,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.serializeBinaryToWriter);c=Ia(a);null!=c&&N(b,3,c,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.serializeBinaryToWriter)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.repeatedFields_=[2];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.toObject=function(a,b){var c,g={bucketTaxAmount:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,1))&&T.moneta.integrator.common.Amount.toObject(a,
c),breakdownList:D.Message.toObjectList(Ja(b),T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown.toObject,a)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory;a.bucketTaxAmount&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Amount.fromObject(a.bucketTaxAmount));a.breakdownList&&D.Message.setRepeatedWrapperField(b,
2,a.breakdownList.map(T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown.fromObject));return b});
T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory;return T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,1,c);break;case 2:c=new T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown.deserializeBinaryFromReader);
D.Message.addToRepeatedWrapperField(a,2,c,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown,void 0);break;default:I(b)}return a};T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.serializeBinaryToWriter=function(a,b){var c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,1);null!=c&&N(b,1,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=Ja(a);0<c.length&&P(b,2,c,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown.serializeBinaryToWriter)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown.toObject=function(a,b){var c,g={taxAmount:(c=b.getTaxAmount())&&T.moneta.integrator.common.Amount.toObject(a,
c),category:null==(c=D.Message.getField(b,2))?void 0:c,details:null==(c=D.Message.getField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown;a.taxAmount&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Amount.fromObject(a.taxAmount));
null!=a.category&&D.Message.setField(b,2,a.category);null!=a.details&&D.Message.setField(b,3,a.details);return b});
T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown;return T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setTaxAmount(c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown.serializeBinaryToWriter=function(a,b){var c=a.getTaxAmount();null!=c&&N(b,1,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown.prototype.getTaxAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,1)};T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown.prototype.setTaxAmount=function(a){D.Message.setWrapperField(this,1,a)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown,a)};var Ja=function(a){return D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.TaxChargeBreakdown,2)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory,a)};
var Ga=function(a){return D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory,1)},Ha=function(a){return D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory,2)},Ia=function(a){return D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.AssessedCategory,3)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.NovaPayload.TaxBuckets,a)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus.toObject=function(a,b){var c,g={unpaidBalance:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,2))&&T.moneta.integrator.common.Amount.toObject(a,c)};a&&(g.$jspbMessageInstance=
b);return g});D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus;a.unpaidBalance&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.unpaidBalance));return b});
T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus;return T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 2:var c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,2,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus.serializeBinaryToWriter=function(a,b){a=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,2);null!=a&&N(b,2,a,T.moneta.integrator.common.Amount.serializeBinaryToWriter)};T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceFinancingStatus,a)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails.toObject=function(a,b){var c,g={seconds:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails;null!=a.seconds&&D.Message.setField(b,1,a.seconds);return b});
T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails;return T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setSeconds(c);break;default:I(b)}return a};T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeInt32(1,a)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails.prototype.getSeconds=function(){return D.Message.getField(this,1)};T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails.prototype.setSeconds=function(a){return D.Message.setField(this,1,a)};T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.NovaPayload.ProrationDetails,a)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.toObject=function(a,b){var c,g={deviceDescription:(c=Ka(b))&&T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo;a.deviceDescription&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription.fromObject(a.deviceDescription));return b});
T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo;return T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription.deserializeBinaryFromReader);D.Message.setWrapperField(a,1,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.serializeBinaryToWriter=function(a,b){a=Ka(a);null!=a&&N(b,1,a,T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription.serializeBinaryToWriter)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription.toObject=function(a,b){var c,g={modelName:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription;null!=a.modelName&&D.Message.setField(b,1,a.modelName);return b});
T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription;return T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;default:I(b)}return a};T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeString(1,a)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription,a)};var Ka=function(a){return D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.DeviceDescription,1)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.NovaPayload.ClaimInfo,a)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails.toObject=function(a,b){var c,g={familyName:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails;null!=a.familyName&&D.Message.setField(b,1,a.familyName);return b});
T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails;return T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;default:I(b)}return a};T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeString(1,a)};
T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.NovaPayload.DeviceDetails,a)};d=T.moneta.integrator.common.descriptionpayload.NovaPayload.prototype;d.setType=function(a){D.Message.setField(this,1,a)};d.getRate=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,2)};d.setRate=function(a){D.Message.setWrapperField(this,2,a)};
d.setCountryCode=function(a){D.Message.setField(this,3,a)};d.getDirection=function(){return D.Message.getField(this,5)};d.setDirection=function(a){return D.Message.setField(this,5,a)};d.setGaiaId=function(a){D.Message.setField(this,11,a)};T.moneta.integrator.common.descriptionpayload.NovaPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.NovaPayload,a)};T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.toObject=function(a,b){var c,g={type:null==(c=D.Message.getField(b,1))?void 0:c,aggregated:null==(c=D.Message.getBooleanField(b,2))?void 0:c,paymentRequestId:null==(c=D.Message.getField(b,3))?void 0:c,vendorRequestId:null==
(c=D.Message.getField(b,4))?void 0:c,vendorUniqueTransactionId:null==(c=D.Message.getField(b,5))?void 0:c,instrumentType:null==(c=D.Message.getField(b,6))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload;null!=a.type&&D.Message.setField(b,1,a.type);null!=a.aggregated&&D.Message.setField(b,2,a.aggregated);null!=a.paymentRequestId&&D.Message.setField(b,3,a.paymentRequestId);null!=a.vendorRequestId&&D.Message.setField(b,
4,a.vendorRequestId);null!=a.vendorUniqueTransactionId&&D.Message.setField(b,5,a.vendorUniqueTransactionId);null!=a.instrumentType&&D.Message.setField(b,6,a.instrumentType);return b});T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload;return T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();a.setType(c);break;case 2:c=b.readBool();D.Message.setField(a,2,c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;case 4:c=b.readString();D.Message.setField(a,4,c);break;case 5:c=b.readString();D.Message.setField(a,5,c);break;case 6:c=b.readInt32();a.setInstrumentType(c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeBool(2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getField(a,5);null!=c&&b.writeString(5,c);c=D.Message.getField(a,6);null!=c&&b.writeInt32(6,c)};
T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.SettlementItemType={UNKNOWN_SETTLEMENT_ITEM_TYPE:0,PAYMENT:1,DISBURSEMENT:2,REFUND:3,REFUND_FAILURE:4,CHARGEBACK:5,PROCESSOR_FEE:6,PROCESSOR_ADJUSTMENT:7,REVERSE_CHARGEBACK:8,CURRENCY_CONVERSION_COMPENSATION:9,DISBURSEMENT_FAILURE:10,PROCESSOR_FX_ADJUSTMENT:11,PAYMENT_FAILURE:12,PROCESSOR_HOLD:13,PROCESSOR_HOLD_RELEASE:14,ARGENTINA_VAT_WITHHOLDING:17,ARGENTINA_PROCESSOR_FEE_VAT:18,ARGENTINA_PROCESSOR_FEE_VAT_PERCEPTION:19,INTRAGROUP:20,
WRITE_OFF:21,JAPAN_WITHHOLDING_TAX:22,ARGENTINA_IIBB_PERCEPTION_TAX:23,PROCESSOR_FEE_VAT:24,PROCESSOR_FEE_VAT_PAYABLE:25,IMALI_PROCESSOR_FEE:26,DCB_PROCESSOR_FEE:27,DCB_INTERNATIONAL_WITHHOLDING_TAX:28,VAT_EXPENSE:29};T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.prototype.setType=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.prototype.setInstrumentType=function(a){D.Message.setField(this,6,a)};
T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload,a)};T.moneta.integrator.common.descriptionpayload.PlayMusicPayload=function(a){D.Message.initialize(this,a,0,-1,null,T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.oneofGroups_)};f.inherits(T.moneta.integrator.common.descriptionpayload.PlayMusicPayload,D.Message);T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage,D.Message);
T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval,D.Message);T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.oneofGroups_=[[1]];T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicServiceCase={MUSIC_SERVICE_NOT_SET:0,USAGE:1};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.toObject=function(a,b){var c,g={usage:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage,1))&&T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.toObject(a,
c)};a&&(g.$jspbMessageInstance=b);return g});D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.PlayMusicPayload;a.usage&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.fromObject(a.usage));return b});
T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.PlayMusicPayload;return T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,1,T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.oneofGroups_[0],c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.serializeBinaryToWriter=function(a,b){a=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage,1);null!=a&&N(b,1,a,T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.serializeBinaryToWriter)};T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.UsageType={UNKNOWN_USAGE_TYPE:0,LOCKER:1,SUBSCRIPTION:2,SALES:3,PREVIEW:4,PROMO:5,SHARE:6,LYRICS:7,FREE_RADIO:8,SUBSCRIPTION_FEE:1001};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.toObject=function(a,b){var c,g={region:null==(c=D.Message.getField(b,1))?void 0:c,reportingPeriodInterval:(c=La(b))&&T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval.toObject(a,
c),usageType:null==(c=D.Message.getField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage;null!=a.region&&D.Message.setField(b,1,a.region);a.reportingPeriodInterval&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval.fromObject(a.reportingPeriodInterval));
null!=a.usageType&&D.Message.setField(b,3,a.usageType);return b});T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage;return T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=new T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval.deserializeBinaryFromReader);D.Message.setWrapperField(a,2,c);break;case 3:c=b.readEnum();a.setUsageType(c);
break;default:I(b)}return a};T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=La(a);null!=c&&N(b,2,c,T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeEnum(3,c)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval.toObject=function(a,b){var c,g={inclusiveStartMillis:null==(c=D.Message.getField(b,1))?void 0:c,exclusiveEndMillis:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=
b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval;null!=a.inclusiveStartMillis&&D.Message.setField(b,1,a.inclusiveStartMillis);null!=a.exclusiveEndMillis&&D.Message.setField(b,2,a.exclusiveEndMillis);return b});
T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval;return T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt64();D.Message.setField(a,1,c);break;case 2:c=b.readInt64();D.Message.setField(a,2,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt64(1,c);c=D.Message.getField(a,2);null!=c&&b.writeInt64(2,c)};T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval,a)};
var La=function(a){return D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.Interval,2)};T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.prototype.setUsageType=function(a){D.Message.setField(this,3,a)};T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.MusicUsage,a)};
T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.PlayMusicPayload,a)};T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.toObject=function(a,b){var c,g={description:null==(c=D.Message.getField(b,1))?void 0:c,unitPrice:(c=b.getUnitPrice())&&T.moneta.integrator.common.Amount.toObject(a,c),salesOrderId:null==(c=D.Message.getField(b,
3))?void 0:c,googlePartNumber:null==(c=D.Message.getField(b,4))?void 0:c,universalProductCode:null==(c=D.Message.getField(b,5))?void 0:c,buyerPartNumber:null==(c=D.Message.getField(b,6))?void 0:c,moveOrderNumber:null==(c=D.Message.getField(b,7))?void 0:c,salesOrderLineNumber:null==(c=D.Message.getField(b,8))?void 0:c,purchaseOrderLineNumber:null==(c=D.Message.getField(b,9))?void 0:c,sourceReferenceId:null==(c=D.Message.getField(b,10))?void 0:c,sourceReferenceType:null==(c=D.Message.getField(b,11))?
void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload;null!=a.description&&D.Message.setField(b,1,a.description);a.unitPrice&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.unitPrice));null!=a.salesOrderId&&D.Message.setField(b,
3,a.salesOrderId);null!=a.googlePartNumber&&D.Message.setField(b,4,a.googlePartNumber);null!=a.universalProductCode&&D.Message.setField(b,5,a.universalProductCode);null!=a.buyerPartNumber&&D.Message.setField(b,6,a.buyerPartNumber);null!=a.moveOrderNumber&&D.Message.setField(b,7,a.moveOrderNumber);null!=a.salesOrderLineNumber&&D.Message.setField(b,8,a.salesOrderLineNumber);null!=a.purchaseOrderLineNumber&&D.Message.setField(b,9,a.purchaseOrderLineNumber);null!=a.sourceReferenceId&&D.Message.setField(b,
10,a.sourceReferenceId);null!=a.sourceReferenceType&&D.Message.setField(b,11,a.sourceReferenceType);return b});T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload;return T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setDescription(c);break;case 2:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setUnitPrice(c);break;case 3:c=b.readString();a.setSalesOrderId(c);break;case 4:c=b.readString();D.Message.setField(a,4,c);break;case 5:c=b.readString();D.Message.setField(a,
5,c);break;case 6:c=b.readString();D.Message.setField(a,6,c);break;case 7:c=b.readString();D.Message.setField(a,7,c);break;case 8:c=b.readString();D.Message.setField(a,8,c);break;case 9:c=b.readString();D.Message.setField(a,9,c);break;case 10:c=b.readString();D.Message.setField(a,10,c);break;case 11:c=b.readString();D.Message.setField(a,11,c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=a.getUnitPrice();null!=c&&N(b,2,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getField(a,5);null!=c&&b.writeString(5,c);c=D.Message.getField(a,6);null!=c&&b.writeString(6,c);c=D.Message.getField(a,
7);null!=c&&b.writeString(7,c);c=D.Message.getField(a,8);null!=c&&b.writeString(8,c);c=D.Message.getField(a,9);null!=c&&b.writeString(9,c);c=D.Message.getField(a,10);null!=c&&b.writeString(10,c);c=D.Message.getField(a,11);null!=c&&b.writeString(11,c)};T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.prototype.setDescription=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.prototype.getUnitPrice=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,2)};T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.prototype.setUnitPrice=function(a){D.Message.setWrapperField(this,2,a)};T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.prototype.setSalesOrderId=function(a){D.Message.setField(this,3,a)};
T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload,a)};T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.toObject=function(a,b){var c,g={transactionId:null==(c=D.Message.getField(b,1))?void 0:c,usageType:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload;null!=a.transactionId&&D.Message.setField(b,1,a.transactionId);null!=a.usageType&&D.Message.setField(b,2,a.usageType);return b});
T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload;return T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setTransactionId(c);break;case 2:c=b.readEnum();a.setUsageType(c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeEnum(2,c)};T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.UsageType={UNKNOWN_USAGE_TYPE:0,ACF_PAYOUT:1};T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.prototype.setTransactionId=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.prototype.setUsageType=function(a){D.Message.setField(this,2,a)};T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload,a)};T.moneta.integrator.common.descriptionpayload.XfpPayload=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.descriptionpayload.XfpPayload,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.XfpPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.XfpPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.XfpPayload.toObject=function(a,b){var c,g={costType:null==(c=D.Message.getField(b,1))?void 0:c,productType:null==(c=D.Message.getField(b,2))?void 0:c,rateType:null==(c=D.Message.getField(b,3))?void 0:c,rateMicros:null==(c=D.Message.getField(b,4))?void 0:
c,itemName:null==(c=D.Message.getField(b,5))?void 0:c,itemNameMessage:null==(c=D.Message.getField(b,6))?void 0:c,itemNameCustomNote:null==(c=D.Message.getField(b,7))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.XfpPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.XfpPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.XfpPayload;null!=a.costType&&D.Message.setField(b,1,a.costType);null!=a.productType&&D.Message.setField(b,2,a.productType);null!=a.rateType&&D.Message.setField(b,3,a.rateType);null!=a.rateMicros&&D.Message.setField(b,4,a.rateMicros);null!=a.itemName&&
D.Message.setField(b,5,a.itemName);null!=a.itemNameMessage&&D.Message.setField(b,6,a.itemNameMessage);null!=a.itemNameCustomNote&&D.Message.setField(b,7,a.itemNameCustomNote);return b});T.moneta.integrator.common.descriptionpayload.XfpPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.XfpPayload;return T.moneta.integrator.common.descriptionpayload.XfpPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.XfpPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();a.setCostType(c);break;case 2:c=b.readEnum();a.setProductType(c);break;case 3:c=b.readEnum();D.Message.setField(a,3,c);break;case 4:c=b.readInt64();D.Message.setField(a,4,c);break;case 5:c=b.readString();D.Message.setField(a,5,c);break;case 6:c=b.readEnum();D.Message.setField(a,6,c);break;case 7:c=b.readString();D.Message.setField(a,7,
c);break;default:I(b)}return a};T.moneta.integrator.common.descriptionpayload.XfpPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeEnum(2,c);c=D.Message.getField(a,3);null!=c&&b.writeEnum(3,c);c=D.Message.getField(a,4);null!=c&&b.writeInt64(4,c);c=D.Message.getField(a,5);null!=c&&b.writeString(5,c);c=D.Message.getField(a,6);null!=c&&b.writeEnum(6,c);c=D.Message.getField(a,7);null!=c&&b.writeString(7,c)};
T.moneta.integrator.common.descriptionpayload.XfpPayload.CostType={UNKNOWN_COST_TYPE:0,COST_TYPE_CPM:1,COST_TYPE_DFA_CPM:2,COST_TYPE_CPA:3,COST_TYPE_PREMIUM_FEATURE:4,COST_TYPE_MINIMUM_MANDATORY_USAGE:5,COST_TYPE_DISCOUNT:6,COST_TYPE_FEE:7,COST_TYPE_CPC:8,COST_TYPE_DFA_CPC:9};T.moneta.integrator.common.descriptionpayload.XfpPayload.ProductType={UNKNOWN_PRODUCT_TYPE:0,NONE:1,NETWORK:2,VIDEO:3,MOBILE:4,RICHMEDIA:5,DFP_AUDIENCE:6,DSM:7,DAI_LINEAR_TV:8};
T.moneta.integrator.common.descriptionpayload.XfpPayload.RateType={UNKNOWN_RATE_TYPE:0,RATE_TYPE_UNKNOWN:1,RATE_TYPE_CPM:2,RATE_TYPE_CPC:3,RATE_TYPE_CPA:4,RATE_TYPE_PER_SEAT:5,RATE_TYPE_OPTIMIZATION:6};
T.moneta.integrator.common.descriptionpayload.XfpPayload.ItemNameMessage={UNKNOWN_ITEM_NAME_MESSAGE:0,ADSERVING_RICH_MEDIA:1,ADSERVING_HOUSE_ADS:2,ADSERVING_OTHER:3,ADSERVING_UNFILLED:4,ADSERVING_VASTREDIRECTS:5,ADSERVING_VASTHOSTED:6,ADSERVING_VASTNONHOSTED:7,ADSERVING_MOBILE:8,ADSERVING_RM_FLASH_IN_FLASH:9,ADSERVING_RM_FLOATING_EXPANDING:10,ADSERVING_RM_IN_PAGE:11,ADSERVING_RM_VIDEO:12,ADSERVING_VAST_VIDEO_GOOGLE_HOSTED:13,ADSERVING_VAST_VIDEO_3RD_PARTY_HOSTED:14,ADSERVING_VAST_OVERLAY_GOOGLE_HOSTED:15,
ADSERVING_VAST_OVERLAY_3RD_PARTY_HOSTED:16,ADSERVING_VAST_REDIRECT_WITH_LINEAR:17,ADSERVING_VAST_REDIRECT_NONLINEAR_ONLY:18,ADSERVING_DFP_AUDIENCE_FIRST_PARTY_SEGMENTS:19,ADSERVING_DFP_AUDIENCE_THIRD_PARTY_SEGMENTS:20,ADSERVING_DCM_MANAGER_PUBLISHER_PAID:21,ADSERVING_ADVANCE_FORMATS_PUBLISHER_PAID:22,ADSERVING_IN_BANNER_VIDEO_VPAID_PUBLISHER_PAID:23,ADSERVING_TEASER_AD_PUBLISHER_PAID:24,ADSERVING_IN_PAGE_PUBLISHER_PAID:25,ADSERVING_IN_STREAM_PUBLISHER_PAID:26,ADSERVING_ENHANCED_FORMAT_PUBLISHER_PAID:27,
ADSERVING_SMALL_BUSINESS_VIDEO:28,ADSERVING_GRP_NIELSEN_OCR_DISPLAY:29,ADSERVING_GRP_NIELSEN_OCR_VIDEO:30,ADSERVING_DYNAMIC_AD_INSERTION_NON_DFP_AD_SERVING:31,ADSERVING_DYNAMIC_AD_INSERTION_DFP_AD_SERVING_NONHOSTED:32,ADSERVING_DYNAMIC_AD_INSERTION:33,PREMIUM_TEXT_LINK:34,PREMIUM_CLICK_TRACKER_PUBLISHER_PAID:35,FEATURE_OPTIMIZATION:36,FEATURE_DSM_MONTHLY_SERVICE_FEE:37,SETUP_FEE:38,CUSTOM_REPORT_FEE:39,DATA_TRANSFER_FEE:40,CONSULTING_FEE:41,MOBILE_SDK_AD_SERVING_USAGE_CREDIT:42,AD_MOB_AD_SERVING_USAGE_CREDIT:43,
ADSENSE_ADEX_USAGE_CREDIT:44,AD_MOB_MOBILE_UPLIFT_USAGE_CREDIT:45,AD_MOB_VIDEO_UPLIFT_USAGE_CREDIT:46,MOBILE_SDK_MOBILE_UPLIFT_USAGE_CREDIT:47,MOBILE_SDK_VIDEO_UPLIFT_USAGE_CREDIT:48,MINIMUM_DFP_AUDIENCE:49,MINIMUM_DSM:50,MINIMUM_MOBILE:51,MINIMUM_RICHMEDIA:52,MINIMUM_RICHMEDIA_MOBILE:53,MINIMUM_VIDEO:54,MINIMUM_VIDEO_MOBILE:55,MINIMUM_VIDEO_RICHMEDIA:56,MINIMUM_VIDEO_RICHMEDIA_MOBILE:57,MINIMUM_CORECOMBO:58,MINIMUM_CORECOMBO_MOBILE:59,MINIMUM_CORECOMBO_RICHMEDIA:60,MINIMUM_CORECOMBO_RICHMEDIA_MOBILE:61,
MINIMUM_CORECOMBO_VIDEO:62,MINIMUM_CORECOMBO_VIDEO_MOBILE:63,MINIMUM_CORECOMBO_VIDEO_RICHMEDIA:64,MINIMUM_CORECOMBO_VIDEO_RICHMEDIA_MOBILE:65,ADSERVING_DAI_LINEAR_TV_BASE_FEE:66,ADSERVING_DAI_LINEAR_TV_SMART_AD_CATALOG:67,ADSERVING_DAI_LINEAR_TV_ADVANCED_AUDIENCE_DECISIONING:68,ADSERVING_DAI_LINEAR_TV_HBBTV_DAI:69,ADSERVING_DAI_LINEAR_TV_ATSC_DAI:70,ADSERVING_DAI_LINEAR_TV_PROJECT_OAR:71,MINIMUM_DAI_LINEAR_TV:72};
T.moneta.integrator.common.descriptionpayload.XfpPayload.prototype.setCostType=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.descriptionpayload.XfpPayload.prototype.setProductType=function(a){D.Message.setField(this,2,a)};T.moneta.integrator.common.descriptionpayload.XfpPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.XfpPayload,a)};T.moneta.integrator.common.descriptionpayload.DescriptionPayload=function(a){D.Message.initialize(this,a,0,-1,null,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_)};f.inherits(T.moneta.integrator.common.descriptionpayload.DescriptionPayload,D.Message);T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_=[[2,1,5,24,29,9,20,12,14,7,21,4,10,6,16,28,22,25,17,18,11,3,19,23,8,15,13,26,27]];
T.moneta.integrator.common.descriptionpayload.DescriptionPayload.ProductPayloadCase={PRODUCT_PAYLOAD_NOT_SET:0,ADSENSE_PAYLOAD:2,ADWORDS_PAYLOAD:1,ANALYTICS_PAYLOAD:5,ANDROID_OEM_PAYLOAD:24,ANDROID_SEARCH_PROVIDER_PAYLOAD:29,CHECKOUT_PAYLOAD:9,CLOUD_OFFLINE_BUYER_PAYLOAD:20,CLOUD_PAYLOAD:12,DBM_PAYLOAD:14,DFA7_PAYLOAD:7,DOUBLECLICK_SEARCH_PAYLOAD:21,DSM_PAYLOAD:4,ENTERPRISE_PAYLOAD:10,FIBER_PAYLOAD:6,GIFT_CARD_PAYLOAD:16,GOOGLE_ONE_PAYLOAD:28,GOOGLE_STANDARD_PAYMENT_PAYLOAD:22,GOOGLE_STORE_B2B_PAYLOAD:25,
GOOGLE_STORE_PAYLOAD:17,MANUAL_MONETIZATION_PAYLOAD:18,NOVA_PAYLOAD:11,PLAY_MUSIC_PAYLOAD:3,RETAIL_HARDWARE_BUYER_PAYLOAD:19,SALES_INCENTIVES_PARTNER_PAYLOAD:23,XFP_PAYLOAD:8,IMMEDIATE_PURCHASE_DEFAULT_PAYLOAD:15,ADS4_PAYLOAD:13,CARRIER_CHARGE_PAYLOAD:26,PAYMENT_PROCESSOR_PAYLOAD:27};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.descriptionpayload.DescriptionPayload.prototype.toObject=function(a){return T.moneta.integrator.common.descriptionpayload.DescriptionPayload.toObject(a,this)},T.moneta.integrator.common.descriptionpayload.DescriptionPayload.toObject=function(a,b){var c,g={adsensePayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.AdSensePayload,2))&&T.moneta.integrator.common.descriptionpayload.AdSensePayload.toObject(a,c),
adwordsPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.AdWordsPayload,1))&&T.moneta.integrator.common.descriptionpayload.AdWordsPayload.toObject(a,c),analyticsPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.AnalyticsPayload,5))&&T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.toObject(a,c),androidOemPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.AndroidOemPayload,24))&&T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.toObject(a,
c),androidSearchProviderPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload,29))&&T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload.toObject(a,c),checkoutPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.CheckoutPayload,9))&&T.moneta.integrator.common.descriptionpayload.CheckoutPayload.toObject(a,c),cloudOfflineBuyerPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload,
20))&&T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload.toObject(a,c),cloudPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.CloudPayload,12))&&T.moneta.integrator.common.descriptionpayload.CloudPayload.toObject(a,c),dbmPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.DbmPayload,14))&&T.moneta.integrator.common.descriptionpayload.DbmPayload.toObject(a,c),dfa7Payload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.Dfa7Payload,
7))&&T.moneta.integrator.common.descriptionpayload.Dfa7Payload.toObject(a,c),doubleclickSearchPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload,21))&&T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.toObject(a,c),dsmPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.DsmPayload,4))&&T.moneta.integrator.common.descriptionpayload.DsmPayload.toObject(a,c),enterprisePayload:(c=D.Message.getWrapperField(b,
T.moneta.integrator.common.descriptionpayload.EnterprisePayload,10))&&T.moneta.integrator.common.descriptionpayload.EnterprisePayload.toObject(a,c),fiberPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.FiberPayload,6))&&T.moneta.integrator.common.descriptionpayload.FiberPayload.toObject(a,c),giftCardPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.GiftCardPayload,16))&&T.moneta.integrator.common.descriptionpayload.GiftCardPayload.toObject(a,
c),googleOnePayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.GoogleOnePayload,28))&&T.moneta.integrator.common.descriptionpayload.GoogleOnePayload.toObject(a,c),googleStandardPaymentPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload,22))&&T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.toObject(a,c),googleStoreB2bPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload,
25))&&T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload.toObject(a,c),googleStorePayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.GoogleStorePayload,17))&&T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.toObject(a,c),manualMonetizationPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload,18))&&T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload.toObject(a,
c),novaPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.NovaPayload,11))&&T.moneta.integrator.common.descriptionpayload.NovaPayload.toObject(a,c),playMusicPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.PlayMusicPayload,3))&&T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.toObject(a,c),retailHardwareBuyerPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload,
19))&&T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.toObject(a,c),salesIncentivesPartnerPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload,23))&&T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.toObject(a,c),xfpPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.XfpPayload,8))&&T.moneta.integrator.common.descriptionpayload.XfpPayload.toObject(a,c),
immediatePurchaseDefaultPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload,15))&&T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.toObject(a,c),ads4Payload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.Ads4Payload,13))&&T.moneta.integrator.common.descriptionpayload.Ads4Payload.toObject(a,c),carrierChargePayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.CarrierChargePayload,
26))&&T.moneta.integrator.common.descriptionpayload.CarrierChargePayload.toObject(a,c),paymentProcessorPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload,27))&&T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.descriptionpayload.DescriptionPayload.ObjectFormat=function(){},T.moneta.integrator.common.descriptionpayload.DescriptionPayload.fromObject=function(a){var b=new T.moneta.integrator.common.descriptionpayload.DescriptionPayload;a.adsensePayload&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.descriptionpayload.AdSensePayload.fromObject(a.adsensePayload));a.adwordsPayload&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.descriptionpayload.AdWordsPayload.fromObject(a.adwordsPayload));
a.analyticsPayload&&D.Message.setWrapperField(b,5,T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.fromObject(a.analyticsPayload));a.androidOemPayload&&D.Message.setWrapperField(b,24,T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.fromObject(a.androidOemPayload));a.androidSearchProviderPayload&&D.Message.setWrapperField(b,29,T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload.fromObject(a.androidSearchProviderPayload));a.checkoutPayload&&D.Message.setWrapperField(b,
9,T.moneta.integrator.common.descriptionpayload.CheckoutPayload.fromObject(a.checkoutPayload));a.cloudOfflineBuyerPayload&&D.Message.setWrapperField(b,20,T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload.fromObject(a.cloudOfflineBuyerPayload));a.cloudPayload&&D.Message.setWrapperField(b,12,T.moneta.integrator.common.descriptionpayload.CloudPayload.fromObject(a.cloudPayload));a.dbmPayload&&D.Message.setWrapperField(b,14,T.moneta.integrator.common.descriptionpayload.DbmPayload.fromObject(a.dbmPayload));
a.dfa7Payload&&D.Message.setWrapperField(b,7,T.moneta.integrator.common.descriptionpayload.Dfa7Payload.fromObject(a.dfa7Payload));a.doubleclickSearchPayload&&D.Message.setWrapperField(b,21,T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.fromObject(a.doubleclickSearchPayload));a.dsmPayload&&D.Message.setWrapperField(b,4,T.moneta.integrator.common.descriptionpayload.DsmPayload.fromObject(a.dsmPayload));a.enterprisePayload&&D.Message.setWrapperField(b,10,T.moneta.integrator.common.descriptionpayload.EnterprisePayload.fromObject(a.enterprisePayload));
a.fiberPayload&&D.Message.setWrapperField(b,6,T.moneta.integrator.common.descriptionpayload.FiberPayload.fromObject(a.fiberPayload));a.giftCardPayload&&D.Message.setWrapperField(b,16,T.moneta.integrator.common.descriptionpayload.GiftCardPayload.fromObject(a.giftCardPayload));a.googleOnePayload&&D.Message.setWrapperField(b,28,T.moneta.integrator.common.descriptionpayload.GoogleOnePayload.fromObject(a.googleOnePayload));a.googleStandardPaymentPayload&&D.Message.setWrapperField(b,22,T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.fromObject(a.googleStandardPaymentPayload));
a.googleStoreB2bPayload&&D.Message.setWrapperField(b,25,T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload.fromObject(a.googleStoreB2bPayload));a.googleStorePayload&&D.Message.setWrapperField(b,17,T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.fromObject(a.googleStorePayload));a.manualMonetizationPayload&&D.Message.setWrapperField(b,18,T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload.fromObject(a.manualMonetizationPayload));a.novaPayload&&
D.Message.setWrapperField(b,11,T.moneta.integrator.common.descriptionpayload.NovaPayload.fromObject(a.novaPayload));a.playMusicPayload&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.fromObject(a.playMusicPayload));a.retailHardwareBuyerPayload&&D.Message.setWrapperField(b,19,T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.fromObject(a.retailHardwareBuyerPayload));a.salesIncentivesPartnerPayload&&D.Message.setWrapperField(b,23,
T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.fromObject(a.salesIncentivesPartnerPayload));a.xfpPayload&&D.Message.setWrapperField(b,8,T.moneta.integrator.common.descriptionpayload.XfpPayload.fromObject(a.xfpPayload));a.immediatePurchaseDefaultPayload&&D.Message.setWrapperField(b,15,T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.fromObject(a.immediatePurchaseDefaultPayload));a.ads4Payload&&D.Message.setWrapperField(b,13,T.moneta.integrator.common.descriptionpayload.Ads4Payload.fromObject(a.ads4Payload));
a.carrierChargePayload&&D.Message.setWrapperField(b,26,T.moneta.integrator.common.descriptionpayload.CarrierChargePayload.fromObject(a.carrierChargePayload));a.paymentProcessorPayload&&D.Message.setWrapperField(b,27,T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.fromObject(a.paymentProcessorPayload));return b});
T.moneta.integrator.common.descriptionpayload.DescriptionPayload.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.descriptionpayload.DescriptionPayload;return T.moneta.integrator.common.descriptionpayload.DescriptionPayload.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.descriptionpayload.DescriptionPayload.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 2:var c=new T.moneta.integrator.common.descriptionpayload.AdSensePayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.AdSensePayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,2,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 1:c=new T.moneta.integrator.common.descriptionpayload.AdWordsPayload;
b.readMessage(c,T.moneta.integrator.common.descriptionpayload.AdWordsPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,1,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 5:c=new T.moneta.integrator.common.descriptionpayload.AnalyticsPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,5,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],
c);break;case 24:c=new T.moneta.integrator.common.descriptionpayload.AndroidOemPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,24,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 29:c=new T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload.deserializeBinaryFromReader);
D.Message.setOneofWrapperField(a,29,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 9:c=new T.moneta.integrator.common.descriptionpayload.CheckoutPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.CheckoutPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,9,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 20:c=new T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload;
b.readMessage(c,T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,20,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 12:c=new T.moneta.integrator.common.descriptionpayload.CloudPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.CloudPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,12,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],
c);break;case 14:c=new T.moneta.integrator.common.descriptionpayload.DbmPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.DbmPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,14,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 7:c=new T.moneta.integrator.common.descriptionpayload.Dfa7Payload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.Dfa7Payload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,
7,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 21:c=new T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,21,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 4:c=new T.moneta.integrator.common.descriptionpayload.DsmPayload;b.readMessage(c,
T.moneta.integrator.common.descriptionpayload.DsmPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,4,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 10:c=new T.moneta.integrator.common.descriptionpayload.EnterprisePayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.EnterprisePayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,10,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],
c);break;case 6:c=new T.moneta.integrator.common.descriptionpayload.FiberPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.FiberPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,6,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 16:c=new T.moneta.integrator.common.descriptionpayload.GiftCardPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.GiftCardPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,
16,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 28:c=new T.moneta.integrator.common.descriptionpayload.GoogleOnePayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.GoogleOnePayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,28,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 22:c=new T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload;b.readMessage(c,
T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,22,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 25:c=new T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,25,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],
c);break;case 17:c=new T.moneta.integrator.common.descriptionpayload.GoogleStorePayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,17,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 18:c=new T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload.deserializeBinaryFromReader);
D.Message.setOneofWrapperField(a,18,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 11:c=new T.moneta.integrator.common.descriptionpayload.NovaPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.NovaPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,11,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 3:c=new T.moneta.integrator.common.descriptionpayload.PlayMusicPayload;
b.readMessage(c,T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,3,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 19:c=new T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,19,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],
c);break;case 23:c=new T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,23,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 8:c=new T.moneta.integrator.common.descriptionpayload.XfpPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.XfpPayload.deserializeBinaryFromReader);
D.Message.setOneofWrapperField(a,8,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 15:c=new T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,15,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 13:c=new T.moneta.integrator.common.descriptionpayload.Ads4Payload;
b.readMessage(c,T.moneta.integrator.common.descriptionpayload.Ads4Payload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,13,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;case 26:c=new T.moneta.integrator.common.descriptionpayload.CarrierChargePayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.CarrierChargePayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,26,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],
c);break;case 27:c=new T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,27,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.oneofGroups_[0],c);break;default:I(b)}return a};
T.moneta.integrator.common.descriptionpayload.DescriptionPayload.serializeBinaryToWriter=function(a,b){var c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.AdSensePayload,2);null!=c&&N(b,2,c,T.moneta.integrator.common.descriptionpayload.AdSensePayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.AdWordsPayload,1);null!=c&&N(b,1,c,T.moneta.integrator.common.descriptionpayload.AdWordsPayload.serializeBinaryToWriter);
c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.AnalyticsPayload,5);null!=c&&N(b,5,c,T.moneta.integrator.common.descriptionpayload.AnalyticsPayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.AndroidOemPayload,24);null!=c&&N(b,24,c,T.moneta.integrator.common.descriptionpayload.AndroidOemPayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload,
29);null!=c&&N(b,29,c,T.moneta.integrator.common.descriptionpayload.AndroidSearchProviderPayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.CheckoutPayload,9);null!=c&&N(b,9,c,T.moneta.integrator.common.descriptionpayload.CheckoutPayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload,20);null!=c&&N(b,20,c,T.moneta.integrator.common.descriptionpayload.CloudOfflineBuyerPayload.serializeBinaryToWriter);
c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.CloudPayload,12);null!=c&&N(b,12,c,T.moneta.integrator.common.descriptionpayload.CloudPayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.DbmPayload,14);null!=c&&N(b,14,c,T.moneta.integrator.common.descriptionpayload.DbmPayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.Dfa7Payload,7);null!=c&&N(b,7,c,T.moneta.integrator.common.descriptionpayload.Dfa7Payload.serializeBinaryToWriter);
c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload,21);null!=c&&N(b,21,c,T.moneta.integrator.common.descriptionpayload.DoubleclickSearchPayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.DsmPayload,4);null!=c&&N(b,4,c,T.moneta.integrator.common.descriptionpayload.DsmPayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.EnterprisePayload,
10);null!=c&&N(b,10,c,T.moneta.integrator.common.descriptionpayload.EnterprisePayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.FiberPayload,6);null!=c&&N(b,6,c,T.moneta.integrator.common.descriptionpayload.FiberPayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.GiftCardPayload,16);null!=c&&N(b,16,c,T.moneta.integrator.common.descriptionpayload.GiftCardPayload.serializeBinaryToWriter);
c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.GoogleOnePayload,28);null!=c&&N(b,28,c,T.moneta.integrator.common.descriptionpayload.GoogleOnePayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload,22);null!=c&&N(b,22,c,T.moneta.integrator.common.descriptionpayload.GoogleStandardPaymentPayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload,
25);null!=c&&N(b,25,c,T.moneta.integrator.common.descriptionpayload.GoogleStoreB2bPayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.GoogleStorePayload,17);null!=c&&N(b,17,c,T.moneta.integrator.common.descriptionpayload.GoogleStorePayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload,18);null!=c&&N(b,18,c,T.moneta.integrator.common.descriptionpayload.ManualMonetizationPayload.serializeBinaryToWriter);
c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.NovaPayload,11);null!=c&&N(b,11,c,T.moneta.integrator.common.descriptionpayload.NovaPayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.PlayMusicPayload,3);null!=c&&N(b,3,c,T.moneta.integrator.common.descriptionpayload.PlayMusicPayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload,19);
null!=c&&N(b,19,c,T.moneta.integrator.common.descriptionpayload.RetailHardwareBuyerPayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload,23);null!=c&&N(b,23,c,T.moneta.integrator.common.descriptionpayload.SalesIncentivesPartnerPayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.XfpPayload,8);null!=c&&N(b,8,c,T.moneta.integrator.common.descriptionpayload.XfpPayload.serializeBinaryToWriter);
c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload,15);null!=c&&N(b,15,c,T.moneta.integrator.common.descriptionpayload.ImmediatePurchaseDefaultPayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.Ads4Payload,13);null!=c&&N(b,13,c,T.moneta.integrator.common.descriptionpayload.Ads4Payload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.CarrierChargePayload,
26);null!=c&&N(b,26,c,T.moneta.integrator.common.descriptionpayload.CarrierChargePayload.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload,27);null!=c&&N(b,27,c,T.moneta.integrator.common.descriptionpayload.PaymentProcessorPayload.serializeBinaryToWriter)};
T.moneta.integrator.common.descriptionpayload.DescriptionPayload.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.descriptionpayload.DescriptionPayload,a)};T.moneta.integrator.common.image={};T.moneta.integrator.common.image.ImageDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.image.ImageDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.image.ImageDetails.prototype.toObject=function(a){return T.moneta.integrator.common.image.ImageDetails.toObject(a,this)},T.moneta.integrator.common.image.ImageDetails.toObject=function(a,b){var c,g={uri:null==(c=D.Message.getField(b,1))?void 0:c,widthPixels:null==(c=D.Message.getField(b,2))?void 0:c,heightPixels:null==(c=D.Message.getField(b,3))?void 0:c,altText:null==(c=D.Message.getField(b,4))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.image.ImageDetails.ObjectFormat=function(){},T.moneta.integrator.common.image.ImageDetails.fromObject=function(a){var b=new T.moneta.integrator.common.image.ImageDetails;null!=a.uri&&D.Message.setField(b,1,a.uri);null!=a.widthPixels&&D.Message.setField(b,2,a.widthPixels);null!=a.heightPixels&&D.Message.setField(b,3,a.heightPixels);null!=a.altText&&D.Message.setField(b,4,a.altText);return b});
T.moneta.integrator.common.image.ImageDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.image.ImageDetails;return T.moneta.integrator.common.image.ImageDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.image.ImageDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=b.readInt32();D.Message.setField(a,2,c);break;case 3:c=b.readInt32();D.Message.setField(a,3,c);break;case 4:c=b.readString();D.Message.setField(a,4,c);break;default:I(b)}return a};
T.moneta.integrator.common.image.ImageDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeInt32(2,c);c=D.Message.getField(a,3);null!=c&&b.writeInt32(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c)};T.moneta.integrator.common.image.ImageDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.image.ImageDetails,a)};T.moneta.integrator.common.cart.DetailRenderingInfo=function(a){D.Message.initialize(this,a,0,-1,null,T.moneta.integrator.common.cart.DetailRenderingInfo.oneofGroups_)};f.inherits(T.moneta.integrator.common.cart.DetailRenderingInfo,D.Message);T.moneta.integrator.common.cart.DetailRenderingInfo.oneofGroups_=[[6,2]];T.moneta.integrator.common.cart.DetailRenderingInfo.AmountDescriptionCase={AMOUNT_DESCRIPTION_NOT_SET:0,PAYMENTS_ALTERNATIVE_DISPLAY_AMOUNT:6,ALTERNATIVE_DISPLAY_AMOUNT:2};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.DetailRenderingInfo.prototype.toObject=function(a){return T.moneta.integrator.common.cart.DetailRenderingInfo.toObject(a,this)},T.moneta.integrator.common.cart.DetailRenderingInfo.toObject=function(a,b){var c,g={localizedDescription:null==(c=D.Message.getField(b,1))?void 0:c,localizedDescriptionHtml:(c=b.getLocalizedDescriptionHtml())&&T.html.SafeHtmlProto.toObject(a,c),paymentsAlternativeDisplayAmount:D.Message.getFieldWithDefault(b,
6,1),alternativeDisplayAmount:null==(c=D.Message.getField(b,2))?void 0:c,startDateMillis:null==(c=D.Message.getField(b,4))?void 0:c,startDateText:D.Message.getFieldWithDefault(b,8,1)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.DetailRenderingInfo.ObjectFormat=function(){},T.moneta.integrator.common.cart.DetailRenderingInfo.fromObject=function(a){var b=new T.moneta.integrator.common.cart.DetailRenderingInfo;null!=a.localizedDescription&&D.Message.setField(b,1,a.localizedDescription);a.localizedDescriptionHtml&&D.Message.setWrapperField(b,5,T.html.SafeHtmlProto.fromObject(a.localizedDescriptionHtml));null!=a.paymentsAlternativeDisplayAmount&&D.Message.setField(b,
6,a.paymentsAlternativeDisplayAmount);null!=a.alternativeDisplayAmount&&D.Message.setField(b,2,a.alternativeDisplayAmount);null!=a.startDateMillis&&D.Message.setField(b,4,a.startDateMillis);null!=a.startDateText&&D.Message.setField(b,8,a.startDateText);return b});
T.moneta.integrator.common.cart.DetailRenderingInfo.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.DetailRenderingInfo;return T.moneta.integrator.common.cart.DetailRenderingInfo.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.DetailRenderingInfo.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setLocalizedDescription(c);break;case 5:c=new T.html.SafeHtmlProto;b.readMessage(c,T.html.SafeHtmlProto.deserializeBinaryFromReader);a.setLocalizedDescriptionHtml(c);break;case 6:c=b.readEnum();D.Message.setOneofField(a,6,T.moneta.integrator.common.cart.DetailRenderingInfo.oneofGroups_[0],c);break;case 2:c=b.readString();D.Message.setOneofField(a,
2,T.moneta.integrator.common.cart.DetailRenderingInfo.oneofGroups_[0],c);break;case 4:c=b.readInt64();a.setStartDateMillis(c);break;case 8:c=b.readEnum();D.Message.setField(a,8,c);break;default:I(b)}return a};
T.moneta.integrator.common.cart.DetailRenderingInfo.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=a.getLocalizedDescriptionHtml();null!=c&&N(b,5,c,T.html.SafeHtmlProto.serializeBinaryToWriter);c=D.Message.getField(a,6);null!=c&&b.writeEnum(6,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,4);null!=c&&b.writeInt64(4,c);c=D.Message.getField(a,8);null!=c&&b.writeEnum(8,c)};
T.moneta.integrator.common.cart.DetailRenderingInfo.AlternativeDisplayAmountText={UNKNOWN:0,DEFAULT:1,FREE_TRIAL:2,USE_ABBREVIATION:3};T.moneta.integrator.common.cart.DetailRenderingInfo.StartDateText={UNKNOWN_START_DATE_TEXT:0,BILLING_START_DATE:1,PROMO_RATE_START_DATE:2,STANDARD_RATE_START_DATE:3};T.moneta.integrator.common.cart.DetailRenderingInfo.prototype.setLocalizedDescription=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.cart.DetailRenderingInfo.prototype.getLocalizedDescriptionHtml=function(){return D.Message.getWrapperField(this,T.html.SafeHtmlProto,5)};T.moneta.integrator.common.cart.DetailRenderingInfo.prototype.setLocalizedDescriptionHtml=function(a){D.Message.setWrapperField(this,5,a)};T.moneta.integrator.common.cart.DetailRenderingInfo.prototype.setStartDateMillis=function(a){D.Message.setField(this,4,a)};
T.moneta.integrator.common.cart.DetailRenderingInfo.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.DetailRenderingInfo,a)};T.moneta.integrator.common.cart.FreeTrialDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.cart.FreeTrialDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.FreeTrialDetails.prototype.toObject=function(a){return T.moneta.integrator.common.cart.FreeTrialDetails.toObject(a,this)},T.moneta.integrator.common.cart.FreeTrialDetails.toObject=function(a,b){var c,g={duration:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Duration,1))&&T.moneta.integrator.common.Duration.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.FreeTrialDetails.ObjectFormat=function(){},T.moneta.integrator.common.cart.FreeTrialDetails.fromObject=function(a){var b=new T.moneta.integrator.common.cart.FreeTrialDetails;a.duration&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Duration.fromObject(a.duration));return b});
T.moneta.integrator.common.cart.FreeTrialDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.FreeTrialDetails;return T.moneta.integrator.common.cart.FreeTrialDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.FreeTrialDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.Duration;b.readMessage(c,T.moneta.integrator.common.Duration.deserializeBinaryFromReader);D.Message.setWrapperField(a,1,c);break;default:I(b)}return a};T.moneta.integrator.common.cart.FreeTrialDetails.serializeBinaryToWriter=function(a,b){a=D.Message.getWrapperField(a,T.moneta.integrator.common.Duration,1);null!=a&&N(b,1,a,T.moneta.integrator.common.Duration.serializeBinaryToWriter)};
T.moneta.integrator.common.cart.FreeTrialDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.FreeTrialDetails,a)};T.moneta.integrator.common.cart.Receiver=function(a){D.Message.initialize(this,a,0,-1,null,T.moneta.integrator.common.cart.Receiver.oneofGroups_)};f.inherits(T.moneta.integrator.common.cart.Receiver,D.Message);T.moneta.integrator.common.cart.Receiver.oneofGroups_=[[1,2]];T.moneta.integrator.common.cart.Receiver.ReceiverCase={RECEIVER_NOT_SET:0,PRODUCT_CORRELATION_ID:1,FIXED_PARTY:2};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.Receiver.prototype.toObject=function(a){return T.moneta.integrator.common.cart.Receiver.toObject(a,this)},T.moneta.integrator.common.cart.Receiver.toObject=function(a,b){var c,g={productCorrelationId:(c=b.getProductCorrelationId())&&T.moneta.integrator.common.ProductCorrelationId.toObject(a,c),fixedParty:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.Receiver.ObjectFormat=function(){},T.moneta.integrator.common.cart.Receiver.fromObject=function(a){var b=new T.moneta.integrator.common.cart.Receiver;a.productCorrelationId&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.ProductCorrelationId.fromObject(a.productCorrelationId));null!=a.fixedParty&&D.Message.setField(b,2,a.fixedParty);return b});
T.moneta.integrator.common.cart.Receiver.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.Receiver;return T.moneta.integrator.common.cart.Receiver.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.Receiver.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.ProductCorrelationId;b.readMessage(c,T.moneta.integrator.common.ProductCorrelationId.deserializeBinaryFromReader);a.setProductCorrelationId(c);break;case 2:c=b.readEnum();a.setFixedParty(c);break;default:I(b)}return a};
T.moneta.integrator.common.cart.Receiver.serializeBinaryToWriter=function(a,b){var c=a.getProductCorrelationId();null!=c&&N(b,1,c,T.moneta.integrator.common.ProductCorrelationId.serializeBinaryToWriter);c=D.Message.getField(a,2);null!=c&&b.writeEnum(2,c)};T.moneta.integrator.common.cart.Receiver.FixedParty={UNKNOWN_FIXED_PARTY:0,GOOGLE:1};
T.moneta.integrator.common.cart.Receiver.prototype.getProductCorrelationId=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.ProductCorrelationId,1)};T.moneta.integrator.common.cart.Receiver.prototype.setProductCorrelationId=function(a){D.Message.setOneofWrapperField(this,1,T.moneta.integrator.common.cart.Receiver.oneofGroups_[0],a)};
T.moneta.integrator.common.cart.Receiver.prototype.setFixedParty=function(a){D.Message.setOneofField(this,2,T.moneta.integrator.common.cart.Receiver.oneofGroups_[0],a)};T.moneta.integrator.common.cart.Receiver.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.Receiver,a)};T.moneta.integrator.common.cart.RevenueShare=function(a){D.Message.initialize(this,a,0,-1,null,T.moneta.integrator.common.cart.RevenueShare.oneofGroups_)};f.inherits(T.moneta.integrator.common.cart.RevenueShare,D.Message);T.moneta.integrator.common.cart.RevenueShare.oneofGroups_=[[1,5],[3,4]];T.moneta.integrator.common.cart.RevenueShare.ReceiverCase={RECEIVER_NOT_SET:0,PRODUCT_CORRELATION_ID:1,FIXED_PARTY:5};
T.moneta.integrator.common.cart.RevenueShare.AmountSpecificationCase={AMOUNT_SPECIFICATION_NOT_SET:0,TAX_EXCLUSIVE_REVENUE_SHARE_RATIO_MICROS:3,REVENUE_SHARE_AMOUNT:4};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.RevenueShare.prototype.toObject=function(a){return T.moneta.integrator.common.cart.RevenueShare.toObject(a,this)},T.moneta.integrator.common.cart.RevenueShare.toObject=function(a,b){var c,g={productCorrelationId:(c=b.getProductCorrelationId())&&T.moneta.integrator.common.ProductCorrelationId.toObject(a,c),fixedParty:null==(c=D.Message.getField(b,5))?void 0:c,merchantOfRecord:null==(c=D.Message.getBooleanField(b,2))?void 0:c,taxExclusiveRevenueShareRatioMicros:null==
(c=D.Message.getField(b,3))?void 0:c,revenueShareAmount:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,4))&&T.moneta.integrator.common.Amount.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.RevenueShare.ObjectFormat=function(){},T.moneta.integrator.common.cart.RevenueShare.fromObject=function(a){var b=new T.moneta.integrator.common.cart.RevenueShare;a.productCorrelationId&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.ProductCorrelationId.fromObject(a.productCorrelationId));null!=a.fixedParty&&D.Message.setField(b,5,a.fixedParty);null!=a.merchantOfRecord&&D.Message.setField(b,2,a.merchantOfRecord);null!=a.taxExclusiveRevenueShareRatioMicros&&
D.Message.setField(b,3,a.taxExclusiveRevenueShareRatioMicros);a.revenueShareAmount&&D.Message.setWrapperField(b,4,T.moneta.integrator.common.Amount.fromObject(a.revenueShareAmount));return b});T.moneta.integrator.common.cart.RevenueShare.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.RevenueShare;return T.moneta.integrator.common.cart.RevenueShare.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.RevenueShare.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.ProductCorrelationId;b.readMessage(c,T.moneta.integrator.common.ProductCorrelationId.deserializeBinaryFromReader);a.setProductCorrelationId(c);break;case 5:c=b.readEnum();a.setFixedParty(c);break;case 2:c=b.readBool();a.setMerchantOfRecord(c);break;case 3:c=b.readInt64();D.Message.setOneofField(a,3,T.moneta.integrator.common.cart.RevenueShare.oneofGroups_[1],
c);break;case 4:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,4,T.moneta.integrator.common.cart.RevenueShare.oneofGroups_[1],c);break;default:I(b)}return a};
T.moneta.integrator.common.cart.RevenueShare.serializeBinaryToWriter=function(a,b){var c=a.getProductCorrelationId();null!=c&&N(b,1,c,T.moneta.integrator.common.ProductCorrelationId.serializeBinaryToWriter);c=D.Message.getField(a,5);null!=c&&b.writeEnum(5,c);c=D.Message.getField(a,2);null!=c&&b.writeBool(2,c);c=D.Message.getField(a,3);null!=c&&b.writeInt64(3,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,4);null!=c&&N(b,4,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter)};
T.moneta.integrator.common.cart.RevenueShare.FixedParty={UNKNOWN_FIXED_PARTY:0,GOOGLE:1};d=T.moneta.integrator.common.cart.RevenueShare.prototype;d.getProductCorrelationId=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.ProductCorrelationId,1)};d.setProductCorrelationId=function(a){D.Message.setOneofWrapperField(this,1,T.moneta.integrator.common.cart.RevenueShare.oneofGroups_[0],a)};
d.setFixedParty=function(a){D.Message.setOneofField(this,5,T.moneta.integrator.common.cart.RevenueShare.oneofGroups_[0],a)};d.getMerchantOfRecord=function(){return D.Message.getBooleanField(this,2)};d.setMerchantOfRecord=function(a){D.Message.setField(this,2,a)};T.moneta.integrator.common.cart.RevenueShare.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.RevenueShare,a)};T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails,D.Message);T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.repeatedFields_=[2];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.prototype.toObject=function(a){return T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.toObject(a,this)},T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.toObject=function(a,b){var c,g={stockKeepingUnit:null==(c=D.Message.getField(b,1))?void 0:c,revenueShareList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.cart.RevenueShare,
2),T.moneta.integrator.common.cart.RevenueShare.toObject,a),merchantOfRecord:(c=b.getMerchantOfRecord())&&T.moneta.integrator.common.cart.Receiver.toObject(a,c),descriptionPayload:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.descriptionpayload.DescriptionPayload,4))&&T.moneta.integrator.common.descriptionpayload.DescriptionPayload.toObject(a,c),productCode:null==(c=D.Message.getField(b,5))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.ObjectFormat=function(){},T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.fromObject=function(a){var b=new T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails;null!=a.stockKeepingUnit&&D.Message.setField(b,1,a.stockKeepingUnit);a.revenueShareList&&D.Message.setRepeatedWrapperField(b,2,a.revenueShareList.map(T.moneta.integrator.common.cart.RevenueShare.fromObject));
a.merchantOfRecord&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.cart.Receiver.fromObject(a.merchantOfRecord));a.descriptionPayload&&D.Message.setWrapperField(b,4,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.fromObject(a.descriptionPayload));null!=a.productCode&&D.Message.setField(b,5,a.productCode);return b});
T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails;return T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setStockKeepingUnit(c);break;case 2:c=new T.moneta.integrator.common.cart.RevenueShare;b.readMessage(c,T.moneta.integrator.common.cart.RevenueShare.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,2,c,T.moneta.integrator.common.cart.RevenueShare,void 0);break;case 3:c=new T.moneta.integrator.common.cart.Receiver;
b.readMessage(c,T.moneta.integrator.common.cart.Receiver.deserializeBinaryFromReader);a.setMerchantOfRecord(c);break;case 4:c=new T.moneta.integrator.common.descriptionpayload.DescriptionPayload;b.readMessage(c,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.deserializeBinaryFromReader);D.Message.setWrapperField(a,4,c);break;case 5:c=b.readInt64();a.setProductCode(c);break;default:I(b)}return a};
T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.cart.RevenueShare,2);0<c.length&&P(b,2,c,T.moneta.integrator.common.cart.RevenueShare.serializeBinaryToWriter);c=a.getMerchantOfRecord();null!=c&&N(b,3,c,T.moneta.integrator.common.cart.Receiver.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.descriptionpayload.DescriptionPayload,
4);null!=c&&N(b,4,c,T.moneta.integrator.common.descriptionpayload.DescriptionPayload.serializeBinaryToWriter);c=D.Message.getField(a,5);null!=c&&b.writeInt64(5,c)};T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.prototype.setStockKeepingUnit=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.prototype.getMerchantOfRecord=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.cart.Receiver,3)};
T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.prototype.setMerchantOfRecord=function(a){D.Message.setWrapperField(this,3,a)};T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.prototype.setProductCode=function(a){D.Message.setField(this,5,a)};T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails,a)};T.moneta.integrator.common.cart.SubscriptionLineItemDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.cart.SubscriptionLineItemDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.SubscriptionLineItemDetails.prototype.toObject=function(a){return T.moneta.integrator.common.cart.SubscriptionLineItemDetails.toObject(a,this)},T.moneta.integrator.common.cart.SubscriptionLineItemDetails.toObject=function(a,b){var c,g={subscriptionLineItemIndex:null==(c=D.Message.getField(b,1))?void 0:c,amount:(c=b.getAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),amountIncludesTax:null==(c=D.Message.getBooleanField(b,3))?
void 0:c,localizedLineItemDescriptionHtml:(c=D.Message.getWrapperField(b,T.html.SafeHtmlProto,4))&&T.html.SafeHtmlProto.toObject(a,c),localizedLineItemTitle:null==(c=D.Message.getField(b,5))?void 0:c,managedPurchaseOrderLineItemDetails:(c=b.getManagedPurchaseOrderLineItemDetails())&&T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.SubscriptionLineItemDetails.ObjectFormat=function(){},T.moneta.integrator.common.cart.SubscriptionLineItemDetails.fromObject=function(a){var b=new T.moneta.integrator.common.cart.SubscriptionLineItemDetails;null!=a.subscriptionLineItemIndex&&D.Message.setField(b,1,a.subscriptionLineItemIndex);a.amount&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.amount));null!=a.amountIncludesTax&&D.Message.setField(b,
3,a.amountIncludesTax);a.localizedLineItemDescriptionHtml&&D.Message.setWrapperField(b,4,T.html.SafeHtmlProto.fromObject(a.localizedLineItemDescriptionHtml));null!=a.localizedLineItemTitle&&D.Message.setField(b,5,a.localizedLineItemTitle);a.managedPurchaseOrderLineItemDetails&&D.Message.setWrapperField(b,6,T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.fromObject(a.managedPurchaseOrderLineItemDetails));return b});
T.moneta.integrator.common.cart.SubscriptionLineItemDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.SubscriptionLineItemDetails;return T.moneta.integrator.common.cart.SubscriptionLineItemDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.SubscriptionLineItemDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();D.Message.setField(a,1,c);break;case 2:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setAmount(c);break;case 3:c=b.readBool();a.setAmountIncludesTax(c);break;case 4:c=new T.html.SafeHtmlProto;b.readMessage(c,T.html.SafeHtmlProto.deserializeBinaryFromReader);
D.Message.setWrapperField(a,4,c);break;case 5:c=b.readString();D.Message.setField(a,5,c);break;case 6:c=new T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails;b.readMessage(c,T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.deserializeBinaryFromReader);a.setManagedPurchaseOrderLineItemDetails(c);break;default:I(b)}return a};
T.moneta.integrator.common.cart.SubscriptionLineItemDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=a.getAmount();null!=c&&N(b,2,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeBool(3,c);c=D.Message.getWrapperField(a,T.html.SafeHtmlProto,4);null!=c&&N(b,4,c,T.html.SafeHtmlProto.serializeBinaryToWriter);c=D.Message.getField(a,5);null!=c&&b.writeString(5,c);c=a.getManagedPurchaseOrderLineItemDetails();
null!=c&&N(b,6,c,T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.serializeBinaryToWriter)};d=T.moneta.integrator.common.cart.SubscriptionLineItemDetails.prototype;d.getAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,2)};d.setAmount=function(a){D.Message.setWrapperField(this,2,a)};d.setAmountIncludesTax=function(a){D.Message.setField(this,3,a)};
d.getManagedPurchaseOrderLineItemDetails=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails,6)};d.setManagedPurchaseOrderLineItemDetails=function(a){D.Message.setWrapperField(this,6,a)};T.moneta.integrator.common.cart.SubscriptionLineItemDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.SubscriptionLineItemDetails,a)};T.moneta.integrator.common.cart.SubscriptionDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.cart.SubscriptionDetails,D.Message);T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.SubscriptionDetails.prototype.toObject=function(a){return T.moneta.integrator.common.cart.SubscriptionDetails.toObject(a,this)},T.moneta.integrator.common.cart.SubscriptionDetails.toObject=function(a,b){var c,g={subscriptionId:(c=b.getSubscriptionId())&&T.moneta.integrator.common.SubscriptionId.toObject(a,c),gracePeriodMillis:null==(c=D.Message.getField(b,4))?void 0:c,subscriptionType:D.Message.getFieldWithDefault(b,6,1),prorationBillingUnit:(c=
D.Message.getWrapperField(b,T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit,7))&&T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit.toObject(a,c),localizedSubscriptionDescription:null==(c=D.Message.getField(b,8))?void 0:c,subscriptionLineItemDetail:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.cart.SubscriptionLineItemDetails,9))&&T.moneta.integrator.common.cart.SubscriptionLineItemDetails.toObject(a,c),frequency:(c=
b.getFrequency())&&T.moneta.integrator.common.Frequency.toObject(a,c),freeTrialDetail:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.cart.FreeTrialDetails,11))&&T.moneta.integrator.common.cart.FreeTrialDetails.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.SubscriptionDetails.ObjectFormat=function(){},T.moneta.integrator.common.cart.SubscriptionDetails.fromObject=function(a){var b=new T.moneta.integrator.common.cart.SubscriptionDetails;a.subscriptionId&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.SubscriptionId.fromObject(a.subscriptionId));null!=a.gracePeriodMillis&&D.Message.setField(b,4,a.gracePeriodMillis);null!=a.subscriptionType&&D.Message.setField(b,6,a.subscriptionType);
a.prorationBillingUnit&&D.Message.setWrapperField(b,7,T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit.fromObject(a.prorationBillingUnit));null!=a.localizedSubscriptionDescription&&D.Message.setField(b,8,a.localizedSubscriptionDescription);a.subscriptionLineItemDetail&&D.Message.setWrapperField(b,9,T.moneta.integrator.common.cart.SubscriptionLineItemDetails.fromObject(a.subscriptionLineItemDetail));a.frequency&&D.Message.setWrapperField(b,10,T.moneta.integrator.common.Frequency.fromObject(a.frequency));
a.freeTrialDetail&&D.Message.setWrapperField(b,11,T.moneta.integrator.common.cart.FreeTrialDetails.fromObject(a.freeTrialDetail));return b});T.moneta.integrator.common.cart.SubscriptionDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.SubscriptionDetails;return T.moneta.integrator.common.cart.SubscriptionDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.SubscriptionDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.SubscriptionId;b.readMessage(c,T.moneta.integrator.common.SubscriptionId.deserializeBinaryFromReader);a.setSubscriptionId(c);break;case 4:c=b.readInt64();a.setGracePeriodMillis(c);break;case 6:c=b.readEnum();D.Message.setField(a,6,c);break;case 7:c=new T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit;
b.readMessage(c,T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit.deserializeBinaryFromReader);D.Message.setWrapperField(a,7,c);break;case 8:c=b.readString();D.Message.setField(a,8,c);break;case 9:c=new T.moneta.integrator.common.cart.SubscriptionLineItemDetails;b.readMessage(c,T.moneta.integrator.common.cart.SubscriptionLineItemDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,9,c);break;case 10:c=new T.moneta.integrator.common.Frequency;b.readMessage(c,
T.moneta.integrator.common.Frequency.deserializeBinaryFromReader);a.setFrequency(c);break;case 11:c=new T.moneta.integrator.common.cart.FreeTrialDetails;b.readMessage(c,T.moneta.integrator.common.cart.FreeTrialDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,11,c);break;default:I(b)}return a};
T.moneta.integrator.common.cart.SubscriptionDetails.serializeBinaryToWriter=function(a,b){var c=a.getSubscriptionId();null!=c&&N(b,1,c,T.moneta.integrator.common.SubscriptionId.serializeBinaryToWriter);c=D.Message.getField(a,4);null!=c&&b.writeInt64(4,c);c=D.Message.getField(a,6);null!=c&&b.writeEnum(6,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit,7);null!=c&&N(b,7,c,T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit.serializeBinaryToWriter);
c=D.Message.getField(a,8);null!=c&&b.writeString(8,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.cart.SubscriptionLineItemDetails,9);null!=c&&N(b,9,c,T.moneta.integrator.common.cart.SubscriptionLineItemDetails.serializeBinaryToWriter);c=a.getFrequency();null!=c&&N(b,10,c,T.moneta.integrator.common.Frequency.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.cart.FreeTrialDetails,11);null!=c&&N(b,11,c,T.moneta.integrator.common.cart.FreeTrialDetails.serializeBinaryToWriter)};
T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionType={UNKNOWN:0,SUBSCRIPTION_TYPE_NEW:1,SUBSCRIPTION_TYPE_ADD_ON:2};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit.prototype.toObject=function(a){return T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit.toObject(a,this)},T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit.toObject=function(a,b){var c,g={unit:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit.ObjectFormat=function(){},T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit.fromObject=function(a){var b=new T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit;null!=a.unit&&D.Message.setField(b,1,a.unit);return b});
T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit;return T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();a.setUnit(c);break;default:I(b)}return a};T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeEnum(1,a)};
T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit.UnitType={UNKNOWN_UNIT_TYPE:0,DAILY:1,MONTHLY:2,HOURLY:3,MINUTELY:4,SECONDLY:5};T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit.prototype.setUnit=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.SubscriptionDetails.SubscriptionProrationBillingUnit,a)};d=T.moneta.integrator.common.cart.SubscriptionDetails.prototype;d.getSubscriptionId=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.SubscriptionId,1)};d.setSubscriptionId=function(a){D.Message.setWrapperField(this,1,a)};
d.setGracePeriodMillis=function(a){D.Message.setField(this,4,a)};d.getFrequency=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Frequency,10)};d.setFrequency=function(a){D.Message.setWrapperField(this,10,a)};T.moneta.integrator.common.cart.SubscriptionDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.SubscriptionDetails,a)};T.moneta.integrator.common.cart.LineItemDetail=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.cart.LineItemDetail.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.cart.LineItemDetail,D.Message);T.moneta.integrator.common.cart.LineItemDetail.repeatedFields_=[15];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.LineItemDetail.prototype.toObject=function(a){return T.moneta.integrator.common.cart.LineItemDetail.toObject(a,this)},T.moneta.integrator.common.cart.LineItemDetail.toObject=function(a,b){var c,g={lineItemDetailIndex:null==(c=D.Message.getField(b,8))?void 0:c,amount:(c=b.getAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),amountIncludesTax:null==(c=D.Message.getBooleanField(b,9))?void 0:c,amountDueLater:null==(c=D.Message.getBooleanField(b,
7))?void 0:c,amountDueType:null==(c=D.Message.getField(b,13))?void 0:c,quantity:null==(c=D.Message.getField(b,10))?void 0:c,taxInfo:(c=b.getTaxInfo())&&T.moneta.integrator.common.cart.TaxInfo.toObject(a,c),frequency:(c=b.getFrequency())&&T.moneta.integrator.common.Frequency.toObject(a,c),detailRenderingInfo:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.cart.DetailRenderingInfo,11))&&T.moneta.integrator.common.cart.DetailRenderingInfo.toObject(a,c),localizedDescription:null==(c=D.Message.getField(b,
1))?void 0:c,startDateMillis:null==(c=D.Message.getField(b,5))?void 0:c,managedPurchaseOrderLineItemDetails:(c=b.getManagedPurchaseOrderLineItemDetails())&&T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.toObject(a,c),subscriptionDetailsList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.cart.SubscriptionDetails,15),T.moneta.integrator.common.cart.SubscriptionDetails.toObject,a),shippingAddress:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.address.Address,
16))&&T.moneta.integrator.common.address.Address.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.LineItemDetail.ObjectFormat=function(){},T.moneta.integrator.common.cart.LineItemDetail.fromObject=function(a){var b=new T.moneta.integrator.common.cart.LineItemDetail;null!=a.lineItemDetailIndex&&D.Message.setField(b,8,a.lineItemDetailIndex);a.amount&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.amount));null!=a.amountIncludesTax&&D.Message.setField(b,9,a.amountIncludesTax);null!=a.amountDueLater&&D.Message.setField(b,
7,a.amountDueLater);null!=a.amountDueType&&D.Message.setField(b,13,a.amountDueType);null!=a.quantity&&D.Message.setField(b,10,a.quantity);a.taxInfo&&D.Message.setWrapperField(b,6,T.moneta.integrator.common.cart.TaxInfo.fromObject(a.taxInfo));a.frequency&&D.Message.setWrapperField(b,4,T.moneta.integrator.common.Frequency.fromObject(a.frequency));a.detailRenderingInfo&&D.Message.setWrapperField(b,11,T.moneta.integrator.common.cart.DetailRenderingInfo.fromObject(a.detailRenderingInfo));null!=a.localizedDescription&&
D.Message.setField(b,1,a.localizedDescription);null!=a.startDateMillis&&D.Message.setField(b,5,a.startDateMillis);a.managedPurchaseOrderLineItemDetails&&D.Message.setWrapperField(b,14,T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.fromObject(a.managedPurchaseOrderLineItemDetails));a.subscriptionDetailsList&&D.Message.setRepeatedWrapperField(b,15,a.subscriptionDetailsList.map(T.moneta.integrator.common.cart.SubscriptionDetails.fromObject));a.shippingAddress&&D.Message.setWrapperField(b,
16,T.moneta.integrator.common.address.Address.fromObject(a.shippingAddress));return b});T.moneta.integrator.common.cart.LineItemDetail.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.LineItemDetail;return T.moneta.integrator.common.cart.LineItemDetail.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.LineItemDetail.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 8:var c=b.readInt32();a.setLineItemDetailIndex(c);break;case 2:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setAmount(c);break;case 9:c=b.readBool();a.setAmountIncludesTax(c);break;case 7:c=b.readBool();D.Message.setField(a,7,c);break;case 13:c=b.readEnum();D.Message.setField(a,13,c);break;case 10:c=
b.readInt32();a.setQuantity(c);break;case 6:c=new T.moneta.integrator.common.cart.TaxInfo;b.readMessage(c,T.moneta.integrator.common.cart.TaxInfo.deserializeBinaryFromReader);a.setTaxInfo(c);break;case 4:c=new T.moneta.integrator.common.Frequency;b.readMessage(c,T.moneta.integrator.common.Frequency.deserializeBinaryFromReader);a.setFrequency(c);break;case 11:c=new T.moneta.integrator.common.cart.DetailRenderingInfo;b.readMessage(c,T.moneta.integrator.common.cart.DetailRenderingInfo.deserializeBinaryFromReader);
D.Message.setWrapperField(a,11,c);break;case 1:c=b.readString();a.setLocalizedDescription(c);break;case 5:c=b.readInt64();a.setStartDateMillis(c);break;case 14:c=new T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails;b.readMessage(c,T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.deserializeBinaryFromReader);a.setManagedPurchaseOrderLineItemDetails(c);break;case 15:c=new T.moneta.integrator.common.cart.SubscriptionDetails;b.readMessage(c,T.moneta.integrator.common.cart.SubscriptionDetails.deserializeBinaryFromReader);
D.Message.addToRepeatedWrapperField(a,15,c,T.moneta.integrator.common.cart.SubscriptionDetails,void 0);break;case 16:c=new T.moneta.integrator.common.address.Address;b.readMessage(c,T.moneta.integrator.common.address.Address.deserializeBinaryFromReader);D.Message.setWrapperField(a,16,c);break;default:I(b)}return a};
T.moneta.integrator.common.cart.LineItemDetail.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,8);null!=c&&b.writeInt32(8,c);c=a.getAmount();null!=c&&N(b,2,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,9);null!=c&&b.writeBool(9,c);c=D.Message.getField(a,7);null!=c&&b.writeBool(7,c);c=D.Message.getField(a,13);null!=c&&b.writeEnum(13,c);c=D.Message.getField(a,10);null!=c&&b.writeInt32(10,c);c=a.getTaxInfo();null!=c&&N(b,6,c,T.moneta.integrator.common.cart.TaxInfo.serializeBinaryToWriter);
c=a.getFrequency();null!=c&&N(b,4,c,T.moneta.integrator.common.Frequency.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.cart.DetailRenderingInfo,11);null!=c&&N(b,11,c,T.moneta.integrator.common.cart.DetailRenderingInfo.serializeBinaryToWriter);c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,5);null!=c&&b.writeInt64(5,c);c=a.getManagedPurchaseOrderLineItemDetails();null!=c&&N(b,14,c,T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails.serializeBinaryToWriter);
c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.cart.SubscriptionDetails,15);0<c.length&&P(b,15,c,T.moneta.integrator.common.cart.SubscriptionDetails.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.address.Address,16);null!=c&&N(b,16,c,T.moneta.integrator.common.address.Address.serializeBinaryToWriter)};T.moneta.integrator.common.cart.LineItemDetail.AmountDueType={UNKNOWN:0,CREATE_FUNDS_GUARANTEE:1,AMOUNT_DUE_LATER:2,DISPLAY_ONLY:3};d=T.moneta.integrator.common.cart.LineItemDetail.prototype;
d.setLineItemDetailIndex=function(a){D.Message.setField(this,8,a)};d.getAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,2)};d.setAmount=function(a){D.Message.setWrapperField(this,2,a)};d.setAmountIncludesTax=function(a){D.Message.setField(this,9,a)};d.setQuantity=function(a){D.Message.setField(this,10,a)};d.getTaxInfo=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.cart.TaxInfo,6)};
d.setTaxInfo=function(a){D.Message.setWrapperField(this,6,a)};d.getFrequency=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Frequency,4)};d.setFrequency=function(a){D.Message.setWrapperField(this,4,a)};d.setLocalizedDescription=function(a){D.Message.setField(this,1,a)};d.setStartDateMillis=function(a){D.Message.setField(this,5,a)};
d.getManagedPurchaseOrderLineItemDetails=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.cart.ManagedPurchaseOrderLineItemDetails,14)};d.setManagedPurchaseOrderLineItemDetails=function(a){D.Message.setWrapperField(this,14,a)};T.moneta.integrator.common.cart.LineItemDetail.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.LineItemDetail,a)};T.moneta.integrator.common.cart.RenderingInfo=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.cart.RenderingInfo,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.RenderingInfo.prototype.toObject=function(a){return T.moneta.integrator.common.cart.RenderingInfo.toObject(a,this)},T.moneta.integrator.common.cart.RenderingInfo.toObject=function(a,b){var c,g={localizedTitle:null==(c=D.Message.getField(b,1))?void 0:c,image:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.image.ImageDetails,2))&&T.moneta.integrator.common.image.ImageDetails.toObject(a,c),renderAsHero:null==(c=D.Message.getBooleanField(b,
3))?void 0:c,renderAsSubItemOfLineItem:null==(c=D.Message.getField(b,4))?void 0:c,amountDisplayText:null==(c=D.Message.getField(b,6))?void 0:c,subLineItemState:null==(c=D.Message.getField(b,7))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.RenderingInfo.ObjectFormat=function(){},T.moneta.integrator.common.cart.RenderingInfo.fromObject=function(a){var b=new T.moneta.integrator.common.cart.RenderingInfo;null!=a.localizedTitle&&D.Message.setField(b,1,a.localizedTitle);a.image&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.image.ImageDetails.fromObject(a.image));null!=a.renderAsHero&&D.Message.setField(b,3,a.renderAsHero);null!=a.renderAsSubItemOfLineItem&&D.Message.setField(b,
4,a.renderAsSubItemOfLineItem);null!=a.amountDisplayText&&D.Message.setField(b,6,a.amountDisplayText);null!=a.subLineItemState&&D.Message.setField(b,7,a.subLineItemState);return b});T.moneta.integrator.common.cart.RenderingInfo.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.RenderingInfo;return T.moneta.integrator.common.cart.RenderingInfo.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.RenderingInfo.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setLocalizedTitle(c);break;case 2:c=new T.moneta.integrator.common.image.ImageDetails;b.readMessage(c,T.moneta.integrator.common.image.ImageDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,2,c);break;case 3:c=b.readBool();D.Message.setField(a,3,c);break;case 4:c=b.readInt32();D.Message.setField(a,4,c);break;case 6:c=b.readEnum();
D.Message.setField(a,6,c);break;case 7:c=b.readEnum();D.Message.setField(a,7,c);break;default:I(b)}return a};
T.moneta.integrator.common.cart.RenderingInfo.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.image.ImageDetails,2);null!=c&&N(b,2,c,T.moneta.integrator.common.image.ImageDetails.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeBool(3,c);c=D.Message.getField(a,4);null!=c&&b.writeInt32(4,c);c=D.Message.getField(a,6);null!=c&&b.writeEnum(6,c);c=D.Message.getField(a,7);null!=c&&
b.writeEnum(7,c)};T.moneta.integrator.common.cart.RenderingInfo.AmountDisplayText={DEFAULT:0,FREE_TRIAL:1,AFTERTAX_TOTAL_OF_CURRENT_LINE_ITEM:2,PRETAX_TOTAL_OF_CURRENT_LINE_ITEM:3,AFTERTAX_TOTAL_OF_SUB_LINE_ITEMS:4,CONCISE_PRETAX_TOTAL_OF_CURRENT_LINE_ITEM:5,CONCISE_PRETAX_VALUE_OF_SINGLE_RECURRING_ITEM:6};T.moneta.integrator.common.cart.RenderingInfo.SubLineItemState={DEFAULT_STATE:0,COLLAPSED:1,EXPANDED:2};
T.moneta.integrator.common.cart.RenderingInfo.prototype.setLocalizedTitle=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.cart.RenderingInfo.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.RenderingInfo,a)};T.moneta.integrator.common.cart.LineItem=function(a){D.Message.initialize(this,a,0,7,T.moneta.integrator.common.cart.LineItem.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.cart.LineItem,D.Message);T.moneta.integrator.common.cart.LineItem.extensions={};T.moneta.integrator.common.cart.LineItem.extensionsBinary={};T.moneta.integrator.common.cart.LineItem.repeatedFields_=[2];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.LineItem.prototype.toObject=function(a){return T.moneta.integrator.common.cart.LineItem.toObject(a,this)},T.moneta.integrator.common.cart.LineItem.toObject=function(a,b){var c,g={lineItemIndex:null==(c=D.Message.getField(b,3))?void 0:c,localizedTitle:null==(c=D.Message.getField(b,1))?void 0:c,lineItemType:D.Message.getFieldWithDefault(b,5,1),lineItemChargingState:D.Message.getFieldWithDefault(b,6,1),renderingInfo:(c=D.Message.getWrapperField(b,
T.moneta.integrator.common.cart.RenderingInfo,4))&&T.moneta.integrator.common.cart.RenderingInfo.toObject(a,c),lineItemDetailList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.cart.LineItemDetail,2),T.moneta.integrator.common.cart.LineItemDetail.toObject,a)};D.Message.toObjectExtension(b,g,T.moneta.integrator.common.cart.LineItem.extensions,T.moneta.integrator.common.cart.LineItem.prototype.getExtension,a);a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.LineItem.ObjectFormat=function(){},T.moneta.integrator.common.cart.LineItem.fromObject=function(a){var b=new T.moneta.integrator.common.cart.LineItem;null!=a.lineItemIndex&&D.Message.setField(b,3,a.lineItemIndex);null!=a.localizedTitle&&D.Message.setField(b,1,a.localizedTitle);null!=a.lineItemType&&D.Message.setField(b,5,a.lineItemType);null!=a.lineItemChargingState&&D.Message.setField(b,6,a.lineItemChargingState);a.renderingInfo&&D.Message.setWrapperField(b,
4,T.moneta.integrator.common.cart.RenderingInfo.fromObject(a.renderingInfo));a.lineItemDetailList&&D.Message.setRepeatedWrapperField(b,2,a.lineItemDetailList.map(T.moneta.integrator.common.cart.LineItemDetail.fromObject));return b});T.moneta.integrator.common.cart.LineItem.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.LineItem;return T.moneta.integrator.common.cart.LineItem.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.LineItem.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 3:var c=b.readInt32();a.setLineItemIndex(c);break;case 1:c=b.readString();a.setLocalizedTitle(c);break;case 5:c=b.readEnum();a.setLineItemType(c);break;case 6:c=b.readEnum();D.Message.setField(a,6,c);break;case 4:c=new T.moneta.integrator.common.cart.RenderingInfo;b.readMessage(c,T.moneta.integrator.common.cart.RenderingInfo.deserializeBinaryFromReader);D.Message.setWrapperField(a,
4,c);break;case 2:c=new T.moneta.integrator.common.cart.LineItemDetail;b.readMessage(c,T.moneta.integrator.common.cart.LineItemDetail.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,2,c,T.moneta.integrator.common.cart.LineItemDetail,void 0);break;default:D.Message.readBinaryExtension(a,b,T.moneta.integrator.common.cart.LineItem.extensionsBinary,T.moneta.integrator.common.cart.LineItem.prototype.getExtension,T.moneta.integrator.common.cart.LineItem.prototype.setExtension)}return a};
T.moneta.integrator.common.cart.LineItem.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,3);null!=c&&b.writeInt32(3,c);c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,5);null!=c&&b.writeEnum(5,c);c=D.Message.getField(a,6);null!=c&&b.writeEnum(6,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.cart.RenderingInfo,4);null!=c&&N(b,4,c,T.moneta.integrator.common.cart.RenderingInfo.serializeBinaryToWriter);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.cart.LineItemDetail,
2);0<c.length&&P(b,2,c,T.moneta.integrator.common.cart.LineItemDetail.serializeBinaryToWriter);D.Message.serializeBinaryExtensions(a,b,T.moneta.integrator.common.cart.LineItem.extensionsBinary,T.moneta.integrator.common.cart.LineItem.prototype.getExtension)};T.moneta.integrator.common.cart.LineItem.LineItemType={UNKNOWN:0,REGULAR:1,DEDUCTION:2};T.moneta.integrator.common.cart.LineItem.LineItemChargingState={CHARGING:1,REFUNDING:2,CHARGED:3,REFUNDED:4,UNCHARGED:5};
T.moneta.integrator.common.cart.LineItem.prototype.setLineItemIndex=function(a){D.Message.setField(this,3,a)};T.moneta.integrator.common.cart.LineItem.prototype.setLocalizedTitle=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.cart.LineItem.prototype.setLineItemType=function(a){D.Message.setField(this,5,a)};T.moneta.integrator.common.cart.LineItem.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.LineItem,a)};T.moneta.integrator.common.tax={};T.moneta.integrator.common.tax.Tax=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.tax.Tax,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.tax.Tax.prototype.toObject=function(a){return T.moneta.integrator.common.tax.Tax.toObject(a,this)},T.moneta.integrator.common.tax.Tax.toObject=function(a,b){var c,g={taxType:null==(c=D.Message.getField(b,6))?void 0:c,amount:(c=b.getAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),taxCategory:null==(c=D.Message.getField(b,2))?void 0:c,remittanceDestination:null==(c=D.Message.getField(b,3))?void 0:c,effectiveRateInMicros:null==(c=D.Message.getField(b,
4))?void 0:c,feeAmountInMicros:null==(c=D.Message.getField(b,5))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.tax.Tax.ObjectFormat=function(){},T.moneta.integrator.common.tax.Tax.fromObject=function(a){var b=new T.moneta.integrator.common.tax.Tax;null!=a.taxType&&D.Message.setField(b,6,a.taxType);a.amount&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Amount.fromObject(a.amount));null!=a.taxCategory&&D.Message.setField(b,2,a.taxCategory);null!=a.remittanceDestination&&D.Message.setField(b,3,a.remittanceDestination);null!=a.effectiveRateInMicros&&
D.Message.setField(b,4,a.effectiveRateInMicros);null!=a.feeAmountInMicros&&D.Message.setField(b,5,a.feeAmountInMicros);return b});T.moneta.integrator.common.tax.Tax.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.tax.Tax;return T.moneta.integrator.common.tax.Tax.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.tax.Tax.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 6:var c=b.readEnum();a.setTaxType(c);break;case 1:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setAmount(c);break;case 2:c=b.readInt32();a.setTaxCategory(c);break;case 3:c=b.readInt32();D.Message.setField(a,3,c);break;case 4:c=b.readInt64();D.Message.setField(a,4,c);break;case 5:c=b.readInt64();D.Message.setField(a,
5,c);break;default:I(b)}return a};T.moneta.integrator.common.tax.Tax.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,6);null!=c&&b.writeEnum(6,c);c=a.getAmount();null!=c&&N(b,1,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,2);null!=c&&b.writeInt32(2,c);c=D.Message.getField(a,3);null!=c&&b.writeInt32(3,c);c=D.Message.getField(a,4);null!=c&&b.writeInt64(4,c);c=D.Message.getField(a,5);null!=c&&b.writeInt64(5,c)};
T.moneta.integrator.common.tax.Tax.TaxType={TAX_TYPE_UNKNOWN:0,TAX_TYPE_RATE:1,TAX_TYPE_FEE:2};T.moneta.integrator.common.tax.Tax.prototype.setTaxType=function(a){D.Message.setField(this,6,a)};T.moneta.integrator.common.tax.Tax.prototype.getAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,1)};T.moneta.integrator.common.tax.Tax.prototype.setAmount=function(a){D.Message.setWrapperField(this,1,a)};
T.moneta.integrator.common.tax.Tax.prototype.setTaxCategory=function(a){D.Message.setField(this,2,a)};T.moneta.integrator.common.tax.Tax.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.tax.Tax,a)};T.moneta.integrator.common.tax.TaxCategory={UNKNOWN_TAX_CATEGORY:0,ALBANIA_VAT:63,ARGENTINA_GRT:2,ARGENTINA_INCOME_WITHHOLDING_TAX:26,ARGENTINA_SOCIAL_SECURITY_WITHHOLDING_TAX:27,ARGENTINA_VAT:1,ARGENTINA_VAT_PERCEPTION:62,AUSTRALIA_GST:89,AUSTRIA_VAT:34,BAHRAIN_VAT:116,BANGLADESH_VAT:172,BELARUS_VAT:112,BELGIUM_VAT:35,BRAZIL_CIDE_THIRD_PARTY_WITHHOLDING_TAX:109,BRAZIL_CIDE_WITHHOLDING_TAX:28,BRAZIL_COFIN:19,BRAZIL_COFIN_EXPENSE:106,BRAZIL_COFIN_WITHHOLDING_TAX:95,BRAZIL_CSLL:23,BRAZIL_CSSL_WITHHOLDING_TAX:96,
BRAZIL_IRF:20,BRAZIL_IRRF_THIRD_PARTY_WITHHOLDING_TAX:110,BRAZIL_IRRF_WITHHOLDING_TAX:29,BRAZIL_ISSQN:21,BRAZIL_ISSQN_EXPENSE:108,BRAZIL_ISSQN_WITHHOLDING_TAX:111,BRAZIL_PIS:22,BRAZIL_PIS_EXPENSE:107,BRAZIL_PIS_WITHHOLDING_TAX:97,BRAZIL_VAT:3,BULGARIA_VAT:36,CAMEROON_VAT:81,CANARY_ISLANDS_VAT:69,CANADA_GST:104,CANADA_PROVINCE_SALES_TAX:88,CANADA_NL_911_SERVICE_FUND:121,CANADA_PEI_911_COST_RECOVERY_FEE:122,CANADA_NB_GOVERNMENT_911_FEE:123,CANADA_MUNICIPAL_TAX_FOR_911:124,CANADA_SASK_911_FEE:125,CEUTA_VAT:70,
CHINA_IIT:66,CHINA_SURTAX:67,CHINA_VAT:4,CHINA_WITHHOLDING_TAX:68,COLOMBIA_VAT:174,CROATIA_VAT:37,CYPRUS_VAT:38,CZECH_REPUBLIC_VAT:39,DENMARK_VAT:40,ESTONIA_VAT:41,FINLAND_VAT:42,FRANCE_VAT:43,GERMANY_VAT:44,GHANA_VAT:94,GREECE_VAT:45,GUINEA_BISSAU_VAT:82,HUNGARY_VAT:46,ICELAND_VAT:83,IM_VAT:169,INDIA_ADMINISTRATIVE_CHARGE:91,INDIA_CENTRAL_GST:101,INDIA_EDUCATION_CESS_TAX:7,INDIA_HIGHER_EDUCATION_CESS_TAX:12,INDIA_INTEGRATED_GST:100,INDIA_KRISHI_KALYAN_CESS_TAX:77,INDIA_SERVICE_TAX:6,INDIA_STATE_GST:102,
INDIA_SWACHH_BHARAT_CESS_TAX:78,INDIA_TDS:25,INDIA_VAT:64,INDIA_WITHHOLDING_TAX:65,INDONESIA_VAT:118,INDONESIA_VAT_REVERSAL:119,INDONESIA_WITHHOLDING_TAX:120,IRELAND_VAT:8,IRELAND_WITHHOLDING_TAX:79,ITALY_VAT:47,ITALY_VAT_SPLIT_PAYMENT_REVERSAL:170,JAPAN_JCT:75,KOREA_VAT:5,LATVIA_VAT:48,LIECHTENSTEIN_VAT:84,LITHUANIA_VAT:49,LUXEMBOURG_VAT:50,MALTA_VAT:51,MALAYSIA_GIFT_CARD_VAT:99,MALAYSIA_SST:173,MELILLA_VAT:71,MEXICO_VAT:13,MEXICO_VAT_EXPENSE:33,MOROCCO_VAT:72,MOZAMBIQUE_VAT:85,NETHERLANDS_VAT:52,
NEW_ZEALAND_GST:90,NORWAY_VAT:61,POLAND_VAT:53,PORTUGAL_VAT:54,ROMANIA_VAT:55,RUSSIA_NON_NETTABLE_VAT:24,RUSSIA_VAT:9,SAUDI_ARABIA_VAT:114,SERBIA_VAT:105,SINGAPORE_GST:18,SINGAPORE_WITHHOLDING_TAX:87,SLOVAKIA_VAT:56,SLOVENIA_VAT:57,SOUTH_AFRICA_VAT:76,SPAIN_VAT:58,SWEDEN_VAT:59,SWITZERLAND_VAT:80,TAIWAN_VAT:10,THAILAND_GIFT_CARD_GST:98,THIRD_PARTY_TAX:17,TURKEY_GIFT_CARD_TAX_EXPENSE:92,TURKEY_VAT:115,UGANDA_VAT:103,UK_VAT:60,UKRAINE_VAT:11,UNITED_ARAB_EMIRATES_VAT:113,US_AMUSEMENT_TAX:73,US_BROADCAST_TELECOM_TAX:93,
US_CHAPTER3_WITHHOLDING_TAX:171,US_ELECTRONIC_WASTE_FEE:117,US_LEASE_TRANSACTION_TAX:74,US_LOCAL_SALES_TAX:15,US_STATE_SALES_TAX:14,US_WITHHOLDING_TAX:16,US_AR_HIGH_COST_FUND_CHARGE:126,US_AR_TELECOMMUNICATIONS_EQUIPMENT_FUND:127,US_CA_ADVANCED_SERIES_FUND_CHARGE:128,US_CA_HIGH_COST_FUND_SURCHARGE:129,US_CA_TELECONNECT_FUND_CHARGE:130,US_FEDERAL_EXCISE_TAX:131,US_FEDERAL_REGULATORY_ASSESSMENT_FEE:132,US_FEDERAL_UNIVERSAL_SERVICE_FUND:133,US_FUSF_RECOVERY:134,US_LOCAL_911_SURCHARGE:135,US_LOCAL_BUSINESS_AND_OCCUPATION_TAX:136,
US_LOCAL_FRANCHISE_AGREEMENT:137,US_LOCAL_FRANCHISE_FEE:138,US_LOCAL_GROSS_RECEIPTS_TAX:139,US_LOCAL_LEASE_RENTAL_TAX:140,US_LOCAL_LICENSE_TAX:141,US_LOCAL_RIGHT_OF_WAY_FEE:142,US_LOCAL_TELECOMMUNICATIONS_TAX:143,US_LOCAL_UTILITY_USERS_TAX:144,US_ME_PUBLIC_ADVOCATE_ASSESSMENT:145,US_ME_TELECOMMUNICATIONS_EDUCATION_ACCESS_FUND_CHARGE:146,US_MI_ACCESS_RESTRUCTURING_MECHANISM_FEE:147,US_NY_MTA_SURCHARGE_ON_EXCISE_TAX:148,US_NY_MTA_SURCHARGE_ON_FRANCHISE_TAX:149,US_NY_TARGETED_ACCESSIBILITY_FUND_CHARGE:150,
US_POISON_CONTROL:151,US_PUC_FEE:152,US_RI_GIS_AND_TECHNOLOGY_FUND_CHARGE:153,US_STATE_911_TAX:154,US_STATE_BUSINESS_AND_OCCUPATION_TAX:155,US_STATE_CONSUMPTION_TAX:156,US_STATE_EXCISE_TAX:157,US_STATE_FRANCHISE_FEE:158,US_STATE_GROSS_RECEIPTS_TAX:159,US_STATE_INFRASTRUCTURE_MAINTENANCE_FEE:160,US_STATE_LEASE_RENTAL_TAX:161,US_STATE_LICENSE_TAX:162,US_STATE_UTILITY_USERS_TAX:163,US_TELECOMM_RELAY_SYSTEMS_SURCHARGE:164,US_UNIVERSAL_LIFELINE_TELEPHONE_SERVICE_SURCHARGE:165,US_UNIVERSAL_SERVICE_FUND:166,
US_WI_TEACH_UW_SYSTEM_DPI_SURCHARGE:167,US_MISC_TELCO_TAX:168,ZAMBIA_VAT:86,DEPRECATED_TAG_30:30,DEPRECATED_TAG_31:31,DEPRECATED_TAG_32:32};T.moneta.integrator.common.tax.TaxDetails=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.tax.TaxDetails.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.tax.TaxDetails,D.Message);T.moneta.integrator.common.tax.TaxDetails.repeatedFields_=[2];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.tax.TaxDetails.prototype.toObject=function(a){return T.moneta.integrator.common.tax.TaxDetails.toObject(a,this)},T.moneta.integrator.common.tax.TaxDetails.toObject=function(a,b){var c,g={assesseeAddress:(c=b.getAssesseeAddress())&&T.moneta.integrator.common.address.Address.toObject(a,c),taxList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.tax.Tax,2),T.moneta.integrator.common.tax.Tax.toObject,a),taxSignature:D.Message.bytesAsB64(D.Message.getField(b,
3)),taxToken:D.Message.bytesAsB64(D.Message.getField(b,4))};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.tax.TaxDetails.ObjectFormat=function(){},T.moneta.integrator.common.tax.TaxDetails.fromObject=function(a){var b=new T.moneta.integrator.common.tax.TaxDetails;a.assesseeAddress&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.address.Address.fromObject(a.assesseeAddress));a.taxList&&D.Message.setRepeatedWrapperField(b,2,a.taxList.map(T.moneta.integrator.common.tax.Tax.fromObject));null!=a.taxSignature&&D.Message.setField(b,3,a.taxSignature);
null!=a.taxToken&&D.Message.setField(b,4,a.taxToken);return b});T.moneta.integrator.common.tax.TaxDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.tax.TaxDetails;return T.moneta.integrator.common.tax.TaxDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.tax.TaxDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.address.Address;b.readMessage(c,T.moneta.integrator.common.address.Address.deserializeBinaryFromReader);a.setAssesseeAddress(c);break;case 2:c=new T.moneta.integrator.common.tax.Tax;b.readMessage(c,T.moneta.integrator.common.tax.Tax.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,2,c,T.moneta.integrator.common.tax.Tax,
void 0);break;case 3:c=b.readBytes();D.Message.setField(a,3,c);break;case 4:c=b.readBytes();D.Message.setField(a,4,c);break;default:I(b)}return a};
T.moneta.integrator.common.tax.TaxDetails.serializeBinaryToWriter=function(a,b){var c=a.getAssesseeAddress();null!=c&&N(b,1,c,T.moneta.integrator.common.address.Address.serializeBinaryToWriter);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.tax.Tax,2);0<c.length&&P(b,2,c,T.moneta.integrator.common.tax.Tax.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeBytes(3,c);c=D.Message.getField(a,4);null!=c&&b.writeBytes(4,c)};
T.moneta.integrator.common.tax.TaxDetails.prototype.getAssesseeAddress=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.address.Address,1)};T.moneta.integrator.common.tax.TaxDetails.prototype.setAssesseeAddress=function(a){D.Message.setWrapperField(this,1,a)};T.moneta.integrator.common.tax.TaxDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.tax.TaxDetails,a)};T.moneta.integrator.common.tax.TaxDisplay=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.tax.TaxDisplay,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.tax.TaxDisplay.prototype.toObject=function(a){return T.moneta.integrator.common.tax.TaxDisplay.toObject(a,this)},T.moneta.integrator.common.tax.TaxDisplay.toObject=function(a,b){var c,g={taxDisplayName:null==(c=D.Message.getField(b,1))?void 0:c,taxRemittedBy:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.tax.TaxDisplay.ObjectFormat=function(){},T.moneta.integrator.common.tax.TaxDisplay.fromObject=function(a){var b=new T.moneta.integrator.common.tax.TaxDisplay;null!=a.taxDisplayName&&D.Message.setField(b,1,a.taxDisplayName);null!=a.taxRemittedBy&&D.Message.setField(b,2,a.taxRemittedBy);return b});
T.moneta.integrator.common.tax.TaxDisplay.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.tax.TaxDisplay;return T.moneta.integrator.common.tax.TaxDisplay.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.tax.TaxDisplay.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=b.readEnum();D.Message.setField(a,2,c);break;default:I(b)}return a};
T.moneta.integrator.common.tax.TaxDisplay.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeEnum(2,c)};T.moneta.integrator.common.tax.TaxDisplay.TaxRemittedBy={UNKNOWN:0,THIRD_PARTY:1,GOOGLE:2};T.moneta.integrator.common.tax.TaxDisplay.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.tax.TaxDisplay,a)};T.moneta.integrator.common.tax.TaxDisplayDetails=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.tax.TaxDisplayDetails.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.tax.TaxDisplayDetails,D.Message);T.moneta.integrator.common.tax.TaxDisplayDetails.repeatedFields_=[1];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.tax.TaxDisplayDetails.prototype.toObject=function(a){return T.moneta.integrator.common.tax.TaxDisplayDetails.toObject(a,this)},T.moneta.integrator.common.tax.TaxDisplayDetails.toObject=function(a,b){var c={taxDisplayList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.tax.TaxDisplay,1),T.moneta.integrator.common.tax.TaxDisplay.toObject,a)};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.tax.TaxDisplayDetails.ObjectFormat=function(){},T.moneta.integrator.common.tax.TaxDisplayDetails.fromObject=function(a){var b=new T.moneta.integrator.common.tax.TaxDisplayDetails;a.taxDisplayList&&D.Message.setRepeatedWrapperField(b,1,a.taxDisplayList.map(T.moneta.integrator.common.tax.TaxDisplay.fromObject));return b});
T.moneta.integrator.common.tax.TaxDisplayDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.tax.TaxDisplayDetails;return T.moneta.integrator.common.tax.TaxDisplayDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.tax.TaxDisplayDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.tax.TaxDisplay;b.readMessage(c,T.moneta.integrator.common.tax.TaxDisplay.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,1,c,T.moneta.integrator.common.tax.TaxDisplay,void 0);break;default:I(b)}return a};
T.moneta.integrator.common.tax.TaxDisplayDetails.serializeBinaryToWriter=function(a,b){a=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.tax.TaxDisplay,1);0<a.length&&P(b,1,a,T.moneta.integrator.common.tax.TaxDisplay.serializeBinaryToWriter)};T.moneta.integrator.common.tax.TaxDisplayDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.tax.TaxDisplayDetails,a)};T.moneta.integrator.common.cart.TaxDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.cart.TaxDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.TaxDetails.prototype.toObject=function(a){return T.moneta.integrator.common.cart.TaxDetails.toObject(a,this)},T.moneta.integrator.common.cart.TaxDetails.toObject=function(a,b){var c,g={pretaxAmount:(c=V(b))&&T.moneta.integrator.common.Amount.toObject(a,c),taxAmount:(c=b.getTaxAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),totalAmount:(c=W(b))&&T.moneta.integrator.common.Amount.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.TaxDetails.ObjectFormat=function(){},T.moneta.integrator.common.cart.TaxDetails.fromObject=function(a){var b=new T.moneta.integrator.common.cart.TaxDetails;a.pretaxAmount&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Amount.fromObject(a.pretaxAmount));a.taxAmount&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.taxAmount));a.totalAmount&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.Amount.fromObject(a.totalAmount));
return b});T.moneta.integrator.common.cart.TaxDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.TaxDetails;return T.moneta.integrator.common.cart.TaxDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.TaxDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setPretaxAmount(c);break;case 2:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setTaxAmount(c);break;case 3:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);
a.setTotalAmount(c);break;default:I(b)}return a};T.moneta.integrator.common.cart.TaxDetails.serializeBinaryToWriter=function(a,b){var c=V(a);null!=c&&N(b,1,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=a.getTaxAmount();null!=c&&N(b,2,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=W(a);null!=c&&N(b,3,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter)};var V=function(a){return D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,1)};
T.moneta.integrator.common.cart.TaxDetails.prototype.setPretaxAmount=function(a){D.Message.setWrapperField(this,1,a)};T.moneta.integrator.common.cart.TaxDetails.prototype.getTaxAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,2)};T.moneta.integrator.common.cart.TaxDetails.prototype.setTaxAmount=function(a){D.Message.setWrapperField(this,2,a)};var W=function(a){return D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,3)};
T.moneta.integrator.common.cart.TaxDetails.prototype.setTotalAmount=function(a){D.Message.setWrapperField(this,3,a)};T.moneta.integrator.common.cart.TaxDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.TaxDetails,a)};T.moneta.integrator.common.cart.LineItemDetailComputedInfo=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.cart.LineItemDetailComputedInfo,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.LineItemDetailComputedInfo.prototype.toObject=function(a){return T.moneta.integrator.common.cart.LineItemDetailComputedInfo.toObject(a,this)},T.moneta.integrator.common.cart.LineItemDetailComputedInfo.toObject=function(a,b){var c,g={lineItemDetailIndex:null==(c=D.Message.getField(b,1))?void 0:c,taxDetails:(c=b.getTaxDetails())&&T.moneta.integrator.common.cart.TaxDetails.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.LineItemDetailComputedInfo.ObjectFormat=function(){},T.moneta.integrator.common.cart.LineItemDetailComputedInfo.fromObject=function(a){var b=new T.moneta.integrator.common.cart.LineItemDetailComputedInfo;null!=a.lineItemDetailIndex&&D.Message.setField(b,1,a.lineItemDetailIndex);a.taxDetails&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.cart.TaxDetails.fromObject(a.taxDetails));return b});
T.moneta.integrator.common.cart.LineItemDetailComputedInfo.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.LineItemDetailComputedInfo;return T.moneta.integrator.common.cart.LineItemDetailComputedInfo.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.LineItemDetailComputedInfo.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setLineItemDetailIndex(c);break;case 2:c=new T.moneta.integrator.common.cart.TaxDetails;b.readMessage(c,T.moneta.integrator.common.cart.TaxDetails.deserializeBinaryFromReader);a.setTaxDetails(c);break;default:I(b)}return a};
T.moneta.integrator.common.cart.LineItemDetailComputedInfo.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=a.getTaxDetails();null!=c&&N(b,2,c,T.moneta.integrator.common.cart.TaxDetails.serializeBinaryToWriter)};T.moneta.integrator.common.cart.LineItemDetailComputedInfo.prototype.setLineItemDetailIndex=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.cart.LineItemDetailComputedInfo.prototype.getTaxDetails=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.cart.TaxDetails,2)};T.moneta.integrator.common.cart.LineItemDetailComputedInfo.prototype.setTaxDetails=function(a){D.Message.setWrapperField(this,2,a)};T.moneta.integrator.common.cart.LineItemDetailComputedInfo.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.LineItemDetailComputedInfo,a)};T.moneta.integrator.common.cart.PriceDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.cart.PriceDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.PriceDetails.prototype.toObject=function(a){return T.moneta.integrator.common.cart.PriceDetails.toObject(a,this)},T.moneta.integrator.common.cart.PriceDetails.toObject=function(a,b){var c,g={pretaxAmount:(c=V(b))&&T.moneta.integrator.common.Amount.toObject(a,c),taxAmount:(c=b.getTaxAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),totalAmount:(c=W(b))&&T.moneta.integrator.common.Amount.toObject(a,c)};a&&(g.$jspbMessageInstance=
b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.PriceDetails.ObjectFormat=function(){},T.moneta.integrator.common.cart.PriceDetails.fromObject=function(a){var b=new T.moneta.integrator.common.cart.PriceDetails;a.pretaxAmount&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Amount.fromObject(a.pretaxAmount));a.taxAmount&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.taxAmount));a.totalAmount&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.Amount.fromObject(a.totalAmount));return b});
T.moneta.integrator.common.cart.PriceDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.PriceDetails;return T.moneta.integrator.common.cart.PriceDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.PriceDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setPretaxAmount(c);break;case 2:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setTaxAmount(c);break;case 3:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);
a.setTotalAmount(c);break;default:I(b)}return a};T.moneta.integrator.common.cart.PriceDetails.serializeBinaryToWriter=function(a,b){var c=V(a);null!=c&&N(b,1,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=a.getTaxAmount();null!=c&&N(b,2,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=W(a);null!=c&&N(b,3,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter)};
T.moneta.integrator.common.cart.PriceDetails.prototype.setPretaxAmount=function(a){D.Message.setWrapperField(this,1,a)};T.moneta.integrator.common.cart.PriceDetails.prototype.getTaxAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,2)};T.moneta.integrator.common.cart.PriceDetails.prototype.setTaxAmount=function(a){D.Message.setWrapperField(this,2,a)};
T.moneta.integrator.common.cart.PriceDetails.prototype.setTotalAmount=function(a){D.Message.setWrapperField(this,3,a)};T.moneta.integrator.common.cart.PriceDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.PriceDetails,a)};T.moneta.integrator.common.cart.LineItemComputedInfo=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.cart.LineItemComputedInfo.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.cart.LineItemComputedInfo,D.Message);T.moneta.integrator.common.cart.LineItemComputedInfo.repeatedFields_=[2];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.LineItemComputedInfo.prototype.toObject=function(a){return T.moneta.integrator.common.cart.LineItemComputedInfo.toObject(a,this)},T.moneta.integrator.common.cart.LineItemComputedInfo.toObject=function(a,b){var c,g={lineItemIndex:null==(c=D.Message.getField(b,1))?void 0:c,detailInfoList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.cart.LineItemDetailComputedInfo,2),T.moneta.integrator.common.cart.LineItemDetailComputedInfo.toObject,
a),totalTaxDetails:(c=b.getTotalTaxDetails())&&T.moneta.integrator.common.cart.TaxDetails.toObject(a,c),priceDetails:(c=b.getPriceDetails())&&T.moneta.integrator.common.cart.PriceDetails.toObject(a,c),taxDetails:(c=b.getTaxDetails())&&T.moneta.integrator.common.tax.TaxDetails.toObject(a,c),taxDisplayDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.tax.TaxDisplayDetails,6))&&T.moneta.integrator.common.tax.TaxDisplayDetails.toObject(a,c),lineItemType:null==(c=D.Message.getField(b,7))?
void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.LineItemComputedInfo.ObjectFormat=function(){},T.moneta.integrator.common.cart.LineItemComputedInfo.fromObject=function(a){var b=new T.moneta.integrator.common.cart.LineItemComputedInfo;null!=a.lineItemIndex&&D.Message.setField(b,1,a.lineItemIndex);a.detailInfoList&&D.Message.setRepeatedWrapperField(b,2,a.detailInfoList.map(T.moneta.integrator.common.cart.LineItemDetailComputedInfo.fromObject));a.totalTaxDetails&&D.Message.setWrapperField(b,
3,T.moneta.integrator.common.cart.TaxDetails.fromObject(a.totalTaxDetails));a.priceDetails&&D.Message.setWrapperField(b,4,T.moneta.integrator.common.cart.PriceDetails.fromObject(a.priceDetails));a.taxDetails&&D.Message.setWrapperField(b,5,T.moneta.integrator.common.tax.TaxDetails.fromObject(a.taxDetails));a.taxDisplayDetails&&D.Message.setWrapperField(b,6,T.moneta.integrator.common.tax.TaxDisplayDetails.fromObject(a.taxDisplayDetails));null!=a.lineItemType&&D.Message.setField(b,7,a.lineItemType);
return b});T.moneta.integrator.common.cart.LineItemComputedInfo.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.LineItemComputedInfo;return T.moneta.integrator.common.cart.LineItemComputedInfo.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.LineItemComputedInfo.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setLineItemIndex(c);break;case 2:c=new T.moneta.integrator.common.cart.LineItemDetailComputedInfo;b.readMessage(c,T.moneta.integrator.common.cart.LineItemDetailComputedInfo.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,2,c,T.moneta.integrator.common.cart.LineItemDetailComputedInfo,void 0);break;case 3:c=new T.moneta.integrator.common.cart.TaxDetails;
b.readMessage(c,T.moneta.integrator.common.cart.TaxDetails.deserializeBinaryFromReader);a.setTotalTaxDetails(c);break;case 4:c=new T.moneta.integrator.common.cart.PriceDetails;b.readMessage(c,T.moneta.integrator.common.cart.PriceDetails.deserializeBinaryFromReader);a.setPriceDetails(c);break;case 5:c=new T.moneta.integrator.common.tax.TaxDetails;b.readMessage(c,T.moneta.integrator.common.tax.TaxDetails.deserializeBinaryFromReader);a.setTaxDetails(c);break;case 6:c=new T.moneta.integrator.common.tax.TaxDisplayDetails;
b.readMessage(c,T.moneta.integrator.common.tax.TaxDisplayDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,6,c);break;case 7:c=b.readEnum();a.setLineItemType(c);break;default:I(b)}return a};
T.moneta.integrator.common.cart.LineItemComputedInfo.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.cart.LineItemDetailComputedInfo,2);0<c.length&&P(b,2,c,T.moneta.integrator.common.cart.LineItemDetailComputedInfo.serializeBinaryToWriter);c=a.getTotalTaxDetails();null!=c&&N(b,3,c,T.moneta.integrator.common.cart.TaxDetails.serializeBinaryToWriter);c=a.getPriceDetails();null!=c&&N(b,4,c,
T.moneta.integrator.common.cart.PriceDetails.serializeBinaryToWriter);c=a.getTaxDetails();null!=c&&N(b,5,c,T.moneta.integrator.common.tax.TaxDetails.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.tax.TaxDisplayDetails,6);null!=c&&N(b,6,c,T.moneta.integrator.common.tax.TaxDisplayDetails.serializeBinaryToWriter);c=D.Message.getField(a,7);null!=c&&b.writeEnum(7,c)};d=T.moneta.integrator.common.cart.LineItemComputedInfo.prototype;
d.setLineItemIndex=function(a){D.Message.setField(this,1,a)};d.getTotalTaxDetails=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.cart.TaxDetails,3)};d.setTotalTaxDetails=function(a){D.Message.setWrapperField(this,3,a)};d.getPriceDetails=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.cart.PriceDetails,4)};d.setPriceDetails=function(a){D.Message.setWrapperField(this,4,a)};
d.getTaxDetails=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.tax.TaxDetails,5)};d.setTaxDetails=function(a){D.Message.setWrapperField(this,5,a)};d.setLineItemType=function(a){D.Message.setField(this,7,a)};T.moneta.integrator.common.cart.LineItemComputedInfo.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.LineItemComputedInfo,a)};T.moneta.integrator.common.cart.CartComputedInfo=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.cart.CartComputedInfo.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.cart.CartComputedInfo,D.Message);T.moneta.integrator.common.cart.CartComputedInfo.repeatedFields_=[1,6,5,7];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.cart.CartComputedInfo.prototype.toObject=function(a){return T.moneta.integrator.common.cart.CartComputedInfo.toObject(a,this)},T.moneta.integrator.common.cart.CartComputedInfo.toObject=function(a,b){var c,g={lineItemComputedInfoList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.cart.LineItemComputedInfo,1),T.moneta.integrator.common.cart.LineItemComputedInfo.toObject,a),totalTaxDetails:(c=b.getTotalTaxDetails())&&
T.moneta.integrator.common.cart.TaxDetails.toObject(a,c),shippingItemComputedInfo:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.cart.LineItemComputedInfo,4))&&T.moneta.integrator.common.cart.LineItemComputedInfo.toObject(a,c),summaryLineItemComputedInfoList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.cart.LineItemComputedInfo,6),T.moneta.integrator.common.cart.LineItemComputedInfo.toObject,a),gratuityItemComputedInfoList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,
T.moneta.integrator.common.cart.LineItemComputedInfo,5),T.moneta.integrator.common.cart.LineItemComputedInfo.toObject,a),taxItemComputedInfoList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.cart.LineItemComputedInfo,7),T.moneta.integrator.common.cart.LineItemComputedInfo.toObject,a),priceDetails:(c=b.getPriceDetails())&&T.moneta.integrator.common.cart.PriceDetails.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.cart.CartComputedInfo.ObjectFormat=function(){},T.moneta.integrator.common.cart.CartComputedInfo.fromObject=function(a){var b=new T.moneta.integrator.common.cart.CartComputedInfo;a.lineItemComputedInfoList&&D.Message.setRepeatedWrapperField(b,1,a.lineItemComputedInfoList.map(T.moneta.integrator.common.cart.LineItemComputedInfo.fromObject));a.totalTaxDetails&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.cart.TaxDetails.fromObject(a.totalTaxDetails));
a.shippingItemComputedInfo&&D.Message.setWrapperField(b,4,T.moneta.integrator.common.cart.LineItemComputedInfo.fromObject(a.shippingItemComputedInfo));a.summaryLineItemComputedInfoList&&D.Message.setRepeatedWrapperField(b,6,a.summaryLineItemComputedInfoList.map(T.moneta.integrator.common.cart.LineItemComputedInfo.fromObject));a.gratuityItemComputedInfoList&&D.Message.setRepeatedWrapperField(b,5,a.gratuityItemComputedInfoList.map(T.moneta.integrator.common.cart.LineItemComputedInfo.fromObject));a.taxItemComputedInfoList&&
D.Message.setRepeatedWrapperField(b,7,a.taxItemComputedInfoList.map(T.moneta.integrator.common.cart.LineItemComputedInfo.fromObject));a.priceDetails&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.cart.PriceDetails.fromObject(a.priceDetails));return b});
T.moneta.integrator.common.cart.CartComputedInfo.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.cart.CartComputedInfo;return T.moneta.integrator.common.cart.CartComputedInfo.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.cart.CartComputedInfo.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.cart.LineItemComputedInfo;b.readMessage(c,T.moneta.integrator.common.cart.LineItemComputedInfo.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,1,c,T.moneta.integrator.common.cart.LineItemComputedInfo,void 0);break;case 2:c=new T.moneta.integrator.common.cart.TaxDetails;b.readMessage(c,T.moneta.integrator.common.cart.TaxDetails.deserializeBinaryFromReader);
a.setTotalTaxDetails(c);break;case 4:c=new T.moneta.integrator.common.cart.LineItemComputedInfo;b.readMessage(c,T.moneta.integrator.common.cart.LineItemComputedInfo.deserializeBinaryFromReader);D.Message.setWrapperField(a,4,c);break;case 6:c=new T.moneta.integrator.common.cart.LineItemComputedInfo;b.readMessage(c,T.moneta.integrator.common.cart.LineItemComputedInfo.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,6,c,T.moneta.integrator.common.cart.LineItemComputedInfo,void 0);break;
case 5:c=new T.moneta.integrator.common.cart.LineItemComputedInfo;b.readMessage(c,T.moneta.integrator.common.cart.LineItemComputedInfo.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,5,c,T.moneta.integrator.common.cart.LineItemComputedInfo,void 0);break;case 7:c=new T.moneta.integrator.common.cart.LineItemComputedInfo;b.readMessage(c,T.moneta.integrator.common.cart.LineItemComputedInfo.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,7,c,T.moneta.integrator.common.cart.LineItemComputedInfo,
void 0);break;case 3:c=new T.moneta.integrator.common.cart.PriceDetails;b.readMessage(c,T.moneta.integrator.common.cart.PriceDetails.deserializeBinaryFromReader);a.setPriceDetails(c);break;default:I(b)}return a};
T.moneta.integrator.common.cart.CartComputedInfo.serializeBinaryToWriter=function(a,b){var c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.cart.LineItemComputedInfo,1);0<c.length&&P(b,1,c,T.moneta.integrator.common.cart.LineItemComputedInfo.serializeBinaryToWriter);c=a.getTotalTaxDetails();null!=c&&N(b,2,c,T.moneta.integrator.common.cart.TaxDetails.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.cart.LineItemComputedInfo,4);null!=c&&N(b,4,c,T.moneta.integrator.common.cart.LineItemComputedInfo.serializeBinaryToWriter);
c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.cart.LineItemComputedInfo,6);0<c.length&&P(b,6,c,T.moneta.integrator.common.cart.LineItemComputedInfo.serializeBinaryToWriter);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.cart.LineItemComputedInfo,5);0<c.length&&P(b,5,c,T.moneta.integrator.common.cart.LineItemComputedInfo.serializeBinaryToWriter);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.cart.LineItemComputedInfo,7);0<c.length&&P(b,7,c,T.moneta.integrator.common.cart.LineItemComputedInfo.serializeBinaryToWriter);
c=a.getPriceDetails();null!=c&&N(b,3,c,T.moneta.integrator.common.cart.PriceDetails.serializeBinaryToWriter)};T.moneta.integrator.common.cart.CartComputedInfo.prototype.getTotalTaxDetails=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.cart.TaxDetails,2)};T.moneta.integrator.common.cart.CartComputedInfo.prototype.setTotalTaxDetails=function(a){D.Message.setWrapperField(this,2,a)};
T.moneta.integrator.common.cart.CartComputedInfo.prototype.getPriceDetails=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.cart.PriceDetails,3)};T.moneta.integrator.common.cart.CartComputedInfo.prototype.setPriceDetails=function(a){D.Message.setWrapperField(this,3,a)};T.moneta.integrator.common.cart.CartComputedInfo.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.cart.CartComputedInfo,a)};T.moneta.integrator.common.fundsguarantee={};T.moneta.integrator.common.fundsguarantee.FundsAvailability=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.fundsguarantee.FundsAvailability,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.FundsAvailability.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.FundsAvailability.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.FundsAvailability.toObject=function(a,b){var c,g={fundsAvailabilityMillis:null==(c=D.Message.getField(b,1))?void 0:c,fundsAvailabilityMessage:null==(c=D.Message.getField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.FundsAvailability.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.FundsAvailability.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.FundsAvailability;null!=a.fundsAvailabilityMillis&&D.Message.setField(b,1,a.fundsAvailabilityMillis);null!=a.fundsAvailabilityMessage&&D.Message.setField(b,3,a.fundsAvailabilityMessage);return b});
T.moneta.integrator.common.fundsguarantee.FundsAvailability.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.FundsAvailability;return T.moneta.integrator.common.fundsguarantee.FundsAvailability.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.FundsAvailability.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt64();D.Message.setField(a,1,c);break;case 3:c=b.readEnum();D.Message.setField(a,3,c);break;default:I(b)}return a};T.moneta.integrator.common.fundsguarantee.FundsAvailability.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt64(1,c);c=D.Message.getField(a,3);null!=c&&b.writeEnum(3,c)};
T.moneta.integrator.common.fundsguarantee.FundsAvailability.FundsAvailabilityMessage={UNKNOWN:0,DEFAULT:1,WARN_FOR_POTENTIAL_FRAUD:2};T.moneta.integrator.common.fundsguarantee.FundsAvailability.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.FundsAvailability,a)};T.moneta.integrator.common.billingaccount={};T.moneta.integrator.common.billingaccount.BillingAccountEnums=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.billingaccount.BillingAccountEnums,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.billingaccount.BillingAccountEnums.prototype.toObject=function(a){return T.moneta.integrator.common.billingaccount.BillingAccountEnums.toObject(a,this)},T.moneta.integrator.common.billingaccount.BillingAccountEnums.toObject=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.billingaccount.BillingAccountEnums.ObjectFormat=function(){},T.moneta.integrator.common.billingaccount.BillingAccountEnums.fromObject=function(){return new T.moneta.integrator.common.billingaccount.BillingAccountEnums});
T.moneta.integrator.common.billingaccount.BillingAccountEnums.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.billingaccount.BillingAccountEnums;return T.moneta.integrator.common.billingaccount.BillingAccountEnums.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.billingaccount.BillingAccountEnums.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)I(b);return a};
T.moneta.integrator.common.billingaccount.BillingAccountEnums.serializeBinaryToWriter=function(){};T.moneta.integrator.common.billingaccount.BillingAccountEnums.InstrumentRank={UNKNOWN:0,PRIMARY:1,SECONDARY:2};T.moneta.integrator.common.billingaccount.BillingAccountEnums.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.billingaccount.BillingAccountEnums,a)};T.moneta.integrator.common.instrument={};T.moneta.integrator.common.instrument.NewCarrierBillingDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.instrument.NewCarrierBillingDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.instrument.NewCarrierBillingDetails.prototype.toObject=function(a){return T.moneta.integrator.common.instrument.NewCarrierBillingDetails.toObject(a,this)},T.moneta.integrator.common.instrument.NewCarrierBillingDetails.toObject=function(a,b){var c,g={carrierId:null==(c=D.Message.getField(b,1))?void 0:c,billingAgreementId:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.instrument.NewCarrierBillingDetails.ObjectFormat=function(){},T.moneta.integrator.common.instrument.NewCarrierBillingDetails.fromObject=function(a){var b=new T.moneta.integrator.common.instrument.NewCarrierBillingDetails;null!=a.carrierId&&D.Message.setField(b,1,a.carrierId);null!=a.billingAgreementId&&D.Message.setField(b,2,a.billingAgreementId);return b});
T.moneta.integrator.common.instrument.NewCarrierBillingDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.instrument.NewCarrierBillingDetails;return T.moneta.integrator.common.instrument.NewCarrierBillingDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.instrument.NewCarrierBillingDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;default:I(b)}return a};T.moneta.integrator.common.instrument.NewCarrierBillingDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c)};
T.moneta.integrator.common.instrument.NewCarrierBillingDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.instrument.NewCarrierBillingDetails,a)};T.moneta.integrator.common.instrument.NewFinancingDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.instrument.NewFinancingDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.instrument.NewFinancingDetails.prototype.toObject=function(a){return T.moneta.integrator.common.instrument.NewFinancingDetails.toObject(a,this)},T.moneta.integrator.common.instrument.NewFinancingDetails.toObject=function(a,b){var c,g={previouslyApproved:null==(c=D.Message.getBooleanField(b,1))?void 0:c,nonApprovalTimestampMillis:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.instrument.NewFinancingDetails.ObjectFormat=function(){},T.moneta.integrator.common.instrument.NewFinancingDetails.fromObject=function(a){var b=new T.moneta.integrator.common.instrument.NewFinancingDetails;null!=a.previouslyApproved&&D.Message.setField(b,1,a.previouslyApproved);null!=a.nonApprovalTimestampMillis&&D.Message.setField(b,2,a.nonApprovalTimestampMillis);return b});
T.moneta.integrator.common.instrument.NewFinancingDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.instrument.NewFinancingDetails;return T.moneta.integrator.common.instrument.NewFinancingDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.instrument.NewFinancingDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readBool();D.Message.setField(a,1,c);break;case 2:c=b.readInt64();D.Message.setField(a,2,c);break;default:I(b)}return a};T.moneta.integrator.common.instrument.NewFinancingDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeBool(1,c);c=D.Message.getField(a,2);null!=c&&b.writeInt64(2,c)};
T.moneta.integrator.common.instrument.NewFinancingDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.instrument.NewFinancingDetails,a)};T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails.prototype.toObject=function(a){return T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails.toObject(a,this)},T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails.toObject=function(a,b){var c,g={configId:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails.ObjectFormat=function(){},T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails.fromObject=function(a){var b=new T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails;null!=a.configId&&D.Message.setField(b,1,a.configId);return b});
T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails;return T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;default:I(b)}return a};T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeString(1,a)};
T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails,a)};T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails.prototype.toObject=function(a){return T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails.toObject(a,this)},T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails.toObject=function(a,b){var c,g={brandId:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails.ObjectFormat=function(){},T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails.fromObject=function(a){var b=new T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails;null!=a.brandId&&D.Message.setField(b,1,a.brandId);return b});
T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails;return T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;default:I(b)}return a};T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeString(1,a)};
T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails,a)};T.moneta.integrator.common.instrument.NewUpiDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.instrument.NewUpiDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.instrument.NewUpiDetails.prototype.toObject=function(a){return T.moneta.integrator.common.instrument.NewUpiDetails.toObject(a,this)},T.moneta.integrator.common.instrument.NewUpiDetails.toObject=function(a,b){var c,g={renderingConfigId:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.instrument.NewUpiDetails.ObjectFormat=function(){},T.moneta.integrator.common.instrument.NewUpiDetails.fromObject=function(a){var b=new T.moneta.integrator.common.instrument.NewUpiDetails;null!=a.renderingConfigId&&D.Message.setField(b,1,a.renderingConfigId);return b});
T.moneta.integrator.common.instrument.NewUpiDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.instrument.NewUpiDetails;return T.moneta.integrator.common.instrument.NewUpiDetails.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.instrument.NewUpiDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;default:I(b)}return a};
T.moneta.integrator.common.instrument.NewUpiDetails.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeString(1,a)};T.moneta.integrator.common.instrument.NewUpiDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.instrument.NewUpiDetails,a)};T.moneta.integrator.common.instrument.NewInstrumentDetails=function(a){D.Message.initialize(this,a,0,-1,null,T.moneta.integrator.common.instrument.NewInstrumentDetails.oneofGroups_)};f.inherits(T.moneta.integrator.common.instrument.NewInstrumentDetails,D.Message);T.moneta.integrator.common.instrument.NewInstrumentDetails.oneofGroups_=[[1,2,3,4,5]];
T.moneta.integrator.common.instrument.NewInstrumentDetails.DetailsCase={DETAILS_NOT_SET:0,CARRIER_BILLING_DETAILS:1,FINANCING_DETAILS:2,GOOGLE_STANDARD_TOKENIZED_DETAILS:3,GOOGLE_STANDARD_PUSH_DETAILS:4,UPI_DETAILS:5};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.instrument.NewInstrumentDetails.prototype.toObject=function(a){return T.moneta.integrator.common.instrument.NewInstrumentDetails.toObject(a,this)},T.moneta.integrator.common.instrument.NewInstrumentDetails.toObject=function(a,b){var c,g={carrierBillingDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.instrument.NewCarrierBillingDetails,1))&&T.moneta.integrator.common.instrument.NewCarrierBillingDetails.toObject(a,c),financingDetails:(c=
D.Message.getWrapperField(b,T.moneta.integrator.common.instrument.NewFinancingDetails,2))&&T.moneta.integrator.common.instrument.NewFinancingDetails.toObject(a,c),googleStandardTokenizedDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails,3))&&T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails.toObject(a,c),googleStandardPushDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails,
4))&&T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails.toObject(a,c),upiDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.instrument.NewUpiDetails,5))&&T.moneta.integrator.common.instrument.NewUpiDetails.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.instrument.NewInstrumentDetails.ObjectFormat=function(){},T.moneta.integrator.common.instrument.NewInstrumentDetails.fromObject=function(a){var b=new T.moneta.integrator.common.instrument.NewInstrumentDetails;a.carrierBillingDetails&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.instrument.NewCarrierBillingDetails.fromObject(a.carrierBillingDetails));a.financingDetails&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.instrument.NewFinancingDetails.fromObject(a.financingDetails));
a.googleStandardTokenizedDetails&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails.fromObject(a.googleStandardTokenizedDetails));a.googleStandardPushDetails&&D.Message.setWrapperField(b,4,T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails.fromObject(a.googleStandardPushDetails));a.upiDetails&&D.Message.setWrapperField(b,5,T.moneta.integrator.common.instrument.NewUpiDetails.fromObject(a.upiDetails));return b});
T.moneta.integrator.common.instrument.NewInstrumentDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.instrument.NewInstrumentDetails;return T.moneta.integrator.common.instrument.NewInstrumentDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.instrument.NewInstrumentDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.instrument.NewCarrierBillingDetails;b.readMessage(c,T.moneta.integrator.common.instrument.NewCarrierBillingDetails.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,1,T.moneta.integrator.common.instrument.NewInstrumentDetails.oneofGroups_[0],c);break;case 2:c=new T.moneta.integrator.common.instrument.NewFinancingDetails;
b.readMessage(c,T.moneta.integrator.common.instrument.NewFinancingDetails.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,2,T.moneta.integrator.common.instrument.NewInstrumentDetails.oneofGroups_[0],c);break;case 3:c=new T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails;b.readMessage(c,T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,3,T.moneta.integrator.common.instrument.NewInstrumentDetails.oneofGroups_[0],
c);break;case 4:c=new T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails;b.readMessage(c,T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,4,T.moneta.integrator.common.instrument.NewInstrumentDetails.oneofGroups_[0],c);break;case 5:c=new T.moneta.integrator.common.instrument.NewUpiDetails;b.readMessage(c,T.moneta.integrator.common.instrument.NewUpiDetails.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,
5,T.moneta.integrator.common.instrument.NewInstrumentDetails.oneofGroups_[0],c);break;default:I(b)}return a};
T.moneta.integrator.common.instrument.NewInstrumentDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getWrapperField(a,T.moneta.integrator.common.instrument.NewCarrierBillingDetails,1);null!=c&&N(b,1,c,T.moneta.integrator.common.instrument.NewCarrierBillingDetails.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.instrument.NewFinancingDetails,2);null!=c&&N(b,2,c,T.moneta.integrator.common.instrument.NewFinancingDetails.serializeBinaryToWriter);c=D.Message.getWrapperField(a,
T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails,3);null!=c&&N(b,3,c,T.moneta.integrator.common.instrument.NewGoogleStandardTokenizedDetails.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails,4);null!=c&&N(b,4,c,T.moneta.integrator.common.instrument.NewGoogleStandardPushDetails.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.instrument.NewUpiDetails,5);null!=c&&N(b,5,c,T.moneta.integrator.common.instrument.NewUpiDetails.serializeBinaryToWriter)};
T.moneta.integrator.common.instrument.NewInstrumentDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.instrument.NewInstrumentDetails,a)};T.moneta.integrator.common.instrument.InstrumentAssignmentRank=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.instrument.InstrumentAssignmentRank,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.instrument.InstrumentAssignmentRank.prototype.toObject=function(a){return T.moneta.integrator.common.instrument.InstrumentAssignmentRank.toObject(a,this)},T.moneta.integrator.common.instrument.InstrumentAssignmentRank.toObject=function(a,b){var c={rank:D.Message.getFieldWithDefault(b,1,2147483647)};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.instrument.InstrumentAssignmentRank.ObjectFormat=function(){},T.moneta.integrator.common.instrument.InstrumentAssignmentRank.fromObject=function(a){var b=new T.moneta.integrator.common.instrument.InstrumentAssignmentRank;null!=a.rank&&D.Message.setField(b,1,a.rank);return b});
T.moneta.integrator.common.instrument.InstrumentAssignmentRank.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.instrument.InstrumentAssignmentRank;return T.moneta.integrator.common.instrument.InstrumentAssignmentRank.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.instrument.InstrumentAssignmentRank.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();D.Message.setField(a,1,c);break;default:I(b)}return a};
T.moneta.integrator.common.instrument.InstrumentAssignmentRank.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeInt32(1,a)};T.moneta.integrator.common.instrument.InstrumentAssignmentRank.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.instrument.InstrumentAssignmentRank,a)};T.moneta.integrator.common.instrument.InstrumentDescription=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.instrument.InstrumentDescription.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.instrument.InstrumentDescription,D.Message);T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer=function(a){D.Message.initialize(this,a,0,-1,null,null)};
f.inherits(T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer,D.Message);T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo,D.Message);
T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance,D.Message);T.moneta.integrator.common.instrument.InstrumentDescription.repeatedFields_=[8];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.instrument.InstrumentDescription.prototype.toObject=function(a){return T.moneta.integrator.common.instrument.InstrumentDescription.toObject(a,this)},T.moneta.integrator.common.instrument.InstrumentDescription.toObject=function(a,b){var c,g={instrumentType:null==(c=D.Message.getField(b,1))?void 0:c,instrumentDescription:null==(c=D.Message.getField(b,2))?void 0:c,canonicalInstrumentDescription:null==(c=D.Message.getField(b,6))?void 0:c,instrumentSubDescription:null==
(c=D.Message.getField(b,7))?void 0:c,instrumentLegalDisclaimerList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer,8),T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer.toObject,a),logoUri:null==(c=D.Message.getField(b,3))?void 0:c,backgroundUri:null==(c=D.Message.getField(b,4))?void 0:c,balanceInfo:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo,
5))&&T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.instrument.InstrumentDescription.ObjectFormat=function(){},T.moneta.integrator.common.instrument.InstrumentDescription.fromObject=function(a){var b=new T.moneta.integrator.common.instrument.InstrumentDescription;null!=a.instrumentType&&D.Message.setField(b,1,a.instrumentType);null!=a.instrumentDescription&&D.Message.setField(b,2,a.instrumentDescription);null!=a.canonicalInstrumentDescription&&D.Message.setField(b,6,a.canonicalInstrumentDescription);
null!=a.instrumentSubDescription&&D.Message.setField(b,7,a.instrumentSubDescription);a.instrumentLegalDisclaimerList&&D.Message.setRepeatedWrapperField(b,8,a.instrumentLegalDisclaimerList.map(T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer.fromObject));null!=a.logoUri&&D.Message.setField(b,3,a.logoUri);null!=a.backgroundUri&&D.Message.setField(b,4,a.backgroundUri);a.balanceInfo&&D.Message.setWrapperField(b,5,T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.fromObject(a.balanceInfo));
return b});T.moneta.integrator.common.instrument.InstrumentDescription.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.instrument.InstrumentDescription;return T.moneta.integrator.common.instrument.InstrumentDescription.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.instrument.InstrumentDescription.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();a.setInstrumentType(c);break;case 2:c=b.readString();a.setInstrumentDescription(c);break;case 6:c=b.readString();D.Message.setField(a,6,c);break;case 7:c=b.readString();D.Message.setField(a,7,c);break;case 8:c=new T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer;b.readMessage(c,T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer.deserializeBinaryFromReader);
D.Message.addToRepeatedWrapperField(a,8,c,T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer,void 0);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;case 4:c=b.readString();D.Message.setField(a,4,c);break;case 5:c=new T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo;b.readMessage(c,T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.deserializeBinaryFromReader);D.Message.setWrapperField(a,5,c);break;default:I(b)}return a};
T.moneta.integrator.common.instrument.InstrumentDescription.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,6);null!=c&&b.writeString(6,c);c=D.Message.getField(a,7);null!=c&&b.writeString(7,c);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer,8);0<c.length&&P(b,8,c,T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer.serializeBinaryToWriter);
c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo,5);null!=c&&N(b,5,c,T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.serializeBinaryToWriter)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer.prototype.toObject=function(a){return T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer.toObject(a,this)},T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer.toObject=function(a,b){var c,g={legalMessage:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer.ObjectFormat=function(){},T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer.fromObject=function(a){var b=new T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer;null!=a.legalMessage&&D.Message.setField(b,1,a.legalMessage);return b});
T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer;return T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;default:I(b)}return a};T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeString(1,a)};
T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.instrument.InstrumentDescription.InstrumentLegalDisclaimer,a)};T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.repeatedFields_=[4];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.prototype.toObject=function(a){return T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.toObject(a,this)},T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.toObject=function(a,b){var c,g={availableAmount:(c=Ma(b))&&T.moneta.integrator.common.Amount.toObject(a,c),promotionalAmount:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,2))&&T.moneta.integrator.common.Amount.toObject(a,
c),promotionalExpirationMillis:null==(c=D.Message.getField(b,3))?void 0:c,promotionalBalancesList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance,4),T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance.toObject,a)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.ObjectFormat=function(){},T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.fromObject=function(a){var b=new T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo;a.availableAmount&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Amount.fromObject(a.availableAmount));a.promotionalAmount&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.promotionalAmount));
null!=a.promotionalExpirationMillis&&D.Message.setField(b,3,a.promotionalExpirationMillis);a.promotionalBalancesList&&D.Message.setRepeatedWrapperField(b,4,a.promotionalBalancesList.map(T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance.fromObject));return b});
T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo;return T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setAvailableAmount(c);break;case 2:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,2,c);break;case 3:c=b.readInt64();
D.Message.setField(a,3,c);break;case 4:c=new T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance;b.readMessage(c,T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,4,c,T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance,void 0);break;default:I(b)}return a};
T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.serializeBinaryToWriter=function(a,b){var c=Ma(a);null!=c&&N(b,1,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,2);null!=c&&N(b,2,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeInt64(3,c);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance,
4);0<c.length&&P(b,4,c,T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance.serializeBinaryToWriter)};var Ma=function(a){return D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,1)};T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.prototype.setAvailableAmount=function(a){D.Message.setWrapperField(this,1,a)};
T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.instrument.InstrumentDescription.BalanceInfo,a)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance.prototype.toObject=function(a){return T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance.toObject(a,this)},T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance.toObject=function(a,b){var c,g={availableAmount:(c=Ma(b))&&T.moneta.integrator.common.Amount.toObject(a,c),expirationMillis:null==(c=D.Message.getField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=
b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance.ObjectFormat=function(){},T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance.fromObject=function(a){var b=new T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance;a.availableAmount&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Amount.fromObject(a.availableAmount));null!=a.expirationMillis&&D.Message.setField(b,3,a.expirationMillis);
return b});T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance;return T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setAvailableAmount(c);break;case 3:c=b.readInt64();D.Message.setField(a,3,c);break;default:I(b)}return a};
T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance.serializeBinaryToWriter=function(a,b){var c=Ma(a);null!=c&&N(b,1,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeInt64(3,c)};T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance.prototype.setAvailableAmount=function(a){D.Message.setWrapperField(this,1,a)};
T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.instrument.InstrumentDescription.PromotionalBalance,a)};T.moneta.integrator.common.instrument.InstrumentDescription.prototype.setInstrumentType=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.instrument.InstrumentDescription.prototype.getInstrumentDescription=function(){return D.Message.getField(this,2)};
T.moneta.integrator.common.instrument.InstrumentDescription.prototype.setInstrumentDescription=function(a){D.Message.setField(this,2,a)};T.moneta.integrator.common.instrument.InstrumentDescription.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.instrument.InstrumentDescription,a)};T.moneta.integrator.common.instrument.InstrumentEnums=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.instrument.InstrumentEnums,D.Message);D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.instrument.InstrumentEnums.prototype.toObject=function(a){return T.moneta.integrator.common.instrument.InstrumentEnums.toObject(a,this)},T.moneta.integrator.common.instrument.InstrumentEnums.toObject=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.instrument.InstrumentEnums.ObjectFormat=function(){},T.moneta.integrator.common.instrument.InstrumentEnums.fromObject=function(){return new T.moneta.integrator.common.instrument.InstrumentEnums});
T.moneta.integrator.common.instrument.InstrumentEnums.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.instrument.InstrumentEnums;return T.moneta.integrator.common.instrument.InstrumentEnums.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.instrument.InstrumentEnums.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)I(b);return a};T.moneta.integrator.common.instrument.InstrumentEnums.serializeBinaryToWriter=function(){};
T.moneta.integrator.common.instrument.InstrumentEnums.InstrumentType={UNKNOWN_INSTRUMENT:0,CREDIT_CARD:1,CARRIER_BILLING:2,PAYPAL:3,STORED_VALUE_OPEN_LOOP:4,STORED_VALUE_CLOSED_LOOP_PLAY:5,STORED_VALUE_CLOSED_LOOP_PLAY_LOYALTY:14,STORED_VALUE_CLOSED_LOOP_GOOGLE_STORE:12,MONETIZATION_CHANNEL:6,NETBANKING:7,BANK_ACCOUNT:8,FINANCING:9,BILLING_ACCOUNT:10,GOOGLE_STANDARD_TOKENIZED:11,GOOGLE_STANDARD_PUSH:13,UPI:15,DEVICE_STORED_VALUE_CARD:16,PAYCACHE:17,PAYNOW:18};
T.moneta.integrator.common.instrument.InstrumentEnums.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.instrument.InstrumentEnums,a)};T.moneta.integrator.common.instrument.InstrumentPreference=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.instrument.InstrumentPreference,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.instrument.InstrumentPreference.prototype.toObject=function(a){return T.moneta.integrator.common.instrument.InstrumentPreference.toObject(a,this)},T.moneta.integrator.common.instrument.InstrumentPreference.toObject=function(a,b){var c,g={currencyCode:null==(c=D.Message.getField(b,1))?void 0:c,allowedMaxAmountInMicros:D.Message.getFieldWithDefault(b,2,-1),allowedMinAmountInMicros:D.Message.getFieldWithDefault(b,4,-1),amountTooHighErrorMessage:null==
(c=D.Message.getField(b,3))?void 0:c,amountLessThanLimitErrorMessage:null==(c=D.Message.getField(b,5))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.instrument.InstrumentPreference.ObjectFormat=function(){},T.moneta.integrator.common.instrument.InstrumentPreference.fromObject=function(a){var b=new T.moneta.integrator.common.instrument.InstrumentPreference;null!=a.currencyCode&&D.Message.setField(b,1,a.currencyCode);null!=a.allowedMaxAmountInMicros&&D.Message.setField(b,2,a.allowedMaxAmountInMicros);null!=a.allowedMinAmountInMicros&&D.Message.setField(b,4,a.allowedMinAmountInMicros);null!=
a.amountTooHighErrorMessage&&D.Message.setField(b,3,a.amountTooHighErrorMessage);null!=a.amountLessThanLimitErrorMessage&&D.Message.setField(b,5,a.amountLessThanLimitErrorMessage);return b});T.moneta.integrator.common.instrument.InstrumentPreference.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.instrument.InstrumentPreference;return T.moneta.integrator.common.instrument.InstrumentPreference.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.instrument.InstrumentPreference.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=b.readInt64();D.Message.setField(a,2,c);break;case 4:c=b.readInt64();D.Message.setField(a,4,c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;case 5:c=b.readString();D.Message.setField(a,5,c);break;default:I(b)}return a};
T.moneta.integrator.common.instrument.InstrumentPreference.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeInt64(2,c);c=D.Message.getField(a,4);null!=c&&b.writeInt64(4,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getField(a,5);null!=c&&b.writeString(5,c)};
T.moneta.integrator.common.instrument.InstrumentPreference.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.instrument.InstrumentPreference,a)};T.moneta.integrator.common.instrument.InstrumentStatus=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.instrument.InstrumentStatus,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.instrument.InstrumentStatus.prototype.toObject=function(a){return T.moneta.integrator.common.instrument.InstrumentStatus.toObject(a,this)},T.moneta.integrator.common.instrument.InstrumentStatus.toObject=function(a,b){var c,g={instrumentStatus:null==(c=D.Message.getField(b,1))?void 0:c,statusDescription:null==(c=D.Message.getField(b,2))?void 0:c,editToken:D.Message.bytesAsB64(D.Message.getField(b,3)),deleteToken:D.Message.bytesAsB64(D.Message.getField(b,
4))};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.instrument.InstrumentStatus.ObjectFormat=function(){},T.moneta.integrator.common.instrument.InstrumentStatus.fromObject=function(a){var b=new T.moneta.integrator.common.instrument.InstrumentStatus;null!=a.instrumentStatus&&D.Message.setField(b,1,a.instrumentStatus);null!=a.statusDescription&&D.Message.setField(b,2,a.statusDescription);null!=a.editToken&&D.Message.setField(b,3,a.editToken);null!=a.deleteToken&&D.Message.setField(b,4,a.deleteToken);
return b});T.moneta.integrator.common.instrument.InstrumentStatus.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.instrument.InstrumentStatus;return T.moneta.integrator.common.instrument.InstrumentStatus.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.instrument.InstrumentStatus.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readBytes();D.Message.setField(a,3,c);break;case 4:c=b.readBytes();D.Message.setField(a,4,c);break;default:I(b)}return a};
T.moneta.integrator.common.instrument.InstrumentStatus.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeBytes(3,c);c=D.Message.getField(a,4);null!=c&&b.writeBytes(4,c)};T.moneta.integrator.common.instrument.InstrumentStatus.Status={UNKNOWN:0,INSTRUMENT_OK:1,INSTRUMENT_EXPIRED:2,INSTRUMENT_REQUIRES_FIX:5,INSTRUMENT_INAPPLICABLE:4};
T.moneta.integrator.common.instrument.InstrumentStatus.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.instrument.InstrumentStatus,a)};T.moneta.integrator.common.instrument.NewInstrument=function(a){D.Message.initialize(this,a,0,-1,null,T.moneta.integrator.common.instrument.NewInstrument.oneofGroups_)};f.inherits(T.moneta.integrator.common.instrument.NewInstrument,D.Message);T.moneta.integrator.common.instrument.NewInstrument.oneofGroups_=[[4,5,7]];T.moneta.integrator.common.instrument.NewInstrument.CreateWidgetInputCase={CREATE_WIDGET_INPUT_NOT_SET:0,ADD_TOKEN:4,IDENTITY_AND_CREDIT_ENCRYPTED_PARAMETERS:5,AUTO_CREATE_VIA_API_ADD_TOKEN:7};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.instrument.NewInstrument.prototype.toObject=function(a){return T.moneta.integrator.common.instrument.NewInstrument.toObject(a,this)},T.moneta.integrator.common.instrument.NewInstrument.toObject=function(a,b){var c,g={instrumentType:null==(c=D.Message.getField(b,1))?void 0:c,addInstrumentDescription:null==(c=D.Message.getField(b,2))?void 0:c,instrumentLogo:null==(c=D.Message.getField(b,3))?void 0:c,addToken:D.Message.bytesAsB64(D.Message.getField(b,
4)),identityAndCreditEncryptedParameters:D.Message.bytesAsB64(D.Message.getField(b,5)),autoCreateViaApiAddToken:D.Message.bytesAsB64(D.Message.getField(b,7)),newInstrumentDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.instrument.NewInstrumentDetails,6))&&T.moneta.integrator.common.instrument.NewInstrumentDetails.toObject(a,c),autoCreateViaApiAddTokenV2:D.Message.bytesAsB64(D.Message.getField(b,8)),allowedForPrimary:null==(c=D.Message.getBooleanField(b,9))?void 0:c,allowedForBackup:null==
(c=D.Message.getBooleanField(b,10))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.instrument.NewInstrument.ObjectFormat=function(){},T.moneta.integrator.common.instrument.NewInstrument.fromObject=function(a){var b=new T.moneta.integrator.common.instrument.NewInstrument;null!=a.instrumentType&&D.Message.setField(b,1,a.instrumentType);null!=a.addInstrumentDescription&&D.Message.setField(b,2,a.addInstrumentDescription);null!=a.instrumentLogo&&D.Message.setField(b,3,a.instrumentLogo);null!=a.addToken&&D.Message.setField(b,
4,a.addToken);null!=a.identityAndCreditEncryptedParameters&&D.Message.setField(b,5,a.identityAndCreditEncryptedParameters);null!=a.autoCreateViaApiAddToken&&D.Message.setField(b,7,a.autoCreateViaApiAddToken);a.newInstrumentDetails&&D.Message.setWrapperField(b,6,T.moneta.integrator.common.instrument.NewInstrumentDetails.fromObject(a.newInstrumentDetails));null!=a.autoCreateViaApiAddTokenV2&&D.Message.setField(b,8,a.autoCreateViaApiAddTokenV2);null!=a.allowedForPrimary&&D.Message.setField(b,9,a.allowedForPrimary);
null!=a.allowedForBackup&&D.Message.setField(b,10,a.allowedForBackup);return b});T.moneta.integrator.common.instrument.NewInstrument.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.instrument.NewInstrument;return T.moneta.integrator.common.instrument.NewInstrument.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.instrument.NewInstrument.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();a.setInstrumentType(c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;case 4:c=b.readBytes();D.Message.setOneofField(a,4,T.moneta.integrator.common.instrument.NewInstrument.oneofGroups_[0],c);break;case 5:c=b.readBytes();D.Message.setOneofField(a,5,T.moneta.integrator.common.instrument.NewInstrument.oneofGroups_[0],
c);break;case 7:c=b.readBytes();D.Message.setOneofField(a,7,T.moneta.integrator.common.instrument.NewInstrument.oneofGroups_[0],c);break;case 6:c=new T.moneta.integrator.common.instrument.NewInstrumentDetails;b.readMessage(c,T.moneta.integrator.common.instrument.NewInstrumentDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,6,c);break;case 8:c=b.readBytes();D.Message.setField(a,8,c);break;case 9:c=b.readBool();D.Message.setField(a,9,c);break;case 10:c=b.readBool();D.Message.setField(a,
10,c);break;default:I(b)}return a};
T.moneta.integrator.common.instrument.NewInstrument.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getField(a,4);null!=c&&b.writeBytes(4,c);c=D.Message.getField(a,5);null!=c&&b.writeBytes(5,c);c=D.Message.getField(a,7);null!=c&&b.writeBytes(7,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.instrument.NewInstrumentDetails,6);
null!=c&&N(b,6,c,T.moneta.integrator.common.instrument.NewInstrumentDetails.serializeBinaryToWriter);c=D.Message.getField(a,8);null!=c&&b.writeBytes(8,c);c=D.Message.getField(a,9);null!=c&&b.writeBool(9,c);c=D.Message.getField(a,10);null!=c&&b.writeBool(10,c)};T.moneta.integrator.common.instrument.NewInstrument.prototype.setInstrumentType=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.instrument.NewInstrument.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.instrument.NewInstrument,a)};T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails.toObject=function(a,b){var c,g={instrumentId:null==(c=D.Message.getField(b,4))?void 0:c,amount:(c=b.getAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),refundedAmount:(c=b.getRefundedAmount())&&
T.moneta.integrator.common.Amount.toObject(a,c),chargedAmount:(c=b.getChargedAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),instrumentDescription:(c=b.getInstrumentDescription())&&T.moneta.integrator.common.instrument.InstrumentDescription.toObject(a,c),instrumentRank:null==(c=D.Message.getField(b,7))?void 0:c,carrierRevshareId:null==(c=D.Message.getField(b,3))?void 0:c,refundCapability:null==(c=D.Message.getField(b,8))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails;null!=a.instrumentId&&D.Message.setField(b,4,a.instrumentId);a.amount&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Amount.fromObject(a.amount));a.refundedAmount&&D.Message.setWrapperField(b,
5,T.moneta.integrator.common.Amount.fromObject(a.refundedAmount));a.chargedAmount&&D.Message.setWrapperField(b,6,T.moneta.integrator.common.Amount.fromObject(a.chargedAmount));a.instrumentDescription&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.instrument.InstrumentDescription.fromObject(a.instrumentDescription));null!=a.instrumentRank&&D.Message.setField(b,7,a.instrumentRank);null!=a.carrierRevshareId&&D.Message.setField(b,3,a.carrierRevshareId);null!=a.refundCapability&&D.Message.setField(b,
8,a.refundCapability);return b});T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails;return T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 4:var c=b.readInt64();D.Message.setField(a,4,c);break;case 1:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setAmount(c);break;case 5:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setRefundedAmount(c);
break;case 6:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setChargedAmount(c);break;case 2:c=new T.moneta.integrator.common.instrument.InstrumentDescription;b.readMessage(c,T.moneta.integrator.common.instrument.InstrumentDescription.deserializeBinaryFromReader);a.setInstrumentDescription(c);break;case 7:c=b.readEnum();D.Message.setField(a,7,c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;case 8:c=b.readEnum();
D.Message.setField(a,8,c);break;default:I(b)}return a};
T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,4);null!=c&&b.writeInt64(4,c);c=a.getAmount();null!=c&&N(b,1,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=a.getRefundedAmount();null!=c&&N(b,5,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=a.getChargedAmount();null!=c&&N(b,6,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=a.getInstrumentDescription();null!=c&&N(b,
2,c,T.moneta.integrator.common.instrument.InstrumentDescription.serializeBinaryToWriter);c=D.Message.getField(a,7);null!=c&&b.writeEnum(7,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getField(a,8);null!=c&&b.writeEnum(8,c)};T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails.RefundCapability={REFUND_CAPABILITY_UNKNOWN:0,REFUND_CAPABILITY_FULL_REFUND_ONLY:1,REFUND_CAPABILITY_SINGLE_PARTIAL_REFUND:2,REFUND_CAPABILITY_MULTIPLE_PARTIAL_REFUND:3,REFUND_CAPABILITY_NONE:4};
d=T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails.prototype;d.getAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,1)};d.setAmount=function(a){D.Message.setWrapperField(this,1,a)};d.getRefundedAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,5)};d.setRefundedAmount=function(a){D.Message.setWrapperField(this,5,a)};
d.getChargedAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,6)};d.setChargedAmount=function(a){D.Message.setWrapperField(this,6,a)};d.getInstrumentDescription=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.instrument.InstrumentDescription,2)};d.setInstrumentDescription=function(a){D.Message.setWrapperField(this,2,a)};
T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails,a)};T.moneta.integrator.common.fundsguarantee.ApprovalDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.fundsguarantee.ApprovalDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.ApprovalDetails.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.ApprovalDetails.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.ApprovalDetails.toObject=function(a,b){var c,g={approvedAmount:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,1))&&T.moneta.integrator.common.Amount.toObject(a,c),cancelAvailabilityMillis:null==(c=D.Message.getField(b,3))?void 0:c,delayedChargingApproved:null==
(c=D.Message.getBooleanField(b,4))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.ApprovalDetails.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.ApprovalDetails.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.ApprovalDetails;a.approvedAmount&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Amount.fromObject(a.approvedAmount));null!=a.cancelAvailabilityMillis&&D.Message.setField(b,3,a.cancelAvailabilityMillis);null!=a.delayedChargingApproved&&D.Message.setField(b,
4,a.delayedChargingApproved);return b});T.moneta.integrator.common.fundsguarantee.ApprovalDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.ApprovalDetails;return T.moneta.integrator.common.fundsguarantee.ApprovalDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.ApprovalDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,1,c);break;case 3:c=b.readInt64();D.Message.setField(a,3,c);break;case 4:c=b.readBool();D.Message.setField(a,4,c);break;default:I(b)}return a};
T.moneta.integrator.common.fundsguarantee.ApprovalDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,1);null!=c&&N(b,1,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeInt64(3,c);c=D.Message.getField(a,4);null!=c&&b.writeBool(4,c)};
T.moneta.integrator.common.fundsguarantee.ApprovalDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.ApprovalDetails,a)};T.moneta.integrator.common.fundsguarantee.ChargebackDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.fundsguarantee.ChargebackDetails,D.Message);T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.ChargebackDetails.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.ChargebackDetails.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.ChargebackDetails.toObject=function(a,b){var c,g={chargebackAmount:(c=b.getChargebackAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),positiveChargebackAmount:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,2))&&T.moneta.integrator.common.Amount.toObject(a,
c),fraudCategory:null==(c=D.Message.getBooleanField(b,3))?void 0:c,reverseDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails,4))&&T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.ChargebackDetails.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.ChargebackDetails;a.chargebackAmount&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Amount.fromObject(a.chargebackAmount));a.positiveChargebackAmount&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.positiveChargebackAmount));
null!=a.fraudCategory&&D.Message.setField(b,3,a.fraudCategory);a.reverseDetails&&D.Message.setWrapperField(b,4,T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails.fromObject(a.reverseDetails));return b});
T.moneta.integrator.common.fundsguarantee.ChargebackDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.ChargebackDetails;return T.moneta.integrator.common.fundsguarantee.ChargebackDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.ChargebackDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setChargebackAmount(c);break;case 2:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,2,c);break;case 3:c=b.readBool();a.setFraudCategory(c);
break;case 4:c=new T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,4,c);break;default:I(b)}return a};
T.moneta.integrator.common.fundsguarantee.ChargebackDetails.serializeBinaryToWriter=function(a,b){var c=a.getChargebackAmount();null!=c&&N(b,1,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,2);null!=c&&N(b,2,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeBool(3,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails,
4);null!=c&&N(b,4,c,T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails.serializeBinaryToWriter)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails.toObject=function(a,b){var c,g={reverseChargebackAmount:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,1))&&T.moneta.integrator.common.Amount.toObject(a,c),fraudCategory:null==
(c=D.Message.getBooleanField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails;a.reverseChargebackAmount&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Amount.fromObject(a.reverseChargebackAmount));null!=a.fraudCategory&&D.Message.setField(b,2,a.fraudCategory);
return b});T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails;return T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,1,c);break;case 2:c=b.readBool();a.setFraudCategory(c);break;default:I(b)}return a};
T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,1);null!=c&&N(b,1,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,2);null!=c&&b.writeBool(2,c)};T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails.prototype.setFraudCategory=function(a){D.Message.setField(this,2,a)};
T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.ChargebackDetails.ReverseDetails,a)};T.moneta.integrator.common.fundsguarantee.ChargebackDetails.prototype.getChargebackAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,1)};
T.moneta.integrator.common.fundsguarantee.ChargebackDetails.prototype.setChargebackAmount=function(a){D.Message.setWrapperField(this,1,a)};T.moneta.integrator.common.fundsguarantee.ChargebackDetails.prototype.setFraudCategory=function(a){D.Message.setField(this,3,a)};T.moneta.integrator.common.fundsguarantee.ChargebackDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.ChargebackDetails,a)};T.moneta.integrator.common.fundsguarantee.ChargeDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.fundsguarantee.ChargeDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.ChargeDetails.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.ChargeDetails.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.ChargeDetails.toObject=function(a,b){var c,g={chargedAmount:(c=b.getChargedAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),chargeFailedAmount:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,2))&&T.moneta.integrator.common.Amount.toObject(a,
c),refundAvailabilityMillis:null==(c=D.Message.getField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.ChargeDetails.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.ChargeDetails.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.ChargeDetails;a.chargedAmount&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Amount.fromObject(a.chargedAmount));a.chargeFailedAmount&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.chargeFailedAmount));null!=a.refundAvailabilityMillis&&
D.Message.setField(b,3,a.refundAvailabilityMillis);return b});T.moneta.integrator.common.fundsguarantee.ChargeDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.ChargeDetails;return T.moneta.integrator.common.fundsguarantee.ChargeDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.ChargeDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setChargedAmount(c);break;case 2:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,2,c);break;case 3:c=b.readInt64();D.Message.setField(a,
3,c);break;default:I(b)}return a};T.moneta.integrator.common.fundsguarantee.ChargeDetails.serializeBinaryToWriter=function(a,b){var c=a.getChargedAmount();null!=c&&N(b,1,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,2);null!=c&&N(b,2,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeInt64(3,c)};
T.moneta.integrator.common.fundsguarantee.ChargeDetails.prototype.getChargedAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,1)};T.moneta.integrator.common.fundsguarantee.ChargeDetails.prototype.setChargedAmount=function(a){D.Message.setWrapperField(this,1,a)};T.moneta.integrator.common.fundsguarantee.ChargeDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.ChargeDetails,a)};T.moneta.integrator.common.fundsguarantee.DeclineDetails=function(a){D.Message.initialize(this,a,0,-1,null,T.moneta.integrator.common.fundsguarantee.DeclineDetails.oneofGroups_)};f.inherits(T.moneta.integrator.common.fundsguarantee.DeclineDetails,D.Message);T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction,D.Message);
T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse,D.Message);T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument=function(a){D.Message.initialize(this,a,0,-1,null,null)};
f.inherits(T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument,D.Message);T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded,D.Message);T.moneta.integrator.common.fundsguarantee.DeclineDetails.oneofGroups_=[[5,6,7]];
T.moneta.integrator.common.fundsguarantee.DeclineDetails.PolicyViolationCase={POLICY_VIOLATION_NOT_SET:0,COUPON_CODE_ABUSE:5,DISALLOWED_INSTRUMENT:6,SPENDING_LIMIT_EXCEEDED:7};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.DeclineDetails.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.DeclineDetails.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.DeclineDetails.toObject=function(a,b){var c,g={declineReason:null==(c=D.Message.getField(b,2))?void 0:c,declineReasonUserMessage:null==(c=D.Message.getField(b,1))?void 0:c,primaryAction:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction,
4))&&T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction.toObject(a,c),couponCodeAbuse:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse,5))&&T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.toObject(a,c),disallowedInstrument:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument,6))&&T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument.toObject(a,
c),spendingLimitExceeded:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded,7))&&T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.DeclineDetails.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.DeclineDetails.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.DeclineDetails;null!=a.declineReason&&D.Message.setField(b,2,a.declineReason);null!=a.declineReasonUserMessage&&D.Message.setField(b,1,a.declineReasonUserMessage);a.primaryAction&&D.Message.setWrapperField(b,4,T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction.fromObject(a.primaryAction));
a.couponCodeAbuse&&D.Message.setWrapperField(b,5,T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.fromObject(a.couponCodeAbuse));a.disallowedInstrument&&D.Message.setWrapperField(b,6,T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument.fromObject(a.disallowedInstrument));a.spendingLimitExceeded&&D.Message.setWrapperField(b,7,T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded.fromObject(a.spendingLimitExceeded));return b});
T.moneta.integrator.common.fundsguarantee.DeclineDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.DeclineDetails;return T.moneta.integrator.common.fundsguarantee.DeclineDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.DeclineDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 2:var c=b.readEnum();D.Message.setField(a,2,c);break;case 1:c=b.readString();D.Message.setField(a,1,c);break;case 4:c=new T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction.deserializeBinaryFromReader);D.Message.setWrapperField(a,4,c);break;case 5:c=new T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse;
b.readMessage(c,T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,5,T.moneta.integrator.common.fundsguarantee.DeclineDetails.oneofGroups_[0],c);break;case 6:c=new T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,6,T.moneta.integrator.common.fundsguarantee.DeclineDetails.oneofGroups_[0],
c);break;case 7:c=new T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,7,T.moneta.integrator.common.fundsguarantee.DeclineDetails.oneofGroups_[0],c);break;default:I(b)}return a};
T.moneta.integrator.common.fundsguarantee.DeclineDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,2);null!=c&&b.writeEnum(2,c);c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction,4);null!=c&&N(b,4,c,T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse,
5);null!=c&&N(b,5,c,T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument,6);null!=c&&N(b,6,c,T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded,7);null!=c&&N(b,7,c,T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded.serializeBinaryToWriter)};
T.moneta.integrator.common.fundsguarantee.DeclineDetails.DeclineReason={DECLINE_REASON_UNKNOWN:0,PAYMENTS_DECLINED:1,PAYMENTS_DECLINED_FIXABLE:4,ISSUER_DECLINED:2,PAYMENTS_DECLINED_PROMO_CODE_POLICY_VIOLATION:3,EXPIRED_BEFORE_USER_ACTION:5,EXCEEDED_SYSTEM_RETRY_LIMITS:6,NOT_AUTO_PULLABLE:8,CLIENT_CAPABILITY_MISSING:9};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction.toObject=function(a,b){var c,g={url:null==(c=D.Message.getField(b,1))?void 0:c,label:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction;null!=a.url&&D.Message.setField(b,1,a.url);null!=a.label&&D.Message.setField(b,2,a.label);return b});
T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction;return T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=b.readString();a.setLabel(c);break;default:I(b)}return a};T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c)};
T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction.prototype.getUrl=function(){return D.Message.getField(this,1)};T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction.prototype.setLabel=function(a){D.Message.setField(this,2,a)};T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.DeclineDetails.ErrorAction,a)};
T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.repeatedFields_=[2];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.toObject=function(a,b){var c,g={abuseType:null==(c=D.Message.getField(b,1))?void 0:c,reusedCouponCodeList:null==(c=D.Message.getRepeatedField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse;null!=a.abuseType&&D.Message.setField(b,1,a.abuseType);null!=a.reusedCouponCodeList&&D.Message.setField(b,2,a.reusedCouponCodeList);return b});
T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse;return T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;case 2:c=b.readString();D.Message.addToRepeatedField(a,2,c,void 0);break;default:I(b)}return a};
T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getRepeatedField(a,2);0<c.length&&O(b,2,c)};T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.AbuseType={ABUSE_TYPE_UNKNOWN:0,ABUSE_TYPE_INELIGIBLE_INSTRUMENT:1,ABUSE_TYPE_INSTRUMENT_REUSE:2};
T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.DeclineDetails.CouponCodeAbuse,a)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument.toObject=function(a,b){var c,g={disallowedInstrumentType:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument;null!=a.disallowedInstrumentType&&D.Message.setField(b,1,a.disallowedInstrumentType);return b});
T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument;return T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;default:I(b)}return a};T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeEnum(1,a)};
T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument.DisallowedInstrumentType={DISALLOWED_INSTRUMENT_TYPE_UNKNOWN:0,DISALLOWED_INSTRUMENT_TYPE_PREPAID_CARD:1,DISALLOWED_INSTRUMENT_TYPE_SHARED_BY_MULTIPLE_CUSTOMERS:2,DISALLOWED_INSTRUMENT_TYPE_TOO_MANY_INSTRUMENTS_ON_FILE:3};
T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.DeclineDetails.DisallowedInstrument,a)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded.toObject=function(a,b){var c,g={spendingLimitType:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded;null!=a.spendingLimitType&&D.Message.setField(b,1,a.spendingLimitType);return b});
T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded;return T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;default:I(b)}return a};T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeEnum(1,a)};
T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded.SpendingLimitType={SPENDING_LIMIT_TYPE_UNKNOWN:0,SPENDING_LIMIT_TYPE_DAILY:1,SPENDING_LIMIT_TYPE_WEEKLY:2};T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.DeclineDetails.SpendingLimitExceeded,a)};
T.moneta.integrator.common.fundsguarantee.DeclineDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.DeclineDetails,a)};T.moneta.integrator.common.fundsguarantee.DisburseDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.fundsguarantee.DisburseDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.DisburseDetails.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.DisburseDetails.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.DisburseDetails.toObject=function(a,b){var c,g={disbursedAmount:(c=b.getDisbursedAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),disbursePendingAmount:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,2))&&T.moneta.integrator.common.Amount.toObject(a,
c),disburseFailedAmount:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,3))&&T.moneta.integrator.common.Amount.toObject(a,c),fundsAvailability:(c=b.getFundsAvailability())&&T.moneta.integrator.common.fundsguarantee.FundsAvailability.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.DisburseDetails.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.DisburseDetails.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.DisburseDetails;a.disbursedAmount&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Amount.fromObject(a.disbursedAmount));a.disbursePendingAmount&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.disbursePendingAmount));
a.disburseFailedAmount&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.Amount.fromObject(a.disburseFailedAmount));a.fundsAvailability&&D.Message.setWrapperField(b,4,T.moneta.integrator.common.fundsguarantee.FundsAvailability.fromObject(a.fundsAvailability));return b});
T.moneta.integrator.common.fundsguarantee.DisburseDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.DisburseDetails;return T.moneta.integrator.common.fundsguarantee.DisburseDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.DisburseDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setDisbursedAmount(c);break;case 2:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,2,c);break;case 3:c=new T.moneta.integrator.common.Amount;
b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,3,c);break;case 4:c=new T.moneta.integrator.common.fundsguarantee.FundsAvailability;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.FundsAvailability.deserializeBinaryFromReader);a.setFundsAvailability(c);break;default:I(b)}return a};
T.moneta.integrator.common.fundsguarantee.DisburseDetails.serializeBinaryToWriter=function(a,b){var c=a.getDisbursedAmount();null!=c&&N(b,1,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,2);null!=c&&N(b,2,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,3);null!=c&&N(b,3,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=a.getFundsAvailability();
null!=c&&N(b,4,c,T.moneta.integrator.common.fundsguarantee.FundsAvailability.serializeBinaryToWriter)};T.moneta.integrator.common.fundsguarantee.DisburseDetails.prototype.getDisbursedAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,1)};T.moneta.integrator.common.fundsguarantee.DisburseDetails.prototype.setDisbursedAmount=function(a){D.Message.setWrapperField(this,1,a)};
T.moneta.integrator.common.fundsguarantee.DisburseDetails.prototype.getFundsAvailability=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.fundsguarantee.FundsAvailability,4)};T.moneta.integrator.common.fundsguarantee.DisburseDetails.prototype.setFundsAvailability=function(a){D.Message.setWrapperField(this,4,a)};
T.moneta.integrator.common.fundsguarantee.DisburseDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.DisburseDetails,a)};T.moneta.integrator.common.fundsguarantee.SystemRetryDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.fundsguarantee.SystemRetryDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.SystemRetryDetails.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.SystemRetryDetails.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.SystemRetryDetails.toObject=function(a,b){var c,g={declineDetails:(c=b.getDeclineDetails())&&T.moneta.integrator.common.fundsguarantee.DeclineDetails.toObject(a,c),paymentRetryAttemptCount:null==(c=D.Message.getField(b,2))?void 0:c,lastRetryTimeMillis:null==
(c=D.Message.getField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.SystemRetryDetails.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.SystemRetryDetails.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.SystemRetryDetails;a.declineDetails&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.fundsguarantee.DeclineDetails.fromObject(a.declineDetails));null!=a.paymentRetryAttemptCount&&D.Message.setField(b,2,a.paymentRetryAttemptCount);null!=
a.lastRetryTimeMillis&&D.Message.setField(b,3,a.lastRetryTimeMillis);return b});T.moneta.integrator.common.fundsguarantee.SystemRetryDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.SystemRetryDetails;return T.moneta.integrator.common.fundsguarantee.SystemRetryDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.SystemRetryDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.fundsguarantee.DeclineDetails;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.DeclineDetails.deserializeBinaryFromReader);a.setDeclineDetails(c);break;case 2:c=b.readInt32();D.Message.setField(a,2,c);break;case 3:c=b.readInt64();D.Message.setField(a,3,c);break;default:I(b)}return a};
T.moneta.integrator.common.fundsguarantee.SystemRetryDetails.serializeBinaryToWriter=function(a,b){var c=a.getDeclineDetails();null!=c&&N(b,1,c,T.moneta.integrator.common.fundsguarantee.DeclineDetails.serializeBinaryToWriter);c=D.Message.getField(a,2);null!=c&&b.writeInt32(2,c);c=D.Message.getField(a,3);null!=c&&b.writeInt64(3,c)};
T.moneta.integrator.common.fundsguarantee.SystemRetryDetails.prototype.getDeclineDetails=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.fundsguarantee.DeclineDetails,1)};T.moneta.integrator.common.fundsguarantee.SystemRetryDetails.prototype.setDeclineDetails=function(a){D.Message.setWrapperField(this,1,a)};
T.moneta.integrator.common.fundsguarantee.SystemRetryDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.SystemRetryDetails,a)};T.moneta.integrator.common.fundsguarantee.UserActionDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.fundsguarantee.UserActionDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.UserActionDetails.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.UserActionDetails.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.UserActionDetails.toObject=function(a,b){var c,g={userActionType:null==(c=D.Message.getField(b,1))?void 0:c,instructionExpirationTimeMillis:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.UserActionDetails.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.UserActionDetails.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.UserActionDetails;null!=a.userActionType&&D.Message.setField(b,1,a.userActionType);null!=a.instructionExpirationTimeMillis&&D.Message.setField(b,2,a.instructionExpirationTimeMillis);return b});
T.moneta.integrator.common.fundsguarantee.UserActionDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.UserActionDetails;return T.moneta.integrator.common.fundsguarantee.UserActionDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.UserActionDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;case 2:c=b.readInt64();D.Message.setField(a,2,c);break;default:I(b)}return a};T.moneta.integrator.common.fundsguarantee.UserActionDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeInt64(2,c)};
T.moneta.integrator.common.fundsguarantee.UserActionDetails.UserActionType={USER_ACTION_UNKNOWN:0,USER_ACTION_COMPLETE_ADDITIONAL_STEP_IN_SESSION:1,USER_ACTION_SHOW_PAYMENT_INSTRUCTION:2,USER_ACTION_FINISH_PAYMENT_OUT_OF_CONTEXT:3};T.moneta.integrator.common.fundsguarantee.UserActionDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.UserActionDetails,a)};T.moneta.integrator.common.fundsguarantee.PendingDetails=function(a){D.Message.initialize(this,a,0,-1,null,T.moneta.integrator.common.fundsguarantee.PendingDetails.oneofGroups_)};f.inherits(T.moneta.integrator.common.fundsguarantee.PendingDetails,D.Message);T.moneta.integrator.common.fundsguarantee.PendingDetails.oneofGroups_=[[2,8]];T.moneta.integrator.common.fundsguarantee.PendingDetails.AdditionalDetailCase={ADDITIONAL_DETAIL_NOT_SET:0,USER_ACTION_DETAILS:2,SYSTEM_RETRY_DETAILS:8};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.PendingDetails.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.PendingDetails.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.PendingDetails.toObject=function(a,b){var c,g={pendingReason:null==(c=D.Message.getField(b,1))?void 0:c,userActionDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.fundsguarantee.UserActionDetails,2))&&T.moneta.integrator.common.fundsguarantee.UserActionDetails.toObject(a,
c),systemRetryDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.fundsguarantee.SystemRetryDetails,8))&&T.moneta.integrator.common.fundsguarantee.SystemRetryDetails.toObject(a,c),fundsAvailability:(c=b.getFundsAvailability())&&T.moneta.integrator.common.fundsguarantee.FundsAvailability.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.PendingDetails.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.PendingDetails.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.PendingDetails;null!=a.pendingReason&&D.Message.setField(b,1,a.pendingReason);a.userActionDetails&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.fundsguarantee.UserActionDetails.fromObject(a.userActionDetails));a.systemRetryDetails&&D.Message.setWrapperField(b,
8,T.moneta.integrator.common.fundsguarantee.SystemRetryDetails.fromObject(a.systemRetryDetails));a.fundsAvailability&&D.Message.setWrapperField(b,17,T.moneta.integrator.common.fundsguarantee.FundsAvailability.fromObject(a.fundsAvailability));return b});
T.moneta.integrator.common.fundsguarantee.PendingDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.PendingDetails;return T.moneta.integrator.common.fundsguarantee.PendingDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.PendingDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;case 2:c=new T.moneta.integrator.common.fundsguarantee.UserActionDetails;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.UserActionDetails.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,2,T.moneta.integrator.common.fundsguarantee.PendingDetails.oneofGroups_[0],c);break;case 8:c=new T.moneta.integrator.common.fundsguarantee.SystemRetryDetails;
b.readMessage(c,T.moneta.integrator.common.fundsguarantee.SystemRetryDetails.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,8,T.moneta.integrator.common.fundsguarantee.PendingDetails.oneofGroups_[0],c);break;case 17:c=new T.moneta.integrator.common.fundsguarantee.FundsAvailability;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.FundsAvailability.deserializeBinaryFromReader);a.setFundsAvailability(c);break;default:I(b)}return a};
T.moneta.integrator.common.fundsguarantee.PendingDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.fundsguarantee.UserActionDetails,2);null!=c&&N(b,2,c,T.moneta.integrator.common.fundsguarantee.UserActionDetails.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.fundsguarantee.SystemRetryDetails,8);null!=c&&N(b,8,c,T.moneta.integrator.common.fundsguarantee.SystemRetryDetails.serializeBinaryToWriter);
c=a.getFundsAvailability();null!=c&&N(b,17,c,T.moneta.integrator.common.fundsguarantee.FundsAvailability.serializeBinaryToWriter)};T.moneta.integrator.common.fundsguarantee.PendingDetails.PendingReason={UNKNOWN:0,WAITING_FOR_USER_ACTION:1,WAITING_FOR_RISK:2,WAITING_FOR_VENDOR:3,WAITING_FOR_SYSTEM_RETRY:4,WAITING_WITH_PLACEHOLDER_INSTRUMENT:5,WAITING_FOR_PRODUCT_ACTION:6};
T.moneta.integrator.common.fundsguarantee.PendingDetails.prototype.getFundsAvailability=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.fundsguarantee.FundsAvailability,17)};T.moneta.integrator.common.fundsguarantee.PendingDetails.prototype.setFundsAvailability=function(a){D.Message.setWrapperField(this,17,a)};
T.moneta.integrator.common.fundsguarantee.PendingDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.PendingDetails,a)};T.moneta.integrator.common.fundsguarantee.RefundDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.fundsguarantee.RefundDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.RefundDetails.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.RefundDetails.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.RefundDetails.toObject=function(a,b){var c,g={refundedAmount:(c=b.getRefundedAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),refundFailedAmount:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,2))&&T.moneta.integrator.common.Amount.toObject(a,
c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.RefundDetails.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.RefundDetails.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.RefundDetails;a.refundedAmount&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Amount.fromObject(a.refundedAmount));a.refundFailedAmount&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.refundFailedAmount));return b});
T.moneta.integrator.common.fundsguarantee.RefundDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.RefundDetails;return T.moneta.integrator.common.fundsguarantee.RefundDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.RefundDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setRefundedAmount(c);break;case 2:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,2,c);break;default:I(b)}return a};
T.moneta.integrator.common.fundsguarantee.RefundDetails.serializeBinaryToWriter=function(a,b){var c=a.getRefundedAmount();null!=c&&N(b,1,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,2);null!=c&&N(b,2,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter)};
T.moneta.integrator.common.fundsguarantee.RefundDetails.prototype.getRefundedAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,1)};T.moneta.integrator.common.fundsguarantee.RefundDetails.prototype.setRefundedAmount=function(a){D.Message.setWrapperField(this,1,a)};T.moneta.integrator.common.fundsguarantee.RefundDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.RefundDetails,a)};T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails.toObject=function(a,b){var c,g={actionType:null==(c=D.Message.getField(b,1))?void 0:c,blockedAmount:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.Amount,2))&&T.moneta.integrator.common.Amount.toObject(a,c),blockedReason:null==
(c=D.Message.getField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails;null!=a.actionType&&D.Message.setField(b,1,a.actionType);a.blockedAmount&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.blockedAmount));null!=a.blockedReason&&D.Message.setField(b,3,a.blockedReason);
return b});T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails;return T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;case 2:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);D.Message.setWrapperField(a,2,c);break;case 3:c=b.readEnum();D.Message.setField(a,3,c);break;default:I(b)}return a};
T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.Amount,2);null!=c&&N(b,2,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeEnum(3,c)};
T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails.SystemActionType={SYSTEM_ACTION_TYPE_UNKNOWN:0,SYSTEM_ACTION_TYPE_CHARGE:1,SYSTEM_ACTION_TYPE_DISBURSE:2,SYSTEM_ACTION_TYPE_REFUND:3};
T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails.SystemActionBlockedReason={SYSTEM_ACTION_BLOCKED_REASON_UNKNOWN:0,SYSTEM_ACTION_BLOCKED_REASON_PAYMENTS_INTERNAL_ERROR:1,SYSTEM_ACTION_BLOCKED_REASON_NO_VALID_INSTRUMENT:2,SYSTEM_ACTION_BLOCKED_REASON_PAYMENT_NOT_REFUNDABLE:3,SYSTEM_ACTION_BLOCKED_REASON_NO_PAYMENT_TO_REFUND:4,SYSTEM_ACTION_BLOCKED_REASON_CONTROL_POINT_DENIED:5,SYSTEM_ACTION_BLOCKED_REASON_PAYMENT_FAILURE:6};
T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails,a)};T.moneta.integrator.common.fundsguarantee.FundsGuarantee=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.fundsguarantee.FundsGuarantee.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.fundsguarantee.FundsGuarantee,D.Message);T.moneta.integrator.common.fundsguarantee.FundsGuarantee.repeatedFields_=[7,5];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.fundsguarantee.FundsGuarantee.prototype.toObject=function(a){return T.moneta.integrator.common.fundsguarantee.FundsGuarantee.toObject(a,this)},T.moneta.integrator.common.fundsguarantee.FundsGuarantee.toObject=function(a,b){var c,g={fundsGuaranteeId:(c=b.getFundsGuaranteeId())&&T.moneta.integrator.common.FundsGuaranteeId.toObject(a,c),status:null==(c=D.Message.getField(b,2))?void 0:c,amount:(c=b.getAmount())&&T.moneta.integrator.common.Amount.toObject(a,
c),chargedAmount:(c=b.getChargedAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),refundedAmount:(c=b.getRefundedAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),chargebackAmount:(c=b.getChargebackAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),disbursedAmount:(c=b.getDisbursedAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),paymentDetailsList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails,
7),T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails.toObject,a),creationTimeMillis:null==(c=D.Message.getField(b,12))?void 0:c,expirationTimeMillis:null==(c=D.Message.getField(b,4))?void 0:c,pendingDetailsList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.fundsguarantee.PendingDetails,5),T.moneta.integrator.common.fundsguarantee.PendingDetails.toObject,a),declineDetails:(c=b.getDeclineDetails())&&T.moneta.integrator.common.fundsguarantee.DeclineDetails.toObject(a,
c),chargeDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.fundsguarantee.ChargeDetails,13))&&T.moneta.integrator.common.fundsguarantee.ChargeDetails.toObject(a,c),refundDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.fundsguarantee.RefundDetails,14))&&T.moneta.integrator.common.fundsguarantee.RefundDetails.toObject(a,c),disburseDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.fundsguarantee.DisburseDetails,15))&&T.moneta.integrator.common.fundsguarantee.DisburseDetails.toObject(a,
c),approvalDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.fundsguarantee.ApprovalDetails,16))&&T.moneta.integrator.common.fundsguarantee.ApprovalDetails.toObject(a,c),systemBlockedDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails,17))&&T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails.toObject(a,c),chargebackDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.fundsguarantee.ChargebackDetails,19))&&T.moneta.integrator.common.fundsguarantee.ChargebackDetails.toObject(a,
c),latestSequenceNumber:null==(c=D.Message.getField(b,18))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.fundsguarantee.FundsGuarantee.ObjectFormat=function(){},T.moneta.integrator.common.fundsguarantee.FundsGuarantee.fromObject=function(a){var b=new T.moneta.integrator.common.fundsguarantee.FundsGuarantee;a.fundsGuaranteeId&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.FundsGuaranteeId.fromObject(a.fundsGuaranteeId));null!=a.status&&D.Message.setField(b,2,a.status);a.amount&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.Amount.fromObject(a.amount));
a.chargedAmount&&D.Message.setWrapperField(b,8,T.moneta.integrator.common.Amount.fromObject(a.chargedAmount));a.refundedAmount&&D.Message.setWrapperField(b,9,T.moneta.integrator.common.Amount.fromObject(a.refundedAmount));a.chargebackAmount&&D.Message.setWrapperField(b,10,T.moneta.integrator.common.Amount.fromObject(a.chargebackAmount));a.disbursedAmount&&D.Message.setWrapperField(b,11,T.moneta.integrator.common.Amount.fromObject(a.disbursedAmount));a.paymentDetailsList&&D.Message.setRepeatedWrapperField(b,
7,a.paymentDetailsList.map(T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails.fromObject));null!=a.creationTimeMillis&&D.Message.setField(b,12,a.creationTimeMillis);null!=a.expirationTimeMillis&&D.Message.setField(b,4,a.expirationTimeMillis);a.pendingDetailsList&&D.Message.setRepeatedWrapperField(b,5,a.pendingDetailsList.map(T.moneta.integrator.common.fundsguarantee.PendingDetails.fromObject));a.declineDetails&&D.Message.setWrapperField(b,6,T.moneta.integrator.common.fundsguarantee.DeclineDetails.fromObject(a.declineDetails));
a.chargeDetails&&D.Message.setWrapperField(b,13,T.moneta.integrator.common.fundsguarantee.ChargeDetails.fromObject(a.chargeDetails));a.refundDetails&&D.Message.setWrapperField(b,14,T.moneta.integrator.common.fundsguarantee.RefundDetails.fromObject(a.refundDetails));a.disburseDetails&&D.Message.setWrapperField(b,15,T.moneta.integrator.common.fundsguarantee.DisburseDetails.fromObject(a.disburseDetails));a.approvalDetails&&D.Message.setWrapperField(b,16,T.moneta.integrator.common.fundsguarantee.ApprovalDetails.fromObject(a.approvalDetails));
a.systemBlockedDetails&&D.Message.setWrapperField(b,17,T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails.fromObject(a.systemBlockedDetails));a.chargebackDetails&&D.Message.setWrapperField(b,19,T.moneta.integrator.common.fundsguarantee.ChargebackDetails.fromObject(a.chargebackDetails));null!=a.latestSequenceNumber&&D.Message.setField(b,18,a.latestSequenceNumber);return b});
T.moneta.integrator.common.fundsguarantee.FundsGuarantee.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.fundsguarantee.FundsGuarantee;return T.moneta.integrator.common.fundsguarantee.FundsGuarantee.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.fundsguarantee.FundsGuarantee.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.FundsGuaranteeId;b.readMessage(c,T.moneta.integrator.common.FundsGuaranteeId.deserializeBinaryFromReader);a.setFundsGuaranteeId(c);break;case 2:c=b.readEnum();a.setStatus(c);break;case 3:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setAmount(c);
break;case 8:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setChargedAmount(c);break;case 9:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setRefundedAmount(c);break;case 10:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setChargebackAmount(c);break;case 11:c=new T.moneta.integrator.common.Amount;
b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setDisbursedAmount(c);break;case 7:c=new T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,7,c,T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails,void 0);break;case 12:c=b.readInt64();a.setCreationTimeMillis(c);break;case 4:c=
b.readInt64();D.Message.setField(a,4,c);break;case 5:c=new T.moneta.integrator.common.fundsguarantee.PendingDetails;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.PendingDetails.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,5,c,T.moneta.integrator.common.fundsguarantee.PendingDetails,void 0);break;case 6:c=new T.moneta.integrator.common.fundsguarantee.DeclineDetails;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.DeclineDetails.deserializeBinaryFromReader);
a.setDeclineDetails(c);break;case 13:c=new T.moneta.integrator.common.fundsguarantee.ChargeDetails;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.ChargeDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,13,c);break;case 14:c=new T.moneta.integrator.common.fundsguarantee.RefundDetails;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.RefundDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,14,c);break;case 15:c=new T.moneta.integrator.common.fundsguarantee.DisburseDetails;
b.readMessage(c,T.moneta.integrator.common.fundsguarantee.DisburseDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,15,c);break;case 16:c=new T.moneta.integrator.common.fundsguarantee.ApprovalDetails;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.ApprovalDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,16,c);break;case 17:c=new T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails.deserializeBinaryFromReader);
D.Message.setWrapperField(a,17,c);break;case 19:c=new T.moneta.integrator.common.fundsguarantee.ChargebackDetails;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.ChargebackDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,19,c);break;case 18:c=b.readInt64();D.Message.setField(a,18,c);break;default:I(b)}return a};
T.moneta.integrator.common.fundsguarantee.FundsGuarantee.serializeBinaryToWriter=function(a,b){var c=a.getFundsGuaranteeId();null!=c&&N(b,1,c,T.moneta.integrator.common.FundsGuaranteeId.serializeBinaryToWriter);c=D.Message.getField(a,2);null!=c&&b.writeEnum(2,c);c=a.getAmount();null!=c&&N(b,3,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=a.getChargedAmount();null!=c&&N(b,8,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=a.getRefundedAmount();null!=c&&N(b,9,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);
c=a.getChargebackAmount();null!=c&&N(b,10,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=a.getDisbursedAmount();null!=c&&N(b,11,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails,7);0<c.length&&P(b,7,c,T.moneta.integrator.common.fundsguarantee.FundsGuaranteePaymentDetails.serializeBinaryToWriter);c=D.Message.getField(a,12);null!=c&&b.writeInt64(12,c);c=D.Message.getField(a,
4);null!=c&&b.writeInt64(4,c);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.fundsguarantee.PendingDetails,5);0<c.length&&P(b,5,c,T.moneta.integrator.common.fundsguarantee.PendingDetails.serializeBinaryToWriter);c=a.getDeclineDetails();null!=c&&N(b,6,c,T.moneta.integrator.common.fundsguarantee.DeclineDetails.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.fundsguarantee.ChargeDetails,13);null!=c&&N(b,13,c,T.moneta.integrator.common.fundsguarantee.ChargeDetails.serializeBinaryToWriter);
c=D.Message.getWrapperField(a,T.moneta.integrator.common.fundsguarantee.RefundDetails,14);null!=c&&N(b,14,c,T.moneta.integrator.common.fundsguarantee.RefundDetails.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.fundsguarantee.DisburseDetails,15);null!=c&&N(b,15,c,T.moneta.integrator.common.fundsguarantee.DisburseDetails.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.fundsguarantee.ApprovalDetails,16);null!=c&&N(b,16,c,T.moneta.integrator.common.fundsguarantee.ApprovalDetails.serializeBinaryToWriter);
c=D.Message.getWrapperField(a,T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails,17);null!=c&&N(b,17,c,T.moneta.integrator.common.fundsguarantee.SystemBlockedDetails.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.fundsguarantee.ChargebackDetails,19);null!=c&&N(b,19,c,T.moneta.integrator.common.fundsguarantee.ChargebackDetails.serializeBinaryToWriter);c=D.Message.getField(a,18);null!=c&&b.writeInt64(18,c)};
T.moneta.integrator.common.fundsguarantee.FundsGuarantee.FundsGuaranteeStatus={UNKNOWN:0,DENIED:1,APPROVED:2,PENDING:3,CANCELLED:4,CHARGED:5,ADDED:6,WAITING_FOR_CLIENT_RETRY:7,EXPIRED:8,DISBURSED:9,CLOSED:10};d=T.moneta.integrator.common.fundsguarantee.FundsGuarantee.prototype;d.getFundsGuaranteeId=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.FundsGuaranteeId,1)};d.setFundsGuaranteeId=function(a){D.Message.setWrapperField(this,1,a)};
d.getStatus=function(){return D.Message.getField(this,2)};d.setStatus=function(a){D.Message.setField(this,2,a)};d.getAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,3)};d.setAmount=function(a){D.Message.setWrapperField(this,3,a)};d.getChargedAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,8)};d.setChargedAmount=function(a){D.Message.setWrapperField(this,8,a)};
d.getRefundedAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,9)};d.setRefundedAmount=function(a){D.Message.setWrapperField(this,9,a)};d.getChargebackAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,10)};d.setChargebackAmount=function(a){D.Message.setWrapperField(this,10,a)};d.getDisbursedAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,11)};
d.setDisbursedAmount=function(a){D.Message.setWrapperField(this,11,a)};d.setCreationTimeMillis=function(a){D.Message.setField(this,12,a)};d.getDeclineDetails=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.fundsguarantee.DeclineDetails,6)};d.setDeclineDetails=function(a){D.Message.setWrapperField(this,6,a)};
T.moneta.integrator.common.fundsguarantee.FundsGuarantee.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.fundsguarantee.FundsGuarantee,a)};T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse.toObject(a,this)},T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse.toObject=function(a,b){var c,g={productCorrelationId:(c=b.getProductCorrelationId())&&T.moneta.integrator.common.ProductCorrelationId.toObject(a,c),cartComputedInfo:(c=b.getCartComputedInfo())&&T.moneta.integrator.common.cart.CartComputedInfo.toObject(a,
c),fundsGuarantee:(c=b.getFundsGuarantee())&&T.moneta.integrator.common.fundsguarantee.FundsGuarantee.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse;a.productCorrelationId&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.ProductCorrelationId.fromObject(a.productCorrelationId));a.cartComputedInfo&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.cart.CartComputedInfo.fromObject(a.cartComputedInfo));
a.fundsGuarantee&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.fundsguarantee.FundsGuarantee.fromObject(a.fundsGuarantee));return b});T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse;return T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.ProductCorrelationId;b.readMessage(c,T.moneta.integrator.common.ProductCorrelationId.deserializeBinaryFromReader);a.setProductCorrelationId(c);break;case 2:c=new T.moneta.integrator.common.cart.CartComputedInfo;b.readMessage(c,T.moneta.integrator.common.cart.CartComputedInfo.deserializeBinaryFromReader);a.setCartComputedInfo(c);
break;case 3:c=new T.moneta.integrator.common.fundsguarantee.FundsGuarantee;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.FundsGuarantee.deserializeBinaryFromReader);a.setFundsGuarantee(c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse.serializeBinaryToWriter=function(a,b){var c=a.getProductCorrelationId();null!=c&&N(b,1,c,T.moneta.integrator.common.ProductCorrelationId.serializeBinaryToWriter);c=a.getCartComputedInfo();null!=c&&N(b,2,c,T.moneta.integrator.common.cart.CartComputedInfo.serializeBinaryToWriter);c=a.getFundsGuarantee();null!=c&&N(b,3,c,T.moneta.integrator.common.fundsguarantee.FundsGuarantee.serializeBinaryToWriter)};d=T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse.prototype;
d.getProductCorrelationId=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.ProductCorrelationId,1)};d.setProductCorrelationId=function(a){D.Message.setWrapperField(this,1,a)};d.getCartComputedInfo=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.cart.CartComputedInfo,2)};d.setCartComputedInfo=function(a){D.Message.setWrapperField(this,2,a)};
d.getFundsGuarantee=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.fundsguarantee.FundsGuarantee,3)};d.setFundsGuarantee=function(a){D.Message.setWrapperField(this,3,a)};T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse,a)};T.moneta.integrator.common.customer={};T.moneta.integrator.common.customer.Contact=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.customer.Contact,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.customer.Contact.prototype.toObject=function(a){return T.moneta.integrator.common.customer.Contact.toObject(a,this)},T.moneta.integrator.common.customer.Contact.toObject=function(a,b){var c,g={name:null==(c=D.Message.getField(b,1))?void 0:c,phoneNumber:null==(c=D.Message.getField(b,2))?void 0:c,languagePreference:null==(c=D.Message.getField(b,4))?void 0:c,gaiaId:null==(c=D.Message.getField(b,5))?void 0:c,emailAddress:null==(c=D.Message.getField(b,
3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.customer.Contact.ObjectFormat=function(){},T.moneta.integrator.common.customer.Contact.fromObject=function(a){var b=new T.moneta.integrator.common.customer.Contact;null!=a.name&&D.Message.setField(b,1,a.name);null!=a.phoneNumber&&D.Message.setField(b,2,a.phoneNumber);null!=a.languagePreference&&D.Message.setField(b,4,a.languagePreference);null!=a.gaiaId&&D.Message.setField(b,5,a.gaiaId);null!=a.emailAddress&&D.Message.setField(b,3,a.emailAddress);
return b});T.moneta.integrator.common.customer.Contact.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.customer.Contact;return T.moneta.integrator.common.customer.Contact.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.customer.Contact.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setName(c);break;case 2:c=b.readString();a.setPhoneNumber(c);break;case 4:c=b.readString();D.Message.setField(a,4,c);break;case 5:c=b.readInt64();a.setGaiaId(c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;default:I(b)}return a};
T.moneta.integrator.common.customer.Contact.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,4);null!=c&&b.writeString(4,c);c=D.Message.getField(a,5);null!=c&&b.writeInt64(5,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c)};T.moneta.integrator.common.customer.Contact.prototype.setName=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.customer.Contact.prototype.setPhoneNumber=function(a){D.Message.setField(this,2,a)};T.moneta.integrator.common.customer.Contact.prototype.setGaiaId=function(a){D.Message.setField(this,5,a)};T.moneta.integrator.common.customer.Contact.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.customer.Contact,a)};T.moneta.integrator.common.buyflow.PickUpDetails=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.buyflow.PickUpDetails.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.buyflow.PickUpDetails,D.Message);T.moneta.integrator.common.buyflow.PickUpDetails.Store=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.buyflow.PickUpDetails.Store,D.Message);T.moneta.integrator.common.buyflow.PickUpDetails.repeatedFields_=[1];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.PickUpDetails.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.PickUpDetails.toObject(a,this)},T.moneta.integrator.common.buyflow.PickUpDetails.toObject=function(a,b){var c={storeList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.buyflow.PickUpDetails.Store,1),T.moneta.integrator.common.buyflow.PickUpDetails.Store.toObject,a)};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.PickUpDetails.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.PickUpDetails.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.PickUpDetails;a.storeList&&D.Message.setRepeatedWrapperField(b,1,a.storeList.map(T.moneta.integrator.common.buyflow.PickUpDetails.Store.fromObject));return b});
T.moneta.integrator.common.buyflow.PickUpDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.PickUpDetails;return T.moneta.integrator.common.buyflow.PickUpDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.PickUpDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.buyflow.PickUpDetails.Store;b.readMessage(c,T.moneta.integrator.common.buyflow.PickUpDetails.Store.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,1,c,T.moneta.integrator.common.buyflow.PickUpDetails.Store,void 0);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.PickUpDetails.serializeBinaryToWriter=function(a,b){a=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.buyflow.PickUpDetails.Store,1);0<a.length&&P(b,1,a,T.moneta.integrator.common.buyflow.PickUpDetails.Store.serializeBinaryToWriter)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.PickUpDetails.Store.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.PickUpDetails.Store.toObject(a,this)},T.moneta.integrator.common.buyflow.PickUpDetails.Store.toObject=function(a,b){var c,g={id:null==(c=D.Message.getField(b,1))?void 0:c,name:null==(c=D.Message.getField(b,2))?void 0:c,address:(c=b.getAddress())&&T.postaladdress.PostalAddress.toObject(a,c),descriptionHtml:(c=D.Message.getWrapperField(b,T.html.SafeHtmlProto,
4))&&T.html.SafeHtmlProto.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.PickUpDetails.Store.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.PickUpDetails.Store.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.PickUpDetails.Store;null!=a.id&&D.Message.setField(b,1,a.id);null!=a.name&&D.Message.setField(b,2,a.name);a.address&&D.Message.setWrapperField(b,3,T.postaladdress.PostalAddress.fromObject(a.address));a.descriptionHtml&&D.Message.setWrapperField(b,4,T.html.SafeHtmlProto.fromObject(a.descriptionHtml));
return b});T.moneta.integrator.common.buyflow.PickUpDetails.Store.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.PickUpDetails.Store;return T.moneta.integrator.common.buyflow.PickUpDetails.Store.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.PickUpDetails.Store.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setId(c);break;case 2:c=b.readString();a.setName(c);break;case 3:c=new T.postaladdress.PostalAddress;b.readMessage(c,T.postaladdress.PostalAddress.deserializeBinaryFromReader);a.setAddress(c);break;case 4:c=new T.html.SafeHtmlProto;b.readMessage(c,T.html.SafeHtmlProto.deserializeBinaryFromReader);D.Message.setWrapperField(a,4,c);break;
default:I(b)}return a};T.moneta.integrator.common.buyflow.PickUpDetails.Store.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=a.getAddress();null!=c&&N(b,3,c,T.postaladdress.PostalAddress.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.html.SafeHtmlProto,4);null!=c&&N(b,4,c,T.html.SafeHtmlProto.serializeBinaryToWriter)};
T.moneta.integrator.common.buyflow.PickUpDetails.Store.prototype.setId=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.buyflow.PickUpDetails.Store.prototype.setName=function(a){D.Message.setField(this,2,a)};T.moneta.integrator.common.buyflow.PickUpDetails.Store.prototype.getAddress=function(){return D.Message.getWrapperField(this,T.postaladdress.PostalAddress,3)};
T.moneta.integrator.common.buyflow.PickUpDetails.Store.prototype.setAddress=function(a){D.Message.setWrapperField(this,3,a)};T.moneta.integrator.common.buyflow.PickUpDetails.Store.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.PickUpDetails.Store,a)};T.moneta.integrator.common.buyflow.PickUpDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.PickUpDetails,a)};T.moneta.integrator.common.buyflow.SelectedPickUpDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.buyflow.SelectedPickUpDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.SelectedPickUpDetails.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.SelectedPickUpDetails.toObject(a,this)},T.moneta.integrator.common.buyflow.SelectedPickUpDetails.toObject=function(a,b){var c,g={storeId:null==(c=D.Message.getField(b,1))?void 0:c,contact:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.customer.Contact,2))&&T.moneta.integrator.common.customer.Contact.toObject(a,c)};a&&(g.$jspbMessageInstance=
b);return g});D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.SelectedPickUpDetails.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.SelectedPickUpDetails.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.SelectedPickUpDetails;null!=a.storeId&&D.Message.setField(b,1,a.storeId);a.contact&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.customer.Contact.fromObject(a.contact));return b});
T.moneta.integrator.common.buyflow.SelectedPickUpDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.SelectedPickUpDetails;return T.moneta.integrator.common.buyflow.SelectedPickUpDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.SelectedPickUpDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.setField(a,1,c);break;case 2:c=new T.moneta.integrator.common.customer.Contact;b.readMessage(c,T.moneta.integrator.common.customer.Contact.deserializeBinaryFromReader);D.Message.setWrapperField(a,2,c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.SelectedPickUpDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.customer.Contact,2);null!=c&&N(b,2,c,T.moneta.integrator.common.customer.Contact.serializeBinaryToWriter)};T.moneta.integrator.common.buyflow.SelectedPickUpDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.SelectedPickUpDetails,a)};T.moneta.integrator.clientcallbacks={};T.moneta.integrator.clientcallbacks.buyflowupdate={};T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken.prototype.toObject=function(a){return T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken.toObject(a,this)},T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken.toObject=function(a,b){var c,g={callbackIntent:null==(c=D.Message.getField(b,1))?void 0:c,value:null==(c=D.Message.getField(b,2))?void 0:c,valueReplacementText:null==(c=D.Message.getField(b,3))?void 0:c};a&&
(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken.ObjectFormat=function(){},T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken.fromObject=function(a){var b=new T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken;null!=a.callbackIntent&&D.Message.setField(b,1,a.callbackIntent);null!=a.value&&D.Message.setField(b,2,a.value);null!=a.valueReplacementText&&D.Message.setField(b,3,a.valueReplacementText);return b});
T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken;return T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;case 2:c=b.readString();a.setValue(c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;default:I(b)}return a};
T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c)};T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken.CallbackIntent={UNKNOWN_CALLBACK_INTENT:0,OFFER:4,PAYMENT_METHOD:3,SHIPPING_ADDRESS:1,SHIPPING_OPTION:2};
T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken.prototype.setValue=function(a){D.Message.setField(this,2,a)};T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken,a)};T.moneta.integrator.common.address.Validation=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.address.Validation.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.address.Validation,D.Message);T.moneta.integrator.common.address.Validation.repeatedFields_=[4,5];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.address.Validation.prototype.toObject=function(a){return T.moneta.integrator.common.address.Validation.toObject(a,this)},T.moneta.integrator.common.address.Validation.toObject=function(a,b){var c,g={errorMessage:null==(c=D.Message.getField(b,3))?void 0:c,allowedRegexList:null==(c=D.Message.getRepeatedField(b,4))?void 0:c,forbiddenRegexList:null==(c=D.Message.getRepeatedField(b,5))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.address.Validation.ObjectFormat=function(){},T.moneta.integrator.common.address.Validation.fromObject=function(a){var b=new T.moneta.integrator.common.address.Validation;null!=a.errorMessage&&D.Message.setField(b,3,a.errorMessage);null!=a.allowedRegexList&&D.Message.setField(b,4,a.allowedRegexList);null!=a.forbiddenRegexList&&D.Message.setField(b,5,a.forbiddenRegexList);return b});
T.moneta.integrator.common.address.Validation.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.address.Validation;return T.moneta.integrator.common.address.Validation.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.address.Validation.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 3:var c=b.readString();a.setErrorMessage(c);break;case 4:c=b.readString();D.Message.addToRepeatedField(a,4,c,void 0);break;case 5:c=b.readString();D.Message.addToRepeatedField(a,5,c,void 0);break;default:I(b)}return a};
T.moneta.integrator.common.address.Validation.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getRepeatedField(a,4);0<c.length&&O(b,4,c);c=D.Message.getRepeatedField(a,5);0<c.length&&O(b,5,c)};T.moneta.integrator.common.address.Validation.prototype.setErrorMessage=function(a){D.Message.setField(this,3,a)};
T.moneta.integrator.common.address.Validation.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.address.Validation,a)};T.moneta.integrator.common.address.AddressFieldValidation=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.address.AddressFieldValidation.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.address.AddressFieldValidation,D.Message);T.moneta.integrator.common.address.AddressFieldValidation.repeatedFields_=[2];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.address.AddressFieldValidation.prototype.toObject=function(a){return T.moneta.integrator.common.address.AddressFieldValidation.toObject(a,this)},T.moneta.integrator.common.address.AddressFieldValidation.toObject=function(a,b){var c,g={addressField:null==(c=D.Message.getField(b,1))?void 0:c,validationList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.address.Validation,2),T.moneta.integrator.common.address.Validation.toObject,
a)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.address.AddressFieldValidation.ObjectFormat=function(){},T.moneta.integrator.common.address.AddressFieldValidation.fromObject=function(a){var b=new T.moneta.integrator.common.address.AddressFieldValidation;null!=a.addressField&&D.Message.setField(b,1,a.addressField);a.validationList&&D.Message.setRepeatedWrapperField(b,2,a.validationList.map(T.moneta.integrator.common.address.Validation.fromObject));return b});
T.moneta.integrator.common.address.AddressFieldValidation.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.address.AddressFieldValidation;return T.moneta.integrator.common.address.AddressFieldValidation.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.address.AddressFieldValidation.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;case 2:c=new T.moneta.integrator.common.address.Validation;b.readMessage(c,T.moneta.integrator.common.address.Validation.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,2,c,T.moneta.integrator.common.address.Validation,void 0);break;default:I(b)}return a};
T.moneta.integrator.common.address.AddressFieldValidation.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.address.Validation,2);0<c.length&&P(b,2,c,T.moneta.integrator.common.address.Validation.serializeBinaryToWriter)};T.moneta.integrator.common.address.AddressFieldValidation.AddressField={COUNTRY:1,RECIPIENT:2,ADDRESS_LINE_1:3,ADDRESS_LINE_2:4,LOCALITY:5,ADMIN_AREA:6,POSTAL_CODE:7};
T.moneta.integrator.common.address.AddressFieldValidation.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.address.AddressFieldValidation,a)};T.moneta.integrator.common.address.SupportedCountryValidation=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.address.SupportedCountryValidation.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.address.SupportedCountryValidation,D.Message);T.moneta.integrator.common.address.SupportedCountryValidation.repeatedFields_=[2];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.address.SupportedCountryValidation.prototype.toObject=function(a){return T.moneta.integrator.common.address.SupportedCountryValidation.toObject(a,this)},T.moneta.integrator.common.address.SupportedCountryValidation.toObject=function(a,b){var c,g={countryCode:null==(c=D.Message.getField(b,1))?void 0:c,addressFieldValidationList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.address.AddressFieldValidation,
2),T.moneta.integrator.common.address.AddressFieldValidation.toObject,a),requirePhoneNumber:null==(c=D.Message.getBooleanField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.address.SupportedCountryValidation.ObjectFormat=function(){},T.moneta.integrator.common.address.SupportedCountryValidation.fromObject=function(a){var b=new T.moneta.integrator.common.address.SupportedCountryValidation;null!=a.countryCode&&D.Message.setField(b,1,a.countryCode);a.addressFieldValidationList&&D.Message.setRepeatedWrapperField(b,2,a.addressFieldValidationList.map(T.moneta.integrator.common.address.AddressFieldValidation.fromObject));
null!=a.requirePhoneNumber&&D.Message.setField(b,3,a.requirePhoneNumber);return b});T.moneta.integrator.common.address.SupportedCountryValidation.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.address.SupportedCountryValidation;return T.moneta.integrator.common.address.SupportedCountryValidation.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.address.SupportedCountryValidation.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setCountryCode(c);break;case 2:c=new T.moneta.integrator.common.address.AddressFieldValidation;b.readMessage(c,T.moneta.integrator.common.address.AddressFieldValidation.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,2,c,T.moneta.integrator.common.address.AddressFieldValidation,void 0);break;case 3:c=b.readBool();
D.Message.setField(a,3,c);break;default:I(b)}return a};T.moneta.integrator.common.address.SupportedCountryValidation.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.address.AddressFieldValidation,2);0<c.length&&P(b,2,c,T.moneta.integrator.common.address.AddressFieldValidation.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeBool(3,c)};
T.moneta.integrator.common.address.SupportedCountryValidation.prototype.setCountryCode=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.address.SupportedCountryValidation.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.address.SupportedCountryValidation,a)};T.moneta.integrator.common.address.AddressValidation=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.address.AddressValidation.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.address.AddressValidation,D.Message);T.moneta.integrator.common.address.AddressValidation.repeatedFields_=[1];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.address.AddressValidation.prototype.toObject=function(a){return T.moneta.integrator.common.address.AddressValidation.toObject(a,this)},T.moneta.integrator.common.address.AddressValidation.toObject=function(a,b){var c={supportedCountryValidationList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.address.SupportedCountryValidation,1),T.moneta.integrator.common.address.SupportedCountryValidation.toObject,
a)};a&&(c.$jspbMessageInstance=b);return c});D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.address.AddressValidation.ObjectFormat=function(){},T.moneta.integrator.common.address.AddressValidation.fromObject=function(a){var b=new T.moneta.integrator.common.address.AddressValidation;a.supportedCountryValidationList&&D.Message.setRepeatedWrapperField(b,1,a.supportedCountryValidationList.map(T.moneta.integrator.common.address.SupportedCountryValidation.fromObject));return b});
T.moneta.integrator.common.address.AddressValidation.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.address.AddressValidation;return T.moneta.integrator.common.address.AddressValidation.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.address.AddressValidation.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.address.SupportedCountryValidation;b.readMessage(c,T.moneta.integrator.common.address.SupportedCountryValidation.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,1,c,T.moneta.integrator.common.address.SupportedCountryValidation,void 0);break;default:I(b)}return a};
T.moneta.integrator.common.address.AddressValidation.serializeBinaryToWriter=function(a,b){a=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.address.SupportedCountryValidation,1);0<a.length&&P(b,1,a,T.moneta.integrator.common.address.SupportedCountryValidation.serializeBinaryToWriter)};T.moneta.integrator.common.address.AddressValidation.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.address.AddressValidation,a)};T.moneta.integrator.ui={};T.moneta.integrator.ui.common={};T.moneta.integrator.ui.common.widget={};T.moneta.integrator.ui.common.widget.Widget=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.ui.common.widget.Widget,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.ui.common.widget.Widget.prototype.toObject=function(a){return T.moneta.integrator.ui.common.widget.Widget.toObject(a,this)},T.moneta.integrator.ui.common.widget.Widget.toObject=function(a,b){var c,g={widgetJsUrl:(c=D.Message.getWrapperField(b,T.html.SafeUrlProto,1))&&T.html.SafeUrlProto.toObject(a,c),widgetParamsToken:null==(c=D.Message.getField(b,2))?void 0:c,defaultWidgetErrorMessage:null==(c=D.Message.getField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=
b);return g});D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.ui.common.widget.Widget.ObjectFormat=function(){},T.moneta.integrator.ui.common.widget.Widget.fromObject=function(a){var b=new T.moneta.integrator.ui.common.widget.Widget;a.widgetJsUrl&&D.Message.setWrapperField(b,1,T.html.SafeUrlProto.fromObject(a.widgetJsUrl));null!=a.widgetParamsToken&&D.Message.setField(b,2,a.widgetParamsToken);null!=a.defaultWidgetErrorMessage&&D.Message.setField(b,3,a.defaultWidgetErrorMessage);return b});
T.moneta.integrator.ui.common.widget.Widget.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.ui.common.widget.Widget;return T.moneta.integrator.ui.common.widget.Widget.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.ui.common.widget.Widget.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.html.SafeUrlProto;b.readMessage(c,T.html.SafeUrlProto.deserializeBinaryFromReader);D.Message.setWrapperField(a,1,c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readString();D.Message.setField(a,3,c);break;default:I(b)}return a};
T.moneta.integrator.ui.common.widget.Widget.serializeBinaryToWriter=function(a,b){var c=D.Message.getWrapperField(a,T.html.SafeUrlProto,1);null!=c&&N(b,1,c,T.html.SafeUrlProto.serializeBinaryToWriter);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c)};T.moneta.integrator.ui.common.widget.Widget.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.ui.common.widget.Widget,a)};T.moneta.integrator.common.buyflow.SelectedShippingDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.buyflow.SelectedShippingDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.SelectedShippingDetails.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.SelectedShippingDetails.toObject(a,this)},T.moneta.integrator.common.buyflow.SelectedShippingDetails.toObject=function(a,b){var c,g={shippingOptionName:null==(c=D.Message.getField(b,3))?void 0:c,address:(c=b.getAddress())&&T.moneta.integrator.common.address.Address.toObject(a,c),integratorShippingOptionDataToken:null==(c=D.Message.getField(b,
5))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.SelectedShippingDetails.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.SelectedShippingDetails.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.SelectedShippingDetails;null!=a.shippingOptionName&&D.Message.setField(b,3,a.shippingOptionName);a.address&&D.Message.setWrapperField(b,4,T.moneta.integrator.common.address.Address.fromObject(a.address));null!=a.integratorShippingOptionDataToken&&D.Message.setField(b,
5,a.integratorShippingOptionDataToken);return b});T.moneta.integrator.common.buyflow.SelectedShippingDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.SelectedShippingDetails;return T.moneta.integrator.common.buyflow.SelectedShippingDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.SelectedShippingDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 3:var c=b.readString();D.Message.setField(a,3,c);break;case 4:c=new T.moneta.integrator.common.address.Address;b.readMessage(c,T.moneta.integrator.common.address.Address.deserializeBinaryFromReader);a.setAddress(c);break;case 5:c=b.readString();D.Message.setField(a,5,c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.SelectedShippingDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=a.getAddress();null!=c&&N(b,4,c,T.moneta.integrator.common.address.Address.serializeBinaryToWriter);c=D.Message.getField(a,5);null!=c&&b.writeString(5,c)};T.moneta.integrator.common.buyflow.SelectedShippingDetails.prototype.getAddress=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.address.Address,4)};
T.moneta.integrator.common.buyflow.SelectedShippingDetails.prototype.setAddress=function(a){D.Message.setWrapperField(this,4,a)};T.moneta.integrator.common.buyflow.SelectedShippingDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.SelectedShippingDetails,a)};T.moneta.integrator.common.buyflow.ShippingDetails=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.buyflow.ShippingDetails.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.buyflow.ShippingDetails,D.Message);T.moneta.integrator.common.buyflow.ShippingDetails.Address=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.buyflow.ShippingDetails.Address,D.Message);
T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption,D.Message);
T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable,D.Message);T.moneta.integrator.common.buyflow.ShippingDetails.repeatedFields_=[1,4];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.ShippingDetails.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.ShippingDetails.toObject(a,this)},T.moneta.integrator.common.buyflow.ShippingDetails.toObject=function(a,b){var c,g={addressList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.buyflow.ShippingDetails.Address,1),T.moneta.integrator.common.buyflow.ShippingDetails.Address.toObject,a),shippingAddressValidation:(c=
D.Message.getWrapperField(b,T.moneta.integrator.common.address.AddressValidation,2))&&T.moneta.integrator.common.address.AddressValidation.toObject(a,c),shippingOptionList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption,4),T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.toObject,a),keepShippingOptionsExpanded:null==(c=D.Message.getBooleanField(b,5))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.ShippingDetails.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.ShippingDetails.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.ShippingDetails;a.addressList&&D.Message.setRepeatedWrapperField(b,1,a.addressList.map(T.moneta.integrator.common.buyflow.ShippingDetails.Address.fromObject));a.shippingAddressValidation&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.address.AddressValidation.fromObject(a.shippingAddressValidation));
a.shippingOptionList&&D.Message.setRepeatedWrapperField(b,4,a.shippingOptionList.map(T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.fromObject));null!=a.keepShippingOptionsExpanded&&D.Message.setField(b,5,a.keepShippingOptionsExpanded);return b});
T.moneta.integrator.common.buyflow.ShippingDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.ShippingDetails;return T.moneta.integrator.common.buyflow.ShippingDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.ShippingDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.buyflow.ShippingDetails.Address;b.readMessage(c,T.moneta.integrator.common.buyflow.ShippingDetails.Address.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,1,c,T.moneta.integrator.common.buyflow.ShippingDetails.Address,void 0);break;case 2:c=new T.moneta.integrator.common.address.AddressValidation;b.readMessage(c,
T.moneta.integrator.common.address.AddressValidation.deserializeBinaryFromReader);D.Message.setWrapperField(a,2,c);break;case 4:c=new T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption;b.readMessage(c,T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,4,c,T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption,void 0);break;case 5:c=b.readBool();D.Message.setField(a,5,c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.ShippingDetails.serializeBinaryToWriter=function(a,b){var c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.buyflow.ShippingDetails.Address,1);0<c.length&&P(b,1,c,T.moneta.integrator.common.buyflow.ShippingDetails.Address.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.address.AddressValidation,2);null!=c&&N(b,2,c,T.moneta.integrator.common.address.AddressValidation.serializeBinaryToWriter);c=D.Message.getRepeatedWrapperField(a,
T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption,4);0<c.length&&P(b,4,c,T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.serializeBinaryToWriter);c=D.Message.getField(a,5);null!=c&&b.writeBool(5,c)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.ShippingDetails.Address.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.ShippingDetails.Address.toObject(a,this)},T.moneta.integrator.common.buyflow.ShippingDetails.Address.toObject=function(a,b){var c,g={addressId:null==(c=D.Message.getField(b,1))?void 0:c,invalidReason:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.error.ErrorDescription,2))&&T.moneta.integrator.common.error.ErrorDescription.toObject(a,
c)};a&&(g.$jspbMessageInstance=b);return g});D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.ShippingDetails.Address.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.ShippingDetails.Address.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.ShippingDetails.Address;null!=a.addressId&&D.Message.setField(b,1,a.addressId);a.invalidReason&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.error.ErrorDescription.fromObject(a.invalidReason));return b});
T.moneta.integrator.common.buyflow.ShippingDetails.Address.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.ShippingDetails.Address;return T.moneta.integrator.common.buyflow.ShippingDetails.Address.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.ShippingDetails.Address.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt64String();a.setAddressId(c);break;case 2:c=new T.moneta.integrator.common.error.ErrorDescription;b.readMessage(c,T.moneta.integrator.common.error.ErrorDescription.deserializeBinaryFromReader);D.Message.setWrapperField(a,2,c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.ShippingDetails.Address.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt64String(1,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.error.ErrorDescription,2);null!=c&&N(b,2,c,T.moneta.integrator.common.error.ErrorDescription.serializeBinaryToWriter)};T.moneta.integrator.common.buyflow.ShippingDetails.Address.prototype.setAddressId=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.buyflow.ShippingDetails.Address.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.ShippingDetails.Address,a)};T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.repeatedFields_=[7];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.toObject(a,this)},T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.toObject=function(a,b){var c,g={name:null==(c=D.Message.getField(b,1))?void 0:c,displayName:null==(c=D.Message.getField(b,2))?void 0:c,description:null==(c=D.Message.getField(b,3))?void 0:c,descriptionTable:(c=Na(b))&&
T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable.toObject(a,c),amount:(c=b.getAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),taxInfo:(c=b.getTaxInfo())&&T.moneta.integrator.common.cart.TaxInfo.toObject(a,c),amountIncludesTax:null==(c=D.Message.getBooleanField(b,6))?void 0:c,applicableAddressIdList:null==(c=D.Message.getRepeatedField(b,7))?void 0:c,onlyAppliesToNewAddress:null==(c=D.Message.getBooleanField(b,9))?void 0:c,widget:(c=D.Message.getWrapperField(b,
T.moneta.integrator.ui.common.widget.Widget,10))&&T.moneta.integrator.ui.common.widget.Widget.toObject(a,c),callbackValueToken:(c=D.Message.getWrapperField(b,T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken,11))&&T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption;null!=a.name&&D.Message.setField(b,1,a.name);null!=a.displayName&&D.Message.setField(b,2,a.displayName);null!=a.description&&D.Message.setField(b,3,a.description);a.descriptionTable&&D.Message.setWrapperField(b,
8,T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable.fromObject(a.descriptionTable));a.amount&&D.Message.setWrapperField(b,4,T.moneta.integrator.common.Amount.fromObject(a.amount));a.taxInfo&&D.Message.setWrapperField(b,5,T.moneta.integrator.common.cart.TaxInfo.fromObject(a.taxInfo));null!=a.amountIncludesTax&&D.Message.setField(b,6,a.amountIncludesTax);null!=a.applicableAddressIdList&&D.Message.setField(b,7,a.applicableAddressIdList);null!=a.onlyAppliesToNewAddress&&
D.Message.setField(b,9,a.onlyAppliesToNewAddress);a.widget&&D.Message.setWrapperField(b,10,T.moneta.integrator.ui.common.widget.Widget.fromObject(a.widget));a.callbackValueToken&&D.Message.setWrapperField(b,11,T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken.fromObject(a.callbackValueToken));return b});
T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption;return T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setName(c);break;case 2:c=b.readString();D.Message.setField(a,2,c);break;case 3:c=b.readString();a.setDescription(c);break;case 8:c=new T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable;b.readMessage(c,T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable.deserializeBinaryFromReader);
D.Message.setWrapperField(a,8,c);break;case 4:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setAmount(c);break;case 5:c=new T.moneta.integrator.common.cart.TaxInfo;b.readMessage(c,T.moneta.integrator.common.cart.TaxInfo.deserializeBinaryFromReader);a.setTaxInfo(c);break;case 6:c=b.readBool();a.setAmountIncludesTax(c);break;case 7:c=J(b,b.decoder_.readSignedVarint64String);D.Message.setField(a,7,c||[]);break;case 9:c=b.readBool();
D.Message.setField(a,9,c);break;case 10:c=new T.moneta.integrator.ui.common.widget.Widget;b.readMessage(c,T.moneta.integrator.ui.common.widget.Widget.deserializeBinaryFromReader);D.Message.setWrapperField(a,10,c);break;case 11:c=new T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken;b.readMessage(c,T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken.deserializeBinaryFromReader);D.Message.setWrapperField(a,11,c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeString(1,c);c=D.Message.getField(a,2);null!=c&&b.writeString(2,c);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=Na(a);null!=c&&N(b,8,c,T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable.serializeBinaryToWriter);c=a.getAmount();null!=c&&N(b,4,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=a.getTaxInfo();
null!=c&&N(b,5,c,T.moneta.integrator.common.cart.TaxInfo.serializeBinaryToWriter);c=D.Message.getField(a,6);null!=c&&b.writeBool(6,c);c=D.Message.getRepeatedField(a,7);if(0<c.length&&null!=c&&c.length){for(var g=L(b,7),h=0;h<c.length;h++){var k=D.arith.Int64.fromString(c[h]);b.encoder_.writeSplitVarint64(k.lo,k.hi)}M(b,g)}c=D.Message.getField(a,9);null!=c&&b.writeBool(9,c);c=D.Message.getWrapperField(a,T.moneta.integrator.ui.common.widget.Widget,10);null!=c&&N(b,10,c,T.moneta.integrator.ui.common.widget.Widget.serializeBinaryToWriter);
c=D.Message.getWrapperField(a,T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken,11);null!=c&&N(b,11,c,T.moneta.integrator.clientcallbacks.buyflowupdate.CallbackValueToken.serializeBinaryToWriter)};T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable.repeatedFields_=[1];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable.prototype.toObject=function(a){return T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable.toObject(a,this)},T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable.toObject=function(a,b){var c,g={cellEntryList:null==(c=D.Message.getRepeatedField(b,1))?void 0:c,columnCount:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=
b);return g});D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable.ObjectFormat=function(){},T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable.fromObject=function(a){var b=new T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable;null!=a.cellEntryList&&D.Message.setField(b,1,a.cellEntryList);null!=a.columnCount&&D.Message.setField(b,2,a.columnCount);return b});
T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable;return T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();D.Message.addToRepeatedField(a,1,c,void 0);break;case 2:c=b.readInt32();D.Message.setField(a,2,c);break;default:I(b)}return a};
T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable.serializeBinaryToWriter=function(a,b){var c=D.Message.getRepeatedField(a,1);0<c.length&&O(b,1,c);c=D.Message.getField(a,2);null!=c&&b.writeInt32(2,c)};T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable,a)};
T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.prototype.setName=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.prototype.setDescription=function(a){D.Message.setField(this,3,a)};var Na=function(a){return D.Message.getWrapperField(a,T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.DescriptionTable,8)};d=T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.prototype;
d.getAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,4)};d.setAmount=function(a){D.Message.setWrapperField(this,4,a)};d.getTaxInfo=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.cart.TaxInfo,5)};d.setTaxInfo=function(a){D.Message.setWrapperField(this,5,a)};d.setAmountIncludesTax=function(a){D.Message.setField(this,6,a)};
T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.ShippingDetails.ShippingOption,a)};T.moneta.integrator.common.buyflow.ShippingDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.buyflow.ShippingDetails,a)};T.moneta.integrator.ui.buyflow={};T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.repeatedFields_,null)};f.inherits(T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData,D.Message);T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.repeatedFields_=[11,14];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.prototype.toObject=function(a){return T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.toObject(a,this)},T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.toObject=function(a,b){var c,g={productCorrelationId:(c=b.getProductCorrelationId())&&T.moneta.integrator.common.ProductCorrelationId.toObject(a,c),integratorSessionData:D.Message.bytesAsB64(b.getIntegratorSessionData()),cartComputedInfo:(c=
b.getCartComputedInfo())&&T.moneta.integrator.common.cart.CartComputedInfo.toObject(a,c),fundsGuarantee:(c=b.getFundsGuarantee())&&T.moneta.integrator.common.fundsguarantee.FundsGuarantee.toObject(a,c),selectedShippingDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.buyflow.SelectedShippingDetails,7))&&T.moneta.integrator.common.buyflow.SelectedShippingDetails.toObject(a,c),selectedPickUpDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.buyflow.SelectedPickUpDetails,
12))&&T.moneta.integrator.common.buyflow.SelectedPickUpDetails.toObject(a,c),billingCustomerNumber:null==(c=D.Message.getField(b,8))?void 0:c,guestEmailAddress:null==(c=D.Message.getField(b,9))?void 0:c,userOptOutReauthentication:null==(c=D.Message.getBooleanField(b,10))?void 0:c,customSectionDetailsValuesList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.buyflow.CustomSectionDetailsValue,11),T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.toObject,
a),financingParameters:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.buyflow.FinancingParameters,13))&&T.moneta.integrator.common.buyflow.FinancingParameters.toObject(a,c),integratorPurchaseOrderResponseList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse,14),T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse.toObject,a)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.ObjectFormat=function(){},T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.fromObject=function(a){var b=new T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData;a.productCorrelationId&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.ProductCorrelationId.fromObject(a.productCorrelationId));null!=a.integratorSessionData&&D.Message.setField(b,3,a.integratorSessionData);a.cartComputedInfo&&
D.Message.setWrapperField(b,4,T.moneta.integrator.common.cart.CartComputedInfo.fromObject(a.cartComputedInfo));a.fundsGuarantee&&D.Message.setWrapperField(b,6,T.moneta.integrator.common.fundsguarantee.FundsGuarantee.fromObject(a.fundsGuarantee));a.selectedShippingDetails&&D.Message.setWrapperField(b,7,T.moneta.integrator.common.buyflow.SelectedShippingDetails.fromObject(a.selectedShippingDetails));a.selectedPickUpDetails&&D.Message.setWrapperField(b,12,T.moneta.integrator.common.buyflow.SelectedPickUpDetails.fromObject(a.selectedPickUpDetails));
null!=a.billingCustomerNumber&&D.Message.setField(b,8,a.billingCustomerNumber);null!=a.guestEmailAddress&&D.Message.setField(b,9,a.guestEmailAddress);null!=a.userOptOutReauthentication&&D.Message.setField(b,10,a.userOptOutReauthentication);a.customSectionDetailsValuesList&&D.Message.setRepeatedWrapperField(b,11,a.customSectionDetailsValuesList.map(T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.fromObject));a.financingParameters&&D.Message.setWrapperField(b,13,T.moneta.integrator.common.buyflow.FinancingParameters.fromObject(a.financingParameters));
a.integratorPurchaseOrderResponseList&&D.Message.setRepeatedWrapperField(b,14,a.integratorPurchaseOrderResponseList.map(T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse.fromObject));return b});T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData;return T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 2:var c=new T.moneta.integrator.common.ProductCorrelationId;b.readMessage(c,T.moneta.integrator.common.ProductCorrelationId.deserializeBinaryFromReader);a.setProductCorrelationId(c);break;case 3:c=b.readBytes();a.setIntegratorSessionData(c);break;case 4:c=new T.moneta.integrator.common.cart.CartComputedInfo;b.readMessage(c,T.moneta.integrator.common.cart.CartComputedInfo.deserializeBinaryFromReader);
a.setCartComputedInfo(c);break;case 6:c=new T.moneta.integrator.common.fundsguarantee.FundsGuarantee;b.readMessage(c,T.moneta.integrator.common.fundsguarantee.FundsGuarantee.deserializeBinaryFromReader);a.setFundsGuarantee(c);break;case 7:c=new T.moneta.integrator.common.buyflow.SelectedShippingDetails;b.readMessage(c,T.moneta.integrator.common.buyflow.SelectedShippingDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,7,c);break;case 12:c=new T.moneta.integrator.common.buyflow.SelectedPickUpDetails;
b.readMessage(c,T.moneta.integrator.common.buyflow.SelectedPickUpDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,12,c);break;case 8:c=b.readInt64String();a.setBillingCustomerNumber(c);break;case 9:c=b.readString();a.setGuestEmailAddress(c);break;case 10:c=b.readBool();D.Message.setField(a,10,c);break;case 11:c=new T.moneta.integrator.common.buyflow.CustomSectionDetailsValue;b.readMessage(c,T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,
11,c,T.moneta.integrator.common.buyflow.CustomSectionDetailsValue,void 0);break;case 13:c=new T.moneta.integrator.common.buyflow.FinancingParameters;b.readMessage(c,T.moneta.integrator.common.buyflow.FinancingParameters.deserializeBinaryFromReader);D.Message.setWrapperField(a,13,c);break;case 14:c=new T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse;b.readMessage(c,T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,
14,c,T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse,void 0);break;default:I(b)}return a};
T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.serializeBinaryToWriter=function(a,b){var c=a.getProductCorrelationId();null!=c&&N(b,2,c,T.moneta.integrator.common.ProductCorrelationId.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeBytes(3,c);c=a.getCartComputedInfo();null!=c&&N(b,4,c,T.moneta.integrator.common.cart.CartComputedInfo.serializeBinaryToWriter);c=a.getFundsGuarantee();null!=c&&N(b,6,c,T.moneta.integrator.common.fundsguarantee.FundsGuarantee.serializeBinaryToWriter);
c=D.Message.getWrapperField(a,T.moneta.integrator.common.buyflow.SelectedShippingDetails,7);null!=c&&N(b,7,c,T.moneta.integrator.common.buyflow.SelectedShippingDetails.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.buyflow.SelectedPickUpDetails,12);null!=c&&N(b,12,c,T.moneta.integrator.common.buyflow.SelectedPickUpDetails.serializeBinaryToWriter);c=D.Message.getField(a,8);null!=c&&b.writeInt64String(8,c);c=D.Message.getField(a,9);null!=c&&b.writeString(9,c);c=D.Message.getField(a,
10);null!=c&&b.writeBool(10,c);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.buyflow.CustomSectionDetailsValue,11);0<c.length&&P(b,11,c,T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.buyflow.FinancingParameters,13);null!=c&&N(b,13,c,T.moneta.integrator.common.buyflow.FinancingParameters.serializeBinaryToWriter);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse,
14);0<c.length&&P(b,14,c,T.moneta.integrator.common.buyflow.IntegratorPurchaseOrderResponse.serializeBinaryToWriter)};d=T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.prototype;d.getProductCorrelationId=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.ProductCorrelationId,2)};d.setProductCorrelationId=function(a){D.Message.setWrapperField(this,2,a)};d.getIntegratorSessionData=function(){return D.Message.getField(this,3)};
d.setIntegratorSessionData=function(a){D.Message.setField(this,3,a)};d.getCartComputedInfo=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.cart.CartComputedInfo,4)};d.setCartComputedInfo=function(a){D.Message.setWrapperField(this,4,a)};d.getFundsGuarantee=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.fundsguarantee.FundsGuarantee,6)};d.setFundsGuarantee=function(a){D.Message.setWrapperField(this,6,a)};
d.setBillingCustomerNumber=function(a){D.Message.setField(this,8,a)};d.setGuestEmailAddress=function(a){D.Message.setField(this,9,a)};T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData,a)};T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo.prototype.toObject=function(a){return T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo.toObject(a,this)},T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo.toObject=function(a,b){var c,g={state:null==(c=D.Message.getField(b,1))?void 0:c,approverGaiaId:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo.ObjectFormat=function(){},T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo.fromObject=function(a){var b=new T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo;null!=a.state&&D.Message.setField(b,1,a.state);null!=a.approverGaiaId&&D.Message.setField(b,2,a.approverGaiaId);return b});
T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo;return T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;case 2:c=b.readInt64();D.Message.setField(a,2,c);break;default:I(b)}return a};T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getField(a,2);null!=c&&b.writeInt64(2,c)};
T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo.State={UNKNOWN:0,PENDING_APPROVAL:1,APPROVED:2,DENIED:3};T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo.prototype.getState=function(){return D.Message.getField(this,1)};T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo,a)};T.moneta.integrator.common.purchaseorder={};T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums.prototype.toObject=function(a){return T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums.toObject(a,this)},T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums.toObject=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums.ObjectFormat=function(){},T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums.fromObject=function(){return new T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums});
T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums;return T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)I(b);return a};
T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums.serializeBinaryToWriter=function(){};T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums.PurchaseState={UNKNOWN_PURCHASE_STATE:0,PROCESSING:1,DECLINED:2,CHARGEABLE:3,CHARGED:4,CANCELED:5,REFUNDED:6,CREATED:7,PARTIAL:8};T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums.PurchaseProcessingState={UNKNOWN_PURCHASE_PROCESSING_STATE:0,PAYMENT_PENDING:1,CHARGING:2,REFUNDING:3,CANCELING:4};
T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums.SubscriptionPurchaseOrderType={UNKNOWN_SUBSCRIPTION_PURCHASE_ORDER_TYPE:0,ORIGINATING:1,RENEWAL:2,PRORATION:3};T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums.LineItemType={UNKNOWN_PURCHASE_ORDER_LINE_ITEM_TYPE:0,REGULAR:1,DEDUCTION:2};T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.purchaseorder.PurchaseOrderEnums,a)};T.moneta.integrator.common.purchase={};T.moneta.integrator.common.purchase.PurchaseEnums=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.purchase.PurchaseEnums,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.purchase.PurchaseEnums.prototype.toObject=function(a){return T.moneta.integrator.common.purchase.PurchaseEnums.toObject(a,this)},T.moneta.integrator.common.purchase.PurchaseEnums.toObject=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c});D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.purchase.PurchaseEnums.ObjectFormat=function(){},T.moneta.integrator.common.purchase.PurchaseEnums.fromObject=function(){return new T.moneta.integrator.common.purchase.PurchaseEnums});
T.moneta.integrator.common.purchase.PurchaseEnums.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.purchase.PurchaseEnums;return T.moneta.integrator.common.purchase.PurchaseEnums.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.purchase.PurchaseEnums.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)I(b);return a};T.moneta.integrator.common.purchase.PurchaseEnums.serializeBinaryToWriter=function(){};
T.moneta.integrator.common.purchase.PurchaseEnums.CancelReason={UNKNOWN_CANCEL_REASON:0,FRAUD:1,REMORSE:2,ACCIDENTAL_PURCHASE:3,FRIENDLY_FRAUD:4,OTHER:5};T.moneta.integrator.common.purchase.PurchaseEnums.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.purchase.PurchaseEnums,a)};T.moneta.integrator.common.refundreason={};T.moneta.integrator.common.refundreason.RefundReasonEnums=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.refundreason.RefundReasonEnums,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.refundreason.RefundReasonEnums.prototype.toObject=function(a){return T.moneta.integrator.common.refundreason.RefundReasonEnums.toObject(a,this)},T.moneta.integrator.common.refundreason.RefundReasonEnums.toObject=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.refundreason.RefundReasonEnums.ObjectFormat=function(){},T.moneta.integrator.common.refundreason.RefundReasonEnums.fromObject=function(){return new T.moneta.integrator.common.refundreason.RefundReasonEnums});
T.moneta.integrator.common.refundreason.RefundReasonEnums.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.refundreason.RefundReasonEnums;return T.moneta.integrator.common.refundreason.RefundReasonEnums.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.refundreason.RefundReasonEnums.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)I(b);return a};T.moneta.integrator.common.refundreason.RefundReasonEnums.serializeBinaryToWriter=function(){};
T.moneta.integrator.common.refundreason.RefundReasonEnums.RefundReason={UNKNOWN:0,ACCIDENTAL_PURCHASE:1,DEFECTIVE:3,DISCONTINUED:4,DUPLICATE_PAYMENT:5,FOUND_BETTER_PRICE:6,FRAUD:7,FRIENDLY_FRAUD:8,MISSING_PARTS:9,NOT_AS_DESCRIBED:10,NOT_RECEIVED:11,NO_PAYMENT:12,OTHER:13,OUT_OF_STOCK:14,REMORSE:15,TOO_LONG_TO_DELIVER:16,UNDELIVERABLE:17,WRONG_SIZE:18,SUBSCRIPTION_PRORATION:19,PRODUCT_ABUSE:20,ACCOUNT_TAKEOVER:21};
T.moneta.integrator.common.refundreason.RefundReasonEnums.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.refundreason.RefundReasonEnums,a)};T.moneta.integrator.common.purchaseorder.Chargeback=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.purchaseorder.Chargeback.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.purchaseorder.Chargeback,D.Message);T.moneta.integrator.common.purchaseorder.Chargeback.repeatedFields_=[1];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.purchaseorder.Chargeback.prototype.toObject=function(a){return T.moneta.integrator.common.purchaseorder.Chargeback.toObject(a,this)},T.moneta.integrator.common.purchaseorder.Chargeback.toObject=function(a,b){var c,g={lineItemIndexList:null==(c=D.Message.getRepeatedField(b,1))?void 0:c,amount:(c=b.getAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),timeMillis:null==(c=D.Message.getField(b,3))?void 0:c};a&&(g.$jspbMessageInstance=b);
return g});D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.purchaseorder.Chargeback.ObjectFormat=function(){},T.moneta.integrator.common.purchaseorder.Chargeback.fromObject=function(a){var b=new T.moneta.integrator.common.purchaseorder.Chargeback;null!=a.lineItemIndexList&&D.Message.setField(b,1,a.lineItemIndexList);a.amount&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.amount));null!=a.timeMillis&&D.Message.setField(b,3,a.timeMillis);return b});
T.moneta.integrator.common.purchaseorder.Chargeback.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.purchaseorder.Chargeback;return T.moneta.integrator.common.purchaseorder.Chargeback.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.purchaseorder.Chargeback.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();D.Message.addToRepeatedField(a,1,c,void 0);break;case 2:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setAmount(c);break;case 3:c=b.readInt64();a.setTimeMillis(c);break;default:I(b)}return a};
T.moneta.integrator.common.purchaseorder.Chargeback.serializeBinaryToWriter=function(a,b){var c=D.Message.getRepeatedField(a,1);0<c.length&&ya(b,1,c);c=a.getAmount();null!=c&&N(b,2,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeInt64(3,c)};T.moneta.integrator.common.purchaseorder.Chargeback.prototype.getAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,2)};
T.moneta.integrator.common.purchaseorder.Chargeback.prototype.setAmount=function(a){D.Message.setWrapperField(this,2,a)};T.moneta.integrator.common.purchaseorder.Chargeback.prototype.setTimeMillis=function(a){D.Message.setField(this,3,a)};T.moneta.integrator.common.purchaseorder.Chargeback.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.purchaseorder.Chargeback,a)};T.moneta.integrator.common.purchaseorder.InitiatingDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.purchaseorder.InitiatingDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.purchaseorder.InitiatingDetails.prototype.toObject=function(a){return T.moneta.integrator.common.purchaseorder.InitiatingDetails.toObject(a,this)},T.moneta.integrator.common.purchaseorder.InitiatingDetails.toObject=function(a,b){var c,g={frequency:(c=b.getFrequency())&&T.moneta.integrator.common.Frequency.toObject(a,c),gracePeriodMillis:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.purchaseorder.InitiatingDetails.ObjectFormat=function(){},T.moneta.integrator.common.purchaseorder.InitiatingDetails.fromObject=function(a){var b=new T.moneta.integrator.common.purchaseorder.InitiatingDetails;a.frequency&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Frequency.fromObject(a.frequency));null!=a.gracePeriodMillis&&D.Message.setField(b,2,a.gracePeriodMillis);return b});
T.moneta.integrator.common.purchaseorder.InitiatingDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.purchaseorder.InitiatingDetails;return T.moneta.integrator.common.purchaseorder.InitiatingDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.purchaseorder.InitiatingDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.Frequency;b.readMessage(c,T.moneta.integrator.common.Frequency.deserializeBinaryFromReader);a.setFrequency(c);break;case 2:c=b.readInt64();a.setGracePeriodMillis(c);break;default:I(b)}return a};
T.moneta.integrator.common.purchaseorder.InitiatingDetails.serializeBinaryToWriter=function(a,b){var c=a.getFrequency();null!=c&&N(b,1,c,T.moneta.integrator.common.Frequency.serializeBinaryToWriter);c=D.Message.getField(a,2);null!=c&&b.writeInt64(2,c)};T.moneta.integrator.common.purchaseorder.InitiatingDetails.prototype.getFrequency=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Frequency,1)};
T.moneta.integrator.common.purchaseorder.InitiatingDetails.prototype.setFrequency=function(a){D.Message.setWrapperField(this,1,a)};T.moneta.integrator.common.purchaseorder.InitiatingDetails.prototype.setGracePeriodMillis=function(a){D.Message.setField(this,2,a)};T.moneta.integrator.common.purchaseorder.InitiatingDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.purchaseorder.InitiatingDetails,a)};T.moneta.integrator.common.purchaseorder.LineItemEvent=function(a){D.Message.initialize(this,a,0,-1,null,T.moneta.integrator.common.purchaseorder.LineItemEvent.oneofGroups_)};f.inherits(T.moneta.integrator.common.purchaseorder.LineItemEvent,D.Message);T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel,D.Message);
T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund,D.Message);T.moneta.integrator.common.purchaseorder.LineItemEvent.oneofGroups_=[[2,3]];T.moneta.integrator.common.purchaseorder.LineItemEvent.EventCase={EVENT_NOT_SET:0,CANCEL:2,REFUND:3};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.purchaseorder.LineItemEvent.prototype.toObject=function(a){return T.moneta.integrator.common.purchaseorder.LineItemEvent.toObject(a,this)},T.moneta.integrator.common.purchaseorder.LineItemEvent.toObject=function(a,b){var c,g={timeMillis:null==(c=D.Message.getField(b,1))?void 0:c,cancel:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel,2))&&T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel.toObject(a,
c),refund:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund,3))&&T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.purchaseorder.LineItemEvent.ObjectFormat=function(){},T.moneta.integrator.common.purchaseorder.LineItemEvent.fromObject=function(a){var b=new T.moneta.integrator.common.purchaseorder.LineItemEvent;null!=a.timeMillis&&D.Message.setField(b,1,a.timeMillis);a.cancel&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel.fromObject(a.cancel));a.refund&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund.fromObject(a.refund));
return b});T.moneta.integrator.common.purchaseorder.LineItemEvent.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.purchaseorder.LineItemEvent;return T.moneta.integrator.common.purchaseorder.LineItemEvent.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.purchaseorder.LineItemEvent.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt64();a.setTimeMillis(c);break;case 2:c=new T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel;b.readMessage(c,T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,2,T.moneta.integrator.common.purchaseorder.LineItemEvent.oneofGroups_[0],c);break;case 3:c=new T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund;
b.readMessage(c,T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,3,T.moneta.integrator.common.purchaseorder.LineItemEvent.oneofGroups_[0],c);break;default:I(b)}return a};
T.moneta.integrator.common.purchaseorder.LineItemEvent.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt64(1,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel,2);null!=c&&N(b,2,c,T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund,3);null!=c&&N(b,3,c,T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund.serializeBinaryToWriter)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel.prototype.toObject=function(a){return T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel.toObject(a,this)},T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel.toObject=function(a,b){var c,g={cancelReason:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel.ObjectFormat=function(){},T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel.fromObject=function(a){var b=new T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel;null!=a.cancelReason&&D.Message.setField(b,1,a.cancelReason);return b});
T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel;return T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;default:I(b)}return a};
T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeEnum(1,a)};T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.purchaseorder.LineItemEvent.Cancel,a)};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund.prototype.toObject=function(a){return T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund.toObject(a,this)},T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund.toObject=function(a,b){var c,g={refundReason:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund.ObjectFormat=function(){},T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund.fromObject=function(a){var b=new T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund;null!=a.refundReason&&D.Message.setField(b,1,a.refundReason);return b});
T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund;return T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();D.Message.setField(a,1,c);break;default:I(b)}return a};
T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeEnum(1,a)};T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.purchaseorder.LineItemEvent.Refund,a)};T.moneta.integrator.common.purchaseorder.LineItemEvent.prototype.setTimeMillis=function(a){D.Message.setField(this,1,a)};
T.moneta.integrator.common.purchaseorder.LineItemEvent.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.purchaseorder.LineItemEvent,a)};T.moneta.integrator.common.purchaseorder.PriceDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.purchaseorder.PriceDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.purchaseorder.PriceDetails.prototype.toObject=function(a){return T.moneta.integrator.common.purchaseorder.PriceDetails.toObject(a,this)},T.moneta.integrator.common.purchaseorder.PriceDetails.toObject=function(a,b){var c,g={pretaxAmount:(c=V(b))&&T.moneta.integrator.common.Amount.toObject(a,c),taxAmount:(c=b.getTaxAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),totalAmount:(c=W(b))&&T.moneta.integrator.common.Amount.toObject(a,c)};
a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.purchaseorder.PriceDetails.ObjectFormat=function(){},T.moneta.integrator.common.purchaseorder.PriceDetails.fromObject=function(a){var b=new T.moneta.integrator.common.purchaseorder.PriceDetails;a.pretaxAmount&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.Amount.fromObject(a.pretaxAmount));a.taxAmount&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.Amount.fromObject(a.taxAmount));a.totalAmount&&D.Message.setWrapperField(b,
3,T.moneta.integrator.common.Amount.fromObject(a.totalAmount));return b});T.moneta.integrator.common.purchaseorder.PriceDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.purchaseorder.PriceDetails;return T.moneta.integrator.common.purchaseorder.PriceDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.purchaseorder.PriceDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setPretaxAmount(c);break;case 2:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setTaxAmount(c);break;case 3:c=new T.moneta.integrator.common.Amount;b.readMessage(c,
T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setTotalAmount(c);break;default:I(b)}return a};T.moneta.integrator.common.purchaseorder.PriceDetails.serializeBinaryToWriter=function(a,b){var c=V(a);null!=c&&N(b,1,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=a.getTaxAmount();null!=c&&N(b,2,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=W(a);null!=c&&N(b,3,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter)};
T.moneta.integrator.common.purchaseorder.PriceDetails.prototype.setPretaxAmount=function(a){D.Message.setWrapperField(this,1,a)};T.moneta.integrator.common.purchaseorder.PriceDetails.prototype.getTaxAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,2)};T.moneta.integrator.common.purchaseorder.PriceDetails.prototype.setTaxAmount=function(a){D.Message.setWrapperField(this,2,a)};
T.moneta.integrator.common.purchaseorder.PriceDetails.prototype.setTotalAmount=function(a){D.Message.setWrapperField(this,3,a)};T.moneta.integrator.common.purchaseorder.PriceDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.purchaseorder.PriceDetails,a)};T.moneta.integrator.common.purchaseorder.SubscriptionDetails=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.purchaseorder.SubscriptionDetails,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.purchaseorder.SubscriptionDetails.prototype.toObject=function(a){return T.moneta.integrator.common.purchaseorder.SubscriptionDetails.toObject(a,this)},T.moneta.integrator.common.purchaseorder.SubscriptionDetails.toObject=function(a,b){var c,g={subscriptionId:(c=b.getSubscriptionId())&&T.moneta.integrator.common.SubscriptionId.toObject(a,c),subscriptionPurchaseOrderType:null==(c=D.Message.getField(b,2))?void 0:c,initiatingDetails:(c=D.Message.getWrapperField(b,
T.moneta.integrator.common.purchaseorder.InitiatingDetails,3))&&T.moneta.integrator.common.purchaseorder.InitiatingDetails.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.purchaseorder.SubscriptionDetails.ObjectFormat=function(){},T.moneta.integrator.common.purchaseorder.SubscriptionDetails.fromObject=function(a){var b=new T.moneta.integrator.common.purchaseorder.SubscriptionDetails;a.subscriptionId&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.SubscriptionId.fromObject(a.subscriptionId));null!=a.subscriptionPurchaseOrderType&&D.Message.setField(b,2,a.subscriptionPurchaseOrderType);a.initiatingDetails&&
D.Message.setWrapperField(b,3,T.moneta.integrator.common.purchaseorder.InitiatingDetails.fromObject(a.initiatingDetails));return b});T.moneta.integrator.common.purchaseorder.SubscriptionDetails.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.purchaseorder.SubscriptionDetails;return T.moneta.integrator.common.purchaseorder.SubscriptionDetails.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.purchaseorder.SubscriptionDetails.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.SubscriptionId;b.readMessage(c,T.moneta.integrator.common.SubscriptionId.deserializeBinaryFromReader);a.setSubscriptionId(c);break;case 2:c=b.readEnum();D.Message.setField(a,2,c);break;case 3:c=new T.moneta.integrator.common.purchaseorder.InitiatingDetails;b.readMessage(c,T.moneta.integrator.common.purchaseorder.InitiatingDetails.deserializeBinaryFromReader);
D.Message.setWrapperField(a,3,c);break;default:I(b)}return a};T.moneta.integrator.common.purchaseorder.SubscriptionDetails.serializeBinaryToWriter=function(a,b){var c=a.getSubscriptionId();null!=c&&N(b,1,c,T.moneta.integrator.common.SubscriptionId.serializeBinaryToWriter);c=D.Message.getField(a,2);null!=c&&b.writeEnum(2,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.purchaseorder.InitiatingDetails,3);null!=c&&N(b,3,c,T.moneta.integrator.common.purchaseorder.InitiatingDetails.serializeBinaryToWriter)};
T.moneta.integrator.common.purchaseorder.SubscriptionDetails.prototype.getSubscriptionId=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.SubscriptionId,1)};T.moneta.integrator.common.purchaseorder.SubscriptionDetails.prototype.setSubscriptionId=function(a){D.Message.setWrapperField(this,1,a)};
T.moneta.integrator.common.purchaseorder.SubscriptionDetails.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.purchaseorder.SubscriptionDetails,a)};T.moneta.integrator.common.purchaseorder.ServicePeriod=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.purchaseorder.ServicePeriod,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.purchaseorder.ServicePeriod.prototype.toObject=function(a){return T.moneta.integrator.common.purchaseorder.ServicePeriod.toObject(a,this)},T.moneta.integrator.common.purchaseorder.ServicePeriod.toObject=function(a,b){var c,g={startTimeMillis:null==(c=D.Message.getField(b,1))?void 0:c,endTimeMillis:null==(c=D.Message.getField(b,2))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.purchaseorder.ServicePeriod.ObjectFormat=function(){},T.moneta.integrator.common.purchaseorder.ServicePeriod.fromObject=function(a){var b=new T.moneta.integrator.common.purchaseorder.ServicePeriod;null!=a.startTimeMillis&&D.Message.setField(b,1,a.startTimeMillis);null!=a.endTimeMillis&&D.Message.setField(b,2,a.endTimeMillis);return b});
T.moneta.integrator.common.purchaseorder.ServicePeriod.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.purchaseorder.ServicePeriod;return T.moneta.integrator.common.purchaseorder.ServicePeriod.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.purchaseorder.ServicePeriod.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt64();D.Message.setField(a,1,c);break;case 2:c=b.readInt64();D.Message.setField(a,2,c);break;default:I(b)}return a};T.moneta.integrator.common.purchaseorder.ServicePeriod.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt64(1,c);c=D.Message.getField(a,2);null!=c&&b.writeInt64(2,c)};
T.moneta.integrator.common.purchaseorder.ServicePeriod.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.purchaseorder.ServicePeriod,a)};T.moneta.integrator.common.purchaseorder.UnitLevelState=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.purchaseorder.UnitLevelState,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.purchaseorder.UnitLevelState.prototype.toObject=function(a){return T.moneta.integrator.common.purchaseorder.UnitLevelState.toObject(a,this)},T.moneta.integrator.common.purchaseorder.UnitLevelState.toObject=function(a,b){var c,g={quantity:null==(c=D.Message.getField(b,1))?void 0:c,priceDetails:(c=b.getPriceDetails())&&T.moneta.integrator.common.purchaseorder.PriceDetails.toObject(a,c),servicePeriod:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.purchaseorder.ServicePeriod,
3))&&T.moneta.integrator.common.purchaseorder.ServicePeriod.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.purchaseorder.UnitLevelState.ObjectFormat=function(){},T.moneta.integrator.common.purchaseorder.UnitLevelState.fromObject=function(a){var b=new T.moneta.integrator.common.purchaseorder.UnitLevelState;null!=a.quantity&&D.Message.setField(b,1,a.quantity);a.priceDetails&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.purchaseorder.PriceDetails.fromObject(a.priceDetails));a.servicePeriod&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.purchaseorder.ServicePeriod.fromObject(a.servicePeriod));
return b});T.moneta.integrator.common.purchaseorder.UnitLevelState.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.purchaseorder.UnitLevelState;return T.moneta.integrator.common.purchaseorder.UnitLevelState.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.purchaseorder.UnitLevelState.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setQuantity(c);break;case 2:c=new T.moneta.integrator.common.purchaseorder.PriceDetails;b.readMessage(c,T.moneta.integrator.common.purchaseorder.PriceDetails.deserializeBinaryFromReader);a.setPriceDetails(c);break;case 3:c=new T.moneta.integrator.common.purchaseorder.ServicePeriod;b.readMessage(c,T.moneta.integrator.common.purchaseorder.ServicePeriod.deserializeBinaryFromReader);
D.Message.setWrapperField(a,3,c);break;default:I(b)}return a};T.moneta.integrator.common.purchaseorder.UnitLevelState.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=a.getPriceDetails();null!=c&&N(b,2,c,T.moneta.integrator.common.purchaseorder.PriceDetails.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.purchaseorder.ServicePeriod,3);null!=c&&N(b,3,c,T.moneta.integrator.common.purchaseorder.ServicePeriod.serializeBinaryToWriter)};
T.moneta.integrator.common.purchaseorder.UnitLevelState.prototype.setQuantity=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.purchaseorder.UnitLevelState.prototype.getPriceDetails=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.purchaseorder.PriceDetails,2)};T.moneta.integrator.common.purchaseorder.UnitLevelState.prototype.setPriceDetails=function(a){D.Message.setWrapperField(this,2,a)};
T.moneta.integrator.common.purchaseorder.UnitLevelState.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.purchaseorder.UnitLevelState,a)};T.moneta.integrator.common.purchaseorder.LineItem=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.purchaseorder.LineItem.repeatedFields_,null)};f.inherits(T.moneta.integrator.common.purchaseorder.LineItem,D.Message);T.moneta.integrator.common.purchaseorder.LineItem.repeatedFields_=[4];
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.purchaseorder.LineItem.prototype.toObject=function(a){return T.moneta.integrator.common.purchaseorder.LineItem.toObject(a,this)},T.moneta.integrator.common.purchaseorder.LineItem.toObject=function(a,b){var c,g={lineItemIndex:null==(c=D.Message.getField(b,1))?void 0:c,purchaseState:null==(c=D.Message.getField(b,2))?void 0:c,lastModifiedTimeMillis:null==(c=D.Message.getField(b,3))?void 0:c,lineItemEventList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,
T.moneta.integrator.common.purchaseorder.LineItemEvent,4),T.moneta.integrator.common.purchaseorder.LineItemEvent.toObject,a),stockKeepingUnit:null==(c=D.Message.getField(b,5))?void 0:c,purchaseProcessingState:null==(c=D.Message.getField(b,6))?void 0:c,amount:(c=b.getAmount())&&T.moneta.integrator.common.Amount.toObject(a,c),amountIncludesTax:null==(c=D.Message.getBooleanField(b,19))?void 0:c,quantity:null==(c=D.Message.getField(b,8))?void 0:c,subscriptionDetails:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.purchaseorder.SubscriptionDetails,
15))&&T.moneta.integrator.common.purchaseorder.SubscriptionDetails.toObject(a,c),priceDetails:(c=b.getPriceDetails())&&T.moneta.integrator.common.purchaseorder.PriceDetails.toObject(a,c),canceledUnits:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.purchaseorder.UnitLevelState,10))&&T.moneta.integrator.common.purchaseorder.UnitLevelState.toObject(a,c),chargeableUnits:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.purchaseorder.UnitLevelState,11))&&T.moneta.integrator.common.purchaseorder.UnitLevelState.toObject(a,
c),chargedUnits:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.purchaseorder.UnitLevelState,12))&&T.moneta.integrator.common.purchaseorder.UnitLevelState.toObject(a,c),declinedUnits:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.purchaseorder.UnitLevelState,13))&&T.moneta.integrator.common.purchaseorder.UnitLevelState.toObject(a,c),refundedUnits:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.purchaseorder.UnitLevelState,14))&&T.moneta.integrator.common.purchaseorder.UnitLevelState.toObject(a,
c),localizedTitle:null==(c=D.Message.getField(b,16))?void 0:c,localizedDescriptionHtml:(c=b.getLocalizedDescriptionHtml())&&T.html.SafeHtmlProto.toObject(a,c),lineItemType:null==(c=D.Message.getField(b,18))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.purchaseorder.LineItem.ObjectFormat=function(){},T.moneta.integrator.common.purchaseorder.LineItem.fromObject=function(a){var b=new T.moneta.integrator.common.purchaseorder.LineItem;null!=a.lineItemIndex&&D.Message.setField(b,1,a.lineItemIndex);null!=a.purchaseState&&D.Message.setField(b,2,a.purchaseState);null!=a.lastModifiedTimeMillis&&D.Message.setField(b,3,a.lastModifiedTimeMillis);a.lineItemEventList&&D.Message.setRepeatedWrapperField(b,
4,a.lineItemEventList.map(T.moneta.integrator.common.purchaseorder.LineItemEvent.fromObject));null!=a.stockKeepingUnit&&D.Message.setField(b,5,a.stockKeepingUnit);null!=a.purchaseProcessingState&&D.Message.setField(b,6,a.purchaseProcessingState);a.amount&&D.Message.setWrapperField(b,7,T.moneta.integrator.common.Amount.fromObject(a.amount));null!=a.amountIncludesTax&&D.Message.setField(b,19,a.amountIncludesTax);null!=a.quantity&&D.Message.setField(b,8,a.quantity);a.subscriptionDetails&&D.Message.setWrapperField(b,
15,T.moneta.integrator.common.purchaseorder.SubscriptionDetails.fromObject(a.subscriptionDetails));a.priceDetails&&D.Message.setWrapperField(b,9,T.moneta.integrator.common.purchaseorder.PriceDetails.fromObject(a.priceDetails));a.canceledUnits&&D.Message.setWrapperField(b,10,T.moneta.integrator.common.purchaseorder.UnitLevelState.fromObject(a.canceledUnits));a.chargeableUnits&&D.Message.setWrapperField(b,11,T.moneta.integrator.common.purchaseorder.UnitLevelState.fromObject(a.chargeableUnits));a.chargedUnits&&
D.Message.setWrapperField(b,12,T.moneta.integrator.common.purchaseorder.UnitLevelState.fromObject(a.chargedUnits));a.declinedUnits&&D.Message.setWrapperField(b,13,T.moneta.integrator.common.purchaseorder.UnitLevelState.fromObject(a.declinedUnits));a.refundedUnits&&D.Message.setWrapperField(b,14,T.moneta.integrator.common.purchaseorder.UnitLevelState.fromObject(a.refundedUnits));null!=a.localizedTitle&&D.Message.setField(b,16,a.localizedTitle);a.localizedDescriptionHtml&&D.Message.setWrapperField(b,
17,T.html.SafeHtmlProto.fromObject(a.localizedDescriptionHtml));null!=a.lineItemType&&D.Message.setField(b,18,a.lineItemType);return b});T.moneta.integrator.common.purchaseorder.LineItem.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.purchaseorder.LineItem;return T.moneta.integrator.common.purchaseorder.LineItem.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.purchaseorder.LineItem.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readInt32();a.setLineItemIndex(c);break;case 2:c=b.readEnum();D.Message.setField(a,2,c);break;case 3:c=b.readInt64();D.Message.setField(a,3,c);break;case 4:c=new T.moneta.integrator.common.purchaseorder.LineItemEvent;b.readMessage(c,T.moneta.integrator.common.purchaseorder.LineItemEvent.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,
4,c,T.moneta.integrator.common.purchaseorder.LineItemEvent,void 0);break;case 5:c=b.readString();a.setStockKeepingUnit(c);break;case 6:c=b.readEnum();D.Message.setField(a,6,c);break;case 7:c=new T.moneta.integrator.common.Amount;b.readMessage(c,T.moneta.integrator.common.Amount.deserializeBinaryFromReader);a.setAmount(c);break;case 19:c=b.readBool();a.setAmountIncludesTax(c);break;case 8:c=b.readInt32();a.setQuantity(c);break;case 15:c=new T.moneta.integrator.common.purchaseorder.SubscriptionDetails;
b.readMessage(c,T.moneta.integrator.common.purchaseorder.SubscriptionDetails.deserializeBinaryFromReader);D.Message.setWrapperField(a,15,c);break;case 9:c=new T.moneta.integrator.common.purchaseorder.PriceDetails;b.readMessage(c,T.moneta.integrator.common.purchaseorder.PriceDetails.deserializeBinaryFromReader);a.setPriceDetails(c);break;case 10:c=new T.moneta.integrator.common.purchaseorder.UnitLevelState;b.readMessage(c,T.moneta.integrator.common.purchaseorder.UnitLevelState.deserializeBinaryFromReader);
D.Message.setWrapperField(a,10,c);break;case 11:c=new T.moneta.integrator.common.purchaseorder.UnitLevelState;b.readMessage(c,T.moneta.integrator.common.purchaseorder.UnitLevelState.deserializeBinaryFromReader);D.Message.setWrapperField(a,11,c);break;case 12:c=new T.moneta.integrator.common.purchaseorder.UnitLevelState;b.readMessage(c,T.moneta.integrator.common.purchaseorder.UnitLevelState.deserializeBinaryFromReader);D.Message.setWrapperField(a,12,c);break;case 13:c=new T.moneta.integrator.common.purchaseorder.UnitLevelState;
b.readMessage(c,T.moneta.integrator.common.purchaseorder.UnitLevelState.deserializeBinaryFromReader);D.Message.setWrapperField(a,13,c);break;case 14:c=new T.moneta.integrator.common.purchaseorder.UnitLevelState;b.readMessage(c,T.moneta.integrator.common.purchaseorder.UnitLevelState.deserializeBinaryFromReader);D.Message.setWrapperField(a,14,c);break;case 16:c=b.readString();a.setLocalizedTitle(c);break;case 17:c=new T.html.SafeHtmlProto;b.readMessage(c,T.html.SafeHtmlProto.deserializeBinaryFromReader);
a.setLocalizedDescriptionHtml(c);break;case 18:c=b.readEnum();a.setLineItemType(c);break;default:I(b)}return a};
T.moneta.integrator.common.purchaseorder.LineItem.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeInt32(1,c);c=D.Message.getField(a,2);null!=c&&b.writeEnum(2,c);c=D.Message.getField(a,3);null!=c&&b.writeInt64(3,c);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.purchaseorder.LineItemEvent,4);0<c.length&&P(b,4,c,T.moneta.integrator.common.purchaseorder.LineItemEvent.serializeBinaryToWriter);c=D.Message.getField(a,5);null!=c&&b.writeString(5,c);c=
D.Message.getField(a,6);null!=c&&b.writeEnum(6,c);c=a.getAmount();null!=c&&N(b,7,c,T.moneta.integrator.common.Amount.serializeBinaryToWriter);c=D.Message.getField(a,19);null!=c&&b.writeBool(19,c);c=D.Message.getField(a,8);null!=c&&b.writeInt32(8,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.purchaseorder.SubscriptionDetails,15);null!=c&&N(b,15,c,T.moneta.integrator.common.purchaseorder.SubscriptionDetails.serializeBinaryToWriter);c=a.getPriceDetails();null!=c&&N(b,9,c,T.moneta.integrator.common.purchaseorder.PriceDetails.serializeBinaryToWriter);
c=D.Message.getWrapperField(a,T.moneta.integrator.common.purchaseorder.UnitLevelState,10);null!=c&&N(b,10,c,T.moneta.integrator.common.purchaseorder.UnitLevelState.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.purchaseorder.UnitLevelState,11);null!=c&&N(b,11,c,T.moneta.integrator.common.purchaseorder.UnitLevelState.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.purchaseorder.UnitLevelState,12);null!=c&&N(b,12,c,T.moneta.integrator.common.purchaseorder.UnitLevelState.serializeBinaryToWriter);
c=D.Message.getWrapperField(a,T.moneta.integrator.common.purchaseorder.UnitLevelState,13);null!=c&&N(b,13,c,T.moneta.integrator.common.purchaseorder.UnitLevelState.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.common.purchaseorder.UnitLevelState,14);null!=c&&N(b,14,c,T.moneta.integrator.common.purchaseorder.UnitLevelState.serializeBinaryToWriter);c=D.Message.getField(a,16);null!=c&&b.writeString(16,c);c=a.getLocalizedDescriptionHtml();null!=c&&N(b,17,c,T.html.SafeHtmlProto.serializeBinaryToWriter);
c=D.Message.getField(a,18);null!=c&&b.writeEnum(18,c)};d=T.moneta.integrator.common.purchaseorder.LineItem.prototype;d.setLineItemIndex=function(a){D.Message.setField(this,1,a)};d.setStockKeepingUnit=function(a){D.Message.setField(this,5,a)};d.getAmount=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.Amount,7)};d.setAmount=function(a){D.Message.setWrapperField(this,7,a)};d.setAmountIncludesTax=function(a){D.Message.setField(this,19,a)};
d.setQuantity=function(a){D.Message.setField(this,8,a)};d.getPriceDetails=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.purchaseorder.PriceDetails,9)};d.setPriceDetails=function(a){D.Message.setWrapperField(this,9,a)};d.setLocalizedTitle=function(a){D.Message.setField(this,16,a)};d.getLocalizedDescriptionHtml=function(){return D.Message.getWrapperField(this,T.html.SafeHtmlProto,17)};d.setLocalizedDescriptionHtml=function(a){D.Message.setWrapperField(this,17,a)};
d.setLineItemType=function(a){D.Message.setField(this,18,a)};T.moneta.integrator.common.purchaseorder.LineItem.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.purchaseorder.LineItem,a)};T.moneta.integrator.common.purchaseorder.PlayOrderId=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.common.purchaseorder.PlayOrderId,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.purchaseorder.PlayOrderId.prototype.toObject=function(a){return T.moneta.integrator.common.purchaseorder.PlayOrderId.toObject(a,this)},T.moneta.integrator.common.purchaseorder.PlayOrderId.toObject=function(a,b){var c,g={orderId:null==(c=D.Message.getField(b,1))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.purchaseorder.PlayOrderId.ObjectFormat=function(){},T.moneta.integrator.common.purchaseorder.PlayOrderId.fromObject=function(a){var b=new T.moneta.integrator.common.purchaseorder.PlayOrderId;null!=a.orderId&&D.Message.setField(b,1,a.orderId);return b});
T.moneta.integrator.common.purchaseorder.PlayOrderId.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.purchaseorder.PlayOrderId;return T.moneta.integrator.common.purchaseorder.PlayOrderId.deserializeBinaryFromReader(b,a)};T.moneta.integrator.common.purchaseorder.PlayOrderId.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readString();a.setOrderId(c);break;default:I(b)}return a};
T.moneta.integrator.common.purchaseorder.PlayOrderId.serializeBinaryToWriter=function(a,b){a=D.Message.getField(a,1);null!=a&&b.writeString(1,a)};T.moneta.integrator.common.purchaseorder.PlayOrderId.prototype.setOrderId=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.common.purchaseorder.PlayOrderId.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.purchaseorder.PlayOrderId,a)};T.moneta.integrator.common.purchaseorder.PurchaseOrder=function(a){D.Message.initialize(this,a,0,-1,T.moneta.integrator.common.purchaseorder.PurchaseOrder.repeatedFields_,T.moneta.integrator.common.purchaseorder.PurchaseOrder.oneofGroups_)};f.inherits(T.moneta.integrator.common.purchaseorder.PurchaseOrder,D.Message);T.moneta.integrator.common.purchaseorder.PurchaseOrder.repeatedFields_=[6,8];T.moneta.integrator.common.purchaseorder.PurchaseOrder.oneofGroups_=[[10]];
T.moneta.integrator.common.purchaseorder.PurchaseOrder.ProxyIdCase={PROXY_ID_NOT_SET:0,PLAY_ORDER_ID:10};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.common.purchaseorder.PurchaseOrder.prototype.toObject=function(a){return T.moneta.integrator.common.purchaseorder.PurchaseOrder.toObject(a,this)},T.moneta.integrator.common.purchaseorder.PurchaseOrder.toObject=function(a,b){var c,g={purchaseOrderId:(c=b.getPurchaseOrderId())&&T.moneta.integrator.common.PurchaseOrderId.toObject(a,c),creationTimeMillis:null==(c=D.Message.getField(b,2))?void 0:c,initiatingUserGaiaId:null==(c=D.Message.getField(b,5))?
void 0:c,lineItemList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.purchaseorder.LineItem,6),T.moneta.integrator.common.purchaseorder.LineItem.toObject,a),externalPurchaseOrderId:null==(c=D.Message.getField(b,7))?void 0:c,chargebackList:D.Message.toObjectList(D.Message.getRepeatedWrapperField(b,T.moneta.integrator.common.purchaseorder.Chargeback,8),T.moneta.integrator.common.purchaseorder.Chargeback.toObject,a),additionalFundingSourceUsed:null==(c=D.Message.getBooleanField(b,
9))?void 0:c,playOrderId:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.purchaseorder.PlayOrderId,10))&&T.moneta.integrator.common.purchaseorder.PlayOrderId.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.common.purchaseorder.PurchaseOrder.ObjectFormat=function(){},T.moneta.integrator.common.purchaseorder.PurchaseOrder.fromObject=function(a){var b=new T.moneta.integrator.common.purchaseorder.PurchaseOrder;a.purchaseOrderId&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.PurchaseOrderId.fromObject(a.purchaseOrderId));null!=a.creationTimeMillis&&D.Message.setField(b,2,a.creationTimeMillis);null!=a.initiatingUserGaiaId&&D.Message.setField(b,
5,a.initiatingUserGaiaId);a.lineItemList&&D.Message.setRepeatedWrapperField(b,6,a.lineItemList.map(T.moneta.integrator.common.purchaseorder.LineItem.fromObject));null!=a.externalPurchaseOrderId&&D.Message.setField(b,7,a.externalPurchaseOrderId);a.chargebackList&&D.Message.setRepeatedWrapperField(b,8,a.chargebackList.map(T.moneta.integrator.common.purchaseorder.Chargeback.fromObject));null!=a.additionalFundingSourceUsed&&D.Message.setField(b,9,a.additionalFundingSourceUsed);a.playOrderId&&D.Message.setWrapperField(b,
10,T.moneta.integrator.common.purchaseorder.PlayOrderId.fromObject(a.playOrderId));return b});T.moneta.integrator.common.purchaseorder.PurchaseOrder.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.common.purchaseorder.PurchaseOrder;return T.moneta.integrator.common.purchaseorder.PurchaseOrder.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.common.purchaseorder.PurchaseOrder.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.common.PurchaseOrderId;b.readMessage(c,T.moneta.integrator.common.PurchaseOrderId.deserializeBinaryFromReader);a.setPurchaseOrderId(c);break;case 2:c=b.readInt64();a.setCreationTimeMillis(c);break;case 5:c=b.readInt64();D.Message.setField(a,5,c);break;case 6:c=new T.moneta.integrator.common.purchaseorder.LineItem;b.readMessage(c,
T.moneta.integrator.common.purchaseorder.LineItem.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,6,c,T.moneta.integrator.common.purchaseorder.LineItem,void 0);break;case 7:c=b.readString();a.setExternalPurchaseOrderId(c);break;case 8:c=new T.moneta.integrator.common.purchaseorder.Chargeback;b.readMessage(c,T.moneta.integrator.common.purchaseorder.Chargeback.deserializeBinaryFromReader);D.Message.addToRepeatedWrapperField(a,8,c,T.moneta.integrator.common.purchaseorder.Chargeback,
void 0);break;case 9:c=b.readBool();D.Message.setField(a,9,c);break;case 10:c=new T.moneta.integrator.common.purchaseorder.PlayOrderId;b.readMessage(c,T.moneta.integrator.common.purchaseorder.PlayOrderId.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,10,T.moneta.integrator.common.purchaseorder.PurchaseOrder.oneofGroups_[0],c);break;default:I(b)}return a};
T.moneta.integrator.common.purchaseorder.PurchaseOrder.serializeBinaryToWriter=function(a,b){var c=a.getPurchaseOrderId();null!=c&&N(b,1,c,T.moneta.integrator.common.PurchaseOrderId.serializeBinaryToWriter);c=D.Message.getField(a,2);null!=c&&b.writeInt64(2,c);c=D.Message.getField(a,5);null!=c&&b.writeInt64(5,c);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.purchaseorder.LineItem,6);0<c.length&&P(b,6,c,T.moneta.integrator.common.purchaseorder.LineItem.serializeBinaryToWriter);c=
D.Message.getField(a,7);null!=c&&b.writeString(7,c);c=D.Message.getRepeatedWrapperField(a,T.moneta.integrator.common.purchaseorder.Chargeback,8);0<c.length&&P(b,8,c,T.moneta.integrator.common.purchaseorder.Chargeback.serializeBinaryToWriter);c=D.Message.getField(a,9);null!=c&&b.writeBool(9,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.purchaseorder.PlayOrderId,10);null!=c&&N(b,10,c,T.moneta.integrator.common.purchaseorder.PlayOrderId.serializeBinaryToWriter)};d=T.moneta.integrator.common.purchaseorder.PurchaseOrder.prototype;
d.getPurchaseOrderId=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.PurchaseOrderId,1)};d.setPurchaseOrderId=function(a){D.Message.setWrapperField(this,1,a)};d.setCreationTimeMillis=function(a){D.Message.setField(this,2,a)};d.getExternalPurchaseOrderId=function(){return D.Message.getField(this,7)};d.setExternalPurchaseOrderId=function(a){D.Message.setField(this,7,a)};
T.moneta.integrator.common.purchaseorder.PurchaseOrder.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.common.purchaseorder.PurchaseOrder,a)};T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData.prototype.toObject=function(a){return T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData.toObject(a,this)},T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData.toObject=function(a,b){var c,g={integratorSessionData:D.Message.bytesAsB64(b.getIntegratorSessionData()),purchaseOrderId:(c=b.getPurchaseOrderId())&&T.moneta.integrator.common.PurchaseOrderId.toObject(a,c),externalPurchaseOrderId:null==(c=
D.Message.getField(b,3))?void 0:c,purchaseOrder:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.purchaseorder.PurchaseOrder,4))&&T.moneta.integrator.common.purchaseorder.PurchaseOrder.toObject(a,c),billingCustomerNumber:null==(c=D.Message.getField(b,5))?void 0:c,guestEmailAddress:null==(c=D.Message.getField(b,6))?void 0:c,customSectionDetailsValue:(c=D.Message.getWrapperField(b,T.moneta.integrator.common.buyflow.CustomSectionDetailsValue,7))&&T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.toObject(a,
c),approvalInfo:(c=D.Message.getWrapperField(b,T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo,8))&&T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo.toObject(a,c),integratorDisplayTitle:null==(c=D.Message.getField(b,9))?void 0:c,integratorDisplayMessage:null==(c=D.Message.getField(b,10))?void 0:c};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData.ObjectFormat=function(){},T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData.fromObject=function(a){var b=new T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData;null!=a.integratorSessionData&&D.Message.setField(b,2,a.integratorSessionData);a.purchaseOrderId&&D.Message.setWrapperField(b,1,T.moneta.integrator.common.PurchaseOrderId.fromObject(a.purchaseOrderId));null!=a.externalPurchaseOrderId&&
D.Message.setField(b,3,a.externalPurchaseOrderId);a.purchaseOrder&&D.Message.setWrapperField(b,4,T.moneta.integrator.common.purchaseorder.PurchaseOrder.fromObject(a.purchaseOrder));null!=a.billingCustomerNumber&&D.Message.setField(b,5,a.billingCustomerNumber);null!=a.guestEmailAddress&&D.Message.setField(b,6,a.guestEmailAddress);a.customSectionDetailsValue&&D.Message.setWrapperField(b,7,T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.fromObject(a.customSectionDetailsValue));a.approvalInfo&&
D.Message.setWrapperField(b,8,T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo.fromObject(a.approvalInfo));null!=a.integratorDisplayTitle&&D.Message.setField(b,9,a.integratorDisplayTitle);null!=a.integratorDisplayMessage&&D.Message.setField(b,10,a.integratorDisplayMessage);return b});
T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData;return T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 2:var c=b.readBytes();a.setIntegratorSessionData(c);break;case 1:c=new T.moneta.integrator.common.PurchaseOrderId;b.readMessage(c,T.moneta.integrator.common.PurchaseOrderId.deserializeBinaryFromReader);a.setPurchaseOrderId(c);break;case 3:c=b.readString();a.setExternalPurchaseOrderId(c);break;case 4:c=new T.moneta.integrator.common.purchaseorder.PurchaseOrder;
b.readMessage(c,T.moneta.integrator.common.purchaseorder.PurchaseOrder.deserializeBinaryFromReader);D.Message.setWrapperField(a,4,c);break;case 5:c=b.readInt64String();a.setBillingCustomerNumber(c);break;case 6:c=b.readString();a.setGuestEmailAddress(c);break;case 7:c=new T.moneta.integrator.common.buyflow.CustomSectionDetailsValue;b.readMessage(c,T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.deserializeBinaryFromReader);D.Message.setWrapperField(a,7,c);break;case 8:c=new T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo;
b.readMessage(c,T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo.deserializeBinaryFromReader);D.Message.setWrapperField(a,8,c);break;case 9:c=b.readString();D.Message.setField(a,9,c);break;case 10:c=b.readString();D.Message.setField(a,10,c);break;default:I(b)}return a};
T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,2);null!=c&&b.writeBytes(2,c);c=a.getPurchaseOrderId();null!=c&&N(b,1,c,T.moneta.integrator.common.PurchaseOrderId.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeString(3,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.purchaseorder.PurchaseOrder,4);null!=c&&N(b,4,c,T.moneta.integrator.common.purchaseorder.PurchaseOrder.serializeBinaryToWriter);
c=D.Message.getField(a,5);null!=c&&b.writeInt64String(5,c);c=D.Message.getField(a,6);null!=c&&b.writeString(6,c);c=D.Message.getWrapperField(a,T.moneta.integrator.common.buyflow.CustomSectionDetailsValue,7);null!=c&&N(b,7,c,T.moneta.integrator.common.buyflow.CustomSectionDetailsValue.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo,8);null!=c&&N(b,8,c,T.moneta.integrator.ui.buyflow.PurchaseApprovalInfo.serializeBinaryToWriter);c=D.Message.getField(a,
9);null!=c&&b.writeString(9,c);c=D.Message.getField(a,10);null!=c&&b.writeString(10,c)};d=T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData.prototype;d.getIntegratorSessionData=function(){return D.Message.getField(this,2)};d.setIntegratorSessionData=function(a){D.Message.setField(this,2,a)};d.getPurchaseOrderId=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.PurchaseOrderId,1)};d.setPurchaseOrderId=function(a){D.Message.setWrapperField(this,1,a)};
d.getExternalPurchaseOrderId=function(){return D.Message.getField(this,3)};d.setExternalPurchaseOrderId=function(a){D.Message.setField(this,3,a)};d.setBillingCustomerNumber=function(a){D.Message.setField(this,5,a)};d.setGuestEmailAddress=function(a){D.Message.setField(this,6,a)};T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData,a)};T.moneta.integrator.callbacks.buyflowcomplete={};T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest=function(a){D.Message.initialize(this,a,0,-1,null,T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest.oneofGroups_)};f.inherits(T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest,D.Message);T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest.oneofGroups_=[[2,3]];
T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest.CallbackDataCase={CALLBACK_DATA_NOT_SET:0,FUNDS_GUARANTEE_CALLBACK_DATA:2,MANAGED_PURCHASE_CALLBACK_DATA:3};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest.prototype.toObject=function(a){return T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest.toObject(a,this)},T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest.toObject=function(a,b){var c,g={requestHeader:(c=D.Message.getWrapperField(b,T.moneta.integrator.callbacks.common.CallbackRequestHeader,1))&&T.moneta.integrator.callbacks.common.CallbackRequestHeader.toObject(a,
c),fundsGuaranteeCallbackData:(c=D.Message.getWrapperField(b,T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData,2))&&T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.toObject(a,c),managedPurchaseCallbackData:(c=D.Message.getWrapperField(b,T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData,3))&&T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest.ObjectFormat=function(){},T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest.fromObject=function(a){var b=new T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest;a.requestHeader&&D.Message.setWrapperField(b,1,T.moneta.integrator.callbacks.common.CallbackRequestHeader.fromObject(a.requestHeader));a.fundsGuaranteeCallbackData&&D.Message.setWrapperField(b,2,T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.fromObject(a.fundsGuaranteeCallbackData));
a.managedPurchaseCallbackData&&D.Message.setWrapperField(b,3,T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData.fromObject(a.managedPurchaseCallbackData));return b});T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest;return T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=new T.moneta.integrator.callbacks.common.CallbackRequestHeader;b.readMessage(c,T.moneta.integrator.callbacks.common.CallbackRequestHeader.deserializeBinaryFromReader);a.setRequestHeader(c);break;case 2:c=new T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData;b.readMessage(c,T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.deserializeBinaryFromReader);
D.Message.setOneofWrapperField(a,2,T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest.oneofGroups_[0],c);break;case 3:c=new T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData;b.readMessage(c,T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData.deserializeBinaryFromReader);D.Message.setOneofWrapperField(a,3,T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest.oneofGroups_[0],c);break;default:I(b)}return a};
T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest.serializeBinaryToWriter=function(a,b){var c=D.Message.getWrapperField(a,T.moneta.integrator.callbacks.common.CallbackRequestHeader,1);null!=c&&N(b,1,c,T.moneta.integrator.callbacks.common.CallbackRequestHeader.serializeBinaryToWriter);c=D.Message.getWrapperField(a,T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData,2);null!=c&&N(b,2,c,T.moneta.integrator.ui.buyflow.FundsGuaranteeCallbackData.serializeBinaryToWriter);c=D.Message.getWrapperField(a,
T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData,3);null!=c&&N(b,3,c,T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData.serializeBinaryToWriter)};T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest.prototype.setRequestHeader=function(a){return D.Message.setWrapperField(this,1,a)};
T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteRequest,a)};T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse,D.Message);T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride=function(a){D.Message.initialize(this,a,0,-1,null,null)};f.inherits(T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride,D.Message);
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.prototype.toObject=function(a){return T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.toObject(a,this)},T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.toObject=function(a,b){var c,g={status:null==(c=D.Message.getField(b,1))?void 0:c,errorMessageHtml:(c=D.Message.getWrapperField(b,T.html.SafeHtmlProto,2))&&T.html.SafeHtmlProto.toObject(a,c),clientCallbackData:D.Message.bytesAsB64(D.Message.getField(b,
3)),retryOverride:(c=D.Message.getWrapperField(b,T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride,4))&&T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.ObjectFormat=function(){},T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.fromObject=function(a){var b=new T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse;null!=a.status&&D.Message.setField(b,1,a.status);a.errorMessageHtml&&D.Message.setWrapperField(b,2,T.html.SafeHtmlProto.fromObject(a.errorMessageHtml));null!=a.clientCallbackData&&D.Message.setField(b,
3,a.clientCallbackData);a.retryOverride&&D.Message.setWrapperField(b,4,T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride.fromObject(a.retryOverride));return b});
T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse;return T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readEnum();a.setStatus(c);break;case 2:c=new T.html.SafeHtmlProto;b.readMessage(c,T.html.SafeHtmlProto.deserializeBinaryFromReader);D.Message.setWrapperField(a,2,c);break;case 3:c=b.readBytes();D.Message.setField(a,3,c);break;case 4:c=new T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride;b.readMessage(c,
T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride.deserializeBinaryFromReader);D.Message.setWrapperField(a,4,c);break;default:I(b)}return a};
T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeEnum(1,c);c=D.Message.getWrapperField(a,T.html.SafeHtmlProto,2);null!=c&&N(b,2,c,T.html.SafeHtmlProto.serializeBinaryToWriter);c=D.Message.getField(a,3);null!=c&&b.writeBytes(3,c);c=D.Message.getWrapperField(a,T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride,4);null!=c&&N(b,4,c,T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride.serializeBinaryToWriter)};
T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.Status={UNKNOWN_STATUS:0,COMPLETE:1,ERROR:2,EXPECTED_ERROR:3};
D.Message.GENERATE_TO_OBJECT&&(T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride.prototype.toObject=function(a){return T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride.toObject(a,this)},T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride.toObject=function(a,b){var c,g={integratorSessionData:D.Message.bytesAsB64(b.getIntegratorSessionData()),fundsGuaranteeId:(c=b.getFundsGuaranteeId())&&T.moneta.integrator.common.FundsGuaranteeId.toObject(a,
c),productCorrelationId:(c=b.getProductCorrelationId())&&T.moneta.integrator.common.ProductCorrelationId.toObject(a,c)};a&&(g.$jspbMessageInstance=b);return g});
D.Message.GENERATE_FROM_OBJECT&&(T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride.ObjectFormat=function(){},T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride.fromObject=function(a){var b=new T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride;null!=a.integratorSessionData&&D.Message.setField(b,1,a.integratorSessionData);a.fundsGuaranteeId&&D.Message.setWrapperField(b,2,T.moneta.integrator.common.FundsGuaranteeId.fromObject(a.fundsGuaranteeId));
a.productCorrelationId&&D.Message.setWrapperField(b,3,T.moneta.integrator.common.ProductCorrelationId.fromObject(a.productCorrelationId));return b});
T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride.deserializeBinary=function(a){a=new D.BinaryReader(a);var b=new T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride;return T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride.deserializeBinaryFromReader(b,a)};
T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride.deserializeBinaryFromReader=function(a,b){for(;H(b)&&!F(b);)switch(b.nextField_){case 1:var c=b.readBytes();a.setIntegratorSessionData(c);break;case 2:c=new T.moneta.integrator.common.FundsGuaranteeId;b.readMessage(c,T.moneta.integrator.common.FundsGuaranteeId.deserializeBinaryFromReader);a.setFundsGuaranteeId(c);break;case 3:c=new T.moneta.integrator.common.ProductCorrelationId;b.readMessage(c,T.moneta.integrator.common.ProductCorrelationId.deserializeBinaryFromReader);
a.setProductCorrelationId(c);break;default:I(b)}return a};T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride.serializeBinaryToWriter=function(a,b){var c=D.Message.getField(a,1);null!=c&&b.writeBytes(1,c);c=a.getFundsGuaranteeId();null!=c&&N(b,2,c,T.moneta.integrator.common.FundsGuaranteeId.serializeBinaryToWriter);c=a.getProductCorrelationId();null!=c&&N(b,3,c,T.moneta.integrator.common.ProductCorrelationId.serializeBinaryToWriter)};d=T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride.prototype;
d.getIntegratorSessionData=function(){return D.Message.getField(this,1)};d.setIntegratorSessionData=function(a){D.Message.setField(this,1,a)};d.getFundsGuaranteeId=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.FundsGuaranteeId,2)};d.setFundsGuaranteeId=function(a){D.Message.setWrapperField(this,2,a)};d.getProductCorrelationId=function(){return D.Message.getWrapperField(this,T.moneta.integrator.common.ProductCorrelationId,3)};
d.setProductCorrelationId=function(a){D.Message.setWrapperField(this,3,a)};T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.RetryOverride,a)};T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.prototype.getStatus=function(){return D.Message.getField(this,1)};
T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.prototype.setStatus=function(a){D.Message.setField(this,1,a)};T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse.deserialize=function(a){return D.Message.deserializeWithCtor(T.moneta.integrator.callbacks.buyflowcomplete.BuyFlowCompleteResponse,a)};var Oa=T.moneta.integrator.ui.buyflow.ManagedPurchaseCallbackData;l.BackgroundDelegate=function(){this.licensesCache_=new l.LicensesCache;chrome.runtime.onConnectExternal.addListener(f.bind(this.onConnect_,this))};f.inherits(l.BackgroundDelegate,f.craw.AppBackgroundDelegate);f.craw.AppBackgroundDelegate.setImpl();l.BackgroundDelegate.Methods_={BUY:"buy",CONSUME_PURCHASE:"consumePurchase",GET_PURCHASES:"getPurchases",GET_SKU_DETAILS:"getSkuDetails"};l.BackgroundDelegate.METHOD_NAME_="method";
l.BackgroundDelegate.prototype.getWindowBounds=function(){return{width:435,height:345}};
var Pa=function(a,b,c,g,h){chrome.identity.getAuthToken({interactive:!1},function(k){chrome.app.window.create("/html/craw_window.html",{bounds:a.getWindowBounds(),frame:"chrome",hidden:!1},function(m){c.onDisconnect.addListener(function(){m.close()});var t=m.contentWindow;t.crawConfig_=new f.craw.WindowConfig("https://www.google.com/intl/en-US/chrome/blank.html",!1);t.iapJwt_=g;t.sku_=h;var u=b.parameters;u||(u={});u.userSessionIndex=0;u.fullscreen=!0;u.oauthToken=k;u.propertyId="ChromeIAP";u.applicationId=
c.sender.id;t.iapParams_=u;m.onClosed.addListener(function(){var w=t.purchase_result,z={};!w||"error"in w?z=l.Errors.getErrorResponse(l.Errors.ErrorTypes.PURCHASE_CANCELED):(w=Oa.deserializeBinary(w.integratorData),z.response={orderId:w.getExternalPurchaseOrderId()},(w=t.payment_data)&&(z.response.paymentData=w),(w=t.signature)&&(z.response.signature=w),console.log("Clearing licenses cache value after payment for appId: "+c.sender.id),this.licensesCache_.remove(c.sender.id));c.postMessage(z);c.disconnect()}.bind(this))}.bind(this))}.bind(a))},
Qa=function(a,b,c,g,h){var k=function(t){g({response:{details:t}})},m=a.licensesCache_.get(c);m?(console.log("Retrieving licenses cache value for appId: "+c),k(m)):(m=b.parameters||{},na(h,b),oa(h,c,k,g,m,a.licensesCache_))},Ra=function(a,b,c,g){var h=a.parameters||{};na(g,a);qa(g,b,function(k){c({response:{details:k}})},c,a.sku,h)},Sa=function(a,b,c,g,h){a=function(m){console.log("Clearing licenses cache value after payment for appId: "+c);this.licensesCache_.remove(c);g({response:{details:m}})}.bind(a);
var k=b.parameters||{};na(h,b);pa(h,c,b.sku,a,g,k.interactive)};
l.BackgroundDelegate.prototype.onConnect_=function(a){var b=function(g){a.postMessage(g);a.disconnect()},c=new l.WebStoreService;a.onMessage.addListener(f.bind(function(g){!g.sku&&l.BackgroundDelegate.Methods_.GET_SKU_DETAILS!=g[l.BackgroundDelegate.METHOD_NAME_]&&l.BackgroundDelegate.Methods_.GET_PURCHASES!=g[l.BackgroundDelegate.METHOD_NAME_]&&l.BackgroundDelegate.Methods_.CONSUME_PURCHASE!=g[l.BackgroundDelegate.METHOD_NAME_]||"prod"==(g.parameters||{}).env?l.BackgroundDelegate.Methods_.GET_PURCHASES==
g[l.BackgroundDelegate.METHOD_NAME_]?Qa(this,g,a.sender.id,b,c):l.BackgroundDelegate.Methods_.GET_SKU_DETAILS==g[l.BackgroundDelegate.METHOD_NAME_]?Ra(g,a.sender.id,b,c):l.BackgroundDelegate.Methods_.CONSUME_PURCHASE==g[l.BackgroundDelegate.METHOD_NAME_]?Sa(this,g,a.sender.id,b,c):Pa(this,g,a,g.jwt,g.sku):b(l.Errors.getErrorResponse(l.Errors.ErrorTypes.ENV_NOT_SUPPORTED_ERROR))},this))};f.craw.AppBackground=function(){this.delegate_=f.craw.AppBackgroundDelegate.createImpl();chrome.app.runtime.onLaunched.addListener(f.bind(this.launchWindow_,this,null))};f.craw.AppBackground.prototype.launchWindow_=function(a){null!==a&&chrome.app.window.create("/html/craw_window.html",{id:"",bounds:this.delegate_.getWindowBounds(),frame:"chrome",hidden:!1},function(b){b.contentWindow.crawConfig_=new f.craw.WindowConfig(a,!0)})};window.onload=function(){new f.craw.AppBackground};f.async={};f.async.FreeList=function(a,b,c){this.limit_=c;this.create_=a;this.reset_=b;this.occupants_=0;this.head_=null};f.async.FreeList.prototype.get=function(){if(0<this.occupants_){this.occupants_--;var a=this.head_;this.head_=a.next;a.next=null}else a=this.create_();return a};f.async.FreeList.prototype.put=function(a){this.reset_(a);this.occupants_<this.limit_&&(this.occupants_++,a.next=this.head_,this.head_=a)};f.dom.BrowserFeature={};f.dom.BrowserFeature.ASSUME_NO_OFFSCREEN_CANVAS=!1;f.dom.BrowserFeature.ASSUME_OFFSCREEN_CANVAS=!1;f.dom.BrowserFeature.detectOffscreenCanvas_=function(){try{return!!(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}return!1};f.dom.BrowserFeature.OFFSCREEN_CANVAS_2D=!f.dom.BrowserFeature.ASSUME_NO_OFFSCREEN_CANVAS&&(f.dom.BrowserFeature.ASSUME_OFFSCREEN_CANVAS||f.dom.BrowserFeature.detectOffscreenCanvas_());
f.dom.BrowserFeature.CAN_ADD_NAME_OR_TYPE_ATTRIBUTES=!f.userAgent.IE||f.userAgent.isDocumentModeOrHigher(9);f.dom.BrowserFeature.CAN_USE_CHILDREN_ATTRIBUTE=!f.userAgent.GECKO&&!f.userAgent.IE||f.userAgent.IE&&f.userAgent.isDocumentModeOrHigher(9)||f.userAgent.GECKO&&f.userAgent.isVersionOrHigher("1.9.1");f.dom.BrowserFeature.CAN_USE_INNER_TEXT=f.userAgent.IE&&!f.userAgent.isVersionOrHigher("9");f.dom.BrowserFeature.CAN_USE_PARENT_ELEMENT_PROPERTY=f.userAgent.IE||f.userAgent.OPERA||f.userAgent.WEBKIT;
f.dom.BrowserFeature.INNER_HTML_NEEDS_SCOPED_ELEMENT=f.userAgent.IE;f.dom.BrowserFeature.LEGACY_IE_RANGES=f.userAgent.IE&&!f.userAgent.isDocumentModeOrHigher(9);f.math.Coordinate=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};f.math.Coordinate.prototype.clone=function(){return new f.math.Coordinate(this.x,this.y)};f.DEBUG&&(f.math.Coordinate.prototype.toString=function(){return"("+this.x+", "+this.y+")"});f.math.Coordinate.prototype.equals=function(a){return a instanceof f.math.Coordinate&&f.math.Coordinate.equals(this,a)};f.math.Coordinate.equals=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
f.math.Coordinate.distance=function(a,b){var c=a.x-b.x;a=a.y-b.y;return Math.sqrt(c*c+a*a)};f.math.Coordinate.magnitude=function(a){return Math.sqrt(a.x*a.x+a.y*a.y)};f.math.Coordinate.azimuth=function(a){return f.math.angle(0,0,a.x,a.y)};f.math.Coordinate.squaredDistance=function(a,b){var c=a.x-b.x;a=a.y-b.y;return c*c+a*a};f.math.Coordinate.difference=function(a,b){return new f.math.Coordinate(a.x-b.x,a.y-b.y)};f.math.Coordinate.sum=function(a,b){return new f.math.Coordinate(a.x+b.x,a.y+b.y)};
d=f.math.Coordinate.prototype;d.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};d.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};d.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};d.translate=function(a,b){a instanceof f.math.Coordinate?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),"number"===typeof b&&(this.y+=b));return this};d.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};f.math.Size=function(a,b){this.width=a;this.height=b};f.math.Size.equals=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};f.math.Size.prototype.clone=function(){return new f.math.Size(this.width,this.height)};f.DEBUG&&(f.math.Size.prototype.toString=function(){return"("+this.width+" x "+this.height+")"});d=f.math.Size.prototype;d.aspectRatio=function(){return this.width/this.height};d.isEmpty=function(){return!(this.width*this.height)};
d.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};d.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};d.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};d.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};f.dom.ASSUME_QUIRKS_MODE=!1;f.dom.ASSUME_STANDARDS_MODE=!1;f.dom.COMPAT_MODE_KNOWN_=f.dom.ASSUME_QUIRKS_MODE||f.dom.ASSUME_STANDARDS_MODE;f.dom.getDomHelper=function(a){return a?new f.dom.DomHelper(f.dom.getOwnerDocument(a)):f.dom.defaultDomHelper_||(f.dom.defaultDomHelper_=new f.dom.DomHelper)};f.dom.getDocument=function(){return document};f.dom.getElement=function(a){return f.dom.getElementHelper_(document,a)};f.dom.getElementHelper_=function(a,b){return"string"===typeof b?a.getElementById(b):b};
f.dom.getRequiredElement=function(a){return f.dom.getRequiredElementHelper_(document,a)};f.dom.getRequiredElementHelper_=function(a,b){f.asserts.assertString(b);a=f.dom.getElementHelper_(a,b);return a=f.asserts.assertElement(a,"No element found with id: "+b)};f.dom.$=f.dom.getElement;f.dom.getElementsByTagName=function(a,b){return(b||document).getElementsByTagName(String(a))};f.dom.getElementsByTagNameAndClass=function(a,b,c){return f.dom.getElementsByTagNameAndClass_(document,a,b,c)};
f.dom.getElementByTagNameAndClass=function(a,b,c){return f.dom.getElementByTagNameAndClass_(document,a,b,c)};f.dom.getElementsByClass=function(a,b){var c=b||document;return f.dom.canUseQuerySelector_(c)?c.querySelectorAll("."+a):f.dom.getElementsByTagNameAndClass_(document,"*",a,b)};f.dom.getElementByClass=function(a,b){var c=b||document;return(c.getElementsByClassName?c.getElementsByClassName(a)[0]:f.dom.getElementByTagNameAndClass_(document,"*",a,b))||null};
f.dom.getRequiredElementByClass=function(a,b){b=f.dom.getElementByClass(a,b);return f.asserts.assert(b,"No element found with className: "+a)};f.dom.canUseQuerySelector_=function(a){return!(!a.querySelectorAll||!a.querySelector)};
f.dom.getElementsByTagNameAndClass_=function(a,b,c,g){a=g||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(f.dom.canUseQuerySelector_(a)&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){g={};for(var h=0,k=0,m;m=a[k];k++)b==m.nodeName&&(g[h++]=m);g.length=h;return g}return a}a=a.getElementsByTagName(b||"*");if(c){g={};for(k=h=0;m=a[k];k++)b=m.className,"function"==typeof b.split&&f.array.contains(b.split(/\s+/),c)&&(g[h++]=m);g.length=
h;return g}return a};f.dom.getElementByTagNameAndClass_=function(a,b,c,g){var h=g||a,k=b&&"*"!=b?String(b).toUpperCase():"";return f.dom.canUseQuerySelector_(h)&&(k||c)?h.querySelector(k+(c?"."+c:"")):f.dom.getElementsByTagNameAndClass_(a,b,c,g)[0]||null};f.dom.$$=f.dom.getElementsByTagNameAndClass;
f.dom.setProperties=function(a,b){f.object.forEach(b,function(c,g){c&&"object"==typeof c&&c.implementsGoogStringTypedString&&(c=c.getTypedStringValue());"style"==g?a.style.cssText=c:"class"==g?a.className=c:"for"==g?a.htmlFor=c:f.dom.DIRECT_ATTRIBUTE_MAP_.hasOwnProperty(g)?a.setAttribute(f.dom.DIRECT_ATTRIBUTE_MAP_[g],c):f.string.startsWith(g,"aria-")||f.string.startsWith(g,"data-")?a.setAttribute(g,c):a[g]=c})};
f.dom.DIRECT_ATTRIBUTE_MAP_={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};f.dom.getViewportSize=function(a){return f.dom.getViewportSize_(a||window)};f.dom.getViewportSize_=function(a){a=a.document;a=f.dom.isCss1CompatMode_(a)?a.documentElement:a.body;return new f.math.Size(a.clientWidth,a.clientHeight)};
f.dom.getDocumentHeight=function(){return f.dom.getDocumentHeight_(window)};f.dom.getDocumentHeightForWindow=function(a){return f.dom.getDocumentHeight_(a)};
f.dom.getDocumentHeight_=function(a){var b=a.document,c=0;if(b){c=b.body;var g=b.documentElement;if(!g||!c)return 0;a=f.dom.getViewportSize_(a).height;if(f.dom.isCss1CompatMode_(b)&&g.scrollHeight)c=g.scrollHeight!=a?g.scrollHeight:g.offsetHeight;else{b=g.scrollHeight;var h=g.offsetHeight;g.clientHeight!=h&&(b=c.scrollHeight,h=c.offsetHeight);c=b>a?b>h?b:h:b<h?b:h}}return c};f.dom.getPageScroll=function(a){return f.dom.getDomHelper((a||f.global||window).document).getDocumentScroll()};
f.dom.getDocumentScroll=function(){return f.dom.getDocumentScroll_(document)};f.dom.getDocumentScroll_=function(a){var b=f.dom.getDocumentScrollElement_(a);a=f.dom.getWindow_(a);return f.userAgent.IE&&f.userAgent.isVersionOrHigher("10")&&a.pageYOffset!=b.scrollTop?new f.math.Coordinate(b.scrollLeft,b.scrollTop):new f.math.Coordinate(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};f.dom.getDocumentScrollElement=function(){return f.dom.getDocumentScrollElement_(document)};
f.dom.getDocumentScrollElement_=function(a){return a.scrollingElement?a.scrollingElement:!f.userAgent.WEBKIT&&f.dom.isCss1CompatMode_(a)?a.documentElement:a.body||a.documentElement};f.dom.getWindow=function(a){return a?f.dom.getWindow_(a):window};f.dom.getWindow_=function(a){return a.parentWindow||a.defaultView};f.dom.createDom=function(a,b,c){return f.dom.createDom_(document,arguments)};
f.dom.createDom_=function(a,b){var c=String(b[0]),g=b[1];if(!f.dom.BrowserFeature.CAN_ADD_NAME_OR_TYPE_ATTRIBUTES&&g&&(g.name||g.type)){c=["<",c];g.name&&c.push(' name="',f.string.htmlEscape(g.name),'"');if(g.type){c.push(' type="',f.string.htmlEscape(g.type),'"');var h={};f.object.extend(h,g);delete h.type;g=h}c.push(">");c=c.join("")}c=f.dom.createElement_(a,c);g&&("string"===typeof g?c.className=g:f.isArray(g)?c.className=g.join(" "):f.dom.setProperties(c,g));2<b.length&&f.dom.append_(a,c,b,2);
return c};f.dom.append_=function(a,b,c,g){function h(m){m&&b.appendChild("string"===typeof m?a.createTextNode(m):m)}for(;g<c.length;g++){var k=c[g];f.isArrayLike(k)&&!f.dom.isNodeLike(k)?f.array.forEach(f.dom.isNodeList(k)?f.array.toArray(k):k,h):h(k)}};f.dom.$dom=f.dom.createDom;f.dom.createElement=function(a){return f.dom.createElement_(document,a)};f.dom.createElement_=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
f.dom.createTextNode=function(a){return document.createTextNode(String(a))};f.dom.createTable=function(a,b,c){return f.dom.createTable_(document,a,b,!!c)};f.dom.createTable_=function(a,b,c,g){for(var h=f.dom.createElement_(a,"TABLE"),k=h.appendChild(f.dom.createElement_(a,"TBODY")),m=0;m<b;m++){for(var t=f.dom.createElement_(a,"TR"),u=0;u<c;u++){var w=f.dom.createElement_(a,"TD");g&&f.dom.setTextContent(w,f.string.Unicode.NBSP);t.appendChild(w)}k.appendChild(t)}return h};
f.dom.constHtmlToNode=function(a){var b=f.array.map(arguments,f.string.Const.unwrap);b=f.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(f.string.Const.from("Constant HTML string, that gets turned into a Node later, so it will be automatically balanced."),b.join(""));return f.dom.safeHtmlToNode(b)};f.dom.safeHtmlToNode=function(a){return f.dom.safeHtmlToNode_(document,a)};
f.dom.safeHtmlToNode_=function(a,b){var c=f.dom.createElement_(a,"DIV");f.dom.BrowserFeature.INNER_HTML_NEEDS_SCOPED_ELEMENT?(f.dom.safe.setInnerHtml(c,f.html.SafeHtml.concat(f.html.SafeHtml.BR,b)),c.removeChild(f.asserts.assert(c.firstChild))):f.dom.safe.setInnerHtml(c,b);return f.dom.childrenToNode_(a,c)};f.dom.childrenToNode_=function(a,b){if(1==b.childNodes.length)return b.removeChild(f.asserts.assert(b.firstChild));for(a=a.createDocumentFragment();b.firstChild;)a.appendChild(b.firstChild);return a};
f.dom.isCss1CompatMode=function(){return f.dom.isCss1CompatMode_(document)};f.dom.isCss1CompatMode_=function(a){return f.dom.COMPAT_MODE_KNOWN_?f.dom.ASSUME_STANDARDS_MODE:"CSS1Compat"==a.compatMode};f.dom.canHaveChildren=function(a){if(a.nodeType!=f.dom.NodeType.ELEMENT)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
f.dom.appendChild=function(a,b){f.asserts.assert(null!=a&&null!=b,"goog.dom.appendChild expects non-null arguments");a.appendChild(b)};f.dom.append=function(a,b){f.dom.append_(f.dom.getOwnerDocument(a),a,arguments,1)};f.dom.removeChildren=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};f.dom.insertSiblingBefore=function(a,b){f.asserts.assert(null!=a&&null!=b,"goog.dom.insertSiblingBefore expects non-null arguments");b.parentNode&&b.parentNode.insertBefore(a,b)};
f.dom.insertSiblingAfter=function(a,b){f.asserts.assert(null!=a&&null!=b,"goog.dom.insertSiblingAfter expects non-null arguments");b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)};f.dom.insertChildAt=function(a,b,c){f.asserts.assert(null!=a,"goog.dom.insertChildAt expects a non-null parent");a.insertBefore(b,a.childNodes[c]||null)};f.dom.removeNode=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
f.dom.replaceNode=function(a,b){f.asserts.assert(null!=a&&null!=b,"goog.dom.replaceNode expects non-null arguments");var c=b.parentNode;c&&c.replaceChild(a,b)};f.dom.flattenElement=function(a){var b,c=a.parentNode;if(c&&c.nodeType!=f.dom.NodeType.DOCUMENT_FRAGMENT){if(a.removeNode)return a.removeNode(!1);for(;b=a.firstChild;)c.insertBefore(b,a);return f.dom.removeNode(a)}};
f.dom.getChildren=function(a){return f.dom.BrowserFeature.CAN_USE_CHILDREN_ATTRIBUTE&&void 0!=a.children?a.children:f.array.filter(a.childNodes,function(b){return b.nodeType==f.dom.NodeType.ELEMENT})};f.dom.getFirstElementChild=function(a){return void 0!==a.firstElementChild?a.firstElementChild:f.dom.getNextElementNode_(a.firstChild,!0)};f.dom.getLastElementChild=function(a){return void 0!==a.lastElementChild?a.lastElementChild:f.dom.getNextElementNode_(a.lastChild,!1)};
f.dom.getNextElementSibling=function(a){return void 0!==a.nextElementSibling?a.nextElementSibling:f.dom.getNextElementNode_(a.nextSibling,!0)};f.dom.getPreviousElementSibling=function(a){return void 0!==a.previousElementSibling?a.previousElementSibling:f.dom.getNextElementNode_(a.previousSibling,!1)};f.dom.getNextElementNode_=function(a,b){for(;a&&a.nodeType!=f.dom.NodeType.ELEMENT;)a=b?a.nextSibling:a.previousSibling;return a};
f.dom.getNextNode=function(a){if(!a)return null;if(a.firstChild)return a.firstChild;for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null};f.dom.getPreviousNode=function(a){if(!a)return null;if(!a.previousSibling)return a.parentNode;for(a=a.previousSibling;a&&a.lastChild;)a=a.lastChild;return a};f.dom.isNodeLike=function(a){return f.isObject(a)&&0<a.nodeType};f.dom.isElement=function(a){return f.isObject(a)&&a.nodeType==f.dom.NodeType.ELEMENT};
f.dom.isWindow=function(a){return f.isObject(a)&&a.window==a};f.dom.getParentElement=function(a){var b;if(f.dom.BrowserFeature.CAN_USE_PARENT_ELEMENT_PROPERTY&&!(f.userAgent.IE&&f.userAgent.isVersionOrHigher("9")&&!f.userAgent.isVersionOrHigher("10")&&f.global.SVGElement&&a instanceof f.global.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return f.dom.isElement(b)?b:null};
f.dom.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==f.dom.NodeType.ELEMENT)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
f.dom.compareNodeOrder=function(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(f.userAgent.IE&&!f.userAgent.isDocumentModeOrHigher(9)){if(a.nodeType==f.dom.NodeType.DOCUMENT)return-1;if(b.nodeType==f.dom.NodeType.DOCUMENT)return 1}if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=a.nodeType==f.dom.NodeType.ELEMENT,g=b.nodeType==f.dom.NodeType.ELEMENT;if(c&&g)return a.sourceIndex-b.sourceIndex;var h=a.parentNode,k=b.parentNode;
return h==k?f.dom.compareSiblingOrder_(a,b):!c&&f.dom.contains(h,b)?-1*f.dom.compareParentsDescendantNodeIe_(a,b):!g&&f.dom.contains(k,a)?f.dom.compareParentsDescendantNodeIe_(b,a):(c?a.sourceIndex:h.sourceIndex)-(g?b.sourceIndex:k.sourceIndex)}g=f.dom.getOwnerDocument(a);c=g.createRange();c.selectNode(a);c.collapse(!0);a=g.createRange();a.selectNode(b);a.collapse(!0);return c.compareBoundaryPoints(f.global.Range.START_TO_END,a)};
f.dom.compareParentsDescendantNodeIe_=function(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return f.dom.compareSiblingOrder_(b,a)};f.dom.compareSiblingOrder_=function(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1};
f.dom.findCommonAncestor=function(a){var b,c=arguments.length;if(!c)return null;if(1==c)return arguments[0];var g=[],h=Infinity;for(b=0;b<c;b++){for(var k=[],m=arguments[b];m;)k.unshift(m),m=m.parentNode;g.push(k);h=Math.min(h,k.length)}k=null;for(b=0;b<h;b++){m=g[0][b];for(var t=1;t<c;t++)if(m!=g[t][b])return k;k=m}return k};f.dom.isInDocument=function(a){return 16==(a.ownerDocument.compareDocumentPosition(a)&16)};
f.dom.getOwnerDocument=function(a){f.asserts.assert(a,"Node cannot be null or undefined.");return a.nodeType==f.dom.NodeType.DOCUMENT?a:a.ownerDocument||a.document};f.dom.getFrameContentDocument=function(a){return a.contentDocument||a.contentWindow.document};f.dom.getFrameContentWindow=function(a){try{return a.contentWindow||(a.contentDocument?f.dom.getWindow(a.contentDocument):null)}catch(b){}return null};
f.dom.setTextContent=function(a,b){f.asserts.assert(null!=a,"goog.dom.setTextContent expects a non-null value for node");if("textContent"in a)a.textContent=b;else if(a.nodeType==f.dom.NodeType.TEXT)a.data=String(b);else if(a.firstChild&&a.firstChild.nodeType==f.dom.NodeType.TEXT){for(;a.lastChild!=a.firstChild;)a.removeChild(f.asserts.assert(a.lastChild));a.firstChild.data=String(b)}else{f.dom.removeChildren(a);var c=f.dom.getOwnerDocument(a);a.appendChild(c.createTextNode(String(b)))}};
f.dom.getOuterHtml=function(a){f.asserts.assert(null!==a,"goog.dom.getOuterHtml expects a non-null value for element");if("outerHTML"in a)return a.outerHTML;var b=f.dom.getOwnerDocument(a);b=f.dom.createElement_(b,"DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML};f.dom.findNode=function(a,b){var c=[];return f.dom.findNodes_(a,b,c,!0)?c[0]:void 0};f.dom.findNodes=function(a,b){var c=[];f.dom.findNodes_(a,b,c,!1);return c};
f.dom.findNodes_=function(a,b,c,g){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),g)||f.dom.findNodes_(a,b,c,g))return!0;a=a.nextSibling}return!1};f.dom.findElement=function(a,b){for(a=f.dom.getChildrenReverse_(a);0<a.length;){var c=a.pop();if(b(c))return c;for(c=c.lastElementChild;c;c=c.previousElementSibling)a.push(c)}return null};f.dom.findElements=function(a,b){var c=[];for(a=f.dom.getChildrenReverse_(a);0<a.length;){var g=a.pop();b(g)&&c.push(g);for(g=g.lastElementChild;g;g=g.previousElementSibling)a.push(g)}return c};
f.dom.getChildrenReverse_=function(a){if(a.nodeType==f.dom.NodeType.DOCUMENT)return[a.documentElement];var b=[];for(a=a.lastElementChild;a;a=a.previousElementSibling)b.push(a);return b};f.dom.TAGS_TO_IGNORE_={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};f.dom.PREDEFINED_TAG_VALUES_={IMG:" ",BR:"\n"};f.dom.isFocusableTabIndex=function(a){return f.dom.hasSpecifiedTabIndex_(a)&&f.dom.isTabIndexFocusable_(a)};f.dom.setFocusableTabIndex=function(a,b){b?a.tabIndex=0:(a.tabIndex=-1,a.removeAttribute("tabIndex"))};
f.dom.isFocusable=function(a){var b;return(b=f.dom.nativelySupportsFocus_(a)?!a.disabled&&(!f.dom.hasSpecifiedTabIndex_(a)||f.dom.isTabIndexFocusable_(a)):f.dom.isFocusableTabIndex(a))&&f.userAgent.IE?f.dom.hasNonZeroBoundingRect_(a):b};f.dom.hasSpecifiedTabIndex_=function(a){return f.userAgent.IE&&!f.userAgent.isVersionOrHigher("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
f.dom.isTabIndexFocusable_=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};f.dom.nativelySupportsFocus_=function(a){return"A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName};f.dom.hasNonZeroBoundingRect_=function(a){a=!f.isFunction(a.getBoundingClientRect)||f.userAgent.IE&&null==a.parentElement?{height:a.offsetHeight,width:a.offsetWidth}:a.getBoundingClientRect();return null!=a&&0<a.height&&0<a.width};
f.dom.getTextContent=function(a){if(f.dom.BrowserFeature.CAN_USE_INNER_TEXT&&null!==a&&"innerText"in a)a=f.string.canonicalizeNewlines(a.innerText);else{var b=[];f.dom.getTextContent_(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");f.dom.BrowserFeature.CAN_USE_INNER_TEXT||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a};f.dom.getRawTextContent=function(a){var b=[];f.dom.getTextContent_(a,b,!1);return b.join("")};
f.dom.getTextContent_=function(a,b,c){if(!(a.nodeName in f.dom.TAGS_TO_IGNORE_))if(a.nodeType==f.dom.NodeType.TEXT)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in f.dom.PREDEFINED_TAG_VALUES_)b.push(f.dom.PREDEFINED_TAG_VALUES_[a.nodeName]);else for(a=a.firstChild;a;)f.dom.getTextContent_(a,b,c),a=a.nextSibling};f.dom.getNodeTextLength=function(a){return f.dom.getTextContent(a).length};
f.dom.getNodeTextOffset=function(a,b){b=b||f.dom.getOwnerDocument(a).body;for(var c=[];a&&a!=b;){for(var g=a;g=g.previousSibling;)c.unshift(f.dom.getTextContent(g));a=a.parentNode}return f.string.trimLeft(c.join("")).replace(/ +/g," ").length};
f.dom.getNodeAtOffset=function(a,b,c){a=[a];for(var g=0,h=null;0<a.length&&g<b;)if(h=a.pop(),!(h.nodeName in f.dom.TAGS_TO_IGNORE_))if(h.nodeType==f.dom.NodeType.TEXT){var k=h.nodeValue.replace(/(\r\n|\r|\n)/g,"").replace(/ +/g," ");g+=k.length}else if(h.nodeName in f.dom.PREDEFINED_TAG_VALUES_)g+=f.dom.PREDEFINED_TAG_VALUES_[h.nodeName].length;else for(k=h.childNodes.length-1;0<=k;k--)a.push(h.childNodes[k]);f.isObject(c)&&(c.remainder=h?h.nodeValue.length+b-g-1:0,c.node=h);return h};
f.dom.isNodeList=function(a){if(a&&"number"==typeof a.length){if(f.isObject(a))return"function"==typeof a.item||"string"==typeof a.item;if(f.isFunction(a))return"function"==typeof a.item}return!1};f.dom.getAncestorByTagNameAndClass=function(a,b,c,g){if(!b&&!c)return null;var h=b?String(b).toUpperCase():null;return f.dom.getAncestor(a,function(k){return(!h||k.nodeName==h)&&(!c||"string"===typeof k.className&&f.array.contains(k.className.split(/\s+/),c))},!0,g)};
f.dom.getAncestorByClass=function(a,b,c){return f.dom.getAncestorByTagNameAndClass(a,null,b,c)};f.dom.getAncestor=function(a,b,c,g){a&&!c&&(a=a.parentNode);for(c=0;a&&(null==g||c<=g);){f.asserts.assert("parentNode"!=a.name);if(b(a))return a;a=a.parentNode;c++}return null};f.dom.getActiveElement=function(a){try{var b=a&&a.activeElement;return b&&b.nodeName?b:null}catch(c){return null}};
f.dom.getPixelRatio=function(){var a=f.dom.getWindow();return void 0!==a.devicePixelRatio?a.devicePixelRatio:a.matchMedia?f.dom.matchesPixelRatio_(3)||f.dom.matchesPixelRatio_(2)||f.dom.matchesPixelRatio_(1.5)||f.dom.matchesPixelRatio_(1)||.75:1};f.dom.matchesPixelRatio_=function(a){return f.dom.getWindow().matchMedia("(min-resolution: "+a+"dppx),(min--moz-device-pixel-ratio: "+a+"),(min-resolution: "+96*a+"dpi)").matches?a:0};f.dom.getCanvasContext2D=function(a){return a.getContext("2d")};
f.dom.DomHelper=function(a){this.document_=a||f.global.document||document};d=f.dom.DomHelper.prototype;d.getDomHelper=f.dom.getDomHelper;d.getDocument=function(){return this.document_};d.getElement=function(a){return f.dom.getElementHelper_(this.document_,a)};d.getRequiredElement=function(a){return f.dom.getRequiredElementHelper_(this.document_,a)};d.$=f.dom.DomHelper.prototype.getElement;d.getElementsByTagName=function(a,b){return(b||this.document_).getElementsByTagName(String(a))};
d.getElementsByTagNameAndClass=function(a,b,c){return f.dom.getElementsByTagNameAndClass_(this.document_,a,b,c)};d.getElementByTagNameAndClass=function(a,b,c){return f.dom.getElementByTagNameAndClass_(this.document_,a,b,c)};d.getElementsByClass=function(a,b){return f.dom.getElementsByClass(a,b||this.document_)};d.getElementByClass=function(a,b){return f.dom.getElementByClass(a,b||this.document_)};d.getRequiredElementByClass=function(a,b){return f.dom.getRequiredElementByClass(a,b||this.document_)};
d.$$=f.dom.DomHelper.prototype.getElementsByTagNameAndClass;d.setProperties=f.dom.setProperties;d.getViewportSize=function(a){return f.dom.getViewportSize(a||this.getWindow())};d.getDocumentHeight=function(){return f.dom.getDocumentHeight_(this.getWindow())};d.createDom=function(a,b,c){return f.dom.createDom_(this.document_,arguments)};d.$dom=f.dom.DomHelper.prototype.createDom;d.createElement=function(a){return f.dom.createElement_(this.document_,a)};d.createTextNode=function(a){return this.document_.createTextNode(String(a))};
d.createTable=function(a,b,c){return f.dom.createTable_(this.document_,a,b,!!c)};d.safeHtmlToNode=function(a){return f.dom.safeHtmlToNode_(this.document_,a)};d.isCss1CompatMode=function(){return f.dom.isCss1CompatMode_(this.document_)};d.getWindow=function(){return f.dom.getWindow_(this.document_)};d.getDocumentScrollElement=function(){return f.dom.getDocumentScrollElement_(this.document_)};d.getDocumentScroll=function(){return f.dom.getDocumentScroll_(this.document_)};
d.getActiveElement=function(a){return f.dom.getActiveElement(a||this.document_)};d.appendChild=f.dom.appendChild;d.append=f.dom.append;d.canHaveChildren=f.dom.canHaveChildren;d.removeChildren=f.dom.removeChildren;d.insertSiblingBefore=f.dom.insertSiblingBefore;d.insertSiblingAfter=f.dom.insertSiblingAfter;d.insertChildAt=f.dom.insertChildAt;d.removeNode=f.dom.removeNode;d.replaceNode=f.dom.replaceNode;d.flattenElement=f.dom.flattenElement;d.getChildren=f.dom.getChildren;d.getFirstElementChild=f.dom.getFirstElementChild;
d.getLastElementChild=f.dom.getLastElementChild;d.getNextElementSibling=f.dom.getNextElementSibling;d.getPreviousElementSibling=f.dom.getPreviousElementSibling;d.getNextNode=f.dom.getNextNode;d.getPreviousNode=f.dom.getPreviousNode;d.isNodeLike=f.dom.isNodeLike;d.isElement=f.dom.isElement;d.isWindow=f.dom.isWindow;d.getParentElement=f.dom.getParentElement;d.contains=f.dom.contains;d.compareNodeOrder=f.dom.compareNodeOrder;d.findCommonAncestor=f.dom.findCommonAncestor;d.getOwnerDocument=f.dom.getOwnerDocument;
d.getFrameContentDocument=f.dom.getFrameContentDocument;d.getFrameContentWindow=f.dom.getFrameContentWindow;d.setTextContent=f.dom.setTextContent;d.getOuterHtml=f.dom.getOuterHtml;d.findNode=f.dom.findNode;d.findNodes=f.dom.findNodes;d.isFocusableTabIndex=f.dom.isFocusableTabIndex;d.setFocusableTabIndex=f.dom.setFocusableTabIndex;d.isFocusable=f.dom.isFocusable;d.getTextContent=f.dom.getTextContent;d.getNodeTextLength=f.dom.getNodeTextLength;d.getNodeTextOffset=f.dom.getNodeTextOffset;
d.getNodeAtOffset=f.dom.getNodeAtOffset;d.isNodeList=f.dom.isNodeList;d.getAncestorByTagNameAndClass=f.dom.getAncestorByTagNameAndClass;d.getAncestorByClass=f.dom.getAncestorByClass;d.getAncestor=f.dom.getAncestor;d.getCanvasContext2D=f.dom.getCanvasContext2D;f.async.throwException=function(a){f.global.setTimeout(function(){throw a;},0)};f.async.nextTick=function(a,b,c){var g=a;b&&(g=f.bind(a,b));g=f.async.nextTick.wrapCallback_(g);f.isFunction(f.global.setImmediate)&&(c||f.async.nextTick.useSetImmediate_())?f.global.setImmediate(g):(f.async.nextTick.setImmediate_||(f.async.nextTick.setImmediate_=f.async.nextTick.getSetImmediateEmulator_()),f.async.nextTick.setImmediate_(g))};
f.async.nextTick.useSetImmediate_=function(){return f.global.Window&&f.global.Window.prototype&&!f.labs.userAgent.browser.isEdge()&&f.global.Window.prototype.setImmediate==f.global.setImmediate?!1:!0};
f.async.nextTick.getSetImmediateEmulator_=function(){var a=f.global.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!f.labs.userAgent.engine.isPresto()&&(a=function(){var h=f.dom.createElement("IFRAME");h.style.display="none";f.dom.safe.setIframeSrc(h);document.documentElement.appendChild(h);var k=h.contentWindow;h=k.document;h.open();f.dom.safe.documentWrite(h);h.close();var m="callImmediate"+Math.random(),t="file:"==k.location.protocol?
"*":k.location.protocol+"//"+k.location.host;h=f.bind(function(u){if(("*"==t||u.origin==t)&&u.data==m)this.port1.onmessage()},this);k.addEventListener("message",h,!1);this.port1={};this.port2={postMessage:function(){k.postMessage(m,t)}}});if("undefined"!==typeof a&&!f.labs.userAgent.browser.isIE()){var b=new a,c={},g=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var h=c.cb;c.cb=null;h()}};return function(h){g.next={cb:h};g=g.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&
"onreadystatechange"in f.dom.createElement("SCRIPT")?function(h){var k=f.dom.createElement("SCRIPT");k.onreadystatechange=function(){k.onreadystatechange=null;k.parentNode.removeChild(k);k=null;h();h=null};document.documentElement.appendChild(k)}:function(h){f.global.setTimeout(h,0)}};f.async.nextTick.wrapCallback_=f.functions.identity;f.debug.entryPointRegistry.register(function(a){f.async.nextTick.wrapCallback_=a});f.async.WorkQueue=function(){this.workTail_=this.workHead_=null};f.async.WorkQueue.DEFAULT_MAX_UNUSED=100;f.async.WorkQueue.freelist_=new f.async.FreeList(function(){return new f.async.WorkItem},function(a){a.reset()},f.async.WorkQueue.DEFAULT_MAX_UNUSED);f.async.WorkQueue.prototype.add=function(a,b){var c=f.async.WorkQueue.freelist_.get();c.set(a,b);this.workTail_?this.workTail_.next=c:(f.asserts.assert(!this.workHead_),this.workHead_=c);this.workTail_=c};
f.async.WorkQueue.prototype.remove=function(){var a=null;this.workHead_&&(a=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),a.next=null);return a};f.async.WorkItem=function(){this.next=this.scope=this.fn=null};f.async.WorkItem.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};f.async.WorkItem.prototype.reset=function(){this.next=this.scope=this.fn=null};f.ASSUME_NATIVE_PROMISE=!1;f.async.run=function(a,b){f.async.run.schedule_||f.async.run.initializeRunner_();f.async.run.workQueueScheduled_||(f.async.run.schedule_(),f.async.run.workQueueScheduled_=!0);f.async.run.workQueue_.add(a,b)};f.async.run.initializeRunner_=function(){if(f.ASSUME_NATIVE_PROMISE||f.global.Promise&&f.global.Promise.resolve){var a=f.global.Promise.resolve(void 0);f.async.run.schedule_=function(){a.then(f.async.run.processWorkQueue)}}else f.async.run.schedule_=function(){f.async.nextTick(f.async.run.processWorkQueue)}};
f.async.run.forceNextTick=function(a){f.async.run.schedule_=function(){f.async.nextTick(f.async.run.processWorkQueue);a&&a(f.async.run.processWorkQueue)}};f.async.run.workQueueScheduled_=!1;f.async.run.workQueue_=new f.async.WorkQueue;f.DEBUG&&(f.async.run.resetQueue=function(){f.async.run.workQueueScheduled_=!1;f.async.run.workQueue_=new f.async.WorkQueue});
f.async.run.processWorkQueue=function(){for(var a;a=f.async.run.workQueue_.remove();){try{a.fn.call(a.scope)}catch(b){f.async.throwException(b)}f.async.WorkQueue.freelist_.put(a)}f.async.run.workQueueScheduled_=!1};f.debug.LogRecord=function(a,b,c,g,h){this.reset(a,b,c,g,h)};f.debug.LogRecord.prototype.exception_=null;f.debug.LogRecord.ENABLE_SEQUENCE_NUMBERS=!0;f.debug.LogRecord.nextSequenceNumber_=0;f.debug.LogRecord.prototype.reset=function(a,b,c,g,h){f.debug.LogRecord.ENABLE_SEQUENCE_NUMBERS&&("number"==typeof h||f.debug.LogRecord.nextSequenceNumber_++);g||f.now();this.level_=a;this.msg_=b;delete this.exception_};f.debug.LogRecord.prototype.setLevel=function(a){this.level_=a};
f.debug.LogRecord.prototype.getMessage=function(){return this.msg_};f.debug.LogBuffer=function(){f.asserts.assert(f.debug.LogBuffer.isBufferingEnabled(),"Cannot use goog.debug.LogBuffer without defining goog.debug.LogBuffer.CAPACITY.");this.clear()};f.debug.LogBuffer.getInstance=function(){f.debug.LogBuffer.instance_||(f.debug.LogBuffer.instance_=new f.debug.LogBuffer);return f.debug.LogBuffer.instance_};f.debug.LogBuffer.CAPACITY=0;f.debug.LogBuffer.isBufferingEnabled=function(){return 0<f.debug.LogBuffer.CAPACITY};
f.debug.LogBuffer.prototype.clear=function(){this.buffer_=Array(f.debug.LogBuffer.CAPACITY);this.curIndex_=-1;this.isFull_=!1};f.debug.Logger=function(a){this.name_=a;this.handlers_=this.children_=this.level_=this.parent_=null};f.debug.Logger.ROOT_LOGGER_NAME="";f.debug.Logger.ENABLE_HIERARCHY=!0;f.debug.Logger.ENABLE_PROFILER_LOGGING=!1;f.debug.Logger.ENABLE_HIERARCHY||(f.debug.Logger.rootHandlers_=[]);f.debug.Logger.Level=function(a,b){this.name=a;this.value=b};f.debug.Logger.Level.prototype.toString=function(){return this.name};f.debug.Logger.Level.OFF=new f.debug.Logger.Level("OFF",Infinity);
f.debug.Logger.Level.SHOUT=new f.debug.Logger.Level("SHOUT",1200);f.debug.Logger.Level.SEVERE=new f.debug.Logger.Level("SEVERE",1E3);f.debug.Logger.Level.WARNING=new f.debug.Logger.Level("WARNING",900);f.debug.Logger.Level.INFO=new f.debug.Logger.Level("INFO",800);f.debug.Logger.Level.CONFIG=new f.debug.Logger.Level("CONFIG",700);f.debug.Logger.Level.FINE=new f.debug.Logger.Level("FINE",500);f.debug.Logger.Level.FINER=new f.debug.Logger.Level("FINER",400);
f.debug.Logger.Level.FINEST=new f.debug.Logger.Level("FINEST",300);f.debug.Logger.Level.ALL=new f.debug.Logger.Level("ALL",0);f.debug.Logger.Level.PREDEFINED_LEVELS=[f.debug.Logger.Level.OFF,f.debug.Logger.Level.SHOUT,f.debug.Logger.Level.SEVERE,f.debug.Logger.Level.WARNING,f.debug.Logger.Level.INFO,f.debug.Logger.Level.CONFIG,f.debug.Logger.Level.FINE,f.debug.Logger.Level.FINER,f.debug.Logger.Level.FINEST,f.debug.Logger.Level.ALL];f.debug.Logger.Level.predefinedLevelsCache_=null;
f.debug.Logger.Level.createPredefinedLevelsCache_=function(){f.debug.Logger.Level.predefinedLevelsCache_={};for(var a=0,b;b=f.debug.Logger.Level.PREDEFINED_LEVELS[a];a++)f.debug.Logger.Level.predefinedLevelsCache_[b.value]=b,f.debug.Logger.Level.predefinedLevelsCache_[b.name]=b};f.debug.Logger.Level.getPredefinedLevel=function(a){f.debug.Logger.Level.predefinedLevelsCache_||f.debug.Logger.Level.createPredefinedLevelsCache_();return f.debug.Logger.Level.predefinedLevelsCache_[a]||null};
f.debug.Logger.Level.getPredefinedLevelByValue=function(a){f.debug.Logger.Level.predefinedLevelsCache_||f.debug.Logger.Level.createPredefinedLevelsCache_();if(a in f.debug.Logger.Level.predefinedLevelsCache_)return f.debug.Logger.Level.predefinedLevelsCache_[a];for(var b=0;b<f.debug.Logger.Level.PREDEFINED_LEVELS.length;++b){var c=f.debug.Logger.Level.PREDEFINED_LEVELS[b];if(c.value<=a)return c}return null};f.debug.Logger.getLogger=function(a){return f.debug.LogManager.getLogger(a)};
f.debug.Logger.logToProfilers=function(a){if(f.debug.Logger.ENABLE_PROFILER_LOGGING){var b=f.global.msWriteProfilerMark;b?b(a):(b=f.global.console)&&b.timeStamp&&b.timeStamp(a)}};d=f.debug.Logger.prototype;d.addHandler=function(a){f.debug.LOGGING_ENABLED&&(f.debug.Logger.ENABLE_HIERARCHY?(this.handlers_||(this.handlers_=[]),this.handlers_.push(a)):(f.asserts.assert(!this.name_,"Cannot call addHandler on a non-root logger when goog.debug.Logger.ENABLE_HIERARCHY is false."),f.debug.Logger.rootHandlers_.push(a)))};
d.removeHandler=function(a){if(f.debug.LOGGING_ENABLED){var b=f.debug.Logger.ENABLE_HIERARCHY?this.handlers_:f.debug.Logger.rootHandlers_;return!!b&&f.array.remove(b,a)}return!1};d.getParent=function(){return this.parent_};d.getChildren=function(){this.children_||(this.children_={});return this.children_};
d.setLevel=function(a){f.debug.LOGGING_ENABLED&&(f.debug.Logger.ENABLE_HIERARCHY?this.level_=a:(f.asserts.assert(!this.name_,"Cannot call setLevel() on a non-root logger when goog.debug.Logger.ENABLE_HIERARCHY is false."),f.debug.Logger.rootLevel_=a))};
var Ta=function(a){if(!f.debug.LOGGING_ENABLED)return f.debug.Logger.Level.OFF;if(!f.debug.Logger.ENABLE_HIERARCHY)return f.debug.Logger.rootLevel_;if(a.level_)return a.level_;if(a.parent_)return Ta(a.parent_);f.asserts.fail("Root logger has no level set.");return null};
f.debug.Logger.prototype.log=function(a,b,c){if(f.debug.LOGGING_ENABLED&&f.debug.LOGGING_ENABLED&&a.value>=Ta(this).value){f.isFunction(b)&&(b=b());if(f.debug.LogBuffer.isBufferingEnabled()){var g=f.debug.LogBuffer.getInstance(),h=this.name_,k=(g.curIndex_+1)%f.debug.LogBuffer.CAPACITY;g.curIndex_=k;g.isFull_?(g=g.buffer_[k],g.reset(a,b,h),a=g):(g.isFull_=k==f.debug.LogBuffer.CAPACITY-1,a=g.buffer_[k]=new f.debug.LogRecord(a,b,h))}else a=new f.debug.LogRecord(a,String(b),this.name_);c&&(a.exception_=
c);f.debug.Logger.ENABLE_PROFILER_LOGGING&&f.debug.Logger.logToProfilers("log:"+a.getMessage());if(f.debug.Logger.ENABLE_HIERARCHY)for(c=this;c;){h=c;g=a;if(h.handlers_)for(k=0;b=h.handlers_[k];k++)b(g);c=c.getParent()}else for(c=0;b=f.debug.Logger.rootHandlers_[c++];)b(a)}};f.debug.Logger.prototype.warning=function(a,b){f.debug.LOGGING_ENABLED&&this.log(f.debug.Logger.Level.WARNING,a,b)};f.debug.Logger.prototype.info=function(a,b){f.debug.LOGGING_ENABLED&&this.log(f.debug.Logger.Level.INFO,a,b)};
f.debug.Logger.prototype.fine=function(a,b){f.debug.LOGGING_ENABLED&&this.log(f.debug.Logger.Level.FINE,a,b)};f.debug.LogManager={};f.debug.LogManager.loggers_={};f.debug.LogManager.rootLogger_=null;f.debug.LogManager.initialize=function(){f.debug.LogManager.rootLogger_||(f.debug.LogManager.rootLogger_=new f.debug.Logger(f.debug.Logger.ROOT_LOGGER_NAME),f.debug.LogManager.loggers_[f.debug.Logger.ROOT_LOGGER_NAME]=f.debug.LogManager.rootLogger_,f.debug.LogManager.rootLogger_.setLevel(f.debug.Logger.Level.CONFIG))};
f.debug.LogManager.getLoggers=function(){return f.debug.LogManager.loggers_};f.debug.LogManager.getRoot=function(){f.debug.LogManager.initialize();return f.debug.LogManager.rootLogger_};f.debug.LogManager.getLogger=function(a){f.debug.LogManager.initialize();return f.debug.LogManager.loggers_[a]||f.debug.LogManager.createLogger_(a)};
f.debug.LogManager.createFunctionForCatchErrors=function(a){return function(b){var c=a||f.debug.LogManager.getRoot();f.debug.LOGGING_ENABLED&&c.log(f.debug.Logger.Level.SEVERE,"Error: "+b.message+" ("+b.fileName+" @ Line: "+b.line+")",void 0)}};
f.debug.LogManager.createLogger_=function(a){var b=new f.debug.Logger(a);if(f.debug.Logger.ENABLE_HIERARCHY){var c=a.lastIndexOf("."),g=a.substr(c+1);c=f.debug.LogManager.getLogger(a.substr(0,c));c.getChildren()[g]=b;b.parent_=c}return f.debug.LogManager.loggers_[a]=b};f.json={};f.json.USE_NATIVE_JSON=!1;f.json.TRY_NATIVE_JSON=!1;f.json.isValid=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))};f.json.errorLogger_=f.nullFunction;f.json.setErrorLogger=function(a){f.json.errorLogger_=a};
f.json.parse=f.json.USE_NATIVE_JSON?f.global.JSON.parse:function(a){if(f.json.TRY_NATIVE_JSON)try{return f.global.JSON.parse(a)}catch(g){var b=g}a=String(a);if(f.json.isValid(a))try{var c=eval("("+a+")");b&&f.json.errorLogger_("Invalid JSON: "+a,b);return c}catch(g){}throw Error("Invalid JSON string: "+a);};f.json.serialize=f.json.USE_NATIVE_JSON?f.global.JSON.stringify:function(a,b){return(new f.json.Serializer(b)).serialize(a)};f.json.Serializer=function(a){this.replacer_=a};
f.json.Serializer.prototype.serialize=function(a){var b=[];Ua(this,a,b);return b.join("")};
var Ua=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(f.isArray(b)){var g=b;b=g.length;c.push("[");for(var h="",k=0;k<b;k++)c.push(h),h=g[k],Ua(a,a.replacer_?a.replacer_.call(g,String(k),h):h,c),h=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");k="";for(g in b)Object.prototype.hasOwnProperty.call(b,g)&&(h=b[g],"function"!=typeof h&&(c.push(k),Va(g,c),c.push(":"),Ua(a,a.replacer_?a.replacer_.call(b,g,
h):h,c),k=","));c.push("}");return}}switch(typeof b){case "string":Va(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}};f.json.Serializer.charToJsonCharCache_={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"};
f.json.Serializer.charsToReplace_=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var Va=function(a,b){b.push('"',a.replace(f.json.Serializer.charsToReplace_,function(c){var g=f.json.Serializer.charToJsonCharCache_[c];g||(g="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),f.json.Serializer.charToJsonCharCache_[c]=g);return g}),'"')};f.json.hybrid={};f.json.hybrid.stringify=f.json.USE_NATIVE_JSON?f.global.JSON.stringify:function(a){if(f.global.JSON)try{return f.global.JSON.stringify(a)}catch(b){}return f.json.serialize(a)};f.json.hybrid.parse_=function(a){var b=f.json.parse;if(f.global.JSON)try{var c=f.global.JSON.parse(a);f.asserts.assert("object"==typeof c);return c}catch(g){}return b(a)};f.json.hybrid.parse=f.json.USE_NATIVE_JSON?f.global.JSON.parse:function(a){return f.json.hybrid.parse_(a)};f.log={};f.log.ENABLED=f.debug.LOGGING_ENABLED;f.log.ROOT_LOGGER_NAME=f.debug.Logger.ROOT_LOGGER_NAME;f.log.Logger=f.debug.Logger;f.log.Level=f.debug.Logger.Level;f.log.LogRecord=f.debug.LogRecord;f.log.getLogger=function(a){return f.log.ENABLED?f.debug.LogManager.getLogger(a):null};f.log.addHandler=function(a){f.log.ENABLED&&a&&a.addHandler(void 0)};f.log.removeHandler=function(a){return f.log.ENABLED&&a?a.removeHandler(void 0):!1};f.log.log=function(a,b,c,g){f.log.ENABLED&&a&&a.log(b,c,g)};
f.log.error=function(a,b,c){f.log.ENABLED&&a&&f.debug.LOGGING_ENABLED&&a.log(f.debug.Logger.Level.SEVERE,b,c)};f.log.warning=function(a,b){f.log.ENABLED&&a&&a.warning(b,void 0)};f.log.info=function(a,b,c){f.log.ENABLED&&a&&a.info(b,c)};f.log.fine=function(a,b){f.log.ENABLED&&a&&a.fine(b,void 0)};f.net={};f.net.ErrorCode={NO_ERROR:0,ACCESS_DENIED:1,FILE_NOT_FOUND:2,FF_SILENT_ERROR:3,CUSTOM_ERROR:4,EXCEPTION:5,HTTP_ERROR:6,ABORT:7,TIMEOUT:8,OFFLINE:9};
f.net.ErrorCode.getDebugMessage=function(a){switch(a){case f.net.ErrorCode.NO_ERROR:return"No Error";case f.net.ErrorCode.ACCESS_DENIED:return"Access denied to content document";case f.net.ErrorCode.FILE_NOT_FOUND:return"File not found";case f.net.ErrorCode.FF_SILENT_ERROR:return"Firefox silently errored";case f.net.ErrorCode.CUSTOM_ERROR:return"Application custom error";case f.net.ErrorCode.EXCEPTION:return"An exception occurred";case f.net.ErrorCode.HTTP_ERROR:return"Http response at 400 or 500 level";
case f.net.ErrorCode.ABORT:return"Request was aborted";case f.net.ErrorCode.TIMEOUT:return"Request timed out";case f.net.ErrorCode.OFFLINE:return"The resource is not available offline";default:return"Unrecognized error code"}};f.net.EventType={COMPLETE:"complete",SUCCESS:"success",ERROR:"error",ABORT:"abort",READY:"ready",READY_STATE_CHANGE:"readystatechange",TIMEOUT:"timeout",INCREMENTAL_DATA:"incrementaldata",PROGRESS:"progress",DOWNLOAD_PROGRESS:"downloadprogress",UPLOAD_PROGRESS:"uploadprogress"};f.net.HttpStatus={CONTINUE:100,SWITCHING_PROTOCOLS:101,OK:200,CREATED:201,ACCEPTED:202,NON_AUTHORITATIVE_INFORMATION:203,NO_CONTENT:204,RESET_CONTENT:205,PARTIAL_CONTENT:206,MULTI_STATUS:207,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,USE_PROXY:305,TEMPORARY_REDIRECT:307,PERMANENT_REDIRECT:308,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTHENTICATION_REQUIRED:407,REQUEST_TIMEOUT:408,
CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,REQUEST_ENTITY_TOO_LARGE:413,REQUEST_URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,REQUEST_RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,UNPROCESSABLE_ENTITY:422,LOCKED:423,FAILED_DEPENDENCY:424,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,REQUEST_HEADER_FIELDS_TOO_LARGE:431,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505,INSUFFICIENT_STORAGE:507,
NETWORK_AUTHENTICATION_REQUIRED:511,QUIRK_IE_NO_CONTENT:1223};f.net.HttpStatus.isSuccess=function(a){switch(a){case f.net.HttpStatus.OK:case f.net.HttpStatus.CREATED:case f.net.HttpStatus.ACCEPTED:case f.net.HttpStatus.NO_CONTENT:case f.net.HttpStatus.PARTIAL_CONTENT:case f.net.HttpStatus.NOT_MODIFIED:case f.net.HttpStatus.QUIRK_IE_NO_CONTENT:return!0;default:return!1}};f.net.XhrLike=function(){};d=f.net.XhrLike.prototype;d.open=function(){};d.send=function(){};d.abort=function(){};d.setRequestHeader=function(){};d.getResponseHeader=function(){};d.getAllResponseHeaders=function(){};f.net.XmlHttpFactory=function(){};f.net.XmlHttpFactory.prototype.cachedOptions_=null;f.net.XmlHttpFactory.prototype.getOptions=function(){var a;(a=this.cachedOptions_)||(a={},Wa(this)&&(a[f.net.XmlHttp.OptionType.USE_NULL_FUNCTION]=!0,a[f.net.XmlHttp.OptionType.LOCAL_REQUEST_ERROR]=!0),a=this.cachedOptions_=a);return a};f.net.WrapperXmlHttpFactory=function(a,b){this.xhrFactory_=a;this.optionsFactory_=b};f.inherits(f.net.WrapperXmlHttpFactory,f.net.XmlHttpFactory);f.net.WrapperXmlHttpFactory.prototype.createInstance=function(){return this.xhrFactory_()};f.net.WrapperXmlHttpFactory.prototype.getOptions=function(){return this.optionsFactory_()};f.net.XmlHttp=function(){return f.net.XmlHttp.factory_.createInstance()};f.net.XmlHttp.ASSUME_NATIVE_XHR=!1;f.net.XmlHttpDefines={};f.net.XmlHttpDefines.ASSUME_NATIVE_XHR=!1;f.net.XmlHttp.getOptions=function(){return f.net.XmlHttp.factory_.getOptions()};f.net.XmlHttp.OptionType={USE_NULL_FUNCTION:0,LOCAL_REQUEST_ERROR:1};f.net.XmlHttp.ReadyState={UNINITIALIZED:0,LOADING:1,LOADED:2,INTERACTIVE:3,COMPLETE:4};
f.net.XmlHttp.setFactory=function(a,b){f.net.XmlHttp.setGlobalFactory(new f.net.WrapperXmlHttpFactory(f.asserts.assert(a),f.asserts.assert(b)))};f.net.XmlHttp.setGlobalFactory=function(a){f.net.XmlHttp.factory_=a};f.net.DefaultXmlHttpFactory=function(){};f.inherits(f.net.DefaultXmlHttpFactory,f.net.XmlHttpFactory);f.net.DefaultXmlHttpFactory.prototype.createInstance=function(){var a=Wa(this);return a?new ActiveXObject(a):new XMLHttpRequest};
var Wa=function(a){if(f.net.XmlHttp.ASSUME_NATIVE_XHR||f.net.XmlHttpDefines.ASSUME_NATIVE_XHR)return"";if(!a.ieProgId_&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var g=b[c];try{return new ActiveXObject(g),a.ieProgId_=g}catch(h){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.ieProgId_};f.net.XmlHttp.setGlobalFactory(new f.net.DefaultXmlHttpFactory);f.promise={};f.promise.Resolver=function(){};f.Thenable=function(){};f.Thenable.prototype.then=function(){};f.Thenable.IMPLEMENTED_BY_PROP="$goog_Thenable";f.Thenable.addImplementation=function(a){a.prototype[f.Thenable.IMPLEMENTED_BY_PROP]=!0};f.Thenable.isImplementedBy=function(a){if(!a)return!1;try{return!!a[f.Thenable.IMPLEMENTED_BY_PROP]}catch(b){return!1}};f.Promise=function(a,b){this.state_=f.Promise.State_.PENDING;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.executing_=!1;0<f.Promise.UNHANDLED_REJECTION_DELAY?this.unhandledRejectionId_=0:0==f.Promise.UNHANDLED_REJECTION_DELAY&&(this.hadUnhandledRejection_=!1);f.Promise.LONG_STACK_TRACES&&(this.stack_=[],Xa(this,Error("created")),this.currentStep_=0);if(a!=f.nullFunction)try{var c=this;a.call(b,function(g){X(c,f.Promise.State_.FULFILLED,g)},function(g){if(f.DEBUG&&
!(g instanceof f.Promise.CancellationError))try{if(g instanceof Error)throw g;throw Error("Promise rejected.");}catch(h){}X(c,f.Promise.State_.REJECTED,g)})}catch(g){X(this,f.Promise.State_.REJECTED,g)}};f.Promise.LONG_STACK_TRACES=!1;f.Promise.UNHANDLED_REJECTION_DELAY=0;f.Promise.State_={PENDING:0,BLOCKED:1,FULFILLED:2,REJECTED:3};f.Promise.CallbackEntry_=function(){this.next=this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};
f.Promise.CallbackEntry_.prototype.reset=function(){this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};f.Promise.DEFAULT_MAX_UNUSED=100;f.Promise.freelist_=new f.async.FreeList(function(){return new f.Promise.CallbackEntry_},function(a){a.reset()},f.Promise.DEFAULT_MAX_UNUSED);f.Promise.getCallbackEntry_=function(a,b,c){var g=f.Promise.freelist_.get();g.onFulfilled=a;g.onRejected=b;g.context=c;return g};f.Promise.returnEntry_=function(a){f.Promise.freelist_.put(a)};
f.Promise.resolve=function(a){if(a instanceof f.Promise)return a;var b=new f.Promise(f.nullFunction);X(b,f.Promise.State_.FULFILLED,a);return b};f.Promise.reject=function(a){return new f.Promise(function(b,c){c(a)})};f.Promise.resolveThen_=function(a,b,c){f.Promise.maybeThen_(a,b,c,null)||f.async.run(f.partial(b,a))};f.Promise.race=function(a){return new f.Promise(function(b,c){a.length||b(void 0);for(var g=0,h;g<a.length;g++)h=a[g],f.Promise.resolveThen_(h,b,c)})};
f.Promise.all=function(a){return new f.Promise(function(b,c){var g=a.length,h=[];if(g)for(var k=function(w,z){g--;h[w]=z;0==g&&b(h)},m=function(w){c(w)},t=0,u;t<a.length;t++)u=a[t],f.Promise.resolveThen_(u,f.partial(k,t),m);else b(h)})};
f.Promise.allSettled=function(a){return new f.Promise(function(b){var c=a.length,g=[];if(c)for(var h=function(t,u,w){c--;g[t]=u?{fulfilled:!0,value:w}:{fulfilled:!1,reason:w};0==c&&b(g)},k=0,m;k<a.length;k++)m=a[k],f.Promise.resolveThen_(m,f.partial(h,k,!0),f.partial(h,k,!1));else b(g)})};
f.Promise.firstFulfilled=function(a){return new f.Promise(function(b,c){var g=a.length,h=[];if(g)for(var k=function(w){b(w)},m=function(w,z){g--;h[w]=z;0==g&&c(h)},t=0,u;t<a.length;t++)u=a[t],f.Promise.resolveThen_(u,k,f.partial(m,t));else b(void 0)})};f.Promise.withResolver=function(){var a,b,c=new f.Promise(function(g,h){a=g;b=h});return new f.Promise.Resolver_(c,a,b)};
f.Promise.prototype.then=function(a,b,c){null!=a&&f.asserts.assertFunction(a,"opt_onFulfilled should be a function.");null!=b&&f.asserts.assertFunction(b,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");f.Promise.LONG_STACK_TRACES&&Xa(this,Error("then"));return Ya(this,f.isFunction(a)?a:null,f.isFunction(b)?b:null,c)};f.Thenable.addImplementation(f.Promise);
var Za=function(a,b){f.Promise.LONG_STACK_TRACES&&Xa(a,Error("thenCatch"));return Ya(a,null,b,void 0)};f.Promise.prototype.cancel=function(a){if(this.state_==f.Promise.State_.PENDING){var b=new f.Promise.CancellationError(a);f.async.run(function(){$a(this,b)},this)}};
var $a=function(a,b){if(a.state_==f.Promise.State_.PENDING)if(a.parent_){var c=a.parent_;if(c.callbackEntries_){for(var g=0,h=null,k=null,m=c.callbackEntries_;m&&(m.always||(g++,m.child==a&&(h=m),!(h&&1<g)));m=m.next)h||(k=m);h&&(c.state_==f.Promise.State_.PENDING&&1==g?$a(c,b):(k?(g=k,f.asserts.assert(c.callbackEntries_),f.asserts.assert(null!=g),g.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=g),g.next=g.next.next):ab(c),db(c,h,f.Promise.State_.REJECTED,b)))}a.parent_=null}else X(a,f.Promise.State_.REJECTED,
b)},fb=function(a,b){a.callbackEntries_||a.state_!=f.Promise.State_.FULFILLED&&a.state_!=f.Promise.State_.REJECTED||eb(a);f.asserts.assert(null!=b.onFulfilled);a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=b;a.callbackEntriesTail_=b},Ya=function(a,b,c,g){var h=f.Promise.getCallbackEntry_(null,null,null);h.child=new f.Promise(function(k,m){h.onFulfilled=b?function(t){try{var u=b.call(g,t);k(u)}catch(w){m(w)}}:k;h.onRejected=c?function(t){try{var u=c.call(g,t);void 0===u&&
t instanceof f.Promise.CancellationError?m(t):k(u)}catch(w){m(w)}}:m});h.child.parent_=a;fb(a,h);return h.child};f.Promise.prototype.unblockAndFulfill_=function(a){f.asserts.assert(this.state_==f.Promise.State_.BLOCKED);this.state_=f.Promise.State_.PENDING;X(this,f.Promise.State_.FULFILLED,a)};f.Promise.prototype.unblockAndReject_=function(a){f.asserts.assert(this.state_==f.Promise.State_.BLOCKED);this.state_=f.Promise.State_.PENDING;X(this,f.Promise.State_.REJECTED,a)};
var X=function(a,b,c){a.state_==f.Promise.State_.PENDING&&(a===c&&(b=f.Promise.State_.REJECTED,c=new TypeError("Promise cannot resolve to itself")),a.state_=f.Promise.State_.BLOCKED,f.Promise.maybeThen_(c,a.unblockAndFulfill_,a.unblockAndReject_,a)||(a.result_=c,a.state_=b,a.parent_=null,eb(a),b!=f.Promise.State_.REJECTED||c instanceof f.Promise.CancellationError||f.Promise.addUnhandledRejection_(a,c)))};
f.Promise.maybeThen_=function(a,b,c,g){if(a instanceof f.Promise)return null!=b&&f.asserts.assertFunction(b,"opt_onFulfilled should be a function."),null!=c&&f.asserts.assertFunction(c,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?"),f.Promise.LONG_STACK_TRACES&&Xa(a,Error("then")),fb(a,f.Promise.getCallbackEntry_(b||f.nullFunction,c||null,g)),!0;if(f.Thenable.isImplementedBy(a))return a.then(b,c,g),!0;if(f.isObject(a))try{var h=a.then;
if(f.isFunction(h))return f.Promise.tryThen_(a,h,b,c,g),!0}catch(k){return c.call(g,k),!0}return!1};f.Promise.tryThen_=function(a,b,c,g,h){var k=!1,m=function(u){k||(k=!0,c.call(h,u))},t=function(u){k||(k=!0,g.call(h,u))};try{b.call(a,m,t)}catch(u){t(u)}};
var eb=function(a){a.executing_||(a.executing_=!0,f.async.run(a.executeCallbacks_,a))},ab=function(a){var b=null;a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);null!=b&&f.asserts.assert(null!=b.onFulfilled);return b};f.Promise.prototype.executeCallbacks_=function(){for(var a;a=ab(this);)f.Promise.LONG_STACK_TRACES&&this.currentStep_++,db(this,a,this.state_,this.result_);this.executing_=!1};
var db=function(a,b,c,g){if(c==f.Promise.State_.REJECTED&&b.onRejected&&!b.always)if(0<f.Promise.UNHANDLED_REJECTION_DELAY)for(;a&&a.unhandledRejectionId_;a=a.parent_)f.global.clearTimeout(a.unhandledRejectionId_),a.unhandledRejectionId_=0;else if(0==f.Promise.UNHANDLED_REJECTION_DELAY)for(;a&&a.hadUnhandledRejection_;a=a.parent_)a.hadUnhandledRejection_=!1;if(b.child)b.child.parent_=null,f.Promise.invokeCallback_(b,c,g);else try{b.always?b.onFulfilled.call(b.context):f.Promise.invokeCallback_(b,
c,g)}catch(h){f.Promise.handleRejection_.call(null,h)}f.Promise.returnEntry_(b)};f.Promise.invokeCallback_=function(a,b,c){b==f.Promise.State_.FULFILLED?a.onFulfilled.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
var Xa=function(a,b){if(f.Promise.LONG_STACK_TRACES&&"string"===typeof b.stack){var c=b.stack.split("\n",4)[3];b=b.message;b+=Array(11-b.length).join(" ");a.stack_.push(b+c)}},gb=function(a,b){if(f.Promise.LONG_STACK_TRACES&&b&&"string"===typeof b.stack&&a.stack_.length){for(var c=["Promise trace:"],g=a;g;g=g.parent_){for(var h=a.currentStep_;0<=h;h--)c.push(g.stack_[h]);c.push("Value: ["+(g.state_==f.Promise.State_.REJECTED?"REJECTED":"FULFILLED")+"] <"+String(g.result_)+">")}b.stack+="\n\n"+c.join("\n")}};
f.Promise.addUnhandledRejection_=function(a,b){0<f.Promise.UNHANDLED_REJECTION_DELAY?a.unhandledRejectionId_=f.global.setTimeout(function(){gb(a,b);f.Promise.handleRejection_.call(null,b)},f.Promise.UNHANDLED_REJECTION_DELAY):0==f.Promise.UNHANDLED_REJECTION_DELAY&&(a.hadUnhandledRejection_=!0,f.async.run(function(){a.hadUnhandledRejection_&&(gb(a,b),f.Promise.handleRejection_.call(null,b))}))};f.Promise.handleRejection_=f.async.throwException;
f.Promise.setUnhandledRejectionHandler=function(a){f.Promise.handleRejection_=a};f.Promise.CancellationError=function(a){f.debug.Error.call(this,a)};f.inherits(f.Promise.CancellationError,f.debug.Error);f.Promise.CancellationError.prototype.name="cancel";f.Promise.Resolver_=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};f.Timer=function(a,b){f.events.EventTarget.call(this);this.interval_=a||1;this.timerObject_=b||f.Timer.defaultTimerObject;this.boundTick_=f.bind(this.tick_,this);this.last_=f.now()};f.inherits(f.Timer,f.events.EventTarget);f.Timer.MAX_TIMEOUT_=2147483647;f.Timer.INVALID_TIMEOUT_ID_=-1;f.Timer.prototype.enabled=!1;f.Timer.defaultTimerObject=f.global;f.Timer.intervalScale=.8;d=f.Timer.prototype;d.timer_=null;
d.setInterval=function(a){this.interval_=a;this.timer_&&this.enabled?(this.stop(),this.start()):this.timer_&&this.stop()};d.tick_=function(){if(this.enabled){var a=f.now()-this.last_;0<a&&a<this.interval_*f.Timer.intervalScale?this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_-a):(this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null),this.dispatchEvent(f.Timer.TICK),this.enabled&&(this.stop(),this.start()))}};
d.start=function(){this.enabled=!0;this.timer_||(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_),this.last_=f.now())};d.stop=function(){this.enabled=!1;this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null)};d.disposeInternal=function(){f.Timer.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};f.Timer.TICK="tick";
f.Timer.callOnce=function(a,b,c){if(f.isFunction(a))c&&(a=f.bind(a,c));else if(a&&"function"==typeof a.handleEvent)a=f.bind(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(b)>f.Timer.MAX_TIMEOUT_?f.Timer.INVALID_TIMEOUT_ID_:f.Timer.defaultTimerObject.setTimeout(a,b||0)};f.Timer.clear=function(a){f.Timer.defaultTimerObject.clearTimeout(a)};
f.Timer.promise=function(a,b){var c=null;return Za(new f.Promise(function(g,h){c=f.Timer.callOnce(function(){g(b)},a);c==f.Timer.INVALID_TIMEOUT_ID_&&h(Error("Failed to schedule timer."))}),function(g){f.Timer.clear(c);throw g;})};f.net.XhrIo=function(a){f.events.EventTarget.call(this);this.headers=new f.structs.Map;this.xmlHttpFactory_=a||null;this.active_=!1;this.xhrOptions_=this.xhr_=null;this.lastError_=this.lastMethod_=this.lastUri_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.timeoutId_=null;this.responseType_=f.net.XhrIo.ResponseType.DEFAULT;this.useXhr2Timeout_=this.progressEventsEnabled_=this.withCredentials_=!1};f.inherits(f.net.XhrIo,f.events.EventTarget);
f.net.XhrIo.ResponseType={DEFAULT:"",TEXT:"text",DOCUMENT:"document",BLOB:"blob",ARRAY_BUFFER:"arraybuffer"};f.net.XhrIo.prototype.logger_=f.log.getLogger("goog.net.XhrIo");f.net.XhrIo.CONTENT_TYPE_HEADER="Content-Type";f.net.XhrIo.CONTENT_TRANSFER_ENCODING="Content-Transfer-Encoding";f.net.XhrIo.HTTP_SCHEME_PATTERN=/^https?$/i;f.net.XhrIo.METHODS_WITH_FORM_DATA=["POST","PUT"];f.net.XhrIo.FORM_CONTENT_TYPE="application/x-www-form-urlencoded;charset=utf-8";f.net.XhrIo.XHR2_TIMEOUT_="timeout";
f.net.XhrIo.XHR2_ON_TIMEOUT_="ontimeout";f.net.XhrIo.sendInstances_=[];f.net.XhrIo.send=function(a,b,c,g,h,k,m){var t=new f.net.XhrIo;f.net.XhrIo.sendInstances_.push(t);b&&t.listen(f.net.EventType.COMPLETE,b);t.listenOnce(f.net.EventType.READY,t.cleanupSend_);k&&(t.timeoutInterval_=Math.max(0,k));m&&(t.withCredentials_=m);t.send(a,c,g,h);return t};f.net.XhrIo.cleanup=function(){for(var a=f.net.XhrIo.sendInstances_;a.length;)a.pop().dispose()};
f.net.XhrIo.protectEntryPoints=function(a){f.net.XhrIo.prototype.onReadyStateChangeEntryPoint_=a.protectEntryPoint(f.net.XhrIo.prototype.onReadyStateChangeEntryPoint_)};f.net.XhrIo.prototype.cleanupSend_=function(){this.dispose();f.array.remove(f.net.XhrIo.sendInstances_,this)};
f.net.XhrIo.prototype.send=function(a,b,c,g){if(this.xhr_)throw Error("[goog.net.XhrIo] Object is active with another request="+this.lastUri_+"; newUri="+a);b=b?b.toUpperCase():"GET";this.lastUri_=a;this.lastError_="";this.lastMethod_=b;this.errorDispatched_=!1;this.active_=!0;this.xhr_=this.xmlHttpFactory_?this.xmlHttpFactory_.createInstance():f.net.XmlHttp();this.xhrOptions_=this.xmlHttpFactory_?this.xmlHttpFactory_.getOptions():f.net.XmlHttp.getOptions();this.xhr_.onreadystatechange=f.bind(this.onReadyStateChange_,
this);this.progressEventsEnabled_&&"onprogress"in this.xhr_&&(this.xhr_.onprogress=f.bind(function(k){this.onProgressHandler_(k,!0)},this),this.xhr_.upload&&(this.xhr_.upload.onprogress=f.bind(this.onProgressHandler_,this)));try{f.log.fine(this.logger_,Y(this,"Opening Xhr")),this.inOpen_=!0,this.xhr_.open(b,String(a),!0),this.inOpen_=!1}catch(k){f.log.fine(this.logger_,Y(this,"Error opening Xhr: "+k.message));this.error_(f.net.ErrorCode.EXCEPTION,k);return}a=c||"";var h=this.headers.clone();g&&f.structs.forEach(g,
function(k,m){h.set(m,k)});g=f.array.find(h.getKeys(),f.net.XhrIo.isContentTypeHeader_);c=f.global.FormData&&a instanceof f.global.FormData;!f.array.contains(f.net.XhrIo.METHODS_WITH_FORM_DATA,b)||g||c||h.set(f.net.XhrIo.CONTENT_TYPE_HEADER,f.net.XhrIo.FORM_CONTENT_TYPE);h.forEach(function(k,m){this.xhr_.setRequestHeader(m,k)},this);this.responseType_&&(this.xhr_.responseType=this.responseType_);"withCredentials"in this.xhr_&&this.xhr_.withCredentials!==this.withCredentials_&&(this.xhr_.withCredentials=
this.withCredentials_);try{hb(this),0<this.timeoutInterval_&&(this.useXhr2Timeout_=f.net.XhrIo.shouldUseXhr2Timeout_(this.xhr_),f.log.fine(this.logger_,Y(this,"Will abort after "+this.timeoutInterval_+"ms if incomplete, xhr2 "+this.useXhr2Timeout_)),this.useXhr2Timeout_?(this.xhr_[f.net.XhrIo.XHR2_TIMEOUT_]=this.timeoutInterval_,this.xhr_[f.net.XhrIo.XHR2_ON_TIMEOUT_]=f.bind(this.timeout_,this)):this.timeoutId_=f.Timer.callOnce(this.timeout_,this.timeoutInterval_,this)),f.log.fine(this.logger_,Y(this,
"Sending request")),this.inSend_=!0,this.xhr_.send(a),this.inSend_=!1}catch(k){f.log.fine(this.logger_,Y(this,"Send error: "+k.message)),this.error_(f.net.ErrorCode.EXCEPTION,k)}};f.net.XhrIo.shouldUseXhr2Timeout_=function(a){return f.userAgent.IE&&f.userAgent.isVersionOrHigher(9)&&"number"===typeof a[f.net.XhrIo.XHR2_TIMEOUT_]&&void 0!==a[f.net.XhrIo.XHR2_ON_TIMEOUT_]};f.net.XhrIo.isContentTypeHeader_=function(a){return f.string.caseInsensitiveEquals(f.net.XhrIo.CONTENT_TYPE_HEADER,a)};
f.net.XhrIo.prototype.timeout_=function(){"undefined"!=typeof f&&this.xhr_&&(this.lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",f.log.fine(this.logger_,Y(this,this.lastError_)),this.dispatchEvent(f.net.EventType.TIMEOUT),this.abort(f.net.ErrorCode.TIMEOUT))};f.net.XhrIo.prototype.error_=function(a,b){this.active_=!1;this.xhr_&&(this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1);this.lastError_=b;ib(this);jb(this)};
var ib=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent(f.net.EventType.COMPLETE),a.dispatchEvent(f.net.EventType.ERROR))};f.net.XhrIo.prototype.abort=function(){this.xhr_&&this.active_&&(f.log.fine(this.logger_,Y(this,"Aborting")),this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1,this.dispatchEvent(f.net.EventType.COMPLETE),this.dispatchEvent(f.net.EventType.ABORT),jb(this))};
f.net.XhrIo.prototype.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),jb(this,!0));f.net.XhrIo.superClass_.disposeInternal.call(this)};f.net.XhrIo.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)kb(this);else this.onReadyStateChangeEntryPoint_()};f.net.XhrIo.prototype.onReadyStateChangeEntryPoint_=function(){kb(this)};
var kb=function(a){if(a.active_&&"undefined"!=typeof f)if(a.xhrOptions_[f.net.XmlHttp.OptionType.LOCAL_REQUEST_ERROR]&&Z(a)==f.net.XmlHttp.ReadyState.COMPLETE&&2==a.getStatus())f.log.fine(a.logger_,Y(a,"Local request error detected and ignored"));else if(a.inSend_&&Z(a)==f.net.XmlHttp.ReadyState.COMPLETE)f.Timer.callOnce(a.onReadyStateChange_,0,a);else if(a.dispatchEvent(f.net.EventType.READY_STATE_CHANGE),lb(a)){f.log.fine(a.logger_,Y(a,"Request complete"));a.active_=!1;try{if(a.isSuccess())a.dispatchEvent(f.net.EventType.COMPLETE),
a.dispatchEvent(f.net.EventType.SUCCESS);else{try{var b=Z(a)>f.net.XmlHttp.ReadyState.LOADED?a.xhr_.statusText:""}catch(c){f.log.fine(a.logger_,"Can not get status: "+c.message),b=""}a.lastError_=b+" ["+a.getStatus()+"]";ib(a)}}finally{jb(a)}}};
f.net.XhrIo.prototype.onProgressHandler_=function(a,b){f.asserts.assert(a.type===f.net.EventType.PROGRESS,"goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(f.net.XhrIo.buildProgressEvent_(a,f.net.EventType.PROGRESS));this.dispatchEvent(f.net.XhrIo.buildProgressEvent_(a,b?f.net.EventType.DOWNLOAD_PROGRESS:f.net.EventType.UPLOAD_PROGRESS))};f.net.XhrIo.buildProgressEvent_=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}};
var jb=function(a,b){if(a.xhr_){hb(a);var c=a.xhr_,g=a.xhrOptions_[f.net.XmlHttp.OptionType.USE_NULL_FUNCTION]?f.nullFunction:null;a.xhr_=null;a.xhrOptions_=null;b||a.dispatchEvent(f.net.EventType.READY);try{c.onreadystatechange=g}catch(h){f.log.error(a.logger_,"Problem encountered resetting onreadystatechange: "+h.message)}}},hb=function(a){a.xhr_&&a.useXhr2Timeout_&&(a.xhr_[f.net.XhrIo.XHR2_ON_TIMEOUT_]=null);a.timeoutId_&&(f.Timer.clear(a.timeoutId_),a.timeoutId_=null)},lb=function(a){return Z(a)==
f.net.XmlHttp.ReadyState.COMPLETE};f.net.XhrIo.prototype.isSuccess=function(){var a=this.getStatus(),b;if(!(b=f.net.HttpStatus.isSuccess(a))){if(a=0===a)a=f.uri.utils.getEffectiveScheme(String(this.lastUri_)),a=!f.net.XhrIo.HTTP_SCHEME_PATTERN.test(a);b=a}return b};var Z=function(a){return a.xhr_?a.xhr_.readyState:f.net.XmlHttp.ReadyState.UNINITIALIZED};f.net.XhrIo.prototype.getStatus=function(){try{return Z(this)>f.net.XmlHttp.ReadyState.LOADED?this.xhr_.status:-1}catch(a){return-1}};
f.net.XhrIo.prototype.getResponseHeader=function(a){if(this.xhr_&&lb(this))return a=this.xhr_.getResponseHeader(a),null===a?void 0:a};f.net.XhrIo.prototype.getAllResponseHeaders=function(){return this.xhr_&&lb(this)?this.xhr_.getAllResponseHeaders()||"":""};var Y=function(a,b){return b+" ["+a.lastMethod_+" "+a.lastUri_+" "+a.getStatus()+"]"};f.debug.entryPointRegistry.register(function(a){f.net.XhrIo.prototype.onReadyStateChangeEntryPoint_=a(f.net.XhrIo.prototype.onReadyStateChangeEntryPoint_)});f.craw.AppAuthenticator=function(){};f.craw.AppAuthenticator.UBERAUTH_URL_="https://www.google.com/accounts/OAuthLogin?issueuberauth=1";
