(function() {/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var m;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function p(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}var ba="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ca="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
function da(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ea=da(this);function q(a,b){if(b)a:{var c=ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ca(c,a,{configurable:!0,writable:!0,value:b})}}var fa;
if("function"==typeof Object.setPrototypeOf)fa=Object.setPrototypeOf;else{var ha;a:{var ia={Ja:!0},ja={};try{ja.__proto__=ia;ha=ja.Ja;break a}catch(a){}ha=!1}fa=ha?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var la=fa;
q("Symbol",function(a){function b(e){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c("jscomp_symbol_"+(e||"")+"_"+d++,e)}function c(e,f){this.a=e;ca(this,"description",{configurable:!0,writable:!0,value:f})}if(a)return a;c.prototype.toString=function(){return this.a};var d=0;return b});
q("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ca(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ma(aa(this))}})}return a});function ma(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
function t(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
q("WeakMap",function(a){function b(g){this.a=(h+=Math.random()+1).toString();if(g){g=p(g);for(var l;!(l=g.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(g){var l=typeof g;return"object"===l&&null!==g||"function"===l}function e(g){if(!t(g,k)){var l=new c;ca(g,k,{value:l})}}function f(g){var l=Object[g];l&&(Object[g]=function(n){if(n instanceof c)return n;Object.isExtensible(n)&&e(n);return l(n)})}if(function(){if(!a||!Object.seal)return!1;try{var g=Object.seal({}),l=Object.seal({}),
n=new a([[g,2],[l,3]]);if(2!=n.get(g)||3!=n.get(l))return!1;n.delete(g);n.set(l,4);return!n.has(g)&&4==n.get(l)}catch(r){return!1}}())return a;var k="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(g,l){if(!d(g))throw Error("Invalid WeakMap key");e(g);if(!t(g,k))throw Error("WeakMap key fail: "+g);g[k][this.a]=l;return this};b.prototype.get=function(g){return d(g)&&t(g,k)?g[k][this.a]:void 0};b.prototype.has=function(g){return d(g)&&t(g,
k)&&t(g[k],this.a)};b.prototype.delete=function(g){return d(g)&&t(g,k)&&t(g[k],this.a)?delete g[k][this.a]:!1};return b});
q("Map",function(a){function b(){var h={};return h.O=h.next=h.head=h}function c(h,g){var l=h.a;return ma(function(){if(l){for(;l.head!=h.a;)l=l.O;for(;l.next!=l.head;)return l=l.next,{done:!1,value:g(l)};l=null}return{done:!0,value:void 0}})}function d(h,g){var l=g&&typeof g;"object"==l||"function"==l?f.has(g)?l=f.get(g):(l=""+ ++k,f.set(g,l)):l="p_"+g;var n=h.b[l];if(n&&t(h.b,l))for(h=0;h<n.length;h++){var r=n[h];if(g!==g&&r.key!==r.key||g===r.key)return{id:l,list:n,index:h,D:r}}return{id:l,list:n,
index:-1,D:void 0}}function e(h){this.b={};this.a=b();this.size=0;if(h){h=p(h);for(var g;!(g=h.next()).done;)g=g.value,this.set(g[0],g[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),g=new a(p([[h,"s"]]));if("s"!=g.get(h)||1!=g.size||g.get({x:4})||g.set({x:4},"t")!=g||2!=g.size)return!1;var l=g.entries(),n=l.next();if(n.done||n.value[0]!=h||"s"!=n.value[1])return!1;n=l.next();return n.done||4!=n.value[0].x||
"t"!=n.value[1]||!l.next().done?!1:!0}catch(r){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,g){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.b[l.id]=[]);l.D?l.D.value=g:(l.D={next:this.a,O:this.a.O,head:this.a,key:h,value:g},l.list.push(l.D),this.a.O.next=l.D,this.a.O=l.D,this.size++);return this};e.prototype.delete=function(h){h=d(this,h);return h.D&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.b[h.id],h.D.O.next=h.D.next,h.D.next.O=h.D.O,h.D.head=null,this.size--,
!0):!1};e.prototype.clear=function(){this.b={};this.a=this.a.O=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).D};e.prototype.get=function(h){return(h=d(this,h).D)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=function(h,g){for(var l=this.entries(),n;!(n=l.next()).done;)n=n.value,
h.call(g,n[1],n[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var k=0;return e});
q("Set",function(a){function b(c){this.a=new Map;if(c){c=p(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.a.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(p([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
f.value[1]!=f.value[0]?!1:e.next().done}catch(k){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.a.set(c,c);this.size=this.a.size;return this};b.prototype.delete=function(c){c=this.a.delete(c);this.size=this.a.size;return c};b.prototype.clear=function(){this.a.clear();this.size=0};b.prototype.has=function(c){return this.a.has(c)};b.prototype.entries=function(){return this.a.entries()};b.prototype.values=function(){return this.a.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.a.forEach(function(f){return c.call(d,f,f,e)})};return b});function na(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}q("Array.prototype.values",function(a){return a?a:function(){return na(this,function(b,c){return c})}});var goog=goog||{},u=this||self;
function oa(){}function pa(a){var b=typeof a;b="object"!=b?b:a?Array.isArray(a)?"array":b:"null";return"array"==b||"object"==b&&"number"==typeof a.length}function v(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function qa(a){return Object.prototype.hasOwnProperty.call(a,ra)&&a[ra]||(a[ra]=++sa)}var ra="closure_uid_"+(1E9*Math.random()>>>0),sa=0;function ta(a,b,c){return a.call.apply(a.bind,arguments)}
function ua(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}function w(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?w=ta:w=ua;return w.apply(null,arguments)}
function va(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}function x(){return Date.now()}function y(a,b){function c(){}c.prototype=b.prototype;a.W=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Nb=function(d,e,f){for(var k=Array(arguments.length-2),h=2;h<arguments.length;h++)k[h-2]=arguments[h];return b.prototype[e].apply(d,k)}};function z(){0!=wa&&(xa[qa(this)]=this);this.j=this.j;this.i=this.i}var wa=0,xa={};z.prototype.j=!1;z.prototype.la=function(){if(!this.j&&(this.j=!0,this.H(),0!=wa)){var a=qa(this);if(0!=wa&&this.i&&0<this.i.length)throw Error(this+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete xa[a]}};z.prototype.H=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var ya=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},za=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
function Aa(a){a:{var b=Ba;for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:"string"===typeof a?a.charAt(b):a[b]}function Ca(a){return Array.prototype.concat.apply([],arguments)}function Fa(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};function Ga(a){return/^[\s\xa0]*$/.test(a)}var Ha=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};function A(a,b){return-1!=a.indexOf(b)}function Ia(a,b){return a<b?-1:a>b?1:0};var B;a:{var Ja=u.navigator;if(Ja){var Ka=Ja.userAgent;if(Ka){B=Ka;break a}}B=""};function La(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Ma(a){var b={},c;for(c in a)b[c]=a[c];return b}var Na="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Oa(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Na.length;f++)c=Na[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Pa(a){Pa[" "](a);return a}Pa[" "]=oa;function Qa(a,b){var c=Ra;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var Sa=A(B,"Opera"),C=A(B,"Trident")||A(B,"MSIE"),Ta=A(B,"Edge"),Ua=Ta||C,Va=A(B,"Gecko")&&!(A(B.toLowerCase(),"webkit")&&!A(B,"Edge"))&&!(A(B,"Trident")||A(B,"MSIE"))&&!A(B,"Edge"),Wa=A(B.toLowerCase(),"webkit")&&!A(B,"Edge");function Xa(){var a=u.document;return a?a.documentMode:void 0}var Ya;
a:{var Za="",$a=function(){var a=B;if(Va)return/rv:([^\);]+)(\)|;)/.exec(a);if(Ta)return/Edge\/([\d\.]+)/.exec(a);if(C)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Wa)return/WebKit\/(\S+)/.exec(a);if(Sa)return/(?:Version)[ \/]?(\S+)/.exec(a)}();$a&&(Za=$a?$a[1]:"");if(C){var ab=Xa();if(null!=ab&&ab>parseFloat(Za)){Ya=String(ab);break a}}Ya=Za}var Ra={};
function bb(a){return Qa(a,function(){for(var b=0,c=Ha(String(Ya)).split("."),d=Ha(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var k=c[f]||"",h=d[f]||"";do{k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==k[0].length&&0==h[0].length)break;b=Ia(0==k[1].length?0:parseInt(k[1],10),0==h[1].length?0:parseInt(h[1],10))||Ia(0==k[2].length,0==h[2].length)||Ia(k[2],h[2]);k=k[3];h=h[3]}while(0==b)}return 0<=b})}var cb;
if(u.document&&C){var db=Xa();cb=db?db:parseInt(Ya,10)||void 0}else cb=void 0;var eb=cb;var fb=!C||9<=Number(eb),gb=C&&!bb("9"),hb=function(){if(!u.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{u.addEventListener("test",oa,b),u.removeEventListener("test",oa,b)}catch(c){}return a}();function D(a,b){this.type=a;this.a=this.target=b;this.defaultPrevented=!1}D.prototype.b=function(){this.defaultPrevented=!0};function E(a,b){D.call(this,a?a.type:"");this.relatedTarget=this.a=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.pointerId=0;this.pointerType="";this.c=null;if(a){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.a=b;if(b=a.relatedTarget){if(Va){a:{try{Pa(b.nodeName);var e=!0;break a}catch(f){}e=!1}e||(b=null)}}else"mouseover"==
c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(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.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=
a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:ib[a.pointerType]||"";this.c=a;a.defaultPrevented&&this.b()}}y(E,D);var ib={2:"touch",3:"pen",4:"mouse"};E.prototype.b=function(){E.W.b.call(this);var a=this.c;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,gb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var F="closure_listenable_"+(1E6*Math.random()|0),jb=0;function kb(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.ea=e;this.key=++jb;this.$=this.aa=!1}function lb(a){a.$=!0;a.listener=null;a.proxy=null;a.src=null;a.ea=null};function mb(a){this.src=a;this.a={};this.b=0}mb.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.a[f];a||(a=this.a[f]=[],this.b++);var k=nb(a,b,d,e);-1<k?(b=a[k],c||(b.aa=!1)):(b=new kb(b,this.src,f,!!d,e),b.aa=c,a.push(b));return b};function ob(a,b){var c=b.type;if(c in a.a){var d=a.a[c],e=ya(d,b),f;(f=0<=e)&&Array.prototype.splice.call(d,e,1);f&&(lb(b),0==a.a[c].length&&(delete a.a[c],a.b--))}}
function nb(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.$&&f.listener==b&&f.capture==!!c&&f.ea==d)return e}return-1};var pb="closure_lm_"+(1E6*Math.random()|0),qb={},rb=0;function sb(a,b,c,d,e){if(d&&d.once)return tb(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)sb(a,b[f],c,d,e);return null}c=ub(c);return a&&a[F]?a.xa(b,c,v(d)?!!d.capture:!!d,e):vb(a,b,c,!1,d,e)}
function vb(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=v(e)?!!e.capture:!!e;if(k&&!fb)return null;var h=wb(a);h||(a[pb]=h=new mb(a));c=h.add(b,c,d,k,f);if(c.proxy)return c;d=xb();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)hb||(e=k),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(yb(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");rb++;
return c}function xb(){var a=Ab,b=fb?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}function tb(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)tb(a,b[f],c,d,e);return null}c=ub(c);return a&&a[F]?a.ya(b,c,v(d)?!!d.capture:!!d,e):vb(a,b,c,!0,d,e)}
function Bb(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Bb(a,b[f],c,d,e);else(d=v(d)?!!d.capture:!!d,c=ub(c),a&&a[F])?(a=a.c,b=String(b).toString(),b in a.a&&(f=a.a[b],c=nb(f,c,d,e),-1<c&&(lb(f[c]),Array.prototype.splice.call(f,c,1),0==f.length&&(delete a.a[b],a.b--)))):a&&(a=wb(a))&&(b=a.a[b.toString()],a=-1,b&&(a=nb(b,c,d,e)),(c=-1<a?b[a]:null)&&Cb(c))}
function Cb(a){if("number"!==typeof a&&a&&!a.$){var b=a.src;if(b&&b[F])ob(b.c,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(yb(c),d):b.addListener&&b.removeListener&&b.removeListener(d);rb--;(c=wb(b))?(ob(c,a),0==c.b&&(c.src=null,b[pb]=null)):lb(a)}}}function yb(a){return a in qb?qb[a]:qb[a]="on"+a}function Db(a,b){var c=a.listener,d=a.ea||a.src;a.aa&&Cb(a);return c.call(d,b)}
function Ab(a,b){if(a.$)return!0;if(!fb){if(!b)a:{b=["window","event"];for(var c=u,d=0;d<b.length;d++)if(c=c[b[d]],null==c){b=null;break a}b=c}b=new E(b,this);return Db(a,b)}return Db(a,new E(b,this))}function wb(a){a=a[pb];return a instanceof mb?a:null}var Eb="__closure_events_fn_"+(1E9*Math.random()>>>0);function ub(a){if("function"===typeof a)return a;a[Eb]||(a[Eb]=function(b){return a.handleEvent(b)});return a[Eb]};function G(){z.call(this);this.c=new mb(this);this.K=this;this.C=null}y(G,z);G.prototype[F]=!0;m=G.prototype;m.addEventListener=function(a,b,c,d){sb(this,a,b,c,d)};m.removeEventListener=function(a,b,c,d){Bb(this,a,b,c,d)};
function H(a,b){var c,d=a.C;if(d)for(c=[];d;d=d.C)c.push(d);a=a.K;d=b.type||b;if("string"===typeof b)b=new D(b,a);else if(b instanceof D)b.target=b.target||a;else{var e=b;b=new D(d,a);Oa(b,e)}e=!0;if(c)for(var f=c.length-1;0<=f;f--){var k=b.a=c[f];e=Fb(k,d,!0,b)&&e}k=b.a=a;e=Fb(k,d,!0,b)&&e;e=Fb(k,d,!1,b)&&e;if(c)for(f=0;f<c.length;f++)k=b.a=c[f],e=Fb(k,d,!1,b)&&e}
m.H=function(){G.W.H.call(this);if(this.c){var a=this.c,b=0,c;for(c in a.a){for(var d=a.a[c],e=0;e<d.length;e++)++b,lb(d[e]);delete a.a[c];a.b--}}this.C=null};m.xa=function(a,b,c,d){return this.c.add(String(a),b,!1,c,d)};m.ya=function(a,b,c,d){return this.c.add(String(a),b,!0,c,d)};
function Fb(a,b,c,d){b=a.c.a[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var k=b[f];if(k&&!k.$&&k.capture==c){var h=k.listener,g=k.ea||k.src;k.aa&&ob(a.c,k);e=!1!==h.call(g,d)&&e}}return e&&!d.defaultPrevented};var Gb=u.JSON.stringify;function Hb(a,b){this.c=a;this.f=b;this.b=0;this.a=null}Hb.prototype.get=function(){if(0<this.b){this.b--;var a=this.a;this.a=a.next;a.next=null}else a=this.c();return a};function Ib(){this.b=this.a=null}var Kb=new Hb(function(){return new Jb},function(a){a.reset()});Ib.prototype.add=function(a,b){var c=Kb.get();c.set(a,b);this.b?this.b.next=c:this.a=c;this.b=c};function Lb(){var a=Mb,b=null;a.a&&(b=a.a,a.a=a.a.next,a.a||(a.b=null),b.next=null);return b}function Jb(){this.next=this.b=this.a=null}Jb.prototype.set=function(a,b){this.a=a;this.b=b;this.next=null};Jb.prototype.reset=function(){this.next=this.b=this.a=null};function Nb(a){u.setTimeout(function(){throw a;},0)};function Ob(a,b){Pb||Qb();Rb||(Pb(),Rb=!0);Mb.add(a,b)}var Pb;function Qb(){var a=u.Promise.resolve(void 0);Pb=function(){a.then(Sb)}}var Rb=!1,Mb=new Ib;function Sb(){for(var a;a=Lb();){try{a.a.call(a.b)}catch(c){Nb(c)}var b=Kb;b.f(a);100>b.b&&(b.b++,a.next=b.a,b.a=a)}Rb=!1};function Tb(a,b){G.call(this);this.b=a||1;this.a=b||u;this.f=w(this.bb,this);this.g=x()}y(Tb,G);m=Tb.prototype;m.ca=!1;m.N=null;m.bb=function(){if(this.ca){var a=x()-this.g;0<a&&a<.8*this.b?this.N=this.a.setTimeout(this.f,this.b-a):(this.N&&(this.a.clearTimeout(this.N),this.N=null),H(this,"tick"),this.ca&&(Ub(this),this.start()))}};m.start=function(){this.ca=!0;this.N||(this.N=this.a.setTimeout(this.f,this.b),this.g=x())};function Ub(a){a.ca=!1;a.N&&(a.a.clearTimeout(a.N),a.N=null)}
m.H=function(){Tb.W.H.call(this);Ub(this);delete this.a};function Vb(a,b,c){if("function"===typeof a)c&&(a=w(a,c));else if(a&&"function"==typeof a.handleEvent)a=w(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:u.setTimeout(a,b||0)};function I(a,b,c){z.call(this);this.g=null!=c?a.bind(c):a;this.h=b;this.b=null;this.c=!1;this.a=null}I.prototype=ba(z.prototype);I.prototype.constructor=I;if(la)la(I,z);else for(var J in z)if("prototype"!=J)if(Object.defineProperties){var Wb=Object.getOwnPropertyDescriptor(z,J);Wb&&Object.defineProperty(I,J,Wb)}else I[J]=z[J];I.W=z.prototype;I.prototype.f=function(a){this.b=arguments;this.a?this.c=!0:Xb(this)};
I.prototype.H=function(){z.prototype.H.call(this);this.a&&(u.clearTimeout(this.a),this.a=null,this.c=!1,this.b=null)};function Xb(a){a.a=Vb(function(){a.a=null;a.c&&(a.c=!1,Xb(a))},a.h);var b=a.b;a.b=null;a.g.apply(null,b)};function Yb(a){z.call(this);this.b=a;this.a={}}y(Yb,z);var Zb=[];function $b(a,b,c,d){Array.isArray(c)||(c&&(Zb[0]=c.toString()),c=Zb);for(var e=0;e<c.length;e++){var f=sb(b,c[e],d||a.handleEvent,!1,a.b||a);if(!f)break;a.a[f.key]=f}}function ac(a){La(a.a,function(b,c){this.a.hasOwnProperty(c)&&Cb(b)},a);a.a={}}Yb.prototype.H=function(){Yb.W.H.call(this);ac(this)};Yb.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function bc(){this.a=!0}function cc(a,b,c,d,e,f){a.info(function(){if(a.a)if(f){var k="";for(var h=f.split("&"),g=0;g<h.length;g++){var l=h[g].split("=");if(1<l.length){var n=l[0];l=l[1];var r=n.split("_");k=2<=r.length&&"type"==r[1]?k+(n+"="+l+"&"):k+(n+"=redacted&")}}}else k=null;else k=f;return"XMLHTTP REQ ("+d+") [attempt "+e+"]: "+b+"\n"+c+"\n"+k})}function dc(a,b,c,d,e,f,k){a.info(function(){return"XMLHTTP RESP ("+d+") [ attempt "+e+"]: "+b+"\n"+c+"\n"+f+" "+k})}
function K(a,b,c,d){a.info(function(){return"XMLHTTP TEXT ("+b+"): "+ec(a,c)+(d?" "+d:"")})}function fc(a,b){a.info(function(){return"TIMEOUT: "+b})}bc.prototype.info=function(){};function ec(a,b){if(!a.a)return b;if(!b)return null;try{var c=JSON.parse(b);if(c)for(a=0;a<c.length;a++)if(Array.isArray(c[a])){var d=c[a];if(!(2>d.length)){var e=d[1];if(Array.isArray(e)&&!(1>e.length)){var f=e[0];if("noop"!=f&&"stop"!=f&&"close"!=f)for(var k=1;k<e.length;k++)e[k]=""}}}return Gb(c)}catch(h){return b}};var L={},gc=null;function hc(){return gc=gc||new G}L.Ha="serverreachability";function ic(a){D.call(this,L.Ha,a)}y(ic,D);function jc(a){var b=hc();H(b,new ic(b,a))}L.STAT_EVENT="statevent";function kc(a,b){D.call(this,L.STAT_EVENT,a);this.stat=b}y(kc,D);function M(a){var b=hc();H(b,new kc(b,a))}L.Ia="timingevent";function lc(a){D.call(this,L.Ia,a)}y(lc,D);function mc(a,b){if("function"!==typeof a)throw Error("Fn must not be null and must be a function");return u.setTimeout(function(){a()},b)};var nc={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Fa:7,TIMEOUT:8,ub:9};var oc={ib:"complete",Eb:"success",Ga:"error",Fa:"abort",wb:"ready",xb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",vb:"progress",lb:"downloadprogress",Mb:"uploadprogress"};function pc(){}pc.prototype.a=null;function qc(a){var b;(b=a.a)||(b=a.a={});return b};function rc(){}var sc={OPEN:"a",hb:"b",Ga:"c",tb:"d"};function tc(){D.call(this,"d")}y(tc,D);function uc(){D.call(this,"c")}y(uc,D);var vc;function wc(){}y(wc,pc);vc=new wc;function xc(a,b,c,d){this.g=a;this.c=b;this.f=c;this.U=d||1;this.K=new Yb(this);this.S=yc;a=Ua?125:void 0;this.T=new Tb(a);this.B=null;this.b=!1;this.j=this.l=this.i=this.I=this.u=this.V=this.o=null;this.s=[];this.a=null;this.F=0;this.h=this.m=null;this.P=-1;this.v=!1;this.R=0;this.G=null;this.Y=this.C=this.X=this.J=!1}var yc=45E3,zc={},Ac={};m=xc.prototype;m.setTimeout=function(a){this.S=a};function Bc(a,b,c){a.I=1;a.i=Cc(N(b));a.j=c;a.J=!0;Dc(a,null)}
function Dc(a,b){a.u=x();Ec(a);a.l=N(a.i);var c=a.l,d=a.U;Array.isArray(d)||(d=[String(d)]);Fc(c.b,"t",d);a.F=0;a.a=Gc(a.g,a.g.C?b:null);0<a.R&&(a.G=new I(w(a.Ea,a,a.a),a.R));$b(a.K,a.a,"readystatechange",a.$a);b=a.B?Ma(a.B):{};a.j?(a.m||(a.m="POST"),b["Content-Type"]="application/x-www-form-urlencoded",a.a.da(a.l,a.m,a.j,b)):(a.m="GET",a.a.da(a.l,a.m,null,b));jc(1);cc(a.c,a.m,a.l,a.f,a.U,a.j)}m.$a=function(a){a=a.target;var b=this.G;b&&3==O(a)?b.f():this.Ea(a)};
m.Ea=function(a){try{if(a==this.a)a:{var b=O(this.a),c=this.a.wa(),d=this.a.Z();if(!(3>b||3==b&&!Ua&&!this.a.ba())){this.v||4!=b||7==c||(8==c||0>=d?jc(3):jc(2));Hc(this);var e=this.a.Z();this.P=e;var f=this.a.ba();this.b=200==e;dc(this.c,this.m,this.l,this.f,this.U,b,e);if(this.b){if(this.X&&!this.C){b:{if(this.a){var k,h=this.a;if((k=h.a?h.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Ga(k)){var g=k;break b}}g=null}if(g)K(this.c,this.f,g,"Initial handshake response via X-HTTP-Initial-Response"),
this.C=!0,Jc(this,g);else{this.b=!1;this.h=3;M(12);P(this);Kc(this);break a}}this.J?(Lc(this,b,f),Ua&&this.b&&3==b&&($b(this.K,this.T,"tick",this.Za),this.T.start())):(K(this.c,this.f,f,null),Jc(this,f));4==b&&P(this);this.b&&!this.v&&(4==b?Nc(this.g,this):(this.b=!1,Ec(this)))}else 400==e&&0<f.indexOf("Unknown SID")?(this.h=3,M(12)):(this.h=0,M(13)),P(this),Kc(this)}}}catch(l){}finally{}};
function Lc(a,b,c){for(var d=!0;!a.v&&a.F<c.length;){var e=Oc(a,c);if(e==Ac){4==b&&(a.h=4,M(14),d=!1);K(a.c,a.f,null,"[Incomplete Response]");break}else if(e==zc){a.h=4;M(15);K(a.c,a.f,c,"[Invalid Chunk]");d=!1;break}else K(a.c,a.f,e,null),Jc(a,e)}4==b&&0==c.length&&(a.h=1,M(16),d=!1);a.b=a.b&&d;d?0<c.length&&!a.Y&&(a.Y=!0,b=a.g,b.a==a&&b.X&&!b.G&&(b.c.info("Great, no buffering proxy detected. Bytes received: "+c.length),Pc(b),b.G=!0,M(11))):(K(a.c,a.f,c,"[Invalid Chunked Response]"),P(a),Kc(a))}
m.Za=function(){if(this.a){var a=O(this.a),b=this.a.ba();this.F<b.length&&(Hc(this),Lc(this,a,b),this.b&&4!=a&&Ec(this))}};function Oc(a,b){var c=a.F,d=b.indexOf("\n",c);if(-1==d)return Ac;c=Number(b.substring(c,d));if(isNaN(c))return zc;d+=1;if(d+c>b.length)return Ac;b=b.substr(d,c);a.F=d+c;return b}m.cancel=function(){this.v=!0;P(this)};function Ec(a){a.V=x()+a.S;Qc(a,a.S)}function Qc(a,b){if(null!=a.o)throw Error("WatchDog timer not null");a.o=mc(w(a.Ya,a),b)}
function Hc(a){a.o&&(u.clearTimeout(a.o),a.o=null)}m.Ya=function(){this.o=null;var a=x();0<=a-this.V?(fc(this.c,this.l),2!=this.I&&(jc(3),M(17)),P(this),this.h=2,Kc(this)):Qc(this,this.V-a)};function Kc(a){0==a.g.A||a.v||Nc(a.g,a)}function P(a){Hc(a);var b=a.G;b&&"function"==typeof b.la&&b.la();a.G=null;Ub(a.T);ac(a.K);a.a&&(b=a.a,a.a=null,b.abort(),b.la())}
function Jc(a,b){try{var c=a.g;if(0!=c.A&&(c.a==a||Rc(c.b,a)))if(c.J=a.P,!a.C&&Rc(c.b,a)&&3==c.A){try{var d=c.ra.a.parse(b)}catch(Ic){d=null}if(Array.isArray(d)&&3==d.length){var e=d;if(0==e[0])a:{if(!c.j){if(c.a)if(c.a.u+3E3<a.u)Sc(c),Tc(c);else break a;Uc(c);M(18)}}else c.qa=e[1],0<c.qa-c.S&&37500>e[2]&&c.I&&0==c.o&&!c.m&&(c.m=mc(w(c.Va,c),6E3));if(1>=Vc(c.b)&&c.ga){try{c.ga()}catch(Ic){}c.ga=void 0}}else Q(c,11)}else if((a.C||c.a==a)&&Sc(c),!Ga(b))for(b=d=c.ra.a.parse(b),d=0;d<b.length;d++)if(e=
b[d],c.S=e[0],e=e[1],2==c.A)if("c"==e[0]){c.K=e[1];c.ia=e[2];var f=e[3];null!=f&&(c.ja=f,c.c.info("VER="+c.ja));var k=e[4];null!=k&&(c.ma=k,c.c.info("SVER="+c.ma));var h=e[5];if(null!=h&&"number"===typeof h&&0<h){var g=1.5*h;c.F=g;c.c.info("backChannelRequestTimeoutMs_="+g)}g=c;var l=a.a;if(l){var n=l.a?l.a.getResponseHeader("X-Client-Wire-Protocol"):null;if(n){var r=g.b;!r.a&&(A(n,"spdy")||A(n,"quic")||A(n,"h2"))&&(r.f=r.g,r.a=new Set,r.b&&(Wc(r,r.b),r.b=null))}if(g.v){var zb=l.a?l.a.getResponseHeader("X-HTTP-Session-Id"):
null;zb&&(g.pa=zb,R(g.B,g.v,zb))}}c.A=3;c.f&&c.f.va();c.X&&(c.P=x()-a.u,c.c.info("Handshake RTT: "+c.P+"ms"));g=c;var Da=a;g.na=Xc(g,g.C?g.ia:null,g.ha);if(Da.C){Yc(g.b,Da);var Ea=Da,Mc=g.F;Mc&&Ea.setTimeout(Mc);Ea.o&&(Hc(Ea),Ec(Ea));g.a=Da}else Zc(g);0<c.g.length&&$c(c)}else"stop"!=e[0]&&"close"!=e[0]||Q(c,7);else 3==c.A&&("stop"==e[0]||"close"==e[0]?"stop"==e[0]?Q(c,7):ad(c):"noop"!=e[0]&&c.f&&c.f.ua(e),c.o=0);jc(4)}catch(Ic){}};function bd(a){if(a.L&&"function"==typeof a.L)return a.L();if("string"===typeof a)return a.split("");if(pa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}b=[];c=0;for(d in a)b[c++]=a[d];return b}
function cd(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(pa(a)||"string"===typeof a)za(a,b,void 0);else{if(a.M&&"function"==typeof a.M)var c=a.M();else if(a.L&&"function"==typeof a.L)c=void 0;else if(pa(a)||"string"===typeof a){c=[];for(var d=a.length,e=0;e<d;e++)c.push(e)}else for(e in c=[],d=0,a)c[d++]=e;d=bd(a);e=d.length;for(var f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)}};function S(a,b){this.b={};this.a=[];this.c=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof S)for(c=a.M(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])}m=S.prototype;m.L=function(){dd(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};m.M=function(){dd(this);return this.a.concat()};
function dd(a){if(a.c!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];T(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.c!=a.a.length){var e={};for(c=b=0;b<a.a.length;)d=a.a[b],T(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}m.get=function(a,b){return T(this.b,a)?this.b[a]:b};m.set=function(a,b){T(this.b,a)||(this.c++,this.a.push(a));this.b[a]=b};m.forEach=function(a,b){for(var c=this.M(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
function T(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var ed=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function fd(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};function U(a,b){this.c=this.j=this.f="";this.h=null;this.i=this.g="";this.a=!1;if(a instanceof U){this.a=void 0!==b?b:a.a;gd(this,a.f);this.j=a.j;hd(this,a.c);id(this,a.h);this.g=a.g;b=a.b;var c=new jd;c.c=b.c;b.a&&(c.a=new S(b.a),c.b=b.b);kd(this,c);this.i=a.i}else a&&(c=String(a).match(ed))?(this.a=!!b,gd(this,c[1]||"",!0),this.j=ld(c[2]||""),hd(this,c[3]||"",!0),id(this,c[4]),this.g=ld(c[5]||"",!0),kd(this,c[6]||"",!0),this.i=ld(c[7]||"")):(this.a=!!b,this.b=new jd(null,this.a))}
U.prototype.toString=function(){var a=[],b=this.f;b&&a.push(md(b,nd,!0),":");var c=this.c;if(c||"file"==b)a.push("//"),(b=this.j)&&a.push(md(b,nd,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.h,null!=c&&a.push(":",String(c));if(c=this.g)this.c&&"/"!=c.charAt(0)&&a.push("/"),a.push(md(c,"/"==c.charAt(0)?od:pd,!0));(c=this.b.toString())&&a.push("?",c);(c=this.i)&&a.push("#",md(c,qd));return a.join("")};function N(a){return new U(a)}
function gd(a,b,c){a.f=c?ld(b,!0):b;a.f&&(a.f=a.f.replace(/:$/,""))}function hd(a,b,c){a.c=c?ld(b,!0):b}function id(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.h=b}else a.h=null}function kd(a,b,c){b instanceof jd?(a.b=b,rd(a.b,a.a)):(c||(b=md(b,sd)),a.b=new jd(b,a.a))}function R(a,b,c){a.b.set(b,c)}function Cc(a){R(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^x()).toString(36));return a}
function td(a){return a instanceof U?N(a):new U(a,void 0)}function ud(a,b,c,d){var e=new U(null,void 0);a&&gd(e,a);b&&hd(e,b);c&&id(e,c);d&&(e.g=d);return e}function ld(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function md(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,vd),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function vd(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}
var nd=/[#\/\?@]/g,pd=/[#\?:]/g,od=/[#\?]/g,sd=/[#\?@]/g,qd=/#/g;function jd(a,b){this.b=this.a=null;this.c=a||null;this.f=!!b}function V(a){a.a||(a.a=new S,a.b=0,a.c&&fd(a.c,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))}m=jd.prototype;m.add=function(a,b){V(this);this.c=null;a=W(this,a);var c=this.a.get(a);c||this.a.set(a,c=[]);c.push(b);this.b+=1;return this};
function wd(a,b){V(a);b=W(a,b);T(a.a.b,b)&&(a.c=null,a.b-=a.a.get(b).length,a=a.a,T(a.b,b)&&(delete a.b[b],a.c--,a.a.length>2*a.c&&dd(a)))}function xd(a,b){V(a);b=W(a,b);return T(a.a.b,b)}m.forEach=function(a,b){V(this);this.a.forEach(function(c,d){za(c,function(e){a.call(b,e,d,this)},this)},this)};m.M=function(){V(this);for(var a=this.a.L(),b=this.a.M(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
m.L=function(a){V(this);var b=[];if("string"===typeof a)xd(this,a)&&(b=Ca(b,this.a.get(W(this,a))));else{a=this.a.L();for(var c=0;c<a.length;c++)b=Ca(b,a[c])}return b};m.set=function(a,b){V(this);this.c=null;a=W(this,a);xd(this,a)&&(this.b-=this.a.get(a).length);this.a.set(a,[b]);this.b+=1;return this};m.get=function(a,b){if(!a)return b;a=this.L(a);return 0<a.length?String(a[0]):b};function Fc(a,b,c){wd(a,b);0<c.length&&(a.c=null,a.a.set(W(a,b),Fa(c)),a.b+=c.length)}
m.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var a=[],b=this.a.M(),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.L(d);for(var f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+encodeURIComponent(String(d[f])));a.push(k)}}return this.c=a.join("&")};function W(a,b){b=String(b);a.f&&(b=b.toLowerCase());return b}function rd(a,b){b&&!a.f&&(V(a),a.c=null,a.a.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(wd(this,d),Fc(this,e,c))},a));a.f=b};function yd(a,b){this.b=a;this.a=b};function zd(a){this.g=a||Ad;u.PerformanceNavigationTiming?(a=u.performance.getEntriesByType("navigation"),a=0<a.length&&("hq"==a[0].nextHopProtocol||"h2"==a[0].nextHopProtocol)):a=!!(u.ka&&u.ka.Aa&&u.ka.Aa()&&u.ka.Aa().Ob);this.f=a?this.g:1;this.a=null;1<this.f&&(this.a=new Set);this.b=null;this.c=[]}var Ad=10;function Bd(a){return a.b?!0:a.a?a.a.size>=a.f:!1}function Vc(a){return a.b?1:a.a?a.a.size:0}function Rc(a,b){return a.b?a.b==b:a.a?a.a.has(b):!1}function Wc(a,b){a.a?a.a.add(b):a.b=b}
function Yc(a,b){a.b&&a.b==b?a.b=null:a.a&&a.a.has(b)&&a.a.delete(b)}zd.prototype.cancel=function(){this.c=Cd(this);if(this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){for(var a=p(this.a.values()),b=a.next();!b.done;b=a.next())b.value.cancel();this.a.clear()}};function Cd(a){if(null!=a.b)return a.c.concat(a.b.s);if(null!=a.a&&0!==a.a.size){var b=a.c;a=p(a.a.values());for(var c=a.next();!c.done;c=a.next())b=b.concat(c.value.s);return b}return Fa(a.c)};function Dd(){}Dd.prototype.stringify=function(a){return u.JSON.stringify(a,void 0)};Dd.prototype.parse=function(a){return u.JSON.parse(a,void 0)};function Ed(){this.a=new Dd}function Fd(a,b,c){var d=c||"";try{cd(a,function(e,f){var k=e;v(e)&&(k=Gb(e));b.push(d+f+"="+encodeURIComponent(k))})}catch(e){throw b.push(d+"type="+encodeURIComponent("_badmap")),e;}};function Gd(a,b){var c=new bc;if(u.Image){var d=new Image;d.onload=va(Hd,c,d,"TestLoadImage: loaded",!0,b);d.onerror=va(Hd,c,d,"TestLoadImage: error",!1,b);d.onabort=va(Hd,c,d,"TestLoadImage: abort",!1,b);d.ontimeout=va(Hd,c,d,"TestLoadImage: timeout",!1,b);u.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);d.src=a}else b(!1)}function Hd(a,b,c,d,e){try{b.onload=null,b.onerror=null,b.onabort=null,b.ontimeout=null,e(d)}catch(f){}};var Id=u.JSON.parse;function X(a){G.call(this);this.headers=new S;this.I=a||null;this.b=!1;this.s=this.a=null;this.B="";this.h=0;this.f="";this.g=this.v=this.l=this.u=!1;this.o=0;this.m=null;this.J=Jd;this.F=this.G=!1}y(X,G);var Jd="",Kd=/^https?$/i,Ld=["POST","PUT"];m=X.prototype;
m.da=function(a,b,c,d){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.B+"; newUri="+a);b=b?b.toUpperCase():"GET";this.B=a;this.f="";this.h=0;this.u=!1;this.b=!0;this.a=new XMLHttpRequest;this.s=this.I?qc(this.I):qc(vc);this.a.onreadystatechange=w(this.Ba,this);try{this.v=!0,this.a.open(b,String(a),!0),this.v=!1}catch(f){Md(this,f);return}a=c||"";var e=new S(this.headers);d&&cd(d,function(f,k){e.set(k,f)});d=Aa(e.M());c=u.FormData&&a instanceof u.FormData;!(0<=
ya(Ld,b))||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(f,k){this.a.setRequestHeader(k,f)},this);this.J&&(this.a.responseType=this.J);"withCredentials"in this.a&&this.a.withCredentials!==this.G&&(this.a.withCredentials=this.G);try{Nd(this),0<this.o&&((this.F=Od(this.a))?(this.a.timeout=this.o,this.a.ontimeout=w(this.za,this)):this.m=Vb(this.za,this.o,this)),this.l=!0,this.a.send(a),this.l=!1}catch(f){Md(this,f)}};
function Od(a){return C&&bb(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout}function Ba(a){return"content-type"==a.toLowerCase()}m.za=function(){"undefined"!=typeof goog&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,H(this,"timeout"),this.abort(8))};function Md(a,b){a.b=!1;a.a&&(a.g=!0,a.a.abort(),a.g=!1);a.f=b;a.h=5;Pd(a);Qd(a)}function Pd(a){a.u||(a.u=!0,H(a,"complete"),H(a,"error"))}
m.abort=function(a){this.a&&this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1,this.h=a||7,H(this,"complete"),H(this,"abort"),Qd(this))};m.H=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),Qd(this,!0));X.W.H.call(this)};m.Ba=function(){this.j||(this.v||this.l||this.g?Rd(this):this.Xa())};m.Xa=function(){Rd(this)};
function Rd(a){if(a.b&&"undefined"!=typeof goog&&(!a.s[1]||4!=O(a)||2!=a.Z()))if(a.l&&4==O(a))Vb(a.Ba,0,a);else if(H(a,"readystatechange"),4==O(a)){a.b=!1;try{var b=a.Z();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var f=String(a.B).match(ed)[1]||null;if(!f&&u.self&&u.self.location){var k=u.self.location.protocol;f=k.substr(0,k.length-1)}e=!Kd.test(f?f.toLowerCase():"")}d=e}if(d)H(a,"complete"),H(a,"success");
else{a.h=6;try{var h=2<O(a)?a.a.statusText:""}catch(g){h=""}a.f=h+" ["+a.Z()+"]";Pd(a)}}finally{Qd(a)}}}function Qd(a,b){if(a.a){Nd(a);var c=a.a,d=a.s[0]?oa:null;a.a=null;a.s=null;b||H(a,"ready");try{c.onreadystatechange=d}catch(e){}}}function Nd(a){a.a&&a.F&&(a.a.ontimeout=null);a.m&&(u.clearTimeout(a.m),a.m=null)}function O(a){return a.a?a.a.readyState:0}m.Z=function(){try{return 2<O(this)?this.a.status:-1}catch(a){return-1}};m.ba=function(){try{return this.a?this.a.responseText:""}catch(a){return""}};
m.Ra=function(a){if(this.a){var b=this.a.responseText;a&&0==b.indexOf(a)&&(b=b.substring(a.length));return Id(b)}};m.wa=function(){return this.h};m.Sa=function(){return"string"===typeof this.f?this.f:String(this.f)};function Sd(a){var b="";La(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});return b}function Td(a,b,c){a:{for(d in c){var d=!1;break a}d=!0}d||(c=Sd(c),"string"===typeof a?(encodeURIComponent(String(b)),null!=c&&encodeURIComponent(String(c))):R(a,b,c))};function Ud(a,b,c){return c&&c.internalChannelParams?c.internalChannelParams[a]||b:b}
function Vd(a){this.ma=0;this.g=[];this.c=new bc;this.ia=this.na=this.B=this.ha=this.a=this.pa=this.v=this.Y=this.i=this.R=this.l=null;this.Ta=this.T=0;this.Oa=Ud("failFast",!1,a);this.I=this.m=this.j=this.h=this.f=null;this.U=!0;this.J=this.qa=this.S=-1;this.V=this.o=this.u=0;this.Ka=Ud("baseRetryDelayMs",5E3,a);this.Ua=Ud("retryDelaySeedMs",1E4,a);this.Pa=Ud("forwardChannelMaxRetries",2,a);this.oa=Ud("forwardChannelRequestTimeoutMs",2E4,a);this.Qa=a&&a.g||void 0;this.F=void 0;this.C=a&&a.supportsCrossDomainXhr||
!1;this.K="";this.b=new zd(a&&a.concurrentRequestLimit);this.ra=new Ed;this.fa=a&&a.fastHandshake||!1;this.Ma=a&&a.b||!1;a&&a.f&&(this.c.a=!1);a&&a.forceLongPolling&&(this.U=!1);this.X=!this.fa&&this.U&&a&&a.detectBufferingProxy||!1;this.ga=void 0;this.P=0;this.G=!1;this.s=null;(this.Na=a&&a.c||!1)&&this.c.info("Opt-in to enable Chrome Origin Trials.")}m=Vd.prototype;m.ja=8;m.A=1;
function ad(a){Wd(a);if(3==a.A){var b=a.T++,c=N(a.B);R(c,"SID",a.K);R(c,"RID",b);R(c,"TYPE","terminate");Xd(a,c);b=new xc(a,a.c,b,void 0);b.I=2;b.i=Cc(N(c));c=!1;u.navigator&&u.navigator.sendBeacon&&(c=u.navigator.sendBeacon(b.i.toString(),""));!c&&u.Image&&((new Image).src=b.i,c=!0);c||(b.a=Gc(b.g,null),b.a.da(b.i));b.u=x();Ec(b)}Yd(a)}function Tc(a){a.a&&(Pc(a),a.a.cancel(),a.a=null)}
function Wd(a){Tc(a);a.j&&(u.clearTimeout(a.j),a.j=null);Sc(a);a.b.cancel();a.h&&("number"===typeof a.h&&u.clearTimeout(a.h),a.h=null)}function Zd(a,b){a.g.push(new yd(a.Ta++,b));3==a.A&&$c(a)}function $c(a){Bd(a.b)||a.h||(a.h=!0,Ob(a.Da,a),a.u=0)}function $d(a,b){if(Vc(a.b)>=a.b.f-(a.h?1:0))return!1;if(a.h)return a.g=b.s.concat(a.g),!0;if(1==a.A||2==a.A||a.u>=(a.Oa?0:a.Pa))return!1;a.h=mc(w(a.Da,a,b),ae(a,a.u));a.u++;return!0}
m.Da=function(a){if(this.h)if(this.h=null,1==this.A){if(!a){this.T=Math.floor(1E5*Math.random());a=this.T++;var b=new xc(this,this.c,a,void 0),c=this.l;this.R&&(c?(c=Ma(c),Oa(c,this.R)):c=this.R);null===this.i&&(b.B=c);var d;if(this.fa)a:{for(var e=d=0;e<this.g.length;e++){b:{var f=this.g[e];if("__data__"in f.a&&(f=f.a.__data__,"string"===typeof f)){f=f.length;break b}f=void 0}if(void 0===f)break;d+=f;if(4096<d){d=e;break a}if(4096===d||e===this.g.length-1){d=e+1;break a}}d=1E3}else d=1E3;d=be(this,
b,d);e=N(this.B);R(e,"RID",a);R(e,"CVER",22);this.v&&R(e,"X-HTTP-Session-Id",this.v);Xd(this,e);this.i&&c&&Td(e,this.i,c);Wc(this.b,b);this.Ma&&R(e,"TYPE","init");this.fa?(R(e,"$req",d),R(e,"SID","null"),b.X=!0,Bc(b,e,null)):Bc(b,e,d);this.A=2}}else 3==this.A&&(a?ce(this,a):0==this.g.length||Bd(this.b)||ce(this))};
function ce(a,b){var c;b?c=b.f:c=a.T++;var d=N(a.B);R(d,"SID",a.K);R(d,"RID",c);R(d,"AID",a.S);Xd(a,d);a.i&&a.l&&Td(d,a.i,a.l);c=new xc(a,a.c,c,a.u+1);null===a.i&&(c.B=a.l);b&&(a.g=b.s.concat(a.g));b=be(a,c,1E3);c.setTimeout(Math.round(.5*a.oa)+Math.round(.5*a.oa*Math.random()));Wc(a.b,c);Bc(c,d,b)}function Xd(a,b){a.f&&cd({},function(c,d){R(b,d,c)})}
function be(a,b,c){c=Math.min(a.g.length,c);var d=a.f?w(a.f.La,a.f,a):null;a:for(var e=a.g,f=-1;;){var k=["count="+c];-1==f?0<c?(f=e[0].b,k.push("ofs="+f)):f=0:k.push("ofs="+f);for(var h=!0,g=0;g<c;g++){var l=e[g].b,n=e[g].a;l-=f;if(0>l)f=Math.max(0,e[g].b-100),h=!1;else try{Fd(n,k,"req"+l+"_")}catch(r){d&&d(n)}}if(h){d=k.join("&");break a}}a=a.g.splice(0,c);b.s=a;return d}function Zc(a){a.a||a.j||(a.V=1,Ob(a.Ca,a),a.o=0)}
function Uc(a){if(a.a||a.j||3<=a.o)return!1;a.V++;a.j=mc(w(a.Ca,a),ae(a,a.o));a.o++;return!0}m.Ca=function(){this.j=null;de(this);if(this.X&&!(this.G||null==this.a||0>=this.P)){var a=2*this.P;this.c.info("BP detection timer enabled: "+a);this.s=mc(w(this.Wa,this),a)}};m.Wa=function(){this.s&&(this.s=null,this.c.info("BP detection timeout reached."),this.c.info("Buffering proxy detected and switch to long-polling!"),this.I=!1,this.G=!0,M(10),Tc(this),de(this))};
function Pc(a){null!=a.s&&(u.clearTimeout(a.s),a.s=null)}function de(a){a.a=new xc(a,a.c,"rpc",a.V);null===a.i&&(a.a.B=a.l);a.a.R=0;var b=N(a.na);R(b,"RID","rpc");R(b,"SID",a.K);R(b,"CI",a.I?"0":"1");R(b,"AID",a.S);Xd(a,b);R(b,"TYPE","xmlhttp");a.i&&a.l&&Td(b,a.i,a.l);a.F&&a.a.setTimeout(a.F);var c=a.a;a=a.ia;c.I=1;c.i=Cc(N(b));c.j=null;c.J=!0;Dc(c,a)}m.Va=function(){null!=this.m&&(this.m=null,Tc(this),Uc(this),M(19))};function Sc(a){null!=a.m&&(u.clearTimeout(a.m),a.m=null)}
function Nc(a,b){var c=null;if(a.a==b){Sc(a);Pc(a);a.a=null;var d=2}else if(Rc(a.b,b))c=b.s,Yc(a.b,b),d=1;else return;a.J=b.P;if(0!=a.A)if(b.b)if(1==d){c=b.j?b.j.length:0;b=x()-b.u;var e=a.u;d=hc();H(d,new lc(d,c,b,e));$c(a)}else Zc(a);else if(e=b.h,3==e||0==e&&0<a.J||!(1==d&&$d(a,b)||2==d&&Uc(a)))switch(c&&0<c.length&&(b=a.b,b.c=b.c.concat(c)),e){case 1:Q(a,5);break;case 4:Q(a,10);break;case 3:Q(a,6);break;default:Q(a,2)}}
function ae(a,b){var c=a.Ka+Math.floor(Math.random()*a.Ua);a.f||(c*=2);return c*b}function Q(a,b){a.c.info("Error code "+b);if(2==b){var c=null;a.f&&(c=null);var d=w(a.ab,a);c||(c=new U("//www.google.com/images/cleardot.gif"),u.location&&"http"==u.location.protocol||gd(c,"https"),Cc(c));Gd(c.toString(),d)}else M(2);a.A=0;a.f&&a.f.ta(b);Yd(a);Wd(a)}m.ab=function(a){a?(this.c.info("Successfully pinged google.com"),M(2)):(this.c.info("Failed to ping google.com"),M(1))};
function Yd(a){a.A=0;a.J=-1;if(a.f){if(0!=Cd(a.b).length||0!=a.g.length)a.b.c.length=0,Fa(a.g),a.g.length=0;a.f.sa()}}function Xc(a,b,c){var d=td(c);if(""!=d.c)b&&hd(d,b+"."+d.c),id(d,d.h);else{var e=u.location;d=ud(e.protocol,b?b+"."+e.hostname:e.hostname,+e.port,c)}a.Y&&La(a.Y,function(f,k){R(d,k,f)});b=a.v;c=a.pa;b&&c&&R(d,b,c);R(d,"VER",a.ja);Xd(a,d);return d}function Gc(a,b){if(b&&!a.C)throw Error("Can't create secondary domain capable XhrIo object.");b=new X(a.Qa);b.G=a.C;return b}
function ee(){}m=ee.prototype;m.va=function(){};m.ua=function(){};m.ta=function(){};m.sa=function(){};m.La=function(){};function fe(){if(C&&!(10<=Number(eb)))throw Error("Environmental error: no available transport.");}fe.prototype.a=function(a,b){return new Y(a,b)};
function Y(a,b){G.call(this);this.a=new Vd(b);this.o=a;this.b=b&&b.messageUrlParams||null;a=b&&b.messageHeaders||null;b&&b.clientProtocolHeaderRequired&&(a?a["X-Client-Protocol"]="webchannel":a={"X-Client-Protocol":"webchannel"});this.a.l=a;a=b&&b.initMessageHeaders||null;b&&b.messageContentType&&(a?a["X-WebChannel-Content-Type"]=b.messageContentType:a={"X-WebChannel-Content-Type":b.messageContentType});b&&b.a&&(a?a["X-WebChannel-Client-Profile"]=b.a:a={"X-WebChannel-Client-Profile":b.a});this.a.R=
a;(a=b&&b.httpHeadersOverwriteParam)&&!Ga(a)&&(this.a.i=a);this.m=b&&b.supportsCrossDomainXhr||!1;this.l=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!Ga(b)&&(this.a.v=b,a=this.b,null!==a&&b in a&&(a=this.b,b in a&&delete a[b]));this.f=new Z(this)}y(Y,G);Y.prototype.g=function(){this.a.f=this.f;this.m&&(this.a.C=!0);var a=this.a,b=this.o,c=this.b||void 0;M(0);a.ha=b;a.Y=c||{};a.I=a.U;a.B=Xc(a,null,a.ha);$c(a)};Y.prototype.close=function(){ad(this.a)};
Y.prototype.h=function(a){if("string"===typeof a){var b={};b.__data__=a;Zd(this.a,b)}else this.l?(b={},b.__data__=Gb(a),Zd(this.a,b)):Zd(this.a,a)};Y.prototype.H=function(){this.a.f=null;delete this.f;ad(this.a);delete this.a;Y.W.H.call(this)};function ge(a){tc.call(this);var b=a.__sm__;if(b){a:{for(var c in b){a=c;break a}a=void 0}(this.c=a)?(a=this.c,this.data=null!==b&&a in b?b[a]:void 0):this.data=b}else this.data=a}y(ge,tc);function he(){uc.call(this);this.status=1}y(he,uc);
function Z(a){this.a=a}y(Z,ee);Z.prototype.va=function(){H(this.a,"a")};Z.prototype.ua=function(a){H(this.a,new ge(a))};Z.prototype.ta=function(a){H(this.a,new he(a))};Z.prototype.sa=function(){H(this.a,"b")};/*

 Copyright 2017 Google LLC

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
fe.prototype.createWebChannel=fe.prototype.a;Y.prototype.send=Y.prototype.h;Y.prototype.open=Y.prototype.g;Y.prototype.close=Y.prototype.close;nc.NO_ERROR=0;nc.TIMEOUT=8;nc.HTTP_ERROR=6;oc.COMPLETE="complete";rc.EventType=sc;sc.OPEN="a";sc.CLOSE="b";sc.ERROR="c";sc.MESSAGE="d";G.prototype.listen=G.prototype.xa;X.prototype.listenOnce=X.prototype.ya;X.prototype.getLastError=X.prototype.Sa;X.prototype.getLastErrorCode=X.prototype.wa;X.prototype.getStatus=X.prototype.Z;X.prototype.getResponseJson=X.prototype.Ra;
X.prototype.getResponseText=X.prototype.ba;X.prototype.send=X.prototype.da;module.exports.createWebChannelTransport=function(){return new fe};module.exports.getStatEventTarget=function(){return hc()};module.exports.ErrorCode=nc;module.exports.EventType=oc;module.exports.Event=L;module.exports.Stat={jb:0,mb:1,nb:2,Gb:3,Lb:4,Ib:5,Jb:6,Hb:7,Fb:8,Kb:9,PROXY:10,NOPROXY:11,Db:12,zb:13,Ab:14,yb:15,Bb:16,Cb:17,fb:18,eb:19,gb:20};module.exports.WebChannel=rc;module.exports.XhrIo=X;}).apply(typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {});

//# sourceMappingURL=index.js.map
