'use strict';var kz=function(){this.f=new hl;this.a=2;this.b=4294967295;this.a=Math.max(this.a,2);this.b=Math.min(this.b,4294967295);this.a>this.b&&(this.a=2,this.b=4294967295)},lz=function(a){for(var b=a.b-a.a+1,c=Math.floor(a.a+b*Math.random()),d=0;a.f.contains(c);)if(c<a.b?++c:c=a.a,++d>=b)return null;a.f.add(c);return c};new Ni({neon:1,sse2:2,ssse3:4,sse4_1:8,sse4_2:16,avx:32});/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
var mz=function(a,b){this.u=[];this.I=a;this.B=b||null;this.l=this.b=!1;this.g=void 0;this.w=this.X=this.s=!1;this.v=0;this.f=null;this.m=0};mz.prototype.cancel=function(a){if(this.b)this.g instanceof mz&&this.g.cancel();else{if(this.f){var b=this.f;delete this.f;a?b.cancel(a):(b.m--,0>=b.m&&b.cancel())}this.I?this.I.call(this.B,this):this.w=!0;this.b||this.a(new nz)}};mz.prototype.A=function(a,b){this.s=!1;oz(this,a,b)};
var oz=function(a,b,c){a.b=!0;a.g=c;a.l=!b;pz(a)},rz=function(a){if(a.b){if(!a.w)throw new qz;a.w=!1}};mz.prototype.callback=function(a){rz(this);oz(this,!0,a)};mz.prototype.a=function(a){rz(this);oz(this,!1,a)};var tz=function(a,b,c){return sz(a,b,null,c)},uz=function(a,b){return sz(a,null,b,void 0)},wz=function(a){var b=vz({method:"cpu.getInfo"});return sz(b,a,a,void 0)},sz=function(a,b,c,d){a.u.push([b,c,d]);a.b&&pz(a);return a};
mz.prototype.then=function(a,b,c){var d,e,f=new cj(function(a,b){d=a;e=b});sz(this,d,function(a){a instanceof nz?f.cancel():e(a)});return f.then(a,b,c)};Zi(mz);var xz=function(a,b){b instanceof mz?tz(a,p(b.h,b)):tz(a,function(){return b})};mz.prototype.h=function(a){var b=new mz;sz(this,b.callback,b.a,b);a&&(b.f=this,this.m++);return b};mz.prototype.isError=function(a){return a instanceof Error};
var yz=function(a){return Pb(a.u,function(a){return Ca(a[1])})},pz=function(a){if(a.v&&a.b&&yz(a)){var b=a.v,c=zz[b];c&&(sa.clearTimeout(c.ua),delete zz[b]);a.v=0}a.f&&(a.f.m--,delete a.f);b=a.g;for(var d=c=!1;a.u.length&&!a.s;){var e=a.u.shift(),f=e[0],g=e[1];e=e[2];if(f=a.l?g:f)try{var l=f.call(e||a.B,b);m(l)&&(a.l=a.l&&(l==b||a.isError(l)),a.g=b=l);if($i(b)||"function"===typeof sa.Promise&&b instanceof sa.Promise)d=!0,a.s=!0}catch(r){b=r,a.l=!0,yz(a)||(c=!0)}}a.g=b;d&&(l=p(a.A,a,!0),d=p(a.A,a,
!1),b instanceof mz?(sz(b,l,d),b.X=!0):b.then(l,d));c&&(b=new Az(b),zz[b.ua]=b,a.v=b.ua)},Cz=function(){var a=new mz;a.callback(new Bz(200,""));return a},Dz=function(a){var b=new mz;b.a(a);return b},qz=function(){Eb.call(this)};t(qz,Eb);qz.prototype.message="Deferred has already fired";qz.prototype.name="AlreadyCalledError";var nz=function(){Eb.call(this)};t(nz,Eb);nz.prototype.message="Deferred was canceled";nz.prototype.name="CanceledError";
var Az=function(a){this.ua=sa.setTimeout(p(this.b,this),0);this.a=a};Az.prototype.b=function(){delete zz[this.ua];throw this.a;};var zz={};var Ez=function(){Jh.call(this)};t(Ez,Jh);Ez.prototype.j=Ih("fava.debug.ErrorReporter");Ez.prototype.init=function(){};new Ez;Ih("fava.debug.errorContext");var Fz=function(a,b){Jh.call(this);this.g=b;this.a=[];if(a>this.g)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");for(b=0;b<a;b++)this.a.push(this.b())};t(Fz,Jh);var Gz=function(a,b){a.a.length<a.g?a.a.push(b):a.f(b)};Fz.prototype.b=function(){return{}};Fz.prototype.f=function(a){if(Da(a))if(Ca(a.wa))a.wa();else for(var b in a)delete a[b]};Fz.prototype.W=function(){Fz.aa.W.call(this);for(var a=this.a;a.length;)this.f(a.pop());delete this.a};var Jz=function(){this.a=[];this.g=new Ni;this.s=this.w=this.A=this.m=0;this.b=new Ni;this.l=this.v=0;this.B=1;this.h=new Fz(0,4E3);this.h.b=function(){return new Hz};this.u=new Fz(0,50);this.u.b=function(){return new Iz};var a=this;this.f=new Fz(0,2E3);this.f.b=function(){return String(a.B++)};this.f.f=function(){}};Jz.prototype.j=Ih("goog.debug.Trace");var Iz=function(){this.ig=this.time=this.count=0};
Iz.prototype.toString=function(){var a=[];a.push(this.type," ",this.count," (",Math.round(10*this.time)/10," ms)");this.ig&&a.push(" [VarAlloc = ",this.ig,"]");return a.join("")};var Hz=function(){},Mz=function(a,b,c,d){var e=[];-1==c?e.push("    "):e.push(Kz(a.eventTime-c));e.push(" ",Lz(a.eventTime-b));0==a.eventType?e.push(" Start        "):1==a.eventType?(e.push(" Done "),e.push(Kz(a.b-a.startTime)," ms ")):e.push(" Comment      ");e.push(d,a);0<a.a&&e.push("[VarAlloc ",a.a,"] ");return e.join("")};
Hz.prototype.toString=function(){return null==this.type?this.comment:"["+this.type+"] "+this.comment};Jz.prototype.reset=function(){for(var a=0;a<this.a.length;a++){var b=this.a[a];b.id&&Gz(this.f,b.id);Gz(this.h,b)}this.a.length=0;this.g.clear();this.m=Ka();this.l=this.v=this.s=this.w=this.A=0;a=this.b.Qa();for(b=0;b<a.length;b++){var c=this.b.get(a[b]);c.count=0;c.time=0;c.ig=0;Gz(this.u,c)}this.b.clear()};
Jz.prototype.toString=function(){for(var a=[],b=-1,c=[],d=0;d<this.a.length;d++){var e=this.a[d];1==e.eventType&&c.pop();a.push(" ",Mz(e,this.m,b,c.join("")));b=e.eventTime;a.push("\n");0==e.eventType&&c.push("|  ")}if(0!=this.g.da()){var f=Ka();a.push(" Unstopped timers:\n");xi(this.g,function(b){a.push("  ",b," (",f-b.startTime," ms, started at ",Lz(b.startTime),")\n")})}b=this.b.Qa();for(d=0;d<b.length;d++)c=this.b.get(b[d]),1<c.count&&a.push(" TOTAL ",c,"\n");a.push("Total tracers created ",this.v,
"\n","Total comments created ",this.l,"\n","Overhead start: ",this.A," ms\n","Overhead end: ",this.w," ms\n","Overhead comment: ",this.s," ms\n");return a.join("")};var Kz=function(a){a=Math.round(a);var b="";1E3>a&&(b=" ");100>a&&(b="  ");10>a&&(b="   ");return b+a},Lz=function(a){a=Math.round(a);return String(100+a/1E3%60).substring(1,3)+"."+String(1E3+a%1E3).substring(1,4)};new Jz;Ih("goog.debug.ErrorReporter");var Nz=function(a){this.b=0;this.f=a||100;this.a=[]};h=Nz.prototype;h.add=function(a){var b=this.a[this.b];this.a[this.b]=a;this.b=(this.b+1)%this.f;return b};h.get=function(a){a=Oz(this,a);return this.a[a]};h.set=function(a,b){a=Oz(this,a);this.a[a]=b};h.da=function(){return this.a.length};h.rb=function(){return 0==this.a.length};h.clear=function(){this.b=this.a.length=0};h.S=function(){var a=this.da(),b=this.da(),c=[];for(a=this.da()-a;a<b;a++)c.push(this.get(a));return c};
h.Qa=function(){for(var a=[],b=this.da(),c=0;c<b;c++)a[c]=c;return a};h.Va=function(a){return a<this.da()};h.Nc=function(a){for(var b=this.da(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};var Oz=function(a,b){if(b>=a.a.length)throw Error("Out of bounds exception");return a.a.length<a.f?b:(a.b+Number(b))%a.f};Ih("fava.debug.DebugService");var Pz="https://clients2.google.com/cr/report",Qz=function(a,b,c,d,e){var f=new FormData;f.append("prod",Id?"Google_Talk_Plugin_Mac":Jd?"Google_Talk_Plugin":"Google_Talk_Plugin_Linux");f.append("ver",(e?e:"unknown")+"-calls");f.append("email",b);f.append("type","log");f.append("log",new Blob([a]),d);if(a=c)try{a=!!navigator.sendBeacon&&navigator.sendBeacon(Pz,f)}catch(l){a=!1}if(a)return Cz();try{var g=new mz;Oj(Pz,function(a){a=a.target;Yj(a)?g.callback(new Bz(a.Ca(),Zj(a))):(a=Error(a.s+" "+a.Ca()+
" "+Zj(a)),g.a(a))},"POST",f);return g}catch(l){return Dz(l)}},Bz=function(a,b){this.a=a;this.b=b};var Rz=function(a,b){B.call(this);a=a||4194304;this.s=this.A=null;this.f=new Uint8Array(a+(b||10485760));this.h=this.f.subarray(0,a);this.a=this.f.subarray(a);this.b=this.m=0;this.g=[]};t(Rz,B);Rz.prototype.open=function(a,b,c){if(!this.A){var d=xc();this.A=d.a;a=Sz(a,b,!!c);b=Tz(a);b=Uz(this,b);Vz(this,b,a).then(function(a){this.s=a;this.w();d.resolve()},p(d.reject,d),this)}return this.A};
var Wz=function(a){if(Uint8Array.__proto__&&Uint8Array.__proto__.from)return Uint8Array.from(a);a=Object(a);if(!a.length)return new Uint8Array(0);for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};Rz.prototype.write=function(a){x(a,function(a){this.g.push(Wz(Uu(a)))},this);this.w()};Rz.prototype.rb=function(){return 0==this.b&&0==this.g.length};
var Xz=function(a){var b=0,c=[];if(a.b>a.f.length){for(var d=a.h.length;d&&127<a.h[d-1];)d--;for(var e=a.a.length,f=a.m;e&&127<a.a[f];)f++,e--,f==a.a.length&&(f=0);c.push(a.h.subarray(0,d));b+=d;d=Wz(Uu("...\r\n\r\n##### LOG TRUNCATED - REMOVED "+(a.b-d-e)+" BYTES#####\r\n\r\n..."));c.push(d);b+=d.length;f+e<=a.a.length?c.push(a.a.subarray(f,f+e)):(c.push(a.a.subarray(f)),c.push(a.a.subarray(0,e-(a.a.length-f))));b+=e}else a.b&&(b+=a.b,c.push(a.f.subarray(0,a.b)));a.g.length&&x(a.g,function(a){c.push(a);
b+=a.length});var g=new Uint8Array(b),l=0;x(c,function(a){g.set(a,l);l+=a.length});return g},Sz=function(a,b,c){var d=xc();a.then(function(a){a.getFile(b,c?{}:{create:!0},p(d.resolve,d),p(d.reject,d))},p(d.reject,d));return d.a},Tz=function(a){var b=xc();a.then(function(a){a.file(p(b.resolve,b),p(b.reject,b))},p(b.reject,b));return b.a},Uz=function(a,b){var c=xc();b.then(function(a){this.b=a.size;if(this.b>this.f.length){var b=xc(),d=new FileReader;d.onload=p(function(){this.h.set(new Uint8Array(d.result));
b.resolve()},this);d.readAsArrayBuffer(a.slice(0,this.h.length));var g=xc(),l=new FileReader;l.onload=p(function(){this.a.set(new Uint8Array(l.result));g.resolve()},this);l.readAsArrayBuffer(a.slice(a.size-this.a.length,a.size));c.resolve(mj([b.a,g.a]))}else{var r=new FileReader;r.onload=p(function(){var a=new Uint8Array(r.result);this.f.set(a);this.b>this.h.length&&(this.m=(this.b-this.h.length)%this.a.length);c.resolve()},this);r.readAsArrayBuffer(a)}},p(c.reject,c),a);return c.a},Vz=function(a,
b,c){var d=xc();lj([b,c]).then(function(a){a[1].createWriter(p(function(a){a.seek(a.length);a.onwriteend=p(this.w,this);d.resolve(a)},this),p(d.reject,d))},p(d.reject,d),a);return d.a};
Rz.prototype.w=function(){this.s&&this.s.readyState!=this.s.WRITING&&0<this.g.length&&(this.s.write(new Blob(this.g)),x(this.g,function(a){var b=this.b;this.b+=a.length;if(b<this.f.length){var c=a.subarray(0,Math.min(this.f.length-b,a.length));this.f.set(c,b);a=a.subarray(c.length)}for(b=this.a.length-this.m;a.length;)c=a.subarray(0,Math.min(b,a.length)),this.a.set(c,this.m),a=a.subarray(c.length),this.m=c.length==b?0:this.m+c.length,b=this.a.length},this),this.g.length=0)};var Zz=function(a){Q(this,a,"cl:plu",-1,Yz)};t(Zz,P);var Yz=[1];Zz.prototype.o=function(){var a=new E;var b=X(this,$z,1);0<b.length&&O(a,1,b,aA);return F(a)};var $z=function(a){Q(this,a,0,-1,null)};t($z,P);$z.prototype.o=function(){var a=new E;aA(this,a);return F(a)};var aA=function(a,b){var c=R(a,1);null!=c&&Hv(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&J(b,3,c)};$z.prototype.qa=function(a){U(this,2,a)};rw("cl:plu",Zz);var bA=function(){};var cA=function(){};t(cA,bA);cA.prototype.da=function(){var a=0;xi(this.Ua(!0),function(){a++});return a};cA.prototype.clear=function(){var a=zi(this.Ua(!0)),b=this;x(a,function(a){b.remove(a)})};var dA=function(a){this.a=a};t(dA,cA);h=dA.prototype;h.isAvailable=function(){if(!this.a)return!1;try{return this.a.setItem("__sak","1"),this.a.removeItem("__sak"),!0}catch(a){return!1}};h.set=function(a,b){try{this.a.setItem(a,b)}catch(c){if(0==this.a.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};h.get=function(a){a=this.a.getItem(a);if(!ta(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};h.remove=function(a){this.a.removeItem(a)};
h.da=function(){return this.a.length};h.Ua=function(a){var b=0,c=this.a,d=new vi;d.next=function(){if(b>=c.length)throw ui;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!ta(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};h.clear=function(){this.a.clear()};h.key=function(a){return this.a.key(a)};var eA=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.a=a};t(eA,dA);var fA=function(){this.a=new eA;this.b=new hl};xa(fA);var gA=[31,37,41,43,47,53,61,67,71,73];fA.prototype.j=Ih("talk.media.webrtc.PendingLogUploadManager");
var hA=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}for(a=0;a<b.length;a++)b[a]^=gA[a%gA.length];return"wrplumplu-"+Zu(b)},iA=function(a,b,c){var d=Ka()-432E6;b=a.a.get(hA(b));if(null!=b)try{var e=Ai(b);if("cl:plu"==e[0]){var f=new Zz(e),g=Mb(X(f,$z,1),function(a){return null!=R(a,1)&&null!=R(a,2)&&null!=R(a,3)&&0<R(a,1)&&R(a,3)>d&&R(a,2)!=c});hw(f,1,g);return f}}catch(l){C(a.j,"Invalid pending JS log upload storage: "+b,l)}return new Zz};
fA.prototype.add=function(a,b){D(this.j,"Recording pending upload for session "+b+" for "+a);this.b.add(b);var c=iA(this,a,b),d=X(c,$z,1),e=new $z;U(e,1,5);e.qa(b);b=Ka();U(e,3,b);Xb(d,void 0,0,e);hw(c,1,d);this.a.set(hA(a),c.ia())};fA.prototype.remove=function(a,b){D(this.j,"Removing record for session "+b+" for "+a);b=iA(this,a,b);this.a.set(hA(a),b.ia())};
var jA=function(a,b){var c=iA(a,b),d=X(c,$z,1),e=Rb(d,function(a){a=R(a,2);return!this.b.contains(a)},a);if(0<=e){var f=d[e],g=R(f,2),l=R(f,1);l--;U(f,1,l);0>=l&&Zb(d,e);hw(c,1,d);a.a.set(hA(b),c.ia());D(a.j,"Signaling session "+g+" for "+b+" to re-upload");a.b.add(g);return g}return null};var lA=function(){this.l="";this.v=null;this.m=new Rz;this.a={};this.f=kA();rj(this.f,wa);this.g=fA.ja();this.h=this.b=null;this.w=window.requestIdleCallback||null};xa(lA);
var mA=function(a,b,c,d){var e=Ka();null==a.v&&(a.v=e);d=null!=d?d:8;if(!(0>d))if(c="["+((e-a.v)/1E3).toFixed(3)+"s]"+d+" "+c+"\n",null!=b)a=a.a[b],null!=a&&a.write([c]);else{for(b in a.a)a.a[b].write([c]);null!=b||a.m.write([c])}},oA=function(a,b,c){a.g.add(c,b);return nA(a,b,c)},nA=function(a,b,c){var d="hangouts-call-"+b+".log",e=a.a[b];if(null!=e)return uz(tz(Qz(Xz(e),c,!0,d,a.l),p(a.s,a,b,c)),p(a.u,a,b,c));e=new Rz;var f=new mz;e.open(a.f,d,!0).then(function(){if(e.rb())mA(this,this.b,"JS log for "+
b+" has no content",9),f.callback(new Bz(null,"No log content for session "+b));else{var a=uz(tz(Qz(Xz(e),c,!1,void 0,this.l),p(this.s,this,b,c)),p(this.u,this,b,c));sz(a,f.callback,f.a,f)}},function(a){this.u(b,0,a);f.a(a)},a);return f},kA=function(){var a=sa.requestFileSystem||sa.webkitRequestFileSystem;if(!a)return hj("Filesystem API not accessible");var b=xc();a(window.TEMPORARY,0,function(a){a.root.getDirectory("log_v2",{create:!0},p(b.resolve,b),p(b.reject,b))},p(b.reject,b));return b.a};
lA.prototype.F=function(a){var b=xc(),c=a.createReader(),d=[],e=0,f=function(){c.readEntries(function(a){a.length?(e++,d=d.concat(a),100<e?b.resolve(d):f()):b.resolve(d)},function(a){b.reject(a)})};f();return b.a};
lA.prototype.X=function(){var a=new Date(Ka()-432E6),b=xc();this.f.then(this.F,null,this).then(function(c){var d={};x(c,function(a){d[a.name]=!0});x(c,function(c){var e=function(){delete d[c.name];wc(d)&&b.resolve()};c.getMetadata(function(b){b.modificationTime<a?c.remove(e,e):e()},e)})},p(b.resolve,b));return b.a};lA.prototype.s=function(a,b,c){200==c.a?(mA(this,this.b,"JS log upload for "+a+" successful: "+c.b),this.g.remove(b,a)):mA(this,this.b,"JS log upload for "+a+" failure "+c.a+": "+c.b,10)};
lA.prototype.u=function(a,b,c){mA(this,this.b,"JS log upload for "+a+" failed: "+c,10)};var pA=function(a,b){return null==a.h?(a.h=new mz,a.B(b,0),a.h):null};lA.prototype.B=function(a,b){Bj(p(this.H,this,a,b),13E3)};lA.prototype.H=function(a,b){Ca(this.w)?this.w.call(null,p(this.A,this,a,b)):this.A(a,b)};lA.prototype.A=function(a,b){var c=jA(this.g,a);null!=c?(mA(this,this.b,"Retrying JS log upload for "+c),uz(tz(nA(this,c,a),p(this.B,this,a,b+1)),p(this.I,this,a,b))):this.I(b)};
lA.prototype.I=function(a){this.h.callback(a);Bj(this.X,13E3,this)};var qA=function(a,b){this.status=void 0===a?99:a;this.value=b},rA=new Map([[1,4030],[2,4031],[3,4031],[4,4030]]);var sA=function(){var a=ie(),b=null,c=a;try{do{try{c.location.origin==a.location.origin&&(b=c.chrome&&c.chrome.runtime||b)}catch(d){}if(c==c.parent)break;c=c.parent}while(null!=c)}catch(d){}return b},tA=function(){return"https:"==ie().location.protocol?"nkeimhogjdpnpccoofpliimaahmaaome":"hoblmflfjcnhdllclikeemgdcbbflkhi"},vz=function(a){mA(lA.ja(),null,"talk.media.webrtc.Extension: Sending message "+Bi(a));var b=new mz,c=sA(),d=a.method;if(c&&null!=c.sendMessage){d=uA(b,d);var e=ie().location;a.origin=
e.origin+"/";var f=Ij(e.href,"tabId");f&&(a.tabId=f);(e=Ij(e.href,"winUrl"))&&(a.winUrl=e);c.sendMessage(tA(),a,d)}else mA(lA.ja(),null,"talk.media.webrtc.Extension: Cannot find appropriate chrome.runtime when sending "+d,10),b.a(new qA(1,"Cannot find appropriate chrome.runtime"));return b},vA=function(){var a=sA();if(a&&null!=a.connect){mA(lA.ja(),null,"talk.media.webrtc.Extension: Opening port named processCpu");a=a.connect(tA(),{name:"processCpu"});var b=p(a.disconnect,a);fi(ie(),"unload",b);a.onDisconnect.addListener(function(){ni(window,
"unload",b)});return a}return null},uA=function(a,b){return function(c){var d="No response from extension";if(null!=c)if(d=c.error,null!=d)d="Extension reported "+d.name+": "+d.message;else{mA(lA.ja(),null,"talk.media.webrtc.Extension: Received response to "+b+": "+Bi(c.value),5);a.callback(new qA(0,c.value));return}var e=sA();e&&null!=e.lastError&&(d=d+" Chrome reported: "+e.lastError.message);mA(lA.ja(),null,"talk.media.webrtc.Extension: Received error to "+b+": "+d,10);a.a(new qA(null!=c?1:2,d))}};var wA=function(a){Jh.call(this);this.m=a;this.b={}};t(wA,Jh);var xA=[];wA.prototype.listen=function(a,b,c,d){return yA(this,a,b,c,d)};var yA=function(a,b,c,d,e,f){Aa(c)||(c&&(xA[0]=c.toString()),c=xA);for(var g=0;g<c.length;g++){var l=fi(b,c[g],d||a.handleEvent,e||!1,f||a.m||a);if(!l)break;a.b[l.key]=l}return a},AA=function(a,b,c){zA(a,b,"playing",c,void 0)},zA=function(a,b,c,d,e,f){if(Aa(c))for(var g=0;g<c.length;g++)zA(a,b,c[g],d,e,f);else(b=ei(b,c,d||a.handleEvent,e,f||a.m||a))&&(a.b[b.key]=b)};
wA.prototype.v=function(a,b,c,d,e){if(Aa(b))for(var f=0;f<b.length;f++)this.v(a,b[f],c,d,e);else c=c||this.handleEvent,d=Da(d)?!!d.capture:!!d,e=e||this.m||this,c=gi(c),d=!!d,b=Uh(a)?ai(a.Eb,String(b),c,d,e):a?(a=ii(a))?ai(a,b,c,d,e):null:null,b&&(oi(b),delete this.b[b.key]);return this};wA.prototype.removeAll=function(){oc(this.b,function(a,b){this.b.hasOwnProperty(b)&&oi(a)},this);this.b={}};wA.prototype.W=function(){wA.aa.W.call(this);this.removeAll()};
wA.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var BA=function(){this.b=this.u=null;this.s=this.f=this.B=this.v=this.w=0;this.A=1;this.a=this.h=this.l=this.g=this.m=this.I=0},CA=function(a){return null!=a.b&&null!=a.u?(a.b.getTime()-a.u.getTime())/1E3:-1};BA.prototype.X=function(a){this.m+=a.tabCpuUsage;this.g+=a.browserCpuUsage;this.l+=a.gpuCpuUsage;this.h+=a.pluginCpuUsage;this.a++};
BA.prototype.toJson=function(){return{jmiVersion:3,numOfProcessors:this.A,totalCpuUsage:this.I,tabCpuUsage:this.a?this.m/this.a:null,browserCpuUsage:this.a?this.g/this.a:null,gpuCpuUsage:this.a?this.l/this.a:null,pluginCpuUsage:this.a?this.h/this.a:null}};var DA=function(a,b){this.b=a;this.f=b||null;this.j=Ih(a);this.a=lA.ja()},EA=function(a,b){C(a.j,b);mA(a.a,a.f,"Warning("+a.b+"): "+b,9)};DA.prototype.info=function(a){D(this.j,a);mA(this.a,this.f,this.b+": "+a,8)};DA.prototype.config=function(a){Di(this.j,zh,a);mA(this.a,this.f,this.b+": "+a,7)};var FA=function(a){Q(this,a,0,-1,null)};t(FA,P);FA.prototype.o=function(){var a=new E;GA(this,a);return F(a)};var GA=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&L(b,2,c);c=R(a,3);null!=c&&L(b,3,c);c=R(a,4);null!=c&&L(b,4,c)};FA.prototype.nb=function(){return R(this,2)};var HA=function(a){Q(this,a,0,-1,null)};t(HA,P);HA.prototype.o=function(){var a=new E;IA(this,a);return F(a)};var IA=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,4);null!=c&&H(b,4,c);c=R(a,5);null!=c&&H(b,5,c)};HA.prototype.da=function(){return R(this,5)};var KA=function(a){Q(this,a,0,-1,JA)};t(KA,P);var JA=[5,52];KA.prototype.o=function(){var a=new E;LA(this,a);return F(a)};
var LA=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,133);null!=c&&J(b,133,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,105);null!=c&&L(b,105,c);c=R(a,107);null!=c&&J(b,107,c);c=R(a,104);null!=c&&J(b,104,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,43);null!=c&&M(b,43,c);c=X(a,MA,5);0<c.length&&Uv(b,5,c,NA);c=R(a,28);null!=c&&K(b,28,c);c=R(a,29);null!=c&&H(b,29,c);c=R(a,30);null!=c&&H(b,30,c);c=R(a,112);null!=c&&M(b,112,c);c=R(a,106);null!=c&&H(b,106,c);c=R(a,100);null!=c&&M(b,100,c);
c=R(a,68);null!=c&&H(b,68,c);c=V(a,OA,69);null!=c&&N(b,69,c,PA);c=R(a,42);null!=c&&J(b,42,c);c=X(a,QA,52);0<c.length&&O(b,52,c,RA);c=V(a,SA,135);null!=c&&N(b,135,c,TA)},MA=function(a){Q(this,a,0,-1,UA)};t(MA,P);var UA=[2,13];MA.prototype.o=function(){var a=new E;NA(this,a);return F(a)};
var NA=function(a,b){var c=R(a,1);null!=c&&H(b,6,c);c=R(a,113);null!=c&&H(b,118,c);c=R(a,118);null!=c&&H(b,123,c);c=VA(a);0<c.length&&Uv(b,7,c,WA);c=X(a,XA,13);0<c.length&&Uv(b,18,c,YA);c=R(a,34);null!=c&&H(b,39,c);c=R(a,92);null!=c&&H(b,97,c);c=R(a,94);null!=c&&H(b,99,c);c=R(a,93);null!=c&&H(b,98,c);c=R(a,35);null!=c&&H(b,40,c);c=R(a,36);null!=c&&H(b,41,c);c=R(a,54);null!=c&&H(b,59,c);c=R(a,66);null!=c&&L(b,71,c);c=R(a,71);null!=c&&Lv(b,76,c);c=R(a,72);null!=c&&H(b,77,c);c=R(a,73);null!=c&&H(b,78,
c);c=R(a,74);null!=c&&K(b,79,c);c=R(a,75);null!=c&&H(b,80,c);c=V(a,ZA,129);null!=c&&N(b,134,c,$A)},bB=function(a){Q(this,a,0,-1,aB)};t(bB,P);var aB=[53,136,54,135,141,142];bB.prototype.o=function(){var a=new E;WA(this,a);return F(a)};
var WA=function(a,b){var c=R(a,1);null!=c&&L(b,8,c);c=R(a,2);null!=c&&H(b,9,c);c=R(a,3);null!=c&&H(b,10,c);c=R(a,4);null!=c&&H(b,11,c);c=R(a,5);null!=c&&H(b,12,c);c=R(a,6);null!=c&&H(b,13,c);c=R(a,7);null!=c&&J(b,14,c);c=R(a,8);null!=c&&H(b,15,c);c=R(a,9);null!=c&&J(b,16,c);c=R(a,10);null!=c&&H(b,17,c);c=R(a,24);null!=c&&L(b,31,c);c=R(a,25);null!=c&&Kv(b,32,c);c=R(a,117);null!=c&&Lv(b,124,c);c=R(a,26);null!=c&&H(b,33,c);c=V(a,HA,140);null!=c&&N(b,147,c,IA);c=R(a,27);null!=c&&H(b,34,c);c=R(a,28);null!=
c&&H(b,35,c);c=R(a,29);null!=c&&H(b,36,c);c=R(a,30);null!=c&&H(b,37,c);c=R(a,31);null!=c&&H(b,38,c);c=R(a,50);null!=c&&Lv(b,57,c);c=R(a,87);null!=c&&Lv(b,94,c);c=R(a,51);null!=c&&Lv(b,58,c);c=R(a,88);null!=c&&Lv(b,95,c);c=R(a,37);null!=c&&H(b,44,c);c=R(a,38);null!=c&&H(b,45,c);c=R(a,39);null!=c&&H(b,46,c);c=R(a,40);null!=c&&H(b,47,c);c=R(a,41);null!=c&&H(b,48,c);c=R(a,42);null!=c&&H(b,49,c);c=R(a,43);null!=c&&H(b,50,c);c=R(a,124);null!=c&&H(b,131,c);c=R(a,125);null!=c&&H(b,132,c);c=R(a,96);null!=
c&&H(b,103,c);c=R(a,80);null!=c&&H(b,87,c);c=R(a,44);null!=c&&M(b,51,c);c=R(a,94);null!=c&&M(b,101,c);c=R(a,46);null!=c&&H(b,53,c);c=R(a,47);null!=c&&H(b,54,c);c=R(a,48);null!=c&&H(b,55,c);c=R(a,49);null!=c&&H(b,56,c);c=R(a,63);null!=c&&Lv(b,70,c);c=R(a,129);null!=c&&Lv(b,136,c);c=R(a,133);null!=c&&Lv(b,140,c);c=S(a,53);0<c.length&&Qv(b,60,c);c=X(a,cB,136);0<c.length&&O(b,143,c,dB);c=X(a,eB,54);0<c.length&&Uv(b,61,c,fB);c=R(a,57);null!=c&&H(b,64,c);c=R(a,58);null!=c&&H(b,65,c);c=R(a,114);null!=c&&
H(b,121,c);c=R(a,115);null!=c&&H(b,122,c);c=R(a,113);null!=c&&H(b,120,c);c=R(a,139);null!=c&&H(b,146,c);c=R(a,78);null!=c&&H(b,85,c);c=R(a,79);null!=c&&H(b,86,c);c=R(a,59);null!=c&&K(b,66,c);c=R(a,60);null!=c&&K(b,67,c);c=R(a,65);null!=c&&H(b,72,c);c=R(a,95);null!=c&&H(b,102,c);c=R(a,68);null!=c&&Lv(b,75,c);c=R(a,103);null!=c&&Lv(b,110,c);c=R(a,106);null!=c&&Lv(b,113,c);c=R(a,107);null!=c&&Lv(b,114,c);c=R(a,104);null!=c&&Lv(b,111,c);c=R(a,74);null!=c&&H(b,81,c);c=R(a,75);null!=c&&H(b,82,c);c=R(a,
76);null!=c&&H(b,83,c);c=R(a,77);null!=c&&H(b,84,c);c=R(a,81);null!=c&&H(b,88,c);c=R(a,82);null!=c&&H(b,89,c);c=R(a,83);null!=c&&H(b,90,c);c=R(a,84);null!=c&&H(b,91,c);c=R(a,85);null!=c&&H(b,92,c);c=R(a,86);null!=c&&H(b,93,c);c=R(a,134);null!=c&&H(b,141,c);c=R(a,89);null!=c&&H(b,96,c);c=R(a,112);null!=c&&H(b,119,c);c=R(a,118);null!=c&&H(b,125,c);c=R(a,119);null!=c&&H(b,126,c);c=V(a,HA,132);null!=c&&N(b,139,c,IA);c=V(a,HA,120);null!=c&&N(b,127,c,IA);c=V(a,HA,121);null!=c&&N(b,128,c,IA);c=V(a,HA,122);
null!=c&&N(b,129,c,IA);c=V(a,HA,123);null!=c&&N(b,130,c,IA);c=R(a,138);null!=c&&H(b,145,c);c=V(a,HA,137);null!=c&&N(b,144,c,IA);c=R(a,108);null!=c&&H(b,115,c);c=R(a,109);null!=c&&H(b,116,c);c=R(a,110);null!=c&&H(b,117,c);c=R(a,130);null!=c&&J(b,137,c);c=R(a,131);null!=c&&J(b,138,c);c=S(a,135);0<c.length&&Nv(b,142,c);c=S(a,141);0<c.length&&Nv(b,148,c);c=S(a,142);0<c.length&&Nv(b,149,c)},gB={Fr:0,Cr:1,dk:2,Er:3},hB={ck:0,bk:1,Dr:2},iB={lg:0,kg:1,jg:2,mg:4,Nm:8,Qm:16,Pm:32,Rm:64,Om:128,Jm:256,Mm:512,
Lm:1024,Km:2048,Sm:1073741824},cB=function(a){Q(this,a,0,-1,null)};t(cB,P);cB.prototype.o=function(){var a=new E;dB(this,a);return F(a)};var dB=function(a,b){var c=R(a,1);null!=c&&J(b,1,c);c=R(a,2);null!=c&&J(b,2,c);c=R(a,3);null!=c&&Kv(b,3,c)},eB=function(a){Q(this,a,0,-1,jB)};t(eB,P);var jB=[2];eB.prototype.o=function(){var a=new E;fB(this,a);return F(a)};var fB=function(a,b){var c=R(a,1);null!=c&&M(b,62,c);c=S(a,2);0<c.length&&Qv(b,63,c)};h=bB.prototype;h.lc=function(a){U(this,6,a)};
h.Fc=function(a){U(this,57,a)};h.Cc=function(a){U(this,58,a)};h.Nk=function(){return R(this,89)};h.rm=function(a){Y(this,132,a)};h.Mk=function(){return R(this,138)};var XA=function(a){Q(this,a,0,-1,null)};t(XA,P);XA.prototype.o=function(){var a=new E;YA(this,a);return F(a)};
var YA=function(a,b){var c=R(a,1);null!=c&&H(b,19,c);c=R(a,2);null!=c&&H(b,20,c);c=R(a,3);null!=c&&H(b,21,c);c=R(a,4);null!=c&&J(b,22,c);c=R(a,5);null!=c&&H(b,23,c);c=R(a,90);null!=c&&H(b,108,c);c=R(a,91);null!=c&&H(b,109,c);c=R(a,6);null!=c&&J(b,24,c);c=R(a,7);null!=c&&H(b,25,c);c=V(a,FA,8,1);null!=c&&N(b,26,c,GA);c=V(a,FA,9,1);null!=c&&N(b,27,c,GA);c=R(a,55);null!=c&&H(b,73,c);c=V(a,kB,56);null!=c&&N(b,74,c,lB)},kB=function(a){Q(this,a,0,-1,null)};t(kB,P);
kB.prototype.o=function(){var a=new E;lB(this,a);return F(a)};var lB=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,4);null!=c&&H(b,4,c)};XA.prototype.lc=function(a){U(this,3,a)};var ZA=function(a){Q(this,a,0,-1,mB)};t(ZA,P);var mB=[3];ZA.prototype.o=function(){var a=new E;$A(this,a);return F(a)};var $A=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=S(a,3);0<c.length&&Nv(b,3,c)},VA=function(a){return X(a,bB,2)};
MA.prototype.h=function(a){U(this,36,a)};var OA=function(a){Q(this,a,0,-1,null)};t(OA,P);OA.prototype.o=function(){var a=new E;PA(this,a);return F(a)};var PA=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&J(b,2,c)},QA=function(a){Q(this,a,0,-1,nB)};t(QA,P);var nB=[3,4];QA.prototype.o=function(){var a=new E;RA(this,a);return F(a)};
var RA=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=S(a,3);0<c.length&&Qv(b,3,c);c=S(a,4);0<c.length&&Qv(b,4,c)},SA=function(a){Q(this,a,0,-1,null)};t(SA,P);SA.prototype.o=function(){var a=new E;TA(this,a);return F(a)};var TA=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&L(b,2,c)};var oB=new Date(0)-new Date("1900/01/01 00:00 GMT");var pB=function(a,b,c){if(c)for(var d=0;d<c.length;d++);this.f=a;this.a=b||null;this.b=c||[]};pB.prototype.toString=function(){return this.f};var qB=function(){wA.call(this);this.g=new Ni;this.f=new Ni;this.a=new Ni;yA(this,document,"visibilitychange",this.s,!1,this);this.h=new DA("talk.media.webrtc.OutputTracker")};t(qB,wA);var rB=new pB("Y2E25b"),sB=function(a,b){var c=b.b-a.b;0==c&&(c=R(b,29)-R(a,29));return c},tB=function(a){this.La=a};tB.prototype.Dd=function(){return this.La.Dd()};
var uB=function(a,b,c){var d=a.a.get(b);null!=d?ac(d,function(a){return a.La==c},a)?0==d.length&&a.a.remove(b):EA(a.h,"recordBeforeAudioStop: No matching element found for ssrc "+b):EA(a.h,"recordBeforeAudioStop: No info found for ssrc "+b)},yB=function(a,b){var c=a.g.get(b);null!=c&&x(c,function(a){vB(this,b,a)},a);c=a.f.get(b);if(null==c)return null;a.f.remove(b);a=wB(c);c=xB(c);return null!=a||null!=c?{yh:a,zh:c}:null},vB=function(a,b,c){c=c.a();c.a.a<c.start.a?EA(a.h,"Non-monotonic frame count: "+
c.a.a):(a.f.Va(b)||a.f.set(b,[]),-1>c.f()&&EA(a.h,"Negative fps! s:{"+c.start.toString()+"} e:{"+c.a.toString()+"}"),a.f.get(b).push(c))};qB.prototype.s=function(){this.g.forEach(function(a,b){x(a,function(a){vB(this,b,a)},this)},this)};
var wB=function(a){var b=0,c=0;x(a,function(a){b+=a.a.a-a.start.a;c+=a.a.timestamp-a.start.timestamp});return 0==c?null:b/c},xB=function(a){var b=[];x(a,function(a){a.g||(b.push({t:a.start.timestamp,c:1,i:a}),b.push({t:a.a.timestamp,c:-1,i:a}))});kc(b);var c=0,d=0,e=-Infinity,f=[];x(b,function(a){var b=a.t,g=b-e;0<f.length&&(c+=b-e,d+=R(f[0],29)*g);1==a.c?(Wb(f,a.i),ic(f,sB)):$b(f,a.i);e=b});return 0==c?null:d/c};
qB.prototype.Dd=function(a){a=this.g.get(a)||this.a.get(a);if(null==a)return null;var b=0,c=!1;x(a,function(a){a=a.Dd();null!=a&&(b=Math.max(a,b),c=!0)});return c?b:null};var zB=function(a,b){a=a.g.get(b);return null!=a?Ob(a,function(a,b){b=zB(b);return null==a?b:null==b?a:Math.max(a,b)},null):null};qB.prototype.W=function(){this.g.clear();this.a.clear();this.f.clear();qB.aa.W.call(this)};var AB=function(a){Q(this,a,0,-1,null)};t(AB,P);AB.prototype.o=function(){var a=new E;BB(this,a);return F(a)};var BB=function(a,b){var c=V(a,CB,1);null!=c&&N(b,1,c,DB);c=V(a,EB,2);null!=c&&N(b,2,c,FB);c=V(a,EB,3);null!=c&&N(b,3,c,FB);c=V(a,GB,4);null!=c&&N(b,4,c,HB)},CB=function(a){Q(this,a,0,-1,null)};t(CB,P);CB.prototype.o=function(){var a=new E;DB(this,a);return F(a)};var DB=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&L(b,2,c)},EB=function(a){Q(this,a,0,-1,null)};t(EB,P);
EB.prototype.o=function(){var a=new E;FB(this,a);return F(a)};
var FB=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);if(null!=c&&(a=c,null!=a)){Dv(b,3,1);b=b.a;var d=a;d=(a=0>d?1:0)?-d:d;0===d?(jv=0<1/d?0:2147483648,iv=0):isNaN(d)?(jv=2147483647,iv=4294967295):1.7976931348623157E308<d?(jv=(a<<31|2146435072)>>>0,iv=0):2.2250738585072014E-308>d?(d/=Math.pow(2,-1074),jv=(a<<31|d/4294967296)>>>0,iv=d>>>0):(c=Math.floor(Math.log(d)/Math.LN2),1024==c&&(c=1023),d*=Math.pow(2,-c),jv=(a<<31|c+1023<<20|1048576*d&1048575)>>>0,iv=4503599627370496*
d>>>0);wv(b,iv);wv(b,jv)}},GB=function(a){Q(this,a,0,-1,null)};t(GB,P);GB.prototype.o=function(){var a=new E;HB(this,a);return F(a)};var HB=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&J(b,3,c);c=R(a,4);null!=c&&J(b,4,c)};var IB=function(a){Q(this,a,0,-1,null)};t(IB,P);IB.prototype.o=function(){var a=new E;JB(this,a);return F(a)};var JB=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=V(a,KB,2);null!=c&&N(b,2,c,LB)},KB=function(a){Q(this,a,0,-1,null)};t(KB,P);KB.prototype.o=function(){var a=new E;LB(this,a);return F(a)};var LB=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&K(b,5,c);c=R(a,6);null!=c&&L(b,6,c)};var MB=function(a){Q(this,a,0,1,null)};t(MB,P);MB.prototype.o=function(){var a=new E;NB(this,a);return F(a)};var NB=function(a,b){Zv(a,b,OB,MB.prototype.m)},OB={};var QB=function(a){Q(this,a,0,-1,PB)};t(QB,P);var PB=[14];QB.prototype.o=function(){var a=new E;RB(this,a);return F(a)};
var RB=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&L(b,4,c);c=R(a,10);null!=c&&M(b,10,c);c=R(a,5);null!=c&&M(b,5,c);c=V(a,SB,6);null!=c&&N(b,6,c,TB);c=R(a,7);null!=c&&L(b,7,c);c=V(a,UB,8);null!=c&&N(b,8,c,VB);c=V(a,WB,9);null!=c&&N(b,9,c,XB);c=V(a,YB,11);null!=c&&N(b,11,c,ZB);c=a.Ae();null!=c&&N(b,12,c,$B);c=R(a,13);null!=c&&L(b,13,c);c=S(a,14);0<c.length&&Sv(b,14,c)},UB=function(a){Q(this,a,0,-1,null)};t(UB,P);
UB.prototype.o=function(){var a=new E;VB(this,a);return F(a)};var VB=function(a,b){var c=R(a,1);null!=c&&J(b,1,c);c=V(a,aC,2);null!=c&&N(b,2,c,bC);c=R(a,3);null!=c&&M(b,3,c);c=V(a,cC,4);null!=c&&N(b,4,c,dC);c=V(a,eC,5);null!=c&&N(b,5,c,fC);c=V(a,gC,6);null!=c&&N(b,6,c,hC);c=V(a,MB,7);null!=c&&N(b,7,c,NB)},aC=function(a){Q(this,a,0,-1,null)};t(aC,P);aC.prototype.o=function(){var a=new E;bC(this,a);return F(a)};
var bC=function(a,b){var c=R(a,1);null!=c&&J(b,1,c);c=R(a,2);null!=c&&J(b,2,c)},SB=function(a){Q(this,a,0,-1,null)};t(SB,P);SB.prototype.o=function(){var a=new E;TB(this,a);return F(a)};var TB=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&L(b,2,c)},cC=function(a){Q(this,a,0,-1,null)};t(cC,P);cC.prototype.o=function(){var a=new E;dC(this,a);return F(a)};var dC=function(a,b){a=R(a,1);null!=a&&M(b,1,a)},eC=function(a){Q(this,a,0,-1,null)};t(eC,P);
eC.prototype.o=function(){var a=new E;fC(this,a);return F(a)};var fC=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&J(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c)};eC.prototype.getTitle=function(){return R(this,3)};eC.prototype.setTitle=function(a){U(this,3,a)};var WB=function(a){Q(this,a,0,-1,iC)};t(WB,P);var iC=[5];WB.prototype.o=function(){var a=new E;XB(this,a);return F(a)};
var XB=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&K(b,3,c);c=R(a,4);null!=c&&L(b,4,c);c=S(a,5);0<c.length&&Sv(b,5,c)},gC=function(a){Q(this,a,0,-1,null)};t(gC,P);gC.prototype.o=function(){var a=new E;hC(this,a);return F(a)};var hC=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c)};gC.prototype.Ca=function(){return T(this,1,0)};var YB=function(a){Q(this,a,0,-1,null)};t(YB,P);
YB.prototype.o=function(){var a=new E;ZB(this,a);return F(a)};var ZB=function(a,b){var c=R(a,3);null!=c&&L(b,3,c);c=R(a,4);null!=c&&J(b,4,c);c=R(a,5);null!=c&&K(b,5,c)};YB.prototype.getCurrentState=function(){return R(this,3)};var jC=function(a){Q(this,a,0,-1,null)};t(jC,P);jC.prototype.o=function(){var a=new E;$B(this,a);return F(a)};var $B=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&L(b,2,c)};QB.prototype.U=function(){return R(this,1)};QB.prototype.P=function(a){U(this,1,a)};
QB.prototype.Ae=function(){return V(this,jC,12)};var kC=function(a){Q(this,a,0,-1,null)};t(kC,P);kC.prototype.o=function(){var a=new E;lC(this,a);return F(a)};var lC=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&Iv(b,2,c);c=R(a,3);null!=c&&Iv(b,3,c);c=R(a,4);null!=c&&Iv(b,4,c)};kC.prototype.ub=function(){return R(this,4)};var mC=function(a){Q(this,a,0,-1,null)};t(mC,P);mC.prototype.o=function(){var a=new E;nC(this,a);return F(a)};var nC=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c)};var oC=function(a){Q(this,a,0,-1,null)};t(oC,P);oC.prototype.o=function(){var a=new E;pC(this,a);return F(a)};var pC=function(a,b){a=R(a,1);null!=a&&J(b,1,a)};var qC=function(a){Q(this,a,0,-1,null)};t(qC,P);qC.prototype.o=function(){var a=new E;rC(this,a);return F(a)};var rC=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&L(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&J(b,4,c);c=R(a,5);null!=c&&M(b,5,c);c=R(a,6);null!=c&&M(b,6,c);c=R(a,7);null!=c&&H(b,7,c)},sC=function(a,b){U(a,1,b)};qC.prototype.ub=function(){return R(this,4)};var tC=function(a){Q(this,a,0,-1,null)};t(tC,P);tC.prototype.o=function(){var a=new E;uC(this,a);return F(a)};var uC=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&L(b,2,c);c=R(a,3);null!=c&&L(b,3,c)};tC.prototype.getDevice=function(){return R(this,1)};var vC=function(a){Q(this,a,0,-1,null)};t(vC,P);vC.prototype.o=function(){var a=new E;wC(this,a);return F(a)};var wC=function(a,b){var c=V(a,qC,1);null!=c&&N(b,1,c,rC);c=V(a,mC,2);null!=c&&N(b,2,c,nC);c=V(a,oC,3);null!=c&&N(b,3,c,pC);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&K(b,5,c);c=R(a,6);null!=c&&Hv(b,6,c);c=V(a,tC,7);null!=c&&N(b,7,c,uC);c=R(a,8);null!=c&&M(b,8,c);c=V(a,kC,9);null!=c&&N(b,9,c,lC)},xC=function(a,b){Y(a,1,b)};vC.prototype.Dc=function(a){U(this,4,a)};var yC=function(a){Q(this,a,0,-1,null)};t(yC,P);yC.prototype.o=function(){var a=new E;zC(this,a);return F(a)};var zC=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&Iv(b,2,c)};var AC=function(a){Q(this,a,0,-1,null)};t(AC,P);AC.prototype.o=function(){var a=new E;BC(this,a);return F(a)};var BC=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&Jv(b,4,c);c=R(a,10);null!=c&&M(b,10,c);c=R(a,11);null!=c&&H(b,11,c);c=R(a,5);null!=c&&Iv(b,5,c);c=R(a,6);null!=c&&Iv(b,6,c);c=R(a,7);null!=c&&M(b,7,c);c=R(a,8);null!=c&&M(b,8,c);c=V(a,yC,9);null!=c&&N(b,9,c,zC)};AC.prototype.Ca=function(){return R(this,1)};var DC=function(a){Q(this,a,"chbarp",-1,CC)};t(DC,P);var CC=[4];DC.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=V(this,QB,2);null!=b&&N(a,2,b,RB);b=this.C();null!=b&&N(a,3,b,sw);b=X(this,QB,4);0<b.length&&O(a,4,b,RB);return F(a)};rw("chbarp",DC);DC.prototype.getResponseHeader=function(){return V(this,AC,1)};DC.prototype.C=function(){return V(this,Z,3)};DC.prototype.D=function(a){Y(this,3,a)};DC.prototype.O=function(){this.D(void 0)};var EC=function(a){Q(this,a,0,-1,null)};t(EC,P);EC.prototype.o=function(){var a=new E;FC(this,a);return F(a)};var FC=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c)};EC.prototype.U=function(){return R(this,1)};EC.prototype.P=function(a){U(this,1,a)};var HC=function(a){Q(this,a,"chbmrp",-1,GC)};t(HC,P);var GC=[4];HC.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=V(this,QB,2);null!=b&&N(a,2,b,RB);b=this.C();null!=b&&N(a,3,b,sw);b=X(this,QB,4);0<b.length&&O(a,4,b,RB);return F(a)};rw("chbmrp",HC);HC.prototype.getResponseHeader=function(){return V(this,AC,1)};HC.prototype.C=function(){return V(this,Z,3)};HC.prototype.D=function(a){Y(this,3,a)};HC.prototype.O=function(){this.D(void 0)};var IC=function(a){Q(this,a,"chbqrp",-1,null)};t(IC,P);IC.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=V(this,QB,2);null!=b&&N(a,2,b,RB);b=this.C();null!=b&&N(a,3,b,sw);return F(a)};rw("chbqrp",IC);IC.prototype.getResponseHeader=function(){return V(this,AC,1)};IC.prototype.C=function(){return V(this,Z,3)};IC.prototype.D=function(a){Y(this,3,a)};IC.prototype.O=function(){this.D(void 0)};var JC=function(a){Q(this,a,"chbrrp",-1,null)};t(JC,P);JC.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=this.C();null!=b&&N(a,2,b,sw);return F(a)};rw("chbrrp",JC);JC.prototype.getResponseHeader=function(){return V(this,AC,1)};JC.prototype.C=function(){return V(this,Z,2)};JC.prototype.D=function(a){Y(this,2,a)};JC.prototype.O=function(){this.D(void 0)};var LC=function(a){Q(this,a,"chbsrp",-1,KC)};t(LC,P);var KC=[2];LC.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=X(this,QB,2);0<b.length&&O(a,2,b,RB);b=this.C();null!=b&&N(a,3,b,sw);return F(a)};rw("chbsrp",LC);LC.prototype.getResponseHeader=function(){return V(this,AC,1)};LC.prototype.C=function(){return V(this,Z,3)};LC.prototype.D=function(a){Y(this,3,a)};LC.prototype.O=function(){this.D(void 0)};var NC=function(a){Q(this,a,0,-1,MC)};t(NC,P);var MC=[2,3];NC.prototype.o=function(){var a=new E;OC(this,a);return F(a)};var OC=function(a,b){var c=a.C();null!=c&&N(b,1,c,sw);c=a.Aa();0<c.length&&O(b,2,c,RB);c=a.Na();0<c.length&&O(b,3,c,FC);c=a.Ka();null!=c&&N(b,4,c,FC)};h=NC.prototype;h.C=function(){return V(this,Z,1)};h.D=function(a){Y(this,1,a)};h.O=function(){this.D(void 0)};h.Aa=function(){return X(this,QB,2)};h.Na=function(){return X(this,EC,3)};h.Ka=function(){return V(this,EC,4)};var QC=function(a){Q(this,a,0,-1,PC)};t(QC,P);var PC=[10];QC.prototype.o=function(){var a=new E;RC(this,a);return F(a)};var RC=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&J(b,2,c);c=R(a,4);null!=c&&L(b,4,c);c=R(a,5);null!=c&&J(b,5,c);c=R(a,6);null!=c&&J(b,6,c);c=R(a,7);null!=c&&J(b,7,c);c=R(a,8);null!=c&&M(b,8,c);c=R(a,9);null!=c&&M(b,9,c);c=X(a,SC,10);0<c.length&&O(b,10,c,TC);c=R(a,11);null!=c&&M(b,11,c)},SC=function(a){Q(this,a,0,-1,null)};t(SC,P);
SC.prototype.o=function(){var a=new E;TC(this,a);return F(a)};var TC=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&Lv(b,2,c)};QC.prototype.U=function(){return R(this,1)};QC.prototype.P=function(a){U(this,1,a)};QC.prototype.V=function(){return R(this,4)};var VC=function(a){Q(this,a,"carp",-1,UC)};t(VC,P);var UC=[2];VC.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=X(this,QC,2);0<b.length&&O(a,2,b,RC);return F(a)};rw("carp",VC);VC.prototype.getResponseHeader=function(){return V(this,AC,1)};var WC=function(a){Q(this,a,0,-1,null)};t(WC,P);WC.prototype.o=function(){var a=new E;XC(this,a);return F(a)};var XC=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&J(b,2,c)};WC.prototype.U=function(){return R(this,1)};WC.prototype.P=function(a){U(this,1,a)};var ZC=function(a){Q(this,a,0,-1,YC)};t(ZC,P);var YC=[2,3];ZC.prototype.o=function(){var a=new E;$C(this,a);return F(a)};var $C=function(a,b){var c=a.Aa();0<c.length&&O(b,2,c,RC);c=a.Na();0<c.length&&O(b,3,c,XC)};ZC.prototype.Aa=function(){return X(this,QC,2)};ZC.prototype.Na=function(){return X(this,WC,3)};var aD=function(a){Q(this,a,0,-1,null)};t(aD,P);aD.prototype.o=function(){var a=new E;bD(this,a);return F(a)};var bD=function(a,b){var c=R(a,1);null!=c&&K(b,1,c);c=R(a,2);null!=c&&M(b,2,c)};var cD=function(a){Q(this,a,0,-1,null)};t(cD,P);cD.prototype.o=function(){var a=new E;dD(this,a);return F(a)};var dD=function(a,b){var c=R(a,1);null!=c&&K(b,1,c);c=R(a,2);null!=c&&L(b,2,c)};var eD=function(a){Q(this,a,0,-1,null)};t(eD,P);eD.prototype.o=function(){var a=new E;fD(this,a);return F(a)};var fD=function(a,b){a=R(a,1);null!=a&&M(b,1,a)};eD.prototype.getId=function(){return R(this,1)};var gD=function(a){Q(this,a,0,-1,null)};t(gD,P);gD.prototype.o=function(){var a=new E;hD(this,a);return F(a)};var hD=function(a,b){var c=R(a,1);null!=c&&K(b,1,c);c=R(a,2);null!=c&&Iv(b,2,c)};var jD=function(a){Q(this,a,0,-1,iD)};t(jD,P);var iD=[6];jD.prototype.o=function(){var a=new E;kD(this,a);return F(a)};var kD=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=V(a,IB,7);null!=c&&N(b,7,c,JB);c=R(a,4);null!=c&&M(b,4,c);c=X(a,lD,6);0<c.length&&O(b,6,c,mD);c=R(a,5);null!=c&&Mv(b,5,c)},lD=function(a){Q(this,a,0,-1,null)};t(lD,P);lD.prototype.o=function(){var a=new E;mD(this,a);return F(a)};
var mD=function(a,b){var c=V(a,nD,1);null!=c&&N(b,1,c,oD);c=V(a,pD,2);null!=c&&N(b,2,c,qD);c=V(a,rD,3);null!=c&&N(b,3,c,sD)},nD=function(a){Q(this,a,0,-1,null)};t(nD,P);nD.prototype.o=function(){var a=new E;oD(this,a);return F(a)};var oD=function(a,b){a=V(a,IB,1);null!=a&&N(b,1,a,JB)},pD=function(a){Q(this,a,0,-1,null)};t(pD,P);pD.prototype.o=function(){var a=new E;qD(this,a);return F(a)};var qD=function(a,b){a=R(a,1);null!=a&&M(b,1,a)},rD=function(a){Q(this,a,0,-1,null)};t(rD,P);
rD.prototype.o=function(){var a=new E;sD(this,a);return F(a)};var sD=function(a,b){a=R(a,1);null!=a&&M(b,1,a)};var tD=function(a){Q(this,a,0,-1,null)};t(tD,P);tD.prototype.o=function(){var a=new E;uD(this,a);return F(a)};var uD=function(a,b){a=V(a,gD,1);null!=a&&N(b,1,a,hD)};var vD=function(a){Q(this,a,0,-1,null)};t(vD,P);vD.prototype.o=function(){var a=new E;wD(this,a);return F(a)};var wD=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=V(a,tD,4);null!=c&&N(b,4,c,uD);c=R(a,3);null!=c&&Jv(b,3,c);c=R(a,5);null!=c&&Iv(b,5,c);c=V(a,cD,6);null!=c&&N(b,6,c,dD);c=R(a,2);null!=c&&Mv(b,2,c);c=R(a,7);null!=c&&M(b,7,c);c=R(a,8);null!=c&&M(b,8,c)};var yD=function(a){Q(this,a,0,-1,xD)};t(yD,P);var xD=[6];yD.prototype.o=function(){var a=new E;zD(this,a);return F(a)};var zD=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&L(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&M(b,5,c);c=S(a,6);0<c.length&&Sv(b,6,c);c=R(a,7);null!=c&&M(b,7,c);c=R(a,8);null!=c&&L(b,8,c);c=R(a,9);null!=c&&M(b,9,c);c=R(a,10);null!=c&&M(b,10,c);c=R(a,11);null!=c&&L(b,11,c)};h=yD.prototype;h.U=function(){return R(this,1)};
h.P=function(a){U(this,1,a)};h.getTitle=function(){return R(this,9)};h.setTitle=function(a){U(this,9,a)};h.bg=function(a){U(this,10,a)};var AD=function(a){Q(this,a,0,-1,null)};t(AD,P);AD.prototype.o=function(){var a=new E;BD(this,a);return F(a)};var BD=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c)};AD.prototype.U=function(){return R(this,1)};AD.prototype.P=function(a){U(this,1,a)};var DD=function(a){Q(this,a,0,-1,CD)};t(DD,P);var CD=[2,3];DD.prototype.o=function(){var a=new E;ED(this,a);return F(a)};var ED=function(a,b){var c=a.C();null!=c&&N(b,1,c,sw);c=a.Aa();0<c.length&&O(b,2,c,zD);c=a.Na();0<c.length&&O(b,3,c,BD);c=a.Ka();null!=c&&N(b,4,c,BD)};h=DD.prototype;h.C=function(){return V(this,Z,1)};h.D=function(a){Y(this,1,a)};h.O=function(){this.D(void 0)};h.Aa=function(){return X(this,yD,2)};h.Na=function(){return X(this,AD,3)};h.Ka=function(){return V(this,AD,4)};var GD=function(a){Q(this,a,0,-1,FD)};t(GD,P);var FD=[1];GD.prototype.o=function(){var a=new E;HD(this,a);return F(a)};var HD=function(a,b){a=X(a,ID,1);0<a.length&&O(b,1,a,JD)},ID=function(a){Q(this,a,0,-1,null)};t(ID,P);ID.prototype.o=function(){var a=new E;JD(this,a);return F(a)};var JD=function(a,b){a=R(a,1);null!=a&&L(b,1,a)};var KD=function(a){Q(this,a,0,-1,null)};t(KD,P);KD.prototype.o=function(){var a=new E;LD(this,a);return F(a)};var LD=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c)};KD.prototype.getService=function(){return R(this,1)};KD.prototype.Ra=function(){return R(this,2)};var MD=function(a){Q(this,a,0,-1,null)};t(MD,P);MD.prototype.o=function(){var a=new E;ND(this,a);return F(a)};var ND=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c)};var PD=function(a){Q(this,a,0,-1,OD)};t(PD,P);var OD=[15,26];PD.prototype.o=function(){var a=new E;QD(this,a);return F(a)};
var QD=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&L(b,2,c);c=V(a,KD,3);null!=c&&N(b,3,c,LD);c=R(a,4);null!=c&&K(b,4,c);c=R(a,6);null!=c&&J(b,6,c);c=R(a,7);null!=c&&J(b,7,c);c=R(a,8);null!=c&&M(b,8,c);c=V(a,eD,9);null!=c&&N(b,9,c,fD);c=R(a,10);null!=c&&K(b,10,c);c=R(a,11);null!=c&&J(b,11,c);c=R(a,12);null!=c&&J(b,12,c);c=R(a,13);null!=c&&M(b,13,c);c=R(a,14);null!=c&&L(b,14,c);c=S(a,15);0<c.length&&Sv(b,15,c);c=R(a,16);null!=c&&K(b,16,c);c=R(a,24);null!=c&&L(b,24,c);c=a.Hd();null!=
c&&N(b,17,c,ND);c=R(a,18);null!=c&&K(b,18,c);c=R(a,25);null!=c&&L(b,25,c);c=V(a,aD,19);null!=c&&N(b,19,c,bD);c=R(a,21);null!=c&&L(b,21,c);c=R(a,22);null!=c&&L(b,22,c);c=R(a,23);null!=c&&L(b,23,c);c=S(a,26);0<c.length&&Rv(b,26,c);c=R(a,27);null!=c&&M(b,27,c);c=R(a,28);null!=c&&M(b,28,c);c=R(a,29);null!=c&&M(b,29,c);c=R(a,30);null!=c&&M(b,30,c)};h=PD.prototype;h.U=function(){return R(this,1)};h.P=function(a){U(this,1,a)};h.V=function(){return R(this,2)};h.Y=function(){return R(this,14)};
h.Ta=function(a){U(this,14,a)};h.Hd=function(){return V(this,MD,17)};var SD=function(a){Q(this,a,0,-1,RD)};t(SD,P);var RD=[4];SD.prototype.o=function(){var a=new E;TD(this,a);return F(a)};var TD=function(a,b){var c=V(a,vC,1);null!=c&&N(b,1,c,wC);c=V(a,PD,2);null!=c&&N(b,2,c,QD);c=a.C();null!=c&&N(b,3,c,sw);c=X(a,PD,4);0<c.length&&O(b,4,c,QD)};SD.prototype.setRequestHeader=function(a){Y(this,1,a)};SD.prototype.C=function(){return V(this,Z,3)};SD.prototype.D=function(a){Y(this,3,a)};SD.prototype.O=function(){this.D(void 0)};var VD=function(a){Q(this,a,"charp",-1,UD)};t(VD,P);var UD=[5];VD.prototype.o=function(){var a=new E;WD(this,a);return F(a)};var WD=function(a,b){var c=a.getResponseHeader();null!=c&&N(b,1,c,BC);c=V(a,PD,2);null!=c&&N(b,2,c,QD);c=R(a,4);null!=c&&M(b,4,c);c=a.C();null!=c&&N(b,3,c,sw);c=X(a,PD,5);0<c.length&&O(b,5,c,QD)};rw("charp",VD);VD.prototype.getResponseHeader=function(){return V(this,AC,1)};VD.prototype.C=function(){return V(this,Z,3)};VD.prototype.D=function(a){Y(this,3,a)};VD.prototype.O=function(){this.D(void 0)};var XD=function(a){Q(this,a,0,-1,null)};t(XD,P);XD.prototype.o=function(){var a=new E;YD(this,a);return F(a)};var YD=function(a,b){var c=a.C();null!=c&&N(b,1,c,sw);c=R(a,2);null!=c&&J(b,2,c);c=R(a,3);null!=c&&M(b,3,c)};XD.prototype.C=function(){return V(this,Z,1)};XD.prototype.D=function(a){Y(this,1,a)};XD.prototype.O=function(){this.D(void 0)};var ZD=function(a){Q(this,a,0,-1,null)};t(ZD,P);ZD.prototype.o=function(){var a=new E;$D(this,a);return F(a)};var $D=function(a,b){var c=V(a,IB,1);null!=c&&N(b,1,c,JB);c=R(a,2);null!=c&&Mv(b,2,c);c=R(a,3);null!=c&&Iv(b,3,c)};var aE=function(a){Q(this,a,0,-1,null)};t(aE,P);aE.prototype.o=function(){var a=new E;bE(this,a);return F(a)};var bE=function(a,b){var c=R(a,1);null!=c&&J(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=V(a,IB,3);null!=c&&N(b,3,c,JB);c=R(a,4);null!=c&&K(b,4,c);c=R(a,5);null!=c&&K(b,5,c);c=V(a,ZD,6);null!=c&&N(b,6,c,$D)};aE.prototype.U=function(){return R(this,2)};aE.prototype.P=function(a){U(this,2,a)};var cE=function(a){Q(this,a,0,-1,null)};t(cE,P);cE.prototype.o=function(){var a=new E;dE(this,a);return F(a)};var dE=function(a,b){var c=V(a,vC,1);null!=c&&N(b,1,c,wC);c=V(a,aE,2);null!=c&&N(b,2,c,bE);c=a.C();null!=c&&N(b,3,c,sw)};cE.prototype.setRequestHeader=function(a){Y(this,1,a)};cE.prototype.C=function(){return V(this,Z,3)};cE.prototype.D=function(a){Y(this,3,a)};cE.prototype.O=function(){this.D(void 0)};var eE=function(a){Q(this,a,0,-1,null)};t(eE,P);eE.prototype.o=function(){var a=new E;fE(this,a);return F(a)};var fE=function(a,b){var c=R(a,1);null!=c&&J(b,1,c);c=R(a,2);null!=c&&J(b,2,c);c=R(a,3);null!=c&&L(b,3,c)};var hE=function(a){Q(this,a,0,-1,gE)};t(hE,P);var gE=[2];hE.prototype.o=function(){var a=new E;iE(this,a);return F(a)};var iE=function(a,b){var c=V(a,jE,1);null!=c&&N(b,1,c,kE);c=S(a,2);0<c.length&&Rv(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c)},jE=function(a){Q(this,a,0,-1,null)};t(jE,P);jE.prototype.o=function(){var a=new E;kE(this,a);return F(a)};var kE=function(a,b){var c=V(a,lE,1);null!=c&&N(b,1,c,mE);c=V(a,eD,4);null!=c&&N(b,4,c,fD)},lE=function(a){Q(this,a,0,-1,null)};
t(lE,P);lE.prototype.o=function(){var a=new E;mE(this,a);return F(a)};var mE=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c)};var oE=function(a){Q(this,a,0,-1,nE)};t(oE,P);var nE=[11];oE.prototype.o=function(){var a=new E;pE(this,a);return F(a)};var pE=function(a,b){var c=R(a,8);null!=c&&J(b,8,c);c=R(a,1);null!=c&&M(b,1,c);c=V(a,jD,2);null!=c&&N(b,2,c,kD);c=X(a,hE,11);0<c.length&&O(b,11,c,iE);c=R(a,3);null!=c&&L(b,3,c);c=R(a,4);null!=c&&K(b,4,c);c=R(a,6);null!=c&&L(b,6,c);c=V(a,eE,7);null!=c&&N(b,7,c,fE);c=R(a,9);null!=c&&M(b,9,c);c=R(a,99);null!=c&&M(b,99,c)};oE.prototype.U=function(){return R(this,1)};
oE.prototype.P=function(a){U(this,1,a)};var qE=function(a){Q(this,a,0,-1,null)};t(qE,P);qE.prototype.o=function(){var a=new E;rE(this,a);return F(a)};var rE=function(a,b){var c=V(a,vC,1);null!=c&&N(b,1,c,wC);c=V(a,oE,2);null!=c&&N(b,2,c,pE);c=a.C();null!=c&&N(b,3,c,sw)};qE.prototype.setRequestHeader=function(a){Y(this,1,a)};qE.prototype.C=function(){return V(this,Z,3)};qE.prototype.D=function(a){Y(this,3,a)};qE.prototype.O=function(){this.D(void 0)};var tE=function(a){Q(this,a,0,-1,sE)};t(tE,P);var sE=[20,8,19,26];tE.prototype.o=function(){var a=new E;uE(this,a);return F(a)};
var uE=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&M(b,5,c);c=R(a,6);null!=c&&K(b,6,c);c=R(a,7);null!=c&&K(b,7,c);c=X(a,vE,20);0<c.length&&O(b,20,c,wE);c=S(a,8);0<c.length&&Sv(b,8,c);c=R(a,9);null!=c&&K(b,9,c);c=R(a,10);null!=c&&M(b,10,c);c=R(a,11);null!=c&&M(b,11,c);c=R(a,12);null!=c&&L(b,12,c);c=R(a,13);null!=c&&L(b,13,c);c=R(a,14);null!=c&&L(b,14,c);c=R(a,17);null!=c&&L(b,17,c);c=R(a,18);null!=c&&
K(b,18,c);c=S(a,19);0<c.length&&Rv(b,19,c);c=R(a,21);null!=c&&K(b,21,c);c=V(a,AB,22);null!=c&&N(b,22,c,BB);c=R(a,23);null!=c&&J(b,23,c);c=R(a,24);null!=c&&L(b,24,c);c=R(a,25);null!=c&&M(b,25,c);c=S(a,26);0<c.length&&Sv(b,26,c)},vE=function(a){Q(this,a,0,-1,null)};t(vE,P);vE.prototype.o=function(){var a=new E;wE(this,a);return F(a)};var wE=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&L(b,2,c)};h=tE.prototype;h.U=function(){return R(this,1)};h.P=function(a){U(this,1,a)};
h.N=function(){return R(this,2)};h.pa=function(a){U(this,2,a)};h.ze=function(){return T(this,18,!1)};h.ld=function(a){U(this,26,a||[])};var xE=function(a){Q(this,a,0,-1,null)};t(xE,P);xE.prototype.o=function(){var a=new E;yE(this,a);return F(a)};var yE=function(a,b){var c=R(a,3);null!=c&&K(b,3,c);c=R(a,4);null!=c&&K(b,4,c)};var AE=function(a){Q(this,a,0,-1,zE)};t(AE,P);var zE=[6];AE.prototype.o=function(){var a=new E;BE(this,a);return F(a)};var BE=function(a,b){var c=V(a,vC,1);null!=c&&N(b,1,c,wC);c=V(a,tE,2);null!=c&&N(b,2,c,uE);c=V(a,xE,3);null!=c&&N(b,3,c,yE);c=R(a,4);null!=c&&K(b,4,c);c=a.C();null!=c&&N(b,5,c,sw);c=X(a,tE,6);0<c.length&&O(b,6,c,uE)};AE.prototype.setRequestHeader=function(a){Y(this,1,a)};AE.prototype.C=function(){return V(this,Z,5)};AE.prototype.D=function(a){Y(this,5,a)};AE.prototype.O=function(){this.D(void 0)};var CE=function(a){Q(this,a,0,-1,null)};t(CE,P);CE.prototype.o=function(){var a=new E;DE(this,a);return F(a)};var DE=function(a,b){var c=V(a,vC,1);null!=c&&N(b,1,c,wC);c=R(a,2);null!=c&&M(b,2,c);c=a.C();null!=c&&N(b,3,c,sw)};h=CE.prototype;h.setRequestHeader=function(a){Y(this,1,a)};h.U=function(){return R(this,2)};h.P=function(a){U(this,2,a)};h.C=function(){return V(this,Z,3)};h.D=function(a){Y(this,3,a)};h.O=function(){this.D(void 0)};var EE=function(a){Q(this,a,0,-1,null)};t(EE,P);EE.prototype.o=function(){var a=new E;FE(this,a);return F(a)};var FE=function(a,b){var c=V(a,vC,1);null!=c&&N(b,1,c,wC);c=R(a,2);null!=c&&M(b,2,c);c=a.C();null!=c&&N(b,3,c,sw)};h=EE.prototype;h.setRequestHeader=function(a){Y(this,1,a)};h.U=function(){return R(this,2)};h.P=function(a){U(this,2,a)};h.C=function(){return V(this,Z,3)};h.D=function(a){Y(this,3,a)};h.O=function(){this.D(void 0)};var GE=function(a){Q(this,a,0,-1,null)};t(GE,P);GE.prototype.o=function(){var a=new E;HE(this,a);return F(a)};var HE=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c)};GE.prototype.getName=function(){return R(this,1)};var JE=function(a){Q(this,a,0,-1,IE)};t(JE,P);var IE=[3];JE.prototype.o=function(){var a=new E;KE(this,a);return F(a)};var KE=function(a,b){var c=V(a,vC,1);null!=c&&N(b,1,c,wC);c=V(a,KD,2);null!=c&&N(b,2,c,LD);c=X(a,jD,3);0<c.length&&O(b,3,c,kD);c=V(a,GE,4);null!=c&&N(b,4,c,HE);c=R(a,5);null!=c&&K(b,5,c);c=R(a,6);null!=c&&L(b,6,c);c=R(a,7);null!=c&&M(b,7,c);c=a.C();null!=c&&N(b,8,c,sw)};h=JE.prototype;h.setRequestHeader=function(a){Y(this,1,a)};h.Y=function(){return T(this,6,1)};
h.Ta=function(a){U(this,6,a)};h.C=function(){return V(this,Z,8)};h.D=function(a){Y(this,8,a)};h.O=function(){this.D(void 0)};var LE=function(a){Q(this,a,0,-1,null)};t(LE,P);LE.prototype.o=function(){var a=new E;ME(this,a);return F(a)};var ME=function(a,b){var c=R(a,1);null!=c&&Hv(b,1,c);c=R(a,2);null!=c&&Hv(b,2,c);c=R(a,3);null!=c&&Hv(b,3,c)};var OE=function(a){Q(this,a,0,-1,NE)};t(OE,P);var NE=[8];OE.prototype.o=function(){var a=new E;PE(this,a);return F(a)};var PE=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&L(b,3,c);c=R(a,4);null!=c&&H(b,4,c);c=R(a,5);null!=c&&H(b,5,c);c=R(a,6);null!=c&&H(b,6,c);c=R(a,7);null!=c&&H(b,7,c);c=X(a,QE,8);0<c.length&&O(b,8,c,RE)},QE=function(a){Q(this,a,0,-1,null)};t(QE,P);QE.prototype.o=function(){var a=new E;RE(this,a);return F(a)};
var RE=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c)};QE.prototype.getKey=function(){return R(this,1)};QE.prototype.Ra=function(){return R(this,2)};OE.prototype.getName=function(){return R(this,2)};var SE=function(a,b){U(a,2,b)};OE.prototype.Y=function(){return R(this,3)};OE.prototype.Ta=function(a){U(this,3,a)};var TE=function(a,b){hw(a,8,b)};var UE=function(a){Q(this,a,0,-1,null)};t(UE,P);UE.prototype.o=function(){var a=new E;VE(this,a);return F(a)};var VE=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&H(b,4,c)};var WE=function(a){Q(this,a,0,-1,null)};t(WE,P);WE.prototype.o=function(){var a=new E;XE(this,a);return F(a)};var XE=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);null!=c&&H(b,3,c)};WE.prototype.Cc=function(a){U(this,1,a)};WE.prototype.Fc=function(a){U(this,2,a)};var ZE=function(a){Q(this,a,0,-1,YE)};t(ZE,P);var YE=[5];ZE.prototype.o=function(){var a=new E;$E(this,a);return F(a)};var $E=function(a,b){var c=R(a,1);null!=c&&K(b,1,c);c=R(a,2);null!=c&&K(b,2,c);c=V(a,WE,3);null!=c&&N(b,3,c,XE);c=R(a,4);null!=c&&Hv(b,4,c);c=S(a,5);0<c.length&&Nv(b,5,c)};var aF=function(a){Q(this,a,0,-1,null)};t(aF,P);aF.prototype.o=function(){var a=new E;bF(this,a);return F(a)};var bF=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=V(a,ZE,2);null!=c&&N(b,2,c,$E)};aF.prototype.Y=function(){return R(this,1)};aF.prototype.Ta=function(a){U(this,1,a)};var cF=function(a){Q(this,a,0,-1,null)};t(cF,P);cF.prototype.o=function(){var a=new E;dF(this,a);return F(a)};var dF=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&L(b,3,c)};cF.prototype.getId=function(){return R(this,1)};cF.prototype.Y=function(){return R(this,3)};cF.prototype.Ta=function(a){U(this,3,a)};var eF=function(a){Q(this,a,0,-1,null)};t(eF,P);eF.prototype.o=function(){var a=new E;fF(this,a);return F(a)};var fF=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&L(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&H(b,4,c);c=R(a,5);null!=c&&L(b,5,c);c=R(a,6);null!=c&&H(b,6,c);c=R(a,7);null!=c&&M(b,7,c);c=R(a,8);null!=c&&H(b,8,c);c=R(a,9);null!=c&&L(b,9,c)};eF.prototype.Ba=function(){return R(this,4)};eF.prototype.V=function(){return R(this,5)};
eF.prototype.Y=function(){return R(this,9)};eF.prototype.Ta=function(a){U(this,9,a)};var hF=function(a){Q(this,a,0,-1,gF)};t(hF,P);var gF=[3,6];hF.prototype.o=function(){var a=new E;iF(this,a);return F(a)};var iF=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=V(a,jF,2);null!=c&&N(b,2,c,kF);c=S(a,3);0<c.length&&Sv(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&M(b,5,c);c=X(a,eF,6);0<c.length&&O(b,6,c,fF)},jF=function(a){Q(this,a,0,-1,null)};t(jF,P);jF.prototype.o=function(){var a=new E;kF(this,a);return F(a)};
var kF=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c)};var mF=function(a){Q(this,a,0,-1,lF)};t(mF,P);var lF=[3,4,5,6];mF.prototype.o=function(){var a=new E;nF(this,a);return F(a)};var nF=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=V(a,hF,2);null!=c&&N(b,2,c,iF);c=X(a,OE,3);0<c.length&&O(b,3,c,PE);c=X(a,UE,4);0<c.length&&O(b,4,c,VE);c=X(a,cF,5);0<c.length&&O(b,5,c,dF);c=X(a,aF,6);0<c.length&&O(b,6,c,bF);c=V(a,LE,7);null!=c&&N(b,7,c,ME);c=R(a,8);null!=c&&M(b,8,c)};mF.prototype.Y=function(){return T(this,1,4)};mF.prototype.Ta=function(a){U(this,1,a)};var pF=function(a){Q(this,a,0,-1,oF)};t(pF,P);var oF=[1];pF.prototype.o=function(){var a=new E;qF(this,a);return F(a)};var qF=function(a,b){var c=S(a,1);0<c.length&&Sv(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c)};var rF=function(a){Q(this,a,0,-1,null)};t(rF,P);rF.prototype.o=function(){var a=new E;sF(this,a);return F(a)};var sF=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&L(b,2,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&L(b,5,c)};rF.prototype.getChannelId=function(){return R(this,1)};rF.prototype.ec=function(){return R(this,4)};rF.prototype.V=function(){return R(this,5)};var uF=function(a){Q(this,a,0,-1,tF)};t(uF,P);var tF=[3,4,5,6,8,10];uF.prototype.o=function(){var a=new E;vF(this,a);return F(a)};var vF=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=X(a,mF,3);0<c.length&&O(b,3,c,nF);c=X(a,mF,4);0<c.length&&O(b,4,c,nF);c=X(a,rF,5);0<c.length&&O(b,5,c,sF);c=S(a,6);0<c.length&&Sv(b,6,c);c=R(a,7);null!=c&&L(b,7,c);c=X(a,pF,8);0<c.length&&O(b,8,c,qF);c=R(a,9);null!=c&&K(b,9,c);c=S(a,10);0<c.length&&Pv(b,10,c)};uF.prototype.h=function(){return R(this,1)};
uF.prototype.qa=function(a){U(this,1,a)};var wF=function(a,b){hw(a,3,b)},xF=function(a,b){U(a,6,b||[])};uF.prototype.V=function(){return R(this,7)};var zF=function(a){Q(this,a,0,-1,yF)};t(zF,P);var yF=[4];zF.prototype.o=function(){var a=new E;AF(this,a);return F(a)};var AF=function(a,b){var c=V(a,vC,1);null!=c&&N(b,1,c,wC);c=a.C();null!=c&&N(b,3,c,sw);c=X(a,uF,4);0<c.length&&O(b,4,c,vF)};zF.prototype.setRequestHeader=function(a){Y(this,1,a)};zF.prototype.C=function(){return V(this,Z,3)};zF.prototype.D=function(a){Y(this,3,a)};zF.prototype.O=function(){this.D(void 0)};var BF=function(a){Q(this,a,0,-1,null)};t(BF,P);BF.prototype.o=function(){var a=new E;CF(this,a);return F(a)};var CF=function(a,b){var c=V(a,vC,1);null!=c&&N(b,1,c,wC);c=R(a,2);null!=c&&M(b,2,c);c=a.C();null!=c&&N(b,3,c,sw)};h=BF.prototype;h.setRequestHeader=function(a){Y(this,1,a)};h.qa=function(a){U(this,2,a)};h.C=function(){return V(this,Z,3)};h.D=function(a){Y(this,3,a)};h.O=function(){this.D(void 0)};var DF=function(a){Q(this,a,0,-1,null)};t(DF,P);DF.prototype.o=function(){var a=new E;EF(this,a);return F(a)};var EF=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&L(b,4,c);c=V(a,FF,5);null!=c&&N(b,5,c,GF);c=V(a,HF,6);null!=c&&N(b,6,c,IF);c=V(a,JF,7);null!=c&&N(b,7,c,KF);c=V(a,LF,8);null!=c&&N(b,8,c,MF)},FF=function(a){Q(this,a,0,-1,null)};t(FF,P);FF.prototype.o=function(){var a=new E;GF(this,a);return F(a)};
var GF=function(a,b){var c=R(a,1);null!=c&&K(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&Lv(b,3,c)};FF.prototype.pc=function(){return R(this,1)};var HF=function(a){Q(this,a,0,-1,null)};t(HF,P);HF.prototype.o=function(){var a=new E;IF(this,a);return F(a)};var IF=function(a,b){a=R(a,1);null!=a&&M(b,1,a)},JF=function(a){Q(this,a,0,-1,NF)};t(JF,P);var NF=[3];JF.prototype.o=function(){var a=new E;KF(this,a);return F(a)};
var KF=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=V(a,WE,2);null!=c&&N(b,2,c,XE);c=X(a,OF,3);0<c.length&&O(b,3,c,PF)},OF=function(a){Q(this,a,0,-1,null)};t(OF,P);OF.prototype.o=function(){var a=new E;PF(this,a);return F(a)};var PF=function(a,b){var c=R(a,1);null!=c&&Lv(b,1,c);c=R(a,2);null!=c&&Lv(b,2,c);c=R(a,3);null!=c&&Lv(b,3,c);c=R(a,4);null!=c&&Lv(b,4,c)};OF.prototype.Fc=function(a){U(this,3,a)};OF.prototype.Cc=function(a){U(this,4,a)};var LF=function(a){Q(this,a,0,-1,null)};t(LF,P);
LF.prototype.o=function(){var a=new E;MF(this,a);return F(a)};var MF=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&Lv(b,2,c)};h=DF.prototype;h.U=function(){return R(this,1)};h.P=function(a){U(this,1,a)};h.N=function(){return R(this,2)};h.pa=function(a){U(this,2,a)};h.ga=function(){return R(this,3)};h.Mf=function(a){U(this,3,a)};h.Y=function(){return R(this,4)};h.Ta=function(a){U(this,4,a)};h.Xd=function(a){Y(this,5,a)};var RF=function(a){Q(this,a,0,-1,QF)};t(RF,P);var QF=[4];RF.prototype.o=function(){var a=new E;SF(this,a);return F(a)};var SF=function(a,b){var c=V(a,vC,1);null!=c&&N(b,1,c,wC);c=a.Z();null!=c&&N(b,2,c,EF);c=a.C();null!=c&&N(b,3,c,sw);c=X(a,DF,4);0<c.length&&O(b,4,c,EF)};h=RF.prototype;h.setRequestHeader=function(a){Y(this,1,a)};h.Z=function(){return V(this,DF,2)};h.C=function(){return V(this,Z,3)};h.D=function(a){Y(this,3,a)};h.O=function(){this.D(void 0)};var TF=function(a){Q(this,a,0,-1,null)};t(TF,P);TF.prototype.o=function(){var a=new E;UF(this,a);return F(a)};var UF=function(a,b){var c=V(a,vC,1);null!=c&&N(b,1,c,wC);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=a.C();null!=c&&N(b,4,c,sw)};h=TF.prototype;h.setRequestHeader=function(a){Y(this,1,a)};h.U=function(){return R(this,2)};h.P=function(a){U(this,2,a)};h.N=function(){return R(this,3)};h.pa=function(a){U(this,3,a)};h.C=function(){return V(this,Z,4)};h.D=function(a){Y(this,4,a)};
h.O=function(){this.D(void 0)};var VF=function(a){Q(this,a,0,-1,null)};t(VF,P);VF.prototype.o=function(){var a=new E;WF(this,a);return F(a)};var WF=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&L(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&M(b,5,c);c=R(a,6);null!=c&&M(b,6,c);c=R(a,7);null!=c&&M(b,7,c);c=V(a,XF,8);null!=c&&N(b,8,c,YF);c=V(a,ZE,9);null!=c&&N(b,9,c,$E);c=V(a,ZF,10);null!=c&&N(b,10,c,$F);c=R(a,11);null!=c&&K(b,11,c)},XF=function(a){Q(this,a,0,-1,aG)};t(XF,P);
var aG=[1,2,3];XF.prototype.o=function(){var a=new E;YF(this,a);return F(a)};var YF=function(a,b){var c=S(a,1);0<c.length&&Pv(b,1,c);c=X(a,bG,2);0<c.length&&O(b,2,c,cG);c=S(a,3);0<c.length&&Sv(b,3,c)},bG=function(a){Q(this,a,0,-1,dG)};t(bG,P);var dG=[2];bG.prototype.o=function(){var a=new E;cG(this,a);return F(a)};var cG=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=S(a,2);0<c.length&&Pv(b,2,c)},ZF=function(a){Q(this,a,0,-1,null)};t(ZF,P);ZF.prototype.o=function(){var a=new E;$F(this,a);return F(a)};
var $F=function(a,b){a=R(a,1);null!=a&&K(b,1,a)};ZF.prototype.pc=function(){return R(this,1)};h=VF.prototype;h.Nl=function(){return R(this,1)};h.Pf=function(a){U(this,1,a)};h.Y=function(){return R(this,2)};h.Ta=function(a){U(this,2,a)};h.Ol=function(){return R(this,3)};h.qa=function(a){U(this,3,a)};h.Wa=function(){return R(this,4)};h.Qf=function(a){U(this,4,a)};h.U=function(){return R(this,5)};h.P=function(a){U(this,5,a)};h.N=function(){return R(this,6)};h.pa=function(a){U(this,6,a)};
h.ga=function(){return R(this,7)};h.Xd=function(a){Y(this,10,a)};var fG=function(a){Q(this,a,0,-1,eG)};t(fG,P);var eG=[4];fG.prototype.o=function(){var a=new E;gG(this,a);return F(a)};var gG=function(a,b){var c=V(a,vC,1);null!=c&&N(b,1,c,wC);c=a.C();null!=c&&N(b,3,c,sw);c=X(a,VF,4);0<c.length&&O(b,4,c,WF)};fG.prototype.setRequestHeader=function(a){Y(this,1,a)};fG.prototype.C=function(){return V(this,Z,3)};fG.prototype.D=function(a){Y(this,3,a)};fG.prototype.O=function(){this.D(void 0)};var hG=function(a){Q(this,a,0,-1,null)};t(hG,P);hG.prototype.o=function(){var a=new E;iG(this,a);return F(a)};var iG=function(a,b){var c=V(a,vC,1);null!=c&&N(b,1,c,wC);c=R(a,2);null!=c&&L(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=a.C();null!=c&&N(b,5,c,sw)};h=hG.prototype;h.setRequestHeader=function(a){Y(this,1,a)};h.qa=function(a){U(this,3,a)};h.U=function(){return R(this,4)};h.P=function(a){U(this,4,a)};h.C=function(){return V(this,Z,5)};h.D=function(a){Y(this,5,a)};h.O=function(){this.D(void 0)};var jG=function(a){Q(this,a,0,-1,null)};t(jG,P);jG.prototype.o=function(){var a=new E;kG(this,a);return F(a)};
var kG=function(a,b){var c=V(a,AE,1);null!=c&&N(b,1,c,BE);c=V(a,zF,2);null!=c&&N(b,2,c,AF);c=V(a,fG,3);null!=c&&N(b,3,c,gG);c=V(a,hG,4);null!=c&&N(b,4,c,iG);c=V(a,RF,5);null!=c&&N(b,5,c,SF);c=V(a,TF,6);null!=c&&N(b,6,c,UF);c=V(a,CE,7);null!=c&&N(b,7,c,DE);c=V(a,EE,8);null!=c&&N(b,8,c,FE);c=V(a,SD,9);null!=c&&N(b,9,c,TD);c=V(a,JE,10);null!=c&&N(b,10,c,KE);c=V(a,qE,11);null!=c&&N(b,11,c,rE);c=V(a,cE,12);null!=c&&N(b,12,c,dE);c=V(a,BF,13);null!=c&&N(b,13,c,CF)};jG.prototype.s=function(a){Y(this,4,a)};
jG.prototype.v=function(a){Y(this,6,a)};jG.prototype.h=function(a){Y(this,7,a)};jG.prototype.u=function(a){Y(this,8,a)};var mG=function(a){Q(this,a,0,-1,lG)};t(mG,P);var lG=[2];mG.prototype.o=function(){var a=new E;var b=V(this,vC,1);null!=b&&N(a,1,b,wC);b=X(this,jG,2);0<b.length&&O(a,2,b,kG);b=this.C();null!=b&&N(a,3,b,sw);return F(a)};mG.prototype.setRequestHeader=function(a){Y(this,1,a)};var nG=function(a,b){hw(a,2,b)};mG.prototype.C=function(){return V(this,Z,3)};mG.prototype.D=function(a){Y(this,3,a)};mG.prototype.O=function(){this.D(void 0)};var oG=function(a){Q(this,a,"chpara",-1,null)};t(oG,P);oG.prototype.o=function(){var a=new E;pG(this,a);return F(a)};var pG=function(a,b){var c=a.getResponseHeader();null!=c&&N(b,1,c,BC);c=V(a,aE,2);null!=c&&N(b,2,c,bE);c=a.C();null!=c&&N(b,3,c,sw)};rw("chpara",oG);oG.prototype.getResponseHeader=function(){return V(this,AC,1)};oG.prototype.C=function(){return V(this,Z,3)};oG.prototype.D=function(a){Y(this,3,a)};oG.prototype.O=function(){this.D(void 0)};var qG=function(a){Q(this,a,"chiarp",-1,null)};t(qG,P);qG.prototype.o=function(){var a=new E;rG(this,a);return F(a)};var rG=function(a,b){var c=a.getResponseHeader();null!=c&&N(b,1,c,BC);c=V(a,oE,2);null!=c&&N(b,2,c,pE);c=R(a,3);null!=c&&L(b,3,c);c=a.C();null!=c&&N(b,4,c,sw)};rw("chiarp",qG);qG.prototype.getResponseHeader=function(){return V(this,AC,1)};qG.prototype.C=function(){return V(this,Z,4)};qG.prototype.D=function(a){Y(this,4,a)};qG.prototype.O=function(){this.D(void 0)};var tG=function(a){Q(this,a,"chparp",-1,sG)};t(tG,P);var sG=[5];tG.prototype.o=function(){var a=new E;uG(this,a);return F(a)};var uG=function(a,b){var c=a.getResponseHeader();null!=c&&N(b,1,c,BC);c=V(a,tE,2);null!=c&&N(b,2,c,uE);c=a.C();null!=c&&N(b,3,c,sw);c=R(a,4);null!=c&&L(b,4,c);c=X(a,tE,5);0<c.length&&O(b,5,c,uE)};rw("chparp",tG);tG.prototype.getResponseHeader=function(){return V(this,AC,1)};tG.prototype.C=function(){return V(this,Z,3)};tG.prototype.D=function(a){Y(this,3,a)};
tG.prototype.O=function(){this.D(void 0)};var vG=function(a){Q(this,a,0,-1,null)};t(vG,P);vG.prototype.o=function(){var a=new E;wG(this,a);return F(a)};var wG=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&L(b,2,c)};vG.prototype.N=function(){return R(this,1)};vG.prototype.pa=function(a){U(this,1,a)};var yG=function(a){Q(this,a,"chpsrp",-1,xG)};t(yG,P);var xG=[2,4];yG.prototype.o=function(){var a=new E;zG(this,a);return F(a)};var zG=function(a,b){var c=a.getResponseHeader();null!=c&&N(b,1,c,BC);c=X(a,tE,2);0<c.length&&O(b,2,c,uE);c=a.C();null!=c&&N(b,3,c,sw);c=X(a,vG,4);0<c.length&&O(b,4,c,wG)};rw("chpsrp",yG);yG.prototype.getResponseHeader=function(){return V(this,AC,1)};yG.prototype.C=function(){return V(this,Z,3)};yG.prototype.D=function(a){Y(this,3,a)};yG.prototype.O=function(){this.D(void 0)};var AG=function(a){Q(this,a,"chqrp",-1,null)};t(AG,P);AG.prototype.o=function(){var a=new E;BG(this,a);return F(a)};var BG=function(a,b){var c=a.getResponseHeader();null!=c&&N(b,1,c,BC);c=V(a,PD,2);null!=c&&N(b,2,c,QD);c=a.C();null!=c&&N(b,3,c,sw)};rw("chqrp",AG);AG.prototype.getResponseHeader=function(){return V(this,AC,1)};AG.prototype.C=function(){return V(this,Z,3)};AG.prototype.D=function(a){Y(this,3,a)};AG.prototype.O=function(){this.D(void 0)};var CG=function(a){Q(this,a,"chrrp",-1,null)};t(CG,P);CG.prototype.o=function(){var a=new E;DG(this,a);return F(a)};var DG=function(a,b){var c=a.getResponseHeader();null!=c&&N(b,1,c,BC);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&L(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=a.C();null!=c&&N(b,5,c,sw)};rw("chrrp",CG);h=CG.prototype;h.getResponseHeader=function(){return V(this,AC,1)};h.U=function(){return R(this,2)};h.P=function(a){U(this,2,a)};h.C=function(){return V(this,Z,5)};
h.D=function(a){Y(this,5,a)};h.O=function(){this.D(void 0)};var FG=function(a){Q(this,a,"chsearp",-1,EG)};t(FG,P);var EG=[4];FG.prototype.o=function(){var a=new E;GG(this,a);return F(a)};var GG=function(a,b){var c=a.getResponseHeader();null!=c&&N(b,1,c,BC);c=a.C();null!=c&&N(b,3,c,sw);c=X(a,uF,4);0<c.length&&O(b,4,c,vF)};rw("chsearp",FG);FG.prototype.getResponseHeader=function(){return V(this,AC,1)};FG.prototype.C=function(){return V(this,Z,3)};FG.prototype.D=function(a){Y(this,3,a)};FG.prototype.O=function(){this.D(void 0)};var HG=function(a){Q(this,a,"chseqrp",-1,null)};t(HG,P);HG.prototype.o=function(){var a=new E;IG(this,a);return F(a)};var IG=function(a,b){var c=a.getResponseHeader();null!=c&&N(b,1,c,BC);c=V(a,uF,2);null!=c&&N(b,2,c,vF);c=a.C();null!=c&&N(b,3,c,sw)};rw("chseqrp",HG);HG.prototype.getResponseHeader=function(){return V(this,AC,1)};HG.prototype.C=function(){return V(this,Z,3)};HG.prototype.D=function(a){Y(this,3,a)};HG.prototype.O=function(){this.D(void 0)};var KG=function(a){Q(this,a,"chsoarp",-1,JG)};t(KG,P);var JG=[4];KG.prototype.o=function(){var a=new E;LG(this,a);return F(a)};var LG=function(a,b){var c=a.getResponseHeader();null!=c&&N(b,1,c,BC);c=a.Z();null!=c&&N(b,2,c,EF);c=a.C();null!=c&&N(b,3,c,sw);c=X(a,DF,4);0<c.length&&O(b,4,c,EF)};rw("chsoarp",KG);h=KG.prototype;h.getResponseHeader=function(){return V(this,AC,1)};h.Z=function(){return V(this,DF,2)};h.C=function(){return V(this,Z,3)};h.D=function(a){Y(this,3,a)};h.O=function(){this.D(void 0)};var NG=function(a){Q(this,a,"chsosrp",-1,MG)};t(NG,P);var MG=[2];NG.prototype.o=function(){var a=new E;OG(this,a);return F(a)};var OG=function(a,b){var c=a.getResponseHeader();null!=c&&N(b,1,c,BC);c=X(a,DF,2);0<c.length&&O(b,2,c,EF);c=a.C();null!=c&&N(b,3,c,sw)};rw("chsosrp",NG);NG.prototype.getResponseHeader=function(){return V(this,AC,1)};NG.prototype.C=function(){return V(this,Z,3)};NG.prototype.D=function(a){Y(this,3,a)};NG.prototype.O=function(){this.D(void 0)};var QG=function(a){Q(this,a,"chstarp",-1,PG)};t(QG,P);var PG=[4];QG.prototype.o=function(){var a=new E;RG(this,a);return F(a)};var RG=function(a,b){var c=a.getResponseHeader();null!=c&&N(b,1,c,BC);c=a.C();null!=c&&N(b,3,c,sw);c=X(a,VF,4);0<c.length&&O(b,4,c,WF)};rw("chstarp",QG);QG.prototype.getResponseHeader=function(){return V(this,AC,1)};QG.prototype.C=function(){return V(this,Z,3)};QG.prototype.D=function(a){Y(this,3,a)};QG.prototype.O=function(){this.D(void 0)};var TG=function(a){Q(this,a,"chstsrp",-1,SG)};t(TG,P);var SG=[2];TG.prototype.o=function(){var a=new E;UG(this,a);return F(a)};var UG=function(a,b){var c=a.getResponseHeader();null!=c&&N(b,1,c,BC);c=X(a,VF,2);0<c.length&&O(b,2,c,WF);c=a.C();null!=c&&N(b,3,c,sw)};rw("chstsrp",TG);TG.prototype.getResponseHeader=function(){return V(this,AC,1)};TG.prototype.C=function(){return V(this,Z,3)};TG.prototype.D=function(a){Y(this,3,a)};TG.prototype.O=function(){this.D(void 0)};var VG=function(a){Q(this,a,0,-1,null)};t(VG,P);VG.prototype.o=function(){var a=new E;WG(this,a);return F(a)};
var WG=function(a,b){var c=V(a,tG,1);null!=c&&N(b,1,c,uG);c=V(a,FG,2);null!=c&&N(b,2,c,GG);c=V(a,QG,3);null!=c&&N(b,3,c,RG);c=a.s();null!=c&&N(b,4,c,UG);c=V(a,KG,5);null!=c&&N(b,5,c,LG);c=a.v();null!=c&&N(b,6,c,OG);c=a.h();null!=c&&N(b,7,c,zG);c=a.u();null!=c&&N(b,8,c,BG);c=V(a,VD,9);null!=c&&N(b,9,c,WD);c=V(a,CG,10);null!=c&&N(b,10,c,DG);c=V(a,qG,11);null!=c&&N(b,11,c,rG);c=V(a,oG,12);null!=c&&N(b,12,c,pG);c=V(a,HG,13);null!=c&&N(b,13,c,IG)};VG.prototype.s=function(){return V(this,TG,4)};
VG.prototype.v=function(){return V(this,NG,6)};VG.prototype.h=function(){return V(this,yG,7)};VG.prototype.u=function(){return V(this,AG,8)};var YG=function(a){Q(this,a,"chbrp",-1,XG)};t(YG,P);var XG=[2];YG.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=X(this,VG,2);0<b.length&&O(a,2,b,WG);b=this.C();null!=b&&N(a,3,b,sw);return F(a)};rw("chbrp",YG);YG.prototype.getResponseHeader=function(){return V(this,AC,1)};YG.prototype.C=function(){return V(this,Z,3)};YG.prototype.D=function(a){Y(this,3,a)};YG.prototype.O=function(){this.D(void 0)};var $G=function(a){Q(this,a,0,-1,ZG)};t($G,P);var ZG=[1];$G.prototype.o=function(){var a=new E;aH(this,a);return F(a)};var aH=function(a,b){a=S(a,1);0<a.length&&Sv(b,1,a)};var bH=function(a){Q(this,a,0,-1,null)};t(bH,P);bH.prototype.o=function(){var a=new E;cH(this,a);return F(a)};var cH=function(a,b){a=V(a,$G,1);null!=a&&N(b,1,a,aH)};var dH=function(a){Q(this,a,0,-1,null)};t(dH,P);dH.prototype.o=function(){var a=new E;eH(this,a);return F(a)};var eH=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c)};dH.prototype.U=function(){return R(this,1)};dH.prototype.P=function(a){U(this,1,a)};dH.prototype.N=function(){return R(this,2)};dH.prototype.pa=function(a){U(this,2,a)};var gH=function(a){Q(this,a,0,-1,fH)};t(gH,P);var fH=[2,3];gH.prototype.o=function(){var a=new E;hH(this,a);return F(a)};var hH=function(a,b){var c=a.C();null!=c&&N(b,1,c,sw);c=a.Aa();0<c.length&&O(b,2,c,uE);c=a.Na();0<c.length&&O(b,3,c,eH);c=R(a,4);null!=c&&L(b,4,c);c=a.Ka();null!=c&&N(b,5,c,eH);c=R(a,6);null!=c&&L(b,6,c)};h=gH.prototype;h.C=function(){return V(this,Z,1)};h.D=function(a){Y(this,1,a)};h.O=function(){this.D(void 0)};h.Aa=function(){return X(this,tE,2)};
h.Na=function(){return X(this,dH,3)};h.Ka=function(){return V(this,dH,5)};var iH=function(a){Q(this,a,0,-1,null)};t(iH,P);iH.prototype.o=function(){var a=new E;jH(this,a);return F(a)};var jH=function(a,b){a=R(a,1);null!=a&&L(b,1,a)};var kH=function(a){Q(this,a,0,-1,null)};t(kH,P);kH.prototype.o=function(){var a=new E;lH(this,a);return F(a)};var lH=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&H(b,2,c)};var nH=function(a){Q(this,a,0,-1,mH)};t(nH,P);var mH=[3];nH.prototype.o=function(){var a=new E;oH(this,a);return F(a)};var oH=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=S(a,3);0<c.length&&Sv(b,3,c);c=R(a,9);null!=c&&J(b,9,c);c=R(a,4);null!=c&&L(b,4,c);c=V(a,GD,5);null!=c&&N(b,5,c,HD);c=V(a,kH,7);null!=c&&N(b,7,c,lH);c=V(a,iH,8);null!=c&&N(b,8,c,jH);c=R(a,6);null!=c&&K(b,6,c)};nH.prototype.U=function(){return R(this,1)};nH.prototype.P=function(a){U(this,1,a)};var qH=function(a){Q(this,a,0,-1,pH)};t(qH,P);var pH=[2];qH.prototype.o=function(){var a=new E;rH(this,a);return F(a)};var rH=function(a,b){var c=a.C();null!=c&&N(b,1,c,sw);c=a.Aa();0<c.length&&O(b,2,c,oH)};qH.prototype.C=function(){return V(this,Z,1)};qH.prototype.D=function(a){Y(this,1,a)};qH.prototype.O=function(){this.D(void 0)};qH.prototype.Aa=function(){return X(this,nH,2)};var sH=function(a){Q(this,a,0,-1,null)};t(sH,P);sH.prototype.o=function(){var a=new E;tH(this,a);return F(a)};var tH=function(a,b){a=R(a,1);null!=a&&M(b,1,a)};sH.prototype.U=function(){return R(this,1)};sH.prototype.P=function(a){U(this,1,a)};var vH=function(a){Q(this,a,0,-1,uH)};t(vH,P);var uH=[2,3];vH.prototype.o=function(){var a=new E;wH(this,a);return F(a)};var wH=function(a,b){var c=a.C();null!=c&&N(b,1,c,sw);c=a.Aa();0<c.length&&O(b,2,c,QD);c=a.Na();0<c.length&&O(b,3,c,tH);c=a.Ka();null!=c&&N(b,4,c,tH)};h=vH.prototype;h.C=function(){return V(this,Z,1)};h.D=function(a){Y(this,1,a)};h.O=function(){this.D(void 0)};h.Aa=function(){return X(this,PD,2)};h.Na=function(){return X(this,sH,3)};h.Ka=function(){return V(this,sH,4)};var xH=function(a){Q(this,a,0,-1,null)};t(xH,P);xH.prototype.o=function(){var a=new E;yH(this,a);return F(a)};var yH=function(a,b){a=R(a,1);null!=a&&M(b,1,a)};xH.prototype.h=function(){return R(this,1)};xH.prototype.qa=function(a){U(this,1,a)};var AH=function(a){Q(this,a,0,-1,zH)};t(AH,P);var zH=[2,3];AH.prototype.o=function(){var a=new E;BH(this,a);return F(a)};var BH=function(a,b){var c=a.C();null!=c&&N(b,1,c,sw);c=a.Aa();0<c.length&&O(b,2,c,vF);c=a.Na();0<c.length&&O(b,3,c,yH);c=a.Ka();null!=c&&N(b,4,c,yH)};h=AH.prototype;h.C=function(){return V(this,Z,1)};h.D=function(a){Y(this,1,a)};h.O=function(){this.D(void 0)};h.Aa=function(){return X(this,uF,2)};h.Na=function(){return X(this,xH,3)};h.Ka=function(){return V(this,xH,4)};var CH=function(a){Q(this,a,0,-1,null)};t(CH,P);CH.prototype.o=function(){var a=new E;DH(this,a);return F(a)};var DH=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c)};h=CH.prototype;h.U=function(){return R(this,1)};h.P=function(a){U(this,1,a)};h.N=function(){return R(this,2)};h.pa=function(a){U(this,2,a)};h.ga=function(){return R(this,3)};h.Kl=function(a){U(this,3,a)};var FH=function(a){Q(this,a,0,-1,EH)};t(FH,P);var EH=[2,3];FH.prototype.o=function(){var a=new E;GH(this,a);return F(a)};var GH=function(a,b){var c=a.C();null!=c&&N(b,1,c,sw);c=a.Aa();0<c.length&&O(b,2,c,EF);c=a.Na();0<c.length&&O(b,3,c,DH);c=a.Ka();null!=c&&N(b,4,c,DH)};h=FH.prototype;h.C=function(){return V(this,Z,1)};h.D=function(a){Y(this,1,a)};h.O=function(){this.D(void 0)};h.Aa=function(){return X(this,DF,2)};h.Na=function(){return X(this,CH,3)};h.Ka=function(){return V(this,CH,4)};var HH=function(a){Q(this,a,0,-1,null)};t(HH,P);HH.prototype.o=function(){var a=new E;IH(this,a);return F(a)};var IH=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&L(b,4,c)};h=HH.prototype;h.U=function(){return R(this,1)};h.P=function(a){U(this,1,a)};h.Of=function(){return R(this,2)};h.qa=function(a){U(this,2,a)};h.Wa=function(){return R(this,3)};h.Ml=function(a){U(this,3,a)};h.Nf=function(){return R(this,4)};
h.Ll=function(a){U(this,4,a)};var KH=function(a){Q(this,a,0,-1,JH)};t(KH,P);var JH=[2,3];KH.prototype.o=function(){var a=new E;LH(this,a);return F(a)};var LH=function(a,b){var c=a.C();null!=c&&N(b,1,c,sw);c=a.Aa();0<c.length&&O(b,2,c,WF);c=a.Na();0<c.length&&O(b,3,c,IH);c=a.Ka();null!=c&&N(b,4,c,IH)};h=KH.prototype;h.C=function(){return V(this,Z,1)};h.D=function(a){Y(this,1,a)};h.O=function(){this.D(void 0)};h.Aa=function(){return X(this,VF,2)};h.Na=function(){return X(this,HH,3)};h.Ka=function(){return V(this,HH,4)};var NH=function(a){Q(this,a,0,-1,MH)};t(NH,P);
var MH=[7,13,16,17,18],PH=function(a){a=new xv(a);var b=new NH;return OH(b,a)},OH=function(a,b){for(;yv(b)&&4!=b.b;)switch(b.f){case 1:var c=Bv(b);a.h(c);break;case 2:c=Bv(b);ew(a,2,c);break;case 3:c=Bv(b);ew(a,3,c);break;case 4:c=qv(b.a);dw(a,4,c,0);break;case 5:c=!!b.a.f();dw(a,5,c,!1);break;case 6:c=Bv(b);ew(a,6,c);break;case 7:c=Bv(b);S(a,7).push(c);break;case 8:c=!!b.a.f();dw(a,8,c,!1);break;case 9:c=!!b.a.f();dw(a,9,c,!1);break;case 10:c=Bv(b);ew(a,10,c);break;case 11:c=qv(b.a);dw(a,11,c,0);
break;case 12:c=new QH;Av(b,c,RH);SH(a,c);break;case 13:c=Cv(b,b.a.s);U(a,13,c||[]);break;case 14:c=new TH;Av(b,c,UH);Y(a,14,c);break;case 15:c=!!b.a.f();dw(a,15,c,!1);break;case 16:c=new VH;Av(b,c,WH);iw(a,16,c,VH);break;case 17:c=new XH;Av(b,c,YH);iw(a,17,c,XH);break;case 18:c=Cv(b,b.a.s);U(a,18,c||[]);break;case 19:c=Bv(b);ew(a,19,c);break;case 20:c=new ZH;Av(b,c,$H);Y(a,20,c);break;default:zv(b)}return a};NH.prototype.o=function(){var a=new E;aI(this,a);return F(a)};
var aI=function(a,b){var c=a.tb();0<c.length&&M(b,1,c);c=T(a,2,"");0<c.length&&M(b,2,c);c=T(a,3,"");0<c.length&&M(b,3,c);c=T(a,4,0);0!==c&&L(b,4,c);(c=a.ze())&&K(b,5,c);c=T(a,6,"");0<c.length&&M(b,6,c);c=S(a,7);0<c.length&&Sv(b,7,c);(c=T(a,8,!1))&&K(b,8,c);(c=T(a,9,!1))&&K(b,9,c);c=T(a,10,"");0<c.length&&M(b,10,c);c=T(a,11,0);0!==c&&L(b,11,c);c=V(a,QH,12);null!=c&&N(b,12,c,bI);c=S(a,13);0<c.length&&Vv(b,13,c);c=V(a,TH,14);null!=c&&N(b,14,c,cI);(c=T(a,15,!1))&&K(b,15,c);c=X(a,VH,16);0<c.length&&O(b,
16,c,dI);c=X(a,XH,17);0<c.length&&O(b,17,c,eI);c=S(a,18);0<c.length&&Vv(b,18,c);c=T(a,19,"");0<c.length&&M(b,19,c);c=V(a,ZH,20);null!=c&&N(b,20,c,fI)},QH=function(a){Q(this,a,0,-1,null)};t(QH,P);var RH=function(a,b){for(;yv(b)&&4!=b.b;)switch(b.f){case 1:var c=Bv(b);ew(a,1,c);break;default:zv(b)}return a};QH.prototype.o=function(){var a=new E;bI(this,a);return F(a)};var bI=function(a,b){a=T(a,1,"");0<a.length&&M(b,1,a)},TH=function(a){Q(this,a,0,-1,null)};t(TH,P);
var UH=function(a,b){for(;yv(b)&&4!=b.b;)switch(b.f){case 1:var c=Bv(b);ew(a,1,c);break;case 2:c=qv(b.a);dw(a,2,c,0);break;default:zv(b)}return a};TH.prototype.o=function(){var a=new E;cI(this,a);return F(a)};var cI=function(a,b){var c=T(a,1,"");0<c.length&&M(b,1,c);c=T(a,2,0);0!==c&&L(b,2,c)},VH=function(a){Q(this,a,0,-1,null)};t(VH,P);var WH=function(a,b){for(;yv(b)&&4!=b.b;)switch(b.f){case 1:var c=Bv(b);ew(a,1,c);break;case 2:c=qv(b.a);dw(a,2,c,0);break;default:zv(b)}return a};
VH.prototype.o=function(){var a=new E;dI(this,a);return F(a)};var dI=function(a,b){var c=a.Ib();0<c.length&&M(b,1,c);c=T(a,2,0);0!==c&&L(b,2,c)};VH.prototype.Ib=function(){return T(this,1,"")};var XH=function(a){Q(this,a,0,-1,null)};t(XH,P);var YH=function(a,b){for(;yv(b)&&4!=b.b;)switch(b.f){case 1:var c=Bv(b);ew(a,1,c);break;case 2:c=qv(b.a);dw(a,2,c,0);break;default:zv(b)}return a};XH.prototype.o=function(){var a=new E;eI(this,a);return F(a)};
var eI=function(a,b){var c=a.Ib();0<c.length&&M(b,1,c);c=T(a,2,0);0!==c&&L(b,2,c)};XH.prototype.Ib=function(){return T(this,1,"")};var ZH=function(a){Q(this,a,0,-1,null)};t(ZH,P);var $H=function(a,b){for(;yv(b)&&4!=b.b;)switch(b.f){case 1:var c=Bv(b);ew(a,1,c);break;case 2:c=qv(b.a);dw(a,2,c,0);break;default:zv(b)}return a};ZH.prototype.o=function(){var a=new E;fI(this,a);return F(a)};var fI=function(a,b){var c=T(a,1,"");0<c.length&&M(b,1,c);c=T(a,2,0);0!==c&&L(b,2,c)};
NH.prototype.tb=function(){return T(this,1,"")};NH.prototype.h=function(a){ew(this,1,a)};NH.prototype.ze=function(){return T(this,5,!1)};NH.prototype.ld=function(a){U(this,7,a||[])};var SH=function(a,b){Y(a,12,b)};var gI=function(a){Q(this,a,0,-1,null)};t(gI,P);gI.prototype.o=function(){var a=new E;hI(this,a);return F(a)};var hI=function(a,b){a=a.ub();0!==a&&J(b,1,a)};gI.prototype.ub=function(){return T(this,1,0)};var jI=function(a){Q(this,a,0,-1,iI)};t(jI,P);var iI=[2,3];jI.prototype.o=function(){var a=new E;kI(this,a);return F(a)};var kI=function(a,b){var c=a.C();null!=c&&N(b,1,c,hI);c=a.Aa();0<c.length&&O(b,2,c,aI);c=a.Na();0<c.length&&Sv(b,3,c);c=a.Ka();0<c.length&&M(b,4,c)};h=jI.prototype;h.C=function(){return V(this,gI,1)};h.D=function(a){Y(this,1,a)};h.O=function(){this.D(void 0)};h.Aa=function(){return X(this,NH,2)};h.Na=function(){return S(this,3)};h.Ka=function(){return T(this,4,"")};var lI=function(a){Q(this,a,0,-1,null)};t(lI,P);lI.prototype.o=function(){var a=new E;mI(this,a);return F(a)};var mI=function(a,b){var c=T(a,1,0);0!==c&&J(b,1,c);c=T(a,2,0);0!==c&&H(b,2,c)};var nI=function(a){Q(this,a,0,-1,null)};t(nI,P);nI.prototype.o=function(){var a=new E;oI(this,a);return F(a)};var oI=function(a,b){var c=T(a,1,"");0<c.length&&M(b,1,c);c=T(a,2,"");0<c.length&&M(b,2,c);c=T(a,3,0);0!==c&&J(b,3,c);c=V(a,lI,4);null!=c&&N(b,4,c,mI);c=V(a,pI,5);null!=c&&N(b,5,c,qI)},pI=function(a){Q(this,a,0,-1,null)};t(pI,P);pI.prototype.o=function(){var a=new E;qI(this,a);return F(a)};var qI=function(a,b){var c=T(a,1,"");0<c.length&&M(b,1,c);(c=T(a,2,!1))&&K(b,2,c)};var sI=function(a){Q(this,a,0,-1,rI)};t(sI,P);var rI=[2];sI.prototype.o=function(){var a=new E;tI(this,a);return F(a)};var tI=function(a,b){var c=a.C();null!=c&&N(b,1,c,hI);c=a.Aa();0<c.length&&O(b,2,c,oI);c=a.Ka();0<c.length&&M(b,3,c)};h=sI.prototype;h.C=function(){return V(this,gI,1)};h.D=function(a){Y(this,1,a)};h.O=function(){this.D(void 0)};h.Aa=function(){return X(this,nI,2)};h.Ka=function(){return T(this,3,"")};var vI=function(a){Q(this,a,0,-1,uI)};t(vI,P);var uI=[10];vI.prototype.o=function(){var a=new E;wI(this,a);return F(a)};
var wI=function(a,b){var c=a.Ib();0<c.length&&M(b,1,c);c=a.getTitle();0<c.length&&M(b,2,c);c=T(a,4,0);0!==c&&L(b,4,c);c=T(a,5,0);0!==c&&L(b,5,c);c=V(a,lI,7);null!=c&&N(b,7,c,mI);c=V(a,lI,8);null!=c&&N(b,8,c,mI);c=T(a,9,"");0<c.length&&M(b,9,c);c=S(a,10);0<c.length&&Vv(b,10,c);c=T(a,11,"");0<c.length&&M(b,11,c);c=V(a,xI,12);null!=c&&N(b,12,c,yI);c=T(a,13,0);0!==c&&L(b,13,c);c=T(a,14,"");0<c.length&&M(b,14,c);c=T(a,15,"");0<c.length&&M(b,15,c)},zI=function(a){Q(this,a,0,-1,null)};t(zI,P);
zI.prototype.o=function(){var a=new E;AI(this,a);return F(a)};var AI=function(a,b){var c=T(a,1,0);0!==c&&L(b,1,c);c=a.getDeviceId();0<c.length&&M(b,2,c)};zI.prototype.getDeviceId=function(){return T(this,2,"")};var xI=function(a){Q(this,a,0,-1,BI)};t(xI,P);var BI=[1];xI.prototype.o=function(){var a=new E;yI(this,a);return F(a)};var yI=function(a,b){a=X(a,zI,1);0<a.length&&O(b,1,a,AI)};vI.prototype.Ib=function(){return T(this,1,"")};vI.prototype.getTitle=function(){return T(this,2,"")};
vI.prototype.setTitle=function(a){ew(this,2,a)};var DI=function(a){Q(this,a,0,-1,CI)};t(DI,P);var CI=[2,3];DI.prototype.o=function(){var a=new E;EI(this,a);return F(a)};var EI=function(a,b){var c=a.C();null!=c&&N(b,1,c,hI);c=a.Aa();0<c.length&&O(b,2,c,wI);c=a.Na();0<c.length&&Sv(b,3,c);c=a.Ka();0<c.length&&M(b,4,c)};h=DI.prototype;h.C=function(){return V(this,gI,1)};h.D=function(a){Y(this,1,a)};h.O=function(){this.D(void 0)};h.Aa=function(){return X(this,vI,2)};h.Na=function(){return S(this,3)};h.Ka=function(){return T(this,4,"")};var GI=function(a){Q(this,a,0,-1,FI)};t(GI,P);var FI=[5],NI=function(a){a=new xv(a);for(var b=new GI;yv(a)&&4!=a.b;)switch(a.f){case 1:var c=Bv(a);b.u(c);break;case 2:c=Bv(a);ew(b,2,c);break;case 3:c=Bv(a);ew(b,3,c);break;case 4:c=qv(a.a);dw(b,4,c,0);break;case 5:c=new HI;Av(a,c,II);iw(b,5,c,HI);break;case 8:c=new JI;Av(a,c,KI);Y(b,8,c);break;case 6:c=new LI;Av(a,c,MI);Y(b,6,c);break;case 7:c=Bv(a);ew(b,7,c);break;default:zv(a)}return b};GI.prototype.o=function(){var a=new E;OI(this,a);return F(a)};
var OI=function(a,b){var c=a.h();0<c.length&&M(b,1,c);c=a.qb();0<c.length&&M(b,2,c);c=T(a,3,"");0<c.length&&M(b,3,c);c=T(a,4,0);0!==c&&L(b,4,c);c=X(a,HI,5);0<c.length&&O(b,5,c,PI);c=V(a,JI,8);null!=c&&N(b,8,c,QI);c=V(a,LI,6);null!=c&&N(b,6,c,RI);c=T(a,7,"");0<c.length&&M(b,7,c)},HI=function(a){Q(this,a,0,-1,null)};t(HI,P);
var II=function(a,b){for(;yv(b)&&4!=b.b;)switch(b.f){case 1:var c=Bv(b);ew(a,1,c);break;case 2:c=Bv(b);ew(a,2,c);break;case 3:c=Bv(b);ew(a,3,c);break;case 4:c=Bv(b);a.Dc(c);break;default:zv(b)}return a};HI.prototype.o=function(){var a=new E;PI(this,a);return F(a)};var PI=function(a,b){var c=T(a,1,"");0<c.length&&M(b,1,c);c=T(a,2,"");0<c.length&&M(b,2,c);c=T(a,3,"");0<c.length&&M(b,3,c);c=T(a,4,"");0<c.length&&M(b,4,c)};HI.prototype.Dc=function(a){ew(this,4,a)};var JI=function(a){Q(this,a,0,-1,null)};
t(JI,P);var KI=function(a,b){for(;yv(b)&&4!=b.b;)switch(b.f){case 1:var c=Bv(b);ew(a,1,c);break;case 2:c=Bv(b);ew(a,2,c);break;default:zv(b)}return a};JI.prototype.o=function(){var a=new E;QI(this,a);return F(a)};var QI=function(a,b){var c=T(a,1,"");0<c.length&&M(b,1,c);c=T(a,2,"");0<c.length&&M(b,2,c)},SI=function(a){Q(this,a,0,-1,null)};t(SI,P);var TI=function(a,b){for(;yv(b)&&4!=b.b;)switch(b.f){case 1:var c=Bv(b);ew(a,1,c);break;case 2:c=Bv(b);ew(a,2,c);break;default:zv(b)}return a};
SI.prototype.o=function(){var a=new E;UI(this,a);return F(a)};var UI=function(a,b){var c=T(a,1,"");0<c.length&&M(b,1,c);c=T(a,2,"");0<c.length&&M(b,2,c)},VI=function(a){Q(this,a,0,-1,null)};t(VI,P);var YI=function(a,b){for(;yv(b)&&4!=b.b;)switch(b.f){case 1:var c=qv(b.a);dw(a,1,c,0);break;case 2:c=Bv(b);ew(a,2,c);break;case 3:c=Bv(b);ew(a,3,c);break;case 4:c=new WI;Av(b,c,XI);Y(a,4,c);break;case 5:c=Bv(b);ew(a,5,c);break;case 6:c=qv(b.a);dw(a,6,c,0);break;default:zv(b)}return a};
VI.prototype.o=function(){var a=new E;ZI(this,a);return F(a)};var ZI=function(a,b){var c=a.Ae();0!==c&&L(b,1,c);c=a.Ib();0<c.length&&M(b,2,c);c=T(a,3,"");0<c.length&&M(b,3,c);c=V(a,WI,4);null!=c&&N(b,4,c,$I);c=T(a,5,"");0<c.length&&M(b,5,c);c=T(a,6,0);0!==c&&L(b,6,c)},WI=function(a){Q(this,a,0,-1,null)};t(WI,P);var XI=function(a,b){for(;yv(b)&&4!=b.b;)switch(b.f){case 1:var c=Bv(b);ew(a,1,c);break;case 2:c=qv(b.a);dw(a,2,c,0);break;default:zv(b)}return a};
WI.prototype.o=function(){var a=new E;$I(this,a);return F(a)};var $I=function(a,b){var c=a.getDeviceId();0<c.length&&M(b,1,c);c=a.V();0!==c&&L(b,2,c)};WI.prototype.getDeviceId=function(){return T(this,1,"")};WI.prototype.V=function(){return T(this,2,0)};VI.prototype.Ae=function(){return T(this,1,0)};VI.prototype.Ib=function(){return T(this,2,"")};var LI=function(a){Q(this,a,0,-1,null)};t(LI,P);
var MI=function(a,b){for(;yv(b)&&4!=b.b;)switch(b.f){case 1:var c=new SI;Av(b,c,TI);Y(a,1,c);break;case 2:c=new VI;Av(b,c,YI);Y(a,2,c);break;case 3:c=Bv(b);ew(a,3,c);break;case 4:c=Bv(b);ew(a,4,c);break;case 5:c=Bv(b);ew(a,5,c);break;case 6:c=b.a.v();dw(a,6,c,0);break;case 7:c=!!b.a.f();dw(a,7,c,!1);break;default:zv(b)}return a};LI.prototype.o=function(){var a=new E;RI(this,a);return F(a)};
var RI=function(a,b){var c=a.Hd();null!=c&&N(b,1,c,UI);c=V(a,VI,2);null!=c&&N(b,2,c,ZI);c=T(a,3,"");0<c.length&&M(b,3,c);c=T(a,4,"");0<c.length&&M(b,4,c);c=T(a,5,"");0<c.length&&M(b,5,c);c=T(a,6,0);0!==c&&H(b,6,c);(c=T(a,7,!1))&&K(b,7,c)};LI.prototype.Hd=function(){return V(this,SI,1)};GI.prototype.h=function(){return T(this,1,"")};GI.prototype.u=function(a){ew(this,1,a)};GI.prototype.qb=function(){return T(this,2,"")};var bJ=function(a){Q(this,a,0,-1,aJ)};t(bJ,P);var aJ=[2];bJ.prototype.o=function(){var a=new E;cJ(this,a);return F(a)};var cJ=function(a,b){var c=a.C();null!=c&&N(b,1,c,hI);c=a.Aa();0<c.length&&O(b,2,c,OI);c=a.Ka();0<c.length&&M(b,3,c)};h=bJ.prototype;h.C=function(){return V(this,gI,1)};h.D=function(a){Y(this,1,a)};h.O=function(){this.D(void 0)};h.Aa=function(){return X(this,GI,2)};h.Ka=function(){return T(this,3,"")};var dJ=function(a){Q(this,a,0,-1,null)};t(dJ,P);dJ.prototype.o=function(){var a=new E;eJ(this,a);return F(a)};var eJ=function(a,b){var c=a.h();null!=c&&N(b,1,c,kI);c=a.s();null!=c&&N(b,2,c,cJ);c=a.v();null!=c&&N(b,3,c,EI);c=a.u();null!=c&&N(b,4,c,tI)};dJ.prototype.h=function(){return V(this,jI,1)};dJ.prototype.s=function(){return V(this,bJ,2)};dJ.prototype.v=function(){return V(this,DI,3)};dJ.prototype.u=function(){return V(this,sI,4)};var fJ=function(a){Q(this,a,0,-1,null)};t(fJ,P);fJ.prototype.o=function(){var a=new E;gJ(this,a);return F(a)};var gJ=function(a,b){var c=a.oh();null!=c&&N(b,1,c,hH);c=a.rh();null!=c&&N(b,2,c,BH);c=a.th();null!=c&&N(b,3,c,LH);c=a.jh();null!=c&&N(b,4,c,YD);c=a.sh();null!=c&&N(b,5,c,GH);c=a.nh();null!=c&&N(b,7,c,OC);c=a.ph();null!=c&&N(b,8,c,wH);c=a.lh();null!=c&&N(b,9,c,ED);c=a.wh();null!=c&&N(b,10,c,rH);c=a.kh();null!=c&&N(b,11,c,$C);c=a.uh();null!=c&&N(b,13,c,eJ)};h=fJ.prototype;
h.oh=function(){return V(this,gH,1)};h.rh=function(){return V(this,AH,2)};h.th=function(){return V(this,KH,3)};h.jh=function(){return V(this,XD,4)};h.sh=function(){return V(this,FH,5)};h.nh=function(){return V(this,NC,7)};h.ph=function(){return V(this,vH,8)};h.lh=function(){return V(this,DD,9)};h.wh=function(){return V(this,qH,10)};h.kh=function(){return V(this,ZC,11)};h.uh=function(){return V(this,dJ,13)};var hJ=function(a){Q(this,a,0,-1,null)};t(hJ,P);hJ.prototype.o=function(){var a=new E;iJ(this,a);return F(a)};var iJ=function(a,b){var c=V(a,vD,1);null!=c&&N(b,1,c,wD);c=V(a,fJ,2);null!=c&&N(b,2,c,gJ);c=V(a,bH,3);null!=c&&N(b,3,c,cH)};var kJ=function(a){Q(this,a,"hcbu",-1,jJ)};t(kJ,P);var jJ=[1];kJ.prototype.o=function(){var a=new E;var b=X(this,hJ,1);0<b.length&&O(a,1,b,iJ);return F(a)};rw("hcbu",kJ);var mJ=function(a){Q(this,a,0,-1,lJ)};t(mJ,P);var lJ=[4];h=mJ.prototype;h.o=function(){var a=new E;var b=V(this,vC,1);null!=b&&N(a,1,b,wC);b=V(this,PD,2);null!=b&&N(a,2,b,QD);b=this.C();null!=b&&N(a,3,b,sw);b=X(this,PD,4);0<b.length&&O(a,4,b,QD);return F(a)};h.setRequestHeader=function(a){Y(this,1,a)};h.C=function(){return V(this,Z,3)};h.D=function(a){Y(this,3,a)};h.O=function(){this.D(void 0)};var oJ=function(a){Q(this,a,"chmrp",-1,nJ)};t(oJ,P);var nJ=[4];oJ.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=V(this,PD,2);null!=b&&N(a,2,b,QD);b=this.C();null!=b&&N(a,3,b,sw);b=X(this,PD,4);0<b.length&&O(a,4,b,QD);return F(a)};rw("chmrp",oJ);oJ.prototype.getResponseHeader=function(){return V(this,AC,1)};oJ.prototype.C=function(){return V(this,Z,3)};oJ.prototype.D=function(a){Y(this,3,a)};oJ.prototype.O=function(){this.D(void 0)};var qJ=function(a){Q(this,a,0,-1,pJ)};t(qJ,P);var pJ=[4];h=qJ.prototype;h.o=function(){var a=new E;var b=V(this,vC,1);null!=b&&N(a,1,b,wC);b=V(this,tE,2);null!=b&&N(a,2,b,uE);b=this.C();null!=b&&N(a,3,b,sw);b=X(this,tE,4);0<b.length&&O(a,4,b,uE);return F(a)};h.setRequestHeader=function(a){Y(this,1,a)};h.C=function(){return V(this,Z,3)};h.D=function(a){Y(this,3,a)};h.O=function(){this.D(void 0)};var sJ=function(a){Q(this,a,"chpmrp",-1,rJ)};t(sJ,P);var rJ=[4];sJ.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=V(this,tE,2);null!=b&&N(a,2,b,uE);b=this.C();null!=b&&N(a,3,b,sw);b=X(this,tE,4);0<b.length&&O(a,4,b,uE);return F(a)};rw("chpmrp",sJ);sJ.prototype.getResponseHeader=function(){return V(this,AC,1)};sJ.prototype.C=function(){return V(this,Z,3)};sJ.prototype.D=function(a){Y(this,3,a)};sJ.prototype.O=function(){this.D(void 0)};var tJ=function(a){Q(this,a,0,-1,null)};t(tJ,P);h=tJ.prototype;h.o=function(){var a=new E;var b=V(this,vC,1);null!=b&&N(a,1,b,wC);b=R(this,2);null!=b&&M(a,2,b);b=R(this,3);null!=b&&M(a,3,b);b=this.C();null!=b&&N(a,4,b,sw);return F(a)};h.setRequestHeader=function(a){Y(this,1,a)};h.U=function(){return R(this,2)};h.P=function(a){U(this,2,a)};h.N=function(){return R(this,3)};h.pa=function(a){U(this,3,a)};h.C=function(){return V(this,Z,4)};h.D=function(a){Y(this,4,a)};h.O=function(){this.D(void 0)};var uJ=function(a){Q(this,a,"chpqrp",-1,null)};t(uJ,P);uJ.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=V(this,tE,2);null!=b&&N(a,2,b,uE);b=this.C();null!=b&&N(a,3,b,sw);return F(a)};rw("chpqrp",uJ);uJ.prototype.getResponseHeader=function(){return V(this,AC,1)};uJ.prototype.C=function(){return V(this,Z,3)};uJ.prototype.D=function(a){Y(this,3,a)};uJ.prototype.O=function(){this.D(void 0)};var wJ=function(a){Q(this,a,0,-1,vJ)};t(wJ,P);var vJ=[6,7];h=wJ.prototype;h.o=function(){var a=new E;var b=V(this,vC,1);null!=b&&N(a,1,b,wC);b=R(this,2);null!=b&&M(a,2,b);b=R(this,3);null!=b&&M(a,3,b);b=R(this,5);null!=b&&L(a,5,b);b=this.C();null!=b&&N(a,4,b,sw);b=S(this,6);0<b.length&&Sv(a,6,b);b=X(this,dH,7);0<b.length&&O(a,7,b,eH);return F(a)};h.setRequestHeader=function(a){Y(this,1,a)};h.U=function(){return R(this,2)};h.P=function(a){U(this,2,a)};h.N=function(){return R(this,3)};
h.pa=function(a){U(this,3,a)};h.C=function(){return V(this,Z,4)};h.D=function(a){Y(this,4,a)};h.O=function(){this.D(void 0)};var xJ=function(a,b){hw(a,7,b)};var yJ=function(a){Q(this,a,"chprrp",-1,null)};t(yJ,P);yJ.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=this.C();null!=b&&N(a,2,b,sw);b=R(this,3);null!=b&&L(a,3,b);return F(a)};rw("chprrp",yJ);yJ.prototype.getResponseHeader=function(){return V(this,AC,1)};yJ.prototype.C=function(){return V(this,Z,2)};yJ.prototype.D=function(a){Y(this,2,a)};yJ.prototype.O=function(){this.D(void 0)};var AJ=function(a){Q(this,a,"chsetcrp",-1,zJ)};t(AJ,P);var zJ=[2];AJ.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=X(this,pF,2);0<b.length&&O(a,2,b,qF);return F(a)};rw("chsetcrp",AJ);AJ.prototype.getResponseHeader=function(){return V(this,AC,1)};var BJ=function(a){Q(this,a,0,-1,null)};t(BJ,P);BJ.prototype.o=function(){var a=new E;CJ(this,a);return F(a)};var CJ=function(a,b){var c=V(a,DJ,1);null!=c&&N(b,1,c,EJ);c=V(a,DJ,2);null!=c&&N(b,2,c,EJ);c=R(a,3);null!=c&&L(b,3,c)},DJ=function(a){Q(this,a,0,-1,null)};t(DJ,P);DJ.prototype.o=function(){var a=new E;EJ(this,a);return F(a)};var EJ=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c)};var FJ=function(a){Q(this,a,0,-1,null)};t(FJ,P);FJ.prototype.o=function(){var a=new E;GJ(this,a);return F(a)};var GJ=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&K(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&M(b,5,c);c=R(a,6);null!=c&&M(b,6,c);c=R(a,7);null!=c&&L(b,7,c)};FJ.prototype.U=function(){return R(this,6)};FJ.prototype.P=function(a){U(this,6,a)};var HJ=function(a){Q(this,a,0,-1,null)};t(HJ,P);HJ.prototype.o=function(){var a=new E;IJ(this,a);return F(a)};var IJ=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=V(a,FJ,2);null!=c&&N(b,2,c,GJ);c=V(a,BJ,6);null!=c&&N(b,6,c,CJ);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&H(b,5,c);c=R(a,7);null!=c&&J(b,7,c);c=R(a,8);null!=c&&M(b,8,c)};var KJ=function(a){Q(this,a,0,-1,JJ)};t(KJ,P);var JJ=[5];KJ.prototype.o=function(){var a=new E;LJ(this,a);return F(a)};var LJ=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,4);null!=c&&H(b,4,c);c=X(a,MJ,5);0<c.length&&Uv(b,5,c,NJ)},MJ=function(a){Q(this,a,0,-1,null)};t(MJ,P);MJ.prototype.o=function(){var a=new E;NJ(this,a);return F(a)};var NJ=function(a,b){var c=R(a,1);null!=c&&M(b,6,c);c=R(a,2);null!=c&&M(b,7,c)};var PJ=function(a){Q(this,a,0,-1,OJ)};t(PJ,P);var OJ=[1];PJ.prototype.o=function(){var a=new E;QJ(this,a);return F(a)};var QJ=function(a,b){var c=X(a,RJ,1);0<c.length&&Uv(b,1,c,SJ);c=R(a,15);null!=c&&L(b,15,c);c=R(a,16);null!=c&&H(b,16,c);c=R(a,17);null!=c&&H(b,17,c);c=V(a,kB,18);null!=c&&N(b,18,c,lB)},RJ=function(a){Q(this,a,0,-1,TJ)};t(RJ,P);var TJ=[8,9,10,11,12,13];RJ.prototype.o=function(){var a=new E;SJ(this,a);return F(a)};
var SJ=function(a,b){var c=R(a,1);null!=c&&M(b,2,c);c=R(a,2);null!=c&&M(b,3,c);c=R(a,3);null!=c&&M(b,4,c);c=R(a,4);null!=c&&M(b,5,c);c=R(a,5);null!=c&&M(b,6,c);c=R(a,6);null!=c&&L(b,7,c);c=R(a,7);null!=c&&L(b,8,c);c=X(a,UJ,8);0<c.length&&O(b,9,c,VJ);c=X(a,UJ,9);0<c.length&&O(b,10,c,VJ);c=X(a,UJ,10);0<c.length&&O(b,11,c,VJ);c=X(a,UJ,11);0<c.length&&O(b,12,c,VJ);c=X(a,UJ,12);0<c.length&&O(b,13,c,VJ);c=X(a,UJ,13);0<c.length&&O(b,14,c,VJ)},UJ=function(a){Q(this,a,0,-1,null)};t(UJ,P);
UJ.prototype.o=function(){var a=new E;VJ(this,a);return F(a)};var VJ=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&H(b,2,c)};UJ.prototype.lc=function(a){U(this,1,a)};var WJ=function(a){Q(this,a,0,-1,null)};t(WJ,P);WJ.prototype.o=function(){var a=new E;XJ(this,a);return F(a)};var XJ=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&H(b,4,c);c=R(a,5);null!=c&&H(b,5,c);c=V(a,YJ,6);null!=c&&N(b,6,c,ZJ)},YJ=function(a){Q(this,a,0,-1,null)};t(YJ,P);YJ.prototype.o=function(){var a=new E;ZJ(this,a);return F(a)};
var ZJ=function(a,b){var c=R(a,1);null!=c&&K(b,1,c);c=R(a,51);null!=c&&K(b,51,c);c=R(a,4);null!=c&&K(b,4,c);c=R(a,7);null!=c&&K(b,7,c);c=R(a,14);null!=c&&K(b,14,c);c=R(a,15);null!=c&&H(b,15,c);c=R(a,16);null!=c&&H(b,16,c);c=R(a,31);null!=c&&H(b,31,c);c=R(a,33);null!=c&&K(b,33,c);c=R(a,35);null!=c&&K(b,35,c);c=R(a,36);null!=c&&K(b,36,c);c=R(a,37);null!=c&&K(b,37,c);c=R(a,38);null!=c&&K(b,38,c);c=R(a,43);null!=c&&K(b,43,c);c=R(a,44);null!=c&&K(b,44,c);c=R(a,45);null!=c&&K(b,45,c);c=R(a,46);null!=c&&
K(b,46,c);c=R(a,47);null!=c&&K(b,47,c);c=R(a,48);null!=c&&K(b,48,c);c=R(a,49);null!=c&&K(b,49,c)};var $J=function(a){Q(this,a,0,-1,null)};t($J,P);$J.prototype.o=function(){var a=new E;aK(this,a);return F(a)};var aK=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&L(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&J(b,5,c)};$J.prototype.V=function(){return R(this,1)};var bK=function(a){var b=Ka();U(a,5,b)};var cK=function(a){Q(this,a,0,-1,null)};t(cK,P);cK.prototype.o=function(){var a=new E;dK(this,a);return F(a)};var dK=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);null!=c&&J(b,3,c);c=R(a,4);null!=c&&J(b,4,c)};var eK=function(a){Q(this,a,0,-1,null)};t(eK,P);eK.prototype.o=function(){var a=new E;fK(this,a);return F(a)};var fK=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,4);null!=c&&H(b,4,c)};eK.prototype.V=function(){return R(this,1)};eK.prototype.getName=function(){return R(this,2)};var hK=function(a){Q(this,a,0,-1,gK)};t(hK,P);var gK=[24];hK.prototype.o=function(){var a=new E;iK(this,a);return F(a)};
var iK=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,4);null!=c&&H(b,4,c);c=R(a,5);null!=c&&M(b,5,c);c=R(a,6);null!=c&&H(b,6,c);c=R(a,7);null!=c&&H(b,7,c);c=R(a,8);null!=c&&M(b,8,c);c=R(a,9);null!=c&&H(b,9,c);c=R(a,10);null!=c&&H(b,10,c);c=R(a,11);null!=c&&M(b,11,c);c=R(a,12);null!=c&&M(b,12,c);c=R(a,13);null!=c&&M(b,13,c);c=R(a,14);null!=c&&M(b,14,c);c=R(a,15);null!=c&&M(b,15,c);c=R(a,16);null!=c&&M(b,16,c);c=R(a,17);null!=c&&H(b,17,c);c=
R(a,18);null!=c&&H(b,18,c);c=R(a,19);null!=c&&M(b,19,c);c=R(a,20);null!=c&&M(b,20,c);c=V(a,jK,21);null!=c&&N(b,21,c,kK);c=R(a,22);null!=c&&M(b,22,c);c=V(a,lK,23);null!=c&&N(b,23,c,mK);c=X(a,eK,24);0<c.length&&O(b,24,c,fK)},jK=function(a){Q(this,a,0,-1,null)};t(jK,P);jK.prototype.o=function(){var a=new E;kK(this,a);return F(a)};
var kK=function(a,b){var c=R(a,1);null!=c&&K(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,4);null!=c&&H(b,4,c);c=R(a,5);null!=c&&H(b,5,c)},lK=function(a){Q(this,a,0,-1,nK)};t(lK,P);var nK=[3];lK.prototype.o=function(){var a=new E;mK(this,a);return F(a)};var mK=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=X(a,oK,3);0<c.length&&O(b,3,c,pK)},oK=function(a){Q(this,a,0,-1,null)};t(oK,P);oK.prototype.o=function(){var a=new E;pK(this,a);return F(a)};
var pK=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&L(b,2,c);c=R(a,4);null!=c&&L(b,4,c);c=R(a,3);null!=c&&L(b,3,c)};hK.prototype.h=function(a){U(this,6,a)};var rK=function(a){Q(this,a,0,-1,qK)};t(rK,P);var qK=[11];rK.prototype.o=function(){var a=new E;sK(this,a);return F(a)};
var sK=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,14);null!=c&&M(b,14,c);c=R(a,21);null!=c&&M(b,21,c);c=R(a,3);null!=c&&M(b,3,c);c=V(a,KA,4);null!=c&&N(b,4,c,LA);c=V(a,KJ,5);null!=c&&N(b,5,c,LJ);c=V(a,PJ,6);null!=c&&N(b,6,c,QJ);c=V(a,WJ,7);null!=c&&N(b,7,c,XJ);c=V(a,hK,8);null!=c&&N(b,8,c,iK);c=V(a,HJ,10);null!=c&&N(b,10,c,IJ);c=V(a,cK,17);null!=c&&N(b,17,c,dK);c=V(a,$J,15);null!=c&&N(b,15,c,aK);c=S(a,11);0<c.length&&Sv(b,11,c);c=R(a,12);null!=c&&K(b,12,c);c=R(a,
9);null!=c&&L(b,9,c);c=R(a,13);null!=c&&M(b,13,c);c=R(a,16);null!=c&&M(b,16,c);c=R(a,18);null!=c&&K(b,18,c);c=R(a,19);null!=c&&J(b,19,c);c=R(a,20);null!=c&&J(b,20,c);c=R(a,22);null!=c&&M(b,22,c);c=R(a,23);null!=c&&M(b,23,c)};h=rK.prototype;h.U=function(){return R(this,2)};h.P=function(a){U(this,2,a)};h.fa=function(){return R(this,21)};h.N=function(){return R(this,3)};h.pa=function(a){U(this,3,a)};h.qb=function(){return R(this,22)};var tK=function(a){Q(this,a,0,-1,null)};t(tK,P);h=tK.prototype;h.o=function(){var a=new E;var b=V(this,vC,1);null!=b&&N(a,1,b,wC);b=R(this,2);null!=b&&M(a,2,b);b=V(this,rK,3);null!=b&&N(a,3,b,sK);b=this.C();null!=b&&N(a,4,b,sw);return F(a)};h.setRequestHeader=function(a){Y(this,1,a)};h.qa=function(a){U(this,2,a)};h.C=function(){return V(this,Z,4)};h.D=function(a){Y(this,4,a)};h.O=function(){this.D(void 0)};var uK=function(a){Q(this,a,"chselrp",-1,null)};t(uK,P);uK.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=this.C();null!=b&&N(a,2,b,sw);return F(a)};rw("chselrp",uK);uK.prototype.getResponseHeader=function(){return V(this,AC,1)};uK.prototype.C=function(){return V(this,Z,2)};uK.prototype.D=function(a){Y(this,2,a)};uK.prototype.O=function(){this.D(void 0)};var wK=function(a){Q(this,a,0,-1,vK)};t(wK,P);var vK=[4];h=wK.prototype;h.o=function(){var a=new E;var b=V(this,vC,1);null!=b&&N(a,1,b,wC);b=this.C();null!=b&&N(a,3,b,sw);b=X(this,uF,4);0<b.length&&O(a,4,b,vF);return F(a)};h.setRequestHeader=function(a){Y(this,1,a)};h.C=function(){return V(this,Z,3)};h.D=function(a){Y(this,3,a)};h.O=function(){this.D(void 0)};var yK=function(a){Q(this,a,"chsemrp",-1,xK)};t(yK,P);var xK=[4];yK.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=this.C();null!=b&&N(a,3,b,sw);b=X(this,uF,4);0<b.length&&O(a,4,b,vF);return F(a)};rw("chsemrp",yK);yK.prototype.getResponseHeader=function(){return V(this,AC,1)};yK.prototype.C=function(){return V(this,Z,3)};yK.prototype.D=function(a){Y(this,3,a)};yK.prototype.O=function(){this.D(void 0)};var AK=function(a){Q(this,a,0,-1,zK)};t(AK,P);var zK=[4];h=AK.prototype;h.o=function(){var a=new E;var b=V(this,vC,1);null!=b&&N(a,1,b,wC);b=this.Z();null!=b&&N(a,2,b,EF);b=this.C();null!=b&&N(a,3,b,sw);b=X(this,DF,4);0<b.length&&O(a,4,b,EF);return F(a)};h.setRequestHeader=function(a){Y(this,1,a)};h.Z=function(){return V(this,DF,2)};h.C=function(){return V(this,Z,3)};h.D=function(a){Y(this,3,a)};h.O=function(){this.D(void 0)};var CK=function(a){Q(this,a,"chsomrp",-1,BK)};t(CK,P);var BK=[4];CK.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=this.Z();null!=b&&N(a,2,b,EF);b=this.C();null!=b&&N(a,3,b,sw);b=X(this,DF,4);0<b.length&&O(a,4,b,EF);return F(a)};rw("chsomrp",CK);h=CK.prototype;h.getResponseHeader=function(){return V(this,AC,1)};h.Z=function(){return V(this,DF,2)};h.C=function(){return V(this,Z,3)};h.D=function(a){Y(this,3,a)};h.O=function(){this.D(void 0)};var DK=function(a){Q(this,a,0,-1,null)};t(DK,P);h=DK.prototype;h.o=function(){var a=new E;var b=V(this,vC,1);null!=b&&N(a,1,b,wC);b=R(this,2);null!=b&&M(a,2,b);b=R(this,3);null!=b&&M(a,3,b);b=R(this,4);null!=b&&M(a,4,b);return F(a)};h.setRequestHeader=function(a){Y(this,1,a)};h.U=function(){return R(this,2)};h.P=function(a){U(this,2,a)};h.N=function(){return R(this,3)};h.pa=function(a){U(this,3,a)};h.ga=function(){return R(this,4)};var EK=function(a){Q(this,a,"chsoqrp",-1,null)};t(EK,P);EK.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=this.Z();null!=b&&N(a,2,b,EF);return F(a)};rw("chsoqrp",EK);EK.prototype.getResponseHeader=function(){return V(this,AC,1)};EK.prototype.Z=function(){return V(this,DF,2)};var GK=function(a){Q(this,a,0,-1,FK)};t(GK,P);var FK=[4];h=GK.prototype;h.o=function(){var a=new E;var b=V(this,vC,1);null!=b&&N(a,1,b,wC);b=this.C();null!=b&&N(a,3,b,sw);b=X(this,VF,4);0<b.length&&O(a,4,b,WF);return F(a)};h.setRequestHeader=function(a){Y(this,1,a)};h.C=function(){return V(this,Z,3)};h.D=function(a){Y(this,3,a)};h.O=function(){this.D(void 0)};var IK=function(a){Q(this,a,"chstmrp",-1,HK)};t(IK,P);var HK=[4];IK.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=this.C();null!=b&&N(a,3,b,sw);b=X(this,VF,4);0<b.length&&O(a,4,b,WF);return F(a)};rw("chstmrp",IK);IK.prototype.getResponseHeader=function(){return V(this,AC,1)};IK.prototype.C=function(){return V(this,Z,3)};IK.prototype.D=function(a){Y(this,3,a)};IK.prototype.O=function(){this.D(void 0)};var JK=function(a){Q(this,a,0,-1,null)};t(JK,P);h=JK.prototype;h.o=function(){var a=new E;var b=V(this,vC,1);null!=b&&N(a,1,b,wC);b=R(this,2);null!=b&&L(a,2,b);b=R(this,3);null!=b&&M(a,3,b);b=R(this,4);null!=b&&M(a,4,b);b=R(this,5);null!=b&&M(a,5,b);return F(a)};h.setRequestHeader=function(a){Y(this,1,a)};h.qa=function(a){U(this,3,a)};h.Wa=function(){return R(this,4)};h.U=function(){return R(this,5)};h.P=function(a){U(this,5,a)};var KK=function(a){Q(this,a,"chstqrp",-1,null)};t(KK,P);KK.prototype.o=function(){var a=new E;var b=this.getResponseHeader();null!=b&&N(a,1,b,BC);b=this.nb();null!=b&&N(a,2,b,WF);return F(a)};rw("chstqrp",KK);KK.prototype.getResponseHeader=function(){return V(this,AC,1)};KK.prototype.nb=function(){return V(this,VF,2)};var LK=function(a){Q(this,a,0,-1,null)};t(LK,P);LK.prototype.o=function(){var a=new E;MK(this,a);return F(a)};var MK=function(a,b){a=R(a,1);null!=a&&Gv(b,1,a)};var NK=function(a){Q(this,a,0,-1,null)};t(NK,P);NK.prototype.o=function(){var a=new E;OK(this,a);return F(a)};var OK=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&L(b,3,c)};var PK=function(a){Q(this,a,0,-1,null)};t(PK,P);PK.prototype.o=function(){var a=new E;QK(this,a);return F(a)};var QK=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&Jv(b,3,c)};var RK=function(a){Q(this,a,0,-1,null)};t(RK,P);RK.prototype.o=function(){var a=new E;SK(this,a);return F(a)};var SK=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&L(b,2,c);c=V(a,NK,3);null!=c&&N(b,3,c,OK);c=V(a,PK,4);null!=c&&N(b,4,c,QK)};RK.prototype.Z=function(){return R(this,1)};var TK=function(a){Q(this,a,0,-1,null)};t(TK,P);TK.prototype.o=function(){var a=new E;UK(this,a);return F(a)};var UK=function(a,b){var c=V(a,VK,1);null!=c&&N(b,1,c,WK);c=V(a,XK,2);null!=c&&N(b,2,c,YK);c=V(a,ZK,3);null!=c&&N(b,3,c,$K);c=R(a,4);null!=c&&J(b,4,c);c=V(a,aL,5);null!=c&&N(b,5,c,bL);c=V(a,cL,6);null!=c&&N(b,6,c,dL)},VK=function(a){Q(this,a,0,-1,null)};t(VK,P);VK.prototype.o=function(){var a=new E;WK(this,a);return F(a)};
var WK=function(a,b){var c=R(a,1);null!=c&&K(b,1,c);c=R(a,2);null!=c&&K(b,2,c);c=R(a,3);null!=c&&K(b,3,c);c=R(a,4);null!=c&&L(b,4,c);c=R(a,5);null!=c&&J(b,5,c);c=R(a,6);null!=c&&M(b,6,c);c=R(a,7);null!=c&&K(b,7,c);c=R(a,8);null!=c&&J(b,8,c);c=R(a,9);null!=c&&J(b,9,c);c=R(a,10);null!=c&&J(b,10,c);c=R(a,11);null!=c&&L(b,11,c);c=R(a,12);null!=c&&L(b,12,c);c=R(a,13);null!=c&&K(b,13,c);c=R(a,14);null!=c&&K(b,14,c);c=R(a,15);null!=c&&K(b,15,c)},XK=function(a){Q(this,a,0,-1,null)};t(XK,P);
XK.prototype.o=function(){var a=new E;YK(this,a);return F(a)};var YK=function(a,b){var c=R(a,1);null!=c&&K(b,1,c);c=R(a,2);null!=c&&K(b,2,c)},ZK=function(a){Q(this,a,0,-1,null)};t(ZK,P);ZK.prototype.o=function(){var a=new E;$K(this,a);return F(a)};var $K=function(a,b){var c=R(a,1);null!=c&&K(b,1,c);c=R(a,2);null!=c&&L(b,2,c)},aL=function(a){Q(this,a,0,-1,null)};t(aL,P);aL.prototype.o=function(){var a=new E;bL(this,a);return F(a)};
var bL=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&K(b,2,c);c=R(a,3);null!=c&&L(b,3,c)},cL=function(a){Q(this,a,0,-1,null)};t(cL,P);cL.prototype.o=function(){var a=new E;dL(this,a);return F(a)};var dL=function(a,b){a=R(a,1);null!=a&&K(b,1,a)};var eL=function(a){Q(this,a,0,-1,null)};t(eL,P);eL.prototype.o=function(){var a=new E;fL(this,a);return F(a)};var fL=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&J(b,2,c);c=R(a,3);null!=c&&J(b,3,c);c=R(a,4);null!=c&&L(b,4,c);c=R(a,5);null!=c&&L(b,5,c);c=R(a,6);null!=c&&L(b,6,c);c=R(a,7);null!=c&&M(b,7,c);c=R(a,8);null!=c&&M(b,8,c);c=R(a,9);null!=c&&L(b,9,c)};var gL=function(a){Q(this,a,0,-1,null)};t(gL,P);gL.prototype.o=function(){var a=new E;hL(this,a);return F(a)};var hL=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&L(b,2,c);c=R(a,3);null!=c&&J(b,3,c)};var iL=function(a){Q(this,a,"azvep",-1,null)};t(iL,P);iL.prototype.o=function(){var a=new E;jL(this,a);return F(a)};var jL=function(a,b){a=R(a,1);null!=a&&Lv(b,1,a)};rw("azvep",iL);var lL=function(a){Q(this,a,0,-1,kL)};t(lL,P);var kL=[4,5];lL.prototype.o=function(){var a=new E;mL(this,a);return F(a)};var mL=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=V(a,nL,2);null!=c&&N(b,2,c,oL);c=R(a,3);null!=c&&H(b,3,c);c=X(a,pL,4);0<c.length&&O(b,4,c,qL);c=X(a,rL,5);0<c.length&&O(b,5,c,sL);c=V(a,iL,6);null!=c&&N(b,6,c,jL);c=V(a,gL,7);null!=c&&N(b,7,c,hL)},nL=function(a){Q(this,a,0,-1,null)};t(nL,P);nL.prototype.o=function(){var a=new E;oL(this,a);return F(a)};
var oL=function(a,b){var c=R(a,1);null!=c&&K(b,1,c);c=R(a,2);null!=c&&Lv(b,2,c);c=R(a,3);null!=c&&Lv(b,3,c);c=R(a,4);null!=c&&Lv(b,4,c);c=R(a,5);null!=c&&Lv(b,5,c)},pL=function(a){Q(this,a,0,-1,null)};t(pL,P);pL.prototype.o=function(){var a=new E;qL(this,a);return F(a)};var qL=function(a,b){var c=V(a,nL,1);null!=c&&N(b,1,c,oL);c=R(a,2);null!=c&&L(b,2,c);c=R(a,3);null!=c&&J(b,3,c);c=R(a,4);null!=c&&Lv(b,4,c)};pL.prototype.V=function(){return R(this,2)};var rL=function(a){Q(this,a,0,-1,null)};
t(rL,P);rL.prototype.o=function(){var a=new E;sL(this,a);return F(a)};var sL=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&J(b,2,c);c=R(a,3);null!=c&&Lv(b,3,c);c=R(a,4);null!=c&&J(b,4,c)};rL.prototype.Z=function(){return T(this,1,0)};rL.prototype.Ra=function(){return $v(this,3)};lL.prototype.Ca=function(){return R(this,1)};var tL=function(a){Q(this,a,0,-1,null)};t(tL,P);tL.prototype.o=function(){var a=new E;uL(this,a);return F(a)};var uL=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);null!=c&&K(b,3,c)};tL.prototype.setEnabled=function(a){U(this,3,a)};var vL=function(a){Q(this,a,0,-1,null)};t(vL,P);vL.prototype.o=function(){var a=new E;wL(this,a);return F(a)};var wL=function(a,b){a=R(a,1);null!=a&&K(b,1,a)};var yL=function(a){Q(this,a,0,-1,xL)};t(yL,P);var xL=[2,6];yL.prototype.o=function(){var a=new E;zL(this,a);return F(a)};var zL=function(a,b){var c=R(a,1);null!=c&&J(b,1,c);c=S(a,2);0<c.length&&Sv(b,2,c);c=X(a,tL,6);0<c.length&&O(b,6,c,uL);c=R(a,3);null!=c&&K(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&K(b,5,c);c=V(a,vL,7);null!=c&&N(b,7,c,wL)};var AL=function(a){Q(this,a,0,-1,null)};t(AL,P);AL.prototype.o=function(){var a=new E;BL(this,a);return F(a)};var BL=function(a,b){a=R(a,1);null!=a&&M(b,1,a)};AL.prototype.getId=function(){return R(this,1)};var CL=function(a){Q(this,a,0,-1,null)};t(CL,P);CL.prototype.o=function(){var a=new E;DL(this,a);return F(a)};
var DL=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&M(b,5,c);c=V(a,AL,6);null!=c&&N(b,6,c,BL);c=R(a,7);null!=c&&M(b,7,c);c=R(a,8);null!=c&&M(b,8,c);c=R(a,9);null!=c&&M(b,9,c);c=R(a,12);null!=c&&M(b,12,c);c=R(a,10);null!=c&&M(b,10,c);c=R(a,11);null!=c&&M(b,11,c);c=R(a,13);null!=c&&M(b,13,c);c=R(a,14);null!=c&&M(b,14,c);c=R(a,15);null!=c&&M(b,15,c)};h=CL.prototype;h.qa=function(a){U(this,2,a)};
h.U=function(){return R(this,3)};h.P=function(a){U(this,3,a)};h.N=function(){return R(this,4)};h.pa=function(a){U(this,4,a)};h.fa=function(){return R(this,10)};h.qb=function(){return R(this,13)};var EL=function(a){Q(this,a,0,-1,null)};t(EL,P);EL.prototype.o=function(){var a=new E;FL(this,a);return F(a)};var FL=function(a,b){var c=R(a,4);null!=c&&L(b,4,c);c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&L(b,2,c);c=R(a,3);null!=c&&J(b,3,c)};EL.prototype.getId=function(){return R(this,4)};var GL=function(a){Q(this,a,0,-1,null)};t(GL,P);GL.prototype.o=function(){var a=new E;HL(this,a);return F(a)};var HL=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&J(b,2,c)};GL.prototype.getId=function(){return R(this,1)};var JL=function(a){Q(this,a,0,-1,IL)};t(JL,P);var IL=[1,2,3];JL.prototype.o=function(){var a=new E;KL(this,a);return F(a)};var KL=function(a,b){var c=X(a,EL,1);0<c.length&&O(b,1,c,FL);c=X(a,GL,2);0<c.length&&O(b,2,c,HL);c=S(a,3);0<c.length&&Rv(b,3,c)};var LL=function(a){Q(this,a,0,-1,null)};t(LL,P);LL.prototype.o=function(){var a=new E;ML(this,a);return F(a)};var ML=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,4);null!=c&&H(b,4,c)};var NL=function(a){Q(this,a,0,-1,null)};t(NL,P);NL.prototype.o=function(){var a=new E;OL(this,a);return F(a)};var OL=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);null!=c&&L(b,3,c);c=R(a,4);null!=c&&H(b,4,c)};var PL=function(a){Q(this,a,0,-1,null)};t(PL,P);PL.prototype.o=function(){var a=new E;QL(this,a);return F(a)};var QL=function(a,b){a=R(a,1);null!=a&&K(b,1,a)};var RL=function(a){Q(this,a,0,-1,null)};t(RL,P);RL.prototype.o=function(){var a=new E;SL(this,a);return F(a)};var SL=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,4);null!=c&&H(b,4,c);c=V(a,kB,5);null!=c&&N(b,5,c,lB)};var TL=function(a){Q(this,a,0,-1,null)};t(TL,P);TL.prototype.o=function(){var a=new E;UL(this,a);return F(a)};var UL=function(a,b){a=R(a,1);null!=a&&M(b,1,a)};var VL=function(a){Q(this,a,0,-1,null)};t(VL,P);VL.prototype.o=function(){var a=new E;WL(this,a);return F(a)};var WL=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,4);null!=c&&H(b,4,c);c=V(a,TL,5);null!=c&&N(b,5,c,UL)};var XL=function(a){Q(this,a,0,-1,null)};t(XL,P);XL.prototype.o=function(){var a=new E;YL(this,a);return F(a)};var YL=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&H(b,2,c)};var ZL=function(a){Q(this,a,0,-1,null)};t(ZL,P);ZL.prototype.o=function(){var a=new E;$L(this,a);return F(a)};var $L=function(a,b){var c=R(a,1);null!=c&&Hv(b,1,c);c=R(a,2);null!=c&&Hv(b,2,c);c=R(a,3);null!=c&&Hv(b,3,c);c=R(a,4);null!=c&&Iv(b,4,c);c=R(a,5);null!=c&&Lv(b,5,c);c=R(a,6);null!=c&&Iv(b,6,c)};var bM=function(a){Q(this,a,0,-1,aM)};t(bM,P);var aM=[2];bM.prototype.o=function(){var a=new E;cM(this,a);return F(a)};var cM=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=X(a,ZL,2);0<c.length&&O(b,2,c,$L);c=R(a,3);null!=c&&Hv(b,3,c);c=R(a,4);null!=c&&L(b,4,c)};var eM=function(a){Q(this,a,0,-1,dM)};t(eM,P);var dM=[1];eM.prototype.o=function(){var a=new E;fM(this,a);return F(a)};var fM=function(a,b){var c=S(a,1);0<c.length&&Rv(b,1,c);c=R(a,2);null!=c&&L(b,2,c);c=R(a,3);null!=c&&Hv(b,3,c)};var hM=function(a){Q(this,a,0,-1,gM)};t(hM,P);var gM=[2,4];hM.prototype.o=function(){var a=new E;iM(this,a);return F(a)};var iM=function(a,b){var c=R(a,1);null!=c&&Iv(b,1,c);c=S(a,2);0<c.length&&Pv(b,2,c);c=R(a,3);null!=c&&Hv(b,3,c);c=X(a,eM,4);0<c.length&&O(b,4,c,fM);c=R(a,5);null!=c&&Hv(b,5,c);c=R(a,6);null!=c&&Hv(b,6,c)};hM.prototype.getId=function(){return R(this,1)};var jM=function(a){Q(this,a,0,-1,null)};t(jM,P);jM.prototype.o=function(){var a=new E;kM(this,a);return F(a)};var kM=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&K(b,2,c);c=R(a,3);null!=c&&K(b,3,c);c=R(a,4);null!=c&&K(b,4,c)};var lM=function(a){Q(this,a,0,-1,null)};t(lM,P);lM.prototype.o=function(){var a=new E;mM(this,a);return F(a)};var mM=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&Hv(b,2,c);c=R(a,3);null!=c&&Hv(b,3,c)};var nM=function(a){Q(this,a,0,-1,null)};t(nM,P);nM.prototype.o=function(){var a=new E;oM(this,a);return F(a)};var oM=function(a,b){var c=R(a,1);null!=c&&Iv(b,1,c);c=R(a,2);null!=c&&L(b,2,c);c=R(a,3);null!=c&&H(b,3,c)};nM.prototype.getId=function(){return R(this,1)};nM.prototype.V=function(){return R(this,2)};nM.prototype.Ra=function(){return R(this,3)};var pM=function(a){Q(this,a,0,-1,null)};t(pM,P);pM.prototype.o=function(){var a=new E;qM(this,a);return F(a)};
var qM=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=V(a,rM,3);null!=c&&N(b,3,c,sM);c=V(a,LL,4);null!=c&&N(b,4,c,ML);c=V(a,RL,5);null!=c&&N(b,5,c,SL);c=V(a,PL,6);null!=c&&N(b,6,c,QL);c=V(a,jM,7);null!=c&&N(b,7,c,kM);c=V(a,VL,8);null!=c&&N(b,8,c,WL);c=V(a,nM,9);null!=c&&N(b,9,c,oM);c=V(a,bM,10);null!=c&&N(b,10,c,cM);c=V(a,lM,11);null!=c&&N(b,11,c,mM);c=V(a,hM,12);null!=c&&N(b,12,c,iM);c=V(a,XL,13);null!=c&&N(b,13,c,YL);c=V(a,TL,14);null!=c&&N(b,14,c,UL);c=V(a,NL,15);null!=
c&&N(b,15,c,OL)},rM=function(a){Q(this,a,0,-1,null)};t(rM,P);rM.prototype.o=function(){var a=new E;sM(this,a);return F(a)};var sM=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);null!=c&&L(b,3,c);c=V(a,tM,4);null!=c&&N(b,4,c,uM);c=R(a,5);null!=c&&L(b,5,c)},tM=function(a){Q(this,a,0,-1,null)};t(tM,P);tM.prototype.o=function(){var a=new E;uM(this,a);return F(a)};var uM=function(a,b){a=R(a,1);null!=a&&H(b,1,a)};pM.prototype.V=function(){return R(this,1)};var vM=function(a){Q(this,a,0,-1,null)};t(vM,P);vM.prototype.o=function(){var a=new E;wM(this,a);return F(a)};var wM=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,4);null!=c&&H(b,4,c);c=R(a,5);null!=c&&H(b,5,c);c=R(a,6);null!=c&&H(b,6,c);c=R(a,7);null!=c&&H(b,7,c);c=R(a,8);null!=c&&H(b,8,c);c=R(a,9);null!=c&&H(b,9,c);c=R(a,10);null!=c&&H(b,10,c);c=R(a,11);null!=c&&H(b,11,c)};var xM=function(a){Q(this,a,0,-1,null)};t(xM,P);xM.prototype.o=function(){var a=new E;yM(this,a);return F(a)};var yM=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);null!=c&&Gv(b,3,c);c=R(a,4);null!=c&&K(b,4,c)};var zM=function(a){Q(this,a,0,-1,null)};t(zM,P);zM.prototype.o=function(){var a=new E;AM(this,a);return F(a)};
var AM=function(a,b){var c=V(a,CL,1);null!=c&&N(b,1,c,DL);c=V(a,KA,2);null!=c&&N(b,2,c,LA);c=V(a,HJ,3);null!=c&&N(b,3,c,IJ);c=V(a,cK,13);null!=c&&N(b,13,c,dK);c=V(a,$J,10);null!=c&&N(b,10,c,aK);c=V(a,KJ,4);null!=c&&N(b,4,c,LJ);c=V(a,PJ,5);null!=c&&N(b,5,c,QJ);c=V(a,WJ,6);null!=c&&N(b,6,c,XJ);c=V(a,hK,7);null!=c&&N(b,7,c,iK);c=V(a,pM,8);null!=c&&N(b,8,c,qM);c=V(a,yL,9);null!=c&&N(b,9,c,zL);c=V(a,xM,11);null!=c&&N(b,11,c,yM);c=V(a,vM,12);null!=c&&N(b,12,c,wM);c=V(a,JL,14);null!=c&&N(b,14,c,KL);c=V(a,
eL,15);null!=c&&N(b,15,c,fL);c=V(a,lL,16);null!=c&&N(b,16,c,mL)};var BM=function(a){Q(this,a,0,-1,null)};t(BM,P);BM.prototype.o=function(){var a=new E;CM(this,a);return F(a)};var CM=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,7);null!=c&&Iv(b,7,c)};BM.prototype.getId=function(){return R(this,1)};var DM=function(a){Q(this,a,0,-1,null)};t(DM,P);DM.prototype.o=function(){var a=new E;EM(this,a);return F(a)};var EM=function(a,b){var c=R(a,21);null!=c&&L(b,21,c);c=R(a,2);null!=c&&L(b,2,c);c=R(a,3);null!=c&&L(b,3,c);c=R(a,4);null!=c&&K(b,4,c)};var FM=function(a){Q(this,a,0,-1,null)};t(FM,P);FM.prototype.o=function(){var a=new E;GM(this,a);return F(a)};var GM=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&L(b,4,c);c=R(a,5);null!=c&&J(b,5,c);c=R(a,6);null!=c&&K(b,6,c);c=R(a,7);null!=c&&M(b,7,c);c=R(a,8);null!=c&&L(b,8,c);c=R(a,9);null!=c&&K(b,9,c)};var HM=function(a){Q(this,a,0,-1,null)};t(HM,P);HM.prototype.o=function(){var a=new E;IM(this,a);return F(a)};var IM=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=V(a,FM,2);null!=c&&N(b,2,c,GM);c=V(a,DM,5);null!=c&&N(b,5,c,EM);c=R(a,6);null!=c&&H(b,6,c);c=R(a,7);null!=c&&L(b,7,c);c=R(a,8);null!=c&&L(b,8,c);c=R(a,9);null!=c&&Iv(b,9,c);c=R(a,10);null!=c&&L(b,10,c);c=R(a,11);null!=c&&Iv(b,11,c)};var JM=function(a){Q(this,a,0,-1,null)};t(JM,P);JM.prototype.o=function(){var a=new E;KM(this,a);return F(a)};var KM=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&L(b,2,c)};var LM=function(a){Q(this,a,0,-1,null)};t(LM,P);LM.prototype.o=function(){var a=new E;MM(this,a);return F(a)};var MM=function(a,b){a=R(a,1);null!=a&&H(b,1,a)};var NM=function(a){Q(this,a,0,-1,null)};t(NM,P);NM.prototype.o=function(){var a=new E;OM(this,a);return F(a)};var OM=function(a,b){var c=R(a,1);null!=c&&J(b,1,c);c=R(a,2);null!=c&&K(b,2,c);c=R(a,5);null!=c&&M(b,5,c);c=R(a,6);null!=c&&M(b,6,c)};var PM=function(a){Q(this,a,0,-1,null)};t(PM,P);PM.prototype.o=function(){var a=new E;QM(this,a);return F(a)};var QM=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);null!=c&&H(b,3,c)};PM.prototype.getName=function(){return R(this,1)};var SM=function(a){Q(this,a,0,-1,RM)};t(SM,P);var RM=[12,10,26,31];SM.prototype.o=function(){var a=new E;TM(this,a);return F(a)};
var TM=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=V(a,AL,2);null!=c&&N(b,2,c,BL);c=R(a,20);null!=c&&M(b,20,c);c=R(a,3);null!=c&&L(b,3,c);c=S(a,12);0<c.length&&Rv(b,12,c);c=R(a,4);null!=c&&L(b,4,c);c=R(a,5);null!=c&&L(b,5,c);c=R(a,6);null!=c&&H(b,6,c);c=R(a,7);null!=c&&L(b,7,c);c=R(a,8);null!=c&&M(b,8,c);c=R(a,9);null!=c&&M(b,9,c);c=X(a,NM,10);0<c.length&&O(b,10,c,OM);c=a.ga();null!=c&&N(b,13,c,OM);c=R(a,11);null!=c&&Jv(b,11,c);c=R(a,14);null!=c&&M(b,14,c);c=R(a,15);null!=c&&Jv(b,15,c);c=R(a,16);
null!=c&&Hv(b,16,c);c=R(a,17);null!=c&&L(b,17,c);c=R(a,18);null!=c&&K(b,18,c);c=R(a,19);null!=c&&Jv(b,19,c);c=R(a,21);null!=c&&L(b,21,c);c=V(a,HM,22);null!=c&&N(b,22,c,IM);c=R(a,23);null!=c&&L(b,23,c);c=V(a,BM,24);null!=c&&N(b,24,c,CM);c=R(a,25);null!=c&&M(b,25,c);c=X(a,PM,26);0<c.length&&O(b,26,c,QM);c=V(a,LM,27);null!=c&&N(b,27,c,MM);c=R(a,28);null!=c&&Iv(b,28,c);c=R(a,29);null!=c&&M(b,29,c);c=R(a,30);null!=c&&M(b,30,c);c=X(a,HM,31);0<c.length&&O(b,31,c,IM);c=V(a,JM,32);null!=c&&N(b,32,c,KM)};
h=SM.prototype;h.Z=function(){return R(this,1)};h.U=function(){return R(this,20)};h.P=function(a){U(this,20,a)};h.setDestination=function(a){U(this,5,a)};h.ga=function(){return V(this,NM,13)};var UM=function(a){Q(this,a,0,-1,null)};t(UM,P);UM.prototype.o=function(){var a=new E;var b=V(this,zM,1);null!=b&&N(a,1,b,AM);b=V(this,SM,2);null!=b&&N(a,2,b,TM);b=V(this,TK,3);null!=b&&N(a,3,b,UK);b=V(this,LK,4);null!=b&&N(a,4,b,MK);b=V(this,tC,5);null!=b&&N(a,5,b,uC);b=V(this,RK,6);null!=b&&N(a,6,b,SK);return F(a)};var VM=function(){},WM=function(a,b){a.aa||t(a,VM);b.bc=a;do b=b.aa&&b.aa.constructor;while(b&&!b.bc);if(b&&b.bc!==a.aa.constructor)throw Error("delegate base must derive from superclass delegate base");},XM=function(a,b,c){if(!a.aa){for(var d in a.prototype)if(a.prototype.hasOwnProperty(d))throw Error("delegate registered after defining methods. you should extend your delegate base explicitly immediately after defining your delegate class");t(a,b)}c=c||0;a.dh=c;if(b.pb){b=b.pb;d=0;for(var e=b.length-
1;d<=e;){var f=d+e>>1;c>b[f].dh?e=f-1:d=f+1}d<b.length&&b[d].dh==c&&++d;b.splice(d,0,a)}else b.pb=[a]},$M=function(a){var b=a.bc,c=function(a){c.aa.constructor.call(this,a);var b=this.pb.length;this.a=[];for(var d=0;d<b;++d)this.pb[d].cs||(this.a[d]=new this.pb[d](a))};t(c,b);for(var d=[];a;){if(b=a.bc){b.pb&&ec(d,b.pb);var e=b.prototype,f;for(f in e)if(e.hasOwnProperty(f)&&Ca(e[f])&&e[f]!==b){var g=!!e[f].bs,l=YM(f,e,d,g);(g=ZM(f,e,l,g))&&(c.prototype[f]=g)}}a=a.aa&&a.aa.constructor}c.prototype.pb=
d;return c},YM=function(a,b,c,d){for(var e=[],f=0;f<c.length&&(c[f].prototype[a]===b[a]||(e.push(f),!d));++f);return e},ZM=function(a,b,c,d){var e;c.length?d?e=function(b){var d=this.a[c[0]];return d?d[a].apply(this.a[c[0]],arguments):this.pb[c[0]].prototype[a].apply(this,arguments)}:b[a].Dk?e=function(b){a:{var d=Array.prototype.slice.call(arguments,0);for(var e=0;e<c.length;++e){var f=this.a[c[e]];if(f=f?f[a].apply(f,d):this.pb[c[e]].prototype[a].apply(this,d)){d=f;break a}}d=!1}return d}:b[a].ah?
e=function(b){a:{var d=Array.prototype.slice.call(arguments,0);for(var e=0;e<c.length;++e){var f=this.a[c[e]];f=f?f[a].apply(f,d):this.pb[c[e]].prototype[a].apply(this,d);if(null!=f){d=f;break a}}d=void 0}return d}:b[a].Ih?e=function(b){for(var d=Array.prototype.slice.call(arguments,0),e=0;e<c.length;++e){var f=this.a[c[e]];f?f[a].apply(f,d):this.pb[c[e]].prototype[a].apply(this,d)}}:e=function(b){for(var d=Array.prototype.slice.call(arguments,0),e=[],f=0;f<c.length;++f){var u=this.a[c[f]];e.push(u?
u[a].apply(u,d):this.pb[c[f]].prototype[a].apply(this,d))}return e}:d||b[a].Dk||b[a].ah||b[a].Ih?e=null:e=aN;return e},aN=function(){return[]};VM.prototype.tf=function(a){if(this.a)for(var b=0;b<this.a.length;++b)if(this.a[b]instanceof a)return this.a[b];return null};var bN=function(){var a=function(){};a.ah=!0;return a},cN=function(){var a=function(){};a.Ih=!0;return a};var dN=function(a,b){this.namespace_=a;this.a=b;this.constructor.Sg||(this.constructor.Sg={});this.constructor.Sg[this.toString()]=this};dN.prototype.ia=function(){return this.toString()};dN.prototype.toString=function(){this.b||(this.b=this.namespace_.a+":"+this.a);return this.b};dN.prototype.V=function(){return this.a};var eN=function(a,b){dN.call(this,a,b)};t(eN,dN);var fN=function(a){this.a=a};new fN("lib");var gN=function(a){var b={},c={},d=[],e=[],f=function(a){if(!c[a]){var e=a instanceof pB?a.b:[];c[a]=y(e);x(e,function(c){b[c]=b[c]||[];b[c].push(a)});e.length||d.push(a);x(e,f)}};for(x(a,f);d.length;){var g=d.shift();e.push(g);b[g]&&x(b[g],function(a){$b(c[a],g);c[a].length||d.push(a)})}var l={},r=[];x(e,function(a){a instanceof pB&&(a=a.a,null==a||l[a]||(l[a]=!0,r.push(a)))});return{services:e,al:r}};var hN=new pB("pVbxBc"),iN=new pB("n73qwf");var lN=function(a){Jh.call(this);this.id=jN++;this.H=[];this.b={};this.m={};this.v={};this.a={};this.f={};this.B={};this.h=a?a.h:new B;this.K=!a;this.g=null;a?(this.g=a,this.v=a.v,this.a=a.a,this.m=a.m,this.f=a.f):Ka();a=kN(this);this!=a&&(a.s?a.s.push(this):a.s=[this])};t(lN,Jh);var jN=1,mN=.05>Math.random(),kN=function(a){for(;a.g;)a=a.g;return a};lN.prototype.get=function(a){var b=nN(this,a);null==b&&this.M&&(b={BOGUS:"Service "+a+" was not registered"});if(null==b)throw new oN(a);return b};
var pN=function(a,b){return!(!a.b[b]&&!a.v[b])},qN=function(a,b){return!!(a.b[b]||a.v[b]||(b instanceof pB?b.a:a.m[b]))},nN=function(a,b){for(var c=a;c;c=c.g){if(c.u)throw Error("AppContext is disposed.");if(c.b[b])return c.b[b][0];if(c.B[b])break}if(c=a.v[b]){c=c(a);if(null==c)throw Error("Factory method for service "+b+" returned null or undefined.");a.registerService(b,c);return c}return null},sN=function(a,b,c){return rN(a,[b],c)[b]},rN=function(a,b,c){var d=!c;c={};for(var e=[],f=[],g={},l={},
r=nN(a,hN),u=0;u<b.length;u++){var z=b[u],I=nN(a,z);if(I){var G=new mz;c[z]=G;I.jf&&(xz(G,I.jf()),tz(G,Ja(function(a){return a},I)));G.callback(I)}else if(a.f[z])G=a.f[z].h(),tz(G,p(a.xf,a,z)),c[z]=G;else{if(z instanceof pB)var ha=gN([z]).al;else(I=a.m[z])&&(ha=[I]);!d||ha&&ha.length?(ha&&(r&&z instanceof pB&&r.qs()&&(mN&&(G=r.rs(tN),l[z]=G),r.ls(z)),e.push.apply(e,ha),g[z]=Jb(ha)),f.push(z)):(G=new mz,c[z]=G,G.a(new oN(z)))}}if(d){if(e.length){a.w&&a.w.push(new uN);for(u=0;u<f.length;u++)a.h.dispatchEvent(new vN("p"));
b=wN(xN(a),e,void 0);for(u=0;u<f.length;u++)z=f[u],I=g[z],G=b[I].h(),c[z]=G,l[z]&&tz(G,function(){r.hs(l[z])}),yN(a,G,z,I)}}else for(u=0;u<f.length;u++)z=f[u],I=e[u],G=new mz(p(a.I,a,z)),c[z]=G,(b=a.a[z])||(a.a[z]=b=[]),I&&zN(a,G,z,I),tz(G,p(a.yf,a,z,I)),b.push({za:a,d:G});return c},zN=function(a,b,c,d){tz(b,function(){var a=xN(this).load(d);a.b||this.w&&this.w.push(new uN);return a},a);uz(b,p(a.vh,a,c,d))},yN=function(a,b,c,d){tz(b,function(){this.h.dispatchEvent(new vN("q"))},a);uz(b,p(a.vh,a,c,
d));tz(b,p(a.yf,a,c,d))};h=lN.prototype;h.yf=function(a,b){var c=nN(this,a);if(null==c){if(this.f[a]){var d=this.f[a].h();tz(d,p(this.yf,this,a,b));return d}throw new AN(a,b,"Module loaded but service or factory not registered with app contexts.");}return c.jf?(d=new mz,xz(d,c.jf()),d.callback(c),tz(d,p(this.xf,this,a)),d):this.xf(a)};h.xf=function(a){this.f[a]&&delete this.f[a];return this.get(a)};h.vh=function(a,b,c){return c instanceof nz?c:new BN(a,b,c)};
h.registerService=function(a,b,c){if(this.u)c||Lh(b);else{this.H.push(a);this.b[a]=[b,!c];c=CN(this,this,a);for(var d=0;d<c.length;d++)c[d].callback(null);delete this.m[a];return b}};h.unregisterService=function(a){if(!this.b[a])throw Error('Service for "'+a+'" is not registered');var b=this.b[a];delete this.b[a];b[1]&&Lh(b[0])};
var CN=function(a,b,c){var d=[],e=a.a[c];e&&(Lb(e,function(a){var c;a:{for(c=a.za;c;){if(c==b){c=!0;break a}c=c.g}c=!1}c&&(d.push(a.d),$b(e,a))}),0==e.length&&delete a.a[c]);return d},DN=function(a,b){a.a&&oc(a.a,function(a,d,e){Lb(a,function(c){c.za==b&&$b(a,c)});0==a.length&&delete e[d]})};lN.prototype.I=function(a,b){var c=this.a&&this.a[a];if(c){for(var d=0;d<c.length;++d)if(c[d].za==this&&c[d].d==b){Zb(c,d);break}0==c.length&&delete this.a[a]}};
lN.prototype.W=function(){if(kN(this)==this){var a=this.s;if(a)for(;a.length;)a[0].wa()}else{a=kN(this).s;for(var b=0;b<a.length;b++)if(a[b]==this){a.splice(b,1);break}}for(var c in this.b)a=this.b[c],a[1]&&a[0].wa&&a[0].wa();this.b=null;this.K&&this.h.wa();DN(this,this);this.a=null;Lh(this.F);this.B=this.F=null;lN.aa.W.call(this)};var xN=function(a){return a.A?a.A:a.g?xN(a.g):null},oN=function(a){Eb.call(this);this.id=a;this.message='Service for "'+a+'" is not registered'};t(oN,Eb);
var BN=function(a,b,c){Eb.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};t(BN,Eb);var AN=function(a,b,c){Eb.call(this);this.message='Configuration error when loading the module "'+b+'" for the service "'+a+'": '+c};t(AN,Eb);var uN=function(){oh()},vN=function(a){A.call(this,a)};t(vN,A);var EN=new fN("fva"),tN=new eN(EN,1);var FN={Vp:0,ho:1,fo:2,vq:3,wr:4,vr:5,ur:6,SUCCESS:7};var GN=function(a){this.a=a.a;this.Jd=a.b};GN.prototype.toString=function(){return"RIDs(send="+this.Jd+", rids="+y(this.a)+")"};var HN=function(a){this.a=a?y(y(a.a)):[];this.b=a?a.Jd:!0};HN.prototype.T=function(){return new GN(this)};var IN=function(a,b){a.a=y(b);return a};var JN=function(a){this.a=a.a;this.b=y(a.b)};JN.prototype.toString=function(){return"SsrcGroup(semantics="+this.a+", ssrcs="+this.b+")"};JN.prototype.mb=function(){return y(this.b)};var KN=function(a){this.a=a?a.a:null;this.b=a?y(a.b):[]};KN.prototype.T=function(){return new JN(this)};var LN=function(a,b){a.a=b;return a},MN=function(a,b){a.b=y(b);return a};var NN=function(a,b,c,d){this.a=a;this.b=b;this.width=c;this.height=d};NN.prototype.clone=function(){return new NN(this.a,this.b,this.width,this.height)};NN.prototype.toString=function(){return"("+this.a+", "+this.b+" - "+this.width+"w x "+this.height+"h)"};var ON=function(a,b){return a==b?!0:a&&b?a.a==b.a&&a.width==b.width&&a.b==b.b&&a.height==b.height:!1};NN.prototype.contains=function(a){return this.a<=a.a&&this.a+this.width>=a.a+a.width&&this.b<=a.b&&this.b+this.height>=a.b+a.height};
NN.prototype.ceil=function(){this.a=Math.ceil(this.a);this.b=Math.ceil(this.b);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};NN.prototype.floor=function(){this.a=Math.floor(this.a);this.b=Math.floor(this.b);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};NN.prototype.round=function(){this.a=Math.round(this.a);this.b=Math.round(this.b);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var QN=function(a,b,c,d,e,f,g){B.call(this);this.g=a;this.ua=b;this.h=c;this.ib=m(d)?d:"un";this.b=m(e)?e:"li";this.f=!1;this.a=null;PN(this,g||null);this.Wd=m(f)?f:null};t(QN,B);h=QN.prototype;h.toString=function(){return"Source(id="+this.ua+" type="+this.h+" content="+this.ib+" state="+this.b+" participantId="+this.g+")"};h.N=function(){return this.g};h.pa=function(a){this.g=a};h.getId=function(){return this.ua};h.V=function(){return this.h};h.getState=function(){return this.b};
h.Ma=function(a){this.b!=a&&(this.b=a,this.dispatchEvent("t"))};h.ye=function(){return this.f};var PN=function(a,b){var c=null!=a.a&&0!=a.a.length,d=null!=b&&0!=b.length;d?(b=y(b),ic(b,function(a,b){return a.a-b.a||a.b-b.b||a.width-b.width||a.height-b.height})):b=null;if(c=d!=c||d&&!mc(a.a,b,ON))a.a=b;return c};QN.prototype.dispatchEvent=function(a){return QN.aa.dispatchEvent.call(this,a)};var RN=function(a){this.l=a.l;this.m=a.m;this.u=a.v;this.s=a.w;this.h=a.h;this.g=a.b;this.xc=a.f;this.b=a.g;this.v=y(a.a);this.a=a.u;this.f=y(a.s)};h=RN.prototype;h.toString=function(){return"Stream(participantId="+this.m+", mediaType="+this.l+", sourceId="+this.u+", streamId="+this.s+", muted="+this.h+", croppable="+this.g+", mediaStreamId="+this.xc+", mediaStreamTrackId="+this.b+", ssrcs="+this.v+", rids="+this.a+", ssrcGroups="+this.f+")"};h.Y=function(){return this.l};h.N=function(){return this.m};
h.ga=function(){return this.u};h.Wa=function(){return this.s};h.pc=function(){return this.h};h.ye=function(){return this.g};h.mb=function(){return y(this.v)};var SN=function(a,b){return a.N()==b.N()&&a.Y()==b.Y()&&a.ga()==b.ga()&&a.Wa()==b.Wa()},TN=function(a){this.l=a?a.l:null;this.m=a?a.m:"";this.v=a?a.u:null;this.w=a?a.s:null;this.h=a?a.h:!1;this.b=a?a.g:!0;this.f=a?a.xc:null;this.g=a?a.b:null;this.a=a?y(a.v):[];this.u=a?a.a:null;this.s=a?y(a.f):[]};TN.prototype.T=function(){return new RN(this)};
var UN=function(a,b){a.l=b;return a},VN=function(a,b){a.m=b;return a},WN=function(a,b){a.v=b;return a},XN=function(a,b){a.w=b;return a},YN=function(a,b){a.h=b;return a},ZN=function(a,b){a.b=b;return a},$N=function(a,b){a.f=b;return a},aO=function(a,b){a.g=b;return a},bO=function(a,b){a.a=y(b);return a},cO=function(a,b){a.a.push(b);return a};TN.prototype.mb=function(){return y(this.a)};var dO=function(a,b){a.u=b;return a},eO=function(a,b){a.s=y(b);return a};var fO=function(a,b,c,d){B.call(this);this.m=a;this.s=b;this.b=c;this.f=m(d)?d:"a"};t(fO,B);h=fO.prototype;h.N=function(){return this.m};h.ga=function(){return this.s};h.getState=function(){return this.f};h.Ma=function(a){a!=this.f&&(this.f=a,this.dispatchEvent("v"))};h.getInfo=function(){return this.b};var gO=function(a,b,c){var d=a.Z();fO.call(this,d.N(),d.getId(),b,c);this.a=a};t(gO,fO);var hO=function(a){B.call(this);this.M=a;this.M.I=this;this.l(this.M)};t(hO,B);hO.prototype.a="nr";var jO=function(a){return{config:a.ba(),muted:a.Yc(),state:iO(a)}};hO.prototype.Z=function(){return this.M};hO.prototype.Yc=function(){return"mu"==this.Z().getState()};hO.prototype.ba=function(){return null};
var iO=function(a){switch(a.a){case "re":return chrome.i18n.getMessage("6950033741572394811");case "nr":return chrome.i18n.getMessage("8757444822404164848");case "nd":return chrome.i18n.getMessage("4782049665629043191");case "ad":return chrome.i18n.getMessage("2100823569845184829");case "fa":return chrome.i18n.getMessage("99290588561553105");case "st":return chrome.i18n.getMessage("7017840133230118615")}return""};hO.prototype.h=function(a){this.a=a;this.dispatchEvent("B")};hO.prototype.gi=wa;
hO.prototype.hg=wa;var kO=function(a){this.id=a.ua;this.displayName=a.a;this.groupId=a.f;this.a=a.b;this.b=a.g};kO.prototype.toJson=function(){return{id:this.id,displayName:this.displayName,groupId:this.groupId,fullName:this.a,isPreferred:this.b}};kO.prototype.toString=function(){return"Device(id="+this.id+", displayName="+this.displayName+", groupId="+this.groupId+", fullName="+this.a+", isPreferred="+this.b+")"};
var lO=function(a){this.ua=a?a.id:null;this.a=a?a.displayName:"";this.f=a?a.groupId:"";this.b=a?a.a:"";this.g=a?a.b:!1};lO.prototype.T=function(){return new kO(this)};var mO=new lO;mO.ua="__absent_device__";mO.a="__absent_device__";mO.f="__absent_device__";mO.b="__absent_device__";var nO=mO.T();var oO={No:"INITIAL",qr:"STARTING",pr:"STARTED",Qo:"INPROGRESS",PAUSED:"PAUSED",STOPPED:"STOPPED",FINISHED:"FINISHED"},pO=function(a,b,c){A.call(this,"E");this.state=a;this.a=b;this.Cb=c};t(pO,A);var qO=function(a,b,c,d,e,f,g,l,r,u,z){this.nc=a;this.fd=b;this.Vf=c;this.wc=d;this.Xc=e;this.sa=f;this.Bd=g;this.Rc=l;this.Od=r;this.Ud=m(u)?u:null;this.Vd=m(z)?z:null};qO.prototype.V=function(){return this.Vf};qO.prototype.Ba=function(){return this.sa};var rO=function(a){this.a=a.a;this.b=a.b};rO.prototype.toString=function(){return"CodecParam(key="+this.a+", value="+this.b+")"};rO.prototype.getKey=function(){return this.a};rO.prototype.Ra=function(){return this.b};var sO=function(a){this.a=a?a.a:null;this.b=a?a.b:null};sO.prototype.T=function(){return new rO(this)};var tO=function(a){var b=new sO;b.a=a;return b},uO=function(a,b){a.b=b;return a};var vO=function(a){this.g=a.l;this.Mb=a.m;this.l=a.h;this.f=a.b;this.b=a.g;this.a=a.f;this.hd=a.a};vO.prototype.toString=function(){return"Codec(name="+this.l+", mediaType="+this.g+", payloadType="+this.Mb+", bitrate="+this.f+", clockrate="+this.b+", channels="+this.a+", params="+this.hd+")"};vO.prototype.Y=function(){return this.g};vO.prototype.getName=function(){return this.l};
var wO=function(a){return(a=Sb(a.hd,function(a){return"apt"==a.getKey()}))?a.Ra():null},xO=function(a,b){a=a.getName();a=String(a).toLowerCase();b=String(b).toLowerCase();return 0==(a<b?-1:a==b?0:1)},yO=function(a){this.l=a?a.g:null;this.m=a?a.Mb:null;this.h=a?a.l:null;this.b=a?a.f:null;this.g=a?a.b:null;this.f=a?a.a:null;this.a=a?y(a.hd):[]};yO.prototype.T=function(){return new vO(this)};
var zO=function(a,b){a.l=b;return a},AO=function(a,b){a.m=b;return a},BO=function(a,b){a.h=b;return a},CO=function(a,b){a.g=b;return a},DO=function(a,b){a.f=b;return a},EO=function(a,b,c){c=uO(tO(b),c).T();var d=Rb(a.a,function(a){return a.getKey()==b});-1==d?a.a.push(c):a.a[d]=c;return a};var FO=function(a){this.a=a.f;this.f=a.a;this.g=a.b;this.b=a.g};FO.prototype.toString=function(){return"Crypto(suite="+this.a+", keyParams=<redacted>, sessionParams_="+(null!=this.g?"<redacted>":null)+", tag="+this.b+")"};var GO=function(a){this.f=a?a.a:null;this.a=a?a.f:null;this.b=a?a.g:null;this.g=a?a.b:null};GO.prototype.T=function(){return new FO(this)};var HO=function(a,b,c,d){this.b=a;this.g=b;this.a=c;this.f=d};HO.prototype.toString=function(){return"DataChannelDescriptor(label="+this.f+" id="+this.b+", SSRC="+this.a+", format="+this.g+")"};HO.prototype.getChannelId=function(){return this.b};HO.prototype.ec=function(){return this.f};HO.prototype.equals=function(a){return null==a?!1:this.b==a.b&&this.f==a.f&&this.a==a.a};var IO=function(a){this.a=a.a;this.b=a.b;this.f=a.f};IO.prototype.toString=function(){return"BandwidthConstraints("+("minBandwidthKbps="+this.b+", ")+("maxBandwidthKbps="+this.a+", ")+("startBandwidthKbps="+this.f)};var JO=function(a){this.a=a?a.a:-1;this.b=a?a.b:-1;this.f=a?a.f:-1};JO.prototype.T=function(){return new IO(this)};var KO=function(a){this.a=a.b;this.ua=a.ua;this.b=a.a};KO.prototype.toString=function(){return"RtpHeaderExtension(uri="+this.a+", id="+this.ua+", mediaType="+this.b+")"};KO.prototype.getId=function(){return this.ua};KO.prototype.Y=function(){return this.b};var LO=function(a){this.b=a?a.a:null;this.ua=a?a.ua:null;this.a=a?a.b:null};LO.prototype.T=function(){return new KO(this)};var MO=function(a,b){a.ua=b;return a};var NO=function(a){this.sa=a.sa;this.f=a.b;this.b=a.f;this.a=a.a},OO=function(a){return{port:a.Ba(),name:a.getName(),messagesize:a.b,numstreams:a.a}};NO.prototype.Ba=function(){return this.sa};NO.prototype.getName=function(){return this.f};var PO=function(a){this.sa=a?a.sa:null;this.b=a?a.f:null;this.f=a?a.b:null;this.a=a?a.a:null};PO.prototype.T=function(){return new NO(this)};var QO=function(a,b){a.sa=b;return a},RO=function(a,b){a.b=b;return a},SO=function(a,b){a.a=b;return a};var TO=function(a,b,c,d){this.v=a;this.m=b;this.f=null;this.a=c;this.u=[];this.h="";this.g=[];this.w=this.s=!0;this.b=d||null;this.l=[]},XO=function(a){var b=a.f?OO(a.f):{};return{type:a.V(),mediaId:UO(a),bandwidthConstraints:a.b&&a.b.toString(),codecs:VO(a),streams:WO(a),sctpSettings:b,defaultRequests:Nb(y(a.g),function(a){return a.toString()}),send:a.s,receive:a.w}};TO.prototype.V=function(){return this.v};
var VO=function(a){return y(a.m)},YO=function(a,b){a=zc(a);a.m=b;return a},ZO=function(a,b){a=zc(a);a.f=b;return a},$O=function(a,b){a=zc(a);a.a=b;return a},WO=function(a){return y(a.u)},aP=function(a,b){a=zc(a);a.u=b;return a},UO=function(a){if(a.h)return a.h;switch(a.v){case "a":return"audio";case "v":return"video";case "d":return"data";default:return Hb("No default media ID for unknown type: "+a.v),""}},bP=function(a,b){a=zc(a);a.h=b;return a},cP=function(a,b){a=zc(a);a.g=b;return a},dP=function(a,
b){null==b&&(b=-1);a=zc(a);var c=new JO;c.a=b;a.b=c.T();return a},eP=function(a){return a.b?a.b.a:null},fP=function(a,b){a=zc(a);a.b=b;return a},gP=function(a,b){a=zc(a);a.s=b;return a},hP=function(a,b){a=zc(a);a.w=b;return a},iP=function(a,b){a=zc(a);a.l=b;return a},jP=function(a){return 0<a.l.length&&0<a.u.length},kP=function(a){return jP(a)?Nb(a.l,function(a){return bO($N(XN(WN(UN(new TN,"a"),a.toString()),a.toString()),a.toString()),[a]).T()}):WO(a)},lP=function(a,b,c){var d=WO(a),e=nc(c,function(a){return a.Wa()});
bc(d,function(a){return a.Wa()in e});d=cc(d,b);return aP(a,d)},nP=function(a){return mP(a,function(a){return xO(a,"opus")})},mP=function(a,b){b=Rb(a.m,b);if(-1==b)return a;var c=VO(a),d=c[b];Zb(c,b);Xb(c,0,0,d);return YO(a,c)},pP=function(a,b){if(null==b)return a;var c=zc(a),d=eP(b);d&&(c=dP(c,d));d=VO(b);0==d.length||(c=YO(c,d));(d=b.f)&&(c=ZO(c,d));d=y(b.a);0==d.length||(c=$O(c,d));d=y(b.g);0==d.length||(c=cP(c,d));a=oP(WO(a),WO(b),function(a){return a.Wa()});return aP(c,a)},oP=function(a,b,c){a=
nc(a,c);Ec(a,nc(b,c));return sc(a)};var qP=function(a,b,c,d,e,f){this.m=a;this.f=b;this.b=c;this.a=d||null;this.l=null;this.g=e||[];this.h=f||"full"};qP.prototype.ub=function(){return this.m};var rP=function(a,b){a=zc(a);a.l=b;return a};var sP=function(a,b,c,d,e,f,g){this.b=a||null;this.a=b||null;this.f=c||null;this.m=m(d)?d:null;this.l=new Ni;Mi(this.l,nc(e||[],function(a){return a.ec()},this));this.g=f||null;this.h=g||[]},uP=function(a,b){var c=a.a;if(!c)return a;b=Mb(VO(c),b);var d=Nb(b,function(a){return a.Mb.toString()});b=Mb(b,function(a){return!xO(a,"rtx")||Ub(d,wO(a))});return tP(a,YO(c,b))},vP=function(a){return{sessionId:a.m,audio:a.b&&XO(a.b),video:a.a&&XO(a.a),data:a.f&&XO(a.f),pushChannels:a.l.S()&&a.l.S().toString(),
cryptos:y(a.h)}},wP=function(a){var b=zc(a);b.l=a.l.clone();return b},xP=function(a,b){a=wP(a);a.b=b;return a},tP=function(a,b){a=wP(a);a.a=b;return a},yP=function(a,b){a=wP(a);a.f=b;return a},zP=function(a,b){a=wP(a);a.g=b;return a},AP=function(a,b){a=wP(a);a.h=b;return a},CP=function(a,b,c){a=wP(a);a.b=BP(a.b,b,c);a.a=BP(a.a,b,c);a.f=BP(a.f,b,c);return a},BP=function(a,b,c){if(null==a)return null;b=Mb(b,function(b){return b.Y()==a.V()});c=Mb(c,function(b){return b.Y()==a.V()});return lP(a,b,c)};var DP=function(){},EP=function(){return{autoGainControl:!0,echoCancellation:!0,highPassFilter:!0,inbandFec:!0,dtx:!0,noiseSuppression:!0,preferredSendCodec:null,sendComfortNoise:!0,sendOpus:!0,sendStereo:!1,stereoSwapping:!1,transientSuppression:!0}};var FP=function(a){Q(this,a,0,-1,null)};t(FP,P);FP.prototype.o=function(){var a=new E;GP(this,a);return F(a)};var GP=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,4);null!=c&&H(b,4,c);c=R(a,5);null!=c&&H(b,5,c);c=R(a,6);null!=c&&H(b,6,c);c=R(a,7);null!=c&&H(b,7,c);c=R(a,8);null!=c&&H(b,8,c);c=R(a,9);null!=c&&H(b,9,c);c=R(a,11);null!=c&&K(b,11,c);c=R(a,12);null!=c&&H(b,12,c);c=R(a,13);null!=c&&H(b,13,c)};var IP=function(a){Q(this,a,0,-1,HP)};t(IP,P);var HP=[3];IP.prototype.o=function(){var a=new E;JP(this,a);return F(a)};var JP=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=X(a,KP,3);0<c.length&&O(b,3,c,LP)},KP=function(a){Q(this,a,0,-1,null)};t(KP,P);KP.prototype.o=function(){var a=new E;LP(this,a);return F(a)};
var LP=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,4);null!=c&&H(b,4,c);c=R(a,5);null!=c&&H(b,5,c);c=R(a,6);null!=c&&K(b,6,c);c=R(a,7);null!=c&&K(b,7,c)};KP.prototype.getName=function(){return R(this,2)};var NP=function(a){Q(this,a,"hc:cc",-1,MP)};t(NP,P);var MP=[14,15];
NP.prototype.o=function(){var a=new E;var b=R(this,1);null!=b&&L(a,1,b);b=R(this,2);null!=b&&M(a,2,b);b=R(this,3);null!=b&&M(a,3,b);b=R(this,4);null!=b&&M(a,4,b);b=R(this,5);null!=b&&L(a,5,b);b=R(this,6);null!=b&&M(a,6,b);b=R(this,7);null!=b&&M(a,7,b);b=R(this,8);null!=b&&K(a,8,b);b=R(this,9);null!=b&&Lv(a,9,b);b=R(this,10);null!=b&&M(a,10,b);b=R(this,11);null!=b&&M(a,11,b);b=R(this,12);null!=b&&M(a,12,b);b=V(this,FP,13);null!=b&&N(a,13,b,GP);b=S(this,14);0<b.length&&Sv(a,14,b);b=S(this,15);0<b.length&&
Sv(a,15,b);b=R(this,16);null!=b&&K(a,16,b);b=V(this,IP,17);null!=b&&N(a,17,b,JP);b=R(this,18);null!=b&&K(a,18,b);b=V(this,OP,19);null!=b&&N(a,19,b,PP);b=R(this,20);null!=b&&H(a,20,b);b=R(this,21);null!=b&&H(a,21,b);b=R(this,22);null!=b&&K(a,22,b);return F(a)};var OP=function(a){Q(this,a,0,-1,null)};t(OP,P);OP.prototype.o=function(){var a=new E;PP(this,a);return F(a)};var PP=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&H(b,2,c);c=R(a,3);null!=c&&H(b,3,c)};rw("hc:cc",NP);
var QP=function(a,b){U(a,4,b)};NP.prototype.u=function(a){U(this,6,a)};var RP=function(a){B.call(this);this.a=a;this.g=T(this.a,3,0);this.f=0;this.b=!1};t(RP,B);var TP=function(a,b){b=VA(b);if(null!=b){for(var c=0;c<b.length;++c)if(0==R(b[c],24)&&2==R(b[c],1)&&(0==R(b[c],57)||0==R(b[c],58))){a.g=T(a.a,3,0);return}for(c=0;c<b.length;++c)switch(R(b[c],24)){case 2:var d=a,e=b[c];0<d.g?--d.g:R(e,40)<T(d.a,1,6E4)?d.b||(++d.f,d.f>=T(d.a,2,1)&&(d.dispatchEvent(new SP(0)),d.b=!0)):(d.b&&(d.dispatchEvent(new SP(1)),d.b=!1),d.f=0)}}},SP=function(a){A.call(this,"F");this.id=a};
t(SP,A);var UP=function(a,b,c,d,e,f,g){this.h=a;this.m=b;this.l=c;this.f=m(d)?zc(d):null;this.a=m(e)?e:null;this.b=m(f)?f:!0;this.g=m(g)?g:null;this.u=[]};UP.prototype.toString=function(){return"{participantId: "+this.h+", sourceId: "+this.m+", mediaType: "+this.l+", resolution: "+(null==this.f?"":this.f.width+"x"+this.f.height)+", frameRate: "+this.a+", adaptationReason: 0, send: "+this.b+", ssrcs: "+this.u+"}"};UP.prototype.N=function(){return this.h};UP.prototype.Y=function(){return this.l};
UP.prototype.ga=function(){return this.m};var VP=function(a){return null!=a.f?zc(a.f):null};UP.prototype.mb=function(){return this.u};
var WP=function(a){return new UP(a.h,a.m,a.l,null!=a.f?a.f:void 0,null!=a.a?a.a:void 0,!1,null!=a.g?a.g:void 0)},XP=function(a){return null!=a.f?a.f.width:null},YP=function(a){return null!=a.f?a.f.height:null},ZP=function(a){var b=a;if(null==XP(a)||0<XP(a))b=new UP(b.h,b.m,b.l,new fe(0,YP(b)||0),null!=b.a?b.a:void 0,null!=b.b?b.b:void 0,null!=b.g?b.g:void 0);if(null==YP(a)||0<YP(a))b=new UP(b.h,b.m,b.l,new fe(XP(b)||0,0),null!=b.a?b.a:void 0,null!=b.b?b.b:void 0,null!=b.g?b.g:void 0);return b},$P=
function(a){return null==a.a||0<a.a?new UP(a.h,a.m,a.l,null!=a.f?a.f:void 0,0,null!=a.b?a.b:void 0,null!=a.g?a.g:void 0):a};var aQ=function(){this.w=this.v=this.l=!0;this.H=!1;this.b=null;this.m=[];this.g=this.f=!1;this.A=null;this.u=!0;this.a=!1;this.I=[{urls:["stun:stun.l.google.com:19302","stun:stun1.l.google.com:19302","stun:stun2.l.google.com:19302","stun:stun3.l.google.com:19302","stun:stun4.l.google.com:19302"]}];this.R=!0;this.M=new DP;this.F=!1;this.K=!0;this.ba=!1;this.s=null;this.h=void 0;this.B=1E4;this.X=!1},bQ=function(a){return{useAudio:a.l,useVideo:a.v,useData:!0,useVideoRtx:a.w,dumpRtpHeaders:a.H,allowEarlyMedia:!0,
earlyMediaHangoutId:a.b,defaultRequests:a.m,useStandardIce:!0,debugLogUploadAllowed:a.f,debugLogUploadForced:a.g,clientResource:a.A,useSimulcast:a.u,useP2P:a.a,useTURN:!1,startMuted:a.R,useDtls:a.F,playAudio:!0,useConferenceMode:a.K,useDetours:!1,useDscp:!1,useSsbwe:!1,useVirtualAudioSSRCs:!1,allowH264:!1,allowVP9:!1,useAdaptiveLayering_:a.ba,useWebrtcCpuAdaptation:!0,useSpeakerSwitchSmoothing:!1,bandwidthConstraints:a.s,jmiIntervalMs:a.h,jmiUploadIntervalMs:a.B,shouldHistogramData:a.X}},cQ=function(){var a=
zc(new aQ);a.v=!0;a=zc(a);a.l=!1;return a},dQ=function(a,b){if(a.f&&a.g)return a;a=zc(a);a.f=b;return a},eQ=function(a){a=zc(a);a.g=!0;return a},fQ=function(a,b){a=zc(a);a.b=b;return a},iQ=function(a){a=zc(a);a.m=[gQ,hQ];return a},jQ=function(a){a=zc(a);a.u=!1;return a},kQ=function(a,b){a=zc(a);a.a=b;return a},lQ=function(a,b){a=zc(a);a.I=b;return a},mQ=function(a){a=zc(a);a.R=!1;return a},nQ=function(a,b){a=zc(a);a.F=b;return a},oQ=function(a,b){a=zc(a);a.K=b;return a},pQ=function(a,b){a=zc(a);a.s=
b;return a};var qQ=function(){B.call(this);this.Ha=this.B=null};t(qQ,B);var rQ=function(a){return{hangoutId:a.Ha,isInProgress:"INPROGRESS"==a.getState(),remoteJid:a.B,sessionId:a.b,state:a.getState()}};h=qQ.prototype;h.yc=wa;h.update=function(){return!0};h.Lc=wa;h.bi=wa;h.ii=function(){return!1};h.Qg=wa;h.P=function(a){this.Ha=a};var sQ=function(a,b){A.call(this,"H");this.a=a;this.f=b};t(sQ,A);var tQ=function(a){A.call(this,"I");this.a=a};t(tQ,A);var uQ=function(a){A.call(this,"K");this.a=a};t(uQ,A);
var vQ=function(a,b,c){A.call(this,"J");this.f=a;this.a=b;this.Cb=c};t(vQ,A);var wQ=function(a,b,c){A.call(this,"G");this.Fa=a;this.label=b;this.payload=c};t(wQ,A);var xQ=function(a){A.call(this,"O");this.a=a};t(xQ,A);var yQ=function(){B.call(this)};t(yQ,B);var zQ=function(a){return{id:a.a,isInProgress:"INPROGRESS"==a.getState(),state:a.getState()}};yQ.prototype.pause=wa;yQ.prototype.resume=wa;yQ.prototype.Ab=wa;var AQ=function(a,b,c){A.call(this,"R");this.f=y(a);this.a=y(b);this.removed=y(c)};t(AQ,A);var BQ=function(a){A.call(this,"S");this.a=y(a)};t(BQ,A);var CQ=function(){this.a=this.g=this.f=this.l=this.b=null},DQ=function(a,b){a.b=b;return a};CQ.prototype.qb=function(){return this.g};var EQ=function(a,b){a.b&&U(b,14,a.b);a.f&&U(b,16,a.f);a.g&&U(b,22,a.g);a.a&&U(b,23,a.a)};CQ.prototype.toString=function(){return"{ ParticipantLogId: "+(this.b||"")+", MucJid: "+(this.l||"")+", SyntheticId: "+(this.f||"")+", MeetingCode: "+(this.g||"")+", MeetingSpaceId: "+(this.a||"")+" }"};var FQ=function(a,b,c){fO.call(this,b.N(),b.ga(),b,c);this.a=!1};t(FQ,fO);var GQ=function(){B.call(this);this.gb="INITIAL";this.fb=void 0};t(GQ,B);GQ.prototype.yb=function(){return{state:this.getState(),endCause:this.fb,id:this.b.a,isInProgress:"INPROGRESS"==this.getState(),localId:this.fa(),localDescription:vP(this.a.a.b),localSession:rQ(this.a),options:bQ(this.f),remoteAudioCodecs:Nb(y(this.zb),function(a){return a.toString()}),remoteSession:zQ(this.b),useEarlyMedia:null!=this.f.b&&0<this.f.m.length}};GQ.prototype.getState=function(){return this.gb};GQ.prototype.di=wa;
GQ.prototype.ci=Vg(0);var HQ=function(){A.call(this,"$")};t(HQ,A);var IQ=function(a){A.call(this,"ba");this.sessionId=a};t(IQ,A);var JQ=function(a){A.call(this,"V");this.id=a};t(JQ,A);var KQ=function(a){A.call(this,"W");this.sessionDescription=a};t(KQ,A);var LQ=function(a,b,c){A.call(this,"ea");this.Rg=a;this.hi=b;this.sessionId=c||null};t(LQ,A);var MQ=function(){A.call(this,"ca")};t(MQ,A);var NQ=function(a,b){A.call(this,"Z");this.a=a;this.sessionId=b};t(NQ,A);
var OQ=function(a){A.call(this,"Y");this.message=a};t(OQ,A);var PQ=function(a){B.call(this);this.b=a||!1;this.a=[]};t(PQ,B);PQ.prototype.add=function(a,b){if(null!=QQ(this,a.V(),a.getId(),a.N()))return!1;this.a.push(a);if(!m(b)||b)a.I=this;this.dispatchEvent(new RQ("fa",a));return!0};PQ.prototype.remove=function(a){return $b(this.a,a)?(a.I==this&&(a.I=null),this.dispatchEvent(new RQ("ga",a)),!0):!1};
var QQ=function(a,b,c,d){return Sb(a.a,function(a){var e=a.V()==b,g=null==c||a.getId()==c,l=null==d||this.b&&""===d||a.N()==d;!l&&this.b&&""==a.N()&&(Hb("Should never allow Source matching against empty participantId"),l=!0);return e&&g&&l},a)},RQ=function(a,b){A.call(this,a);this.source=b};t(RQ,A);var SQ=function(){B.call(this)};t(SQ,B);var TQ=function(a,b){A.call(this,a);this.a=b};t(TQ,A);TQ.prototype.N=function(){return this.a};var UQ=function(){B.call(this);this.a=new wA(this);this.l(this.a)};t(UQ,B);var VQ=function(a){this.za=a.za;this.b=a};t(VQ,VM);h=VQ.prototype;h.Ga=bN();h.He=bN();h.Ge=bN();h.Gh=bN();h.Fh=bN();h.Nd=bN();var XQ=function(a,b,c){gO.call(this,a,c,"a");this.h=b;this.g=new wA(this);this.l(this.g);this.g.listen(this.a,"C",function(a){a=a.ym;null==a||nb(a)||this.dispatchEvent(new WQ(this.h,a))})};t(XQ,gO);var WQ=function(a,b){A.call(this,"Ha");this.sessionId=a;this.url=b};t(WQ,A);var YQ=Ih("realtime.media.api.webrtc.getusermediafirefox"),ZQ=[];function $Q(a){var b=zd(),c=xc();ZQ=[].concat(k(ZQ),[{ta:c,pf:a}]);a=ZQ.reduce(function(a,b){return{audio:b.pf.audio||a.audio,video:b.pf.video||a.video}},{audio:!1,video:!1});var d=ZQ;b.mediaDevices.getUserMedia(a).then(function(a){return aR(d,a)},function(a){return bR(d,a)});return c.a}
function aR(a,b){a!==ZQ?(C(YQ,"Firefox resolved an unexpected getUserMedia() promise. This probably means that the getUserMedia() behavior has changed."),b.getTracks().forEach(function(a){return a.stop()})):(ZQ.forEach(function(a){var c=a.ta;a=a.pf;a=[].concat(k(cR(a.audio,b.getAudioTracks())),k(cR(a.video,b.getVideoTracks())));lj(a).then(function(a){return c.resolve(new MediaStream(a))},function(a){return c.reject(a)})}),b.getTracks().forEach(function(a){return a.stop()}),ZQ=[])}
function cR(a,b){return a?b.map(function(a){return a.clone()}).map(function(b){return b.applyConstraints(Da(a)?a:void 0).then(function(){return b})}):[]}function bR(a,b){a===ZQ&&(ZQ.forEach(function(a){return a.ta.reject(b)}),ZQ=[])};var dR=function(a){var b=zd();return mq&&null!=b.webkitGetUserMedia?rj(new cj(function(c,d){b.webkitGetUserMedia(a,c,d)}),function(a){var b=Error(a.message);b.name=a.name;throw b;}):iq&&b.mediaDevices&&b.mediaDevices.getUserMedia?$Q(a):hj("Missing getUserMedia API.")};var eR=function(a){this.Tb=Ib(a.a);this.deviceId=a.g};eR.prototype.equals=function(a){return a===this?!0:a?this.Tb===a.Tb&&this.deviceId===a.deviceId:!1};eR.prototype.toString=function(){return"MediaSettings(mute="+this.Tb+", deviceId="+this.deviceId+")"};eR.prototype.f=function(){var a={};mq?(a.optional=[],a.optional.push({sourceId:this.deviceId})):iq&&(a.deviceId=this.deviceId);return a};eR.prototype.g=function(){return new fR(this)};var fR=function(a){this.a=a?a.Tb:null;this.g=a?a.deviceId:null};
fR.prototype.T=function(){return new eR(this)};var gR=function(a){this.a=new DA(a)};gR.prototype.error=function(a){var b=this.a;Ei(b.j,a);mA(b.a,b.f,"Error("+b.b+"): "+a,10)};var hR=function(a,b){EA(a.a,b)};gR.prototype.info=function(a){this.a.info(a)};var iR=function(a,b){a=a.a;Fi(a.j,b);mA(a.a,a.f,a.b+": "+b,5)};var jR=function(a,b){hO.call(this,a);this.B=new gR("realtime.media.api.webrtc.Capture");this.settings=b;this.m=this.b=this.H=null;this.f=new Set;this.w=new Map;this.g=this.s=!1;this.R=null;this.ea=0};qa(jR,hO);jR.prototype.W=function(){kR(this);this.f.clear();this.R=null;hO.prototype.W.call(this)};jR.prototype.toString=function(){return"Capture(source="+this.Z()+" muted="+this.s+" "+("paused="+this.g+" deviceState="+this.a+" ")+("stream="+(this.b?this.b.id:null)+" ")+("streamUrl="+this.m+")")};
jR.prototype.F=function(a){a&&[].concat(k(a.getAudioTracks()),k(a.getVideoTracks())).forEach(function(a){pi(a);a.stop()})};var kR=function(a){var b=void 0===b?!0:b;a.w.forEach(a.F,a);b&&a.w.clear();a.F(a.b);a.b=null;a.m&&(window.URL.revokeObjectURL(a.m),a.m=null)},mR=function(a){lR(a,"Starting media.");a.h("re");a.A().then(Vg(a))};jR.prototype.h=function(a){hO.prototype.h.call(this,a);nR(this)};jR.prototype.getDeviceId=function(){return this.settings.deviceId};jR.prototype.ba=function(){return this.R};
jR.prototype.nb=function(a){return this.b?this.w.get(a)||null:null};var oR=function(a,b,c){return new XQ(a,b,c)};h=jR.prototype;h.gi=function(a){lR(this,"Registering sessionId="+a+".");0===this.f.size&&"st"===this.a&&mR(this);this.f.add(a);this.b&&this.w.set(a,this.b.clone())};h.hg=function(a){lR(this,"Unregistering sessionId="+a+".");this.f.delete(a);0>=this.f.size&&this.stop();this.F(this.nb(a));this.w.delete(a)};
h.stop=function(){lR(this,"Stopping.");kR(this);this.f.clear();this.dispatchEvent(new pR(this.m));this.h("st");return!0};h.Tb=function(){if("st"==this.a)return!1;qR(this,!0);return!0};h.Yc=function(){switch(this.a){case "nd":case "ad":case "fa":return!0;default:return this.s}};var qR=function(a,b){lR(a,"Setting mute state to mute="+b+".");a.s=b;b=a.settings.g();b.a=a.s;a.settings=b.T();a.s?kR(a):a.A();nR(a);a.dispatchEvent("A")};
jR.prototype.pause=function(){this.g||"st"==this.a||(lR(this,"Pausing."),this.g=!0,kR(this))};jR.prototype.resume=function(){this.g&&"st"!=this.a&&(lR(this,"Resuming."),this.g=!1,this.A())};var nR=function(a){var b=a.Z().getState(),c=a.Yc()?"mu":"li";b!==c&&(lR(a,"Update source state from "+b+" to "+c),a.Z().Ma(a.Yc()?"mu":"li"))};
jR.prototype.A=function(){var a=this;"fa"!=this.a&&"ad"!=this.a||this.h("re");if("re"!=this.a)return lR(this,"Skipping update usermedia while device in "+("state="+this.a+".")),gj();if(this.b&&this.H&&this.H.equals(this.settings))return lR(this,"Skipping update usermedia  because settings were unchanged."),gj();if(this.s)return lR(this,"Skipping update usermedia because capture is muted."),gj();if(this.g)return lR(this,"Skipping update usermedia because capture is paused."),gj();var b=rR(this);if(!b)return this.B.error("["+
this+"] Attempting to update usermedia with null constraints."),hj("Attempting to update usermedia with null constraints.");if(wc(b))return lR(this,"Skipping update usermedia with empty constraints."),gj();var c=this.settings;this.H=this.settings;var d=this.ea++;lR(this,"Attempting update usermedia with id="+d+" settings="+this.settings+("constriants="+sa.JSON.stringify(b)+"."));return dR(b).then(function(b){a.g||!a.settings.equals(c)?(lR(a,"During update usermedia with id="+d+" capture settings "+
("changed to "+a.settings+".")),a.F(b)):(lR(a,"Update usermedia success with id="+d+"."),sR(a,b))},function(b){hR(a.B,"["+a+"] Error during update usermedia call with id=${id}: ${e}.");!b||"PermissionDeniedError"!==b.name&&"PermissionDismissedError"!==b.name?a.h("fa"):a.h("ad");throw b;})};
var rR=function(a){if(null==a.settings.deviceId||a.settings.deviceId===nO.id)return lR(a,"Return empty user media constraints  with null deviceId."),{};var b={audio:!1,video:!1},c=a.Z().V();switch(c){case "a":b.audio=a.settings.f();break;case "v":b.video=a.settings.f();break;default:return a.B.error("["+a+"] "+("Invalid mediaType="+c+".")),null}return b},sR=function(a,b){lR(a,"getUserMedia success for stream="+b.id+".");0==b.getAudioTracks().length&&0==b.getVideoTracks().length?hR(a.B,"["+a+"] "+
("No media tracks for stream="+b.id+".")):(kR(a),a.b=b,a.m=window.URL.createObjectURL(b),[].concat(k(a.b.getAudioTracks()),k(a.b.getVideoTracks())).forEach(function(b){fi(b,"ended",a.ma,void 0,a);fi(b,["mute","unmute"],a.na,void 0,a)}),a.f.forEach(function(b){a.w.set(b,a.b.clone())}),lR(a,"Stream changed."),a.dispatchEvent(new pR(a.m)));gj()};jR.prototype.ma=function(){this.dispatchEvent("x")};jR.prototype.na=function(){this.dispatchEvent("z")};
var lR=function(a,b){a.B.info("["+a+"] "+b)},pR=function(a){A.call(this,"C");this.ym=a};qa(pR,A);var uR=function(a){if(!a.oa){var b;for(b=a.constructor;b&&!b.bc;)b=b.aa&&b.aa.constructor;b.bc.eh||(b.bc.eh=$M(b));b=new b.bc.eh(a);a.oa=b;a.tf||(a.tf=tR)}},tR=function(a){return this.oa.tf(a)};var vR=function(){uR(this)};xa(vR);var wR=function(a,b){a.oa.Sf(b)},xR=function(a,b){return a.oa.Xh(b)},yR=function(a,b,c){return a.oa.Yh(b,c)},zR=function(a,b){return a.oa.Rf(b)},AR=function(){};t(AR,VM);WM(AR,vR);h=AR.prototype;h.Sf=bN();h.Tf=bN();h.Xh=bN();h.Yh=bN();h.Rf=bN();h.Zh=bN();var BR=function(){this.b=new gR("realtime.media.api.webrtc.ExtensionDelegate")};t(BR,AR);XM(BR,AR,1);BR.prototype.Sf=function(a){return wz(function(b){a(b.value)})};BR.prototype.Tf=function(){return vA()};
var CR=function(a,b,c){var d=vz({method:"logging.setMetadata",metaData:[{key:"sessionId",value:b},{key:"url",value:window.location.href}]}).then(function(){iR(this.b,"Extension logging setMetadata succeeded for "+b)},function(a){iR(this.b,"Extension loggings setMetadata failed for session: "+b+(", error: "+a.value))},a);c&&rj(d,function(){return CR(this,b,!1)},a);return d};BR.prototype.Xh=function(a){return CR(this,a,!0).then(function(){return DR(this,!0)},void 0,this)};
BR.prototype.Yh=function(a,b){if(b)return vz({method:"logging.stopAndUpload"}).then(function(a){this.b.info("logging.stopAndUpload succeeded with result="+Bi(a.value))},function(a){hR(this.b,"logging.stopAndUpload failed with error="+a.value);throw a;},this);this.Rf(!1);return rj(vz({method:"logging.stop"}).then(function(){this.b.info("logging.stop succeeded");if(a)return(0<=Cb(pq,42)?vz({method:"logging.store",logId:a}):vz({method:"logging.stop"})).then()},void 0,this),function(a){hR(this.b,"logging.stop failed with error="+
a);throw a;},this)};BR.prototype.Rf=function(a){return a?vz({method:"logging.startRtpDump",incoming:!0,outgoing:!0}).then(function(){this.b.info("logging.startRtpDump succeeded")},function(a){this.b.info("logging.startRtpDump failed with error="+a);throw a;},this):vz({method:"logging.stopRtpDump",incoming:!0,outgoing:!0}).then(function(){this.b.info("logging.stopRtpDump succeeded")},function(a){this.b.info("logging.stopRtpDump failed with error="+a);throw a;},this)};
var DR=function(a,b){var c=vz({method:"logging.start"}).then();b&&rj(c,function(){return DR(this,!1)},a);return c};BR.prototype.Zh=function(){return vz({method:"logging.uploadOnRenderClose"}).then()};var ER=new pB("FolmWb","dlh"),FR=new pB("EitxU","hl"),GR=new pB("T3bcCc",void 0,[FR]),HR=new pB("TjR1Nb","ma",[iN]),IR=new pB("X8Krae","pli");var KR=function(a){pN(a,GR)||a.registerService(GR,JR.ja())},JR=function(){this.j=Ih("realtime.analytics.ImpressionLogger")};xa(JR);JR.prototype.a=function(a,b,c,d,e,f,g){a="Impression: "+a;b&&(a+=" SID: "+b);c&&(a+=" PLID: "+c);d&&(a+=" HID: "+d);e&&(a+=" TS: "+e);f&&(a+=" XN: "+f);g&&(a+=" XS: "+g);D(this.j,a)};JR.prototype.g=function(a,b,c,d,e,f,g){this.a(a,b,c,d,e,f,g)};var LR=function(){if(Jd){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(fd))?a[1]:"0"}return Id?(a=/10[_.][0-9_.]+/,(a=a.exec(fd))?a[0].replace(/_/g,"."):"10"):Md?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(fd))?a[1]:""):Nd||Od||Pd?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(fd))?a[1].replace(/_/g,"."):""):""}();var MR=function(){this.b=-1};var NR=function(){this.b=64;this.a=[];this.h=[];this.m=[];this.g=[];this.g[0]=128;for(var a=1;a<this.b;++a)this.g[a]=0;this.l=this.f=0;this.reset()};t(NR,MR);NR.prototype.reset=function(){this.a[0]=1732584193;this.a[1]=4023233417;this.a[2]=2562383102;this.a[3]=271733878;this.a[4]=3285377520;this.l=this.f=0};
var OR=function(a,b,c){c||(c=0);var d=a.m;if(ta(b))for(var e=0;16>e;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.a[0];c=a.a[1];var g=a.a[2],l=a.a[3],r=a.a[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=l^c&(g^l);var u=1518500249}else f=c^g^l,u=1859775393;else 60>e?(f=c&g|l&(c|g),u=2400959708):(f=c^g^
l,u=3395469782);f=(b<<5|b>>>27)+f+r+u+d[e]&4294967295;r=l;l=g;g=(c<<30|c>>>2)&4294967295;c=b;b=f}a.a[0]=a.a[0]+b&4294967295;a.a[1]=a.a[1]+c&4294967295;a.a[2]=a.a[2]+g&4294967295;a.a[3]=a.a[3]+l&4294967295;a.a[4]=a.a[4]+r&4294967295};
NR.prototype.update=function(a,b){if(null!=a){m(b)||(b=a.length);for(var c=b-this.b,d=0,e=this.h,f=this.f;d<b;){if(0==f)for(;d<=c;)OR(this,a,d),d+=this.b;if(ta(a))for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.b){OR(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.b){OR(this,e);f=0;break}}this.f=f;this.l+=b}};
NR.prototype.digest=function(){var a=[],b=8*this.l;56>this.f?this.update(this.g,56-this.f):this.update(this.g,this.b-(this.f-56));for(var c=this.b-1;56<=c;c--)this.h[c]=b&255,b/=256;OR(this,this.h);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.a[c]>>d&255,++b;return a};var PR=function(a,b){var c=window.crypto||window.msCrypto;c&&c.getRandomValues&&!b&&(this.Hi=!0,this.Ad=Infinity);a&&160>a&&a>this.Ad&&(b=this.De,c=this.Ad,this.De="",this.Ad=a,a=Math.max(0,c),this.Hi||(b=this.Jf+b,c=new NR,c.update(b),b=String.fromCharCode.apply(String,c.digest()),this.Je+=a,this.Je>=this.Ad?(c.reset(),c.update("SEED_SALT:"+b+this.De),this.De=String.fromCharCode.apply(String,c.digest()),this.Jf="",this.Je=0):this.Jf=b))};h=PR.prototype;h.Hi=!1;h.De="";h.Jf="";h.Je=0;h.Ad=-1;var RR=function(){this.f=new gR("realtime.media.api.webrtc.Utils");this.b=new eA;new PR(16,!1);this.a={};var a=p(this.g,this);var b=null;if(this.b.isAvailable()){var c=this.b.get("scp"),d=null!=c;try{b=JSON.parse(c)}catch(e){d=!1}!d&&a&&(b=a())}else this.f.error("Error in retrieving cpu info from local storage.");if(a=b)this.a=a;QR(this)},SR=new Ni({neon:1,sse2:2,ssse3:4,sse4_1:8,sse4_2:16,avx:32}),TR=function(a,b){wR(vR.ja(),p(function(a){a&&b&&b(a)},a))},UR=function(a,b){if(null==b)return hR(a.f,
"Cannot get cpuFlags from null."),-1;if(a=b.features){var c=0;x(a,function(a){c|=SR.get(a,0)});return c}return b.cpuHasSSE2?2:-1},QR=function(a){TR(a,p(function(a){a&&(this.a=a,this.b.isAvailable()?this.b.set("scp",Bi(a)):this.f.error("Error in saving scp to local storage."))},a))};RR.prototype.g=function(){return-1!=Hd.indexOf("armv7l")?{archName:"armv7l",modelName:"Unknown ARM device",numOfProcessors:2}:{archName:"x86",modelName:"Unknown x86 device",numOfProcessors:4}};var VR=function(a,b,c){try{return!pN(a,b)&&c&&c(a),qN(a,b)?gj(sN(a,b)):hj(b+" was not registered on the AppContext")}catch(d){return hj("Exception getting service ("+b+")\n"+d)}};var WR=function(a){this.a=new gR("realtime.media.api.webrtc.LoggingManager");this.B=VR(a,GR,KR);this.u=lA.ja();this.h=null;this.g=new Set;this.m=new Set;this.f=!1;this.v=this.l=this.b=null;this.A=this.w=!1};WR.prototype.Ga=function(a){var b=this;this.a.info("Logging manager initialized with userId="+a);if(this.h=a)a=pA(this.u,a),null!=a&&tz(a,function(a){0<a&&XR(b,2679)});return gj(7)};
var YR=function(a,b,c){a.a.info("enableRtpHeaderDump called with sessionId="+b+(" and enable="+c));a.A==c?a.a.info("Ignoring enableRtpHeaderDump call for sessionId="+b+(" as header dump already in state with enable="+c)):a.f?zR(vR.ja(),c).then(function(){a.a.info("RTP header dump succeeded for sessionId="+b+(" and enable="+c));a.A=c},function(d){hR(a.a,"Error setting RTP header dump for sessionId="+b+(" and enable="+c+". Error="+d.value));throw d;}):a.b?(a.a.info("Delaying rtp header dump request until native WebRTC logging has started."),
a.b.then(function(){return YR(a,b,c)})):hR(a.a,"enableRtpHeaderDump called when native logging is not active or pending")},$R=function(a,b){if(a.g.has(b)){a.a.info("Stopping logging for sessionId="+b);a.g.delete(b);XR(a,3221);var c=a.m.has(b);a.m.delete(b);c?(a.a.info("Uploading logs for "+b),XR(a,2494),a.h?(a.a.info("################# Save #################"),c=oA(a.u,b,a.h).then(function(){XR(a,2495)},function(){XR(a,2496)})):(hR(a.a,"Failed to upload beacause of missing user identifier."),c=gj())):
c=gj();var d=ZR(a);qj(lj([c,d]),function(){var a=lA.ja(),c=new Date;mA(a,b,"### Stop ["+c.toString()+"] ### "+b);mA(a,b,"Current time is "+c.toUTCString());delete a.a[b]})}else a.a.info("Skipping stopLogging call for sessionId="+b+" as logging is not active for this session.")},bS=function(a,b){a.f||a.b||(a.a.info("Requesting native WebRTC logging for sessionId="+b),a.b=qj(xR(vR.ja(),b).then(function(){a.f=!0;a.v=b;a.a.info("Native WebRTC logging started for sessionId="+b)},function(c){var d=rA.get(c.status);
d&&aS(a,d);hR(a.a,"Native WebRTC logging failed to start for"+("sessionId="+b+" , error: "+c.value));throw c;}),function(){a.b=null}),a.m.has(b)&&a.b.then(function(){a.s()}))},ZR=function(a){if(a.l)return a.l;if(!a.f)return gj();if(a.b)return a.b.then(function(){ZR(a)});if(0==!a.g.size)return a.a.info("Ignoring native WebRTC logging stop request due to active session ids="+a.g.values()),gj();a.a.info("Stopping native WebRTC logging.");a.l=qj(yR(vR.ja(),a.v,a.w).then(function(){a.a.info("Request to stop native WebRTC logging succeeded")},
function(b){hR(a.a,"Request to stop native WebRTC logging failed with error="+b.value);throw b;}),function(){a.f=!1;a.v=null;a.l=null});return a.l};WR.prototype.s=function(){var a=this;this.w||(this.a.info("Requesting upload of the native WebRTC logs"),this.w=!0,vR.ja().oa.Zh().then(function(){a.a.info("Native uploadLogOnRenderClose succeeded.")},function(b){hR(a.a,"Native uploadLogOnRenderClose failed witherror="+b.value);throw b;}))};
var XR=function(a,b){a.B.then(function(a){a.a(b)})},aS=function(a,b){a.B.then(function(a){a.g(b)})};var cS=function(a,b,c){A.call(this,"Ia");this.sessionId=a;c.clone()};qa(cS,A);var dS={host:"LOCAL",srflx:"STUN",relay:"RELAY",prflx:"PEER_REFLEX"};var eS={audio:"a",video:"v",data:"d",application:"d"};var fS=function(a,b){this.a=a;this.b=b};ba.Object.defineProperties(fS.prototype,{key:{configurable:!0,enumerable:!0,get:function(){return this.a}},value:{configurable:!0,enumerable:!0,get:function(){return this.b}}});var gS=function(a,b,c,d){this.b=a;this.sa=b;this.a=c;this.f=d};ba.Object.defineProperties(gS.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this.b}},port:{configurable:!0,enumerable:!0,get:function(){return this.sa}},protocol:{configurable:!0,enumerable:!0,get:function(){return this.a}}});var hS=function(a,b){this.g=a;ta(b)?(this.a=b,"m"===a?(a=b.split(" "),this.f=new gS(a[0],a[1],a[2],a.slice(3))):"a"===a&&(a=Db(b,":",1),b=a[0],this.b=1===a.length?new fS(b,null):new fS(b,a[1]))):b instanceof gS?(this.f=b,this.a=b.b+" "+b.sa+" "+b.a+" "+b.f.join(" ")):b instanceof fS&&(this.b=b,this.a=b.b?b.a+":"+b.b:b.a)};hS.prototype.toString=function(){return this.Ee+"="+this.value};
ba.Object.defineProperties(hS.prototype,{Ee:{configurable:!0,enumerable:!0,get:function(){return this.g}},value:{configurable:!0,enumerable:!0,get:function(){return this.a}},l:{configurable:!0,enumerable:!0,get:function(){return this.b}},h:{configurable:!0,enumerable:!0,get:function(){return this.f}}});var jS=function(a){this.b=a;this.a=new Map;iS(this)},iS=function(a){var b=new Map;a.b.forEach(function(a){if("a"===a.Ee){a=a.l;var c=a.key,e=b.get(c);e||(e=[],b.set(c,e));a.value?e.push(a.value):e.push("")}});b.forEach(function(b,d){a.a.set(d,new kS(d,b," ",!1))})};jS.prototype.get=function(a){return this.a.get(a)||new kS(a,[]," ",!0)};
var kS=function(a,b,c,d){d=void 0===d?!1:d;this.m=a;this.g=b;this.v=void 0===c?":":c;this.f=(this.h=d)?new Map:null;this.l=d?[]:null},lS=function(a,b){return a.b?a:b};kS.prototype.forEach=function(a){mS(this);this.f.forEach(a)};kS.prototype.get=function(a){mS(this);return this.f.get(a)||new kS(a,[],":",!0)};var mS=function(a){if(null===a.f){var b=new Map;a.g.forEach(function(c){c=Db(c,a.v,1);var d=c[0],e=b.get(d)||[];b.set(d,[].concat(k(e),[c[1]||""]))});a.f=nS(b);a.l=Array.from(a.f.keys())}};
ba.Object.defineProperties(kS.prototype,{u:{configurable:!0,enumerable:!0,get:function(){return this.g}},a:{configurable:!0,enumerable:!0,get:function(){return this.h||0===this.g.length?null:this.g[0]}},b:{configurable:!0,enumerable:!0,get:function(){return!this.h}},key:{configurable:!0,enumerable:!0,get:function(){return this.m}},keys:{configurable:!0,enumerable:!0,get:function(){mS(this);return this.l}}});function nS(a){var b=new Map;a.forEach(function(a,d){b.set(d,new kS(d,a))});return b};var oS=function(a){this.v=a;this.u=a[0];this.h=this.a=null};
ba.Object.defineProperties(oS.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return this.v}},b:{configurable:!0,enumerable:!0,get:function(){return this.u.h}},mediaType:{configurable:!0,enumerable:!0,get:function(){return this.b.type}},f:{configurable:!0,enumerable:!0,get:function(){if(!this.a){var a=this.l;a.get("sendonly").b?this.a="sendonly":a.get("recvonly").b?this.a="recvonly":a.get("inactive").b?this.a="inactive":this.a="sendrecv"}return this.a}},Jd:{configurable:!0,enumerable:!0,
get:function(){return"sendrecv"===this.f||"sendonly"===this.f}},m:{configurable:!0,enumerable:!0,get:function(){return"sendrecv"===this.f||"recvonly"===this.f}},l:{configurable:!0,enumerable:!0,get:function(){this.h||(this.h=new jS(this.g));return this.h}}});var pS=function(a){this.b=a};ba.Object.defineProperties(pS.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return this.b}}});var qS=function(a,b){this.a=a;this.b=b},rS=function(a){return a.a.a.concat.apply(a.a.a,[].concat(k(a.b.map(function(a){return a.g})))).map(function(a){return a.Ee+"="+a.value}).join("\r\n")+"\r\n"},sS=function(a){function b(){c?d.push(new oS(e)):c=new pS(e)}var c=null,d=[],e=[];a.split(/\r?\n/).forEach(function(a){nb(a)||(a=Db(a,"=",1),a=new hS(a[0],a[1]),"m"===a.Ee&&(b(),e=[]),e.push(a))});b();return new qS(c,d)};
ba.Object.defineProperties(qS.prototype,{session:{configurable:!0,enumerable:!0,get:function(){return this.a}},media:{configurable:!0,enumerable:!0,get:function(){return this.b}}});var tS=function(a,b){b=void 0===b?{}:b;this.b=a;this.u=b;this.g=[];this.w=new Set;this.m="ICE";this.h="full";this.f=null},xS=function(a){if(a.f)return a.f;var b=Math.pow(2,53)*Math.random(),c=[];c.push(new hS("v","0"));c.push(new hS("o","- "+b+" 2 IN IP4 127.0.0.1"));c.push(new hS("s","-"));c.push(new hS("t","0 0"));b=mq?uS(a):vS(a);0<a.g.length&&c.push(a.a.apply(a,[].concat(["group","BUNDLE"],k(a.g))));c.push(a.a("ice-options","trickle"));c.push.apply(c,[].concat(k(wS(a,a.m,a.h))));c.push(a.a("msid-semantic",
"WMS","*"));a.f=new qS(new pS(c),b);return a.f},uS=function(a){return[a.b.b,a.b.a,a.b.f].filter(function(a){return null!=a}).map(function(b){var c=kP(b);return yS(a,b.V(),c,[],!0,!0)})},vS=function(a){var b=zS(a.b),c=a.l?a.l.media:[],d=a.s?a.s.media:[],e=[];d.forEach(function(a){e.push({type:eS[a.mediaType]})});var f=AS(d),g=BS(d);if(a.l){d=a.l;for(var l=e.length;l<d.media.length;l++){var r=d.media[l],u=eS[r.mediaType];e.push({type:u});r.m&&(r=g.get(u)||[],g.set(u,[].concat(k(r),[l])))}}b.forEach(function(a){var b=
a.type,c=a.stream;if(c&&c.b){var d=f.get(c.b);if(void 0!==d){e[d].stream=c;return}}(b=g.get(b))&&0<b.length?(a=b.shift(),e[a].stream=c):e.push({type:a.type,stream:a.stream})});var z=!1,I=!1,G=!1,ha=[];e.forEach(function(b,d){var e=!1,f=!1,g=b.type;b=b.stream;var l=null;"a"!==g||z||(z=f=!0);"v"!==g||I||(I=f=!0,l=a.u.Em);"d"!==g||G||(G=f=e=!0);c&&c[d]&&c[d].Jd&&(f=!0);d=[];b&&(e=!0,d=[b]);ha.push(yS(a,g,d,l||[],e,f))});return ha},zS=function(a){var b=[];a=[a.b,a.a,a.f];for(var c=Math.max.apply(Math,
[].concat([1],k(a.map(function(a){return kP(a).length})))),d={Wc:0};d.Wc<c;d={Wc:d.Wc},d.Wc++)a.forEach(function(a){return function(c){var d=kP(c)[a.Wc];c=c.V();(d||0===a.Wc)&&b.push({type:c,stream:d})}}(d));return b},CS=function(a,b){a=a.b;switch(b){case "a":return a.b;case "v":return a.a;case "d":return a.f;default:Hb()}},DS=function(a,b){a=[new hS("m",new gS(Cc(eS)[b],"0","RTP/SAVPF",["0"])),new hS("c","IN IP6 ::"),a.a("inactive")];return new oS(a)},yS=function(a,b,c,d,e,f){var g=CS(a,b),l=a.b.g,
r=y(a.b.h);if(!e&&!f)return DS(a,b);var u=[],z=Cc(eS)[b],I=UO(g);a.g.includes(I)||a.g.push(I);var G=VO(g),ha=g.f,La="RTP/SAVPF";l&&l.a&&(La=ha?"DTLS/SCTP":"UDP/TLS/RTP/SAVPF");var W="DTLS/SCTP"===La?[ha.Ba()]:G.map(function(a){return a.Mb.toString()});u.push(new hS("m",new gS(z,"9",La,W)));z="inactive";e&&f?z="sendrecv":f?z="recvonly":e&&(z="sendonly");u.push.apply(u,[].concat(k(ES(a,I,z))));u.push.apply(u,[].concat(k(FS(a,l))));u.push.apply(u,[].concat(k(GS(a,r))));u.push.apply(u,[].concat(k(HS(a,
g))));u.push.apply(u,[].concat(k(IS(a,G,b,JS(y(g.a))))));(b=g.b)&&u.push.apply(u,[].concat(k(KS(a,0<G.length?G[0].Mb:null,b))));0<d.length&&u.push.apply(u,[].concat(k(LS(a,"recv",d))));u.push.apply(u,[].concat(k(MS(a,ha))));u.push.apply(u,[].concat(k(NS(a,c))));return new oS(u)};tS.prototype.a=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return new hS("a",new fS(a,c.join(" ")))};
var ES=function(a,b,c){var d=[];d.push(new hS("c","IN IP6 ::"));d.push(a.a("rtcp","9","IN IP6 ::"));d.push(a.a("rtcp-mux"));d.push(a.a("mid",b));d.push(a.a(c));a=Nb(a.u.Hm||[],function(a){return this.a("x-google-flag",a)},a);d.push.apply(d,[].concat(k(a)));return d},FS=function(a,b){var c=b&&b.b||"123456789012345678901234",d=[];d.push(a.a("ice-ufrag",b&&b.f||"1234567890123456"),a.a("ice-pwd",c));b&&(a.m=b.ub(),a.h=b.h);d.push.apply(d,[].concat(k(wS(a,a.m,a.h))));b&&b.a&&(d.push(a.a("fingerprint",
b.a)),d.push(a.a("setup",b.l||"actpass")));return d},wS=function(a,b,c){if("ICE"==b){if("lite"==c)return[a.a("ice-lite")]}else Hb("google-ice is no longer supported.");return[]},GS=function(a,b){var c;0<b.length&&(c=b[0]);return null!=c?[a.a("crypto",c.b.toString(),c.a,c.f)]:[]},HS=function(a,b){return y(b.a).map(function(b){var c=b.getId().toString();b.a.includes("rtp-stream-id")&&(c+="/recvonly");return a.a("extmap",c,b.a)})},IS=function(a,b,c,d){var e=[];b.forEach(function(b){var f=b.Mb.toString(),
l=b.getName(),r=b.b;if("v"===c||"d"===c)r=9E4;l=l+"/"+r;"a"===c&&1<b.a&&(l+="/"+b.a);e.push(a.a("rtpmap",f,l));l=y(b.hd);if(0<l.length){var u=[];l.forEach(function(a){a.getKey()&&a.Ra()&&u.push(a.getKey()+"="+a.Ra())});l="";0<u.length&&(l=u.join("; "));e.push(a.a("fmtp",f,l))}if(xO(b,"vp8")||xO(b,"vp9")||xO(b,"h264"))e.push(a.a("rtcp-fb",f,"ccm fir"),a.a("rtcp-fb",f,"nack"),a.a("rtcp-fb",f,"goog-remb")),d&&e.push(a.a("rtcp-fb",f,"transport-cc"))});return e},KS=function(a,b,c){var d=[],e=c.a;-1!=e&&
d.push(new hS("b","AS:"+e));if(!mq||null==b)return d;e=c.f;-1!=e&&d.push(a.a("fmtp",b.toString(),"x-google-start-bitrate="+e));c=c.b;-1!=c&&d.push(a.a("fmtp",b.toString(),"x-google-min-bitrate="+c));return d},MS=function(a,b){return b?[a.a("sctpmap",b.Ba().toString(),b.getName(),b.a.toString())]:[]},NS=function(a,b){var c=[],d=iq&&1===b.length;b.forEach(function(b){if(!nb(yb(b.xc))){var e=b.ga(),g=b.xc,l=b.b?b.b:g;d&&c.push(a.a("msid",g+" "+l));a.w.add(g);var r=y(b.f).map(function(b){return a.a.apply(a,
[].concat(["ssrc-group",b.a],k(b.mb())))});c.push.apply(c,[].concat(k(r)));if(b.a&&0<y(b.a.a).length){var u=b.a;r=u.Jd?"send":"recv";u=y(u.a).reverse();c.push.apply(c,[].concat(k(LS(a,r,u))))}b.mb().forEach(function(b){c.push(a.a("ssrc",b.toString(),"cname:"+e));c.push(a.a("ssrc",b.toString(),"msid:"+g+" "+l))})}});return c},LS=function(a,b,c){var d=c.map(function(c){return a.a("rid",c,b)});return 0<d.length?(c=a.a("simulcast",b,"rid="+c.join(";")),[].concat(k(d),[c])):[]};
ba.Object.defineProperties(tS.prototype,{v:{configurable:!0,enumerable:!0,set:function(a){this.s=a;this.f=null}},A:{configurable:!0,enumerable:!0,set:function(a){this.l=a;this.f=null}}});function JS(a){return mq&&0<=Cb(pq,59)&&a.some(function(a){return a.a.includes("http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions")})}function AS(a){var b=new Map;a.forEach(function(a,d){a=a.l.get("msid");a.b&&(a=ja(a.a.split(" ")),a.next(),a=a.next().value,b.set(a,d))});return b}
function BS(a){var b=new Map;a.forEach(function(a,d){if(!a.l.get("msid").b){a=eS[a.mediaType];var c=b.get(a)||[];b.set(a,[].concat(k(c),[d]))}});return b};function OS(a){var b=a.nc,c=a.wc,d=a.Xc,e=a.Ba(),f=a.Ud,g=a.Vd,l=a.V(),r=a.Rc;a=[a.Bd,b,c.toLowerCase(),a.fd,d,e,"typ",Cc(dS)[l]];switch(l){case "LOCAL":"TCP"==c&&a.push("tcptyp","active");break;case "STUN":case "RELAY":case "PEER_REFLEX":f&&g&&a.push("raddr",f,"rport",g);break;default:Hb("Unexpected candidate type: "+l)}a.push("generation",r);return new RTCIceCandidate({sdpMLineIndex:0,candidate:"candidate:"+a.join(" ")})};var PS=function(a){this.b=a;this.l=this.h=this.m=null;this.s=this.A=!1;this.w=[];this.a=null;this.B=[];this.u=[];this.I=new Map;this.g=this.f=this.v=null},VS=function(a,b){b=new jS(b);var c=b.get("ice-ufrag").a;null!=c&&(a.h=c);c=b.get("ice-pwd").a;null!=c&&(a.l=c);c=b.get("fingerprint").a;null!=c&&(a.a=c);QS(a,b);if(a.b){c=b.get("sendonly").b;var d=b.get("recvonly").b,e=b.get("sendrecv").b;if(c||e)a.A=!0;if(d||e)a.s=!0;c=b.get("mid").a;null!=c&&(a.m=c);RS(a,b,a.b);a.f=b.get("rid").keys;if(c=b.get("simulcast").a)if(d=
ja(Db(c.trim()," ",1)),c=d.next().value,d=d.next().value,"send"===c&&d&&(c=ja(Db(d,"=",1)),c.next(),c=c.next().value))a.g=c.split(";");SS(a,b,a.b);TS(a,b,a.b);US(a,b)}},QS=function(a,b){b.get("crypto").forEach(function(b,d){var c=ja(Db(b.a," ",2));b=c.next().value;var f=c.next().value;c=c.next().value;var g=new GO;g.g=parseInt(d,10);g.f=b;g.a=f;g.b=c||"";d=g.T();a.w.push(d)})},RS=function(a,b,c){b.get("extmap").forEach(function(b,e){b=b.a;e=ja(Db(e,"/",2));var d=e.next().value;e.next();e=MO(new LO,
parseInt(d,10));e.b=b;e.a=c;b=e.T();a.B.push(b)})},SS=function(a,b,c){var d=new Map;b.get("fmtp").forEach(function(a,b){a=a.a.split(";").map(function(a){a=Db(a,"=",1);if(2===a.length)return uO(tO(a[0]),a[1]).T()}).filter(function(a){return void 0!==a});d.set(parseInt(b,10),a)});b.get("rtpmap").forEach(function(b,f){f=parseInt(f,10);var e=b.a.split("/");b=e[0];var l=parseInt(e[1],10);e=2<e.length?parseInt(e[2],10):1;b=DO(CO(BO(AO(zO(new yO,c),f),b),l),e);l=d.get(f)||[];b.a=y(l);b=b.T();d.delete(f);
a.u.push(b)})},TS=function(a,b,c){var d=b.get("msid"),e=a.I,f=new Set;b.get("ssrc").forEach(function(b,g){g=parseInt(g,10);var l=b.get("cname").a;b=lS(b.get("msid"),d);f.add(g);if(b.b){b=ja(Db(b.a," ",1));var r=b.next().value,I=b.next().value;b=e.get(r);b||(b=new TN,aO(XN($N(UN(b,c),r),I),I),e.set(r,b));l&&WN(b,l);a.f&&0<a.f.length&&(l=[],a.g&&0<a.g.length?(a.g.forEach(function(b){return a.f.includes(b)}),l=a.g.reverse()):l=a.f,l=IN(new HN,l).T(),dO(b,l));cO(b,g)}});b=b.get("ssrc-group").u.map(function(a){var b=
a.split(" ");a=b[0];b=b.slice(1).map(function(a){return parseInt(a,10)});b.forEach(function(a){return f.has(a)});return MN(LN(new KN,a),b).T()});var g=new Map;b.forEach(function(a){a.mb().forEach(function(b){return g.set(b,[].concat(k(g.get(b)||[]),[a]))})});e.forEach(function(a){var b=new Set;a.mb().forEach(function(a){(g.get(a)||[]).forEach(function(a){return b.add(a)})});eO(a,Array.from(b))})},US=function(a,b){b.get("sctpmap").forEach(function(b,d){d=parseInt(d,10);var c=ja(b.a.split(" "));b=c.next().value;
c=c.next().value;0!==d&&"rejected"!==b&&(c=parseInt(c,10),a.v=SO(RO(QO(new PO,d),b),c).T())})},XS=function(a,b){var c=b.g||new qP("ICE","","");a.h&&a.l&&(c=zc(c),c.f=a.h,c=zc(c),c.b=a.l);a.a&&(c=zc(c),c.a=a.a);b=AP(zP(b,c),[].concat(k(y(b.h)),k(a.w)));if(a.b)switch(c=a.b,a=WS(a,c),c){case "a":b=xP(b,a);break;case "v":b=tP(b,a);break;case "d":b=yP(b,a)}return b},WS=function(a,b){var c=Array.from(a.I.values()).map(function(a){return a.T()});b=aP(YO(hP(gP(new TO(b,a.u,a.B),a.A),a.s),a.u),c);a.m&&(b=
bP(b,a.m));a.v&&(b=ZO(b,a.v));return b};function YS(a){a=a.trim().split(" ");var b=a[0].split(":")[1],c=parseInt(a[1],10),d=a[2].toUpperCase(),e=parseInt(a[3],10),f=a[4],g=parseInt(a[5],10),l=dS[a[7]],r;a.forEach(function(a,b){"generation"===a&&(r=b+1)});switch(l){case "STUN":case "RELAY":case "PEER_REFLEX":var u=a[9];var z=parseInt(a[11],10)}var I=0;r&&(I=parseInt(a[r],10));return new qO(c,e,l,d,f,g,b,I,"",u,z)}
function ZS(a){var b=ta(a)?sS(a):a;a=new sP;var c=new PS(null);VS(c,b.session.a);a=XS(c,a);c=b.media.filter(function(a){return"audio"===a.b.type});var d=b.media.filter(function(a){return"video"===a.b.type});b=b.media.filter(function(a){return"data"===a.b.type||"application"===a.b.type});a=$S("a",c,a);a=$S("v",d,a);return a=$S("d",b,a)}function $S(a,b,c){var d=new PS(a);b.forEach(function(a){return VS(d,a.g)});return XS(d,c)};var aT=null;function bT(){aT||(aT=new AudioContext);return aT};var cT=function(a){var b=a;ta(a)&&(b=Number(a),b=0==b&&nb(a)?NaN:b);return 1E3>b?b/2E3:2E3>b?(b-1E3)/2E3+.5:3E3>b?(b-2E3)/2E3+1:4E3>b?(b-3E3)/2E3+1.5:6E3>b?(b-4E3)/4E3+2:1E4>b?(b-6E3)/8E3+2.5:15E3>b?(b-1E4)/1E4+3:19E3>b?(b-15E3)/8E3+3.5:22E3>b?(b-19E3)/6E3+4:32767>=b?(b-22E3)/21534+4.5:5};var dT=function(a,b,c,d){B.call(this);this.s=new DA("talk.media.webrtc.AudioOutput");this.f=a;this.g=window.URL.createObjectURL(b);this.m=new wA(this);this.l(this.m);this.a=[];this.w=0;this.b=null;c&&(a=bT().createAnalyser(),a.fftSize=2048,bT().createMediaStreamSource(b).connect(a),this.b=a);this.h=d;this.Nb(1)};t(dT,B);dT.prototype.toString=function(){return"AudioOutput(url="+this.g+", volume="+this.w+", elements.length="+this.a.length+")"};var eT=function(a,b){a.s.info("["+a+"] "+b)};
dT.prototype.Nb=function(a){if(this.f){eT(this,"Setting volume to "+a+".");var b=Math.ceil(a)-this.a.length;if(0<b)fT(this,b);else if(0>b){b=-b;eT(this,"Removing "+b+" elements.");for(var c=0;c<b;++c){var d=this.a.pop();d.src="";d&&d.parentNode&&d.parentNode.removeChild(d)}}0<a&&(this.a[0].volume=a-(this.a.length-1));this.w=a}};
var fT=function(a,b){eT(a,"Adding "+b+" elements.");for(var c=[],d=[],e={},f=0;f<b;e={Ke:e.Ke},++f){var g=a.f.a.createElement("AUDIO");e.Ke=xc();c.push(e.Ke.a);g.autoplay=!0;g.src=a.g;AA(a.m,g,function(a){return function(){return a.Ke.resolve()}}(e));a.a.push(g);d.push(g);a.f.a.body.appendChild(g)}lj(c).then(function(){return a.dispatchEvent("playing")});""!==a.h&&rj(gT(a,d),function(b){EA(a.s,"["+a+"] "+("Failed to set sink IDs.  Most likely sinkIds are not supported. Error: "+b))})},gT=function(a,
b){b=b.map(function(b){return gj().then(function(){return b.setSinkId(a.h)})});return lj(b).then(function(){})};dT.prototype.W=function(){this.Nb(0);window.URL.revokeObjectURL(this.g);dT.aa.W.call(this)};dT.prototype.Dd=function(){return 0==this.a.length?null:this.a[0].currentTime};var hT=function(a){if(!a.b)return null;var b=new Uint8Array(a.b.fftSize);a.b.getByteTimeDomainData(b);a=256*Ob(b,function(a,b){return Math.max(a,Math.abs(b-128))},0);return cT(a)};var jT=function(a){B.call(this);this.f=a;this.H=a.F;this.b=new gR("realtime.media.api.webrtc.PeerConnection");a={iceServers:this.f.I,bundlePolicy:"max-bundle"};if(mq){var b={mandatory:{RtpDataChannels:!this.H,DtlsSrtpKeyAgreement:this.f.F},optional:[{googHighStartBitrate:!0},{googHighBitrate:!0},{googPayloadPadding:!0},{googSkipEncodingUnusedStreams:!0},{googScreencastMinBitrate:400},{googVeryHighBitrate:!0}]};b.optional.push({googCpuOveruseDetection:!0});b.optional.push({googCpuOveruseEncodeUsage:!0});
b.optional.push({googCpuUnderuseThreshold:55});b.optional.push({googCpuOveruseThreshold:85});this.b.info("Creating new PeerConnection with config="+Bi(a)+" constraints="+Bi(b));a=new webkitRTCPeerConnection(a,b)}else iq?(this.b.info("Creating new PeerConnection with config="+Bi(a)),a=new RTCPeerConnection(a)):(Hb(),a=void 0);this.a=a;this.m=this.h=this.A=this.B=this.F=this.w=this.s=this.g=null;iq?(this.g=bT().createMediaStreamDestination().stream,this.h=this.g.getAudioTracks()[0],this.h.enabled=!1,
this.a.addTrack(this.h,this.g),this.w=new dT(null,this.g,iq,""),a=document.createElement("canvas"),a.getContext("2d"),this.s=a.captureStream(),this.m=this.s.getVideoTracks()[0],this.m.enabled=!1,a=this.a.addTrack(this.m,this.s)):a=null;iT(this,a);this.a.onicecandidate=this.R.bind(this);mq?this.a.onaddstream=this.M.bind(this):this.a.ontrack=this.K.bind(this);this.a.onremovestream=this.ba.bind(this)};t(jT,B);jT.prototype.W=function(){this.close();jT.aa.W.call(this)};
var iT=function(a,b){if(b){var c={},d=a.f.s;d&&0<d.a&&(c.maxBitrate=d.a);d=[c];a.f.u&&(c.rid="f",d.push({rid:"h",scaleResolutionDownBy:2}),d.push({rid:"q",scaleResolutionDownBy:4}));b.setParameters({encodings:d}).then(function(){},function(b){return hR(a.b,"Failed to enable simulcast: "+b)})}},kT=function(a){var b;mq&&!a.H&&(b={reliable:!1});return a.a.createDataChannel("dataSendChannel",b)};
jT.prototype.close=function(){"closed"!=this.a.signalingState&&this.a.close();pi(this.a);this.a.onicecandidate=null;this.a.oniceconnectionstatechange=null;this.a.onaddstream=null;this.a.onremovestream=null;this.a.ondatachannel=null};var lT=function(a,b){x(a.a.getSenders(),function(a){a.track.kind==b.kind&&a.replaceTrack(b)})},mT=function(a,b){a="audio"==b.kind?a.g:a.s;a.removeTrack(a.getTracks()[0]);a.addTrack(b);return a},nT=function(a){return Ca(a.a.getReceivers)?a.a.getReceivers():null};
jT.prototype.M=function(a){a.stream&&this.dispatchEvent(new oT(a.stream))};jT.prototype.K=function(a){0==a.streams.length||this.dispatchEvent(new oT(a.streams[0]))};jT.prototype.ba=function(a){a.stream&&this.dispatchEvent(new pT(a.stream))};jT.prototype.R=function(a){if(a=a.candidate)a.candidate?(a=YS(a.candidate),this.dispatchEvent(new qT(a))):hR(this.b,"RTCIceCandidate.candidate had no value.")};
var sT=function(a,b){b=b||rT(!1);var c=xc();mq?a.a.createOffer(function(a){c.resolve(a)},function(a){c.reject(a)},b):iq?c.resolve(a.a.createOffer(b)):c.reject("Unsupported platform");return c.a.then(function(b){b=sS(b.sdp);a.B=b;return ZS(b)},function(b){a.b.error("createOffer Failed: "+b);throw b;})},tT=function(a){var b=xc();mq?a.a.createAnswer(function(a){b.resolve(a)},function(a){b.reject(a)}):iq?b.resolve(a.a.createAnswer()):b.reject("Unsupported platform");return rj(b.a,function(b){a.b.error("nativeCreateAnswer_ Failed: "+
b);throw b;})},uT=function(a){return tT(a).then(function(b){b=sS(b.sdp);a.A=b;return ZS(b)},function(b){a.b.error("createAnswer Failed: "+b);throw b;})},vT=function(a,b){var c=xc();mq?a.a.setLocalDescription(b,function(){return c.resolve()},function(a){return c.reject(a)}):iq?c.resolve(a.a.setLocalDescription(b)):c.reject("Unsupported platform");rj(c.a,function(b){a.b.error("nativeSetLocalDescription_ Failed: "+b);throw b;})},xT=function(a){return tT(a).then(function(b){b.sdp=wT(a,b.sdp);vT(a,b)})},
wT=function(a,b){if(!iq||Wd(55)||!a.f.u)return b;var c=yT(a);if(0===c.length)return b;a=a.a.getSenders().find(function(a){return"video"===a.track.kind});c=c.map(function(a){return"a=rid:"+a+" send"}).join("\r\n")+"\r\na=simulcast: send rid="+c.join(";");b=b.replace(/o=.+ (.+ .+ .+ .+)/,"o=- "+Math.pow(2,53)*Math.random()+" $1");return b=b.replace(new RegExp("(a=msid:.*"+a.track.id+")"),"$1\r\n"+c)},yT=function(a){if(!iq)return[];a=a.a.getSenders().find(function(a){return"video"===a.track.kind});return a?
(a=a.getParameters().encodings)&&0!==a.length?a.map(function(a){return a.rid}):[]:[]},rT=function(a){if(mq){var b={mandatory:{OfferToReceiveAudio:!0,OfferToReceiveVideo:!0}};a&&(b.mandatory.IceRestart=!0);return b}if(iq)return b={offerToReceiveAudio:1,offerToReceiveVideo:1},a&&(b.iceRestart=!0),b;Hb();return{}},zT=function(a){return a.w?hT(a.w):null};
jT.prototype.getStats=function(){var a=xc();mq?this.a.getStats(function(b){a.resolve(b)}):iq?a.resolve(this.a.getStats()):a.reject("Unsupported platform");return a.a};
var AT=function(a,b){b=OS(b);var c=xc();mq?a.a.addIceCandidate(b,function(){c.resolve()},function(a){c.reject(a)}):iq?c.resolve(a.a.addIceCandidate(b)):c.reject("Unsupported platform");rj(c.a,function(a){hR(this.b,"addIceCandidate Failed: "+a);throw a;},a)},CT=function(a,b,c){c=BT(a,b,c,!1);var d=new RTCSessionDescription({type:b,sdp:rS(c)}),e=xc();mq?a.a.setLocalDescription(d,function(){e.resolve()},function(a){e.reject(a)}):iq?e.resolve(a.a.setLocalDescription(d)):e.reject("Unsupported platform");
rj(e.a,function(a){hR(this.b,"setLocalDescription Failed: "+a);hR(this.b,"The current signalingState is : "+this.a.signalingState);hR(this.b,"The offending SDP was: \n"+d.sdp);throw a;},a);return e.a},DT=function(a,b,c){var d=BT(a,b,c,a.f.K),e=new RTCSessionDescription({type:b,sdp:rS(d)}),f=xc();mq?a.a.setRemoteDescription(e,function(){f.resolve()},function(a){f.reject(a)}):iq?f.resolve(a.a.setRemoteDescription(e)):f.reject("Unsupported platform");f.a.then(function(){a.F=d},function(b){hR(a.b,"setRemoteDescription Failed: "+
b);hR(a.b,"The current signalingState is : "+a.a.signalingState);hR(a.b,"The offending SDP was: \n"+e.sdp);throw b;});return f.a},BT=function(a,b,c,d){d={Hm:d?["conference"]:[],Em:yT(a)};if("offer"===b)return a=a.F,d=void 0===d?{}:d,c=new tS(c,d),c.v=void 0===a?null:a,xS(c);if("answer"===b)return b=a.A,d=void 0===d?{}:d,c=new tS(c,d),c.A=a.B,c.v=void 0===b?null:b,xS(c);Hb()},qT=function(a){A.call(this,"Ja");this.candidate=a};t(qT,A);var oT=function(a){A.call(this,"Ka");this.stream=a};t(oT,A);
var pT=function(a){A.call(this,"La");this.stream=a};t(pT,A);var ET=function(a){return n(a)?a:m(void 0)?void 0:-1};var FT={sd:"bytesReceived",td:"bytesSent",dj:"id",np:"localCandidateId",Kq:"readable",Nq:"remoteCandidateId",Nj:"selected",Yr:"writable"},GT={Ii:"googActiveConnection",sd:"bytesReceived",td:"bytesSent",fj:"googLocalAddress",Ij:"googRemoteAddress"},HT={mn:"bitrateMean",nn:"bitrateStdDev",po:"framerateMean",qo:"framerateStdDev",sd:"bytesReceived",td:"bytesSent",mo:"firCount",Vo:"isRemote",Xo:"jitter",Fp:"mozRtt",up:"mediaType",Hp:"nackCount",Cg:"packetsReceived",af:"packetsLost",Dg:"packetsSent",zq:"pliCount",
Oq:"remoteId",er:"roundTripTime",Hg:"ssrc"},IT={sd:"bytesReceived",td:"bytesSent",Cg:"packetsReceived",af:"packetsLost",Dg:"packetsSent",Hg:"ssrc"},JT=function(a,b){if(!a)return null;if(b){b=GT;if("false"==a[b.Ii])return null;a=a[b.fj]+a[b.Ij]}else{b=FT;if("false"==a[b.Nj])return null;a=a[b.dj]}return a};var KT=function(){this.f=new Ni;this.b=new Ni;this.a=new Ni};KT.prototype.clear=function(){this.f.clear();this.b.clear();this.a.clear()};
var MT=function(a,b,c,d,e){var f=(e=m(e)?e:!0)?IT:HT,g=b[f.Hg];if(null==g)return null;if(d)return a=LT(a.f,g,p(a.g,a,d)),a.update(c,b[f.td],b[f.Dg],e?b[f.af]:0);a=LT(a.b,g,p(a.g,a,d));return a.update(c,b[f.sd],b[f.Cg],b[f.af])},NT=function(a,b,c,d){d=m(d)?d:!0;var e=JT(b,d);if(null==e)return null;d=d?GT:FT;return LT(a.a,e,p(a.l,a)).update(c,b[d.td],b[d.sd])},LT=function(a,b,c){var d=a.get(b);null==d&&(d=c(),a.set(b,d));return d};KT.prototype.g=function(a){return new OT(a)};KT.prototype.l=function(){return new PT};
var OT=function(a){this.a=-1;this.f=this.g=this.b=0;this.l=a};OT.prototype.update=function(a,b,c,d){var e=null;if(n(a)&&n(b)&&n(c)&&n(d)){if(a>this.a){var f=c-this.g;e=d-this.f;f=this.l?f:f+e;e=0<f?Math.round(100*e/f):-1;f=-1;if(0<=this.a){f=a-this.a;var g=b-this.b;f=0<g?Math.round(8*g/f):0}e={qe:f,Dh:e}}this.a=a;this.b=b;this.g=c;this.f=d}return e};var PT=function(){this.a=-1;this.b=this.f=0};
PT.prototype.update=function(a,b,c){var d=null;if(n(a)&&n(b)&&n(c)){if(0<=this.a&&a>this.a){d=a-this.a;var e=b-this.f,f=c-this.b;d={ni:0<e?Math.round(e/d):0,fi:0<f?Math.round(f/d):0}}this.a=a;this.f=b;this.b=c}return d};var QT=function(a){this.g=new gR("realtime.media.api.webrtc.JmiStatsParser");this.u=a;this.h=new KT;this.f=-1;this.l={};this.b=new BA;this.v=new RR;this.a=null},RT={lan:1,wlan:2,wwan:5},WT=function(a,b,c,d,e){ST(a,b);var f={};b.forEach(function(b){if("localcandidate"==b.type){var c=TT(b);b=b.id;iR(a.g,"LocalCandidate: "+Bi(c));if(null!=c&&(c=c.networkType,!nb(yb(b))&&!nb(yb(c)))){var d=RT[c];d||(iR(a.g,"Unmatched localcandidate networkType: "+c),d=0);f[b]=d}}});b.forEach(function(b){switch(b.type){case "ssrc":b=
TT(b);var e=a.u;c&&(uc(b,"googFrameWidthSent")&&(b.googFrameWidthSent=0),uc(b,"googFrameHeightSent")&&(b.googFrameHeightSent=0));var g=Number(b.ssrc);if(null!=g){var u=b.googCaptureStartNtpTimeMs;if(null!=u&&0<u){var z=e.Dd(g);null!=z&&(u=u-oB+1E3*z,b.oneWayDelayMs=Ka()-u)}null!=b.bytesReceived&&(u=yB(e,g),null!=u&&(null!=u.yh&&(b.fpsGraphicsInput=u.yh),null!=u.zh&&(b.fpsGraphicsOutput=u.zh)));u=iB.lg;z=b.googCpuLimitedResolution;var I=b.googBandwidthLimitedResolution,G=b.googViewLimitedResolution;
if(null!=z||null!=I||null!=G)"true"==z&&(u|=iB.kg),"true"==I&&(u|=iB.jg),"true"==G&&(u|=iB.mg),b.googAdaptationReason=u;e=zB(e,g);null!=e&&(b.googFrameSpacing=e)}iR(a.g,"SSRC: "+Bi(b));null!=b&&(u=uc(b,"mediaType")?"audio"===(null!==b&&"mediaType"in b?b.mediaType:void 0):uc(b,"audioInputLevel")||uc(b,"audioOutputLevel")||uc(b,"googExpandRate"),e=uc(b,"bytesSent"),g=new bB,U(g,1,u?1:2),U(g,24,e?0:1),n(b.ssrc)&&(U(g,25,b.ssrc),U(g,53,[b.ssrc])),U(g,2,Math.round(ET(b.fractionLost))),U(g,3,Math.round(ET(b.packetsLost))),
U(g,4,Math.round(ET(b.highestSequenceNumber))),U(g,5,Math.round(ET(b.googJitterReceived))),g.lc(Math.round(ET(b.googRtt))),U(g,7,Math.round(ET(b.bytesSent))),U(g,8,Math.round(ET(b.packetsSent))),U(g,9,Math.round(ET(b.bytesReceived))),U(g,10,Math.round(ET(b.packetsReceived))),e?null!=b.googCodecName&&U(g,44,b.googCodecName):(null!=b.googCodecName&&U(g,94,b.googCodecName),n(b.oneWayDelayMs)&&U(g,89,Math.round(b.oneWayDelayMs)),n(b.oneWayMaxDelayMs)&&U(g,112,Math.round(b.oneWayMaxDelayMs)),n(b.oneWayStddevDelayMs)&&
U(g,118,Math.round(b.oneWayStddevDelayMs)),n(b.oneWayMinDelayMs)&&U(g,119,Math.round(b.oneWayMinDelayMs))),u?e?(n(b.aecDivergentFilterFraction)&&U(g,117,b.aecDivergentFilterFraction),n(b.audioInputLevel)&&U(g,26,Math.round(b.audioInputLevel)),n(b.googEchoCancellationEchoDelayMedian)&&U(g,46,Math.round(b.googEchoCancellationEchoDelayMedian)),n(b.googEchoCancellationEchoDelayStdDev)&&U(g,47,Math.round(b.googEchoCancellationEchoDelayStdDev)),n(b.googEchoCancellationReturnLoss)&&U(g,48,Math.round(b.googEchoCancellationReturnLoss)),
n(b.googEchoCancellationReturnLossEnhancement)&&U(g,49,Math.round(b.googEchoCancellationReturnLossEnhancement)),n(b.googEchoCancellationQualityMin)&&U(g,63,b.googEchoCancellationQualityMin),n(b.googResidualEchoLikelihood)&&U(g,129,b.googResidualEchoLikelihood),n(b.googResidualEchoLikelihoodRecentMax)&&U(g,133,b.googResidualEchoLikelihoodRecentMax)):(n(b.audioOutputLevel)&&U(g,26,Math.round(b.audioOutputLevel)),n(b.googJitterBufferMs)&&U(g,37,Math.round(b.googJitterBufferMs)),n(b.googPreferredJitterBufferMs)&&
U(g,38,Math.round(b.googPreferredJitterBufferMs)),n(b.googCurrentDelayMs)&&U(g,39,Math.round(b.googCurrentDelayMs)),n(b.googExpandRate)&&U(g,68,b.googExpandRate),n(b.googSpeechExpandRate)&&U(g,103,b.googSpeechExpandRate),n(b.googPreemptiveExpandRate)&&U(g,106,b.googPreemptiveExpandRate),n(b.googAccelerateRate)&&U(g,107,b.googAccelerateRate),n(b.googSecondaryDecodedRate)&&U(g,104,b.googSecondaryDecodedRate),n(b.googDecodingCTSG)&&U(g,81,Math.round(b.googDecodingCTSG)),n(b.googDecodingCTN)&&U(g,82,
Math.round(b.googDecodingCTN)),n(b.googDecodingNormal)&&U(g,83,Math.round(b.googDecodingNormal)),n(b.googDecodingPLC)&&U(g,84,Math.round(b.googDecodingPLC)),n(b.googDecodingCNG)&&U(g,85,Math.round(b.googDecodingCNG)),n(b.googDecodingPLCCNG)&&U(g,86,Math.round(b.googDecodingPLCCNG)),n(b.googDecodingMuted)&&U(g,134,Math.round(b.googDecodingMuted))):(e?(n(b.googFirsReceived)&&U(g,27,Math.round(b.googFirsReceived)),n(b.googNacksReceived)&&U(g,28,Math.round(b.googNacksReceived)),n(b.googFrameRateInput)&&
U(g,29,Math.round(b.googFrameRateInput)),n(b.googFrameRateSent)&&U(g,30,Math.round(b.googFrameRateSent)),n(b.googFrameWidthSent)&&g.Fc(Math.round(b.googFrameWidthSent)),n(b.googFrameHeightSent)&&g.Cc(Math.round(b.googFrameHeightSent)),n(b.googQpSent)&&U(g,113,Math.round(b.googQpSent)),n(b.qpSum)&&U(g,139,Math.round(b.qpSum)),n(b.googAdaptationChanges)&&U(g,95,Math.round(b.googAdaptationChanges)),n(b.googAvgEncodeMs)&&U(g,75,Math.round(b.googAvgEncodeMs))):(n(b.googFirsSent)&&U(g,27,Math.round(b.googFirsSent)),
n(b.googNacksSent)&&U(g,28,Math.round(b.googNacksSent)),n(b.googFrameRateOutput)&&U(g,29,Math.round(b.googFrameRateOutput)),n(b.googFrameRateReceived)&&U(g,30,Math.round(b.googFrameRateReceived)),n(b.googFrameRateDecoded)&&U(g,31,Math.round(b.googFrameRateDecoded)),n(b.fpsGraphicsInput)&&U(g,50,b.fpsGraphicsInput),n(b.fpsGraphicsOutput)&&U(g,51,b.fpsGraphicsOutput),n(b.googFrameWidthReceived)&&g.Fc(Math.round(b.googFrameWidthReceived)),n(b.googFrameHeightReceived)&&g.Cc(Math.round(b.googFrameHeightReceived)),
n(b.googQpReceived)&&U(g,113,Math.round(b.googQpReceived)),n(b.qpSum)&&U(g,139,Math.round(b.qpSum)),n(b.googFrameSpacing)&&U(g,138,Math.round(b.googFrameSpacing))),e&&(u=iB.lg,z=UT(b.googCpuLimitedResolution),I=UT(b.googBandwidthLimitedResolution),G=UT(b.googViewLimitedResolution),null!=z&&null!=I&&null!=G&&(z&&(u|=iB.kg),I&&(u|=iB.jg),G&&(u|=iB.mg)),U(g,65,u))),b=MT(a.h,b,a.f,e),null!=b&&(U(g,2,b.Dh),e?U(g,42,b.qe):U(g,96,b.qe)),VT(d,g));break;case "VideoBwe":b=TT(b);iR(a.g,"Bwe: "+Bi(b));null!=
b&&(e=new bB,U(e,1,2),U(e,24,2),n(b.googAvailableSendBandwidth)&&U(e,40,Math.round(b.googAvailableSendBandwidth)),n(b.googAvailableReceiveBandwidth)&&U(e,41,Math.round(b.googAvailableReceiveBandwidth)),n(b.googTransmitBitrate)&&U(e,42,Math.round(b.googTransmitBitrate)),n(b.googRetransmitBitrate)&&U(e,43,Math.round(b.googRetransmitBitrate)),n(b.googTargetEncBitrate)&&U(e,124,Math.round(b.googTargetEncBitrate)),n(b.googActualEncBitrate)&&U(e,125,Math.round(b.googActualEncBitrate)),n(b.googBucketDelay)&&
U(e,80,Math.round(b.googBucketDelay)),U(e,2,-1),U(e,3,-1),U(e,4,-1),U(e,5,-1),e.lc(-1),U(e,7,-1),U(e,8,-1),U(e,9,-1),U(e,10,-1),VT(d,e));break;case "googCandidatePair":g=TT(b),iR(a.g,"CandidatePair: "+Bi(g)),null!=g&&(b=X(d,XA,13),e=new XA,e.lc(Math.round(ET(g.googRtt))),U(e,4,Math.round(ET(g.bytesSent))),n(g.packetsSent)&&U(e,90,Math.round(g.packetsSent)),n(g.packetsDiscardedOnSend)&&U(e,91,Math.round(g.packetsDiscardedOnSend)),U(e,6,Math.round(ET(g.bytesReceived))),u=0,"true"==g.googActiveConnection&&
(u|=1),"true"==g.googWritable&&(u|=2),"true"==g.googReadable&&(u|=4),U(e,2,u),u=new FA,z=new FA,U(u,1,g.googLocalAddress||""),U(z,1,g.googRemoteAddress||""),I=g.googChannelId,G=0,0==I.lastIndexOf("Channel-audio-",0)?G=1:0==I.lastIndexOf("Channel-video-",0)&&(G=2),U(u,2,G),U(z,2,G),I={local:1,stun:2,relay:3},U(u,3,I[g.googLocalCandidateType]||0),U(z,3,I[g.googRemoteCandidateType]||0),I={udp:1,tcp:2,ssltcp:3}[g.googTransportType]||0,U(u,4,I),U(z,4,I),Y(e,8,u),Y(e,9,z),u=u.nb(),U(e,1,u),u=NT(a.h,g,a.f),
U(e,5,u?u.ni:-1),U(e,7,u?u.fi:-1),g=g.localCandidateId,ta(g)&&!nb(yb(g))&&null!=f[g]&&U(e,55,f[g]),b.push(e),hw(d,13,b))}});TR(a.v,p(a.m,a,d,e))},ST=function(a,b){b.forEach(function(b){if(b.timestamp&&0<b.timestamp.getTime()){var c=a.b;b=b.timestamp;null==c.u&&(c.u=b);var e=Ka();null!=c.b&&c.v+b.getTime()<c.b.getTime()&&(c.v=c.b.getTime()+(e-c.w)-b.getTime());c.b=new Date(b.getTime()+c.v);c.w=e}});b=CA(a.b);0>b||(b<=a.f&&hR(a.g,"Elapsed time in jmidata decreased from "+(a.f+" to "+b)),a.f=b)},XT=
function(a,b){var c=0;x(b,function(a){a=a.stat("audioInputLevel");nb(yb(a))||(c=cT(a))},a);return c},YT=function(a,b){var c=new Ni;x(b,function(a){var b=a.stat("ssrc");a=a.stat("audioOutputLevel");nb(yb(b))||nb(yb(a))||(a=cT(a),c.set(b,a))},a);return c},ZT=function(a,b){var c={audio:!1,video:!1};x(b,function(a){if("ssrc"==a.type){var b=a.names();if(Ub(b,"packetsReceived")){var d=Number(a.stat("ssrc"));this.l[d]=this.l[d]||0;a=Number(a.stat("packetsReceived"));0>=a-this.l[d]||(this.l[d]=a,Ub(b,"audioOutputLevel")?
c.audio=!0:Ub(b,"googFrameRateReceived")&&(c.video=!0))}}},a);return c};
QT.prototype.m=function(a,b,c){var d=this.b.toJson();null!=d?(n(d.tabCpuUsage)&&U(a,34,Math.round(d.tabCpuUsage)),n(d.browserCpuUsage)&&U(a,92,Math.round(d.browserCpuUsage)),n(d.gpuCpuUsage)&&U(a,94,Math.round(d.gpuCpuUsage)),n(d.pluginCpuUsage)&&U(a,93,Math.round(d.pluginCpuUsage)),n(d.totalCpuUsage)&&U(a,35,Math.round(d.totalCpuUsage)),n(d.numOfProcessors)&&a.h(Math.round(d.numOfProcessors)),d=d.jmiVersion,d=n(d)?d:m(void 0)?void 0:-1):d=0;if(3!=d)this.g.error("Uncompatible version number: "+d);
else{d=this.b;var e=c&&c.numOfProcessors;if(e){var f=0,g=0;if(c=c.processors)for(var l=0;l<c.length;l++){var r=c[l].usage;f+=r.user+r.kernel;g+=r.total}else f=d.s,g=d.f;c=g==d.f?d.B:100*e*(f-d.s)/(g-d.f);d.s=f;d.f=g;d.B=c;d.I=c;d.A=e}0>this.f||(U(a,1,Math.round(this.f)),d=this.b,d.m=0,d.g=0,d.l=0,d.h=0,d.a=0,b(a))}};
var TT=function(a){var b={};x(a.names(),function(c){var d=a.stat(c);null!=d&&(isNaN(d)||ta(d)&&nb(d)||(d=Number(d)));b[c]=d});return b},VT=function(a,b){b=b||new bB;var c=VA(a);c.push(b);hw(a,2,c)},UT=function(a){return"true"!=a&&"false"!=a?null:"true"==a};var $T=function(){this.g=new gR("realtime.media.api.webrtc.RtcStatsParser");this.l=new KT;this.a=this.b=null;this.f={}},aU={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},bU={host:1,serverreflexive:2,peerreflexive:2,relayed:3},cU={udp:1,tcp:2},nU=function(a,b,c,d){var e=dU(b);e?(eU(a,e),e=fU(a),0>e?hR(a.g,"Ignore report with timestamp prior to initial stats: "+gU(b)):(U(c,1,Math.round(e)),b.forEach(function(a){switch(aU[a.type]||
a.type){case "candidate-pair":if(a){var d=a.selected;if(ua(d)&&0!=d){d=X(c,XA,13);var e=new XA,f=new FA,u=new FA;hU(f);hU(u);Y(e,8,f);Y(e,9,u);U(e,7,-1);U(e,5,-1);var z=R(f,3);U(e,1,z);U(e,2,0);e.lc(-1);U(e,6,-1);U(e,4,-1);z=a.remoteCandidateId||"";iU(b.get(a.localCandidateId||""),f);iU(b.get(z),u);Y(e,8,f);Y(e,9,u);u=a.selected;z=a.writable;var I=a.readable;ua(u)&&(z=void 0==z?!0:z,I=void 0==I?!0:I);var G=0;1==u&&(G|=1);1==z&&(G|=2);1==I&&(G|=4);U(e,2,G);f=R(f,3);U(e,1,f);f=jU(a,"bytesReceived");
U(e,6,f);f=jU(a,"bytesSent");U(e,4,f);if(a=NT(this.l,a,fU(this),!1))U(e,5,a.ni),U(e,7,a.fi);d.push(e);hw(c,13,d)}}break;case "inbound-rtp":case "outbound-rtp":a&&!kU(a)&&(d=VA(c),e=new bB,U(e,9,-1),U(e,7,-1),U(e,3,-1),U(e,2,-1),U(e,5,-1),U(e,4,-1),U(e,1,0),U(e,10,-1),U(e,8,-1),e.lc(-1),f="outbound-rtp"==(aU[a.type]||a.type),a&&(U(e,24,f?0:1),u="audio"==a.mediaType,U(e,1,u?1:2),z=a.ssrc,ta(z)&&!nb(z)&&(z=Number(z),U(e,25,z),U(e,53,[z])),z=a.nackCount,n(z)&&U(e,28,z),z=a.firCount,n(z)&&U(e,27,z),u||
kU(a)||(u=Math.round(jU(a,"framerateMean")),U(e,29,u),f?(u=Math.round(jU(a,"bitrateMean")),U(e,42,u)):(u=Math.round(jU(a,"bitrateMean")),U(e,96,u)))),f?lU(this,a,e,b):mU(this,a,e,b),a=MT(this.l,a,fU(this),f,!1),null!=a&&(f?U(e,42,a.qe):(U(e,96,a.qe),U(e,2,a.Dh))),d.push(e),hw(c,2,d))}},a),d(c))):hR(a.g,"No valid timestamp for the stats: "+gU(b))},oU=function(a,b){var c={audio:!1,video:!1};b.forEach(function(a){if("inbound-rtp"==(aU[a.type]||a.type)&&!kU(a)){var b=a.ssrc,d=a.packetsReceived;ta(b)&&
!nb(b)&&n(d)&&(b=Number(b),this.f[b]=this.f[b]||0,0>=d-this.f[b]||(this.f[b]=d,"audio"==a.mediaType&&(c.audio=!0),"video"==a.mediaType&&(c.video=!0)))}},a);return c},kU=function(a){return a&&(a=a.isRemote,ua(a)&&1==a)?!0:!1},dU=function(a){for(var b=null,c=ja(a.keys()),d=c.next();!d.done;d=c.next())if(d=a.get(d.value),!kU(d)){b=d.timestamp;break}return n(b)?new Date(Math.round(b)):null},eU=function(a,b){null==a.b&&(a.b=b);if(null==a.a||b.getTime()>a.a.getTime())a.a=b},fU=function(a){return a.a&&a.b?
(a.a.getTime()-a.b.getTime())/1E3:-1},iU=function(a,b){if(a){var c=a.ipAddress||"",d=a.portNumber||"";nb(c)||nb(d)||U(b,1,c+":"+d);U(b,3,bU[a.candidateType||""]||0);U(b,4,cU[a.transport||""]||0)}},mU=function(a,b,c,d){if(b){var e=kU(b),f=b.remoteId;e||!ta(f)||nb(f)||lU(a,d.get(f),c,d);a=Math.round(jU(b,"jitter"));U(c,5,a);c.lc(Math.round(pU(b,["mozRtt","roundTripTime"])));a=jU(b,"packetsLost");U(c,3,a);e||(e=jU(b,"packetsReceived"),U(c,10,e),b=jU(b,"bytesReceived"),U(c,9,b))}},lU=function(a,b,c,d){if(b){var e=
kU(b),f=b.remoteId;e||!ta(f)||nb(f)||mU(a,d.get(f),c,d);e||(a=jU(b,"packetsSent"),U(c,8,a),b=jU(b,"bytesSent"),U(c,7,b))}},hU=function(a){U(a,3,0);U(a,4,0);U(a,2,0)},jU=function(a,b){return pU(a,[b],void 0)},pU=function(a,b,c){c=c||-1;b=ja(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,a&&n(a[d])){c=a[d];break}return c},gU=function(a){for(var b={},c=ja(a.keys()),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.get(d);return sa.JSON.stringify(b)};var qU=function(){};t(qU,Jh);var rU=function(a){var b={networkType:0};x(X(a,XA,13),function(a){U(a,55,b.networkType);if(2===b.networkType){var c=new kB;U(c,1,void 0!==b.Gm?b.Gm:-1);Y(a,56,c)}})},sU=function(){};t(sU,qU);var tU=new sU,uU=new pB("QfoKtd");var vU=function(a,b){this.l=new gR("realtime.media.api.webrtc.StatsManager");this.v=a;this.m=null;b.then(function(a){this.m=a},function(a){this.l.info("NetworkInfoService unable to be loaded: "+String(a))},this);this.a=new QT(this.v);this.u=new $T;this.h=0;this.g=null;this.b=new Map;this.f=new Map};vU.prototype.start=function(){this.l.info("Stats manager started.");if(mq){var a=this.a;a.a||(a.a=vR.ja().oa.Tf(),a.a&&a.a.onMessage.addListener(p(a.b.X,a.b)))}else iq||this.l.error("Unsupported platform. All stats ignored.")};
vU.prototype.stop=function(){this.l.info("Stats manager stopped.");if(mq){var a=this.a;a.a&&(a.a.disconnect(),a.a=null)}};
var wU=function(a,b,c,d){var e=0,f=new Ni;mq?(e=XT(a.a,b),f=YT(a.a,b)):iq&&(e=0,f=new Ni);if(c){var g=new Ni;f.forEach(function(a,b){c.get(b)?g.set(c.get(b).Pc,a):g.set(b,a)});d(e,g)}else d(e,f)},xU=function(a,b){if(null==a.g){var c=Number.MAX_VALUE;b.forEach(function(a){a.timestamp<c&&(c=a.timestamp)});c!=Number.MAX_VALUE&&(a.g=c)}a.b.forEach(function(c,e){var d=b.get(e);d&&d.Pc==c.Pc?c.Qc=d.timestamp-a.g:(c.Qc&&(d=a.f.get(e)||[],d.push(c),a.f.set(e,d)),a.b.delete(e))});b.forEach(function(b,c){var d=
a.b.get(c);void 0==d&&(d={Pc:b.Pc,We:b.timestamp-a.g,Qc:null},a.b.set(c,d))})},yU=function(a,b,c){var d=Ka();1E3>d-a.h||(a.h=d,d={audio:!1,video:!1},mq?d=ZT(a.a,b):iq&&(d=oU(a.u,b)),c(d.audio,d.video))},AU=function(a,b,c,d){var e=new MA,f=function(b){a.m&&rU(b);zU(a,d,b)};mq?WT(a.a,b,c,e,f):iq&&nU(a.u,b,e,f)},zU=function(a,b,c){VA(c).forEach(function(b){var c=X(b,cB,136),d=S(b,53);if(!(1>d.length)&&(d=d[0].toString(),""!=d)){var g=a.f.get(d);g&&(g.forEach(function(a){a=BU(a);c.push(a)}),a.f.delete(d));
(d=a.b.get(d))&&d.Qc&&(g=BU(d),c.push(g),d.We=d.Qc,d.Qc=null);0<c.length&&hw(b,136,c)}});b(c)},BU=function(a){var b=new cB;U(b,3,a.Pc);U(b,1,a.We);U(b,2,a.Qc);return b};var CU=function(a,b,c){B.call(this);this.h=a;this.f=b;this.a=new Map;this.g=c||function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return new (Function.prototype.bind.apply(dT,[null].concat(k(b))))};this.b=new DA("realtime.media.capture.OutputManager")};qa(CU,B);
var EU=function(a,b,c){var d=b.id;a.b.info("["+a+"] "+("Creating audio output for stream (id="+d+"), "+("ssrc ("+c+"), and output device (id=)")));b=a.g(a.h,b,iq,"");a.a.set(d,{yk:b,ssrc:c});c?(a=a.f,a.a.Va(c)||a.a.set(c,[]),a.a.get(c).push(new tB(b))):DU(a,"Stream (id="+d+") with no SSRC added.");return b},FU=function(a,b){if(a.a.has(b)){var c=a.a.get(b),d=c.yk;c=c.ssrc;a.b.info("["+a+"] "+("Removing audio output for stream (id="+b+"), ssrc ("+c+")."));c?uB(a.f,c,d):DU(a,"Unusual removal of stream (id="+
b+") which had no SSRC.");a.a.delete(b);Lh(d)}else DU(a,"Attempted to remove a non-existing or already removed audio"+("stream (id="+b+") in output manager."))},DU=function(a,b){EA(a.b,"["+a+"] "+b)};CU.prototype.toString=function(){return"OutputManager"};var GU={nk:0,Pi:1,TIMEOUT:2,ERROR:3,jp:4,wn:5,Og:6,oo:7,Jn:8,Li:9,Nn:10,Rq:11,zr:12,yq:13,Wm:14,lo:15,Oo:16,Mr:17,bn:18,Mo:19,hr:20,Gp:21,Kn:22,io:23,Yp:24,lr:25,jr:26,nj:27,Ro:28,Jr:29,Qq:30,Np:31,tn:32,ln:33,Kr:34,uq:35,Tr:36,Nr:37,Io:38,Ho:39,Jo:40,Qr:41,Aq:42,bo:43,jo:44,Or:45,hn:46,Qp:47,sq:48,Op:49,tq:50,mq:51,oq:52,nq:53,qq:54,pq:55,mr:56,no:57,Vr:58,mp:59,Zo:60,jn:61,an:62,Hn:63,ep:64,Bo:65,zo:66,To:67,Co:68,kn:69,ro:70,rn:71,Pp:72,Rn:73,ir:74,un:102,Iq:104,Vm:106};var HU=function(a,b,c,d,e){B.call(this);this.ya=c;this.M=new gR("realtime.media.api.webrtc.PeerController");d.a&&(d=nQ(d,!1));iq&&(d=nQ(d,!0),d=zc(d),d.w=!1);this.h=d;this.g=b;this.ra=m(e)?e:3;this.Xb=new kz;this.w=new wA(this);this.l(this.w);this.s=this.a=null;this.va=[];b=VR(a,uU);this.H=new vU(c.f,b);this.Za={};this.Ya=this.h.h||1E4;this.F=Ka();this.Ia=!1;this.K=1;this.B={};this.m=this.b=null;this.R={};this.ea=new Ni;this.Oa=new Ni;this.ba=this.la=this.ka=null;this.na=[];this.A=null;this.ma=!1;
this.f=null;this.Lb=0;this.Pa=!1;this.yb=VR(a,GR,KR)};t(HU,B);var IU=!mq||0<=Cb(pq,40)?100:200;HU.prototype.toString=function(){return"PeerController(sessionId="+this.g+")"};
var JU=function(a,b){a.M.info("["+a+"] "+b)},KU=function(a,b){hR(a.M,"["+a+"] "+b)},LU=function(a,b){a.M.error("["+a+"] "+b)},MU=function(a,b){for(var c=[],d=0;d<b;d++)c.push(lz(a.Xb));return c},NU=function(a,b){var c=a.h.u?3:1;c=a.h.a?[8579374]:MU(a,c);var d=[];if(1<c.length&&a.h.u){var e=MN(LN(new KN,"SIM"),c).T();d.push(e)}if(a.h.w){e=a.h.a?[8579375]:MU(a,c.length);for(var f=0;f<e.length;f++){var g=MN(LN(new KN,"FID"),[c[f],e[f]]).T();c.push(e[f]);d.push(g)}}return eO(bO(XN(WN(UN(new TN,"v"),b),
a.g+"/"+b),c),d).T()},OU=function(a,b){var c=new TN;if(0==WO(b.b).length){var d=a.h.a?[8579373]:MU(a,1);c=bO(UN(c,"a"),d)}else c=new TN(WO(b.b)[0]);d=XN(WN(c,"1"),a.g+"/1").T();var e=0==WO(b.a).length?NU(a,"2"):XN(WN(new TN(WO(b.a)[0]),"2"),a.g+"/2").T();c=new TN;c=0==WO(b.f).length?bO(UN(c,"d"),MU(a,1)):new TN(WO(b.f)[0]);c=XN(WN(c,"3"),a.g+"/3");a.h.a||$N(c,"dataSendChannel");a=c.T();return new sP(aP(new TO("a",[],[]),[d]),aP(new TO("v",[],[]),[e]),aP(new TO("d",[],[]),[a]))},QU=function(a,b){a.Za[b]||
(a.Za[b]=!0,a.dispatchEvent(new PU(a.g,b)))};
HU.prototype.zb=function(a){a=a.stream;var b=a.getAudioTracks(),c=a.getVideoTracks(),d=a.id;JU(this,"Remote stream added with id="+a.id+" audioTracks="+b.length+" videoTracks="+c.length);c=function(a){return a.xc==d};Pb(WO(this.m.b),c)||Pb(WO(this.m.a),c)||Pb(y(this.m.b.l),function(a){return a.toString()==d})?0<b.length?this.h.l?(b=RU(this,this.m,d),c=EU(this.ya,a,b),this.B[a.id]=c,b||KU(this,"Participant left before their audio was added")):JU(this,"Ignoring incoming audio track as audio output is disabled."):(b=
yc(this.R,d),a=window.URL.createObjectURL(a),JU(this,"Creating video url for stream id="+d+" url="+a),b.ta.resolve(a),b.ih=!0):JU(this,"Ignoring incoming tracks with no matching msid.")};
HU.prototype.Kb=function(a){var b=a.stream,c=b.getAudioTracks(),d=b.getVideoTracks();a=b.id;JU(this,"Remote stream removed with id="+a+" audioTracks="+c.length+" videoTracks="+d.length);0<c.length&&(FU(this.ya,b.id),delete this.B[b.id]);0<d.length&&(b=this.R[a],delete this.R[a],null!=b?b.ih?KU(this,"Asked to remove stream that was never added."):b.ta.a.then(window.URL.revokeObjectURL):KU(this,"Video stream was deleted before removal."))};
HU.prototype.Xa=function(a){a=a.target;var b=a.nb(this.g);b&&SU(this,b,a.Z())};
var TU=function(a,b){switch(b){case "a":var c=WO(a.b.b)[0];break;case "v":c=Sb(WO(a.b.a),function(a){return"2"==a.ga()});break;case "d":c=WO(a.b.f)[0]}return c},UU=function(a,b){if(!a.b)return null;if("v"!=b.V())return TU(a,b.V());var c=Sb(WO(a.b.a),function(a){return a.ga()==b.getId()});c||(c=NU(a,b.getId()));return c},VU=function(a,b,c){var d=c.V(),e=UU(a,c),f=null,g=null,l=!0,r="mu"==c.getState();if(b){f=b.id;b="a"==d?b.getAudioTracks():b.getVideoTracks();if(0==b.length)return LU(a,"Got MediaStream without associated tracks."),
null;g=b[0].id;l="sc"!=c.ib}e=YN(ZN(aO($N(new TN(e),f),g),l),r).T();"a"==d?a.b=xP(a.b,aP(a.b.b,[e])):(d=WO(a.b.a),ac(d,function(a){return a.ga()==c.getId()}),d.push(e),a.b=tP(a.b,aP(a.b.a,d)));JU(a,"StreamInfo="+e+" updated.");return e},WU=function(a,b){b&&!a.Ia&&a.a&&(JU(a,"Adding stream with id="+b.id+" to peer"),a=a.a,mq?a.a.addStream(b):(b=b.getTracks()[0],lT(a,b),b=mT(a,b)));return b},XU=function(a,b){b&&a.a&&(JU(a,"Removing stream with id="+b.id+" to peer"),a=a.a,mq?a.a.removeStream(b):(b="audio"==
b.getTracks()[0].kind?a.h:a.m,lT(a,b),mT(a,b)))},SU=function(a,b,c){if(!a.b)return null;b=WU(a,b);b=VU(a,b,c);a.m?YU(a):JU(a,"Skipping SDP renegotiation on local stream change because we are still waiting on the remote description.");return b};
HU.prototype.stopSession=function(a,b){this.f&&this.f.cancel();Lh(this.a);this.a=null;this.s&&(this.s.close(),this.s=null);this.f&&(this.f.cancel(),this.f=null);this.A&&(this.A.stop(),this.ma=!1,this.F=0,this.dispatchEvent(new ZU(a,b)));this.H.stop();for(var c in this.R)this.R[c].ta.a.then(window.URL.revokeObjectURL);$U(this,0)};
HU.prototype.Ga=function(){(this.a||this.f)&&Hb("Attempted to recreate a peer connection.");QU(this,"send initiate");JU(this,"Instantiating new peer");aV(this,this.h.I);this.a=new jT(this.h);this.w.listen(this.a.a,"signalingstatechange",this.gb);this.K=1;this.w.listen(this.a,"Ja",this.Ab);this.a.a.oniceconnectionstatechange=p(this.fb,this);this.w.listen(this.a,"Ka",this.zb);this.w.listen(this.a,"La",this.Kb);this.a.a.ondatachannel=p(function(a){bV(this,a.channel)},this);this.s=kT(this.a);this.s.onopen=
p(function(){JU(this,"send datachannel is open.")},this);this.s.onclose=p(function(){JU(this,"send datachannel is closed.")},this);this.s.onerror=p(function(a){KU(this,"send datachannel error: "+a)},this);this.H.start();this.A||(this.A=new Aj(IU),this.w.listen(this.A,"tick",this.bb),3==this.ra&&this.A.start());return this.f=cV(this,!1).then(function(a){JU(this,"Initial createOffer_ succeeded");return dV(this,a)},function(a){LU(this,"Initial createOffer_ failed: "+a);return null},this)};
var cV=function(a,b){JU(a,"Calling createOffer for local description");b=rT(!!b);return rj(sT(a.a,b),function(a){JU(this,"createOffer failed with error="+a);throw a;},a)},dV=function(a,b){var c=a.h.s;c&&(b=tP(b,fP(b.a,c)));c=OU(a,b);b=yP(tP(xP(b,gP(aP(b.b,WO(c.b)),!0)),gP(aP(b.a,WO(c.a)),!0)),gP(aP(b.f,WO(c.f)),!0));c=VO(b.a);c=eV(c);var d=c.findIndex(function(a){return lb(a.getName(),"rtx")});a.h.w&&-1==d&&KU(a,"RTX is enabled, but offer does not contain RTX codec.");c=fV(a,c);a.h.ba&&mq&&(c=Nb(c,
function(a){return EO(new yO(a),"useadaptivelayering_v2","true").T()}));b=tP(b,YO(b.a,c));(c=b.b)&&(b=xP(b,YO(c,Nb(VO(c),function(a){a=new yO(a);a.a=y([]);return a.T()}))));b=tP(b,gV(b.a));a.h.v||(b=tP(b,null));a.b=b;a.f=null;return b},gV=function(a){iq&&(a=$O(a,y(a.a).filter(function(a){return"urn:ietf:params:rtp-hdrext:toffset"!==a.a})),a=$O(a,y(a.a).map(function(a){return MO(new LO(a),a.getId()+3).T()})));return a},iV=function(a){var b=a.b;QU(a,"recv local description");JU(a,"Calling setLocalDescription");
a.f=CT(a.a,"offer",b).then(function(){return JU(a,"Initial setLocalDescription offer succeeded")},function(b){JU(a,"Initial setLocalDescription offer failed with error="+b);if(b instanceof bj)throw b;a.dispatchEvent(new hV(19,a.g,b.toString()));throw b;})},jV=function(a){var b=function(a,b){return Pb(a,function(a){return a.Mb==b})};return Mb(a,function(a,d,e){return!lb(a.getName(),"rtx")||b(e,wO(a))})},eV=function(a){var b=function(a){var b=!1;y(a.hd).forEach(function(a){lb(a.getKey(),"packetization-mode")&&
1==a.Ra()&&(b=!0)});return b};a=Mb(a,function(a,d,e){var c=!0;e.forEach(function(e,f){f!=d&&e.getName()==a.getName()&&lb(a.getName(),"H264")&&(c&=b(a))});return c});return jV(a)},fV=function(a,b){b=Mb(b,function(b){return lb(b.getName(),"vp8")||lb(b.getName(),"h264-svc")||a.h.w&&lb(b.getName(),"rtx")||!1});return jV(b)};
HU.prototype.bb=function(){if(this.A.enabled||3!=this.ra){if(iq){var a=new Ni,b;for(b in this.B){var c=this.B[b],d=RU(this,this.m,b);d&&a.set(d,hT(c)||0)}this.dispatchEvent(new cS(this.g,zT(this.a)||0,a))}this.ma||(mq?0:Ka()-this.F<Math.min(1E4,1E3))||(this.ma=!0,this.a.getStats().then(this.wb,void 0,this))}};
HU.prototype.wb=function(a){this.ma=!1;var b=null;if(mq)b=a.result();else if(iq)b=a;else return;a=kV(this);lV(this,b);iq||mV(this,b,a);a&&xU(this.H,a);a=Ka();a-this.F>=this.Ya&&(this.F=0==this.F?a:this.F+this.Ya,a=Pb(this.na,function(a){return"v"==a.Z().V()&&!a.Yc()}),AU(this.H,b,!a,p(function(a){this.dispatchEvent(new nV(a))},this)))};
var mV=function(a,b,c){wU(a.H,b,c,function(b,c){a.dispatchEvent(new cS(a.g,0,c))})},kV=function(a){if(!a.m||!jP(a.m.b))return null;a=nT(a.a);if(!a)return null;var b=new Map;x(a,function(a){if("audio"==a.track.kind&&Ca(a.getContributingSources)){var c=a.getContributingSources(),e=0;x(c,function(c){c.timestamp>e&&(e=c.timestamp,b.set(a.track.id,{Pc:c.source,timestamp:e}))})}});return b},lV=function(a,b){yU(a.H,b,p(function(a,b){this.dispatchEvent(new oV(a,b))},a))},RU=function(a,b,c){if(!b||!b.b)return null;
if(jP(a.m.b)){if(b=Sb(y(a.m.b.l),function(a){return a.toString()==c}))return b;KU(a,"Received audio from non-virtual ssrc "+c+"when only virtual ssrcs should be used");return null}a=WO(b.b);if(a=Sb(a,function(a){return a.Wa()==c}))if(a=a.mb(),0!=a.length)return a[0];return null},pV=function(a,b){var c=a.a&&a.a.a.remoteDescription&&a.a.a.remoteDescription.sdp;x(b,function(b){QU(a,"recv candidate ");c?AT(a.a,b):a.va.push(b)},a)},rV=function(a){null==a.ba&&1==a.K&&4!=a.ra&&(qV(a,2703),a.ka=Bj(function(){1==
a.K&&(KU(a,"Transport writable 1st timer timed out."),qV(a,2705))},2E4),a.la=Bj(function(){1==a.K&&(KU(a,"Transport writable 2nd timer timed out."),qV(a,2706))},3E4),a.ba=Bj(function(){if(1==a.K){KU(a,"Transport writable timeout failed, aborting.");var b=27;qV(a,2707);a.Pa||(qV(a,3736),b=24);a.dispatchEvent(new hV(b,a.g))}},55E3))},$U=function(a,b){null!=a.ka&&(Cj(a.ka),a.ka=null);null!=a.la&&(Cj(a.la),a.la=null);null!=a.ba&&(Cj(a.ba),a.ba=null);a.K=b};
HU.prototype.fb=function(){var a=this;JU(this,"ICE connection state changed to: "+this.a.a.iceConnectionState);if("disconnected"==this.a.a.iceConnectionState)QU(this,"transport not writable"),this.dispatchEvent(new sV(!1)),JU(this,"Initiating ICE restart"),this.f&&this.f.cancel(),this.f=cV(this,!0).then(function(b){JU(a,"ICE restart create offer succeeded.");a.b?a.b=zP(a.b,b.g):LU(a,"Local description not found after ICE restart createOffer.")}),YU(this);else if("connected"==this.a.a.iceConnectionState||
"completed"==this.a.a.iceConnectionState)$U(this,2),QU(this,"transport writable"),qV(this,2704),this.dispatchEvent(new sV(!0))};HU.prototype.Ab=function(a){a=a.candidate;JU(this,"Got local ICE candidate: "+Bi(a));this.dispatchEvent(new tV(this.g,[a]));a=a.V();QU(this,"send candidate "+a);"STUN"!=a&&(this.Pa=!0)};
var YU=function(a){if(a.a)if(a.f){var b=a.Lb++;JU(a,"Queuing renegotiation with id="+b);a.f=a.f.then(function(){JU(this,"Setting offer in renegotiation with id="+b);return uV(this,"offer",this.m)},void 0,a);a.f=iq?a.f.then(function(){JU(a,"Creating answer for renegotiation with id="+b);return xT(a.a)}):a.f.then(function(){JU(a,"Creating answer for renegotiation with id="+b);return uT(a.a)}).then(function(){var c=a.b;var d=c.g,e=d.a,f=d.l;c=!e||f&&"actpass"!==f?c:a.h.a?zP(c,rP(d,a.m.g.a>e?"active":
"passive")):zP(c,rP(d,"active"));JU(a,"Setting answer in renegotiation with id="+b);return CT(a.a,"answer",c)});a.f=a.f.then(function(){JU(this,"Renegotiation successfull with id="+b)},function(a){KU(this,"Renegotiation failed with id="+b+" with error="+a);if(a instanceof bj)throw a;this.dispatchEvent(new hV(19,this.g,a.toString()));throw a;},a)}else KU(a,"Attempting to reneogitate before offer is created."),hj("Attempting to reneogitate before offer is created.");else gj()},vV=function(a,b){QU(a,
"recv remote description");var c=null==a.m;a.m=b;c?a.f=a.f.then(function(){return uV(this,"answer",b)},void 0,a).then(function(){JU(this,"Initial setRemoteDescription answer succeeded")},function(a){KU(this,"Initial setRemoteDescription answer failed for with error="+a);KU(this,"Initial local offer was "+this.a.a.localDescription.sdp);if(a instanceof bj)throw a;this.dispatchEvent(new hV(19,this.g,a.toString()));throw a;},a):YU(a)},uV=function(a,b,c){var d=nc(WO(c.f),function(a){return a.xc||a.ga()},
a);a.Oa=new Ni(d);c=wV(a,b,c);JU(a,"Calling setRemoteDescription with type="+b);return DT(a.a,b,c).then(function(){JU(this,"setRemoteDescription succeeded");x(this.va,function(a){AT(this.a,a)},this);this.va=[]},function(a){JU(this,"setRemoteDescription failed with error="+a);throw a;},a)},wV=function(a,b,c){var d=a.b;if(c.f.f)c=yP(c,aP(c.f,[]));else{var e=$N(bO(XN(WN(UN(new TN,"d"),"dataSendChannel"),"dataSendChannel"),[0]),"dataSendChannel").T(),f=WO(c.f);f.push(e);c=yP(c,aP(c.f,f))}(e=c.g.a)&&(c=
zP(c,rP(c.g,"offer"==b?"actpass":a.h.a?e>d.g.a?"passive":"active":"passive")));return c},xV=function(a){var b=a.a.a.getLocalStreams();x(b,function(a){XU(this,a)},a);a.Ia=!0},yV=function(a){a.Ia=!1;x(a.na,function(a){(a=a.nb(this.g))&&WU(this,a)},a)};HU.prototype.W=function(){var a=this;Object.keys(this.B).forEach(function(b){return FU(a.ya,b)});this.B={};Lh(this.a);this.a=null;this.s&&(this.s.close(),this.s=null);HU.aa.W.call(this)};HU.prototype.Lc=function(){QU(this,"recv view request")};
var bV=function(a,b){JU(a,"receive datachannel "+b.label+" created.");a.ea.set(b.label,b);b.onopen=p(function(a){JU(this,"receive datachannel "+a.label+" is open.")},a,b);b.onclose=p(function(a){JU(this,"receive datachannel "+a.label+" is closed.");this.ea.remove(a.label)},a,b);b.onerror=p(function(a,b){KU(this,"receive datachannel "+a.label+" threw error: "+b);this.ea.remove(a.label)},a,b);b.onmessage=p(a.cb,a,b)};
HU.prototype.cb=function(a,b){b=b.data;var c=this.Oa.get(a.label);c=c?c.N():a.label;JU(this,"dataReceived: participantId:"+c+" label:"+a.label+"data: "+b);null!=b&&this.dispatchEvent(new zV(this.g,c,a.label,b))};HU.prototype.gb=function(a){a.target==this.a.a&&"closed"==this.a.a.signalingState&&this.dispatchEvent(new hV(4,this.g))};
var aV=function(a,b){0==b.length&&hR(a.M,"No ICE servers provided.");Pb(b,function(a){return!a.url&&!a.urls})&&(hR(a.M,"Malformed Ice servers: "+Bi(b)),qV(a,4264))},qV=function(a,b){a.yb.then(function(c){c.a(b,a.g)})},oV=function(a,b){A.call(this,"Ra");this.a=a;this.f=b};t(oV,A);var nV=function(a){A.call(this,"Va");this.a=a};t(nV,A);var ZU=function(a,b){A.call(this,"Wa");this.a=a;this.Cb=b};t(ZU,A);var tV=function(a,b){A.call(this,"Ta");this.sessionId=a;this.a=b};t(tV,A);
var PU=function(a,b){A.call(this,"Sa");this.sessionId=a;this.message=b};t(PU,A);var sV=function(a){A.call(this,"Ya");this.a=a};t(sV,A);var zV=function(a,b,c,d){A.call(this,"Pa");this.sessionId=a;this.Fa=b;this.label=c;this.payload=d};t(zV,A);var hV=function(a,b,c){A.call(this,"Qa");this.a=a;this.sessionId=b;this.Cb=c};t(hV,A);var AV=function(a,b,c,d){qQ.call(this);this.f=new gR("realtime.media.api.webrtc.LocalSession");this.b=a;this.a=b;this.s=d;this.w=new wA(this);this.l(this.w);this.w.listen(this.a,"Pa",this.sl).listen(this.a,"Qa",this.tl).listen(this.a,"Ra",this.ul).listen(this.a,"Sa",this.vl).listen(this.a,"Ta",this.wl).listen(this.a,"Va",this.yl).listen(this.a,"Wa",this.xl).listen(this.a,"Ya",this.zl);this.g="INITIAL";this.h=new Set;this.m=void 0};qa(AV,qQ);
var BV=function(a,b,c,d){a.g!=b&&(a.g=b,!n(a.m)&&n(c)&&(a.m=c),a.dispatchEvent(new pO(a.g,a.m,d)))};h=AV.prototype;h.getState=function(){return this.g};h.Ga=function(){return"INITIAL"!=this.g?(hR(this.f,"Called initialize in a bad state."),hj()):this.a.Ga()};
h.kc=function(){if("INITIAL"!=this.g)return hR(this.f,"Called prepare in a bad state."),!1;if(!this.a.b)return hR(this.f,"Prepare called before local offer has been generated."),!1;var a=this.s,b=this.b;a.a.info("Starting logging for sessionId="+b);a.g.add(b);XR(a,3220);var c=lA.ja();c.l="11.0.0.0";c.b=b;c.a[b]=c.m;c.m=new Rz;c.a[b].open(c.f,"hangouts-call-"+b+".log");var d=new Date;mA(c,b,"### Start ["+d.toString()+"] ### "+b);mA(c,b,"Current time is "+d.toUTCString());mA(c,b,"Google Talk Plugin Version: "+
c.l);mA(c,b,"User agent: "+fd);bS(a,b);iV(this.a);BV(this,"STARTING");return!0};h.start=function(a){if("STARTING"!=this.g)return hR(this.f,"Called start in a bad state."),!1;this.f.info("sendLogComment: RemoteSessionId="+a.m);BV(this,"INPROGRESS");CV(this,a);return!0};h.connect=function(){rV(this.a)};h.update=function(a){switch(this.g){case "INITIAL":return hR(this.f,"Update called before started."),!1;case "STOPPED":return hR(this.f,"Update called after stopped."),!1}CV(this,a);return!0};
h.stop=function(a,b){if("STOPPED"==this.g)return!1;BV(this,"STOPPED",a,b);this.a.stopSession(this.m,b);$R(this.s,this.b);return!0};h.pause=function(){if("INPROGRESS"!=this.getState())return!1;xV(this.a);BV(this,"PAUSED");return!0};h.resume=function(){if("PAUSED"!=this.getState())return!1;yV(this.a);BV(this,"INPROGRESS");return!0};
var DV=function(a){var b=a.s;a=a.b;b.a.info("Log upload requested for sessionId="+a);b.m.add(a);b.h&&b.u.g.add(b.h,a);b.f?b.s():b.b&&b.b.then(b.s,void 0,b)},EV=function(a,b){var c=b.Z().V();switch(a.g){case "STOPPED":case "FINISHED":return hR(a.f,"Add local stream called after ended."),null}if(a.h.has(b))return a.f.error("Capture "+b+" has already been added."),null;b.gi(a.b);var d=a.a;JU(d,"Adding capture="+b);Wb(d.na,b);d.w.listen(b,"C",d.Xa);var e=b.nb(d.g);d=e?SU(d,e,b.Z()):UU(d,b.Z());if(null==
d)return a.f.error("A stream for capture of type: "+c+", was not created."),null;a.h.add(b);return d},FV=function(a,b){if("INPROGRESS"==a.g&&0!=b.length){b=b[0];a=ja(a.h);for(var c=a.next();!c.done;c=a.next())c=c.value,b.Y(),c.Z().V()}};h=AV.prototype;
h.bi=function(a,b){if(null!=TU(this.a,"d")){var c=this.a;JU(c,"sendData: label:"+a+"data: "+b);var d=c.ea.get(a)||c.s;if(d){var e=d.readyState;"open"==e?d.send(b):JU(c,"Message dropped: dataChannel "+a+" is in "+e+" state")}else KU(c,"Unknown dataChannel for label "+a+", cannot send data: "+b)}else hR(this.f,"Sending data without data stream.")};h.ul=function(a){this.dispatchEvent(new sQ(a.a,a.f))};h.ii=function(){return!0};h.wl=function(a){a.sessionId==this.b&&this.dispatchEvent(new tQ(a.a))};
h.vl=function(a){a.sessionId==this.b&&this.dispatchEvent(new OQ(a.message))};
h.yl=function(a){var b=0,c=VA(a.a).map(function(a){var c={},d={};0==R(a,24)?(2==R(a,1)?(d.video_sent_bytes=R(a,7),d.video_sent_packets=R(a,8),d.video_sent_frame_width=R(a,57),d.video_sent_frame_height=R(a,58)):1==R(a,1)&&(d.audio_sent_bytes=R(a,7),d.audio_sent_packets=R(a,8),d.audio_sent_energy_level=R(a,26)),d.ssrc=R(a,25),c.ssrc=d):1==R(a,24)?(2==R(a,1)?(d.video_received_bytes=R(a,9),d.video_received_packets=R(a,10),d.video_received_frame_width=R(a,57),d.video_received_frame_height=R(a,58),d.framerate_received=
R(a,30),d.framerate_decoded=R(a,31),b+=1):1==R(a,1)&&(d.audio_received_bytes=R(a,9),d.audio_received_packets=R(a,10),d.audio_received_energy_level=R(a,26)),d.ssrc=R(a,25),c.ssrc=d):2==R(a,24)&&(d.available_send_bitrate=R(a,40),d.available_recv_bitrate=R(a,41),d.transmission_bitrate=R(a,42),c.bwe=d);return c});if(0<VA(a.a).length){var d={},e={};e.number_of_active_incoming_video_streams=b;e.cpu_percent_of_total=R(a.a,35);e.gpu_percent_of_total=R(a.a,94);e.renderer_cpu_percent_of_total=R(a.a,34);e.browser_cpu_percent_of_total=
R(a.a,92);d.global=e;this.f.info(this.b+" datapoint: "+Bi([].concat(["webrtc_media_stats"],k(c),[d])))}this.dispatchEvent(new uQ(a.a))};h.xl=function(a){this.dispatchEvent(new vQ(0,a.a,a.Cb))};h.tl=function(a){a.sessionId==this.b&&this.stop(a.a,a.Cb)};h.zl=function(a){this.dispatchEvent(new xQ(a.a))};h.sl=function(a){this.b==a.sessionId&&this.dispatchEvent(new wQ(a.Fa,a.label,a.payload))};h.Qg=function(a){var b=WO(this.a.b.f);b.some(function(b){return b.xc==a.ec()})||(b.push(this.A(a)),this.f.error("Ignoring post-setup addDataChannel call!"))};
var CV=function(a,b){if(null!=b.l.get("collections")&&null!=b.f){var c=b.l.S().map(a.A,a);c=aP(b.f,WO(b.f).concat(c));b=yP(b,c)}a.f.info("Session "+a.b+" setting remote descriptions: "+Bi(vP(b)));vV(a.a,b)};AV.prototype.A=function(a){var b=a.a,c=a.ec()||"local_push_channel",d=a.getChannelId()||"";return $N(cO(XN(WN(VN(UN(new TN,"d"),d),c),b.toString()),b),a.ec()).T()};var GV=function(a){this.width=a.f;this.height=a.a;this.frameRate=a.b};GV.prototype.toString=function(){return"VideoShape(width="+this.width+", height="+this.height+", "+("frameRate="+this.frameRate+")")};GV.prototype.toJson=function(){return{width:this.width,height:this.height,frameRate:this.frameRate}};GV.prototype.equals=function(a){return!!a&&this.width==a.width&&this.height==a.height&&this.frameRate==a.frameRate};
var HV=function(a){this.f=a?a.width:null;this.a=a?a.height:null;this.b=a?a.frameRate:null};HV.prototype.T=function(){return new GV(this)};var IV=function(a){var b=new HV;b.b=30;b.f=a;return b};var JV=function(a){eR.call(this,a);this.b=a.f;this.a=a.b};qa(JV,eR);JV.prototype.equals=function(a){return eR.prototype.equals.call(this,a)&&a instanceof JV?this.b.equals(a.b)&&this.a.equals(a.a):!1};JV.prototype.toString=function(){return"VideoSettings(base="+eR.prototype.toString.call(this)+", "+("minVideoShape="+this.b+", ")+("maxVideoShape="+this.a+")")};
JV.prototype.f=function(){var a=eR.prototype.f.call(this);mq?(a.optional.push({minRefreshRate:this.b.frameRate}),a.optional.push({minHeight:this.b.height}),a.optional.push({minWidth:this.b.width}),a.optional.push({maxRefreshRate:this.a.frameRate}),a.optional.push({maxWidth:this.a.width}),a.optional.push({maxHeight:this.a.height})):iq&&(a.aspectRatio=16/9,a.height=this.a.height,a.width=this.a.width);return a};JV.prototype.g=function(){return new KV(this)};
var KV=function(a){fR.call(this,a);this.f=a?a.b:null;this.b=a?a.a:null};qa(KV,fR);KV.prototype.T=function(){return new JV(this)};var LV=function(a){var b=new tC;U(b,2,a);U(b,1,Md&&Fd?2:Md?3:Nd?4:Od?5:1);U(b,3,1);return b};var MV=function(a,b,c){this.a=a;this.b=b;this.f=c};var NV=JSON.parse;var OV=function(a,b,c,d){this.status=a;this.b=b;this.Id=c;this.response=d};OV.prototype.toString=function(){var a="["+this.status+"/"+this.b;null!=this.Id&&(a+="/"+this.Id);null!=this.response&&(a+=": ",a=Ba(this.response)?a+Xi(this.response,this.a,this).join("; "):a+this.a(this.response));return a+"]"};
OV.prototype.a=function(a){if(null!=a&&null!=a.error){var b=a.error;a=b.message+" "+b.code;b=b.data||b.errors;null!=b&&(b=Xi(b,function(a){var b=a.domain+" - "+a.reason;null!=a.debugInfo&&(b+=" = "+Db(a.debugInfo,"\n",4).slice(0,3).join(" - "));return b}),Vi(b)||(a+=": "+b.join(", ")));return a}return Ba(a)&&0<a.length?a.toString():"Unknown"};var PV=function(a,b,c,d){this.g=a;this.l=b;this.b=this.f=a;this.h=c||0;this.m=d||2};PV.prototype.a=0;PV.prototype.reset=function(){this.b=this.f=this.g;this.a=0};PV.prototype.Ra=function(){return this.f};var QV=function(a){a.b=Math.min(a.l,a.b*a.m);a.f=Math.min(a.l,a.b+(a.h?Math.round(a.h*(Math.random()-.5)*2*a.b):0));a.a++};var SV=function(){this.A=new RV;this.h=new PV(1E3,36E4);this.g=6E4;this.m=!1;this.w=[]};h=SV.prototype;h.toString=function(){return"<# "+this.a+" to "+(this.l||"")+" for "+this.u+">"};h.Dc=function(a){this.H=a;return this};h.vi=function(a){this.l=a;return this};h.ei=function(a){this.u=a;return this};h.si=function(a){this.F=a;return this};h.wi=function(a){this.s=a;return this};h.bg=function(a){this.B=a;return this};h.dg=function(a){this.b=a;return this};h.xi=function(a){this.f=a;return this};
h.Be=function(){return this.A};h.um=function(a){this.v=a;return this};h.qm=function(a){this.g=a;return this};var TV=function(a){var b=a.h.Ra();b=Math.round(.5*b)+Math.floor(Math.random()*b);QV(a.h);return Math.min(b+0,36E4)};SV.prototype.cancel=function(){this.m=!0;this.dg("c")};var RV=function(){};RV.prototype.pi=function(a){this.a=a;return this};RV.prototype.ri=function(a){this.b=a;return this};RV.prototype.callback=function(a){this.a(a)};var UV=new pB("FwiOSb");var VV=function(a,b){B.call(this);this.a=b;this.j=Ih("realtime.network.ApiaryClient");a.load(p(this.el,this),p(this.fl,this));this.g=0;this.f=new Ni;this.b=new Ni;D(this.j,"Created apiary client")};t(VV,B);var WV=function(a,b,c,d){var e="\r\n\r\n--"+d+"\r\n";d="\r\n\r\n--"+d+"--\r\n";var f=e+"Content-Type: "+a+"\r\n\r\n"+(b&&!ta(b)?b.ia():b);x(c,function(a){f+=e+"Content-Type: "+a.type+"\r\nContent-transfer-encoding: "+a.a+"\r\n\r\n"+a.data+"\r\n\r\n"});return f+=d};h=VV.prototype;h.Sd=null;
h.el=function(a){this.Sd=a;this.dispatchEvent("Za");D(this.j,"Apiary client loaded")};h.fl=function(){this.u||(this.Sd=null,D(this.j,"Apiary client unloaded"))};h.W=function(){var a=this.f.Qa();x(a,Cj);a=this.b.Qa();x(a,Cj)};
h.request=function(a){if(!this.u&&!a.m)if(null!=this.Sd){var b=this.g++;a.a=b;this.a&&this.a.onRequest(a);b=a.B;var c=null!=a.X?a.X:{},d=null!=a.s?a.s:{},e=null!=a.I?a.I:"application/json";if(null!=a.f?a.f:1)d.alt="protojson",e="application/json+protobuf",null!=b&&(b=JSON.parse(b.ia()));var f=a.w;if(0<f.length){c["MIME-Version"]="1.0";var g="END_OF_PART_"+Ab();c["Content-Type"]='multipart/related; boundary="'+g+'"';b=WV(e,b,f,g)}else null!=b&&(c["Content-Type"]=e);c["Accept-Language"]=a.H||"en";b=
{method:a.F,path:a.u,params:d,headers:c,body:b};nb(yb(a.l||""))||(b.root=a.l||"");D(this.j,"Sending request "+a);try{var l=this.Sd.client.request(b);a.dg("p");null!=a.g&&this.b.set(a.a,Bj(p(this.km,this,a),a.g||void 0));l.execute(p(this.em,this,a))}catch(r){Ei(this.j,"Failed to enqueue request "+Bi(b),r),XV(this,a,new OV("fatal","request_queuing",null,null),null,0)}}else C(this.j,"Request when client is not ready!")};
h.km=function(a){C(this.j,"Request timed out: "+a);XV(this,a,new OV("retry","deadline_exceeded",null,null),null,0)};
h.em=function(a,b,c){if(this.u||"p"!=a.b)YV(this,a);else{var d=null,e="ok";YV(this,a);var f=null,g=null;try{var l=JSON.parse(c),r=l.gapiRequest.data.body;f=l.gapiRequest.data.headers;d=NV(r)}catch(z){C(this.j,"Failed to parse the response for request "+a+": "+c,z);var u="response_decoding";e="retry"}null!=b&&null!=b.error&&(g=b.error.code,C(this.j,"Request failed: "+a+": "+b.error.code+" - "+b.error.message),u="network_or_frontend",e="retry",400==b.error.code?(u="bad_request",e="fatal"):401==b.error.code?
(u="unauthorized",e="fatal"):402==b.error.code?(u="payment_required",e="fatal"):403==b.error.code&&(u="forbidden",e="fatal"));"ok"==e&&null!=d.error&&(C(this.j,"Server returned an error for request "+a+": "+d.error.code+' "'+d.error.message+'": '+d.error.errors[0].Cb),u="backend",e="retry");"ok"==e&&((b=null!=a.f?a.f:!0)&&!Ba(d)||!b&&!Da(d))&&(C(this.j,"Apiary returned bad response type for request "+a+": expected "+(b?"Array":"Object")+", received "+ya(d)),u="response_format",e="retry");if("ok"==
e&&(a.dg("o"),a.Be().callback(d),"o"!=a.b))switch(u="response_callback",a.b){case "r":C(this.j,"Error processing response for request "+a+": should retry.");e="retry";break;case "d":C(this.j,"Fatal error processing response for request "+a);e="fatal";break;default:Ei(this.j,"Unexpected response state from processing the response for "+a+": "+a.b)}if("ok"==e)D(this.j,"Response processed successfully for request "+a),this.a&&this.a.b(a,d);else{b=0;if(null!=f&&null!=f["Retry-After"])try{b=1E3*parseInt(f["Retry-After"],
10),b=Math.min(Math.max(b,0),72E5)}catch(z){}XV(this,a,new OV(e,u,g,d),c,b)}}c=this.b.get(a.a);null!=c&&(this.b.remove(a.a),Cj(c))};var YV=function(a,b){var c=a.f.get(b.a);null!=c&&(a.f.remove(b.a),Cj(c))},XV=function(a,b,c,d,e){a.u||"p"!=b.b&&"r"!=b.b||(a.a&&a.a.onError(b,c,d),d=null!=b.v?b.v:0,"retry"==c.status&&0<d?(D(a.j,"Scheduling retry for request "+b),a.f.set(b.a,Bj(p(a.request,a,b),Math.max(TV(b),e)))):(b.cancel(),b.Be().b(c)))};var ZV=function(a,b,c,d,e){B.call(this);this.g=b;this.h=c;this.m=e||"https://clients6.google.com";this.b=d;this.a=a;this.s=xc();null!=this.a.Sd?this.s.resolve():mi(this.a,"Za",function(){this.s.resolve()},!1,this)};t(ZV,B);ZV.prototype.request=function(a,b,c,d,e,f,g){this.s.a.then(function(){var l=(new SV).vi(this.m).ei("/"+this.g+"/"+this.h+"/"+a).si(b).wi(c).xi(!m(g)||g).bg(d),r=xc();r.a.then(e,f||wa);l.Be().pi(p(r.resolve,r)).ri(p(r.reject,r));this.a.request(l)},null,this)};
ZV.prototype.makeRequest=function(a,b,c,d,e){var f=nb(yb(this.b))?{}:{key:this.b};a=(new SV).vi(this.m).ei("/"+this.g+"/"+this.h+"/"+a).si("POST").wi(f).xi(!0).bg(b);null!=c&&a.qm(c);null!=d&&a.um(d);var g=xc();a.Be().pi(p(function(a){var b=null;try{b=0<a.length?mw(a):null}catch(I){a=new OV("fatal","response_decoding",null,a);g.reject(a);return}var c=b,d=0;c&&Ca(c.getResponseHeader)&&(c=c.getResponseHeader())&&Ca(c.Ca)&&(d=c.Ca());1==d?g.resolve(b):(a=new OV("fatal","backend",null,a),g.reject(a))},
this)).ri(p(g.reject,g));this.s.a.then(p(this.a.request,this.a,a));return g.a};var $V=function(a,b,c){a=Gj(a,encodeURIComponent("$ct"),c);if(null==navigator.sendBeacon||!navigator.sendBeacon(a,b)){c=a;var d="POST",e=b;a=Gj(a,encodeURIComponent("$httpMethod"),"POST");a=Gj(a,encodeURIComponent("$req"),b);2048>a.length&&(c=a,d="GET",e=null);try{var f=Li(Ji);f.open(d,c,!1);f.send(e)}catch(g){b=Ih("realtime.network.Beacon"),Ei(b,"Cannot fallback from sendBeacon",g)}}};var aW=function(a,b,c,d,e,f){ZV.call(this,a,b,c,d,e);this.f=f||new vw};t(aW,ZV);aW.prototype.makeRequest=function(a,b,c,d,e,f){f||bW(this,b);return aW.aa.makeRequest.call(this,a,b,c,d,e).then(this.w,null,this)};var bW=function(a,b){if(b&&a.f.a&&Ca(b.C)&&Ca(b.D)){var c=b.C()||new Z;Y(c,3,a.f.a);b.D(c)}};aW.prototype.w=function(a){Ca(a.getResponseHeader)&&1==a.getResponseHeader().Ca()&&cW(this,a);return a};var cW=function(a,b){(b=(b=Ca(b.C)&&b.C()||null)&&V(b,tw,3))&&ww(a.f,b)};var dW=function(){B.call(this);this.j=Ih("realtime.pushnotifications.Dispatcher")};t(dW,B);
var eW=[{ab:fJ.prototype.rh,eventType:"hb"},{ab:fJ.prototype.th,eventType:"jb"},{ab:fJ.prototype.ph,eventType:"eb"},{ab:fJ.prototype.oh,eventType:"fb"},{ab:fJ.prototype.sh,eventType:"ib"},{ab:fJ.prototype.jh,eventType:"ab"},{ab:fJ.prototype.nh,eventType:"bb"},{ab:fJ.prototype.kh,eventType:"cb"},{ab:fJ.prototype.wh,eventType:"pb"},{ab:fJ.prototype.lh,eventType:"db"},{ab:fJ.prototype.uh,eventType:"kb"}],fW=[{ab:dJ.prototype.h,eventType:"lb"},{ab:dJ.prototype.u,eventType:"mb"},{ab:dJ.prototype.v,eventType:"nb"},
{ab:dJ.prototype.s,eventType:"ob"}];dW.prototype.a=function(a){var b=V(a,fJ,2);if(null!=b)for(a=0;a<eW.length;a++){var c=eW[a].ab.call(b);if(null!=c)if("kb"==eW[a].eventType)for(var d=c,e=fW,f=0;f<eW.length;f++){if(c=e[f].ab.call(d),null!=c){var g=e[f].eventType;break}}else{g=eW[a].eventType;break}}else b=V(a,bH,3),null!=b&&(c=V(b,$G,1),null!=c&&(g="gb"));null!=c?(D(this.j,"Received notification of type "+g+"."),this.dispatchEvent(new gW(g,c))):C(this.j,"A batch notification is empty.")};
var gW=function(a,b){A.call(this,a);this.notification=b};t(gW,A);var iW=function(a,b){NP.call(this,b);a instanceof aW?(b=a,a=new ZV(a.a,a.g,a.h,a.b,a.m)):a instanceof ZV?b=new aW(a.a,a.g,a.h,a.b,a.m,new vw):a=b=a;this.h=b;this.w=a;this.v=new hW;this.s=new dW;null==R(this,1)&&U(this,1,32);a=R(this,2)||"rmjs";U(this,2,a);a=R(this,3)||"Unknown";U(this,3,a);QP(this,R(this,4)||"0.0");null==R(this,5)&&U(this,5,0);this.u(R(this,6)||R(this,2)+Ab().toUpperCase());a=R(this,7)||R(this,6)+"@fake.com";U(this,7,a);null==$v(this,9)&&U(this,9,.01);a=R(this,10)||null;U(this,10,
a);a=R(this,11)||"https://clients2.google.com/cr/report";U(this,11,a);a=R(this,12)||null;U(this,12,a);a=V(this,FP,13)||new FP;Y(this,13,a);null==R(this,8)&&U(this,8,!1);null==R(this,16)&&U(this,16,!1);a=S(this,14)||[];U(this,14,a||[]);a=V(this,IP,17)||new IP;Y(this,17,a);a=R(this,18)||null;U(this,18,a)};t(iW,NP);var jW=new pB("CgjDUd");iW.prototype.register=function(a){a.registerService(jW,this);return this};iW.prototype.u=function(a,b){b=b?Ab().toUpperCase():"";iW.aa.u.call(this,a+b)};
var kW=function(a){var b=new qC;sC(b,R(a,1));var c=new mC,d=R(a,6);U(c,1,d);d=new vC;xC(d,b);Y(d,2,c);d.Dc("en");a=LV(R(a,5));Y(d,7,a);return d},hW=function(){};hW.prototype.a=wa;var lW=function(a){VQ.call(this,a);this.l=new le;this.f=!1;this.g=new WR(this.za);this.h=new RR};qa(lW,VQ);h=lW.prototype;h.Ga=function(){var a=this;return this.b.f.a.then(function(b){return a.g.Ga(R(b,7))}).then(function(b){a.f=7==b;Pz=R(a.za.get(jW),11);return b})};h.He=function(){return this.f};
h.Ge=function(){if(this.He()){var a=new rK,b=new WJ;U(b,1,"11.0.0.0");Y(a,7,b);b=this.h;var c=new hK,d="other";Jd?d="windows":Id?d=-1!=Hd.indexOf("Intel")?"mac":"mac-ppc":0<=fd.indexOf("CrOS")?d="cros":Kd&&(d="linux");U(c,1,d);U(c,14,LR);d="Other";Ad?d="Opera":Bd?d="Internet Explorer":iq?d="Firefox":mq?d="Chrome":nq&&(d="Safari");U(c,15,d);U(c,16,pq);-1!=Hd.indexOf("armv7l")?U(c,5,"ARM"):(U(c,2,6),U(c,3,14),U(c,5,"GenuineIntel"),d=UR(b,b.a),U(c,18,d),c.h(b.a.numOfProcessors));Y(a,8,c);return a}};
h.Nd=function(a){return this.He()?new gR(a):null};h.Fh=function(a,b,c){if(this.He()){a.get(jW);var d=nN(a,rB);null==d&&(d=new qB,a.registerService(rB,d));d=new CU(this.l,d);a=new HU(a,b,d,c);b=new AV(b,a,0,this.g);b.l(a);return b}return null};XM(lW,VQ,6);var nW=function(a,b){jR.call(this,a,mW);this.K=b};qa(nW,jR);nW.prototype.A=function(){sR(this,this.K.clone());return gj()};var oW=new KV;oW.a=!1;var pW=IV(320);pW.a=180;var qW=pW.T();oW.f=qW;var rW=IV(640);rW.a=360;var sW=rW.T();oW.b=sW;var mW=oW.T();var tW=function(){};tW.prototype.load=function(a){w(this.j,"Loading gapi for realtime client");var b=window.gapi;b&&b.auth?a(b):(new Ws("notneeded",void 0,void 0,!0,!1,void 0)).init().then(function(b){a(b)})};tW.prototype.j=Pa("mr.mirror.hangouts.ClientLoader");var uW=function(){};qa(uW,AR);uW.prototype.Sf=function(a){var b=new mz;chrome.system.cpu.getInfo(function(a){b.callback(a)});return tz(b,function(b){a(b)})};
uW.prototype.Tf=function(){function a(a){Ef(10);if(void 0==c)Qf("mr.mirror.hangouts.HangoutsService").then(function(a){if(a=a.a)a=a.b.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 d=a[c];if(d){var f=0,g=0,l=0,r;for(r in a){var u=a[r];"browser"==u.type?g=u.cpu:"gpu"==u.type?l=u.cpu:"extension"==u.type&&u.title==chrome.runtime.getManifest().name&&(f=u.cpu)}b({tabCpuUsage:d.cpu,
browserCpuUsage:g,gpuCpuUsage:l,pluginCpuUsage:f})}}}if(!chrome.processes)return null;var b=wa,c;return{onMessage:{addListener:function(c){b=c;chrome.processes.onUpdated.addListener(a)}},disconnect:function(){chrome.processes.onUpdated.removeListener(a);b=wa}}};XM(uW,AR,2);var vW=function(a,b){this.data=a;this.qd=b};vW.prototype.toString=function(){return"[op. result, version: "+this.qd+", resource count: "+this.data.length+"]"};var wW=function(){B.call(this)};t(wW,B);var xW=function(a){this.a=a};xW.prototype.zf=Xg;var yW=function(a,b){this.b=a;this.a=b};var zW=function(a,b,c,d,e,f,g,l,r,u,z){this.a=a;this.u=y(b);this.v=y(c);this.I=y(d);this.m=cc(b,d);this.X=cc(c,e);this.b=f;this.s=y(g);this.w=y(l);this.A=y(r);this.h=cc(g,r);this.B=cc(l,u);this.l=z||Yg};zW.prototype.f=function(a){if(a instanceof this.a)var b=this.u;else if(a instanceof this.b)b=this.s;else return Hb("Passed in object did not match resource or identifier type"),[];return Nb(b,function(b){return b.call(a)})};
var AW=function(a,b){if(b instanceof a.a)a=a.I;else if(b instanceof a.b)a=a.A;else return Hb("Passed in object did not match resource or identifier type"),[];return Nb(a,function(a){return a.call(b)})};zW.prototype.g=function(a){if(a instanceof this.a)var b=this.m;else if(a instanceof this.b)b=this.h;else return Hb("Passed in object did not match resource or identifier type"),[];return Nb(b,function(b){return b.call(a)})};
zW.prototype.ob=function(a,b){var c=this.X;a.length!=c.length&&(b?a=cc(a,b):c=this.v);var d=new this.a;x(a,function(a,b){c[b].call(d,a)},this);return d};
var BW=function(a,b){var c=a.B;b.length!=c.length&&(c=a.w);var d=new a.b;x(b,function(a,b){c[b].call(d,a)},a);return d},CW=function(a,b){if(b instanceof a.a)a=a.m;else if(b instanceof a.b)a=a.h;else return Hb("Passed in object did not match resource or identifier type"),!1;return!Pb(a,function(a){return null==a.call(b)})},EW=function(a,b,c){b=DW(a,b,a.g);a=DW(a,c,a.g);return mc(b,a)},DW=function(a,b,c){return b instanceof Array?b:c.call(a,b)};var FW=function(){B.call(this)};t(FW,B);xa(FW);var HW=function(a,b,c,d,e,f,g){B.call(this);this.b=d;this.F=e;this.g=BW(this.b,c);this.ua=++GW;this.G=Ih("realtime.collections.Collection."+this.ua);this.B=e.a;this.cb=g||null;this.na=f&&f.b||null;this.Oa=e.zf();this.fb=f&&f.a||null;this.Sa=new wA(this);this.l(this.Sa);this.data={};this.Ya=0;this.Ia=[];this.va={};this.a=-2;this.m=!0;this.s=xc();this.state="ma";this.config=pw(b);FW.ja();this.H={};this.Za=Xg};t(HW,B);var IW=new Ni(10,67);HW.prototype.ba=function(a){return new JW(a.qd,a.data,[],"ia")};
var KW=function(a,b){return new JW(b.qd,[],a,"ia")},GW=0,LW=0,MW=function(a){"ma"==a.state&&(a.state="ka",a.na&&a.Sa.listen(a.na,a.fb,a.Rh))};HW.prototype.start=function(a){a&&(this.g=pw(a));"ma"==this.state&&MW(this);if("ka"!=this.state)return null;this.state="la";NW(this);D(this.G,"Collection started: "+this.toString()+", "+this.Hb());return null};
HW.prototype.stop=function(){if("la"==this.state||"ka"==this.state)this.flush(),this.la(),this.state="ma",D(this.G,"Collection stopped: "+this.toString()+": "+this.Hb())};var NW=function(a){a.m&&a.s&&(D(a.G,"Initial data available: "+a.toString()),a.s.resolve(a.Ia),a.s=null)};HW.prototype.la=function(){this.na&&this.Sa.v(this.na,this.fb,this.Rh)};
HW.prototype.ob=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];if(0==b.length)return this.b.ob(this.b.f(this.g));if(b[0]instanceof this.b.a)return this.b.ob(this.b.g(b[0]));b=Array.prototype.concat.apply(Array.prototype,b);return this.b.ob(this.b.f(this.g),b)};HW.prototype.gb=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return this.va[OW(this,Array.prototype.concat.apply(Array.prototype,b))]||null};var PW=function(a){return"la"==a.state&&!0};
HW.prototype.W=function(){this.flush();this.stop();null!=this.s&&(C(this.G,"Never any data: "+this.toString()),this.s.a.cancel(),this.s=null);HW.aa.W.call(this)};HW.prototype.get=function(){return this.Ia};HW.prototype.flush=function(){do{QW(this);var a=this.w()}while(0<a)};var QW=function(a){oc(a.H,function(a){for(;a&&1<=a.length&&a[0].a;)a.shift()})},RW=function(a){return Nb(sc(a.data),function(a){return a.ia()})};
HW.prototype.add=function(a,b){OW(this,a);if(SW(this,a)&&this.Oa)return b=TW(this,"oa",a),kh(this.w,this),b;a=this.F.Ub([a]);return UW(this,a,p(this.ba,this),b)};HW.prototype.modify=function(a,b){OW(this,a);if(SW(this,a)&&this.Oa)return b=TW(this,"pa",a),kh(this.w,this),b;a=this.F.Vb([a]);return UW(this,a,p(this.ba,this),b)};HW.prototype.remove=function(a,b,c){var d=this.ya(a);return SW(this,a)&&null==c&&this.Oa?(a=TW(this,"qa",d,b),kh(this.w,this),a):UW(this,VW(this,[d],b),Ja(KW,[d]),c)};
var TW=function(a,b,c,d){var e=a.ya(c).toString(),f=a.H[e]||[];a.H[e]=f;var g=null;e=f.length;if(1<=e&&!f[e-1].a)if(e=f[e-1],"oa"==b){if("oa"==e.type||"pa"==e.type)g=e.ta,f.pop(),WW(a,"l")}else if("pa"==b&&("oa"==e.type||"pa"==e.type)){f=e.resource;b=JSON.parse(f.ia());c=JSON.parse(c.ia());for(d=0;d<c.length;d++)null!=c[d]&&!nw(b[d],c[d])&&(b[d]=c[d]);c=new f.constructor(b);e.resource=c;WW(a,"k");return e.ta.a}a=new XW(b,c,g,d);f.push(a);return a.ta.a};
HW.prototype.w=function(){var a=0,b={};oc(this.H,function(c){if(c&&1<=c.length&&(c=c[0],!c.a)){c.a=!0;if("qa"==c.type&&c.b){var d=[c.resource];YW(this,VW(this,d,c.b),Ja(KW,d),[c.ta],d)}else d=b[c.type]||[],d.push(c),b[c.type]=d;a++}},this);oc(b,function(a,b){if(1<=a.length){var c=[],d=[];x(a,function(a){c.push(a.resource);d.push(a.ta)});switch(b){case "oa":YW(this,this.F.Ub(c),p(this.ba,this),d,c);break;case "pa":YW(this,this.F.Vb(c),p(this.ba,this),d,c);break;case "qa":YW(this,VW(this,c),Ja(KW,c),
d,c);break;default:Hb("A request with type "+b+" was put in the queue.")}}},this);return a};var YW=function(a,b,c,d,e){null==b&&x(d,function(a){a.reject("Operation not available")});b.Oe(T(a.config,7,0));b.Ve(T(a.config,8,6E4),T(a.config,13,6E4));e=Nb(e,a.ya,a);var f=b.Ne();f.then(p(a.hh,a,e),p(a.hh,a,e));rj(f.then(p(a.Oh,a,b,c,d,e)),p(a.Ph,a,b,d));a.B.execute(b)};HW.prototype.Pd=function(){return hj("Resync not supported")};HW.prototype.Zc=function(){return!0};
var VW=function(a,b,c){return a.F.ic(Nb(b,a.M,a),c)},SW=function(a,b){return b instanceof ZW?CW(a.b,a.M(b)):CW(a.b,b)},$W=function(a,b){b=BW(a.b,a.b.g(b));return new ZW(a.b,b)},aX=function(a,b){var c=a.b;b=a.M(b);a=DW(c,a.g,c.f);c=DW(c,b,c.f);return mc(a,c)},UW=function(a,b,c,d){if(null==b)return hj("Operation not available");var e=xc();d=null!=d?d:T(a.config,7,0);b.Oe(d);d=b.gd()||T(a.config,8,6E4);var f=b.Me()||Math.max(d,T(a.config,13,6E4)||0);b.Ve(d,f);null!=e&&rj(b.Ne().then(p(a.Oh,a,b,c,[e],
null)),p(a.Ph,a,b,[e]));D(a.G,"Executing operation: "+b);a.B.execute(b);return e.a};h=HW.prototype;
h.Oh=function(a,b,c,d,e){D(this.G,"Operation executed: "+a+", result:"+e);WW(this,"i");null!=b&&(this.Zc(e.qd)?(a=b(e))?this.Lf(a):D(this.G,"Operation resulted in no update"):PW(this)&&Hb("Result of an operation must have a valid version number, if the collection is active."));!d||null==e.data||1>=e.data.length?c[0].resolve(e.data):x(c,function(a,b){var c=d[b];b=Mb(e.data,function(a){return this.ya(a).equals(c)},this);0==b.length&&Ei(this.G,"Result data is empty after filtering for target resource id "+
c);a.resolve(b)},this)};h.Ph=function(a,b,c){var d="Operation failed: "+c;Ei(this.G,d,c instanceof Error?c:Error(d));WW(this,"h",new bX(0,a.vf(),c));x(b,function(a){a.reject(c)});c.response&&c.response.getResponseHeader&&(a=c.response.getResponseHeader().Ca(),(b=IW.get(a))&&cX(this,b,"Collection apiary operation failed with response code "+a+" triggering endcause "+b));return c};
h.hh=function(a){var b=!1;x(a,function(a){var c=this.H[a.toString()];c&&1<=c.length?(c.shift(),b=b||1<=c.length):Ei(this.G,"A writing request with resource id "+a+" completed but it is not in the request queue.")},this);b&&this.w()};h.Rh=function(a){"la"!=this.state&&"ka"!=this.state||this.Kf(a)};
h.Kf=function(a){var b=this.xh(a);D(this.G,"Received push notification, version: "+b+", checking if any updates apply to this collection "+this.toString());var c=dX(this,a);a=eX(this,a);c.length||a.length?(D(this.G,"Notification applies to this collection: version: "+b+", add/modify: "+c.length+", remove:"+a.length),b=new JW(b,c,a,"ha"),Fi(this.G,"Created partial update for notification: "+b),Di(this.G,Bh,"Add/modify: ["+b.b.join("|")+"], remove: ["+b.f.join("|")+"]"),WW(this,"m"),this.Lf(b)):D(this.G,
"Notification does not apply to this collection, ignoring.")};h.xh=function(){return-2};
var dX=function(a,b){var c=[];x(b.notification.Aa(),function(a){var b=this.b;a=a instanceof b.a?a:new b.a(JSON.parse(a.ia()));CW(this.b,a)?aX(this,$W(this,a))&&c.push(a):WW(this,"G","Pushed modified: "+a.ia())},a);return c},eX=function(a,b){if(!b.notification.Na)return[];var c=[];x(b.notification.Na(),function(a){var b=this.b.l(a);CW(this.b,b)?(a=$W(this,b),aX(this,a)&&c.push(a)):WW(this,"G","Pushed deleted: "+a.ia())},a);return c};
HW.prototype.Lf=function(a){Fi(this.G,"Begin processing update: "+a);a instanceof JW&&(Fi(this.G,"Applying partial update: "+a),fX(this,a));Fi(this.G,"Finish processing update: "+a+": "+this.Hb())};HW.prototype.Hb=function(){return"state: "+this.state+", local version: "+this.a+", snapshot size: "+this.Ya};
var fX=function(a,b){Fi(a.G,"Processing partial update: "+b);Di(a.G,Bh,"Add/modify: ["+b.b.join("|")+"], remove: ["+b.f.join("|")+"]");x(b.b,function(a){CW(this.b,a)?this.data[OW(this,a)]=pw(a):WW(this,"G","Partial update: "+a.ia())},a);var c=[];x(b.f,function(a){var b=OW(this,a);this.data[b]?delete this.data[b]:c.push(a)},a);0<c.length&&WW(a,"H","Resources not found: "+Bi(c));gX(a)},gX=function(a){var b={},c={};oc(a.data,function(a,d){this.Za(a)&&(b[d]=a,c[d]=a)},a);var d=[],e=[];oc(a.va,function(a,
f){var g=b[f];g?(delete c[f],a==g||a&&g&&a instanceof g.constructor&&nw(gw(a),gw(g))||e.push(g)):d.push(a)});var f=sc(c);a.va=b;a.Ia=sc(b);a.Ya=rc(a.data);if(0<e.length||0<f.length||0<d.length)D(a.G,"Obtained update of the filtered view : modified: "+e.length+", added: "+f.length+", removed:"+d.length),Di(a.G,Bh,"Modified: ["+e.join("|")+"], added: ["+f.join("|")+"], removed: ["+d.join("|")+"]"),a.dispatchEvent(new hX(e,f,d))},iX=function(a,b){a.Za=b;gX(a)},WW=function(a,b,c){null!=a.cb&&a.cb.a(b,
c)};HW.prototype.ya=function(a){return null==a||a instanceof ZW?a:$W(this,a)};var OW=function(a,b){var c;Aa(b)?c=b:c=b instanceof ZW?AW(a.b,b.a):AW(a.b,b);return Bi(c)},jX=function(a){this.a=a;this.id=++LW},JW=function(a,b,c,d){jX.call(this,a);this.g=d;this.b=b;this.f=c};t(JW,jX);JW.prototype.toString=function(){return"[Partial update id: "+this.id+", version: "+this.a+", add/modify: "+this.b.length+", remove: "+this.f.length+", type: "+this.g+"]"};
var cX=function(a,b,c){"na"!=a.state&&(a.la(),a.state="na",Ei(a.G,"Collection failed: "+a.toString()+": "+a.Hb(),Error(c)),a.dispatchEvent(new kX(b,c)))},XW=function(a,b,c,d){this.type=a;this.resource=b;this.ta=c||xc();this.b=d||null;this.a=!1};HW.prototype.M=function(a){return a.a};var ZW=function(a,b){this.b=a;this.a=b};ZW.prototype.equals=function(a){return EW(this.b,this.a,a.a)};ZW.prototype.toString=function(){return this.a.ia()};
var hX=function(a,b,c){A.call(this,"ub");this.f=b;this.a=a;this.removed=c};t(hX,A);var kX=function(a,b){A.call(this,"wb");this.a=a;this.reason=b};t(kX,A);var bX=function(a,b,c){nh(c);this.request=b;this.we=c};t(bX,Error);var lX=function(a){B.call(this);this.za=a;this.a=null;this.f=xc();this.g=0;this.h=xc();lj([this.f.a,this.h.a]);this.b=null;uR(this)};qa(lX,B);var mX=function(a){pN(a,HR)||(HR.a="",a.registerService(HR,new lX(a)))};lX.prototype.Ga=function(a){var b=this;null==this.b&&(this.b=lj([this.oa.Ga(a||{})||7,this.f.a]).then(function(a){return a[0]}),this.b.then(function(a){a!=b.g&&n(a)&&vc(FN,a)&&(b.g=a,b.dispatchEvent("yb"))},function(){return b.b=null}));return this.b};WM(VQ,lX);var nX=function(){Jh.call(this);this.j=Ih("realtime.diagnostics.DiagnosticDataService");this.a=0;this.b=new Ni};t(nX,Jh);xa(nX);nX.prototype.W=function(){var a=[];this.b.forEach(function(b){a.push(b.key)},this);a.length&&C(this.j,"Leftover callbacks for diagnostic data collection: "+a.join(", "));nX.aa.W.call(this)};var oX=function(a,b,c){a.a++;a.b.set(a.a,{key:b,mf:c});return a.a};nX.prototype.f=function(a){null!=a&&this.b.remove(a)};nX.prototype.reset=function(){this.a=0;this.b.clear()};var pX=function(a,b,c,d,e,f){B.call(this);this.j=Ih("realtime.media.apiary.Client");this.a=a;this.B=b;this.h=c;this.m=m(f)?f:8;this.w=e||Ab();this.A=LV(d);this.b=37;"hangout_lite"==c&&(this.b=55)};t(pX,B);pX.prototype.f=function(a){return null!=a?V(a,uF,2):null};
var sX=function(a,b,c){b=qX(a,b,c);return rj(rX(a,"media_sessions/log",b),function(a){C(this.j,"Failed to upload log data: "+a);throw a;},a)},qX=function(a,b,c){b=pw(b);U(b,9,a.b);U(b,13,a.h);var d=new tK;d.setRequestHeader(tX(a));d.qa(c);Y(d,3,b);return d},tX=function(a){var b=new vC;xC(b,new qC);sC(V(b,qC,1),a.m);var c=new mC;U(c,1,a.B);U(c,4,a.w);Y(b,2,c);b.Dc("en");Y(b,7,a.A);return b};
pX.prototype.g=function(a){if(null==a)throw new uX("Got empty response.");if(m(a.getResponseHeader)){var b=a.getResponseHeader();if(null!=b){if(b=b.Ca(),1!=b)throw new uX("Got bad status in response header.",b);}else throw new uX("Missing response header.");}return a};
var rX=function(a,b,c){if(null==a.a){var d="Failed to "+b+" "+c+": no service";C(a.j,d);return hj(d)}return a.a.makeRequest(b,c,a.F,a.s).then(a.g,function(a){C(this.j,"Failed to "+b+" "+c+": "+a);throw a;},a)},uX=function(a,b){Eb.call(this);this.desc=a;this.status=b||0};t(uX,Eb);var wX=function(a){Q(this,a,"hc:rc",-1,vX)};t(wX,P);var vX=[7];wX.prototype.o=function(){var a=new E;xX(this,a);return F(a)};
var xX=function(a,b){var c=R(a,1);null!=c&&J(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&L(b,5,c);c=R(a,6);null!=c&&M(b,6,c);c=X(a,yX,7);0<c.length&&O(b,7,c,zX);c=R(a,8);null!=c&&H(b,8,c);c=R(a,9);null!=c&&L(b,9,c);c=R(a,10);null!=c&&M(b,10,c);c=R(a,11);null!=c&&M(b,11,c);c=R(a,12);null!=c&&M(b,12,c);c=R(a,13);null!=c&&M(b,13,c)},yX=function(a){Q(this,a,0,-1,null)};t(yX,P);yX.prototype.o=function(){var a=new E;zX(this,a);return F(a)};
var zX=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,4);null!=c&&J(b,4,c)};rw("hc:rc",wX);wX.prototype.U=function(){return R(this,3)};wX.prototype.P=function(a){U(this,3,a)};wX.prototype.qb=function(){return R(this,12)};var BX=function(a){Q(this,a,"hc:rcs",-1,AX)};t(BX,P);var AX=[2];BX.prototype.o=function(){var a=new E;var b=V(this,wX,1);null!=b&&N(a,1,b,xX);b=S(this,2);0<b.length&&Rv(a,2,b);return F(a)};rw("hc:rcs",BX);var CX=function(a,b,c){var d=R(c,6),e=c.U();a.then(function(a){a.a(b,void 0,d,e)})};var DX=function(a){this.a=a},FX=function(a,b,c){var d=xc();EX(a,b,c,new PV(4E3,36E5,.25,4),d.resolve);return d.a},EX=function(a,b,c,d,e){var f=GX(c,b),g=X(c,yX,7).map(function(a){return sX(f,HX(c,a,b),R(a,1))});g=mj(g);CX(a.a,4159,c);g.then(function(f){f.every(function(a){return a.dc})?(e(),CX(a.a,4160,c)):(Bj(function(){EX(a,b,c,d,e)},d.Ra()),QV(d),CX(a.a,4161,c))})},GX=function(a,b){var c=void 0===c?pX:c;return new c(b.w,R(a,11)||R(a,6),R(a,4),R(a,5)||0,R(a,6),R(a,9)||R(b,1))},HX=function(a,b,c){var d=
new KA,e=(new Date(R(b,4))).toString();U(d,2,e);e=R(b,4);U(d,133,e);e=null!=R(b,3)?R(b,3):R(a,8);U(d,30,e);U(d,3,-2);b=R(b,1);U(d,1,b);b=new rK;Y(b,4,d);b.P(a.U());d=S(c,14);U(b,11,d||[]);c=R(c,8);U(b,12,c);c=R(a,6);U(b,14,c);c=R(a,10);U(b,16,c);c=a.qb();U(b,22,c);a=R(a,13);U(b,23,a);return b};var IX=function(){this.b=64;this.a=Array(4);this.l=Array(this.b);this.g=this.f=0;this.reset()};t(IX,MR);IX.prototype.reset=function(){this.a[0]=1732584193;this.a[1]=4023233417;this.a[2]=2562383102;this.a[3]=271733878;this.g=this.f=0};
var JX=function(a,b,c){c||(c=0);var d=Array(16);if(ta(b))for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.a[0];c=a.a[1];e=a.a[2];var f=a.a[3];var g=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&
(f^b))+d[3]+3250441966&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(g<<12&4294967295|g>>>20);g=
e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(g<<5&4294967295|
g>>>27);g=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(g<<20&4294967295|
g>>>12);g=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(g<<14&4294967295|
g>>>18);g=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^
b^c)+d[7]+4139469664&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[12]+3873151461&4294967295;
f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+
(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[13]+1309151649&4294967295;
c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.a[0]=a.a[0]+b&4294967295;a.a[1]=a.a[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.a[2]=a.a[2]+e&4294967295;a.a[3]=a.a[3]+f&4294967295};
IX.prototype.update=function(a,b){m(b)||(b=a.length);for(var c=b-this.b,d=this.l,e=this.f,f=0;f<b;){if(0==e)for(;f<=c;)JX(this,a,f),f+=this.b;if(ta(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.b){JX(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.b){JX(this,d);e=0;break}}this.f=e;this.g+=b};
IX.prototype.digest=function(){var a=Array((56>this.f?this.b:2*this.b)-this.f);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.g;for(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 d=0;32>d;d+=8)a[c++]=this.a[b]>>>d&255;return a};var LX=function(a,b){var c=this;this.f=a;this.g=b;this.a=new eA;this.b=new DA("realtime.media.call.PersistentReportingService");Ca(requestIdleCallback)?requestIdleCallback(function(){KX(c)}):Bj(function(){KX(c)})},NX=function(a){if(!pN(a,MX)){var b=VR(a,GR);a.registerService(MX,new LX(new DX(b),b))}},QX=function(a,b,c,d,e,f){if(!OX(a,"Could not save RecentCallSummary because storage was unavailable")||0===e.length)return null;var g=new wX;g.P(c);c=Ka();U(g,1,c);c=PX(R(b,7),c);U(g,2,c);c=R(b,2);U(g,
4,c);c=R(b,5);U(g,5,c);c=d.b;U(g,6,c);b=R(b,6);U(g,11,b);hw(g,7,e);m(f)&&U(g,8,f);(e=d.f)&&U(g,10,e);(e=d.qb())&&U(g,12,e);(d=d.a)&&U(g,13,d);d=new BX;Y(d,1,g);e="rcsprs_"+c;d=d.ia();a.a.set(e,d);return g},PX=function(a,b){a+=b;b=new IX;b.update(a,a.length);return String.fromCharCode.apply(String,b.digest())},RX=function(a,b){if(OX(a,"Could not load RecentCallSummary because storage was unavailable")&&(b=a.a.get(b),null!==b))try{var c=Ai(b);return new BX(c)}catch(d){EA(a.b,String(d))}return null},
TX=function(a,b,c){var d=R(c,6);FX(a.f,b,c).then(function(){var b="rcsprs_"+d,c=RX(a,b);if(null!==c&&!SX(c)){var g=S(c,2).concat([1]);U(c,2,g||[]);c=c.ia();a.a.set(b,c)}})},OX=function(a,b){if(a.a.isAvailable())return!0;EA(a.b,b);return!1},KX=function(a){if(OX(a,"Could not delete old RecentCallSummaries because storage was unavailable")){for(var b=Ka()-3456E5,c=new Map,d="",e=0,f=0;f<a.a.da();f++){var g=a.a.key(f);if(null!==g&&0==g.lastIndexOf("rcsprs_",0)){var l=RX(a,g);if(null!==l&&null!=R(l,1)){var r=
V(l,wX,1);R(r,1)>e&&(d=g,e=R(r,1));(R(r,1)<b||SX(l))&&c.set(g,l)}else c.set(g,l)}}c.delete(d);c.forEach(function(b,c){a.a.remove(c);b&&null!=R(b,1)&&!SX(b)&&CX(a.g,4162,V(b,wX,1))})}},MX=new pB("jHJQ3b");function SX(a){return-1!==S(a,2).indexOf(1)};var UX=function(){this.a=0;this.b=xc();this.f=null};UX.prototype.then=function(a,b,c){return this.b.a.then(a,b,c)};UX.prototype.get=function(){return this.f};Zi(UX);var VX=function(){this.a=new UX};VX.prototype.resolve=function(a){var b=this;0==this.a.a&&(this.a.b.resolve(a),$i(a)?(a.then(function(a){return WX(b,a)},function(){return WX(b,null)}),this.a.a=1):WX(this,a))};var WX=function(a,b){a.a.a=2;a.a.f=b};VX.prototype.reject=function(a){0==this.a.a&&(this.a.a=2,this.a.b.reject(a))};var YX=function(a){var b=this;this.a=new eA;this.g=this.hb=null;this.m=VR(a,jW).then(function(c){b.hb=c;XX&&VR(a,MX,NX).then(function(a){b.g=a;for(var d=Ka()-3456E5,f=0;f<a.a.da();){var g=a.a.key(f++);null!==g&&0==g.lastIndexOf("rcsprs_",0)&&(g=RX(a,g),null!==g&&null!=R(g,1)&&(g=V(g,wX,1),R(g,1)<d||null==R(g,8)||TX(a,c,g)))}});return c});this.Le=null;this.w=VR(a,HR,mX).then(function(a){return this.Le=a},null,this);this.h=xc();this.u=this.h.a;this.f=null;this.b=!1;this.hf=[];this.Af=this.l=!1},ZX=
function(a){pN(a,ER)||a.registerService(ER,new YX(a))},$X=function(a){return y(a.a.b.S()).map(function(a){var b=new yX;U(b,1,a.b.a);var d=a.fa();U(b,2,d);U(b,3,a.fb);a=a.ci();U(b,4,a);return b})},XX=!1,bY=function(a){a.Af||aY(a);return a.f||!1},cY=function(a,b){a.hb?b():a.m.then(b)},dY=function(a,b){a.Le?b():a.w.then(b)};YX.prototype.hl=function(a){eY(this,a);fY(this,a);if(XX){var b=a.b,c=a.Ha.get()||"",d=a.K;a=$X(a);QX(this.g,b,c,d,a)}};
YX.prototype.Mh=function(a){fY(this,a);$b(this.hf,a);if(XX){var b=a.b,c=a.Ha.get()||"",d=a.K,e=$X(a),f=a.onDisconnect.get();a=this.g;(c=QX(a,b,c,d,e,f))&&TX(a,b,c)}};
var aY=function(a,b){cY(a,p(function(){this.Af=!0;this.b=null;var a=xc();a.a.then(p(this.s,this),p(this.v,this,b));var d=R(this.hb,10);if(null!=d){null!=b&&(d=Gj(d,"set",String(b)));var e=Li(Ji);e.open("GET",d,!0);e.onreadystatechange=function(){4==e.readyState&&(200==e.status?a.resolve(e.responseText):a.reject(null))};e.send(null)}else a.reject(null)},a))};YX.prototype.s=function(a){this.b="true"==a;gY(this)};YX.prototype.v=function(a){this.b=m(a)?a:bY(this);gY(this)};
var gY=function(a){a.h.resolve();null===a.f&&(a.f=a.b,x(a.hf,function(a){hY(a.a,bY(this))},a));a.b!=a.f&&aY(a,bY(a))},eY=function(a,b){if(!a.l){a.l=!0;var c=iY(a);null!=c&&(jY(a,c)&&kY(a,c),b=b.Ha,c.U()==b.get()&&6E4>Ka()-R(c,1)&&a.u.then(function(){bY(this)&&dY(this,p(function(){x(X(c,yX,7)||[],function(a){R(a,2);c.U()},this)},this))},void 0,a))}},jY=function(a,b){var c=3456E5>Ka()-R(b,1),d;(d=!XX)||(d=R(b,6),a=RX(a.g,"rcsprs_"+d),d=0==(null===a?0:SX(a)?1:2));a=d;return null!=R(b,8)&&c&&a},kY=function(a,
b){if(null!=R(b,4)&&null!=R(b,5)&&null!=R(b,6)&&0!=(X(b,yX,7)||[]).length){var c=GX(b,a.hb);x(X(b,yX,7),function(a){sX(c,HX(b,a,this.hb),R(a,1))},a)}},lY=function(a){var b=iY(a);if(null==b||null==R(b,4)||null==R(b,5)||null==R(b,6)||0==(X(b,yX,7)||[]).length)return[];var c=GX(b,a.hb);return Nb(X(b,yX,7),function(a){return qX(c,HX(b,a,this.hb),R(a,1))},a)},iY=function(a){if(!a.a.isAvailable())return null;var b=a.a.get("report_luak");a.a.remove("report_luak");if("hc:rc"!=JSON.parse(b||"[]")[0])return null;
b=new wX(JSON.parse(b));a=PX(R(a.hb,7),R(b,1));return R(b,2)==a?b:null},fY=function(a,b){if(a.a.isAvailable()){var c=new wX;c.P(b.Ha.get());var d=Ka();U(c,1,d);d=PX(R(a.hb,7),d);U(c,2,d);d=R(a.hb,2);U(c,4,d);d=R(a.hb,5);U(c,5,d);U(c,6,b.B);d=R(a.hb,6);U(c,11,d);d=$X(b);0!=d.length&&(hw(c,7,d),d=b.onDisconnect,2==d.a&&(d=d.get(),U(c,8,d)),b=b.K,(d=b.f)&&U(c,10,d),(d=b.qb())&&U(c,12,d),(b=b.a)&&U(c,13,b),a.a.set("report_luak",c.ia()))}};var mY=function(){B.call(this)};t(mY,SQ);var nY=function(){B.call(this)};t(nY,B);var oY=function(a){A.call(this,"zb");this.a=y(a)};t(oY,A);var qY=function(){Jh.call(this);this.b=[];this.a=new pY(p(this.f,this));this.l(this.a)};t(qY,Jh);qY.prototype.f=function(a){x(this.b,function(b){a=b.filter(a)});return a};var pY=function(a){B.call(this);this.g=a;this.b=[];this.a=!1};t(pY,nY);var rY=function(a,b){a.b=y(b);a.a||(a.a=!0,kh(a.f,a))};pY.prototype.f=function(){this.a=!1;this.dispatchEvent(new oY(this.g(this.b)))};var sY=function(){this.j=Ih("realtime.media.apiary.Parser")};sY.prototype.l=function(a){var b=new OF;U(b,1,a.a);U(b,2,a.b);b.Fc(a.width);b.Cc(a.height);return b};sY.prototype.v=function(a){var b=+R(a,1),c=+R(a,2),d=+R(a,3);a=+R(a,4);return null!=b&&null!=c&&null!=d&&null!=a?new NN(b,c,d,a):null};
var vY=function(a,b,c,d,e){var f=new uF;null!=b.m&&f.qa(b.m);U(f,7,e?2:1);e=[];null!=c&&(xF(f,[c]),null!=d&&(e=d));e=e.concat(y(b.b.g));c=b.a;null!=c&&(e=e.concat(y(c.g)));c=[];d=tY([b.b,b.a,b.f]);a=uY(a,d,e,b.g,y(b.h));a.Ta(4);c.push(a);wF(f,c);b=Nb(b.l.S(),function(a){var b=new rF,c=a.getChannelId();U(b,1,c);U(b,2,a.g);c=a.ec();U(b,4,c);switch(c){case "collections":U(b,5,1);break;case "msodc":U(b,5,2)}a=a.a;null!=a&&U(b,3,a);return b});hw(f,5,b);return f},AY=function(a,b,c){var d=null,e=null,f=
null,g=null,l=[],r=m(c)?c:!0;c=b.h();var u=X(b,mF,4);if(0<u.length){f=wY(a,u[0]);d=iP(xY(f,"a"),S(b,10));e=xY(f,"v");f=xY(f,"d");var z=V(u[0],hF,2);z&&(g=yY(a,z,r));(r=X(u[0],UE,4))&&(l=zY(a,r,a.Hl,a)||[])}a=Nb(X(b,rF,5),function(a){return new HO(a.getChannelId(),R(a,2),R(a,3),a.ec())},a);return new sP(d,e,f,null==c?void 0:c,a,g,l)},xY=function(a,b){var c=Mb(VO(a),function(a){return a.Y()==b}),d="d"==b?a.f:null;if(0==c.length&&null==d)return null;var e=Mb(y(a.a),function(a){return a.Y()==b});a=Mb(y(a.g),
function(a){return a.Y()==b});return ZO(cP(new TO(b,c,e),a),d)},uY=function(a,b,c,d,e){var f=new mF;f.Ta(BY(a,b.V())||void 0);var g=Nb(VO(b),a.Bk,a);hw(f,3,g);e=Nb(e,a.Zg,a);hw(f,4,e);e=Nb(y(b.a),a.Ck,a);hw(f,5,e);if(null!=d){e=new hF;a:{g=d.ub();switch(g){case "GICE":g=1;break a;case "ICE":g=2;break a}C(a.j,"Unknown ICE version: "+g);g=void 0}U(e,1,g);U(e,4,d.f);U(e,5,d.b);g=Nb(y(d.g),a.a,a);hw(e,6,g);if(g=d.a)d=new jF,g=g.split(" "),U(d,1,g[0]),U(d,2,g[1]),Y(e,2,d);Y(f,2,e)}b.f&&(d=b.f.getName(),
U(f,8,d));b.b&&(b=b.b,d=new LE,-1!=b.b&&U(d,1,b.b),-1!=b.a&&U(d,2,b.a),-1!=b.f&&U(d,3,b.f),Y(f,7,d));a=Nb(c,a.f,a);hw(f,6,a);return f};sY.prototype.f=function(a){var b=new ZE;U(b,2,a.b);var c=new WE;c.Cc(YP(a));c.Fc(XP(a));U(c,3,a.a);Y(b,3,c);c=new aF;Y(c,2,b);c.Ta(BY(this,a.Y())||void 0);return c};
var tY=function(a){for(var b=[],c=[],d=[],e=null,f=null,g=0;g<a.length;g++)null!=a[g]&&(b=b.concat(VO(a[g])),c=c.concat(y(a[g].a)),d=d.concat(y(a[g].g)),!e&&a[g].f&&(e=a[g].f),!f&&a[g].b&&(f=a[g].b));return ZO(fP(cP($O(YO(a[0],b),c),d),f),e)},wY=function(a,b){var c=CY(a,b.Y());if(null==c)return null;var d=zY(a,X(b,OE,3),a.Gl,a)||[],e=zY(a,X(b,cF,5),p(function(a){var b=c||void 0;var d=R(a,2)||"";var e=a.getId();b=CY(this,a.Y(),b);null!=d&&null!=e?(a=new LO,a.b=d,d=MO(a,e),b&&(d.a=b),d=d.T()):(C(this.j,
"Missing RTP header extension id or uri: "+a),d=null);return d},a))||[],f=[];x(X(b,aF,6),function(a){var b=CY(this,a.Y());null!=b&&(a=DY(V(a,ZE,2),b,"",""),f.push(a))},a);a=null;(b=R(b,8))&&(a=SO(QO(RO(new PO,b),5E3),256).T());return ZO(cP(new TO(c,d,e),f),a)},BY=function(a,b){switch(b){case "a":return 1;case "v":return 2;case "d":return 3}C(a.j,"Unknown media type: "+b)},CY=function(a,b,c){switch(b){case 1:return"a";case 2:return"v";case 3:return"d";case 4:return"a"}if(m(c))return c;C(a.j,"Unknown media type: "+
b);return null};h=sY.prototype;h.Bk=function(a){var b=new OE;b.Ta(BY(this,a.Y()));U(b,1,a.Mb);SE(b,a.getName());TE(b,Nb(y(a.hd),function(a){var b=new QE,c=a.getKey();U(b,1,c);a=a.Ra();U(b,2,a);return b},this));var c=a.f;U(b,5,null==c?0:c);U(b,6,a.b);U(b,7,a.a);return b};
h.Gl=function(a){var b=CY(this,a.Y()),c=R(a,1),d=a.getName();if(null==b||null==c||null==d)return C(this.j,"Bad codec: "+a),null;var e=BO(AO(zO(new yO,b),c),d);b=R(a,5);null!=b&&(e.b=b);b=R(a,6);null!=b&&CO(e,b);b=R(a,7);null!=b&&DO(e,b);x(X(a,QE,8),function(a){var b=a.getKey()||"";a=a.Ra()||"";EO(e,b,a)},this);return e.T()};
h.Zg=function(a){a:{var b=a.a;switch(b){case "AES_CM_128_HMAC_SHA1_32":b=2;break a;case "AES_CM_128_HMAC_SHA1_80":b=1;break a}C(this.j,"Unknown crypto suite: "+b);b=null}if(null==b)return C(this.j,"Unknown crypto suite: "+a.a),null;var c=new UE;U(c,1,b);U(c,2,a.f);U(c,3,a.g||void 0);U(c,4,a.b);return c};
h.Hl=function(a){a:{var b=R(a,1);switch(b){case 2:b="AES_CM_128_HMAC_SHA1_32";break a;case 1:b="AES_CM_128_HMAC_SHA1_80";break a}C(this.j,"Unknown crypto suite: "+b);b=null}if(null==b)return C(this.j,"Unknown crypto suite: "+R(a,1)),null;var c=R(a,2),d=R(a,3);if(null==c)return C(this.j,"Bad crypto: "+a),null;a=new GO;a.f=b;a.a=c;a.g=1;d&&(a.b=d);return a.T()};h.Ck=function(a){var b=new cF;U(b,2,a.a);var c=a.getId();U(b,1,c);a=a.Y();b.Ta(a?BY(this,a):void 0);return b};
var yY=function(a,b,c){a:{var d=R(b,1);switch(d){case 1:d="GICE";break a;case 2:d="ICE";break a}C(a.j,"Unknown ICE version: "+d);d=null}if(null==d)return null;c=c&&"ICE"===d?"lite":"full";var e=R(b,4)||"",f=R(b,5)||"";a=EY(a,X(b,eF,6));b=V(b,jF,2);var g;b&&(g=R(b,1)+" "+R(b,2));return new qP(d,e,f,g,a,c)},EY=function(a,b){return zY(a,b,p(function(a){b:{var b=R(a,1);switch(b){case 1:b=1;break b;case 2:b=2;break b}C(this.j,"Unknown ICE component: "+b);b=null}var c=R(a,6);null!=c||(c=0);var f=FY(this,
a.V()),g=GY(this,R(a,2)),l=R(a,3),r=a.Ba();if(b&&f&&g&&l&&r){var u=c.toString(),z=R(a,7)||"";a=R(a,8)||0;a=new qO(b,c,f,g,l,r,u,a,z)}else C(this.j,"Missing or unknown candidate parmeters: "+a),a=null;return a},a))||[]};
sY.prototype.a=function(a){var b=new eF;a:{var c=a.nc;switch(c){case 1:c=1;break a;case 2:c=2;break a}C(this.j,"Unknown ICE component: "+c);c=void 0}U(b,1,c);a:{c=a.wc;switch(c){case "UDP":c=1;break a;case "TCP":c=2;break a;case "SSLTCP":c=3;break a}C(this.j,"Unknown candidate protocol: "+c);c=void 0}U(b,2,c);U(b,3,a.Xc);c=a.Ba();U(b,4,c);c=HY(this,a.V());U(b,5,c);U(b,6,a.fd);U(b,7,a.Od);U(b,8,a.Rc);return b};
var GY=function(a,b){switch(b){case 1:return"UDP";case 2:return"TCP";case 3:return"SSLTCP"}C(a.j,"Unknown candidate protocol: "+b);return null},HY=function(a,b){switch(b){case "LOCAL":return 1;case "PEER_REFLEX":return 2;case "STUN":return 3;case "RELAY":return 4}C(a.j,"Unknown candidate type: "+b)},FY=function(a,b){switch(b){case 1:return"LOCAL";case 2:return"PEER_REFLEX";case 3:return"STUN";case 4:return"RELAY"}C(a.j,"Unknown ICE type: "+b);return null},IY=function(a,b,c,d){var e=new VF;e.Pf(2);
null!=b&&e.qa(b);e.P(c);e.pa(d.N());e.Ta(BY(a,d.Y()));b=d.ga();U(e,7,b);e.Qf(d.Wa());"v"==d.Y()&&U(e,11,d.ye());b=new ZF;c=d.pc();U(b,1,c);e.Xd(b);b=new XF;c=d.mb();U(b,1,c||[]);d.a&&(c=y(d.a.a),U(b,3,c||[]));a=Nb(y(d.f),a.g,a);hw(b,2,a);Y(e,8,b);return e},JY=function(a,b){return zY(a,b,a.m,a)||[]};
sY.prototype.m=function(a){var b=CY(this,a.Y());if(null==b)return C(this.j,"Unknown stream media type: "+a),null;var c=a.N(),d=a.ga(),e=a.Wa();if(null==c||null==d||null==e)return C(this.j,"Missing stream parmeters: "+a),null;var f=V(a,ZF,10);f=f&&f.pc()||!1;var g=null!=R(a,11)?R(a,11):!0,l=[],r=[],u=[];a=V(a,XF,8);null!=a&&(l=zY(this,S(a,1),this.b,this)||[],r=zY(this,X(a,bG,2),this.h,this)||[],u=S(a,3));a=null;0<u.length&&(a=IN(new HN,u).T());return aO($N(dO(eO(bO(ZN(YN(XN(WN(VN(UN(new TN,b),c),d),
e),f),g||!1),l),r),a),e),e).T()};sY.prototype.b=function(a){return a>>>0};sY.prototype.g=function(a){var b=new bG;U(b,1,a.a);a=a.mb();U(b,2,a||[]);return b};sY.prototype.h=function(a){var b=zY(this,S(a,2),this.b)||[],c=R(a,1);return null==c?(C(this.j,"Unknown ssrc group semantics: "+a),null):MN(LN(new KN,c),b).T()};var KY=function(a,b){return zY(a,b,a.u,a)||[]};
sY.prototype.u=function(a){var b=CY(this,a.Y());if(null==b)return C(this.j,"Unknown stream request media type: "+a),null;var c=a.N(),d=a.ga();if(null==c||null==d)return C(this.j,"Missing stream request parmeters: "+a),null;a=V(a,ZE,9);return DY(a,b,c,d)};
var DY=function(a,b,c,d){var e=!1,f=void 0,g=void 0;if(null!=a&&R(a,2)&&(e=R(a,2),null==e&&(e=void 0),null!=V(a,WE,3))){var l=R(V(a,WE,3),2),r=R(V(a,WE,3),1);g=R(V(a,WE,3),3);null==g&&(g=void 0);null!=l&&null!=r&&(f=new fe(l,r))}return new UP(c,d,b,f,g,e)},zY=function(a,b,c,d){null!=d&&(c=p(c,d));if(null==b||!Aa(b))return null;d=[];for(var e=0;e<b.length;e++){var f=b[e];if(null==f)return C(a.j,"Failed to parse: "+b),null;var g=c(f);if(null==g)return C(a.j,"Failed to parse: "+f),null;d.push(g)}return d};var LY=function(a,b,c){A.call(this,"Ab");this.state=b;this.sessionId=c};t(LY,A);var MY=function(a,b,c,d){if(null==a)return d=Ih("realtime.media.apiary.RpcEventDispatcher"),Ei(d,"Failed to report impression on RPC request because thenable is null for rpc "+b+"with sessionId "+c),hj();b=a.then();d.dispatchEvent(new LY(0,"ta",c));var e=Bj(b.cancel,9E4,b),f=!1;rj(b,function(a){f=!0;return a}).then(function(a){Cj(e);var b="ua";a instanceof bj?b="wa":f&&(b="va");nb(yb(c))&&(1>a.length||!(a[0]instanceof uF)?c=null:(a=a[0],c=null!=a?a.h():null));this.dispatchEvent(new LY(0,b,c))},null,
d);return b};var NY=function(){uR(this)};xa(NY);var OY=function(a,b,c,d,e){return a.oa.h(b,c,d,e)},PY=function(){};t(PY,VM);WM(PY,NY);PY.prototype.b=bN();PY.prototype.h=bN();PY.prototype.g=bN();PY.prototype.f=bN();var QY=function(a,b,c){Jh.call(this);this.s=null!=c?p(a,c):a;this.v=b;this.m=p(this.Pk,this);this.b=!1;this.f=0;this.g=this.a=null;this.h=[]};t(QY,Jh);h=QY.prototype;h.Ok=function(a){this.h=arguments;this.b=!1;this.a?this.g=Ka()+this.v:this.a=Bj(this.m,this.v)};h.stop=function(){this.a&&(Cj(this.a),this.a=null);this.g=null;this.b=!1;this.h=[]};h.pause=function(){++this.f};h.resume=function(){this.f&&(--this.f,!this.f&&this.b&&(this.b=!1,this.s.apply(null,this.h)))};h.W=function(){this.stop();QY.aa.W.call(this)};
h.Pk=function(){this.g?(this.a=Bj(this.m,this.g-Ka()),this.g=null):(this.a=null,this.f?this.b=!0:(this.b=!1,this.s.apply(null,this.h)))};var RY=function(a,b,c,d,e,f,g){HW.call(this,0,b,c,d,e,f,g);this.Pa=e;this.a=-1;this.m=!1;this.ea=-1;this.f=[];this.ka=this.R=this.ra=this.ma=null;this.A=!1;this.bb=0;this.K=null;this.h=new PV(T(this.config,2,1E3),T(this.config,3,6E4));this.Xa=new QY(this.Ug,0,this)};t(RY,HW);RY.prototype.start=function(a){RY.aa.start.call(this,a);if("la"!=this.state)return null;this.Sa.listen(this.B,"qb",this.Lh);SY(this,!0);D(this.G,"Starting initial resync.");return TY(this,"Ca",!0)};
RY.prototype.la=function(){RY.aa.la.call(this);this.Sa.v(this.B,"qb",this.Lh);Cj(this.ka);this.ka=null;this.h.reset();Cj(this.ra);this.ra=null;Cj(this.R);this.K=this.R=null;this.m=!1};RY.prototype.query=function(a,b){return UW(this,this.Pa.Wb(this.M(a)),null,b)};RY.prototype.search=function(a){return UW(this,this.Pa.jc(pw(this.g)),null,a)};
var VY=function(a,b){"Ba"!=b&&0==a.h.a&&a.B.dispatchEvent("qb");Fi(a.G,"Starting sync. Type: "+b);var c="Da"==b||"Ea"==b,d=a.Pa.jc(pw(a.g)),e=-2;T(a.config,11,!1)&&(9E4>Ka()-a.bb&&d.eg(a.a)?e=a.a:a.bb=Ka());d=UW(a,d,function(a){return e!=a.qd?new UY(a.qd,a.data,b):null});rj(d.then(p(a.El,a,c)),p(a.Dl,a,c));a.ma=d;rj(a.ma,wa);return d};h=RY.prototype;h.Zc=function(a){return 0<=a};h.Lh=function(){TY(this,"Ba",!0)};h.Pd=function(){return null!=TY(this,"Fa",!0)||this.ma?this.ma:hj("Collection not yet started, so cannot resync.")};
h.Kf=function(a){var b=!1,c=a.notification.Ka();null!=c&&""!=c&&(b=this.b.l(c),b=$W(this,b),b=aX(this,b));b?this.Pd():RY.aa.Kf.call(this,a)};h.xh=function(a){var b;Ca(a.notification.C)&&null!=a.notification.C()&&(b=a.notification.C().ub());return b};
h.Lf=function(a){Fi(this.G,"Begin processing update: "+a);var b=a.a==this.ea;this.ea=Math.max(this.ea,a.a);SY(this,!1);if(a instanceof UY)WY(this,a);else{XY(this,a.b,a.f);if(this.Zc(this.a)&&a.a<=this.a){"ha"==a.g&&WW(this,"o");var c=!1;b&&(WW(this,"p"),c=!0);100<this.a-a.a&&(WW(this,"q"),c=!0);c&&TY(this,"Ga",!0);WW(this,"n");Fi(this.G,"Ignoring update "+a+" below or equal to local version ("+this.a+")");return}b=Sb(this.f,function(b){return b.a<=a.a},this);if(null!=b&&a.a==b.a){WW(this,"n");C(this.G,
"Duplicate update received, ignoring it.");return}Fi(this.G,"Queuing partial update: "+a);Yb(this.f,a,b)}a instanceof UY?this.Ug():this.Xa.Ok();Fi(this.G,"Finish processing update: "+a+": "+this.Hb())};
var XY=function(a,b,c){a.Zc(a.a)||(Fi(a.G,"Dispatch early notification: "),a.dispatchEvent(new YY(b,c)))},TY=function(a,b,c){if(!PW(a)||a.A)return null;a.h.reset();var d=null;a.A=!0;c?d=VY(a,b):ZY(a);return d},$Y=function(a){a.A&&(D(a.G,"Ending resync"),a.A=!1,a.dispatchEvent("xb"))},ZY=function(a){var b=a.h.Ra();WW(a,"t");D(a.G,"Scheduling resync timer, backoff count: "+a.h.a+", backoff: "+b);a.ka=Bj(a.Cl,b,a)};h=RY.prototype;
h.Cl=function(){D(this.G,"Resync timer triggered, "+this.Hb());this.ka=null;PW(this)?(WW(this,"u"),VY(this,"Ga")):$Y(this)};
h.El=function(a){D(this.G,(a?"Poll":"Resync")+" operation executed, "+this.Hb());aZ(this,!1);if(this.m||!PW(this))$Y(this);else{a=!1;var b=T(this.config,5,4);this.h.a>=b?(WW(this,"s"),D(this.G,"Hard sync threshold reached ("+b+"), doing a hard resync"),a=!0):this.f.length>T(this.config,4,64)&&(WW(this,"r"),Fi(this.G,"Number of queued updates is larger than the max ("+T(this.config,4,64)+"), clearing the queue"),a=!0);a?(Vb(this.f),this.h.reset(),VY(this,"Ha")):(QV(this.h),ZY(this))}};
h.Dl=function(a,b){var c=(a?"Poll":"Resync")+" error: "+b;Ei(this.G,c,b instanceof Error?b:Error(c));WW(this,a?"F":"v");aZ(this,!0);PW(this)?(QV(this.h),ZY(this)):$Y(this)};h.Hb=function(){return RY.aa.Hb.call(this)+", is synced: "+this.m+", is resyncing: "+this.A+", queue size: "+this.f.length+", highest observed server version: "+this.ea+(0<this.f.length?", smallest queued version: "+Jb(this.f).a+", largest queued version: "+this.f[0].a:"")};
h.Ug=function(){this.Xa.stop();if(0!=this.f.length&&this.Zc(this.a)){Fi(this.G,"Trying to apply any queued updates, "+this.Hb());for(var a=0;0<this.f.length&&Jb(this.f).a<=this.a;){var b=this.f.pop();Fi(this.G,"Tossing queued update "+b+" below or equal to local version ("+this.a+")");a++}0<a&&Fi(this.G,"Tossed "+a+" queued old updates below or equal to local version ("+this.a+")");for(a=0;0<this.f.length;)if(b=Jb(this.f),b.a==this.a)this.f.pop(),a++;else if(b.a==this.a+1)this.a=b.a,fX(this,b),this.f.pop(),
a++;else{Fi(this.G,"Unable to incrementally apply next queued update,  lowest queue update version: "+b.a+", local version:"+this.a+", remaining queue length: "+this.f.length);break}Fi(this.G,"Applied "+a+" queued updates")}(this.m=0==this.f.length&&this.Zc(this.a))?NW(this):TY(this,"Ga",!1)};h.Th=function(a){PW(this)&&(WW(this,"w"),D(this.G,"Executing poll sync operation"),TY(this,a,!0),SY(this,!0))};
var SY=function(a,b){if(PW(a)){D(a.G,"Scheduling next poll for "+T(a.config,1,3E4)/1E3+" seconds from now");Cj(a.ra);a.ra=Bj(Ja(a.Th,"Da"),T(a.config,1,3E4),a);var c=T(a.config,9,9E4);null!=c||(c=9E4);b&&0<c&&(Cj(a.R),a.R=Bj(Ja(a.Th,"Ea"),c,a))}},aZ=function(a,b){if(b)if(null!=a.K){b=Ka()-a.K;var c="Sync operations failing for a period of "+b/1E3+" seconds (limit configured to: "+T(a.config,6,3E5)/1E3+" seconds).";C(a.G,c);b>=T(a.config,6,3E5)&&cX(a,22,c)}else a.K=Ka(),C(a.G,"Sync operation failed, we will continue retrying for up to "+
T(a.config,6,3E5)/1E3+" seconds before shutting down...");else a.K=null},WY=function(a,b){Fi(a.G,"Processing full update: "+b);Di(a.G,Bh,"Snapshot: ["+b.data.join("|")+"]");if(a.a>=b.a&&100>a.a-b.a){var c=[];if(a.a==b.a){var d={};x(b.data,function(a){var b=OW(this,a);d[b]=!0;b=this.data[b]||null;b==a||b instanceof a.constructor&&bZ(JSON.parse(b.ia()),JSON.parse(a.ia()))||c.push({local:b&&b.ia(),server:a.ia()})},a);oc(a.data,function(a,b){d[b]||c.push({local:a.ia(),server:null})},a)}if(0!=c.length)C(a.G,
"Reapplying update with version that's the same, update: "+b.a+", local: "+a.a+", type: "+b.b),WW(a,"E",c);else{WW(a,"B");switch(b.b){case "Ga":WW(a,"C");break;case "Da":WW(a,"D")}Fi(a.G,"Ignoring update with version not newer than local version, update: "+b.a+", local: "+a.a+", type: "+b.b);return}}a.a>b.a&&100<a.a-b.a&&WW(a,"q",""+(a.a-b.a));WW(a,"x");switch(b.b){case "Da":WW(a,"z");break;case "Ga":WW(a,"y");break;case "Ha":WW(a,"A")}var e=Mb(b.data,function(a){if(CW(this.b,a))return!0;WW(this,
"G","Full update: "+a.ia());return!1},a),f=[];d={};x(b.data,function(a){d[OW(this,a)]=!0},a);oc(a.data,function(a,b){d[b]||f.push($W(this,a))},a);Fi(a.G,"Applying full update as partial and advancing version from "+a.a+" to "+b.a);a.a=b.a;fX(a,new JW(b.a,e,f,"ja"))},bZ=function(a,b){var c=Aa(a),d=Aa(b);if(c&&d){c={};for(var e in a)a.hasOwnProperty(e)&&(c[e]=0);for(e in b)b.hasOwnProperty(e)&&(c[e]=0);for(e in c)if(!bZ(a[e],b[e]))return!1;return!0}return a==b||null==a&&d&&0==b.length||null==b&&c&&
0==a.length},UY=function(a,b,c){jX.call(this,a);this.data=b;this.b=c};t(UY,jX);UY.prototype.toString=function(){return"[Full update id: "+this.id+", version: "+this.a+", resource count: "+this.data.length+", sync type: "+this.b+"]"};var YY=function(a,b){A.call(this,"vb");this.a=a;this.removed=b};t(YY,A);var dZ=function(a,b,c,d,e){Jh.call(this);this.g=a;this.A=b;this.I=c||this.F;this.w=d||null;this.B=e||null;this.b=-1;this.s=xc();this.a=null;this.f=!1;this.m=0;this.v=this.h=void 0;this.ua=++cZ};t(dZ,Jh);var cZ=0;dZ.prototype.eg=function(a){this.b=a;eZ(this);return!0};dZ.prototype.Uc=function(){return this.s};dZ.prototype.Ne=function(){return this.s.a};dZ.prototype.Ce=function(){return this.f};var fZ=function(a){null==a.a&&(a.a=a.A(),eZ(a));return a.a};h=dZ.prototype;h.Oe=function(a){this.m=a};
h.Qd=function(){return this.m};h.Ve=function(a,b){m(b)&&(b=Math.max(a,b));this.h=a;this.v=b};h.gd=function(){return this.h};h.Me=function(){return this.v};var eZ=function(a){if(null!=a.a&&-1!=a.b){var b=a.a;if(Ca(b.D)){var c=new Z;U(c,1,a.b);b.D(c)}else Ca(b.O)&&b.O()}};dZ.prototype.vf=function(){return fZ(this).toString()};dZ.prototype.toString=function(){return"[Operation id: "+this.ua+": "+this.g+", version: "+this.b+"]"};dZ.prototype.F=function(){return[]};var gZ=function(){Eb.call(this)};
t(gZ,Eb);gZ.prototype.message="Operation has already been executed.";gZ.prototype.name="AlreadyExecutedError";var hZ=function(a){this.a=a};t(hZ,xW);var iZ=function(a){this.a=a};t(iZ,hZ);h=iZ.prototype;h.Ub=function(a){return new dZ("hangout_participants/add",function(){var b=new AE;hw(b,6,a);return b},function(a){return X(a,tE,5)})};h.Vb=function(a){return new dZ("hangout_participants/modify",function(){var b=new qJ;hw(b,4,a);return b},function(a){return X(a,tE,4)})};h.ic=function(a,b){var c=b&&b.jYdIne||0;return new dZ("hangout_participants/remove",function(){var b=new wJ;xJ(b,a);U(b,5,c);return b})};
h.Wb=function(a){return new dZ("hangout_participants/query",function(){var b=new tJ;b.P(a.U());b.pa(a.N());return b},function(a){return[V(a,tE,2)]})};h.jc=function(a){return new dZ("hangout_participants/search",function(){var b=new CE;b.P(a.U());return b},function(a){return X(a,tE,2)},jG.prototype.h,VG.prototype.h)};var jZ=function(a){this.a=a};t(jZ,hZ);h=jZ.prototype;h.Ub=function(a){return new dZ("hangouts/add",function(){var b=new SD;hw(b,4,a);return b},function(a){return X(a,PD,5)})};h.Vb=function(a){return new dZ("hangouts/modify",function(){var b=new mJ;hw(b,4,a);return b},function(a){return X(a,PD,4)})};h.ic=function(){return null};h.Wb=function(a){return new dZ("hangouts/query",function(){var b=new EE;b.P(a.U());return b},function(a){return[V(a,PD,2)]},jG.prototype.u,VG.prototype.u)};h.jc=function(a){return this.Wb(a)};var kZ=function(a){this.a=a};t(kZ,xW);kZ.prototype.Ub=function(a){return new dZ("media_sessions/add",function(){var b=new zF;hw(b,4,a);return b},function(a){return X(a,uF,4)})};kZ.prototype.Vb=function(a){return new dZ("media_sessions/modify",function(){var b=new wK;hw(b,4,a);return b},function(a){return X(a,uF,4)})};kZ.prototype.ic=function(){return null};var lZ=function(a){this.a=a};t(lZ,hZ);h=lZ.prototype;h.Ub=function(a){return new dZ("media_sources/add",function(){var b=new RF;hw(b,4,a);return b},function(a){return X(a,DF,4)})};h.Vb=function(a){return new dZ("media_sources/modify",function(){var b=new AK;hw(b,4,a);return b},function(a){return X(a,DF,4)})};h.ic=function(){return null};h.Wb=function(a){return new dZ("media_sources/query",function(){var b=new DK;b.P(a.U());b.pa(a.N());var c=a.ga();U(b,4,c);return b},function(a){return[a.Z()]})};
h.jc=function(a){return new dZ("media_sources/search",p(function(){var b=new TF;b.P(a.U());return b},this),function(a){return X(a,DF,2)},jG.prototype.v,VG.prototype.v)};var mZ=function(a){this.a=a};t(mZ,hZ);h=mZ.prototype;h.Ub=function(a){return new dZ("media_streams/add",function(){var b=new fG;hw(b,4,a);return b},function(a){return X(a,VF,4)})};h.Vb=function(a){return new dZ("media_streams/modify",function(){var b=new GK;hw(b,4,a);return b},function(a){return X(a,VF,4)})};h.ic=function(){return null};h.Wb=function(a){return new dZ("media_streams/query",function(){var b=new JK;b.P(a.U());var c=a.Nf();U(b,2,c);b.qa(a.Of());c=a.Wa();U(b,4,c);return b},function(a){return[a.nb()]})};
h.jc=function(a){return new dZ("media_streams/search",p(function(){var b=new hG;b.P(a.U());b.qa(a.Of());var c=a.Nf();U(b,2,c);return b},this),function(a){return X(a,VF,2)},jG.prototype.s,VG.prototype.s)};var nZ=function(){return new zW(PD,[PD.prototype.U],[PD.prototype.P],[],[],sH,[sH.prototype.U],[sH.prototype.P],[],[])};var oZ=function(){return new zW(VF,[VF.prototype.U,VF.prototype.Nl,VF.prototype.Ol],[VF.prototype.P,VF.prototype.Pf,VF.prototype.qa],[VF.prototype.Wa],[VF.prototype.Qf],HH,[HH.prototype.U,HH.prototype.Nf,HH.prototype.Of],[HH.prototype.P,HH.prototype.Ll,HH.prototype.qa],[HH.prototype.Wa],[HH.prototype.Ml])};var qZ=function(a,b,c){return pZ(a,b,[c],new zW(DF,[DF.prototype.U],[DF.prototype.P],[DF.prototype.N,DF.prototype.ga],[DF.prototype.pa,DF.prototype.Mf],CH,[CH.prototype.U],[CH.prototype.P],[CH.prototype.N,CH.prototype.ga],[CH.prototype.pa,CH.prototype.Kl]),lZ,"ib")},pZ=function(a,b,c,d,e,f){var g=NY.ja();e=new e(OY(g,a,b));f=new yW(g.oa.g(a,b),f);return new RY(0,g.oa.b(a,b),c,d,e,f,g.oa.f(a,b))};var rZ=function(){uR(this)},sZ=function(a){(a=a.oa.b())||(a=(new JO).T());return a},tZ=function(){};t(tZ,VM);WM(tZ,rZ);tZ.prototype.b=bN();var uZ=function(){};t(uZ,VM);uZ.prototype.init=cN();uZ.prototype.b=cN();uZ.prototype.f=cN();var vZ={Wi:["BC","AD"],Vi:["Before Christ","Anno Domini"],mj:"JFMAMJJASOND".split(""),Sj:"JFMAMJJASOND".split(""),hj:"January February March April May June July August September October November December".split(" "),Rj:"January February March April May June July August September October November December".split(" "),Oj:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Uj:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),qk:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Wj:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Qj:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Vj:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Ip:"SMTWTFS".split(""),Tj:"SMTWTFS".split(""),Pj:["Q1","Q2","Q3","Q4"],xj:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Ji:["AM","PM"],pg:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],Mg:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],Oi:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Zi:6,Xr:[5,6],aj:5},wZ=vZ;
wZ=vZ;var xZ=function(){},zZ=function(a){if("number"==typeof a){var b=new xZ;b.b=a;var c=a;if(0==c)c="Etc/GMT";else{var d=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",xb(c,2));c=d.join("")}b.g=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=yZ(a);b.l=[c,c];b.a={sr:a,Ig:a};b.f=[];return b}b=new xZ;b.g=a.id;b.b=-a.std_offset;b.l=a.names;b.a=a.names_ext;b.f=a.transitions;return b},yZ=
function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(xb(Math.floor(a/60)%100,2),":",xb(a%60,2));return b.join("")},AZ=function(a,b){b=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5;for(var c=0;c<a.f.length&&b>=a.f[c];)c+=2;return 0==c?0:a.f[c-1]};var DZ=function(a,b){this.b=[];this.a=b||wZ;"number"==typeof a?BZ(this,a):CZ(this,a)},EZ=[/^\'(?:[^\']|\'\')*(\'|$)/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvVwzZ]+/],FZ=function(a){return a.getHours?a.getHours():0},CZ=function(a,b){for(GZ&&(b=b.replace(/\u200f/g,""));b;){for(var c=b,d=0;d<EZ.length;++d){var e=b.match(EZ[d]);if(e){var f=e[0];b=b.substring(f.length);0==d&&("''"==f?f="'":(f=f.substring(1,"'"==e[1]?f.length-1:f.length),f=f.replace(/\'\'/g,
"'")));a.b.push({text:f,type:d});break}}if(c===b)throw Error("Malformed pattern part: "+b);}};
DZ.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-(b.b-AZ(b,a))):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0<c?-864E5:864E5))));c=[];for(var f=0;f<this.b.length;++f){var g=this.b[f].text;1==this.b[f].type?c.push(HZ(this,g,a,d,e,b)):c.push(g)}return c.join("")};
var BZ=function(a,b){if(4>b)var c=a.a.pg[b];else if(8>b)c=a.a.Mg[b-4];else if(12>b)c=a.a.Oi[b-8],c=c.replace("{1}",a.a.pg[b-8]),c=c.replace("{0}",a.a.Mg[b-8]);else{BZ(a,10);return}CZ(a,c)},IZ=function(a,b){b=String(b);a=a.a||wZ;if(void 0!==a.rk){for(var c=[],d=0;d<b.length;d++){var e=b.charCodeAt(d);c.push(48<=e&&57>=e?String.fromCharCode(a.rk+e-48):b.charAt(d))}b=c.join("")}return b},GZ=!1,JZ=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");
},HZ=function(a,b,c,d,e,f){var g=b.length;switch(b.charAt(0)){case "G":return c=0<d.getFullYear()?1:0,4<=g?a.a.Vi[c]:a.a.Wi[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==g&&(c%=100),IZ(a,xb(c,g));case "M":a:switch(c=d.getMonth(),g){case 5:g=a.a.mj[c];break a;case 4:g=a.a.hj[c];break a;case 3:g=a.a.Oj[c];break a;default:g=IZ(a,xb(c+1,g))}return g;case "k":return JZ(e),IZ(a,xb(FZ(e)||24,g));case "S":return IZ(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,g)).substr(2)+(3<g?xb(0,g-3):""));case "E":return c=
d.getDay(),4<=g?a.a.qk[c]:a.a.Qj[c];case "a":return JZ(e),g=FZ(e),a.a.Ji[12<=g&&24>g?1:0];case "h":return JZ(e),IZ(a,xb(FZ(e)%12||12,g));case "K":return JZ(e),IZ(a,xb(FZ(e)%12,g));case "H":return JZ(e),IZ(a,xb(FZ(e),g));case "c":a:switch(c=d.getDay(),g){case 5:g=a.a.Tj[c];break a;case 4:g=a.a.Wj[c];break a;case 3:g=a.a.Vj[c];break a;default:g=IZ(a,xb(c,1))}return g;case "L":a:switch(c=d.getMonth(),g){case 5:g=a.a.Sj[c];break a;case 4:g=a.a.Rj[c];break a;case 3:g=a.a.Uj[c];break a;default:g=IZ(a,xb(c+
1,g))}return g;case "Q":return c=Math.floor(d.getMonth()/3),4>g?a.a.Pj[c]:a.a.xj[c];case "d":return IZ(a,xb(d.getDate(),g));case "m":return JZ(e),IZ(a,xb(e.getMinutes(),g));case "s":return JZ(e),IZ(a,xb(e.getSeconds(),g));case "v":return g=f||zZ(c.getTimezoneOffset()),g.g;case "V":return a=f||zZ(c.getTimezoneOffset()),2>=g?a.g:0<AZ(a,c)?m(a.a.Ri)?a.a.Ri:a.a.DST_GENERIC_LOCATION:m(a.a.Ig)?a.a.Ig:a.a.STD_GENERIC_LOCATION;case "w":return c=a.a.aj,e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),
b=a.a.Zi||0,c=e.valueOf()+864E5*(((m(c)?c:3)-b+7)%7-((e.getDay()+6)%7-b+7)%7),IZ(a,xb(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,g));case "z":return a=f||zZ(c.getTimezoneOffset()),4>g?a.l[0<AZ(a,c)?2:0]:a.l[0<AZ(a,c)?3:1];case "Z":return e=f||zZ(c.getTimezoneOffset()),4>g?(g=-(e.b-AZ(e,c)),a=[0>g?"-":"+"],g=Math.abs(g),a.push(xb(Math.floor(g/60)%100,2),xb(g%60,2)),g=a.join("")):g=IZ(a,yZ(e.b-AZ(e,c))),g;default:return""}};var KZ=function(a){var b=V(a,zM,1)||new zM;Y(a,1,b);return b},LZ=function(a){a=KZ(a);var b=V(a,CL,1)||new CL;Y(a,1,b);return b},MZ=function(a){var b=V(a,rM,3)||new rM;Y(a,3,b);return b};var NZ=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"file"!==a&&"android-app"!==a&&"chrome-search"!==a)throw Error("Invalid URI scheme in origin");c="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+
1);b=b.substring(0,d);if("http"===a&&"80"!==e||"https"===a&&"443"!==e)c=":"+e}return a+"://"+b+c};var OZ=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;z=u=0}function b(a){for(var b=g,c=0;64>c;c+=4)b[c/4]=a[c]<<24|a[c+1]<<16|a[c+2]<<8|a[c+3];for(c=16;80>c;c++)a=b[c-3]^b[c-8]^b[c-14]^b[c-16],b[c]=(a<<1|a>>>31)&4294967295;a=e[0];var d=e[1],f=e[2],l=e[3],r=e[4];for(c=0;80>c;c++){if(40>c)if(20>c){var u=l^d&(f^l);var z=1518500249}else u=d^f^l,z=1859775393;else 60>c?(u=d&f|l&(d|f),z=2400959708):(u=d^f^l,z=3395469782);u=((a<<5|a>>>27)&4294967295)+
u+r+z+b[c]&4294967295;r=l;l=f;f=(d<<30|d>>>2)&4294967295;d=a;a=u}e[0]=e[0]+a&4294967295;e[1]=e[1]+d&4294967295;e[2]=e[2]+f&4294967295;e[3]=e[3]+l&4294967295;e[4]=e[4]+r&4294967295}function c(a,c){if("string"===typeof a){a=unescape(encodeURIComponent(a));for(var d=[],e=0,g=a.length;e<g;++e)d.push(a.charCodeAt(e));a=d}c||(c=a.length);d=0;if(0==u)for(;d+64<c;)b(a.slice(d,d+64)),d+=64,z+=64;for(;d<c;)if(f[u++]=a[d++],z++,64==u)for(u=0,b(f);d+64<c;)b(a.slice(d,d+64)),d+=64,z+=64}function d(){var a=[],
d=8*z;56>u?c(l,56-u):c(l,64-(u-56));for(var g=63;56<=g;g--)f[g]=d&255,d>>>=8;b(f);for(g=d=0;5>g;g++)for(var r=24;0<=r;r-=8)a[d++]=e[g]>>r&255;return a}for(var e=[],f=[],g=[],l=[128],r=1;64>r;++r)l[r]=0;var u,z;a();return{reset:a,update:c,digest:d,digestString:function(){for(var a=d(),b="",c=0;c<a.length;c++)b+="0123456789ABCDEF".charAt(Math.floor(a[c]/16))+"0123456789ABCDEF".charAt(a[c]%16);return b}}};var QZ=function(a,b,c){var d=[],e=[];if(1==(Aa(c)?2:1))return e=[b,a],x(d,function(a){e.push(a)}),PZ(e.join(" "));var f=[],g=[];x(c,function(a){g.push(a.key);f.push(a.value)});c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];x(d,function(a){e.push(a)});a=PZ(e.join(" "));a=[c,a];0==g.length||a.push(g.join(""));return a.join("_")},PZ=function(a){var b=OZ();b.update(a);return b.digestString().toLowerCase()};var RZ=function(a){this.a=a||{cookie:""}};h=RZ.prototype;h.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');m(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Ka()+1E3*c)).toUTCString();this.a.cookie=a+"="+b+e+d+c+f};
h.get=function(a,b){for(var c=a+"=",d=(this.a.cookie||"").split(";"),e=0,f;e<d.length;e++){f=ob(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};h.remove=function(a,b,c){var d=this.Va(a);this.set(a,"",0,b,c);return d};h.Qa=function(){return SZ(this).keys};h.S=function(){return SZ(this).values};h.rb=function(){return!this.a.cookie};h.da=function(){return this.a.cookie?(this.a.cookie||"").split(";").length:0};h.Va=function(a){return m(this.get(a))};
h.Nc=function(a){for(var b=SZ(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};h.clear=function(){for(var a=SZ(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};var SZ=function(a){a=(a.a.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=ob(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};var TZ=function(a){var b=NZ(String(sa.location.href)),c=sa.__OVERRIDE_SID;null==c&&(c=(new RZ(document)).get("SID"));if(c&&(b=(c=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:"))?sa.__SAPISID:sa.__APISID,null==b&&(b=(new RZ(document)).get(c?"SAPISID":"APISID")),b)){c=c?"SAPISIDHASH":"APISIDHASH";var d=String(sa.location.href);return d&&b&&c?[c,QZ(NZ(d),b,a||null)].join(" "):null}return null};var UZ=!1,VZ="",WZ=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")};
(function(){if(navigator.plugins&&navigator.plugins.length){var a=navigator.plugins["Shockwave Flash"];if(a&&(UZ=!0,a.description)){VZ=WZ(a.description);return}if(navigator.plugins["Shockwave Flash 2.0"]){UZ=!0;VZ="2.0.0.11";return}}if(navigator.mimeTypes&&navigator.mimeTypes.length&&(a=navigator.mimeTypes["application/x-shockwave-flash"],UZ=!(!a||!a.enabledPlugin))){VZ=WZ(a.enabledPlugin.description);return}try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");UZ=!0;VZ=WZ(b.GetVariable("$version"));
return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");UZ=!0;VZ="6.0.21";return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),UZ=!0,VZ=WZ(b.GetVariable("$version"))}catch(c){}})();var XZ=UZ,YZ=VZ;var ZZ=Ad?"opera":Cd?"edge":Bd?"ie":iq?"firefox":jq?"iphone":kq?"ipad":lq?"android":mq?"chrome":nq?"safari":"unknown";var a_=function(){return!$Z()&&(id("iPod")||id("iPhone")||id("Android")||id("IEMobile"))},$Z=function(){return id("iPad")||id("Android")&&!id("Mobile")||id("Silk")};var b_=function(a){Q(this,a,0,-1,null)};t(b_,P);b_.prototype.o=function(){var a=new E;c_(this,a);return F(a)};var c_=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&L(b,2,c);c=R(a,3);null!=c&&L(b,3,c);c=R(a,4);null!=c&&L(b,4,c);c=R(a,5);null!=c&&L(b,5,c);c=R(a,6);null!=c&&L(b,6,c);c=R(a,7);null!=c&&L(b,7,c)},d_=function(a){Q(this,a,0,-1,null)};t(d_,P);d_.prototype.o=function(){var a=new E;e_(this,a);return F(a)};
var e_=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c)};d_.prototype.getKey=function(){return R(this,1)};d_.prototype.Ra=function(){return R(this,2)};var g_=function(a){Q(this,a,0,-1,f_)};t(g_,P);var f_=[1,2,3,4,5];g_.prototype.o=function(){var a=new E;h_(this,a);return F(a)};
var h_=function(a,b){var c=S(a,1);0<c.length&&Sv(b,1,c);c=S(a,2);0<c.length&&Sv(b,2,c);c=S(a,3);0<c.length&&Nv(b,3,c);c=S(a,4);0<c.length&&Ov(b,4,c);c=S(a,5);0<c.length&&Ov(b,5,c)},j_=function(a){Q(this,a,0,25,i_)};t(j_,P);var i_=[3,20];j_.prototype.o=function(){var a=new E;k_(this,a);return F(a)};
var k_=function(a,b){var c=R(a,1);null!=c&&Gv(b,1,c);c=R(a,17);null!=c&&Gv(b,17,c);c=R(a,21);null!=c&&J(b,21,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,11);null!=c&&H(b,11,c);c=R(a,12);null!=c&&H(b,12,c);c=R(a,10);null!=c&&K(b,10,c);c=X(a,d_,3);0<c.length&&O(b,3,c,e_);c=R(a,4);null!=c&&Mv(b,4,c);c=V(a,l_,9);null!=c&&N(b,9,c,m_);c=R(a,6);null!=c&&Mv(b,6,c);c=R(a,8);null!=c&&M(b,8,c);c=R(a,13);null!=c&&M(b,13,c);c=V(a,g_,7);null!=c&&N(b,7,c,h_);c=R(a,14);null!=c&&M(b,14,c);c=R(a,15);if(null!=c&&null!=c){var d=
c;if(null!=d){Dv(b,15,0);c=b.a;var e=d;d=0>e;e=2*Math.abs(e);var f=e>>>0;e=Math.floor((e-f)/4294967296)>>>0;iv=f;jv=e;f=iv;e=jv;d&&(0==f?0==e?e=f=4294967295:(e--,f=4294967295):f--);iv=f;jv=e;tv(c,iv,jv)}}c=V(a,n_,16);null!=c&&N(b,16,c,o_);c=R(a,18);null!=c&&Mv(b,18,c);c=R(a,24);null!=c&&M(b,24,c);c=R(a,19);null!=c&&L(b,19,c);c=S(a,20);0<c.length&&Nv(b,20,c);c=R(a,22);null!=c&&J(b,22,c);c=V(a,p_,23);null!=c&&N(b,23,c,q_);Zv(a,b,r_,j_.prototype.m)},r_={},p_=function(a){Q(this,a,0,-1,null)};t(p_,P);
p_.prototype.o=function(){var a=new E;q_(this,a);return F(a)};var q_=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&L(b,2,c)},n_=function(a){Q(this,a,0,-1,s_)};t(n_,P);var s_=[2];n_.prototype.o=function(){var a=new E;o_(this,a);return F(a)};var o_=function(a,b){var c=R(a,1);null!=c&&Mv(b,1,c);c=R(a,4);null!=c&&M(b,4,c);c=cw(S(a,2));0<c.length&&Tv(b,2,c);c=R(a,3);null!=c&&K(b,3,c)},t_=function(a){Q(this,a,0,-1,null)};t(t_,P);t_.prototype.o=function(){var a=new E;u_(this,a);return F(a)};
var u_=function(a,b){var c=R(a,1);null!=c&&K(b,1,c);c=R(a,2);null!=c&&K(b,2,c)},v_=function(a){Q(this,a,0,27,null)};t(v_,P);v_.prototype.o=function(){var a=new E;w_(this,a);return F(a)};
var w_=function(a,b){var c=R(a,1);null!=c&&J(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,18);null!=c&&J(b,18,c);c=R(a,3);null!=c&&H(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&M(b,5,c);c=R(a,8);null!=c&&M(b,8,c);c=R(a,9);null!=c&&M(b,9,c);c=R(a,6);null!=c&&M(b,6,c);c=R(a,7);null!=c&&M(b,7,c);c=R(a,10);null!=c&&M(b,10,c);c=R(a,11);null!=c&&M(b,11,c);c=R(a,12);null!=c&&M(b,12,c);c=R(a,13);null!=c&&M(b,13,c);c=R(a,14);null!=c&&M(b,14,c);c=R(a,15);null!=c&&M(b,15,c);c=R(a,16);null!=c&&M(b,16,c);c=
R(a,17);null!=c&&M(b,17,c);c=R(a,19);null!=c&&H(b,19,c);c=R(a,20);null!=c&&K(b,20,c);c=R(a,22);null!=c&&K(b,22,c);c=R(a,23);null!=c&&L(b,23,c);c=V(a,t_,24);null!=c&&N(b,24,c,u_);c=V(a,b_,25);null!=c&&N(b,25,c,c_);c=R(a,26);null!=c&&M(b,26,c);Zv(a,b,x_,v_.prototype.m)};v_.prototype.getDeviceId=function(){return R(this,18)};v_.prototype.getDevice=function(){return R(this,9)};v_.prototype.V=function(){return R(this,26)};var x_={},y_=function(a){Q(this,a,0,-1,null)};t(y_,P);
y_.prototype.o=function(){var a=new E;z_(this,a);return F(a)};var z_=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c)},A_=function(a){Q(this,a,0,-1,null)};t(A_,P);A_.prototype.o=function(){var a=new E;B_(this,a);return F(a)};
var B_=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&M(b,5,c);c=R(a,6);null!=c&&M(b,6,c);c=R(a,7);null!=c&&M(b,7,c);c=R(a,8);null!=c&&H(b,8,c);c=R(a,9);null!=c&&H(b,9,c)},C_=function(a){Q(this,a,0,-1,null)};t(C_,P);C_.prototype.o=function(){var a=new E;D_(this,a);return F(a)};
var D_=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&H(b,5,c);c=R(a,6);null!=c&&H(b,6,c);c=R(a,7);null!=c&&M(b,7,c)},E_=function(a){Q(this,a,0,-1,null)};t(E_,P);E_.prototype.o=function(){var a=new E;F_(this,a);return F(a)};
var F_=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&M(b,5,c);c=R(a,12);null!=c&&M(b,12,c);c=R(a,6);null!=c&&M(b,6,c);c=R(a,7);null!=c&&M(b,7,c);c=R(a,8);null!=c&&M(b,8,c);c=R(a,9);null!=c&&H(b,9,c);c=R(a,10);null!=c&&H(b,10,c);c=R(a,11);null!=c&&M(b,11,c)};E_.prototype.Dc=function(a){U(this,8,a)};var G_=function(a){Q(this,a,0,-1,null)};t(G_,P);G_.prototype.o=function(){var a=new E;H_(this,a);return F(a)};
var H_=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&L(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&M(b,5,c)};G_.prototype.getDeviceId=function(){return R(this,1)};var I_=function(a){Q(this,a,0,-1,null)};t(I_,P);I_.prototype.o=function(){var a=new E;J_(this,a);return F(a)};
var J_=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,7);null!=c&&M(b,7,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&M(b,5,c);c=R(a,6);null!=c&&M(b,6,c);c=R(a,8);null!=c&&M(b,8,c)},K_=function(a){Q(this,a,0,-1,null)};t(K_,P);K_.prototype.o=function(){var a=new E;L_(this,a);return F(a)};
var L_=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&M(b,5,c);c=R(a,6);null!=c&&M(b,6,c);c=R(a,7);null!=c&&M(b,7,c);c=R(a,8);null!=c&&M(b,8,c);c=R(a,9);null!=c&&M(b,9,c);c=R(a,10);null!=c&&M(b,10,c)},M_=function(a){Q(this,a,0,-1,null)};t(M_,P);M_.prototype.o=function(){var a=new E;N_(this,a);return F(a)};
var N_=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&L(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&M(b,5,c);c=R(a,6);null!=c&&L(b,6,c);c=R(a,7);null!=c&&M(b,7,c)},O_=function(a){Q(this,a,0,-1,null)};t(O_,P);O_.prototype.o=function(){var a=new E;P_(this,a);return F(a)};var P_=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c)},Q_=function(a){Q(this,a,0,-1,null)};t(Q_,P);
Q_.prototype.o=function(){var a=new E;R_(this,a);return F(a)};var R_=function(a,b){var c=R(a,1);null!=c&&M(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c);c=R(a,4);null!=c&&M(b,4,c);c=R(a,5);null!=c&&M(b,5,c);c=R(a,6);null!=c&&M(b,6,c)},S_=function(a){Q(this,a,0,-1,null)};t(S_,P);S_.prototype.o=function(){var a=new E;T_(this,a);return F(a)};
var T_=function(a,b){var c=R(a,1);null!=c&&L(b,1,c);c=R(a,6);null!=c&&M(b,6,c);c=R(a,7);null!=c&&M(b,7,c);c=V(a,v_,2);null!=c&&N(b,2,c,w_);c=V(a,A_,3);null!=c&&N(b,3,c,B_);c=V(a,E_,4);null!=c&&N(b,4,c,F_);c=V(a,I_,5);null!=c&&N(b,5,c,J_);c=V(a,K_,8);null!=c&&N(b,8,c,L_);c=V(a,G_,10);null!=c&&N(b,10,c,H_);c=V(a,C_,13);null!=c&&N(b,13,c,D_);c=V(a,Q_,15);null!=c&&N(b,15,c,R_);c=V(a,y_,9);null!=c&&N(b,9,c,z_);c=V(a,M_,11);null!=c&&N(b,11,c,N_);c=V(a,O_,14);null!=c&&N(b,14,c,P_);c=R(a,12);null!=c&&J(b,
12,c)},l_=function(a){Q(this,a,0,-1,null)};t(l_,P);l_.prototype.o=function(){var a=new E;m_(this,a);return F(a)};var m_=function(a,b){var c=R(a,1);null!=c&&H(b,1,c);c=R(a,2);null!=c&&M(b,2,c);c=R(a,3);null!=c&&M(b,3,c)};l_.prototype.ub=function(){return R(this,3)};var V_=function(a){Q(this,a,0,16,U_)};t(V_,P);var U_=[3,5];
V_.prototype.o=function(){var a=new E;var b=R(this,4);null!=b&&Gv(a,4,b);b=R(this,8);null!=b&&Gv(a,8,b);b=V(this,S_,1);null!=b&&N(a,1,b,T_);b=V(this,S_,15);null!=b&&N(a,15,b,T_);b=R(this,2);null!=b&&L(a,2,b);b=R(this,6);null!=b&&M(a,6,b);b=R(this,7);null!=b&&M(a,7,b);b=X(this,j_,3);0<b.length&&O(a,3,b,k_);b=cw(S(this,5));0<b.length&&Tv(a,5,b);b=R(this,14);null!=b&&J(a,14,b);b=R(this,9);null!=b&&L(a,9,b);b=R(this,10);null!=b&&L(a,10,b);b=V(this,W_,11);null!=b&&N(a,11,b,X_);b=V(this,Y_,12);null!=b&&
N(a,12,b,Z_);b=V(this,$_,13);null!=b&&N(a,13,b,a0);Zv(this,a,b0,V_.prototype.m);return F(a)};var c0=function(a){var b=Ka().toString();U(a,4,b)},b0={},W_=function(a){Q(this,a,0,-1,null)};t(W_,P);W_.prototype.o=function(){var a=new E;X_(this,a);return F(a)};var X_=function(a,b){var c=R(a,1);null!=c&&K(b,1,c);c=R(a,2);null!=c&&K(b,2,c);c=R(a,3);null!=c&&L(b,3,c);c=R(a,4);null!=c&&K(b,4,c)},Y_=function(a){Q(this,a,0,-1,null)};t(Y_,P);Y_.prototype.o=function(){var a=new E;Z_(this,a);return F(a)};
var Z_=function(a,b){var c=R(a,1);null!=c&&J(b,1,c);c=R(a,2);null!=c&&J(b,2,c);c=R(a,3);null!=c&&M(b,3,c)};Y_.prototype.Z=function(){return R(this,3)};var $_=function(a){Q(this,a,0,-1,null)};t($_,P);$_.prototype.o=function(){var a=new E;a0(this,a);return F(a)};var a0=function(a,b){var c=R(a,3);null!=c&&J(b,3,c);c=R(a,1);null!=c&&Gv(b,1,c);c=R(a,2);null!=c&&K(b,2,c)};var d0=function(a,b,c){Oj(a.url,function(a){a=a.target;Yj(a)?b():c(a.Ca())},a.requestType,a.body,a.requestHeaders,0,a.withCredentials)};var e0=function(a,b,c,d,e,f,g,l,r){B.call(this);this.H=a;this.F=b||wa;this.g=new V_;this.K=l||d0;this.a=[];this.B="";this.w=d||"https://play.google.com/log?format=json";this.s=c||null;this.m=r||null;this.j=Ih("playlog.clearcut.ClearcutBase");this.M=!g;this.A=null;this.h=0;this.R=1;a=new S_;U(a,1,1);b=new M_;c=new y_;d=a_()||$Z()?$Z()?2:a_()?1:0:3;U(b,6,id("Android")?3:id("CrOS")?5:id("Windows")?2:id("iPad")?6:qd()?7:id("iPod")?8:id("Linux")?4:id("Macintosh")?1:0);g=fd;l="";id("Windows")?(l=/Windows (?:NT|Phone) ([0-9.]+)/,
l=(g=l.exec(g))?g[1]:"0.0"):rd()?(l=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,l=(g=l.exec(g))&&g[1].replace(/_/g,".")):id("Macintosh")?(l=/Mac OS X ([0-9_.]+)/,l=(g=l.exec(g))?g[1].replace(/_/g,"."):"10"):id("Android")?(l=/Android\s+([^\);]+)(\)|;)/,l=(g=l.exec(g))&&g[1]):id("CrOS")&&(l=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,l=(g=l.exec(g))&&g[1]);U(b,2,l||"");U(b,3,d);e||(d=ie(),g=document.documentElement.getAttribute("lang"),U(b,5,g),d=Ij(d.location.href,"hl")||d.navigator.language||d.navigator.browserLanguage,
U(c,1,d));U(c,2,ZZ);U(c,3,pq);XZ&&U(c,4,YZ);Y(a,11,b);Y(a,9,c);Y(this.g,1,a);U(this.g,2,this.H);this.f=new Aj(6E4);this.l(this.f);fi(this.f,"tick",$g(this.flush),!1,this);f||this.f.start();e||(fi(ie(),"beforeunload",this.b,!1,this),fi(ie(),"unload",this.b,!1,this),fi(document,"pagehide",this.b,!1,this))};t(e0,B);e0.prototype.W=function(){this.b();e0.aa.W.call(this)};
e0.prototype.log=function(a){a=pw(a);var b=this.R++;U(a,21,b);R(a,1)||(b=Ka().toString(),U(a,1,b));for(;1E3<=this.a.length;)this.a.shift(),++this.h;this.a.push(a);this.dispatchEvent(new f0)};
e0.prototype.flush=function(a,b){if(0==this.a.length)a&&a();else{var c=pw(this.g);c0(c);hw(c,3,this.a);U(c,14,this.h);var d={},e=this.F();e&&(d.Authorization=e);var f=this.w;this.s&&(d["X-Goog-AuthUser"]=this.s,f=Gj(f,"authuser",this.s));this.m&&(d["X-Goog-PageId"]=this.m,f=Gj(f,"pageId",this.m));if(e&&this.B==e)D(this.j,"XHR with unauthorized request not retried"),b&&b();else{D(this.j,"Flushing log to clearcut.");this.a=[];this.h=0;var g=c.ia(),l=1;this.A&&g0&&(d["Content-Encoding"]="gzip",d["Content-Type"]=
"application/binary",g=h0(new i0(Uu(g))),l=2);d={url:f,body:g,a:l,requestHeaders:d,requestType:"POST",withCredentials:this.M};f=p(function(a){var d=X(c,j_,3);401==a&&e&&(this.B=e);if(500<=a&&600>a||401==a||0==a)this.a=d.concat(this.a);C(this.j,"Flush failed. Status code: "+a);b&&b()},this);this.K(d,function(){a&&a()},f)}}};e0.prototype.b=function(){this.flush()};var f0=function(){this.type="event-logged"};t(f0,A);var j0=function(a,b,c,d,e,f){e0.call(this,a,TZ,b,c,d,e,void 0,void 0,f)};t(j0,e0);var g0="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 l0=function(a,b,c){var d;"number"===typeof b||(b=0);var e="number"===typeof c?c:a.length;c=-1;for(d=e&7;d--;++b)c=c>>>8^k0[(c^a[b])&255];for(d=e>>3;d--;b+=8)c=c>>>8^k0[(c^a[b])&255],c=c>>>8^k0[(c^a[b+1])&255],c=c>>>8^k0[(c^a[b+2])&255],c=c>>>8^k0[(c^a[b+3])&255],c=c>>>8^k0[(c^a[b+4])&255],c=c>>>8^k0[(c^a[b+5])&255],c=c>>>8^k0[(c^a[b+6])&255],c=c>>>8^k0[(c^a[b+7])&255];return(c^4294967295)>>>0},m0=[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],k0=g0?new Uint32Array(m0):m0;var o0=function(a,b){this.index="number"===typeof b?b:0;this.f=0;this.b=a instanceof(g0?Uint8Array:Array)?a:new (g0?Uint8Array:Array)(32768);if(2*this.b.length<=this.index)throw Error("invalid index");this.b.length<=this.index&&n0(this)},n0=function(a){var b=a.b,c,d=b.length,e=new (g0?Uint8Array:Array)(d<<1);if(g0)e.set(b);else for(c=0;c<d;++c)e[c]=b[c];return a.b=e};
o0.prototype.a=function(a,b,c){var d=this.b,e=this.index,f=this.f,g=d[e];c&&1<b&&(a=8<b?(p0[a&255]<<24|p0[a>>>8&255]<<16|p0[a>>>16&255]<<8|p0[a>>>24&255])>>32-b:p0[a]>>8-b);if(8>b+f)g=g<<b|a,f+=b;else for(c=0;c<b;++c)g=g<<1|a>>b-c-1&1,8===++f&&(f=0,d[e++]=p0[g],g=0,e===d.length&&(d=n0(this)));d[e]=g;this.b=d;this.f=f;this.index=e};var q0=function(a){var b=a.b,c=a.index;0<a.f&&(b[c]<<=8-a.f,b[c]=p0[b[c]],c++);g0?a=b.subarray(0,c):(b.length=c,a=b);return a},r0=new (g0?Uint8Array:Array)(256),s0;
for(s0=0;256>s0;++s0){var t0=s0,u0=t0,v0=7;for(t0>>>=1;t0;t0>>>=1)u0<<=1,u0|=t0&1,--v0;r0[s0]=(u0<<v0&255)>>>0}var p0=r0;/*


 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.
*/
var w0=function(a){this.buffer=new (g0?Uint16Array:Array)(2*a);this.length=0};w0.prototype.push=function(a,b){var c=this.buffer;var d=this.length;c[this.length++]=b;for(c[this.length++]=a;0<d;)if(a=2*((d-2)/4|0),c[d]>c[a])b=c[d],c[d]=c[a],c[a]=b,b=c[d+1],c[d+1]=c[a+1],c[a+1]=b,d=a;else break;return this.length};
w0.prototype.pop=function(){var a=this.buffer,b;var c=a[0];var d=a[1];this.length-=2;a[0]=a[this.length];a[1]=a[this.length+1];for(b=0;;){var e=2*b+2;if(e>=this.length)break;e+2<this.length&&a[e+2]>a[e]&&(e+=2);if(a[e]>a[b]){var f=a[b];a[b]=a[e];a[e]=f;f=a[b+1];a[b+1]=a[e+1];a[e+1]=f}else break;b=e}return{index:d,value:c,length:this.length}};var x0=function(a,b){this.b=2;this.f=0;this.input=g0&&a instanceof Array?new Uint8Array(a):a;this.a=0;b&&(b.lazy&&(this.f=b.lazy),"number"===typeof b.compressionType&&(this.b=b.compressionType),b.outputBuffer&&(this.La=g0&&b.outputBuffer instanceof Array?new Uint8Array(b.outputBuffer):b.outputBuffer),"number"===typeof b.outputIndex&&(this.a=b.outputIndex));this.La||(this.La=new (g0?Uint8Array:Array)(32768))},y0=[],z0;
for(z0=0;288>z0;z0++)switch(!0){case 143>=z0:y0.push([z0+48,8]);break;case 255>=z0:y0.push([z0-144+400,9]);break;case 279>=z0:y0.push([z0-256+0,7]);break;case 287>=z0:y0.push([z0-280+192,8]);break;default:throw Error("invalid literal: "+z0);}
var A0=function(a,b){this.length=a;this.a=b},B0=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;for(c=3;258>=c;c++){var d=a(c);b[c]=d[2]<<24|d[1]<<16|d[0]}return b}(),C0=g0?new Uint32Array(B0):B0,E0=function(a,b){function c(a,b){var c=a.a,d=[],e=0;var f=C0[a.length];d[e++]=f&65535;d[e++]=f>>16&255;d[e++]=f>>24;switch(!0){case 1===c:c=[0,c-1,0];break;case 2===c:c=[1,c-2,0];break;case 3===c:c=[2,c-3,0];break;case 4===c:c=[3,c-4,0];break;case 6>=c:c=[4,c-5,1];break;case 8>=c:c=[5,c-7,1];break;case 12>=c:c=[6,c-9,2];break;case 16>=c:c=[7,c-13,2];break;case 24>=c:c=[8,c-17,3];break;case 32>=
c:c=[9,c-25,3];break;case 48>=c:c=[10,c-33,4];break;case 64>=c:c=[11,c-49,4];break;case 96>=c:c=[12,c-65,5];break;case 128>=c:c=[13,c-97,5];break;case 192>=c:c=[14,c-129,6];break;case 256>=c:c=[15,c-193,6];break;case 384>=c:c=[16,c-257,7];break;case 512>=c:c=[17,c-385,7];break;case 768>=c:c=[18,c-513,8];break;case 1024>=c:c=[19,c-769,8];break;case 1536>=c:c=[20,c-1025,9];break;case 2048>=c:c=[21,c-1537,9];break;case 3072>=c:c=[22,c-2049,10];break;case 4096>=c:c=[23,c-3073,10];break;case 6144>=c:c=
[24,c-4097,11];break;case 8192>=c:c=[25,c-6145,11];break;case 12288>=c:c=[26,c-8193,12];break;case 16384>=c:c=[27,c-12289,12];break;case 24576>=c:c=[28,c-16385,13];break;case 32768>=c:c=[29,c-24577,13];break;default:throw Error("invalid distance");}f=c;d[e++]=f[0];d[e++]=f[1];d[e++]=f[2];e=0;for(c=d.length;e<c;++e)u[z++]=d[e];G[d[0]]++;ha[d[3]]++;I=a.length+b-1;r=null}var d,e,f,g,l={},r,u=g0?new Uint16Array(2*b.length):[],z=0,I=0,G=new (g0?Uint32Array:Array)(286),ha=new (g0?Uint32Array:Array)(30),
La=a.f;if(!g0){for(e=0;285>=e;)G[e++]=0;for(e=0;29>=e;)ha[e++]=0}G[256]=1;var W=0;for(d=b.length;W<d;++W){e=g=0;for(f=3;e<f&&W+e!==d;++e)g=g<<8|b[W+e];void 0===l[g]&&(l[g]=[]);e=l[g];if(0<I--)e.push(W);else{for(;0<e.length&&32768<W-e[0];)e.shift();if(W+3>=d){r&&c(r,-1);e=0;for(f=d-W;e<f;++e)g=b[W+e],u[z++]=g,++G[g];break}0<e.length?(f=D0(b,W,e),r?r.length<f.length?(g=b[W-1],u[z++]=g,++G[g],c(f,0)):c(r,-1):f.length<La?r=f:c(f,0)):r?c(r,-1):(g=b[W],u[z++]=g,++G[g]);e.push(W)}}u[z++]=256;G[256]++;a.l=
G;a.g=ha;return g0?u.subarray(0,z):u},D0=function(a,b,c){var d=0,e=a.length;var f=0;var g=c.length;a:for(;f<g;f++){var l=c[g-f-1];var r=3;if(3<d){for(r=d;3<r;r--)if(a[l+r-1]!==a[b+r-1])continue a;r=d}for(;258>r&&b+r<e&&a[l+r]===a[b+r];)++r;if(r>d){var u=l;d=r}if(258===r)break}return new A0(d,b-u)},G0=function(a,b){var c=a.length,d=new w0(572),e=new (g0?Uint8Array:Array)(c),f;if(!g0)for(f=0;f<c;f++)e[f]=0;for(f=0;f<c;++f)0<a[f]&&d.push(f,a[f]);a=Array(d.length/2);var g=new (g0?Uint32Array:Array)(d.length/
2);if(1===a.length)return e[d.pop().index]=1,e;f=0;for(c=d.length/2;f<c;++f)a[f]=d.pop(),g[f]=a[f].value;b=F0(g,g.length,b);f=0;for(c=a.length;f<c;++f)e[a[f].index]=b[f];return e},F0=function(a,b,c){function d(a){var c=r[a][u[a]];c===b?(d(a+1),d(a+1)):--g[c];++u[a]}var e=new (g0?Uint16Array:Array)(c),f=new (g0?Uint8Array:Array)(c),g=new (g0?Uint8Array:Array)(b),l=Array(c),r=Array(c),u=Array(c),z=(1<<c)-b,I=1<<c-1,G;e[c-1]=b;for(G=0;G<c;++G)z<I?f[G]=0:(f[G]=1,z-=I),z<<=1,e[c-2-G]=(e[c-1-G]/2|0)+b;
e[0]=f[0];l[0]=Array(e[0]);r[0]=Array(e[0]);for(G=1;G<c;++G)e[G]>2*e[G-1]+f[G]&&(e[G]=2*e[G-1]+f[G]),l[G]=Array(e[G]),r[G]=Array(e[G]);for(z=0;z<b;++z)g[z]=c;for(I=0;I<e[c-1];++I)l[c-1][I]=a[I],r[c-1][I]=I;for(z=0;z<c;++z)u[z]=0;1===f[c-1]&&(--g[0],++u[c-1]);for(G=c-2;0<=G;--G){c=z=0;var ha=u[G+1];for(I=0;I<e[G];I++)c=l[G+1][ha]+l[G+1][ha+1],c>a[z]?(l[G][I]=c,r[G][I]=b,ha+=2):(l[G][I]=a[z],r[G][I]=z,++z);u[G]=0;1===f[G]&&d(G)}return g},H0=function(a){var b=new (g0?Uint16Array:Array)(a.length),c=[],
d=[],e=0,f,g;var l=0;for(f=a.length;l<f;l++)c[a[l]]=(c[a[l]]|0)+1;l=1;for(f=16;l<=f;l++)d[l]=e,e+=c[l]|0,e<<=1;l=0;for(f=a.length;l<f;l++)for(e=d[a[l]],d[a[l]]+=1,c=b[l]=0,g=a[l];c<g;c++)b[l]=b[l]<<1|e&1,e>>>=1;return b};var i0=function(a){this.input=a;this.ip=0;this.a={};this.b||(this.b={})},h0=function(a){var b,c=new (g0?Uint8Array:Array)(32768);var d=0;var e=a.input,f=a.ip;var g=a.filename;var l=a.comment;c[d++]=31;c[d++]=139;c[d++]=8;var r=0;a.a.fname&&(r|=8);a.a.fcomment&&(r|=16);a.a.fhcrc&&(r|=2);c[d++]=r;r=(Date.now?Date.now():+new Date)/1E3|0;c[d++]=r&255;c[d++]=r>>>8&255;c[d++]=r>>>16&255;c[d++]=r>>>24&255;c[d++]=0;c[d++]=255;if(void 0!==a.a.fname){var u=0;for(b=g.length;u<b;++u)r=g.charCodeAt(u),255<r&&
(c[d++]=r>>>8&255),c[d++]=r&255;c[d++]=0}if(a.a.comment){u=0;for(b=l.length;u<b;++u)r=l.charCodeAt(u),255<r&&(c[d++]=r>>>8&255),c[d++]=r&255;c[d++]=0}a.a.fhcrc&&(g=l0(c,0,d)&65535,c[d++]=g&255,c[d++]=g>>>8&255);a.b.outputBuffer=c;a.b.outputIndex=d;d=new x0(e,a.b);g=d.input;switch(d.b){case 0:c=0;for(l=g.length;c<l;){u=g0?g.subarray(c,c+65535):g.slice(c,c+65535);c+=u.length;r=d;var z=c===l;b=r.La;var I=r.a;if(g0){for(b=new Uint8Array(r.La.buffer);b.length<=I+u.length+5;)b=new Uint8Array(b.length<<
1);b.set(r.La)}b[I++]=(z?1:0)|0;var G=u.length;z=~G+65536&65535;b[I++]=G&255;b[I++]=G>>>8&255;b[I++]=z&255;b[I++]=z>>>8&255;if(g0)b.set(u,I),I+=u.length,b=b.subarray(0,I);else{G=0;for(z=u.length;G<z;++G)b[I++]=u[G];b.length=I}r.a=I;r.La=b}break;case 1:c=new o0(g0?new Uint8Array(d.La.buffer):d.La,d.a);c.a(1,1,!0);c.a(1,2,!0);g=E0(d,g);l=0;for(r=g.length;l<r;l++)if(u=g[l],o0.prototype.a.apply(c,y0[u]),256<u)c.a(g[++l],g[++l],!0),c.a(g[++l],5),c.a(g[++l],g[++l],!0);else if(256===u)break;c=q0(c);d.La=
c;d.a=d.La.length;break;case 2:c=new o0(g0?new Uint8Array(d.La.buffer):d.La,d.a);var ha,La=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];I=Array(19);var W;c.a(1,1,!0);c.a(2,2,!0);g=E0(d,g);u=G0(d.l,15);b=H0(u);l=G0(d.g,7);r=H0(l);for(z=286;257<z&&0===u[z-1];z--);for(G=30;1<G&&0===l[G-1];G--);var gb=z,Mh=G;var Ac=new (g0?Uint32Array:Array)(gb+Mh);var Ld=new (g0?Uint32Array:Array)(316),ld;var Qc=new (g0?Uint8Array:Array)(19);for(W=ha=0;W<gb;W++)Ac[ha++]=u[W];for(W=0;W<Mh;W++)Ac[ha++]=l[W];if(!g0)for(W=
0,Mh=Qc.length;W<Mh;++W)Qc[W]=0;W=ld=0;for(Mh=Ac.length;W<Mh;W+=ha){for(ha=1;W+ha<Mh&&Ac[W+ha]===Ac[W];++ha);gb=ha;if(0===Ac[W])if(3>gb)for(;0<gb--;)Ld[ld++]=0,Qc[0]++;else for(;0<gb;){var Rc=138>gb?gb:138;Rc>gb-3&&Rc<gb&&(Rc=gb-3);10>=Rc?(Ld[ld++]=17,Ld[ld++]=Rc-3,Qc[17]++):(Ld[ld++]=18,Ld[ld++]=Rc-11,Qc[18]++);gb-=Rc}else if(Ld[ld++]=Ac[W],Qc[Ac[W]]++,gb--,3>gb)for(;0<gb--;)Ld[ld++]=Ac[W],Qc[Ac[W]]++;else for(;0<gb;)Rc=6>gb?gb:6,Rc>gb-3&&Rc<gb&&(Rc=gb-3),Ld[ld++]=16,Ld[ld++]=Rc-3,Qc[16]++,gb-=Rc}Ac=
g0?Ld.subarray(0,ld):Ld.slice(0,ld);Qc=G0(Qc,7);for(W=0;19>W;W++)I[W]=Qc[La[W]];for(ha=19;4<ha&&0===I[ha-1];ha--);La=H0(Qc);c.a(z-257,5,!0);c.a(G-1,5,!0);c.a(ha-4,4,!0);for(W=0;W<ha;W++)c.a(I[W],3,!0);W=0;for(I=Ac.length;W<I;W++)if(z=Ac[W],c.a(La[z],Qc[z],!0),16<=z){W++;switch(z){case 16:z=2;break;case 17:z=3;break;case 18:z=7;break;default:throw Error("invalid code: "+z);}c.a(Ac[W],z,!0)}u=[b,u];b=[r,l];l=u[0];r=u[1];u=b[0];z=b[1];b=0;for(I=g.length;b<I;++b)if(G=g[b],c.a(l[G],r[G],!0),256<G)c.a(g[++b],
g[++b],!0),G=g[++b],c.a(u[G],z[G],!0),c.a(g[++b],g[++b],!0);else if(256===G)break;c=q0(c);d.La=c;d.a=d.La.length;break;default:throw Error("invalid compression type");}c=d.La;d=d.a;g0&&(d+8>c.buffer.byteLength?(a.La=new Uint8Array(d+8),a.La.set(new Uint8Array(c.buffer)),c=a.La):c=new Uint8Array(c.buffer));g=l0(e,void 0,void 0);c[d++]=g&255;c[d++]=g>>>8&255;c[d++]=g>>>16&255;c[d++]=g>>>24&255;b=e.length;c[d++]=b&255;c[d++]=b>>>8&255;c[d++]=b>>>16&255;c[d++]=b>>>24&255;a.ip=f;g0&&d<c.length&&(a.La=
c=c.subarray(0,d));return c};var I0=function(){};var K0=function(a,b,c){this.f=new Nz(500);var d=nX.ja(),e=oX(d,"recentImpressions",p(this.m,this));Kh(this,p(d.f,d,e));this.h=new Set;this.b=new j0(50,c||"0");this.b.A=new I0;c=this.b.f;c.b=18E4;c.vb&&c.enabled?(c.stop(),c.start()):c.vb&&c.stop();null!=b&&J0(this,b);uR(this);this.oa.init(a)};t(K0,Jh);WM(uZ,K0);
var L0=function(a){var b=new UM,c=V(b,tC,5)||new tC;Y(b,5,c);c=V(b,tC,5);U(c,1,Md&&Fd?2:Md?3:Nd?4:Od?5:1);c=V(b,tC,5);U(c,3,1);a.oa.b(b);return b},J0=function(a,b){b.then(function(a){null!=a&&(this.b.w=a)},void 0,a)};K0.prototype.m=function(){return this.f.S()};
K0.prototype.a=function(a,b,c,d,e,f,g){var l=new pM;U(l,1,a);var r=L0(this),u=KZ(r);Y(u,8,l);b&&(u=LZ(r),u.qa(b));c&&(u=LZ(r),U(u,5,c));d&&(u=LZ(r),u.P(d));f&&(b=MZ(l),U(b,2,f));g&&(b=MZ(l),U(b,1,g));M0.has(a)||(f=Ka(),f=new Date(f),f=(new DZ("HH:mm:ss")).format(f),this.f.add(a+"@"+f));N0(this,r,e)};K0.prototype.g=function(a,b,c,d,e,f,g){this.h.has(a)||(this.a(a,b,c,d,e,f,g),this.h.add(a))};
var O0=function(a,b){var c=L0(a),d=KZ(c);Y(d,14,b);N0(a,c)},N0=function(a,b,c){a.oa.f(b);var d=new j_,e=b.ia();U(d,8,e);c&&U(d,1,c.toString());V(b,zM,1)&&V(V(b,zM,1),pM,8)&&V(V(b,zM,1),pM,8).V()&&(b=V(V(b,zM,1),pM,8).V(),U(d,11,b));a.b.log(d)},M0=new Set([1168,1169,1170,1171,1172,1173,1174,1175,1177,1178,1179,1180,1181,1182,1183,1184,1219,1220,1221,1781,1827,1871,2053,2054,2186,2187,2188,2190,2191,3341,3342,3800,3801,3802,3805,3812,3853,3854,3855,3856,3857,3961,4101,4102,4103,4301,4302,4303,4304,
4305,4306]);var P0=function(a){var b=[];x(tc(a.a),function(a){a=Number(a);var c=new GL;U(c,1,a);U(c,2,this.a[a]);b.push(c)},a);var c=new JL;hw(c,2,b);a.b?O0(a.b,c):a.f.then(function(a){O0(a,c)},void 0,a);c.ia()};var Q0=function(a,b){A.call(this,"Bb");this.Fa=a;this.data=b};t(Q0,A);var R0=function(a){A.call(this,"Cb");this.data=a};t(R0,A);var S0=function(){Jh.call(this);this.j=Ih("realtime.media.stats.HighResVideoTracker");this.b={};this.a={}};qa(S0,Jh);var T0=function(a,b){VA(b).forEach(function(b){if(2==R(b,1)&&1==R(b,24)&&0<S(b,53).length){var c=S(b,53)[0];U(b,135,a.a[c]||[])}})},U0=function(a){return!!a&&921600<=a.Vg()};var V0=function(a){return null!=a?a:NaN};var W0=function(){this.a=null;this.b=new Map};W0.prototype.update=function(a){this.a=a;X0(this)};
var X0=function(a){x(VA(a.a),function(b){var c=S(b,53)[0];c&&2==R(b,1)&&1==R(b,1)&&(Y0(a,c,"owd",b,b.Nk),Y0(a,c,"frmsp",b,b.Mk))})},Y0=function(a,b,c,d,e){b+=c;c=a.b.get(b);d=e.call(d)||NaN;c||(c=new HA);var f=V0(R(c,3));e=V0(R(c,4));var g=V0(c.da());if(isNaN(d))e={Df:f,fg:e,n:g};else if(isNaN(f)||isNaN(g)||1>g)e={Df:d,fg:NaN,n:1};else{g+=1;var l=d-f;f+=l/g;var r=NaN;1<g&&(r=Math.sqrt(((isNaN(e)?0:e*e)*(g-2)+l*(d-f))/(g-1)));e={Df:f,fg:r,n:g}}g=e.Df;l=e.fg;U(c,5,e.n);U(c,3,g);U(c,4,l);e=V0(R(c,1));
g=V0(R(c,2));isNaN(d)?(U(c,1,e),U(c,2,g)):isNaN(e)?(U(c,1,d),U(c,2,d)):(U(c,1,Math.min(d,e)),U(c,2,Math.max(d,g)));a.b.set(b,c)},Z0=function(a){if(!a.a)return null;x(VA(a.a),function(b){var c=S(b,53)[0];if(c){var d=b.rm;(c=a.b.get(c+"owd"))&&d.call(b,c)}});return a.a};W0.prototype.reset=function(){this.a=null;this.b.clear()};var $0=function(){Jh.call(this);this.j=Ih("realtime.media.stats.VideoFeedTracker");this.b=new Map;this.a=new Map};qa($0,Jh);var a1=function(a,b){VA(b).forEach(function(b){if(2==R(b,1)&&0<S(b,53).length){var c=S(b,53)[0];c=a.a.get(c)||[];U(b,141,c||[])}})};var c1=function(a,b,c,d,e){var f=this;GQ.call(this);this.j=Ih("realtime.media.session.SessionImpl");this.g=b.oa.Nd("realtime.media.session.SessionImpl");this.g.info("Creating a new session with localSessionId="+c.b+" remoteSessionId="+b1(d)+" earlyMediaHangoutId="+e.b+" P2P="+e.a+" useAudio="+e.l+" useVideo="+e.v+" jmiIntervalMs="+e.h+" jmiUploadIntervalMs="+e.B+" coalesceDataForUpload="+e.X);this.B=VR(a,GR,KR);VR(a,FR);this.va=null;this.h=new wA(this);this.l(this.h);this.a=c;this.l(this.a);this.h.listen(this.a,
"G",this.qj);this.h.listen(this.a,"I",this.tj);this.h.listen(this.a,"H",this.ol);this.h.listen(this.a,"Y",this.kl);this.h.listen(this.a,"K",this.ml);this.h.listen(this.a,"J",this.ll);this.h.listen(this.a,"N",this.nl);this.h.listen(this.a,"M",this.rl);this.h.listen(this.a,"E",this.Nh);this.h.listen(this.a,"O",this.Fl);this.b=d;this.l(this.b);this.h.listen(this.b,"E",this.Sh);this.h.listen(this.b,"W",this.cm);this.h.listen(this.b,"aa",this.pl);this.h.listen(this.b,"S",this.Al);this.h.listen(this.b,
"T",this.Bl);this.h.listen(this.b,"R",this.dm,!0);this.Oa=this.de=!1;this.zb=[];this.Ab=xc();this.yg=xc();this.f=e;this.wg="";this.w={};this.M=this.K=null;this.ba=new Ni;this.m=this.Ya=null;this.wb=[];this.ya=[];this.s=[];this.cb={};this.ra=new Nz(20);this.A=this.Ia=null;this.Za=this.Xa=this.R=Ka();this.he=this.ge=!1;this.ma=!0;this.H=this.Bg=!1;this.ie=0;this.xg=b;this.rd=!1;a=(a=b.a)&&V(a,OP,19)||new OP;this.bb=void 0;this.zg=this.f.X;this.Pa=new W0;this.Gc=new RP(a);this.h.listen(this.Gc,"F",this.il);
this.ka=xc();this.Xb=this.F=null;this.ea=[];this.na=null;(a=navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(a){return f.na=a});this.la=new S0;this.Lb=new $0;this.be=this.ee=this.Ic=this.fe=!1;this.Hc=""};t(c1,GQ);var d1=new fe(1280,720);h=c1.prototype;h.di=function(a,b){this.a.bi(a,b)};h.ci=function(){return this.R};h.Ga=function(){return this.a.Ga().then(this.jl,null,this)};
h.jl=function(a){this.Oa=!0;x(this.ya,function(a){e1(this,a)},this);this.ya=[];mq&&Cb(pq,59);var b=a.a;if(b){var c=Mb(y(b.a),function(a){return"http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01"!=a.a});a=tP(a,$O(b,c))}return a};
h.kc=function(a){if("INITIAL"!=this.getState())return C(this.j,"Starting session after already started."),!1;f1(this,"STARTING");if(!this.a.a.b)return hR(this.g,this.a.b+" preparation failed because local session failed to create an offer."),!1;null!=a&&(a=a.l.get("msodc"),null!=a&&this.a.Qg(a));if(!this.a.kc())return hR(this.g,this.a.b+" preparation failed because because local session failed to prepare."),!1;a=this.a;var b=this.f.H;a.f.info("enableRtpHeaderDump called with enable="+b+" for sessionId="+
a.b);YR(a.s,a.b,b);this.f.b&&this.f.m.length&&this.g.info("Request early media for hangout "+this.f.b);return this.b.kc(null!=this.f.b&&0<this.f.m.length?this.f.b:null)?!0:(hR(this.g,"Failed to prepare session because remote session failed to prepare."),!1)};
h.start=function(a){this.de=!0;if("INITIAL"==this.getState()&&!this.kc(a))return!1;this.Ya=a;this.g.info(this.fa()+" starting with remote description: "+Bi(a));var b=a.b;null!=b&&(a=xP(a,nP(b)),this.zb=VO(b),this.dispatchEvent(new MQ));a=g1(a);this.m=a=h1(this,a);b=a.m;if(null==b)return C(this.j,"Received remote description without session id."),this.B.then(function(a){return a.a(3948)}),this.stop(16,"Received remote description without session id."),!1;x(this.wb,function(b){a=CP(a,b.Rg,b.hi)},this);
Vb(this.wb);this.qa(b);this.b.start(b);this.a.start(a);FV(this.a,this.ea);f1(this,"STARTED");b=i1(a);0<b.length&&pV(this.a.a,b);j1(this);k1(this);this.Ab.resolve();this.f.g&&this.f.f&&DV(this.a);return!0};h.yc=function(){this.b.yc();this.a.yc()};h.se=function(a,b,c){this.g.info("Connecting session "+this.a.b+" to hangout id: "+a);this.wg=b;this.a.P(a);this.a.connect();this.b.se(a,b,c);this.Ab.a.then(function(){l1(this.b,this.xg.oa.Ge()||null)},null,this)};
h.pause=function(){this.g.info("Attempting to pause session "+this.a.b);if("INPROGRESS"!=this.getState())return!1;x(this.s,function(a){"d"!=a.getInfo().Y()&&a.Ma("b")});if(!this.a.pause())return this.g.error("Failed to pause session "+this.a.b),!1;Cj(this.A);this.A=null;f1(this,"PAUSED");return!0};
h.resume=function(){this.g.info("Attempting to resume session "+this.a.b);if("PAUSED"!=this.getState())return!1;if(!this.a.resume())return this.g.error("Failed to resume session "+this.a.b),!1;this.b.resume();x(this.s,function(a){"d"!=a.getInfo().Y()&&a.Ma("a")});this.dispatchEvent("da");f1(this,"INPROGRESS");this.dispatchEvent(new LQ([],[],this.fa()));j1(this);return!0};
h.stop=function(a,b){if("STOPPED"==this.getState()||"FINISHED"==this.getState())return this.g.info(this.a.b+" ignoring call to stop with endCause: "+a+" and debug information: "+b+", because it has already stopped."),!0;this.g.info(this.a.b+" stopping because stop called with endCause: "+a+" and debug information: "+b);b&&(this.Hc=b);this.h.v(this.a,"E",this.Nh);this.h.v(this.b,"E",this.Sh);this.h.v(this.K,"zb",this.me);this.h.v(this.M,"zb",this.vg);var c;if(c=this.f.f)a:switch(a){case 3:case 8: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&&DV(this.a);Cj(this.A);this.A=null;this.a.stop(a,b);this.b.stop(a,b);f1(this,"STOPPED",a,b);qj(Dj(2E3),this.ka.resolve,this.ka);return!0};h.W=function(){this.stop(this.de?6:72);if(0!=this.rd){this.rd=!1;var a=this.va;if(null==a.a[835]){var b=Ka();0<b&&(a.a[835]=b)}P0(this.va);this.va=null}qj(this.ka.a,B.prototype.W,this)};
var e1=function(a,b){switch(a.getState()){case "STOPPED":case "FINISHED":return C(a.j,"Adding stream after end."),!1}if(!a.Oa)return a.ya.push(b),!0;var c=b.Z(),d=a.w[m1(c)];if(d)return n1(d,"sc"!=c.ib),!1;d=EV(a.a,b);if(null==d)return!1;"v"==c.V()&&a.Ab.a.then(function(){var a=[];if(this.f.a){var b=this.m.a;null!=b&&(a=y(b.g))}else a.push(new UP("","","v",d1,30,!0,this.b.a||void 0));0<a.length&&o1(this,a)},null,a);p1(a.b,[d]);"v"==c.V()&&a.h.listen(c,"r",a.le);d=oR(b,a.fa(),d);a.w[m1(c)]=d;a.dispatchEvent(new LQ([d.getInfo()],
[]));a.h.listen(b,"A",a.ke);a.g.info(a.fa()+" successfully added capture: "+Bi(jO(b)));return!0};c1.prototype.le=function(a){a=a.target;if("sc"==a.ib)a=a.getId(),n1(this.w[a+"ca"],!1),q1(this.b);else if("ca"==a.ib){var b=this.w[m1(a)];n1(b,!0);r1(this.b);s1(this.b,this.w[m1(a)].getInfo())}};
var u1=function(a,b){a.g.info(a.a.b+" now has these participants: "+Bi(b));if(a.f.a){if(2<b.length){a.stop(51);return}if(2>b.length&&"INPROGRESS"==a.getState()){a.stop(52);return}}t1(a.b,b)},f1=function(a,b,c,d){a.g.info(a.a.b+" changed state from "+a.getState()+" to "+b);d&&a.g.info("State change due to "+d);a.gb!=b&&(a.gb=b,a.fb=c,a.dispatchEvent(new pO(b,c,d)))};
c1.prototype.Lc=function(a){switch(this.getState()){case "STOPPED":case "FINISHED":return C(this.j,"Changing stream requests after end."),!1}a=Mb(a,function(a){return null==v1(this,new QN(a.N(),a.ga(),a.Y()))},this);x(a,function(a){this.g.info(this.fa()+" received stream request for DOWN stream from UI: "+a);var b=this.la,d=a.N(),e=a.ga();d+=e;U0(VP(a))?b.b[d]||(b.b[d]=Ka()):delete b.b[d]},this);if(null!=this.K)return rY(this.K,a),!0;w1(this,a);return!0};
c1.prototype.me=function(a){x1(this,a.a);w1(this,a.a)};var w1=function(a,b){a.b.Lc(b);a.cb={};x(b,function(a){if(a.b){var b=a.N();a=a.ga();this.cb[b+a]=!0}},a);x(a.s,a.Kb,a)};c1.prototype.Kb=function(a){var b=a.N(),c=a.ga();b=this.cb[b+c]||!1;b!=a.a&&(a.a=b,a.dispatchEvent("U"))};
var x1=function(a,b){for(var c=0;c<b.length;c++)if(null!=b[c].mb())for(var d=b[c].mb(),e=0;e<d.length;e++){var f=d[e];null===f||a.ba.set(f,0)}},o1=function(a,b){D(a.j,"Stream Requests for UP streams received from remote side: "+Bi(b));null!=a.M?rY(a.M,b):y1(a,b)};c1.prototype.ke=function(a){var b=a.target;a=b.Yc();b=b.Z();(b=this.w[m1(b)])?(a=YN(new TN(b.getInfo()),a).T(),b.b=a,s1(this.b,a)):hR(this.g,this.fa()+" muted unknown capture.")};
var n1=function(a,b){a&&(b=ZN(new TN(a.getInfo()),b).T(),a.b=b)};c1.prototype.vg=function(a){y1(this,a.a)};
var y1=function(a,b){var c=Mb(b,function(a){a=a.g;return!(null!=a&&this.b.a!=a)},a);0!=c.length&&(x1(a,c),a.ea=cc(Mb(a.ea,function(a){return-1==Rb(c,function(b){return a.Y()==b.Y()&&a.ga()==b.ga()})},a),Mb(c,function(a){return a.b},a)),D(a.j,"Sending stream requests for UP streams to local session: "+Bi(a.ea)),FV(a.a,a.ea),a.m&&a.m.a&&(b=eP(a.m.a),a.m=z1(a.m),a.m&&a.m.a&&eP(a.m.a)!=b&&a.a.update(a.m,[])))},z1=function(a){mq&&Cb(pq,59);return a};
c1.prototype.nb=function(a){var b=v1(this,a);return null!=b?b:Tb(this.s,function(b){b=b.getInfo();return b.N()==a.N()&&b.Y()==a.V()&&b.ga()==a.getId()},this)};c1.prototype.yb=function(){var a=c1.aa.yb.call(this),b=this.xg.oa.Ge()||null;Ec(a,{sessionOptions:bQ(this.f),audioOptions:EP(),systemInfo:b?b.ia():"Unavailable",sessionEndDebugInfo:this.Hc});return a};
var v1=function(a,b){if(b.N()!=a.wg&&""!=b.N())return null;a=Mb(sc(a.w),function(a){a=a.a.Z();return b.getId()==a.getId()&&b.V()==a.V()});return 1<a.length?Sb(a,function(a){return"sc"==a.a.Z().ib}):1==a.length?a[0]:null},m1=function(a){return a.getId()+a.ib};c1.prototype.fa=function(){return this.a.b};var i1=function(a){return(a=a.g)?y(a.g):[]};
c1.prototype.tj=function(a){switch(this.getState()){case "INITIAL":C(this.j,"Received local candidates before starting.");return;case "STOPPED":case "FINISHED":C(this.j,"Received local candidates after stopped.");return}x(a.a,function(a){2!=a.nc&&(this.f.a&&"UDP"!=a.wc||0>Rb(this.ra.S(),function(b){return b==a?!0:b&&a?b.nc===a.nc&&b.fd===a.fd&&b.Vf===a.Vf&&b.wc===a.wc&&b.Xc===a.Xc&&b.sa===a.sa&&b.Bd===a.Bd&&b.Rc===a.Rc&&b.Od===a.Od&&b.Ud===a.Ud&&b.Vd===a.Vd:!1})&&this.ra.add(a))},this);null==this.Ia&&
(this.Ia=Bj(function(){this.yg.a.then(this.yj,null,this);this.Ia=null},500,this))};c1.prototype.yj=function(a){this.g.info(this.fa()+" Sending local ICE candidates over to the other side: "+Bi(this.ra.S()));this.dispatchEvent(new NQ(this.ra.S(),a))};
var A1=function(a,b){b=VA(b);if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];if(null!=d&&2==R(d,1)){var e=null!=R(d,65)?R(d,65):0;if(null!=R(d,25)&&null!=a.ba.get(R(d,25)))e|=a.ba.get(R(d,25));else if(null!=S(d,53))for(var f=S(d,53),g=0;g<f.length;g++)if(null!=f[g]&&null!=a.ba.get(f[g])){e|=a.ba.get(f[g]);break}U(d,65,e)}}},B1=function(a,b){(b=VA(b))&&x(b,function(a){if(a&&R(a,1)==gB.dk){var b=!1,c=S(a,53)[0];if(R(a,24)==hB.bk){var f=Tb(this.s,function(a){return a.getInfo().Wa()==c},this);f&&(b=
!f.getInfo().ye())}else R(a,24)==hB.ck&&(f=pc(this.w,function(a){return a.getInfo().mb()[0]==c}),oc(f,function(a){b|="sc"==a.a.Z().ib}));U(a,59,b)}},a)};h=c1.prototype;h.il=function(a){this.dispatchEvent(new JQ(a.id))};
h.ml=function(a){var b=this;null!=a.a&&(A1(this,a.a),C1(this,a.a),T0(this.la,a.a),a1(this.Lb,a.a),B1(this,a.a),this.bb=a.a,this.zg&&this.Pa.update(a.a),this.ma||(this.ma="PAUSED"!=this.getState()),this.ma&&this.f.B<Ka()-this.ie&&(this.zg?D1(this.b,Z0(this.Pa)||a.a):D1(this.b,a.a),this.ie=Ka(),this.bb=void 0,this.Pa.reset(),this.la.a={},this.Lb.a.clear(),this.ma="PAUSED"!=this.getState()),TP(this.Gc,a.a),this.f.a&&x(X(a.a,XA,13),function(a){0<R(a,4)&&0<R(a,6)&&(a=R(V(a,FA,8,1),3),b.fe||0!=a||(b.B.then(function(a){return a.a(4220)}),
b.fe=!0),b.Ic||1!=a||(b.B.then(function(a){return a.a(4221)}),b.Ic=!0),b.ee||2!=a||(b.B.then(function(a){return a.a(4222)}),b.ee=!0),b.be||3!=a||(b.g.info("TURN relay candidate being used for P2P."),b.B.then(function(a){return a.a(4134)}),b.be=!0))}),this.dispatchEvent(new HQ))};h.ll=function(a){E1(this.b,a.f,a.a,this.bb,a.Cb)};
h.nl=function(a){var b=this.la,c=a.Fa,d=a.sourceId,e=a.ssrc,f=c+d;U0(a.a)&&(a=b.b[f])&&(a=Ka()-a,0<=a&&(b.a[e]=b.a[e]||[],b.a[e].push(a),delete b.b[f],Fi(b.j,"participantId: "+c+" sourceId: "+d+" "+("ssrc: "+e+" latency: "+a))))};
h.rl=function(a){var b=a.source?this.nb(a.source):null,c=b?b.getInfo().mb():[];b=this.Lb;a=a.id;c=0<c.length?c[0]:null;if(b.b.has(a)){var d=Ka()-b.b.get(a).We,e=b.b.get(a).ssrc;0<=d&&2147483647>=d?(b.a.has(e)||b.a.set(e,[]),b.a.get(e).push(d),Fi(b.j,"Logged ssrc: "+e+" duration: "+d)):D(b.j,"Ignore invalid main feed ssrc: "+e+" duration: "+d)}else D(b.j,"Skip logging duration for id: "+a);c?b.b.set(a,{ssrc:c,We:Ka()}):b.b.delete(a)};
h.kl=function(a){this.g.info(this.fa()+" latency event: "+a.message);"transport writable"==a.message?(this.Bg=!0,this.H||Bj(this.Wk,1E4,this),this.dispatchEvent(new LQ([],[],this.fa())),k1(this)):"render first video frame"==a.message?(this.H=!0,k1(this)):"transport not writable"==a.message&&(this.f.a?this.stop(10,"P2P session ending. Falling back to cloud."):this.yc())};h.Wk=function(){this.H||(this.H=!0,k1(this))};var k1=function(a){"STARTED"==a.getState()&&a.Bg&&a.H&&f1(a,"INPROGRESS")};
c1.prototype.qj=function(a){switch(a.label){case "collections":this.dispatchEvent(new R0(a.payload));break;case "msodc":this.b.Ab(a.label,a.payload);break;case "dataSendChannel":this.g.error("Received data on the broadcast data channel. Data:"+a.payload);break;default:this.dispatchEvent(new Q0(a.Fa,a.payload))}};var j1=function(a){a.A=Bj(a.Sk,5E3,a)};h=c1.prototype;
h.ol=function(a){if(null!=this.A){a.a!=this.ge&&(a.a?this.g.info(this.fa()+" started receiving audio"):hR(this.g,this.fa()+" stopped receiving audio!"),this.ge=a.a);a.f!=this.he&&(a.f?this.g.info(this.fa()+" started receiving video"):hR(this.g,this.fa()+" stopped receiving video!"),this.he=a.f);var b=Ka();a.a&&(this.Xa=b);a.f&&(this.Za=b);if(a.a||a.f)Cj(this.A),this.A=null,j1(this)}};
h.Sk=function(){var a=Ka(),b=(a-this.Xa)/1E3;a=(a-this.Za)/1E3;this.dispatchEvent(new IQ(this.b.a));this.Xa==this.R?this.g.info(this.fa()+" has never received audio"):5E3<b&&this.g.info(this.fa()+" has not received audio for "+b+" seconds");this.Za==this.R?this.g.info(this.fa()+" has never received video"):5E3<a&&this.g.info(this.fa()+" has not received video for "+a+" seconds");j1(this)};
h.Nh=function(a){if("STOPPED"==this.a.getState()){D(this.j,"Stopping session because local session stopped with endCause: "+a.a);switch(this.getState()){case "INITIAL":C(this.j,"Local session stopped before starting.");f1(this,"STOPPED",a.a,a.Cb);return;case "STOPPED":C(this.j,"Local session stopped after already stopped.");return}this.stop(a.a,a.Cb)}};
h.Sh=function(a){if("STOPPED"==this.b.getState()){switch(this.getState()){case "INITIAL":C(this.j,"Remote session stopped before starting.");return;case "STOPPED":C(this.j,"Remote session stopped after already stopped.");return}this.stop(a.a,a.Cb)}};
h.Fl=function(a){this.g.info(this.fa()+" transport state event: transport IS "+(a.a?"":"NOT ")+"writable");if(a.a){if(null!=this.F){var b=Math.round((Ka()-this.Xb)/1E3);Cj(this.F);this.F=null;this.B.then(function(a){a.a(3062,this.b.a||void 0,void 0,void 0,void 0,b)},null,this)}}else null==this.F&&(this.Xb=Ka(),this.F=Bj(p(this.stop,this,10),4E4),this.B.then(function(a){a.a(3061)},null,this))};h.cm=function(a){this.dispatchEvent(a)};
h.qa=function(a){null!=a&&null==this.b.a&&(this.b.qa(a),this.yg.resolve(a),this.g.info("Session IDs are now set: LocalSession ID: "+this.fa()+", RemoteSession ID: "+b1(this.b)),this.g.info("Note: Session "+this.fa()+" is not yet active."))};
var F1=function(a,b){if(null!=a||null!=b)if(null!=a&&null!=b){a:{var c=VO(a);var d=VO(b);if(c.length!=d.length)c=!0;else{for(var e=0;e<c.length;e++){var f=c[e],g=d[e];if(f.Mb!=g.Mb||f.getName()!=g.getName()||f.f!=g.f||f.b!=g.b||f.a!=g.a){c=!0;break a}}c=!1}}if(!c)a:if(a=y(a.a),b=y(b.a),a.length!=b.length)c=!0;else{for(c=0;c<a.length;c++)if(d=a[c],e=b[c],d.a!=e.a||d.getId()!=e.getId()){c=!0;break a}c=!1}b=c}else b=!0;else b=!1;return b};h=c1.prototype;
h.pl=function(){"STOPPED"!=this.getState()?C(this.j,"Logging finished before media stopped!"):(f1(this,"FINISHED"),this.ka.resolve())};
h.dm=function(a){switch(this.getState()){case "INITIAL":hR(this.g,"Received remote streams before starting.");return;case "STOPPED":case "FINISHED":C(this.j,"Received remote streams after end.");return}var b=Mb(a.f,function(a){return"a"!=a.Y()?!0:this.f.l},this);if(0<b.length||0<a.removed.length)"STARTING"==this.getState()?(this.g.info(this.fa()+" queuing stream changes:."),this.wb.push({Rg:b,hi:a.removed})):(this.g.info(this.fa()+" sending stream adds."),this.m=CP(this.m,b,a.removed),this.a.update(this.m,
a.removed));x(a.removed,this.jm,this);x(a.a,this.Cm,this);x(b,this.xk,this);(0<a.removed.length||0<a.a.length||0<b.length)&&this.dispatchEvent(new LQ(cc(b,a.a),a.removed))};h.xk=function(a){a=new FQ(0,a);this.Kb(a);this.s.push(a)};h.Cm=function(a){var b=Rb(this.s,function(b){return SN(b.getInfo(),a)},this);if(-1==b)C(this.j,"Tried to update non-existant remote stream: "+a);else{var c=new FQ(0,a);this.Kb(c);this.s[b]=c}};
h.jm=function(a){var b=Rb(this.s,function(b){return SN(b.getInfo(),a)},this);if(-1==b)C(this.j,"Tried to remove non-existant remote stream: "+a);else{var c=this.s[b];Zb(this.s,b);c.Ma("b")}};h.Al=function(a){switch(this.getState()){case "INITIAL":hR(this.g,"Received remote stream requests before starting.");return;case "STOPPED":case "FINISHED":C(this.j,"Received remote stream requests after end.");return}o1(this,a.a)};h.Bl=function(a){this.di(a.label,a.payload)};
var H1=function(a,b){if(null!=b){a.g.info(a.fa()+" setting audio options to: "+Bi(EP()));var c=zc(a.f);c.M=b;a.f=c;a.m=G1(a.m);b=a.m;null!=b.b&&CV(a.a,b)}},G1=function(a){var b=a.b,c=VO(b),d=Rb(c,function(a){return xO(a,"OPUS")});if(-1!=d){var e=!(mq&&!(0<=Cb(pq,"48")));c[d]=EO(EO(EO(new yO(c[d]),"stereo","0"),"useinbandfec","1"),"usedtx",e?"1":"0").T();b=YO(b,c)}return xP(a,b)},g1=function(a){return a.a&&0!=VO(a.a).length?uP(a,function(a){return!xO(a,"h264")}):a},h1=function(a,b){if(b.b&&UO(b.b)!=
UO(a.a.a.b.b)){var c=UO(a.a.a.b.b);b=xP(b,bP(b.b,c))}b.a&&UO(b.a)!=UO(a.a.a.b.a)&&(c=UO(a.a.a.b.a),b=tP(b,bP(b.a,c)));b.f&&UO(b.f)!=UO(a.a.a.b.f)&&(c=UO(a.a.a.b.f),b=yP(b,bP(b.f,c)));return b};c1.prototype.toString=function(){return"Session(Id="+this.b.a+" p2p="+this.f.a+" useAudio="+this.f.l+" useVideo="+this.f.v+")"};var C1=function(a,b){a.na&&(U(b,75,a.na.level),U(b,74,!a.na.charging))};var I1=function(){B.call(this);this.a=Ka();this.b=new Aj(1E3);fi(this.b,"tick",p(this.f,this));this.b.start()};qa(I1,B);I1.prototype.f=function(){var a=Ka();6E4<a-this.a&&this.dispatchEvent("Db");this.a=a};xa(I1);var J1={SUCCESS:0,Pi:100,kq:101,Sq:102,Tq:103,Im:200,Xm:221,Li:201,pn:202,vn:203,uo:204,xo:205,Bp:206,Cp:207,Ep:208,Tp:209,nj:210,gq:211,Rp:222,Lr:223,iq:212,Cq:213,Bq:214,Hq:215,Wq:216,br:217,Ir:218,USER_CANCELED:219,Rr:220,Yn:224,fq:225,bq:226,Gr:227,Ln:228,Eo:229,wq:230,cq:231,Uo:232,fp:233,hp:234,Fq:235,Up:236,Um:237,Tm:238,Xn:239,Wp:240,gp:241,xp:242,gn:300,sn:301,In:302,ap:303,cp:304,Mp:305,Xq:306,kr:307,Pn:308,or:309,Wo:310,ao:311,Vq:312,Uq:313,bp:314,Po:315,Qn:316,Ao:317,xn:318,Ym:319,aq:320,
hq:321,Hr:322,So:323,Ap:324,wp:325,Zm:326,Yq:327,ar:328,Zq:329,zp:330,yp:331};var M1=function(a,b,c,d,e){B.call(this);this.j=Ih("realtime.media.session.SessionManager");this.M=b;this.ba=this.M.a;this.a=this.M.oa.Nd("realtime.media.session.SessionManager");this.s=new wA(this);this.l(this.s);this.R=a;this.gb=e;this.ya=this.ra=this.h=null;this.H="INITIAL";this.A=null;this.g=new Ni;Wi(oO,function(a){this.g.set(a,new hl)},this);this.b=new hl;this.ea=new Ni;this.B=null;this.m=new aQ;this.K=new sY;this.Ab=c;this.Xa=d;this.w=[];this.la=[];this.Oa=new rZ;this.Pa=this.F=null;K1(this);
this.na=xc();this.ma=xc();this.ka=xc();this.fb=[];this.va=new Set;this.Ia=null;this.na.a.then(function(){this.a.info("P2P enabled, but ICE with TURN disabled.");this.ka.resolve(!1)},function(){this.ka.reject()},this);lj([this.na.a,this.ma.a,this.ka.a]).then(function(){L1(this,!0)},null,this);this.f=VR(a,GR,KR)};t(M1,B);
var gQ=new UP("","","a"),hQ=new UP("","","v",d1,30),K1=function(a){a.F=nX.ja();a.Pa=[oX(a.F,"sessionManagerState",p(a.getState,a)),oX(a.F,"p2pSessionActive",p(function(){return Pb(N1(this),function(a){return a.f.a})},a)),oX(a.F,"sessions",p(function(){return Nb(this.b.S(),function(a){return a.yb()},this)},a))]};h=M1.prototype;h.W=function(){x(this.b.S(),Lh);null!=this.F&&x(this.Pa,this.F.f,this.F);M1.aa.W.call(this)};h.getState=function(){return this.H};
h.Ma=function(a,b,c){a!=this.H&&(this.a.info("SessionManager changed state from "+this.H+" to "+a),this.H=a,this.dispatchEvent(new pO(a,b,c)))};
h.kc=function(a){if("INITIAL"!=this.getState())return!1;var b=this.R,c=this.ba,d=new zW(uF,[],[],[uF.prototype.h],[uF.prototype.qa],xH,[],[],[xH.prototype.h],[xH.prototype.qa]),e=NY.ja(),f=new kZ(OY(e,b,c)),g=new yW(e.oa.g(b,c),"hb");this.A=new HW(0,e.oa.b(b,c),[],d,f,g,e.oa.f(b,c));this.l(this.A);MW(this.A);this.s.listen(this.A,"ub",this.Za);this.s.listen(this.A,"wb",this.bb);this.a.info("Updating default options to: "+Bi(bQ(a)));this.m=a;this.m.a&&this.na.resolve(!0);if(null==this.h||nb(this.h))this.h=
this.m.b;null==this.h||nb(this.h)||this.ma.resolve(this.h);this.B=L1(this,!1);if(null==this.B)return this.a.error("Failed to create the cloud session."),this.stop(16,"Failed to create cloud session."),!1;this.Ma("STARTING");return!0};h.start=function(){};h.yc=function(){this.A&&this.A.Pd();x(this.b.S(),function(a){a.yc()})};
h.connect=function(a,b,c){if("STARTING"!=this.getState()&&"INPROGRESS"!=this.getState())return!1;this.h=a;this.ra=b;this.ya=c;this.a.info("Connecting to hangoutId: "+a+", with participantId: "+b+" and sessionLogData: "+c);this.ma.resolve(this.h);var d=cc(N1(this),O1(this),P1(this));x(d,function(d){d.se(a,b,c)},this);return!0};
var Q1=function(a,b,c){c.a||(c.A?(a=new HO("call/"+c.A,1,null,"collections"),b=wP(b),b.l.set(a.ec(),a)):C(a.j,"Collections' push channel not added. ClientResource not available"));return b},S1=function(a){var b=N1(a);0==b.length&&(b=P1(a));0==b.length&&(b=R1(a));var c=[];x(b,function(a){ec(c,sc(a.w))});return c},T1=function(a){var b=N1(a);0==b.length&&(b=P1(a));0==b.length&&(b=R1(a));var c=[];x(b,function(a){ec(c,a.s)});return c},hY=function(a,b){x(a.b.S(),function(a){a.f.f||(a.f=dQ(a.f,b),a.f.g&&
DV(a.a))});a.m=dQ(a.m,b)},U1=function(a){a.m.g||(x(a.b.S(),function(a){a.f.g||(a.f=eQ(a.f),a.f.f&&DV(a.a))}),a.m=eQ(a.m))},X1=function(a,b){a.a.info("Adding capture: "+Bi(jO(b)));var c=!0;x(V1(a),function(a){a=e1(a,b);c=c&&a});"sc"==b.Z().ib&&(c=!0);c?a.w.push(b):W1(a,b);return c},W1=function(a,b){var c=!0;x(V1(a),function(a){var d;if(d=c)a:{switch(a.getState()){case "STOPPED":case "FINISHED":C(a.j,"Removing stream after end.");d=!1;break a}if(a.Oa){d=b.Z();"sc"==d.ib?r1(a.b):"v"==d.V()&&a.h.v(d,
"r",a.le);a.h.v(b,"A",a.ke);var f=a.a;switch(f.g){case "STOPPED":hR(f.f,"Remove local stream called after stopped.")}var g=f.a;JU(g,"Removing capture="+b);var l=b.nb(g.g);$b(g.na,b);g.w.v(b,"C",g.Xa);"d"!=b.Z().V()&&(XU(g,l),VU(g,null,b.Z()),g.m?YU(g):JU(g,"Skipping SDP renegotiation on local stream change because we are still waiting on the remote description."));b.hg(f.b);f.h.delete(b);if(f=a.w[m1(d)])delete a.w[m1(d)],a.dispatchEvent(new LQ([],[f.getInfo()]));d=!0}else d=$b(a.ya,b)}c=d});c=c&&
$b(a.w,b)};M1.prototype.nb=function(a,b){var c=cc(N1(this),P1(this),R1(this));if(null!=b){var d=Sb(this.b.S(),function(a){return a.fa()==b});d&&c.unshift(d)}if(0==c.length)return this.a.info("No active session to get stream from to render source: "+a),null;for(d=0;d<c.length;d++){var e=c[d],f=e.nb(a);if(null!=f)return iR(this.a,"Using stream: "+f.getInfo()+" from "+e.fa()+" to render source: "+a),f}hR(this.a,"Unable to find stream to use to render source: "+a);return null};
M1.prototype.Lc=function(a){var b=cc(R1(this),P1(this),N1(this));x(b,function(b){b.Lc(a)})};var Y1=function(a,b){x(a.b.S(),function(a){u1(a,b)},a);a.la=b};M1.prototype.stop=function(a,b){this.a.info("Stopping video call because stop called with endCause: "+a);if("INITIAL"==this.getState()||"STOPPED"==this.getState()||"FINISHED"==this.getState())return!1;this.Ma("STOPPED",a,b);x(this.b.S(),function(c){c.stop(a,b)});return!0};
var L1=function(a,b){var c=Z1(a,a.m,b);if(!c)return null;var d=$1(a,c);if(null==d)return hR(a.a,"Failed to build session."),null;d.Ga().then(function(a){a?(this.a.info("Local session initialize completed."),a=Q1(this,a,c),(a=vY(this.K,a,c.b,c.m,b))?(a=rj(this.A.add(a).then(function(a){a2(this,d,a,c);return a},null,this),function(a){var b="Failed to add session to collection. Error: "+a;hR(this.a,b);this.f.then(function(a){return a.a(3949,void 0,void 0,void 0,void 0,void 0,b)});d.stop(-1==a.Id?106:
16,b);throw a;},this),MY(a,"ya",null,this)):(hR(this.a,"Failed to parse session info."),this.f.then(function(a){return a.a(3944)}),d.stop(16,"Failed to parse session info."))):(this.a.error("Local session initialize failed to create local offer."),this.f.then(function(a){return a.a(3942)}),d.stop(16,"Local session initialize failed to create local offer."))},function(a){hR(this.a,"Failed to initialize session.");this.f.then(function(a){return a.a(3943,d.b.a||void 0)});d.stop(16,"Failed to initialize session.");
throw a;},a);d.a.ii()&&(a.va.add(d),b2(a));return d},d2=function(a,b){b.s||(b=pQ(b,sZ(a.Oa)));b=c2(a,b);var c=a.M.oa.Fh(a.R,"c"+Math.round(2147483648*Math.random())+Math.round(2147483648*Math.random())+(b.a?"_P2P":"_NMS"),b);if(b.a){if(!mq)return a.a.info("Not creating p2p session because local does not support p2p"),a.f.then(function(a){return a.a(3939)}),null;if(2<a.la.length)return a.a.info("Not creating p2p session due to too many participants."),a.f.then(function(a){return a.a(3940)}),null}var d=
a.M.oa.Gh(a.R,b,a.gb);return new c1(a.R,a.M,c,d,b)},c2=function(a,b){var c=R(a.ba,20);c&&(b=zc(b),b.h=c);if(c=R(a.ba,21)){var d=zc(b);b.h&&(c=Math.max(b.h,c));d.B=c;b=d}a=T(a.ba,22,!1);b=zc(b);b.X=a;return b},$1=function(a,b){b=d2(a,b);if(null==b)return null;a.b.add(b);a.g.get(b.getState()).add(b);a.ea.set(b.fa(),b.getState());b.K=a.Xa;b.h.listen(b.K,"zb",b.me);b.M=a.Ab;b.h.listen(b.M,"zb",b.vg);u1(b,a.la);a.s.listen(b,["Bb","Cb","ba","ea","$"],a.dispatchEvent);a.s.listen(b.a,"Y",a.dispatchEvent);
a.s.listen(b.b,"R",a.dispatchEvent);a.s.listen(b,"E",a.zb);a.s.listen(b,"Z",a.wb);a.s.listen(b,"W",a.yb);a.s.listen(b,"X",a.Ya);return b},e2=function(a,b,c){b.start(c);x(a.w,function(a){e1(b,a)})},V1=function(a){return cc(a.g.get("INITIAL").S(),R1(a),P1(a),O1(a),N1(a))},O1=function(a){return a.g.get("PAUSED").S()},N1=function(a){return a.g.get("INPROGRESS").S()},P1=function(a){return a.g.get("STARTED").S()},R1=function(a){return a.g.get("STARTING").S()},a2=function(a,b,c,d){D(a.j,"Session add response received.");
1>c.length||!(c[0]instanceof uF)?(a.a.info("Stopping remote session due to receiving null session proto."),a.f.then(function(a){return a.a(3945)}),b.stop(16,"Received null session proto.")):(c=c[0],null!=c?(d=AY(a.K,c,!d.a),null!=d?f2(a,b,d):(a.a.info("Stopping session due to inability to parse session proto."),a.f.then(function(a){return a.a(3947)}),b.stop(16,"Error parsing session proto."))):(a.a.info("Stopping session due to type mismatch in session proto."),a.f.then(function(a){return a.a(3946)}),
b.stop(16,"Type mismatch in session proto.")))},Z1=function(a,b,c){var d=b.b||a.h;b=null!=d?fQ(b,d):fQ(b,null);b=kQ(b,c);if(c){b=jQ(b);if(null==a.B)return Ei(a.j,"P2P session starting first! This is bad!"),a.f.then(function(a){return a.a(3941)}),null;b=mQ(b);b=iQ(b);b=lQ(b,dc(a.fb,b.I))}return b};M1.prototype.Za=function(a){null!=a.a&&0<a.a.length&&g2(this,a.a);null!=a.removed&&0<a.removed.length&&h2(this,a.removed)};
M1.prototype.bb=function(a){this.a.error("Stopping video call because session collection failed, with reason: "+a.reason);this.stop(a.a)};
var g2=function(a,b){x(b,function(a){var b=Sb(this.b.S(),function(b){return a.h()==b.b.a});if(b){var c=AY(this.K,a,!b.f.a);null!=c&&f2(this,b,c)}else Ei(this.j,"Received modification for a session that we don't have!")},a)},h2=function(a,b){x(b,function(a){var b=Sb(this.b.S(),function(b){return a.h()==b.b.a});b?b.stop(25):this.a.error("Received removal of a session that we don't have! Session id: "+a.h())},a)};M1.prototype.yb=function(a){f2(this,a.b,a.sessionDescription)};
var f2=function(a,b,c){var d=b.getState(),e="INITIAL"==d,f="INITIAL"==d||"STARTING"==d;d="INITIAL"!=d&&"STARTING"!=d;var g=0!=y(c.h).length,l=!1,r=c.g;r&&null!=r.a&&(l=2==r.a.split(" ").length);g==l&&(f=e=!1);g=c.g;null!=g&&null!=g.f&&null!=g.b&&0!=y(g.g).length||(f=!1);g=c.m;null!=g&&b.qa(g);e&&(a.a.info("Received remote description for session "+b1(b.b)+" with sufficient data to allow session preparation."),b.kc(c));if(f)a.a.info("Received remote description for session "+b1(b.b)+" with sufficient data to allow starting the session."),
e2(a,b,c);else if(d)a:{a=c;switch(b.getState()){case "INITIAL":case "STARTING":C(b.j,"Remote description changed before starting.");break a;case "STOPPED":case "FINISHED":C(b.j,"Remote description changed after end.");break a}e=b.Ya;c=a;if(null!=e){if(!(f=F1(e.b,c.b)||F1(e.a,c.a)))if(f=e.g,d=c.g,null==f&&null==d)f=!1;else{if(!(g=null==f||null==d||f.ub()!=d.ub()||f.f!=d.f||f.b!=d.b))b:if(f=y(f.g),d=y(d.g),f.length!=d.length)g=!0;else{for(g=0;g<f.length;g++)if(l=f[g],r=d[g],l.nc!=r.nc||l.fd!=r.fd||
l.V()!=r.V()||l.wc!=r.wc||l.Xc!=r.Xc||l.Ba()!=r.Ba()||l.Bd!=r.Bd||l.Rc!=r.Rc||l.Od!=r.Od||l.Ud!=r.Ud||l.Vd!=r.Vd){g=!0;break b}g=!1}f=g?!0:!1}if(!f)b:if(e=y(e.h),c=y(c.h),e.length!=c.length)f=!0;else{for(f=0;f<e.length;f++)if(d=e[f],g=c[f],d.a!=g.a||d.f!=g.f||d.g!=g.g||d.b!=g.b){f=!0;break b}f=!1}c=f}else c=!0;c&&(b.Ya=Bc(a),b.g.info(b.fa()+" received modified remote description: "+Bi(a)),c=i1(a),0<c.length&&pV(b.a.a,c),a=G1(a),a=z1(a),a=g1(a),b.m=AP(zP(b.m,a.g),y(a.h)),c=b.m,e=c.b,null!=e?e=pP(e,
a.b):e=a.b,f=c.a,null!=f?f=pP(f,a.a):f=a.a,a=tP(xP(c,e),f),b.m=a,a=b.m.b,null!=a&&(b.zb=VO(a),b.dispatchEvent(new MQ)),null==a&&null==b.m.a||b.a.update(b.m,[]))}};M1.prototype.Ya=function(a){if("INPROGRESS"!=this.getState())C(this.j,"Ingress bandwidth updated before started.");else{var b=sZ(this.Oa),c=new LE;-1!=b.b&&U(c,1,b.b);-1!=b.a&&U(c,2,b.a);-1!=b.f&&U(c,3,b.f);b=new mF;Y(b,7,c);c=new uF;c.qa(a.sessionId);a=this.h||this.m.b;null===a||xF(c,[a]);wF(c,[b]);this.A.modify(c)}};
M1.prototype.wb=function(a){switch(this.getState()){case "INITIAL":C(this.j,"Received local candidates before starting.");return;case "STOPPED":case "FINISHED":C(this.j,"Received local candiates after end.");return}var b=a.target,c=[];x(a.a,function(a){a=this.K.a(a);c.push(a);U(a,9,void 0)},this);if(!(1>c.length)){var d=new hF;hw(d,6,c);var e=b.a.a.b.g;if(e&&(U(d,4,e.f),U(d,5,e.b),e.a)){var f=new jF;U(f,1,e.a.split(" ")[0]);U(f,2,e.a.split(" ")[1]);Y(d,2,f)}var g=[];x(y(b.a.a.b.h),function(a){g.push(this.K.Zg(a))},
this);b=new mF;b.Ta(4);Y(b,2,d);hw(b,4,g);d=new uF;d.qa(a.sessionId);wF(d,[b]);this.A.modify(d)}};
M1.prototype.zb=function(a){var b=a.target,c=this.ea.get(b.fa()),d=b.getState();if(c!=d){this.ea.set(b.fa(),d);this.g.get(c).remove(b);this.g.get(d).add(b);switch(d){case "STARTED":null!=this.h&&null!=this.ra&&null!=this.ya&&b.se(this.h,this.ra,this.ya);break;case "INPROGRESS":i2(this,b);break;case "STOPPED":j2(this,b,a.a,a.Cb);break;case "FINISHED":this.g.get(b.getState()).remove(b),this.ea.remove(b.fa()),this.b.remove(b),this.va.delete(b),Lh(b),this.b.da()==this.g.get("FINISHED").da()&&("STOPPED"!=
this.H?C(this.j,"Session Manager finished before stopping."):this.Ma("FINISHED"))}this.dispatchEvent(a)}};
var i2=function(a,b){if("INITIAL"==a.getState()||"STOPPED"==a.getState()||"FINISHED"==a.getState())Ei(a.j,"Should not have new active sessions now.");else{"STARTING"==a.getState()&&a.Ma("INPROGRESS");H1(b,a.m.M);var c=b.fa(),d=N1(a);x(d,function(a){c!=a.fa()&&(a.pause(),k2(this,a,b))},a)}},j2=function(a,b,c,d){x(a.w,function(a){a.hg(b.fa())});if(26==c)c=a.B,a.B=L1(a,!1),c&&(a.B?k2(a,c,a.B):a.a.error("Cloud session"+c.b.a+" to cloud handoff failed"));else{55==c&&a.f.then(function(a){a.a(3262,b.b.a||
void 0)},null,a);var e=a.g.get("STOPPED").da()+a.g.get("FINISHED").da();a.b.da()==e?"STOPPED"!=a.H&&(a.a.info("All sessions now stopped."),a.stop(c,d)):0==N1(a).length&&x(O1(a),function(a){a.resume();k2(this,b,a)},a)}},k2=function(a,b,c){var d=b.f.a?5:c.f.a?4:6;var e=new $J;U(e,1,d);U(e,2,0);U(e,3,b.b.a);U(e,4,c.b.a);bK(e);var f=new rK;Y(f,15,e);l1(b.b,f);4==d&&a.f.then(function(a){a.a(3260,c.b.a||void 0)},null,a);a.a.info("Handing off from "+(b.f.a?"P2P":"RF")+" session to "+(c.f.a?"P2P":"RF")+" session")},
b2=function(a){a.Ia||(a.Ia=I1.ja(),a.s.listen(a.Ia,"Db",a.cb))};
M1.prototype.cb=function(){var a=this,b=this.va;if(0===b.size)D(this.j,"SleepWatcher suspend ignored. No effected sessions.");else{C(this.j,"Suspend triggered by SleepWatcher, "+("effecting "+b.size+" session(s)."));l2(this);var c=this.w.concat().filter(function(a){return"v"===a.Z().V()});D(this.j,"Muting "+c.length+" video capture(s).");c.forEach(function(a){return a.Tb()});Dj(2E3).then(function(){b.forEach(function(b){switch(a.getState()){case "STOPPED":case "FINISHED":D(a.j,"Suspend ignored for finished/stopped session. "+
b);return}D(a.j,"Ending session due to SleepWatcher trigger. "+b);a.stop(4,"Computer went to sleep.")})})}};var l2=function(a){a.f.then(function(a){return a.a(2056,void 0,void 0,void 0,void 0,void 0,void 0)})};var m2=function(a,b,c){B.call(this);this.f=b;this.a=c;this.b=new wA(this);this.l(this.b);this.b.removeAll();this.b.listen(a,"Cb",this.h)};t(m2,B);m2.prototype.h=function(a){this.a.a("J");var b=this.f,c=NV(a.data);c=new kJ(c);c=X(c,hJ,1);D(b.j,"handlePushNotification invoked, batch size: "+c.length);x(c,b.a,b);a=NV(a.data);a=X(new kJ(a),hJ,1);0==a.length?this.a.a("N"):1==a.length?x(a,this.g,this):this.a.a("O")};
m2.prototype.g=function(a){var b=V(a,vD,1);(b=b&&R(b,3))&&this.a.a("ba",b);a=V(a,fJ,2);if(null!=a){for(var c,d=0;d<eW.length;d++)if(b=eW[d].ab.call(a),null!=b){c=eW[d].eventType;switch(c){case "hb":a="R";break;case "jb":a="S";break;case "eb":a="T";break;case "fb":a="U";break;case "ib":a="V";break;case "ab":a="W";break;case "bb":a="X";break;case "cb":a="Y";break;case "pb":a="Z";break;case "db":a="aa";break;case "kb":a="ca";break;case "lb":a="da";break;case "mb":a="ea";break;case "nb":a="fa";break;
case "ob":a="ga";break;default:a="Q"}this.a.a(a);break}c||this.a.a("$")}else this.a.a("P")};var o2=function(a,b,c){B.call(this);this.Za=new VX;this.onConnect=this.Za.a;this.yb=new VX;this.onDisconnect=this.yb.a;this.ba=new VX;this.zb=this.ba.a;this.za=new n2(a,this);this.l(this.za);this.Xb=b;this.b=this.Xb.a;this.G=Ih("realtime.media.call.BaseCall");this.Sa=new wA(this);this.l(this.Sa);this.Ya=new VX;this.Ha=this.Ya.a;this.bb=new VX;this.Fa=this.bb.a;this.Xa=[];this.B=c||R(this.b,2)+"^"+Ab();this.K=new CQ;this.ya=new VX;this.fe=this.ya.a;this.Ab=new VX;this.rd=new qY;this.l(this.rd);this.fb=
new qY;this.l(this.fb);this.a=new M1(a,b,this.rd.a,this.fb.a,this.B);this.l(this.a);(new VX).resolve(this.a);this.na=0;this.Sa.listen(this.a,["R","Y","$","Bb"],this.dispatchEvent);this.Sa.listen(this.a,"E",this.ie);this.ee=new VX;this.sessionId=this.ee.a;VR(a,ER,ZX).then(function(a){a.hb=a.hb||this.b;a.Le=a.Le||this.Xb;a.Af||aY(a);hY(this.a,bY(a));Math.random()<=$v(a.hb,9)&&U1(this.a);a.hf.push(this);this.onConnect.then(p(a.hl,a,this));this.onDisconnect.then(p(a.Mh,a,this),p(a.Mh,a,this))},null,this);
this.ma=nX.ja();this.Gc=[];oc(this.Ed(),function(a,b){this.Gc.push(oX(this.ma,b,a))},this)};t(o2,B);h=o2.prototype;h.Rd=function(a){var b=R(this.b,6);a=zc(a);a.A=b;b=R(this.b,18);null!=b&&(a=zc(a),a.H=b);Fi(this.G,"Starting the media session.");this.a.kc(a)?this.ba.resolve(null):this.ba.reject("Failed to create session.")};h.Ed=function(){return{callState:p(this.getState,this),hangoutId:p(this.Ha.get,this.Ha),pid:p(this.Fa.get,this.Fa),plid:Vg(this.B),sessionId:p(this.Uf,this)}};
h.Fd=function(){return{callState:Vg(this.getState()),hangoutId:Vg(this.Ha.get()),pid:Vg(this.Fa.get()),plid:Vg(this.B),sessionId:Vg(this.Uf())}};h.W=function(){Fi(this.G,"Disposing call.");this.disconnect(0);x(this.Gc,this.ma.f,this.ma);oc(this.Fd(),p(function(a,b){oX(this.ma,b,a)},this));o2.aa.W.call(this)};h.Ma=function(a){a!=this.na&&(D(this.G,"Call state changed from "+this.na+" to "+a),this.na=a,this.dispatchEvent("Lb"))};h.Uf=function(){return this.a.B&&this.a.B.fa()};h.getState=function(){return this.na};
var p2=function(a,b,c,d){D(a.G,"triggerConnected() called. HangoutId: "+c+" ParticipantId: "+d);a.Ya.resolve(c);a.bb.resolve(d);a.bh();a.fe.then(function(){var a=new UQ;this.Ab.resolve(a);this.l(a)},void 0,a);b.resolve();a.Za.resolve(null);a.Ma(2);DQ(a.K,a.B).l="jid";a.a.connect(c,d,a.K);a.l(new m2(a.a,a.b.s,a.b.v));D(a.G,"Call connected")};o2.prototype.l=function(a){a=p(B.prototype.l,this,a);2==this.onDisconnect.a?a():this.onDisconnect.then(a,a)};
var q2=function(a,b){a.Xa=y(b);Y1(a.a,a.Xa);a.fe.then(function(a){a.A(this.Xa)},void 0,a)};o2.prototype.disconnect=function(a){if(3==this.getState()||4==this.getState())return D(this.G,"disconnect() skipped, already disconnecting."),this.onDisconnect;D(this.G,"disconnect() called. Endcause: "+a);var b=2==this.getState();this.Ma(3);this.ae(b,a);return this.onDisconnect};
o2.prototype.ae=function(a,b){D(this.G,"triggerDisconnected(). Endcause: "+b);a=new r2(b);this.Ya.reject(a);this.bb.reject(a);this.ya.reject(a);this.Ab.reject(a);this.Za.reject(a);this.ba.reject(a);this.b.h.f.a=null;this.yb.resolve(b);this.Ma(4);this.a.stop(b)};o2.prototype.Pe=function(a){return 3==this.getState()||4==this.getState()?(D(this.G,"addCapture() failed, because we are disconnecting"),!1):X1(this.a,a)};
o2.prototype.ie=function(a){a.target==this.a?"STOPPED"==a.state?(D(this.G,"Disconnect received from session. Endcause: "+a.a),this.disconnect(a.a)):"INPROGRESS"==a.state&&this.dispatchEvent("Kb"):"STARTING"==a.state&&(a=a.target.b.a,2==this.sessionId.a?this.Ei(a):this.ee.resolve(a))};var s2=function(){},r2=function(a){this.a=a},n2=function(a,b){lN.call(this,a);xN(a)&&qN(a,IR)&&sN(this,IR).then(function(a){if(!a.a){var c=b.B;a.a||(a.a=!0,a.b.resolve(c))}})};t(n2,lN);var t2=function(a){wA.call(this);this.A=a;this.a=null;this.f=[];this.h=this.s=!1;this.I=new sY;this.w=null};t(t2,wA);t2.prototype.W=function(){this.f=[];this.a=null;t2.aa.W.call(this)};var v2=function(a){var b=a.a,c=a.f[a.f.length-1]||null;x(a.f,function(a){"sc"==a.Z().ib&&(c=a)});b!=c&&(a.a=c,u2(a))};t2.prototype.B=function(a){var b=this.a;v2(this);b&&b==this.a&&a.target==b.Z()&&u2(this)};
var u2=function(a){a.u||(a.h?a.s=!0:(a.s=!1,a.h=!0,lj([a.A.Ha,a.A.Fa,a.A.g]).then(function(a){var b=a[0],d=a[1];a=a[2];if(null!=this.a){var e=this.I,f=this.a.Z();var g=new DF;g.P(b);g.pa(f.N());g.Mf(f.getId());g.Ta(BY(e,f.V()));var l="mu"==f.getState();g.Xd(new FF);var r=V(g,FF,5);U(r,1,l);if("a"==f.V())null!=f.Wd&&(e=new LF,U(e,2,f.Wd),f=f.N(),U(e,1,f),Y(g,8,e));else if("v"==f.V()){l=new JF;Y(g,7,l);l=V(g,JF,7);a:{r=f.ib;switch(r){case "ca":r=1;break a;case "sc":r=2;break a}C(e.j,"Unknown media content: "+
r);r=void 0}U(l,1,r);l=null!=f.a?y(f.a):null;null!=l&&(f=V(g,JF,7),e=Nb(l,e.l,e),hw(f,3,e))}g.P(b);g.pa(d);g.Mf(this.a.Z().getId());this.w=g}else this.w&&(g=this.w,b=V(g,FF,5),U(b,1,!0));g?a.add(g).then(this.g,this.g,this):this.g()},a.g,a)))};t2.prototype.g=function(){this.h=!1;this.s&&u2(this)};var w2=function(a,b,c,d,e){B.call(this);this.F=new sY;this.b=a;this.w=b;this.s=e;this.a=new Ni;this.m=new PQ;this.g=new wA(this);this.l(this.g);this.g.listen(this.w,"ub",this.h);this.g.listen(this.s,["ea","E"],this.h);x(d,this.f,this)};t(w2,mY);w2.prototype.f=function(a){""==a.N()&&a.pa(this.b);this.m.add(a)};w2.prototype.B=function(a){return a==this.b?this.m:this.a.get(a,null)};
w2.prototype.A=function(a){var b=new hl;x(a,function(a){if(a!=this.b&&(b.add(a),!this.a.Va(a))){var c=new PQ;this.a.set(a,c);this.dispatchEvent(new TQ("ha",a))}},this);x(this.a.Qa(),function(a){b.contains(a)||(this.a.get(a),this.a.remove(a)&&this.dispatchEvent(new TQ("ia",a)))},this);this.h()};
w2.prototype.h=function(){var a=new hl;x(this.w.get(),function(b){var c=this.a.get(b.N());if(null!=c){var d=this.F,e=b.N(),f=b.ga(),g=CY(d,b.Y()),l="un";if(null!=V(b,JF,7)){a:{l=R(V(b,JF,7),1);switch(l){case 1:l="ca";break a;case 2:l="sc";break a}C(d.j,"Unknown capture type: "+l);l="un"}var r=zY(d,X(V(b,JF,7),OF,3),d.v,d)||void 0}if(null!=V(b,LF,8)){var u=$v(V(b,LF,8),2);u=n(u)?u:void 0}d=V(b,FF,5)&&V(b,FF,5).pc()?"mu":"li";var z=null;null!=e&&null!=f&&null!=g&&(z=new QN(e,f,g,null!=l?l:void 0,d,
u,r));null!=V(b,FF,5)&&R(V(b,FF,5),2);null!=V(b,HF,6)&&R(V(b,HF,6),1);f=z;null!=f&&(e=QQ(c,f.V(),f.getId(),f.N()),null!=e?(c=f.ib,e.ib!=c&&(e.ib=c,e.dispatchEvent("r")),c=f.Wd,e.Wd!=c&&(e.Wd=c,e.dispatchEvent("s")),e.Ma(f.getState()),c=null!=f.a?y(f.a):null,PN(e,c)&&e.dispatchEvent("u")):c.add(f))}a.add(x2(b.N(),b.ga()))},this);x(T1(this.s),function(b){var c=b.N(),d=b.ga();if(c!=this.b&&!a.contains(c+"/"+d)){b=b.getInfo().Y();var e=this.a.get(c);null!=e&&!QQ(e,b,d,c)&&e.add(new QN(c,d,b));a.add(c+
"/"+d)}},this);x(this.a.S(),function(b){x(y(b.a),function(c){a.contains(x2(c.N(),c.getId()))||b.remove(c)},this)},this)};var x2=function(a,b){return a+"/"+b};var y2=function(a,b,c,d){o2.call(this,a,b,d);this.F=!1;this.H=new VX;this.s=this.H.a;this.ea=new VX;this.f=this.ea.a;this.f.then(function(a){this.Sa.listen(a,"ub",Ja(this.va,a));this.va(a)},null,this);this.ra=new VX;this.g=this.ra.a;this.A={};this.la=this.M=this.ka=null;this.m={Ha:"",Fa:"",cookie:null};this.R=null;sN(a,ER,!1).then(p(function(a){this.R=a},this));c&&this.Rd(c)};t(y2,o2);
var z2={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},A2={1:0,2:307,3:303,4:217,5:305,6:307,7:307,8:306,11:217};y2.prototype.va=function(a){q2(this,Nb(a.get(),function(a){return a.N()}))};
y2.prototype.connect=function(a,b){return this.zb.then(function(){D(this.G,"connect() was called");if(0!=this.getState())return C(this.G,"connect() failed. Not in INITIALIZED. State: "+this.getState()),hj(new s2(this.getState()));var c=xc();this.Ma(1);if(ta(a)){Fi(this.G,"Skipping Hangout resolution");var d=pZ(this.za,this.b,[a],nZ(),jZ,"eb");B2(this,c,d,b||null)}else C2(this,c,a,b);return c.a},void 0,this)};
var C2=function(a,b,c,d){Fi(a.G,"Resolving Hangout");c.then(function(a){B2(this,b,a,d||null)},function(a){C(this.G,"Hangout resolve failed, reverting to INITIALIZED state");this.Ma(0);b.reject(new D2(306,a))},a)},B2=function(a,b,c,d){var e=pw(c.g).U();Fi(a.G,"connectToHangout(). HangoutId: "+e);1!=a.getState()?(C(a.G,"connectToHangout() failed, not in CONNECTING state. State: "+a.getState()),b.reject(new D2(302,new s2(a.getState()))),Lh(c)):(a.m.Ha=e,a.m.Fa=d||"",a.M=ei(ie(),"beforeunload",a.ai,!1,
a),a.la=ei(ie(),"unload",a.ai,!1,a),a.Xg(e,d,b,c,0))};h=y2.prototype;h.Ei=function(a){lj([this.f,this.Fa]).then(function(b){var c=b[0].ob();c.pa(b[1]);c.ld([a]);this.f.get().modify(c)},void 0,this)};
h.Xg=function(a,b,c,d,e){this.sessionId.then(function(f){var g=pZ(this.za,this.b,[a],new zW(tE,[tE.prototype.U],[tE.prototype.P],[tE.prototype.N],[tE.prototype.pa],dH,[dH.prototype.U],[dH.prototype.P],[dH.prototype.N],[dH.prototype.pa]),iZ,"fb");Fi(this.G,"Adding participant");var l=g.ob();l.ld([f]);nb(b||"")||l.pa(b);g.add(l).then(p(this.ql,this,c,d,g,e),p(this.Qh,this,c,d,g))},void 0,this)};
h.ql=function(a,b,c,d,e){var f=e[0].U(),g=e[0].N();this.m.Fa=g;1!=this.getState()?(C(this.G,"add participant succeeded, but we are no longer CONNECTING. State: "+this.getState()),a.reject(new D2(302,new s2(this.getState()))),a=new tE,a.P(f),a.pa(g),c.remove(a).then(this.Qe,null,this),Lh(b),Lh(c)):(D(this.G,"add participant succeeded"),10==T(e[0],17,0)?(D(this.G,"participant in knocking state"),30>d?(D(this.G,"will attempt again after delay"),Dj(1E3).then(p(this.Xg,this,f,g,a,b,d+1))):(D(this.G,"max knock attempt, failing join"),
this.Qh(a,b,c,234))):(D(this.G,"success adding and not a knock result"),f=pw(b.g).U(),this.H.resolve(b),this.ea.resolve(c),this.l(b),this.l(c),p2(this,a,f,g),b.start(),c.start()))};h.Qh=function(a,b,c,d){this.Qe();C(this.G,"add participant failed, moving back to INITIALIZED state");this.Ma(0);Lh(b);Lh(c);a.reject(new D2(E2(d),d))};
h.Ed=function(){var a=y2.aa.Ed.call(this);a.hangout=p(function(){return this.s.get()&&RW(this.s.get())},this);a.participants=p(function(){return this.f.get()&&RW(this.f.get())},this);a.mediaSources=p(function(){return this.g.get()&&RW(this.g.get())},this);return a};h.Fd=function(){var a=y2.aa.Fd.call(this);a.hangout=Vg(this.s.get()&&RW(this.s.get()));a.participants=Vg(this.f.get()&&RW(this.f.get()));a.mediaSources=Vg(this.g.get()&&RW(this.g.get()));return a};
h.bh=function(){lj([this.Ha,this.Fa,this.f]).then(function(){var a=qZ(this.za,this.b,this.Ha.get());this.l(a);this.ra.resolve(a);a.start();a=new w2(this.Fa.get(),a,this.f.get(),Nb(this.a.w.concat(),function(a){return a.Z()}),this.a);this.l(a);this.ya.resolve(a)},void 0,this)};
h.ae=function(a,b){this.ka=b;if(a&&!this.F){D(this.G,"Removing participant on disconnect");var c=new tE;c.P(this.Ha.get());c.pa(this.Fa.get());var d={};d.jYdIne=b;this.f.get().remove(c,d,2).then(this.Qe,null,this)}this.m.cookie=this.b.h.f.a;y2.aa.ae.call(this,a,b);oc(this.A,Lh);a=this.A;for(var e in a)delete a[e];b=new r2(b);this.H.reject(b);this.ea.reject(b);this.ra.reject(b);null!=this.s.get()&&this.s.get().stop();null!=this.f.get()&&this.f.get().stop();null!=this.g.get()&&this.g.get().stop()};
h.Pe=function(a){if(3==this.getState()||4==this.getState())return D(this.G,"addCapture() failed, because we are disconnecting"),!1;var b=this.A[a.Z().getId()];if(b&&Ub(b.f,a))return C(this.G,"HangoutCall.addCapture() failed because we already have this capture"),!1;b||(b=new t2(this),this.A[a.Z().getId()]=b);b.listen(a.Z(),["r","s","t","u"],b.B);b.f.push(a);v2(b);return y2.aa.Pe.call(this,a)};h.Qe=function(){null!=this.M&&oi(this.M);null!=this.la&&oi(this.la)};
h.ai=function(){this.Qe();var a=R(this.b,12),b=null!=this.ka?this.ka:63;if(null!=a){var c=new wJ;U(c,5,b);var d=new dH;d.P(this.m.Ha);nb(this.m.Fa)||d.pa(this.m.Fa);xJ(c,[d]);c.setRequestHeader(kW(this.b));d=new Z;Y(d,3,this.m.cookie||this.b.h.f.a);c.D(d);c=c.ia();d=this.R?lY(this.R):[];d=Nb(d,function(a){return a.ia()},this);if(null!=navigator.sendBeacon){var e=new FormData;e.append("r",c);x(d,function(a){e.append("l",a)});this.F=navigator.sendBeacon(a,e)}this.F||(a=Gj(a,"r",c),a=Gj(a,"l",d),c=Li(Ji),
c.open("GET",a,!1),c.send(null));this.F=!0}this.disconnect(b)};var E2=function(a){var b=null;try{b=mw(a.response.ds)}catch(d){}var c;b instanceof tG?(a=b.getResponseHeader())&&(c=10==a.Ca()?z2[R(b,4)]||209:A2[a.Ca()]):n(a)&&(c=a);return m(c)?c:302},D2=function(a,b){this.yi=a;this.we=b};var F2=function(a,b,c,d,e){B.call(this);this.j=Ih("realtime.collections.apiary.OperationExecutor");this.a=[];this.f=b;this.h=b instanceof aW?b:null;this.g=a;this.H=gj(c||null);this.F=m(d)?d:8;this.K=LV(e||0)};t(F2,wW);var G2=function(a){var b=new vC;xC(b,new qC);sC(V(b,qC,1),a.F);var c=new mC;return a.H.then(function(d){d&&U(c,4,d);Y(b,2,c);d=V(b,mC,2);U(d,1,a.g);b.Dc("en");Y(b,7,a.K);return b})};
F2.prototype.execute=function(a,b){if(a.Ce())throw new gZ;this.h&&!m(b)&&a.w?(this.a.push(a),1==this.a.length&&kh(this.B,this)):H2(this,a,b)};F2.prototype.B=function(){for(var a=0;a+5<this.a.length;)I2(this,fc(this.a,a,a+5)),a+=5;1==this.a.length-a?H2(this,this.a[a]):I2(this,fc(this.a,a));this.a.length=0};
var H2=function(a,b,c){var d=b.g,e=fZ(b);G2(a).then(function(f){e.setRequestHeader(f);D(a.j,"Making request for operation: "+b+", jid: "+a.g);f=b.Qd();var g=m(c)?c:b.gd(),l=Math.max(g,b.Me()||0);rj(a.f.makeRequest(d,e,g,f,l).then(p(a.m,a,b)),p(a.b,a,b))})};
F2.prototype.m=function(a,b){var c=b.getResponseHeader();if(1==c.Ca())c=a.I(b),b=Ca(b.C)&&null!=b.C()?b.C().ub():-1,b=new vW(c,b),D(this.j,"Apiary operation succeeded for "+a+", result: "+b),a.f=!0,a.Uc().resolve(b);else{var d=Error(R(c,8));d.stack=R(c,2);Ei(this.j,"Apiary operation "+a+" failed with status "+c.Ca(),d);this.b(a,new OV("fatal","backend",null,b))}};F2.prototype.b=function(a,b){a.f=!0;Ei(this.j,"Apiary operation failed for "+a+": "+b.toString());a.Uc().reject(b)};
var I2=function(a,b){var c=new mG;G2(a).then(function(d){c.setRequestHeader(d);nG(c,Nb(b,function(a){var b=fZ(a),c=new jG;a.w.call(c,b);return c},a));D(a.j,"Making bulk request for "+b.length+"operations , jid: "+a.g);d=Math.max.apply(null,Nb(b,function(a){return a.Qd()}));var e=Nb(b,function(a){return a.gd()});e=Mb(e,m);e=e.length?Math.min.apply(null,e):void 0;rj(a.f.makeRequest("hangouts/bulk",c,e,d).then(p(a.A,a,b)),p(a.w,a,b))})};
F2.prototype.A=function(a,b){cW(this.h,b);var c=X(b,VG,2);x(a,function(a,e){(e=a.B.call(c[e]))?(cW(this.h,e),this.m(a,e)):this.b(a,new OV("fatal","backend",null,b))},this)};F2.prototype.w=function(a,b){x(a,function(a){this.b(a,b)},this)};var K2=function(a,b,c){var d=0;m(void 0)&&(c=pw(c),U(c,5,!0),d=Ka()+void 0);var e=xc(),f=function(a){Ka()>=d?e.reject(a):Bj(l,5E3)},g=function(c){1==c.getResponseHeader().Ca()?(c=c.U(),e.resolve(pZ(a,b,[c],nZ(),jZ,"eb"))):f(new OV("fatal","backend",null,c))},l=function(){rj(J2(a,b,c).then(g),f)};l();return e.a},J2=function(a,b,c){a=OY(NY.ja(),a,b);var d=a.f;c=pw(c);return G2(a).then(function(a){c.setRequestHeader(a);return d.makeRequest("hangouts/resolve",c)})};var L2=function(a,b,c){var d=this;this.a=a;this.g={};oc(b,function(a,b){return d.g[b.toLowerCase()]=a});this.Bc=c};L2.prototype.Sc=function(){return zc(this.g)};L2.prototype.Gd=function(a){return this.g[a.toLowerCase()]||null};var M2=function(a,b,c){L2.call(this,a,b,c)};qa(M2,L2);var O2=function(a,b,c,d,e){Jh.call(this);this.s=a;this.b=b;this.B=e||{};this.m=c;this.A=d;this.w=-1;this.v=xc();this.a=!1;this.g=0;this.h=this.f=void 0;this.ua=++N2};t(O2,Jh);var N2=0;h=O2.prototype;h.eg=function(a){this.w=a;return!1};h.Uc=function(){return this.v};h.Ne=function(){return this.v.a};h.Ce=function(){return this.a};h.Oe=function(a){this.g=a};h.Qd=function(){return this.g};h.Ve=function(a,b){m(b)&&(b=Math.max(a,b));this.f=a;this.h=b};h.gd=function(){return this.f};h.Me=function(){return this.h};
h.vf=function(){return this.m.ia()};h.toString=function(){return"[Operation id: "+this.ua+": service: "+this.s+", call: "+this.b+", version: "+this.w+"]"};var P2=function(){Eb.call(this)};t(P2,Eb);P2.prototype.message="Operation has already been executed.";P2.prototype.name="AlreadyExecutedError";var Q2=function(a){Q(this,a,0,-1,null)};t(Q2,P);var R2=function(a,b){for(;yv(b)&&4!=b.b;)switch(b.f){case 1:var c=Bv(b);ew(a,1,c);break;case 2:c=b;var d=c.a.f();c=c.a;if(0>d||c.a+d>c.b.length)c.h=!0,Hb("Invalid byte length!"),c=new Uint8Array(0);else{var e=c.b.subarray(c.a,c.a+d);c.a+=d;c=e}dw(a,2,c,"");break;default:zv(b)}return a};Q2.prototype.o=function(){var a=new E;S2(this,a);return F(a)};var S2=function(a,b){var c=T(a,1,"");0<c.length&&M(b,1,c);c=aw(a.Ra());0<c.length&&Mv(b,2,c)};
Q2.prototype.Ra=function(){return T(this,2,"")};var U2=function(a){Q(this,a,0,-1,T2)};t(U2,P);var T2=[3],V2=function(a){a=new xv(a);for(var b=new U2;yv(a)&&4!=a.b;)switch(a.f){case 1:var c=a.a.v();dw(b,1,c,0);break;case 2:c=Bv(a);ew(b,2,c);break;case 3:c=new Q2;Av(a,c,R2);iw(b,3,c,Q2);break;default:zv(a)}return b};U2.prototype.o=function(){var a=new E;var b=T(this,1,0);0!==b&&H(a,1,b);b=this.getMessage();0<b.length&&M(a,2,b);b=X(this,Q2,3);0<b.length&&O(a,3,b,S2);return F(a)};U2.prototype.getMessage=function(){return T(this,2,"")};var W2=function(a,b,c,d,e){d=void 0===d?null:d;e=void 0===e?null:e;var f=c instanceof U2;L2.call(this,a,b,f?null:c);this.f=f?c:null;this.l=e;this.b=d};qa(W2,L2);W2.prototype.getMessage=function(){return this.l};var X2=function(a){return new W2(a.a,a.Sc(),(a instanceof W2?a.f:null)||a.Bc,null,"validation failed")};var Z2=function(a,b,c,d,e){var f=this;this.l=a;this.g=b;this.b=c;this.a={};oc(d,function(a,b){return Y2(f,b,a)});this.f=null;this.f=e?e.clone():null};Z2.prototype.getContext=function(){return this.l};Z2.prototype.Sc=function(){return zc(this.a)};Z2.prototype.Gd=function(a){return this.a[a.toLowerCase()]||null};var Y2=function(a,b,c){b=b.toLowerCase();null==c?delete a.a[b]:a.a[b]=c};Z2.prototype.clone=function(){return new Z2(this.l,this.g,this.b,this.a,this.f)};var $2=function(a){return{a:a}};var a3=function(){},e3=function(a,b,c){var d=b.getContext();Y2(b,"Content-Type","application/x-protobuf");Y2(b,"X-Goog-Api-Key",b3(d)||null);Y2(b,"X-Goog-Encode-Response-If-Executable","base64");var e=c3(d)+("/$rpc/"+b.g+"/"+b.b),f=null,g=b.f;g&&(f=g.o.call(g));g=xc();var l=new Kj;l.listen("complete",a.a.bind(a,g,c));mi(l,"ready",l.wa);d3(d)&&(l.h=Math.max(0,d3(d)));l.A=!0;l.s="arraybuffer";l.send(e,"POST",f,b.Sc());rj(g.a,function(a){a instanceof bj&&l.abort()});return g.a};
a3.prototype.a=function(a,b,c){try{var d=c.target,e=d.Ca(),f=ck(d),g=bk(d),l=new Uint8Array(g&&g||null);l&&qc(f,function(a,b){return"BASE64"==a.toUpperCase()&&"X-GOOG-SAFETY-ENCODING"==b.toUpperCase()})&&(l=av(Vu(l)));if(Yj(d))try{a.resolve(new M2(e,f,b?b(l):null))}catch(u){a.resolve(new W2(10002,f,null,u,"Failed to decode response"))}else{var r=0==e?d.m+3E4:e;try{a.resolve(new W2(r,f,V2(l),Error(ta(d.f)?d.f:String(d.f))))}catch(u){a.resolve(new W2(r,f,null,u,"Failed to decode status"))}}}catch(u){a.resolve(new W2(10005,
{},null,u,"Failure in XHR result processing"))}};var f3=new a3,g3=function(a){this.a=void 0===a?null:a;this.w=this.f=this.s=this.b=this.l=this.v=null;this.m=[];this.g=[];this.u=[]};g3.prototype.h=function(){var a=new g3;a.setApiKey(b3(this));a.l=c3(this);a.b=d3(this);a.s=h3(this);a.f=i3(this);a.w=j3(this);x(k3(this),function(b){return l3(a,b)});x(m3(this),function(b){a.g.push(b)});x(n3(this),function(b){return o3(a,b)});return a};var c3=function(a){return null!=a.l?a.l:a.a?c3(a.a):""};g3.prototype.setApiKey=function(a){this.v=a};
var b3=function(a){return null!=a.v?a.v:a.a?b3(a.a):""},p3=function(a,b){a.b=b},d3=function(a){return null!=a.b?a.b:a.a?d3(a.a):6E4},h3=function(a){return null!=a.s?a.s:a.a?h3(a.a):3E5},q3=function(a,b){a.f=b},i3=function(a){return null!=a.f?a.f:a.a?i3(a.a):0},j3=function(a){return a.w?a.w:a.a?j3(a.a):f3},l3=function(a,b){a.m.push(b)},k3=function(a){return a.a?a.m.concat(k3(a.a)):a.m.concat()},m3=function(a){return a.a?a.g.concat(m3(a.a)):a.g.concat()},o3=function(a,b){a.u.push(b)},n3=function(a){return a.a?
a.u.concat(n3(a.a)):a.u.concat()};var u3=function(){var a=this;this.a=new Nz(100);this.b={onRequest:function(b,c){for(var d=[],e=1;e<arguments.length;++e)d[e-1]=arguments[e];a.a.add({name:d[0].ue.b,initReq:r3(b),req:r3(d[0].ue),resp:s3(d[0].response),attemptsHistory:t3(d)})}}},v3=function(a,b,c,d){b=void 0===b?"":b;c=void 0===c?100:c;d=void 0===d?!1:d;b=b.toLowerCase();a=a.a.S().filter(function(a){return-1!=a.name.toLowerCase().indexOf(b)&&(!d||400<=a.resp.code)});return a.slice(-Math.min(a.length,c))},x3=function(a,b){var c=void 0===
c?!1:c;return v3(w3(),a,b,c)},y3=function(a){var b=w3();o3(a,b.b)},w3=function(){z3||(z3=new u3);return z3},z3=null,A3=function(a){if(a){if(a.ia)return JSON.parse(a.ia());if(Ba(a))return Nb(a,function(a){return A3(a)})}return a},r3=function(a){return{name:a.g+"/"+a.b,body:Bi(A3(a.f)),head:a.Sc()}},s3=function(a){var b={code:a.a,body:Bi(A3(a.Bc)),head:a.Sc()};a instanceof W2&&(b.status=Bi(A3(a.f)),b.ex=a.b,b.msg=a.getMessage());return b},t3=function(a){var b=[];x(a,function(a){var c=r3(a.ue),e=s3(a.response);
b.push({timestamp:a.timestamp,ue:c,response:e})});return b};q("grpc_lookup",function(a){return x3(a,1)[0]});q("grpc_dump",function(a,b){return x3(a,b)});var D3=function(a,b){var c=this;this.m=new PV(1E3,36E4);this.a=a.getContext();this.u=a;a=d3(this.a);var d=h3(this.a);this.f=0<a?new PV(a,Math.max(a,d)):null;this.s=b;this.b=xc();this.v=0;this.g=this.h=!1;B3(this.b.a,function(){c.g=!0});this.l=[];C3(this)},C3=function(a){E3(a).then(function(b){a.l.unshift({timestamp:(new Date(Ka())).toString(),ue:b.request,response:b.response});2==b.pd&&a.v<i3(a.a)?F3(a):G3(a,b)})},F3=function(a){a.v++;a.f&&(QV(a.f),p3(a.a,a.f.Ra()));var b=Dj(a.m.Ra()).then(function(){return C3(a)});
QV(a.m);B3(a.b.a,function(){return b.cancel()})},G3=function(a,b){a.h||(0==b.pd?a.b.resolve(b.response):(b.response instanceof M2&&(b.response=X2(b.response)),a.b.reject(b.response)),a.h=!0,x(n3(a.a),function(b){return kh(function(){return b.onRequest.apply(b,[].concat([a.u.clone()],k(a.l)))})}))},E3=function(a){var b=xc().a;B3(a.b.a,function(){return b.cancel()});var c=a.u.clone(),d=!1,e=[],f=H3(a,b,c),g=f.then(function(c){return d?new W2(20002,{},null):I3(a,b,c)}),l=lj([f,g]).then(function(c){return d?
1:J3(a,b,c[0],c[1])},function(){return 3});e.push(mj([f,g,l]).then(function(a){return a[0].dc?a[1].dc?a[2].dc?{request:a[0].value,response:a[1].value,pd:a[2].value}:{request:a[0].value,response:new W2(10006,a[1].value.Sc(),a[1].value.Bc,a[2].reason),pd:3}:{request:a[0].value,response:new W2(10005,{},null,a[1].reason),pd:3}:{request:c.clone(),response:new W2(10004,{},null,a[0].reason),pd:3}}));if(a.f){var r=Dj(a.f.Ra()).then(function(){d=!0;return{request:c.clone(),response:new W2(10001,{},null,null,
"Client timed out"),pd:2}});B3(b,function(){return r.cancel()});e.push(r)}e=kj(e);qj(e,function(){return b.cancel()});return e},H3=function(a,b,c){if(a.g)return hj(new bj);var d=Nb(k3(a.a),function(a){try{return a.a(c)||gj()}catch(f){return hj(f)}});B3(b,function(){return x(d,function(a){return a.cancel()})});return lj(d).then(function(){return c.clone()})},I3=function(a,b,c){if(a.g)return hj(new bj);var d=e3(j3(a.a),c,a.s);B3(b,function(){return d.cancel()});return d},J3=function(a,b,c,d){if(a.g)return hj(new bj);
var e=Nb(m3(a.a),function(a){return a.a(c,d)});B3(b,function(){return x(e,function(a){return a.cancel()})});return lj(e).then(function(a){return Ob(a,function(a,b){return Math.max(a,b)},d instanceof M2?0:1)})},B3=function(a,b){rj(a,function(a){a instanceof bj&&b()})};var K3=function(a,b){g3.call(this,void 0===b?null:b);this.A=a};qa(K3,g3);var L3=function(a,b,c,d,e){d=void 0===d?null:d;e=void 0===e?{}:e;a=new Z2(a.h(),a.A,b,e,c);return(new D3(a,d)).b.a};K3.prototype.h=function(){return new K3(this.A,g3.prototype.h.call(this))};var M3=new Set([502,504,500,503]),N3=new Set([0,-1,30006]),O3=$2(function(a,b){return gj(M3.has(b.a)?2:0)}),P3=$2(function(a,b){return gj(N3.has(b.a)?2:0)});var Q3=["ResolveMeetingSpace","CreateMeetingSpace"],U3=function(){var a=Cw();a=void 0===a?new vw:a;this.g=Jj("https://meetings.clients6.google.com","/v1/${path}");this.a=a;this.l=R3(this);this.b=S3(this.l,this.a);this.h=T3(this.b,this.a);this.f=null},V3=function(a,b){return(void 0===b?0:b)?a.b:a.h},W3=function(a,b,c){$V(a.g.replace("${path}",b),Bi(c),"application/json")},R3=function(a){var b=new g3;b.setApiKey("");b.l="https://meetings.clients6.google.com";b.f=2;b.b=2E4;b.g.push(O3);b.g.push(P3);
l3(b,{a:function(){}});o3(b,{onRequest:function(b,d){for(var c=[],f=1;f<arguments.length;++f)c[f-1]=arguments[f];if(c=c[0].response.Gd("X-Goog-Meeting-Debugid"))a.f=c}});y3(b);return b},S3=function(a,b){a=new g3(a);o3(a,{onRequest:function(a,d){for(var c=[],f=1;f<arguments.length;++f)c[f-1]=arguments[f];if((c=c[0].response.Gd("X-Goog-Meeting-Token"))&&c&&(c=c.split(";"),f=Number(c[0]),!isNaN(f))){var g=new tw;U(g,2,f);U(g,1,c[1]);ww(b,g)}}});return a},T3=function(a,b){a=new g3(a);l3(a,{a:function(a){null!=
a.Gd("X-Goog-Meeting-Token")||Ub(Q3,a.b)||Y2(a,"X-Goog-Meeting-Token",xw(b))}});return a};var X3=function(a){B.call(this);this.j=Ih("realtime.collections.oneplatform.OperationExecutor");this.s=sN(a,UV)};qa(X3,wW);X3.prototype.execute=function(a,b){if(a.Ce())throw new P2;Y3(this,a,b)};
var Y3=function(a,b,c){c=void 0===c?null:c;D(a.j,"Making request for operation: "+b);n(c)||(c=b.gd());a.s.then(function(d){d=new K3(b.s,V3(d,void 0));n(c)&&(d.b=c);q3(d,b.Qd());rj(L3(d,b.b,b.m,b.A,b.B).then(function(a){var c=parseInt(a.Gd("ETag"),10);a=new vW(a.Bc,isNaN(c)?-1:c);b.a=!0;b.Uc().resolve(a)}),function(c){return Z3(a,b,c)})},function(c){return Z3(a,b,c)})},Z3=function(a,b,c){b.a=!0;Ei(a.j,"OnePlatform operation failed for "+(b+": "+(Da(c)?mh(c):c)));b.Uc().reject(c)};var $3=function(){};t($3,PY);XM($3,PY,10);$3.prototype.h=function(a,b,c,d){return d?new X3(a):null};var a4=function(a,b,c){B.call(this);new sY;this.b=a;this.g=c;this.a=new Ni;this.m=new PQ(!0);this.h=new wA(this);this.l(this.h);this.h.listen(this.g,["ea","E"],this.s);x(b,this.f,this)};t(a4,mY);a4.prototype.f=function(a){""==a.N()&&a.pa(this.b);this.m.add(a)};a4.prototype.B=function(a){return""==a||a==this.b?this.m:this.a.get(a,null)};
a4.prototype.A=function(a){var b=new hl;x(a,function(a){if(a!=this.b&&(b.add(a),!this.a.Va(a))){var c=new PQ;this.a.set(a,c);this.dispatchEvent(new TQ("ha",a))}},this);x(this.a.Qa(),function(a){b.contains(a)||(this.a.get(a),this.a.remove(a)&&this.dispatchEvent(new TQ("ia",a)))},this);this.s()};
a4.prototype.s=function(){var a=new hl,b=cc(T1(this.g),S1(this.g));x(b,function(b){var c=b.N()||this.b,e=b.ga(),f=c+"/"+e;if(!a.contains(f)){a.add(f);f=this.B(c);null==f&&(f=new PQ,this.a.set(c,f),this.dispatchEvent(new TQ("ha",c)));b=b.getInfo();var g=b.Y(),l=b.pc()?"mu":"li",r=QQ(f,g,e,c);null==r?(r=new QN(c,e,g,void 0,l),f.add(r)):""!=r.N()&&r.N()!=this.b&&r.Ma(l);c=r;e=b.ye();c.f!=e&&(c.f=e,c.dispatchEvent("u"))}},this);x(this.a.S(),function(b){x(y(b.a),function(c){a.contains(b4(c.N(),c.getId()))||
b.remove(c)},this)},this)};var b4=function(a,b){return a+"/"+b};var c4=function(a){NH.call(this,a);this.u=this.v=null};t(c4,NH);var d4=/^(spaces\/[a-zA-Z0-9_-]+)\//,e4=function(a){return(a=d4.exec(a))?a[1]:null};c4.prototype.s=function(){return e4(this.tb())||this.v};c4.prototype.w=function(a){this.v=a};var f4=function(a){Q(this,a,0,-1,null)};t(f4,P);f4.prototype.o=function(){var a=new E;var b=R(this,1);null!=b&&M(a,1,b);return F(a)};f4.prototype.h=function(){return R(this,1)};f4.prototype.u=function(a){U(this,1,a)};var g4=function(a){Q(this,a,0,-1,null)};t(g4,P);h=g4.prototype;h.o=function(){var a=new E;var b=R(this,1);null!=b&&M(a,1,b);b=R(this,2);null!=b&&M(a,2,b);return F(a)};h.Uh=function(){return R(this,1)};h.Wh=function(a){U(this,1,a)};h.tb=function(){return R(this,2)};
h.Vh=function(a){U(this,2,a)};var h4=function(a){if(ta(a)){var b=e4(a),c=new g4;c.Wh(b);c.Vh(a);return c}return a};var i4=function(a){if(ta(a)){var b=new f4;b.u(a);return b}return a};var j4=function(a){Q(this,a,0,-1,null)};t(j4,P);j4.prototype.o=function(){var a=new E;var b=T(this,1,"");0<b.length&&M(a,1,b);b=V(this,NH,2);null!=b&&N(a,2,b,aI);return F(a)};var k4=function(a,b){ew(a,1,b)};var l4=function(a){Q(this,a,0,-1,null)};t(l4,P);l4.prototype.o=function(){var a=new E;var b=this.getDeviceId();0<b.length&&M(a,1,b);return F(a)};l4.prototype.getDeviceId=function(){return T(this,1,"")};var m4=function(a){Q(this,a,0,-1,null)};t(m4,P);m4.prototype.o=function(){var a=new E;var b=T(this,1,"");0<b.length&&M(a,1,b);return F(a)};var n4=function(a,b){ew(a,1,b)};var p4=function(a){Q(this,a,0,-1,o4)};t(p4,P);var o4=[1];p4.prototype.o=function(){var a=new E;var b=X(this,NH,1);0<b.length&&O(a,1,b,aI);return F(a)};var q4=function(a){Q(this,a,0,-1,null)};t(q4,P);q4.prototype.o=function(){var a=new E;var b=V(this,NH,1);null!=b&&N(a,1,b,aI);return F(a)};var r4=function(a){this.a=a};t(r4,hZ);h=r4.prototype;h.zf=Wg;h.Ub=function(a){var b=a[0].u,c={};b&&(c["X-Goog-Meeting-Botguardid"]=b);b=new j4;k4(b,a[0].s());Y(b,2,a[0]);return new O2("google.rtc.meetings.v1.MeetingDeviceService","CreateMeetingDevice",b,function(a){return s4([PH(a)])},c)};h.Vb=function(a){var b=a[0].u,c={};b&&(c["X-Goog-Meeting-Botguardid"]=b);b=new q4;Y(b,1,a[0]);return new O2("google.rtc.meetings.v1.MeetingDeviceService","UpdateMeetingDevice",b,function(a){return s4([PH(a)])},c)};
h.ic=function(){throw Error("Invalid Operation: Meeting Device Remove");};h.Wb=function(a){var b=new l4;a=a.tb();ew(b,1,a);return new O2("google.rtc.meetings.v1.MeetingDeviceService","GetMeetingDevice",b,PH)};h.jc=function(a){var b=new m4;n4(b,a.Uh());return new O2("google.rtc.meetings.v1.MeetingDeviceService","ListMeetingDevices",b,function(a){var b=s4;a=new xv(a);for(var c=new p4;yv(a)&&4!=a.b;)switch(a.f){case 1:var f=new NH;Av(a,f,OH);iw(c,1,f,NH);break;default:zv(a)}return b(X(c,NH,1))})};
var s4=function(a){return Nb(a,function(a){return new c4(JSON.parse(a.ia()))})};var t4=function(a){Q(this,a,0,-1,null)};t(t4,P);t4.prototype.o=function(){var a=new E;u4(this,a);return F(a)};var u4=function(a,b){a=T(a,1,"");0<a.length&&M(b,1,a)};var v4=function(a){Q(this,a,0,-1,null)};t(v4,P);v4.prototype.o=function(){var a=new E;var b=V(this,GI,1);null!=b&&N(a,1,b,OI);b=V(this,t4,3);null!=b&&N(a,3,b,u4);b=T(this,4,"");0<b.length&&M(a,4,b);return F(a)};var w4=function(a){Q(this,a,0,-1,null)};t(w4,P);w4.prototype.o=function(){var a=new E;var b=T(this,1,"");0<b.length&&M(a,1,b);return F(a)};var x4=function(a,b){ew(a,1,b)};var y4=function(a){Q(this,a,0,-1,null)};t(y4,P);y4.prototype.o=function(){var a=new E;var b=V(this,GI,1);null!=b&&N(a,1,b,OI);return F(a)};var z4=function(a){this.a=a};t(z4,hZ);h=z4.prototype;h.zf=Wg;h.Ub=function(a){var b=new v4;Y(b,1,a[0]);return new O2("google.rtc.meetings.v1.MeetingSpaceService","CreateMeetingSpace",b,function(a){return[NI(a)]})};h.Vb=function(a){var b=new y4;Y(b,1,a[0]);return new O2("google.rtc.meetings.v1.MeetingSpaceService","UpdateMeetingSpace",b,function(a){return[NI(a)]})};h.ic=function(){throw Error("Invalid Operation: Meeting Space Remove");};
h.Wb=function(a){var b=new w4;x4(b,a.h());return new O2("google.rtc.meetings.v1.MeetingSpaceService","GetMeetingSpace",b,function(a){return[NI(a)]})};h.jc=function(a){return this.Wb(a)};var A4=function(a,b,c,d,e,f){var g=NY.ja();e=new e(OY(g,a,b,void 0,!0));f=new yW(g.oa.g(a,b),f);return new RY(0,g.oa.b(a,b),c,d,e,f,g.oa.f(a,b))};var B4=function(a){Q(this,a,0,-1,null)};t(B4,P);B4.prototype.o=function(){var a=new E;var b=this.qb();0<b.length&&M(a,1,b);b=T(this,2,"");0<b.length&&M(a,2,b);b=V(this,t4,3);null!=b&&N(a,3,b,u4);b=T(this,4,"");0<b.length&&M(a,4,b);return F(a)};B4.prototype.qb=function(){return T(this,1,"")};var D4=function(a,b,c,d){return OY(NY.ja(),a,b,void 0,!0).s.then(function(a){return C4(a,c,d)})},C4=function(a,b,c){b=E4(b);return F4(a,b,c).then(function(a){return a.Bc})},F4=function(a,b,c){var d={};c&&(d["X-Goog-Meeting-Botguardid"]=c);return L3(new K3("google.rtc.meetings.v1.MeetingSpaceService",V3(a,void 0)),"ResolveMeetingSpace",b,NI,d)},E4=function(a){var b=new B4;ew(b,1,a);return b};var G4=function(a,b,c,d){o2.call(this,a,b,d);this.H=b.oa.Nd("realtime.meetings.call.MeetingCall");this.F=new hl;this.m=c;this.me=sN(a,UV).then();this.A=null;this.Oa=new VX;this.w=this.Oa.a;this.f=null;this.Ia=new VX;this.h=this.Ia.a;this.Hc=null;this.M=new VX;this.Ic=new VX;this.ge=this.Ic.a;this.ke=new VX;this.gb=xc();this.wb=xc();this.ea=this.Kb=null;new VX;this.ra=this.ka=this.la=null;this.be=!1;this.cb=null;tz(sN(a,ER,!1),function(a){this.cb=a},this);this.Pa=new Nz(20);this.g=null;this.va=new Aj(3E4);
this.l(this.va);this.Sa.listen(this.va,"tick",this.le);this.Lb=function(){return hj("No prerequisite handler")};this.R=null;this.m&&this.gb.resolve(!0);this.h.then(function(a){this.Sa.listen(a,"ub",this.Bi);this.Bi()},wa,this)};t(G4,o2);var H4={404:217,401:300,400:327,10001:328,"-1":329,0:329,30006:329},I4={400:324,429:216,10001:330,"-1":331,0:331,30006:331},J4={403:200};h=G4.prototype;
h.Ed=function(){var a=G4.aa.Ed.call(this);a.meetingSpace=p(function(){return this.w.get()&&RW(this.w.get())},this);a.meetingDevices=p(function(){return this.h.get()&&RW(this.h.get())},this);a.recentMeetingOperations=p(function(){return this.Pa.S()},this);return a};h.Fd=function(){var a=G4.aa.Fd.call(this);a.meetingSpace=Vg(this.w.get()&&RW(this.w.get()));a.meetingDevices=Vg(this.h.get()&&RW(this.h.get()));a.recentMeetingOperations=p(function(){return this.Pa.S()},this);a.endCause=Vg(this.la);return a};
h.ae=function(a,b){var c=gj(b);67==b&&this.g&&(c=this.f.search().then(function(a){return(a=Sb(a,function(a){return a.tb()==this.g},this))&&7==T(a,4,0)?43:b},void 0,this));c.then(function(b){this.la=b;if(this.be||!a&&!this.g)var c=gj();else D(this.G,"Removing meeting device on disconnect"),c=this.Fa.get()||this.g,c=this.f.ob(c),dw(c,4,6,0),c=this.f.modify(c,2);this.R&&this.R.cancel();qj(c,function(){K4(this);this.g=null;o2.prototype.ae.call(this,a,b)},this);c=new r2(b);this.Oa.reject(c);this.Ia.reject(c);
this.wb.reject(c);this.w.get()&&this.w.get().stop();this.h.get()&&this.h.get().stop()},void 0,this)};
h.resolve=function(a,b){if(this.Hc)return hj(L4("Meeting already resolved"));var c=M4(this,0,"resolve");if(c)return hj(c);this.Hc=a;var d=D4(this.za,this.b,a,b);this.F.add(d);return qj(d.then(function(b){var c=b.h();this.A=A4(this.za,this.b,[c],new zW(GI,[GI.prototype.h],[GI.prototype.u],[],[],f4,[f4.prototype.h],[f4.prototype.u],[],[],i4),z4,"ob");U(this.A.config,8,5E3);this.l(this.A);this.f=A4(this.za,this.b,[c],new zW(c4,[c4.prototype.s],[c4.prototype.w],[c4.prototype.tb],[c4.prototype.h],g4,[g4.prototype.Uh],
[g4.prototype.Wh],[g4.prototype.tb],[g4.prototype.Vh],h4),r4,"lb");U(this.f.config,8,5E3);this.l(this.f);this.m&&this.va.start();this.M.resolve(c);var d=this.K;d.g=a;d.a=c;return b},function(b){var c="Resolve code "+a;b instanceof W2&&(c+=", error message: "+b.getMessage());var d=306,e=N4(b);null!=e&&(d=H4[e]||d,this.m&&(d=J4[e]||d),c=c+(", statusCode: "+e)+(", "+O4(b)));this.Pa.add(c);this.H.error(c);b=new P4(d,b);this.M.reject(b);this.M=new VX;throw b;},this),function(){this.F.remove(d)},this)};
h.Rd=function(a){this.m?this.M.a.then(function(){o2.prototype.Rd.call(this,a)},void 0,this):G4.aa.Rd.call(this,a)};
h.connect=function(a,b){return this.m&&!a?hj(new P4(302,"Missing name for anonymous user")):this.zb.then(function(){D(this.G,"connect() was called");var c=M4(this,0,"connect");if(c)return hj(c);this.Ma(1);this.va.stop();return this.ea?this.ea.then(function(){return Q4(this)},void 0,this):R4(this,a,b).then(function(a){this.gb.resolve(3==T(a,4,0));return S4(this,a,Ka())},void 0,this)},void 0,this)};
h.Ei=function(a){var b=this;if(this.sessionId.get()==a){var c="Should not update the same session id.";Ei(this.G,c);this.H.error(c)}else{c="Modifying the session id: "+a;Fi(this.G,c);this.H.info(c);var d=new c4;d.h(this.g);d.ld([a]);var e=qj(this.f.modify(d).then(function(a){return T4(b,a[0])},function(){c="Failed to update the session id: "+a;Ei(b.G,c);b.H.error(c)}),function(){this.F.remove(e)},this);this.F.add(e)}};
h.Bi=function(){var a=this.h.get().get(),b=Mb(a,function(a){return a.ze()});b=Nb(b,function(a){return a.tb()});q2(this,b);D(this.G,a.length+" raw devices; "+b.length+" joined.")};
var R4=function(a,b,c){return lj([a.M.a,a.sessionId]).then(function(){var a=this.M.a.get(),e=this.sessionId.get(),f=new c4;f.w(a);dw(f,4,1,0);f.ld([e]);this.m&&(ew(f,2,b),c&&(f.u=c));return this.me.then(function(b){U4(this,b,a);var c=qj(this.f.add(f).then(function(a){a=a[0];this.g=a.tb();var c=this.g.split("/")[3]||this.B;this.m&&(this.K.f=c,this.ke.resolve(c));this.Ic.resolve(b.f);T4(this,a);return a},this.he,this),function(){this.F.remove(c)},this);this.F.add(c);return c},function(a){throw L4(a);
},this)},function(a){throw L4(a);},a)};G4.prototype.he=function(a){K4(this);C(this.G,"add device failed, moving back to INITIALIZED state");this.Ma(0);this.ea=null;var b=325,c=N4(a);a instanceof bj?(b=219,this.H.error("Device add operation has been cancelled.")):null!=c&&(b=I4[c]||b,this.m&&(b=J4[c]||b),c="Device add error: "+O4(a),this.H.error(c));throw new P4(b,a);};
var Q4=function(a){return a.sessionId.then(function(a){Fi(this.G,"Modifying the meeting device as JOINED");var b=new c4;b.h(this.g);b.ld([a]);dw(b,4,1,0);return this.f.modify(b).then(function(a){T4(this,a[0]);return S4(this,a[0],Ka())},function(a){var b=303,c=N4(a);null!=c&&(b=I4[c]||b,c="Device modify error: "+O4(a),this.H.error(c));return V4(this,new P4(b,a))},this)},function(a){return V4(this,L4(a))},a)},S4=function(a,b,c){var d=M4(a,1,"checkJoinState");if(d)return V4(a,d);D(a.G,"checking the join state.");
switch(T(b,4,0)){case 1:return W4(a);case 3:if(6E5<=Ka()-c)return V4(a,new P4(234));a.R=Dj(5E3).then(function(){return X4(this,c)},function(){V4(this,new P4(219))},a);return a.R;case 4:return V4(a,new P4(233));case 11:return V4(a,new P4(241));case 9:return a.Lb(a.A,a.f,Y4(a)).then(function(){return Q4(a)},function(){return V4(a,new P4(325))});default:return b="Unexpected join state: "+T(b,4,0),Ei(a.G,b),V4(a,b)}},X4=function(a,b){return a.f.search().then(function(a){a=Sb(a,function(a){return a.tb()==
this.g},this);T4(this,a);return S4(this,a,b)},function(a){var b=303,c=N4(a);null!=c&&(b=I4[c]||b);return V4(this,new P4(b,a))},a)},W4=function(a){a.Oa.resolve(a.A);a.A.start();a.Ia.resolve(a.f);a.f.start();var b=xc();p2(a,b,a.ge.get(),a.g);return b.a};G4.prototype.bh=function(){this.Fa.then(function(a){a=new a4(a,Nb(this.a.w.concat(),function(a){return a.Z()}),this.a);this.l(a);this.ya.resolve(a)},void 0,this)};
var V4=function(a,b){C(a.G,"connect failed, moving back to DISCONNECTED state");a.Ma(4);if(a.g){var c=new c4;c.h(a.g);dw(c,4,6,0);qj(a.f.modify(c,2),function(){K4(this)},a);a.g=null;a.ea=null}return hj(L4(b))},U4=function(a,b,c){a.ka=ei(ie(),"beforeunload",p(a.de,a,b,c));a.ra=ei(ie(),"unload",p(a.de,a,b,c))},K4=function(a){null!=a.ka&&(oi(a.ka),a.ka=null);null!=a.ra&&(oi(a.ra),a.ra=null)};
G4.prototype.de=function(a,b){K4(this);var c={meetingToken:xw(a.a)};W3(a,b+"/devices:close",c);this.be=!0;this.cb&&x(lY(this.cb),function(a){var b=this.b.h,c=Jj(b.m,"/"+b.g+"/"+b.h+"/media_sessions/log");b.b&&(c=Gj(c,"key",b.b));bW(b,a);$V(c,a.ia(),"application/json+protobuf")},this);this.disconnect(null!=this.la?this.la:63)};G4.prototype.le=function(){this.m?this.A.search():this.f.search()};
var M4=function(a,b,c){return a.getState()!=b?(C(a.G,"Unexpected state while in "+c+": "+a.getState()+" != "+b),new P4(302,new s2(a.getState()))):null},L4=function(a){return a instanceof P4||a instanceof bj?a:new P4(302,a)},N4=function(a){return a instanceof W2?a.a:null},Z4=function(a){var b="";a.b&&(b+=" exception name: "+a.b.name,b+=" exception message: "+a.b.message);a.f&&(b+=" status: "+a.f.ia());a.Bc&&(a=a.Bc,Aa(a)?(a=a.map(function(a){return a instanceof P?a.ia():nh(a)}),b+=" response: "+Bi(a)):
b=a instanceof P?b+(" response: "+a.ia()):b+(" response: "+nh(a)));return b},O4=function(a){var b,c;return c=a instanceof W2?Z4(a):nh(a)},$4=function(a,b){a.Lb=b},T4=function(a,b){b&&(a.Kb=b,a.wb.resolve(!0))},Y4=function(a){return a.f&&a.g&&a.f.gb(a.g)||a.Kb};G4.prototype.W=function(){this.F.S().forEach(function(a){a.cancel()});G4.aa.W.call(this)};var P4=function(a,b){Eb.call(this,"startupCode: "+a+", error = "+nh(b));this.yi=a;this.we=b};t(P4,Eb);var b5=function(a,b,c,d,e){this.j=Pa("mr.mirror.hangouts.HangoutCallService");this.b=a;this.g=d;this.B=e;this.f=new wA(this);this.a=null;this.u=!1;this.s=new kb;this.h=new kb;this.w=!1;this.v=new kb;this.m=this.l=null;this.A=this.I=!1;a5(this,b,c)},a5=function(a,b,c){a.g(new mg("REFRESH_AUTH"));b.then(function(){return c}).then(function(b){if(!a.A){w(a.j,"Creating call for hangout id: "+b.Ha+" resolvedId: "+b.zc+" conferenceMode: "+b.ac);var c=cQ();void 0!=b.ac&&(c=oQ(c,b.ac));mX(a.b);b.Fb?(a.a=new G4(a.b,
a.b.get(HR),!1),a.a.Rd(c),a.a.h.then(a.K,null,a),c5(a)):(a.a=new y2(a.b,a.b.get(HR),c),a.a.f.then(a.M,null,a),a.a.g.then(a.R,null,a));a.a.onConnect.then(a.X,null,a);a.a.onDisconnect.then(a.F,function(b){v(a.j,"Error on disconnect: "+b)},a);a.s.resolve(b)}})},k5=function(a,b){a.j.info("Connecting to hangout");setTimeout(function(){a.h.reject(Error("Timed out before connecting"))},3E4);a.s.a.then(function(b){w(a.j,"Call ready.");a.u=b.Fb;if(a.u)b=d5(a,b);else{var c=b.Ha,e=b.zc;b=a.b.get(jW);if(e)w(a.j,
"Already resolved id: "+e),b=gj(pZ(a.b,b,[e],nZ(),jZ,"eb"));else{w(a.j,"resolving hangout id: "+c);e=a.b;c=c.split("@");var f=new JE;U(f,5,!0);if(-1!=c[1].indexOf(".")){var g=new GE;U(g,1,c[0]);U(g,2,c[1]);Y(f,4,g)}else g=new KD,U(g,1,c[1]),U(g,2,c[0]),Y(f,2,g);b=K2(e,b,f)}b=a.a.connect(b)}return b}).then(null,function(b){e5(a,"Connect error",b);if(b.we){for(var c="",e=ja(Object.entries(J1)),f=e.next();!f.done;f=e.next()){var g=ja(f.value);f=g.next().value;g=g.next().value;if(g==b.yi){c=f+"("+g+")";
break}}a.j.error("Call connect error startupCode: "+c);b=b.we}c="SESSION_FAILURE";b.response&&Aa(b.response)&&0<b.response.length&&"chrrp"==mw(b.response).A&&(c="HANGOUT_INVALID");a.g(new mg(c));a.h.reject(b);f5(a,16)});return a.h.a.then(function(){return a.a.Fa}).then(function(c){g5(a,b,c);if(a.u)return h5(a,c);i5(a,c);j5(a,a.a.s.get())})},d5=function(a,b){return a.a.resolve(b.Ha).then(function(){return a.a.connect()})},l5=function(a,b){return new Promise(function(c,d){a.a.Fa.then(function(e){g5(a,
b,e);if(!a.I){if(a.u){h5(a,e).then(c,d);return}i5(a,e)}c()},d)})},g5=function(a,b,c){if(0<b.getAudioTracks().length)if(a.l){var d=a.l;d.K=b;d.A()}else a.l=new nW(new QN(c,"1","a"),b),mR(a.l),a.a.Pe(a.l);a.m?(a=a.m,a.K=b,a.A()):(c=new QN(c,"2","v","sc"),PN(c,[new NN(0,0,1,1)])&&c.dispatchEvent("u"),a.m=new nW(c,b),mR(a.m),a.a.Pe(a.m))},h5=function(a,b){var c=new SI;ew(c,1,b);var d=a.a.w.get();a=new LI;Y(a,1,c);var e=d.ob();Y(e,6,a);return new Promise(function(a,b){d.modify(e).then(a,b)})},i5=function(a,
b){var c=new MD;U(c,1,b);b=new PD;Y(b,17,c);b.P(a.a.Ha.get());a.a.s.get().modify(b)},j5=function(a,b){a.f.listen(b,"ub",function(b){a.a.Fa.then(function(c){a.I=Array.prototype.some.call(b.target.get(),function(a){return a.Hd()&&R(a.Hd(),1)==c})})})};b5.prototype.K=function(a){this.f.listen(a,"ub",this.H)};
b5.prototype.H=function(a){var b=this;a.a.forEach(function(a){if(V(a,QH,12)&&T(V(a,QH,12),1,"")){var c=a.tb();b.a.Fa.get()==c&&b.a.a.w.concat().forEach(function(c){"a"==c.Z().V()&&(c.Tb(),b.g(new mg("STATUS_RESPONSE",{mute:!0})),b.B(!0),c=b.a.h.get().ob(a),SH(c,new QH),rj(b.a.h.get().modify(c),function(a){e5(b,"Failed to clear AudioMuteRequest",a)}))})}})};b5.prototype.M=function(a){var b=this;this.f.listen(a,"ub",function(a){m5(b,a)});this.f.listen(a,"wb",function(a){n5(b,a)})};
var m5=function(a,b){var c=b.target;w(a.j,function(){return"Participants updated: "+c.get().filter(function(a){return a.ze()}).map(function(a){return R(a,4)}).join(", ")});!a.w&&2>c.get().length&&(a.g(new mg("HANGOUT_INACTIVE")),f5(a,61))};b5.prototype.R=function(a){var b=this;this.f.listen(a,"ub",function(a){o5(b,b.a,a)});this.f.listen(a,"wb",function(a){n5(b,a)})};
var o5=function(a,b,c){for(var d={},e=0;e<c.a.length;d={source:d.source},e++)d.source=c.a[e],d.source.N()==b.Fa.get()&&V(d.source,HF,6)&&R(V(d.source,HF,6),1)&&b.a.w.concat().forEach(function(b){return function(c){c.Z().getId()==b.source.ga()&&(c.Tb(),a.g(new mg("STATUS_RESPONSE",{mute:!0})),a.B(!0))}}(d))},p5=function(a,b){a.a.a.w.concat().forEach(function(a){"a"==a.Z().V()&&(b?a.Tb():"st"!=a.a&&qR(a,!1))})},n5=function(a,b){a.j.error("Failure in collection: "+b.reason);a.h.reject(b.reason);f5(a,
3)};b5.prototype.X=function(){this.j.info("Call connected");this.g(new mg("SESSION_START_SUCCESS"));this.h.resolve(void 0)};b5.prototype.F=function(a){this.g(new mg("SESSION_END"));var b="",c;for(c in GU)if(GU[c]==a){b=c+"("+a+")";break}this.j.info("Call ended with endcause: "+b);0!=a&&61!=a&&16!=a&&this.g(new mg("SESSION_FAILURE"))};b5.prototype.stop=function(){f5(this,0);return this.v.a};
var f5=function(a,b){a.j.info("Stopping call with end Cause: "+b);a.w?a.j.info("Ignore stop, already stopping."):(a.w=!0,a.a?a.a.disconnect(b).then(function(b){w(a.j,"Call disconnected with endCause: "+b);a.v.resolve(void 0)}):a.v.resolve(void 0))};b5.prototype.wa=function(){var a=this;this.A=!0;this.f.wa();this.l&&this.l.wa();this.m&&this.m.wa();this.s.reject(Error("Disposed"));this.h.reject(Error("Disposed"));setTimeout(function(){a.v.reject(Error("Timed out before stopping"))},1E4);this.a&&this.a.wa()};
var e5=function(a,b,c){c instanceof Error?a.j.error(b,c):Ba(c)?a.j.error(function(){return b+": "+JSON.stringify(c)}):Da(c)?a.j.error(b+": "+JSON.stringify(c)):a.j.error(b+": "+c)},q5=function(a){return a.h.a.then(function(){U1(a.a.a)}).catch(function(){if(a.a)U1(a.a.a);else throw Error("call was never created");})},c5=function(a){var b=a.a;$4(b,function(b,d,e){return r5(a,b,d,e).then(function(a){if(!a)throw Error("Prerequisite not handled");})});b.onConnect.then(function(){var c=b.w.get(),d=b.h.get();
a.f.listen(c,"ub",function(){r5(a,c,d,Y4(b))});r5(a,c,d,Y4(b))})},r5=function(a,b,c,d){var e=function(a){var b=new VH;ew(b,1,a);dw(b,2,2,0);return b};if(!d)return hj(Error("No local device"));b=(b=(b=b.gb())&&V(b,LI,6))&&V(b,VI,2);var f=2==(b&&b.Ae())?b.Ib():null,g=!1,l=!1,r=[];(X(d,VH,16)||[]).forEach(function(a){l|=1==T(a,2,0);g|=a.Ib()==f;r.push(e(a.Ib()))});f&&!g&&(l=!0,r.push(e(f)));return l?(d=c.ob(d.tb()),hw(d,16,r),c.modify(d).then(function(){w(a.j,"Recording acked");return!0})):gj(!1)};var s5={TAB:0,sg:1},t5=function(a){ib("MediaRouter.Hangouts.Start.Success",a,s5)};var u5=function(a,b,c,d,e,f){So.call(this,"HangoutsRouteController",a,b);this.b=new mojo.Binding(mojo.HangoutsMediaRouteController,this);this.v=c;this.m=d;this.a.title=this.m.description;this.a.can_mute=!0;this.a.is_muted=e;this.a.hangouts_extra_data=new mojo.HangoutsMediaStatusExtraData({local_present:f});To(this)};qa(u5,So);u5.prototype.l=function(){So.prototype.l.call(this);this.b.close()};u5.prototype.h=function(){this.v.f=null};u5.prototype.Ec=function(a){this.v.Ec(a)&&(this.a.is_muted=a,To(this))};
u5.prototype.setMute=u5.prototype.Ec;u5.prototype.nf=function(a){this.b.bind(a);this.b.setConnectionErrorHandler(this.u.bind(this))};u5.prototype.connectHangoutsMediaRouteController=u5.prototype.nf;u5.prototype.cg=function(a){this.v.cg(a)&&(this.a.hangouts_extra_data.local_present=a);To(this)};u5.prototype.setLocalPresent=u5.prototype.cg;var w5=function(a,b,c){gg.call(this,a);this.K=b;this.H=c;this.j=Pa("mr.mirror.hangouts.HangoutSession");this.X=Qr(a.id);this.v=new kb;this.g=!1;this.m=!0;this.l=this.s=null;this.u=new kb;this.A=this.F=this.I=null;v5(this);this.f=this.a=null};qa(w5,gg);
w5.prototype.start=function(a){var b=this;w(this.j,"Starting new hangouts mirror session.");this.s=a;if(this.a)return Promise.reject(Error("Mirroring already started"));if(this.l)return Promise.reject(Error("Session permanently stopped"));this.F=new Ya("MediaRouter.Hangouts.Session.Launch");this.a=new b5(this.K,this.H,this.u.a,this.h.bind(this),this.M.bind(this));k5(this.a,this.s).then(function(){w(b.j,"Call connected");b.h(new mg("SESSION_START_SUCCESS"));b.F.a();b.F=null;b.A=new db("MediaRouter.Hangouts.Session.Length");
b.v.resolve(b)},function(a){b.v.reject(a);b.stop()});return this.v.a};var x5=function(a){if(!a.a||a.l)return Promise.resolve();w(a.j,"Resetting session call.");return a.a.stop().then(function(){if(a.l)return Promise.resolve();a.g=!1;a.u=new kb;a.a.wa();a.a=new b5(a.K,a.H,a.u.a,a.h.bind(a),a.M.bind(a));a.s.getTracks().forEach(function(a){a.enabled=!0});return k5(a.a,a.s).then(function(){w(a.j,"Reset call connected")},function(){a.stop()})})};h=w5.prototype;h.Ai=function(){return!0};
h.Fi=function(a){var b=this;return new Promise(function(c,d){b.a?l5(b.a,a).then(function(){b.s=a;c()},d):d(Error("Mirroring was never started"))})};
h.stop=function(){var a=this;w(this.j,"Stopping hangouts mirror session.");this.v.reject(Error("Session stop requested."));this.A&&(this.A.a(),this.A=null);if(!this.a)return Promise.resolve();if(this.l)return this.l;this.v.reject(Error("Stopped"));this.u.reject(Error("Stopped"));var b=function(){try{a.X.wa()}catch(c){a.j.error("Error while disposing message port",c)}try{a.a.wa()}catch(c){a.j.error("Error while disposing call service",c)}a.f&&(a.f.wa(),a.f=null)};return this.l=new Promise(function(c,
d){setTimeout(function(){b();d(Error("Timed out before stopping"))},1E4);a.a.stop().then(function(){b();c()}).catch(function(a){b();d(a)})})};h.Gf=function(){if(this.f){var a=this.f;a.a.title!=a.m.description&&(a.a.title=a.m.description,To(a))}};h.Ec=function(a){if(!this.a)return!1;this.g=a;p5(this.a,a);return!0};
h.cg=function(a){if(!this.I)return this.j.error("Cannot set conference mode from controller: authReadyMessageData_ is null."),!1;if(!a==this.m)return!1;var b=Object.assign({},this.I);b.ac=!a;y5(this,b);return!0};
var y5=function(a,b){a.m=b.ac;a.j.info("Updating conference mode to "+a.m);var c=a.g;x5(a).then(function(){a.g=c;a.a&&p5(a.a,c);a.u.resolve(b)})},v5=function(a){a.X.onMessage=function(b){if(ta(b)){b=JSON.parse(b);var c=b.clientId;if(c){"client_connect"==b.type?a.h({message:{sessionId:"castouts"},clientId:c,type:"new_session"}):"v2_message"==b.type&&"STOP"==b.message.type&&a.h({message:"castouts",clientId:c,type:"remove_session"});return}}if(!b.type)throw Error("Message has no type.");switch(b.type){case "AUTH_READY":b=
b.data;a.I=b;void 0!=b.ac&&b.ac!=a.m?(w(a.j,"received auth ready message with new conference mode"),y5(a,b)):(w(a.j,"received auth ready message"),b.ac=a.m,a.u.resolve(b));break;case "LOCAL_PRESENT":w(a.j,"local present message");a.h(b);break;case "MUTE":b.data&&(a.g=!!b.data.mute,a.a&&p5(a.a,a.g));break;case "STATUS_RESPONSE":w(a.j,"route status response message");b.data&&(a.g=!!b.data.mute);break;case "STATUS_REQUEST":w(a.j,"route status request message");a.h(new mg("STATUS_RESPONSE",{routeDescription:a.b.description,
mute:a.g,local:!a.m}));break;default:throw Error("Unknown message type: "+b.type);}}};w5.prototype.h=function(a){w(this.j,function(){return"sending message to mrp: "+JSON.stringify(a)});this.X.sendMessage(a,z5)};w5.prototype.createMediaRouteController=function(a,b){var c=this;return this.v.a.then(function(){if(c.l)throw Error("Session already stopped");if(c.f)throw Error("Controller already exists");c.f=new u5(a,b,c,c.b,c.g,!c.m)})};
w5.prototype.M=function(a){this.g=a;if(this.f){var b=this.f;b.a.is_muted!=a&&(b.a.is_muted=a,To(b))}};var z5={channelType:"mesi"};var A5=function(a){this.a=a};A5.prototype.onError=function(a,b){401==b.Id&&this.a(new mg("REFRESH_AUTH"))};A5.prototype.onRequest=wa;A5.prototype.b=wa;var B5=function(a){B.call(this);this.a=a||window;this.f=fi(this.a,"resize",this.g,!1,this);this.b=he(this.a||window)};t(B5,B);B5.prototype.W=function(){B5.aa.W.call(this);this.f&&(oi(this.f),this.f=null);this.b=this.a=null};B5.prototype.g=function(){var a=he(this.a||window),b=this.b;a==b||a&&b&&a.width==b.width&&a.height==b.height||(this.b=a,this.dispatchEvent("resize"))};var C5=function(a){B.call(this);a?(a=a.a,a=a.parentWindow||a.defaultView):a=window;this.a=a;this.g=1.5<=this.a.devicePixelRatio?2:1;this.f=p(this.h,this);this.b=this.a.matchMedia?this.a.matchMedia("(min-resolution: 1.5dppx), (-webkit-min-device-pixel-ratio: 1.5)"):null};t(C5,B);C5.prototype.start=function(){this.b&&this.b.addListener(this.f)};C5.prototype.h=function(){var a=1.5<=this.a.devicePixelRatio?2:1;this.g!=a&&(this.g=a,this.dispatchEvent("Mb"))};
C5.prototype.W=function(){this.b&&this.b.removeListener(this.f);C5.aa.W.call(this)};var D5=function(a,b){Jh.call(this);this.h=a;if(b){if(this.g)throw Error("[fava.component.DomServices] Owner document already initialized");this.f=(this.g=b)?new le(je(b)):Fb||(Fb=new le);this.a=new B5(ie(b));this.a.I=this.h.h;this.b=new C5(this.f);this.b.start()}};t(D5,Jh);D5.prototype.W=function(){this.f=this.g=null;this.a&&(this.a.wa(),this.a=null);Lh(this.b);this.b=null};var F5=function(){this.a=new E5;this.b=null;this.version=0};t(F5,hZ);h=F5.prototype;h.Ub=function(a){return new G5(this,0,a)};h.Vb=function(a){return new G5(this,1,a)};h.ic=function(a){return new G5(this,2,a)};h.Wb=function(a){return new G5(this,3,[a])};h.jc=function(){return new G5(this,4,[])};var E5=function(){B.call(this)};t(E5,wW);E5.prototype.execute=function(a){a.execute()};var G5=function(a,b,c){this.a=a;this.l=b;this.b=c;this.version=null;this.f=xc();this.g=!1};
G5.prototype.execute=function(){this.g=!0;kh(p(this.zm,this))};var H5=function(a){if(!a.a.b)return null;switch(a.l){case 0:return a.b;case 1:var b=[];x(Nb(a.b,a.gh,a),function(a,d){null===a||b.push(this.b[d])},a);return b;case 2:case 3:return a=Nb(a.b,a.gh,a),ac(a,za),a;case 4:return a.a.b.get();default:return null}};h=G5.prototype;h.gh=function(a){var b=this.a.b;if(!b)return null;var c=$W(b,a);return Sb(b.get(),function(a){return c.equals($W(b,a))})};
h.zm=function(a,b){if(a=a||H5(this)){if(m(b))b>this.a.version&&(this.a.version=b);else switch(this.l){case 0:case 1:case 2:this.a.version++}this.f.resolve(new vW(a,m(b)?b:this.a.version))}else this.f.reject("Could not perform operation")};h.eg=function(a){this.version=a;return!0};h.Uc=function(){return this.f};h.Ne=function(){return this.f.a};h.Qd=Vg(0);h.Oe=wa;h.gd=Vg(0);h.Me=Vg(void 0);h.Ve=wa;h.Ce=function(){return this.g};h.vf=function(){return this.b.toString()};var I5=function(a,b,c){var d=oZ(),e=NY.ja(),f=new F5;a=new RY(0,e.oa.b(a,b),c,d,f);return f.b=a};var K5=function(a,b,c,d,e,f){B.call(this);this.j=Ih("realtime.media.api.apiary.RemoteSession");this.Hc=b;this.g=b.oa.Nd("realtime.media.api.apiary.RemoteSession");this.na=a;this.ka=b.a;this.la=c;this.B=this.A=this.m=this.va=this.a=null;this.R=d;this.R.s=8;this.R.F=3E3;this.M=e;this.K=f;this.g.info("Creating a new remote session with earlyMediaHangoutId="+f.b+" P2P="+f.a+" useAudio="+f.l+" useVideo="+f.v);this.f=this.b=null;this.gb=!1;this.H=new wA(this);this.l(this.H);this.w=new sY;this.h="INITIAL";
this.ya=[];this.ma=[];this.ba=[];this.ea={};this.F={};this.s={};this.Ya={};this.ra=xc();this.Xa=xc();this.Oa=new hl;this.cb=VR(a,GR,KR);var g=nX.ja(),l=[oX(g,"mediaSessionStartTime",p(this.Pa,this)),oX(g,"mediaUpStreams",p(this.zb,this)),oX(g,"mediaDownStreams",p(this.yb,this))];Kh(this,function(){x(l,g.f,g)});this.fb=xc();this.fb.a.then(function(){J5(this)},null,this)};t(K5,yQ);K5.prototype.Pa=function(){return(new Date(this.bb)).toString()};
K5.prototype.zb=function(){return null!=this.b?RW(this.b):null};K5.prototype.yb=function(){return null!=this.f?RW(this.f):null};var L5=function(a,b,c,d){a.h!=b&&(a.g.info("Session "+b1(a)+" state changed from "+a.h+" to "+b),a.h=b,a.dispatchEvent(new pO(b,c,d)))};K5.prototype.getState=function(){return this.h};
var N5=function(a,b,c){var d=a.f,e=pw(d.g);e.qa(b);e.P(c);c=d.start(e);M5(a);a.K.a||rj(MY(c,"xa",b,a),function(a){var b=this;a="Stopping session "+b1(this)+" "+("because downstream search failed with error: "+a);this.g.error(a);this.cb.then(function(a){return a.a(3950,b.a||void 0)});this.stop(16,a)},a)},M5=function(a){a.K.a||(null==a.ya?C(a.j,"Attempting to install collection filters with null participants. setParticipants() must be called prior to this call!"):iX(a.f,p(function(a){return Ub(this.ya,
a.N()||"")},a)))};
K5.prototype.kc=function(a){if("INITIAL"!=this.h)return!1;this.gb=null!=a;a=a||"";null!=this.f?Ei(this.j,"Remote streams collection already initiated"):(this.K.a?(D(this.j,"Preparing p2p remote streams collection."),this.f=I5(this.na,this.ka,[a,1,""])):(D(this.j,"Preparing normal remote streams collection."),this.f=pZ(this.na,this.ka,[a,1,""],oZ(),mZ,"jb"),this.H.listen(this.f,"wb",this.Za),this.H.listen(this.f,"vb",this.Kb)),this.l(this.f),MW(this.f),this.H.listen(this.f,"ub",this.Ic));L5(this,"STARTING");
return!0};K5.prototype.start=function(a){this.qa(a);L5(this,"STARTED");this.ra.a.then(this.wb,null,this);return!0};
K5.prototype.se=function(a,b,c){this.g.info("Attempting to connect session "+b1(this)+" to Hangout: "+a);switch(this.h){case "INITIAL":C(this.j,"Connect to hangout called before starting.");return;case "STOPPED":case "FINISHED":C(this.j,"Connect to hangout called after end.");return}null!=this.m?Ei(this.j,"Multiple hangouts per RemoteSession not yet supported."):(this.m=a,this.A=b,this.B=c,this.bb=Ka(),this.Ia=O5(),this.ra.resolve())};
K5.prototype.wb=function(){var a=this.B&&this.B.b||"";this.g.info("Session "+b1(this)+" is started and connected to Hangout: "+this.m+" with participantId: "+this.A+" and participantLogId: "+a);a=this.a;var b=this.m;null!=this.b?Ei(this.j,"Local streams collection already initiated"):(this.K.a?(D(this.j,"Preparing p2p local streams collection."),this.b=I5(this.na,this.ka,[b,2,a])):(D(this.j,"Starting normal local streams collection."),this.b=pZ(this.na,this.ka,[b,2,a],oZ(),mZ,"jb"),this.H.listen(this.b,
"wb",this.Za),this.b.start()),this.H.listen(this.b,"ub",this.Lb),this.l(this.b));P5(this,this.a,this.m,this.ma);Vb(this.ma);N5(this,this.a,this.m);0<this.ba.length&&(Q5(this,this.ba),Vb(this.ba));L5(this,"INPROGRESS");this.Xa.resolve();R5(this)};
var t1=function(a,b){a.ya=b;null!=a.f&&gX(a.f);a.K.a&&a.ra.a.then(function(){var a=Mb(b,function(a){return a!=this.A},this);if(1!=a.length)1<a.length&&this.stop(51);else{var d=new VF([1,1,this.a,"8579373",this.m,a[0],"1",[[8579373],[]]]);a=new VF([1,2,this.a,"8579374",this.m,a[0],"2",[[8579374,8579375],[["FID",[8579374,8579375]]]]]);this.f.add(d);this.f.add(a)}},null,a)};K5.prototype.yc=function(){this.b&&this.b.Pd();this.f&&this.f.Pd()};K5.prototype.resume=function(){this.F={}};
K5.prototype.stop=function(a,b){this.g.info("Session "+b1(this)+" stopping because stop was called with endCause: "+a);if("STOPPED"==this.h)return!1;null==this.a||"STARTING"!=this.h&&"INPROGRESS"!=this.h||(Lh(this.b),this.b=null,Lh(this.f),this.f=null,oc(this.s,function(a){a.cancel()}),this.s={});L5(this,"STOPPED",a,b);return!0};
var l1=function(a,b){var c=a.a,d=a.m,e=a.A;null!=c?null!=d?(b.P(d),null!=a.la&&U(b,1,a.la),null!=e&&b.pa(e),d=y(a.M.a),U(b,11,d||[]),U(b,12,a.M.b),U(b,18,a.M.f),a.B&&EQ(a.B,b),sX(a.R,b,c)):C(a.j,"UploadLogData before we have a hangoutId."):C(a.j,"UploadLogData before we have a sessionId.")},D1=function(a,b){var c=a.a,d=a.m;null!=c?null!=d?(b=S5(a,b),T5(a,c,d,b)):C(a.j,"Upload log data before we have a hangoutId."):C(a.j,"Upload log data before we have a sessionId.")},E1=function(a,b,c,d,e){var f=
a.a,g=a.m;null!=f?null!=g?T5(a,f,g,d,b,c,e).then(function(){this.dispatchEvent("aa")},null,a):C(a.j,"Finalize log data uploads before we have a hangoutId."):C(a.j,"Finalize log data uploads before we have a sessionId.")},O5=function(){return window.performance&&window.performance.now?window.performance.now():Ka()},J5=function(a){a.u||"STOPPED"==a.h||"FINISHED"==a.h||Bj(function(){var a=this.R,c=this.a,d=new BF;d.setRequestHeader(tX(a));d.qa(c);rX(a,"media_sessions/query",d).then(a.f,null,a).then(this.Gc,
this.Xb,this)},1E4,a)};K5.prototype.Gc=function(a){this.u||(null!=a?(a=AY(this.w,a,!this.K.a),null!=a?(this.dispatchEvent(new KQ(a)),J5(this)):this.g.info("Session "+b1(this)+" could not parse description from session query.")):C(this.j,"Received null session proto."))};
K5.prototype.Xb=function(a){if(!this.u)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:J5(this)}};
var U5=function(a,b){return null!=a||null!=b?null!=a&&null!=b?a.width!=b.width||a.height!=b.height:!0:!1},S5=function(a,b){null!=VA(b)&&(b=pw(b),x(VA(b),function(a){if(2==R(a,1)){var b=S(a,53)[0]>>>0,c=this.Ya[b];null!=c&&(U(a,78,c.width),U(a,79,c.height),Fi(this.j,"Set last request width/height "+c.width+"/"+c.height+" for ssrc "+b+" in jmidata"))}},a));return b},T5=function(a,b,c,d,e,f,g){if(null==d&&null==e)return hj("Nothing to upload");var l=new KA;U(l,2,a.Pa());U(l,133,a.bb);var r=-2;null!=
a.Ia&&(r=(O5()-a.Ia)/1E3,r=Math.round(r));U(l,3,r);null!=b&&U(l,1,b);null!=e&&U(l,29,e);null!=f&&U(l,30,f);null==g||nb(yb(g))||U(l,100,g);null!=d&&hw(l,5,[d]);d=a.Hc.oa.Ge()||new rK;Y(d,4,l);d.P(c);null!=a.A&&d.pa(a.A);null!=a.la&&U(d,1,a.la);c=y(a.M.a);U(d,11,c||[]);U(d,12,a.M.b);U(d,18,a.M.f);a.B&&(c=a.B,c.l&&(l=V(d,KA,4)||new KA,U(l,4,c.l),Y(d,4,l)),EQ(c,d));return sX(a.R,d,b)},p1=function(a,b){switch(a.h){case "INITIAL":case "STARTING":case "STARTED":ec(a.ma,b);return;case "STOPPED":case "FINISHED":C(a.j,
"Add local streams called after end.");return}var c=a.a,d=a.m;null==c?a.g.error("Attempting to add local streams before we have a sessionId."):null!=d?P5(a,c,d,b):ec(a.ma,b)},P5=function(a,b,c,d){x(d,function(a){a=VN(new TN(a),this.A).T();var d=IY(this.w,b,c,a),e=this.b.b,l=!!Sb(this.b.get(),function(a){return EW(e,d,a)});l=MY(l?this.b.modify(d):this.b.add(d),"za",b,this);"d"!=a.Y()&&rj(l,function(a){var b=this;a="Stopping session "+b1(this)+" because "+("addLocalStream failed with error: "+a);this.g.error(a);
this.cb.then(function(a){return a.a(3951,b.a||void 0)});this.stop(16,a)},this)},a)},s1=function(a,b){a.Xa.a.then(p(function(){var a=b.Wa();a=this.b.ob(a);a.Ta(BY(this.w,b.Y()));var d=new ZF,e=b.pc();U(d,1,e);a.Xd(d);this.b.modify(a)},a))};K5.prototype.qa=function(a){this.a!=a&&(this.g.info("Session id changing from "+b1(this)+" to "+(a||"{unset}")),this.a=a,this.fb.resolve())};
var b1=function(a){if(null==a.a)return"{unset}";null==a.va&&(a.va=a.a.substring(0,6)+"{#"+(a.a.length-7)+"}"+a.a.substring(a.a.length-1));return a.va},q1=function(a){if(null!=a.b){var b=Sb(a.b.get(),function(a){return 2==a.Y()});if(null==b)hR(a.g,"Attempting to signal screencast started, but no video stream found!");else{b=a.b.ob(b);b.Ta(2);U(b,11,!1);var c=new ZF;U(c,1,!1);b.Xd(c);a.b.modify(b)}}},r1=function(a){if(null!=a.b){var b=Sb(a.b.get(),function(a){return 2==a.Y()});null==b?hR(a.g,"Attempting to signal screencast ended, but no video stream found!"):
(b=a.b.ob(b),b.Ta(2),U(b,11,!0),a.b.modify(b))}};K5.prototype.Lc=function(a){this.ea={};x(a,function(a){this.ea[V5(a)]=a},this);R5(this)};
var R5=function(a){switch(a.h){case "INITIAL":case "STARTING":case "STOPPED":case "FINISHED":return}if(null==a.a)a.g.error("Ignoring changed stream requests because we don't have a sessionId.");else if(null==a.m)a.g.error("Ignoring changed stream requests because we don't have a hangoutId.");else{var b={},c=BY(a.w,"v");x(a.f.get(),function(a){a.Y()==c&&(b[V5(a)]=a)},a);oc(a.ea,function(a,c){if(b[c]){var d=b[c],e=d.Wa(),l=this.F[e];if(!l||l.b!=a.b||l.a!=a.a||U5(VP(l),VP(a)))this.F[e]=a,W5(this,d,a),
this.s[c]&&this.s[c].cancel(),delete this.s[c]}else D(this.j,"Skipping stream request for "+a.N()+" (no matching stream was found).")},a);oc(b,function(a,b){var c=a.Wa();if(!this.ea[b]){var d=this.F[c];if(d){var e=WP($P(ZP(d)));if(d.b!=e.b||d.a!=e.a||U5(VP(d),VP(e)))this.F[c]=e,W5(this,a,e)}else if(!this.s[b]){var r=WP($P(ZP(KY(this.w,[a])[0])));this.s[b]=Dj(2E3);this.s[b].then(function(){delete this.s[b];this.F[c]=r;W5(this,a,r)},void 0,this)}}},a);oc(a.s,function(a,c){b[c]||(a.cancel(),delete this.s[c])},
a)}},W5=function(a,b,c){if("STOPPED"!=a.h&&"FINISHED"!=a.h){a.Oa.contains(c.N())&&(c=new UP(c.h,"",c.l,null!=c.f?c.f:void 0,null!=c.a?c.a:void 0,null!=c.b?c.b:void 0,null!=c.g?c.g:void 0));var d=b.Wa(),e=c.b;if(!VP(c)||0>=VP(c).height||0>=VP(c).width||0>=c.a)e=!1;var f=a.w,g=a.a,l=a.m,r=c,u=e;e=new VF;e.Pf(1);e.qa(g);e.P(l);e.pa(r.N());e.Ta(BY(f,r.Y()));f=r.ga();U(e,7,f);f=new ZE;U(f,1,!0);U(f,2,u);u=VP(r);null!=u&&(g=new WE,g.Cc(u.height),g.Fc(u.width),U(g,3,r.a),Y(f,3,g));Y(e,9,f);e.Qf(d);a.g.info("Session "+
b1(a)+" sending stream request: "+c.toString()+" with streamId: "+d);d=V(b,XF,8);Y(e,8,d);a.f.modify(e);c=VP(c);null!=c&&null!=V(b,XF,8)&&null!=S(V(b,XF,8),1)&&(b=S(V(b,XF,8),1)[0]>>>0,null!=b&&(a.Ya[b]=c,Fi(a.j,"Building map: last request width/height "+c.width+"/"+c.height+" for ssrc "+b)))}},V5=function(a){return(a.N()||"")+"/"+(a.ga()||"")};K5.prototype.Ic=function(a){null!=a.f&&0<a.f.length&&Q5(this,a.f);null!=a.a&&0<a.a.length&&X5(this,a.a);null!=a.removed&&0<a.removed.length&&Y5(this,a.removed)};
K5.prototype.Kb=function(a){var b=a.a?a.a.length:0;Fi(this.j,"Received early streams push notification with "+b+" modified streams");if(this.gb&&0!=b)if("INPROGRESS"==this.h)Q5(this,a.a);else if("STARTING"==this.h||"STARTED"==this.h)this.ba=cc(this.ba,a.a)};
var Q5=function(a,b){var c=Z5(a,b);null!=c?0==c.length?C(a.j,"Got empty streamInfos: "+b):(b=Mb(c,function(a){return a.N()!=this.A},a),R5(a),x(b,function(a){this.g.info("Session "+b1(this)+" notified of new remote stream: "+a.toString())},a),a.dispatchEvent(new AQ(b,[],[]))):C(a.j,"Failed to parse streamInfos: "+c)},X5=function(a,b){var c=Z5(a,b);null==c?C(a.j,"Failed to parse streamInfos: "+c):0==c.length?C(a.j,"Got empty streamInfos: "+b):(x(c,function(a){this.g.info("Session "+b1(this)+" received modified remote stream: "+
a.toString())},a),a.dispatchEvent(new AQ([],c,[])))},Y5=function(a,b){var c=Z5(a,b);null!=c?0==c.length?C(a.j,"Got empty streamInfos: "+b):(x(c,function(a){this.g.info("Session "+b1(this)+" removing remote stream: "+a.toString())},a),a.dispatchEvent(new AQ([],[],c))):C(a.j,"Failed to parse streamInfos: "+c)},Z5=function(a,b){b=JY(a.w,b);return b=Nb(b,function(a){if(""==a.ga()){var b;"a"==a.Y()?b="1":"v"==a.Y()?b="2":"d"==a.Y()&&(b="3");a=WN(new TN(a),b).T();this.Oa.add(a.N())}return a},a)};
K5.prototype.Lb=function(a){if(Aa(a.removed)&&0<a.removed.length)0==this.b.get().length&&(this.g.info("Session "+b1(this)+" terminating to handle Reflector failover."),L5(this,"STOPPED",26));else if(Aa(a.a)&&0<a.a.length){var b=KY(this.w,a.a);null!=b?0==b.length?C(this.j,"Got empty stream requests: "+a):this.dispatchEvent(new BQ(b)):C(this.j,"Failed to parse stream requests: "+a)}};
K5.prototype.Za=function(a){this.g.error("Stopping session "+this.a+" because stream collection failed, with reason: "+a.reason);this.stop(a.a)};var $5=function(a){VQ.call(this,a)};t($5,VQ);XM($5,VQ,1);$5.prototype.Gh=function(a,b,c){var d=this.b.a;c=new pX(d.h,R(d,6),R(d,2),R(d,5),c,R(d,1));var e=this.b,f=R(d,6);d=new MV(S(d,14),R(d,8)||!1,!!R(d,16));a=new K5(a,e,f,c,d,b);a.l(c);return a};var a6=function(){this.l=null};t(a6,PY);XM(a6,PY);a6.prototype.b=function(a,b){return V(b,FP,13)};a6.prototype.h=function(a,b,c){var d;xN(a)&&qN(a,IR)&&(d=sN(a,IR).then(function(a){return a.b.a}));if(c)return new F2(c||R(b,6),b.h,d,R(b,1),R(b,5));this.l||(this.l=new F2(R(b,6),b.h,d,R(b,1),R(b,5)));return this.l};a6.prototype.g=function(a,b){return b.s};a6.prototype.f=function(a,b){return b.v};var b6=function(){this.a=!1;this.b=xc()};var c6=function(a,b){this.a=a;this.b=b};c6.prototype.execute=function(a){this.a&&(this.a.call(this.b||null,a),this.a=this.b=null)};c6.prototype.abort=function(){this.b=this.a=null};var d6=function(a,b){Jh.call(this);this.a=a;this.ua=b;this.f=[];this.b=[];this.g=[]};t(d6,Jh);d6.prototype.getId=function(){return this.ua};var e6=function(a,b){a.b.push(new c6(b,void 0))};d6.prototype.onError=function(a){for(var b=this.b,c=[],d=0;d<b.length;d++)try{b[d].execute(a)}catch(e){ah(e),c.push(e)}b.length=0;(a=c.length?c:null)&&window.setTimeout(Zg("Module errback failures: "+a),0);this.g.length=0;this.f.length=0};d6.prototype.W=function(){d6.aa.W.call(this);Lh(null)};var f6=function(){Jh.call(this);this.g={};this.b=[];this.f=[];this.m=[];this.a=[];this.h=[];this.s={};this.I=new d6([],"");this.j=Ih("goog.module.ModuleManager");this.v=0;this.B=this.A=!1};t(f6,Jh);xa(f6);
var h6=function(a){var b=0<a.b.length;b!=a.A&&(g6(a,b?"active":"idle"),a.A=b);b=0<a.h.length;b!=a.B&&(g6(a,b?"userActive":"userIdle"),a.B=b)},wN=function(a,b,c){var d=[];gc(b,d);b=[];for(var e={},f=0;f<d.length;f++){var g=d[f],l=a.g[g];if(!l)throw Error("Unknown module: "+g);var r=new mz;e[g]=r;i6(a,g,l,!!c,r);j6(a,g)||b.push(g)}0<b.length&&(0==a.b.length?a.w(b):(a.a.push(b),h6(a)));return e},i6=function(a,b,c,d,e){c.f.push(new c6(e.callback,e));e6(c,function(a){e.a(Error(a))});j6(a,b)?d&&(D(a.j,
"User initiated module already loading: "+b),Ub(a.h,b)||a.h.push(b),h6(a)):d?(D(a.j,"User initiated module load: "+b),Ub(a.h,b)||a.h.push(b)):D(a.j,"Initiating module load: "+b)};f6.prototype.w=function(a,b,c){b||(this.v=0);a=k6(this,a);D(this.j,"Loading module(s): "+a);this.b=a;this.f=y(a);h6(this);0!=a.length&&(this.m.push.apply(this.m,a),c=p(null.ks,null,y(a),this.g,null,p(this.F,this,this.f,a),p(this.H,this),!!c),(a=5E3*Math.pow(this.v,2))?window.setTimeout(c,a):c())};
var k6=function(a,b){for(var c=0;c<b.length;c++);var d=[];for(c=0;c<b.length;c++)d=d.concat(l6(a,b[c]));gc(d);return 1<d.length?(c=d.shift(),D(a.j,"Must load "+c+" module before "+b),a.a=Nb(d,function(a){return[a]}).concat(a.a),[c]):d},l6=function(a,b){var c=[];Ub(a.m,b)||c.push(b);for(b=y(a.g[b].a);b.length;){var d=b.pop();Ub(a.m,d)||(c.unshift(d),Array.prototype.unshift.apply(b,a.g[d].a))}gc(c);return c},j6=function(a,b){if(Ub(a.b,b))return!0;for(var c=0;c<a.a.length;c++)if(Ub(a.a[c],b))return!0;
return!1};f6.prototype.load=function(a,b){return wN(this,[a],b)[a]};f6.prototype.F=function(a,b,c){this.v++;this.f=a;x(b,Ja($b,this.m),this);401==c?(D(this.j,"Module loading unauthorized"),m6(this,0),this.a.length=0):410==c?(n6(this,3),o6(this)):3<=this.v?(D(this.j,"Aborting after failure to load: "+this.b),n6(this,1),o6(this)):(D(this.j,"Retrying after failure to load: "+this.b),this.w(this.f,!0,8001==c))};f6.prototype.H=function(){D(this.j,"Aborting after timeout: "+this.b);n6(this,2);o6(this)};
var n6=function(a,b){1<a.f.length?a.a=Nb(a.f,function(a){return[a]}).concat(a.a):m6(a,b)},m6=function(a,b){var c=a.f;a.b.length=0;for(var d=[],e=0;e<a.a.length;e++){var f=Mb(a.a[e],function(a){var b=l6(this,a);return Pb(c,function(a){return Ub(b,a)})},a);ec(d,f)}for(e=0;e<c.length;e++)Wb(d,c[e]);for(e=0;e<d.length;e++){for(f=0;f<a.a.length;f++)$b(a.a[f],d[e]);$b(a.h,d[e])}var g=a.s.error;if(g)for(e=0;e<g.length;e++){var l=g[e];for(f=0;f<d.length;f++)l("error",d[f],b)}for(e=0;e<c.length;e++)if(a.g[c[e]])a.g[c[e]].onError(b);
a.f.length=0;h6(a)},o6=function(a){for(;a.a.length;){var b=Mb(a.a.shift(),function(){return!0},a);if(0<b.length){a.w(b);return}}h6(a)},g6=function(a,b){a=a.s[b];for(var c=0;a&&c<a.length;c++)a[c](b)};f6.prototype.W=function(){f6.aa.W.call(this);Nh(sc(this.g),this.I);this.s=this.a=this.h=this.f=this.b=this.g=null};var p6=function(a){Xf.call(this,a);a=this.za=new lN;var b=f6.ja();a.A=b;a=this.za;b=new D5(a,document);a.registerService(iN,b);this.f=this.w=this.u=this.v=null;this.B=Cw()};qa(p6,Xf);h=p6.prototype;h.ve=function(){q6(this);Jg(this)};h.ha=function(){throw Error("not implemented");};h.xa=function(){return[{lastSessionId:this.f}]};h.Da=function(){var a=Gg(this);a&&a.lastSessionId&&(this.f=a.lastSessionId)};
h.Ff=function(){var a=this;return this.f||this.a?new Promise(function(b,c){setTimeout(c,5E3);var d=function(){a.u.then(function(){a.f?(a.f=null,b()):c(Error("No session to upload"))})},e=a.a;e?(e.a?q5(e.a):Promise.reject(Error("no call in the session"))).then(function(){b()},d):a.f?d():c(Error("No session to upload"))}):Promise.reject(Error("No session to upload"))};h.kf=function(a){a.a?(a=a.a,a=a.a?a.a.Uf():null):a=null;this.f=a;return Promise.resolve()};
h.te=function(a,b){a=new w5(b,this.za,this.u);this.v=a.h.bind(a);return a};h.Ue=function(){t5(0)};h.Re=function(){t5(1)};h.Se=function(){hb("MediaRouter.Hangouts.Session.End")};h.Te=function(a){ib("MediaRouter.Hangouts.Start.Failure",a,uf)};h.Td=function(){hb("MediaRouter.Hangouts.Stream.End")};h.createMediaRouteController=function(a,b,c){var d=this.a;return d?d.b.id!=a?Promise.reject(Error("Route ID mismatch")):d.createMediaRouteController(b,c):Promise.reject(Error("Mirror session does not exist"))};
h.cl=function(a){this.v&&this.v(a)};h.qh=function(){var a="v1";.1>Math.random()&&(a+="_preprod");return a};
var q6=function(a){a.za.registerService(uU,tU);a.za.registerService(IR,new b6);var b=new VV(new tW,new A5(a.cl.bind(a)));b=new aW(b,"hangouts",a.qh(),"","https://www.googleapis.com",a.B);var c=new iW(b);U(c,1,39);U(c,5,158);U(c,2,"castouts");U(c,3,"castouts");QP(c,chrome.runtime.id+chrome.runtime.getManifest().version);c.u("castouts",!0);b=.01;"google.com"==nt(Dw(Bw.ja()))&&(b=1);U(c,9,b);U(c,10,"https://hangouts.google.com/hangouts/_/logpref");U(c,11,"https://clients2.google.com/cr/report");c.register(a.za);
mX(a.za);a.u=new Promise(function(b,e){a.w=a.za.get(HR);var d=a.w;d.a=c;d.f.resolve(c);d.Ga().then(b,e)})};var r6=function(){p6.call(this,"hangouts")};qa(r6,p6);r6.prototype.ha=function(){return"HangoutsService"};var s6=new r6;Wf("mr.mirror.hangouts.HangoutsService",s6);var t6=function(a){return{a:function(b){return a().then(function(a){return Y2(b,"Authorization","Bearer "+a)})}}};var u6=function(){p6.call(this,"meetings");this.m=null};qa(u6,p6);u6.prototype.ha=function(){return"MeetingsService"};u6.prototype.qh=function(){return"v1_meetings"};var v6=function(a){null==a.m&&(a.m=new U3,l3(V3(a.m,!0),t6(function(){return gj(Dw(Bw.ja()).getAuthToken())})));return a.m};u6.prototype.qb=function(a){return Promise.resolve(C4(v6(this),a.input).then(function(a){return a.qb()}))};u6.prototype.ve=function(){p6.prototype.ve.call(this);var a=v6(this);this.za.registerService(UV,a)};
var w6=new u6;Wf("mr.mirror.hangouts.MeetingsService",w6);
