forked from XYZABCEFG/y8slope
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloader.js
More file actions
72 lines (72 loc) · 42.2 KB
/
loader.js
File metadata and controls
72 lines (72 loc) · 42.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
(function(){var h,aa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},k=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}},ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},l="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,m=function(a,b){if(b){var c=l;a=a.split(".");
for(var d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ba(c,a,{configurable:!0,writable:!0,value:b})}},ca=function(){ca=function(){};l.Symbol||(l.Symbol=da)},da=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(),fa=function(){ca();var a=l.Symbol.iterator;a||(a=l.Symbol.iterator=l.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&ba(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(aa(this))}});
fa=function(){}},ea=function(a){fa();a={next:a};a[l.Symbol.iterator]=function(){return this};return a},n=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};m("http://imasdk.googleapis.com/js/sdkloader/Object.is",function(a){return a?a:function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c}});m("Array.prototype.includes",function(a){return a?a:function(a,c){var b=this;b instanceof String&&(b=String(b));var e=b.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=b[c];if(f===a||Object.is(f,a))return!0}return!1}});
m("WeakMap",function(a){function b(){}function c(a){n(a,e)||ba(a,e,{value:new b})}function d(a){var d=Object[a];d&&(Object[a]=function(a){if(a instanceof b)return a;c(a);return d(a)})}if(function(){if(!a||!Object.seal)return!1;try{var b=Object.seal({}),c=Object.seal({}),d=new a([[b,2],[c,3]]);if(2!=d.get(b)||3!=d.get(c))return!1;d["delete"](b);d.set(c,4);return!d.has(b)&&4==d.get(c)}catch(Id){return!1}}())return a;var e="$jscomp_hidden_"+Math.random();d("freeze");d("preventExtensions");d("seal");
var f=0,g=function(a){this.a=(f+=Math.random()+1).toString();if(a){a=k(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};g.prototype.set=function(a,b){c(a);if(!n(a,e))throw Error("WeakMap key fail: "+a);a[e][this.a]=b;return this};g.prototype.get=function(a){return n(a,e)?a[e][this.a]:void 0};g.prototype.has=function(a){return n(a,e)&&n(a[e],this.a)};g.prototype["delete"]=function(a){return n(a,e)&&n(a[e],this.a)?delete a[e][this.a]:!1};return g});
m("Map",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),c=new a(k([[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 d=c.entries(),e=d.next();if(e.done||e.value[0]!=b||"s"!=e.value[1])return!1;e=d.next();return e.done||4!=e.value[0].x||"t"!=e.value[1]||!d.next().done?!1:!0}catch(Jd){return!1}}())return a;fa();var b=new WeakMap,c=function(a){this.b={};this.a=
f();this.size=0;if(a){a=k(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};c.prototype.set=function(a,b){a=0===a?0:a;var c=d(this,a);c.list||(c.list=this.b[c.id]=[]);c.j?c.j.value=b:(c.j={next:this.a,m:this.a.m,head:this.a,key:a,value:b},c.list.push(c.j),this.a.m.next=c.j,this.a.m=c.j,this.size++);return this};c.prototype["delete"]=function(a){a=d(this,a);return a.j&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.b[a.id],a.j.m.next=a.j.next,a.j.next.m=a.j.m,a.j.head=null,
this.size--,!0):!1};c.prototype.clear=function(){this.b={};this.a=this.a.m=f();this.size=0};c.prototype.has=function(a){return!!d(this,a).j};c.prototype.get=function(a){return(a=d(this,a).j)&&a.value};c.prototype.entries=function(){return e(this,function(a){return[a.key,a.value]})};c.prototype.keys=function(){return e(this,function(a){return a.key})};c.prototype.values=function(){return e(this,function(a){return a.value})};c.prototype.forEach=function(a,b){for(var c=this.entries(),d;!(d=c.next()).done;)d=
d.value,a.call(b,d[1],d[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(a,c){var d=c&&typeof c;"object"==d||"function"==d?b.has(c)?d=b.get(c):(d=""+ ++g,b.set(c,d)):d="p_"+c;var e=a.b[d];if(e&&n(a.b,d))for(a=0;a<e.length;a++){var f=e[a];if(c!==c&&f.key!==f.key||c===f.key)return{id:d,list:e,index:a,j:f}}return{id:d,list:e,index:-1,j:void 0}},e=function(a,b){var c=a.a;return ea(function(){if(c){for(;c.head!=a.a;)c=c.m;for(;c.next!=c.head;)return c=c.next,{done:!1,value:b(c)};
c=null}return{done:!0,value:void 0}})},f=function(){var a={};return a.m=a.next=a.head=a},g=0;return c});
m("Promise",function(a){function b(){this.a=null}function c(a){return a instanceof e?a:new e(function(b){b(a)})}if(a)return a;b.prototype.b=function(a){null==this.a&&(this.a=[],this.f());this.a.push(a)};b.prototype.f=function(){var a=this;this.c(function(){a.h()})};var d=l.setTimeout;b.prototype.c=function(a){d(a,0)};b.prototype.h=function(){for(;this.a&&this.a.length;){var a=this.a;this.a=[];for(var b=0;b<a.length;++b){var c=a[b];a[b]=null;try{c()}catch(Ca){this.g(Ca)}}}this.a=null};b.prototype.g=
function(a){this.c(function(){throw a;})};var e=function(a){this.b=0;this.c=void 0;this.a=[];var b=this.f();try{a(b.resolve,b.reject)}catch(X){b.reject(X)}};e.prototype.f=function(){function a(a){return function(d){c||(c=!0,a.call(b,d))}}var b=this,c=!1;return{resolve:a(this.s),reject:a(this.g)}};e.prototype.s=function(a){if(a===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof e)this.G(a);else{a:switch(typeof a){case "object":var b=null!=a;break a;case "function":b=
!0;break a;default:b=!1}b?this.o(a):this.h(a)}};e.prototype.o=function(a){var b=void 0;try{b=a.then}catch(X){this.g(X);return}"function"==typeof b?this.H(b,a):this.h(a)};e.prototype.g=function(a){this.i(2,a)};e.prototype.h=function(a){this.i(1,a)};e.prototype.i=function(a,b){if(0!=this.b)throw Error("Cannot settle("+a+", "+b+"): Promise already settled in state"+this.b);this.b=a;this.c=b;this.l()};e.prototype.l=function(){if(null!=this.a){for(var a=0;a<this.a.length;++a)f.b(this.a[a]);this.a=null}};
var f=new b;e.prototype.G=function(a){var b=this.f();a.B(b.resolve,b.reject)};e.prototype.H=function(a,b){var c=this.f();try{a.call(b,c.resolve,c.reject)}catch(Ca){c.reject(Ca)}};e.prototype.then=function(a,b){function c(a,b){return"function"==typeof a?function(b){try{d(a(b))}catch(tc){f(tc)}}:b}var d,f,g=new e(function(a,b){d=a;f=b});this.B(c(a,d),c(b,f));return g};e.prototype["catch"]=function(a){return this.then(void 0,a)};e.prototype.B=function(a,b){function c(){switch(d.b){case 1:a(d.c);break;
case 2:b(d.c);break;default:throw Error("Unexpected state: "+d.b);}}var d=this;null==this.a?f.b(c):this.a.push(c)};e.resolve=c;e.reject=function(a){return new e(function(b,c){c(a)})};e.race=function(a){return new e(function(b,d){for(var e=k(a),f=e.next();!f.done;f=e.next())c(f.value).B(b,d)})};e.all=function(a){var b=k(a),d=b.next();return d.done?c([]):new e(function(a,e){function f(b){return function(c){g[b]=c;q--;0==q&&a(g)}}var g=[],q=0;do g.push(void 0),q++,c(d.value).B(f(g.length-1),e),d=b.next();
while(!d.done)})};return e});
var p=this,r=function(a){return"string"==typeof a},ha=function(a){return"number"==typeof a},ia=/^[\w+/_-]+[=]{0,2}$/,ja=null,ka=function(){},t=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},u=function(a){return"array"==t(a)},la=function(a){var b=t(a);return"array"==b||"object"==b&&"number"==typeof a.length},v=function(a){return"function"==t(a)},w=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},ma=function(a,b,c){return a.call.apply(a.bind,arguments)},
na=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},oa=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?oa=ma:oa=na;return oa.apply(null,arguments)},pa=Date.now||function(){return+new Date},x=function(a,b){function c(){}c.prototype=
b.prototype;a.M=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Sa=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};var y=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,y);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};x(y,Error);y.prototype.name="CustomError";var qa=function(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");y.call(this,c+a[d])};x(qa,y);qa.prototype.name="AssertionError";
var ra=function(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else a&&(e+=": "+a,f=b);throw new qa(""+e,f||[]);},z=function(a,b,c){a||ra("",null,b,Array.prototype.slice.call(arguments,2));return a},sa=function(a,b){throw new qa("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},A=function(a,b,c){ha(a)||ra("Expected number but got %s: %s.",[t(a),a],b,Array.prototype.slice.call(arguments,2));return a};var ta=Array.prototype.indexOf?function(a,b){z(null!=a.length);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(r(a))return r(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},ua=Array.prototype.forEach?function(a,b,c){z(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=r(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},va=Array.prototype.map?function(a,b){z(null!=a.length);return Array.prototype.map.call(a,
b,void 0)}:function(a,b){for(var c=a.length,d=Array(c),e=r(a)?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d},wa=Array.prototype.reduce?function(a,b,c){z(null!=a.length);return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;ua(a,function(c,f){d=b.call(void 0,d,c,f,a)});return d},xa=Array.prototype.every?function(a,b){z(null!=a.length);return Array.prototype.every.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=r(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&
!b.call(void 0,d[e],e,a))return!1;return!0},ya=function(a){return Array.prototype.concat.apply([],arguments)},za=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},Aa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};var Ba=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Ka=function(a){if(!Da.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Ea,"&"));-1!=a.indexOf("<")&&(a=a.replace(Fa,"<"));-1!=a.indexOf(">")&&(a=a.replace(Ga,">"));-1!=a.indexOf('"')&&(a=a.replace(Ha,"""));-1!=a.indexOf("'")&&(a=a.replace(Ia,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(Ja,"�"));return a},Ea=/&/g,Fa=/</g,Ga=/>/g,Ha=/"/g,Ia=/'/g,Ja=/\x00/g,Da=
/[\x00&<>"']/,La=function(a){return null==a?"":String(a)},Ma=function(a,b){return a<b?-1:a>b?1:0};var B;a:{var Na=p.navigator;if(Na){var Oa=Na.userAgent;if(Oa){B=Oa;break a}}B=""}var C=function(a){return-1!=B.indexOf(a)};var Pa=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Qa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Ra=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Qa.length;f++)c=Qa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Sa=function(){return(C("Chrome")||C("CriOS"))&&!C("Edge")};var Ta=function(){return C("iPhone")&&!C("iPod")&&!C("iPad")};var Ua=function(a){Ua[" "](a);return a};Ua[" "]=ka;var Va=function(a,b){try{return Ua(a[b]),!0}catch(c){}return!1};var Wa=C("Opera"),D=C("Trident")||C("MSIE"),Xa=C("Edge"),Ya=C("Gecko")&&!(-1!=B.toLowerCase().indexOf("webkit")&&!C("Edge"))&&!(C("Trident")||C("MSIE"))&&!C("Edge"),Za=-1!=B.toLowerCase().indexOf("webkit")&&!C("Edge"),$a=function(){var a=p.document;return a?a.documentMode:void 0},ab;
a:{var bb="",cb=function(){var a=B;if(Ya)return/rv:([^\);]+)(\)|;)/.exec(a);if(Xa)return/Edge\/([\d\.]+)/.exec(a);if(D)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Za)return/WebKit\/(\S+)/.exec(a);if(Wa)return/(?:Version)[ \/]?(\S+)/.exec(a)}();cb&&(bb=cb?cb[1]:"");if(D){var db=$a();if(null!=db&&db>parseFloat(bb)){ab=String(db);break a}}ab=bb}var eb=ab,fb={},gb;var hb=p.document;gb=hb&&D?$a()||("CSS1Compat"==hb.compatMode?parseInt(eb,10):5):void 0;var ib=C("Firefox"),jb=Ta()||C("iPod"),kb=C("iPad"),lb=C("Android")&&!(Sa()||C("Firefox")||C("Opera")||C("Silk")),mb=Sa(),nb=C("Safari")&&!(Sa()||C("Coast")||C("Opera")||C("Edge")||C("Silk")||C("Android"))&&!(Ta()||C("iPad")||C("iPod"));Object.freeze&&Object.freeze([]);var ob=document;var pb=Object.freeze||function(a){return a};var qb=function(a,b,c){this.reset(a,b,c,void 0,void 0)};qb.prototype.a=null;var rb=0;qb.prototype.reset=function(a,b,c,d,e){"number"==typeof e||rb++;d||pa();delete this.a};var sb=function(a){this.f=a;this.c=this.a=this.b=null},tb=function(a,b){this.name=a;this.value=b};tb.prototype.toString=function(){return this.name};var ub=new tb("INFO",800),vb=new tb("CONFIG",700),wb=function(a){if(a.a)return a.a;if(a.b)return wb(a.b);sa("Root logger has no level set.");return null};sb.prototype.log=function(a,b,c){if(a.value>=wb(this).value)for(v(b)&&(b=b()),a=new qb(a,String(b),this.f),c&&(a.a=c),c=this;c;)c=c.b};
var xb={},yb=null,zb=function(a){yb||(yb=new sb(""),xb[""]=yb,yb.a=vb);var b;if(!(b=xb[a])){b=new sb(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=zb(a.substr(0,c));c.c||(c.c={});c.c[d]=b;b.b=c;xb[a]=b}return b};var Ab=function(a,b){a=zb(a);b&&a&&(a.a=b)};var Bb=!D||9<=Number(gb);var E=function(a,b){this.a=a===Cb&&b||"";this.b=Db};E.prototype.F=!0;E.prototype.C=function(){return this.a};E.prototype.toString=function(){return"Const{"+this.a+"}"};var Eb=function(a){if(a instanceof E&&a.constructor===E&&a.b===Db)return a.a;sa("expected object of type Const, got '"+a+"'");return"type_error:Const"},Db={},Cb={};var F=function(){this.a="";this.b=Fb};F.prototype.F=!0;F.prototype.C=function(){return this.a};F.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Fb={};var G=function(){this.a="";this.b=Gb};G.prototype.F=!0;G.prototype.C=function(){return this.a};G.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Hb=function(a){if(a instanceof G&&a.constructor===G&&a.b===Gb)return a.a;sa("expected object of type SafeUrl, got '"+a+"' of type "+t(a));return"type_error:SafeUrl"},Ib=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Gb={},Jb=function(a){var b=new G;b.a=a;return b};Jb("about:blank");var Lb=function(a,b){Pa(b,function(b,d){b&&"object"==typeof b&&b.F&&(b=b.C());"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Kb.hasOwnProperty(d)?a.setAttribute(Kb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})},Kb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",
width:"width"},Nb=function(a,b,c){var d=arguments,e=document,f=String(d[0]),g=d[1];if(!Bb&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',Ka(g.name),'"');if(g.type){f.push(' type="',Ka(g.type),'"');var q={};Ra(q,g);delete q.type;g=q}f.push(">");f=f.join("")}f=e.createElement(f);g&&(r(g)?f.className=g:u(g)?f.className=g.join(" "):Lb(f,g));2<d.length&&Mb(e,f,d);return f},Mb=function(a,b,c){function d(c){c&&b.appendChild(r(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var f=c[e];!la(f)||
w(f)&&0<f.nodeType?d(f):ua(Ob(f)?za(f):f,d)}},Ob=function(a){if(a&&"number"==typeof a.length){if(w(a))return"function"==typeof a.item||"string"==typeof a.item;if(v(a))return"function"==typeof a.item}return!1};var Pb=function(a){try{return!!a&&null!=a.location.href&&Va(a,"foo")}catch(b){return!1}},Qb=/https?:\/\/[^\/]+/,Rb=function(a){return(a=Qb.exec(a))&&a[0]||""};var Sb=!!window.google_async_iframe_id,H=Sb&&window.parent||window;var Tb=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Ub=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};var Vb=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/,Zb=function(a){a=a||Wb();for(var b=new Xb(p.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Vb.test(f.url)&&(c=f);if(f.url&&!f.I){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Yb(b,e,c)},Wb=function(){var a=p,b=[],c=null;do{var d=a;if(Pb(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Xb(e||""));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);
d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=p;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)e=b[a],e.url||(e.url=d.location.ancestorOrigins[a-1]||"",e.I=!0);return b},Yb=function(a,b,c){this.b=a;this.c=b;this.a=c},Xb=function(a,b){this.url=a;this.I=!!b;this.depth=ha(void 0)?void 0:null};var $b=null;var ac=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=this.label+"_"+this.type+"_"+Math.random();this.slotId=void 0};var I=p.performance,bc=!!(I&&I.mark&&I.measure&&I.clearMarks),cc=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){var a;if(a=bc){var b;if(null===$b){$b="";try{a="";try{a=p.top.location.hash}catch(c){a=p.location.hash}a&&($b=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=$b;a=!!b.indexOf&&0<=b.indexOf("1337")}return a}),ec=function(){var a=dc;this.a=[];this.c=a||p;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.a=a.google_js_reporting_queue,
b=a.google_measure_js_timing);this.b=cc()||(null!=b?b:1>Math.random())},fc=function(a){a&&I&&cc()&&(I.clearMarks("goog_"+a.uniqueId+"_start"),I.clearMarks("goog_"+a.uniqueId+"_end"))};ec.prototype.start=function(a,b){if(!this.b)return null;var c=void 0===c?p:c;c=c.performance;(c=c&&c.now?c.now():null)||(c=(c=p.performance)&&c.now&&c.timing?Math.floor(c.now()+c.timing.navigationStart):pa());a=new ac(a,b,c);b="goog_"+a.uniqueId+"_start";I&&cc()&&I.mark(b);return a};if(Sb&&!Pb(H)){var gc="."+ob.domain;try{for(;2<gc.split(".").length&&!Pb(H);)ob.domain=gc=gc.substr(gc.indexOf(".")+1),H=window.parent}catch(a){}Pb(H)||(H=window)}var dc=H,J=new ec,hc=function(){dc.google_measure_js_timing||(J.b=!1,J.a!=J.c.google_js_reporting_queue&&(cc()&&ua(J.a,fc),J.a.length=0))};if("complete"==dc.document.readyState)hc();else if(J.b){var ic=function(){hc()},jc=dc;jc.addEventListener&&jc.addEventListener("load",ic,!1)};var kc=!D||9<=Number(gb),lc;
if(lc=D){var mc;if(Object.prototype.hasOwnProperty.call(fb,"9"))mc=fb["9"];else{for(var nc=0,oc=Ba(String(eb)).split("."),pc=Ba("9").split("."),qc=Math.max(oc.length,pc.length),rc=0;0==nc&&rc<qc;rc++){var sc=oc[rc]||"",uc=pc[rc]||"";do{var K=/(\d*)(\D*)(.*)/.exec(sc)||["","","",""],L=/(\d*)(\D*)(.*)/.exec(uc)||["","","",""];if(0==K[0].length&&0==L[0].length)break;nc=Ma(0==K[1].length?0:parseInt(K[1],10),0==L[1].length?0:parseInt(L[1],10))||Ma(0==K[2].length,0==L[2].length)||Ma(K[2],L[2]);sc=K[3];
uc=L[3]}while(0==nc)}mc=fb["9"]=0<=nc}lc=!mc}var vc=lc,wc=function(){if(!p.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{p.addEventListener("test",ka,b),p.removeEventListener("test",ka,b)}catch(c){}return a}();var xc=function(){};var M=function(a,b){this.type=a;this.a=this.target=b;this.L=!0};M.prototype.c=function(){this.L=!1};var zc=function(a,b){M.call(this,a?a.type:"");this.relatedTarget=this.a=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.pointerId=0;this.pointerType="";this.b=null;if(a){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.a=b;(b=a.relatedTarget)?Ya&&(Va(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==
c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(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.button=a.button;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||
0;this.pointerType=r(a.pointerType)?a.pointerType:yc[a.pointerType]||"";this.b=a;a.defaultPrevented&&this.c()}};x(zc,M);var yc=pb({2:"touch",3:"pen",4:"mouse"});zc.prototype.c=function(){zc.M.c.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,vc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Ac="closure_listenable_"+(1E6*Math.random()|0),Bc=0;var Cc=function(a,b,c,d,e){this.listener=a;this.a=null;this.src=b;this.type=c;this.capture=!!d;this.D=e;this.key=++Bc;this.u=this.A=!1},Dc=function(a){a.u=!0;a.listener=null;a.a=null;a.src=null;a.D=null};var Ec=function(a){this.src=a;this.a={};this.b=0};Ec.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.a[f];a||(a=this.a[f]=[],this.b++);var g=Fc(a,b,d,e);-1<g?(b=a[g],c||(b.A=!1)):(b=new Cc(b,this.src,f,!!d,e),b.A=c,a.push(b));return b};
var Gc=function(a,b){var c=b.type;if(c in a.a){var d=a.a[c],e=ta(d,b),f;if(f=0<=e)z(null!=d.length),Array.prototype.splice.call(d,e,1);f&&(Dc(b),0==a.a[c].length&&(delete a.a[c],a.b--))}},Fc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.u&&f.listener==b&&f.capture==!!c&&f.D==d)return e}return-1};var Hc="closure_lm_"+(1E6*Math.random()|0),Ic={},Jc=0,Lc=function(a,b,c,d,e){if(d&&d.once)return Kc(a,b,c,d,e);if(u(b)){for(var f=0;f<b.length;f++)Lc(a,b[f],c,d,e);return null}c=Mc(c);a&&a[Ac]?(d=w(d)?!!d.capture:!!d,Nc(a),a=a.a.add(String(b),c,!1,d,e)):a=Oc(a,b,c,!1,d,e);return a},Oc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=w(e)?!!e.capture:!!e,q=Pc(a);q||(a[Hc]=q=new Ec(a));c=q.add(b,c,d,g,f);if(c.a)return c;d=Qc();c.a=d;d.src=a;d.listener=c;if(a.addEventListener)wc||
(e=g),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Rc(b.toString()),d);else if(a.addListener&&a.removeListener)z("change"===b,"MediaQueryList only has a change event"),a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Jc++;return c},Qc=function(){var a=Sc,b=kc?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},Kc=function(a,b,c,d,e){if(u(b)){for(var f=
0;f<b.length;f++)Kc(a,b[f],c,d,e);return null}c=Mc(c);return a&&a[Ac]?a.a.add(String(b),c,!0,w(d)?!!d.capture:!!d,e):Oc(a,b,c,!0,d,e)},Tc=function(a,b,c,d,e){if(u(b))for(var f=0;f<b.length;f++)Tc(a,b[f],c,d,e);else(d=w(d)?!!d.capture:!!d,c=Mc(c),a&&a[Ac])?(a=a.a,b=String(b).toString(),b in a.a&&(f=a.a[b],c=Fc(f,c,d,e),-1<c&&(Dc(f[c]),z(null!=f.length),Array.prototype.splice.call(f,c,1),0==f.length&&(delete a.a[b],a.b--)))):a&&(a=Pc(a))&&(b=a.a[b.toString()],a=-1,b&&(a=Fc(b,c,d,e)),(c=-1<a?b[a]:null)&&
Uc(c))},Uc=function(a){if(!ha(a)&&a&&!a.u){var b=a.src;if(b&&b[Ac])Gc(b.a,a);else{var c=a.type,d=a.a;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Rc(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Jc--;(c=Pc(b))?(Gc(c,a),0==c.b&&(c.src=null,b[Hc]=null)):Dc(a)}}},Rc=function(a){return a in Ic?Ic[a]:Ic[a]="on"+a},Wc=function(a,b,c,d){var e=!0;if(a=Pc(a))if(b=a.a[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.u&&
(f=Vc(f,d),e=e&&!1!==f)}return e},Vc=function(a,b){var c=a.listener,d=a.D||a.src;a.A&&Uc(a);return c.call(d,b)},Sc=function(a,b){if(a.u)return!0;if(!kc){if(!b)a:{b=["window","event"];for(var c=p,d=0;d<b.length;d++)if(c=c[b[d]],null==c){b=null;break a}b=c}d=b;b=new zc(d,this);c=!0;if(!(0>d.keyCode||void 0!=d.returnValue)){a:{var e=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(g){e=!0}if(e||void 0==d.returnValue)d.returnValue=!0}d=[];for(e=b.a;e;e=e.parentNode)d.push(e);a=a.type;for(e=d.length-
1;0<=e;e--){b.a=d[e];var f=Wc(d[e],a,!0,b);c=c&&f}for(e=0;e<d.length;e++)b.a=d[e],f=Wc(d[e],a,!1,b),c=c&&f}return c}return Vc(a,new zc(b,this))},Pc=function(a){a=a[Hc];return a instanceof Ec?a:null},Xc="__closure_events_fn_"+(1E9*Math.random()>>>0),Mc=function(a){z(a,"Listener can not be null.");if(v(a))return a;z(a.handleEvent,"An object listener must have handleEvent method.");a[Xc]||(a[Xc]=function(b){return a.handleEvent(b)});return a[Xc]};var $c=function(a){var b=[];Yc(new Zc,a,b);return b.join("")},Zc=function(){},Yc=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(u(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),Yc(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),ad(d,c),c.push(":"),Yc(a,f,c),e=","));c.push("}");
return}}switch(typeof b){case "string":ad(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}},bd={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},cd=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,ad=function(a,b){b.push('"',a.replace(cd,function(a){var b=bd[a];
b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),bd[a]=b);return b}),'"')};var N=function(){this.a=new Ec(this);this.h=this};x(N,xc);N.prototype[Ac]=!0;N.prototype.addEventListener=function(a,b,c,d){Lc(this,a,b,c,d)};N.prototype.removeEventListener=function(a,b,c,d){Tc(this,a,b,c,d)};N.prototype.dispatchEvent=function(a){Nc(this);var b=this.h,c=a.type||a;if(r(a))a=new M(a,b);else if(a instanceof M)a.target=a.target||b;else{var d=a;a=new M(c,b);Ra(a,d)}d=!0;b=a.a=b;d=dd(b,c,!0,a)&&d;return d=dd(b,c,!1,a)&&d};
var dd=function(a,b,c,d){b=a.a.a[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.u&&g.capture==c){var q=g.listener,X=g.D||g.src;g.A&&Gc(a.a,g);e=!1!==q.call(X,d)&&e}}return e&&0!=d.L},Nc=function(a){z(a.a,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var O=function(a,b){this.b={};this.a=[];this.c=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof O)for(c=a.v(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};O.prototype.w=function(){ed(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};O.prototype.v=function(){ed(this);return this.a.concat()};
var ed=function(a){if(a.c!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];P(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.c!=a.a.length){var e={};for(c=b=0;b<a.a.length;)d=a.a[b],P(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}};O.prototype.get=function(a,b){return P(this.b,a)?this.b[a]:b};O.prototype.set=function(a,b){P(this.b,a)||(this.c++,this.a.push(a));this.b[a]=b};O.prototype.forEach=function(a,b){for(var c=this.v(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
var P=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var fd=function(a){this.b=this.i=this.f="";this.l=null;this.g=this.a="";this.h=!1;var b;a instanceof fd?(this.h=a.h,gd(this,a.f),this.i=a.i,this.b=a.b,hd(this,a.l),this.a=a.a,id(this,jd(a.c)),this.g=a.g):a&&(b=String(a).match(Tb))?(this.h=!1,gd(this,b[1]||"",!0),this.i=Q(b[2]||""),this.b=Q(b[3]||"",!0),hd(this,b[4]),this.a=Q(b[5]||"",!0),id(this,b[6]||"",!0),this.g=Q(b[7]||"")):(this.h=!1,this.c=new R(null,this.h))};
fd.prototype.toString=function(){var a=[],b=this.f;b&&a.push(kd(b,ld,!0),":");var c=this.b;if(c||"file"==b)a.push("//"),(b=this.i)&&a.push(kd(b,ld,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.l,null!=c&&a.push(":",String(c));if(c=this.a)this.b&&"/"!=c.charAt(0)&&a.push("/"),a.push(kd(c,"/"==c.charAt(0)?md:nd,!0));(c=this.c.toString())&&a.push("?",c);(c=this.g)&&a.push("#",kd(c,od));return a.join("")};
fd.prototype.resolve=function(a){var b=new fd(this),c=!!a.f;c?gd(b,a.f):c=!!a.i;c?b.i=a.i:c=!!a.b;c?b.b=a.b:c=null!=a.l;var d=a.a;if(c)hd(b,a.l);else if(c=!!a.a){if("/"!=d.charAt(0))if(this.b&&!this.a)d="/"+d;else{var e=b.a.lastIndexOf("/");-1!=e&&(d=b.a.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=0==e.lastIndexOf("/",0);e=e.split("/");for(var f=[],g=0;g<e.length;){var q=e[g++];"."==q?d&&g==e.length&&f.push(""):".."==q?((1<f.length||1==f.length&&
""!=f[0])&&f.pop(),d&&g==e.length&&f.push("")):(f.push(q),d=!0)}d=f.join("/")}else d=e}c?b.a=d:c=""!==a.c.toString();c?id(b,jd(a.c)):c=!!a.g;c&&(b.g=a.g);return b};
var gd=function(a,b,c){a.f=c?Q(b,!0):b;a.f&&(a.f=a.f.replace(/:$/,""))},hd=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.l=b}else a.l=null},id=function(a,b,c){b instanceof R?(a.c=b,pd(a.c,a.h)):(c||(b=kd(b,qd)),a.c=new R(b,a.h))},Q=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},kd=function(a,b,c){return r(a)?(a=encodeURI(a).replace(b,rd),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},rd=function(a){a=a.charCodeAt(0);
return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},ld=/[#\/\?@]/g,nd=/[#\?:]/g,md=/[#\?]/g,qd=/[#\?@]/g,od=/#/g,R=function(a,b){this.b=this.a=null;this.c=a||null;this.f=!!b},S=function(a){a.a||(a.a=new O,a.b=0,a.c&&Ub(a.c,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};R.prototype.add=function(a,b){S(this);this.c=null;a=T(this,a);var c=this.a.get(a);c||this.a.set(a,c=[]);c.push(b);this.b=A(this.b)+1;return this};
var sd=function(a,b){S(a);b=T(a,b);P(a.a.b,b)&&(a.c=null,a.b=A(a.b)-a.a.get(b).length,a=a.a,P(a.b,b)&&(delete a.b[b],a.c--,a.a.length>2*a.c&&ed(a)))},td=function(a,b){S(a);b=T(a,b);return P(a.a.b,b)};h=R.prototype;h.forEach=function(a,b){S(this);this.a.forEach(function(c,d){ua(c,function(c){a.call(b,c,d,this)},this)},this)};h.v=function(){S(this);for(var a=this.a.w(),b=this.a.v(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
h.w=function(a){S(this);var b=[];if(r(a))td(this,a)&&(b=ya(b,this.a.get(T(this,a))));else{a=this.a.w();for(var c=0;c<a.length;c++)b=ya(b,a[c])}return b};h.set=function(a,b){S(this);this.c=null;a=T(this,a);td(this,a)&&(this.b=A(this.b)-this.a.get(a).length);this.a.set(a,[b]);this.b=A(this.b)+1;return this};h.get=function(a,b){if(!a)return b;a=this.w(a);return 0<a.length?String(a[0]):b};
h.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var a=[],b=this.a.v(),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.w(d);for(var f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}}return this.c=a.join("&")};
var jd=function(a){var b=new R;b.c=a.c;a.a&&(b.a=new O(a.a),b.b=a.b);return b},T=function(a,b){b=String(b);a.f&&(b=b.toLowerCase());return b},pd=function(a,b){b&&!a.f&&(S(a),a.c=null,a.a.forEach(function(a,b){var c=b.toLowerCase();b!=c&&(sd(this,b),sd(this,c),0<a.length&&(this.c=null,this.a.set(T(this,c),za(a)),this.b=A(this.b)+a.length))},a));a.f=b};Ab("ads.common.UrlMacrosSubstitutor",ub);Ab("imalib.common.hostUtils");var ud=function(a,b){this.a=a;this.depth=b},wd=function(){var a=Wb(),b=Math.max(a.length-1,0),c=Zb(a);a=c.b;var d=c.c,e=c.a,f=[];c=function(a,b){return null==a?b:a};e&&f.push(new ud([e.url,e.I?2:0],c(e.depth,1)));d&&d!=e&&f.push(new ud([d.url,2],0));a.url&&a!=e&&f.push(new ud([a.url,0],c(a.depth,b)));var g=va(f,function(a,b){return f.slice(0,f.length-b)});!a.url||(e||d)&&a!=e||(d=Rb(a.url))&&g.push([new ud([d,1],c(a.depth,b))]);g.push([]);va(g,function(a){return vd(b,a)})};
function vd(a,b){z(xa(b,function(a){return 0<=a.depth}));var c=wa(b,function(a,b){return Math.max(a,b.depth)},-1),d=Aa(c+2);d[0]=a;ua(b,function(a){return d[a.depth+1]=a.a});return d};new function(){try{wd()}catch(a){}};var U=function(a){return(a=a.exec(B))?a[1]:""};(function(){if(ib)return U(/Firefox\/([0-9.]+)/);if(D||Xa||Wa)return eb;if(mb)return Ta()||C("iPad")||C("iPod")?U(/CriOS\/([0-9.]+)/):U(/Chrome\/([0-9.]+)/);if(nb&&!(Ta()||C("iPad")||C("iPod")))return U(/Version\/([0-9.]+)/);if(jb||kb){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(B);if(a)return a[1]+"."+a[2]}else if(lb)return(a=U(/Android\s+([0-9.]+)/))?a:U(/Version\/([0-9.]+)/);return""})();if(D&&D)try{new ActiveXObject("MSXML2.DOMDocument")}catch(a){};var xd=function(a){this.U=a;this.T={}};x(xd,xc);var yd=[],zd=function(a,b,c,d){u(c)||(c&&(yd[0]=c.toString()),c=yd);for(var e=0;e<c.length;e++){var f=Lc(b,c[e],d||a.handleEvent,!1,a.U||a);if(!f)break;a.T[f.key]=f}};xd.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Ab("goog.net.XhrIo");Ab("ima.common.UrlNavigator");var Ad={wa:"collapseAd",xa:"expandAd",ya:"getAdIcons",za:"getAdCompanions",Aa:"getAdDuration",Ba:"getAdExpanded",Ca:"getAdHeight",Da:"getAdLinear",Ea:"getAdRemainingTime",Fa:"getAdSkippableState",Ga:"getAdVolume",Ha:"getAdWidth",Ia:"handshakeVersion",INIT:"initAd",Ja:"pauseAd",Ka:"resizeAd",La:"resumeAd",Na:"skipAd",Oa:"startAd",Ma:"setAdVolume",Pa:"stopAd",Qa:"subscribe",Ra:"unsubscribe"};var Bd=function(a,b,c){this.g=a;this.a=b;this.f=c;this.b=new Map;this.c=!1},Cd=function(a){a.b.forEach(function(a,c){if(this.a){try{this.a.unsubscribe(a,c)}catch(d){}try{this.a.unsubscribe(c,a)}catch(d){}}},a);a.b.clear()};h=Bd.prototype;
h.W=function(a,b,c){var d=null;/^[\s\xa0]*$/.test(La(a))?/^[\s\xa0]*$/.test(La(this.f))||(d=this.f):d=a;if(c&&null!=d&&(a=new E(Cb,"_blank"),!/^[\s\xa0]*$/.test(La(d)))){c=window;if(d instanceof G)var e=d;else e=d,e instanceof G||(e="object"==typeof e&&e.F?e.C():String(e),z(Ib.test(e))||(e="about:invalid#zClosurez"),e=Jb(e));(c||window).open(Hb(e),a?Eb(a):"",void 0,void 0)}V(this,"AdClickThru",{url:d,id:b})};
h.X=function(){var a=this.a.getAdDuration(),b=this.a.getAdRemainingTime();V(this,"AdDurationChange",{duration:a,remainingTime:b})};h.Y=function(a){V(this,"AdError",{message:a})};h.Z=function(){var a={};a.expanded=this.a.getAdExpanded();V(this,"AdExpandedChange",a)};h.$=function(){V(this,"AdImpression")};h.aa=function(a){V(this,"AdInteraction",{id:a})};h.ba=function(){var a={};a.isLinear=this.a.getAdLinear();V(this,"AdLinearChange",a)};
h.ca=function(){var a={companions:v(this.a.getAdCompanions)?this.a.getAdCompanions():""};V(this,"AdLoaded",a)};h.da=function(a){V(this,"AdLog",{message:a})};h.ea=function(){V(this,"AdPaused")};h.fa=function(){V(this,"AdPlaying")};h.ga=function(){var a={remainingTime:this.a.getAdRemainingTime()};V(this,"AdRemainingTimeChange",a)};h.ha=function(){V(this,"AdSizeChange")};h.ja=function(){V(this,"AdSkipped")};h.ka=function(){V(this,"AdStarted")};h.la=function(){Cd(this);V(this,"AdStopped");this.c=!0};
h.ia=function(){V(this,"AdSkippableStateChange")};h.ma=function(){V(this,"AdUserAcceptInvitation")};h.na=function(){V(this,"AdUserClose")};h.oa=function(){V(this,"AdUserMinimize")};h.pa=function(){V(this,"AdVideoComplete")};h.qa=function(){V(this,"AdVideoFirstQuartile")};h.ra=function(){V(this,"AdVideoMidpoint")};h.sa=function(){V(this,"AdVideoStart")};h.ta=function(){V(this,"AdVideoThirdQuartile")};h.ua=function(){var a={volume:this.a.getAdVolume()};V(this,"AdVolumeChange",a)};
h.va=function(a){V(this,"Ping",{url:a})};var W=function(a,b,c){b=oa(b,a);a.b.set(c,b);a.a.subscribe(b,c)},V=function(a,b,c){a.c||(c||(c={}),a={type:b,session:a.g},Ra(a,c),window.parent!=window&&window.parent.postMessage($c(a),"*"))};var Y=function(){N.call(this);this.duration=this.currentTime=0;this.type=this.src="";this.playbackRate=1;this.ended=!1;this.paused=!0;this.g=[];this.f="";this.b=this.c=null};x(Y,N);Y.prototype.load=function(){Dd({type:"videoCall",func:"load",src:this.src,mimetype:this.type,session:this.f})};Y.prototype.o=function(){var a=this;this.paused=!1;Dd({type:"videoCall",func:"play",src:this.src,mimetype:this.type,session:this.f});return new Promise(function(b,c){a.c=b;a.b=c})};
Y.prototype.l=function(){this.paused=!0;Dd({type:"videoCall",func:"pause",session:this.f})};var Dd=function(a){window.parent!=window&&window.parent.postMessage($c(a),"*")};Y.prototype.i=function(a){return this.g.includes(a)?"maybe":""};Y.prototype.s=function(a,b){["type","src"].includes(a)&&(this[a]=b)};Y.prototype.removeEventListener=function(a,b,c,d){null!=b&&Y.M.removeEventListener.call(this,a,b,c,d)};Y.prototype.removeEventListener=Y.prototype.removeEventListener;
Y.prototype.addEventListener=Y.prototype.addEventListener;Y.prototype.canPlayType=Y.prototype.i;Y.prototype.load=Y.prototype.load;Y.prototype.pause=Y.prototype.l;Y.prototype.play=Y.prototype.o;Y.prototype.setAttribute=Y.prototype.s;var Z=function(a,b){xd.call(this);this.R=!!a;this.a=null;this.J="";this.N=-2;this.g=this.s="";this.K=null;this.o=new Y;this.b=this.f=null;this.P=[];this.G="";this.l=this.i=0;(this.c=null!=b)?zd(this,window.parent,"message",this.O):zd(this,window,"message",this.O);null!=b&&(this.c=!0,this.g=b,Ed(this,"friendlyReady"))};x(Z,xd);Z.prototype.V=function(a,b){this.f=a;this.b=b};var Ed=function(a,b,c){c=c||{};window.parent!=window&&(c.type=b,c.session=a.g,a=$c(c),window.parent.postMessage(a,"*"))};
Z.prototype.O=function(a){try{var b=JSON.parse(a.b.data)}catch(e){return}a=b.type;var c=b.session;if(!this.c&&"initAd"==a)this.g=c,this.o.f=this.g;else if(this.g!=c)return;switch(a){case "wrapperCall":a=this.o;c=b.messageType;var d=!1;switch(c){case "ended":a.ended=!0;break;case "pause":a.paused=!0;break;case "play":a.paused=!1;a.ended=!1;break;case "playing":null!=a.c&&(a.c(),a.b=null,a.c=null);a.paused=!1;a.ended=!1;break;case "supportedMimeTypes":d=!0;a.g=b.supportedMimeTypes;break;case "timeupdate":a.duration=
b.duration;a.currentTime=b.currentTime;break;case "loadedmetadata":a.duration=b.duration;break;case "autoplayDisallowed":null!=a.b&&(a.b(),a.b=null,a.c=null)}d||a.dispatchEvent({type:c});break;case "initAd":this.G=b.clickThroughUrl;this.J=b.viewMode;this.N=b.desiredBitrate;this.s=b.creativeData;if(this.R)this.H();else{this.c?a=b.adUrl:(a=new fd(window.location.href),a=Q(a.c.toString()));c=a;this.c&&this.f&&(this.f.volume=b.volume);b=Nb("SCRIPT",{type:"text/javascript"});a=new F;a.a=c;c=(c=b&&b.ownerDocument)&&
(c.defaultView||c.parentWindow)||p;"undefined"!=typeof c.HTMLScriptElement&&"undefined"!=typeof c.Location&&"undefined"!=typeof c.Element&&z(b&&(b instanceof c.HTMLScriptElement||!(b instanceof c.Location||b instanceof c.Element)),"Argument is not a %s (or a non-Element, non-Location mock); got: %s","HTMLScriptElement",w(b)?b.constructor.displayName||b.constructor.name||Object.prototype.toString.call(b):void 0===b?"undefined":null===b?"null":typeof b);a instanceof F&&a.constructor===F&&a.b===Fb?a=
a.a:(sa("expected object of type TrustedResourceUrl, got '"+a+"' of type "+t(a)),a="type_error:TrustedResourceUrl");b.src=a;if(null===ja)a:{a=p.document;if((a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&ia.test(a)){ja=a;break a}ja=""}(a=ja)&&b.setAttribute("nonce",a);zd(this,b,"load",this.H);zd(this,b,"error",this.h);window.document.body.appendChild(b)}break;case "getAdDuration":Fd(this,"getAdDuration","returnDuration","duration");break;case "getAdRemainingTime":Fd(this,
"getAdRemainingTime","returnRemainingTime","remainingTime");break;case "setAdVolume":null!=this.a&&this.a.setAdVolume(b.value);break;case "resizeAd":a=b.width;c=b.height;b=b.viewMode;this.f&&this.f.style&&(this.f.style.width=a+"px",this.f.style.height=c+"px");this.b&&this.b.style&&(this.i=c,this.l=a,this.b.style.height=c+"px",this.b.style.width=a+"px");if(null!=this.a)try{this.a.resizeAd(a,c,b)}catch(e){this.h(e)}break;case "friendlyReady":break;default:if(this.a){if(v(this.a[a]))this.a[a]()}else this.P.push(a)}};
Z.prototype.h=function(a){Ed(this,"AdError",{message:null!=a?a.message:""})};var Gd=function(a){Pa(Ad,function(a){if("getAdCompanions"!=a&&!(a in this.a&&v(this.a[a])))throw Error("missing functions "+a);},a);if("2.0"!=a.a.handshakeVersion("2.0"))throw Error("version");},Hd=function(a){a.P.forEach(function(b){if(v(a.a[b]))a.a[b]()})};
Z.prototype.H=function(){var a=window.getVPAIDAd;try{this.a=a(),Gd(this),Hd(this)}catch(c){this.h(c);return}if(null==this.a)this.h();else{a=this.K=new Bd(this.g,this.a,this.G);W(a,a.W,"AdClickThru");W(a,a.X,"AdDurationChange");W(a,a.Y,"AdError");W(a,a.Z,"AdExpandedChange");W(a,a.$,"AdImpression");W(a,a.aa,"AdInteraction");W(a,a.ba,"AdLinearChange");W(a,a.ca,"AdLoaded");W(a,a.da,"AdLog");W(a,a.ea,"AdPaused");W(a,a.fa,"AdPlaying");W(a,a.ga,"AdRemainingTimeChange");W(a,a.ha,"AdSizeChange");W(a,a.ja,
"AdSkipped");W(a,a.ka,"AdStarted");W(a,a.la,"AdStopped");W(a,a.ia,"AdSkippableStateChange");W(a,a.ma,"AdUserAcceptInvitation");W(a,a.na,"AdUserClose");W(a,a.oa,"AdUserMinimize");W(a,a.pa,"AdVideoComplete");W(a,a.qa,"AdVideoFirstQuartile");W(a,a.ra,"AdVideoMidpoint");W(a,a.sa,"AdVideoStart");W(a,a.ta,"AdVideoThirdQuartile");W(a,a.ua,"AdVolumeChange");W(a,a.va,"Ping");this.c?a={slot:this.b,videoSlot:this.f,videoSlotCanAutoPlay:!0}:(this.b=document.getElementById("slot"),null==this.b?a=window.document.body:
(0!=window.innerHeight?this.b.style.height=window.innerHeight+"px":0!=this.i&&(this.b.style.height=this.i+"px"),0!=window.innerWidth?this.b.style.width=window.innerWidth+"px":0!=this.l&&(this.b.style.width=this.l+"px"),a=this.b),a={slot:a,videoSlot:this.o,videoSlotCanAutoPlay:!0});var b={AdParameters:this.s};try{this.a.initAd(this.c?this.b.clientWidth||this.l:window.innerWidth,this.c?this.b.clientHeight||this.i:window.innerHeight,this.J,this.N,b,a)}catch(c){this.h(c)}}};
var Fd=function(a,b,c,d){var e=-1;try{e=a.a[b]()}catch(f){}ha(e)||(e=-1);b={};b[d]=e;Ed(a,c,b)};Z.prototype.initFriendly=Z.prototype.V;window.VPAIDLoader=Z;}).call(this);