@firebase/webchannel-wrapper 0.7.0 → 0.8.0-20221010190246
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.esm.js +57 -55
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm2017.js +35 -35
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.js +34 -34
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;b.prototy
|
|
|
29
29
|
b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});var goog=goog||{},w=this||self;function ma(){}function na(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 x(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)}
|
|
30
30
|
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)}}
|
|
31
31
|
function y(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?y=ra:y=sa;return y.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)}}
|
|
32
|
-
function z(a,b){function c(){}c.prototype=b.prototype;a.X=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.
|
|
32
|
+
function z(a,b){function c(){}c.prototype=b.prototype;a.X=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Zb=function(d,e,f){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return b.prototype[e].apply(d,h)}};function A(){0!=ua&&(va[oa(this)]=this);this.s=this.s;this.o=this.o}var ua=0,va={};A.prototype.s=!1;A.prototype.qa=function(){if(!this.s&&(this.s=!0,this.N(),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]}};A.prototype.N=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[]}
|
|
33
33
|
function ya(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(na(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};function B(a,b){this.type=a;this.g=this.target=b;this.defaultPrevented=!1}B.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{w.addEventListener("test",ma,b),w.removeEventListener("test",ma,b)}catch(c){}return a}();function Aa(a){return/^[\s\xa0]*$/.test(a)}var Ba=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};function Ca(a,b){return a<b?-1:a>b?1:0};function Da(){var a=w.navigator;return a&&(a=a.userAgent)?a:""}function D(a){return-1!=Da().indexOf(a)};function Ea(a){Ea[" "](a);return a}Ea[" "]=ma;function Fa(a){var b=Ga;return Object.prototype.hasOwnProperty.call(b,9)?b[9]:b[9]=a(9)};var Ha=D("Opera"),E=D("Trident")||D("MSIE"),Ia=D("Edge"),Ja=Ia||E,Ka=D("Gecko")&&!(-1!=Da().toLowerCase().indexOf("webkit")&&!D("Edge"))&&!(D("Trident")||D("MSIE"))&&!D("Edge"),La=-1!=Da().toLowerCase().indexOf("webkit")&&!D("Edge");function Ma(){var a=w.document;return a?a.documentMode:void 0}var Na;
|
|
34
34
|
a:{var Oa="",Pa=function(){var a=Da();if(Ka)return/rv:([^\);]+)(\)|;)/.exec(a);if(Ia)return/Edge\/([\d\.]+)/.exec(a);if(E)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(La)return/WebKit\/(\S+)/.exec(a);if(Ha)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Pa&&(Oa=Pa?Pa[1]:"");if(E){var Qa=Ma();if(null!=Qa&&Qa>parseFloat(Oa)){Na=String(Qa);break a}}Na=Oa}var Ga={};
|
|
35
35
|
function Ra(){return Fa(function(){for(var a=0,b=Ba(String(Na)).split("."),c=Ba("9").split("."),d=Math.max(b.length,c.length),e=0;0==a&&e<d;e++){var f=b[e]||"",h=c[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;a=Ca(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||Ca(0==f[2].length,0==h[2].length)||Ca(f[2],h[2]);f=f[3];h=h[3]}while(0==a)}return 0<=a})}var Sa;
|
|
@@ -44,21 +44,21 @@ function sb(a){if("number"!==typeof a&&a&&!a.da){var b=a.src;if(b&&b[Wa])fb(b.i,
|
|
|
44
44
|
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 H(){A.call(this);this.i=new db(this);this.R=this;this.J=null}z(H,A);H.prototype[Wa]=!0;H.prototype.removeEventListener=function(a,b,c,d){rb(this,a,b,c,d)};
|
|
45
45
|
function I(a,b){var c,d=a.J;if(d)for(c=[];d;d=d.J)c.push(d);a=a.R;d=b.type||b;if("string"===typeof b)b=new B(b,a);else if(b instanceof B)b.target=b.target||a;else{var e=b;b=new B(d,a);cb(b,e)}e=!0;if(c)for(var f=c.length-1;0<=f;f--){var h=b.g=c[f];e=ub(h,d,!0,b)&&e}h=b.g=a;e=ub(h,d,!0,b)&&e;e=ub(h,d,!1,b)&&e;if(c)for(f=0;f<c.length;f++)h=b.g=c[f],e=ub(h,d,!1,b)&&e}
|
|
46
46
|
H.prototype.N=function(){H.X.N.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,Za(d[e]);delete a.g[c];a.h--}}this.J=null};H.prototype.O=function(a,b,c,d){return this.i.add(String(a),b,!1,c,d)};H.prototype.P=function(a,b,c,d){return this.i.add(String(a),b,!0,c,d)};
|
|
47
|
-
function ub(a,b,c,d){b=a.i.g[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.da&&h.capture==c){var k=h.listener,l=h.ka||h.src;h.ga&&fb(a.i,h);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){w.setTimeout(function(){throw a;},0)};function Db(a,b){Eb||Fb();Gb||(Eb(),Gb=!0);Ab.add(a,b)}var Eb;function Fb(){var a=w.Promise.resolve(void 0);Eb=function(){a.then(Hb)}}var Gb=!1,Ab=new xb;function Hb(){for(var a;a=zb();){try{a.h.call(a.g)}catch(c){Cb(c)}var b=yb;b.j(a);100>b.h&&(b.h++,a.next=b.g,b.g=a)}Gb=!1};function Ib(a,b){H.call(this);this.h=a||1;this.g=b||w;this.j=y(this.
|
|
47
|
+
function ub(a,b,c,d){b=a.i.g[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.da&&h.capture==c){var k=h.listener,l=h.ka||h.src;h.ga&&fb(a.i,h);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){w.setTimeout(function(){throw a;},0)};function Db(a,b){Eb||Fb();Gb||(Eb(),Gb=!0);Ab.add(a,b)}var Eb;function Fb(){var a=w.Promise.resolve(void 0);Eb=function(){a.then(Hb)}}var Gb=!1,Ab=new xb;function Hb(){for(var a;a=zb();){try{a.h.call(a.g)}catch(c){Cb(c)}var b=yb;b.j(a);100>b.h&&(b.h++,a.next=b.g,b.g=a)}Gb=!1};function Ib(a,b){H.call(this);this.h=a||1;this.g=b||w;this.j=y(this.ob,this);this.l=Date.now()}z(Ib,H);n=Ib.prototype;n.ea=!1;n.S=null;n.ob=function(){if(this.ea){var a=Date.now()-this.l;0<a&&a<.8*this.h?this.S=this.g.setTimeout(this.j,this.h-a):(this.S&&(this.g.clearTimeout(this.S),this.S=null),I(this,"tick"),this.ea&&(Jb(this),this.start()))}};n.start=function(){this.ea=!0;this.S||(this.S=this.g.setTimeout(this.j,this.h),this.l=Date.now())};
|
|
48
48
|
function Jb(a){a.ea=!1;a.S&&(a.g.clearTimeout(a.S),a.S=null)}n.N=function(){Ib.X.N.call(this);Jb(this);delete this.g};function Kb(a,b,c){if("function"===typeof a)c&&(a=y(a,c));else if(a&&"function"==typeof a.handleEvent)a=y(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:w.setTimeout(a,b||0)};function J(a,b,c){A.call(this);this.m=null!=c?a.bind(c):a;this.j=b;this.h=null;this.i=!1;this.g=null}J.prototype=ba(A.prototype);J.prototype.constructor=J;if(ja)ja(J,A);else for(var Lb in A)if("prototype"!=Lb)if(Object.defineProperties){var Mb=Object.getOwnPropertyDescriptor(A,Lb);Mb&&Object.defineProperty(J,Lb,Mb)}else J[Lb]=A[Lb];J.X=A.prototype;J.prototype.l=function(a){this.h=arguments;this.g?this.i=!0:Nb(this)};
|
|
49
49
|
J.prototype.N=function(){A.prototype.N.call(this);this.g&&(w.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)};function Nb(a){a.g=Kb(function(){a.g=null;a.i&&(a.i=!1,Nb(a))},a.j);var b=a.h;a.h=null;a.m.apply(null,b)};function Ob(a){A.call(this);this.h=a;this.g={}}z(Ob,A);var Pb=[];function Qb(a,b,c,d){Array.isArray(c)||(c&&(Pb[0]=c.toString()),c=Pb);for(var e=0;e<c.length;e++){var f=jb(b,c[e],d||a.handleEvent,!1,a.h||a);if(!f)break;a.g[f.key]=f}}function Rb(a){$a(a.g,function(b,c){this.g.hasOwnProperty(c)&&sb(b)},a);a.g={}}Ob.prototype.N=function(){Ob.X.N.call(this);Rb(this)};Ob.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function Sb(){this.g=!0}Sb.prototype.Da=function(){this.g=!1};function Tb(a,b,c,d,e,f){a.info(function(){if(a.g)if(f){var h="";for(var k=f.split("&"),l=0;l<k.length;l++){var m=k[l].split("=");if(1<m.length){var p=m[0];m=m[1];var r=p.split("_");h=2<=r.length&&"type"==r[1]?h+(p+"="+m+"&"):h+(p+"=redacted&")}}}else h=null;else h=f;return"XMLHTTP REQ ("+d+") [attempt "+e+"]: "+b+"\n"+c+"\n"+h})}
|
|
50
50
|
function Ub(a,b,c,d,e,f,h){a.info(function(){return"XMLHTTP RESP ("+d+") [ attempt "+e+"]: "+b+"\n"+c+"\n"+f+" "+h})}function K(a,b,c,d){a.info(function(){return"XMLHTTP TEXT ("+b+"): "+Vb(a,c)+(d?" "+d:"")})}function Wb(a,b){a.info(function(){return"TIMEOUT: "+b})}Sb.prototype.info=function(){};
|
|
51
|
-
function Vb(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 f=e[0];if("noop"!=f&&"stop"!=f&&"close"!=f)for(var h=1;h<e.length;h++)e[h]=""}}}return vb(c)}catch(k){return b}};var L={},Xb=null;function Yb(){return Xb=Xb||new H}L.
|
|
52
|
-
function cc(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 dc={NO_ERROR:0,
|
|
53
|
-
function sc(a,b,c){a.L=1;a.v=tc(O(b));a.s=c;a.R=!0;uc(a,null)}function uc(a,b){a.F=Date.now();vc(a);a.A=O(a.v);var c=a.A,d=a.W;Array.isArray(d)||(d=[String(d)]);wc(c.i,"t",d);a.C=0;c=a.l.H;a.h=new pc;a.g=xc(a.l,c?b:null,!a.s);0<a.O&&(a.M=new J(y(a.
|
|
54
|
-
n.
|
|
55
|
-
n.
|
|
56
|
-
a;this.C=0;l=this.h.g}else l=this.g.ia();this.i=200==e;Ub(this.j,this.u,this.A,this.m,this.W,b,e);if(this.i){if(this.aa&&!this.K){b:{if(this.g){var m,p=this.g;if((m=p.g?p.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Aa(m)){var r=m;break b}}r=null}if(e=r)K(this.j,this.m,e,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,Cc(this,e);else{this.i=!1;this.o=3;N(12);Q(this);Bc(this);break a}}this.R?(Dc(this,b,l),Ja&&this.i&&3==b&&(Qb(this.U,this.V,"tick",this.
|
|
51
|
+
function Vb(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 f=e[0];if("noop"!=f&&"stop"!=f&&"close"!=f)for(var h=1;h<e.length;h++)e[h]=""}}}return vb(c)}catch(k){return b}};var L={},Xb=null;function Yb(){return Xb=Xb||new H}L.Sa="serverreachability";function Zb(a){B.call(this,L.Sa,a)}z(Zb,B);function $b(a){var b=Yb();I(b,new Zb(b,a))}L.STAT_EVENT="statevent";function ac(a,b){B.call(this,L.STAT_EVENT,a);this.stat=b}z(ac,B);function N(a){var b=Yb();I(b,new ac(b,a))}L.Ta="timingevent";function bc(a,b){B.call(this,L.Ta,a);this.size=b}z(bc,B);
|
|
52
|
+
function cc(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 dc={NO_ERROR:0,pb:1,Cb:2,Bb:3,wb:4,Ab:5,Db:6,Pa:7,TIMEOUT:8,Gb:9};var ec={ub:"complete",Qb:"success",Qa:"error",Pa:"abort",Ib:"ready",Jb:"readystatechange",TIMEOUT:"timeout",Eb:"incrementaldata",Hb:"progress",xb:"downloadprogress",Yb:"uploadprogress"};function fc(){}fc.prototype.h=null;function gc(a){return a.h||(a.h=a.i())};function hc(){}var ic={OPEN:"a",tb:"b",Qa:"c",Fb:"d"};function jc(){B.call(this,"d")}z(jc,B);function kc(){B.call(this,"c")}z(kc,B);var lc;function mc(){}z(mc,fc);mc.prototype.g=function(){return new XMLHttpRequest};mc.prototype.i=function(){return{}};lc=new mc;function nc(a,b,c,d){this.l=a;this.j=b;this.m=c;this.W=d||1;this.U=new Ob(this);this.P=oc;a=Ja?125:void 0;this.V=new Ib(a);this.H=null;this.i=!1;this.s=this.A=this.v=this.L=this.F=this.Y=this.B=null;this.D=[];this.g=null;this.C=0;this.o=this.u=null;this.$=-1;this.J=!1;this.O=0;this.M=null;this.ba=this.K=this.aa=this.R=!1;this.h=new pc}function pc(){this.i=null;this.g="";this.h=!1}var oc=45E3,qc={},rc={};n=nc.prototype;n.setTimeout=function(a){this.P=a};
|
|
53
|
+
function sc(a,b,c){a.L=1;a.v=tc(O(b));a.s=c;a.R=!0;uc(a,null)}function uc(a,b){a.F=Date.now();vc(a);a.A=O(a.v);var c=a.A,d=a.W;Array.isArray(d)||(d=[String(d)]);wc(c.i,"t",d);a.C=0;c=a.l.H;a.h=new pc;a.g=xc(a.l,c?b:null,!a.s);0<a.O&&(a.M=new J(y(a.Oa,a,a.g),a.O));Qb(a.U,a.g,"readystatechange",a.lb);b=a.H?ab(a.H):{};a.s?(a.u||(a.u="POST"),b["Content-Type"]="application/x-www-form-urlencoded",a.g.fa(a.A,a.u,a.s,b)):(a.u="GET",a.g.fa(a.A,a.u,null,b));$b(1);Tb(a.j,a.u,a.A,a.m,a.W,a.s)}
|
|
54
|
+
n.lb=function(a){a=a.target;var b=this.M;b&&3==P(a)?b.l():this.Oa(a)};
|
|
55
|
+
n.Oa=function(a){try{if(a==this.g)a:{var b=P(this.g),c=this.g.Ha(),d=this.g.ca();if(!(3>b)&&(3!=b||Ja||this.g&&(this.h.h||this.g.ia()||yc(this.g)))){this.J||4!=b||7==c||(8==c||0>=d?$b(3):$b(2));zc(this);var e=this.g.ca();this.$=e;b:if(Ac(this)){var f=yc(this.g);a="";var h=f.length,k=4==P(this.g);if(!this.h.i){if("undefined"===typeof TextDecoder){Q(this);Bc(this);var l="";break b}this.h.i=new w.TextDecoder}for(c=0;c<h;c++)this.h.h=!0,a+=this.h.i.decode(f[c],{stream:k&&c==h-1});f.splice(0,h);this.h.g+=
|
|
56
|
+
a;this.C=0;l=this.h.g}else l=this.g.ia();this.i=200==e;Ub(this.j,this.u,this.A,this.m,this.W,b,e);if(this.i){if(this.aa&&!this.K){b:{if(this.g){var m,p=this.g;if((m=p.g?p.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Aa(m)){var r=m;break b}}r=null}if(e=r)K(this.j,this.m,e,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,Cc(this,e);else{this.i=!1;this.o=3;N(12);Q(this);Bc(this);break a}}this.R?(Dc(this,b,l),Ja&&this.i&&3==b&&(Qb(this.U,this.V,"tick",this.kb),this.V.start())):
|
|
57
57
|
(K(this.j,this.m,l,null),Cc(this,l));4==b&&Q(this);this.i&&!this.J&&(4==b?Ec(this.l,this):(this.i=!1,vc(this)))}else 400==e&&0<l.indexOf("Unknown SID")?(this.o=3,N(12)):(this.o=0,N(13)),Q(this),Bc(this)}}}catch(C){}finally{}};function Ac(a){return a.g?"GET"==a.u&&2!=a.L&&a.l.Ga:!1}
|
|
58
58
|
function Dc(a,b,c){for(var d=!0,e;!a.J&&a.C<c.length;)if(e=Gc(a,c),e==rc){4==b&&(a.o=4,N(14),d=!1);K(a.j,a.m,null,"[Incomplete Response]");break}else if(e==qc){a.o=4;N(15);K(a.j,a.m,c,"[Invalid Chunk]");d=!1;break}else K(a.j,a.m,e,null),Cc(a,e);Ac(a)&&e!=rc&&e!=qc&&(a.h.g="",a.C=0);4!=b||0!=c.length||a.h.h||(a.o=1,N(16),d=!1);a.i=a.i&&d;d?0<c.length&&!a.ba&&(a.ba=!0,b=a.l,b.g==a&&b.ba&&!b.L&&(b.j.info("Great, no buffering proxy detected. Bytes received: "+c.length),Hc(b),b.L=!0,N(11))):(K(a.j,a.m,
|
|
59
|
-
c,"[Invalid Chunked Response]"),Q(a),Bc(a))}n.
|
|
60
|
-
function Ic(a,b){if(null!=a.B)throw Error("WatchDog timer not null");a.B=cc(y(a.
|
|
61
|
-
function Cc(a,b){try{var c=a.l;if(0!=c.G&&(c.g==a||Jc(c.h,a)))if(!a.K&&Jc(c.h,a)&&3==c.G){try{var d=c.Ia.g.parse(b)}catch(Fc){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.F+3E3<a.F)Kc(c),Lc(c);else break a;Mc(c);N(18)}}else c.Ea=e[1],0<c.Ea-c.V&&37500>e[2]&&c.M&&0==c.A&&!c.v&&(c.v=cc(y(c.
|
|
59
|
+
c,"[Invalid Chunked Response]"),Q(a),Bc(a))}n.kb=function(){if(this.g){var a=P(this.g),b=this.g.ia();this.C<b.length&&(zc(this),Dc(this,a,b),this.i&&4!=a&&vc(this))}};function Gc(a,b){var c=a.C,d=b.indexOf("\n",c);if(-1==d)return rc;c=Number(b.substring(c,d));if(isNaN(c))return qc;d+=1;if(d+c>b.length)return rc;b=b.substr(d,c);a.C=d+c;return b}n.cancel=function(){this.J=!0;Q(this)};function vc(a){a.Y=Date.now()+a.P;Ic(a,a.P)}
|
|
60
|
+
function Ic(a,b){if(null!=a.B)throw Error("WatchDog timer not null");a.B=cc(y(a.jb,a),b)}function zc(a){a.B&&(w.clearTimeout(a.B),a.B=null)}n.jb=function(){this.B=null;var a=Date.now();0<=a-this.Y?(Wb(this.j,this.A),2!=this.L&&($b(3),N(17)),Q(this),this.o=2,Bc(this)):Ic(this,this.Y-a)};function Bc(a){0==a.l.G||a.J||Ec(a.l,a)}function Q(a){zc(a);var b=a.M;b&&"function"==typeof b.qa&&b.qa();a.M=null;Jb(a.V);Rb(a.U);a.g&&(b=a.g,a.g=null,b.abort(),b.qa())}
|
|
61
|
+
function Cc(a,b){try{var c=a.l;if(0!=c.G&&(c.g==a||Jc(c.h,a)))if(!a.K&&Jc(c.h,a)&&3==c.G){try{var d=c.Ia.g.parse(b)}catch(Fc){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.F+3E3<a.F)Kc(c),Lc(c);else break a;Mc(c);N(18)}}else c.Ea=e[1],0<c.Ea-c.V&&37500>e[2]&&c.M&&0==c.A&&!c.v&&(c.v=cc(y(c.gb,c),6E3));if(1>=Nc(c.h)&&c.ma){try{c.ma()}catch(Fc){}c.ma=void 0}}else R(c,11)}else if((a.K||c.g==a)&&Kc(c),!Aa(b))for(e=c.Ia.g.parse(b),b=0;b<e.length;b++){var f=e[b];c.V=
|
|
62
62
|
f[0];f=f[1];if(2==c.G)if("c"==f[0]){c.J=f[1];c.na=f[2];var h=f[3];null!=h&&(c.pa=h,c.j.info("VER="+c.pa));var k=f[4];null!=k&&(c.Fa=k,c.j.info("SVER="+c.Fa));var l=f[5];null!=l&&"number"===typeof l&&0<l&&(d=1.5*l,c.K=d,c.j.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 r=d.h;r.g||-1==p.indexOf("spdy")&&-1==p.indexOf("quic")&&-1==p.indexOf("h2")||(r.j=r.l,r.g=new Set,r.h&&(Oc(r,r.h),r.h=null))}if(d.D){var C=m.g?
|
|
63
63
|
m.g.getResponseHeader("X-HTTP-Session-Id"):null;C&&(d.Ca=C,S(d.F,d.D,C))}}c.G=3;c.l&&c.l.Aa();c.ba&&(c.R=Date.now()-a.F,c.j.info("Handshake RTT: "+c.R+"ms"));d=c;var F=a;d.va=Pc(d,d.H?d.na:null,d.Y);if(F.K){Qc(d.h,F);var M=F,T=d.K;T&&M.setTimeout(T);M.B&&(zc(M),vc(M));d.g=F}else Rc(d);0<c.i.length&&Sc(c)}else"stop"!=f[0]&&"close"!=f[0]||R(c,7);else 3==c.G&&("stop"==f[0]||"close"==f[0]?"stop"==f[0]?R(c,7):Tc(c):"noop"!=f[0]&&c.l&&c.l.za(f),c.A=0)}$b(4)}catch(Fc){}};function Uc(a){if(a.Z&&"function"==typeof a.Z)return a.Z();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(na(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}
|
|
64
64
|
function Vc(a){if(a.ra&&"function"==typeof a.ra)return a.ra();if(!a.Z||"function"!=typeof a.Z){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(na(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}}}
|
|
@@ -71,39 +71,39 @@ var fd=/[#\/\?@]/g,hd=/[#\?:]/g,gd=/[#\?]/g,kd=/[#\?@]/g,id=/#/g;function dd(a,b
|
|
|
71
71
|
function nd(a,b){V(a);b=W(a,b);return a.g.has(b)}n.forEach=function(a,b){V(this);this.g.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};n.ra=function(){V(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],f=0;f<e.length;f++)c.push(b[d]);return c};
|
|
72
72
|
n.Z=function(a){V(this);var b=[];if("string"===typeof a)nd(this,a)&&(b=b.concat(this.g.get(W(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){V(this);this.i=null;a=W(this,a);nd(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.Z(a);return 0<a.length?String(a[0]):b};function wc(a,b,c){md(a,b);0<c.length&&(a.i=null,a.g.set(W(a,b),xa(c)),a.h+=c.length)}
|
|
73
73
|
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.Z(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+encodeURIComponent(String(d[f])));a.push(h)}}return this.i=a.join("&")};function bd(a){var b=new dd;b.i=a.i;a.g&&(b.g=new Map(a.g),b.h=a.h);return b}function W(a,b){b=String(b);a.j&&(b=b.toLowerCase());return b}
|
|
74
|
-
function jd(a,b){b&&!a.j&&(V(a),a.i=null,a.g.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(md(this,d),wc(this,e,c))},a));a.j=b};function od(a,b){this.h=a;this.g=b};function pd(a){this.l=a||qd;w.PerformanceNavigationTiming?(a=w.performance.getEntriesByType("navigation"),a=0<a.length&&("hq"==a[0].nextHopProtocol||"h2"==a[0].nextHopProtocol)):a=!!(w.g&&w.g.Ja&&w.g.Ja()&&w.g.Ja().
|
|
75
|
-
function Qc(a,b){a.h&&a.h==b?a.h=null:a.g&&a.g.has(b)&&a.g.delete(b)}pd.prototype.cancel=function(){this.i=sd(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 sd(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 td(){}td.prototype.stringify=function(a){return w.JSON.stringify(a,void 0)};td.prototype.parse=function(a){return w.JSON.parse(a,void 0)};function ud(){this.g=new td}function vd(a,b,c){var d=c||"";try{Wc(a,function(e,f){var h=e;x(e)&&(h=vb(e));b.push(d+f+"="+encodeURIComponent(h))})}catch(e){throw b.push(d+"type="+encodeURIComponent("_badmap")),e;}};function wd(a,b){var c=new Sb;if(w.Image){var d=new Image;d.onload=ta(xd,c,d,"TestLoadImage: loaded",!0,b);d.onerror=ta(xd,c,d,"TestLoadImage: error",!1,b);d.onabort=ta(xd,c,d,"TestLoadImage: abort",!1,b);d.ontimeout=ta(xd,c,d,"TestLoadImage: timeout",!1,b);w.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);d.src=a}else b(!1)}function xd(a,b,c,d,e){try{b.onload=null,b.onerror=null,b.onabort=null,b.ontimeout=null,e(d)}catch(f){}};function yd(a){this.l=a.
|
|
76
|
-
n.open=function(a,b){if(this.readyState!=Ad)throw this.abort(),Error("Error reopening a connection");this.C=a;this.B=b;this.readyState=1;Bd(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.
|
|
74
|
+
function jd(a,b){b&&!a.j&&(V(a),a.i=null,a.g.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(md(this,d),wc(this,e,c))},a));a.j=b};function od(a,b){this.h=a;this.g=b};function pd(a){this.l=a||qd;w.PerformanceNavigationTiming?(a=w.performance.getEntriesByType("navigation"),a=0<a.length&&("hq"==a[0].nextHopProtocol||"h2"==a[0].nextHopProtocol)):a=!!(w.g&&w.g.Ja&&w.g.Ja()&&w.g.Ja().cc);this.j=a?this.l:1;this.g=null;1<this.j&&(this.g=new Set);this.h=null;this.i=[]}var qd=10;function rd(a){return a.h?!0:a.g?a.g.size>=a.j:!1}function Nc(a){return a.h?1:a.g?a.g.size:0}function Jc(a,b){return a.h?a.h==b:a.g?a.g.has(b):!1}function Oc(a,b){a.g?a.g.add(b):a.h=b}
|
|
75
|
+
function Qc(a,b){a.h&&a.h==b?a.h=null:a.g&&a.g.has(b)&&a.g.delete(b)}pd.prototype.cancel=function(){this.i=sd(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 sd(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 td(){}td.prototype.stringify=function(a){return w.JSON.stringify(a,void 0)};td.prototype.parse=function(a){return w.JSON.parse(a,void 0)};function ud(){this.g=new td}function vd(a,b,c){var d=c||"";try{Wc(a,function(e,f){var h=e;x(e)&&(h=vb(e));b.push(d+f+"="+encodeURIComponent(h))})}catch(e){throw b.push(d+"type="+encodeURIComponent("_badmap")),e;}};function wd(a,b){var c=new Sb;if(w.Image){var d=new Image;d.onload=ta(xd,c,d,"TestLoadImage: loaded",!0,b);d.onerror=ta(xd,c,d,"TestLoadImage: error",!1,b);d.onabort=ta(xd,c,d,"TestLoadImage: abort",!1,b);d.ontimeout=ta(xd,c,d,"TestLoadImage: timeout",!1,b);w.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);d.src=a}else b(!1)}function xd(a,b,c,d,e){try{b.onload=null,b.onerror=null,b.onabort=null,b.ontimeout=null,e(d)}catch(f){}};function yd(a){this.l=a.dc||null;this.j=a.mb||!1}z(yd,fc);yd.prototype.g=function(){return new zd(this.l,this.j)};yd.prototype.i=function(a){return function(){return a}}({});function zd(a,b){H.call(this);this.D=a;this.u=b;this.m=void 0;this.readyState=Ad;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}z(zd,H);var Ad=0;n=zd.prototype;
|
|
76
|
+
n.open=function(a,b){if(this.readyState!=Ad)throw this.abort(),Error("Error reopening a connection");this.C=a;this.B=b;this.readyState=1;Bd(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.Za.bind(this),this.ja.bind(this))};
|
|
77
77
|
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,Cd(this));this.readyState=Ad};
|
|
78
|
-
n.
|
|
79
|
-
[]}else this.response=this.responseText="",this.A=new TextDecoder;Dd(this)}else a.text().then(this.
|
|
80
|
-
n.
|
|
81
|
-
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 Bd(a){a.onreadystatechange&&a.onreadystatechange.call(a)}Object.defineProperty(zd.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(a){this.m=a?"include":"same-origin"}});var Ed=w.JSON.parse;function X(a){H.call(this);this.headers=new Map;this.u=a||null;this.h=!1;this.C=this.g=null;this.H="";this.m=0;this.j="";this.l=this.F=this.v=this.D=!1;this.B=0;this.A=null;this.K=Fd;this.L=this.M=!1}z(X,H);var Fd="",Gd=/^https?$/i,Hd=["POST","PUT"];n=X.prototype;
|
|
78
|
+
n.Za=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,Bd(this)),this.g&&(this.readyState=3,Bd(this),this.g)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.Xa.bind(this),this.ja.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=
|
|
79
|
+
[]}else this.response=this.responseText="",this.A=new TextDecoder;Dd(this)}else a.text().then(this.Ya.bind(this),this.ja.bind(this))};function Dd(a){a.j.read().then(a.Wa.bind(a)).catch(a.ja.bind(a))}n.Wa=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?Cd(this):Bd(this);3==this.readyState&&Dd(this)}};
|
|
80
|
+
n.Ya=function(a){this.g&&(this.response=this.responseText=a,Cd(this))};n.Xa=function(a){this.g&&(this.response=a,Cd(this))};n.ja=function(){this.g&&Cd(this)};function Cd(a){a.readyState=4;a.l=null;a.j=null;a.A=null;Bd(a)}n.setRequestHeader=function(a,b){this.v.append(a,b)};n.getResponseHeader=function(a){return this.h?this.h.get(a.toLowerCase())||"":""};
|
|
81
|
+
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 Bd(a){a.onreadystatechange&&a.onreadystatechange.call(a)}Object.defineProperty(zd.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(a){this.m=a?"include":"same-origin"}});var Ed=w.JSON.parse;function X(a){H.call(this);this.headers=new Map;this.u=a||null;this.h=!1;this.C=this.g=null;this.H="";this.m=0;this.j="";this.l=this.F=this.v=this.D=!1;this.B=0;this.A=null;this.K=Fd;this.L=this.M=!1}z(X,H);var Fd="",Gd=/^https?$/i,Hd=["POST","PUT"];n=X.prototype;n.Na=function(a){this.M=a};
|
|
82
82
|
n.fa=function(a,b,c,d){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+a);b=b?b.toUpperCase():"GET";this.H=a;this.j="";this.m=0;this.D=!1;this.h=!0;this.g=this.u?this.u.g():lc.g();this.C=this.u?gc(this.u):gc(lc);this.g.onreadystatechange=y(this.Ka,this);try{this.F=!0,this.g.open(b,String(a),!0),this.F=!1}catch(h){Id(this,h);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"===
|
|
83
83
|
typeof d.keys&&"function"===typeof d.get){e=q(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});e=w.FormData&&a instanceof w.FormData;!(0<=wa(Hd,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,
|
|
84
84
|
c);this.K&&(this.g.responseType=this.K);"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{Jd(this),0<this.B&&((this.L=Kd(this.g))?(this.g.timeout=this.B,this.g.ontimeout=y(this.ta,this)):this.A=Kb(this.ta,this.B,this)),this.v=!0,this.g.send(a),this.v=!1}catch(h){Id(this,h)}};function Kd(a){return E&&Ra()&&"number"===typeof a.timeout&&void 0!==a.ontimeout}
|
|
85
85
|
n.ta=function(){"undefined"!=typeof goog&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,I(this,"timeout"),this.abort(8))};function Id(a,b){a.h=!1;a.g&&(a.l=!0,a.g.abort(),a.l=!1);a.j=b;a.m=5;Ld(a);Md(a)}function Ld(a){a.D||(a.D=!0,I(a,"complete"),I(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,I(this,"complete"),I(this,"abort"),Md(this))};
|
|
86
|
-
n.N=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Md(this,!0));X.X.N.call(this)};n.Ka=function(){this.s||(this.F||this.v||this.l?Nd(this):this.
|
|
86
|
+
n.N=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Md(this,!0));X.X.N.call(this)};n.Ka=function(){this.s||(this.F||this.v||this.l?Nd(this):this.ib())};n.ib=function(){Nd(this)};
|
|
87
87
|
function Nd(a){if(a.h&&"undefined"!=typeof goog&&(!a.C[1]||4!=P(a)||2!=a.ca()))if(a.v&&4==P(a))Kb(a.Ka,0,a);else if(I(a,"readystatechange"),4==P(a)){a.h=!1;try{var b=a.ca();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.H).match(Xc)[1]||null;if(!f&&w.self&&w.self.location){var h=w.self.location.protocol;f=h.substr(0,h.length-1)}e=!Gd.test(f?f.toLowerCase():"")}d=e}if(d)I(a,"complete"),I(a,
|
|
88
88
|
"success");else{a.m=6;try{var k=2<P(a)?a.g.statusText:""}catch(l){k=""}a.j=k+" ["+a.ca()+"]";Ld(a)}}finally{Md(a)}}}function Md(a,b){if(a.g){Jd(a);var c=a.g,d=a.C[0]?ma:null;a.g=null;a.C=null;b||I(a,"ready");try{c.onreadystatechange=d}catch(e){}}}function Jd(a){a.g&&a.L&&(a.g.ontimeout=null);a.A&&(w.clearTimeout(a.A),a.A=null)}function P(a){return a.g?a.g.readyState:0}n.ca=function(){try{return 2<P(this)?this.g.status:-1}catch(a){return-1}};n.ia=function(){try{return this.g?this.g.responseText:""}catch(a){return""}};
|
|
89
|
-
n.
|
|
90
|
-
function Rd(a){this.Fa=0;this.i=[];this.j=new Sb;this.na=this.va=this.F=this.Y=this.g=this.Ca=this.D=this.la=this.o=this.U=this.s=null;this.
|
|
91
|
-
!1;this.K=void 0;this.H=a&&a.supportsCrossDomainXhr||!1;this.J="";this.h=new pd(a&&a.concurrentRequestLimit);this.Ia=new ud;this.P=a&&a.fastHandshake||!1;this.O=a&&a.encodeInitMessageHeaders||!1;this.P&&this.O&&(this.O=!1);this
|
|
89
|
+
n.Va=function(a){if(this.g){var b=this.g.responseText;a&&0==b.indexOf(a)&&(b=b.substring(a.length));return Ed(b)}};function yc(a){try{if(!a.g)return null;if("response"in a.g)return a.g.response;switch(a.K){case Fd:case "text":return a.g.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.g)return a.g.mozResponseArrayBuffer}return null}catch(b){return null}}n.Ha=function(){return this.m};n.Ra=function(){return"string"===typeof this.j?this.j:String(this.j)};function Od(a){var b="";$a(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});return b}function Pd(a,b,c){a:{for(d in c){var d=!1;break a}d=!0}d||(c=Od(c),"string"===typeof a?(encodeURIComponent(String(b)),null!=c&&encodeURIComponent(String(c))):S(a,b,c))};function Qd(a,b,c){return c&&c.internalChannelParams?c.internalChannelParams[a]||b:b}
|
|
90
|
+
function Rd(a){this.Fa=0;this.i=[];this.j=new Sb;this.na=this.va=this.F=this.Y=this.g=this.Ca=this.D=this.la=this.o=this.U=this.s=null;this.eb=this.W=0;this.bb=Qd("failFast",!1,a);this.M=this.v=this.u=this.m=this.l=null;this.$=!0;this.sa=this.Ea=this.V=-1;this.aa=this.A=this.C=0;this.$a=Qd("baseRetryDelayMs",5E3,a);this.fb=Qd("retryDelaySeedMs",1E4,a);this.cb=Qd("forwardChannelMaxRetries",2,a);this.wa=Qd("forwardChannelRequestTimeoutMs",2E4,a);this.ua=a&&a.xmlHttpFactory||void 0;this.Ga=a&&a.bc||
|
|
91
|
+
!1;this.K=void 0;this.H=a&&a.supportsCrossDomainXhr||!1;this.J="";this.h=new pd(a&&a.concurrentRequestLimit);this.Ia=new ud;this.P=a&&a.fastHandshake||!1;this.O=a&&a.encodeInitMessageHeaders||!1;this.P&&this.O&&(this.O=!1);this.ab=a&&a.$b||!1;a&&a.Da&&this.j.Da();a&&a.forceLongPolling&&(this.$=!1);this.ba=!this.P&&this.$&&a&&a.detectBufferingProxy||!1;this.ma=void 0;this.R=0;this.L=!1;this.oa=this.B=null}n=Rd.prototype;n.pa=8;n.G=1;
|
|
92
92
|
function Tc(a){Sd(a);if(3==a.G){var b=a.W++,c=O(a.F);S(c,"SID",a.J);S(c,"RID",b);S(c,"TYPE","terminate");Td(a,c);b=new nc(a,a.j,b,void 0);b.L=2;b.v=tc(O(c));c=!1;w.navigator&&w.navigator.sendBeacon&&(c=w.navigator.sendBeacon(b.v.toString(),""));!c&&w.Image&&((new Image).src=b.v,c=!0);c||(b.g=xc(b.l,null),b.g.fa(b.v));b.F=Date.now();vc(b)}Ud(a)}function Lc(a){a.g&&(Hc(a),a.g.cancel(),a.g=null)}
|
|
93
|
-
function Sd(a){Lc(a);a.u&&(w.clearTimeout(a.u),a.u=null);Kc(a);a.h.cancel();a.m&&("number"===typeof a.m&&w.clearTimeout(a.m),a.m=null)}function Sc(a){rd(a.h)||a.m||(a.m=!0,Db(a.Ma,a),a.C=0)}function Vd(a,b){if(Nc(a.h)>=a.h.j-(a.m?1:0))return!1;if(a.m)return a.i=b.D.concat(a.i),!0;if(1==a.G||2==a.G||a.C>=(a.
|
|
93
|
+
function Sd(a){Lc(a);a.u&&(w.clearTimeout(a.u),a.u=null);Kc(a);a.h.cancel();a.m&&("number"===typeof a.m&&w.clearTimeout(a.m),a.m=null)}function Sc(a){rd(a.h)||a.m||(a.m=!0,Db(a.Ma,a),a.C=0)}function Vd(a,b){if(Nc(a.h)>=a.h.j-(a.m?1:0))return!1;if(a.m)return a.i=b.D.concat(a.i),!0;if(1==a.G||2==a.G||a.C>=(a.bb?0:a.cb))return!1;a.m=cc(y(a.Ma,a,b),Wd(a,a.C));a.C++;return!0}
|
|
94
94
|
n.Ma=function(a){if(this.m)if(this.m=null,1==this.G){if(!a){this.W=Math.floor(1E5*Math.random());a=this.W++;var b=new nc(this,this.j,a,void 0),c=this.s;this.U&&(c?(c=ab(c),cb(c,this.U)):c=this.U);null!==this.o||this.O||(b.H=c,c=null);var d;if(this.P)a:{for(var e=d=0;e<this.i.length;e++){b:{var f=this.i[e];if("__data__"in f.g&&(f=f.g.__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.i.length-1){d=e+1;break a}}d=1E3}else d=
|
|
95
|
-
1E3;d=Xd(this,b,d);e=O(this.F);S(e,"RID",a);S(e,"CVER",22);this.D&&S(e,"X-HTTP-Session-Id",this.D);Td(this,e);c&&(this.O?d="headers="+encodeURIComponent(String(Od(c)))+"&"+d:this.o&&Pd(e,this.o,c));Oc(this.h,b);this
|
|
95
|
+
1E3;d=Xd(this,b,d);e=O(this.F);S(e,"RID",a);S(e,"CVER",22);this.D&&S(e,"X-HTTP-Session-Id",this.D);Td(this,e);c&&(this.O?d="headers="+encodeURIComponent(String(Od(c)))+"&"+d:this.o&&Pd(e,this.o,c));Oc(this.h,b);this.ab&&S(e,"TYPE","init");this.P?(S(e,"$req",d),S(e,"SID","null"),b.aa=!0,sc(b,e,null)):sc(b,e,d);this.G=2}}else 3==this.G&&(a?Yd(this,a):0==this.i.length||rd(this.h)||Yd(this))};
|
|
96
96
|
function Yd(a,b){var c;b?c=b.m:c=a.W++;var d=O(a.F);S(d,"SID",a.J);S(d,"RID",c);S(d,"AID",a.V);Td(a,d);a.o&&a.s&&Pd(d,a.o,a.s);c=new nc(a,a.j,c,a.C+1);null===a.o&&(c.H=a.s);b&&(a.i=b.D.concat(a.i));b=Xd(a,c,1E3);c.setTimeout(Math.round(.5*a.wa)+Math.round(.5*a.wa*Math.random()));Oc(a.h,c);sc(c,d,b)}function Td(a,b){a.la&&$a(a.la,function(c,d){S(b,d,c)});a.l&&Wc({},function(c,d){S(b,d,c)})}
|
|
97
|
-
function Xd(a,b,c){c=Math.min(a.i.length,c);var d=a.l?y(a.l.
|
|
98
|
-
function Mc(a){if(a.g||a.u||3<=a.A)return!1;a.aa++;a.u=cc(y(a.La,a),Wd(a,a.A));a.A++;return!0}n.La=function(){this.u=null;Zd(this);if(this.ba&&!(this.L||null==this.g||0>=this.R)){var a=2*this.R;this.j.info("BP detection timer enabled: "+a);this.B=cc(y(this.
|
|
99
|
-
function Hc(a){null!=a.B&&(w.clearTimeout(a.B),a.B=null)}function Zd(a){a.g=new nc(a,a.j,"rpc",a.aa);null===a.o&&(a.g.H=a.s);a.g.O=0;var b=O(a.va);S(b,"RID","rpc");S(b,"SID",a.J);S(b,"CI",a.M?"0":"1");S(b,"AID",a.V);S(b,"TYPE","xmlhttp");Td(a,b);a.o&&a.s&&Pd(b,a.o,a.s);a.K&&a.g.setTimeout(a.K);var c=a.g;a=a.na;c.L=1;c.v=tc(O(b));c.s=null;c.R=!0;uc(c,a)}n.
|
|
97
|
+
function Xd(a,b,c){c=Math.min(a.i.length,c);var d=a.l?y(a.l.Ua,a.l,a):null;a:for(var e=a.i,f=-1;;){var h=["count="+c];-1==f?0<c?(f=e[0].h,h.push("ofs="+f)):f=0:h.push("ofs="+f);for(var k=!0,l=0;l<c;l++){var m=e[l].h,p=e[l].g;m-=f;if(0>m)f=Math.max(0,e[l].h-100),k=!1;else try{vd(p,h,"req"+m+"_")}catch(r){d&&d(p)}}if(k){d=h.join("&");break a}}a=a.i.splice(0,c);b.D=a;return d}function Rc(a){a.g||a.u||(a.aa=1,Db(a.La,a),a.A=0)}
|
|
98
|
+
function Mc(a){if(a.g||a.u||3<=a.A)return!1;a.aa++;a.u=cc(y(a.La,a),Wd(a,a.A));a.A++;return!0}n.La=function(){this.u=null;Zd(this);if(this.ba&&!(this.L||null==this.g||0>=this.R)){var a=2*this.R;this.j.info("BP detection timer enabled: "+a);this.B=cc(y(this.hb,this),a)}};n.hb=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.M=!1,this.L=!0,N(10),Lc(this),Zd(this))};
|
|
99
|
+
function Hc(a){null!=a.B&&(w.clearTimeout(a.B),a.B=null)}function Zd(a){a.g=new nc(a,a.j,"rpc",a.aa);null===a.o&&(a.g.H=a.s);a.g.O=0;var b=O(a.va);S(b,"RID","rpc");S(b,"SID",a.J);S(b,"CI",a.M?"0":"1");S(b,"AID",a.V);S(b,"TYPE","xmlhttp");Td(a,b);a.o&&a.s&&Pd(b,a.o,a.s);a.K&&a.g.setTimeout(a.K);var c=a.g;a=a.na;c.L=1;c.v=tc(O(b));c.s=null;c.R=!0;uc(c,a)}n.gb=function(){null!=this.v&&(this.v=null,Lc(this),Mc(this),N(19))};function Kc(a){null!=a.v&&(w.clearTimeout(a.v),a.v=null)}
|
|
100
100
|
function Ec(a,b){var c=null;if(a.g==b){Kc(a);Hc(a);a.g=null;var d=2}else if(Jc(a.h,b))c=b.D,Qc(a.h,b),d=1;else return;if(0!=a.G)if(a.sa=b.$,b.i)if(1==d){c=b.s?b.s.length:0;b=Date.now()-b.F;var e=a.C;d=Yb();I(d,new bc(d,c,b,e));Sc(a)}else Rc(a);else if(e=b.o,3==e||0==e&&0<a.sa||!(1==d&&Vd(a,b)||2==d&&Mc(a)))switch(c&&0<c.length&&(b=a.h,b.i=b.i.concat(c)),e){case 1:R(a,5);break;case 4:R(a,10);break;case 3:R(a,6);break;default:R(a,2)}}
|
|
101
|
-
function Wd(a,b){var c=a
|
|
101
|
+
function Wd(a,b){var c=a.$a+Math.floor(Math.random()*a.fb);a.l||(c*=2);return c*b}function R(a,b){a.j.info("Error code "+b);if(2==b){var c=null;a.l&&(c=null);var d=y(a.nb,a);c||(c=new U("//www.google.com/images/cleardot.gif"),w.location&&"http"==w.location.protocol||Zc(c,"https"),tc(c));wd(c.toString(),d)}else N(2);a.G=0;a.l&&a.l.ya(b);Ud(a);Sd(a)}n.nb=function(a){a?(this.j.info("Successfully pinged google.com"),N(2)):(this.j.info("Failed to ping google.com"),N(1))};
|
|
102
102
|
function Ud(a){a.G=0;a.oa=[];if(a.l){var b=sd(a.h);if(0!=b.length||0!=a.i.length)ya(a.oa,b),ya(a.oa,a.i),a.h.i.length=0,xa(a.i),a.i.length=0;a.l.xa()}}function Pc(a,b,c){var d=c instanceof U?O(c):new U(c,void 0);if(""!=d.g)b&&(d.g=b+"."+d.g),$c(d,d.o);else{var e=w.location;d=e.protocol;b=b?b+"."+e.hostname:e.hostname;e=+e.port;var f=new U(null,void 0);d&&Zc(f,d);b&&(f.g=b);e&&$c(f,e);c&&(f.h=c);d=f}c=a.D;b=a.Ca;c&&b&&S(d,c,b);S(d,"VER",a.pa);Td(a,d);return d}
|
|
103
|
-
function xc(a,b,c){if(b&&!a.H)throw Error("Can't create secondary domain capable XhrIo object.");b=c&&a.Ga&&!a.ua?new X(new yd({
|
|
103
|
+
function xc(a,b,c){if(b&&!a.H)throw Error("Can't create secondary domain capable XhrIo object.");b=c&&a.Ga&&!a.ua?new X(new yd({mb:!0})):new X(a.ua);b.Na(a.H);return b}function $d(){}n=$d.prototype;n.Aa=function(){};n.za=function(){};n.ya=function(){};n.xa=function(){};n.Ua=function(){};function ae(){if(E&&!(10<=Number(Ua)))throw Error("Environmental error: no available transport.");}ae.prototype.g=function(a,b){return new Y(a,b)};
|
|
104
104
|
function Y(a,b){H.call(this);this.g=new Rd(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.Ba&&(a?a["X-WebChannel-Client-Profile"]=b.Ba:a={"X-WebChannel-Client-Profile":b.Ba});this.g.U=
|
|
105
|
-
a;(a=b&&b
|
|
106
|
-
Y.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.i.push(new od(b.
|
|
105
|
+
a;(a=b&&b.ac)&&!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 Z(this)}z(Y,H);Y.prototype.m=function(){this.g.l=this.j;this.A&&(this.g.H=!0);var a=this.g,b=this.l,c=this.h||void 0;N(0);a.Y=b;a.la=c||{};a.M=a.$;a.F=Pc(a,null,a.Y);Sc(a)};Y.prototype.close=function(){Tc(this.g)};
|
|
106
|
+
Y.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.i.push(new od(b.eb++,a));3==b.G&&Sc(b)};Y.prototype.N=function(){this.g.l=null;delete this.j;Tc(this.g);delete this.g;Y.X.N.call(this)};function be(a){jc.call(this);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}z(be,jc);function ce(){kc.call(this);this.status=1}z(ce,kc);
|
|
107
107
|
function Z(a){this.g=a}z(Z,$d);Z.prototype.Aa=function(){I(this.g,"a")};Z.prototype.za=function(a){I(this.g,new be(a))};Z.prototype.ya=function(a){I(this.g,new ce(a))};Z.prototype.xa=function(){I(this.g,"b")};/*
|
|
108
108
|
|
|
109
109
|
Copyright 2017 Google LLC
|
|
@@ -120,8 +120,8 @@ function Z(a){this.g=a}z(Z,$d);Z.prototype.Aa=function(){I(this.g,"a")};Z.protot
|
|
|
120
120
|
See the License for the specific language governing permissions and
|
|
121
121
|
limitations under the License.
|
|
122
122
|
*/
|
|
123
|
-
ae.prototype.createWebChannel=ae.prototype.g;Y.prototype.send=Y.prototype.u;Y.prototype.open=Y.prototype.m;Y.prototype.close=Y.prototype.close;dc.NO_ERROR=0;dc.TIMEOUT=8;dc.HTTP_ERROR=6;ec.COMPLETE="complete";hc.EventType=ic;ic.OPEN="a";ic.CLOSE="b";ic.ERROR="c";ic.MESSAGE="d";H.prototype.listen=H.prototype.O;X.prototype.listenOnce=X.prototype.P;X.prototype.getLastError=X.prototype.
|
|
124
|
-
X.prototype.getResponseText=X.prototype.ia;X.prototype.send=X.prototype.fa;module.exports.createWebChannelTransport=function(){return new ae};module.exports.getStatEventTarget=function(){return Yb()};module.exports.ErrorCode=dc;module.exports.EventType=ec;module.exports.Event=L;module.exports.Stat={
|
|
125
|
-
module.exports.XhrIo=X;}).apply(typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {});
|
|
123
|
+
ae.prototype.createWebChannel=ae.prototype.g;Y.prototype.send=Y.prototype.u;Y.prototype.open=Y.prototype.m;Y.prototype.close=Y.prototype.close;dc.NO_ERROR=0;dc.TIMEOUT=8;dc.HTTP_ERROR=6;ec.COMPLETE="complete";hc.EventType=ic;ic.OPEN="a";ic.CLOSE="b";ic.ERROR="c";ic.MESSAGE="d";H.prototype.listen=H.prototype.O;X.prototype.listenOnce=X.prototype.P;X.prototype.getLastError=X.prototype.Ra;X.prototype.getLastErrorCode=X.prototype.Ha;X.prototype.getStatus=X.prototype.ca;X.prototype.getResponseJson=X.prototype.Va;
|
|
124
|
+
X.prototype.getResponseText=X.prototype.ia;X.prototype.send=X.prototype.fa;X.prototype.setWithCredentials=X.prototype.Na;module.exports.createWebChannelTransport=function(){return new ae};module.exports.getStatEventTarget=function(){return Yb()};module.exports.ErrorCode=dc;module.exports.EventType=ec;module.exports.Event=L;module.exports.Stat={vb:0,yb:1,zb:2,Sb:3,Xb:4,Ub:5,Vb:6,Tb:7,Rb:8,Wb:9,PROXY:10,NOPROXY:11,Pb:12,Lb:13,Mb:14,Kb:15,Nb:16,Ob:17,rb:18,qb:19,sb:20};
|
|
125
|
+
module.exports.FetchXmlHttpFactory=yd;module.exports.WebChannel=hc;module.exports.XhrIo=X;}).apply(typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {});
|
|
126
126
|
|
|
127
127
|
//# sourceMappingURL=index.js.map
|