'use strict';var d,aa="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global?global:this,ba={},ca=function(a,b){(ba[a]=ba[a]||[]).push(b);var c=aa;a=a.split(".");for(var e=0;e<a.length-1&&c;e++)c=c[a[e]];a=a[a.length-1];c&&c[a]instanceof Function&&(c[a]=b(c[a]))},da=function(){da=function(){};if(!aa.Symbol){aa.Symbol=ea;var a=[],b=function(b){return function(e){a=[];e=b(e);for(var f=[],g=0,k=e.length;g<k;g++){var n;a:if(n=e[g],14>n.length)n=!1;else{for(var v=0;14>v;v++)if(n[v]!=
"jscomp_symbol_"[v]){n=!1;break a}n=!0}n?a.push(e[g]):f.push(e[g])}return f}};ca("Object.keys",b);ca("Object.getOwnPropertyNames",b);ca("Object.getOwnPropertySymbols",function(c){return function(e){b.Kqa=Object.getOwnPropertyNames(e);a.push.apply(c(e));return a}})}},fa=0,ea=function(a){return"jscomp_symbol_"+a+fa++},ga=function(){da();aa.Symbol.iterator||(aa.Symbol.iterator=aa.Symbol("iterator"));ga=function(){}},ha=function(a){ga();da();ga();var b=a[Symbol.iterator];if(b)return b.call(a);var c=0;
return{next:function(){return c<a.length?{done:!1,value:a[c++]}:{done:!0}}}},ia=function(a){if(!(a instanceof Array)){a=ha(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a},ja=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""},ka="function"==typeof Object.defineProperties?Object.defineProperty:
function(a,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ma=function(a,b){if(b){for(var c=aa,e=a.split("."),f=0;f<e.length-1;f++){var g=e[f];g in c||(c[g]={});c=c[g]}e=e[e.length-1];f=c[e];b=b(f);if(b!=f){a=ba[a]||[];for(f=0;f<a.length;f++)b=a[f](b);ka(c,e,{configurable:!0,writable:!0,value:b})}}};
ma("String.prototype.repeat",function(a){return a?a:function(a){var c=ja(this,null,"repeat");if(0>a||1342177279<a)throw new RangeError("Invalid count value");a|=0;for(var e="";a;)if(a&1&&(e+=c),a>>>=1)c+=c;return e}},"es6-impl","es3");ma("Math.sign",function(a){return a?a:function(a){a=Number(a);return 0===a||isNaN(a)?a:0<a?1:-1}},"es6-impl","es3");
var na=function(a,b){ga();a instanceof String&&(a+="");var c=0,e={next:function(){if(c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}e.next=function(){return{done:!0,value:void 0}};return e.next()}};e[Symbol.iterator]=function(){return e};return e};ma("Array.prototype.keys",function(a){return a?a:function(){return na(this,function(a){return a})}},"es6-impl","es3");
ma("String.prototype.startsWith",function(a){return a?a:function(a,c){var e=ja(this,a,"startsWith");a+="";var f=e.length,g=a.length;c=Math.max(0,Math.min(c|0,e.length));for(var k=0;k<g&&c<f;)if(e[c++]!=a[k++])return!1;return k>=g}},"es6-impl","es3");var oa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
ma("WeakMap",function(a){function b(a){if(!oa(a,f)){var b={};b[f]=g;ka(a,f,{value:b})}}function c(a){return function(b){var c=a(b);if(oa(b,f)&&oa(b[f],f)&&b[f][f]===g)for(b=0;b<c.length;b++)if(c[b]==f){c.splice(b,1);break}return c}}function e(a){return function(c){b(c);return a(c)}}if(function(){if(!a||!Object.seal)return!1;var b=Object.seal({}),c=Object.seal({}),e=new a([[b,2],[c,3]]);if(2!=e.get(b)||3!=e.get(c))return!1;e.delete(b);e.set(c,4);return!e.has(b)&&4==e.get(c)}())return a;var f="$jscomp_hidden_"+
Math.random().toString().substring(2),g={};ca("Object.getOwnPropertyNames",c);ca("Object.keys",c);ca("Reflect.enumerate",c);ca("Reflect.ownKeys",c);ca("Object.freeze",e);ca("Object.preventExtensions",e);ca("Object.seal",e);var k=0,n=function(a){this.Tb=(k+=Math.random()+1).toString();if(a){da();ga();a=ha(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};n.prototype.set=function(a,c){b(a);if(!oa(a,f))throw Error("WeakMap key fail: "+a);a[f][this.Tb]=c;return this};n.prototype.get=function(a){return oa(a,
f)?a[f][this.Tb]:void 0};n.prototype.has=function(a){return oa(a,f)&&oa(a[f],this.Tb)};n.prototype.delete=function(a){return oa(a,f)&&oa(a[f],this.Tb)?delete a[f][this.Tb]:!1};return n},"es6-impl","es3");
ma("Map",function(a){if(function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),c=new a(ha([[b,"s"]]));if("s"!=c.get(b)||1!=c.size||c.get({x:4})||c.set({x:4},"t")!=c||2!=c.size)return!1;var e=c.entries(),f=e.next();if(f.done||f.value[0]!=b||"s"!=f.value[1])return!1;f=e.next();return f.done||4!=f.value[0].x||"t"!=f.value[1]||!e.next().done?!1:!0}catch(g){return!1}}())return a;da();ga();var b=new WeakMap,c=function(a){this.Ee={};this.Kc=g();this.size=
0;if(a){a=ha(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};c.prototype.set=function(a,b){var c=e(this,a);c.list||(c.list=this.Ee[c.id]=[]);c.entry?c.entry.value=b:(c.entry={next:this.Kc,Mf:this.Kc.Mf,head:this.Kc,key:a,value:b},c.list.push(c.entry),this.Kc.Mf.next=c.entry,this.Kc.Mf=c.entry,this.size++);return this};c.prototype.delete=function(a){a=e(this,a);return a.entry&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.Ee[a.id],a.entry.Mf.next=a.entry.next,a.entry.next.Mf=
a.entry.Mf,a.entry.head=null,this.size--,!0):!1};c.prototype.clear=function(){this.Ee={};this.Kc=this.Kc.Mf=g();this.size=0};c.prototype.has=function(a){return!!e(this,a).entry};c.prototype.get=function(a){return(a=e(this,a).entry)&&a.value};c.prototype.entries=function(){return f(this,function(a){return[a.key,a.value]})};c.prototype.keys=function(){return f(this,function(a){return a.key})};c.prototype.values=function(){return f(this,function(a){return a.value})};c.prototype.forEach=function(a,b){for(var c=
this.entries(),e;!(e=c.next()).done;)e=e.value,a.call(b,e[1],e[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var e=function(a,c){var e;e=c&&typeof c;"object"==e||"function"==e?b.has(c)?e=b.get(c):(e=""+ ++k,b.set(c,e)):e="p_"+c;var f=a.Ee[e];if(f&&oa(a.Ee,e))for(a=0;a<f.length;a++){var g=f[a];if(c!==c&&g.key!==g.key||c===g.key)return{id:e,list:f,index:a,entry:g}}return{id:e,list:f,index:-1,entry:void 0}},f=function(a,b){var c=a.Kc,e={next:function(){if(c){for(;c.head!=a.Kc;)c=c.Mf;for(;c.next!=
c.head;)return c=c.next,{done:!1,value:b(c)};c=null}return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e},g=function(){var a={};return a.Mf=a.next=a.head=a},k=0;return c},"es6-impl","es3");
ma("Array.from",function(a){return a?a:function(a,c,e){ga();c=null!=c?c:function(a){return a};var f=[],g=a[Symbol.iterator];if("function"==typeof g)for(a=g.call(a);!(g=a.next()).done;)f.push(c.call(e,g.value));else for(var g=a.length,k=0;k<g;k++)f.push(c.call(e,a[k]));return f}},"es6-impl","es3");ma("Array.prototype.values",function(a){return a?a:function(){return na(this,function(a,c){return c})}},"es6","es3");
ma("Set",function(a){if(function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),e=new a(ha([b]));if(!e.has(b)||1!=e.size||e.add(b)!=e||1!=e.size||e.add({x:4})!=e||2!=e.size)return!1;var f=e.entries(),g=f.next();if(g.done||g.value[0]!=b||g.value[1]!=b)return!1;g=f.next();return g.done||g.value[0]==b||4!=g.value[0].x||g.value[1]!=g.value[0]?!1:f.next().done}catch(k){return!1}}())return a;da();ga();var b=function(a){this.ia=new Map;if(a){a=ha(a);for(var b;!(b=
a.next()).done;)this.add(b.value)}this.size=this.ia.size};b.prototype.add=function(a){this.ia.set(a,a);this.size=this.ia.size;return this};b.prototype.delete=function(a){a=this.ia.delete(a);this.size=this.ia.size;return a};b.prototype.clear=function(){this.ia.clear();this.size=0};b.prototype.has=function(a){return this.ia.has(a)};b.prototype.entries=function(){return this.ia.entries()};b.prototype[Symbol.iterator]=function(){return this.ia.values()};b.prototype.values=function(){return this.ia.values()};
b.prototype.forEach=function(a,b){var f=this;this.ia.forEach(function(g){return a.call(b,g,g,f)})};return b},"es6-impl","es3");ma("Array.prototype.find",function(a){return a?a:function(a,c){a:{var e=this;e instanceof String&&(e=String(e));for(var f=e.length,g=0;g<f;g++){var k=e[g];if(a.call(c,k,g,e)){a=k;break a}}a=void 0}return a}},"es6-impl","es3");ma("Array.prototype.entries",function(a){return a?a:function(){return na(this,function(a,c){return[a,c]})}},"es6-impl","es3");
var pa=pa||{},h=this,l=function(a){return void 0!==a},m=function(a,b,c){a=a.split(".");c=c||h;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)!a.length&&l(b)?c[e]=b:c=c[e]?c[e]:c[e]={}},qa=function(a,b){a=a.split(".");b=b||h;for(var c;c=a.shift();)if(null!=b[c])b=b[c];else return null;return b},p=function(){},ra=function(a){a.M=function(){return a.tG?a.tG:a.tG=new a}},sa=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof
Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},
ta=function(a){return null===a},ua=function(a){return"array"==sa(a)},va=function(a){var b=sa(a);return"array"==b||"object"==b&&"number"==typeof a.length},q=function(a){return"string"==typeof a},r=function(a){return"number"==typeof a},wa=function(a){return"function"==sa(a)},xa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},ya="closure_uid_"+(1E9*Math.random()>>>0),za=0,Aa=function(a,b,c){return a.call.apply(a.bind,arguments)},Ba=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var e=
Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,e);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},t=function(a,b,c){t=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Aa:Ba;return t.apply(null,arguments)},Ca=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}},u=
Date.now||function(){return+new Date},w=function(a,b){function c(){}c.prototype=b.prototype;a.R=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Xga=function(a,c,g){for(var k=Array(arguments.length-2),n=2;n<arguments.length;n++)k[n-2]=arguments[n];return b.prototype[c].apply(a,k)}};var chrome=chrome||window.chrome||{};chrome.cast=chrome.cast||{};chrome.cast.media=chrome.cast.media||{};var Da=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Da);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};w(Da,Error);Da.prototype.name="CustomError";var Ea=function(a,b){return 0==a.lastIndexOf(b,0)},Fa=function(a,b){for(var c=a.split("%s"),e="",f=Array.prototype.slice.call(arguments,1);f.length&&1<c.length;)e+=c.shift()+f.shift();return e+c.join("%s")},Ga=function(a){return/^[\s\xa0]*$/.test(a)},Ha=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ia=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1},Ja=/&/g,Ka=/</g,La=/>/g,Ma=/"/g,Na=/'/g,Oa=/\x00/g,
Pa=/[\x00&<>"']/,Ra=function(a,b){var c={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},e;e=b?b.createElement("div"):h.document.createElement("div");return a.replace(Qa,function(a,b){var k=c[a];if(k)return k;"#"==b.charAt(0)&&(b=Number("0"+b.substr(1)),isNaN(b)||(k=String.fromCharCode(b)));k||(e.innerHTML=a+" ",k=e.firstChild.nodeValue.slice(0,-1));return c[a]=k})},Sa=function(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';
default:return"#"!=c.charAt(0)||(c=Number("0"+c.substr(1)),isNaN(c))?a:String.fromCharCode(c)}})},Qa=/&([^;\s<&]+);?/g,Ta=function(a){return null==a?"":String(a)},Ua=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^u()).toString(36)},Wa=function(a,b){var c=0;a=Ha(String(a)).split(".");b=Ha(String(b)).split(".");for(var e=Math.max(a.length,b.length),f=0;0==c&&f<e;f++){var g=a[f]||"",k=b[f]||"",n=/(\d*)(\D*)/g,v=/(\d*)(\D*)/g;do{var A=
n.exec(g)||["","",""],M=v.exec(k)||["","",""];if(0==A[0].length&&0==M[0].length)break;c=Va(0==A[1].length?0:parseInt(A[1],10),0==M[1].length?0:parseInt(M[1],10))||Va(0==A[2].length,0==M[2].length)||Va(A[2],M[2])}while(0==c)}return c},Va=function(a,b){return a<b?-1:a>b?1:0},Xa=function(a){var b=Number(a);return 0==b&&Ga(a)?NaN:b},Ya=function(a,b,c){a=a.split(b);for(var e=[];0<c&&a.length;)e.push(a.shift()),c--;a.length&&e.push(a.join(b));return e};var Za=function(a,b){b.unshift(a);Da.call(this,Fa.apply(null,b));b.shift()};w(Za,Da);Za.prototype.name="AssertionError";var $a=function(a,b){throw new Za("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};var ab=function(a){return a[a.length-1]},bb=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(q(a))return q(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},cb=Array.prototype.lastIndexOf?function(a,b,c){return Array.prototype.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(q(a))return q(b)&&
1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},x=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=q(a)?a.split(""):a,g=0;g<e;g++)g in f&&b.call(c,f[g],g,a)},db=function(a,b,c){for(var e=q(a)?a.split(""):a,f=a.length-1;0<=f;--f)f in e&&b.call(c,e[f],f,a)},eb=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=[],g=0,k=q(a)?a.split(""):
a,n=0;n<e;n++)if(n in k){var v=k[n];b.call(c,v,n,a)&&(f[g++]=v)}return f},fb=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=Array(e),g=q(a)?a.split(""):a,k=0;k<e;k++)k in g&&(f[k]=b.call(c,g[k],k,a));return f},gb=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=q(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&b.call(c,f[g],g,a))return!0;return!1},hb=Array.prototype.every?function(a,
b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=q(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&!b.call(c,f[g],g,a))return!1;return!0},jb=function(a,b,c){b=ib(a,b,c);return 0>b?null:q(a)?a.charAt(b):a[b]},ib=function(a,b,c){for(var e=a.length,f=q(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&b.call(c,f[g],g,a))return g;return-1},kb=function(a,b,c){a:{for(var e=q(a)?a.split(""):a,f=a.length-1;0<=f;f--)if(f in e&&b.call(c,e[f],f,a)){b=f;break a}b=-1}return 0>b?null:q(a)?a.charAt(b):
a[b]},lb=function(a,b){return 0<=bb(a,b)},mb=function(a){if(!ua(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},ob=function(a,b,c){var e;2==arguments.length||0>(e=bb(a,c))?a.push(b):nb(a,e,0,b)},qb=function(a,b){b=bb(a,b);var c;(c=0<=b)&&pb(a,b);return c},pb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length},rb=function(a,b,c){b=ib(a,b,c);return 0<=b?(pb(a,b),!0):!1},sb=function(a,b,c){var e=0;db(a,function(f,g){b.call(c,f,g,a)&&pb(a,g)&&e++});return e},tb=function(a){return Array.prototype.concat.apply(Array.prototype,
arguments)},ub=function(a){var b=a.length;if(0<b){for(var c=Array(b),e=0;e<b;e++)c[e]=a[e];return c}return[]},vb=function(a,b){for(var c=1;c<arguments.length;c++){var e=arguments[c];if(va(e)){var f=a.length||0,g=e.length||0;a.length=f+g;for(var k=0;k<g;k++)a[f+k]=e[k]}else a.push(e)}},nb=function(a,b,c,e){return Array.prototype.splice.apply(a,wb(arguments,1))},wb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},yb=function(a,b){a.sort(b||
xb)},zb=function(a,b,c){var e=c||xb;yb(a,function(a,c){return e(b(a),b(c))})},Bb=function(a,b,c){zb(a,function(a){return a[b]},c)},Db=function(a,b,c){if(!va(a)||!va(b)||a.length!=b.length)return!1;var e=a.length;c=c||Cb;for(var f=0;f<e;f++)if(!c(a[f],b[f]))return!1;return!0},xb=function(a,b){return a>b?1:a<b?-1:0},Cb=function(a,b){return a===b},Eb=function(a,b,c){for(var e={},f=0;f<a.length;f++){var g=a[f],k=b.call(c,g,f,a);l(k)&&(e[k]||(e[k]=[])).push(g)}return e},Fb=function(a,b,c){var e={};x(a,
function(f,g){e[b.call(c,f,g,a)]=f});return e};var Gb=function(a,b,c){for(var e in a)b.call(c,a[e],e,a)},Hb=function(a,b,c){for(var e in a)if(b.call(c,a[e],e,a))return!0;return!1},Ib=function(a){var b=[],c=0,e;for(e in a)b[c++]=a[e];return b},Jb=function(a){var b=[],c=0,e;for(e in a)b[c++]=e;return b},Kb=function(a,b){return null!==a&&b in a},Lb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},Mb=function(a,b,c){for(var e in a)if(b.call(c,a[e],e,a))return e},Nb=function(a){for(var b in a)return!1;return!0},Ob=function(a){var b={},c;
for(c in a)b[c]=a[c];return b},Rb=function(a){var b={},c;for(c in a)b[a[c]]=c;return b},Sb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Tb=function(a,b){for(var c,e,f=1;f<arguments.length;f++){e=arguments[f];for(c in e)a[c]=e[c];for(var g=0;g<Sb.length;g++)c=Sb[g],Object.prototype.hasOwnProperty.call(e,c)&&(a[c]=e[c])}};var Ub=/<[^>]*>|&[^;]+;/g,Vb=function(a,b){return b?a.replace(Ub,""):a},Wb=/[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,Xb=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]/,Yb=/^http:\/\/.*/,Zb=/\s+/,$b=/[\d\u06f0-\u06f9]/;var ac;a:{var bc=h.navigator;if(bc){var cc=bc.userAgent;if(cc){ac=cc;break a}}ac=""}var y=function(a){return-1!=ac.indexOf(a)};var dc=function(){return(y("Chrome")||y("CriOS"))&&!y("Edge")};var fc=function(){this.Tz="";this.sO=ec};fc.prototype.Fk=!0;fc.prototype.toString=function(){return"Const{"+this.Tz+"}"};var ec={};var hc=function(){this.VI="";this.oO=gc};hc.prototype.Fk=!0;var gc={};hc.prototype.toString=function(){return"SafeStyle{"+this.VI+"}"};var ic=function(a){if(a instanceof hc&&a.constructor===hc&&a.oO===gc)return a.VI;$a("expected object of type SafeStyle, got '"+a+"' of type "+sa(a));return"type_error:SafeStyle"};var kc=function(){this.Tn="";this.pO=jc};kc.prototype.Fk=!0;kc.prototype.ed=function(){return 1};kc.prototype.toString=function(){return"SafeUrl{"+this.Tn+"}"};var lc=function(a){if(a instanceof kc&&a.constructor===kc&&a.pO===jc)return a.Tn;$a("expected object of type SafeUrl, got '"+a+"' of type "+sa(a));return"type_error:SafeUrl"},jc={};var nc=function(){this.oy="";this.xO=mc};nc.prototype.Fk=!0;nc.prototype.ed=function(){return 1};nc.prototype.toString=function(){return"TrustedResourceUrl{"+this.oy+"}"};var oc=function(a){if(a instanceof nc&&a.constructor===nc&&a.xO===mc)return a.oy;$a("expected object of type TrustedResourceUrl, got '"+a+"' of type "+sa(a));return"type_error:TrustedResourceUrl"},mc={};var qc=function(){this.Tn="";this.mO=pc;this.Xd=null};qc.prototype.ed=function(){return this.Xd};qc.prototype.Fk=!0;qc.prototype.toString=function(){return"SafeHtml{"+this.Tn+"}"};var rc=function(a){if(a instanceof qc&&a.constructor===qc&&a.mO===pc)return a.Tn;$a("expected object of type SafeHtml, got '"+a+"' of type "+sa(a));return"type_error:SafeHtml"},pc={};var tc=function(){this.UI="";this.nO=sc};tc.prototype.Fk=!0;var sc={};tc.prototype.toString=function(){return"SafeScript{"+this.UI+"}"};var uc=function(a){if(a instanceof tc&&a.constructor===tc&&a.nO===sc)return a.UI;$a("expected object of type SafeScript, got '"+a+"' of type "+sa(a));return"type_error:SafeScript"};var vc=function(a){return function(){return a}},wc=vc(!0),xc=function(a){return a},yc=function(a){return function(){return!a.apply(this,arguments)}};var zc="StopIteration"in h?h.StopIteration:{message:"StopIteration",stack:""},Ac=function(){};Ac.prototype.next=function(){throw zc;};Ac.prototype.Sd=function(){return this};
var Bc=function(a){if(a instanceof Ac)return a;if("function"==typeof a.Sd)return a.Sd(!1);if(va(a)){var b=0,c=new Ac;c.next=function(){for(;;){if(b>=a.length)throw zc;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},Cc=function(a,b,c){if(va(a))try{x(a,b,c)}catch(e){if(e!==zc)throw e;}else{a=Bc(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==zc)throw e;}}},Dc=function(a,b,c){a=Bc(a);try{for(;;)if(b.call(c,a.next(),void 0,a))return!0}catch(e){if(e!==zc)throw e;}return!1},
Ec=function(a){if(va(a))return ub(a);a=Bc(a);var b=[];Cc(a,function(a){b.push(a)});return b};var z=function(a,b){this.ia={};this.Aa=[];this.rj=this.Qa=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var e=0;e<c;e+=2)this.set(arguments[e],arguments[e+1])}else a&&this.addAll(a)};d=z.prototype;d.P=function(){return this.Qa};d.B=function(){this.Ij();for(var a=[],b=0;b<this.Aa.length;b++)a.push(this.ia[this.Aa[b]]);return a};d.ob=function(){this.Ij();return this.Aa.concat()};d.ab=function(a){return Fc(this.ia,a)};
d.Oj=function(a){for(var b=0;b<this.Aa.length;b++){var c=this.Aa[b];if(Fc(this.ia,c)&&this.ia[c]==a)return!0}return!1};d.equals=function(a,b){if(this===a)return!0;if(this.Qa!=a.P())return!1;b=b||Gc;this.Ij();for(var c,e=0;c=this.Aa[e];e++)if(!b(this.get(c),a.get(c)))return!1;return!0};var Gc=function(a,b){return a===b};d=z.prototype;d.Gb=function(){return 0==this.Qa};d.clear=function(){this.ia={};this.rj=this.Qa=this.Aa.length=0};
d.remove=function(a){return Fc(this.ia,a)?(delete this.ia[a],this.Qa--,this.rj++,this.Aa.length>2*this.Qa&&this.Ij(),!0):!1};d.Ij=function(){if(this.Qa!=this.Aa.length){for(var a=0,b=0;a<this.Aa.length;){var c=this.Aa[a];Fc(this.ia,c)&&(this.Aa[b++]=c);a++}this.Aa.length=b}if(this.Qa!=this.Aa.length){for(var e={},b=a=0;a<this.Aa.length;)c=this.Aa[a],Fc(e,c)||(this.Aa[b++]=c,e[c]=1),a++;this.Aa.length=b}};d.get=function(a,b){return Fc(this.ia,a)?this.ia[a]:b};
d.set=function(a,b){Fc(this.ia,a)||(this.Qa++,this.Aa.push(a),this.rj++);this.ia[a]=b};d.addAll=function(a){var b;a instanceof z?(b=a.ob(),a=a.B()):(b=Jb(a),a=Ib(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};d.forEach=function(a,b){for(var c=this.ob(),e=0;e<c.length;e++){var f=c[e],g=this.get(f);a.call(b,g,f,this)}};d.clone=function(){return new z(this)};d.b=function(){this.Ij();for(var a={},b=0;b<this.Aa.length;b++){var c=this.Aa[b];a[c]=this.ia[c]}return a};d.xE=function(){return this.Sd(!0)};
d.Aw=function(){return this.Sd(!1)};d.Sd=function(a){this.Ij();var b=0,c=this.rj,e=this,f=new Ac;f.next=function(){if(c!=e.rj)throw Error("The map has changed since the iterator was created");if(b>=e.Aa.length)throw zc;var f=e.Aa[b++];return a?f:e.ia[f]};return f};var Fc=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Hc=function(a){if(a.P&&"function"==typeof a.P)a=a.P();else if(va(a)||q(a))a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},Ic=function(a){if(a.B&&"function"==typeof a.B)return a.B();if(q(a))return a.split("");if(va(a)){for(var b=[],c=a.length,e=0;e<c;e++)b.push(a[e]);return b}return Ib(a)},Jc=function(a){if(a.ob&&"function"==typeof a.ob)return a.ob();if(!a.B||"function"!=typeof a.B){if(va(a)||q(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Jb(a)}},Kc=function(a){return a.Gb&&
"function"==typeof a.Gb?a.Gb():va(a)||q(a)?0==a.length:Nb(a)},Lc=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(va(a)||q(a))x(a,b,c);else for(var e=Jc(a),f=Ic(a),g=f.length,k=0;k<g;k++)b.call(c,f[k],e&&e[k],a)},Mc=function(a,b,c){if("function"==typeof a.map)return a.map(b,c);if(va(a)||q(a))return fb(a,b,c);var e,f=Jc(a),g=Ic(a),k=g.length;if(f){e={};for(var n=0;n<k;n++)e[f[n]]=b.call(c,g[n],f[n],a)}else for(e=[],n=0;n<k;n++)e[n]=b.call(c,g[n],void 0,a);return e},
Nc=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(va(a)||q(a))return hb(a,b,c);for(var e=Jc(a),f=Ic(a),g=f.length,k=0;k<g;k++)if(!b.call(c,f[k],e&&e[k],a))return!1;return!0};var Oc=function(a){this.ia=new z;a&&this.addAll(a)},Pc=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[ya]||(a[ya]=++za)):b.substr(0,1)+a};d=Oc.prototype;d.P=function(){return this.ia.P()};d.add=function(a){this.ia.set(Pc(a),a)};d.addAll=function(a){a=Ic(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])};d.removeAll=function(a){a=Ic(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};d.remove=function(a){return this.ia.remove(Pc(a))};d.clear=function(){this.ia.clear()};
d.Gb=function(){return this.ia.Gb()};d.contains=function(a){return this.ia.ab(Pc(a))};d.B=function(){return this.ia.B()};d.clone=function(){return new Oc(this)};d.equals=function(a){return this.P()==Hc(a)&&this.or(a)};d.or=function(a){var b=Hc(a);if(this.P()>b)return!1;!(a instanceof Oc)&&5<b&&(a=new Oc(a));return Nc(this,function(b){var e=a;return e.contains&&"function"==typeof e.contains?e.contains(b):e.Oj&&"function"==typeof e.Oj?e.Oj(b):va(e)||q(e)?lb(e,b):Lb(e,b)})};d.Sd=function(){return this.ia.Sd(!1)};var Qc=function(){return y("iPhone")&&!y("iPod")&&!y("iPad")};var Rc=function(){return h.navigator||null},Sc=y("Opera"),Tc=y("Trident")||y("MSIE"),Uc=y("Edge"),Vc=y("Gecko")&&!(-1!=ac.toLowerCase().indexOf("webkit")&&!y("Edge"))&&!(y("Trident")||y("MSIE"))&&!y("Edge"),Wc=-1!=ac.toLowerCase().indexOf("webkit")&&!y("Edge"),Xc=Wc&&y("Mobile"),Yc=Rc(),Zc=Yc&&Yc.platform||"",$c=y("Macintosh"),ad=y("Windows"),bd=y("Linux")||y("CrOS"),cd=y("Android"),dd=Qc(),ed=y("iPad"),fd=y("iPod"),gd=function(){var a=h.document;return a?a.documentMode:void 0},hd;
a:{var id="",jd=function(){var a=ac;if(Vc)return/rv\:([^\);]+)(\)|;)/.exec(a);if(Uc)return/Edge\/([\d\.]+)/.exec(a);if(Tc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Wc)return/WebKit\/(\S+)/.exec(a);if(Sc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();jd&&(id=jd?jd[1]:"");if(Tc){var kd=gd();if(null!=kd&&kd>parseFloat(id)){hd=String(kd);break a}}hd=id}var ld=hd,nd={},od=function(a){return nd[a]||(nd[a]=0<=Wa(ld,a))},pd=h.document,qd=pd&&Tc?gd()||("CSS1Compat"==pd.compatMode?parseInt(ld,10):5):void 0;var rd=function(a,b,c){c=c||h;var e=c.onerror,f=!!b;Wc&&!od("535.3")&&(f=!f);c.onerror=function(b,c,n,v,A){e&&e(b,c,n,v,A);a({message:b,fileName:c,M_:n,iia:v,error:A});return f}},sd=function(a){for(var b=[],c=0;c<a.length;c++)ua(a[c])?b.push(sd(a[c])):b.push(a[c]);return"[ "+b.join(", ")+" ]"},td=function(a){var b;b=Error();if(Error.captureStackTrace)Error.captureStackTrace(b,td),b=String(b.stack);else{try{throw b;}catch(f){b=f}b=(b=b.stack)?String(b):null}if(b)return b;b=[];for(var c=arguments.callee.caller,
e=0;c&&(!a||e<a);){b.push(ud(c));b.push("()\n");try{c=c.caller}catch(f){b.push("[exception trying to get caller]\n");break}e++;if(50<=e){b.push("[...long stack...]");break}}a&&e>=a?b.push("[...reached max depth limit...]"):b.push("[end]");return b.join("")},ud=function(a){if(vd[a])return vd[a];a=String(a);if(!vd[a]){var b=/function ([^\(]+)/.exec(a);vd[a]=b?b[1]:"[Anonymous]"}return vd[a]},vd={};var wd=function(a,b,c,e,f){this.reset(a,b,c,e,f)};wd.prototype.Yi=0;wd.prototype.gq=null;var xd=0;wd.prototype.reset=function(a,b,c,e,f){this.Yi="number"==typeof f?f:xd++;this.lM=e||u();this.ri=a;this.M0=b;this.nH=c;delete this.gq};wd.prototype.Y7=function(a){this.gq=a};wd.prototype.Bl=function(a){this.ri=a};wd.prototype.getMessage=function(){return this.M0};var yd=function(a){this.Hb=a;this.Ak=this.Gu=this.ri=this.Jb=null},zd=function(a,b){this.name=a;this.value=b};zd.prototype.toString=function(){return this.name};var Ad=new zd("OFF",Infinity),Bd=new zd("SHOUT",1200),Cd=new zd("SEVERE",1E3),Dd=new zd("WARNING",900),Ed=new zd("INFO",800),Fd=new zd("CONFIG",700),Gd=new zd("FINE",500),Hd=new zd("FINER",400),Id=new zd("ALL",0);d=yd.prototype;d.getName=function(){return this.Hb};d.XA=function(a){this.Ak||(this.Ak=[]);this.Ak.push(a)};
d.i5=function(a){var b=this.Ak;return!!b&&qb(b,a)};d.getParent=function(){return this.Jb};d.getChildren=function(){this.Gu||(this.Gu={});return this.Gu};d.Bl=function(a){this.ri=a};d.hE=function(){if(this.ri)return this.ri;if(this.Jb)return this.Jb.hE();$a("Root logger has no level set.");return null};d.CG=function(a){return a.value>=this.hE().value};d.log=function(a,b,c){this.CG(a)&&(wa(b)&&(b=b()),this.XR(this.FV(a,b,c)))};d.FV=function(a,b,c){a=new wd(a,String(b),this.Hb);c&&a.Y7(c);return a};
d.Rs=function(a,b){this.log(Cd,a,b)};d.ha=function(a,b){this.log(Dd,a,b)};d.info=function(a,b){this.log(Ed,a,b)};d.config=function(a,b){this.log(Fd,a,b)};d.Sa=function(a,b){this.log(Gd,a,b)};d.nD=function(a,b){this.log(Hd,a,b)};d.XR=function(a){var b="log:"+a.getMessage();h.console&&(h.console.timeStamp?h.console.timeStamp(b):h.console.markTimeline&&h.console.markTimeline(b));h.msWriteProfilerMark&&h.msWriteProfilerMark(b);for(b=this;b;)b.fQ(a),b=b.getParent()};
d.fQ=function(a){if(this.Ak)for(var b=0,c;c=this.Ak[b];b++)c(a)};d.s9=function(a){this.Jb=a};d.RO=function(a,b){this.getChildren()[a]=b};var Jd={},Kd=null,Ld=function(){Kd||(Kd=new yd(""),Jd[""]=Kd,Kd.Bl(Fd))},Md=function(){Ld();return Kd},Nd=function(a){Ld();var b;if(!(b=Jd[a])){b=new yd(a);var c=a.lastIndexOf("."),e=a.substr(c+1),c=Nd(a.substr(0,c));c.RO(e,b);b.s9(c);Jd[a]=b}return b},Od=function(a){return function(b){(a||Md()).Rs("Error: "+b.message+" ("+b.fileName+" @ Line: "+b.M_+")")}};var B=function(a,b){a=Nd(a);b&&a&&a.Bl(b);return a},Pd=function(a,b,c,e){a&&a.log(b,c,e)},C=function(a,b,c){a&&a.Rs(b,c)},D=function(a,b,c){a&&a.ha(b,c)},E=function(a,b,c){a&&a.info(b,c)},F=function(a,b,c){a&&a.Sa(b,c)};var Qd=function(a,b,c){this.L_=c;this.vR=a;this.Ry=b;this.Or=0;this.Kc=null};Qd.prototype.get=function(){var a;0<this.Or?(this.Or--,a=this.Kc,this.Kc=a.next,a.next=null):a=this.vR();return a};Qd.prototype.put=function(a){this.Ry(a);this.Or<this.L_&&(this.Or++,a.next=this.Kc,this.Kc=a)};var Rd=function(a){h.setTimeout(function(){throw a;},0)},Sd,Td=function(){var a=h.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!y("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),e="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,
a=t(function(a){if(("*"==e||a.origin==e)&&a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,e)}}});if("undefined"!==typeof a&&!y("Trident")&&!y("MSIE")){var b=new a,c={},e=c;b.port1.onmessage=function(){if(l(c.next)){c=c.next;var a=c.Ep;c.Ep=null;a()}};return function(a){e.next={Ep:a};e=e.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?
function(a){var b=document.createElement("SCRIPT");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){h.setTimeout(a,0)}};var Ud=function(){this.At=this.Zl=null},Wd=new Qd(function(){return new Vd},function(a){a.reset()},100);Ud.prototype.add=function(a,b){var c=this.cY();c.set(a,b);this.At?this.At.next=c:this.Zl=c;this.At=c};Ud.prototype.remove=function(){var a=null;this.Zl&&(a=this.Zl,this.Zl=this.Zl.next,this.Zl||(this.At=null),a.next=null);return a};Ud.prototype.a6=function(a){Wd.put(a)};Ud.prototype.cY=function(){return Wd.get()};var Vd=function(){this.next=this.scope=this.wv=null};
Vd.prototype.set=function(a,b){this.wv=a;this.scope=b;this.next=null};Vd.prototype.reset=function(){this.next=this.scope=this.wv=null};var ae=function(a,b){Xd||Yd();Zd||(Xd(),Zd=!0);$d.add(a,b)},Xd,Yd=function(){if(h.Promise&&h.Promise.resolve){var a=h.Promise.resolve(void 0);Xd=function(){a.then(be)}}else Xd=function(){var a=be;!wa(h.setImmediate)||h.Window&&h.Window.prototype&&!y("Edge")&&h.Window.prototype.setImmediate==h.setImmediate?(Sd||(Sd=Td()),Sd(a)):h.setImmediate(a)}},Zd=!1,$d=new Ud,be=function(){for(var a;a=$d.remove();){try{a.wv.call(a.scope)}catch(b){Rd(b)}$d.a6(a)}Zd=!1};var ce=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0},de=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var fe=function(a,b){this.C=0;this.Sf=void 0;this.Dj=this.mg=this.Jb=null;this.Vq=this.lv=!1;if(a!=p)try{var c=this;a.call(b,function(a){c.Si(2,a)},function(a){if(!(a instanceof ee))try{if(a instanceof Error)throw a;throw Error("Promise rejected.");}catch(b){}c.Si(3,a)})}catch(e){this.Si(3,e)}},ge=function(){this.next=this.context=this.cl=this.Jn=this.Ch=null;this.fm=!1};ge.prototype.reset=function(){this.context=this.cl=this.Jn=this.Ch=null;this.fm=!1};
var he=new Qd(function(){return new ge},function(a){a.reset()},100),ie=function(a,b,c){var e=he.get();e.Jn=a;e.cl=b;e.context=c;return e},G=function(a){if(a instanceof fe)return a;var b=new fe(p);b.Si(2,a);return b},H=function(a){return new fe(function(b,c){c(a)})},ke=function(a,b,c){je(a,b,c,null)||ae(Ca(b,a))},le=function(a){return new fe(function(b,c){var e=a.length,f=[];if(e)for(var g=function(a,c){e--;f[a]=c;0==e&&b(f)},k=function(a){c(a)},n=0,v;n<a.length;n++)v=a[n],ke(v,Ca(g,n),k);else b(f)})},
me=function(a){return new fe(function(b){var c=a.length,e=[];if(c)for(var f=function(a,f,g){c--;e[a]=f?{wD:!0,value:g}:{wD:!1,reason:g};0==c&&b(e)},g=0,k;g<a.length;g++)k=a[g],ke(k,Ca(f,g,!0),Ca(f,g,!1));else b(e)})},I=function(){var a,b,c=new fe(function(c,f){a=c;b=f});return new ne(c,a,b)};fe.prototype.then=function(a,b,c){return this.UA(wa(a)?a:null,wa(b)?b:null,c)};ce(fe);d=fe.prototype;d.Vaa=function(a,b,c){this.Tt(ie(a||p,b||null,c))};d.Gc=function(a,b){a=ie(a,a,b);a.fm=!0;this.Tt(a);return this};
d.va=function(a,b){return this.UA(null,a,b)};d.cancel=function(a){0==this.C&&ae(function(){var b=new ee(a);this.LB(b)},this)};d.LB=function(a){0==this.C&&(this.Jb?(this.Jb.mQ(this,a),this.Jb=null):this.Si(3,a))};d.mQ=function(a,b){if(this.mg){for(var c=0,e=null,f=null,g=this.mg;g&&(g.fm||(c++,g.Ch==a&&(e=g),!(e&&1<c)));g=g.next)e||(f=g);e&&(0==this.C&&1==c?this.LB(b):(f?this.g5(f):this.MI(),this.$C(e,3,b)))}};d.Tt=function(a){this.nZ()||2!=this.C&&3!=this.C||this.QJ();this.s4(a)};
d.UA=function(a,b,c){var e=ie(null,null,null);e.Ch=new fe(function(f,g){e.Jn=a?function(b){try{var e=a.call(c,b);f(e)}catch(v){g(v)}}:f;e.cl=b?function(a){try{var e=b.call(c,a);!l(e)&&a instanceof ee?g(a):f(e)}catch(v){g(v)}}:g});e.Ch.Jb=this;this.Tt(e);return e.Ch};d.lba=function(a){this.C=0;this.Si(2,a)};d.mba=function(a){this.C=0;this.Si(3,a)};
d.Si=function(a,b){0==this.C&&(this===b&&(a=3,b=new TypeError("Promise cannot resolve to itself")),this.C=1,je(b,this.lba,this.mba,this)||(this.Sf=b,this.C=a,this.Jb=null,this.QJ(),3!=a||b instanceof ee||oe(this,b)))};
var je=function(a,b,c,e){if(a instanceof fe)return a.Vaa(b,c,e),!0;if(de(a))return a.then(b,c,e),!0;if(xa(a))try{var f=a.then;if(wa(f))return pe(a,f,b,c,e),!0}catch(g){return c.call(e,g),!0}return!1},pe=function(a,b,c,e,f){var g=!1,k=function(a){g||(g=!0,c.call(f,a))},n=function(a){g||(g=!0,e.call(f,a))};try{b.call(a,k,n)}catch(v){n(v)}};d=fe.prototype;d.QJ=function(){this.lv||(this.lv=!0,ae(this.xS,this))};d.nZ=function(){return!!this.mg};
d.s4=function(a){this.Dj?this.Dj.next=a:this.mg=a;this.Dj=a};d.MI=function(){var a=null;this.mg&&(a=this.mg,this.mg=a.next,a.next=null);this.mg||(this.Dj=null);return a};d.g5=function(a){a.next==this.Dj&&(this.Dj=a);a.next=a.next.next};d.xS=function(){for(var a;a=this.MI();)this.$C(a,this.C,this.Sf);this.lv=!1};d.$C=function(a,b,c){3==b&&a.cl&&!a.fm&&this.u5();if(a.Ch)a.Ch.Jb=null,qe(a,b,c);else try{a.fm?a.Jn.call(a.context):qe(a,b,c)}catch(e){re.call(null,e)}he.put(a)};
var qe=function(a,b,c){2==b?a.Jn.call(a.context,c):a.cl&&a.cl.call(a.context,c)};fe.prototype.u5=function(){var a;for(a=this;a&&a.Vq;a=a.Jb)a.Vq=!1};var oe=function(a,b){a.Vq=!0;ae(function(){a.Vq&&re.call(null,b)})},re=Rd,ee=function(a){Da.call(this,a)};w(ee,Da);ee.prototype.name="cancel";var ne=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};var se=function(){this.ak=this.ak;this.Di=this.Di};d=se.prototype;d.ak=!1;d.isDisposed=function(){return this.ak};d.mb=function(){this.ak||(this.ak=!0,this.L())};d.ma=function(a){this.cB(Ca(te,a))};d.cB=function(a,b){this.ak?l(b)?a.call(b):a():(this.Di||(this.Di=[]),this.Di.push(l(b)?t(a,b):a))};d.L=function(){if(this.Di)for(;this.Di.length;)this.Di.shift()()};var te=function(a){a&&"function"==typeof a.mb&&a.mb()};var J=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.Ki=!1;this.GJ=!0};J.prototype.stopPropagation=function(){this.Ki=!0};J.prototype.preventDefault=function(){this.defaultPrevented=!0;this.GJ=!1};var ue=function(a){ue[" "](a);return a};ue[" "]=p;var ve=function(a,b){try{return ue(a[b]),!0}catch(c){}return!1};var we=!Tc||9<=Number(qd),xe=Tc&&!od("9");!Wc||od("528");Vc&&od("1.9b")||Tc&&od("8")||Sc&&od("9.5")||Wc&&od("528");Vc&&!od("8")||Tc&&od("9");var ye=function(a){return Wc?"webkit"+a:Sc?"o"+a.toLowerCase():a.toLowerCase()},ze=ye("AnimationStart"),Ae=ye("AnimationEnd"),Be=ye("AnimationIteration"),Ce=ye("TransitionEnd");var De=function(a,b){J.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.dk=this.state=null;a&&this.init(a,b)};w(De,J);
De.prototype.init=function(a,b){var c=this.type=a.type,e=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?Vc&&(ve(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;null===e?(this.offsetX=Wc||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=Wc||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:
a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.dk=a;a.defaultPrevented&&this.preventDefault()};
De.prototype.stopPropagation=function(){De.R.stopPropagation.call(this);this.dk.stopPropagation?this.dk.stopPropagation():this.dk.cancelBubble=!0};De.prototype.preventDefault=function(){De.R.preventDefault.call(this);var a=this.dk;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,xe)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Ee="closure_listenable_"+(1E6*Math.random()|0),Fe=function(a){return!(!a||!a[Ee])},Ge=0;var He=function(a,b,c,e,f,g){this.listener=a;this.proxy=b;this.src=c;this.type=e;this.capture=!!f;this.Ac=g;this.key=++Ge;this.removed=this.Bp=!1};He.prototype.Er=function(){this.removed=!0;this.Ac=this.src=this.proxy=this.listener=null};var Ie=function(a){this.src=a;this.pc={};this.Qo=0};d=Ie.prototype;d.add=function(a,b,c,e,f){var g=a.toString();a=this.pc[g];a||(a=this.pc[g]=[],this.Qo++);var k=Je(a,b,e,f);-1<k?(b=a[k],c||(b.Bp=!1)):(b=new He(b,null,this.src,g,!!e,f),b.Bp=c,a.push(b));return b};d.remove=function(a,b,c,e){a=a.toString();if(!(a in this.pc))return!1;var f=this.pc[a];b=Je(f,b,c,e);return-1<b?(f[b].Er(),pb(f,b),0==f.length&&(delete this.pc[a],this.Qo--),!0):!1};
d.qJ=function(a){var b=a.type;if(!(b in this.pc))return!1;var c=qb(this.pc[b],a);c&&(a.Er(),0==this.pc[b].length&&(delete this.pc[b],this.Qo--));return c};d.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.pc)if(!a||c==a){for(var e=this.pc[c],f=0;f<e.length;f++)++b,e[f].Er();delete this.pc[c];this.Qo--}return b};d.Sm=function(a,b,c,e){a=this.pc[a.toString()];var f=-1;a&&(f=Je(a,b,c,e));return-1<f?a[f]:null};
d.hasListener=function(a,b){var c=l(a),e=c?a.toString():"",f=l(b);return Hb(this.pc,function(a){for(var k=0;k<a.length;++k)if(!(c&&a[k].type!=e||f&&a[k].capture!=b))return!0;return!1})};var Je=function(a,b,c,e){for(var f=0;f<a.length;++f){var g=a[f];if(!g.removed&&g.listener==b&&g.capture==!!c&&g.Ac==e)return f}return-1};var Ke="closure_lm_"+(1E6*Math.random()|0),Le={},Me=0,Ne=function(a,b,c,e,f){if(ua(b)){for(var g=0;g<b.length;g++)Ne(a,b[g],c,e,f);return null}c=Oe(c);return Fe(a)?a.listen(b,c,e,f):Pe(a,b,c,!1,e,f)},Pe=function(a,b,c,e,f,g){if(!b)throw Error("Invalid event type");var k=!!f,n=Qe(a);n||(a[Ke]=n=new Ie(a));c=n.add(b,c,e,f,g);if(c.proxy)return c;e=Re();c.proxy=e;e.src=a;e.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),e,k);else if(a.attachEvent)a.attachEvent(Se(b.toString()),e);else throw Error("addEventListener and attachEvent are unavailable.");
Me++;return c},Re=function(){var a=Te,b=we?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b},Ue=function(a,b,c,e,f){if(ua(b)){for(var g=0;g<b.length;g++)Ue(a,b[g],c,e,f);return null}c=Oe(c);return Fe(a)?a.yn(b,c,e,f):Pe(a,b,c,!0,e,f)},Ve=function(a,b,c,e,f){if(ua(b)){for(var g=0;g<b.length;g++)Ve(a,b[g],c,e,f);return null}c=Oe(c);if(Fe(a))return a.od(b,c,e,f);if(!a)return!1;if(a=Qe(a))if(b=a.Sm(b,c,!!e,f))return We(b);return!1},We=function(a){if(r(a)||
!a||a.removed)return!1;var b=a.src;if(Fe(b))return b.zM(a);var c=a.type,e=a.proxy;b.removeEventListener?b.removeEventListener(c,e,a.capture):b.detachEvent&&b.detachEvent(Se(c),e);Me--;(c=Qe(b))?(c.qJ(a),0==c.Qo&&(c.src=null,b[Ke]=null)):a.Er();return!0},Se=function(a){return a in Le?Le[a]:Le[a]="on"+a},Ye=function(a,b,c,e){var f=!0;if(a=Qe(a))if(b=a.pc[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.capture==c&&!g.removed&&(g=Xe(g,e),f=f&&!1!==g)}return f},Xe=function(a,b){var c=
a.listener,e=a.Ac||a.src;a.Bp&&We(a);return c.call(e,b)},Te=function(a,b){if(a.removed)return!0;if(!we){var c=b||qa("window.event");b=new De(c,this);var e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(k){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=b.currentTarget;f;f=f.parentNode)c.push(f);a=a.type;for(f=c.length-1;!b.Ki&&0<=f;f--){b.currentTarget=c[f];var g=Ye(c[f],a,!0,b),e=e&&g}for(f=0;!b.Ki&&f<c.length;f++)b.currentTarget=
c[f],g=Ye(c[f],a,!1,b),e=e&&g}return e}return Xe(a,new De(b,this))},Qe=function(a){a=a[Ke];return a instanceof Ie?a:null},Ze="__closure_events_fn_"+(1E9*Math.random()>>>0),Oe=function(a){if(wa(a))return a;a[Ze]||(a[Ze]=function(b){return a.handleEvent(b)});return a[Ze]};var K=function(){se.call(this);this.uf=new Ie(this);this.MO=this;this.Ln=null};w(K,se);K.prototype[Ee]=!0;d=K.prototype;d.wz=function(a){this.Ln=a};d.addEventListener=function(a,b,c,e){Ne(this,a,b,c,e)};d.removeEventListener=function(a,b,c,e){Ve(this,a,b,c,e)};
d.dispatchEvent=function(a){var b,c=this.Ln;if(c)for(b=[];c;c=c.Ln)b.push(c);var c=this.MO,e=a.type||a;if(q(a))a=new J(a,c);else if(a instanceof J)a.target=a.target||c;else{var f=a;a=new J(e,c);Tb(a,f)}var f=!0,g;if(b)for(var k=b.length-1;!a.Ki&&0<=k;k--)g=a.currentTarget=b[k],f=g.lq(e,!0,a)&&f;a.Ki||(g=a.currentTarget=c,f=g.lq(e,!0,a)&&f,a.Ki||(f=g.lq(e,!1,a)&&f));if(b)for(k=0;!a.Ki&&k<b.length;k++)g=a.currentTarget=b[k],f=g.lq(e,!1,a)&&f;return f};
d.L=function(){K.R.L.call(this);this.b5();this.Ln=null};d.listen=function(a,b,c,e){return this.uf.add(String(a),b,!1,c,e)};d.yn=function(a,b,c,e){return this.uf.add(String(a),b,!0,c,e)};d.od=function(a,b,c,e){return this.uf.remove(String(a),b,c,e)};d.zM=function(a){return this.uf.qJ(a)};d.b5=function(a){return this.uf?this.uf.removeAll(a):0};
d.lq=function(a,b,c){a=this.uf.pc[String(a)];if(!a)return!0;a=a.concat();for(var e=!0,f=0;f<a.length;++f){var g=a[f];if(g&&!g.removed&&g.capture==b){var k=g.listener,n=g.Ac||g.src;g.Bp&&this.zM(g);e=!1!==k.call(n,c)&&e}}return e&&0!=c.GJ};d.Sm=function(a,b,c,e){return this.uf.Sm(String(a),b,c,e)};d.hasListener=function(a,b){return this.uf.hasListener(l(a)?String(a):void 0,b)};var $e=function(a,b){K.call(this);this.ge=a||1;this.Rl=b||h;this.pu=t(this.Xaa,this);this.nx=u()};w($e,K);d=$e.prototype;d.enabled=!1;d.Pa=null;d.setInterval=function(a){this.ge=a;this.Pa&&this.enabled?(this.stop(),this.start()):this.Pa&&this.stop()};d.Xaa=function(){if(this.enabled){var a=u()-this.nx;0<a&&a<.8*this.ge?this.Pa=this.Rl.setTimeout(this.pu,this.ge-a):(this.Pa&&(this.Rl.clearTimeout(this.Pa),this.Pa=null),this.TR(),this.enabled&&(this.Pa=this.Rl.setTimeout(this.pu,this.ge),this.nx=u()))}};
d.TR=function(){this.dispatchEvent("tick")};d.start=function(){this.enabled=!0;this.Pa||(this.Pa=this.Rl.setTimeout(this.pu,this.ge),this.nx=u())};d.stop=function(){this.enabled=!1;this.Pa&&(this.Rl.clearTimeout(this.Pa),this.Pa=null)};d.L=function(){$e.R.L.call(this);this.stop();delete this.Rl};
var af=function(a,b,c){if(wa(a))c&&(a=t(a,c));else if(a&&"function"==typeof a.handleEvent)a=t(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:h.setTimeout(a,b||0)},bf=function(a){h.clearTimeout(a)},cf=function(a,b){var c=null;return(new fe(function(e,f){c=af(function(){e(b)},a);-1==c&&f(Error("Failed to schedule timer."))})).va(function(a){bf(c);throw a;})};var df=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,ef=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):a},ff=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var e=a[c].indexOf("="),f,g=null;0<=e?(f=a[c].substring(0,e),g=a[c].substring(e+1)):f=a[c];b(f,g?decodeURIComponent(g.replace(/\+/g," ")):"")}}},gf=function(a,b,c){a=[a,"&",b];null!=c&&a.push("=",encodeURIComponent(String(c)));a[1]&&(c=a[0],b=c.indexOf("#"),
0<=b&&(a.push(c.substr(b)),a[0]=c=c.substr(0,b)),b=c.indexOf("?"),0>b?a[1]="?":b==c.length-1&&(a[1]=void 0));return a.join("")};p.cM=window.localStorage;
var hf=0,kf=function(a){return(a=window.localStorage.getItem(jf(a,!1)))?JSON.parse(a):null},lf=function(a){return(a=window.localStorage.getItem(jf(a,!0)))?JSON.parse(a):null},nf=function(a){if(mf.ab(a.la()))throw Error("Duplicate instance name "+a.la());mf.set(a.la(),a);a.eb()},tf=function(a){for(var b=0,c=ha(Object.keys(p.cM)),e=c.next();!e.done;e=c.next()){var e=e.value,f=e.length+window.localStorage.getItem(e).length;e.startsWith("mr.")?hf+=f:b+=f}of=a;(window.localStorage.getItem("version")&&window.localStorage.getItem("version")!==
chrome.runtime.getManifest().version||pf(a))&&qf();E(rf,"initialize: "+hf+" bytes used, "+b+" other bytes");chrome.runtime.onSuspend.addListener(sf)},of=null,rf=B("mr.PersistentDataManager"),mf=new z,jf=function(a,b){return"mr."+(b?"persistent.":"temp.")+a.la()},pf=function(a){return!!window.localStorage.getItem("mrInstanceId")&&window.localStorage.getItem("mrInstanceId")!==a},sf=function(){E(rf,"onSuspend");uf("version",chrome.runtime.getManifest().version);of&&uf("mrInstanceId",of);mf.forEach(vf)},
vf=function(a){var b=a.getData();b&&b[0]&&uf(jf(a,!1),JSON.stringify(b[0]));b&&b[1]&&uf(jf(a,!0),JSON.stringify(b[1]))},uf=function(a,b){var c;c=window.localStorage.getItem(a);c=void 0!=c?b.length-c.length:a.length+b.length;52E5<=hf+c&&(D(rf,"Unable to write "+c+" bytes"),qf());52E5<=hf+c?C(rf,"Unable to write "+c+" bytes after clearing temporary"):(window.localStorage.setItem(a,b),hf+=c)},qf=function(){for(var a=ha(Object.keys(p.cM)),b=a.next();!b.done;b=a.next())b=b.value,b.startsWith("mr.temp.")&&
(hf-=b.length+window.localStorage.getItem(b).length,delete window.localStorage[b]);E(rf,"removeTemporary_: "+hf+" bytes used")};var wf=y("Firefox"),xf=Qc()||y("iPod"),yf=y("iPad"),zf=y("Android")&&!(dc()||y("Firefox")||y("Opera")||y("Silk")),Af=dc(),Bf=y("Safari")&&!(dc()||y("Coast")||y("Opera")||y("Edge")||y("Silk")||y("Android"))&&!(Qc()||y("iPad")||y("iPod"));var Cf=function(a){return fb(a,function(a){a=a.toString(16);return 1<a.length?a:"0"+a}).join("")};var Df=null,Ef=null,Ff=null,Gf=Vc||Wc&&!Bf||Sc||!Bf&&!Tc&&"function"==typeof h.atob,If=function(a,b){Hf();b=b?Ff:Df;for(var c=[],e=0;e<a.length;e+=3){var f=a[e],g=e+1<a.length,k=g?a[e+1]:0,n=e+2<a.length,v=n?a[e+2]:0,A=f>>2,f=(f&3)<<4|k>>4,k=(k&15)<<2|v>>6,v=v&63;n||(v=64,g||(k=64));c.push(b[A],b[f],b[k],b[v])}return c.join("")},Kf=function(a,b){if(Gf&&!b)return h.atob(a);var c="";Jf(a,function(a){c+=String.fromCharCode(a)});return c},Lf=function(a){var b=new Uint8Array(Math.ceil(3*a.length/4)),c=
0;Jf(a,function(a){b[c++]=a});return b.subarray(0,c)},Jf=function(a,b){function c(b){for(;e<a.length;){var c=a.charAt(e++),f=Ef[c];if(null!=f)return f;if(!Ga(c))throw Error("Unknown base64 encoding at char: "+c);}return b}Hf();for(var e=0;;){var f=c(-1),g=c(0),k=c(64),n=c(64);if(64===n&&-1===f)break;b(f<<2|g>>4);64!=k&&(b(g<<4&240|k>>2),64!=n&&b(k<<6&192|n))}},Hf=function(){if(!Df){Df={};Ef={};Ff={};for(var a=0;65>a;a++)Df[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),
Ef[Df[a]]=a,Ff[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(Ef["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}};var Mf=function(){this.gc=-1};var Nf=function(){this.gc=64;this.Z=[];this.su=[];this.JO=[];this.Ur=[];this.Ur[0]=128;for(var a=1;a<this.gc;++a)this.Ur[a]=0;this.kt=this.Hk=0;this.reset()};w(Nf,Mf);Nf.prototype.reset=function(){this.Z[0]=1732584193;this.Z[1]=4023233417;this.Z[2]=2562383102;this.Z[3]=271733878;this.Z[4]=3285377520;this.kt=this.Hk=0};
Nf.prototype.rg=function(a,b){b||(b=0);var c=this.JO;if(q(a))for(var e=0;16>e;e++)c[e]=a.charCodeAt(b)<<24|a.charCodeAt(b+1)<<16|a.charCodeAt(b+2)<<8|a.charCodeAt(b+3),b+=4;else for(e=0;16>e;e++)c[e]=a[b]<<24|a[b+1]<<16|a[b+2]<<8|a[b+3],b+=4;for(e=16;80>e;e++){var f=c[e-3]^c[e-8]^c[e-14]^c[e-16];c[e]=(f<<1|f>>>31)&4294967295}a=this.Z[0];b=this.Z[1];for(var g=this.Z[2],k=this.Z[3],n=this.Z[4],v,e=0;80>e;e++)40>e?20>e?(f=k^b&(g^k),v=1518500249):(f=b^g^k,v=1859775393):60>e?(f=b&g|k&(b|g),v=2400959708):
(f=b^g^k,v=3395469782),f=(a<<5|a>>>27)+f+n+v+c[e]&4294967295,n=k,k=g,g=(b<<30|b>>>2)&4294967295,b=a,a=f;this.Z[0]=this.Z[0]+a&4294967295;this.Z[1]=this.Z[1]+b&4294967295;this.Z[2]=this.Z[2]+g&4294967295;this.Z[3]=this.Z[3]+k&4294967295;this.Z[4]=this.Z[4]+n&4294967295};
Nf.prototype.update=function(a,b){if(null!=a){l(b)||(b=a.length);for(var c=b-this.gc,e=0,f=this.su,g=this.Hk;e<b;){if(0==g)for(;e<=c;)this.rg(a,e),e+=this.gc;if(q(a))for(;e<b;){if(f[g]=a.charCodeAt(e),++g,++e,g==this.gc){this.rg(f);g=0;break}}else for(;e<b;)if(f[g]=a[e],++g,++e,g==this.gc){this.rg(f);g=0;break}}this.Hk=g;this.kt+=b}};
Nf.prototype.digest=function(){var a=[],b=8*this.kt;56>this.Hk?this.update(this.Ur,56-this.Hk):this.update(this.Ur,this.gc-(this.Hk-56));for(var c=this.gc-1;56<=c;c--)this.su[c]=b&255,b/=256;this.rg(this.su);for(c=b=0;5>c;c++)for(var e=24;0<=e;e-=8)a[b]=this.Z[c]>>e&255,++b;return a};var Pf=function(){this.xy=Ua();this.Pi=new Of(null,null);this.Oi=new Of(null,null);this.vv=[];this.tr=this.Gj=0;nf(this)};ra(Pf);var Of=function(a,b){this.model=a;this.ip=b};d=Pf.prototype;d.Hm=function(a){a=a.toLowerCase();var b=new Nf;b.update(a);b.update(this.xy);return"r"+If(b.digest(),!0)};d.VW=function(){return this.Pi.model?this.Pi:this.Oi.model?this.Oi:new Of(null,null)};d.la=function(){return"SinkUtils"};
d.getData=function(){return[{recentLaunchedDevice:this.Pi,recentDiscoveredDevice:this.Oi},{receiverIdToken:this.xy,fixedIpList:this.vv.join(","),castControlPort:this.Gj,lastCloudSinkCheckTimeMillis:this.tr}]};
d.eb=function(){var a=kf(this);a&&(this.Pi=a.recentLaunchedDevice||new Of(null,null),this.Oi=a.recentDiscoveredDevice||new Of(null,null));if(a=lf(this))this.xy=a.receiverIdToken||Ua(),this.vv=a.fixedIpList&&a.fixedIpList.split(",")||[],this.Gj=a.castControlPort||0,this.tr=a.lastCloudSinkCheckTimeMillis||0};var Qf=function(a,b,c){this.Z0=a;this.Uy=0<b?b:10;this.g0=0<c?c:1;this.tH=0;this.wp=1;this.QH=0;this.AG=!1;this.kb=this.Lo=null};w(Qf,se);d=Qf.prototype;d.start=function(){if(this.B_())return H(Error("Cannot call Retry.start more than once."));this.kb=I();this.EJ();return this.kb.promise};
d.EJ=function(){this.Lo=null;this.QH>=this.g0?(this.gf(),this.kb.reject(Error("Max attempts reached"))):this.AG||(this.Z0().then(function(a){this.gf();this.kb.resolve(a)},function(){this.Lo=af(this.EJ,this.Uy,this);this.Dba()},this),this.QH++)};d.Dba=function(){var a=this.Uy*this.wp;0<this.tH&&(a=Math.min(a,this.tH));this.Uy=a};d.zs=function(a){this.wp=a;return this};d.abort=function(){this.gf();this.kb.reject(Error("abort"))};d.gf=function(){null!=this.Lo&&(bf(this.Lo),this.Lo=null);this.AG=!0};
d.L=function(){this.gf();Qf.R.L.call(this)};d.B_=function(){return null!=this.kb};var Rf=function(a,b,c,e,f){c="["+b+"]: "+c+" "+e.Eq()+" => "+e.cb()+" ("+e.qF()+")";e.Fd()?(F(a,c),f&&(e=e.vk())&&0<e.length&&F(a,"["+b+"]: "+e)):(c+=", error = "+e.Lg+" ("+e.zE()+")",E(a,c))};var Sf=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var Tf=h.JSON.parse,Uf=h.JSON.stringify;var Vf=function(){};Vf.prototype.HB=null;Vf.prototype.ce=function(){return this.HB||(this.HB=this.$Z())};var Wf,Xf=function(){};w(Xf,Vf);Xf.prototype.Op=function(){var a=this.UE();return a?new ActiveXObject(a):new XMLHttpRequest};Xf.prototype.$Z=function(){var a={};this.UE()&&(a[0]=!0,a[1]=!0);return a};
Xf.prototype.UE=function(){if(!this.oG&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],b=0;b<a.length;b++){var c=a[b];try{return new ActiveXObject(c),this.oG=c}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return this.oG};Wf=new Xf;var Yf=function(a){K.call(this);this.headers=new z;this.Et=a||null;this.hg=!1;this.Dt=this.T=null;this.PG=this.un="";this.Lg=0;this.Mg="";this.ki=this.Nw=this.gr=this.jv=!1;this.cg=0;this.te=null;this.rl="";this.ut=this.g4=this.uj=!1};w(Yf,K);Yf.prototype.a=B("goog.net.XhrIo");var Zf=/^https?$/i,$f=["POST","PUT"],ag=[],bg=function(a,b,c,e,f,g,k){var n=new Yf;ag.push(n);b&&n.listen("complete",b);n.yn("ready",n.HQ);g&&n.Ns(g);k&&n.Iz(k);n.send(a,c,e,f);return n};d=Yf.prototype;
d.HQ=function(){this.mb();qb(ag,this)};d.Ns=function(a){this.cg=Math.max(0,a)};d.vL=function(a){this.rl=a};d.Iz=function(a){this.uj=a};
d.send=function(a,b,c,e){if(this.T)throw Error("[goog.net.XhrIo] Object is active with another request="+this.un+"; newUri="+a);b=b?b.toUpperCase():"GET";this.un=a;this.Mg="";this.Lg=0;this.PG=b;this.jv=!1;this.hg=!0;this.T=this.uR();this.Dt=this.Et?this.Et.ce():Wf.ce();this.T.onreadystatechange=t(this.nI,this);this.g4&&"onprogress"in this.T&&(this.T.onprogress=t(function(a){this.kI(a,!0)},this),this.T.upload&&(this.T.upload.onprogress=t(this.kI,this)));try{F(this.a,this.vf("Opening Xhr")),this.Nw=
!0,this.T.open(b,String(a),!0),this.Nw=!1}catch(g){F(this.a,this.vf("Error opening Xhr: "+g.message));this.bd(5,g);return}a=c||"";var f=this.headers.clone();e&&Lc(e,function(a,b){f.set(b,a)});e=jb(f.ob(),cg);c=h.FormData&&a instanceof h.FormData;!lb($f,b)||e||c||f.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");f.forEach(function(a,b){this.T.setRequestHeader(b,a)},this);this.rl&&(this.T.responseType=this.rl);"withCredentials"in this.T&&this.T.withCredentials!==this.uj&&(this.T.withCredentials=
this.uj);try{this.XB(),0<this.cg&&(this.ut=dg(this.T),F(this.a,this.vf("Will abort after "+this.cg+"ms if incomplete, xhr2 "+this.ut)),this.ut?(this.T.timeout=this.cg,this.T.ontimeout=t(this.Ko,this)):this.te=af(this.Ko,this.cg,this)),F(this.a,this.vf("Sending request")),this.gr=!0,this.T.send(a),this.gr=!1}catch(g){F(this.a,this.vf("Send error: "+g.message)),this.bd(5,g)}};var dg=function(a){return Tc&&od(9)&&r(a.timeout)&&l(a.ontimeout)},cg=function(a){return"content-type"==a.toLowerCase()};d=Yf.prototype;
d.uR=function(){return this.Et?this.Et.Op():Wf.Op()};d.Ko=function(){"undefined"!=typeof pa&&this.T&&(this.Mg="Timed out after "+this.cg+"ms, aborting",this.Lg=8,F(this.a,this.vf(this.Mg)),this.dispatchEvent("timeout"),this.abort(8))};d.bd=function(a,b){this.hg=!1;this.T&&(this.ki=!0,this.T.abort(),this.ki=!1);this.Mg=b;this.Lg=a;this.LC();this.Gp()};d.LC=function(){this.jv||(this.jv=!0,this.dispatchEvent("complete"),this.dispatchEvent("error"))};
d.abort=function(a){this.T&&this.hg&&(F(this.a,this.vf("Aborting")),this.hg=!1,this.ki=!0,this.T.abort(),this.ki=!1,this.Lg=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),this.Gp())};d.L=function(){this.T&&(this.hg&&(this.hg=!1,this.ki=!0,this.T.abort(),this.ki=!1),this.Gp(!0));Yf.R.L.call(this)};d.nI=function(){this.isDisposed()||(this.Nw||this.gr||this.ki?this.mI():this.j2())};d.j2=function(){this.mI()};
d.mI=function(){if(this.hg&&"undefined"!=typeof pa)if(this.Dt[1]&&4==this.$h()&&2==this.cb())F(this.a,this.vf("Local request error detected and ignored"));else if(this.gr&&4==this.$h())af(this.nI,0,this);else if(this.dispatchEvent("readystatechange"),this.Sw()){F(this.a,this.vf("Request complete"));this.hg=!1;try{this.Fd()?(this.dispatchEvent("complete"),this.dispatchEvent("success")):(this.Lg=6,this.Mg=this.qF()+" ["+this.cb()+"]",this.LC())}finally{this.Gp()}}};
d.kI=function(a,b){this.dispatchEvent(eg(a,"progress"));this.dispatchEvent(eg(a,b?"downloadprogress":"uploadprogress"))};var eg=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}};d=Yf.prototype;d.Gp=function(a){if(this.T){this.XB();var b=this.T,c=this.Dt[0]?p:null;this.Dt=this.T=null;a||this.dispatchEvent("ready");try{b.onreadystatechange=c}catch(e){C(this.a,"Problem encountered resetting onreadystatechange: "+e.message)}}};
d.XB=function(){this.T&&this.ut&&(this.T.ontimeout=null);r(this.te)&&(bf(this.te),this.te=null)};d.Ff=function(){return!!this.T};d.Sw=function(){return 4==this.$h()};d.Fd=function(){var a=this.cb(),b;a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:b=!0;break a;default:b=!1}return b||0===a&&!this.k_()};
d.k_=function(){var a=String(this.un).match(df)[1]||null;!a&&h.self&&h.self.location&&(a=h.self.location.protocol,a=a.substr(0,a.length-1));return Zf.test(a?a.toLowerCase():"")};d.$h=function(){return this.T?this.T.readyState:0};d.cb=function(){try{return 2<this.$h()?this.T.status:-1}catch(a){return-1}};d.qF=function(){try{return 2<this.$h()?this.T.statusText:""}catch(a){return F(this.a,"Can not get status: "+a.message),""}};d.Eq=function(){return String(this.un)};
d.vk=function(){try{return this.T?this.T.responseText:""}catch(a){return F(this.a,"Can not get responseText: "+a.message),""}};d.dF=function(){try{return this.T?this.T.responseXML:null}catch(a){return F(this.a,"Can not get responseXML: "+a.message),null}};d.kX=function(a){if(this.T){var b=this.T.responseText;a&&0==b.indexOf(a)&&(b=b.substring(a.length));return Tf(b)}};d.getResponseHeader=function(a){return this.T&&this.Sw()?this.T.getResponseHeader(a):void 0};
d.getAllResponseHeaders=function(){return this.T&&this.Sw()?this.T.getAllResponseHeaders():""};d.jX=function(){for(var a={},b=this.getAllResponseHeaders().split("\r\n"),c=0;c<b.length;c++)if(!Ga(b[c])){var e=Ya(b[c],": ",2);a[e[0]]=a[e[0]]?a[e[0]]+(", "+e[1]):e[1]}return a};d.zE=function(){return q(this.Mg)?this.Mg:String(this.Mg)};d.vf=function(a){return a+" ["+this.PG+" "+this.un+" "+this.cb()+"]"};var fg=B("mr.DongleUtils"),gg=function(a){return"https://crash.corp.google.com/samples?stbtiq="+a},hg=function(a,b,c){var e=new Yf;e.vL("text");e.Ns(3E5);Ne(e,"complete",function(a){a=a.target;var e,k;a.Fd()?(e="ok",k=gg(b)):(e="error",k="Unable to retrieve "+a.Eq()+", error = "+a.zE());c(e,k);a.mb()});e.send("http://"+a+":8008/setup/send_log_report","POST",JSON.stringify({uuid:b}),{"Content-Type":"application/json"});return gg(b)},ig=null,jg=function(a){if(!q(a))return G();if(ig&&ig.ip==a&&ig.time>
u()-36E5)return ig.version;var b=I();ig={version:b.promise,ip:a||"",time:u()};bg("http://"+a+":8008/setup/eureka_info",function(a){a=a.target;Rf(fg,"getBuildVersion","GET",a,!1);if(a.Fd())try{var e=JSON.parse(a.vk());b.resolve(e.cast_build_revision||e.build_version)}catch(f){b.resolve()}else b.resolve()},"GET",void 0,void 0,3E3);return b.promise};var kg=function(a,b,c){this.source=a;this.type=b;this.message=c};
