You are on page 1of 2

(function(){/*

Copyright The Closure Library Authors.


SPDX-License-Identifier: Apache-2.0
*/
'use strict';var g=this||self;function l(a){l[" "](a);return a}l[" "]=function()
{};function m(a){let b=g,c=0;for(;b&&40>c++;){var e=!1;try{var d;if(d=!!b&&null!
=b.location.href)b:{try{l(b.foo);d=!0;break b}catch(f){}d=!1}e=d}catch{e=!
1}if(e&&a(b))break;a:{try{const f=b.parent;if(f&&f!=b){b=f;break
a}}catch{}b=null}}}function n(a,b){if(a)for(const c in
a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)}function p(a=document)
{return a.createElement("img")};function q(){return new r(a=>a(void 0))}function
t(a,b){if(!a.h)if(b instanceof r)b.then(c=>{t(a,c)});else{a.h=!
0;a.i=b;for(b=0;b<a.g.length;++b)u(a,a.g[b]);a.g=[]}}function u(a,b){a.h?
b(a.i):a.g.push(b)}class r{constructor(a){this.h=!
1;this.g=[];a(b=>{t(this,b)})}then(a){return new r(b=>{u(this,c=>{b(a(c))})})}};var
w=a=>{let b="https://pagead2.googlesyndication.com/pagead/gen_204?id=rhmss";n(a,
(c,e)=>{if(c||0===c)b+=`&${e}=${encodeURIComponent(""+c)}`});v(b)},v=a=>{var
b=window;if(b.fetch)b.fetch(a,{keepalive:!
0,credentials:"include",redirect:"follow",method:"get",mode:"no-
cors"});else{b.google_image_requests||(b.google_image_requests=[]);const
c=p(b.document);c.src=a;b.google_image_requests.push(c)}};function x(a){if(!a)throw
Error("functionToExecute must not be truthy.");};function y(){return/\d+\.\d+\.\d+
(-.*)?/.test("1.4.3-google_20230308")}function z(){const
a=["1","4","3"],b=["1","0","3"];for(let c=0;3>c;c++){const
e=parseInt(a[c],10),d=parseInt(b[c],10);if(e>d)break;else if(e<d)return!1}return!
0};function A(a){return!!a&&void 0!==a.omid_message_guid&&void 0!
==a.omid_message_method&&void 0!==a.omid_message_version&&"string"===typeof
a.omid_message_guid&&"string"===typeof a.omid_message_method&&"string"===typeof
a.omid_message_version&&(void 0===a.omid_message_args||void 0!
==a.omid_message_args)}function B(a){return new
C(a.omid_message_guid,a.omid_message_method,a.omid_message_version,a.omid_message_a
rgs)}
function D(a){const
b={omid_message_guid:a.h,omid_message_method:a.method,omid_message_version:a.versio
n};void 0!==a.g&&(b.omid_message_args=a.g);return b}class C{constructor(a,b,c,e)
{this.h=a;this.method=b;this.version=c;this.g=e}};class E{constructor(a)
{this.h=a}};function F(a,b){return a&&(a[b]||(a[b]={}))};function G()
{return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{let
b=16*Math.random()|0;return"y"===a?(b&3|8).toString(16):b.toString(16)})};function
H(...a){I(()=>{throw Error("Could not complete the test successfully - ",...a);},
()=>console.error(...a))}function I(a,b){"undefined"!==typeof jasmine&&jasmine?
a():"undefined"!==typeof console&&console&&console.error&&b()};var J=function()
{if("undefined"!==typeof omidGlobal&&omidGlobal)return omidGlobal;if("undefined"!
==typeof global&&global)return global;if("undefined"!==typeof window&&window)return
window;if("undefined"!==typeof globalThis&&globalThis)return globalThis;const
a=Function("return this")();if(a)return a;throw Error("Could not determine global
object context.");}();function K(a){try{return a.frames?!!
a.frames.omid_v1_present:!1}catch(b){return!1}};class L extends E{constructor(a)
{super(a);this.handleExportedMessage=L.prototype.i.bind(this)}sendMessage(a,b=this.
h){if(!b)throw Error("Message destination must be defined at construction time or
when sending the message.");b.handleExportedMessage(D(a),this)}i(a,b)
{A(a)&&this.g&&this.g(B(a),b)}};function M(a){return null!=a&&"undefined"!==typeof
a.top&&null!=a.top}function N(a){if(a===J)return!1;try{if("undefined"===typeof
a.location.hostname)return!0}catch(b){return!0}return!1};class O extends
E{constructor(a,b=J){super(b);a.addEventListener("message",c=>{if("object"===typeof
c.data){var
e=c.data;A(e)&&c.source&&this.g&&this.g(B(e),c.source)}})}sendMessage(a,b=this.h)
{if(!b)throw Error("Message destination must be defined at construction time or
when sending the message.");b.postMessage(D(a),"*")}};const
P=["omid","v1_VerificationServiceCommunication"],Q=["omidVerificationProperties","s
erviceWindow"];function R(a,b){return b.reduce((c,e)=>c&&c[e],a)};function
S(a,b,c,...e){if(a.g){var
d=G();c&&(a.i[d]=c);b="VerificationService."+b;e=y()&&z()?
e:JSON.stringify(e);a.g.sendMessage(new C(d,b,"1.4.3-google_20230308",e))}}
class T{constructor(a){if(!a){var b;"undefined"===typeof b&&"undefined"!==typeof
window&&window&&(b=window);b=M(b)?b:J;a=[];var c=R(b,Q);c&&a.push(c);a.push(M(b)?
b.top:J);a:{for(const f of a){b:{a=b;c=f;var e=K;if(!N(c))try{const h=R(c,P);if(h)
{var d=new L(h);break b}}catch(h){}d=e(c)?new O(a,c):null}if(a=d)break
a}a=null}}if(this.g=a)this.g.g=this.j.bind(this);else
if(d=(d=J.omid3p)&&"function"===typeof
d.registerSessionObserver&&"function"===typeof d.addEventListener?
d:null)this.omid3p=d;this.i=
{};this.h=(d=J.omidVerificationProperties)?d.injectionId:void
0}registerSessionObserver(a,b){x(a);this.omid3p?
this.omid3p.registerSessionObserver(a,b,this.h):S(this,"addSessionListener",a,b,thi
s.h)}addEventListener(a,b){if(!a)throw Error("Value for eventType is undefined,
null or blank.");if("string"!==typeof a&&!(a instanceof String))throw Error("Value
for eventType is not a string.");if(""===a.trim())throw Error("Value for eventType
is empty string.");x(b);this.omid3p?this.omid3p.addEventListener(a,
b,this.h):S(this,"addEventListener",b,a,this.h)}j(a){const
b=a.method,c=a.h;a=a.g;if("response"===b&&this.i[c]){var e=y()&&z()?a?a:
[]:a&&"string"===typeof a?JSON.parse(a):
[];this.i[c].apply(this,e)}"error"===b&&window.console&&H(a)}}
(function(a,b,c="undefined"===typeof omidExports?null:omidExports)
{c&&(a=a.split("."),a.slice(0,a.length-1).reduce(F,c)[a[a.length-1]]=b)})
("OmidVerificationClient",T);function U(){let
a=null;m(b=>(b=b.mraid)&&b.IS_GMA_SDK?(a=b,!0):!1);return a}function V(){return new
r(a=>{g.document.readyState&&"complete"===g.document.readyState?
a():g.addEventListener("load",a)})}function W(){return new r(a=>{const
b=U();b&&("loading"===b.getState()?b.addEventListener("ready",
()=>{a(b)}):a(b))})}function X(a,b=null){b=new aa({timeout:b});b.h||
ba(b);b.h.then(a)}
function ca(){return new r(a=>{V().then(()=>{W().then(b=>{const
c=(e,d)=>{0<d.width&&0<d.height&&(a(),b.removeEventListener("exposureChange",c))};b
.addEventListener("exposureChange",c)})})})}
function ba(a){a.l?(a.h=new r(b=>{const c=new r(d=>{let f=!1;const h=(new
Date).getTime();a.j.registerSessionObserver(k=>{"sessionStart"==k.type&&(f&&null!
=a.i?(k=(new Date).getTime()-h,a.m||(a.m=!0,w({te:k,to:a.i}))):(k=k.data,f=!
0,d("app"==k.context.environment),k.context.omidNativeInfo&&(a.g.sdk=k.context.omid
NativeInfo.partnerName)))});null!=a.i&&g.setTimeout(()=>{f||(f=!0,d(!
1))},a.i)}),e=new r(d=>{a.j.addEventListener("geometryChange",f=>{f=f.data;const
h=f.adView.reasons;h&&-1!=h.indexOf("hidden")||
(f=f.adView,(f=f.onScreenContainerGeometry||
f.onScreenGeometry)&&f.width&&f.height&&d())})});c.then(d=>{d?
(e.then(()=>{a.g.src=1;b(a.g)}),ca().then(()=>{a.g.src=2;b(a.g)})):b()})}),a.h.then
(()=>{a.l=!1})):a.h=q()}var aa=class{constructor(a={}){var b=this.j=a.client??new
T;this.o=!(!b.g&&!b.omid3p);this.h=null;this.l=this.o;this.g={};this.i=a.timeout??
null;this.m=!1}};const Y=function(a,b=null){return b&&b.getAttribute("data-
jc")===String(a)?b:document.querySelector(`[${"data-jc"}="${a}"]`)}
(86,document.currentScript);var Z;if(Y){const a={},b=Y.attributes;for(let
c=b.length-1;0<=c;c--){const e=b[c].name;0===e.indexOf("data-
jcp-")&&(a[e.substring(9)]=b[c].value)}Z=a}else Z={};window.omrhp=function(a){let
b=+a?.owwt;Number.isNaN(b)&&(b=null);return c=>{X(c,b)}}(Z);}).call(this);

You might also like