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