/*! * Aniview Ad Player v6.3.25 * Build time: 2024-12-17T08:10:01.246Z * All rights reserved to ANIVIEW LTD 2024 */ "use strict"; /*! License information is available at LICENSE.txt */!function(){var t={6312:function(t,e,n){var i=n(4444);e.A=i},8740:function(t,e,n){n.d(e,{A:function(){return l}});var i=n(1439);t=n.hmd(t);var o="object"==typeof exports&&null!==exports&&!exports.nodeType&&exports,r=o&&null!==t&&!t.nodeType&&t,a=r&&r.exports===o?i.A.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(t,e){if(void 0===e&&(e=!1),e)return t.subarray();var n=t.length,i=s?s(n):new t.constructor(n);return t.copy(i),i}},1439:function(t,e,n){var i=n(6312).A;e.A=i},9761:function(t,e,n){n.d(e,{A:function(){return s}});var i=n(1439);t=n.hmd(t);var o="object"==typeof exports&&null!==exports&&!exports.nodeType&&exports,r=o&&null!==t&&!t.nodeType&&t,a=r&&r.exports===o?i.A.Buffer:void 0,s=(a?a.isBuffer:void 0)||function(){return!1}},3565:function(t,e,n){var i=n(1960);t.exports=i},2671:function(t,e,n){n(2344),t.exports=n(5951)},4444:function(t,e,n){t.exports=n(214)},214:function(t,e,n){n(397);var i=n(3565);t.exports=i},2159:function(t,e,n){var i=n(2250),o=n(4640),r=TypeError;t.exports=function(t){if(i(t))return t;throw new r(o(t)+" is not a function")}},6624:function(t,e,n){var i=n(6285),o=String,r=TypeError;t.exports=function(t){if(i(t))return t;throw new r(o(t)+" is not an object")}},5807:function(t,e,n){var i=n(1907),o=i({}.toString),r=i("".slice);t.exports=function(t){return r(o(t),8,-1)}},1626:function(t,e,n){var i=n(9447),o=n(4284),r=n(5817);t.exports=i?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},5817:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2532:function(t,e,n){var i=n(5951),o=Object.defineProperty;t.exports=function(t,e){try{o(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},9447:function(t,e,n){var i=n(8828);t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9552:function(t,e,n){var i=n(5951),o=n(6285),r=i.document,a=o(r)&&o(r.createElement);t.exports=function(t){return a?r.createElement(t):{}}},6794:function(t,e,n){var i=n(5951).navigator,o=i&&i.userAgent;t.exports=o?String(o):""},798:function(t,e,n){var i,o,r=n(5951),a=n(6794),s=r.process,l=r.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(o=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=+i[1]),t.exports=o},1091:function(t,e,n){var i=n(5951),o=n(6024),r=n(2361),a=n(2250),s=n(3846).f,l=n(7463),c=n(2046),u=n(8311),A=n(1626),f=n(9724);n(6128);var d=function(t){var e=function(n,i,r){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,i)}return new t(n,i,r)}return o(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,o,p,y,h,g,m,b,v,w=t.target,k=t.global,C=t.stat,x=t.proto,S=k?i:C?i[w]:i[w]&&i[w].prototype,P=k?c:c[w]||A(c,w,{})[w],O=P.prototype;for(y in e)o=!(n=l(k?y:w+(C?".":"#")+y,t.forced))&&S&&f(S,y),g=P[y],o&&(m=t.dontCallGetSet?(v=s(S,y))&&v.value:S[y]),h=o&&m?m:e[y],(n||x||typeof g!=typeof h)&&(b=t.bind&&o?u(h,i):t.wrap&&o?d(h):x&&a(h)?r(h):h,(t.sham||h&&h.sham||g&&g.sham)&&A(b,"sham",!0),A(P,y,b),x&&(f(c,p=w+"Prototype")||A(c,p,{}),A(c[p],y,h),t.real&&O&&(n||!O[y])&&A(O,y,h)))}},8828:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},6024:function(t,e,n){var i=n(1505),o=Function.prototype,r=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(r):function(){return a.apply(r,arguments)})},8311:function(t,e,n){var i=n(2361),o=n(2159),r=n(1505),a=i(i.bind);t.exports=function(t,e){return o(t),void 0===e?t:r?a(t,e):function(){return t.apply(e,arguments)}}},1505:function(t,e,n){var i=n(8828);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},3930:function(t,e,n){var i=n(1505),o=Function.prototype.call;t.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},2361:function(t,e,n){var i=n(5807),o=n(1907);t.exports=function(t){if("Function"===i(t))return o(t)}},1907:function(t,e,n){var i=n(1505),o=Function.prototype,r=o.call,a=i&&o.bind.bind(r,r);t.exports=i?a:function(t){return function(){return r.apply(t,arguments)}}},5582:function(t,e,n){var i=n(2046),o=n(5951),r=n(2250),a=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(i[t])||a(o[t]):i[t]&&i[t][e]||o[t]&&o[t][e]}},9367:function(t,e,n){var i=n(2159),o=n(7136);t.exports=function(t,e){var n=t[e];return o(n)?void 0:i(n)}},5951:function(t,e,n){var i=function(t){return t&&t.Math===Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9724:function(t,e,n){var i=n(1907),o=n(9298),r=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return r(o(t),e)}},3648:function(t,e,n){var i=n(9447),o=n(8828),r=n(9552);t.exports=!i&&!o((function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},6946:function(t,e,n){var i=n(1907),o=n(8828),r=n(5807),a=Object,s=i("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===r(t)?s(t,""):a(t)}:a},2250:function(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},7463:function(t,e,n){var i=n(8828),o=n(2250),r=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n===u||n!==c&&(o(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(r,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},7136:function(t){t.exports=function(t){return null==t}},6285:function(t,e,n){var i=n(2250);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},7376:function(t){t.exports=!0},5594:function(t,e,n){var i=n(5582),o=n(2250),r=n(8280),a=n(1175),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&r(e.prototype,s(t))}},4284:function(t,e,n){var i=n(9447),o=n(3648),r=n(8661),a=n(6624),s=n(470),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,A="enumerable",f="configurable",d="writable";e.f=i?r?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var i=u(t,e);i&&i[d]&&(t[e]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:A in n?n[A]:i[A],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},3846:function(t,e,n){var i=n(9447),o=n(3930),r=n(2574),a=n(5817),s=n(7374),l=n(470),c=n(9724),u=n(3648),A=Object.getOwnPropertyDescriptor;e.f=i?A:function(t,e){if(t=s(t),e=l(e),u)try{return A(t,e)}catch(t){}if(c(t,e))return a(!o(r.f,t,e),t[e])}},8280:function(t,e,n){var i=n(1907);t.exports=i({}.isPrototypeOf)},2574:function(t,e){var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},581:function(t,e,n){var i=n(3930),o=n(2250),r=n(6285),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!r(s=i(n,t)))return s;if(o(n=t.valueOf)&&!r(s=i(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!r(s=i(n,t)))return s;throw new a("Can't convert object to primitive value")}},2046:function(t){t.exports={}},4239:function(t,e,n){var i=n(7136),o=TypeError;t.exports=function(t){if(i(t))throw new o("Can't call method on "+t);return t}},6128:function(t,e,n){var i=n(7376),o=n(5951),r=n(2532),a="__core-js_shared__",s=t.exports=o[a]||r(a,{});(s.versions||(s.versions=[])).push({version:"3.38.1",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5816:function(t,e,n){var i=n(6128);t.exports=function(t,e){return i[t]||(i[t]=e||{})}},9846:function(t,e,n){var i=n(798),o=n(8828),r=n(5951).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},7374:function(t,e,n){var i=n(6946),o=n(4239);t.exports=function(t){return i(o(t))}},9298:function(t,e,n){var i=n(4239),o=Object;t.exports=function(t){return o(i(t))}},6028:function(t,e,n){var i=n(3930),o=n(6285),r=n(5594),a=n(9367),s=n(581),l=n(6264),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!o(t)||r(t))return t;var n,l=a(t,u);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!o(n)||r(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},470:function(t,e,n){var i=n(6028),o=n(5594);t.exports=function(t){var e=i(t,"string");return o(e)?e:e+""}},4640:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},6499:function(t,e,n){var i=n(1907),o=0,r=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+r,36)}},1175:function(t,e,n){var i=n(9846);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8661:function(t,e,n){var i=n(9447),o=n(8828);t.exports=i&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},6264:function(t,e,n){var i=n(5951),o=n(5816),r=n(9724),a=n(6499),s=n(9846),l=n(1175),c=i.Symbol,u=o("wks"),A=l?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return r(u,t)||(u[t]=s&&r(c,t)?c[t]:A("Symbol."+t)),u[t]}},2344:function(t,e,n){var i=n(1091),o=n(5951);i({global:!0,forced:o.globalThis!==o},{globalThis:o})},397:function(t,e,n){n(2344)},1960:function(t,e,n){var i=n(2671);t.exports=i}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={id:i,loaded:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}function r(t,e){for(var n=0;n1?e-1:0),i=1;i-1&&t%1==0&&t<=Number.MAX_SAFE_INTEGER}(t.length)&&!c(t)}var M=n(9761);function N(t){return Object(t)===t}var R=/^(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array$/;function L(t){return f(t)&&R.test(s(t))}function D(t,e,n,i,o,r,a,s,u,A){var d=t[n],p=e[n],y=A.get(p);if(y)a(t,n,y);else{var h,g=u?u(d,p,"".concat(n),t,e,A):void 0,m=void 0===g;if(m){var b=Array.isArray(p),v=!b&&(0,M.A)(p),w=!b&&!v&&L(p);g=p,b||v||w?Array.isArray(d)?g=d:f(h=d)&&W(h)?g=function(t,e){void 0===e&&(e=[]);var n=-1,i=t.length;for(e||(e=new Array(i));++n-1&&t%1==0&&t1?n-1+1<1||arguments.length<=n-1+1?void 0:arguments[n-1+1]:void 0,o=n>2?arguments.length<=3?void 0:arguments[3]:void 0;for(_.length>3&&"function"==typeof i?n--:i=void 0,o&&function(t,e,n){if(!N(n))return!1;var i=typeof e;return!!("number"===i?W(n)&&H(e,n.length):"string"===i&&e in n)&&P(n[e],t)}(arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],o)&&(i=n<3?void 0:i,n=1),t=Object(t);++e0);for(var e in t)if(j(t,e))return!1;return!0}(t.preloader.link):!!t.preloader.url),t.preloader.enable){var o;t.preloader.link||(t.preloader.url?C(t.preloader.url)&&(t.preloader.link=t.preloader.url):Object.assign(t.preloader,{url:Q,type:X}));var r=t.preloader.url===Q;(o=t.preloader).type||(o.type=r?X:"js")}}function q(t){!function(t){var e,n,i,o,r=null!=(e=null!=(n=t.scriptDomain)?n:t.scriptdomain)?e:"player.aniview.com",a=r?"".concat(r.startsWith("http")?"":"https://").concat(r,"/script/6.1/"):"",s=null!=(i=t.baseJsUrl)?i:t.basejsurl,l=null!=(o=t.omBaseJsUrl)?o:t.ombasejsurl;s||""===s||(s=a),l||""===l||(l=a),Y(t,{baseJsUrl:s,basejsurl:s,omBaseJsUrl:l,ombasejsurl:l})}(t),function(t){var e,n;if(null==(e=t.caption)||!e.enable)return;t.adLabel=t.caption,(n=t.adLabel).text||(n.text="-Advertisement-")}(t),function(t){var e;b(t.passback)&&(t.passback={}),C(t.passback)&&(t.passback={url:t.passback});var n=null==(e=t.display)?void 0:e.passback;if(null!=n&&n.enable?Y(t.passback,n):Y(t.passback,C(t.passbackUrl)?{url:t.passbackUrl}:t.passbackUrl||{},C(t.passbackurl)?{url:t.passbackurl}:t.passbackurl||{}),b(t.passback.enable)&&(t.passback.enable=!!t.passback.url),t.passback.enable)if(t.passback.url){var i,o=t.passback.url===Q;(i=t.passback).type||(i.type=o?X:"script")}else Object.assign(t.passback,{url:Q,type:X})}(t),J(t)}!function(t){t.avPlayer=function(e){var n,i,o,r,a,s,c,A={},d={},p=new u;(i=this).AdLoaded=!1,i.playing=!1,i.contentPlaying=!1,i.muted=!0;var h,g=null,m=null,b=null,v="track1.aniview.com";if(e.publisherId&&(e.publisherId=e.publisherId.trim()),e.channelId&&(e.channelId=e.channelId.trim()),q(e),e.trackDomain&&(v=e.trackDomain),e.adServerDomain&&e.wl){var w=e.adServerDomain.indexOf(".");if(w>-1)v=e.adServerDomain.substring(0,w)+"t"+e.adServerDomain.substring(w,100)}if(e.events&&e.events.playerStarted&&((new Image).src="https://"+v+"/track?pid="+e.publisherId+"&cid="+e.channelId+"&e=playerStarted&cb="+Date.now()),s={AdLoaded:[],AdStarted:[],AdStopped:[],AdSkipped:[],AdClosed:[],AdSkippableStateChange:["adSkippableState"],AdSizeChange:["adWidth","adHeight"],AdLinearChange:["adLinear"],AdDurationChange:["adDuration","adRemainingTime"],AdExpandedChange:["adExpanded"],AdRemainingTimeChange:["adRemainingTime"],AdVolumeChange:["adVolume"],AdImpression:[],AdVideoStart:[],AdVideoFirstQuartile:[],AdVideoMidpoint:[],AdVideoThirdQuartile:[],AdVideoComplete:[],AdClickThru:[],AdInteraction:[],AdUserAcceptInvitation:[],AdUserMinimize:[],AdUserClose:[],AdPaused:[],AdPlaying:[],AdLog:[],AdError:[],AdViewableImpression:[],ContentImpression:[],ContentComplete:[],ContentPaused:[],ContentPlaying:[],ContentClick:[],Inventory:[],InventoryRequest:[],WaterfallEnd:[],WaterfallStart:[],AdEvent:[],AdReady:[],CompanionView:[],AniviewPassbackResize:[],LoadedProvider:[],BeforeAdRequest:[]},e.startTemplate){var x=document.getElementById(e.position);if(x){var P=document.createElement("div");P.style.width="100%",P.style.margin="0 auto",P.style.maxWidth=e.maxWidth+"px";var O=document.createElement("div");O.id="aniBox",h=O;var j=document.createElement("div");e.position=e.position+"_"+Date.now(),j.id=e.position,P.appendChild(O),O.appendChild(j),x.appendChild(P)}}n&&n.parentNode&&(n.parentNode.removeChild(n),n=null),(n=document.createElement("iframe")).setAttribute("id","AVLoader"+e.position),n.style.display="none",n.src="about:blank";var T=!1;function E(){var t,n,i=document.getElementById(e.position)||e.positionDiv;if(t=i.parentNode||"BODY"!=i.parentNode.tagName?i.parentNode.clientWidth:document.body.clientWidth||screen.width,Math.floor(t)>4e3&&(t=4e3),n=Math.round(t/y(e.heightRatio)),0==e.height&&100==e.width){e.height=n,e.width=t;var o=e.maxHeight||(navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1?0:document.documentElement.clientHeight)||document.body.clientHeight||screen.height;e.height>o&&!e.autoHeight&&(e.height=o,e.width=Math.round(o*y(e.heightRatio))),e.minHeight&&(e.height=Math.max(e.height,e.minHeight)),e.minWidth&&(e.width=Math.max(e.width,e.minWidth))}e.width=Math.floor(e.width),e.height=Math.floor(e.height),A.width=d.width=e.width,A.height=d.height=e.height}function V(t){o.subscribe((function(e,n,r){var a;for(a=0;a0&&", ";for(a=0;a0)),l==i.muted)return;"function"!=typeof i.onUnmute||i.muted?"function"==typeof i.onMute&&i.muted&&(i.onMute(),i.muted=!0):(i.onUnmute(),i.muted=!1)}"ContentImpression"==t&&(i.contentPlaying=!0,"function"==typeof i.onContentPlay&&i.onContentPlay(e)),"ContentComplete"==t&&(i.contentPlaying=!1,"function"==typeof i.onContentPlay100&&i.onContentPlay100()),"ContentPaused"==t&&"function"==typeof i.onContentPaused&&i.onContentPaused(),"ContentPlaying"==t&&"function"==typeof i.onContentPlaying&&i.onContentPlaying(),"ContentClick"==t&&"function"==typeof i.onContentClick&&i.onContentClick(),"Inventory"==t&&"function"==typeof i.onInventory&&i.onInventory(e),"InventoryRequest"==t&&"function"==typeof i.onInventoryRequest&&i.onInventoryRequest(e),p.dispatch(t,e,n,r)}),t)}function I(t){i.playCalled||!t&&e.startOnView&&e.templateType>0||(i.playCalled=!0,document.body&&"function"==typeof document.body.appendChild?document.body.appendChild(n):(document.getElementById(e.position)||e.positionDiv).appendChild(n),n.contentWindow.document.open(),n.onload=a,n.contentWindow.document.close(),n.contentDocument&&k("http://".concat(e.adServerDomain||"go1.aniview.com","/api/adserver/adserve"),{document:n.contentDocument,crossOrigin:null}),function(t){function n(){t.updateGui({logo:!0})}e.hideLogoOnAd&&(t.on("AdImpression",(function(){t.updateGui({logo:!1})})),t.on("AdError",n),t.on("AdSkipped",n),t.on("AdVideoComplete",n)),e.clickmacro&&t.on("AdClickThru",(function(){(new Image).src=e.clickmacro})),e.impmacro&&t.on("AdImpression",(function(){(new Image).src=e.impmacro}))}(i))}a=function(){if(!T){var t,i;T=!0;var a=e.baseJsUrl,l=e.omBaseJsUrl;if(isNaN(e.abtest))5==Math.floor(20*Math.random())&&(e.abtest=5);5==e.abtest&&(a+="ab5/",l+="ab5/",e.baseJsUrl=a,e.omBaseJsUrl=l),a=a+"AVmanager.js?v=1.0&type=s&pid="+e.publisherId;try{(r=n.contentWindow.document.createElement("script")).src=a,r.type="text/javascript",i=function(){setTimeout((function(){if("function"==typeof n.contentWindow.getVPAIDAd){for(t in o=n.contentWindow.getVPAIDAd(),s)s.hasOwnProperty(t)&&V(t);!function(){var t;t={},E(),void 0===e.hideControls&&(e.hidecontrols=!1);(t=e).slot=e.position&&document.getElementById(e.position)||e.positionDiv,t.videoSlotCanAutoPlay=!0,t.getviewability=b,t.isplayer=1,o.initAd(e.width,e.height,"normal","","",t)}()}}),0)},r.onload=function(){i()},n.contentWindow.document.body.appendChild(r)}catch(t){}}},i.play=function(){function n(){I(!1),e.startTemplate&&h&&i.startTemplate(h)}if(e.waitfor&&e.waitfor.event){var o,r,a={uninitialized:1,loading:2,loaded:3,interactive:4,complete:5}[document.readyState]||6;if("load"===e.waitfor.event&&a<5)return void t.addEventListener("load",o=function(){n(),t.removeEventListener("load",o)});if("DOMContentLoaded"===e.waitfor.event&&a<3)return void document.addEventListener("DOMContentLoaded",r=function(){n(),document.removeEventListener("DOMContentLoaded",r)});if("timeout"===e.waitfor.event&&e.waitfor.timeout>0)return void setTimeout(n,1e3*e.waitfor.timeout)}n()},i.startAd=function(){setTimeout((function(){var t;i.AdLoaded?o.startAd():(null==(t=o)?void 0:t.getReadyAds())>0&&o.startAd()}))},i.getReadyAds=function(){if(o&&"function"==typeof o.getReadyAds)return o.getReadyAds()},i.getWidth=function(){return o?o.getAdWidth():-2},i.getHeight=function(){return o?o.getAdHeight():-2},i.setRequestState=function(t,e){o&&"function"==typeof o.setRequestState&&o.setRequestState(t,e)},i.setWaterfallState=function(t,e){o&&"function"==typeof o.setWaterfallState&&o.setWaterfallState(t,e)},i.pauseWaterfall=function(t){void 0===t&&(t=!1),this.setWaterfallState(!1,t)},i.resumeWaterfall=function(t){void 0===t&&(t=!0),this.setWaterfallState(!0,t)},i.setFullscreenState=function(t){o&&"function"==typeof o.setFullscreenState&&o.setFullscreenState(t)},i.setViewability=function(t){if(o)try{o.setViewability(t)}catch(t){}};var B,z;function F(t,n,i,r){i||(i="normal"),o&&("normal"===i&&(e.width=t,e.height=n,r&&(A.width=t,A.height=n)),d.width=t,d.height=n,o.resizeAd(Math.floor(t),Math.floor(n),i))}i.unmute=function(t){if(o){t=t||.2;try{var e=document.createElement("video");e.src="data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAAAthtZGF0AAACrQYF//+p3EXpvebZSLeWLNgg2SPu73gyNjQgLSBjb3JlIDE0MiByMjQ1MyBlYTBjYTUxIC0gSC4yNjQvTVBFRy00IEFWQyBjb2RlYyAtIENvcHlsZWZ0IDIwMDMtMjAxNCAtIGh0dHA6Ly93d3cudmlkZW9sYW4ub3JnL3gyNjQuaHRtbCAtIG9wdGlvbnM6IGNhYmFjPTEgcmVmPTMgZGVibG9jaz0xOjA6MCBhbmFseXNlPTB4MzoweDExMyBtZT1oZXggc3VibWU9NyBwc3k9MSBwc3lfcmQ9MS4wMDowLjAwIG1peGVkX3JlZj0xIG1lX3JhbmdlPTE2IGNocm9tYV9tZT0xIHRyZWxsaXM9MSA4eDhkY3Q9MSBjcW09MCBkZWFkem9uZT0yMSwxMSBmYXN0X3Bza2lwPTEgY2hyb21hX3FwX29mZnNldD00IHRocmVhZHM9NiBsb29rYWhlYWRfdGhyZWFkcz0xIHNsaWNlZF90aHJlYWRzPTAgbnI9MCBkZWNpbWF0ZT0xIGludGVybGFjZWQ9MCBibHVyYXlfY29tcGF0PTAgY29uc3RyYWluZWRfaW50cmE9MCBiZnJhbWVzPTMgYl9weXJhbWlkPTIgYl9hZGFwdD0xIGJfYmlhcz0wIGRpcmVjdD0xIHdlaWdodGI9MSBvcGVuX2dvcD0wIHdlaWdodHA9MiBrZXlpbnQ9MjUwIGtleWludF9taW49MjUgc2NlbmVjdXQ9NDAgaW50cmFfcmVmcmVzaD0wIHJjX2xvb2thaGVhZD00MCByYz1jcmYgbWJ0cmVlPTEgY3JmPTIzLjAgcWNvbXA9MC42MCBxcG1pbj0wIHFwbWF4PTY5IHFwc3RlcD00IGlwX3JhdGlvPTEuNDAgYXE9MToxLjAwAIAAAAAPZYiEAC///vYp+BTXMDH/AAAACEGaIWxCv/7AAAADCW1vb3YAAABsbXZoZAAAAAAAAAAAAAAAAAAAA+gAAABQAAEAAAEAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAI0dHJhawAAAFx0a2hkAAAAAwAAAAAAAAAAAAAAAQAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAACAAAAAgAAAAAAJGVkdHMAAAAcZWxzdAAAAAAAAAABAAAAUAAAAAAAAQAAAAABrG1kaWEAAAAgbWRoZAAAAAAAAAAAAAAAAAAAMgAAAAQAVcQAAAAAAC1oZGxyAAAAAAAAAAB2aWRlAAAAAAAAAAAAAAAAVmlkZW9IYW5kbGVyAAAAAVdtaW5mAAAAFHZtaGQAAAABAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAAEXc3RibAAAAJdzdHNkAAAAAAAAAAEAAACHYXZjMQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAACAAIASAAAAEgAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABj//wAAADFhdmNDAfQACv/hABhn9AAKkZsr8fH4CIAAAAMAgAAAGQeJEssBAAZo6+PESEQAAAAYc3R0cwAAAAAAAAABAAAAAgAAAgAAAAAUc3RzcwAAAAAAAAABAAAAAQAAABxzdHNjAAAAAAAAAAEAAAABAAAAAgAAAAEAAAAcc3RzegAAAAAAAAAAAAAAAgAAAsQAAAAMAAAAFHN0Y28AAAAAAAAAAQAAADAAAABhdWR0YQAAAFltZXRhAAAAAAAAACFoZGxyAAAAAAAAAABtZGlyYXBwbAAAAAAAAAAAAAAAACxpbHN0AAAAJKl0b28AAAAcZGF0YQAAAAEAAAAATGF2ZjU2LjAuMTAw",e.setAttribute("playsinline",!0),e.setAttribute("webkit-playsinline",!0),e.style.display="none",document.body.appendChild(e),e.muted=!1;var n=e.play();n?(n.then((function(){i(!0)})).catch((function(t){i(!1)})),setTimeout((function(){i(!1)}),1e3)):i(!1)}catch(t){}}function i(e){e&&o.setAdVolume(t||1)}},i.mute=function(){try{o&&o.setAdVolume(0)}catch(t){}},i.pause=function(){o&&o.pauseAd()},i.resume=function(){o&&o.resumeAd()},i.skip=function(){o&&o.skipAd()},i.close=function(t){o&&"function"==typeof o.stopAd&&o.stopAd(),t=t||3e3,setTimeout((function(){try{n&&(document.body.removeChild(n),n=null,o=null),i.stopViewability()}catch(t){}}),t+1)},i.getEvents=function(){var t=[];for(var e in s)t.push(e);return t},i.updateGui=function(t){try{if("object"==typeof t)for(var e in t){var i=e.toLowerCase();n.contentWindow.AV_PlayerGui.config[i]=t[e],n.contentWindow.AV_PlayerGui.config[e]=t[e],"showTimeline"==e&&"function"==typeof n.contentWindow.AV_PlayerGui.showTimeline&&n.contentWindow.AV_PlayerGui.showTimeline(t[e])}}catch(t){}},i.resize=function(t,e,n){F(t,e,n,!0)},i.getAdDuration=function(){if(o)return o.getAdDuration()},i.getAdRemainingTime=function(){if(o)return o.getAdRemainingTime()},i.getAdVolume=function(){if(o)return o.getAdVolume()},i.setAdVolume=function(t){if(o)return o.setAdVolume(t)},i.getAdCompanions=function(){if(o)return o.getAdCompanions()},i.seek=function(t){if(o)return o.seekAd(t)},i.getContentPaused=function(){if(o)return o.getContentPaused()},i.getContentCurrentTime=function(){if(o)return o.getContentCurrentTime()},this.pauseContent=function(){if(o)return o.pauseContent()},this.resumeContent=function(){if(o)return o.resumeContent()},this.setContentVolume=function(t){if(o)return o.setContentVolume(t)},this.on=function(t,e,n){p.subscribe(e,t,n)},this.off=function(t,e){p.unsubscribe(e,t)},this.setFloor=function(t){if(o)return o.setFloor(t)},this.setAdConfig=function(t){if(o)return Object.assign(e,t),o.setAdConfig(t)},this.apsHaOptOut=function(){if(o)return o.apsHaOptOut()},c=function(){var n,i,o=null,r=.5,a=null,s=!1,c=this;function u(){var t=a.iframe?a.baseEl:null,n=c.getVieabilityInfo(a.el,a.wnd,t),i=n.vertical.value*n.horizontal.value,o=n.vertical.state;return e.vitab&&a.wnd&&a.wnd.document&&"hidden"===a.wnd.document.visibilityState&&(i=0,o="OUT_TAB"),{inView:i>=r,ratio:i,state:o,distance:n.vertical.distance}}function A(){var t=u();o&&o(t.inView,t.ratio,t.state,t.distance)}this.checkViewability=function(){A()},this.start=function(c,u,d,p){if(s)return!1;if(a=function(e,n){var i,o,r=null,a="object"==typeof e?e:document.getElementById(e);try{if(t.top.location.href,r=t.frameElement)for(var l,c=t;c!==t.top;){if((c=(l=r.ownerDocument).defaultView||l.parentWindow)===t.top){o=c,i=r;break}r=c.frameElement}}catch(t){return s=!0,null}if(null==r){if(!(i=a))return s=!0,null;o=t}return{el:i,wnd:o,baseEl:a,iframe:!(null==r)&&n}}(c,p),!a)return!1;if(d&&(r=d),u){var y,h=null==(y=e.floating)?void 0:y.scroller;n=h?(m=h,void 0===b&&(b=a.wnd.document),C(m)?b.querySelector(m):m):a.wnd,i=f(g=n)&&l(g,"Window")&&g===g.window,n.addEventListener("resize",A,S()),n.addEventListener("scroll",A,S()),o=u,setTimeout(A,10)}var g,m,b;return!0},this.stop=function(){o&&(n.removeEventListener("resize",A,S()),n.removeEventListener("scroll",A,S()),o=null)},this.get=function(t,e){return!s&&a?u():{inView:!1,ratio:0,state:"UNKNOWN"}},this.getHorizontalViewability=function(t,e){var o=i?e.innerWidth:n.clientWidth,r=i?0:n.getBoundingClientRect().left,a=t.getBoundingClientRect(),s=a.left-r,l=a.right-r,c=l-s;return s>o?{value:0,state:"OUT_RIGHT"}:l<=0?{value:0,state:"OUT_LEFT"}:s>=0&&l<=o?{value:1,state:"IN_HVIEW"}:s<0&&l>o?{value:o/c,state:"LR_TRUNC"}:s<0&&l<=o?{value:l/c,state:"L_TRUNC"}:s>=0&&l>o?{value:(o-s)/c,state:"R_TRUNC"}:{value:0,state:"OUT"}},this.getVerticalViewability=function(t,e,o){var r=i?e.innerHeight:n.clientHeight,a=i?0:n.getBoundingClientRect().top,s=t.getBoundingClientRect(),l=s.top-a,c=s.bottom-a,u=c-l;return o&&(u=(c=(l+=o.getBoundingClientRect().top)+(o.getBoundingClientRect().bottom-o.getBoundingClientRect().top))-l),l>r?{value:0,state:"OUT_BOTTOM",out:-1}:c<=0?{value:0,state:"OUT_TOP",out:-1}:l>=0&&c<=r?{value:1,state:"IN_VVIEW",out:0,distance:r-l}:l<0&&c>r?{value:r/u,state:"BT_TRUNC",out:-l+c-r}:l<0&&c<=r?{value:c/u,state:"T_TRUNC",out:-l}:l>=0&&c>r?{value:(r-l)/u,state:"B_TRUNC",out:c-r}:{value:0,state:"OUT",out:-1}},this.getVieabilityInfo=function(t,e,n){return{vertical:c.getVerticalViewability(t,e,n),horizontal:c.getHorizontalViewability(t,e,n)}}},this.startViewability=function(t,e,n,i){return g||(g=new c),g.start(t,e,n,i)},this.stopViewability=function(){g&&g.stop()},this.getViewability=function(){if(g)return g.get()},b=function(t,e,n){if(t)return m||(m=new c).start(t,e,n),m.get();m.stop()},B={hidden:void 0,visibilityChange:void 0},void 0!==document.hidden?(B.hidden="hidden",B.visibilityChange="visibilitychange"):void 0!==document.webkitHidden?(B.hidden="webkitHidden",B.visibilityChange="webkitvisibilitychange"):void 0!==document.mozHidden?(B.hidden="mozHidden",B.visibilityChange="mozvisibilitychange"):void 0!==document.msHidden&&(B.hidden="msHidden",B.visibilityChange="msvisibilitychange"),B.hidden&&document.addEventListener(B.visibilityChange,(function(t){!document[B.hidden]||i.mute()}),!1);var W=!1,M=0,N={addClass:function(t,e){(this.isSticky()||this.isFloating())&&t.style.visibility&&(e+=";visibility:"+t.style.visibility+";"),t.style.cssText=e},setfloatingCSS:function(){if(!this.floatingCSS)if(e.floating.floatingCSS)this.floatingCSS=e.floating.floatingCSS;else{var t="";switch(e.floating.backgroundColor||(e.floating.backgroundColor="black"),!0===e.floating.passClick&&(t="pointer-events: none;"),e.floating.right||(e.floating.right=0),e.floating.left||(e.floating.left=0),e.floating.top||(e.floating.top=0),e.floating.bottom||(e.floating.bottom=0),e.floating.position?e.floating.position=e.floating.position.toLowerCase():e.floating.position="bottom-right",e.floating.position){case"bottom-left":this.floatingCSS="bottom:"+e.floating.bottom+"px; left:"+e.floating.left+"px; -webkit-transform-origin:bottom left; transform-origin:bottom left;";break;case"top-left":this.floatingCSS="top:"+e.floating.top+"px; left:"+e.floating.left+"px; -webkit-transform-origin:top left; transform-origin:top left;";break;case"top-right":this.floatingCSS="top:"+e.floating.top+"px; right:"+e.floating.right+"px; -webkit-transform-origin:top right; transform-origin:top right;";break;case"bottom-right":this.floatingCSS="bottom:"+e.floating.bottom+"px; right:"+e.floating.right+"px; -webkit-transform-origin:bottom right; transform-origin:bottom right;";break;case"top":this.floatingCSS=t+"top:"+e.floating.top+"px; display:flex; justify-content: center; align-items: center; width:100%; background: "+e.floating.backgroundColor+"; left: 0;";break;case"bottom":this.floatingCSS=t+"bottom:"+e.floating.bottom+"px; display:flex; justify-content: center; align-items: center; width:100%; background: "+e.floating.backgroundColor+"; left: 0;"}this.floatingCSS+="z-index:"+(e.maxzindex||10000001)+";position:fixed;",e.floating.resize||(this.floatingCSS+="transform:scale("+e.floating.size+"); -webkit-transform:scale("+e.floating.size+");")}},setStickyCSS:function(){var t=.5,n=0,i=0,o=0,r=0,a="";e.sticky.size&&(t=e.sticky.size),!0===e.sticky.passClick&&(a="pointer-events: none;"),e.sticky.backgroundColor||(e.sticky.backgroundColor="black"),e.sticky.right&&(n=e.sticky.right),e.sticky.bottom&&(i=e.sticky.bottom),e.sticky.top&&(o=e.sticky.top),e.sticky.left&&(r=e.sticky.left),"string"!=typeof e.sticky.position&&(e.sticky.position="");var s=e.maxzindex||10000001;switch(e.sticky.position.toLowerCase()){case"bottom-right":this.stickyCSS="z-index:"+s+";position:fixed; bottom:"+i+"px; right:"+n+"px; -webkit-transform:scale("+t+"); -webkit-transform-origin:bottom right; transform:scale("+t+"); transform-origin:bottom right";break;case"bottom-left":this.stickyCSS="z-index:"+s+";position:fixed; bottom:"+i+"px; left:"+r+"px; -webkit-transform:scale("+t+"); -webkit-transform-origin:bottom left; transform:scale("+t+"); transform-origin:bottom left";break;case"top-left":this.stickyCSS="z-index:"+s+";position:fixed; top:"+o+"px; left:"+r+"px; -webkit-transform:scale("+t+"); -webkit-transform-origin:top left; transform:scale("+t+"); transform-origin:top left";break;case"top-right":this.stickyCSS="z-index:"+s+";position:fixed; top:"+o+"px; right:"+n+"px; -webkit-transform:scale("+t+"); -webkit-transform-origin:top right; transform:scale("+t+"); transform-origin:top right";break;case"top":this.stickyCSS=a+"z-index:"+s+";position:fixed; top:"+o+"px; position:fixed; display:flex; justify-content: center; align-items: center; width:100%; background: "+e.sticky.backgroundColor+"; left: 0;";break;case"bottom":this.stickyCSS=a+"z-index:"+s+";position:fixed; bottom:"+i+"px; position:fixed; display:flex; justify-content: center; align-items: center; width:100%; background: "+e.sticky.backgroundColor+"; left: 0;"}},getPlaceholderWidth:function(t){var n=t.parentNode||"BODY"!=t.parentNode.tagName?t.parentNode.clientWidth:document.body.clientWidth||screen.width;return n>4e3&&(n=4e3),100!=e.width&&0!=e.height?n=e.width:(e.height=Math.round(n/y(e.heightRatio)),e.width=n),n},hidePlayer:function(t,e,n){t&&(t.style.width=this.getPlaceholderWidth(t)+"px",t.style.height="1px",n?setTimeout((function(){i.playing||z||(t.style.opacity=0)}),1e3):t.style.opacity=0,(this.isSticky()||this.isFloating())&&(e.style.visibility="hidden"),W=!1)},showPlayer:function(t,n){var o=!1,r=!1;this.isFloating()&&(o=!0),this.isSticky()&&(r=!0),(r||o)&&(n.style.visibility=""),r||(t&&(!o||o&&"OUT_TOP"!==i.viewState&&"T_TRUNC"!==i.viewState)&&(t.style.width=A.width+"px",t.style.height=(1*e.captionHeight||0)+A.height+"px"),o&&e.floating&&e.floating.resize||F(e.width,e.height),n.style.zIndex=e.maxzindex||"9999999"),t&&(t.style.opacity=""),W=!0},startAd:function(){this.playerInView&&this.playerLoadedFirstTime&&!e.clickToPlay&&(setTimeout((function(){i.startAd()}),M),M=0)},isFloating:function(){return e.floating&&e.floating.size>0},isSticky:function(){return e.sticky&&e.sticky.size>0},stopFloat:function(){},startFloat:function(t){t.resize||(e.floating?t.resize=e.floating.resize:t.resize=!0),e.floating=t,this.isFloating()&&(e.playOnView=!0,e.floatPos||(e.floatPos=document.getElementById(e.position)||e.positionDiv),this.setfloatingCSS()),g&&g.checkViewability()},startSticky:function(t){var n,i;if((null==(n=e.sticky)?void 0:n.size)>0&&(t=Object.assign({},e.sticky,t)),(null==(i=t)?void 0:i.size)>0){e.sticky=t;var o=t.size||1;if(t.size=1,this.setStickyCSS(),this.addClass(document.getElementById(e.position)||e.positionDiv,this.stickyCSS),1!=o)F(A.width*o,A.height*o)}},onFloatingChanged:function(t){"function"==typeof i.onFloatingChanged&&i.onFloatingChanged(t)},startViewability:function(n){var o,r,a,s=this,l=!1,c=!1,u=!1,f=e.startOnView,p=!1,y=!(null==(o=e.preloader)||!o.enable||!e.preloader.type),h=null==(r=e.passback)?void 0:r.enable;function m(){return y&&(!i.displayApi||i.displayApi.hasLoadedAd||e.showPlayer)}function b(){return h&&(!i.displayApi||i.displayApi.hasLoadedAd||e.showPlayer)}function v(t){(s.addClass(k,s.floatingCSS),e.floating.resize&&!u||t&&u)&&(p?F(1==e.floating.size&&e.floating.width||A.width*e.floating.size,1==e.floating.size&&e.floating.height||A.height*e.floating.size):a=!0);e.floating.closeButton&&i.updateGui({close:!0}),u=!0,i.setAdConfig({floatState:!0}),s.onFloatingChanged(!0)}function w(){a=!1,u&&(s.addClass(k,""),e.floating.resize&&F(A.width,A.height),e.floating.closeButton&&!e.closeButton&&i.updateGui({close:!1}),u=!1,i.setAdConfig({floatState:!1}),s.onFloatingChanged(!1))}M=1e3*(e.startdelay||0),s.isFloating()&&(s.stopFloat=function(){e.floating.size=0,s.addClass(k,""),w(),this.floatingCSS=""}),e.floting&&!e.floating&&(e.floating=e.floting),(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&(c=!0),E();var k=document.getElementById(e.position)||e.positionDiv,C="";"bottomup"==e.openTransition&&(C="position:absolute;bottom:0;",n.parentNode.style.position="relative");var x=e.aniBoxCSS||"overflow:hidden; -webkit-transition:1s ease height; transition:1s ease height;opacity:0;"+C;n&&!e.showPos&&s.addClass(n,x),s.isFloating()&&(e.playOnView=!0,e.floatPos||(e.floatPos=k),s.setfloatingCSS()),s.isSticky()&&(e.floatPos||(e.floatPos=k),e.playOnView=!1,s.setStickyCSS(),y||(e.hideInitPreloader=!0)),(e.playOnView&&!e.autoPlay&&!e.showPlayer||e.openAnim)&&s.hidePlayer(n,k),e.showPlayer&&s.showPlayer(n,k),e.showPos&&(n.style.width=A.width+"px",n.style.height=A.height+"px");var S,P,O,j=function(){setTimeout((function(){i.unmute()}),5)},T=function(){setTimeout((function(){i.mute()}),5)},V=function(){setTimeout((function(){i.pause()}),500)};if(i.on("AdLoaded",(function(){s.playerLoadedFirstTime=!0,s.startAd()})),i.on("AniviewPassbackResize",(function(t){i.resize(t.w,t.h)})),i.on("LoadedProvider",(function(t){var e;null==(e=i.displayApi)||null==e.destroy||e.destroy(),i.displayApi=t})),i.on("AdImpression",(function(){if(n&&(n.style.opacity=""),s.isSticky()&&""!=e.preloader.type&&s.addClass(k,s.stickyCSS),e.floating&&e.floating.floatOnImp&&(e.floating.floatOnImp=!1),s.showPlayer(n,k),e.unMuteOnMouseEnter&&!c&&(k.addEventListener("mouseenter",j),k.addEventListener("mouseleave",T)),e.pauseOnBlur&&!c&&t.addEventListener("blur",V),e.playOnView)try{g.checkViewability()}catch(t){}s.isFloating()&&e.floating.resize&&F(d.width,d.height)})),i.on("AdVideoComplete",(function(){e.loopVideo||e.lastFrame||m()||z||e.completeonadstopped||s.hidePlayer(n,k,!0),0==e.autoPlayLoop&&(s.startAdFirstTime=!1,l&&s.startAd())})),i.on("AdSkipped",(function(){m()||z||s.hidePlayer(n,k,!0)})),i.on("AdStopped",(function(){e.loopVideo||e.lastFrame||m()||z||s.hidePlayer(n,k,!0),e.unMuteOnMouseEnter&&!c&&(k.removeEventListener("mouseenter",j),k.removeEventListener("mouseleave",T)),e.pauseOnBlur&&!c&&t.removeEventListener("blur",V)})),i.on("Inventory",(function(){p=!0,a&&v(!0),W&&e.captionHeight&&s.showPlayer(n,k)})),i.on("AdClosed",(function(){if(e.closeevent||s.isFloating()&&e.floating.closeButton){e.floating.resize&&F(A.width,A.height);var t=u;s.addClass(k,""),s.showPlayer(n,k),s.isFloating()&&e.floating.closeButton&&(e.closeButton||i.updateGui({close:!1}),t||i.close()),e.floating.size=0}else s.hidePlayer(n,k),i.stopViewability(),e.floating.closeButton&&(e.floating.closeButton=!1,i.close())})),i.on("AdError",(function(t){var o=t&&t.errorlimit;m()||b()||e.showPlayer?(b()||i.displayApi&&m())&&(e.playOnView||e.passbackpriority)&&o&&(z=!0,s.showPlayer(n,k),e.passback.nofloat&&s.isFloating()&&(e.floating.size=0,s.addClass(k,""))):s.hidePlayer(n,k)})),e.playOnView||f||e.enableViewability){var B=.5;e.inViewRatio&&(S=e.inViewRatio,P=0,O=1,S=Number(S),P=Number(P),O=Number(O),P=isNaN(P)?0:P,O=isNaN(O)?0:O,isNaN(S)||(S=Math.max(Math.min(S,O),P)),B=S),i.startViewability(n,(function(t,o,r,a){if(i.viewState=r,t&&e.playOnViewPerc&&e.playOnViewPerc>0){var c=100-100*(e.height-a)/e.height;c>0&&c