UNPKG

@cf-platform/cim

Version:

消息队列库

7 lines 184 kB
"use strict";(function(){function r(e,t,o){function n(h,c){if(!t[h]){if(!e[h]){var _=typeof require=="function"&&require;if(!c&&_)return _(h,!0);if(g)return g(h,!0);var m=new Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m}var E=t[h]={exports:{}};e[h][0].call(E.exports,function(w){var B=e[h][1][w];return n(B||w)},E,E.exports,r,e,t,o)}return t[h].exports}for(var g=typeof require=="function"&&require,l=0;l<o.length;l++)n(o[l]);return n}return r})()({1:[function(r,e,t){var o=r("google-protobuf"),n=o,g=Function("return this")();n.exportSymbol("proto.com.farsunset.cim.sdk.web.model.ReplyBody",null,g),proto.com.farsunset.cim.sdk.web.model.ReplyBody=function(l){o.Message.initialize(this,l,0,-1,null,null)},n.inherits(proto.com.farsunset.cim.sdk.web.model.ReplyBody,o.Message),n.DEBUG&&!COMPILED&&(proto.com.farsunset.cim.sdk.web.model.ReplyBody.displayName="proto.com.farsunset.cim.sdk.web.model.ReplyBody"),o.Message.GENERATE_TO_OBJECT&&(proto.com.farsunset.cim.sdk.web.model.ReplyBody.prototype.toObject=function(l){return proto.com.farsunset.cim.sdk.web.model.ReplyBody.toObject(l,this)},proto.com.farsunset.cim.sdk.web.model.ReplyBody.toObject=function(l,h){var c,_={key:o.Message.getFieldWithDefault(h,1,""),code:o.Message.getFieldWithDefault(h,2,""),message:o.Message.getFieldWithDefault(h,3,""),timestamp:o.Message.getFieldWithDefault(h,4,0),dataMap:(c=h.getDataMap())?c.toObject(l,void 0):[]};return l&&(_.$jspbMessageInstance=h),_}),proto.com.farsunset.cim.sdk.web.model.ReplyBody.deserializeBinary=function(l){var h=new o.BinaryReader(l),c=new proto.com.farsunset.cim.sdk.web.model.ReplyBody;return proto.com.farsunset.cim.sdk.web.model.ReplyBody.deserializeBinaryFromReader(c,h)},proto.com.farsunset.cim.sdk.web.model.ReplyBody.deserializeBinaryFromReader=function(l,h){for(;h.nextField()&&!h.isEndGroup();){var c=h.getFieldNumber();switch(c){case 1:var _=h.readString();l.setKey(_);break;case 2:var _=h.readString();l.setCode(_);break;case 3:var _=h.readString();l.setMessage(_);break;case 4:var _=h.readInt64();l.setTimestamp(_);break;case 5:var _=l.getDataMap();h.readMessage(_,function(m,E){o.Map.deserializeBinary(m,E,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readString)});break;default:h.skipField();break}}return l},proto.com.farsunset.cim.sdk.web.model.ReplyBody.prototype.serializeBinary=function(){var l=new o.BinaryWriter;return proto.com.farsunset.cim.sdk.web.model.ReplyBody.serializeBinaryToWriter(this,l),l.getResultBuffer()},proto.com.farsunset.cim.sdk.web.model.ReplyBody.serializeBinaryToWriter=function(l,h){var c=void 0;c=l.getKey(),c.length>0&&h.writeString(1,c),c=l.getCode(),c.length>0&&h.writeString(2,c),c=l.getMessage(),c.length>0&&h.writeString(3,c),c=l.getTimestamp(),c!==0&&h.writeInt64(4,c),c=l.getDataMap(!0),c&&c.getLength()>0&&c.serializeBinary(5,h,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeString)},proto.com.farsunset.cim.sdk.web.model.ReplyBody.prototype.getKey=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.com.farsunset.cim.sdk.web.model.ReplyBody.prototype.setKey=function(l){o.Message.setProto3StringField(this,1,l)},proto.com.farsunset.cim.sdk.web.model.ReplyBody.prototype.getCode=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.com.farsunset.cim.sdk.web.model.ReplyBody.prototype.setCode=function(l){o.Message.setProto3StringField(this,2,l)},proto.com.farsunset.cim.sdk.web.model.ReplyBody.prototype.getMessage=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.com.farsunset.cim.sdk.web.model.ReplyBody.prototype.setMessage=function(l){o.Message.setProto3StringField(this,3,l)},proto.com.farsunset.cim.sdk.web.model.ReplyBody.prototype.getTimestamp=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.com.farsunset.cim.sdk.web.model.ReplyBody.prototype.setTimestamp=function(l){o.Message.setProto3IntField(this,4,l)},proto.com.farsunset.cim.sdk.web.model.ReplyBody.prototype.getDataMap=function(l){return o.Message.getMapField(this,5,l,null)},proto.com.farsunset.cim.sdk.web.model.ReplyBody.prototype.clearDataMap=function(){this.getDataMap().clear()},n.object.extend(t,proto.com.farsunset.cim.sdk.web.model)},{"google-protobuf":3}],2:[function(r,e,t){var o=r("./ReplyBodyProtobuf");e.exports={DataProto:o}},{"./ReplyBodyProtobuf":1}],3:[function(require,module,exports){(function(global,Buffer){var $jscomp={scope:{},getGlobal:function(r){return typeof window<"u"&&window===r?r:typeof global<"u"?global:r}};$jscomp.global=$jscomp.getGlobal(this),$jscomp.initSymbol=function(){$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol),$jscomp.initSymbol=function(){}},$jscomp.symbolCounter_=0,$jscomp.Symbol=function(r){return"jscomp_symbol_"+r+$jscomp.symbolCounter_++},$jscomp.initSymbolIterator=function(){$jscomp.initSymbol(),$jscomp.global.Symbol.iterator||($jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator")),$jscomp.initSymbolIterator=function(){}},$jscomp.makeIterator=function(r){$jscomp.initSymbolIterator(),$jscomp.initSymbol(),$jscomp.initSymbolIterator();var e=r[Symbol.iterator];if(e)return e.call(r);var t=0;return{next:function(){return t<r.length?{done:!1,value:r[t++]}:{done:!0}}}},$jscomp.arrayFromIterator=function(r){for(var e,t=[];!(e=r.next()).done;)t.push(e.value);return t},$jscomp.arrayFromIterable=function(r){return r instanceof Array?r:$jscomp.arrayFromIterator($jscomp.makeIterator(r))},$jscomp.inherits=function(r,e){function t(){}t.prototype=e.prototype,r.prototype=new t,r.prototype.constructor=r;for(var o in e)if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(e,o);n&&Object.defineProperty(r,o,n)}else r[o]=e[o]},$jscomp.array=$jscomp.array||{},$jscomp.iteratorFromArray=function(r,e){$jscomp.initSymbolIterator(),r instanceof String&&(r+="");var t=0,o={next:function(){if(t<r.length){var n=t++;return{value:e(n,r[n]),done:!1}}return o.next=function(){return{done:!0,value:void 0}},o.next()}};return $jscomp.initSymbol(),$jscomp.initSymbolIterator(),o[Symbol.iterator]=function(){return o},o},$jscomp.findInternal=function(r,e,t){r instanceof String&&(r=String(r));for(var o=r.length,n=0;n<o;n++){var g=r[n];if(e.call(t,g,n,r))return{i:n,v:g}}return{i:-1,v:void 0}},$jscomp.array.from=function(r,e,t){$jscomp.initSymbolIterator(),e=e??function(l){return l};var o=[];$jscomp.initSymbol(),$jscomp.initSymbolIterator();var n=r[Symbol.iterator];if(typeof n=="function"&&(r=n.call(r)),typeof r.next=="function")for(;!(n=r.next()).done;)o.push(e.call(t,n.value));else for(var n=r.length,g=0;g<n;g++)o.push(e.call(t,r[g]));return o},$jscomp.array.of=function(r){return $jscomp.array.from(arguments)},$jscomp.array.entries=function(){return $jscomp.iteratorFromArray(this,function(r,e){return[r,e]})},$jscomp.array.installHelper_=function(r,e){!Array.prototype[r]&&Object.defineProperties&&Object.defineProperty&&Object.defineProperty(Array.prototype,r,{configurable:!0,enumerable:!1,writable:!0,value:e})},$jscomp.array.entries$install=function(){$jscomp.array.installHelper_("entries",$jscomp.array.entries)},$jscomp.array.keys=function(){return $jscomp.iteratorFromArray(this,function(r){return r})},$jscomp.array.keys$install=function(){$jscomp.array.installHelper_("keys",$jscomp.array.keys)},$jscomp.array.values=function(){return $jscomp.iteratorFromArray(this,function(r,e){return e})},$jscomp.array.values$install=function(){$jscomp.array.installHelper_("values",$jscomp.array.values)},$jscomp.array.copyWithin=function(r,e,t){var o=this.length;if(r=Number(r),e=Number(e),t=Number(t??o),r<e)for(t=Math.min(t,o);e<t;)e in this?this[r++]=this[e++]:(delete this[r++],e++);else for(t=Math.min(t,o+e-r),r+=t-e;t>e;)--t in this?this[--r]=this[t]:delete this[r];return this},$jscomp.array.copyWithin$install=function(){$jscomp.array.installHelper_("copyWithin",$jscomp.array.copyWithin)},$jscomp.array.fill=function(r,e,t){var o=this.length||0;for(0>e&&(e=Math.max(0,o+e)),(t==null||t>o)&&(t=o),t=Number(t),0>t&&(t=Math.max(0,o+t)),e=Number(e||0);e<t;e++)this[e]=r;return this},$jscomp.array.fill$install=function(){$jscomp.array.installHelper_("fill",$jscomp.array.fill)},$jscomp.array.find=function(r,e){return $jscomp.findInternal(this,r,e).v},$jscomp.array.find$install=function(){$jscomp.array.installHelper_("find",$jscomp.array.find)},$jscomp.array.findIndex=function(r,e){return $jscomp.findInternal(this,r,e).i},$jscomp.array.findIndex$install=function(){$jscomp.array.installHelper_("findIndex",$jscomp.array.findIndex)},$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.Map$isConformant=function(){if($jscomp.ASSUME_NO_NATIVE_MAP)return!1;var r=$jscomp.global.Map;if(!r||!r.prototype.entries||typeof Object.seal!="function")return!1;try{var e=Object.seal({x:4}),t=new r($jscomp.makeIterator([[e,"s"]]));if(t.get(e)!="s"||t.size!=1||t.get({x:4})||t.set({x:4},"t")!=t||t.size!=2)return!1;var o=t.entries(),n=o.next();return n.done||n.value[0]!=e||n.value[1]!="s"?!1:(n=o.next(),!(n.done||n.value[0].x!=4||n.value[1]!="t"||!o.next().done))}catch{return!1}},$jscomp.Map=function(r){if(this.data_={},this.head_=$jscomp.Map.createHead(),this.size=0,r){r=$jscomp.makeIterator(r);for(var e;!(e=r.next()).done;)e=e.value,this.set(e[0],e[1])}},$jscomp.Map.prototype.set=function(r,e){var t=$jscomp.Map.maybeGetEntry(this,r);return t.list||(t.list=this.data_[t.id]=[]),t.entry?t.entry.value=e:(t.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:r,value:e},t.list.push(t.entry),this.head_.previous.next=t.entry,this.head_.previous=t.entry,this.size++),this},$jscomp.Map.prototype.delete=function(r){return r=$jscomp.Map.maybeGetEntry(this,r),r.entry&&r.list?(r.list.splice(r.index,1),r.list.length||delete this.data_[r.id],r.entry.previous.next=r.entry.next,r.entry.next.previous=r.entry.previous,r.entry.head=null,this.size--,!0):!1},$jscomp.Map.prototype.clear=function(){this.data_={},this.head_=this.head_.previous=$jscomp.Map.createHead(),this.size=0},$jscomp.Map.prototype.has=function(r){return!!$jscomp.Map.maybeGetEntry(this,r).entry},$jscomp.Map.prototype.get=function(r){return(r=$jscomp.Map.maybeGetEntry(this,r).entry)&&r.value},$jscomp.Map.prototype.entries=function(){return $jscomp.Map.makeIterator_(this,function(r){return[r.key,r.value]})},$jscomp.Map.prototype.keys=function(){return $jscomp.Map.makeIterator_(this,function(r){return r.key})},$jscomp.Map.prototype.values=function(){return $jscomp.Map.makeIterator_(this,function(r){return r.value})},$jscomp.Map.prototype.forEach=function(r,e){for(var t=this.entries(),o;!(o=t.next()).done;)o=o.value,r.call(e,o[1],o[0],this)},$jscomp.Map.maybeGetEntry=function(r,e){var t=$jscomp.Map.getId(e),o=r.data_[t];if(o&&Object.prototype.hasOwnProperty.call(r.data_,t))for(var n=0;n<o.length;n++){var g=o[n];if(e!==e&&g.key!==g.key||e===g.key)return{id:t,list:o,index:n,entry:g}}return{id:t,list:o,index:-1,entry:void 0}},$jscomp.Map.makeIterator_=function(r,e){var t=r.head_,o={next:function(){if(t){for(;t.head!=r.head_;)t=t.previous;for(;t.next!=t.head;)return t=t.next,{done:!1,value:e(t)};t=null}return{done:!0,value:void 0}}};return $jscomp.initSymbol(),$jscomp.initSymbolIterator(),o[Symbol.iterator]=function(){return o},o},$jscomp.Map.mapIndex_=0,$jscomp.Map.createHead=function(){var r={};return r.previous=r.next=r.head=r},$jscomp.Map.getId=function(r){if(!(r instanceof Object))return"p_"+r;if(!($jscomp.Map.idKey in r))try{$jscomp.Map.defineProperty(r,$jscomp.Map.idKey,{value:++$jscomp.Map.mapIndex_})}catch{}return $jscomp.Map.idKey in r?r[$jscomp.Map.idKey]:"o_ "+r},$jscomp.Map.defineProperty=Object.defineProperty?function(r,e,t){Object.defineProperty(r,e,{value:String(t)})}:function(r,e,t){r[e]=String(t)},$jscomp.Map.Entry=function(){},$jscomp.Map$install=function(){$jscomp.initSymbol(),$jscomp.initSymbolIterator(),$jscomp.Map$isConformant()?$jscomp.Map=$jscomp.global.Map:($jscomp.initSymbol(),$jscomp.initSymbolIterator(),$jscomp.Map.prototype[Symbol.iterator]=$jscomp.Map.prototype.entries,$jscomp.initSymbol(),$jscomp.Map.idKey=Symbol("map-id-key"),$jscomp.Map$install=function(){})},$jscomp.math=$jscomp.math||{},$jscomp.math.clz32=function(r){if(r=Number(r)>>>0,r===0)return 32;var e=0;return!(r&4294901760)&&(r<<=16,e+=16),!(r&4278190080)&&(r<<=8,e+=8),!(r&4026531840)&&(r<<=4,e+=4),!(r&3221225472)&&(r<<=2,e+=2),!(r&2147483648)&&e++,e},$jscomp.math.imul=function(r,e){r=Number(r),e=Number(e);var t=r&65535,o=e&65535;return t*o+((r>>>16&65535)*o+t*(e>>>16&65535)<<16>>>0)|0},$jscomp.math.sign=function(r){return r=Number(r),r===0||isNaN(r)?r:0<r?1:-1},$jscomp.math.log10=function(r){return Math.log(r)/Math.LN10},$jscomp.math.log2=function(r){return Math.log(r)/Math.LN2},$jscomp.math.log1p=function(r){if(r=Number(r),.25>r&&-.25<r){for(var e=r,t=1,o=r,n=0,g=1;n!=o;)e*=r,g*=-1,o=(n=o)+g*e/++t;return o}return Math.log(1+r)},$jscomp.math.expm1=function(r){if(r=Number(r),.25>r&&-.25<r){for(var e=r,t=1,o=r,n=0;n!=o;)e*=r/++t,o=(n=o)+e;return o}return Math.exp(r)-1},$jscomp.math.cosh=function(r){return r=Number(r),(Math.exp(r)+Math.exp(-r))/2},$jscomp.math.sinh=function(r){return r=Number(r),r===0?r:(Math.exp(r)-Math.exp(-r))/2},$jscomp.math.tanh=function(r){if(r=Number(r),r===0)return r;var e=Math.exp(-2*Math.abs(r)),e=(1-e)/(1+e);return 0>r?-e:e},$jscomp.math.acosh=function(r){return r=Number(r),Math.log(r+Math.sqrt(r*r-1))},$jscomp.math.asinh=function(r){if(r=Number(r),r===0)return r;var e=Math.log(Math.abs(r)+Math.sqrt(r*r+1));return 0>r?-e:e},$jscomp.math.atanh=function(r){return r=Number(r),($jscomp.math.log1p(r)-$jscomp.math.log1p(-r))/2},$jscomp.math.hypot=function(r,e,t){r=Number(r),e=Number(e);var o,n,g,l=Math.max(Math.abs(r),Math.abs(e));for(o=2;o<arguments.length;o++)l=Math.max(l,Math.abs(arguments[o]));if(1e100<l||1e-100>l){for(r/=l,e/=l,g=r*r+e*e,o=2;o<arguments.length;o++)n=Number(arguments[o])/l,g+=n*n;return Math.sqrt(g)*l}for(g=r*r+e*e,o=2;o<arguments.length;o++)n=Number(arguments[o]),g+=n*n;return Math.sqrt(g)},$jscomp.math.trunc=function(r){if(r=Number(r),isNaN(r)||r===1/0||r===-1/0||r===0)return r;var e=Math.floor(Math.abs(r));return 0>r?-e:e},$jscomp.math.cbrt=function(r){if(r===0)return r;r=Number(r);var e=Math.pow(Math.abs(r),1/3);return 0>r?-e:e},$jscomp.number=$jscomp.number||{},$jscomp.number.isFinite=function(r){return typeof r!="number"?!1:!isNaN(r)&&r!==1/0&&r!==-1/0},$jscomp.number.isInteger=function(r){return $jscomp.number.isFinite(r)?r===Math.floor(r):!1},$jscomp.number.isNaN=function(r){return typeof r=="number"&&isNaN(r)},$jscomp.number.isSafeInteger=function(r){return $jscomp.number.isInteger(r)&&Math.abs(r)<=$jscomp.number.MAX_SAFE_INTEGER},$jscomp.number.EPSILON=function(){return Math.pow(2,-52)}(),$jscomp.number.MAX_SAFE_INTEGER=function(){return 9007199254740991}(),$jscomp.number.MIN_SAFE_INTEGER=function(){return-9007199254740991}(),$jscomp.object=$jscomp.object||{},$jscomp.object.assign=function(r,e){for(var t=1;t<arguments.length;t++){var o=arguments[t];if(o)for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])}return r},$jscomp.object.is=function(r,e){return r===e?r!==0||1/r===1/e:r!==r&&e!==e},$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.Set$isConformant=function(){if($jscomp.ASSUME_NO_NATIVE_SET)return!1;var r=$jscomp.global.Set;if(!r||!r.prototype.entries||typeof Object.seal!="function")return!1;try{var e=Object.seal({x:4}),t=new r($jscomp.makeIterator([e]));if(!t.has(e)||t.size!=1||t.add(e)!=t||t.size!=1||t.add({x:4})!=t||t.size!=2)return!1;var o=t.entries(),n=o.next();return n.done||n.value[0]!=e||n.value[1]!=e?!1:(n=o.next(),n.done||n.value[0]==e||n.value[0].x!=4||n.value[1]!=n.value[0]?!1:o.next().done)}catch{return!1}},$jscomp.Set=function(r){if(this.map_=new $jscomp.Map,r){r=$jscomp.makeIterator(r);for(var e;!(e=r.next()).done;)this.add(e.value)}this.size=this.map_.size},$jscomp.Set.prototype.add=function(r){return this.map_.set(r,r),this.size=this.map_.size,this},$jscomp.Set.prototype.delete=function(r){return r=this.map_.delete(r),this.size=this.map_.size,r},$jscomp.Set.prototype.clear=function(){this.map_.clear(),this.size=0},$jscomp.Set.prototype.has=function(r){return this.map_.has(r)},$jscomp.Set.prototype.entries=function(){return this.map_.entries()},$jscomp.Set.prototype.values=function(){return this.map_.values()},$jscomp.Set.prototype.forEach=function(r,e){var t=this;this.map_.forEach(function(o){return r.call(e,o,o,t)})},$jscomp.Set$install=function(){$jscomp.Map$install(),$jscomp.Set$isConformant()?$jscomp.Set=$jscomp.global.Set:($jscomp.initSymbol(),$jscomp.initSymbolIterator(),$jscomp.Set.prototype[Symbol.iterator]=$jscomp.Set.prototype.values,$jscomp.Set$install=function(){})},$jscomp.string=$jscomp.string||{},$jscomp.checkStringArgs=function(r,e,t){if(r==null)throw new TypeError("The 'this' value for String.prototype."+t+" must not be null or undefined");if(e instanceof RegExp)throw new TypeError("First argument to String.prototype."+t+" must not be a regular expression");return r+""},$jscomp.string.fromCodePoint=function(r){for(var e="",t=0;t<arguments.length;t++){var o=Number(arguments[t]);if(0>o||1114111<o||o!==Math.floor(o))throw new RangeError("invalid_code_point "+o);65535>=o?e+=String.fromCharCode(o):(o-=65536,e+=String.fromCharCode(o>>>10&1023|55296),e+=String.fromCharCode(o&1023|56320))}return e},$jscomp.string.repeat=function(r){var e=$jscomp.checkStringArgs(this,null,"repeat");if(0>r||1342177279<r)throw new RangeError("Invalid count value");r|=0;for(var t="";r;)r&1&&(t+=e),(r>>>=1)&&(e+=e);return t},$jscomp.string.repeat$install=function(){String.prototype.repeat||(String.prototype.repeat=$jscomp.string.repeat)},$jscomp.string.codePointAt=function(r){var e=$jscomp.checkStringArgs(this,null,"codePointAt"),t=e.length;if(r=Number(r)||0,0<=r&&r<t){r|=0;var o=e.charCodeAt(r);return 55296>o||56319<o||r+1===t?o:(r=e.charCodeAt(r+1),56320>r||57343<r?o:1024*(o-55296)+r+9216)}},$jscomp.string.codePointAt$install=function(){String.prototype.codePointAt||(String.prototype.codePointAt=$jscomp.string.codePointAt)},$jscomp.string.includes=function(r,e){return $jscomp.checkStringArgs(this,r,"includes").indexOf(r,e||0)!==-1},$jscomp.string.includes$install=function(){String.prototype.includes||(String.prototype.includes=$jscomp.string.includes)},$jscomp.string.startsWith=function(r,e){var t=$jscomp.checkStringArgs(this,r,"startsWith");r+="";for(var o=t.length,n=r.length,g=Math.max(0,Math.min(e|0,t.length)),l=0;l<n&&g<o;)if(t[g++]!=r[l++])return!1;return l>=n},$jscomp.string.startsWith$install=function(){String.prototype.startsWith||(String.prototype.startsWith=$jscomp.string.startsWith)},$jscomp.string.endsWith=function(r,e){var t=$jscomp.checkStringArgs(this,r,"endsWith");r+="",e===void 0&&(e=t.length);for(var o=Math.max(0,Math.min(e|0,t.length)),n=r.length;0<n&&0<o;)if(t[--o]!=r[--n])return!1;return 0>=n},$jscomp.string.endsWith$install=function(){String.prototype.endsWith||(String.prototype.endsWith=$jscomp.string.endsWith)};var COMPILED=!0,goog=goog||{};goog.global=this,goog.isDef=function(r){return r!==void 0},goog.exportPath_=function(r,e,t){r=r.split("."),t=t||goog.global,r[0]in t||!t.execScript||t.execScript("var "+r[0]);for(var o;r.length&&(o=r.shift());)!r.length&&goog.isDef(e)?t[o]=e:t=t[o]?t[o]:t[o]={}},goog.define=function(r,e){var t=e;goog.exportPath_(r,t)},goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(r){goog.constructNamespace_(r)},goog.constructNamespace_=function(r,e){goog.exportPath_(r,e)},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(r){if(!goog.isString(r)||!r||r.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInModuleLoader_())throw Error("Module "+r+" has been loaded incorrectly.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");goog.moduleLoaderState_.moduleName=r},goog.module.get=function(r){return goog.module.getInternal_(r)},goog.module.getInternal_=function(r){},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.moduleLoaderState_!=null},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.setTestOnly=function(r){if(goog.DISALLOW_TEST_ONLY_CODE)throw r=r||"",Error("Importing test-only code into non-debug environment"+(r?": "+r:"."))},goog.forwardDeclare=function(r){},goog.getObjectByName=function(r,e){for(var t=r.split("."),o=e||goog.global,n;n=t.shift();)if(goog.isDefAndNotNull(o[n]))o=o[n];else return null;return o},goog.globalize=function(r,e){var t=e||goog.global,o;for(o in r)t[o]=r[o]},goog.addDependency=function(r,e,t,o){if(goog.DEPENDENCIES_ENABLED){var n;r=r.replace(/\\/g,"/");for(var g=goog.dependencies_,l=0;n=e[l];l++)g.nameToPath[n]=r,g.pathIsModule[r]=!!o;for(o=0;e=t[o];o++)r in g.requires||(g.requires[r]={}),g.requires[r][e]=!0}},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(r){goog.global.console&&goog.global.console.error(r)},goog.require=function(r){},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(r){r.getInstance=function(){return r.instance_?r.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=r),r.instance_=new r)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED,goog.DEPENDENCIES_ENABLED&&(goog.dependencies_={pathIsModule:{},nameToPath:{},requires:{},visited:{},written:{},deferred:{}},goog.inHtmlDocument_=function(){var r=goog.global.document;return r!=null&&"write"in r},goog.findBasePath_=function(){if(goog.isDef(goog.global.CLOSURE_BASE_PATH))goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_())for(var r=goog.global.document.getElementsByTagName("SCRIPT"),e=r.length-1;0<=e;--e){var t=r[e].src,o=t.lastIndexOf("?"),o=o==-1?t.length:o;if(t.substr(o-7,7)=="base.js"){goog.basePath=t.substr(0,o-7);break}}},goog.importScript_=function(r,e){(goog.global.CLOSURE_IMPORT_SCRIPT||goog.writeScriptTag_)(r,e)&&(goog.dependencies_.written[r]=!0)},goog.IS_OLD_IE_=!(goog.global.atob||!goog.global.document||!goog.global.document.all),goog.importModule_=function(r){goog.importScript_("",'goog.retrieveAndExecModule_("'+r+'");')&&(goog.dependencies_.written[r]=!0)},goog.queuedModules_=[],goog.wrapModule_=function(r,e){return goog.LOAD_MODULE_USING_EVAL&&goog.isDef(goog.global.JSON)?"goog.loadModule("+goog.global.JSON.stringify(e+` //# sourceURL=`+r+` `)+");":'goog.loadModule(function(exports) {"use strict";'+e+` ;return exports}); //# sourceURL=`+r+` `},goog.loadQueuedModules_=function(){var r=goog.queuedModules_.length;if(0<r){var e=goog.queuedModules_;goog.queuedModules_=[];for(var t=0;t<r;t++)goog.maybeProcessDeferredPath_(e[t])}},goog.maybeProcessDeferredDep_=function(r){goog.isDeferredModule_(r)&&goog.allDepsAreAvailable_(r)&&(r=goog.getPathFromDeps_(r),goog.maybeProcessDeferredPath_(goog.basePath+r))},goog.isDeferredModule_=function(r){return(r=goog.getPathFromDeps_(r))&&goog.dependencies_.pathIsModule[r]?goog.basePath+r in goog.dependencies_.deferred:!1},goog.allDepsAreAvailable_=function(r){if((r=goog.getPathFromDeps_(r))&&r in goog.dependencies_.requires){for(var e in goog.dependencies_.requires[r])if(!goog.isProvided_(e)&&!goog.isDeferredModule_(e))return!1}return!0},goog.maybeProcessDeferredPath_=function(r){if(r in goog.dependencies_.deferred){var e=goog.dependencies_.deferred[r];delete goog.dependencies_.deferred[r],goog.globalEval(e)}},goog.loadModuleFromUrl=function(r){goog.retrieveAndExecModule_(r)},goog.loadModule=function(r){var e=goog.moduleLoaderState_;try{goog.moduleLoaderState_={moduleName:void 0,declareLegacyNamespace:!1};var t;if(goog.isFunction(r))t=r.call(goog.global,{});else if(goog.isString(r))t=goog.loadModuleFromSource_.call(goog.global,r);else throw Error("Invalid module definition");var o=goog.moduleLoaderState_.moduleName;if(!goog.isString(o)||!o)throw Error('Invalid module name "'+o+'"');goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(o,t):goog.SEAL_MODULE_EXPORTS&&Object.seal&&Object.seal(t),goog.loadedModules_[o]=t}finally{goog.moduleLoaderState_=e}},goog.loadModuleFromSource_=function(a){return eval(a),{}},goog.writeScriptSrcNode_=function(r){goog.global.document.write('<script type="text/javascript" src="'+r+'"><\/script>')},goog.appendScriptSrcNode_=function(r){var e=goog.global.document,t=e.createElement("script");t.type="text/javascript",t.src=r,t.defer=!1,t.async=!1,e.head.appendChild(t)},goog.writeScriptTag_=function(r,e){if(goog.inHtmlDocument_()){var t=goog.global.document;if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&t.readyState=="complete"){if(/\bdeps.js$/.test(r))return!1;throw Error('Cannot write "'+r+'" after document load')}var o=goog.IS_OLD_IE_;return e===void 0?o?(o=" onreadystatechange='goog.onScriptLoad_(this, "+ ++goog.lastNonModuleScriptIndex_+")' ",t.write('<script type="text/javascript" src="'+r+'"'+o+"><\/script>")):goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING?goog.appendScriptSrcNode_(r):goog.writeScriptSrcNode_(r):t.write('<script type="text/javascript">'+e+"<\/script>"),!0}return!1},goog.lastNonModuleScriptIndex_=0,goog.onScriptLoad_=function(r,e){return r.readyState=="complete"&&goog.lastNonModuleScriptIndex_==e&&goog.loadQueuedModules_(),!0},goog.writeScripts_=function(r){function e(h){if(!(h in n.written||h in n.visited)){if(n.visited[h]=!0,h in n.requires){for(var c in n.requires[h])if(!goog.isProvided_(c))if(c in n.nameToPath)e(n.nameToPath[c]);else throw Error("Undefined nameToPath for "+c)}h in o||(o[h]=!0,t.push(h))}}var t=[],o={},n=goog.dependencies_;for(e(r),r=0;r<t.length;r++){var g=t[r];goog.dependencies_.written[g]=!0}var l=goog.moduleLoaderState_;for(goog.moduleLoaderState_=null,r=0;r<t.length;r++)if(g=t[r])n.pathIsModule[g]?goog.importModule_(goog.basePath+g):goog.importScript_(goog.basePath+g);else throw goog.moduleLoaderState_=l,Error("Undefined script input");goog.moduleLoaderState_=l},goog.getPathFromDeps_=function(r){return r in goog.dependencies_.nameToPath?goog.dependencies_.nameToPath[r]:null},goog.findBasePath_(),goog.global.CLOSURE_NO_DEPS||goog.importScript_(goog.basePath+"deps.js")),goog.normalizePath_=function(r){r=r.split("/");for(var e=0;e<r.length;)r[e]=="."?r.splice(e,1):e&&r[e]==".."&&r[e-1]&&r[e-1]!=".."?r.splice(--e,2):e++;return r.join("/")},goog.loadFileSync_=function(r){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(r);var e=new goog.global.XMLHttpRequest;return e.open("get",r,!1),e.send(),e.responseText},goog.retrieveAndExecModule_=function(r){},goog.typeOf=function(r){var e=typeof r;if(e=="object")if(r){if(r instanceof Array)return"array";if(r instanceof Object)return e;var t=Object.prototype.toString.call(r);if(t=="[object Window]")return"object";if(t=="[object Array]"||typeof r.length=="number"&&typeof r.splice<"u"&&typeof r.propertyIsEnumerable<"u"&&!r.propertyIsEnumerable("splice"))return"array";if(t=="[object Function]"||typeof r.call<"u"&&typeof r.propertyIsEnumerable<"u"&&!r.propertyIsEnumerable("call"))return"function"}else return"null";else if(e=="function"&&typeof r.call>"u")return"object";return e},goog.isNull=function(r){return r===null},goog.isDefAndNotNull=function(r){return r!=null},goog.isArray=function(r){return goog.typeOf(r)=="array"},goog.isArrayLike=function(r){var e=goog.typeOf(r);return e=="array"||e=="object"&&typeof r.length=="number"},goog.isDateLike=function(r){return goog.isObject(r)&&typeof r.getFullYear=="function"},goog.isString=function(r){return typeof r=="string"},goog.isBoolean=function(r){return typeof r=="boolean"},goog.isNumber=function(r){return typeof r=="number"},goog.isFunction=function(r){return goog.typeOf(r)=="function"},goog.isObject=function(r){var e=typeof r;return e=="object"&&r!=null||e=="function"},goog.getUid=function(r){return r[goog.UID_PROPERTY_]||(r[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(r){return!!r[goog.UID_PROPERTY_]},goog.removeUid=function(r){r!==null&&"removeAttribute"in r&&r.removeAttribute(goog.UID_PROPERTY_);try{delete r[goog.UID_PROPERTY_]}catch{}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(r){var e=goog.typeOf(r);if(e=="object"||e=="array"){if(r.clone)return r.clone();var e=e=="array"?[]:{},t;for(t in r)e[t]=goog.cloneObject(r[t]);return e}return r},goog.bindNative_=function(r,e,t){return r.call.apply(r.bind,arguments)},goog.bindJs_=function(r,e,t){if(!r)throw Error();if(2<arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,o),r.apply(e,n)}}return function(){return r.apply(e,arguments)}},goog.bind=function(r,e,t){return Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(r,e){var t=Array.prototype.slice.call(arguments,1);return function(){var o=t.slice();return o.push.apply(o,arguments),r.apply(this,o)}},goog.mixin=function(r,e){for(var t in e)r[t]=e[t]},goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date},goog.globalEval=function(r){if(goog.global.execScript)goog.global.execScript(r,"JavaScript");else if(goog.global.eval){if(goog.evalWorksForGlobals_==null)if(goog.global.eval("var _evalTest_ = 1;"),typeof goog.global._evalTest_<"u"){try{delete goog.global._evalTest_}catch{}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1;if(goog.evalWorksForGlobals_)goog.global.eval(r);else{var e=goog.global.document,t=e.createElement("SCRIPT");t.type="text/javascript",t.defer=!1,t.appendChild(e.createTextNode(r)),e.body.appendChild(t),e.body.removeChild(t)}}else throw Error("goog.globalEval not available")},goog.evalWorksForGlobals_=null,goog.getCssName=function(r,e){var t=function(n){return goog.cssNameMapping_[n]||n},o=function(n){n=n.split("-");for(var g=[],l=0;l<n.length;l++)g.push(t(n[l]));return g.join("-")},o=goog.cssNameMapping_?goog.cssNameMappingStyle_=="BY_WHOLE"?t:o:function(n){return n};return e?r+"-"+o(e):o(r)},goog.setCssNameMapping=function(r,e){goog.cssNameMapping_=r,goog.cssNameMappingStyle_=e},goog.getMsg=function(r,e){return e&&(r=r.replace(/\{\$([^}]+)}/g,function(t,o){return e!=null&&o in e?e[o]:t})),r},goog.getMsgWithFallback=function(r,e){return r},goog.exportSymbol=function(r,e,t){goog.exportPath_(r,e,t)},goog.exportProperty=function(r,e,t){r[e]=t},goog.inherits=function(r,e){function t(){}t.prototype=e.prototype,r.superClass_=e.prototype,r.prototype=new t,r.prototype.constructor=r,r.base=function(o,n,g){for(var l=Array(arguments.length-2),h=2;h<arguments.length;h++)l[h-2]=arguments[h];return e.prototype[n].apply(o,l)}},goog.base=function(r,e,t){var o=arguments.callee.caller;if(goog.STRICT_MODE_COMPATIBLE||goog.DEBUG&&!o)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(o.superClass_){for(var n=Array(arguments.length-1),g=1;g<arguments.length;g++)n[g-1]=arguments[g];return o.superClass_.constructor.apply(r,n)}for(n=Array(arguments.length-2),g=2;g<arguments.length;g++)n[g-2]=arguments[g];for(var g=!1,l=r.constructor;l;l=l.superClass_&&l.superClass_.constructor)if(l.prototype[e]===o)g=!0;else if(g)return l.prototype[e].apply(r,n);if(r[e]===o)return r.constructor.prototype[e].apply(r,n);throw Error("goog.base called from a method of one name to a method of a different name")},goog.scope=function(r){r.call(goog.global)},goog.defineClass=function(r,e){var t=e.constructor,o=e.statics;return t&&t!=Object.prototype.constructor||(t=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),t=goog.defineClass.createSealingConstructor_(t,r),r&&goog.inherits(t,r),delete e.constructor,delete e.statics,goog.defineClass.applyProperties_(t.prototype,e),o!=null&&(o instanceof Function?o(t):goog.defineClass.applyProperties_(t,o)),t},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(r,e){if(goog.defineClass.SEAL_CLASS_INSTANCES&&Object.seal instanceof Function){if(e&&e.prototype&&e.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_])return r;var t=function(){var o=r.apply(this,arguments)||this;return o[goog.UID_PROPERTY_]=o[goog.UID_PROPERTY_],this.constructor===t&&Object.seal(o),o};return t}return r},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(r,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);for(var o=0;o<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;o++)t=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[o],Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])},goog.tagUnsealableClass=function(r){},goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable",goog.dom={},goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12},goog.debug={},goog.debug.Error=function(r){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var e=Error().stack;e&&(this.stack=e)}r&&(this.message=String(r)),this.reportErrorToServer=!0},goog.inherits(goog.debug.Error,Error),goog.debug.Error.prototype.name="CustomError",goog.string={},goog.string.DETECT_DOUBLE_ESCAPING=!1,goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1,goog.string.Unicode={NBSP:" "},goog.string.startsWith=function(r,e){return r.lastIndexOf(e,0)==0},goog.string.endsWith=function(r,e){var t=r.length-e.length;return 0<=t&&r.indexOf(e,t)==t},goog.string.caseInsensitiveStartsWith=function(r,e){return goog.string.caseInsensitiveCompare(e,r.substr(0,e.length))==0},goog.string.caseInsensitiveEndsWith=function(r,e){return goog.string.caseInsensitiveCompare(e,r.substr(r.length-e.length,e.length))==0},goog.string.caseInsensitiveEquals=function(r,e){return r.toLowerCase()==e.toLowerCase()},goog.string.subs=function(r,e){for(var t=r.split("%s"),o="",n=Array.prototype.slice.call(arguments,1);n.length&&1<t.length;)o+=t.shift()+n.shift();return o+t.join("%s")},goog.string.collapseWhitespace=function(r){return r.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},goog.string.isEmptyOrWhitespace=function(r){return/^[\s\xa0]*$/.test(r)},goog.string.isEmptyString=function(r){return r.length==0},goog.string.isEmpty=goog.string.isEmptyOrWhitespace,goog.string.isEmptyOrWhitespaceSafe=function(r){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(r))},goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe,goog.string.isBreakingWhitespace=function(r){return!/[^\t\n\r ]/.test(r)},goog.string.isAlpha=function(r){return!/[^a-zA-Z]/.test(r)},goog.string.isNumeric=function(r){return!/[^0-9]/.test(r)},goog.string.isAlphaNumeric=function(r){return!/[^a-zA-Z0-9]/.test(r)},goog.string.isSpace=function(r){return r==" "},goog.string.isUnicodeChar=function(r){return r.length==1&&" "<=r&&"~">=r||"€"<=r&&"�">=r},goog.string.stripNewlines=function(r){return r.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(r){return r.replace(/(\r\n|\r|\n)/g,` `)},goog.string.normalizeWhitespace=function(r){return r.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(r){return r.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(r){return r.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(r){return r.trim()}:function(r){return r.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},goog.string.trimLeft=function(r){return r.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(r){return r.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=function(r,e){var t=String(r).toLowerCase(),o=String(e).toLowerCase();return t<o?-1:t==o?0:1},goog.string.numberAwareCompare_=function(r,e,t){if(r==e)return 0;if(!r)return-1;if(!e)return 1;for(var o=r.toLowerCase().match(t),n=e.toLowerCase().match(t),g=Math.min(o.length,n.length),l=0;l<g;l++){t=o[l];var h=n[l];if(t!=h)return r=parseInt(t,10),!isNaN(r)&&(e=parseInt(h,10),!isNaN(e)&&r-e)?r-e:t<h?-1:1}return o.length!=n.length?o.length-n.length:r<e?-1:1},goog.string.intAwareCompare=function(r,e){return goog.string.numberAwareCompare_(r,e,/\d+|\D+/g)},goog.string.floatAwareCompare=function(r,e){return goog.string.numberAwareCompare_(r,e,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(r){return encodeURIComponent(String(r))},goog.string.urlDecode=function(r){return decodeURIComponent(r.replace(/\+/g," "))},goog.string.newLineToBr=function(r,e){return r.replace(/(\r\n|\r|\n)/g,e?"<br />":"<br>")},goog.string.htmlEscape=function(r,e){if(e)r=r.replace(goog.string.AMP_RE_,"&amp;").replace(goog.string.LT_RE_,"&lt;").replace(goog.string.GT_RE_,"&gt;").replace(goog.string.QUOT_RE_,"&quot;").replace(goog.string.SINGLE_QUOTE_RE_,"&#39;").replace(goog.string.NULL_RE_,"&#0;"),goog.string.DETECT_DOUBLE_ESCAPING&&(r=r.replace(goog.string.E_RE_,"&#101;"));else{if(!goog.string.ALL_RE_.test(r))return r;r.indexOf("&")!=-1&&(r=r.replace(goog.string.AMP_RE_,"&amp;")),r.indexOf("<")!=-1&&(r=r.replace(goog.string.LT_RE_,"&lt;")),r.indexOf(">")!=-1&&(r=r.replace(goog.string.GT_RE_,"&gt;")),r.indexOf('"')!=-1&&(r=r.replace(goog.string.QUOT_RE_,"&quot;")),r.indexOf("'")!=-1&&(r=r.replace(goog.string.SINGLE_QUOTE_RE_,"&#39;")),r.indexOf("\0")!=-1&&(r=r.replace(goog.string.NULL_RE_,"&#0;")),goog.string.DETECT_DOUBLE_ESCAPING&&r.indexOf("e")!=-1&&(r=r.replace(goog.string.E_RE_,"&#101;"))}return r},goog.string.AMP_RE_=/&/g,goog.string.LT_RE_=/</g,goog.string.GT_RE_=/>/g,goog.string.QUOT_RE_=/"/g,goog.string.SINGLE_QUOTE_RE_=/'/g,goog.string.NULL_RE_=/\x00/g,goog.string.E_RE_=/e/g,goog.string.ALL_RE_=goog.string.DETECT_DOUBLE_ESCAPING?/[\x00&<>"'e]/:/[\x00&<>"']/,goog.string.unescapeEntities=function(r){return goog.string.contains(r,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(r):goog.string.unescapePureXmlEntities_(r):r},goog.string.unescapeEntitiesWithDocument=function(r,e){return goog.string.contains(r,"&")?goog.string.unescapeEntitiesUsingDom_(r,e):r},goog.string.unescapeEntitiesUsingDom_=function(r,e){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},o;return o=e?e.createElement("div"):goog.global.document.createElement("div"),r.replace(goog.string.HTML_ENTITY_PATTERN_,function(n,g){var l=t[n];if(l)return l;if(g.charAt(0)=="#"){var h=+("0"+g.substr(1));isNaN(h)||(l=String.fromCharCode(h))}return l||(o.innerHTML=n+" ",l=o.firstChild.nodeValue.slice(0,-1)),t[n]=l})},goog.string.unescapePureXmlEntities_=function(r){return r.replace(/&([^;]+);/g,function(e,t){switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:if(t.charAt(0)=="#"){var o=+("0"+t.substr(1));if(!isNaN(o))return String.fromCharCode(o)}return e}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(r,e){return goog.string.newLineToBr(r.replace(/ /g," &#160;"),e)},goog.string.preserveSpaces=function(r){return r.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(r,e){for(var t=e.length,o=0;o<t;o++){var n=t==1?e:e.charAt(o);if(r.charAt(0)==n&&r.charAt(r.length-1)==n)return r.substring(1,r.length-1)}return r},goog.string.truncate=function(r,e,t){return t&&(r=goog.string.unescapeEntities(r)),r.length>e&&(r=r.substring(0,e-3)+"..."),t&&(r=goog.string.htmlEscape(r)),r},goog.string.truncateMiddle=function(r,e,t,o){if(t&&(r=goog.string.unescapeEntities(r)),o&&r.length>e){o>e&&(o=e);var n=r.length-o;r=r.substring(0,e-o)+"..."+r.substring(n)}else r.length>e&&(o=Math.floor(e/2),n=r.length-o,r=r.substring(0,o+e%2)+"..."+r.substring(n));return t&&(r=goog.string.htmlEscape(r)),r},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(r){r=String(r);for(var e=['"'],t=0;t<r.length;t++){var o=r.charAt(t),n=o.charCodeAt(0);e[t+1]=goog.string.specialEscapeChars_[o]||(31<n&&127>n?o:goog.string.escapeChar(o))}return e.push('"'),e.join("")},goog.string.escapeString=function(r){for(var e=[],t=0;t<r.length;t++)e[t]=goog.string.escapeChar(r.charAt(t));return e.join("")},goog.string.escapeChar=function(r){if(r in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[r];if(r in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[r]=goog.string.specialEscapeChars_[r];var e,t=r.charCodeAt(0);return 31<t&&127>t?e=r:(256>t?(e="\\x",(16>t||256<t)&&(e+="0")):(e="\\u",4096>t&&(e+="0")),e+=t.toString(16).toUpperCase()),goog.string.jsEscapeCache_[r]=e},goog.string.contains=function(r,e){return r.indexOf(e)!=-1},goog.string.caseInsensitiveContains=function(r,e){return goog.string.contains(r.toLowerCase(),e.toLowerCase())},goog.string.countOf=function(r,e){return r&&e?r.split(e).length-1:0},goog.string.removeAt=function(r,e,t){var o=r;return 0<=e&&e<r.length&&0<t&&(o=r.substr(0,e)+r.substr(e+t,r.length-e-t)),o},goog.string.remove=function(r,e){var t=new RegExp(goog.string.regExpEscape(e),"");return r.replace(t,"")},goog.string.removeAll=function(r,e){var t=new RegExp(goog.string.regExpEscape(e),"g");return r.replace(t,"")},goog.string.regExpEscape=function(r){return String(r).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(r,e){return r.repeat(e)}:function(r,e){return Array(e+1).join(r)},goog.string.padNumber=function(r,e,t){return r=goog.isDef(t)?r.toFixed(t):String(r),t=r.indexOf("."),t==-1&&(t=r.length),goog.string.repeat("0",Math.max(0,e-t))+r},goog.string.makeSafe=function(r){return r==null?"":String(r)},goog.string.buildString=function(r){return Array.prototype.join.call(arguments,"")},goog.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^goog.now()).toString(36)},goog.string.compareVersions=function(r,e){for(var t=0,o=goog.string.trim(String(r)).split("."),n=goog.string.trim(String(e)).split("."),g=Math.max(o.length,n.length),l=0;t==0&&l<g;l++){var h=o[l]||"",c=n[l]||"",_=RegExp("(\\d*)(\\D*)","g"),m=RegExp("(\\d*)(\\D*)","g");do{var E=_.exec(h)||["","",""],w=m.exec(c)||["","",""];if(E[0].length==0&&w[0].length==0)break;var t=E[1].length==0?0:parseInt(E[1],10),B=w[1].length==0?0:parseInt(w[1],10),t=goog.string.compareElements_(t,B)||goog.string.compareElements_(E[2].length==0,w[2].length==0)||goog.string.compareElements_(E[2],w[2])}while(t==0)}return t},goog.string.compareElements_=function(r,e){return r<e?-1:r>e?1:0},goog.string.hashCode=function(r){for(var e=0,t=0;t<r.length;++t)e=31*e+r.charCodeAt(t)>>>0;return e},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(r){var e=Number(r);return e==0&&goog.string.isEmptyOrWhitespace(r)?NaN:e},goog.string.isLowerCamelCase=function(r){return/^[a-z]+([A-Z][a-z]*)*$/.test(r)},goog.string.isUpperCamelCase=function(r){return/^([A-Z][a-z]*)+$/.test(r)},goog.string.toCamelCase=function(r){return String(r).replace(/\-([a-z])/g,function(e,t){return t.toUpperCase()})},goog.string.toSelectorCase=function(r){return String(r).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(r,e){var t=goog.isString(e)?goog.string.regExpEscape(e):"\\s";return r.replace(new RegExp("(^"+(t?"|["+t+"]+":"")+")([a-z])","g"),function(o,n,g){return n+g.toUpperCase()})},goog.string.capitalize=function(r){return String(r.charAt(0)).toUpperCase()+String(r.substr(1)).toLowerCase()},goog.string.parseInt=function(r){return isFinite(r)&&(r=String(r)),goog.isString(r)?/^\s*-?0x/i.test(r)?parseInt(r,16):parseInt(r,10):NaN},goog.string.splitLimit=function(r,e,t){r=r.split(e);for(var o=[];0<t&&r.length;)o.push(r.shift()),t--;return r.length&&o.push(r.join(e)),o},goog.string.editDistance=function(r,e){var t=[],o=[];if(r==e)return 0;if(!r.length||!e.length)return Math.max(r.length,e.length);for(var n=0;n<e.length+1;n++)t[n]=n;for(n=0;n<r.length;n++){o[0]=n+1;for(var g=0;g<e.length;g++)o[g+1]=Math.min(o[g]+1,t[g+1]+1,t[g]+ +(r[n]!=e[g]));for(g=0;g<t.length;g++)t[g]=o[g]}return o[e.length]},goog.asserts={},goog.asserts.ENABLE_ASSERTS=goog.DEBUG,goog.asserts.AssertionError=function(r,e){e.unshift(r),goog.debug.Error.call(this,goog.string.subs.apply(null,e)),e.shift(),this.messagePattern=r},goog.inherits(goog.asserts.AssertionError,goog.debug.Error),goog.asserts.AssertionError.prototype.name="AssertionError",goog.asserts.DEFAULT_ERROR_HANDLER=function(r){throw r},goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER,goog.asserts.doAssertFailure_=function(r,e,t,o){var n="Assertion failed";if(t)var n=n+(": "+t),g=o;else r&&(n+=": "+r,g=e);r=new goog.asserts.AssertionError(""+n,g||[]),goog.asserts.errorHandler_(r)},goog.asserts.setErrorHandler=function(r){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=r)},goog.asserts.assert=function(r,e,t){return goog.asserts.ENABLE_ASSERTS&&!r&&goog.asserts.doAssertFailure_("",null,e,Array.prototype.slice.call(arguments,2)),r},goog.asserts.fail=function(r,e){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(r?": "+r:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(r,e,t){return goog.asserts.ENABLE_ASSERTS&&!goog.isNumber(r)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(r),r],e,Array.prototype.slice.call(arguments,2)),r},goog.asserts.assertString=function(r,e,t){return goog.asserts.ENABLE_ASSERTS&&!goog.isString(r)&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(r),r],e,Array.prototype.slice.call(arguments,2)),r},goog.asserts.assertFunction=function(r,e,t){return goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(r)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(r),r],e,Array.prototype.slice.call(arguments,2)),r},goog.asserts.assertObject=function(r,e,t){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(r)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(r),r],e,Array.prototype.slice.call(arguments,2)),r},goog.asserts.assertArray=function(r,e,t){return goog.asserts.ENABLE_ASSERTS&&!goog.isArray(r)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(r),r],e,Array.prototype.slice.call(arguments,2)),r},goog.asserts.assertBoolean=function(r,e,t){return goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(r)&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(r),r],e,Array.prototype.slice.call(arguments,2)),r},goog.asserts.assertElement=function(r,e,t){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(r)&&r.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(r),r],e,Array.prototype.slice.call(arguments,2)),r},goog.asserts.assertInstanceof=function(r,e,t,o){return!goog.asserts.ENABLE_ASSERTS||r instanceof e||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(e),goog.asserts.getType_(r)],t,Array.prototype.slice.call(arguments,3)),r},goog.asserts.assertObjectPrototypeIsIntact=function(){for(var r in Object.prototype)goog.asserts.fail(r+" should not be enumerable in Object.prototype.")},goog.asserts.getType_=function(r){return r instanceof Function?r.displayName||r.name||"unknown type name":r instanceof Object?r.constructor.displayName||r.constructor.name||Object.prototype.toString.call(r):r===null?"null":typeof r};var jspb={Map:function(r,e){this.arr_=r,this.valueCtor_=e,this.map_={},this.arrClean=!0,0<this.arr_.length&&this.loadFromArray_()}};jspb.Map.prototype.loadFromArray_=function(){for(var r=0;r<this.arr_.length;r++){var e=this.arr_[r],t=e[0];this.map_[t.toString()]=new jspb.Map.Entry_(t,e[1])}this.arrClean=!0},jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var r=this.map_,e;for(e in r)if(Object.prototype.hasOwnProperty.call(r,e)){var t=r[e].valueWrapper;t&&t.toArray()}}}else{for(this.arr_.length=0,r=this.stringKeys_(),r.sort(),e=0;e<r.length;e++){var o=this.map_[r[e]];(t=o.valueWrapper)&&t.toArray(),this.arr_.push([o.key,o.value])}this.arrClean=!0}return this.arr_},jspb.Map.prototype.toObject=function(r,e){for(var t=this.toArray(),o=[],n=0;n<t.length;n++){var g=this.map_[t[n][0].toString()];this.wrapEntry_(g);var l=g.valueWrapper;l?(goog.asserts.assert(e),o.push([g.key,e(r,l)])):o.push([g.key,g.value])}return o},jspb.Map.fromObject=function(r,e,t){e=new jspb.Map([],e);for(var o=0;o<r.length;o++){var n=r[o][0],g=t(r[o][1]);e.set(n,g)}return e},jspb.Map.ArrayIteratorIterable_=function(r){this.idx_=0,this.arr_=r},jspb.Map.ArrayIteratorIterable_.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}},$jscomp.initSymbol(),typeof Symbol<"u"&&($jscomp.initSymbol(),$jscomp.initSymbolIterator(),jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator]=function(){return this}),jspb.Map.prototype.getLength=function(){return this.stringKeys_().length},jspb.Map.prototype.clear=function(){this.map_={},this.arrClean=!1},jspb.Map.prototype.del=function(r){r=r.toString();var e=this.map_.hasOwnProperty(r);return delete this.map_[r],this.arrClean=!1,e},jspb.Map.prototype.getEntryList=function(