151 lines
64 KiB
JavaScript
151 lines
64 KiB
JavaScript
|
(function() {/*
|
||
|
|
||
|
Copyright The Closure Library Authors.
|
||
|
SPDX-License-Identifier: Apache-2.0
|
||
|
*/
|
||
|
var n;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function q(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return{next:aa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");}
|
||
|
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 r=da(this);function u(a,b){if(b)a:{var c=r;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 ea;
|
||
|
if("function"==typeof Object.setPrototypeOf)ea=Object.setPrototypeOf;else{var fa;a:{var ha={a:!0},ia={};try{ia.__proto__=ha;fa=ia.a;break a}catch(a){}fa=!1}ea=fa?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ja=ea;
|
||
|
u("Symbol",function(a){function b(h){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(h||"")+"_"+e++,h)}function c(h,f){this.g=h;ca(this,"description",{configurable:!0,writable:!0,value:f})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
|
||
|
u("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=r[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ca(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ka(aa(this))}})}return a});function ka(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
|
||
|
u("Promise",function(a){function b(f){this.g=0;this.i=void 0;this.h=[];this.o=!1;var k=this.j();try{f(k.resolve,k.reject)}catch(l){k.reject(l)}}function c(){this.g=null}function d(f){return f instanceof b?f:new b(function(k){k(f)})}if(a)return a;c.prototype.h=function(f){if(null==this.g){this.g=[];var k=this;this.i(function(){k.l()})}this.g.push(f)};var e=r.setTimeout;c.prototype.i=function(f){e(f,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var f=this.g;this.g=[];for(var k=0;k<f.length;++k){var l=
|
||
|
f[k];f[k]=null;try{l()}catch(m){this.j(m)}}}this.g=null};c.prototype.j=function(f){this.i(function(){throw f;})};b.prototype.j=function(){function f(m){return function(p){l||(l=!0,m.call(k,p))}}var k=this,l=!1;return{resolve:f(this.B),reject:f(this.l)}};b.prototype.B=function(f){if(f===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(f instanceof b)this.D(f);else{a:switch(typeof f){case "object":var k=null!=f;break a;case "function":k=!0;break a;default:k=!1}k?this.A(f):this.m(f)}};
|
||
|
b.prototype.A=function(f){var k=void 0;try{k=f.then}catch(l){this.l(l);return}"function"==typeof k?this.G(k,f):this.m(f)};b.prototype.l=function(f){this.s(2,f)};b.prototype.m=function(f){this.s(1,f)};b.prototype.s=function(f,k){if(0!=this.g)throw Error("Cannot settle("+f+", "+k+"): Promise already settled in state"+this.g);this.g=f;this.i=k;2===this.g&&this.C();this.u()};b.prototype.C=function(){var f=this;e(function(){if(f.v()){var k=r.console;"undefined"!==typeof k&&k.error(f.i)}},1)};b.prototype.v=
|
||
|
function(){if(this.o)return!1;var f=r.CustomEvent,k=r.Event,l=r.dispatchEvent;if("undefined"===typeof l)return!0;"function"===typeof f?f=new f("unhandledrejection",{cancelable:!0}):"function"===typeof k?f=new k("unhandledrejection",{cancelable:!0}):(f=r.document.createEvent("CustomEvent"),f.initCustomEvent("unhandledrejection",!1,!0,f));f.promise=this;f.reason=this.i;return l(f)};b.prototype.u=function(){if(null!=this.h){for(var f=0;f<this.h.length;++f)h.h(this.h[f]);this.h=null}};var h=new c;b.prototype.D=
|
||
|
function(f){var k=this.j();f.la(k.resolve,k.reject)};b.prototype.G=function(f,k){var l=this.j();try{f.call(k,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(f,k){function l(E,H){return"function"==typeof E?function(S){try{m(E(S))}catch(Z){p(Z)}}:H}var m,p,t=new b(function(E,H){m=E;p=H});this.la(l(f,m),l(k,p));return t};b.prototype.catch=function(f){return this.then(void 0,f)};b.prototype.la=function(f,k){function l(){switch(m.g){case 1:f(m.i);break;case 2:k(m.i);break;default:throw Error("Unexpected state: "+
|
||
|
m.g);}}var m=this;null==this.h?h.h(l):this.h.push(l);this.o=!0};b.resolve=d;b.reject=function(f){return new b(function(k,l){l(f)})};b.race=function(f){return new b(function(k,l){for(var m=q(f),p=m.next();!p.done;p=m.next())d(p.value).la(k,l)})};b.all=function(f){var k=q(f),l=k.next();return l.done?d([]):new b(function(m,p){function t(S){return function(Z){E[S]=Z;H--;0==H&&m(E)}}var E=[],H=0;do E.push(void 0),H++,d(l.value).la(t(E.length-1),p),l=k.next();while(!l.done)})};return b});
|
||
|
function la(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var h=c++;return{value:b(h,a[h]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}u("Array.prototype.values",function(a){return a?a:function(){return la(this,function(b,c){return c})}});u("Array.prototype.keys",function(a){return a?a:function(){return la(this,function(b){return b})}});function v(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
|
||
|
u("WeakMap",function(a){function b(l){this.g=(k+=Math.random()+1).toString();if(l){l=q(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}function c(){}function d(l){var m=typeof l;return"object"===m&&null!==l||"function"===m}function e(l){if(!v(l,f)){var m=new c;ca(l,f,{value:m})}}function h(l){var m=Object[l];m&&(Object[l]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return m(p)})}if(function(){if(!a||!Object.seal)return!1;try{var l=Object.seal({}),m=Object.seal({}),
|
||
|
p=new a([[l,2],[m,3]]);if(2!=p.get(l)||3!=p.get(m))return!1;p.delete(l);p.set(m,4);return!p.has(l)&&4==p.get(m)}catch(t){return!1}}())return a;var f="$jscomp_hidden_"+Math.random();h("freeze");h("preventExtensions");h("seal");var k=0;b.prototype.set=function(l,m){if(!d(l))throw Error("Invalid WeakMap key");e(l);if(!v(l,f))throw Error("WeakMap key fail: "+l);l[f][this.g]=m;return this};b.prototype.get=function(l){return d(l)&&v(l,f)?l[f][this.g]:void 0};b.prototype.has=function(l){return d(l)&&v(l,
|
||
|
f)&&v(l[f],this.g)};b.prototype.delete=function(l){return d(l)&&v(l,f)&&v(l[f],this.g)?delete l[f][this.g]:!1};return b});
|
||
|
u("Map",function(a){function b(){var k={};return k.V=k.next=k.head=k}function c(k,l){var m=k.g;return ka(function(){if(m){for(;m.head!=k.g;)m=m.V;for(;m.next!=m.head;)return m=m.next,{done:!1,value:l(m)};m=null}return{done:!0,value:void 0}})}function d(k,l){var m=l&&typeof l;"object"==m||"function"==m?h.has(l)?m=h.get(l):(m=""+ ++f,h.set(l,m)):m="p_"+l;var p=k.h[m];if(p&&v(k.h,m))for(k=0;k<p.length;k++){var t=p[k];if(l!==l&&t.key!==t.key||l===t.key)return{id:m,list:p,index:k,K:t}}return{id:m,list:p,
|
||
|
index:-1,K:void 0}}function e(k){this.h={};this.g=b();this.size=0;if(k){k=q(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var k=Object.seal({x:4}),l=new a(q([[k,"s"]]));if("s"!=l.get(k)||1!=l.size||l.get({x:4})||l.set({x:4},"t")!=l||2!=l.size)return!1;var m=l.entries(),p=m.next();if(p.done||p.value[0]!=k||"s"!=p.value[1])return!1;p=m.next();return p.done||4!=p.value[0].x||
|
||
|
"t"!=p.value[1]||!m.next().done?!1:!0}catch(t){return!1}}())return a;var h=new WeakMap;e.prototype.set=function(k,l){k=0===k?0:k;var m=d(this,k);m.list||(m.list=this.h[m.id]=[]);m.K?m.K.value=l:(m.K={next:this.g,V:this.g.V,head:this.g,key:k,value:l},m.list.push(m.K),this.g.V.next=m.K,this.g.V=m.K,this.size++);return this};e.prototype.delete=function(k){k=d(this,k);return k.K&&k.list?(k.list.splice(k.index,1),k.list.length||delete this.h[k.id],k.K.V.next=k.K.next,k.K.next.V=k.K.V,k.K.head=null,this.size--,
|
||
|
!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.V=b();this.size=0};e.prototype.has=function(k){return!!d(this,k).K};e.prototype.get=function(k){return(k=d(this,k).K)&&k.value};e.prototype.entries=function(){return c(this,function(k){return[k.key,k.value]})};e.prototype.keys=function(){return c(this,function(k){return k.key})};e.prototype.values=function(){return c(this,function(k){return k.value})};e.prototype.forEach=function(k,l){for(var m=this.entries(),p;!(p=m.next()).done;)p=p.value,
|
||
|
k.call(l,p[1],p[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var f=0;return e});u("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,h=0;h<e;h++){var f=d[h];if(b.call(c,f,h,d)){b=f;break a}}b=void 0}return b}});u("Array.prototype.entries",function(a){return a?a:function(){return la(this,function(b,c){return[b,c]})}});
|
||
|
u("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(k){return k};var e=[],h="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof h){b=h.call(b);for(var f=0;!(h=b.next()).done;)e.push(c.call(d,h.value,f++))}else for(h=b.length,f=0;f<h;f++)e.push(c.call(d,b[f],f));return e}});
|
||
|
u("Set",function(a){function b(c){this.g=new Map;if(c){c=q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.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(q([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(),h=e.next();if(h.done||h.value[0]!=c||h.value[1]!=c)return!1;h=e.next();return h.done||h.value[0]==c||4!=h.value[0].x||
|
||
|
h.value[1]!=h.value[0]?!1:e.next().done}catch(f){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
|
||
|
b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(h){return c.call(d,h,h,e)})};return b});var goog=goog||{},w=this||self;function ma(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 na(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function oa(a){return Object.prototype.hasOwnProperty.call(a,pa)&&a[pa]||(a[pa]=++qa)}
|
||
|
var pa="closure_uid_"+(1E9*Math.random()>>>0),qa=0;function ra(a,b,c){return a.call.apply(a.bind,arguments)}function sa(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 x(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?x=ra:x=sa;return x.apply(null,arguments)}function ta(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 y(a,b){function c(){}c.prototype=b.prototype;a.Z=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.dc=function(d,e,h){for(var f=Array(arguments.length-2),k=2;k<arguments.length;k++)f[k-2]=arguments[k];return b.prototype[e].apply(d,f)}};function z(){0!=ua&&(va[oa(this)]=this);this.s=this.s;this.o=this.o}var ua=0,va={};z.prototype.s=!1;z.prototype.va=function(){if(!this.s&&(this.s=!0,this.O(),0!=ua)){var a=oa(this);if(0!=ua&&this.o&&0<this.o.length)throw Error(this+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete va[a]}};z.prototype.O=function(){if(this.o)for(;this.o.length;)this.o.shift()()};var wa=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};function xa(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 ya(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ma(d)){var e=a.length||0,h=d.length||0;a.length=e+h;for(var f=0;f<h;f++)a[e+f]=d[f]}else a.push(d)}};function A(a,b){this.type=a;this.g=this.target=b;this.defaultPrevented=!1}A.prototype.h=function(){this.defaultPrevented=!0};var za=function(){if(!w.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};w.addEventListener("test",c,b);w.removeEventListener("test",c,b)}catch(d){}return a}();function Aa(a){return/^[\s\xa0]*$/.test(a)};function Ba(){var a=w.navigator;return a&&(a=a.userAgent)?a:""}function B(a){return-1!=Ba().indexOf(a)};function Ca(a){Ca[" "](a);return a}Ca[" "]=function(){};function Da(a,b){var c=Ea;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var Fa=B("Opera"),Ga=B("Trident")||B("MSIE"),Ha=B("Edge"),Ia=Ha||Ga,Ja=B("Gecko")&&!(-1!=Ba().toLowerCase().indexOf("webkit")&&!B("Edge"))&&!(B("Trident")||B("MSIE"))&&!B("Edge"),Ka=-1!=Ba().toLowerCase().indexOf("webkit")&&!B("Edge");function La(){var a=w.document;return a?a.documentMode:void 0}var Ma;
|
||
|
a:{var Na="",Oa=function(){var a=Ba();if(Ja)return/rv:([^\);]+)(\)|;)/.exec(a);if(Ha)return/Edge\/([\d\.]+)/.exec(a);if(Ga)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Ka)return/WebKit\/(\S+)/.exec(a);if(Fa)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Oa&&(Na=Oa?Oa[1]:"");if(Ga){var Pa=La();if(null!=Pa&&Pa>parseFloat(Na)){Ma=String(Pa);break a}}Ma=Na}var Qa;if(w.document&&Ga){var Ra=La();Qa=Ra?Ra:parseInt(Ma,10)||void 0}else Qa=void 0;var Sa=Qa;function Ta(a,b){A.call(this,a?a.type:"");this.relatedTarget=this.g=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.state=null;this.pointerId=0;this.pointerType="";this.i=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.g=b;if(b=a.relatedTarget){if(Ja){a:{try{Ca(b.nodeName);var e=!0;break a}catch(h){}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:Ua[a.pointerType]||"";this.state=a.state;this.i=a;a.defaultPrevented&&Ta.Z.h.call(this)}}y(Ta,A);var Ua={2:"touch",3:"pen",4:"mouse"};Ta.prototype.h=function(){Ta.Z.h.call(this);var a=this.i;a.preventDefault?a.preventDefault():a.returnValue=!1};var Va="closure_listenable_"+(1E6*Math.random()|0);var Wa=0;function Xa(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.oa=e;this.key=++Wa;this.ha=this.ka=!1}function Ya(a){a.ha=!0;a.listener=null;a.proxy=null;a.src=null;a.oa=null};function Za(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function $a(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function ab(a){var b={},c;for(c in a)b[c]=a[c];return b}var bb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function cb(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 h=0;h<bb.length;h++)c=bb[h],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function db(a){this.src=a;this.g={};this.h=0}db.prototype.add=function(a,b,c,d,e){var h=a.toString();a=this.g[h];a||(a=this.g[h]=[],this.h++);var f=eb(a,b,d,e);-1<f?(b=a[f],c||(b.ka=!1)):(b=new Xa(b,this.src,h,!!d,e),b.ka=c,a.push(b));return b};function fb(a,b){var c=b.type;if(c in a.g){var d=a.g[c],e=wa(d,b),h;(h=0<=e)&&Array.prototype.splice.call(d,e,1);h&&(Ya(b),0==a.g[c].length&&(delete a.g[c],a.h--))}}
|
||
|
function eb(a,b,c,d){for(var e=0;e<a.length;++e){var h=a[e];if(!h.ha&&h.listener==b&&h.capture==!!c&&h.oa==d)return e}return-1};var gb="closure_lm_"+(1E6*Math.random()|0),hb={},ib=0;function jb(a,b,c,d,e){if(d&&d.once)return kb(a,b,c,d,e);if(Array.isArray(b)){for(var h=0;h<b.length;h++)jb(a,b[h],c,d,e);return null}c=lb(c);return a&&a[Va]?a.P(b,c,na(d)?!!d.capture:!!d,e):mb(a,b,c,!1,d,e)}
|
||
|
function mb(a,b,c,d,e,h){if(!b)throw Error("Invalid event type");var f=na(e)?!!e.capture:!!e,k=nb(a);k||(a[gb]=k=new db(a));c=k.add(b,c,d,f,h);if(c.proxy)return c;d=ob();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)za||(e=f),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(pb(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");ib++;return c}
|
||
|
function ob(){function a(c){return b.call(a.src,a.listener,c)}var b=qb;return a}function kb(a,b,c,d,e){if(Array.isArray(b)){for(var h=0;h<b.length;h++)kb(a,b[h],c,d,e);return null}c=lb(c);return a&&a[Va]?a.R(b,c,na(d)?!!d.capture:!!d,e):mb(a,b,c,!0,d,e)}
|
||
|
function rb(a,b,c,d,e){if(Array.isArray(b))for(var h=0;h<b.length;h++)rb(a,b[h],c,d,e);else(d=na(d)?!!d.capture:!!d,c=lb(c),a&&a[Va])?(a=a.i,b=String(b).toString(),b in a.g&&(h=a.g[b],c=eb(h,c,d,e),-1<c&&(Ya(h[c]),Array.prototype.splice.call(h,c,1),0==h.length&&(delete a.g[b],a.h--)))):a&&(a=nb(a))&&(b=a.g[b.toString()],a=-1,b&&(a=eb(b,c,d,e)),(c=-1<a?b[a]:null)&&sb(c))}
|
||
|
function sb(a){if("number"!==typeof a&&a&&!a.ha){var b=a.src;if(b&&b[Va])fb(b.i,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(pb(c),d):b.addListener&&b.removeListener&&b.removeListener(d);ib--;(c=nb(b))?(fb(c,a),0==c.h&&(c.src=null,b[gb]=null)):Ya(a)}}}function pb(a){return a in hb?hb[a]:hb[a]="on"+a}function qb(a,b){if(a.ha)a=!0;else{b=new Ta(b,this);var c=a.listener,d=a.oa||a.src;a.ka&&sb(a);a=c.call(d,b)}return a}
|
||
|
function nb(a){a=a[gb];return a instanceof db?a:null}var tb="__closure_events_fn_"+(1E9*Math.random()>>>0);function lb(a){if("function"===typeof a)return a;a[tb]||(a[tb]=function(b){return a.handleEvent(b)});return a[tb]};function C(){z.call(this);this.i=new db(this);this.T=this;this.J=null}y(C,z);C.prototype[Va]=!0;C.prototype.removeEventListener=function(a,b,c,d){rb(this,a,b,c,d)};
|
||
|
function D(a,b){var c,d=a.J;if(d)for(c=[];d;d=d.J)c.push(d);a=a.T;d=b.type||b;if("string"===typeof b)b=new A(b,a);else if(b instanceof A)b.target=b.target||a;else{var e=b;b=new A(d,a);cb(b,e)}e=!0;if(c)for(var h=c.length-1;0<=h;h--){var f=b.g=c[h];e=ub(f,d,!0,b)&&e}f=b.g=a;e=ub(f,d,!0,b)&&e;e=ub(f,d,!1,b)&&e;if(c)for(h=0;h<c.length;h++)f=b.g=c[h],e=ub(f,d,!1,b)&&e}
|
||
|
C.prototype.O=function(){C.Z.O.call(this);if(this.i){var a=this.i,b=0,c;for(c in a.g){for(var d=a.g[c],e=0;e<d.length;e++)++b,Ya(d[e]);delete a.g[c];a.h--}}this.J=null};C.prototype.P=function(a,b,c,d){return this.i.add(String(a),b,!1,c,d)};C.prototype.R=function(a,b,c,d){return this.i.add(String(a),b,!0,c,d)};
|
||
|
function ub(a,b,c,d){b=a.i.g[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,h=0;h<b.length;++h){var f=b[h];if(f&&!f.ha&&f.capture==c){var k=f.listener,l=f.oa||f.src;f.ka&&fb(a.i,f);e=!1!==k.call(l,d)&&e}}return e&&!d.defaultPrevented};var vb=w.JSON.stringify;function wb(a,b){this.i=a;this.j=b;this.h=0;this.g=null}wb.prototype.get=function(){if(0<this.h){this.h--;var a=this.g;this.g=a.next;a.next=null}else a=this.i();return a};function xb(){this.h=this.g=null}xb.prototype.add=function(a,b){var c=yb.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c};function zb(){var a=Ab,b=null;a.g&&(b=a.g,a.g=a.g.next,a.g||(a.h=null),b.next=null);return b}var yb=new wb(function(){return new Bb},function(a){return a.reset()});function Bb(){this.next=this.g=this.h=null}Bb.prototype.set=function(a,b){this.h=a;this.g=b;this.next=null};Bb.prototype.reset=function(){this.next=this.g=this.h=null};function Cb(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};function Db(a){w.setTimeout(function(){throw a;},0)};var Eb,Fb=!1,Ab=new xb;function Gb(a,b){Eb||Hb();Fb||(Eb(),Fb=!0);Ab.add(a,b)}function Hb(){var a=w.Promise.resolve(void 0);Eb=function(){a.then(Ib)}}function Ib(){for(var a;a=zb();){try{a.h.call(a.g)}catch(c){Db(c)}var b=yb;b.j(a);100>b.h&&(b.h++,a.next=b.g,b.g=a)}Fb=!1};function Jb(a,b){C.call(this);this.h=a||1;this.g=b||w;this.j=x(this.tb,this);this.l=Date.now()}y(Jb,C);n=Jb.prototype;n.ia=!1;n.U=null;n.tb=function(){if(this.ia){var a=Date.now()-this.l;0<a&&a<.8*this.h?this.U=this.g.setTimeout(this.j,this.h-a):(this.U&&(this.g.clearTimeout(this.U),this.U=null),D(this,"tick"),this.ia&&(Kb(this),this.start()))}};n.start=function(){this.ia=!0;this.U||(this.U=this.g.setTimeout(this.j,this.h),this.l=Date.now())};
|
||
|
function Kb(a){a.ia=!1;a.U&&(a.g.clearTimeout(a.U),a.U=null)}n.O=function(){Jb.Z.O.call(this);Kb(this);delete this.g};function Lb(a,b,c){if("function"===typeof a)c&&(a=x(a,c));else if(a&&"function"==typeof a.handleEvent)a=x(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:w.setTimeout(a,b||0)};function F(a,b,c){z.call(this);this.m=null!=c?a.bind(c):a;this.j=b;this.h=null;this.i=!1;this.g=null}F.prototype=ba(z.prototype);F.prototype.constructor=F;if(ja)ja(F,z);else for(var Mb in z)if("prototype"!=Mb)if(Object.defineProperties){var Nb=Object.getOwnPropertyDescriptor(z,Mb);Nb&&Object.defineProperty(F,Mb,Nb)}else F[Mb]=z[Mb];F.Z=z.prototype;F.prototype.l=function(a){this.h=arguments;this.g?this.i=!0:Ob(this)};
|
||
|
F.prototype.O=function(){z.prototype.O.call(this);this.g&&(w.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)};function Ob(a){a.g=Lb(function(){a.g=null;a.i&&(a.i=!1,Ob(a))},a.j);var b=a.h;a.h=null;a.m.apply(null,b)};function Pb(a){z.call(this);this.h=a;this.g={}}y(Pb,z);var Qb=[];function Rb(a,b,c,d){Array.isArray(c)||(c&&(Qb[0]=c.toString()),c=Qb);for(var e=0;e<c.length;e++){var h=jb(b,c[e],d||a.handleEvent,!1,a.h||a);if(!h)break;a.g[h.key]=h}}function Sb(a){Za(a.g,function(b,c){this.g.hasOwnProperty(c)&&sb(b)},a);a.g={}}Pb.prototype.O=function(){Pb.Z.O.call(this);Sb(this)};Pb.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function Tb(){this.g=!0}Tb.prototype.Ha=function(){this.g=!1};function Ub(a,b,c,d,e,h){a.info(function(){if(a.g)if(h){var f="";for(var k=h.split("&"),l=0;l<k.length;l++){var m=k[l].split("=");if(1<m.length){var p=m[0];m=m[1];var t=p.split("_");f=2<=t.length&&"type"==t[1]?f+(p+"="+m+"&"):f+(p+"=redacted&")}}}else f=null;else f=h;return"XMLHTTP REQ ("+d+") [attempt "+e+"]: "+b+"\n"+c+"\n"+f})}
|
||
|
function Vb(a,b,c,d,e,h,f){a.info(function(){return"XMLHTTP RESP ("+d+") [ attempt "+e+"]: "+b+"\n"+c+"\n"+h+" "+f})}function Wb(a,b,c,d){a.info(function(){return"XMLHTTP TEXT ("+b+"): "+Xb(a,c)+(d?" "+d:"")})}function Yb(a,b){a.info(function(){return"TIMEOUT: "+b})}Tb.prototype.info=function(){};
|
||
|
function Xb(a,b){if(!a.g)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 h=e[0];if("noop"!=h&&"stop"!=h&&"close"!=h)for(var f=1;f<e.length;f++)e[f]=""}}}return vb(c)}catch(k){return b}};var G={},Zb=null;function $b(){return Zb=Zb||new C}G.Wa="serverreachability";function ac(a){A.call(this,G.Wa,a)}y(ac,A);function bc(a){var b=$b();D(b,new ac(b,a))}G.STAT_EVENT="statevent";function cc(a,b){A.call(this,G.STAT_EVENT,a);this.stat=b}y(cc,A);function I(a){var b=$b();D(b,new cc(b,a))}G.Xa="timingevent";function dc(a,b){A.call(this,G.Xa,a);this.size=b}y(dc,A);
|
||
|
function ec(a,b){if("function"!==typeof a)throw Error("Fn must not be null and must be a function");return w.setTimeout(function(){a()},b)};var fc={NO_ERROR:0,ub:1,Hb:2,Gb:3,Bb:4,Fb:5,Ib:6,Ta:7,TIMEOUT:8,Lb:9};var gc={zb:"complete",Vb:"success",Ua:"error",Ta:"abort",Nb:"ready",Ob:"readystatechange",TIMEOUT:"timeout",Jb:"incrementaldata",Mb:"progress",Cb:"downloadprogress",cc:"uploadprogress"};function hc(){}hc.prototype.h=null;function ic(a){return a.h||(a.h=a.i())};function jc(){}var kc={OPEN:"a",yb:"b",Ua:"c",Kb:"d"};function lc(){A.call(this,"d")}y(lc,A);function mc(){A.call(this,"c")}y(mc,A);var nc;function oc(){}y(oc,hc);oc.prototype.g=function(){return new XMLHttpRequest};oc.prototype.i=function(){return{}};nc=new oc;function pc(a,b,c,d){this.l=a;this.j=b;this.m=c;this.Y=d||1;this.W=new Pb(this);this.R=qc;a=Ia?125:void 0;this.X=new Jb(a);this.I=null;this.i=!1;this.u=this.B=this.A=this.M=this.G=this.aa=this.C=null;this.D=[];this.g=null;this.o=0;this.s=this.v=null;this.ea=-1;this.J=!1;this.P=0;this.N=null;this.da=this.L=this.ca=this.T=!1;this.h=new rc}function rc(){this.i=null;this.g="";this.h=!1}var qc=45E3,sc={},tc={};n=pc.prototype;n.setTimeout=function(a){this.R=a};
|
||
|
function uc(a,b,c){a.M=1;a.A=vc(J(b));a.u=c;a.T=!0;wc(a,null)}function wc(a,b){a.G=Date.now();xc(a);a.B=J(a.A);var c=a.B,d=a.Y;Array.isArray(d)||(d=[String(d)]);yc(c.i,"t",d);a.o=0;c=a.l.J;a.h=new rc;a.g=zc(a.l,c?b:null,!a.u);0<a.P&&(a.N=new F(x(a.Sa,a,a.g),a.P));Rb(a.W,a.g,"readystatechange",a.qb);b=a.I?ab(a.I):{};a.u?(a.v||(a.v="POST"),b["Content-Type"]="application/x-www-form-urlencoded",a.g.ja(a.B,a.v,a.u,b)):(a.v="GET",a.g.ja(a.B,a.v,null,b));bc(1);Ub(a.j,a.v,a.B,a.m,a.Y,a.u)}
|
||
|
n.qb=function(a){a=a.target;var b=this.N;b&&3==K(a)?b.l():this.Sa(a)};
|
||
|
n.Sa=function(a){try{if(a==this.g)a:{var b=K(this.g),c=this.g.La(),d=this.g.fa();if(!(3>b)&&(3!=b||Ia||this.g&&(this.h.h||this.g.ma()||Ac(this.g)))){this.J||4!=b||7==c||(8==c||0>=d?bc(3):bc(2));Bc(this);var e=this.g.fa();this.ea=e;b:if(Cc(this)){var h=Ac(this.g);a="";var f=h.length,k=4==K(this.g);if(!this.h.i){if("undefined"===typeof TextDecoder){L(this);Dc(this);var l="";break b}this.h.i=new w.TextDecoder}for(c=0;c<f;c++)this.h.h=!0,a+=this.h.i.decode(h[c],{stream:k&&c==f-1});h.length=0;this.h.g+=
|
||
|
a;this.o=0;l=this.h.g}else l=this.g.ma();this.i=200==e;Vb(this.j,this.v,this.B,this.m,this.Y,b,e);if(this.i){if(this.ca&&!this.L){b:{if(this.g){var m,p=this.g;if((m=p.g?p.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Aa(m)){var t=m;break b}}t=null}if(e=t)Wb(this.j,this.m,e,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,Ec(this,e);else{this.i=!1;this.s=3;I(12);L(this);Dc(this);break a}}this.T?(Fc(this,b,l),Ia&&this.i&&3==b&&(Rb(this.W,this.X,"tick",this.pb),this.X.start())):
|
||
|
(Wb(this.j,this.m,l,null),Ec(this,l));4==b&&L(this);this.i&&!this.J&&(4==b?Gc(this.l,this):(this.i=!1,xc(this)))}else Hc(this.g),400==e&&0<l.indexOf("Unknown SID")?(this.s=3,I(12)):(this.s=0,I(13)),L(this),Dc(this)}}}catch(E){}finally{}};function Cc(a){return a.g?"GET"==a.v&&2!=a.M&&a.l.Ka:!1}
|
||
|
function Fc(a,b,c){for(var d=!0,e;!a.J&&a.o<c.length;)if(e=Ic(a,c),e==tc){4==b&&(a.s=4,I(14),d=!1);Wb(a.j,a.m,null,"[Incomplete Response]");break}else if(e==sc){a.s=4;I(15);Wb(a.j,a.m,c,"[Invalid Chunk]");d=!1;break}else Wb(a.j,a.m,e,null),Ec(a,e);Cc(a)&&0!=a.o&&(a.h.g=a.h.g.slice(a.o),a.o=0);4!=b||0!=c.length||a.h.h||(a.s=1,I(16),d=!1);a.i=a.i&&d;d?0<c.length&&!a.da&&(a.da=!0,b=a.l,b.g==a&&b.ea&&!b.N&&(b.l.info("Great, no buffering proxy detected. Bytes received: "+c.length),Jc(b),b.N=!0,I(11))):
|
||
|
(Wb(a.j,a.m,c,"[Invalid Chunked Response]"),L(a),Dc(a))}n.pb=function(){if(this.g){var a=K(this.g),b=this.g.ma();this.o<b.length&&(Bc(this),Fc(this,a,b),this.i&&4!=a&&xc(this))}};function Ic(a,b){var c=a.o,d=b.indexOf("\n",c);if(-1==d)return tc;c=Number(b.substring(c,d));if(isNaN(c))return sc;d+=1;if(d+c>b.length)return tc;b=b.slice(d,d+c);a.o=d+c;return b}n.cancel=function(){this.J=!0;L(this)};function xc(a){a.aa=Date.now()+a.R;Kc(a,a.R)}
|
||
|
function Kc(a,b){if(null!=a.C)throw Error("WatchDog timer not null");a.C=ec(x(a.ob,a),b)}function Bc(a){a.C&&(w.clearTimeout(a.C),a.C=null)}n.ob=function(){this.C=null;var a=Date.now();0<=a-this.aa?(Yb(this.j,this.B),2!=this.M&&(bc(3),I(17)),L(this),this.s=2,Dc(this)):Kc(this,this.aa-a)};function Dc(a){0==a.l.H||a.J||Gc(a.l,a)}function L(a){Bc(a);var b=a.N;b&&"function"==typeof b.va&&b.va();a.N=null;Kb(a.X);Sb(a.W);a.g&&(b=a.g,a.g=null,b.abort(),b.va())}
|
||
|
function Ec(a,b){try{var c=a.l;if(0!=c.H&&(c.g==a||Lc(c.i,a)))if(!a.L&&Lc(c.i,a)&&3==c.H){try{var d=c.Ma.g.parse(b)}catch(Sc){d=null}if(Array.isArray(d)&&3==d.length){var e=d;if(0==e[0])a:{if(!c.u){if(c.g)if(c.g.G+3E3<a.G)Mc(c),Nc(c);else break a;Oc(c);I(18)}}else c.Ia=e[1],0<c.Ia-c.X&&37500>e[2]&&c.G&&0==c.A&&!c.v&&(c.v=ec(x(c.lb,c),6E3));if(1>=Pc(c.i)&&c.ra){try{c.ra()}catch(Sc){}c.ra=void 0}}else M(c,11)}else if((a.L||c.g==a)&&Mc(c),!Aa(b))for(e=c.Ma.g.parse(b),b=0;b<e.length;b++){var h=e[b];c.X=
|
||
|
h[0];h=h[1];if(2==c.H)if("c"==h[0]){c.L=h[1];c.sa=h[2];var f=h[3];null!=f&&(c.ua=f,c.l.info("VER="+c.ua));var k=h[4];null!=k&&(c.Ja=k,c.l.info("SVER="+c.Ja));var l=h[5];null!=l&&"number"===typeof l&&0<l&&(d=1.5*l,c.M=d,c.l.info("backChannelRequestTimeoutMs_="+d));d=c;var m=a.g;if(m){var p=m.g?m.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(p){var t=d.i;t.g||-1==p.indexOf("spdy")&&-1==p.indexOf("quic")&&-1==p.indexOf("h2")||(t.j=t.l,t.g=new Set,t.h&&(Qc(t,t.h),t.h=null))}if(d.D){var E=m.g?
|
||
|
m.g.getResponseHeader("X-HTTP-Session-Id"):null;E&&(d.Ga=E,N(d.I,d.D,E))}}c.H=3;c.h&&c.h.Ea();c.ea&&(c.T=Date.now()-a.G,c.l.info("Handshake RTT: "+c.T+"ms"));d=c;var H=a;d.za=Rc(d,d.J?d.sa:null,d.aa);if(H.L){Tc(d.i,H);var S=H,Z=d.M;Z&&S.setTimeout(Z);S.C&&(Bc(S),xc(S));d.g=H}else Uc(d);0<c.j.length&&Vc(c)}else"stop"!=h[0]&&"close"!=h[0]||M(c,7);else 3==c.H&&("stop"==h[0]||"close"==h[0]?"stop"==h[0]?M(c,7):Wc(c):"noop"!=h[0]&&c.h&&c.h.Da(h),c.A=0)}bc(4)}catch(Sc){}};function Xc(a){if(a.ba&&"function"==typeof a.ba)return a.ba();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(ma(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 Yc(a){if(a.wa&&"function"==typeof a.wa)return a.wa();if(!a.ba||"function"!=typeof a.ba){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(ma(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}b=[];c=0;for(var d in a)b[c++]=d;return b}}}
|
||
|
function Zc(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(ma(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,void 0);else for(var c=Yc(a),d=Xc(a),e=d.length,h=0;h<e;h++)b.call(void 0,d[h],c&&c[h],a)};var $c=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function ad(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 h=a[c].substring(0,d);e=a[c].substring(d+1)}else h=a[c];b(h,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};function O(a){this.g=this.s=this.j="";this.o=null;this.m=this.h="";this.l=!1;var b;a instanceof O?(this.l=a.l,bd(this,a.j),this.s=a.s,this.g=a.g,cd(this,a.o),this.h=a.h,dd(this,ed(a.i)),this.m=a.m):a&&(b=String(a).match($c))?(this.l=!1,bd(this,b[1]||"",!0),this.s=fd(b[2]||""),this.g=fd(b[3]||"",!0),cd(this,b[4]),this.h=fd(b[5]||"",!0),dd(this,b[6]||"",!0),this.m=fd(b[7]||"")):(this.l=!1,this.i=new gd(null,this.l))}
|
||
|
O.prototype.toString=function(){var a=[],b=this.j;b&&a.push(hd(b,id,!0),":");var c=this.g;if(c||"file"==b)a.push("//"),(b=this.s)&&a.push(hd(b,id,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.o,null!=c&&a.push(":",String(c));if(c=this.h)this.g&&"/"!=c.charAt(0)&&a.push("/"),a.push(hd(c,"/"==c.charAt(0)?jd:kd,!0));(c=this.i.toString())&&a.push("?",c);(c=this.m)&&a.push("#",hd(c,ld));return a.join("")};
|
||
|
O.prototype.resolve=function(a){var b=J(this),c=!!a.j;c?bd(b,a.j):c=!!a.s;c?b.s=a.s:c=!!a.g;c?b.g=a.g:c=null!=a.o;var d=a.h;if(c)cd(b,a.o);else if(c=!!a.h){if("/"!=d.charAt(0))if(this.g&&!this.h)d="/"+d;else{var e=b.h.lastIndexOf("/");-1!=e&&(d=b.h.slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=0==e.lastIndexOf("/",0);e=e.split("/");for(var h=[],f=0;f<e.length;){var k=e[f++];"."==k?d&&f==e.length&&h.push(""):".."==k?((1<h.length||1==h.length&&""!=h[0])&&
|
||
|
h.pop(),d&&f==e.length&&h.push("")):(h.push(k),d=!0)}d=h.join("/")}else d=e}c?b.h=d:c=""!==a.i.toString();c?dd(b,ed(a.i)):c=!!a.m;c&&(b.m=a.m);return b};function J(a){return new O(a)}function bd(a,b,c){a.j=c?fd(b,!0):b;a.j&&(a.j=a.j.replace(/:$/,""))}function cd(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.o=b}else a.o=null}function dd(a,b,c){b instanceof gd?(a.i=b,md(a.i,a.l)):(c||(b=hd(b,nd)),a.i=new gd(b,a.l))}function N(a,b,c){a.i.set(b,c)}
|
||
|
function vc(a){N(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36));return a}function fd(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function hd(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,od),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function od(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}
|
||
|
var id=/[#\/\?@]/g,kd=/[#\?:]/g,jd=/[#\?]/g,nd=/[#\?@]/g,ld=/#/g;function gd(a,b){this.h=this.g=null;this.i=a||null;this.j=!!b}function P(a){a.g||(a.g=new Map,a.h=0,a.i&&ad(a.i,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))}n=gd.prototype;n.add=function(a,b){P(this);this.i=null;a=pd(this,a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.h+=1;return this};function qd(a,b){P(a);b=pd(a,b);a.g.has(b)&&(a.i=null,a.h-=a.g.get(b).length,a.g.delete(b))}
|
||
|
function rd(a,b){P(a);b=pd(a,b);return a.g.has(b)}n.forEach=function(a,b){P(this);this.g.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};n.wa=function(){P(this);for(var a=Array.from(this.g.values()),b=Array.from(this.g.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],h=0;h<e.length;h++)c.push(b[d]);return c};
|
||
|
n.ba=function(a){P(this);var b=[];if("string"===typeof a)rd(this,a)&&(b=b.concat(this.g.get(pd(this,a))));else{a=Array.from(this.g.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};n.set=function(a,b){P(this);this.i=null;a=pd(this,a);rd(this,a)&&(this.h-=this.g.get(a).length);this.g.set(a,[b]);this.h+=1;return this};n.get=function(a,b){if(!a)return b;a=this.ba(a);return 0<a.length?String(a[0]):b};
|
||
|
function yc(a,b,c){qd(a,b);0<c.length&&(a.i=null,a.g.set(pd(a,b),xa(c)),a.h+=c.length)}n.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var a=[],b=Array.from(this.g.keys()),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.ba(d);for(var h=0;h<d.length;h++){var f=e;""!==d[h]&&(f+="="+encodeURIComponent(String(d[h])));a.push(f)}}return this.i=a.join("&")};function ed(a){var b=new gd;b.i=a.i;a.g&&(b.g=new Map(a.g),b.h=a.h);return b}
|
||
|
function pd(a,b){b=String(b);a.j&&(b=b.toLowerCase());return b}function md(a,b){b&&!a.j&&(P(a),a.i=null,a.g.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(qd(this,d),yc(this,e,c))},a));a.j=b};function sd(a,b){this.g=a;this.map=b};function td(a){this.l=a||ud;w.PerformanceNavigationTiming?(a=w.performance.getEntriesByType("navigation"),a=0<a.length&&("hq"==a[0].nextHopProtocol||"h2"==a[0].nextHopProtocol)):a=!!(w.g&&w.g.Na&&w.g.Na()&&w.g.Na().hc);this.j=a?this.l:1;this.g=null;1<this.j&&(this.g=new Set);this.h=null;this.i=[]}var ud=10;function vd(a){return a.h?!0:a.g?a.g.size>=a.j:!1}function Pc(a){return a.h?1:a.g?a.g.size:0}function Lc(a,b){return a.h?a.h==b:a.g?a.g.has(b):!1}function Qc(a,b){a.g?a.g.add(b):a.h=b}
|
||
|
function Tc(a,b){a.h&&a.h==b?a.h=null:a.g&&a.g.has(b)&&a.g.delete(b)}td.prototype.cancel=function(){this.i=wd(this);if(this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(var a=q(this.g.values()),b=a.next();!b.done;b=a.next())b.value.cancel();this.g.clear()}};function wd(a){if(null!=a.h)return a.i.concat(a.h.D);if(null!=a.g&&0!==a.g.size){var b=a.i;a=q(a.g.values());for(var c=a.next();!c.done;c=a.next())b=b.concat(c.value.D);return b}return xa(a.i)};function xd(){}xd.prototype.stringify=function(a){return w.JSON.stringify(a,void 0)};xd.prototype.parse=function(a){return w.JSON.parse(a,void 0)};function yd(){this.g=new xd}function zd(a,b,c){var d=c||"";try{Zc(a,function(e,h){var f=e;na(e)&&(f=vb(e));b.push(d+h+"="+encodeURIComponent(f))})}catch(e){throw b.push(d+"type="+encodeURIComponent("_badmap")),e;}};function Ad(a,b){var c=new Tb;if(w.Image){var d=new Image;d.onload=ta(Bd,c,d,"TestLoadImage: loaded",!0,b);d.onerror=ta(Bd,c,d,"TestLoadImage: error",!1,b);d.onabort=ta(Bd,c,d,"TestLoadImage: abort",!1,b);d.ontimeout=ta(Bd,c,d,"TestLoadImage: timeout",!1,b);w.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);d.src=a}else b(!1)}function Bd(a,b,c,d,e){try{b.onload=null,b.onerror=null,b.onabort=null,b.ontimeout=null,e(d)}catch(h){}};function Cd(a){this.l=a.ic||null;this.j=a.rb||!1}y(Cd,hc);Cd.prototype.g=function(){return new Dd(this.l,this.j)};Cd.prototype.i=function(a){return function(){return a}}({});function Dd(a,b){C.call(this);this.D=a;this.u=b;this.m=void 0;this.readyState=Ed;this.status=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.v=new Headers;this.h=null;this.C="GET";this.B="";this.g=!1;this.A=this.j=this.l=null}y(Dd,C);var Ed=0;n=Dd.prototype;
|
||
|
n.open=function(a,b){if(this.readyState!=Ed)throw this.abort(),Error("Error reopening a connection");this.C=a;this.B=b;this.readyState=1;Fd(this)};n.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;var b={headers:this.v,method:this.C,credentials:this.m,cache:void 0};a&&(b.body=a);(this.D||w).fetch(new Request(this.B,b)).then(this.cb.bind(this),this.na.bind(this))};
|
||
|
n.abort=function(){this.response=this.responseText="";this.v=new Headers;this.status=0;this.j&&this.j.cancel("Request was aborted.").catch(function(){});1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Gd(this));this.readyState=Ed};
|
||
|
n.cb=function(a){if(this.g&&(this.l=a,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=a.headers,this.readyState=2,Fd(this)),this.g&&(this.readyState=3,Fd(this),this.g)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.ab.bind(this),this.na.bind(this));else if("undefined"!==typeof w.ReadableStream&&"body"in a){this.j=a.body.getReader();if(this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
|
||
|
[]}else this.response=this.responseText="",this.A=new TextDecoder;Hd(this)}else a.text().then(this.bb.bind(this),this.na.bind(this))};function Hd(a){a.j.read().then(a.$a.bind(a)).catch(a.na.bind(a))}n.$a=function(a){if(this.g){if(this.u&&a.value)this.response.push(a.value);else if(!this.u){var b=a.value?a.value:new Uint8Array(0);if(b=this.A.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?Gd(this):Fd(this);3==this.readyState&&Hd(this)}};
|
||
|
n.bb=function(a){this.g&&(this.response=this.responseText=a,Gd(this))};n.ab=function(a){this.g&&(this.response=a,Gd(this))};n.na=function(){this.g&&Gd(this)};function Gd(a){a.readyState=4;a.l=null;a.j=null;a.A=null;Fd(a)}n.setRequestHeader=function(a,b){this.v.append(a,b)};n.getResponseHeader=function(a){return this.h?this.h.get(a.toLowerCase())||"":""};
|
||
|
n.getAllResponseHeaders=function(){if(!this.h)return"";for(var a=[],b=this.h.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};function Fd(a){a.onreadystatechange&&a.onreadystatechange.call(a)}Object.defineProperty(Dd.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(a){this.m=a?"include":"same-origin"}});var Id=w.JSON.parse;function Q(a){C.call(this);this.headers=new Map;this.u=a||null;this.h=!1;this.C=this.g=null;this.I="";this.m=0;this.j="";this.l=this.G=this.v=this.D=!1;this.B=0;this.A=null;this.L=Jd;this.M=this.N=!1}y(Q,C);var Jd="",Kd=/^https?$/i,Ld=["POST","PUT"];n=Q.prototype;n.Ra=function(a){this.N=a};
|
||
|
n.ja=function(a,b,c,d){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.I+"; newUri="+a);b=b?b.toUpperCase():"GET";this.I=a;this.j="";this.m=0;this.D=!1;this.h=!0;this.g=this.u?this.u.g():nc.g();this.C=this.u?ic(this.u):ic(nc);this.g.onreadystatechange=x(this.Oa,this);try{this.G=!0,this.g.open(b,String(a),!0),this.G=!1}catch(f){Md(this,f);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===
|
||
|
typeof d.keys&&"function"===typeof d.get){e=q(d.keys());for(var h=e.next();!h.done;h=e.next())h=h.value,c.set(h,d.get(h))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(f){return"content-type"==f.toLowerCase()});e=w.FormData&&a instanceof w.FormData;!(0<=wa(Ld,b))||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=q(c);for(d=b.next();!d.done;d=b.next())c=q(d.value),d=c.next().value,c=c.next().value,this.g.setRequestHeader(d,
|
||
|
c);this.L&&(this.g.responseType=this.L);"withCredentials"in this.g&&this.g.withCredentials!==this.N&&(this.g.withCredentials=this.N);try{Nd(this),0<this.B&&((this.M=Od(this.g))?(this.g.timeout=this.B,this.g.ontimeout=x(this.xa,this)):this.A=Lb(this.xa,this.B,this)),this.v=!0,this.g.send(a),this.v=!1}catch(f){Md(this,f)}};function Od(a){return Ga&&"number"===typeof a.timeout&&void 0!==a.ontimeout}
|
||
|
n.xa=function(){"undefined"!=typeof goog&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,D(this,"timeout"),this.abort(8))};function Md(a,b){a.h=!1;a.g&&(a.l=!0,a.g.abort(),a.l=!1);a.j=b;a.m=5;Pd(a);Qd(a)}function Pd(a){a.D||(a.D=!0,D(a,"complete"),D(a,"error"))}n.abort=function(a){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=a||7,D(this,"complete"),D(this,"abort"),Qd(this))};
|
||
|
n.O=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Qd(this,!0));Q.Z.O.call(this)};n.Oa=function(){this.s||(this.G||this.v||this.l?Rd(this):this.nb())};n.nb=function(){Rd(this)};
|
||
|
function Rd(a){if(a.h&&"undefined"!=typeof goog&&(!a.C[1]||4!=K(a)||2!=a.fa()))if(a.v&&4==K(a))Lb(a.Oa,0,a);else if(D(a,"readystatechange"),4==K(a)){a.h=!1;try{var b=a.fa();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 h=String(a.I).match($c)[1]||null;!h&&w.self&&w.self.location&&(h=w.self.location.protocol.slice(0,-1));e=!Kd.test(h?h.toLowerCase():"")}d=e}if(d)D(a,"complete"),D(a,"success");else{a.m=
|
||
|
6;try{var f=2<K(a)?a.g.statusText:""}catch(k){f=""}a.j=f+" ["+a.fa()+"]";Pd(a)}}finally{Qd(a)}}}function Qd(a,b){if(a.g){Nd(a);var c=a.g,d=a.C[0]?function(){}:null;a.g=null;a.C=null;b||D(a,"ready");try{c.onreadystatechange=d}catch(e){}}}function Nd(a){a.g&&a.M&&(a.g.ontimeout=null);a.A&&(w.clearTimeout(a.A),a.A=null)}n.isActive=function(){return!!this.g};function K(a){return a.g?a.g.readyState:0}n.fa=function(){try{return 2<K(this)?this.g.status:-1}catch(a){return-1}};
|
||
|
n.ma=function(){try{return this.g?this.g.responseText:""}catch(a){return""}};n.Za=function(a){if(this.g){var b=this.g.responseText;a&&0==b.indexOf(a)&&(b=b.substring(a.length));return Id(b)}};function Ac(a){try{if(!a.g)return null;if("response"in a.g)return a.g.response;switch(a.L){case Jd:case "text":return a.g.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.g)return a.g.mozResponseArrayBuffer}return null}catch(b){return null}}
|
||
|
function Hc(a){var b={};a=(a.g&&2<=K(a)?a.g.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!Aa(a[c])){var d=Cb(a[c]),e=d[0];d=d[1];if("string"===typeof d){d=d.trim();var h=b[e]||[];b[e]=h;h.push(d)}}$a(b,function(f){return f.join(", ")})}n.La=function(){return this.m};n.Va=function(){return"string"===typeof this.j?this.j:String(this.j)};function Sd(a){var b="";Za(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))):N(a,b,c))};function Ud(a,b,c){return c&&c.internalChannelParams?c.internalChannelParams[a]||b:b}
|
||
|
function Vd(a){this.Ja=0;this.j=[];this.l=new Tb;this.sa=this.za=this.I=this.aa=this.g=this.Ga=this.D=this.qa=this.o=this.W=this.s=null;this.ib=this.Y=0;this.gb=Ud("failFast",!1,a);this.G=this.v=this.u=this.m=this.h=null;this.ca=!0;this.Ia=this.X=-1;this.da=this.A=this.C=0;this.eb=Ud("baseRetryDelayMs",5E3,a);this.kb=Ud("retryDelaySeedMs",1E4,a);this.hb=Ud("forwardChannelMaxRetries",2,a);this.Aa=Ud("forwardChannelRequestTimeoutMs",2E4,a);this.ya=a&&a.xmlHttpFactory||void 0;this.Ka=a&&a.useFetchStreams||
|
||
|
!1;this.M=void 0;this.J=a&&a.supportsCrossDomainXhr||!1;this.L="";this.i=new td(a&&a.concurrentRequestLimit);this.Ma=new yd;this.R=a&&a.fastHandshake||!1;this.P=a&&a.encodeInitMessageHeaders||!1;this.R&&this.P&&(this.P=!1);this.fb=a&&a.ec||!1;a&&a.Ha&&this.l.Ha();a&&a.forceLongPolling&&(this.ca=!1);this.ea=!this.R&&this.ca&&a&&a.detectBufferingProxy||!1;this.ta=void 0;a&&a.longPollingTimeout&&0<a.longPollingTimeout&&(this.ta=a.longPollingTimeout);this.ra=void 0;this.T=0;this.N=!1;this.pa=this.B=null}
|
||
|
n=Vd.prototype;n.ua=8;n.H=1;function Wc(a){Wd(a);if(3==a.H){var b=a.Y++,c=J(a.I);N(c,"SID",a.L);N(c,"RID",b);N(c,"TYPE","terminate");Xd(a,c);b=new pc(a,a.l,b);b.M=2;b.A=vc(J(c));c=!1;if(w.navigator&&w.navigator.sendBeacon)try{c=w.navigator.sendBeacon(b.A.toString(),"")}catch(d){}!c&&w.Image&&((new Image).src=b.A,c=!0);c||(b.g=zc(b.l,null),b.g.ja(b.A));b.G=Date.now();xc(b)}Yd(a)}function Nc(a){a.g&&(Jc(a),a.g.cancel(),a.g=null)}
|
||
|
function Wd(a){Nc(a);a.u&&(w.clearTimeout(a.u),a.u=null);Mc(a);a.i.cancel();a.m&&("number"===typeof a.m&&w.clearTimeout(a.m),a.m=null)}function Vc(a){vd(a.i)||a.m||(a.m=!0,Gb(a.Qa,a),a.C=0)}function Zd(a,b){if(Pc(a.i)>=a.i.j-(a.m?1:0))return!1;if(a.m)return a.j=b.D.concat(a.j),!0;if(1==a.H||2==a.H||a.C>=(a.gb?0:a.hb))return!1;a.m=ec(x(a.Qa,a,b),$d(a,a.C));a.C++;return!0}
|
||
|
n.Qa=function(a){if(this.m)if(this.m=null,1==this.H){if(!a){this.Y=Math.floor(1E5*Math.random());a=this.Y++;var b=new pc(this,this.l,a),c=this.s;this.W&&(c?(c=ab(c),cb(c,this.W)):c=this.W);null!==this.o||this.P||(b.I=c,c=null);var d;if(this.R)a:{for(var e=d=0;e<this.j.length;e++){b:{var h=this.j[e];if("__data__"in h.map&&(h=h.map.__data__,"string"===typeof h)){h=h.length;break b}h=void 0}if(void 0===h)break;d+=h;if(4096<d){d=e;break a}if(4096===d||e===this.j.length-1){d=e+1;break a}}d=1E3}else d=
|
||
|
1E3;d=ae(this,b,d);e=J(this.I);N(e,"RID",a);N(e,"CVER",22);this.D&&N(e,"X-HTTP-Session-Id",this.D);Xd(this,e);c&&(this.P?d="headers="+encodeURIComponent(String(Sd(c)))+"&"+d:this.o&&Td(e,this.o,c));Qc(this.i,b);this.fb&&N(e,"TYPE","init");this.R?(N(e,"$req",d),N(e,"SID","null"),b.ca=!0,uc(b,e,null)):uc(b,e,d);this.H=2}}else 3==this.H&&(a?be(this,a):0==this.j.length||vd(this.i)||be(this))};
|
||
|
function be(a,b){var c;b?c=b.m:c=a.Y++;var d=J(a.I);N(d,"SID",a.L);N(d,"RID",c);N(d,"AID",a.X);Xd(a,d);a.o&&a.s&&Td(d,a.o,a.s);c=new pc(a,a.l,c,a.C+1);null===a.o&&(c.I=a.s);b&&(a.j=b.D.concat(a.j));b=ae(a,c,1E3);c.setTimeout(Math.round(.5*a.Aa)+Math.round(.5*a.Aa*Math.random()));Qc(a.i,c);uc(c,d,b)}function Xd(a,b){a.qa&&Za(a.qa,function(c,d){N(b,d,c)});a.h&&Zc({},function(c,d){N(b,d,c)})}
|
||
|
function ae(a,b,c){c=Math.min(a.j.length,c);var d=a.h?x(a.h.Ya,a.h,a):null;a:for(var e=a.j,h=-1;;){var f=["count="+c];-1==h?0<c?(h=e[0].g,f.push("ofs="+h)):h=0:f.push("ofs="+h);for(var k=!0,l=0;l<c;l++){var m=e[l].g,p=e[l].map;m-=h;if(0>m)h=Math.max(0,e[l].g-100),k=!1;else try{zd(p,f,"req"+m+"_")}catch(t){d&&d(p)}}if(k){d=f.join("&");break a}}a=a.j.splice(0,c);b.D=a;return d}function Uc(a){a.g||a.u||(a.da=1,Gb(a.Pa,a),a.A=0)}
|
||
|
function Oc(a){if(a.g||a.u||3<=a.A)return!1;a.da++;a.u=ec(x(a.Pa,a),$d(a,a.A));a.A++;return!0}n.Pa=function(){this.u=null;ce(this);if(this.ea&&!(this.N||null==this.g||0>=this.T)){var a=2*this.T;this.l.info("BP detection timer enabled: "+a);this.B=ec(x(this.mb,this),a)}};n.mb=function(){this.B&&(this.B=null,this.l.info("BP detection timeout reached."),this.l.info("Buffering proxy detected and switch to long-polling!"),this.G=!1,this.N=!0,I(10),Nc(this),ce(this))};
|
||
|
function Jc(a){null!=a.B&&(w.clearTimeout(a.B),a.B=null)}function ce(a){a.g=new pc(a,a.l,"rpc",a.da);null===a.o&&(a.g.I=a.s);a.g.P=0;var b=J(a.za);N(b,"RID","rpc");N(b,"SID",a.L);N(b,"AID",a.X);N(b,"CI",a.G?"0":"1");!a.G&&a.ta&&N(b,"TO",a.ta);N(b,"TYPE","xmlhttp");Xd(a,b);a.o&&a.s&&Td(b,a.o,a.s);a.M&&a.g.setTimeout(a.M);var c=a.g;a=a.sa;c.M=1;c.A=vc(J(b));c.u=null;c.T=!0;wc(c,a)}n.lb=function(){null!=this.v&&(this.v=null,Nc(this),Oc(this),I(19))};
|
||
|
function Mc(a){null!=a.v&&(w.clearTimeout(a.v),a.v=null)}function Gc(a,b){var c=null;if(a.g==b){Mc(a);Jc(a);a.g=null;var d=2}else if(Lc(a.i,b))c=b.D,Tc(a.i,b),d=1;else return;if(0!=a.H)if(b.i)if(1==d){c=b.u?b.u.length:0;b=Date.now()-b.G;var e=a.C;d=$b();D(d,new dc(d,c,b,e));Vc(a)}else Uc(a);else if(e=b.s,3==e||0==e&&0<b.ea||!(1==d&&Zd(a,b)||2==d&&Oc(a)))switch(c&&0<c.length&&(b=a.i,b.i=b.i.concat(c)),e){case 1:M(a,5);break;case 4:M(a,10);break;case 3:M(a,6);break;default:M(a,2)}}
|
||
|
function $d(a,b){var c=a.eb+Math.floor(Math.random()*a.kb);a.isActive()||(c*=2);return c*b}function M(a,b){a.l.info("Error code "+b);if(2==b){var c=null;a.h&&(c=null);var d=x(a.sb,a);c||(c=new O("//www.google.com/images/cleardot.gif"),w.location&&"http"==w.location.protocol||bd(c,"https"),vc(c));Ad(c.toString(),d)}else I(2);a.H=0;a.h&&a.h.Ca(b);Yd(a);Wd(a)}n.sb=function(a){a?(this.l.info("Successfully pinged google.com"),I(2)):(this.l.info("Failed to ping google.com"),I(1))};
|
||
|
function Yd(a){a.H=0;a.pa=[];if(a.h){var b=wd(a.i);if(0!=b.length||0!=a.j.length)ya(a.pa,b),ya(a.pa,a.j),a.i.i.length=0,xa(a.j),a.j.length=0;a.h.Ba()}}function Rc(a,b,c){var d=c instanceof O?J(c):new O(c);if(""!=d.g)b&&(d.g=b+"."+d.g),cd(d,d.o);else{var e=w.location;d=e.protocol;b=b?b+"."+e.hostname:e.hostname;e=+e.port;var h=new O(null);d&&bd(h,d);b&&(h.g=b);e&&cd(h,e);c&&(h.h=c);d=h}c=a.D;b=a.Ga;c&&b&&N(d,c,b);N(d,"VER",a.ua);Xd(a,d);return d}
|
||
|
function zc(a,b,c){if(b&&!a.J)throw Error("Can't create secondary domain capable XhrIo object.");b=a.Ka&&!a.ya?new Q(new Cd({rb:c})):new Q(a.ya);b.Ra(a.J);return b}n.isActive=function(){return!!this.h&&this.h.isActive(this)};function de(){}n=de.prototype;n.Ea=function(){};n.Da=function(){};n.Ca=function(){};n.Ba=function(){};n.isActive=function(){return!0};n.Ya=function(){};function ee(){if(Ga&&!(10<=Number(Sa)))throw Error("Environmental error: no available transport.");}ee.prototype.g=function(a,b){return new R(a,b)};
|
||
|
function R(a,b){C.call(this);this.g=new Vd(b);this.l=a;this.h=b&&b.messageUrlParams||null;a=b&&b.messageHeaders||null;b&&b.clientProtocolHeaderRequired&&(a?a["X-Client-Protocol"]="webchannel":a={"X-Client-Protocol":"webchannel"});this.g.s=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.Fa&&(a?a["X-WebChannel-Client-Profile"]=b.Fa:a={"X-WebChannel-Client-Profile":b.Fa});this.g.W=
|
||
|
a;(a=b&&b.fc)&&!Aa(a)&&(this.g.o=a);this.A=b&&b.supportsCrossDomainXhr||!1;this.v=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!Aa(b)&&(this.g.D=b,a=this.h,null!==a&&b in a&&(a=this.h,b in a&&delete a[b]));this.j=new fe(this)}y(R,C);R.prototype.m=function(){this.g.h=this.j;this.A&&(this.g.J=!0);var a=this.g,b=this.l,c=this.h||void 0;I(0);a.aa=b;a.qa=c||{};a.G=a.ca;a.I=Rc(a,null,a.aa);Vc(a)};R.prototype.close=function(){Wc(this.g)};
|
||
|
R.prototype.u=function(a){var b=this.g;if("string"===typeof a){var c={};c.__data__=a;a=c}else this.v&&(c={},c.__data__=vb(a),a=c);b.j.push(new sd(b.ib++,a));3==b.H&&Vc(b)};R.prototype.O=function(){this.g.h=null;delete this.j;Wc(this.g);delete this.g;R.Z.O.call(this)};
|
||
|
function ge(a){lc.call(this);a.__headers__&&(this.headers=a.__headers__,this.statusCode=a.__status__,delete a.__headers__,delete a.__status__);var b=a.__sm__;if(b){a:{for(var c in b){a=c;break a}a=void 0}if(this.i=a)a=this.i,b=null!==b&&a in b?b[a]:void 0;this.data=b}else this.data=a}y(ge,lc);function he(){mc.call(this);this.status=1}y(he,mc);function fe(a){this.g=a}y(fe,de);fe.prototype.Ea=function(){D(this.g,"a")};fe.prototype.Da=function(a){D(this.g,new ge(a))};
|
||
|
fe.prototype.Ca=function(a){D(this.g,new he(a))};fe.prototype.Ba=function(){D(this.g,"b")};function ie(){this.blockSize=-1};function T(){this.blockSize=-1;this.blockSize=64;this.g=Array(4);this.m=Array(this.blockSize);this.i=this.h=0;this.reset()}y(T,ie);T.prototype.reset=function(){this.g[0]=1732584193;this.g[1]=4023233417;this.g[2]=2562383102;this.g[3]=271733878;this.i=this.h=0};
|
||
|
function je(a,b,c){c||(c=0);var d=Array(16);if("string"===typeof b)for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.g[0];c=a.g[1];e=a.g[2];var h=a.g[3];var f=b+(h^c&(e^h))+d[0]+3614090360&4294967295;b=c+(f<<7&4294967295|f>>>25);f=h+(e^b&(c^e))+d[1]+3905402710&4294967295;h=b+(f<<12&4294967295|f>>>20);f=e+(c^h&(b^c))+d[2]+606105819&4294967295;e=h+(f<<17&4294967295|f>>>15);
|
||
|
f=c+(b^e&(h^b))+d[3]+3250441966&4294967295;c=e+(f<<22&4294967295|f>>>10);f=b+(h^c&(e^h))+d[4]+4118548399&4294967295;b=c+(f<<7&4294967295|f>>>25);f=h+(e^b&(c^e))+d[5]+1200080426&4294967295;h=b+(f<<12&4294967295|f>>>20);f=e+(c^h&(b^c))+d[6]+2821735955&4294967295;e=h+(f<<17&4294967295|f>>>15);f=c+(b^e&(h^b))+d[7]+4249261313&4294967295;c=e+(f<<22&4294967295|f>>>10);f=b+(h^c&(e^h))+d[8]+1770035416&4294967295;b=c+(f<<7&4294967295|f>>>25);f=h+(e^b&(c^e))+d[9]+2336552879&4294967295;h=b+(f<<12&4294967295|
|
||
|
f>>>20);f=e+(c^h&(b^c))+d[10]+4294925233&4294967295;e=h+(f<<17&4294967295|f>>>15);f=c+(b^e&(h^b))+d[11]+2304563134&4294967295;c=e+(f<<22&4294967295|f>>>10);f=b+(h^c&(e^h))+d[12]+1804603682&4294967295;b=c+(f<<7&4294967295|f>>>25);f=h+(e^b&(c^e))+d[13]+4254626195&4294967295;h=b+(f<<12&4294967295|f>>>20);f=e+(c^h&(b^c))+d[14]+2792965006&4294967295;e=h+(f<<17&4294967295|f>>>15);f=c+(b^e&(h^b))+d[15]+1236535329&4294967295;c=e+(f<<22&4294967295|f>>>10);f=b+(e^h&(c^e))+d[1]+4129170786&4294967295;b=c+(f<<
|
||
|
5&4294967295|f>>>27);f=h+(c^e&(b^c))+d[6]+3225465664&4294967295;h=b+(f<<9&4294967295|f>>>23);f=e+(b^c&(h^b))+d[11]+643717713&4294967295;e=h+(f<<14&4294967295|f>>>18);f=c+(h^b&(e^h))+d[0]+3921069994&4294967295;c=e+(f<<20&4294967295|f>>>12);f=b+(e^h&(c^e))+d[5]+3593408605&4294967295;b=c+(f<<5&4294967295|f>>>27);f=h+(c^e&(b^c))+d[10]+38016083&4294967295;h=b+(f<<9&4294967295|f>>>23);f=e+(b^c&(h^b))+d[15]+3634488961&4294967295;e=h+(f<<14&4294967295|f>>>18);f=c+(h^b&(e^h))+d[4]+3889429448&4294967295;c=
|
||
|
e+(f<<20&4294967295|f>>>12);f=b+(e^h&(c^e))+d[9]+568446438&4294967295;b=c+(f<<5&4294967295|f>>>27);f=h+(c^e&(b^c))+d[14]+3275163606&4294967295;h=b+(f<<9&4294967295|f>>>23);f=e+(b^c&(h^b))+d[3]+4107603335&4294967295;e=h+(f<<14&4294967295|f>>>18);f=c+(h^b&(e^h))+d[8]+1163531501&4294967295;c=e+(f<<20&4294967295|f>>>12);f=b+(e^h&(c^e))+d[13]+2850285829&4294967295;b=c+(f<<5&4294967295|f>>>27);f=h+(c^e&(b^c))+d[2]+4243563512&4294967295;h=b+(f<<9&4294967295|f>>>23);f=e+(b^c&(h^b))+d[7]+1735328473&4294967295;
|
||
|
e=h+(f<<14&4294967295|f>>>18);f=c+(h^b&(e^h))+d[12]+2368359562&4294967295;c=e+(f<<20&4294967295|f>>>12);f=b+(c^e^h)+d[5]+4294588738&4294967295;b=c+(f<<4&4294967295|f>>>28);f=h+(b^c^e)+d[8]+2272392833&4294967295;h=b+(f<<11&4294967295|f>>>21);f=e+(h^b^c)+d[11]+1839030562&4294967295;e=h+(f<<16&4294967295|f>>>16);f=c+(e^h^b)+d[14]+4259657740&4294967295;c=e+(f<<23&4294967295|f>>>9);f=b+(c^e^h)+d[1]+2763975236&4294967295;b=c+(f<<4&4294967295|f>>>28);f=h+(b^c^e)+d[4]+1272893353&4294967295;h=b+(f<<11&4294967295|
|
||
|
f>>>21);f=e+(h^b^c)+d[7]+4139469664&4294967295;e=h+(f<<16&4294967295|f>>>16);f=c+(e^h^b)+d[10]+3200236656&4294967295;c=e+(f<<23&4294967295|f>>>9);f=b+(c^e^h)+d[13]+681279174&4294967295;b=c+(f<<4&4294967295|f>>>28);f=h+(b^c^e)+d[0]+3936430074&4294967295;h=b+(f<<11&4294967295|f>>>21);f=e+(h^b^c)+d[3]+3572445317&4294967295;e=h+(f<<16&4294967295|f>>>16);f=c+(e^h^b)+d[6]+76029189&4294967295;c=e+(f<<23&4294967295|f>>>9);f=b+(c^e^h)+d[9]+3654602809&4294967295;b=c+(f<<4&4294967295|f>>>28);f=h+(b^c^e)+d[12]+
|
||
|
3873151461&4294967295;h=b+(f<<11&4294967295|f>>>21);f=e+(h^b^c)+d[15]+530742520&4294967295;e=h+(f<<16&4294967295|f>>>16);f=c+(e^h^b)+d[2]+3299628645&4294967295;c=e+(f<<23&4294967295|f>>>9);f=b+(e^(c|~h))+d[0]+4096336452&4294967295;b=c+(f<<6&4294967295|f>>>26);f=h+(c^(b|~e))+d[7]+1126891415&4294967295;h=b+(f<<10&4294967295|f>>>22);f=e+(b^(h|~c))+d[14]+2878612391&4294967295;e=h+(f<<15&4294967295|f>>>17);f=c+(h^(e|~b))+d[5]+4237533241&4294967295;c=e+(f<<21&4294967295|f>>>11);f=b+(e^(c|~h))+d[12]+1700485571&
|
||
|
4294967295;b=c+(f<<6&4294967295|f>>>26);f=h+(c^(b|~e))+d[3]+2399980690&4294967295;h=b+(f<<10&4294967295|f>>>22);f=e+(b^(h|~c))+d[10]+4293915773&4294967295;e=h+(f<<15&4294967295|f>>>17);f=c+(h^(e|~b))+d[1]+2240044497&4294967295;c=e+(f<<21&4294967295|f>>>11);f=b+(e^(c|~h))+d[8]+1873313359&4294967295;b=c+(f<<6&4294967295|f>>>26);f=h+(c^(b|~e))+d[15]+4264355552&4294967295;h=b+(f<<10&4294967295|f>>>22);f=e+(b^(h|~c))+d[6]+2734768916&4294967295;e=h+(f<<15&4294967295|f>>>17);f=c+(h^(e|~b))+d[13]+1309151649&
|
||
|
4294967295;c=e+(f<<21&4294967295|f>>>11);f=b+(e^(c|~h))+d[4]+4149444226&4294967295;b=c+(f<<6&4294967295|f>>>26);f=h+(c^(b|~e))+d[11]+3174756917&4294967295;h=b+(f<<10&4294967295|f>>>22);f=e+(b^(h|~c))+d[2]+718787259&4294967295;e=h+(f<<15&4294967295|f>>>17);f=c+(h^(e|~b))+d[9]+3951481745&4294967295;a.g[0]=a.g[0]+b&4294967295;a.g[1]=a.g[1]+(e+(f<<21&4294967295|f>>>11))&4294967295;a.g[2]=a.g[2]+e&4294967295;a.g[3]=a.g[3]+h&4294967295}
|
||
|
T.prototype.j=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=this.m,e=this.h,h=0;h<b;){if(0==e)for(;h<=c;)je(this,a,h),h+=this.blockSize;if("string"===typeof a)for(;h<b;){if(d[e++]=a.charCodeAt(h++),e==this.blockSize){je(this,d);e=0;break}}else for(;h<b;)if(d[e++]=a[h++],e==this.blockSize){je(this,d);e=0;break}}this.h=e;this.i+=b};
|
||
|
T.prototype.l=function(){var a=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.i;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.j(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.g[b]>>>d&255;return a};function U(a,b){this.h=b;for(var c=[],d=!0,e=a.length-1;0<=e;e--){var h=a[e]|0;d&&h==b||(c[e]=h,d=!1)}this.g=c}var Ea={};function ke(a){return-128<=a&&128>a?Da(a,function(b){return new U([b|0],0>b?-1:0)}):new U([a|0],0>a?-1:0)}function V(a){if(isNaN(a)||!isFinite(a))return le;if(0>a)return W(V(-a));for(var b=[],c=1,d=0;a>=c;d++)b[d]=a/c|0,c*=me;return new U(b,0)}
|
||
|
function ne(a,b){if(0==a.length)throw Error("number format error: empty string");b=b||10;if(2>b||36<b)throw Error("radix out of range: "+b);if("-"==a.charAt(0))return W(ne(a.substring(1),b));if(0<=a.indexOf("-"))throw Error('number format error: interior "-" character');for(var c=V(Math.pow(b,8)),d=le,e=0;e<a.length;e+=8){var h=Math.min(8,a.length-e),f=parseInt(a.substring(e,e+h),b);8>h?(h=V(Math.pow(b,h)),d=d.S(h).add(V(f))):(d=d.S(c),d=d.add(V(f)))}return d}
|
||
|
var me=4294967296,le=ke(0),oe=ke(1),pe=ke(16777216);n=U.prototype;n.ga=function(){if(X(this))return-W(this).ga();for(var a=0,b=1,c=0;c<this.g.length;c++){var d=this.F(c);a+=(0<=d?d:me+d)*b;b*=me}return a};
|
||
|
n.toString=function(a){a=a||10;if(2>a||36<a)throw Error("radix out of range: "+a);if(Y(this))return"0";if(X(this))return"-"+W(this).toString(a);for(var b=V(Math.pow(a,6)),c=this,d="";;){var e=qe(c,b).g;c=re(c,e.S(b));var h=((0<c.g.length?c.g[0]:c.h)>>>0).toString(a);c=e;if(Y(c))return h+d;for(;6>h.length;)h="0"+h;d=h+d}};n.F=function(a){return 0>a?0:a<this.g.length?this.g[a]:this.h};function Y(a){if(0!=a.h)return!1;for(var b=0;b<a.g.length;b++)if(0!=a.g[b])return!1;return!0}
|
||
|
function X(a){return-1==a.h}n.$=function(a){a=re(this,a);return X(a)?-1:Y(a)?0:1};function W(a){for(var b=a.g.length,c=[],d=0;d<b;d++)c[d]=~a.g[d];return(new U(c,~a.h)).add(oe)}n.abs=function(){return X(this)?W(this):this};n.add=function(a){for(var b=Math.max(this.g.length,a.g.length),c=[],d=0,e=0;e<=b;e++){var h=d+(this.F(e)&65535)+(a.F(e)&65535),f=(h>>>16)+(this.F(e)>>>16)+(a.F(e)>>>16);d=f>>>16;h&=65535;f&=65535;c[e]=f<<16|h}return new U(c,c[c.length-1]&-2147483648?-1:0)};
|
||
|
function re(a,b){return a.add(W(b))}
|
||
|
n.S=function(a){if(Y(this)||Y(a))return le;if(X(this))return X(a)?W(this).S(W(a)):W(W(this).S(a));if(X(a))return W(this.S(W(a)));if(0>this.$(pe)&&0>a.$(pe))return V(this.ga()*a.ga());for(var b=this.g.length+a.g.length,c=[],d=0;d<2*b;d++)c[d]=0;for(d=0;d<this.g.length;d++)for(var e=0;e<a.g.length;e++){var h=this.F(d)>>>16,f=this.F(d)&65535,k=a.F(e)>>>16,l=a.F(e)&65535;c[2*d+2*e]+=f*l;se(c,2*d+2*e);c[2*d+2*e+1]+=h*l;se(c,2*d+2*e+1);c[2*d+2*e+1]+=f*k;se(c,2*d+2*e+1);c[2*d+2*e+2]+=h*k;se(c,2*d+2*e+2)}for(d=
|
||
|
0;d<b;d++)c[d]=c[2*d+1]<<16|c[2*d];for(d=b;d<2*b;d++)c[d]=0;return new U(c,0)};function se(a,b){for(;(a[b]&65535)!=a[b];)a[b+1]+=a[b]>>>16,a[b]&=65535,b++}function te(a,b){this.g=a;this.h=b}
|
||
|
function qe(a,b){if(Y(b))throw Error("division by zero");if(Y(a))return new te(le,le);if(X(a))return b=qe(W(a),b),new te(W(b.g),W(b.h));if(X(b))return b=qe(a,W(b)),new te(W(b.g),b.h);if(30<a.g.length){if(X(a)||X(b))throw Error("slowDivide_ only works with positive integers.");for(var c=oe,d=b;0>=d.$(a);)c=ue(c),d=ue(d);var e=ve(c,1),h=ve(d,1);d=ve(d,2);for(c=ve(c,2);!Y(d);){var f=h.add(d);0>=f.$(a)&&(e=e.add(c),h=f);d=ve(d,1);c=ve(c,1)}b=re(a,e.S(b));return new te(e,b)}for(e=le;0<=a.$(b);){c=Math.max(1,
|
||
|
Math.floor(a.ga()/b.ga()));d=Math.ceil(Math.log(c)/Math.LN2);d=48>=d?1:Math.pow(2,d-48);h=V(c);for(f=h.S(b);X(f)||0<f.$(a);)c-=d,h=V(c),f=h.S(b);Y(h)&&(h=oe);e=e.add(h);a=re(a,f)}return new te(e,a)}n.jb=function(a){return qe(this,a).h};n.and=function(a){for(var b=Math.max(this.g.length,a.g.length),c=[],d=0;d<b;d++)c[d]=this.F(d)&a.F(d);return new U(c,this.h&a.h)};n.or=function(a){for(var b=Math.max(this.g.length,a.g.length),c=[],d=0;d<b;d++)c[d]=this.F(d)|a.F(d);return new U(c,this.h|a.h)};
|
||
|
n.xor=function(a){for(var b=Math.max(this.g.length,a.g.length),c=[],d=0;d<b;d++)c[d]=this.F(d)^a.F(d);return new U(c,this.h^a.h)};function ue(a){for(var b=a.g.length+1,c=[],d=0;d<b;d++)c[d]=a.F(d)<<1|a.F(d-1)>>>31;return new U(c,a.h)}function ve(a,b){var c=b>>5;b%=32;for(var d=a.g.length-c,e=[],h=0;h<d;h++)e[h]=0<b?a.F(h+c)>>>b|a.F(h+c+1)<<32-b:a.F(h+c);return new U(e,a.h)};/*
|
||
|
|
||
|
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.
|
||
|
*/
|
||
|
ee.prototype.createWebChannel=ee.prototype.g;R.prototype.send=R.prototype.u;R.prototype.open=R.prototype.m;R.prototype.close=R.prototype.close;fc.NO_ERROR=0;fc.TIMEOUT=8;fc.HTTP_ERROR=6;gc.COMPLETE="complete";jc.EventType=kc;kc.OPEN="a";kc.CLOSE="b";kc.ERROR="c";kc.MESSAGE="d";C.prototype.listen=C.prototype.P;Q.prototype.listenOnce=Q.prototype.R;Q.prototype.getLastError=Q.prototype.Va;Q.prototype.getLastErrorCode=Q.prototype.La;Q.prototype.getStatus=Q.prototype.fa;Q.prototype.getResponseJson=Q.prototype.Za;
|
||
|
Q.prototype.getResponseText=Q.prototype.ma;Q.prototype.send=Q.prototype.ja;Q.prototype.setWithCredentials=Q.prototype.Ra;T.prototype.digest=T.prototype.l;T.prototype.reset=T.prototype.reset;T.prototype.update=T.prototype.j;U.prototype.add=U.prototype.add;U.prototype.multiply=U.prototype.S;U.prototype.modulo=U.prototype.jb;U.prototype.compare=U.prototype.$;U.prototype.toNumber=U.prototype.ga;U.prototype.toString=U.prototype.toString;U.prototype.getBits=U.prototype.F;U.fromNumber=V;U.fromString=ne;
|
||
|
module.exports.createWebChannelTransport=function(){return new ee};module.exports.getStatEventTarget=function(){return $b()};module.exports.ErrorCode=fc;module.exports.EventType=gc;module.exports.Event=G;module.exports.Stat={Ab:0,Db:1,Eb:2,Xb:3,bc:4,Zb:5,$b:6,Yb:7,Wb:8,ac:9,PROXY:10,NOPROXY:11,Ub:12,Qb:13,Rb:14,Pb:15,Sb:16,Tb:17,wb:18,vb:19,xb:20};module.exports.FetchXmlHttpFactory=Cd;module.exports.WebChannel=jc;module.exports.XhrIo=Q;module.exports.Md5=T;module.exports.Integer=U;}).apply(typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {});
|
||
|
|
||
|
//# sourceMappingURL=index.js.map
|