'use strict';var L=function(){},Go="function"==typeof Uint8Array;L.prototype.dW=function(){return this.sI};
var N=function(a,b,c,e,f,g){a.Ga=null;b||(b=c?[c]:[]);a.sI=c?String(c):void 0;a.cq=0===c?-1:0;a.Je=b;a:{if(a.Je.length&&(b=a.Je.length-1,(c=a.Je[b])&&"object"==typeof c&&!ta(c)&&!(Go&&c instanceof Uint8Array))){a.vo=b-a.cq;a.fe=c;break a}-1<e?(a.vo=e,a.fe=null):a.vo=Number.MAX_VALUE}a.Nia={};if(f)for(e=0;e<f.length;e++)b=f[e],b<a.vo?(b+=a.cq,a.Je[b]=a.Je[b]||Ho):a.fe[b]=a.fe[b]||Ho;g&&g.length&&z(g,Ba(Io,a))},Ho=Object.freeze?Object.freeze([]):[],O=function(a,b,c){for(var e=[],f=0;f<a.length;f++)e[f]=
b.call(a[f],c,a[f]);return e},P=function(a,b){if(b<a.vo){b+=a.cq;var c=a.Je[b];return c===Ho?a.Je[b]=[]:c}c=a.fe[b];return c===Ho?a.fe[b]=[]:c},Jo=function(a,b){a=P(a,b);return null==a?a:+a},Ko=function(a){if(null==a||t(a))return a;if(Go&&a instanceof Uint8Array)return Th(a);y("Cannot coerce to b64 string: "+ra(a));return null},R=function(a,b,c){a=P(a,b);return null==a?c:a},S=function(a,b,c){b<a.vo?a.Je[b+a.cq]=c:a.fe[b]=c},Io=function(a,b){var c,e;z(b,function(b){var f=P(a,b);null!=f&&(c=b,e=f,S(a,
b,void 0))});return c?(S(a,c,e),c):0},T=function(a,b,c,e){a.Ga||(a.Ga={});if(!a.Ga[c]){var f=P(a,c);if(e||f)a.Ga[c]=new b(f)}return a.Ga[c]},U=function(a,b,c){Lo(a,b,c);b=a.Ga[c];b==Ho&&(b=a.Ga[c]=[]);return b},Lo=function(a,b,c){a.Ga||(a.Ga={});if(!a.Ga[c]){for(var e=P(a,c),f=[],g=0;g<e.length;g++)f[g]=new b(e[g]);a.Ga[c]=f}},V=function(a,b,c){a.Ga||(a.Ga={});var e=c?c.Wd():c;a.Ga[b]=c;S(a,b,e)},W=function(a,b,c){a.Ga||(a.Ga={});c=c||[];for(var e=[],f=0;f<c.length;f++)e[f]=c[f].Wd();a.Ga[b]=c;S(a,
b,e)};L.prototype.ZM=function(){if(this.Ga)for(var a in this.Ga){var b=this.Ga[a];if(ta(b))for(var c=0;c<b.length;c++)b[c]&&b[c].Wd();else b&&b.Wd()}};L.prototype.Wd=function(){this.ZM();return this.Je};var Mo=h.JSON&&h.JSON.stringify||"object"===typeof JSON&&JSON.stringify;
L.prototype.cb=Go?function(){var a=Uint8Array.prototype.toJSON;Uint8Array.prototype.toJSON=function(){return Th(this)};try{var b=Mo.call(null,this.Wd(),No)}finally{Uint8Array.prototype.toJSON=a}return b}:Mo?function(){return Mo.call(null,this.Wd(),No)}:function(){return lf(this.Wd(),No)};var No=function(a,b){if(u(b)){if(isNaN(b))return"NaN";if(Infinity===b)return"Infinity";if(-Infinity===b)return"-Infinity"}return b};L.prototype.toString=function(){this.ZM();return this.Je.toString()};
L.prototype.getExtension=function(a){if(this.fe){this.Ga||(this.Ga={});var b=a.pka;if(a.z_){if(a.u_())return this.Ga[b]||(this.Ga[b]=B(this.fe[b]||[],function(b){return new a.lS(b)})),this.Ga[b]}else if(a.u_())return!this.Ga[b]&&this.fe[b]&&(this.Ga[b]=new a.lS(this.fe[b])),this.Ga[b];return this.fe[b]}};
var Po=function(a,b){return a==b||!(!a||!b)&&a instanceof b.constructor&&Oo(a.Wd(),b.Wd())},Qo=function(a,b){a=a||{};b=b||{};var c={},e;for(e in a)c[e]=0;for(e in b)c[e]=0;for(e in c)if(!Oo(a[e],b[e]))return!1;return!0},Oo=function(a,b){if(a==b)return!0;if(!wa(a)||!wa(b)||a.constructor!=b.constructor)return!1;if(Go&&a.constructor===Uint8Array){if(a.length!=b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}if(a.constructor===Array){for(var e=void 0,f=void 0,g=Math.max(a.length,
b.length),c=0;c<g;c++){var k=a[c],p=b[c];k&&k.constructor==Object&&(e=k,k=void 0);p&&p.constructor==Object&&(f=p,p=void 0);if(!Oo(k,p))return!1}return e||f?(e=e||{},f=f||{},Qo(e,f)):!0}if(a.constructor===Object)return Qo(a,b);throw Error("Invalid type in JSPB array");};L.prototype.Lm=function(){return Ro(this)};L.prototype.clone=function(){return Ro(this)};
var Ro=function(a){return new a.constructor(So(a.Wd()))},So=function(a){var b;if(ta(a)){for(var c=Array(a.length),e=0;e<a.length;e++)null!=(b=a[e])&&(c[e]="object"==typeof b?So(b):b);return c}if(Go&&a instanceof Uint8Array)return new Uint8Array(a);c={};for(e in a)null!=(b=a[e])&&(c[e]="object"==typeof b?So(b):b);return c},Uo=function(a,b){To[a]=b;b.messageId=a},To={};var X=function(a){return X.jH(a)};X.jH=function(a){return a+"_"};X.kma=function(){throw Error("xid.literal must not be used in COMPILED mode.");};X.object=function(a){if(a&&a.constructor&&a.constructor.toString()===Object.toString()){var b={},c;for(c in a)a.hasOwnProperty(c)&&(b[X.jH(c)]=a[c]);return b}throw Error("xid.object must be called with an object literal.");};X.Ada=!0;X.bha=function(a){return a};X.Sla=function(){return!0};var Vo=function(a,b){this.namespace_=a;this.ud=b;this.constructor.hC||(this.constructor.hC={});this.constructor.hC[this.toString()]=this};Vo.prototype.cb=function(){return this.toString()};Vo.prototype.toString=function(){this.hN||(this.hN=this.namespace_.Ib+":"+this.ud);return this.hN};Vo.prototype.O=function(){return this.ud};var Wo=function(a,b){Vo.call(this,a,b)};x(Wo,Vo);var Xo=function(a){this.Ib=a};new Xo("lib");var Yo=function(a,b,c){if(c)for(var e=0;e<c.length;e++);this.R6=a;this.Xf=b||null;this.xS=c||[]};Yo.prototype.toString=function(){return this.R6};Yo.prototype.e9=function(a){this.Xf=a};var Zo=function(a){var b={},c={},e=[],f=[],g=function(a){if(!c[a]){var f=a instanceof Yo?a.xS:[];c[a]=pb(f);z(f,function(c){b[c]=b[c]||[];b[c].push(a)});f.length||e.push(a);z(f,g)}};for(z(a,g);e.length;){var k=e.shift();f.push(k);b[k]&&z(b[k],function(a){lb(c[a],k);c[a].length||e.push(a)})}var p={},q=[];z(f,function(a){a instanceof Yo&&(a=a.Xf,null==a||p[a]||(p[a]=!0,q.push(a)))});return{services:f,N0:q}};X.pb={};X.pb.Hu="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";X.pb.zu=X.pb.Hu+"0123456789";X.pb.Iu=X.pb.Hu.length;X.pb.Eu=X.pb.zu.length;X.pb.HB=-2147483648;X.pb.jra=function(a){for(var b=0,c=a.length-1;0<=c;c--)b=b*(0==c?X.pb.Iu:X.pb.Eu)+X.pb.zu.indexOf(a.charAt(c));return b+X.pb.HB};X.pb.toString=function(a){var b=[],c=0;a-=X.pb.HB;b[c++]=X.pb.Hu.charAt(a%X.pb.Iu);for(a=Math.floor(a/X.pb.Iu);0<a;)b[c++]=X.pb.zu.charAt(a%X.pb.Eu),a=Math.floor(a/X.pb.Eu);return b.join("")};X.hash={};X.hash.BB=2654435769;X.hash.gP=314159265;
X.hash.ira=function(a){a=X.hash.Vaa(a);for(var b=X.hash.BB,c=X.hash.BB,e=X.hash.gP,f=a.length,g=f,k=0,p=function(){b-=c;b-=e;b^=e>>>13;c-=e;c-=b;c^=b<<8;e-=b;e-=c;e^=c>>>13;b-=c;b-=e;b^=e>>>12;c-=e;c-=b;c^=b<<16;e-=b;e-=c;e^=c>>>5;b-=c;b-=e;b^=e>>>3;c-=e;c-=b;c^=b<<10;e-=b;e-=c;e^=c>>>15};12<=g;g-=12,k+=12)b+=X.hash.sk(a,k),c+=X.hash.sk(a,k+4),e+=X.hash.sk(a,k+8),p();e+=f;switch(g){case 11:e+=a[k+10]<<24;case 10:e+=a[k+9]<<16;case 9:e+=a[k+8]<<8;case 8:c+=a[k+7]<<24;case 7:c+=a[k+6]<<16;case 6:c+=
a[k+5]<<8;case 5:c+=a[k+4];case 4:b+=a[k+3]<<24;case 3:b+=a[k+2]<<16;case 2:b+=a[k+1]<<8;case 1:b+=a[k+0]}p();return X.pb.toString(e)};X.hash.nba=function(a){return a};X.hash.Vaa=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};X.hash.sk=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};var $o=new Yo("pVbxBc"),ap=new Yo("n73qwf");X.hash.nba("GHAeAc");var cp=function(a){Nd.call(this);this.id=bp++;this.U6=[];this.hj={};this.ks={};this.rt={};this.Vc={};this.Mj={};this.zI={};this.Rq=a?a.Rq:new K;this.gaa=!a;this.Si=null;a?(this.Si=a,this.rt=a.rt,this.Vc=a.Vc,this.ks=a.ks,this.Mj=a.Mj):w();a=this.fx();this!=a&&(a.uq?a.uq.push(this):a.uq=[this])};x(cp,Nd);var bp=1,dp=.05>Math.random();d=cp.prototype;d.fx=function(){for(var a=this;a.Si;)a=a.Si;return a};d.Xv=function(a){for(var b=this;b;){if(b==a)return!0;b=b.Si}return!1};
d.get=function(a){var b=this.zn(a);null==b&&this.Bja&&(b={BOGUS:"Service "+a+" was not registered"});if(null==b)throw new ep(a);return b};d.yi=function(a){return!(!this.hj[a]&&!this.lG(a))};d.zn=function(a){for(var b=this;b;b=b.Si){if(b.isDisposed())throw Error("AppContext is disposed.");if(b.hj[a])return b.hj[a][0];if(b.zI[a])break}if(b=this.lG(a)){b=b(this);if(null==b)throw Error("Factory method for service "+a+" returned null or undefined.");this.xh(a,b);return b}return null};
d.wk=function(a,b){return this.cU([a],b)[a]};
d.cU=function(a,b){var c=!b;b={};for(var e=[],f=[],g={},k={},p=this.zn($o),q=0;q<a.length;q++){var A=a[q],M=this.zn(A);if(M){var Q=new nh;b[A]=Q;M.cv&&(Q.tC(M.cv()),Q.na(Ba(function(a){return a},M)));Q.callback(M)}else{var ca;A instanceof Yo?ca=Zo([A]).N0:(M=this.ks[A])&&(ca=[M]);!c||ca&&ca.length?(ca&&(p&&A instanceof Yo&&p.pqa()&&(dp&&(Q=p.Gqa(fp),k[A]=Q),p.vma(A)),e.push.apply(e,ca),g[A]=Xa(ca)),f.push(A)):(Q=new nh,b[A]=Q,Q.Ca(new ep(A)))}}if(c){if(e.length){this.dv&&this.dv.push("loaded("+f+
","+e+")\n"+qd());for(q=0;q<f.length;q++)this.Rq.dispatchEvent(new gp("a",f[q]));a=this.Uw().oma(e);for(q=0;q<f.length;q++)A=f[q],M=g[A],Q=a[M].lv(),b[A]=Q,k[A]&&Q.na(function(){p.ska(k[A])}),this.TP(Q,A,M)}}else for(q=0;q<f.length;q++)A=f[q],M=e[q],Q=new nh(v(this.AR,this,A)),b[A]=Q,(a=this.Vc[A])||(this.Vc[A]=a=[]),M&&this.FP(Q,A,M),Q.na(v(this.hx,this,A,M)),a.push({Pb:this,d:Q});return b};
d.FP=function(a,b,c){a.na(function(){this.dv&&this.dv.push("loaded("+b+","+c+")\n"+qd());return this.Uw().load(c)},this);a.nc(v(this.OF,this,b,c))};d.TP=function(a,b,c){a.na(function(){this.Rq.dispatchEvent(new gp("b",b))},this);a.nc(v(this.OF,this,b,c));a.na(v(this.hx,this,b,c))};
d.hx=function(a,b){var c=this.zn(a);if(null==c){if(this.Mj[a]){var e=this.Mj[a].lv();e.na(v(this.hx,this,a,b));return e}throw new hp(a,b,"Module loaded but service or factory not registered with app contexts.");}return c.cv?(e=new nh,e.tC(c.cv()),e.callback(c),e.na(v(this.kG,this,a)),e):this.kG(a)};d.kG=function(a){this.Mj[a]&&delete this.Mj[a];return this.get(a)};d.OF=function(a,b,c){return c instanceof oh?c:new ip(a,b,c)};
d.xh=function(a,b,c){if(this.isDisposed())c||Od(b);else{this.U6.push(a);this.hj[a]=[b,!c];c=this.MT(this,a);for(var e=0;e<c.length;e++)c[e].callback(null);delete this.ks[a];return b}};d.VJ=function(a,b){this.rt[a]=b;if(b=this.Vc[a]){if(1<b.length){for(var c=0;c<b.length;++c)b[c].index=c;b.sort(jp)}for(;b.length;)b.shift().d.callback(null);delete this.Vc[a]}};d.lG=function(a){return this.rt[a]};
var jp=function(a,b){if(a.Pb!=b.Pb){if(a.Pb.Xv(b.Pb))return 1;if(b.Pb.Xv(a.Pb))return-1}return a.index<b.index?-1:a.index==b.index?0:1};d=cp.prototype;d.MT=function(a,b){var c=[],e=this.Vc[b];e&&($a(e,function(b){b.Pb.Xv(a)&&(c.push(b.d),lb(e,b))}),0==e.length&&delete this.Vc[b]);return c};d.BR=function(a){this.Vc&&Gc(this.Vc,function(b,c,e){$a(b,function(c){c.Pb==a&&lb(b,c)});0==b.length&&delete e[c]})};
d.AR=function(a,b){var c=this.Vc&&this.Vc[a];if(c){for(var e=0;e<c.length;++e)if(c[e].Pb==this&&c[e].d==b){kb(c,e);break}0==c.length&&delete this.Vc[a]}};d.L=function(){if(this.fx()==this){var a=this.uq;if(a)for(;a.length;)a[0].mb()}else for(var a=this.fx().uq,b=0;b<a.length;b++)if(a[b]==this){a.splice(b,1);break}for(var c in this.hj)a=this.hj[c],a[1]&&a[0].mb&&a[0].mb();this.hj=null;this.gaa&&this.Rq.mb();this.BR(this);this.Vc=null;Od(this.Q2);this.zI=this.Q2=null;cp.S.L.call(this)};
d.Uw=function(){return this.M0?this.M0:this.Si?this.Si.Uw():null};var ep=function(a){Ca.call(this);this.id=a;this.message='Service for "'+a+'" is not registered'};x(ep,Ca);var ip=function(a,b,c){Ca.call(this);this.cause=c;this.message='Module "'+b+'" failed to load when requesting the service "'+a+'" [cause: '+c+"]";this.stack=c.stack+"\nWRAPPED BY:\n"+this.stack};x(ip,Ca);
var hp=function(a,b,c){Ca.call(this);this.message='Configuration error when loading the module "'+b+'" for the service "'+a+'": '+c};x(hp,Ca);var gp=function(a){J.call(this,a)};x(gp,J);var kp=new Xo("fva"),fp=new Wo(kp,1);var lp=new Yo("XpMdK","bc"),mp=new Yo("Mv4R6b","dds"),np=new Yo("T3bcCc",void 0,[new Yo("EitxU","hl",[mp])]),op=new Yo("TjR1Nb","ma",[ap]);var pp=function(){},qp=function(a,b){a.S||x(a,pp);b.Gg=a;do b=b.S&&b.S.constructor;while(b&&!b.Gg);if(b&&b.Gg!==a.S.constructor)throw Error("delegate base must derive from superclass delegate base");},rp=function(a,b,c){if(!a.S){for(var e in a.prototype)if(a.prototype.hasOwnProperty(e))throw Error("delegate registered after defining methods. you should extend your delegate base explicitly immediately after defining your delegate class");x(a,b)}c=c||0;a.DD=c;if(b.gd){b=b.gd;e=0;for(var f=b.length-
1;e<=f;){var g=e+f>>1;c>b[g].DD?f=g-1:e=g+1}e<b.length&&b[e].DD==c&&++e;b.splice(e,0,a)}else b.gd=[a]},up=function(a){var b=a.Gg,c=function(a){c.S.constructor.call(this,a);var b=this.gd.length;this.ce=[];for(var e=0;e<b;++e)this.gd[e].nja||(this.ce[e]=new this.gd[e](a))};x(c,b);for(var e=[];a;){if(b=a.Gg){b.gd&&qb(e,b.gd);var f=b.prototype,g;for(g in f)if(f.hasOwnProperty(g)&&va(f[g])&&f[g]!==b){var k=!!f[g].Lha,p=sp(g,f,e,k);(k=tp(g,f,p,k))&&(c.prototype[g]=k)}}a=a.S&&a.S.constructor}c.prototype.gd=
e;return c},sp=function(a,b,c,e){for(var f=[],g=0;g<c.length&&(c[g].prototype[a]===b[a]||(f.push(g),!e));++g);return f},tp=function(a,b,c,e){return c.length?e?function(b){var e=this.ce[c[0]];return e?e[a].apply(this.ce[c[0]],arguments):this.gd[c[0]].prototype[a].apply(this,arguments)}:b[a].YQ?function(b){return this.wS(a,c,Array.prototype.slice.call(arguments,0))}:b[a].HC?function(b){return this.vS(a,c,Array.prototype.slice.call(arguments,0))}:b[a].AI?function(b){return this.uS(a,c,Array.prototype.slice.call(arguments,
0))}:function(b){return this.tS(a,c,Array.prototype.slice.call(arguments,0))}:e||b[a].YQ||b[a].HC||b[a].AI?null:vp},vp=function(){return[]};d=pp.prototype;d.tS=function(a,b,c){for(var e=[],f=0;f<b.length;++f){var g=this.ce[b[f]];e.push(g?g[a].apply(g,c):this.gd[b[f]].prototype[a].apply(this,c))}return e};d.uS=function(a,b,c){for(var e=0;e<b.length;++e){var f=this.ce[b[e]];f?f[a].apply(f,c):this.gd[b[e]].prototype[a].apply(this,c)}};
d.wS=function(a,b,c){for(var e=0;e<b.length;++e){var f=this.ce[b[e]];if(f=f?f[a].apply(f,c):this.gd[b[e]].prototype[a].apply(this,c))return f}return!1};d.vS=function(a,b,c){for(var e=0;e<b.length;++e){var f=this.ce[b[e]],f=f?f[a].apply(f,c):this.gd[b[e]].prototype[a].apply(this,c);if(null!=f)return f}};d.ow=function(a){if(this.ce)for(var b=0;b<this.ce.length;++b)if(this.ce[b]instanceof a)return this.ce[b];return null};var wp=function(a){a=a?a:function(){};a.HC=!0;return a};var xp=function(a){this.Pb=a.Pb;this.Xu=a};x(xp,pp);d=xp.prototype;d.zt=function(a){this.Xu.zt(a)};d.Ld=wp();d.Qn=wp();d.In=wp();d.Fq=wp();d.Dq=wp();d.kK=wp();d.dk=wp();var yp=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=4294967296*b+a;return c?-a:a},zp=function(a){if(a.constructor===Uint8Array)return a;if(a.constructor===ArrayBuffer)return new Uint8Array(a);if(a.constructor===Array)return new Uint8Array(a);if(a.constructor===String)return Wh(a);y("Type not convertible to Uint8Array.");return new Uint8Array(0)};var Ap=function(a,b,c){this.Hc=null;this.Zt=this.$t=this.Y=this.bi=this.wj=0;this.hd=!1;a&&this.ut(a,b,c)},Bp=[],Cp=function(a,b,c){if(Bp.length){var e=Bp.pop();a&&e.ut(a,b,c);return e}return new Ap(a,b,c)};d=Ap.prototype;d.clone=function(){return Cp(this.Hc,this.wj,this.bi-this.wj)};d.clear=function(){this.Hc=null;this.Y=this.bi=this.wj=0;this.hd=!1};d.ut=function(a,b,c){this.Hc=zp(a);this.wj=l(b)?b:0;this.bi=l(c)?this.wj+c:this.Hc.length;this.Y=this.wj};d.setEnd=function(a){this.bi=a};
d.reset=function(){this.Y=this.wj};d.sn=function(){return this.Y};d.P7=function(a){this.Y=a};d.advance=function(a){this.Y+=a};d.hQ=function(){return this.Y==this.bi};d.getError=function(){return this.hd||0>this.Y||this.Y>this.bi};
d.O4=function(){for(var a,b=0,c,e=0;4>e;e++)if(a=this.Hc[this.Y++],b|=(a&127)<<7*e,128>a){this.$t=b>>>0;this.Zt=0;return}a=this.Hc[this.Y++];b|=(a&127)<<28;c=0|(a&127)>>4;if(128>a)this.$t=b>>>0,this.Zt=c>>>0;else{for(e=0;5>e;e++)if(a=this.Hc[this.Y++],c|=(a&127)<<7*e+3,128>a){this.$t=b>>>0;this.Zt=c>>>0;return}y("Failed to read varint, encoding is invalid.");this.hd=!0}};d.saa=function(){for(;this.Hc[this.Y]&128;)this.Y++;this.Y++};
d.uh=function(){var a,b=this.Hc;a=b[this.Y+0];var c=a&127;if(128>a)return this.Y+=1,c;a=b[this.Y+1];c|=(a&127)<<7;if(128>a)return this.Y+=2,c;a=b[this.Y+2];c|=(a&127)<<14;if(128>a)return this.Y+=3,c;a=b[this.Y+3];c|=(a&127)<<21;if(128>a)return this.Y+=4,c;a=b[this.Y+4];c|=(a&15)<<28;if(128>a)return this.Y+=5,c>>>0;this.Y+=10;return c};d.N4=Ap.prototype.uh;d.NJ=function(){this.O4();return yp(this.$t,this.Zt)};
d.uz=function(){var a=this.Hc[this.Y+0],b=this.Hc[this.Y+1],c=this.Hc[this.Y+2],e=this.Hc[this.Y+3];this.Y+=4;return(a<<0|b<<8|c<<16|e<<24)>>>0};d.sz=function(){var a=this.uz(),b=this.uz();return yp(a,b)};d.Us=function(){return!!this.Hc[this.Y++]};d.th=function(){return this.N4()};
d.Ba=function(a){var b=this.Hc,c=this.Y;a=c+a;for(var e=[];c<a;){var f=b[c++];if(128>f)e.push(f);else if(!(192>f))if(224>f){var g=b[c++];e.push((f&31)<<6|g&63)}else if(240>f){var g=b[c++],k=b[c++];e.push((f&15)<<12|(g&63)<<6|k&63)}}b=String.fromCharCode.apply(null,e);this.Y=c;return b};var Dp=function(a,b,c){this.Ia=Cp(a,b,c);this.qe=this.jb=-1;this.hd=!1};d=Dp.prototype;d.sn=function(){return this.Ia.sn()};d.ic=function(){return 4==this.qe};d.getError=function(){return this.hd||this.Ia.getError()};d.ut=function(a,b,c){this.Ia.ut(a,b,c);this.qe=this.jb=-1};d.reset=function(){this.Ia.reset();this.qe=this.jb=-1};d.advance=function(a){this.Ia.advance(a)};
d.Zb=function(){if(this.Ia.hQ())return!1;if(this.getError())return y("Decoder hit an error"),!1;var a=this.Ia.uh(),b=a>>>3,a=a&7;if(0!=a&&5!=a&&1!=a&&2!=a&&3!=a&&4!=a)return y("Invalid wire type"),this.hd=!0,!1;this.jb=b;this.qe=a;return!0};d.taa=function(){0!=this.qe?(y("Invalid wire type for skipVarintField"),this.yb()):this.Ia.saa()};d.oaa=function(){if(2!=this.qe)y("Invalid wire type for skipDelimitedField"),this.yb();else{var a=this.Ia.uh();this.Ia.advance(a)}};
d.paa=function(){5!=this.qe?(y("Invalid wire type for skipFixed32Field"),this.yb()):this.Ia.advance(4)};d.qaa=function(){1!=this.qe?(y("Invalid wire type for skipFixed64Field"),this.yb()):this.Ia.advance(8)};d.raa=function(){var a=[this.jb];do{if(!this.Zb()){y("Unmatched start-group tag: stream EOF");this.hd=!0;break}if(3==this.qe)a.push(this.jb);else if(4==this.qe&&this.jb!=a.pop()){y("Unmatched end-group tag");this.hd=!0;break}}while(0<a.length)};
d.yb=function(){switch(this.qe){case 0:this.taa();break;case 1:this.qaa();break;case 2:this.oaa();break;case 5:this.paa();break;case 3:this.raa();break;default:y("Invalid wire encoding for field.")}};d.Wa=function(a,b){var c=this.Ia.bi,e=this.Ia.uh(),e=this.Ia.sn()+e;this.Ia.setEnd(e);b(a,this);this.Ia.P7(e);this.Ia.setEnd(c)};d.sz=function(){return this.Ia.NJ()};d.uz=function(){return this.Ia.uh()};d.Us=function(){return!!this.Ia.uh()};d.th=function(){return this.Ia.NJ()};
d.Ba=function(){var a=this.Ia.uh();return this.Ia.Ba(a)};d.M4=function(a){for(var b=this.Ia.uh(),b=this.Ia.sn()+b,c=[];this.Ia.sn()<b;)c.push(a.call(this.Ia));return c};d.MJ=function(){return this.M4(this.Ia.th)};var Ep=function(a){N(this,a,0,-1,null,null)};x(Ep,L);Ep.prototype.b=function(a){return Fp(a,this)};var Fp=function(a,b){var c={cj:P(b,1),clientId:P(b,2),x6:P(b,3),vl:P(b,4)};a&&(c.f=b);return c};d=Ep.prototype;d.uA=function(a){S(this,1,a)};d.rc=function(){return P(this,2)};d.ye=function(a){S(this,2,a)};d.Hk=function(){return P(this,4)};d.Dh=function(a){S(this,4,a)};var Gp=function(a){N(this,a,0,-1,null,null)};x(Gp,L);Gp.prototype.b=function(a){return Hp(a,this)};var Hp=function(a,b){var c={clientId:P(b,1),zha:P(b,2),Gma:P(b,3),version:P(b,4),zja:P(b,5),xja:P(b,6)};a&&(c.f=b);return c};Gp.prototype.rc=function(){return P(this,1)};Gp.prototype.ye=function(a){S(this,1,a)};Gp.prototype.$e=function(){return P(this,4)};Gp.prototype.setVersion=function(a){S(this,4,a)};var Ip=function(a){N(this,a,0,-1,null,null)};x(Ip,L);Ip.prototype.b=function(a){return Jp(a,this)};var Jp=function(a,b){var c={device:P(b,1),Yga:P(b,2),platform:P(b,3)};a&&(c.f=b);return c};Ip.prototype.getDevice=function(){return P(this,1)};Ip.prototype.U7=function(a){S(this,1,a)};Ip.prototype.e7=function(a){S(this,2,a)};Ip.prototype.H9=function(a){S(this,3,a)};var Kp=function(a){N(this,a,0,-1,null,null)};x(Kp,L);Kp.prototype.b=function(a){return Lp(a,this)};var Lp=function(a,b){var c={wra:P(b,1),tla:P(b,2),ula:P(b,3),version:P(b,4)};a&&(c.f=b);return c};Kp.prototype.$e=function(){return P(this,4)};Kp.prototype.setVersion=function(a){S(this,4,a)};var Mp=function(a){N(this,a,0,-1,null,null)};x(Mp,L);Mp.prototype.b=function(a){return Np(a,this)};var Np=function(a,b){var c={mia:P(b,1)};a&&(c.f=b);return c};var Op=function(a){N(this,a,0,-1,null,null)};x(Op,L);Op.prototype.b=function(a){return Pp(a,this)};var Pp=function(a,b){var c,e={xia:(c=b.Ew())&&Hp(a,c),sia:(c=b.SE())&&Fp(a,c),uia:(c=b.IU())&&Np(a,c),cma:P(b,4),Gla:R(b,5,!1),Rpa:R(b,6,0),Vpa:(c=b.XX())&&Jp(a,c),XC:P(b,8),qma:(c=b.mW())&&Lp(a,c)};a&&(e.f=b);return e};d=Op.prototype;d.Ew=function(){return T(this,Gp,1)};d.fA=function(a){V(this,1,a)};d.SE=function(){return T(this,Ep,2)};d.eA=function(a){V(this,2,a)};
d.IU=function(){return T(this,Mp,3)};d.rr=function(){return P(this,4)};d.Yo=function(a){S(this,4,a)};d.XX=function(){return T(this,Ip,7)};d.vA=function(a){V(this,7,a)};d.mW=function(){return T(this,Kp,9)};var Qp=function(a){N(this,a,0,-1,null,null)};x(Qp,L);Qp.prototype.b=function(a){return Rp(a,this)};var Rp=function(a,b){var c={Nla:P(b,1),stream:P(b,2),OR:P(b,3),protocol:P(b,4)};a&&(c.f=b);return c};d=Qp.prototype;d.zL=function(a){S(this,1,a)};d.Ya=function(){return P(this,2)};d.kj=function(a){S(this,2,a)};d.wt=function(a){S(this,3,a)};d.Rg=function(){return P(this,4)};d.Bt=function(a){S(this,4,a)};var Sp=function(a){N(this,a,0,-1,null,null)};x(Sp,L);Sp.prototype.b=function(a){return Tp(a,this)};var Tp=function(a,b){var c={vna:P(b,1),Oma:P(b,2),Sma:P(b,3),Jqa:P(b,4),count:P(b,5)};a&&(c.f=b);return c};Sp.prototype.R=function(){return P(this,5)};var Vp=function(a){N(this,a,0,-1,Up,null)};x(Vp,L);var Up=[5,52];Vp.prototype.b=function(a){return Wp(a,this)};var Wp=function(a,b){var c,e={Vha:P(b,1),Hqa:P(b,2),Wha:P(b,3),$ka:P(b,105),Nha:P(b,107),Oha:P(b,104),soa:P(b,4),roa:P(b,43),eja:O(b.UU(),Xp,a),Jga:P(b,28),aka:P(b,29),gra:P(b,30),gba:P(b,112),tja:P(b,106),Fg:P(b,100),zia:P(b,68),yia:(c=b.JU())&&Yp(a,c),Nka:P(b,42),P3:O(b.xr(),Zp,a)};a&&(e.f=b);return e};d=Vp.prototype;d.bL=function(a){S(this,1,a)};d.tM=function(a){S(this,2,a)};
d.cL=function(a){S(this,3,a)};d.B9=function(a){S(this,4,a)};d.UU=function(){return U(this,$p,5)};d.Q7=function(a){W(this,5,a)};d.g8=function(a){S(this,29,a)};d.wM=function(a){S(this,30,a)};d.JU=function(){return T(this,aq,69)};d.xr=function(){return U(this,bq,52)};var $p=function(a){N(this,a,0,-1,cq,null)};x($p,L);var cq=[2,13];$p.prototype.b=function(a){return Xp(a,this)};
var Xp=function(a,b){var c={cqa:P(b,1),VS:P(b,113),kha:P(b,118),Uma:O(b.Pg(),dq,a),Iia:O(b.ZE(),eq,a),$oa:P(b,34),vha:P(b,92),Ska:P(b,94),Jra:P(b,93),ara:P(b,35),TR:P(b,36),Koa:P(b,54),Mra:P(b,66),Cka:Jo(b,71),cja:R(b,72,-1),Gra:R(b,73,-1),Wla:R(b,74,!1),pha:R(b,75,-1)};a&&(c.f=b);return c};d=$p.prototype;d.m$=function(a){S(this,1,a)};d.Pg=function(){return U(this,fq,2)};d.R8=function(a){W(this,2,a)};d.ZE=function(){return U(this,gq,13)};d.J7=function(a){W(this,13,a)};d.Q9=function(a){S(this,34,a)};
d.o7=function(a){S(this,92,a)};d.r8=function(a){S(this,94,a)};d.S$=function(a){S(this,93,a)};d.H$=function(a){S(this,35,a)};d.gA=function(a){S(this,36,a)};var fq=function(a){N(this,a,0,-1,hq,null)};x(fq,L);var hq=[53,54];fq.prototype.b=function(a){return dq(a,this)};
var dq=function(a,b){var c,e={kna:P(b,1),Hka:P(b,2),Zia:P(b,3),Qma:P(b,4),Xla:P(b,5),AK:P(b,6),Iha:P(b,7),xoa:P(b,8),Fha:P(b,9),woa:P(b,10),direction:P(b,24),ssrc:P(b,25),Tga:Jo(b,117),Zja:P(b,26),uka:P(b,27),Gna:P(b,28),Se:P(b,29),Eka:P(b,30),Dka:P(b,31),Fka:Jo(b,50),Fpa:Jo(b,87),Gka:Jo(b,51),Gpa:Jo(b,88),Yla:P(b,37),Roa:P(b,38),rra:P(b,39),jha:P(b,40),iha:P(b,41),tra:P(b,42),Qpa:P(b,43),xpa:P(b,96),ima:P(b,80),hqa:P(b,44),mpa:P(b,94),Mja:P(b,46),Nja:P(b,47),Oja:P(b,48),Pja:P(b,49),Lja:Jo(b,63),
Aqa:P(b,53),xaa:O(b.Fr(),iq,a),width:P(b,57),height:P(b,58),Pra:P(b,114),Ora:P(b,115),ipa:P(b,113),gma:P(b,78),fma:P(b,79),Tla:P(b,59),Vla:P(b,60),Rga:P(b,65),Qga:P(b,95),eka:Jo(b,68),wqa:Jo(b,103),Poa:Jo(b,106),Iga:Jo(b,107),aqa:Jo(b,104),bia:P(b,74),lha:P(b,75),Xja:P(b,76),cia:P(b,77),Pna:P(b,81),Ona:P(b,82),Rna:P(b,83),Sna:P(b,84),Qna:P(b,85),Tna:P(b,86),ioa:P(b,89),joa:P(b,112),loa:P(b,118),koa:P(b,119),aia:(c=b.DU())&&Tp(a,c),Wja:(c=b.uV())&&Tp(a,c),jja:(c=b.VU())&&Tp(a,c),Epa:(c=b.IX())&&Tp(a,
c),ora:P(b,108),nra:P(b,109),mra:P(b,110)};a&&(e.f=b);return e};d=fq.prototype;d.wn=function(){return P(this,1)};d.KL=function(a){S(this,1,a)};d.kA=function(a){S(this,2,a)};d.hL=function(a){S(this,3,a)};d.GL=function(a){S(this,4,a)};d.BL=function(a){S(this,5,a)};d.cp=function(a){S(this,6,a)};d.OE=function(){return P(this,7)};d.$K=function(a){S(this,7,a)};d.ZL=function(a){S(this,8,a)};d.NE=function(){return P(this,9)};d.ZK=function(a){S(this,9,a)};d.YL=function(a){S(this,10,a)};
d.Jc=function(){return P(this,24)};d.Vd=function(a){S(this,24,a)};d.Vg=function(){return P(this,25)};d.pM=function(a){S(this,25,a)};d.d7=function(a){S(this,117,a)};d.qL=function(a){S(this,26,a)};d.uL=function(a){S(this,27,a)};d.PL=function(a){S(this,28,a)};d.Mw=function(){return P(this,29)};d.vL=function(a){S(this,29,a)};d.AV=function(){return P(this,30)};d.wL=function(a){S(this,30,a)};d.n8=function(a){S(this,31,a)};d.o8=function(a){S(this,50,a)};d.p8=function(a){S(this,51,a)};
d.L9=function(a){S(this,38,a)};d.O$=function(a){S(this,39,a)};d.kU=function(){return P(this,40)};d.j7=function(a){S(this,40,a)};d.i7=function(a){S(this,41,a)};d.xM=function(a){S(this,42,a)};d.f$=function(a){S(this,43,a)};d.Y9=function(a){S(this,96,a)};d.K8=function(a){S(this,80,a)};d.o$=function(a){S(this,44,a)};d.S9=function(a){S(this,94,a)};d.c8=function(a){S(this,46,a)};d.d8=function(a){S(this,47,a)};d.e8=function(a){S(this,48,a)};d.f8=function(a){S(this,49,a)};d.b8=function(a){S(this,63,a)};
d.lx=function(){return P(this,53)};d.y$=function(a){S(this,53,a||[])};d.Fr=function(){return U(this,jq,54)};d.qM=function(a){W(this,54,a)};d.ti=function(){return P(this,57)};d.oj=function(a){S(this,57,a)};d.ii=function(){return P(this,58)};d.ij=function(a){S(this,58,a)};d.dM=function(a){S(this,113,a)};d.J8=function(a){S(this,78,a)};d.I8=function(a){S(this,79,a)};d.D8=function(a){S(this,59,a)};d.hr=function(){return P(this,65)};d.UK=function(a){S(this,65,a)};d.c7=function(a){S(this,95,a)};
d.j8=function(a){S(this,68,a)};d.w$=function(a){S(this,103,a)};d.K9=function(a){S(this,106,a)};d.a7=function(a){S(this,107,a)};d.l$=function(a){S(this,104,a)};d.k7=function(a){S(this,75,a)};d.l9=function(a){S(this,81,a)};d.k9=function(a){S(this,82,a)};d.n9=function(a){S(this,83,a)};d.o9=function(a){S(this,84,a)};d.m9=function(a){S(this,85,a)};d.p9=function(a){S(this,86,a)};d.u9=function(a){S(this,89,a)};d.v9=function(a){S(this,112,a)};d.x9=function(a){S(this,118,a)};d.w9=function(a){S(this,119,a)};
d.DU=function(){return T(this,Sp,120)};d.uV=function(){return T(this,Sp,121)};d.VU=function(){return T(this,Sp,122)};d.IX=function(){return T(this,Sp,123)};var kq={nga:0,nP:1,Ju:2,mga:3},lq={Pp:0,oP:1,lga:2},mq={yB:0,xB:1,wB:2,zB:4,tca:8,wca:16,vca:32,xca:64,uca:128,yca:1073741824},jq=function(a){N(this,a,0,-1,nq,null)};x(jq,L);var nq=[2];jq.prototype.b=function(a){return iq(a,this)};var iq=function(a,b){var c={y6:P(b,1),MA:P(b,2)};a&&(c.f=b);return c};jq.prototype.Fn=function(){return P(this,1)};
jq.prototype.lM=function(a){S(this,1,a)};jq.prototype.ri=function(){return P(this,2)};jq.prototype.ep=function(a){S(this,2,a||[])};var gq=function(a){N(this,a,0,-1,null,null)};x(gq,L);gq.prototype.b=function(a){return eq(a,this)};var eq=function(a,b){var c,e={OR:P(b,1),wka:P(b,2),AK:P(b,3),qra:P(b,4),Hha:P(b,5),lra:P(b,90),kra:P(b,91),pra:P(b,6),Gha:P(b,7),Ipa:(c=b.JX())&&Rp(a,c),Cpa:(c=b.GX())&&Rp(a,c),networkType:P(b,55),kaa:(c=b.kx())&&oq(a,c)};a&&(e.f=b);return e};d=gq.prototype;
d.wt=function(a){S(this,1,a)};d.l8=function(a){S(this,2,a)};d.cp=function(a){S(this,3,a)};d.N$=function(a){S(this,4,a)};d.t7=function(a){S(this,5,a)};d.L$=function(a){S(this,90,a)};d.K$=function(a){S(this,91,a)};d.M$=function(a){S(this,6,a)};d.s7=function(a){S(this,7,a)};d.JX=function(){return T(this,Qp,8,1)};d.b$=function(a){V(this,8,a)};d.GX=function(){return T(this,Qp,9,1)};d.a$=function(a){V(this,9,a)};d.kx=function(){return T(this,pq,56)};var pq=function(a){N(this,a,0,-1,null,null)};x(pq,L);
pq.prototype.b=function(a){return oq(a,this)};var oq=function(a,b){var c={Sra:P(b,1),iia:P(b,2),hia:P(b,3),gia:P(b,4)};a&&(c.f=b);return c},aq=function(a){N(this,a,0,-1,null,null)};x(aq,L);aq.prototype.b=function(a){return Yp(a,this)};var Yp=function(a,b){var c={Jia:P(b,1),zna:P(b,2)};a&&(c.f=b);return c},bq=function(a){N(this,a,0,-1,qq,null)};x(bq,L);var qq=[3,4];bq.prototype.b=function(a){return Zp(a,this)};var Zp=function(a,b){var c={Yna:P(b,1),ro:P(b,2),gha:P(b,3),Lra:P(b,4)};a&&(c.f=b);return c};
bq.prototype.ke=function(){return P(this,2)};var rq=function(a){N(this,a,0,-1,null,null)};x(rq,L);rq.prototype.b=function(a){return sq(a,this)};var sq=function(a,b){var c,e={local:(c=b.kW())&&tq(a,c),remote:(c=b.EX())&&tq(a,c),fia:P(b,3)};a&&(e.f=b);return e};rq.prototype.kW=function(){return T(this,uq,1)};rq.prototype.EX=function(){return T(this,uq,2)};var uq=function(a){N(this,a,0,-1,null,null)};x(uq,L);uq.prototype.b=function(a){return tq(a,this)};var tq=function(a,b){var c={Foa:P(b,1),XS:P(b,2),Hma:P(b,3)};a&&(c.f=b);return c};
uq.prototype.pL=function(a){S(this,2,a)};var vq=function(a){N(this,a,0,-1,null,null)};x(vq,L);vq.prototype.b=function(a){return wq(a,this)};var wq=function(a,b){var c={jka:P(b,1),kka:P(b,2),Vna:P(b,3),Jna:P(b,4),Kna:P(b,5),X:P(b,6),Tha:P(b,7)};a&&(c.f=b);return c};vq.prototype.M=function(){return P(this,6)};vq.prototype.I=function(a){S(this,6,a)};var xq=function(a){N(this,a,0,-1,null,null)};x(xq,L);xq.prototype.b=function(a){return yq(a,this)};var yq=function(a,b){var c,e={code:P(b,1),Dqa:(c=b.iY())&&wq(a,c),fpa:(c=b.wX())&&sq(a,c),Tpa:P(b,3),tia:P(b,4),Bqa:P(b,5),Fqa:P(b,7),gba:P(b,8)};a&&(e.f=b);return e};xq.prototype.iY=function(){return T(this,vq,2)};xq.prototype.wX=function(){return T(this,rq,6)};var Aq=function(a){N(this,a,0,-1,zq,null)};x(Aq,L);var zq=[5];Aq.prototype.b=function(a){return Bq(a,this)};var Bq=function(a,b){var c={mqa:P(b,1),Ela:P(b,2),kpa:P(b,3),yra:P(b,4),Dra:O(b.EY(),Cq,a)};a&&(c.f=b);return c};Aq.prototype.EY=function(){return U(this,Dq,5)};var Dq=function(a){N(this,a,0,-1,null,null)};x(Dq,L);Dq.prototype.b=function(a){return Cq(a,this)};var Cq=function(a,b){var c={jpa:P(b,1),response:P(b,2)};a&&(c.f=b);return c};var Fq=function(a){N(this,a,0,-1,Eq,null)};x(Fq,L);var Eq=[1];Fq.prototype.b=function(a){return Gq(a,this)};var Gq=function(a,b){var c,e={Xna:O(b.bX(),Hq,a),reason:P(b,15),Xpa:P(b,16),networkType:P(b,17),kaa:(c=b.kx())&&oq(a,c)};a&&(e.f=b);return e};Fq.prototype.bX=function(){return U(this,Iq,1)};Fq.prototype.kx=function(){return T(this,pq,18)};var Iq=function(a){N(this,a,0,-1,Jq,null)};x(Iq,L);var Jq=[8,9,10,11,12,13];Iq.prototype.b=function(a){return Hq(a,this)};
var Hq=function(a,b){var c={sma:P(b,1),lka:P(b,2),dpa:P(b,3),Oqa:P(b,4),jna:P(b,5),epa:P(b,6),cpa:P(b,7),Nqa:O(b.mY(),Kq,a),zla:O(b.VV(),Kq,a),Ala:O(b.WV(),Kq,a),ura:O(b.wY(),Kq,a),cra:O(b.tY(),Kq,a),yqa:O(b.hY(),Kq,a)};a&&(c.f=b);return c};d=Iq.prototype;d.mY=function(){return U(this,Lq,8)};d.VV=function(){return U(this,Lq,9)};d.WV=function(){return U(this,Lq,10)};d.wY=function(){return U(this,Lq,11)};d.tY=function(){return U(this,Lq,12)};d.hY=function(){return U(this,Lq,13)};
var Lq=function(a){N(this,a,0,-1,null,null)};x(Lq,L);Lq.prototype.b=function(a){return Kq(a,this)};var Kq=function(a,b){var c={AK:P(b,1),error:P(b,2)};a&&(c.f=b);return c};Lq.prototype.cp=function(a){S(this,1,a)};Lq.prototype.getError=function(){return P(this,2)};var Mq=function(a){N(this,a,0,-1,null,null)};x(Mq,L);Mq.prototype.b=function(a){return Nq(a,this)};var Nq=function(a,b){var c={Aka:P(b,1),eoa:P(b,2),xka:P(b,3),Hpa:P(b,4),Rja:P(b,5)};a&&(c.f=b);return c};var Oq=function(a){N(this,a,0,-1,null,null)};x(Oq,L);Oq.prototype.b=function(a){return Pq(a,this)};var Pq=function(a,b){var c={type:P(b,1),cka:P(b,2),Woa:P(b,3),Wna:P(b,4),ria:P(b,5)};a&&(c.f=b);return c};d=Oq.prototype;d.O=function(){return P(this,1)};d.nj=function(a){S(this,1,a)};d.h8=function(a){S(this,2,a)};d.O9=function(a){S(this,3,a)};d.r9=function(a){S(this,4,a)};d.D7=function(a){S(this,5,a)};var Qq=function(a){N(this,a,0,-1,null,null)};x(Qq,L);Qq.prototype.b=function(a){return Rq(a,this)};var Rq=function(a,b){var c={networkType:P(b,1),Moa:P(b,2),Loa:P(b,3),Ooa:P(b,4)};a&&(c.f=b);return c};var Sq=function(a){N(this,a,0,-1,null,null)};x(Sq,L);Sq.prototype.b=function(a){return Tq(a,this)};var Tq=function(a,b){var c,e={poa:P(b,1),Qia:P(b,2),Sia:P(b,3),Uia:P(b,4),Via:P(b,5),TR:P(b,6),Tia:P(b,7),Tka:P(b,8),Xka:P(b,9),Uka:P(b,10),Vka:P(b,11),Wka:P(b,12),Lia:P(b,13),qoa:P(b,14),browser:P(b,15),wha:P(b,16),Pia:P(b,17),Ria:P(b,18),Ema:P(b,19),Xha:P(b,20),xna:(c=b.RW())&&Uq(a,c),Zga:P(b,22),Nra:(c=b.KY())&&Vq(a,c)};a&&(e.f=b);return e};d=Sq.prototype;d.z9=function(a){S(this,1,a)};
d.M7=function(a){S(this,2,a)};d.O7=function(a){S(this,3,a)};d.fL=function(a){S(this,5,a)};d.gA=function(a){S(this,6,a)};d.A9=function(a){S(this,14,a)};d.n7=function(a){S(this,15,a)};d.p7=function(a){S(this,16,a)};d.N7=function(a){S(this,18,a)};d.RW=function(){return T(this,Wq,21)};d.KY=function(){return T(this,Xq,23)};var Wq=function(a){N(this,a,0,-1,null,null)};x(Wq,L);Wq.prototype.b=function(a){return Uq(a,this)};
var Uq=function(a,b){var c={vla:P(b,1),$pa:P(b,2),Zpa:P(b,3),Kka:P(b,4),mha:P(b,5)};a&&(c.f=b);return c},Xq=function(a){N(this,a,0,-1,Yq,null)};x(Xq,L);var Yq=[3];Xq.prototype.b=function(a){return Vq(a,this)};var Vq=function(a,b){var c={Sqa:P(b,1),Tqa:P(b,2),Uqa:O(b.oY(),Zq,a)};a&&(c.f=b);return c};Xq.prototype.oY=function(){return U(this,$q,3)};var $q=function(a){N(this,a,0,-1,null,null)};x($q,L);$q.prototype.b=function(a){return Zq(a,this)};
var Zq=function(a,b){var c={Bia:P(b,1),Pma:P(b,2),Nma:P(b,4),Rma:P(b,3)};a&&(c.f=b);return c};var br=function(a){N(this,a,0,-1,ar,null)};x(br,L);var ar=[11];br.prototype.b=function(a){return cr(a,this)};var cr=function(a,b){var c,e={clientId:P(b,1),X:P(b,2),vl:P(b,14),pma:P(b,21),ra:P(b,3),Pha:(c=b.wU())&&Wp(a,c),Sha:(c=b.zU())&&Bq(a,c),Kia:(c=b.QU())&&Gq(a,c),zka:(c=b.yV())&&Nq(a,c),$qa:(c=b.sY())&&Tq(a,c),Rha:(c=b.xU())&&yq(a,c),Noa:(c=b.pX())&&Rq(a,c),Zka:(c=b.EV())&&Pq(a,c),Bha:P(b,11),Y3:P(b,12),xma:P(b,9),wma:P(b,13),em:P(b,16),n6:P(b,18),via:P(b,19),wia:P(b,20)};a&&(e.f=b);return e};
d=br.prototype;d.rc=function(){return P(this,1)};d.ye=function(a){S(this,1,a)};d.M=function(){return P(this,2)};d.I=function(a){S(this,2,a)};d.Hk=function(){return P(this,14)};d.Dh=function(a){S(this,14,a)};d.Ea=function(){return P(this,21)};d.v=function(){return P(this,3)};d.Ra=function(a){S(this,3,a)};d.wU=function(){return T(this,Vp,4)};d.aL=function(a){V(this,4,a)};d.zU=function(){return T(this,Aq,5)};d.QU=function(){return T(this,Fq,6)};d.yV=function(){return T(this,Mq,7)};
d.sY=function(){return T(this,Sq,8)};d.xU=function(){return T(this,xq,10)};d.pX=function(){return T(this,Qq,17)};d.EV=function(){return T(this,Oq,15)};d.t8=function(a){V(this,15,a)};d.bA=function(a){S(this,11,a||[])};d.li=function(){return P(this,12)};d.$o=function(a){S(this,12,a)};d.O8=function(a){S(this,9,a)};d.N8=function(a){S(this,13,a)};d.xG=function(){return P(this,16)};d.mj=function(a){S(this,16,a)};d.Kk=function(){return P(this,18)};d.Et=function(a){S(this,18,a)};var Y=function(a){N(this,a,0,-1,null,null)};x(Y,L);Y.prototype.b=function(a){return Z(a,this)};var Z=function(a,b){var c,e={version:P(b,1),jia:P(b,2),dla:(c=b.or())&&dr(a,c)};a&&(e.f=b);return e};d=Y.prototype;d.$e=function(){return P(this,1)};d.setVersion=function(a){S(this,1,a)};d.or=function(){return T(this,er,3)};d.lA=function(a){V(this,3,a)};d.WC=function(){this.lA(void 0)};var er=function(a){N(this,a,0,-1,null,null)};x(er,L);er.prototype.b=function(a){return dr(a,this)};
var dr=function(a,b){var c={cookie:P(b,1),timestamp:P(b,2)};a&&(c.f=b);return c};er.prototype.VC=function(){S(this,1,void 0)};er.prototype.RG=function(){return null!=P(this,1)};er.prototype.si=function(){return P(this,2)};er.prototype.Ht=function(a){S(this,2,a)};var fr=function(a){N(this,a,0,-1,null,null)};x(fr,L);d=fr.prototype;d.b=function(a){var b,c={kb:(b=this.T())&&Pp(a,b),sessionId:P(this,2),uma:(b=this.pW())&&cr(a,b),H:(b=this.h())&&Z(a,b)};a&&(c.f=this);return c};d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.s=function(){return P(this,2)};d.va=function(a){S(this,2,a)};d.pW=function(){return T(this,br,3)};d.M8=function(a){V(this,3,a)};d.h=function(){return T(this,Y,4)};d.j=function(a){V(this,4,a)};d.F=function(){this.j(void 0)};var gr=function(a){N(this,a,0,-1,null,null)};x(gr,L);gr.prototype.b=function(a){return hr(a,this)};var hr=function(a,b){var c={Xqa:P(b,1),fka:P(b,2)};a&&(c.f=b);return c};var ir=function(a){N(this,a,0,-1,null,null)};x(ir,L);ir.prototype.b=function(a){return jr(a,this)};var jr=function(a,b){var c,e={status:P(b,1),$ja:P(b,2),ija:P(b,3),L5:P(b,4),yha:P(b,10),kia:P(b,11),oS:P(b,5),nha:P(b,6),XC:P(b,7),tma:P(b,8),Wqa:(c=b.qY())&&hr(a,c)};a&&(e.f=b);return e};d=ir.prototype;d.eb=function(){return P(this,1)};d.wV=function(){return P(this,2)};d.fG=function(){return P(this,4)};d.oW=function(){return P(this,8)};d.qY=function(){return T(this,gr,9)};var kr=function(a){N(this,a,"chselrp",-1,null,null)};x(kr,L);kr.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),H:(b=this.h())&&Z(a,b)};a&&(c.f=this);return c};Uo("chselrp",kr);kr.prototype.getResponseHeader=function(){return T(this,ir,1)};kr.prototype.h=function(){return T(this,Y,2)};kr.prototype.j=function(a){V(this,2,a)};kr.prototype.F=function(){this.j(void 0)};var lr=function(a){N(this,a,0,-1,null,null)};x(lr,L);lr.prototype.b=function(a){return nr(a,this)};var nr=function(a,b){var c,e={kb:(c=b.T())&&Pp(a,c),sessionId:P(b,2),H:(c=b.h())&&Z(a,c)};a&&(e.f=b);return e};d=lr.prototype;d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.s=function(){return P(this,2)};d.va=function(a){S(this,2,a)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};var or=function(a){N(this,a,0,-1,null,null)};x(or,L);or.prototype.b=function(a){return pr(a,this)};var pr=function(a,b){var c={una:P(b,1),Lma:P(b,2),Cqa:P(b,3)};a&&(c.f=b);return c};or.prototype.NL=function(a){S(this,1,a)};or.prototype.FL=function(a){S(this,2,a)};or.prototype.sM=function(a){S(this,3,a)};var rr=function(a){N(this,a,0,-1,qr,null)};x(rr,L);var qr=[8];rr.prototype.b=function(a){return sr(a,this)};var sr=function(a,b){var c={Boa:P(b,1),name:P(b,2),mediaType:P(b,3),Qoa:P(b,4),bitRate:P(b,5),sampleRate:P(b,6),channelCount:P(b,7),yoa:O(b.RF(),tr,a)};a&&(c.f=b);return c};d=rr.prototype;d.jX=function(){return P(this,1)};d.E9=function(a){S(this,1,a)};d.getName=function(){return P(this,2)};d.Ol=function(a){S(this,2,a)};d.J=function(){return P(this,3)};d.Nb=function(a){S(this,3,a)};
d.Af=function(){S(this,3,void 0)};d.lU=function(){return P(this,5)};d.l7=function(a){S(this,5,a)};d.ZX=function(){return P(this,6)};d.j$=function(a){S(this,6,a)};d.GU=function(){return P(this,7)};d.z7=function(a){S(this,7,a)};d.RF=function(){return U(this,ur,8)};d.C9=function(a){W(this,8,a)};var ur=function(a){N(this,a,0,-1,null,null)};x(ur,L);ur.prototype.b=function(a){return tr(a,this)};var tr=function(a,b){var c={key:P(b,1),value:P(b,2)};a&&(c.f=b);return c};
ur.prototype.getKey=function(){return P(this,1)};ur.prototype.F8=function(a){S(this,1,a)};ur.prototype.hc=function(){return P(this,2)};ur.prototype.EA=function(a){S(this,2,a)};var vr=function(a){N(this,a,0,-1,null,null)};x(vr,L);vr.prototype.b=function(a){return wr(a,this)};var wr=function(a,b){var c={Qqa:P(b,1),$la:P(b,2),kqa:P(b,3),tag:P(b,4)};a&&(c.f=b);return c};d=vr.prototype;d.Wg=function(){return P(this,1)};d.G$=function(a){S(this,1,a)};d.Ek=function(){return P(this,2)};d.G8=function(a){S(this,2,a)};d.Gn=function(){return P(this,3)};d.s$=function(a){S(this,3,a)};d.Jn=function(){return P(this,4)};d.I$=function(a){S(this,4,a)};var xr=function(a){N(this,a,0,-1,null,null)};x(xr,L);xr.prototype.b=function(a){return yr(a,this)};var yr=function(a,b){var c={height:P(b,1),width:P(b,2),Ika:P(b,3)};a&&(c.f=b);return c};d=xr.prototype;d.ii=function(){return P(this,1)};d.ij=function(a){S(this,1,a)};d.ti=function(){return P(this,2)};d.oj=function(a){S(this,2,a)};d.BV=function(){return P(this,3)};d.xL=function(a){S(this,3,a)};var Ar=function(a){N(this,a,0,-1,zr,null)};x(Ar,L);var zr=[5];Ar.prototype.b=function(a){return Br(a,this)};var Br=function(a,b){var c,e={zqa:P(b,1),send:P(b,2),resolution:(c=b.uc())&&yr(a,c),priority:P(b,4),MA:P(b,5)};a&&(e.f=b);return e};d=Ar.prototype;d.x$=function(a){S(this,1,a)};d.Ug=function(){return P(this,2)};d.mM=function(a){S(this,2,a)};d.uc=function(){return T(this,xr,3)};d.Ql=function(a){V(this,3,a)};d.mi=function(){return P(this,4)};d.cM=function(a){S(this,4,a)};
d.ri=function(){return P(this,5)};d.ep=function(a){S(this,5,a||[])};var Cr=function(a){N(this,a,0,-1,null,null)};x(Cr,L);Cr.prototype.b=function(a){return Dr(a,this)};var Dr=function(a,b){var c,e={mediaType:P(b,1),Mqa:(c=b.vG())&&Br(a,c)};a&&(e.f=b);return e};d=Cr.prototype;d.J=function(){return P(this,1)};d.Nb=function(a){S(this,1,a)};d.Af=function(){S(this,1,void 0)};d.vG=function(){return T(this,Ar,2)};d.D$=function(a){V(this,2,a)};var Er=function(a){N(this,a,0,-1,null,null)};x(Er,L);Er.prototype.b=function(a){return Fr(a,this)};var Fr=function(a,b){var c={id:P(b,1),uri:P(b,2),mediaType:P(b,3)};a&&(c.f=b);return c};d=Er.prototype;d.getId=function(){return P(this,1)};d.yt=function(a){S(this,1,a)};d.Mk=function(){return P(this,2)};d.P$=function(a){S(this,2,a)};d.J=function(){return P(this,3)};d.Nb=function(a){S(this,3,a)};d.Af=function(){S(this,3,void 0)};var Gr=function(a){N(this,a,0,-1,null,null)};x(Gr,L);Gr.prototype.b=function(a){return Hr(a,this)};var Hr=function(a,b){var c={component:P(b,1),protocol:P(b,2),ip:P(b,3),port:P(b,4),type:P(b,5),priority:P(b,6),network:P(b,7),Oka:P(b,8),mediaType:P(b,9)};a&&(c.f=b);return c};d=Gr.prototype;d.hi=function(){return P(this,1)};d.I7=function(a){S(this,1,a)};d.Rg=function(){return P(this,2)};d.Bt=function(a){S(this,2,a)};d.Ck=function(){return P(this,3)};d.A8=function(a){S(this,3,a)};
d.Eb=function(){return P(this,4)};d.Pl=function(a){S(this,4,a)};d.XG=function(){return null!=P(this,4)};d.O=function(){return P(this,5)};d.nj=function(a){S(this,5,a)};d.mi=function(){return P(this,6)};d.cM=function(a){S(this,6,a)};d.yn=function(){return P(this,7)};d.q9=function(a){S(this,7,a)};d.Ak=function(){return P(this,8)};d.q8=function(a){S(this,8,a)};d.J=function(){return P(this,9)};d.Nb=function(a){S(this,9,a)};d.Af=function(){S(this,9,void 0)};var Jr=function(a){N(this,a,0,-1,Ir,null)};x(Jr,L);var Ir=[3,6];Jr.prototype.b=function(a){return Kr(a,this)};var Kr=function(a,b){var c,e={Cla:P(b,1),xqa:(c=b.qG())&&Lr(a,c),noa:P(b,3),username:P(b,4),password:P(b,5),Zha:O(b.QE(),Hr,a)};a&&(e.f=b);return e};d=Jr.prototype;d.ZV=function(){return P(this,1)};d.x8=function(a){S(this,1,a)};d.qG=function(){return T(this,Mr,2)};d.oM=function(a){V(this,2,a)};d.GY=function(){return P(this,4)};d.zM=function(a){S(this,4,a)};d.iX=function(){return P(this,5)};
d.$L=function(a){S(this,5,a)};d.QE=function(){return U(this,Gr,6)};d.dL=function(a){W(this,6,a)};var Mr=function(a){N(this,a,0,-1,null,null)};x(Mr,L);Mr.prototype.b=function(a){return Lr(a,this)};var Lr=function(a,b){var c={algorithm:P(b,1),rka:P(b,2)};a&&(c.f=b);return c};Mr.prototype.ZT=function(){return P(this,1)};Mr.prototype.VK=function(a){S(this,1,a)};Mr.prototype.Ve=function(){return P(this,2)};Mr.prototype.tL=function(a){S(this,2,a)};var Or=function(a){N(this,a,0,-1,Nr,null)};x(Or,L);var Nr=[3,4,5,6];Or.prototype.b=function(a){return Pr(a,this)};var Pr=function(a,b){var c,e={mediaType:R(b,1,4),transport:(c=b.Ma())&&Kr(a,c),Cia:O(b.XE(),sr,a),Yia:O(b.aF(),wr,a),Wpa:O(b.hG(),Fr,a),lja:O(b.eF(),Dr,a),Tma:(c=b.xW())&&pr(a,c)};a&&(e.f=b);return e};d=Or.prototype;d.J=function(){return R(this,1,4)};d.Nb=function(a){S(this,1,a)};d.Af=function(){S(this,1,void 0)};d.Ma=function(){return T(this,Jr,2)};d.yM=function(a){V(this,2,a)};
d.XE=function(){return U(this,rr,3)};d.E7=function(a){W(this,3,a)};d.aF=function(){return U(this,vr,4)};d.gL=function(a){W(this,4,a)};d.hG=function(){return U(this,Er,5)};d.h$=function(a){W(this,5,a)};d.eF=function(){return U(this,Cr,6)};d.R7=function(a){W(this,6,a)};d.xW=function(){return T(this,or,7)};d.HL=function(a){V(this,7,a)};var Qr=function(a){N(this,a,0,-1,null,null)};x(Qr,L);Qr.prototype.b=function(a){return Rr(a,this)};var Rr=function(a,b){var c={channelId:P(b,1),format:P(b,2),ssrc:P(b,3),label:P(b,4)};a&&(c.f=b);return c};d=Qr.prototype;d.getChannelId=function(){return P(this,1)};d.A7=function(a){S(this,1,a)};d.lF=function(){return P(this,2)};d.m8=function(a){S(this,2,a)};d.Vg=function(){return P(this,3)};d.pM=function(a){S(this,3,a)};d.zF=function(){return P(this,4)};d.H8=function(a){S(this,4,a)};var Tr=function(a){N(this,a,0,-1,Sr,null)};x(Tr,L);var Sr=[3,4,5,6];Tr.prototype.b=function(a){return Ur(a,this)};var Ur=function(a,b){var c={sessionId:P(b,1),pia:O(b.HU(),Pr,a),iqa:O(b.jG(),Pr,a),gpa:O(b.XF(),Rr,a),ela:P(b,6),type:P(b,7)};a&&(c.f=b);return c};d=Tr.prototype;d.s=function(){return P(this,1)};d.va=function(a){S(this,1,a)};d.HU=function(){return U(this,Or,3)};d.dA=function(a){W(this,3,a)};d.jG=function(){return U(this,Or,4)};d.XF=function(){return U(this,Qr,5)};
d.R9=function(a){W(this,5,a)};d.yL=function(a){S(this,6,a||[])};d.O=function(){return P(this,7)};d.nj=function(a){S(this,7,a)};var Vr=function(a){N(this,a,"chseqrp",-1,null,null)};x(Vr,L);Vr.prototype.b=function(a){return Wr(a,this)};var Wr=function(a,b){var c,e={Ja:(c=b.getResponseHeader())&&jr(a,c),session:(c=b.me())&&Ur(a,c),H:(c=b.h())&&Z(a,c)};a&&(e.f=b);return e};Uo("chseqrp",Vr);d=Vr.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.me=function(){return T(this,Tr,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};var Xr=function(a){var b=new Ip;b.e7(a);b.U7($c&&Uc?2:$c?3:ad?4:bd?5:1);b.H9(1);return b};var Yr=function(a,b,c,e,f,g){K.call(this);this.a=E("realtime.media.apiary.Client");this.rd=a;this.a6=b;this.o4=c;this.Bd=l(g)?g:8;this.Uc=f||Ra();this.Qz=Xr(e);this.Gh=37;"hangout_lite"==c&&(this.Gh=55)};x(Yr,K);d=Yr.prototype;d.Zo=function(a){this.Vf=a};d.ap=function(a){this.cu=a};d.u4=function(a){var b=new lr;b.setRequestHeader(this.wD());b.va(a);return this.bI("media_sessions/query",b).then(this.$X,null,this)};d.$X=function(a){return null!=a?a.me():null};
d.Cj=function(a,b){a=this.uD(a,b);return this.bI("media_sessions/log",a).Ec(function(a){G(this.a,"Failed to upload log data: "+a);throw a;},this)};d.uD=function(a,b){a=a.Lm();a.O8(this.Gh);a.N8(this.o4);var c=new fr;c.setRequestHeader(this.wD());c.va(b);c.M8(a);return c};d.wD=function(){var a=new Op;a.fA(new Gp);a.Ew().ye(this.Bd);var b=new Ep;b.uA(this.a6);b.Dh(this.Uc);a.eA(b);a.Yo("en");a.vA(this.Qz);return a};
d.qZ=function(a){if(null==a)throw new Zr("Got empty response.");if(l(a.getResponseHeader)){var b=a.getResponseHeader();if(null!=b){if(b=b.eb(),1!=b)throw new Zr("Got bad status in response header.",b);}else throw new Zr("Missing response header.");}return a};d.bI=function(a,b){if(null==this.rd){var c="Failed to "+a+" "+b+": no service";G(this.a,c);return Oe(c)}return this.rd.fl(a,b,this.cu,this.Vf).then(this.qZ,function(c){G(this.a,"Failed to "+a+" "+b+": "+c);throw c;},this)};
var Zr=function(a,b){Ca.call(this);this.desc=a;this.status=b||0};x(Zr,Ca);var $r=function(a){N(this,a,0,-1,null,null)};x($r,L);$r.prototype.b=function(a){return as(a,this)};var as=function(a,b){var c,e={direction:P(b,1),mediaType:P(b,2),sessionId:P(b,3),bm:P(b,4),X:P(b,5),ra:P(b,6),sourceId:P(b,7),foa:(c=b.Xe())&&bs(a,c),request:(c=b.oi())&&Br(a,c)};a&&(e.f=b);return e};d=$r.prototype;d.Jc=function(){return P(this,1)};d.Vd=function(a){S(this,1,a)};d.J=function(){return P(this,2)};d.Nb=function(a){S(this,2,a)};d.Af=function(){S(this,2,void 0)};
d.s=function(){return P(this,3)};d.va=function(a){S(this,3,a)};d.gc=function(){return P(this,4)};d.lj=function(a){S(this,4,a)};d.M=function(){return P(this,5)};d.I=function(a){S(this,5,a)};d.v=function(){return P(this,6)};d.Ra=function(a){S(this,6,a)};d.ya=function(){return P(this,7)};d.hf=function(a){S(this,7,a)};d.Xe=function(){return T(this,cs,8)};d.QL=function(a){V(this,8,a)};d.oi=function(){return T(this,Ar,9)};d.c$=function(a){V(this,9,a)};var cs=function(a){N(this,a,0,-1,ds,null)};x(cs,L);
var ds=[1,2];cs.prototype.b=function(a){return bs(a,this)};var bs=function(a,b){var c={MA:P(b,1),xaa:O(b.Fr(),es,a)};a&&(c.f=b);return c};cs.prototype.ri=function(){return P(this,1)};cs.prototype.ep=function(a){S(this,1,a||[])};cs.prototype.Fr=function(){return U(this,fs,2)};cs.prototype.qM=function(a){W(this,2,a)};var fs=function(a){N(this,a,0,-1,gs,null)};x(fs,L);var gs=[2];fs.prototype.b=function(a){return es(a,this)};var es=function(a,b){var c={y6:P(b,1),MA:P(b,2)};a&&(c.f=b);return c};
fs.prototype.Fn=function(){return P(this,1)};fs.prototype.lM=function(a){S(this,1,a)};fs.prototype.ri=function(){return P(this,2)};fs.prototype.ep=function(a){S(this,2,a||[])};var hs={yP:0,jO:1,TIMEOUT:2,ERROR:3,wea:4,Zca:5,RB:6,Lda:7,ida:8,dO:9,nda:10,Ffa:11,hga:12,sfa:13,Bca:14,Jda:15,gea:16,vga:17,Hca:18,dea:19,Ofa:20,Iea:21,jda:22,Fda:23,Wea:24,Tfa:25,Qfa:26,IO:27,jea:28,sga:29,Efa:30,Lea:31,Wca:32,Rca:33,tga:34,pfa:35,Dga:36,xga:37,aea:38,$da:39,bea:40,Aga:41,tfa:42,yda:43,Gda:44,yga:45,Oca:46,Oea:47,nfa:48,Mea:49,ofa:50,hfa:51,jfa:52,ifa:53,lfa:54,kfa:55,Vfa:56,Kda:57,Fga:58,zea:59,pea:60,Pca:61,Gca:62,gda:63,tea:64,Uda:65,Sda:66,lea:67,Vda:68,Qca:69,Mda:70,Uca:71,
Nea:72,qda:73,Pfa:74,Xca:102};var is=function(){K.call(this);this.Yg=!1};x(is,K);qa(is);var ks=function(a,b,c,e,f,g,k){K.call(this);this.mc=e;this.Sy=f;this.Mm=this.mc.xD(c);this.Rb=++js;this.o=E("realtime.collections.Collection."+this.Rb);this.po=f.mh;this.Fd=k||null;this.qh=g&&g.qh||null;this.VA=f.pY();this.Sq=g&&g.jF()||null;this.Lc=new Xh(this);this.ha(this.Lc);this.data=[];this.en=[];this.Va=-2;this.zi=!0;this.bh=Te();this.state="ca";this.config=b;this.Rh=is.N();this.sh={};this.iE=rc};x(ks,K);var ls=new D(10,67);ks.prototype.Ir=function(a){return new ms(a.lm,a.data,[],"Z")};
var ns=function(a,b){return new ms(b.lm,[],a,"Z")},js=0,os=0;d=ks.prototype;d.lc=function(){"ca"!=this.state||this.Rh.Yg||(this.state="aa",this.qh&&this.Lc.listen(this.qh,this.Sq,this.YI))};d.start=function(a){a&&(this.Mm=Ro(a));"ca"==this.state&&this.lc();if("aa"!=this.state||this.Rh.Yg)return null;this.state="ba";this.iI();H(this.o,"Collection started: "+this.toString()+", "+this.Ue());return null};
d.stop=function(){if("ba"==this.state||"aa"==this.state)this.flush(),this.Rt(),this.state="ca",H(this.o,"Collection stopped: "+this.toString()+": "+this.Ue())};d.iI=function(){this.zi&&this.bh&&(H(this.o,"Initial data available: "+this.toString()),this.bh.resolve(this.en),this.bh=null)};d.tc=function(){return this.config};d.Rt=function(){this.qh&&this.Lc.vd(this.qh,this.Sq,this.YI)};d.lr=function(){return Ro(this.Mm)};
d.Sm=function(a){return a?this.mc.B_(a)?this.mc.Sm(this.mc.Hq(a)):this.mc.Sm(this.mc.Aq(this.Mm),a):this.mc.Sm(this.mc.Aq(this.Mm))};d.Tf=function(){return"ba"==this.state&&!this.Rh.Yg};d.Zr=function(){return"ba"==this.state};d.y_=function(){return("ba"==this.state||"aa"==this.state)&&!this.Rh.Yg};d.L=function(){this.flush();this.stop();null!=this.bh&&(G(this.o,"Never any data: "+this.toString()),this.bh.promise.cancel(),this.bh=null);ks.S.L.call(this)};d.get=function(){return this.en};
d.wk=function(){return null!=this.bh?this.bh.promise:Ne(this.get())};d.flush=function(){var a;do this.zR(),a=this.cn();while(0<a)};d.zR=function(){zb(this.sh,function(a){for(;a&&1<=a.length&&a[0].pt;)a.shift()})};d.oa=function(){return B(this.data,function(a){return a.cb()})};d.add=function(a,b){return this.wx(a)&&this.VA?(a=this.ew("ea",a),Ee(this.cn,this),a):this.hl("ea",this.Le([a]),v(this.Ir,this),a,b)};
d.modify=function(a,b){return this.wx(a)&&this.VA?(a=this.ew("fa",a),Ee(this.cn,this),a):this.hl("fa",this.Me([a]),v(this.Ir,this),a,b)};d.remove=function(a,b,c){var e=this.du(a);return this.wx(a)&&null==c&&this.VA?(a=this.ew("ga",e,b),Ee(this.cn,this),a):this.hl("ga",this.ae([e],b),Ba(ns,[e]),e,c)};
d.ew=function(a,b,c){var e=this.du(b).toString(),f=this.sh[e]||[];this.sh[e]=f;var e=null,g=f.length;if(1<=g&&!f[g-1].pt)if(g=f[g-1],"ea"==a){if("ea"==g.type||"fa"==g.type)e=g.vb,f.pop(),this.fa("g")}else if("fa"==a&&("ea"==g.type||"fa"==g.type))return g.cj=this.C0(g.cj,b),this.fa("f"),g.vb.promise;a=new ps(a,b,e,c);f.push(a);return a.vb.promise};
d.cn=function(){var a=0,b={};zb(this.sh,function(c){if(c&&1<=c.length&&(c=c[0],!c.pt)){c.pt=!0;if("ga"==c.type&&c.nC){var e=[c.cj];this.It(this.ae(e,c.nC),Ba(ns,e),[c.vb],e)}else e=b[c.type]||[],e.push(c),b[c.type]=e;a++}},this);zb(b,function(a,b){if(1<=a.length){var c=[],e=[];z(a,function(a){c.push(a.cj);e.push(a.vb)});switch(b){case "ea":this.It(this.Le(c),v(this.Ir,this),e,c);break;case "fa":this.It(this.Me(c),v(this.Ir,this),e,c);break;case "ga":this.It(this.ae(c),Ba(ns,c),e,c);break;default:y("A request with type "+
b+" was put in the queue.")}}},this);return a};d.It=function(a,b,c,e){null==a&&z(c,function(a){a.reject("Operation not available")});if(!this.Rh.Yg){a.pA(this.config.EF());a.yA(this.config.eG());e=B(e,this.du,this);var f=a.Mb.promise;f.then(v(this.nE,this,e),v(this.nE,this,e));f.then(v(this.VI,this,a,b,c,e)).Ec(v(this.WI,this,a,c));this.po.execute(a)}};d.rb=function(){return Oe("Resync not supported")};d.Xk=function(){return!0};d.Le=function(a){return this.Sy.Le(a)};d.Me=function(a){return this.Sy.Me(a)};
d.ae=function(a,b){return this.Sy.ae(B(a,this.Bq,this),b)};d.cs=function(a){return this.mc.Ox(a)};d.wx=function(a){return a instanceof qs?this.mc.Ox(this.Bq(a)):this.mc.Ox(a)};d.Fb=function(a){return this.cS(this.mc.xD(this.mc.Hq(a)))};d.gv=function(a){return this.mc.E_(this.Mm,this.Bq(a))};d.hl=function(a,b,c,e,f){if(null==b)return Oe("Operation not available");a=Te();this.$$(b,c,a,f);this.oT(b,null);return a.promise};
d.$$=function(a,b,c,e){e=null!=e?e:this.config.EF();a.pA(e);a.yA(a.Hr()||this.config.eG());!this.Rh.Yg&&null!=c&&a.Mb.promise.then(v(this.VI,this,a,b,[c],null)).Ec(v(this.WI,this,a,[c]))};d.oT=function(a,b){this.Rh.Yg||(H(this.o,"Executing operation: "+a),this.po.execute(a),null!=b&&a.Mb.promise.then(b,b))};
d.VI=function(a,b,c,e,f){H(this.o,"Operation executed: "+a+", result:"+f);this.fa("d");null!=b&&(this.Xk(f.lm)?(a=b(f))?this.mz(a):H(this.o,"Operation resulted in no update"):this.Tf()&&y("Result of an operation must have a valid version number, if the collection is active."));!e||null==f.data||1>=f.data.length?c[0].resolve(f.data):z(c,function(a,b){var c=e[b];b=ab(f.data,function(a){return this.du(a).equals(c)},this);0==b.length&&F(this.o,"Result data is empty after filtering for target resource id "+
c);a.resolve(b)},this)};d.WI=function(a,b,c){a="Operation failed: "+c;F(this.o,a,c instanceof Error?c:Error(a));this.fa("c");z(b,function(a){a.reject(c)});null!=c.response&&(b=c.response.getResponseHeader(),a=ls.get(b.eb()),null!=a&&this.mw(a,"Collection apiary operation failed with response code "+b.eb()+" triggering endcause "+a));return c};
d.nE=function(a){var b=!1;z(a,function(a){var c=this.sh[a.toString()];c&&1<=c.length?(c.shift(),b=b||1<=c.length):F(this.o,"A writing request with resource id "+a+" completed but it is not in the request queue.")},this);b&&this.cn()};d.YI=function(a){this.y_()&&this.lz(a)};
d.lz=function(a){var b=this.EG(a);H(this.o,"Received push notification, version: "+b+", checking if any updates apply to this collection "+this.toString());var c=this.SW(a);a=this.aV(a);c.length||a.length?(H(this.o,"Notification applies to this collection: version: "+b+", add/modify: "+c.length+", remove:"+a.length),b=new ms(b,c,a,"Y"),I(this.o,"Created partial update for notification: "+b),Md(this.o,Ed,"Add/modify: ["+b.up.join("|")+"], remove: ["+b.vp.join("|")+"]"),this.fa("h"),this.mz(b)):H(this.o,
"Notification does not apply to this collection, ignoring.")};d.Nv=function(a){return this.mc.Nv(a)};d.yq=function(a){return this.mc.yq(a)};d.EG=function(){return-2};d.SW=function(a){var b=[];z(a.notification.ga(),function(a){a=this.Nv(a);this.cs(a)?this.gv(this.Fb(a))&&b.push(a):this.fa("B","Pushed modified: "+a.cb())},this);return b};
d.aV=function(a){if(!a.notification.Pa)return[];var b=[];z(a.notification.Pa(),function(a){var c=this.yq(a);this.cs(c)?(a=this.Fb(c),this.gv(a)&&b.push(a)):this.fa("B","Pushed deleted: "+a.cb())},this);return b};d.mz=function(a){I(this.o,"Begin processing update: "+a);a instanceof ms&&(I(this.o,"Applying partial update: "+a),this.av(a));I(this.o,"Finish processing update: "+a+": "+this.Ue())};d.Ue=function(){return"state: "+this.state+", local version: "+this.Va+", snapshot size: "+this.data.length};
d.av=function(a){I(this.o,"Processing partial update: "+a);Md(this.o,Ed,"Add/modify: ["+a.up.join("|")+"], remove: ["+a.vp.join("|")+"]");z(a.up,function(a){if(this.cs(a)){var b=Ro(a);mb(this.data,function(b){return this.Fb(b).equals(this.Fb(a))},this);this.data.push(b)}else this.fa("B","Partial update: "+a.cb())},this);var b=[];z(a.vp,function(a){mb(this.data,function(b){return this.Fb(b).equals(a)},this)||b.push(a)},this);0<b.length&&this.fa("C","Resources not found: "+lf(b));this.iB()};
d.iB=function(){var a=ab(this.data,this.iE,this),b=this.KR(a),c=b.Nc,e=b.Mh,b=b.removed;if(0<c.length||0<e.length||0<b.length)H(this.o,"Obtained update of the filtered view : modified: "+c.length+", added: "+e.length+", removed:"+b.length),Md(this.o,Ed,"Modified: ["+c.join("|")+"], added: ["+e.join("|")+"], removed: ["+b.join("|")+"]"),this.en=a,this.dispatchEvent(new rs(c,e,b))};
d.KR=function(a){var b=[],c=[];z(a,function(a){var e=eb(this.en,function(b){return this.Fb(a).equals(this.Fb(b))},this);null!=e?Po(a,e)||b.push(a):c.push(a)},this);var e=ab(this.en,function(b){return 0>db(a,function(a){return this.Fb(b).equals(this.Fb(a))},this)},this);return{Nc:b,Mh:c,removed:e}};d.h_=function(a){this.iE=a;this.iB()};d.fa=function(a,b){null!=this.Fd&&this.Fd.fa(a,b)};
d.C0=function(a,b){var c=JSON.parse(a.cb());b=JSON.parse(b.cb());for(var e=0;e<b.length;e++)null!=b[e]&&!Oo(c[e],b[e])&&(c[e]=b[e]);return new a.constructor(c)};d.du=function(a){return null==a||a instanceof qs?a:this.Fb(a)};var ss=function(a){this.Na=a;this.id=++os},ms=function(a,b,c,e){ss.call(this,a);this.DN=e;this.up=b;this.vp=c};x(ms,ss);
ms.prototype.toString=function(){return"[Partial update id: "+this.id+", version: "+this.Na+", add/modify: "+this.up.length+", remove: "+this.vp.length+", type: "+this.DN+"]"};ks.prototype.mw=function(a,b){"da"!=this.state&&(this.Rt(),this.state="da",F(this.o,"Collection failed: "+this.toString()+": "+this.Ue(),Error(b)),this.dispatchEvent(new ts(a,b)))};var ps=function(a,b,c,e){this.type=a;this.cj=b;this.vb=c||Te();this.nC=e||null;this.pt=!1};ks.prototype.Bq=function(a){return a.Tr};
ks.prototype.cS=function(a){return new qs(this.mc,a)};var qs=function(a,b){this.Z5=a;this.Tr=b};qs.prototype.equals=function(a){return this.Z5.F_(this.Tr,a.Tr)};qs.prototype.toString=function(){return this.Tr.cb()};var rs=function(a,b,c){J.call(this,"f");this.Mh=b;this.Nc=a;this.removed=c};x(rs,J);var ts=function(a,b){J.call(this,"h");this.Bb=a;this.reason=b};x(ts,J);var us=function(){Nd.call(this);this.a=E("realtime.diagnostics.DiagnosticDataService");this.cy=0;this.oq=new D};x(us,Nd);var vs=function(a){a.yi(mp)||a.xh(mp,new us)};us.prototype.L=function(){var a=[];this.oq.forEach(function(b){a.push(b.key)},this);a.length&&G(this.a,"Leftover callbacks for diagnostic data collection: "+a.join(", "));us.S.L.call(this)};us.prototype.na=function(a,b){this.cy++;this.oq.set(this.cy,{key:a,rq:b});return this.cy};us.prototype.Dz=function(a){null!=a&&this.oq.remove(a)};
us.prototype.oa=function(){var a={};this.isDisposed()||this.oq.forEach(function(b,c){var e=b.rq.call();a[null!==a&&b.key in a?b.key+c:b.key]=e},this);return a};var xs=function(a){if(!a.ec){var b;for(b=a.constructor;b&&!b.Gg;)b=b.S&&b.S.constructor;b.Gg.ED||(b.Gg.ED=up(b));b=new b.Gg.ED(a);a.ec=b;a.ow||(a.ow=ws)}},ws=function(a){return this.ec.ow(a)};var ys=function(){xs(this)};qa(ys);ys.prototype.tc=function(a,b){return this.ec.tc(a,b)};ys.prototype.Gk=function(a,b,c,e){return this.ec.Gk(a,b,c,e)};ys.prototype.Sg=function(a,b){return this.ec.Sg(a,b)};ys.prototype.Ng=function(a,b){return this.ec.Ng(a,b)};var zs=function(){};x(zs,pp);qp(zs,ys);zs.prototype.tc=wp();zs.prototype.Gk=wp();zs.prototype.Sg=wp();zs.prototype.Ng=wp();var As=function(a,b){this.qh=a;this.Sq=b};As.prototype.jF=function(){return this.Sq};var Bs=function(a,b,c,e){this.cH=a;this.gI=b;this.Um=this.Qv=a;this.KJ=c||0;this.iq=e||2};Bs.prototype.Tm=0;Bs.prototype.reset=function(){this.Um=this.Qv=this.cH;this.Tm=0};Bs.prototype.hc=function(){return this.Qv};Bs.prototype.hq=function(){this.Um=Math.min(this.gI,this.Um*this.iq);this.Qv=Math.min(this.gI,this.Um+(this.KJ?Math.round(this.KJ*(Math.random()-.5)*2*this.Um):0));this.Tm++};var Cs=function(){K.call(this)};x(Cs,K);Cs.prototype.execute=r;Cs.prototype.D5=function(){this.dispatchEvent("j")};var Ds=function(a,b,c,e,f,g,k){ks.call(this,a,b,c,e,f,g,k);this.bN=f;this.Va=-1;this.zi=!1;this.hs=-1;this.ac=[];this.kt=this.br=this.Yt=this.js=null;this.Sn=!1;this.PH=0;this.pp=null;this.ng=new Bs(this.config.SX(),this.config.rY())};x(Ds,ks);d=Ds.prototype;d.start=function(a){Ds.S.start.call(this,a);if("ba"!=this.state)return null;this.Lc.listen(this.po,"j",this.GI);this.Lz(!0);H(this.o,"Starting initial resync.");return this.$l("ka",!0)};
d.Rt=function(){Ds.S.Rt.call(this);this.Lc.vd(this.po,"j",this.GI);$e(this.kt);this.kt=null;this.ng.reset();$e(this.Yt);this.Yt=null;$e(this.br);this.pp=this.br=null;this.zi=!1};d.query=function(a,b){return this.hl("ha",this.Ef(a),null,null,b)};d.search=function(a){return this.hl("ia",this.Ff(),null,null,a)};
d.XA=function(a){"ja"!=a&&0==this.ng.Tm&&this.po.D5();I(this.o,"Starting sync. Type: "+a);var b="la"==a||"ma"==a,c="ka"==a?void 0:0,e=this.Ff(),f=-2;this.config.nY()&&(9E4>w()-this.PH?(f=this.Va,e.BM(f)):this.PH=w());c=this.hl("ia",e,function(b){return f!=b.lm?new Es(b.lm,b.data,a):null},null,c);c.then(v(this.H2,this,b)).Ec(v(this.G2,this,b));this.js=c;this.js.Ec(n);return c};d.Xk=function(a){return 0<=a};d.Ff=function(){return this.bN.Ff(this.lr())};d.Ef=function(a){return this.bN.Ef(this.Bq(a))};
d.GI=function(){this.$l("ja",!0)};d.rb=function(){return null!=this.$l("na",!0)||this.js?this.js:Oe("Collection not yet started, so cannot resync.")};d.lz=function(a){this.C_(a)?this.rb():Ds.S.lz.call(this,a)};d.EG=function(a){var b;va(a.notification.h)&&null!=a.notification.h()&&(b=a.notification.h().$e());return b};d.C_=function(a){var b=!1;a=a.notification.Gb();null!=a&&""!=a&&(b=this.yq(a),b=this.Fb(b),b=this.gv(b));return b};
d.mz=function(a){I(this.o,"Begin processing update: "+a);var b=a.Na==this.hs;this.T4(a.Na);this.Lz(!1);if(a instanceof Es)this.eQ(a);else{this.p0(a.up,a.vp);if(this.Xk(this.Va)&&a.Na<=this.Va){"Y"==a.DN&&this.fa("j");var c=!1;b&&(this.fa("k"),c=!0);this.xH(a.Na)&&(this.fa("l"),c=!0);c&&this.$l("oa",!0);this.fa("i");I(this.o,"Ignoring update "+a+" below or equal to local version ("+this.Va+")");return}b=eb(this.ac,function(b){return b.Na<=a.Na},this);if(null!=b&&a.Na==b.Na){this.fa("i");G(this.o,"Duplicate update received, ignoring it.");
return}I(this.o,"Queuing partial update: "+a);jb(this.ac,a,b)}this.dQ();(this.zi=0==this.ac.length&&this.Xk(this.Va))?this.iI():this.$l("oa",!1);I(this.o,"Finish processing update: "+a+": "+this.Ue())};d.p0=function(a,b){this.Xk(this.Va)||(I(this.o,"Dispatch early notification: "),this.dispatchEvent(new Fs(a,b)))};d.$l=function(a,b){if(!this.Tf()||this.Sn)return null;this.ng.reset();var c=null;this.Sn=!0;b?c=this.XA(a):this.OA();return c};
d.dw=function(){this.Sn&&(H(this.o,"Ending resync"),this.Sn=!1,this.dispatchEvent("i"))};d.OA=function(){var a=this.ng.hc();this.fa("o");H(this.o,"Scheduling resync timer, backoff count: "+this.ng.Tm+", backoff: "+a);this.kt=Ze(this.y2,a,this)};d.y2=function(){H(this.o,"Resync timer triggered, "+this.Ue());this.kt=null;this.Tf()?(this.fa("p"),this.XA("oa")):this.dw()};
d.H2=function(a){H(this.o,(a?"Poll":"Resync")+" operation executed, "+this.Ue());this.XJ(!1);if(this.zi||!this.Tf())this.dw();else{a=!1;var b=this.config.RX();this.ng.Tm>=b?(this.fa("n"),H(this.o,"Hard sync threshold reached ("+b+"), doing a hard resync"),a=!0):this.ac.length>this.config.BG()&&(this.fa("m"),I(this.o,"Number of queued updates is larger than the max ("+this.config.BG()+"), clearing the queue"),a=!0);a?(hb(this.ac),this.ng.reset(),this.XA("pa")):(this.ng.hq(),this.OA())}};
d.G2=function(a,b){var c=(a?"Poll":"Resync")+" error: "+b;F(this.o,c,b instanceof Error?b:Error(c));this.fa(a?"A":"q");this.XJ(!0);this.Tf()?(this.ng.hq(),this.OA()):this.dw()};d.Ue=function(){return Ds.S.Ue.call(this)+", is synced: "+this.zi+", is resyncing: "+this.Sn+", queue size: "+this.ac.length+", highest observed server version: "+this.hs+(0<this.ac.length?", smallest queued version: "+Xa(this.ac).Na+", largest queued version: "+this.ac[0].Na:"")};
d.dQ=function(){if(0!=this.ac.length&&this.Xk(this.Va)){I(this.o,"Trying to apply any queued updates, "+this.Ue());for(var a=0;0<this.ac.length&&Xa(this.ac).Na<=this.Va;){var b=this.ac.pop();I(this.o,"Tossing queued update "+b+" below or equal to local version ("+this.Va+")");a++}0<a&&I(this.o,"Tossed "+a+" queued old updates below or equal to local version ("+this.Va+")");for(a=0;0<this.ac.length;)if(b=Xa(this.ac),b.Na==this.Va)this.ac.pop(),a++;else if(b.Na==this.Va+1)this.Va=b.Na,this.av(b),this.ac.pop(),
a++;else{I(this.o,"Unable to incrementally apply next queued update,  lowest queue update version: "+b.Na+", local version:"+this.Va+", remaining queue length: "+this.ac.length);break}I(this.o,"Applied "+a+" queued updates")}};d.gJ=function(a){this.Tf()&&(this.fa("r"),H(this.o,"Executing poll sync operation"),this.$l(a,!0),this.Lz(!0))};
d.Lz=function(a){if(this.Tf()){H(this.o,"Scheduling next poll for "+this.config.wG()/1E3+" seconds from now");$e(this.Yt);this.Yt=Ze(Ba(this.gJ,"la"),this.config.wG(),this);var b=this.config.zV();null!=b||(b=9E4);a&&0<b&&($e(this.br),this.br=Ze(Ba(this.gJ,"ma"),b,this))}};
d.XJ=function(a){if(a)if(null!=this.pp){a=w()-this.pp;var b="Sync operations failing for a period of "+a/1E3+" seconds (limit configured to: "+this.config.nx()/1E3+" seconds).";G(this.o,b);a>=this.config.nx()&&this.mw(22,b)}else this.pp=w(),G(this.o,"Sync operation failed, we will continue retrying for up to "+this.config.nx()/1E3+" seconds before shutting down...");else this.pp=null};
d.eQ=function(a){I(this.o,"Processing full update: "+a);Md(this.o,Ed,"Snapshot: ["+a.data.join("|")+"]");if(this.Va>=a.Na&&100>this.Va-a.Na){var b=[];this.Va==a.Na&&(z(a.data,function(a){var c=eb(this.data,function(b){return this.Fb(a).equals(this.Fb(b))},this);Gs(c,a)||b.push({local:c&&c.cb(),server:a.cb()})},this),z(this.data,function(c){null!=eb(a.data,function(a){return this.Fb(c).equals(this.Fb(a))},this)||b.push({local:c.cb(),server:null})},this));if(0!=b.length)G(this.o,"Reapplying update with version that's the same, update: "+
a.Na+", local: "+this.Va+", type: "+a.qp),this.fa("z",b);else{this.fa("w");switch(a.qp){case "oa":this.fa("x");break;case "la":this.fa("y")}I(this.o,"Ignoring update with version not newer than local version, update: "+a.Na+", local: "+this.Va+", type: "+a.qp);return}}this.Va>a.Na&&this.xH(a.Na)&&this.fa("l",""+(this.Va-a.Na));this.fa("s");switch(a.qp){case "la":this.fa("u");break;case "oa":this.fa("t");break;case "pa":this.fa("v")}var c=ab(a.data,function(a){if(this.cs(a))return!0;this.fa("B","Full update: "+
a.cb());return!1},this),e=[];z(this.data,function(a){eb(c,function(b){return this.Fb(a).equals(this.Fb(b))},this)||e.push(this.Fb(a))},this);I(this.o,"Applying full update as partial and advancing version from "+this.Va+" to "+a.Na);this.Va=a.Na;this.av(new ms(a.Na,c,e,"$"))};d.xH=function(a){return 100<this.Va-a};d.T4=function(a){this.hs=Math.max(this.hs,a)};
var Gs=function(a,b){return a==b||a instanceof b.constructor&&Hs(JSON.parse(a.cb()),JSON.parse(b.cb()))},Hs=function(a,b){var c=ta(a),e=ta(b);if(c&&e){var c={},f;for(f in a)a.hasOwnProperty(f)&&(c[f]=0);for(f in b)b.hasOwnProperty(f)&&(c[f]=0);for(f in c)if(!Hs(a[f],b[f]))return!1;return!0}return a==b||null==a&&e&&0==b.length||null==b&&c&&0==a.length},Es=function(a,b,c){ss.call(this,a);this.data=b;this.qp=c};x(Es,ss);
Es.prototype.toString=function(){return"[Full update id: "+this.id+", version: "+this.Na+", resource count: "+this.data.length+", sync type: "+this.qp+"]"};var Fs=function(a,b){J.call(this,"g");this.Nc=a;this.removed=b};x(Fs,J);var Is=function(a){N(this,a,0,-1,null,null)};x(Is,L);Is.prototype.b=function(a){return Js(a,this)};var Js=function(a,b){var c={X:P(b,1),oQ:P(b,2)};a&&(c.f=b);return c};Is.prototype.M=function(){return P(this,1)};Is.prototype.I=function(a){S(this,1,a)};var Ks=function(a,b,c,e,f,g,k,p,q,A,M){this.dj=a;this.S5=pb(b);this.T5=pb(c);pb(e);this.pK=ob(b,e);this.Y5=ob(c,f);this.it=g;this.U5=pb(k);this.V5=pb(p);pb(q);this.oK=ob(k,q);this.X5=ob(p,A);this.W5=M||sc};d=Ks.prototype;d.Aq=function(a){var b;if(a instanceof this.dj)b=this.S5;else if(a instanceof this.it)b=this.U5;else return y("Passed in object did not match resource or identifier type"),[];return B(b,function(b){return b.call(a)})};
d.Hq=function(a){var b;if(a instanceof this.dj)b=this.pK;else if(a instanceof this.it)b=this.oK;else return y("Passed in object did not match resource or identifier type"),[];return B(b,function(b){return b.call(a)})};d.B_=function(a){return a instanceof this.dj};d.Sm=function(a,b){var c=this.Y5;a.length!=c.length&&(b?a=ob(a,b):c=this.T5);var e=new this.dj;z(a,function(a,b){c[b].call(e,a)},this);return e};
d.xD=function(a,b){var c=this.X5;a.length!=c.length&&(b?a=ob(a,b):c=this.V5);var e=new this.it;z(a,function(a,b){c[b].call(e,a)},this);return e};d.Ox=function(a){var b;if(a instanceof this.dj)b=this.pK;else if(a instanceof this.it)b=this.oK;else return y("Passed in object did not match resource or identifier type"),!1;return!bb(b,function(b){return null==b.call(a)})};d.E_=function(a,b){a=this.Cq(a,this.Aq);b=this.Cq(b,this.Aq);return xb(a,b)};
d.F_=function(a,b){a=this.Cq(a,this.Hq);b=this.Cq(b,this.Hq);return xb(a,b)};d.Nv=function(a){return a instanceof this.dj?a:new this.dj(JSON.parse(a.cb()))};d.yq=function(a){return this.W5(a)};d.Cq=function(a,b){return a instanceof Array?a:b.call(this,a)};var Ls=function(a){N(this,a,0,1,null,null)};x(Ls,L);Ls.prototype.b=function(a){return Ms(a,this)};var Ms=function(a,b){var c={},e=Ns,f=Ls.prototype.getExtension,g;for(g in e){var k=e[g],p=f.call(b,k);if(p){for(var q in k.BT)if(k.BT.hasOwnProperty(q))break;c[q]=k.gN?k.z_?O(p,k.gN,a):k.gN(a,p):p}}a&&(c.f=b);return c},Ns={};var Ps=function(a){N(this,a,0,-1,Os,null)};x(Ps,L);var Os=[14];Ps.prototype.b=function(a){return Qs(a,this)};var Qs=function(a,b){var c,e={X:P(b,1),oQ:P(b,2),projectId:P(b,3),resolution:P(b,4),uoa:P(b,10),apa:P(b,5),vra:(c=b.xY())&&Rs(a,c),Kpa:P(b,7),spa:(c=b.AX())&&Ss(a,c),mma:(c=b.iW())&&Ts(a,c),nma:(c=b.jW())&&Us(a,c),V4:(c=b.aG())&&Vs(a,c),Ara:P(b,13),Qra:P(b,14)};a&&(e.f=b);return e};d=Ps.prototype;d.M=function(){return P(this,1)};d.I=function(a){S(this,1,a)};d.uc=function(){return P(this,4)};
d.Ql=function(a){S(this,4,a)};d.xY=function(){return T(this,Ws,6)};d.AX=function(){return T(this,Xs,8)};d.iW=function(){return T(this,Ys,9)};d.jW=function(){return T(this,Zs,11)};d.aG=function(){return T(this,$s,12)};d.gM=function(a){V(this,12,a)};var Xs=function(a){N(this,a,0,-1,null,null)};x(Xs,L);Xs.prototype.b=function(a){return Ss(a,this)};
var Ss=function(a,b){var c,e={MM:P(b,1),Saa:(c=b.kY())&&at(a,c),vka:P(b,3),dra:(c=b.uY())&&bt(a,c),Rka:(c=b.DV())&&ct(a,c),Hga:(c=b.XT())&&dt(a,c),vja:(c=b.gV())&&Ms(a,c)};a&&(e.f=b);return e};d=Xs.prototype;d.kY=function(){return T(this,et,2)};d.uY=function(){return T(this,ft,4)};d.DV=function(){return T(this,gt,5)};d.XT=function(){return T(this,ht,6)};d.gV=function(){return T(this,Ls,7)};var et=function(a){N(this,a,0,-1,null,null)};x(et,L);et.prototype.b=function(a){return at(a,this)};
var at=function(a,b){var c={Rra:P(b,1),goa:P(b,2)};a&&(c.f=b);return c},Ws=function(a){N(this,a,0,-1,null,null)};x(Ws,L);Ws.prototype.b=function(a){return Rs(a,this)};var Rs=function(a,b){var c={$ia:P(b,1),Lka:P(b,2)};a&&(c.f=b);return c},ft=function(a){N(this,a,0,-1,null,null)};x(ft,L);ft.prototype.b=function(a){return bt(a,this)};var bt=function(a,b){var c={roomName:P(b,1)};a&&(c.f=b);return c},gt=function(a){N(this,a,0,-1,null,null)};x(gt,L);gt.prototype.b=function(a){return ct(a,this)};
var ct=function(a,b){var c={R2:P(b,1),Uga:P(b,2),title:P(b,3),Goa:P(b,4)};a&&(c.f=b);return c};gt.prototype.XL=function(a){S(this,1,a)};gt.prototype.getTitle=function(){return P(this,3)};gt.prototype.setTitle=function(a){S(this,3,a)};var Ys=function(a){N(this,a,0,-1,it,null)};x(Ys,L);var it=[5];Ys.prototype.b=function(a){return Ts(a,this)};var Ts=function(a,b){var c={Tra:P(b,1),topic:P(b,2),Vja:R(b,3,!0),Xoa:P(b,4),dba:P(b,5)};a&&(c.f=b);return c},ht=function(a){N(this,a,0,-1,null,null)};x(ht,L);
ht.prototype.b=function(a){return dt(a,this)};var dt=function(a,b){var c={status:R(b,1,0),mja:P(b,2),Bra:P(b,3)};a&&(c.f=b);return c};ht.prototype.eb=function(){return R(this,1,0)};var Zs=function(a){N(this,a,0,-1,null,null)};x(Zs,L);Zs.prototype.b=function(a){return Us(a,this)};var Us=function(a,b){var c={aja:P(b,3),lma:P(b,4),oqa:R(b,5,!1)};a&&(c.f=b);return c},$s=function(a){N(this,a,0,-1,null,null)};x($s,L);$s.prototype.b=function(a){return Vs(a,this)};
var Vs=function(a,b){var c={bja:P(b,1),bra:P(b,2)};a&&(c.f=b);return c};var kt=function(a){N(this,a,0,-1,jt,null)};x(kt,L);var jt=[10];kt.prototype.b=function(a){return lt(a,this)};var lt=function(a,b){var c={X:P(b,1),gR:P(b,2),type:P(b,4),MM:P(b,5),Yja:P(b,6),Qja:P(b,7),uqa:P(b,8),hha:P(b,9),Hoa:O(b.oX(),mt,a),language:P(b,11)};a&&(c.f=b);return c};d=kt.prototype;d.M=function(){return P(this,1)};d.I=function(a){S(this,1,a)};d.O=function(){return P(this,4)};d.nj=function(a){S(this,4,a)};d.oX=function(){return U(this,nt,10)};var nt=function(a){N(this,a,0,-1,null,null)};
x(nt,L);nt.prototype.b=function(a){return mt(a,this)};var mt=function(a,b){var c={text:P(b,1),confidence:Jo(b,2)};a&&(c.f=b);return c};var ot=function(a){N(this,a,0,-1,null,null)};x(ot,L);ot.prototype.b=function(a){return pt(a,this)};var pt=function(a,b){var c={X:P(b,1),gR:P(b,2)};a&&(c.f=b);return c};ot.prototype.M=function(){return P(this,1)};ot.prototype.I=function(a){S(this,1,a)};var qt=function(a){N(this,a,0,-1,null,null)};x(qt,L);qt.prototype.b=function(a){return rt(a,this)};var rt=function(a,b){var c,e={Una:(c=b.YW())&&st(a,c),yja:(c=b.iV())&&tt(a,c),Uja:(c=b.tV())&&tt(a,c),ema:(c=b.eW())&&ut(a,c)};a&&(e.f=b);return e};qt.prototype.YW=function(){return T(this,vt,1)};qt.prototype.iV=function(){return T(this,wt,2)};qt.prototype.tV=function(){return T(this,wt,3)};qt.prototype.eW=function(){return T(this,xt,4)};var vt=function(a){N(this,a,0,-1,null,null)};x(vt,L);
vt.prototype.b=function(a){return st(a,this)};var st=function(a,b){var c={xha:P(b,1),networkType:P(b,2)};a&&(c.f=b);return c},wt=function(a){N(this,a,0,-1,null,null)};x(wt,L);wt.prototype.b=function(a){return tt(a,this)};var tt=function(a,b){var c={hma:P(b,1),Ama:P(b,2),accuracy:Jo(b,3)};a&&(c.f=b);return c},xt=function(a){N(this,a,0,-1,null,null)};x(xt,L);xt.prototype.b=function(a){return ut(a,this)};var ut=function(a,b){var c={Mga:P(b,1),Lga:P(b,2),voa:P(b,3),zpa:P(b,4)};a&&(c.f=b);return c};var zt=function(a){N(this,a,0,-1,yt,null)};x(zt,L);var yt=[20,8,19,26];zt.prototype.b=function(a){return At(a,this)};var At=function(a,b){var c,e={X:P(b,1),ra:P(b,2),PN:P(b,3),displayName:P(b,4),sC:P(b,5),rpa:P(b,6),Voa:P(b,7),sha:O(b.mU(),Bt,a),rha:P(b,8),Dla:P(b,9),Qka:P(b,10),nka:P(b,11),role:P(b,12),ER:R(b,13,1),yna:R(b,14,1),Aoa:R(b,17,0),joined:R(b,18,!1),Yoa:P(b,19),Kga:R(b,21,!1),Kja:(c=b.qV())&&rt(a,c),kH:P(b,23),vpa:R(b,24,0),Era:P(b,25),z0:P(b,26)};a&&(e.f=b);return e};d=zt.prototype;
d.M=function(){return P(this,1)};d.I=function(a){S(this,1,a)};d.v=function(){return P(this,2)};d.Ra=function(a){S(this,2,a)};d.Mg=function(){return P(this,4)};d.iA=function(a){S(this,4,a)};d.aA=function(a){S(this,5,a)};d.mU=function(){return U(this,Ct,20)};d.getGivenName=function(){return P(this,10)};d.getFamilyName=function(){return P(this,11)};d.eL=function(a){S(this,13,a)};d.xF=function(){return R(this,18,!1)};d.CL=function(a){S(this,18,a)};d.qV=function(){return T(this,qt,22)};
d.Tw=function(){return P(this,26)};d.IL=function(a){S(this,26,a||[])};var Ct=function(a){N(this,a,0,-1,null,null)};x(Ct,L);Ct.prototype.b=function(a){return Bt(a,this)};var Bt=function(a,b){var c={PN:P(b,1),qha:R(b,2,1)};a&&(c.f=b);return c};var Dt=function(a){N(this,a,0,-1,null,null)};x(Dt,L);Dt.prototype.b=function(a){return Et(a,this)};var Et=function(a,b){var c={X:P(b,1),ra:P(b,2)};a&&(c.f=b);return c};Dt.prototype.M=function(){return P(this,1)};Dt.prototype.I=function(a){S(this,1,a)};Dt.prototype.v=function(){return P(this,2)};Dt.prototype.Ra=function(a){S(this,2,a)};var Ft=function(a){N(this,a,0,-1,null,null)};x(Ft,L);Ft.prototype.b=function(a){return Gt(a,this)};var Gt=function(a,b){var c={sra:R(b,1,!1),language:R(b,2,"en-US")};a&&(c.f=b);return c};var Ht=function(a){N(this,a,0,-1,null,null)};x(Ht,L);Ht.prototype.b=function(a){return It(a,this)};var It=function(a,b){var c={id:P(b,1)};a&&(c.f=b);return c};Ht.prototype.getId=function(){return P(this,1)};Ht.prototype.yt=function(a){S(this,1,a)};var Jt=function(a){N(this,a,0,-1,null,null)};x(Jt,L);Jt.prototype.b=function(a){return Kt(a,this)};var Kt=function(a,b){var c={service:P(b,1),value:P(b,2)};a&&(c.f=b);return c};Jt.prototype.getService=function(){return P(this,1)};Jt.prototype.p$=function(a){S(this,1,a)};Jt.prototype.hc=function(){return P(this,2)};Jt.prototype.EA=function(a){S(this,2,a)};var Lt=function(a){N(this,a,0,-1,null,null)};x(Lt,L);Lt.prototype.b=function(a){return Mt(a,this)};var Mt=function(a,b){var c={Uoa:P(b,1),qv:P(b,2)};a&&(c.f=b);return c};Lt.prototype.tX=function(){return P(this,1)};Lt.prototype.N9=function(a){S(this,1,a)};Lt.prototype.xk=function(){return P(this,2)};Lt.prototype.Kl=function(a){S(this,2,a)};var Ot=function(a){N(this,a,0,-1,Nt,null)};x(Ot,L);var Nt=[15,26];Ot.prototype.b=function(a){return Pt(a,this)};
var Pt=function(a,b){var c,e={X:P(b,1),type:P(b,2),vT:(c=b.Lw())&&Kt(a,c),active:P(b,4),Xia:P(b,6),dma:P(b,7),topic:P(b,8),QR:(c=b.Gw())&&It(a,c),Dha:P(b,10),MM:P(b,11),VS:P(b,12),ooa:P(b,13),mediaType:P(b,14),dba:P(b,15),Vga:P(b,16),Sga:P(b,24),e4:(c=b.Bn())&&Mt(a,c),ama:P(b,18),bma:P(b,25),caption:(c=b.CU())&&Gt(a,c),ika:P(b,21),hoa:P(b,22),kja:P(b,23),Pga:P(b,26),Hia:P(b,27),pna:P(b,28),nna:P(b,29),GA:P(b,30)};a&&(e.f=b);return e};d=Ot.prototype;d.M=function(){return P(this,1)};
d.I=function(a){S(this,1,a)};d.O=function(){return P(this,2)};d.nj=function(a){S(this,2,a)};d.Lw=function(){return T(this,Jt,3)};d.sL=function(a){V(this,3,a)};d.setActive=function(a){S(this,4,a)};d.Gw=function(){return T(this,Ht,9)};d.J=function(){return P(this,14)};d.Nb=function(a){S(this,14,a)};d.Af=function(){S(this,14,void 0)};d.Bn=function(){return T(this,Lt,17)};d.sA=function(a){V(this,17,a)};d.CU=function(){return T(this,Ft,19)};var Qt=function(a){N(this,a,0,-1,null,null)};x(Qt,L);Qt.prototype.b=function(a){return Rt(a,this)};var Rt=function(a,b){var c={X:P(b,1)};a&&(c.f=b);return c};Qt.prototype.M=function(){return P(this,1)};Qt.prototype.I=function(a){S(this,1,a)};var St=function(){return new Ks(Ot,[Ot.prototype.M],[Ot.prototype.I],[],[],Qt,[Qt.prototype.M],[Qt.prototype.I],[],[])};var Tt=function(a){N(this,a,0,-1,null,null)};x(Tt,L);Tt.prototype.b=function(a){return Ut(a,this)};var Ut=function(a,b){var c={sessionId:P(b,1)};a&&(c.f=b);return c};Tt.prototype.s=function(){return P(this,1)};Tt.prototype.va=function(a){S(this,1,a)};var Vt=function(a){N(this,a,0,-1,null,null)};x(Vt,L);Vt.prototype.b=function(a){return Wt(a,this)};var Wt=function(a,b){var c,e={X:P(b,1),ra:P(b,2),sourceId:P(b,3),mediaType:P(b,4),Dna:(c=b.ki())&&Xt(a,c),Bna:(c=b.Fk())&&Yt(a,c),Ira:(c=b.Nk())&&Zt(a,c),Ioa:(c=b.ax())&&$t(a,c)};a&&(e.f=b);return e};d=Vt.prototype;d.M=function(){return P(this,1)};d.I=function(a){S(this,1,a)};d.v=function(){return P(this,2)};d.Ra=function(a){S(this,2,a)};d.ya=function(){return P(this,3)};d.hf=function(a){S(this,3,a)};
d.J=function(){return P(this,4)};d.Nb=function(a){S(this,4,a)};d.Af=function(){S(this,4,void 0)};d.ki=function(){return T(this,au,5)};d.g9=function(a){V(this,5,a)};d.Fk=function(){return T(this,bu,6)};d.f9=function(a){V(this,6,a)};d.Nk=function(){return T(this,cu,7)};d.R$=function(a){V(this,7,a)};d.ax=function(){return T(this,du,8)};d.I9=function(a){V(this,8,a)};var au=function(a){N(this,a,0,-1,null,null)};x(au,L);au.prototype.b=function(a){return Xt(a,this)};
var Xt=function(a,b){var c={muted:P(b,1),qv:P(b,2),W3:Jo(b,3)};a&&(c.f=b);return c};d=au.prototype;d.UW=function(){return P(this,1)};d.h9=function(a){S(this,1,a)};d.xk=function(){return P(this,2)};d.Kl=function(a){S(this,2,a)};d.TF=function(){return Jo(this,3)};d.bM=function(a){S(this,3,a)};var bu=function(a){N(this,a,0,-1,null,null)};x(bu,L);bu.prototype.b=function(a){return Yt(a,this)};var Yt=function(a,b){var c={qv:P(b,1)};a&&(c.f=b);return c};bu.prototype.xk=function(){return P(this,1)};
bu.prototype.Kl=function(a){S(this,1,a)};var cu=function(a){N(this,a,0,-1,eu,null)};x(cu,L);var eu=[3];cu.prototype.b=function(a){return Zt(a,this)};var Zt=function(a,b){var c,e={dia:P(b,1),eia:(c=b.FU())&&yr(a,c),Hla:O(b.vF(),fu,a)};a&&(e.f=b);return e};d=cu.prototype;d.EU=function(){return P(this,1)};d.x7=function(a){S(this,1,a)};d.FU=function(){return T(this,xr,2)};d.vF=function(){return U(this,gu,3)};d.z8=function(a){W(this,3,a)};var gu=function(a){N(this,a,0,-1,null,null)};x(gu,L);
gu.prototype.b=function(a){return fu(a,this)};var fu=function(a,b){var c={x:+P(b,1),y:+P(b,2),width:+P(b,3),height:+P(b,4)};a&&(c.f=b);return c};d=gu.prototype;d.LY=function(){return+P(this,1)};d.T$=function(a){S(this,1,a)};d.MY=function(){return+P(this,2)};d.U$=function(a){S(this,2,a)};d.ti=function(){return+P(this,3)};d.oj=function(a){S(this,3,a)};d.ii=function(){return+P(this,4)};d.ij=function(a){S(this,4,a)};var du=function(a){N(this,a,0,-1,null,null)};x(du,L);
du.prototype.b=function(a){return $t(a,this)};var $t=function(a,b){var c={qv:P(b,1),W3:Jo(b,2)};a&&(c.f=b);return c};du.prototype.xk=function(){return P(this,1)};du.prototype.Kl=function(a){S(this,1,a)};du.prototype.TF=function(){return Jo(this,2)};du.prototype.bM=function(a){S(this,2,a)};var hu=function(a){N(this,a,0,-1,null,null)};x(hu,L);hu.prototype.b=function(a){return iu(a,this)};var iu=function(a,b){var c={X:P(b,1),ra:P(b,2),sourceId:P(b,3)};a&&(c.f=b);return c};d=hu.prototype;d.M=function(){return P(this,1)};d.I=function(a){S(this,1,a)};d.v=function(){return P(this,2)};d.Ra=function(a){S(this,2,a)};d.ya=function(){return P(this,3)};d.hf=function(a){S(this,3,a)};var ju=function(a){N(this,a,0,-1,null,null)};x(ju,L);ju.prototype.b=function(a){return ku(a,this)};var ku=function(a,b){var c={X:P(b,1),sessionId:P(b,2),bm:P(b,3),direction:P(b,4)};a&&(c.f=b);return c};d=ju.prototype;d.M=function(){return P(this,1)};d.I=function(a){S(this,1,a)};d.s=function(){return P(this,2)};d.va=function(a){S(this,2,a)};d.gc=function(){return P(this,3)};d.lj=function(a){S(this,3,a)};d.Jc=function(){return P(this,4)};d.Vd=function(a){S(this,4,a)};var lu=function(){return new Ks($r,[$r.prototype.M,$r.prototype.Jc,$r.prototype.s],[$r.prototype.I,$r.prototype.Vd,$r.prototype.va],[$r.prototype.gc],[$r.prototype.lj],ju,[ju.prototype.M,ju.prototype.Jc,ju.prototype.s],[ju.prototype.I,ju.prototype.Vd,ju.prototype.va],[ju.prototype.gc],[ju.prototype.lj])};var mu=function(a){N(this,a,0,-1,null,null)};x(mu,L);mu.prototype.b=function(a){return nu(a,this)};var nu=function(a,b){var c={Ola:P(b,1),$ga:P(b,2)};a&&(c.f=b);return c};var ou=function(a){N(this,a,0,-1,null,null)};x(ou,L);ou.prototype.b=function(a){return pu(a,this)};var pu=function(a,b){var c={Dja:P(b,1),hka:P(b,2)};a&&(c.f=b);return c};var qu=function(a){N(this,a,0,-1,null,null)};x(qu,L);qu.prototype.b=function(a){return ru(a,this)};var ru=function(a,b){var c,e={Cja:(c=b.mV())&&pu(a,c)};a&&(e.f=b);return e};qu.prototype.mV=function(){return T(this,ou,1)};var su=function(a){N(this,a,0,-1,null,null)};x(su,L);su.prototype.b=function(a){return tu(a,this)};var tu=function(a,b){var c,e={Oga:P(b,1),$na:(c=b.cX())&&ru(a,c),L5:P(b,3),oS:P(b,5),aha:(c=b.bU())&&nu(a,c),rja:b.dV(),XC:P(b,7),x6:P(b,8)};a&&(e.f=b);return e};d=su.prototype;d.cX=function(){return T(this,qu,4)};d.fG=function(){return P(this,3)};d.bU=function(){return T(this,mu,6)};d.cV=function(){return P(this,2)};d.dV=function(){return Ko(this.cV())};var vu=function(a){N(this,a,0,-1,uu,null)};x(vu,L);var uu=[1];vu.prototype.b=function(a){return wu(a,this)};var wu=function(a,b){var c={Fia:P(b,1)};a&&(c.f=b);return c};var xu=function(a){N(this,a,0,-1,null,null)};x(xu,L);xu.prototype.b=function(a){return yu(a,this)};var yu=function(a,b){var c,e={xla:(c=b.tF())&&wu(a,c)};a&&(e.f=b);return e};xu.prototype.tF=function(){return T(this,vu,1)};var Au=function(a){N(this,a,0,-1,zu,null)};x(Au,L);var zu=[2,3];Au.prototype.b=function(a){return Bu(a,this)};var Bu=function(a,b){var c,e={H:(c=b.h())&&Z(a,c),kd:O(b.ga(),Qs,a),Re:O(b.Pa(),Js,a),we:(c=b.Gb())&&Js(a,c)};a&&(e.f=b);return e};d=Au.prototype;d.h=function(){return T(this,Y,1)};d.j=function(a){V(this,1,a)};d.F=function(){this.j(void 0)};d.ga=function(){return U(this,Ps,2)};d.bc=function(a){W(this,2,a)};d.Pa=function(){return U(this,Is,3)};d.sd=function(a){W(this,3,a)};
d.Gb=function(){return T(this,Is,4)};d.Cc=function(a){V(this,4,a)};var Du=function(a){N(this,a,0,-1,Cu,null)};x(Du,L);var Cu=[2,3];Du.prototype.b=function(a){return Eu(a,this)};var Eu=function(a,b){var c={kd:O(b.ga(),lt,a),Re:O(b.Pa(),pt,a)};a&&(c.f=b);return c};Du.prototype.ga=function(){return U(this,kt,2)};Du.prototype.bc=function(a){W(this,2,a)};Du.prototype.Pa=function(){return U(this,ot,3)};Du.prototype.sd=function(a){W(this,3,a)};var Gu=function(a){N(this,a,0,-1,Fu,null)};x(Gu,L);var Fu=[6];Gu.prototype.b=function(a){return Hu(a,this)};var Hu=function(a,b){var c={X:P(b,1),aQ:P(b,2),Wga:P(b,3),RK:P(b,4),Pqa:P(b,5),ppa:P(b,6),locale:P(b,7),action:P(b,8),title:P(b,9),body:P(b,10),jma:R(b,11,1)};a&&(c.f=b);return c};d=Gu.prototype;d.M=function(){return P(this,1)};d.I=function(a){S(this,1,a)};d.iG=function(){return P(this,4)};d.getTitle=function(){return P(this,9)};d.setTitle=function(a){S(this,9,a)};
d.Aw=function(){return P(this,10)};d.vt=function(a){S(this,10,a)};var Iu=function(a){N(this,a,0,-1,null,null)};x(Iu,L);Iu.prototype.b=function(a){return Ju(a,this)};var Ju=function(a,b){var c={X:P(b,1),aQ:P(b,2)};a&&(c.f=b);return c};Iu.prototype.M=function(){return P(this,1)};Iu.prototype.I=function(a){S(this,1,a)};var Lu=function(a){N(this,a,0,-1,Ku,null)};x(Lu,L);var Ku=[2,3];Lu.prototype.b=function(a){return Mu(a,this)};var Mu=function(a,b){var c,e={H:(c=b.h())&&Z(a,c),kd:O(b.ga(),Hu,a),Re:O(b.Pa(),Ju,a),we:(c=b.Gb())&&Ju(a,c)};a&&(e.f=b);return e};d=Lu.prototype;d.h=function(){return T(this,Y,1)};d.j=function(a){V(this,1,a)};d.F=function(){this.j(void 0)};d.ga=function(){return U(this,Gu,2)};d.bc=function(a){W(this,2,a)};d.Pa=function(){return U(this,Iu,3)};d.sd=function(a){W(this,3,a)};
d.Gb=function(){return T(this,Iu,4)};d.Cc=function(a){V(this,4,a)};var Nu=function(a){N(this,a,0,-1,null,null)};x(Nu,L);Nu.prototype.b=function(a){return Ou(a,this)};var Ou=function(a,b){var c,e={H:(c=b.h())&&Z(a,c),appId:P(b,2),data:P(b,3)};a&&(e.f=b);return e};d=Nu.prototype;d.h=function(){return T(this,Y,1)};d.j=function(a){V(this,1,a)};d.F=function(){this.j(void 0)};d.getData=function(){return P(this,3)};d.setData=function(a){S(this,3,a)};d.clearData=function(){S(this,3,void 0)};var Qu=function(a){N(this,a,0,-1,Pu,null)};x(Qu,L);var Pu=[2,3];Qu.prototype.b=function(a){return Ru(a,this)};var Ru=function(a,b){var c,e={H:(c=b.h())&&Z(a,c),kd:O(b.ga(),At,a),Re:O(b.Pa(),Et,a),Bb:P(b,4),we:(c=b.Gb())&&Et(a,c),$J:P(b,6)};a&&(e.f=b);return e};d=Qu.prototype;d.h=function(){return T(this,Y,1)};d.j=function(a){V(this,1,a)};d.F=function(){this.j(void 0)};d.ga=function(){return U(this,zt,2)};d.bc=function(a){W(this,2,a)};d.Pa=function(){return U(this,Dt,3)};
d.sd=function(a){W(this,3,a)};d.yk=function(){return P(this,4)};d.Xo=function(a){S(this,4,a)};d.Gb=function(){return T(this,Dt,5)};d.Cc=function(a){V(this,5,a)};var Tu=function(a){N(this,a,0,-1,Su,null)};x(Tu,L);var Su=[1];Tu.prototype.b=function(a){return Uu(a,this)};var Uu=function(a,b){var c={Hja:O(b.pV(),Vu,a)};a&&(c.f=b);return c};Tu.prototype.pV=function(){return U(this,Wu,1)};var Wu=function(a){N(this,a,0,-1,null,null)};x(Wu,L);Wu.prototype.b=function(a){return Vu(a,this)};var Vu=function(a,b){var c={code:P(b,1)};a&&(c.f=b);return c};var Xu=function(a){N(this,a,0,-1,null,null)};x(Xu,L);Xu.prototype.b=function(a){return Yu(a,this)};var Yu=function(a,b){var c={reason:P(b,1)};a&&(c.f=b);return c};var Zu=function(a){N(this,a,0,-1,null,null)};x(Zu,L);Zu.prototype.b=function(a){return $u(a,this)};var $u=function(a,b){var c={action:P(b,1),vqa:P(b,2)};a&&(c.f=b);return c};var bv=function(a){N(this,a,0,-1,av,null)};x(bv,L);var av=[3];bv.prototype.b=function(a){return cv(a,this)};var cv=function(a,b){var c,e={X:P(b,1),gqa:P(b,2),npa:P(b,3),hra:P(b,9),eventType:P(b,4),Gja:(c=b.oV())&&Uu(a,c),Apa:(c=b.FX())&&$u(a,c),Ana:(c=b.TW())&&Yu(a,c),nqa:P(b,6)};a&&(e.f=b);return e};d=bv.prototype;d.M=function(){return P(this,1)};d.I=function(a){S(this,1,a)};d.jF=function(){return P(this,4)};d.oV=function(){return T(this,Tu,5)};d.FX=function(){return T(this,Zu,7)};
d.TW=function(){return T(this,Xu,8)};var ev=function(a){N(this,a,0,-1,dv,null)};x(ev,L);var dv=[2];ev.prototype.b=function(a){return fv(a,this)};var fv=function(a,b){var c,e={H:(c=b.h())&&Z(a,c),kd:O(b.ga(),cv,a)};a&&(e.f=b);return e};d=ev.prototype;d.h=function(){return T(this,Y,1)};d.j=function(a){V(this,1,a)};d.F=function(){this.j(void 0)};d.ga=function(){return U(this,bv,2)};d.bc=function(a){W(this,2,a)};var hv=function(a){N(this,a,0,-1,gv,null)};x(hv,L);var gv=[2,3];hv.prototype.b=function(a){return iv(a,this)};var iv=function(a,b){var c,e={H:(c=b.h())&&Z(a,c),kd:O(b.ga(),Pt,a),Re:O(b.Pa(),Rt,a),we:(c=b.Gb())&&Rt(a,c)};a&&(e.f=b);return e};d=hv.prototype;d.h=function(){return T(this,Y,1)};d.j=function(a){V(this,1,a)};d.F=function(){this.j(void 0)};d.ga=function(){return U(this,Ot,2)};d.bc=function(a){W(this,2,a)};d.Pa=function(){return U(this,Qt,3)};d.sd=function(a){W(this,3,a)};
d.Gb=function(){return T(this,Qt,4)};d.Cc=function(a){V(this,4,a)};var kv=function(a){N(this,a,0,-1,jv,null)};x(kv,L);var jv=[2,3];kv.prototype.b=function(a){return lv(a,this)};var lv=function(a,b){var c,e={H:(c=b.h())&&Z(a,c),kd:O(b.ga(),Ur,a),Re:O(b.Pa(),Ut,a),we:(c=b.Gb())&&Ut(a,c)};a&&(e.f=b);return e};d=kv.prototype;d.h=function(){return T(this,Y,1)};d.j=function(a){V(this,1,a)};d.F=function(){this.j(void 0)};d.ga=function(){return U(this,Tr,2)};d.bc=function(a){W(this,2,a)};d.Pa=function(){return U(this,Tt,3)};d.sd=function(a){W(this,3,a)};
d.Gb=function(){return T(this,Tt,4)};d.Cc=function(a){V(this,4,a)};var nv=function(a){N(this,a,0,-1,mv,null)};x(nv,L);var mv=[2,3];nv.prototype.b=function(a){return ov(a,this)};var ov=function(a,b){var c,e={H:(c=b.h())&&Z(a,c),kd:O(b.ga(),Wt,a),Re:O(b.Pa(),iu,a),we:(c=b.Gb())&&iu(a,c)};a&&(e.f=b);return e};d=nv.prototype;d.h=function(){return T(this,Y,1)};d.j=function(a){V(this,1,a)};d.F=function(){this.j(void 0)};d.ga=function(){return U(this,Vt,2)};d.bc=function(a){W(this,2,a)};d.Pa=function(){return U(this,hu,3)};d.sd=function(a){W(this,3,a)};
d.Gb=function(){return T(this,hu,4)};d.Cc=function(a){V(this,4,a)};var qv=function(a){N(this,a,0,-1,pv,null)};x(qv,L);var pv=[2,3];qv.prototype.b=function(a){return rv(a,this)};var rv=function(a,b){var c,e={H:(c=b.h())&&Z(a,c),kd:O(b.ga(),as,a),Re:O(b.Pa(),ku,a),we:(c=b.Gb())&&ku(a,c)};a&&(e.f=b);return e};d=qv.prototype;d.h=function(){return T(this,Y,1)};d.j=function(a){V(this,1,a)};d.F=function(){this.j(void 0)};d.ga=function(){return U(this,$r,2)};d.bc=function(a){W(this,2,a)};d.Pa=function(){return U(this,ju,3)};d.sd=function(a){W(this,3,a)};
d.Gb=function(){return T(this,ju,4)};d.Cc=function(a){V(this,4,a)};var sv=function(a){N(this,a,0,-1,null,null)};x(sv,L);sv.prototype.b=function(a){return tv(a,this)};var tv=function(a,b){var c,e={nla:(c=b.qF())&&Ru(a,c),Zma:(c=b.GF())&&lv(a,c),ina:(c=b.LF())&&rv(a,c),Xga:(c=b.GE())&&Ou(a,c),dna:(c=b.IF())&&ov(a,c),cla:(c=b.oF())&&Bu(a,c),sla:(c=b.sF())&&iv(a,c),Gia:(c=b.YE())&&Mu(a,c),hpa:(c=b.YF())&&fv(a,c),$ha:(c=b.RE())&&Eu(a,c),rna:b.JW()};a&&(e.f=b);return e};d=sv.prototype;d.qF=function(){return T(this,Qu,1)};d.GF=function(){return T(this,kv,2)};
d.LF=function(){return T(this,qv,3)};d.GE=function(){return T(this,Nu,4)};d.IF=function(){return T(this,nv,5)};d.oF=function(){return T(this,Au,7)};d.sF=function(){return T(this,hv,8)};d.YE=function(){return T(this,Lu,9)};d.YF=function(){return T(this,ev,10)};d.RE=function(){return T(this,Du,11)};d.MF=function(){return P(this,12)};d.JW=function(){return Ko(this.MF())};var uv=function(a){N(this,a,0,-1,null,null)};x(uv,L);uv.prototype.b=function(a){return vv(a,this)};var vv=function(a,b){var c,e={Iqa:(c=b.tG())&&tu(a,c),notification:(c=b.Vw())&&tv(a,c),yla:(c=b.uF())&&yu(a,c)};a&&(e.f=b);return e};uv.prototype.tG=function(){return T(this,su,1)};uv.prototype.Vw=function(){return T(this,sv,2)};uv.prototype.uF=function(){return T(this,xu,3)};var xv=function(a){N(this,a,"hcbu",-1,wv,null)};x(xv,L);var wv=[1];xv.prototype.b=function(a){var b={Zna:O(this.Ww(),vv,a)};a&&(b.f=this);return b};Uo("hcbu",xv);xv.prototype.Ww=function(){return U(this,uv,1)};var yv=function(a){N(this,a,0,-1,null,null)};x(yv,L);yv.prototype.b=function(a){return zv(a,this)};var zv=function(a,b){var c={Fma:R(b,1,"")};a&&(c.f=b);return c};var Av=function(a){N(this,a,0,-1,null,null)};x(Av,L);Av.prototype.b=function(a){return Bv(a,this)};var Bv=function(a,b){var c,e={X:R(b,1,""),sessionId:R(b,2,""),Lna:R(b,3,""),resolution:R(b,4,0),doa:R(b,5,0),Kra:(c=b.JY())&&zv(a,c),Kqa:R(b,7,!1),A0:R(b,8,"")};a&&(e.f=b);return e};d=Av.prototype;d.M=function(){return R(this,1,"")};d.I=function(a){S(this,1,a)};d.s=function(){return R(this,2,"")};d.va=function(a){S(this,2,a)};d.uc=function(){return R(this,4,0)};d.Ql=function(a){S(this,4,a)};
d.JY=function(){return T(this,yv,6)};d.LL=function(a){S(this,8,a)};var Cv=function(a){N(this,a,0,-1,null,null)};x(Cv,L);Cv.prototype.b=function(a){return Dv(a,this)};var Dv=function(a,b){var c={X:R(b,1,""),sessionId:R(b,2,"")};a&&(c.f=b);return c};Cv.prototype.M=function(){return R(this,1,"")};Cv.prototype.I=function(a){S(this,1,a)};Cv.prototype.s=function(){return R(this,2,"")};Cv.prototype.va=function(a){S(this,2,a)};var Ev=function(a){N(this,a,0,-1,null,null)};x(Ev,L);Ev.prototype.b=function(a){return Fv(a,this)};var Fv=function(a,b){var c={version:R(b,1,0)};a&&(c.f=b);return c},Gv=function(a,b){for(;b.Zb()&&!b.ic();)switch(b.jb){case 1:var c=b.sz();a.setVersion(c);break;default:b.yb()}return a};Ev.prototype.$e=function(){return R(this,1,0)};Ev.prototype.setVersion=function(a){S(this,1,a)};var Iv=function(a){N(this,a,0,-1,Hv,null)};x(Iv,L);var Hv=[2,3];Iv.prototype.b=function(a){return Jv(a,this)};
var Jv=function(a,b){var c,e={H:(c=b.h())&&Fv(a,c),kd:O(b.ga(),Bv,a),Re:O(b.Pa(),Dv,a),we:(c=b.Gb())&&Dv(a,c)};a&&(e.f=b);return e},Kv=function(a,b){for(;b.Zb()&&!b.ic();)switch(b.jb){case 1:var c=new Ev;b.Wa(c,Gv);a.j(c);break;case 2:c=new Av;b.Wa(c,Av.Ym);a.ga().push(c);a.bc(a.ga());break;case 3:c=new Cv;b.Wa(c,Cv.Ym);a.Pa().push(c);a.sd(a.Pa());break;case 4:c=new Cv;b.Wa(c,Cv.Ym);a.Cc(c);break;default:b.yb()}return a};d=Iv.prototype;d.h=function(){return T(this,Ev,1)};
d.j=function(a){V(this,1,a)};d.F=function(){this.j(void 0)};d.ga=function(){return U(this,Av,2)};d.bc=function(a){W(this,2,a)};d.Pa=function(){return U(this,Cv,3)};d.sd=function(a){W(this,3,a)};d.Gb=function(){return T(this,Cv,4)};d.Cc=function(a){V(this,4,a)};var Mv=function(a){N(this,a,0,-1,Lv,null)};x(Mv,L);var Lv=[7,13];Mv.prototype.b=function(a){return Nv(a,this)};
var Nv=function(a,b){var c,e={mna:R(b,1,""),displayName:R(b,2,""),sC:R(b,3,""),Zla:R(b,4,0),joined:R(b,5,!1),XS:R(b,6,""),z0:P(b,7),Yka:R(b,8,!1),oja:R(b,9,!1),pja:R(b,10,""),ER:R(b,11,0),eha:(c=b.eU())&&Ov(a,c),Zoa:P(b,13),fha:(c=b.fU())&&Pv(a,c)};a&&(e.f=b);return e},Uv=function(a,b){for(;b.Zb()&&!b.ic();)switch(b.jb){case 1:var c=b.Ba();a.V8(c);break;case 2:c=b.Ba();a.iA(c);break;case 3:c=b.Ba();a.aA(c);break;case 4:c=b.th();a.E8(c);break;case 5:c=b.Us();a.CL(c);break;case 6:c=b.Ba();a.pL(c);break;
case 7:c=b.Ba();a.Tw().push(c);a.IL(a.Tw());break;case 8:c=b.Us();a.s8(c);break;case 9:c=b.Us();a.S7(c);break;case 10:c=b.Ba();a.T7(c);break;case 11:c=b.th();a.eL(c);break;case 12:c=new Qv;b.Wa(c,Rv);a.g7(c);break;case 13:c=b.MJ();a.P9(c);break;case 14:c=new Sv;b.Wa(c,Tv);a.h7(c);break;default:b.yb()}return a};d=Mv.prototype;d.V8=function(a){S(this,1,a)};d.Mg=function(){return R(this,2,"")};d.iA=function(a){S(this,2,a)};d.aA=function(a){S(this,3,a)};d.E8=function(a){S(this,4,a)};
d.xF=function(){return R(this,5,!1)};d.CL=function(a){S(this,5,a)};d.pL=function(a){S(this,6,a)};d.Tw=function(){return P(this,7)};d.IL=function(a){S(this,7,a||[])};d.s8=function(a){S(this,8,a)};d.S7=function(a){S(this,9,a)};d.T7=function(a){S(this,10,a)};d.eL=function(a){S(this,11,a)};d.eU=function(){return T(this,Qv,12)};d.g7=function(a){V(this,12,a)};d.P9=function(a){S(this,13,a||[])};d.fU=function(){return T(this,Sv,14)};d.h7=function(a){V(this,14,a)};var Qv=function(a){N(this,a,0,-1,null,null)};
x(Qv,L);Qv.prototype.b=function(a){return Ov(a,this)};var Ov=function(a,b){var c={Eha:R(b,1,"")};a&&(c.f=b);return c},Rv=function(a,b){for(;b.Zb()&&!b.ic();)switch(b.jb){case 1:var c=b.Ba();a.r7(c);break;default:b.yb()}return a};Qv.prototype.r7=function(a){S(this,1,a)};var Sv=function(a){N(this,a,0,-1,null,null)};x(Sv,L);Sv.prototype.b=function(a){return Pv(a,this)};
var Pv=function(a,b){var c={Fna:R(b,1,"")};a&&(c.f=b);return c},Tv=function(a,b){for(;b.Zb()&&!b.ic();)switch(b.jb){case 1:var c=b.Ba();a.i9(c);break;default:b.yb()}return a};Sv.prototype.i9=function(a){S(this,1,a)};var Wv=function(a){N(this,a,0,-1,Vv,null)};x(Wv,L);var Vv=[2,3];Wv.prototype.b=function(a){return Xv(a,this)};var Xv=function(a,b){var c,e={H:(c=b.h())&&Fv(a,c),kd:O(b.ga(),Nv,a),Re:P(b,3),we:R(b,4,"")};a&&(e.f=b);return e},Yv=function(a,b){for(;b.Zb()&&!b.ic();)switch(b.jb){case 1:var c=new Ev;b.Wa(c,Gv);a.j(c);break;case 2:c=new Mv;b.Wa(c,Uv);a.ga().push(c);a.bc(a.ga());break;case 3:c=b.Ba();a.Pa().push(c);a.sd(a.Pa());break;case 4:c=b.Ba();a.Cc(c);break;default:b.yb()}return a};d=Wv.prototype;
d.h=function(){return T(this,Ev,1)};d.j=function(a){V(this,1,a)};d.F=function(){this.j(void 0)};d.ga=function(){return U(this,Mv,2)};d.bc=function(a){W(this,2,a)};d.Pa=function(){return P(this,3)};d.sd=function(a){S(this,3,a||[])};d.Gb=function(){return R(this,4,"")};d.Cc=function(a){S(this,4,a)};var Zv=function(a){N(this,a,0,-1,null,null)};x(Zv,L);Zv.prototype.b=function(a){return $v(a,this)};var $v=function(a,b){var c={bqa:P(b,1),Mna:P(b,2)};a&&(c.f=b);return c};Zv.prototype.getSeconds=function(){return P(this,1)};Zv.prototype.setSeconds=function(a){S(this,1,a)};var aw=function(a){N(this,a,0,-1,null,null)};x(aw,L);aw.prototype.b=function(a){return bw(a,this)};var bw=function(a,b){var c,e={ona:R(b,1,""),fqa:R(b,2,""),qia:R(b,3,0),timestamp:(c=b.si())&&$v(a,c),sna:R(b,5,"")};a&&(e.f=b);return e},cw=function(a,b){for(;b.Zb()&&!b.ic();)switch(b.jb){case 1:var c=b.Ba();a.W8(c);break;case 2:c=b.Ba();a.n$(c);break;case 3:c=b.sz();a.C7(c);break;case 4:c=new Zv;b.Wa(c,Zv.Ym);a.Ht(c);break;case 5:c=b.Ba();a.Y8(c);break;default:b.yb()}return a};d=aw.prototype;
d.W8=function(a){S(this,1,a)};d.n$=function(a){S(this,2,a)};d.C7=function(a){S(this,3,a)};d.si=function(){return T(this,Zv,4)};d.Ht=function(a){V(this,4,a)};d.Y8=function(a){S(this,5,a)};var ew=function(a){N(this,a,0,-1,dw,null)};x(ew,L);var dw=[2];ew.prototype.b=function(a){return fw(a,this)};var fw=function(a,b){var c,e={H:(c=b.h())&&Fv(a,c),kd:O(b.ga(),bw,a),we:R(b,3,"")};a&&(e.f=b);return e},gw=function(a,b){for(;b.Zb()&&!b.ic();)switch(b.jb){case 1:var c=new Ev;b.Wa(c,Gv);a.j(c);break;case 2:c=new aw;b.Wa(c,cw);a.ga().push(c);a.bc(a.ga());break;case 3:c=b.Ba();a.Cc(c);break;default:b.yb()}return a};d=ew.prototype;d.h=function(){return T(this,Ev,1)};d.j=function(a){V(this,1,a)};
d.F=function(){this.j(void 0)};d.ga=function(){return U(this,aw,2)};d.bc=function(a){W(this,2,a)};d.Gb=function(){return R(this,3,"")};d.Cc=function(a){S(this,3,a)};var iw=function(a){N(this,a,0,-1,hw,null)};x(iw,L);var hw=[10];iw.prototype.b=function(a){return jw(a,this)};
var jw=function(a,b){var c,e={tpa:R(b,1,""),title:R(b,2,""),R2:R(b,3,""),resolution:R(b,4,0),lqa:R(b,5,0),Eqa:(c=b.jY())&&$v(a,c),Lqa:(c=b.lY())&&$v(a,c),Eja:R(b,9,""),Mia:P(b,10)};a&&(e.f=b);return e},kw=function(a,b){for(;b.Zb()&&!b.ic();)switch(b.jb){case 1:var c=b.Ba();a.V9(c);break;case 2:c=b.Ba();a.setTitle(c);break;case 3:c=b.Ba();a.XL(c);break;case 4:c=b.th();a.Ql(c);break;case 5:c=b.th();a.t$(c);break;case 7:c=new Zv;b.Wa(c,Zv.Ym);a.z$(c);break;case 8:c=new Zv;b.Wa(c,Zv.Ym);a.B$(c);break;
case 9:c=b.Ba();a.Z7(c);break;case 10:c=b.MJ();a.L7(c);break;default:b.yb()}return a};d=iw.prototype;d.V9=function(a){S(this,1,a)};d.getTitle=function(){return R(this,2,"")};d.setTitle=function(a){S(this,2,a)};d.XL=function(a){S(this,3,a)};d.uc=function(){return R(this,4,0)};d.Ql=function(a){S(this,4,a)};d.t$=function(a){S(this,5,a)};d.jY=function(){return T(this,Zv,7)};d.z$=function(a){V(this,7,a)};d.lY=function(){return T(this,Zv,8)};d.B$=function(a){V(this,8,a)};d.Z7=function(a){S(this,9,a)};
d.L7=function(a){S(this,10,a||[])};var mw=function(a){N(this,a,0,-1,lw,null)};x(mw,L);var lw=[2,3];mw.prototype.b=function(a){return nw(a,this)};var nw=function(a,b){var c,e={H:(c=b.h())&&Fv(a,c),kd:O(b.ga(),jw,a),Re:P(b,3),we:R(b,4,"")};a&&(e.f=b);return e},ow=function(a,b){for(;b.Zb()&&!b.ic();)switch(b.jb){case 1:var c=new Ev;b.Wa(c,Gv);a.j(c);break;case 2:c=new iw;b.Wa(c,kw);a.ga().push(c);a.bc(a.ga());break;case 3:c=b.Ba();a.Pa().push(c);a.sd(a.Pa());break;case 4:c=b.Ba();a.Cc(c);break;default:b.yb()}return a};d=mw.prototype;
d.h=function(){return T(this,Ev,1)};d.j=function(a){V(this,1,a)};d.F=function(){this.j(void 0)};d.ga=function(){return U(this,iw,2)};d.bc=function(a){W(this,2,a)};d.Pa=function(){return P(this,3)};d.sd=function(a){S(this,3,a||[])};d.Gb=function(){return R(this,4,"")};d.Cc=function(a){S(this,4,a)};var qw=function(a){N(this,a,0,-1,pw,null)};x(qw,L);var pw=[5];qw.prototype.b=function(a){return rw(a,this)};
var rw=function(a,b){var c,e={A0:R(b,1,""),lna:R(b,2,""),qna:R(b,3,""),Nga:R(b,4,0),Doa:O(b.$w(),sw,a),Mha:(c=b.vU())&&tw(a,c)};a&&(e.f=b);return e},yw=function(a,b){for(;b.Zb()&&!b.ic();)switch(b.jb){case 1:var c=b.Ba();a.LL(c);break;case 2:c=b.Ba();a.U8(c);break;case 3:c=b.Ba();a.X8(c);break;case 4:c=b.th();a.b7(c);break;case 5:c=new uw;b.Wa(c,vw);a.$w().push(c);a.F9(a.$w());break;case 6:c=new ww;b.Wa(c,xw);a.v7(c);break;default:b.yb()}return a};d=qw.prototype;d.LL=function(a){S(this,1,a)};
d.U8=function(a){S(this,2,a)};d.X8=function(a){S(this,3,a)};d.b7=function(a){S(this,4,a)};d.$w=function(){return U(this,uw,5)};d.F9=function(a){W(this,5,a)};d.vU=function(){return T(this,ww,6)};d.v7=function(a){V(this,6,a)};var uw=function(a){N(this,a,0,-1,null,null)};x(uw,L);uw.prototype.b=function(a){return sw(a,this)};
var sw=function(a,b){var c={U3:R(b,1,""),pin:R(b,2,"")};a&&(c.f=b);return c},vw=function(a,b){for(;b.Zb()&&!b.ic();)switch(b.jb){case 1:var c=b.Ba();a.aM(c);break;case 2:c=b.Ba();a.G9(c);break;default:b.yb()}return a};uw.prototype.SF=function(){return R(this,1,"")};uw.prototype.aM=function(a){S(this,1,a)};uw.prototype.G9=function(a){S(this,2,a)};var zw=function(a){N(this,a,0,-1,null,null)};x(zw,L);zw.prototype.b=function(a){return Aw(a,this)};
var Aw=function(a,b){var c={Toa:R(b,1,""),Cha:R(b,2,"")};a&&(c.f=b);return c},Bw=function(a,b){for(;b.Zb()&&!b.ic();)switch(b.jb){case 1:var c=b.Ba();a.M9(c);break;case 2:c=b.Ba();a.q7(c);break;default:b.yb()}return a};zw.prototype.M9=function(a){S(this,1,a)};zw.prototype.q7=function(a){S(this,2,a)};var Cw=function(a){N(this,a,0,-1,null,null)};x(Cw,L);Cw.prototype.b=function(a){return Dw(a,this)};
var Dw=function(a,b){var c={V4:R(b,1,0)};a&&(c.f=b);return c},Ew=function(a,b){for(;b.Zb()&&!b.ic();)switch(b.jb){case 1:var c=b.th();a.gM(c);break;default:b.yb()}return a};Cw.prototype.aG=function(){return R(this,1,0)};Cw.prototype.gM=function(a){S(this,1,a)};var ww=function(a){N(this,a,0,-1,null,null)};x(ww,L);ww.prototype.b=function(a){return tw(a,this)};
var tw=function(a,b){var c,e={e4:(c=b.Bn())&&Aw(a,c),upa:(c=b.BX())&&Dw(a,c),Jha:R(b,3,"")};a&&(e.f=b);return e},xw=function(a,b){for(;b.Zb()&&!b.ic();)switch(b.jb){case 1:var c=new zw;b.Wa(c,Bw);a.sA(c);break;case 2:c=new Cw;b.Wa(c,Ew);a.W9(c);break;case 3:c=b.Ba();a.u7(c);break;default:b.yb()}return a};d=ww.prototype;d.Bn=function(){return T(this,zw,1)};d.sA=function(a){V(this,1,a)};d.BX=function(){return T(this,Cw,2)};d.W9=function(a){V(this,2,a)};d.u7=function(a){S(this,3,a)};var Gw=function(a){N(this,a,0,-1,Fw,null)};x(Gw,L);var Fw=[2];Gw.prototype.b=function(a){return Hw(a,this)};var Hw=function(a,b){var c,e={H:(c=b.h())&&Fv(a,c),kd:O(b.ga(),rw,a),we:R(b,3,"")};a&&(e.f=b);return e},Iw=function(a,b){for(;b.Zb()&&!b.ic();)switch(b.jb){case 1:var c=new Ev;b.Wa(c,Gv);a.j(c);break;case 2:c=new qw;b.Wa(c,yw);a.ga().push(c);a.bc(a.ga());break;case 3:c=b.Ba();a.Cc(c);break;default:b.yb()}return a};d=Gw.prototype;d.h=function(){return T(this,Ev,1)};d.j=function(a){V(this,1,a)};
d.F=function(){this.j(void 0)};d.ga=function(){return U(this,qw,2)};d.bc=function(a){W(this,2,a)};d.Gb=function(){return R(this,3,"")};d.Cc=function(a){S(this,3,a)};var Jw=function(a){N(this,a,0,-1,null,null)};x(Jw,L);d=Jw.prototype;d.b=function(a){var b,c={Aja:(b=this.gF())&&Xv(a,b),tqa:(b=this.pG())&&Hw(a,b),wpa:(b=this.bG())&&nw(a,b),tna:(b=this.MW())&&fw(a,b),uha:(b=this.oU())&&Jv(a,b)};a&&(c.f=this);return c};d.gF=function(){return T(this,Wv,1)};d.X7=function(a){V(this,1,a)};d.pG=function(){return T(this,Gw,2)};d.v$=function(a){V(this,2,a)};d.bG=function(){return T(this,mw,3)};d.X9=function(a){V(this,3,a)};d.MW=function(){return T(this,ew,4)};
d.Z8=function(a){V(this,4,a)};d.oU=function(){return T(this,Iv,5)};d.m7=function(a){V(this,5,a)};var Kw=function(a){for(var b="",c=0,e=!1,f=null,g=0;g<a.length;g++){var k=a[g];if(e)"\\"==f?k=null:'"'==k&&(e=!1);else if('"'==k)e=!0;else if(","==f&&","==k|"]"==k||"["==f&&","==k)b=b+a.substring(c,g)+"null",c=g;f=k}b+=a.substring(c);return JSON.parse(b)};var Lw=function(){K.call(this);this.a=E("realtime.pushnotifications.Dispatcher")};x(Lw,K);
var Mw=[{wc:sv.prototype.GF,eventType:"r"},{wc:sv.prototype.LF,eventType:"t"},{wc:sv.prototype.sF,eventType:"o"},{wc:sv.prototype.qF,eventType:"p"},{wc:sv.prototype.IF,eventType:"s"},{wc:sv.prototype.GE,eventType:"k"},{wc:sv.prototype.oF,eventType:"l"},{wc:sv.prototype.RE,eventType:"m"},{wc:sv.prototype.YF,eventType:"y"},{wc:sv.prototype.YE,eventType:"n"},{wc:sv.prototype.MF,eventType:"u"}],Nw=[{wc:Jw.prototype.gF,eventType:"v"},{wc:Jw.prototype.bG,eventType:"w"},{wc:Jw.prototype.pG,eventType:"x"}];
Lw.prototype.mZ=function(a){a=Kw(a);a=new xv(a);this.SY(a)};Lw.prototype.SY=function(a){a=a.Ww();H(this.a,"handlePushNotification invoked, batch size: "+a.length);z(a,this.VY,this)};
Lw.prototype.VY=function(a){var b=a.Vw(),c,e;if(null!=b)for(a=0;a<Mw.length;a++){if(e=Mw[a].wc.call(b),null!=e)if("u"==Mw[a].eventType){var f,g=new Dp(e);for(f=new Jw;g.Zb()&&!g.ic();)switch(g.jb){case 1:var k=new Wv;g.Wa(k,Yv);f.X7(k);break;case 2:k=new Gw;g.Wa(k,Iw);f.v$(k);break;case 3:k=new mw;g.Wa(k,ow);f.X9(k);break;case 4:k=new ew;g.Wa(k,gw);f.Z8(k);break;case 5:k=new Iv;g.Wa(k,Kv);f.m7(k);break;default:g.yb()}g=Nw;for(k=0;k<Mw.length;k++)if(e=g[k].wc.call(f),null!=e){c=g[k].eventType;break}}else{c=
Mw[a].eventType;break}}else b=a.uF(),null!=b&&(e=b.tF(),null!=e&&(c="q"));null!=e?(H(this.a,"Received notification of type "+c+"."),this.dispatchEvent(new Ow(c,e))):G(this.a,"A batch notification is empty.")};var Ow=function(a,b){J.call(this,a);this.notification=b};x(Ow,J);var Qw=function(a){N(this,a,"chbarp",-1,Pw,null)};x(Qw,L);var Pw=[4];Qw.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),zC:(b=this.mn())&&Qs(a,b),H:(b=this.h())&&Z(a,b),lb:O(this.K(),Qs,a)};a&&(c.f=this);return c};Uo("chbarp",Qw);d=Qw.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.mn=function(){return T(this,Ps,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};d.K=function(){return U(this,Ps,4)};
d.ja=function(a){W(this,4,a)};var Sw=function(a){N(this,a,"chbmrp",-1,Rw,null)};x(Sw,L);var Rw=[4];Sw.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),zC:(b=this.mn())&&Qs(a,b),H:(b=this.h())&&Z(a,b),lb:O(this.K(),Qs,a)};a&&(c.f=this);return c};Uo("chbmrp",Sw);d=Sw.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.mn=function(){return T(this,Ps,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};d.K=function(){return U(this,Ps,4)};
d.ja=function(a){W(this,4,a)};var Tw=function(a){N(this,a,"chbqrp",-1,null,null)};x(Tw,L);Tw.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),zC:(b=this.mn())&&Qs(a,b),H:(b=this.h())&&Z(a,b)};a&&(c.f=this);return c};Uo("chbqrp",Tw);d=Tw.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.mn=function(){return T(this,Ps,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};var Uw=function(a){N(this,a,"chbrrp",-1,null,null)};x(Uw,L);Uw.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),H:(b=this.h())&&Z(a,b)};a&&(c.f=this);return c};Uo("chbrrp",Uw);Uw.prototype.getResponseHeader=function(){return T(this,ir,1)};Uw.prototype.h=function(){return T(this,Y,2)};Uw.prototype.j=function(a){V(this,2,a)};Uw.prototype.F=function(){this.j(void 0)};var Ww=function(a){N(this,a,"chbsrp",-1,Vw,null)};x(Ww,L);var Vw=[2];Ww.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),tha:O(this.nU(),Qs,a),H:(b=this.h())&&Z(a,b)};a&&(c.f=this);return c};Uo("chbsrp",Ww);d=Ww.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.nU=function(){return U(this,Ps,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};var Yw=function(a){N(this,a,0,-1,Xw,null)};x(Yw,L);var Xw=[4];Yw.prototype.b=function(a){return Zw(a,this)};var Zw=function(a,b){var c,e={kb:(c=b.T())&&Pp(a,c),hangout:(c=b.We())&&Pt(a,c),H:(c=b.h())&&Z(a,c),lb:O(b.K(),Pt,a)};a&&(e.f=b);return e};d=Yw.prototype;d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.We=function(){return T(this,Ot,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};
d.K=function(){return U(this,Ot,4)};d.ja=function(a){W(this,4,a)};var $w=function(a){N(this,a,0,-1,null,null)};x($w,L);$w.prototype.b=function(a){return ax(a,this)};var ax=function(a,b){var c,e={Jja:P(b,1),Bla:(c=b.XV())&&bx(a,c)};a&&(e.f=b);return e};$w.prototype.XV=function(){return T(this,cx,2)};var cx=function(a){N(this,a,0,-1,null,null)};x(cx,L);cx.prototype.b=function(a){return bx(a,this)};var bx=function(a,b){var c={Nna:P(b,1),Jla:P(b,2),Oia:P(b,3),ypa:P(b,4),Ula:P(b,5),Hra:R(b,6,99)};a&&(c.f=b);return c};var dx=function(a){N(this,a,0,-1,null,null)};x(dx,L);dx.prototype.b=function(a){return ex(a,this)};var ex=function(a,b){var c,e={Uha:(c=b.AU())&&ax(a,c),qqa:b.dY(),rqa:P(b,3)};a&&(e.f=b);return e};dx.prototype.AU=function(){return T(this,$w,1)};dx.prototype.cY=function(){return P(this,2)};dx.prototype.dY=function(){return Ko(this.cY())};var fx=function(a){N(this,a,0,-1,null,null)};x(fx,L);fx.prototype.b=function(a){return gx(a,this)};var gx=function(a,b){var c,e={kH:R(b,1,0),X:P(b,2),T3:(c=b.Zw())&&ax(a,c),Qla:P(b,4),Pla:P(b,5),Sja:(c=b.rV())&&ex(a,c)};a&&(e.f=b);return e};fx.prototype.M=function(){return P(this,2)};fx.prototype.I=function(a){S(this,2,a)};fx.prototype.Zw=function(){return T(this,$w,3)};fx.prototype.rV=function(){return T(this,dx,6)};var hx=function(a){N(this,a,0,-1,null,null)};x(hx,L);hx.prototype.b=function(a){return ix(a,this)};var ix=function(a,b){var c,e={kb:(c=b.T())&&Pp(a,c),invitation:(c=b.ji())&&gx(a,c),H:(c=b.h())&&Z(a,c)};a&&(e.f=b);return e};d=hx.prototype;d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.ji=function(){return T(this,fx,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};var kx=function(a){N(this,a,0,-1,jx,null)};x(kx,L);var jx=[6];kx.prototype.b=function(a){return lx(a,this)};var lx=function(a,b){var c,e={Mka:P(b,1),nia:P(b,2),lia:P(b,3),T3:(c=b.Zw())&&ax(a,c),mka:P(b,4),Bma:O(b.rW(),mx,a),sja:b.fV()};a&&(e.f=b);return e};kx.prototype.Zw=function(){return T(this,$w,7)};kx.prototype.rW=function(){return U(this,nx,6)};kx.prototype.eV=function(){return P(this,5)};kx.prototype.fV=function(){return Ko(this.eV())};var nx=function(a){N(this,a,0,-1,null,null)};x(nx,L);
nx.prototype.b=function(a){return mx(a,this)};var mx=function(a,b){var c,e={Eoa:(c=b.nX())&&ox(a,c),Tja:(c=b.sV())&&px(a,c),Hna:(c=b.VW())&&qx(a,c)};a&&(e.f=b);return e};nx.prototype.nX=function(){return T(this,rx,1)};nx.prototype.sV=function(){return T(this,sx,2)};nx.prototype.VW=function(){return T(this,tx,3)};var rx=function(a){N(this,a,0,-1,null,null)};x(rx,L);rx.prototype.b=function(a){return ox(a,this)};var ox=function(a,b){var c,e={U3:(c=b.SF())&&ax(a,c)};a&&(e.f=b);return e};
rx.prototype.SF=function(){return T(this,$w,1)};rx.prototype.aM=function(a){V(this,1,a)};var sx=function(a){N(this,a,0,-1,null,null)};x(sx,L);sx.prototype.b=function(a){return px(a,this)};var px=function(a,b){var c={email:P(b,1)};a&&(c.f=b);return c};sx.prototype.getEmail=function(){return P(this,1)};var tx=function(a){N(this,a,0,-1,null,null)};x(tx,L);tx.prototype.b=function(a){return qx(a,this)};var qx=function(a,b){var c={zoa:P(b,1)};a&&(c.f=b);return c};var ux=function(a){N(this,a,0,-1,null,null)};x(ux,L);ux.prototype.b=function(a){return vx(a,this)};var vx=function(a,b){var c={lpa:P(b,1),Spa:P(b,2),Fja:R(b,3,0)};a&&(c.f=b);return c};var xx=function(a){N(this,a,0,-1,wx,null)};x(xx,L);var wx=[2];xx.prototype.b=function(a){return yx(a,this)};var yx=function(a,b){var c,e={k_:(c=b.Qw())&&zx(a,c),coa:P(b,2),displayName:P(b,3),sC:P(b,4)};a&&(e.f=b);return e};xx.prototype.Qw=function(){return T(this,Ax,1)};xx.prototype.Mg=function(){return P(this,3)};xx.prototype.iA=function(a){S(this,3,a)};xx.prototype.aA=function(a){S(this,4,a)};var Ax=function(a){N(this,a,0,-1,null,null)};x(Ax,L);Ax.prototype.b=function(a){return zx(a,this)};
var zx=function(a,b){var c,e={Coa:(c=b.mX())&&Bx(a,c),QR:(c=b.Gw())&&It(a,c)};a&&(e.f=b);return e};Ax.prototype.mX=function(){return T(this,Cx,1)};Ax.prototype.Gw=function(){return T(this,Ht,4)};var Cx=function(a){N(this,a,0,-1,null,null)};x(Cx,L);Cx.prototype.b=function(a){return Bx(a,this)};var Bx=function(a,b){var c={email:P(b,1),PN:P(b,2)};a&&(c.f=b);return c};Cx.prototype.getEmail=function(){return P(this,1)};var Ex=function(a){N(this,a,0,-1,Dx,null)};x(Ex,L);var Dx=[11];Ex.prototype.b=function(a){return Fx(a,this)};var Fx=function(a,b){var c,e={kH:R(b,8,0),X:P(b,1),k_:(c=b.Qw())&&lx(a,c),Kla:O(b.bW(),yx,a),boa:R(b,3,1),Wia:P(b,4),aoa:P(b,6),qja:(c=b.bV())&&vx(a,c),Fra:P(b,9),Ila:P(b,99)};a&&(e.f=b);return e};d=Ex.prototype;d.M=function(){return P(this,1)};d.I=function(a){S(this,1,a)};d.Qw=function(){return T(this,kx,2)};d.bW=function(){return U(this,xx,11)};d.bV=function(){return T(this,ux,7)};var Gx=function(a){N(this,a,0,-1,null,null)};x(Gx,L);Gx.prototype.b=function(a){return Hx(a,this)};var Hx=function(a,b){var c,e={kb:(c=b.T())&&Pp(a,c),invitation:(c=b.ji())&&Fx(a,c),H:(c=b.h())&&Z(a,c)};a&&(e.f=b);return e};d=Gx.prototype;d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.ji=function(){return T(this,Ex,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};var Ix=function(a){N(this,a,0,-1,null,null)};x(Ix,L);Ix.prototype.b=function(a){return Jx(a,this)};var Jx=function(a,b){var c={wla:R(b,3,!1),dja:R(b,4,!1)};a&&(c.f=b);return c};var Lx=function(a){N(this,a,0,-1,Kx,null)};x(Lx,L);var Kx=[6];Lx.prototype.b=function(a){return Mx(a,this)};var Mx=function(a,b){var c,e={kb:(c=b.T())&&Pp(a,c),ro:(c=b.ke())&&At(a,c),Soa:(c=b.rX())&&Jx(a,c),toa:P(b,4),H:(c=b.h())&&Z(a,c),lb:O(b.K(),At,a)};a&&(e.f=b);return e};d=Lx.prototype;d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.ke=function(){return T(this,zt,2)};d.rX=function(){return T(this,Ix,3)};d.h=function(){return T(this,Y,5)};
d.j=function(a){V(this,5,a)};d.F=function(){this.j(void 0)};d.K=function(){return U(this,zt,6)};d.ja=function(a){W(this,6,a)};var Nx=function(a){N(this,a,0,-1,null,null)};x(Nx,L);Nx.prototype.b=function(a){return Ox(a,this)};var Ox=function(a,b){var c,e={kb:(c=b.T())&&Pp(a,c),X:P(b,2),H:(c=b.h())&&Z(a,c)};a&&(e.f=b);return e};d=Nx.prototype;d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.M=function(){return P(this,2)};d.I=function(a){S(this,2,a)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};var Px=function(a){N(this,a,0,-1,null,null)};x(Px,L);Px.prototype.b=function(a){return Qx(a,this)};var Qx=function(a,b){var c,e={kb:(c=b.T())&&Pp(a,c),X:P(b,2),H:(c=b.h())&&Z(a,c)};a&&(e.f=b);return e};d=Px.prototype;d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.M=function(){return P(this,2)};d.I=function(a){S(this,2,a)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};var Rx=function(a){N(this,a,0,-1,null,null)};x(Rx,L);Rx.prototype.b=function(a){return Sx(a,this)};var Sx=function(a,b){var c={name:P(b,1),domain:P(b,2),Kha:P(b,3),dka:P(b,4)};a&&(c.f=b);return c};d=Rx.prototype;d.getName=function(){return P(this,1)};d.Ol=function(a){S(this,1,a)};d.Mf=function(){return P(this,2)};d.Ml=function(a){S(this,2,a)};d.Or=function(){return null!=P(this,2)};var Ux=function(a){N(this,a,0,-1,Tx,null)};x(Ux,L);var Tx=[3];Ux.prototype.b=function(a){return Vx(a,this)};var Vx=function(a,b){var c,e={kb:(c=b.T())&&Pp(a,c),vT:(c=b.Lw())&&Kt(a,c),Lla:O(b.cW(),lx,a),Ina:(c=b.WW())&&Sx(a,c),Rla:R(b,5,!1),mediaType:R(b,6,1),GA:P(b,7),H:(c=b.h())&&Z(a,c)};a&&(e.f=b);return e};d=Ux.prototype;d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.Lw=function(){return T(this,Jt,2)};d.sL=function(a){V(this,2,a)};
d.cW=function(){return U(this,kx,3)};d.WW=function(){return T(this,Rx,4)};d.j9=function(a){V(this,4,a)};d.AL=function(a){S(this,5,a)};d.J=function(){return R(this,6,1)};d.Nb=function(a){S(this,6,a)};d.Af=function(){S(this,6,void 0)};d.h=function(){return T(this,Y,8)};d.j=function(a){V(this,8,a)};d.F=function(){this.j(void 0)};var Xx=function(a){N(this,a,0,-1,Wx,null)};x(Xx,L);var Wx=[4];Xx.prototype.b=function(a){return Yx(a,this)};var Yx=function(a,b){var c,e={kb:(c=b.T())&&Pp(a,c),session:(c=b.me())&&Ur(a,c),H:(c=b.h())&&Z(a,c),lb:O(b.K(),Ur,a)};a&&(e.f=b);return e};d=Xx.prototype;d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.me=function(){return T(this,Tr,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};
d.K=function(){return U(this,Tr,4)};d.ja=function(a){W(this,4,a)};var $x=function(a){N(this,a,0,-1,Zx,null)};x($x,L);var Zx=[4];$x.prototype.b=function(a){return ay(a,this)};var ay=function(a,b){var c,e={kb:(c=b.T())&&Pp(a,c),source:(c=b.ba())&&Wt(a,c),H:(c=b.h())&&Z(a,c),lb:O(b.K(),Wt,a)};a&&(e.f=b);return e};d=$x.prototype;d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.ba=function(){return T(this,Vt,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};
d.K=function(){return U(this,Vt,4)};d.ja=function(a){W(this,4,a)};var by=function(a){N(this,a,0,-1,null,null)};x(by,L);by.prototype.b=function(a){return cy(a,this)};var cy=function(a,b){var c,e={kb:(c=b.T())&&Pp(a,c),X:P(b,2),ra:P(b,3),H:(c=b.h())&&Z(a,c)};a&&(e.f=b);return e};d=by.prototype;d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.M=function(){return P(this,2)};d.I=function(a){S(this,2,a)};d.v=function(){return P(this,3)};d.Ra=function(a){S(this,3,a)};d.h=function(){return T(this,Y,4)};d.j=function(a){V(this,4,a)};d.F=function(){this.j(void 0)};var ey=function(a){N(this,a,0,-1,dy,null)};x(ey,L);var dy=[4];ey.prototype.b=function(a){return fy(a,this)};var fy=function(a,b){var c,e={kb:(c=b.T())&&Pp(a,c),stream:(c=b.Ya())&&as(a,c),H:(c=b.h())&&Z(a,c),lb:O(b.K(),as,a)};a&&(e.f=b);return e};d=ey.prototype;d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.Ya=function(){return T(this,$r,2)};d.kj=function(a){V(this,2,a)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};
d.K=function(){return U(this,$r,4)};d.ja=function(a){W(this,4,a)};var gy=function(a){N(this,a,0,-1,null,null)};x(gy,L);gy.prototype.b=function(a){return hy(a,this)};var hy=function(a,b){var c,e={kb:(c=b.T())&&Pp(a,c),direction:P(b,2),sessionId:P(b,3),X:P(b,4),H:(c=b.h())&&Z(a,c)};a&&(e.f=b);return e};d=gy.prototype;d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.Jc=function(){return P(this,2)};d.Vd=function(a){S(this,2,a)};d.s=function(){return P(this,3)};d.va=function(a){S(this,3,a)};d.M=function(){return P(this,4)};
d.I=function(a){S(this,4,a)};d.h=function(){return T(this,Y,5)};d.j=function(a){V(this,5,a)};d.F=function(){this.j(void 0)};var iy=function(a){N(this,a,0,-1,null,null)};x(iy,L);iy.prototype.b=function(a){return jy(a,this)};var jy=function(a,b){var c,e={jla:(c=b.NV())&&Mx(a,c),Vma:(c=b.yW())&&Yx(a,c),ena:(c=b.GW())&&fy(a,c),gna:(c=b.IW())&&hy(a,c),$ma:(c=b.DW())&&ay(a,c),bna:(c=b.FW())&&cy(a,c),lla:(c=b.PV())&&Ox(a,c),ola:(c=b.QV())&&Qx(a,c),ala:(c=b.FV())&&Zw(a,c),qla:(c=b.RV())&&Vx(a,c),hla:(c=b.KV())&&Hx(a,c),fla:(c=b.HV())&&ix(a,c),Xma:(c=b.AW())&&nr(a,c)};a&&(e.f=b);return e};d=iy.prototype;
d.NV=function(){return T(this,Lx,1)};d.yW=function(){return T(this,Xx,2)};d.GW=function(){return T(this,ey,3)};d.IW=function(){return T(this,gy,4)};d.T8=function(a){V(this,4,a)};d.DW=function(){return T(this,$x,5)};d.FW=function(){return T(this,by,6)};d.S8=function(a){V(this,6,a)};d.PV=function(){return T(this,Nx,7)};d.u8=function(a){V(this,7,a)};d.QV=function(){return T(this,Px,8)};d.v8=function(a){V(this,8,a)};d.FV=function(){return T(this,Yw,9)};d.RV=function(){return T(this,Ux,10)};
d.KV=function(){return T(this,Gx,11)};d.HV=function(){return T(this,hx,12)};d.AW=function(){return T(this,lr,13)};var ky=function(a,b){this.data=a;this.lm=b};ky.prototype.toString=function(){return"[op. result, version: "+this.lm+", resource count: "+this.data.length+"]"};var my=function(a,b,c,e,f){Nd.call(this);this.tI=a;this.EQ=b;this.PX=c||this.QX;this.YK=e||null;this.sU=f||null;this.pu=-1;this.Mb=Te();this.Lo=null;this.UG=!1;this.Vf=0;this.cu=void 0;this.Rb=++ly};x(my,Nd);var ly=0;d=my.prototype;d.BM=function(a){this.pu=a;this.jM()};d.TG=function(){return this.UG};d.cI=function(){this.UG=!0};d.getMethodName=function(){return this.tI};d.bba=function(){return!!this.YK};d.oi=function(){null==this.Lo&&(this.Lo=this.Gq(),this.jM());return this.Lo};
d.qU=function(a){var b=new iy;this.YK.call(b,a);return b};d.NX=function(a){return new ky(this.OX(a),this.HY(a))};d.rU=function(a){return this.sU.call(a)};d.HY=function(a){return va(a.h)&&null!=a.h()?a.h().$e():-1};d.pA=function(a){this.Vf=a};d.vr=function(){return this.Vf};d.yA=function(a){this.cu=a};d.Hr=function(){return this.cu};d.jM=function(){if(null!=this.Lo&&-1!=this.pu){var a=this.Lo;if(va(a.j)){var b=new Y;b.setVersion(this.pu);a.j(b)}else va(a.F)&&a.F()}};
d.toString=function(){return"[Operation id: "+this.Rb+": "+this.tI+", version: "+this.pu+"]"};d.Gq=function(){return this.EQ()};d.OX=function(a){return this.PX(a)};d.QX=function(){return[]};var ny=function(){Ca.call(this)};x(ny,Ca);ny.prototype.message="Operation has already been executed.";ny.prototype.name="AlreadyExecutedError";var oy=function(a){this.mh=a};oy.prototype.pY=rc;oy.prototype.Le=r;oy.prototype.Me=r;oy.prototype.ae=r;var py=function(a){this.mh=a};x(py,oy);py.prototype.Ff=r;py.prototype.Ef=r;var ry=function(a){N(this,a,"carp",-1,qy,null)};x(ry,L);var qy=[2];ry.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),lb:O(this.K(),lt,a)};a&&(c.f=this);return c};Uo("carp",ry);ry.prototype.getResponseHeader=function(){return T(this,ir,1)};ry.prototype.K=function(){return U(this,kt,2)};ry.prototype.ja=function(a){W(this,2,a)};var ty=function(a){N(this,a,"charp",-1,sy,null)};x(ty,L);var sy=[5];ty.prototype.b=function(a){return uy(a,this)};var uy=function(a,b){var c,e={Ja:(c=b.getResponseHeader())&&jr(a,c),hangout:(c=b.We())&&Pt(a,c),GA:P(b,4),H:(c=b.h())&&Z(a,c),lb:O(b.K(),Pt,a)};a&&(e.f=b);return e};Uo("charp",ty);d=ty.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.We=function(){return T(this,Ot,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};
d.K=function(){return U(this,Ot,5)};d.ja=function(a){W(this,5,a)};var vy=function(a){N(this,a,"chpara",-1,null,null)};x(vy,L);vy.prototype.b=function(a){return wy(a,this)};var wy=function(a,b){var c,e={Ja:(c=b.getResponseHeader())&&jr(a,c),invitation:(c=b.ji())&&gx(a,c),H:(c=b.h())&&Z(a,c)};a&&(e.f=b);return e};Uo("chpara",vy);d=vy.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.ji=function(){return T(this,fx,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};var xy=function(a){N(this,a,"chiarp",-1,null,null)};x(xy,L);xy.prototype.b=function(a){return yy(a,this)};var yy=function(a,b){var c,e={Ja:(c=b.getResponseHeader())&&jr(a,c),invitation:(c=b.ji())&&Fx(a,c),errorCode:P(b,3),H:(c=b.h())&&Z(a,c)};a&&(e.f=b);return e};Uo("chiarp",xy);d=xy.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.ji=function(){return T(this,Ex,2)};d.Jw=function(){return P(this,3)};d.h=function(){return T(this,Y,4)};d.j=function(a){V(this,4,a)};d.F=function(){this.j(void 0)};var Ay=function(a){N(this,a,"chparp",-1,zy,null)};x(Ay,L);var zy=[5];Ay.prototype.b=function(a){return By(a,this)};var By=function(a,b){var c,e={Ja:(c=b.getResponseHeader())&&jr(a,c),ro:(c=b.ke())&&At(a,c),H:(c=b.h())&&Z(a,c),errorCode:P(b,4),lb:O(b.K(),At,a)};a&&(e.f=b);return e};Uo("chparp",Ay);d=Ay.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.ke=function(){return T(this,zt,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};
d.Jw=function(){return P(this,4)};d.K=function(){return U(this,zt,5)};d.ja=function(a){W(this,5,a)};var Cy=function(a){N(this,a,0,-1,null,null)};x(Cy,L);Cy.prototype.b=function(a){return Dy(a,this)};var Dy=function(a,b){var c={ra:P(b,1),$J:R(b,2,0)};a&&(c.f=b);return c};Cy.prototype.v=function(){return P(this,1)};Cy.prototype.Ra=function(a){S(this,1,a)};var Fy=function(a){N(this,a,"chpsrp",-1,Ey,null)};x(Fy,L);var Ey=[2,4];Fy.prototype.b=function(a){return Gy(a,this)};var Gy=function(a,b){var c,e={Ja:(c=b.getResponseHeader())&&jr(a,c),P3:O(b.xr(),At,a),H:(c=b.h())&&Z(a,c),Dpa:O(b.HX(),Dy,a)};a&&(e.f=b);return e};Uo("chpsrp",Fy);d=Fy.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.xr=function(){return U(this,zt,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};
d.HX=function(){return U(this,Cy,4)};var Hy=function(a){N(this,a,"chqrp",-1,null,null)};x(Hy,L);Hy.prototype.b=function(a){return Iy(a,this)};var Iy=function(a,b){var c,e={Ja:(c=b.getResponseHeader())&&jr(a,c),hangout:(c=b.We())&&Pt(a,c),H:(c=b.h())&&Z(a,c)};a&&(e.f=b);return e};Uo("chqrp",Hy);d=Hy.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.We=function(){return T(this,Ot,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};var Jy=function(a){N(this,a,"chrrp",-1,null,null)};x(Jy,L);Jy.prototype.b=function(a){return Ky(a,this)};var Ky=function(a,b){var c,e={Ja:(c=b.getResponseHeader())&&jr(a,c),X:P(b,2),errorCode:P(b,3),GA:P(b,4),H:(c=b.h())&&Z(a,c)};a&&(e.f=b);return e};Uo("chrrp",Jy);d=Jy.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.M=function(){return P(this,2)};d.I=function(a){S(this,2,a)};d.Jw=function(){return P(this,3)};d.h=function(){return T(this,Y,5)};d.j=function(a){V(this,5,a)};d.F=function(){this.j(void 0)};var My=function(a){N(this,a,"chsearp",-1,Ly,null)};x(My,L);var Ly=[4];My.prototype.b=function(a){return Ny(a,this)};var Ny=function(a,b){var c,e={Ja:(c=b.getResponseHeader())&&jr(a,c),session:(c=b.me())&&Ur(a,c),H:(c=b.h())&&Z(a,c),lb:O(b.K(),Ur,a)};a&&(e.f=b);return e};Uo("chsearp",My);d=My.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.me=function(){return T(this,Tr,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};
d.K=function(){return U(this,Tr,4)};d.ja=function(a){W(this,4,a)};var Py=function(a){N(this,a,"chsoarp",-1,Oy,null)};x(Py,L);var Oy=[4];Py.prototype.b=function(a){return Qy(a,this)};var Qy=function(a,b){var c,e={Ja:(c=b.getResponseHeader())&&jr(a,c),source:(c=b.ba())&&Wt(a,c),H:(c=b.h())&&Z(a,c),lb:O(b.K(),Wt,a)};a&&(e.f=b);return e};Uo("chsoarp",Py);d=Py.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.ba=function(){return T(this,Vt,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};
d.K=function(){return U(this,Vt,4)};d.ja=function(a){W(this,4,a)};var Sy=function(a){N(this,a,"chsosrp",-1,Ry,null)};x(Sy,L);var Ry=[2];Sy.prototype.b=function(a){return Ty(a,this)};var Ty=function(a,b){var c,e={Ja:(c=b.getResponseHeader())&&jr(a,c),c6:O(b.En(),Wt,a),H:(c=b.h())&&Z(a,c)};a&&(e.f=b);return e};Uo("chsosrp",Sy);d=Sy.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.En=function(){return U(this,Vt,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};var Vy=function(a){N(this,a,"chstarp",-1,Uy,null)};x(Vy,L);var Uy=[4];Vy.prototype.b=function(a){return Wy(a,this)};var Wy=function(a,b){var c,e={Ja:(c=b.getResponseHeader())&&jr(a,c),stream:(c=b.Ya())&&as(a,c),H:(c=b.h())&&Z(a,c),lb:O(b.K(),as,a)};a&&(e.f=b);return e};Uo("chstarp",Vy);d=Vy.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.Ya=function(){return T(this,$r,2)};d.kj=function(a){V(this,2,a)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};
d.K=function(){return U(this,$r,4)};d.ja=function(a){W(this,4,a)};var Yy=function(a){N(this,a,"chstsrp",-1,Xy,null)};x(Yy,L);var Xy=[2];Yy.prototype.b=function(a){return Zy(a,this)};var Zy=function(a,b){var c,e={Ja:(c=b.getResponseHeader())&&jr(a,c),c6:O(b.En(),as,a),H:(c=b.h())&&Z(a,c)};a&&(e.f=b);return e};Uo("chstsrp",Yy);d=Yy.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.En=function(){return U(this,$r,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};var $y=function(a){N(this,a,0,-1,null,null)};x($y,L);$y.prototype.b=function(a){return az(a,this)};var az=function(a,b){var c,e={kla:(c=b.OV())&&By(a,c),Wma:(c=b.zW())&&Ny(a,c),fna:(c=b.HW())&&Wy(a,c),hna:(c=b.KF())&&Zy(a,c),ana:(c=b.EW())&&Qy(a,c),cna:(c=b.HF())&&Ty(a,c),mla:(c=b.pF())&&Gy(a,c),pla:(c=b.rF())&&Iy(a,c),bla:(c=b.GV())&&uy(a,c),rla:(c=b.SV())&&Ky(a,c),ila:(c=b.LV())&&yy(a,c),gla:(c=b.JV())&&wy(a,c),Yma:(c=b.BW())&&Wr(a,c)};a&&(e.f=b);return e};d=$y.prototype;
d.OV=function(){return T(this,Ay,1)};d.zW=function(){return T(this,My,2)};d.HW=function(){return T(this,Vy,3)};d.KF=function(){return T(this,Yy,4)};d.EW=function(){return T(this,Py,5)};d.HF=function(){return T(this,Sy,6)};d.pF=function(){return T(this,Fy,7)};d.rF=function(){return T(this,Hy,8)};d.GV=function(){return T(this,ty,9)};d.SV=function(){return T(this,Jy,10)};d.LV=function(){return T(this,xy,11)};d.JV=function(){return T(this,vy,12)};d.BW=function(){return T(this,Vr,13)};var cz=function(a){N(this,a,0,-1,bz,null)};x(cz,L);var bz=[4];d=cz.prototype;d.b=function(a){var b,c={kb:(b=this.T())&&Pp(a,b),ro:(b=this.ke())&&At(a,b),H:(b=this.h())&&Z(a,b),lb:O(this.K(),At,a)};a&&(c.f=this);return c};d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.ke=function(){return T(this,zt,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};d.K=function(){return U(this,zt,4)};d.ja=function(a){W(this,4,a)};var ez=function(a){N(this,a,"chpmrp",-1,dz,null)};x(ez,L);var dz=[4];ez.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),ro:(b=this.ke())&&At(a,b),H:(b=this.h())&&Z(a,b),lb:O(this.K(),At,a)};a&&(c.f=this);return c};Uo("chpmrp",ez);d=ez.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.ke=function(){return T(this,zt,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};d.K=function(){return U(this,zt,4)};
d.ja=function(a){W(this,4,a)};var fz=function(a){N(this,a,0,-1,null,null)};x(fz,L);d=fz.prototype;d.b=function(a){var b,c={kb:(b=this.T())&&Pp(a,b),X:P(this,2),ra:P(this,3),H:(b=this.h())&&Z(a,b)};a&&(c.f=this);return c};d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.M=function(){return P(this,2)};d.I=function(a){S(this,2,a)};d.v=function(){return P(this,3)};d.Ra=function(a){S(this,3,a)};d.h=function(){return T(this,Y,4)};d.j=function(a){V(this,4,a)};d.F=function(){this.j(void 0)};var gz=function(a){N(this,a,"chpqrp",-1,null,null)};x(gz,L);gz.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),ro:(b=this.ke())&&At(a,b),H:(b=this.h())&&Z(a,b)};a&&(c.f=this);return c};Uo("chpqrp",gz);d=gz.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.ke=function(){return T(this,zt,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};var iz=function(a){N(this,a,0,-1,hz,null)};x(iz,L);var hz=[6,7];d=iz.prototype;d.b=function(a){var b,c={kb:(b=this.T())&&Pp(a,b),X:P(this,2),ra:P(this,3),Bb:P(this,5),H:(b=this.h())&&Z(a,b),Npa:P(this,6),lb:O(this.K(),Et,a)};a&&(c.f=this);return c};d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.M=function(){return P(this,2)};d.I=function(a){S(this,2,a)};d.v=function(){return P(this,3)};d.Ra=function(a){S(this,3,a)};d.yk=function(){return P(this,5)};
d.Xo=function(a){S(this,5,a)};d.h=function(){return T(this,Y,4)};d.j=function(a){V(this,4,a)};d.F=function(){this.j(void 0)};d.K=function(){return U(this,Dt,7)};d.ja=function(a){W(this,7,a)};var jz=function(a){N(this,a,"chprrp",-1,null,null)};x(jz,L);jz.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),H:(b=this.h())&&Z(a,b),$J:P(this,3)};a&&(c.f=this);return c};Uo("chprrp",jz);jz.prototype.getResponseHeader=function(){return T(this,ir,1)};jz.prototype.h=function(){return T(this,Y,2)};jz.prototype.j=function(a){V(this,2,a)};jz.prototype.F=function(){this.j(void 0)};var kz=function(a){this.mh=a};x(kz,py);d=kz.prototype;d.Le=function(a){return new my("hangout_participants/add",function(){var b=new Lx;b.ja(a);return b},function(a){return a.K()})};d.Me=function(a){return new my("hangout_participants/modify",function(){var b=new cz;b.ja(a);return b},function(a){return a.K()})};d.ae=function(a,b){var c=b&&b.jYdIne||0;return new my("hangout_participants/remove",function(){var b=new iz;b.ja(a);b.Xo(c);return b})};
d.Ef=function(a){return new my("hangout_participants/query",function(){var b=new fz;b.I(a.M());b.Ra(a.v());return b},function(a){return[a.ke()]})};d.Ff=function(a){return new my("hangout_participants/search",function(){var b=new Nx;b.I(a.M());return b},function(a){return a.xr()},iy.prototype.u8,$y.prototype.pF)};var mz=function(a){N(this,a,0,-1,lz,null)};x(mz,L);var lz=[4];d=mz.prototype;d.b=function(a){var b,c={kb:(b=this.T())&&Pp(a,b),hangout:(b=this.We())&&Pt(a,b),H:(b=this.h())&&Z(a,b),lb:O(this.K(),Pt,a)};a&&(c.f=this);return c};d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.We=function(){return T(this,Ot,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};d.K=function(){return U(this,Ot,4)};d.ja=function(a){W(this,4,a)};var oz=function(a){N(this,a,"chmrp",-1,nz,null)};x(oz,L);var nz=[4];oz.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),hangout:(b=this.We())&&Pt(a,b),H:(b=this.h())&&Z(a,b),lb:O(this.K(),Pt,a)};a&&(c.f=this);return c};Uo("chmrp",oz);d=oz.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.We=function(){return T(this,Ot,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};d.K=function(){return U(this,Ot,4)};
d.ja=function(a){W(this,4,a)};var pz=function(a){this.mh=a};x(pz,py);d=pz.prototype;d.Le=function(a){return new my("hangouts/add",function(){var b=new Yw;b.ja(a);return b},function(a){return a.K()})};d.Me=function(a){return new my("hangouts/modify",function(){var b=new mz;b.ja(a);return b},function(a){return a.K()})};d.ae=function(){return null};d.Ef=function(a){return new my("hangouts/query",function(){var b=new Px;b.I(a.M());return b},function(a){return[a.We()]},iy.prototype.v8,$y.prototype.rF)};d.Ff=function(a){return this.Ef(a)};var rz=function(a){N(this,a,0,-1,qz,null)};x(rz,L);var qz=[4];d=rz.prototype;d.b=function(a){var b,c={kb:(b=this.T())&&Pp(a,b),session:(b=this.me())&&Ur(a,b),H:(b=this.h())&&Z(a,b),lb:O(this.K(),Ur,a)};a&&(c.f=this);return c};d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.me=function(){return T(this,Tr,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};d.K=function(){return U(this,Tr,4)};d.ja=function(a){W(this,4,a)};var tz=function(a){N(this,a,"chsemrp",-1,sz,null)};x(tz,L);var sz=[4];tz.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),session:(b=this.me())&&Ur(a,b),H:(b=this.h())&&Z(a,b),lb:O(this.K(),Ur,a)};a&&(c.f=this);return c};Uo("chsemrp",tz);d=tz.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.me=function(){return T(this,Tr,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};d.K=function(){return U(this,Tr,4)};
d.ja=function(a){W(this,4,a)};var uz=function(a){this.mh=a};x(uz,oy);uz.prototype.Le=function(a){return new my("media_sessions/add",function(){var b=new Xx;b.ja(a);return b},function(a){return a.K()})};uz.prototype.Me=function(a){return new my("media_sessions/modify",function(){var b=new rz;b.ja(a);return b},function(a){return a.K()})};uz.prototype.ae=function(){return null};var wz=function(a){N(this,a,0,-1,vz,null)};x(wz,L);var vz=[4];d=wz.prototype;d.b=function(a){var b,c={kb:(b=this.T())&&Pp(a,b),source:(b=this.ba())&&Wt(a,b),H:(b=this.h())&&Z(a,b),lb:O(this.K(),Wt,a)};a&&(c.f=this);return c};d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.ba=function(){return T(this,Vt,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};d.K=function(){return U(this,Vt,4)};d.ja=function(a){W(this,4,a)};var yz=function(a){N(this,a,"chsomrp",-1,xz,null)};x(yz,L);var xz=[4];yz.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),source:(b=this.ba())&&Wt(a,b),H:(b=this.h())&&Z(a,b),lb:O(this.K(),Wt,a)};a&&(c.f=this);return c};Uo("chsomrp",yz);d=yz.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.ba=function(){return T(this,Vt,2)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};d.K=function(){return U(this,Vt,4)};
d.ja=function(a){W(this,4,a)};var zz=function(a){N(this,a,0,-1,null,null)};x(zz,L);d=zz.prototype;d.b=function(a){var b,c={kb:(b=this.T())&&Pp(a,b),X:P(this,2),ra:P(this,3),sourceId:P(this,4)};a&&(c.f=this);return c};d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.M=function(){return P(this,2)};d.I=function(a){S(this,2,a)};d.v=function(){return P(this,3)};d.Ra=function(a){S(this,3,a)};d.ya=function(){return P(this,4)};d.hf=function(a){S(this,4,a)};var Az=function(a){N(this,a,"chsoqrp",-1,null,null)};x(Az,L);Az.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),source:(b=this.ba())&&Wt(a,b)};a&&(c.f=this);return c};Uo("chsoqrp",Az);Az.prototype.getResponseHeader=function(){return T(this,ir,1)};Az.prototype.ba=function(){return T(this,Vt,2)};var Bz=function(a){this.mh=a};x(Bz,py);d=Bz.prototype;d.Le=function(a){return new my("media_sources/add",function(){var b=new $x;b.ja(a);return b},function(a){return a.K()})};d.Me=function(a){return new my("media_sources/modify",function(){var b=new wz;b.ja(a);return b},function(a){return a.K()})};d.ae=function(){return null};d.Ef=function(a){return new my("media_sources/query",function(){var b=new zz;b.I(a.M());b.Ra(a.v());b.hf(a.ya());return b},function(a){return[a.ba()]})};
d.Ff=function(a){return new my("media_sources/search",v(function(){var b=new by;b.I(a.M());return b},this),function(a){return a.En()},iy.prototype.S8,$y.prototype.HF)};var Dz=function(a){N(this,a,0,-1,Cz,null)};x(Dz,L);var Cz=[4];d=Dz.prototype;d.b=function(a){var b,c={kb:(b=this.T())&&Pp(a,b),stream:(b=this.Ya())&&as(a,b),H:(b=this.h())&&Z(a,b),lb:O(this.K(),as,a)};a&&(c.f=this);return c};d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.Ya=function(){return T(this,$r,2)};d.kj=function(a){V(this,2,a)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};d.K=function(){return U(this,$r,4)};
d.ja=function(a){W(this,4,a)};var Fz=function(a){N(this,a,"chstmrp",-1,Ez,null)};x(Fz,L);var Ez=[4];Fz.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),stream:(b=this.Ya())&&as(a,b),H:(b=this.h())&&Z(a,b),lb:O(this.K(),as,a)};a&&(c.f=this);return c};Uo("chstmrp",Fz);d=Fz.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.Ya=function(){return T(this,$r,2)};d.kj=function(a){V(this,2,a)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};
d.K=function(){return U(this,$r,4)};d.ja=function(a){W(this,4,a)};var Gz=function(a){N(this,a,0,-1,null,null)};x(Gz,L);d=Gz.prototype;d.b=function(a){var b,c={kb:(b=this.T())&&Pp(a,b),direction:P(this,2),sessionId:P(this,3),bm:P(this,4),X:P(this,5)};a&&(c.f=this);return c};d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.Jc=function(){return P(this,2)};d.Vd=function(a){S(this,2,a)};d.s=function(){return P(this,3)};d.va=function(a){S(this,3,a)};d.gc=function(){return P(this,4)};d.lj=function(a){S(this,4,a)};
d.M=function(){return P(this,5)};d.I=function(a){S(this,5,a)};var Hz=function(a){N(this,a,"chstqrp",-1,null,null)};x(Hz,L);Hz.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),stream:(b=this.Ya())&&as(a,b)};a&&(c.f=this);return c};Uo("chstqrp",Hz);Hz.prototype.getResponseHeader=function(){return T(this,ir,1)};Hz.prototype.Ya=function(){return T(this,$r,2)};Hz.prototype.kj=function(a){V(this,2,a)};var Iz=function(a){this.mh=a};x(Iz,py);d=Iz.prototype;d.Le=function(a){return new my("media_streams/add",function(){var b=new ey;b.ja(a);return b},function(a){return a.K()})};d.Me=function(a){return new my("media_streams/modify",function(){var b=new Dz;b.ja(a);return b},function(a){return a.K()})};d.ae=function(){return null};d.Ef=function(a){return new my("media_streams/query",function(){var b=new Gz;b.I(a.M());b.Vd(a.Jc());b.va(a.s());b.lj(a.gc());return b},function(a){return[a.Ya()]})};
d.Ff=function(a){return new my("media_streams/search",v(function(){var b=new gy;b.I(a.M());b.va(a.s());b.Vd(a.Jc());return b},this),function(a){return a.En()},iy.prototype.T8,$y.prototype.KF)};var Kz=function(a,b,c){return Jz(a,b,[c],new Ks(Vt,[Vt.prototype.M],[Vt.prototype.I],[Vt.prototype.v,Vt.prototype.ya],[Vt.prototype.Ra,Vt.prototype.hf],hu,[hu.prototype.M],[hu.prototype.I],[hu.prototype.v,hu.prototype.ya],[hu.prototype.Ra,hu.prototype.hf]),Bz,"s")},Jz=function(a,b,c,e,f,g){var k=ys.N();f=new f(k.Gk(a,b));g=new As(k.Sg(a,b),g);return new Ds(a,k.tc(a,b),c,e,f,g,k.Ng(a,b))};var Mz=function(){this.mh=new Lz;this.xq=null;this.version=0};x(Mz,py);d=Mz.prototype;d.F7=function(a){this.xq=a};d.nT=function(a){Ee(v(a.Zaa,a))};d.Le=function(a){return this.Rm(0,a)};d.Me=function(a){return this.Rm(1,a)};d.ae=function(a,b){return this.Rm(2,a,b)};d.Ef=function(a){return this.Rm(3,[a])};d.Ff=function(){return this.Rm(4,[])};d.Rm=function(a,b,c){return new Nz(this,a,b,c)};var Lz=function(){K.call(this)};x(Lz,Cs);Lz.prototype.execute=function(a){a.execute()};
var Nz=function(a,b,c){this.hh=a;this.lJ=b;this.jt=c;this.version=null;this.Mb=Te();this.bE=!1};d=Nz.prototype;d.execute=function(){this.bE=!0;this.hh.nT(this)};d.$U=function(){if(!this.hh.xq)return null;switch(this.lJ){case 0:return this.jt;case 1:var a=[];z(this.kE(this.jt),function(b,e){null===b||a.push(this.jt[e])},this);return a;case 2:case 3:var b=this.kE(this.jt);mb(b,sa);return b;case 4:return this.hh.xq.get();default:return null}};d.kE=function(a){return B(a,this.KT,this)};
d.KT=function(a){var b=this.hh.xq;if(!b)return null;var c=b.Fb(a);return eb(b.get(),function(a){return c.equals(b.Fb(a))})};d.Zaa=function(a,b){if(a=a||this.$U()){if(l(b))b>this.hh.version&&(this.hh.version=b);else switch(this.lJ){case 0:case 1:case 2:this.hh.version++}this.Mb.resolve(new ky(a,l(b)?b:this.hh.version))}else this.Mb.reject("Could not perform operation")};d.mw=function(a){this.Mb.reject(a)};d.BM=function(a){this.version=a};d.vr=qc(0);d.pA=n;d.Hr=qc(0);d.yA=n;d.TG=function(){return this.bE};var Oz=function(a,b,c,e){var f=ys.N(),g=new Mz;a=new Ds(a,f.tc(a,b),c,e,g);g.F7(a);return a};var Pz=function(a,b,c,e){K.call(this);this.ia=a;this.Fh=b;this.WZ=c;this.D=l(e)?e:"qa"};x(Pz,K);d=Pz.prototype;d.v=function(){return this.ia};d.ya=function(){return this.Fh};d.getState=function(){return this.D};d.cc=function(a){a!=this.D&&(this.D=a,this.dispatchEvent("z"))};d.getInfo=function(){return this.WZ};d.s=r;var Qz={fea:"IN",$fa:"ST",Zfa:"SD",iea:"IP",PAUSED:"PD",STOPPED:"SP",FINISHED:"FN"},Rz=function(a,b,c){J.call(this,"A");this.state=a;this.Bb=b;this.Fg=c};x(Rz,J);var Sz=function(){K.call(this)};x(Sz,K);d=Sz.prototype;d.oa=function(){return{id:this.s(),isInProgress:"IP"==this.getState(),state:this.getState()}};d.lc=r;d.start=r;d.rb=r;d.$j=r;d.jj=r;d.pause=n;d.resume=n;d.stop=r;d.YB=r;d.yf=r;d.s=r;d.vc=r;d.getState=r;d.Ya=r;d.Cj=r;d.GN=r;d.jE=r;d.va=r;var Tz=function(a,b){J.call(this,"D");this.Mh=pb(a);this.removed=pb(b)};x(Tz,J);var Uz=function(a){J.call(this,"E");this.kR=pb(a)};x(Uz,J);var Vz=function(){this.xJ=null;this.QK=!1;this.$S=this.bT=this.YS=this.ZS=this.HK=!0;this.cT=!1;this.J6=this.JN=this.KN=this.dT=!0};Vz.prototype.oa=function(){return{autoGainControl:this.YS,echoCancellation:this.ZS,highPassFilter:this.$S,inbandFec:this.KN,dtx:this.JN,noiseSuppression:this.bT,preferredSendCodec:this.xJ,sendComfortNoise:this.HK,sendStereo:this.QK,stereoSwapping:this.cT,transientSuppression:this.dT}};Vz.prototype.Z=function(){return Hb(this)};var Wz=function(a,b,c,e,f,g,k,p,q,A,M,Q){this.Mc=a;this.Lv=b;this.jz=c;this.ud=e;this.nz=f;this.Fx=g;this.tb=k;this.gn=p;this.ww=q;this.vy=A;this.Fo=l(M)?M:null;this.Go=l(Q)?Q:null},Xz={oga:"UDP",gga:"TCP",Yfa:"SSLTCP"};d=Wz.prototype;d.Z=function(){return Hb(this)};d.J=function(){return this.Mc};d.Nb=function(a){this.Mc=a};d.hi=function(){return this.Lv};d.mi=function(){return this.jz};d.O=function(){return this.ud};d.Rg=function(){return this.nz};d.Ck=function(){return this.Fx};d.Eb=function(){return this.tb};
d.Ak=function(){return this.ww};d.yn=function(){return this.vy};var Yz=function(a,b){this.es=a;this.Dj=b};Yz.prototype.toString=function(){return this.getKey()+":"+this.hc()};Yz.prototype.Z=function(){return Hb(this)};Yz.prototype.getKey=function(){return this.es};Yz.prototype.hc=function(){return this.Dj};var Zz=function(a,b,c,e,f,g,k){this.Mc=a;this.oh=b;this.Ib=c;this.lq=l(e)?e:null;this.Km=l(f)?f:null;this.Uj=l(g)?g:null;this.Ks=k||[]};d=Zz.prototype;d.oa=function(){return{name:this.getName(),media:this.J(),payload:this.oh,bitrate:this.lq,clockrate:this.Km,channels:this.Uj,params:B(this.An(),function(a){return a.toString()})}};d.Z=function(){return Hb(this)};d.J=function(){return this.Mc};d.getName=function(){return this.Ib};d.An=function(){return pb(this.Ks)};
d.getParam=function(a){var b=db(this.Ks,function(b){return b.getKey()==a});return-1==b?null:this.Ks[b].hc()};d.VN=function(a){var b=this.Z();b.Ks=a;return b};d.tu=function(a,b){var c=this.An();b=new Yz(a,b);var e=db(c,function(b){return b.getKey()==a});-1==e?c.push(b):c[e]=b;return this.VN(c)};d.ny=function(a){return 0==Ha(this.getName(),a)};var $z=function(a){K.call(this);this.Kq=a;this.rB=this.Kq.PE();this.Rv=0;this.qu=!1};x($z,K);$z.prototype.TY=function(a){a=a.Pg();if(null!=a){for(var b=0;b<a.length;++b)if(0==a[b].Jc()&&2==a[b].wn()&&(0==a[b].ti()||0==a[b].ii())){this.N5();return}for(b=0;b<a.length;++b)switch(a[b].Jc()){case 2:this.sR(a[b])}}};$z.prototype.N5=function(){this.rB=this.Kq.PE()};
$z.prototype.sR=function(a){0<this.rB?--this.rB:a.kU()<this.Kq.tW()?this.qu||(++this.Rv,this.Rv>=this.Kq.sW()&&(this.dispatchEvent(new aA(0)),this.qu=!0)):(this.qu&&(this.dispatchEvent(new aA(1)),this.qu=!1),this.Rv=0)};var aA=function(a){J.call(this,"F");this.id=a};x(aA,J);var bA=function(a,b,c,e,f,g,k,p,q,A,M,Q,ca,Vb,Gb,Wb,Kj){this.jm=l(a)?a:!0;this.km=l(b)?b:!0;this.oB=l(c)?c:!0;this.LN=e||!1;this.Kh=null!=f?f:!0;this.NN=g||!1;this.bw=k||!1;this.iC=null!=M?M:!0;this.Ed=p||null;this.hk=q||[];this.Zba=null!=A?A:!0;this.Yh=this.Xh=!1;this.Gv=Q||null;this.pB=l(ca)?ca:!0;this.Ka=Vb||!1;this.qS=!1;this.LM=!0;this.Pj=Gb||new Vz;this.Ep=Wb||!1;this.wo=l(Kj)?Kj:!0;this.nB=!0;this.Yba=this.$P=this.jC=this.IN=!1};d=bA.prototype;
d.oa=function(){return{useAudio:this.jm,useVideo:this.km,useData:this.oB,useLocalCandidates:this.LN,useBundle:this.Kh,useVideoRtx:this.NN,dumpRtpHeaders:this.bw,allowEarlyMedia:this.iC,earlyMediaHangoutId:this.Ed,defaultRequests:this.hk,useStandardIce:this.Zba,debugLogUploadAllowed:this.Xh,debugLogUploadForced:this.Yh,clientResource:this.Gv,useSimulcast:this.pB,useP2P:this.Ka,startMuted:this.LM,useDtls:this.Ep,playAudio:this.wo,useConferenceMode:this.nB,useDetours:this.IN,allowH264:this.jC,allowVP9:this.$P,
useAdaptiveLayering_:this.Yba}};d.Z=function(){return Hb(this)};d.rca=function(a){var b=this.Z();b.km=a;return b};d.oca=function(a){var b=this.Z();b.LN=a;return b};d.YN=function(a){var b=this.Z();b.Kh=a;return b};d.mr=function(){return this.bw};d.hca=function(a){var b=this.Z();b.bw=a;return b};d.SN=function(a){if(this.Xh&&this.Yh)return this;var b=this.Z();b.Xh=a;return b};d.TN=function(){var a=this.Z();a.Yh=!0;return a};d.UN=function(a){var b=this.Z();b.Ed=a;return b};d.je=function(){return this.hk};
d.Hp=function(a){var b=this.Z();b.hk=a;return b};d.jd=function(){return this.Gv};d.gca=function(a){var b=this.Z();b.Gv=a;return b};d.qca=function(a){var b=this.Z();b.pB=a;return b};d.pca=function(a){var b=this.Z();b.Ka=a;return b};d.mca=function(a){var b=this.Z();b.LM=a;return b};d.lca=function(a){var b=this.Z();b.wo=a;return b};d.nca=function(a){var b=this.Z();b.nB=a;return b};var cA=function(){K.call(this);this.X=this.j5=null};x(cA,K);d=cA.prototype;d.oa=function(){return{hangoutId:this.X,isInProgress:"IP"==this.getState(),remoteJid:this.j5,sessionId:this.s(),state:this.getState()}};d.Xe=r;d.lc=r;d.start=r;d.connect=r;d.rb=n;d.update=function(){return!0};d.pause=r;d.resume=r;d.stop=r;d.Cp=r;d.KK=r;d.vm=r;d.ad=r;d.ue=r;d.yf=n;d.an=r;d.Ya=r;d.tq=r;d.s=r;d.getState=r;d.Wo=r;d.XM=r;d.WM=r;d.I=function(a){this.X=a};var dA=function(a,b){J.call(this,"H");this.Vs=a;this.Ws=b};
x(dA,J);var eA=function(a){J.call(this,"J");this.Hm=a};x(eA,J);var fA=function(a){J.call(this,"I");this.message=a};x(fA,J);var gA=function(a){J.call(this,"L");this.Pe=a};x(gA,J);var hA=function(a,b){J.call(this,"K");this.eT=a;this.Bb=b};x(hA,J);var iA=function(a,b){J.call(this,"G");this.ra=a;this.payload=b};x(iA,J);var jA=function(a){J.call(this,"N");this.bs=a};x(jA,J);var kA=function(a,b,c){Pz.call(this,a.v(),a.ya(),a,c);this.sb=b;this.lK=!1};x(kA,Pz);kA.prototype.me=function(){return this.sb};kA.prototype.s=function(){return this.sb.s()};kA.prototype.d$=function(a){a!=this.lK&&(this.lK=a,this.dispatchEvent("O"))};var lA=function(a,b,c){this.Ji=a;this.Gi=b;this.tj=c};lA.prototype.toString=function(){return 0>=this.Ji&&0>=this.Gi&&0>=this.tj?"Unlimited":"Bandwidth limited between "+this.Ji+" and "+this.Gi+" starting from "+this.tj};var mA=function(a,b,c,e){this.$aa=a;this.L_=b;this.X6=c;this.eba=e},nA={Cca:"AES_CM_128_HMAC_SHA1_32",Dca:"AES_CM_128_HMAC_SHA1_80"};d=mA.prototype;d.Z=function(){return Hb(this)};d.Wg=function(){return this.$aa};d.Ek=function(){return this.L_};d.Gn=function(){return this.X6};d.Jn=function(){return this.eba};var oA=function(a,b,c){this.Xba=a;this.Rb=b;this.Mc=c||void 0};oA.prototype.Z=function(){return Hb(this)};oA.prototype.Mk=function(){return this.Xba};oA.prototype.getId=function(){return this.Rb};oA.prototype.J=function(){return this.Mc};var pA=function(a,b,c,e,f,g){this.Fj=a;this.Jh=b;this.rh=c;this.sk=e||null;this.fR=f||[];this.L0=g||"full"};d=pA.prototype;d.Z=function(){return Hb(this)};d.$e=function(){return this.Fj};d.Kp=function(a){var b=this.Z();b.Jh=a;return b};d.Ip=function(a){var b=this.Z();b.rh=a;return b};d.Ve=function(){return this.sk};d.ica=function(a){var b=this.Z();b.sk=a;return b};d.gi=function(){return pb(this.fR)};var qA=function(a,b,c,e,f,g,k,p){this.ud=a;this.Cf=b;this.fk=c;this.Gl=e;this.Fe=f;this.TM=g||[];this.oI=k||"";this.hk=p||[]};d=qA.prototype;d.oa=function(){return{type:this.O(),mediaId:this.FF(),codecs:B(this.sc(),function(a){return a.oa()}),defaultRequests:B(this.je(),function(a){return a.toString()})}};d.Z=function(){return Hb(this)};d.O=function(){return this.ud};d.sc=function(){return pb(this.Cf)};d.Hj=function(a){var b=this.Z();b.Cf=a;return b};d.Ic=function(){return pb(this.fk)};
d.su=function(a){var b=this.Z();b.fk=a;return b};d.pi=function(){return pb(this.Gl)};d.WN=function(a){var b=this.Z();b.Gl=a;return b};d.Ma=function(){return this.Fe};d.Jp=function(a){var b=this.Z();b.Fe=a;return b};d.Jd=function(){return pb(this.TM)};d.He=function(a){var b=this.Z();b.TM=a;return b};d.FF=function(){if(this.oI)return this.oI;switch(this.ud){case "sa":return"audio";case "ua":return"video";case "ta":return"data";default:return y("No default media ID for unknown type: "+this.ud),""}};
d.je=function(){return pb(this.hk)};d.Hp=function(a){var b=this.Z();b.hk=a;return b};d.ku=function(a,b){var c=this.Jd(),e=yb(b,function(a){return a.gc()});nb(c,function(a){return a.gc()in e});c=ob(c,a);return this.He(c)};d.u5=function(a){return this.t5(function(b){return b.ny(a)})};d.t5=function(a){return this.Hj(ab(this.sc(),tc(a)))};d.BJ=function(a,b){return this.g4(function(b){return b.ny(a)},b)};
d.g4=function(a,b){a=db(this.Cf,a);if(-1==a)return this;var c=this.sc(),e=c[a];null!=b&&(e=b(e));kb(c,a);ib(c,0,0,e);return this.Hj(c)};d.eD=function(a){if(null==a)return this;var b=this.Z(),c=a.sc();0==c.length||(b=b.Hj(c));c=a.Ic();0==c.length||(b=b.su(c));c=a.pi();0==c.length||(b=b.WN(c));c=a.je();0==c.length||(b=b.Hp(c));a.Ma()&&(b=b.Jp(a.Ma()));a=rA(this.Jd(),a.Jd(),function(a){return a.JF()});return b.He(a)};var rA=function(a,b,c){a=yb(a,c);Lb(a,yb(b,c));return Bb(a)};var sA=function(a,b,c,e){this.OC=a;this.cr=b;this.IM=c;this.BH=e};d=sA.prototype;d.toString=function(){return"("+this.BH+": id = "+this.OC+", SSRC = "+this.IM+", format = "+this.cr+")"};d.getChannelId=function(){return this.OC};d.lF=function(){return this.cr};d.Vg=function(){return this.IM};d.zF=function(){return this.BH};var tA=function(a,b,c,e,f,g,k){this.U=a||null;this.wa=b||null;this.Qe=c||null;this.G=l(e)?e:null;this.Kh=!!f;this.yl=g||null;this.jQ=k||null};d=tA.prototype;d.oa=function(){return{sessionId:this.s(),audio:this.U&&this.U.oa(),video:this.wa&&this.wa.oa(),data:this.getData()&&this.getData().oa(),pushChannel:this.yl&&this.yl.toString(),bandwidthConstraints:this.Te()&&this.Te().toString()}};d.Z=function(){return Hb(this)};d.Xd=function(a){var b=this.Z();b.U=a;return b};
d.tg=function(a){var b=this.Z();b.wa=a;return b};d.getData=function(){return this.Qe};d.Ij=function(a){var b=this.Z();b.Qe=a;return b};d.s=function(){return this.G};d.YN=function(a){var b=this.Z();b.Kh=a;return b};d.Te=function(){return this.jQ};d.ku=function(a,b){var c=this.Z();c.U=c.kB(c.U,a,b);c.wa=c.kB(c.wa,a,b);c.Qe=c.kB(c.Qe,a,b);return c};d.kB=function(a,b,c){if(null==a)return null;b=ab(b,function(b){return b.J()==a.O()});c=ab(c,function(b){return b.J()==a.O()});return a.ku(b,c)};
d.B0=function(a){var b=this.U,b=null!=b?b.eD(a.U):a.U,c=this.wa,c=null!=c?c.eD(a.wa):a.wa;return this.Xd(b).tg(c)};d.RZ=function(){var a=this.U&&this.U.Ic()&&0!=this.U.Ic().length,b=this.U&&this.U.Ma()&&null!=this.U.Ma().Ve();b&&(b=2==this.U.Ma().Ve().split(" ").length);return a!=b};var uA=function(a,b){this.z6=a;this.sj=pb(b)};uA.prototype.Fn=function(){return this.z6};uA.prototype.Sc=function(){return pb(this.sj)};var vA=function(a,b,c,e,f,g){this.Mc=a;this.ia=b;this.Fh=c;this.SA=e;this.sj=pb(f);this.yaa=pb(g)};d=vA.prototype;d.toString=function(){return"{participantId: "+this.ia+", mediaType: "+this.Mc+", sourceId: "+this.Fh+", streamId: "+this.SA+", ssrcs: "+this.sj+"}"};d.J=function(){return this.Mc};d.v=function(){return this.ia};d.kca=function(a){var b=Hb(this);b.ia=a;return b};d.ya=function(){return this.Fh};d.pm=function(a){var b=Hb(this);b.Fh=a;return b};d.gc=function(){return this.SA};
d.XN=function(a){var b=Hb(this);b.SA=a;return b};d.Sc=function(){return pb(this.sj)};d.rG=function(){return pb(this.yaa)};d.JF=function(){return this.v().replace(/%/g,"%25").replace(/\//g,"%2F")+"/"+this.gc().replace(/%/g,"%25").replace(/\//g,"%2F")};d.matches=function(a){return this.v()==a.v()&&this.J()==a.J()&&this.ya()==a.ya()&&this.gc()==a.gc()};d.l0=function(a){return this.v()==a.v()&&this.J()==a.O()&&this.ya()==a.getId()};var wA=function(){K.call(this);this.D="IN";this.ai=void 0};x(wA,K);d=wA.prototype;d.oa=function(){return{state:this.getState(),endCause:this.yk(),id:this.s(),isInProgress:"IP"==this.getState(),localId:this.Ea(),localDescription:this.ur().oa(),localSession:this.BF().oa(),options:this.Hd().oa(),remoteAudioCodecs:B(this.dG(),function(a){return a.oa()}),remoteSession:this.Ik().oa(),useEarlyMedia:this.ox()}};d.getState=function(){return this.D};d.ym=r;d.ar=r;d.an=r;
d.A$=function(a,b,c){this.D!=a&&(this.D=a,this.ai=b,this.dispatchEvent(new Rz(a,b,c)))};d.yk=function(){return this.ai};d.lc=r;d.start=r;d.rb=r;d.$j=r;d.pause=r;d.resume=r;d.stop=r;d.ad=r;d.ue=r;d.ur=r;d.Ya=r;d.getRemoteStreams=r;d.Ik=r;d.BF=r;d.Hd=r;d.yf=r;d.s=r;d.Ea=r;d.dG=r;d.Wo=r;d.xN=r;d.ox=r;var xA=function(a){J.call(this,"T");this.Pe=a};x(xA,J);var yA=function(a){J.call(this,"V");this.sessionId=a};x(yA,J);var zA=function(a){J.call(this,"P");this.id=a};x(zA,J);
var AA=function(a){J.call(this,"Q");this.sessionDescription=a};x(AA,J);var BA=function(a,b,c){J.call(this,"Y");this.Wu=a;this.Iz=b;this.sessionId=c||null};x(BA,J);var CA=function(){J.call(this,"W")};x(CA,J);var DA=function(a,b){J.call(this,"S");this.Hm=a;this.sessionId=b};x(DA,J);var EA=function(a){J.call(this,"R");this.sessionId=a};x(EA,J);var FA=function(a,b,c,e,f,g,k){this.ia=a;this.Fh=b;this.Mc=c;this.ve=l(e)?Hb(e):null;this.dr=l(f)?f:null;this.hg=l(g)?g:!0;this.G=l(k)?k:null;this.TB=0;this.sj=[]};d=FA.prototype;d.toString=function(){return"{participantId: "+this.ia+", sourceId: "+this.Fh+", mediaType: "+this.Mc+", resolution: "+(null==this.ve?"":this.ve.width+"x"+this.ve.height)+", frameRate: "+this.dr+", adaptationReason: "+this.TB+", ssrcs: "+this.sj+"}"};d.v=function(){return this.ia};d.J=function(){return this.Mc};d.Ug=function(){return this.hg};
d.ya=function(){return this.Fh};d.uc=function(){return null!=this.ve?Hb(this.ve):null};d.hr=function(){return this.TB};d.Sc=function(){return this.sj};d.s=function(){return this.G};d.pm=function(a){return new FA(this.ia,a,this.Mc,null!=this.ve?this.ve:void 0,null!=this.dr?this.dr:void 0,null!=this.hg?this.hg:void 0,null!=this.G?this.G:void 0)};d.ti=function(){return null!=this.ve?this.ve.width:null};d.ii=function(){return null!=this.ve?this.ve.height:null};d.zk=function(){return this.dr};
d.matches=function(a){return this.v()==a.v()&&this.k0(a)};d.k0=function(a){return this.J()==a.J()&&this.ya()==a.ya()};var GA=function(a,b,c,e){this.left=a;this.top=b;this.width=c;this.height=e};GA.prototype.clone=function(){return new GA(this.left,this.top,this.width,this.height)};GA.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};var HA=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};d=GA.prototype;
d.contains=function(a){return this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};d.getSize=function(){return new dh(this.width,this.height)};d.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
d.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};d.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};d.translate=function(a,b){this.left+=a;u(b)&&(this.top+=b);return this};d.scale=function(a,b){b=u(b)?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var IA=function(a,b,c,e,f,g,k){K.call(this);this.ia=a;this.Rb=b;this.ud=c;this.ed=l(e)?e:"xa";this.D=l(f)?f:"za";this.om=null;this.jI(k||null);this.Mo=l(g)?g:null;this.kT=!1};x(IA,K);d=IA.prototype;d.toString=function(){return"Source(id="+this.Rb+" type="+this.ud+" content="+this.ed+" state="+this.D+" participantId="+this.ia+")"};d.v=function(){return this.ia};d.Ra=function(a){this.ia=a};d.getId=function(){return this.Rb};d.O=function(){return this.ud};d.K7=function(a){this.ed!=a&&(this.ed=a,this.dispatchEvent("Z"))};
d.e$=function(a){this.Mo!=a&&(this.Mo=a,this.dispatchEvent("$"))};d.getState=function(){return this.D};d.cc=function(a){this.D!=a&&(this.D=a,this.dispatchEvent("aa"))};d.CM=function(a){this.jI(a)&&this.dispatchEvent("ba")};d.jI=function(a){var b=null!=this.om&&0!=this.om.length,c=null!=a&&0!=a.length;c?(a=pb(a),tb(a,function(a,b){return a.left-b.left||a.top-b.top||a.width-b.width||a.height-b.height})):a=null;if(b=c!=b||c&&!xb(this.om,a,HA))this.om=a;return b};
d.FG=function(){return null!=this.om?pb(this.om):null};d.dispatchEvent=function(a){return this.kT?!1:IA.S.dispatchEvent.call(this,a)};var JA=function(){this.a=E("realtime.media.apiary.Parser")};d=JA.prototype;d.JQ=function(a,b,c,e){var f=new Vt;f.I(a);f.Ra(b.v());f.hf(b.getId());f.Nb(this.vf(b.O()));a="Aa"==b.getState();f.g9(new au);f.ki().h9(a);"sa"==b.O()?(null!=c&&f.ki().Kl(c),null!=e&&(f.f9(new bu),f.Fk().Kl(e)),null!=b.Mo&&(c=new du,c.bM(b.Mo),c.Kl(b.v()),f.I9(c))):"ua"==b.O()&&(f.R$(new cu),f.Nk().x7(this.sQ(b.ed)),b=b.FG(),null!=b&&f.Nk().z8(B(b,this.PQ,this)));return f};
d.F3=function(a){var b=a.v(),c=a.ya(),e=this.nh(a.J()),f="xa",g;null!=a.Nk()&&(f=this.e3(a.Nk().EU()),g=this.ef(a.Nk().vF(),this.O3,this)||void 0);var k;if(null!=a.ax()){var p=a.ax().TF();k=u(p)?p:void 0}var q=a.ki()&&a.ki().UW()?"Aa":"za",p=null;null!=b&&null!=c&&null!=e&&(p=new IA(b,c,e,null!=f?f:void 0,q,k,g));b=null;null!=a.ki()&&(b=a.ki().xk());c=null;null!=a.Fk()&&(c=a.Fk().xk());return{source:p,Ena:b,Cna:c}};
d.PQ=function(a){var b=new gu;b.T$(a.left);b.U$(a.top);b.oj(a.width);b.ij(a.height);return b};d.O3=function(a){var b=a.LY(),c=a.MY(),e=a.ti();a=a.ii();return null!=b&&null!=c&&null!=e&&null!=a?new GA(b,c,e,a):null};d.sQ=function(a){switch(a){case "va":return 1;case "wa":return 2}G(this.a,"Unknown media content: "+a)};d.e3=function(a){switch(a){case 1:return"va";case 2:return"wa"}G(this.a,"Unknown capture type: "+a);return"xa"};
d.HQ=function(a,b,c,e,f){var g=new Tr;null!=a.s()&&g.va(a.s());g.nj(f?2:1);var k=[];null!=b&&(g.yL([b]),null!=c&&(k=c));b=a.U;null!=b&&(k=k.concat(b.je()));b=a.wa;null!=b&&(k=k.concat(b.je()));b=[];c=[a.U,a.wa,a.getData()];if(a.Kh)a=this.DC(this.SQ(c),k,a.Te()),a.Nb(4),b.push(a);else for(var p=0;p<c.length;p++){var q=c[p];if(null!=q){var A=ab(k,function(a){return a.J()==q.O()}),M="ua"==q.O()?a.Te():null;b.push(this.DC(q,A,M))}}g.dA(b);e&&!f&&(f=[],a=new Qr,a.A7("call/"+e),a.m8(1),a.H8("not_used"),
f.push(a),g.R9(f));return g};
d.Wy=function(a,b){var c=null,e=null,f=null,g=!1,k=l(b)?b:!0;b=a.s();var p=a.jG();if(0<p.length&&4==p[0].J())f=this.qJ(p[0],k),c=this.cB(f,"sa"),e=this.cB(f,"ua"),f=this.cB(f,"ta"),g=!0;else for(var q=0;q<p.length;q++){var A=this.qJ(p[q],k);if(null==A)return F(this.a,"Failed to parse media content in session proto."),null;switch(A.O()){case "sa":c=A;break;case "ua":e=A;break;case "ta":f=A}}a=a.XF();if(1==a.length)var M=new sA(a[0].getChannelId(),a[0].lF(),a[0].Vg(),a[0].zF());return new tA(c,e,f,
null==b?void 0:b,g,M)};d.cB=function(a,b){var c=ab(a.sc(),function(a){return a.J()==b});if(0==c.length)return null;var e=ab(a.pi(),function(a){return a.J()==b}),f=ab(a.je(),function(a){return a.J()==b});return new qA(b,c,a.Ic(),e,a.Ma(),void 0,void 0,f)};d.DC=function(a,b,c){var e=new Or;e.Nb(this.vf(a.O())||void 0);e.E7(B(a.sc(),this.uQ,this));e.gL(B(a.Ic(),this.BC,this));e.h$(B(a.pi(),this.GQ,this));null!=a.Ma()&&e.yM(this.OQ(a.Ma()));null!=c&&e.HL(this.zQ(c));e.R7(B(b,this.CQ,this));return e};
d.CQ=function(a){var b=new Ar;b.mM(a.Ug());var c=new xr;c.ij(a.ii());c.oj(a.ti());c.xL(a.zk());b.Ql(c);c=new Cr;c.D$(b);c.Nb(this.vf(a.J())||void 0);return c};d.zQ=function(a){var b=new or;-1!=a.Ji&&b.NL(a.Ji);-1!=a.Gi&&b.FL(a.Gi);-1!=a.tj&&b.sM(a.tj);return b};d.SQ=function(a){for(var b=[],c=[],e=[],f=0;f<a.length;f++)null!=a[f]&&(b=b.concat(a[f].sc()),c=c.concat(a[f].pi()),e=e.concat(a[f].je()));return a[0].Hj(b).WN(c).Hp(e)};
d.qJ=function(a,b){var c=this.nh(a.J());if(null==c)return null;var e=this.ef(a.XE(),this.Uy,this)||[],f=this.ef(a.aF(),this.Vy,this)||[],g=this.ef(a.hG(),v(function(a){return this.B3(a,c||void 0)},this))||[],k=null,p=a.Ma();null!=p&&(k=this.L3(p,c,b));var q=[];z(a.eF(),function(a){var b=this.nh(a.J());null!=b&&(a=this.pJ(a.vG(),b,"",""),q.push(a))},this);return new qA(c,e,f,g,k,void 0,void 0,q)};
d.vf=function(a){switch(a){case "sa":return 1;case "ua":return 2;case "ta":return 3}G(this.a,"Unknown media type: "+a)};d.nh=function(a,b){switch(a){case 1:return"sa";case 2:return"ua";case 3:return"ta";case 4:return"sa"}if(l(b))return b;G(this.a,"Unknown media type: "+a);return null};d.uQ=function(a){var b=new rr;b.Nb(this.vf(a.J()));b.E9(a.oh);b.Ol(a.getName());b.C9(B(a.An(),function(a){var b=new ur;b.F8(a.getKey());b.EA(a.hc());return b},this));b.l7(a.lq);b.j$(a.Km);b.z7(a.Uj);return b};
d.Uy=function(a){var b=this.nh(a.J());if(null==b)return null;var c=a.jX(),e=a.getName(),f=a.lU(),g=a.ZX(),k=a.GU(),p=B(a.RF(),function(a){var b=a.getKey()||"";a=a.hc()||"";return new Yz(b,a)},this);return null==c||null==e?(G(this.a,"Bad codec: "+a),null):new Zz(b,c,e,null!=f?f:void 0,null!=g?g:void 0,null!=k?k:void 0,p)};d.BC=function(a){var b=this.wQ(a.Wg());if(null==b)return G(this.a,"Unknown crypto suite: "+a.Wg()),null;var c=new vr;c.G$(b);c.G8(a.Ek());c.s$(a.Gn()||void 0);c.I$(a.Jn());return c};
d.Vy=function(a){var b=this.j3(a.Wg());if(null==b)return G(this.a,"Unknown crypto suite: "+a.Wg()),null;var c=a.Ek(),e=a.Gn();return null==c?(G(this.a,"Bad crypto: "+a),null):new mA(b,c,e,1)};d.wQ=function(a){switch(a){case "AES_CM_128_HMAC_SHA1_32":return 2;case "AES_CM_128_HMAC_SHA1_80":return 1}G(this.a,"Unknown crypto suite: "+a);return null};d.j3=function(a){switch(a){case 2:return"AES_CM_128_HMAC_SHA1_32";case 1:return"AES_CM_128_HMAC_SHA1_80"}G(this.a,"Unknown crypto suite: "+a);return null};
d.GQ=function(a){var b=new Er;b.P$(a.Mk());b.yt(a.getId());a=a.J();b.Nb(a?this.vf(a):void 0);return b};d.B3=function(a,b){var c=a.Mk()||"",e=a.getId();b=this.nh(a.J(),b);return null==c||null==e?(G(this.a,"Missing RTP header extension id or uri: "+a),null):new oA(c,e,b)};d.OQ=function(a){var b=new Jr;b.x8(this.yQ(a.$e()));b.zM(a.Jh);b.$L(a.rh);b.dL(B(a.gi(),this.AC,this));var c=a.Ve();c&&(a=new Mr,c=c.split(" "),a.VK(c[0]),a.tL(c[1]),b.oM(a));return b};
d.L3=function(a,b,c){var e=this.u3(a.ZV());if(null==e)return null;c=c&&"ICE"===e?"lite":"full";var f=a.GY()||"",g=a.iX()||"";b=this.d3(a.QE(),b);a=a.qG();var k;a&&(k=a.ZT()+" "+a.Ve());return new pA(e,f,g,k,b,c)};d.d3=function(a,b){return this.ef(a,v(function(a){return this.c3(a,b)},this))||[]};d.AC=function(a){var b=new Gr;b.I7(this.pQ(a.hi()));b.Bt(this.qQ(a.Rg()));b.A8(a.Ck());b.Pl(a.Eb());b.nj(this.rQ(a.O()));b.cM(a.mi());b.q9(a.yn());b.q8(a.Ak());b.Nb(this.vf(a.J()));return b};
d.c3=function(a,b){var c=this.X2(a.hi()),e=a.mi();null!=e||(e=0);var f=this.b3(a.O()),g=this.a3(a.Rg()),k=a.Ck(),p=a.Eb();b=this.nh(a.J(),b);if(null==c||null==f||null==g||null==k||null==p||null==b)return G(this.a,"Missing or unknown candidate parmeters: "+a),null;var q=a.yn()||"";a=a.Ak()||0;return new Wz(b,c,e,f,g,k,p,"",a,q)};d.yQ=function(a){switch(a){case "GICE":return 1;case "ICE":return 2}G(this.a,"Unknown ICE version: "+a)};
d.u3=function(a){switch(a){case 1:return"GICE";case 2:return"ICE"}G(this.a,"Unknown ICE version: "+a);return null};d.pQ=function(a){switch(a){case 1:return 1;case 2:return 2}G(this.a,"Unknown ICE component: "+a)};d.X2=function(a){switch(a){case 1:return 1;case 2:return 2}G(this.a,"Unknown ICE component: "+a);return null};d.qQ=function(a){switch(a){case "UDP":return 1;case "TCP":return 2;case "SSLTCP":return 3}G(this.a,"Unknown candidate protocol: "+a)};
d.a3=function(a){switch(a){case 1:return"UDP";case 2:return"TCP";case 3:return"SSLTCP"}G(this.a,"Unknown candidate protocol: "+a);return null};d.rQ=function(a){switch(a){case "LOCAL":return 1;case "PEER_REFLEX":return 2;case "STUN":return 3;case "RELAY":return 4}G(this.a,"Unknown candidate type: "+a)};d.b3=function(a){switch(a){case 1:return"LOCAL";case 2:return"PEER_REFLEX";case 3:return"STUN";case 4:return"RELAY"}G(this.a,"Unknown ICE type: "+a);return null};
d.MQ=function(a,b,c){var e=new $r;e.Vd(2);null!=a&&e.va(a);e.I(b);e.Ra(c.v());e.Nb(this.vf(c.J()));e.hf(c.ya());e.lj(c.gc());a=new cs;a.ep(c.Sc());a.qM(B(c.rG(),this.KQ,this));e.QL(a);return e};d.I3=function(a){return this.ef(a,this.H3,this)||[]};
d.H3=function(a){var b=this.nh(a.J());if(null==b)return G(this.a,"Unknown stream media type: "+a),null;var c=a.v(),e=a.ya(),f=a.gc();if(null==c||null==e||null==f)return G(this.a,"Missing stream parmeters: "+a),null;var g=[],k=[];a=a.Xe();null!=a&&(g=this.ef(a.ri(),this.ul,this)||[],k=this.ef(a.Fr(),this.Xy,this)||[]);return new vA(b,c,e,f,g,k)};d.ul=function(a){return a>>>0};d.KQ=function(a){var b=new fs;b.lM(a.Fn());b.ep(a.Sc());return b};
d.Xy=function(a){var b=this.ef(a.ri(),this.ul)||[],c=a.Fn();return null==c?(G(this.a,"Unknown ssrc group semantics: "+a),null):new uA(c,b)};d.DQ=function(a,b,c,e){var f=new $r;f.Vd(1);f.va(a);f.I(b);f.Ra(c.v());f.Nb(this.vf(c.J()));f.hf(c.ya());a=new Ar;a.x$(!0);a.mM(e);e=c.uc();null!=e&&(b=new xr,b.ij(e.height),b.oj(e.width),b.xL(c.zk()),a.Ql(b));f.c$(a);return f};d.K3=function(a){return this.ef(a,this.J3,this)||[]};
d.J3=function(a){var b=this.nh(a.J());if(null==b)return G(this.a,"Unknown stream request media type: "+a),null;var c=a.v(),e=a.ya();if(null==c||null==e)return G(this.a,"Missing stream request parmeters: "+a),null;a=a.oi();return this.pJ(a,b,c,e)};d.pJ=function(a,b,c,e){var f=!1,g=void 0,k=void 0;if(null!=a&&a.Ug()&&(f=a.Ug(),null==f&&(f=void 0),null!=a.uc())){var p=a.uc().ti(),q=a.uc().ii(),k=a.uc().BV();null==k&&(k=void 0);null!=p&&null!=q&&(g=new dh(p,q))}return new FA(c,e,b,g,k,f)};
d.ef=function(a,b,c){null!=c&&(b=v(b,c));if(null==a||!ta(a))return null;c=[];for(var e=0;e<a.length;e++){var f=a[e];if(null==f)return G(this.a,"Failed to parse: "+a),null;var g=b(f);if(null==g)return G(this.a,"Failed to parse: "+f),null;c.push(g)}return c};var KA=function(a,b,c){J.call(this,"ca");this.state=b;this.sessionId=c};x(KA,J);var LA=function(a,b,c,e){if(null==a)return e=E("realtime.media.apiary.RpcEventDispatcher"),F(e,"Failed to report impression on RPC request because thenable is null for rpc "+b+"with sessionId "+c),Oe();a=a.then();e.dispatchEvent(new KA(b,"Ba",c));var f=Ze(a.cancel,9E4,a),g=!1;a.Ec(function(a){g=!0;return a}).then(function(a){$e(f);var e="Ca";a instanceof Ie?e="Ea":g&&(e="Da");Fa(Pa(c))&&(1>a.length||!(a[0]instanceof Tr)?c=null:(a=a[0],c=null!=a?a.s():null));this.dispatchEvent(new KA(b,e,c))},null,
e);return a};var MA=function(a,b,c,e,f,g){K.call(this);this.a=E("realtime.media.apiary.RemoteSession");this.g=b.dk("realtime.media.apiary.RemoteSession");this.Ha=a;this.dd=b.dd;this.Bd=c;this.og=this.Uc=this.ia=this.Mi=this.za=this.Zz=this.G=null;this.Cd=e;this.Cd.Zo(8);this.Cd.ap(3E3);this.lf=f;this.aa=g;this.g.info("Creating a new remote session with earlyMediaHangoutId="+g.Ed+" P2P="+g.Ka+" useAudio="+g.jm+" useVideo="+g.km);this.gb=this.jc=null;this.iK=!1;this.B=new Xh(this);this.ha(this.B);this.zc=new JA;
this.D="IN";this.Wh=[];this.Ts=[];this.$f=[];this.zl=[];this.S3=new D;this.ey=new D;this.IH=new D;this.NM=Te();this.kD=Te();this.sE=new Jc;this.Tx=null;vs(a);a.wk(mp).then(function(a){var b=[a.na("mediaSessionStartTime",v(this.sG,this)),a.na("mediaUpStreams",v(this.CY,this)),a.na("mediaDownStreams",v(this.nV,this)),a.na("mediaPerfDataPoint",v(this.lX,this))];this.cC(function(){z(b,a.Dz,a)})},function(a){G(this.a,"Error getting DiagnosticDataService: "+a)},this);this.To=Te();this.To.promise.then(function(){this.Sz()},
null,this)};x(MA,Sz);d=MA.prototype;d.sG=function(){return(new Date(this.XQ)).toString()};d.CY=function(){return null!=this.jc?this.jc.oa():null};d.nV=function(){return null!=this.gb?this.gb.oa():null};d.lX=function(){return null!=this.Tx?this.Tx.cb():null};d.Ob=function(a,b,c){this.D!=a&&(this.g.info("Session "+this.vc()+" state changed from "+this.D+" to "+a),this.D=a,this.dispatchEvent(new Rz(a,b,c)))};d.getState=function(){return this.D};
d.b_=function(a,b){null!=this.jc?F(this.a,"Local streams collection already initiated"):(this.aa.Ka?(H(this.a,"Preparing p2p local streams collection."),this.jc=Oz(this.Ha,this.dd,[b,2,a],lu())):(H(this.a,"Starting normal local streams collection."),this.jc=Jz(this.Ha,this.dd,[b,2,a],lu(),Iz,"t"),this.jc.tc().Zo(8),this.jc.tc().ap(3E3),this.B.listen(this.jc,"h",this.fJ),this.jc.start()),this.B.listen(this.jc,"f",this.O1),this.ha(this.jc))};
d.d4=function(a){null!=this.gb?F(this.a,"Remote streams collection already initiated"):(this.aa.Ka?(H(this.a,"Preparing p2p remote streams collection."),this.gb=Oz(this.Ha,this.dd,[a,1,""],lu())):(H(this.a,"Preparing normal remote streams collection."),this.gb=Jz(this.Ha,this.dd,[a,1,""],lu(),Iz,"t"),this.gb.tc().Zo(8),this.gb.tc().ap(3E3),this.B.listen(this.gb,"h",this.fJ),this.B.listen(this.gb,"g",this.A1)),this.ha(this.gb),this.gb.lc(),this.B.listen(this.gb,"f",this.My))};
d.Iaa=function(a,b){var c=this.gb,e=c.lr();e.va(a);e.I(b);b=c.start(e);this.g_();this.aa.Ka||LA(b,"Fa",a,this).Ec(function(){this.g.error("Stopping session "+this.vc()+" because downstream search failed.");this.stop(16)},this)};d.g_=function(){this.aa.Ka||(null==this.Wh?G(this.a,"Attempting to install collection filters with null participants. setParticipants() must be called prior to this call!"):this.gb.h_(v(function(a){return gb(this.Wh,a.v()||"")},this)))};
d.lc=function(a){if("IN"!=this.D)return!1;this.iK=null!=a;this.d4(a||"");this.Ob("ST");return!0};d.start=function(a){this.va(a);this.Ob("SD");this.NM.resolve();return!0};
d.$j=function(a,b,c,e,f){this.g.info("Attempting to connect session "+this.vc()+" to Hangout: "+a);switch(this.D){case "IN":G(this.a,"Connect to hangout called before starting.");return;case "SP":case "FN":G(this.a,"Connect to hangout called after end.");return}null!=this.za?F(this.a,"Multiple hangouts per RemoteSession not yet supported."):(this.za=a,this.ia=b,this.Uc=c,this.Mi=e,this.og=f,this.XQ=w(),this.GC=this.cN(),this.kD.resolve(),this.NM.promise.then(this.HT,null,this))};
d.HT=function(){this.g.info("Session "+this.vc()+" is started and connected to Hangout: "+this.za+" with participantId: "+this.ia+" and participantLogId: "+this.Uc);this.b_(this.G,this.za);this.ZB(this.G,this.za,this.Ts);hb(this.Ts);this.Iaa(this.G,this.za);0<this.$f.length&&(this.rx(this.$f),hb(this.$f));this.Ob("IP");this.NC([])};
d.jj=function(a){this.Wh=a;null!=this.gb&&this.gb.iB();this.aa.Ka&&this.kD.promise.then(function(){var b=ab(a,function(a){return a!=this.ia},this);if(1!=b.length)1<b.length&&this.stop(51);else{var c=new $r([1,1,this.G,"8579373",this.za,b[0],"1",[[8579373],[]]]),b=new $r([1,2,this.G,"8579374",this.za,b[0],"2",[[8579374,8579375],[["FID",[8579374,8579375]]]]]);this.gb.add(c);this.gb.add(b)}},null,this)};d.rb=function(){this.jc&&this.jc.rb();this.gb&&this.gb.rb()};d.resume=function(){this.ey.clear()};
d.stop=function(a,b){this.g.info("Session "+this.vc()+" stopping because stop was called with endCause: "+a);if("SP"==this.D)return!1;null==this.s()||"ST"!=this.D&&"IP"!=this.D||(Od(this.jc),this.jc=null,Od(this.gb),this.gb=null);this.Ob("SP",a,b);return!0};
d.Cj=function(a){var b=this.s(),c=this.za,e=this.ia,f=this.Uc;null!=b?null!=c?(a.I(c),null!=this.Bd&&a.ye(this.Bd),null!=e&&a.Ra(e),null!=f&&a.Dh(f),a.bA(this.lf.JE()),a.$o(this.lf.li()),a.Et(this.lf.Kk()),this.og&&a.mj(this.og),this.Cd.Cj(a,b)):G(this.a,"UploadLogData before we have a hangoutId."):G(this.a,"UploadLogData before we have a sessionId.")};
d.GN=function(a){var b=this.s(),c=this.za;null!=b?null!=c?(this.Tx=a=this.Eba(a),this.HN(b,c,a)):G(this.a,"Upload log data before we have a hangoutId."):G(this.a,"Upload log data before we have a sessionId.")};d.jE=function(a,b,c){var e=this.s(),f=this.za;null!=e?null!=f?this.HN(e,f,c,a,b).then(function(){this.dispatchEvent("U")},null,this):G(this.a,"Finalize log data uploads before we have a hangoutId."):G(this.a,"Finalize log data uploads before we have a sessionId.")};
d.cN=function(){return window.performance&&window.performance.now?window.performance.now():w()};d.Sz=function(){this.isDisposed()||"SP"==this.D||"FN"==this.D||Ze(function(){var a=this.s();this.Cd.u4(a).then(this.n2,this.m2,this)},1E4,this)};d.n2=function(a){this.isDisposed()||(null!=a?(a=this.zc.Wy(a,!this.aa.Ka),null!=a?(this.dispatchEvent(new AA(a)),this.Sz()):this.g.info("Session "+this.vc()+" could not parse description from session query.")):G(this.a,"Received null session proto."))};
d.m2=function(a){if(!this.isDisposed())switch(a.status){case 4:case 5:case 7:this.stop(15,"ClientResponseStatus: "+a.status+" with desc: "+a.desc);break;case 11:this.stop(41,"ClientResponseStatus: "+a.status+" with desc: "+a.desc);break;default:this.Sz()}};d.Waa=function(a,b){return a.Ug()!=b.Ug()||a.zk()!=b.zk()||this.Q5(a.uc(),b.uc())};d.Q5=function(a,b){return null!=a||null!=b?null!=a&&null!=b?a.width!=b.width||a.height!=b.height:!0:!1};
d.Eba=function(a){null!=a.Pg()&&(a=a.Lm(),z(a.Pg(),function(a){if(2==a.wn()){var b=a.lx()[0]>>>0,e=this.IH.get(b);null!=e&&(a.J8(e.width),a.I8(e.height),I(this.a,"Set last request width/height "+e.width+"/"+e.height+" for ssrc "+b+" in jmidata"))}},this));return a};
d.HN=function(a,b,c,e,f){if(null==c&&null==e)return Oe("Nothing to upload");var g=new Vp;g.tM(this.sG());var k=-2;null!=this.GC&&(k=(this.cN()-this.GC)/1E3,k=Math.round(k));g.cL(k);null!=this.Mi&&g.B9(this.Mi);null!=a&&g.bL(a);null!=e&&g.g8(e);null!=f&&g.wM(f);null!=c&&g.Q7([c]);c=new br;c.aL(g);c.I(b);null!=this.ia&&c.Ra(this.ia);null!=this.Uc&&c.Dh(this.Uc);null!=this.Bd&&c.ye(this.Bd);c.bA(this.lf.JE());c.$o(this.lf.li());c.Et(this.lf.Kk());this.og&&c.mj(this.og);return this.Cd.Cj(c,a)};
d.YB=function(a){switch(this.D){case "IN":case "ST":case "SD":qb(this.Ts,a);return;case "SP":case "FN":G(this.a,"Add local streams called after end.");return}var b=this.s(),c=this.za;null==b?this.g.error("Attempting to add local streams before we have a sessionId."):null!=c?this.ZB(b,c,a):qb(this.Ts,a)};
d.ZB=function(a,b,c){z(c,function(c){c=c.kca(this.ia);var e=this.zc.MQ(a,b,c),e=LA(this.jc.add(e),"Ha",a,this);"ta"!=c.J()&&e.Ec(function(a){this.g.error("Stopping because addLocalStream failed with error: "+a);this.stop(16)},this)},this)};d.s=function(){return this.G};d.va=function(a){this.G!=a&&(this.g.info("Session id changing from "+this.vc()+" to "+(a||"{unset}")),this.G=a,this.To.resolve())};
d.vc=function(){if(null==this.G)return"{unset}";null==this.Zz&&(this.Zz=this.G.substring(0,6)+"{#"+(this.G.length-7)+"}"+this.G.substring(this.G.length-1));return this.Zz};
d.yf=function(a){switch(this.D){case "IN":case "ST":this.zl=ob(a,this.zl);return;case "SP":case "FN":G(this.a,"Change streamrequests called after end.");return}null==this.s()?this.g.error("Ignoring changed stream requests because we don't have a sessionId."):null==this.za?this.g.error("Ignoring changed stream requests because we don't have a hangoutId."):this.NC(a)};
d.NC=function(a){var b=pb(a);z(this.zl,function(a){null!=eb(b,v(a.matches,a),this)||b.push(a)},this);hb(this.zl);var c=this.gb.get();z(b,function(a){var b=fb(c,v(this.A_,this,a),this);if(null!=b){var e=b.gc(),k=this.ey.get(e);null==k||this.Waa(k,a)?(this.jR(b,a),this.ey.set(e,a)):H(this.a,"Skipping stream request because it hasn't changed.")}else this.zl.push(a),H(this.a,"Skipping stream request because no matching streams  were found.")},this)};
d.jR=function(a,b){if("SP"!=this.D&&"FN"!=this.D){this.sE.contains(b.v())&&(b=b.pm(""));var c=a.gc(),e=this.S3.get(c);if(null!=e)e.next=b;else{e=b.Ug();if(!b.uc()||0>=b.uc().height||0>=b.uc().width||0>=b.zk())e=!1;var f=this.s(),e=this.zc.DQ(f,this.za,b,e);e.lj(c);this.g.info("Session "+this.vc()+" sending stream request: "+b.toString()+" with streamId: "+c);e.QL(a.Xe());this.gb.modify(e);b=b.uc();null!=b&&null!=a.Xe()&&null!=a.Xe().ri()&&(a=a.Xe().ri()[0]>>>0,null!=a&&(this.IH.set(a,b),I(this.a,
"Building map: last request width/height "+b.width+"/"+b.height+" for ssrc "+a)))}}};d.A_=function(a,b){return a.v()==b.v()&&this.zc.vf(a.J())==b.J()&&a.ya()==b.ya()};d.My=function(a){null!=a.Mh&&0<a.Mh.length&&this.rx(a.Mh);null!=a.removed&&0<a.removed.length&&this.oZ(a.removed)};
d.A1=function(a){var b=a.Nc?a.Nc.length:0;I(this.a,"Received early streams push notification with "+b+" modified streams");if(this.iK&&0!=b)if("IP"==this.D)this.rx(a.Nc);else if("ST"==this.D||"SD"==this.D)this.$f=ob(this.$f,a.Nc)};
d.rx=function(a){var b=this.sJ(a);null!=b?0==b.length?G(this.a,"Got empty streamInfos: "+a):(a=ab(b,function(a){return a.v()!=this.ia},this),0<this.zl.length&&this.yf([]),z(a,function(a){this.g.info("Session "+this.vc()+" notified of new remote stream: "+a.toString())},this),this.dispatchEvent(new Tz(a,[]))):G(this.a,"Failed to parse streamInfos: "+b)};
d.oZ=function(a){var b=this.sJ(a);null!=b?0==b.length?G(this.a,"Got empty streamInfos: "+a):(z(b,function(a){this.g.info("Session "+this.vc()+" removing remote stream: "+a.toString())},this),this.dispatchEvent(new Tz([],b))):G(this.a,"Failed to parse streamInfos: "+b)};d.sJ=function(a){a=this.zc.I3(a);return a=B(a,function(a){""==a.ya()&&("sa"==a.J()?a=a.pm("1"):"ua"==a.J()?a=a.pm("2"):"ta"==a.J()&&(a=a.pm("3")),this.sE.add(a.v()));return a},this)};
d.O1=function(a){if(ta(a.removed)&&0<a.removed.length)0==this.jc.get().length&&(this.g.info("Session "+this.vc()+" terminating to handle Reflector failover."),this.Ob("SP",26));else if(ta(a.Nc)&&0<a.Nc.length){var b=this.zc.K3(a.Nc);null!=b?0==b.length?G(this.a,"Got empty stream requests: "+a):this.dispatchEvent(new Uz(b)):G(this.a,"Failed to parse stream requests: "+a)}};d.fJ=function(a){this.g.error("Stopping session "+this.s()+" because stream collection failed, with reason: "+a.reason);this.stop(a.Bb)};var NA=function(a){xp.call(this,a)};x(NA,xp);rp(NA,xp);NA.prototype.Fq=function(a,b){var c=this.Xu.dd,e=new Yr(c.vk(),c.jd(),c.Qf(),c.Ye(),void 0,c.rc());a=new MA(a,this.Xu,c.jd(),e,c.Kn(),b);a.ha(e);return a};var OA=function(a){N(this,a,0,-1,null,null)};x(OA,L);OA.prototype.b=function(a){return PA(a,this)};var PA=function(a,b){var c={Zqa:R(b,1,3E4),Ppa:R(b,2,1E3),Yqa:R(b,3,6E4),xra:R(b,4,64),Opa:R(b,5,4),Vqa:R(b,6,3E5),Mma:R(b,7,0),Jpa:R(b,8,6E4),Bka:R(b,9,9E4),Rqa:R(b,11,!1),Aha:R(b,12,1E4)};a&&(c.f=b);return c};d=OA.prototype;d.wG=function(){return R(this,1,3E4)};d.SX=function(){return R(this,2,1E3)};d.rY=function(){return R(this,3,6E4)};d.BG=function(){return R(this,4,64)};
d.RX=function(){return R(this,5,4)};d.nx=function(){return R(this,6,3E5)};d.EF=function(){return R(this,7,0)};d.Zo=function(a){S(this,7,a)};d.eG=function(){return R(this,8,6E4)};d.ap=function(a){S(this,8,a)};d.zV=function(){return R(this,9,9E4)};d.nY=function(){return R(this,11,!1)};var RA=function(a){N(this,a,0,-1,QA,null)};x(RA,L);var QA=[3];RA.prototype.b=function(a){return SA(a,this)};var SA=function(a,b){var c={wna:R(b,1,"3.17.0.0"),qpa:R(b,2,"3.18.0.0"),Yha:O(b.BU(),TA,a)};a&&(c.f=b);return c};RA.prototype.BU=function(){return U(this,UA,3)};var UA=function(a){N(this,a,0,-1,null,null)};x(UA,L);UA.prototype.b=function(a){return TA(a,this)};var TA=function(a,b){var c={zra:P(b,1),name:P(b,2),Mpa:P(b,3),Lpa:P(b,4),Jka:P(b,5)};a&&(c.f=b);return c};
UA.prototype.getName=function(){return P(this,2)};UA.prototype.Ol=function(a){S(this,2,a)};UA.prototype.zk=function(){return P(this,5)};var WA=function(a){N(this,a,"hc:rc",-1,VA,null)};x(WA,L);var VA=[7];WA.prototype.b=function(a){var b={time:P(this,1),Ypa:P(this,2),X:P(this,3),n4:P(this,4),l6:P(this,5),vl:P(this,6),jqa:O(this.Lk(),XA,a),Bb:P(this,8),clientId:P(this,9),em:P(this,10),DR:P(this,11)};a&&(b.f=this);return b};Uo("hc:rc",WA);d=WA.prototype;d.getTime=function(){return P(this,1)};d.setTime=function(a){S(this,1,a)};d.YX=function(){return P(this,2)};d.i$=function(a){S(this,2,a)};d.M=function(){return P(this,3)};
d.I=function(a){S(this,3,a)};d.Qf=function(){return P(this,4)};d.setProperty=function(a){S(this,4,a)};d.Ye=function(){return P(this,5)};d.Dt=function(a){S(this,5,a)};d.Hk=function(){return P(this,6)};d.Dh=function(a){S(this,6,a)};d.Lk=function(){return U(this,YA,7)};d.q$=function(a){W(this,7,a)};d.Sp=function(a,b){var c=YA;Lo(this,c,7);var e=this.Ga[7];e||(e=this.Ga[7]=[]);a=a?a:new c;c=P(this,7);void 0!=b?(e.splice(b,0,a),c.splice(b,0,a.Wd())):(e.push(a),c.push(a.Wd()));return a};
d.yk=function(){return P(this,8)};d.Xo=function(a){S(this,8,a)};d.rc=function(){return P(this,9)};d.ye=function(a){S(this,9,a)};d.xG=function(){return P(this,10)};d.mj=function(a){S(this,10,a)};d.jd=function(){return P(this,11)};d.Ll=function(a){S(this,11,a)};var YA=function(a){N(this,a,0,-1,null,null)};x(YA,L);YA.prototype.b=function(a){return XA(a,this)};var XA=function(a,b){var c={Bpa:P(b,1),localId:P(b,2)};a&&(c.f=b);return c};YA.prototype.ex=function(){return P(this,1)};
YA.prototype.Z9=function(a){S(this,1,a)};YA.prototype.lW=function(){return P(this,2)};YA.prototype.L8=function(a){S(this,2,a)};var $A=function(a){N(this,a,"hc:cc",-1,ZA,null)};x($A,L);var ZA=[14,15];$A.prototype.b=function(a){var b,c={clientId:P(this,1),n4:P(this,2),appName:P(this,3),appVersion:P(this,4),l6:P(this,5),DR:P(this,6),Cra:P(this,7),Y3:P(this,8),gja:Jo(this,9),fja:P(this,10),hja:P(this,11),fra:P(this,12),Eia:(b=this.Fw())&&PA(a,b),gka:P(this,14),yka:P(this,15),n6:P(this,16),Joa:(b=this.UF())&&SA(a,b),Ija:P(this,18),wja:(b=this.fF())&&aB(a,b)};a&&(c.f=this);return c};Uo("hc:cc",$A);d=$A.prototype;
d.rc=function(){return P(this,1)};d.ye=function(a){S(this,1,a)};d.Qf=function(){return P(this,2)};d.setProperty=function(a){S(this,2,a)};d.FE=function(){return P(this,3)};d.WK=function(a){S(this,3,a)};d.aU=function(){return P(this,4)};d.XK=function(a){S(this,4,a)};d.Ye=function(){return P(this,5)};d.Dt=function(a){S(this,5,a)};d.jd=function(){return P(this,6)};d.Ll=function(a){S(this,6,a)};d.Jr=function(){return P(this,7)};d.Q$=function(a){S(this,7,a)};d.li=function(){return P(this,8)};
d.$o=function(a){S(this,8,a)};d.cF=function(){return Jo(this,9)};d.kL=function(a){S(this,9,a)};d.bF=function(){return P(this,10)};d.jL=function(a){S(this,10,a)};d.dF=function(){return P(this,11)};d.lL=function(a){S(this,11,a)};d.yG=function(){return P(this,12)};d.J$=function(a){S(this,12,a)};d.Fw=function(){return T(this,OA,13)};d.G7=function(a){V(this,13,a)};d.Kw=function(){return P(this,14)};d.k8=function(a){S(this,14,a||[])};d.Kk=function(){return P(this,16)};d.Et=function(a){S(this,16,a)};
d.UF=function(){return T(this,RA,17)};d.J9=function(a){V(this,17,a)};d.mr=function(){return P(this,18)};d.a8=function(a){S(this,18,a)};d.fF=function(){return T(this,bB,19)};var bB=function(a){N(this,a,0,-1,null,null)};x(bB,L);bB.prototype.b=function(a){return aB(a,this)};var aB=function(a,b){var c={Dma:R(b,1,6E4),Cma:R(b,2,1),Qha:R(b,3,0)};a&&(c.f=b);return c};bB.prototype.tW=function(){return R(this,1,6E4)};bB.prototype.sW=function(){return R(this,2,1)};
bB.prototype.PE=function(){return R(this,3,0)};var cB=function(a,b,c){this.TQ=a;this.Z3=b;this.o6=c};cB.prototype.JE=function(){return pb(this.TQ)};cB.prototype.li=function(){return this.Z3};cB.prototype.Kk=function(){return this.o6};var dB=function(a){this.Uh=null;this.UZ=!!a};dB.prototype.VC=function(){this.Uh=null};dB.prototype.RG=function(){return!!this.Uh};dB.prototype.Gba=function(a){this.UZ||this.Hba(a)};dB.prototype.Hba=function(a){if(!this.Uh||this.Uh.si()<a.si())this.Uh=a.Lm()};var eB=function(a,b,c,e){this.status=a;this.hT=b;this.Ax=c;this.response=e};eB.prototype.toString=function(){var a="["+this.status+"/"+this.hT;null!=this.Ax&&(a+="/"+this.Ax);null!=this.response&&(a+=": ",a=ua(this.response)?a+Hc(this.response,this.cE,this).join("; "):a+this.cE(this.response));return a+"]"};
eB.prototype.cE=function(a){if(null!=a.error){var b=a.error;a=b.message+" "+b.code;b=b.data||b.errors;null!=b&&(b=Hc(b,function(a){var b=a.domain+" - "+a.reason;null!=a.debugInfo&&(b+=" = "+Va(a.debugInfo,"\n",4).slice(0,3).join(" - "));return b}),Fc(b)||(a+=": "+b.join(", ")));return a}return"Unknown"};var gB=function(){this.No=new fB;this.Dm=new Bs(1E3,36E4);this.Up=0;this.Wm=6E4;this.pq=!1;this.gC=[]};d=gB.prototype;d.toString=function(){return"<# "+this.zh+" to "+this.Ar()+" for "+this.nd+">"};d.Yo=function(a){this.Rx=a;return this};d.rr=function(){return this.Rx||"en"};d.wA=function(a){this.ig=a;return this};d.Ar=function(){return this.ig||""};d.Eh=function(a){this.nd=a;return this};d.mA=function(a){this.$G=a;return this};d.BA=function(a){this.Dp=a;return this};
d.CG=function(){return null!=this.Dp?this.Dp:{}};d.pr=function(){return null!=this.wi?this.wi:{}};d.$E=function(){return null!=this.Mv?this.Mv:"application/json"};d.vt=function(a){this.jv=a;return this};d.bp=function(a){this.ej=a;return this};d.Aw=function(){return this.jv};d.CA=function(a){this.Fp=a;return this};d.px=function(){return null!=this.Fp?this.Fp:!0};d.iM=function(a){this.zh=a;return this};d.hM=function(a){this.Bl=a;return this};d.cG=function(){return null!=this.Bl?this.Bl:0};
d.iL=function(a){this.Wm=a;return this};d.uC=function(){var a=this.Dm.hc(),a=Math.round(.5*a)+Math.floor(Math.random()*a);this.Dm.hq();return Math.min(a+this.Up,36E4)};d.cancel=function(){this.pq=!0;this.bp("c")};d.Lx=function(){return"p"==this.ej};var fB=function(){};fB.prototype.cA=function(a){this.Fm=a;return this};fB.prototype.jA=function(a){this.fw=a;return this};fB.prototype.callback=function(a){this.Fm(a)};fB.prototype.Ca=function(a){this.fw(a)};var hB=function(a,b){K.call(this);this.kl=b;this.a=E("realtime.network.ApiaryClient");a.load(v(this.a1,this),v(this.b1,this));this.E5=0;this.gt=new D;this.ft=new D;H(this.a,"Created apiary client")};x(hB,K);var iB=function(a,b,c,e){var f="\r\n\r\n--"+e+"\r\n";e="\r\n\r\n--"+e+"--\r\n";var g=f+"Content-Type: "+a+"\r\n\r\n"+(b&&!t(b)?b.cb():b);z(c,function(a){g+=f+"Content-Type: "+a.type+"\r\nContent-transfer-encoding: "+a.encoding+"\r\n\r\n"+a.data+"\r\n\r\n"});return g+=e};d=hB.prototype;d.Gd=null;
d.nH=function(){return null!=this.Gd};d.a1=function(a){this.Gd=a;this.dispatchEvent("da");H(this.a,"Apiary client loaded")};d.b1=function(){this.isDisposed()||(this.Gd=null,H(this.a,"Apiary client unloaded"))};d.L=function(){var a=this.gt.ib();z(a,$e);a=this.ft.ib();z(a,$e)};d.request=function(a){this.I5(a)};
d.I5=function(a){if(!this.isDisposed()&&!a.pq)if(this.nH()){a.iM(this.E5++);this.kl&&this.kl.onRequest(a);var b=a.Aw(),c=a.pr(),e=a.CG(),f=a.$E();a.px()&&(e.alt="protojson",f="application/json+protobuf",null!=b&&(b=JSON.parse(b.cb())));var g=a.gC;if(0<g.length){c["MIME-Version"]="1.0";var k="END_OF_PART_"+Ra();c["Content-Type"]='multipart/related; boundary="'+k+'"';b=iB(f,b,g,k)}else null!=b&&(c["Content-Type"]=f);c["Accept-Language"]=a.rr();b={method:a.$G,path:a.nd,params:e,headers:c,body:b};Fa(Pa(a.Ar()))||
(b.root=a.Ar());H(this.a,"Sending request "+a);try{var p=this.Gd.client.request(b);a.bp("p");null!=a.Wm&&this.ft.set(a.zh,Ze(v(this.H5,this,a),a.Wm||void 0));p.execute(v(this.rZ,this,a))}catch(q){F(this.a,"Failed to enqueue request "+lf(b),q),this.Mn(a,new eB("fatal","request_queuing",null,null),null,0)}}else G(this.a,"Request when client is not ready!")};d.H5=function(a){G(this.a,"Request timed out: "+a);this.Mn(a,new eB("retry","deadline_exceeded",null,null),null,0)};
d.rZ=function(a,b,c){if(this.isDisposed()||!a.Lx())this.dK(a);else{var e=null,f="ok",g;this.dK(a);var k=null,p=null;try{var q=kf(c),A=q.gapiRequest.data.body,k=q.gapiRequest.data.headers,e=Kw(A)}catch(M){G(this.a,"Failed to parse the response for request "+a+": "+c,M),g="response_decoding",f="retry"}null!=b&&null!=b.error&&(p=b.error.code,G(this.a,"Request failed: "+a+": "+b.error.code+" - "+b.error.message),g="network_or_frontend",f="retry",400==b.error.code?(g="bad_request",f="fatal"):401==b.error.code?
(g="unauthorized",f="fatal"):402==b.error.code?(g="payment_required",f="fatal"):403==b.error.code&&(g="forbidden",f="fatal"));"ok"==f&&null!=e.error&&(G(this.a,"Server returned an error for request "+a+": "+e.error.code+' "'+e.error.message+'": '+e.error.bka[0].Fg),g="backend",f="retry");"ok"==f&&((b=a.px())&&!ua(e)||!b&&!wa(e))&&(G(this.a,"Apiary returned bad response type for request "+a+": expected "+(b?"Array":"Object")+", received "+ra(e)),g="response_format",f="retry");if("ok"==f&&(a.bp("o"),
a.No.callback(e),"o"!=a.ej))switch(g="response_callback",a.ej){case "r":G(this.a,"Error processing response for request "+a+": should retry.");f="retry";break;case "d":G(this.a,"Fatal error processing response for request "+a);f="fatal";break;default:F(this.a,"Unexpected response state from processing the response for "+a+": "+a.ej)}if("ok"==f)H(this.a,"Response processed successfully for request "+a),this.kl&&this.kl.w2(a,e);else{b=0;if(null!=k&&null!=k["Retry-After"])try{b=1E3*parseInt(k["Retry-After"],
10),b=Math.min(Math.max(b,0),72E5)}catch(M){}this.Mn(a,new eB(f,g,p,e),c,b)}}this.m5(a)};d.dK=function(a){var b=this.gt.get(a.zh);null!=b&&(this.gt.remove(a.zh),$e(b))};d.m5=function(a){var b=this.ft.get(a.zh);null!=b&&(this.ft.remove(a.zh),$e(b))};d.Mn=function(a,b,c,e){this.isDisposed()||!a.Lx()&&"r"!=a.ej||(this.kl&&this.kl.onError(a,b,c),c=a.cG(),"retry"==b.status&&0<c?(H(this.a,"Scheduling retry for request "+a),this.gt.set(a.zh,Ze(v(this.request,this,a),Math.max(a.uC(),e)))):(a.cancel(),a.No.Ca(b)))};var kB=function(){this.No=new jB;this.Dm=new Bs(1E3,36E4);this.Up=0;this.Wm=6E4;this.pq=!1;this.gC=[]};d=kB.prototype;d.Yo=function(a){this.Rx=a;return this};d.rr=function(){return this.Rx||"en"};d.wA=function(a){this.ig=a;return this};d.Ar=function(){return this.ig||""};d.Eh=function(a){this.nd=a;return this};d.mA=function(a){this.$G=a;return this};d.BA=function(a){this.Dp=a;return this};d.CG=function(){return null!=this.Dp?this.Dp:{}};d.pr=function(){return null!=this.wi?this.wi:{}};
d.$E=function(){return null!=this.Mv?this.Mv:"application/json"};d.vt=function(a){this.jv=a;return this};d.bp=function(a){this.ej=a;return this};d.Aw=function(){return this.jv};d.CA=function(a){this.Fp=a;return this};d.px=function(){return null!=this.Fp?this.Fp:!0};d.iM=function(a){this.zh=a;return this};d.hM=function(a){this.Bl=a;return this};d.cG=function(){return null!=this.Bl?this.Bl:0};d.iL=function(a){this.Wm=a;return this};
d.uC=function(){var a=this.Dm.hc(),a=Math.min(a,(36E4-this.Up)/1.5),a=Math.round(.5*a)+Math.floor(Math.random()*a);this.Dm.hq();this.Bl--;return a+this.Up};d.cancel=function(){this.pq=!0;this.bp("c")};d.Lx=function(){return"p"==this.ej};var jB=function(){};jB.prototype.cA=function(a){this.Fm=a;return this};jB.prototype.jA=function(a){this.fw=a;return this};jB.prototype.callback=function(a){this.Fm(a)};jB.prototype.Ca=function(a){this.fw(a)};var lB=function(a,b,c,e,f){K.call(this);this.Bm=b;this.Cm=c;this.ig=f||"https://clients6.google.com";this.qf=e;this.Cd=a;this.Mx=!1;this.a4="POST";this.ps=Te();this.Cd.nH()?this.ps.resolve():this.Cd.ao(this.Mx?"ea":"da",function(){this.ps.resolve()},!1,this)};x(lB,K);d=lB.prototype;d.rr=function(){};d.kr=function(){return this.Cd};
d.request=function(a,b,c,e,f,g,k){this.ps.promise.then(function(){var p=this.Gq().wA(this.ig).Eh("/"+this.Bm+"/"+this.Cm+"/"+a).mA(b).BA(c).CA(!l(k)||k).vt(e),q=Te();q.promise.then(f,g||n);p.No.cA(v(q.resolve,q)).jA(v(q.reject,q));this.Cd.request(p)},null,this)};
d.fl=function(a,b,c,e){var f=Fa(Pa(this.qf))?{}:{key:this.qf};a=this.Gq().wA(this.ig).Eh("/"+this.Bm+"/"+this.Cm+"/"+a).mA(this.a4).BA(f).CA(!0).vt(b);null!=c&&a.iL(c);null!=e&&a.hM(e);c=Te();a.No.cA(v(c.resolve,c)).jA(v(c.reject,c));this.ps.promise.then(v(this.Cd.request,this.Cd,a));return c.promise.then(this.rS,null,this)};d.rS=function(a){a=this.Mx?a.uja:a;if(0<a.length){var b=To[a[0]];if(!b)throw Error("Unknown JsPb message type: "+a[0]);a=new b(a)}else a=null;return a};
d.Gq=function(){return this.Mx?new kB:new gB};var mB=function(a,b,c,e,f,g){lB.call(this,a,b,c,e,f);this.Pm=g||new dB};x(mB,lB);d=mB.prototype;d.YR=function(){return new lB(this.kr(),this.Bm,this.Cm,this.qf,this.ig)};d.fl=function(a,b,c,e,f){f||this.fH(b);return mB.S.fl.call(this,a,b,c,e).then(this.A3,null,this)};d.fH=function(a){if(a&&this.Pm.RG()&&va(a.h)&&va(a.j)){var b=a.h()||new Y;b.lA(this.Pm.Uh);a.j(b)}};d.A3=function(a){va(a.getResponseHeader)&&1==a.getResponseHeader().eb()&&this.jB(a);return a};d.jB=function(a){(a=this.xT(a))&&this.Pm.Gba(a)};
d.xT=function(a){return(a=va(a.h)&&a.h()||null)&&a.or()};d.or=function(){return this.Pm.Uh};d.WC=function(){this.Pm.VC()};
d.sendBeacon=function(a,b){var c;c=this.ig;a="/"+this.Bm+"/"+this.Cm+"/"+a;if(0<=c.indexOf("#")||0<=c.indexOf("?"))throw Error("goog.uri.utils: Fragment or query identifiers are not supported: ["+c+"]");var e=c.length-1;0<=e&&c.indexOf("/",e)==e&&(c=c.substr(0,c.length-1));Da(a,"/")&&(a=a.substr(1));c=Qa(c,"/",a);this.qf&&(c=ef(c,"key",this.qf));this.fH(b);b=b.cb();c=ef(c,encodeURIComponent("$ct"),"application/json+protobuf");if(null==navigator.sendBeacon||!navigator.sendBeacon(c,b)){a=c;var e="POST",
f=b;c=ef(c,encodeURIComponent("$httpMethod"),"POST");c=ef(c,encodeURIComponent("$req"),b);2048>c.length&&(a=c,e="GET",f=null);try{var g=nf.ck();g.open(e,a,!1);g.send(f)}catch(k){g=E("realtime.network.Beacon"),F(g,"Cannot fallback from sendBeacon",k)}}};var oB=function(a,b){$A.call(this,b);if(a instanceof mB)b=a,a=a.YR();else if(a instanceof lB){b=a;var c=new dB;b=new mB(b.kr(),b.Bm,b.Cm,b.qf,b.ig,c)}else a=b=a;this.io=b;this.NY=a;this.Fd=new nB;this.qh=new Lw;null!=this.rc()||this.ye(32);this.setProperty(this.Qf()||"rmjs");this.WK(this.FE()||"Unknown");this.XK(this.aU()||"0.0");null!=this.Ye()||this.Dt(0);this.Ll(this.jd()||this.Qf()+Ra().toUpperCase());this.Q$(this.Jr()||this.jd()+"@fake.com");null!=this.cF()||this.kL(.01);this.jL(this.bF()||null);
this.lL(this.dF()||"//talkgadget.google.com/hangouts/_/mlr/");this.J$(this.yG()||null);this.G7(this.Fw()||new OA);null!=this.li()||this.$o(!1);null!=this.Kk()||this.Et(!1);this.k8(this.Kw()||[]);this.J9(this.UF()||new RA);this.a8(this.mr()||null)};x(oB,$A);var pB=new Yo("CgjDUd");d=oB.prototype;d.register=function(a){a.xh(pB,this);return this};d.Ll=function(a,b){b=b?Ra().toUpperCase():"";oB.S.Ll.call(this,a+b)};d.vk=function(){return this.io};
d.Kn=function(){return new cB(this.Kw(),this.li()||!1,!!this.Kk())};d.Ng=function(){return this.Fd};d.Sg=function(){return this.qh};d.PU=function(){var a=new Gp;a.ye(this.rc());var b=new Ep;b.uA(this.jd());var c=new Op;c.fA(a);c.eA(b);c.Yo("en");c.vA(Xr(this.Ye()));return c};var nB=function(){};nB.prototype.fa=n;var rB=function(a){N(this,a,0,-1,qB,null)};x(rB,L);var qB=[2];d=rB.prototype;d.b=function(a){var b,c={kb:(b=this.T())&&Pp(a,b),gT:O(this.nr(),jy,a),H:(b=this.h())&&Z(a,b)};a&&(c.f=this);return c};d.T=function(){return T(this,Op,1)};d.setRequestHeader=function(a){V(this,1,a)};d.nr=function(){return U(this,iy,2)};d.rL=function(a){W(this,2,a)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};var tB=function(a){N(this,a,"chbrp",-1,sB,null)};x(tB,L);var sB=[2];tB.prototype.b=function(a){var b,c={Ja:(b=this.getResponseHeader())&&jr(a,b),gT:O(this.nr(),az,a),H:(b=this.h())&&Z(a,b)};a&&(c.f=this);return c};Uo("chbrp",tB);d=tB.prototype;d.getResponseHeader=function(){return T(this,ir,1)};d.nr=function(){return U(this,$y,2)};d.rL=function(a){W(this,2,a)};d.h=function(){return T(this,Y,3)};d.j=function(a){V(this,3,a)};d.F=function(){this.j(void 0)};var uB=function(a,b,c,e,f){K.call(this);this.a=E("realtime.collections.apiary.OperationExecutor");this.yg=[];this.Yu=b;this.io=b instanceof mB?b:null;this.Px=a;this.Uc=c||null;this.Bd=l(e)?e:8;this.Qz=Xr(f||0)};x(uB,Cs);d=uB.prototype;d.vk=function(){return this.Yu};d.Dw=function(){var a=new Op;a.fA(new Gp);a.Ew().ye(this.Bd);var b=new Ep;null!=this.Uc&&b.Dh(this.Uc);a.eA(b);a.SE().uA(this.Px);a.Yo("en");a.vA(this.Qz);return a};
d.execute=function(a,b){if(a.TG())throw new ny(a);this.io&&!l(b)&&a.bba()?(this.yg.push(a),1==this.yg.length&&Ee(this.mT,this)):this.aE(a,b)};d.mT=function(){for(var a=0;a+5<this.yg.length;)this.$D(rb(this.yg,a,a+5)),a+=5;1==this.yg.length-a?this.aE(this.yg[a]):this.$D(rb(this.yg,a));this.yg.length=0};
d.aE=function(a,b){var c=a.getMethodName(),e=a.oi();e.setRequestHeader(this.Dw());H(this.a,"Making request for operation: "+a+", jid: "+this.Px);var f=a.vr();b=l(b)?b:a.Hr();this.Yu.fl(c,e,b,f).then(v(this.nJ,this,a)).Ec(v(this.Vq,this,a))};
d.nJ=function(a,b){var c=b.getResponseHeader();if(1==c.eb())b=a.NX(b),H(this.a,"Apiary operation succeeded for "+a+", result: "+b),a.cI(),a.Mb.resolve(b);else{var e=Error(c.oW());e.stack=c.wV();F(this.a,"Apiary operation "+a+" failed with status "+c.eb(),e);this.Vq(a,new eB("fatal","backend",null,b))}};d.Vq=function(a,b){a.cI();F(this.a,"Apiary operation failed for "+a+": "+b);a.Mb.reject(b)};
d.$D=function(a){var b=new rB;b.setRequestHeader(this.Dw());b.rL(B(a,function(a){var b=a.oi();return a.qU(b)},this));H(this.a,"Making bulk request for "+a.length+"operations , jid: "+this.Px);var c=Math.max.apply(null,B(a,function(a){return a.vr()})),e=Math.min.apply(null,B(a,function(a){return a.Hr()}));this.Yu.fl("hangouts/bulk",b,e,c).then(v(this.RQ,this,a)).Ec(v(this.QQ,this,a))};
d.RQ=function(a,b){this.io.jB(b);var c=b.nr();z(a,function(a,f){(f=a.rU(c[f]))?(this.io.jB(f),this.nJ(a,f)):this.Vq(a,new eB("fatal","backend",null,b))},this)};d.QQ=function(a,b){z(a,function(a){this.Vq(a,b)},this)};var vB=function(){this.kw=null};x(vB,zs);rp(vB,zs);vB.prototype.tc=function(a,b){return b.Fw()};vB.prototype.Gk=function(a,b,c){if(c)return new uB(c||b.jd(),b.vk(),void 0,b.rc(),b.Ye());this.kw||(this.kw=new uB(b.jd(),b.vk(),void 0,b.rc(),b.Ye()));return this.kw};vB.prototype.Sg=function(a,b){return b.Sg()};vB.prototype.Ng=function(a,b){return b.Ng()};var wB={Tea:0,Eda:1,Dda:2,qfa:3,ega:4,dga:5,cga:6,SUCCESS:7};var xB=function(a){K.call(this);this.Pb=a;this.dd=null;this.Fv=Te();this.dH=0;this.sT=Te();Re([this.Fv.promise,this.sT.promise]);this.wl=null;xs(this)};x(xB,K);qp(xp,xB);var yB=function(a){a.yi(op)||(op.e9(""),a.xh(op,new xB(a)))};d=xB.prototype;d.Ld=function(a){null==this.wl&&(this.wl=Re([this.ec.Ld(a||{})||Ne(7),this.Fv.promise]).then(function(a){return a[0]}),this.wl.then(this.zt,this.zt,this),this.wl.Ec(v(function(){this.wl=null},this)));return this.wl};
d.zt=function(a){a!=this.dH&&u(a)&&Db(wB,a)&&(this.dH=a,this.dispatchEvent("fa"))};d.Qn=function(){var a=this.ec.Qn();return null!=a?a:!0};d.In=function(){return this.ec.In()||null};d.B7=function(a){this.dd=a;this.Fv.resolve(a);return this};d.Fq=function(a,b){return this.ec.Fq(a,b)};d.Dq=function(a,b,c,e){return this.ec.Dq(a,b,c,e)};d.kK=function(){};d.dk=function(a){return this.ec.dk(a)};var zB=function(a,b){Nd.call(this);this.JD=this.vD=null;this.Hi=b;this.fc=[];this.ZR(a)};x(zB,Nd);d=zB.prototype;d.getObject=function(){return this.fc.length?this.fc.pop():this.Df()};d.Zi=function(a){this.fc.length<this.Hi?this.fc.push(a):this.Zh(a)};d.ZR=function(a){if(a>this.Hi)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");for(var b=0;b<a;b++)this.fc.push(this.Df())};d.Df=function(){return this.vD?this.vD():{}};
d.Zh=function(a){if(this.JD)this.JD(a);else if(wa(a))if(va(a.mb))a.mb();else for(var b in a)delete a[b]};d.L=function(){zB.S.L.call(this);for(var a=this.fc;a.length;)this.Zh(a.pop());delete this.fc};var CB=function(){this.bn=[];this.Ty=new D;this.kN=this.lN=this.mN=this.am=0;this.op=new D;this.fD=this.jN=0;this.nl=1;this.XD=new zB(0,4E3);this.XD.Df=function(){return new AB};this.PM=new zB(0,50);this.PM.Df=function(){return new BB};var a=this;this.Bx=new zB(0,2E3);this.Bx.Df=function(){return String(a.nl++)};this.Bx.Zh=function(){}};CB.prototype.a=E("goog.debug.Trace");var BB=function(){this.qB=this.time=this.count=0};
BB.prototype.toString=function(){var a=[];a.push(this.type," ",this.count," (",Math.round(10*this.time)/10," ms)");this.qB&&a.push(" [VarAlloc = ",this.qB,"]");return a.join("")};var AB=function(){};
AB.prototype.pba=function(a,b,c){var e=[];-1==b?e.push("    "):e.push(DB(this.eventTime-b));e.push(" ",EB(this.eventTime-a));0==this.eventType?e.push(" Start        "):1==this.eventType?(e.push(" Done "),e.push(DB(this.Saa-this.startTime)," ms ")):e.push(" Comment      ");e.push(c,this);0<this.rba&&e.push("[VarAlloc ",this.rba,"] ");return e.join("")};AB.prototype.toString=function(){return null==this.type?this.comment:"["+this.type+"] "+this.comment};
CB.prototype.reset=function(){this.i5();this.Ty.clear();this.am=w();this.fD=this.jN=this.kN=this.lN=this.mN=0;for(var a=this.op.ib(),b=0;b<a.length;b++){var c=this.op.get(a[b]);c.count=0;c.time=0;c.qB=0;this.PM.Zi(c)}this.op.clear()};CB.prototype.i5=function(){for(var a=0;a<this.bn.length;a++){var b=this.bn[a];b.id&&this.Bx.Zi(b.id);this.XD.Zi(b)}this.bn.length=0};
CB.prototype.toString=function(){for(var a=[],b=-1,c=[],e=0;e<this.bn.length;e++){var f=this.bn[e];1==f.eventType&&c.pop();a.push(" ",f.pba(this.am,b,c.join("")));b=f.eventTime;a.push("\n");0==f.eventType&&c.push("|  ")}if(0!=this.Ty.R()){var g=w();a.push(" Unstopped timers:\n");xc(this.Ty,function(b){a.push("  ",b," (",g-b.startTime," ms, started at ",EB(b.startTime),")\n")})}b=this.op.ib();for(e=0;e<b.length;e++)c=this.op.get(b[e]),1<c.count&&a.push(" TOTAL ",c,"\n");a.push("Total tracers created ",
this.jN,"\n","Total comments created ",this.fD,"\n","Overhead start: ",this.mN," ms\n","Overhead end: ",this.lN," ms\n","Overhead comment: ",this.kN," ms\n");return a.join("")};var DB=function(a){a=Math.round(a);var b="";1E3>a&&(b=" ");100>a&&(b="  ");10>a&&(b="   ");return b+a},EB=function(a){a=Math.round(a);return String(100+a/1E3%60).substring(1,3)+"."+String(1E3+a%1E3).substring(1,4)};new CB;E("goog.debug.ErrorReporter");var FB=function(){Nd.call(this)};x(FB,Nd);FB.prototype.a=E("fava.debug.ErrorReporter");FB.prototype.init=function(){};new FB;E("fava.debug.errorContext");(function(){}).prototype.a=E("fava.debug.DebugService");E("chat.common.ErrorHandler");var GB="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;/*


 JavaScript Zlib and Deflate Library

 The MIT License

 Copyright (c) 2011 imaya

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
*/
var HB;for(HB=0;256>HB;++HB)for(var IB=HB,JB=7,IB=IB>>>1;IB;IB>>>=1)--JB;var KB=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,
2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,
2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,
2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,
3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,
936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];GB&&new Uint32Array(KB);/*


 zlib.heap.js

 The MIT License

 Copyright (c) 2011 imaya

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
*/
/*


 JavaScript Inflate Library

 The MIT License

 Copyright (c) 2012 imaya

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
*/
var LB=function(a){var b=a.length,c=0,e=Number.POSITIVE_INFINITY,f,g,k,p,q,A,M,Q,ca;for(Q=0;Q<b;++Q)a[Q]>c&&(c=a[Q]),a[Q]<e&&(e=a[Q]);f=1<<c;g=new (GB?Uint32Array:Array)(f);k=1;p=0;for(q=2;k<=c;){for(Q=0;Q<b;++Q)if(a[Q]===k){A=0;M=p;for(ca=0;ca<k;++ca)A=A<<1|M&1,M>>=1;for(ca=A;ca<f;ca+=q)g[ca]=k<<16|Q;++p}++k;p<<=1;q<<=1}return[g,c,e]};var MB=[],NB;for(NB=0;288>NB;NB++)switch(!0){case 143>=NB:MB.push([NB+48,8]);break;case 255>=NB:MB.push([NB-144+400,9]);break;case 279>=NB:MB.push([NB-256+0,7]);break;case 287>=NB:MB.push([NB-280+192,8]);break;default:throw Error("invalid literal: "+NB);}
var OB=function(){function a(a){switch(!0){case 3===a:return[257,a-3,0];case 4===a:return[258,a-4,0];case 5===a:return[259,a-5,0];case 6===a:return[260,a-6,0];case 7===a:return[261,a-7,0];case 8===a:return[262,a-8,0];case 9===a:return[263,a-9,0];case 10===a:return[264,a-10,0];case 12>=a:return[265,a-11,1];case 14>=a:return[266,a-13,1];case 16>=a:return[267,a-15,1];case 18>=a:return[268,a-17,1];case 22>=a:return[269,a-19,2];case 26>=a:return[270,a-23,2];case 30>=a:return[271,a-27,2];case 34>=a:return[272,
a-31,2];case 42>=a:return[273,a-35,3];case 50>=a:return[274,a-43,3];case 58>=a:return[275,a-51,3];case 66>=a:return[276,a-59,3];case 82>=a:return[277,a-67,4];case 98>=a:return[278,a-83,4];case 114>=a:return[279,a-99,4];case 130>=a:return[280,a-115,4];case 162>=a:return[281,a-131,5];case 194>=a:return[282,a-163,5];case 226>=a:return[283,a-195,5];case 257>=a:return[284,a-227,5];case 258===a:return[285,a-258,0];default:throw Error("invalid length: "+a);}}var b=[],c,e;for(c=3;258>=c;c++)e=a(c),b[c]=e[2]<<
24|e[1]<<16|e[0];return b}();GB&&new Uint32Array(OB);var PB=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];GB&&new Uint16Array(PB);var QB=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258];GB&&new Uint16Array(QB);var RB=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0];GB&&new Uint8Array(RB);var SB=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];GB&&new Uint16Array(SB);
var TB=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];GB&&new Uint8Array(TB);var UB=new (GB?Uint8Array:Array)(288),VB,WB;VB=0;for(WB=UB.length;VB<WB;++VB)UB[VB]=143>=VB?8:255>=VB?9:279>=VB?7:8;LB(UB);var XB=new (GB?Uint8Array:Array)(30),YB,ZB;YB=0;for(ZB=XB.length;YB<ZB;++YB)XB[YB]=5;LB(XB);var $B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];GB&&new Uint16Array($B);var aC=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258];GB&&new Uint16Array(aC);var bC=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0];GB&&new Uint8Array(bC);var cC=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];GB&&new Uint16Array(cC);
var dC=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];GB&&new Uint8Array(dC);var eC=new (GB?Uint8Array:Array)(288),fC,gC;fC=0;for(gC=eC.length;fC<gC;++fC)eC[fC]=143>=fC?8:255>=fC?9:279>=fC?7:8;LB(eC);var hC=new (GB?Uint8Array:Array)(30),iC,jC;iC=0;for(jC=hC.length;iC<jC;++iC)hC[iC]=5;LB(hC);/*


 zlib.js
 JavaScript Zlib and Deflate Library

 The MIT License

 Copyright (c) 2011 imaya

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
*/
var kC=function(){};kC.prototype.set=r;kC.prototype.get=r;kC.prototype.remove=r;var lC=function(){};x(lC,kC);lC.prototype.R=function(){var a=0;xc(this.Zd(!0),function(){a++});return a};lC.prototype.Zd=r;lC.prototype.clear=function(){var a=zc(this.Zd(!0)),b=this;z(a,function(a){b.remove(a)})};var mC=function(a){this.Sa=a};x(mC,lC);d=mC.prototype;d.isAvailable=function(){if(!this.Sa)return!1;try{return this.Sa.setItem("__sak","1"),this.Sa.removeItem("__sak"),!0}catch(a){return!1}};d.set=function(a,b){try{this.Sa.setItem(a,b)}catch(c){if(0==this.Sa.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};d.get=function(a){a=this.Sa.getItem(a);if(!t(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};d.remove=function(a){this.Sa.removeItem(a)};
d.R=function(){return this.Sa.length};d.Zd=function(a){var b=0,c=this.Sa,e=new vc;e.next=function(){if(b>=c.length)throw uc;var e=c.key(b++);if(a)return e;e=c.getItem(e);if(!t(e))throw"Storage mechanism: Invalid value was encountered";return e};return e};d.clear=function(){this.Sa.clear()};d.key=function(a){return this.Sa.key(a)};var nC=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.Sa=a};x(nC,mC);var oC=new D("wduck","googDucking","audio_echo_cancellation","googEchoCancellation","audio_echo_cancellation_delay_correction","googEchoCancellation2","audio_auto_gain_control","googAutoGainControl","internal_audio_auto_gain_control","googAutoGainControl2","audio_noise_suppression","googNoiseSuppression","audio_highpass_filter","googHighpassFilter","audio_stereo_swapping","googAudioMirroring","audio_transient_suppression","googNoiseSuppression2");new Jc(oC.ib());var pC=new D("vnr","googNoiseReduction");
new Jc(["vnr"]);new Jc(pC.ib());var qC="/hangouts/_/mlr/",sC=function(a,b,c){var e=new nh,f=new FileReader;f.onload=function(){rC(new Uint8Array(f.result),b,c).sq(e)};f.readAsArrayBuffer(a);return e},rC=function(a,b,c){var e=new FormData;e.append("prod",Xc?"Google_Talk_Plugin_Mac":Yc?"Google_Talk_Plugin":"Google_Talk_Plugin_Linux");e.append("ver","10.0.0.0-calls");e.append("email",b);e.append("type","log");e.append("log",new Blob([a]),c);a=hh();return(a=null!=a.event&&("beforeunload"==a.event.type||"unload"==a.event.type)||is.N().Yg)&&
navigator.sendBeacon&&navigator.sendBeacon(qC,e)?new nh:tC(e,a)},tC=function(a){var b=new nh;try{tf(qC,function(a){a=a.target;var c=a.eb(),f=a.El;a.LX();var g=a.Jk();a.Md()?b.callback(new uC(c,g)):b.Ca(Error(f+" "+c+" "+g))},"POST",a)}catch(c){b.Ca(c)}return b},uC=function(a,b){this.qK=a;this.responseText=b};var xC=function(a,b){l(a.name)?(this.name=a.name,this.code=vC[a.name]):(this.code=a.code,this.name=wC(a.code));Ca.call(this,Ea("%s %s",this.name,b))};x(xC,Ca);var wC=function(a){var b=Eb(vC,function(b){return a==b});if(!l(b))throw Error("Invalid code: "+a);return b},vC={AbortError:3,EncodingError:5,InvalidModificationError:9,InvalidStateError:7,NotFoundError:1,NotReadableError:4,NoModificationAllowedError:6,PathExistsError:12,QuotaExceededError:10,SecurityError:2,SyntaxError:8,TypeMismatchError:11};var yC=function(a,b){J.call(this,a.type,b);this.rk=a};x(yC,J);var zC=function(a){K.call(this);this.xe=a;this.xe.onwritestart=v(this.mk,this);this.xe.onprogress=v(this.mk,this);this.xe.onwrite=v(this.mk,this);this.xe.onabort=v(this.mk,this);this.xe.onerror=v(this.mk,this);this.xe.onwriteend=v(this.mk,this)};x(zC,K);d=zC.prototype;d.abort=function(){try{this.xe.abort()}catch(a){throw new xC(a,"aborting save");}};d.ni=function(){return this.xe.readyState};d.getError=function(){return this.xe.error&&new xC(this.xe.error,"saving file")};
d.mk=function(a){this.dispatchEvent(new yC(a,this))};d.L=function(){delete this.xe;zC.S.L.call(this)};var AC=function(a){zC.call(this,a);this.vu=a};x(AC,zC);AC.prototype.tr=function(){return this.vu.length};AC.prototype.write=function(a){try{this.vu.write(a)}catch(b){throw new xC(b,"writing file");}};AC.prototype.seek=function(a){try{this.vu.seek(a)}catch(b){throw new xC(b,"seeking in file");}};AC.prototype.truncate=function(a){try{this.vu.truncate(a)}catch(b){throw new xC(b,"truncating file");}};var BC=function(a,b){this.Lg=a;this.Cb=b};d=BC.prototype;d.isFile=function(){return this.Cb.isFile};d.isDirectory=function(){return this.Cb.isDirectory};d.getName=function(){return this.Cb.name};d.getMetadata=function(){var a=new nh;this.Cb.getMetadata(function(b){a.callback(b)},v(function(b){a.Ca(new xC(b,"retrieving metadata for "+this.Cb.fullPath))},this));return a};
d.moveTo=function(a,b){var c=new nh;this.Cb.moveTo(a.ee,b,v(function(a){c.callback(this.ZN(a))},this),v(function(e){c.Ca(new xC(e,"moving "+this.Cb.fullPath+" into "+a.Cb.fullPath+(b?", renaming to "+b:"")))},this));return c};d.copyTo=function(a,b){var c=new nh;this.Cb.copyTo(a.ee,b,v(function(a){c.callback(this.ZN(a))},this),v(function(e){c.Ca(new xC(e,"copying "+this.Cb.fullPath+" into "+a.Cb.fullPath+(b?", renaming to "+b:"")))},this));return c};
d.ZN=function(a){return a.isFile?new CC(this.Lg,a):new DC(this.Lg,a)};d.remove=function(){var a=new nh;this.Cb.remove(v(a.callback,a,!0),v(function(b){a.Ca(new xC(b,"removing "+this.Cb.fullPath))},this));return a};d.getParent=function(){var a=new nh;this.Cb.getParent(v(function(b){a.callback(new DC(this.Lg,b))},this),v(function(b){a.Ca(new xC(b,"getting parent of "+this.Cb.fullPath))},this));return a};var DC=function(a,b){BC.call(this,a,b);this.ee=b};x(DC,BC);
DC.prototype.getFile=function(a,b){var c=new nh;this.ee.getFile(a,this.QF(b),v(function(a){c.callback(new CC(this.Lg,a))},this),v(function(b){c.Ca(new xC(b,"loading file "+a+" from "+this.Cb.fullPath))},this));return c};DC.prototype.getDirectory=function(a,b){var c=new nh;this.ee.getDirectory(a,this.QF(b),v(function(a){c.callback(new DC(this.Lg,a))},this),v(function(b){c.Ca(new xC(b,"loading directory "+a+" from "+this.Cb.fullPath))},this));return c};
DC.prototype.removeRecursively=function(){var a=new nh;this.ee.removeRecursively(v(a.callback,a,!0),v(function(b){a.Ca(new xC(b,"removing "+this.Cb.fullPath+" recursively"))},this));return a};DC.prototype.QF=function(a){return 2==a?{create:!0}:3==a?{create:!0,exclusive:!0}:{}};var CC=function(a,b){BC.call(this,a,b);this.hE=b};x(CC,BC);
CC.prototype.createWriter=function(){var a=new nh;this.hE.createWriter(function(b){a.callback(new AC(b))},v(function(b){a.Ca(new xC(b,"creating writer for "+this.Cb.fullPath))},this));return a};CC.prototype.file=function(){var a=new nh;this.hE.file(function(b){a.callback(b)},v(function(b){a.Ca(new xC(b,"getting file for "+this.Cb.fullPath))},this));return a};var EC=function(a){this.Lg=a};EC.prototype.getName=function(){return this.Lg.name};EC.prototype.UX=function(){return new DC(this,this.Lg.root)};var FC=function(a,b){var c=h.requestFileSystem||h.webkitRequestFileSystem;if(!va(c))return th(Error("File API unsupported"));var e=new nh;c(a,b,function(a){e.callback(new EC(a))},function(a){e.Ca(new xC(a,"requesting filesystem"))});return e},GC=function(a){var b=h.BlobBuilder||h.WebKitBlobBuilder;if(l(b)){for(var b=new b,c=0;c<arguments.length;c++)b.append(arguments[c]);return b.getBlob()}b=pb(arguments);c=h.BlobBuilder||h.WebKitBlobBuilder;if(l(c)){for(var c=new c,e=0;e<b.length;e++)c.append(b[e],
void 0);b=c.getBlob(void 0)}else if(l(h.Blob))b=new Blob(b,{});else throw Error("This browser doesn't seem to support creating Blobs");return b};var HC=function(){this.df=[]};HC.prototype.hb=function(a){this.df.push(a);1E4<this.df.length&&this.df.splice(this.df.length/2,1)};HC.prototype.bC=function(a){z(a,this.hb,this)};HC.prototype.clear=function(){this.df.length=0};HC.prototype.tr=function(){return this.df.length};var IC=function(){K.call(this);this.Hs=new nh;this.Wq=this.fE=this.gE=null;this.mJ=2;this.Jj=new HC;this.LJ=new HC};x(IC,K);d=IC.prototype;d.a=E("talk.media.webrtc.LogFile");d.open=function(a,b,c){this.gE=b;this.mJ=c?1:2;a.na(v(this.z1,this));a.nc(this.ss("getting the directory"));return this.Hs};d.write=function(a){this.Jj.bC(a);null!=this.Wq&&1!=this.Wq.ni()&&this.SD()};
d.L4=function(){for(var a=ob(this.LJ.df,this.Jj.df).join(""),b=[],c=0,e=0;e<a.length;e++){var f=a.charCodeAt(e);128>f?b[c++]=f:(2048>f?b[c++]=f>>6|192:(55296==(f&64512)&&e+1<a.length&&56320==(a.charCodeAt(e+1)&64512)?(f=65536+((f&1023)<<10)+(a.charCodeAt(++e)&1023),b[c++]=f>>18|240,b[c++]=f>>12&63|128):b[c++]=f>>12|224,b[c++]=f>>6&63|128),b[c++]=f&63|128)}return Uint8Array.from(b)};d.z1=function(a){a=a.getFile(this.gE,this.mJ);a.na(v(this.P1,this));a.nc(this.ss("creating log file"))};
d.P1=function(a){this.fE=a;a=a.createWriter();a.na(v(this.B1,this));a.nc(this.ss("creating file writer object"))};d.B1=function(a){a.seek(a.tr());this.Wq=a;a.addEventListener("writeend",this.jJ,!1,this);a=this.fE.file();a.na(v(this.X1,this));a.nc(this.ss("getting file contents"))};d.X1=function(a){this.Hs.callback(a);this.jJ()};d.jJ=function(){0<this.Jj.tr()?this.SD():this.dispatchEvent("va")};d.SD=function(){0<this.Jj.tr()&&(this.Wq.write(GC.apply(null,this.Jj.df)),this.LJ.bC(this.Jj.df),this.Jj.clear())};
d.ss=function(a){return v(function(b){G(this.a,"FileSystem error while "+a+". "+b.message);this.Hs.qc||this.Hs.Ca(b)},this)};var KC=function(a){N(this,a,"cl:plu",-1,JC,null)};x(KC,L);var JC=[1];KC.prototype.b=function(a){var b={zma:O(this.Sw(),LC,a)};a&&(b.f=this);return b};Uo("cl:plu",KC);KC.prototype.Sw=function(){return U(this,MC,1)};KC.prototype.EL=function(a){W(this,1,a)};var MC=function(a){N(this,a,0,-1,null,null)};x(MC,L);MC.prototype.b=function(a){return LC(a,this)};var LC=function(a,b){var c={dha:P(b,1),sessionId:P(b,2),timestamp:P(b,3)};a&&(c.f=b);return c};d=MC.prototype;d.HE=function(){return P(this,1)};
d.f7=function(a){S(this,1,a)};d.s=function(){return P(this,2)};d.va=function(a){S(this,2,a)};d.si=function(){return P(this,3)};d.Ht=function(a){S(this,3,a)};var NC=function(){this.Sa=new nC;this.e6=new Jc};qa(NC);var OC=[31,37,41,43,47,53,61,67,71,73];d=NC.prototype;d.a=E("talk.media.webrtc.PendingLogUploadManager");d.Yw=function(a){for(var b=[],c=0,e=0;e<a.length;e++){for(var f=a.charCodeAt(e);255<f;)b[c++]=f&255,f>>=8;b[c++]=f}for(a=0;a<b.length;a++)b[a]^=OC[a%OC.length];return"wrplumplu-"+Th(b)};
d.kF=function(a,b){var c=w()-432E6;a=this.Sa.get(this.Yw(a));if(null!=a)try{var e=kf(a);if("cl:plu"==e[0]){var f=new KC(e),g=ab(f.Sw(),function(a){return null!=a.HE()&&null!=a.s()&&null!=a.si()&&0<a.HE()&&a.si()>c&&a.s()!=b});f.EL(g);return f}}catch(k){G(this.a,"Invalid pending JS log upload storage: "+a,k)}return new KC};
d.add=function(a,b){H(this.a,"Recording pending upload for session "+b+" for "+a);this.e6.add(b);var c=this.kF(a,b),e=c.Sw(),f=new MC;f.f7(5);f.va(b);f.Ht(w());ib(e,void 0,0,f);c.EL(e);this.Sa.set(this.Yw(a),c.cb())};d.remove=function(a,b){H(this.a,"Removing record for session "+b+" for "+a);b=this.kF(a,b);this.Sa.set(this.Yw(a),b.cb())};var QC=function(){this.i0=!1;this.PA=null;this.wy=new IC;this.Fi={};this.YH=PC();this.uJ=NC.N();this.Vm=null};qa(QC);d=QC.prototype;d.Zl=function(a){this.Vm=a;this.Fi[a]=this.wy;this.wy=new IC;this.Fi[a].open(this.YH,"hangouts-call-"+a+".log");var b=new Date;this.hb(a,"### Start ["+b.toString()+"] ### "+a);this.hb(a,"Current time is "+b.toUTCString());this.hb(a,"Google Talk Plugin Version: 10.0.0.0");this.hb(a,"User agent: "+Tb)};
d.hb=function(a,b,c){var e=w();null==this.PA&&(this.PA=e);b="["+((e-this.PA)/1E3).toFixed(3)+"s]"+(null!=c?c:8)+" "+b+"\n";if(null!=a)a=this.Fi[a],null!=a&&a.write([b]);else{for(a in this.Fi)this.Fi[a].write([b]);null!=a||this.wy.write([b])}this.i0&&window.console.log(b)};d.Paa=function(a){var b=new Date;this.hb(a,"### Stop ["+b.toString()+"] ### "+a);this.hb(a,"Current time is "+b.toUTCString());delete this.Fi[a]};d.Vba=function(a,b){this.uJ.add(b,a);return this.Wba(a,b)};
d.Wba=function(a,b){var c="hangouts-call-"+a+".log",e=this.Fi[a];if(null!=e)return rC(e.L4(),b,c).na(v(this.iJ,this,a,b)).nc(v(this.Qy,this,a,b));var e=new IC,f=new nh,c=e.open(this.YH,c,!0);c.na(v(function(c){0<c.size?sC(c,b).na(v(this.iJ,this,a,b)).nc(v(this.Qy,this,a,b)).sq(f):(this.hb(this.Vm,"JS log for "+a+" has no content",9),f.callback(new uC(null,"No log content for session "+a)))},this));c.nc(v(this.Qy,this,a,b));c.nc(v(function(a){f.Ca(a)},this));return f};
var PC=function(){var a=new nh,b=FC(0,0);b.nc(function(b){a.Ca(b)});b.na(function(b){b.UX().getDirectory("log_v2",2).sq(a)});return a};QC.prototype.iJ=function(a,b,c){200==c.qK?(this.hb(this.Vm,"JS log upload for "+a+" successful: "+c.responseText),this.uJ.remove(b,a)):this.hb(this.Vm,"JS log upload for "+a+" failure "+c.qK+": "+c.responseText,10)};QC.prototype.Qy=function(a,b,c){this.hb(this.Vm,"JS log upload for "+a+" failed: "+c,10)};var RC=function(a,b){this.Ib=a;this.G=b||null;this.a=E(a);this.dl=QC.N()};d=RC.prototype;d.Jt=function(a){F(this.a,a);this.dl.hb(this.G,"Error("+this.Ib+"): "+a,10)};d.da=function(a){G(this.a,a);this.dl.hb(this.G,"Warning("+this.Ib+"): "+a,9)};d.info=function(a){H(this.a,a);this.dl.hb(this.G,this.Ib+": "+a,8)};d.config=function(a){Md(this.a,Cd,a);this.dl.hb(this.G,this.Ib+": "+a,7)};d.Db=function(a){I(this.a,a);this.dl.hb(this.G,this.Ib+": "+a,8)};
d.mE=function(a){Md(this.a,Ed,a);this.dl.hb(this.G,this.Ib+": "+a,6)};var SC=function(){Xh.call(this);this.os=new D;this.xl=new D;this.Ei=new D;this.W_(document,"visibilitychange",this.Aba,!1,this);this.Kr=new RC("talk.media.webrtc.OutputTracker")};x(SC,Xh);var TC=new Yo("Y2E25b"),UC=function(a,b){var c=b.V3-a.V3;0==c&&(c=b.Mw()-a.Mw());return c},VC=function(a){this.oJ=a};VC.prototype.rn=function(){return this.oJ.rn()};d=SC.prototype;d.S4=function(a,b){this.Ei.xa(a)||this.Ei.set(a,[]);this.Ei.get(a).push(new VC(b))};
d.SJ=function(a,b){var c=this.Ei.get(a);null!=c?mb(c,function(a){return a.oJ==b},this)?0==c.length&&this.Ei.remove(a):this.Kr.da("recordBeforeAudioStop: No matching element found for ssrc "+a):this.Kr.da("recordBeforeAudioStop: No info found for ssrc "+a)};d.CV=function(a){var b=this.os.get(a);null!=b&&z(b,function(b){this.EN(a,b)},this);var c=this.xl.get(a);if(null==c)return null;this.xl.remove(a);b=WC(c);c=XC(c);return null!=b||null!=c?{GG:b,HG:c}:null};
d.EN=function(a,b){b=b.ne;b.end.Iq<b.start.Iq?this.Kr.da("Non-monotonic frame count: "+b.end.Iq):(this.xl.xa(a)||this.xl.set(a,[]),-1>b.Pka()&&this.Kr.da("Negative fps! s:{"+b.start.toString()+"} e:{"+b.end.toString()+"}"),this.xl.get(a).push(b))};d.Aba=function(){this.os.forEach(function(a,b){z(a,function(a){this.EN(b,a)},this)},this)};
var WC=function(a){var b=0,c=0;z(a,function(a){b+=a.end.Iq-a.start.Iq;c+=a.end.timestamp-a.start.timestamp});return 0==c?null:b/c},XC=function(a){var b=[];z(a,function(a){a.hidden||(b.push({t:a.start.timestamp,c:1,i:a}),b.push({t:a.end.timestamp,c:-1,i:a}))});vb(b,"t");var c=0,e=0,f=-Infinity,g=[];z(b,function(a){var b=a.t,k=b-f;0<g.length&&(c+=b-f,e+=g[0].Mw()*k);1==a.c?(a=a.i,gb(g,a)||g.push(a),tb(g,UC)):lb(g,a.i);f=b});return 0==c?null:e/c};
SC.prototype.rn=function(a){a=this.os.get(a)||this.Ei.get(a);if(null==a)return null;var b=0,c=!1;z(a,function(a){a=a.rn();null!=a&&(b=Math.max(a,b),c=!0)});return c?b:null};SC.prototype.L=function(){this.os.clear();this.Ei.clear();this.xl.clear();SC.S.L.call(this)};var YC=function(a,b,c){var e=a.ba();Pz.call(this,e.v(),e.getId(),b,c);this.yv=a};x(YC,Pz);var ZC=function(a){K.call(this);this.Gh=a;this.Gh.rA(this);this.ha(this.Gh)};x(ZC,K);d=ZC.prototype;d.Hf="Ka";d.oa=function(){return{config:this.tc(),muted:this.Xr(),state:this.jV()}};d.ba=function(){return this.Gh};d.Xr=function(){return"Aa"==this.ba().getState()};d.tc=function(){return null};
d.jV=function(){switch(this.Hf){case "Ja":return chrome.i18n.getMessage("6950033741572394811");case "Ka":return chrome.i18n.getMessage("8757444822404164848");case "La":return chrome.i18n.getMessage("4782049665629043191");case "Ma":return chrome.i18n.getMessage("2100823569845184829");case "Na":return chrome.i18n.getMessage("99290588561553105");case "Oa":return chrome.i18n.getMessage("7017840133230118615")}return""};d.oL=function(a){this.Hf=a;this.dispatchEvent("ya")};d.WJ=n;d.fB=n;d.aN=r;d.tD=r;
d.stop=r;d.ko=r;d.sN=r;var $C=function(a){var b=h.navigator||null;if(null!=b.webkitGetUserMedia){var c=Te();b.webkitGetUserMedia(a,c.resolve,c.reject);return c.promise}return Oe("Missing getUserMedia API.")};var aD=function(a,b,c){YC.call(this,a,c,"qa");this.G=b;this.Da=new Xh(this);this.ha(this.Da);this.Da.listen(this.yv,"za",function(a){this.F2(a.Xaa)})};x(aD,YC);aD.prototype.s=function(){return this.G};aD.prototype.F2=function(a){null==a||Fa(a)||this.dispatchEvent(new bD(this.G,a))};var bD=function(a,b){J.call(this,"Aa");this.sessionId=a;this.url=b};x(bD,J);var cD=function(a){this.g=new RC(a)};cD.prototype.error=function(a){this.g.Jt(a)};cD.prototype.da=function(a){this.g.da(a)};cD.prototype.info=function(a){this.g.info(a)};cD.prototype.Db=function(a){this.g.Db(a)};var dD=function(a,b){ZC.call(this,a);this.Xb=new cD("realtime.media.webrtc.Capture");this.Sl=b;this.Aj=this.Ce=null;this.bo=new Jc;this.cm=new D;this.af=this.ll=!1;this.Ub=null};x(dD,ZC);d=dD.prototype;d.L=function(){this.Xm();this.bo.clear();this.Ub=null;dD.S.L.call(this)};d.toString=function(){return"Capture(source="+this.ba()+" muted="+this.ll+" paused="+this.af+" stream="+(this.Ce?this.Ce.id:null)+" streamUrl="+this.Aj+")"};
d.RA=function(a){a&&z(ob(a.getAudioTracks(),a.getVideoTracks()),function(a){pe(a);a.stop()})};d.Xm=function(){this.cm.forEach(this.RA,this);this.cm.clear();this.RA(this.Ce);this.Ce=null;this.Aj&&(window.URL.revokeObjectURL(this.Aj),this.Aj=null)};d.NA=function(){this.Xb.info("Starting media for "+this);this.oL("Ja");return this.Bp().then(qc(this))};d.getDeviceId=function(){return this.Sl.deviceId};d.tc=function(){return this.Ub};d.Ya=function(a){return this.Ce?this.cm.get(a,null):null};
d.tD=function(a,b){return new aD(this,a,b)};d.WJ=function(a){this.Xb.info("Registering sessionId="+a+" with "+this);this.bo.add(a);this.Ce&&this.cm.set(a,this.Ce.clone())};d.fB=function(a){this.Xb.info("Unregistering sessionId="+a+" with "+this);this.bo.remove(a);this.RA(this.Ya(a));this.cm.remove(a)};d.aN=n;d.stop=function(){this.Xb.info("Stopping "+this);this.Xm();this.bo.clear();this.dispatchEvent(new eD(this.Aj));this.oL("Oa");return!0};d.ko=function(){if("Oa"==this.Hf)return!1;this.xI(!0);return!0};
d.sN=function(){if("Oa"==this.Hf)return!1;this.xI(!1);return!0};d.Xr=function(){switch(this.Hf){case "La":case "Ma":case "Na":return!0;default:return this.ll}};d.xI=function(a){this.Xb.info("Setting mute state to mute="+a+" for "+this);this.ll=a;this.Sl=this.Sl.jca(this.ll);this.ll?this.Xm():this.Bp();this.Sba();this.dispatchEvent("xa")};d.pause=function(){this.af||"Oa"==this.Hf||(this.Xb.info("Pausing "+this),this.af=!0,this.Xm())};
d.resume=function(){this.af&&"Oa"!=this.Hf&&(this.Xb.info("Resuming "+this),this.af=!1,this.Bp())};d.Sba=function(){this.ba().cc(this.Xr()?"Aa":"za")};
d.Bp=function(){if("Ja"!=this.Hf)return this.Xb.info("Skipping update usermedia for "+this+" while device in state="+this.Hf),Ne();if(null==this.Sl.deviceId)return this.Xb.info("Skipping update usermedia for "+this+" with null deviceId."),Ne();if(this.ll)return this.Xb.info("Skipping update usermedia for "+this+" because capture is currently muted."),Ne();if(this.af)return this.Xb.info("Skipping update usermedia for "+this+" because capture is currently paused."),Ne();var a=this.FY();if(!a)return a=
"Attempting to update usermedia for "+this+" with null constraints",this.Xb.error(a),Oe(a);this.Xb.info("Attempting to update UserMedia for "+this);return $C(a).then(this.NI,function(a){this.Xb.da("Error calling getUserMedia="+a+" in "+this);throw a;},this)};d.FY=function(){var a={audio:!1,video:!1},b=this.ba().O();switch(b){case "sa":b=this.Sl.Cr();a.audio=b;break;case "ua":b=this.Sl.Cr();a.video=b;break;default:return this.Xb.error("Invalid mediaType="+b+" for "+this),null}return a};
d.NI=function(a){this.Xb.info("getUserMedia success for stream="+a.id+" in "+this);0==a.getAudioTracks().length&&0==a.getVideoTracks().length?this.Xb.da("No media tracks for stream="+a.id+" in "+this):(this.Xm(),this.Ce=a,this.Aj=window.URL.createObjectURL(a),z(ob(this.Ce.getAudioTracks(),this.Ce.getVideoTracks()),function(a){fe(a,"ended",this.K2,void 0,this)},this),z(this.bo.C(),function(a){this.cm.set(a,this.Ce.clone())},this),this.Xb.info("Stream changed in "+this),this.dispatchEvent(new eD(this.Aj)))};
d.K2=n;var eD=function(a){J.call(this,"za");this.Xaa=a};x(eD,J);var fD=function(){var a=hh(),b=null,c=a;try{do{try{c.location.origin==a.location.origin&&(b=c.chrome&&c.chrome.runtime||b)}catch(e){}if(c==c.parent)break;c=c.parent}while(null!=c)}catch(e){}return b},gD=function(){return"https:"==hh().location.protocol?"nkeimhogjdpnpccoofpliimaahmaaome":"hoblmflfjcnhdllclikeemgdcbbflkhi"},iD=function(a){QC.N().hb(null,"talk.media.webrtc.Extension: Sending message "+lf(a));var b=new nh,c=fD(),e=a.method;c&&null!=c.sendMessage?(e=hD(b,e),a.origin=hh().location.origin+
"/",c.sendMessage(gD(),a,e)):(QC.N().hb(null,"talk.media.webrtc.Extension: Cannot find appropriate chrome.runtime when sending "+e,10),b.Ca("Cannot find appropriate chrome.runtime"));return b},jD=function(a){var b=fD();if(b&&null!=b.connect){QC.N().hb(null,"talk.media.webrtc.Extension: Opening port named "+a);a=b.connect(gD(),{name:a});var c=v(a.disconnect,a);fe(hh(),"unload",c);a.onDisconnect.addListener(function(){ne(window,"unload",c)});return a}return null},hD=function(a,b){return function(c){var e=
"No response from extension";if(null!=c)if(e=c.error,null!=e)e="Extension reported "+e.name+": "+e.message;else{QC.N().hb(null,"talk.media.webrtc.Extension: Received response to "+b+": "+lf(c.value));a.callback(c.value);return}(c=fD())&&null!=c.lastError&&(e=e+" Chrome reported: "+c.lastError.message);QC.N().hb(null,"talk.media.webrtc.Extension: Received error to "+b+": "+e,10);a.Ca(e)}};var kD=function(){xs(this)};qa(kD);kD.prototype.pn=function(a){return this.ec.pn(a)};kD.prototype.qn=function(){return this.ec.qn()};kD.prototype.Zl=function(a){return this.ec.Zl(a)};kD.prototype.lu=function(){return this.ec.lu()};var lD=function(){};x(lD,pp);qp(lD,kD);lD.prototype.pn=wp();lD.prototype.qn=wp();lD.prototype.Zl=wp();lD.prototype.lu=wp();var mD=function(){this.g=new cD("realtime.media.webrtc.ExtensionDelegate")};x(mD,lD);rp(mD,lD,1);d=mD.prototype;d.pn=function(a){return iD({method:"cpu.getInfo"}).GP(function(b){a(b)})};d.qn=function(){return jD("processCpu")};
d.ML=function(a,b){var c=iD({method:"logging.setMetadata",metaData:[{key:"sessionId",value:a},{key:"url",value:window.location.href}]});c.na(function(){this.g.Db("Extension logging setMetadata succeeded for "+a)},this);c.nc(function(b){this.g.Db("Extension loggings setMetadata failed for session: "+a+", error: "+b)},this);b&&c.nc(function(){return this.ML(a,!1)},this);return c};d.Zl=function(a){a=this.ML(a,!0);a.na(function(){return this.KM(!0)},this);return a};
d.KM=function(a){var b=iD({method:"logging.start"});a&&b.nc(function(){return this.KM(!1)},this);return b};d.lu=function(){return iD({method:"logging.uploadOnRenderClose"})};var nD=function(a,b,c,e,f,g){nh.call(this,f,g);this.iy=a;this.Vv=[];this.pE=!!b;this.NT=!!c;this.PR=!!e;for(b=this.DI=0;b<a.length;b++)a[b].Lh(v(this.IG,this,b,!0),v(this.IG,this,b,!1));0!=a.length||this.pE||this.callback(this.Vv)};x(nD,nh);nD.prototype.IG=function(a,b,c){this.DI++;this.Vv[a]=[b,c];this.qc||(this.pE&&b?this.callback([a,c]):this.NT&&!b?this.Ca(c):this.DI==this.iy.length&&this.callback(this.Vv));this.PR&&!b&&(c=null);return c};
nD.prototype.Ca=function(a){nD.S.Ca.call(this,a);for(a=0;a<this.iy.length;a++)this.iy[a].cancel()};var oD=function(a,b){K.call(this);this.pk=a;this.mu=window.URL.createObjectURL(b);this.Da=new Xh(this);this.ha(this.Da);this.$h=[];this.Rl(1)};x(oD,K);d=oD.prototype;d.Rl=function(a){var b=Math.ceil(a)-this.$h.length;0<b?this.JP(b):0>b&&this.n5(-b);0<a&&(this.$h[0].volume=a-(this.$h.length-1))};
d.JP=function(a){for(var b=[],c=0;c<a;++c){var e=this.pk.createElement("AUDIO"),f=new nh;e.autoplay=!0;e.src=this.mu;this.Da.ao(e,"playing",v(f.callback,f));this.$h.push(e);b.push(f);this.pk.appendChild(this.pk.$m.body,e)}(new nD(b)).na(v(this.dispatchEvent,this,"playing"))};d.n5=function(a){for(var b=0;b<a;++b){var c=this.$h.pop();c.src="";this.pk.removeNode(c)}};d.L=function(){this.Rl(0);window.URL.revokeObjectURL(this.mu);oD.S.L.call(this)};d.rn=function(){return 0==this.$h.length?null:this.$h[0].currentTime};var pD=function(a,b){this.yE=new Jc;this.Wi=a||2;this.Al=b||4294967295;this.Wi=Math.max(this.Wi,2);this.Al=Math.min(this.Al,4294967295);this.Wi>this.Al&&(this.Wi=2,this.Al=4294967295)};pD.prototype.gS=function(){for(var a=this.Al-this.Wi+1,b=Math.floor(this.Wi+a*Math.random()),c=0;this.yE.contains(b);)if(b<this.Al?++b:b=this.Wi,++c>=a)return null;this.yE.add(b);return b};var qD=function(a,b,c,e){this.yc=a;this.key=b;this.Vb=l(c)?c:null;this.params=e||[]},rD={MEDIA:"m",Lca:"a",VERSION:"v",ORIGIN:"o",Ufa:"s",iga:"t",eea:"i",mda:"c",Sca:"b",zda:"k"},sD={Sfa:"session",AUDIO:"audio",VIDEO:"video",Kca:"application",rda:"data"},tD={HOST:"host",Xfa:"srflx",Dfa:"relay",zfa:"prflx"},uD={host:"LOCAL",srflx:"STUN",relay:"RELAY",prflx:"PEER_REFLEX"},vD={audio:"sa",video:"ua",data:"ta",application:"ta"};var wD=function(){this.Ab=this.sb=null;this.Il=[];this.ty=[];this.uy=new Jc;this.Aa=[];this.Sr="ICE";this.Rr="full";this.tB=[]};d=wD.prototype;d.Mz=function(){this.Ab=this.sb=null;this.Il=[];this.ty=[];this.uy.clear();this.Aa=[];this.Sr="ICE";this.Rr="full";this.tB=[]};
d.toSdp=function(a,b,c){this.sb&&this.Mz();this.sb=a;this.Ab=c||null;this.tB=b||[];this.Il=this.xQ();a=[this.sb.U,this.sb.wa,this.sb.getData()];z(a,function(a){null!=a&&this.BQ(a)},this);this.sb.Kh&&this.Il.push("a=group:BUNDLE "+this.ty.join(" "));this.Ab||(this.CC(this.Il,this.Sr,this.Rr),a="a=msid-semantic: WMS "+this.uy.C().join(" "),this.Il.push(a));this.Aa.push("");return this.Il.concat(this.Aa).join("\r\n")};
d.xQ=function(){return this.Ab?this.Ab.AG("session"):["v=0","o=- "+Math.pow(2,53)*Math.random()+" 2 IN IP4 127.0.0.1","s=-","t=0 0"]};d.BQ=function(a){var b=a.O(),c=Jb(vD)[b],e=a.FF();this.ty.push(e);var f=a.sc(),g="m="+c+" 9 RTP/SAVPF";z(f,function(a){g+=" "+a.oh},this);this.Aa.push(g);this.AQ(c,e);this.NQ(a.Ma());this.vQ(a.Ic());this.FQ(a.pi());this.tQ(f,b);this.LQ(a.Jd())};
d.AQ=function(a,b){if(this.Ab){if(a=this.Ab.AG(a))this.Aa=this.Aa.concat(a)}else this.Aa.push("c=IN IP6 ::"),this.Aa.push("a=rtcp:9 IN IP6 ::"),this.Aa.push("a=sendrecv"),this.Aa.push("a=rtcp-mux");this.Aa.push("a=mid:"+b);z(this.tB,function(a){this.Aa.push("a=x-google-flag:"+a)},this)};
d.NQ=function(a){var b=a&&a.rh||"123456789012345678901234";this.Aa.push("a=ice-ufrag:"+(a&&a.Jh||"1234567890123456"));this.Aa.push("a=ice-pwd:"+b);a&&(this.Sr=a.$e(),this.Rr=a.L0);this.CC(this.Aa,this.Sr,this.Rr);a&&a.Ve()&&(this.Aa.push("a=fingerprint:"+a.Ve()),this.Aa.push("a=setup:actpass"))};d.CC=function(a,b,c){"ICE"==b?"lite"==c&&a.push("a=ice-lite"):y("google-ice is no longer supported.")};d.vQ=function(a){var b;0<a.length&&(b=a[0]);null!=b&&this.Aa.push("a=crypto:"+b.Jn()+" "+b.Wg()+" "+b.Ek())};
d.FQ=function(a){z(a,function(a){this.Aa.push("a=extmap:"+a.getId()+" "+a.Mk())},this)};
d.tQ=function(a,b){z(a,function(a){var c=a.oh,f=a.getName(),g=a.Km;if("ua"==b||"ta"==b)g=9E4;f="a=rtpmap:"+c+" "+f+"/"+g;"sa"==b&&1<a.Uj&&(f+="/"+a.Uj);this.Aa.push(f);a=a.An();if(0<a.length){var k="a=fmtp:"+c,p=" ";z(a,function(a){a.getKey()&&a.hc()&&(k+=p+a.getKey()+"="+a.hc());p="; "},this);this.Aa.push(k)}"ua"!=b||100!=c||this.Ab||(this.Aa.push("a=rtcp-fb:"+c+" ccm fir"),this.Aa.push("a=rtcp-fb:"+c+" nack"),this.Aa.push("a=rtcp-fb:"+c+" goog-remb"));this.Ab&&(c=this.Ab.zY(c))&&(this.Aa=this.Aa.concat(c))},
this)};d.LQ=function(a){z(a,function(a){var b=a.gc().split("/"),e=b[0];1==b.length&&(e=a.JF());this.uy.add(e);var f=a.ya(),g=2==b.length?b[1]:e,b=a.rG();z(b,function(a){this.Aa.push("a=ssrc-group:"+a.Fn()+" "+a.Sc().join(" "))},this);a=a.Sc();z(a,function(a){var b="a=ssrc:"+a;this.Aa.push(b+" cname:"+f);this.Aa.push(b+" msid:"+e+" "+g);this.Ab&&(a=this.Ab.BY(a))&&(this.Aa=this.Aa.concat(a))},this)},this)};var xD=function(){this.a=E("realtime.media.webrtc.sdp.Parser");this.be="session";this.Ap=new D;this.gB=new D;this.hB=new D;this.sy="";this.Fe=new pA("ICE","","");this.Cf=[];this.fk=[];this.Gl=[];this.Ot=new D;this.Pt=new D;this.pv=!1};d=xD.prototype;d.O5=function(){this.sb=null;this.mK();this.be="session";this.Ap.clear();this.gB.clear();this.hB.clear();this.pv=!1};d.mK=function(){this.sy="";this.Fe=new pA("ICE","","");this.Cf=[];this.fk=[];this.Gl=[];this.Ot.clear();this.Pt.clear()};
d.parse=function(a){this.sb&&this.O5();this.sb=new tA;z(a.split("\r\n"),function(a){Fa(a)||this.C3(a)},this);this.sD();return this.sb};d.C3=function(a){var b=Va(a,"=",1),c=b[0];2==b.length&&1==c.length||this.pc("Invalid SDP line: "+a);var e=b[1].split(" "),f=e.shift().split(":");2<f.length&&this.pc("Invalid key parts: "+f);b=f[0];e=new qD(a,b,f[1],e);switch(this.Lj(c,rD)){case "m":this.sD();this.mK();this.be=this.Lj(b,sD);break;case "a":this.S2(e);break;default:this.xm(this.Ap,this.be,a)}return e};
d.S2=function(a){switch(a.key){case "group":this.o3(a);break;case "mid":this.v3(a);break;case "ice-ufrag":this.t3(a);break;case "ice-pwd":this.s3(a);break;case "ice-options":this.r3(a);break;case "fingerprint":this.m3(a);break;case "setup":this.E3(a);break;case "extmap":this.q3(a);break;case "crypto":this.Vy(a);break;case "rtpmap":this.Uy(a);break;case "fmtp":this.f3(a);break;case "rtcp-fb":this.g3(a);break;case "ssrc-group":this.Xy(a);break;case "ssrc":this.ul(a);break;default:this.xm(this.Ap,this.be,
a.yc)}};d.o3=function(a){a.Vb||this.pc("Invalid group line: "+a.yc);"BUNDLE"!=a.Vb?this.xm(this.Ap,this.be,a.yc):this.pv=!0};d.v3=function(a){this.sy=a.Vb};d.t3=function(a){var b=a.Vb;/^[0-9a-zA-Z\+\/]{4,256}$/.test(b)||this.pc("Invalid ice ufrag line: "+a.yc);this.Fe=this.Fe.Kp(b)};d.s3=function(a){var b=a.Vb;/^[0-9a-zA-Z\+\/]{22,256}$/.test(b)||this.pc("Invalid ice pwd line: "+a.yc);this.Fe=this.Fe.Ip(b)};
d.r3=function(a){var b=a.Vb;b||this.pc("Empty ice options line: "+a.yc);H(this.a,"Ignoring unrecognized ice option: "+b)};d.m3=function(a){var b=a.Vb;b||this.pc("Empty fingerprint hash type: "+a.yc);1!=a.params.length&&this.pc("Malformed fingerprint hash value: "+a.yc);this.Fe=this.Fe.ica(b+" "+a.params[0])};d.E3=function(a){"actpass"!=a.Vb&&this.pc("Setup attribute was '"+a.Vb+"' instead of expected 'actpass'")};
d.q3=function(a){var b=parseInt(a.Vb,10),c=a.params[0];(isNaN(b)||!c||1>a.params.length)&&this.pc("Invalid extmap line: "+a.yc);this.Gl.push(new oA(c,b,vD[this.be]))};d.Vy=function(a){var b=parseInt(a.Vb,10);(isNaN(b)||2>a.params.length)&&this.pc("Invalid crypto line: "+a.yc);a=new mA(this.Lj(a.params.shift(),nA),a.params.shift(),a.params.join(" "),b);this.fk.push(a)};
d.Uy=function(a){var b=a.params[0].split("/"),c=b[0];(!a.Vb||1!=a.params.length||2>b.length)&&this.pc("Invalid rtpmap line: "+a.yc);a=parseInt(a.Vb,10);var e=1,f=parseInt(b[1],10);b[2]&&(e=parseInt(b[2],10));this.Cf.push(new Zz(vD[this.be],a,c,void 0,f,e))};d.f3=function(a){var b=a.Vb,c=this.Cf.pop();c&&b==c.oh||this.pc("Invalid fmtp line: "+a.yc);c=a.params.join(" ").split(";").reduce(function(a,b){b=b.trim().split("=");return 2!=b.length?a:a.tu(b[0],b[1])},c);this.Cf.push(c)};
d.g3=function(a){this.xm(this.gB,parseInt(a.Vb,10),a.yc)};d.Xy=function(a){var b=a.Vb;1>a.params.length&&this.pc("Invalid ssrc-group line: "+a.yc);a=a.params.map(Number);var c=new uA(b,a);z(a,function(a){var b=this.Ot.get(a);b?b.push(c):b=[c];this.Ot.set(a,b)},this)};
d.ul=function(a){(!a.Vb||1>a.params.length)&&this.pc("Invalid ssrc line: "+a.yc);var b=parseInt(a.Vb,10),c=this.fX(b),e=a.params[0].split(":");switch(e[0]){case "cname":c=c.pm(e[1]);break;case "msid":c=c.XN(e[1]+"/"+a.params[1]);break;default:this.xm(this.hB,b,a.yc)}this.fC(c)};d.fX=function(a){var b=this.Pt.get(a);if(!b){var b=this.Ot.get(a),c=[];b?z(b,function(a){c=c.concat(a.Sc())},this):(c.push(a),b=[]);b=new vA(vD[this.be],"","","",c,b);this.fC(b)}return b};
d.fC=function(a){z(a.Sc(),function(b){this.Pt.set(b,a)},this)};d.sD=function(){if("session"==this.be)this.sb=this.sb.YN(this.pv);else{var a=this.Pt.C().filter(function(a,c,e){if(c==e.indexOf(a))return!0}),a=new qA(vD[this.be],this.Cf,this.fk,this.Gl,this.Fe,a,this.sy);switch(this.be){case "audio":this.sb=this.sb.Xd(a);break;case "video":this.sb=this.sb.tg(a);break;case "application":case "data":this.sb=this.sb.Ij(a)}}};d.Lj=function(a){return a};
d.pc=function(a){a=Error(a);F(this.a,"Parsing failed.",a);throw a;};
d.W2=function(a){var b=this.Lj(a.sdpMid,sD);a=a.candidate.trim().split(" ");var c=a[0].split(":")[1],e=Number(a[1]),f=this.Lj(a[2].toUpperCase(),Xz),g=Number(a[3]),k=a[4],p=Number(a[5]),q=uD[this.Lj(a[7],tD)],A=9;switch(q){case "LOCAL":"TCP"==f&&(A=11);break;case "STUN":case "RELAY":case "PEER_REFLEX":var M=a[9],Q=Number(a[11]),A=13;break;default:this.pc("Unknown candidate type: "+q)}return new Wz(vD[b],e,g,q,f,k,p,c,Number(a[A]),"",M,Q)};d.xm=function(a,b,c){var e=a.get(b);e||(e=[],a.set(b,e));e.push(c)};
d.AG=function(a){return this.Ap.get(a)};d.zY=function(a){return this.gB.get(a)};d.BY=function(a){return this.hB.get(a)};var yD=function(){this.K_=3;this.Yn=this.jq=null;this.iz=this.Ss=this.AJ=0;this.EI=1;this.mt=this.Wt=this.Vt=this.Ut=this.Xt=this.iN=0};d=yD.prototype;d.yR=function(){this.mt=this.Wt=this.Vt=this.Ut=this.Xt=0};d.U4=function(a){null==this.jq&&(this.jq=a);if(null==this.Yn||a.getTime()>this.Yn.getTime())this.Yn=a};d.WS=function(){return null!=this.Yn&&null!=this.jq?(this.Yn.getTime()-this.jq.getTime())/1E3:-1};
d.UP=function(a){this.Xt+=a.tabCpuUsage;this.Ut+=a.browserCpuUsage;this.Vt+=a.gpuCpuUsage;this.Wt+=a.pluginCpuUsage;this.mt++};d.XP=function(a){var b=a&&a.numOfProcessors;if(b){var c=0,e=0;if(a=a.processors)for(var f=0;f<a.length;f++)var g=a[f].usage,c=c+(g.user+g.kernel),e=e+g.total;else c=this.iz,e=this.Ss;a=e==this.Ss?this.AJ:100*b*(c-this.iz)/(e-this.Ss);this.iz=c;this.Ss=e;this.iN=this.AJ=a;this.EI=b}};
d.toJson=function(){return{jmiVersion:this.K_,numOfProcessors:this.EI,totalCpuUsage:this.iN,tabCpuUsage:this.jr(this.Xt),browserCpuUsage:this.jr(this.Ut),gpuCpuUsage:this.jr(this.Vt),pluginCpuUsage:this.jr(this.Wt)}};d.jr=function(a){return this.mt?a/this.mt:null};var zD=function(){},AD=new Date(0)-new Date("1900/01/01 00:00 GMT");d=zD.prototype;d.k4=function(a,b,c){b&&this.DT(a);b=Number(a.ssrc);null!=b&&(this.SP(a,b,c),null!=a.bytesReceived&&this.WP(a,b,c),this.EP(a,b,c))};d.DT=function(a){null!==a&&"googFrameWidthSent"in a&&(a.googFrameWidthSent=0);null!==a&&"googFrameHeightSent"in a&&(a.googFrameHeightSent=0)};d.SP=function(a,b,c){var e=a.googCaptureStartNtpTimeMs;null!=e&&0<e&&(b=c.rn(b),null!=b&&(e=e-AD+1E3*b,a.oneWayDelayMs=w()-e))};
d.WP=function(a,b,c){b=c.CV(b);null!=b&&(null!=b.GG&&(a.fpsGraphicsInput=b.GG),null!=b.HG&&(a.fpsGraphicsOutput=b.HG))};d.EP=function(a){var b=mq.yB,c=a.googCpuLimitedResolution,e=a.googBandwidthLimitedResolution,f=a.googViewLimitedResolution;if(null!=c||null!=e||null!=f)"true"==c&&(b|=mq.xB),"true"==e&&(b|=mq.wB),"true"==f&&(b|=mq.zB),a.googAdaptationReason=b};var BD=function(){this.rI=new D;this.qI=new D;this.oD=new D};d=BD.prototype;d.clear=function(){this.rI.clear();this.qI.clear();this.oD.clear()};d.Kba=function(a,b,c){var e=a.ssrc;if(null==e)return null;if(c)return c=this.zA(this.rI,e,v(this.yI,this,c)),c.update(b,a.bytesSent,a.packetsSent,a.packetsLost);c=this.zA(this.qI,e,v(this.yI,this,c));return c.update(b,a.bytesReceived,a.packetsReceived,a.packetsLost)};
d.Cba=function(a,b){if("false"==a.googActiveConnection)return null;var c=a.googLocalAddress+a.googRemoteAddress;return null!=c?this.zA(this.oD,c,v(this.S0,this)).update(b,a.bytesSent,a.bytesReceived):null};d.zA=function(a,b,c){var e=a.get(b);null==e&&(e=c(),a.set(b,e));return e};d.yI=function(a){return new CD(a)};d.S0=function(){return new DD};var CD=function(a){this.Uf=-1;this.NH=this.OH=this.MH=0;this.G_=a};
CD.prototype.update=function(a,b,c,e){var f=null;if(u(a)&&u(b)&&u(c)&&u(e)){if(a>this.Uf){var g=c-this.OH,f=e-this.NH,g=this.G_?g:g+f,f=0<g?Math.round(100*f/g):-1,g=-1;if(0<=this.Uf)var g=a-this.Uf,k=b-this.MH,g=0<k?Math.round(8*k/g):0;f={yC:g,j0:f}}this.Uf=a;this.MH=b;this.OH=c;this.NH=e}return f};var DD=function(){this.Uf=-1;this.KH=this.LH=0};
DD.prototype.update=function(a,b,c){var e=null;if(u(a)&&u(b)&&u(c)){if(0<=this.Uf&&a>this.Uf)var e=a-this.Uf,f=b-this.LH,g=c-this.KH,e={P6:0<f?Math.round(f/e):0,W4:0<g?Math.round(g/e):0};this.Uf=a;this.LH=b;this.KH=c}return e};var ED=function(a,b){return u(a)?a:l(b)?b:-1};new D({neon:1,sse2:2,ssse3:4,sse4_1:8,sse4_2:16,avx:32});var FD=function(){var a;return Yc?(a=/Windows NT ([0-9.]+)/,(a=a.exec(Tb))?a[1]:"0"):Xc?(a=/10[_.][0-9_.]+/,(a=a.exec(Tb))?a[0].replace(/_/g,"."):"10"):$c?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(Tb))?a[1]:""):ad||bd||cd?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(Tb))?a[1].replace(/_/g,"."):""):""}();var GD=function(a,b){var c=window.crypto||window.msCrypto;c&&c.getRandomValues&&!b&&(this.Gp=!0,this.di=Infinity,this.Yq=!0);a&&this.a9(a)};d=GD.prototype;
d.HR=function(a){var b={},c=window.localStorage||{},e=window.sessionStorage||{},f=this;a&&this.b5(a);if(!this.Gp){b.Mla=this.Ze();b.rma=(new Date).toLocaleString();b.local={};for(a=0;a<c.length;a++){var g=c.key(a);b.local[g]=c[g]}b.session={};for(a=0;a<e.length;a++)g=e.key(a),b.session[g]=e[g];b.Ima=Math.random();b.Jma=Math.random();a=1E4*Math.random()+1E4;for(c={};e=Math.floor(Math.random()*a),!c[e];)c[e]=1;b.Kma=Math.random();b.RR=0;for(b.SR=this.Ze();75>this.Ze()-b.SR;)b.RR++;try{b.SZ=window.history.length}catch(q){b.SZ=
q.message}b.window=this.kf(window);b.document=this.kf(document);b.screen=this.kf(window.screen);try{b.documentElement=this.kf(document.documentElement)}catch(q){b.documentElement=q.message}b.navigator=this.kf(window.navigator);try{b.performance=HD(window.performance)}catch(q){b.performance=q.message}b.VT=[];a=v(function(a){b.VT.push(this.kf(a))},this);this.sB(window,a,0);b.plugins=[];if(navigator.plugins)for(a=0;a<navigator.plugins.length;a++){c=navigator.plugins[a];e=this.kf(c);e.media=[];for(g=
0;g<c.length;g++)e.media.push(this.kf(c[g]));b.plugins.push(e)}this.q6();this.p6();var k=function(a){setTimeout(function(){f.yN();k(a)},a)};k(this.xO);var p=function(a){setTimeout(function(){f.yN();p(a)},a)};p(1);b.tka=this.Ze();this.Rp(HD(b),0)}};d.Ze=function(){return window.performance&&window.performance.now&&window.performance.timing&&window.performance.timing.navigationStart?window.performance.now()+window.performance.timing.navigationStart:(new Date).getTime()};d.Gp=!1;d.Sf="";d.gz="";
d.Ps=0;var ID=["click","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","selectstart","keypress","keydown","keyup","blur","focus","change","select","submit","input","touchstart","touchmove","touchend","touchcancel","beforeunload","DOMContentLoaded","load","orientationchange","readystatechange","resize","scroll","unload","hashchange","pagehide","pageshow","popstate",Sd,Td,Ud,Vd,"pointerdown","pointerup","pointermove","pointerenter","pointerleave","visibilitychange"];
d=GD.prototype;d.Du=100;d.gO=1;d.tO=10;d.AO=160;d.BO=10;d.XO="RANDOM_SALT:";d.LB="SEED_SALT:";d.wO="/google/crypt/Random/seed.key";d.xO=6E4;d.zO=2;d.pO=500;d.di=-1;d.a9=function(a){if(a<this.AO&&a>this.di){var b=this.Sf,c=this.di;this.Sf="";this.di=a;this.Rp(b,Math.max(0,c));this.Yq=!1}return this.di};d.b5=function(a){var b=this;if(va(a)&&a)if(b.Yq)a();else{var c=function(e){setTimeout(function(){b.Yq?a():c(e)},e)};c(this.pO)}};
d.yN=function(){if(!this.Gp)try{var a=new ji;a.update(this.Sf);a.update(String(this.Ze()));window.localStorage.setItem(this.wO,String.fromCharCode.apply(String,a.digest()))}catch(b){}};
d.kf=function(a,b){var c={},e={};b=b||{};if(null==a)return{type:typeof a};try{a.constructor&&(e=a.constructor.prototype);a.__proto__&&(e=a.__proto__);for(var f in a)if(a[f]!=e[f]&&a[f]!=b[f]&&"function"!=typeof a[f])try{c[f]=String(a[f]),c[f].length>this.Du&&(c[f]=c[f].substr(0,this.Du/2)+c[f].substr(c[f].length-this.Du/2)+","+c[f].length)}catch(g){c[f]=String(g+": "+g.message)}}catch(g){c={message:String(g.message)}}return c};
d.sB=function(a,b,c){if(a&&!(c>this.BO))try{for(var e=0;e<a.frames.length;e++)a.frames[e].parent==a&&a.frames[e]!=a&&this.sB(a.frames[e],b,c+1);a.top==a&&a.opener&&a.opener!=a&&this.sB(a.opener.top,b,c+1);b(a)}catch(f){}};d.Pq=0;d.JH=0;d.hw=0;d.Wx=null;d.Ux=null;d.Vx="";
d.jT=function(a,b,c){var e={},f=Math.floor(this.Ze()/1E3);f==this.JH?this.hw++:(this.hw=1,this.JH=f);if(!(10<this.hw)){f={beforepaste:1,beforecopy:1,beforecut:1,keydown:1,mousemove:1,mousedown:1,touchstart:1};if(c)for(var g=0;g<c.length;g++){var k=c[g],p=this.Wx||{};k in a&&p[k]!=a[k]&&("object"==typeof a[k]?e[k]=this.kf(a[k],p[k]):a[k]==p[k]||"function"==typeof a[k]||a.constructor&&a.constructor.prototype==a[k]||(e[k]=String(a[k])))}else for(k in a)p=this.Wx||{},p[k]!=a[k]&&("object"==typeof a[k]?
e[k]=this.kf(a[k],p[k]):a[k]==p[k]||"function"==typeof a[k]||a.constructor&&a.constructor.prototype==a[k]||(e[k]=String(a[k])));e.time=this.Ze();this.Qq.push(e);if(a.target!=this.Ux||a.type!=this.Vx)this.Pq+=f[a.type]||0;this.Wx=a;this.Ux=a.target||null;this.Vx=a.type;b==window&&(this.Ux=null,this.Vx="");if(10<=this.Qq.length){var q=this.Qq,A=this.Pq,g=0,M=new ji,Q=this,ca=function(a){setTimeout(function(){g>=q.length?Q.Rp(String.fromCharCode.apply(String,M.digest()),A):(M.update(HD(q[g++])),ca(a))},
a)};ca(this.tO);this.Qq=[];this.Pq=0}}};d.p6=function(){var a=this,b=function(b){a.jT(b,this,void 0)};this.Qq=[];fe(window,"devicemotion",b);fe(window,"deviceorientation",b);for(var c=0;c<ID.length;c++){var e=ID[c];t(e)&&(fe(window,e,b),fe(document,e,b),document.documentElement&&fe(document.documentElement,e,b))}fe(window,"error",b)};d.Zx=0;
d.j_=function(){var a=this.Ze(),b=Math.abs(a-100-this.Zx)%100;this.Zx=a;b>this.gO&&(this.Yx.push([b,this.Ze(),Math.random()]),10<this.Yx.length&&(this.Rp(HD(b),5),this.Yx=[]))};d.q6=function(){this.Zx=this.Ze();this.Yx=[];var a=this,b=function(c){setTimeout(function(){a.j_();b(c)},c)};b(100)};
d.Rp=function(a,b){if(!this.Gp){a=this.gz+a;var c=new ji;c.update(a);a=String.fromCharCode.apply(String,c.digest());this.Ps+=b;this.Ps>=this.di?(c.reset(),c.update(this.LB+a+this.Sf),this.Sf=String.fromCharCode.apply(String,c.digest()),this.gz="",this.Ps=0,this.Yq=!0):this.gz=a}};d.XW=function(a){a=new window.Uint8Array(Math.min(65536,a));(window.crypto||window.msCrypto).getRandomValues(a);return[].slice.call(a)};
d.xX=function(a){var b=[];if(this.Gp)b=this.XW(a||1);else{if(0>this.di||0==this.Sf.length)throw new JD;var c=new ji;c.update(this.XO+this.Sf);var e=c.digest();null!==e&&(c.reset(),c.update(this.LB+this.Sf),this.Sf=String.fromCharCode.apply(String,c.digest()),b=e.slice(0,a||e.length))}return b};d.ZF=function(a){for(var b=[],c=0;b.length<a&&c<a*this.zO;)b.push.apply(b,this.xX(a-b.length)),c++;if(b.length<a)throw new JD;return b.slice(0,a)};var JD=function(){};x(JD,Error);JD.prototype.name="Insufficient Entropy";
var HD=function(a){if(window.JSON)try{return window.JSON.stringify(a)}catch(e){}var b=[],c;for(c in a)try{"object"==typeof a[c]?b.push(c,HD(a[c])):b.push(c,a[c])}catch(e){b.push(c,e.message)}return b.join(",")};var KD=function(){this.g=new cD("realtime.media.webrtc.Utils");this.Sa=new nC;this.rz=new GD(16,!1);this.zq={};this.Z_();this.YZ()},LD=new D({neon:1,sse2:2,ssse3:4,sse4_1:8,sse4_2:16,avx:32});d=KD.prototype;d.In=function(){var a=new Sq;a.z9(this.gX());a.A9(FD);a.n7(this.pU());a.p7(hi);this.lH()?a.fL("ARM"):(a.M7(6),a.O7(14),a.fL("GenuineIntel"),a.N7(this.i3(this.zq)),a.gA(this.zq.numOfProcessors));return a};
d.pU=function(){var a="Other";Pc?a="Opera":Qc?a="Internet Explorer":Hh?a="Firefox":Lh?a="Chrome":Mh&&(a="Safari");return a};d.gX=function(){var a="other";Yc?a="windows":Xc?a=-1!=Wc.indexOf("Intel")?"mac":"mac-ppc":0<=Tb.indexOf("CrOS")?a="cros":Zc&&(a="linux");return a};d.createOffer=function(a,b){var c=null,e=null;a&&(c=[new mA("AES_CM_128_HMAC_SHA1_80",this.uk(128,112),null,1)],e=this.gr());a=this.dU(c,e);b=this.IY(c,e,b);c=this.TU(c,e);return new tA(a,b,c)};
d.dU=function(a,b){var c=[new Zz("sa",103,"ISAC",0,16E3,1),new Zz("sa",111,"opus",0,48E3,2),new Zz("sa",0,"PCMU",64E3,8E3,1),new Zz("sa",8,"PCMA",64E3,8E3,1),new Zz("sa",106,"CN",0,32E3,1),new Zz("sa",105,"CN",0,16E3,1),new Zz("sa",13,"CN",0,8E3,1),new Zz("sa",126,"telephone-event",0,8E3,1)];a=null!=a?a:[new mA("AES_CM_128_HMAC_SHA1_80",this.uk(128,112),null,1),new mA("AES_CM_128_HMAC_SHA1_32",this.uk(128,112),null,2)];var e=[new oA("urn:ietf:params:rtp-hdrext:ssrc-audio-level",1,"sa"),new oA("http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time",
3,"sa")];b=null!=b?b:this.gr();return new qA("sa",c,a,e,b)};d.IY=function(a,b,c){var e=[new Zz("ua",100,"VP8",400,30,640),new Zz("ua",96,"rtx",void 0,9E4,1)];c&&e.push(new Zz("ua",97,"H264",400,30,640));a=null!=a?a:[new mA("AES_CM_128_HMAC_SHA1_80",this.uk(128,112),null,1)];c=[new oA("urn:ietf:params:rtp-hdrext:toffset",2,"ua"),new oA("http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time",3,"ua")];b=null!=b?b:this.gr();return new qA("ua",e,a,c,b)};
d.TU=function(a,b){var c=[new Zz("ta",101,"google-data")];a=null!=a?a:[new mA("AES_CM_128_HMAC_SHA1_80",this.uk(128,112),null,1),new mA("AES_CM_128_HMAC_SHA1_32",this.uk(128,112),null,2)];b=null!=b?b:this.gr();return new qA("ta",c,a,[],b)};d.gr=function(){var a=Th(this.dx(12)),b=Th(this.dx(18));return new pA("ICE",a,b)};d.uk=function(a,b){a=this.dx(Math.ceil((a+b)/8));return"inline:"+Th(a)};
d.dx=function(a){try{return this.rz.ZF(a)}catch(b){return this.g.da("Forced to collect entropy the slow way. This indicates a failure in js.crypto.random."),this.rz.HR(),this.rz.ZF(a)}};d.wN=function(a){kD.N().pn(v(function(b){b&&a&&a(b)},this))};d.lH=function(){return-1!=Wc.indexOf("armv7l")};d.i3=function(a){if(null==a)return this.g.da("Cannot get cpuFlags from null."),-1;var b=a.features;if(b){var c=0;z(b,function(a){c|=LD.get(a,0)});return c}return a.cpuHasSSE2?2:-1};
d.YZ=function(){this.wN(v(function(a){a&&this.t6(a)},this))};d.t6=function(a){this.zq=a;this.C$("scp",a)};d.Z_=function(){var a=this.d0("scp",v(this.YU,this));a&&(this.zq=a)};d.YU=function(){return this.lH()?{archName:"armv7l",modelName:"Unknown ARM device",numOfProcessors:2}:{archName:"x86",modelName:"Unknown x86 device",numOfProcessors:4}};d.C$=function(a,b){this.Sa.isAvailable()?this.Sa.set(a,lf(b)):this.g.error("Error in saving "+a+" to local storage.")};
d.d0=function(a,b){var c=null;if(this.Sa.isAvailable()){a=this.Sa.get(a);var e=null!=a;try{c=kf(a)}catch(f){e=!1}!e&&b&&(c=b())}else this.g.error("Error in retrieving cpu info from local storage.");return c};var MD=function(a){this.g=new cD("realtime.media.webrtc.DataPointManager");this.Ri=a;this.zH=new BD;this.Vn=-1;this.y0=new zD;this.ui=new yD;this.cca=new KD;this.Vh=null};d=MD.prototype;d.zaa=function(){this.Vh||(this.Vh=kD.N().qn())&&this.Vh.onMessage.addListener(v(this.ui.UP,this.ui))};d.Oaa=function(){this.Vh&&(this.Vh.disconnect(),this.Vh=null)};
d.XR=function(a,b,c){var e=new $p;z(a.result(),function(a){a.timestamp&&0<a.timestamp.getTime()&&this.ui.U4(a.timestamp);switch(a.type){case "ssrc":this.ul(this.Jz(a),b,e);break;case "VideoBwe":this.U2(this.Jz(a),e);break;case "googCandidatePair":this.Z2(this.Jz(a),e)}},this);this.cca.wN(v(this.n1,this,e,c))};
d.n1=function(a,b,c){var e=this.n3(a);3!=e?this.g.error("Uncompatible version number: "+e):(this.ui.XP(c),c=this.ui.WS(),0>c||(a.m$(Math.round(c)),this.Vn>=c&&this.g.da("Elapsed time in jmidata decreased from "+this.Vn+" to "+c),this.Vn=c,this.ui.yR(),b(a)))};
d.n3=function(a){var b=this.ui.toJson();if(null==b)return 0;u(b.tabCpuUsage)&&a.Q9(Math.round(b.tabCpuUsage));u(b.browserCpuUsage)&&a.o7(Math.round(b.browserCpuUsage));u(b.gpuCpuUsage)&&a.r8(Math.round(b.gpuCpuUsage));u(b.pluginCpuUsage)&&a.S$(Math.round(b.pluginCpuUsage));u(b.totalCpuUsage)&&a.H$(Math.round(b.totalCpuUsage));u(b.numOfProcessors)&&a.gA(Math.round(b.numOfProcessors));return this.eX(b.jmiVersion)};
d.ul=function(a,b,c){this.y0.k4(a,b,this.Ri);this.g.Db("SSRC: "+lf(a));if(null!=a){b=null!==a&&"audioInputLevel"in a||null!==a&&"audioOutputLevel"in a;var e=null!==a&&"bytesSent"in a,f=new fq;this.G3(a,f,e,b);b?this.T2(a,f,e):this.N3(a,f,e);this.Lba(a,f,e,b);this.aC(c,f)}};
d.G3=function(a,b,c,e){b.KL(e?1:2);b.Vd(c?0:1);u(a.ssrc)&&(b.pM(a.ssrc),b.y$([a.ssrc]));b.kA(Math.round(ED(a.fractionLost)));b.hL(Math.round(ED(a.packetsLost)));b.GL(Math.round(ED(a.highestSequenceNumber)));b.BL(Math.round(ED(a.googJitterReceived)));b.cp(Math.round(ED(a.googRtt)));b.$K(Math.round(ED(a.bytesSent)));b.ZL(Math.round(ED(a.packetsSent)));b.ZK(Math.round(ED(a.bytesReceived)));b.YL(Math.round(ED(a.packetsReceived)));c?null!=a.googCodecName&&b.o$(a.googCodecName):(null!=a.googCodecName&&
b.S9(a.googCodecName),u(a.oneWayDelayMs)&&b.u9(Math.round(a.oneWayDelayMs)),u(a.oneWayMaxDelayMs)&&b.v9(Math.round(a.oneWayMaxDelayMs)),u(a.oneWayStddevDelayMs)&&b.x9(Math.round(a.oneWayStddevDelayMs)),u(a.oneWayMinDelayMs)&&b.w9(Math.round(a.oneWayMinDelayMs)))};
d.T2=function(a,b,c){c?(u(a.aecDivergentFilterFraction)&&b.d7(a.aecDivergentFilterFraction),u(a.audioInputLevel)&&b.qL(Math.round(a.audioInputLevel)),u(a.googEchoCancellationEchoDelayMedian)&&b.c8(Math.round(a.googEchoCancellationEchoDelayMedian)),u(a.googEchoCancellationEchoDelayStdDev)&&b.d8(Math.round(a.googEchoCancellationEchoDelayStdDev)),u(a.googEchoCancellationReturnLoss)&&b.e8(Math.round(a.googEchoCancellationReturnLoss)),u(a.googEchoCancellationReturnLossEnhancement)&&b.f8(Math.round(a.googEchoCancellationReturnLossEnhancement)),
u(a.googEchoCancellationQualityMin)&&b.b8(a.googEchoCancellationQualityMin)):(u(a.audioOutputLevel)&&b.qL(Math.round(a.audioOutputLevel)),u(a.googPreferredJitterBufferMs)&&b.L9(Math.round(a.googPreferredJitterBufferMs)),u(a.googCurrentDelayMs)&&b.O$(Math.round(a.googCurrentDelayMs)),u(a.googExpandRate)&&b.j8(a.googExpandRate),u(a.googSpeechExpandRate)&&b.w$(a.googSpeechExpandRate),u(a.googPreemptiveExpandRate)&&b.K9(a.googPreemptiveExpandRate),u(a.googAccelerateRate)&&b.a7(a.googAccelerateRate),u(a.googSecondaryDecodedRate)&&
b.l$(a.googSecondaryDecodedRate),u(a.googDecodingCTSG)&&b.l9(Math.round(a.googDecodingCTSG)),u(a.googDecodingCTN)&&b.k9(Math.round(a.googDecodingCTN)),u(a.googDecodingNormal)&&b.n9(Math.round(a.googDecodingNormal)),u(a.googDecodingPLC)&&b.o9(Math.round(a.googDecodingPLC)),u(a.googDecodingCNG)&&b.m9(Math.round(a.googDecodingCNG)),u(a.googDecodingPLCCNG)&&b.p9(Math.round(a.googDecodingPLCCNG)))};d.Lba=function(a,b,c){a=this.zH.Kba(a,this.Vn,c);null!=a&&(b.kA(a.j0),c?b.xM(a.yC):b.Y9(a.yC))};
d.N3=function(a,b,c){c?(u(a.googFirsReceived)&&b.uL(Math.round(a.googFirsReceived)),u(a.googNacksReceived)&&b.PL(Math.round(a.googNacksReceived)),u(a.googFrameRateInput)&&b.vL(Math.round(a.googFrameRateInput)),u(a.googFrameRateSent)&&b.wL(Math.round(a.googFrameRateSent)),u(a.googFrameWidthSent)&&b.oj(Math.round(a.googFrameWidthSent)),u(a.googFrameHeightSent)&&b.ij(Math.round(a.googFrameHeightSent)),u(a.googQpSent)&&b.dM(Math.round(a.googQpSent)),u(a.googAdaptationChanges)&&b.c7(Math.round(a.googAdaptationChanges)),
u(a.googAvgEncodeMs)&&b.k7(Math.round(a.googAvgEncodeMs))):(u(a.googFirsSent)&&b.uL(Math.round(a.googFirsSent)),u(a.googNacksSent)&&b.PL(Math.round(a.googNacksSent)),u(a.googFrameRateOutput)&&b.vL(Math.round(a.googFrameRateOutput)),u(a.googFrameRateReceived)&&b.wL(Math.round(a.googFrameRateReceived)),u(a.googFrameRateDecoded)&&b.n8(Math.round(a.googFrameRateDecoded)),u(a.fpsGraphicsInput)&&b.o8(a.fpsGraphicsInput),u(a.fpsGraphicsOutput)&&b.p8(a.fpsGraphicsOutput),u(a.googFrameWidthReceived)&&b.oj(Math.round(a.googFrameWidthReceived)),
u(a.googFrameHeightReceived)&&b.ij(Math.round(a.googFrameHeightReceived)),u(a.googQpReceived)&&b.dM(Math.round(a.googQpReceived)));c&&b.UK(this.JR(a))};d.JR=function(a){var b=mq.yB,c=ND(a.googCpuLimitedResolution),e=ND(a.googBandwidthLimitedResolution);a=ND(a.googViewLimitedResolution);null!=c&&null!=e&&null!=a&&(c&&(b|=mq.xB),e&&(b|=mq.wB),a&&(b|=mq.zB));return b};
d.Z2=function(a,b){this.g.Db("CandidatePair: "+lf(a));if(null!=a){var c=b.ZE(),e=new gq;e.cp(Math.round(ED(a.googRtt)));e.N$(Math.round(ED(a.bytesSent)));u(a.packetsSent)&&e.L$(Math.round(a.packetsSent));u(a.packetsDiscardedOnSend)&&e.K$(Math.round(a.packetsDiscardedOnSend));e.M$(Math.round(ED(a.bytesReceived)));e.l8(this.LR(a));var f=new Qp,g=new Qp;this.Y2(a,f,g);e.b$(f);e.a$(g);e.wt(f.Ya());a=this.zH.Cba(a,this.Vn);e.t7(a?a.P6:-1);e.s7(a?a.W4:-1);c.push(e);b.J7(c)}};
d.LR=function(a){var b=0;"true"==a.googActiveConnection&&(b|=1);"true"==a.googWritable&&(b|=2);"true"==a.googReadable&&(b|=4);return b};d.Y2=function(a,b,c){b.zL(a.googLocalAddress||"");c.zL(a.googRemoteAddress||"");var e=a.googChannelId,f=0;Da(e,"Channel-audio-")?f=1:Da(e,"Channel-video-")&&(f=2);b.kj(f);c.kj(f);e={local:1,stun:2,relay:3};b.wt(e[a.googLocalCandidateType]||0);c.wt(e[a.googRemoteCandidateType]||0);a={udp:1,tcp:2,ssltcp:3}[a.googTransportType]||0;b.Bt(a);c.Bt(a)};
d.U2=function(a,b){this.g.Db("Bwe: "+lf(a));if(null!=a){var c=new fq;c.KL(2);c.Vd(2);u(a.googAvailableSendBandwidth)&&c.j7(Math.round(a.googAvailableSendBandwidth));u(a.googAvailableReceiveBandwidth)&&c.i7(Math.round(a.googAvailableReceiveBandwidth));u(a.googTransmitBitrate)&&c.xM(Math.round(a.googTransmitBitrate));u(a.googRetransmitBitrate)&&c.f$(Math.round(a.googRetransmitBitrate));u(a.googBucketDelay)&&c.K8(Math.round(a.googBucketDelay));c.kA(-1);c.hL(-1);c.GL(-1);c.BL(-1);c.cp(-1);c.$K(-1);c.ZL(-1);
c.ZK(-1);c.YL(-1);this.aC(b,c)}};d.Jz=function(a){var b={};z(a.names(),function(c){var e=a.stat(c);null!=e&&(isNaN(e)||t(e)&&Fa(e)||(e=Number(e)));b[c]=e});return b};d.aC=function(a,b){b=b||new fq;var c=a.Pg();c.push(b);a.R8(c);return b};d.eX=function(a,b){return u(a)?a:l(b)?b:-1};var ND=function(a){return"true"!=a&&"false"!=a?null:"true"==a};var OD=function(a,b,c,e,f,g,k){K.call(this);this.g=new cD("realtime.media.webrtc.Client");this.Ep=b;this.G=a;this.pk=c;this.wo=f;this.Wk=g;this.vv=l(k)?k:3;this.waa=new pD;this.Da=new Xh(this);this.ha(this.Da);this.Qo=this.m=null;this.fo={};this.mQ=v(this.l4,this);this.Sk=Te();this.Rk=!1;this.ZJ=[];this.Rs=[];this.Ri=e;this.Tv=new MD(this.Ri);this.ON={};this.Wn=w();this.EH=0;this.af=!1;this.gu=1;this.dy={local:!1,remote:!1};this.Qj={};this.Is={};this.remoteDescription=this.localDescription=null;this.ho=
{};this.PJ=[];this.GK=new xD;this.FK=new wD;this.hu=null;this.yd=[];this.Nh=null;this.Qs=!1};x(OD,K);var PD=null,QD=null,RD=!Lh||0<=Ta(hi,40)?100:200,SD={sa:"audio",ua:"video",ta:"data"},TD={sa:0,ua:1,ta:2};d=OD.prototype;
d.stopSession=function(a){null!=this.m&&(this.tN(),"closed"!=this.m.signalingState&&this.m.close());this.Nh&&(this.Nh.stop(),this.Qs=!1,this.Wn=0,this.dispatchEvent(new UD(a)));this.Tv.Oaa();this.Qo=null;for(var b in this.ho)this.ho[b].vb.promise.then(window.URL.revokeObjectURL);this.Ev(0)};d.ih=function(a){this.ON[a]||(this.ON[a]=!0,this.dispatchEvent(new VD(this.G,a)))};
d.Gy=function(a){if(null!=a){this.g.Db("Got local candidate: "+a.candidate);var b=this.GK.W2(a);this.Sk.promise.then(function(){this.dispatchEvent(new WD(this.G,[b]))},null,this);a=b.O();this.ih("send candidate "+a)}};d.dE=function(a){var b=this.GK.parse(a.sdp);a=b.getData().Ma().Jh;b=b.getData().Ma().rh;null!=a&&null!=b?(this.dispatchEvent(new XD(this.G,a,b)),this.Sk.resolve({yp:a,Bo:b}),this.Rk=!0):(this.g.error("Browser's offer has no ICE credentials."),y())};d.x2=function(a){this.dE(a);this.et()};
d.W0=function(a){var b=a.getAudioTracks();a.getVideoTracks();var c=a.id,e=this.HM(a.id);0<b.length?this.wo&&(a=new oD(this.pk,a),this.Qj[c]=a,(e=this.gU(this.remoteDescription,e.bm))?(this.fo[c]=e,this.Ri.S4(e,a)):this.g.da("Participant left before their audio was added")):(e=this.ho,b={vb:Te(),rE:!1},c=c in e?e[c]:e[c]=b,a=window.URL.createObjectURL(a),c.vb.resolve(a),c.rE=!0)};
d.v2=function(a){if(null!=a){var b=a.id;if(0<a.getAudioTracks().length){var c=this.Qj[b];if(null!=c){var e=this.fo[b];e&&(delete this.fo[b],this.Ri.SJ(e,c));Od(c);delete this.Qj[b]}else this.g.error("Audio stream was deleted before removal.")}0<a.getVideoTracks().length&&(a=this.ho[b],delete this.ho[b],null!=a?a.rE?this.g.error("Asked to remove stream that was never added."):a.vb.promise.then(window.URL.revokeObjectURL):this.g.error("Video stream was deleted before removal."))}else this.g.error("Stream remove handler called with null stream.")};
d.ad=function(a){this.g.info("Adding capture="+a);var b=this.yd;gb(b,a)||b.push(a);this.Da.listen(a,"za",this.JG);return(b=a.Ya(this.G))?this.zN(b,a.ba().O()):this.nW(a.ba().O())};d.ue=function(a){this.g.info("Removing capture="+a);var b=a.Ya(this.G);b&&this.m.removeStream(b);lb(this.yd,a);this.Da.vd(a,"za",this.JG)};d.uW=function(a,b){return eb(a.Jd(),function(a){return a.ya()==b})};d.JG=function(a){a=a.target;var b=a.Ya(this.G);b&&this.zN(b,a.ba().O())};
d.zN=function(a,b){var c,e,f;switch(b){case "sa":c=a.getAudioTracks();e=this.localDescription.U;f="1";break;case "ua":c=a.getVideoTracks();e=this.localDescription.wa;f="2";break;default:return this.g.error("Unsupported media type encountered."),null}if(null==e)return this.g.error("MediaDescription cannot be null."),null;var g=a.id+"/"+c[0].id;f=this.uW(e,f).XN(g);this.g.info("New stream set on PeerConnection, type: "+b+", streamId = "+g+", tracks = "+c.length.toString());this.localDescription="sa"==
b?this.localDescription.Xd(e.He([f])):this.localDescription.tg(e.He([f]));!this.af&&this.m&&this.m.addStream(a);this.et();return f};d.Faa=function(){this.ih("send initiate");this.nK()};
d.createOffer=function(a){var b=a.Ep?PD:QD;null==b&&(this.g.error("PeerConnection must be initialized prior to using it.  Using an empty local offer."),y("PeerConnection must be initialized prior to using it.  Using an empty local offer."),b=new tA);var c=a.Ka?[8579373]:this.fr(1),c=new vA("sa","","1",this.Pv("1"),c,[]),e=a.pB?3:1,f=a.Ka?[8579374]:this.fr(e),g=[];1<f.length&&(e=new uA("SIM",f),g.push(e));e=!1;if(a.NN&&(e=-1!=db(b.wa.sc(),function(a){return"rtx"==a.getName()})))for(var k=a.Ka?[8579375]:
this.fr(f.length),p=0;p<k.length;p++){var q=new uA("FID",[f[p],k[p]]);f.push(k[p]);g.push(q)}f=new vA("ua","","2",this.Pv("2"),f,g);g=this.fr(1);g=new vA("ta","","3",this.Pv("3"),g,[]);b=this.IR(b,[c],[f],[g]);b=this.ET(b,e,a.jC);(c=b.U)&&(b=b.Xd(c.Hj(B(c.sc(),function(a){return a.VN([])}))));a.jm||(b=b.Xd(null));a.km||(b=b.tg(null));a.oB||(b=b.Ij(null));return this.localDescription=b};d.fr=function(a){for(var b=[],c=0;c<a;c++)b.push(this.waa.gS());return b};
d.IR=function(a,b,c,e){null!=a.U&&0==a.U.Jd().length&&(a=a.Xd(a.U.He(b)));null!=a.wa&&0==a.wa.Jd().length&&(a=a.tg(a.wa.He(c)));null!=a.getData()&&0==a.getData().Jd().length&&(a=a.Ij(a.getData().He(e)));return a};d.Pv=function(a){return this.G+"/"+a};
d.ET=function(a,b,c){var e=a.wa;if(null!=e){var f=e.sc(),g=[],f=ab(f,function(a){var e=a.getName();(e=0==Ha(e,"VP8")||0==Ha(e,"H264-SVC")||b&&0==Ha(e,"rtx")||c&&0==Ha(e,"h264"))&&g.push(a.oh);return e}),f=ab(f,function(a){var b=a.getName();a=eb(a.An(),function(a){return 0==Ha(a.getKey(),"apt")});b=0==Ha(b,"rtx");a=a&&gb(g,Ua(a.hc()));return!b||!!a});a=a.tg(e.Hj(f))}return a};
d.nW=function(a){var b;switch(a){case "sa":b=this.localDescription.U;break;case "ua":b=this.localDescription.wa;break;case "ta":b=this.localDescription.getData()}return null!=b?b.Jd()[0]:null};
var YD=function(a){return new webkitRTCPeerConnection({iceServers:[{url:"stun:stun.l.google.com:19302"},{url:"stun:stun1.l.google.com:19302"},{url:"stun:stun2.l.google.com:19302"},{url:"stun:stun3.l.google.com:19302"},{url:"stun:stun4.l.google.com:19302"}],bundlePolicy:"max-bundle"},{mandatory:{RtpDataChannels:!0,DtlsSrtpKeyAgreement:a},optional:[]})},ZD=function(a){var b=YD(a),c=Te();if(null!=b){var e=b.createDataChannel("sendDataChannel",{reliable:!1});b.createOffer(function(a){e.close();null!=
a&&null!=a.sdp?(a=(new xD).parse(a.sdp),c.resolve(a.Ij(a.getData().He([])))):c.resolve(null)},function(){c.resolve(null)},{mandatory:{OfferToReceiveAudio:!0,OfferToReceiveVideo:!0}});c.promise.au(function(){null!=b&&"closed"!=b.signalingState&&b.close();b=null});return c.promise}c.resolve(null);return c.promise},$D=function(){var a=ZD(!0).then(function(a){PD=a}),b=ZD(!1).then(function(a){QD=a});return Re([a,b]).then(function(a){return bb(a,sa)?2:7})};d=OD.prototype;
d.nK=function(){null!=this.m&&(this.tN(),"closed"!=this.m.signalingState&&this.m.close(),this.Ev(0));this.Rk&&(this.Sk=Te(),this.Rk=!1);this.g.Db("Instantiating new PeerConnection");this.m=YD(this.Ep);this.e5();this.gu=1;this.m.onicecandidate=v(function(a){this.Gy(a.candidate)},this);this.m.oniceconnectionstatechange=v(this.F1,this);this.m.onaddstream=v(function(a){this.W0(a.stream)},this);this.m.onremovestream=v(function(a){this.v2(a.stream)},this);this.m.ondatachannel=v(function(a){this.q1(a.channel)},
this);this.Qo=this.m.createDataChannel("sendDataChannel",{reliable:!1});this.Qo.onopen=v(function(){this.g.Db("send datachannel is open.")},this);this.Qo.onclose=v(function(){this.g.Db("send datachannel is closed.")},this);this.Qo.onerror=v(function(a){this.g.da("send datachannel error: "+a)},this);this.Rs=pb(this.ZJ);this.YV();this.Tv.zaa();this.Nh||(this.Nh=new Ye(RD),this.Da.listen(this.Nh,"tick",this.r0),3==this.vv&&this.Nh.start())};
d.YV=function(){this.g.info("Requesting initial ICE credentials from the browser.");this.m.createOffer(v(this.dE,this),y,{mandatory:{OfferToReceiveAudio:!0,OfferToReceiveVideo:!0}})};d.b6=function(){this.g.info("Initiating ICE restart.");this.Sk=Te();this.Rk=!1;this.m.createOffer(v(this.x2,this),y,{mandatory:{OfferToReceiveAudio:!0,OfferToReceiveVideo:!0,IceRestart:!0}})};
d.F1=function(){this.g.Db("ICE connection state changed to: "+this.m.iceConnectionState);if("disconnected"==this.m.iceConnectionState)this.ih("transport not writable"),this.dispatchEvent(new aE(!1)),this.Rk?this.b6():this.g.da("Redundant disconnected state change");else if("connected"==this.m.iceConnectionState||"completed"==this.m.iceConnectionState)this.Ev(2),this.ih("transport writable"),this.dispatchEvent(new aE(!0))};d.r0=function(){!this.Nh.enabled&&3==this.vv||this.Qs||(this.Qs=!0,this.m.getStats(this.mQ))};
d.l4=function(a){this.Qs=!1;this.$ba(a);var b=w();if(1E4<=b-this.Wn){this.Wn=0==this.Wn?b:this.Wn+1E4;var b=bb(this.yd,function(a){return"ua"==a.ba().O()&&!a.Xr()}),c=bb(this.yd,function(a){return"wa"==a.ba().ed});this.Tv.XR(a,!b,v(function(a){c&&z(a.Pg(),function(a){a.Jc()==lq.Pp&&a.wn()==kq.Ju&&a.D8(c)},this);this.dispatchEvent(new bE(a))},this))}};
d.$ba=function(a){var b=w();if(!(1E3>b-this.EH)){this.EH=b;var c=b=!1;a=a.result();for(var e=0;e<a.length;++e){var f=a[e];if("ssrc"==f.type){var g=f.names();if(gb(g,"packetsReceived")){var k=Number(f.stat("ssrc"));this.Is[k]=this.Is[k]||0;f=Number(f.stat("packetsReceived"));0>=f-this.Is[k]||(this.Is[k]=f,gb(g,"audioOutputLevel")?b=!0:gb(g,"googFrameRateReceived")&&(c=!0))}}}this.dispatchEvent(new cE(b,c))}};
d.gU=function(a,b){return null!=a.U&&(a=a.U.Jd(),a=eb(a,function(a){return a.gc()==b}),null!=a&&(a=a.Sc(),0!=a.length))?a[0]:null};
d.vm=function(a){z(a,function(a){var b=a.J(),e;e=SD[b];var f=TD[b],g=a.hi(),k=a.Rg(),p=a.Ck(),q=a.Eb(),A=a.Fo,M=a.Go,Q=a.O(),ca=Jb(uD)[Q],Vb=a.mi(),Gb=a.Ak();a=[a.gn,g,k.toLowerCase(),Vb,p,q,"typ",ca];switch(Q){case "LOCAL":"TCP"==k&&a.push("tcptyp","active");break;case "STUN":case "RELAY":case "PEER_REFLEX":a.push("raddr",A,"rport",M);break;default:y("Unexpected candidate type: "+Q)}a.push("generation",Gb);e=new RTCIceCandidate({sdpMid:e,sdpMLineIndex:f,candidate:"candidate:"+a.join(" ")});null!=
e&&(this.ih("recv candidate "+b),this.Rk&&null!=this.remoteDescription?this.m.addIceCandidate(e):this.Rs.push(e),this.ZJ.push(e))},this)};d.setLocalDescription=function(a){this.ih("recv local description");this.localDescription=a;this.pz("offer",a)};d.Naa=function(){1==this.gu&&4!=this.vv&&(this.hu=Ze(function(){1==this.gu&&(this.g.error("Transport writable timeout failed, aborting."),this.dispatchEvent(new dE(27,this.G)))},55E3,this))};
d.Ev=function(a){null!=this.hu&&($e(this.hu),this.hu=null,this.gu=a)};d.setRemoteDescription=function(a){this.ih("recv remote description");var b=null==this.remoteDescription;this.remoteDescription=a;b&&(this.Naa(),this.HJ("answer",a));b&&!this.zS(a)||this.et()};d.nL=function(a,b){b==this.m&&(this.dy[a]=!1,"remote"==a&&(z(this.Rs,function(a){this.m.addIceCandidate(a)},this),this.Rs.length=0))};
d.mL=function(a,b,c,e){this.g.error(a+" SDP setting failed with error: "+e);this.g.info("The failed SDP blob was:\n"+c);"closed"==b.signalingState?this.g.da("Ignoring SDP error from closed PeerConnection:"+e):this.dy[a]?(this.g.error("Two session description failures, aborting."),this.dispatchEvent(new dE(19,this.G,e)),this.g.Db("Requesting log upload on flute error.")):(this.dy[a]=!0,this.g.da("Resetting PeerConnection due to set*Description failure fallback"),this.nK(),this.et())};
d.pz=function(a,b){this.Sk.promise.then(v(this.s4,this,a,b))};
d.s4=function(a,b,c){if("closed"==this.m.signalingState)this.g.da("Ignoring Local Descriptions for closed PeerConnection");else{var e=b.U.Ma().Kp(c.yp).Ip(c.Bo),e=b.U.Jp(e);b=b.Xd(e);e=b.wa.Ma().Kp(c.yp).Ip(c.Bo);e=b.wa.Jp(e);b=b.tg(e);e=b.getData().Ma().Kp(c.yp).Ip(c.Bo);e=b.getData().Jp(e);b=b.Ij(e);bb(this.yd,function(a){return"sa"==a.ba().O()})||(b=b.Xd(b.U.He([])));bb(this.yd,function(a){return"ua"==a.ba().O()})||(b=b.tg(b.wa.He([])));b=this.FK.toSdp(b);try{this.m.setLocalDescription(new RTCSessionDescription({type:a,
sdp:b}),v(this.nL,this,"local",this.m),v(this.mL,this,"local",this.m,b))}catch(f){throw this.g.error("setLocalDescription exception: "+f.message),this.g.info("The offending SDP blob was:\n"+b),f;}}};d.HJ=function(a,b){this.Sk.promise.then(v(this.t4,this,a,b))};
d.t4=function(a,b){var c=[];this.Wk&&c.push("conference");b=this.FK.toSdp(b,c);try{this.m.setRemoteDescription(new RTCSessionDescription({type:a,sdp:b}),v(this.nL,this,"remote",this.m),v(this.mL,this,"remote",this.m,b))}catch(e){throw this.g.error("setRemoteDescription exception: "+e.message),this.g.info("The offending SDP blob was:\n"+b),e;}};d.zS=function(a){a=a.getData();return null==a?!1:null!=eb(a.Jd(),function(a){return 0!=a.Sc().length})};
d.Q3=function(){var a=this.m.getLocalStreams();z(a,function(a){this.m.removeStream(a)},this);this.af=!0};d.d6=function(){z(this.yd,function(a){(a=a.Ya(this.G))&&this.m.addStream(a)},this);this.af=!1};d.et=function(){this.g.info("Renegotiating peer connection.");null!=this.remoteDescription?(this.HJ("offer",this.remoteDescription),this.pz("answer",this.localDescription)):null!=this.localDescription&&this.pz("offer",this.localDescription)};
d.L=function(){for(var a in this.Qj){var b=this.Qj[a],c=this.fo[a];c&&(delete this.fo[a],this.Ri.SJ(c,b));Od(b)}this.Qj={};Od(this.Ri);null!=this.m&&"closed"!=this.m.signalingState&&this.m.close();this.m=null;OD.S.L.call(this)};d.yf=function(){this.ih("recv view request")};
d.q1=function(a){this.PJ.push(a);a.onopen=v(function(a){this.g.Db("receive datachannel "+a.label+" is open.")},this,a);a.onclose=v(function(a){this.g.Db("receive datachannel "+a.label+" is closed.");this.TD(a)},this,a);a.onerror=v(function(a,c){this.g.da("receive datachannel "+a.label+" threw error: "+c);this.TD(a)},this,a);a.onmessage=v(this.r1,this,a)};d.TD=function(a){lb(this.PJ,a)};d.r1=function(a,b){b=b.data;a=this.HM(a.label);null!=b&&this.dispatchEvent(new eE(this.G,a.groupId,a.bm,b))};
d.HM=function(a){a=a.split("/");return{groupId:decodeURIComponent(a[0]),bm:decodeURIComponent(a[1])}};d.e5=function(){this.Da.listen(this.m,"signalingstatechange",this.eJ)};d.tN=function(){this.Da.vd(this.m,"signalingstatechange",this.eJ)};d.eJ=function(a){a.target==this.m&&"closed"==this.m.signalingState&&this.dispatchEvent(new dE(4,this.G))};var cE=function(a,b){J.call(this,"Fa");this.Vs=a;this.Ws=b};x(cE,J);var bE=function(a){J.call(this,"Ja");this.Pe=a};x(bE,J);
var UD=function(a){J.call(this,"Ka");this.Bb=a};x(UD,J);var WD=function(a,b){J.call(this,"Ha");this.sessionId=a;this.Hm=b};x(WD,J);var VD=function(a,b){J.call(this,"Ga");this.sessionId=a;this.message=b};x(VD,J);var XD=function(a,b,c){J.call(this,"La");this.sessionId=a;this.yp=b;this.Bo=c};x(XD,J);var aE=function(a){J.call(this,"Ma");this.bs=a};x(aE,J);var eE=function(a,b,c,e){J.call(this,"Da");this.sessionId=a;this.ra=b;this.bm=c;this.payload=e};x(eE,J);
var dE=function(a,b,c){J.call(this,"Ea");this.Bb=a;this.sessionId=b;this.Fg=c};x(dE,J);var fE=function(a,b,c,e){cA.call(this);this.g=new cD("realtime.media.webrtc.LocalSession");this.G=a;this.QN=b;this.m=c;this.aa=e;this.B=new Xh(this);this.ha(this.B);this.B.listen(this.m,"Da",this.b2);this.B.listen(this.m,"Ea",this.c2);this.B.listen(this.m,"Fa",this.d2);this.B.listen(this.m,"Ga",this.e2);this.B.listen(this.m,"Ha",this.f2);this.B.listen(this.m,"Ja",this.h2);this.B.listen(this.m,"Ka",this.g2);this.B.listen(this.m,"La",this.i2);this.B.listen(this.m,"Ma",this.j2);this.D="IN";this.yd=new Jc;
this.nS=[];this.ai=void 0;this.Kt=!1;this.lo=this.Qm()};x(fE,cA);d=fE.prototype;d.Ob=function(a,b,c){this.D!=a&&(this.D=a,!u(this.ai)&&u(b)&&(this.ai=b),this.dispatchEvent(new Rz(this.D,this.ai,c)))};d.getState=function(){return this.D};d.s=function(){return this.G};d.Xe=function(){return this.lo};d.Qm=function(){return this.m.createOffer(this.aa)};
d.lc=function(){if("IN"!=this.D)return this.g.da("Called prepare in a bad state."),!1;QC.N().Zl(this.G);this.Daa();this.m.Faa();this.m.setLocalDescription(this.lo);this.Ob("ST");return!0};d.start=function(a){if("ST"!=this.D)return this.g.da("Called start in a bad state."),!1;a=this.AS(a);this.KK("RemoteSessionId: "+a.s());this.Ob("IP");this.tq(this.nS);this.tA(a);return!0};d.connect=function(){z(this.yd.C(),function(a){a.NA()})};
d.update=function(a){switch(this.D){case "IN":return this.g.da("Update called before started."),!1;case "SP":return this.g.da("Update called after stopped."),!1}this.tA(a);return!0};d.stop=function(a,b){if("SP"==this.D)return!1;this.Ob("SP",a,b);this.m.stopSession(this.ai);this.Qaa();return!0};d.pause=function(){if("IP"!=this.getState())return!1;this.m.Q3();this.Ob("PD");return!0};d.resume=function(){if("PD"!=this.getState())return!1;this.m.d6();this.Ob("IP");return!0};
d.Cp=function(){this.Kt=!0;var a=kD.N().lu();a.na(function(){this.g.Db("Extension logging upload requested for "+this.G)},this);a.nc(function(a){this.g.da("Extension logging requested failed for session: "+this.G+", error: "+a)},this)};d.vm=function(a){this.m.vm(a)};
d.ad=function(a){var b=a.ba().O();switch(this.D){case "SP":case "FN":return this.g.da("Add local stream called after ended."),null}if(this.yd.contains(a))return this.g.error("Capture "+a+" has already been added."),null;a.WJ(this.G);var c=this.m.ad(a);if(null==c)return this.g.error("A stream for capture of type: "+b+", was not created."),null;this.yd.add(a);return c};d.ue=function(a){switch(this.D){case "SP":this.g.da("Remove local stream called after stopped.")}this.m.ue(a);a.fB(this.G);this.yd.remove(a)};
d.tq=function(){};d.an=function(){};d.Wo=function(a){null!=a.U&&this.tA(a)};d.XM=function(){return!0};d.WM=function(){return!0};d.d2=function(a){this.dispatchEvent(new dA(a.Vs,a.Ws))};d.f2=function(a){a.sessionId==this.G&&this.dispatchEvent(new eA(a.Hm))};d.e2=function(a){a.sessionId==this.G&&this.dispatchEvent(new fA(a.message))};d.h2=function(a){this.dispatchEvent(new gA(a.Pe))};d.g2=function(a){this.dispatchEvent(new hA(0,a.Bb))};d.c2=function(a){a.sessionId==this.G&&this.stop(a.Bb,a.Fg)};
d.i2=function(a){if(this.G==a.sessionId){var b=this.lo.U;a=b.Ma().Kp(a.yp).Ip(a.Bo);this.lo=this.lo.Xd(b.Jp(a))}};d.j2=function(a){this.dispatchEvent(new jA(a.bs))};d.b2=function(a){this.G==a.sessionId&&this.dispatchEvent(new iA(a.ra,a.payload))};d.KK=function(a){this.g.info("sendLogComment: "+a)};d.tA=function(a){if(null!=a.yl&&null!=a.getData()){var b=a.getData().He(ob(a.getData().Jd(),this.r4(a.yl)));a=a.Ij(b)}this.g.info("Session "+this.s()+" setting remote descriptions: "+lf(a.oa()));this.m.setRemoteDescription(a)};
d.r4=function(a){if(null!=a){var b=a.Vg();a=a.getChannelId()||"";return new vA("ta",a,"local_push_channel",b.toString(),[b],[])}return null};d.AS=function(a){null!=a.U&&1<a.U.Ic().length&&(a=a.Xd(a.U.su([a.U.Ic()[0]])));null!=a.wa&&1<a.wa.Ic().length&&(a=a.tg(a.wa.su([a.wa.Ic()[0]])));null!=a.getData()&&1<a.getData().Ic().length&&(a=a.Ij(a.getData().su([a.getData().Ic()[0]])));return a};
d.Daa=function(){var a=kD.N().Zl(this.G);a.na(function(){this.g.Db("Extension logging started for session: "+this.G)},this);a.nc(function(a){this.g.da("Extension logging failed to start for session: "+this.G+", error: "+a)},this)};d.Raa=function(){return Ne({reportId:"placeholder"})};
d.Qaa=function(){var a;this.Kt?(this.g.Db("Uploading logs for "+this.G),this.QN?(this.g.info("################# Save #################"),a=QC.N().Vba(this.G,this.QN)):this.g.da("Failed to upload beacause of missing user identifier.")):a=Ne();var b=this.Raa(this.Kt);b.then(function(a){this.Kt?this.g.info("Native log uploaded with report id: "+(a&&a.reportId)):this.g.info("Native log stopped.")},null,this).Ec(function(){this.g.da("Native log for "+this.G+" failed to upload.")},this);Re([a,b]).au(function(){QC.N().Paa(this.G)},
this)};var gE=function(a,b){this.ko=a;this.deviceId=null!=b?b:null};gE.prototype.Z=function(){return Hb(this)};gE.prototype.jca=function(a){var b=this.Z();b.ko=a;return b};gE.prototype.Cr=function(){var a={optional:[]};a.optional.push({sourceId:this.deviceId});return a};gE.prototype.toString=function(){return h.JSON.stringify(this)};var hE=function(a,b,c,e,f,g,k,p){gE.call(this,a,p);this.J0=b;this.minWidth=c;this.minHeight=e;this.n0=f;this.maxWidth=g;this.maxHeight=k};x(hE,gE);
hE.prototype.Cr=function(){var a=hE.S.Cr.call(this);a.optional.push({minRefreshRate:this.J0});a.optional.push({maxRefreshRate:this.n0});a.optional.push({minHeight:this.minHeight});a.optional.push({minWidth:this.minWidth});a.optional.push({maxHeight:this.maxHeight});a.optional.push({maxWidth:this.maxWidth});return a};var iE=function(a){xp.call(this,a);this.TS=new mh;this.pH=!1};x(iE,xp);rp(iE,xp,4);iE.prototype.Ld=function(){var a=this;return $D().then(function(b){a.pH=7==b;qC=a.Pb.get(pB).dF();return b})};iE.prototype.Qn=function(){return this.pH};iE.prototype.dk=function(a){return this.Qn()?new cD(a):null};iE.prototype.Dq=function(a,b,c,e){if(this.Qn()){c=a.get(pB);var f=a.zn(TC);null==f&&(f=new SC(a),a.xh(TC,f));a=new OD(b,e.Ep,this.TS,f,e.wo,e.nB);b=new fE(b,c.Jr(),a,e);b.ha(a);return b}return null};
var kE=function(a,b){dD.call(this,a,jE);this.kc=b};x(kE,dD);var jE=new hE(!1,30,320,180,30,640,360);kE.prototype.JL=function(a){this.kc=a;this.Bp()};kE.prototype.Bp=function(){this.NI(this.kc.clone());return Ne()};var lE=function(){};lE.prototype.a=E("mr.mirror.hangouts.ClientLoader");lE.prototype.load=function(a){I(this.a,"Loading gapi for realtime client");var b=window.gapi;b?a(b):(new ki("notneeded",void 0,void 0,!0,!1,void 0)).init().then(function(b){a(b)})};var mE=function(){};x(mE,lD);rp(mE,lD,2);mE.prototype.pn=function(a){var b=new nh;chrome.system.cpu.getInfo(function(a){b.callback(a)});return b.na(function(b){a(b)})};
mE.prototype.qn=function(){function a(a){if(void 0==c)zh.N().cl().then(function(a){if(a=a.La)a=a.ab.mediaSource,-1!=a.indexOf(":tab:")&&(a=a.split(":"),chrome.processes.getProcessIdForTab(parseInt(a[a.length-1],10),function(a){chrome.runtime.lastError||(c=a)}))});else{var e=a[c];if(e){var g=0,k=0,p=0,q;for(q in a){var A=a[q];"browser"==A.type?k=A.cpu:"gpu"==A.type?p=A.cpu:"extension"==A.type&&A.title==chrome.runtime.getManifest().name&&(g=A.cpu)}b({tabCpuUsage:e.cpu,browserCpuUsage:k,gpuCpuUsage:p,
pluginCpuUsage:g})}}}if(!chrome.processes)return null;var b=n,c;return{onMessage:{addListener:function(c){b=c;chrome.processes.onUpdated.addListener(a)}},disconnect:function(){chrome.processes.onUpdated.removeListener(a);b=n}}};var nE={PB:0,EB:1},oE=function(a){Fg("MediaRouter.Hangouts.Start.Success",a,nE)};var pE={SUCCESS:0,jO:100,ffa:101,Gfa:102,Hfa:103,sca:200,Eca:221,dO:201,Tca:202,Yca:203,Oda:204,Qda:205,Eea:206,Fea:207,Hea:208,Rea:209,IO:210,bfa:211,Pea:222,uga:223,dfa:212,vfa:213,ufa:214,Afa:215,Kfa:216,Mfa:217,rga:218,USER_CANCELED:219,Bga:220,vda:224,afa:225,Zea:226,pga:227,kda:228,Xda:229,rfa:230,$ea:231,mea:232,uea:233,vea:234,yfa:235,Sea:236,Aca:237,zca:238,uda:239,Uea:240,Nca:300,Vca:301,hda:302,qea:303,sea:304,Kea:305,Lfa:306,Rfa:307,oda:308,Wfa:309,nea:310,xda:311,Jfa:312,Ifa:313,rea:314,
hea:315,pda:316,Tda:317,$ca:318,Fca:319,Yea:320,cfa:321,qga:322,kea:323};var rE=function(a){a.yi(np)||a.xh(np,qE.N())},qE=function(){this.a=E("realtime.analytics.ImpressionLogger")};qa(qE);qE.prototype.el=function(a,b,c,e,f,g,k){a="Impression: "+a;b&&(a+=" SID: "+b);c&&(a+=" PLID: "+c);e&&(a+=" HID: "+e);f&&(a+=" TS: "+f);g&&(a+=" XN: "+g);k&&(a+=" XS: "+k);H(this.a,a)};var sE=function(){K.call(this)};x(sE,K);sE.prototype.Er=r;var tE=function(a,b,c){J.call(this,a);this.ia=b;this.uaa=c};x(tE,J);tE.prototype.v=function(){return this.ia};tE.prototype.Er=function(){return this.uaa};var vE=function(a,b,c){I(uE,"Asynchronously loading appContext service ("+b+")");var e=Te();try{null!=c&&va(c)&&c(a),a.wk(b).then(function(a){e.resolve(a)},function(a){F(uE,"Error getting service ("+b+"): "+a);e.reject(a)})}catch(f){F(uE,"Exception thrown getting service ("+b+")",f),e.reject(f)}return e.promise},uE=E("realtime.util.AsyncServiceResolver");var wE=function(a,b){J.call(this,"Pa");this.ra=a;this.data=b};x(wE,J);var xE=function(a){J.call(this,"Qa");this.data=a};x(xE,J);var yE=function(a){this.Ha=a;xs(this)};yE.prototype.Te=function(){var a=new lA(-1,-1,-1);this.ec.Te(a);return a};var zE=function(){};x(zE,pp);qp(zE,yE);zE.prototype.Te=function(a){a=a?a:function(){};a.AI=!0;return a}();var AE=function(){K.call(this)};x(AE,K);AE.prototype.Rz=r;var BE=function(a){J.call(this,"Ra");this.Kz=pb(a)};x(BE,J);var CE=function(a,b,c,e,f){wA.call(this);this.a=E("realtime.media.session.SessionImpl");this.g=b.dk("realtime.media.session.SessionImpl");this.g.info("Creating a new session with localSessionId="+c.s()+" remoteSessionId="+e.vc()+" earlyMediaHangoutId="+f.Ed+" P2P="+f.Ka+" useAudio="+f.jm+" useVideo="+f.km);this.$g=vE(a,np,rE);this.B=new Xh(this);this.ha(this.B);this.P=c;this.ha(this.P);this.B.listen(this.P,"G",this.p1);this.B.listen(this.P,"J",this.Hy);this.B.listen(this.P,"H",this.S1);this.B.listen(this.P,
"I",this.L1);this.B.listen(this.P,"L",this.N1);this.B.listen(this.P,"K",this.M1);this.B.listen(this.P,"A",this.QI);this.B.listen(this.P,"N",this.L2);this.$a=e;this.ha(this.$a);this.B.listen(this.$a,"A",this.bJ);this.B.listen(this.$a,"Q",this.Ly);this.B.listen(this.$a,"U",this.T1);this.B.listen(this.$a,"E",this.u2);this.B.listen(this.$a,"D",this.My,!0);this.oz="";this.YG=!1;this.Ho=[];this.Bz=Te();this.To=Te();this.aa=f;this.qs={};this.Ko=this.Jo=null;this.lp=new D;this.fd=this.ay=null;this.Pj=new Vz;
this.$f=[];this.bg=[];this.$y={};this.ls=new Zh(20);this.Pr=this.xv=null;this.$x=w();this.by=w();this.Yp=!0;this.Do=this.pN=!1;this.pI=0;this.vh=b;a=(a=b.dd)&&a.fF()||new bB;this.gy=void 0;this.nD=new $z(a);this.B.listen(this.nD,"F",this.l1);this.Mq=Te();this.mD=this.Om=null};x(CE,wA);var DE=new dh(1280,720);d=CE.prototype;d.BF=function(){return this.P};d.Ik=function(){return this.$a};d.ym=function(a){this.aa.Xh||(this.aa=this.aa.SN(a),this.aa.Yh&&this.P.Cp())};
d.ar=function(){this.aa.Yh||(this.aa=this.aa.TN(),this.aa.Xh&&this.P.Cp())};d.an=function(a){this.P.an(a)};d.ox=function(){return null!=this.aa.Ed&&0<this.aa.je().length};
d.lc=function(){if("IN"!=this.getState())return G(this.a,"Starting session after already started."),!1;this.Ob("ST");if(null==this.P.Xe())return this.g.da(this.P.s()+" preparation failed because local session failed to create an offer."),!1;if(!this.P.lc())return this.g.da(this.P.s()+" preparation failed because because local session failed to prepare."),!1;this.P.an(this.aa.mr());this.aa.Ed&&this.aa.je().length&&this.g.info("Request early media for hangout "+this.aa.Ed);var a=this.ox()?this.aa.Ed:
null;return this.$a.lc(a)?!0:(this.g.da("Failed to prepare session because remote session failed to prepare."),!1)};
d.start=function(a){this.YG=!0;if("IN"==this.getState()&&!this.lc())return!1;this.ay=a;this.g.info(this.Ea()+" starting with remote description: "+lf(a));a.yl&&(this.oz=a.yl.getChannelId()||"");var b=a.U;null!=b&&(a=a.Xd(b.BJ("isac")),this.Ho=b.sc(),this.dispatchEvent(new CA(this.Ho)));this.fd=a;b=a.s();if(null==b)return G(this.a,"Received remote description without session id."),this.stop(16),!1;z(this.$f,function(b){a=a.ku(b.Wu,b.Iz)},this);hb(this.$f);this.va(b);this.$a.start(b);this.P.start(a);
this.Ob("SD");b=this.BE(a);0<b.length&&this.P.vm(b);this.Qt();this.vs();this.Bz.resolve();this.aa.Yh&&this.aa.Xh&&this.P.Cp();return!0};d.rb=function(){this.$a.rb();this.P.rb()};d.$j=function(a,b,c,e,f){this.g.info("Connecting session "+this.P.s()+" to hangout id: "+a);this.P.I(a);this.P.connect();this.$a.$j(a,b,c,e,f);this.Bz.promise.then(function(){this.$a.Cj(this.vh.In())},null,this)};
d.pause=function(){this.g.info("Attempting to pause session "+this.P.s());if("IP"!=this.getState())return!1;z(this.bg,function(a){"ta"!=a.getInfo().J()&&a.cc("ra")});if(!this.P.pause())return this.g.error("Failed to pause session "+this.P.s()),!1;this.wv();this.Ob("PD");return!0};
d.resume=function(){this.g.info("Attempting to resume session "+this.P.s());if("PD"!=this.getState())return!1;if(!this.P.resume())return this.g.error("Failed to resume session "+this.P.s()),!1;this.$a.resume();z(this.bg,function(a){"ta"!=a.getInfo().J()&&a.cc("qa")});this.dispatchEvent("X");this.Ob("IP");this.dispatchEvent(new BA([],[],this.Ea()));this.Qt();return!0};
d.stop=function(a,b){if("SP"==this.getState()||"FN"==this.getState())return this.g.info(this.P.s()+" ignoring call to stop with endCause: "+a+" and debug information: "+b+", because it has already stopped."),!0;this.g.info(this.P.s()+" stopping because stop called with endCause: "+a+" and debug information: "+b);this.B.vd(this.P,"A",this.QI);this.B.vd(this.$a,"A",this.bJ);this.B.vd(this.Jo,"Ra",this.cJ);this.B.vd(this.Ko,"Ra",this.dJ);var c;if(c=this.aa.Xh)a:switch(a){case 3:case 10:case 102:case 13:case 58:case 19:case 15:case 16:case 17:case 23:case 26:case 28:case 29:case 32:case 33:case 34:c=
!0;break a;default:c=!1}c&&this.P.Cp();this.wv();this.P.stop(a);this.$a.stop(a,b);this.Ob("SP",a,b);af(2E3).au(this.Mq.resolve,this.Mq);return!0};d.L=function(){this.stop(this.YG?6:72);this.Mq.promise.au(K.prototype.L,this)};
d.ad=function(a){switch(this.getState()){case "SP":case "FN":return G(this.a,"Adding stream after end."),!1}if(this.qs[this.Rw(a)])return a.aN(),!1;var b=this.P.ad(a);if(null==b)return!1;"ua"==a.ba().O()&&this.Bz.promise.then(function(){var a=[];if(this.aa.Ka){var b=this.fd.wa;null!=b&&(a=b.je())}else a.push(new FA("","","ua",DE,30,!0,this.s()||void 0));0<a.length&&this.MC(a)},null,this);this.$a.YB([b]);b=a.tD(this.Ea(),b);this.qs[this.Rw(a)]=b;this.dispatchEvent(new BA([b.getInfo()],[]));this.g.info(this.Ea()+
" successfully added capture: "+lf(a.oa()));return!0};d.Hd=function(){return this.aa};d.ue=function(a){switch(this.getState()){case "SP":case "FN":return G(this.a,"Removing stream after end."),!1}this.P.ue(a);delete this.qs[this.Rw(a)];return!0};d.jj=function(a){this.g.info(this.P.s()+" now has these participants: "+lf(a));if(this.aa.Ka){if(2<a.length){this.stop(51);return}if(2>a.length&&"IP"==this.getState()){this.stop(52);return}}this.$a.jj(a)};
d.E$=function(a){this.Jo=a;this.B.listen(this.Jo,"Ra",this.cJ)};d.Ob=function(a,b,c){this.g.info(this.P.s()+" changed state from "+this.getState()+" to "+a);c&&this.g.info("State change due to "+c);this.A$(a,b,c)};
d.yf=function(a){switch(this.getState()){case "SP":case "FN":return G(this.a,"Changing stream requests after end."),!1}a=ab(a,function(a){return null==this.CF(new IA(a.v(),a.ya(),a.J()))},this);z(a,function(a){this.g.info(this.Ea()+" received stream request for DOWN stream from UI: "+a)},this);if(null!=this.Jo)return this.Jo.Rz(a),!0;this.LC(a);return!0};d.cJ=function(a){this.rM(a.Kz);this.LC(a.Kz)};
d.LC=function(a){this.$a.yf(a);this.$y={};z(a,function(a){if(a.Ug()){var b=a.v();a=a.ya();this.$y[b+a]=!0}},this);z(this.bg,this.uM,this)};d.uM=function(a){var b=a.v(),c=a.ya();a.d$(this.$y[b+c]||!1)};d.rM=function(a){for(var b=0;b<a.length;b++)if(null!=a[b].Sc())for(var c=a[b].Sc(),e=0;e<c.length;e++){var f=c[e],g=a[b].hr();null===f||null===g||this.lp.set(f,g)}};d.F$=function(a){this.Ko=a;this.B.listen(this.Ko,"Ra",this.dJ)};
d.MC=function(a){H(this.a,"Stream Requests for UP streams received from remote side: "+lf(a));null!=this.Ko?this.Ko.Rz(a):this.P.tq(a)};d.dJ=function(a){a=ab(a.Kz,function(a){a=a.s();return!(null!=a&&this.s()!=a)},this);0!=a.length&&(this.rM(a),this.P.tq(a),H(this.a,"Stream Requests for UP streams sent to plugin/webrtc: "+lf(a)))};d.ur=function(){return this.P.Xe()};d.Ya=function(a){var b=this.CF(a);return null!=b?b:fb(this.bg,function(b){return b.getInfo().l0(a)},this)};d.getRemoteStreams=function(){return this.bg};
d.oa=function(){var a=CE.S.oa.call(this),b=this.vh.In();Lb(a,{audioOptions:this.aa.Pj.oa(),systemInfo:b?b.cb():"Unavailable"});return a};d.CF=function(a){var b=ab(Bb(this.qs),function(b){b=b.yv.ba();return a.getId()==b.getId()&&a.O()==b.O()&&(a.v()==b.v()||""==a.v())});return 1<b.length?eb(b,function(a){return"wa"==a.yv.ba().ed}):1==b.length?b[0]:null};d.Rw=function(a){a=a.ba();return a.getId()+a.ed};d.s=function(){return this.$a.s()};d.Ea=function(){return this.P.s()};
d.BE=function(a){var b=null!=a.U&&null!=a.U.Ma()?a.U.Ma().gi():[],c=null!=a.wa&&null!=a.wa.Ma()?a.wa.Ma().gi():[];a=null!=a.getData()&&null!=a.getData().Ma()?a.getData().Ma().gi():[];return ob(b,c,a)};
d.Hy=function(a){switch(this.getState()){case "IN":G(this.a,"Received local candidates before starting.");return;case "SP":case "FN":G(this.a,"Received local candiates after stopped.");return}z(a.Hm,function(a){2==a.hi()||this.aa.Ka&&"UDP"!=a.Rg()||(this.aa.Kh&&a.Nb("sa"),0>db(this.ls.C(),function(b){return b==a?!0:b&&a?b.Mc===a.Mc&&b.Lv===a.Lv&&b.jz===a.jz&&b.ud===a.ud&&b.nz===a.nz&&b.Fx===a.Fx&&b.tb===a.tb&&b.gn===a.gn&&b.ww===a.ww&&b.vy===a.vy&&b.Fo===a.Fo&&b.Go===a.Go:!1})&&this.ls.add(a))},this);
null==this.xv&&(this.xv=Ze(function(){this.To.promise.then(this.A6,null,this);this.xv=null},500,this))};d.A6=function(a){this.g.info(this.Ea()+"Sending local candidates over to the other side: "+lf(this.ls.C()));this.dispatchEvent(new DA(this.ls.C(),a))};
d.d_=function(a){a=a.Pg();if(null!=a)for(var b=0;b<a.length;b++){var c=a[b];if(null!=c&&2==c.wn()){var e=null!=c.hr()?c.hr():0;if(null!=c.Vg()&&null!=this.lp.get(c.Vg()))e|=this.lp.get(c.Vg());else if(null!=c.lx())for(var f=c.lx(),g=0;g<f.length;g++)if(null!=f[g]&&null!=this.lp.get(f[g])){e|=this.lp.get(f[g]);break}c.UK(e)}}};d.l1=function(a){this.dispatchEvent(new zA(a.id))};
d.N1=function(a){null!=a.Pe&&(this.d_(a.Pe),this.gy=a.Pe,this.Yp||(this.Yp="PD"!=this.getState()),this.Yp&&0>=--this.pI&&(this.pI=1,this.$a.GN(a.Pe),this.gy=void 0,this.Yp="PD"!=this.getState()),this.nD.TY(a.Pe),this.dispatchEvent(new xA(a.Pe)))};d.M1=function(a){this.$a.jE(a.eT,a.Bb,this.gy)};
d.L1=function(a){this.g.info(this.Ea()+" latency event: "+a.message);"transport writable"==a.message?(this.pN=!0,this.aa.Ka&&this.aa.qS?(this.$g.then(function(a){a.el(3261,this.s()||void 0)},null,this),this.stop(54)):(this.Do||Ze(this.JZ,1E4,this),this.dispatchEvent(new BA([],[],this.Ea())),this.vs())):"render first video frame"==a.message?(this.Do=!0,this.vs()):"transport not writable"==a.message&&(this.aa.Ka?this.stop(10,"P2P session ending. Falling back to cloud."):this.rb())};
d.JZ=function(){this.Do||(this.Do=!0,this.vs())};d.vs=function(){"SD"==this.getState()&&this.pN&&this.Do&&this.Ob("IP")};d.p1=function(a){this.oz&&this.oz==a.ra?this.dispatchEvent(new xE(a.payload)):this.dispatchEvent(new wE(a.ra,a.payload))};d.Qt=function(){this.P.WM()&&(this.Pr=Ze(this.fZ,5E3,this))};d.wv=function(){$e(this.Pr);this.Pr=null};
d.S1=function(a){if(null!=this.Pr){var b=w();a.Vs&&(5E3<b-this.$x&&this.g.info(this.Ea()+" started receiving audio!"),this.$x=b);a.Ws&&(5E3<b-this.by&&this.g.info(this.Ea()+" started receiving video!"),this.by=b);if(a.Vs||a.Ws)this.wv(),this.Qt()}};d.fZ=function(){var a=w(),b=(a-this.$x)/1E3,a=(a-this.by)/1E3;this.dispatchEvent(new yA(this.s(),b,a));this.g.info(this.Ea()+" has not received audio for "+b+" seconds, nor video for "+a+" seconds");this.Qt()};
d.QI=function(a){if("SP"==this.P.getState()){H(this.a,"Stopping session because local session stopped with endCause: "+a.Bb);switch(this.getState()){case "IN":G(this.a,"Local session stopped before starting.");this.Ob("SP",a.Bb,a.Fg);return;case "SP":G(this.a,"Local session stopped after already stopped.");return}this.stop(a.Bb,a.Fg)}};
d.bJ=function(a){if("SP"==this.$a.getState()){switch(this.getState()){case "IN":G(this.a,"Remote session stopped before starting.");return;case "SP":G(this.a,"Remote session stopped after already stopped.");return}this.stop(a.Bb,a.Fg)}};
d.L2=function(a){this.g.info(this.Ea()+" transport state event: transport IS "+(a.bs?"":"NOT ")+"writable");if(a.bs){if(null!=this.Om){var b=Math.round((w()-this.mD)/1E3);$e(this.Om);this.Om=null;this.$g.then(function(a){a.el(3062,this.s()||void 0,void 0,void 0,void 0,b)},null,this)}}else null==this.Om&&(this.mD=w(),this.Om=Ze(v(this.stop,this,10),4E4),this.$g.then(function(a){a.el(3061)},null,this))};d.Ly=function(a){this.dispatchEvent(a)};
d.Nba=function(a){switch(this.getState()){case "IN":case "ST":G(this.a,"Remote description changed before starting.");return;case "SP":case "FN":G(this.a,"Remote description changed after end.");return}if(this.V6(this.ay,a)){this.ay=Ib(a);this.g.info(this.Ea()+" received modified remote description: "+lf(a));var b=this.BE(a);0<b.length&&this.P.vm(b);a=this.kC(a,this.Pj);this.fd=this.fd.B0(a);a=this.fd.U;null!=a&&(this.Ho=a.sc(),this.dispatchEvent(new CA(this.Ho)));null==a&&null==this.fd.wa||this.P.update(this.fd)}};
d.va=function(a){null!=a&&null==this.$a.s()&&(this.$a.va(a),this.To.resolve(a),this.g.info("Session IDs are now set: LocalSession ID: "+this.Ea()+", RemoteSession ID: "+this.$a.vc()))};d.V6=function(a,b){return null!=a?this.nI(a.U,b.U)||this.nI(a.wa,b.wa):!0};d.nI=function(a,b){return null!=a||null!=b?null!=a&&null!=b?this.GR(a.sc(),b.sc())||this.kS(a.Ic(),b.Ic())||this.m6(a.pi(),b.pi())||this.sba(a.Ma(),b.Ma()):!0:!1};
d.GR=function(a,b){if(a.length!=b.length)return!0;for(var c=0;c<a.length;c++){var e=a[c],f=b[c];if(e.oh!=f.oh||e.getName()!=f.getName()||e.lq!=f.lq||e.Km!=f.Km||e.Uj!=f.Uj)return!0}return!1};d.kS=function(a,b){if(a.length!=b.length)return!0;for(var c=0;c<a.length;c++){var e=a[c],f=b[c];if(e.Wg()!=f.Wg()||e.Ek()!=f.Ek()||e.Gn()!=f.Gn()||e.Jn()!=f.Jn())return!0}return!1};d.m6=function(a,b){if(a.length!=b.length)return!0;for(var c=0;c<a.length;c++){var e=a[c],f=b[c];if(e.Mk()!=f.Mk()||e.getId()!=f.getId())return!0}return!1};
d.sba=function(a,b){return null==a&&null==b?!1:null==a||null==b||a.$e()!=b.$e()||a.Jh!=b.Jh||a.rh!=b.rh||this.eR(a.gi(),b.gi())?!0:!1};d.eR=function(a,b){if(a.length!=b.length)return!0;for(var c=0;c<a.length;c++){var e=a[c],f=b[c];if(e.J()!=f.J()||e.hi()!=f.hi()||e.mi()!=f.mi()||e.O()!=f.O()||e.Rg()!=f.Rg()||e.Ck()!=f.Ck()||e.Eb()!=f.Eb()||e.gn!=f.gn||e.Ak()!=f.Ak()||e.yn()!=f.yn()||e.Fo!=f.Fo||e.Go!=f.Go)return!0}return!1};
d.T1=function(){"SP"!=this.getState()?G(this.a,"Logging finished before media stopped!"):(this.Ob("FN"),this.Mq.resolve())};
d.My=function(a){switch(this.getState()){case "IN":this.g.da("Received remote streams before starting.");return;case "SP":case "FN":G(this.a,"Received remote streams after end.");return}var b=ab(a.Mh,function(a){return"sa"!=a.J()?!0:this.aa.jm},this);"ST"==this.getState()?(this.g.info(this.Ea()+" queuing stream changes:."),this.$f.push({Wu:b,Iz:a.removed})):(this.g.info(this.Ea()+" sending stream adds."),this.fd=this.fd.ku(b,a.removed),this.P.update(this.fd));b=this.iR(b,a.removed);0<b.length&&this.dispatchEvent(new BA(B(b,
function(a){return a.getInfo()}),a.removed))};d.iR=function(a,b){switch(this.getState()){case "IN":return G(this.a,"Change remote streams called before started."),[];case "SP":return G(this.a,"Change remote streams called after stopped."),[]}if(0==a.length&&0==b.length)return[];z(b,this.z5,this);return B(a,this.VP,this)};d.VP=function(a){a=new kA(a,this.P);this.uM(a);this.bg.push(a);return a};
d.z5=function(a){var b=db(this.bg,function(b){return b.getInfo().matches(a)},this);if(-1==b)G(this.a,"Tried to remove non-existant remote stream: "+a);else{var c=this.bg[b];kb(this.bg,b);c.cc("ra")}};d.u2=function(a){switch(this.getState()){case "IN":this.g.da("Received remote stream requests before starting.");return;case "SP":case "FN":G(this.a,"Received remote stream requests after end.");return}this.MC(a.kR)};
d.Wo=function(a){null!=a&&(this.g.info(this.Ea()+" setting audio options to: "+lf(a.oa())),this.Pj=a,this.fd=this.kC(this.fd,a),this.P.Wo(this.fd,a))};d.kC=function(a,b){var c=a.U;b.HK||(c=c.u5("CN"));var e=c.sc(),f=db(e,function(a){return a.ny("OPUS")});if(-1!=f){if(!this.aa.Pj.J6&&1<e.length)kb(e,f);else{var g=b.JN&&!(Lh&&!(0<=Ta(hi,"48")));e[f]=e[f].tu("stereo",b.QK?"1":"0").tu("useinbandfec",b.KN?"1":"0").tu("usedtx",g?"1":"0")}c=c.Hj(e)}b=b.xJ;null!=b&&(c=c.BJ(b));return a.Xd(c)};
d.xN=function(){var a=this.s();null!=a&&this.dispatchEvent(new EA(a))};d.dG=function(){return pb(this.Ho)};d.toString=function(){return"Session(Id="+this.s()+" p2p="+this.aa.Ka+" useAudio="+this.aa.jm+" useVideo="+this.aa.km+")"};var EE=function(a,b,c,e){K.call(this);this.a=E("realtime.media.session.SessionManager");this.vh=b;this.dd=this.vh.dd;this.g=this.vh.dk("realtime.media.session.SessionManager");this.B=new Xh(this);this.ha(this.B);this.Ha=a;this.og=this.Uc=this.ia=this.za=null;this.D="IN";this.Ud=null;this.td=new D;Gc(Qz,function(a){this.td.set(a,new Jc)},this);this.Fc=new Jc;this.st=new D;this.wq=null;this.Dd=new bA;this.zc=new JA;this.zba=c;this.US=e;this.Mi=null;this.Qp=[];this.Wh=[];this.bH=new yE(this.Ha);this.Zm=
this.de=null;this.XZ();this.uH=Te();this.Ow=Te();Re([this.uH.promise,this.Ow.promise]).then(function(){this.Su(!0)},null,this);this.$g=vE(a,np,rE)};x(EE,K);var FE=new FA("","","sa"),GE=new FA("","","ua",new dh(320,180),30),HE=new FA("","","ua",DE,30);d=EE.prototype;
d.XZ=function(){vs(this.Ha);this.Ha.wk(mp).then(function(a){this.de=a;this.Zm=[this.de.na("sessionManagerState",v(this.getState,this)),this.de.na("p2pSessionActive",v(function(){return bb(this.Og(),function(a){return a.Hd().Ka})},this)),this.de.na("sessions",v(function(){return B(this.Fc.C(),function(a){return a.oa()},this)},this))]},function(a){G(this.a,"Error getting DiagnosticDataService: "+a)},this)};d.L=function(){z(this.Fc.C(),Od);null!=this.de&&z(this.Zm,this.de.Dz,this.de);EE.S.L.call(this)};
d.getState=function(){return this.D};d.cc=function(a,b,c){a!=this.D&&(this.g.info("SessionManager changed state from "+this.D+" to "+a),this.D=a,this.dispatchEvent(new Rz(a,b,c)))};d.mj=function(a){this.og=a};d.lc=function(a){if("IN"!=this.getState())return!1;this.c_();this.Fba(a);this.wq=this.Su(!1);if(null==this.wq)return this.g.error("Failed to create the cloud session."),this.stop(16),!1;this.cc("ST");return!0};d.start=function(){};d.rb=function(){this.Ud&&this.Ud.rb();z(this.Fc.C(),function(a){a.rb()})};
d.connect=function(a,b,c,e,f){if("ST"!=this.getState()&&"IP"!=this.getState())return!1;this.za=a;this.ia=b;this.Uc=c;this.Mi=e;this.og=f;this.g.info("Connecting to hangoutId: "+a+", with participantId: "+b+" and participantLogId: "+c+" and mucJid: "+e+" and syntheticId: "+f);this.Ow.resolve(this.za);var g=ob(this.Og(),this.Xw(),this.Gr());z(g,function(g){g.$j(a,b,c,e,f)});return!0};
d.Fba=function(a){this.g.info("Updating desfault options to: "+lf(a.oa()));this.Dd=a;this.Dd.Ka&&this.uH.resolve(!0);if(null==this.za||Fa(this.za))this.za=this.Dd.Ed;null==this.za||Fa(this.za)||this.Ow.resolve(this.za)};d.CX=function(){var a={};z(this.Fc.C(),function(b){b.Hd().Ka||(a[b.Ea()]=b.s())});return a};d.getRemoteStreams=function(){var a=[];z(this.Og(),function(b){qb(a,b.getRemoteStreams())});return a};d.ym=function(a){z(this.Fc.C(),function(b){b.ym(a)});this.Dd=this.Dd.SN(a)};
d.ar=function(){this.Dd.Yh||(z(this.Fc.C(),function(a){a.ar()}),this.Dd=this.Dd.TN())};d.jx=function(){return this.Dd};d.ad=function(a){this.g.info("Adding capture: "+lf(a.oa()));var b=!0;z(this.AE(),function(c){b=b&&c.ad(a)});b?this.Qp.push(a):this.ue(a);return b};d.ue=function(a){var b=!0;z(this.AE(),function(c){b=b&&c.ue(a)});return b=b&&lb(this.Qp,a)};
d.Ya=function(a,b){var c=ob(this.Og(),this.Gr(),this.mx());if(null!=b){var e=eb(this.Fc.C(),function(a){return a.Ea()==b});e&&c.unshift(e)}for(e=0;e<c.length;e++){var f=c[e],g=f.Ya(a);if(null!=g)return this.g.info("Using stream: "+g.getInfo()+" from "+f.Ea()+" to render source: "+a),g}this.g.da("Unable to find stream to use to render source: "+a);return null};d.yf=function(a){var b=ob(this.mx(),this.Gr(),this.Og());z(b,function(b){b.yf(a)})};
d.jj=function(a){z(this.Fc.C(),function(b){b.jj(a)},this);this.Wh=a};d.stop=function(a,b){this.g.info("Stopping video call because stop called with endCause: "+a);if("IN"==this.getState()||"SP"==this.getState()||"FN"==this.getState())return!1;this.cc("SP",a,b);z(this.Fc.C(),function(c){c.stop(a,b)});return!0};
d.Su=function(a){var b=this.aY(this.Dd,a);if(null==b)return null;var c=this.IQ(b);if(null==c)return this.g.da("Failed to build session."),null;a=this.zc.HQ(c.ur(),b.Ed,b.je(),b.jd(),a);if(null==a)return this.g.da("Failed to parse session info."),null;a=this.Ud.add(a);a.then(function(a){this.QY(c,a,b);return a},null,this).Ec(function(a){this.g.da("Failed to add session to collection. Error: "+a);c.stop(16);throw a;},this);LA(a,"Ga",null,this);return c};
d.dS=function(a){var b=this.vh.Dq(this.Ha,this.WT(a),this.bH.Te(),a);if(a.Ka){if(!b.XM())return this.g.info("Not creating p2p session because local does not support p2p"),null;if(2<this.Wh.length)return this.g.info("Not creating p2p session due to too many participants."),null}var c=this.vh.Fq(this.Ha,a);return new CE(this.Ha,this.vh,b,c,a)};
d.IQ=function(a){a=this.dS(a);if(null==a)return null;this.Fc.add(a);this.td.get(a.getState()).add(a);this.st.set(a.Ea(),a.getState());a.E$(this.US);a.F$(this.zba);a.jj(this.Wh);this.B.listen(a,["Pa","Qa","V","Y","T"],this.dispatchEvent);this.B.listen(a.Ik(),"D",this.dispatchEvent);this.B.listen(a,"A",this.Ny);this.B.listen(a,"S",this.Hy);this.B.listen(a,"Q",this.Ly);this.B.listen(a,"R",this.I1);return a};d.Jaa=function(a,b){a.start(b);z(this.Qp,function(b){a.ad(b)})};
d.fba=function(a){this.td.get(a.getState()).remove(a);this.st.remove(a.Ea());this.Fc.remove(a);Od(a)};d.AE=function(){return ob(this.aW(),this.mx(),this.Gr(),this.Xw(),this.Og())};d.Xw=function(){return this.td.get("PD").C()};d.Og=function(){return this.td.get("IP").C()};d.Gr=function(){return this.td.get("SD").C()};d.mx=function(){return this.td.get("ST").C()};d.aW=function(){return this.td.get("IN").C()};
d.QY=function(a,b,c){H(this.a,"Session add response received.");1>b.length||!(b[0]instanceof Tr)?(this.g.info("Stopping remote session due to receiving null session proto."),a.stop(16)):(b=b[0],null!=b?(c=this.zc.Wy(b,!c.Ka),null!=c?this.sx(a,c):(this.g.info("Stopping session due to inability to parse session proto."),a.stop(16))):(this.g.info("Stopping session due to inability to parse session proto."),a.stop(16)))};
d.c_=function(){var a=this.Ha,b=this.dd,c=new Ks(Tr,[],[],[Tr.prototype.s],[Tr.prototype.va],Tt,[],[],[Tt.prototype.s],[Tt.prototype.va]),e=ys.N(),f=new uz(e.Gk(a,b)),g=new As(e.Sg(a,b),"r");this.Ud=new ks(a,e.tc(a,b),[],c,f,g,e.Ng(a,b));this.ha(this.Ud);this.Ud.lc();this.Ud.tc().Zo(8);this.Ud.tc().ap(3E3);this.B.listen(this.Ud,"f",this.C2);this.B.listen(this.Ud,"h",this.D2)};d.WT=function(a){return"c"+Math.round(2147483648*Math.random())+Math.round(2147483648*Math.random())+(a.Ka?"_P2P":"_NMS")};
d.aY=function(a,b){var c=a.Ed||this.za;null!=c&&a.iC?(a=a.Hp([FE,GE]),a=a.UN(c)):a=a.UN(null);if(b){a=a.qca(!1).oca(!0);if(null==this.wq)return F(this.a,"P2P session starting first! This is bad!"),null;a=a.mca(!1);a=a.Hp([FE,HE])}return a=a.pca(b)};d.C2=function(a){null!=a.Nc&&0<a.Nc.length&&this.jZ(a.Nc);null!=a.removed&&0<a.removed.length&&this.pZ(a.removed)};d.D2=function(a){this.g.error("Stopping video call because session collection failed, with reason: "+a.reason);this.stop(a.Bb)};
d.jZ=function(a){z(a,function(a){var b=eb(this.Fc.C(),function(b){return a.s()==b.s()});if(b){var e=!b.Hd().Ka,e=this.zc.Wy(a,e);null!=e&&this.sx(b,e)}else F(this.a,"Received modification for a session that we don't have!")},this)};d.pZ=function(a){z(a,function(a){var b=eb(this.Fc.C(),function(b){return a.s()==b.s()});b?b.stop(25):this.g.error("Received removal of a session that we don't have! Session id: "+a.s())},this)};d.Ly=function(a){this.sx(a.currentTarget,a.sessionDescription)};
d.sx=function(a,b){var c=a.getState(),e="IN"==c,f="IN"==c||"ST"==c,c="IN"!=c&&"ST"!=c;b.RZ()||(f=e=!1);var g=b.U;null!=g&&(g=g.Ma(),null!=g&&null!=g.Jh&&null!=g.rh&&0!=g.gi().length||(f=!1));g=b.s();null!=g&&a.va(g);e&&(this.g.info("Received remote description for session "+a.Ik().vc()+" with sufficient data to allow session preparation."),a.lc());f?(this.g.info("Received remote description for session "+a.Ik().vc()+" with sufficient data to allow starting the session."),this.Jaa(a,b)):c&&a.Nba(b)};
d.I1=function(a){if("IP"!=this.getState())G(this.a,"Ingress bandwidth updated before started.");else{var b=this.bH.Te(),c=new or;-1!=b.Ji&&c.NL(b.Ji);-1!=b.Gi&&c.FL(b.Gi);-1!=b.tj&&c.sM(b.tj);b=new Or;b.HL(c);c=new Tr;c.va(a.sessionId);a=this.za||this.Dd.Ed;null===a||c.yL([a]);c.dA([b]);this.Ud.modify(c)}};
d.Hy=function(a){switch(this.getState()){case "IN":G(this.a,"Received local candidates before starting.");return;case "SP":case "FN":G(this.a,"Received local candiates after end.");return}var b=a.target,c=[];z(a.Hm,function(a){a=this.zc.AC(a);c.push(a);b.Hd().Kh&&a.Af()},this);if(!(1>c.length)){var e=new Jr;e.dL(c);var f=[],g=b.ur().U;if(g&&(z(g.Ic(),function(a){f.push(this.zc.BC(a))},this),g=g.Ma())&&(e.zM(g.Jh),e.$L(g.rh),g.Ve())){var k=new Mr;k.VK(g.Ve().split(" ")[0]);k.tL(g.Ve().split(" ")[1]);
e.oM(k)}g=new Or;g.Nb(4);g.yM(e);g.gL(f);e=new Tr;e.va(a.sessionId);e.dA([g]);this.Ud.modify(e)}};d.Ny=function(a){var b=a.target,c=this.st.get(b.Ea()),e=b.getState();if(c!=e){this.st.set(b.Ea(),e);this.td.get(c).remove(b);this.td.get(e).add(b);switch(e){case "SD":this.vZ(b);break;case "IP":this.uZ(b);break;case "SP":this.wZ(b,a.Bb,a.Fg);break;case "FN":this.tZ(b)}this.dispatchEvent(a)}};
d.vZ=function(a){null!=this.za&&null!=this.ia&&null!=this.Uc&&null!=this.Mi&&a.$j(this.za,this.ia,this.Uc,this.Mi,this.og)};d.uZ=function(a){if("IN"==this.getState()||"SP"==this.getState()||"FN"==this.getState())F(this.a,"Should not have new active sessions now.");else{"ST"==this.getState()&&this.cc("IP");a.Wo(this.Dd.Pj);var b=a.Ea(),c=this.Og();z(c,function(c){b!=c.Ea()&&(c.pause(),this.hK(c,a))},this)}};
d.wZ=function(a,b,c){z(this.Qp,function(b){b.fB(a.Ea())});if(26==b)this.wq=this.Su(!1);else{55==b&&this.$g.then(function(b){b.el(3262,a.s()||void 0)},null,this);var e=this.td.get("SP").R()+this.td.get("FN").R();this.Fc.R()==e?"SP"!=this.D&&(this.g.info("All sessions now stopped."),this.stop(b,c)):0==this.Og().length&&z(this.Xw(),function(b){b.resume();this.hK(a,b)},this)}};
d.tZ=function(a){this.fba(a);this.Fc.R()==this.td.get("FN").R()&&("SP"!=this.D?G(this.a,"Session Manager finished before stopping."):this.cc("FN"))};d.hK=function(a,b){var c=a.Hd().Ka?5:4,e=new Oq;e.nj(c);e.h8(0);e.O9(a.s());e.r9(b.s());e.D7(w());var f=new br;f.t8(e);a.Ik().Cj(f);4==c&&this.$g.then(function(a){a.el(3260,b.s()||void 0)},null,this);this.g.info("Handing off from "+(a.Hd().Ka?"P2P":"RF")+" session to "+(b.Hd().Ka?"P2P":"RF")+" session")};var IE=function(){K.call(this);this.rj=[]};x(IE,K);IE.prototype.add=function(a,b){if(null!=this.Xq(a.O(),a.getId(),a.v()))return!1;this.rj.push(a);l(b)&&!b||a.rA(this);this.dispatchEvent(new JE("Sa",a));return!0};IE.prototype.remove=function(a){return lb(this.rj,a)?(a.qo==this&&a.rA(null),this.dispatchEvent(new JE("Ta",a)),!0):!1};IE.prototype.getSources=function(){return pb(this.rj)};
IE.prototype.Xq=function(a,b,c){return eb(this.rj,function(e){var f=e.O()==a,g=null==b||e.getId()==b;e=null==c||e.v()==c;return f&&g&&e})};var JE=function(a,b){J.call(this,a);this.source=b};x(JE,J);var LE=function(a,b,c){K.call(this);this.jg=a;this.Nt=b;this.cf=c;this.a=E("realtime.media.detours.FreezeDetector");this.B=new Xh(this);this.ha(this.B);this.kp=new D;this.Kb=new D;this.Kb.set(c,new KE);var e=this.Nt.Er(c);null!=e&&z(e.getSources(),function(a){a=e.Xq(a.O(),a.getId(),a.v());null==a||"ua"!=a.O()&&"sa"!=a.O()||(this.nN(a),(a=this.jg.Ya(a))&&this.oN(a.getInfo()))},this);this.B.listen(this.jg,"T",this.gZ).listen(this.jg,"Y",this.GZ).listen(this.Nt,"Na",this.CZ).listen(this.Nt,"Oa",this.DZ).listen(e,
"Sa",this.QG).listen(e,"Ta",this.BZ)};x(LE,K);d=LE.prototype;
d.gZ=function(a){a=a.Pe.Pg();if(null!=a){var b=w();z(a,function(a){var c=a.Vg();if(null!=c&&this.kp.xa(c)){var f=this.kp.get(c);if(this.Kb.xa(f)){var g="",f=this.Kb.get(f),k=a.wn(),p=a.Jc(),q;k==kq.Ju?(g=Qa(g,"Video "),q=f.Yl.get(c)):(g=Qa(g,"Audio "),q=f.Xl.get(c));null!=q&&(k==kq.nP?(k=0,p==lq.Pp?(k=a.OE()-q.rv,g=Qa(g,"Sent: ")):p==lq.oP&&(k=a.NE()-q.rv,g=Qa(g,"Received: ")),0<=k&&b>q.fh?(0!=q.fh?q.bitRate=8E3*k/(b-q.fh):"za"==f.sf&&(q.bitRate=1500),q.fh=b,q.rv=p==lq.Pp?a.OE():a.NE(),g=Qa(g,q.bitRate.toString(),
" Bps")):(q.bitRate=1500,g=Qa(g,"Negative bits or time"))):k==kq.Ju&&(a=a.AV(),0==q.fh&&"za"==f.rg&&(a=24),0<=a&&b>q.fh?(q.Xx=q.Se,q.Se=a,g=Qa(g,p==lq.Pp?"Sent: ":"Received: ",a.toString()," Fps")):(q.Xx=q.Se,q.Se=15,g=Qa(g,"Negative fps or time")),q.fh=b),g=Qa(g," Ssrc: ",c),H(this.a,g))}else G(this.a,"Received media info for unknown participant with id: "+f)}},this);this.rR(b)}};
d.rR=function(a){z(this.Kb.ib(),function(b){var c=this.Kb.get(b);"ya"!=c.sf&&this.QC(b,c,a,"sa");"ya"!=c.rg&&this.QC(b,c,a,"ua")},this)};
d.QC=function(a,b,c,e){var f=null;"sa"==e?f=b.Xl.C():"ua"==e&&(f=b.Yl.C());var g=!0,k=0;z(f,function(a){"sa"==e?(1500<=a.bitRate&&(g=!1),a.bitRate>k&&(k=a.bitRate)):"ua"==e&&(24<=a.Se||24<=a.Xx&&15<=a.Se?g=!1:"wa"==b.ru&&0<a.Se&&(g=!1),a.Se>k&&(k=a.Se))},this);g?0<f.length&&("sa"==e&&"za"==b.sf&&11E3<c-b.bu?b.Oj||(b.Oj=!0,this.dispatchEvent(new ME("Ua",a))):"ua"==e&&"za"==b.rg&&11E3<c-b.rp&&!b.nm&&(b.nm=!0,this.dispatchEvent(new ME("Va",a)))):("sa"==e&&b.Oj?(b.Oj=!1,this.dispatchEvent(new ME("Wa",
a))):"ua"==e&&b.nm&&(b.nm=!1,this.dispatchEvent(new ME("Xa",a))),this.Q6(e,b,k,c)&&this.dispatchEvent(new ME("sa"==e?"Za":"Ya",a)))};d.Q6=function(a,b,c,e){return"sa"==a&&"Aa"==b.sf&&2E3<=c&&11E3<e-b.bu||"ua"==a&&"Aa"==b.rg&&11E3<e-b.rp?!0:!1};d.GZ=function(a){z(a.Wu,function(a){this.oN(a)},this);z(a.Iz,function(a){this.PT(a)},this)};
d.oN=function(a){var b=""==a.v()?this.cf:a.v();if(this.Kb.xa(b)){var c=this.Kb.get(b);z(a.Sc(),function(e){"sa"==a.J()?(c.Xl.xa(e)||c.Xl.set(e,new NE),this.kp.set(e,b)):"ua"==a.J()&&(c.Yl.xa(e)||c.Yl.set(e,new OE),this.kp.set(e,b))},this)}else G(this.a,"Attempted to track new stream for unknown participant with id: "+b)};
d.PT=function(a){var b=""==a.v()?this.cf:a.v();if(this.Kb.xa(b)){var c=this.Kb.get(b);z(a.Sc(),function(b){"sa"==a.J()?c.Xl.remove(b):"ua"==a.J()&&c.Yl.remove(b);this.kp.remove(b)},this)}else G(this.a,"Attempted to forget stream for unknown participant with id: "+b)};
d.EZ=function(a){var b=""==a.v()?this.cf:a.v();if(this.Kb.xa(b)){var c=this.Kb.get(b);"sa"==a.O()?(c.bu=w(),"za"==c.sf&&"Aa"==a.getState()&&c.Oj&&(c.Oj=!1,this.dispatchEvent(new ME("Wa",b))),c.sf=a.getState()):"ua"==a.O()&&(c.rp=w(),"za"==c.rg&&"Aa"==a.getState()&&c.nm&&(c.nm=!1,this.dispatchEvent(new ME("Xa",b))),c.rg=a.getState())}else G(this.a,"Source state changed for unknown participant with id: "+b)};
d.zZ=function(a){var b=""==a.v()?this.cf:a.v();this.Kb.xa(b)?(b=this.Kb.get(b),"ua"==a.O()&&("wa"==b.ru&&"va"==a.ed&&(b.rp=w()),b.ru=a.ed)):G(this.a,"Source content changed for unknown participant with id: "+b)};d.CZ=function(a){this.Kb.set(a.v(),new KE);this.B.listen(a.Er(),"Sa",this.QG)};d.QG=function(a){this.nN(a.source)};d.DZ=function(a){this.Kb.xa(a.v())?(a=this.Kb.get(a.v()),a.sf="ya",a.rg="ya",a.Xl.clear(),a.Yl.clear()):G(this.a,"Sourceset removed for unknown participant with id: "+a.v())};
d.BZ=function(a){var b=""==a.source.v()?this.cf:a.source.v();this.Kb.xa(b)?(b=this.Kb.get(b),"sa"==a.source.O()?b.sf="ya":"ua"==a.source.O()&&(b.rg="ya")):G(this.a,"Source removed from unknown participant  with id: "+b)};
d.nN=function(a){var b=""==a.v()?this.cf:a.v();this.Kb.xa(b)?(b=this.Kb.get(b),"sa"==a.O()?(b.sf=a.getState(),b.bu=w()):"ua"==a.O()&&(b.rg=a.getState(),b.rp=w(),b.ru=a.ed,this.B.listen(a,"Z",Ba(this.zZ,a))),this.B.listen(a,"aa",Ba(this.EZ,a))):G(this.a,"Attempted to track a source associated with an unknown participant with id: "+b)};
var NE=function(){this.bitRate=this.fh=this.rv=0},OE=function(){this.Se=0;this.Xx=24;this.fh=0},KE=function(){this.rg=this.sf="za";this.ru="xa";this.nm=this.Oj=!1;this.bu=this.rp=0;this.Xl=new D;this.Yl=new D},ME=function(a,b){J.call(this,a);this.ra=b};x(ME,J);var PE=function(a){K.call(this);this.uw=this.ia=null;this.a=E("realtime.media.detours.DetoursManager");this.B=new Xh(this);this.ha(this.B);this.$g=vE(a,np,rE)};x(PE,K);PE.prototype.connect=function(a,b,c){this.uw=new LE(a,b,c);this.ha(this.uw);this.ia=c;this.B.listen(this.uw,"Ua Va Wa Xa Za Ya".split(" "),this.cZ)};
PE.prototype.cZ=function(a){var b=""==a.ra||a.ra==this.ia?"Self":a.ra;"Ua"==a.type?(H(this.a,b+" Audio Frozen."),this.rs(3325)):"Va"==a.type?(H(this.a,b+" Video Frozen."),this.rs(3324)):"Wa"==a.type?(H(this.a,b+" Audio Unfrozen."),this.rs(3330)):"Xa"==a.type?(H(this.a,b+" Video Unfrozen."),this.rs(3329)):"Za"==a.type?H(this.a,b+" Audio Sent While Muted."):"Ya"==a.type&&H(this.a,b+" Video Sent While Muted.");this.dispatchEvent(a)};
PE.prototype.rs=function(a){this.$g.then(function(b){b.el(a)},null,this)};var QE=function(a){K.call(this);this.Nt=a;this.B=new Xh(this);this.ha(this.B)};x(QE,K);var RE=function(a,b,c){K.call(this);this.IS=b;this.Fd=c;this.B=new Xh(this);this.ha(this.B);this.B.removeAll();this.B.listen(a,"Qa",this.l2)};x(RE,K);RE.prototype.l2=function(a){this.Fd.fa("E");this.IS.mZ(a.data);this.h0(a.data)};RE.prototype.h0=function(a){a=Kw(a);a=(new xv(a)).Ww();0==a.length?this.Fd.fa("I"):1==a.length?z(a,this.e0,this):this.Fd.fa("J")};
RE.prototype.e0=function(a){var b=a.tG();(b=b&&b.fG())&&this.Fd.fa("X",b);a=a.Vw();if(null!=a){for(var c,e=0;e<Mw.length;e++)if(b=Mw[e].wc.call(a),null!=b){c=Mw[e].eventType;this.g0(c);break}c||this.Fd.fa("V")}else this.Fd.fa("K")};RE.prototype.g0=function(a){switch(a){case "r":a="M";break;case "t":a="N";break;case "o":a="O";break;case "p":a="P";break;case "s":a="Q";break;case "k":a="R";break;case "l":a="S";break;case "m":a="T";break;case "y":a="U";break;case "n":a="W";break;default:a="L"}this.Fd.fa(a)};var SE=function(){this.JM=this.eI=this.uI=null;this.Mu=[]},TE=function(a){a.yi(lp)||a.xh(lp,new SE)};SE.prototype.Sp=function(a){gb(this.Mu,a)||(this.Mu.push(a),a.xN())};SE.prototype.dt=function(a){lb(this.Mu,a)};var UE=function(a){this.xg=null;a.Ha.wk(lp).then(function(a){this.xg=a},null,this)};x(UE,zE);rp(UE,zE);UE.prototype.Te=function(a){null!=this.xg&&(null!==this.xg.uI&&(a.Ji=this.xg.uI),null!==this.xg.eI&&(a.Gi=this.xg.eI),null!==this.xg.JM&&(a.tj=this.xg.JM))};var VE=function(a,b,c){Xh.call(this);this.jg=a;this.Oa=b;this.capture=c;this.vx=this.xx=!1;this.zc=new JA;this.listen(this.capture.ba(),["Z","$","aa","ba"],this.oy);this.Oa.onConnect.then(this.oy,null,this);this.jg.ad(c)};x(VE,Xh);VE.prototype.L=function(){this.jg.ue(this.capture);VE.S.L.call(this)};VE.prototype.oy=function(){this.isDisposed()||(this.vx?this.xx=!0:(this.xx=!1,this.vx=!0,Re([this.Oa.X,this.Oa.ra,this.Oa.Hh]).then(function(a){this.p4(a[0],a[1],a[2])},this.Ky,this)))};
VE.prototype.p4=function(a,b,c){var e=this.zc.JQ(a,this.capture.ba());e.I(a);e.Ra(b);e.hf(this.capture.ba().getId());c.add(e).then(this.Ky,this.Ky,this)};VE.prototype.Ky=function(){this.vx=!1;this.xx&&this.oy()};var WE=function(){this.oc=64;this.ea=Array(4);this.kQ=Array(this.oc);this.eu=this.Em=0;this.reset()};x(WE,ii);WE.prototype.reset=function(){this.ea[0]=1732584193;this.ea[1]=4023233417;this.ea[2]=2562383102;this.ea[3]=271733878;this.eu=this.Em=0};
WE.prototype.Eg=function(a,b){b||(b=0);var c=Array(16);if(t(a))for(var e=0;16>e;++e)c[e]=a.charCodeAt(b++)|a.charCodeAt(b++)<<8|a.charCodeAt(b++)<<16|a.charCodeAt(b++)<<24;else for(e=0;16>e;++e)c[e]=a[b++]|a[b++]<<8|a[b++]<<16|a[b++]<<24;a=this.ea[0];b=this.ea[1];var e=this.ea[2],f=this.ea[3],g;g=a+(f^b&(e^f))+c[0]+3614090360&4294967295;a=b+(g<<7&4294967295|g>>>25);g=f+(e^a&(b^e))+c[1]+3905402710&4294967295;f=a+(g<<12&4294967295|g>>>20);g=e+(b^f&(a^b))+c[2]+606105819&4294967295;e=f+(g<<17&4294967295|
g>>>15);g=b+(a^e&(f^a))+c[3]+3250441966&4294967295;b=e+(g<<22&4294967295|g>>>10);g=a+(f^b&(e^f))+c[4]+4118548399&4294967295;a=b+(g<<7&4294967295|g>>>25);g=f+(e^a&(b^e))+c[5]+1200080426&4294967295;f=a+(g<<12&4294967295|g>>>20);g=e+(b^f&(a^b))+c[6]+2821735955&4294967295;e=f+(g<<17&4294967295|g>>>15);g=b+(a^e&(f^a))+c[7]+4249261313&4294967295;b=e+(g<<22&4294967295|g>>>10);g=a+(f^b&(e^f))+c[8]+1770035416&4294967295;a=b+(g<<7&4294967295|g>>>25);g=f+(e^a&(b^e))+c[9]+2336552879&4294967295;f=a+(g<<12&4294967295|
g>>>20);g=e+(b^f&(a^b))+c[10]+4294925233&4294967295;e=f+(g<<17&4294967295|g>>>15);g=b+(a^e&(f^a))+c[11]+2304563134&4294967295;b=e+(g<<22&4294967295|g>>>10);g=a+(f^b&(e^f))+c[12]+1804603682&4294967295;a=b+(g<<7&4294967295|g>>>25);g=f+(e^a&(b^e))+c[13]+4254626195&4294967295;f=a+(g<<12&4294967295|g>>>20);g=e+(b^f&(a^b))+c[14]+2792965006&4294967295;e=f+(g<<17&4294967295|g>>>15);g=b+(a^e&(f^a))+c[15]+1236535329&4294967295;b=e+(g<<22&4294967295|g>>>10);g=a+(e^f&(b^e))+c[1]+4129170786&4294967295;a=b+(g<<
5&4294967295|g>>>27);g=f+(b^e&(a^b))+c[6]+3225465664&4294967295;f=a+(g<<9&4294967295|g>>>23);g=e+(a^b&(f^a))+c[11]+643717713&4294967295;e=f+(g<<14&4294967295|g>>>18);g=b+(f^a&(e^f))+c[0]+3921069994&4294967295;b=e+(g<<20&4294967295|g>>>12);g=a+(e^f&(b^e))+c[5]+3593408605&4294967295;a=b+(g<<5&4294967295|g>>>27);g=f+(b^e&(a^b))+c[10]+38016083&4294967295;f=a+(g<<9&4294967295|g>>>23);g=e+(a^b&(f^a))+c[15]+3634488961&4294967295;e=f+(g<<14&4294967295|g>>>18);g=b+(f^a&(e^f))+c[4]+3889429448&4294967295;b=
e+(g<<20&4294967295|g>>>12);g=a+(e^f&(b^e))+c[9]+568446438&4294967295;a=b+(g<<5&4294967295|g>>>27);g=f+(b^e&(a^b))+c[14]+3275163606&4294967295;f=a+(g<<9&4294967295|g>>>23);g=e+(a^b&(f^a))+c[3]+4107603335&4294967295;e=f+(g<<14&4294967295|g>>>18);g=b+(f^a&(e^f))+c[8]+1163531501&4294967295;b=e+(g<<20&4294967295|g>>>12);g=a+(e^f&(b^e))+c[13]+2850285829&4294967295;a=b+(g<<5&4294967295|g>>>27);g=f+(b^e&(a^b))+c[2]+4243563512&4294967295;f=a+(g<<9&4294967295|g>>>23);g=e+(a^b&(f^a))+c[7]+1735328473&4294967295;
e=f+(g<<14&4294967295|g>>>18);g=b+(f^a&(e^f))+c[12]+2368359562&4294967295;b=e+(g<<20&4294967295|g>>>12);g=a+(b^e^f)+c[5]+4294588738&4294967295;a=b+(g<<4&4294967295|g>>>28);g=f+(a^b^e)+c[8]+2272392833&4294967295;f=a+(g<<11&4294967295|g>>>21);g=e+(f^a^b)+c[11]+1839030562&4294967295;e=f+(g<<16&4294967295|g>>>16);g=b+(e^f^a)+c[14]+4259657740&4294967295;b=e+(g<<23&4294967295|g>>>9);g=a+(b^e^f)+c[1]+2763975236&4294967295;a=b+(g<<4&4294967295|g>>>28);g=f+(a^b^e)+c[4]+1272893353&4294967295;f=a+(g<<11&4294967295|
g>>>21);g=e+(f^a^b)+c[7]+4139469664&4294967295;e=f+(g<<16&4294967295|g>>>16);g=b+(e^f^a)+c[10]+3200236656&4294967295;b=e+(g<<23&4294967295|g>>>9);g=a+(b^e^f)+c[13]+681279174&4294967295;a=b+(g<<4&4294967295|g>>>28);g=f+(a^b^e)+c[0]+3936430074&4294967295;f=a+(g<<11&4294967295|g>>>21);g=e+(f^a^b)+c[3]+3572445317&4294967295;e=f+(g<<16&4294967295|g>>>16);g=b+(e^f^a)+c[6]+76029189&4294967295;b=e+(g<<23&4294967295|g>>>9);g=a+(b^e^f)+c[9]+3654602809&4294967295;a=b+(g<<4&4294967295|g>>>28);g=f+(a^b^e)+c[12]+
3873151461&4294967295;f=a+(g<<11&4294967295|g>>>21);g=e+(f^a^b)+c[15]+530742520&4294967295;e=f+(g<<16&4294967295|g>>>16);g=b+(e^f^a)+c[2]+3299628645&4294967295;b=e+(g<<23&4294967295|g>>>9);g=a+(e^(b|~f))+c[0]+4096336452&4294967295;a=b+(g<<6&4294967295|g>>>26);g=f+(b^(a|~e))+c[7]+1126891415&4294967295;f=a+(g<<10&4294967295|g>>>22);g=e+(a^(f|~b))+c[14]+2878612391&4294967295;e=f+(g<<15&4294967295|g>>>17);g=b+(f^(e|~a))+c[5]+4237533241&4294967295;b=e+(g<<21&4294967295|g>>>11);g=a+(e^(b|~f))+c[12]+1700485571&
4294967295;a=b+(g<<6&4294967295|g>>>26);g=f+(b^(a|~e))+c[3]+2399980690&4294967295;f=a+(g<<10&4294967295|g>>>22);g=e+(a^(f|~b))+c[10]+4293915773&4294967295;e=f+(g<<15&4294967295|g>>>17);g=b+(f^(e|~a))+c[1]+2240044497&4294967295;b=e+(g<<21&4294967295|g>>>11);g=a+(e^(b|~f))+c[8]+1873313359&4294967295;a=b+(g<<6&4294967295|g>>>26);g=f+(b^(a|~e))+c[15]+4264355552&4294967295;f=a+(g<<10&4294967295|g>>>22);g=e+(a^(f|~b))+c[6]+2734768916&4294967295;e=f+(g<<15&4294967295|g>>>17);g=b+(f^(e|~a))+c[13]+1309151649&
4294967295;b=e+(g<<21&4294967295|g>>>11);g=a+(e^(b|~f))+c[4]+4149444226&4294967295;a=b+(g<<6&4294967295|g>>>26);g=f+(b^(a|~e))+c[11]+3174756917&4294967295;f=a+(g<<10&4294967295|g>>>22);g=e+(a^(f|~b))+c[2]+718787259&4294967295;e=f+(g<<15&4294967295|g>>>17);g=b+(f^(e|~a))+c[9]+3951481745&4294967295;this.ea[0]=this.ea[0]+a&4294967295;this.ea[1]=this.ea[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;this.ea[2]=this.ea[2]+e&4294967295;this.ea[3]=this.ea[3]+f&4294967295};
WE.prototype.update=function(a,b){l(b)||(b=a.length);for(var c=b-this.oc,e=this.kQ,f=this.Em,g=0;g<b;){if(0==f)for(;g<=c;)this.Eg(a,g),g+=this.oc;if(t(a))for(;g<b;){if(e[f++]=a.charCodeAt(g++),f==this.oc){this.Eg(e);f=0;break}}else for(;g<b;)if(e[f++]=a[g++],f==this.oc){this.Eg(e);f=0;break}}this.Em=f;this.eu+=b};
WE.prototype.digest=function(){var a=Array((56>this.Em?this.oc:2*this.oc)-this.Em);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;for(var c=8*this.eu,b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var e=0;32>e;e+=8)a[c++]=this.ea[b]>>>e&255;return a};var XE=function(a){this.Sa=new nC;this.Ub=null;this.CR=vE(a,pB).then(function(a){return this.Ub=a},null,this);this.Co=null;this.P4=vE(a,op,yB).then(function(a){return this.Co=a},null,this);this.OI=Te();this.J1=this.OI.promise;this.Zp=null;this.So=!1;this.Vu=[];this.VG=this.SC=!1},YE=new Yo("RLVxEf"),ZE=function(a){a.yi(YE)||a.xh(YE,new XE(a))};d=XE.prototype;d.jn=function(){this.hI();return this.Zp||!1};
d.HP=function(a){this.Ub=this.Ub||a.Ad;this.Co=this.Co||a.OJ;this.hI();a.xb.ym(this.jn());Math.random()<=this.Ub.cF()&&a.xb.ar();this.Vu.push(a);a.onConnect.then(v(this.g1,this,a));a.onDisconnect.then(v(this.HI,this,a),v(this.HI,this,a))};d.qT=function(a){this.Ub?a():this.CR.then(a)};d.rT=function(a){this.Co?a():this.P4.then(a)};d.g1=function(a){this.tR(a);this.BK(a)};d.HI=function(a){this.BK(a);lb(this.Vu,a)};d.hI=function(){this.VG||this.ZD()};
d.ZD=function(a){this.qT(v(function(){this.VG=!0;this.So=null;var b=Te();b.promise.then(v(this.R1,this),v(this.Q1,this,a));var c=this.Ub.bF();if(null!=c){null!=a&&(c=ef(c,"set",String(a)));var e=nf.ck();e.open("GET",c,!0);e.onreadystatechange=function(){4==e.readyState&&(200==e.status?b.resolve(e.responseText):b.reject(null))};e.send(null)}else b.reject(null)},this))};d.R1=function(a){this.So="true"==a;this.RI()};d.Q1=function(a){this.So=l(a)?a:this.jn();this.RI()};
d.RI=function(){this.OI.resolve();null===this.Zp&&(this.Zp=this.So,z(this.Vu,function(a){a.xb.ym(this.jn())},this));this.So!=this.Zp&&this.ZD(this.jn())};d.tR=function(a){if(!this.SC){this.SC=!0;var b=this.WH();null!=b&&(null!=b.yk()&&3456E5>w()-b.getTime()&&this.Uba(b),b.M()==a.X.get()&&6E4>w()-b.getTime()&&this.J1.then(function(){this.jn()&&this.rT(v(function(){z(b.Lk()||[],function(a){this.Co.kK(a.lW(),b.M())},this)},this))},void 0,this))}};
d.FC=function(a,b){a+=b;b=new WE;b.update(a,a.length);return String.fromCharCode.apply(String,b.digest())};d.Uba=function(a){if(null!=a.Qf()&&null!=a.Ye()&&null!=a.Hk()&&0!=(a.Lk()||[]).length){var b=this.DE(a);z(a.Lk(),function(c){b.Cj(this.DF(a,c),c.ex())},this)}};d.DY=function(){var a=this.WH();if(null==a||null==a.Qf()||null==a.Ye()||null==a.Hk()||0==(a.Lk()||[]).length)return[];var b=this.DE(a);return B(a.Lk(),function(c){return b.uD(this.DF(a,c),c.ex())},this)};
d.DE=function(a){return new Yr(this.Ub.NY,a.jd()||a.Hk(),a.Qf(),a.Ye()||0,void 0,a.rc()||this.Ub.rc())};d.DF=function(a,b){var c=new Vp;c.tM((new Date(a.getTime())).toString());c.wM(a.yk());c.cL(-2);c.bL(b.ex());b=new br;b.aL(c);b.I(a.M());b.bA(this.Ub.Kw());b.$o(this.Ub.li());b.Dh(a.Hk());b.mj(a.xG());return b};
d.WH=function(){if(!this.Sa.isAvailable())return null;var a=this.Sa.get("report_luak");this.Sa.remove("report_luak");if("hc:rc"!=kf(a||"[]")[0])return null;a=new WA(kf(a));return a.YX()==this.FC(this.Ub.Jr(),a.getTime())?a:null};
d.BK=function(a){if(this.Sa.isAvailable()){var b=new WA;b.I(a.X.get());var c=w();b.setTime(c);b.i$(this.FC(this.Ub.Jr(),c));b.setProperty(this.Ub.Qf());b.Dt(this.Ub.Ye());b.Dh(a.vl);b.Ll(this.Ub.jd());var e=[];zb(a.xb.CX(),function(a,b){var c=new YA;c.Z9(a);c.L8(b);e.push(c)});0!=e.length&&(b.q$(e),a.onDisconnect.qc&&b.Xo(a.onDisconnect.get()),(a=a.em)&&b.mj(a),this.Sa.set("report_luak",b.cb()))}};var $E=function(){this.qc=!1;this.Mb=Te();this.Dj=null};$E.prototype.then=function(a,b,c){return this.Mb.promise.then(a,b,c)};Ge($E);$E.prototype.get=function(){return this.Dj};var aF=function(){this.provider=new $E};aF.prototype.resolve=function(a){this.provider.qc||(this.provider.qc=!0,this.provider.Dj=a,this.provider.Mb.resolve(a))};aF.prototype.reject=function(a){this.provider.qc||(this.provider.qc=!0,this.provider.Mb.reject(a))};var bF=function(){K.call(this)};x(bF,sE);bF.prototype.Ru=r;bF.prototype.eK=r;bF.prototype.At=r;var dF=function(){Nd.call(this);this.CT=[];this.Tt=new cF(v(this.r6,this));this.ha(this.Tt)};x(dF,Nd);dF.prototype.refresh=function(){this.Tt.TJ()};dF.prototype.r6=function(a){z(this.CT,function(b){a=b.filter(a)});return a};var cF=function(a){K.call(this);this.FT=a;this.sh=[];this.jw=!1};x(cF,AE);cF.prototype.Rz=function(a){this.sh=pb(a);this.TJ()};cF.prototype.TJ=function(){this.jw||(this.jw=!0,Ee(this.GS,this))};cF.prototype.GS=function(){this.jw=!1;this.dispatchEvent(new BE(this.FT(this.sh)))};var fF=function(a,b){K.call(this);this.Pb=new eF(a,this);this.ha(this.Pb);this.OJ=b;this.Ad=this.OJ.dd;this.o=E("realtime.media.call.BaseCall");this.Lc=new Xh(this);this.ha(this.Lc);this.za=new aF;this.X=this.za.provider;this.ia=new aF;this.ra=this.ia.provider;this.Zy=[];this.vl=this.Ad.Qf()+"^"+Ra();this.em=null;this.LA=new aF;this.Hh=this.LA.provider;this.qj=new aF;this.KA=this.qj.provider;this.tJ=new aF;this.no=new aF;this.onConnect=this.no.provider;this.MI=new aF;this.onDisconnect=this.MI.provider;
this.Jy=new aF;this.k2=this.Jy.provider;this.vC=vE(a,lp,TE);this.uN=new dF;this.ha(this.uN);this.RD=new dF;this.ha(this.RD);this.xb=new EE(a,b,this.uN.Tt,this.RD.Tt);this.ha(this.xb);this.Yv=null;(new aF).resolve(this.xb);this.Ph=[];this.D=0;this.Lc.listen(this.xb,"Pa",this.dispatchEvent);this.Lc.listen(this.xb,"A",this.Ny);vE(a,YE,ZE).then(function(a){a.HP(this)},null,this);this.Zm=[];vE(a,mp,vs).then(function(a){this.de=a;zb(this.Hw(),function(a,b){this.Zm.push(this.de.na(b,a))},this)},null,this)};
x(fF,K);d=fF.prototype;d.NF=function(){return this.Ad.vk()};d.lc=function(a){a.oB&&(a=a.gca(this.Ad.jd()));var b=this.Ad.mr();null!=b&&(a=a.hca(b));I(this.o,"Starting the media session.");this.xb.lc(a);this.Jy.resolve(null)};d.Hw=function(){return{callState:v(this.getState,this),hangoutId:v(this.X.get,this.X),pid:v(this.ra.get,this.ra),plid:qc(this.vl)}};d.L=function(){I(this.o,"Disposing call.");this.disconnect(0);z(this.Zm,this.de.Dz,this.de);fF.S.L.call(this)};
d.cc=function(a){a!=this.D&&(H(this.o,"Call state changed from "+this.D+" to "+a),this.D=a,this.dispatchEvent("gb"))};d.getState=function(){return this.D};
d.tba=function(a,b,c){H(this.o,"triggerConnected() called. HangoutId: "+b+" ParticipantId: "+c);this.za.resolve(b);this.ia.resolve(c);this.zD();this.KA.then(function(a){a=new QE(a,this.xb);this.tJ.resolve(a);this.ha(a)},void 0,this);a.resolve();this.no.resolve(null);this.cc(2);this.xb.connect(b,c,this.vl,"jid",this.em);this.jx().IN&&(this.Yv=new PE(this.Pb),this.ha(this.Yv),this.Yv.connect(this.xb,this.KA.get(),this.ra.get()));this.ha(new RE(this.xb,this.Ad.Sg(),this.Ad.Ng()));H(this.o,"Call connected")};
d.zD=r;d.rb=function(){this.xb.rb()};d.At=function(a){this.Zy=pb(a);this.xb.jj(this.Zy);this.KA.then(function(a){a.At(this.Zy)},void 0,this)};d.disconnect=function(a){if(3==this.getState()||4==this.getState())return H(this.o,"disconnect() skipped, already disconnecting."),this.onDisconnect;H(this.o,"disconnect() called. Endcause: "+a);var b=2==this.getState();this.cc(3);this.aB(b,a);return this.onDisconnect};
d.aB=function(a,b){H(this.o,"triggerDisconnected(). Endcause: "+b);a=new gF(b);this.za.reject(a);this.ia.reject(a);this.qj.reject(a);this.tJ.reject(a);this.no.reject(a);this.Jy.reject(a);z(this.Ph,function(a){Od(a)});hb(this.Ph);this.NF().WC();this.MI.resolve(b);this.cc(4);this.xb.stop(b)};
d.ad=function(a){if(3==this.getState()||4==this.getState())return H(this.o,"addCapture() failed, because we are disconnecting"),!1;for(var b=0;b<this.Ph.length;b++)if(this.Ph[b].capture==a)return G(this.o,"addCapture() failed, because we already added this capture"),!1;H(this.o,"addCapture() succeeded. Capture Id:"+a.ba().getId());this.Ph.push(new VE(this.xb,this,a));this.qj.provider.qc&&this.qj.provider.get().Ru(a.ba());return!0};
d.ue=function(a){H(this.o,"removeCapture() called. Capture Id:"+a.ba().getId());return mb(this.Ph,function(b){return b.capture==a?(this.qj.provider.qc&&this.qj.provider.get().eK(a.ba()),Od(b),H(this.o,"removeCapture() succeeded. Capture Id:"+a.ba().getId()),!0):!1},this)};d.mj=function(a){this.em=a;this.xb.em=a};d.Cw=function(){return B(this.Ph,function(a){return a.capture})};
d.Ny=function(a){if(a.target==this.xb)"SP"==a.state?(H(this.o,"Disconnect received from session. Endcause: "+a.Bb),this.disconnect(a.Bb)):"IP"==a.state&&this.dispatchEvent("fb");else{var b=a.target;"SP"==a.state?this.vC.then(function(a){a.dt(b)},null,this):"IP"==a.state&&this.vC.then(function(a){a.Sp(b)},null,this)}};d.jx=function(){return this.xb.jx()};var hF=function(){},gF=function(a){this.Bb=a},eF=function(a,b){cp.call(this,a);this.Oa=b};x(eF,cp);var iF=function(a,b,c,e,f){K.call(this);this.zc=new JA;this.cf=a;this.rj=b;this.Os=c;this.jg=f;this.ag=new D;this.ly=new IE;this.B=new Xh(this);this.ha(this.B);this.B.listen(this.rj,"f",this.WA);this.B.listen(this.jg,["Y","A"],this.WA);z(e,this.Ru,this)};x(iF,bF);d=iF.prototype;d.Ru=function(a){this.ly.add(a)};d.eK=function(a){this.ly.remove(a)};d.Er=function(a){return a==this.cf?this.ly:this.ag.get(a,null)};
d.At=function(a){var b=new Jc;z(a,function(a){if(a!=this.cf&&(b.add(a),!this.ag.xa(a))){var c=new IE;this.ag.set(a,c);this.dispatchEvent(new tE("Na",a,c))}},this);z(this.ag.ib(),function(a){if(!b.contains(a)){var c=this.ag.get(a);this.ag.remove(a)&&this.dispatchEvent(new tE("Oa",a,c))}},this);this.WA()};
d.WA=function(){var a=new Jc;z(this.rj.get(),function(b){this.AZ(b);a.add(this.er(b.v(),b.ya()))},this);z(this.jg.getRemoteStreams(),function(b){var c=b.v(),e=b.ya();if(c!=this.cf&&!a.contains(this.er(c,e))){b=b.getInfo().J();var f=this.ag.get(c);null!=f&&!f.Xq(b,e,c)&&f.add(new IA(c,e,b));a.add(this.er(c,e))}},this);z(this.ag.C(),function(b){z(b.getSources(),function(c){a.contains(this.er(c.v(),c.getId()))||b.remove(c)},this)},this)};d.er=function(a,b){return a+"/"+b};
d.AZ=function(a){var b=this.ag.get(a.v());if(null!=b&&(a=this.zc.F3(a).source,null!=a)){var c=b.Xq(a.O(),a.getId(),a.v());null!=c?(c.K7(a.ed),c.e$(a.Mo),c.cc(a.getState()),c.CM(a.FG())):b.add(a)}};var jF=function(a,b,c){fF.call(this,a,b);this.Ns=!1;this.tx=new aF;this.Xg=this.tx.provider;this.Os=new aF;this.te=this.Os.provider;this.te.then(function(a){this.Lc.listen(a,"f",Ba(this.$M,a));this.$M(a)},null,this);this.Uv=this.dB=this.fv=this.dz=null;a.wk(YE,!1).then(v(function(a){this.Uv=a},this));c&&this.lc(c)};x(jF,fF);var kF={1:200,2:201,3:202,4:206,5:207,6:209,7:216,11:223,17:235,12:236,13:237,14:238,15:239,16:240},lF={1:0,2:307,3:303,4:217,5:305,6:307,7:307,8:306,11:217};d=jF.prototype;
d.rb=function(){jF.S.rb.call(this);this.Hh.get()&&this.Hh.get().rb();this.te.get()&&this.te.get().rb();this.Xg.get()&&this.Xg.get().rb()};d.$M=function(a){this.At(B(a.get(),function(a){return a.v()}))};
d.connect=function(a,b){return this.k2.then(function(){H(this.o,"connect() was called");if(0!=this.getState())return G(this.o,"connect() failed. Not in INITIALIZED. State: "+this.getState()),Oe(new hF(0,this.getState()));var c=Te();this.cc(1);t(a)?this.NR(c,a,b):this.MR(c,a,b);return c.promise},void 0,this)};
d.MR=function(a,b,c){I(this.o,"Resolving Hangout");b.then(function(b){this.lD(a,b,c||null)},function(b){G(this.o,"Hangout resolve failed, reverting to INITIALIZED state");this.cc(0);a.reject(new mF(306,b))},this)};d.NR=function(a,b,c){I(this.o,"Skipping Hangout resolution");b=Jz(this.Pb,this.Ad,[b],St(),pz,"o");this.lD(a,b,c||null)};
d.lD=function(a,b,c){var e=b.lr().M();I(this.o,"connectToHangout(). HangoutId: "+e);if(1!=this.getState())G(this.o,"connectToHangout() failed, not in CONNECTING state. State: "+this.getState()),a.reject(new mF(302,new hF(1,this.getState()))),Od(b);else{var f=Jz(this.Pb,this.Ad,[e],new Ks(zt,[zt.prototype.M],[zt.prototype.I],[zt.prototype.v],[zt.prototype.Ra],Dt,[Dt.prototype.M],[Dt.prototype.I],[Dt.prototype.v],[Dt.prototype.Ra]),kz,"p");I(this.o,"Adding participant");var g=f.Sm();Fa(c||"")||g.Ra(c);
this.TZ(e,c);f.add(g).then(v(this.Z1,this,a,b,f),v(this.Y1,this,a,b,f))}};d.Z1=function(a,b,c,e){1!=this.getState()?(G(this.o,"add participant succeeded, but we are no longer CONNECTING. State: "+this.getState()),a.reject(new mF(302,new hF(1,this.getState()))),a=new zt,a.I(e[0].M()),a.Ra(e[0].v()),c.remove(a).then(this.Lq,null,this),Od(b),Od(c)):(H(this.o,"add participant succeeded"),this.uba(a,b,c,e[0].v()))};
d.Y1=function(a,b,c,e){this.Lq();G(this.o,"add participant failed, moving back to INITIALIZED state");this.cc(0);Od(b);Od(c);a.reject(new mF(this.yU(e),e))};d.Hw=function(){var a=jF.S.Hw.call(this);a.hangout=v(function(){return this.Xg.get()&&this.Xg.get().oa()},this);a.participants=v(function(){return this.te.get()&&this.te.get().oa()},this);a.mediaSources=v(function(){return this.Hh.get()&&this.Hh.get().oa()},this);return a};
d.uba=function(a,b,c,e){var f=b.lr().M();this.tx.resolve(b);this.Os.resolve(c);this.ha(b);this.ha(c);this.tba(a,f,e);b.start();c.start()};d.zD=function(){Re([this.X,this.ra,this.te]).then(function(){var a=Kz(this.Pb,this.Ad,this.X.get());this.ha(a);this.LA.resolve(a);a.start();a=new iF(this.ra.get(),a,this.te.get(),B(this.Cw(),function(a){return a.ba()}),this.xb);this.ha(a);this.qj.resolve(a)},void 0,this)};
d.aB=function(a,b){this.dz=b;if(a&&!this.Ns){H(this.o,"Removing participant on disconnect");var c=new zt;c.I(this.X.get());c.Ra(this.ra.get());var e={};e.jYdIne=b;this.te.get().remove(c,e,2).then(this.Lq,null,this)}jF.S.aB.call(this,a,b);a=new gF(b);this.tx.reject(a);this.Os.reject(a);this.LA.reject(a);null!=this.Xg.get()&&this.Xg.get().stop();null!=this.te.get()&&this.te.get().stop();null!=this.Hh.get()&&this.Hh.get().stop()};
d.TZ=function(a,b){this.fv=me(hh(),"beforeunload",v(this.hJ,this,a,b));this.dB=me(hh(),"unload",v(this.hJ,this,a,b))};d.Lq=function(){null!=this.fv&&oe(this.fv);null!=this.dB&&oe(this.dB)};
d.hJ=function(a,b){this.Lq();var c=this.Ad.yG(),e=null!=this.dz?this.dz:63;if(null!=c){var f=new iz;f.Xo(e);var g=new Dt;g.I(a);Fa(b||"")||g.Ra(b);f.ja([g]);f.setRequestHeader(this.Ad.PU());a=new Y;a.lA(this.NF().or());f.j(a);f=f.cb();a=this.Uv?this.Uv.DY():[];a=B(a,function(a){return a.cb()},this);if(null!=navigator.sendBeacon){var k=new FormData;k.append("r",f);z(a,function(a){k.append("l",a)});this.Ns=navigator.sendBeacon(c,k)}this.Ns||(c=ef(c,"r",f),c=ef(c,"l",a),f=nf.ck(),f.open("GET",c,!1),
f.send(null));this.Ns=!0}this.disconnect(e)};d.yU=function(a){var b;if(a&&a.response instanceof Ay){a=a.response;var c=a.getResponseHeader();c&&(b=10==c.eb()?kF[a.Jw()]:lF[c.eb()])}return l(b)?b:302};var mF=function(a,b){this.OM=a;this.WD=b};var nF=function(a,b,c,e){var f=0;l(e)&&(c=c.Lm(),c.AL(!0),f=w()+e);var g=Te(),k=function(a){w()>=f?g.reject(a):Ze(q,5E3)},p=function(c){1==c.getResponseHeader().eb()?(c=c.M(),g.resolve(Jz(a,b,[c],St(),pz,"o"))):k(new eB("fatal","backend",null,c))},q=function(){var e=c,f=ys.N().Gk(a,b),g=f.vk(),e=e.Lm();e.setRequestHeader(f.Dw());g.fl("hangouts/resolve",e).then(p).Ec(k)};q();return g.promise};var oF=function(a,b,c,e){this.a=E("mr.mirror.hangouts.HangoutCallService");this.Ha=a;this.wb=e;this.Da=new Xh(this);this.Oa=null;this.uv=new ff;this.ak=new ff;this.zj=!1;this.mg=new ff;this.mm=this.Nj=null;this.zJ=!1;this.VR(b,c)};x(oF,Nd);d=oF.prototype;
d.VR=function(a,b){this.wb(new Vg("REFRESH_AUTH"));var c=this;a.then(function(){return b}).then(function(a){I(c.a,"Creating call for hangout id: "+a.hangoutId+" resolvedId: "+a.resolvedId+" conferenceMode: "+a.conferenceMode);var b=(new bA).rca(!0).lca(!1);void 0!=a.conferenceMode&&(b=b.nca(a.conferenceMode));yB(c.Ha);c.Oa=new jF(c.Ha,c.Ha.get(op),b);c.ha(c.Oa);c.Oa.te.then(c.aaa,null,c);c.Oa.Hh.then(c.caa,null,c);c.Oa.onConnect.then(c.YY,null,c);c.Oa.onDisconnect.then(c.$Y,function(a){G(c.a,"Error on disconnect: "+
a)},c);c.uv.resolve(a)})};
d.jD=function(a){H(this.a,"Connecting to hangout");var b=this;setTimeout(function(){b.ak.reject(Error("Timed out before connecting"))},3E4);this.uv.promise.then(function(c){var e=c.hangoutId;c=c.resolvedId;I(b.a,"Call ready.");var f="",f=b.Ha.get(pB);c?(I(b.a,"Already resolved id: "+c),f=sh(Jz(b.Ha,f,[c],St(),pz,"o"))):(I(b.a,"resolving hangout id: "+e),f=nF(b.Ha,f,b.bS(e)));b.Oa.connect(f).Ec(function(a){b.f0("Connect error",a);if(a.WD){var c="",e;for(e in pE)if(pE[e]==a.OM){c=e+"("+a.OM+")";break}F(b.a,
"Call connect error startupCode: "+c);a=a.WD}c="SESSION_FAILURE";a.response&&a.response.dW&&"chrrp"==a.response.sI&&(c="HANGOUT_INVALID");b.wb(new Vg(c));b.ak.reject(a);b.St(16)});b.Oa.ra.then(function(c){b.AN(a,c);b.wI(c);b.Y$(b.Oa.Xg.get())})});return this.ak.promise};d.Bba=function(a){var b=this;return new Promise(function(c,e){b.Oa.ra.then(function(e){b.AN(a,e);b.zJ||b.wI(e);c()},e)})};
d.bS=function(a){a=a.split("@");var b=new Ux;b.AL(!0);if(-1!=a[1].indexOf(".")){var c=new Rx;c.Ol(a[0]);c.Ml(a[1]);b.j9(c)}else c=new Jt,c.p$(a[1]),c.EA(a[0]),b.sL(c);return b};d.AN=function(a,b){0<a.getAudioTracks().length&&(this.Nj?this.Nj.JL(a):(this.Nj=new kE(new IA(b,"1","sa"),a),this.Nj.NA(),this.Oa.ad(this.Nj)));this.mm?this.mm.JL(a):(b=new IA(b,"2","ua","wa"),b.CM([new GA(0,0,1,1)]),this.mm=new kE(b,a),this.mm.NA(),this.Oa.ad(this.mm))};
d.wI=function(a){var b=new Lt;b.N9(a);a=new Ot;a.sA(b);a.I(this.Oa.X.get());this.Oa.Xg.get().modify(a)};d.Y$=function(a){var b=this;this.Da.listen(a,"f",function(a){b.Oa.ra.then(function(c){b.zJ=Array.prototype.some.call(a.target.get(),function(a){return a.Bn()&&a.Bn().tX()==c})})})};d.aaa=function(a){var b=this;this.Da.listen(a,"f",function(a){b.a2(a)});this.Da.listen(a,"h",function(a){b.JI(a)})};
d.a2=function(a){a=a.target;I(this.a,"Participants updated: "+a.get().filter(function(a){return a.xF()}).map(function(a){return a.Mg()}).join(", "));!this.zj&&2>a.get().length&&(this.wb(new Vg("HANGOUT_INACTIVE")),this.St(61))};d.caa=function(a){var b=this;this.Da.listen(a,"f",function(a){b.E2(b.Oa,a)});this.Da.listen(a,"h",function(a){b.JI(a)})};
d.E2=function(a,b){for(var c=this,e=0;e<b.Nc.length;e++){var f=b.Nc[e];f.v()==a.ra.get()&&f.Fk()&&f.Fk().xk()&&a.Cw().forEach(function(a){a.ba().getId()==f.ya()&&(a.ko(),c.wb(new Vg("STATUS_RESPONSE",{mute:!0})))})}};d.Mba=function(a){this.Oa.Cw().forEach(function(b){"sa"==b.ba().O()&&(a?b.ko():b.sN())})};d.JI=function(a){F(this.a,"Failure in collection: "+a.reason);this.ak.reject(a.reason);this.St(3)};d.YY=function(){H(this.a,"Call connected");this.wb(new Vg("SESSION_START_SUCCESS"));this.ak.resolve(void 0)};
d.$Y=function(a){this.wb(new Vg("SESSION_END"));var b="",c;for(c in hs)if(hs[c]==a){b=c+"("+a+")";break}H(this.a,"Call ended with endcause: "+b);0!=a&&61!=a&&16!=a&&this.wb(new Vg("SESSION_FAILURE"))};d.stop=function(){this.St(0);return this.mg.promise};d.St=function(a){H(this.a,"Stopping call with end Cause: "+a);if(this.zj)H(this.a,"Ignore stop, already stopping.");else if(this.zj=!0,this.Oa){var b=this;this.Oa.disconnect(a).then(function(a){I(b.a,"Call disconnected with endCause: "+a);b.mg.resolve(void 0)})}else this.mg.resolve(void 0)};
d.L=function(){var a=this;this.Da.mb();var b=function(){a.Oa&&a.Oa.mb()};this.mg.promise.then(b,b);Od(this.Nj);Od(this.mm);this.uv.reject(Error("Disposed"));this.ak.reject(Error("Disposed"));setTimeout(function(){a.mg.reject(Error("Timed out before stopping"))},1E4)};
d.f0=function(a,b){if(b instanceof Error)F(this.a,a,b);else if(ua(b))F(this.a,a+": "+pd(b));else if(wa(b)){var c=this.a;if("undefined"==typeof b)b="undefined";else if(null==b)b="NULL";else{var e=[],f;for(f in b)if(!va(b[f])){var g=f+" = ";try{g+=b[f]}catch(k){g+="*** "+k+" ***"}e.push(g)}b=e.join("\n")}F(c,a+": "+b)}else F(this.a,a+": "+b)};var pF=function(a,b,c,e){Ug.call(this,b);this.tl=a;this.Ha=c;this.Am=e;this.a=E("mr.mirror.hangouts.HangoutSession");this.Tc=pg.qr(b.id);this.qa=new ff;this.Rn=this.zb=!1;this.Wk=!0;this.kc=null;this.mg=new ff;this.zj=!1;this.Yj=new ff;this.Wc=this.$z=null;this.fp();this.wf=new oF(this.Ha,this.Am,this.Yj.promise,v(this.Bh,this))};x(pF,Ug);d=pF.prototype;
d.start=function(a){var b=this;I(this.a,"Starting new hangout session");this.kc=a;this.zb?this.qa.reject(Error("Mirroring already started")):(this.$z=new wg("MediaRouter.Hangouts.Session.Launch"),this.wf.jD(this.kc).then(function(){I(b.a,"Call connected");b.zb=!0;b.Bh(new Vg("SESSION_START_SUCCESS"));b.$z.end();b.$z=null;b.Wc=new Bg("MediaRouter.Hangouts.Session.Length");b.qa.resolve(b)},function(a){b.qa.reject(a)}));return this.qa.promise};
d.M5=function(){var a=this;if(!this.zb||this.zj)return Promise.resolve();I(this.a,"Resetting session call.");return this.wf.stop().then(function(){a.Rn=!1;a.Yj=new ff;a.wf.mb();a.wf=new oF(a.Ha,a.Am,a.Yj.promise,v(a.Bh,a));a.kc.getTracks().forEach(function(a){a.enabled=!0});return a.wf.jD(a.kc).then(function(){I(a.a,"Reset call connected")},function(){a.stop()})})};d.YM=function(){return!0};
d.BN=function(a){var b=this;return new Promise(function(c,e){b.zb?b.wf.Bba(a).then(function(){b.kc=a;c()},e):e(Error("Mirroring was never started"))})};d.stop=function(){var a=this;I(this.a,"Stopping session.");if(!this.zb||this.zj)return!0;this.zj=!0;this.Wc&&(this.Wc.end(),this.Wc=null);this.wf.stop().then(function(){a.zb=!1;a.mg.resolve(void 0)});return!0};
d.L=function(){var a=this;this.stop();var b=function(){a.Tc.mb();a.wf.mb()};this.mg.promise.then(b,b);this.qa.reject(Error("Disposed"));this.Yj.reject(Error("Disposed"));setTimeout(function(){a.mg.reject(Error("Timed out before stopping"))},1E4)};
d.fp=function(){var a=this;this.Tc.onMessage=function(b){if(t(b)){var c=JSON.parse(b),e=c.clientId;if(e){"client_connect"==c.type?this.Bh({message:{sessionId:"castouts"},clientId:e,type:"new_session"}):"v2_message"==c.type&&"STOP"==c.message.type&&this.Bh({message:"castouts",clientId:e,type:"remove_session"});return}b=c}if(!b.type)throw Error("Message has no type.");switch(b.type){case "AUTH_READY":void 0!=b.data.conferenceMode&&b.data.conferenceMode!=a.Wk?(I(a.a,"received auth ready message with new conference mode"),
a.Wk=b.data.conferenceMode,a.M5().then(function(){a.Yj.resolve(b.data)})):(I(a.a,"received auth ready message"),b.data.conferenceMode=a.Wk,a.Yj.resolve(b.data));break;case "LOCAL_PRESENT":I(a.a,"local present message");a.Bh(b);break;case "MUTE":b.data&&(a.Rn=!!b.data.mute,a.wf.Mba(a.Rn));break;case "STATUS_RESPONSE":I(a.a,"route status response message");b.data&&(a.Rn=!!b.data.mute);break;case "STATUS_REQUEST":I(a.a,"route status request message");a.Bh(new Vg("STATUS_RESPONSE",{routeDescription:a.ab.description,
mute:a.Rn,local:!a.Wk}));break;default:throw Error("Unknown message type: "+b.type);}}};var qF={channelType:"mesi"};pF.prototype.Bh=function(a){this.a.rH(Dd)&&I(this.a,"sending message to mrp: "+JSON.stringify(a));this.Tc.sendMessage(a,qF)};pF.prototype.Of=function(){return this.tl};var rF=function(a){this.Ro=a};rF.prototype.onRequest=n;rF.prototype.w2=n;rF.prototype.onError=function(a,b){401==b.Ax&&this.Ro(new Vg("REFRESH_AUTH"))};var sF=function(a,b){Tg.call(this,"hangouts",b);this.Ha=new cp;this.Am=this.Ro=null;this.Sb=a;this.$Z()};x(sF,Tg);d=sF.prototype;d.Of=function(a,b){b.CS();return new Gh(a,b)};d.Eq=function(a,b){if(a instanceof Gh)return a=new pF(a,b,this.Ha,this.Am),this.Ro=a.Bh.bind(a),a;throw Error("Invalid parameters");};d.bt=function(){oE(0)};d.Ys=function(){oE(1)};d.Zs=function(){Eg("MediaRouter.Hangouts.Session.End")};d.$s=function(a){Fg("MediaRouter.Hangouts.Start.Failure",a,Gg)};d.at=function(){Eg("MediaRouter.Hangouts.Stream.End")};
d.gf=function(a){this.Ro&&this.Ro(a)};
d.$Z=function(){var a=this,b=new hB(new lE,new rF(this.gf.bind(this))),c="v1";.1>Math.random()&&(c="v1_preprod");var b=new mB(b,"hangouts",c,"","https://www.googleapis.com"),e=new oB(b);e.ye(39);e.Dt(158);e.setProperty("castouts");e.WK("castouts");e.XK(chrome.runtime.id+chrome.runtime.getManifest().version);e.Ll("castouts",!0);b=.01;this.Sb.r_()&&(b=1);e.kL(b);e.jL("https://hangouts.google.com/hangouts/_/logpref");e.lL("https://hangouts.google.com/hangouts/_/mlr");e.register(this.Ha);yB(this.Ha);
this.Am=new Promise(function(b,c){a.Ha.get(op).B7(e).Ld().then(b,c)})};zh.N().VJ(function(a,b){return new sF(a,b)});
