;(function(omidGlobal) {
  var n;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function p(a){var b='undefined'!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if('number'==typeof a.length)return{next:aa(a)};throw Error(String(a)+' is not an iterable or ArrayLike');}function q(a){if(!(a instanceof Array)){a=p(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}
var ba='function'==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ca='function'==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
function da(a){a=['object'==typeof globalThis&&globalThis,a,'object'==typeof window&&window,'object'==typeof self&&self,'object'==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error('Cannot find global object');}var ea=da(this);function r(a,b){if(b)a:{var c=ea;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&&null!=b&&ca(c,a,{configurable:!0,writable:!0,value:b})}}var fa;
if('function'==typeof Object.setPrototypeOf)fa=Object.setPrototypeOf;else{var ha;a:{var ia={a:!0},ja={};try{ja.__proto__=ia;ha=ja.a;break a}catch(a){}ha=!1}fa=ha?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+' is not extensible');return a}:null}var ka=fa;
function la(a,b){a.prototype=ba(b.prototype);a.prototype.constructor=a;if(ka)ka(a,b);else for(var c in b)if('prototype'!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Ka=b.prototype}function u(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}function v(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
var ma='function'==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)v(d,e)&&(a[e]=d[e])}return a};r('Object.assign',function(a){return a||ma});
r('Symbol',function(a){function b(f){if(this instanceof b)throw new TypeError('Symbol is not a constructor');return new c(d+(f||'')+'_'+e++,f)}function c(f,l){this.g=f;ca(this,'description',{configurable:!0,writable:!0,value:l})}if(a)return a;c.prototype.toString=function(){return this.g};var d='jscomp_symbol_'+(1E9*Math.random()>>>0)+'_',e=0;return b});
r('Symbol.iterator',function(a){if(a)return a;a=Symbol('Symbol.iterator');for(var b='Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array'.split(' '),c=0;c<b.length;c++){var d=ea[b[c]];'function'===typeof d&&'function'!=typeof d.prototype[a]&&ca(d.prototype,a,{configurable:!0,writable:!0,value:function(){return na(aa(this))}})}return a});function na(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
r('WeakMap',function(a){function b(h){this.g=(g+=Math.random()+1).toString();if(h){h=p(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}function c(){}function d(h){var k=typeof h;return'object'===k&&null!==h||'function'===k}function e(h){if(!v(h,l)){var k=new c;ca(h,l,{value:k})}}function f(h){var k=Object[h];k&&(Object[h]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return k(m)})}if(function(){if(!a||!Object.seal)return!1;try{var h=Object.seal({}),k=Object.seal({}),
m=new a([[h,2],[k,3]]);if(2!=m.get(h)||3!=m.get(k))return!1;m.delete(h);m.set(k,4);return!m.has(h)&&4==m.get(k)}catch(t){return!1}}())return a;var l='$jscomp_hidden_'+Math.random();f('freeze');f('preventExtensions');f('seal');var g=0;b.prototype.set=function(h,k){if(!d(h))throw Error('Invalid WeakMap key');e(h);if(!v(h,l))throw Error('WeakMap key fail: '+h);h[l][this.g]=k;return this};b.prototype.get=function(h){return d(h)&&v(h,l)?h[l][this.g]:void 0};b.prototype.has=function(h){return d(h)&&v(h,
l)&&v(h[l],this.g)};b.prototype.delete=function(h){return d(h)&&v(h,l)&&v(h[l],this.g)?delete h[l][this.g]:!1};return b});
r('Map',function(a){function b(){var g={};return g.G=g.next=g.head=g}function c(g,h){var k=g.g;return na(function(){if(k){for(;k.head!=g.g;)k=k.G;for(;k.next!=k.head;)return k=k.next,{done:!1,value:h(k)};k=null}return{done:!0,value:void 0}})}function d(g,h){var k=h&&typeof h;'object'==k||'function'==k?f.has(h)?k=f.get(h):(k=''+ ++l,f.set(h,k)):k='p_'+h;var m=g.h[k];if(m&&v(g.h,k))for(g=0;g<m.length;g++){var t=m[g];if(h!==h&&t.key!==t.key||h===t.key)return{id:k,list:m,index:g,B:t}}return{id:k,list:m,
index:-1,B:void 0}}function e(g){this.h={};this.g=b();this.size=0;if(g){g=p(g);for(var h;!(h=g.next()).done;)h=h.value,this.set(h[0],h[1])}}if(function(){if(!a||'function'!=typeof a||!a.prototype.entries||'function'!=typeof Object.seal)return!1;try{var g=Object.seal({x:4}),h=new a(p([[g,'s']]));if('s'!=h.get(g)||1!=h.size||h.get({x:4})||h.set({x:4},'t')!=h||2!=h.size)return!1;var k=h.entries(),m=k.next();if(m.done||m.value[0]!=g||'s'!=m.value[1])return!1;m=k.next();return m.done||4!=m.value[0].x||
't'!=m.value[1]||!k.next().done?!1:!0}catch(t){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(g,h){g=0===g?0:g;var k=d(this,g);k.list||(k.list=this.h[k.id]=[]);k.B?k.B.value=h:(k.B={next:this.g,G:this.g.G,head:this.g,key:g,value:h},k.list.push(k.B),this.g.G.next=k.B,this.g.G=k.B,this.size++);return this};e.prototype.delete=function(g){g=d(this,g);return g.B&&g.list?(g.list.splice(g.index,1),g.list.length||delete this.h[g.id],g.B.G.next=g.B.next,g.B.next.G=g.B.G,g.B.head=null,this.size--,
!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.G=b();this.size=0};e.prototype.has=function(g){return!!d(this,g).B};e.prototype.get=function(g){return(g=d(this,g).B)&&g.value};e.prototype.entries=function(){return c(this,function(g){return[g.key,g.value]})};e.prototype.keys=function(){return c(this,function(g){return g.key})};e.prototype.values=function(){return c(this,function(g){return g.value})};e.prototype.forEach=function(g,h){for(var k=this.entries(),m;!(m=k.next()).done;)m=m.value,
g.call(h,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var l=0;return e});r('Object.values',function(a){return a?a:function(b){var c=[],d;for(d in b)v(b,d)&&c.push(b[d]);return c}});function oa(a,b){a instanceof String&&(a+='');var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}r('Array.prototype.keys',function(a){return a?a:function(){return oa(this,function(b){return b})}});
r('Set',function(a){function b(c){this.g=new Map;if(c){c=p(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||'function'!=typeof a||!a.prototype.entries||'function'!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(p([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
f.value[1]!=f.value[0]?!1:e.next().done}catch(l){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});r('Object.is',function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});r('Array.prototype.includes',function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
r('String.prototype.includes',function(a){return a?a:function(b,c){if(null==this)throw new TypeError("The 'this' value for String.prototype.includes must not be null or undefined");if(b instanceof RegExp)throw new TypeError('First argument to String.prototype.includes must not be a regular expression');return-1!==this.indexOf(b,c||0)}});r('Object.entries',function(a){return a?a:function(b){var c=[],d;for(d in b)v(b,d)&&c.push([d,b[d]]);return c}});
var w={xa:'loaded',Fa:'start',ra:'firstQuartile',za:'midpoint',Ga:'thirdQuartile',pa:'complete',Ba:'pause',Da:'resume',oa:'bufferStart',na:'bufferFinish',Ea:'skipped',Ia:'volumeChange',Ca:'playerStateChange',ka:'adUserInteraction'},pa={ua:'generic',Ha:'video',ya:'media'},qa={aa:'native',va:'html',X:'javascript'},ra={aa:'native',X:'javascript',NONE:'none'},sa={ta:'full',qa:'domain',wa:'limited'},ta={ma:'backgrounded',sa:'foregrounded'},ua={la:'app',Ja:'web'};function x(a,b){this.x=null!=a.x?a.x:a.left;this.y=null!=a.y?a.y:a.top;this.width=a.width;this.height=a.height;this.endX=this.x+this.width;this.endY=this.y+this.height;this.adSessionId=a.adSessionId||void 0;this.isFriendlyObstructionFor=a.isFriendlyObstructionFor||[];this.h=a.friendlyObstructionClass||void 0;this.i=a.friendlyObstructionPurpose||void 0;this.j=a.friendlyObstructionReason||void 0;this.clipsToBounds=void 0!==a.clipsToBounds?!0===a.clipsToBounds:!0;this.l=void 0!==a.hasWindowFocus?!0===
a.hasWindowFocus:!0;this.notVisibleReason=a.notVisibleReason||void 0;this.noOutputDevice=a.noOutputDevice||void 0;this.childViews=a.childViews||[];this.isCreative=a.isCreative||!1;this.g=b}function va(a){var b={};return b.width=a.width,b.height=a.height,b}function y(a){var b={};return Object.assign({},va(a),(b.x=a.x,b.y=a.y,b))}function wa(a){var b=y(a),c={};return Object.assign({},b,(c.endX=a.endX,c.endY=a.endY,c))}function xa(a,b,c){a.x+=b;a.y+=c;a.endX+=b;a.endY+=c}
x.prototype.O=function(a){if(null==a)return!1;a=y(a);var b=a.y,c=a.width,d=a.height;return this.x===a.x&&this.y===b&&this.width===c&&this.height===d};function ya(a){return a.width*a.height}function za(a){return 0===a.width||0===a.height};function Aa(a,b){a=y(a);for(var c=[],d=[],e=0;e<b.length;e++){var f=y(b[e]);f=Ba(a,f);Ca(c,f.x);Ca(c,f.endX);Ca(d,f.y);Ca(d,f.endY)}c=c.sort(function(l,g){return l-g});d=d.sort(function(l,g){return l-g});return{ia:c,ja:d}}function Ba(a,b){return{x:Math.max(a.x,b.x),y:Math.max(a.y,b.y),endX:Math.min(a.x+a.width,b.x+b.width),endY:Math.min(a.y+a.height,b.y+b.height)}}function Ca(a,b){-1===a.indexOf(b)&&a.push(b)};function Da(){this.h=this.g=this.D=this.u=this.l=this.s=void 0;this.A=0;this.m=[];this.v=[];this.C=0;this.o=[];this.j=[];this.i=[]}Da.prototype.O=function(a){return null==a?!1:JSON.stringify(Ea(this))===JSON.stringify(Ea(a))};
function Ea(a){var b=[],c=[],d={viewport:a.s,adView:{percentageInView:a.A,pixelsInView:a.C,reasons:a.i},declaredFriendlyObstructions:a.m.length};if(void 0!==a.g){d.adView.geometry=y(a.g);d.adView.geometry.pixels=ya(a.g);d.adView.onScreenGeometry=y(a.h);d.adView.onScreenGeometry.pixels=Fa(a);for(var e=0;e<a.j.length;e++)b.push(y(a.j[e]));for(e=0;e<a.v.length;e++){var f=a.v[e],l=f,g={};l.h&&(g.obstructionClass=l.h);l.i&&(g.obstructionPurpose=l.i);l.j&&(g.obstructionReason=l.j);f=Ba(a.g,f);c.push(Object.assign({},
{x:f.x,y:f.y,width:f.endX-f.x,height:f.endY-f.y},g))}d.adView.onScreenGeometry.obstructions=b;d.adView.onScreenGeometry.friendlyObstructions=c;void 0!==a.u&&void 0!==a.D&&(d.adView.containerGeometry=y(a.u),d.adView.onScreenContainerGeometry=y(a.D),d.adView.measuringElement=!0)}return d}function Ga(a,b){b=va(b);a.s={};a.s.width=b.width;a.s.height=b.height;a.l={};a.l.x=0;a.l.y=0;a.l.width=b.width;a.l.height=b.height;a.l.endX=b.width;a.l.endY=b.height}
function Ha(){return{x:0,y:0,endX:0,endY:0,width:0,height:0}}function Ia(a,b){var c={};c.x=Math.max(a.x,b.x);c.y=Math.max(a.y,b.y);c.endX=Math.min(a.endX,b.endX);c.endY=Math.min(a.endY,b.endY);c.width=Math.max(0,c.endX-c.x);c.height=Math.max(0,c.endY-c.y);return c}function Ja(a,b){return.01<b.width-a.width||.01<b.height-a.height}function Ka(a){if(-1!==a.i.indexOf('backgrounded'))a.A=0,a.C=0;else{var b=ya(a.g);if(0!==b){var c=Fa(a);a.A=Math.round(c/b*100);a.C=c}}}
function La(a,b){if(za(b)||!a.h)b=!1;else{var c=wa(a.h),d=c.y,e=c.endX;a=c.endY;var f=b.endX;c=c.x;(f=f<c||.01>Math.abs(f-c))||(f=b.x,f=f>e||.01>Math.abs(f-e));(e=f)||(e=b.endY,e=e<d||.01>Math.abs(e-d));(d=e)||(b=b.y,d=b>a||.01>Math.abs(b-a));b=!d}return b}function z(a,b){for(var c=!1,d=0;d<a.i.length;d++)a.i[d]===b&&(c=!0);c||a.i.push(b)}
function Fa(a){var b=Math,c=b.max,d=ya(a.h),e=a.j,f=0;if(0<e.length){var l=Aa(a.h,e);a=l.ia;l=l.ja;for(var g=0;g<a.length-1;g++)for(var h=(a[g]+(a[g]+1))/2,k=a[g+1]-a[g],m=0;m<l.length-1;m++){for(var t=(l[m]+(l[m]+1))/2,E=l[m+1]-l[m],A=!1,H=0;H<e.length;H++){var I=y(e[H]);if(I.x<h&&I.x+I.width>h&&I.y<t&&I.y+I.height>t){A=!0;break}}A&&(f+=Math.round(k)*Math.round(E))}}return c.call(b,0,d-f)};function Ma(a,b,c,d,e){var f=new Da;b=new x(b,!1);Ga(f,b);Na(a,b,f,d);if(!e)return f.i=['unmeasurable'],f.s=void 0,f.A=0,f.j=[],f.g&&(a=f.g,c={},a=new x((c.x=0,c.y=0,c.width=a.width,c.height=a.height,c),a.g),f.g=a),f.h=Ha(),f;b.noOutputDevice&&(z(f,'backgrounded'),z(f,'noOutputDevice'));if('backgrounded'===c)z(f,'backgrounded');else if(void 0!==f.g){for(a=0;a<f.m.length;a++)La(f,f.m[a])&&f.v.push(f.m[a]);for(a=0;a<f.o.length;a++){if(c=La(f,f.o[a])){a:{c=f.o[a];for(d=0;d<f.j.length;d++)if(f.j[d].O(c)){c=
!0;break a}c=!1}c=!c}c&&(z(f,'obstructed'),f.j.push(f.o[a]))}Ka(f)}else z(f,'notFound');return f}
function Na(a,b,c,d){var e=b.isCreative?!0:b.adSessionId===d;if(e){c.g=b;var f=wa(c.g);a=Ia(c.l,f);var l=c.g;'notAttached'===l.notVisibleReason||'noWindowFocus'===l.notVisibleReason||'noAdView'===l.notVisibleReason?(z(c,'notFound'),c.h=new x(Ha(),!1)):(l=c.g,'viewInvisible'===l.notVisibleReason||'viewGone'===l.notVisibleReason||'viewNotVisible'===l.notVisibleReason||'viewAlphaZero'===l.notVisibleReason||'viewHidden'===l.notVisibleReason||void 0!==c.g.notVisibleReason||za(c.g)?(z(c,'hidden'),c.h=new x(Ha(),
!1)):(c.g.l||(z(c,'backgrounded'),z(c,'noWindowFocus')),Ja(a,f)&&z(c,'clipped'),c.h=new x(a,!1)))}else if(f=!0,b.g&&(f=-1!==b.isFriendlyObstructionFor.indexOf(d)?!1:!1===b.clipsToBounds),f){l=b.childViews;for(var g=0;g<l.length;g++)f=void 0!==c.g,Na(a,new x(l[g],f),c,d)}e||void 0===c.g||(b.g?-1!==b.isFriendlyObstructionFor.indexOf(d)?c.m.push(b):c.o.push(b):(e=wa(b),d=wa(c.h),y(c.h),!za(c.h)&&b.clipsToBounds&&(b=Ia(d,e),Ja(b,d)&&(z(c,'clipped'),c.h=new x(b,!1)))))};function Oa(a,b){this.y=this.x=0;this.width=a;this.height=b};function Pa(){return{apiVersion:'1.0',accessMode:'limited',environment:'app',omidJsInfo:{omidImplementer:'omsdk',serviceVersion:'1.4.6-iab4036'}}}function Qa(){this.adSessionId=null;this.i=Pa();this.D=null;this.C='foregrounded';this.u=this.o='none';this.s=this.l=this.j=this.m=this.h=this.g=this.J=this.H=null;this.I=!0;this.A=new Map;this.M=new Map;this.N=!1;this.v=null}var B;function C(){B||(B=new Qa);return B}
function Ra(){B.adSessionId=null;B.i=Pa();B.D=null;B.L=void 0;B.Aa=void 0;B.U=null;B.V=null;B.K=null;B.C='foregrounded';B.o='none';B.u='none';B.H=null;B.J=null;B.g=null;B.h=null;B.m=null;B.j=null;B.l=null;B.s=null;B.I=!0;B.A=new Map;B.M=new Map;B.N=!1;B.v=null};var D=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;var a=Function('return this')();if(a)return a;throw Error('Could not determine global object context.');}();function Sa(a,b){this.g=a;this.h=b}ea.Object.defineProperties(Sa.prototype,{event:{configurable:!0,enumerable:!0,get:function(){return this.g}},origin:{configurable:!0,enumerable:!0,get:function(){return this.h}}});function G(){var a=u.apply(0,arguments);Ta(function(){throw new (Function.prototype.bind.apply(Error,[null,'Could not complete the test successfully - '].concat(q(a))));},function(){return console.error.apply(console,q(a))})}function Ua(){var a=u.apply(0,arguments);Ta(function(){},function(){return console.error.apply(console,q(a))})}function Ta(a,b){'undefined'!==typeof jasmine&&jasmine?a():'undefined'!==typeof console&&console&&console.error&&b()};function Va(){this.j=[];this.h=[];this.i=[];this.l=[];this.m={};this.g=C()}function Wa(a){a.j=[];a.h=[];a.i=[];a.l=[]}function Xa(a,b){if(void 0!==a.g&&a.g.adSessionId&&!1!==Ya(a,b)){var c=b.event;a.i.filter(function(d){return d.type===c.type}).forEach(function(d){return J(a,d,c)})}}function Za(a,b){a.j.push(b);Xa(a,b)}function $a(a,b,c){void 0!==a.g&&a.g.adSessionId&&a.j.filter(function(d){return d.event.type===b&&Ya(a,d)}).map(function(d){return d.event}).forEach(function(d){J(a,c,d)})}
function Ya(a,b){var c=b.event.type,d=-1!==Object.values(w).indexOf(c)&&'volumeChange'!==c;return'impression'===c||'loaded'===c&&a.g.h?b.origin===C().u:d?b.origin===C().o:!0}Va.prototype.addEventListener=function(a,b,c){'media'===a||'video'===a?ab(this,b,c):(b={type:a,P:c,R:b},this.i.push(b),$a(this,a,b))};function ab(a,b,c){Object.keys(w).forEach(function(d){d=w[d];var e={type:d,P:c,R:b};a.i.push(e);$a(a,d,e)})}
function bb(a,b,c,d){var e={W:c,P:d,R:b};a.l.push(e);a.h.forEach(function(f){var l=cb(f);'sessionStart'===f.event.type&&db(a,l,e);J(a,e,l)})}function eb(a,b,c){var d=K(a,'sessionError','native',{errorType:b,message:c});a.h.push(d);a.l.forEach(function(e){J(a,e,d.event)})}
function fb(a,b){a.m=Object.assign(a.m,b);b=a.g.i;if(void 0!==b){b=Object.assign({},gb(a,hb(a,ib(a,{context:b}),!0)),{supportsLoadedEvent:!!a.g.h||'video'==a.g.g});Object.assign(b,{pageUrl:null,contentUrl:a.g.D});var c=K(a,'sessionStart','native',b);a.h.push(c);a.l.forEach(function(d){var e=cb(c);db(a,e,d);J(a,d,e)},a);jb(a)}}
function db(a,b,c){c.W&&(b.data.verificationParameters=a.m[c.W]);c.P&&(c=a.g.A.get(c.P))&&(b.data.verificationParameters=c.verificationParameters,b.data.context.accessMode=c.accessMode,'full'===c.accessMode&&(a.g.l&&(b.data.context.videoElement=a.g.l),a.g.j&&(b.data.context.slotElement=a.g.j)))}function kb(a){var b=a.l,c=K(a,'sessionFinish','native');a.h.push(c);var d=a.g.i;(d=!d||'native'!==d.adSessionType)&&Wa(a);b.forEach(function(e){return J(a,e,c.event)});d&&(a.m={},Ra(),Ra())}
function J(a,b,c){var d=b.R;b=b.P;!b||a.g.A.has(b)||a.g.N?a.o(d,c):G('Listener/observer not called, probably because it was added after its intended ad session had already finished.')}Va.prototype.o=function(a){var b=u.apply(1,arguments);try{a.apply(null,q(b))}catch(c){Ua(c)}};function lb(a,b){var c=(c=C().K)?Ea(c):void 0;c=hb(a,ib(a,c));Za(a,K(a,'impression',b,c))}function mb(a,b,c){if(a.g.h||'display'!=a.g.g)b=K(a,'loaded',b,hb(a,ib(a,void 0===c?null:c))),Za(a,b)}
function nb(a,b,c,d){'start'!==b&&'volumeChange'!==b||null!=(d&&d.deviceVolume)||(d.deviceVolume=a.g.H);if(d&&('start'===b||'volumeChange'===b)){var e=d.videoPlayerVolume,f=d.mediaPlayerVolume;null!=e?(Object.assign(d,{mediaPlayerVolume:e}),a.g.J=e):null!=f&&(Object.assign(d,{videoPlayerVolume:f}),a.g.J=f)}Za(a,K(a,b,c,d))}
function jb(a){var b=a.j.filter(function(f){return Object.values(w).includes(f.event.type)&&'video'==a.g.g&&f.origin===a.g.o||'loaded'==f.event.type&&'display'==a.g.g&&f.origin===a.g.u?!0:!1}).map(function(f){return f.event}),c=a.g.adSessionId||'',d={};b=p(b);for(var e=b.next();!e.done;d={F:d.F},e=b.next()){d.F=e.value;d.F.adSessionId||(d.F.adSessionId=c);if('loaded'==d.F.type){if(!a.g.h&&'display'==a.g.g)continue;d.F.data=hb(a,ib(a,d.F.data))}a.i.filter(function(f){return function(l){return l.type===
f.F.type}}(d)).forEach(function(f){return function(l){return l.R(f.F)}}(d))}}function ob(a,b,c){a:{c=new Set(c);a=p(a.j.concat(a.h));for(var d=a.next();!d.done;d=a.next())if(d=d.value,c.has(d.event.type)&&d.origin!=b){b=!0;break a}b=!1}return b?(G('Event owner cannot be registered after its events have already been published.'),!1):!0}function pb(a,b){ob(a,b,Object.values(w))&&L(a,b)&&(a.g.o=b)}function qb(a,b){ob(a,b,['impression'])&&rb(a,b)&&(a.g.u=b)}
function rb(a,b){var c=a.g.u;return'none'!=c&&c!=b?(G('Impression event is owned by '+(a.g.u+', not ')+(b+'.')),!1):!0}function L(a,b){var c=a.g.o;return'none'!=c&&c!=b?(G('Media events are owned by '+(a.g.o+', not '+b+'.')),!1):!0}function hb(a,b,c){c=void 0===c?!1:c;b=Object.assign({},b);a.g.g&&Object.assign(b,{mediaType:a.g.g});a.g.h&&(c||'definedByJavaScript'!==a.g.h)&&Object.assign(b,{creativeType:a.g.h});return b}function gb(a,b){return a.g.v?Object.assign(b,{lastActivity:a.g.v}):b}
function ib(a,b){return a.g.m?Object.assign({},b,{impressionType:a.g.m}):b}function K(a,b,c,d){return new Sa({adSessionId:a.g.adSessionId||'',timestamp:(new Date).getTime(),type:b,data:d},c)}function cb(a){a=a.event;var b=a.data?Object.assign({},a.data):void 0;'sessionStart'===a.type&&(b.context=Object.assign({},b.context));return{adSessionId:a.adSessionId,timestamp:a.timestamp,type:a.type,data:b}};function sb(a,b,c){'container'===b&&void 0!==a.g.L&&void 0!==a.g&&null!=a.g.adSessionId&&(a.g.U=Ma(a.i,a.g.L,a.g.C,a.g.adSessionId,!0));b=a.g;var d=b.U,e=b.V;if(d)if(e){b=new Da;var f=d.s,l=d.g,g=d.h,h=e.g,k=e.h;f&&l&&g&&h&&k&&(Ga(b,f),b.u=new x(l,!1),b.D=new x(g,!1),b.o=Object.assign([],d.o),b.j=Object.assign([],d.j),b.m=Object.assign([],d.m),b.v=Object.assign([],d.v),b.i=Object.assign([],e.i,d.i),d=b.u.x,e=b.u.y,h=new x(h,!1),k=new x(k,!1),xa(h,d,e),xa(k,d,e),b.g=h,b.h=Ia(k,g),Ka(b))}else b=d;else b=
null;g=a.g.K;if(b&&!b.O(g)||c)g=Ea(b),c&&(g.adView.reasons=g.adView.reasons||[c]),c=a.h,'audio'!=c.g.h&&Za(c,K(c,'geometryChange','native',g)),a.g.K=b};function M(a){return'object'===typeof a}function N(a){return'number'===typeof a&&!isNaN(a)&&0<=a}function O(a){return'string'===typeof a}function P(a,b){return O(a)&&-1!==Object.values(b).indexOf(a)}function tb(a){return!(!a||!a.tagName||'iframe'!==a.tagName.toLowerCase())};function Q(a,b,c){this.j=a;this.N=b;this.K=c;this.i=C();this.h=null;this.g=this.l=this.C=void 0;this.M=!0;this.I=void 0;R(this)}function R(a){if(!a.h){var b;a:{if((b=a.j.document)&&b.getElementsByClassName&&(b=b.getElementsByClassName('omid-element'))){if(1==b.length){b=b[0];break a}1<b.length&&a.M&&(eb(a.K,'generic',"More than one element with 'omid-element' class name."),a.M=!1)}b=null}if(b&&b.tagName&&'video'===b.tagName.toLowerCase())a.i.l=b;else if(b&&b.tagName)a.i.j=b;else return;ub(a)}}
function ub(a){a.i.l?(a.h=a.i.l,a.o()):a.i.j&&(a.h=a.i.j,tb(a.h)?a.i.s&&a.o():a.o())}function vb(a){a.g&&(tb(a.h)?a.i.s&&(a.J(),wb(a)):(a.J(),wb(a)))}Q.prototype.A=function(){this.I&&(this.j.document.removeEventListener('visibilitychange',this.I),this.I=void 0)};Q.prototype.o=function(){};function wb(a){a.C&&(a.i.V=a.C,sb(a.N,'creative'))}function xb(a){if(a.g&&a.i.s){var b=new x(a.i.s,!1);xa(b,a.g.x,a.g.y);b.clipsToBounds=!0;return b}};function S(){var a;this.g=a=void 0===a?omidGlobal:a}S.prototype.setInterval=function(a,b){return yb(this,'setInterval')(a,b)};S.prototype.clearInterval=function(a){yb(this,'clearInterval')(a)};S.prototype.setTimeout=function(a,b){return yb(this,'setTimeout')(a,b)};S.prototype.clearTimeout=function(a){yb(this,'clearTimeout')(a)};function yb(a,b){return a.g&&a.g[b]?a.g[b]:zb(a,b)}
function Ab(a,b,c,d){if(a.g.document&&a.g.document.body){var e=a.g.document.createElement('img');e.width=1;e.height=1;e.style.display='none';e.src=b;c&&e.addEventListener('load',function(){return c()});d&&e.addEventListener('error',function(){return d()});a.g.document.body.appendChild(e)}else zb(a,'sendUrl')(b,c,d)}function zb(a,b){if(a.g&&a.g.omidNative&&a.g.omidNative[b])return a.g.omidNative[b].bind(a.g.omidNative);throw Error('Native interface method "'+b+'" not found.');};function T(a,b,c,d,e){Q.call(this,a,c,e);this.u=b;this.m=void 0;this.s=d}la(T,Q);T.prototype.A=function(){void 0!==this.m&&(this.s.clearInterval(this.m),this.m=void 0);Q.prototype.A.call(this)};T.prototype.o=function(){var a=this;Q.prototype.o.call(this);null==this.h?this.m=void 0:void 0===this.m&&(this.m=this.s.setInterval(function(){return Bb(a)},200),Bb(this))};
T.prototype.J=function(){if(this.l){var a=xb(this);if(a){this.g.isCreative=!1;a.isCreative=!0;for(var b=!1,c=0;c<this.g.childViews.length;c++)if(this.g.childViews[c].isCreative){this.g.childViews[c]=a;b=!0;break}b||this.g.childViews.push(a)}else this.g.isCreative=!0;this.C=Ma(this.u,this.l,this.i.C,this.i.adSessionId,this.H())}};T.prototype.H=function(){return!0};
function Bb(a){if(void 0!==a.m){b:{try{var b=a.j.top;var c=0<=b.innerHeight&&0<=b.innerWidth;break b}catch(d){}c=!1}c?(c=a.j.top,c=new x(new Oa(c.innerWidth,c.innerHeight),!1)):c=new x(new Oa(0,0),!1);b=a.h.getBoundingClientRect();if(null==b.x||isNaN(b.x))b.x=b.left;if(null==b.y||isNaN(b.y))b.y=b.top;b=new x(b,!1);c.O(a.l)&&b.O(a.g)||(a.g=b,a.g.clipsToBounds=!0,a.l=c,a.l.childViews.push(a.g),vb(a))}};function U(a,b,c,d){Q.call(this,a,c,d);this.v=this.s=this.u=this.m=void 0;this.L=!1;this.D=void 0}la(U,Q);U.prototype.A=function(){this.m&&this.m.disconnect();Cb(this);Q.prototype.A.call(this)};U.prototype.o=function(){Q.prototype.o.call(this);this.h&&(this.m||(this.m=Db(this)),Eb(this),Fb(this.h)&&Gb(this))};
U.prototype.J=function(){if(this.g&&this.D){var a=xb(this);if(a){var b=a;var c=this.D;var d=Math.max(a.x,c.x);var e=Math.max(a.y,c.y),f=Math.min(a.endX,c.endX);a=Math.min(a.endY,c.endY);f<=d||a<=e?d=null:(c={},d=new x((c.x=d,c.y=e,c.width=Math.abs(f-d),c.height=Math.abs(a-e),c),!1));d||(d=new x({x:0,y:0,width:0,height:0},!1))}else b=this.g,d=this.D;e=new Da;this.l&&Ga(e,this.l);e.g=b;e.h=d;Ka(e);this.L?za(e.g)?z(e,'hidden'):100===e.A||z(e,'clipped'):z(e,'viewport');this.C=e}};U.prototype.H=function(){return!0};
function Cb(a){a.u&&(a.u.disconnect(),a.u=void 0);a.s&&(a.s.disconnect(),a.s=void 0);a.v&&((0,a.j.removeEventListener)('resize',a.v),a.v=void 0)}function Eb(a){a.m&&a.h&&(a.m.unobserve(a.h),a.m.observe(a.h))}function Fb(a){a=a.getBoundingClientRect();return 0==a.width||0==a.height}
function Db(a){return new a.j.IntersectionObserver(function(b){try{if(b.length){for(var c,d=b[0],e=1;e<b.length;e++)b[e].time>d.time&&(d=b[e]);c=d;a.l=Hb(c.rootBounds);a.g=Hb(c.boundingClientRect);a.D=Hb(c.intersectionRect);a.L=!!c.isIntersecting;vb(a)}}catch(f){a.A(),eb(a.K,'generic','Problem handling IntersectionObserver callback: '+f.message)}},{root:null,rootMargin:'0px',threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]})}
function Gb(a){a.j.ResizeObserver?a.u||(a.u=Ib(a,function(){return Jb(a)}),a.u.observe(a.h)):(a.v||(a.v=function(){return Jb(a)},(0,a.j.addEventListener)('resize',a.v)),a.s||(a.s=new MutationObserver(function(){return Jb(a)}),a.s.observe(a.h,{childList:!1,attributes:!0,subtree:!1})))}function Jb(a){a.h&&!Fb(a.h)&&(Eb(a),Cb(a))}function Ib(a,b){return new a.j.ResizeObserver(b)}function Hb(a){if(a&&null!==a.x&&null!==a.y&&null!==a.width&&null!==a.height)return new x(a,!1)};function Kb(a){return a&&M(a)?Object.entries(a).reduce(function(b,c){var d=p(c);c=d.next().value;d=d.next().value;return b&&O(c)&&null!=d&&M(d)&&O(d.resourceUrl)},!0):!1};function V(a,b,c,d){this.h=a;this.method=b;this.version=c;this.g=d}function Lb(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 Mb(a){return new V(a.omid_message_guid,a.omid_message_method,a.omid_message_version,a.omid_message_args)}
function Ob(a){var b={};b=(b.omid_message_guid=a.h,b.omid_message_method=a.method,b.omid_message_version=a.version,b);void 0!==a.g&&(b.omid_message_args=a.g);return b};function Pb(a){this.i=a};function W(a){this.i=a;this.handleExportedMessage=W.prototype.j.bind(this)}la(W,Pb);W.prototype.h=function(a,b){b=void 0===b?this.i:b;if(!b)throw Error('Message destination must be defined at construction time or when sending the message.');b.handleExportedMessage(Ob(a),this)};W.prototype.j=function(a,b){Lb(a)&&this.g&&this.g(Mb(a),b)};function Qb(a){return Rb(a,'SessionService.')}function Rb(a,b){return(a=a.match(new RegExp('^'+b+'(.*)')))&&a[1]};function Sb(a,b){this.i=b=void 0===b?D:b;var c=this;a.addEventListener('message',function(d){if('object'===typeof d.data){var e=d.data;Lb(e)&&d.source&&c.g&&c.g(Mb(e),d.source)}})}la(Sb,Pb);Sb.prototype.h=function(a,b){b=void 0===b?this.i:b;if(!b)throw Error('Message destination must be defined at construction time or when sending the message.');b.postMessage(Ob(a),'*')};function Tb(){return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(a){var b=16*Math.random()|0;return'y'===a?(b&3|8).toString(16):b.toString(16)})};function Ub(a){if(!a.g||!a.g.document)throw Error('OMID Service Script is not running within a window.');var b=a.h;a.h=[];b.forEach(function(c){try{var d=a.i.I?'limited':'full',e=P(c.accessMode,sa)?c.accessMode:null;var f=e?'full'==e&&'limited'==d?d:'domain'==e?'limited':e:d;c.accessMode=f;a:{var l=c.resourceUrl,g=a.g.location.origin;try{var h=new URL(l,g);break a}catch(H){}try{h=new URL(l);break a}catch(H){}h=null}if(d=h){var k=Tb(),m=a.g.document,t=m.createElement('iframe');t.id='omid-verification-script-frame-'+
k;t.style.display='none';['full','limited'].includes(f)?t.srcdoc="<html><head>\n<script type=\"text/javascript\">window['omidVerificationProperties'] = {\n'serviceWindow': window.parent,\n'injectionSource': 'app',\n'injectionId': '"+(k+'\',\n};\x3c/script>\n<script type="text/javascript" src="')+d.href+'">\x3c/script>\n</head><body></body></html>':'domain'==f&&(t.src=Vb(a,k,d).href);['domain','limited'].includes(f)&&(t.sandbox='allow-scripts');m.body.appendChild(t);a.i.M.set(k,t);var E=c.vendorKey,
A=c.verificationParameters;E=void 0===E?'':E;A=void 0===A?'':A;E&&'string'===typeof E&&''!==E&&A&&'string'===typeof A&&''!==A&&(a.j.m[E]=A);a.i.A.set(k,c)}}catch(H){Ua('OMID verification script '+c.resourceUrl+' failed to load: '+H)}})}
function Vb(a,b,c){var d='/.well-known/omid/omloader-v1.html#';(new Map([['verificationScriptUrl',c.href],['injectionId',b]])).forEach(function(e,f){d+=encodeURIComponent(f)+'='+encodeURIComponent(e)+'&'});b=null;try{b=new URL(d,a.g.parent.location.origin)}catch(e){throw Error('OMID Service Script cannot access the parent window.');}return b};function Wb(){var a=Xb,b=Yb,c=this;this.i=X;this.h=a;this.g=C();this.l=b;this.j=!1;this.registerSessionObserver(function(d){return Zb(c,d)})}n=Wb.prototype;n.registerSessionObserver=function(a){bb(this.i,a)};n.setSlotElement=function(a){a&&a.tagName?(this.g.j=a,this.h&&ub(this.h)):G('setSlotElement called with a non-HTMLElement.  It will be ignored.')};n.setElementBounds=function(a){this.g.s=a;this.h&&ub(this.h);this.h&&vb(this.h)};n.error=function(a,b){eb(this.i,a,b)};
n.registerAdEvents=function(){qb(this.i,'javascript')};n.registerMediaEvents=function(){pb(this.i,'javascript')};function Y(a,b,c){'impression'==b?rb(a.i,'javascript')&&(lb(a.i,'javascript'),a.h&&R(a.h)):('loaded'==b?(c=void 0===c?null:c,L(a.i,'javascript')&&mb(a.i,'javascript',c)):L(a.i,'javascript')&&nb(a.i,b,'javascript',c),['loaded','start'].includes(b)&&a.h&&R(a.h))}n.injectVerificationScriptResources=function(a){var b=this.l;b.h.push.apply(b.h,q(a));if(this.j)try{Ub(this.l)}catch(c){G(c.message)}};
n.setCreativeType=function(a,b){b=void 0===b?null:b;if(!this.g.g||this.g.h)this.g.h=a,'video'==a||'audio'==a?this.g.g='video':'htmlDisplay'==a||'nativeDisplay'==a?this.g.g='display':'definedByJavaScript'==a&&b&&(this.g.g='none'==b?'display':'video')};n.setImpressionType=function(a){if(!this.g.g||this.g.h)this.g.m=a};
function Zb(a,b){if('sessionStart'===b.type){a.j=!0;try{Ub(a.l)}catch(c){G(c.message)}}'sessionFinish'===b.type&&(a.j=!1,(b=C().i)&&'native'==b.adSessionType||a.registerSessionObserver(function(c){return Zb(a,c)}))}n.setClientInfo=function(a,b,c){var d=this.g.i||{};d.omidJsInfo=Object.assign({},d.omidJsInfo,{sessionClientVersion:a,partnerName:b,partnerVersion:c});this.g.i=d;return this.g.i.omidJsInfo.serviceVersion};function $b(a){a=a.split('-')[0].split('.');for(var b=['1','0','3'],c=0;3>c;c++){var d=parseInt(a[c],10),e=parseInt(b[c],10);if(d>e)break;else if(d<e)return!1}return!0};function ac(a,b){return/\d+\.\d+\.\d+(-.*)?/.test(a)&&$b(a)?b:JSON.stringify(b)}function bc(a,b){return/\d+\.\d+\.\d+(-.*)?/.test(a)&&$b(a)?b?b:[]:b&&'string'===typeof b?JSON.parse(b):[]};var cc=new function(){};function dc(){var a=ec;var b=void 0===b?omidGlobal:b;this.g=a;this.i=b;this.j=new W;this.i.omid=this.i.omid||{};this.i.omid.v1_SessionServiceCommunication=this.j;this.h=b&&b.addEventListener&&b.postMessage?new Sb(b):null;this.l=null;this.j.g=this.m.bind(this);this.h&&(this.h.g=this.o.bind(this))}dc.prototype.m=function(a,b){null!=Qb(a.method)&&fc(this,cc)&&gc(this,a,b,this.j)};dc.prototype.o=function(a,b){null!=Qb(a.method)&&fc(this,b)&&gc(this,a,b,this.h)};
function fc(a,b){a.l||(a.l=b);return a.l!=b?(G('The source of session client messages cannot be changed from the source of the first message.'),!1):!0}
function gc(a,b,c,d){function e(){var h=new V(f,'response',g,ac(g,u.apply(0,arguments)));d.h(h,c)}var f=b.h,l=b.method,g=b.version;b=bc(g,b.g);try{hc(a,l,e,b)}catch(h){d.h(new V(f,'error',g,'\n        name: '+h.name+'\n        message: '+h.message+'\n        filename: '+h.filename+'\n        lineNumber: '+h.lineNumber+'\n        columnNumber: '+h.columnNumber+'\n        stack: '+h.stack+'\n        toString(): '+h.toString()),c)}}
function hc(a,b,c,d){if(null!=Qb(b))switch(Qb(b)){case 'registerAdEvents':a.g.registerAdEvents();break;case 'registerMediaEvents':a.g.registerMediaEvents();break;case 'registerSessionObserver':a.g.registerSessionObserver(c);break;case 'setSlotElement':c=p(d).next().value;a.g.setSlotElement(c);break;case 'setVideoElement':c=p(d).next().value;a=a.g;c&&c.tagName&&'video'===c.tagName.toLowerCase()?(a.g.l=c,a.h&&ub(a.h)):G('setVideoElement called with a non-HTMLVideoElement. It will be ignored.');break;
case 'setElementBounds':c=p(d).next().value;a.g.setElementBounds(c);break;case 'startSession':G('Session start from JS is not supported in mobile app.');break;case 'finishSession':G('Session finish from JS is not supported in mobile app.');break;case 'impressionOccurred':Y(a.g,'impression');break;case 'loaded':(c=p(d).next().value)?(b={skippable:c.isSkippable,autoPlay:c.isAutoPlay,position:c.position},c.isSkippable&&(b.skipOffset=c.skipOffset),Y(a.g,'loaded',b)):Y(a.g,'loaded');break;case 'start':b=
p(d);c=b.next().value;b=b.next().value;Y(a.g,'start',{duration:c,mediaPlayerVolume:b});break;case 'firstQuartile':Y(a.g,'firstQuartile');break;case 'midpoint':Y(a.g,'midpoint');break;case 'thirdQuartile':Y(a.g,'thirdQuartile');break;case 'complete':Y(a.g,'complete');break;case 'pause':Y(a.g,'pause');break;case 'resume':Y(a.g,'resume');break;case 'bufferStart':Y(a.g,'bufferStart');break;case 'bufferFinish':Y(a.g,'bufferFinish');break;case 'skipped':Y(a.g,'skipped');break;case 'volumeChange':c={mediaPlayerVolume:p(d).next().value};
Y(a.g,'volumeChange',c);break;case 'playerStateChange':c={state:p(d).next().value};Y(a.g,'playerStateChange',c);break;case 'adUserInteraction':c={interactionType:p(d).next().value};Y(a.g,'adUserInteraction',c);break;case 'setClientInfo':var e=p(d);b=e.next().value;d=e.next().value;e=e.next().value;a=a.g.setClientInfo(b,d,e);c(a);break;case 'injectVerificationScriptResources':c=p(d).next().value;a.g.injectVerificationScriptResources(c);break;case 'setCreativeType':c=p(d).next().value;a.g.setCreativeType(c);
break;case 'setImpressionType':c=p(d).next().value;a.g.setImpressionType(c);break;case 'setContentUrl':c=p(d).next().value;a.g.g.D=c;break;case 'sessionError':b=p(d),c=b.next().value,b=b.next().value,a.g.error(c,b)}};function Z(){var a=X,b=ic,c=jc,d=Xb;this.j=ec;this.h=a;this.i=b;this.m=c;this.l=d;this.g=C()}n=Z.prototype;
n.ba=function(a){if(!(!(a&&M(a)&&P(a.impressionOwner,ra))||'videoEventsOwner'in a&&null!=a.videoEventsOwner&&!P(a.videoEventsOwner,ra)||'mediaEventsOwner'in a&&null!=a.mediaEventsOwner&&!P(a.mediaEventsOwner,ra))){if(a.creativeType&&a.impressionType){var b=a.mediaEventsOwner;null==this.g.h&&this.j.setCreativeType(a.creativeType,b);null==this.g.m&&(this.g.m=a.impressionType);pb(this.h,b)}else b=a.videoEventsOwner,this.g.g=null==b||'none'===b?'display':'video',this.g.h=null,this.g.m=null,pb(this.h,
b);qb(this.h,a.impressionOwner);a&&null!=a.isolateVerificationScripts&&'boolean'===typeof a.isolateVerificationScripts&&(this.g.I=a.isolateVerificationScripts)}};
n.$=function(a,b,c,d){b&&'string'===typeof b.adSessionType&&(b.adSessionType=b.adSessionType.toLowerCase());var e;if(M(b)){if(e=P(b.environment,ua)&&P(b.adSessionType,qa))e=b.omidNativeInfo,e=M(e)?O(e.partnerName)&&O(e.partnerVersion):!1;e&&(e=b.app,e=M(e)?O(e.libraryVersion)&&O(e.appId):!1)}else e=!1;if(e){if(Kb(d)){e=p(Object.values(d));for(var f=e.next();!f.done;f=e.next())f.value.accessMode='limited';this.g.A=new Map(Object.entries(d))}else this.g.N=!0;d=this.j;c=void 0===c?null:c;null==a&&(a=
Tb());b.canMeasureVisibility=d.h.H();d.g.adSessionId=a;a=d.g;e=b;void 0!==e.contentUrl&&(a.D=e.contentUrl,e.contentUrl=void 0);e=a.i||{};b.omidJsInfo=Object.assign({},e.omidJsInfo||{},b.omidJsInfo||{});e=b=Object.assign({},e,b);a.I||(null!=a.l?(e.videoElement=a.l,e.accessMode='full'):null!=a.j&&(e.slotElement=a.j,e.accessMode='full'));a.i=b;fb(d.i,c);d.h&&R(d.h)}else G('Native ad session context invalid; session not started.')};n.Y=function(){var a=this.j;kb(a.i);a.h.A()};
n.ga=function(a){M(a)&&N(a.x)&&N(a.y)&&N(a.width)&&N(a.height)&&(this.g.L=a,sb(this.i,'container'))};n.ha=function(a){P(a,ta)&&(this.g.C=a,'backgrounded'===a?sb(this.i,'container','backgrounded'):sb(this.i,'container'))};n.ca=function(a){'impression'===a&&(this.S(),this.l&&R(this.l))};n.S=function(){rb(this.h,'native')&&lb(this.h,'native')};n.Z=function(a){a=void 0===a?null:a;L(this.h,'native')&&mb(this.h,'native',a)};n.error=function(a,b){P(a,pa)&&eb(this.h,a,b)};n.da=function(a,b){this.T(a,b)};
n.T=function(a,b){L(this.h,'native')&&P(a,w)&&(void 0===b||M(b))&&('loaded'==a?mb(this.h,'native',b):nb(this.h,a,'native',b))};n.ea=function(a){if('none'!==this.h.g.o&&'number'===typeof a&&!isNaN(a)){this.g.H=a;a=this.m;var b=a.g.J;null!=b&&nb(a.h,'volumeChange','native',{mediaPlayerVolume:b,deviceVolume:a.g.H})}};n.fa=function(a){if(a&&M(a)&&N(a.timestamp)){var b=(this.g.v||{}).timestamp;if(!b||b<a.timestamp)this.g.v=a}};Z.prototype.startSession=Z.prototype.$;Z.prototype.error=Z.prototype.error;
Z.prototype.finishSession=Z.prototype.Y;Z.prototype.publishAdEvent=Z.prototype.ca;Z.prototype.publishImpressionEvent=Z.prototype.S;Z.prototype.publishVideoEvent=Z.prototype.da;Z.prototype.publishMediaEvent=Z.prototype.T;Z.prototype.publishLoadedEvent=Z.prototype.Z;Z.prototype.setNativeViewHierarchy=Z.prototype.ga;Z.prototype.setState=Z.prototype.ha;Z.prototype.setDeviceVolume=Z.prototype.ea;Z.prototype.init=Z.prototype.ba;Z.prototype.setLastActivity=Z.prototype.fa;function kc(){var a=X,b=lc,c=this;var d=void 0===d?D:d;this.j=a;this.g=b;this.m={};this.l={};this.i=new W;d.omid=d.omid||{};d.omid.v1_VerificationServiceCommunication=this.i;this.h=null;d&&d.addEventListener&&d.postMessage&&(this.h=new Sb(d));this.i.g=function(e,f){mc(c,e,f,c.i)};this.h&&(this.h.g=function(e,f){c.h&&mc(c,e,f,c.h)})}n=kc.prototype;n.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};function nc(a,b,c,d){Ab(a.g,b,c,d)}
n.setTimeout=function(a,b){return this.g.setTimeout(a,b)};n.clearTimeout=function(a){this.g.clearTimeout(a)};n.setInterval=function(a,b){return this.g.setInterval(a,b)};n.clearInterval=function(a){this.g.clearInterval(a)};function oc(a,b,c,d){zb(a.g,'downloadJavaScriptResource')(b,c,d)}
function mc(a,b,c,d){function e(){var F=new V(f,'response',g,ac(g,u.apply(0,arguments)));d.h(F,c)}var f=b.h,l=b.method,g=b.version;b=bc(g,b.g);if(null!=Rb(l,'VerificationService.')){l=Rb(l,'VerificationService.');try{switch(l){case 'addEventListener':var h=p(b),k=h.next().value,m=h.next().value||pc(c);a.addEventListener(k,e,m);break;case 'addSessionListener':var t=p(b),E=t.next().value,A=t.next().value||pc(c);bb(a.j,e,E,A);break;case 'sendUrl':var H=p(b).next().value;nc(a,H,function(){return e(!0)},
function(){return e(!1)});break;case 'setTimeout':var I=p(b),uc=I.next().value,vc=I.next().value;a.m[uc]=a.setTimeout(e,vc);break;case 'clearTimeout':var wc=p(b).next().value;a.clearTimeout(a.m[wc]);break;case 'setInterval':var Nb=p(b),xc=Nb.next().value,yc=Nb.next().value;a.l[xc]=a.setInterval(e,yc);break;case 'clearInterval':var zc=p(b).next().value;a.clearInterval(a.l[zc]);break;case 'injectJavaScriptResource':var Ac=p(b).next().value;oc(a,Ac,function(F){return e(!0,F)},function(){return e(!1)});
break;case 'getVersion':p(b).next();var Bc=C().i.omidJsInfo;e(Bc.serviceVersion)}}catch(F){d.h(new V(f,'error',g,'\n              name: '+F.name+'\n              message: '+F.message+'\n              filename: '+F.filename+'\n              lineNumber: '+F.lineNumber+'\n              columnNumber: '+F.columnNumber+'\n              stack: '+F.stack+'\n              toString(): '+F.toString()+'\n          '),c)}}}
function pc(a){for(var b=C().M,c=p(b.keys()),d=c.next();!d.done;d=c.next()){d=d.value;var e=b.get(d);if(e){if(e.contentWindow===a)return d;try{if(e.contentWindow.Object.prototype.isPrototypeOf(a))return d}catch(f){}}}};function qc(){var a=D.document.createElement('iframe');a.id='omid_v1_present';a.name='omid_v1_present';a.style.display='none';a.sandbox='';D.document.body.appendChild(a)}function rc(){var a=new MutationObserver(function(b){b.forEach(function(c){'BODY'===c.addedNodes[0].nodeName&&(qc(),a.disconnect())})});a.observe(D.document.documentElement,{childList:!0})};var X=new Va,lc=new S;new kc;var sc=new function(){},tc=new function(){},ic=new function(){this.h=X;this.i=tc;this.g=C()},Cc;D?Cc=D.IntersectionObserver&&(D.MutationObserver||D.ResizeObserver)?new U(D,sc,ic,X):new T(D,tc,ic,lc,X):Cc=null;var Xb=Cc,Yb=new function(){var a=X;var b=void 0===b?D:b;this.j=a;this.g=b;this.i=C();this.h=[]},ec=new Wb,jc=new function(){var a=X,b=C();this.h=a;this.g=b};D.omidBridge=new Z;new dc;
if(D.frames&&D.document&&!('omid_v1_present'in D.frames)){var Dc;if(Dc=null==D.document.body)Dc='MutationObserver'in D;Dc?rc():D.document.body?qc():D.document.write('<iframe style="display:none" id="omid_v1_present" name="omid_v1_present" sandbox></iframe>')};
}).call(this, this);

