'use strict';Mf("talk.media.CallEvent");Mf("talk.media.Client3DDetector");var Jy=new Rf(Math.max(screen&&screen.width||0,1024),Math.max(screen&&screen.height||0,768)),Ky=new Rf(1920,1200),Ly=Jy.aspectRatio()>Ky.aspectRatio()?Ky.width/Jy.width:Ky.height/Jy.height,Lca=r(void 0)?void 0:Ly;Jy.width*=Ly;Jy.height*=Lca;var My=function(a){W.call(this);this.Wa=a;this.J={}};x(My,W);var Ny=[];My.prototype.listen=function(a,c,b,d){return Oy(this,a,c,b,d)};
var Oy=function(a,c,b,d,e,f){Ua(b)||(b&&(Ny[0]=b.toString()),b=Ny);for(var g=0;g<b.length;g++){var k=ru(c,b[g],d||a.handleEvent,e||!1,f||a.Wa||a);if(!k)break;a.J[k.key]=k}return a},Qy=function(a,c,b,d){Py(a,c,b,d,void 0)},Py=function(a,c,b,d,e,f){if(Ua(b))for(var g=0;g<b.length;g++)Py(a,c,b[g],d,e,f);else(c=qu(c,b,d||a.handleEvent,e,f||a.Wa||a))&&(a.J[c.key]=c)},Ry=function(a,c,b,d,e,f){if(Ua(b))for(var g=0;g<b.length;g++)Ry(a,c,b[g],d,e,f);else d=d||a.handleEvent,e=Ya(e)?!!e.capture:!!e,f=f||a.Wa||
a,d=su(d),e=!!e,b=fu(c)?mu(c.L,String(b),d,e,f):c?(c=uu(c))?mu(c,b,d,e,f):null:null,b&&(yu(b),delete a.J[b.key]);return a};My.prototype.removeAll=function(){yc(this.J,function(a,c){this.J.hasOwnProperty(c)&&yu(a)},this);this.J={}};My.prototype.ia=function(){My.Ga.ia.call(this);this.removeAll()};My.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var Sy=function(a,c,b){if(b)for(var d=0;d<b.length;d++);this.Vs=a;this.Ej=c||null;this.Zp=b||[]};Sy.prototype.toString=function(){return this.Vs};Sy.prototype.Ki=function(){return this.Zp};var Ty=!1,Uy=function(a){if(a=a.match(/[\d]+/g))a.length=3};
(function(){if(navigator.plugins&&navigator.plugins.length){var a=navigator.plugins["Shockwave Flash"];if(a&&(Ty=!0,a.description)){Uy(a.description);return}if(navigator.plugins["Shockwave Flash 2.0"]){Ty=!0;return}}if(navigator.mimeTypes&&navigator.mimeTypes.length&&(a=navigator.mimeTypes["application/x-shockwave-flash"],Ty=!(!a||!a.enabledPlugin))){Uy(a.enabledPlugin.description);return}if("undefined"!=typeof ActiveXObject){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");Ty=!0;Uy(c.GetVariable("$version"));
return}catch(b){}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");Ty=!0;return}catch(b){}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),Ty=!0,Uy(c.GetVariable("$version"))}catch(b){}}})();Mf("talk.media.FlashDetector");Mf("talk.media.RendererDetector");new Jm({neon:1,sse2:2,ssse3:4,sse4_1:8,sse4_2:16,avx:32});Mf("talk.media.TalkPluginChannel");new Fn([4,2]);Mf("talk.media.TalkPlugin");/*
 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 Vy=function(a,c){this.o=[];this.H=a;this.L=c||null;this.j=this.g=!1;this.h=void 0;this.C=this.J=this.D=!1;this.s=0;this.f=null;this.m=0};Vy.prototype.cancel=function(a){if(this.g)this.h instanceof Vy&&this.h.cancel();else{if(this.f){var c=this.f;delete this.f;a?c.cancel(a):(c.m--,0>=c.m&&c.cancel())}this.H?this.H.call(this.L,this):this.C=!0;this.g||this.b(new Wy(this))}};Vy.prototype.F=function(a,c){this.D=!1;Xy(this,a,c)};
var Xy=function(a,c,b){a.g=!0;a.h=b;a.j=!c;Yy(a)},$y=function(a){if(a.g){if(!a.C)throw new Zy(a);a.C=!1}};Vy.prototype.callback=function(a){$y(this);Xy(this,!0,a)};Vy.prototype.b=function(a){$y(this);Xy(this,!1,a)};var bz=function(a,c,b){return az(a,c,null,b)},cz=function(a,c){return az(a,null,c,void 0)},az=function(a,c,b,d){a.o.push([c,b,d]);a.g&&Yy(a);return a};
Vy.prototype.then=function(a,c,b){var d,e,f=new Tu(function(g,k){d=g;e=k});az(this,d,function(g){g instanceof Wy?f.cancel():e(g)});return f.then(a,c,b)};Pu(Vy);var dz=function(a,c){c instanceof Vy?bz(a,t(c.w,c)):bz(a,function(){return c})};Vy.prototype.w=function(a){var c=new Vy;az(this,c.callback,c.b,c);a&&(c.f=this,this.m++);return c};Vy.prototype.isError=function(a){return a instanceof Error};
var ez=function(a){return Pb(a.o,function(c){return Xa(c[1])})},Yy=function(a){if(a.s&&a.g&&ez(a)){var c=a.s,b=fz[c];b&&(Ha.clearTimeout(b.Ka),delete fz[c]);a.s=0}a.f&&(a.f.m--,delete a.f);c=a.h;for(var d=b=!1;a.o.length&&!a.D;){var e=a.o.shift(),f=e[0],g=e[1];e=e[2];if(f=a.j?g:f)try{var k=f.call(e||a.L,c);Ia(k)&&(a.j=a.j&&(k==c||a.isError(k)),a.h=c=k);if(Qu(c)||"function"===typeof Ha.Promise&&c instanceof Ha.Promise)d=!0,a.D=!0}catch(m){c=m,a.j=!0,ez(a)||(b=!0)}}a.h=c;d&&(k=t(a.F,a,!0),d=t(a.F,a,
!1),c instanceof Vy?(az(c,k,d),c.J=!0):c.then(k,d));b&&(c=new gz(c),fz[c.Ka]=c,a.s=c.Ka)},Mca=function(){var a=new Vy;a.callback(new hz(200,""));return a},Nca=function(a){var c=new Vy;a.then(function(b){c.callback(b)},function(b){c.b(b)});return c},Oca=function(a){var c=new Vy;c.b(a);return c},Zy=function(){Eb.call(this)};x(Zy,Eb);Zy.prototype.message="Deferred has already fired";Zy.prototype.name="AlreadyCalledError";var Wy=function(){Eb.call(this)};x(Wy,Eb);Wy.prototype.message="Deferred was canceled";
Wy.prototype.name="CanceledError";var gz=function(a){this.Ka=Ha.setTimeout(t(this.f,this),0);this.b=a};gz.prototype.f=function(){delete fz[this.Ka];throw this.b;};var fz={};var iz=function(){W.call(this)};x(iz,W);iz.prototype.l=Mf("fava.debug.ErrorReporter");iz.prototype.init=function(){};new iz;Mf("fava.debug.errorContext");var jz=function(a,c){W.call(this);this.h=null;this.j=c;this.f=[];if(a>this.j)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");for(c=0;c<a;c++)this.f.push(this.g())};x(jz,W);var Pca=function(a,c){a.h=c},lz=function(a,c){a.f.length<a.j?a.f.push(c):kz(c)};jz.prototype.g=function(){return this.h?this.h():{}};var kz=function(a){if(Ya(a))if(Xa(a.Za))a.Za();else for(var c in a)delete a[c]};jz.prototype.ia=function(){jz.Ga.ia.call(this);for(var a=this.f;a.length;)kz(a.pop());delete this.f};var oz=function(){this.b=[];this.f=new Jm;this.C=this.F=this.L=this.m=0;this.g=new Jm;this.w=this.D=0;this.H=1;this.h=new jz(0,4E3);this.h.g=function(){return new mz};this.s=new jz(0,50);this.s.g=function(){return new nz};var a=this;this.o=new jz(0,2E3);Pca(this.o,function(){return a.H++});this.j={}};oz.prototype.l=Mf("goog.debug.Trace");var nz=function(){this.pk=this.time=this.count=0};
nz.prototype.toString=function(){var a=[];a.push(this.type," ",this.count," (",Math.round(10*this.time)/10," ms)");this.pk&&a.push(" [VarAlloc = ",this.pk,"]");return a.join("")};var mz=function(){},Qca=function(a,c,b,d){var e=[];-1==b?e.push("    "):e.push(pz(a.eventTime-b));e.push(" ",qz(a.eventTime-c));0==a.eventType?e.push(" Start        "):1==a.eventType?(e.push(" Done "),e.push(pz(a.f-a.startTime)," ms ")):e.push(" Comment      ");e.push(d,a);0<a.b&&e.push("[VarAlloc ",a.b,"] ");return e.join("")};
mz.prototype.toString=function(){return null==this.type?this.comment:"["+this.type+"] "+this.comment};var Rca={ZA:!0};oz.prototype.Vj=function(){this.j={}};var Sca=function(a){a.j.stop&&Fm(a.f,function(c){this.j.stop(c.id,Rca)},a);a.f.clear()};
oz.prototype.reset=function(){Sca(this);for(var a=0;a<this.b.length;a++){var c=this.b[a];c.id?Mm(this.f,c.id)||(lz(this.o,c.id),lz(this.h,c)):lz(this.h,c)}this.b.length=0;this.m=u();this.w=this.D=this.C=this.F=this.L=0;a=this.g.wb();for(c=0;c<a.length;c++){var b=this.g.get(a[c]);b.count=0;b.time=0;b.pk=0;lz(this.s,b)}this.g.clear()};
oz.prototype.toString=function(){for(var a=[],c=-1,b=[],d=0;d<this.b.length;d++){var e=this.b[d];1==e.eventType&&b.pop();a.push(" ",Qca(e,this.m,c,b.join("")));c=e.eventTime;a.push("\n");0==e.eventType&&b.push("|  ")}if(0!=this.f.sa()){var f=u();a.push(" Unstopped timers:\n");Fm(this.f,function(g){a.push("  ",g," (",f-g.startTime," ms, started at ",qz(g.startTime),")\n")})}c=this.g.wb();for(d=0;d<c.length;d++)b=this.g.get(c[d]),1<b.count&&a.push(" TOTAL ",b,"\n");a.push("Total tracers created ",this.D,
"\n","Total comments created ",this.w,"\n","Overhead start: ",this.L," ms\n","Overhead end: ",this.F," ms\n","Overhead comment: ",this.C," ms\n");return a.join("")};var pz=function(a){a=Math.round(a);var c="";1E3>a&&(c=" ");100>a&&(c="  ");10>a&&(c="   ");return c+a},qz=function(a){a=Math.round(a);return String(100+a/1E3%60).substring(1,3)+"."+String(1E3+a%1E3).substring(1,4)};new oz;Mf("goog.debug.ErrorReporter");var rz=function(a){this.f=0;this.g=a||100;this.b=[]};h=rz.prototype;h.add=function(a){var c=this.b[this.f];this.b[this.f]=a;this.f=(this.f+1)%this.g;return c};h.get=function(a){a=sz(this,a);return this.b[a]};h.set=function(a,c){a=sz(this,a);this.b[a]=c};h.sa=function(){return this.b.length};h.Nb=function(){return 0==this.b.length};h.clear=function(){this.f=this.b.length=0};h.na=function(){return tz(this,this.sa())};var tz=function(a,c){var b=a.sa(),d=[];for(c=a.sa()-c;c<b;c++)d.push(a.get(c));return d};
rz.prototype.wb=function(){for(var a=[],c=this.sa(),b=0;b<c;b++)a[b]=b;return a};rz.prototype.Bf=function(a){for(var c=this.sa(),b=0;b<c;b++)if(this.get(b)==a)return!0;return!1};var sz=function(a,c){if(c>=a.b.length)throw Error("Out of bounds exception");return a.b.length<a.g?c:(a.f+Number(c))%a.g};u();Mf("fava.debug.DebugService");var uz=function(a,c,b,d,e,f){var g=new FormData;g.append("prod",Ie?"Google_Talk_Plugin_Mac":Je?"Google_Talk_Plugin":"Google_Talk_Plugin_Linux");g.append("ver",(f?f:"unknown")+"-calls");g.append("email",c);g.append("type","log");g.append("log",new Blob([a]),e);b&&g.append("participant_log_id",b);if(a=d)try{a=!!navigator.sendBeacon&&navigator.sendBeacon("https://clients2.google.com/cr/report",g)}catch(m){a=!1}if(a)return Mca();try{var k=new Vy;yw("https://clients2.google.com/cr/report",function(m){m=
m.target;Gw(m)?k.callback(new hz(m.Va(),Hw(m))):(m=Error(m.s+" "+m.Va()+" "+Hw(m)),k.b(m))},"POST",g);return k}catch(m){return Oca(m)}},hz=function(a,c){this.b=a;this.f=c};var vz=function(a){this.id=a.Ka;this.displayName=a.b;this.groupId=a.j;this.b=a.f;this.isSelected=a.h};vz.prototype.toJson=function(){return{id:this.id,displayName:this.displayName,groupId:this.groupId,fullName:this.b,isSelected:this.isSelected}};vz.prototype.toString=function(){return"Device(id="+this.id+", displayName="+this.displayName+", groupId="+this.groupId+", fullName="+this.b+", isSelected="+this.isSelected+")"};var wz=function(){this.Ka=null;this.f=this.j=this.b="";this.h=!1};
wz.prototype.aa=function(){return new vz(this)};var xz=function(a){var c=new wz;c.Ka=a;return c};wz.prototype.g=function(a){this.j=a;return this};var yz=xz("__absent_device__");yz.b="__absent_device__";var zz=yz.g("__absent_device__");zz.f="__absent_device__";var Tca=zz.aa();var Az=function(a,c){Y.call(this);this.F=a||4194304;this.J=c||10485760;this.f=this.j=this.h=this.s=this.H=null;this.g=this.o=0;this.m=[]};q(Az,Y);var Bz=function(a){a.h||(a.h=new Uint8Array(a.F+a.J),a.j=a.h.subarray(0,a.F),a.f=a.h.subarray(a.F))};Az.prototype.open=function(a,c,b){if(!this.H){var d=dv();this.H=d.Y;a=Uca(a,c,!!b);c=Vca(a);c=Wca(this,c);Xca(this,c,a).then(function(e){this.s=e;this.C();d.resolve()},t(d.reject,d),this)}return this.H};
var Yca=function(a){return"undefined"!==typeof TextEncoder?(Cz||(Cz=new TextEncoder),Cz.encode(a)):Dz(Oj(a))},Dz=function(a){if(Uint8Array.__proto__&&Uint8Array.__proto__.from)return Uint8Array.from(a);a=Object(a);if(!a.length)return new Uint8Array(0);for(var c=new Uint8Array(a.length),b=0;b<c.length;b++)c[b]=a[b];return c};Az.prototype.write=function(a){y(a,function(c){this.m.push(Yca(c))},this);this.C()};Az.prototype.Nb=function(){return 0==this.g&&0==this.m.length};
var Ez=function(a){var c=0,b=[];if(a.h&&a.g>a.h.length){for(var d=a.j.length;d&&127<a.j[d-1];)d--;for(var e=a.f.length,f=a.o;e&&127<a.f[f];)f++,e--,f==a.f.length&&(f=0);b.push(a.j.subarray(0,d));c+=d;d=Dz(Oj("...\r\n\r\n##### LOG TRUNCATED - REMOVED "+(a.g-d-e)+" BYTES#####\r\n\r\n..."));b.push(d);c+=d.length;f+e<=a.f.length?b.push(a.f.subarray(f,f+e)):(b.push(a.f.subarray(f)),b.push(a.f.subarray(0,e-(a.f.length-f))));c+=e}else a.h&&a.g&&(c+=a.g,b.push(a.h.subarray(0,a.g)));a.m.length&&y(a.m,function(m){b.push(m);
c+=m.length});var g=new Uint8Array(c),k=0;y(b,function(m){g.set(m,k);k+=m.length});return g},Uca=function(a,c,b){var d=dv();a.then(function(e){e.getFile(c,b?{}:{create:!0},t(d.resolve,d),t(d.reject,d))},t(d.reject,d));return d.Y},Vca=function(a){var c=dv();a.then(function(b){b.file(t(c.resolve,c),t(c.reject,c))},t(c.reject,c));return c.Y},Wca=function(a,c){var b=dv();c.then(function(d){Bz(this);this.g=d.size;if(this.g>this.h.length){var e=dv(),f=new FileReader;f.onload=t(function(){this.j.set(new Uint8Array(f.result));
e.resolve()},this);f.readAsArrayBuffer(d.slice(0,this.j.length));var g=dv(),k=new FileReader;k.onload=t(function(){this.f.set(new Uint8Array(k.result));g.resolve()},this);k.readAsArrayBuffer(d.slice(d.size-this.f.length,d.size));b.resolve(cv([e.Y,g.Y]))}else{var m=new FileReader;m.onload=t(function(){var p=new Uint8Array(m.result);this.h.set(p);this.g>this.j.length&&(this.o=(this.g-this.j.length)%this.f.length);b.resolve()},this);m.readAsArrayBuffer(d)}},t(b.reject,b),a);return b.Y},Xca=function(a,
c,b){var d=dv();bv([c,b]).then(function(e){e[1].createWriter(t(function(f){f.seek(f.length);f.onwriteend=t(this.C,this);d.resolve(f)},this),t(d.reject,d))},t(d.reject,d),a);return d.Y};
Az.prototype.C=function(){this.s&&this.s.readyState!=this.s.WRITING&&0<this.m.length&&(this.s.write(new Blob(this.m)),Bz(this),y(this.m,function(a){var c=this.g;this.g+=a.length;if(c<this.h.length){var b=a.subarray(0,Math.min(this.h.length-c,a.length));this.h.set(b,c);a=a.subarray(b.length)}for(c=this.f.length-this.o;a.length;)b=a.subarray(0,Math.min(c,a.length)),this.f.set(b,this.o),a=a.subarray(b.length),this.o=b.length==c?0:this.o+b.length,c=this.f.length},this),this.m.length=0)};var Cz=null;var Fz=function(a){N(this,a,"cl:plu",-1,Zca,null)};x(Fz,M);var Gz=function(a){N(this,a,0,-1,null,null)};x(Gz,M);var Zca=[1];Fz.prototype.u=function(){var a=new D;var c=U(this,Gz,1);0<c.length&&L(a,1,c,Hz);return F(a)};Gz.prototype.u=function(){var a=new D;Hz(this,a);return F(a)};var Hz=function(a,c){var b=O(a,1);null!=b&&c.h(1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&H(c,3,b);b=O(a,4);null!=b&&K(c,4,b)};Gz.prototype.za=function(a){S(this,2,a)};Bl("cl:plu",Fz);var $ca=function(){};var Iz=function(){};x(Iz,$ca);Iz.prototype.sa=function(){var a=0;Fm(this.Jb(!0),function(){a++});return a};Iz.prototype.clear=function(){var a=Hm(this.Jb(!0)),c=this;y(a,function(b){c.remove(b)})};var Jz=function(a){this.b=a};x(Jz,Iz);h=Jz.prototype;h.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}};h.set=function(a,c){try{this.b.setItem(a,c)}catch(b){if(0==this.b.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};h.get=function(a){a=this.b.getItem(a);if(!Ja(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};h.remove=function(a){this.b.removeItem(a)};
h.sa=function(){return this.b.length};h.Jb=function(a){var c=0,b=this.b,d=new Dm;d.next=function(){if(c>=b.length)throw Cm;var e=b.key(c++);if(a)return e;e=b.getItem(e);if(!Ja(e))throw"Storage mechanism: Invalid value was encountered";return e};return d};h.clear=function(){this.b.clear()};h.key=function(a){return this.b.key(a)};var Kz=function(){var a=null;try{a=window.localStorage||null}catch(c){}this.b=a};x(Kz,Jz);var Lz=function(){this.b=new Kz;this.f=new Fn};Ra(Lz);var Mz=[31,37,41,43,47,53,61,67,71,73];Lz.prototype.l=Mf("talk.media.webrtc.PendingLogUploadManager");
var Nz=function(a){for(var c=[],b=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(c[b++]=e&255,e>>=8);c[b++]=e}for(a=0;a<c.length;a++)c[a]^=Mz[a%Mz.length];return"wrplumplu-"+Tj(c)},Oz=function(a,c,b){var d=u()-432E6;c=a.b.get(Nz(c));if(null!=c)try{var e=Gv(c);if("cl:plu"==e[0]){var f=new Fz(e),g=Mb(U(f,Gz,1),function(k){return null!=O(k,1)&&null!=O(k,2)&&null!=O(k,3)&&0<O(k,1)&&O(k,3)>d&&O(k,2)!=b});rl(f,1,g);return f}}catch(k){B(a.l,"Invalid pending JS log upload storage: "+c,k)}return new Fz};
Lz.prototype.add=function(a,c,b){C(this.l,"Recording pending upload for session "+c+" for "+a);this.f.add(c);var d=Oz(this,a,c),e=U(d,Gz,1),f=new Gz;S(f,1,5);f.za(c);S(f,4,b);c=u();S(f,3,c);Yb(e,void 0,0,f);rl(d,1,e);this.b.set(Nz(a),d.Ba())};Lz.prototype.remove=function(a,c){C(this.l,"Removing record for session "+c+" for "+a);c=Oz(this,a,c);this.b.set(Nz(a),c.Ba())};
var ada=function(a,c){var b=Oz(a,c),d=U(b,Gz,1),e=Rb(d,function(p){p=O(p,2);return!this.f.contains(p)},a);if(0<=e){var f=d[e],g=O(f,2),k=O(f,4),m=O(f,1);m--;S(f,1,m);0>=m&&$b(d,e);rl(b,1,d);a.b.set(Nz(c),b.Ba());C(a.l,"Signaling session "+g+" for "+c+" to re-upload");a.f.add(g);return{sessionId:g,Wb:k}}return null};var Pz=function(){this.w="";this.C=0;this.D=null;this.o=new Az;this.b={};this.j=bda();hv(this.j,Qa);this.g=Lz.Ja();this.m=this.f=null;this.L=window.requestIdleCallback||null;this.h=!1};Ra(Pz);
var Qz=function(a,c,b,d){var e=u();null==a.D&&(a.D=e);d=null!=d?d:8;if(!(d<a.C))if(b="["+((e-a.D)/1E3).toFixed(3)+"s]"+d+" "+b+"\n",null!=c)a=a.b[c],null!=a&&a.write([b]);else{for(c in a.b)a.b[c].write([b]);null!=c||a.o.write([b])}},cda=function(a,c,b,d){a.g.add(b,c,d);return Rz(a,c,b,d)},Rz=function(a,c,b,d){var e="hangouts-call-"+c+".log",f=a.b[c];if(null!=f)return a.h=!0,cz(bz(uz(Ez(f),b,d,!0,e,a.w),t(a.F,a,c,b)),t(a.s,a,c,b));f=new Az;var g=new Vy;f.open(a.j,e,!0).then(function(){if(f.Nb())Qz(this,
this.f,"JS log for "+c+" has no content",9),g.callback(new hz(null,"No log content for session "+c));else{var k=cz(bz(uz(Ez(f),b,d,!1,void 0,this.w),t(this.F,this,c,b)),t(this.s,this,c,b));az(k,g.callback,g.b,g);this.h=!0}},function(k){this.s(c,b,k);g.b(k)},a);return g},bda=function(){var a=Ha.requestFileSystem||Ha.webkitRequestFileSystem;if(!a)return Yu("Filesystem API not accessible");var c=dv();a(window.TEMPORARY,0,function(b){b.root.getDirectory("log_v2",{create:!0},t(c.resolve,c),t(c.reject,
c))},t(c.reject,c));return c.Y};Pz.prototype.W=function(a){var c=dv(),b=a.createReader(),d=[],e=0,f=function(){b.readEntries(function(g){g.length?(e++,d=d.concat(g),100<e?c.resolve(d):f()):c.resolve(d)},function(g){c.reject(g)})};f();return c.Y};
Pz.prototype.T=function(){var a=new Date(u()-432E6),c=dv();this.j.then(this.W,null,this).then(function(b){var d={};y(b,function(e){d[e.name]=!0});y(b,function(e){var f=function(){delete d[e.name];Jc(d)&&c.resolve()};e.getMetadata(function(g){g.modificationTime<a?e.remove(f,f):f()},f)})},t(c.resolve,c));return c.Y};
Pz.prototype.F=function(a,c,b){200==b.b?(Qz(this,this.f,"JS log upload for "+a+" successful: "+b.f),this.g.remove(c,a)):Qz(this,this.f,"JS log upload for "+a+" failure "+b.b+": "+b.f,10);this.h=!1};Pz.prototype.s=function(a,c,b){Qz(this,this.f,"JS log upload for "+a+" failed: "+b,10);this.h=!1};var dda=function(a,c){return null==a.m?(a.m=new Vy,a.J(c,0),a.m):null};Pz.prototype.J=function(a,c){qv(t(this.Ua,this,a,c),13E3)};
Pz.prototype.Ua=function(a,c){Xa(this.L)?this.L.call(null,t(this.H,this,a,c)):this.H(a,c)};Pz.prototype.H=function(a,c){var b=ada(this.g,a);if(null!=b){var d=b.sessionId;b=b.Wb;Qz(this,this.f,"Retrying JS log upload for "+d);cz(bz(Rz(this,d,a,b),t(this.J,this,a,b,c+1)),t(this.O,this,a,c))}else this.O(c)};Pz.prototype.O=function(a){this.m.callback(a);qv(this.T,13E3,this)};var eda=new RegExp(/(?:hangouts\/_|present)/.source+"[/]"+/(?:[^\/]+\.[^\/]+)/.source+"[/]"+/([\w_\-]+)/.source+/[\?\/]?/.source);var Sz=function(a,c){this.status=void 0===a?99:a;this.value=c},Tz=new Map([[1,4030],[2,4031],[3,4609],[4,4610],[5,4664],[8,4962]]);var Uz=function(){var a=Uf(),c=a,b=c.chrome&&c.chrome.runtime;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},Vz=function(){return"https:"==Uf().location.protocol?"nkeimhogjdpnpccoofpliimaahmaaome":"hoblmflfjcnhdllclikeemgdcbbflkhi"},Xz=function(a,c){c=void 0===c?!0:c;var b=new Vy,d=Uz(),e=a.method;if(d&&d.sendMessage){e=fda(b,e,c);c=Uf().location;a.origin=c.origin+"/";var f=Rr(c.href,"tabId");
f&&(a.tabId=f);c=Rr(c.href,"winUrl")||c.origin;a.winUrl=c;d.sendMessage(Vz(),a,e)}else d?(d='chrome.runtime lacks "sendMessage" method',a=8):(d="chrome.runtime missing",a=5),d=Wz(e,d),Qz(Pz.Ja(),null,d,10),b.b(new Sz(a,d));return b},Yz=function(a){var c=Pz.Ja();var b=Hv(a);var d=void 0===d?"#REDACTED#":d;var e=eda.exec(b);b=e&&e[1]?b.replace(e[1],d):b;Qz(c,null,"talk.media.webrtc.Extension: Sending message "+b);return Xz(a)},gda=function(){var a=Uz();if(a&&null!=a.connect){Qz(Pz.Ja(),null,"talk.media.webrtc.Extension: Opening port named processCpu");
a=a.connect(Vz(),{name:"processCpu"});var c=t(a.disconnect,a);ru(Uf(),"unload",c);a.onDisconnect.addListener(function(){xu(window,"unload",c)});return a}return null},fda=function(a,c,b){return function(d){if(null!=d){var e=d.error;if(null!=e)e="Extension reported: "+e.name+" - "+e.message+".";else{b&&Qz(Pz.Ja(),null,"talk.media.webrtc.Extension: Received response to "+c+": "+Hv(d.value),5);a.callback(new Sz(0,d.value));return}}else e="No response from extension.";d=null!=d?1:2;var f=Uz();f?null!=
f.lastError&&(e+=" chrome.runtime.lastError.message: "+f.lastError.message):(d=5,e+=" No chrome.runtime to get chrome.runtime.lastError.message.");e=Wz(c,"Hangout Component Extension Error",e);Qz(Pz.Ja(),null,e,10);a.b(new Sz(d,e))}},Zz=!1,Wz=function(a,c,b){return"talk.media.webrtc.Extension: "+("Method: "+a+"; Type: "+c+"; Explanation: "+(b||""))};var $z=function(a){N(this,a,"ci:dc",-1,null,null)};x($z,M);$z.prototype.u=function(){var a=new D;var c=O(this,1);null!=c&&K(a,1,c);return F(a)};Bl("ci:dc",$z);var aA=function(a){N(this,a,0,-1,null,null)};x(aA,M);aA.prototype.u=function(){var a=new D;bA(this,a);return F(a)};var bA=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b);b=O(a,5);null!=b&&c.f(5,b);b=O(a,6);null!=b&&c.f(6,b);b=O(a,7);null!=b&&c.f(7,b);b=O(a,8);null!=b&&c.f(8,b);b=O(a,9);null!=b&&c.f(9,b);b=O(a,11);null!=b&&I(c,11,b);b=O(a,12);null!=b&&c.f(12,b);b=O(a,13);null!=b&&c.f(13,b)};var cA=function(a){N(this,a,0,-1,null,null)};x(cA,M);cA.prototype.u=function(){var a=new D;dA(this,a);return F(a)};var dA=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&J(c,3,b)};cA.prototype.getDevice=function(){return O(this,1)};var eA=function(a,c){S(a,1,c)},fA=function(a,c){S(a,3,c)};var gA=function(a){N(this,a,0,-1,null,null)};x(gA,M);var iA=function(a){N(this,a,0,-1,hda,null)};x(iA,M);var jA=function(a){N(this,a,0,-1,null,null)};x(jA,M);var kA=function(a){N(this,a,0,-1,null,null)};x(kA,M);var lA=function(a){N(this,a,0,-1,null,null)};x(lA,M);var mA=function(a){N(this,a,0,-1,ida,null)};x(mA,M);var nA=function(a){N(this,a,0,-1,null,null)};x(nA,M);var oA=function(a){N(this,a,0,-1,null,null)};x(oA,M);var pA=function(a){N(this,a,0,-1,jda,null)};x(pA,M);
var qA=function(a){N(this,a,0,-1,null,null)};x(qA,M);var rA=function(a){N(this,a,0,-1,null,null)};x(rA,M);gA.prototype.u=function(){var a=new D;sA(this,a);return F(a)};
var sA=function(a,c){var b=T(a,iA,1);null!=b&&c.b(1,b,tA);b=T(a,kA,2);null!=b&&c.b(2,b,uA);b=O(a,3);null!=b&&c.f(3,b);b=T(a,aA,4);null!=b&&c.b(4,b,bA);b=T(a,lA,5);null!=b&&c.b(5,b,vA);b=T(a,mA,6);null!=b&&c.b(6,b,wA);b=T(a,nA,7);null!=b&&c.b(7,b,xA);b=T(a,oA,8);null!=b&&c.b(8,b,yA);b=T(a,cA,9);null!=b&&c.b(9,b,dA);b=O(a,10);null!=b&&c.f(10,b);b=T(a,pA,11);null!=b&&c.b(11,b,zA);b=T(a,rA,12);null!=b&&c.b(12,b,AA);b=O(a,13);null!=b&&K(c,13,b)},hda=[3];
iA.prototype.u=function(){var a=new D;tA(this,a);return F(a)};var tA=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=U(a,jA,3);0<b.length&&L(c,3,b,BA)};jA.prototype.u=function(){var a=new D;BA(this,a);return F(a)};var BA=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b);b=O(a,5);null!=b&&c.f(5,b);b=O(a,6);null!=b&&I(c,6,b);b=O(a,7);null!=b&&I(c,7,b)};
jA.prototype.getName=function(){return O(this,2)};kA.prototype.u=function(){var a=new D;uA(this,a);return F(a)};var uA=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b)};lA.prototype.u=function(){var a=new D;vA(this,a);return F(a)};var vA=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b)},ida=[3,4];
mA.prototype.u=function(){var a=new D;wA(this,a);return F(a)};var wA=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);0<b.length&&Tk(c,3,b);b=O(a,4);0<b.length&&Tk(c,4,b);b=O(a,5);null!=b&&K(c,5,b)};nA.prototype.u=function(){var a=new D;xA(this,a);return F(a)};
var xA=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b);b=O(a,5);null!=b&&c.f(5,b);b=O(a,6);null!=b&&c.f(6,b);b=O(a,7);null!=b&&c.f(7,b);b=O(a,8);null!=b&&c.f(8,b)};oA.prototype.u=function(){var a=new D;yA(this,a);return F(a)};var yA=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b)};oA.prototype.Hb=function(){return R(this,1,0)};var jda=[3];pA.prototype.u=function(){var a=new D;zA(this,a);return F(a)};
var zA=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=U(a,qA,3);0<b.length&&L(c,3,b,CA);b=O(a,4);null!=b&&c.f(4,b)};qA.prototype.u=function(){var a=new D;CA(this,a);return F(a)};var CA=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&Lk(c,4,b);b=O(a,5);null!=b&&Lk(c,5,b);b=O(a,6);null!=b&&K(c,6,b);b=O(a,7);null!=b&&K(c,7,b)};rA.prototype.u=function(){var a=new D;AA(this,a);return F(a)};
var AA=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};var DA=function(a){N(this,a,0,-1,null,null)};x(DA,M);var EA=function(a){N(this,a,0,-1,null,null)};x(EA,M);DA.prototype.u=function(){var a=new D;FA(this,a);return F(a)};
var FA=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=T(a,EA,3);null!=b&&c.b(3,b,GA);b=T(a,EA,4);null!=b&&c.b(4,b,GA);b=T(a,EA,5);null!=b&&c.b(5,b,GA);b=T(a,EA,6);null!=b&&c.b(6,b,GA);b=T(a,EA,7);null!=b&&c.b(7,b,GA);b=T(a,EA,8);null!=b&&c.b(8,b,GA);b=T(a,EA,9);null!=b&&c.b(9,b,GA);b=T(a,EA,10);null!=b&&c.b(10,b,GA);b=T(a,EA,67);null!=b&&c.b(67,b,GA);b=T(a,EA,68);null!=b&&c.b(68,b,GA)};EA.prototype.u=function(){var a=new D;GA(this,a);return F(a)};
var GA=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b)};var HA=function(a){N(this,a,"ci:cbb",-1,kda,null)};x(HA,M);var IA=function(a){N(this,a,0,-1,null,null)};x(IA,M);var JA=function(a){N(this,a,0,-1,null,null)};x(JA,M);var KA=function(a){N(this,a,0,-1,null,null)};x(KA,M);var LA=function(a){N(this,a,0,-1,lda,null)};x(LA,M);var MA=function(a){N(this,a,0,-1,null,null)};x(MA,M);var NA=function(a){N(this,a,0,-1,null,null)};x(NA,M);var OA=function(a){N(this,a,0,-1,null,null)};x(OA,M);var kda=[36];HA.prototype.u=function(){var a=new D;PA(this,a);return F(a)};
var PA=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,9);null!=b&&H(c,9,b);b=O(a,10);null!=b&&H(c,10,b);b=O(a,11);null!=b&&H(c,11,b);b=O(a,12);null!=b&&K(c,12,b);b=O(a,34);null!=b&&K(c,34,b);b=O(a,38);null!=b&&K(c,38,b);b=O(a,39);null!=b&&K(c,39,b);b=O(a,20);null!=b&&c.f(20,b);b=T(a,IA,23);null!=b&&c.b(23,b,QA);b=O(a,24);null!=b&&H(c,24,b);b=O(a,25);null!=b&&H(c,25,b);b=T(a,JA,26);null!=b&&c.b(26,b,RA);b=O(a,27);
null!=b&&K(c,27,b);b=O(a,28);null!=b&&K(c,28,b);b=O(a,29);null!=b&&K(c,29,b);b=O(a,30);null!=b&&c.f(30,b);b=O(a,31);null!=b&&c.f(31,b);b=O(a,33);null!=b&&K(c,33,b);b=T(a,KA,35);null!=b&&c.b(35,b,SA);b=O(a,36);0<b.length&&Tk(c,36,b);b=O(a,37);null!=b&&K(c,37,b);b=T(a,MA,40);null!=b&&c.b(40,b,TA);b=O(a,41);null!=b&&J(c,41,b);b=T(a,NA,42);null!=b&&c.b(42,b,UA);b=T(a,OA,43);null!=b&&c.b(43,b,VA);b=O(a,44);null!=b&&c.f(44,b);b=O(a,45);null!=b&&c.f(45,b);b=O(a,46);null!=b&&K(c,46,b)};
IA.prototype.u=function(){var a=new D;QA(this,a);return F(a)};var QA=function(a,c){var b=O(a,1);null!=b&&H(c,1,b);b=O(a,2);null!=b&&H(c,2,b);b=O(a,3);null!=b&&H(c,3,b);b=O(a,4);null!=b&&H(c,4,b);b=O(a,5);null!=b&&H(c,5,b)};JA.prototype.u=function(){var a=new D;RA(this,a);return F(a)};var RA=function(a,c){var b=O(a,1);null!=b&&H(c,1,b);b=O(a,2);null!=b&&H(c,2,b);b=O(a,3);null!=b&&H(c,3,b);b=O(a,4);null!=b&&H(c,4,b);b=O(a,5);null!=b&&H(c,5,b);b=O(a,6);null!=b&&H(c,6,b);b=O(a,7);null!=b&&H(c,7,b)};
KA.prototype.u=function(){var a=new D;SA(this,a);return F(a)};var SA=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=T(a,LA,2);null!=b&&c.b(2,b,WA)},lda=[3];LA.prototype.u=function(){var a=new D;WA(this,a);return F(a)};var WA=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);0<b.length&&Tk(c,3,b)};KA.prototype.getContent=function(){return R(this,1,1)};KA.prototype.setContent=function(a){S(this,1,a)};MA.prototype.u=function(){var a=new D;TA(this,a);return F(a)};
var TA=function(a,c){a=O(a,1);null!=a&&K(c,1,a)};NA.prototype.u=function(){var a=new D;UA(this,a);return F(a)};var UA=function(a,c){a=O(a,1);null!=a&&K(c,1,a)};OA.prototype.u=function(){var a=new D;VA(this,a);return F(a)};var VA=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b);b=O(a,5);null!=b&&c.f(5,b)};Bl("ci:cbb",HA);var XA=function(a){N(this,a,"ci:ec",-1,null,null)};x(XA,M);XA.prototype.u=function(){var a=new D;YA(this,a);return F(a)};var YA=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&I(c,2,b);b=O(a,3);null!=b&&I(c,3,b);b=O(a,4);null!=b&&K(c,4,b)};Bl("ci:ec",XA);var ZA=function(a){N(this,a,0,-1,null,null)};x(ZA,M);ZA.prototype.u=function(){var a=new D;$A(this,a);return F(a)};var $A=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&I(c,3,b);b=O(a,4);null!=b&&K(c,4,b)};var aB=function(a){N(this,a,"ci:gc",-1,null,null)};x(aB,M);aB.prototype.u=function(){var a=new D;bB(this,a);return F(a)};var bB=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&I(c,2,b);b=O(a,3);null!=b&&I(c,3,b)};Bl("ci:gc",aB);var cB=function(a){N(this,a,"ci:cpc",-1,null,null)};x(cB,M);cB.prototype.u=function(){var a=new D;dB(this,a);return F(a)};var dB=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&I(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&I(c,5,b);b=O(a,6);null!=b&&I(c,6,b);b=O(a,7);null!=b&&K(c,7,b);b=O(a,8);null!=b&&K(c,8,b);b=O(a,9);null!=b&&K(c,9,b);b=O(a,10);null!=b&&K(c,10,b)};Bl("ci:cpc",cB);var eB=function(a){N(this,a,"ci:ha:a",-1,null,null)};x(eB,M);eB.prototype.u=function(){var a=new D;fB(this,a);return F(a)};var fB=function(a,c){a=O(a,1);null!=a&&K(c,1,a)};Bl("ci:ha:a",eB);var gB=function(a){N(this,a,"ci:ha:q",-1,null,null)};x(gB,M);gB.prototype.u=function(){var a=new D;hB(this,a);return F(a)};var hB=function(a,c){a=O(a,1);null!=a&&I(c,1,a)};Bl("ci:ha:q",gB);var iB=function(a){N(this,a,"ci:ha",-1,null,null)};x(iB,M);iB.prototype.u=function(){var a=new D;jB(this,a);return F(a)};var jB=function(a,c){var b=T(a,eB,1);null!=b&&c.b(1,b,fB);b=T(a,gB,3);null!=b&&c.b(3,b,hB);b=O(a,2);null!=b&&c.f(2,b);b=O(a,4);null!=b&&K(c,4,b)};Bl("ci:ha",iB);var kB=function(a){N(this,a,"ci:hpa",-1,null,null)};x(kB,M);kB.prototype.u=function(){var a=new D;lB(this,a);return F(a)};var lB=function(a,c){a=O(a,1);null!=a&&K(c,1,a)};Bl("ci:hpa",kB);var mB=function(a){N(this,a,0,-1,null,null)};x(mB,M);var nB=function(a){N(this,a,0,-1,null,null)};x(nB,M);mB.prototype.u=function(){var a=new D;oB(this,a);return F(a)};var oB=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=T(a,nB,2);null!=b&&c.b(2,b,pB)};nB.prototype.u=function(){var a=new D;pB(this,a);return F(a)};var pB=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};mB.prototype.setApiKey=function(a){S(this,1,a)};var qB=function(a){N(this,a,"ci:csm",-1,mda,null)};x(qB,M);var rB=function(a){N(this,a,"ci:csmmc",-1,null,null)};x(rB,M);var sB=function(a){N(this,a,0,-1,nda,null)};x(sB,M);var mda=[15];qB.prototype.u=function(){var a=new D;tB(this,a);return F(a)};
var tB=function(a,c){var b=O(a,10);null!=b&&I(c,10,b);b=O(a,15);0<b.length&&Tk(c,15,b);b=T(a,rB,17,1);null!=b&&c.b(17,b,uB);b=O(a,18);null!=b&&I(c,18,b);b=O(a,19);null!=b&&I(c,19,b);b=O(a,20);null!=b&&I(c,20,b);b=O(a,21);null!=b&&I(c,21,b);b=O(a,22);null!=b&&I(c,22,b);b=T(a,sB,23);null!=b&&c.b(23,b,vB);b=O(a,24);null!=b&&I(c,24,b);b=O(a,25);null!=b&&I(c,25,b);b=O(a,26);null!=b&&I(c,26,b);b=O(a,27);null!=b&&I(c,27,b);b=O(a,28);null!=b&&I(c,28,b);b=O(a,29);null!=b&&I(c,29,b);b=O(a,30);null!=b&&I(c,
30,b);b=O(a,31);null!=b&&K(c,31,b);b=O(a,32);null!=b&&I(c,32,b);b=O(a,33);null!=b&&I(c,33,b);b=O(a,34);null!=b&&K(c,34,b)};rB.prototype.u=function(){var a=new D;uB(this,a);return F(a)};
var uB=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&I(c,2,b);b=O(a,3);null!=b&&I(c,3,b);b=O(a,4);null!=b&&I(c,4,b);b=O(a,5);null!=b&&I(c,5,b);b=O(a,6);null!=b&&I(c,6,b);b=O(a,7);null!=b&&I(c,7,b);b=O(a,8);null!=b&&I(c,8,b);b=O(a,9);null!=b&&I(c,9,b);b=O(a,24);null!=b&&I(c,24,b);b=O(a,25);null!=b&&I(c,25,b);b=O(a,26);null!=b&&c.f(26,b);b=O(a,27);null!=b&&c.f(27,b);b=O(a,28);null!=b&&c.f(28,b)};Bl("ci:csmmc",rB);var nda=[2];sB.prototype.u=function(){var a=new D;vB(this,a);return F(a)};
var vB=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);0<b.length&&Tk(c,2,b)};Bl("ci:csm",qB);var wB=function(a){N(this,a,"ci:asc",-1,null,null)};x(wB,M);wB.prototype.u=function(){var a=new D;xB(this,a);return F(a)};var xB=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&I(c,4,b);b=O(a,5);null!=b&&K(c,5,b)};Bl("ci:asc",wB);wB.prototype.getName=function(){return O(this,1)};var yB=function(a){N(this,a,"ci:cui:uss",-1,null,null)};x(yB,M);yB.prototype.u=function(){var a=new D;zB(this,a);return F(a)};var zB=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b)};Bl("ci:cui:uss",yB);yB.prototype.getName=function(){return R(this,2,"")};var AB=function(a){N(this,a,"ci:cui",-1,oda,null)};x(AB,M);var oda=[9,30];AB.prototype.u=function(){var a=new D;BB(this,a);return F(a)};
var BB=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&I(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,6);null!=b&&I(c,6,b);b=O(a,7);null!=b&&c.f(7,b);b=O(a,8);null!=b&&K(c,8,b);b=U(a,yB,9);0<b.length&&L(c,9,b,zB);b=O(a,10);null!=b&&I(c,10,b);b=O(a,11);null!=b&&I(c,11,b);b=O(a,12);null!=b&&I(c,12,b);b=O(a,13);null!=b&&I(c,13,b);b=O(a,14);null!=b&&K(c,14,b);b=O(a,15);null!=b&&K(c,15,b);b=O(a,16);null!=b&&I(c,16,b);b=O(a,17);null!=b&&K(c,
17,b);b=O(a,18);null!=b&&I(c,18,b);b=O(a,19);null!=b&&K(c,19,b);b=O(a,20);null!=b&&K(c,20,b);b=O(a,21);null!=b&&I(c,21,b);b=T(a,wB,22);null!=b&&c.b(22,b,xB);b=O(a,23);null!=b&&I(c,23,b);b=O(a,24);null!=b&&I(c,24,b);b=O(a,25);null!=b&&I(c,25,b);b=O(a,26);null!=b&&I(c,26,b);b=O(a,27);null!=b&&K(c,27,b);b=O(a,28);null!=b&&I(c,28,b);b=O(a,29);null!=b&&I(c,29,b);b=O(a,30);0<b.length&&Tk(c,30,b);b=O(a,31);null!=b&&H(c,31,b);b=O(a,32);null!=b&&H(c,32,b);b=O(a,33);null!=b&&K(c,33,b);b=O(a,34);null!=b&&I(c,
34,b);b=O(a,35);null!=b&&J(c,35,b);b=O(a,36);null!=b&&I(c,36,b);b=O(a,37);null!=b&&I(c,37,b);b=O(a,38);null!=b&&I(c,38,b)};Bl("ci:cui",AB);AB.prototype.getDeviceId=function(){return O(this,19)};var CB=function(a){N(this,a,0,-1,null,null)};x(CB,M);CB.prototype.u=function(){var a=new D;DB(this,a);return F(a)};var DB=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,6);null!=b&&K(c,6,b);b=O(a,7);null!=b&&I(c,7,b)};var EB=function(a){N(this,a,"ci:cro",-1,null,null)};x(EB,M);
EB.prototype.u=function(){var a=new D;var c=T(this,AB,1,1);null!=c&&a.b(1,c,BB);c=T(this,cB,2,1);null!=c&&a.b(2,c,dB);c=T(this,qB,3,1);null!=c&&a.b(3,c,tB);c=T(this,HA,4);null!=c&&a.b(4,c,PA);c=T(this,iB,5);null!=c&&a.b(5,c,jB);c=T(this,XA,6,1);null!=c&&a.b(6,c,YA);c=T(this,gA,7);null!=c&&a.b(7,c,sA);c=T(this,DA,8);null!=c&&a.b(8,c,FA);c=T(this,CB,9);null!=c&&a.b(9,c,DB);c=T(this,kB,10);null!=c&&a.b(10,c,lB);c=T(this,aB,11);null!=c&&a.b(11,c,bB);c=T(this,ZA,12);null!=c&&a.b(12,c,$A);c=T(this,mB,13);
null!=c&&a.b(13,c,oB);return F(a)};Bl("ci:cro",EB);var FB=function(a){EB.call(this,a);this.re="u";this.ze=!1;this.baseUrl="";this.J="channel";this.clientId="CLID"+String(Math.random()).substring(2);this.Fb="";this.version="local";this.W="WCX";this.zb=-1;this.fa="_GC_roster";this.jg=0;this.Sa=[];this.kb=[];this.qd=[];this.Ua="";this.Di=pda;this.Ae=this.ye=this.Be=!1;this.Pq=!0;this.Ab=this.Ma=this.Da=this.Ia=!1;this.startTime=0;this.T=!1;this.Wa="";this.s=this.pg=this.gj=!1;this.O="";this.Ji=!0;this.locale="en";this.hc=this.ej=this.Ce=!1;this.lc=!0;
this.xc=this.yc=this.ld=this.pd=this.Uc=this.gc=!1;this.kg=null;this.ng=!0;this.se=this.Ui=!1;this.ab=1073741824;this.lg=Infinity;this.lr=this.ua=this.Ca=this.qa=this.F=this.xe=this.te=this.ue=!1;this.pa=!0;this.bb=-1;this.da=1;this.C=!1;this.De=this.Ib="";this.ks=null;this.Vq=!0;this.qe=this.Oc=this.Gi=this.D=this.Wi=this.od=this.qb=this.mc=!1;this.Bb=null;this.Ee=this.hr=this.Zr=this.Aa=this.tg=this.tb=!1;Ia(R(T(this,cB,2,1),7,""))||(a=T(this,cB,2,1),S(a,7,""));this.h=!1;this.ha=null;this.H=this.L=
0};x(FB,EB);var GB=new Sy("prW3ub"),pda=chrome.i18n.getMessage("6686269147968642712");FB.prototype.register=function(a){null===HB(a,GB)&&a.registerService(GB,this)};
w("GoogleChat_GetConfig",function(a,c,b,d,e,f,g,k,m,p,v,A,G,E,P,ea,Va,Dc,Ec,Fa,Yc,re,Di,hA,NS,qda,rda,sda,tda,uda,vda,wda,xda,yda,zda,Ada,Bda,Cda,Dda,Eda,Fda,Gda,Hda,Ida,Jda,Kda,Lda,Mda,Nda,Oda,Pda,Qda,Rda,Sda,Tda,Uda,Vda,Wda,Xda,Yda,Zda,$da,aea,bea,cea,dea,eea,fea,gea,hea,iea,jea,kea,OS,lea,mea,Q){Q&&(Q=JSON.parse(Q));Q=new FB(Q);Q.ze=!0;Q.baseUrl=a;Q.J=c;Q.clientId=b;Q.re=d;Q.Fb=e;Q.version=f;Q.W=g;Q.zb=k;Q.fa=m;Q.jg=p;Q.Sa=v;Q.kb=A;Q.qd=G;Q.Ua=E;Q.Di=P;Q.Be="aquasar"==P||"Google-Voice"==P;Q.ye=
"hangout_lite"==P||"hangout"==P;Q.ue="ChromeOS"==P;Q.te="aChromeExtension"==P;Q.xe="gmail"==P;Q.Ae="present"==P;Q.Pq=ea;Q.Ia=Va;Q.Da=Dc;Q.Ma=Ec;Q.Ab=Fa;Q.startTime=Yc;Q.T=re;Q.Wa=Di;Q.gj=hA;Q.pg=NS;Q.s=qda;Q.O=rda;Q.Ji=sda;Q.locale=tda;Q.Ce=uda;Q.ej=vda;Q.hc=wda;Q.lc=xda;Q.gc=yda;Q.Uc=zda;Q.pd=Ada;Q.ld=Bda;Q.yc=Cda;Q.xc=Dda;Q.kg=Eda;Q.Ui=Fda;Q.ng=Gda;Q.se=Hda;Q.ab=Ida;Q.lg=Jda;Q.F=Kda;Q.qa=Lda;Q.Ca=Mda;Q.ua=Nda;Q.lr=Oda;Q.pa=Pda;Q.bb=Qda;Q.da=Rda;Q.C=Sda;Q.Ib=Tda;Q.De=Uda;Q.ks=Vda;Q.Vq=Wda;Q.mc=Xda;
Q.qb=Yda;Q.od=Zda;Q.Wi=$da;Q.D=aea;Q.Gi=bea;Q.Oc=cea;Q.qe=dea;Q.Bb=eea;Q.tb=fea;Q.tg=gea;Q.Aa=hea;Q.Zr=iea;Q.hr=jea;Q.Ee=kea;Q.h=NS||!dl(T(Q,qB,3,1),32);OS&&(Q.ha=new $z(JSON.parse(OS)));Q.L=lea||0;Q.H=mea||0;switch(P){case "docs":Q.h=!1}return Q});var IB=function(a,c){this.namespace_=a;this.f=c;this.constructor.bl||(this.constructor.bl={});this.constructor.bl[this.toString()]=this};IB.prototype.Ba=function(){return this.toString()};IB.prototype.toString=function(){this.b||(this.b="fva:"+this.f);return this.b};var JB=function(a,c){IB.call(this,a,c)};x(JB,IB);var nea=function(a){var c={},b={},d=[],e=[],f=function(p){if(!b[p]){var v=p instanceof Sy?p.Ki():[];b[p]=z(v);y(v,function(A){c[A]=c[A]||[];c[A].push(p)});v.length||d.push(p);y(v,f)}};for(y(a,f);d.length;){var g=d.shift();e.push(g);c[g]&&y(c[g],function(p){ac(b[p],g);b[p].length||d.push(p)})}var k={},m=[];y(e,function(p){p instanceof Sy&&(p=p.Ej,null==p||k[p]||(k[p]=!0,m.push(p)))});return{services:e,er:m}};var KB=new Sy("n73qwf");var oea=new Sy("pVbxBc");var MB=function(a){W.call(this);this.id=pea++;this.O=[];this.g={};this.D={};this.o={};this.f={};this.h={};this.L={};this.m=a?a.m:new Y;this.T=!a;this.j=null;a?(this.j=a,this.o=a.o,this.f=a.f,this.D=a.D,this.h=a.h):u();a=LB(this);this!=a&&(a.s?a.s.push(this):a.s=[this])};x(MB,W);var pea=1,qea=.05>Math.random(),LB=function(a){for(;a.j;)a=a.j;return a},NB=function(a,c){for(;a;){if(a==c)return!0;a=a.j}return!1};
MB.prototype.get=function(a){var c=HB(this,a);null==c&&this.W&&(c={BOGUS:"Service "+a+" was not registered"});if(null==c)throw new OB(a);return c};
var PB=function(a,c){return!(!a.g[c]&&!a.o[c])},HB=function(a,c){for(var b=a;b;b=b.j){if(b.w())throw Error("AppContext is disposed, can not get "+c+".");if(b.g[c])return b.g[c][0];if(b.L[c])break}if(b=a.o[c]){b=b(a);if(null==b)throw Error("Factory method for service "+c+" returned null or undefined.");a.registerService(c,b);return b}return null},QB=function(a,c,b){return rea(a,[c],b)[c]},rea=function(a,c,b){var d=RB(a),e=!b;b={};for(var f=[],g=[],k={},m={},p=HB(a,oea),v=0;v<c.length;v++){var A=c[v],
G=HB(a,A);if(G){var E=new Vy;b[A]=E;G.ui&&(dz(E,G.ui()),bz(E,db(function(ea){return ea},G)));E.callback(G)}else if(a.h[A])E=a.h[A].w(),bz(E,t(a.Pi,a,A)),b[A]=E;else{if(A instanceof Sy)var P=nea([A]).er;else(G=a.D[A])&&(P=[G]);!e||P&&P.length?(P&&(p&&A instanceof Sy&&p.VA()&&(qea&&(E=p.XA(sea),m[A]=E),p.OA(A)),f.push.apply(f,P),k[A]=Ib(P)),g.push(A)):(E=new Vy,b[A]=E,E.b(new OB(A)))}}if(e){if(f.length){a.C&&0<Mb(f,function(ea){return!SB(d,ea)}).length&&a.C.push(new TB);for(v=0;v<g.length;v++)a.m.N(new UB("v",
g[v]));c=VB(RB(a),f,void 0);for(v=0;v<g.length;v++)A=g[v],G=k[A],f=c[G],E=f instanceof Vy?f.w():Nca(f),b[A]=E,m[A]&&bz(E,function(){p.GA(m[A])}),tea(a,E,A,G)}}else for(v=0;v<g.length;v++)A=g[v],G=f[v],E=new Vy(t(a.H,a,A)),b[A]=E,(k=a.f[A])||(a.f[A]=k=[]),G&&uea(a,E,A,G),bz(E,t(a.Qi,a,A,G)),k.push({ya:a,d:E});return b},uea=function(a,c,b,d){bz(c,function(){var e=RB(this);this.C&&this.C.push(new TB);return e.load(d)},a);cz(c,t(a.Ol,a,b,d))},tea=function(a,c,b,d){bz(c,function(){this.m.N(new UB("w",
b))},a);cz(c,t(a.Ol,a,b,d));bz(c,t(a.Qi,a,b,d))};h=MB.prototype;h.Qi=function(a,c){var b=HB(this,a);if(null==b){if(this.h[a]){var d=this.h[a].w();bz(d,t(this.Qi,this,a,c));return d}throw new WB(a,c,"Module loaded but service or factory not registered with app contexts.");}return b.ui?(d=new Vy,dz(d,b.ui()),d.callback(b),bz(d,t(this.Pi,this,a)),d):this.Pi(a)};h.Pi=function(a){this.h[a]&&delete this.h[a];return this.get(a)};h.Ol=function(a,c,b){return b instanceof Wy?b:new XB(a,c,b)};
h.registerService=function(a,c,b){if(this.w())b||Yt(c);else{this.O.push(a);this.g[a]=[c,!b];b=vea(this,this,a);for(var d=0;d<b.length;d++)b[d].callback(null);delete this.D[a];return c}};h.unregisterService=function(a){if(!this.g[a])throw Error('Service for "'+a+'" is not registered');var c=this.g[a];delete this.g[a];c[1]&&Yt(c[0])};
var YB=function(a,c,b){a.o[c]=b;if(b=a.f[c]){if(1<b.length){for(var d=0;d<b.length;++d)b[d].index=d;b.sort(wea)}for(;b.length;)b.shift().d.callback(null);delete a.f[c]}},wea=function(a,c){if(a.ya!=c.ya){if(NB(a.ya,c.ya))return 1;if(NB(c.ya,a.ya))return-1}return a.index<c.index?-1:a.index==c.index?0:1},vea=function(a,c,b){var d=[],e=a.f[b];e&&(Lb(e,function(f){NB(f.ya,c)&&(d.push(f.d),ac(e,f))}),0==e.length&&delete a.f[b]);return d},xea=function(a,c){a.f&&yc(a.f,function(b,d,e){Lb(b,function(f){f.ya==
c&&ac(b,f)});0==b.length&&delete e[d]})};MB.prototype.H=function(a,c){var b=this.f&&this.f[a];if(b){for(var d=0;d<b.length;++d)if(b[d].ya==this&&b[d].d==c){$b(b,d);break}0==b.length&&delete this.f[a]}};
MB.prototype.ia=function(){if(LB(this)==this){var a=this.s;if(a)for(;a.length;)a[0].Za()}else{a=LB(this).s;for(var c=0;c<a.length;c++)if(a[c]==this){a.splice(c,1);break}}for(var b in this.g)a=this.g[b],a[1]&&a[0].Za&&a[0].Za();this.g=null;this.T&&this.m.Za();xea(this,this);this.f=null;Yt(this.J);this.L=this.J=null;MB.Ga.ia.call(this)};
var RB=function(a){return a.F?a.F:a.j?RB(a.j):null},yea=function(a){!ZB&&$B&&(ZB=$B());a.F=ZB},OB=function(a){Eb.call(this);this.id=a;this.message='Service for "'+a+'" is not registered'};x(OB,Eb);var XB=function(a,c,b){Eb.call(this);this.cause=b;this.message='Module "'+c+'" failed to load when requesting the service "'+a+'" [cause: '+b+"]";this.stack=b.stack+"\nWRAPPED BY:\n"+this.stack};x(XB,Eb);
var WB=function(a,c,b){Eb.call(this);this.message='Configuration error when loading the module "'+c+'" for the service "'+a+'": '+b};x(WB,Eb);var TB=function(){sf()},UB=function(a){X.call(this,a)};x(UB,X);var sea=new JB(new function(){},1);var aC={ao:["BC","AD"],Zn:["Before Christ","Anno Domini"],qo:"JFMAMJJASOND".split(""),Ro:"JFMAMJJASOND".split(""),no:"January February March April May June July August September October November December".split(" "),Qo:"January February March April May June July August September October November December".split(" "),Mo:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),To:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),rp:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Vo:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Oo:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Uo:"Sun Mon Tue Wed Thu Fri Sat".split(" "),lx:"SMTWTFS".split(""),So:"SMTWTFS".split(""),No:["Q1","Q2","Q3","Q4"],xo:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Jn:["AM","PM"],Uu:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],Qz:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],Vu:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],zk:6,sA:[5,6],Ak:5},bC=aC;
bC=aC;var cC=function(a,c,b,d,e){a=new Date(a,c,b);e=e||0;return a.valueOf()+864E5*(((Ia(d)?d:3)-e+7)%7-((a.getDay()+6)%7-e+7)%7)};var dC=function(){this.f=this.s=null;this.C=this.g=this.H=this.D=this.F=0;this.L=1;this.b=this.m=this.w=this.j=this.h=this.o=this.J=0},eC=function(a,c){null==a.s&&(a.s=c);var b=u();null!=a.f&&a.D+c.getTime()<a.f.getTime()&&(a.D=a.f.getTime()+(b-a.F)-c.getTime());a.f=new Date(c.getTime()+a.D);a.F=b},zea=function(a){return null!=a.f&&null!=a.s?(a.f.getTime()-a.s.getTime())/1E3:-1};
dC.prototype.toJson=function(){return{jmiVersion:3,numOfProcessors:this.L,totalCpuUsage:this.J,tabCpuUsage:this.b?this.o/this.b:null,browserCpuUsage:this.b?this.h/this.b:null,gpuCpuUsage:this.b?this.j/this.b:null,tabJsMemoryAllocated:this.b?this.w/this.b:null,tabJsMemoryUsed:this.b?this.m/this.b:null}};var fC=function(a){N(this,a,0,-1,null,null)};x(fC,M);fC.prototype.u=function(){var a=new D;gC(this,a);return F(a)};var gC=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&J(c,3,b);b=O(a,4);null!=b&&J(c,4,b)};fC.prototype.Ub=function(){return O(this,2)};var hC=function(a){N(this,a,0,-1,null,null)};x(hC,M);hC.prototype.u=function(){var a=new D;iC(this,a);return F(a)};var iC=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b);b=O(a,5);null!=b&&c.f(5,b)};hC.prototype.sa=function(){return O(this,5)};var jC=function(a){N(this,a,0,-1,null,null)};x(jC,M);jC.prototype.u=function(){var a=new D;kC(this,a);return F(a)};var kC=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=T(a,hC,3);null!=b&&c.b(3,b,iC);b=T(a,hC,4);null!=b&&c.b(4,b,iC)};var lC=function(a){N(this,a,0,-1,null,null)};x(lC,M);lC.prototype.u=function(){var a=new D;mC(this,a);return F(a)};var mC=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b);b=O(a,5);null!=b&&H(c,5,b);b=O(a,6);null!=b&&H(c,6,b);b=O(a,9);null!=b&&Lk(c,9,b);b=O(a,10);null!=b&&Lk(c,10,b)};var nC=function(a){N(this,a,0,-1,null,null)};x(nC,M);nC.prototype.u=function(){var a=new D;oC(this,a);return F(a)};var oC=function(a,c){var b=a.getSeconds();0!==b&&H(c,1,b);b=R(a,2,0);0!==b&&c.f(2,b)};nC.prototype.getSeconds=function(){return R(this,1,0)};nC.prototype.setSeconds=function(a){kl(this,1,a,0)};var pC=function(a){N(this,a,0,-1,null,null)};x(pC,M);pC.prototype.u=function(){var a=new D;qC(this,a);return F(a)};var qC=function(a,c){var b=a.getSeconds();0!==b&&H(c,1,b);b=R(a,2,0);0!==b&&c.f(2,b)};pC.prototype.getSeconds=function(){return R(this,1,0)};pC.prototype.setSeconds=function(a){kl(this,1,a,0)};var rC=function(a){N(this,a,0,-1,null,null)};x(rC,M);rC.prototype.u=function(){var a=new D;sC(this,a);return F(a)};var sC=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b);b=O(a,5);null!=b&&c.f(5,b);b=O(a,6);null!=b&&c.f(6,b)};var tC=function(a){N(this,a,0,-1,null,null)};x(tC,M);tC.prototype.u=function(){var a=new D;uC(this,a);return F(a)};var uC=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b);b=O(a,5);null!=b&&c.f(5,b);b=O(a,6);null!=b&&c.f(6,b);b=O(a,7);null!=b&&c.f(7,b)};var vC=function(a){N(this,a,0,-1,null,null)};x(vC,M);vC.prototype.u=function(){var a=new D;wC(this,a);return F(a)};var wC=function(a,c){var b=T(a,pC,1);null!=b&&c.b(1,b,qC);b=T(a,pC,2);null!=b&&c.b(2,b,qC);b=O(a,3);null!=b&&Lk(c,3,b);b=O(a,4);null!=b&&c.f(4,b);b=O(a,5);null!=b&&c.f(5,b);b=O(a,6);null!=b&&Lk(c,6,b);b=O(a,7);null!=b&&Lk(c,7,b)};var xC=function(a){N(this,a,0,-1,Aea,null)};x(xC,M);var Aea=[20];xC.prototype.u=function(){var a=new D;yC(this,a);return F(a)};
var yC=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&Lk(c,2,b);b=O(a,3);null!=b&&Lk(c,3,b);b=O(a,4);null!=b&&Lk(c,4,b);b=O(a,5);null!=b&&Lk(c,5,b);b=O(a,6);null!=b&&Lk(c,6,b);b=T(a,pC,7);null!=b&&c.b(7,b,qC);b=T(a,pC,8);null!=b&&c.b(8,b,qC);b=O(a,9);null!=b&&H(c,9,b);b=O(a,10);null!=b&&H(c,10,b);b=O(a,11);null!=b&&Mk(c,11,b);b=O(a,12);null!=b&&c.f(12,b);b=T(a,pC,13);null!=b&&c.b(13,b,qC);b=T(a,pC,14);null!=b&&c.b(14,b,qC);b=O(a,15);null!=b&&Lk(c,15,b);b=T(a,rC,17);null!=b&&c.b(17,
b,sC);b=T(a,vC,18);null!=b&&c.b(18,b,wC);b=T(a,tC,19);null!=b&&c.b(19,b,uC);b=el(a,20);if(0<b.length&&null!=b)for(var d=0;d<b.length;d++)Lk(c,20,b[d]);b=O(a,21);null!=b&&c.f(21,b);b=O(a,22);null!=b&&H(c,22,b)};var zC=function(a){N(this,a,0,-1,null,null)};x(zC,M);zC.prototype.u=function(){var a=new D;AC(this,a);return F(a)};var AC=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&c.f(3,b)};zC.prototype.za=function(a){S(this,1,a)};var BC=function(a){N(this,a,0,-1,null,null)};x(BC,M);BC.prototype.u=function(){var a=new D;CC(this,a);return F(a)};var CC=function(a,c){var b=O(a,1);null!=b&&H(c,1,b);b=O(a,2);null!=b&&H(c,2,b);b=O(a,4);null!=b&&J(c,4,b);b=O(a,5);null!=b&&J(c,5,b);b=O(a,6);null!=b&&J(c,6,b);b=T(a,pC,7);null!=b&&c.b(7,b,qC)};BC.prototype.getState=function(){return O(this,6)};BC.prototype.lb=function(a){S(this,6,a)};var DC=function(a){N(this,a,0,-1,null,null)};x(DC,M);DC.prototype.u=function(){var a=new D;EC(this,a);return F(a)};var EC=function(a,c){var b=O(a,1);null!=b&&Nk(c,1,b);b=O(a,2);null!=b&&c.h(2,b)};DC.prototype.Sb=function(){return O(this,1)};DC.prototype.xb=function(){return O(this,2)};var FC=function(a){N(this,a,0,-1,null,null)};x(FC,M);FC.prototype.u=function(){var a=new D;GC(this,a);return F(a)};var GC=function(a,c){a=O(a,1);null!=a&&c.f(1,a)};var HC=function(a){N(this,a,0,-1,null,Bea)};x(HC,M);var Bea=[[6]];HC.prototype.u=function(){var a=new D;IC(this,a);return F(a)};var IC=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&H(c,3,b);b=T(a,FC,6);null!=b&&c.b(6,b,GC)};var JC=function(a){N(this,a,0,-1,Cea,null)};x(JC,M);var Cea=[1];JC.prototype.u=function(){var a=new D;KC(this,a);return F(a)};var KC=function(a,c){var b=U(a,HC,1);0<b.length&&L(c,1,b,IC);b=T(a,DC,2);null!=b&&c.b(2,b,EC);b=T(a,DC,3);null!=b&&c.b(3,b,EC);b=O(a,4);null!=b&&J(c,4,b);b=T(a,BC,5);null!=b&&c.b(5,b,CC)};var LC=function(a){N(this,a,0,-1,null,null)};x(LC,M);LC.prototype.u=function(){var a=new D;MC(this,a);return F(a)};var MC=function(a,c){var b=O(a,1);null!=b&&c.h(1,b);b=O(a,2);null!=b&&Kk(c,2,b);a.b||(a.b={});b=3 in a.b?a.b[3]:void 0;var d;if(d=b){d=b.b;var e=[],f;for(f in d)Object.prototype.hasOwnProperty.call(d,f)&&e.push(f);d=0<e.length}d&&b.u(3,c,D.prototype.h,D.prototype.f);b=O(a,4);null!=b&&c.f(4,b);b=T(a,pC,5);null!=b&&c.b(5,b,qC)};var OC=function(a){N(this,a,0,-1,Dea,NC)};x(OC,M);var Dea=[6],NC=[[1,2]];OC.prototype.u=function(){var a=new D;PC(this,a);return F(a)};var PC=function(a,c){var b=T(a,zC,1);null!=b&&c.b(1,b,AC);b=O(a,2);null!=b&&K(c,2,b);b=T(a,nC,3);null!=b&&c.b(3,b,oC);b=O(a,4);null!=b&&J(c,4,b);b=O(a,5);null!=b&&J(c,5,b);b=U(a,JC,6);0<b.length&&L(c,6,b,KC);b=T(a,LC,7);null!=b&&c.b(7,b,MC);b=T(a,xC,8);null!=b&&c.b(8,b,yC)};OC.prototype.za=function(a){nl(this,2,NC[0],a)};var QC=function(a){N(this,a,0,-1,Eea,null)};x(QC,M);var RC=function(a){N(this,a,0,-1,Fea,null)};x(RC,M);var SC=function(a){N(this,a,0,-1,Gea,null)};x(SC,M);var TC=function(a){N(this,a,0,-1,null,null)};x(TC,M);var UC=function(a){N(this,a,0,-1,Hea,null)};x(UC,M);var VC=function(a){N(this,a,0,-1,Iea,null)};x(VC,M);var WC=function(a){N(this,a,0,-1,null,null)};x(WC,M);var XC=function(a){N(this,a,0,-1,Jea,null)};x(XC,M);var YC=function(a){N(this,a,0,-1,Kea,null)};x(YC,M);
var ZC=function(a){N(this,a,0,-1,null,null)};x(ZC,M);var $C=function(a){N(this,a,0,-1,null,null)};x($C,M);var aD=function(a){N(this,a,0,-1,Lea,null)};x(aD,M);var bD=function(a){N(this,a,0,-1,null,null)};x(bD,M);var Eea=[5,52,182];QC.prototype.u=function(){var a=new D;cD(this,a);return F(a)};
var cD=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,133);null!=b&&H(c,133,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,105);null!=b&&J(c,105,b);b=O(a,107);null!=b&&H(c,107,b);b=O(a,104);null!=b&&H(c,104,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,43);null!=b&&K(c,43,b);b=U(a,RC,5);0<b.length&&Vk(c,5,b,dD);b=O(a,28);null!=b&&I(c,28,b);b=O(a,29);null!=b&&c.f(29,b);b=O(a,30);null!=b&&c.f(30,b);b=O(a,112);null!=b&&K(c,112,b);b=O(a,106);null!=b&&c.f(106,b);b=O(a,100);null!=b&&K(c,100,b);
b=O(a,68);null!=b&&c.f(68,b);b=T(a,$C,69);null!=b&&c.b(69,b,eD);b=O(a,42);null!=b&&H(c,42,b);b=U(a,aD,52);0<b.length&&L(c,52,b,fD);b=T(a,bD,135);null!=b&&c.b(135,b,gD);b=O(a,170);null!=b&&J(c,170,b);b=U(a,OC,182);0<b.length&&L(c,182,b,PC)},Fea=[2,13,154];RC.prototype.u=function(){var a=new D;dD(this,a);return F(a)};
var dD=function(a,c){var b=O(a,1);null!=b&&c.f(6,b);b=O(a,113);null!=b&&c.f(118,b);b=O(a,118);null!=b&&c.f(123,b);b=O(a,162);null!=b&&J(c,167,b);b=O(a,174);null!=b&&J(c,179,b);b=hD(a);0<b.length&&Vk(c,7,b,iD);b=jD(a);0<b.length&&Vk(c,18,b,kD);b=O(a,34);null!=b&&c.f(39,b);b=O(a,92);null!=b&&c.f(97,b);b=O(a,94);null!=b&&c.f(99,b);b=O(a,93);null!=b&&c.f(98,b);b=O(a,35);null!=b&&c.f(40,b);b=O(a,36);null!=b&&c.f(41,b);b=O(a,54);null!=b&&c.f(59,b);b=O(a,66);null!=b&&J(c,71,b);b=O(a,71);null!=b&&Lk(c,76,
b);b=O(a,72);null!=b&&c.f(77,b);b=O(a,73);null!=b&&c.f(78,b);b=O(a,74);null!=b&&I(c,79,b);b=O(a,75);null!=b&&c.f(80,b);b=T(a,XC,129);null!=b&&c.b(134,b,lD);b=O(a,150);null!=b&&H(c,155,b);b=O(a,151);null!=b&&H(c,156,b);b=U(a,lC,154);0<b.length&&L(c,159,b,mC);b=T(a,ZC,183);null!=b&&c.b(188,b,mD)},Gea=[169,178,153,53,136,54,174,176,157,158,135,141,142,150];SC.prototype.u=function(){var a=new D;iD(this,a);return F(a)};
var iD=function(a,c){var b=O(a,1);null!=b&&J(c,8,b);b=O(a,169);0<b.length&&Tk(c,176,b);b=O(a,2);null!=b&&c.f(9,b);b=O(a,3);null!=b&&c.f(10,b);b=O(a,4);null!=b&&c.f(11,b);b=O(a,5);null!=b&&c.f(12,b);b=O(a,6);null!=b&&c.f(13,b);b=O(a,178);0<b.length&&Wk(c,185,b);b=O(a,7);null!=b&&H(c,14,b);b=O(a,8);null!=b&&c.f(15,b);b=O(a,9);null!=b&&H(c,16,b);b=O(a,10);null!=b&&c.f(17,b);b=O(a,24);null!=b&&J(c,31,b);b=O(a,184);null!=b&&J(c,191,b);b=O(a,185);null!=b&&c.f(192,b);b=O(a,25);null!=b&&Kk(c,32,b);b=O(a,
117);null!=b&&Lk(c,124,b);b=O(a,26);null!=b&&c.f(33,b);b=T(a,hC,140);null!=b&&c.b(147,b,iC);b=O(a,27);null!=b&&c.f(34,b);b=O(a,151);null!=b&&c.f(158,b);b=O(a,28);null!=b&&c.f(35,b);b=O(a,29);null!=b&&c.f(36,b);b=O(a,30);null!=b&&c.f(37,b);b=O(a,31);null!=b&&c.f(38,b);b=O(a,50);null!=b&&Lk(c,57,b);b=O(a,87);null!=b&&Lk(c,94,b);b=O(a,51);null!=b&&Lk(c,58,b);b=O(a,88);null!=b&&Lk(c,95,b);b=O(a,37);null!=b&&c.f(44,b);b=O(a,38);null!=b&&c.f(45,b);b=O(a,39);null!=b&&c.f(46,b);b=O(a,40);null!=b&&c.f(47,
b);b=O(a,41);null!=b&&c.f(48,b);b=O(a,42);null!=b&&c.f(49,b);b=O(a,43);null!=b&&c.f(50,b);b=O(a,124);null!=b&&c.f(131,b);b=O(a,125);null!=b&&c.f(132,b);b=O(a,96);null!=b&&c.f(103,b);b=O(a,80);null!=b&&c.f(87,b);b=O(a,44);null!=b&&K(c,51,b);b=O(a,94);null!=b&&K(c,101,b);b=O(a,143);null!=b&&K(c,150,b);b=O(a,46);null!=b&&c.f(53,b);b=O(a,47);null!=b&&c.f(54,b);b=O(a,48);null!=b&&c.f(55,b);b=O(a,49);null!=b&&c.f(56,b);b=O(a,63);null!=b&&Lk(c,70,b);b=O(a,129);null!=b&&Lk(c,136,b);b=O(a,133);null!=b&&Lk(c,
140,b);b=O(a,153);0<b.length&&Wk(c,160,b);b=O(a,154);null!=b&&c.f(161,b);b=O(a,155);null!=b&&H(c,162,b);b=nD(a);0<b.length&&Rk(c,60,b);b=U(a,TC,136);0<b.length&&L(c,143,b,oD);b=U(a,UC,54);0<b.length&&Vk(c,61,b,pD);b=O(a,174);0<b.length&&Tk(c,181,b);b=U(a,YC,176);0<b.length&&L(c,183,b,qD);b=O(a,57);null!=b&&c.f(64,b);b=O(a,58);null!=b&&c.f(65,b);b=O(a,144);null!=b&&c.f(151,b);b=O(a,145);null!=b&&c.f(152,b);b=O(a,114);null!=b&&c.f(121,b);b=O(a,115);null!=b&&c.f(122,b);b=O(a,159);null!=b&&c.f(166,b);
b=O(a,113);null!=b&&c.f(120,b);b=O(a,139);null!=b&&c.f(146,b);b=O(a,78);null!=b&&c.f(85,b);b=O(a,79);null!=b&&c.f(86,b);b=O(a,59);null!=b&&I(c,66,b);b=O(a,173);null!=b&&J(c,180,b);b=O(a,60);null!=b&&I(c,67,b);b=O(a,65);null!=b&&c.f(72,b);b=O(a,95);null!=b&&c.f(102,b);b=O(a,68);null!=b&&Lk(c,75,b);b=O(a,103);null!=b&&Lk(c,110,b);b=O(a,106);null!=b&&Lk(c,113,b);b=O(a,107);null!=b&&Lk(c,114,b);b=O(a,104);null!=b&&Lk(c,111,b);b=O(a,156);null!=b&&Lk(c,163,b);b=el(a,157);if(0<b.length&&null!=b&&b.length){Ek(c,
164,2);Bk(c.g,4*b.length);for(var d=0;d<b.length;d++){var e=c.g;Zj(b[d]);Dk(e,Wj)}}b=O(a,158);0<b.length&&Wk(c,165,b);b=O(a,74);null!=b&&c.f(81,b);b=O(a,165);null!=b&&H(c,172,b);b=O(a,170);null!=b&&Mk(c,177,b);b=O(a,171);null!=b&&H(c,178,b);b=O(a,166);null!=b&&H(c,173,b);b=O(a,167);null!=b&&H(c,174,b);b=O(a,168);null!=b&&H(c,175,b);b=O(a,75);null!=b&&c.f(82,b);b=O(a,76);null!=b&&c.f(83,b);b=O(a,77);null!=b&&c.f(84,b);b=O(a,81);null!=b&&c.f(88,b);b=O(a,82);null!=b&&c.f(89,b);b=O(a,83);null!=b&&c.f(90,
b);b=O(a,84);null!=b&&c.f(91,b);b=O(a,85);null!=b&&c.f(92,b);b=O(a,86);null!=b&&c.f(93,b);b=O(a,134);null!=b&&c.f(141,b);b=O(a,89);null!=b&&c.f(96,b);b=O(a,112);null!=b&&c.f(119,b);b=O(a,118);null!=b&&c.f(125,b);b=O(a,119);null!=b&&c.f(126,b);b=T(a,hC,132);null!=b&&c.b(139,b,iC);b=T(a,hC,120);null!=b&&c.b(127,b,iC);b=T(a,hC,121);null!=b&&c.b(128,b,iC);b=T(a,hC,146);null!=b&&c.b(153,b,iC);b=T(a,hC,122);null!=b&&c.b(129,b,iC);b=T(a,hC,123);null!=b&&c.b(130,b,iC);b=T(a,hC,147);null!=b&&c.b(154,b,iC);
b=O(a,138);null!=b&&c.f(145,b);b=T(a,hC,137);null!=b&&c.b(144,b,iC);b=O(a,108);null!=b&&c.f(115,b);b=O(a,109);null!=b&&c.f(116,b);b=O(a,110);null!=b&&c.f(117,b);b=O(a,130);null!=b&&H(c,137,b);b=O(a,131);null!=b&&H(c,138,b);b=O(a,182);null!=b&&c.f(189,b);b=O(a,183);null!=b&&c.f(190,b);b=O(a,135);0<b.length&&Ok(c,142,b);b=O(a,141);0<b.length&&Ok(c,148,b);b=O(a,142);0<b.length&&Ok(c,149,b);b=O(a,150);0<b.length&&Ok(c,157,b);b=T(a,jC,180);null!=b&&c.b(187,b,kC)};
TC.prototype.u=function(){var a=new D;oD(this,a);return F(a)};var oD=function(a,c){var b=O(a,1);null!=b&&H(c,1,b);b=O(a,2);null!=b&&H(c,2,b);b=O(a,3);null!=b&&Kk(c,3,b)},Hea=[2];UC.prototype.u=function(){var a=new D;pD(this,a);return F(a)};var pD=function(a,c){var b=O(a,1);null!=b&&K(c,62,b);b=O(a,2);0<b.length&&Rk(c,63,b)},rD=function(a){return O(a,1)},sD=function(a){return O(a,24)};SC.prototype.jf=function(a){S(this,184,a)};SC.prototype.C=function(a){V(this,140,a)};
var tD=function(a,c){S(a,29,c)},uD=function(a,c){S(a,42,c)},vD=function(a,c){S(a,96,c)},nD=function(a){return O(a,53)},wD=function(a,c){S(a,53,c||[])},xD=function(a,c){S(a,59,c)};h=SC.prototype;h.ak=function(a){S(this,68,a)};h.gk=function(a){S(this,103,a)};h.ck=function(a){S(this,106,a)};h.Yj=function(a){S(this,107,a)};h.ek=function(a){S(this,104,a)};h.fk=function(a){S(this,156,a)};h.ht=function(a){S(this,157,a||[])};h.Zs=function(a){S(this,158,a||[])};h.bt=function(a){V(this,132,a)};
h.Ys=function(a){V(this,121,a)};h.gt=function(a){V(this,146,a)};h.Xs=function(a){V(this,122,a)};h.ct=function(a){V(this,147,a)};h.at=function(a){V(this,137,a)};var Iea=[168,175];VC.prototype.u=function(){var a=new D;kD(this,a);return F(a)};
var kD=function(a,c){var b=O(a,1);null!=b&&c.f(19,b);b=O(a,2);null!=b&&c.f(20,b);b=O(a,3);null!=b&&c.f(21,b);b=O(a,168);0<b.length&&Wk(c,186,b);b=O(a,4);null!=b&&H(c,22,b);b=O(a,5);null!=b&&c.f(23,b);b=O(a,90);null!=b&&c.f(108,b);b=O(a,91);null!=b&&c.f(109,b);b=O(a,6);null!=b&&H(c,24,b);b=O(a,7);null!=b&&c.f(25,b);b=O(a,150);null!=b&&c.f(168,b);b=O(a,151);null!=b&&c.f(169,b);b=O(a,153);null!=b&&c.f(171,b);b=T(a,fC,8,1);null!=b&&c.b(26,b,gC);b=T(a,fC,9,1);null!=b&&c.b(27,b,gC);b=O(a,55);null!=b&&c.f(73,
b);b=T(a,WC,56);null!=b&&c.b(74,b,yD);b=U(a,YC,175);0<b.length&&L(c,193,b,qD)};WC.prototype.u=function(){var a=new D;yD(this,a);return F(a)};var yD=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b)},Jea=[3];XC.prototype.u=function(){var a=new D;lD(this,a);return F(a)};var lD=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);0<b.length&&Ok(c,3,b)},Kea=[1];
YC.prototype.u=function(){var a=new D;qD(this,a);return F(a)};var qD=function(a,c){var b=O(a,1);0<b.length&&Tk(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};ZC.prototype.u=function(){var a=new D;mD(this,a);return F(a)};var mD=function(a,c){a=O(a,1);null!=a&&I(c,1,a)},hD=function(a){return U(a,SC,2)},zD=function(a,c){rl(a,2,c)},jD=function(a){return U(a,VC,13)};$C.prototype.u=function(){var a=new D;eD(this,a);return F(a)};
var eD=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&H(c,2,b)},Lea=[3,4];aD.prototype.u=function(){var a=new D;fD(this,a);return F(a)};var fD=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);0<b.length&&Rk(c,3,b);b=O(a,4);0<b.length&&Rk(c,4,b)};bD.prototype.u=function(){var a=new D;gD(this,a);return F(a)};var gD=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&J(c,2,b)};var Mea=new Date(0)-new Date("1900/01/01 00:00 GMT"),Oea=function(a,c,b){c&&(Hc(a,"googFrameWidthSent")&&(a.googFrameWidthSent=0),Hc(a,"googFrameHeightSent")&&(a.googFrameHeightSent=0));c=Number(a.ssrc);if(null!=c){var d=a.googCaptureStartNtpTimeMs;if(null!=d&&0<d){var e=b.getCurrentTime(c);null!=e&&(d=d-Mea+1E3*e,a.oneWayDelayMs=u()-d)}null!=a.bytesReceived&&(d=Nea(b,c),null!=d&&(null!=d.Rl&&(a.fpsGraphicsInput=d.Rl),null!=d.Sl&&(a.fpsGraphicsOutput=d.Sl)));d=0;e=a.googCpuLimitedResolution;var f=
a.googBandwidthLimitedResolution,g=a.googViewLimitedResolution;if(null!=e||null!=f||null!=g)"true"==e&&(d|=1),"true"==f&&(d|=2),"true"==g&&(d|=4),a.googAdaptationReason=d;if(!r(a.googInterframeDelayMax)||isNaN(a.googInterframeDelayMax))b=AD(b,c),null!=b&&(a.googInterframeDelayMax=b)}};var Pea=new Jm("wduck","googDucking","audio_echo_cancellation","googEchoCancellation","audio_echo_cancellation_delay_correction","googEchoCancellation2","audio_auto_gain_control","googAutoGainControl","internal_audio_auto_gain_control","googAutoGainControl2","audio_noise_suppression","googNoiseSuppression","audio_highpass_filter","googHighpassFilter","audio_stereo_swapping","googAudioMirroring","audio_transient_suppression","googNoiseSuppression2");new Fn(Pea.wb());var Qea=new Jm("vnr","googNoiseReduction");
new Fn(["vnr"]);new Fn(Qea.wb());var BD=new Sy("bBNFlf","bm"),CD=new Sy("FolmWb","dlh"),DD=new Sy("EitxU","hl"),ED=new Sy("T3bcCc","hl"),FD=new Sy("QFLvic","ma"),GD=new Sy("TjR1Nb","ma",[KB]),HD=new Sy("X8Krae","hl"),ID=new Sy("p639qc","rrm"),JD=new Sy("DwUuJb","rsr"),KD=new Sy("YZ7tye","ma"),LD=new Sy("T2hLvb","he"),MD=new Sy("jMMyYe","prs"),ND=new Sy("uZXhye","lu");var OD=function(a){N(this,a,0,-1,null,null)};x(OD,M);OD.prototype.u=function(){var a=new D;PD(this,a);return F(a)};var PD=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&H(c,3,b)};var QD=function(a){N(this,a,"azvep",-1,null,null)};x(QD,M);QD.prototype.u=function(){var a=new D;RD(this,a);return F(a)};
var RD=function(a,c){var b=O(a,1);null!=b&&Lk(c,1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&Lk(c,3,b);b=O(a,4);null!=b&&Lk(c,4,b);b=O(a,5);null!=b&&Lk(c,5,b);b=O(a,6);null!=b&&c.f(6,b);b=O(a,7);null!=b&&Lk(c,7,b);b=O(a,8);null!=b&&Lk(c,8,b);b=O(a,9);null!=b&&Lk(c,9,b);b=O(a,10);null!=b&&Lk(c,10,b);b=O(a,11);null!=b&&Lk(c,11,b);b=O(a,12);null!=b&&Lk(c,12,b);b=O(a,13);null!=b&&Lk(c,13,b);b=O(a,14);null!=b&&Lk(c,14,b);b=O(a,15);null!=b&&c.f(15,b);b=O(a,16);null!=b&&c.f(16,b);b=O(a,29);null!=b&&
c.f(29,b);b=O(a,17);null!=b&&c.f(17,b);b=O(a,22);null!=b&&c.f(22,b);b=O(a,23);null!=b&&c.f(23,b);b=O(a,24);null!=b&&c.f(24,b);b=O(a,25);null!=b&&c.f(25,b);b=O(a,26);null!=b&&c.f(26,b);b=O(a,27);null!=b&&c.f(27,b);b=O(a,28);null!=b&&Lk(c,28,b);b=O(a,18);null!=b&&Lk(c,18,b);b=O(a,19);null!=b&&Lk(c,19,b);b=O(a,20);null!=b&&Lk(c,20,b);b=O(a,21);null!=b&&I(c,21,b)};Bl("azvep",QD);var SD=function(a){N(this,a,0,-1,Rea,null)};x(SD,M);var TD=function(a){N(this,a,0,-1,null,null)};x(TD,M);var UD=function(a){N(this,a,0,-1,null,null)};x(UD,M);var VD=function(a){N(this,a,0,-1,null,null)};x(VD,M);var WD=function(a){N(this,a,0,-1,null,null)};x(WD,M);var XD=function(a){N(this,a,0,-1,null,null)};x(XD,M);var YD=function(a){N(this,a,0,-1,null,null)};x(YD,M);var Rea=[4,5,8];SD.prototype.u=function(){var a=new D;ZD(this,a);return F(a)};
var ZD=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=T(a,TD,2);null!=b&&c.b(2,b,$D);b=O(a,3);null!=b&&c.f(3,b);b=U(a,UD,4);0<b.length&&L(c,4,b,aE);b=U(a,VD,5);0<b.length&&L(c,5,b,bE);b=T(a,QD,6);null!=b&&c.b(6,b,RD);b=T(a,OD,7);null!=b&&c.b(7,b,PD);b=U(a,WD,8);0<b.length&&L(c,8,b,cE);b=a.getMetadata();null!=b&&c.b(9,b,dE);b=O(a,10);null!=b&&H(c,10,b);b=T(a,TD,11);null!=b&&c.b(11,b,$D);b=T(a,YD,12);null!=b&&c.b(12,b,eE)};TD.prototype.u=function(){var a=new D;$D(this,a);return F(a)};
var $D=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&Lk(c,2,b);b=O(a,3);null!=b&&Lk(c,3,b);b=O(a,4);null!=b&&Lk(c,4,b);b=O(a,5);null!=b&&Lk(c,5,b)};UD.prototype.u=function(){var a=new D;aE(this,a);return F(a)};var aE=function(a,c){var b=T(a,TD,1);null!=b&&c.b(1,b,$D);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&H(c,3,b);b=O(a,4);null!=b&&Lk(c,4,b);b=O(a,5);null!=b&&J(c,5,b);b=O(a,6);null!=b&&Lk(c,6,b);b=O(a,7);null!=b&&J(c,7,b)};UD.prototype.Ad=function(){return O(this,7)};
VD.prototype.u=function(){var a=new D;bE(this,a);return F(a)};var bE=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&H(c,2,b);b=O(a,3);null!=b&&Lk(c,3,b);b=O(a,4);null!=b&&H(c,4,b)};WD.prototype.u=function(){var a=new D;cE(this,a);return F(a)};var cE=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&H(c,2,b)};XD.prototype.u=function(){var a=new D;dE(this,a);return F(a)};
var dE=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&H(c,3,b);b=O(a,4);null!=b&&K(c,4,b)};YD.prototype.u=function(){var a=new D;eE(this,a);return F(a)};var eE=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};SD.prototype.Va=function(){return O(this,1)};SD.prototype.getMetadata=function(){return T(this,XD,9)};var fE=function(a){N(this,a,0,-1,null,null)};x(fE,M);fE.prototype.u=function(){var a=new D;gE(this,a);return F(a)};var gE=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&J(c,2,b)};var hE=function(a){N(this,a,0,-1,Sea,null)};x(hE,M);var Sea=[3];hE.prototype.u=function(){var a=new D;iE(this,a);return F(a)};var iE=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&c.f(2,b);b=U(a,fE,3);0<b.length&&L(c,3,b,gE)};var jE=function(a,c){this.g=a;this.f=c};jE.prototype.toString=function(){for(var a=this.g,c=this.f,b="",d=0;d<a.length;d++)b+=a[d],d<c.length&&(b+=c[d]);return b};ca.Object.defineProperties(jE.prototype,{b:{configurable:!0,enumerable:!0,get:function(){return this.g}},values:{configurable:!0,enumerable:!0,get:function(){return this.f}}});
var kE=function(a,c){for(var b=[],d=1;d<arguments.length;++d)b[d-1]=arguments[d];d=[];for(var e=[],f=0;f<a.length;f++)if(0<d.length?d[d.length-1]+=a[f]:d.push(a[f]),!(f>=b.length)){var g=b[f];g instanceof jE?0<g.b.length&&(d[d.length-1]+=g.b[0],d.push.apply(d,n(g.b.slice(1))),e.push.apply(e,n(g.values))):(e.push(g),d.push(""))}return new jE(d,e)};var lE=function(){};lE.prototype.wd=function(a){var c=Mf(a.name),b=Tea(a.level),d=a.message.toString();a.context&&(d="["+a.context.toString()+"] "+d);a.json&&(d+=" json="+JSON.stringify(a.json));Nf(c,b,d,a.error)};function Tea(a){switch(a){case 0:return Ef;case 1:return Cf;case 2:return Bf;case 3:return Af;default:return Ef}};var mE=["",""];mE.raw=mE.slice();
var nE=function(){var a=this;this.f=new Set;this.b=[];setTimeout(function(){a.b=null},5E3)},oE=function(a,c){if(null!==a.b)a.b.forEach(function(d){return c.wd(d)});else if(null===a.b){var b={level:2,message:kE(mE,"A backend has been registered, but all catch-up entries have already been cleared. In order for a backend to receive catch-up entries, it must be registered within 5 seconds of the LogManager's creation."),name:"realtime.logging.internal.LogManager",context:null,error:null,json:null,sessionId:null,
timestamp:Date.now()};c.wd(b)}a.f.add(c)};nE.prototype.wd=function(a){null!==this.b&&this.b.push(a);for(var c=l(this.f),b=c.next();!b.done;b=c.next()){b=b.value;try{b.wd(a)}catch(d){setTimeout(function(){throw d;},0)}}};var pE,qE=function(){pE||(pE=new nE,oE(pE,new lE));return pE};var rE=["An error occurred generating context for log entry"];rE.raw=rE.slice();var sE=["CONTEXT FAILED"];sE.raw=sE.slice();var tE=function(a,c){c=void 0===c?qE():c;this.o=a;this.w=c;this.D=this.m=this.s=this.f=this.j=this.h=null},uE=function(a){a.f=null;a.s=null;a.m=null;a.D=null},vE=function(a,c){a.f=c;return a};tE.prototype.g=function(a,c){for(var b=[],d=1;d<arguments.length;++d)b[d-1]=arguments[d];wE(this,0,a,b)};
tE.prototype.info=function(a,c){for(var b=[],d=1;d<arguments.length;++d)b[d-1]=arguments[d];wE(this,1,a,b)};tE.prototype.G=function(a,c){for(var b=[],d=1;d<arguments.length;++d)b[d-1]=arguments[d];wE(this,2,a,b)};tE.prototype.b=function(a,c){for(var b=[],d=1;d<arguments.length;++d)b[d-1]=arguments[d];wE(this,3,a,b)};
var wE=function(a,c,b,d){var e=a.o,f=a.f||a.h,g=a.s||a.j,k=a.m,m=a.D;b=new jE(b,d);uE(a);d=Date.now();var p=null;if(f)try{f(function(v,A){for(var G=[],E=1;E<arguments.length;++E)G[E-1]=arguments[E];p=new jE(v,G)})}catch(v){p=kE(sE),Uea(a,d,g,kE(rE),v)}a.w.wd({name:e,level:c,timestamp:d,sessionId:g,message:b,context:p,error:k,json:m})},Uea=function(a,c,b,d,e){a.w.wd({name:a.o,level:2,timestamp:c,sessionId:b,message:d,context:null,json:null,error:e})},xE=function(a){var c=new tE(a.o,a.w);c.h=a.f||a.h;
c.j=a.s||a.j;uE(a);return c};var yE=null,zE=null,AE=null;function BE(){var a=yE;a&&"suspended"===a.state&&a.resume()}var CE=function(){yE||(yE=new (window.AudioContext||window.webkitAudioContext),zE=new ov(2E3),AE=new My,AE.listen(zE,"tick",function(){return BE()}),BE(),zE.start());return yE};var DE=function(a){if(Ja(a)){var c=Number(a);a=0==c&&kd(a)?NaN:c}return 1E3>a?a/2E3:2E3>a?(a-1E3)/2E3+.5:3E3>a?(a-2E3)/2E3+1:4E3>a?(a-3E3)/2E3+1.5:6E3>a?(a-4E3)/4E3+2:1E4>a?(a-6E3)/8E3+2.5:15E3>a?(a-1E4)/1E4+3:19E3>a?(a-15E3)/8E3+3.5:22E3>a?(a-19E3)/6E3+4:32767>=a?(a-22E3)/21534+4.5:5};var EE=function(a){W.call(this);this.f=null;var c=a;bf&&(c=this.f=a.clone(),c.getAudioTracks().forEach(function(b){return b.enabled=!0}));this.j=c};q(EE,W);EE.prototype.ia=function(){this.f&&([].concat(n(this.f.getAudioTracks()),n(this.f.getVideoTracks())).forEach(function(a){a.stop()}),this.f=null);W.prototype.ia.call(this)};EE.prototype.stream=function(){return this.j};var FE=function(a){EE.call(this,a);this.g=CE().createAnalyser();this.g.fftSize=2048;this.h=CE().createMediaStreamSource(this.stream());this.h.connect(this.g)};q(FE,EE);FE.prototype.ia=function(){this.h.disconnect();EE.prototype.ia.call(this)};var Vea=function(a){var c=new Uint8Array(a.g.fftSize);a.g.getByteTimeDomainData(c);a=256*c.reduce(function(b,d){return Math.max(b,Math.abs(d-128))},0);return DE(a)};var GE=["Removing "," elements."];GE.raw=GE.slice();var HE=["Failed to set sink IDs.  Most likely sinkIds are not supported. Error: ",""];HE.raw=HE.slice();var IE=["Adding "," elements."];IE.raw=IE.slice();var JE=["Setting requested volume to ","."];JE.raw=JE.slice();var KE=["",""];KE.raw=KE.slice();
var LE=function(a,c,b,d,e){Y.call(this);var f=this;this.l=xE(vE(new tE("realtime.media.audio.AudioOutput"),function(g){return g(KE,f)}));this.g=a;this.m=c;this.s=(this.o=e?e:null)?QB(this.o,ED).then():null;this.j=new My(this);this.b(this.j);this.f=[];this.F=0;this.h=b?new FE(c):null;this.b(this.h);this.C=d;this.setVolume(1)};q(LE,Y);LE.prototype.toString=function(){return"AudioOutput(stream="+this.m.id+", volume="+this.F+", elements.length="+this.f.length+")"};
LE.prototype.setVolume=function(a){this.l.info(JE,a);if(this.g){var c=Math.ceil(a)-this.f.length;if(0<c)Wea(this,c);else if(0>c){c=-c;this.l.info(GE,c);for(var b=0;b<c;++b){var d=this.f.pop();d.srcObject=null;this.g.qq(d)}}0<a&&(this.f[0].volume=a-(this.f.length-1))}this.F=a};LE.prototype.Ub=function(){return this.m};
var Wea=function(a,c){a.l.info(IE,c);for(var b=[],d=[],e={},f=0;f<c;e={lh:e.lh,kh:e.kh,Lc:e.Lc},++f){e.Lc=a.g.b.createElement("AUDIO");e.kh=dv();e.lh=!1;b.push(e.kh.Y);e.Lc.srcObject=a.m;var g=e.Lc.play();g&&g.then(Qa,function(k){a.N(new ME(-1,k))});qv(function(k){return function(){k.lh||NE(a,5298)}}(e),15E3);Qy(a.j,e.Lc,"playing",function(k){return function(){k.lh=!0;k.kh.resolve()}}(e));Qy(a.j,e.Lc,"error",function(k){return function(){return a.N(new ME(k.Lc.error.code,k.Lc.error.message))}}(e));
a.f.push(e.Lc);d.push(e.Lc);a.g.appendChild(a.g.b.body,e.Lc)}bv(b).then(function(){return a.N("playing")});""!==a.C&&hv(Xea(a,d),function(k){a.l.G(HE,k)})},Xea=function(a,c){c=c.map(function(b){return Xu().then(function(){var d=u();NE(a,5269);return b.setSinkId(a.C).then(function(){NE(a,5270,u()-d)},function(e){NE(a,5124,u()-d,""+e);e&&("TypeError"===e.name?NE(a,5155,void 0,""+e):"AbortError"===e.name?NE(a,5156,void 0,""+e):"NotFoundError"===e.name?NE(a,5157,void 0,""+e):"SecurityError"===e.name&&
NE(a,5158,void 0,""+e));throw e;})})});return bv(c).then(function(){})};LE.prototype.ia=function(){this.setVolume(0);Y.prototype.ia.call(this)};LE.prototype.getCurrentTime=function(){return 0==this.f.length?null:this.f[0].currentTime};var NE=function(a,c,b,d){a.s&&a.s.then(function(e){e.V(c,{Qc:b,Zc:d})})},ME=function(a,c){X.call(this,"playing_error");this.code=a;this.message=c};q(ME,X);var OE=["Negative fps! s:"," e:",""];OE.raw=OE.slice();var PE=["Non-monotonic frame count: ",""];PE.raw=PE.slice();var QE=["recordBeforeAudioStop: No matching element found for ssrc ",""];QE.raw=QE.slice();var RE=["recordBeforeAudioStop: No info found for ssrc ",""];RE.raw=RE.slice();var SE=function(){My.call(this);this.l=new tE("realtime.media.stats.OutputTracker");this.h=new Map;this.g=new Map;this.f=new Map;Oy(this,document,"visibilitychange",this.j,!1,this)};q(SE,My);
var Yea=function(a,c,b){var d=a.f.get(c);d?bc(d,function(e){return e.he==b})?Vb(d)&&a.f.delete(c):a.l.G(QE,c):a.l.G(RE,c)},Nea=function(a,c){var b=a.h.get(c);b&&b.forEach(function(e){return TE(a,c,e)});var d=a.g.get(c);if(!d)return null;a.g.delete(c);b=Zea(d);d=$ea(d);return null!=b||null!=d?{Rl:b,Sl:d}:null},TE=function(a,c,b){b=b.f();b.end.b<b.start.b?a.l.G(PE,b.end.b):(a.g.has(c)||a.g.set(c,[]),-1>b.f()&&a.l.G(OE,b.start,b.end),a.g.get(c).push(b))};
SE.prototype.j=function(){var a=this;this.h.forEach(function(c,b){c.forEach(function(d){TE(a,b,d)})})};
var Zea=function(a){var c=0,b=0;a.forEach(function(d){c+=d.end.b-d.start.b;b+=d.end.timestamp-d.start.timestamp});return 0==b?null:c/b},$ea=function(a){var c=[];a.forEach(function(g){g.g||(c.push({t:g.start.timestamp,c:1,i:g}),c.push({t:g.end.timestamp,c:-1,i:g}))});mc(c);var b=0,d=0,e=-Infinity,f=[];c.forEach(function(g){var k=g.t,m=k-e;0<f.length&&(b+=k-e,d+=O(f[0],29)*m);1==g.c?(Xb(f,g.i),kc(f,afa)):ac(f,g.i);e=k});return 0==b?null:d/b};
SE.prototype.getCurrentTime=function(a){a=this.h.get(a)||this.f.get(a);if(!a)return null;var c=0,b=!1;a.forEach(function(d){d=d.getCurrentTime();null!=d&&(c=Math.max(d,c),b=!0)});return b?c:null};var AD=function(a,c){return(a=a.h.get(c))?Ob(a,function(b,d){d=d.g();return null==b?d:null==d?b:Math.max(b,d)},null):null};SE.prototype.ia=function(){this.h.clear();this.f.clear();this.g.clear();My.prototype.ia.call(this)};
var UE=new WeakMap,afa=function(a,c){var b=c.b-a.b;0==b&&(b=O(c,29)-O(a,29));return b},VE=function(a){this.he=a};VE.prototype.getCurrentTime=function(){return this.he.getCurrentTime()};var WE=["Unusual removal of stream (id=",") which had no SSRC."];WE.raw=WE.slice();var XE=["Removing audio output for stream (id=","), ssrc (",")."];XE.raw=XE.slice();var YE=["Attempted to remove a non-existing or already removed audio\n       stream (id=",") in output manager."];YE.raw=YE.slice();var ZE=["Stream (id=",") with no SSRC added."];ZE.raw=ZE.slice();var $E=["Creating audio output for stream (id=","), ssrc (","),\n     and output device (id=",")"];$E.raw=$E.slice();
var aF=function(a,c,b,d){d=void 0===d?function(e){for(var f=[],g=0;g<arguments.length;++g)f[g-0]=arguments[g];return new (Function.prototype.bind.apply(LE,[null].concat(n(f))))}:d;Y.call(this);this.l=new tE("realtime.media.capture.OutputManager");this.m=a;this.g=c;this.j=b;this.h=d;this.f=new Map};q(aF,Y);
var bfa=function(a,c,b,d){var e=c.id;a.l.info($E,e,b,"");c=a.h(a.m,c,d,"",a.j);a.f.set(e,{Hp:c,ssrc:b});b?(a=a.g,a.f.has(b)||a.f.set(b,[]),a.f.get(b).push(new VE(c))):a.l.G(ZE,e);return c},bF=function(a,c){if(a.f.has(c)){var b=a.f.get(c),d=b.Hp;b=b.ssrc;a.l.info(XE,c,b);b?Yea(a.g,b,d):a.l.G(WE,c);a.f.delete(c);Yt(d)}else a.l.G(YE,c)};var cF=function(){Y.call(this)};x(cF,Y);cF.prototype.Ff=function(a,c,b){try{return cF.Ga.Ff.call(this,a,c,b)}catch(d){return!1}};var dF=function(a,c,b,d,e,f,g,k,m,p,v){this.f=a;this.w=c;this.b=b;this.g=d;this.j=e;this.La=f;this.m=g;this.h=k;this.o=m;this.s=void 0===p?null:p;this.D=void 0===v?null:v},eF=function(a,c){return a==c?!0:a&&c?a.f===c.f&&a.w===c.w&&a.b===c.b&&a.g===c.g&&a.j===c.j&&a.La===c.La&&a.m===c.m&&a.h===c.h&&a.o===c.o&&a.s===c.s&&a.D===c.D:!1};
dF.prototype.toString=function(){return"Candidate(component="+this.f+", priority="+this.w+","+(" type="+this.b+", protocol="+this.g+", ip="+this.j+",")+(" port="+this.La+", foundation="+this.m+",")+(" generation="+this.h+", network="+this.o+",")+(" relatedIp="+this.s+", relatedPort="+this.D+")")};dF.prototype.xb=function(){return this.La};dF.prototype.Zh=function(a){var c=new dF(this.f,this.w,this.b,this.g,this.j,this.La,this.m,this.h,this.o,this.s,this.D);c.La=a;return c};var gF=function(a){this.Mg=a.w;this.Kd=a.o;this.Ng=a.m;this.Lg=a.g;this.Rf=a.j;this.bf=a.h;this.b=a.f;this.Jd=Object.freeze(fF(a.b))};gF.prototype.toString=function(){return"Codec(name="+this.Ng+", mediaType="+this.Mg+", payloadType="+this.Kd+", bitrate="+this.Lg+", clockrate="+this.Rf+", channels="+this.bf+", audioNack="+this.b+", params="+Hv(this.Jd)+")"};gF.prototype.la=function(){return this.Mg};gF.prototype.getName=function(){return this.Ng};var hF=function(a,c){return 0==nd(a.getName(),c)};
gF.prototype.clone=function(){return(new iF(this)).aa()};var iF=function(a){this.w=(a=void 0===a?null:a)&&a.Mg;this.o=a&&a.Kd;this.m=a&&a.Ng;this.g=a&&a.Lg;this.j=a&&a.Rf;this.h=a&&a.bf;this.f=a&&a.b;this.b=fF(a?a.Jd:{})};iF.prototype.aa=function(){return new gF(this)};var jF=function(a,c){a.w=c;return a},kF=function(a,c){a.o=c;return a};iF.prototype.mf=function(a){this.m=a;return this};var lF=function(a,c){a.j=c;return a},mF=function(a,c){a.h=c;return a},nF=function(a,c,b){a.b[c]=b;return a};
function fF(a){return Object.assign(Object.create(null),a)};var oF=function(a){this.cf=a.g;this.Og=a.b;this.Pg=a.f;this.Sf=a.h};oF.prototype.toString=function(){return"Crypto(suite="+this.cf+", keyParams=<redacted>, sessionParams_="+(null!=this.Pg?"<redacted>":null)+", tag="+this.Sf+")"};var pF=function(){var a;this.g=(a=void 0===a?null:a)?a.cf:null;this.b=a?a.Og:null;this.f=a?a.Pg:null;this.h=a?a.Sf:null};pF.prototype.aa=function(){return new oF(this)};var qF=function(a,c,b,d){this.f=a;this.h=c;this.b=b;this.g=d};qF.prototype.toString=function(){return"DataChannelDescriptor(label="+this.g+" id="+this.f+","+(" SSRC="+this.b+", format="+this.h+")")};qF.prototype.getChannelId=function(){return this.f};qF.prototype.Ad=function(){return this.g};qF.prototype.equals=function(a){return null==a?!1:this.f==a.f&&this.g==a.g&&this.b==a.b};var rF=function(a){this.b=a.b;this.f=a.f;this.g=a.g};rF.prototype.toString=function(){return"BandwidthConstraints("+("minBandwidthKbps="+this.f+", ")+("maxBandwidthKbps="+this.b+", ")+("startBandwidthKbps="+this.g)};var sF=function(){this.g=this.f=this.b=-1};sF.prototype.aa=function(){return new rF(this)};var tF=function(a){this.ed=a.f;this.Ka=a.Ka;this.Qg=a.b};tF.prototype.toString=function(){return"RtpHeaderExtension(uri="+this.ed+", id="+this.Ka+", mediaType="+this.Qg+")"};tF.prototype.getId=function(){return this.Ka};tF.prototype.la=function(){return this.Qg};var uF=function(){var a;this.f=(a=void 0===a?null:a)?a.ed:null;this.Ka=a?a.Ka:null;this.b=a?a.Qg:null};uF.prototype.aa=function(){return new tF(this)};var vF=function(a){this.La=a.La;this.g=a.f;this.f=a.g;this.b=a.b};vF.prototype.xb=function(){return this.La};vF.prototype.getName=function(){return this.g};var wF=function(){var a;this.La=(a=void 0===a?null:a)?a.La:null;this.f=a?a.g:null;this.g=a?a.f:null;this.b=a?a.b:null};wF.prototype.aa=function(){return new vF(this)};wF.prototype.Zh=function(a){this.La=a;return this};wF.prototype.mf=function(a){this.f=a;return this};var xF=function(a,c){a.b=c;return a};var yF=function(a){this.b=a.b;this.Dg=a.f};yF.prototype.toString=function(){return"RIDs(send="+this.Dg+", rids="+z(this.b)+")"};var zF=function(){this.b=[];this.f=!0};zF.prototype.aa=function(){return new yF(this)};var AF=function(a,c){a.b=z(c);return a};var BF=function(a){this.b=a.b;this.f=z(a.f)};BF.prototype.toString=function(){return"SsrcGroup(semantics="+this.b+", ssrcs="+this.f+")"};BF.prototype.yb=function(){return z(this.f)};var CF=function(){var a;this.b=(a=void 0===a?null:a)?a.b:null;this.f=a?z(a.f):[]};CF.prototype.aa=function(){return new BF(this)};var DF=function(a){var c=new CF;c.b=a;return c},EF=function(a,c){a.f=z(c);return a};var FF=function(a,c,b,d){this.b=a;this.f=c;this.width=b;this.height=d};FF.prototype.clone=function(){return new FF(this.b,this.f,this.width,this.height)};FF.prototype.toString=function(){return"("+this.b+", "+this.f+" - "+this.width+"w x "+this.height+"h)"};var cfa=function(a,c){return a==c?!0:a&&c?a.b==c.b&&a.width==c.width&&a.f==c.f&&a.height==c.height:!1};FF.prototype.contains=function(a){return this.b<=a.b&&this.b+this.width>=a.b+a.width&&this.f<=a.f&&this.f+this.height>=a.f+a.height};
FF.prototype.ceil=function(){this.b=Math.ceil(this.b);this.f=Math.ceil(this.f);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};FF.prototype.floor=function(){this.b=Math.floor(this.b);this.f=Math.floor(this.f);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};FF.prototype.round=function(){this.b=Math.round(this.b);this.f=Math.round(this.f);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var HF=function(a,c,b,d,e,f,g){d=void 0===d?"un":d;e=void 0===e?"li":e;f=void 0===f?null:f;g=void 0===g?null:g;Y.call(this);this.j=a;this.Ka=c;this.Ya=b;this.f=d;this.g=e;this.h="sc"!==d;this.hd=null;GF(this,g);this.ff=f};q(HF,cF);h=HF.prototype;h.toString=function(){return"Source(id="+this.Ka+" type="+this.Ya+" content="+this.f+" state="+this.g+" participantId="+this.j+")"};h.ba=function(){return this.j};h.Na=function(a){this.j=a};h.getId=function(){return this.Ka};h.getContent=function(){return this.f};
h.setContent=function(a){this.f!=a&&(this.f=a,this.N("H"))};h.getState=function(){return this.g};h.lb=function(a){this.g!=a&&(this.g=a,this.N("J"))};h.be=function(){return this.h};var dfa=function(a,c){a.h!=c&&(a.h=c,a.N("K"))},GF=function(a,c){var b=null!=a.hd&&!Vb(a.hd),d=null!=c&&!Vb(c);d?c=z(c).sort(function(e,f){return e.b-f.b||e.f-f.f||e.width-f.width||e.height-f.height}):c=null;if(b=d!=b||d&&!oc(a.hd,c,cfa))a.hd=c;return b};HF.prototype.N=function(a){return cF.prototype.N.call(this,a)};var IF=function(a){this.w=a.m;this.o=a.s;this.s=a.C;this.b=a.L;this.m=a.o;this.j=a.g;this.Ld=a.j;this.g=a.w;this.F=a.h;this.D=z(a.b);this.f=a.D;this.h=z(a.F);this.C=a.f};h=IF.prototype;h.toString=function(){return"Stream(participantId="+this.o+", mediaType="+this.w+", sourceId="+this.s+", streamId="+this.b+", muted="+this.m+", croppable="+this.j+", mediaStreamId="+this.Ld+", mediaStreamTrackId="+this.g+", ssrcs="+this.D+", rids="+this.f+", ssrcGroups="+this.h+", adaptationFlags="+this.C+")"};
h.la=function(){return this.w};h.ba=function(){return this.o};h.wa=function(){return this.s};h.bd=function(){return this.m};h.be=function(){return this.j};h.yb=function(){return z(this.D)};h.matches=function(a){return this.ba()==a.ba()&&this.la()==a.la()&&this.wa()==a.wa()&&this.b==a.b};
var JF=function(a){this.m=(a=void 0===a?null:a)?a.w:null;this.s=a?a.o:"";this.C=a?a.s:null;this.L=a?a.b:null;this.o=a?a.m:!1;this.g=a?a.j:!0;this.j=a?a.Ld:null;this.w=a?a.g:null;this.h=a?a.F:null;this.b=a?z(a.D):[];this.D=a?a.f:null;this.F=a?z(a.h):[];this.f=0};JF.prototype.aa=function(){return new IF(this)};
var KF=function(a,c){a.m=c;return a},LF=function(a,c){a.s=c;return a},MF=function(a,c){a.C=c;return a},NF=function(a,c){a.L=c;return a},OF=function(a,c){a.o=c;return a},PF=function(a,c){a.g=c;return a},QF=function(a,c){a.j=c;return a},RF=function(a,c){a.w=c;return a},SF=function(a,c){a.h=c;return a},TF=function(a,c){a.b=z(c);return a},UF=function(a,c){a.b.push(c);return a};JF.prototype.yb=function(){return z(this.b)};var VF=function(a,c){a.D=c;return a},WF=function(a,c){a.F=z(c);return a};var XF=function(a){this.w=a.h;this.m=a.m;this.j=a.g;this.b=a.b&&a.b.clone();this.f=a.f;this.g=a.j;this.D=a.w;this.h=a.D;this.o=a.o.slice();this.s=a.s};h=XF.prototype;h.toString=function(){return"StreamRequest(participantId: "+this.w+", sourceId: "+this.m+", mediaType: "+this.j+", resolution: "+(this.b&&this.b.width+"x"+this.b.height)+", frameRate: "+this.f+", adaptationReason: "+this.h+", send: "+this.g+", ssrcs: "+this.o+", streamId: "+this.s+")"};h.ba=function(){return this.w};h.la=function(){return this.j};
h.wa=function(){return this.m};h.Tb=function(){return this.b&&this.b.clone()};h.yb=function(){return this.o};h.matches=function(a){return this.ba()==a.ba()&&YF(this,a)};var YF=function(a,c){return a.la()==c.la()&&a.wa()==c.wa()},ZF=function(a){this.h=(a=void 0===a?null:a)?a.w:"";this.m=a?a.m:"";this.g=a&&a.j;this.b=a&&a.b&&a.b.clone();this.f=a&&a.f;this.j=null===a?!0:a.g;this.w=a&&a.D;this.D=a&&a.h||0;this.o=a&&a.o||[];this.s=a&&a.s||null};ZF.prototype.aa=function(){return new XF(this)};
var $F=function(a,c){a.g=c;return a},aG=function(a,c){a.o=c;return a},efa=function(a,c){a.s=c;return a},bG=function(a,c){a.m=c;return a},cG=function(a,c){a.w=c;return a},dG=function(a,c){a.j=c;return a},eG=function(a,c){a.b=new Rf(c.width,c.height);return a},fG=function(a,c){a.f=c;return a},ffa=function(a){var c=new Rf(0,0),b=Math.min;null!==a.b&&(c=new Rf(b(a.b.width,c.width),b(a.b.height,c.height)));return eG(a,c)},gfa=function(a){a.f=Math.min(a.f||Infinity,0);return a};var gG=function(a,c,b,d){this.g=a;this.s=c;this.b=b;this.h=void 0===d?null:d;this.f=null;this.C=[];this.o="";this.j=[];this.F=this.D=!0;this.w=[];this.m=null},iG=function(a,c){return a===c?!0:a&&c?a.g===c.g&&oc(hG(a),hG(c),function(b,d){return b===d?!0:b&&d?b.Mg===d.Mg&&b.Kd===d.Kd&&b.Ng===d.Ng&&b.Lg===d.Lg&&b.Rf===d.Rf&&b.bf===d.bf:!1})&&oc(z(a.b),z(c.b),function(b,d){return b===d?!0:b&&d?b.ed===d.ed&&b.Ka===d.Ka&&b.Qg===d.Qg:!1}):!1},lG=function(a){if(a.f){var c=a.f;c={port:c.xb(),name:c.getName(),
messagesize:c.f,numstreams:c.b}}else c={};return{type:a.g,mediaId:jG(a),bandwidthConstraints:String(a.h),codecs:hG(a),streams:kG(a),sctpSettings:c,rtpHeaderExtensions:z(a.b),defaultRequests:z(a.j).map(String),send:a.D,receive:a.F,virtualSsrcs:z(a.w),loudestCsrc:a.m}},mG=function(a){var c=new gG(a.g,a.s,a.b,a.h);c.f=a.f;c.C=a.C;c.o=a.o;c.j=a.j;c.D=a.D;c.F=a.F;c.w=a.w;c.m=a.m;return c},hG=function(a){return z(a.s)},nG=function(a,c){a=mG(a);a.s=c;return a},oG=function(a,c){a=mG(a);a.f=c;return a},pG=
function(a,c){a=mG(a);a.b=c;return a},kG=function(a){return z(a.C)},qG=function(a,c){a=mG(a);a.C=c;return a},jG=function(a){if(a.o)return a.o;switch(a.g){case "a":return"audio";case "v":return"video";case "d":return"data";default:return Hb("No default media ID for unknown type: "+a.g),""}},rG=function(a,c){a=mG(a);a.o=c;return a},sG=function(a,c){a=mG(a);a.j=c;return a},tG=function(a,c){a=mG(a);a.h=c;return a},uG=function(a,c){a=mG(a);a.D=c;return a},hfa=function(a,c){a=mG(a);a.F=c;return a},vG=function(a,
c){a=mG(a);a.w=c;return a},ifa=function(a,c){a=mG(a);a.m=c;return a},wG=function(a){return 0<a.w.length?a.w.map(function(c){return TF(QF(NF(MF(KF(new JF,"a"),c.toString()),c.toString()),c.toString()),[c]).aa()}):kG(a)},jfa=function(a,c,b){var d=new Set(b.map(xG));b=kG(a);cc(b,function(e){return d.has(e.b)});return qG(a,b.concat(c))},yG=function(a,c){var b=void 0===b?vc:b;return kfa(a,function(d){return hF(d,c)},b)},kfa=function(a,c,b){b=void 0===b?vc:b;c=Rb(a.s,c);if(-1==c)return a;var d=hG(a);b=
b(d[c]);$b(d,c);Yb(d,0,0,b);return nG(a,d)},zG=function(a,c){if(null===c)return a;var b=mG(a),d=c.h?c.h.b:null;if(d){null==d&&(d=-1);b=mG(b);var e=new sF;e.b=d;b.h=e.aa()}d=hG(c);Vb(d)||(b=nG(b,d));(d=c.f)&&(b=oG(b,d));d=z(c.b);Vb(d)||(b=pG(b,d));d=z(c.j);Vb(d)||(b=sG(b,d));a=kG(a);c=kG(c);d=xG;a=pc(a,d);Object.assign(a,pc(c,d));c=Object.values(a);return qG(b,c)},xG=function(a){return a.b};var AG=function(a,c,b,d,e,f){e=void 0===e?[]:e;this.w=a;this.g=c;this.f=b;this.b=void 0===d?null:d;this.j=null;this.h=e;this.m=void 0===f?"full":f},lfa=function(a,c){return a===c?!0:a&&c?a.w===c.w&&a.g===c.g&&a.f===c.f&&a.b===c.b&&oc(z(a.h),z(c.h),function(b,d){return eF(b,d)}):!1},BG=function(a){var c=new AG(a.w,a.g,a.f,a.b,a.h,a.m);c.j=a.j;return c};AG.prototype.Hb=function(){return this.w};var CG=function(a,c){a=BG(a);a.j=c;return a};var DG=function(a,c,b,d,e,f,g){var k=this;f=void 0===f?null:f;g=void 0===g?null:g;this.ta=void 0===a?null:a;this.oa=void 0===c?null:c;this.Ta=void 0===b?null:b;this.g=void 0===d?null:d;this.h=new Map;((void 0===e?null:e)||[]).forEach(function(m){k.h.set(m.Ad(),m)});this.b=f;this.f=g||[]},FG=function(a,c){var b=a.oa;if(!b)return a;c=hG(b).filter(c);var d=c.map(function(e){return e.Kd.toString()});c=c.filter(function(e){return!hF(e,"rtx")||d.includes("apt"in e.Jd?e.Jd.apt:null)});return EG(a,nG(b,c))},
mfa=function(a,c){return a===c?!0:a&&c?iG(a.ta,c.ta)&&iG(a.oa,c.oa)&&lfa(a.b,c.b)&&oc(z(a.f),z(c.f),function(b,d){return b===d?!0:b&&d?b.cf===d.cf&&b.Og===d.Og&&b.Pg===d.Pg&&b.Sf===d.Sf:!1}):!1},HG=function(a){var c=a.g,b=a.ta&&lG(a.ta),d=a.oa&&lG(a.oa),e=a.Ta&&lG(a.Ta),f=GG(a)&&GG(a).toString(),g;if(g=a.b)g=a.b,g={version:g.Hb(),ufrag:g.g,pwd:g.f,fingerprint:g.b,dtlsRole:g.j,candidates:z(g.h).toString(),mode:g.m};return{sessionId:c,audio:b,video:d,data:e,pushChannels:f,transport:g,cryptos:z(a.f)}},
IG=function(a){var c=new DG(a.ta,a.oa,a.Ta,a.g,[],a.b,a.f);c.h=new Map(a.h);return c},JG=function(a,c){a=IG(a);a.ta=c;return a},EG=function(a,c){a=IG(a);a.oa=c;return a},KG=function(a,c){a=IG(a);a.Ta=c;return a},LG=function(a,c){a=IG(a);a.b=c;return a},MG=function(a,c){return a.h.get(void 0===c?"collections":c)||null},GG=function(a){return[].concat(n(a.h.values()))},NG=function(a,c){a=IG(a);a.f=c;return a},PG=function(a,c,b){a=IG(a);a.ta=OG(a.ta,c,b);a.oa=OG(a.oa,c,b);a.Ta=OG(a.Ta,c,b);return a},
OG=function(a,c,b){if(!a)return null;c=c.filter(function(d){return d.la()==a.g});b=b.filter(function(d){return d.la()==a.g});return jfa(a,c,b)};var nfa=function(){},QG=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 RG=function(a){N(this,a,"hc:cc",-1,ofa,null)};x(RG,M);var SG=function(a){N(this,a,0,-1,null,null)};x(SG,M);var ofa=[14,15];
RG.prototype.u=function(){var a=new D;var c=O(this,1);null!=c&&J(a,1,c);c=O(this,2);null!=c&&K(a,2,c);c=O(this,3);null!=c&&K(a,3,c);c=O(this,4);null!=c&&K(a,4,c);c=O(this,5);null!=c&&J(a,5,c);c=O(this,27);null!=c&&J(a,27,c);c=O(this,6);null!=c&&K(a,6,c);c=O(this,7);null!=c&&K(a,7,c);c=O(this,8);null!=c&&I(a,8,c);c=O(this,9);null!=c&&Lk(a,9,c);c=O(this,10);null!=c&&K(a,10,c);c=O(this,11);null!=c&&K(a,11,c);c=O(this,12);null!=c&&K(a,12,c);c=T(this,aA,13);null!=c&&a.b(13,c,bA);c=O(this,14);0<c.length&&
Tk(a,14,c);c=O(this,15);0<c.length&&Tk(a,15,c);c=O(this,16);null!=c&&I(a,16,c);c=T(this,iA,17);null!=c&&a.b(17,c,tA);c=O(this,18);null!=c&&I(a,18,c);c=T(this,SG,19);null!=c&&a.b(19,c,TG);c=O(this,20);null!=c&&a.f(20,c);c=O(this,21);null!=c&&a.f(21,c);c=O(this,22);null!=c&&I(a,22,c);c=O(this,23);null!=c&&K(a,23,c);c=O(this,24);null!=c&&K(a,24,c);c=O(this,25);null!=c&&K(a,25,c);c=O(this,26);null!=c&&a.f(26,c);return F(a)};SG.prototype.u=function(){var a=new D;TG(this,a);return F(a)};
var TG=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b)};Bl("hc:cc",RG);var UG=function(a,c){S(a,4,c)};RG.prototype.s=function(a){S(this,6,a)};var VG=function(a){Y.call(this);this.f=a;this.j=R(this.f,3,0);this.h=0;this.g=!1};x(VG,cF);var pfa=function(a,c){c=hD(c);if(null!=c){for(var b=0;b<c.length;++b)if(0==sD(c[b])&&2==rD(c[b])&&(0==O(c[b],57)||0==O(c[b],58))){a.j=R(a.f,3,0);return}for(b=0;b<c.length;++b)switch(sD(c[b])){case 2:var d=a,e=c[b];0<d.j?--d.j:(O(e,40)||0)<R(d.f,1,6E4)?d.g||(++d.h,d.h>=R(d.f,2,1)&&(d.N(new WG(0)),d.g=!0)):(d.g&&(d.N(new WG(1)),d.g=!1),d.h=0)}}},WG=function(a){X.call(this,"L");this.id=a};x(WG,X);var XG=function(a){X.call(this,"M");this.data=a};q(XG,X);var YG=function(a){X.call(this,"N");this.data=a};q(YG,X);var ZG=function(a){N(this,a,0,-1,null,qfa)};x(ZG,M);var $G=function(a){N(this,a,0,-1,null,null)};x($G,M);var aH=function(a){N(this,a,0,-1,null,null)};x(aH,M);var qfa=[[1,2]];ZG.prototype.u=function(){var a=new D;bH(this,a);return F(a)};var bH=function(a,c){var b=T(a,$G,1);null!=b&&c.b(1,b,cH);b=T(a,aH,2);null!=b&&c.b(2,b,dH)};$G.prototype.u=function(){var a=new D;cH(this,a);return F(a)};var cH=function(a,c){a=O(a,1);null!=a&&J(c,1,a)};aH.prototype.u=function(){var a=new D;dH(this,a);return F(a)};
var dH=function(a,c){a=O(a,1);null!=a&&J(c,1,a)};var eH=function(a){N(this,a,0,-1,null,null)};x(eH,M);var fH=function(a){N(this,a,0,-1,null,null)};x(fH,M);eH.prototype.u=function(){var a=new D;gH(this,a);return F(a)};var gH=function(a,c){var b=T(a,fH,1);null!=b&&c.b(1,b,hH);b=T(a,fH,2);null!=b&&c.b(2,b,hH);b=O(a,3);null!=b&&J(c,3,b);b=T(a,ZG,4);null!=b&&c.b(4,b,bH)};fH.prototype.u=function(){var a=new D;hH(this,a);return F(a)};var hH=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b)};var iH=function(a){N(this,a,0,-1,null,null)};x(iH,M);iH.prototype.u=function(){var a=new D;jH(this,a);return F(a)};var jH=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&I(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,6);null!=b&&K(c,6,b);b=O(a,7);null!=b&&J(c,7,b)};iH.prototype.ma=function(){return O(this,6)};iH.prototype.ga=function(a){S(this,6,a)};var kH=function(a){N(this,a,0,-1,null,null)};x(kH,M);kH.prototype.u=function(){var a=new D;lH(this,a);return F(a)};var lH=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=T(a,iH,2);null!=b&&c.b(2,b,jH);b=T(a,eH,6);null!=b&&c.b(6,b,gH);b=O(a,3);null!=b&&K(c,3,b);b=O(a,11);null!=b&&K(c,11,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&c.f(5,b);b=O(a,7);null!=b&&H(c,7,b);b=O(a,8);null!=b&&K(c,8,b);b=O(a,9);null!=b&&J(c,9,b);b=O(a,10);null!=b&&J(c,10,b)};var mH=function(a){N(this,a,0,-1,rfa,null)};x(mH,M);var nH=function(a){N(this,a,0,-1,null,null)};x(nH,M);var oH=function(a){N(this,a,0,-1,null,null)};x(oH,M);var rfa=[5,8,9];mH.prototype.u=function(){var a=new D;pH(this,a);return F(a)};var pH=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b);b=U(a,nH,5);0<b.length&&Vk(c,5,b,qH);b=U(a,oH,8);0<b.length&&L(c,8,b,rH);b=O(a,9);0<b.length&&Sk(c,9,b)};
nH.prototype.u=function(){var a=new D;qH(this,a);return F(a)};var qH=function(a,c){var b=O(a,1);null!=b&&K(c,6,b);b=O(a,2);null!=b&&K(c,7,b)};oH.prototype.u=function(){var a=new D;rH(this,a);return F(a)};var rH=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};var sH=function(a){N(this,a,0,-1,sfa,null)};x(sH,M);var tH=function(a){N(this,a,0,-1,tfa,null)};x(tH,M);var uH=function(a){N(this,a,0,-1,null,null)};x(uH,M);var sfa=[1];sH.prototype.u=function(){var a=new D;vH(this,a);return F(a)};var vH=function(a,c){var b=U(a,tH,1);0<b.length&&Vk(c,1,b,wH);b=O(a,15);null!=b&&J(c,15,b);b=O(a,16);null!=b&&c.f(16,b);b=O(a,17);null!=b&&c.f(17,b);b=T(a,WC,18);null!=b&&c.b(18,b,yD)},tfa=[8,9,10,11,12,13];tH.prototype.u=function(){var a=new D;wH(this,a);return F(a)};
var wH=function(a,c){var b=O(a,1);null!=b&&K(c,2,b);b=O(a,2);null!=b&&K(c,3,b);b=O(a,3);null!=b&&K(c,4,b);b=O(a,4);null!=b&&K(c,5,b);b=O(a,5);null!=b&&K(c,6,b);b=O(a,6);null!=b&&J(c,7,b);b=O(a,7);null!=b&&J(c,8,b);b=U(a,uH,8);0<b.length&&L(c,9,b,xH);b=U(a,uH,9);0<b.length&&L(c,10,b,xH);b=U(a,uH,10);0<b.length&&L(c,11,b,xH);b=U(a,uH,11);0<b.length&&L(c,12,b,xH);b=U(a,uH,12);0<b.length&&L(c,13,b,xH);b=U(a,uH,13);0<b.length&&L(c,14,b,xH)};uH.prototype.u=function(){var a=new D;xH(this,a);return F(a)};
var xH=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b)};var yH=function(a){N(this,a,0,-1,null,null)};x(yH,M);var zH=function(a){N(this,a,0,-1,null,null)};x(zH,M);yH.prototype.u=function(){var a=new D;AH(this,a);return F(a)};var AH=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&c.f(4,b);b=O(a,5);null!=b&&c.f(5,b);b=T(a,zH,6);null!=b&&c.b(6,b,BH);b=O(a,7);null!=b&&K(c,7,b)};zH.prototype.u=function(){var a=new D;BH(this,a);return F(a)};
var BH=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,51);null!=b&&I(c,51,b);b=O(a,4);null!=b&&I(c,4,b);b=O(a,61);null!=b&&J(c,61,b);b=O(a,7);null!=b&&I(c,7,b);b=O(a,14);null!=b&&I(c,14,b);b=O(a,15);null!=b&&c.f(15,b);b=O(a,16);null!=b&&c.f(16,b);b=O(a,31);null!=b&&c.f(31,b);b=O(a,33);null!=b&&I(c,33,b);b=O(a,35);null!=b&&I(c,35,b);b=O(a,36);null!=b&&I(c,36,b);b=O(a,37);null!=b&&I(c,37,b);b=O(a,38);null!=b&&I(c,38,b);b=O(a,43);null!=b&&I(c,43,b);b=O(a,44);null!=b&&I(c,44,b);b=O(a,45);null!=b&&
I(c,45,b);b=O(a,46);null!=b&&I(c,46,b);b=O(a,47);null!=b&&I(c,47,b);b=O(a,48);null!=b&&I(c,48,b);b=O(a,49);null!=b&&I(c,49,b);b=O(a,50);null!=b&&I(c,50,b);b=O(a,56);null!=b&&I(c,56,b);b=O(a,57);null!=b&&c.f(57,b);b=O(a,58);null!=b&&I(c,58,b);b=O(a,59);null!=b&&I(c,59,b);b=O(a,60);null!=b&&I(c,60,b);b=O(a,62);null!=b&&K(c,62,b);b=O(a,63);null!=b&&I(c,63,b);b=O(a,64);null!=b&&c.f(64,b);b=O(a,66);null!=b&&I(c,66,b);b=O(a,67);null!=b&&I(c,67,b);b=O(a,68);null!=b&&I(c,68,b);b=O(a,70);null!=b&&c.f(70,b);
b=O(a,71);null!=b&&I(c,71,b);b=O(a,72);null!=b&&I(c,72,b);b=O(a,74);null!=b&&I(c,74,b);b=O(a,75);null!=b&&Lk(c,75,b);b=O(a,76);null!=b&&I(c,76,b);b=O(a,77);null!=b&&c.f(77,b);b=O(a,78);null!=b&&I(c,78,b);b=O(a,79);null!=b&&I(c,79,b);b=O(a,80);null!=b&&I(c,80,b);b=O(a,81);null!=b&&I(c,81,b);b=O(a,82);null!=b&&I(c,82,b);b=O(a,84);null!=b&&I(c,84,b);b=O(a,85);null!=b&&I(c,85,b);b=O(a,86);null!=b&&I(c,86,b)};var CH=function(a){N(this,a,0,-1,null,null)};x(CH,M);CH.prototype.u=function(){var a=new D;DH(this,a);return F(a)};var DH=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&H(c,5,b);b=O(a,6);null!=b&&H(c,6,b)};var EH=function(a){N(this,a,0,-1,null,null)};x(EH,M);EH.prototype.u=function(){var a=new D;FH(this,a);return F(a)};var FH=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&H(c,3,b);b=O(a,4);null!=b&&H(c,4,b)};var GH=function(a){N(this,a,0,-1,null,null)};x(GH,M);GH.prototype.u=function(){var a=new D;HH(this,a);return F(a)};var HH=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b);b=O(a,6);null!=b&&c.f(6,b);b=O(a,7);null!=b&&c.f(7,b);b=O(a,8);null!=b&&c.f(8,b);b=O(a,9);null!=b&&K(c,9,b);b=O(a,5);null!=b&&J(c,5,b)};GH.prototype.getName=function(){return O(this,2)};GH.prototype.getDeviceId=function(){return O(this,6)};var IH=function(a){N(this,a,0,-1,ufa,null)};x(IH,M);var JH=function(a){N(this,a,0,-1,null,null)};x(JH,M);var KH=function(a){N(this,a,0,-1,vfa,null)};x(KH,M);var LH=function(a){N(this,a,0,-1,null,null)};x(LH,M);var ufa=[24];IH.prototype.u=function(){var a=new D;MH(this,a);return F(a)};
var MH=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,25);null!=b&&K(c,25,b);b=O(a,4);null!=b&&c.f(4,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,6);null!=b&&c.f(6,b);b=O(a,7);null!=b&&c.f(7,b);b=O(a,8);null!=b&&K(c,8,b);b=O(a,9);null!=b&&c.f(9,b);b=O(a,10);null!=b&&c.f(10,b);b=O(a,11);null!=b&&K(c,11,b);b=O(a,12);null!=b&&K(c,12,b);b=O(a,13);null!=b&&K(c,13,b);b=O(a,14);null!=b&&K(c,14,b);b=O(a,15);null!=b&&K(c,15,b);b=O(a,16);null!=b&&K(c,16,b);b=
O(a,17);null!=b&&c.f(17,b);b=O(a,18);null!=b&&c.f(18,b);b=O(a,19);null!=b&&K(c,19,b);b=O(a,26);null!=b&&K(c,26,b);b=O(a,20);null!=b&&K(c,20,b);b=T(a,JH,21);null!=b&&c.b(21,b,NH);b=O(a,22);null!=b&&K(c,22,b);b=T(a,KH,23);null!=b&&c.b(23,b,OH);b=U(a,GH,24);0<b.length&&L(c,24,b,HH)};JH.prototype.u=function(){var a=new D;NH(this,a);return F(a)};
var NH=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b);b=O(a,5);null!=b&&c.f(5,b)},vfa=[3];KH.prototype.u=function(){var a=new D;OH(this,a);return F(a)};var OH=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=U(a,LH,3);0<b.length&&L(c,3,b,PH)};LH.prototype.u=function(){var a=new D;PH(this,a);return F(a)};
var PH=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,4);null!=b&&J(c,4,b);b=O(a,3);null!=b&&J(c,3,b)};var QH=function(a){N(this,a,0,-1,wfa,null)};x(QH,M);var wfa=[11];QH.prototype.u=function(){var a=new D;RH(this,a);return F(a)};
var RH=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,14);null!=b&&K(c,14,b);b=O(a,21);null!=b&&K(c,21,b);b=O(a,24);null!=b&&K(c,24,b);b=O(a,3);null!=b&&K(c,3,b);b=T(a,QC,4);null!=b&&c.b(4,b,cD);b=T(a,mH,5);null!=b&&c.b(5,b,pH);b=T(a,sH,6);null!=b&&c.b(6,b,vH);b=T(a,yH,7);null!=b&&c.b(7,b,AH);b=T(a,IH,8);null!=b&&c.b(8,b,MH);b=T(a,kH,10);null!=b&&c.b(10,b,lH);b=T(a,EH,17);null!=b&&c.b(17,b,FH);b=T(a,CH,15);null!=b&&c.b(15,b,DH);b=O(a,11);0<b.length&&Tk(c,11,b);b=O(a,
12);null!=b&&I(c,12,b);b=O(a,9);null!=b&&J(c,9,b);b=O(a,13);null!=b&&K(c,13,b);b=O(a,16);null!=b&&K(c,16,b);b=O(a,18);null!=b&&I(c,18,b);b=O(a,19);null!=b&&H(c,19,b);b=O(a,20);null!=b&&H(c,20,b);b=O(a,22);null!=b&&K(c,22,b);b=O(a,23);null!=b&&K(c,23,b)};h=QH.prototype;h.ma=function(){return O(this,2)};h.ga=function(a){S(this,2,a)};h.rb=function(){return O(this,21)};h.ba=function(){return O(this,3)};h.Na=function(a){S(this,3,a)};h.tc=function(){return O(this,22)};var SH=function(a){Y.call(this);this.f=a;a.D=this;this.b(a);this.g="nr"};q(SH,cF);var TH=function(a){return{config:a.Ia(),muted:a.isMuted(),state:xfa(a)}};SH.prototype.isMuted=function(){return"mu"==this.f.getState()};SH.prototype.Ia=function(){return null};
var xfa=function(a){switch(a.g){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""};
SH.prototype.C=function(a){if(a!==this.g){var c=this.isMuted();this.g=a;this.N("S");c!==this.isMuted()&&this.N("R")}};SH.prototype.qm=function(){};SH.prototype.nk=function(){};var UH=function(a,c){this.modelName=void 0===a?"":a;this.f=(void 0===c?0:c)||Pa("navigator.hardwareConcurrency")||0;this.b=null},zfa=function(a){""==a.modelName||4<=a.f&&yfa(a)},yfa=function(a){null==a.b&&(a.b=(a.modelName.startsWith("Intel")?Afa:a.modelName.startsWith("AMD")?Bfa:Cfa).some(function(c){return c.test(a.modelName)}))},Bfa=[/^AMD A(4|6|8|10|12)/,/^AMD Athlon\(tm\) 5[0-9]{3} APU/,/^AMD Athlon\(tm\) X4/,/^AMD E2-/,/^AMD FX-[0-9]{4}.*R(ADEON|adeon)/,/^AMD FX\(tm\)-4[0-9]{3} Quad-Core Processor/,
/^AMD GX-/,/^AMD Opteron/,/^AMD PRO A(4|6|8|10|12)/,/^AMD Phenom\(tm\) 9/,/^AMD Processor model unknown/,/^AMD RX?-/,/^AMD Sempron/],Afa=[/^Intel\(R\) (Pentium|Celeron)\(R\).*[NJ][0-9]{4} /,/^Intel\(R\) Atom\(TM\)/,/^Intel\(R\) Core\(TM\) ([im][357]|M)-[0-9]*Y[0-9]*/,/^Intel\(R\) Core\(TM\) i3-[23][0-9]{3}M/,/^Intel\(R\) Core\(TM\) i3-[3-7][0-9]+U/,/^Intel\(R\) Core\(TM\) i[357] CPU +[MUQLX] [0-9]{3} /,/^Intel\(R\) Core\(TM\) i[57]-2[0-9]{3}M/,/^Intel\(R\) Core\(TM\) i[57]-[3-5][0-9]+U/,/^Intel\(R\) Core\(TM\)2/,
/^Intel\(R\) Pentium\(R\) CPU [34][0-9]{3}[UY]/,/^Intel\(R\) Processor 5Y/],Cfa=[/^.+AMD Opteron/,/^Genuine Intel\(R\) CPU[ 0]+@/,/^HP Hexa-Core 2\.0GHz/,/^Quad-Core Processor \(up to 1.4GHz\)/,/^Rockchip \(Device Tree\)/,/^SAMSUNG EXYNOS/,/^Snapdragon/,/^Unknown x86 device/];var VH={lp:0,Tn:1,TIMEOUT:2,ERROR:3,Aw:4,ju:5,kp:6,rv:7,Rn:8,Mn:9,Ku:10,Py:11,Pz:12,ky:13,Ht:14,ov:15,aw:16,cA:17,Mt:18,Xv:19,jz:20,gx:21,Eu:22,kv:23,Fx:24,uz:25,oz:26,ro:27,jo:28,Zz:29,Oy:30,qx:31,du:32,Ln:33,aA:34,to:35,oA:36,hA:37,Qv:38,Pv:39,Rv:40,kA:41,ny:42,fv:43,lv:44,iA:45,Tt:46,tx:47,cy:48,rx:49,dy:50,Vx:51,Xx:52,Wx:53,Zx:54,Yx:55,wz:56,qv:57,qA:58,Dw:59,ow:60,Ut:61,Lt:62,tu:63,vw:64,Iv:65,Gv:66,hw:67,Jv:68,Vt:69,xv:70,bu:71,sx:72,Su:73,mz:74,eu:102,yy:104,Gt:108,vz:109,bw:110,Uw:111,tw:112,
Vw:113,Xw:114,Ww:115,Sx:116,Rx:117,qz:118,Mu:119,pz:120};var WH=function(a,c,b,d){d=void 0===d?"a":d;Y.call(this);this.o=a;this.s=c;this.g=b;this.h=d};q(WH,cF);h=WH.prototype;h.ba=function(){return this.o};h.wa=function(){return this.s};h.getState=function(){return this.h};h.lb=function(a){a!=this.h&&(this.h=a,this.N("U"))};h.getInfo=function(){return this.g};var Dfa={Yv:"INITIAL",Dz:"STARTING",Cz:"STARTED",ew:"INPROGRESS",PAUSED:"PAUSED",STOPPED:"STOPPED",FINISHED:"FINISHED"},XH=function(a,c,b){X.call(this,"V");this.state=a;this.b=c;this.f=b};x(XH,X);var YH=function(){Y.call(this);this.cb=this.fa=null};q(YH,Y);h=YH.prototype;h.Ub=function(){throw Error("getStream not supported on LocalSession");};h.Id=function(){};h.start=function(){};h.af=function(){};h.Qe=function(){};h.Dj=function(){};h.sm=function(){};h.Ym=function(){return!1};h.Zk=function(){};h.ln=function(){};h.Dl=function(){return null};h.ga=function(a){this.cb=a};h.Jl=function(){return null};h.rm=function(){return new UH};var ZH=function(a,c){X.call(this,"X");this.b=a;this.f=c};
q(ZH,X);var $H=function(a){X.call(this,"Y");this.b=a};q($H,X);var aI=function(a){X.call(this,"$");this.fb=a};q(aI,X);var bI=function(a,c,b){X.call(this,"Z");this.j=a;this.b=c;this.f=b};q(bI,X);var cI=function(a,c,b){X.call(this,"W");this.Qa=a;this.label=c;this.payload=b};q(cI,X);var dI=function(a){X.call(this,"da");this.b=a};q(dI,X);var eI=function(){this.g=this.f=this.h=this.m=this.b=null},Efa=function(a,c){a.b=c;return a};eI.prototype.tc=function(){return this.f};eI.prototype.j=function(a){this.b&&S(a,14,this.b);this.h&&S(a,16,this.h);this.f&&S(a,22,this.f);this.g&&S(a,23,this.g)};eI.prototype.toString=function(){return"{ ParticipantLogId: "+(this.b||"")+", MucJid: "+(this.m||"")+", SyntheticId: "+(this.h||"")+", MeetingCode: "+(this.f||"")+", MeetingSpaceId: "+(this.g||"")+" }"};var fI=function(){Y.apply(this,arguments)};q(fI,Y);h=fI.prototype;h.pause=function(){};h.resume=function(){};h.Ub=function(){throw Error("getStream not supported on RemoteSession");};h.Il=function(){return Yu("Not implemented")};h.om=function(){};var gI=function(a,c,b){X.call(this,"ga");this.Lb=z(a);this.Eb=z(c);this.removed=z(b)};q(gI,X);var hI=function(a){X.call(this,"ha");this.b=z(a)};q(hI,X);var iI=function(a){N(this,a,0,-1,null,null)};x(iI,M);iI.prototype.u=function(){var a=new D;jI(this,a);return F(a)};var jI=function(a,c){var b=O(a,1);null!=b&&c.h(1,b);b=O(a,2);null!=b&&c.h(2,b);b=O(a,3);null!=b&&c.h(3,b)};var kI=function(a){N(this,a,0,-1,null,null)};x(kI,M);kI.prototype.u=function(){var a=new D;lI(this,a);return F(a)};var lI=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b)};var mI=function(a){N(this,a,0,-1,null,null)};x(mI,M);mI.prototype.u=function(){var a=new D;nI(this,a);return F(a)};var nI=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&c.f(2,b);b=T(a,kI,3);null!=b&&c.b(3,b,lI)};var oI=function(a){N(this,a,0,-1,Ffa,null)};x(oI,M);var pI=function(a){N(this,a,0,-1,null,null)};x(pI,M);var Ffa=[8,10];oI.prototype.u=function(){var a=new D;qI(this,a);return F(a)};
var qI=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&J(c,3,b);b=O(a,5);null!=b&&c.f(5,b);b=O(a,6);null!=b&&c.f(6,b);b=O(a,7);null!=b&&c.f(7,b);b=U(a,pI,8);0<b.length&&L(c,8,b,rI);b=O(a,9);null!=b&&I(c,9,b);b=O(a,10);0<b.length&&Sk(c,10,b);b=T(a,mI,11);null!=b&&c.b(11,b,nI);b=T(a,mI,12);null!=b&&c.b(12,b,nI)};pI.prototype.u=function(){var a=new D;rI(this,a);return F(a)};var rI=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};
oI.prototype.getName=function(){return O(this,2)};var Gfa=function(a,c){S(a,2,c)};oI.prototype.la=function(){return O(this,3)};oI.prototype.vb=function(a){S(this,3,a)};var Hfa=function(a,c){rl(a,8,c)};var sI=function(a){N(this,a,0,-1,null,null)};x(sI,M);sI.prototype.u=function(){var a=new D;tI(this,a);return F(a)};var tI=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&c.f(4,b)};var uI=function(a){N(this,a,0,-1,Ifa,null)};x(uI,M);var Ifa=[5];uI.prototype.u=function(){var a=new D;vI(this,a);return F(a)};var vI=function(a,c){var b=O(a,2);null!=b&&I(c,2,b);b=a.Tb();null!=b&&c.b(3,b,lI);b=O(a,5);0<b.length&&Ok(c,5,b)};uI.prototype.Tb=function(){return T(this,kI,3)};var wI=function(a){N(this,a,0,-1,null,null)};x(wI,M);wI.prototype.u=function(){var a=new D;xI(this,a);return F(a)};var xI=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=T(a,uI,2);null!=b&&c.b(2,b,vI)};wI.prototype.la=function(){return O(this,1)};wI.prototype.vb=function(a){S(this,1,a)};var yI=function(a){N(this,a,0,-1,null,null)};x(yI,M);yI.prototype.u=function(){var a=new D;zI(this,a);return F(a)};var zI=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&J(c,3,b)};yI.prototype.getId=function(){return O(this,1)};yI.prototype.la=function(){return O(this,3)};yI.prototype.vb=function(a){S(this,3,a)};var AI=function(a){N(this,a,0,-1,null,null)};x(AI,M);AI.prototype.u=function(){var a=new D;BI(this,a);return F(a)};var BI=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&c.f(4,b);b=O(a,5);null!=b&&J(c,5,b);b=O(a,6);null!=b&&c.f(6,b);b=O(a,7);null!=b&&K(c,7,b);b=O(a,8);null!=b&&c.f(8,b);b=O(a,9);null!=b&&J(c,9,b)};AI.prototype.xb=function(){return O(this,4)};AI.prototype.la=function(){return O(this,9)};
AI.prototype.vb=function(a){S(this,9,a)};var CI=function(a){N(this,a,0,-1,Jfa,null)};x(CI,M);var DI=function(a){N(this,a,0,-1,null,null)};x(DI,M);var Jfa=[3,6];CI.prototype.u=function(){var a=new D;EI(this,a);return F(a)};var EI=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=T(a,DI,2);null!=b&&c.b(2,b,FI);b=O(a,3);0<b.length&&Tk(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=U(a,AI,6);0<b.length&&L(c,6,b,BI);b=O(a,7);null!=b&&J(c,7,b)};DI.prototype.u=function(){var a=new D;FI(this,a);return F(a)};
var FI=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};var GI=function(a){N(this,a,0,-1,Kfa,null)};x(GI,M);var Kfa=[3,4,5,6];GI.prototype.u=function(){var a=new D;HI(this,a);return F(a)};var HI=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=T(a,CI,2);null!=b&&c.b(2,b,EI);b=U(a,oI,3);0<b.length&&L(c,3,b,qI);b=U(a,sI,4);0<b.length&&L(c,4,b,tI);b=U(a,yI,5);0<b.length&&L(c,5,b,zI);b=U(a,wI,6);0<b.length&&L(c,6,b,xI);b=T(a,iI,7);null!=b&&c.b(7,b,jI);b=O(a,8);null!=b&&K(c,8,b)};GI.prototype.la=function(){return R(this,1,4)};
GI.prototype.vb=function(a){S(this,1,a)};var II=function(a){N(this,a,0,-1,null,null)};x(II,M);II.prototype.u=function(){var a=new D;JI(this,a);return F(a)};var JI=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&J(c,5,b)};II.prototype.getChannelId=function(){return O(this,1)};II.prototype.Ad=function(){return O(this,4)};var KI=function(a){N(this,a,0,-1,Lfa,null)};x(KI,M);var LI=function(a){N(this,a,0,-1,null,null)};x(LI,M);var MI=function(a){N(this,a,0,-1,Mfa,null)};x(MI,M);var NI=function(a){N(this,a,0,-1,null,null)};x(NI,M);var Lfa=[3,4,5,6,10,16];KI.prototype.u=function(){var a=new D;OI(this,a);return F(a)};
var OI=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=U(a,GI,3);0<b.length&&L(c,3,b,HI);b=U(a,GI,4);0<b.length&&L(c,4,b,HI);b=U(a,II,5);0<b.length&&L(c,5,b,JI);b=O(a,6);0<b.length&&Tk(c,6,b);b=O(a,7);null!=b&&J(c,7,b);b=O(a,9);null!=b&&I(c,9,b);b=O(a,10);0<b.length&&Qk(c,10,b);b=O(a,11);null!=b&&J(c,11,b);b=O(a,12);null!=b&&c.h(12,b);b=O(a,13);null!=b&&K(c,13,b);b=U(a,LI,16);0<b.length&&L(c,16,b,PI);b=O(a,14);null!=b&&J(c,14,b);b=O(a,15);null!=b&&J(c,15,b);b=T(a,MI,17);null!=b&&c.b(17,b,QI);b=T(a,
NI,18);null!=b&&c.b(18,b,RI);b=O(a,19);null!=b&&K(c,19,b)};LI.prototype.u=function(){var a=new D;PI(this,a);return F(a)};var PI=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b)},Mfa=[2];MI.prototype.u=function(){var a=new D;QI(this,a);return F(a)};var QI=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);0<b.length&&Sk(c,2,b)};NI.prototype.u=function(){var a=new D;RI(this,a);return F(a)};var RI=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};
KI.prototype.h=function(){return O(this,1)};KI.prototype.za=function(a){S(this,1,a)};var SI=function(a,c){rl(a,3,c)},TI=function(a,c){S(a,6,c||[])};var UI=function(){this.C=this.h=!0;this.T=!1;this.f=null;this.o=[];this.j=this.g=!1;this.F=null;this.s=!0;this.b=this.O=!1;this.H=[{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.fa=!0;this.ha=new nfa;this.da=this.J=!1;this.L=null;this.D=void 0;this.W=1E4;this.Ua=!1;this.w=this.m=null},VI=function(a){return{useAudio:a.h,useVideo:!0,useData:!0,useVideoRtx:a.C,useAudioUplinkNack:!1,
dumpRtpHeaders:a.T,allowEarlyMedia:!0,earlyMediaHangoutId:a.f,defaultRequests:a.o,useStandardIce:!0,debugLogUploadAllowed:a.g,debugLogUploadForced:a.j,clientResource:a.F,useCallPerf:!1,useSimulcast:a.s,allowSimulcastOnScreencast:a.O,useP2P:a.b,useTURN:!1,startMuted:a.fa,useDtls:a.J,useConferenceMode:!0,AudioDscp:a.m,VideoDscp:a.w,useVirtualAudioSSRCs:!1,allowH264:!1,allowVp9:!1,sendVp9:!1,forceVp9:!1,useAdaptiveLayering_:a.da,useWebrtcCpuAdaptation:!0,useBackendLoudestSpeaker:!0,bandwidthConstraints:a.L,
jmiIntervalMs:a.D,jmiUploadIntervalMs:a.W,shouldHistogramData:a.Ua,allowOnlyRequestedVideo:!1,isTestCall:!1,forceUnifiedPlan:!1,audioJitterBufferMinDelayMs:0,disableDtlsForP2P:!1,audioProcessorConfig:null,screencastMinBitrate:null,audioLevelMode:0,usePassiveListener:!1,passiveModeDelayMillis:500}},WI=function(a){var c=new UI,b;for(b in a)c[b]=a[b];return c},Nfa=function(a){a=WI(a);a.C=!1;return a},XI=function(a,c){if(a.g&&a.j)return a;a=WI(a);a.g=c;return a},YI=function(a){a=WI(a);a.j=!0;return a},
ZI=function(a,c){a=WI(a);a.f=c;return a},Ofa=function(){var a=WI(new UI);a.h=!1;a=WI(a);a.O=!0;return a},Pfa=function(a){a=WI(a);a.J=!0;return a};var $I=function(a,c,b){WH.call(this,c.ba(),c.wa(),c,b);this.f=!1};q($I,WH);var aJ=function(){Y.call(this);this.lc="INITIAL";this.xc=void 0};x(aJ,cF);h=aJ.prototype;
h.Tj=function(){var a=this.j,c=this.getState(),b=this.xc,d=bJ(this),e="INPROGRESS"==this.getState(),f=this.rb(),g=HG(this.f.f.localDescription);var k=this.f;k={hangoutId:k.cb,isInProgress:"INPROGRESS"==k.getState(),remoteJid:k.fa,sessionId:k.g,state:k.getState()};var m=VI(this.getOptions()),p=z(this.ua).map(String);var v=this.h;v={id:v.g,isInProgress:"INPROGRESS"==v.getState(),state:v.getState()};return{state:c,endCause:b,id:d,isInProgress:e,localId:f,localDescription:g,localSession:k,options:m,remoteAudioCodecs:p,
remoteSession:v,remoteSessionDescription:a&&HG(a),useEarlyMedia:null!==this.g.f&&0<this.g.o.length}};h.getState=function(){return this.lc};h.Tm=Qa;h.Rm=function(){throw Error("Unimplemented");};h.Sm=sc(0);h.cm=sc(!1);var cJ=function(a){X.call(this,"qa");this.fb=a};x(cJ,X);var dJ=function(a){X.call(this,"sa");this.sessionId=a};x(dJ,X);var eJ=function(a){X.call(this,"ka");this.id=a};x(eJ,X);var fJ=function(a){X.call(this,"la");this.sessionDescription=a};x(fJ,X);
var gJ=function(a,c,b){X.call(this,"xa");this.al=a;this.Xm=c;this.sessionId=b||null};x(gJ,X);var hJ=function(){X.call(this,"ta")};x(hJ,X);var iJ=function(a,c){X.call(this,"pa");this.b=a;this.sessionId=c};x(iJ,X);var jJ=function(a){X.call(this,"ma");this.sessionId=a};x(jJ,X);var kJ=function(a){X.call(this,"oa");this.message=a};x(kJ,X);var lJ=function(){if(Je){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(Xd))?a[1]:"0"}return Ie?(a=/10[_.][0-9_.]+/,(a=a.exec(Xd))?a[0].replace(/_/g,"."):"10"):Le?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(Xd))?a[1]:""):Me||Ne||Oe?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(Xd))?a[1].replace(/_/g,"."):""):""}();var mJ=function(a){this.width=a.g;this.height=a.f;this.frameRate=a.b};mJ.prototype.toString=function(){return"VideoShape(width="+this.width+", height="+this.height+", "+("frameRate="+this.frameRate+")")};mJ.prototype.toJson=function(){return{width:this.width,height:this.height,frameRate:this.frameRate}};mJ.prototype.equals=function(a){return!!a&&this.width==a.width&&this.height==a.height&&this.frameRate==a.frameRate};var nJ=function(){this.b=this.f=this.g=null};nJ.prototype.aa=function(){return new mJ(this)};
var oJ=function(a,c){a.g=c;return a},pJ=function(a,c){a.f=c;return a},qJ=function(a,c){a.b=c;return a};var rJ=function(){this.b=[]};rJ.prototype.push=function(a){this.b.push(a)};rJ.prototype.extend=function(a){this.b=[].concat(n(this.b),n(a.b))};rJ.prototype.search=function(a,c){for(var b=l(this.b),d=b.next();!d.done;d=b.next())if(d=d.value,d.name.test(a)||d.f.test(c))return d.b;return qJ(pJ(oJ(new nJ,Infinity),Infinity),Infinity).aa()};rJ.prototype.isSupported=function(a){for(var c=l(this.b),b=c.next();!b.done;b=c.next())if(b=b.value,b.name.test(a)&&null!=b.isSupported)return b.isSupported;return!0};
var Qfa=function(a,c,b,d,e,f){this.name=sJ(a);this.f=sJ(c);this.isSupported=f;this.b=qJ(pJ(oJ(new nJ,b?b:Infinity),d?d:Infinity),e?e:Infinity).aa()};function sJ(a){return a?(a=String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08").replace(/\\\*/g,".*"),new RegExp("^"+a+"$","im")):/1^/};var tJ=function(a){N(this,a,0,-1,null,null)};x(tJ,M);tJ.prototype.u=function(){var a=new D;uJ(this,a);return F(a)};var uJ=function(a,c){a=O(a,1);null!=a&&Hk(c,1,a)};var vJ=function(a){N(this,a,0,-1,null,null)};x(vJ,M);vJ.prototype.u=function(){var a=new D;wJ(this,a);return F(a)};var wJ=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&J(c,3,b)};var xJ=function(a){N(this,a,0,-1,null,null)};x(xJ,M);xJ.prototype.u=function(){var a=new D;yJ(this,a);return F(a)};var yJ=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&Jk(c,3,b)};var zJ=function(a){N(this,a,0,-1,null,null)};x(zJ,M);zJ.prototype.u=function(){var a=new D;AJ(this,a);return F(a)};var AJ=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=T(a,vJ,3);null!=b&&c.b(3,b,wJ);b=T(a,xJ,4);null!=b&&c.b(4,b,yJ)};var BJ=function(a){N(this,a,0,-1,null,null)};x(BJ,M);var CJ=function(a){N(this,a,0,-1,null,null)};x(CJ,M);var DJ=function(a){N(this,a,0,-1,null,null)};x(DJ,M);var EJ=function(a){N(this,a,0,-1,null,null)};x(EJ,M);var FJ=function(a){N(this,a,0,-1,null,null)};x(FJ,M);var GJ=function(a){N(this,a,0,-1,null,null)};x(GJ,M);BJ.prototype.u=function(){var a=new D;HJ(this,a);return F(a)};
var HJ=function(a,c){var b=T(a,CJ,1);null!=b&&c.b(1,b,IJ);b=T(a,DJ,2);null!=b&&c.b(2,b,JJ);b=T(a,EJ,3);null!=b&&c.b(3,b,KJ);b=O(a,4);null!=b&&H(c,4,b);b=T(a,FJ,5);null!=b&&c.b(5,b,LJ);b=T(a,GJ,6);null!=b&&c.b(6,b,MJ)};CJ.prototype.u=function(){var a=new D;IJ(this,a);return F(a)};
var IJ=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&I(c,2,b);b=O(a,3);null!=b&&I(c,3,b);b=O(a,4);null!=b&&J(c,4,b);b=O(a,5);null!=b&&H(c,5,b);b=O(a,6);null!=b&&K(c,6,b);b=O(a,7);null!=b&&I(c,7,b);b=O(a,8);null!=b&&H(c,8,b);b=O(a,9);null!=b&&H(c,9,b);b=O(a,10);null!=b&&H(c,10,b);b=O(a,11);null!=b&&J(c,11,b);b=O(a,12);null!=b&&J(c,12,b);b=O(a,13);null!=b&&I(c,13,b);b=O(a,14);null!=b&&I(c,14,b);b=O(a,15);null!=b&&I(c,15,b)};DJ.prototype.u=function(){var a=new D;JJ(this,a);return F(a)};
var JJ=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&I(c,2,b)};EJ.prototype.u=function(){var a=new D;KJ(this,a);return F(a)};var KJ=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&J(c,2,b)};FJ.prototype.u=function(){var a=new D;LJ(this,a);return F(a)};var LJ=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&I(c,2,b);b=O(a,3);null!=b&&J(c,3,b)};GJ.prototype.u=function(){var a=new D;MJ(this,a);return F(a)};var MJ=function(a,c){a=O(a,1);null!=a&&I(c,1,a)};var NJ=function(a){N(this,a,0,-1,null,null)};x(NJ,M);NJ.prototype.u=function(){var a=new D;OJ(this,a);return F(a)};var OJ=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&H(c,2,b);b=O(a,3);null!=b&&H(c,3,b);b=O(a,4);null!=b&&J(c,4,b);b=O(a,5);null!=b&&J(c,5,b);b=O(a,6);null!=b&&J(c,6,b);b=O(a,7);null!=b&&K(c,7,b);b=O(a,8);null!=b&&K(c,8,b);b=O(a,9);null!=b&&J(c,9,b);b=O(a,10);null!=b&&J(c,10,b)};var PJ=function(a){N(this,a,0,-1,null,null)};x(PJ,M);PJ.prototype.u=function(){var a=new D;QJ(this,a);return F(a)};var QJ=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&I(c,3,b)};PJ.prototype.setEnabled=function(a){S(this,3,a)};var RJ=function(a){N(this,a,0,-1,null,null)};x(RJ,M);RJ.prototype.u=function(){var a=new D;SJ(this,a);return F(a)};var SJ=function(a,c){a=O(a,1);null!=a&&I(c,1,a)};var TJ=function(a){N(this,a,0,-1,Rfa,null)};x(TJ,M);var Rfa=[2,6];TJ.prototype.u=function(){var a=new D;UJ(this,a);return F(a)};var UJ=function(a,c){var b=O(a,1);null!=b&&H(c,1,b);b=O(a,2);0<b.length&&Tk(c,2,b);b=U(a,PJ,6);0<b.length&&L(c,6,b,QJ);b=O(a,3);null!=b&&I(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&I(c,5,b);b=T(a,RJ,7);null!=b&&c.b(7,b,SJ)};var VJ=function(a){N(this,a,0,-1,null,null)};x(VJ,M);VJ.prototype.u=function(){var a=new D;WJ(this,a);return F(a)};var WJ=function(a,c){a=O(a,1);null!=a&&K(c,1,a)};VJ.prototype.getId=function(){return O(this,1)};var XJ=function(a){N(this,a,0,-1,null,null)};x(XJ,M);XJ.prototype.u=function(){var a=new D;YJ(this,a);return F(a)};
var YJ=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=T(a,VJ,6);null!=b&&c.b(6,b,WJ);b=O(a,7);null!=b&&K(c,7,b);b=O(a,8);null!=b&&K(c,8,b);b=O(a,9);null!=b&&K(c,9,b);b=O(a,12);null!=b&&K(c,12,b);b=O(a,10);null!=b&&K(c,10,b);b=O(a,11);null!=b&&K(c,11,b);b=O(a,13);null!=b&&K(c,13,b);b=O(a,14);null!=b&&K(c,14,b);b=O(a,15);null!=b&&K(c,15,b);b=O(a,16);null!=b&&K(c,16,b)};h=XJ.prototype;
h.za=function(a){S(this,2,a)};h.ma=function(){return O(this,3)};h.ga=function(a){S(this,3,a)};h.ba=function(){return O(this,4)};h.Na=function(a){S(this,4,a)};h.rb=function(){return O(this,10)};h.tc=function(){return O(this,13)};var ZJ=function(a){N(this,a,0,-1,null,null)};x(ZJ,M);ZJ.prototype.u=function(){var a=new D;$J(this,a);return F(a)};var $J=function(a,c){var b=O(a,4);null!=b&&J(c,4,b);b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&H(c,3,b)};ZJ.prototype.getId=function(){return O(this,4)};var aK=function(a){N(this,a,0,-1,null,null)};x(aK,M);aK.prototype.u=function(){var a=new D;bK(this,a);return F(a)};var bK=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&H(c,2,b)};aK.prototype.getId=function(){return O(this,1)};var cK=function(a){N(this,a,0,-1,Sfa,null)};x(cK,M);var Sfa=[1,2,3];cK.prototype.u=function(){var a=new D;dK(this,a);return F(a)};var dK=function(a,c){var b=U(a,ZJ,1);0<b.length&&L(c,1,b,$J);b=U(a,aK,2);0<b.length&&L(c,2,b,bK);b=O(a,3);0<b.length&&Sk(c,3,b)},eK=function(a,c){S(a,3,c||[])};var fK=function(a){N(this,a,0,-1,null,null)};x(fK,M);fK.prototype.u=function(){var a=new D;gK(this,a);return F(a)};var gK=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b)};var hK=function(a){N(this,a,0,-1,null,null)};x(hK,M);hK.prototype.u=function(){var a=new D;iK(this,a);return F(a)};var iK=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&J(c,3,b);b=O(a,4);null!=b&&c.f(4,b)};var jK=function(a){N(this,a,0,-1,null,null)};x(jK,M);jK.prototype.u=function(){var a=new D;kK(this,a);return F(a)};var kK=function(a,c){a=O(a,1);null!=a&&I(c,1,a)};var lK=function(a){N(this,a,0,-1,null,null)};x(lK,M);lK.prototype.u=function(){var a=new D;mK(this,a);return F(a)};var mK=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b);b=T(a,WC,5);null!=b&&c.b(5,b,yD)};var nK=function(a){N(this,a,0,-1,null,null)};x(nK,M);nK.prototype.u=function(){var a=new D;oK(this,a);return F(a)};var oK=function(a,c){a=O(a,1);null!=a&&K(c,1,a)};var pK=function(a){N(this,a,0,-1,null,null)};x(pK,M);pK.prototype.u=function(){var a=new D;qK(this,a);return F(a)};var qK=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b);b=T(a,nK,5);null!=b&&c.b(5,b,oK)};var rK=function(a){N(this,a,0,-1,null,null)};x(rK,M);rK.prototype.u=function(){var a=new D;sK(this,a);return F(a)};var sK=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b)};var tK=function(a){N(this,a,0,-1,null,null)};x(tK,M);tK.prototype.u=function(){var a=new D;uK(this,a);return F(a)};var uK=function(a,c){var b=O(a,1);null!=b&&c.h(1,b);b=O(a,2);null!=b&&c.h(2,b);b=O(a,3);null!=b&&c.h(3,b);b=O(a,4);null!=b&&Ik(c,4,b);b=O(a,5);null!=b&&Lk(c,5,b);b=O(a,6);null!=b&&Ik(c,6,b)};var vK=function(a){N(this,a,0,-1,Tfa,null)};x(vK,M);var Tfa=[2];vK.prototype.u=function(){var a=new D;wK(this,a);return F(a)};var wK=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=U(a,tK,2);0<b.length&&L(c,2,b,uK);b=O(a,3);null!=b&&c.h(3,b);b=O(a,4);null!=b&&J(c,4,b)};var xK=function(a){N(this,a,0,-1,Ufa,null)};x(xK,M);var Ufa=[1];xK.prototype.u=function(){var a=new D;yK(this,a);return F(a)};var yK=function(a,c){var b=O(a,1);0<b.length&&Sk(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&c.h(3,b)};var zK=function(a){N(this,a,0,-1,Vfa,null)};x(zK,M);var Vfa=[2,4];zK.prototype.u=function(){var a=new D;AK(this,a);return F(a)};var AK=function(a,c){var b=O(a,1);null!=b&&Ik(c,1,b);b=O(a,2);0<b.length&&Qk(c,2,b);b=O(a,3);null!=b&&c.h(3,b);b=U(a,xK,4);0<b.length&&L(c,4,b,yK);b=O(a,5);null!=b&&c.h(5,b);b=O(a,6);null!=b&&c.h(6,b)};zK.prototype.getId=function(){return O(this,1)};var BK=function(a){N(this,a,0,-1,null,null)};x(BK,M);BK.prototype.u=function(){var a=new D;CK(this,a);return F(a)};var CK=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&I(c,2,b);b=O(a,3);null!=b&&I(c,3,b);b=O(a,4);null!=b&&I(c,4,b)};var DK=function(a){N(this,a,0,-1,null,null)};x(DK,M);DK.prototype.u=function(){var a=new D;EK(this,a);return F(a)};var EK=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&c.h(2,b);b=O(a,3);null!=b&&c.h(3,b)};var FK=function(a){N(this,a,0,-1,null,null)};x(FK,M);FK.prototype.u=function(){var a=new D;GK(this,a);return F(a)};var GK=function(a,c){var b=O(a,1);null!=b&&Ik(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&c.f(3,b)};FK.prototype.getId=function(){return O(this,1)};var HK=function(a){N(this,a,0,-1,null,null)};x(HK,M);var IK=function(a){N(this,a,0,-1,null,null)};x(IK,M);var JK=function(a){N(this,a,0,-1,null,null)};x(JK,M);HK.prototype.u=function(){var a=new D;KK(this,a);return F(a)};
var KK=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&K(c,2,b);b=T(a,IK,3);null!=b&&c.b(3,b,LK);b=T(a,fK,4);null!=b&&c.b(4,b,gK);b=T(a,lK,5);null!=b&&c.b(5,b,mK);b=T(a,jK,6);null!=b&&c.b(6,b,kK);b=T(a,BK,7);null!=b&&c.b(7,b,CK);b=T(a,pK,8);null!=b&&c.b(8,b,qK);b=T(a,FK,9);null!=b&&c.b(9,b,GK);b=T(a,vK,10);null!=b&&c.b(10,b,wK);b=T(a,DK,11);null!=b&&c.b(11,b,EK);b=T(a,zK,12);null!=b&&c.b(12,b,AK);b=T(a,rK,13);null!=b&&c.b(13,b,sK);b=T(a,nK,14);null!=b&&c.b(14,b,oK);b=T(a,hK,15);null!=
b&&c.b(15,b,iK)};IK.prototype.u=function(){var a=new D;LK(this,a);return F(a)};var LK=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&J(c,3,b);b=T(a,JK,4);null!=b&&c.b(4,b,MK);b=O(a,5);null!=b&&J(c,5,b);b=T(a,hE,6);null!=b&&c.b(6,b,iE)};JK.prototype.u=function(){var a=new D;MK(this,a);return F(a)};var MK=function(a,c){a=O(a,1);null!=a&&c.f(1,a)};HK.prototype.Li=function(){return O(this,2)};var NK=function(a){N(this,a,0,-1,null,null)};x(NK,M);NK.prototype.u=function(){var a=new D;OK(this,a);return F(a)};var OK=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&c.f(4,b);b=O(a,5);null!=b&&c.f(5,b);b=O(a,6);null!=b&&c.f(6,b);b=O(a,7);null!=b&&c.f(7,b);b=O(a,8);null!=b&&c.f(8,b);b=O(a,9);null!=b&&c.f(9,b);b=O(a,10);null!=b&&c.f(10,b);b=O(a,11);null!=b&&c.f(11,b)};var PK=function(a){N(this,a,0,-1,null,null)};x(PK,M);PK.prototype.u=function(){var a=new D;QK(this,a);return F(a)};var QK=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&Hk(c,3,b);b=O(a,4);null!=b&&I(c,4,b)};var RK=function(a){N(this,a,0,-1,null,null)};x(RK,M);RK.prototype.u=function(){var a=new D;SK(this,a);return F(a)};
var SK=function(a,c){var b=T(a,XJ,1);null!=b&&c.b(1,b,YJ);b=T(a,QC,2);null!=b&&c.b(2,b,cD);b=T(a,kH,3);null!=b&&c.b(3,b,lH);b=T(a,EH,13);null!=b&&c.b(13,b,FH);b=T(a,CH,10);null!=b&&c.b(10,b,DH);b=T(a,mH,4);null!=b&&c.b(4,b,pH);b=T(a,sH,5);null!=b&&c.b(5,b,vH);b=T(a,yH,6);null!=b&&c.b(6,b,AH);b=T(a,IH,7);null!=b&&c.b(7,b,MH);b=T(a,HK,8);null!=b&&c.b(8,b,KK);b=T(a,TJ,9);null!=b&&c.b(9,b,UJ);b=T(a,PK,11);null!=b&&c.b(11,b,QK);b=T(a,NK,12);null!=b&&c.b(12,b,OK);b=T(a,cK,14);null!=b&&c.b(14,b,dK);b=T(a,
NJ,15);null!=b&&c.b(15,b,OJ);b=T(a,SD,16);null!=b&&c.b(16,b,ZD)};var TK=function(a){N(this,a,0,-1,null,null)};x(TK,M);TK.prototype.u=function(){var a=new D;UK(this,a);return F(a)};var UK=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,7);null!=b&&Ik(c,7,b)};TK.prototype.getId=function(){return O(this,1)};var VK=function(a){N(this,a,0,-1,null,null)};x(VK,M);VK.prototype.u=function(){var a=new D;WK(this,a);return F(a)};var WK=function(a,c){var b=O(a,21);null!=b&&J(c,21,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&J(c,3,b);b=O(a,4);null!=b&&I(c,4,b)};var XK=function(a){N(this,a,0,-1,null,null)};x(XK,M);XK.prototype.u=function(){var a=new D;YK(this,a);return F(a)};var YK=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&J(c,4,b);b=O(a,5);null!=b&&H(c,5,b);b=O(a,6);null!=b&&I(c,6,b);b=O(a,7);null!=b&&K(c,7,b);b=O(a,8);null!=b&&J(c,8,b);b=O(a,9);null!=b&&I(c,9,b)};var ZK=function(a){N(this,a,0,-1,null,null)};x(ZK,M);ZK.prototype.u=function(){var a=new D;$K(this,a);return F(a)};var $K=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=T(a,XK,2);null!=b&&c.b(2,b,YK);b=T(a,VK,5);null!=b&&c.b(5,b,WK);b=O(a,6);null!=b&&c.f(6,b);b=O(a,7);null!=b&&J(c,7,b);b=O(a,8);null!=b&&J(c,8,b);b=O(a,9);null!=b&&Ik(c,9,b);b=O(a,10);null!=b&&J(c,10,b);b=O(a,11);null!=b&&Ik(c,11,b)};var aL=function(a){N(this,a,0,-1,null,null)};x(aL,M);aL.prototype.u=function(){var a=new D;bL(this,a);return F(a)};var bL=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&J(c,2,b)};var cL=function(a){N(this,a,0,-1,null,null)};x(cL,M);cL.prototype.u=function(){var a=new D;dL(this,a);return F(a)};var dL=function(a,c){a=O(a,1);null!=a&&c.f(1,a)};var eL=function(a){N(this,a,0,-1,null,null)};x(eL,M);eL.prototype.u=function(){var a=new D;fL(this,a);return F(a)};var fL=function(a,c){var b=O(a,1);null!=b&&H(c,1,b);b=O(a,2);null!=b&&I(c,2,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,6);null!=b&&K(c,6,b)};var gL=function(a){N(this,a,0,-1,null,null)};x(gL,M);gL.prototype.u=function(){var a=new D;hL(this,a);return F(a)};var hL=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&c.f(3,b)};gL.prototype.getName=function(){return O(this,1)};gL.prototype.setSize=function(a){S(this,2,a)};var iL=function(a){N(this,a,0,-1,Wfa,null)};x(iL,M);var Wfa=[12,10,26,31];iL.prototype.u=function(){var a=new D;jL(this,a);return F(a)};
var jL=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=T(a,VJ,2);null!=b&&c.b(2,b,WJ);b=O(a,20);null!=b&&K(c,20,b);b=O(a,3);null!=b&&J(c,3,b);b=O(a,12);0<b.length&&Sk(c,12,b);b=O(a,4);null!=b&&J(c,4,b);b=O(a,5);null!=b&&J(c,5,b);b=O(a,6);null!=b&&c.f(6,b);b=O(a,7);null!=b&&J(c,7,b);b=O(a,8);null!=b&&K(c,8,b);b=O(a,9);null!=b&&K(c,9,b);b=U(a,eL,10);0<b.length&&L(c,10,b,fL);b=a.wa();null!=b&&c.b(13,b,fL);b=O(a,11);null!=b&&Jk(c,11,b);b=O(a,14);null!=b&&K(c,14,b);b=O(a,15);null!=b&&Jk(c,15,b);b=O(a,16);
null!=b&&c.h(16,b);b=O(a,17);null!=b&&J(c,17,b);b=O(a,18);null!=b&&I(c,18,b);b=O(a,19);null!=b&&Jk(c,19,b);b=O(a,21);null!=b&&J(c,21,b);b=T(a,ZK,22);null!=b&&c.b(22,b,$K);b=O(a,23);null!=b&&J(c,23,b);b=T(a,TK,24);null!=b&&c.b(24,b,UK);b=O(a,25);null!=b&&K(c,25,b);b=U(a,gL,26);0<b.length&&L(c,26,b,hL);b=T(a,cL,27);null!=b&&c.b(27,b,dL);b=O(a,28);null!=b&&Ik(c,28,b);b=O(a,29);null!=b&&K(c,29,b);b=O(a,30);null!=b&&K(c,30,b);b=U(a,ZK,31);0<b.length&&L(c,31,b,$K);b=T(a,aL,32);null!=b&&c.b(32,b,bL)};
iL.prototype.ma=function(){return O(this,20)};iL.prototype.ga=function(a){S(this,20,a)};iL.prototype.setDestination=function(a){S(this,5,a)};iL.prototype.wa=function(){return T(this,eL,13)};var kL=function(a){N(this,a,0,-1,null,null)};x(kL,M);kL.prototype.u=function(){var a=new D;var c=T(this,RK,1);null!=c&&a.b(1,c,SK);c=T(this,iL,2);null!=c&&a.b(2,c,jL);c=T(this,BJ,3);null!=c&&a.b(3,c,HJ);c=T(this,tJ,4);null!=c&&a.b(4,c,uJ);c=T(this,cA,5);null!=c&&a.b(5,c,dA);c=T(this,zJ,6);null!=c&&a.b(6,c,AJ);return F(a)};var Z={},Xfa=(Z[264]=4,Z[275]=4,Z[1579]=4,Z[2360]=4,Z[2359]=3,Z[1781]=1,Z[1169]=1,Z[1167]=7,Z[2053]=1,Z[2054]=1,Z[1168]=1,Z[2052]=2,Z[1177]=1,Z[1199]=7,Z[2245]=2,Z[1175]=1,Z[1176]=7,Z[1172]=1,Z[1173]=1,Z[1174]=1,Z[1184]=1,Z[1183]=1,Z[1182]=1,Z[1181]=1,Z[1180]=1,Z[1179]=1,Z[1178]=1,Z[1827]=1,Z[1171]=1,Z[1170]=1,Z[1387]=6,Z[649]=6,Z[640]=6,Z[584]=6,Z[2173]=4,Z[1591]=6,Z[574]=7,Z[597]=3,Z[2175]=3,Z[1495]=4,Z[588]=6,Z[575]=4,Z[587]=6,Z[572]=7,Z[598]=6,Z[1580]=3,Z[2754]=6,Z[1260]=3,Z[1584]=3,Z[1871]=1,
Z[2190]=1,Z[2187]=1,Z[2191]=1,Z[2188]=1,Z[2186]=1,Z[288]=6,Z[2962]=3,Z[2840]=6,Z[1080]=4,Z[1081]=6,Z[2055]=7,Z[2056]=7,Z[2494]=4,Z[2496]=7,Z[2679]=4,Z[2495]=4,Z[1518]=3,Z[1079]=4,Z[2686]=6,Z[1528]=4,Z[1595]=6,Z[1541]=4,Z[1520]=4,Z[1519]=6,Z[2687]=7,Z[2788]=3,Z[2789]=4,Z[2970]=3,Z[2971]=3,Z[2972]=3,Z[2796]=3,Z[2797]=3,Z[2960]=3,Z[2794]=3,Z[990]=4,Z[1227]=6,Z[2704]=4,Z[2705]=6,Z[2706]=6,Z[2707]=7,Z[2703]=4,Z[783]=4,Z[784]=4,Z[782]=4,Z[2805]=6,Z[2806]=4,Z[4708]=6,Z[4711]=6,Z[4749]=6,Z[4163]=4,Z[4578]=
6,Z[4730]=6,Z[2124]=6,Z[2123]=6,Z[2126]=6,Z[2125]=6,Z[4408]=6,Z[4410]=6,Z[3839]=6,Z[4631]=6,Z[4630]=1,Z[41]=6,Z[4411]=4,Z[4589]=1,Z[3341]=1,Z[3342]=1,Z[4664]=7,Z[4609]=7,Z[4030]=7,Z[4782]=7,Z[4031]=7,Z[4610]=7,Z[4286]=3,Z[3906]=7,Z[3908]=7,Z[3682]=7,Z[3907]=7,Z[4263]=3,Z[4417]=7,Z[3948]=7,Z[3950]=7,Z[4419]=7,Z[3939]=7,Z[3941]=7,Z[3940]=7,Z[3942]=7,Z[3949]=7,Z[3945]=7,Z[3947]=7,Z[3946]=7,Z[3943]=7,Z[3944]=7,Z[4418]=7,Z[3951]=7,Z[4633]=6,Z[4632]=1,Z[4590]=1,Z[4592]=6,Z[4591]=1,Z[3854]=1,Z[3853]=1,Z[3855]=
1,Z[3856]=1,Z[3857]=1,Z[315]=6,Z[3215]=6,Z[4161]=6,Z[4588]=6,Z[3220]=4,Z[3221]=4,Z[4080]=6,Z[3053]=4,Z[3055]=6,Z[3054]=4,Z[4355]=4,Z[4384]=6,Z[4387]=6,Z[3799]=2,Z[4599]=7,Z[4335]=4,Z[4336]=4,Z[4183]=4,Z[4242]=7,Z[4579]=6,Z[4580]=3,Z[3918]=6,Z[3916]=3,Z[4212]=4,Z[3917]=3,Z[4680]=4,Z[4359]=3,Z[4358]=7,Z[4204]=6,Z[4205]=4,Z[4516]=6,Z[4682]=7,Z[4759]=4,Z[4760]=7,Z[4761]=4,Z[4292]=4,Z[4293]=7,Z[4294]=4,Z[4289]=4,Z[4290]=7,Z[4291]=4,Z[4628]=6,Z[4629]=4,Z[3746]=6,Z[3762]=4,Z[4472]=6,Z[4350]=6,Z[4351]=3,
Z[4348]=6,Z[4349]=3,Z[4433]=6,Z[4434]=3,Z[4352]=6,Z[4353]=3,Z[4223]=3,Z[4224]=3,Z[4225]=3,Z[4301]=1,Z[4304]=1,Z[4305]=1,Z[4302]=1,Z[4303]=1,Z[4306]=1,Z[4265]=1,Z[4268]=1,Z[4266]=1,Z[4269]=1,Z[4267]=1,Z[3679]=7,Z[3680]=3,Z[3134]=3,Z[3135]=3,Z[3735]=3,Z[3734]=3,Z[4611]=4,Z[4360]=3,Z[3834]=4,Z[3833]=6,Z[4354]=7,Z[4460]=6,Z[4478]=6,Z[4477]=6,Z[4476]=6,Z[4481]=6,Z[4480]=6,Z[4461]=6,Z[4462]=6,Z[4463]=7,Z[4464]=6,Z[4475]=6,Z[4465]=6,Z[4479]=7,Z[4466]=6,Z[4471]=6,Z[4208]=6,Z[4526]=6,Z[4209]=4,Z[4201]=6,Z[4139]=
6,Z[4167]=6,Z[3958]=3,Z[4005]=3,Z[3956]=6,Z[4211]=7,Z[4210]=4,Z[4236]=6,Z[4179]=7,Z[4788]=6,Z[4435]=6,Z[4202]=4,Z[3911]=6,Z[4216]=6,Z[4235]=3,Z[4126]=6,Z[4127]=3,Z[4213]=6,Z[4214]=6,Z[4215]=6,Z[4164]=6,Z[4558]=6,Z[4555]=6,Z[4604]=6,Z[4165]=3,Z[4559]=6,Z[4556]=6,Z[4605]=6,Z[4557]=6,Z[4554]=6,Z[4603]=6,Z[3763]=3,Z[3651]=7,Z[4513]=6,Z[4681]=4,Z[3748]=6,Z[4118]=6,Z[4119]=3,Z[4116]=6,Z[4117]=3,Z[4431]=6,Z[4432]=3,Z[4120]=6,Z[4121]=3,Z[4381]=6,Z[4379]=4,Z[4734]=6,Z[4737]=6,Z[3511]=6,Z[3510]=6,Z[4128]=6,
Z[3061]=7,Z[3062]=4,Z[3359]=6,Z[4787]=6,Z[3526]=7,Z[4663]=7,Z[3915]=7,Z[3914]=7,Z[3525]=7,Z[4207]=2,Z[4206]=7,Z[3952]=7,Z[3439]=7,Z[3798]=4,Z[3438]=4,Z[3832]=7,Z[3852]=4,Z[3848]=7,Z[3825]=6,Z[3782]=4,Z[3672]=6,Z[3677]=7,Z[3829]=6,Z[4333]=6,Z[4009]=6,Z[4010]=4,Z[3480]=6,Z[4309]=6,Z[4308]=6,Z[4307]=6,Z[3463]=5,Z[3466]=5,Z[3462]=5,Z[3464]=5,Z[3465]=5,Z[3460]=5,Z[3459]=5,Z[3461]=5,Z[3775]=6,Z[3458]=7,Z[4088]=6,Z[4087]=6,Z[4086]=6,Z[3632]=3,Z[3631]=3,Z[4314]=6,Z[3633]=4,Z[3733]=6,Z[3611]=3,Z[3612]=6,Z[3610]=
3,Z[3613]=7,Z[3619]=7,Z[3549]=3,Z[3550]=6,Z[3808]=6,Z[3809]=6,Z[3803]=7,Z[3804]=7,Z[3802]=1,Z[3800]=1,Z[3812]=1,Z[3960]=6,Z[3801]=1,Z[3810]=7,Z[3811]=6,Z[3961]=1,Z[3927]=6,Z[4102]=1,Z[3806]=7,Z[3807]=7,Z[3805]=1,Z[4137]=6,Z[3725]=3,Z[4103]=1,Z[4101]=1,Z[4849]=6,Z[4094]=6,Z[4096]=6,Z[4100]=6,Z[4098]=6,Z[4568]=6,Z[4399]=6,Z[4400]=6,Z[3473]=6,Z[3470]=6,Z[3496]=6,Z[4011]=6,Z[4012]=4,Z[4688]=6,Z[3688]=6,Z[4547]=8,Z[4013]=7,Z[4619]=3,Z[4553]=3,Z[4582]=6,Z[4618]=6,Z[4552]=6,Z[326]=6,Z[3476]=3,Z[4022]=3,
Z[3475]=3,Z[3625]=3,Z[4021]=3,Z[4020]=3,Z[3474]=3,Z[3626]=3,Z[3553]=3,Z[3693]=3,Z[3692]=3,Z[3628]=3,Z[3629]=3,Z[3930]=3,Z[3690]=3,Z[3932]=3,Z[3931]=3,Z[3691]=3,Z[4499]=3,Z[4501]=7,Z[4500]=4,Z[4487]=3,Z[4502]=4,Z[4509]=6,Z[4485]=3,Z[4484]=3,Z[4489]=3,Z[4491]=3,Z[4490]=3,Z[4488]=3,Z[4492]=1,Z[4495]=7,Z[4496]=7,Z[4494]=1,Z[4493]=3,Z[4498]=7,Z[4497]=3,Z[4731]=3,Z[4486]=3,Z[3929]=8,Z[4019]=3,Z[3928]=3,Z[4537]=6,Z[4026]=3,Z[4538]=6,Z[4542]=6,Z[4025]=3,Z[4023]=3,Z[4545]=8,Z[4549]=4,Z[4551]=4,Z[4550]=4,Z[4027]=
3,Z[4029]=3,Z[4028]=3,Z[4548]=8,Z[4540]=8,Z[4378]=6,Z[4376]=4,Z[4344]=6,Z[4343]=3,Z[4342]=6,Z[4241]=6,Z[4018]=3,Z[4046]=6,Z[4240]=6,Z[4043]=3,Z[4186]=1,Z[4184]=6,Z[4185]=1,Z[4577]=1,Z[4536]=4,Z[4541]=4,Z[4544]=8,Z[4543]=4,Z[4375]=8,Z[4373]=3,Z[4238]=6,Z[4039]=3,Z[4331]=8,Z[4345]=7,Z[4341]=8,Z[4340]=3,Z[4339]=6,Z[4330]=8,Z[4329]=3,Z[4328]=6,Z[4239]=8,Z[4045]=3,Z[4044]=6,Z[4237]=6,Z[4035]=3,Z[4539]=8,Z[4546]=8,Z[4024]=3,Z[3736]=7,Z[3777]=6,Z[3778]=4,Z[5036]=3,Z[5033]=3,Z[5035]=3,Z[5034]=3,Z[5037]=3,
Z[5032]=3,Z[5540]=7,Z[4962]=7,Z[4899]=4,Z[5437]=4,Z[5466]=4,Z[5436]=4,Z[5438]=6,Z[5439]=7,Z[5277]=6,Z[5514]=1,Z[5515]=1,Z[5403]=4,Z[5268]=7,Z[5722]=4,Z[5404]=4,Z[4824]=6,Z[4936]=6,Z[4947]=6,Z[4946]=6,Z[4945]=6,Z[4950]=6,Z[4949]=6,Z[4937]=6,Z[4938]=6,Z[4939]=6,Z[4940]=6,Z[4944]=6,Z[4941]=6,Z[4948]=7,Z[4942]=6,Z[4943]=6,Z[4983]=4,Z[4981]=4,Z[4982]=4,Z[5669]=6,Z[5668]=6,Z[5672]=6,Z[5667]=6,Z[5671]=6,Z[5666]=6,Z[5674]=6,Z[5670]=6,Z[5027]=6,Z[5023]=6,Z[5026]=6,Z[4995]=6,Z[4986]=4,Z[4984]=4,Z[4985]=4,Z[5025]=
6,Z[5022]=6,Z[5024]=6,Z[4994]=6,Z[4975]=1,Z[4976]=4,Z[4924]=3,Z[5122]=4,Z[5123]=4,Z[5120]=4,Z[5121]=4,Z[5197]=4,Z[5220]=6,Z[5226]=6,Z[4971]=4,Z[5296]=6,Z[5297]=6,Z[4803]=6,Z[5224]=6,Z[5225]=6,Z[5223]=6,Z[5118]=4,Z[5119]=4,Z[5116]=4,Z[5117]=4,Z[4978]=4,Z[4977]=4,Z[5144]=4,Z[5142]=4,Z[5143]=4,Z[5442]=6,Z[5441]=6,Z[5440]=6,Z[5818]=7,Z[5382]=8,Z[5639]=4,Z[5638]=4,Z[5640]=4,Z[5626]=4,Z[5721]=4,Z[5099]=7,Z[5097]=4,Z[5111]=6,Z[5059]=4,Z[5102]=7,Z[5105]=6,Z[5108]=7,Z[5190]=7,Z[5138]=3,Z[5139]=3,Z[5028]=3,
Z[5029]=3,Z[5031]=3,Z[5030]=3,Z[5378]=4,Z[5374]=3,Z[5376]=7,Z[5377]=7,Z[5375]=4,Z[5137]=3,Z[5870]=3,Z[5869]=7,Z[5872]=7,Z[5868]=7,Z[5871]=4,Z[4810]=7,Z[4809]=7,Z[4806]=7,Z[4805]=7,Z[4808]=7,Z[4807]=7,Z[5002]=3,Z[5004]=3,Z[5003]=3,Z[5001]=3,Z[5E3]=3,Z[5005]=3,Z[5006]=3,Z[5009]=3,Z[5007]=3,Z[5008]=3,Z[4847]=4,Z[4848]=4,Z[5149]=1,Z[5150]=1,Z[5147]=1,Z[5148]=1,Z[4802]=6,Z[4867]=4,Z[4798]=6,Z[4796]=1,Z[5803]=6,Z[4797]=1,Z[4801]=6,Z[4799]=1,Z[5802]=6,Z[4800]=1,Z[5517]=6,Z[5518]=7,Z[5298]=6,Z[4952]=6,Z[4815]=
1,Z[4813]=1,Z[4821]=1,Z[4819]=1,Z[4820]=1,Z[4814]=1,Z[4818]=1,Z[4816]=1,Z[4817]=1,Z[4970]=6,Z[5038]=4,Z[5402]=4,Z[5401]=4,Z[5400]=4,Z[5269]=4,Z[5270]=4,Z[5124]=6,Z[5156]=6,Z[5157]=6,Z[5158]=6,Z[5155]=6,Z[4901]=4,Z[4869]=6,Z[4868]=6,Z[5040]=4,Z[5039]=4,Z);var lL=function(){},mL=function(a,c){a.Ga||x(a,lL);c.Wd=a;do c=c.Ga&&c.Ga.constructor;while(c&&!c.Wd);if(c&&c.Wd!==a.Ga.constructor)throw Error("delegate base must derive from superclass delegate base");},$fa=function(a){var c=a.Wd,b=function(m){b.Ga.constructor.call(this,m);var p=this.Yc.length;this.b=[];for(var v=0;v<p;++v)this.Yc[v].CA||(this.b[v]=new this.Yc[v](m))};x(b,c);for(var d=[];a;){if(c=a.Wd){c.Yc&&fc(d,c.Yc);var e=c.prototype,f;for(f in e)if(e.hasOwnProperty(f)&&Xa(e[f])&&e[f]!==c){var g=
!!e[f].zA,k=Yfa(f,e,d,g);(g=Zfa(f,e,k,g))&&(b.prototype[f]=g)}}a=a.Ga&&a.Ga.constructor}b.prototype.Yc=d;return b},Yfa=function(a,c,b,d){for(var e=[],f=0;f<b.length&&(b[f].prototype[a]===c[a]||(e.push(f),!d));++f);return e},Zfa=function(a,c,b,d){var e;b.length?d?e=function(f){var g=this.b[b[0]];return g?g[a].apply(this.b[b[0]],arguments):this.Yc[b[0]].prototype[a].apply(this,arguments)}:c[a].Pp?e=function(f){a:{var g=Array.prototype.slice.call(arguments,0);for(var k=0;k<b.length;++k){var m=this.b[b[k]];
if(m=m?m[a].apply(m,g):this.Yc[b[k]].prototype[a].apply(this,g)){g=m;break a}}g=!1}return g}:c[a].ql?e=function(f){a:{var g=Array.prototype.slice.call(arguments,0);for(var k=0;k<b.length;++k){var m=this.b[b[k]];m=m?m[a].apply(m,g):this.Yc[b[k]].prototype[a].apply(this,g);if(null!=m){g=m;break a}}g=void 0}return g}:c[a].wm?e=function(f){for(var g=Array.prototype.slice.call(arguments,0),k=0;k<b.length;++k){var m=this.b[b[k]];m?m[a].apply(m,g):this.Yc[b[k]].prototype[a].apply(this,g)}}:e=function(f){for(var g=
Array.prototype.slice.call(arguments,0),k=[],m=0;m<b.length;++m){var p=this.b[b[m]];k.push(p?p[a].apply(p,g):this.Yc[b[m]].prototype[a].apply(this,g))}return k}:d||c[a].Pp||c[a].ql||c[a].wm?e=null:e=aga;return e},aga=function(){return[]};lL.prototype.Hi=function(a){if(this.b)for(var c=0;c<this.b.length;++c)if(this.b[c]instanceof a)return this.b[c];return null};var nL=function(){var a=function(){};a.wm=!0;return a};var oL=function(a){if(!a.Ef){var c;for(c=a.constructor;c&&!c.Wd;)c=c.Ga&&c.Ga.constructor;c.Wd.tl||(c.Wd.tl=$fa(c));c=new c.Wd.tl(a);a.Ef=c;a.Hi||(a.Hi=bga)}},bga=function(a){return this.Ef.Hi(a)};var pL=function(a){return Le?Fe?2:3:Me?4:Ne?5:(void 0===a?0:a)?$d("Linux")?17:18:1};var qL=function(){};x(qL,lL);qL.prototype.init=nL();qL.prototype.Tg=nL();qL.prototype.Ug=nL();var rL=function(){},tL=function(a){if("number"==typeof a){var c=new rL;c.f=a;var b=a;if(0==b)b="Etc/GMT";else{var d=["Etc/GMT",0>b?"-":"+"];b=Math.abs(b);d.push(Math.floor(b/60)%100);b%=60;0!=b&&d.push(":",oe(b,2));b=d.join("")}c.h=b;b=a;0==b?b="UTC":(d=["UTC",0>b?"+":"-"],b=Math.abs(b),d.push(Math.floor(b/60)%100),b%=60,0!=b&&d.push(":",b),b=d.join(""));a=sL(a);c.j=[b,b];c.b={Fz:a,Ok:a};c.g=[];return c}c=new rL;c.h=a.id;c.f=-a.std_offset;c.j=a.names;c.b=a.names_ext;c.g=a.transitions;return c},sL=
function(a){var c=["GMT"];c.push(0>=a?"+":"-");a=Math.abs(a);c.push(oe(Math.floor(a/60)%100,2),":",oe(a%60,2));return c.join("")},uL=function(a,c){c=Date.UTC(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes())/36E5;for(var b=0;b<a.g.length&&c>=a.g[b];)b+=2;return 0==b?0:a.g[b-1]};var wL=function(){this.f=[];this.b=bC;var a="HH:mm:ss";for(cga&&(a=a.replace(/\u200f/g,""));a;){for(var c=a,b=0;b<vL.length;++b){var d=a.match(vL[b]);if(d){var e=d[0];a=a.substring(e.length);0==b&&("''"==e?e="'":(e=e.substring(1,"'"==d[1]?e.length-1:e.length),e=e.replace(/''/g,"'")));this.f.push({text:e,type:b});break}}if(c===a)throw Error("Malformed pattern part: "+a);}},vL=[/^'(?:[^']|'')*('|$)/,/^(?:G+|y+|Y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYMkSEahKHcLQdmsvVwzZ]+/],
xL=function(a){return a.getHours?a.getHours():0};
wL.prototype.format=function(a,c){if(!a)throw Error("The date to format must be non-null.");var b=c?6E4*(a.getTimezoneOffset()-(c.f-uL(c,a))):0,d=b?new Date(a.getTime()+b):a,e=d;c&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(e=6E4*(d.getTimezoneOffset()-a.getTimezoneOffset()),d=new Date(d.getTime()+e),b+=0<b?-864E5:864E5,e=new Date(a.getTime()+b));b=[];for(var f=0;f<this.f.length;++f){var g=this.f[f].text;1==this.f[f].type?b.push(dga(this,g,a,d,e,c)):b.push(g)}return b.join("")};
var yL=function(a,c){c=String(c);a=a.b||bC;if(void 0!==a.sp){for(var b=[],d=0;d<c.length;d++){var e=c.charCodeAt(d);b.push(48<=e&&57>=e?String.fromCharCode(a.sp+e-48):c.charAt(d))}c=b.join("")}return c},cga=!1,zL=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.");},dga=function(a,c,b,d,e,f){var g=c.length;switch(c.charAt(0)){case "G":return b=0<d.getFullYear()?
1:0,4<=g?a.b.Zn[b]:a.b.ao[b];case "y":return b=d.getFullYear(),0>b&&(b=-b),2==g&&(b%=100),yL(a,oe(b,g));case "Y":return b=(new Date(cC(d.getFullYear(),d.getMonth(),d.getDate(),a.b.Ak,a.b.zk))).getFullYear(),0>b&&(b=-b),2==g&&(b%=100),yL(a,oe(b,g));case "M":a:switch(b=d.getMonth(),g){case 5:g=a.b.qo[b];break a;case 4:g=a.b.no[b];break a;case 3:g=a.b.Mo[b];break a;default:g=yL(a,oe(b+1,g))}return g;case "k":return zL(e),yL(a,oe(xL(e)||24,g));case "S":return yL(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,
g)).substr(2)+(3<g?oe(0,g-3):""));case "E":return b=d.getDay(),4<=g?a.b.rp[b]:a.b.Oo[b];case "a":return zL(e),g=xL(e),a.b.Jn[12<=g&&24>g?1:0];case "h":return zL(e),yL(a,oe(xL(e)%12||12,g));case "K":return zL(e),yL(a,oe(xL(e)%12,g));case "H":return zL(e),yL(a,oe(xL(e),g));case "c":a:switch(b=d.getDay(),g){case 5:g=a.b.So[b];break a;case 4:g=a.b.Vo[b];break a;case 3:g=a.b.Uo[b];break a;default:g=yL(a,oe(b,1))}return g;case "L":a:switch(b=d.getMonth(),g){case 5:g=a.b.Ro[b];break a;case 4:g=a.b.Qo[b];
break a;case 3:g=a.b.To[b];break a;default:g=yL(a,oe(b+1,g))}return g;case "Q":return b=Math.floor(d.getMonth()/3),4>g?a.b.No[b]:a.b.xo[b];case "d":return yL(a,oe(d.getDate(),g));case "m":return zL(e),yL(a,oe(e.getMinutes(),g));case "s":return zL(e),yL(a,oe(e.getSeconds(),g));case "v":return g=f||tL(b.getTimezoneOffset()),g.h;case "V":return a=f||tL(b.getTimezoneOffset()),2>=g?a.h:0<uL(a,b)?Ia(a.b.Vn)?a.b.Vn:a.b.DST_GENERIC_LOCATION:Ia(a.b.Ok)?a.b.Ok:a.b.STD_GENERIC_LOCATION;case "w":return b=cC(e.getFullYear(),
e.getMonth(),e.getDate(),a.b.Ak,a.b.zk),yL(a,oe(Math.floor(Math.round((b-(new Date((new Date(b)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,g));case "z":return a=f||tL(b.getTimezoneOffset()),4>g?a.j[0<uL(a,b)?2:0]:a.j[0<uL(a,b)?3:1];case "Z":return c=f||tL(b.getTimezoneOffset()),4>g?(g=-(c.f-uL(c,b)),a=[0>g?"-":"+"],g=Math.abs(g),a.push(oe(Math.floor(g/60)%100,2),oe(g%60,2)),g=a.join("")):g=yL(a,sL(c.f-uL(c,b))),g;default:return""}};var AL=function(a){var c=T(a,RK,1)||new RK;V(a,1,c);return c},BL=function(a){var c=T(a,cA,5)||new cA;V(a,5,c);return c},CL=function(a){a=AL(a);var c=T(a,XJ,1)||new XJ;V(a,1,c);return c},DL=function(a){var c=T(a,IK,3)||new IK;V(a,3,c);return c};var EL=function(){this.l=Mf("realtime.diagnostics.DiagnosticDataService");this.h=0;this.f=new Map;this.b=new Map;this.g=new Map},GL=function(a,c,b,d){d=void 0===d?!0:d;a.b.has(c)&&(B(a.l,"Already registered a diagnostics data callback for key '"+c+"'."),c=FL(a,c));a.g.delete(c);a.b.set(c,b);return function(){a.b.get(c)==b&&(a.b.delete(c),d&&a.g.set(c,b()))}},HL=function(a,c,b){c=GL(a,c,b,!1);b=a.h++;a.f.set(b,c);return b};EL.prototype.j=function(a){var c=this.f.get(a);this.f.delete(a)&&c()};
EL.prototype.reset=function(){this.h=0;this.f.clear();this.b.clear();this.g.clear()};var FL=function(a,c){for(var b=0;a.b.has(c+"("+b+")");)b++;return c+"("+b+")"};Ra(EL);var IL=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 c=a.substring(a.indexOf("://")+3),b=c.indexOf("/");-1!=b&&(c=c.substring(0,b));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"file"!==a&&"android-app"!==a&&"chrome-search"!==a&&"app"!==a)throw Error("Invalid URI scheme in origin: "+a);b="";var d=c.indexOf(":");if(-1!=d){var e=
c.substring(d+1);c=c.substring(0,d);if("http"===a&&"80"!==e||"https"===a&&"443"!==e)b=":"+e}return a+"://"+c+b};var ega=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;v=p=0}function c(A){for(var G=g,E=0;64>E;E+=4)G[E/4]=A[E]<<24|A[E+1]<<16|A[E+2]<<8|A[E+3];for(E=16;80>E;E++)A=G[E-3]^G[E-8]^G[E-14]^G[E-16],G[E]=(A<<1|A>>>31)&4294967295;A=e[0];var P=e[1],ea=e[2],Va=e[3],Dc=e[4];for(E=0;80>E;E++){if(40>E)if(20>E){var Ec=Va^P&(ea^Va);var Fa=1518500249}else Ec=P^ea^Va,Fa=1859775393;else 60>E?(Ec=P&ea|Va&(P|ea),Fa=2400959708):(Ec=P^ea^Va,Fa=3395469782);Ec=((A<<
5|A>>>27)&4294967295)+Ec+Dc+Fa+G[E]&4294967295;Dc=Va;Va=ea;ea=(P<<30|P>>>2)&4294967295;P=A;A=Ec}e[0]=e[0]+A&4294967295;e[1]=e[1]+P&4294967295;e[2]=e[2]+ea&4294967295;e[3]=e[3]+Va&4294967295;e[4]=e[4]+Dc&4294967295}function b(A,G){if("string"===typeof A){A=unescape(encodeURIComponent(A));for(var E=[],P=0,ea=A.length;P<ea;++P)E.push(A.charCodeAt(P));A=E}G||(G=A.length);E=0;if(0==p)for(;E+64<G;)c(A.slice(E,E+64)),E+=64,v+=64;for(;E<G;)if(f[p++]=A[E++],v++,64==p)for(p=0,c(f);E+64<G;)c(A.slice(E,E+64)),
E+=64,v+=64}function d(){var A=[],G=8*v;56>p?b(k,56-p):b(k,64-(p-56));for(var E=63;56<=E;E--)f[E]=G&255,G>>>=8;c(f);for(E=G=0;5>E;E++)for(var P=24;0<=P;P-=8)A[G++]=e[E]>>P&255;return A}for(var e=[],f=[],g=[],k=[128],m=1;64>m;++m)k[m]=0;var p,v;a();return{reset:a,update:b,digest:d,digestString:function(){for(var A=d(),G="",E=0;E<A.length;E++)G+="0123456789ABCDEF".charAt(Math.floor(A[E]/16))+"0123456789ABCDEF".charAt(A[E]%16);return G}}};var fga=function(a,c,b){var d=[],e=[];if(1==(Ua(b)?2:1))return e=[c,a],y(d,function(k){e.push(k)}),JL(e.join(" "));var f=[],g=[];y(b,function(k){g.push(k.key);f.push(k.value)});b=Math.floor((new Date).getTime()/1E3);e=Vb(f)?[b,c,a]:[f.join(":"),b,c,a];y(d,function(k){e.push(k)});a=JL(e.join(" "));a=[b,a];Vb(g)||a.push(g.join(""));return a.join("_")},JL=function(a){var c=ega();c.update(a);return c.digestString().toLowerCase()};var KL=function(){this.b=document||{cookie:""}};h=KL.prototype;h.isEnabled=function(){return navigator.cookieEnabled};h.set=function(a,c,b,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(c))throw Error('Invalid cookie value "'+c+'"');Ia(b)||(b=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";b=0>b?"":0==b?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(u()+1E3*b)).toUTCString();this.b.cookie=a+"="+c+e+d+b+f};
h.get=function(a,c){for(var b=a+"=",d=(this.b.cookie||"").split(";"),e=0,f;e<d.length;e++){f=ld(d[e]);if(0==f.lastIndexOf(b,0))return f.substr(b.length);if(f==a)return""}return c};h.remove=function(a,c,b){var d=Ia(this.get(a));this.set(a,"",0,c,b);return d};h.wb=function(){return LL(this).keys};h.na=function(){return LL(this).values};h.Nb=function(){return!this.b.cookie};h.sa=function(){return this.b.cookie?(this.b.cookie||"").split(";").length:0};
h.Bf=function(a){for(var c=LL(this).values,b=0;b<c.length;b++)if(c[b]==a)return!0;return!1};h.clear=function(){for(var a=LL(this).keys,c=a.length-1;0<=c;c--)this.remove(a[c])};var LL=function(a){a=(a.b.cookie||"").split(";");for(var c=[],b=[],d,e,f=0;f<a.length;f++)e=ld(a[f]),d=e.indexOf("="),-1==d?(c.push(""),b.push(e)):(c.push(e.substring(0,d)),b.push(e.substring(d+1)));return{keys:c,values:b}};var ML=function(a){var c=IL(String(Ha.location.href)),b=Ha.__OVERRIDE_SID;null==b&&(b=(new KL).get("SID"));if(b&&(c=(b=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:"))?Ha.__SAPISID:Ha.__APISID,null==c&&(c=(new KL).get(b?"SAPISID":"APISID")),c)){b=b?"SAPISIDHASH":"APISIDHASH";var d=String(Ha.location.href);return d&&c&&b?[b,fga(IL(d),c,a||null)].join(" "):null}return null};var NL=function(a,c,b,d){this.h=a;this.j=c;this.g=this.b=a;this.w=b||0;this.m=d||2};NL.prototype.f=0;NL.prototype.reset=function(){this.g=this.b=this.h;this.f=0};var OL=function(a){a.g=Math.min(a.j,a.g*a.m);a.b=Math.min(a.j,a.g+(a.w?Math.round(a.w*(Math.random()-.5)*2*a.g):0));a.f++};var gga=function(a,c,b){yw(a.url,function(d){d=d.target;Gw(d)?c(Hw(d)):b(d.Va())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};var PL=function(a){N(this,a,0,-1,null,null)};x(PL,M);PL.prototype.u=function(){var a=new D;QL(this,a);return F(a)};var QL=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&J(c,3,b)};var RL=function(a){N(this,a,0,-1,null,null)};x(RL,M);RL.prototype.u=function(){var a=new D;SL(this,a);return F(a)};var SL=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&J(c,3,b);b=O(a,4);null!=b&&J(c,4,b);b=O(a,5);null!=b&&J(c,5,b);b=O(a,6);null!=b&&J(c,6,b);b=O(a,7);null!=b&&J(c,7,b)};var TL=function(a){N(this,a,0,-1,null,null)};x(TL,M);TL.prototype.u=function(){var a=new D;UL(this,a);return F(a)};var UL=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&I(c,2,b);b=O(a,3);null!=b&&I(c,3,b)};var VL=function(a){N(this,a,0,33,hga,null)};x(VL,M);var iga={},hga=[31];VL.prototype.u=function(){var a=new D;WL(this,a);return F(a)};
var WL=function(a,c){var b=O(a,1);null!=b&&H(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,18);null!=b&&H(c,18,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,8);null!=b&&K(c,8,b);b=O(a,9);null!=b&&K(c,9,b);b=O(a,6);null!=b&&K(c,6,b);b=O(a,7);null!=b&&K(c,7,b);b=O(a,10);null!=b&&K(c,10,b);b=O(a,11);null!=b&&K(c,11,b);b=O(a,12);null!=b&&K(c,12,b);b=O(a,13);null!=b&&K(c,13,b);b=O(a,14);null!=b&&K(c,14,b);b=O(a,15);null!=b&&K(c,15,b);b=O(a,16);null!=b&&K(c,16,b);b=
O(a,17);null!=b&&K(c,17,b);b=O(a,19);null!=b&&c.f(19,b);b=T(a,PL,32);null!=b&&c.b(32,b,QL);b=O(a,20);null!=b&&I(c,20,b);b=O(a,22);null!=b&&I(c,22,b);b=O(a,23);null!=b&&J(c,23,b);b=T(a,TL,24);null!=b&&c.b(24,b,UL);b=T(a,RL,25);null!=b&&c.b(25,b,SL);b=O(a,26);null!=b&&K(c,26,b);b=O(a,27);null!=b&&K(c,27,b);b=O(a,28);null!=b&&K(c,28,b);b=O(a,31);0<b.length&&Tk(c,31,b);bl(a,c,iga,VL.prototype.w)};VL.prototype.getDeviceId=function(){return O(this,18)};VL.prototype.getDevice=function(){return O(this,9)};var XL=function(a){N(this,a,0,-1,null,null)};x(XL,M);XL.prototype.u=function(){var a=new D;YL(this,a);return F(a)};var YL=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b)};var ZL=function(a){N(this,a,0,-1,null,null)};x(ZL,M);ZL.prototype.u=function(){var a=new D;$L(this,a);return F(a)};var $L=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b)};var aM=function(a){N(this,a,0,-1,null,null)};x(aM,M);aM.prototype.u=function(){var a=new D;bM(this,a);return F(a)};var bM=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,6);null!=b&&K(c,6,b);b=O(a,7);null!=b&&K(c,7,b);b=O(a,8);null!=b&&c.f(8,b);b=O(a,9);null!=b&&c.f(9,b)};var cM=function(a){N(this,a,0,-1,null,null)};x(cM,M);cM.prototype.u=function(){var a=new D;dM(this,a);return F(a)};var dM=function(a,c){var b=O(a,9);null!=b&&K(c,9,b);b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,6);null!=b&&K(c,6,b);b=O(a,7);null!=b&&K(c,7,b);b=O(a,8);null!=b&&J(c,8,b)};cM.prototype.getDeviceId=function(){return O(this,9)};var eM=function(a){N(this,a,0,-1,null,null)};x(eM,M);eM.prototype.u=function(){var a=new D;fM(this,a);return F(a)};
var fM=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&I(c,2,b);b=O(a,3);null!=b&&I(c,3,b);b=O(a,4);null!=b&&I(c,4,b);b=O(a,5);null!=b&&I(c,5,b);b=O(a,6);null!=b&&I(c,6,b);b=O(a,7);null!=b&&I(c,7,b);b=O(a,8);null!=b&&I(c,8,b);b=O(a,9);null!=b&&I(c,9,b);b=O(a,10);null!=b&&I(c,10,b);b=O(a,11);null!=b&&I(c,11,b);b=O(a,12);null!=b&&I(c,12,b);b=O(a,13);null!=b&&I(c,13,b);b=O(a,14);null!=b&&I(c,14,b);b=O(a,15);null!=b&&I(c,15,b)};var gM=function(a){N(this,a,0,-1,null,null)};x(gM,M);gM.prototype.u=function(){var a=new D;hM(this,a);return F(a)};
var hM=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,12);null!=b&&K(c,12,b);b=O(a,6);null!=b&&K(c,6,b);b=O(a,7);null!=b&&K(c,7,b);b=O(a,8);null!=b&&K(c,8,b);b=O(a,9);null!=b&&c.f(9,b);b=O(a,10);null!=b&&c.f(10,b);b=O(a,11);null!=b&&K(c,11,b);b=T(a,eM,13);null!=b&&c.b(13,b,fM)};var iM=function(a){N(this,a,0,-1,null,null)};x(iM,M);iM.prototype.u=function(){var a=new D;jM(this,a);return F(a)};var jM=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&J(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,6);null!=b&&J(c,6,b);b=O(a,7);null!=b&&K(c,7,b);b=O(a,8);null!=b&&K(c,8,b)};var kM=function(a){N(this,a,0,-1,null,null)};x(kM,M);kM.prototype.u=function(){var a=new D;lM(this,a);return F(a)};var lM=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,2);null!=b&&K(c,2,b)};var mM=function(a){N(this,a,0,-1,null,null)};x(mM,M);mM.prototype.u=function(){var a=new D;nM(this,a);return F(a)};var nM=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&c.f(5,b);b=O(a,6);null!=b&&c.f(6,b);b=O(a,7);null!=b&&K(c,7,b)};var oM=function(a){N(this,a,0,-1,null,null)};x(oM,M);oM.prototype.u=function(){var a=new D;pM(this,a);return F(a)};var pM=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b)};oM.prototype.getDeviceId=function(){return O(this,1)};var qM=function(a){N(this,a,0,-1,null,null)};x(qM,M);qM.prototype.u=function(){var a=new D;rM(this,a);return F(a)};var rM=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,7);null!=b&&K(c,7,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,6);null!=b&&K(c,6,b);b=O(a,8);null!=b&&K(c,8,b)};var sM=function(a){N(this,a,0,-1,null,null)};x(sM,M);sM.prototype.u=function(){var a=new D;tM(this,a);return F(a)};var tM=function(a,c){a=O(a,1);null!=a&&J(c,1,a)};var uM=function(a){N(this,a,0,-1,null,null)};x(uM,M);uM.prototype.u=function(){var a=new D;vM(this,a);return F(a)};var vM=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,6);null!=b&&K(c,6,b);b=O(a,7);null!=b&&K(c,7,b);b=O(a,8);null!=b&&K(c,8,b);b=O(a,9);null!=b&&K(c,9,b);b=O(a,10);null!=b&&K(c,10,b)};var wM=function(a){N(this,a,0,-1,null,null)};x(wM,M);wM.prototype.u=function(){var a=new D;xM(this,a);return F(a)};var xM=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,6);null!=b&&K(c,6,b);b=O(a,7);null!=b&&K(c,7,b);b=O(a,8);null!=b&&K(c,8,b);b=O(a,9);null!=b&&K(c,9,b);b=O(a,10);null!=b&&K(c,10,b)};var yM=function(a){N(this,a,0,-1,null,null)};x(yM,M);yM.prototype.u=function(){var a=new D;zM(this,a);return F(a)};
var zM=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,6);null!=b&&K(c,6,b);b=O(a,7);null!=b&&K(c,7,b);b=T(a,VL,2);null!=b&&c.b(2,b,WL);b=T(a,XL,14);null!=b&&c.b(14,b,YL);b=T(a,aM,3);null!=b&&c.b(3,b,bM);b=T(a,cM,16);null!=b&&c.b(16,b,dM);b=T(a,gM,4);null!=b&&c.b(4,b,hM);b=T(a,iM,11);null!=b&&c.b(11,b,jM);b=T(a,kM,20);null!=b&&c.b(20,b,lM);b=T(a,mM,13);null!=b&&c.b(13,b,nM);b=T(a,oM,10);null!=b&&c.b(10,b,pM);b=T(a,qM,5);null!=b&&c.b(5,b,rM);b=T(a,sM,18);null!=b&&c.b(18,b,tM);b=T(a,uM,8);null!=
b&&c.b(8,b,vM);b=T(a,wM,15);null!=b&&c.b(15,b,xM);b=T(a,ZL,9);null!=b&&c.b(9,b,$L);b=O(a,12);null!=b&&H(c,12,b)};var AM=function(a){N(this,a,0,-1,jga,null)};x(AM,M);var jga=[2];AM.prototype.u=function(){var a=new D;BM(this,a);return F(a)};var BM=function(a,c){var b=O(a,1);null!=b&&Nk(c,1,b);b=O(a,4);null!=b&&K(c,4,b);b=hl(O(a,2));0<b.length&&Uk(c,2,b);b=O(a,3);null!=b&&I(c,3,b)};var CM=function(a){N(this,a,0,-1,kga,null)};x(CM,M);var kga=[1,2,3,4,5];CM.prototype.u=function(){var a=new D;DM(this,a);return F(a)};var DM=function(a,c){var b=O(a,1);0<b.length&&Tk(c,1,b);b=O(a,2);0<b.length&&Tk(c,2,b);b=O(a,3);0<b.length&&Ok(c,3,b);b=O(a,4);0<b.length&&Pk(c,4,b);b=O(a,5);0<b.length&&Pk(c,5,b)};var EM=function(a){N(this,a,0,-1,null,null)};x(EM,M);EM.prototype.u=function(){var a=new D;FM(this,a);return F(a)};var FM=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b)};EM.prototype.Hb=function(){return O(this,3)};var GM=function(a){N(this,a,0,-1,null,null)};x(GM,M);GM.prototype.u=function(){var a=new D;HM(this,a);return F(a)};var HM=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};var IM=function(a){N(this,a,0,-1,null,null)};x(IM,M);IM.prototype.u=function(){var a=new D;JM(this,a);return F(a)};var JM=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&J(c,2,b)};var KM=function(a){N(this,a,0,29,lga,null)};x(KM,M);var mga={},lga=[3,20,27];KM.prototype.u=function(){var a=new D;LM(this,a);return F(a)};
var LM=function(a,c){var b=O(a,1);null!=b&&Hk(c,1,b);b=O(a,17);null!=b&&Hk(c,17,b);b=O(a,21);null!=b&&H(c,21,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,11);null!=b&&c.f(11,b);b=O(a,26);null!=b&&K(c,26,b);b=O(a,12);null!=b&&H(c,12,b);b=O(a,10);null!=b&&I(c,10,b);b=U(a,GM,3);0<b.length&&L(c,3,b,HM);b=O(a,4);null!=b&&Nk(c,4,b);b=T(a,EM,9);null!=b&&c.b(9,b,FM);b=O(a,6);null!=b&&Nk(c,6,b);b=O(a,8);null!=b&&K(c,8,b);b=O(a,13);null!=b&&K(c,13,b);b=T(a,CM,7);null!=b&&c.b(7,b,DM);b=O(a,14);null!=b&&K(c,14,b);b=O(a,
15);if(null!=b&&null!=b){var d=b;if(null!=d){Ek(c,15,0);b=c.g;var e=d;d=0>e;e=2*Math.abs(e);var f=e>>>0;e=Math.floor((e-f)/4294967296)>>>0;Wj=f;Xj=e;f=Wj;e=Xj;d&&(0==f?0==e?e=f=4294967295:(e--,f=4294967295):f--);Wj=f;Xj=e;Ak(b,Wj,Xj)}}b=T(a,AM,16);null!=b&&c.b(16,b,BM);b=O(a,18);null!=b&&Nk(c,18,b);b=O(a,24);null!=b&&K(c,24,b);b=O(a,19);null!=b&&J(c,19,b);b=O(a,20);0<b.length&&Ok(c,20,b);b=O(a,27);0<b.length&&Wk(c,27,b);b=O(a,22);null!=b&&H(c,22,b);b=T(a,IM,23);null!=b&&c.b(23,b,JM);b=O(a,25);null!=
b&&I(c,25,b);b=O(a,28);null!=b&&K(c,28,b);bl(a,c,mga,KM.prototype.w)},nga=function(a,c){S(a,11,c)},oga=function(a,c){S(a,8,c)};var MM=function(a){N(this,a,0,-1,null,null)};x(MM,M);MM.prototype.u=function(){var a=new D;NM(this,a);return F(a)};var NM=function(a,c){var b=O(a,3);null!=b&&H(c,3,b);b=O(a,1);null!=b&&Hk(c,1,b);b=O(a,2);null!=b&&I(c,2,b)};var OM=function(a){N(this,a,0,-1,null,null)};x(OM,M);OM.prototype.u=function(){var a=new D;PM(this,a);return F(a)};var PM=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&I(c,2,b);b=O(a,3);null!=b&&J(c,3,b);b=O(a,4);null!=b&&I(c,4,b)};var QM=function(a){N(this,a,0,-1,null,null)};x(QM,M);QM.prototype.u=function(){var a=new D;RM(this,a);return F(a)};var RM=function(a,c){var b=O(a,1);null!=b&&H(c,1,b);b=O(a,2);null!=b&&H(c,2,b);b=O(a,3);null!=b&&K(c,3,b)};var SM=function(a){N(this,a,0,17,pga,null)};x(SM,M);var qga={},pga=[3,5];
SM.prototype.u=function(){var a=new D;var c=O(this,4);null!=c&&Hk(a,4,c);c=O(this,8);null!=c&&Hk(a,8,c);c=T(this,yM,1);null!=c&&a.b(1,c,zM);c=O(this,2);null!=c&&J(a,2,c);c=O(this,6);null!=c&&K(a,6,c);c=O(this,7);null!=c&&K(a,7,c);c=U(this,KM,3);0<c.length&&L(a,3,c,LM);c=O(this,5);c=hl(c);0<c.length&&Uk(a,5,c);c=O(this,14);null!=c&&H(a,14,c);c=O(this,9);null!=c&&J(a,9,c);c=O(this,10);null!=c&&J(a,10,c);c=T(this,OM,11);null!=c&&a.b(11,c,PM);c=T(this,QM,12);null!=c&&a.b(12,c,RM);c=T(this,MM,13);null!=
c&&a.b(13,c,NM);c=O(this,16);null!=c&&a.h(16,c);bl(this,a,qga,SM.prototype.w);return F(a)};var rga=function(a){var c=u().toString();S(a,4,c)};var TM=function(a){N(this,a,0,-1,sga,null)};x(TM,M);var sga=[1];TM.prototype.u=function(){var a=new D;UM(this,a);return F(a)};var UM=function(a,c){a=O(a,1);0<a.length&&Tk(c,1,a)};var VM=function(a){N(this,a,0,-1,null,null)};x(VM,M);VM.prototype.u=function(){var a=new D;WM(this,a);return F(a)};var WM=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&J(c,2,b)};var XM=function(a){N(this,a,0,-1,tga,null)};x(XM,M);var tga=[1];XM.prototype.u=function(){var a=new D;YM(this,a);return F(a)};var YM=function(a,c){a=O(a,1);0<a.length&&Tk(c,1,a)};var ZM=function(a){N(this,a,0,-1,null,null)};x(ZM,M);ZM.prototype.u=function(){var a=new D;$M(this,a);return F(a)};var $M=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&J(c,3,b)};var aN=function(a){N(this,a,0,-1,uga,null)};x(aN,M);var uga=[1];aN.prototype.u=function(){var a=new D;bN(this,a);return F(a)};var bN=function(a,c){var b=U(a,ZM,1);0<b.length&&L(c,1,b,$M);b=O(a,2);null!=b&&H(c,2,b)};var cN=function(a){N(this,a,0,6,vga,null)};x(cN,M);var dN={},vga=[5];cN.prototype.u=function(){var a=new D;var c=O(this,1);null!=c&&Hk(a,1,c);c=T(this,TM,2);null!=c&&a.b(2,c,UM);c=T(this,aN,3);null!=c&&a.b(3,c,bN);c=T(this,XM,4);null!=c&&a.b(4,c,YM);c=U(this,VM,5);0<c.length&&L(a,5,c,WM);bl(this,a,dN,cN.prototype.w);return F(a)};var eN=function(a){N(this,a,0,-1,null,null)};x(eN,M);eN.prototype.u=function(){var a=new D;fN(this,a);return F(a)};var fN=function(a,c){a=O(a,1);null!=a&&c.f(1,a)};var gN=new function(){this.wl=175237375;this.Vd=eN};dN[175237375]=new function(a,c,b,d){this.kq=a;this.xi=b;this.nl=d}(gN,lk.prototype.g,D.prototype.b,fN,function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=c.b.w();S(a,1,b);break;default:ok(c)}return a},!1);var iN=function(a,c,b,d,e,f,g,k,m,p){Y.call(this);this.ua=a;this.fa=c||Qa;this.s=new SM;this.qa=d;this.g=[];this.da="";this.Da=db(df,0,1);this.j=e||null;this.O=b||null;this.C=g||!1;this.J=m||null;this.ha=this.T=-1;this.W=!1;this.l=Mf("playlog.clearcut.ClearcutBase");this.Aa=!k;this.F=null;this.H=0;this.Ca=1;this.pa=f||!1;a=new yM;S(a,1,1);f||(f=new iM,c=document.documentElement.getAttribute("lang"),S(f,5,c),V(a,11,f));V(this.s,1,a);S(this.s,2,this.ua);this.h=new NL(1E4,3E5,.1);this.f=new ov(this.h.b);
this.b(this.f);ru(this.f,"tick",xc(hN(this,p)),!1,this);this.o=new ov(6E5);this.b(this.o);ru(this.o,"tick",xc(hN(this,p)),!1,this);this.C||this.o.start();this.pa||(ru(Uf(),"beforeunload",this.m,!1,this),ru(Uf(),"unload",this.m,!1,this),ru(document,"pagehide",this.m,!1,this))};x(iN,Y);var hN=function(a,c){return c?function(){c().then(a.flush.bind(a))}:a.flush};iN.prototype.ia=function(){this.m();iN.Ga.ia.call(this)};var jN=function(a,c){a.h=new NL(1>c?1:c,3E5,.1);pv(a.f,a.h.b)};
iN.prototype.log=function(a){a=zl(a);var c=this.Ca++;S(a,21,c);O(a,1)||(c=u().toString(),S(a,1,c));for(;1E3<=this.g.length;)this.g.shift(),++this.H;this.g.push(a);this.N(new kN(a));this.C||this.f.enabled||this.f.start()};
iN.prototype.flush=function(a,c){if(0==this.g.length)a&&a();else{var b=u();if(this.ha>b&&this.T<b)C(this.l,"Not flushing because server requested delay."),c&&c("throttled");else{var d=zl(this.s);rga(d);rl(d,3,this.g);S(d,14,this.H);b={};var e=this.fa();e&&(b.Authorization=e);this.j||(this.j=.01>this.Da()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");var f=this.j;this.O&&(b["X-Goog-AuthUser"]=this.O,f=Pr(f,"authuser",this.O));this.J&&
(b["X-Goog-PageId"]=this.J,f=Pr(f,"pageId",this.J));if(e&&this.da==e)C(this.l,"XHR with unauthorized request not retried"),c&&c("stale-auth-token");else{C(this.l,"Flushing log to clearcut.");this.g=[];this.f.enabled&&this.f.stop();this.H=0;var g=d.Ba(),k=1;this.F&&this.F.isSupported()&&(b["Content-Encoding"]="gzip",b["Content-Type"]="application/binary",g=wga(Uint8Array.from(Oj(g))),k=2);b={url:f,body:g,b:k,requestHeaders:b,requestType:"POST",withCredentials:this.Aa,timeoutMillis:0};f=t(function(m){this.h.reset();
pv(this.f,this.h.b);if(m){try{var p=JSON.parse(m.replace(")]}'\n",""));var v=new cN(p)}catch(A){B(this.l,"Response parse failed: "+A)}v&&(m=R(v,1,"-1"),m=Number(m),0<m&&(this.T=u(),this.ha=this.T+m),v=v.w(gN))&&(v=R(v,1,-1),-1!=v&&(this.W||jN(this,v)))}a&&a()},this);g=t(function(m){var p=U(d,KM,3);OL(this.h);pv(this.f,this.h.b);401==m&&e&&(this.da=e);if(500<=m&&600>m||401==m||0==m)this.g=p.concat(this.g),this.C||this.f.enabled||this.f.start();B(this.l,"Flush failed. Status code: "+m);c&&c("net-send-failed",
m)},this);this.qa(b,f,g)}}}};iN.prototype.m=function(){this.flush()};var kN=function(){this.type="event-logged"};x(kN,X);var lN=function(a,c,b,d,e,f,g){iN.call(this,a,ML,c,gga,b,d,e,void 0,f,g)};x(lN,iN);/*

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

 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.

 -----------------------------------------------------------------------------
 Ported from zlib, which is under the following license
 https://github.com/madler/zlib/blob/master/zlib.h

 zlib.h -- interface of the 'zlib' general purpose compression library
   version 1.2.8, April 28th, 2013
   Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
   This software is provided 'as-is', without any express or implied
   warranty.  In no event will the authors be held liable for any damages
   arising from the use of this software.
   Permission is granted to anyone to use this software for any purpose,
   including commercial applications, and to alter it and redistribute it
   freely, subject to the following restrictions:
   1. The origin of this software must not be misrepresented; you must not
      claim that you wrote the original software. If you use this software
      in a product, an acknowledgment in the product documentation would be
      appreciated but is not required.
   2. Altered source versions must be plainly marked as such, and must not be
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
   Jean-loup Gailly        Mark Adler
   jloup@gzip.org          madler@alumni.caltech.edu
   The data format used by the zlib library is described by RFCs (Request for
   Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
   (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
*/
var mN={},xga="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;mN.assign=function(a){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var b=c.shift();if(b){if("object"!==typeof b)throw new TypeError(b+"must be non-object");for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d])}}return a};mN.hk=function(a,c){if(a.length===c)return a;if(a.subarray)return a.subarray(0,c);a.length=c;return a};
var yga={xf:function(a,c,b,d,e){if(c.subarray&&a.subarray)a.set(c.subarray(b,b+d),e);else for(var f=0;f<d;f++)a[e+f]=c[b+f]},Al:function(a){var c,b;var d=b=0;for(c=a.length;d<c;d++)b+=a[d].length;var e=new Uint8Array(b);d=b=0;for(c=a.length;d<c;d++){var f=a[d];e.set(f,b);b+=f.length}return e}},zga={xf:function(a,c,b,d,e){for(var f=0;f<d;f++)a[e+f]=c[b+f]},Al:function(a){return[].concat.apply([],a)}};
mN.it=function(){xga?(mN.pe=Uint8Array,mN.kd=Uint16Array,mN.Qn=Int32Array,mN.assign(mN,yga)):(mN.pe=Array,mN.kd=Array,mN.Qn=Array,mN.assign(mN,zga))};mN.it();for(var nN=new mN.pe(256),oN=0;256>oN;oN++)nN[oN]=252<=oN?6:248<=oN?5:240<=oN?4:224<=oN?3:192<=oN?2:1;nN[254]=nN[254]=1;
var pN=function(a){var c,b,d=a.length,e=0;for(c=0;c<d;c++){var f=a.charCodeAt(c);if(55296===(f&64512)&&c+1<d){var g=a.charCodeAt(c+1);56320===(g&64512)&&(f=65536+(f-55296<<10)+(g-56320),c++)}e+=128>f?1:2048>f?2:65536>f?3:4}var k=new mN.pe(e);for(c=b=0;b<e;c++)f=a.charCodeAt(c),55296===(f&64512)&&c+1<d&&(g=a.charCodeAt(c+1),56320===(g&64512)&&(f=65536+(f-55296<<10)+(g-56320),c++)),128>f?k[b++]=f:(2048>f?k[b++]=192|f>>>6:(65536>f?k[b++]=224|f>>>12:(k[b++]=240|f>>>18,k[b++]=128|f>>>12&63),k[b++]=128|
f>>>6&63),k[b++]=128|f&63);return k};var qN={};qN=function(a,c,b,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;0!==b;){f=2E3<b?2E3:b;b-=f;do e=e+c[d++]|0,a=a+e|0;while(--f);e%=65521;a%=65521}return e|a<<16|0};for(var rN={},sN,tN=[],uN=0;256>uN;uN++){sN=uN;for(var vN=0;8>vN;vN++)sN=sN&1?3988292384^sN>>>1:sN>>>1;tN[uN]=sN}rN=function(a,c,b,d){b=d+b;for(a^=-1;d<b;d++)a=a>>>8^tN[(a^c[d])&255];return a^-1};var wN={};wN={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function xN(a){for(var c=a.length;0<=--c;)a[c]=0}var yN=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],zN=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Aga=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],AN=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],BN=Array(576);xN(BN);var CN=Array(60);xN(CN);var DN=Array(512);xN(DN);var EN=Array(256);xN(EN);var FN=Array(29);xN(FN);var GN=Array(30);xN(GN);
function HN(a,c,b,d,e){this.vn=a;this.jq=c;this.iq=b;this.gq=d;this.Uq=e;this.Vl=a&&a.length}var IN,JN,KN;function LN(a,c){this.ul=a;this.Of=0;this.me=c}function MN(a,c){a.pb[a.pending++]=c&255;a.pb[a.pending++]=c>>>8&255}function NN(a,c,b){a.Mb>16-b?(a.bc|=c<<a.Mb&65535,MN(a,a.bc),a.bc=c>>16-a.Mb,a.Mb+=b-16):(a.bc|=c<<a.Mb&65535,a.Mb+=b)}function ON(a,c,b){NN(a,b[2*c],b[2*c+1])}function PN(a,c){var b=0;do b|=a&1,a>>>=1,b<<=1;while(0<--c);return b>>>1}
function QN(a,c,b){var d=Array(16),e=0,f;for(f=1;15>=f;f++)d[f]=e=e+b[f-1]<<1;for(b=0;b<=c;b++)e=a[2*b+1],0!==e&&(a[2*b]=PN(d[e]++,e))}function RN(a){var c;for(c=0;286>c;c++)a.ic[2*c]=0;for(c=0;30>c;c++)a.Se[2*c]=0;for(c=0;19>c;c++)a.Qb[2*c]=0;a.ic[512]=1;a.Md=a.bg=0;a.Fc=a.matches=0}function SN(a){8<a.Mb?MN(a,a.bc):0<a.Mb&&(a.pb[a.pending++]=a.bc);a.bc=0;a.Mb=0}function TN(a,c,b){SN(a);MN(a,b);MN(a,~b);mN.xf(a.pb,a.window,c,b,a.pending);a.pending+=b}
function UN(a,c,b,d){var e=2*c,f=2*b;return a[e]<a[f]||a[e]===a[f]&&d[c]<=d[b]}function VN(a,c,b){for(var d=a.sb[b],e=b<<1;e<=a.Fd;){e<a.Fd&&UN(c,a.sb[e+1],a.sb[e],a.depth)&&e++;if(UN(c,d,a.sb[e],a.depth))break;a.sb[b]=a.sb[e];b=e;e<<=1}a.sb[b]=d}
function WN(a,c,b){var d=0;if(0!==a.Fc){do{var e=a.pb[a.wg+2*d]<<8|a.pb[a.wg+2*d+1];var f=a.pb[a.hj+d];d++;if(0===e)ON(a,f,c);else{var g=EN[f];ON(a,g+256+1,c);var k=yN[g];0!==k&&(f-=FN[g],NN(a,f,k));e--;g=256>e?DN[e]:DN[256+(e>>>7)];ON(a,g,b);k=zN[g];0!==k&&(e-=GN[g],NN(a,e,k))}}while(d<a.Fc)}ON(a,256,c)}
function XN(a,c){var b=c.ul,d=c.me.vn,e=c.me.Vl,f=c.me.gq,g,k=-1;a.Fd=0;a.Jf=573;for(g=0;g<f;g++)0!==b[2*g]?(a.sb[++a.Fd]=k=g,a.depth[g]=0):b[2*g+1]=0;for(;2>a.Fd;){var m=a.sb[++a.Fd]=2>k?++k:0;b[2*m]=1;a.depth[m]=0;a.Md--;e&&(a.bg-=d[2*m+1])}c.Of=k;for(g=a.Fd>>1;1<=g;g--)VN(a,b,g);m=f;do g=a.sb[1],a.sb[1]=a.sb[a.Fd--],VN(a,b,1),d=a.sb[1],a.sb[--a.Jf]=g,a.sb[--a.Jf]=d,b[2*m]=b[2*g]+b[2*d],a.depth[m]=(a.depth[g]>=a.depth[d]?a.depth[g]:a.depth[d])+1,b[2*g+1]=b[2*d+1]=m,a.sb[1]=m++,VN(a,b,1);while(2<=
a.Fd);a.sb[--a.Jf]=a.sb[1];g=c.ul;m=c.Of;d=c.me.vn;e=c.me.Vl;f=c.me.jq;var p=c.me.iq,v=c.me.Uq,A,G=0;for(A=0;15>=A;A++)a.xd[A]=0;g[2*a.sb[a.Jf]+1]=0;for(c=a.Jf+1;573>c;c++){var E=a.sb[c];A=g[2*g[2*E+1]+1]+1;A>v&&(A=v,G++);g[2*E+1]=A;if(!(E>m)){a.xd[A]++;var P=0;E>=p&&(P=f[E-p]);var ea=g[2*E];a.Md+=ea*(A+P);e&&(a.bg+=ea*(d[2*E+1]+P))}}if(0!==G){do{for(A=v-1;0===a.xd[A];)A--;a.xd[A]--;a.xd[A+1]+=2;a.xd[v]--;G-=2}while(0<G);for(A=v;0!==A;A--)for(E=a.xd[A];0!==E;)d=a.sb[--c],d>m||(g[2*d+1]!==A&&(a.Md+=
(A-g[2*d+1])*g[2*d],g[2*d+1]=A),E--)}QN(b,k,a.xd)}function YN(a,c,b){var d,e=-1,f=c[1],g=0,k=7,m=4;0===f&&(k=138,m=3);c[2*(b+1)+1]=65535;for(d=0;d<=b;d++){var p=f;f=c[2*(d+1)+1];++g<k&&p===f||(g<m?a.Qb[2*p]+=g:0!==p?(p!==e&&a.Qb[2*p]++,a.Qb[32]++):10>=g?a.Qb[34]++:a.Qb[36]++,g=0,e=p,0===f?(k=138,m=3):p===f?(k=6,m=3):(k=7,m=4))}}
function ZN(a,c,b){var d,e=-1,f=c[1],g=0,k=7,m=4;0===f&&(k=138,m=3);for(d=0;d<=b;d++){var p=f;f=c[2*(d+1)+1];if(!(++g<k&&p===f)){if(g<m){do ON(a,p,a.Qb);while(0!==--g)}else 0!==p?(p!==e&&(ON(a,p,a.Qb),g--),ON(a,16,a.Qb),NN(a,g-3,2)):10>=g?(ON(a,17,a.Qb),NN(a,g-3,3)):(ON(a,18,a.Qb),NN(a,g-11,7));g=0;e=p;0===f?(k=138,m=3):p===f?(k=6,m=3):(k=7,m=4)}}}
function Bga(a){var c=4093624447,b;for(b=0;31>=b;b++,c>>>=1)if(c&1&&0!==a.ic[2*b])return 0;if(0!==a.ic[18]||0!==a.ic[20]||0!==a.ic[26])return 1;for(b=32;256>b;b++)if(0!==a.ic[2*b])return 1;return 0}var $N=!1;function aO(a,c,b){a.pb[a.wg+2*a.Fc]=c>>>8&255;a.pb[a.wg+2*a.Fc+1]=c&255;a.pb[a.hj+a.Fc]=b&255;a.Fc++;0===c?a.ic[2*b]++:(a.matches++,c--,a.ic[2*(EN[b]+256+1)]++,a.Se[2*(256>c?DN[c]:DN[256+(c>>>7)])]++);return a.Fc===a.Hg-1};function bO(a,c){a.msg=wN[c];return c}function cO(a){for(var c=a.length;0<=--c;)a[c]=0}function dO(a){var c=a.state,b=c.pending;b>a.Ra&&(b=a.Ra);0!==b&&(mN.xf(a.he,c.pb,c.Sg,b,a.Tf),a.Tf+=b,c.Sg+=b,a.mk+=b,a.Ra-=b,c.pending-=b,0===c.pending&&(c.Sg=0))}
function eO(a,c){var b=0<=a.rc?a.rc:-1,d=a.Z-a.rc,e=0;if(0<a.level){2===a.Oa.zi&&(a.Oa.zi=Bga(a));XN(a,a.Lh);XN(a,a.yh);YN(a,a.ic,a.Lh.Of);YN(a,a.Se,a.yh.Of);XN(a,a.ol);for(e=18;3<=e&&0===a.Qb[2*AN[e]+1];e--);a.Md+=3*(e+1)+14;var f=a.Md+3+7>>>3;var g=a.bg+3+7>>>3;g<=f&&(f=g)}else f=g=d+5;if(d+4<=f&&-1!==b)NN(a,c?1:0,3),TN(a,b,d);else if(4===a.gd||g===f)NN(a,2+(c?1:0),3),WN(a,BN,CN);else{NN(a,4+(c?1:0),3);b=a.Lh.Of+1;d=a.yh.Of+1;e+=1;NN(a,b-257,5);NN(a,d-1,5);NN(a,e-4,4);for(f=0;f<e;f++)NN(a,a.Qb[2*
AN[f]+1],3);ZN(a,a.ic,b-1);ZN(a,a.Se,d-1);WN(a,a.ic,a.Se)}RN(a);c&&SN(a);a.rc=a.Z;dO(a.Oa)}function fO(a,c){a.pb[a.pending++]=c}function gO(a,c){a.pb[a.pending++]=c>>>8&255;a.pb[a.pending++]=c&255}
function hO(a,c){var b=a.gm,d=a.Z,e=a.wc,f=a.vm,g=a.Z>a.Yb-262?a.Z-(a.Yb-262):0,k=a.window,m=a.ne,p=a.fd,v=a.Z+258,A=k[d+e-1],G=k[d+e];a.wc>=a.Tl&&(b>>=2);f>a.ka&&(f=a.ka);do{var E=c;if(k[E+e]===G&&k[E+e-1]===A&&k[E]===k[d]&&k[++E]===k[d+1]){d+=2;for(E++;k[++d]===k[++E]&&k[++d]===k[++E]&&k[++d]===k[++E]&&k[++d]===k[++E]&&k[++d]===k[++E]&&k[++d]===k[++E]&&k[++d]===k[++E]&&k[++d]===k[++E]&&d<v;);E=258-(v-d);d=v-258;if(E>e){a.Nf=c;e=E;if(E>=f)break;A=k[d+e-1];G=k[d+e]}}}while((c=p[c&m])>g&&0!==--b);
return e<=a.ka?e:a.ka}
function iO(a){var c=a.Yb,b;do{var d=a.In-a.ka-a.Z;if(a.Z>=c+(c-262)){mN.xf(a.window,a.window,c,c,0);a.Nf-=c;a.Z-=c;a.rc-=c;var e=b=a.Jh;do{var f=a.head[--e];a.head[e]=f>=c?f-c:0}while(--b);e=b=c;do f=a.fd[--e],a.fd[e]=f>=c?f-c:0;while(--b);d+=c}if(0===a.Oa.Zb)break;e=a.Oa;b=a.window;f=a.Z+a.ka;var g=e.Zb;g>d&&(g=d);0===g?b=0:(e.Zb-=g,mN.xf(b,e.input,e.df,g,f),1===e.state.wrap?e.Ha=qN(e.Ha,b,g,f):2===e.state.wrap&&(e.Ha=rN(e.Ha,b,g,f)),e.df+=g,e.lf+=g,b=g);a.ka+=b;if(3<=a.ka+a.insert)for(d=a.Z-a.insert,
a.Pa=a.window[d],a.Pa=(a.Pa<<a.Ed^a.window[d+1])&a.Dd;a.insert&&!(a.Pa=(a.Pa<<a.Ed^a.window[d+3-1])&a.Dd,a.fd[d&a.ne]=a.head[a.Pa],a.head[a.Pa]=d,d++,a.insert--,3>a.ka+a.insert););}while(262>a.ka&&0!==a.Oa.Zb)}
function jO(a,c){for(var b;;){if(262>a.ka){iO(a);if(262>a.ka&&0===c)return 1;if(0===a.ka)break}b=0;3<=a.ka&&(a.Pa=(a.Pa<<a.Ed^a.window[a.Z+3-1])&a.Dd,b=a.fd[a.Z&a.ne]=a.head[a.Pa],a.head[a.Pa]=a.Z);0!==b&&a.Z-b<=a.Yb-262&&(a.Xa=hO(a,b));if(3<=a.Xa)if(b=aO(a,a.Z-a.Nf,a.Xa-3),a.ka-=a.Xa,a.Xa<=a.kj&&3<=a.ka){a.Xa--;do a.Z++,a.Pa=(a.Pa<<a.Ed^a.window[a.Z+3-1])&a.Dd,a.fd[a.Z&a.ne]=a.head[a.Pa],a.head[a.Pa]=a.Z;while(0!==--a.Xa);a.Z++}else a.Z+=a.Xa,a.Xa=0,a.Pa=a.window[a.Z],a.Pa=(a.Pa<<a.Ed^a.window[a.Z+
1])&a.Dd;else b=aO(a,0,a.window[a.Z]),a.ka--,a.Z++;if(b&&(eO(a,!1),0===a.Oa.Ra))return 1}a.insert=2>a.Z?a.Z:2;return 4===c?(eO(a,!0),0===a.Oa.Ra?3:4):a.Fc&&(eO(a,!1),0===a.Oa.Ra)?1:2}
function kO(a,c){for(var b,d;;){if(262>a.ka){iO(a);if(262>a.ka&&0===c)return 1;if(0===a.ka)break}b=0;3<=a.ka&&(a.Pa=(a.Pa<<a.Ed^a.window[a.Z+3-1])&a.Dd,b=a.fd[a.Z&a.ne]=a.head[a.Pa],a.head[a.Pa]=a.Z);a.wc=a.Xa;a.Lm=a.Nf;a.Xa=2;0!==b&&a.wc<a.kj&&a.Z-b<=a.Yb-262&&(a.Xa=hO(a,b),5>=a.Xa&&(1===a.gd||3===a.Xa&&4096<a.Z-a.Nf)&&(a.Xa=2));if(3<=a.wc&&a.Xa<=a.wc){d=a.Z+a.ka-3;b=aO(a,a.Z-1-a.Lm,a.wc-3);a.ka-=a.wc-1;a.wc-=2;do++a.Z<=d&&(a.Pa=(a.Pa<<a.Ed^a.window[a.Z+3-1])&a.Dd,a.fd[a.Z&a.ne]=a.head[a.Pa],a.head[a.Pa]=
a.Z);while(0!==--a.wc);a.Xe=0;a.Xa=2;a.Z++;if(b&&(eO(a,!1),0===a.Oa.Ra))return 1}else if(a.Xe){if((b=aO(a,0,a.window[a.Z-1]))&&eO(a,!1),a.Z++,a.ka--,0===a.Oa.Ra)return 1}else a.Xe=1,a.Z++,a.ka--}a.Xe&&(aO(a,0,a.window[a.Z-1]),a.Xe=0);a.insert=2>a.Z?a.Z:2;return 4===c?(eO(a,!0),0===a.Oa.Ra?3:4):a.Fc&&(eO(a,!1),0===a.Oa.Ra)?1:2}
function Cga(a,c){for(var b,d,e,f=a.window;;){if(258>=a.ka){iO(a);if(258>=a.ka&&0===c)return 1;if(0===a.ka)break}a.Xa=0;if(3<=a.ka&&0<a.Z&&(d=a.Z-1,b=f[d],b===f[++d]&&b===f[++d]&&b===f[++d])){for(e=a.Z+258;b===f[++d]&&b===f[++d]&&b===f[++d]&&b===f[++d]&&b===f[++d]&&b===f[++d]&&b===f[++d]&&b===f[++d]&&d<e;);a.Xa=258-(e-d);a.Xa>a.ka&&(a.Xa=a.ka)}3<=a.Xa?(b=aO(a,1,a.Xa-3),a.ka-=a.Xa,a.Z+=a.Xa,a.Xa=0):(b=aO(a,0,a.window[a.Z]),a.ka--,a.Z++);if(b&&(eO(a,!1),0===a.Oa.Ra))return 1}a.insert=0;return 4===c?
(eO(a,!0),0===a.Oa.Ra?3:4):a.Fc&&(eO(a,!1),0===a.Oa.Ra)?1:2}function Dga(a,c){for(var b;;){if(0===a.ka&&(iO(a),0===a.ka)){if(0===c)return 1;break}a.Xa=0;b=aO(a,0,a.window[a.Z]);a.ka--;a.Z++;if(b&&(eO(a,!1),0===a.Oa.Ra))return 1}a.insert=0;return 4===c?(eO(a,!0),0===a.Oa.Ra?3:4):a.Fc&&(eO(a,!1),0===a.Oa.Ra)?1:2}function lO(a,c,b,d,e){this.nq=a;this.Tq=c;this.kr=b;this.Sq=d;this.lq=e}var mO;
mO=[new lO(0,0,0,0,function(a,c){var b=65535;for(b>a.Ic-5&&(b=a.Ic-5);;){if(1>=a.ka){iO(a);if(0===a.ka&&0===c)return 1;if(0===a.ka)break}a.Z+=a.ka;a.ka=0;var d=a.rc+b;if(0===a.Z||a.Z>=d)if(a.ka=a.Z-d,a.Z=d,eO(a,!1),0===a.Oa.Ra)return 1;if(a.Z-a.rc>=a.Yb-262&&(eO(a,!1),0===a.Oa.Ra))return 1}a.insert=0;if(4===c)return eO(a,!0),0===a.Oa.Ra?3:4;a.Z>a.rc&&eO(a,!1);return 1}),new lO(4,4,8,4,jO),new lO(4,5,16,8,jO),new lO(4,6,32,32,jO),new lO(4,4,16,16,kO),new lO(8,16,32,32,kO),new lO(8,16,128,128,kO),new lO(8,
32,128,256,kO),new lO(32,128,258,1024,kO),new lO(32,258,258,4096,kO)];
function Ega(){this.Oa=null;this.status=0;this.pb=null;this.wrap=this.pending=this.Sg=this.Ic=0;this.Fa=null;this.Rc=0;this.method=8;this.Mf=-1;this.ne=this.qk=this.Yb=0;this.window=null;this.In=0;this.head=this.fd=null;this.vm=this.Tl=this.gd=this.level=this.kj=this.gm=this.wc=this.ka=this.Nf=this.Z=this.Xe=this.Lm=this.Xa=this.rc=this.Ed=this.Dd=this.Ti=this.Jh=this.Pa=0;this.ic=new mN.kd(1146);this.Se=new mN.kd(122);this.Qb=new mN.kd(78);cO(this.ic);cO(this.Se);cO(this.Qb);this.ol=this.yh=this.Lh=
null;this.xd=new mN.kd(16);this.sb=new mN.kd(573);cO(this.sb);this.Jf=this.Fd=0;this.depth=new mN.kd(573);cO(this.depth);this.Mb=this.bc=this.insert=this.matches=this.bg=this.Md=this.wg=this.Fc=this.Hg=this.hj=0}
function Fga(a,c){if(!a||!a.state||5<c||0>c)return a?bO(a,-2):-2;var b=a.state;if(!a.he||!a.input&&0!==a.Zb||666===b.status&&4!==c)return bO(a,0===a.Ra?-5:-2);b.Oa=a;var d=b.Mf;b.Mf=c;if(42===b.status)if(2===b.wrap)a.Ha=0,fO(b,31),fO(b,139),fO(b,8),b.Fa?(fO(b,(b.Fa.text?1:0)+(b.Fa.ce?2:0)+(b.Fa.Zd?4:0)+(b.Fa.name?8:0)+(b.Fa.comment?16:0)),fO(b,b.Fa.time&255),fO(b,b.Fa.time>>8&255),fO(b,b.Fa.time>>16&255),fO(b,b.Fa.time>>24&255),fO(b,9===b.level?2:2<=b.gd||2>b.level?4:0),fO(b,b.Fa.QA&255),b.Fa.Zd&&
b.Fa.Zd.length&&(fO(b,b.Fa.Zd.length&255),fO(b,b.Fa.Zd.length>>8&255)),b.Fa.ce&&(a.Ha=rN(a.Ha,b.pb,b.pending,0)),b.Rc=0,b.status=69):(fO(b,0),fO(b,0),fO(b,0),fO(b,0),fO(b,0),fO(b,9===b.level?2:2<=b.gd||2>b.level?4:0),fO(b,3),b.status=113);else{var e=8+(b.qk-8<<4)<<8;e|=(2<=b.gd||2>b.level?0:6>b.level?1:6===b.level?2:3)<<6;0!==b.Z&&(e|=32);b.status=113;gO(b,e+(31-e%31));0!==b.Z&&(gO(b,a.Ha>>>16),gO(b,a.Ha&65535));a.Ha=1}if(69===b.status)if(b.Fa.Zd){for(e=b.pending;b.Rc<(b.Fa.Zd.length&65535)&&(b.pending!==
b.Ic||(b.Fa.ce&&b.pending>e&&(a.Ha=rN(a.Ha,b.pb,b.pending-e,e)),dO(a),e=b.pending,b.pending!==b.Ic));)fO(b,b.Fa.Zd[b.Rc]&255),b.Rc++;b.Fa.ce&&b.pending>e&&(a.Ha=rN(a.Ha,b.pb,b.pending-e,e));b.Rc===b.Fa.Zd.length&&(b.Rc=0,b.status=73)}else b.status=73;if(73===b.status)if(b.Fa.name){e=b.pending;do{if(b.pending===b.Ic&&(b.Fa.ce&&b.pending>e&&(a.Ha=rN(a.Ha,b.pb,b.pending-e,e)),dO(a),e=b.pending,b.pending===b.Ic)){var f=1;break}f=b.Rc<b.Fa.name.length?b.Fa.name.charCodeAt(b.Rc++)&255:0;fO(b,f)}while(0!==
f);b.Fa.ce&&b.pending>e&&(a.Ha=rN(a.Ha,b.pb,b.pending-e,e));0===f&&(b.Rc=0,b.status=91)}else b.status=91;if(91===b.status)if(b.Fa.comment){e=b.pending;do{if(b.pending===b.Ic&&(b.Fa.ce&&b.pending>e&&(a.Ha=rN(a.Ha,b.pb,b.pending-e,e)),dO(a),e=b.pending,b.pending===b.Ic)){f=1;break}f=b.Rc<b.Fa.comment.length?b.Fa.comment.charCodeAt(b.Rc++)&255:0;fO(b,f)}while(0!==f);b.Fa.ce&&b.pending>e&&(a.Ha=rN(a.Ha,b.pb,b.pending-e,e));0===f&&(b.status=103)}else b.status=103;103===b.status&&(b.Fa.ce?(b.pending+2>
b.Ic&&dO(a),b.pending+2<=b.Ic&&(fO(b,a.Ha&255),fO(b,a.Ha>>8&255),a.Ha=0,b.status=113)):b.status=113);if(0!==b.pending){if(dO(a),0===a.Ra)return b.Mf=-1,0}else if(0===a.Zb&&(c<<1)-(4<c?9:0)<=(d<<1)-(4<d?9:0)&&4!==c)return bO(a,-5);if(666===b.status&&0!==a.Zb)return bO(a,-5);if(0!==a.Zb||0!==b.ka||0!==c&&666!==b.status){d=2===b.gd?Dga(b,c):3===b.gd?Cga(b,c):mO[b.level].lq(b,c);if(3===d||4===d)b.status=666;if(1===d||3===d)return 0===a.Ra&&(b.Mf=-1),0;if(2===d&&(1===c?(NN(b,2,3),ON(b,256,BN),16===b.Mb?
(MN(b,b.bc),b.bc=0,b.Mb=0):8<=b.Mb&&(b.pb[b.pending++]=b.bc&255,b.bc>>=8,b.Mb-=8)):5!==c&&(NN(b,0,3),TN(b,0,0),3===c&&(cO(b.head),0===b.ka&&(b.Z=0,b.rc=0,b.insert=0))),dO(a),0===a.Ra))return b.Mf=-1,0}if(4!==c)return 0;if(0>=b.wrap)return 1;2===b.wrap?(fO(b,a.Ha&255),fO(b,a.Ha>>8&255),fO(b,a.Ha>>16&255),fO(b,a.Ha>>24&255),fO(b,a.lf&255),fO(b,a.lf>>8&255),fO(b,a.lf>>16&255),fO(b,a.lf>>24&255)):(gO(b,a.Ha>>>16),gO(b,a.Ha&65535));dO(a);0<b.wrap&&(b.wrap=-b.wrap);return 0!==b.pending?0:1};var nO={};nO=function(){this.input=null;this.lf=this.Zb=this.df=0;this.he=null;this.mk=this.Ra=this.Tf=0;this.msg="";this.state=null;this.zi=2;this.Ha=0};var oO=Object.prototype.toString;
function pO(a){if(!(this instanceof pO))return new pO(a);a=this.options=mN.assign({level:-1,method:8,Up:16384,oe:15,Xq:8,gd:0,yn:""},a||{});a.raw&&0<a.oe?a.oe=-a.oe:a.rq&&0<a.oe&&16>a.oe&&(a.oe+=16);this.Yd=0;this.msg="";this.ended=!1;this.vg=[];this.Oa=new nO;this.Oa.Ra=0;var c=this.Oa;var b=a.level,d=a.method,e=a.oe,f=a.Xq,g=a.gd;if(c){var k=1;-1===b&&(b=6);0>e?(k=0,e=-e):15<e&&(k=2,e-=16);if(1>f||9<f||8!==d||8>e||15<e||0>b||9<b||0>g||4<g)c=bO(c,-2);else{8===e&&(e=9);var m=new Ega;c.state=m;m.Oa=
c;m.wrap=k;m.Fa=null;m.qk=e;m.Yb=1<<m.qk;m.ne=m.Yb-1;m.Ti=f+7;m.Jh=1<<m.Ti;m.Dd=m.Jh-1;m.Ed=~~((m.Ti+3-1)/3);m.window=new mN.pe(2*m.Yb);m.head=new mN.kd(m.Jh);m.fd=new mN.kd(m.Yb);m.Hg=1<<f+6;m.Ic=4*m.Hg;m.pb=new mN.pe(m.Ic);m.wg=1*m.Hg;m.hj=3*m.Hg;m.level=b;m.gd=g;m.method=d;if(c&&c.state){c.lf=c.mk=0;c.zi=2;b=c.state;b.pending=0;b.Sg=0;0>b.wrap&&(b.wrap=-b.wrap);b.status=b.wrap?42:113;c.Ha=2===b.wrap?0:1;b.Mf=0;if(!$N){d=Array(16);for(f=g=0;28>f;f++)for(FN[f]=g,e=0;e<1<<yN[f];e++)EN[g++]=f;EN[g-
1]=f;for(f=g=0;16>f;f++)for(GN[f]=g,e=0;e<1<<zN[f];e++)DN[g++]=f;for(g>>=7;30>f;f++)for(GN[f]=g<<7,e=0;e<1<<zN[f]-7;e++)DN[256+g++]=f;for(e=0;15>=e;e++)d[e]=0;for(e=0;143>=e;)BN[2*e+1]=8,e++,d[8]++;for(;255>=e;)BN[2*e+1]=9,e++,d[9]++;for(;279>=e;)BN[2*e+1]=7,e++,d[7]++;for(;287>=e;)BN[2*e+1]=8,e++,d[8]++;QN(BN,287,d);for(e=0;30>e;e++)CN[2*e+1]=5,CN[2*e]=PN(e,5);IN=new HN(BN,yN,257,286,15);JN=new HN(CN,zN,0,30,15);KN=new HN([],Aga,0,19,7);$N=!0}b.Lh=new LN(b.ic,IN);b.yh=new LN(b.Se,JN);b.ol=new LN(b.Qb,
KN);b.bc=0;b.Mb=0;RN(b);b=0}else b=bO(c,-2);0===b&&(c=c.state,c.In=2*c.Yb,cO(c.head),c.kj=mO[c.level].Tq,c.Tl=mO[c.level].nq,c.vm=mO[c.level].kr,c.gm=mO[c.level].Sq,c.Z=0,c.rc=0,c.ka=0,c.insert=0,c.Xa=c.wc=2,c.Xe=0,c.Pa=0);c=b}}else c=-2;if(0!==c)throw Error(wN[c]);a.Aq&&(c=this.Oa)&&c.state&&2===c.state.wrap&&(c.state.Fa=a.Aq);if(a.xg){var p;"string"===typeof a.xg?p=pN(a.xg):"[object ArrayBuffer]"===oO.call(a.xg)?p=new Uint8Array(a.xg):p=a.xg;a=this.Oa;f=p;g=f.length;if(a&&a.state)if(p=a.state,c=
p.wrap,2===c||1===c&&42!==p.status||p.ka)c=-2;else{1===c&&(a.Ha=qN(a.Ha,f,g,0));p.wrap=0;g>=p.Yb&&(0===c&&(cO(p.head),p.Z=0,p.rc=0,p.insert=0),b=new mN.pe(p.Yb),mN.xf(b,f,g-p.Yb,p.Yb,0),f=b,g=p.Yb);b=a.Zb;d=a.df;e=a.input;a.Zb=g;a.df=0;a.input=f;for(iO(p);3<=p.ka;){f=p.Z;g=p.ka-2;do p.Pa=(p.Pa<<p.Ed^p.window[f+3-1])&p.Dd,p.fd[f&p.ne]=p.head[p.Pa],p.head[p.Pa]=f,f++;while(--g);p.Z=f;p.ka=2;iO(p)}p.Z+=p.ka;p.rc=p.Z;p.insert=p.ka;p.ka=0;p.Xa=p.wc=2;p.Xe=0;a.df=d;a.input=e;a.Zb=b;p.wrap=c;c=0}else c=
-2;if(0!==c)throw Error(wN[c]);this.vA=!0}}
pO.prototype.push=function(a,c){var b=this.Oa,d=this.options.Up;if(this.ended)return!1;var e=c===~~c?c:!0===c?4:0;"string"===typeof a?b.input=pN(a):"[object ArrayBuffer]"===oO.call(a)?b.input=new Uint8Array(a):b.input=a;b.df=0;b.Zb=b.input.length;do{0===b.Ra&&(b.he=new mN.pe(d),b.Tf=0,b.Ra=d);a=Fga(b,e);if(1!==a&&0!==a)return qO(this,a),this.ended=!0,!1;if(0===b.Ra||0===b.Zb&&(4===e||2===e))if("string"===this.options.yn){var f=mN.hk(b.he,b.Tf);c=f;f=f.length;if(65537>f&&(c.subarray||!c.subarray))c=
String.fromCharCode.apply(null,mN.hk(c,f));else{for(var g="",k=0;k<f;k++)g+=String.fromCharCode(c[k]);c=g}this.vg.push(c)}else c=mN.hk(b.he,b.Tf),this.vg.push(c)}while((0<b.Zb||0===b.Ra)&&1!==a);if(4===e)return(b=this.Oa)&&b.state?(d=b.state.status,42!==d&&69!==d&&73!==d&&91!==d&&103!==d&&113!==d&&666!==d?a=bO(b,-2):(b.state=null,a=113===d?bO(b,-3):0)):a=-2,qO(this,a),this.ended=!0,0===a;2===e&&(qO(this,0),b.Ra=0);return!0};
var qO=function(a,c){0===c&&(a.result="string"===a.options.yn?a.vg.join(""):mN.Al(a.vg));a.vg=[];a.Yd=c;a.msg=a.Oa.msg};function wga(a){var c={};c=c||{};c.rq=!0;c=new pO(c);c.push(a,!0);if(c.Yd)throw c.msg||wN[c.Yd];return c.result};var rO=function(){};rO.prototype.isSupported=function(){try{return!!Uint8Array.from}catch(a){return!1}};var sO=function(a,c,b){Y.call(this);this.h=new rz(300);this.m=new rz(300);this.j="";this.f=[];var d=EL.Ja();Xt(this,GL(d,"recentImpressions",t(this.s,this)));Xt(this,GL(d,"roboHippoImpressions",t(this.C,this)));this.o=new Set;var e=window.location.pathname;d=window.location.search;b||(b=(b=/\/u\/(\d+)\/?/.exec(e))&&b[1],b=(d=/[\?&]authuser=(\d+)/.exec(d))&&d[1]||b||"0");this.g=new lN(50,b);this.g.F=new rO;d=this.g;d.W=!0;jN(d,18E4);null!=c&&Gga(this,c);oL(this);this.Ef.init(a)};x(sO,Y);mL(qL,sO);
var Hga=function(a){var c=function(b,d){var e=new sO(b);b.registerService(d,e);return e};PB(a,DD)||YB(a,DD,function(b){return c(b,ED)});PB(a,ED)||YB(a,ED,function(b){return c(b,DD)})},tO=function(a){var c=new kL;BL(c);eA(T(c,cA,5),pL());fA(T(c,cA,5),1);a.Ef.Tg(c);a.f.forEach(function(b){return b.Tg(c)});428==O(T(c,cA,5),2)&&1==O(T(c,cA,5),3)&&fA(T(c,cA,5),2);return c},Gga=function(a,c){c.then(function(b){null!=b&&(this.g.j=b)},void 0,a)};sO.prototype.s=function(){return this.h.na()};
sO.prototype.C=function(){return this.m.na()};
sO.prototype.V=function(a,c){c=void 0===c?{}:c;var b=tO(this),d=new HK;S(d,1,a);var e=AL(b);V(e,8,d);if(c.sessionId){var f=CL(b);f.za(c.sessionId)}c.Wb&&(f=CL(b),S(f,5,c.Wb));c.cb&&(f=CL(b),f.ga(c.cb));c.Qc&&(f=DL(d),S(f,2,c.Qc));c.Zc&&(f=DL(d),S(f,1,c.Zc));c.Kp&&V(e,16,c.Kp);c.an&&(f=DL(d),V(f,6,c.an));c.Wq&&(f=CL(b),S(f,16,c.Wq));d=Xfa[a];1!=d&&(e=u(),e=new Date(e),e=(new wL).format(e),e==this.j?f=a+"@":(f=a+"@"+e,this.j=e),this.h.add(f),Iga.has(a)&&this.m.add(f));uO(this,b,c.timestamp);8<=d&&this.N("F")};
var vO=function(a,c,b){a.o.has(c)||(a.V(c,b),a.o.add(c))},wO=function(a,c){var b=tO(a),d=AL(b);V(d,14,c);uO(a,b)},uO=function(a,c,b){a.Ef.Ug(c);a.f.forEach(function(e){return e.Ug(c)});var d=new KM;oga(d,c.Ba());b&&S(d,1,b.toString());T(c,RK,1)&&T(T(c,RK,1),HK,8)&&O(T(T(c,RK,1),HK,8),1)&&nga(d,O(T(T(c,RK,1),HK,8),1));a.g.log(d)},xO=function(a,c){a.f.includes(c)||a.f.push(c)},Iga=new Set([4179,4202,4208,4213,4223,4354,4461,4463,4475,4479,4554,4557]);var yO={host:"LOCAL",srflx:"STUN",relay:"RELAY",prflx:"PEER_REFLEX"};var zO=function(a,c){this.b=a;this.f=c};ca.Object.defineProperties(zO.prototype,{key:{configurable:!0,enumerable:!0,get:function(){return this.b}},value:{configurable:!0,enumerable:!0,get:function(){return this.f}}});var AO=function(a,c,b,d){this.f=a;this.La=c;this.b=b;this.g=d};ca.Object.defineProperties(AO.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this.f}},port:{configurable:!0,enumerable:!0,get:function(){return this.La}},protocol:{configurable:!0,enumerable:!0,get:function(){return this.b}}});var BO=function(a,c){this.h=a;Ja(c)?(this.b=c,"m"===a?(a=c.split(" "),this.g=new AO(a[0],a[1],a[2],a.slice(3))):"a"===a&&(a=te(c,":",1),c=a[0],this.f=1===a.length?new zO(c,null):new zO(c,a[1]))):c instanceof AO?(this.g=c,this.b=c.f+" "+c.La+" "+c.b+" "+c.g.join(" ")):c instanceof zO&&(this.f=c,this.b=c.f?c.b+":"+c.f:c.b)};BO.prototype.toString=function(){return this.Gg+"="+this.value};var CO=function(a){a=te(a,"=",1);return new BO(a[0],a[1])};
ca.Object.defineProperties(BO.prototype,{Gg:{configurable:!0,enumerable:!0,get:function(){return this.h}},value:{configurable:!0,enumerable:!0,get:function(){return this.b}},j:{configurable:!0,enumerable:!0,get:function(){return this.f}},w:{configurable:!0,enumerable:!0,get:function(){return this.g}}});var DO=function(a){this.f=a;this.b=new Map;Jga(this)},Jga=function(a){var c=new Map;a.f.forEach(function(b){if("a"===b.Gg){b=b.j;var d=b.key,e=c.get(d);e||(e=[],c.set(d,e));b.value?e.push(b.value):e.push("")}});c.forEach(function(b,d){a.b.set(d,new EO(d,b," ",!1))})};DO.prototype.get=function(a){return this.b.get(a)||new EO(a,[]," ",!0)};
var EO=function(a,c,b,d){d=void 0===d?!1:d;this.o=a;this.h=c;this.s=void 0===b?":":b;this.g=(this.m=d)?new Map:null;this.j=d?[]:null},Kga=function(a,c){return a.f?a:c};EO.prototype.forEach=function(a){FO(this);this.g.forEach(a)};EO.prototype.get=function(a){FO(this);return this.g.get(a)||new EO(a,[],":",!0)};var FO=function(a){if(null===a.g){var c=new Map;a.h.forEach(function(b){b=te(b,a.s,1);var d=b[0],e=c.get(d)||[];c.set(d,[].concat(n(e),[b[1]||""]))});a.g=Lga(c);a.j=Array.from(a.g.keys())}};
ca.Object.defineProperties(EO.prototype,{w:{configurable:!0,enumerable:!0,get:function(){return this.h}},b:{configurable:!0,enumerable:!0,get:function(){return this.m||0===this.h.length?null:this.h[0]}},f:{configurable:!0,enumerable:!0,get:function(){return!this.m}},key:{configurable:!0,enumerable:!0,get:function(){return this.o}},keys:{configurable:!0,enumerable:!0,get:function(){FO(this);return this.j}}});function Lga(a){var c=new Map;a.forEach(function(b,d){c.set(d,new EO(d,b))});return c};var GO=function(a){this.b=a;this.j=this.w=this.h=null;this.C=this.L=!1;this.F=[];this.D=this.o=null;this.H=[];this.m=[];this.J=new Map;this.g=this.f=this.s=null},HO=function(a,c){c=new DO(c);var b=c.get("ice-ufrag").b;null!=b&&(a.w=b);b=c.get("ice-pwd").b;null!=b&&(a.j=b);b=c.get("fingerprint").b;null!=b&&(a.o=b);if(b=c.get("setup").b)a.D=b;Mga(a,c);if(a.b){b=c.get("sendonly").f;var d=c.get("recvonly").f,e=c.get("sendrecv").f;if(b||e)a.L=!0;if(d||e)a.C=!0;a.h=c.get("mid").b;Nga(a,c,a.b);a.f=c.get("rid").keys;
if(b=c.get("simulcast").b)if(d=l(te(b.trim()," ",1)),b=d.next().value,d=d.next().value,"send"===b&&d&&(b=l(te(d,"=",1)),b.next(),b=b.next().value))a.g=b.split(";");Oga(a,c,a.b);Pga(a,c,a.b);Qga(a,c)}},Mga=function(a,c){c.get("crypto").forEach(function(b,d){var e=l(te(b.b," ",2));b=e.next().value;var f=e.next().value;e=e.next().value;var g=new pF;g.h=parseInt(d,10);g.g=b;g.b=f;g.f=e||"";d=g.aa();a.F.push(d)})},Nga=function(a,c,b){c.get("extmap").forEach(function(d,e){d=d.b;var f=l(te(e,"/",2));e=f.next().value;
f.next();f=new uF;f.Ka=parseInt(e,10);f.f=d;f.b=b;d=f.aa();a.H.push(d)})},Oga=function(a,c,b){var d=new Map;c.get("fmtp").forEach(function(e,f){var g={};e.b.split(";").forEach(function(k){k=te(k,"=",1);2===k.length&&(g[k[0]]=k[1])});d.set(parseInt(f,10),g)});c.get("rtpmap").forEach(function(e,f){f=parseInt(f,10);var g=e.b.split("/");e=g[0];var k=parseInt(g[1],10);g=2<g.length?parseInt(g[2],10):1;e=mF(lF(kF(jF(new iF,b),f).mf(e),k),g);k=d.get(f)||{};e.b=fF(k);e=e.aa();d.delete(f);a.m.push(e)})},Pga=
function(a,c,b){var d=c.get("msid"),e=a.J,f=new Set;c.get("ssrc").forEach(function(k,m){m=parseInt(m,10);var p=k.get("cname").b;k=Kga(k.get("msid"),d);f.add(m);if(k.f){k=l(te(k.b," ",1));var v=k.next().value,A=k.next().value;k=e.get(v);k||(k=new JF,SF(RF(NF(QF(KF(k,b),v),A),A),a.h),e.set(v,k));p&&MF(k,p);a.f&&0<a.f.length&&(p=[],a.g&&0<a.g.length?(a.g.forEach(function(G){return a.f.includes(G)}),p=a.g.reverse()):p=a.f,p=AF(new zF,p).aa(),VF(k,p));UF(k,m)}});c=c.get("ssrc-group").w.map(function(k){var m=
k.split(" ");k=m[0];m=m.slice(1).map(function(p){return parseInt(p,10)});m.forEach(function(p){return f.has(p)});return EF(DF(k),m).aa()});var g=new Map;c.forEach(function(k){k.yb().forEach(function(m){return g.set(m,[].concat(n(g.get(m)||[]),[k]))})});e.forEach(function(k){var m=new Set;k.yb().forEach(function(p){(g.get(p)||[]).forEach(function(v){return m.add(v)})});WF(k,Array.from(m))})},Qga=function(a,c){var b=xF(new wF,1024).mf("webrtc-datachannel"),d=!1;c.get("sctpmap").forEach(function(e,f){f=
parseInt(f,10);var g=l(e.b.split(" "));e=g.next().value;g=g.next().value;0!==f&&"rejected"!==e&&(g=parseInt(g,10),b=xF(b.Zh(f).mf(e),g),d=!0)});c.get("sctp-port").forEach(function(e,f){b=b.Zh(parseInt(f,10));d=!0});d&&(a.s=b.aa())},IO=function(a,c){var b=c.b||new AG("ICE","","");if(a.w&&a.j){var d=a.w;b=BG(b);b.g=d;d=a.j;b=BG(b);b.f=d}a.o&&(d=a.o,b=BG(b),b.b=d);a.D&&(b=CG(b,a.D));c=NG(LG(c,b),[].concat(n(z(c.f)),n(a.F)));if(a.b)switch(b=a.b,a=Rga(a,b),b){case "a":c=JG(c,a);break;case "v":c=EG(c,a);
break;case "d":c=KG(c,a)}return c},Rga=function(a,c){var b=Array.from(a.J.values()).map(function(d){return d.aa()});c=qG(nG(hfa(uG(new gG(c,a.m,a.H),a.L),a.C),a.m),b);a.h&&(c=rG(c,a.h));a.s&&(c=oG(c,a.s));return c};var JO=function(a){this.o=a;this.m=a[0];this.w=this.f=null};
ca.Object.defineProperties(JO.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return this.o}},h:{configurable:!0,enumerable:!0,get:function(){return this.m.w}},mediaType:{configurable:!0,enumerable:!0,get:function(){return this.h.type}},g:{configurable:!0,enumerable:!0,get:function(){if(!this.f){var a=this.b;a.get("sendonly").f?this.f="sendonly":a.get("recvonly").f?this.f="recvonly":a.get("inactive").f?this.f="inactive":this.f="sendrecv"}return this.f}},Dg:{configurable:!0,enumerable:!0,
get:function(){return"sendrecv"===this.g||"sendonly"===this.g}},cj:{configurable:!0,enumerable:!0,get:function(){return"sendrecv"===this.g||"recvonly"===this.g}},b:{configurable:!0,enumerable:!0,get:function(){this.w||(this.w=new DO(this.j));return this.w}}});var Sga=function(a){this.sessionId=a};var KO=function(a){this.b=a;this.sessionId=a.filter(function(c){return"o"===c.Gg}).map(function(c){return(new Sga(c.value.split(" ")[1])).sessionId})[0]};var LO=function(a,c){this.b=a;this.f=c},MO=function(a){return a.b.b.concat.apply(a.b.b,n(a.f.map(function(c){return c.j}))).map(function(c){return c.Gg+"="+c.value}).join("\r\n")+"\r\n"},NO=function(a){function c(){b?d.push(new JO(e)):b=new KO(e)}var b=null,d=[],e=[];a.split(/\r?\n/).forEach(function(f){kd(f)||(f=CO(f),"m"===f.Gg&&(c(),e=[]),e.push(f))});c();return new LO(b,d)};
ca.Object.defineProperties(LO.prototype,{session:{configurable:!0,enumerable:!0,get:function(){return this.b}},media:{configurable:!0,enumerable:!0,get:function(){return this.f}}});var Tga=function(a){a=a.trim().split(" ");var c=a[0].split(":")[1],b=parseInt(a[1],10),d=a[2].toUpperCase(),e=parseInt(a[3],10),f=a[4],g=parseInt(a[5],10),k=yO[a[7]],m;a.forEach(function(G,E){"generation"===G&&(m=E+1)});switch(k){case "STUN":case "RELAY":case "PEER_REFLEX":var p=a[9];var v=parseInt(a[11],10)}var A=0;m&&(A=parseInt(a[m],10));return new dF(b,e,k,d,f,g,c,A,"",p,v)},PO=function(a){var c=Ja(a)?NO(a):a;a=new DG;var b=new GO(null);HO(b,c.session.b);a=IO(b,a);b=c.media.filter(function(e){return"audio"===
e.h.type});var d=c.media.filter(function(e){return"video"===e.h.type});c=c.media.filter(function(e){return"data"===e.h.type||"application"===e.h.type});a=OO("a",b,a);a=OO("v",d,a);return a=OO("d",c,a)};function OO(a,c,b){var d=new GO(a);c.forEach(function(e){return HO(d,e.j)});return IO(d,b)};var Uga=function(a){a=a instanceof Error&&a.name;return"NotAllowedError"===a||"PermissionDeniedError"===a||"PermissionDismissedError"===a},Vga=function(a){a=a instanceof Error&&a.name;return"NotReadableError"===a||"TrackStartError"===a},Wga=function(a){var c;if(c=Ie)c=0<=wd(lJ,10.14);if(!(c&&a&&a instanceof Error&&a.name))return!1;if(bf)if(Pp(73)){if("NotAllowedError"==a.name&&"Permission denied by system"==a.message)return!0}else{if("NotReadableError"==a.name)return!0}else if(Ye&&"NotFoundError"==
a.name)return!0;return!1};var QO=function(a){N(this,a,0,-1,null,null)};x(QO,M);QO.prototype.u=function(){var a=new D;RO(this,a);return F(a)};var RO=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b)};var SO=function(a){N(this,a,0,-1,null,null)};x(SO,M);SO.prototype.u=function(){var a=new D;TO(this,a);return F(a)};var TO=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&H(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,6);null!=b&&K(c,6,b);b=O(a,7);null!=b&&c.f(7,b)},UO=function(a,c){S(a,1,c)};SO.prototype.Hb=function(){return O(this,4)};var VO=function(a){N(this,a,0,-1,null,null)};x(VO,M);VO.prototype.u=function(){var a=new D;WO(this,a);return F(a)};var WO=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&Ik(c,2,b);b=O(a,3);null!=b&&Ik(c,3,b);b=O(a,4);null!=b&&Ik(c,4,b)};VO.prototype.Hb=function(){return O(this,4)};var XO=function(a){N(this,a,0,-1,null,null)};x(XO,M);XO.prototype.u=function(){var a=new D;YO(this,a);return F(a)};var YO=function(a,c){var b=O(a,1);null!=b&&H(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};var ZO=function(a){N(this,a,0,-1,null,null)};x(ZO,M);ZO.prototype.u=function(){var a=new D;$O(this,a);return F(a)};var $O=function(a,c){var b=T(a,SO,1);null!=b&&c.b(1,b,TO);b=T(a,QO,2);null!=b&&c.b(2,b,RO);b=T(a,XO,3);null!=b&&c.b(3,b,YO);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&I(c,5,b);b=O(a,6);null!=b&&c.h(6,b);b=T(a,cA,7);null!=b&&c.b(7,b,dA);b=O(a,8);null!=b&&K(c,8,b);b=T(a,VO,9);null!=b&&c.b(9,b,WO)},aP=function(a,c){V(a,1,c)};var bP=function(a,c){c=void 0===c?!1:c;var b=new cA;S(b,2,a);eA(b,pL(c));fA(b,428==a?2:1);return b};var Xga=function(a,c,b){this.b=a;this.f=c;this.g=b};var cP=function(a){N(this,a,0,-1,null,null)};x(cP,M);var Yga=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=qk(c);S(a,1,b);break;case 2:b=ik(c.b);S(a,2,b);break;default:ok(c)}return a};cP.prototype.u=function(){var a=new D;dP(this,a);return F(a)};var dP=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&Ik(c,2,b)};var eP=function(a){N(this,a,0,-1,null,null)};x(eP,M);
var Zga=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=qk(c);S(a,1,b);break;case 2:b=rk(c);S(a,2,b);break;case 3:b=rk(c);S(a,3,b);break;case 4:var d=c.b;hk(d);b=d.o;var e=d.m;if(d=e&2147483648)b=~b+1>>>0,e=~e+(0==b?1:0)>>>0;b=bk(b,e);b=d?"-"+b:b;S(a,4,b);break;case 10:b=rk(c);S(a,10,b);break;case 11:b=c.b.w();S(a,11,b);break;case 5:b=ik(c.b);S(a,5,b);break;case 6:b=ik(c.b);S(a,6,b);break;case 7:b=rk(c);S(a,7,b);break;case 8:b=rk(c);S(a,8,b);break;case 9:b=new cP;c.g(b,Yga);V(a,9,b);break;
default:ok(c)}return a};eP.prototype.u=function(){var a=new D;fP(this,a);return F(a)};var fP=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&Hk(c,4,b);b=O(a,10);null!=b&&K(c,10,b);b=O(a,11);null!=b&&c.f(11,b);b=O(a,5);null!=b&&Ik(c,5,b);b=O(a,6);null!=b&&Ik(c,6,b);b=O(a,7);null!=b&&K(c,7,b);b=O(a,8);null!=b&&K(c,8,b);b=T(a,cP,9);null!=b&&c.b(9,b,dP)};eP.prototype.Va=function(){return O(this,1)};var gP=function(a,c,b,d){this.status=a;this.g=c;this.b=b;this.response=d};gP.prototype.toString=function(){var a="["+this.status+"/"+this.g;null!=this.b&&(a+="/"+this.b);null!=this.response&&(a+=": ",a=Wa(this.response)?a+Cn(this.response,this.f,this).join("; "):a+this.f(this.response));return a+"]"};
gP.prototype.f=function(a){if(null!=a&&null!=a.error){var c=a.error;a=c.message+" "+c.code;c=c.data||c.errors;null!=c&&(c=Cn(c,function(b){var d=b.domain+" - "+b.reason;null!=b.debugInfo&&(d+=" = "+te(b.debugInfo,"\n",4).slice(0,3).join(" - "));return d}),An(c)||(a+=": "+c.join(", ")));return a}return Wa(a)&&0<a.length?a.toString():"Unknown"};var $ga=function(){this.w={}},aha=function(a,c){a.w=c||{};return a};var iP=function(){this.w={};this.Wh=new hP;this.m=new NL(1E3,36E4);this.h=6E4;this.o=!1;this.F=[]};x(iP,$ga);h=iP.prototype;h.toString=function(){return"<# "+this.b+" to "+(this.j||"")+" for "+this.s+">"};h.Vm=function(a){this.j=a;return this};h.Um=function(a){this.s=a;return this};h.jn=function(){return this};h.mn=function(a){this.O=a;return this};h.qn=function(a){this.C=a;return this};h.Zj=function(a){this.L=a;return this};h.dk=function(a){this.f=a};h.rn=function(a){this.g=a;return this};
h.ft=function(a){this.D=a};h.Ws=function(a){this.h=a};var bha=function(a){var c=a.m.b;c=Math.round(.5*c)+Math.floor(Math.random()*c);OL(a.m);return Math.min(c+0,36E4)};iP.prototype.cancel=function(){this.o=!0;this.dk("c")};var hP=function(){};hP.prototype.b=function(a){this.f=a;return this};hP.prototype.kn=function(a){this.g=a};hP.prototype.callback=function(a){this.f(a)};var jP=new Sy("FwiOSb");var kP=function(a,c){Y.call(this);this.f=c;this.l=Mf("realtime.network.ApiaryClient");a.load(t(this.pr,this),t(this.qr,this));this.j=0;this.h=new Jm;this.g=new Jm;C(this.l,"Created apiary client")};x(kP,Y);var cha=function(a,c,b,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"+(c&&!Ja(c)?c.Ba():c);y(b,function(g){f+=e+"Content-Type: "+g.type+"\r\nContent-transfer-encoding: "+g.b+"\r\n\r\n"+g.data+"\r\n\r\n"});return f+=d};h=kP.prototype;h.Wg=null;
h.pr=function(a){this.Wg=a;this.N("Da");C(this.l,"Apiary client loaded")};h.qr=function(){this.w()||(this.Wg=null,C(this.l,"Apiary client unloaded"))};h.ia=function(){var a=this.h.wb();y(a,rv);a=this.g.wb();y(a,rv)};
h.request=function(a){if(!this.w()&&!a.o)if(null!=this.Wg){var c=this.j++;a.b=c;this.f&&this.f.onRequest(a);c=a.L;var b=null!=a.J?a.J:{},d=null!=a.C?a.C:{},e=null!=a.H?a.H:"application/json";if(null!=a.g?a.g:1)d.alt="protojson",e="application/json+protobuf",c instanceof M&&(c=JSON.parse(c.Ba()));var f=a.F;if(0<f.length){b["MIME-Version"]="1.0";var g="END_OF_PART_"+se();b["Content-Type"]='multipart/related; boundary="'+g+'"';c=cha(e,c,f,g)}else null!=c&&(b["Content-Type"]=e);b["Accept-Language"]=a.T||
"en";c={method:a.O,path:a.s,params:d,headers:b,body:c};kd(pe(a.j||""))||(c.root=a.j||"");C(this.l,"Sending request "+a);try{var k=this.Wg.client.request(c);a.dk("p");null!=a.h&&this.g.set(a.b,qv(t(this.Ns,this,a),a.h||void 0));k.execute(t(this.Ds,this,a))}catch(m){Of(this.l,"Failed to enqueue request "+Hv(c),m),lP(this,a,new gP("fatal","request_queuing",null,null),null,0)}}else B(this.l,"Request when client is not ready!")};
h.Ns=function(a){B(this.l,"Request timed out: "+a);lP(this,a,new gP("retry","deadline_exceeded",null,null),null,0)};
h.Ds=function(a,c,b){if(this.w()||"p"!=a.f)mP(this,a);else{var d=null,e="ok";mP(this,a);var f=null,g=null;try{var k=JSON.parse(b),m=k.gapiRequest.data.body;f=k.gapiRequest.data.headers;d=JSON.parse(m)}catch(v){B(this.l,"Failed to parse the response for request "+a+": "+b,v);var p="response_decoding";e="retry"}null!=c&&null!=c.error&&(g=c.error.code,B(this.l,"Request failed: "+a+": "+c.error.code+" - "+c.error.message),p="network_or_frontend",e="retry",400==g?(p="bad_request",e="fatal"):401==g?(p=
"unauthorized",e="fatal"):402==g?(p="payment_required",e="fatal"):403==g&&(p="forbidden",e="fatal"));"ok"==e&&null!=d.error&&(B(this.l,"Server returned an error for request "+a+": "+d.error.code+' "'+d.error.message+'": '+d.error.errors[0].debugInfo),p="backend",e="retry");"ok"==e&&((c=null!=a.g?a.g:!0)&&!Wa(d)||!c&&!Ya(d))&&(B(this.l,"Apiary returned bad response type for request "+a+": expected "+(c?"Array":"Object")+", received "+Sa(d)),p="response_format",e="retry");if("ok"==e&&(a.dk("o"),a.Wh.callback(d),
"o"!=a.f))switch(p="response_callback",a.f){case "r":B(this.l,"Error processing response for request "+a+": should retry.");e="retry";break;case "d":B(this.l,"Fatal error processing response for request "+a);e="fatal";break;default:Of(this.l,"Unexpected response state from processing the response for "+a+": "+a.f)}if("ok"==e)C(this.l,"Response processed successfully for request "+a),this.f&&this.f.f(a,d);else{c=0;if(null!=f&&null!=f["Retry-After"])try{c=1E3*parseInt(f["Retry-After"],10),c=Math.min(Math.max(c,
0),72E5)}catch(v){}lP(this,a,new gP(e,p,g,d),b,c)}}b=this.g.get(a.b);null!=b&&(this.g.remove(a.b),rv(b))};var mP=function(a,c){var b=a.h.get(c.b);null!=b&&(a.h.remove(c.b),rv(b))},lP=function(a,c,b,d,e){a.w()||"p"!=c.f&&"r"!=c.f||(a.f&&a.f.onError(c,b,d),d=null!=c.D?c.D:0,"retry"==b.status&&0<d?(C(a.l,"Scheduling retry for request "+c),a.h.set(c.b,qv(t(a.request,a,c),Math.max(bha(c),e)))):(c.cancel(),c.Wh.g(b)))};var nP=function(a,c,b,d,e){var f=this;Y.call(this);this.j=c;this.m=b;this.o=e||"https://clients6.google.com";this.f=d;this.g=a;this.s=new Tu(function(g){null!=f.g.Wg?g():wu(f.g,"Da",function(){return g()})})};x(nP,Y);nP.prototype.request=function(a,c,b,d,e,f,g){this.s.then(function(){var k=(new iP).Vm(this.o).jn().Um("/"+this.j+"/"+this.m+"/"+a).mn(c).qn(b).rn(!Ia(g)||g).Zj(d),m=dv();m.Y.then(e,f||Qa);k.Wh.b(t(m.resolve,m)).kn(t(m.reject,m));this.g.request(k)},null,this)};
nP.prototype.makeRequest=function(a,c,b,d,e,f){e=kd(pe(this.f))?{}:{key:this.f};a=aha((new iP).Vm(this.o).jn().Um("/"+this.j+"/"+this.m+"/"+a).mn("POST").qn(e).rn(!0).Zj(c),f);null!=b&&a.Ws(b);null!=d&&a.ft(d);var g=dv();a.Wh.b(t(function(k){var m=null;try{m=k instanceof M?k:0<k.length?wl(k):null}catch(A){g.reject(new gP("fatal","response_decoding",null,k));return}var p=m;var v=0;p&&Xa(p.getResponseHeader)&&(p=p.getResponseHeader())&&Xa(p.Va)&&(v=p.Va());1==v?g.resolve(m):g.reject(new gP("fatal",
11===v?"not_found":"backend",null,k))},this)).kn(t(g.reject,g));this.s.then(t(this.g.request,this.g,a));return g.Y};var oP=function(a,c,b){a=Pr(a,encodeURIComponent("$ct"),b);if(null==navigator.sendBeacon||!navigator.sendBeacon(a,c)){b=a;var d="POST",e=c;a=Pr(a,encodeURIComponent("$httpMethod"),"POST");a=Pr(a,encodeURIComponent("$req"),c);2048>a.length&&(b=a,d="GET",e=null);try{var f=vw(tw);f.open(d,b,!1);f.send(e)}catch(g){c=Mf("realtime.network.Beacon"),Of(c,"Cannot fallback from sendBeacon",g)}}};var pP=function(a,c,b,d,e,f){nP.call(this,a,c,b,d,e);this.h=f||new Yw};x(pP,nP);pP.prototype.makeRequest=function(a,c,b,d,e,f,g){!0!==g&&qP(this,c);return pP.Ga.makeRequest.call(this,a,c,b,d,e,f,Xa(g)?g:void 0).then(this.C,null,this)};var qP=function(a,c){if(c&&a.h.b&&Xa(c.K)&&Xa(c.M)){var b=c.K()||new Cl;V(b,3,a.h.b);c.M(b)}};pP.prototype.C=function(a){Xa(a.getResponseHeader)&&1==a.getResponseHeader().Va()&&rP(this,a);return a};
var rP=function(a,c){(c=(c=Xa(c.K)&&c.K()||null)&&T(c,Dl,3))&&Zw(a.h,c)};var sP=function(a){N(this,a,0,-1,null,null)};x(sP,M);sP.prototype.u=function(){var a=new D;tP(this,a);return F(a)};var tP=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&J(c,2,b)};var uP=function(a){N(this,a,0,-1,null,null)};x(uP,M);uP.prototype.u=function(){var a=new D;vP(this,a);return F(a)};var vP=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&Ik(c,2,b)};var wP=function(a){N(this,a,0,-1,null,null)};x(wP,M);wP.prototype.u=function(){var a=new D;xP(this,a);return F(a)};var xP=function(a,c){a=T(a,uP,1);null!=a&&c.b(1,a,vP)};var yP=function(a){N(this,a,0,-1,null,null)};x(yP,M);yP.prototype.u=function(){var a=new D;zP(this,a);return F(a)};var zP=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=T(a,wP,4);null!=b&&c.b(4,b,xP);b=O(a,3);null!=b&&Hk(c,3,b);b=O(a,5);null!=b&&Ik(c,5,b);b=T(a,sP,6);null!=b&&c.b(6,b,tP);b=O(a,2);null!=b&&Nk(c,2,b);b=O(a,7);null!=b&&K(c,7,b);b=O(a,8);null!=b&&K(c,8,b)};var AP=function(a){N(this,a,0,-1,dha,null)};x(AP,M);var dha=[1];AP.prototype.u=function(){var a=new D;BP(this,a);return F(a)};var BP=function(a,c){a=O(a,1);0<a.length&&Tk(c,1,a)};var CP=function(a){N(this,a,0,-1,null,null)};x(CP,M);CP.prototype.u=function(){var a=new D;DP(this,a);return F(a)};var DP=function(a,c){a=T(a,AP,1);null!=a&&c.b(1,a,BP)};var EP=function(a){N(this,a,0,1,null,null)};x(EP,M);var eha={};EP.prototype.u=function(){var a=new D;FP(this,a);return F(a)};var FP=function(a,c){bl(a,c,eha,EP.prototype.w)};var GP=function(a){N(this,a,0,-1,fha,null)};x(GP,M);var HP=function(a){N(this,a,0,-1,null,null)};x(HP,M);var IP=function(a){N(this,a,0,-1,null,null)};x(IP,M);var JP=function(a){N(this,a,0,-1,null,null)};x(JP,M);var KP=function(a){N(this,a,0,-1,null,null)};x(KP,M);var LP=function(a){N(this,a,0,-1,null,null)};x(LP,M);var MP=function(a){N(this,a,0,-1,gha,null)};x(MP,M);var NP=function(a){N(this,a,0,-1,null,null)};x(NP,M);var OP=function(a){N(this,a,0,-1,null,null)};x(OP,M);
var PP=function(a){N(this,a,0,-1,null,null)};x(PP,M);var fha=[14];GP.prototype.u=function(){var a=new D;QP(this,a);return F(a)};
var QP=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&J(c,4,b);b=O(a,10);null!=b&&K(c,10,b);b=O(a,5);null!=b&&K(c,5,b);b=T(a,JP,6);null!=b&&c.b(6,b,RP);b=O(a,7);null!=b&&J(c,7,b);b=T(a,HP,8);null!=b&&c.b(8,b,SP);b=T(a,MP,9);null!=b&&c.b(9,b,TP);b=T(a,OP,11);null!=b&&c.b(11,b,UP);b=a.Eh();null!=b&&c.b(12,b,VP);b=O(a,13);null!=b&&J(c,13,b);b=O(a,14);0<b.length&&Tk(c,14,b)};HP.prototype.u=function(){var a=new D;SP(this,a);return F(a)};
var SP=function(a,c){var b=O(a,1);null!=b&&H(c,1,b);b=T(a,IP,2);null!=b&&c.b(2,b,WP);b=O(a,3);null!=b&&K(c,3,b);b=T(a,KP,4);null!=b&&c.b(4,b,XP);b=T(a,LP,5);null!=b&&c.b(5,b,YP);b=T(a,NP,6);null!=b&&c.b(6,b,ZP);b=T(a,EP,7);null!=b&&c.b(7,b,FP)};IP.prototype.u=function(){var a=new D;WP(this,a);return F(a)};var WP=function(a,c){var b=O(a,1);null!=b&&H(c,1,b);b=O(a,2);null!=b&&H(c,2,b)};JP.prototype.u=function(){var a=new D;RP(this,a);return F(a)};
var RP=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&J(c,2,b)};KP.prototype.u=function(){var a=new D;XP(this,a);return F(a)};var XP=function(a,c){a=O(a,1);null!=a&&K(c,1,a)};LP.prototype.u=function(){var a=new D;YP(this,a);return F(a)};var YP=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&H(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b)};LP.prototype.getTitle=function(){return O(this,3)};LP.prototype.setTitle=function(a){S(this,3,a)};var gha=[5];
MP.prototype.u=function(){var a=new D;TP(this,a);return F(a)};var TP=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&I(c,3,b);b=O(a,4);null!=b&&J(c,4,b);b=O(a,5);0<b.length&&Tk(c,5,b)};NP.prototype.u=function(){var a=new D;ZP(this,a);return F(a)};var ZP=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b)};NP.prototype.Va=function(){return R(this,1,0)};OP.prototype.u=function(){var a=new D;UP(this,a);return F(a)};
var UP=function(a,c){var b=O(a,3);null!=b&&J(c,3,b);b=O(a,4);null!=b&&H(c,4,b);b=O(a,5);null!=b&&I(c,5,b)};OP.prototype.getCurrentState=function(){return O(this,3)};PP.prototype.u=function(){var a=new D;VP(this,a);return F(a)};var VP=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&J(c,2,b)};GP.prototype.ma=function(){return O(this,1)};GP.prototype.ga=function(a){S(this,1,a)};GP.prototype.Tb=function(){return O(this,4)};GP.prototype.Eh=function(){return T(this,PP,12)};var $P=function(a){N(this,a,0,-1,null,null)};x($P,M);$P.prototype.u=function(){var a=new D;aQ(this,a);return F(a)};var aQ=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};$P.prototype.ma=function(){return O(this,1)};$P.prototype.ga=function(a){S(this,1,a)};var bQ=function(a){N(this,a,0,-1,hha,null)};x(bQ,M);var hha=[2,3];bQ.prototype.u=function(){var a=new D;cQ(this,a);return F(a)};var cQ=function(a,c){var b=a.K();null!=b&&c.b(1,b,Gl);b=a.gb();0<b.length&&L(c,2,b,QP);b=a.Db();0<b.length&&L(c,3,b,aQ);b=a.ob();null!=b&&c.b(4,b,aQ)};h=bQ.prototype;h.K=function(){return T(this,Cl,1)};h.M=function(a){V(this,1,a)};h.ea=function(){this.M(void 0)};h.gb=function(){return U(this,GP,2)};h.Db=function(){return U(this,$P,3)};h.ob=function(){return T(this,$P,4)};var dQ=function(a){N(this,a,0,-1,iha,null)};x(dQ,M);var iha=[6];dQ.prototype.u=function(){var a=new D;eQ(this,a);return F(a)};var eQ=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&J(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,6);0<b.length&&Tk(c,6,b);b=O(a,7);null!=b&&K(c,7,b);b=O(a,8);null!=b&&J(c,8,b);b=O(a,9);null!=b&&K(c,9,b);b=O(a,10);null!=b&&K(c,10,b);b=O(a,11);null!=b&&J(c,11,b)};h=dQ.prototype;
h.ma=function(){return O(this,1)};h.ga=function(a){S(this,1,a)};h.getTitle=function(){return O(this,9)};h.setTitle=function(a){S(this,9,a)};h.Zj=function(a){S(this,10,a)};var fQ=function(a){N(this,a,0,-1,null,null)};x(fQ,M);fQ.prototype.u=function(){var a=new D;gQ(this,a);return F(a)};var gQ=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};fQ.prototype.ma=function(){return O(this,1)};fQ.prototype.ga=function(a){S(this,1,a)};var hQ=function(a){N(this,a,0,-1,jha,null)};x(hQ,M);var jha=[2,3];hQ.prototype.u=function(){var a=new D;iQ(this,a);return F(a)};var iQ=function(a,c){var b=a.K();null!=b&&c.b(1,b,Gl);b=a.gb();0<b.length&&L(c,2,b,eQ);b=a.Db();0<b.length&&L(c,3,b,gQ);b=a.ob();null!=b&&c.b(4,b,gQ)};h=hQ.prototype;h.K=function(){return T(this,Cl,1)};h.M=function(a){V(this,1,a)};h.ea=function(){this.M(void 0)};h.gb=function(){return U(this,dQ,2)};h.Db=function(){return U(this,fQ,3)};h.ob=function(){return T(this,fQ,4)};var jQ=function(a){N(this,a,0,-1,null,null)};x(jQ,M);jQ.prototype.u=function(){var a=new D;kQ(this,a);return F(a)};var kQ=function(a,c){var b=a.K();null!=b&&c.b(1,b,Gl);b=O(a,2);null!=b&&H(c,2,b);b=O(a,3);null!=b&&K(c,3,b)};jQ.prototype.K=function(){return T(this,Cl,1)};jQ.prototype.M=function(a){V(this,1,a)};jQ.prototype.ea=function(){this.M(void 0)};var lQ=function(a){N(this,a,0,-1,null,null)};x(lQ,M);var mQ=function(a){N(this,a,0,-1,null,null)};x(mQ,M);var nQ=function(a){N(this,a,0,-1,null,null)};x(nQ,M);var oQ=function(a){N(this,a,0,-1,null,null)};x(oQ,M);lQ.prototype.u=function(){var a=new D;pQ(this,a);return F(a)};var pQ=function(a,c){var b=T(a,mQ,1);null!=b&&c.b(1,b,qQ);b=T(a,nQ,2);null!=b&&c.b(2,b,rQ);b=T(a,nQ,3);null!=b&&c.b(3,b,rQ);b=T(a,oQ,4);null!=b&&c.b(4,b,sQ)};mQ.prototype.u=function(){var a=new D;qQ(this,a);return F(a)};
var qQ=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&J(c,2,b)};nQ.prototype.u=function(){var a=new D;rQ(this,a);return F(a)};var rQ=function(a,c){var b=O(a,1);null!=b&&c.f(1,b);b=O(a,2);null!=b&&c.f(2,b);b=O(a,3);null!=b&&Mk(c,3,b)};oQ.prototype.u=function(){var a=new D;sQ(this,a);return F(a)};var sQ=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&H(c,3,b);b=O(a,4);null!=b&&H(c,4,b)};var tQ=function(a){N(this,a,0,-1,kha,null)};x(tQ,M);var uQ=function(a){N(this,a,0,-1,null,null)};x(uQ,M);var kha=[20,8,19,26];tQ.prototype.u=function(){var a=new D;vQ(this,a);return F(a)};
var vQ=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,6);null!=b&&I(c,6,b);b=O(a,7);null!=b&&I(c,7,b);b=U(a,uQ,20);0<b.length&&L(c,20,b,wQ);b=O(a,8);0<b.length&&Tk(c,8,b);b=O(a,9);null!=b&&I(c,9,b);b=O(a,10);null!=b&&K(c,10,b);b=O(a,11);null!=b&&K(c,11,b);b=O(a,12);null!=b&&J(c,12,b);b=O(a,13);null!=b&&J(c,13,b);b=O(a,14);null!=b&&J(c,14,b);b=O(a,17);null!=b&&J(c,17,b);b=O(a,18);null!=b&&
I(c,18,b);b=O(a,19);0<b.length&&Sk(c,19,b);b=O(a,21);null!=b&&I(c,21,b);b=T(a,lQ,22);null!=b&&c.b(22,b,pQ);b=O(a,23);null!=b&&H(c,23,b);b=O(a,24);null!=b&&J(c,24,b);b=O(a,25);null!=b&&K(c,25,b);b=O(a,26);0<b.length&&Tk(c,26,b)};uQ.prototype.u=function(){var a=new D;wQ(this,a);return F(a)};var wQ=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&J(c,2,b)};h=tQ.prototype;h.ma=function(){return O(this,1)};h.ga=function(a){S(this,1,a)};h.ba=function(){return O(this,2)};
h.Na=function(a){S(this,2,a)};h.bk=function(a){S(this,26,a||[])};var xQ=function(a){N(this,a,0,-1,null,null)};x(xQ,M);xQ.prototype.u=function(){var a=new D;yQ(this,a);return F(a)};var yQ=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};xQ.prototype.ma=function(){return O(this,1)};xQ.prototype.ga=function(a){S(this,1,a)};xQ.prototype.ba=function(){return O(this,2)};xQ.prototype.Na=function(a){S(this,2,a)};var zQ=function(a){N(this,a,0,-1,lha,null)};x(zQ,M);var lha=[2,3];zQ.prototype.u=function(){var a=new D;AQ(this,a);return F(a)};var AQ=function(a,c){var b=a.K();null!=b&&c.b(1,b,Gl);b=a.gb();0<b.length&&L(c,2,b,vQ);b=a.Db();0<b.length&&L(c,3,b,yQ);b=O(a,4);null!=b&&J(c,4,b);b=a.ob();null!=b&&c.b(5,b,yQ);b=O(a,6);null!=b&&J(c,6,b)};h=zQ.prototype;h.K=function(){return T(this,Cl,1)};h.M=function(a){V(this,1,a)};h.ea=function(){this.M(void 0)};h.gb=function(){return U(this,tQ,2)};
h.Db=function(){return U(this,xQ,3)};h.ob=function(){return T(this,xQ,5)};var BQ=function(a){N(this,a,0,-1,mha,null)};x(BQ,M);var CQ=function(a){N(this,a,0,-1,null,null)};x(CQ,M);var mha=[1];BQ.prototype.u=function(){var a=new D;DQ(this,a);return F(a)};var DQ=function(a,c){a=U(a,CQ,1);0<a.length&&L(c,1,a,EQ)};CQ.prototype.u=function(){var a=new D;EQ(this,a);return F(a)};var EQ=function(a,c){a=O(a,1);null!=a&&J(c,1,a)};var FQ=function(a){N(this,a,0,-1,null,null)};x(FQ,M);FQ.prototype.u=function(){var a=new D;GQ(this,a);return F(a)};var GQ=function(a,c){a=O(a,1);null!=a&&J(c,1,a)};var HQ=function(a){N(this,a,0,-1,null,null)};x(HQ,M);HQ.prototype.u=function(){var a=new D;IQ(this,a);return F(a)};var IQ=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&c.f(2,b)};var JQ=function(a){N(this,a,0,-1,nha,null)};x(JQ,M);var nha=[3];JQ.prototype.u=function(){var a=new D;KQ(this,a);return F(a)};var KQ=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);0<b.length&&Tk(c,3,b);b=O(a,9);null!=b&&H(c,9,b);b=O(a,4);null!=b&&J(c,4,b);b=T(a,BQ,5);null!=b&&c.b(5,b,DQ);b=T(a,HQ,7);null!=b&&c.b(7,b,IQ);b=T(a,FQ,8);null!=b&&c.b(8,b,GQ);b=O(a,6);null!=b&&I(c,6,b)};JQ.prototype.ma=function(){return O(this,1)};JQ.prototype.ga=function(a){S(this,1,a)};var LQ=function(a){N(this,a,0,-1,oha,null)};x(LQ,M);var oha=[2];LQ.prototype.u=function(){var a=new D;MQ(this,a);return F(a)};var MQ=function(a,c){var b=a.K();null!=b&&c.b(1,b,Gl);b=a.gb();0<b.length&&L(c,2,b,KQ)};LQ.prototype.K=function(){return T(this,Cl,1)};LQ.prototype.M=function(a){V(this,1,a)};LQ.prototype.ea=function(){this.M(void 0)};LQ.prototype.gb=function(){return U(this,JQ,2)};var NQ=function(a){N(this,a,0,-1,null,null)};x(NQ,M);NQ.prototype.u=function(){var a=new D;OQ(this,a);return F(a)};var OQ=function(a,c){a=O(a,1);null!=a&&K(c,1,a)};NQ.prototype.getId=function(){return O(this,1)};var PQ=function(a){N(this,a,0,-1,null,null)};x(PQ,M);PQ.prototype.u=function(){var a=new D;QQ(this,a);return F(a)};var QQ=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};PQ.prototype.getService=function(){return O(this,1)};var RQ=function(a){N(this,a,0,-1,null,null)};x(RQ,M);RQ.prototype.u=function(){var a=new D;SQ(this,a);return F(a)};var SQ=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};var TQ=function(a){N(this,a,0,-1,pha,null)};x(TQ,M);var pha=[15,26];TQ.prototype.u=function(){var a=new D;UQ(this,a);return F(a)};
var UQ=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=T(a,PQ,3);null!=b&&c.b(3,b,QQ);b=O(a,4);null!=b&&I(c,4,b);b=O(a,6);null!=b&&H(c,6,b);b=O(a,7);null!=b&&H(c,7,b);b=O(a,8);null!=b&&K(c,8,b);b=T(a,NQ,9);null!=b&&c.b(9,b,OQ);b=O(a,10);null!=b&&I(c,10,b);b=O(a,11);null!=b&&H(c,11,b);b=O(a,12);null!=b&&H(c,12,b);b=O(a,13);null!=b&&K(c,13,b);b=O(a,14);null!=b&&J(c,14,b);b=O(a,15);0<b.length&&Tk(c,15,b);b=O(a,16);null!=b&&I(c,16,b);b=O(a,24);null!=b&&J(c,24,b);b=a.Hf();null!=
b&&c.b(17,b,SQ);b=O(a,18);null!=b&&I(c,18,b);b=O(a,25);null!=b&&J(c,25,b);b=O(a,21);null!=b&&J(c,21,b);b=O(a,22);null!=b&&J(c,22,b);b=O(a,23);null!=b&&J(c,23,b);b=O(a,26);0<b.length&&Sk(c,26,b);b=O(a,27);null!=b&&K(c,27,b);b=O(a,28);null!=b&&K(c,28,b);b=O(a,29);null!=b&&K(c,29,b);b=O(a,30);null!=b&&K(c,30,b);b=O(a,31);null!=b&&I(c,31,b);b=O(a,32);null!=b&&I(c,32,b)};h=TQ.prototype;h.ma=function(){return O(this,1)};h.ga=function(a){S(this,1,a)};h.la=function(){return O(this,14)};
h.vb=function(a){S(this,14,a)};h.Hf=function(){return T(this,RQ,17)};var VQ=function(a){N(this,a,0,-1,null,null)};x(VQ,M);VQ.prototype.u=function(){var a=new D;WQ(this,a);return F(a)};var WQ=function(a,c){a=O(a,1);null!=a&&K(c,1,a)};VQ.prototype.ma=function(){return O(this,1)};VQ.prototype.ga=function(a){S(this,1,a)};var XQ=function(a){N(this,a,0,-1,qha,null)};x(XQ,M);var qha=[2,3];XQ.prototype.u=function(){var a=new D;YQ(this,a);return F(a)};var YQ=function(a,c){var b=a.K();null!=b&&c.b(1,b,Gl);b=a.gb();0<b.length&&L(c,2,b,UQ);b=a.Db();0<b.length&&L(c,3,b,WQ);b=a.ob();null!=b&&c.b(4,b,WQ)};h=XQ.prototype;h.K=function(){return T(this,Cl,1)};h.M=function(a){V(this,1,a)};h.ea=function(){this.M(void 0)};h.gb=function(){return U(this,TQ,2)};h.Db=function(){return U(this,VQ,3)};h.ob=function(){return T(this,VQ,4)};var ZQ=function(a){N(this,a,0,-1,null,null)};x(ZQ,M);ZQ.prototype.u=function(){var a=new D;$Q(this,a);return F(a)};var $Q=function(a,c){a=O(a,1);null!=a&&K(c,1,a)};ZQ.prototype.h=function(){return O(this,1)};ZQ.prototype.za=function(a){S(this,1,a)};var aR=function(a){N(this,a,0,-1,rha,null)};x(aR,M);var rha=[2,3];aR.prototype.u=function(){var a=new D;bR(this,a);return F(a)};var bR=function(a,c){var b=a.K();null!=b&&c.b(1,b,Gl);b=a.gb();0<b.length&&L(c,2,b,OI);b=a.Db();0<b.length&&L(c,3,b,$Q);b=a.ob();null!=b&&c.b(4,b,$Q)};h=aR.prototype;h.K=function(){return T(this,Cl,1)};h.M=function(a){V(this,1,a)};h.ea=function(){this.M(void 0)};h.gb=function(){return U(this,KI,2)};h.Db=function(){return U(this,ZQ,3)};h.ob=function(){return T(this,ZQ,4)};var cR=function(a){N(this,a,0,-1,null,null)};x(cR,M);var dR=function(a){N(this,a,0,-1,null,null)};x(dR,M);var eR=function(a){N(this,a,0,-1,null,null)};x(eR,M);var fR=function(a){N(this,a,0,-1,sha,null)};x(fR,M);var gR=function(a){N(this,a,0,-1,null,null)};x(gR,M);var hR=function(a){N(this,a,0,-1,null,null)};x(hR,M);cR.prototype.u=function(){var a=new D;iR(this,a);return F(a)};
var iR=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&J(c,4,b);b=T(a,dR,5);null!=b&&c.b(5,b,jR);b=T(a,eR,6);null!=b&&c.b(6,b,kR);b=T(a,fR,7);null!=b&&c.b(7,b,lR);b=T(a,hR,8);null!=b&&c.b(8,b,mR)};dR.prototype.u=function(){var a=new D;jR(this,a);return F(a)};var jR=function(a,c){var b=O(a,1);null!=b&&I(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};dR.prototype.bd=function(){return dl(this,1)};
eR.prototype.u=function(){var a=new D;kR(this,a);return F(a)};var kR=function(a,c){a=O(a,1);null!=a&&K(c,1,a)},sha=[3];fR.prototype.u=function(){var a=new D;lR(this,a);return F(a)};var lR=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=T(a,kI,2);null!=b&&c.b(2,b,lI);b=U(a,gR,3);0<b.length&&L(c,3,b,nR)};gR.prototype.u=function(){var a=new D;nR(this,a);return F(a)};var nR=function(a,c){var b=O(a,1);null!=b&&Lk(c,1,b);b=O(a,2);null!=b&&Lk(c,2,b);b=O(a,3);null!=b&&Lk(c,3,b);b=O(a,4);null!=b&&Lk(c,4,b)};
hR.prototype.u=function(){var a=new D;mR(this,a);return F(a)};var mR=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&Lk(c,2,b)};h=cR.prototype;h.ma=function(){return O(this,1)};h.ga=function(a){S(this,1,a)};h.ba=function(){return O(this,2)};h.Na=function(a){S(this,2,a)};h.wa=function(){return O(this,3)};h.Nj=function(a){S(this,3,a)};h.la=function(){return O(this,4)};h.vb=function(a){S(this,4,a)};h.jf=function(a){V(this,5,a)};var oR=function(a){N(this,a,0,-1,null,null)};x(oR,M);oR.prototype.u=function(){var a=new D;pR(this,a);return F(a)};var pR=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b)};h=oR.prototype;h.ma=function(){return O(this,1)};h.ga=function(a){S(this,1,a)};h.ba=function(){return O(this,2)};h.Na=function(a){S(this,2,a)};h.wa=function(){return O(this,3)};h.cs=function(a){S(this,3,a)};var qR=function(a){N(this,a,0,-1,tha,null)};x(qR,M);var tha=[2,3];qR.prototype.u=function(){var a=new D;rR(this,a);return F(a)};var rR=function(a,c){var b=a.K();null!=b&&c.b(1,b,Gl);b=a.gb();0<b.length&&L(c,2,b,iR);b=a.Db();0<b.length&&L(c,3,b,pR);b=a.ob();null!=b&&c.b(4,b,pR)};h=qR.prototype;h.K=function(){return T(this,Cl,1)};h.M=function(a){V(this,1,a)};h.ea=function(){this.M(void 0)};h.gb=function(){return U(this,cR,2)};h.Db=function(){return U(this,oR,3)};h.ob=function(){return T(this,oR,4)};var sR=function(a){N(this,a,0,-1,null,null)};x(sR,M);var tR=function(a){N(this,a,0,-1,uha,null)};x(tR,M);var uR=function(a){N(this,a,0,-1,vha,null)};x(uR,M);var vR=function(a){N(this,a,0,-1,null,null)};x(vR,M);var wR=function(a){N(this,a,0,-1,wha,null)};x(wR,M);sR.prototype.u=function(){var a=new D;xR(this,a);return F(a)};
var xR=function(a,c){var b=O(a,1);null!=b&&J(c,1,b);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&K(c,5,b);b=O(a,6);null!=b&&K(c,6,b);b=O(a,7);null!=b&&K(c,7,b);b=T(a,tR,8);null!=b&&c.b(8,b,yR);b=T(a,uI,9);null!=b&&c.b(9,b,vI);b=T(a,vR,10);null!=b&&c.b(10,b,zR);b=O(a,11);null!=b&&I(c,11,b);b=T(a,wR,13);null!=b&&c.b(13,b,AR)},uha=[1,2,3];tR.prototype.u=function(){var a=new D;yR(this,a);return F(a)};
var yR=function(a,c){var b=O(a,1);0<b.length&&Qk(c,1,b);b=U(a,uR,2);0<b.length&&L(c,2,b,BR);b=O(a,3);0<b.length&&Tk(c,3,b);b=O(a,4);null!=b&&K(c,4,b)},vha=[2];uR.prototype.u=function(){var a=new D;BR(this,a);return F(a)};var BR=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);0<b.length&&Qk(c,2,b)},CR=function(a,c){S(a,1,c||[])};vR.prototype.u=function(){var a=new D;zR(this,a);return F(a)};var zR=function(a,c){a=O(a,1);null!=a&&I(c,1,a)};vR.prototype.bd=function(){return dl(this,1)};
var wha=[1];wR.prototype.u=function(){var a=new D;AR(this,a);return F(a)};var AR=function(a,c){a=O(a,1);0<a.length&&Sk(c,1,a)};h=sR.prototype;h.gs=function(){return O(this,1)};h.Rj=function(a){S(this,1,a)};h.la=function(){return O(this,2)};h.vb=function(a){S(this,2,a)};h.hs=function(){return O(this,3)};h.za=function(a){S(this,3,a)};h.Qj=function(){return O(this,4)};h.Sj=function(a){S(this,4,a)};h.ma=function(){return O(this,5)};h.ga=function(a){S(this,5,a)};h.ba=function(){return O(this,6)};
h.Na=function(a){S(this,6,a)};h.wa=function(){return O(this,7)};h.jf=function(a){V(this,10,a)};var xha=function(a,c){V(a,13,c)};var DR=function(a){N(this,a,0,-1,null,null)};x(DR,M);DR.prototype.u=function(){var a=new D;ER(this,a);return F(a)};var ER=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&J(c,4,b)};h=DR.prototype;h.ma=function(){return O(this,1)};h.ga=function(a){S(this,1,a)};h.Vh=function(){return O(this,2)};h.za=function(a){S(this,2,a)};h.Pj=function(){return O(this,3)};h.es=function(a){S(this,3,a)};h.Oj=function(){return O(this,4)};
h.ds=function(a){S(this,4,a)};var FR=function(a){N(this,a,0,-1,yha,null)};x(FR,M);var yha=[2,3];FR.prototype.u=function(){var a=new D;GR(this,a);return F(a)};var GR=function(a,c){var b=a.K();null!=b&&c.b(1,b,Gl);b=a.gb();0<b.length&&L(c,2,b,xR);b=a.Db();0<b.length&&L(c,3,b,ER);b=a.ob();null!=b&&c.b(4,b,ER)};h=FR.prototype;h.K=function(){return T(this,Cl,1)};h.M=function(a){V(this,1,a)};h.ea=function(){this.M(void 0)};h.gb=function(){return U(this,sR,2)};h.Db=function(){return U(this,DR,3)};h.ob=function(){return T(this,DR,4)};var HR=function(a){N(this,a,0,-1,null,null)};x(HR,M);var zha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=rk(c);ll(a,1,b);break;case 2:b=c;var d=b.b.h();b=b.b;if(0>d||b.b+d>b.f.length)b.s=!0,Hb("Invalid byte length!"),b=new Uint8Array(0);else{var e=b.f.subarray(b.b,b.b+d);b.b+=d;b=e}kl(a,2,b,"");break;default:ok(c)}return a};HR.prototype.u=function(){var a=new D;IR(this,a);return F(a)};var IR=function(a,c){var b=R(a,1,"");0<b.length&&K(c,1,b);b=fl(R(a,2,""));0<b.length&&Nk(c,2,b)};var JR=function(a){N(this,a,0,-1,Aha,null)};x(JR,M);var KR=function(a){N(this,a,0,-1,null,null)};x(KR,M);var LR=function(a){N(this,a,0,-1,null,null)};x(LR,M);var MR=function(a){N(this,a,0,-1,null,null)};x(MR,M);var NR=function(a){N(this,a,0,-1,null,null)};x(NR,M);var OR=function(a){N(this,a,0,-1,null,null)};x(OR,M);var PR=function(a){N(this,a,0,-1,null,null)};x(PR,M);var QR=function(a){N(this,a,0,-1,null,null)};x(QR,M);
var Aha=[7,13,16,17,18],Bha=function(a){a=new lk(a);var c=new JR;return RR(c,a)},RR=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=rk(c);a.h(b);break;case 2:b=rk(c);ll(a,2,b);break;case 24:b=new KR;c.g(b,Cha);V(a,24,b);break;case 3:b=rk(c);ll(a,3,b);break;case 4:b=qk(c);ml(a,4,b);break;case 5:b=pk(c);kl(a,5,b,!1);break;case 28:b=qk(c);ml(a,28,b);break;case 7:b=rk(c);O(a,7).push(b);break;case 22:b=rk(c);ll(a,22,b);break;case 23:b=rk(c);ll(a,23,b);break;case 8:b=pk(c);kl(a,8,b,!1);break;
case 9:b=pk(c);kl(a,9,b,!1);break;case 10:b=rk(c);ll(a,10,b);break;case 11:b=qk(c);ml(a,11,b);break;case 12:b=new LR;c.g(b,Dha);SR(a,b);break;case 27:b=new MR;c.g(b,Eha);V(a,27,b);break;case 13:b=sk(c,c.b.D);S(a,13,b||[]);break;case 14:b=new NR;c.g(b,Fha);V(a,14,b);break;case 15:b=pk(c);kl(a,15,b,!1);break;case 16:b=new OR;c.g(b,Gha);sl(a,16,b,OR,void 0);break;case 17:b=new PR;c.g(b,Hha);sl(a,17,b,PR,void 0);break;case 18:b=sk(c,c.b.D);S(a,18,b||[]);break;case 19:b=rk(c);ll(a,19,b);break;case 20:b=
new QR;c.g(b,Iha);V(a,20,b);break;case 21:b=rk(c);ll(a,21,b);break;case 25:b=qk(c);ml(a,25,b);break;case 26:b=pk(c);kl(a,26,b,!1);break;default:ok(c)}return a};JR.prototype.u=function(){var a=new D;TR(this,a);return F(a)};
var TR=function(a,c){var b=a.uc();0<b.length&&K(c,1,b);b=R(a,2,"");0<b.length&&K(c,2,b);b=T(a,KR,24);null!=b&&c.b(24,b,UR);b=R(a,3,"");0<b.length&&K(c,3,b);b=VR(a);0!==b&&J(c,4,b);(b=il(a,5,!1))&&I(c,5,b);b=R(a,28,0);0!==b&&J(c,28,b);b=O(a,7);0<b.length&&Tk(c,7,b);b=R(a,22,"");0<b.length&&K(c,22,b);b=R(a,23,"");0<b.length&&K(c,23,b);(b=il(a,8,!1))&&I(c,8,b);(b=il(a,9,!1))&&I(c,9,b);b=R(a,10,"");0<b.length&&K(c,10,b);b=R(a,11,0);0!==b&&J(c,11,b);b=T(a,LR,12);null!=b&&c.b(12,b,WR);b=T(a,MR,27);null!=
b&&c.b(27,b,YR);b=O(a,13);0<b.length&&Xk(c,13,b);b=T(a,NR,14);null!=b&&c.b(14,b,ZR);(b=il(a,15,!1))&&I(c,15,b);b=U(a,OR,16);0<b.length&&L(c,16,b,$R);b=U(a,PR,17);0<b.length&&L(c,17,b,aS);b=O(a,18);0<b.length&&Xk(c,18,b);b=R(a,19,"");0<b.length&&K(c,19,b);b=T(a,QR,20);null!=b&&c.b(20,b,bS);b=R(a,21,"");0<b.length&&K(c,21,b);b=R(a,25,0);0!==b&&J(c,25,b);(b=il(a,26,!1))&&I(c,26,b)},Cha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=qk(c);ml(a,1,b);break;default:ok(c)}return a};
KR.prototype.u=function(){var a=new D;UR(this,a);return F(a)};var UR=function(a,c){a=R(a,1,0);0!==a&&J(c,1,a)},Dha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=rk(c);ll(a,1,b);break;default:ok(c)}return a};LR.prototype.u=function(){var a=new D;WR(this,a);return F(a)};var WR=function(a,c){a=R(a,1,"");0<a.length&&K(c,1,a)},Eha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=rk(c);ll(a,1,b);break;default:ok(c)}return a};MR.prototype.u=function(){var a=new D;YR(this,a);return F(a)};
var YR=function(a,c){a=R(a,1,"");0<a.length&&K(c,1,a)},Fha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=rk(c);ll(a,1,b);break;case 2:b=qk(c);ml(a,2,b);break;case 3:b=qk(c);ml(a,3,b);break;default:ok(c)}return a};NR.prototype.u=function(){var a=new D;ZR(this,a);return F(a)};
var ZR=function(a,c){var b=R(a,1,"");0<b.length&&K(c,1,b);b=R(a,2,0);0!==b&&J(c,2,b);b=R(a,3,0);0!==b&&J(c,3,b)},Gha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=rk(c);ll(a,1,b);break;case 2:b=qk(c);ml(a,2,b);break;case 3:b=qk(c);ml(a,3,b);break;case 4:b=qk(c);ml(a,4,b);break;case 5:b=pk(c);kl(a,5,b,!1);break;default:ok(c)}return a};OR.prototype.u=function(){var a=new D;$R(this,a);return F(a)};
var $R=function(a,c){var b=a.cd();0<b.length&&K(c,1,b);b=R(a,2,0);0!==b&&J(c,2,b);b=R(a,3,0);0!==b&&J(c,3,b);b=R(a,4,0);0!==b&&J(c,4,b);(b=il(a,5,!1))&&I(c,5,b)};OR.prototype.cd=function(){return R(this,1,"")};var Hha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=rk(c);ll(a,1,b);break;case 2:b=qk(c);ml(a,2,b);break;default:ok(c)}return a};PR.prototype.u=function(){var a=new D;aS(this,a);return F(a)};var aS=function(a,c){var b=a.cd();0<b.length&&K(c,1,b);b=R(a,2,0);0!==b&&J(c,2,b)};
PR.prototype.cd=function(){return R(this,1,"")};var Iha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=rk(c);ll(a,1,b);break;case 2:b=qk(c);ml(a,2,b);break;case 3:b=rk(c);ll(a,3,b);break;case 4:b=rk(c);ll(a,4,b);break;default:ok(c)}return a};QR.prototype.u=function(){var a=new D;bS(this,a);return F(a)};var bS=function(a,c){var b=R(a,1,"");0<b.length&&K(c,1,b);b=R(a,2,0);0!==b&&J(c,2,b);b=R(a,3,"");0<b.length&&K(c,3,b);b=R(a,4,"");0<b.length&&K(c,4,b)};
JR.prototype.uc=function(){return R(this,1,"")};JR.prototype.h=function(a){ll(this,1,a)};var VR=function(a){return R(a,4,0)};JR.prototype.bk=function(a){S(this,7,a||[])};var SR=function(a,c){V(a,12,c)};var cS=function(a){N(this,a,0,-1,null,null)};x(cS,M);cS.prototype.u=function(){var a=new D;dS(this,a);return F(a)};var dS=function(a,c){a=a.Hb();0!==a&&H(c,1,a)};cS.prototype.Hb=function(){return R(this,1,0)};var eS=function(a){N(this,a,0,-1,Jha,null)};x(eS,M);var Jha=[2,3];eS.prototype.u=function(){var a=new D;fS(this,a);return F(a)};var fS=function(a,c){var b=a.K();null!=b&&c.b(1,b,dS);b=a.gb();0<b.length&&L(c,2,b,TR);b=a.Db();0<b.length&&Tk(c,3,b);b=a.ob();0<b.length&&K(c,4,b)};h=eS.prototype;h.K=function(){return T(this,cS,1)};h.M=function(a){V(this,1,a)};h.ea=function(){this.M(void 0)};h.gb=function(){return U(this,JR,2)};h.Db=function(){return O(this,3)};h.ob=function(){return R(this,4,"")};var gS=function(a){N(this,a,0,-1,null,null)};x(gS,M);var hS=function(a){N(this,a,0,-1,null,null)};x(hS,M);var iS=function(a){N(this,a,0,-1,null,null)};x(iS,M);gS.prototype.u=function(){var a=new D;jS(this,a);return F(a)};var jS=function(a,c){var b=R(a,1,"");0<b.length&&K(c,1,b);b=R(a,2,"");0<b.length&&K(c,2,b);b=R(a,3,0);0!==b&&H(c,3,b);b=T(a,nC,4);null!=b&&c.b(4,b,oC);b=T(a,hS,5);null!=b&&c.b(5,b,kS);b=R(a,6,0);0!==b&&J(c,6,b)};hS.prototype.u=function(){var a=new D;kS(this,a);return F(a)};
var kS=function(a,c){var b=R(a,1,"");0<b.length&&K(c,1,b);(b=il(a,2,!1))&&I(c,2,b);b=T(a,iS,3);null!=b&&c.b(3,b,lS)};iS.prototype.u=function(){var a=new D;lS(this,a);return F(a)};var lS=function(a,c){a=R(a,1,0);0!==a&&c.f(1,a)};var mS=function(a){N(this,a,0,-1,Kha,null)};x(mS,M);var Kha=[2];mS.prototype.u=function(){var a=new D;nS(this,a);return F(a)};var nS=function(a,c){var b=a.K();null!=b&&c.b(1,b,dS);b=a.gb();0<b.length&&L(c,2,b,jS);b=a.ob();0<b.length&&K(c,3,b)};h=mS.prototype;h.K=function(){return T(this,cS,1)};h.M=function(a){V(this,1,a)};h.ea=function(){this.M(void 0)};h.gb=function(){return U(this,gS,2)};h.ob=function(){return R(this,3,"")};var oS=function(a){N(this,a,0,-1,Lha,null)};x(oS,M);var pS=function(a){N(this,a,0,-1,null,null)};x(pS,M);var qS=function(a){N(this,a,0,-1,Mha,null)};x(qS,M);var Lha=[10];oS.prototype.u=function(){var a=new D;rS(this,a);return F(a)};
var rS=function(a,c){var b=a.cd();0<b.length&&K(c,1,b);b=a.getTitle();0<b.length&&K(c,2,b);b=a.Tb();0!==b&&J(c,4,b);b=R(a,5,0);0!==b&&J(c,5,b);b=T(a,nC,7);null!=b&&c.b(7,b,oC);b=T(a,nC,8);null!=b&&c.b(8,b,oC);b=R(a,9,"");0<b.length&&K(c,9,b);b=O(a,10);0<b.length&&Xk(c,10,b);b=R(a,11,"");0<b.length&&K(c,11,b);b=T(a,qS,12);null!=b&&c.b(12,b,sS);b=a.Dh();0!==b&&J(c,13,b);b=R(a,14,"");0<b.length&&K(c,14,b);b=R(a,15,"");0<b.length&&K(c,15,b);(b=il(a,16,!1))&&I(c,16,b)};
pS.prototype.u=function(){var a=new D;tS(this,a);return F(a)};var tS=function(a,c){var b=R(a,1,0);0!==b&&J(c,1,b);b=a.getDeviceId();0<b.length&&K(c,2,b)};pS.prototype.getDeviceId=function(){return R(this,2,"")};var Mha=[1];qS.prototype.u=function(){var a=new D;sS(this,a);return F(a)};var sS=function(a,c){a=U(a,pS,1);0<a.length&&L(c,1,a,tS)};h=oS.prototype;h.cd=function(){return R(this,1,"")};h.getTitle=function(){return R(this,2,"")};h.setTitle=function(a){ll(this,2,a)};
h.Tb=function(){return R(this,4,0)};h.Dh=function(){return R(this,13,0)};var uS=function(a){N(this,a,0,-1,Nha,null)};x(uS,M);var Nha=[2,3];uS.prototype.u=function(){var a=new D;vS(this,a);return F(a)};var vS=function(a,c){var b=a.K();null!=b&&c.b(1,b,dS);b=a.gb();0<b.length&&L(c,2,b,rS);b=a.Db();0<b.length&&Tk(c,3,b);b=a.ob();0<b.length&&K(c,4,b)};h=uS.prototype;h.K=function(){return T(this,cS,1)};h.M=function(a){V(this,1,a)};h.ea=function(){this.M(void 0)};h.gb=function(){return U(this,oS,2)};h.Db=function(){return O(this,3)};h.ob=function(){return R(this,4,"")};var wS=function(a){N(this,a,0,-1,Oha,null)};x(wS,M);var xS=function(a){N(this,a,0,-1,null,null)};x(xS,M);var Oha=[1],Qha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=new xS;c.g(b,Pha);sl(a,1,b,xS,void 0);break;case 2:b=rk(c);ll(a,2,b);break;case 3:b=qk(c);ml(a,3,b);break;default:ok(c)}return a};wS.prototype.u=function(){var a=new D;yS(this,a);return F(a)};
var yS=function(a,c){var b=U(a,xS,1);0<b.length&&L(c,1,b,zS);b=R(a,2,"");0<b.length&&K(c,2,b);b=R(a,3,0);0!==b&&J(c,3,b)},Pha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=rk(c);ll(a,1,b);break;default:ok(c)}return a};xS.prototype.u=function(){var a=new D;zS(this,a);return F(a)};var zS=function(a,c){a=R(a,1,"");0<a.length&&K(c,1,a)};var AS=function(a){N(this,a,0,-1,Rha,null)};x(AS,M);var BS=function(a){N(this,a,0,-1,null,null)};x(BS,M);var CS=function(a){N(this,a,0,-1,null,null)};x(CS,M);var DS=function(a){N(this,a,0,-1,null,null)};x(DS,M);var ES=function(a){N(this,a,0,-1,null,null)};x(ES,M);var FS=function(a){N(this,a,0,-1,null,null)};x(FS,M);var GS=function(a){N(this,a,0,-1,null,null)};x(GS,M);var HS=function(a){N(this,a,0,-1,null,null)};x(HS,M);var IS=function(a){N(this,a,0,-1,Sha,null)};x(IS,M);
var JS=function(a){N(this,a,0,-1,null,null)};x(JS,M);
var Rha=[5,11],KS=function(a){a=new lk(a);for(var c=new AS;nk(a)&&!mk(a);)switch(a.f){case 1:var b=rk(a);c.s(b);break;case 2:b=rk(a);ll(c,2,b);break;case 3:b=rk(a);ll(c,3,b);break;case 5:b=new BS;a.g(b,Tha);sl(c,5,b,BS,void 0);break;case 8:b=new CS;a.g(b,Uha);V(c,8,b);break;case 6:b=new IS;a.g(b,Vha);V(c,6,b);break;case 7:b=rk(a);ll(c,7,b);break;case 9:b=new JS;a.g(b,Wha);V(c,9,b);break;case 10:b=rk(a);ll(c,10,b);break;case 11:b=sk(a,a.b.D);S(c,11,b||[]);break;case 12:b=new wS;a.g(b,Qha);V(c,12,b);
break;default:ok(a)}return c};AS.prototype.u=function(){var a=new D;LS(this,a);return F(a)};
var LS=function(a,c){var b=a.h();0<b.length&&K(c,1,b);b=a.tc();0<b.length&&K(c,2,b);b=R(a,3,"");0<b.length&&K(c,3,b);b=U(a,BS,5);0<b.length&&L(c,5,b,MS);b=T(a,CS,8);null!=b&&c.b(8,b,PS);b=T(a,IS,6);null!=b&&c.b(6,b,QS);b=R(a,7,"");0<b.length&&K(c,7,b);b=T(a,JS,9);null!=b&&c.b(9,b,RS);b=R(a,10,"");0<b.length&&K(c,10,b);b=O(a,11);0<b.length&&Xk(c,11,b);b=T(a,wS,12);null!=b&&c.b(12,b,yS)},Tha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=rk(c);ll(a,1,b);break;case 2:b=rk(c);ll(a,2,b);break;
case 3:b=rk(c);ll(a,3,b);break;case 4:b=rk(c);ll(a,4,b);break;default:ok(c)}return a};BS.prototype.u=function(){var a=new D;MS(this,a);return F(a)};var MS=function(a,c){var b=R(a,1,"");0<b.length&&K(c,1,b);b=R(a,2,"");0<b.length&&K(c,2,b);b=R(a,3,"");0<b.length&&K(c,3,b);b=R(a,4,"");0<b.length&&K(c,4,b)},Uha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=rk(c);ll(a,1,b);break;case 2:b=rk(c);ll(a,2,b);break;default:ok(c)}return a};CS.prototype.u=function(){var a=new D;PS(this,a);return F(a)};
var PS=function(a,c){var b=R(a,1,"");0<b.length&&K(c,1,b);b=R(a,2,"");0<b.length&&K(c,2,b)},Xha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=rk(c);ll(a,1,b);break;case 2:b=rk(c);ll(a,2,b);break;default:ok(c)}return a};DS.prototype.u=function(){var a=new D;SS(this,a);return F(a)};
var SS=function(a,c){var b=R(a,1,"");0<b.length&&K(c,1,b);b=R(a,2,"");0<b.length&&K(c,2,b)},Zha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=qk(c);ml(a,1,b);break;case 2:b=rk(c);ll(a,2,b);break;case 3:b=rk(c);ll(a,3,b);break;case 4:b=new FS;c.g(b,Yha);V(a,4,b);break;case 5:b=rk(c);ll(a,5,b);break;case 6:b=qk(c);ml(a,6,b);break;default:ok(c)}return a};ES.prototype.u=function(){var a=new D;TS(this,a);return F(a)};
var TS=function(a,c){var b=a.Eh();0!==b&&J(c,1,b);b=a.cd();0<b.length&&K(c,2,b);b=R(a,3,"");0<b.length&&K(c,3,b);b=T(a,FS,4);null!=b&&c.b(4,b,US);b=a.Ch();0<b.length&&K(c,5,b);b=a.Dh();0!==b&&J(c,6,b)},Yha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=rk(c);ll(a,1,b);break;case 2:b=qk(c);ml(a,2,b);break;default:ok(c)}return a};FS.prototype.u=function(){var a=new D;US(this,a);return F(a)};var US=function(a,c){var b=a.getDeviceId();0<b.length&&K(c,1,b);b=R(a,2,0);0!==b&&J(c,2,b)};
FS.prototype.getDeviceId=function(){return R(this,1,"")};ES.prototype.Eh=function(){return R(this,1,0)};ES.prototype.cd=function(){return R(this,2,"")};ES.prototype.Ch=function(){return R(this,5,"")};ES.prototype.Dh=function(){return R(this,6,0)};
var aia=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=qk(c);ml(a,1,b);break;case 2:b=rk(c);a.za(b);break;case 3:b=qk(c);ml(a,3,b);break;case 4:b=new HS;c.g(b,$ha);V(a,4,b);break;case 5:b=rk(c);ll(a,5,b);break;case 6:b=qk(c);ml(a,6,b);break;case 7:b=pk(c);kl(a,7,b,!1);break;default:ok(c)}return a};GS.prototype.u=function(){var a=new D;VS(this,a);return F(a)};
var VS=function(a,c){var b=a.Va();0!==b&&J(c,1,b);b=R(a,2,"");0<b.length&&K(c,2,b);b=R(a,3,0);0!==b&&J(c,3,b);b=T(a,HS,4);null!=b&&c.b(4,b,WS);b=a.Ch();0<b.length&&K(c,5,b);b=R(a,6,0);0!==b&&J(c,6,b);(b=il(a,7,!1))&&I(c,7,b)},$ha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=rk(c);ll(a,1,b);break;case 2:b=qk(c);ml(a,2,b);break;default:ok(c)}return a};HS.prototype.u=function(){var a=new D;WS(this,a);return F(a)};
var WS=function(a,c){var b=a.getDeviceId();0<b.length&&K(c,1,b);b=R(a,2,0);0!==b&&J(c,2,b)};HS.prototype.getDeviceId=function(){return R(this,1,"")};GS.prototype.Va=function(){return R(this,1,0)};GS.prototype.za=function(a){ll(this,2,a)};GS.prototype.Ch=function(){return R(this,5,"")};
var Sha=[9],Vha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=new DS;c.g(b,Xha);V(a,1,b);break;case 2:b=new ES;c.g(b,Zha);V(a,2,b);break;case 3:b=rk(c);ll(a,3,b);break;case 4:b=rk(c);ll(a,4,b);break;case 6:b=c.b.w();kl(a,6,b,0);break;case 8:b=rk(c);ll(a,8,b);break;case 9:b=new GS;c.g(b,aia);sl(a,9,b,GS,void 0);break;default:ok(c)}return a};IS.prototype.u=function(){var a=new D;QS(this,a);return F(a)};
var QS=function(a,c){var b=a.Hf();null!=b&&c.b(1,b,SS);b=T(a,ES,2);null!=b&&c.b(2,b,TS);b=R(a,3,"");0<b.length&&K(c,3,b);b=R(a,4,"");0<b.length&&K(c,4,b);b=R(a,6,0);0!==b&&c.f(6,b);b=R(a,8,"");0<b.length&&K(c,8,b);b=U(a,GS,9);0<b.length&&L(c,9,b,VS)};IS.prototype.Hf=function(){return T(this,DS,1)};var Wha=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 2:var b=pk(c);a.setEnabled(b);break;default:ok(c)}return a};JS.prototype.u=function(){var a=new D;RS(this,a);return F(a)};
var RS=function(a,c){(a=il(a,2,!1))&&I(c,2,a)};JS.prototype.setEnabled=function(a){kl(this,2,a,!1)};AS.prototype.h=function(){return R(this,1,"")};AS.prototype.s=function(a){ll(this,1,a)};AS.prototype.tc=function(){return R(this,2,"")};var XS=function(a){N(this,a,0,-1,bia,null)};x(XS,M);var bia=[2];XS.prototype.u=function(){var a=new D;YS(this,a);return F(a)};var YS=function(a,c){var b=a.K();null!=b&&c.b(1,b,dS);b=a.gb();0<b.length&&L(c,2,b,LS);b=a.ob();0<b.length&&K(c,3,b)};h=XS.prototype;h.K=function(){return T(this,cS,1)};h.M=function(a){V(this,1,a)};h.ea=function(){this.M(void 0)};h.gb=function(){return U(this,AS,2)};h.ob=function(){return R(this,3,"")};var ZS=function(a){N(this,a,0,-1,null,null)};x(ZS,M);ZS.prototype.u=function(){var a=new D;$S(this,a);return F(a)};var $S=function(a,c){var b=a.h();null!=b&&c.b(1,b,fS);b=a.C();null!=b&&c.b(2,b,YS);b=a.D();null!=b&&c.b(3,b,vS);b=a.s();null!=b&&c.b(4,b,nS)};ZS.prototype.h=function(){return T(this,eS,1)};ZS.prototype.C=function(){return T(this,XS,2)};ZS.prototype.D=function(){return T(this,uS,3)};ZS.prototype.s=function(){return T(this,mS,4)};var aT=function(a){N(this,a,0,-1,null,null)};x(aT,M);aT.prototype.u=function(){var a=new D;bT(this,a);return F(a)};var bT=function(a,c){var b=a.Fl();null!=b&&c.b(1,b,AQ);b=a.Kl();null!=b&&c.b(2,b,bR);b=a.Ml();null!=b&&c.b(3,b,GR);b=a.Bl();null!=b&&c.b(4,b,kQ);b=a.Ll();null!=b&&c.b(5,b,rR);b=a.El();null!=b&&c.b(7,b,cQ);b=a.Gl();null!=b&&c.b(8,b,YQ);b=a.Cl();null!=b&&c.b(9,b,iQ);b=a.Pl();null!=b&&c.b(10,b,MQ);b=a.Nl();null!=b&&c.b(13,b,$S);b=T(a,HR,14);null!=b&&c.b(14,b,IR)};h=aT.prototype;
h.Fl=function(){return T(this,zQ,1)};h.Kl=function(){return T(this,aR,2)};h.Ml=function(){return T(this,FR,3)};h.Bl=function(){return T(this,jQ,4)};h.Ll=function(){return T(this,qR,5)};h.El=function(){return T(this,bQ,7)};h.Gl=function(){return T(this,XQ,8)};h.Cl=function(){return T(this,hQ,9)};h.Pl=function(){return T(this,LQ,10)};h.Nl=function(){return T(this,ZS,13)};var cT=function(a){N(this,a,0,-1,null,null)};x(cT,M);cT.prototype.u=function(){var a=new D;dT(this,a);return F(a)};var dT=function(a,c){var b=T(a,yP,1);null!=b&&c.b(1,b,zP);b=T(a,aT,2);null!=b&&c.b(2,b,bT);b=T(a,CP,3);null!=b&&c.b(3,b,DP)};var eT=function(a){N(this,a,"hcbu",-1,cia,null)};x(eT,M);var cia=[1];eT.prototype.u=function(){var a=new D;var c=U(this,cT,1);0<c.length&&L(a,1,c,dT);return F(a)};Bl("hcbu",eT);var fT=function(){Y.call(this);this.l=Mf("realtime.pushnotifications.Dispatcher")};q(fT,cF);fT.prototype.f=function(a){var c=T(a,aT,2),b;if(c)for(a=0;a<gT.length;a++){if(b=gT[a].Vb.call(c))if("Oa"==gT[a].eventType)for(var d=b,e=0;e<gT.length;e++){if(b=hT[e].Vb.call(d)){var f=hT[e].eventType;break}}else{f=gT[a].eventType;break}}else(c=T(a,CP,3))&&(b=T(c,AP,1))&&(f="Ka");b?(c=f,C(this.l,"Received notification of type "+c),this.N(new iT(c,b))):B(this.l,"A batch notification is empty.")};
var gT=[{Vb:aT.prototype.Kl,eventType:"La"},{Vb:aT.prototype.Ml,eventType:"Na"},{Vb:aT.prototype.Gl,eventType:"Ia"},{Vb:aT.prototype.Fl,eventType:"Ja"},{Vb:aT.prototype.Ll,eventType:"Ma"},{Vb:aT.prototype.Bl,eventType:"Fa"},{Vb:aT.prototype.El,eventType:"Ga"},{Vb:aT.prototype.Pl,eventType:"Ua"},{Vb:aT.prototype.Cl,eventType:"Ha"},{Vb:aT.prototype.Nl,eventType:"Oa"}],hT=[{Vb:ZS.prototype.h,eventType:"Pa"},{Vb:ZS.prototype.s,eventType:"Ra"},{Vb:ZS.prototype.D,eventType:"Sa"},{Vb:ZS.prototype.C,eventType:"Ta"}],
iT=function(a,c){X.call(this,a);this.notification=c};q(iT,X);var kT=function(a,c){RG.call(this,c);a instanceof pP?(c=a,a=new nP(a.g,a.j,a.m,a.f,a.o)):a instanceof nP?c=new pP(a.g,a.j,a.m,a.f,a.o,new Yw):a=c=a;this.h=c;this.F=a;this.C=new jT;this.D=new fT;null==O(this,1)&&S(this,1,32);a=O(this,2)||"rmjs";S(this,2,a);a=O(this,3)||"Unknown";S(this,3,a);UG(this,O(this,4)||"0.0");null==R(this,5,0)&&S(this,5,0);this.s(O(this,6)||O(this,2)+se().toUpperCase());a=O(this,7)||O(this,6)+"@fake.com";S(this,7,a);null==cl(this,9)&&S(this,9,.01);a=O(this,10)||null;S(this,
10,a);a=O(this,11)||"https://clients2.google.com/cr/report";S(this,11,a);a=O(this,12)||null;S(this,12,a);a=T(this,aA,13)||new aA;V(this,13,a);null==dl(this,8)&&S(this,8,!1);null==dl(this,16)&&S(this,16,!1);a=O(this,14)||[];S(this,14,a||[]);a=T(this,iA,17)||new iA;V(this,17,a);a=dl(this,18)||null;S(this,18,a)};x(kT,RG);var lT=new Sy("CgjDUd");kT.prototype.register=function(a){a.registerService(lT,this);dia(this,a);return this};
var dia=function(a,c){QB(c,DD).then(function(b){var d={Tg:function(e){var f=BL(e),g=R(a,5,0);S(f,2,g);fA(f,R(a,27,0));g=1;mT(a)&&(g=$d("Linux")?17:18);eA(f,g);g=AL(e);f=T(g,TJ,9)||new TJ;V(g,9,f);g=O(a,2);S(f,4,g);e=CL(e);f=O(a,7);S(e,8,f);f=O(a,6);S(e,1,f)},Ug:function(){}};xO(b,d);Xt(c,function(){ac(b.f,d)})})};kT.prototype.s=function(a,c){c=c?se().toUpperCase():"";kT.Ga.s.call(this,a+c)};
var eia=function(a){var c=new SO;UO(c,O(a,1));var b=new QO,d=O(a,6);S(b,1,d);d=new ZO;aP(d,c);V(d,2,b);S(d,4,"en");a=bP(R(a,5,0),mT(a));V(d,7,a);return d},mT=function(a){return O(a,7).endsWith("@hangouts-enterprise-devices.gserviceaccount.com")},jT=function(){};jT.prototype.b=Qa;var nT=function(){Y.call(this)};x(nT,Y);Ra(nT);qJ(pJ(oJ(new nJ,640),360),30).aa();var oT=function(a){N(this,a,0,-1,null,null)};x(oT,M);var pT=function(a){N(this,a,0,-1,null,null)};x(pT,M);oT.prototype.u=function(){var a=new D;qT(this,a);return F(a)};var qT=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=T(a,pT,2);null!=b&&c.b(2,b,rT)};pT.prototype.u=function(){var a=new D;rT(this,a);return F(a)};var rT=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&I(c,5,b);b=O(a,6);null!=b&&J(c,6,b)};var sT=function(a){N(this,a,"chbarp",-1,fia,null)};x(sT,M);var fia=[4];sT.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=T(this,GP,2);null!=c&&a.b(2,c,QP);c=this.K();null!=c&&a.b(3,c,Gl);c=U(this,GP,4);0<c.length&&L(a,4,c,QP);return F(a)};Bl("chbarp",sT);h=sT.prototype;h.getResponseHeader=function(){return T(this,eP,1)};h.setBroadcast=function(a){V(this,2,a)};h.K=function(){return T(this,Cl,3)};h.M=function(a){V(this,3,a)};h.ea=function(){this.M(void 0)};var tT=function(a){N(this,a,"chbmrp",-1,gia,null)};x(tT,M);var gia=[4];tT.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=T(this,GP,2);null!=c&&a.b(2,c,QP);c=this.K();null!=c&&a.b(3,c,Gl);c=U(this,GP,4);0<c.length&&L(a,4,c,QP);return F(a)};Bl("chbmrp",tT);h=tT.prototype;h.getResponseHeader=function(){return T(this,eP,1)};h.setBroadcast=function(a){V(this,2,a)};h.K=function(){return T(this,Cl,3)};h.M=function(a){V(this,3,a)};h.ea=function(){this.M(void 0)};var uT=function(a){N(this,a,"chbqrp",-1,null,null)};x(uT,M);uT.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=T(this,GP,2);null!=c&&a.b(2,c,QP);c=this.K();null!=c&&a.b(3,c,Gl);return F(a)};Bl("chbqrp",uT);h=uT.prototype;h.getResponseHeader=function(){return T(this,eP,1)};h.setBroadcast=function(a){V(this,2,a)};h.K=function(){return T(this,Cl,3)};h.M=function(a){V(this,3,a)};h.ea=function(){this.M(void 0)};var vT=function(a){N(this,a,"chbrrp",-1,null,null)};x(vT,M);vT.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=this.K();null!=c&&a.b(2,c,Gl);return F(a)};Bl("chbrrp",vT);vT.prototype.getResponseHeader=function(){return T(this,eP,1)};vT.prototype.K=function(){return T(this,Cl,2)};vT.prototype.M=function(a){V(this,2,a)};vT.prototype.ea=function(){this.M(void 0)};var wT=function(a){N(this,a,"chbsrp",-1,hia,null)};x(wT,M);var hia=[2];wT.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=U(this,GP,2);0<c.length&&L(a,2,c,QP);c=this.K();null!=c&&a.b(3,c,Gl);return F(a)};Bl("chbsrp",wT);wT.prototype.getResponseHeader=function(){return T(this,eP,1)};wT.prototype.K=function(){return T(this,Cl,3)};wT.prototype.M=function(a){V(this,3,a)};wT.prototype.ea=function(){this.M(void 0)};var xT=function(a){N(this,a,0,-1,iia,null)};x(xT,M);var yT=function(a){N(this,a,0,-1,null,null)};x(yT,M);var zT=function(a){N(this,a,0,-1,null,null)};x(zT,M);var AT=function(a){N(this,a,0,-1,null,null)};x(AT,M);var BT=function(a){N(this,a,0,-1,null,null)};x(BT,M);var iia=[6];xT.prototype.u=function(){var a=new D;CT(this,a);return F(a)};
var CT=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=T(a,oT,7);null!=b&&c.b(7,b,qT);b=O(a,4);null!=b&&K(c,4,b);b=U(a,yT,6);0<b.length&&L(c,6,b,DT);b=O(a,5);null!=b&&Nk(c,5,b)};yT.prototype.u=function(){var a=new D;DT(this,a);return F(a)};var DT=function(a,c){var b=T(a,zT,1);null!=b&&c.b(1,b,ET);b=T(a,AT,2);null!=b&&c.b(2,b,FT);b=T(a,BT,3);null!=b&&c.b(3,b,GT)};zT.prototype.u=function(){var a=new D;ET(this,a);return F(a)};
var ET=function(a,c){a=T(a,oT,1);null!=a&&c.b(1,a,qT)};AT.prototype.u=function(){var a=new D;FT(this,a);return F(a)};var FT=function(a,c){a=O(a,1);null!=a&&K(c,1,a)};BT.prototype.u=function(){var a=new D;GT(this,a);return F(a)};var GT=function(a,c){a=O(a,1);null!=a&&K(c,1,a)};var HT=function(a){N(this,a,0,-1,jia,null)};x(HT,M);var jia=[4];HT.prototype.u=function(){var a=new D;IT(this,a);return F(a)};var IT=function(a,c){var b=T(a,ZO,1);null!=b&&c.b(1,b,$O);b=T(a,TQ,2);null!=b&&c.b(2,b,UQ);b=a.K();null!=b&&c.b(3,b,Gl);b=U(a,TQ,4);0<b.length&&L(c,4,b,UQ)};HT.prototype.setRequestHeader=function(a){V(this,1,a)};HT.prototype.K=function(){return T(this,Cl,3)};HT.prototype.M=function(a){V(this,3,a)};HT.prototype.ea=function(){this.M(void 0)};var JT=function(a){N(this,a,"charp",-1,kia,null)};x(JT,M);var kia=[5];JT.prototype.u=function(){var a=new D;KT(this,a);return F(a)};var KT=function(a,c){var b=a.getResponseHeader();null!=b&&c.b(1,b,fP);b=T(a,TQ,2);null!=b&&c.b(2,b,UQ);b=O(a,4);null!=b&&K(c,4,b);b=a.K();null!=b&&c.b(3,b,Gl);b=U(a,TQ,5);0<b.length&&L(c,5,b,UQ)};Bl("charp",JT);JT.prototype.getResponseHeader=function(){return T(this,eP,1)};JT.prototype.K=function(){return T(this,Cl,3)};JT.prototype.M=function(a){V(this,3,a)};
JT.prototype.ea=function(){this.M(void 0)};var LT=function(a){N(this,a,0,-1,null,null)};x(LT,M);LT.prototype.u=function(){var a=new D;MT(this,a);return F(a)};var MT=function(a,c){var b=T(a,oT,1);null!=b&&c.b(1,b,qT);b=O(a,2);null!=b&&Nk(c,2,b);b=O(a,3);null!=b&&Ik(c,3,b)};var NT=function(a){N(this,a,0,-1,null,null)};x(NT,M);NT.prototype.u=function(){var a=new D;OT(this,a);return F(a)};var OT=function(a,c){var b=O(a,1);null!=b&&H(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=T(a,oT,3);null!=b&&c.b(3,b,qT);b=O(a,4);null!=b&&I(c,4,b);b=O(a,5);null!=b&&I(c,5,b);b=T(a,LT,6);null!=b&&c.b(6,b,MT)};NT.prototype.ma=function(){return O(this,2)};NT.prototype.ga=function(a){S(this,2,a)};var PT=function(a){N(this,a,0,-1,null,null)};x(PT,M);PT.prototype.u=function(){var a=new D;QT(this,a);return F(a)};var QT=function(a,c){var b=T(a,ZO,1);null!=b&&c.b(1,b,$O);b=T(a,NT,2);null!=b&&c.b(2,b,OT);b=a.K();null!=b&&c.b(3,b,Gl)};PT.prototype.setRequestHeader=function(a){V(this,1,a)};PT.prototype.K=function(){return T(this,Cl,3)};PT.prototype.M=function(a){V(this,3,a)};PT.prototype.ea=function(){this.M(void 0)};var RT=function(a){N(this,a,0,-1,null,null)};x(RT,M);RT.prototype.u=function(){var a=new D;ST(this,a);return F(a)};var ST=function(a,c){var b=O(a,1);null!=b&&H(c,1,b);b=O(a,2);null!=b&&H(c,2,b);b=O(a,3);null!=b&&J(c,3,b)};var TT=function(a){N(this,a,0,-1,lia,null)};x(TT,M);var UT=function(a){N(this,a,0,-1,null,null)};x(UT,M);var VT=function(a){N(this,a,0,-1,null,null)};x(VT,M);var lia=[2];TT.prototype.u=function(){var a=new D;WT(this,a);return F(a)};var WT=function(a,c){var b=T(a,UT,1);null!=b&&c.b(1,b,XT);b=O(a,2);0<b.length&&Sk(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b)};UT.prototype.u=function(){var a=new D;XT(this,a);return F(a)};
var XT=function(a,c){var b=T(a,VT,1);null!=b&&c.b(1,b,ZT);b=T(a,NQ,4);null!=b&&c.b(4,b,OQ)};VT.prototype.u=function(){var a=new D;ZT(this,a);return F(a)};var ZT=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b)};var $T=function(a){N(this,a,0,-1,mia,null)};x($T,M);var mia=[11];$T.prototype.u=function(){var a=new D;aU(this,a);return F(a)};var aU=function(a,c){var b=O(a,8);null!=b&&H(c,8,b);b=O(a,1);null!=b&&K(c,1,b);b=T(a,xT,2);null!=b&&c.b(2,b,CT);b=U(a,TT,11);0<b.length&&L(c,11,b,WT);b=O(a,3);null!=b&&J(c,3,b);b=O(a,4);null!=b&&I(c,4,b);b=O(a,6);null!=b&&J(c,6,b);b=T(a,RT,7);null!=b&&c.b(7,b,ST);b=O(a,9);null!=b&&K(c,9,b);b=O(a,99);null!=b&&K(c,99,b)};$T.prototype.ma=function(){return O(this,1)};
$T.prototype.ga=function(a){S(this,1,a)};var bU=function(a){N(this,a,0,-1,null,null)};x(bU,M);bU.prototype.u=function(){var a=new D;cU(this,a);return F(a)};var cU=function(a,c){var b=T(a,ZO,1);null!=b&&c.b(1,b,$O);b=T(a,$T,2);null!=b&&c.b(2,b,aU);b=a.K();null!=b&&c.b(3,b,Gl)};bU.prototype.setRequestHeader=function(a){V(this,1,a)};bU.prototype.K=function(){return T(this,Cl,3)};bU.prototype.M=function(a){V(this,3,a)};bU.prototype.ea=function(){this.M(void 0)};var dU=function(a){N(this,a,0,-1,null,null)};x(dU,M);dU.prototype.u=function(){var a=new D;eU(this,a);return F(a)};var eU=function(a,c){var b=O(a,3);null!=b&&I(c,3,b);b=O(a,4);null!=b&&I(c,4,b)};var fU=function(a){N(this,a,0,-1,nia,null)};x(fU,M);var nia=[6];fU.prototype.u=function(){var a=new D;gU(this,a);return F(a)};var gU=function(a,c){var b=T(a,ZO,1);null!=b&&c.b(1,b,$O);b=T(a,tQ,2);null!=b&&c.b(2,b,vQ);b=T(a,dU,3);null!=b&&c.b(3,b,eU);b=O(a,4);null!=b&&I(c,4,b);b=a.K();null!=b&&c.b(5,b,Gl);b=U(a,tQ,6);0<b.length&&L(c,6,b,vQ)};fU.prototype.setRequestHeader=function(a){V(this,1,a)};fU.prototype.K=function(){return T(this,Cl,5)};fU.prototype.M=function(a){V(this,5,a)};
fU.prototype.ea=function(){this.M(void 0)};var hU=function(a){N(this,a,0,-1,null,null)};x(hU,M);hU.prototype.u=function(){var a=new D;iU(this,a);return F(a)};var iU=function(a,c){var b=T(a,ZO,1);null!=b&&c.b(1,b,$O);b=O(a,2);null!=b&&K(c,2,b);b=a.K();null!=b&&c.b(3,b,Gl)};h=hU.prototype;h.setRequestHeader=function(a){V(this,1,a)};h.ma=function(){return O(this,2)};h.ga=function(a){S(this,2,a)};h.K=function(){return T(this,Cl,3)};h.M=function(a){V(this,3,a)};h.ea=function(){this.M(void 0)};var jU=function(a){N(this,a,0,-1,null,null)};x(jU,M);jU.prototype.u=function(){var a=new D;kU(this,a);return F(a)};var kU=function(a,c){var b=T(a,ZO,1);null!=b&&c.b(1,b,$O);b=O(a,2);null!=b&&K(c,2,b);b=a.K();null!=b&&c.b(3,b,Gl)};h=jU.prototype;h.setRequestHeader=function(a){V(this,1,a)};h.ma=function(){return O(this,2)};h.ga=function(a){S(this,2,a)};h.K=function(){return T(this,Cl,3)};h.M=function(a){V(this,3,a)};h.ea=function(){this.M(void 0)};var lU=function(a){N(this,a,0,-1,null,null)};x(lU,M);lU.prototype.u=function(){var a=new D;mU(this,a);return F(a)};var mU=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b)};lU.prototype.getName=function(){return O(this,1)};var nU=function(a){N(this,a,0,-1,oia,null)};x(nU,M);var oia=[3];nU.prototype.u=function(){var a=new D;oU(this,a);return F(a)};var oU=function(a,c){var b=T(a,ZO,1);null!=b&&c.b(1,b,$O);b=T(a,PQ,2);null!=b&&c.b(2,b,QQ);b=U(a,xT,3);0<b.length&&L(c,3,b,CT);b=T(a,lU,4);null!=b&&c.b(4,b,mU);b=O(a,5);null!=b&&I(c,5,b);b=O(a,6);null!=b&&J(c,6,b);b=O(a,7);null!=b&&K(c,7,b);b=a.K();null!=b&&c.b(8,b,Gl)};h=nU.prototype;h.setRequestHeader=function(a){V(this,1,a)};h.la=function(){return R(this,6,1)};
h.vb=function(a){S(this,6,a)};h.K=function(){return T(this,Cl,8)};h.M=function(a){V(this,8,a)};h.ea=function(){this.M(void 0)};var pU=function(a){N(this,a,0,-1,pia,null)};x(pU,M);var pia=[4];pU.prototype.u=function(){var a=new D;qU(this,a);return F(a)};var qU=function(a,c){var b=T(a,ZO,1);null!=b&&c.b(1,b,$O);b=a.K();null!=b&&c.b(3,b,Gl);b=U(a,KI,4);0<b.length&&L(c,4,b,OI)};pU.prototype.setRequestHeader=function(a){V(this,1,a)};pU.prototype.K=function(){return T(this,Cl,3)};pU.prototype.M=function(a){V(this,3,a)};pU.prototype.ea=function(){this.M(void 0)};var rU=function(a){N(this,a,0,-1,null,null)};x(rU,M);rU.prototype.u=function(){var a=new D;sU(this,a);return F(a)};var sU=function(a,c){var b=T(a,ZO,1);null!=b&&c.b(1,b,$O);b=O(a,2);null!=b&&K(c,2,b);b=a.K();null!=b&&c.b(3,b,Gl)};h=rU.prototype;h.setRequestHeader=function(a){V(this,1,a)};h.za=function(a){S(this,2,a)};h.K=function(){return T(this,Cl,3)};h.M=function(a){V(this,3,a)};h.ea=function(){this.M(void 0)};var tU=function(a){N(this,a,0,-1,qia,null)};x(tU,M);var qia=[4];tU.prototype.u=function(){var a=new D;uU(this,a);return F(a)};var uU=function(a,c){var b=T(a,ZO,1);null!=b&&c.b(1,b,$O);b=T(a,cR,2);null!=b&&c.b(2,b,iR);b=a.K();null!=b&&c.b(3,b,Gl);b=U(a,cR,4);0<b.length&&L(c,4,b,iR)};tU.prototype.setRequestHeader=function(a){V(this,1,a)};tU.prototype.K=function(){return T(this,Cl,3)};tU.prototype.M=function(a){V(this,3,a)};tU.prototype.ea=function(){this.M(void 0)};var vU=function(a){N(this,a,0,-1,null,null)};x(vU,M);vU.prototype.u=function(){var a=new D;wU(this,a);return F(a)};var wU=function(a,c){var b=T(a,ZO,1);null!=b&&c.b(1,b,$O);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=a.K();null!=b&&c.b(4,b,Gl)};h=vU.prototype;h.setRequestHeader=function(a){V(this,1,a)};h.ma=function(){return O(this,2)};h.ga=function(a){S(this,2,a)};h.ba=function(){return O(this,3)};h.Na=function(a){S(this,3,a)};h.K=function(){return T(this,Cl,4)};
h.M=function(a){V(this,4,a)};h.ea=function(){this.M(void 0)};var xU=function(a){N(this,a,0,-1,ria,null)};x(xU,M);var ria=[4];xU.prototype.u=function(){var a=new D;yU(this,a);return F(a)};var yU=function(a,c){var b=T(a,ZO,1);null!=b&&c.b(1,b,$O);b=a.K();null!=b&&c.b(3,b,Gl);b=U(a,sR,4);0<b.length&&L(c,4,b,xR)};xU.prototype.setRequestHeader=function(a){V(this,1,a)};xU.prototype.K=function(){return T(this,Cl,3)};xU.prototype.M=function(a){V(this,3,a)};xU.prototype.ea=function(){this.M(void 0)};var zU=function(a){N(this,a,0,-1,null,null)};x(zU,M);zU.prototype.u=function(){var a=new D;AU(this,a);return F(a)};var AU=function(a,c){var b=T(a,ZO,1);null!=b&&c.b(1,b,$O);b=O(a,2);null!=b&&J(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=a.K();null!=b&&c.b(5,b,Gl)};h=zU.prototype;h.setRequestHeader=function(a){V(this,1,a)};h.za=function(a){S(this,3,a)};h.ma=function(){return O(this,4)};h.ga=function(a){S(this,4,a)};h.K=function(){return T(this,Cl,5)};h.M=function(a){V(this,5,a)};
h.ea=function(){this.M(void 0)};var BU=function(a){N(this,a,0,-1,null,null)};x(BU,M);BU.prototype.u=function(){var a=new D;CU(this,a);return F(a)};
var CU=function(a,c){var b=T(a,fU,1);null!=b&&c.b(1,b,gU);b=T(a,pU,2);null!=b&&c.b(2,b,qU);b=T(a,xU,3);null!=b&&c.b(3,b,yU);b=T(a,zU,4);null!=b&&c.b(4,b,AU);b=T(a,tU,5);null!=b&&c.b(5,b,uU);b=T(a,vU,6);null!=b&&c.b(6,b,wU);b=T(a,hU,7);null!=b&&c.b(7,b,iU);b=T(a,jU,8);null!=b&&c.b(8,b,kU);b=T(a,HT,9);null!=b&&c.b(9,b,IT);b=T(a,nU,10);null!=b&&c.b(10,b,oU);b=T(a,bU,11);null!=b&&c.b(11,b,cU);b=T(a,PT,12);null!=b&&c.b(12,b,QT);b=T(a,rU,13);null!=b&&c.b(13,b,sU)};BU.prototype.C=function(a){V(this,4,a)};
BU.prototype.D=function(a){V(this,6,a)};BU.prototype.h=function(a){V(this,7,a)};BU.prototype.s=function(a){V(this,8,a)};var DU=function(a){N(this,a,0,-1,sia,null)};x(DU,M);var sia=[2];DU.prototype.u=function(){var a=new D;var c=T(this,ZO,1);null!=c&&a.b(1,c,$O);c=U(this,BU,2);0<c.length&&L(a,2,c,CU);c=this.K();null!=c&&a.b(3,c,Gl);return F(a)};DU.prototype.setRequestHeader=function(a){V(this,1,a)};var tia=function(a,c){rl(a,2,c)};DU.prototype.wd=function(a,c){return sl(this,2,a,BU,c)};DU.prototype.K=function(){return T(this,Cl,3)};DU.prototype.M=function(a){V(this,3,a)};DU.prototype.ea=function(){this.M(void 0)};var EU=function(a){N(this,a,"chpara",-1,null,null)};x(EU,M);EU.prototype.u=function(){var a=new D;FU(this,a);return F(a)};var FU=function(a,c){var b=a.getResponseHeader();null!=b&&c.b(1,b,fP);b=T(a,NT,2);null!=b&&c.b(2,b,OT);b=a.K();null!=b&&c.b(3,b,Gl)};Bl("chpara",EU);EU.prototype.getResponseHeader=function(){return T(this,eP,1)};EU.prototype.K=function(){return T(this,Cl,3)};EU.prototype.M=function(a){V(this,3,a)};EU.prototype.ea=function(){this.M(void 0)};var GU=function(a){N(this,a,"chiarp",-1,null,null)};x(GU,M);GU.prototype.u=function(){var a=new D;HU(this,a);return F(a)};var HU=function(a,c){var b=a.getResponseHeader();null!=b&&c.b(1,b,fP);b=T(a,$T,2);null!=b&&c.b(2,b,aU);b=O(a,3);null!=b&&J(c,3,b);b=a.K();null!=b&&c.b(4,b,Gl)};Bl("chiarp",GU);GU.prototype.getResponseHeader=function(){return T(this,eP,1)};GU.prototype.K=function(){return T(this,Cl,4)};GU.prototype.M=function(a){V(this,4,a)};GU.prototype.ea=function(){this.M(void 0)};var IU=function(a){N(this,a,"chparp",-1,uia,null)};x(IU,M);var uia=[5];IU.prototype.u=function(){var a=new D;JU(this,a);return F(a)};var JU=function(a,c){var b=a.getResponseHeader();null!=b&&c.b(1,b,fP);b=T(a,tQ,2);null!=b&&c.b(2,b,vQ);b=a.K();null!=b&&c.b(3,b,Gl);b=O(a,4);null!=b&&J(c,4,b);b=U(a,tQ,5);0<b.length&&L(c,5,b,vQ)};Bl("chparp",IU);IU.prototype.getResponseHeader=function(){return T(this,eP,1)};IU.prototype.K=function(){return T(this,Cl,3)};IU.prototype.M=function(a){V(this,3,a)};
IU.prototype.ea=function(){this.M(void 0)};var KU=function(a){N(this,a,0,-1,null,null)};x(KU,M);KU.prototype.u=function(){var a=new D;LU(this,a);return F(a)};var LU=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&J(c,2,b)};KU.prototype.ba=function(){return O(this,1)};KU.prototype.Na=function(a){S(this,1,a)};var MU=function(a){N(this,a,"chpsrp",-1,via,null)};x(MU,M);var via=[2,4];MU.prototype.u=function(){var a=new D;NU(this,a);return F(a)};var NU=function(a,c){var b=a.getResponseHeader();null!=b&&c.b(1,b,fP);b=U(a,tQ,2);0<b.length&&L(c,2,b,vQ);b=a.K();null!=b&&c.b(3,b,Gl);b=U(a,KU,4);0<b.length&&L(c,4,b,LU)};Bl("chpsrp",MU);MU.prototype.getResponseHeader=function(){return T(this,eP,1)};MU.prototype.K=function(){return T(this,Cl,3)};MU.prototype.M=function(a){V(this,3,a)};MU.prototype.ea=function(){this.M(void 0)};var OU=function(a){N(this,a,"chqrp",-1,null,null)};x(OU,M);OU.prototype.u=function(){var a=new D;PU(this,a);return F(a)};var PU=function(a,c){var b=a.getResponseHeader();null!=b&&c.b(1,b,fP);b=T(a,TQ,2);null!=b&&c.b(2,b,UQ);b=a.K();null!=b&&c.b(3,b,Gl)};Bl("chqrp",OU);OU.prototype.getResponseHeader=function(){return T(this,eP,1)};OU.prototype.K=function(){return T(this,Cl,3)};OU.prototype.M=function(a){V(this,3,a)};OU.prototype.ea=function(){this.M(void 0)};var QU=function(a){N(this,a,"chrrp",-1,null,null)};x(QU,M);QU.prototype.u=function(){var a=new D;RU(this,a);return F(a)};var RU=function(a,c){var b=a.getResponseHeader();null!=b&&c.b(1,b,fP);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&J(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=a.K();null!=b&&c.b(5,b,Gl);b=O(a,6);null!=b&&K(c,6,b)};Bl("chrrp",QU);h=QU.prototype;h.getResponseHeader=function(){return T(this,eP,1)};h.ma=function(){return O(this,2)};h.ga=function(a){S(this,2,a)};
h.K=function(){return T(this,Cl,5)};h.M=function(a){V(this,5,a)};h.ea=function(){this.M(void 0)};var SU=function(a){N(this,a,"chsearp",-1,wia,null)};x(SU,M);var wia=[4];SU.prototype.u=function(){var a=new D;TU(this,a);return F(a)};var TU=function(a,c){var b=a.getResponseHeader();null!=b&&c.b(1,b,fP);b=a.K();null!=b&&c.b(3,b,Gl);b=U(a,KI,4);0<b.length&&L(c,4,b,OI)};Bl("chsearp",SU);SU.prototype.getResponseHeader=function(){return T(this,eP,1)};SU.prototype.K=function(){return T(this,Cl,3)};SU.prototype.M=function(a){V(this,3,a)};SU.prototype.ea=function(){this.M(void 0)};var UU=function(a){N(this,a,"chseqrp",-1,null,null)};x(UU,M);UU.prototype.u=function(){var a=new D;VU(this,a);return F(a)};var VU=function(a,c){var b=a.getResponseHeader();null!=b&&c.b(1,b,fP);b=a.Fh();null!=b&&c.b(2,b,OI);b=a.K();null!=b&&c.b(3,b,Gl)};Bl("chseqrp",UU);h=UU.prototype;h.getResponseHeader=function(){return T(this,eP,1)};h.Fh=function(){return T(this,KI,2)};h.K=function(){return T(this,Cl,3)};h.M=function(a){V(this,3,a)};h.ea=function(){this.M(void 0)};var WU=function(a){N(this,a,"chsoarp",-1,xia,null)};x(WU,M);var xia=[4];WU.prototype.u=function(){var a=new D;XU(this,a);return F(a)};var XU=function(a,c){var b=a.getResponseHeader();null!=b&&c.b(1,b,fP);b=T(a,cR,2);null!=b&&c.b(2,b,iR);b=a.K();null!=b&&c.b(3,b,Gl);b=U(a,cR,4);0<b.length&&L(c,4,b,iR)};Bl("chsoarp",WU);WU.prototype.getResponseHeader=function(){return T(this,eP,1)};WU.prototype.K=function(){return T(this,Cl,3)};WU.prototype.M=function(a){V(this,3,a)};WU.prototype.ea=function(){this.M(void 0)};var YU=function(a){N(this,a,"chsosrp",-1,yia,null)};x(YU,M);var yia=[2];YU.prototype.u=function(){var a=new D;ZU(this,a);return F(a)};var ZU=function(a,c){var b=a.getResponseHeader();null!=b&&c.b(1,b,fP);b=U(a,cR,2);0<b.length&&L(c,2,b,iR);b=a.K();null!=b&&c.b(3,b,Gl)};Bl("chsosrp",YU);YU.prototype.getResponseHeader=function(){return T(this,eP,1)};YU.prototype.K=function(){return T(this,Cl,3)};YU.prototype.M=function(a){V(this,3,a)};YU.prototype.ea=function(){this.M(void 0)};var $U=function(a){N(this,a,"chstarp",-1,zia,null)};x($U,M);var zia=[4];$U.prototype.u=function(){var a=new D;aV(this,a);return F(a)};var aV=function(a,c){var b=a.getResponseHeader();null!=b&&c.b(1,b,fP);b=a.K();null!=b&&c.b(3,b,Gl);b=U(a,sR,4);0<b.length&&L(c,4,b,xR)};Bl("chstarp",$U);$U.prototype.getResponseHeader=function(){return T(this,eP,1)};$U.prototype.K=function(){return T(this,Cl,3)};$U.prototype.M=function(a){V(this,3,a)};$U.prototype.ea=function(){this.M(void 0)};var bV=function(a){N(this,a,"chstsrp",-1,Aia,null)};x(bV,M);var Aia=[2];bV.prototype.u=function(){var a=new D;cV(this,a);return F(a)};var cV=function(a,c){var b=a.getResponseHeader();null!=b&&c.b(1,b,fP);b=U(a,sR,2);0<b.length&&L(c,2,b,xR);b=a.K();null!=b&&c.b(3,b,Gl)};Bl("chstsrp",bV);bV.prototype.getResponseHeader=function(){return T(this,eP,1)};bV.prototype.K=function(){return T(this,Cl,3)};bV.prototype.M=function(a){V(this,3,a)};bV.prototype.ea=function(){this.M(void 0)};var dV=function(a){N(this,a,0,-1,null,null)};x(dV,M);dV.prototype.u=function(){var a=new D;eV(this,a);return F(a)};
var eV=function(a,c){var b=T(a,IU,1);null!=b&&c.b(1,b,JU);b=T(a,SU,2);null!=b&&c.b(2,b,TU);b=T(a,$U,3);null!=b&&c.b(3,b,aV);b=a.C();null!=b&&c.b(4,b,cV);b=T(a,WU,5);null!=b&&c.b(5,b,XU);b=a.D();null!=b&&c.b(6,b,ZU);b=a.h();null!=b&&c.b(7,b,NU);b=a.s();null!=b&&c.b(8,b,PU);b=T(a,JT,9);null!=b&&c.b(9,b,KT);b=T(a,QU,10);null!=b&&c.b(10,b,RU);b=T(a,GU,11);null!=b&&c.b(11,b,HU);b=T(a,EU,12);null!=b&&c.b(12,b,FU);b=T(a,UU,13);null!=b&&c.b(13,b,VU)};dV.prototype.C=function(){return T(this,bV,4)};
dV.prototype.D=function(){return T(this,YU,6)};dV.prototype.h=function(){return T(this,MU,7)};dV.prototype.s=function(){return T(this,OU,8)};var fV=function(a){N(this,a,"chbrp",-1,Bia,null)};x(fV,M);var Bia=[2];fV.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=U(this,dV,2);0<c.length&&L(a,2,c,eV);c=this.K();null!=c&&a.b(3,c,Gl);return F(a)};Bl("chbrp",fV);h=fV.prototype;h.getResponseHeader=function(){return T(this,eP,1)};h.wd=function(a,c){return sl(this,2,a,dV,c)};h.K=function(){return T(this,Cl,3)};h.M=function(a){V(this,3,a)};h.ea=function(){this.M(void 0)};var gV=function(a){N(this,a,0,-1,Cia,null)};x(gV,M);var Cia=[4];h=gV.prototype;h.u=function(){var a=new D;var c=T(this,ZO,1);null!=c&&a.b(1,c,$O);c=T(this,TQ,2);null!=c&&a.b(2,c,UQ);c=this.K();null!=c&&a.b(3,c,Gl);c=U(this,TQ,4);0<c.length&&L(a,4,c,UQ);return F(a)};h.setRequestHeader=function(a){V(this,1,a)};h.K=function(){return T(this,Cl,3)};h.M=function(a){V(this,3,a)};h.ea=function(){this.M(void 0)};var hV=function(a){N(this,a,"chmrp",-1,Dia,null)};x(hV,M);var Dia=[4];hV.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=T(this,TQ,2);null!=c&&a.b(2,c,UQ);c=this.K();null!=c&&a.b(3,c,Gl);c=U(this,TQ,4);0<c.length&&L(a,4,c,UQ);return F(a)};Bl("chmrp",hV);hV.prototype.getResponseHeader=function(){return T(this,eP,1)};hV.prototype.K=function(){return T(this,Cl,3)};hV.prototype.M=function(a){V(this,3,a)};hV.prototype.ea=function(){this.M(void 0)};var iV=function(a){N(this,a,0,-1,Eia,null)};x(iV,M);var Eia=[4];h=iV.prototype;h.u=function(){var a=new D;var c=T(this,ZO,1);null!=c&&a.b(1,c,$O);c=T(this,tQ,2);null!=c&&a.b(2,c,vQ);c=this.K();null!=c&&a.b(3,c,Gl);c=U(this,tQ,4);0<c.length&&L(a,4,c,vQ);return F(a)};h.setRequestHeader=function(a){V(this,1,a)};h.K=function(){return T(this,Cl,3)};h.M=function(a){V(this,3,a)};h.ea=function(){this.M(void 0)};var jV=function(a){N(this,a,"chpmrp",-1,Fia,null)};x(jV,M);var Fia=[4];jV.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=T(this,tQ,2);null!=c&&a.b(2,c,vQ);c=this.K();null!=c&&a.b(3,c,Gl);c=U(this,tQ,4);0<c.length&&L(a,4,c,vQ);return F(a)};Bl("chpmrp",jV);jV.prototype.getResponseHeader=function(){return T(this,eP,1)};jV.prototype.K=function(){return T(this,Cl,3)};jV.prototype.M=function(a){V(this,3,a)};jV.prototype.ea=function(){this.M(void 0)};var kV=function(a){N(this,a,0,-1,null,null)};x(kV,M);h=kV.prototype;h.u=function(){var a=new D;var c=T(this,ZO,1);null!=c&&a.b(1,c,$O);c=O(this,2);null!=c&&K(a,2,c);c=O(this,3);null!=c&&K(a,3,c);c=this.K();null!=c&&a.b(4,c,Gl);return F(a)};h.setRequestHeader=function(a){V(this,1,a)};h.ma=function(){return O(this,2)};h.ga=function(a){S(this,2,a)};h.ba=function(){return O(this,3)};h.Na=function(a){S(this,3,a)};h.K=function(){return T(this,Cl,4)};h.M=function(a){V(this,4,a)};h.ea=function(){this.M(void 0)};var lV=function(a){N(this,a,"chpqrp",-1,null,null)};x(lV,M);lV.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=T(this,tQ,2);null!=c&&a.b(2,c,vQ);c=this.K();null!=c&&a.b(3,c,Gl);return F(a)};Bl("chpqrp",lV);lV.prototype.getResponseHeader=function(){return T(this,eP,1)};lV.prototype.K=function(){return T(this,Cl,3)};lV.prototype.M=function(a){V(this,3,a)};lV.prototype.ea=function(){this.M(void 0)};var mV=function(a){N(this,a,0,-1,Gia,null)};x(mV,M);var Gia=[6,7];h=mV.prototype;h.u=function(){var a=new D;var c=T(this,ZO,1);null!=c&&a.b(1,c,$O);c=O(this,2);null!=c&&K(a,2,c);c=O(this,3);null!=c&&K(a,3,c);c=O(this,5);null!=c&&J(a,5,c);c=this.K();null!=c&&a.b(4,c,Gl);c=O(this,6);0<c.length&&Tk(a,6,c);c=U(this,xQ,7);0<c.length&&L(a,7,c,yQ);return F(a)};h.setRequestHeader=function(a){V(this,1,a)};h.ma=function(){return O(this,2)};h.ga=function(a){S(this,2,a)};h.ba=function(){return O(this,3)};
h.Na=function(a){S(this,3,a)};h.K=function(){return T(this,Cl,4)};h.M=function(a){V(this,4,a)};h.ea=function(){this.M(void 0)};var nV=function(a,c){rl(a,7,c)};var oV=function(a){N(this,a,"chprrp",-1,null,null)};x(oV,M);oV.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=this.K();null!=c&&a.b(2,c,Gl);c=O(this,3);null!=c&&J(a,3,c);return F(a)};Bl("chprrp",oV);oV.prototype.getResponseHeader=function(){return T(this,eP,1)};oV.prototype.K=function(){return T(this,Cl,2)};oV.prototype.M=function(a){V(this,2,a)};oV.prototype.ea=function(){this.M(void 0)};var pV=function(a){N(this,a,0,-1,Hia,null)};x(pV,M);var Hia=[1];pV.prototype.u=function(){var a=new D;qV(this,a);return F(a)};var qV=function(a,c){var b=O(a,1);0<b.length&&Tk(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b)};var rV=function(a){N(this,a,"chsetcrp",-1,Iia,null)};x(rV,M);var Iia=[2];rV.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=U(this,pV,2);0<c.length&&L(a,2,c,qV);return F(a)};Bl("chsetcrp",rV);rV.prototype.getResponseHeader=function(){return T(this,eP,1)};var sV=function(a){N(this,a,0,-1,null,null)};x(sV,M);h=sV.prototype;h.u=function(){var a=new D;var c=T(this,ZO,1);null!=c&&a.b(1,c,$O);c=O(this,2);null!=c&&K(a,2,c);c=T(this,QH,3);null!=c&&a.b(3,c,RH);c=this.K();null!=c&&a.b(4,c,Gl);return F(a)};h.setRequestHeader=function(a){V(this,1,a)};h.za=function(a){S(this,2,a)};h.K=function(){return T(this,Cl,4)};h.M=function(a){V(this,4,a)};h.ea=function(){this.M(void 0)};var tV=function(a){N(this,a,"chselrp",-1,null,null)};x(tV,M);var Jia=function(a){a=new lk(a);for(var c=new tV;nk(a)&&!mk(a);)switch(a.f){case 1:var b=new eP;a.g(b,Zga);V(c,1,b);break;case 2:b=new Cl;a.g(b,Fl);c.M(b);break;default:ok(a)}return c};tV.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=this.K();null!=c&&a.b(2,c,Gl);return F(a)};Bl("chselrp",tV);tV.prototype.getResponseHeader=function(){return T(this,eP,1)};
tV.prototype.K=function(){return T(this,Cl,2)};tV.prototype.M=function(a){V(this,2,a)};tV.prototype.ea=function(){this.M(void 0)};var uV=function(a){N(this,a,0,-1,Kia,null)};x(uV,M);var Kia=[4];h=uV.prototype;h.u=function(){var a=new D;var c=T(this,ZO,1);null!=c&&a.b(1,c,$O);c=this.K();null!=c&&a.b(3,c,Gl);c=U(this,KI,4);0<c.length&&L(a,4,c,OI);return F(a)};h.setRequestHeader=function(a){V(this,1,a)};h.K=function(){return T(this,Cl,3)};h.M=function(a){V(this,3,a)};h.ea=function(){this.M(void 0)};var vV=function(a){N(this,a,"chsemrp",-1,Lia,null)};x(vV,M);var Lia=[4];vV.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=this.K();null!=c&&a.b(3,c,Gl);c=U(this,KI,4);0<c.length&&L(a,4,c,OI);return F(a)};Bl("chsemrp",vV);vV.prototype.getResponseHeader=function(){return T(this,eP,1)};vV.prototype.K=function(){return T(this,Cl,3)};vV.prototype.M=function(a){V(this,3,a)};vV.prototype.ea=function(){this.M(void 0)};var wV=function(a){N(this,a,0,-1,Mia,null)};x(wV,M);var Mia=[4];h=wV.prototype;h.u=function(){var a=new D;var c=T(this,ZO,1);null!=c&&a.b(1,c,$O);c=T(this,cR,2);null!=c&&a.b(2,c,iR);c=this.K();null!=c&&a.b(3,c,Gl);c=U(this,cR,4);0<c.length&&L(a,4,c,iR);return F(a)};h.setRequestHeader=function(a){V(this,1,a)};h.K=function(){return T(this,Cl,3)};h.M=function(a){V(this,3,a)};h.ea=function(){this.M(void 0)};var xV=function(a){N(this,a,"chsomrp",-1,Nia,null)};x(xV,M);var Nia=[4];xV.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=T(this,cR,2);null!=c&&a.b(2,c,iR);c=this.K();null!=c&&a.b(3,c,Gl);c=U(this,cR,4);0<c.length&&L(a,4,c,iR);return F(a)};Bl("chsomrp",xV);xV.prototype.getResponseHeader=function(){return T(this,eP,1)};xV.prototype.K=function(){return T(this,Cl,3)};xV.prototype.M=function(a){V(this,3,a)};xV.prototype.ea=function(){this.M(void 0)};var yV=function(a){N(this,a,0,-1,null,null)};x(yV,M);h=yV.prototype;h.u=function(){var a=new D;var c=T(this,ZO,1);null!=c&&a.b(1,c,$O);c=O(this,2);null!=c&&K(a,2,c);c=O(this,3);null!=c&&K(a,3,c);c=O(this,4);null!=c&&K(a,4,c);return F(a)};h.setRequestHeader=function(a){V(this,1,a)};h.ma=function(){return O(this,2)};h.ga=function(a){S(this,2,a)};h.ba=function(){return O(this,3)};h.Na=function(a){S(this,3,a)};h.wa=function(){return O(this,4)};var zV=function(a){N(this,a,"chsoqrp",-1,null,null)};x(zV,M);zV.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=T(this,cR,2);null!=c&&a.b(2,c,iR);return F(a)};Bl("chsoqrp",zV);zV.prototype.getResponseHeader=function(){return T(this,eP,1)};var AV=function(a){N(this,a,0,-1,Oia,null)};x(AV,M);var Oia=[4];h=AV.prototype;h.u=function(){var a=new D;var c=T(this,ZO,1);null!=c&&a.b(1,c,$O);c=this.K();null!=c&&a.b(3,c,Gl);c=U(this,sR,4);0<c.length&&L(a,4,c,xR);return F(a)};h.setRequestHeader=function(a){V(this,1,a)};h.K=function(){return T(this,Cl,3)};h.M=function(a){V(this,3,a)};h.ea=function(){this.M(void 0)};var BV=function(a){N(this,a,"chstmrp",-1,Pia,null)};x(BV,M);var Pia=[4];BV.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=this.K();null!=c&&a.b(3,c,Gl);c=U(this,sR,4);0<c.length&&L(a,4,c,xR);return F(a)};Bl("chstmrp",BV);BV.prototype.getResponseHeader=function(){return T(this,eP,1)};BV.prototype.K=function(){return T(this,Cl,3)};BV.prototype.M=function(a){V(this,3,a)};BV.prototype.ea=function(){this.M(void 0)};var CV=function(a){N(this,a,0,-1,null,null)};x(CV,M);h=CV.prototype;h.u=function(){var a=new D;var c=T(this,ZO,1);null!=c&&a.b(1,c,$O);c=O(this,2);null!=c&&J(a,2,c);c=O(this,3);null!=c&&K(a,3,c);c=O(this,4);null!=c&&K(a,4,c);c=O(this,5);null!=c&&K(a,5,c);return F(a)};h.setRequestHeader=function(a){V(this,1,a)};h.za=function(a){S(this,3,a)};h.ma=function(){return O(this,5)};h.ga=function(a){S(this,5,a)};var DV=function(a){N(this,a,"chstqrp",-1,null,null)};x(DV,M);DV.prototype.u=function(){var a=new D;var c=this.getResponseHeader();null!=c&&a.b(1,c,fP);c=this.Ub();null!=c&&a.b(2,c,xR);return F(a)};Bl("chstqrp",DV);DV.prototype.getResponseHeader=function(){return T(this,eP,1)};DV.prototype.Ub=function(){return T(this,sR,2)};var EV=function(a){N(this,a,0,-1,Qia,null)};x(EV,M);var Qia=[7];h=EV.prototype;h.u=function(){var a=new D;var c=T(this,ZO,1);null!=c&&a.b(1,c,$O);c=O(this,2);null!=c&&J(a,2,c);c=O(this,3);null!=c&&K(a,3,c);c=O(this,5);null!=c&&K(a,5,c);c=this.K();null!=c&&a.b(6,c,Gl);c=O(this,7);0<c.length&&Tk(a,7,c);return F(a)};h.setRequestHeader=function(a){V(this,1,a)};h.za=function(a){S(this,3,a)};h.ma=function(){return O(this,5)};h.ga=function(a){S(this,5,a)};h.K=function(){return T(this,Cl,6)};
h.M=function(a){V(this,6,a)};h.ea=function(){this.M(void 0)};var Ria=function(a,c){S(a,7,c||[])};var FV=function(){};FV.prototype.load=function(a){ob(this.l,"Loading gapi for realtime client");var c=window.gapi;c&&c.auth?a(c):(new Iv("notneeded",void 0,void 0,!0,!1,void 0)).init().then(function(b){a(b)})};FV.prototype.l=hb("mr.mirror.hangouts.ClientLoader");var GV=function(a,c){this.data=a;this.b=c};GV.prototype.toString=function(){return"[op. result, version: "+this.b+", resource count: "+this.data.length+"]"};var Sia=1,Tia=1,HV=function(a){W.call(this);this.g=new Set;(this.f=a)&&a.b(this)};q(HV,W);HV.prototype.signal=function(){return IV(this,!1)};
var JV=function(a,c,b){c.D||(c.D=Uia(a,c)+"-"+Tia++);return Via({signal:c,data:b})},IV=function(a,c){c=new KV(c);a.g.add(c);a.b(c);return c},Uia=function(a,c){return a.f?(a=Object.entries(a.f).find(function(b){b=l(b);b.next();return b.next().value==c}))&&a[0]||"ANONYMOUS":"OWNERLESS"},KV=function(a){W.call(this);this.f=new Map;this.g=new Set;this.j=a;this.o=!1;this.m=null;this.h=0};q(KV,W);
var MV=function(a,c,b){var d=Sia++;LV(function(){return Wia(a,d,c,b)});return d},Wia=function(a,c,b,d){if(!a.w())if(d){if(!d.w()){var e=function(){return LV(function(){a.f.delete(c);var f=NV.get(d);f&&ac(f,e)})};a.f.set(c,{slot:b,Bi:e});OV(d,e)}}else a.f.set(c,{slot:b,Bi:function(){return a.f.delete(c)}})},Xia=function(a,c){LV(function(){var b=a.f.get(c).Bi;b&&b()})};KV.prototype.value=function(a){return PV(this,!0,a)};KV.prototype.next=function(a){return PV(this,!1,a)};
var PV=function(a,c,b){var d=dv();LV(function(){if(a.w())d.reject(new Su("Signal disposed"));else if(b&&b.w())d.reject(new Su("Owner disposed"));else if(c&&a.j&&a.o)d.resolve(a.s);else if(a.g.add(d),gv(d.Y,function(){a.g.delete(d)}),b){var e=function(){d.reject(new Su("Owner disposed"))};gv(d.Y,function(){var f=NV.get(b);f&&ac(f,e)});OV(b,e)}});return d.Y};
KV.prototype.ia=function(){var a=this;W.prototype.ia.call(this);LV(function(){a.f.forEach(function(c){c=c.Bi;return c()});a.f.clear();a.g.forEach(function(c){return c.reject(new Su("Signal disposed"))});a.g.clear()})};
var Via=function(a){for(var c=[],b=0;b<arguments.length;++b)c[b-0]=arguments[b];return 0==c.length?Promise.resolve():1==c.length?(c=c[0],QV(c.signal,c.data)):Promise.all(c.map(function(d){return QV(d.signal,d.data)}))},QV=function(a,c){return new Promise(function(b,d){LV(function(e){if(a.m===e){if(a.h++,5<=a.h){d("Emit cycle detected!");return}}else a.m=e,a.h=0;a.f.forEach(function(f){f=f.slot;try{f(c)}catch(g){Fu(g)}});a.g.forEach(function(f){return f.resolve(c)});a.g.clear();a.j&&(a.s=c,a.o=!0);
b()})})},RV=[],SV=!1,Yia=0,LV=function(a){RV.push(a);if(!SV)try{var c=++Yia;SV=!0;for(a=0;a<RV.length;a++)try{RV[a](c)}catch(b){Fu(b)}RV.length=0}finally{SV=!1}},NV=new WeakMap,OV=function(a,c){if(a.w())c();else{var b=NV.get(a);if(b)b.push(c);else{var d=[c];NV.set(a,d);Xt(a,function(){[].concat(n(d)).forEach(function(e){return e()});NV.delete(a)})}}};var TV=function(){W.call(this);this.s=new HV(this);this.m=this.s.signal()};x(TV,W);var UV=function(a){JV(a.s,a.m,void 0)};var VV=function(a){this.b=a};VV.prototype.Ri=tc;var WV=function(a,c){this.f=a;this.b=c};var XV=function(a,c,b,d,e,f,g,k,m,p,v,A){this.b=a;this.s=z(c);this.D=z(b);this.J=z(d);this.o=dc(c,d);this.O=dc(b,e);this.g=f;this.C=z(g);this.F=z(k);this.L=z(m);this.m=dc(g,m);this.H=dc(k,p);this.w=v||vc;this.j=A||Qa};XV.prototype.h=function(a){if(a instanceof this.b)var c=this.s;else if(a instanceof this.g)c=this.C;else return Hb("Passed in object did not match resource or identifier type"),[];return Nb(c,function(b){return b.call(a)})};
var YV=function(a,c){if(c instanceof a.b)a=a.J;else if(c instanceof a.g)a=a.L;else return Hb("Passed in object did not match resource or identifier type"),[];return Nb(a,function(b){return b.call(c)})};XV.prototype.f=function(a){if(a instanceof this.b)var c=this.o;else if(a instanceof this.g)c=this.m;else return Hb("Passed in object did not match resource or identifier type"),[];return Nb(c,function(b){return b.call(a)})};
XV.prototype.cc=function(a,c){var b=this.O;a.length!=b.length&&(c?a=dc(a,c):b=this.D);var d=new this.b;y(a,function(e,f){b[f].call(d,e)},this);return d};
var ZV=function(a,c){var b=a.H;c.length!=b.length&&(b=a.F);var d=new a.g;y(c,function(e,f){b[f].call(d,e)},a);return d},$V=function(a,c){if(c instanceof a.b)a=a.o;else if(c instanceof a.g)a=a.m;else return Hb("Passed in object did not match resource or identifier type"),!1;return!Pb(a,function(b){return null==b.call(c)})},bW=function(a,c,b){c=aW(a,c,a.f);a=aW(a,b,a.f);return oc(c,a)},aW=function(a,c,b){return c instanceof Array?c:b.call(a,c)};var cW=function(a,c,b,d,e,f,g){Y.call(this);this.g=d;this.O=e;this.j=ZV(this.g,b);this.Ka=++Zia;this.R=Mf("realtime.collections.Collection."+this.Ka);this.J=e.b;this.Ab=g||null;this.qa=f&&f.f||null;this.ab=e.Ri();this.Bb=f&&f.b||null;this.Sc=new My(this);this.b(this.Sc);this.data={};this.qb=0;this.Wa=[];this.Sa={};this.f=-2;this.s=!0;this.o=dv();this.state="ja";this.config=zl(c);nT.Ja();this.T={};this.tb=tc};x(cW,Y);
cW.prototype.toString=function(){return"[Collection #: "+this.Ka+", id: "+this.j+", data version: "+this.f+"]"};var $ia=new Jm(10,67);cW.prototype.fa=function(a){this.g.j(a.data);return new dW(a.b,a.data,[],"fa")};var eW=function(a,c){return new dW(c.b,[],a,"fa")},Zia=0,aja=0,fW=function(a){"ja"==a.state&&(a.state="ha",a.qa&&a.Sc.listen(a.qa,a.Bb,a.Em))};
cW.prototype.start=function(a){a&&(this.j=zl(a));"ja"==this.state&&fW(this);if("ha"!=this.state)return null;this.state="ia";gW(this);C(this.R,"Collection started: "+this.toString()+", "+this.ad());return null};cW.prototype.stop=function(){if("ia"==this.state||"ha"==this.state)this.flush(),this.Da(),this.state="ja",C(this.R,"Collection stopped: "+this.toString()+": "+this.ad())};var gW=function(a){a.s&&a.o&&(C(a.R,"Initial data available: "+a.toString()),a.o.resolve(a.Wa),a.o=null)};
cW.prototype.Da=function(){this.qa&&Ry(this.Sc,this.qa,this.Bb,this.Em)};cW.prototype.cc=function(a){for(var c=[],b=0;b<arguments.length;++b)c[b-0]=arguments[b];if(0==c.length)return this.g.cc(this.g.h(this.j));if(c[0]instanceof this.g.b)return this.g.cc(this.g.f(c[0]));c=Array.prototype.concat.apply(Array.prototype,c);return this.g.cc(this.g.h(this.j),c)};
cW.prototype.Aa=function(a){for(var c=[],b=0;b<arguments.length;++b)c[b-0]=arguments[b];return this.Sa[hW(this,Array.prototype.concat.apply(Array.prototype,c))]||null};var iW=function(a){return"ia"==a.state&&!0};cW.prototype.ia=function(){this.flush();this.stop();null!=this.o&&(B(this.R,"Never any data: "+this.toString()),this.o.Y.cancel(),this.o=null);cW.Ga.ia.call(this)};cW.prototype.get=function(){return this.Wa};cW.prototype.flush=function(){do{bja(this);var a=this.C()}while(0<a)};
var bja=function(a){yc(a.T,function(c){for(;c&&1<=c.length&&c[0].b;)c.shift()})},jW=function(a){return Nb(Fc(a.data),function(c){return c.Ba()})};cW.prototype.add=function(a,c){hW(this,a);if(kW(this,a)&&this.ab)return c=lW(this,"la",a),Nu(this.C,this),c;a=this.O.Od([a]);return mW(this,a,t(this.fa,this),c)};var nW=function(a,c,b){hW(a,c);if(kW(a,c)&&a.ab)return b=lW(a,"ma",c),Nu(a.C,a),b;c=a.O.Pd([c]);return mW(a,c,t(a.fa,a),b)};
cW.prototype.remove=function(a,c,b){var d=this.Ma(a);return kW(this,a)&&null==b&&this.ab?(a=lW(this,"na",d,c),Nu(this.C,this),a):mW(this,oW(this,[d],c),db(eW,[d]),b)};
var lW=function(a,c,b,d){var e=a.Ma(b).toString(),f=a.T[e]||[];a.T[e]=f;var g=null;e=f.length;if(1<=e&&!f[e-1].b)if(e=f[e-1],"la"==c){if("la"==e.type||"ma"==e.type)g=e.ub,f.pop(),pW(a,"i")}else if("ma"==c&&("la"==e.type||"ma"==e.type)){f=e.resource;c=JSON.parse(f.Ba());b=JSON.parse(b.Ba());for(d=0;d<b.length;d++)null!=b[d]&&!xl(c[d],b[d])&&(c[d]=b[d]);b=new f.constructor(c);e.resource=b;pW(a,"h");return e.ub.Y}a=new cja(c,b,g,d);f.push(a);return a.ub.Y};
cW.prototype.C=function(){var a=0,c={};yc(this.T,function(b){if(b&&1<=b.length&&(b=b[0],!b.b)){b.b=!0;if("na"==b.type&&b.f){var d=[b.resource];qW(this,oW(this,d,b.f),db(eW,d),[b.ub],d)}else d=c[b.type]||[],d.push(b),c[b.type]=d;a++}},this);yc(c,function(b,d){if(1<=b.length){var e=[],f=[];y(b,function(g){e.push(g.resource);f.push(g.ub)});switch(d){case "la":qW(this,this.O.Od(e),t(this.fa,this),f,e);break;case "ma":qW(this,this.O.Pd(e),t(this.fa,this),f,e);break;case "na":qW(this,oW(this,e),db(eW,e),
f,e);break;default:Hb("A request with type "+d+" was put in the queue.")}}},this);return a};var qW=function(a,c,b,d,e){null==c&&y(d,function(g){g.reject("Operation not available")});c.Qh(R(a.config,7,0));c.Zf(R(a.config,8,6E4),R(a.config,13,6E4));e=Nb(e,a.Ma,a);var f=c.Ph();f.then(t(a.yl,a,e),t(a.yl,a,e));hv(f.then(t(a.Bm,a,c,b,d,e)),t(a.Cm,a,c,d));a.J.execute(c)};cW.prototype.Vg=function(){return Yu("Resync not supported")};cW.prototype.Lf=function(){return!0};
var oW=function(a,c,b){return a.O.ie(Nb(c,a.da,a),b)},kW=function(a,c){return c instanceof rW?$V(a.g,a.da(c)):$V(a.g,c)},sW=function(a,c){c=ZV(a.g,a.g.f(c));return new rW(a.g,c)},tW=function(a,c){var b=a.g;c=a.da(c);a=aW(b,a.j,b.h);b=aW(b,c,b.h);return oc(a,b)},mW=function(a,c,b,d){if(null==c)return Yu("Operation not available");var e=dv();d=null!=d?d:R(a.config,7,0);c.Qh(d);d=c.Qf()||R(a.config,8,6E4);var f=c.Oh()||Math.max(d,R(a.config,13,6E4)||0);c.Zf(d,f);null!=e&&hv(c.Ph().then(t(a.Bm,a,c,b,
[e],null)),t(a.Cm,a,c,[e]));C(a.R,"Executing operation: "+c);a.J.execute(c);return e.Y};h=cW.prototype;
h.Bm=function(a,c,b,d,e){C(this.R,"Operation executed: "+a+", result:"+e);pW(this,"f",a.Gh());null!=c&&(this.Lf(e.b)?(a=c(e))?this.Mj(a):C(this.R,"Operation resulted in no update"):iW(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?b[0].resolve(e.data):y(b,function(f,g){var k=d[g];g=Mb(e.data,function(m){return this.Ma(m).equals(k)},this);0==g.length&&Of(this.R,"Result data is empty after filtering for target resource id "+
k);f.resolve(g)},this)};h.Cm=function(a,c,b){var d="Operation failed: "+b;Of(this.R,d,b instanceof Error?b:Error(d));pW(this,"e",new uW(a.Gh(),a.Ni(),b));y(c,function(e){e.reject(b)});b.response&&b.response.getResponseHeader&&(a=b.response.getResponseHeader().Va(),(c=$ia.get(a))&&vW(this,c,"Collection apiary operation failed with response code "+a+" triggering endcause "+c));return b};
h.yl=function(a){var c=!1;y(a,function(b){var d=this.T[b.toString()];d&&1<=d.length?(d.shift(),c=c||1<=d.length):Of(this.R,"A writing request with resource id "+b+" completed but it is not in the request queue.")},this);c&&this.C()};h.Em=function(a){"ia"!=this.state&&"ha"!=this.state||this.Lj(a)};
h.Lj=function(a){var c=this.Ql(a);C(this.R,"Received push notification, version: "+c+", checking if any updates apply to this collection "+this.toString());var b=dja(this,a);a=eja(this,a);b.length||a.length?(C(this.R,"Notification applies to this collection: version: "+c+", add/modify: "+b.length+", remove:"+a.length),this.g.j(b),c=new dW(c,b,a,"ea"),Pf(this.R,"Created partial update for notification: "+c),Nf(this.R,Ff,"Add/modify: ["+c.f.join("|")+"], remove: ["+c.g.join("|")+"]"),pW(this,"j"),this.Mj(c)):
C(this.R,"Notification does not apply to this collection, ignoring.")};h.Ql=function(){return-2};
var dja=function(a,c){var b=[];y(c.notification.gb(),function(d){var e=this.g;d=d instanceof e.b?d:new e.b(JSON.parse(d.Ba()));$V(this.g,d)?tW(this,sW(this,d))&&b.push(d):pW(this,"D","Pushed modified: "+d.Ba())},a);return b},eja=function(a,c){if(!c.notification.Db)return[];var b=[];y(c.notification.Db(),function(d){var e=this.g.w(d);$V(this.g,e)?(d=sW(this,e),tW(this,d)&&b.push(d)):pW(this,"D","Pushed deleted: "+d.Ba())},a);return b};
cW.prototype.Mj=function(a){Pf(this.R,"Begin processing update: "+a);a instanceof dW&&(Pf(this.R,"Applying partial update: "+a),wW(this,a));Pf(this.R,"Finish processing update: "+a+": "+this.ad())};cW.prototype.ad=function(){return"state: "+this.state+", local version: "+this.f+", snapshot size: "+this.qb};
var wW=function(a,c){Pf(a.R,"Processing partial update: "+c);Nf(a.R,Ff,"Add/modify: ["+c.f.join("|")+"], remove: ["+c.g.join("|")+"]");y(c.f,function(d){$V(this.g,d)?this.data[hW(this,d)]=zl(d):pW(this,"D","Partial update: "+d.Ba())},a);var b=[];y(c.g,function(d){var e=hW(this,d);this.data[e]?delete this.data[e]:b.push(d)},a);0<b.length&&pW(a,"E","Resources not found: "+Hv(b));xW(a)},xW=function(a){var c={},b={};yc(a.data,function(g,k){this.tb(g)&&(c[k]=g,b[k]=g)},a);var d=[],e=[];yc(a.Sa,function(g,
k){var m=c[k];m?(delete b[k],g==m||g&&m&&g instanceof m.constructor&&xl(g.Kc(),m.Kc())||e.push(m)):d.push(g)});var f=Fc(b);a.Sa=c;a.Wa=Fc(c);a.qb=Bc(a.data);if(0<e.length||0<f.length||0<d.length)C(a.R,"Obtained update of the filtered view : modified: "+e.length+", added: "+f.length+", removed:"+d.length),Nf(a.R,Ff,"Modified: ["+e.join("|")+"], added: ["+f.join("|")+"], removed: ["+d.join("|")+"]"),a.N(new yW(e,f,d))},fja=function(a,c){a.tb=c;xW(a)},pW=function(a,c,b){null!=a.Ab&&a.Ab.b(c,b)};
cW.prototype.Ma=function(a){return null==a||a instanceof rW?a:sW(this,a)};var hW=function(a,c){var b;Ua(c)?b=c:b=c instanceof rW?YV(a.g,c.b):YV(a.g,c);return Hv(b)},zW=function(a){this.b=a;this.id=++aja},dW=function(a,c,b,d){zW.call(this,a);this.h=d;this.f=c;this.g=b};x(dW,zW);dW.prototype.toString=function(){return"[Partial update id: "+this.id+", version: "+this.b+", add/modify: "+this.f.length+", remove: "+this.g.length+", type: "+this.h+"]"};
var vW=function(a,c,b){"ka"!=a.state&&(a.Da(),a.state="ka",Of(a.R,"Collection failed: "+a.toString()+": "+a.ad(),Error(b)),a.N(new AW(c,b)))},cja=function(a,c,b,d){this.type=a;this.resource=c;this.ub=b||dv();this.f=d||null;this.b=!1};cW.prototype.da=function(a){return a.b};var rW=function(a,c){this.f=a;this.b=c};rW.prototype.equals=function(a){return bW(this.f,this.b,a.b)};rW.prototype.toString=function(){return this.b.Ba()};
var yW=function(a,c,b){X.call(this,"Za");this.Lb=c;this.Eb=a;this.removed=b};x(yW,X);var AW=function(a,c){X.call(this,"ab");this.b=a;this.reason=c};x(AW,X);var uW=function(a,c,b){rf(b);this.request=c;this.Yd=b};x(uW,Error);var BW=function(a,c,b){var d=a.f;WH.call(this,d.ba(),d.getId(),c,b);this.f=a};q(BW,WH);var EW=function(a,c,b){BW.call(this,a,b,"a");var d=this;this.m=c;this.j=new My;this.b(this.j);this.j.listen(this.f,"T",function(){var e=CW(d.f,d.m);null!=e&&d.N(new DW(d.m,e))})};q(EW,BW);var DW=function(a,c){X.call(this,"db");this.sessionId=a;this.stream=c};q(DW,X);var gja=function(){var a=ze();return null!=a.mediaDevices&&null!=a.mediaDevices.enumerateDevices?Xu(a.mediaDevices.enumerateDevices()):Xu([])},hja=function(a){var c=ze();return c.mediaDevices&&c.mediaDevices.getUserMedia?Xu(c.mediaDevices.getUserMedia(a)):c.webkitGetUserMedia?new Tu(function(b,d){c.webkitGetUserMedia(a,b,d)}):Yu("Missing getUserMedia API.")};var FW=function(a){this.deviceId=a.w;this.g=a.j;this.groupId=a.h;this.h=a.m};FW.prototype.equals=function(a){return a===this?!0:a&&this.deviceId===a.deviceId?Ye?!0:"default"===this.deviceId||"communications"===this.deviceId?this.g===a.g&&this.groupId===a.groupId:!0:!1};FW.prototype.toString=function(){return"MediaSettings(deviceId="+this.deviceId+",deviceLabel="+this.g+",groupId="+this.groupId+")"};
FW.prototype.j=function(a){return void 0===a||a?{deviceId:{exact:this.deviceId}}:{mandatory:{sourceId:this.deviceId},optional:[]}};var GW=function(a){this.w=a?a.deviceId:null;this.j=a?a.g:null;this.h=a?a.groupId:null;this.m=a?a.h:null};GW.prototype.aa=function(){return new FW(this)};GW.prototype.g=function(a){this.h=a;return this};var HW=["",""];HW.raw=HW.slice();var IW=["",""];IW.raw=IW.slice();var JW=["",""];JW.raw=JW.slice();var KW=["",""];KW.raw=KW.slice();var LW=function(a){this.b=new tE(a)};LW.prototype.error=function(a){this.b.b(KW,a)};LW.prototype.G=function(a){this.b.G(JW,a)};LW.prototype.info=function(a){this.b.info(IW,a)};var MW=function(a,c,b){SH.call(this,c);this.ha=new LW("realtime.media.api.webrtc.Capture");this.ya=a;this.ab=QB(a,ED).then();this.h=b;this.s=this.j=this.J=this.da=null;this.kb=ija;this.o=new Set;this.T=new Map;this.F=this.W=!1;this.pa=null;this.Aa=this.Sa=!1;this.Wa=0;this.qa=this.Da=this.Ca=this.H=null;this.ua=!1};q(MW,SH);MW.prototype.ia=function(){this.stop();NW(this,null);this.o.clear();this.pa=null;SH.prototype.ia.call(this)};
MW.prototype.toString=function(){return"Capture(source="+this.f+" muted="+this.W+" "+("paused="+this.F+" deviceState="+this.g+" ")+("stream="+(this.j?this.j.id:null)+")")};MW.prototype.O=function(a){a&&(OW(this,"Stopping stream with id="+a.id),[].concat(n(a.getAudioTracks()),n(a.getVideoTracks())).forEach(function(c){zu(c);c.stop()}))};var PW=function(a){OW(a,"Starting media.");a.C("re");a.m().then(sc(a))};
MW.prototype.C=function(a){var c=this.isMuted();SH.prototype.C.call(this,a);"nd"===a&&NW(this,null);this.isMuted()!==c&&(QW(this),this.isMuted()?NW(this,null):this.m())};MW.prototype.getDeviceId=function(){return this.h.deviceId};MW.prototype.Ia=function(){return this.pa};MW.prototype.setConfig=function(a){this.pa=a};var CW=function(a,c){return a.j?a.T.get(c)||null:null};MW.prototype.Ub=function(){return this.j};var jja=function(a,c,b){return new EW(a,c,b)};h=MW.prototype;
h.qm=function(a){OW(this,"Registering sessionId="+a+".");0===this.o.size&&this.resume();if(this.o.has(a))throw Error("Called registerSession() twice with the same sessionId='"+a+"'");this.o.add(a);this.j&&this.T.set(a,this.j.clone())};h.nk=function(a){OW(this,"Unregistering sessionId="+a+".");this.o.delete(a);this.O(CW(this,a));this.T.delete(a);0>=this.o.size&&this.pause()};h.stop=function(){if("st"===this.g)return!1;OW(this,"Stopping.");NW(this,null);this.o.clear();this.C("st");return!0};
h.mute=function(){if("st"==this.g)return!1;RW(this,!0);return!0};h.isMuted=function(){switch(this.g){case "nd":case "ad":case "fa":return!0;default:return this.W}};var RW=function(a,c){OW(a,"Setting mute state to mute="+c+".");var b=a.isMuted();a.W=c;b!=c&&(c?NW(a,null):a.m(),QW(a),a.N("R"))};MW.prototype.pause=function(){this.F||"st"==this.g||(OW(this,"Pausing."),this.F=!0,NW(this,null))};MW.prototype.resume=function(){this.F&&"st"!=this.g&&(OW(this,"Resuming."),this.F=!1,this.m())};
var QW=function(a){var c=a.f.getState(),b=a.isMuted()?"mu":"li";c!==b&&(OW(a,"Update source state from "+c+" to "+b),a.f.lb(b))};
MW.prototype.m=function(a,c){var b=this;a=void 0===a?!0:a;c=void 0===c?!1:c;if(this.J)return hv(this.J,Qa).then(function(){return b.m(a,c)});var d=this.g;"fa"!=this.g&&"ad"!=this.g||this.C("re");if("re"!=this.g)return OW(this,"Skipping update usermedia while device in "+("state="+this.g+".")),Xu();if(this.F)return OW(this,"Skipping update usermedia because capture is paused."),Xu();if("re"==d&&this.W)return OW(this,"Skipping update usermedia because capture is muted."),Xu();if(this.j&&this.da&&this.da.equals(this.h))return OW(this,
"Skipping update usermedia because settings were unchanged."),Xu();if(this.h.h)return this.h.h==this.s?Xu():SW(this,this.h.h);d=kja(this);if(!d)return this.ha.error("["+this+"] Attempting to update usermedia with null constraints."),Yu("Attempting to update usermedia with null constraints.");if(Jc(d))return OW(this,"Skipping update usermedia with empty constraints."),Xu();var e=this.h;c&&NW(this,null);this.da=e;var f=this.Wa++;OW(this,"Attempting update usermedia with id="+f+" settings="+this.h+("constraints="+
Ha.JSON.stringify(d)+"."));var g=this.f.Ya;"a"==g?this.V(4799):"v"==g&&this.V(4796);this.J=hja(d).then(function(k){b.qa=null;b.ua=!1;"a"==g?b.V(4800):"v"==g&&b.V(4797);TW(b);b.F||!b.h.equals(e)?(OW(b,"During update usermedia with id="+f+" capture settings "+("changed to "+b.h+".")),b.O(k)):b.W?(OW(b,"During update usermedia with id="+f+" capture was muted."),b.O(k)):(OW(b,"Update usermedia success with id="+f+"."),SW(b,k))},function(k){UW(b,"Error during update usermedia call with id="+f+": "+k+".");
k&&(b.qa=k,lja(b,g,k.name));Wga(k)?(TW(b),b.ua=!0,"a"==g?b.V(5802):"v"==g&&b.V(5803),b.C("ad")):Uga(k)?(TW(b),b.C("ad")):Vga(k)&&a?null!==b.H?UW(b,"Ignore getUserMedia failure with id="+f+" as we are still in the failure delay period."):(UW(b,"Delaying transitioning capture to failure after "+("unexpected getUserMedia failure with id="+f+".")),b.da=null,b.H=setTimeout(function(){b.H=null;UW(b,"getUserMedia still has not succeeded after delay. About to make one final explicit attempt.");b.V(4578);
b.m(!1,c)},2E3)):b.C("fa");throw k;});gv(this.J,function(){b.J=null});return this.J};
var TW=function(a){null!==a.H&&(clearTimeout(a.H),a.H=null,OW(a,"Cancelling pending failure timer since getUserMedia eventually succeeded after delay."))},kja=function(a){if(null==a.getDeviceId()||a.getDeviceId()===Tca.id)return OW(a,"Return empty user media constraints with null deviceId."),{};var c={audio:!1,video:!1},b=a.f.Ya;switch(b){case "a":c.audio=a.h.j(!bf);break;case "v":c.video=a.h.j();break;default:return a.ha.error("["+a+"] "+("Invalid mediaType="+b+".")),null}return c},SW=function(a,
c){OW(a,"getUserMedia success for stream="+c.id+".");u();if(0==c.getAudioTracks().length&&0==c.getVideoTracks().length)return UW(a,"No media tracks for stream="+c.id+"."),Xu();NW(a,null);[].concat(n(c.getAudioTracks()),n(c.getVideoTracks())).forEach(function(b){ru(b,"ended",a.bb,void 0,a);ru(b,["mute","unmute"],a.Ma,void 0,a)});mja(a);NW(a,c);a.Ma();nja(a,c);oja(a,c);return Xu()};MW.prototype.bb=function(){this.N("O")};var mja=function(a){!1!==a.Sa&&(a.Sa=!1,a.N("P"))};
MW.prototype.Ma=function(){var a=pja(this);a!==this.Aa&&(this.Aa=a,this.N("Q"))};
var pja=function(a){if(!a.s)return!1;a=[].concat(n(a.s.getAudioTracks()),n(a.s.getVideoTracks()));return 0!=a.length&&a.every(function(c){return c.muted})},OW=function(a,c){a.ha.info("["+a+"] "+c)},UW=function(a,c){a.ha.G("["+a+"] "+c)},NW=function(a,c){c!=a.s&&(qja(a,a.kb.transform(c)),a.s&&a.O(a.s),a.s=c)},qja=function(a,c){c!==a.j&&(a.T.forEach(a.O,a),a.T.clear(),a.O(a.j),c&&a.o.forEach(function(b){a.T.set(b,c.clone())}),OW(a,"Stream changed with new stream="+(c&&c.id)+"."),a.j=c,a.N("T"))};
MW.prototype.V=function(a){this.ab.then(function(c){c.V(a)})};
var nja=function(a,c){c=c.getAudioTracks().map(function(b){return b.getSettings().echoCancellation}).filter(function(b){return"boolean"===typeof b});0!==c.length&&(c=c.some(function(b){return!b}),c!==a.Ca&&(a.Ca=c,a.V(c?4705:4706),OW(a,"echoCancellation="+!c)))},oja=function(a,c){c=c.getAudioTracks();if(0!==c.length){var b=c.map(function(e){return e.getSettings().echoCancellationType}).filter(function(e){return e});if(0===b.length)a.V(5286),OW(a,"echoCancellationType=none (unknown)");else{c=bf&&Pp(74)?
new Map([["browser",5289],["system",5288]]):new Map([["browser",5287],["aec3",5289],["system",5288]]);var d=Array.from(c.keys());b=b.sort(function(e,f){return d.indexOf(f)-d.indexOf(e)})[0];a.Da!=b&&(a.Da=b,a.V(c.get(b)||5286),OW(a,"echoCancellationType="+b))}}},lja=function(a,c,b){"a"==c?(a.V(4801),VW.has(b)?a.V(VW.get(b).audio):a.V(4471)):"v"==c&&(a.V(4798),VW.has(b)?a.V(VW.get(b).video):a.V(4943))},VW=new Map([["AbortError",{audio:4460,video:4936}],["NotAllowedError",{audio:4461,video:4937}],["NotFoundError",
{audio:4462,video:4938}],["NotReadableError",{audio:4463,video:4939}],["OverconstrainedError",{audio:4464,video:4940}],["SecurityError",{audio:4465,video:4941}],["TypeError",{audio:4466,video:4942}],["PermissionDeniedError",{audio:4475,video:4944}],["InvalidStateError",{audio:4476,video:4945}],["DevicesNotFoundError",{audio:4477,video:4946}],["ConstraintNotSatisfiedError",{audio:4478,video:4947}],["TrackStartError",{audio:4479,video:4948}],["MediaDeviceFailedDueToShutdown",{audio:4480,video:4949}],
["MediaDeviceKillSwitchOn",{audio:4481,video:4950}]]),ija={transform:function(a){return a&&a.clone()}};var WW=function(a){FW.call(this,a);this.f=a.f;this.b=a.b};q(WW,FW);WW.prototype.equals=function(a){return FW.prototype.equals.call(this,a)&&a instanceof WW?this.f.equals(a.f)&&this.b.equals(a.b):!1};WW.prototype.toString=function(){return"VideoSettings(base="+FW.prototype.toString.call(this)+", "+("minVideoShape="+this.f+", ")+("maxVideoShape="+this.b+")")};
WW.prototype.j=function(){var a=FW.prototype.j.call(this);a.advanced=[{frameRate:{min:this.f.frameRate}},{height:{min:this.f.height}},{width:{min:this.f.width}},{frameRate:{max:this.b.frameRate}},{width:{max:this.b.width}},{height:{max:this.b.height}},{aspectRatio:{exact:16/9}}];return a};var XW=function(a){GW.call(this,a);this.f=a?a.f:null;this.b=a?a.b:null};q(XW,GW);XW.prototype.aa=function(){return new WW(this)};var rja={Cx:0,jv:1,iv:2,gy:3,Kz:4,Jz:5,Iz:6,SUCCESS:7};var YW=function(a){this.j=a.j;this.D=a.D;this.o=a.o;this.w=a.w;this.m=a.m;this.F=a.L;this.s=a.s;this.C=a.F;this.L=a.H;this.f=a.f;this.h=a.h;this.b=a.b;this.g=a.g;this.H=a.C};
YW.prototype.toString=function(){return"AudioConfig(deviceId="+this.b+", "+("updateDeviceId="+this.h+", ")+("useAecDelayCorrection="+this.j+", ")+("useInternalAgc="+this.D+", ")+("useDucking="+this.o+", ")+("useAec="+this.w+", ")+("useAgc="+this.m+", ")+("useNoiseSuppression="+this.F+", ")+("useHighpassFilter="+this.s+", ")+("useMirroring="+this.C+", ")+("useTransisentSuppression="+this.L+", ")+("disableWhitelistAec="+this.f+")")+("treatAsScreencast="+this.g+")")};
YW.prototype.equals=function(a){return this===a?!0:null===a?!1:this.j===a.j&&this.D===a.D&&this.o===a.o&&this.w===a.w&&this.m===a.m&&this.F===a.F&&this.s===a.s&&this.C===a.C&&this.L===a.L&&this.f===a.f&&this.h===a.h&&this.b===a.b&&this.g===a.g&&this.H==a.H};YW.prototype.getDeviceId=function(){return this.b};var ZW=function(){this.g=!1;this.D=this.j=!0;this.o=!1;this.h=this.f=this.H=this.F=this.s=this.L=this.m=this.w=!0;this.C=this.b=null};ZW.prototype.aa=function(){return new YW(this)};(new ZW).aa();var $W=function(a){this.h=a.h;this.f=a.f;this.b=a.b;this.g=a.g};$W.prototype.toString=function(){return"VideoConfig(deviceId="+this.f+", "+("updateDeviceId="+this.h+", ")+("croppable="+this.b+", ")+("treatAsScreencast="+this.g+")")};$W.prototype.getDeviceId=function(){return this.f};$W.prototype.be=function(){return this.b};var aX=function(){this.g=!1;this.h=!0;this.f=null;this.b=!0};aX.prototype.aa=function(){return new $W(this)};(new aX).aa();var sja=new Rf(320,180),tja=new Rf(640,360),bX=new Rf(1280,720),cX=function(a){return!!a&&a.width*a.height>=bX.width*bX.height};var dX=function(a){Y.call(this);this.g=a||!1;this.f=[]};x(dX,cF);dX.prototype.add=function(a,c){if(null!=eX(this,a.Ya,a.getId(),a.ba()))return!1;this.f.push(a);if(!Ia(c)||c)a.D=this;this.N(new fX("hb",a));return!0};dX.prototype.remove=function(a){return ac(this.f,a)?(a.D==this&&(a.D=null),this.N(new fX("ib",a)),!0):!1};
var eX=function(a,c,b,d){return Sb(a.f,function(e){var f=e.Ya==c,g=null==b||e.getId()==b,k=null==d||this.g&&""===d||e.ba()==d;!k&&this.g&&""==e.ba()&&(Hb("Should never allow Source matching against empty participantId"),k=!0);return f&&g&&k},a)},fX=function(a,c){X.call(this,a);this.source=c};x(fX,X);var gX=function(){Y.call(this)};x(gX,cF);var hX=function(a,c){X.call(this,a);this.b=c};x(hX,X);hX.prototype.ba=function(){return this.b};var iX=function(){Y.call(this);this.f=new My(this);this.b(this.f)};q(iX,cF);var jX=function(){this.b=[];this.f=[]};jX.prototype.enqueue=function(a){this.f.push(a)};var kX=function(a){Vb(a.b)&&(a.b=a.f,a.b.reverse(),a.f=[]);return a.b.pop()};h=jX.prototype;h.sa=function(){return this.b.length+this.f.length};h.Nb=function(){return Vb(this.b)&&Vb(this.f)};h.clear=function(){this.b=[];this.f=[]};h.contains=function(a){return Ub(this.b,a)||Ub(this.f,a)};h.remove=function(a){var c=this.b;var b=Kb(c,a);0<=b?($b(c,b),c=!0):c=!1;return c||ac(this.f,a)};
h.na=function(){for(var a=[],c=this.b.length-1;0<=c;--c)a.push(this.b[c]);var b=this.f.length;for(c=0;c<b;++c)a.push(this.f[c]);return a};var lX=function(){this.b=[]},mX=function(a,c){return vf(a.b.map(function(b){return uja(b,c)}))},uja=function(a,c){c=void 0===c?function(b){return new b}:c;return a.Vd?c(a.Vd):a.IA},nX=function(){lX.apply(this,arguments)};q(nX,lX);var oX=function(a,c,b){vja(a,{Vd:c,priority:b})},vja=function(a,c){var b=c.priority,d=~ic(a.b,function(e){return e.priority<b?-1:1});a.b.splice(d,0,c)};var pX=function(a){this.api=a;this.ya=a.ya;this.j=Xu(QB(this.ya,ED))},wja=function(a){return mX(qX,function(c){return new c(a)})};h=pX.prototype;h.V=function(a,c){this.j.then(function(b){b.V(a,{Zc:c})})};h.initialize=function(){return null};h.sj=function(){return null};h.mm=function(){return null};h.lm=function(){return null};h.jm=function(){return null};h.km=function(){return null};var qX=new nX;var rX=function(a,c){a=l(a);for(var b=a.next();!b.done;b=a.next())if(b=c(b.value),null!=b)return b};var sX=function(a){Y.call(this);var c=this;this.ya=a;this.f=null;this.j=QB(a,lT,!0).then(function(b){return c.f=b});this.m=0;this.o=dv();bv([this.j,this.o.Y]);this.h=null;this.g=wja(this)};q(sX,cF);var xja=function(a){PB(a,GD)||YB(a,GD,function(c){return new sX(c)})};
sX.prototype.initialize=function(a){var c=this;null==this.h&&(this.h=bv([rX(this.g,function(b){return b.initialize(a||{})})||7,this.j]).then(function(b){return b[0]}),this.h.then(function(b){b!=c.m&&r(b)&&Ic(rja,b)&&(c.m=b,c.N("Jb"))},function(){return c.h=null}));return this.h};
var yja=function(a){return rX(a.g,function(c){return c.mm()})||null},zja=function(a,c,b,d){return rX(a.g,function(e){return e.lm(c,b,d)})},Aja=function(a,c,b,d){return rX(a.g,function(e){return e.jm(c,b,d)})},tX=function(a,c){return rX(a.g,function(b){return b.km(c)})};var Bja=function(){this.b=new Set},Cja=function(a,c){a.b.add(c)},Dja=function(a,c){a.b.forEach(function(b){return b(c)})};var uX=function(){this.b=0;this.f=dv();this.g=null};uX.prototype.then=function(a,c,b){return this.f.Y.then(a,c,b)};var Eja=function(a,c){return gv(a.f.Y,c,void 0)};uX.prototype.get=function(){return this.g};Pu(uX);var vX=function(){this.b=new uX};vX.prototype.resolve=function(a){var c=this;0==this.b.b&&(this.b.f.resolve(a),Qu(a)?(a.then(function(b){return wX(c,b)},function(){return wX(c,null)}),this.b.b=1):wX(this,a))};var wX=function(a,c){a.b.b=2;a.b.g=c};
vX.prototype.reject=function(a){0==this.b.b&&(this.b.b=2,this.b.f.reject(a))};var xX=function(){Y.call(this)};x(xX,gX);var yX=function(){cF.apply(this,arguments)};q(yX,cF);var zX=function(a){X.call(this,"Kb");this.b=a.slice()};q(zX,X);var BX=function(){var a=this;W.call(this);this.g=[];this.f=new AX(function(c){return Fja(a,c)});this.b(this.f)};x(BX,W);var Fja=function(a,c){y(a.g,function(b){c=b.filter(c)});return c},AX=function(a){yX.call(this);this.j=a;this.g=[];this.f=!1};q(AX,yX);var CX=function(a,c){a.g=z(c);a.f||(a.f=!0,Nu(a.h,a))};AX.prototype.h=function(){this.f=!1;this.N(new zX(this.j(this.g)))};var DX=function(a,c){this.g=a;this.f=null;this.h=c;this.h.then(function(b){this.f=b},null,this);this.b={}},EX=function(a,c,b){null==a.b[c]&&(null!=b?0<b&&(a.b[c]=b):(b=u(),0<b&&(a.b[c]=b)))},FX=function(a){var c=[];y(Gc(a.b),function(d){d=Number(d);var e=new aK;S(e,1,d);S(e,2,this.b[d]);c.push(e)},a);var b=new cK;rl(b,2,c);a.g&&eK(b,a.g.b);a.f?wO(a.f,b):a.h.then(function(d){wO(d,b)},void 0,a);return b.Ba()};var GX=function(a,c,b,d,e,f,g){Y.call(this);this.l=Mf("realtime.media.apiary.Client");this.f=a;this.C=c;this.h=b;this.j=Ia(f)?f:8;this.o=e||se();this.s=bP(d,!!g);this.g=37;"hangout_lite"==b&&(this.g=55)};x(GX,cF);
var Gja=function(a,c){var b=new rU;b.setRequestHeader(HX(a));b.za(c);return IX(a,"media_sessions/query",b).then(function(d){if(null==(d&&d.Fh()))throw new JX("successful session query has no response",3);return d},function(d){if("fatal"===d.status&&"not_found"===d.b||"fatal"===d.status&&"not_found"===d.b)throw new JX("The requested resource was not found.",11);throw d;})},LX=function(a,c,b,d){d=void 0===d?!1:d;c=KX(a,c,b);return hv(IX(a,d?"media_sessions/callperf":"media_sessions/log",c,Jia,void 0),
function(e){B(a.l,"Failed to upload log data: "+e);throw e;})},KX=function(a,c,b){c=zl(c);S(c,9,a.g);S(c,13,a.h);var d=new sV;d.setRequestHeader(HX(a));b&&d.za(b);V(d,3,c);return d},HX=function(a){var c=new ZO;aP(c,new SO);UO(T(c,SO,1),a.j);var b=new QO;S(b,1,a.C);S(b,4,a.o);V(c,2,b);S(c,4,"en");V(c,7,a.s);return c},IX=function(a,c,b,d,e){e=void 0===e?a.F:e;return null==a.f?(d="Failed to "+c+" "+b+": no service",B(a.l,d),Yu(d)):a.f.makeRequest(c,b,e,a.m,void 0,void 0,d).then(function(f){if(null==
f)throw new JX("Got empty response.");if(Ia(f.getResponseHeader)){var g=f.getResponseHeader();if(null!=g){if(g=g.Va(),1!=g)throw new JX("Got bad status in response header.",g);}else throw new JX("Missing response header.");}return f},function(f){B(a.l,"Failed to "+c+" "+b+": "+f);throw f;})},JX=function(a,c){Eb.call(this);this.desc=a;this.status=c||0};x(JX,Eb);var MX=function(){this.l=Mf("realtime.media.apiary.Parser")};MX.prototype.j=function(a){var c=new gR;S(c,1,a.b);S(c,2,a.f);S(c,3,a.width);S(c,4,a.height);return c};MX.prototype.s=function(a){var c=cl(a,1),b=cl(a,2),d=cl(a,3);a=cl(a,4);return null!=c&&null!=b&&null!=d&&null!=a?new FF(c,b,d,a):null};
var Jja=function(a,c,b,d,e,f){var g=!1,k=null;g=void 0===g?!1:g;k=void 0===k?null:k;var m=new KI;null!=c.g&&m.za(c.g);S(m,7,e?2:1);e=[];null!=b&&(TI(m,[b]),null!=d&&(e=d));e=e.concat(z(c.ta.j));b=c.oa;null!=b&&(e=e.concat(z(b.j)));b=[];d=Hja([c.ta,c.oa,c.Ta]);a=Ija(a,d,e,c.b,z(c.f));a.vb(4);b.push(a);SI(m,b);c=Nb(GG(c),function(p){var v=new II,A=p.getChannelId();S(v,1,A);S(v,2,p.h);A=p.Ad();S(v,4,A);switch(A){case "collections":S(v,5,1);break;case "msodc":S(v,5,2)}p=p.b;null!=p&&S(v,3,p);return v});
rl(m,5,c);null!=f&&S(m,13,f);g&&S(m,15,2);null!=k&&V(m,17,k);return m},PX=function(a,c,b){var d=null,e=null,f=null,g=null,k=[],m=Ia(b)?b:!0;b=c.h();var p=U(c,GI,4);if(0<p.length){p=p[0];f=Kja(a,p);d=vG(NX(f,"a"),O(c,10));O(c,12)&&0!==O(c,12)&&(d=ifa(d,O(c,12)));e=NX(f,"v");f=NX(f,"d");var v=T(p,CI,2);v&&(g=Lja(a,v,m));(m=U(p,sI,4))&&(k=OX(a,m,a.Xr,a)||[])}a=Nb(U(c,II,5),function(A){return new qF(A.getChannelId(),O(A,2),O(A,3),A.Ad())},a);return new DG(d,e,f,null==b?void 0:b,a,g,k)},NX=function(a,
c){var b=Mb(hG(a),function(f){return f.la()==c}),d="d"==c?a.f:null;if(0==b.length&&null==d)return null;var e=Mb(z(a.b),function(f){return f.la()==c});a=Mb(z(a.j),function(f){return f.la()==c});return oG(sG(new gG(c,b,e),a),d)},Ija=function(a,c,b,d,e){var f=new GI;f.vb(QX(a,c.g)||void 0);var g=Nb(hG(c),a.Np,a);rl(f,3,g);e=Nb(e,a.pl,a);rl(f,4,e);e=Nb(z(c.b),a.Op,a);rl(f,5,e);if(null!=d){e=new CI;a:{g=d.Hb();switch(g){case "GICE":g=1;break a;case "ICE":g=2;break a}B(a.l,"Unknown ICE version: "+g);g=
void 0}S(e,1,g);S(e,4,d.g);S(e,5,d.f);g=Nb(z(d.h),a.f,a);rl(e,6,g);var k=d.b;k&&(g=new DI,k=k.split(" "),S(g,1,k[0]),S(g,2,k[1]),V(e,2,g));switch(d.j){case "actpass":var m=3;break;case "passive":m=2;break;case "active":m=1}m&&S(e,7,m);V(f,2,e)}c.f&&(d=c.f.getName(),S(f,8,d));if(c=c.h)d=new iI,-1!=c.f&&S(d,1,c.f),-1!=c.b&&S(d,2,c.b),-1!==c.g&&S(d,3,c.g),V(f,7,d);a=Nb(b,a.g,a);rl(f,6,a);return f};
MX.prototype.g=function(a){var c=new uI;S(c,2,a.g);var b=new kI;S(b,1,a.b&&a.b.height);S(b,2,a.b&&a.b.width);S(b,3,a.f);V(c,3,b);b=new wI;V(b,2,c);b.vb(QX(this,a.la())||void 0);return b};
var Hja=function(a){for(var c=[],b=[],d=[],e=null,f=null,g=0;g<a.length;g++)null!=a[g]&&(c=c.concat(hG(a[g])),b=b.concat(z(a[g].b)),d=d.concat(z(a[g].j)),!e&&a[g].f&&(e=a[g].f),!f&&a[g].h&&(f=a[g].h));return oG(tG(sG(pG(nG(a[0],c),b),d),f),e)},Kja=function(a,c){var b=RX(a,c.la());if(null==b)return null;var d=OX(a,U(c,oI,3),a.Wr,a)||[],e=OX(a,U(c,yI,5),t(function(g){var k=b||void 0;var m=O(g,2)||"";var p=g.getId();k=RX(this,g.la(),k);null!=m&&null!=p?(g=new uF,g.f=m,g.Ka=p,k&&(g.b=k),m=g.aa()):(B(this.l,
"Missing RTP header extension id or uri: "+g),m=null);return m},a))||[],f=[];y(U(c,wI,6),function(g){var k=RX(this,g.la());null!=k&&(k=$F(new ZF,k),g=SX(k,T(g,uI,2)),f.push(g))},a);a=null;(c=O(c,8))&&(a=xF((new wF).mf(c).Zh(5E3),256).aa());return oG(sG(new gG(b,d,e),f),a)},QX=function(a,c){switch(c){case "a":return 1;case "v":return 2;case "d":return 3}B(a.l,"Unknown media type: "+c)},RX=function(a,c,b){switch(c){case 1:return"a";case 2:return"v";case 3:return"d";case 4:return"a"}if(Ia(b))return b;
B(a.l,"Unknown media type: "+c);return null};h=MX.prototype;h.Np=function(a){var c=new oI;c.vb(QX(this,a.la()));S(c,1,a.Kd);Gfa(c,a.getName());Hfa(c,Nb(Object.entries(a.Jd),function(d){var e=l(d);d=e.next().value;e=e.next().value;var f=new pI;S(f,1,d);S(f,2,e);return f},this));var b=a.Lg;S(c,5,null==b?0:b);S(c,6,a.Rf);S(c,7,a.bf);S(c,9,a.b);return c};
h.Wr=function(a){var c=RX(this,a.la()),b=O(a,1),d=a.getName();if(null==c||null==b||null==d)return B(this.l,"Bad codec: "+a),null;var e=kF(jF(new iF,c),b).mf(d);c=O(a,5);null!=c&&(e.g=c);c=O(a,6);null!=c&&lF(e,c);c=O(a,7);null!=c&&mF(e,c);c=dl(a,9);null!=c&&(e.f=c);y(U(a,pI,8),function(f){var g=O(f,1)||"";f=O(f,2)||"";nF(e,g,f)},this);return e.aa()};
h.pl=function(a){a:{var c=a.cf;switch(c){case "AES_CM_128_HMAC_SHA1_32":c=2;break a;case "AES_CM_128_HMAC_SHA1_80":c=1;break a}B(this.l,"Unknown crypto suite: "+c);c=null}if(null==c)return B(this.l,"Unknown crypto suite: "+a.cf),null;var b=new sI;S(b,1,c);S(b,2,a.Og);S(b,3,a.Pg||void 0);S(b,4,a.Sf);return b};
h.Xr=function(a){a:{var c=O(a,1);switch(c){case 2:c="AES_CM_128_HMAC_SHA1_32";break a;case 1:c="AES_CM_128_HMAC_SHA1_80";break a}B(this.l,"Unknown crypto suite: "+c);c=null}if(null==c)return B(this.l,"Unknown crypto suite: "+O(a,1)),null;var b=O(a,2),d=O(a,3),e=O(a,4);if(null==b||null==e)return B(this.l,"Bad crypto: "+a),null;a=new pF;a.g=c;a.b=b;a.h=e;d&&(a.f=d);return a.aa()};h.Op=function(a){var c=new yI;S(c,2,a.ed);var b=a.getId();S(c,1,b);a=a.la();c.vb(a?QX(this,a):void 0);return c};
var Lja=function(a,c,b){a:{var d=O(c,1);switch(d){case 1:d="GICE";break a;case 2:d="ICE";break a}B(a.l,"Unknown ICE version: "+d);d=null}if(null==d)return null;b=b&&"ICE"===d?"lite":"full";var e=O(c,4)||"",f=O(c,5)||"";a=Mja(a,U(c,AI,6));var g=T(c,DI,2),k;g&&(k=O(g,1)+" "+O(g,2));k=new AG(d,e,f,k,a,b);switch(O(c,7)){case 1:k=CG(k,"active");break;case 2:k=CG(k,"passive");break;case 3:Hb("Received unexpected ACTPASS dtls role.")}return k},Mja=function(a,c){return OX(a,c,t(function(b){b:{var d=O(b,1);
switch(d){case 1:d=1;break b;case 2:d=2;break b}B(this.l,"Unknown ICE component: "+d);d=null}var e=O(b,6);null!=e||(e=0);var f=Nja(this,O(b,5)),g=Oja(this,O(b,2)),k=O(b,3),m=b.xb();if(d&&f&&g&&k&&m){var p=e.toString(),v=O(b,7)||"";b=O(b,8)||0;b=new dF(d,e,f,g,k,m,p,b,v)}else B(this.l,"Missing or unknown candidate parmeters: "+b),b=null;return b},a))||[]};
MX.prototype.f=function(a){var c=new AI;a:{var b=a.f;switch(b){case 1:b=1;break a;case 2:b=2;break a}B(this.l,"Unknown ICE component: "+b);b=void 0}S(c,1,b);a:{b=a.g;switch(b){case "UDP":b=1;break a;case "TCP":b=2;break a;case "SSLTCP":b=3;break a}B(this.l,"Unknown candidate protocol: "+b);b=void 0}S(c,2,b);S(c,3,a.j);b=a.xb();S(c,4,b);b=Pja(this,a.b);S(c,5,b);S(c,6,a.w);S(c,7,a.o);S(c,8,a.h);return c};
var Oja=function(a,c){switch(c){case 1:return"UDP";case 2:return"TCP";case 3:return"SSLTCP"}B(a.l,"Unknown candidate protocol: "+c);return null},Pja=function(a,c){switch(c){case "LOCAL":return 1;case "PEER_REFLEX":return 2;case "STUN":return 3;case "RELAY":return 4}B(a.l,"Unknown candidate type: "+c)},Nja=function(a,c){switch(c){case 1:return"LOCAL";case 2:return"PEER_REFLEX";case 3:return"STUN";case 4:return"RELAY"}B(a.l,"Unknown ICE type: "+c);return null},Qja=function(a,c,b,d){var e=new sR;e.Rj(2);
null!=c&&e.za(c);e.ga(b);e.Na(d.ba());e.vb(QX(a,d.la()));c=d.wa();S(e,7,c);e.Sj(d.b);"v"==d.la()&&S(e,11,d.be());c=new vR;b=d.bd();S(c,1,b);e.jf(c);c=new tR;CR(c,d.yb());d.f&&(b=z(d.f.b),S(c,3,b||[]));a=Nb(z(d.h),a.h,a);rl(c,2,a);V(e,8,c);return e},Rja=function(a,c){return OX(a,c,a.m,a)||[]};
MX.prototype.m=function(a){var c=RX(this,a.la());if(null==c)return B(this.l,"Unknown stream media type: "+a),null;var b=a.ba(),d=a.wa(),e=a.Qj();if(null==b||null==d||null==e)return B(this.l,"Missing stream parmeters: "+a),null;var f=T(a,vR,10);f=!(!f||!f.bd());var g=null!=O(a,11)?!!dl(a,11):!0,k=[],m=[],p=[],v=null,A=T(a,tR,8);null!=A&&(k=OX(this,O(A,1),this.b,this)||[],m=OX(this,U(A,uR,2),this.w,this)||[],p=O(A,3),v=O(A,4));A=null;0<p.length&&(A=AF(new zF,p).aa());var G=RF(QF(VF(WF(TF(PF(OF(SF(NF(MF(LF(KF(new JF,
c),b),d),e),v),f),g),k),m),A),e),e);a=T(a,wR,13);(a&&O(a,1)||[]).forEach(function(E){if(E=Sja.get(E))G.f|=E});return G.aa()};MX.prototype.b=function(a){return a>>>0};MX.prototype.h=function(a){var c=new uR;S(c,1,a.b);a=a.yb();S(c,2,a||[]);return c};MX.prototype.w=function(a){var c=OX(this,O(a,2),this.b)||[],b=O(a,1);return null==b?(B(this.l,"Unknown ssrc group semantics: "+a),null):EF(DF(b),c).aa()};
var Tja=function(a,c,b,d,e){var f=new sR;f.Rj(1);f.za(c);f.ga(b);f.Na(d.ba());f.vb(QX(a,d.la()));a=d.wa();S(f,7,a);a=new uI;S(a,2,e);e=d.Tb();null!=e&&(c=new kI,S(c,1,e.height),S(c,2,e.width),S(c,3,d.f),V(a,3,c));V(f,9,a);return f},Uja=function(a,c){return OX(a,c,a.o,a)||[]};
MX.prototype.o=function(a){var c=RX(this,a.la());if(null==c)return B(this.l,"Unknown stream request media type: "+a),null;var b=a.ba(),d=a.wa();if(null==b||null==d)return B(this.l,"Missing stream request parmeters: "+a),null;var e=new ZF;e.h=b;c=bG($F(e,c),d);b=T(a,tR,8);null!=b&&aG(c,OX(this,O(b,1),this.b,this)||[]);return SX(c,T(a,uI,9))};
var SX=function(a,c){if(c&&dl(c,2)){if(dG(a,!0),c=c.Tb()){var b=O(c,3);b&&fG(a,b);b=O(c,2);c=O(c,1);b&&c&&eG(a,new Rf(b,c))}}else dG(a,!1);return a.aa()},OX=function(a,c,b,d){null!=d&&(b=t(b,d));if(null==c||!Ua(c))return null;d=[];for(var e=0;e<c.length;e++){var f=c[e];if(null==f)return B(a.l,"Failed to parse: "+c),null;var g=b(f);if(null==g)return B(a.l,"Failed to parse: "+f),null;d.push(g)}return d},Sja=new Map([[1,1],[2,2],[3,4],[4,8]]);var TX=function(a,c,b){X.call(this,"Lb");this.state=c;this.sessionId=b};x(TX,X);var UX=function(a,c,b,d){if(null==a)return d=Mf("realtime.media.apiary.RpcEventDispatcher"),Of(d,"Failed to report impression on RPC request because thenable is null for rpc "+c+"with sessionId "+b),Yu();a=a.then();d.N(new TX(c,"sa",b));var e=qv(a.cancel,9E4,a),f=!1;hv(a,function(g){f=!0;return g}).then(function(g){rv(e);var k="ta";g instanceof Su?k="va":f&&(k="ua");kd(pe(b))&&(1>g.length||!(g[0]instanceof KI)?b=null:(g=g[0],b=null!=g?g.h():null));this.N(new TX(c,k,b))},null,d);return a};var WX=function(){this.b=mX(VX)},XX=function(a,c){return rX(a.b,function(b){return b.g(c)})},YX=function(a,c,b,d,e){return rX(a.b,function(f){return f.f(c,b,d,e)})},ZX=function(a,c){return rX(a.b,function(b){return b.j(c)})},$X=function(a,c){return rX(a.b,function(b){return b.h(c)})};Ra(WX);var aY=function(){};aY.prototype.g=function(){return null};aY.prototype.f=function(){return null};aY.prototype.j=function(){return null};aY.prototype.h=function(){return null};var VX=new nX;var bY=function(a,c,b){W.call(this);this.D=null!=b?t(a,b):a;this.s=c;this.o=t(this.pq,this);this.g=!1;this.h=0;this.j=this.f=null;this.m=[]};x(bY,W);h=bY.prototype;h.oq=function(a){this.m=arguments;this.g=!1;this.f?this.j=u()+this.s:this.f=qv(this.o,this.s)};h.stop=function(){this.f&&(rv(this.f),this.f=null);this.j=null;this.g=!1;this.m=[]};h.pause=function(){++this.h};h.resume=function(){this.h&&(--this.h,!this.h&&this.g&&(this.g=!1,this.D.apply(null,this.m)))};h.ia=function(){this.stop();bY.Ga.ia.call(this)};
h.pq=function(){this.j?(this.f=qv(this.o,this.j-u()),this.j=null):(this.f=null,this.h?this.g=!0:(this.g=!1,this.D.apply(null,this.m)))};var cY=function(a,c,b,d,e,f,g,k){k=void 0===k?null:k;cW.call(this,a,c,b,d,e,f,g);this.Ib=QB(a,ED,!0).then();this.Fb=k;this.bb=e;this.f=-1;this.s=!1;this.H=null;this.pa=-1;this.h=[];this.Ca=this.ha=this.Ia=this.ua=null;this.F=!1;this.zb=0;this.W=null;this.m=new NL(R(this.config,2,1E3),R(this.config,3,6E4));this.kb=new bY(this.fl,0,this)};x(cY,cW);
cY.prototype.start=function(a){var c=this;cY.Ga.start.call(this,a);if("ia"!=this.state)return null;null==this.H&&(this.H=MV(this.J.m,function(){dY(c,"Aa",!0)},this));eY(this,!0);C(this.R,"Starting initial resync.");return dY(this,"Ba",!0)};cY.prototype.Da=function(){cY.Ga.Da.call(this);null!=this.H&&(Xia(this.J.m,this.H),this.H=null);rv(this.Ca);this.Ca=null;this.m.reset();rv(this.Ia);this.Ia=null;rv(this.ha);this.W=this.ha=null;this.s=!1};
cY.prototype.query=function(a,c){return mW(this,this.bb.Qd(this.da(a)),null,c)};cY.prototype.search=function(a){return mW(this,this.bb.je(zl(this.j)),null,a)};var gY=function(a,c){"Aa"!=c&&0==a.m.f&&UV(a.J);Pf(a.R,"Starting sync. Type: "+c);var b="Ca"==c||"Da"==c,d=a.bb.je(zl(a.j)),e=-2;il(a.config,11,!1)&&(9E4>u()-a.zb&&d.Cj(a.f)?e=a.f:a.zb=u());d=mW(a,d,function(f){eY(a,!1);return e!=f.b?(a.g.j(f.data),new fY(f.b,f.data,c)):null});hv(d.then(t(a.Ur,a,b)),t(a.Tr,a,b));a.ua=d;hv(a.ua,Qa);return d};
h=cY.prototype;h.Lf=function(a){return 0<=a};h.Vg=function(){return null!=dY(this,"Ea",!0)||this.ua?this.ua:Yu("Collection not yet started, so cannot resync.")};h.Lj=function(a){var c=!1,b=a.notification.ob();null!=b&&""!=b&&(c=this.g.w(b),c=sW(this,c),c=tW(this,c));c?this.Vg():cY.Ga.Lj.call(this,a)};h.Ql=function(a){var c;Xa(a.notification.K)&&null!=a.notification.K()&&(c=a.notification.K().Hb());return c};
h.Mj=function(a){Pf(this.R,"Begin processing update: "+a);var c=a.b==this.pa;this.pa=Math.max(this.pa,a.b);eY(this,!1);if(a instanceof fY)Vja(this,a);else{Wja(this,a.f,a.g);if(this.Lf(this.f)&&a.b<=this.f){"ea"==a.h&&pW(this,"l");var b=!1;c&&(pW(this,"m"),b=!0);100<this.f-a.b&&(pW(this,"n"),b=!0);b&&dY(this,"Fa",!0);pW(this,"k");Pf(this.R,"Ignoring update "+a+" below or equal to local version ("+this.f+")");return}c=Sb(this.h,function(d){return d.b<=a.b},this);if(null!=c&&a.b==c.b){pW(this,"k");B(this.R,
"Duplicate update received, ignoring it.");return}Pf(this.R,"Queuing partial update: "+a);Zb(this.h,a,c)}a instanceof fY?this.fl():this.kb.oq();Pf(this.R,"Finish processing update: "+a+": "+this.ad())};
var Wja=function(a,c,b){a.Lf(a.f)||(Pf(a.R,"Dispatch early notification: "),a.N(new hY(c,b)))},dY=function(a,c,b){if(!iW(a)||a.F)return null;a.m.reset();var d=null;a.F=!0;b?d=gY(a,c):iY(a);return d},jY=function(a){a.F&&(C(a.R,"Ending resync"),a.F=!1,a.N("bb"))},iY=function(a){var c=a.m.b;pW(a,"q");C(a.R,"Scheduling resync timer, backoff count: "+a.m.f+", backoff: "+c);a.Ca=qv(a.Rr,c,a)};h=cY.prototype;
h.Rr=function(){C(this.R,"Resync timer triggered, "+this.ad());this.Ca=null;iW(this)?(pW(this,"r"),gY(this,"Fa")):jY(this)};
h.Ur=function(a){C(this.R,(a?"Poll":"Resync")+" operation executed, "+this.ad());kY(this,!1);if(this.s||!iW(this))jY(this);else{a=!1;var c=R(this.config,5,4);this.m.f>=c?(pW(this,"p"),C(this.R,"Hard sync threshold reached ("+c+"), doing a hard resync"),a=!0):this.h.length>R(this.config,4,64)&&(pW(this,"o"),Pf(this.R,"Number of queued updates is larger than the max ("+R(this.config,4,64)+"), clearing the queue"),a=!0);a?(Wb(this.h),this.m.reset(),gY(this,"Ga")):(OL(this.m),iY(this))}};
h.Tr=function(a,c){var b=(a?"Poll":"Resync")+" error: "+c;Of(this.R,b,c instanceof Error?c:Error(b));pW(this,a?"C":"s");kY(this,!0);iW(this)?(OL(this.m),iY(this)):jY(this)};h.ad=function(){return cY.Ga.ad.call(this)+", is synced: "+this.s+", is resyncing: "+this.F+", queue size: "+this.h.length+", highest observed server version: "+this.pa+(0<this.h.length?", smallest queued version: "+Ib(this.h).b+", largest queued version: "+this.h[0].b:"")};
h.fl=function(){this.kb.stop();if(0!=this.h.length&&this.Lf(this.f)){Pf(this.R,"Trying to apply any queued updates, "+this.ad());for(var a=0;0<this.h.length&&Ib(this.h).b<=this.f;){var c=this.h.pop();Pf(this.R,"Tossing queued update "+c+" below or equal to local version ("+this.f+")");a++}0<a&&Pf(this.R,"Tossed "+a+" queued old updates below or equal to local version ("+this.f+")");for(a=0;0<this.h.length;)if(c=Ib(this.h),c.b==this.f)this.h.pop(),a++;else if(c.b==this.f+1)this.f=c.b,wW(this,c),this.h.pop(),
a++;else{Pf(this.R,"Unable to incrementally apply next queued update,  lowest queue update version: "+c.b+", local version:"+this.f+", remaining queue length: "+this.h.length);break}Pf(this.R,"Applied "+a+" queued updates")}(this.s=0==this.h.length&&this.Lf(this.f))?gW(this):dY(this,"Fa",!1)};h.Gm=function(a){iW(this)&&(pW(this,"t"),C(this.R,"Executing poll sync operation"),dY(this,a,!0),eY(this,!0))};
var eY=function(a,c){if(iW(a)){C(a.R,"Scheduling next poll for "+R(a.config,1,3E4)/1E3+" seconds from now");rv(a.Ia);a.Ia=qv(db(a.Gm,"Ca"),R(a.config,1,3E4),a);var b=R(a.config,9,9E4);null!=b||(b=9E4);c&&0<b&&(rv(a.ha),a.ha=qv(db(a.Gm,"Da"),b,a))}},kY=function(a,c){if(c)if(null!=a.W){c=u()-a.W;var b="Sync operations failing for a period of "+c/1E3+" seconds (limit configured to: "+R(a.config,6,3E5)/1E3+" seconds).";B(a.R,b);c>=R(a.config,6,3E5)&&vW(a,22,b)}else a.W=u(),B(a.R,"Sync operation failed, we will continue retrying for up to "+
R(a.config,6,3E5)/1E3+" seconds before shutting down...");else a.W=null},Vja=function(a,c){Pf(a.R,"Processing full update: "+c);Nf(a.R,Ff,"Snapshot: ["+c.data.join("|")+"]");if(a.f>=c.b&&100>a.f-c.b){var b=[];if(a.f==c.b){var d={};y(c.data,function(g){var k=hW(this,g);d[k]=!0;k=this.data[k]||null;if(null==k)b.push({local:null,server:g.Ba(),mismatch:"local_missing"});else{var m=k==g?null:k instanceof g.constructor?lY(JSON.parse(k.Ba()),JSON.parse(g.Ba())):"_";null!=m&&b.push({local:k.Ba(),server:g.Ba(),
mismatch:m})}},a);yc(a.data,function(g,k){d[k]||b.push({local:g.Ba(),server:null,mismatch:"server_missing"})},a)}if(0!=b.length)B(a.R,"Reapplying update with version that's the same, update: "+c.b+", local: "+a.f+", type: "+c.f),a.Ib.then(function(g){g.V(1827,{Zc:a.Fb+":"+b[0].mismatch})});else{pW(a,"y");switch(c.f){case "Fa":pW(a,"z");break;case "Ca":pW(a,"A")}Pf(a.R,"Ignoring update with version not newer than local version, update: "+c.b+", local: "+a.f+", type: "+c.f);return}}a.f>c.b&&100<a.f-
c.b&&pW(a,"n",""+(a.f-c.b));pW(a,"u");switch(c.f){case "Ca":pW(a,"w");break;case "Fa":pW(a,"v");break;case "Ga":pW(a,"x")}var e=Mb(c.data,function(g){if($V(this.g,g))return!0;pW(this,"D","Full update: "+g.Ba());return!1},a),f=[];d={};y(c.data,function(g){d[hW(this,g)]=!0},a);yc(a.data,function(g,k){d[k]||f.push(sW(this,g))},a);Pf(a.R,"Applying full update as partial and advancing version from "+a.f+" to "+c.b);a.f=c.b;wW(a,new dW(c.b,e,f,"ga"))},lY=function(a,c){Ua(a)&&0==a.length&&(a=null);Ua(c)&&
0==c.length&&(c=null);if(a==c)return null;if(!Ua(a)||!Ua(c))return"";for(var b=0;b<Math.max(a.length,c.length);b++){var d=lY(a[b],c[b]);if(null!=d)return b+(""===d?"":"."+d)}return null},fY=function(a,c,b){zW.call(this,a);this.data=c;this.f=b};x(fY,zW);fY.prototype.toString=function(){return"[Full update id: "+this.id+", version: "+this.b+", resource count: "+this.data.length+", sync type: "+this.f+"]"};var hY=function(a,c){X.call(this,"$a");this.Eb=a;this.removed=c};x(hY,X);var mY=function(a,c,b,d,e){W.call(this);this.h=a;this.F=c;this.H=b||this.J;this.C=d||null;this.L=e||null;this.g=-1;this.D=dv();this.f=null;this.j=!1;this.o=0;this.s=this.m=void 0;this.Ka=++Xja};x(mY,W);var Xja=0;mY.prototype.Cj=function(a){this.g=a;nY(this);return!0};mY.prototype.If=function(){return this.D};mY.prototype.Ph=function(){return this.D.Y};mY.prototype.Ih=function(){return this.j};var oY=function(a){null==a.f&&(a.f=a.F(),nY(a));return a.f};h=mY.prototype;h.Qh=function(a){this.o=a};
h.Kg=function(){return this.o};h.Zf=function(a,c){Ia(c)&&(c=Math.max(a,c));this.m=a;this.s=c};h.Qf=function(){return this.m};h.Oh=function(){return this.s};var nY=function(a){if(null!=a.f&&-1!=a.g){var c=a.f;if(Xa(c.M)){var b=new Cl;S(b,1,a.g);c.M(b)}else Xa(c.ea)&&c.ea()}};mY.prototype.Gh=function(){return this.h};mY.prototype.Ni=function(){return oY(this).toString()};mY.prototype.toString=function(){return"[Operation id: "+this.Ka+": "+this.h+", version: "+this.g+"]"};mY.prototype.J=function(){return[]};
var pY=function(){Eb.call(this)};x(pY,Eb);pY.prototype.message="Operation has already been executed.";pY.prototype.name="AlreadyExecutedError";var qY=function(a){this.b=a};x(qY,VV);var rY=function(a){this.b=a};x(rY,qY);h=rY.prototype;h.Od=function(a){return new mY("hangout_participants/add",function(){var c=new fU;rl(c,6,a);return c},function(c){return U(c,tQ,5)})};h.Pd=function(a){return new mY("hangout_participants/modify",function(){var c=new iV;rl(c,4,a);return c},function(c){return U(c,tQ,4)})};h.ie=function(a,c){var b=c&&c.jYdIne||0;return new mY("hangout_participants/remove",function(){var d=new mV;nV(d,a);S(d,5,b);return d})};
h.Qd=function(a){return new mY("hangout_participants/query",function(){var c=new kV;c.ga(a.ma());c.Na(a.ba());return c},function(c){return[T(c,tQ,2)]})};h.je=function(a){return new mY("hangout_participants/search",function(){var c=new hU;c.ga(a.ma());return c},function(c){return U(c,tQ,2)},BU.prototype.h,dV.prototype.h)};var sY=function(a){this.b=a};x(sY,qY);h=sY.prototype;h.Od=function(a){return new mY("hangouts/add",function(){var c=new HT;rl(c,4,a);return c},function(c){return U(c,TQ,5)})};h.Pd=function(a){return new mY("hangouts/modify",function(){var c=new gV;rl(c,4,a);return c},function(c){return U(c,TQ,4)})};h.ie=function(){return null};h.Qd=function(a){return new mY("hangouts/query",function(){var c=new jU;c.ga(a.ma());return c},function(c){return[T(c,TQ,2)]},BU.prototype.s,dV.prototype.s)};h.je=function(a){return this.Qd(a)};var tY=function(a){this.b=a};x(tY,VV);tY.prototype.Od=function(a){return new mY("media_sessions/add",function(){var c=new pU;rl(c,4,a);return c},function(c){return U(c,KI,4)})};tY.prototype.Pd=function(a){return new mY("media_sessions/modify",function(){var c=new uV;rl(c,4,a);return c},function(c){return U(c,KI,4)})};tY.prototype.ie=function(){return null};var uY=function(a){this.b=a};x(uY,qY);h=uY.prototype;h.Od=function(a){return new mY("media_sources/add",function(){var c=new tU;rl(c,4,a);return c},function(c){return U(c,cR,4)})};h.Pd=function(a){return new mY("media_sources/modify",function(){var c=new wV;rl(c,4,a);return c},function(c){return U(c,cR,4)})};h.ie=function(){return null};h.Qd=function(a){return new mY("media_sources/query",function(){var c=new yV;c.ga(a.ma());c.Na(a.ba());var b=a.wa();S(c,4,b);return c},function(c){return[T(c,cR,2)]})};
h.je=function(a){return new mY("media_sources/search",t(function(){var c=new vU;c.ga(a.ma());return c},this),function(c){return U(c,cR,2)},BU.prototype.D,dV.prototype.D)};var vY=function(a){this.b=a};x(vY,qY);h=vY.prototype;h.Od=function(a){return new mY("media_streams/add",function(){var c=new xU;rl(c,4,a);return c},function(c){return U(c,sR,4)})};h.Pd=function(a){return new mY("media_streams/modify",function(){var c=new AV;rl(c,4,a);return c},function(c){return U(c,sR,4)})};
h.ie=function(a){if(!a.length)throw Error("Cannot create MediaStreamRemoveRequest with no stream identifiers.");return new mY("media_streams/remove",function(){var c=new EV;c.za(a[0].Vh());S(c,2,2);Ria(c,Nb(a,function(b){return b.Pj()}));return c})};h.Qd=function(a){return new mY("media_streams/query",function(){var c=new CV;c.ga(a.ma());var b=a.Oj();S(c,2,b);c.za(a.Vh());b=a.Pj();S(c,4,b);return c},function(c){return[c.Ub()]})};
h.je=function(a){return new mY("media_streams/search",t(function(){var c=new zU;c.ga(a.ma());c.za(a.Vh());var b=a.Oj();S(c,2,b);return c},this),function(c){return U(c,sR,2)},BU.prototype.C,dV.prototype.C)};var wY=function(){return new XV(sR,[sR.prototype.ma,sR.prototype.gs,sR.prototype.hs],[sR.prototype.ga,sR.prototype.Rj,sR.prototype.za],[sR.prototype.Qj],[sR.prototype.Sj],DR,[DR.prototype.ma,DR.prototype.Oj,DR.prototype.Vh],[DR.prototype.ga,DR.prototype.ds,DR.prototype.za],[DR.prototype.Pj],[DR.prototype.es],void 0,Yja)},Yja=function(a){return a.map(function(c){if(c=T(c,tR,8))CR(c,xY(O(c,1))),U(c,uR,2).forEach(function(b){var d=xY(O(b,2));S(b,2,d||[])})})},xY=function(a){return a.map(function(c){return c>>>
0})};var zY=function(a,c,b){return yY(a,c,[b],new XV(TQ,[TQ.prototype.ma],[TQ.prototype.ga],[],[],VQ,[VQ.prototype.ma],[VQ.prototype.ga],[],[]),sY,"Ia","Hangout")},Zja=function(a,c,b){return yY(a,c,[b],new XV(cR,[cR.prototype.ma],[cR.prototype.ga],[cR.prototype.ba,cR.prototype.wa],[cR.prototype.Na,cR.prototype.Nj],oR,[oR.prototype.ma],[oR.prototype.ga],[oR.prototype.ba,oR.prototype.wa],[oR.prototype.Na,oR.prototype.cs]),uY,"Ma","MediaSources")},yY=function(a,c,b,d,e,f,g){var k=WX.Ja();e=new e(YX(k,a,c));
f=new WV(ZX(k,c),f);return new cY(a,XX(k,c),b,d,e,f,$X(k,c),g)};var AY=function(){oL(this)},BY=function(a){(a=a.Ef.f())||(a=(new sF).aa());return a},CY=function(){};x(CY,lL);mL(CY,AY);CY.prototype.f=function(a){a=a?a:function(){};a.ql=!0;return a}();var DY=function(){this.b=new Map},$ja=function(a){PB(a,JD)||YB(a,JD,function(){return new DY})};DY.prototype.reset=function(){this.b.clear()};var aka={},EY=function(a,c){X.call(this,"Mb");this.Qa=a;this.data=c};x(EY,X);var FY=function(a){X.call(this,"Nb");this.data=a};x(FY,X);var GY=function(a){X.call(this,"Ob");this.sessionId=a};q(GY,X);var HY=function(a){X.call(this,"Pb");this.nm=a};q(HY,X);var IY=["Latencies for csrc "," reset before reporting"];IY.raw=IY.slice();
var bka=function(a,c){a.j.listen(c,"Pb",function(b){null==a.f&&(a.f=b.nm)})},cka=function(a,c){null!=a.f&&hD(c).forEach(function(b){if(1==rD(b)&&1==sD(b)){var d=[];U(b,TC,136).forEach(function(e){var f=O(e,3),g=O(e,2)||0;null!=f&&null!=O(e,1)&&null!=g&&((a.h.get(f)||[]).forEach(function(k){var m=k.ll-(a.f||0);m>=(O(e,1)||0)&&m<=g&&d.push(k.client-k.ll)}),(!a.g.get(f)||g>a.g.get(f))&&a.g.set(f,g))});S(b,150,d||[])}})},dka=function(a){null!=a.f?a.h.forEach(function(c,b){var d=a.g.get(b);c.filter(function(e){return!d||
e.ll-(a.f||0)>d});100<c.length&&(a.l.info(IY,b),c=[])}):a.h.clear()},JY=new Sy("kmRoq");var KY=function(){W.call(this);this.l=Mf("realtime.media.stats.HighResVideoTracker");this.g={};this.f={}};q(KY,W);var eka=function(a,c){hD(c).forEach(function(b){if(2==rD(b)&&1==sD(b)&&0<nD(b).length){var d=nD(b)[0];S(b,135,a.f[d]||[])}})};var LY=function(){hC.apply(this,arguments)};q(LY,hC);var fka=function(a){return 0<MY(a.sa())&&!a.f.some(function(c){return isNaN(c)})},MY=function(a){return null!=a?a:NaN};var NY=function(a){N(this,a,0,-1,null,null)};x(NY,M);
NY.prototype.u=function(){var a=new D;var c=O(this,1);null!=c&&a.f(1,c);c=O(this,2);null!=c&&a.f(2,c);c=O(this,3);null!=c&&a.f(3,c);c=O(this,4);null!=c&&a.f(4,c);c=O(this,5);null!=c&&a.f(5,c);c=O(this,6);null!=c&&a.f(6,c);c=O(this,7);null!=c&&a.f(7,c);c=O(this,8);null!=c&&a.f(8,c);c=O(this,9);null!=c&&a.f(9,c);c=O(this,10);null!=c&&a.f(10,c);c=O(this,11);null!=c&&a.f(11,c);c=O(this,12);null!=c&&a.f(12,c);c=O(this,13);null!=c&&a.f(13,c);c=O(this,14);null!=c&&I(a,14,c);c=O(this,15);null!=c&&I(a,15,
c);return F(a)};var OY=function(){NY.apply(this,arguments)};q(OY,NY);var gka=function(a){for(var c=[],b=0;b<PY.length;b++){var d=new aK;S(d,1,PY[b]);S(d,2,a.f[b+1]);c.push(d)}a=new cK;rl(a,2,c);return a},PY=[1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311];var QY=function(){SC.call(this);this.h=this.s=this.D=null};q(QY,SC);var RY=function(){this.b=null;this.g=new Map;this.h=new Map;this.f=new Map};RY.prototype.update=function(a){this.b=a;hka(this)};
var hka=function(a){jD(a.b).forEach(function(c){var b=O(c,1),d=O(c,2);c=O(c,3);SY(a,b+"-"+d+"-Va",c)});hD(a.b).forEach(function(c){var b=nD(c)[0];if(b){var d=sD(c);switch(rD(c)){case 1:TY(a,b,d,"Ha",O(c,26));if(1==d){UY(a,b,d,"Oa",cl(c,107));UY(a,b,d,"Pa",cl(c,68));UY(a,b,d,"Qa",O(c,2));UY(a,b,d,"Ra",cl(c,106));UY(a,b,d,"Sa",cl(c,104));UY(a,b,d,"Ta",cl(c,156));UY(a,b,d,"Ua",cl(c,103));var e=cl(c,103);SY(a,b+"-"+d+"-Ua",e);c=O(c,26);SY(a,b+"-"+d+"-Ha",c)}else 0==d&&(c=O(c,6),SY(a,b+"-"+d+"-Va",c));
break;case 2:if(1==d){if(TY(a,b,d,"Ja",O(c,89)),0<(O(c,138)||0)&&(TY(a,b,d,"Ia",O(c,138)),c=c.s))TY(a,b,d,"Ka",(O(c,12)||0)-(O(c,11)||0)),TY(a,b,d,"La",(O(c,4)||0)-(O(c,3)||0)),TY(a,b,d,"Ma",(O(c,12)||0)-(O(c,9)||0)),TY(a,b,d,"Na",(O(c,6)||0)-(O(c,2)||0))}else 0==d&&(c=O(c,6),SY(a,b+"-"+d+"-Va",c))}}})},TY=function(a,c,b,d,e){c=c+"-"+b+"-"+d;b=a.g.get(c);e=null!=e?e:NaN;b||(b=new LY);var f=MY(O(b,3));d=MY(O(b,4));var g=MY(b.sa());if(isNaN(e))d={lj:f,ik:d,n:g};else if(isNaN(f)||isNaN(g)||1>g)d={lj:e,
ik:NaN,n:1};else{g+=1;var k=e-f;f+=k/g;var m=NaN;1<g&&(m=Math.sqrt(((isNaN(d)?0:d*d)*(g-2)+k*(e-f))/(g-1)));d={lj:f,ik:m,n:g}}g=d.lj;k=d.ik;S(b,5,d.n);S(b,3,Math.round(g));S(b,4,Math.round(k));d=MY(O(b,1));g=MY(O(b,2));isNaN(e)?(S(b,1,d),S(b,2,g)):isNaN(d)?(S(b,1,e),S(b,2,e)):(S(b,1,Math.min(e,d)),S(b,2,Math.max(e,g)));a.g.set(c,b)},UY=function(a,c,b,d,e){null!=e&&(c=c+"-"+b+"-"+d,b=a.h.get(c),b||(b=new VY,a.h.set(c,b)),b.update(e))},SY=function(a,c,b){if(null!=b){var d=a.f.get(c);if(!d||20<=d.length)d=
[],a.f.set(c,d);d.push(b)}},ika=function(a){if(!a.b)return null;jD(a.b).forEach(function(){});hD(a.b).forEach(function(c){var b=nD(c)[0],d=sD(c);b&&(WY(a,b,d,"Ha",c,c.C),WY(a,b,d,"Ia",c,c.at),WY(a,b,d,"Ja",c,c.bt),WY(a,b,d,"Ka",c,c.Xs),WY(a,b,d,"La",c,c.Ys),WY(a,b,d,"Ma",c,c.ct),WY(a,b,d,"Na",c,c.gt),XY(a,b,d,"Oa",c,c.Yj),XY(a,b,d,"Pa",c,c.ak),XY(a,b,d,"Qa",c,function(e){S(c,2,Math.round(e))}),XY(a,b,d,"Ra",c,c.ck),XY(a,b,d,"Sa",c,c.ek),XY(a,b,d,"Ta",c,c.fk),XY(a,b,d,"Ua",c,c.gk),YY(a,b,d,"Ua",c,
c.ht),YY(a,b,d,"Ha",c,c.Zs))});return a.b},WY=function(a,c,b,d,e,f){(a=a.g.get(c+"-"+b+"-"+d))&&fka(a)&&f.call(e,a)},XY=function(a,c,b,d,e,f){(a=a.h.get(c+"-"+b+"-"+d))&&!isNaN(a.b)&&f.call(e,a.b)},YY=function(a,c,b,d,e,f){(a=a.f.get(c+"-"+b+"-"+d))&&f.call(e,a)};RY.prototype.reset=function(){this.b=null;this.g.clear();this.h.clear();this.f.clear()};var VY=function(){this.b=NaN;this.f=0};VY.prototype.update=function(a){this.f++;this.b=1===this.f?a:this.b+(a-this.b)/this.f};var $Y=function(){W.call(this);var a=this;this.l=Mf("realtime.media.stats.SpeakerSwitchReportService");this.o=new Map;this.m=new Map;this.s=new Map;this.h=new My;this.b(this.h);this.j=function(c){ZY(a,null,c.target)};this.g=new Map;this.f=0};q($Y,W);
var jka=function(a){PB(a,KD)||YB(a,KD,function(){return new $Y})},kka=function(a,c){var b=new My;a.b(b);b.listen(c,"Ob",function(){}).listen(c,"Pb",function(d){a.f||(a.f=d.nm)})},aZ=function(a,c){var b=c.ba();c=c?c.getInfo().yb():[];b&&0<c.length&&a.s.set(b,c[0])},bZ=function(a,c){"a"==c.getInfo().la()&&(a.h.listen(c,"U",a.j),aZ(a,c))},ZY=function(a,c,b){c&&(Ry(a.h,c,"U",a.j),bZ(a,b));if("a"==b.getInfo().la()&&0<b.getInfo().yb().length){c=b.getInfo().yb()[0];var d=b.getInfo().bd(),e="b"==b.getState();
d||e?(a.m.set(c,u()),a.o.clear()):a.m.delete(c);aZ(a,b)}},lka=function(a,c){if("a"==c.getInfo().la()){Ry(a.h,c,"U",a.j);var b=c.getInfo().yb()[0]||null;b&&(a.m.delete(b),a.o.clear());a.s.delete(c.ba())}},mka=function(a,c){hD(c).forEach(function(b){if(1==rD(b)&&1==sD(b)&&0!=nD(b).length){var d=nD(b)[0],e=[];0!=U(b,TC,136).length&&a.f?U(b,TC,136).forEach(function(f){var g=O(f,3);null!=g&&null!=O(f,1)&&null!=O(f,2)&&(a.g.get(g)||[]).forEach(function(k){var m=k.le-a.f;m>=(O(f,1)||0)&&m<=(O(f,2)||0)&&
e.push(k.Xd-k.le)})}):a.g.has(d)&&a.g.get(d).forEach(function(f){return e.push(f.Xd-f.le)});S(b,142,e||[])}})};var cZ=function(){W.call(this);this.l=Mf("realtime.media.stats.VideoFeedTracker");this.g=new Map;this.f=new Map};q(cZ,W);var nka=function(a,c){hD(c).forEach(function(b){if(2==rD(b)&&0<nD(b).length){var d=nD(b)[0];d=a.f.get(d)||[];S(b,141,d||[])}})};var dZ=["Setting audio options to\n     ","."];dZ.raw=dZ.slice();var eZ=["Received remote stream requests after end."];eZ.raw=eZ.slice();var fZ=["Received remote stream requests before starting."];fZ.raw=fZ.slice();var gZ=["Tried to remove non-existent remote stream: ","."];gZ.raw=gZ.slice();var hZ=["Tried to update non-existent remote stream: ","."];hZ.raw=hZ.slice();var iZ=["Sending stream adds. addedStreams.length=",",\n         removedStreams.length=",""];iZ.raw=iZ.slice();
var jZ=["Queuing stream changes. addedStreams.length=",",\n         removedStreams.length=",""];jZ.raw=jZ.slice();var kZ=["Received remote streams after end."];kZ.raw=kZ.slice();var lZ=["Received remote streams before starting."];lZ.raw=lZ.slice();var mZ=["Logging finished before media stopped!"];mZ.raw=mZ.slice();var nZ=["Session IDs are now set: LocalSession ID: ",",\n       RemoteSession ID: ",". Note: Session\n       is not yet active."];nZ.raw=nZ.slice();
var oZ=["Received modified remote description: ","."];oZ.raw=oZ.slice();var pZ=["Remote description changed after end."];pZ.raw=pZ.slice();var qZ=["Remote description changed before starting."];qZ.raw=qZ.slice();var rZ=["Transport state event: transport IS ","\n     writable."];rZ.raw=rZ.slice();var sZ=["Remote session stopped after already stopped."];sZ.raw=sZ.slice();var tZ=["Remote session stopped before starting."];tZ.raw=tZ.slice();var uZ=["Local session stopped after already stopped."];
uZ.raw=uZ.slice();var vZ=["Local session stopped before starting."];vZ.raw=vZ.slice();var wZ=["Stopping session because local session stopped with endCause:\n     ","."];wZ.raw=wZ.slice();var xZ=["Session has not received video for "," seconds."];xZ.raw=xZ.slice();var yZ=["Session has never received video."];yZ.raw=yZ.slice();var zZ=["Session has not received audio for "," seconds."];zZ.raw=zZ.slice();var AZ=["Session has never received audio."];AZ.raw=AZ.slice();var BZ=["Session stopped receiving video!"];
BZ.raw=BZ.slice();var CZ=["Session started receiving video."];CZ.raw=CZ.slice();var DZ=["Session stopped receiving audio!"];DZ.raw=DZ.slice();var EZ=["Session started receiving audio."];EZ.raw=EZ.slice();var FZ=["Received data on the broadcast data channel. Data: ",""];FZ.raw=FZ.slice();var GZ=["Latency event: ","."];GZ.raw=GZ.slice();var HZ=["Sending local ICE candidates over to the other side:\n     ","."];HZ.raw=HZ.slice();var IZ=["Received local candidates after stopped."];IZ.raw=IZ.slice();
var JZ=["Received local candidates before starting."];JZ.raw=JZ.slice();var KZ=["Sending stream requests for UP streams to local session:\n     ","."];KZ.raw=KZ.slice();var LZ=["Muted unknown capture."];LZ.raw=LZ.slice();var MZ=["Audio Stream Requests for UP streams received unexpectedly from remote\n       side: ","."];MZ.raw=MZ.slice();var NZ=["Stream Requests for UP streams received from remote\n     side: ","."];NZ.raw=NZ.slice();var OZ=["Received stream request for DOWN stream from UI: ",""];
OZ.raw=OZ.slice();var PZ=["Changing stream requests after end."];PZ.raw=PZ.slice();var QZ=["State change due to ",""];QZ.raw=QZ.slice();var RZ=["Changed state from "," to ",""];RZ.raw=RZ.slice();var SZ=["Now has these participants: ",""];SZ.raw=SZ.slice();var TZ=["Removing stream after end."];TZ.raw=TZ.slice();var UZ=["Successfully added capture: ",""];UZ.raw=UZ.slice();var VZ=["Adding stream after end."];VZ.raw=VZ.slice();
var WZ=["Stopping because stop called with endCause: "," and\n     debug information: ",""];WZ.raw=WZ.slice();var XZ=["Ignoring call to stop with endCause: "," and\n       debug information: ",", because it has already\n       stopped."];XZ.raw=XZ.slice();var YZ=["Failed to resume session."];YZ.raw=YZ.slice();var ZZ=["Attempting to resume session."];ZZ.raw=ZZ.slice();var $Z=["Failed to pause session."];$Z.raw=$Z.slice();var a_=["Attempting to pause session."];a_.raw=a_.slice();
var b_=["No logging data to upload for ","."];b_.raw=b_.slice();var c_=["Uploading logging data for "," failed with: ",""];c_.raw=c_.slice();var d_=["Uploaded logging data for ","."];d_.raw=d_.slice();var e_=["Connecting session to hangoutId=","."];e_.raw=e_.slice();var f_=["Received remote description without session id."];f_.raw=f_.slice();var g_=["Starting with remote description: ",""];g_.raw=g_.slice();var h_=["Failed to prepare session because remote session failed to prepare."];h_.raw=h_.slice();
var i_=["Request early media for hangout\n       ",""];i_.raw=i_.slice();var j_=["Preparation failed because because local session failed to prepare."];j_.raw=j_.slice();var k_=["Preparation failed because local session failed to create an offer."];k_.raw=k_.slice();var l_=["Starting session after already started."];l_.raw=l_.slice();var m_=["Creating a new session with\n     options=","."];m_.raw=m_.slice();var n_=["localSessionId=",""];n_.raw=n_.slice();
var p_=function(a,c,b,d,e){aJ.call(this);var f=this;this.f=b;this.b(this.f);this.l=xE(vE(new tE("realtime.media.session.SessionImpl"),function(g){return g(n_,f.rb())}));this.l.info(m_,Hv(VI(e)));this.m=QB(a,ED).then();this.kg=QB(a,DD).then();this.lg=null;QB(a,JD).then(function(g){f.lg=g});this.T=null;this.s=new My(this);this.b(this.s);this.s.listen(this.f,"W",this.pg).listen(this.f,"Y",this.ng).listen(this.f,"X",this.Cr).listen(this.f,"oa",this.yr).listen(this.f,"$",this.Ar).listen(this.f,"Z",this.zr).listen(this.f,
"ca",this.Br).listen(this.f,"ba",this.Gr).listen(this.f,"V",this.Am).listen(this.f,"da",this.Vr);this.m.then(function(g){Qy(f.s,g,"F",function(){f.g.g&&o_(f.f)})});this.h=d;this.b(this.h);this.s.listen(this.h,"V",this.Fm).listen(this.h,"la",this.br).listen(this.h,"ra",this.Dr).listen(this.h,"ha",this.Pr).listen(this.h,"ia",this.Qr);this.s.listen(this.h,"ga",this.dr,!0);this.tb=this.pd=!1;this.ua=[];this.mc=dv();this.De=dv();this.g=e;this.ue="";this.C={};this.j=this.Sa=this.Aa=this.qa=null;this.gc=
[];this.bb=[];this.o=[];this.hc={};this.Wa=new rz(20);this.H=this.kb=null;this.Fb=this.Bb=this.Ca=u();this.qe=this.qd=!1;this.Da=!0;this.pa=this.Ee=!1;this.re=0;this.mg=c;this.zb=!1;c=(c=c.f)&&T(c,SG,19)||new SG;this.Ib=void 0;this.te=Qa;this.xe=this.g.Ua;this.Ab=new RY;this.ld=new VG(c);this.s.listen(this.ld,"L",this.ur);this.Ia=dv();this.qb=this.fa=null;this.J=[];this.ab=null;(c=navigator.getBattery?navigator.getBattery():null)&&c.then&&c.then(function(g){return f.ab=g});this.Ma=new KY;this.Uc=
new cZ;this.F=null;QB(a,KD,!0).then(function(g){return f.F=g});this.ha=null;QB(a,JY,!0).then(function(g){f.ha=g});this.od="";this.da=new Map;this.se=new Map;this.Ce=!1;this.O=this.W=null};q(p_,aJ);h=p_.prototype;h.Tm=function(a,c){this.f.sm(a,c)};h.Rm=function(a){a=q_(this.f.f.ja,a,{ordered:!0,maxRetransmits:10});return new r_(a)};h.Sm=function(){return this.Ca};h.cm=function(){return this.Ce};h.initialize=function(){return this.f.initialize().then(this.xr,null,this)};
h.xr=function(a){var c=this;this.tb=!0;this.bb.forEach(function(b){return s_(c,b)});this.bb=[];return a};
h.Id=function(a){if("INITIAL"!=this.getState())return this.l.G(l_),!1;t_(this,"STARTING");if(!this.f.f.localDescription)return this.l.G(k_),!1;null!=a&&(a=MG(a,"msodc"),null!=a&&this.f.Zk(a));if(!this.f.Id())return this.l.G(j_),!1;a=this.f;var c=this.g.T;a.h.info("enableRtpHeaderDump called with enable="+c+" for sessionId="+a.g);u_(a.o,a.g,c);this.g.f&&this.g.o.length&&this.l.info(i_,this.g.f);return this.h.Id(null!==this.g.f&&0<this.g.o.length?this.g.f:null)?!0:(this.l.G(h_),!1)};
h.start=function(a){this.pd=!0;if("INITIAL"==this.getState()&&!this.Id(a))return!1;this.Sa=a;this.l.info(g_,Hv(HG(a)));var c=a.ta;null!=c&&(a=JG(a,yG(c,"opus")),this.ua=hG(c),this.N(new hJ(this.ua)));a=v_(this,a);this.j=a=oka(this,a);c=a.g;if(null==c)return this.l.G(f_),this.m.then(function(b){return b.V(3948)}),this.stop(16,"Received remote description without session id."),!1;this.gc.forEach(function(b){a=PG(a,b.al,b.Xm)});Wb(this.gc);this.za(c);this.h.start(c);this.f.start(a);w_(this.f,this.J);
t_(this,"STARTED");c=x_(a);0<c.length&&y_(this.f.f,c);z_(this);A_(this);this.mc.resolve();this.g.j&&this.g.g&&o_(this.f);return!0};h.af=function(){this.h.af();this.f.af()};var B_=function(a){var c=yja(a.mg);if(!c)return null;var b=null!=O(c,7)?T(c,yH,7):new yH,d=null!=O(b,6)?T(b,zH,6):new zH;"high"==a.g.m&&S(d,84,!0);"high"==a.g.w?S(d,85,!0):"very-low"==a.g.w&&S(d,86,!0);V(b,6,d);V(c,7,b);return c};h=p_.prototype;
h.wh=function(a,c,b){var d=this,e=this.f.g;this.l.info(e_,a);this.ue=c;this.f.ga(a);this.f.connect();b||(b=new eI);this.h.wh(a,c,b);this.mc.Y.then(function(){hv(C_(d.h,B_(d),e),function(f){d.l.G("Upload log failed on connectToHangout: "+f)})});(a=this.f.Jl())?hv(a.then(function(f){return C_(d.h,f,e)}).then(function(){d.l.info(d_,e);D_(d,5817)}),function(f){d.l.info(c_,e,f);D_(d,5818)}):(D_(this,5819),this.l.info(b_,e))};
h.pause=function(){this.l.info(a_);if("INPROGRESS"!=this.getState())return!1;this.o.forEach(function(a){"d"!=a.getInfo().la()&&a.lb("b")});if(!this.f.pause())return this.l.b($Z),!1;rv(this.H);this.H=null;t_(this,"PAUSED");return!0};
h.resume=function(){this.l.info(ZZ);if("PAUSED"!=this.getState())return!1;if(!this.f.resume())return this.l.b(YZ),!1;this.h.resume();this.o.forEach(function(a){"d"!=a.getInfo().la()&&a.lb("a")});this.N("ua");t_(this,"INPROGRESS");this.N(new gJ([],[],this.rb()));z_(this);return!0};
h.stop=function(a,c){if("STOPPED"==this.getState()||"FINISHED"==this.getState())return this.l.info(XZ,a,c),!0;this.l.info(WZ,a,c);c&&(this.od=c);Ry(Ry(Ry(Ry(this.s,this.f,"V",this.Am),this.h,"V",this.Fm),this.qa,"Kb",this.Ae),this.Aa,"Kb",this.Be);var b;if(b=this.g.g)a:switch(a){case 3:case 8:case 111:case 113:case 114:case 115:case 10:case 102:case 13:case 58:case 19:case 15:case 16:case 17:case 23:case 26:case 120:case 28:case 29:case 32:case 33:case 34:case 109:case 108:case 110:case 119:b=!0;
break a;default:b=!1}b&&o_(this.f);rv(this.H);this.H=null;this.f.stop(a,c);this.h.stop(a,c);t_(this,"STOPPED",a,c);gv(sv(2E3),this.Ia.resolve,this.Ia);return!0};h.ia=function(){this.stop(this.pd?6:72);gv(this.Ia.Y,cF.prototype.ia,this)};
var s_=function(a,c){switch(a.getState()){case "STOPPED":case "FINISHED":return a.l.G(VZ),!1}if(!a.tb)return a.bb.push(c),!0;var b=c.f,d=a.C[E_(b)];if(d)return c="sc"!=b.getContent(),F_(d,c),!1;var e=pka(a.f,c);if(null==e)return!1;"v"==b.Ya&&a.mc.Y.then(function(){var f=[];if(a.g.b){var g=a.j.oa;null!==g&&(f=z(g.j).map(function(k){return cG(bG(new ZF(k),b.getId()),bJ(a)).aa()}))}else f.push(fG(eG(efa(aG(cG($F(bG(new ZF,b.getId()),"v"),bJ(a)),e.yb()),e.b),bX),30).aa());0<f.length&&G_(a,f)});qka(a.h,
[e]);"v"==b.Ya&&a.s.listen(b,"H",a.ze);d=jja(c,a.rb(),e);a.C[E_(b)]=d;a.N(new gJ([d.getInfo()],[]));a.s.listen(c,"R",a.ye);a.l.info(UZ,Hv(TH(c)));return!0};p_.prototype.getOptions=function(){return this.g};p_.prototype.ze=function(a){a=a.target;if("sc"==a.getContent())a=a.getId()+"ca",F_(this.C[a],!1),rka(this.h);else if("ca"==a.getContent()){var c=this.C[E_(a)];F_(c,!0);H_(this.h);I_(this.h,this.C[E_(a)].getInfo())}};
var ska=function(a,c){a.te=c},J_=function(a,c){a.l.info(SZ,Hv(c));if(a.g.b){if(2<c.length){a.stop(51);return}if(2>c.length&&"INPROGRESS"==a.getState()){a.stop(52);return}}tka(a.h,c)},t_=function(a,c,b,d){a.l.info(RZ,a.getState(),c);d&&a.l.info(QZ,d);a.lc!=c&&(a.lc=c,a.xc=b,a.N(new XH(c,b,d)))};
p_.prototype.Qe=function(a){var c=this;switch(this.getState()){case "STOPPED":case "FINISHED":this.l.G(PZ);return}a=a.filter(function(b){b=new HF(b.ba(),b.wa(),b.la());return null===K_(c,b)});a.forEach(function(b){c.l.info(OZ,b);var d=c.Ma,e=b.ba(),f=b.wa();b=b.Tb();e+=f;cX(b)?d.g[e]||(d.g[e]=u()):delete d.g[e]});null!=this.qa?CX(this.qa,a):L_(this,a)};p_.prototype.Ae=function(a){M_(this,a.b);L_(this,a.b)};
var L_=function(a,c){D_(a,5150);a.f.Qe(c);a.h.Qe(c);a.hc={};c.forEach(function(b){if(b.g){var d=b.ba();b=b.wa();a.hc[d+b]=!0}});a.o.forEach(a.yc,a)};p_.prototype.yc=function(a){var c=a.ba(),b=a.wa();c=this.hc[c+b]||!1;c!=a.f&&(a.f=c,a.N("ja"))};
var M_=function(a,c){c=l(c);for(var b=c.next();!b.done;b=c.next()){b=b.value;var d=b.yb();if(null!=d){b=b.h;d=l(d);for(var e=d.next();!e.done;e=d.next())a.da.set(e.value,b)}}},G_=function(a,c){a.l.info(NZ,Hv(c));if(null!==a.Aa){if(c.filter(function(b){return"v"==b.la()}).length){CX(a.Aa,c);return}a.l.G(MZ,Hv(c))}N_(a,c)};p_.prototype.ye=function(a){var c=a.target;a=c.isMuted();(c=this.C[E_(c.f)])?(a=OF(new JF(c.getInfo()),a).aa(),c.g=a,I_(this.h,a)):this.l.G(LZ)};
var F_=function(a,c){a&&(c=PF(new JF(a.getInfo()),c).aa(),a.g=c)};p_.prototype.Be=function(a){N_(this,a.b)};
var N_=function(a,c){var b=c.filter(function(d){d=d.D;return!(null!=d&&bJ(a)!=d)});0!=b.length&&(M_(a,b),a.J=dc(a.J.filter(function(d){return!b.some(function(e){return YF(d,e)})}),b.filter(function(d){return d.g})),a.l.info(KZ,Hv(a.J)),D_(a,5147),w_(a.f,a.J),uka(a,vka(a)))},vka=function(a){if(!bf||!Pp(59)||!a.g.da)return!1;var c=null;a.J.forEach(function(b){!kd(b.wa())&&b.Tb()&&(null==c||b.Tb().width>c.Tb().width)&&(c=b)});if(null==c)return!1;a=c.Tb();return a.height*a.width<bX.width*bX.height},uka=
function(a,c){a.j&&a.zb!=c&&((a.zb=c)?(a.T=new DX(null,a.kg),EX(a.T,834),a.W=u(),a.O=null):(EX(a.T,835),FX(a.T),a.T=null,a.W=null,a.O=u()))};p_.prototype.Ub=function(a){var c=K_(this,a);return null!=c?c:Tb(this.o,function(b){b=b.getInfo();return b.ba()==a.ba()&&b.la()==a.Ya&&b.wa()==a.getId()})};p_.prototype.Tj=function(){var a=aJ.prototype.Tj.call(this),c=B_(this);Object.assign(a,{sessionOptions:VI(this.g),audioOptions:QG(),systemInfo:c?c.Ba():"Unavailable",sessionEndDebugInfo:this.od});return a};
var K_=function(a,c){if(c.ba()!=a.ue&&""!=c.ba())return null;a=Object.values(a.C).filter(function(b){b=b.f.f;return c.getId()==b.getId()&&c.Ya==b.Ya});return 1<a.length?a.find(function(b){return"sc"==b.f.f.getContent()}):1==a.length?a[0]:null},E_=function(a){var c=a.getId();a=a.getContent();return c+a},bJ=function(a){return a.h.g};p_.prototype.rb=function(){return this.f.g};var x_=function(a){return(a=a.b)?z(a.h):[]};
p_.prototype.ng=function(a){var c=this;switch(this.getState()){case "INITIAL":this.l.G(JZ);return;case "STOPPED":case "FINISHED":this.l.G(IZ);return}a.b.forEach(function(b){2==b.f||c.g.b&&"UDP"!=b.g||(c.g.b&&("LOCAL"===b.b?c.m.then(function(d){return vO(d,4902)}):"STUN"===b.b?c.m.then(function(d){return vO(d,4903)}):"RELAY"===b.b&&c.m.then(function(d){return vO(d,4904)})),0>Rb(c.Wa.na(),function(d){return eF(d,b)})&&c.Wa.add(b))});null==this.kb&&(this.kb=qv(function(){c.De.Y.then(c.tg,null,c);c.kb=
null},500))};p_.prototype.tg=function(a){this.l.info(HZ,Hv(this.Wa.na()));this.N(new iJ(this.Wa.na(),a))};
var wka=function(a,c){if(c=hD(c))for(var b=0;b<c.length;b++){var d=c[b];if(null!=d&&2==rD(d)){var e=O(d,65)||0;0==sD(d)&&a.zb&&(e|=4096);var f=O(d,25);if(null!=f&&a.da.has(f))e|=a.da.get(f);else{f=l(nD(d));for(var g=f.next();!g.done;g=f.next())if(g=g.value,a.da.has(g)){e|=a.da.get(g);break}}S(d,65,e)}}},zka=function(a,c){(c=hD(c))&&c.forEach(function(b){var d=nD(b)[0];if(1==sD(b)&&null==O(b,59)){var e=2==rD(b)&&Tb(a.o,function(f){return f.getInfo().b==d});e&&xD(b,!e.getInfo().be())}else 0==sD(b)&&
(e=xka(a,d).map(function(f){return f.f}).find(function(f){return"sc"==f.getContent()}),xD(b,null!=e),S(b,173,yka(e)))})},Aka=function(a,c,b){var d=hD(c);d&&zD(c,d.filter(function(e){if(1==sD(e)){var f=O(e,25)||nD(e)[0]||0,g=a.se.get(f)||{},k=g.packets||0,m=g.Dq||!1;e=O(e,10)||0;k=k==e;m=!m||!k;b&&(g.packets=e,g.Dq=k,a.se.set(f,g));return m}return!0}))},Bka=function(a,c){var b=a.W&&u()>a.W+15E3,d=a.O&&u()>a.O+15E3;if(b||d){var e=hD(c).filter(function(f){return f&&2==rD(f)&&0==sD(f)});c=b&&e.some(function(f){return(O(f,
57)||0)>=bX.width});e=d&&e.every(function(f){return(O(f,57)||0)<=tja.width});c&&a.m.then(function(f){return f.V(4627)});e&&a.m.then(function(f){return f.V(4875)});b&&(a.W=null);d&&(a.O=null)}};h=p_.prototype;h.ur=function(a){this.N(new eJ(a.id))};
h.Ar=function(a){if(null!=a.fb){wka(this,a.fb);Cka(this,a.fb);eka(this.Ma,a.fb);nka(this.Uc,a.fb);this.F&&mka(this.F,a.fb);this.ha&&cka(this.ha,a.fb);zka(this,a.fb);Bka(this,a.fb);this.h.om(a.fb);this.te(a.fb);this.Ib=a.fb;this.xe&&this.Ab.update(a.fb);this.Da||(this.Da="PAUSED"!=this.getState());var c=this.Da&&this.g.W<u()-this.re;Aka(this,a.fb,c);c&&(c=this.xe&&ika(this.Ab)||a.fb,Dka(this.h,c,this.rb()),this.re=u(),this.Ib=void 0,this.Ab.reset(),this.Ma.f={},this.Uc.f.clear(),this.F&&this.F.g.clear(),
this.ha&&dka(this.ha),this.Da="PAUSED"!=this.getState());pfa(this.ld,a.fb);if(this.g.b){var b=null,d=10240;y(jD(a.fb),function(f){0<O(f,5)&&0<O(f,7)&&O(f,5)+O(f,7)>d&&(b=O(T(f,fC,8,1),3),d=O(f,5)+O(f,7))});0===b&&this.m.then(function(f){return vO(f,4220)});1===b&&this.m.then(function(f){return vO(f,4221)});2===b&&this.m.then(function(f){return vO(f,4222)});3===b&&this.m.then(function(f){return vO(f,4134)})}var e=!1;jD(a.fb).forEach(function(f){e=e||0<O(f,7)});this.Ce=e;this.N(new cJ(a.fb))}};
h.zr=function(a){Eka(this.h,a.j,this.rb(),a.b,this.Ib,a.f)};h.Br=function(a){var c=this.Ma,b=a.Qa,d=a.sourceId,e=a.ssrc,f=b+d;cX(a.b)&&(a=c.g[f])&&(a=u()-a,0<=a&&(c.f[e]=c.f[e]||[],c.f[e].push(a),delete c.g[f],Pf(c.l,"participantId: "+b+" sourceId: "+d+" "+("ssrc: "+e+" latency: "+a))))};
h.Gr=function(a){var c=a.source?this.Ub(a.source):null,b=c?c.getInfo().yb():[];c=this.Uc;a=a.id;b=0<b.length?b[0]:null;if(c.g.has(a)){var d=u()-c.g.get(a).le,e=c.g.get(a).ssrc;0<=d&&2147483647>=d?(c.f.has(e)||c.f.set(e,[]),c.f.get(e).push(d),Pf(c.l,"Logged ssrc: "+e+" duration: "+d)):C(c.l,"Ignore invalid main feed ssrc: "+e+" duration: "+d)}else C(c.l,"Skip logging duration for id: "+a);b?c.g.set(a,{ssrc:b,le:u()}):c.g.delete(a)};
h.yr=function(a){this.l.info(GZ,a.message);"transport writable"==a.message?(this.Ee=!0,this.pa||qv(this.zq,2E3,this),this.N(new gJ([],[],this.rb())),A_(this)):"recv first video packet"==a.message?(this.pa=!0,A_(this)):"transport not writable"==a.message&&(this.g.b?this.stop(10,"P2P session ending. Falling back to cloud."):this.af())};h.zq=function(){this.pa||(this.pa=!0,A_(this))};var A_=function(a){"STARTED"==a.getState()&&a.Ee&&a.pa&&(t_(a,"INPROGRESS"),a.N(new gJ([],[],a.rb())))};
p_.prototype.pg=function(a){switch(a.label){case "collections":this.N(new FY(a.payload));break;case "msodc":break;case "dataSendChannel":this.l.b(FZ,a.payload);break;default:this.N(new EY(a.Qa,a.payload))}};var z_=function(a){a.H=qv(a.uq,5E3,a)};h=p_.prototype;h.Cr=function(a){if(null!=this.H){a.b!=this.qd&&(a.b?this.l.info(EZ):this.l.G(DZ),this.qd=a.b);a.f!=this.qe&&(a.f?this.l.info(CZ):this.l.G(BZ),this.qe=a.f);var c=u();a.b&&(this.Bb=c);a.f&&(this.Fb=c);if(a.b||a.f)rv(this.H),this.H=null,z_(this)}};
h.uq=function(){var a=u(),c=(a-this.Bb)/1E3;a=(a-this.Fb)/1E3;this.N(new dJ(bJ(this),c,a));this.Bb==this.Ca?this.l.info(AZ):5E3<c&&this.l.info(zZ,c);this.Fb==this.Ca?this.l.info(yZ):5E3<a&&this.l.info(xZ,a);z_(this)};h.Am=function(a){if("STOPPED"==this.f.getState()){this.l.info(wZ,a.b);switch(this.getState()){case "INITIAL":this.l.G(vZ);t_(this,"STOPPED",a.b,a.f);return;case "STOPPED":this.l.G(uZ);return}this.stop(a.b,a.f)}};
h.Fm=function(a){if("STOPPED"==this.h.getState()){switch(this.getState()){case "INITIAL":this.l.G(tZ);return;case "STOPPED":this.l.G(sZ);return}this.stop(a.b,a.f)}};h.Vr=function(a){var c=this;this.l.info(rZ,a.b?"":"NOT ");if(a.b){if(null!=this.fa){var b=Math.round((u()-(this.qb||0))/1E3);rv(this.fa);this.fa=null;this.m.then(function(d){d.V(3062,{sessionId:bJ(c)||void 0,Qc:b})});this.qb=0}}else null==this.fa&&(this.qb=u(),this.fa=qv(function(){return c.stop(10)},4E4),this.m.then(function(d){d.V(3061)}))};
h.br=function(a){this.N(a)};h.za=function(a){null!=a&&null==this.h.g&&(this.h.za(a),this.De.resolve(a),this.l.info(nZ,this.rb(),O_(this.h)))};h.Dr=function(){"STOPPED"!=this.getState()?this.l.G(mZ):(t_(this,"FINISHED"),this.Ia.resolve())};
h.dr=function(a){switch(this.getState()){case "INITIAL":this.l.G(lZ);return;case "STOPPED":case "FINISHED":this.l.G(kZ);return}if(0<a.Lb.length||0<a.removed.length)"STARTING"==this.getState()?(this.l.info(jZ,a.Lb.length,a.removed.length),this.gc.push({al:a.Lb,Xm:a.removed})):(this.l.info(iZ,a.Lb.length,a.removed.length),this.j=PG(this.j,a.Lb,a.removed),this.f.update(this.j,a.removed));y(a.removed,this.Ms,this);y(a.Eb,this.ut,this);y(a.Lb,this.Gp,this);(0<a.removed.length||0<a.Eb.length||0<a.Lb.length)&&
this.N(new gJ(dc(a.Lb,a.Eb),a.removed))};h.Gp=function(a){a=new $I(this.f.g,a);this.yc(a);this.o.push(a);this.F&&bZ(this.F,a)};h.ut=function(a){var c=this.o.findIndex(function(d){return d.getInfo().matches(a)});if(-1==c)this.l.G(hZ,a);else{var b=new $I(this.f.g,a);this.yc(b);this.F&&ZY(this.F,this.o[c],b);this.o[c]=b}};h.Ms=function(a){var c=Rb(this.o,function(d){return d.getInfo().matches(a)});if(-1==c)this.l.G(gZ,a);else{var b=this.o[c];$b(this.o,c);this.F&&lka(this.F,b);b.lb("b")}};
h.Pr=function(a){switch(this.getState()){case "INITIAL":this.l.G(fZ);return;case "STOPPED":case "FINISHED":this.l.G(eZ);return}D_(this,5148);G_(this,a.b)};h.Qr=function(a){this.Tm(a.label,a.payload)};
var Fka=function(a,c){if(null!=c){a.l.info(dZ,Hv(QG()));var b=WI(a.g);b.ha=c;a.g=b;a.j=P_(a.j);c=a.j;null!=c.ta&&Q_(a.f,c)}},P_=function(a){var c=a.ta,b=hG(c),d=Rb(b,function(f){return hF(f,"OPUS")});if(-1!=d){var e=!(bf&&!Pp(48));b[d]=nF(nF(nF(new iF(b[d]),"stereo","0"),"useinbandfec","1"),"usedtx",e?"1":"0").aa();c=nG(c,b)}return JG(a,c)},v_=function(a,c){if(!c.oa||0==hG(c.oa).length)return c;c=FG(c,function(b){return!hF(b,"h264")});c=FG(c,function(b){return!hF(b,"vp9")});c=EG(c,yG(c.oa,"vp8"));
zfa(a.f.rm());hG(c.oa).some(function(b){return hF(b,"vp9")});Rb(hG(c.oa),function(b){return hF(b,"h264")});return c},oka=function(a,c){if(c.ta&&jG(c.ta)!=jG(a.f.f.localDescription.ta)){var b=jG(a.f.f.localDescription.ta);c=JG(c,rG(c.ta,b))}c.oa&&jG(c.oa)!=jG(a.f.f.localDescription.oa)&&(b=jG(a.f.f.localDescription.oa),c=EG(c,rG(c.oa,b)));c.Ta&&jG(c.Ta)!=jG(a.f.f.localDescription.Ta)&&(a=jG(a.f.f.localDescription.Ta),c=KG(c,rG(c.Ta,a)));return c};
p_.prototype.toString=function(){return"Session(Id="+bJ(this)+" p2p="+this.g.b+" useAudio="+this.g.h+" useVideo=true)"};var Cka=function(a,c){a.ab&&(S(c,75,Math.round(100*a.ab.level)),S(c,74,!a.ab.charging))},D_=function(a,c){a.m.then(function(b){return b.V(c)})},xka=function(a,c){return Object.values(a.C).filter(function(b){return b.getInfo().yb()[0]==c}).map(function(b){return b.f})},yka=function(a){switch(a&&0){case 1:return 2;case 2:return 3;case 3:return 4;case 4:return 5;default:return 0}};var R_=function(){Y.call(this);this.f=u();this.g=new ov(1E3);ru(this.g,"tick",t(this.h,this));this.g.start()};q(R_,cF);R_.prototype.h=function(){var a=u();6E4<a-this.f&&this.N("Qb");this.f=a};Ra(R_);var S_=["",""];S_.raw=S_.slice();var T_=["Latency: "," Id: "," was marked at: ",""];T_.raw=T_.slice();
var U_=function(a){W.call(this);var c=this;this.l=new tE("realtime.media.stats.BandwidthLatencyReporter");this.m=new DX(null,a);this.f=new Map;this.j=dv();this.o=dv();this.g=new Map([["call connect",25],["bandwidth 500",10],["bandwidth 1000",11],["bandwidth 1500",12],["bandwidth 2500",26],["bandwidth 3150",27],["bandwidth HD",28]]);this.h=new Map;this.g.forEach(function(b){c.h.set(b,dv())});a=Array.from(this.h.values(),function(b){return b.Y});a=cv(a);av([a,this.j.Y,this.o.Y]).then(function(){Gka(c)})};
q(U_,W);var Hka=function(a,c){if(a.g.has(c)){var b=a.g.get(c);if(!a.f.has(b)&&(25===b||a.f.has(25))){var d=u();a.f.set(b,d);a.h.get(b).resolve();a.l.info(T_,c,b,d);25===b&&sv(3E5).then(function(){a.o.resolve()})}}},Gka=function(a){if(0!==a.f.size){a.f.forEach(function(b,d){EX(a.m,d,b)});var c=FX(a.m);a.l.info(S_,c);a.g.clear();a.f.clear()}};var Ika={SUCCESS:0,Tn:100,Tx:101,Qy:102,Ry:103,Ct:200,It:221,Mn:201,Zt:202,fu:203,Av:204,Ev:205,Zw:206,ax:207,cx:208,yx:209,ro:210,Mx:211,vx:222,bA:223,Ox:212,py:213,oy:214,wy:215,Uy:216,bz:217,Yz:218,USER_CANCELED:219,mA:220,bv:224,Lx:225,Jx:226,Vz:227,Iu:228,Lv:229,jy:230,Kx:231,iw:232,ww:233,yw:234,uy:235,zx:236,Ft:237,Et:238,av:239,Dx:240,xw:241,Pw:242,Hu:243,cw:244,Zy:245,Yy:249,Rw:246,Lu:247,Ru:250,Sv:248,Rn:251,St:300,cu:301,uu:302,xu:332,yu:333,zu:334,vu:335,Au:336,Cu:337,Bu:338,wu:350,pw:303,
rw:304,px:305,Vy:306,zw:339,sz:307,Pu:308,zz:309,lw:310,dv:311,Ty:312,Sy:313,qw:314,dw:315,Qu:316,Hv:317,ku:318,Jt:319,Ix:320,Nx:321,Wz:322,gw:323,Tw:324,Ow:325,Kt:326,Wy:327,az:328,Xy:329,Sw:330,Qw:331,hu:340,iu:341,gu:342,Ov:343,fy:344,ey:345,Bz:346,ev:347,Az:348,gA:349,nz:351};var X_=function(a,c,b,d,e){Y.call(this);this.l=Mf("realtime.media.session.SessionManager");this.W=c;this.O=this.W.f;this.f=tX(this.W,"realtime.media.session.SessionManager");this.s=new My(this);this.b(this.s);this.J=a;this.Ib=e;this.Ma=this.Ia=this.m=null;this.H="INITIAL";this.da=null;this.j=new Jm;Bn(Dfa,function(f){this.j.set(f,new Fn)},this);this.qb=dv();this.h=new Fn;this.fa=new Jm;this.g=null;this.o=new UI;this.ha=new MX;this.hc=b;this.zb=d;this.C=[];this.Ca=null;this.Da=[];this.kb=new AY(this.J);
this.bb=this.F=null;Jka(this);this.qa=dv();this.ua=dv();this.Aa=dv();this.Bb=[];this.Sa=new Set;this.Wa=this.pa=null;this.qa.Y.then(function(){this.f.info("P2P enabled, but ICE with TURN disabled.");V_(this,4483);this.Aa.resolve(!1)},function(){this.Aa.reject()},this);bv([this.qa.Y,this.ua.Y,this.Aa.Y]).then(function(){W_(this,!0)},null,this);this.Fb=QB(a,ED).then();this.ab=new U_(QB(a,DD).then());this.T=new DX(null,QB(a,DD).then());this.tb=Qa};x(X_,cF);
var Y_=function(a){X.call(this,"Rb");this.sessionId=a};x(Y_,X);var Kka=$F(new ZF,"a").aa(),Lka=dG($F(new ZF,"a"),!1).aa();fG(eG($F(new ZF,"v"),sja),30).aa();var Mka=fG(eG($F(new ZF,"v"),bX),30).aa(),Jka=function(a){a.F=EL.Ja();a.bb=[HL(a.F,"sessionManagerState",function(){return a.getState()}),HL(a.F,"p2pSessionActive",function(){return Z_(a).some(function(c){return c.getOptions().b})}),HL(a.F,"sessions",function(){return a.h.na().map(function(c){return c.Tj()})})]};h=X_.prototype;
h.ia=function(){var a=this;this.h.na().forEach(function(c){return Yt(c)});null!=this.F&&this.bb.forEach(function(c){a.F.j(c)});X_.Ga.ia.call(this)};h.getState=function(){return this.H};h.lb=function(a,c,b){a!=this.H&&(this.f.info("SessionManager changed state from "+this.H+" to "+a),this.H=a,this.N(new XH(a,c,b)))};
h.Id=function(a){if("INITIAL"!=this.getState())return!1;var c=this.J,b=this.O,d=new XV(KI,[],[],[KI.prototype.h],[KI.prototype.za],ZQ,[],[],[ZQ.prototype.h],[ZQ.prototype.za]),e=WX.Ja(),f=new tY(YX(e,c,b)),g=new WV(ZX(e,b),"La");this.da=new cW(c,XX(e,b),[],d,f,g,$X(e,b));this.b(this.da);this.f.info("Updating default options to: "+Hv(VI(a)));this.o=a;this.o.b&&this.qa.resolve(!0);if(null==this.m||kd(this.m))this.m=this.o.f;null==this.m||kd(this.m)||this.ua.resolve(this.m);this.g=W_(this,!1);if(null==
this.g)return this.f.error("Failed to create the cloud session."),this.stop(16,"Failed to create cloud session."),!1;V_(this,4900);this.lb("STARTING");return!0};h.start=function(){};h.af=function(){this.h.na().forEach(function(a){return a.af()})};
h.connect=function(a,c,b){if("STARTING"!=this.getState()&&"INPROGRESS"!=this.getState())return!1;this.m=a;this.Ia=c;this.Ma=b;this.f.info("Connecting to hangoutId: "+a+", with participantId: "+c+" and sessionLogData: "+b);this.ua.resolve(this.m);dc(Z_(this),$_(this),a0(this)).forEach(function(d){d.wh(a,c,b)});return!0};
var Nka=function(a,c,b){b.b||(b.F?(a=new qF("call/"+b.F,1,null,"collections"),c=IG(c),c.h.set(a.Ad(),a)):B(a.l,"Collections' push channel not added. ClientResource not available"));return c},c0=function(a){var c=Z_(a);if(0<c.length)return c;c=a0(a);return 0<c.length?c:b0(a)},Oka=function(a){var c=[];c0(a).forEach(function(b){fc(c,Object.values(b.C))});return c},Pka=function(a){var c=[];c0(a).forEach(function(b){fc(c,b.o)});return c},Qka=function(a,c){a.tb=c},d0=function(a,c){a.h.na().forEach(function(b){b.g.g||
(b.g=XI(b.g,c),b.g.j&&o_(b.f))});a.o=XI(a.o,c)},e0=function(a){a.o.j||(a.h.na().forEach(function(c){c.g.j||(c.g=YI(c.g),c.g.g&&o_(c.f))}),a.o=YI(a.o))},Ska=function(a,c){a.f.info("Adding capture: "+Hv(TH(c)));var b=f0(a).map(function(d){return s_(d,c)}).every(function(d){return d})||"sc"==c.f.getContent();b?a.C.push(c):Rka(a,c);return b},Rka=function(a,c){f0(a).map(function(b){a:{switch(b.getState()){case "STOPPED":case "FINISHED":b.l.G(TZ);b=!1;break a}if(b.tb){var d=c.f;"sc"==d.getContent()?H_(b.h):
"v"==d.Ya&&Ry(b.s,d,"H",b.ze);Ry(b.s,c,"R",b.ye);var e=b.f;switch(e.j){case "STOPPED":e.h.G("Remove local stream called after stopped.")}var f=e.f;g0(f,"Removing capture="+c);var g=CW(c,f.g);f.Aa.delete(c);Ry(f.m,c,"T",f.Ul);"d"!=c.f.Ya&&(h0(f,g),i0(f,null,c.f));c.nk(e.g);e.s.delete(c);if(e=b.C[E_(d)])delete b.C[E_(d)],b.N(new gJ([],[e.getInfo()])),Tka(b.h,e.getInfo());b=!0}else b=ac(b.bb,c)}return b}).every(function(b){return b})&&ac(a.C,c)},Uka=function(a,c){a.Ca=c&&c.size?new Map(c):null;a.h.na().forEach(function(b){return b.f.Dj(a.Ca)})},
Vka=function(a,c){a.pa=c;a.N("xa")};X_.prototype.Ub=function(a){var c=this.pa&&this.pa(a);if(c)return c;var b=dc(Z_(this),a0(this),b0(this));if(0==b.length)return this.f.info("No active session to get stream from to render source: "+a),null;for(var d=0;d<b.length;d++){var e=b[d];c=e.Ub(a);if(null!=c)return a="Using stream: "+c.getInfo()+" from "+e.rb()+" to render source: "+a,this.f.b.g(HW,a),c}this.f.G("Unable to find stream to use to render source: "+a);return null};
X_.prototype.Qe=function(a){dc(b0(this),a0(this),Z_(this)).forEach(function(c){c.Qe(a)})};var Wka=function(a,c){a.h.na().forEach(function(b){J_(b,c)});a.Da=c};X_.prototype.stop=function(a,c){this.f.info("Stopping video call because stop called with endCause: "+a);if("INITIAL"==this.getState()||"STOPPED"==this.getState()||"FINISHED"==this.getState())return!1;this.ab.j.resolve();this.lb("STOPPED",a,c);this.h.na().forEach(function(b){b.stop(a,c)});return!0};
var j0=function(a,c,b){b=void 0===b?null:b;Z_(a).filter(function(d){return d.getOptions().b}).forEach(function(d){b&&V_(a,b);C(a.l,c);d.stop(54)})},W_=function(a,c){var b=Xka(a,a.o,c);if(!b)return null;var d=Yka(a,b);if(null==d)return a.f.G("Did not create "+(c?"P2P":"cloud")+" session."),null;d.initialize().then(function(e){if(e){this.f.info("Local session initialize completed.");e=Nka(this,e,b);b.h||(e=JG(e,sG(e.ta,[Lka])));var f=O(this.O,23)||"";(e=Jja(this.ha,e,b.f,b.o,c,f))?(f=u(),EX(this.T,
878,f),FX(this.T),e=hv(this.da.add(e).then(function(g){C(this.l,"Session add response received.");if(1>g.length||!(g[0]instanceof KI))this.f.info("Stopping remote session due to receiving null session proto."),V_(this,3945),d.stop(16,"Received null session proto.");else{var k=g[0];if(null!=k){var m=PX(this.ha,k,!b.b);null!=m?(b.b&&(this.f.info("P2P session add response received with session id "+k.h()),k=k.h(),null!=k&&this.N(new Y_(k))),k0(this,d,m)):(this.f.info("Stopping session due to inability to parse session proto."),
V_(this,3947),d.stop(16,"Error parsing session proto."))}else this.f.info("Stopping session due to type mismatch in session proto."),V_(this,3946),d.stop(16,"Type mismatch in session proto.")}return g},null,this),function(g){var k="Failed to add session to collection. Error: "+g;this.f.G(k);V_(this,3949,{Zc:k});k.includes("Malformed RTCIceServer")&&V_(this,4264);d.stop("transport_unavailable"==g.b?108:16,k);throw g;},this),UX(e,"xa",null,this)):(this.f.G("Failed to parse session info."),V_(this,3944),
d.stop(16,"Failed to parse session info."))}else this.f.error("Local session initialize failed to create local offer."),V_(this,3942),d.stop(16,"Local session initialize failed to create local offer.")},function(e){var f="Failed to initialize session. Error: "+rf(e);this.f.G(f);V_(this,3943,{sessionId:bJ(d)||void 0,Zc:f});d.stop(109,"Failed to initialize session.");throw e;},a);d.f.Ym()&&(a.Sa.add(d),Zka(a));return d},$ka=function(a,c){if(!c.L){var b=BY(a.kb);c=WI(c);c.L=b}if(b=O(a.O,20))c=WI(c),
c.D=b;if(b=O(a.O,21)){var d=WI(c);c.D&&(b=Math.max(c.D,b));d.W=b;c=d}b=il(a.O,22,!1);c=WI(c);c.Ua=b;b=Aja(a.W,a.J,"c"+Math.round(2147483648*Math.random())+Math.round(2147483648*Math.random())+(c.b?"_P2P":"_NMS"),c);if(c.b){if(!bf)return a.f.info("Not creating p2p session because local does not support p2p"),V_(a,3939),null;if(2<a.Da.length)return a.f.info("Not creating p2p session due to too many participants."),V_(a,3940),null}b.Dj(a.Ca);d=zja(a.W,a.J,c,a.Ib);return new p_(a.J,a.W,b,d,c)},Yka=function(a,
c){c=$ka(a,c);if(null==c)return null;a.h.add(c);a.j.get(c.getState()).add(c);a.fa.set(c.rb(),c.getState());c.qa=a.zb;c.s.listen(c.qa,"Kb",c.Ae);c.Aa=a.hc;c.s.listen(c.Aa,"Kb",c.Be);J_(c,a.Da);ska(c,function(b){return a.tb(b)});a.s.listen(c,["Mb","Nb","sa","xa","qa"],a.N);a.s.listen(c.f,"oa",a.N);a.s.listen(c.h,"ga",a.N);a.s.listen(c,"V",a.Cs);a.s.listen(c,"pa",a.Bs);a.s.listen(c,"la",a.gc);a.s.listen(c,"na",a.wr);a.s.listen(c.f,"oa",a.Sr);a.s.listen(c,"ma",a.vr);return c},ala=function(a,c,b){c.start(b);
a.C.forEach(function(d){s_(c,d)})},f0=function(a){return dc(a.j.get("INITIAL").na(),b0(a),a0(a),$_(a),Z_(a))},$_=function(a){return a.j.get("PAUSED").na()},Z_=function(a){return a.j.get("INPROGRESS").na()},a0=function(a){return a.j.get("STARTED").na()},b0=function(a){return a.j.get("STARTING").na()},Xka=function(a,c,b){var d=c.f||a.m;c=null!=d?ZI(c,d):ZI(c,null);c=WI(c);if(c.b=b){c=WI(c);c.s=!1;if(null==a.g)return Of(a.l,"P2P session starting first! This is bad!"),V_(a,3941),null;b=WI(c);b.fa=!1;
c=[Kka,Mka];b=WI(b);b.o=c;c=b;a=ec(a.Bb,c.H);c=WI(c);c.H=a}return c};X_.prototype.gc=function(a){k0(this,a.g,a.sessionDescription)};
var k0=function(a,c,b){var d=c.getState(),e=0!=z(b.f).length;var f=!1;var g=b.b;g&&null!=g.b&&(f=2==g.b.split(" ").length);f=e!=f;e=b.b;g=null!=e&&null!=e.g&&null!=e.f&&0<z(e.h).length;e=f&&"INITIAL"==d;f=f&&g&&("INITIAL"==d||"STARTING"==d);d="INITIAL"!=d&&"STARTING"!=d;g=b.g;null!=g&&c.za(g);e&&(a.f.info("Received remote description for session "+O_(c.h)+" with sufficient data to allow session preparation."),c.Id(b));if(f)a.f.info("Received remote description for session "+O_(c.h)+" with sufficient data to allow starting the session."),
ala(a,c,b);else if(d)a:{switch(c.getState()){case "INITIAL":case "STARTING":c.l.G(qZ);break a;case "STOPPED":case "FINISHED":c.l.G(pZ);break a}mfa(c.Sa,b)||(c.Sa.b.b!=b.b.b&&c.N(new jJ(b.g)),c.Sa=KG(b,b.Ta),c.l.info(oZ,Hv(HG(b))),a=x_(b),0<a.length&&y_(c.f.f,a),b=P_(b),b=v_(c,b),c.j=NG(LG(c.j,b.b),z(b.f)),a=c.j,(d=a.ta)?d=zG(d,b.ta):d=b.ta,(e=a.oa)?e=zG(e,b.oa):e=b.oa,a=EG(JG(a,d),e),c.j=a,a=c.j.ta,null!=a&&(c.ua=hG(a),c.N(new hJ(c.ua))),null==a&&null==c.j.oa||c.f.update(c.j,[]))}};h=X_.prototype;
h.wr=function(a){if("INPROGRESS"!=this.getState())B(this.l,"Ingress bandwidth updated before started.");else{var c=BY(this.kb),b=new iI;-1!=c.f&&S(b,1,c.f);-1!=c.b&&S(b,2,c.b);-1!==c.g&&S(b,3,c.g);c=new GI;V(c,7,b);b=new KI;b.za(a.sessionId);a=this.m||this.o.f;null===a||TI(b,[a]);SI(b,[c]);nW(this.da,b)}};h.Sr=function(a){Hka(this.ab,a.message)};h.vr=function(){var a=this.g;l0(this,a,a,7)};
h.Bs=function(a){var c=this;switch(this.getState()){case "INITIAL":B(this.l,"Received local candidates before starting.");return;case "STOPPED":case "FINISHED":B(this.l,"Received local candiates after end.");return}var b=a.target,d=a.b.map(function(g){g=c.ha.f(g);S(g,9,void 0);return g});if(!(1>d.length)){var e=new CI;rl(e,6,d);if(d=b.f.f.localDescription.b)if(S(e,4,d.g),S(e,5,d.f),d.b){var f=new DI;S(f,1,d.b.split(" ")[0]);S(f,2,d.b.split(" ")[1]);V(e,2,f)}d=z(b.f.f.localDescription.f).map(function(g){return c.ha.pl(g)});
b=new GI;b.vb(4);V(b,2,e);rl(b,4,d);e=new KI;e.za(a.sessionId);SI(e,[b]);nW(this.da,e)}};
h.Cs=function(a){var c=a.target,b=this.fa.get(c.rb()),d=c.getState();if(b!=d){this.fa.set(c.rb(),d);this.j.get(b).remove(c);this.j.get(d).add(c);"INPROGRESS"==d&&this.qb.resolve(c);switch(d){case "STARTED":bla(this,c);break;case "INPROGRESS":cla(this,c);break;case "STOPPED":dla(this,c,a.b,a.f);break;case "FINISHED":this.j.get(c.getState()).remove(c),this.fa.remove(c.rb()),this.h.remove(c),this.Sa.delete(c),Yt(c),this.h.sa()==this.j.get("FINISHED").sa()&&("STOPPED"!=this.H?B(this.l,"Session Manager finished before stopping."):
this.lb("FINISHED"))}this.N(a)}};
var bla=function(a,c){null!=a.m&&null!=a.Ia&&null!=a.Ma&&(c.wh(a.m,a.Ia,a.Ma),Z_(a).filter(function(b){return b!=c}).forEach(function(b){l0(a,b,c)}))},cla=function(a,c){if("INITIAL"==a.getState()||"STOPPED"==a.getState()||"FINISHED"==a.getState())Of(a.l,"Should not have new active sessions now.");else{"STARTING"==a.getState()&&a.lb("INPROGRESS");Fka(c,a.o.ha);var b=c.rb();Z_(a).filter(function(d){return b!=d.rb()}).forEach(function(d){d.pause()})}},dla=function(a,c,b,d){a.C.forEach(function(f){f.nk(c.rb())});
if(26==b)b=a.g,a.g=W_(a,!1),b&&(a.g?(l0(a,b,a.g,6),j0(a,"Unable to continue p2p on cloud session handover")):a.f.error("Cloud session"+bJ(b)+" to cloud handoff failed"));else{55==b&&V_(a,3262,{sessionId:bJ(c)||void 0});c.getOptions().b&&a.N(new Y_(null));var e=a.j.get("STOPPED").sa()+a.j.get("FINISHED").sa();a.h.sa()==e?"STOPPED"!=a.H&&(a.f.info("All sessions now stopped."),a.stop(b,d)):0==Z_(a).length&&$_(a).forEach(function(f){f.resume();l0(a,c,f)})}},l0=function(a,c,b,d){var e=null!=d?d:c.getOptions().b?
5:b.getOptions().b?4:6;if(5==e)m0(a,c,b,null,e);else{var f=u();b.f.ln();(d=b.f.Dl())&&d.then(function(){var g=u();7==e&&(EX(a.T,29,f),EX(a.T,30,g),FX(a.T));m0(a,c,b,g-f,e)},function(){m0(this,c,b,null,e)},a)}},m0=function(a,c,b,d,e){var f=new CH;S(f,1,e);S(f,2,0);S(f,3,bJ(c));S(f,4,bJ(b));S(f,5,d);var g=new QH;V(g,15,f);hv(C_(c.h,g,c.rb()),function(k){a.f.G("Upload log failed during handoff: "+k)});4==e?(a.f.info("P2P handoff took: "+d+" ms"),V_(a,null===d?3262:3260,{sessionId:bJ(b)||void 0})):6==
e?(a.f.info("Cloud to cloud handoff took: "+d+" ms"),V_(a,null===d?4653:4652,{sessionId:bJ(b)||void 0})):7==e&&(a.f.info("Cloud to cloud DTLS handoff took: "+d+" ms"),V_(a,null===d?5589:5588,{sessionId:bJ(b)||void 0}));a.f.info("Handing off from "+(c.getOptions().b?"P2P":"RF/MR")+" session to "+(b.getOptions().b?"P2P":"RF/MR")+" session")},Zka=function(a){a.Wa||(a.Wa=R_.Ja(),a.s.listen(a.Wa,"Qb",a.Ab))};
X_.prototype.Ab=function(){var a=this,c=new Set(this.Sa);0===c.size?C(this.l,"SleepWatcher suspend ignored. No effected sessions."):(this.f.info("SleepWatcher fired. Waiting 3 seconds to determine if media is live."),sv(3E3).then(function(){a.g.cm()?(a.f.info("SleepWatcher fired but session is still live. Not suspending."),V_(a,4588),a.N("va")):(a.f.G("Suspend triggered by SleepWatcher, "+("effecting "+c.size+" session(s).")),V_(a,2056),ela(a,c),a.N("wa"))}))};
var ela=function(a,c){var b=a.C.concat().filter(function(d){return"v"===d.f.Ya});C(a.l,"Muting "+b.length+" video capture(s).");b.forEach(function(d){return d.mute()});sv(2E3).then(function(){c.forEach(function(d){switch(a.getState()){case "STOPPED":case "FINISHED":C(a.l,"Suspend ignored for finished/stopped session. "+d);return}C(a.l,"Ending session due to SleepWatcher trigger. "+d);a.stop(112,"JS was suspended for too long.")})})},V_=function(a,c,b){a.Fb.then(function(d){return d.V(c,b)})};var n0=function(a,c,b,d){W.call(this);var e=this;this.R=Mf(b);this.O=QB(a,ED).then();this.F=new HV(this);this.g=this.F.signal();this.o=0;this.D=new rz(300);this.J=EL.Ja();this.C=[];d&&fla(this,d.name,function(){return d.ac.concat(gla(e))});MV(c,function(f){var g=f.Xf,k=f.data;f=f.sequenceNumber;1<f-e.o&&e.reset();k=e.Xb(k,g);null!==k&&(e.fm(k),e.o=f,e.jc(k),e.fc(k),e.jk(k,g),JV(e.F,e.g,k))},this)};q(n0,W);h=n0.prototype;h.V=function(a,c){this.O.then(function(b){b.V(a,c)})};
h.fm=function(a){C(this.R,a)};h.reset=function(){};h.jc=function(){};h.jk=function(a,c){0===this.o%10&&this.D.add({data:a,Xf:c})};h.fc=function(){};var hla=function(a){var c=Math.min(a.D.sa(),300);return tz(a.D,c)},gla=function(a){return hla(a).map(function(c){return[c.Xf].concat(n(a.Rb(c.data)))})},fla=function(a,c,b){a.C.push(GL(a.J,c,b))};n0.prototype.ia=function(){this.C.forEach(function(a){return a()});W.prototype.ia.call(this)};var o0=function(a,c){n0.call(this,a,c,"realtime.media.stats.emitters.monitors.audioreceived.DelayMonitor",{name:"recentAudioPlayoutDelay",ac:["Time Since Call Start","Max Audio Playout Delay (ms)"]});this.f=!1};q(o0,n0);o0.prototype.Xb=function(a){a=a.filter(function(b){return 5<O(b,26)}).reduce(function(b,d){return Math.max(b,O(d,39)||0)},-Infinity);a=-Infinity<a?a:null;var c=this.f;return{delay:a,Yi:null===a?c:500<=a,En:c}};
o0.prototype.jc=function(a){var c=a.Yi;a=a.En;!a&&c?this.V(4009):a&&!c&&this.V(4010)};o0.prototype.fc=function(a){var c=a.Yi;null!==a.delay&&(this.f=c)};o0.prototype.Rb=function(a){return[a.delay]};var p0=function(a,c){for(var b in a){var d=l(a[b]),e=d.next().value;d=d.next().value;if(e<c&&c<=d)return b}return null},q0=function(a){this.h=this.j;this.b=void 0===a?2:a;this.g=new rz(this.b);this.f=0};q0.prototype.add=function(a){var c=this.g.add(a);this.h(a)&&(this.f+=1);void 0!=c&&this.h(c)&&--this.f};q0.prototype.j=function(a){return 0<=a&&20>=a};
var ila=function(a){return a.g.sa()<a.b?!1:.6<=a.f/a.b},jla=function(a){return a.g.sa()>=a.b},r0=function(a){this.f=new rz(a);this.h=a;this.g=this.b=0};r0.prototype.add=function(a){var c=this.f.add(a),b=this.f.sa();this.b+=a;c&&(this.b-=c);this.g=this.b/b};var kla=function(a){return a.f.sa()>=a.h};var s0=function(a,c,b){n0.call(this,a,c,"realtime.media.stats.emitters.monitors.audioreceived.FractionLostMonitor",{name:"recentMaxAudioRecvFractionLost",ac:["Time Since Call Start","Max Audio Recv Fraction Lost (%)"]});this.T=3E4/b;this.m=new r0(this.T);this.H=6E4/b;this.h=new q0(this.H);this.j=this.s=!1;this.f=!0;this.L=new Map};q(s0,n0);
s0.prototype.Xb=function(a){var c=this;a=a.filter(function(k){var m=O(k,25)||nD(k)[0]||0;m=c.L.get(m)||0;return(O(k,9)||0)!==m});if(0==a.length)return null;a.forEach(function(k){var m=O(k,25)||nD(k)[0]||0;k=O(k,9)||0;c.L.set(m,k)});a=a.reduce(function(k,m){return Math.max(k,O(m,2))},0);this.m.add(a);this.h.add(a);var b=50<a,d=this.s,e=this.j;kla(this.m)&&(e=20<this.m.g);var f=this.j,g=this.f;jla(this.h)&&(g=ila(this.h));return{Ii:a,am:b,zt:d,Zl:e,yt:f,il:g,At:this.f}};
s0.prototype.jc=function(a){var c=a.am,b=a.zt,d=a.Zl,e=a.yt,f=a.il;a=a.At;c&&!b?this.V(4348):!c&&b&&this.V(4349);d&&!e?this.V(4350):!d&&e&&this.V(4351);f&&!a?this.V(4434):!f&&a&&this.V(4433)};s0.prototype.fc=function(a){var c=a.Zl,b=a.il;this.s=a.am;this.j=c;this.f=b};s0.prototype.Rb=function(a){return[a.Ii]};var t0=function(a,c){n0.call(this,a,c,"realtime.media.stats.emitters.monitors.audioreceived.JitterBufferSizeMonitor",{name:"recentMaxAudioRecvJitterBufferSize",ac:["Time Since Call Start","Max Audio Recv Jitter Buffer Size (ms)"]});this.f=new Map};q(t0,n0);
t0.prototype.Xb=function(a){var c=this;a=a.filter(function(b){var d=O(b,25)||nD(b)[0]||0;d=c.f.get(d)||0;return(O(b,9)||0)!==d});if(0==a.length)return null;a.forEach(function(b){var d=O(b,25)||nD(b)[0]||0;b=O(b,9)||0;c.f.set(d,b)});return{Kq:a.reduce(function(b,d){return Math.max(b,O(d,37)||-1)},0)}};t0.prototype.Rb=function(a){return[a.Kq]};var u0=function(a,c,b){W.call(this);var d=this;this.f=new HV(this);this.o=IV(this.f,!0);this.m=IV(this.f,!0);this.g=new o0(a,c);this.b(this.g);MV(this.g.g,function(e){var f=e.En,g=e.Yi;e={BA:e.delay};!f&&g?JV(d.f,d.o,e):f&&!g&&JV(d.f,d.m,e)},this);this.j=new s0(a,c,b);this.b(this.j);this.h=new t0(a,c);this.b(this.h)};q(u0,W);var v0=function(a,c){n0.call(this,a,c,"realtime.media.stats.emitters.monitors.CpuUsageMonitor",{name:"recentSystemCpuUsage",ac:["Time Since Call Start","System","Process","Browser","GPU"]});this.m=this.j=0;this.f=this.h=!1};q(v0,n0);
v0.prototype.Xb=function(a){var c=O(a,36);if(0<c){var b=Math.round((O(a,35)||0)/c),d=Math.round((O(a,34)||0)/c),e=Math.round((O(a,92)||0)/c);a=Math.round((O(a,94)||0)/c);c=.65*this.j+.35*b;var f=.65*this.m+.35*(d+e+a);return{Yh:b,Uh:d,th:e,Hh:a,kt:c,mt:f,Hn:this.h,Gn:this.f,dj:90<=c,bj:60<=c-f}}return null};v0.prototype.jc=function(a){var c=a.dj,b=a.bj,d=a.Gn;c!==a.Hn&&this.V(c?3746:3762);b!==d&&this.V(b?4628:4629)};
v0.prototype.fc=function(a){var c=a.mt,b=a.dj,d=a.bj;this.j=a.kt;this.m=c;this.h=b;this.f=d};v0.prototype.Rb=function(a){return[a.Yh,a.Uh,a.th,a.Hh]};var w0=function(a,c){W.call(this);var b=this;this.f=new HV(this);this.j=IV(this.f,!0);this.h=IV(this.f,!0);this.g=new v0(a,c);this.b(this.g);MV(this.g.g,function(d){var e=d.Yh,f=d.Uh,g=d.th,k=d.Hh,m=d.dj,p=d.bj,v=d.Gn;m!==d.Hn&&JV(b.f,b.j,{Yh:e,Uh:f,th:g,Hh:k,Gq:m,Fq:p});p!==v&&JV(b.f,b.h,{Yh:e,Uh:f,th:g,Hh:k,Gq:m,Fq:p})},this)};q(w0,W);var lla=performance&&performance.timeOrigin&&performance.now?function(){return Math.floor(performance.timeOrigin+performance.now())}:u,x0=function(){return u!=u?u():lla()};var y0=function(a,c){n0.call(this,a,c,"realtime.media.stats.emitters.monitors.LeakyBucketDelayMonitor",{name:"recentLeakyBucketDelay",ac:["Time Since Call Start","Leaky Bucket Delay (ms)"]});this.h="normal";this.m=x0();this.f=this.j=!1};q(y0,n0);
y0.prototype.Xb=function(a,c){if(15>c)return this.m=x0(),null;a=O(a[0],80);if(null===a)return null;c=p0(z0,a);if(null===c){var b=x0();return{Fg:a,status:c,vc:b,dc:!1,Jc:this.f}}var d=z0[this.h][0]<z0[c][0];b=c!==this.h?x0():this.m;var e=2E3<x0()-b;d=e||d;e=this.f&&!e;return{Fg:a,status:c,vc:b,dc:d,Jc:3E3<a&&d||e}};y0.prototype.jc=function(a){var c=a.status,b=a.dc;a=a.Jc;null!==c&&(b&&!this.j&&("normal"===c?this.V(4379):"high"===c&&this.V(4380),this.j=!0),a&&!this.f&&(this.V(4381),this.f=!0))};
y0.prototype.fc=function(a){var c=a.status,b=a.vc;a=a.Jc;null!==c&&(c!==this.h&&(this.h=c,this.m=b,this.j=!1),this.f&&!a&&(this.f=!1))};y0.prototype.Rb=function(a){return[a.Fg]};var A0={},z0=(A0.normal=[-Infinity,3E3],A0.high=[3E3,Infinity],A0);var B0=function(a,c){W.call(this);var b=this;this.g=new HV(this);this.j=IV(this.g,!0);this.h=new y0(a,c);this.b(this.h);this.f=!1;MV(this.h.g,function(d){var e=d.Fg;d=d.Jc;d!==b.f&&(JV(b.g,b.j,{MA:e,KA:d}),b.f=d)},this)};q(B0,W);var C0=function(a,c){n0.call(this,a,c,"realtime.media.stats.emitters.monitors.audioreceived.NeteqCallsMonitor",{name:"recentNeteqCalls",ac:["Time Since Call Start","Min Neteq Calls (%)"]});this.f=!1;this.h=new Map;this.j=new Map};q(C0,n0);
C0.prototype.Xb=function(a,c){var b=this;a=a.filter(function(d){var e=O(d,25)||nD(d)[0]||0;e=b.h.get(e)||0;return(O(d,9)||0)!==e});if(0==a.length)return null;a.forEach(function(d){var e=O(d,25)||nD(d)[0]||0;d=O(d,9)||0;b.h.set(e,d)});a=Math.min.apply(Math,[].concat(n(a.map(function(d){var e=nD(d)[0];if(d=O(d,82)){var f=100,g=b.j.get(e);if(g){var k=1E3*(c-g.Xf)/10;0!=k&&(g=d-g.ir,g>k/10&&(f=Math.min(100,Math.round(g/k*100))))}b.j.set(e,{ir:d,Xf:c});e=f}else e=100;return e})),[100]));return{jr:a,aj:80>=
a}};C0.prototype.jc=function(a){a=a.aj;!a&&this.f?this.V(4127):a&&!this.f&&this.V(4126)};C0.prototype.fc=function(a){a=a.aj;a!==this.f&&(this.f=a)};C0.prototype.Rb=function(a){return[a.jr]};var D0=function(a,c){n0.call(this,a,c,"realtime.media.stats.emitters.monitors.audiosent.BitRateMonitor",{name:"statsAudioSentBitrate",ac:["Time Since Call Start","Audio Sent Bitrate (bps)"]});this.h="normal";this.j=x0();this.f=!1};q(D0,n0);D0.prototype.Xb=function(a,c){if(5>c)return this.j=x0(),null;a=Math.min.apply(Math,n(a.map(function(e){return O(e,42)})));if(Infinity===a)return null;c=p0(mla,a);var b=null!==c&&c!==this.h?x0():this.j,d=3E4<x0()-b;return{yf:a,status:c,Oq:b,dc:d}};
D0.prototype.jc=function(a){var c=a.dc;null!==a.status&&c&&!this.f&&(this.f=!0)};D0.prototype.fc=function(a){var c=a.status;a=a.Oq;null!==c&&c!==this.h&&(this.h=c,this.j=a,this.f=!1)};D0.prototype.Rb=function(a){return[a.yf]};var E0={},mla=(E0.low=[-Infinity,500],E0.normal=[500,Infinity],E0);var F0=function(a,c){n0.call(this,a,c,"realtime.media.stats.emitters.monitors.audiosent.EchoLikelihoodMonitor",{name:"statsAudioSentEchoLikelihoodRecentMax",ac:["Time Since Call Start","Max Audio Sent Residual Echo Likelihood"]});this.f=!1};q(F0,n0);F0.prototype.Xb=function(a){a=Math.max.apply(Math,n(a.map(function(c){return cl(c,133)||0})));return-Infinity<a?(a=Math.round(1E3*a)/10,{fq:a,Xl:55<=a}):null};F0.prototype.jc=function(a){a=a.Xl;var c=this.f;a&&!c?this.V(4472):!a&&c&&this.V(4473)};
F0.prototype.fc=function(a){this.f=a.Xl};F0.prototype.Rb=function(a){return[a.fq]};var G0=function(a,c){n0.call(this,a,c,"realtime.media.stats.emitters.monitors.BatteryMonitor",{name:"recentBatteryLevel",ac:["Time Since Call Start","Battery level (%)"]});this.f=0};q(G0,n0);G0.prototype.Xb=function(a){a=Math.round(100*R(a,75,-1));return a===this.f?null:{ml:a}};G0.prototype.fc=function(a){this.f=a.ml};G0.prototype.Rb=function(a){return[a.ml]};var H0=function(a,c){n0.call(this,a,c,"realtime.media.stats.emitters.monitors.RttMonitor",{name:"recentRTT",ac:["Time Since Call Start","Connection Round trip time (ms)","Audio Round trip time (ms)","Video Round trip time (ms)"]});this.f=new Map([[1,0],[2,0]])};q(H0,n0);
H0.prototype.Xb=function(a){var c=this,b=jD(a).find(function(f){return!!(O(f,2)&1)}),d,e;hD(a).forEach(function(f){if(0==sD(f)){var g=rD(f),k=O(f,7);switch(g){case 1:k&&k==c.f.get(g)?d=-1:(d=O(f,6),c.f.set(g,k));break;case 2:k&&k==c.f.get(g)?e=-1:(e=O(f,6),c.f.set(g,k))}}});return{Wp:b?O(b,3):-1,Ip:d,wt:e}};H0.prototype.Rb=function(a){return[a.Wp,a.Ip,a.wt]};var I0=function(a,c){n0.call(this,a,c,"realtime.media.stats.emitters.monitors.NetworkMonitor");this.j=new Map;this.h=!1;this.m=this.f=0};q(I0,n0);h=I0.prototype;h.Xb=function(a){var c=this,b=0<a.length;a=a.reduce(function(g,k){var m=O(k,25)||nD(k)[0]||0,p=c.j.get(m)||0;k=O(k,10)||0;c.j.set(m,k);return g+Math.max(k-p,0)},0);b=b&&!a;var d=this.h,e=this.f,f=this.m;!d&&b?e=x0():d&&!b&&(f=x0()-this.f);return{Zi:b,Fn:d,um:a,Jm:e,Jj:f}};h.fm=function(){};
h.jc=function(a){var c=a.Zi,b=a.Fn;a=a.Jj;!b&&c?this.V(4552):b&&!c&&(1E4<a&&this.V(4582),this.V(4553))};h.fc=function(a){var c=a.Jm,b=a.Jj;this.h=a.Zi;this.f=c;this.m=b};h.Rb=function(a){return[a.um]};var J0=function(a,c){W.call(this);var b=this;this.f=new HV(this);this.j=IV(this.f,!0);this.h=IV(this.f,!0);this.g=new I0(a,c);this.b(this.g);MV(this.g.g,function(d){var e=d.Zi,f=d.Fn,g=d.Jm,k=d.Jj;d=d.um;e&&!f&&JV(b.f,b.j,{Lq:d,WA:g});!e&&f&&JV(b.f,b.h,{Lq:d,DA:k})},this)};q(J0,W);var K0=function(a,c){n0.call(this,a,c,"realtime.media.stats.emitters.monitors.screensharereceived.BitRateMonitor",{name:"recentScreenshareRecvBitrate",ac:["Time Since Call Start","Screenshare Recv Bitrate (kbps)"]});this.s=0;this.j="normal";this.m=x0();this.f=this.h=!1};q(K0,n0);h=K0.prototype;h.reset=function(){this.s=0;this.j="normal";this.m=x0();this.h=!1};
h.Xb=function(a,c){if(5>c)return this.m=x0(),null;a=Math.min.apply(Math,n(a.map(function(g){return O(g,96)})));if(Infinity===a)return null;a=Math.round(a/100)/10;c=.65*this.s+.35*a;var b=p0(L0,c);if(null===b){var d=x0();return{yf:a,status:b,vc:d,dc:!1,Jc:this.f,tn:c}}var e=L0[this.j][0]>L0[b][0];d=b!==this.j?x0():this.m;var f=5E3<x0()-d;e=f||e;f=this.f&&!f;return{yf:a,status:b,vc:d,dc:e,Jc:200>=c&&e||f,tn:c}};
h.jc=function(a){var c=a.status,b=a.dc;a=a.Jc;null!==c&&(b&&!this.h&&("normal"===c?this.V(4376):"low"===c&&this.V(4377),this.h=!0),a&&!this.f&&(this.V(4378),this.f=!0))};h.fc=function(a){var c=a.status,b=a.vc,d=a.Jc;this.s=a.tn;null!==c&&(c!==this.j&&(this.j=c,this.m=b,this.h=!1),this.h&&!d&&(this.f=!1))};h.Rb=function(a){return[a.yf]};var M0={},L0=(M0.low=[-Infinity,200],M0.normal=[200,Infinity],M0);var N0=function(a,c){n0.call(this,a,c,"realtime.media.stats.emitters.monitors.screensharereceived.FpsDecodeMonitor",{name:"recentScreenshareRecvFpsDecode",ac:["Time Since Call Start","Screenshare Decoded FPS"]});this.f="normal";this.j=x0();this.h=!1};q(N0,n0);h=N0.prototype;h.reset=function(){this.f="normal";this.j=x0();this.h=!1};
h.Xb=function(a,c){if(10>c)return this.j=x0(),null;a=Math.min.apply(Math,n(a.map(function(e){return O(e,31)})));if(!(0<=a&&60>=a))return null;c=p0(O0,a);var b=x0(),d=!1;null!==c&&(d=O0[this.f][0]>O0[c][0],c===this.f&&(b=this.j),d=5E3<x0()-b||d);return{mj:a,status:c,vc:b,dc:d}};h.jc=function(a){var c=a.status;a.dc&&!this.h&&("normal"===c?this.V(4343):"zero"===c&&this.V(4342),this.h=!0)};h.fc=function(a){var c=a.status;a=a.vc;null!==c&&c!==this.f&&(this.f=c,this.j=a,this.h=!1)};h.Rb=function(a){return[a.mj]};
var P0={},O0=(P0.zero=[-Infinity,0],P0.normal=[0,Infinity],P0);var Q0=function(a,c){n0.call(this,a,c,"realtime.media.stats.emitters.monitors.screensharereceived.FpsRenderInputMonitor",{name:"recentScreenshareRecvFpsRenderInput",ac:["Time Since Call Start","Screenshare Render Input (FPS)"]});this.f="normal";this.j=x0();this.h=!1};q(Q0,n0);h=Q0.prototype;h.reset=function(){this.f="normal";this.j=x0();this.h=!1};
h.Xb=function(a,c){if(10>c)return this.j=x0(),null;a=Math.min.apply(Math,n(a.map(function(e){return cl(e,50)})));if(!(0<=a&&60>=a))return null;c=p0(R0,a);var b=x0(),d=!1;null!==c&&(d=R0[this.f][0]>R0[c][0],c===this.f&&(b=this.j),d=5E3<x0()-b||d);return{mj:a,status:c,vc:b,dc:d}};h.jc=function(a){var c=a.status;a.dc&&!this.h&&("normal"===c?this.V(4018):"zero"===c&&this.V(4046),this.h=!0)};h.fc=function(a){var c=a.status;a=a.vc;null!==c&&c!==this.f&&(this.f=c,this.j=a,this.h=!1)};h.Rb=function(a){return[a.mj]};
var S0={},R0=(S0.zero=[-Infinity,0],S0.normal=[0,Infinity],S0);var T0=function(a,c){n0.call(this,a,c,"realtime.media.stats.emitters.monitors.screensharereceived.FractionLostMonitor",{name:"recentScreenshareRecvFractionLost",ac:["Time Since Call Start","Fraction Lost (%)"]});this.reset()};q(T0,n0);h=T0.prototype;h.reset=function(){this.f="normal";this.m=0;this.j=x0();this.h=!1};
h.Xb=function(a,c){if(10>c)return this.j=x0(),null;a=Math.max.apply(Math,n(a.map(function(f){return O(f,2)})));if(!(0<=a&&100>=a))return null;c=.65*this.m+.35*a;var b=p0(U0,c),d=x0(),e=!1;null!==b&&(e=U0[this.f][0]<U0[b][0],b===this.f&&(d=this.j),e=8E3<x0()-d||e);return{Ii:a,lt:c,status:b,vc:d,dc:e}};h.jc=function(a){var c=a.status;if(a.dc&&!this.h){switch(c){case "normal":this.V(4043);break;case "above5":this.V(4040);break;case "above10":this.V(4041);break;case "above20":this.V(4042)}this.h=!0}};
h.fc=function(a){var c=a.status,b=a.vc;a=a.lt;null!==c&&(this.m=a,c!==this.f&&(this.f=c,this.j=b,this.h=!1))};h.Rb=function(a){return[a.Ii]};var V0={},U0=(V0.normal=[-1,5],V0.above5=[5,10],V0.above10=[10,20],V0.above20=[20,Infinity],V0);var W0=function(a,c){n0.call(this,a,c,"realtime.media.stats.emitters.monitors.screensharereceived.FrameSpacingMonitor",{name:"recentScreenshareRecvFrameSpacing",ac:["Time Since Call Start","Max Frame Spacing (ms)"]});this.j=new Map;this.reset()};q(W0,n0);W0.prototype.reset=function(){this.h="normal";this.L=-1;this.j.clear();this.s=x0();this.f=this.m=!1};
W0.prototype.Xb=function(a){var c=this;a=a.filter(function(m){return(m.D||!1)&&!!m.h});if(0===a.length)return null;var b=a.map(function(m){var p=X0(m),v=p.Gb;p=p.ssrc;0>=v&&(v=(v=c.j.get(p))?x0()-v:Infinity);return{Gb:Math.min(v,m.h),ssrc:p}});a.forEach(function(m){m=X0(m);var p=m.ssrc;0<m.Gb&&c.j.set(p,x0())});b=nla?ola(b):pla(b);a=b.Gb;b=b.ssrc;var d=p0(Y0,a),e=x0(),f=!1,g=this.f,k=!1;null!==d&&(k=Y0[this.h][0]<Y0[d][0],d===this.h&&(e=this.s),f=5E3<x0()-e,g=this.f&&!f,g=5E3<a||g);return{Gb:a,ssrc:b,
status:d,vc:e,sn:k,dc:f,Jc:g}};var ola=function(a){a=a.reduce(function(b,d){return b.Gb<d.Gb?d:b},{Gb:-1,ssrc:0});var c=a.Gb;return-1===c?null:{Gb:c,ssrc:a.ssrc}};W0.prototype.jk=function(a,c){a.Gb===this.L&&n0.prototype.jk.call(this,a,c)};var pla=function(a){var c=a.reduce(function(b,d){return b.Gb<d.Gb?d:b},{Gb:-Infinity,ssrc:0});a=c.Gb;c=c.ssrc;return 0<=a&&12E4>=a?{Gb:a,ssrc:c}:null};
W0.prototype.jc=function(a){var c=a.status,b=a.dc,d=a.Jc,e=a.ssrc;if(a.sn||b&&!this.m){switch(c){case "normal":this.V(4185,{Qc:e});break;case "above300ms":this.V(4186,{Qc:e});break;case "above1500ms":this.V(4187,{Qc:e});break;case "above5000ms":this.V(4188,{Qc:e});break;case "above20000ms":this.V(4189,{Qc:e})}this.m=!0}null!==c&&d&&!this.f&&(this.V(4184,{Qc:e}),this.f=!0)};
W0.prototype.fc=function(a){var c=a.Gb,b=a.status,d=a.vc,e=a.sn;a=a.Jc;null!==b&&(this.L=c,b!==this.h&&(this.h=b,this.s=d,e||(this.m=!1)),this.f&&!a&&(this.f=!1))};W0.prototype.Rb=function(a){return[a.Gb]};var X0=function(a){var c=O(a,25)||nD(a)[0]||0;return{Gb:O(a,138)||0,ssrc:c}},nla=bf&&Pp(62),Z0={},Y0=(Z0.normal=[-Infinity,300],Z0.above300ms=[300,1500],Z0.above1500ms=[1500,5E3],Z0.above5000ms=[5E3,2E4],Z0.above20000ms=[2E4,Infinity],Z0);var $0=function(a,c){W.call(this);var b=this;this.h=new HV(this);this.D=IV(this.h,!0);this.f=new K0(a,c);this.b(this.f);MV(this.f.g,function(d){var e=d.yf;d=d.Jc;d!==b.g&&(JV(b.h,b.D,{yf:e,aj:d}),b.g=d)},this);this.g=!1;this.j=new N0(a,c);this.b(this.j);this.m=new Q0(a,c);this.b(this.m);this.s=new T0(a,c);this.b(this.s);this.o=new W0(a,c);this.b(this.o)};q($0,W);var b1=function(a,c){W.call(this);this.f=new a1(c);this.g=new u0(a,this.f.j,1E3);this.b(this.g);this.o=new w0(a,this.f.g);this.b(this.o);this.Fg=new B0(a,this.f.o);this.b(this.Fg);this.network=new J0(a,this.f.s);this.b(this.network);this.C=new $0(a,this.f.D);this.b(this.C);this.h=new D0(a,this.f.m);this.b(this.h);this.j=new F0(a,this.f.m);this.b(this.j);this.m=new G0(a,this.f.g);this.b(this.m);this.s=new C0(a,this.f.j,1E3);this.b(this.s);this.D=new H0(a,this.f.g);this.b(this.D)};q(b1,W);
var a1=function(a){W.call(this);var c=this;this.f=new HV(this);this.h=0;this.g=this.f.signal();this.s=this.f.signal();this.o=this.f.signal();this.j=this.f.signal();this.D=this.f.signal();this.H=this.f.signal();this.m=this.f.signal();this.J=this.f.signal();this.O=this.f.signal();this.L=this.f.signal();this.F=x0();this.C=0;MV(a,function(b){b=b.fb;var d=Math.round((x0()-c.F)/100)/10;c.C=d;c.h++;JV(c.f,c.g,{data:b,Xf:d,sequenceNumber:c.h});d=qla(b);var e=d.Lp,f=d.Es,g=d.Gs,k=d.Hs,m=d.Ss,p=d.Ts,v=d.Us;
c1(c,c.s,d.Fs);c1(c,c.o,e);c1(c,c.j,f);c1(c,c.D,g);c1(c,c.H,k);c1(c,c.m,m);c1(c,c.J,p);c1(c,c.O,v);b=rla(b);null!==b&&c1(c,c.L,b)},this)};q(a1,W);
var c1=function(a,c,b){(!Array.isArray(b)||0<b.length)&&JV(a.f,c,{data:b,Xf:a.C,sequenceNumber:a.h})},qla=function(a){var c=[],b=[],d=[],e=[],f=[],g=[],k=[],m=[];hD(a).forEach(function(p){switch(sD(p)){case 1:c.push(p);dl(p,59)?e.push(p):2==rD(p)?f.push(p):1==rD(p)&&d.push(p);break;case 0:dl(p,59)?k.push(p):2==rD(p)?m.push(p):1==rD(p)&&g.push(p);break;case 2:b.push(p)}});return{Fs:c,Lp:b,Es:d,Gs:e,Hs:f,Ss:g,Ts:k,Us:m}},rla=function(a){return jD(a).find(function(c){return 1==(O(c,2)&1)})||null};var d1=function(a,c,b){Y.call(this);this.m=c;this.f=b;this.g=new My(this);this.b(this.g);this.g.removeAll();this.g.listen(a,"Nb",this.j)};x(d1,Y);d1.prototype.j=function(a){this.f.b("G");var c=this.m,b=JSON.parse(a.data);b=new eT(b);b=U(b,cT,1);C(c.l,"handlePushNotification invoked, batch size: "+b.length);b.forEach(c.f,c);a=JSON.parse(a.data);a=U(new eT(a),cT,1);0==a.length?this.f.b("K"):1==a.length?y(a,this.h,this):this.f.b("L")};
d1.prototype.h=function(a){var c=T(a,yP,1);(c=c&&O(c,3))&&this.f.b("Z",c);a=T(a,aT,2);if(null!=a){for(var b,d=0;d<gT.length;d++)if(c=gT[d].Vb.call(a),null!=c){b=gT[d].eventType;switch(b){case "La":a="O";break;case "Na":a="P";break;case "Ia":a="Q";break;case "Ja":a="R";break;case "Ma":a="S";break;case "Fa":a="T";break;case "Ga":a="U";break;case "Ua":a="W";break;case "Ha":a="Y";break;case "Oa":a="$";break;case "Pa":a="aa";break;case "Ra":a="ba";break;case "Sa":a="ca";break;case "Ta":a="da";break;default:a=
"N"}this.f.b(a);break}b||this.f.b("X")}else this.f.b("M")};var j1=function(a,c,b){var d=this;My.call(this);this.R=Mf("realtime.media.call.BaseCall");this.ya=a;this.ze=c;this.f=this.ze.f;this.tb=new vX;this.onConnect=this.tb.b;this.pd=new vX;this.onDisconnect=this.pd.b;this.Da=new vX;this.qe=this.Da.b;this.qb=new vX;this.cb=this.qb.b;this.zb=new vX;this.Qa=this.zb.b;this.Ia=[];this.Wb=b||O(this.f,2)+"^"+se();this.j=new HV(this);this.Ji=this.j.signal();this.ng=this.j.signal();this.mg=this.j.signal();this.qd=this.j.signal();this.kg=new b1(a,this.qd);this.b(this.kg);
this.Di=this.j.signal();this.ej=this.j.signal();QB(a,HD).then(function(e){var f=d.Wb;e.f?f!=e.f&&(e.g=Xu(f)):e.h.resolve(f);e.f=f;e.N(new e1(f))});QB(a,DD).then(function(e){var f={Tg:function(g){return d.Kj(g)},Ug:function(){}};xO(e,f);Xt(d,function(){return Eja(d.onDisconnect,function(){ac(e.f,f)})})});this.H=new f1(this);Efa(this.H,this.Wb).m="jid";this.Ib=new vX;this.Be=this.Ib.b;this.ue=new vX;this.Ee=new BX;this.b(this.Ee);this.lc=new BX;this.b(this.lc);this.xa=new X_(a,c,this.Ee.f,this.lc.f,
this.Wb);this.b(this.xa);this.se=new vX;this.xa.qb.Y.then(function(e){return e.h.Il()}).then(function(){return d.se.resolve(!0)});this.hc=new Bja;Qka(this.xa,function(e){return Dja(d.hc,e)});this.ha=new Map;Vka(this.xa,function(e){var f=e.ba(),g=[].concat(n(d.ha.keys())).find(function(k){return k.Qa.get()==f});return g&&"v"==e.Ya&&(e=new HF("",e.getId(),e.Ya,e.getContent(),e.getState(),e.ff,e.hd&&z(e.hd)),g=g.xa.Ub(e))?g:null});(new vX).resolve(this.xa);this.Aa=0;this.listen(this.xa,"oa",function(e){return JV(d.j,
d.mg,{message:e.message})});this.listen(this.xa,"qa",function(e){return JV(d.j,d.qd,{fb:e.fb})});this.listen(this.xa,"Mb",function(e){var f=d.j,g=d.Di,k=e.Qa,m=e.data;if(!Ia(e.dm)){a:{var p=e.data,v=p?p.indexOf(","):-1;if(-1!=v){var A=aka[p.substring(0,v)];if(A)try{var G=Vj(p.substring(v+1));var E=A(G);break a}catch(ea){}}try{var P=JSON.parse(p);if(Ua(P)){E=wl(P);break a}}catch(ea){}E=null}e.dm=E}return JV(f,g,{Qa:k,data:m,LA:e.dm})});this.listen(this.xa,"ga",function(e){return JV(d.j,d.ej,{Lb:e.Lb,
Eb:e.Eb,removed:e.removed})});this.listen(this.xa,"V",this.Yq);this.listen(this.xa,"Rb",this.Er);this.Ae=new vX;this.sessionId=this.Ae.b;this.L=null;QB(a,CD).then(function(e){e.b=e.b||d.f;e.o=e.o||d.ze;e.w||g1(e);d0(d.xa,h1(e));Math.random()<=(cl(e.b,9)||0)&&e0(d.xa);e.h.push(d);d.onConnect.then(t(e.C,e,d));d.onDisconnect.then(t(e.s,e,d),t(e.s,e,d));i1(e)});this.lg=EL.Ja();this.Sa=!1;this.Fb=this.pa=this.ua=-1;this.xc=[];yc(this.Cg(),function(e,f){this.xc.push(GL(this.lg,f,e,!0))},this)};x(j1,My);
h=j1.prototype;h.Jg=function(a){var c=O(this.f,6);a=WI(a);a.F=c;c=dl(this.f,18);null!=c&&(a=WI(a),a.T=c);Pf(this.R,"Starting the media session.");this.xa.Id(a)?this.Da.resolve(null):this.Da.reject("Failed to create session.")};h.Cg=function(){return{callState:t(this.getState,this),hangoutId:t(this.cb.get,this.cb),pid:t(this.Qa.get,this.Qa),plid:sc(this.Wb),sessionId:t(this.Bj,this)}};
h.ia=function(){Pf(this.R,"Disposing call.");this.disconnect(0);this.xc.forEach(function(a){return a()});this.ha.forEach(function(a){return Yt(a)});j1.Ga.ia.call(this)};h.getState=function(){return this.Aa};h.lb=function(a){a!=this.Aa&&(C(this.R,"Call state changed from "+this.Aa+" to "+a),this.Aa=a,JV(this.j,this.ng,void 0))};h.Bj=function(){return this.xa.g&&this.xa.g.rb()};
var k1=function(a,c,b){2!=a.Qa.b&&(a.qb.resolve(c),a.zb.resolve(b))},l1=function(a,c,b,d){C(a.R,"triggerConnected() called. HangoutId: "+b+" ParticipantId: "+d);k1(a,b,d);var e=a.sl();a.b(e);a.Ib.resolve(e);a.listen(e,"I",a.bn);Qy(a,e,"I",function(){return a.listen(a.xa,"ga",a.bn)});e=new iX(e,a.xa);a.ue.resolve(e);a.b(e);c.resolve();a.tb.resolve(null);a.lb(2);a.xa.connect(b,d,a.H);a.b(new d1(a.xa,a.f.D,a.f.C));C(a.R,"Call connected")};
j1.prototype.b=function(a){a=My.prototype.b.bind(this,a);2==this.onDisconnect.b?a():this.onDisconnect.then(a,a)};var m1=function(a,c){a.Ia=z(c);Wka(a.xa,a.Ia);a.Be.then(function(b){b.H(a.Ia)})};h=j1.prototype;h.disconnect=function(a){if(3==this.getState()||4==this.getState())return C(this.R,"disconnect() skipped, already disconnecting."),this.onDisconnect;C(this.R,"disconnect() called. Endcause: "+a);var c=2==this.getState();this.lb(3);this.xa.stop(a);this.gh(c,a);return this.onDisconnect};
h.gh=function(a,c){C(this.R,"triggerDisconnected(). Endcause: "+c);a=new n1(c);this.qb.reject(a);this.zb.reject(a);this.Ib.reject(a);this.ue.reject(a);this.tb.reject(a);this.Da.reject(a);this.se.reject(a);this.pd.resolve(c);this.lb(4)};h.Nh=function(a){return 3==this.getState()||4==this.getState()?(C(this.R,"addCapture() failed, because we are disconnecting"),!1):Ska(this.xa,a)};
h.Yq=function(a){a.target==this.xa?"STOPPED"==a.state?(C(this.R,"Disconnect received from session. Endcause: "+a.b),this.disconnect(a.b)):"INPROGRESS"==a.state&&JV(this.j,this.Ji,void 0):"STARTING"==a.state&&(a=a.target,a.getOptions().b||(a=bJ(a),2==this.sessionId.b?this.Bn(a):this.Ae.resolve(a)))};h.Er=function(a){a.sessionId!=this.L&&(this.L=a.sessionId,this.An(a.sessionId))};
h.bn=function(){var a=this;this.Sa||(this.Sa=!0,Nu(function(){a.Sa=!1;var c=a.Be.get(),b=new Map;a.Ia.forEach(function(d){z(c.h(d).f).forEach(function(e){var f=e.ff;"a"==e.Ya&&null!=f&&1!=f&&(e=a.xa.Ub(e))&&b.set(e,f)})});Uka(a.xa,b)}))};h.Kj=function(a){a=CL(a);var c=this.cb.get();null!=c&&a.ga(c);c=this.Qa.get();null!=c&&a.Na(c);c=this.Bj();null!=c&&S(a,10,c);c=this.xa.g&&bJ(this.xa.g);null!=c&&a.za(c)};
var sla=function(a,c){(c=jD(c).find(function(b){return!!(O(b,2)&1)}))?(a.ua=O(c,5),a.pa=O(c,7),a.Fb=O(c,3)):(a.ua=-1,a.pa=-1,a.Fb=-1)},tla=function(a,c){if(c=jD(c).find(function(f){return!!(O(f,2)&1)})){var b=O(c,5),d=O(c,7),e=O(c,3);[].concat(n(a.ha.keys())).forEach(function(f){-1!=b&&-1!=f.ua&&(b+=f.ua);-1!=d&&-1!=f.pa&&(d+=f.pa);-1!=e&&(e=Math.max(e,f.Fb))});S(c,150,b);S(c,151,d);S(c,153,e)}},o1=function(){},n1=function(a){this.b=a},f1=function(a){eI.call(this);this.w=a};q(f1,eI);
f1.prototype.j=function(a){var c=this;eI.prototype.j.call(this,a);var b=0<this.w.ha.size?2:1;if(a=T(a,QC,4))S(a,170,b),(U(a,RC,5)||[]).forEach(function(d){sla(c.w,d);0<c.w.ha.size&&tla(c.w,d)})};var p1=function(a){My.call(this);this.s=a;this.f=null;this.g=[];this.j=this.m=!1;this.C=new MX;this.o=null};x(p1,My);p1.prototype.ia=function(){this.g=[];this.f=null;p1.Ga.ia.call(this)};var r1=function(a){var c=a.f,b=a.g[a.g.length-1]||null;y(a.g,function(d){"sc"==d.f.getContent()&&(b=d)});c!=b&&(a.f=b,q1(a))};p1.prototype.D=function(a){var c=this.f;r1(this);c&&c==this.f&&a.target==c.f&&q1(this)};
var q1=function(a){a.w()||(a.j?a.m=!0:(a.m=!1,a.j=!0,bv([a.s.cb,a.s.Qa,a.s.o]).then(function(c){var b=c[0],d=c[1];c=c[2];if(null!=this.f){var e=this.C,f=this.f.f;var g=new cR;g.ga(b);g.Na(f.ba());g.Nj(f.getId());g.vb(QX(e,f.Ya));var k="mu"==f.getState();g.jf(new dR);var m=T(g,dR,5);S(m,1,k);if("a"==f.Ya)null!=f.ff&&(e=new hR,S(e,2,f.ff),f=f.ba(),S(e,1,f),V(g,8,e));else if("v"==f.Ya){k=new fR;V(g,7,k);k=T(g,fR,7);a:{m=f.getContent();switch(m){case "ca":m=1;break a;case "sc":m=2;break a}B(e.l,"Unknown media content: "+
m);m=void 0}S(k,1,m);k=f.hd&&z(f.hd);null!=k&&(f=T(g,fR,7),e=Nb(k,e.j,e),rl(f,3,e))}g.ga(b);g.Na(d);g.Nj(this.f.f.getId());this.o=g}else this.o&&(g=this.o,b=T(g,dR,5),S(b,1,!0));g?c.add(g).then(this.h,this.h,this):this.h()},a.h,a)))};p1.prototype.h=function(){this.j=!1;this.m&&q1(this)};var s1=function(a,c,b,d,e){Y.call(this);this.J=new MX;this.g=a;this.F=c;this.C=e;this.f=new Jm;this.o=new dX;this.o.D=this;this.m=new My(this);this.b(this.m);this.m.listen(this.F,"Za",this.s);this.m.listen(this.C,["xa","V"],this.s);y(d,this.j,this)};x(s1,xX);s1.prototype.j=function(a){""==a.ba()&&a.Na(this.g);this.o.add(a)};s1.prototype.h=function(a){return a==this.g?this.o:this.f.get(a,null)};
s1.prototype.H=function(a){var c=new Fn;y(a,function(b){if(b!=this.g&&(c.add(b),!Mm(this.f,b))){var d=new dX;d.D=this;this.f.set(b,d);this.N(new hX("jb",b,d))}},this);y(this.f.wb(),function(b){if(!c.contains(b)){var d=this.f.get(b);this.f.remove(b)&&this.N(new hX("kb",b,d))}},this);this.s()};
s1.prototype.s=function(){var a=new Fn;y(this.F.get(),function(c){var b=this.f.get(c.ba());if(null!=b){var d=this.J,e=c.ba();var f=c.wa();var g=RX(d,c.la()),k="un";if(null!=T(c,fR,7)){a:{k=O(T(c,fR,7),1);switch(k){case 1:k="ca";break a;case 2:k="sc";break a}B(d.l,"Unknown capture type: "+k);k="un"}var m=OX(d,U(T(c,fR,7),gR,3),d.s,d)||void 0}if(null!=T(c,hR,8)){var p=cl(T(c,hR,8),2);p=r(p)?p:void 0}var v=T(c,dR,5)&&T(c,dR,5).bd()?"mu":"li";d=null;null!=e&&null!=f&&null!=g&&(d=new HF(e,f,g,null!=k?
k:void 0,v,p,m));null!=T(c,dR,5)&&(e=T(c,dR,5),O(e,2));null!=T(c,eR,6)&&O(T(c,eR,6),1);f=d;null!=f&&(e=eX(b,f.Ya,f.getId(),f.ba()),null!=e?(e.setContent(f.getContent()),b=f.ff,e.ff!=b&&(e.ff=b,e.N("I")),e.lb(f.getState()),b=f.hd&&z(f.hd),GF(e,b)&&e.N("K")):b.add(f))}a.add(t1(c.ba(),c.wa()))},this);y(Pka(this.C),function(c){var b=c.ba(),d=c.wa();if(b!=this.g&&!a.contains(b+"/"+d)){c=c.getInfo().la();var e=this.f.get(b);null!=e&&!eX(e,c,d,b)&&e.add(new HF(b,d,c));a.add(b+"/"+d)}},this);y(this.f.na(),
function(c){y(z(c.f),function(b){a.contains(t1(b.ba(),b.getId()))||c.remove(b)},this)},this)};var t1=function(a,c){return a+"/"+c};var u1=function(a,c,b,d){j1.call(this,a,c,d);this.D=!1;this.F=new vX;this.m=this.F.b;this.T=new vX;this.g=this.T.b;this.g.then(function(e){this.listen(e,"Za",db(this.qa,e));this.qa(e)},null,this);this.da=new vX;this.o=this.da.b;this.s={};this.fa=this.C=this.W=null;this.h={cb:"",Qa:"",cookie:null};this.O=null;QB(a,CD,!1).then(t(function(e){this.O=e},this));b&&this.Jg(b)};x(u1,j1);
var ula={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},vla={1:0,2:307,3:303,4:217,5:305,6:307,7:307,8:306,11:217};u1.prototype.qa=function(a){m1(this,Nb(a.get(),function(c){return c.ba()}))};
u1.prototype.connect=function(a,c){return this.qe.then(function(){C(this.R,"connect() was called");if(0!=this.getState())return B(this.R,"connect() failed. Not in INITIALIZED. State: "+this.getState()),Yu(new o1(this.getState()));var b=dv();this.lb(1);if(Ja(a)){Pf(this.R,"Skipping Hangout resolution");var d=zY(this.ya,this.f,a);v1(this,b,d,c||null)}else wla(this,b,a,c);return b.Y},void 0,this)};
var wla=function(a,c,b,d){Pf(a.R,"Resolving Hangout");b.then(function(e){v1(this,c,e,d||null)},function(e){B(this.R,"Hangout resolve failed, reverting to INITIALIZED state");this.lb(0);c.reject(new w1(306,e))},a)},v1=function(a,c,b,d){var e=zl(b.j).ma();Pf(a.R,"connectToHangout(). HangoutId: "+e);1!=a.getState()?(B(a.R,"connectToHangout() failed, not in CONNECTING state. State: "+a.getState()),c.reject(new w1(302,new o1(a.getState()))),Yt(b)):(a.h.cb=e,a.h.Qa=d||"",a.C=qu(Uf(),"beforeunload",a.Hm,
!1,a),a.fa=qu(Uf(),"unload",a.Hm,!1,a),a.kl(e,d,c,b,0))};h=u1.prototype;h.Bn=function(a){bv([this.g,this.Qa]).then(function(c){var b=c[0].cc();b.Na(c[1]);b.bk([a]);nW(this.g.get(),b)},void 0,this)};h.An=function(){};
h.kl=function(a,c,b,d,e){this.sessionId.then(function(f){var g=yY(this.ya,this.f,[a],new XV(tQ,[tQ.prototype.ma],[tQ.prototype.ga],[tQ.prototype.ba],[tQ.prototype.Na],xQ,[xQ.prototype.ma],[xQ.prototype.ga],[xQ.prototype.ba],[xQ.prototype.Na]),rY,"Ja","HangoutParticipant");Pf(this.R,"Adding participant");var k=g.cc();k.bk([f]);kd(c||"")||k.Na(c);g.add(k).then(t(this.Fr,this,b,d,g,e),t(this.Dm,this,b,d,g))},void 0,this)};
h.Fr=function(a,c,b,d,e){var f=e[0].ma(),g=e[0].ba();this.h.Qa=g;1!=this.getState()?(B(this.R,"add participant succeeded, but we are no longer CONNECTING. State: "+this.getState()),a.reject(new w1(302,new o1(this.getState()))),a=new tQ,a.ga(f),a.Na(g),b.remove(a).then(this.Ah,null,this),Yt(c),Yt(b)):(C(this.R,"add participant succeeded"),10==R(e[0],17,0)?(C(this.R,"participant in knocking state"),30>d?(C(this.R,"will attempt again after delay"),sv(1E3).then(t(this.kl,this,f,g,a,c,d+1))):(C(this.R,
"max knock attempt, failing join"),this.Dm(a,c,b,234))):(C(this.R,"success adding and not a knock result"),f=zl(c.j).ma(),this.F.resolve(c),this.T.resolve(b),this.b(c),this.b(b),l1(this,a,f,g),c.start(),b.start()))};h.Dm=function(a,c,b,d){this.Ah();B(this.R,"add participant failed, moving back to INITIALIZED state");this.lb(0);Yt(c);Yt(b);a.reject(new w1(xla(d),d))};
h.Cg=function(){var a=u1.Ga.Cg.call(this);a.hangout=t(function(){return this.m.get()&&jW(this.m.get())},this);a.participants=t(function(){return this.g.get()&&jW(this.g.get())},this);a.mediaSources=t(function(){return this.o.get()&&jW(this.o.get())},this);return a};h.sl=function(){var a=Zja(this.ya,this.f,this.cb.get());this.b(a);this.da.resolve(a);a.start();return new s1(this.Qa.get(),a,this.g.get(),this.xa.C.concat().map(function(c){return c.f}),this.xa)};
h.gh=function(a,c){var b=this;this.W=c;this.h.cookie=this.f.h.h.b;var d=Xu();if(a&&!this.D){C(this.R,"Removing participant on disconnect");d=new tQ;d.ga(this.cb.get());d.Na(this.Qa.get());var e={};e.jYdIne=c;d=this.g.get().remove(d,e,2).then(this.Ah,null,this)}gv(d,function(){b.f.h.h.b=null;j1.prototype.gh.call(b,a,c)});yc(this.s,Yt);Kc(this.s);d=new n1(c);this.F.reject(d);this.T.reject(d);this.da.reject(d);null!=this.m.get()&&this.m.get().stop();null!=this.g.get()&&this.g.get().stop();null!=this.o.get()&&
this.o.get().stop()};h.Nh=function(a){if(3==this.getState()||4==this.getState())return C(this.R,"addCapture() failed, because we are disconnecting"),!1;var c=this.s[a.f.getId()];if(c&&Ub(c.g,a))return B(this.R,"HangoutCall.addCapture() failed because we already have this capture"),!1;c||(c=new p1(this),this.s[a.f.getId()]=c);c.listen(a.f,["H","I","J","K"],c.D);c.g.push(a);r1(c);return u1.Ga.Nh.call(this,a)};h.Ah=function(){null!=this.C&&yu(this.C);null!=this.fa&&yu(this.fa)};
h.Hm=function(){this.Ah();var a=O(this.f,12),c=null!=this.W?this.W:63;if(null!=a){var b=new mV;S(b,5,c);var d=new xQ;d.ga(this.h.cb);kd(this.h.Qa)||d.Na(this.h.Qa);nV(b,[d]);d=eia(this.f);var e=T(d,QO,2);S(e,4,this.Wb);V(d,2,e);b.setRequestHeader(d);d=new Cl;V(d,3,this.h.cookie||this.f.h.h.b);b.M(d);b=b.Ba();d=this.O?x1(this.O,this):[];d=Nb(d,function(g){return g.Ba()},this);if(null!=navigator.sendBeacon){var f=new FormData;f.append("r",b);y(d,function(g){f.append("l",g)});this.D=navigator.sendBeacon(a,
f)}this.D||(a=Pr(a,"r",b),a=Pr(a,"l",d),b=vw(tw),b.open("GET",a,!1),b.send(null));this.D=!0}this.disconnect(c)};var xla=function(a){var c=null,b=null;try{c=a.response.aq,b=c[0]}catch(e){}var d;"chparp"===b?(a=new IU(c),(c=a.getResponseHeader())&&(d=10==c.Va()?ula[O(a,4)]||209:vla[c.Va()])):r(a)&&(d=a);return Ia(d)?d:302},w1=function(a,c){this.un=a;this.Yd=c};var y1=function(a,c,b,d,e,f){TV.call(this);this.l=Mf("realtime.collections.apiary.OperationExecutor");this.f=[];this.h=c;this.o=c instanceof pP?c:null;this.j=a;this.J=b||function(){return Xu(null)};this.O=Ia(d)?d:8;this.T=bP(e||0,f)};x(y1,TV);var z1=function(a){var c=new ZO;aP(c,new SO);UO(T(c,SO,1),a.O);var b=new QO;return a.J().then(function(d){d&&S(b,4,d);V(c,2,b);d=T(c,QO,2);S(d,1,a.j);S(c,4,"en");V(c,7,a.T);return c})};
y1.prototype.execute=function(a,c){if(a.Ih())throw new pY(a);this.o&&!Ia(c)&&a.C?(this.f.push(a),1==this.f.length&&Nu(this.H,this)):A1(this,a,c)};y1.prototype.H=function(){for(var a=0;a+5<this.f.length;)B1(this,gc(this.f,a,a+5)),a+=5;1==this.f.length-a?A1(this,this.f[a]):B1(this,gc(this.f,a));this.f.length=0};
var A1=function(a,c,b){var d=c.h,e=oY(c);z1(a).then(function(f){e.setRequestHeader(f);C(a.l,"Making request for operation: "+c+", jid: "+a.j);f=c.Kg();var g=Ia(b)?b:c.Qf(),k=Math.max(g,c.Oh()||0);hv(a.h.makeRequest(d,e,g,f,k,{isCollectionOperation:!0}).then(t(a.D,a,c)),t(a.g,a,c))})};
y1.prototype.D=function(a,c){var b=c.getResponseHeader();if(1==b.Va())b=a.H(c),c=Xa(c.K)&&null!=c.K()?c.K().Hb():null,Ja(c)&&(c=parseInt(c,10)),c=new GV(b,null==c?-1:c),C(this.l,"Apiary operation succeeded for "+a+", result: "+c),a.j=!0,a.If().resolve(c);else{var d=Error(O(b,8));d.stack=O(b,2)||"Missing Stack";Of(this.l,"Apiary operation "+a+" failed with status "+b.Va(),d);this.g(a,new gP("fatal","backend",null,c))}};
y1.prototype.g=function(a,c){a.j=!0;Of(this.l,"Apiary operation failed for "+a+": "+c);a.If().reject(c)};
var B1=function(a,c){var b=new DU;z1(a).then(function(d){b.setRequestHeader(d);tia(b,Nb(c,function(f){var g=oY(f),k=new BU;f.C.call(k,g);return k},a));C(a.l,"Making bulk request for "+c.length+"operations , jid: "+a.j);d=Math.max.apply(null,Nb(c,function(f){return f.Kg()}));var e=Nb(c,function(f){return f.Qf()});e=Mb(e,Ia);e=e.length?Math.min.apply(null,e):void 0;hv(a.h.makeRequest("hangouts/bulk",b,e,d,void 0,{isCollectionOperation:!0}).then(t(a.L,a,c)),t(a.F,a,c))})};
y1.prototype.L=function(a,c){rP(this.o,c);var b=U(c,dV,2);y(a,function(d,e){(e=d.L.call(b[e]))?(rP(this.o,e),this.D(d,e)):this.g(d,new gP("fatal","backend",null,c))},this)};y1.prototype.F=function(a,c){y(a,function(b){this.g(b,c)},this)};var zla=function(a,c,b){var d=0;Ia(void 0)&&(b=zl(b),S(b,5,!0),d=u()+void 0);var e=dv(),f=function(m){u()>=d?e.reject(m):qv(k,5E3)},g=function(m){1==m.getResponseHeader().Va()?(m=m.ma(),e.resolve(zY(a,c,m))):f(new gP("fatal","backend",null,m))},k=function(){hv(yla(a,c,b).then(g),f)};k();return e.Y},yla=function(a,c,b){a=YX(WX.Ja(),a,c);var d=a.h;b=zl(b);return z1(a).then(function(e){b.setRequestHeader(e);return d.makeRequest("hangouts/resolve",b)})};var C1=function(a,c,b,d){var e=this;this.kf=a;this.b={};yc(c,function(f,g){return e.b[g.toLowerCase()]=f});this.Rd=b;this.g=d};C1.prototype.zd=function(){return Lc(this.b)};C1.prototype.Li=function(){return this.g};var D1=function(a,c,b,d){d=void 0===d?{}:d;C1.call(this,a,c,b,d)};q(D1,C1);var E1=function(a,c,b,d,e,f,g,k){f=void 0===f?null:f;g=void 0===g?null:g;k=void 0===k?[]:k;W.call(this);this.j=a;this.g=c;this.T=b;this.m=null;this.O=d;this.W=e;this.h=f;this.J=g;this.H=k;this.f=[this];this.L=0;this.F=dv();this.o=!1;this.C=this.s=this.D=void 0;this.Ka=++Ala};q(E1,W);h=E1.prototype;h.merge=function(a){return a.g==this.g&&a.j==this.j&&this.h&&a.h&&a.h(F1(this))?(this.f.push(a),!0):!1};h.Cj=function(a){this.L=a;return!0};h.If=function(){return this.F};h.Ph=function(){return this.F.Y};
h.Ih=function(){return this.o};var Bla=function(a){var c={},b=null,d=new Set;a.f.forEach(function(e){b=b||e.J;e.H.forEach(function(f){return d.add(f)})});b&&(c["X-Goog-Meeting-Botguardid"]=b);return c},F1=function(a){a.m||(a.m=a.T(a));return a.m},G1=function(a,c){a.f.forEach(function(b){b.o=!0;if(c instanceof D1){var d=b.W(c);b.If().resolve(new GV(d.data,d.version))}else b.If().reject(c)})};h=E1.prototype;h.Qh=function(a){this.D=a};h.Zf=function(a,c){Ia(c)&&(c=Math.max(a,c));this.s=a;this.C=c};
h.Kg=function(){return this.f.reduce(function(a,c){return H1(a,c.D)},void 0)||0};h.Qf=function(){return this.f.reduce(function(a,c){return H1(a,c.s)},void 0)};h.Oh=function(){return this.f.reduce(function(a,c){return H1(a,c.C)},void 0)};h.Gh=function(){return this.g};h.Ni=function(){return F1(this).Ba()};h.toString=function(){return"[Operation id: "+this.Ka+": service: "+this.j+", call: "+this.g+", version: "+this.L+"]"};
var I1=function(a){a=parseInt(a.b.etag||null,10);return isNaN(a)?-1:a},J1=function(){Eb.call(this);this.message="Operation has already been executed.";this.name="AlreadyExecutedError"};q(J1,Eb);var H1=function(a,c){return void 0==a?c:void 0==c?a:Math.min(a,c)},Ala=0;var K1=function(a){N(this,a,0,-1,Cla,null)};x(K1,M);var Cla=[3],Dla=function(a){a=new lk(a);for(var c=new K1;nk(a)&&!mk(a);)switch(a.f){case 1:var b=a.b.w();kl(c,1,b,0);break;case 2:b=rk(a);ll(c,2,b);break;case 3:b=new HR;a.g(b,zha);sl(c,3,b,HR,void 0);break;default:ok(a)}return c};K1.prototype.u=function(){var a=new D;var c=R(this,1,0);0!==c&&a.f(1,c);c=this.getMessage();0<c.length&&K(a,2,c);c=U(this,HR,3);0<c.length&&L(a,3,c,IR);return F(a)};K1.prototype.getMessage=function(){return R(this,2,"")};var L1=function(a,c,b,d,e,f){d=void 0===d?{}:d;e=void 0===e?null:e;f=void 0===f?null:f;var g=b instanceof K1;C1.call(this,a,c,g?null:b,d);this.Rg=g?b:null;this.h=f;this.f=e};q(L1,C1);L1.prototype.getMessage=function(){return this.h};var Ela=function(a){var c=null,b="validation failed";c=void 0===c?null:c;b=void 0===b?null:b;var d=a instanceof L1?a.Rg:null;return new L1(a.kf,a.zd(),d||a.Rd,a.Li(),c,b)};var N1=function(a,c,b,d,e,f){var g=this;f=void 0===f?{}:f;this.w=a;this.j=c;this.f=b;this.b={};yc(d,function(k,m){return M1(g,m,k)});this.g=Mc(f);this.h=null;this.h=e?e.clone():null};N1.prototype.getContext=function(){return this.w};N1.prototype.zd=function(){var a={};yc(this.b,function(c,b){c=Xa(c)?c():c;null!=c&&(a[b]=c)});return a};var O1=function(a,c){a=a.b[c.toLowerCase()]||null;return Xa(a)?a():a},M1=function(a,c,b){c=c.toLowerCase();null==b?delete a.b[c]:a.b[c]=b};
N1.prototype.clone=function(){return new N1(this.w,this.j,this.f,this.b,this.h,this.g)};var P1=function(a){return{b:a}};var Q1=function(){},Fla=function(){Q1.Ja();return Ea(function(){throw Error("Worker not ready");})};Ra(Q1);var R1=function(){this.b=!1},S1=function(a){var c=new R1;c.b=a;return c},Gla=function(a,c,b){var d=c.getContext();M1(c,"Content-Type","application/x-protobuf");M1(c,"X-Goog-Api-Key",T1(d)||null);M1(c,"X-Goog-Encode-Response-If-Executable","base64");var e=U1(d)+("/$rpc/"+c.j+"/"+c.f),f=dv(),g=new ww;g.listen("complete",a.f.bind(a,f,b));wu(g,"ready",g.Za);V1(d)&&(g.m=Math.max(0,V1(d)));g.F=!0;g.s="arraybuffer";b=c.h;var k=null,m=null;if(b){var p=t(b.u,b);k=(b=p())?b.length:null;if(a=a.b&&b)if(a=1024<=
b.length)Q1.Ja(),a=!1;a?Fla().then(function(v){M1(c,"Content-Encoding","gzip");k=v.length;g.send(e,"POST",v,c.zd());m="gzip-on"},function(){g.send(e,"POST",p(),c.zd());m="gzip-failed"}):(g.send(e,"POST",b,c.zd()),m="gzip-off")}else g.send(e,"POST",null,c.zd()),m="no-body";c.g.sendPath=m;c.g.bodySize=String(k||0);hv(f.Y,function(v){v instanceof Su&&g.abort()});return f.Y};
R1.prototype.f=function(a,c,b){var d={Im:0};try{var e=b.target,f=e.Va(),g=Saa(e),k=Raa(e),m=new Uint8Array(k&&k||null);d={Im:m.length||0};m&&Ac(g,function(v,A){return"BASE64"==v.toUpperCase()&&"X-GOOG-SAFETY-ENCODING"==A.toUpperCase()})&&(m=Vj(Pj(m)));if(Gw(e))try{a.resolve(new D1(f,g,c?c(m):null,d))}catch(v){a.resolve(new L1(10002,g,null,d,v,"Failed to decode response"))}else{var p=Hla(f,e.o);try{a.resolve(new L1(p,g,Dla(m),d,Error(Ja(e.h)?e.h:String(e.h))))}catch(v){a.resolve(new L1(p,g,null,d,
v,"Failed to decode status"))}}}catch(v){a.resolve(new L1(10005,{},null,d,v,"Failure in XHR result processing"))}};var Hla=function(a,c){return 0!=a?a:6==c?10007:c+3E4};var Ila=new R1,W1=function(a){this.b=void 0===a?null:a;this.w=this.h=this.C=this.f=this.j=this.s=null;this.D=[];this.g=[];this.o=[]};W1.prototype.m=function(){var a=new W1;a.setApiKey(T1(this));a.j=U1(this);a.f=V1(this);a.C=X1(this);a.h=Y1(this);a.w=Z1(this);y($1(this),function(c){return a2(a,c)});y(b2(this),function(c){a.g.push(c)});y(c2(this),function(c){return d2(a,c)});return a};var U1=function(a){return null!=a.j?a.j:a.b?U1(a.b):""};W1.prototype.setApiKey=function(a){this.s=a};
var T1=function(a){return null!=a.s?a.s:a.b?T1(a.b):""},V1=function(a){return null!=a.f?a.f:a.b?V1(a.b):6E4},X1=function(a){return null!=a.C?a.C:a.b?X1(a.b):3E5},Jla=function(a,c){a.h=c},Y1=function(a){return null!=a.h?a.h:a.b?Y1(a.b):0},Kla=function(a){var c=S1(!1);a.w=c},Z1=function(a){return a.w?a.w:a.b?Z1(a.b):Ila},a2=function(a,c){a.D.push(c)},$1=function(a){return a.b?a.D.concat($1(a.b)):a.D.concat()},b2=function(a){return a.b?a.g.concat(b2(a.b)):a.g.concat()},d2=function(a,c){a.o.push(c)},
c2=function(a){return a.b?a.o.concat(c2(a.b)):a.o.concat()};var Mla=function(){var a=this;this.b=new rz(100);this.f={onRequest:function(c,b){for(var d=[],e=1;e<arguments.length;++e)d[e-1]=arguments[e];a.b.add({name:d[0].zh.f,initReq:e2(c),req:e2(d[0].zh),resp:f2(d[0].response),attemptsHistory:Lla(d)})}}},Nla=function(a,c,b,d){c=void 0===c?"":c;b=void 0===b?100:b;d=void 0===d?!1:d;c=c.toLowerCase();a=a.b.na().filter(function(e){return-1!=e.name.toLowerCase().indexOf(c)&&(!d||400<=e.resp.code)});return a.slice(-Math.min(a.length,b))},h2=function(a,c){var b=
void 0===b?!1:b;return Nla(g2(),a,c,b)},Ola=function(a){var c=g2();d2(a,c.f)},g2=function(){i2||(i2=new Mla);return i2},i2=null,j2=function(a){if(a){if(a.Ba)return JSON.parse(a.Ba());if(Wa(a))return Nb(a,function(c){return j2(c)})}return a},e2=function(a){return{name:a.j+"/"+a.f,body:Hv(j2(a.h)),head:a.zd(),meta:a.g}},f2=function(a){var c={code:a.kf,body:Hv(j2(a.Rd)),head:a.zd()};a instanceof L1&&(c.status=Hv(j2(a.Rg)),c.ex=a.f,c.msg=a.getMessage());return c},Lla=function(a){var c=[];y(a,function(b){var d=
e2(b.zh),e=f2(b.response);c.push({Yf:(new Date(b.Yf)).toString(),Xg:(new Date(b.Xg)).toString(),zh:d,response:e})});return c};w("grpc_lookup",function(a){return h2(a,1)[0]});w("grpc_dump",function(a,c){return h2(a,c)});var Pla=function(a,c){var b=this;this.w=new NL(1E3,36E4);this.b=a.getContext();this.o=a;a=V1(this.b);var d=X1(this.b);this.g=0<a?new NL(a,Math.max(a,d)):null;this.D=c;this.f=dv();this.s=0;this.h=this.m=!1;k2(this.f.Y,function(){b.h=!0});this.j=[];l2(this)},l2=function(a){var c=u();Qla(a).then(function(b){a.j.unshift({Yf:c,Xg:u(),zh:b.request,response:b.response});2==b.eg&&a.s<Y1(a.b)?Rla(a):Sla(a,b)})},Rla=function(a){a.s++;a.g&&(OL(a.g),a.b.f=a.g.b);var c=sv(a.w.b).then(function(){return l2(a)});
OL(a.w);k2(a.f.Y,function(){return c.cancel()})},Sla=function(a,c){a.m||(0==c.eg?a.f.resolve(c.response):(c.response instanceof D1&&(c.response=Ela(c.response)),a.f.reject(c.response)),a.m=!0,y(c2(a.b),function(b){return Nu(function(){return b.onRequest.apply(b,[a.o.clone()].concat(n(a.j)))})}))},Qla=function(a){var c=dv().Y;k2(a.f.Y,function(){return c.cancel()});var b=a.o.clone(),d=!1,e={Im:0},f=[],g=Tla(a,c,b),k=g.then(function(v){return d?new L1(20002,{},null):Ula(a,c,v)}),m=bv([g,k]).then(function(v){return d?
1:Vla(a,c,v[0],v[1])},function(){return 3});f.push(cv([g,k,m]).then(function(v){return v[0].ae?v[1].ae?v[2].ae?{request:v[0].value,response:v[1].value,eg:v[2].value}:{request:v[0].value,response:new L1(10006,v[1].value.zd(),v[1].value.Rd,v[1].value.Li(),v[2].reason),eg:3}:{request:v[0].value,response:new L1(10005,{},null,e,v[1].reason),eg:3}:{request:b.clone(),response:new L1(10004,{},null,e,v[0].reason),eg:3}}));if(a.g){var p=sv(a.g.b).then(function(){d=!0;return{request:b.clone(),response:new L1(10001,
{},null,e,null,"Client timed out"),eg:2}});k2(c,function(){return p.cancel()});f.push(p)}f=av(f);gv(f,function(){return c.cancel()});return f},Tla=function(a,c,b){if(a.h)return Yu(new Su);var d=Nb($1(a.b),function(e){try{return e.b(b)||Xu()}catch(f){return Yu(f)}});k2(c,function(){return y(d,function(e){return e.cancel()})});return bv(d).then(function(){return b.clone()})},Ula=function(a,c,b){if(a.h)return Yu(new Su);var d=Gla(Z1(a.b),b,a.D);k2(c,function(){return d.cancel()});return d},Vla=function(a,
c,b,d){if(a.h)return Yu(new Su);var e=Nb(b2(a.b),function(f){return f.b(b,d)});k2(c,function(){return y(e,function(f){return f.cancel()})});return bv(e).then(function(f){return Ob(f,function(g,k){return Math.max(g,k)},d instanceof D1?0:1)})},k2=function(a,c){hv(a,function(b){b instanceof Su&&c()})};var m2=function(a,c){W1.call(this,void 0===c?null:c);this.F=a};q(m2,W1);var n2=function(a,c,b,d,e,f){d=void 0===d?null:d;e=void 0===e?{}:e;f=void 0===f?{}:f;a=new N1(a.m(),a.F,c,e,b,f);return(new Pla(a,d)).f.Y};m2.prototype.m=function(){return new m2(this.F,W1.prototype.m.call(this))};var Wla=new Set([502,504,500,503]),Xla=new Set([0,-1,10007]),Yla={b:function(a,c){return Xu(Wla.has(c.kf)?2:0)}},Zla={b:function(a,c){return Xu(Xla.has(c.kf)?2:0)}};var $la=["ResolveMeetingSpace","CreateMeetingSpace"],ama=function(a,c){a=new W1(a);a2(a,P1(function(b){null!=O1(b,"X-Goog-Meeting-Token")||Ub($la,b.f)||M1(b,"X-Goog-Meeting-Token",$w(c))}));d2(a,{onRequest:function(b,d){for(var e=[],f=1;f<arguments.length;++f)e[f-1]=arguments[f];if((e=e[0].response.b["x-goog-meeting-token"]||null)&&e&&(e=e.split(";"),f=Number(e[0]),!isNaN(f))){var g=new Dl;S(g,2,f);S(g,1,e[1]);Zw(c,g)}}});return a},cma=function(a){var c=bx();c=void 0===c?new Yw:c;this.h=Sr("https://meetings.clients6.google.com",
"/v1/${path}");this.b=c;this.f=bma(this,a);this.g=ama(this.f,this.b);this.pm=null},bma=function(a,c){var b=new W1;b.setApiKey("");b.j="https://meetings.clients6.google.com";b.h=2;b.f=2E4;Kla(b);b.g.push(Yla);b.g.push(Zla);b.g.push(dma);a2(b,P1(function(d){if(!O1(d,"X-Goog-Meeting-Debugid"))return QB(c,HD).then(function(e){(e=e.f)&&M1(d,"X-Goog-Meeting-Debugid",e)})}));d2(b,{onRequest:function(d,e){for(var f=[],g=1;g<arguments.length;++g)f[g-1]=arguments[g];if(f=f[0].response.b["x-goog-meeting-debugid"]||
null)a.pm=f}});Ola(b);return b},dma={b:function(a,c){return Xu(400==c.kf?2:0)}};var o2=function(a){TV.call(this);this.l=Mf("realtime.collections.oneplatform.OperationExecutor");this.C=QB(a,jP);this.f=new Set};q(o2,TV);o2.prototype.execute=function(a,c){var b=this;if(a.Ih())throw new J1(a);a.h?[].concat(n(this.f)).find(function(d){return d.merge(a)})?r(c)&&a.Zf(c):(this.f.add(a),1==this.f.size&&UV(this),Nu(function(){b.f.delete(a);p2(b,a,c)})):p2(this,a,c)};
var p2=function(a,c,b){b=void 0===b?null:b;C(a.l,"Making request for operation: "+c);var d=r(b)?b:c.Qf();a.C.then(function(e){e=new m2(c.j,e.g);r(d)&&(e.f=d);Jla(e,c.Kg());hv(n2(e,c.g,F1(c),c.O,Bla(c),{JA:!0}).then(function(f){G1(c,f)}),function(f){return q2(a,c,f)})},function(e){return q2(a,c,e)})},q2=function(a,c,b){a=a.l;if(Ya(b))if("undefined"==typeof b)var d="undefined";else if(null==b)d="NULL";else{var e=[];for(d in b)if(!Xa(b[d])){var f=d+" = ";try{f+=b[d]}catch(g){f+="*** "+g+" ***"}e.push(f)}d=
e.join("\n")}else d=b;Of(a,"OnePlatform operation failed for "+(c+": "+d));G1(c,b)};var r2=function(){};q(r2,aY);r2.prototype.f=function(a,c,b,d){if(!d)return null;if(s2.has(a))return s2.get(a);c=new o2(a);s2.set(a,c);Xt(a,function(){return s2.delete(a)});return c};var s2=new WeakMap;oX(VX,r2,10);var t2=function(a){N(this,a,0,-1,null,null)};x(t2,M);var ema=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=kk(c.b);kl(a,1,b,0);break;case 2:b=rk(c);ll(a,2,b);break;default:ok(c)}return a};t2.prototype.u=function(){var a=new D;u2(this,a);return F(a)};var u2=function(a,c){var b=jl(a,1);0!==b&&Lk(c,1,b);b=R(a,2,"");0<b.length&&K(c,2,b)};var v2=function(a){N(this,a,0,-1,fma,null)};x(v2,M);var fma=[7],gma=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=rk(c);ll(a,1,b);break;case 2:b=jk(c.b);kl(a,2,b,0);break;case 3:b=c.b.w();kl(a,3,b,0);break;case 4:b=pk(c);kl(a,4,b,!1);break;case 5:b=kk(c.b);kl(a,5,b,0);break;case 6:b=rk(c);ll(a,6,b);break;case 7:b=new t2;c.g(b,ema);sl(a,7,b,t2,void 0);break;default:ok(c)}return a};v2.prototype.u=function(){var a=new D;w2(this,a);return F(a)};
var w2=function(a,c){var b=a.getDeviceId();0<b.length&&K(c,1,b);b=R(a,2,0);0!==b&&H(c,2,b);b=a.Hb();0!==b&&c.f(3,b);(b=il(a,4,!1))&&I(c,4,b);b=jl(a,5);0!==b&&Lk(c,5,b);b=R(a,6,"");0<b.length&&K(c,6,b);b=U(a,t2,7);0<b.length&&L(c,7,b,u2)};v2.prototype.getDeviceId=function(){return R(this,1,"")};v2.prototype.Hb=function(){return R(this,3,0)};var x2=function(a){N(this,a,0,-1,null,null)};x(x2,M);var hma=function(a,c){for(;nk(c)&&!mk(c);)switch(c.f){case 1:var b=qk(c);a.lb(b);break;default:ok(c)}return a};x2.prototype.u=function(){var a=new D;y2(this,a);return F(a)};var y2=function(a,c){a=a.getState();0!==a&&J(c,1,a)};x2.prototype.getState=function(){return R(this,1,0)};x2.prototype.lb=function(a){ml(this,1,a)};var z2=function(a){N(this,a,0,-1,null,pl)};x(z2,M);var pl=[[1,2]];z2.prototype.u=function(){var a=new D;var c=T(this,v2,1);null!=c&&a.b(1,c,w2);c=T(this,x2,2);null!=c&&a.b(2,c,y2);return F(a)};var C2=function(a){W.call(this);this.g=new HV(this);A2(a);this.m=a.getDeviceId();R(a,2,0);this.h=a.Hb();this.f=il(a,4,!1);jl(a,5);B2(a);this.j=x0();this.onUpdated=this.g.signal()};q(C2,W);C2.prototype.update=function(a){var c=a.Hb();return c>this.h?(this.h=c,this.f=il(a,4,!1),B2(a),x0(),JV(this.g,this.onUpdated,void 0),!0):!1};C2.prototype.getDeviceId=function(){return this.m};C2.prototype.isFinal=function(){return this.f};C2.prototype.getCreationTime=function(){return this.j};
var A2=function(a){return a.getDeviceId()+"|"+R(a,2,0)},B2=function(a){U(a,t2,7).length?U(a,t2,7).map(function(c){return{text:R(c,2,""),confidence:jl(c,1)}}):R(a,6,"")&&(R(a,6,""),jl(a,5))};var D2=function(a,c){My.call(this);var b=this;this.h=new HV(this);this.C=this.h.signal();this.s=this.h.signal();this.D=this.h.signal();this.g=new Map;this.m=a;this.j=!1;this.f=null;this.listen(this.m,"V",this.o);Cja(c,function(d){if(!b.w()){var e=new ZC;S(e,1,b.j);V(d,183,e)}})};q(D2,My);D2.prototype.ia=function(){E2(this);My.prototype.ia.call(this)};D2.prototype.isEnabled=function(){return this.j};
D2.prototype.setEnabled=function(a){this.w()||a===this.isEnabled()||(this.j=a,this.o(),JV(this.h,this.C,a),a&&j0(this.m,"Stopping p2p due to captions",5823))};D2.prototype.o=function(){var a=this.m.g,c=!!a&&ima.has(a.getState());!this.f||this.j&&c||E2(this);!this.f&&this.j&&c&&(this.f=jma(this,a))};
var jma=function(a,c){var b=c.Rm("captions"),d=ru(b,"M",function(e){e=new lk(e.data);for(var f=new z2;nk(e)&&!mk(e);)switch(e.f){case 1:var g=new v2;e.g(g,gma);ql(f,1,g);break;case 2:g=new x2;e.g(g,hma);ql(f,2,g);break;default:ok(e)}if(null!=O(f,1))if(e=T(f,v2,1),f=A2(e),g=a.g.get(f))g.update(e);else{e=new C2(e);for(a.g.set(f,e);100<a.g.size;)g=l(a.g.entries().next().value),f=g.next().value,g=g.next().value,a.g.delete(f),Yt(g);JV(a.h,a.s,e)}else if(null!=O(f,2))e=T(f,x2,2),JV(a.h,a.D,e.getState());
else throw Error("Received unknown data from MR");});gv(b.g.Y,function(){yu(d);b===a.f&&(a.f=null,a.o())});return b},E2=function(a){a.f&&(Yt(a.f),a.f=null,a.g.forEach(function(c){return Yt(c)}),a.g.clear())},ima=new Set(["STARTED","INPROGRESS","PAUSED"]);var F2=function(){W.call(this);this.h=new HV(this);this.h.signal()};q(F2,W);F2.prototype.ba=function(){return null};var G2=Mf("realtime.meetings.call.StreamingSessionUtil"),kma=function(a,c){return 1==a?c:null},lma=function(a,c){var b=(c=c&&T(c,IS,6))&&U(c,GS,9);return(b=b&&(b.filter(function(d){return R(d,3,0)==a})[0]||null))?b:(c=kma(a,c&&T(c,ES,2)))&&new H2(c)},I2=function(a){var c=mma.map(function(b){return nma(b,a)});return bv(c).then(function(b){b.some(function(d){return d})&&a.C.then(function(d){return d.Vg()});return b.every(function(d){return d})})},nma=function(a,c){var b=c.o;if(!b)return Yu(Error("No spaces collection"));
var d=c.g;if(!d)return Yu(Error("No devices collection"));var e=J2(c);if(!e)return Yu(Error("No local device"));var f=a.rg,g=function(G){var E=new OR;ll(E,1,G);ml(E,2,a.qg);ml(E,3,f);return E};b=b.Aa();var k=(b=lma(f,b))&&b.Va(),m=2===k||3===k?R(b,2,""):null,p=!1,v=!1,A=[];(U(e,OR,16)||[]).forEach(function(G){v=v||1===R(G,2,0);p=p||G.cd()===m;A.push(g(G.cd()))});m&&!p&&(v=!0,A.push(g(m)));return v?(e=d.cc(e.uc()),rl(e,16,A),c.V(K2.get(f).rpc),nW(d,e).then(function(){C(G2,"ack: Modified device");c.V(K2.get(f).kk);
return!0},function(G){C(G2,"ack: Failed to modify device: "+JSON.stringify(G));c.V(K2.get(f).Fi);throw G;})):Xu(!1)},oma=function(a){I2(a);var c=ru(a.o,"Za",function(){return I2(a)});a.onDisconnect.then(function(){return yu(c)})},qma=function(a){pma(a,function(){return I2(a).then(function(c){if(!c)throw Error("Prerequisite not handled");})});a.onConnect.then(function(){return oma(a)})},mma=[{rg:1,qg:3},{rg:1,qg:6},{rg:4,qg:4},{rg:3,qg:3},{rg:4,qg:5}],K2=new Map([[1,{rpc:3852,kk:3831,Fi:3832}],[4,
{rpc:5097,kk:5098,Fi:5099}],[3,{rpc:3852,kk:3831,Fi:3832}]]),rma=new Map([[0,0],[2,2],[3,3],[1,1]]),H2=function(a){GS.call(this);var c=rma.get(a.Eh());ml(this,1,c);this.za(a.cd());c=a.Dh();ml(this,3,c);c=T(a,FS,4);V(this,4,c);a=a.Ch();ll(this,5,a)};q(H2,GS);var L2=function(a,c,b){F2.call(this,a);this.f=b;this.b(this.f);this.g=new My(this);this.b(this.g)};q(L2,F2);var sma=function(a){var c,b;return Ea(function(d){switch(d.b){case 1:return ua(d,(void 0)(a),2);case 2:return c=d.f,ua(d,QB(c,GD),3);case 3:return b=d.f,ua(d,b.initialize(),4);case 4:return d.return(new L2(a,b,c))}})};L2.prototype.ba=function(){return F2.prototype.ba.call(this)};var M2=function(a,c,b){Y.call(this);this.g=a;this.o=b;this.f=new Map;this.m=new dX(!0);this.m.D=this;this.s=new My(this);this.b(this.s);this.s.listen(this.o,["xa","V"],this.C);c.forEach(this.j,this)};q(M2,xX);var tma=function(a,c,b){return new M2(a,c,b)};M2.prototype.j=function(a){""==a.ba()&&a.Na(this.g);this.m.add(a)};M2.prototype.h=function(a){return""==a||a==this.g?this.m:this.f.get(a)||null};
M2.prototype.H=function(a){var c=this,b=new Set;a.forEach(function(d){if(d!=c.g&&(b.add(d),!c.f.has(d))){var e=new dX;e.D=c;c.f.set(d,e);c.N(new hX("jb",d,e))}});this.f.forEach(function(d,e){b.has(e)||(c.f.delete(e),c.N(new hX("kb",e,d)))});this.C()};
M2.prototype.C=function(){var a=this,c=new Map;this.o.g.o.concat(Oka(this.o)).forEach(function(b){var d=b.ba()||a.g,e=b.wa();e=d+"/"+e;c.has(e)?c.get(e).push(b):(c.set(e,[b]),b=a.h(d),null==b&&(b=new dX,a.f.set(d,b),a.N(new hX("jb",d,b))))});c.forEach(function(b){var d=b.find(function(p){return!p.getInfo().bd()})||b[0],e=d.getInfo();b=e.la();var f=d.wa(),g=d.ba()||a.g,k=e.bd()?"mu":"li",m=a.h(g);d=eX(m,b,f,g);null==d?(d=new HF(g,f,b,void 0,k),m.add(d)):d.lb(k);e=e.be();"v"==b&&d.setContent(e?"ca":
"sc");dfa(d,e)});this.f.forEach(function(b){z(b.f).forEach(function(d){c.has(uma(d.ba(),d.getId()))||b.remove(d)})})};var uma=function(a,c){return a+"/"+c};var N2=function(a){return(a=vma.exec(a))?a[1]:null},vma=/^(spaces\/[a-zA-Z0-9_-]+)\//;var O2=function(a){JR.call(this,a);this.s=this.D=null};x(O2,JR);O2.prototype.C=function(){return N2(this.uc())||this.D};O2.prototype.F=function(a){this.D=a};var P2=function(a){N(this,a,0,-1,null,null)};x(P2,M);h=P2.prototype;h.u=function(){var a=new D;var c=O(this,1);null!=c&&K(a,1,c);c=O(this,2);null!=c&&K(a,2,c);return F(a)};h.Mm=function(){return O(this,1)};h.Om=function(a){S(this,1,a)};h.uc=function(){return O(this,2)};h.Nm=function(a){S(this,2,a)};var wma=function(a){if(Ja(a)){var c=N2(a),b=new P2;b.Om(c);b.Nm(a);return b}return a};var Q2=function(a){N(this,a,0,-1,null,null)};x(Q2,M);Q2.prototype.u=function(){var a=new D;var c=O(this,1);null!=c&&K(a,1,c);return F(a)};Q2.prototype.h=function(){return O(this,1)};Q2.prototype.s=function(a){S(this,1,a)};var xma=function(a){if(Ja(a)){var c=new Q2;c.s(a);return c}return a};var R2=function(a){N(this,a,0,-1,null,null)};x(R2,M);R2.prototype.u=function(){var a=new D;var c=R(this,1,"");0<c.length&&K(a,1,c);c=T(this,JR,2);null!=c&&a.b(2,c,TR);(c=il(this,3,!1))&&I(a,3,c);return F(a)};var S2=function(a){N(this,a,0,-1,null,null)};x(S2,M);S2.prototype.u=function(){var a=new D;var c=this.getDeviceId();0<c.length&&K(a,1,c);return F(a)};S2.prototype.getDeviceId=function(){return R(this,1,"")};var T2=function(a){N(this,a,0,-1,null,null)};x(T2,M);T2.prototype.u=function(){var a=new D;var c=R(this,1,"");0<c.length&&K(a,1,c);return F(a)};var U2=function(a){N(this,a,0,-1,yma,null)};x(U2,M);var yma=[1],zma=function(a){a=new lk(a);for(var c=new U2;nk(a)&&!mk(a);)switch(a.f){case 1:var b=new JR;a.g(b,RR);sl(c,1,b,JR,void 0);break;default:ok(a)}return c};U2.prototype.u=function(){var a=new D;var c=U(this,JR,1);0<c.length&&L(a,1,c,TR);return F(a)};var V2=function(a){N(this,a,0,-1,null,null)};x(V2,M);V2.prototype.u=function(){var a=new D;var c=T(this,JR,1);null!=c&&a.b(1,c,TR);return F(a)};var W2=function(a,c){this.b=a;this.f=c};q(W2,qY);h=W2.prototype;h.Ri=function(){return!1};h.Od=function(a){a=a[0];var c=new R2,b=a.C();ll(c,1,b);V(c,2,a);c=X2("CreateMeetingDevice",c,a.s);4==R(a,11,0)&&c.Zf(1E4);return c};h.Pd=function(a){var c=new V2;V(c,1,a[0]);return X2("UpdateMeetingDevice",c,a[0].s)};h.ie=function(){throw Error("Invalid Operation: Meeting Device Remove");};h.Qd=function(a){var c=new S2;a=a.uc();ll(c,1,a);return X2("GetMeetingDevice",c)};
h.je=function(a){(a=a.Mm())||QB(this.f,ED,!0).then(function(c){return c.V(5268)});return Ama(a)};var Ama=function(a){var c=new T2;ll(c,1,a);return new E1("google.rtc.meetings.v1.MeetingDeviceService","ListMeetingDevices",function(){return c},zma,function(b){return{data:Y2(U(b.Rd,JR,1)),version:I1(b)}})},X2=function(a,c,b){return new E1("google.rtc.meetings.v1.MeetingDeviceService",a,function(){return c},Bha,function(d){return{data:Y2([d.Rd]),version:I1(d)}},void 0,void 0===b?null:b)},Y2=function(a){return a.map(function(c){return new O2(JSON.parse(c.Ba()))})};var Z2=function(a){N(this,a,0,-1,null,null)};x(Z2,M);Z2.prototype.u=function(){var a=new D;$2(this,a);return F(a)};var $2=function(a,c){a=R(a,1,"");0<a.length&&K(c,1,a)};var a3=function(a){N(this,a,0,-1,null,null)};x(a3,M);a3.prototype.u=function(){var a=new D;var c=T(this,AS,1);null!=c&&a.b(1,c,LS);c=T(this,Z2,3);null!=c&&a.b(3,c,$2);c=R(this,4,"");0<c.length&&K(a,4,c);return F(a)};var b3=function(a){N(this,a,0,-1,null,null)};x(b3,M);b3.prototype.u=function(){var a=new D;var c=R(this,1,"");0<c.length&&K(a,1,c);return F(a)};var c3=function(a){N(this,a,0,-1,null,null)};x(c3,M);c3.prototype.u=function(){var a=new D;var c=T(this,AS,1);null!=c&&a.b(1,c,LS);return F(a)};var d3=function(a){this.b=a};q(d3,qY);h=d3.prototype;h.Ri=function(){return!1};h.Od=function(a){a=a[0];var c=new a3;V(c,1,a);return e3("CreateMeetingSpace",c)};h.Pd=function(a){var c=new c3;V(c,1,a[0]);return e3("UpdateMeetingSpace",c)};h.ie=function(){throw Error("Invalid Operation: Meeting Space Remove");};h.Qd=function(a){var c=new b3;a=a.h();ll(c,1,a);return e3("GetMeetingSpace",c)};h.je=function(a){return this.Qd(a)};
var e3=function(a,c){return new E1("google.rtc.meetings.v1.MeetingSpaceService",a,function(){return c},KS,function(b){return{data:[b.Rd],version:I1(b)}})};var f3=function(a,c,b,d,e,f){var g=WX.Ja();e=new e(YX(g,a,c,void 0,!0),a);f=new WV(ZX(g,c),f);return new cY(a,XX(g,c),b,d,e,f,$X(g,c))};var g3=function(a){N(this,a,0,-1,null,null)};x(g3,M);var h3=function(a){N(this,a,0,-1,null,null)};x(h3,M);g3.prototype.u=function(){var a=new D;var c=this.tc();0<c.length&&K(a,1,c);c=R(this,2,"");0<c.length&&K(a,2,c);c=T(this,Z2,3);null!=c&&a.b(3,c,$2);c=R(this,4,"");0<c.length&&K(a,4,c);c=T(this,h3,5);null!=c&&a.b(5,c,i3);(c=il(this,6,!1))&&I(a,6,c);return F(a)};h3.prototype.u=function(){var a=new D;i3(this,a);return F(a)};
var i3=function(a,c){var b=R(a,1,"");0<b.length&&K(c,1,b);b=a.getToken();0<b.length&&K(c,2,b)};h3.prototype.getToken=function(){return R(this,2,"")};h3.prototype.setToken=function(a){ll(this,2,a)};g3.prototype.tc=function(){return R(this,1,"")};var Bma=function(a,c,b,d,e){return YX(WX.Ja(),a,c,void 0,!0).C.then(function(f){return j3(f,b,d,e,void 0,!0)})},j3=function(a,c,b,d,e,f){c=Cma(c,d,e,f);return Dma(a,c,b).then(function(g){return g.Rd})};function Dma(a,c,b){var d={};b&&(d["X-Goog-Meeting-Botguardid"]=b);return n2(a instanceof m2?a:new m2("google.rtc.meetings.v1.MeetingSpaceService",a.g),"ResolveMeetingSpace",c,KS,d)}function Cma(a,c,b,d){var e=new g3;ll(e,1,a);c&&(a=new Z2,ll(a,1,c),V(e,3,a));b&&ll(e,4,b);d&&kl(e,6,d,!1);return e};var k3=function(a,c,b,d){j1.call(this,a,c,d);var e=this;this.tg=this.j.signal();this.s=tX(c,"realtime.meetings.call.MeetingCall");this.Bb=new Set;this.m=b;this.W=null;this.De=Xu(QB(a,jP));this.o=null;this.kb=new vX;this.T=this.kb.b;this.g=null;this.bb=new vX;this.C=this.bb.b;this.da=null;this.F=new vX;this.ld=new vX;this.Uc=this.ld.b;this.pg=new vX;this.ab=dv();this.jg=new D2(this.xa,this.hc);this.b(this.jg);this.yc=dv();this.Ma=this.D=this.xe=null;this.Wi=new vX;this.Ca=this.fa=null;this.od=!1;this.Ab=
null;bz(QB(a,CD,!1),function(f){e.Ab=f});this.te=new rz(20);this.gc=this.h=null;this.O=new ov(3E4);this.b(this.O);this.listen(this.O,"tick",this.gj);this.ye=function(){return Yu("No prerequisite handler")};this.qa=null;this.Ui=IV(this.j,!0);JV(this.j,this.Ui,{enabled:!1});this.mc=null;this.re=this.j.signal();this.m&&this.ab.resolve(!0);this.C.then(function(f){e.listen(f,"Za",e.Ce);e.Ce()});Ema(this)};q(k3,j1);k3.prototype.tc=function(){return this.da};
k3.prototype.Hf=function(){var a=this,c;return Ea(function(b){switch(b.b){case 1:if(a.Ma){b.Ob(2);break}c=a;return ua(b,sma(a),4);case 4:c.Ma=b.f;case 3:a.b(a.Ma);case 2:return b.return(a.Ma)}})};
k3.prototype.Cg=function(){var a=this,c=j1.prototype.Cg.call(this);c.joinState=function(){var b=J2(a);return b?VR(b):0};c.meetingSpace=function(){return a.T.get()&&jW(a.T.get())};c.meetingDevices=function(){return a.C.get()&&jW(a.C.get())};c.recentMeetingOperations=function(){return a.te.na()};c.mediaBackendInfo=function(){var b=a.o&&a.o.Aa();return(b=b&&T(b,IS,6))&&R(b,8,"")};return c};
k3.prototype.gh=function(a,c){var b=this,d=Xu(c);this.Ca=c;67==c&&this.h&&(d=this.g.search().then(function(e){return(e=e.find(function(f){return f.uc()==b.h}))&&7==VR(e)?43:c},function(){return c}));d.then(function(e){var f=Xu();b.Ca=e;b.od||!a&&!b.h||(C(b.R,"Removing meeting device on disconnect"),f=b.Qa.get()||b.h,f=b.g.cc(f),ml(f,4,6),f=nW(b.g,f,2).then(function(){l3(b);b.h=null}));b.qa&&b.qa.cancel();gv(f,function(){b.De.then(function(g){b.gc=$w(g.b);b.f.h.h.b=null;j1.prototype.gh.call(b,a,e)})});
f=new n1(e);b.kb.reject(f);b.bb.reject(f);b.yc.reject(f);b.T.get()&&b.T.get().stop();b.C.get()&&b.C.get().stop()})};var m3=function(a,c){a.Bb.add(c);gv(c,function(){a.Bb.delete(c)});return c};
k3.prototype.resolve=function(a,c,b){var d=this;if(this.da)return Yu(n3("Meeting already resolved"));if(this.m&&!c)return Yu(n3("Missing required botguard id"));if(!this.m&&c)return Yu(n3("Botguard id not allowed when logged in"));var e=o3(this,0,"resolve");if(e)return Yu(e);c=Bma(this.ya,this.f,a,c,b);return m3(this,c).then(function(f){var g=f.h();d.da=a;d.H.f=a;d.o=f3(d.ya,d.f,[g],new XV(AS,[AS.prototype.h],[AS.prototype.s],[],[],Q2,[Q2.prototype.h],[Q2.prototype.s],[],[],xma),d3,"Ta");S(d.o.config,
8,5E3);d.b(d.o);d.g=f3(d.ya,d.f,[g],new XV(O2,[O2.prototype.C],[O2.prototype.F],[O2.prototype.uc],[O2.prototype.h],P2,[P2.prototype.Mm],[P2.prototype.Om],[P2.prototype.uc],[P2.prototype.Nm],wma),W2,"Pa");S(d.g.config,8,5E3);d.b(d.g);d.m&&d.O.start();d.F.resolve(g);d.H.g=g;return f},function(f){var g="Resolve code "+a;f instanceof L1&&(g+=", error message: "+f.getMessage());var k=306,m=p3(f);null!=m&&(k=Fma[m]||k,d.m&&(k=q3[m]||k),g=g+(", statusCode: "+m)+(", "+r3(f)));d.te.add(g);d.s.error(g);f=new s3(k,
f);d.F.reject(f);d.F=new vX;throw f;})};k3.prototype.Jg=function(a){var c=this;this.m?this.F.b.then(function(){j1.prototype.Jg.call(c,a)}):j1.prototype.Jg.call(this,a)};
var Gma=function(a){C(a.R,"prejoin() was called");var c=o3(a,0,"preJoin");if(c)return Yu(c);if(a.m)return Xu();if(a.D)return a.D.then(function(b){return t3(a,b)});a.D=u3(a,2).then(function(b){if(a.w())return b;t3(a,b);a.ab.resolve(5==VR(b));a.Wi.resolve(null);return b});return a.D},t3=function(a,c){2==VR(c)?(k1(a,a.Uc.get(),a.h),v3(a)):a.O.start()},Ema=function(a){var c,b;Ea(function(d){if(1==d.b)return d.return();if(3!=d.b)return c=d.f,Hma(c),ua(d,a.cb,3);b=d.f;c.ga(b);d.b=0})};
k3.prototype.view=function(){var a=this;return(this.D||Gma(this)).then(function(){return a.sessionId.then(function(c){var b=o3(a,0,"view");if(b)throw b;a.fa||(C(a.R,"Modifying the meeting device as VIEWING"),b=new O2,b.h(a.h),ll(b,22,c),null!=a.L&&ll(b,23,a.L),ml(b,4,12),a.fa=hv(nW(a.g,b).then(function(d){d=d[0];w3(a,d);var e=o3(a,0,"view");if(e)throw e;d=VR(d);if(12!=d)throw Of(a.R,"Unexpected view state: "+d),new Eb("Unexpected join state: "+d);return d}),function(d){a.fa=null;throw d;}));return a.fa.then(function(d){12==
d&&(a.g.stop(),a.O.start());return d})})})};
k3.prototype.connect=function(a,c){var b=this;a=void 0===a?null:a;c=void 0===c?null:c;return this.m&&!a?Yu(new s3(302,"Missing name for anonymous user")):this.m&&!c?Yu(new s3(302,"Missing botguard id for anonymous user")):this.qe.then(function(){C(b.R,"connect() was called");var d=o3(b,0,"connect");if(d)return Yu(d);b.lb(1);b.O.stop();return b.D?bv([b.D,b.fa]).then(function(){return x3(b)}):u3(b,1,a,c).then(function(e){b.ab.resolve(3==VR(e));return y3(b,e,u())})})};
var Ima=function(a){return a.xa.C.concat().find(function(c){return"a"==c.f.Ya})||null};k3.prototype.Bn=function(a){var c=this;if(this.sessionId.get()==a){var b="Should not update the same session id.";Of(this.R,b);this.s.error(b)}else{b="Modifying the session id: "+a;Pf(this.R,b);this.s.info(b);var d=new O2;d.h(this.h);ll(d,22,a);d=nW(this.g,d).then(function(e){return w3(c,e[0])},function(){b="Failed to update the session id: "+a;c.s.error(b)});m3(this,d)}};
k3.prototype.An=function(a){var c=this;this.s.info("Modifying the P2P session id: "+a);var b=new O2;b.h(this.h);ll(b,23,a||"");b=nW(this.g,b).then(function(d){w3(c,d[0])},function(){var d="Failed to update the P2P session id: "+a;Of(c.R,d);c.s.error(d)});m3(this,b)};
k3.prototype.Ce=function(){var a=this.C.get(),c=a.get(),b=c.filter(function(e){return il(e,5,!1)||10==VR(e)}).map(function(e){return e.uc()});m1(this,b);if(2==this.getState()){var d=this.Qa.get();if(a=d&&a.Aa(d))switch(VR(a)){case 7:this.V(3952);this.disconnect(43);break;case 8:this.disconnect(Jma());break;case 2:case 3:case 5:case 9:case 12:break;case 1:Kma(this,a);break;default:this.disconnect(34)}}C(this.R,c.length+" raw devices; "+b.length+" joined.")};
var Kma=function(a,c){var b=T(c,LR,12)&&R(T(c,LR,12),1,"");if(b!=a.mc){var d=b==c.uc();if(a.mc=b){var e=Ima(a);e&&!e.isMuted()&&e.mute();c=a.g.cc(c);SR(c,new LR);hv(nW(a.g,c),function(){Of(a.R,"Failed to clear AudioMuteRequest")});d?(JV(a.j,a.tg,void 0),a.V(4203)):(JV(a.j,a.re,{SA:b}),a.V(990))}}},u3=function(a,c,b,d){b=void 0===b?null:b;d=void 0===d?null:d;var e=new O2;return hv(bv([a.F.b,a.sessionId]).then(function(){var f=a.F.b.get(),g=a.sessionId.get();e.F(f);ml(e,4,c);ll(e,22,g);null!=a.L&&ll(e,
23,a.L);1==c&&a.W&&ml(e,25,a.W);a.m&&(ll(e,2,b),e.s=d);return a.De}).then(function(f){var g=a.F.b.get();Lma(a,f,g);g=m3(a,a.g.add(e));g.then(function(){a.ld.resolve(f.pm)});return g}).then(function(f){f=f[0];a.h=f.uc();var g=a.h.split("/")[3]||a.Wb;a.m&&(a.H.h=g,a.pg.resolve(g));w3(a,f);return f},a.Gi,a),function(f){throw n3(f);})};
k3.prototype.Gi=function(a){l3(this);B(this.R,"add device failed, moving back to INITIALIZED state");this.lb(0);this.D=null;var c=325,b=p3(a);a instanceof Su?(c=219,this.s.error("Device add operation has been cancelled.")):null!=b&&(c=z3(a,c),this.m&&(c=q3[b]||c),b="Device add error: "+r3(a),this.s.error(b));throw new s3(c,a);};
var x3=function(a){return hv(a.sessionId.then(function(c){Pf(a.R,"Modifying the meeting device as JOINED");var b=new O2;b.h(a.h);ll(b,22,c);null!=a.L&&ll(b,23,a.L);a.W&&ml(b,25,a.W);ml(b,4,1);return nW(a.g,b)}).then(function(c){w3(a,c[0]);return y3(a,c[0],u())},function(c){var b=303;if(null!=p3(c)){b=z3(c,b);var d="Device modify error: "+r3(c);a.s.error(d)}throw new s3(b,c);}),function(c){return A3(a,n3(c))})},y3=function(a,c,b){var d=o3(a,1,"checkJoinState");if(d)return A3(a,d);C(a.R,"checking the join state.");
switch(VR(c)){case 1:return Mma(a);case 3:if(6E5<=u()-b)return A3(a,new s3(234));a.qa=sv(5E3).then(function(){return Nma(a,b)},function(){A3(a,new s3(219))});return a.qa;case 4:return A3(a,new s3(233));case 11:return A3(a,new s3(241));case 9:var e=0,f=function(){return A3(a,new s3(325))},g=function(){return(5>e++?a.ye(a.o,a.g,J2(a)):Yu()).then(function(){return hv(x3(a),function(){return g()})},f)};return g();default:return c="Unexpected join state: "+VR(c),Of(a.R,c),A3(a,c)}},Nma=function(a,c){return a.g.search().then(function(b){b=
b.find(function(d){return d.uc()==a.h});w3(a,b);return y3(a,b,c)},function(b){var d=303;null!=p3(b)&&(d=z3(b,d));return A3(a,new s3(d,b))})},Mma=function(a){v3(a);var c=dv();l1(a,c,a.Uc.get(),a.h);return c.Y},v3=function(a){a.kb.resolve(a.o);a.bb.resolve(a.g);a.o.start();a.g.start()};k3.prototype.sl=function(){return tma(this.Qa.get(),this.xa.C.concat().map(function(a){return a.f}),this.xa)};
var A3=function(a,c){B(a.R,"connect failed, moving back to DISCONNECTED state");a.lb(4);if(a.h){var b=new O2;b.h(a.h);ml(b,4,6);gv(nW(a.g,b,2),function(){return l3(a)});a.h=null;a.D=null}return Yu(n3(c))},Lma=function(a,c,b){Oma(a,function(){l3(a);var d={meetingToken:$w(c.b)||a.gc};oP(c.h.replace("${path}",b+"/devices:close"),Hv(d),"application/json");a.od=!0},function(){return Pma(a)})};
k3.prototype.Kj=function(a){j1.prototype.Kj.call(this,a);a=CL(a);this.da&&S(a,13,this.da);var c=this.F.b.get();c&&S(a,14,c)};var Pma=function(a){var c=function(){a.Ab&&x1(a.Ab,a).forEach(function(b){var d=a.f.h,e=Sr(d.o,"/"+d.j+"/"+d.m+"/media_sessions/log");d.f&&(e=Pr(e,"key",d.f));qP(d,b);oP(e,b.Ba(),"application/json+protobuf")})};a.disconnect(null!=a.Ca?a.Ca:63).then(c,c)};k3.prototype.gj=function(){this.m?this.o.search():this.g.search()};
var o3=function(a,c,b){return a.getState()!=c?(B(a.R,"Unexpected state while in "+b+": "+a.getState()+" != "+c),new s3(302,new o1(a.getState()))):null},n3=function(a){return a instanceof s3||a instanceof Su?a:new s3(302,a)},p3=function(a){return a instanceof L1?a.kf:null},Qma=function(a){var c="",b=a.f;b&&(c+=" exception name: "+b.name,c+=" exception message: "+b.message);a.Rg&&(c+=" status: "+a.Rg.Ba());a.Rd&&(a=a.Rd,Ua(a)?(a=a.map(function(d){return d instanceof M?d.Ba():rf(d)}),c+=" response: "+
Hv(a)):c=a instanceof M?c+(" response: "+a.Ba()):c+(" response: "+rf(a)));return c},r3=function(a){return a instanceof L1?Qma(a):rf(a)},z3=function(a,c){if(a instanceof L1&&403==a.kf){var b=a.Rg;b=(b&&b.getMessage()||"").includes("Service is disabled")}else b=!1;if(b)return 239;a=p3(a);return null!=a?Rma[a]||c:c},pma=function(a,c){a.ye=c},w3=function(a,c){c&&(a.xe=c,a.yc.resolve(!0))},J2=function(a){return a.g&&a.h&&a.g.Aa(a.h)||a.xe};
k3.prototype.ia=function(){this.Bb.forEach(function(a){a.cancel()});j1.prototype.ia.call(this)};var Jma=function(){var a=h2("ListMeetingDevices",1)[0]||h2("UpdateMeetingDevice",1)[0];switch(a&&a.resp.code){case 400:return 114;case 401:return 113;case 403:return 115;default:return 111}};k3.prototype.V=function(a){QB(this.ya,DD).then(function(c){return c.V(a)})};var s3=function(a,c){Eb.call(this,"startupCode: "+a+", error = "+rf(c));this.un=a;this.Yd=c};q(s3,Eb);
var B3={},Fma=(B3[404]=217,B3[401]=300,B3[400]=327,B3[10001]=328,B3[-1]=329,B3[0]=329,B3[10007]=249,B3),C3={},Rma=(C3[400]=324,C3[429]=216,C3[10001]=330,C3[-1]=331,C3[0]=331,C3[10007]=331,C3),D3={},q3=(D3[403]=200,D3),E3=new Map,F3=function(){var a=[].concat(n(E3.values()));a.forEach(function(c){c=c.st;return c()});a.forEach(function(c){c=c.Mp;return c()});E3.clear();xu(Uf(),["beforeunload","unload"],F3)},Oma=function(a,c,b){0==E3.size&&ru(Uf(),["beforeunload","unload"],F3);E3.set(a,{st:c,Mp:b})},
l3=function(a){E3.delete(a);0==E3.size&&xu(Uf(),["beforeunload","unload"],F3)};var G3=function(a,c,b,d,e){this.l=hb("mr.mirror.hangouts.HangoutCallService");this.f=a;this.g=d;this.L=e;this.w=new My(this);this.b=null;this.o=!1;this.D=new Db;this.h=new Db;this.C=!1;this.s=new Db;this.m=this.j=null;this.F=this.H=!1;Sma(this,c,b)},Wma=function(a,c){a.l.info("Connecting to hangout");setTimeout(function(){a.h.reject(Error("Timed out before connecting"))},3E4);a.D.b.then(function(b){ob(a.l,"Call ready.");a.o=b.Hd;if(a.o)b=Tma(a,b);else{var d=b.cb,e=b.eh;b=a.f.get(lT);if(e)ob(a.l,"Already resolved id: "+
e),b=Xu(zY(a.f,b,e));else{ob(a.l,"resolving hangout id: "+d);e=a.f;d=d.split("@");var f=new nU;S(f,5,!0);if(-1!=d[1].indexOf(".")){var g=new lU;S(g,1,d[0]);S(g,2,d[1]);V(f,4,g)}else g=new PQ,S(g,1,d[1]),S(g,2,d[0]),V(f,2,g);b=zla(e,b,f)}b=a.b.connect(b)}return b}).then(null,function(b){Uma(a,b);if(b.Yd){for(var d="",e=l(Object.entries(Ika)),f=e.next();!f.done;f=e.next()){var g=l(f.value);f=g.next().value;g=g.next().value;if(g==b.un){d=f+"("+g+")";break}}a.l.error("Call connect error startupCode: "+
d);b=b.Yd}d="SESSION_FAILURE";b.response&&Ua(b.response)&&0<b.response.length&&"chrrp"==(new QU(b.response)).mg&&(d="HANGOUT_INVALID");a.g(new xj(d));a.h.reject(b);H3(a,16)});return a.h.b.then(function(){return a.b.Qa}).then(function(b){I3(a,c,b);if(a.o)return J3(a,b);K3(a,b);Vma(a,a.b.m.get())})},Xma=function(a,c){return new Promise(function(b,d){a.b.Qa.then(function(e){I3(a,c,e);if(!a.H){if(a.o){J3(a,e).then(b,d);return}K3(a,e)}b()},d)})},L3=function(a,c){a.b.xa.C.concat().forEach(function(b){"a"==
b.f.Ya&&(c?b.mute():"st"!=b.g&&RW(b,!1))})},Yma=function(a){return a.h.b.then(function(){e0(a.b.xa)}).catch(function(){if(a.b)e0(a.b.xa);else throw Error("call was never created");})};G3.prototype.stop=function(){H3(this,0);return this.s.b};G3.prototype.Za=function(){var a=this;this.F=!0;this.w.Za();this.j&&this.j.Za();this.m&&this.m.Za();this.D.reject(Error("Disposed"));this.h.reject(Error("Disposed"));setTimeout(function(){a.s.reject(Error("Timed out before stopping"))},1E4);this.b&&this.b.Za()};
var Sma=function(a,c,b){a.g(new xj("REFRESH_AUTH"));c.then(function(){return b}).then(function(d){if(!a.F){ob(a.l,"Creating call for hangout id: "+d.cb+" resolvedId: "+d.eh);var e=Ofa();a.b=Zma(a,d,e);a.b.onConnect.then(a.J,null,a);a.b.onDisconnect.then(a.O,function(f){a.l.G("Error on disconnect: "+f)},a);a.D.resolve(d)}})},Zma=function(a,c,b){var d=null;c.Hd?(d=new k3(a.f,a.f.get(GD),!1),d.W=2,d.Jg(b),d.C.then(a.W,null,a),MV(d.re,function(){a.g(new xj("STATUS_RESPONSE",{mute:!0}));a.L(!0)}),qma(d)):
(d=new u1(a.f,a.f.get(GD),b),d.g.then(a.Ua,null,a),d.o.then(a.da,null,a));return d},Tma=function(a,c){return a.b.resolve(c.cb).then(function(){return a.b.connect()})},I3=function(a,c,b){if(0<c.getAudioTracks().length)if(a.j){var d=a.j;d.fa=c;d.m()}else a.j=new M3(a.f,new HF(b,"1","a","sc"),c),PW(a.j),a.b.Nh(a.j);a.m?(a=a.m,a.fa=c,a.m()):(b=new HF(b,"2","v","sc"),GF(b,[new FF(0,0,1,1)])&&b.N("K"),a.m=new M3(a.f,b,c),PW(a.m),a.b.Nh(a.m))},J3=function(a,c){var b=new DS;ll(b,1,c);var d=a.b.T.get();a=
new IS;V(a,1,b);var e=d.cc();V(e,6,a);return new Promise(function(f,g){nW(d,e).then(f,g)})},K3=function(a,c){var b=new RQ;S(b,1,c);c=new TQ;V(c,17,b);c.ga(a.b.cb.get());nW(a.b.m.get(),c)},Vma=function(a,c){a.w.listen(c,"Za",function(b){a.b.Qa.then(function(d){a.H=Array.prototype.some.call(b.target.get(),function(e){return e.Hf()&&O(e.Hf(),1)==d})})})};G3.prototype.W=function(a){this.w.listen(a,"Za",this.T)};
G3.prototype.T=function(a){var c=this;a.Eb.forEach(function(b){b.uc()==c.b.Qa.get()&&7==VR(b)&&H3(c,43)})};G3.prototype.Ua=function(a){var c=this;this.w.listen(a,"Za",function(b){$ma(c,b)});this.w.listen(a,"ab",function(b){N3(c,b)})};var $ma=function(a,c){var b=c.target;ob(a.l,function(){return"Participants updated: "+b.get().filter(function(d){return il(d,18,!1)}).map(function(d){return O(d,4)}).join(", ")});!a.C&&2>b.get().length&&(a.g(new xj("HANGOUT_INACTIVE")),H3(a,61))};
G3.prototype.da=function(a){var c=this;this.w.listen(a,"Za",function(b){ana(c,c.b,b)});this.w.listen(a,"ab",function(b){N3(c,b)})};
var ana=function(a,c,b){for(var d={},e=0;e<b.Eb.length;d={rf:d.rf},e++)d.rf=b.Eb[e],d.rf.ba()==c.Qa.get()&&T(d.rf,eR,6)&&O(T(d.rf,eR,6),1)&&c.xa.C.concat().forEach(function(f){return function(g){g.f.getId()==f.rf.wa()&&(g.mute(),a.g(new xj("STATUS_RESPONSE",{mute:!0})),a.L(!0))}}(d))},N3=function(a,c){a.l.error("Failure in collection: "+c.reason);a.h.reject(c.reason);H3(a,3)};G3.prototype.J=function(){this.l.info("Call connected");this.g(new xj("SESSION_START_SUCCESS"));this.h.resolve(void 0)};
G3.prototype.O=function(a){this.g(new xj("SESSION_END"));var c="",b;for(b in VH)if(VH[b]==a){c=b+"("+a+")";break}this.l.info("Call ended with endcause: "+c);0!=a&&61!=a&&16!=a&&this.g(new xj("SESSION_FAILURE"))};
var H3=function(a,c){a.l.info("Stopping call with end Cause: "+c);a.C?a.l.info("Ignore stop, already stopping."):(a.C=!0,a.b?a.b.disconnect(c).then(function(b){ob(a.l,"Call disconnected with endCause: "+b);a.s.resolve(void 0)}):a.s.resolve(void 0))},Uma=function(a,c){c instanceof Error?a.l.error("Connect error",c):Wa(c)?a.l.error(function(){return"Connect error: "+JSON.stringify(c)}):Ya(c)?a.l.error("Connect error: "+JSON.stringify(c)):a.l.error("Connect error: "+c)},M3=function(a,c,b){MW.call(this,
a,c,bna);this.fa=b};q(M3,MW);M3.prototype.m=function(){var a=this.fa.clone();SW(this,a);a.getVideoTracks().forEach(function(c){"contentHint"in c&&(c.contentHint="detail")});return Xu()};var O3=new XW,cna=pJ(oJ(qJ(new nJ,30),320),180).aa();O3.f=cna;var dna=pJ(oJ(qJ(new nJ,30),640),360).aa();O3.b=dna;var bna=O3.aa();var P3=function(a,c){var b=this;this.f=c;this.h=QB(a,ED).then();this.g=null;this.b=function(d){var e=Tz.get(d.status);if(e){var f=d.value;f="string"==typeof f?f:JSON.stringify(f);b.V(e,{Zc:f})}e=0==d.status;null!=b.g&&(!b.g&&e?b.V(4783):b.g&&!e&&b.V(4784));b.g=e;return d}},Q3=function(a){return a.f.uj().then(a.b,a.b)},ena=function(a){return a.f.yj().then(a.b,a.b)},fna=function(a,c,b){return a.f.zj(c,b).then(a.b,a.b)},R3=function(a,c){return a.f.tj(c).then(a.b,a.b)},gna=function(a,c,b){return a.f.Aj(c,
b).then(a.b,a.b)};P3.prototype.V=function(a,c){this.h.then(function(b){b.V(a,c)})};var S3=function(a){this.f=QB(a,ED).then()};S3.prototype.V=function(a,c){this.f.then(function(b){b.V(a,c)})};var T3=function(a){S3.call(this,a);this.V(4865)};q(T3,S3);h=T3.prototype;h.uj=function(){var a=dv();chrome.system.cpu.getInfo(function(c){a.resolve(new Sz(0,c))});return a.Y};
h.vj=function(){if(!chrome.processes)return null;var a=Qa,c,b=function(d){$i(10);if(void 0==c)Ri("mr.mirror.hangouts.HangoutsService").then(function(v){if(v=v.b)v=v.f.mediaSource,-1!=v.indexOf(":tab:")&&(v=v.split(":"),chrome.processes.getProcessIdForTab(parseInt(v[v.length-1],10),function(A){chrome.runtime.lastError||(c=A)}))});else{var e=d[c];if(e){var f=0,g=0,k=0,m;for(m in d){var p=d[m];"browser"==p.type?g=p.cpu:"gpu"==p.type?k=p.cpu:"extension"==p.type&&p.title==chrome.runtime.getManifest().name&&
(f=p.cpu)}a({tabCpuUsage:e.cpu,browserCpuUsage:g,gpuCpuUsage:k,pluginCpuUsage:f})}}};return{onMessage:{addListener:function(d){a=d;chrome.processes.onUpdated.addListener(b)}},disconnect:function(){chrome.processes.onUpdated.removeListener(b);a=Qa}}};h.tj=function(){return U3()};h.yj=function(){return U3()};h.zj=function(){return U3()};h.xj=function(){return U3()};h.Aj=function(){return U3()};h.wj=function(){return U3()};var U3=function(){return Yu(new Sz(7,"This method is not intended to be implemented."))};var hna={TAB:0,wk:1},V3=function(a){Cb("MediaRouter.Hangouts.Start.Success",a,hna)};var W3=function(a,c,b,d,e){Ao.call(this,"HangoutsRouteController",a,c);this.f=new mojo.Binding(mojo.HangoutsMediaRouteController,this);this.j=b;this.m=d;this.b.title=this.m.description;this.b.can_mute=!0;this.b.is_muted=e;Bo(this)};q(W3,Ao);W3.prototype.pj=function(){Ao.prototype.pj.call(this);this.f.close()};W3.prototype.qj=function(){this.j.g=null};W3.prototype.hf=function(a){this.j.hf(a)&&(this.b.is_muted=a,Bo(this))};W3.prototype.yi=function(a){this.f.bind(a);this.f.setConnectionErrorHandler(this.w.bind(this))};
W3.prototype.connectHangoutsMediaRouteController=W3.prototype.yi;W3.prototype.setMute=W3.prototype.hf;var X3=function(a,c,b){rj.call(this,a);this.T=c;this.O=b;this.l=hb("mr.mirror.hangouts.HangoutSession");this.L=kx(a.id);this.w=new Db;this.h=!1;this.m=this.C=null;this.D=new Db;this.s=this.J=null;ina(this);this.g=this.b=null};q(X3,rj);h=X3.prototype;
h.start=function(a){var c=this;ob(this.l,"Starting new hangouts mirror session.");this.C=a;if(this.b)return Promise.reject(Error("Mirroring already started"));if(this.m)return Promise.reject(Error("Session permanently stopped"));this.J=new sb("MediaRouter.Hangouts.Session.Launch");this.b=new G3(this.T,this.O,this.D.b,this.o.bind(this),this.W.bind(this));Wma(this.b,this.C).then(function(){ob(c.l,"Call connected");c.o(new xj("SESSION_START_SUCCESS"));c.J.end();c.J=null;c.s=new yb("MediaRouter.Hangouts.Session.Length");
c.w.resolve(c)},function(b){c.w.reject(b);c.stop()});return this.w.b};h.wn=function(){return!0};h.Cn=function(a){var c=this;return new Promise(function(b,d){c.b?Xma(c.b,a).then(function(){c.C=a;b()},d):d(Error("Mirroring was never started"))})};
h.stop=function(){var a=this;ob(this.l,"Stopping hangouts mirror session.");this.w.reject(Error("Session stop requested."));this.s&&(this.s.end(),this.s=null);if(!this.b)return Promise.resolve();if(this.m)return this.m;this.w.reject(Error("Stopped"));this.D.reject(Error("Stopped"));var c=function(){try{a.L.Za()}catch(b){a.l.error("Error while disposing message port",b)}try{a.b.Za()}catch(b){a.l.error("Error while disposing call service",b)}a.g&&(a.g.Za(),a.g=null)};return this.m=new Promise(function(b,
d){setTimeout(function(){c();d(Error("Timed out before stopping"))},1E4);a.b.stop().then(function(){c();b()}).catch(function(e){c();d(e)})})};h.hf=function(a){if(!this.b)return!1;this.h=a;L3(this.b,a);return!0};
var ina=function(a){a.L.onMessage=function(c){if(Ja(c)){c=JSON.parse(c);var b=c.clientId;if(b){"client_connect"==c.type?a.o({message:{sessionId:"castouts"},clientId:b,type:"new_session"}):"v2_message"==c.type&&"STOP"==c.message.type&&a.o({message:"castouts",clientId:b,type:"remove_session"});return}}if(!c.type)throw Error("Message has no type.");switch(c.type){case "AUTH_READY":c=c.data;ob(a.l,"received auth ready message");a.D.resolve(c);break;case "MUTE":c.data&&(a.h=!!c.data.mute,a.b&&L3(a.b,a.h));
break;case "STATUS_RESPONSE":ob(a.l,"route status response message");c.data&&(a.h=!!c.data.mute);break;case "STATUS_REQUEST":ob(a.l,"route status request message");a.o(new xj("STATUS_RESPONSE",{routeDescription:a.f.description,mute:a.h}));break;default:throw Error("Unknown message type: "+c.type);}}};X3.prototype.o=function(a){ob(this.l,function(){return"sending message to mrp: "+JSON.stringify(a)});this.L.sendMessage(a,jna)};
X3.prototype.createMediaRouteController=function(a,c){var b=this;return this.w.b.then(function(){if(b.m)throw Error("Session already stopped");if(b.g)throw Error("Controller already exists");b.g=new W3(a,c,b,b.f,b.h)})};X3.prototype.W=function(a){this.h=a;if(this.g){var c=this.g;c.b.is_muted!=a&&(c.b.is_muted=a,Bo(c))}};var jna={channelType:"mesi"};var Y3=function(a){this.b=a};Y3.prototype.onError=function(a,c){401==c.b&&this.b(new xj("REFRESH_AUTH"))};Y3.prototype.onRequest=Qa;Y3.prototype.f=Qa;var Z3=function(a){Y.call(this);this.f=a||window;this.g=ru(this.f,"resize",this.j,!1,this);this.h=Tf(this.f||window)};x(Z3,Y);Z3.prototype.ia=function(){Z3.Ga.ia.call(this);this.g&&(yu(this.g),this.g=null);this.h=this.f=null};Z3.prototype.j=function(){var a=Tf(this.f||window),c=this.h;a==c||a&&c&&a.width==c.width&&a.height==c.height||(this.h=a,this.N("resize"))};var $3=function(a){Y.call(this);a?(a=a.b,a=a.parentWindow||a.defaultView):a=window;this.f=a;this.j=1.5<=this.f.devicePixelRatio?2:1;this.h=t(this.m,this);this.g=this.f.matchMedia?this.f.matchMedia("(min-resolution: 1.5dppx), (-webkit-min-device-pixel-ratio: 1.5)"):null};x($3,Y);$3.prototype.start=function(){this.g&&this.g.addListener(this.h)};$3.prototype.m=function(){var a=1.5<=this.f.devicePixelRatio?2:1;this.j!=a&&(this.j=a,this.N("Sb"))};
$3.prototype.ia=function(){this.g&&this.g.removeListener(this.h);$3.Ga.ia.call(this)};var a4=function(a,c){W.call(this);this.m=a;if(c){if(this.j)throw Error("[fava.component.DomServices] Owner document already initialized");this.g=(this.j=c)?new Zf(Xf(c)):Fb||(Fb=new Zf);this.f=new Z3(Uf(c));this.f.D=this.m.m;this.h=new $3(this.g);this.h.start()}};x(a4,W);var kna=function(a){var c=new a4(a,document);a.registerService(KB,c)};a4.prototype.ia=function(){this.g=this.j=null;this.f&&(this.f.Za(),this.f=null);Yt(this.h);this.h=null};var b4=function(a){Y.call(this);var c=this;this.f=null;this.h=dv();this.g=this.h.Y;QB(a,DD).then(function(b){return xO(b,{Tg:function(d){null!=c.f&&(d=CL(d),S(d,5,c.f))},Ug:function(){}})})};q(b4,cF);var lna=function(a){PB(a,HD)||YB(a,HD,function(c){return new b4(c)})},e1=function(a){X.call(this,"Tb");this.Wb=a};q(e1,X);var c4=function(a){this.b=[a]};var d4=["HTTP Error [","] "," "," (httpStatusCode=",")"];d4.raw=d4.slice();var e4="HTTP Request [;] ; ; (deadline=;ms, remainingRetries=;)".split(";");e4.raw=e4.slice();var f4=function(a){var c=this;this.g=new rz(10);this.b=a&&QB(a,ED).then();this.f=new tE("realtime.analytics.RequestResponseMonitor");this.h=null;a&&QB(a,JD).then(function(b){c.h=b})},mna=function(a){PB(a,ID)||YB(a,ID,function(c){return new f4(c)})};
f4.prototype.onRequest=function(a){this.f.info(e4,a.D,a.s,a.b,a.m?a.m.b:null,null!=a.f?a.f:0)};
f4.prototype.onError=function(a,c){var b={Yf:a.j,Xg:u(),response:c};a.g.unshift(b);var d=a.h||a.b;b=a.j;var e=u();d=new DX(new c4(g4[d]||26),this.b||Yu());EX(d,840,b);EX(d,842,e);FX(d);if("retry"!=c.status||0==(null!=a.f?a.f:0))this.g.add({sendTimestamp:a.j,receiveTimestamp:u(),name:a.h||a.b,req:nna(a),resp:h4(c),attemptsHistory:ona(a.g)}),b=pna(a),qna(this,b),b=a.g,b=0<b.length?b[b.length-1].Yf:a.j,d=a.h||a.b,e=u(),d=new DX(new c4(g4[d]||26),this.b||Yu()),EX(d,843,b),EX(d,845,e),FX(d);this.f.b(d4,
a.D,c.status,c.b,c.f)};f4.prototype.search=function(a,c){c=void 0===c?10:c;c=0>c?10:c;var b=this.g.na().filter(function(d){return 0<=a.indexOf(d.resp.code)});return b.slice(-Math.min(b.length,c))};
var qna=function(a,c){a.b&&a.b.then(function(b){return b.V(rna.oZuDyc,{an:c})})},nna=function(a){return{name:(a.F||"")+a.b,body:Hv(i4(a.C)),head:null!=a.o?a.o:{},httpMethod:a.s,remainRetries:null!=a.f?a.f:0}},h4=function(a){return{code:a&&a.Bq,body:a&&Hv(a.aq),head:a&&a.headers}},ona=function(a){var c=[];y(a,function(b){var d=h4(b.response);c.push({Yf:(new Date(b.Yf)).toString(),Xg:(new Date(b.Xg)).toString(),response:d})});return c},i4=function(a){if(a){if("function"===typeof a.Ba)return JSON.parse(a.Ba());
if(Wa(a))return Nb(a,function(c){return i4(c)})}return a},pna=function(a){var c=new hE,b=a.g;S(c,1,a.h||a.b);S(c,2,b.length);var d=[];b.forEach(function(e){e=e.response.Bq;var f=new fE;Ic(Qt,e)?S(f,1,e):S(f,2,sna[e||-1]||1);d.push(f)});rl(c,3,d);return c},j4={},rna=(j4.VCichb=4630,j4.oZuDyc=4631,j4),g4={"hangouts/bulk":27,"hangouts/ping":28,"media_sessions/add":29,"media_sessions/query":30,"media_sessions/modify":31,"media_sessions/log":32,"media_sessions/callperf":33,"media_streams/search":34,"media_streams/add":35,
"media_streams/modify":36},k4={},sna=(k4[0]=0,k4[1]=2,k4[2]=3,k4[3]=4,k4[4]=5,k4[5]=6,k4[6]=7,k4[7]=8,k4[8]=9,k4[9]=10,k4);var l4=function(a){S3.call(this,a);this.b=new LW("realtime.media.api.webrtc.HangoutExtensionServiceImpl");this.V(4864)};q(l4,S3);l4.prototype.uj=function(){var a={method:"cpu.getInfo"};Zz?a=Xz(a,!1):(Zz=!0,a=Yz(a));return a.then()};l4.prototype.vj=function(){return gda()};
var m4=function(a,c,b,d){d=void 0===d?!0:d;var e=Yz({method:"logging.setMetadata",metaData:[{key:"client",value:"Hangouts"},{key:"sessionId",value:c},{key:"participantLogId",value:b},{key:"url",value:window.location.href}]}).then(function(){a.b.b.g(HW,"Extension logging setMetadata succeeded for "+c)},function(f){a.b.b.g(HW,"Extension loggings setMetadata failed for session: "+c+(", error: "+f.value))});return d?hv(e,function(){return m4(a,c,b,!1)}):e};l4.prototype.yj=function(){return n4(this)};
l4.prototype.zj=function(a,c){var b=this;if(c)return Yz({method:"logging.stopAndUpload"}).then(function(d){b.b.info("logging.stopAndUpload succeeded with result="+JSON.stringify(d.value));return d},function(d){b.b.G("logging.stopAndUpload failed with error="+d.value);throw d;});c=Yz({method:"logging.stop"}).then(function(){b.b.info("logging.stop succeeded");return a?Pp(42)?Yz({method:"logging.store",logId:a}):Yz({method:"logging.stop"}):Yz({method:"logging.discard"})});hv(c,function(d){return b.b.G("logging.stop failed with error="+
d)});return c};l4.prototype.tj=function(a){var c=this;return a?Yz({method:"logging.startRtpDump",incoming:!0,outgoing:!0}).then(function(b){c.b.info("logging.startRtpDump succeeded");return b},function(b){c.b.info("logging.startRtpDump failed with error="+b);throw b;}):Yz({method:"logging.stopRtpDump",incoming:!0,outgoing:!0}).then(function(b){c.b.info("logging.stopRtpDump succeeded");return b},function(b){c.b.info("logging.stopRtpDump failed with error="+b);throw b;})};
var n4=function(a,c){c=void 0===c?!0:c;var b=Xu(Yz({method:"logging.start"}));return c?hv(b,function(){return n4(a,!1)}):b};l4.prototype.Aj=function(a,c){return m4(this,a,c).then(function(){return Yz({method:"logging.uploadOnRenderClose"})})};l4.prototype.xj=function(a){var c={method:"logging.startEventLogging",maxLogSizeBytes:4268032,webAppId:1};c[bf&&Pp(74)?"sessionId":"peerConnectionId"]=a;return Yz(c).then()};l4.prototype.wj=function(){return Yz({method:"getHardwarePlatformInfo"}).then()};var o4=function(a){S3.call(this,a);this.V(4866)};q(o4,S3);h=o4.prototype;h.uj=function(){return p4(this,"cpu.getInfo")};h.vj=function(){return null};h.tj=function(){return p4(this,"enableRtpHeaderDump")};h.wj=function(){return p4(this,"getHardwarePlatformInfo")};h.yj=function(){return p4(this,"logging.start")};h.zj=function(){return p4(this,"logging.stop")};h.Aj=function(){return p4(this,"logging.uploadOnRenderClose")};h.xj=function(){return p4(this,"logging.startEventLogging")};
var p4=function(a,c){return Yu(new Sz(6,a.constructor.name+":  Method: "+c+"; Type: expected failure; Explanation: Operation ignored, no Hangout Extension expected."))};var q4=function(){var a=null;try{a=window.sessionStorage||null}catch(c){}this.b=a};x(q4,Jz);var s4=function(a){this.j=QB(a,LD);this.m=QB(a,ED);this.g=new Kz;this.h=new q4;this.b={};this.f={};a=t(this.w,this);var c=null;if(this.g.isAvailable()){var b=this.g.get("scp"),d=null!=b;try{c=JSON.parse(b)}catch(e){d=!1}!d&&a&&(c=a())}else r4.error("Error in retrieving cpu info from local storage.");if(a=c)this.b=a;tna(this);una(this)},v4=function(){var a="Other";Ae?a="Opera":Be?a="Internet Explorer":Ye?a="Firefox":bf?a=t4.test(Xd)?"GMD":u4()?"Chromium-based":"Chrome":cf&&(a="Safari");return a},u4=
function(){if(null!=w4)return w4;var a=navigator.plugins,c;for(c in a)if("Chromium PDF Viewer"==a[c].name)return w4=!0;return w4=!1},x4=function(a){return a.j.then(function(c){return Q3(c)})},y4=function(a){return a.b.archName&&(id(a.b.archName,"aarch")||id(a.b.archName,"arm"))?!0:-1!=Ge.indexOf("armv7l")},wna=function(a){if(null==a)return r4.G("Cannot get cpuFlags from null."),-1;var c=a.features;return c?c.reduce(function(b,d){return b|(vna.get(d)||0)},0):a.cpuHasSSE2?2:-1},tna=function(a){x4(a).then(function(c){if(c=
c.value){a.b=c;a.g.isAvailable()?a.g.set("scp",Hv(c)):r4.error("Error in saving scp to local storage.");c=EL.Ja();var b={archName:a.b.archName,features:a.b.features,modelName:a.b.modelName,numOfProcessors:a.b.numOfProcessors},d="cpuInfo";c.b.has(d)&&(B(c.l,"Already registered a diagnostics data callback for key '"+d+"'."),d=FL(c,d));c.g.set(d,b)}},function(c){return r4.error("Error in getting cpu info from extension "+c)})},una=function(a){z4(a)||a.j.then(function(c){return c.f.wj().then(function(b){z4(a)||
(A4(a,b.value),B4(a,5548),r4.info("Got getHardwarePlatformInfo from extension: "+JSON.stringify(a.f)))},function(b){z4(a)||(A4(a,null),B4(a,5549,b.value),r4.info("Could not get getHardwarePlatformInfo from extension: "+b.value))})})},z4=function(a){var c=null;if(!a.h.isAvailable())return r4.error("Unable to access session storage."),!1;var b=a.h.get("hpi");if(!b)return!1;try{c=JSON.parse(b)}catch(d){return r4.error("HardwarePlatformInfo corrupt in session storage."),!1}a.f=c;return!0},A4=function(a,
c){a.f=c||{};a.h.isAvailable()?a.h.set("hpi",Hv(a.f)):r4.error("Error in saving hardwarePlatformInfo to session storage.")};s4.prototype.w=function(){return y4(this)?{archName:"armv7l",modelName:"Unknown ARM device",numOfProcessors:2}:{archName:"x86",modelName:"Unknown x86 device",numOfProcessors:4}};
var B4=function(a,c,b){a.m.then(function(d){vO(d,c,{Zc:b})})},r4=new LW("realtime.media.api.webrtc.Utils"),vna=new Map([["neon",1],["sse2",2],["ssse3",4],["sse4_1",8],["sse4_2",16],["avx",32]]),t4=/\bGoogleMeetDesktop\/(\S*)/,w4=null;function C4(a,c){c=void 0===c?xna:c;PB(a,LD)||YB(a,LD,function(){return new P3(a,c(a))})}function xna(a){return["Chrome","Chromium-based"].includes(v4())?new l4(a):new o4(a)};var D4=["Client new speaking participant: ",""];D4.raw=D4.slice();var F4=function(){Y.call(this);this.h=new Map;this.m=new Map;this.g=[];this.s=new Map;this.j=!1;this.f=new E4;this.o=new E4;this.C=new My;this.b(this.C);this.l=new tE("realtime.media.audio.service.AudioVolumeService")};q(F4,cF);var zna=function(a,c){a.f.reset();a.o.reset();a.m.forEach(function(b,d){b=c.has(b)?c.get(b).volume:0;b=a.h.get(d).f(b);if(a.f.h<b){var e=a.f;e.g=d;e.h=b}});yna(a)},yna=function(a){a.j||(qv(a.F,0,a),a.j=!0)};
F4.prototype.F=function(){this.j=!1;Ana(this);var a=this.f.b;a=a&&this.h.has(a)?this.h.get(a).getVolume():null;(null==a||null===this.f.f||this.f.f!==this.f.g||.6<=this.f.h-a)&&Bna(this,this.f)};
var Bna=function(a,c){if(c.b!==c.f&&(c.b=c.f,c.b&&a.m.get(c.b),a.l.info(D4,c.b),a.N(new G4(c.b)),c.b)){var b=a.g.find(function(d){return d.Km===c.b});b.We=u();a.s.set(b.Km,b.We)}},Ana=function(a){var c=a.f.g;0!==a.g.length&&a.g.every(function(b){return b.muted})&&(a.g.sort(Cna),c=a.g[0].Km);a.f.f=c},Dna=function(a){PB(a,FD)||YB(a,FD,function(c){return new F4(c)})},G4=function(a){X.call(this,"Ub");this.Qa=a};q(G4,X);
var Cna=function(a,c){return a.We&&c.We?-jc(a.We,c.We)||jc(a.fj,c.fj):a.We?-1:c.We?1:jc(a.fj,c.fj)},E4=function(){this.g=null;this.h=-1;this.b=this.f=null};E4.prototype.reset=function(){this.g=null;this.h=-1;this.f=null};var H4=function(a){N(this,a,"hc:rc",-1,Ena,null)};x(H4,M);var I4=function(a){N(this,a,0,-1,null,null)};x(I4,M);var J4=function(a){N(this,a,"hc:rcs",-1,Fna,null)};x(J4,M);var Ena=[7];H4.prototype.u=function(){var a=new D;K4(this,a);return F(a)};
var K4=function(a,c){var b=O(a,1);null!=b&&H(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&K(c,3,b);b=O(a,4);null!=b&&K(c,4,b);b=O(a,5);null!=b&&J(c,5,b);b=O(a,6);null!=b&&K(c,6,b);b=U(a,I4,7);0<b.length&&L(c,7,b,L4);b=O(a,8);null!=b&&c.f(8,b);b=O(a,9);null!=b&&J(c,9,b);b=O(a,10);null!=b&&K(c,10,b);b=O(a,11);null!=b&&K(c,11,b);b=O(a,12);null!=b&&K(c,12,b);b=O(a,13);null!=b&&K(c,13,b)};I4.prototype.u=function(){var a=new D;L4(this,a);return F(a)};
var L4=function(a,c){var b=O(a,1);null!=b&&K(c,1,b);b=O(a,2);null!=b&&K(c,2,b);b=O(a,3);null!=b&&c.f(3,b);b=O(a,4);null!=b&&H(c,4,b)};Bl("hc:rc",H4);h=H4.prototype;h.getTime=function(){return O(this,1)};h.setTime=function(a){S(this,1,a)};h.ma=function(){return O(this,3)};h.ga=function(a){S(this,3,a)};h.tc=function(){return O(this,12)};var Fna=[2];J4.prototype.u=function(){var a=new D;var c=T(this,H4,1);null!=c&&a.b(1,c,K4);c=O(this,2);0<c.length&&Sk(a,2,c);return F(a)};Bl("hc:rcs",J4);var Gna=function(){this.f=-1};var M4=function(){this.f=64;this.b=Array(4);this.j=Array(this.f);this.h=this.g=0;this.reset()};x(M4,Gna);M4.prototype.reset=function(){this.b[0]=1732584193;this.b[1]=4023233417;this.b[2]=2562383102;this.b[3]=271733878;this.h=this.g=0};
var N4=function(a,c,b){b||(b=0);var d=Array(16);if(Ja(c))for(var e=0;16>e;++e)d[e]=c.charCodeAt(b++)|c.charCodeAt(b++)<<8|c.charCodeAt(b++)<<16|c.charCodeAt(b++)<<24;else for(e=0;16>e;++e)d[e]=c[b++]|c[b++]<<8|c[b++]<<16|c[b++]<<24;c=a.b[0];b=a.b[1];e=a.b[2];var f=a.b[3];var g=c+(f^b&(e^f))+d[0]+3614090360&4294967295;c=b+(g<<7&4294967295|g>>>25);g=f+(e^c&(b^e))+d[1]+3905402710&4294967295;f=c+(g<<12&4294967295|g>>>20);g=e+(b^f&(c^b))+d[2]+606105819&4294967295;e=f+(g<<17&4294967295|g>>>15);g=b+(c^e&
(f^c))+d[3]+3250441966&4294967295;b=e+(g<<22&4294967295|g>>>10);g=c+(f^b&(e^f))+d[4]+4118548399&4294967295;c=b+(g<<7&4294967295|g>>>25);g=f+(e^c&(b^e))+d[5]+1200080426&4294967295;f=c+(g<<12&4294967295|g>>>20);g=e+(b^f&(c^b))+d[6]+2821735955&4294967295;e=f+(g<<17&4294967295|g>>>15);g=b+(c^e&(f^c))+d[7]+4249261313&4294967295;b=e+(g<<22&4294967295|g>>>10);g=c+(f^b&(e^f))+d[8]+1770035416&4294967295;c=b+(g<<7&4294967295|g>>>25);g=f+(e^c&(b^e))+d[9]+2336552879&4294967295;f=c+(g<<12&4294967295|g>>>20);g=
e+(b^f&(c^b))+d[10]+4294925233&4294967295;e=f+(g<<17&4294967295|g>>>15);g=b+(c^e&(f^c))+d[11]+2304563134&4294967295;b=e+(g<<22&4294967295|g>>>10);g=c+(f^b&(e^f))+d[12]+1804603682&4294967295;c=b+(g<<7&4294967295|g>>>25);g=f+(e^c&(b^e))+d[13]+4254626195&4294967295;f=c+(g<<12&4294967295|g>>>20);g=e+(b^f&(c^b))+d[14]+2792965006&4294967295;e=f+(g<<17&4294967295|g>>>15);g=b+(c^e&(f^c))+d[15]+1236535329&4294967295;b=e+(g<<22&4294967295|g>>>10);g=c+(e^f&(b^e))+d[1]+4129170786&4294967295;c=b+(g<<5&4294967295|
g>>>27);g=f+(b^e&(c^b))+d[6]+3225465664&4294967295;f=c+(g<<9&4294967295|g>>>23);g=e+(c^b&(f^c))+d[11]+643717713&4294967295;e=f+(g<<14&4294967295|g>>>18);g=b+(f^c&(e^f))+d[0]+3921069994&4294967295;b=e+(g<<20&4294967295|g>>>12);g=c+(e^f&(b^e))+d[5]+3593408605&4294967295;c=b+(g<<5&4294967295|g>>>27);g=f+(b^e&(c^b))+d[10]+38016083&4294967295;f=c+(g<<9&4294967295|g>>>23);g=e+(c^b&(f^c))+d[15]+3634488961&4294967295;e=f+(g<<14&4294967295|g>>>18);g=b+(f^c&(e^f))+d[4]+3889429448&4294967295;b=e+(g<<20&4294967295|
g>>>12);g=c+(e^f&(b^e))+d[9]+568446438&4294967295;c=b+(g<<5&4294967295|g>>>27);g=f+(b^e&(c^b))+d[14]+3275163606&4294967295;f=c+(g<<9&4294967295|g>>>23);g=e+(c^b&(f^c))+d[3]+4107603335&4294967295;e=f+(g<<14&4294967295|g>>>18);g=b+(f^c&(e^f))+d[8]+1163531501&4294967295;b=e+(g<<20&4294967295|g>>>12);g=c+(e^f&(b^e))+d[13]+2850285829&4294967295;c=b+(g<<5&4294967295|g>>>27);g=f+(b^e&(c^b))+d[2]+4243563512&4294967295;f=c+(g<<9&4294967295|g>>>23);g=e+(c^b&(f^c))+d[7]+1735328473&4294967295;e=f+(g<<14&4294967295|
g>>>18);g=b+(f^c&(e^f))+d[12]+2368359562&4294967295;b=e+(g<<20&4294967295|g>>>12);g=c+(b^e^f)+d[5]+4294588738&4294967295;c=b+(g<<4&4294967295|g>>>28);g=f+(c^b^e)+d[8]+2272392833&4294967295;f=c+(g<<11&4294967295|g>>>21);g=e+(f^c^b)+d[11]+1839030562&4294967295;e=f+(g<<16&4294967295|g>>>16);g=b+(e^f^c)+d[14]+4259657740&4294967295;b=e+(g<<23&4294967295|g>>>9);g=c+(b^e^f)+d[1]+2763975236&4294967295;c=b+(g<<4&4294967295|g>>>28);g=f+(c^b^e)+d[4]+1272893353&4294967295;f=c+(g<<11&4294967295|g>>>21);g=e+(f^
c^b)+d[7]+4139469664&4294967295;e=f+(g<<16&4294967295|g>>>16);g=b+(e^f^c)+d[10]+3200236656&4294967295;b=e+(g<<23&4294967295|g>>>9);g=c+(b^e^f)+d[13]+681279174&4294967295;c=b+(g<<4&4294967295|g>>>28);g=f+(c^b^e)+d[0]+3936430074&4294967295;f=c+(g<<11&4294967295|g>>>21);g=e+(f^c^b)+d[3]+3572445317&4294967295;e=f+(g<<16&4294967295|g>>>16);g=b+(e^f^c)+d[6]+76029189&4294967295;b=e+(g<<23&4294967295|g>>>9);g=c+(b^e^f)+d[9]+3654602809&4294967295;c=b+(g<<4&4294967295|g>>>28);g=f+(c^b^e)+d[12]+3873151461&4294967295;
f=c+(g<<11&4294967295|g>>>21);g=e+(f^c^b)+d[15]+530742520&4294967295;e=f+(g<<16&4294967295|g>>>16);g=b+(e^f^c)+d[2]+3299628645&4294967295;b=e+(g<<23&4294967295|g>>>9);g=c+(e^(b|~f))+d[0]+4096336452&4294967295;c=b+(g<<6&4294967295|g>>>26);g=f+(b^(c|~e))+d[7]+1126891415&4294967295;f=c+(g<<10&4294967295|g>>>22);g=e+(c^(f|~b))+d[14]+2878612391&4294967295;e=f+(g<<15&4294967295|g>>>17);g=b+(f^(e|~c))+d[5]+4237533241&4294967295;b=e+(g<<21&4294967295|g>>>11);g=c+(e^(b|~f))+d[12]+1700485571&4294967295;c=b+
(g<<6&4294967295|g>>>26);g=f+(b^(c|~e))+d[3]+2399980690&4294967295;f=c+(g<<10&4294967295|g>>>22);g=e+(c^(f|~b))+d[10]+4293915773&4294967295;e=f+(g<<15&4294967295|g>>>17);g=b+(f^(e|~c))+d[1]+2240044497&4294967295;b=e+(g<<21&4294967295|g>>>11);g=c+(e^(b|~f))+d[8]+1873313359&4294967295;c=b+(g<<6&4294967295|g>>>26);g=f+(b^(c|~e))+d[15]+4264355552&4294967295;f=c+(g<<10&4294967295|g>>>22);g=e+(c^(f|~b))+d[6]+2734768916&4294967295;e=f+(g<<15&4294967295|g>>>17);g=b+(f^(e|~c))+d[13]+1309151649&4294967295;
b=e+(g<<21&4294967295|g>>>11);g=c+(e^(b|~f))+d[4]+4149444226&4294967295;c=b+(g<<6&4294967295|g>>>26);g=f+(b^(c|~e))+d[11]+3174756917&4294967295;f=c+(g<<10&4294967295|g>>>22);g=e+(c^(f|~b))+d[2]+718787259&4294967295;e=f+(g<<15&4294967295|g>>>17);g=b+(f^(e|~c))+d[9]+3951481745&4294967295;a.b[0]=a.b[0]+c&4294967295;a.b[1]=a.b[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.b[2]=a.b[2]+e&4294967295;a.b[3]=a.b[3]+f&4294967295};
M4.prototype.update=function(a,c){Ia(c)||(c=a.length);for(var b=c-this.f,d=this.j,e=this.g,f=0;f<c;){if(0==e)for(;f<=b;)N4(this,a,f),f+=this.f;if(Ja(a))for(;f<c;){if(d[e++]=a.charCodeAt(f++),e==this.f){N4(this,d);e=0;break}}else for(;f<c;)if(d[e++]=a[f++],e==this.f){N4(this,d);e=0;break}}this.g=e;this.h+=c};
M4.prototype.digest=function(){var a=Array((56>this.g?this.f:2*this.f)-this.g);a[0]=128;for(var c=1;c<a.length-8;++c)a[c]=0;var b=8*this.h;for(c=a.length-8;c<a.length;++c)a[c]=b&255,b/=256;this.update(a);a=Array(16);for(c=b=0;4>c;++c)for(var d=0;32>d;d+=8)a[b++]=this.b[c]>>>d&255;return a};var P4=function(a,c,b,d,e){var f=new H4;f.ga(c);c=u();f.setTime(c);c=O4(O(a,7),c);S(f,2,c);c=O(a,2);S(f,4,c);c=R(a,5,0);S(f,5,c);S(f,6,b.b);a=O(a,6);S(f,11,a);rl(f,7,d);Ia(e)&&S(f,8,e);(d=b.h)&&S(f,10,d);(d=b.tc())&&S(f,12,d);(b=b.g)&&S(f,13,b);return f},Q4=function(a,c,b){var d=new QC,e=(new Date(O(c,4))).toString();S(d,2,e);e=O(c,4);S(d,133,e);e=null!=O(c,3)?O(c,3):O(a,8);S(d,30,e);S(d,3,-2);(e=O(c,1))&&S(d,1,e);e=new QH;V(e,4,d);e.ga(a.ma());d=O(b,14);S(e,11,d||[]);c=O(c,2);S(e,21,c);b=dl(b,8);
S(e,12,b);b=O(a,6);S(e,14,b);b=O(a,10);S(e,16,b);b=a.tc();S(e,22,b);a=O(a,13);S(e,23,a);return e},R4=function(a,c,b){var d=O(b,6),e=b.ma();a.then(function(f){f.V(c,{Wb:d,cb:e})})},O4=function(a,c){a+=c;c=new M4;c.update(a,a.length);return String.fromCharCode.apply(String,c.digest())};var Hna=function(a,c){var b=this;this.b=a;this.f=!1;c.then(function(d){b.f=d})},Ina=function(a,c,b){var d=!0;d=void 0===d?!1:d;var e=dv();S4(a,c,b,new NL(4E3,36E5,.25,4),e.resolve,a.f,d);return e.Y},S4=function(a,c,b,d,e,f,g){g=void 0===g?!1:g;var k=T4(b,c,f),m=U(b,I4,7).map(function(p){return LX(k,Q4(b,p,c),O(p,1),g)});m=cv(m);R4(a.b,4159,b);m.then(function(p){p.every(function(v){return v.ae})?(e(),R4(a.b,4160,b)):(qv(function(){S4(a,c,b,d,e,f,g)},d.b),OL(d),R4(a.b,4161,b))})},T4=function(a,c,b){var d=
void 0===d?GX:d;return new d(c.F,O(a,11)||O(a,6),O(a,4),O(a,5)||0,O(a,6),O(a,9)||O(c,1),b)};var U4=["",""];U4.raw=U4.slice();var V4=["Failed to create RecentCallSummary."];V4.raw=V4.slice();
var Jna=function(a,c){var b=this;this.f=a;this.g=c;this.b=new Kz;this.l=new tE("realtime.media.call.PersistentReportingService");a=window.requestIdleCallback;Xa(a)?a(function(){W4(b)}):qv(function(){W4(b)})},Kna=function(a){var c=QB(a,lT,!0).then(function(b){return mT(b)});PB(a,MD)||YB(a,MD,function(b){b=QB(b,ED).then();var d=new Hna(b,c);return new Jna(d,b)})},Z4=function(a,c,b,d,e,f){if(!X4(a,"Could not save RecentCallSummary because storage was unavailable")||0===e.length)return null;c=P4(c,b,
d,e,f);d=new J4;V(d,1,c);b=Y4(c);d=d.Ba();a.b.set(b,d);return c},Lna=function(a,c){if(!X4(a,"Could not get RecentCalls because storage was unavailable"))return[];for(var b=Ia(6E4)?u()-6E4:0,d=[],e=0;e<a.b.sa();){var f=a.b.key(e++);if(null!==f&&id(f,"rcsprs_")&&(f=$4(a,f),!(null===f||null==O(f,1)||T(f,H4,1).getTime()<b))){var g=O4(c,T(f,H4,1).getTime());O(T(f,H4,1),2)===g&&d.push(T(f,H4,1))}}return d},$4=function(a,c){if(X4(a,"Could not load RecentCallSummary because storage was unavailable")&&(c=
a.b.get(c),null!==c))try{var b=Gv(c);return new J4(b)}catch(d){a=a.l,a.m=d,a.G(V4)}return null},Mna=function(a,c,b){Ina(a.f,c,b).then(function(){var d=Y4(b),e=$4(a,d);if(null!==e&&-1===O(e,2).indexOf(1)){var f=O(e,2).concat([1]);S(e,2,f||[]);e=e.Ba();a.b.set(d,e)}})},X4=function(a,c){if(a.b.isAvailable())return!0;a.l.G(U4,c);return!1},W4=function(a){if(X4(a,"Could not delete old RecentCallSummaries because storage was unavailable")){for(var c=u()-3456E5,b=new Map,d="",e=0,f=0;f<a.b.sa();f++){var g=
a.b.key(f);if(null!==g&&id(g,"rcsprs_")){var k=$4(a,g);if(null===k||null==O(k,1))b.set(g,k);else{var m=T(k,H4,1);m.getTime()>e&&(d=g,e=m.getTime());(m.getTime()<c||-1!==O(k,2).indexOf(1))&&b.set(g,k)}}}b.delete(d);b.forEach(function(p,v){a.b.remove(v);p&&null!=O(p,1)&&-1===O(p,2).indexOf(1)&&R4(a.g,4162,T(p,H4,1))})}};function Y4(a){return"rcsprs_"+O(a,6)+"_"+O(a,11)};/*

 ## MIT

 Copyright (c) 2013?2015 Streams Standard Reference Implementation Authors

 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.



 ## CC0

 To the extent possible under law, the authors have dedicated all copyright and
 related and neighboring rights to this software to the public domain worldwide.
 This software is distributed without any warranty.

 You should have received a copy of the CC0 Public Domain Dedication along with
 this software. If not, see https://creativecommons.org/publicdomain/zero/1.0/.

 Creative Commons Legal Code

 CC0 1.0 Universal

     CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
     LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
     ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
     INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
     REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
     PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
     THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
     HEREUNDER.

 Statement of Purpose

 The laws of most jurisdictions throughout the world automatically confer
 exclusive Copyright and Related Rights (defined below) upon the creator
 and subsequent owner(s) (each and all, an "owner") of an original work of
 authorship and/or a database (each, a "Work").

 Certain owners wish to permanently relinquish those rights to a Work for
 the purpose of contributing to a commons of creative, cultural and
 scientific works ("Commons") that the public can reliably and without fear
 of later claims of infringement build upon, modify, incorporate in other
 works, reuse and redistribute as freely as possible in any form whatsoever
 and for any purposes, including without limitation commercial purposes.
 These owners may contribute to the Commons to promote the ideal of a free
 culture and the further production of creative, cultural and scientific
 works, or to gain reputation or greater distribution for their Work in
 part through the use and efforts of others.

 For these and/or other purposes and motivations, and without any
 expectation of additional consideration or compensation, the person
 associating CC0 with a Work (the "Affirmer"), to the extent that he or she
 is an owner of Copyright and Related Rights in the Work, voluntarily
 elects to apply CC0 to the Work and publicly distribute the Work under its
 terms, with knowledge of his or her Copyright and Related Rights in the
 Work and the meaning and intended legal effect of CC0 on those rights.

 1. Copyright and Related Rights. A Work made available under CC0 may be
 protected by copyright and related or neighboring rights ("Copyright and
 Related Rights"). Copyright and Related Rights include, but are not
 limited to, the following:

   i. the right to reproduce, adapt, distribute, perform, display,
      communicate, and translate a Work;
  ii. moral rights retained by the original author(s) and/or performer(s);
 iii. publicity and privacy rights pertaining to a person's image or
      likeness depicted in a Work;
  iv. rights protecting against unfair competition in regards to a Work,
      subject to the limitations in paragraph 4(a), below;
   v. rights protecting the extraction, dissemination, use and reuse of data
      in a Work;
  vi. database rights (such as those arising under Directive 96/9/EC of the
      European Parliament and of the Council of 11 March 1996 on the legal
      protection of databases, and under any national implementation
      thereof, including any amended or successor version of such
      directive); and
 vii. other similar, equivalent or corresponding rights throughout the
      world based on applicable law or treaty, and any national
      implementations thereof.

 2. Waiver. To the greatest extent permitted by, but not in contravention
 of, applicable law, Affirmer hereby overtly, fully, permanently,
 irrevocably and unconditionally waives, abandons, and surrenders all of
 Affirmer's Copyright and Related Rights and associated claims and causes
 of action, whether now known or unknown (including existing as well as
 future claims and causes of action), in the Work (i) in all territories
 worldwide, (ii) for the maximum duration provided by applicable law or
 treaty (including future time extensions), (iii) in any current or future
 medium and for any number of copies, and (iv) for any purpose whatsoever,
 including without limitation commercial, advertising or promotional
 purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
 member of the public at large and to the detriment of Affirmer's heirs and
 successors, fully intending that such Waiver shall not be subject to
 revocation, rescission, cancellation, termination, or any other legal or
 equitable action to disrupt the quiet enjoyment of the Work by the public
 as contemplated by Affirmer's express Statement of Purpose.

 3. Public License Fallback. Should any part of the Waiver for any reason
 be judged legally invalid or ineffective under applicable law, then the
 Waiver shall be preserved to the maximum extent permitted taking into
 account Affirmer's express Statement of Purpose. In addition, to the
 extent the Waiver is so judged Affirmer hereby grants to each affected
 person a royalty-free, non transferable, non sublicensable, non exclusive,
 irrevocable and unconditional license to exercise Affirmer's Copyright and
 Related Rights in the Work (i) in all territories worldwide, (ii) for the
 maximum duration provided by applicable law or treaty (including future
 time extensions), (iii) in any current or future medium and for any number
 of copies, and (iv) for any purpose whatsoever, including without
 limitation commercial, advertising or promotional purposes (the
 "License"). The License shall be deemed effective as of the date CC0 was
 applied by Affirmer to the Work. Should any part of the License for any
 reason be judged legally invalid or ineffective under applicable law, such
 partial invalidity or ineffectiveness shall not invalidate the remainder
 of the License, and in such case Affirmer hereby affirms that he or she
 will not (i) exercise any of his or her remaining Copyright and Related
 Rights in the Work or (ii) assert any associated claims and causes of
 action with respect to the Work, in either case contrary to Affirmer's
 express Statement of Purpose.

 4. Limitations and Disclaimers.

  a. No trademark or patent rights held by Affirmer are waived, abandoned,
     surrendered, licensed or otherwise affected by this document.
  b. Affirmer offers the Work as-is and makes no representations or
     warranties of any kind concerning the Work, express, implied,
     statutory or otherwise, including without limitation warranties of
     title, merchantability, fitness for a particular purpose, non
     infringement, or the absence of latent or other defects, accuracy, or
     the present or absence of errors, whether or not discoverable, all to
     the greatest extent permissible under applicable law.
  c. Affirmer disclaims responsibility for clearing rights of other persons
     that may apply to the Work or any use thereof, including without
     limitation any person's Copyright and Related Rights in the Work.
     Further, Affirmer disclaims responsibility for obtaining any necessary
     consents, permissions or other rights required for any use of the
     Work.
  d. Affirmer understands and acknowledges that Creative Commons is not a
     party to this document and has no duty or obligation with respect to
     this CC0 or use of the Work.
*/
da();
var a5=Symbol('is "detached" for our purposes'),b5=function(a){return"object"===typeof a&&null!==a||"function"===typeof a},c5=function(a,c){var b={};Object.defineProperty(b,"value",{value:a,enumerable:!0,writable:!0,configurable:!0});Object.defineProperty(b,"done",{value:c,enumerable:!0,writable:!0,configurable:!0});return b},d5=function(a,c,b){if("function"!==typeof a)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(a,c,b)},f5=function(a,c,b,d){var e=a[c];if(void 0!==
e){if("function"!==typeof e)throw new TypeError(e+" is not a method");switch(b){case 0:return function(){return e5(e,a,d)};case 1:return function(f){return e5(e,a,[f].concat(d))}}}return function(){return Promise.resolve()}},g5=function(a,c){var b=a.start;if(void 0!==b)return d5(b,a,c)},e5=function(a,c,b){try{return Promise.resolve(d5(a,c,b))}catch(d){return Promise.reject(d)}},Nna=function(a){var c=a.slice();Object.defineProperty(a,"byteLength",{get:function(){return 0}});a[a5]=!0;return c},h5=function(a){a=
Number(a);if(Number.isNaN(a)||0>a)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return a},i5=function(a){if(void 0===a)return function(){return 1};if("function"!==typeof a)throw new TypeError("size property of a queuing strategy must be a function");return function(c){return a(c)}};var j5=function(a){var c=a.pc.shift();a.eb-=c.size;0>a.eb&&(a.eb=0);return c.value},k5=function(a,c,b){var d=b=Number(b);if(!1===("number"!==typeof d||Number.isNaN(d)||0>d?!1:!0)||Infinity===d)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");a.pc.push({value:c,size:b});a.eb+=b},l5=function(a){a.pc=[];a.eb=0};var m5=function(a){a&&a instanceof Gb&&setTimeout(function(){throw a;},0)};var Ona=Mf("third_party.whatwgstreams"),n5=function(a){for(var c=[],b=0;b<arguments.length;++b)c[b-0]=arguments[b];Pf(Ona,JSON.stringify(c))};da();var o5=Symbol("[[AbortSteps]]");da();var p5=Symbol("[[ErrorSteps]]"),r5=function(a,c){a=void 0===a?{}:a;var b=void 0===c?{}:c;c=b.size;b=void 0===b.highWaterMark?1:b.highWaterMark;q5(this);if(void 0!==a.type)throw new RangeError("Invalid type is specified");c=i5(c);b=h5(b);Pna(this,a,b,c)};
r5.prototype.abort=function(a){var c;!1===(b5(this)?!0:!1)?c=Promise.reject(new TypeError("WritableStream.prototype.abort can only be used on a WritableStream")):c=!0===(void 0===this.vd?!1:!0)?Promise.reject(new TypeError("Cannot abort a stream that already has a writer")):s5(this,a);return c};var Qna=function(a,c,b,d,e,f){e=void 0===e?1:e;f=void 0===f?function(){return 1}:f;var g=Object.create(r5.prototype);q5(g);var k=Object.create(t5.prototype);u5(g,k,a,c,b,d,e,f);return g};
function q5(a){a.va="writable";a.Cb=void 0;a.vd=void 0;a.Pe=void 0;a.rh=[];a.Je=void 0;a.Ge=void 0;a.Ie=void 0;a.oc=void 0;a.rd=!1}var s5=function(a,c){var b=a.va;if("closed"===b||"errored"===b)return Promise.resolve(void 0);if(void 0!==a.oc)return a.oc.xp;var d=!1;"erroring"===b&&(d=!0,c=void 0);b=new Promise(function(e,f){a.oc={Dc:e,Cc:f,yp:c,zp:d}});a.oc.xp=b;!1===d&&v5(a,c);return b};function Rna(a){return new Promise(function(c,b){a.rh.push({Dc:c,Cc:b})})}
function w5(a,c){n5("WritableStreamDealWithRejection(stream, %o)",c);"writable"===a.va?v5(a,c):x5(a)}function v5(a,c){n5("WritableStreamStartErroring(stream, %o)",c);var b=a.Pe;a.va="erroring";a.Cb=c;var d=a.vd;void 0!==d&&y5(d,c);void 0===a.Je&&void 0===a.Ie?(n5("WritableStreamHasOperationMarkedInFlight() is false"),c=!1):(n5("WritableStreamHasOperationMarkedInFlight() is true"),c=!0);!1===c&&!0===b.Xc&&x5(a)}
function x5(a){n5("WritableStreamFinishErroring()");a.va="errored";a.Pe[p5]();for(var c=a.Cb,b=l(a.rh),d=b.next();!d.done;d=b.next())d.value.Cc(c);a.rh=[];if(void 0===a.oc)z5(a);else{var e=a.oc;a.oc=void 0;!0===e.zp?(e.Cc(c),z5(a)):a.Pe[o5](e.yp).then(function(){e.Dc();z5(a)},function(f){e.Cc(f);z5(a)})}}var A5=function(a){return void 0===a.Ge&&void 0===a.Ie?!1:!0};
function z5(a){n5("WritableStreamRejectCloseAndClosedPromiseIfNeeded()");void 0!==a.Ge&&(a.Ge.Cc(a.Cb),a.Ge=void 0);var c=a.vd;void 0!==c&&(B5(c,a.Cb),c.Pb.catch(function(){}))}function C5(a,c){var b=a.vd;void 0!==b&&c!==a.rd&&(!0===c?Sna(b):D5(b));a.rd=c}
var H5=function(a){if(!1===(b5(a)?!0:!1))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===(void 0===a.vd?!1:!0))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this.Wc=a;a.vd=this;var c=a.va;"writable"===c?(!1===A5(a)&&!0===a.rd?Tna(this):E5(this),F5(this)):"erroring"===c?(G5(this,a.Cb),this.ud.catch(function(){}),F5(this)):"closed"===c?(E5(this),this.Pb=Promise.resolve(void 0),this.Mc=
this.Nc=void 0,this.sf="resolved"):(a=a.Cb,G5(this,a),this.ud.catch(function(){}),this.Pb=Promise.reject(a),this.Mc=this.Nc=void 0,this.sf="rejected",this.Pb.catch(function(){}))};H5.prototype.abort=function(a){return!1===(b5(this)?!0:!1)?Promise.reject(I5("abort")):void 0===this.Wc?Promise.reject(J5("abort")):s5(this.Wc,a)};
H5.prototype.close=function(){if(!1===(b5(this)?!0:!1))return Promise.reject(I5("close"));var a=this.Wc;return void 0===a?Promise.reject(J5("close")):!0===A5(a)?Promise.reject(new TypeError("cannot close an already-closing stream")):K5(this)};H5.prototype.write=function(a){return!1===(b5(this)?!0:!1)?Promise.reject(I5("write")):void 0===this.Wc?Promise.reject(J5("write to")):L5(this,a)};
ca.Object.defineProperties(H5.prototype,{ready:{configurable:!0,enumerable:!0,get:function(){return!1===(b5(this)?!0:!1)?Promise.reject(I5("ready")):this.ud}}});function K5(a){var c=a.Wc,b=c.va;if("closed"===b||"errored"===b)return Promise.reject(new TypeError("The stream (in "+b+" state) is not in the writable state and cannot be closed"));var d=new Promise(function(e,f){c.Ge={Dc:e,Cc:f}});!0===c.rd&&"writable"===b&&D5(a);Una(c.Pe);return d}
function Vna(a,c){"pending"===a.sf?B5(a,c):Wna(a,c);a.Pb.catch(function(){})}function y5(a,c){n5("WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, %o)",c);"pending"===a.Ne?Xna(a,c):Yna(a,c);a.ud.catch(function(){})}
var L5=function(a,c){var b=a.Wc,d=b.Pe;try{var e=d.oi(c)}catch(f){M5(d,f),e=1}if(b!==a.Wc)return Promise.reject(J5("write to"));a=b.va;if("errored"===a)return Promise.reject(b.Cb);if(!0===A5(b)||"closed"===a)return Promise.reject(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===a)return Promise.reject(b.Cb);b=Rna(b);a:{c={Tp:c};try{k5(d,c,e)}catch(f){M5(d,f);break a}c=d.Ud;!1===A5(c)&&"writable"===c.va&&C5(c,0>=d.Oe-d.eb);N5(d)}return b},t5=function(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly");
};t5.prototype.error=function(a){if(!1===(b5(this)?!0:!1))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this.Ud.va&&v5(this.Ud,a)};t5.prototype[o5]=function(a){return this.tp(a)};t5.prototype[p5]=function(){l5(this)};
function u5(a,c,b,d,e,f,g,k){c.Ud=a;a.Pe=c;c.pc=void 0;c.eb=void 0;l5(c);c.Xc=!1;c.oi=k;c.Oe=g;c.Ap=d;c.vp=e;c.tp=f;C5(a,0>=c.Oe-c.eb);b=b();Promise.resolve(b).then(function(){c.Xc=!0;N5(c)},function(m){c.Xc=!0;w5(a,m)}).catch(m5)}function Pna(a,c,b,d){var e=Object.create(t5.prototype),f=f5(c,"write",1,[e]),g=f5(c,"close",0,[]),k=f5(c,"abort",1,[]);u5(a,e,function(){return g5(c,[e])},f,g,k,b,d)}function Una(a){k5(a,"close",0);N5(a)}
function N5(a){n5("WritableStreamDefaultControllerAdvanceQueueIfNeeded()");var c=a.Ud;if(!1!==a.Xc&&void 0===c.Je){var b=c.va;"closed"!==b&&"errored"!==b&&("erroring"===b?x5(c):0!==a.pc.length&&(c=a.pc[0].value,"close"===c?Zna(a):$na(a,c.Tp)))}}var M5=function(a,c){"writable"===a.Ud.va&&v5(a.Ud,c)};
function Zna(a){var c=a.Ud;c.Ie=c.Ge;c.Ge=void 0;j5(a);a.vp().then(function(){c.Ie.Dc(void 0);c.Ie=void 0;"erroring"===c.va&&(c.Cb=void 0,void 0!==c.oc&&(c.oc.Dc(),c.oc=void 0));c.va="closed";var b=c.vd;void 0!==b&&(b.Nc(void 0),b.Nc=void 0,b.Mc=void 0,b.sf="resolved")},function(b){c.Ie.Cc(b);c.Ie=void 0;void 0!==c.oc&&(c.oc.Cc(b),c.oc=void 0);w5(c,b)}).catch(m5)}
function $na(a,c){var b=a.Ud;b.Je=b.rh.shift();a.Ap(c).then(function(){b.Je.Dc(void 0);b.Je=void 0;var d=b.va;j5(a);!1===A5(b)&&"writable"===d&&C5(b,0>=a.Oe-a.eb);N5(a)},function(d){b.Je.Cc(d);b.Je=void 0;w5(b,d)}).catch(m5)}function I5(a){return new TypeError("WritableStreamDefaultWriter.prototype."+a+" can only be used on a WritableStreamDefaultWriter")}function J5(a){return new TypeError("Cannot "+a+" a stream using a released writer")}
function F5(a){a.Pb=new Promise(function(c,b){a.Nc=c;a.Mc=b;a.sf="pending"})}function B5(a,c){a.Mc(c);a.Nc=void 0;a.Mc=void 0;a.sf="rejected"}function Wna(a,c){a.Pb=Promise.reject(c);a.sf="rejected"}function Tna(a){n5("defaultWriterReadyPromiseInitialize()");a.ud=new Promise(function(c,b){a.vf=c;a.uf=b});a.Ne="pending"}function G5(a,c){n5("defaultWriterReadyPromiseInitializeAsRejected(writer, %o)",c);a.ud=Promise.reject(c);a.vf=void 0;a.uf=void 0;a.Ne="rejected"}
function E5(a){n5("defaultWriterReadyPromiseInitializeAsResolved()");a.ud=Promise.resolve(void 0);a.vf=void 0;a.uf=void 0;a.Ne="fulfilled"}function Xna(a,c){n5("defaultWriterReadyPromiseReject(writer, %o)",c);a.uf(c);a.vf=void 0;a.uf=void 0;a.Ne="rejected"}function Sna(a){n5("defaultWriterReadyPromiseReset()");a.ud=new Promise(function(c,b){a.vf=c;a.uf=b});a.Ne="pending"}function Yna(a,c){n5("defaultWriterReadyPromiseResetToRejected(writer, %o)",c);a.ud=Promise.reject(c);a.Ne="rejected"}
function D5(a){n5("defaultWriterReadyPromiseResolve()");a.vf(void 0);a.vf=void 0;a.uf=void 0;a.Ne="fulfilled"};da();var O5=Symbol("[[CancelSteps]]");da();var P5=Symbol("[[PullSteps]]"),R5=function(a,c){a=void 0===a?{}:a;var b=void 0===c?{}:c;c=b.size;b=b.highWaterMark;Q5(this);var d=a.type;if("bytes"===String(d)){void 0===b&&(b=0);b=h5(b);if(void 0!==c)throw new RangeError("The strategy for a byte stream cannot have a size function");aoa(this,a,b)}else if(void 0===d)void 0===b&&(b=1),b=h5(b),c=i5(c),boa(this,a,b,c);else throw new RangeError("Invalid type is specified");};
R5.prototype.cancel=function(a){return!1===(b5(this)?!0:!1)?Promise.reject(S5("cancel")):!0===T5(this)?Promise.reject(new TypeError("Cannot cancel a stream that already has a reader")):U5(this,a)};R5.prototype.pipeThrough=function(a,c){var b=a.writable;a=a.readable;if(void 0===b||void 0===a)throw new TypeError("readable and writable arguments must be defined");c=this.pipeTo(b,c);coa(c);return a};
R5.prototype.pipeTo=function(a,c){var b=this;c=void 0===c?{}:c;var d=c.preventClose,e=c.preventAbort,f=c.preventCancel;if(!1===(b5(this)?!0:!1))return Promise.reject(S5("pipeTo"));if(!1===(b5(a)?!0:!1))return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));d=!!d;e=!!e;f=!!f;if(!0===T5(this))return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream"));if(!0===(void 0===a.vd?!1:!0))return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream"));
var g=new V5(this),k=new H5(a),m=!1,p=Promise.resolve();return new Promise(function(v,A){function G(){return!0===m?Promise.resolve():k.ud.then(function(){return W5(g).then(function(Fa){!0!==Fa.done&&(p=L5(k,Fa.value).catch(function(){}))})}).then(G)}function E(){var Fa=p;return p.then(function(){return Fa!==p?E():void 0})}function P(Fa,Yc,re){"errored"===Fa.va?re(Fa.Cb):Yc.catch(re).catch(m5)}function ea(Fa,Yc,re){function Di(){Fa().then(function(){return Dc(Yc,re)},function(hA){return Dc(!0,hA)}).catch(m5)}
!0!==m&&(m=!0,"writable"===a.va&&!1===A5(a)?E().then(Di):Di())}function Va(Fa,Yc){!0!==m&&(m=!0,"writable"===a.va&&!1===A5(a)?E().then(function(){return Dc(Fa,Yc)}).catch(m5):Dc(Fa,Yc))}function Dc(Fa,Yc){var re=k.Wc,Di=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");y5(k,Di);Vna(k,Di);re.vd=void 0;k.Wc=void 0;doa(g);Fa?A(Yc):v(void 0)}P(b,g.Pb,function(Fa){!1===e?ea(function(){return s5(a,Fa)},!0,Fa):Va(!0,Fa)});P(a,k.Pb,function(Fa){!1===f?ea(function(){return U5(b,
Fa)},!0,Fa):Va(!0,Fa)});(function(Fa,Yc,re){"closed"===Fa.va?re():Yc.then(re).catch(m5)})(b,g.Pb,function(){!1===d?ea(function(){var Fa=k.Wc,Yc=Fa.va;return!0===A5(Fa)||"closed"===Yc?Promise.resolve():"errored"===Yc?Promise.reject(Fa.Cb):K5(k)}):Va()});if(!0===A5(a)||"closed"===a.va){var Ec=new TypeError("the destination writable stream closed before all data could be piped to it");!1===f?ea(function(){return U5(b,Ec)},!0,Ec):Va(!0,Ec)}G().catch(function(Fa){p=Promise.resolve();m5(Fa)})})};
var eoa=function(a,c,b,d,e){d=void 0===d?1:d;e=void 0===e?function(){return 1}:e;var f=Object.create(R5.prototype);Q5(f);var g=Object.create(X5.prototype);Y5(f,g,a,c,b,d,e);return f};function Q5(a){a.va="readable";a.Kb=void 0;a.Cb=void 0;a.Xk=!1}function T5(a){return void 0===a.Kb?!1:!0}function Z5(a){return new Promise(function(c,b){a.Kb.Bc.push({Dc:c,Cc:b})})}
function U5(a,c){a.Xk=!0;if("closed"===a.va)return Promise.resolve(void 0);if("errored"===a.va)return Promise.reject(a.Cb);$5(a);return a.tf[O5](c).then(function(){})}function $5(a){a.va="closed";a=a.Kb;if(void 0!==a){if(!0===(b5(a)?!0:!1)){for(var c=l(a.Bc),b=c.next();!b.done;b=c.next()){var d=b.value.Dc;d(c5(void 0,!0))}a.Bc=[]}a.Nc(void 0);a.Nc=void 0;a.Mc=void 0}}
function a6(a,c){a.va="errored";a.Cb=c;a=a.Kb;if(void 0!==a){if(!0===(b5(a)?!0:!1)){for(var b=l(a.Bc),d=b.next();!d.done;d=b.next())d.value.Cc(c);a.Bc=[]}else{b=l(a.ni);for(d=b.next();!d.done;d=b.next())d.value.Cc(c);a.ni=[]}b6(a,c);a.Pb.catch(function(){})}}function c6(a){a=a.Kb;return void 0===a||!1===(b5(a)?!0:!1)?!1:!0}function d6(a){a=a.Kb;return void 0===a||!1===(b5(a)?!0:!1)?!1:!0}
var V5=function(a){if(!1===(b5(a)?!0:!1))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===T5(a))throw new TypeError("This stream has already been locked for exclusive reading by another reader");foa(this,a);this.Bc=[]};V5.prototype.cancel=function(a){return!1===(b5(this)?!0:!1)?Promise.reject(e6("cancel")):void 0===this.Ke?Promise.reject(f6("cancel")):U5(this.Ke,a)};
V5.prototype.read=function(){return!1===(b5(this)?!0:!1)?Promise.reject(e6("read")):void 0===this.Ke?Promise.reject(f6("read from")):W5(this)};function foa(a,c){a.Ke=c;c.Kb=a;"readable"===c.va?goa(a):"closed"===c.va?hoa(a):(ioa(a,c.Cb),a.Pb.catch(function(){}))}
function doa(a){"readable"===a.Ke.va?b6(a,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):a.Pb=Promise.reject(new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"));a.Pb.catch(function(){});a.Ke.Kb=void 0;a.Ke=void 0}function W5(a){a=a.Ke;a.Xk=!0;return"closed"===a.va?Promise.resolve(c5(void 0,!0)):"errored"===a.va?Promise.reject(a.Cb):a.tf[P5]()}var X5=function(){throw new TypeError;};
X5.prototype.close=function(){if(!1===(b5(this)?!0:!1))throw g6("close");if(!1===h6(this))throw new TypeError("The stream is not in a state that permits close");i6(this)};X5.prototype.enqueue=function(a){if(!1===(b5(this)?!0:!1))throw g6("enqueue");if(!1===h6(this))throw new TypeError("The stream is not in a state that permits enqueue");return j6(this,a)};X5.prototype.error=function(a){if(!1===(b5(this)?!0:!1))throw g6("error");k6(this,a)};X5.prototype[O5]=function(a){l5(this);return this.li(a)};
X5.prototype[P5]=function(){var a=this.He;if(0<this.pc.length){var c=j5(this);!0===this.sd&&0===this.pc.length?$5(a):l6(this);return Promise.resolve(c5(c,!1))}a=Z5(a);l6(this);return a};function l6(a){!1!==m6(a)&&(!0===a.Me?a.Le=!0:(a.Me=!0,a.mi().then(function(){a.Me=!1;if(!0===a.Le)return a.Le=!1,l6(a)},function(c){k6(a,c)}).catch(m5)))}
function m6(a){var c=a.He;!1===h6(a)||!1===a.Xc?a=!1:((c=!0===T5(c)&&0<c.Kb.Bc.length)||(c=a.He.va,c=0<("errored"===c?null:"closed"===c?0:a.Oe-a.eb)),a=c?!0:!1);return a}
var i6=function(a){var c=a.He;a.sd=!0;0===a.pc.length&&$5(c)},j6=function(a,c){var b=a.He;if(!0===T5(b)&&0<b.Kb.Bc.length)b.Kb.Bc.shift().Dc(c5(c,!1));else{try{var d=a.oi(c)}catch(e){throw k6(a,e),e;}try{k5(a,c,d)}catch(e){throw k6(a,e),e;}}l6(a)},k6=function(a,c){var b=a.He;"readable"===b.va&&(l5(a),a6(b,c))},h6=function(a){var c=a.He.va;return!1===a.sd&&"readable"===c?!0:!1};
function Y5(a,c,b,d,e,f,g){c.He=a;c.pc=void 0;c.eb=void 0;l5(c);c.Xc=!1;c.sd=!1;c.Le=!1;c.Me=!1;c.oi=g;c.Oe=f;c.mi=d;c.li=e;a.tf=c;a=b();Promise.resolve(a).then(function(){c.Xc=!0;l6(c)},function(k){k6(c,k)}).catch(m5)}function boa(a,c,b,d){var e=Object.create(X5.prototype),f=f5(c,"pull",0,[e]),g=f5(c,"cancel",1,[]);Y5(a,e,function(){return g5(c,[e])},f,g,b,d)}var n6=function(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly");};
n6.prototype.close=function(){if(!1===(b5(this)?!0:!1))throw o6("close");if(!0===this.sd)throw new TypeError("The stream has already been closed; do not close it again!");var a=this.Vc.va;if("readable"!==a)throw new TypeError("The stream (in "+a+" state) is not in the readable state and cannot be closed");a=this.Vc;if(0<this.eb)this.sd=!0;else{if(0<this.td.length&&0<this.td[0].Pc)throw a=new TypeError("Insufficient bytes to fill elements in the given buffer"),p6(this,a),a;$5(a)}};
n6.prototype.enqueue=function(a){if(!1===(b5(this)?!0:!1))throw o6("enqueue");if(!0===this.sd)throw new TypeError("stream is closed or draining");var c=this.Vc.va;if("readable"!==c)throw new TypeError("The stream (in "+c+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(a))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");if(!0===a5 in a.buffer)throw new TypeError("Cannot enqueue a view onto a detached ArrayBuffer");
c=this.Vc;var b=a.byteOffset,d=a.byteLength;a=Nna(a.buffer);if(!0===d6(c))0===c.Kb.Bc.length?q6(this,a,b,d):(a=new Uint8Array(a,b,d),c.Kb.Bc.shift().Dc(c5(a,!1)));else if(!0===c6(c))for(q6(this,a,b,d);0<this.td.length&&0!==this.eb;){c=this.td[0];d=c.vl;a=Math.min(this.eb,c.byteLength-c.Pc);b=c.Pc+a;var e=b-b%d;b=!1;e>c.Pc-c.Pc%d&&(a=e-c.Pc,b=!0);for(d=this.pc;0<a;){var f=d[0];e=Math.min(a,f.byteLength);var g=c.byteOffset+c.Pc,k=f.buffer,m=f.byteOffset,p=e;(new Uint8Array(c.buffer)).set(new Uint8Array(k,
m,p),g);f.byteLength===e?d.shift():(f.byteOffset+=e,f.byteLength-=e);this.eb-=e;f=e;r6(this);c.Pc+=f;a-=e}!0===b&&(this.td.shift(),r6(this),a=this.Vc,b=!1,"closed"===a.va&&(b=!0),d=new c.Vd(c.buffer,c.byteOffset,c.Pc/c.vl),"default"===c.As?(c=d,a.Kb.Bc.shift().Dc(c5(c,b))):(c=d,a.Kb.ni.shift().Dc(c5(c,b))))}else q6(this,a,b,d)};n6.prototype.error=function(a){if(!1===(b5(this)?!0:!1))throw o6("error");p6(this,a)};n6.prototype[O5]=function(a){0<this.td.length&&(this.td[0].Pc=0);l5(this);return this.li(a)};
n6.prototype[P5]=function(){var a=this.Vc;if(0<this.eb){a=this.pc.shift();this.eb-=a.byteLength;0===this.eb&&!0===this.sd?$5(this.Vc):s6(this);try{var c=new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}catch(d){return Promise.reject(d)}return Promise.resolve(c5(c,!1))}c=this.up;if(void 0!==c){try{var b=new ArrayBuffer(c)}catch(d){return Promise.reject(d)}this.td.push({buffer:b,byteOffset:0,byteLength:c,Pc:0,vl:1,Vd:Uint8Array,As:"default"})}a=Z5(a);s6(this);return a};
function s6(a){!1!==joa(a)&&(!0===a.Me?a.Le=!0:(a.Me=!0,a.mi().then(function(){a.Me=!1;!0===a.Le&&(a.Le=!1,s6(a))},function(c){p6(a,c)}).catch(m5)))}function t6(a){r6(a);a.td=[]}function q6(a,c,b,d){a.pc.push({buffer:c,byteOffset:b,byteLength:d});a.eb+=d}function r6(a){void 0!==a.ki&&(a.ki.uA=void 0,a.ki.wA=void 0,a.ki=void 0)}
function joa(a){var c=a.Vc;"readable"!==c.va||!0===a.sd||!1===a.Xc?a=!1:((c=!0===d6(c)&&0<c.Kb.Bc.length||!0===c6(c)&&0<c.Kb.ni.length)||(c=a.Vc.va,c=0<("errored"===c?null:"closed"===c?0:a.Oe-a.eb)),a=c?!0:!1);return a}function p6(a,c){var b=a.Vc;"readable"===b.va&&(t6(a),l5(a),a6(b,c))}
function koa(a,c,b,d,e,f,g){c.Vc=a;c.Le=!1;c.Me=!1;t6(c);c.pc=c.eb=void 0;l5(c);c.sd=!1;c.Xc=!1;c.Oe=h5(f);c.mi=d;c.li=e;c.up=g;c.td=[];a.tf=c;a=b();Promise.resolve(a).then(function(){c.Xc=!0;s6(c)},function(k){p6(c,k)}).catch(m5)}
function aoa(a,c,b){var d=Object.create(n6.prototype),e=f5(c,"pull",0,[d]),f=f5(c,"cancel",1,[]),g=c.autoAllocateChunkSize;if(void 0!==g&&(!1===Number.isInteger(g)||0>=g))throw new RangeError("autoAllocateChunkSize must be a positive integer");koa(a,d,function(){return g5(c,[d])},e,f,b,g)}function S5(a){return new TypeError("ReadableStream.prototype."+a+" can only be used on a ReadableStream")}function f6(a){return new TypeError("Cannot "+a+" a stream using a released reader")}
function e6(a){return new TypeError("ReadableStreamDefaultReader.prototype."+a+" can only be used on a ReadableStreamDefaultReader")}function goa(a){a.Pb=new Promise(function(c,b){a.Nc=c;a.Mc=b})}function ioa(a,c){a.Pb=Promise.reject(c);a.Nc=void 0;a.Mc=void 0}function hoa(a){a.Pb=Promise.resolve(void 0);a.Nc=void 0;a.Mc=void 0}function b6(a,c){a.Mc(c);a.Nc=void 0;a.Mc=void 0}
function g6(a){return new TypeError("ReadableStreamDefaultController.prototype."+a+" can only be used on a ReadableStreamDefaultController")}function o6(a){return new TypeError("ReadableByteStreamController.prototype."+a+" can only be used on a ReadableByteStreamController")}function coa(a){try{Promise.prototype.then.call(a,void 0,function(){})}catch(c){}};var v6=function(a){W.call(this);var c=this;this.D=a;this.o=new jX;this.f=0;this.h=new jX;this.s=Math.floor(a/2);this.j=0;this.m=!0;this.g=null;this.C=new R5({start:function(b){c.g=b},pull:function(){u6(c)}});Xt(this,function(){c.g&&c.g.close()})};q(v6,W);v6.prototype.add=function(a){var c=a.size,b=this.j<this.s;b&&(this.j+=c);var d=b?this.h:this.o;d.enqueue(a);a=this.f+c;if(!b)for(;a>this.D&&!d.Nb();)b=kX(d),a-=b.size;this.f=a;u6(this)};
var u6=function(a){if(a.m){var c=a.g;if(c&&null!==c.desiredSize&&!(0>=c.desiredSize)){var b=a.h.Nb()?a.o:a.h;if(!b.Nb()){b=kX(b);a.f-=b.size;try{c.enqueue(b)}catch(d){throw a.m=!1,d;}}}}};var w6=function(a){N(this,a,0,-1,null,null)};x(w6,M);w6.prototype.u=function(){var a=new D;x6(this,a);return F(a)};var x6=function(a,c){a=R(a,1,0);0!==a&&H(c,1,a)};var y6=function(a){N(this,a,0,-1,null,null)};x(y6,M);var z6=function(a){N(this,a,0,-1,loa,null)};x(z6,M);y6.prototype.u=function(){var a=new D;A6(this,a);return F(a)};var A6=function(a,c){var b=T(a,w6,1);null!=b&&c.b(1,b,x6);b=R(a,2,0);0!==b&&H(c,2,b);b=R(a,3,0);0!==b&&J(c,3,b);b=T(a,z6,4);null!=b&&c.b(4,b,B6);b=R(a,5,0);0!==b&&c.f(5,b);(b=il(a,6,!1))&&I(c,6,b)},loa=[1];z6.prototype.u=function(){var a=new D;B6(this,a);return F(a)};
var B6=function(a,c){var b=O(a,1);0<b.length&&Tk(c,1,b);b=R(a,2,"");0<b.length&&K(c,2,b)};var C6=function(a){N(this,a,0,-1,null,null)};x(C6,M);C6.prototype.u=function(){var a=new D;D6(this,a);return F(a)};var D6=function(a,c){var b=R(a,1,"");0<b.length&&K(c,1,b);b=R(a,2,"");0<b.length&&K(c,2,b);b=R(a,3,"");0<b.length&&K(c,3,b)};C6.prototype.za=function(a){ll(this,2,a)};var E6=function(a){N(this,a,0,-1,moa,null)};x(E6,M);var moa=[4];E6.prototype.u=function(){var a=new D;F6(this,a);return F(a)};var F6=function(a,c){var b=T(a,C6,1);null!=b&&c.b(1,b,D6);b=R(a,2,0);0!==b&&H(c,2,b);b=T(a,nC,3);null!=b&&c.b(3,b,oC);b=U(a,y6,4);0<b.length&&L(c,4,b,A6);(b=il(a,5,!1))&&I(c,5,b)};var G6=function(a){N(this,a,0,-1,noa,null)};x(G6,M);var noa=[1];G6.prototype.u=function(){var a=new D;var c=U(this,E6,1);0<c.length&&L(a,1,c,F6);return F(a)};var ooa=function(a){return P1(function(c){return a.then(function(b){M1(c,"X-Goog-AuthUser",b.toString());M1(c,"Authorization",function(){return ML([])})})})},poa=function(a){return P1(function(c){return a().then(function(b){return M1(c,"Authorization","Bearer "+b)})})};var qoa=function(a){this.b=new m2("google.internal.meetingquality.v1.TextLogStreamingService",a)},roa=function(a,c,b){var d=new W1,e=S1(!0);d.w=e;d.setApiKey(c);d.j=a;a2(d,ooa(Xu(b)));return new qoa(d)},soa=function(a,c){return n2(a.b,"UploadLogContent",c).then(function(){})};var H6=function(a,c,b){a=void 0===a?{}:a;c=void 0===c?{}:c;b=void 0===b?{}:b;if(void 0!==a.RA)throw new RangeError("Invalid readable type specified");if(void 0!==a.aB)throw new RangeError("Invalid writable type specified");var d=i5(c.size);c=c.highWaterMark;void 0===c&&(c=1);c=h5(c);var e=i5(b.size);b=b.highWaterMark;void 0===b&&(b=0);b=h5(b);var f,g=new Promise(function(k){f=k});toa(this,g,c,d,b,e);uoa(this,a);a=g5(a,[this.qh]);f(a)};
ca.Object.defineProperties(H6.prototype,{readable:{configurable:!0,enumerable:!0,get:function(){if(!1===(b5(this)?!0:!1))throw I6("readable");return this.og}},writable:{configurable:!0,enumerable:!0,get:function(){if(!1===(b5(this)?!0:!1))throw I6("writable");return this.pi}}});
function toa(a,c,b,d,e,f){function g(){return c}a.pi=Qna(g,function(k){return voa(a,k)},function(){return woa(a)},function(k){J6(a,k);return Promise.resolve()},b,d);a.og=eoa(g,function(){n5("TransformStreamDefaultSourcePullAlgorithm()");K6(a,!1);return a.ph},function(k){L6(a,k);return Promise.resolve()},e,f);a.rd=void 0;a.ph=void 0;a.Vk=void 0;K6(a,!0);a.qh=void 0}function J6(a,c){n5("TransformStreamError()");k6(a.og.tf,c);L6(a,c)}function L6(a,c){M5(a.pi.Pe,c);!0===a.rd&&K6(a,!1)}
function K6(a,c){n5("TransformStreamSetBackpressure() [backpressure = "+c+"]");void 0!==a.ph&&a.Vk();a.ph=new Promise(function(b){a.Vk=b});a.rd=c}var M6=function(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly");};M6.prototype.enqueue=function(a){if(!1===(b5(this)?!0:!1))throw N6("enqueue");O6(this,a)};M6.prototype.error=function(a){if(!1===(b5(this)?!0:!1))throw N6("error");J6(this.Wk,a)};function xoa(a,c,b,d){c.Wk=a;a.qh=c;c.Yk=b;c.wp=d}
function uoa(a,c){var b=Object.create(M6.prototype),d=function(g){try{return O6(b,g),Promise.resolve()}catch(k){return Promise.reject(k)}},e=c.transform;if(void 0!==e){if("function"!==typeof e)throw new TypeError("transform is not a method");d=function(g){return e5(e,c,[g,b]).catch(function(k){J6(a,k);throw k;})}}var f=f5(c,"flush",0,[b]);xoa(a,b,d,f)}
function O6(a,c){n5("TransformStreamDefaultControllerEnqueue()");a=a.Wk;var b=a.og.tf;if(!1===h6(b))throw new TypeError("Readable side is not in a state that permits enqueue");try{j6(b,c)}catch(d){throw L6(a,d),a.og.Cb;}(!0===m6(b)?!1:!0)!==a.rd&&K6(a,!0)}function voa(a,c){n5("TransformStreamDefaultSinkWriteAlgorithm()");var b=a.qh;return!0===a.rd?a.ph.then(function(){var d=a.pi;if("erroring"===d.va)throw d.Cb;return b.Yk(c)}):b.Yk(c)}
function woa(a){n5("TransformStreamDefaultSinkCloseAlgorithm()");var c=a.og;return a.qh.wp().then(function(){if("errored"===c.va)throw c.Cb;var b=c.tf;!0===h6(b)&&i6(b)}).catch(function(b){J6(a,b);throw c.Cb;})}function N6(a){return new TypeError("TransformStreamDefaultController.prototype."+a+" can only be used on a TransformStreamDefaultController")}function I6(a){return new TypeError("TransformStream.prototype."+a+" can only be used on a TransformStream")};var P6=function(){var a=this;this.Kf=!1;this.ge=dv();this.b=new H6({transform:function(c,b){return Ea(function(d){if(1==d.b)return ua(d,a.ge.Y,2);a.Kf&&b.enqueue(c);d.b=0})}})};P6.prototype.open=function(){this.Kf||(this.Kf=!0,this.ge.resolve())};P6.prototype.close=function(){this.Kf&&(this.Kf=!1,this.ge=dv())};P6.prototype.discard=function(){this.Kf=!1;this.ge.resolve()};var Aoa=function(){var a=this;this.o=1E4;this.m=100;this.g=[];this.b=0;this.w=this.h=this.j=null;this.f=dv();this.s=null;this.D=new H6({start:function(c){a.s=c},transform:function(c){return Ea(function(b){return ua(b,yoa(a,c),0)})},flush:function(){return Ea(function(c){return ua(c,zoa(a),0)})}})},S6=function(a){var c=Q6;c.o=a;c.m=100;R6(c)},yoa=function(a,c){var b,d;return Ea(function(e){if(1==e.b)return b=1,d=a.b+b,d>a.m&&0!==a.b?ua(e,a.f.Y,3):e.Ob(2);2!=e.b&&(d=b);a.g.push(c);a.b=d;R6(a);e.b=0})},
R6=function(a){if(0!==a.b){null==a.j&&(a.j=u());var c=a.j+a.o;c!==a.w&&(a.w=c,a.h&&clearTimeout(a.h),c=Math.max(0,c-u()),a.h=qv(function(){a.h=null;a.j=u();a.w=null;a.s.enqueue(a.g);a.g=[];a.b=0;a.f.resolve();a.f=dv()},c))}},zoa=function(a){return Ea(function(c){return 0===a.g.length?c.Ob(0):ua(c,a.f.Y,0)})};var T6=["","\n  [JSON=","]"];T6.raw=["","\\n  [JSON=","]"];var U6=["","\n  [ERROR=","]"];U6.raw=["","\\n  [ERROR=","]"];var V6=["[","] ",""];V6.raw=V6.slice();
var Coa=function(a){var c=new Map,b=new Map;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Wb||"",f=d.cb;e&&f&&!b.has(e)&&b.set(e,f);c.get(e)?c.get(e).push(d):c.set(e,[d])}var g=[];c.forEach(function(k,m){var p=new E6,v=new C6;ll(v,1,m);m&&b.has(m)&&(m=b.get(m),ll(v,3,m));V(p,1,v);kl(p,2,k[0].sequenceNumber,0);k=k.map(Boa);rl(p,4,k);g.push(p)});return g},Boa=function(a){var c=new z6,b=new y6,d=a.Cq,e=a.Rq;a=a.sequenceNumber;var f=new w6;kl(f,1,a,0);V(b,1,f);ml(b,3,Doa(e.level));kl(b,
2,e.timestamp,0);a=e.message;e.context&&(a=kE(V6,e.context,a));e.error&&(a=kE(U6,a,e.error));e.json&&(a=kE(T6,a,e.json));kl(b,6,d,!1);d=a.b.map(W6).join("%s");e=W6(e.name)+": "+d;ll(c,2,e);e=a.values.map(Eoa);S(c,1,e||[]);V(b,4,c);return b};function W6(a){return a.replace(/%/g,"%%")}function Eoa(a){try{return void 0===a?"<undefined>":null===a?"<null>":Ja(a)?a:r(a)?a.toString():Ya(a)&&a.toString!=Object.prototype.toString?a+"":JSON.stringify(a)}catch(c){return"<error stringifying value>"}}
function Doa(a){switch(a){case 0:return 1;case 1:return 2;case 2:return 3;case 3:return 4;default:return 0}};var Foa=function(a,c){c=void 0===c?null:c;return new r5({write:function(b){var d,e,f,g;return Ea(function(k){if(1==k.b)return d=b,e=Coa(d),f=new G6,rl(f,1,e),va(k,2),ua(k,soa(a,f),4);if(2!=k.b)return c&&c.V(5383),wa(k,0);g=xa(k);c&&c.V(5382);throw g;})}})};var X6=["Call has ended"];X6.raw=X6.slice();var Y6=["PLID updated "," -> ","."];Y6.raw=Y6.slice();var Z6=["Updating PLID "," -> ","."];Z6.raw=Z6.slice();
var $6=new tE("realtime.media.logging.upload.uploader"),a7,Q6,b7,c7=0,d7=!1,e7=!1,f7,g7=dv(),h7,i7=!1,Goa={wd:function(a){if(!(1>a.level)){var c=c7++;a7.add({Wb:f7,cb:h7,sequenceNumber:c,size:1,Cq:i7,Rq:a})}}},Hoa=function(a,c,b,d){d=void 0===d?null:d;d7||(d7=!0,a7=new v6(1E3),oE(qE(),Goa),a=roa(a,c,b),d=Foa(a,d),Q6=new Aoa,b7=new P6,a=new H6({transform:function(e,f){var g;return Ea(function(k){if(1==k.b)return e.Wb?k.Ob(2):ua(k,g7.Y,3);2!=k.b&&(g=k.f,e.Wb=g);f.enqueue(e);k.b=0})}}),a7.C.pipeThrough(a).pipeThrough(Q6.D).pipeThrough(b7.b).pipeTo(d),
j7())};function j7(){b7&&(e7?b7.open():b7.close())};var k7=["Log upload disallowed. Stopping upload."];k7.raw=k7.slice();var l7=["Log upload allowed. Starting upload."];l7.raw=l7.slice();var m7=["Log streaming not enabled. Service configuration was not provided."];m7.raw=m7.slice();var n7=["Enabling experimental log streaming."];n7.raw=n7.slice();var o7=function(a){Y.call(this);this.l=new tE("realtime.media.logging.upload.LogUploadService");this.g=a;this.f=this.h=!1;new My(this);this.j=null;this.m=Promise.resolve(QB(this.g,ED))};q(o7,cF);
var Hma=function(a){var c,b,d,e,f,g;Ea(function(k){if(1==k.b)return a.l.info(n7),ua(k,QB(a.g,lT,!0),2);if(3!=k.b)return c=k.f,b=c.h,d=O(c,24),e=b?b.f:null,f=O(c,26),a.f=null!=d&&null!=f,a.f?ua(k,a.m,3):(a.l.G(m7),k.return());g=k.f;Hoa(d,e,f,g);p7(a);q7(a);k.b=0})};o7.prototype.ga=function(a){this.j=a;q7(this)};
var q7=function(a){var c,b;Ea(function(d){if(1==d.b)return ua(d,QB(a.g,HD,!0),2);if(3!=d.b)return c=d.f,ua(d,c.g,3);b=d.f;var e=a.j;if(f7!==b){var f=f7;i7=!1;f&&($6.info(Z6,f,b),c7=0);f7=b;g7.resolve(b);$6.info(Y6,f,b)}h7=e;d.b=0})},p7=function(a){a.h?(a.l.info(l7),a.f&&a.m.then(function(c){return vO(c,5384)}),e7=!0):(a.l.info(k7),e7=!1);j7()},Ioa=function(a){PB(a,ND)||YB(a,ND,function(c){return new o7(c)})};var r7=function(a){var c=this;this.b=null;this.O=QB(a,lT,!0).then(function(b){return c.b=b});this.f=null;this.J=QB(a,MD).then().then(function(b){return c.f=b});this.o=null;QB(a,GD).then(function(b){return c.o=b});this.m=Xu(QB(a,ND));this.D=dv();this.F=this.D.Y;this.j=null;this.g=!1;this.h=[];this.w=!1},Joa=function(a){PB(a,CD)||YB(a,CD,function(c){return new r7(c)})},s7=function(a){return a.xa.h.na().slice().map(function(c){var b=new I4;S(b,1,bJ(c));var d=c.rb();S(b,2,d);S(b,3,c.xc);c=c.Sm();S(b,
4,c);return b})},h1=function(a){a.w||g1(a);return a.j||!1},Koa=function(a,c){a.b?c():a.O.then(c)},t7=function(a,c){a.f?c():a.J.then(c)};r7.prototype.C=function(a){var c=this;t7(this,function(){var b=a.cb.get()||"";Loa(c,b,O(a.f,7)||"");var d=a.H,e=s7(a);Z4(c.f,a.f,b,d,e)})};var Loa=function(a,c,b){var d=void 0===d?!1:d;a.F.then(function(){(h1(a)||d)&&Lna(a.f,b).filter(function(e){return e.ma()===c}).forEach(function(e){U(e,I4,7).forEach(function(f){O(f,2);e.ma()})})})};
r7.prototype.s=function(a){var c=this;ac(this.h,a);i1(this);this.m.then(function(){i7=!0;$6.info(X6)});t7(this,function(){bv([a.onConnect,a.onDisconnect]).then(function(b){b=l(b);b.next();var d=b.next().value;b=a.f;var e=a.cb.get()||"",f=a.H,g=s7(a),k=c.f;(d=Z4(k,b,e,f,g,d))&&Mna(k,b,d)},Qa)})};
var i1=function(a){a.m.then(function(){0<a.h.length?Q6&&S6(1E4):Q6&&S6(0)})},g1=function(a,c){Koa(a,t(function(){this.w=!0;this.g=null;var b=dv();b.Y.then(t(this.H,this),t(this.L,this,c));var d=O(this.b,10);if(null!=d){null!=c&&(d=Pr(d,"set",String(c)));var e=vw(tw);e.open("GET",d,!0);e.onreadystatechange=function(){4==e.readyState&&(200==e.status?b.resolve(e.responseText):b.reject(null))};e.send(null)}else b.reject(null)},a))};r7.prototype.H=function(a){this.g="true"==a;u7(this)};
r7.prototype.L=function(a){this.g=Ia(a)?a:h1(this);u7(this)};
var u7=function(a){a.D.resolve();null===a.j&&(a.j=a.g,a.m.then(function(c){var b=h1(a);c.h=b;p7(c)}),y(a.h,function(c){d0(c.xa,h1(this))},a));a.g!=a.j&&g1(a,h1(a))},x1=function(a,c){var b=Moa(c);if(null==O(b,4)||null==O(b,5)||null==O(b,6)||0==(U(b,I4,7)||[]).length)return[];var d=a.b,e=T4(b,d,mT(d));return U(b,I4,7).map(function(f){var g=Q4(b,f,d);return KX(e,g,O(f,1))})},Moa=function(a){var c=a.f,b=a.cb.get(),d=a.H,e=s7(a);a=2==a.onDisconnect.b?a.onDisconnect.get():void 0;return P4(c,b,d,e,a)};var v7=function(a){Y.call(this);var c=this;this.f=null;this.j=QB(a,ED).then();this.g=!1;(a=navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(b){c.f=b;var d=new My(c);c.b(d);d.listen(b,["chargingchange","levelchange"],c.h);c.h();b=EL.Ja();d=HL(b,"shouldConserveBattery",function(){return c.g});Xt(c,b.j.bind(b,d))})};q(v7,Y);v7.prototype.h=function(){var a=!this.f.charging&&.1>this.f.level;this.g!=a&&(this.g=a,this.N("Vb"),this.j.then(function(c){c.V(a?2805:2806)},void 0,this))};
var Noa=function(a){PB(a,BD)||YB(a,BD,function(c){return new v7(c)})};var Ooa=function(a){var c=void 0===c?!1:c;xja(a);Dna(a);Noa(a);Joa(a);Hga(a);lna(a);Kna(a);mna(a);$ja(a);jka(a);Ioa(a);C4(a,c?function(b){return new o4(b)}:void 0)};var x7=function(){this.b=new w7;this.f=null;this.version=0};x(x7,qY);h=x7.prototype;h.Od=function(a){return new y7(this,0,a)};h.Pd=function(a){return new y7(this,1,a)};h.ie=function(a){return new y7(this,2,a)};h.Qd=function(a){return new y7(this,3,[a])};h.je=function(){return new y7(this,4,[])};var w7=function(){TV.call(this)};x(w7,TV);w7.prototype.execute=function(a){a.execute()};var y7=function(a,c,b){this.b=a;this.h=c;this.f=b;this.version=null;this.g=dv();this.j=!1};
y7.prototype.execute=function(){this.j=!0;Nu(t(this.pt,this))};var Poa=function(a){if(!a.b.f)return null;switch(a.h){case 0:return a.f;case 1:var c=[];y(Nb(a.f,a.xl,a),function(b,d){null===b||c.push(this.f[d])},a);return c;case 2:case 3:return a=Nb(a.f,a.xl,a),bc(a,Ta),a;case 4:return a.b.f.get();default:return null}};h=y7.prototype;h.xl=function(a){var c=this.b.f;if(!c)return null;var b=sW(c,a);return Sb(c.get(),function(d){return b.equals(sW(c,d))})};
h.pt=function(a,c){if(a=a||Poa(this)){if(Ia(c))c>this.b.version&&(this.b.version=c);else switch(this.h){case 0:case 1:case 2:this.b.version++}this.g.resolve(new GV(a,Ia(c)?c:this.b.version))}else this.g.reject("Could not perform operation")};h.Cj=function(a){this.version=a;return!0};h.If=function(){return this.g};h.Ph=function(){return this.g.Y};h.Kg=sc(0);h.Qh=Qa;h.Qf=sc(0);h.Oh=sc(void 0);h.Zf=Qa;h.Ih=function(){return this.j};h.Gh=function(){return this.h.toString()};h.Ni=function(){return this.f.toString()};var z7=function(a,c,b){var d=wY(),e=WX.Ja(),f=new x7;a=new cY(a,XX(e,c),b,d,f);return f.f=a};var A7=function(a,c,b){Y.call(this);this.F=c;this.f=tX(a,"realtime.media.session.MediaSessionSyncer");this.s=a.f.D;this.o=new My(this);this.b(this.o);this.H=b;this.J=new MX;this.g=this.h=null;this.j=-1;this.m=null};q(A7,cF);var C7=function(a){a.f.info("["+a.g+"] stopping session sync");B7(a);Ry(a.o,a.s,"La",a.C);a.h=null},E7=function(a){null!=a.h&&(a.f.info("["+a.g+"] session resync requested"),B7(a),D7(a))};A7.prototype.ia=function(){C7(this);cF.prototype.ia.call(this)};
var D7=function(a){a.f.info("["+a.g+"] sending session query");Gja(a.F,a.h).then(a.T,a.O,a)},F7=function(a){B7(a);a.f.info("["+a.g+"] scheduling session query");a.m=qv(function(){a.m=null;D7(a)},1E4)},B7=function(a){null!=a.m&&(rv(a.m),a.m=null)},H7=function(a,c){c=PX(a.J,c,!a.H);a.N(new G7(c))};
A7.prototype.T=function(a){if(null!=this.h){var c=a.K().Hb();Ja(c)&&(c=parseInt(c,10));this.f.info("["+this.g+"] session query returned version "+(c+", have "+this.j));c>this.j&&(this.j=c,H7(this,a.Fh()));F7(this)}};
A7.prototype.O=function(a){if(null!=this.h)switch(a=a instanceof JX?a:new JX(""+a),a.status){case 4:case 5:case 7:case 11:this.f.error("["+this.g+"] session query returned error "+(a.status+", stopping sync."));C7(this);this.N(new I7(a.status,a.desc));break;default:this.f.G("["+this.g+"] ignoring session query error "+(""+a.status)),F7(this)}};
A7.prototype.C=function(a){var c=this;if(null!=this.h)if(a=a.notification,a.Db().some(function(e){return e.h()==c.h}))this.f.info("["+this.g+"] removed by session push"),C7(this),this.N(new I7(11,"session removed"));else{var b=a.K();b=b&&b.Hb();if(void 0===b)this.f.info("["+this.g+"] session push with no version, have "+this.j);else if(this.f.info("["+this.g+"] session push provided version "+(b+", have "+this.j)),!(b<=this.j)){var d=a.gb().find(function(e){return e.h()==c.h});null!=d&&(this.f.info("["+
this.g+"] modified by session push"),this.j=b,H7(this,d));null!=O(a,4)&&a.ob().h()==this.h&&(this.f.info("["+this.g+"] resync requested by session push"),E7(this))}}};var I7=function(a,c){X.call(this,"Wb");this.status=a;this.message=c};q(I7,X);var G7=function(a){X.call(this,"Xb");this.sessionDescription=a};q(G7,X);var J7=function(a,c,b,d,e,f){fI.call(this);var g=this;this.l=Mf("realtime.media.api.apiary.RemoteSession");this.j=tX(c,"realtime.media.api.apiary.RemoteSession");this.qa=a;this.Aa=c.f;this.Ca=b;this.H=this.C=this.o=this.kb=this.g=null;this.fa=d;this.fa.m=8;this.fa.F=3E3;this.W=e;this.T=f;this.j.info("Creating a new remote session with earlyMediaHangoutId="+f.f+" P2P="+f.b+" useAudio="+f.h+" useVideo=true");this.h=this.f=null;this.Ia=dv();this.ab=[];this.Fb=!1;this.s=new My(this);this.b(this.s);this.O=
new A7(c,this.fa,this.T.b);this.b(this.O);this.F=new MX;this.m="INITIAL";this.bb=new Set;this.Da=[];this.pa=[];this.ua=new Map;this.J=new Map;this.qb=new Map;this.da=new Map;this.Wa=new Map;this.zb=new Map;this.Ma=dv();this.Sa=dv();this.tb=new Set;this.Ab=QB(a,ED).then();this.yc=QB(a,DD).then();a=EL.Ja();Xt(this,GL(a,"mediaSessionStartTime",function(){return(new Date(g.ha)).toString()}));Xt(this,GL(a,"mediaUpStreams",function(){return g.f&&jW(g.f)}));Xt(this,GL(a,"mediaDownStreams",function(){return g.h&&
jW(g.h)}))};q(J7,fI);var K7=function(a,c,b,d){a.m!=c&&(a.j.info("Session "+O_(a)+" state changed from "+a.m+" to "+c),a.m=c,a.N(new XH(c,b,d)))};J7.prototype.getState=function(){return this.m};J7.prototype.Il=function(){return this.Ia.Y.then(function(a){return null!=a.o?a.o.Y:Xu(a.get())})};
var Roa=function(a,c,b){var d=a.h,e=zl(d.j);e.za(c);e.ga(b);b=d.start(e);Qoa(a);a.T.b||hv(UX(b,"wa",c,a),function(f){f="Stopping session "+O_(a)+" "+("because downstream search failed with error: "+f);a.j.error(f);L7(a,3950,{sessionId:a.g||void 0});a.stop(16,f)})},L7=function(a,c,b){a.Ab.then(function(d){d.V(c,b)})},Qoa=function(a){a.T.b||(null==a.bb?B(a.l,"Attempting to install collection filters with null participants. setParticipants() must be called prior to this call!"):fja(a.h,function(c){return a.bb.has(c.ba()||
"")}))};
J7.prototype.Id=function(a){if("INITIAL"!=this.m)return!1;this.Fb=null!=a;a=a||"";null!=this.h?Of(this.l,"Remote streams collection already initiated"):(this.T.b?(C(this.l,"Preparing p2p remote streams collection."),this.h=z7(this.qa,this.Aa,[a,1,""])):(C(this.l,"Preparing normal remote streams collection."),this.h=yY(this.qa,this.Aa,[a,1,""],wY(),vY,"Na","MediaDownStream"),this.s.listen(this.h,"ab",this.Bb),this.s.listen(this.h,"$a",this.hc)),this.Ia.resolve(this.h),this.b(this.h),fW(this.h),this.s.listen(this.h,
"Za",this.gc));K7(this,"STARTING");return!0};J7.prototype.start=function(a){this.za(a);K7(this,"STARTED");this.Ma.Y.then(this.Ib,null,this);return!0};
J7.prototype.wh=function(a,c,b){this.j.info("Attempting to connect session "+O_(this)+" to Hangout: "+a);switch(this.m){case "INITIAL":B(this.l,"Connect to hangout called before starting.");return;case "STOPPED":case "FINISHED":B(this.l,"Connect to hangout called after end.");return}null!=this.o?Of(this.l,"Multiple hangouts per RemoteSession not yet supported."):(this.o=a,this.C=c,this.H=b,this.ha=x0(),this.Ma.resolve())};
J7.prototype.Ib=function(){var a=this.H&&this.H.b||"";this.j.info("Session "+O_(this)+" is started and connected to Hangout: "+this.o+" with participantId: "+this.C+" and participantLogId: "+a);a=this.g;var c=this.o;null!=this.f?Of(this.l,"Local streams collection already initiated"):(this.T.b?(C(this.l,"Preparing p2p local streams collection."),this.f=z7(this.qa,this.Aa,[c,2,a])):(C(this.l,"Starting normal local streams collection."),this.f=yY(this.qa,this.Aa,[c,2,a],wY(),vY,"Na","MediaUpStream"),
this.s.listen(this.f,"ab",this.Bb),this.f.start()),this.s.listen(this.f,"Za",this.xc),this.b(this.f));M7(this,this.g,this.o,this.Da);Wb(this.Da);Roa(this,this.g,this.o);0<this.pa.length&&(N7(this,this.pa),Wb(this.pa));K7(this,"INPROGRESS");this.Sa.resolve();O7(this)};
var tka=function(a,c){a.bb=new Set(c);null!=a.h&&xW(a.h);a.T.b&&a.Ma.Y.then(function(){var b=c.filter(function(e){return e!=a.C});if(1!=b.length)1<b.length&&a.stop(51);else{var d=new sR([1,1,a.g,"8579373",a.o,b[0],"1",[[8579373],[]]]);b=new sR([1,2,a.g,"8579374",a.o,b[0],"2",[[8579374,8579375],[["FID",[8579374,8579375]]]]]);a.h.add(d);a.h.add(b)}})};J7.prototype.af=function(){E7(this.O);this.f&&this.f.Vg();this.h&&this.h.Vg()};J7.prototype.resume=function(){this.J=new Map};
J7.prototype.stop=function(a,c){this.j.info("Session "+O_(this)+" stopping because stop was called with endCause: "+a);if("STOPPED"==this.m)return!1;Yt(this.O);null==this.g||"STARTING"!=this.m&&"INPROGRESS"!=this.m||(Yt(this.f),this.f=null,Yt(this.h),this.h=null,this.Ia.reject(a),this.Ia=dv());K7(this,"STOPPED",a,c);return!0};
var C_=function(a,c,b){var d=a.g,e=a.o,f=a.C;if(null==d)return Yu(Error("UploadLogData before we have a sessionId."));if(null==e)return Yu(Error("UploadLogData before we have a hangoutId."));c.ga(e);null!=a.Ca&&S(c,1,a.Ca);null!=f&&c.Na(f);S(c,11,a.W.b.slice()||[]);S(c,12,a.W.f);S(c,18,a.W.g);a.H&&a.H.j(c);S(c,21,b);return LX(a.fa,c,d,!1)};
J7.prototype.om=function(a){var c=this;if(a=hD(a)){var b=new Set;a.forEach(function(d){var e=nD(d)[0]>>>0;switch(sD(d)){case 1:Soa(c,e,d);break;case 0:b.add(e),Toa(c,e,d)}});b.size<this.da.size&&this.da.forEach(function(d,e){b.has(e)||c.da.delete(e)})}};
var Dka=function(a,c,b){var d=a.g,e=a.o;null==d?B(a.l,"Upload log data before we have a sessionId."):null==e?B(a.l,"Upload log data before we have a hangoutId."):P7(a,d,e,b,c)},Eka=function(a,c,b,d,e,f){var g=a.g,k=a.o;null==g?B(a.l,"Finalize log data uploads before we have a sessionId."):null==k?B(a.l,"Finalize log data uploads before we have a hangoutId."):P7(a,g,k,b,e,c,d,f).then(function(){return a.N("ra")})};J7.prototype.lc=function(a){this.N(new fJ(a.sessionDescription))};
J7.prototype.mc=function(a){switch(a.status){case 11:var c=25;break;default:c=15}this.stop(c,"ClientResponseStatus: "+a.status+" with desc: "+a.message)};
var Q7=function(a,c){var b;(b=a.g!=c.g||a.f!=c.f)||(a=a.Tb(),c=c.Tb(),b=null==a&&null==c?!1:null==a||null==c?!0:a.width!=c.width||a.height!=c.height);return b},Toa=function(a,c,b){if("INPROGRESS"==a.m){var d=x0(),e=Uoa(a,c),f=(O(b,65)||0)&Voa;e.Ij<d&&e.em!=f&&(c=Woa(a.f.get(),c))&&(e.Ij=Infinity,b=a.f.cc(c),b.vb(c.la()),xha(b,Xoa(f)),gv(nW(a.f,b).then(function(){e.em=f}),function(){e.Ij=d+1E4}))}},Soa=function(a,c,b){if(2==rD(b)){var d=x0(),e=a.zb.get(c)||0,f=O(b,10)||0;a.zb.set(c,f);f=Math.max(f-
e,0);e=a.Wa.get(c);if(null!=e){S(b,114,e.settings.width);S(b,115,e.settings.height);if(e.settings.Bh){S(b,159,Math.ceil(1E3/e.settings.Bh));Pf(a.l,"Set last request width/height/fps "+e.settings.width+"/"+e.settings.height+"/"+e.settings.Bh+" for ssrc "+c+" in jmidata");var g=O(b,65)||0;30>e.settings.Bh?g|=65536:(g&65536&&(g&=-65537),S(b,65,g))}else Pf(a.l,"Set last request width/height "+e.settings.width+"/"+e.settings.height+"/ for ssrc "+c+" in jmidata");f=!R7(a,c)||0<f;c=!!dl(b,59);if(e.isLive!=
f||e.bm!=c)e.isLive=f,e.bm=c,e.Te&&(e.Te=d);if(e.Te&&b instanceof QY&&(b.D=f,b.h=d-e.Te,d=b.s,c&&0<(O(b,138)||0)&&d&&dl(d,14))){L7(a,4577);var k=gka(d);eK(k,[25]);a.yc.then(function(m){wO(m,k)})}}}},P7=function(a,c,b,d,e,f,g,k){if(null==e&&null==f)return Yu("Nothing to upload");var m=new QC;S(m,2,(new Date(a.ha)).toString());S(m,133,a.ha);var p=-2;a.ha&&(p=(x0()-a.ha)/1E3,p=Math.round(p));S(m,3,p);null!=c&&S(m,1,c);null!=f&&S(m,29,f);null!=g&&S(m,30,g);null==k||kd(pe(k))||S(m,100,k);null!=e&&rl(m,
5,[e]);e=new QH;V(e,4,m);e.ga(b);null!=a.C&&(e.Na(a.C),S(e,24,a.C));null!=a.Ca&&S(e,1,a.Ca);S(e,11,a.W.b.slice()||[]);S(e,12,a.W.f);S(e,18,a.W.g);a.H&&(b=a.H,b.m&&(m=T(e,QC,4)||new QC,S(m,4,b.m),V(e,4,m)),b.j(e));S(e,21,d);return LX(a.fa,e,c,!1)},qka=function(a,c){switch(a.m){case "INITIAL":case "STARTING":case "STARTED":fc(a.Da,c);return;case "STOPPED":case "FINISHED":B(a.l,"Add local streams called after end.");return}var b=a.g,d=a.o;null==b?a.j.error("Attempting to add local streams before we have a sessionId."):
null==d?fc(a.Da,c):M7(a,b,d,c)},M7=function(a,c,b,d){d.forEach(function(e){e=LF(new JF(e),a.C).aa();var f=Qja(a.F,c,b,e),g=a.f.g,k=g.f(f);if(a.ab.some(function(p){return oc(k,p)}))a.j.G("Ignore addLocalStream because we have pending add for the same stream "+e);else{var m=a.f.get().some(function(p){return bW(g,f,p)});m||"d"==e.la()||a.ab.push(k);m=UX(m?nW(a.f,f):a.f.add(f),"ya",c,a);"d"!=e.la()&&hv(m,function(p){p="Stopping session "+O_(a)+" because "+("addLocalStream failed with error: "+p);a.j.error(p);
L7(a,3951,{sessionId:a.g||void 0});a.stop(16,p)})}})},I_=function(a,c){a.Sa.Y.then(function(){var b=a.f.cc(c.b);b.vb(QX(a.F,c.la()));var d=new vR,e=c.bd();S(d,1,e);b.jf(d);nW(a.f,b)})},Tka=function(a,c){"a"==c.la()&&a.Sa.Y.then(function(){var b=a.f.cc(c.b);b.vb(QX(a.F,c.la()));var d=new vR;S(d,1,!0);b.jf(d);nW(a.f,b)})};
J7.prototype.za=function(a){if(this.g!=a){this.j.info("Session id changing from "+O_(this)+" to "+(a||"{unset}"));this.g=a;this.s.listen(this.O,"Xb",this.lc);this.s.listen(this.O,"Wb",this.mc);var c=this.O,b=O_(this);b=void 0===b?a:b;c.f.info("["+b+"] starting session sync");c.h=a;c.g=b;c.o.listen(c.s,"La",c.C);D7(c)}};
var O_=function(a){if(null==a.g)return"{unset}";null==a.kb&&(a.kb=a.g.substring(0,6)+"{#"+(a.g.length-7)+"}"+a.g.substring(a.g.length-1));return a.kb},rka=function(a){if(null!=a.f){var c=a.f.get().find(function(d){return 2==d.la()});if(null==c)a.j.G("Attempting to signal screencast started, but no video stream found!");else{c=a.f.cc(c);c.vb(2);S(c,11,!1);var b=new vR;S(b,1,!1);c.jf(b);nW(a.f,c)}}},H_=function(a){if(null!=a.f){var c=a.f.get().find(function(b){return 2==b.la()});null==c?a.j.G("Attempting to signal screencast ended, but no video stream found!"):
(c=a.f.cc(c),c.vb(2),S(c,11,!0),nW(a.f,c))}};J7.prototype.Qe=function(a){var c=this;this.ua=new Map;a.forEach(function(b){var d=S7(b.ba(),b.wa());c.ua.set(d,b)});O7(this)};
var O7=function(a){switch(a.m){case "INITIAL":case "STARTING":case "STOPPED":case "FINISHED":return}if(null==a.g)a.j.error("Ignoring changed stream requests because we don't have a sessionId.");else if(null==a.o)a.j.error("Ignoring changed stream requests because we don't have a hangoutId.");else{var c=new Map,b=QX(a.F,"v");a.h.get().forEach(function(d){if(d.la()==b){var e=S7(d.ba(),d.wa());c.set(e,d)}});a.ua.forEach(function(d,e){if(c.has(e)){var f=a.J.get(e);if(!f||Q7(f,d))a.J.set(e,d),T7(a,c.get(e),
d)}else C(a.l,"Skipping stream request for "+d.ba()+" (no matching stream was found).")});a.J.forEach(function(d,e){if(!a.ua.has(e)){var f=dG(gfa(ffa(new ZF(d))),!1).aa();Q7(d,f)&&(a.J.delete(e),(d=c.get(e))?T7(a,d,f):C(a.l,"Unable to turn off stream request for "+e+" (no matching stream was found)."))}})}},T7=function(a,c,b){if("STOPPED"!=a.m&&"FINISHED"!=a.m){a.tb.has(b.ba())&&(b=bG(new ZF(b),"").aa());var d=c.Qj(),e=b.Tb(),f=b.g;if(!e||0>=e.height||0>=e.width||!b.f)f=!1;f=Tja(a.F,a.g,a.o,b,f);
f.Sj(d);a.j.info("Session "+O_(a)+" sending stream request: "+b.toString()+" with streamId: "+d);c=T(c,tR,8);a.Ab.then(function(g){return g.V(5149)});V(f,8,c);nW(a.h,f);e&&c&&O(c,1)&&(c=O(c,1)[0]>>>0,null!=c&&(Yoa(a,c,{width:e.width,height:e.height,Bh:b.f||void 0}),Pf(a.l,"Building map: last request width/height "+e.width+"/"+e.height+" for ssrc "+c)))}},R7=function(a,c){a=a.qb.get(c);return Ia(a)?a:!0},U7=function(a,c){var b=c.bd()||c.C&8;c.yb().forEach(function(d){a.qb.set(d,!!b)})},Yoa=function(a,
c,b){var d=a.Wa.get(c);d?d.settings=b:(d={Te:0,isLive:!R7(a,c),bm:!1,settings:b},a.Wa.set(c,d));a=76800<b.width*b.height;!d.Te&&a?d.Te=x0():a||(d.Te=0)},S7=function(a,c){return(void 0===a?"":a)+"/"+(void 0===c?"":c)};J7.prototype.gc=function(a){null!=a.Lb&&0<a.Lb.length&&N7(this,a.Lb);null!=a.Eb&&0<a.Eb.length&&Zoa(this,a.Eb);null!=a.removed&&0<a.removed.length&&$oa(this,a.removed)};
J7.prototype.hc=function(a){var c=a.Eb?a.Eb.length:0;Pf(this.l,"Received early streams push notification with "+c+" modified streams");if(this.Fb&&0!=c)if("INPROGRESS"==this.m)N7(this,a.Eb);else if("STARTING"==this.m||"STARTED"==this.m)this.pa=dc(this.pa,a.Eb)};
var N7=function(a,c){V7(a,c,function(b){O7(a);b.forEach(function(d){a.j.info("Session "+O_(a)+" notified of new remote stream: "+d.toString());U7(a,d)});a.N(new gI(b,[],[]))})},Zoa=function(a,c){V7(a,c,function(b){b.forEach(function(d){a.j.info("Session "+O_(a)+" received modified remote stream: "+d.toString());U7(a,d)});a.N(new gI([],b,[]))})},$oa=function(a,c){V7(a,c,function(b){b.forEach(function(d){a.j.info("Session "+O_(a)+" removing remote stream: "+d.toString());d.yb().forEach(function(e){a.qb.delete(e)});
d=S7(d.ba(),d.wa());a.J.delete(d)});a.N(new gI([],[],b))})},V7=function(a,c,b){var d=apa(a,c);null==d?B(a.l,"Failed to parse streamInfos: "+d):0==d.length?B(a.l,"Got empty streamInfos: "+c):b(d)},apa=function(a,c){return Rja(a.F,c).map(function(b){if(""==b.wa()){var d=bpa[b.la()];b=MF(new JF(b),d).aa();a.tb.add(b.ba())}return b})};
J7.prototype.xc=function(a){var c=this;if(Ua(a.Lb)&&0<a.Lb.length){var b=this.f.g;a.Lb.map(function(e){return b.f(e)}).forEach(function(e){cc(c.ab,function(f){return oc(e,f)})})}if(Ua(a.removed)&&0<a.removed.length)0==this.f.get().length&&(this.j.info("Session "+O_(this)+" terminating to handle Reflector failover."),K7(this,"STOPPED",26));else if(Ua(a.Eb)&&0<a.Eb.length){var d=Uja(this.F,a.Eb);null==d?B(this.l,"Failed to parse stream requests: "+a):0==d.length?B(this.l,"Got empty stream requests: "+
a):this.N(new hI(d))}};J7.prototype.Bb=function(a){this.j.error("Stopping session "+this.g+" because stream collection failed, with reason: "+a.reason);this.stop(a.b)};
var Uoa=function(a,c){var b=a.da.get(c);b||(b={Ij:0,em:0},a.da.set(c,b));return b},Woa=function(a,c){return a.find(function(b){b=T(b,tR,8);return!!b&&void 0!=O(b,1).find(function(d){return d>>>0==c})})||null},Xoa=function(a){var c=new wR;W7.forEach(function(b,d){a&d&&O(c,1).push(b)});return c},X7={},bpa=(X7.a="1",X7.v="2",X7.d="3",X7),W7=new Map([[1,1],[2,2],[8,3]]),Voa=Array.from(W7.keys()).reduce(function(a,c){return a|c},0);var Y7=function(){pX.apply(this,arguments)};q(Y7,pX);Y7.prototype.lm=function(a,c,b){var d=this.api.f;b=new GX(d.h,O(d,6),O(d,2),R(d,5,0),b,O(d,1),mT(d));a=new J7(a,this.api,O(d,6),b,new Xga(O(d,14),dl(d,8)||!1,!!dl(d,16)),c);a.b(b);return a};oX(qX,Y7,1);var Z7=function(a,c){X.call(this,"Yb");this.sessionId=a;this.b=new Map(c)};q(Z7,X);var cpa=function(){this.b=new Map},dpa=function(a,c){for(var b=l(a.b.keys()),d=b.next();!d.done;d=b.next())d=d.value,c.has(d)||a.b.delete(d);c.forEach(function(e,f){var g=a.b.get(f);void 0!==g&&(e.volume=.75*e.volume+.25*g);a.b.set(f,e.volume)})};var $7={audio:"a",video:"v",data:"d",application:"d"};var a8=function(a,c){c=void 0===c?{}:c;this.h=a;this.g=c;this.w=[];this.C=new Set;this.o="ICE";this.m="full";this.j=null},c8=function(a){if(a.j)return a.j;var c=Math.pow(2,53)*Math.random(),b=[];b.push(new BO("v","0"));b.push(new BO("o","- "+c+" 2 IN IP4 127.0.0.1"));b.push(new BO("s","-"));b.push(new BO("t","0 0"));c=a.g.Dn?epa(a):fpa(a);0<a.w.length&&b.push(a.b.apply(a,["group","BUNDLE"].concat(n(a.w))));b.push(a.b("ice-options","trickle"));b.push.apply(b,n(b8(a,a.o,a.m)));b.push(a.b("msid-semantic",
"WMS","*"));b=new KO(b);a.j=new LO(b,c);return a.j},fpa=function(a){return[a.h.ta,a.h.oa,a.h.Ta].filter(function(c){return null!=c}).map(function(c,b){var d=wG(c),e=jG(c);a.f&&(e=a.f.media[b].b.get("mid").b);return d8(a,c.g,e,d,[],!0,!0)})},epa=function(a){var c=a.f?a.f.media:[],b=a.g.hm||gpa(a),d=!!a.g.hm,e=!!a.g.hm,f=!1,g=[];b.forEach(function(k,m){var p=k.send,v=k.receive,A=k.type,G=k.stream;k=k.mid;var E=[];a.f||"a"!==A||d||(d=v=!0);a.f||"v"!==A||e||(e=v=!0,a.g.mr&&E.push.apply(E,n(a.g.mr)));
"d"!==A||f||(f=v=p=!0);if(c[m]&&c[m].Dg){var P=c[m];v=!0;P.b.get("rid").forEach(function(ea,Va){"send"===ea.b&&E.push(Va)})}a.f?c[m]&&c[m].cj&&(p=!0):p=p||!!G;G=G?[G]:[];k||a.f||(k="mid_"+m);g.push(d8(a,A,k,G,E,p,v))});return g},gpa=function(a){var c=hpa(a,a.h),b=a.D?a.D.media:[],d=[];b.forEach(function(v){var A=$7[v.mediaType];v=v.b.get("mid").b;d.push({type:A,mid:v,send:!1,receive:!1,stream:null})});var e=ipa(b),f=jpa(b,a.f);if(a.f){b=a.f;for(var g=0;g<b.media.length;g++){var k=b.media[g],m=k.b.get("mid").b;
if(g<d.length)d[g].mid=m;else{var p=$7[k.mediaType];d.push({type:p,mid:m,send:!1,receive:!1,stream:null});k.cj&&(k=f.get(p)||[],f.set(p,[].concat(n(k),[g])))}}}c.forEach(function(v){var A=v.type,G=(v=v.stream)&&(v.g||v.Ld);if(G&&(G=e.get(G),void 0!==G)){d[G].stream=v;return}(G=f.get(A))&&0<G.length?(A=G.shift(),d[A].stream=v):a.f||d.push({type:A,stream:v,mid:null,send:!1,receive:!1})});return d},hpa=function(a,c){var b=[];c=[c.ta,c.oa,c.Ta];a=Math.max.apply(Math,[a.f?0:1].concat(n(c.map(function(e){return wG(e).length}))));
for(var d={pf:0};d.pf<a;d={pf:d.pf},d.pf++)c.forEach(function(e){return function(f){var g=wG(f)[e.pf];f=f.g;(g||0===e.pf)&&b.push({type:f,stream:g})}}(d));return b},kpa=function(a,c){a=a.h;switch(c){case "a":return a.ta;case "v":return a.oa;case "d":return a.Ta;default:Hb()}},lpa=function(a,c,b){c=[new BO("m",new AO(Nc($7)[c],"0","RTP/SAVPF",["0"])),new BO("c","IN IP6 ::"),a.b("inactive")];b&&c.push(a.b("mid",b));return new JO(c)},d8=function(a,c,b,d,e,f,g){var k=kpa(a,c),m=a.h.b,p=z(a.h.f),v=!f&&
!g;Ye&&v&&(b=null);b&&!a.w.includes(b)&&a.w.push(b);if(v)return lpa(a,c,b);v=[];var A=Nc($7)[c],G=hG(k),E=k.f,P="RTP/SAVPF";m&&m.b&&(P=E?"DTLS/SCTP":"UDP/TLS/RTP/SAVPF");var ea="DTLS/SCTP"===P?[E.xb()]:G.map(function(Va){return Va.Kd.toString()});v.push(new BO("m",new AO(A,"9",P,ea)));A="inactive";f&&g?A="sendrecv":g?A="recvonly":f&&(A="sendonly");v.push.apply(v,n(mpa(a,b,A)));v.push.apply(v,n(npa(a,m)));v.push.apply(v,n(opa(a,p)));v.push.apply(v,n(ppa(a,k,g)));v.push.apply(v,n(qpa(a,G,c,rpa(z(k.b)))));
(c=k.h)&&v.push.apply(v,n(spa(c)));0<e.length&&v.push.apply(v,n(e8(a,"recv",e)));v.push.apply(v,n(tpa(a,E)));v.push.apply(v,n(upa(a,d)));return new JO(v)};a8.prototype.b=function(a,c){for(var b=[],d=1;d<arguments.length;++d)b[d-1]=arguments[d];return new BO("a",new zO(a,b.join(" ")))};
var mpa=function(a,c,b){var d=[];d.push(new BO("c","IN IP6 ::"));d.push(a.b("rtcp","9","IN IP6 ::"));d.push(a.b("rtcp-mux"));c&&d.push(a.b("mid",c));d.push(a.b(b));a=Nb(a.g.Bt||[],function(e){return this.b("x-google-flag",e)},a);d.push.apply(d,n(a));return d},npa=function(a,c){var b=c&&c.f||"123456789012345678901234",d=[];d.push(a.b("ice-ufrag",c&&c.g||"1234567890123456"),a.b("ice-pwd",b));c&&(a.o=c.Hb(),a.m=c.m);d.push.apply(d,n(b8(a,a.o,a.m)));c&&c.b&&(d.push(a.b("fingerprint",c.b)),d.push(a.b("setup",
a.f?c.j:"actpass")));return d},b8=function(a,c,b){if("ICE"==c){if("lite"==b)return[a.b("ice-lite")]}else Hb("google-ice is no longer supported.");return[]},opa=function(a,c){var b;0<c.length&&(b=c[0]);return null!=b?[a.b("crypto",b.Sf.toString(),b.cf,b.Og)]:[]},ppa=function(a,c,b){return z(c.b).map(function(d){var e=d.getId().toString();if(d.ed.includes("rtp-stream-id"))if(!a.f||b)e+="/recvonly";else return null;return a.b("extmap",e,d.ed)}).filter(function(d){return null!=d})},qpa=function(a,c,b,
d){var e=[];c.forEach(function(f){var g=f.Kd.toString(),k=f.getName(),m=f.Rf;if("v"===b||"d"===b)m=9E4;k=k+"/"+m;"a"===b&&1<(f.bf||0)&&(k+="/"+f.bf);e.push(a.b("rtpmap",g,k));k=f.Jd;if(Ia(Cc(k))){var p=[];yc(k,function(v,A){A&&v&&p.push(A+"="+v)});k="";0<p.length&&(k=p.join("; "));e.push(a.b("fmtp",g,k))}"a"===b&&!a.f&&f.b&&e.push(a.b("rtcp-fb",g,"nack"));if(hF(f,"vp8")||hF(f,"vp9")||hF(f,"h264"))e.push(a.b("rtcp-fb",g,"ccm fir"),a.b("rtcp-fb",g,"nack"),a.b("rtcp-fb",g,"goog-remb")),d&&e.push(a.b("rtcp-fb",
g,"transport-cc"))});return e},spa=function(a){var c=[];a=a.b;-1!=a&&c.push(new BO("b","AS:"+a));return c},tpa=function(a,c){return c?[a.b("sctpmap",c.xb().toString(),c.getName(),c.b.toString())]:[]},upa=function(a,c){var b=[];c.forEach(function(d){if(!kd(pe(d.Ld))){var e=d.wa(),f=d.Ld,g=d.g?d.g:f;a.g.Dn&&b.push(a.b("msid",f+" "+g));a.C.add(f);var k=z(d.h).map(function(p){return a.b.apply(a,["ssrc-group",p.b].concat(n(p.yb())))});b.push.apply(b,n(k));if(d.f&&0<z(d.f.b).length){var m=d.f;k=m.Dg?"send":
"recv";m=z(m.b).reverse();b.push.apply(b,n(e8(a,k,m)))}d.yb().forEach(function(p){b.push(a.b("ssrc",p.toString(),"cname:"+e));b.push(a.b("ssrc",p.toString(),"msid:"+f+" "+g))})}});return b},e8=function(a,c,b){var d=b.map(function(e){return a.b("rid",e,c)});return 0<d.length?(b=a.b("simulcast",c,"rid="+b.join(";")),[].concat(n(d),[b])):[]};
ca.Object.defineProperties(a8.prototype,{s:{configurable:!0,enumerable:!0,set:function(a){this.D=a;this.j=null}},F:{configurable:!0,enumerable:!0,set:function(a){this.f=a;this.j=null}}});function rpa(a){return bf&&Pp(59)&&a.some(function(c){return c.ed.includes("http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions")})}function ipa(a){var c=new Map;a.forEach(function(b,d){b=b.b.get("msid");b.f&&(b=l(b.b.split(" ")),b.next(),b=b.next().value,c.set(b,d))});return c}
function jpa(a,c){var b=new Map;a.forEach(function(d,e){if(!(d.b.get("msid").f||c&&c.media[e]&&!c.media[e].cj)){d=$7[d.mediaType];var f=b.get(d)||[];b.set(d,[].concat(n(f),[e]))}});return b};var f8=function(a,c){var b=void 0===b?{}:b;a=new a8(a,b);a.s=void 0===c?null:c;return c8(a)},vpa=function(a){var c=a.f,b=a.g,d=a.j,e=a.xb(),f=a.s,g=a.D,k=a.b,m=a.h;a=[a.m,c,b.toLowerCase(),a.w,d,e,"typ",Nc(yO)[k]];switch(k){case "LOCAL":"TCP"==b&&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: "+k)}a.push("generation",m);return new RTCIceCandidate({sdpMLineIndex:0,candidate:"candidate:"+a.join(" ")})};var j8=function(a){Y.call(this);var c=this;this.h=wpa(this,a);this.m=a.J;this.g=new LW("realtime.media.api.webrtc.PeerConnection");this.f=xpa(this);this.C=dv();this.j=new Map;this.f.onicecandidate=this.s.bind(this);bf&&(this.f.onaddstream=function(b){(b=b.stream)&&c.N(new g8(b,b.id))},this.f.onremovestream=function(b){if(b=b.stream)c.N(new h8(b,b.id)),i8(b)});this.o=ypa(this)};q(j8,Y);
j8.prototype.ia=function(){cf?this.f.getSenders().forEach(function(a){return a.track&&a.track.stop()}):this.f.getRemoteStreams().forEach(function(a){return i8(a)});this.close();Y.prototype.ia.call(this)};
var ypa=function(a){var c,b;return Ea(function(d){if(bf)return d.return();a.f.addTransceiver("audio",{direction:"sendonly",streams:[new MediaStream]});c=a.f.addTransceiver("video",{direction:"sendonly",streams:[new MediaStream]});if(!a.h.s||cf)return d.Ob(0);b=[{rid:"f"},{rid:"h",scaleResolutionDownBy:2},{rid:"q",scaleResolutionDownBy:4}];return ua(d,c.sender.setParameters({encodings:b}),0)})},xpa=function(a){var c=a.h.H;Ye&&(c[0].urls=c[0].urls.slice(0,2));c={iceServers:c,bundlePolicy:"max-bundle"};
var b=RTCPeerConnection||webkitRTCPeerConnection;if(bf){var d={mandatory:{RtpDataChannels:!a.m,DtlsSrtpKeyAgreement:a.h.J},optional:[{googHighStartBitrate:!0},{googHighBitrate:!0},{googPayloadPadding:!0},{googSkipEncodingUnusedStreams:!0},{googScreencastMinBitrate:400},{googVeryHighBitrate:!0}]};d.optional.push({googCpuOveruseDetection:!0});d.optional.push({googCpuOveruseEncodeUsage:!0});d.optional.push({googCpuUnderuseThreshold:55});d.optional.push({googCpuOveruseThreshold:85});null==a.h.m&&null==
a.h.w||d.optional.push({googDscp:!0});c.sdpSemantics="plan-b";a.g.info("Creating new PeerConnection with config="+Hv(c)+" constraints="+Hv(d))}else a.g.info("Creating new PeerConnection with config="+Hv(c));return new b(c,d)},wpa=function(a,c){return"high"!=c.m&&"high"==c.w?(a.g.error("Misconfigured DSCP priorities: Video priority > Audio."),a=WI(c),a.m=null,a=WI(a),a.w=null,a):c},q_=function(a,c,b){b||(bf&&!a.m?b={reliable:!1}:b={});a.m&&null==b.id&&(k8+=2,b.id=k8);return a.f.createDataChannel(c,
b)};j8.prototype.close=function(){"closed"!=this.f.signalingState&&this.f.close();zu(this.f);this.f.onicecandidate=null;this.f.oniceconnectionstatechange=null;this.f.onaddstream=null;this.f.onremovestream=null;this.f.ondatachannel=null};
var zpa=function(a,c){if(bf)a.f.addStream(c);else{var b=c.getTracks()[0];a.f.getTransceivers().find(function(d){return("sendonly"==d.direction||"sendrecv"==d.direction)&&d.receiver.track.kind==b.kind}).sender.replaceTrack(b)}},Apa=function(a,c){if(bf)a.f.removeStream(c);else{var b=c.getTracks()[0];a.f.getTransceivers().find(function(d){return d.sender.track==b}).sender.replaceTrack(null)}},l8=function(a){return a.f.getReceivers?a.f.getReceivers():[]},Bpa=function(a){return a.f.getSenders?a.f.getSenders():
[]};j8.prototype.s=function(a){if(a=a.candidate)a.candidate?(a=Tga(a.candidate),this.N(new m8(a))):this.g.G("RTCIceCandidate.candidate had no value.")};var Cpa=function(a,c){var b;return Ea(function(d){if(1==d.b)return b=dv(),ua(d,a.o,2);bf?a.f.createOffer(b.resolve,b.reject,c):b.resolve(a.f.createOffer(c));return d.return(b.Y.then(function(e){e=NO(e.sdp);a.C.resolve(bf&&Pp(74)?e.session.sessionId:a.f.id);return e},function(e){a.g.error("createOffer Failed: "+e);throw e;}))})};
j8.prototype.getStats=function(a){var c=this;return bf&&(void 0===a||a)?new Tu(function(b){c.f.getStats(b)}):Xu(this.f.getStats())};
var n8=function(a,c){c=vpa(c);var b=dv();bf?a.f.addIceCandidate(c,b.resolve,b.reject):b.resolve(a.f.addIceCandidate(c));hv(b.Y,function(d){a.g.G("addIceCandidate Failed: "+d)});return b.Y},o8=function(a,c){var b=new RTCSessionDescription({type:"offer",sdp:MO(c)});c=Dpa(a,b);hv(c,function(d){a.g.G("setLocalDescription Failed: "+d);a.g.G("The current signalingState is : "+a.f.signalingState);a.g.G("The offending SDP was: \n"+b.sdp)});return c.then(Qa)},Dpa=function(a,c){return bf?new Tu(function(b,
d){a.f.setLocalDescription(c,b,d)}):Xu(a.f.setLocalDescription(c))},Fpa=function(a,c){var b=new RTCSessionDescription({type:"answer",sdp:MO(c)}),d=dv();bf?a.f.setRemoteDescription(b,d.resolve,d.reject):d.resolve(a.f.setRemoteDescription(b));hv(d.Y,function(e){a.g.G("setRemoteDescription Failed: "+e);a.g.G("The current signalingState is : "+a.f.signalingState);a.g.G("The offending SDP was: \n"+b.sdp);throw e;});d.Y.then(function(){return Epa(a,c)});return d.Y},Epa=function(a,c){var b=new Map;c.media.forEach(function(e){var f=
e.b.get("mid").b;f&&(e=e.b.get("msid"),e.f&&(e=l(e.b.split(" ")).next().value,b.set(f,e)))});var d=new Map(a.j);a.f.getTransceivers().forEach(function(e){var f=e.mid;e=e.receiver.track;e.enabled&&f&&(f=b.get(f))&&(a.j.has(f)?d.delete(f):(e=new MediaStream([e]),a.j.set(f,e),a.N(new g8(e,f))))});d.forEach(function(e,f){a.j.delete(f);a.N(new h8(e,f))})},m8=function(a){X.call(this,"Zb");this.candidate=a};q(m8,X);var g8=function(a,c){X.call(this,"$b");this.stream=a;this.b=c};q(g8,X);
var h8=function(a,c){X.call(this,"ac");this.stream=a;this.b=c};q(h8,X);var i8=function(a){return[].concat(n(a.getAudioTracks()),n(a.getVideoTracks())).forEach(function(c){return c.stop()})},k8=0;var p8=function(){this.f=new Set;var a=Math.max(void 0===a?2:a,2);var c=Math.min(void 0===c?4294967295:c,4294967295);a>c&&(a=2,c=4294967295);this.b=a;this.g=c},q8=function(a){for(var c=a.g-a.b+1,b=Math.floor(a.b+c*Math.random()),d=0;a.f.has(b);)if(b<a.g?++b:b=a.b,++d>=c)return null;a.f.add(b);return b};var r8=["PeerConnection's current remote SDP is: ",""];r8.raw=r8.slice();var s8=["PeerConnection's current local SDP is: ",""];s8.raw=s8.slice();var t8=["Last remote SDP was: ",""];t8.raw=t8.slice();var u8=["Last local SDP was: ",""];u8.raw=u8.slice();var v8=["Rengotiation (id=",") FAILED: ",". Error=",""];v8.raw=v8.slice();var w8=["Altering remote description (",")."];w8.raw=w8.slice();var x8=["RTX is enabled, but offer does not contain RTX codec."];x8.raw=x8.slice();var y8=["Creating the initial local description from the offer SDP."];
y8.raw=y8.slice();var z8=["Creating a local offer (isIceRestart=",")."];z8.raw=z8.slice();var A8=["Adding "," pending ICE candidates after setRemoteDescription."];A8.raw=A8.slice();var B8=["Cancelling "," pending negotiation(s)."];B8.raw=B8.slice();var C8=["Skipping negotiation since remote description has been set yet."];C8.raw=C8.slice();var D8=["Queueing negotiation."];D8.raw=D8.slice();var E8=["Initial local offer set successfully."];E8.raw=E8.slice();var F8=["Setting initial local offer."];
F8.raw=F8.slice();var G8=["Generating initial local offer SDP."];G8.raw=G8.slice();var H8=["Queueing setting of the initial local description."];H8.raw=H8.slice();var I8=["Initial offer successfully created."];I8.raw=I8.slice();var J8=["Creating initial offer."];J8.raw=J8.slice();var K8=["Negotiation (id=","): Successfully completed."];K8.raw=K8.slice();var L8=["Negotiation (id=","): Starting."];L8.raw=L8.slice();
var M8=function(a,c,b){this.ja=a;this.b=c;this.D=b;this.l=new tE("realtime.media.api.webrtc.PeerNegotiator");this.f=this.Re=null;this.C=0;this.o=this.Nd=this.Df=null;this.g=[];this.h=[];this.j=this.w=!1;this.m=[];this.s=!0},Hpa=function(a){var c,b,d,e,f;return Ea(function(g){switch(g.b){case 1:c=a.C++;b=a.s;a.s=!1;d=a.o;a.l.info(L8,c);e=!0;if(!b){g.Ob(2);break}e=a.Nd;if(bf){g.Ob(2);break}f=KG(EG(JG(d,vG(qG(d.ta,[]),[])),vG(qG(d.oa,[]),[])),vG(qG(d.Ta,[]),[]));return ua(g,N8(a,c,f),4);case 4:e=!0;
case 2:if(!e){g.Ob(5);break}return ua(g,Gpa(a,c,d),5);case 5:return ua(g,N8(a,c,d),7);case 7:a.l.info(K8,c),g.b=0}})},Gpa=function(a,c,b){var d,e,f,g,k;return Ea(function(m){switch(m.b){case 1:d=a.ja;va(m,2);e=null;f=a.j;a.j=!1;g=!bf||f;if(!g){m.Ob(4);break}return ua(m,Ipa(a,b,f),5);case 5:e=m.f;case 4:if(f){var p=PO(e);a.Nd=LG(a.localDescription,p.b)}a.Nd&&(a.Df=a.Nd,a.Nd=null);e=bf?f8(a.Df,a.Re):O8(a,e);P8(a);return ua(m,o8(d,e),6);case 6:a.Re=e;wa(m,0);break;case 2:throw k=xa(m),Q8(a,"Failed to create or set local offer.",
c,k),k;}})},O8=function(a,c){cf&&a.b.s&&(c=Jpa(c));return c},Jpa=function(a){var c=new p8;a.media.forEach(function(b,d){if("video"==b.mediaType&&b.Dg&&!b.b.get("ssrc-group").get("SIM").f){var e=b.b.get("ssrc-group").get("FID").b.split(" "),f=Array.from(b.j),g=[e[0],q8(c),q8(c)],k=[e[1],q8(c),q8(c)];f.push(CO("a=ssrc-group:SIM "+g.join(" ")));var m=b.b.get("ssrc").get(e[0]).w;g.forEach(function(p,v){var A=k[v];0<v&&(f.push(CO("a=ssrc-group:FID "+p+" "+A)),m.forEach(function(G){f.push(CO("a=ssrc:"+
p+" "+G))}),m.forEach(function(G){f.push(CO("a=ssrc:"+A+" "+G))}))});a.media[d]=new JO(f)}});return a},N8=function(a,c,b){var d,e,f,g;return Ea(function(k){if(1==k.b){va(k,2);b=Kpa(a,b);d=a.f;e=["conference"];var m={Bt:e,Dn:!bf||!1};m=void 0===m?{}:m;m=new a8(b,m);m.F=a.Re;m.s=void 0===d?null:d;f=c8(m);return ua(k,Lpa(a,f),4)}if(2!=k.b)return wa(k,0);g=xa(k);Q8(a,"Failed to create or set remote answer.",c,g);throw g;})},Npa=function(a,c){var b,d;return Ea(function(e){if(1==e.b)return a.l.info(J8),
ua(e,R8(a,0,0,!1),2);if(3!=e.b){b=e.f;b=O8(a,b);a.l.info(I8);d=Mpa(a,b,c);if(bf)return a.Nd=d,e.Ob(3);a.Re=b;a.Df=d;P8(a);return ua(e,o8(a.ja,b),3)}return e.return(d)})},Opa=function(a){if(!bf)return Promise.resolve();a.l.info(H8);return S8(a,function(){var c,b,d,e;return Ea(function(f){switch(f.b){case 1:c=a.ja;b=a.localDescription;a.Nd=null;a.Df=b;a.l.info(G8);if(bf){d=f8(b);f.Ob(2);break}return ua(f,R8(a,0,0,!1),3);case 3:d=f.f;case 2:return e=d,e=O8(a,e),a.Re=e,a.l.info(F8),P8(a),ua(f,o8(c,e),
4);case 4:a.l.info(E8),f.b=0}})})},Ppa=function(a,c){a.o=c;return T8(a)},Qpa=function(a,c,b){var d=a.localDescription;0<c.length&&(c=qG(d.ta,c),d=JG(d,c));0<b.length&&(b=qG(d.oa,b),d=EG(d,b));a.Nd=d;return T8(a)},T8=function(a){if(a.o)return a.l.info(D8),S8(a,function(){return Hpa(a)});a.l.info(C8);return Promise.resolve()},Rpa=function(a,c){var b=a.ja;b.f.remoteDescription&&b.f.remoteDescription.sdp?(P8(a),c.forEach(function(d){return n8(b,d)})):a.m.push.apply(a.m,n(c))};
M8.prototype.cancel=function(){this.l.info(B8,this.g.length);this.h.forEach(function(a){return a.reject(new Su("Negotiations cancelled due to cancel() call."))});this.g.length=0;this.h.length=0};
var S8=function(a,c){var b;return Ea(function(d){b=dv();a.g.push(c);a.h.push(b);U8(a);return ua(d,b.Y,0)})},U8=function(a){var c,b,d;Ea(function(e){switch(e.b){case 1:if(0===a.g.length||a.w)return e.return();c=a.g.shift();b=a.h.shift();a.w=!0;va(e,2,3);return ua(e,c(),5);case 5:b.resolve();case 3:e.s=[e.g];e.w=0;e.j=0;a.w=!1;U8(a);var f=e.s.splice(0)[0];(f=e.g=e.g||f)?f.Wl?e.b=e.w||e.j:void 0!=f.Ob&&e.j<f.Ob?(e.b=f.Ob,e.g=null):e.b=e.j:e.b=0;break;case 2:d=xa(e),b.reject(d),e.Ob(3)}})},Lpa=function(a,
c){var b;return Ea(function(d){if(1==d.b)return P8(a),ua(d,Fpa(a.ja,c),2);a.f=c;if(b=a.m)a.l.info(A8,b.length),P8(a),b.forEach(function(e){return n8(a.ja,e)}),b.length=0;d.b=0})},Ipa=function(a,c,b){var d,e,f;return Ea(function(g){return 1==g.b?(e=d=1,bf||(d=wG(c.ta).length,e=wG(c.oa).length,f=new Set([].concat(n(wG(c.ta)),n(wG(c.oa))).map(function(k){return k.Ld})),a.f.media.forEach(function(k){if("inactive"!==k.g){var m=k.b.get("msid");if(m.f){m=l(m.b.split(" "));var p=m.next().value;m.next();f.has(p)||
("audio"===k.mediaType?d++:"video"===k.mediaType&&e++)}}})),ua(g,R8(a,d,e,b),2)):g.return(g.f)})},R8=function(a,c,b,d){var e,f,g,k,m,p,v,A,G,E,P;return Ea(function(ea){if(1==ea.b){a.l.info(z8,d);e={};if(bf)e.mandatory={OfferToReceiveAudio:!0,OfferToReceiveVideo:!0},d&&(e.mandatory.IceRestart=!0);else{f=a.ja.f;g=f.getTransceivers();k=c;m=b;p=l(g);for(v=p.next();!v.done;v=p.next())A=v.value,A.stopped||"sendrecv"!==A.direction&&"recvonly"!==A.direction||(G=A.receiver.track,"audio"===G.kind?k--:"video"===
G.kind&&m--);for(E=0;E<k;E++)f.addTransceiver("audio",{direction:"recvonly"});for(P=0;P<m;P++)f.addTransceiver("video",{direction:"recvonly"});d&&(e.iceRestart=!0)}P8(a);return ua(ea,Cpa(a.ja,e),2)}return ea.return(ea.f)})},Mpa=function(a,c,b){a.l.info(y8);c=PO(c);var d=a.b.L;d&&(c=EG(c,tG(c.oa,d)));b=b(c);c=KG(EG(JG(c,uG(qG(c.ta,kG(b.ta)),!0)),uG(qG(c.oa,kG(b.oa)),!0)),uG(qG(c.Ta,kG(b.Ta)),!0));b=hG(c.oa);b=Spa(b);var e=b.findIndex(function(f){return jd(f.getName(),"rtx")});a.b.C&&-1==e&&a.l.G(x8);
b=Tpa(a,b);a.b.da&&bf&&(b=b.map(function(f){return nF(new iF(f),"useadaptivelayering_v2","true").aa()}));d&&0<b.length&&bf&&(e=d.g,a=b[0],-1!==e&&(a=nF(new iF(a),"x-google-start-bitrate",e.toString()).aa()),d=d.f,-1!=d&&(a=nF(new iF(a),"x-google-min-bitrate",d.toString()).aa()),b[0]=a);c=EG(c,nG(c.oa,b));return c=EG(c,Upa(c.oa))},Kpa=function(a,c){a.l.info(w8,"answer");var b=a.Df;c=c.Ta.f?KG(c,qG(c.Ta,[])):Vpa(c);var d=c.b.b;if(d){var e=c.b.j;a.b.b?e||(e=d>b.b.b?"passive":"active"):e||(e="passive");
c=LG(c,CG(c.b,e))}kG(b.oa).some(function(f){return!f.be()})&&(a.D.then(function(f){f.V(5770)}),c=EG(c,yG(c.oa,"vp8")));return c},Upa=function(a){bf&&Pp(59)||(a=pG(a,z(a.b).filter(function(c){return"http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01"!==c.ed})));Ye&&(a=pG(a,z(a.b).filter(function(c){return"urn:ietf:params:rtp-hdrext:toffset"!==c.ed})));return a},V8=function(a){var c=function(b,d){return b.some(function(e){return e.Kd==d})};return a.filter(function(b,d,e){return!jd(b.getName(),
"rtx")||c(e,"apt"in b.Jd?b.Jd.apt:null)})},Spa=function(a){var c=function(b){return Ac(b.Jd,function(d,e){return jd(e,"packetization-mode")&&"1"===d})};a=a.filter(function(b,d,e){var f=!0;e.forEach(function(g,k){k!=d&&g.getName()==b.getName()&&jd(b.getName(),"H264")&&(f=f&&c(b))});return f});return V8(a)},Tpa=function(a,c){c=c.filter(function(b){return jd(b.getName(),"vp8")||jd(b.getName(),"h264-svc")||a.b.C&&jd(b.getName(),"rtx")||!1});return V8(c)},Vpa=function(a){var c=QF(TF(NF(MF(KF(new JF,"d"),
"dataSendChannel"),"dataSendChannel"),[0]),"dataSendChannel").aa(),b=kG(a.Ta);b.push(c);return KG(a,qG(a.Ta,b))},Q8=function(a,c,b,d){a.l.G(v8,b,c,d);a.Re&&a.l.G(u8,MO(a.Re));a.f&&a.l.G(t8,MO(a.f));c=a.ja.f;c.localDescription&&a.l.G(s8,c.localDescription.sdp);c.remoteDescription&&a.l.G(r8,c.remoteDescription.sdp)},P8=function(a){if("closed"==a.ja.f.signalingState)throw new W8("Negotiation cancelled due to the state of the peer.");};
ca.Object.defineProperties(M8.prototype,{localDescription:{configurable:!0,enumerable:!0,get:function(){return this.Nd||this.Df}}});var W8=function(a){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.name="NegotiationCancelledError"};q(W8,Error);var Y8=function(a,c,b){var d=X8;this.j=QB(a,ED).then();this.f=c;this.h=b;this.g=d;this.b=new Set};Y8.prototype.update=function(a,c){var b=this.g(c);c=this.h(c);var d="un";this.b.has(a)?b?(this.b.delete(a),d="r"):d="m":c&&(this.b.add(a),Wpa(this),d="m");return d};var Wpa=function(a){a.j.then(function(c){c.V(a.f)})};var Z8=function(a){return r(a)&&!isNaN(a)?a:Ia(void 0)?void 0:-1},Xpa=function(a,c,b){b?(r(a.aecDivergentFilterFraction)&&!isNaN(a.aecDivergentFilterFraction)&&S(c,117,a.aecDivergentFilterFraction),r(a.audioInputLevel)&&!isNaN(a.audioInputLevel)&&S(c,26,Math.round(a.audioInputLevel)),r(a.googEchoCancellationEchoDelayMedian)&&!isNaN(a.googEchoCancellationEchoDelayMedian)&&S(c,46,Math.round(a.googEchoCancellationEchoDelayMedian)),r(a.googEchoCancellationEchoDelayStdDev)&&!isNaN(a.googEchoCancellationEchoDelayStdDev)&&
S(c,47,Math.round(a.googEchoCancellationEchoDelayStdDev)),r(a.googEchoCancellationReturnLoss)&&!isNaN(a.googEchoCancellationReturnLoss)&&S(c,48,Math.round(a.googEchoCancellationReturnLoss)),r(a.googEchoCancellationReturnLossEnhancement)&&!isNaN(a.googEchoCancellationReturnLossEnhancement)&&S(c,49,Math.round(a.googEchoCancellationReturnLossEnhancement)),r(a.googEchoCancellationQualityMin)&&!isNaN(a.googEchoCancellationQualityMin)&&S(c,63,a.googEchoCancellationQualityMin),r(a.googResidualEchoLikelihood)&&
!isNaN(a.googResidualEchoLikelihood)&&S(c,129,a.googResidualEchoLikelihood),r(a.googResidualEchoLikelihoodRecentMax)&&!isNaN(a.googResidualEchoLikelihoodRecentMax)&&S(c,133,a.googResidualEchoLikelihoodRecentMax)):(r(a.audioOutputLevel)&&!isNaN(a.audioOutputLevel)&&S(c,26,Math.round(a.audioOutputLevel)),r(a.googJitterBufferMs)&&!isNaN(a.googJitterBufferMs)&&S(c,37,Math.round(a.googJitterBufferMs)),r(a.googPreferredJitterBufferMs)&&!isNaN(a.googPreferredJitterBufferMs)&&S(c,38,Math.round(a.googPreferredJitterBufferMs)),
r(a.googCurrentDelayMs)&&!isNaN(a.googCurrentDelayMs)&&S(c,39,Math.round(a.googCurrentDelayMs)),r(a.googExpandRate)&&!isNaN(a.googExpandRate)&&c.ak(a.googExpandRate),r(a.googSpeechExpandRate)&&!isNaN(a.googSpeechExpandRate)&&c.gk(a.googSpeechExpandRate),r(a.googPreemptiveExpandRate)&&!isNaN(a.googPreemptiveExpandRate)&&c.ck(a.googPreemptiveExpandRate),r(a.googAccelerateRate)&&!isNaN(a.googAccelerateRate)&&c.Yj(a.googAccelerateRate),r(a.googSecondaryDecodedRate)&&!isNaN(a.googSecondaryDecodedRate)&&
c.ek(a.googSecondaryDecodedRate),r(a.googSecondaryDiscardedRate)&&!isNaN(a.googSecondaryDiscardedRate)&&c.fk(a.googSecondaryDiscardedRate),r(a.googDecodingCTSG)&&!isNaN(a.googDecodingCTSG)&&S(c,81,Math.round(a.googDecodingCTSG)),r(a.googDecodingCTN)&&!isNaN(a.googDecodingCTN)&&S(c,82,Math.round(a.googDecodingCTN)),r(a.googDecodingNormal)&&!isNaN(a.googDecodingNormal)&&S(c,83,Math.round(a.googDecodingNormal)),r(a.googDecodingPLC)&&!isNaN(a.googDecodingPLC)&&S(c,84,Math.round(a.googDecodingPLC)),r(a.googDecodingCNG)&&
!isNaN(a.googDecodingCNG)&&S(c,85,Math.round(a.googDecodingCNG)),r(a.googDecodingPLCCNG)&&!isNaN(a.googDecodingPLCCNG)&&S(c,86,Math.round(a.googDecodingPLCCNG)),r(a.googDecodingMuted)&&!isNaN(a.googDecodingMuted)&&S(c,134,Math.round(a.googDecodingMuted)))};var Ypa={gg:"bytesReceived",hg:"bytesSent",Vv:"id",Gw:"localCandidateId",By:"readable",Fy:"remoteCandidateId",lz:"selected",tA:"writable"},Zpa={Dt:"googActiveConnection",gg:"bytesReceived",hg:"bytesSent",Fw:"googLocalAddress",Ey:"googRemoteAddress"},$pa={Xt:"bitrateMean",Yt:"bitrateStdDev",vv:"framerateMean",wv:"framerateStdDev",Bk:"framesDecoded",Ck:"framesEncoded",gg:"bytesReceived",hg:"bytesSent",uv:"fractionLost",pv:"firCount",kw:"isRemote",mw:"jitter",uw:"kind",fx:"mozRtt",Mw:"mediaType",kx:"nackCount",
Hk:"packetsReceived",fi:"packetsLost",Ik:"packetsSent",my:"pliCount",gi:"qpSum",Gy:"remoteId",fz:"roundTripTime",Nk:"ssrc",Uz:"trackId",Du:"codecId"},aqa={gg:"bytesReceived",hg:"bytesSent",Bk:"framesDecoded",Ck:"framesEncoded",eo:"hugeFramesSent",Hk:"packetsReceived",fi:"packetsLost",Ik:"packetsSent",gi:"qpSum",Nk:"ssrc"};var $8=function(){this.g=new Map;this.f=new Map;this.b=new Map};$8.prototype.clear=function(){this.g.clear();this.f.clear();this.b.clear()};
var c9=function(a,c,b,d,e){var f=(e=void 0===e?!0:e)?aqa:$pa,g=c[f.Nk];return null==g?null:d?a9(a.g,g,function(){return new b9(d)}).update(b,c[f.hg],c[f.Ik],e?c[f.fi]:0,c[f.Ck],c[f.gi],c[f.eo]):a9(a.f,g,function(){return new b9(d)}).update(b,c[f.gg],c[f.Hk],c[f.fi],c[f.Bk],c[f.gi],null)},e9=function(a,c,b,d){d=void 0===d?!0:d;var e=c?d?"false"==c.googActiveConnection?null:c.googLocalAddress+c.googRemoteAddress:"false"==c.selected?null:c.id:null;if(!e)return null;d=d?Zpa:Ypa;return a9(a.b,e,function(){return new d9}).update(b,
c[d.hg],c[d.gg])},a9=function(a,c,b){var d=a.get(c);null==d&&(d=b(),a.set(c,d));return d},b9=function(a){this.o=a;this.b=-1;this.g=this.h=this.f=this.w=this.m=this.j=0};
b9.prototype.update=function(a,c,b,d,e,f,g){var k={bitrate:-1,ij:-1,Pm:-1,Vi:-1};if(r(a)&&r(c)&&r(b)&&r(d)){if(a>this.b){var m=b-this.m,p=d-this.w;m=this.o?m:m+p;k.ij=0<m?Math.round(100*p/m):-1;0<=this.b&&(p=a-this.b,m=c-this.j,k.bitrate=0<m?Math.round(8*m/p):0)}this.b=a;this.j=c;this.m=b;this.w=d}r(e)&&r(f)&&(a=e-this.f,k.Pm=0<a?Math.round((f-this.h)/a):-1,this.f=e,this.h=f);r(g)&&(k.Vi=g-this.g,this.g=g);return k};var d9=function(){this.b=-1;this.f=this.g=0};
d9.prototype.update=function(a,c,b){var d=null;if(r(a)&&r(c)&&r(b)){if(0<=this.b&&a>this.b){d=a-this.b;var e=c-this.g,f=b-this.f;d={gn:0<e?Math.round(e/d):0,Wm:0<f?Math.round(f/d):0}}this.b=a;this.g=c;this.f=b}return d};var f9=["Incompatible version number: ",""];f9.raw=f9.slice();var g9=["Elapsed time in jmidata decreased from "," to\n      ",""];g9.raw=g9.slice();var h9=["Ignore report with stale timestamp "," from "," of ",""];h9.raw=h9.slice();
var dqa=function(a,c){this.l=new tE("realtime.media.api.webrtc.JmiStatsParser");this.m=a;this.J=c;this.D=new $8;this.L=QB(this.m,LD);this.H=QB(a,ED).then();this.g=-1;this.j=new Map;this.s=new Map;this.o=new Map;this.h=new Map;this.f=new dC;this.T=new s4(this.m);this.b=null;this.w=!1;this.C=new Y8(a,4549,bqa);this.F=new Y8(a,4550,cqa);this.O=[this.C,this.F]},eqa=function(a){a.L.then(function(c){a.b||a.w||(a.b=c.f.vj(),a.b&&a.b.onMessage.addListener(function(b){var d=a.f;d.o+=b.tabCpuUsage;d.h+=b.browserCpuUsage;
d.j+=b.gpuCpuUsage;d.w+=b.tabJsMemoryAllocated;d.m+=b.tabJsMemoryUsed;d.b++}))})},iqa=function(a,c,b,d,e){fqa(a,c);var f=new Map;c.forEach(function(g){if("localcandidate"===g.type){var k=g.stat("networkType");kd(pe(g.id))||kd(pe(k))||f.set(g.id,gqa[k]||0)}});c.forEach(function(g){var k=g.timestamp&&g.timestamp.getTime()||0;if(k&&k==(a.s.get(g.id)||0))a.o.get(g.id)!=k&&(a.o.set(g.id,k),a.l.info(h9,k,g.id,g.type));else switch(a.s.set(g.id,k),g.type){case "ssrc":hqa(a,i9(g),b,d);break;case "VideoBwe":g=
i9(g);k=new SC;S(k,1,2);S(k,24,2);r(g.googAvailableSendBandwidth)&&!isNaN(g.googAvailableSendBandwidth)&&S(k,40,Math.round(g.googAvailableSendBandwidth));r(g.googAvailableReceiveBandwidth)&&!isNaN(g.googAvailableReceiveBandwidth)&&S(k,41,Math.round(g.googAvailableReceiveBandwidth));r(g.googTransmitBitrate)&&!isNaN(g.googTransmitBitrate)&&uD(k,Math.round(g.googTransmitBitrate));r(g.googRetransmitBitrate)&&!isNaN(g.googRetransmitBitrate)&&S(k,43,Math.round(g.googRetransmitBitrate));r(g.googTargetEncBitrate)&&
!isNaN(g.googTargetEncBitrate)&&S(k,124,Math.round(g.googTargetEncBitrate));r(g.googActualEncBitrate)&&!isNaN(g.googActualEncBitrate)&&S(k,125,Math.round(g.googActualEncBitrate));r(g.googBucketDelay)&&!isNaN(g.googBucketDelay)&&S(k,80,Math.round(g.googBucketDelay));S(k,2,-1);S(k,3,-1);S(k,4,-1);S(k,5,-1);S(k,6,-1);S(k,7,-1);S(k,8,-1);S(k,9,-1);S(k,10,-1);sl(d,2,k,SC,void 0);break;case "googCandidatePair":k=i9(g);g=new VC;S(g,3,Math.round(Z8(k.googRtt)));S(g,4,Math.round(Z8(k.bytesSent)));r(k.packetsSent)&&
!isNaN(k.packetsSent)&&S(g,90,Math.round(k.packetsSent));r(k.packetsDiscardedOnSend)&&!isNaN(k.packetsDiscardedOnSend)&&S(g,91,Math.round(k.packetsDiscardedOnSend));S(g,6,Math.round(Z8(k.bytesReceived)));var m=0;"true"===k.googActiveConnection&&(m|=1);"true"===k.googWritable&&(m|=2);"true"===k.googReadable&&(m|=4);S(g,2,m);m=new fC;var p=new fC;S(m,1,k.googLocalAddress||"");S(p,1,k.googRemoteAddress||"");var v=k.googChannelId,A=0;id(v,"Channel-audio-")?A=1:id(v,"Channel-video-")&&(A=2);S(m,2,A);S(p,
2,A);v={local:1,stun:2,relay:3};S(m,3,v[k.googLocalCandidateType]||0);S(p,3,v[k.googRemoteCandidateType]||0);v={udp:1,tcp:2,ssltcp:3}[k.googTransportType]||0;S(m,4,v);S(p,4,v);V(g,8,m);V(g,9,p);m=m.Ub();S(g,1,m);m=e9(a.D,k,a.g);S(g,5,m?m.gn:-1);S(g,7,m?m.Wm:-1);k=k.localCandidateId;Ja(k)&&!kd(pe(k))&&f.has(k)&&(k=f.get(k),S(g,55,k));sl(d,13,g,VC,void 0)}});a.h.clear();x4(a.T).then(function(g){var k=a.f.toJson();r(k.tabCpuUsage)&&!isNaN(k.tabCpuUsage)&&S(d,34,Math.round(k.tabCpuUsage));r(k.browserCpuUsage)&&
!isNaN(k.browserCpuUsage)&&S(d,92,Math.round(k.browserCpuUsage));r(k.gpuCpuUsage)&&!isNaN(k.gpuCpuUsage)&&S(d,94,Math.round(k.gpuCpuUsage));r(k.pluginCpuUsage)&&!isNaN(k.pluginCpuUsage)&&S(d,93,Math.round(k.pluginCpuUsage));r(k.totalCpuUsage)&&!isNaN(k.totalCpuUsage)&&S(d,35,Math.round(k.totalCpuUsage));r(k.numOfProcessors)&&!isNaN(k.numOfProcessors)&&S(d,36,Math.round(k.numOfProcessors));r(k.tabJsMemoryAllocated)&&!isNaN(k.tabJsMemoryAllocated)&&S(d,150,Math.round(k.tabJsMemoryAllocated));r(k.tabJsMemoryUsed)&&
!isNaN(k.tabJsMemoryUsed)&&S(d,151,Math.round(k.tabJsMemoryUsed));k=k.jmiVersion;k=r(k)?k:Ia(void 0)?void 0:-1;if(3!==k)a.l.b(f9,k);else{k=a.f;var m=g.value;if(g=m&&m.numOfProcessors){var p=0,v=0;if(m=m.processors)for(var A=0;A<m.length;A++){var G=m[A].usage;p+=G.user+G.kernel;v+=G.total}else p=k.C,v=k.g;m=v==k.g?k.H:100*g*(p-k.C)/(v-k.g);k.C=p;k.g=v;k.H=m;k.J=m;k.L=g}0>a.g||(S(d,1,Math.round(a.g)),k=a.f,k.o=0,k.h=0,k.j=0,k.w=0,k.m=0,k.b=0,e(d))}})},fqa=function(a,c){var b=null;c.forEach(function(d){(d=
j9(d.timestamp))&&0<d.getTime()&&(!b||b.getTime()<d.getTime())&&(b=d)});b&&eC(a.f,b);c=zea(a.f);0>c||(c<=a.g&&a.l.G(g9,a.g,c),a.g=c)},jqa=function(a){var c=new Map;a.forEach(function(b){var d=b.stat("ssrc");b=b.stat("audioOutputLevel");kd(pe(d))||kd(pe(b))||(d=parseInt(d,10),b=DE(b),c.set(d,b))});return c},lqa=function(a,c){c.forEach(function(b){if("ssrc"===b.type&&b.names().includes("googExpandRate")){for(var d=new Map,e=l(kqa),f=e.next();!f.done;f=e.next()){f=f.value;var g=b.stat(f);kd(pe(g))||
(g=Number(g),isNaN(g)||d.set(f,g))}b=parseInt(b.stat("ssrc"),10);a.h.has(b)||a.h.set(b,[]);a.h.get(b).push(d)}})},mqa=function(a,c){var b={audio:!1,video:!1};c.forEach(function(d){if("ssrc"===d.type){var e=d.names();if(e.includes("packetsReceived")){var f=Number(d.stat("ssrc"));a.j.has(f)||a.j.set(f,0);d=Number(d.stat("packetsReceived"));0>=d-a.j.get(f)||(a.j.set(f,d),e.includes("audioOutputLevel")?b.audio=!0:e.includes("googFrameRateReceived")&&(b.video=!0))}}});return b},nqa=function(a){return a.reduce(function(c,
b){var d=-1;"VideoBwe"===b.type&&(b=b.stat("googAvailableSendBandwidth"),kd(pe(b))||(d=Math.round(Number(b))));return Math.max(c,d)},-1)},hqa=function(a,c,b,d){Oea(c,b,a.J);b=!1;b=Hc(c,"mediaType")?"audio"===(null!==c&&"mediaType"in c?c.mediaType:void 0):Hc(c,"audioInputLevel")||Hc(c,"audioOutputLevel")||Hc(c,"googExpandRate");var e=Hc(c,"bytesSent"),f=b?new SC:new QY;oqa(c,f,e,b);b?pqa(a,c,f,e):qqa(c,f,e);var g=O(f,25);null!=g&&a.O.forEach(function(k){return k.update(g,f)});rqa(a,c,f,e);sl(d,2,f,
SC,void 0)},oqa=function(a,c,b,d){S(c,1,d?1:2);S(c,24,b?0:1);r(a.ssrc)&&(S(c,25,a.ssrc),wD(c,[a.ssrc]));S(c,2,Math.round(Z8(a.fractionLost)));S(c,3,Math.round(Z8(a.packetsLost)));S(c,4,Math.round(Z8(a.highestSequenceNumber)));S(c,5,Math.round(Z8(a.googJitterReceived)));S(c,6,Math.round(Z8(a.googRtt)));S(c,7,Math.round(Z8(a.bytesSent)));S(c,8,Math.round(Z8(a.packetsSent)));S(c,9,Math.round(Z8(a.bytesReceived)));S(c,10,Math.round(Z8(a.packetsReceived)));b?null!=a.googCodecName&&S(c,44,a.googCodecName):
(null!=a.googCodecName&&S(c,94,a.googCodecName),r(a.oneWayDelayMs)&&!isNaN(a.oneWayDelayMs)&&S(c,89,Math.round(a.oneWayDelayMs)),r(a.oneWayMaxDelayMs)&&!isNaN(a.oneWayMaxDelayMs)&&S(c,112,Math.round(a.oneWayMaxDelayMs)),r(a.oneWayStddevDelayMs)&&!isNaN(a.oneWayStddevDelayMs)&&S(c,118,Math.round(a.oneWayStddevDelayMs)),r(a.oneWayMinDelayMs)&&!isNaN(a.oneWayMinDelayMs)&&S(c,119,Math.round(a.oneWayMinDelayMs)))},k9=function(a,c,b){var d=0,e=0;c.forEach(function(f){f.has(a)&&(e+=f.get(a),d+=1)});0<d&&
b(e/d)},pqa=function(a,c,b,d){Xpa(c,b,d);!d&&a.h.has(c.ssrc)&&(a=a.h.get(c.ssrc),k9("googExpandRate",a,function(e){return b.ak(e)}),k9("googSpeechExpandRate",a,function(e){return b.gk(e)}),k9("googPreemptiveExpandRate",a,function(e){return b.ck(e)}),k9("googAccelerateRate",a,function(e){return b.Yj(e)}),k9("googSecondaryDecodedRate",a,function(e){return b.ek(e)}),k9("googSecondaryDiscardedRate",a,function(e){return b.fk(e)}))},rqa=function(a,c,b,d){c=c9(a.D,c,a.g,d);d?(uD(b,c.bitrate),0<c.Vi&&dl(b,
59)&&sqa(a,{Qc:c.Vi})):vD(b,c.bitrate);S(b,2,c.ij);S(b,113,c.Pm)},qqa=function(a,c,b){b?(r(a.googFirsReceived)&&!isNaN(a.googFirsReceived)&&S(c,27,Math.round(a.googFirsReceived)),r(a.googPlisReceived)&&!isNaN(a.googPlisReceived)&&S(c,151,Math.round(a.googPlisReceived)),r(a.googNacksReceived)&&!isNaN(a.googNacksReceived)&&S(c,28,Math.round(a.googNacksReceived)),r(a.googFrameRateInput)&&!isNaN(a.googFrameRateInput)&&tD(c,Math.round(a.googFrameRateInput)),r(a.googFrameRateSent)&&!isNaN(a.googFrameRateSent)&&
S(c,30,Math.round(a.googFrameRateSent)),null!=a.codecImplementationName&&S(c,143,a.codecImplementationName),r(a.googFrameWidthSent)&&!isNaN(a.googFrameWidthSent)&&S(c,57,Math.round(a.googFrameWidthSent)),r(a.googFrameHeightSent)&&!isNaN(a.googFrameHeightSent)&&S(c,58,Math.round(a.googFrameHeightSent)),r(a.googFrameWidthInput)&&!isNaN(a.googFrameWidthInput)&&S(c,144,Math.round(a.googFrameWidthInput)),r(a.googFrameHeightInput)&&!isNaN(a.googFrameHeightInput)&&S(c,145,Math.round(a.googFrameHeightInput)),
r(a.googQpSent)&&!isNaN(a.googQpSent)&&S(c,113,Math.round(a.googQpSent)),r(a.qpSum)&&!isNaN(a.qpSum)&&S(c,139,Math.round(a.qpSum)),r(a.googAdaptationChanges)&&!isNaN(a.googAdaptationChanges)&&S(c,95,Math.round(a.googAdaptationChanges)),r(a.googAvgEncodeMs)&&!isNaN(a.googAvgEncodeMs)&&S(c,75,Math.round(a.googAvgEncodeMs)),r(a.googEncodeUsagePercent)&&!isNaN(a.googEncodeUsagePercent)&&S(c,76,Math.round(a.googEncodeUsagePercent))):(r(a.googFirsSent)&&!isNaN(a.googFirsSent)&&S(c,27,Math.round(a.googFirsSent)),
r(a.googPlisSent)&&!isNaN(a.googPlisSent)&&S(c,151,Math.round(a.googPlisSent)),r(a.googNacksSent)&&!isNaN(a.googNacksSent)&&S(c,28,Math.round(a.googNacksSent)),r(a.googFrameRateOutput)&&!isNaN(a.googFrameRateOutput)&&tD(c,Math.round(a.googFrameRateOutput)),r(a.googFrameRateReceived)&&!isNaN(a.googFrameRateReceived)&&S(c,30,Math.round(a.googFrameRateReceived)),r(a.googFrameRateDecoded)&&!isNaN(a.googFrameRateDecoded)&&S(c,31,Math.round(a.googFrameRateDecoded)),r(a.fpsGraphicsInput)&&!isNaN(a.fpsGraphicsInput)&&
S(c,50,a.fpsGraphicsInput),r(a.fpsGraphicsOutput)&&!isNaN(a.fpsGraphicsOutput)&&S(c,51,a.fpsGraphicsOutput),null!=a.codecImplementationName&&S(c,143,a.codecImplementationName),r(a.googFrameWidthReceived)&&!isNaN(a.googFrameWidthReceived)&&S(c,57,Math.round(a.googFrameWidthReceived)),r(a.googFrameHeightReceived)&&!isNaN(a.googFrameHeightReceived)&&S(c,58,Math.round(a.googFrameHeightReceived)),r(a.googQpReceived)&&!isNaN(a.googQpReceived)&&S(c,113,Math.round(a.googQpReceived)),r(a.qpSum)&&!isNaN(a.qpSum)&&
S(c,139,Math.round(a.qpSum)),r(a.googInterframeDelayMax)&&!isNaN(a.googInterframeDelayMax)&&S(c,138,Math.round(a.googInterframeDelayMax)));var d=a.googContentType;d&&xD(c,"screen"===d);if(b){var e=0;b=l9(a.googBandwidthLimitedResolution);l9(a.googCpuLimitedResolution)&&(e|=1);b&&(e|=2);S(c,65,e)}else if(a=a.googTimingFrameInfo)try{a="["+a+"]",e=new OY(a?JSON.parse(a):null),c.s=e}catch(f){}},i9=function(a){var c={};a.names().forEach(function(b){var d=a.stat(b);null!=d&&(isNaN(d)||Ja(d)&&kd(d)||(d=
Number(d)));c[b]=d});return c},sqa=function(a,c){a.H.then(function(b){b.V(4804,c)})};function bqa(a){return 0===sD(a)&&!X8(a)&&0<(O(a,29)||0)}function cqa(a){return 0===sD(a)&&!X8(a)&&0<(O(a,30)||0)}function X8(a){return!(dl(a,59)&&(O(a,58)||O(a,57)))}function l9(a){return"true"!==a&&"false"!==a?null:"true"===a}
var gqa={lan:1,vpn:11,wlan:2,wwan:5},kqa="googExpandRate googSpeechExpandRate googPreemptiveExpandRate googAccelerateRate googSecondaryDecodedRate googSecondaryDiscardedRate".split(" "),j9=function(a){return r(a)?new Date(a):a};var m9=["Ignore report with stale timestamp "," from "," of ",""];m9.raw=m9.slice();var n9=["Ignore report with timestamp prior to initial stats:\n      ",""];n9.raw=n9.slice();var o9=["No valid timestamp for the stats: ",""];o9.raw=o9.slice();
var tqa=function(a){this.l=new tE("realtime.media.api.webrtc.RtcStatsParser");this.m=a;this.w=new $8;this.b=this.f=null;this.g=new Map;this.j=new Map;this.h=new Map},vqa=function(a,c,b,d){var e=p9(c);e?(q9(a,e),e=r9(a),0>e?a.l.G(n9,s9(c)):(S(b,1,Math.round(e)),c.forEach(function(f,g){g=f.id||g;var k=f.timestamp;k=r(k)?k:k?k.getTime():0;if(k&&k==(a.j.get(g)||0))a.h.get(g)!=k&&(a.h.set(g,k),a.l.info(m9,k,g,f.type));else switch(a.j.set(g,k),t9[f.type]||f.type){case "candidate-pair":if(f&&(g=f.selected,
Ka(g)&&!1!==g)){g=sl(b,13,void 0,VC,void 0);k=new fC;var m=new fC;u9(k);u9(m);V(g,8,k);V(g,9,m);S(g,7,-1);S(g,5,-1);var p=O(k,3);S(g,1,p);S(g,2,0);S(g,3,-1);S(g,6,-1);S(g,4,-1);p=f.remoteCandidateId||"";v9(c.get(f.localCandidateId||""),k);v9(c.get(p),m);V(g,8,k);V(g,9,m);m=f.selected;p=f.writable;var v=f.readable;Ka(m)&&(p=void 0===p?!0:p,v=void 0===v?!0:v);var A=0;!0===m&&(A|=1);!0===p&&(A|=2);!0===v&&(A|=4);S(g,2,A);k=O(k,3);S(g,1,k);k=w9(f,"bytesReceived");S(g,6,k);k=w9(f,"bytesSent");S(g,4,k);
if(f=e9(a.w,f,r9(a),!1))S(g,5,f.gn),S(g,7,f.Wm)}break;case "inbound-rtp":case "outbound-rtp":f&&!x9(f)&&(k=y9(f,["mediaType","kind"],""),"video"===k?(g=new QY,S(g,1,2)):(g=new SC,S(g,1,"audio"===k?1:0)),g=sl(b,2,g,SC,void 0),S(g,9,-1),S(g,7,-1),S(g,3,-1),S(g,2,-1),S(g,5,-1),S(g,4,-1),S(g,10,-1),S(g,8,-1),S(g,6,-1),m="outbound-rtp"===(t9[f.type]||f.type),uqa(f,g,k,m,c),m?z9(a,f,g,c):A9(a,f,g,c),f=c9(a.w,f,r9(a),m,!1),m?null!=O(g,42)||uD(g,f.bitrate):(B9(O(g,2))||S(g,2,f.ij),B9(O(g,96))||vD(g,f.bitrate),
B9(O(g,138))||"video"!==k||(f=O(g,25)||nD(g)[0]||0,(f=AD(a.m,f))&&S(g,138,f))))}}),d(b))):a.l.G(o9,s9(c))},wqa=function(a,c){var b={audio:!1,video:!1};c.forEach(function(d){if("inbound-rtp"==(t9[d.type]||d.type)&&!x9(d)){var e=d.ssrc,f=d.packetsReceived;Ja(e)&&!kd(e)&&r(f)&&(e=Number(e),a.g.has(e)||a.g.set(e,0),0>=f-a.g.get(e)||(a.g.set(e,f),d=y9(d,["mediaType","kind"],""),"audio"===d&&(b.audio=!0),"video"===d&&(b.video=!0)))}});return b},xqa=function(a){var c=new Map;a.forEach(function(b){if("inbound-rtp"===
(t9[b.type]||b.type)&&"audio"===b.kind&&a.get(b.trackId)){var d=a.get(b.trackId);c.set(Number(b.ssrc),{Vp:d.concealedSamples||0,Hq:d.jitterBufferDelay||0,Iq:d.jitterBufferEmittedCount||0,tt:d.totalSamplesReceived||0,Jq:d.jitterBufferFlushes||0,Yp:d.delayedPacketOutageSamples||0})}});return c},q9=function(a,c){null===a.f&&(a.f=c);if(null===a.b||c.getTime()>a.b.getTime())a.b=c},r9=function(a){return a.b&&a.f?(a.b.getTime()-a.f.getTime())/1E3:-1},v9=function(a,c){if(a){var b=a.ipAddress||"",d=a.portNumber||
"";kd(b)||kd(d)||S(c,1,b+":"+d);S(c,3,yqa[a.candidateType||""]||0);S(c,4,zqa[a.transport||""]||0)}},uqa=function(a,c,b,d,e){S(c,24,d?0:1);var f=a.ssrc;Ja(f)&&!kd(f)&&(f=Number(f));r(f)&&(S(c,25,f),wD(c,[f]));C9(a,"nackCount",function(g){S(c,28,g)});C9(a,"firCount",function(g){S(c,27,g)});C9(a,"pliCount",function(g){S(c,151,g)});C9(a,"qpSum",function(g){S(c,139,g)});d?(C9(a,"framesEncoded",function(g){S(c,130,g)}),C9(a,"packetsSent",function(g){S(c,8,g)})):(C9(a,"jitter",function(g){S(c,5,Math.round(g))}),
C9(a,"framesDecoded",function(g){S(c,130,g)}),C9(a,"packetsReceived",function(g){S(c,10,g)}),C9(a,"packetsLost",function(g){S(c,3,g)}),C9(a,"fractionLost",function(g){S(c,2,Math.round(100*g))}));"video"!==b||x9(a)||(tD(c,Math.round(w9(a,"framerateMean"))),d?uD(c,Math.round(w9(a,"bitrateMean"))):vD(c,Math.round(w9(a,"bitrateMean"))));(f=a.trackId)&&e.has(f)&&(f=e.get(f),Aqa(f,c,b));(a=a.codecId)&&e.has(a)&&(e=e.get(a),Bqa(e,c,d))},Aqa=function(a,c,b){"video"===b&&(b=w9(a,"frameWidth",-2),a=w9(a,"frameHeight",
-2),S(c,57,b),S(c,58,a))},Bqa=function(a,c,b){a=a.mimeType;var d=Cqa[a.toLowerCase()];a=d?d:a;b?S(c,44,a):S(c,94,a)},A9=function(a,c,b,d){if(c){var e=x9(c),f=c.remoteId;e||!Ja(f)||kd(f)||z9(a,d.get(f),b,d);B9(O(b,5))||(a=Math.round(w9(c,"jitter")),S(b,5,a));a=Math.round(y9(c,["mozRtt","roundTripTime"]));S(b,6,a);a=w9(c,"packetsLost");S(b,3,a);e||(e=w9(c,"packetsReceived"),S(b,10,e),c=w9(c,"bytesReceived"),S(b,9,c))}},z9=function(a,c,b,d){if(c){var e=x9(c),f=c.remoteId;e||!Ja(f)||kd(f)||A9(a,d.get(f),
b,d);e||(a=w9(c,"packetsSent"),S(b,8,a),c=w9(c,"bytesSent"),S(b,7,c))}},u9=function(a){S(a,3,0);S(a,4,0);S(a,2,0)},w9=function(a,c,b){return y9(a,[c],void 0===b?-1:b)},y9=function(a,c,b){b=void 0===b?-1:b;if(a){c=l(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,typeof a[d]===typeof b)return a[d]}return b},s9=function(a){for(var c={},b=l(a.keys()),d=b.next();!d.done;d=b.next())d=d.value,c[d]=a.get(d);return Ha.JSON.stringify(c)};function x9(a){a=a?a.isRemote:void 0;return Ka(a)&&!0===a}
function p9(a){for(var c=null,b=l(a.keys()),d=b.next();!d.done;d=b.next())if(d=a.get(d.value),!x9(d)){c=d.timestamp;break}return r(c)?new Date(Math.round(c)):null}var t9={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},yqa={host:1,serverreflexive:2,peerreflexive:2,relayed:3},zqa={udp:1,tcp:2};function C9(a,c,b){var d=r;d=void 0===d?null:d;a=a[c];(null==d||d(a))&&b(a)}
var Cqa={"video/vp8":"VP8","video/vp9":"VP9","video/h264":"H264","audio/opus":"opus"};function B9(a){return null!=a&&-1!==a};var D9=["setCaptureStream completed"];D9.raw=D9.slice();var E9=["removeRenderStream completed"];E9.raw=E9.slice();var F9=["addRenderStream completed"];F9.raw=F9.slice();var Dqa=function(a,c){var b=a.h.createMediaStreamSource(c);b.connect(a.j);a.f.set(c,b);a.l.info(F9)};var Eqa=function(){var a=ze();switch(a.connection&&a.connection.type){case "wifi":return 2;case "ethernet":return 1;default:return 0}};var G9=["Adding EchoDetector stats ",""];G9.raw=G9.slice();var H9=function(a,c){this.l=new tE("realtime.media.api.webrtc.StatsManager");this.C=a;this.D=c;this.j=null;this.b=new dqa(this.C,this.D);this.w=new tqa(this.D);this.o=this.s=0;this.h=null;this.f=new Map;this.g=new Map;this.m=!1};H9.prototype.start=function(){bf&&eqa(this.b)};H9.prototype.stop=function(){if(bf){var a=this.b;a.b&&(a.b.disconnect(),a.b=null);a.w=!0}};
var Fqa=function(a,c){if(!a.m){if(bf){var b=a.b;var d=null;c=l(c);for(var e=c.next();!e.done;e=c.next())(e=j9(e.value.timestamp))&&0<e.getTime()&&(!d||e.getTime()<d.getTime())&&(d=e);d?(eC(b.f,d),b=!0):b=!1}else b=a.w,(d=p9(c))?(q9(b,d),b=!0):b=!1;a.m=b}},Gqa=function(a,c){if(null==a.h){var b=Number.MAX_VALUE;c.forEach(function(d){d.timestamp<b&&(b=d.timestamp)});b!=Number.MAX_VALUE&&(a.h=b)}a.f.forEach(function(d,e){var f=c.get(parseInt(e,10));f&&f.yd==d.yd?(e=a.h||0,d.le!=f.timestamp-e&&(d.Xd=f.timestamp-
e)):(d.Xd&&(f=a.g.get(e)||[],f.push(d),a.g.set(e,f)),a.f.delete(e))});c.forEach(function(d,e){var f=a.f.get(e.toString());void 0==f&&(f={yd:d.yd,le:d.timestamp-(a.h||0),Xd:null},a.f.set(e.toString(),f))})},Hqa=function(a,c,b){var d=u();1E3>d-a.s||(a.s=d,a=bf?mqa(a.b,c):wqa(a.w,c),b(a.audio,a.video))},Iqa=function(a,c,b){var d=u();200>d-a.o||(a.o=d,a=bf?nqa(c):-1,b(a))},Nqa=function(a,c,b,d,e){var f=new RC,g=function(k){if(c&&b)for(var m=xqa(b),p=l(hD(k)),v=p.next();!v.done;v=p.next())if(v=v.value,
null!=O(v,1)&&null!=O(v,24)&&null!=O(v,25)&&1===rD(v)&&1===sD(v)&&m.has(O(v,25))){var A=m.get(O(v,25)),G=A.Hq,E=A.Iq,P=A.tt,ea=A.Jq,Va=A.Yp;S(v,167,A.Vp);S(v,170,G);S(v,171,E);S(v,168,P);S(v,165,ea);S(v,166,Va)}Jqa(k);Kqa(a,k);Lqa(k);Mqa(a,k);e(k)};c?iqa(a.b,c,d,f,g):b&&vqa(a.w,b,f,g)},Lqa=function(a){zD(a,hD(a).filter(function(c){return 0<O(c,10)||1!=sD(c)}))},Kqa=function(a,c){hD(c).forEach(function(b){var d=U(b,TC,136),e=nD(b);if(!(1>e.length)&&(e=e[0].toString(),""!=e)){var f=a.g.get(e);f&&(f.forEach(function(g){g=
I9(g);d.push(g)}),a.g.delete(e));(e=a.f.get(e))&&e.Xd&&(f=I9(e),d.push(f),e.le=e.Xd,e.Xd=null);0<d.length&&rl(b,136,d)}})},I9=function(a){var c=new TC;S(c,3,a.yd);S(c,1,a.le);S(c,2,a.Xd);return c},Jqa=function(a){var c=Eqa();0!==c&&jD(a).forEach(function(b){S(b,55,c)})},Mqa=function(a,c){hD(c).filter(function(b){return 1==rD(b)&&0==sD(b)}).forEach(function(b){if(a.j){var d=a.j;d=d.m?Array.from(new Int32Array(d.g.HEAP32.buffer,d.g._GetEchoHistogram(),d.g._GetEchoHistogramSize())):null;null!=d&&(a.l.g(G9,
d),d=Array.from(d),S(b,153,d||[]),S(b,154,5),S(b,155,245201848))}})};var J9=function(a,c,b,d){Y.call(this);var e=this;this.g=c;this.Ab=b;bf||(d=Nfa(Pfa(d)));this.f=d;this.W=null;this.ua=new LW("realtime.media.api.webrtc.PeerController");this.qd=new p8;this.m=new My(this);this.b(this.m);this.ja=null;this.hc=!1;this.C=this.s=this.xc=null;this.J=new H9(a,b.g);this.J.j=this.W;this.mc=new Map;this.tb=this.f.D||1E4;this.pa=u();this.zb=!0;this.qa=1;this.F=new Map;this.kb=[];this.qb=[];this.o=null;this.da=new Map;this.Ia=new Map;this.Ib=new Map;this.Da=this.Wa=this.Sa=null;
this.Aa=new Set;this.O=this.T=null;this.Ma=!1;this.Ca=null;this.gc=!1;this.j=this.ha=this.bb=null;this.yc=new cpa;this.ab=this.h=this.fa=null;this.f.b||QB(a,FD).then(function(f){e.ab=f});this.Bb=new Map;this.Fb=null;this.lc=QB(a,ED).then();a=0;0==a&&(a=bf?1:2);this.H=a};q(J9,Y);J9.prototype.toString=function(){return"PeerController(sessionId="+this.g+")"};
var K9=function(a){if(a.ja){a=l(l8(a.ja));for(var c=a.next();!c.done;c=a.next())c.value.jitterBufferDelayHint=0}},g0=function(a,c){a.ua.info("["+a+"] "+c)},L9=function(a,c){a.ua.G("["+a+"] "+c)},M9=function(a,c){for(var b=[],d=0;d<c;d++)b.push(q8(a.qd));return b},N9=function(a,c){var b=a.f.s?3:1;b=a.f.b?[8579374]:M9(a,b);var d=[];if(1<b.length&&a.f.s){var e=EF(DF("SIM"),b).aa();d.push(e)}if(a.f.C){e=a.f.b?[8579375]:M9(a,b.length);for(var f=0;f<e.length;f++){var g=EF(DF("FID"),[b[f],e[f]]).aa();b.push(e[f]);
d.push(g)}}return WF(TF(NF(MF(KF(new JF,"v"),c),a.g+"/"+c),b),d).aa()},P9=function(a,c){a.mc.has(c)||(a.mc.set(c,!0),a.N(new O9(a.g,c)))};h=J9.prototype;
h.Zq=function(a){var c=a.stream,b=a.b;a=c.getAudioTracks();var d=c.getVideoTracks();g0(this,"Remote stream added with id="+b+" audioTracks="+(a.length+" videoTracks="+d.length));K9(this);d=function(e){return e.Ld==b};kG(this.o.ta).some(d)||kG(this.o.oa).some(d)||z(this.o.ta.w).some(function(e){return e.toString()==b})?0<a.length?this.f.h?(a=Q9(this,this.o,b),R9(this,5038),d=bfa(this.Ab,c,a,2==this.H),this.W&&Dqa(this.W,c),S9(this,b,d),this.F.set(b,d),this.m.listen(d,"playing",this.zm),this.m.listen(d,
"playing_error",this.rr),a||L9(this,"Participant left before their audio was added")):(g0(this,"Ignoring incoming audio track as audio output is disabled."),a.forEach(function(e){return e.stop()})):(this.da.has(b)||this.da.set(b,{ub:dv(),zl:!1}),a=this.da.get(b),a.ub.resolve(c),a.zl=!0):g0(this,"Ignoring incoming tracks with no matching msid.")};
h.ar=function(a){var c=a.stream;a=a.b;var b=c.getAudioTracks(),d=c.getVideoTracks();g0(this,"Remote stream removed with id="+a+" audioTracks="+(b.length+" videoTracks="+d.length));this.F.has(a)&&(b=this.F.get(a),Ry(this.m,b,"playing",this.zm),bF(this.Ab,c.id),this.F.delete(a));this.W&&(b=this.W,b.f.has(c)&&(b.f.get(c).disconnect(b.j),b.f.delete(c),b.l.info(E9)));this.da.has(a)&&(c=this.da.get(a),this.da.delete(a),c.zl||L9(this,"Asked to remove stream that was never added."))};
h.zm=function(a){R9(this,4901,a.target.Ub().id);P9(this,"play first audio")};h.rr=function(a){R9(this,4970,a.code+","+a.message)};h.Ul=function(a){a=a.target;var c=CW(a,this.g);c&&T9(this,c,a.f)};
var U9=function(a,c){switch(c){case "a":var b=kG(a.localDescription.ta)[0];break;case "v":b=kG(a.localDescription.oa).find(function(d){return"2"==d.wa()});break;case "d":b=kG(a.localDescription.Ta)[0];break;default:Hb("Unknown media type: "+c)}return b},V9=function(a,c){if(!a.localDescription)return null;if("v"!=c.Ya)return U9(a,c.Ya);var b=kG(a.localDescription.oa).find(function(d){return d.wa()==c.getId()});b||(b=N9(a,c.getId()));return PF(new JF(b),c.be()).aa()},i0=function(a,c,b){var d=b.Ya,e=
"mu"==b.getState(),f=V9(a,b),g=null,k=null;if(c){g=c.id;c="a"==d?c.getAudioTracks():c.getVideoTracks();if(0==c.length)return a.ua.error("["+a+"] Got MediaStream without associated tracks."),null;k=c[0].id}f=OF(RF(QF(new JF(f),g),k),e).aa();"a"==d?a.kb=[f]:(d=kG(a.localDescription.oa).filter(function(m){return m.wa()!==b.getId()}),a.qb=[].concat(n(d),[f]));g0(a,"StreamInfo="+f+" updated.");Qpa(a.s,a.kb,a.qb).catch(function(m){L9(a,"Negotiating with updated local streams failed with error="+m);W9(a,
m)});return f},X9=function(a,c){c&&!a.zb&&a.ja&&(g0(a,"Adding stream with id="+c.id+" to peer"),zpa(a.ja,c))},h0=function(a,c){c&&a.ja&&(g0(a,"Removing stream with id="+c.id+" to peer"),Apa(a.ja,c))},T9=function(a,c,b){if(!a.localDescription)return null;X9(a,c);var d=i0(a,c,b);a.W&&"a"==b.Ya&&"sc"!=b.getContent()&&(a=a.W,a.b instanceof MediaStreamAudioSourceNode&&a.b.disconnect(),a.b=a.h.createMediaStreamSource(c),a.b.connect(a.w),a.l.info(D9));return d},Oqa=function(a){a.f.h||l8(a.ja).forEach(function(c){(c=
c.track)&&"audio"==c.kind&&c.stop()})},Z9=function(a){a.qb.forEach(function(c){var b=!c.be(),d=Y9(a,c);if(d){var e=d.getParameters(),f=!1;!b&&a.f.b&&(c=a.Bb.get(c.b)||a.Fb,e.encodings&&1===e.encodings.length&&(e.encodings[0].maxBitrate=c,f=!0));b&&bf&&!a.f.O&&e.encodings&&1<e.encodings.length&&(e.encodings.forEach(function(g,k){return g.active=0==k}),f=!0);b=a.f.w;bf&&Pp(72)&&e.encodings&&0<e.encodings.length&&null!=b&&e.encodings[0].networkPriority!=b&&(e.encodings[0].networkPriority=b,f=!0);f&&
d.setParameters(e)}});a.kb.forEach(function(c){if(c=Y9(a,c)){var b=c.getParameters(),d=a.f.m;bf&&Pp(72)&&b.encodings&&0<b.encodings.length&&null!=d&&b.encodings[0].networkPriority!=d&&(b.encodings[0].networkPriority=d,c.setParameters(b))}})},Y9=function(a,c){return Bpa(a.ja).find(function(b){return b.track&&b.track.id==c.g&&"live"==b.track.readyState})||null};
J9.prototype.stopSession=function(a,c){this.s&&this.s.cancel();Yt(this.ja);this.ja=null;this.C&&(this.C.close(),this.C=null);this.T&&(this.T.stop(),this.Ma=!1,this.pa=0,this.N(new $9(a,c)));this.O&&this.O.stop();this.J.stop();this.da.clear();a$(this,0)};
J9.prototype.initialize=function(){var a=this,c,b;return Ea(function(d){switch(d.b){case 1:return a.ja&&Hb("Attempted to recreate a peer connection."),P9(a,"send initiate"),g0(a,"Instantiating new peer"),Pqa(a,a.f.H),a.ja=new j8(a.f),a.s=new M8(a.ja,a.f,a.lc),K9(a),a.m.listen(a.ja.f,"signalingstatechange",a.pd),a.qa=1,a.m.listen(a.ja,"Zb",a.Uc),a.ja.f.oniceconnectionstatechange=function(e){return Qqa(a,e)},a.m.listen(a.ja,"$b",a.Zq),a.m.listen(a.ja,"ac",a.ar),a.ja.f.ondatachannel=function(e){return Rqa(a,
e.channel)},a.C=q_(a.ja,"dataSendChannel"),a.C.onopen=function(){return g0(a,"send datachannel is open.")},a.C.onclose=function(){return g0(a,"send datachannel is closed.")},a.C.onerror=function(e){return L9(a,"send datachannel error: "+e)},a.J.start(),a.T||(a.T=new ov(Sqa(a)),a.m.listen(a.T,"tick",a.od),a.T.start()),1==a.H||a.O||(a.O=new ov(b$),a.m.listen(a.O,"tick",a.ld),a.O.start()),c=function(e){var f=new JF;if(Vb(kG(e.ta))){var g=a.f.b?[8579373]:M9(a,1);f=TF(KF(f,"a"),g)}else f=new JF(kG(e.ta)[0]);
g=NF(MF(f,"1"),a.g+"/1").aa();var k=Vb(kG(e.oa))?N9(a,"2"):NF(MF(new JF(kG(e.oa)[0]),"2"),a.g+"/2").aa();f=new JF;f=Vb(kG(e.Ta))?SF(TF(KF(f,"d"),M9(a,1)),jG(e.Ta)):new JF(kG(e.Ta)[0]);f=NF(MF(f,"3"),a.g+"/3");a.f.b||QF(f,"dataSendChannel");e=f.aa();return new DG(qG(new gG("a",[],[]),[g]),qG(new gG("v",[],[]),[k]),qG(new gG("d",[],[]),[e]))},va(d,2),ua(d,Npa(a.s,c),4);case 4:wa(d,3);break;case 2:return b=xa(d),a.ua.error("["+a+"] "+("Creating the initial local description failed: "+b)),d.return(null);
case 3:return g0(a,"Creating the initial local description succeeded"),d.return(a.localDescription)}})};
var Tqa=function(a){var c;Ea(function(b){switch(b.b){case 1:return P9(a,"recv local description"),g0(a,"Calling initial setLocalDescription"),va(b,2),ua(b,Opa(a.s),4);case 4:wa(b,3);break;case 2:throw c=xa(b),g0(a,"Initial setLocalDescription offer failed with error="+c),W9(a,c),c;case 3:g0(a,"Initial setLocalDescription offer succeeded"),b.b=0}})},Sqa=function(a){var c=1==a.H||Ye&&!0;return a.f.h&&c?b$:Math.min(1E3,a.tb)};
J9.prototype.od=function(){var a=this;this.T.enabled&&(1==this.H&&c$(this),this.Ma||(bf?0:1E3>u()-this.pa)||(this.Ma=!0,this.ja.getStats().then(function(c){return Uqa(a,c)})))};J9.prototype.ld=function(){if(this.O.enabled)if(c$(this),2==this.H){for(var a=new Map,c=l(this.F.keys()),b=c.next();!b.done;b=c.next()){var d=b.value;b=this.F.get(d);(d=Q9(this,this.o,d))&&d$(this,a,d,(b.h?Vea(b.h):null)||0)}e$(this,a);f$(this,a)}else 3==this.H&&f$(this,this.fa)};
var Uqa=function(a,c){a.Ma=!1;var b=null;bf?b=c.result():b=c;Vqa(a,b);Wqa(a,b);1==a.H&&Xqa(a,b);a.j&&Gqa(a.J,a.j);Fqa(a.J,b);bf&&lqa(a.J.b,b);c=u();if(c-a.pa>=a.tb){a.pa=0==a.pa?c:a.pa+a.tb;var d=!1;c=l(a.Aa);for(var e=c.next();!e.done;e=c.next())if(e=e.value,"v"==e.f.Ya&&!e.isMuted()){d=!0;break}var f=bf?b:null;c=Promise.resolve(null);bf&&Pp(72)?c=a.ja.getStats(!1):bf||(c=Promise.resolve(b));c.then(function(g){return new Promise(function(k){return Nqa(a.J,f,g,!d,k)})}).then(function(g){a.N(new g$(g))})}},
Xqa=function(a,c){c=bf?jqa(c):new Map;var b=new Map;c.forEach(function(d,e){d$(a,b,e,d)});e$(a,b);f$(a,b)},c$=function(a){var c=a.j;a.j=null;a.ha=null;a.fa=null;if(a.o&&0<a.o.ta.w.length){a.j=new Map;a.fa=new Map;for(var b=a.o.ta.m,d=0,e=l(l8(a.ja)),f=e.next();!f.done;f=e.next())if(f=f.value,"audio"==f.track.kind&&Xa(f.getContributingSources)){a.bb||(a.bb=u(),a.N(new h$(a.bb)));var g=f.getContributingSources();if(0!=g.length)if(f=Yqa(f),null==f)L9(a,"Could not find SSRC for RTCRtpReceiver.");else{g.sort(function(v,
A){var G=i$(v.timestamp);A=i$(A.timestamp);return G==A&&null!=b?v.source==b?1:-1:A-G});var k=null,m=null;g=l(g);for(var p=g.next();!p.done;p=g.next()){p=p.value;if(null!=k&&(null==b||p.timestamp<=d))break;null!=b&&p.source==b?p.timestamp>d&&(d=p.timestamp,a.ha=m):(null==k&&(k=p),m=p.source)}null!=k&&(m=k.source,a.j.set(f,{yd:m,timestamp:i$(k.timestamp)}),a.fa.set(m,{volume:DE(Math.min(3E5*(k.audioLevel||0),32768)),jj:!1}))}}e$(a,a.fa);3==a.H&&dpa(a.yc,a.fa)}Zqa(a,c)},d$=function(a,c,b,d){if(a.j){b=
a.j.get(b);if(!b)return;b=b.yd}1==a.H&&a.h&&(a=a.h.get(b),null!=a&&0!=a&&(d/=a));c.set(b,{volume:d,jj:!1})},e$=function(a,c){a.ha&&(c.has(a.ha)?c.get(a.ha).jj=!0:c.set(a.ha,{volume:0,jj:!0}))},Vqa=function(a,c){Hqa(a.J,c,function(b,d){b&&P9(a,"recv first audio packet");d&&P9(a,"recv first video packet");a.N(new j$(b,d))})},Wqa=function(a,c){a.Ca&&Iqa(a.J,c,function(b){$qa.forEach(function(d,e){b>=e&&(P9(a,d),"bandwidth 3150"==d&&(a.Ca=!1))})})},Q9=function(a,c,b){if(!c||!c.ta)return null;if(0<a.o.ta.w.length){if(c=
z(a.o.ta.w).find(function(d){return d.toString()==b}))return c;L9(a,"Received audio from non-virtual ssrc "+b+"when only virtual ssrcs should be used");return null}if(a=kG(c.ta).find(function(d){return d.b==b}))if(a=a.yb(),!Vb(a))return a[0];return null},y_=function(a,c){c.forEach(function(){P9(a,"recv candidate ")});Rpa(a.s,c)},bra=function(a){ara(a);null==a.Da&&1==a.qa&&(R9(a,2703),a.Sa=qv(function(){1==a.qa&&(L9(a,"Transport writable 1st timer timed out."),R9(a,2705))},2E4),a.Wa=qv(function(){1==
a.qa&&(L9(a,"Transport writable 2nd timer timed out."),R9(a,2706))},3E4),a.Da=qv(function(){if(1==a.qa){L9(a,"Transport writable timeout failed, aborting.");var c=27;R9(a,2707);a.gc||(R9(a,3736),c=24);a.N(new k$(c,a.g))}},55E3))},a$=function(a,c){null!=a.Sa&&(rv(a.Sa),a.Sa=null);null!=a.Wa&&(rv(a.Wa),a.Wa=null);null!=a.Da&&(rv(a.Da),a.Da=null);a.qa=c},Qqa=function(a,c){var b,d;return Ea(function(e){switch(e.b){case 1:a.xc=c;b=a.ja.f.iceConnectionState;g0(a,"ICE connection state changed to: "+b);"disconnected"==
b?R9(a,5442):"failed"==b&&R9(a,5441);if("disconnected"!=b){if("connected"==b||"completed"==b)a$(a,2),a.hc=!0,P9(a,"transport writable"),R9(a,2704),a.N(new l$(!0));e.Ob(0);break}e.Ob(3);break;case 4:if(a.xc!=c)return e.return();case 3:a.hc&&(P9(a,"transport not writable"),a.N(new l$(!1)));if(Ye)return e.return();g0(a,"Initiating ICE restart");R9(a,5440);va(e,5);var f=a.s;f.j=!0;f=T8(f);return ua(e,f,7);case 7:wa(e,0);break;case 5:throw d=xa(e),L9(a,"ICE restart failed with error="+d),W9(a,d),d;}})};
J9.prototype.Uc=function(a){a=a.candidate;g0(this,"Got local ICE candidate: "+JSON.stringify(a));this.N(new m$(this.g,[a]));a=a.b;P9(this,"send candidate "+a);"STUN"!=a&&(this.gc=!0)};
var ara=function(a){P9(a,"call connect");null==a.Ca&&(a.Ca=!0,sv(3E5).then(function(){a.Ca=!1}))},cra=function(a,c){var b;return Ea(function(d){switch(d.b){case 1:return P9(a,"recv remote description"),a.o=c,a.Ib=new Map(kG(c.Ta).map(function(e){return[e.Ld||e.wa(),e]})),va(d,2),ua(d,Ppa(a.s,c),4);case 4:wa(d,3);break;case 2:throw b=xa(d),L9(a,"Negotiating with updated remote description failed with error="+b),W9(a,b),b;case 3:Z9(a),Oqa(a),d.b=0}})},dra=function(a){a.Aa.forEach(function(c){(c=CW(c,
a.g))&&h0(a,c)});a.zb=!0},n$=function(a){a.zb=!1;a.Aa.forEach(function(c){(c=CW(c,a.g))&&X9(a,c)})};J9.prototype.ia=function(){var a=this;Yt(this.T);Yt(this.O);this.F.forEach(function(c){return bF(a.Ab,c.Ub().id)});this.F.clear();Yt(this.ja);this.ja=null;this.C&&(this.C.close(),this.C=null);Y.prototype.ia.call(this)};
var era=function(a,c){P9(a,"recv view request");a.Fb=null;a.Bb.clear();c.forEach(function(b){var d=b.Tb();if(d=cX(d)?null:1E6)(b=b.s)?a.Bb.set(b,d):a.Fb=d});Z9(a)},Rqa=function(a,c){g0(a,"receive datachannel "+c.label+" created.");a.Ia.set(c.label,c);c.onopen=function(){g0(a,"receive datachannel "+c.label+" is open.")};c.onclose=function(){g0(a,"receive datachannel "+c.label+" is closed.");a.Ia.delete(c.label)};c.onerror=function(b){L9(a,"receive datachannel "+c.label+" threw error: "+b);a.Ia.delete(c.label)};
c.onmessage=function(b){b=b.data;var d=a.Ib.get(c.label);d=d?d.ba():c.label;g0(a,"dataReceived: participantId="+d+(" label="+c.label+" data="+b));null!=b&&a.N(new o$(a.g,d,c.label,b))}},Zqa=function(a,c){a.h&&a.j&&a.j.forEach(function(b,d){var e=c&&c.get(d);b=b.yd;e&&e.yd==b||(d=a.F.get(d.toString()))&&d.setVolume(a.h.has(b)?a.h.get(b):1)})},fra=function(a,c){if(c){var b=!a.h,d=new Map;c.forEach(function(e,f){(f=f.getInfo())&&f.yb().forEach(function(g){d.set(g,e);b=b||e!==a.h.get(g)})});if(!b&&a.h.size==
d.size)return;a.h=d}else{if(!a.h)return;a.h=null}a.F.forEach(function(e,f){return S9(a,f,e)})},S9=function(a,c,b){a.h?(c=Q9(a,a.o,c),null!=c&&(a.j&&a.j.has(c)&&(c=a.j.get(c).yd),b.setVolume(a.h.has(c)?a.h.get(c):1))):b.setVolume(1)};J9.prototype.pd=function(a){a.target==this.ja.f&&p$(this)};
var p$=function(a){"closed"!=a.ja.f.signalingState||a.w()||(R9(a,2055),a.N(new k$(4,a.g)))},f$=function(a,c){c=c||new Map;a.N(new Z7(a.g,c));a.ab&&zna(a.ab,c)},Pqa=function(a,c){0==c.length&&a.ua.G("No ICE servers provided.");c.some(function(b){return!b.url&&!b.urls})&&(a.ua.G("Malformed Ice servers: "+JSON.stringify(c)),R9(a,4264))},W9=function(a,c){c instanceof W8?p$(a):a.N(new k$(19,a.g,c+""))},R9=function(a,c,b){a.lc.then(function(d){d.V(c,{sessionId:a.g,Zc:b})})};
ca.Object.defineProperties(J9.prototype,{localDescription:{configurable:!0,enumerable:!0,get:function(){return this.s?this.s.localDescription:null}}});var b$=bf&&!Pp(40)?200:100,$qa=new Map([[5E5,"bandwidth 500"],[1E6,"bandwidth 1000"],[15E5,"bandwidth 1500"],[25E5,"bandwidth 2500"],[315E4,"bandwidth 3150"]]),j$=function(a,c){X.call(this,"fc");this.b=a;this.f=c};q(j$,X);var g$=function(a){X.call(this,"jc");this.fb=a};q(g$,X);var $9=function(a,c){X.call(this,"kc");this.b=a;this.f=c};q($9,X);
var m$=function(a,c){X.call(this,"hc");this.sessionId=a;this.b=c};q(m$,X);var O9=function(a,c){X.call(this,"gc");this.sessionId=a;this.message=c};q(O9,X);var l$=function(a){X.call(this,"mc");this.b=a};q(l$,X);var o$=function(a,c,b,d){X.call(this,"dc");this.sessionId=a;this.Qa=c;this.label=b;this.payload=d};q(o$,X);var k$=function(a,c,b){X.call(this,"ec");this.b=a;this.sessionId=c;this.f=b};q(k$,X);var h$=function(a){X.call(this,"cc");this.b=a};q(h$,X);
var i$=function(a){return r(a)?a:a?a.getTime():0},Yqa=function(a){if(bf)return parseInt(a.track.id,10);if(!Xa(a.getSynchronizationSources))return null;a=a.getSynchronizationSources();return 0<a.length?a[0].source:null};var q$=["Unregistering audio capture=","."];q$.raw=q$.slice();var r$=["Registering peer controller=","."];r$.raw=r$.slice();var s$=function(){Y.call(this);this.l=new tE("realtime.media.api.webrtc.AudioMonitor");this.g=this.f=null;this.h=new ov(100);this.b(this.h);var a=new My(this);this.b(a);a.listen(this.h,"tick",this.s);this.j=0};q(s$,cF);s$.prototype.ia=function(){this.f&&(this.l.info(q$,this.f),this.h.stop(),this.f=null,Yt(this.g),this.g=null);Yt(this.g);cF.prototype.ia.call(this)};
var gra=function(a,c){a.l.info(r$,c);var b=new My(a);a.b(b);b.listen(c,"Yb",a.m).listen(c,"cc",a.o).listen(c,"kc",function(){return Yt(b)})},t$=function(a,c,b){c=void 0===c?"amsid":c;b=void 0===b?null:b;var d=a.f?a.f.fa():0;a.N(new GY(c,d,b||new Map))};s$.prototype.s=function(){1E3<u()-this.j&&t$(this)};s$.prototype.m=function(a){this.j=u();t$(this,a.sessionId,a.b)};s$.prototype.o=function(a){this.N(new HY(a.b))};var hra=function(a){if(!u$){u$=dv();var c=new UH;hv(QB(a,LD).then(function(b){return Q3(b)}).then(function(b){return 0!=b.status||null==b.value?Yu():new UH(b.value.modelName||"",b.value.numOfProcessors||0)}),function(){return c}).then(function(b){return u$.resolve(b)});qv(function(){return u$.resolve(c)},2E3)}return u$.Y},u$=null;chrome.i18n.getMessage("1776059761336612443");chrome.i18n.getMessage("5492508068872060019");var r_=function(a){Y.call(this);var c=this;this.f=a;this.ge=dv();this.g=dv();ira(this);Xt(this,function(){return c.ge.Y.then(function(){return c.f.close()})})};q(r_,Y);var ira=function(a){a.f.binaryType="arraybuffer";a.f.onerror=function(c){a.ge.reject(c);a.g.reject(c)};a.f.onopen=function(){a.ge.resolve()};a.f.onclose=function(){a.g.resolve()};a.f.onmessage=function(c){c=c.data;c instanceof ArrayBuffer?a.N(new XG(new Uint8Array(c))):Ja(c)?a.N(new YG(c)):Hb("Unsupported data type received on RTCDataChannel")}};
r_.prototype.send=function(a){this.f.send(a)};r_.prototype.onClose=function(){return this.g.Y};var jra=[["Feature disabled.",5519],["Unlimited size disallowed.",5886],["Max size too small.",5887],["Excessively large max log size.",5888],["Excessively large output period (ms).",5889],["Illegal web-app ID.",5890],["Unknown or inactive peer connection.",5891],["Already logging.",5892],["Unspecified error.",5893],["RPH already dead.",5903],["Could not create file.",5904],["Used history file path.",5905],["Used log file path.",5906],["Disabled for browser context.",5907],["No additional active logs allowed.",
5908]],x$=function(a){var c=this;this.b=new LW("realtime.media.api.webrtc.LoggingManager");this.H=QB(a,ED).then();this.W=QB(a,HD,!0).then();this.F=this.W.then(function(b){return b.g});this.g=Pz.Ja();this.g.C=8;this.m=QB(a,LD);this.D=null;this.J=new Set;this.O=new Map;this.w=new Set;this.T=new Map;this.s=new Set;this.f=!1;this.j=this.o=this.h=null;this.C=this.L=!1;ru(nT.Ja(),["Va","Wa","Xa"],function(){c.g.h&&v$(c,5183);w$(c)})};
x$.prototype.initialize=function(a){var c=this;this.b.info("Logging manager initialized with userId="+a);this.D=a;this.g.w="11.0.0.0";if(a){var b=dda(this.g,a);null!=b&&bz(b,function(d){0<d&&y$(c,2679)});y$(this,5184,U(Oz(this.g.g,a),Gz,1).length)}z$(this);return Xu(7)};
var u_=function(a,c,b){a.b.info("enableRtpHeaderDump called with sessionId="+c+(" and enable="+b));a.C==b?a.b.info("Ignoring enableRtpHeaderDump call for sessionId="+c+(" as header dump already in state with enable="+b)):a.f?a.m.then(function(d){R3(d,b).then(function(){a.b.info("RTP header dump succeeded for sessionId="+c+(" and enable="+b));a.C=b},function(e){a.b.G("Error setting RTP header dump for sessionId="+c+(" and enable="+b+". Error="+e.value));throw e;})}):a.h?(a.b.info("Delaying rtp header dump request until native WebRTC logging has started."),
a.h.then(function(){return u_(a,c,b)})):a.b.G("enableRtpHeaderDump called when native logging is not active or pending")},kra=function(a,c){if(a.w.has(c)){a.b.info("Stopping logging for sessionId="+c);a.w.delete(c);y$(a,3221);var b=a.s.has(c);a.s.delete(c);b?(a.b.info("Uploading logs for "+c),y$(a,2494),b=a.F.then(function(e){if(a.D)return a.b.info("################# Save #################"),cda(a.g,c,a.D,e).then(function(){y$(a,2495)},function(){y$(a,2496)});a.b.G("Failed to upload beacause of missing user identifier.")})):
b=Xu();var d=w$(a);gv(bv([b,d]),function(){var e=Pz.Ja(),f=new Date;Qz(e,c,"### Stop ["+f.toString()+"] ### "+c);Qz(e,c,"Current time is "+f.toUTCString());delete e.b[c]})}else a.b.info("Skipping stopLogging call for sessionId="+c+" as logging is not active for this session.")},mra=function(a,c){Ea(function(b){a.b.info("Log upload requested for sessionId="+c);a.s.add(c);a.F.then(function(d){a.D&&a.g.g.add(a.D,c,d)});A$(a);return ua(b,lra(a,c),0)})},B$=function(a,c){var b=a.O.get(c);b||(b=dv(),a.O.set(c,
b));return b},z$=function(a){a.f||a.h||(a.b.info("Requesting native WebRTC logging"),y$(a,4732),a.h=a.m.then(function(c){return gv(ena(c).then(function(){a.f=!0;y$(a,4733);a.b.info("Native WebRTC logging started");A$(a)},function(b){var d=b.value,e=Tz.get(b.status);y$(a,4734);e&&(d=JSON.stringify(d),v$(a,e,d));a.b.G("Native WebRTC logging failed to start, error: "+b.value);throw b;}),function(){a.h=null})}))},lra=function(a,c){var b;return Ea(function(d){if(!a.s.has(c))return d.return();b=a.T.get(c);
if(!b||a.J.has(c))return d.return();a.J.add(c);return ua(d,nra(a,c,b),0)})},nra=function(a,c,b){var d,e,f,g,k,m,p,v,A,G,E;return Ea(function(P){switch(P.b){case 1:return a.b.info("WebRTC event logging requested for "+c+", peer id: "+b),ua(P,a.m,2);case 2:return d=P.f,va(P,3),ua(P,d.f.xj(b).then(d.b),5);case 5:e=P.f;f=e.value.logId;B$(a,c).resolve(f);y$(a,5520);a.b.info("WebRTC event logging started, logId: "+f);wa(P,0);break;case 3:g=xa(P);if(!(g instanceof Sz))return y$(a,5518),a.b.error("WebRTC event logging failed unexpectedly, error: "+
JSON.stringify(g)),P.return();if(3==g.status)return y$(a,5894),a.b.error("WebRTC event logging failed due to disabled extension."),P.return();k=g.value;m=l(jra);for(p=m.next();!p.done;p=m.next())if(v=p.value,A=l(v),G=A.next().value,E=A.next().value,k.includes(G))return y$(a,E),a.b.info("WebRTC event logging start error: "+k),P.return();y$(a,5517);a.b.G("WebRTC event logging failed to start, error: "+JSON.stringify(g));P.b=0}})},w$=function(a){if(a.o)return a.o;if(a.h)return a.h.then(function(){w$(a)});
if(!a.f)return Xu();if(0==!a.w.size)return a.b.info("Ignoring native WebRTC logging stop request due to active session ids="+a.w.keys()),Xu();a.b.info("Stopping native WebRTC logging.");a.o=a.m.then(function(c){a.C&&R3(c,!1);return gv(fna(c,a.j,a.L).then(function(){a.b.info("Request to stop native WebRTC logging succeeded")},function(b){a.b.G("Request to stop native WebRTC logging failed with error="+b.value);throw b;}),function(){a.f=!1;a.j=null;a.o=null})});return a.o},A$=function(a){if(!a.L&&a.f&&
a.j&&a.s.has(a.j)){a.b.info("Requesting upload of the native WebRTC logs");a.L=!0;var c=a.j;y$(a,4735);a.F.then(function(b){return ora(a,c,b)})}},ora=function(a,c,b){a.m.then(function(d){gna(d,c,b).then(function(){y$(a,4736);a.b.info("Native uploadLogOnRenderClose succeeded.")},function(e){y$(a,4737);a.b.G("Native uploadLogOnRenderClose failed witherror="+e.value);throw e;})})},y$=function(a,c,b){a.H.then(function(d){d.V(c,{Qc:b})})},v$=function(a,c,b){a.H.then(function(d){vO(d,c,{Zc:b})})};var C$=function(a,c,b,d,e){YH.call(this);var f=this;this.h=new LW("realtime.media.api.webrtc.LocalSession");this.g=a;this.f=c;this.ha=b;this.H=dv();this.o=e;B$(this.o,a).Y.then(function(g){var k=new QH,m=new yH;S(m,7,g);V(k,7,m);f.H.resolve(k)});this.O=new My(this);this.b(this.O);this.O.listen(this.f,"dc",this.Hr).listen(this.f,"ec",this.Ir).listen(this.f,"fc",this.Jr).listen(this.f,"gc",this.Kr).listen(this.f,"hc",this.Lr).listen(this.f,"jc",this.Nr).listen(this.f,"kc",this.Mr).listen(this.f,"mc",
this.Or);this.j="INITIAL";this.s=new Set;this.da=null;this.C=void 0;this.F=this.m=null;this.J=new UH;d.then(function(g){return f.J=g})};q(C$,YH);var D$=function(a,c,b,d){a.j!=c&&(a.j=c,!r(a.C)&&r(b)&&(a.C=b),a.N(new XH(a.j,a.C,d)))};h=C$.prototype;h.Jl=function(){return this.H.Y};h.rm=function(){return this.J};h.getState=function(){return this.j};h.Dl=function(){return this.m?this.m.Y:null};h.initialize=function(){return"INITIAL"!=this.j?(this.h.G("Called initialize in a bad state."),Yu()):Xu(this.f.initialize())};
h.Id=function(){if("INITIAL"!=this.j)return this.h.G("Called prepare in a bad state."),!1;if(!this.f.localDescription)return this.h.G("Prepare called before local offer has been generated."),!1;var a=this.o,c=this.g;a.b.info("Starting logging for sessionId="+c);a.w.add(c);y$(a,3220);var b=Pz.Ja();b.f=c;b.b[c]=b.o;b.o=new Az;b.b[c].open(b.j,"hangouts-call-"+c+".log");var d=new Date;Qz(b,c,"### Start ["+d.toString()+"] ### "+c);Qz(b,c,"Current time is "+d.toUTCString());Qz(b,c,"Google Talk Plugin Version: "+
b.w);Qz(b,c,"User agent: "+Xd);a.j||(a.j=c,a.f?A$(a):z$(a));Tqa(this.f);D$(this,"STARTING");return!0};h.start=function(a){if("STARTING"!=this.j)return this.h.G("Called start in a bad state."),!1;this.h.info("sendLogComment: RemoteSessionId="+a.g);D$(this,"INPROGRESS");Q_(this,a);return!0};h.connect=function(){"PAUSED"!=this.getState()&&n$(this.f);bra(this.f)};
h.update=function(a){switch(this.j){case "INITIAL":return this.h.G("Update called before started."),Promise.reject(Error("Update called before started."));case "STOPPED":return this.h.G("Update called after stopped."),Promise.reject(Error("Update called after stopped."))}return Q_(this,a)};h.stop=function(a,c){if("STOPPED"==this.j)return!1;D$(this,"STOPPED",a,c);this.f.stopSession(this.C,c);kra(this.o,this.g);return!0};
h.pause=function(){if("INPROGRESS"!=this.getState())return!1;dra(this.f);D$(this,"PAUSED");return!0};h.resume=function(){if("PAUSED"!=this.getState())return!1;n$(this.f);D$(this,"INPROGRESS");return!0};
var o_=function(a){mra(a.o,a.g)},pka=function(a,c){var b=c.f.Ya;switch(a.j){case "STOPPED":case "FINISHED":return a.h.G("Add local stream called after ended."),null}if(a.s.has(c))return a.h.error("Capture "+c+" has already been added."),null;c.qm(a.g);var d=a.f;g0(d,"Adding capture="+c);d.Aa.add(c);d.m.listen(c,"T",d.Ul);var e=CW(c,d.g);d=e?T9(d,e,c.f):V9(d,c.f);if(null==d)return a.h.error("A stream for capture of type: "+b+", was not created."),null;a.s.add(c);return d};C$.prototype.Qe=function(){};
var w_=function(a,c){if("INPROGRESS"==a.j){var b=bf&&Pp(74);if(!a.ha.b||b){b={};for(var d=l(a.s),e=d.next();!e.done;b={ai:b.ai},e=d.next())b.ai=e.value,(e=c.find(function(f){return function(g){return g.la()==f.ai.f.Ya}}(b)))&&(e=cG(new ZF(e),a.g).aa())}era(a.f,c)}};h=C$.prototype;h.Dj=function(a){fra(this.f,a)};
h.sm=function(a,c){if(null!=U9(this.f,"d")){var b=this.f;g0(b,"sendData: label="+a+", data="+c);var d=b.Ia.get(a)||b.C;if(d){var e=d.readyState;"open"==e?d.send(c):g0(b,"Message dropped: dataChannel "+a+" is in "+(e+" state"))}else L9(b,"Unknown dataChannel for label "+a+(", cannot send data: "+c))}else this.h.G("Sending data without data stream.")};h.Jr=function(a){this.N(new ZH(a.b,a.f))};h.Ym=function(){return!0};h.Lr=function(a){a.sessionId==this.g&&this.N(new $H(a.b))};
h.Kr=function(a){a.sessionId==this.g&&this.N(new kJ(a.message))};h.Nr=function(a){this.N(new aI(a.fb))};h.Mr=function(a){this.N(new bI(0,a.b,a.f))};h.Ir=function(a){a.sessionId==this.g&&this.stop(a.b,a.f)};h.Or=function(a){this.m&&a.b&&(rv(this.F),this.m.resolve(),this.m=null);this.N(new dI(a.b))};h.Hr=function(a){this.g==a.sessionId&&this.N(new cI(a.Qa,a.label,a.payload))};h.YA=function(){return!0};
h.Zk=function(a){var c=kG(this.f.localDescription.Ta);c.some(function(b){return b.Ld==a.Ad()})||(c.push(this.T(a)),this.h.error("Ignoring post-setup addDataChannel call!"))};h.ln=function(){null==this.m&&(this.m=dv(),this.F=qv(this.W,25E3,this))};
var Q_=function(a,c){if(null!=MG(c)){var b=GG(c).map(a.T,a),d=c.Ta;null==d&&(d=[kF(jF(new iF,"d"),101).mf("google-data").aa()],d=new gG("d",d,[]));d=qG(d,kG(d).concat(b));c=KG(c,d)}a.da=c;a.h.info("Session "+a.g+" setting remote descriptions: "+Hv(HG(c)));return cra(a.f,c)};C$.prototype.T=function(a){var c=a.b,b=a.Ad()||"local_push_channel",d=a.getChannelId()||"";return QF(UF(NF(MF(LF(KF(new JF,"d"),d),b),c.toString()),c),a.Ad()).aa()};
C$.prototype.W=function(){this.m.reject(Error("Session handoff timed out."));this.m=null};var E$=function(){W.call(this);this.f=new Map};q(E$,W);var pra=function(a,c){a.f.set(c.g,c);var b=new My(a);a.b(b);b.listen(c,"V",function(d){"FINISHED"==d.state&&(this.f.delete(c.g),Yt(b))})};E$.prototype.Fh=function(){return this.f.get(void 0)||null};var F$=chrome.i18n.getMessage("4464119502738861996"),G$=xz("__synthetic_default_speaker_device__");G$.b=F$;G$.f=F$;var H$=G$.g("__synthetic_default_speaker_device__");H$.h=!0;H$.aa();var I$=function(a){pX.call(this,a);new LW("realtime.media.api.webrtc.Delegate");this.g=new x$(this.ya);this.b=new s$;this.h=new rJ;a=this.ya.get(KB).g;var c=this.ya;UE.has(c)||UE.set(c,new SE);c=UE.get(c);this.m=new aF(a,c,this.ya);this.w=new E$;this.f=0};q(I$,pX);
I$.prototype.initialize=function(){var a=this;if(!(bf||Ye&&Ve(54)))return null;var c=this.api.j.then(function(b){a.g.initialize(O(b,7));b=T(b,iA,17)?U(T(b,iA,17),jA,3)||[]:[];a.h=qra(b);return 7});this.V(4163);QB(this.ya,KD,!0).then(function(b){return kka(b,a.b)});QB(this.ya,JY,!0).then(function(b){return bka(b,a.b)});c=[c,rra()];return bv(c).then(this.o,null,this)};I$.prototype.o=function(a){(a=a.find(function(c){return 7!=c}))||(a=7);return this.f=a};
I$.prototype.sj=function(){if(bf||Ye&&Ve(54))a:switch(this.f){case 4:case 5:case 6:case 7:var a=!0;break a;default:a=!1}else a=null;return a};var rra=function(){return gja().then(function(a){for(var c=0,b=!1,d=0,e=!1,f=0;f<a.length;f++)"audioinput"==a[f].kind?(c++,b=b||!kd(pe(a[f].label))):"videoinput"==a[f].kind&&(d++,e=e||!kd(pe(a[f].label)));b=b||0==c;e=e||0==d;if(b||e){if(!b)return 5;if(!e)return 4}else return 6;return 7})};
I$.prototype.mm=function(){if(bf||Ye&&Ve(54)){var a=new s4(this.ya),c=new QH,b=new yH;S(b,1,"11.0.0.0");V(c,7,b);b=new IH;var d="other";Je?d="windows":Ie?d=-1!=Ge.indexOf("Intel")?"mac":"mac-ppc":0<=Xd.indexOf("CrOS")?d="cros":Ke&&(d="linux");S(b,1,d);S(b,14,lJ);d=v4();S(b,15,d);S(b,16,Op);"GMD"===d?(d=(d=t4.exec(Xd))?d[1]:null)&&S(b,22,d):u4()&&B4(a,4749);y4(a)?S(b,5,"ARM"):(S(b,2,6),S(b,3,14),S(b,5,"GenuineIntel"),d=wna(a.b),S(b,18,d));S(b,25,a.b.modelName);S(b,6,a.b.numOfProcessors);S(b,19,a.f.model);
S(b,26,a.f.manufacturer);V(c,8,b);return c}return null};I$.prototype.jm=function(a,c,b){return this.sj()?(a=new J9(a,c,this.m,b),gra(this.b,a),c=new C$(c,a,b,hra(this.ya),this.g),c.b(a),pra(this.w,c),c):null};I$.prototype.km=function(a){return this.sj()?new LW(a):null};oX(qX,I$,6);var qra=function(a){var c=new rJ;a.forEach(function(b){kd(pe(O(b,1)))&&kd(pe(b.getName()))||c.push(new Qfa(b.getName(),O(b,1),O(b,3),O(b,4),O(b,5),il(b,6,!0)))});return c};var J$=function(){this.b=new Map};q(J$,aY);J$.prototype.g=function(a){return T(a,aA,13)};J$.prototype.f=function(a,c,b){var d=this;if(!b&&this.b.has(a))return this.b.get(a);c=new y1(b||O(c,6),c.h,function(){return QB(a,HD).then(function(e){return e.g})},O(c,1),R(c,5,0),mT(c));b||a.w()||(this.b.set(a,c),Xt(a,function(){return d.b.delete(a)}));return c};J$.prototype.j=function(a){return a.D};J$.prototype.h=function(a){return a.C};oX(VX,J$,0);var K$=function(a,c){this.b=a;this.f=c};K$.prototype.execute=function(a){this.b&&(this.b.call(this.f||null,a),this.b=this.f=null)};K$.prototype.abort=function(){this.f=this.b=null};var L$=function(a,c){W.call(this);this.h=a;this.Ka=c;this.g=[];this.f=[];this.j=[]};x(L$,W);L$.prototype.Ki=function(){return this.h};L$.prototype.getId=function(){return this.Ka};L$.prototype.D=function(a,c){this.g.push(new K$(a,c))};var sra=function(a,c){a.f.push(new K$(c,void 0))};
L$.prototype.onError=function(a){for(var c=this.f,b=[],d=0;d<c.length;d++)try{c[d].execute(a)}catch(e){Fu(e),b.push(e)}c.length=0;(a=b.length?b:null)&&window.setTimeout(wc("Module errback failures: "+a),0);this.j.length=0;this.g.length=0};L$.prototype.ia=function(){L$.Ga.ia.call(this);Yt(null)};var M$=function(){};M$.prototype.F=function(){return!1};M$.prototype.H=function(){return!1};M$.prototype.D=function(){};var ZB=null,$B=null;var N$=function(){this.h={};this.f=[];this.g=[];this.s=[];this.b=[];this.j=[];this.o={};this.T=new L$([],"");this.l=Mf("goog.module.ModuleManager");this.m=0;this.L=this.O=this.J=!1};x(N$,M$);N$.prototype.F=function(){return 0<this.f.length};N$.prototype.H=function(){return 0<this.j.length};
var P$=function(a){var c=a.F();c!=a.J&&(O$(a,c?"active":"idle"),a.J=c);c=a.H();c!=a.O&&(O$(a,c?"userActive":"userIdle"),a.O=c)},VB=function(a,c,b){var d=[];hc(c,d);c=[];for(var e={},f=0;f<d.length;f++){var g=d[f],k=a.h[g];if(!k)throw Error("Unknown module: "+g);var m=new Vy;e[g]=m;tra(a,g,k,!!b,m);SB(a,g)||c.push(g)}0<c.length&&(Vb(a.f)?a.C(c):(a.b.push(c),P$(a)));return e},tra=function(a,c,b,d,e){b.D(e.callback,e);sra(b,function(f){e.b(Error(f))});SB(a,c)?d&&(Pf(a.l,"User initiated module already loading: "+
c),Ub(a.j,c)||a.j.push(c),P$(a)):d?(Pf(a.l,"User initiated module load: "+c),Ub(a.j,c)||a.j.push(c)):Pf(a.l,"Initiating module load: "+c)};N$.prototype.C=function(a,c,b){c||(this.m=0);a=ura(this,a);Pf(this.l,"Loading module(s): "+a);this.f=a;this.g=z(a);P$(this);Vb(a)||(this.s.push.apply(this.s,a),b=t(null.NA,null,z(a),this.h,null,t(this.W,this,this.g,a),t(this.Ua,this),!!b),(a=5E3*Math.pow(this.m,2))?window.setTimeout(b,a):b())};
var ura=function(a,c){c=Mb(c,function(){return!0});for(var b=[],d=0;d<c.length;d++)b=b.concat(Q$(a,c[d]));hc(b);return 1<b.length?(d=b.shift(),Pf(a.l,"Must load "+d+" module before "+c),a.b=Nb(b,function(e){return[e]}).concat(a.b),[d]):b},Q$=function(a,c){var b=Qc(a.s),d=[];b[c]||d.push(c);c=[c];for(var e=0;e<c.length;e++)for(var f=a.h[c[e]].Ki(),g=f.length-1;0<=g;g--){var k=f[g];b[k]||(d.push(k),c.push(k))}d.reverse();hc(d);return d},SB=function(a,c){if(Ub(a.f,c))return!0;for(var b=0;b<a.b.length;b++)if(Ub(a.b[b],
c))return!0;return!1};N$.prototype.load=function(a,c){return VB(this,[a],c)[a]};N$.prototype.W=function(a,c,b){this.m++;this.g=a;y(c,db(ac,this.s),this);401==b?(C(this.l,"Module loading unauthorized"),R$(this,0),this.b.length=0):410==b?(S$(this,3),T$(this)):3<=this.m?(C(this.l,"Aborting after failure to load: "+this.f),S$(this,1),T$(this)):(C(this.l,"Retrying after failure to load: "+this.f),this.C(this.g,!0,8001==b))};
N$.prototype.Ua=function(){C(this.l,"Aborting after timeout: "+this.f);S$(this,2);T$(this)};
var S$=function(a,c){1<a.g.length?a.b=Nb(a.g,function(b){return[b]}).concat(a.b):R$(a,c)},R$=function(a,c){var b=a.g;a.f.length=0;for(var d=[],e=0;e<a.b.length;e++){var f=Mb(a.b[e],function(m){var p=Q$(this,m);return Pb(b,function(v){return Ub(p,v)})},a);fc(d,f)}for(e=0;e<b.length;e++)Xb(d,b[e]);for(e=0;e<d.length;e++){for(f=0;f<a.b.length;f++)ac(a.b[f],d[e]);ac(a.j,d[e])}var g=a.o.error;if(g)for(e=0;e<g.length;e++){var k=g[e];for(f=0;f<d.length;f++)k("error",d[f],c)}for(e=0;e<b.length;e++)if(a.h[b[e]])a.h[b[e]].onError(c);
a.g.length=0;P$(a)},T$=function(a){for(;a.b.length;){var c=Mb(a.b.shift(),function(){return!0},a);if(0<c.length){a.C(c);return}}P$(a)};N$.prototype.D=function(a,c){Ua(a)||(a=[a]);for(var b=0;b<a.length;b++){var d=a[b],e=c,f=this.o;f[d]||(f[d]=[]);f[d].push(e)}};var O$=function(a,c){a=a.o[c];for(var b=0;a&&b<a.length;b++)a[b](c)};N$.prototype.Za=function(){Zt(Fc(this.h),this.T);this.h={};this.f=[];this.g=[];this.j=[];this.b=[];this.o={};this.L=!0};N$.prototype.w=function(){return this.L};$B=function(){return new N$};var U$=function(a){gj.call(this,a);this.ya=new MB;yea(this.ya);kna(this.ya);C4(this.ya,function(c){return new T3(c)});Ooa(this.ya);this.h=this.s=this.w=this.o=null;this.F=bx()};q(U$,gj);h=U$.prototype;h.Ag=function(){vra(this);am(this)};h.Ea=function(){throw Error("not implemented");};h.jb=function(){return[{lastSessionId:this.h}]};h.ib=function(){var a=Yl(this);a&&a.lastSessionId&&(this.h=a.lastSessionId)};
h.Fj=function(){var a=this;return this.h||this.b?new Promise(function(c,b){setTimeout(b,5E3);var d=function(){a.w.then(function(){a.h?(a.h=null,c()):b(Error("No session to upload"))})},e=a.b;e?(e.b?Yma(e.b):Promise.reject(Error("no call in the session"))).then(function(){c()},d):a.h?d():b(Error("No session to upload"))}):Promise.reject(Error("No session to upload"))};h.vi=function(a){a.b?(a=a.b,a=a.b?a.b.Bj():null):a=null;this.h=a;return Promise.resolve()};
h.xh=function(a,c){a=new X3(c,this.ya,this.w);this.o=a.o.bind(a);return a};h.dh=function(){V3(0)};h.Yg=function(){V3(1)};h.Zg=function(){Bb("MediaRouter.Hangouts.Session.End")};h.ah=function(a){Cb("MediaRouter.Hangouts.Start.Failure",a,ui)};h.bh=function(){Bb("MediaRouter.Hangouts.Stream.End")};h.createMediaRouteController=function(a,c,b){var d=this.b;return d?d.f.id!=a?Promise.reject(Error("Route ID mismatch")):d.createMediaRouteController(c,b):Promise.reject(Error("Mirror session does not exist"))};
h.gr=function(a){this.o&&this.o(a)};h.Hl=function(){var a="v1";.1>Math.random()&&(a+="_preprod");return a};
var vra=function(a){var c=new kP(new FV,new Y3(a.gr.bind(a)));c=new pP(c,"hangouts",a.Hl(),"","https://www.googleapis.com",a.F);c=new kT(c);S(c,1,39);S(c,5,158);S(c,2,"castouts");S(c,3,"castouts");UG(c,chrome.runtime.id+chrome.runtime.getManifest().version);c.s("castouts",!0);var b=.01;"google.com"==Kt(cx(ax.Ja()))&&(b=1);S(c,9,b);S(c,10,"https://hangouts.google.com/hangouts/_/logpref");S(c,11,"https://clients2.google.com/cr/report");c.register(a.ya);a.w=new Promise(function(d,e){a.s=a.ya.get(GD);
a.s.initialize().then(d,e)})};var V$=function(){U$.call(this,"hangouts")};q(V$,U$);V$.prototype.Ea=function(){return"HangoutsService"};var wra=new V$;Xi("mr.mirror.hangouts.HangoutsService",wra);var W$=function(){U$.call(this,"meetings");this.j=null};q(W$,U$);W$.prototype.Ea=function(){return"MeetingsService"};W$.prototype.Hl=function(){return"v1_meetings"};var X$=function(a){null==a.j&&(a.j=new cma(a.ya),a2(a.j.f,poa(function(){return Xu(cx(ax.Ja()).getAuthToken())})));return a.j};W$.prototype.tc=function(a){return Promise.resolve(j3(X$(this),a.input).then(function(c){return c.tc()}))};W$.prototype.Ag=function(){U$.prototype.Ag.call(this);var a=X$(this);this.ya.registerService(jP,a)};
var xra=new W$;Xi("mr.mirror.hangouts.MeetingsService",xra);
