(function(){'use strict';var aa=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};function ba(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b{throw a;},0)};var q,r;a:{for(var fa=["CLOSURE_FLAGS"],t=m,u=0;ub&&b.indexOf(a)!=-1):!1:!1}function z(a){var b;a:{if(b=m.navigator)if(b=b.userAgent)break a;b=""}return b.indexOf(a)!=-1};function D(){return q?!!y&&y.brands.length>0:!1}function ka(){return D()?ja("Chromium"):(z("Chrome")||z("CriOS"))&&!(D()?0:z("Edge"))||z("Silk")};function oa(a){oa[" "](a);return a}oa[" "]=function(){};!z("Android")||ka();ka();z("Safari")&&(ka()||(D()?0:z("Coast"))||(D()?0:z("Opera"))||(D()?0:z("Edge"))||(D()?ja("Microsoft Edge"):z("Edg/"))||D()&&ja("Opera"));var E=Symbol();var pa={},qa={};function ra(a){return!(!a||typeof a!=="object"||a.g!==qa)}function F(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}function G(a){return!Array.isArray(a)||a.length?!1:(a[E]|0)&1?!0:!1};function sa(a){var b=ta;if(a===null||a===void 0)throw b=(typeof b==="function"?b():b)?.concat("\n")??"",Error(b+String(a));return a}let ta=void 0;const ua=BigInt(Number.MIN_SAFE_INTEGER),va=BigInt(Number.MAX_SAFE_INTEGER);function wa(a,b=`unexpected value ${a}!`){throw Error(b);};function xa(a,b){var c=ya?.get(b)?.get(a),d;if(d=c){a:if(a.length!==c.length)c=!1;else{for(const e in c){var f=Number(e);if(d=Number.isInteger(f))d=a[f],f=c[f],d=!(Number.isNaN(d)?Number.isNaN(f):d===f);if(d){c=!1;break a}}c=!0}d=!c}d&&(za(),ya?.get(b)?.delete(a))}function za(){const a=Error();a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity="incident";ea(a)}let ya=void 0;let I;function Aa(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "bigint":return a>=ua&&a<=va?Number(a):String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(G(a))return}else if(a!=null&&a instanceof Uint8Array){let b="",c=0;const d=a.length-10240;for(;c>15&1023||536870912;b>=d?b=c&256?a[a.length-1][b]:void 0:(b+=+!!(c&512)-1,b=b<0||b>=a.length||b>=d?void 0:a[b])}return b}function J(a,b){a=Ea(a,b);return(a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0)??!1}function K(a,b){a=Ea(a,b);return(a==null||typeof a==="string"?a:void 0)??""}function L(a,b){a=Ea(a,b);return(a==null?a:Number.isFinite(a)?a|0:void 0)??0};let M;var Ga=class{constructor(a){a:{var b=b??0;a==null&&(a=I);I=void 0;if(a==null){var c=96;a=[]}else{if(!Array.isArray(a))throw Error("narr");c=a[E]|0;if(c&2048)throw Error("farr");if(c&64)break a;b===1||b===2||(c|=64);b=a;var d=b.length;if(d&&(--d,F(b[d]))){c|=256;b=d-(+!!(c&512)-1);if(b>=1024)throw Error("pvtlmt");c=c&-33521665|(b&1023)<<15}}a[E]=c}this.g=a}toJSON(){return Fa(this)}};Ga.prototype.J=pa;Ga.prototype.toString=function(){try{return M=!0,Fa(this).toString()}finally{M=!1}}; function Fa(a){if(a&&ya?.has(a)){var b=a.g;if(b)for(var c=0;c0;d--){l=c[d-1];if(!(l==null||G(l)||ra(l)&&l.size===0))break;var h=!0}if(c!==a||g||h){if(!b)c=Array.prototype.slice.call(c,0,d);else if(h||g||k)c.length=d;k&&c.push(k)}h=c}else h=a;return h};function Ha(a,b,c){a.addEventListener&&a.addEventListener(b,c,!1)};var Ia=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Ja(a,b){if(a)for(const c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)}let N=[];const Ka=()=>{const a=N;N=[];for(const b of a)try{b()}catch{}}; var La=a=>{N.push(a);N.length==1&&(window.Promise?Promise.resolve().then(Ka):window.setImmediate?setImmediate(Ka):setTimeout(Ka,0))},Ma=a=>new Promise(b=>{a.readyState==="complete"||a.readyState==="interactive"?La(b):a.addEventListener("DOMContentLoaded",b)}),Na=a=>new Promise(b=>{a.document.readyState==="complete"?La(b):a.addEventListener("load",b)});function Oa(a=document){return a.createElement("img")};function Pa(a){m.google_image_requests||(m.google_image_requests=[]);const b=Oa(m.document);b.src=a;m.google_image_requests.push(b)};let Ua=0;function Va(a){return(a=Wa(a,document.currentScript))&&a.getAttribute("data-jc-version")||"unknown"}function Wa(a,b=null){return b&&b.getAttribute("data-jc")===String(a)?b:document.querySelector(`[${"data-jc"}="${a}"]`)};var Xa=class{constructor(a,b){this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta={}}};function Ya(a){let b=a.toString();a.name&&b.indexOf(a.name)==-1&&(b+=": "+a.name);a.message&&b.indexOf(a.message)==-1&&(b+=": "+a.message);if(a.stack)a:{a=a.stack;var c=b;try{a.indexOf(c)==-1&&(a=c+"\n"+a);let d;for(;a!=d;)d=a,a=a.replace(RegExp("((https?:/..*/)[^/:]*:\\d+(?:.|\n)*)\\2"),"$1");b=a.replace(RegExp("\n *","g"),"\n");break a}catch(d){b=c;break a}b=void 0}return b};const Za=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");var $a=class{constructor(a,b){this.g=a;this.h=b}},ab=class{constructor(a,b){this.url=a;this.H=!!b;this.depth=null}};let O=null;function bb(){const a=m.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):Date.now()}function cb(){const a=m.performance;return a&&a.now?a.now():null};var db=class{constructor(a,b){var c=cb()||bb();this.label=a;this.type=b;this.value=c;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}};const P=m.performance,eb=!!(P&&P.mark&&P.measure&&P.clearMarks),Q=function(a){let b=!1,c;return function(){b||(c=a(),b=!0);return c}}(()=>{var a;if(a=eb){var b;if(O===null){O="";try{a="";try{a=m.top.location.hash}catch(c){a=m.location.hash}a&&(O=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=O;a=!!b.indexOf&&b.indexOf("1337")>=0}return a});function fb(a){a&&P&&Q()&&(P.clearMarks(`goog_${a.label}_${a.uniqueId}_start`),P.clearMarks(`goog_${a.label}_${a.uniqueId}_end`))} class gb{constructor(){var a=window;this.h=[];this.i=a||m;let b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.h=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.g=Q()||(b!=null?b:Math.random()<1)}start(a,b){if(!this.g)return null;a=new db(a,b);b=`goog_${a.label}_${a.uniqueId}_start`;P&&Q()&&P.mark(b);return a}end(a){if(this.g&&typeof a.value==="number"){a.duration=(cb()||bb())-a.value;var b=`goog_${a.label}_${a.uniqueId}_end`;P&&Q()&&P.mark(b);!this.g||this.h.length> 2048||this.h.push(a)}}};function R(a,b){const c={};c[a]=b;return[c]}function hb(a,b,c,d,f){const e=[];Ja(a,(g,l)=>{(g=ib(g,b,c,d,f))&&e.push(`${l}=${g}`)});return e.join(b)} function ib(a,b,c,d,f){if(a==null)return"";b=b||"&";c=c||",$";typeof c==="string"&&(c=c.split(""));if(a instanceof Array){if(d||(d=0),db&&(b=c.length);return 3997-b-a.i.length-1} function kb(a,b){let c="https://pagead2.googlesyndication.com"+b,d=jb(a)-b.length;if(d<0)return"";a.g.sort((e,g)=>e-g);b=null;let f="";for(let e=0;e=h.length){d-=h.length;c+=h;f=a.i;break}b=b==null?g:b}}}a="";b!=null&&(a=`${f}${"trn"}=${b}`);return c+a}var lb=class{constructor(){this.i="&";this.h={};this.j=0;this.g=[]}};function mb(a,b,c){let d,f;try{a.g&&a.g.g?(f=a.g.start(b.toString(),3),d=c(),a.g.end(f)):d=c()}catch(e){c=!0;try{fb(f),c=a.m(b,new Xa(e,{message:Ya(e)}),void 0,void 0)}catch(g){a.l(217,g)}if(c)window.console?.error?.(e);else throw e;}return d}function nb(a,b,c){return(...d)=>mb(a,b,()=>c.apply(void 0,d))} var pb=class{constructor(a=null){this.j=S;this.g=a;this.h=null;this.i=!1;this.m=this.l}l(a,b,c,d,f){f=f||"jserror";let e;try{const v=new lb;var g=v;g.g.push(1);g.h[1]=R("context",a);b.error&&b.meta&&b.id||(b=new Xa(b,{message:Ya(b)}));if(b.msg){g=v;var l=b.msg.substring(0,512);g.g.push(2);g.h[2]=R("msg",l)}var k=b.meta||{};b=k;if(this.h)try{this.h(b)}catch(p){}if(d)try{d(b)}catch(p){}d=v;k=[k];d.g.push(3);d.h[3]=k;d=m;k=[];let U;b=null;do{var h=d;try{var n;if(n=!!h&&h.location.href!=null)b:{try{oa(h.foo); n=!0;break b}catch(p){}n=!1}var A=n}catch{A=!1}A?(U=h.location.href,b=h.document&&h.document.referrer||null):(U=b,b=null);k.push(new ab(U||""));try{d=h.parent}catch(p){d=null}}while(d&&h!=d);for(let p=0,Qa=k.length-1;p<=Qa;++p)k[p].depth=Qa-p;h=m;if(h.location&&h.location.ancestorOrigins&&h.location.ancestorOrigins.length==k.length-1)for(A=1;A=0;--B){var x=w[B];!h&&Za.test(x.url)&&(h=x);if(x.url&&!x.H){la=x;break}}x=null;const zb=w.length&&w[ma].url;la.depth!=0&&zb&&(x=w[ma]);e=new $a(la,x);if(e.h){w=v;var C=e.h.url||"";w.g.push(4);w.h[4]=R("top",C)}var na={url:e.g.url||""};if(e.g.url){const p=e.g.url.match(Ia);var H=p[1],Ra=p[3],Sa=p[4];C="";H&&(C+=H+":");Ra&&(C+="//",C+=Ra,Sa&&(C+=":"+Sa));var Ta=C}else Ta="";H=v;na=[na,{url:Ta}];H.g.push(5);H.h[5]=na;ob(this.j,f,v,this.i,c)}catch(v){try{ob(this.j,f,{context:"ecmserr",rctx:a,msg:Ya(v), url:e&&e.g.url},this.i,c)}catch(U){}}return!0}};function ob(a,b,c,d=!1,f){if((d?a.g:Math.random())<(f||.01))try{let e;c instanceof lb?e=c:(e=new lb,Ja(c,(l,k)=>{var h=e;const n=h.j++;l=R(k,l);h.g.push(n);h.h[n]=l}));const g=kb(e,"/pagead/gen_204?id="+b+"&");g&&Pa(g)}catch(e){}}function qb(){var a=S,b=window.google_srt;b>=0&&b<=1&&(a.g=b)}class rb{constructor(){this.g=Math.random()}};let S,T;const V=new gb;var sb=()=>{window.google_measure_js_timing||(V.g=!1,V.h!=V.i.google_js_reporting_queue&&(Q()&&Array.prototype.forEach.call(V.h,fb,void 0),V.h.length=0))};(a=>{S=a??new rb;typeof window.google_srt!=="number"&&(window.google_srt=Math.random());qb();T=new pb(V);T.h=b=>{const c=Ua;c!==0&&(b.jc=String(c),b.shv=Va(c))};T.i=!0;window.document.readyState=="complete"?sb():V.g&&Ha(window,"load",()=>{sb()})})();var tb=function(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[E]|=32;I=b;b=new a(b);I=void 0}return b}}(class extends Ga{});var W=a=>{a.googMsgType="fullscreen"},ub=(a,b)=>{const c=f=>{let e;try{e=JSON.parse(f.data)}catch(g){return}!e||e.googMsgType!=="fullscreen"||b(e,f)};Ha(a,"message",c);let d=!1;return()=>{let f=!1;d||(d=!0,a.removeEventListener?(a.removeEventListener("message",c,!1),f=!0):f=!1);return f}};function vb(a,b,c,d){return ub(a,nb(d,952,(f,e)=>{if(e.source===b){if(!("eventType"in f))throw Error(`bad message ${JSON.stringify(f)}`);delete f.googMsgType;c(f)}}))}function wb(a,b){W(b);a.postMessage(JSON.stringify(b),"*")};class xb{constructor(){this.promise=new Promise((a,b)=>{this.resolve=a;this.reject=b})}};function yb(a){a.google_llp||(a.google_llp={});a=a.google_llp;let b=a[10];if(b)return b;const {promise:c,resolve:d}=new xb;b={promise:c,resolve:d};return a[10]=b};function X(){this.j=this.j;this.h=this.h}X.prototype.j=!1;X.prototype.dispose=function(){if(!this.j&&(this.j=!0,this.h))for(;this.h.length;)this.h.shift()()};X.prototype[Symbol.dispose]=function(){this.dispose()};function Ab(a,b){a.j?b():(a.h||(a.h=[]),a.h.push(b))};function Bb(a){const b=vb(a.i,a.l,c=>{if(c.eventType==="visible")Cb(a);else if(c.eventType==="backButton")for(const d of a.C)mb(a.s,1003,d)},a.s);Ab(a,b);Db(a);Eb(a)}function Y(a,b){Fb(a,"usg_err",{error:b,stack:Error().stack??""},.25);throw Error(`FullscreenApi usage error: '${b}'. See ApiError in fullscreen/proto/enums.proto for details`);} function Z(a,b,c){b.includes(a.g)?a.g=c:(Fb(a,"st_err",{old_state:a.g,new_state:c}),J(a.config,8)&&(a.g=6,a=a.l,b={eventType:"adError"},W(b),a.postMessage(JSON.stringify(b),"*")))}function Fb(a,b,c,d=.01){c.type=b;c.version=Va(105);c.slot=L(a.config,3);c.freq=d;c.qem=K(a.config,7);ob(a.I,"fullscreen_adapter",c,!1,d)} function Db(a){const b=a.i;if(b.IntersectionObserver){var c=new b.IntersectionObserver(nb(a.s,954,(d,f)=>{for(const e of d)e.intersectionRatio<=0||(Cb(a),f.disconnect())}),{threshold:.1});c.observe(b.document.documentElement);Ab(a,()=>{c.disconnect()})}} async function Eb(a){let b;const c=Gb(a),d=L(a.config,5);switch(d){case 0:throw Error("adReadyTrigger is not set");case 1:b=Promise.resolve();break;case 2:b=Ma(c?sa(c.contentDocument):a.i.document);break;case 3:b=Na(c?sa(c.contentWindow):a.i);break;default:wa(d,void 0)}try{await b.then(()=>Promise.all(a.A))}catch{a.notifyError("rejected adReadyDelay");return}wb(a.l,{eventType:"adReady",slotType:L(a.config,3),qem:K(a.config,7)});a.B=!0;Z(a,[1],2)} function Gb(a){const b=K(a.config,2);return b===""?null:a.i.document.getElementById(b)}function Cb(a){a.m=!0;Z(a,[2],3);a.F.resolve()} class Hb extends X{constructor(a,b,c,d){super();this.config=a;this.i=b;this.s=c;this.I=d;this.F=new xb;this.D=new xb;this.B=this.v=this.m=this.o=!1;this.G=void 0;this.C=[];this.A=[];this.g=1;this.l=b.parent;this.u=L(a,1)===2}delayAdReadyEvent(a){if(this.u)(J(this.config,8)?this.g===2||this.g===3||this.g===4||this.g===5:this.B)&&Y(this,7),this.A.push(a);else throw Error("not implemented");}async waitForOnShow(){this.u&&!this.o&&Y(this,2);return this.F.promise}enableCustomCloseButton(){this.o=!0}disableCustomCloseButton(){this.o= !1}closeAd(){(J(this.config,8)?this.g===3||this.g===4:this.m)||Y(this,3);var a=1;L(this.config,3)===2&&(a=(J(this.config,8)?this.g===4:this.v)?2:3);var b=this.G;a={status:a};b!=null&&(a.payload=b);b=this.l;a={eventType:"adClosed",result:a};W(a);b.postMessage(JSON.stringify(a),"*");Z(this,[3,4,5],5)}grantReward(a){L(this.config,3)!==2&&Y(this,4);(J(this.config,8)?this.g===3||this.g===4:this.m)||Y(this,5);(J(this.config,8)?this.g===4:this.v)&&Y(this,6);this.v=!0;Z(this,[3],4);this.G=a;this.D.resolve()}async waitForGrantReward(){return this.D.promise}listenToBackButton(a){this.C.push(a)}notifyError(a){Fb(this, "ntf_err",{error:a},.25);a=this.l;var b={eventType:"adError"};W(b);a.postMessage(JSON.stringify(b),"*")}}function Ib(a,b,c){yb(a).resolve(b);c=K(c,2);if(c!==""){var d=a.document.getElementById(c);if(d==null)throw Error(`no creative iframe for id ${c}`);a=()=>{yb(d.contentWindow).resolve(b)};d.contentWindow==null?d.addEventListener("load",a):a()}};var Jb;Jb=nb(T,953,a=>{var b=window,c=T,d=S;a=tb(a.config);c=new Hb(a,b,c,d);if(!J(a,4))if(c.u)Bb(c);else throw Error(`Can't handle environment ${L(c.config,1)}`);Ib(b,J(a,4)?null:c,a)});Ua=105;const Kb=Wa(105,document.currentScript);if(Kb==null)throw Error("JSC not found 105");const Lb={},Mb=Kb.attributes;for(let a=Mb.length-1;a>=0;a--){const b=Mb[a].name;b.indexOf("data-jcp-")===0&&(Lb[b.substring(9)]=Mb[a].value)}Jb(Lb);}).call(this);