player.aniview.com Open in urlscan Pro
2a02:26f0:3500:f::1732:831e  Public Scan

URL: https://player.aniview.com/script/6.1/AVmanager.js?AV_PUBLISHERID
Submission: On August 29 via api from IT — Scanned from IT

Form analysis 0 forms found in the DOM

Text Content

/*!
 * Aniview Ad Player v6.2.234
 * Build time: 2024-08-27T11:35:40.871Z
 * All rights reserved to ANIVIEW LTD 2024
 */
/*! License information is available at LICENSE.txt */!function(){var t,e,i={4221:function(t,e,i){"use strict";var n=i(888);e.Z=n},5568:function(t,e,i){"use strict";i.d(e,{F:function(){return n},Z:function(){return r}});var n={topWnd:void 0,topDoc:void 0,vitab:void 0,sf:void 0,atsWindow:void 0,frameElement:void 0};function r(t){if(void 0===t&&(t=window),n.topWnd)return n.topWnd;var e=t||window;n.sf=window.$sf;try{for(;e.frameElement;){n.frameElement=e.frameElement;try{var i;if(e.frameElement.getBoundingClientRect())(e=e.frameElement.ownerDocument.defaultView||e.frameElement.ownerDocument.parentWindow).$sf&&(n.sf=e.$sf),null!=(i=e.ats)&&i.retrieveEnvelope&&(n.atsWindow=e)}catch(t){break}}}catch(t){}return n.topWnd=e||t||window,n.topWnd}},4798:function(t,e,i){"use strict";i.d(e,{Z:function(){return l}});var n=i(1929);t=i.hmd(t);var r="object"==typeof exports&&null!==exports&&!exports.nodeType&&exports,o=r&&null!==t&&!t.nodeType&&t,a=o&&o.exports===r?n.Z.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(t,e){if(void 0===e&&(e=!1),e)return t.slice();var i=t.length,n=s?s(i):new t.constructor(i);return t.copy(n),n}},1929:function(t,e,i){"use strict";var n=i(4221).Z;e.Z=n},3127:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});var n=i(1929);t=i.hmd(t);var r="object"==typeof exports&&null!==exports&&!exports.nodeType&&exports,o=r&&null!==t&&!t.nodeType&&t,a=o&&o.exports===r?n.Z.Buffer:void 0,s=(a?a.isBuffer:void 0)||function(){return!1}},5533:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,{Z:function(){return n}})},1304:function(t,e,i){"use strict";i.d(e,{Z:function(){return r}});var n=i(3617);function r(t,e){return(0,n.Z)(t)===e}},7838:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var n=i(5533),r=i(1304);function o(t){return"string"==typeof t||(0,n.Z)(t)&&(0,r.Z)(t,"String")}},3617:function(t,e,i){"use strict";i.d(e,{Z:function(){return r}});var n=Object.prototype.toString;function r(t){return n.call(t).slice(8,-1)}},6012:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var n=i(5568),r=i(7838);function o(t){var e;if((0,r.Z)(t)){var i=(0,n.Z)();if((null==i||null==(e=i.AMP_CONTEXT_DATA)||null==(e=e.canonicalUrl)?void 0:e.length)>10)return i.AMP_CONTEXT_DATA.canonicalUrl;var o=t.indexOf("/amp/");if(o>0&&o<40){var a=t.indexOf("google.");a>0&&a<o&&(t="https://".concat(t.substring(o+5,500)))}else{var s=!0,l="cdn.ampproject.org/v/s/";(o=t.indexOf(l))<=-1&&(s=!1,l="cdn.ampproject.org/v/",o=t.indexOf(l)),o>-1&&o<50&&(t="http".concat(s?"s":"","://").concat(t.substring(o+l.length,500)))}return t}}},3701:function(t,e,i){"use strict";i.d(e,{X:function(){return a}});var n,r=i(6012);function o(){var t=null;try{var e=function(t){var e,i=[];do{try{e=e?e.parent:window,t.call(null,e,i)}catch(t){return i.push({referrer:null,location:null,isTop:!1}),i}}while(e!==window.top);return i}((function(t,e){try{e.push({referrer:t.document.referrer||null,location:t.location.href||null,isTop:t===window.top})}catch(i){e.push({referrer:null,location:null,isTop:t===window.top})}}));!function(t){try{if(!window.location.ancestorOrigins)return;for(var e=0,i=window.location.ancestorOrigins.length;i>e;e++)t.call(null,window.location.ancestorOrigins[e],e)}catch(t){}}((function(t,i){e[i].ancestor=t})),t="";for(var i=e.length-1;i>=0;i--)if(!(t=e[i].location)&&i>0&&((t=e[i-1].referrer)||(t=e[i-1].ancestor)),t){!!window.location.ancestorOrigins||i==e.length-1&&e[e.length-1].isTop;break}try{var n=!1;if(t&&t.indexOf("google.")>-1&&window.location.ancestorOrigins&&e.length>3){var r=e.length;!e[r-1].location&&!e[r-2].location&&e[r-2].ancestor&&e[r-2].ancestor.indexOf("google.")>-1&&e[r-3].referrer&&e[r-3].referrer.indexOf(".cdn.ampproject.org")>-1&&(t=e[r-3].referrer,n=!0)}if(!n&&t.indexOf(".cdn.ampproject.org")>-1){var o=t.split("/");if(o&&o.length>3&&o[2].indexOf(".cdn.ampproject.org")>-1)for(var a=3;a<o.length;a++)if(o[a].indexOf(".")>-1){o.splice(0,a),t="https://"+o.join("/"),n=!0;break}}if(t.indexOf(".cdn.ampproject.org")>-1){var s=t.indexOf(".cdn.ampproject.org"),l=t.substring(0,s).replace(/--?/g,(function(t){return t.length>1?"-":"."}));l.length>5&&(t=l)}}catch(t){}}catch(t){}return t}function a(){try{if(n)return n;var t=o();if("string"==typeof t)try{t=(0,r.Z)(t)}catch(t){}return"string"==typeof t&&t.length>4&&(n=t),t}catch(t){return null}}},5023:function(t,e,i){var n=i(2369);t.exports=n},3263:function(t,e,i){var n=i(2773);t.exports=n},1031:function(t,e,i){i(2595),t.exports=i(1899)},888:function(t,e,i){t.exports=i(1403)},1403:function(t,e,i){i(9668);var n=i(5023);t.exports=n},6735:function(t,e,i){var n=i(3263);t.exports=n},4883:function(t,e,i){var n=i(7475),r=i(9826),o=TypeError;t.exports=function(t){if(n(t))return t;throw o(r(t)+" is not a function")}},6059:function(t,e,i){var n=i(941),r=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw o(r(t)+" is not an object")}},3765:function(t,e,i){var n=i(5329);t.exports=n([].slice)},2532:function(t,e,i){var n=i(5329),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}},2029:function(t,e,i){var n=i(5746),r=i(5988),o=i(1887);t.exports=n?function(t,e,i){return r.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},1887:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5609:function(t,e,i){var n=i(1899),r=Object.defineProperty;t.exports=function(t,e){try{r(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},5746:function(t,e,i){var n=i(5981);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6616:function(t){var e="object"==typeof document&&document.all,i=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:i}},1333:function(t,e,i){var n=i(1899),r=i(941),o=n.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},6491:function(t){t.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},2749:function(t,e,i){var n=i(2861);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},6049:function(t,e,i){var n=i(2532);t.exports="undefined"!=typeof process&&"process"==n(process)},2861:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3385:function(t,e,i){var n,r,o=i(1899),a=i(2861),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,d=c&&c.v8;d&&(r=(n=d.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(r=+n[1]),t.exports=r},6887:function(t,e,i){"use strict";var n=i(1899),r=i(9730),o=i(7484),a=i(7475),s=i(9677).f,l=i(7252),c=i(4058),d=i(6843),u=i(2029),p=i(953),f=function(t){var e=function(i,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(i);case 2:return new t(i,n)}return new t(i,n,o)}return r(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var i,r,h,v,m,g,y,b,A,w=t.target,k=t.global,x=t.stat,_=t.proto,S=k?n:x?n[w]:(n[w]||{}).prototype,C=k?c:c[w]||u(c,w,{})[w],T=C.prototype;for(v in e)r=!(i=l(k?v:w+(x?".":"#")+v,t.forced))&&S&&p(S,v),g=C[v],r&&(y=t.dontCallGetSet?(A=s(S,v))&&A.value:S[v]),m=r&&y?y:e[v],r&&typeof g==typeof m||(b=t.bind&&r?d(m,n):t.wrap&&r?f(m):_&&a(m)?o(m):m,(t.sham||m&&m.sham||g&&g.sham)&&u(b,"sham",!0),u(C,v,b),_&&(p(c,h=w+"Prototype")||u(c,h,{}),u(c[h],v,m),t.real&&T&&(i||!T[v])&&u(T,v,m)))}},5981:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},9730:function(t,e,i){var n=i(8285),r=Function.prototype,o=r.apply,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},6843:function(t,e,i){var n=i(7484),r=i(4883),o=i(8285),a=n(n.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},8285:function(t,e,i){var n=i(5981);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8834:function(t,e,i){var n=i(8285),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},7484:function(t,e,i){var n=i(2532),r=i(5329);t.exports=function(t){if("Function"===n(t))return r(t)}},5329:function(t,e,i){var n=i(8285),r=Function.prototype,o=r.call,a=n&&r.bind.bind(o,o);t.exports=n?a:function(t){return function(){return o.apply(t,arguments)}}},626:function(t,e,i){var n=i(4058),r=i(1899),o=i(7475),a=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(n[t])||a(r[t]):n[t]&&n[t][e]||r[t]&&r[t][e]}},4229:function(t,e,i){var n=i(4883),r=i(2119);t.exports=function(t,e){var i=t[e];return r(i)?void 0:n(i)}},1899:function(t,e,i){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||function(){return this}()||this||Function("return this")()},953:function(t,e,i){var n=i(5329),r=i(9678),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},5463:function(t,e,i){var n=i(626);t.exports=n("document","documentElement")},2840:function(t,e,i){var n=i(5746),r=i(5981),o=i(1333);t.exports=!n&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},7026:function(t,e,i){var n=i(5329),r=i(5981),o=i(2532),a=Object,s=n("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):a(t)}:a},7475:function(t,e,i){var n=i(6616),r=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},7252:function(t,e,i){var n=i(5981),r=i(7475),o=/#|\.prototype\./,a=function(t,e){var i=l[s(t)];return i==d||i!=c&&(r(e)?n(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",d=a.POLYFILL="P";t.exports=a},2119:function(t){t.exports=function(t){return null==t}},941:function(t,e,i){var n=i(7475),r=i(6616),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===o}:function(t){return"object"==typeof t?null!==t:n(t)}},2529:function(t){t.exports=!0},6664:function(t,e,i){var n=i(626),r=i(7475),o=i(7046),a=i(2302),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return r(e)&&o(e.prototype,s(t))}},5988:function(t,e,i){var n=i(5746),r=i(2840),o=i(3937),a=i(6059),s=i(3894),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u="enumerable",p="configurable",f="writable";e.f=n?o?function(t,e,i){if(a(t),e=s(e),a(i),"function"==typeof t&&"prototype"===e&&"value"in i&&f in i&&!i[f]){var n=d(t,e);n&&n[f]&&(t[e]=i.value,i={configurable:p in i?i[p]:n[p],enumerable:u in i?i[u]:n[u],writable:!1})}return c(t,e,i)}:c:function(t,e,i){if(a(t),e=s(e),a(i),r)try{return c(t,e,i)}catch(t){}if("get"in i||"set"in i)throw l("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},9677:function(t,e,i){var n=i(5746),r=i(8834),o=i(6760),a=i(1887),s=i(4529),l=i(3894),c=i(953),d=i(2840),u=Object.getOwnPropertyDescriptor;e.f=n?u:function(t,e){if(t=s(t),e=l(e),d)try{return u(t,e)}catch(t){}if(c(t,e))return a(!r(o.f,t,e),t[e])}},7046:function(t,e,i){var n=i(5329);t.exports=n({}.isPrototypeOf)},6760:function(t,e){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!i.call({1:2},1);e.f=r?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},9811:function(t,e,i){var n=i(8834),r=i(7475),o=i(941),a=TypeError;t.exports=function(t,e){var i,s;if("string"===e&&r(i=t.toString)&&!o(s=n(i,t)))return s;if(r(i=t.valueOf)&&!o(s=n(i,t)))return s;if("string"!==e&&r(i=t.toString)&&!o(s=n(i,t)))return s;throw a("Can't convert object to primitive value")}},4058:function(t){t.exports={}},8219:function(t,e,i){var n=i(2119),r=TypeError;t.exports=function(t){if(n(t))throw r("Can't call method on "+t);return t}},7620:function(t,e,i){"use strict";var n,r=i(1899),o=i(9730),a=i(7475),s=i(6491),l=i(2861),c=i(3765),d=i(8348),u=r.Function,p=/MSIE .\./.test(l)||s&&((n=r.Bun.version.split(".")).length<3||0==n[0]&&(n[1]<3||3==n[1]&&0==n[2]));t.exports=function(t,e){var i=e?2:1;return p?function(n,r){var s=d(arguments.length,1)>i,l=a(n)?n:u(n),p=s?c(arguments,i):[],f=s?function(){o(l,this,p)}:l;return e?t(f,r):t(f)}:t}},3030:function(t,e,i){var n=i(1899),r=i(5609),o="__core-js_shared__",a=n[o]||r(o,{});t.exports=a},8726:function(t,e,i){var n=i(2529),r=i(3030);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.31.1",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},3405:function(t,e,i){var n=i(3385),r=i(5981),o=i(1899).String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},2941:function(t,e,i){var n,r,o,a,s=i(1899),l=i(9730),c=i(6843),d=i(7475),u=i(953),p=i(5981),f=i(5463),h=i(3765),v=i(1333),m=i(8348),g=i(2749),y=i(6049),b=s.setImmediate,A=s.clearImmediate,w=s.process,k=s.Dispatch,x=s.Function,_=s.MessageChannel,S=s.String,C=0,T={},I="onreadystatechange";p((function(){n=s.location}));var E=function(t){if(u(T,t)){var e=T[t];delete T[t],e()}},P=function(t){return function(){E(t)}},V=function(t){E(t.data)},O=function(t){s.postMessage(S(t),n.protocol+"//"+n.host)};b&&A||(b=function(t){m(arguments.length,1);var e=d(t)?t:x(t),i=h(arguments,1);return T[++C]=function(){l(e,void 0,i)},r(C),C},A=function(t){delete T[t]},y?r=function(t){w.nextTick(P(t))}:k&&k.now?r=function(t){k.now(P(t))}:_&&!g?(a=(o=new _).port2,o.port1.onmessage=V,r=c(a.postMessage,a)):s.addEventListener&&d(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!p(O)?(r=O,s.addEventListener("message",V,!1)):r=I in v("script")?function(t){f.appendChild(v("script"))[I]=function(){f.removeChild(this),E(t)}}:function(t){setTimeout(P(t),0)}),t.exports={set:b,clear:A}},4529:function(t,e,i){var n=i(7026),r=i(8219);t.exports=function(t){return n(r(t))}},9678:function(t,e,i){var n=i(8219),r=Object;t.exports=function(t){return r(n(t))}},6935:function(t,e,i){var n=i(8834),r=i(941),o=i(6664),a=i(4229),s=i(9811),l=i(9813),c=TypeError,d=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var i,l=a(t,d);if(l){if(void 0===e&&(e="default"),i=n(l,t,e),!r(i)||o(i))return i;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},3894:function(t,e,i){var n=i(6935),r=i(6664);t.exports=function(t){var e=n(t,"string");return r(e)?e:e+""}},9826:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9418:function(t,e,i){var n=i(5329),r=0,o=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},2302:function(t,e,i){var n=i(3405);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3937:function(t,e,i){var n=i(5746),r=i(5981);t.exports=n&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8348:function(t){var e=TypeError;t.exports=function(t,i){if(t<i)throw e("Not enough arguments");return t}},9813:function(t,e,i){var n=i(1899),r=i(8726),o=i(953),a=i(9418),s=i(3405),l=i(2302),c=n.Symbol,d=r("wks"),u=l?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return o(d,t)||(d[t]=s&&o(c,t)?c[t]:u("Symbol."+t)),d[t]}},2595:function(t,e,i){var n=i(6887),r=i(1899);n({global:!0,forced:r.globalThis!==r},{globalThis:r})},9668:function(t,e,i){i(2595)},2931:function(t,e,i){var n=i(6887),r=i(1899),o=i(2941).clear;n({global:!0,bind:!0,enumerable:!0,forced:r.clearImmediate!==o},{clearImmediate:o})},1989:function(t,e,i){i(2931),i(80)},80:function(t,e,i){var n=i(6887),r=i(1899),o=i(2941).set,a=i(7620),s=r.setImmediate?a(o,!1):o;n({global:!0,bind:!0,enumerable:!0,forced:r.setImmediate!==s},{setImmediate:s})},2369:function(t,e,i){var n=i(1031);t.exports=n},2773:function(t,e,i){i(1989);var n=i(4058);t.exports=n.setImmediate},9662:function(t,e,i){var n=i(614),r=i(6330),o=TypeError;t.exports=function(t){if(n(t))return t;throw o(r(t)+" is not a function")}},6077:function(t,e,i){var n=i(614),r=String,o=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw o("Can't set "+r(t)+" as a prototype")}},1223:function(t,e,i){var n=i(5112),r=i(30),o=i(3070).f,a=n("unscopables"),s=Array.prototype;null==s[a]&&o(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},9670:function(t,e,i){var n=i(111),r=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw o(r(t)+" is not an object")}},8457:function(t,e,i){"use strict";var n=i(9974),r=i(6916),o=i(7908),a=i(3411),s=i(7659),l=i(4411),c=i(6244),d=i(6135),u=i(4121),p=i(1246),f=Array;t.exports=function(t){var e=o(t),i=l(this),h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v;m&&(v=n(v,h>2?arguments[2]:void 0));var g,y,b,A,w,k,x=p(e),_=0;if(!x||this===f&&s(x))for(g=c(e),y=i?new this(g):f(g);g>_;_++)k=m?v(e[_],_):e[_],d(y,_,k);else for(w=(A=u(e,x)).next,y=i?new this:[];!(b=r(w,A)).done;_++)k=m?a(A,v,[b.value,_],!0):b.value,d(y,_,k);return y.length=_,y}},1318:function(t,e,i){var n=i(5656),r=i(1400),o=i(6244),a=function(t){return function(e,i,a){var s,l=n(e),c=o(l),d=r(a,c);if(t&&i!=i){for(;c>d;)if((s=l[d++])!=s)return!0}else for(;c>d;d++)if((t||d in l)&&l[d]===i)return t||d||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:function(t,e,i){var n=i(9974),r=i(1702),o=i(8361),a=i(7908),s=i(6244),l=i(5417),c=r([].push),d=function(t){var e=1==t,i=2==t,r=3==t,d=4==t,u=6==t,p=7==t,f=5==t||u;return function(h,v,m,g){for(var y,b,A=a(h),w=o(A),k=n(v,m),x=s(w),_=0,S=g||l,C=e?S(h,x):i||p?S(h,0):void 0;x>_;_++)if((f||_ in w)&&(b=k(y=w[_],_,A),t))if(e)C[_]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return _;case 2:c(C,y)}else switch(t){case 4:return!1;case 7:c(C,y)}return u?-1:r||d?d:C}};t.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},1412:function(t,e,i){var n=i(3157),r=i(4411),o=i(111),a=i(5112)("species"),s=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(r(e)&&(e===s||n(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},5417:function(t,e,i){var n=i(1412);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},3411:function(t,e,i){var n=i(9670),r=i(9212);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(e){r(t,"throw",e)}}},7072:function(t,e,i){var n=i(5112)("iterator"),r=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){r=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var i=!1;try{var o={};o[n]=function(){return{next:function(){return{done:i=!0}}}},t(o)}catch(t){}return i}},4326:function(t,e,i){var n=i(1702),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}},648:function(t,e,i){var n=i(1694),r=i(614),o=i(4326),a=i(5112)("toStringTag"),s=Object,l="Arguments"==o(function(){return arguments}());t.exports=n?o:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?i:l?o(e):"Object"==(n=o(e))&&r(e.callee)?"Arguments":n}},9920:function(t,e,i){var n=i(2597),r=i(3887),o=i(1236),a=i(3070);t.exports=function(t,e,i){for(var s=r(e),l=a.f,c=o.f,d=0;d<s.length;d++){var u=s[d];n(t,u)||i&&n(i,u)||l(t,u,c(e,u))}}},4964:function(t,e,i){var n=i(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},8544:function(t,e,i){var n=i(7293);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},6178:function(t){t.exports=function(t,e){return{value:t,done:e}}},8880:function(t,e,i){var n=i(9781),r=i(3070),o=i(9114);t.exports=n?function(t,e,i){return r.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,i){"use strict";var n=i(4948),r=i(3070),o=i(9114);t.exports=function(t,e,i){var a=n(e);a in t?r.f(t,a,o(0,i)):t[a]=i}},8052:function(t,e,i){var n=i(614),r=i(3070),o=i(6339),a=i(3072);t.exports=function(t,e,i,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:e;if(n(i)&&o(i,c,s),s.global)l?t[e]=i:a(e,i);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=i:r.f(t,e,{value:i,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},3072:function(t,e,i){var n=i(7854),r=Object.defineProperty;t.exports=function(t,e){try{r(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},9781:function(t,e,i){var n=i(7293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(t){var e="object"==typeof document&&document.all,i=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:i}},317:function(t,e,i){var n=i(7854),r=i(111),o=n.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},7207:function(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},8113:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(t,e,i){var n,r,o=i(7854),a=i(8113),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,d=c&&c.v8;d&&(r=(n=d.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(r=+n[1]),t.exports=r},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,i){var n=i(7854),r=i(1236).f,o=i(8880),a=i(8052),s=i(3072),l=i(9920),c=i(4705);t.exports=function(t,e){var i,d,u,p,f,h=t.target,v=t.global,m=t.stat;if(i=v?n:m?n[h]||s(h,{}):(n[h]||{}).prototype)for(d in e){if(p=e[d],u=t.dontCallGetSet?(f=r(i,d))&&f.value:i[d],!c(v?d:h+(m?".":"#")+d,t.forced)&&void 0!==u){if(typeof p==typeof u)continue;l(p,u)}(t.sham||u&&u.sham)&&o(p,"sham",!0),a(i,d,p,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},6790:function(t,e,i){"use strict";var n=i(3157),r=i(6244),o=i(7207),a=i(9974),s=function(t,e,i,l,c,d,u,p){for(var f,h,v=c,m=0,g=!!u&&a(u,p);m<l;)m in i&&(f=g?g(i[m],m,e):i[m],d>0&&n(f)?(h=r(f),v=s(t,e,f,h,v,d-1)-1):(o(v+1),t[v]=f),v++),m++;return v};t.exports=s},9974:function(t,e,i){var n=i(1470),r=i(9662),o=i(4374),a=n(n.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},4374:function(t,e,i){var n=i(7293);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,i){var n=i(4374),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},6530:function(t,e,i){var n=i(9781),r=i(2597),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!n||n&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},5668:function(t,e,i){var n=i(1702),r=i(9662);t.exports=function(t,e,i){try{return n(r(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(t){}}},1470:function(t,e,i){var n=i(4326),r=i(1702);t.exports=function(t){if("Function"===n(t))return r(t)}},1702:function(t,e,i){var n=i(4374),r=Function.prototype,o=r.call,a=n&&r.bind.bind(o,o);t.exports=n?a:function(t){return function(){return o.apply(t,arguments)}}},5005:function(t,e,i){var n=i(7854),r=i(614);t.exports=function(t,e){return arguments.length<2?(i=n[t],r(i)?i:void 0):n[t]&&n[t][e];var i}},1246:function(t,e,i){var n=i(648),r=i(8173),o=i(8554),a=i(7497),s=i(5112)("iterator");t.exports=function(t){if(!o(t))return r(t,s)||r(t,"@@iterator")||a[n(t)]}},4121:function(t,e,i){var n=i(6916),r=i(9662),o=i(9670),a=i(6330),s=i(1246),l=TypeError;t.exports=function(t,e){var i=arguments.length<2?s(t):e;if(r(i))return o(n(i,t));throw l(a(t)+" is not iterable")}},8173:function(t,e,i){var n=i(9662),r=i(8554);t.exports=function(t,e){var i=t[e];return r(i)?void 0:n(i)}},7854:function(t,e,i){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||function(){return this}()||this||Function("return this")()},2597:function(t,e,i){var n=i(1702),r=i(7908),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},3501:function(t){t.exports={}},490:function(t,e,i){var n=i(5005);t.exports=n("document","documentElement")},4664:function(t,e,i){var n=i(9781),r=i(7293),o=i(317);t.exports=!n&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,i){var n=i(1702),r=i(7293),o=i(4326),a=Object,s=n("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):a(t)}:a},2788:function(t,e,i){var n=i(1702),r=i(614),o=i(5465),a=n(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},9909:function(t,e,i){var n,r,o,a=i(4811),s=i(7854),l=i(111),c=i(8880),d=i(2597),u=i(5465),p=i(6200),f=i(3501),h="Object already initialized",v=s.TypeError,m=s.WeakMap;if(a||u.state){var g=u.state||(u.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,e){if(g.has(t))throw v(h);return e.facade=t,g.set(t,e),e},r=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var y=p("state");f[y]=!0,n=function(t,e){if(d(t,y))throw v(h);return e.facade=t,c(t,y,e),e},r=function(t){return d(t,y)?t[y]:{}},o=function(t){return d(t,y)}}t.exports={set:n,get:r,has:o,enforce:function(t){return o(t)?r(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!l(e)||(i=r(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return i}}}},7659:function(t,e,i){var n=i(5112),r=i(7497),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},3157:function(t,e,i){var n=i(4326);t.exports=Array.isArray||function(t){return"Array"==n(t)}},614:function(t,e,i){var n=i(4154),r=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},4411:function(t,e,i){var n=i(1702),r=i(7293),o=i(614),a=i(648),s=i(5005),l=i(2788),c=function(){},d=[],u=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,f=n(p.exec),h=!p.exec(c),v=function(t){if(!o(t))return!1;try{return u(c,d,t),!0}catch(t){return!1}},m=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(p,l(t))}catch(t){return!0}};m.sham=!0,t.exports=!u||r((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?m:v},4705:function(t,e,i){var n=i(7293),r=i(614),o=/#|\.prototype\./,a=function(t,e){var i=l[s(t)];return i==d||i!=c&&(r(e)?n(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",d=a.POLYFILL="P";t.exports=a},8554:function(t){t.exports=function(t){return null==t}},111:function(t,e,i){var n=i(614),r=i(4154),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===o}:function(t){return"object"==typeof t?null!==t:n(t)}},1913:function(t){t.exports=!1},7850:function(t,e,i){var n=i(111),r=i(4326),o=i(5112)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},2190:function(t,e,i){var n=i(5005),r=i(614),o=i(7976),a=i(3307),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return r(e)&&o(e.prototype,s(t))}},9212:function(t,e,i){var n=i(6916),r=i(9670),o=i(8173);t.exports=function(t,e,i){var a,s;r(t);try{if(!(a=o(t,"return"))){if("throw"===e)throw i;return i}a=n(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw i;if(s)throw a;return r(a),i}},3061:function(t,e,i){"use strict";var n=i(3383).IteratorPrototype,r=i(30),o=i(9114),a=i(8003),s=i(7497),l=function(){return this};t.exports=function(t,e,i,c){var d=e+" Iterator";return t.prototype=r(n,{next:o(+!c,i)}),a(t,d,!1,!0),s[d]=l,t}},1656:function(t,e,i){"use strict";var n=i(2109),r=i(6916),o=i(1913),a=i(6530),s=i(614),l=i(3061),c=i(9518),d=i(7674),u=i(8003),p=i(8880),f=i(8052),h=i(5112),v=i(7497),m=i(3383),g=a.PROPER,y=a.CONFIGURABLE,b=m.IteratorPrototype,A=m.BUGGY_SAFARI_ITERATORS,w=h("iterator"),k="keys",x="values",_="entries",S=function(){return this};t.exports=function(t,e,i,a,h,m,C){l(i,e,a);var T,I,E,P=function(t){if(t===h&&U)return U;if(!A&&t in R)return R[t];switch(t){case k:case x:case _:return function(){return new i(this,t)}}return function(){return new i(this)}},V=e+" Iterator",O=!1,R=t.prototype,L=R[w]||R["@@iterator"]||h&&R[h],U=!A&&L||P(h),D="Array"==e&&R.entries||L;if(D&&(T=c(D.call(new t)))!==Object.prototype&&T.next&&(o||c(T)===b||(d?d(T,b):s(T[w])||f(T,w,S)),u(T,V,!0,!0),o&&(v[V]=S)),g&&h==x&&L&&L.name!==x&&(!o&&y?p(R,"name",x):(O=!0,U=function(){return r(L,this)})),h)if(I={values:P(x),keys:m?U:P(k),entries:P(_)},C)for(E in I)(A||O||!(E in R))&&f(R,E,I[E]);else n({target:e,proto:!0,forced:A||O},I);return o&&!C||R[w]===U||f(R,w,U,{name:h}),v[e]=U,I}},3383:function(t,e,i){"use strict";var n,r,o,a=i(7293),s=i(614),l=i(111),c=i(30),d=i(9518),u=i(8052),p=i(5112),f=i(1913),h=p("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(r=d(d(o)))!==Object.prototype&&(n=r):v=!0),!l(n)||a((function(){var t={};return n[h].call(t)!==t}))?n={}:f&&(n=c(n)),s(n[h])||u(n,h,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},7497:function(t){t.exports={}},6244:function(t,e,i){var n=i(7466);t.exports=function(t){return n(t.length)}},6339:function(t,e,i){var n=i(1702),r=i(7293),o=i(614),a=i(2597),s=i(9781),l=i(6530).CONFIGURABLE,c=i(2788),d=i(9909),u=d.enforce,p=d.get,f=String,h=Object.defineProperty,v=n("".slice),m=n("".replace),g=n([].join),y=s&&!r((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),A=t.exports=function(t,e,i){"Symbol("===v(f(e),0,7)&&(e="["+m(f(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?h(t,"name",{value:e,configurable:!0}):t.name=e),y&&i&&a(i,"arity")&&t.length!==i.arity&&h(t,"length",{value:i.arity});try{i&&a(i,"constructor")&&i.constructor?s&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=u(t);return a(n,"source")||(n.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=A((function(){return o(this)&&p(this).source||c(this)}),"toString")},4758:function(t){var e=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?i:e)(n)}},3929:function(t,e,i){var n=i(7850),r=TypeError;t.exports=function(t){if(n(t))throw r("The method doesn't accept regular expressions");return t}},1574:function(t,e,i){"use strict";var n=i(9781),r=i(1702),o=i(6916),a=i(7293),s=i(1956),l=i(5181),c=i(5296),d=i(7908),u=i(8361),p=Object.assign,f=Object.defineProperty,h=r([].concat);t.exports=!p||a((function(){if(n&&1!==p({b:1},p(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),r="abcdefghijklmnopqrst";return t[i]=7,r.split("").forEach((function(t){e[t]=t})),7!=p({},t)[i]||s(p({},e)).join("")!=r}))?function(t,e){for(var i=d(t),r=arguments.length,a=1,p=l.f,f=c.f;r>a;)for(var v,m=u(arguments[a++]),g=p?h(s(m),p(m)):s(m),y=g.length,b=0;y>b;)v=g[b++],n&&!o(f,m,v)||(i[v]=m[v]);return i}:p},30:function(t,e,i){var n,r=i(9670),o=i(6048),a=i(748),s=i(3501),l=i(490),c=i(317),d=i(6200),u="prototype",p="script",f=d("IE_PROTO"),h=function(){},v=function(t){return"<"+p+">"+t+"</"+p+">"},m=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,i;g="undefined"!=typeof document?document.domain&&n?m(n):(e=c("iframe"),i="java"+p+":",e.style.display="none",l.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):m(n);for(var r=a.length;r--;)delete g[u][a[r]];return g()};s[f]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(h[u]=r(t),i=new h,h[u]=null,i[f]=t):i=g(),void 0===e?i:o.f(i,e)}},6048:function(t,e,i){var n=i(9781),r=i(3353),o=i(3070),a=i(9670),s=i(5656),l=i(1956);e.f=n&&!r?Object.defineProperties:function(t,e){a(t);for(var i,n=s(e),r=l(e),c=r.length,d=0;c>d;)o.f(t,i=r[d++],n[i]);return t}},3070:function(t,e,i){var n=i(9781),r=i(4664),o=i(3353),a=i(9670),s=i(4948),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u="enumerable",p="configurable",f="writable";e.f=n?o?function(t,e,i){if(a(t),e=s(e),a(i),"function"==typeof t&&"prototype"===e&&"value"in i&&f in i&&!i[f]){var n=d(t,e);n&&n[f]&&(t[e]=i.value,i={configurable:p in i?i[p]:n[p],enumerable:u in i?i[u]:n[u],writable:!1})}return c(t,e,i)}:c:function(t,e,i){if(a(t),e=s(e),a(i),r)try{return c(t,e,i)}catch(t){}if("get"in i||"set"in i)throw l("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},1236:function(t,e,i){var n=i(9781),r=i(6916),o=i(5296),a=i(9114),s=i(5656),l=i(4948),c=i(2597),d=i(4664),u=Object.getOwnPropertyDescriptor;e.f=n?u:function(t,e){if(t=s(t),e=l(e),d)try{return u(t,e)}catch(t){}if(c(t,e))return a(!r(o.f,t,e),t[e])}},8006:function(t,e,i){var n=i(6324),r=i(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,i){var n=i(2597),r=i(614),o=i(7908),a=i(6200),s=i(8544),l=a("IE_PROTO"),c=Object,d=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=o(t);if(n(e,l))return e[l];var i=e.constructor;return r(i)&&e instanceof i?i.prototype:e instanceof c?d:null}},7976:function(t,e,i){var n=i(1702);t.exports=n({}.isPrototypeOf)},6324:function(t,e,i){var n=i(1702),r=i(2597),o=i(5656),a=i(1318).indexOf,s=i(3501),l=n([].push);t.exports=function(t,e){var i,n=o(t),c=0,d=[];for(i in n)!r(s,i)&&r(n,i)&&l(d,i);for(;e.length>c;)r(n,i=e[c++])&&(~a(d,i)||l(d,i));return d}},1956:function(t,e,i){var n=i(6324),r=i(748);t.exports=Object.keys||function(t){return n(t,r)}},5296:function(t,e){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!i.call({1:2},1);e.f=r?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},7674:function(t,e,i){var n=i(5668),r=i(9670),o=i(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=n(Object.prototype,"__proto__","set"))(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return r(i),o(n),e?t(i,n):i.__proto__=n,i}}():void 0)},4699:function(t,e,i){var n=i(9781),r=i(7293),o=i(1702),a=i(9518),s=i(1956),l=i(5656),c=o(i(5296).f),d=o([].push),u=n&&r((function(){var t=Object.create(null);return t[2]=2,!c(t,2)})),p=function(t){return function(e){for(var i,r=l(e),o=s(r),p=u&&null===a(r),f=o.length,h=0,v=[];f>h;)i=o[h++],n&&!(p?i in r:c(r,i))||d(v,t?[i,r[i]]:r[i]);return v}};t.exports={entries:p(!0),values:p(!1)}},2140:function(t,e,i){var n=i(6916),r=i(614),o=i(111),a=TypeError;t.exports=function(t,e){var i,s;if("string"===e&&r(i=t.toString)&&!o(s=n(i,t)))return s;if(r(i=t.valueOf)&&!o(s=n(i,t)))return s;if("string"!==e&&r(i=t.toString)&&!o(s=n(i,t)))return s;throw a("Can't convert object to primitive value")}},3887:function(t,e,i){var n=i(5005),r=i(1702),o=i(8006),a=i(5181),s=i(9670),l=r([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(s(t)),i=a.f;return i?l(e,i(t)):e}},4488:function(t,e,i){var n=i(8554),r=TypeError;t.exports=function(t){if(n(t))throw r("Can't call method on "+t);return t}},8003:function(t,e,i){var n=i(3070).f,r=i(2597),o=i(5112)("toStringTag");t.exports=function(t,e,i){t&&!i&&(t=t.prototype),t&&!r(t,o)&&n(t,o,{configurable:!0,value:e})}},6200:function(t,e,i){var n=i(2309),r=i(9711),o=n("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},5465:function(t,e,i){var n=i(7854),r=i(3072),o="__core-js_shared__",a=n[o]||r(o,{});t.exports=a},2309:function(t,e,i){var n=i(1913),r=i(5465);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.31.1",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},8710:function(t,e,i){var n=i(1702),r=i(9303),o=i(1340),a=i(4488),s=n("".charAt),l=n("".charCodeAt),c=n("".slice),d=function(t){return function(e,i){var n,d,u=o(a(e)),p=r(i),f=u.length;return p<0||p>=f?t?"":void 0:(n=l(u,p))<55296||n>56319||p+1===f||(d=l(u,p+1))<56320||d>57343?t?s(u,p):n:t?c(u,p,p+2):d-56320+(n-55296<<10)+65536}};t.exports={codeAt:d(!1),charAt:d(!0)}},6091:function(t,e,i){var n=i(6530).PROPER,r=i(7293),o=i(1361);t.exports=function(t){return r((function(){return!!o[t]()||"​…᠎"!=="​…᠎"[t]()||n&&o[t].name!==t}))}},3217:function(t,e,i){"use strict";var n=i(3111).start,r=i(6091);t.exports=r("trimStart")?function(){return n(this)}:"".trimStart},3111:function(t,e,i){var n=i(1702),r=i(4488),o=i(1340),a=i(1361),s=n("".replace),l=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),d=function(t){return function(e){var i=o(r(e));return 1&t&&(i=s(i,l,"")),2&t&&(i=s(i,c,"$1")),i}};t.exports={start:d(1),end:d(2),trim:d(3)}},6293:function(t,e,i){var n=i(7392),r=i(7293),o=i(7854).String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},1400:function(t,e,i){var n=i(9303),r=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):o(i,e)}},5656:function(t,e,i){var n=i(8361),r=i(4488);t.exports=function(t){return n(r(t))}},9303:function(t,e,i){var n=i(4758);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},7466:function(t,e,i){var n=i(9303),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},7908:function(t,e,i){var n=i(4488),r=Object;t.exports=function(t){return r(n(t))}},7593:function(t,e,i){var n=i(6916),r=i(111),o=i(2190),a=i(8173),s=i(2140),l=i(5112),c=TypeError,d=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var i,l=a(t,d);if(l){if(void 0===e&&(e="default"),i=n(l,t,e),!r(i)||o(i))return i;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},4948:function(t,e,i){var n=i(7593),r=i(2190);t.exports=function(t){var e=n(t,"string");return r(e)?e:e+""}},1694:function(t,e,i){var n={};n[i(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},1340:function(t,e,i){var n=i(648),r=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9711:function(t,e,i){var n=i(1702),r=0,o=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},3307:function(t,e,i){var n=i(6293);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,i){var n=i(9781),r=i(7293);t.exports=n&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(t,e,i){var n=i(7854),r=i(614),o=n.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},5112:function(t,e,i){var n=i(7854),r=i(2309),o=i(2597),a=i(9711),s=i(6293),l=i(3307),c=n.Symbol,d=r("wks"),u=l?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return o(d,t)||(d[t]=s&&o(c,t)?c[t]:u("Symbol."+t)),d[t]}},1361:function(t){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},4553:function(t,e,i){"use strict";var n=i(2109),r=i(2092).findIndex,o=i(1223),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},8282:function(t,e,i){"use strict";var n=i(2109),r=i(2092).find,o=i(1223),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},6535:function(t,e,i){"use strict";var n=i(2109),r=i(6790),o=i(9662),a=i(7908),s=i(6244),l=i(5417);n({target:"Array",proto:!0},{flatMap:function(t){var e,i=a(this),n=s(i);return o(t),(e=l(i,0)).length=r(e,i,i,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},1038:function(t,e,i){var n=i(2109),r=i(8457);n({target:"Array",stat:!0,forced:!i(7072)((function(t){Array.from(t)}))},{from:r})},6699:function(t,e,i){"use strict";var n=i(2109),r=i(1318).includes,o=i(7293),a=i(1223);n({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},9244:function(t,e,i){i(1223)("flatMap")},5837:function(t,e,i){var n=i(2109),r=i(7854);n({global:!0,forced:r.globalThis!==r},{globalThis:r})},9601:function(t,e,i){var n=i(2109),r=i(1574);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},9720:function(t,e,i){var n=i(2109),r=i(4699).entries;n({target:"Object",stat:!0},{entries:function(t){return r(t)}})},7941:function(t,e,i){var n=i(2109),r=i(7908),o=i(1956);n({target:"Object",stat:!0,forced:i(7293)((function(){o(1)}))},{keys:function(t){return o(r(t))}})},6833:function(t,e,i){var n=i(2109),r=i(4699).values;n({target:"Object",stat:!0},{values:function(t){return r(t)}})},8783:function(t,e,i){"use strict";var n=i(8710).charAt,r=i(1340),o=i(9909),a=i(1656),s=i(6178),l="String Iterator",c=o.set,d=o.getterFor(l);a(String,"String",(function(t){c(this,{type:l,string:r(t),index:0})}),(function(){var t,e=d(this),i=e.string,r=e.index;return r>=i.length?s(void 0,!0):(t=n(i,r),e.index+=t.length,s(t,!1))}))},6755:function(t,e,i){"use strict";var n,r=i(2109),o=i(1470),a=i(1236).f,s=i(7466),l=i(1340),c=i(3929),d=i(4488),u=i(4964),p=i(1913),f=o("".startsWith),h=o("".slice),v=Math.min,m=u("startsWith");r({target:"String",proto:!0,forced:!!(p||m||(n=a(String.prototype,"startsWith"),!n||n.writable))&&!m},{startsWith:function(t){var e=l(d(this));c(t);var i=s(v(arguments.length>1?arguments[1]:void 0,e.length)),n=l(t);return f?f(e,n,i):h(e,i,i+n.length)===n}})},9967:function(t,e,i){var n=i(2109),r=i(3217);n({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==r},{trimLeft:r})},5674:function(t,e,i){i(9967);var n=i(2109),r=i(3217);n({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==r},{trimStart:r})},3444:function(t,e,i){"use strict";var n=i(8081),r=i.n(n),o=i(3645),a=i.n(o),s=i(1667),l=i.n(s),c=new URL(i(9074),i.b),d=new URL(i(9170),i.b),u=new URL(i(5055),i.b),p=new URL(i(9023),i.b),f=new URL(i(7121),i.b),h=new URL(i(4981),i.b),v=new URL(i(2095),i.b),m=new URL(i(5279),i.b),g=new URL(i(3404),i.b),y=new URL(i(5843),i.b),b=new URL(i(2855),i.b),A=new URL(i(1923),i.b),w=a()(r()),k=l()(c),x=l()(d),_=l()(u),S=l()(p),C=l()(f),T=l()(h),I=l()(v),E=l()(m),P=l()(g),V=l()(y),O=l()(b),R=l()(A);w.push([t.id,"#nonl-container *{display:block}#av-caption #av-close-btn:hover,#av-container #av-inner #gui #av-close-btn:hover,#av-container.av-desktop #av-inner #gui #close-btn:hover,#av-container.av-desktop #av-inner #gui #skip-btn:hover{background-color:#000;background-color:rgba(0,0,0,.7);cursor:pointer}#av-caption #av-close-btn,#av-container #av-inner #gui #av-close-btn,#av-container #av-inner #gui #close-btn{background-color:#323232;background-color:rgba(0,0,0,.4);background-image:url("+k+');background-position:50%;background-repeat:no-repeat;background-size:60%;border-color:#fff;border-style:solid;border-width:0 1px 1px 0;height:28px;left:0;position:absolute;top:0;-webkit-transition:all .15s ease-in-out;-moz-transition:all .15s ease-in-out;-o-transition:all .15s ease-in-out;transition:all .15s ease-in-out;width:28px;z-index:9999999}#av-caption #av-close-btn,#av-container #av-inner #gui #av-close-btn{border:none;height:18px;position:static;width:18px}#av-caption{line-height:18px;position:relative;text-align:center}#av-caption #av-close-btn-overlay{display:inline-block;position:relative;vertical-align:top;z-index:9999999}#av-label{color:#bbb;display:inline-block;font-family:Helvetica,Arial,fallback,sans-serif;font-size:9px;line-height:10px;margin:0;padding:4px;text-align:center;text-transform:uppercase;vertical-align:top;z-index:83}#av-container{height:360px;margin:0;overflow:hidden;pointer-events:auto;position:relative;text-align:initial;width:640px}#av-container ::-webkit-media-controls-panel{-webkit-appearance:none;display:none!important}#av-container ::state(webkit-media-controls-play-button){display:none!important}#av-container ::state(webkit-media-controls-play-button){-webkit-appearance:none}#av-container ::-webkit-media-controls-start-playback-button{-webkit-appearance:none;display:none!important}#av-container div{position:static}#av-container #av-inner{height:100%;left:0;position:absolute;top:0;width:100%}#av-container #av-inner #slot{-webkit-box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);-moz-box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);height:100%;position:absolute;width:100%}#av-container #av-inner #slot #preloader{bottom:0;height:0;left:0;margin:auto;outline:none;position:absolute;right:0;top:0;width:0}#av-container #av-inner #slot #preloader svg{left:50%;position:absolute;top:50%}#av-container #av-inner #slot #preloader svg.avicon{fill:#fff;height:50px;margin-left:-25px;margin-top:-25px;width:50px}#av-container #av-inner #slot #preloader svg.avcircle{fill:transparent;stroke:hsla(0,0%,100%,.2);stroke-width:3;height:70px;margin-left:-35px;margin-top:-35px;width:70px}#av-container #av-inner #slot #preloader svg.avcircle.active{stroke:#fff;stroke-linecap:round;animation:av-loading-dash 2s ease infinite,av-loading-rotate 2.5s linear infinite;color:red}#av-container #av-inner #slot #videoslot{bottom:0;filter:alpha(opacity=0);left:0;object-fit:fill;opacity:0;position:absolute;right:0;text-align:left;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%}#av-container #av-inner #slot #videoslot.loaded{-webkit-animation:fade-in .5s ease;-moz-animation:fade-in .5s ease;-o-animation:fade-in .5s ease;animation:fade-in .5s ease;filter:alpha(opacity=100);opacity:1}#av-container #av-inner #slot #videoslot div{all:initial;background:initial;position:static;z-index:auto}#av-container #av-inner #gui:before{background:-webkit-linear-gradient(top,transparent,rgba(0,0,0,.5));background:-moz-linear-gradient(top,transparent 0,rgba(0,0,0,.5) 100%);background:linear-gradient(180deg,transparent 0,rgba(0,0,0,.5));bottom:0;content:"";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#00000000",endColorstr="#80000000",GradientType=0);height:15%;left:0;pointer-events:none;width:100%}#av-container #av-inner #gui #timeline,#av-container #av-inner #gui:before{position:absolute;-webkit-transition:all .15s ease-in-out;-moz-transition:all .15s ease-in-out;-o-transition:all .15s ease-in-out;transition:all .15s ease-in-out}#av-container #av-inner #gui #timeline{cursor:pointer;height:10px;overflow:hidden}#av-container #av-inner #gui #timeline #timeline-buffer,#av-container #av-inner #gui #timeline #timeline-moveto,#av-container #av-inner #gui #timeline #timeline-progress,#av-container #av-inner #gui #timeline:before{height:2px;left:0;position:absolute}#av-container #av-inner #gui #timeline:before{background:#646464;background:hsla(0,0%,100%,.3);content:"";width:100%}#av-container #av-inner #gui #timeline #timeline-buffer,#av-container #av-inner #gui #timeline:before{-webkit-box-shadow:0 0 3px 0 rgba(0,0,0,.1);-moz-box-shadow:0 0 3px 0 rgba(0,0,0,.1);box-shadow:0 0 3px 0 rgba(0,0,0,.1)}#av-container #av-inner #gui #timeline #timeline-buffer{background:#b4b4b4;background:hsla(0,0%,100%,.5);width:0}#av-container #av-inner #gui #timeline #timeline-moveto{background:#fff;background:hsla(0,0%,100%,.8);opacity:0;width:0}#av-container #av-inner #gui #timeline #timeline-progress{background:red;width:0}#av-container #av-inner #gui #timeline.av-overlay{bottom:41px;left:10px;right:10px}#av-container #av-inner #gui #timeline.av-overlay #timeline-buffer,#av-container #av-inner #gui #timeline.av-overlay #timeline-moveto,#av-container #av-inner #gui #timeline.av-overlay #timeline-progress,#av-container #av-inner #gui #timeline.av-overlay:before{margin-top:-1px;top:50%}#av-container #av-inner #gui #timeline.av-bottom{bottom:0;left:0;right:0}#av-container #av-inner #gui #timeline.av-bottom #timeline-buffer,#av-container #av-inner #gui #timeline.av-bottom #timeline-moveto,#av-container #av-inner #gui #timeline.av-bottom #timeline-progress,#av-container #av-inner #gui #timeline.av-bottom:before{bottom:0;top:auto}#av-container #av-inner #gui #timeline.av-top{left:0;right:0;top:0}#av-container #av-inner #gui #timeline.av-top #timeline-buffer,#av-container #av-inner #gui #timeline.av-top #timeline-moveto,#av-container #av-inner #gui #timeline.av-top #timeline-progress,#av-container #av-inner #gui #timeline.av-top:before{bottom:auto;top:0}#av-container #av-inner #gui #timeline.av-top~#skip-btn{top:2px}#av-container #av-inner #gui #timeline.av-top~#aniview-credit{top:4px}#av-container #av-inner #gui #timeline.av-none{display:none!important;opacity:0!important}#av-container #av-inner #gui #buttons{bottom:0;display:flex;justify-content:space-between;left:0;padding:0 13px 11px;position:absolute;right:0;-webkit-transition:all .15s ease-in-out;-moz-transition:all .15s ease-in-out;-o-transition:all .15s ease-in-out;transition:all .15s ease-in-out}#av-container #av-inner #gui #buttons.av-left{justify-content:flex-start;right:auto}#av-container #av-inner #gui #buttons.av-left #play-pause{margin-right:0}#av-container #av-inner #gui #buttons #play-pause:after,#av-container #av-inner #gui #buttons #sound:after{bottom:-10px;content:"";left:-10px;position:absolute;right:-10px;top:-10px}#av-container #av-inner #gui #buttons #fullscreen,#av-container #av-inner #gui #buttons #phone,#av-container #av-inner #gui #buttons #play-pause,#av-container #av-inner #gui #buttons #share,#av-container #av-inner #gui #buttons #sound{background-repeat:no-repeat;background-size:cover;height:24px;width:24px}#av-container #av-inner #gui #buttons #left,#av-container #av-inner #gui #buttons #right{height:24px}#av-container #av-inner #gui #buttons #left>div{float:left;margin-right:14px;position:relative}#av-container #av-inner #gui #buttons #left #play-pause.play{background-image:url('+x+")}#av-container #av-inner #gui #buttons #left #play-pause.pause{background-image:url("+_+")}#av-container #av-inner #gui #buttons #left #play-pause.replay{background-image:url("+S+")}#av-container #av-inner #gui #buttons #left #phone{font-size:0;width:auto}#av-container #av-inner #gui #buttons #left #phone .avicon{background-image:url("+C+");background-repeat:no-repeat;background-size:cover;display:inline-block;height:24px;vertical-align:top;width:24px}#av-container #av-inner #gui #buttons #left #phone #phone-num{color:#fff;display:inline-block;font-family:Helvetica,Arial,fallback,sans-serif;font-size:12px;font-weight:400;height:24px;line-height:24px;margin-left:4px}#av-container #av-inner #gui #buttons #right>div{float:right;margin-left:14px;position:relative}#av-container #av-inner #gui #buttons #right #sound{background-image:url("+T+")}#av-container #av-inner #gui #buttons #right #sound div{background-repeat:no-repeat;background-size:cover;height:100%;left:0;position:absolute;top:0;width:100%}#av-container #av-inner #gui #buttons #right #sound div.on{background-image:url("+I+")}#av-container #av-inner #gui #buttons #right #sound div.off{background-image:url("+E+")}#av-container #av-inner #gui #buttons #right #share{background-image:url("+P+")}#av-container #av-inner #gui #buttons #right #fullscreen.off{background-image:url("+V+")}#av-container #av-inner #gui #buttons #right #fullscreen.on{background-image:url("+O+")}#av-container #av-inner #gui #big-play{background-color:#323232;background-color:rgba(0,0,0,.4);background-image:url("+x+");background-position:16px;background-repeat:no-repeat;background-size:62% 64%;border:3px solid #fff;border-radius:50%;display:none;height:68px;left:50%;margin-left:-34px;margin-top:-34px;position:absolute;top:50%;-webkit-transition:all .15s ease-in-out;-moz-transition:all .15s ease-in-out;-o-transition:all .15s ease-in-out;transition:all .15s ease-in-out;width:68px}#av-container #av-inner #gui #timer{background-color:#000;background-color:rgba(0,0,0,.7);border-color:#fff;border-style:solid;border-width:0 1px 1px 0;font-size:12px;height:28px;left:0;line-height:28px;top:0;width:28px}#av-container #av-inner #gui #skip-btn,#av-container #av-inner #gui #timer{color:#fff;font-family:Helvetica,Arial,fallback,sans-serif;position:absolute;text-align:center;-webkit-transition:all .15s ease-in-out;-moz-transition:all .15s ease-in-out;-o-transition:all .15s ease-in-out;transition:all .15s ease-in-out}#av-container #av-inner #gui #skip-btn{background-color:#323232;background-color:rgba(0,0,0,.4);border:1px solid #fff;border-right-width:0;bottom:60px;font-size:14px;height:32px;line-height:32px;min-width:30px;padding:0 12px;right:0;text-transform:uppercase}#av-container #av-inner #gui #aniview-credit{color:#fff;font-family:Helvetica,Arial,fallback,sans-serif;font-size:11px;font-weight:500;height:24px;line-height:24px;position:absolute;right:2px;top:2px}#av-container #av-inner #gui #aniview-credit span{background-image:url("+R+');background-repeat:no-repeat;background-size:cover;display:inline-block;height:24px;vertical-align:top;width:24px}#av-container.av-desktop #av-inner #gui #big-play{border-color:#ccc}#av-container.av-desktop #gui:before{bottom:-15%}#av-container.av-desktop #gui #buttons,#av-container.av-desktop #gui #timeline,#av-container.av-desktop #gui:before{filter:alpha(opacity=0);opacity:0}#av-container.av-desktop:hover #av-inner #gui #big-play{background-color:#000;background-color:rgba(0,0,0,.7);border-color:#fff}#av-container.av-desktop:hover #gui:before{bottom:0}#av-container.av-desktop #av-inner #gui #timeline:hover #timeline-moveto,#av-container.av-desktop:hover #gui #buttons,#av-container.av-desktop:hover #gui #timeline,#av-container.av-desktop:hover #gui:before{filter:alpha(opacity=100);opacity:1}#av-container.av-responsive{height:520px;width:100%}#av-container.hide-controls #av-inner #gui #buttons,#av-container.hide-controls #av-inner #gui:before,#av-container.hide-controls #timeline{display:none}#av-container.buttons-below #av-inner #slot #videoslot{top:0;-webkit-transform:none;transform:none}#av-container #videoslot video{max-width:none}#av-container #slot video{object-fit:contain}@-webkit-keyframes "fade-in"{0%{filter:alpha(opacity=0);opacity:0}to{filter:alpha(opacity=100);opacity:1}}@-moz-keyframes "fade-in"{0%{filter:alpha(opacity=0);opacity:0}to{filter:alpha(opacity=100);opacity:1}}@-o-keyframes fade-in{0%{filter:alpha(opacity=0);opacity:0}to{filter:alpha(opacity=100);opacity:1}}@keyframes "fade-in"{0%{filter:alpha(opacity=0);opacity:0}to{filter:alpha(opacity=100);opacity:1}}@-webkit-keyframes "av-loading-dash"{0%{stroke-dasharray:1,210;stroke-dashoffset:0}50%{stroke-dasharray:130,220;stroke-dashoffset:-50}to{stroke-dasharray:170,220;stroke-dashoffset:-210}}@-moz-keyframes "av-loading-dash"{0%{stroke-dasharray:1,210;stroke-dashoffset:0}50%{stroke-dasharray:130,220;stroke-dashoffset:-50}to{stroke-dasharray:170,220;stroke-dashoffset:-210}}@-o-keyframes av-loading-dash{0%{stroke-dasharray:1,210;stroke-dashoffset:0}50%{stroke-dasharray:130,220;stroke-dashoffset:-50}to{stroke-dasharray:170,220;stroke-dashoffset:-210}}@keyframes "av-loading-dash"{0%{stroke-dasharray:1,210;stroke-dashoffset:0}50%{stroke-dasharray:130,220;stroke-dashoffset:-50}to{stroke-dasharray:170,220;stroke-dashoffset:-210}}@-webkit-keyframes "av-loading-rotate"{0%{stroke:#fff;-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{stroke:currentColor;-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-moz-keyframes "av-loading-rotate"{0%{stroke:#fff;-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{stroke:currentColor;-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-o-keyframes av-loading-rotate{0%{stroke:#fff;-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{stroke:currentColor;-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes "av-loading-rotate"{0%{stroke:#fff;-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{stroke:currentColor;-webkit-transform:rotate(1turn);transform:rotate(1turn)}}',""]),e.Z=w.toString()},3645:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<t.length;c++){var d=[].concat(t[c]);n&&a[d[0]]||(void 0!==o&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=o),i&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=i):d[2]=i),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),e.push(d))}},e}},1667:function(t){"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},8081:function(t){"use strict";t.exports=function(t){return t[1]}},5705:function(t,e,i){"use strict";var n,r,o=i.g.MutationObserver||i.g.WebKitMutationObserver;if(o){var a=0,s=new o(u),l=i.g.document.createTextNode("");s.observe(l,{characterData:!0}),n=function(){l.data=a=++a%2}}else if(i.g.setImmediate||void 0===i.g.MessageChannel)n="document"in i.g&&"onreadystatechange"in i.g.document.createElement("script")?function(){var t=i.g.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},i.g.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new i.g.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var d=[];function u(){var t,e;r=!0;for(var i=d.length;i;){for(e=d,d=[],t=-1;++t<i;)e[t]();i=d.length}r=!1}t.exports=function(t){1!==d.push(t)||r||n()}},3389:function(t,e,i){"use strict";var n=i(5705);function r(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==r&&f(this,t)}function d(t,e,i){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function u(t,e,i){n((function(){var n;try{n=e(i)}catch(e){return o.reject(t,e)}n===t?o.reject(t,new TypeError("Cannot resolve promise with itself")):o.resolve(t,n)}))}function p(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function f(t,e){var i=!1;function n(e){i||(i=!0,o.reject(t,e))}function r(e){i||(i=!0,o.resolve(t,e))}var a=h((function(){e(r,n)}));"error"===a.status&&n(a.value)}function h(t,e){var i={};try{i.value=t(e),i.status="success"}catch(t){i.status="error",i.value=t}return i}t.exports=c,c.prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(i){return e.resolve(t()).then((function(){return i}))}),(function(i){return e.resolve(t()).then((function(){throw i}))}))},c.prototype.catch=function(t){return this.then(null,t)},c.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===a)return this;var i=new this.constructor(r);this.state!==l?u(i,this.state===s?t:e,this.outcome):this.queue.push(new d(i,t,e));return i},d.prototype.callFulfilled=function(t){o.resolve(this.promise,t)},d.prototype.otherCallFulfilled=function(t){u(this.promise,this.onFulfilled,t)},d.prototype.callRejected=function(t){o.reject(this.promise,t)},d.prototype.otherCallRejected=function(t){u(this.promise,this.onRejected,t)},o.resolve=function(t,e){var i=h(p,e);if("error"===i.status)return o.reject(t,i.value);var n=i.value;if(n)f(t,n);else{t.state=s,t.outcome=e;for(var r=-1,a=t.queue.length;++r<a;)t.queue[r].callFulfilled(e)}return t},o.reject=function(t,e){t.state=a,t.outcome=e;for(var i=-1,n=t.queue.length;++i<n;)t.queue[i].callRejected(e);return t},c.resolve=function(t){if(t instanceof this)return t;return o.resolve(new this(r),t)},c.reject=function(t){var e=new this(r);return o.reject(e,t)},c.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,n=!1;if(!i)return this.resolve([]);var a=new Array(i),s=0,l=-1,c=new this(r);for(;++l<i;)d(t[l],l);return c;function d(t,r){e.resolve(t).then((function(t){a[r]=t,++s!==i||n||(n=!0,o.resolve(c,a))}),(function(t){n||(n=!0,o.reject(c,t))}))}},c.race=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,n=!1;if(!i)return this.resolve([]);var a=-1,s=new this(r);for(;++a<i;)l=t[a],e.resolve(l).then((function(t){n||(n=!0,o.resolve(s,t))}),(function(t){n||(n=!0,o.reject(s,t))}));var l;return s}},1528:function(t,e){var i,n,r;!function(o,a){"use strict";"object"==typeof t.exports?t.exports=a():(n=[],void 0===(r="function"==typeof(i=a)?i.apply(e,n):i)||(t.exports=r))}(0,(function(){"use strict";var t=Object.prototype.toString,e=Object.prototype.hasOwnProperty;function i(t){if(!t)return!0;if(a(t)&&0===t.length)return!0;for(var i in t)if(e.call(t,i))return!1;return!0}function n(e){return t.call(e)}function r(t){return"number"==typeof t||"[object Number]"===n(t)}function o(t){return"string"==typeof t||"[object String]"===n(t)}function a(t){return"object"==typeof t&&"number"==typeof t.length&&"[object Array]"===n(t)}function s(t){var e=parseInt(t);return e.toString()===t?e:t}function l(t,e,n,a){if(r(e)&&(e=[e]),i(e))return t;if(o(e))return l(t,e.split("."),n,a);var c=s(e[0]);if(1===e.length){var d=t[c];return void 0!==d&&a||(t[c]=n),d}return void 0===t[c]&&(r(c)?t[c]=[]:t[c]={}),l(t[c],e.slice(1),n,a)}function c(t,e){if(r(e)&&(e=[e]),!i(t)){if(i(e))return t;if(o(e))return c(t,e.split("."));var n=s(e[0]),l=t[n];if(1===e.length)void 0!==l&&(a(t)?t.splice(n,1):delete t[n]);else if(void 0!==t[n])return c(t[n],e.slice(1));return t}}var d={ensureExists:function(t,e,i){return l(t,e,i,!0)},set:function(t,e,i,n){return l(t,e,i,n)},insert:function(t,e,i,n){var r=d.get(t,e);n=~~n,a(r)||(r=[],d.set(t,e,r)),r.splice(n,0,i)}};return d.empty=function(t,s){if(i(s))return t;if(!i(t)){var l,c;if(!(l=d.get(t,s)))return t;if(o(l))return d.set(t,s,"");if(function(t){return"boolean"==typeof t||"[object Boolean]"===n(t)}(l))return d.set(t,s,!1);if(r(l))return d.set(t,s,0);if(a(l))l.length=0;else{if(!function(t){return"object"==typeof t&&"[object Object]"===n(t)}(l))return d.set(t,s,null);for(c in l)e.call(l,c)&&delete l[c]}}},d.push=function(t,e){var i=d.get(t,e);a(i)||(i=[],d.set(t,e,i)),i.push.apply(i,Array.prototype.slice.call(arguments,2))},d.coalesce=function(t,e,i){for(var n,r=0,o=e.length;r<o;r++)if(void 0!==(n=d.get(t,e[r])))return n;return i},d.get=function(t,e,n){if(r(e)&&(e=[e]),i(e))return t;if(i(t))return n;if(o(e))return d.get(t,e.split("."),n);var a=s(e[0]);return 1===e.length?void 0===t[a]?n:t[a]:d.get(t[a],e.slice(1),n)},d.del=function(t,e){return c(t,e)},d}))},4366:function(t,e,i){var n,r,o=i(1528);r=function(t){var e=1;return"-"===t[0]&&(e=-1,t=t.substr(1)),function(i,n){var r;return o.get(i,t)<o.get(n,t)&&(r=-1),o.get(i,t)>o.get(n,t)&&(r=1),o.get(i,t)===o.get(n,t)&&(r=0),r*e}},n=function(){var t=arguments;return function(e,i){for(var n=t.length,o=0,a=0;0===o&&a<n;)o=r(t[a])(e,i),a++;return o}},t.exports=n},9023:function(t){"use strict";t.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 xml:space=%27preserve%27 width=%2723%27 height=%2723%27 viewBox=%270 0 22.677 22.677%27%3E%3Cpath fill=%27%23fff%27 d=%27M16.672 11.339a5.334 5.334 0 0 1-10.668 0 5.334 5.334 0 0 1 5.326-5.333v2.336l7.016-3.503-7.016-3.503V3.34a8 8 0 0 0 .008 15.999 8 8 0 0 0 8-8h-2.666z%27/%3E%3C/svg%3E"},9170:function(t){"use strict";t.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 xml:space=%27preserve%27 width=%2723%27 height=%2723%27 viewBox=%270 0 22.677 22.677%27%3E%3Cpath fill=%27%23fff%27 d=%27M19.343 11.251c-.035-.439-.334-.874-.902-1.207L7.536 3.641c-1.211-.712-2.203-.138-2.203 1.275v7.463c5.85-2.36 13.783-1.163 14.01-1.128zM5.333 17v.762c0 1.412.992 1.985 2.203 1.273l10.904-6.402c.643-.377.941-.882.902-1.379-8.65.696-12.404 3.614-14.009 5.746z%27/%3E%3C/svg%3E"},5055:function(t){"use strict";t.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 xml:space=%27preserve%27 width=%2723%27 height=%2723%27 viewBox=%270 0 22.677 22.677%27%3E%3Cpath fill=%27%23fff%27 d=%27M4.338 19.339h5v-16h-5v16zm9.001-16.001v16h5v-16h-5z%27/%3E%3C/svg%3E"},5843:function(t){"use strict";t.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 xml:space=%27preserve%27 width=%2723%27 height=%2723%27 viewBox=%270 0 22.677 22.677%27%3E%3Cpath fill=%27%23fff%27 d=%27M4.339 15.339h-2v5h5v-2h-3v-3zm-2-8.001h2v-3h3v-2h-5v5zm13-5v2h3v3h2v-5h-5zm3 16.001h-3v2h5v-5h-2v3z%27/%3E%3C/svg%3E"},2855:function(t){"use strict";t.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 xml:space=%27preserve%27 width=%2723%27 height=%2723%27 viewBox=%270 0 22.677 22.677%27%3E%3Cpath fill=%27%23fff%27 d=%27M6.338 6.338h-3v2h5v-5h-2v3zm-3 10.001h3v3h2v-5h-5v2zm11 3h2v-3h3v-2h-5v5zm2-13.001v-3h-2v5h5v-2h-3z%27/%3E%3C/svg%3E"},2095:function(t){"use strict";t.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 xml:space=%27preserve%27 width=%2723%27 height=%2723%27 viewBox=%270 0 22.677 22.677%27%3E%3Cpath fill=%27%23fff%27 d=%27m17.808 4.757-1.705 1.881c1.357 1.146 2.221 2.824 2.221 4.7s-.863 3.556-2.221 4.701l1.705 1.881c1.902-1.605 3.109-3.955 3.109-6.582 0-2.626-1.207-4.975-3.109-6.581z%27/%3E%3C/svg%3E"},3404:function(t){"use strict";t.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 xml:space=%27preserve%27 width=%2723%27 height=%2723%27 viewBox=%270 0 22.677 22.677%27%3E%3Cpath fill=%27%23fff%27 fill-rule=%27evenodd%27 d=%27M17.338 14.339a2.97 2.97 0 0 0-1.838.645l-7.17-3.567c0-.026.008-.051.008-.078 0-.026-.008-.052-.008-.078l7.17-3.566c.51.397 1.143.645 1.838.645a3 3 0 1 0-3-3c0 .188.023.372.057.552L7.531 9.304a2.982 2.982 0 0 0-2.193-.966 3 3 0 0 0 0 6c.869 0 1.645-.375 2.193-.965l6.863 3.412a3.05 3.05 0 0 0-.057.553 3.001 3.001 0 0 0 6 0 3 3 0 0 0-2.999-2.999z%27 clip-rule=%27evenodd%27/%3E%3C/svg%3E"},7121:function(t){"use strict";t.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 xml:space=%27preserve%27 width=%2723%27 height=%2723%27 viewBox=%270 0 22.677 22.677%27%3E%3Cpath fill=%27%23fff%27 fill-rule=%27evenodd%27 d=%27M20.154 17.236c.299-.298.254-.921-.236-1.188-.492-.267-4.518-2.602-4.982-2.138-.463.465-1.447 1.498-2.135 1.188s-2.289-1.816-2.846-2.375c-.559-.557-2.064-2.159-2.377-2.847-.31-.687.725-1.67 1.188-2.134.464-.465-1.87-4.491-2.137-4.982-.266-.489-.889-.534-1.188-.237s-2.18 2.176-2.85 2.847c-.671.671-.279 5.415 4.514 10.202 4.787 4.792 9.531 5.185 10.203 4.514.671-.671 2.549-2.551 2.846-2.85z%27 clip-rule=%27evenodd%27/%3E%3C/svg%3E"},9074:function(t){"use strict";t.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 xml:space=%27preserve%27 width=%2723%27 height=%2723%27 viewBox=%270 0 22.677 22.677%27%3E%3Cpath fill=%27%23fff%27 fill-rule=%27evenodd%27 d=%27m19.346 5.421-2.09-2.089-5.918 5.918L5.42 3.332 3.332 5.421l5.918 5.917-5.918 5.919 2.088 2.088 5.918-5.918 5.918 5.918 2.09-2.088-5.918-5.919z%27 clip-rule=%27evenodd%27/%3E%3C/svg%3E"},1923:function(t){"use strict";t.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 xml:space=%27preserve%27 width=%2723%27 height=%2723%27 viewBox=%270 0 22.677 22.677%27%3E%3Cpath fill=%27red%27 d=%27M19.343 11.251c-.035-.439-.334-.874-.902-1.207L7.536 3.641c-1.211-.712-2.203-.138-2.203 1.275v7.463c5.85-2.36 13.783-1.163 14.01-1.128zM5.333 17v.762c0 1.412.992 1.985 2.203 1.273l10.904-6.402c.643-.377.941-.882.902-1.379-8.65.696-12.404 3.614-14.009 5.746z%27/%3E%3C/svg%3E"},5279:function(t){"use strict";t.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 xml:space=%27preserve%27 width=%2723%27 height=%2723%27 viewBox=%270 0 22.677 22.677%27%3E%3Cpath fill=%27red%27 fill-rule=%27evenodd%27 d=%27m20.009 11.337 2.662-2.663-1.328-1.329-2.664 2.662-2.664-2.662-1.33 1.329 2.664 2.663-2.668 2.666 1.334 1.328 2.664-2.665 2.664 2.665 1.334-1.328z%27 clip-rule=%27evenodd%27/%3E%3C/svg%3E"},4981:function(t){"use strict";t.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 xml:space=%27preserve%27 width=%2723%27 height=%2723%27 viewBox=%270 0 22.68 22.68%27%3E%3Cpath fill=%27%23fff%27 fill-rule=%27evenodd%27 d=%27M7.247 7.34H1.761v8h5.486l5.496 4.006V3.334z%27 clip-rule=%27evenodd%27/%3E%3C/svg%3E"},907:function(t,e,i){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}i.d(e,{Z:function(){return n}})},7326:function(t,e,i){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}i.d(e,{Z:function(){return n}})},5861:function(t,e,i){"use strict";function n(t,e,i,n,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void i(t)}s.done?e(l):Promise.resolve(l).then(n,r)}function r(t){return function(){var e=this,i=arguments;return new Promise((function(r,o){var a=t.apply(e,i);function s(t){n(a,r,o,s,l,"next",t)}function l(t){n(a,r,o,s,l,"throw",t)}s(void 0)}))}}i.d(e,{Z:function(){return r}})},5671:function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}i.d(e,{Z:function(){return n}})},6274:function(t,e,i){"use strict";function n(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}i.d(e,{Z:function(){return n}})},9359:function(t,e,i){"use strict";i.d(e,{Z:function(){return r}});var n=0;function r(t){return"__private_"+n+++"_"+t}},3144:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var n=i(7343);function r(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(0,n.Z)(r.key),r)}}function o(t,e,i){return e&&r(t.prototype,e),i&&r(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}},4942:function(t,e,i){"use strict";i.d(e,{Z:function(){return r}});var n=i(7343);function r(t,e,i){return(e=(0,n.Z)(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}},1752:function(t,e,i){"use strict";i.d(e,{Z:function(){return r}});var n=i(1120);function r(){return r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,i){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=(0,n.Z)(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:i):o.value}},r.apply(this,arguments)}},1120:function(t,e,i){"use strict";function n(t){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},n(t)}i.d(e,{Z:function(){return n}})},136:function(t,e,i){"use strict";i.d(e,{Z:function(){return r}});var n=i(9611);function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,n.Z)(t,e)}},3366:function(t,e,i){"use strict";function n(t,e){if(null==t)return{};var i,n,r={},o=Object.keys(t);for(n=0;n<o.length;n++)i=o[n],e.indexOf(i)>=0||(r[i]=t[i]);return r}i.d(e,{Z:function(){return n}})},2963:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var n=i(1002),r=i(7326);function o(t,e){if(e&&("object"===(0,n.Z)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(t)}},9611:function(t,e,i){"use strict";function n(t,e){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},n(t,e)}i.d(e,{Z:function(){return n}})},885:function(t,e,i){"use strict";i.d(e,{Z:function(){return r}});var n=i(181);function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,r,o,a,s=[],l=!0,c=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(t,e)||(0,n.Z)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2982:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var n=i(907);var r=i(181);function o(t){return function(t){if(Array.isArray(t))return(0,n.Z)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,r.Z)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},5512:function(t,e,i){"use strict";i.d(e,{Z:function(){return r}});var n=i(1002);function r(t,e){if("object"!==(0,n.Z)(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e||"default");if("object"!==(0,n.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}},7343:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var n=i(1002),r=i(5512);function o(t){var e=(0,r.Z)(t,"string");return"symbol"===(0,n.Z)(e)?e:String(e)}},1002:function(t,e,i){"use strict";function n(t){return n="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},n(t)}i.d(e,{Z:function(){return n}})},181:function(t,e,i){"use strict";i.d(e,{Z:function(){return r}});var n=i(907);function r(t,e){if(t){if("string"==typeof t)return(0,n.Z)(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?(0,n.Z)(t,e):void 0}}}},n={};function r(t){var e=n[t];if(void 0!==e)return e.exports;var o=n[t]={id:t,loaded:!1,exports:{}};return i[t].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=i,r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.f={},r.e=function(t){return Promise.all(Object.keys(r.f).reduce((function(e,i){return r.f[i](t,e),e}),[]))},r.u=function(t){return({41:"libs/prebid/avpb8.48.0a1",148:"libs/prebid/avpb8.48.0a0",162:"libs/prebid/avpb8.48.0a6",172:"imagePlayer",200:"libs/prebid/avpb8.48.0a3",233:"libs/prebid/avpb8.48.0a4",260:"libs/prebid/avpb8.48.0a8",493:"libs/prebid/avpb8.48.0a7",814:"libs/prebid/avpb8.48.0",828:"libs/prebid/avpb8.48.0a2",985:"libs/prebid/avpb8.48.0a5"}[t]||t)+".js"},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.hmd=function(t){return(t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t={},e="@aniview/player:",r.l=function(i,n,o,a){if(t[i])t[i].push(n);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==i||u.getAttribute("data-webpack")==e+o){s=u;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=30,r.nc&&s.setAttribute("nonce",r.nc),s.setAttribute("data-webpack",e+o),s.src=i),t[i]=[n];var p=function(e,n){s.onerror=s.onload=null,clearTimeout(f);var r=t[i];if(delete t[i],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach((function(t){return t(n)})),e)return e(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),3e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");if(i.length)for(var n=i.length-1;n>-1&&!t;)t=i[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}(),function(){r.b=document.baseURI||self.location.href;var t={368:0};r.f.j=function(e,i){var n=r.o(t,e)?t[e]:void 0;if(0!==n)if(n)i.push(n[2]);else{var o=new Promise((function(i,r){n=t[e]=[i,r]}));i.push(n[2]=o);var a=r.p+r.u(e),s=new Error;r.l(a,(function(i){if(r.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var o=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.src;s.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,n[1](s)}}),"chunk-"+e,e)}};var e=function(e,i){var n,o,a=i[0],s=i[1],l=i[2],c=0;if(a.some((function(e){return 0!==t[e]}))){for(n in s)r.o(s,n)&&(r.m[n]=s[n]);if(l)l(r)}for(e&&e(i);c<a.length;c++)o=a[c],r.o(t,o)&&t[o]&&t[o][0](),t[o]=0},i=self.webpackChunk_aniview_player=self.webpackChunk_aniview_player||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))}(),function(){"use strict";r(4553),r(8282),r(6535),r(9244),r(1038),r(8783),r(6699),r(5837),r(9601),r(9720),r(7941),r(6833),r(6755),r(5674);function t(t){var e=null==t?void 0:t.ownerDocument;return(null==e?void 0:e.defaultView)||(null==e?void 0:e.parentWindow)}var e=function(e){void 0===e&&(e=window);try{for(;e.frameElement;)try{e.frameElement.getBoundingClientRect()&&(e=t(e.frameElement))}catch(t){break}}catch(t){}return e||window}();function i(t){return Object(t)===t}var n=RegExp("^".concat(Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\])/g,"$1.*?"),"$"));function o(t){return i(t)&&n.test(String(t))}var a={};function s(t){try{if(window[t]===a[t])return;window[t]=a[t]}catch(t){0}}window.disableWebApiPatch||[["setTimeout","clearTimeout"],["setInterval","clearInterval"],"Image",["ArrayBuffer","Blob","DataView","fetch","FormData","URLSearchParams","XMLHttpRequest","XMLHttpRequestEventTarget"]].forEach((function(t){Array.isArray(t)||(t=[t]);var i=t.findIndex((function(t){try{if(a[t]=window[t],window[t]===e[t])return!1;if(!o(e[t]))return!0;window[t]=e[t]}catch(t){return!0}return!1}));i>=0&&t.slice(0,i+1).forEach(s)}));var l=r(3389),c=r.n(l),d={};var u=r(9611);function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function f(t,e,i){return f=p()?Reflect.construct.bind():function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&(0,u.Z)(r,i.prototype),r},f.apply(null,arguments)}function h(t){try{for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];f(t,i)}catch(t){return!1}return!0}var v=r(1304);function m(t){return"function"==typeof t||(0,v.Z)(t,"Function")}var g,y,b=r(7838);function A(){}var w=window,k=(m(w.Array.prototype.every),m(w.Array.prototype.find),m(w.Array.prototype.findIndex),m(w.Array.prototype.flatMap),m(w.Array.from),m(w.Array.prototype.includes),m(w.Object.assign),m(w.Object.entries),m(w.Object.keys),m(w.Object.values),m(w.String.prototype.startsWith),m(w.String.prototype.trimStart),D(w.Promise,A)),x=k&&o(w.Promise.allSettled),_=k&&o(w.Promise.prototype.finally),S=(m(w.Proxy)&&h(w.Proxy,d,d),(0,v.Z)(w.Reflect,"Reflect"),o(w.Element.prototype.closest),o(w.Element.prototype.matches),o(w.Node.prototype.getRootNode),o(null==(g=w.Object.getOwnPropertyDescriptor(w.Node.prototype,"isConnected"))?void 0:g.get),o(w.URL),o(w.URLSearchParams)),C=m(w.Event)&&h(w.Event,"."),T=(m(w.CustomEvent)&&h(w.CustomEvent,"."),o(w.PointerEvent),!!w.EventTarget&&h(w.EventTarget)),I=D(w.DOMException),E=D(w.AbortController),P=o(w.AbortSignal),V=o(w.fetch),O=D(w.FileReader)&&D(w.Blob),R=D(w.FormData),L=D(w.ArrayBuffer);w.visualViewport,U(w.ScreenOrientation)&&(null==(y=w.screen)?void 0:y.orientation)instanceof w.ScreenOrientation&&U(w.screen.orientation.addEventListener)&&null===w.screen.orientation.onchange&&(0,b.Z)(w.screen.orientation.type),U(w.navigator.getAutoplayPolicy),U(w.queueMicrotask);function U(t){return o(t)&&m(t)}function D(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return o(t)&&h.apply(void 0,[t].concat(i))}var M=k?w.Promise:c();x||(M.allSettled=function(t){return M.all(t.map((function(t){return M.resolve(t).then((function(t){return{status:"fulfilled",value:t}}),(function(t){return{status:"rejected",reason:t}}))})))}),k&&!_&&(M.prototype.finally={finally:function(t){var e=function(e){return M.resolve(t()).then(e)};return this.then((function(t){return e((function(){return t}))}),(function(t){return e((function(){return M.reject(t)}))}))}}.finally);var q=M;k||(w.Promise=q);var j,F=r(3144),N=r(5671),B=function(){function t(){(0,N.Z)(this,t),this.listeners={}}var e=t.prototype;return e.subscribe=function(t,e,i){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({callback:t,context:i})},e.unsubscribe=function(t,e){if(this.listeners[e])for(var i=0;i<this.listeners[e].length;++i)if(this.listeners[e][i].callback===t){this.listeners[e].splice(i,1);break}},e.dispatch=function(t){if(this.listeners[t]){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var r=0;r<this.listeners[t].length;++r)if(this.listeners[t][r]&&m(this.listeners[t][r].callback))try{var o;(o=this.listeners[t][r].callback).call.apply(o,[this.listeners[t][r].context].concat(i))}catch(t){0}}},(0,F.Z)(t)}(),Z="testPassive";function z(){return function(){if(void 0===j){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener(Z,null,e),window.removeEventListener(Z,null,e)}catch(e){t=!1}j=!!t&&{passive:!0}}}(),j}var W=function(t){for(var e="",i=0,n=t.length;i<n;i+=1){var r=t.charCodeAt(i).toString(2);e+="00000000".slice(0,8-r.length)+r}return e},H=function(t){if("function"==typeof atob){var e=t.replace(/_/g,"/").replace(/-/g,"+");try{return atob(e)}catch(t){throw new Error("Unable to decode transparency and consent string")}}if("function"==typeof Buffer)return Buffer.from(t,"base64").toString("binary");throw new Error("Unable to detect base64 decoder")},G=function(t){return parseInt(t,2)||0},K=function(t){return 100*G(t)},J=function(t){for(var e="A".charCodeAt(),i=t.match(/.{6}/g)||[],n="",r=0,o=i.length;r<o;r+=1){var a=G(i[r])+e;n+=String.fromCharCode(a)}return n},X=function(t){return Boolean(Number(t))},Q=function(t){for(var e=t.split(""),i={},n=0,r=e.length;n<r;n+=1)X(e[n])&&(i[n+1]=!0);return i},Y=function(t){for(var e=Object(t),i=1;i<arguments.length;i+=1){var n=arguments[i];if(null!==n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$=function(t,e,i){return t.key&&!t.hidden&&(t.parent?(i[t.parent]||(i[t.parent]={}),"object"==typeof i[t.parent][t.key]&&"object"==typeof e?i[t.parent][t.key]=Y(i[t.parent][t.key],e):i[t.parent][t.key]=e):"object"==typeof i[t.key]&&"object"===e?i[t.key]=Y(i[t.key],e):i[t.key]=e),i};function tt(t){var e=function(t,e,i,n){var r=function(){if(n.pubRestrictionEntry&&n.rangeEntry)for(var e in n.rangeEntry)Object.prototype.hasOwnProperty.call(n.rangeEntry,e)&&(n.pubRestrictionEntry[e]=(n.pubRestrictionEntry[e]||[]).concat(n.rangeEntry[e]));n.numPubRestrictions&&(n.numPubRestrictions-=1,t.push({key:"purposeId",size:6},{key:"restrictionType",size:2},{key:"numEntries",size:12}))},o=function(){n.numEntries?(n.numEntries-=1,t.push({key:"isRange",size:1,decoder:X},{key:"startVendorId",size:16})):r()},a=function(){return!n.purposeId||[{purpose:n.purposeId,isAllowed:0!==n.restrictionType,isConsentRequired:1===n.restrictionType,isLegitimateInterestRequired:2===n.restrictionType}]};if("isRangeEncoding"===e.key)t.push(i?{key:"numEntries",size:12}:{key:"bitField",size:n.maxVendorId,decoder:Q});else if("numEntries"===e.key)n.rangeEntry={},o();else if("isRange"===e.key)i&&t.push({key:"endVendorId",size:16});else if("startVendorId"===e.key)n.isRange||(n.rangeEntry[i]=a(),o());else if("endVendorId"===e.key){for(var s=n.startVendorId;s<=n.endVendorId;s+=1)n.rangeEntry[s]=a();o()}else"numCustomPurposes"===e.key?t.push({key:"consents",parent:"customPurpose",size:n.numCustomPurposes,decoder:Q},{key:"legitimateInterests",parent:"customPurpose",size:n.numCustomPurposes,decoder:Q}):"numPubRestrictions"===e.key&&(n.pubRestrictionEntry={},r())},i=function(t){return t.pubRestrictionEntry||t.rangeEntry||t.bitField||t},n=0,r=function(t,e){var i=e.slice(n,n+t.size);return n+=t.size,(t.decoder||G)(i)},o=function(t,n){if(!t.queue)return r(t,n);for(var o={},a=0;a<t.queue.length;a+=1){var s=t.queue[a],l=r(s,n);o=$(s,l,o),e(t.queue,s,l,o)}return i(o)},a=function(t,n){for(var r={},a=0;a<t.queue.length;a+=1){var s=t.queue[a],l=o(s,n);r=$(s,l,r),e(t.queue,s,l,r)}return i(r)};return function(){for(var e=function(t){if("string"!=typeof t)throw new Error("Invalid transparency and consent string specified");for(var e=t.split("."),i=[],n=0,r=e.length;n<r;n+=1)i.push(W(H(e[n])));var o=G(i[0].slice(0,6));if(2!==o)throw new Error("Unsupported transparency and consent string version “"+o+"”");return i}(t),i=function(t){for(var e=[{key:"consents",size:24,decoder:Q},{key:"legitimateInterests",size:24,decoder:Q}],i=[{key:"maxVendorId",size:16},{key:"isRangeEncoding",size:1,decoder:X}],n=[{key:"version",size:6},{key:"created",size:36,decoder:K},{key:"lastUpdated",size:36,decoder:K},{key:"cmpId",size:12},{key:"cmpVersion",size:12},{key:"consentScreen",size:6},{key:"consentLanguage",size:12,decoder:J},{key:"vendorListVersion",size:12},{key:"tcfPolicyVersion",size:6},{key:"isServiceSpecific",size:1,decoder:X},{key:"useNonStandardStacks",size:1,decoder:X},{key:"specialFeatureOptins",size:12,decoder:Q}].concat(e.map((function(t){return Y({parent:"purpose"},t)}))).concat({key:"purposeOneTreatment",size:1,decoder:X},{key:"publisherCC",size:12,decoder:J},{key:"consents",parent:"vendor",queue:[{key:"maxVendorId",size:16},{key:"isRangeEncoding",size:1,decoder:X}]},{key:"legitimateInterests",parent:"vendor",queue:i},{key:"restrictions",parent:"publisher",queue:[{key:"numPubRestrictions",size:12}]}),r=[{size:3}],o=[].concat(r).concat(i),a=[].concat(r).concat(i),s=[].concat(r).concat(e).concat({key:"numCustomPurposes",hidden:!0,size:6}),l=[{key:"core",queue:n}],c=1;c<t.length;c+=1){var d=t[c],u=G(d.slice(0,3));1===u?l.push({key:"outOfBand",parent:"core",queue:[{key:"disclosedVendors",queue:o}]}):2===u?l.push({key:"outOfBand",parent:"core",queue:[{key:"allowedVendors",queue:a}]}):3===u&&l.push({key:"publisher",parent:"core",queue:s})}return l}(e),r={},o=0;o<i.length;o+=1){var s=i[o],l=e[o],c=a(s,l);r=$(s,c,r),n=0}return Y({tcString:t,vendor:{},outOfBand:{disclosedVendors:{},allowedVendors:{}}},r.core)}()}var et=r(3701),it=r(5533);function nt(t){return"number"==typeof t||(0,it.Z)(t)&&(0,v.Z)(t,"Number")}function rt(t,e,i){void 0===e&&(e=-1),void 0===i&&(i=-1);var n={factor:10,maxCpm:1e4,decimals:1};if((0,b.Z)(t))switch(t){case"high":n.factor=100,n.decimals=2;break;case"low":n.factor=2,n.decimals=0;break;default:n.factor=10,n.maxCpm=20,n.decimals=1}else if(nt(t)&&t>0){var r="".concat(t),o=r.indexOf(".");n.decimals=-1==o?0:r.length-o-1,n.factor=1/t}return e>0&&(n.maxCpm=e),i>=0&&(n.decimals=Math.floor(i)),n}function ot(t,e){return t=Math.min(t,e.maxCpm),Math.min(Math.floor(t*e.factor+1e-5)/e.factor,e.maxCpm)}function at(t,e,i,n){void 0===i&&(i=-1),void 0===n&&(n=-1);var r=rt(e,i,n);t&&!isNaN(t)||(t=0);var o=ot(t,r);return n>=0?o.toFixed(n):o.toString()}function st(t,e,i,n){void 0===i&&(i=-1),void 0===n&&(n=-1);var r=rt(e,i,n);return t&&!isNaN(t)||(t=0),ot(t,r).toFixed(r.decimals)}function lt(t){return null==t}function ct(t,e,i,n){var r=new(n||window).XMLHttpRequest;return"withCredentials"in r?(r.open(t,e,!0),1==i&&(r.withCredentials=!0)):lt(window.XDomainRequest)?r=null:(r=new XDomainRequest).open(t,e),r}function dt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var i=function i(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=e?e.apply(this,r):r[0],s=i.cache;if(s.has(a))return s.get(a);var l=t.apply(this,r);return i.cache=s.set(a,l)||s,l};return i.cache=new(dt.Cache||Map),i}dt.Cache=Map;var ut,pt=dt((function(){var t,e=navigator.userAgent.toLowerCase(),i=(null==(t=navigator.vendor)?void 0:t.toLowerCase())||"";return e.indexOf("chrome")>=0&&i.indexOf("google")>=0?"chrome":e.indexOf("opera")>=0?"opera":e.indexOf("firefox")>=0?"firefox":e.indexOf("safari")>=0||i.indexOf("apple")>=0?"safari":e.indexOf("msie")>=0||1==!!document.documentMode?"ie":e.indexOf("mozilla")>=0?"edge":void 0}));function ft(){var t=navigator.userAgent.match(/Chrom(e|ium)\/(\d+)\./);if(t)return parseInt(t[2],10)}function ht(){return lt(ut)&&(ut=/iPhone|iPod|iPad/.test(navigator.userAgent)),ut}var vt,mt=dt((function(){var t;if(!(0,b.Z)(null==(t=navigator)?void 0:t.appVersion))return"";var e=navigator.appVersion.toLowerCase();return e.indexOf("android")>=0?"android":e.indexOf("mac")>=0&&ht()?"ios":e.indexOf("win")>=0?"windows":e.indexOf("mac")>=0?"mac":e.indexOf("x11")>=0?"unix":e.indexOf("web0s")>=0||e.indexOf("webos")>=0?"webos":e.indexOf("tizen")>=0?"tizen":e.indexOf("linux")>=0?"linux":""}));function gt(){var t=navigator.userAgent.toLowerCase().split(" "),e=0,i=0;if("tizen"===mt()){var n=t.indexOf("tizen");-1!==n&&(e=+t[n+1].split(".")[0])}else{var r=t.indexOf("os");if(-1!==r){var o=t[r+1].split("_");e=+o[0],i=+o[1]}}return{major:e,minor:i}}function yt(){return lt(vt)&&(vt=/android/i.test(navigator.userAgent)),vt}var bt,At="only screen and ",wt="device-pixel-ratio",kt=["124dpi","1.3dppx","48.8dpcm"].map((function(t){return"".concat(At,"(min-resolution: ").concat(t,")")})).join(", "),xt=["-webkit-min-".concat(wt,": 1.3"),"-o-min-".concat(wt,": 2.6/2"),"min--moz-".concat(wt,": 1.3"),"min-".concat(wt,": 1.3")].map((function(t){return"".concat(At,"(").concat(t,")")})).join(", ");function _t(){var t=window.devicePixelRatio>1.3;try{t||(t=!!(null!=window.matchMedia&&window.matchMedia(kt).matches||null!=window.matchMedia&&window.matchMedia(xt).matches))}catch(t){}return t}function St(t){var e,i,n=(void 0===t?{useCache:!0}:t).useCache;if("webos"===(e=mt())||"tizen"===e&&4===gt().major)return!0;if(!n||!bt){var r=!1;i=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|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|xda|xiino|android|ipad|playbook|silk/i.test(i)||/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(i.substr(0,4)))&&(r=!0),bt=r}return bt}function Ct(){if(ht()){if(gt().major<10)return!1}else if(yt()&&ft()<53)return!1;return!0}function Tt(t,e){var i=t.childNodes;for(var n in i){var r=i[n];if(r.id==e)return r;if(null!=(r=Tt(r,e)))return r}return null}function It(t){return t.fullscreenElement||t.webkitFullscreenElement||t.webkitCurrentFullScreenElement||t.mozFullScreenElement||t.msFullscreenElement}function Et(){var t=window.document;return t?t.exitFullscreen?"fullscreenchange":t.webkitExitFullscreen||t.webkitCancelFullScreen?"webkitfullscreenchange":t.mozCancelFullScreen?"mozfullscreenchange":t.msExitFullscreen?"MSFullscreenChange":null:null}function Pt(t,e){var i;return!!m(i=e?t.requestFullscreen||t.webkitRequestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen:t.exitFullscreen||t.webkitExitFullscreen||t.webkitCancelFullScreen||t.mozCancelFullScreen||t.msExitFullscreen)&&(i.call(t),!0)}function Vt(t){var e=t.getBoundingClientRect(),i=window.AV_player.config.width,n=window.AV_player.config.height;return{width:Math.max(i,e.width),height:Math.max(n,e.height)}}var Ot=r(5568);function Rt(t){return t.autosound&&!St()||t.advideoslot&&t.autosound||t.autosound&&t.autosounddetect}function Lt(t,e,i,n,r){if(void 0===r&&(r=!0),m(Object.defineProperty)){var o={enumerable:r,configurable:!0};i&&(o.get=i),n&&(o.set=n),Object.defineProperty(t,e,o)}else i&&m(t.__defineGetter__)&&t.__defineGetter__(String(e),i),n&&m(t.__defineSetter__)&&t.__defineSetter__(String(e),n)}var Ut=Object.prototype.hasOwnProperty,Dt=function(t,e){return Ut.call(t,e)};function Mt(t){var e=[];for(var i in t)Dt(t,i)&&e.push("".concat(i,"=").concat(t[i]));return e.join("&")}function qt(t,e,i,n,r,o){try{var a=ct(t,e,n,window.disableWebApiPatch?window:(0,Ot.Z)());if(!a)return;var s={onload:(null==r?void 0:r.onload)||A,onerror:(null==r?void 0:r.onerror)||A};o&&o(a),void 0===a.onreadystatechange?(a.onprogress=A,a.ontimeout=A,a.onload=function(){s.onload(a)},a.onerror=function(){s.onerror(a)}):a.onreadystatechange=function(){4==a.readyState&&(200==a.status||304==a.status?s.onload(a):s.onerror(a))},a.send(i)}catch(t){0}}var jt,Ft=r(6012);function Nt(){if(jt)return jt;var t,e=window,i=0;try{do{t=e.location.protocol,jt=e,e=e.parent,++i}while("http:"!==t&&"https:"!==t&&i<15&&e!==e.parent)}catch(t){}return"http:"!==t&&"https:"!==t&&(jt=void 0),jt}function Bt(t){try{t=decodeURIComponent(t),t=decodeURIComponent(t),t=decodeURIComponent(t)}catch(e){try{"%"===t[t.length-1]?t=t.substring(0,t.length-1):"%"===t[t.length-2]&&(t=t.substring(0,t.length-2)),t=decodeURIComponent(t),t=decodeURIComponent(t),t=decodeURIComponent(t)}catch(t){}}return function(t){if(null==t)return"";if(t=t.trim(),""===t)return"";return function(t){if(null==t)return"";if(t=t.trim(),""===t)return"";var e,i;if(-1<t.indexOf("://"))if(-1<(i=t.split("://"))[0].indexOf("/")||-1<i[0].indexOf(".")||-1<i[0].indexOf("?")||-1<i[0].indexOf("&")){if(i[0]=i[0].trim(),0!==i[0].indexOf("//"))return"";e=i[0].split("//")[1].split("/")[0].trim().split("?")[0].split("&")[0]}else i[1]=i[1].trim(),e=i[1].split("/")[0].trim().split("?")[0].split("&")[0];else e=0===t.indexOf("//")?t.split("//")[1].split("/")[0].trim().split("?")[0].split("&")[0]:t.split("/")[0].trim().split("?")[0].split("&")[0];return e}(t).split(":")[0]}(t)}var Zt,zt="AVmanager.js";function Wt(t,e){var i;t||(t=function(t){t=t.toLowerCase();for(var e="",i=document.getElementsByTagName("script"),n=0;n<i.length;n++)if(-1!==i[n].src.toLowerCase().indexOf(t)){e=i[n].src;break}return e}(zt));var n={},r=t;!e&&r.indexOf("?")>0&&(r=r.slice(r.indexOf("?")+1));for(var o=r.split("&"),a=0;a<o.length;a+=1)if(o[a].length>0&&(i=o[a].split("="))[0]!==t&&i[0].length>0)if(1===i.length)n[i[0]]=null;else if(2===i.length)try{n[i[0]]=decodeURIComponent(i[1])}catch(t){n[i[0]]=i[1]}else{n[i[0]]="";for(var s=1;s<i.length;s+=1){try{n[i[0]]+=decodeURIComponent(i[s])}catch(t){n[i[0]]+=i[s]}s<i.length-1&&(n[i[0]]+="=")}}return n}function Ht(){if(!Zt){var t=Nt();Zt=t?t.location.protocol:"https:"}return Zt}function Gt(t){return"https:"===Ht()&&(t=(t=(t=t.replace("data1.ani-view.com","gbdl.hs.llnwd.net/v1")).replace("data1.aniview.com","aniview.hs.llnwd.net/d1")).replace(/^http:\/\//i,"https://")),t}!function(t){var e=t.Utils={};e.ViewabilityChanged="ViewabilityChange",e.ViewabilityInfoChanged="ViewabilityInfoChanged",e.ConsentChanged="ConsentChanged",e.TabViewChanged="TabViewChanged",e.init=function(i,n,r,o,a,s,l){if(this.ifrvi=l,this.floatPos=r,this.floatCheckTime=0,this.floatCheck="",Ot.F.topWnd=e.getTopWnd(i),Ot.F.topWnd&&(Ot.F.topDoc=Ot.F.topWnd.document,n&&Ot.F.topDoc&&void 0!==Ot.F.topDoc.visibilityState&&(Ot.F.vitab=!0)),this.width=o,this.height=a,this.isamp=s,Ot.F.atsWindow){try{Object.defineProperty(t,"ats",{get:function(){return Ot.F.atsWindow.ats},configurable:!0,enumerable:!0})}catch(t){}}this.eventsManager=new B},e.on=function(t,e,i){this.eventsManager.subscribe(t,e,i)},e.off=function(t,e){this.eventsManager.unsubscribe(t,e)},e.isFloating=function(){if(this.floatPos&&Date.now()-this.floatCheckTime>200)try{var t=getComputedStyle(this.floatPos);this.floatCheck=t&&t.position&&"fixed"===t.position?"1":"",this.floatCheckTime=Date.now()}catch(t){}return this.floatCheck},e.getUrlParameters=Wt,e.logEnabled=!0,e.logElement=null,e.log=function(){if(e.logEnabled){var t=Array.prototype.join.call(arguments," ");this.logElement&&(this.logElement.innerHTML+=t+"<br>"),console.log(t)}},e.keys={},e.keysTotal={},e.begin=function(t){e.keys[t]=Date.now()},e.end=function(t){var i=e.keys[t],n=Date.now()-i;null==e.keysTotal[t]&&(e.keysTotal[t]=0),e.keysTotal[t]+=n},e.logKeys=function(t){e.log();var i=0;for(var t in e.keysTotal)e.log(t+" = "+e.keysTotal[t]+" ms"),i+=e.keysTotal[t];e.log("Total = "+i),e.log()},e.defineProperty=Lt,e.isMobile=St,e.isAndroid=yt,e.isiOS=ht,e.getOS=mt,e.getOSVersion=gt,e.isVideoSupported=Ct,e.getChromeVersion=ft,e.getBrowser=pt,e.isHighDensity=_t,e.getElementById=Tt,e.getHostName=Bt,e.joinObject=Mt,e.getProtocol=Ht,e.getTopWindow=Nt,e.httpsReplace=Gt,e.getTrueDomain=et.X,e.getAmpUrl=Ft.Z,e.logLevels={none:0,defaultLevel:1,error:2,info:4,debug:5},e.logLevel=e.logLevels.none,e.writeLog=function(t,e,i){if(t<=this.logLevel)try{i?console.log(e,i):console.log(e)}catch(t){}},e.setFSState=Pt,e.getFSElement=It,e.getFSEvent=Et,e.getSlotSize=Vt;var i=function(i,n,r,o,a,s){var l,c,d=null,u=.5,p=null,f=!1,h=this,g="hidden",y="visibilitychange",A="visibilityState";function w(){var t=i?i.document:null;return!o||!t||t[A]!==g}void 0===document.hidden&&(void 0!==document.msHidden?(g="msHidden",y="msvisibilitychange",A="msVisibilityState"):void 0!==document.webkitHidden?(g="webkitHidden",y="webkitvisibilitychange",A="webkitVisibilityState"):void 0!==document.mozHidden&&(g="mozHidden",y="mozvisibilitychange",A="mozVisibilityState")),this.getDocVisibility=function(){return w()};var k,x=0;function _(){if(p){if(!p.ampExt){if(p.staticInfo)return p.staticInfo;if("intersect"===p.type){var t=(r=x)>=u?"IN_VVIEW":"OUT",e=r>0?0:-1e6,i=w();return o&&!i&&(r=0,t="OUT"),{inView:r>=u,ratio:r,state:t,diff:e}}var n=h.getVieabilityInfo(p.el,p.wnd),r=n.vertical.value*n.horizontal.value;t=n.vertical.state,e=n.vertical.diff;return o&&!w()&&(r=0,t="OUT"),{inView:r>=u,ratio:r,state:t,diff:e}}if(p.ampInfo)return p.ampInfo}}function S(t){void 0===t&&(t=!1);var i=_();i&&(i.ratio!=k||t)&&d&&(k=i.ratio,d(i.inView,i.ratio,i.state)),i&&e.eventsManager.dispatch(e.ViewabilityInfoChanged,i)}function C(t){var e=t>=u,i=e?"IN_VVIEW":"OUT";p.staticInfo={inView:e,ratio:t,state:i}}function T(){S(),pl.active&&setTimeout(T,250)}this.setViewability=function(t){t>=0&&t<=1&&((p=p||{}).staticvi=t,C(t),this.checkViewability(!0))},this.checkViewability=function(t){S(t)};var I=!1;function E(t){if(t){var e=t.intersectionRatio>u,i=e?"IN_VVIEW":"OUT",n=e?0:-1e4;p.ampInfo={inView:e,ratio:t.intersectionRatio,state:i,diff:n}}}function P(t){if(I||t||i.context.initialIntersection&&(t=[i.context.initialIntersection]),t&&t.length){I=!0;var e=t[t.length-1];e&&e.intersectionRatio!=k&&(E(e),k=e.intersectionRatio,d&&p.ampInfo&&d(p.ampInfo.inView,p.ampInfo.ratio,p.ampInfo.state))}}this.start=function(s,h,g){if(f)return!1;if(p=function(o){if(cnf.initialvi>=0&&cnf.initialvi<=1)return{staticvi:cnf.initialvi};var s,l,c,d,u,p,h=null,v=t,g="window";function y(){for(var e,n=v;n!==t.top;){if((n=(e=h.ownerDocument).defaultView||e.parentWindow)===i){l=n,s=h;break}h=n.frameElement}}1!=cnf.tgt&&e&&"function"==typeof e.getViewability&&"function"==typeof e.getUrlParameters&&(v=parent),1==cnf.tgt&&"object"==typeof o&&(v=(null==(u=o.ownerDocument)?void 0:u.defaultView)||(null==(p=o.ownerDocument)?void 0:p.parentWindow)||v);try{t.top.location.href,(h=v.frameElement)&&y()}catch(e){if(n&&n.ext&&"function"==typeof n.ext.inViewPercentage){if(h=v.frameElement)try{y()}catch(t){return f=!0,null}c=n.ext}else if(i&&a&&i.context&&"function"==typeof i.context.observeIntersection)d=i.context.observeIntersection;else if(m(t.IntersectionObserver))g="intersect",h=null;else if(!r)return f=!0,null}if(null==h){if(!(s="object"==typeof o?o:v.document.getElementById(o)))return f=!0,null;l=v}return{el:s,wnd:l,sfExt:c,ampExt:d,type:g}}(s),!p)return!1;if(g&&(u=g),h){var A=p.sfExt?T:S;if(p.ampExt)p.ampObserver=i.context.observeIntersection(P),E(i.context.initialIntersection),setTimeout((function(){P()}));else{if(p.staticvi>=0)C(p.staticvi);else if("intersect"==p.type)d=h,function(t,e){for(var i={threshold:[]},n=0;n<=100;n++)i.threshold.push(n/100);new IntersectionObserver((function(t){var i=t[t.length-1];x=i.intersectionRatio,e()}),i).observe(t)}(p.el,S);else{var w,k=null==(w=t.AV_player.config.floating)?void 0:w.scroller;l=k?(I=k,void 0===V&&(V=p.wnd.document),(0,b.Z)(I)?V.querySelector(I):I):p.wnd,_=l,c=(0,it.Z)(_)&&(0,v.Z)(_,"Window")&&_===_.window,l.addEventListener("resize",S,z()),l.addEventListener("scroll",S,z()),o&&p.wnd.document.addEventListener(y,S,z())}setTimeout(A,10)}d=h}var _,I,V;return!0},this.stop=function(){d&&(l.removeEventListener("resize",S,!0),l.removeEventListener("scroll",S,!0),d=null,"function"==typeof p.ampObserver&&p.ampObserver())},this.get=function(t,e){if(!f&&p)try{return _()}catch(t){}return{inView:!1,ratio:0,state:"UNKNOWN",diff:-1e4}},this.getHorizontalViewability=function(t,e,i){var n=c?function(t){return p.sfExt?p.sfExt.geom().win.w:t.innerWidth}(e):l.clientWidth,r=c?0:l.getBoundingClientRect().left,o=t.getBoundingClientRect(),a=o.left-r,s=o.right-r,d=s-a;return a>n?{value:0,state:"OUT_RIGHT"}:s<=0?{value:0,state:"OUT_LEFT"}:a>=0&&s<=n?{value:1,state:"IN_HVIEW"}:a<0&&s>n?{value:n/d,state:"LR_TRUNC"}:a<0&&s<=n?{value:s/d,state:"L_TRUNC"}:a>=0&&s>n?{value:(n-a)/d,state:"R_TRUNC"}:{value:0,state:"OUT"}},this.getVerticalViewability=function(t,e,i){var n=c?function(t){return p.sfExt?p.sfExt.geom().win.h:t.innerHeight}(e):l.clientHeight,r=c?0:l.getBoundingClientRect().top,o=t.getBoundingClientRect(),a=o.top-r,s=o.bottom-r,d=s-a;return a>n?{value:0,state:"OUT_BOTTOM",diff:a-n}:s<=0?{value:0,state:"OUT_TOP",diff:s}:a>=0&&s<=n?{value:1,state:"IN_VVIEW",diff:0}:a<0&&s>n?{value:n/d,state:"BT_TRUNC",diff:0}:a<0&&s<=n?{value:s/d,state:"T_TRUNC",diff:0}:a>=0&&s>n?{value:(n-a)/d,state:"B_TRUNC",diff:0}:{value:0,state:"OUT",diff:-1e4}},this.getVieabilityInfo=function(t,e){var i=function(t,e){var i=t.getBoundingClientRect();if(p.sfExt){var n=p.sfExt.geom();if(n&&n.par&&n.self)return{top:1*n.self.t+1*i.top+1*e.scrollY-1*n.par.t,bottom:1*n.self.t+1*i.bottom+1*e.scrollY-1*n.par.t,left:1*n.self.l+1*i.left+1*e.scrollX-1*n.par.l,right:1*n.self.l+1*i.right+1*e.scrollX-1*n.par.l}}return i}(t,e);return{vertical:h.getVerticalViewability(t,e,i),horizontal:h.getHorizontalViewability(t,e,i)}}};e.setViewability=function(t){e.viewability&&e.viewability.setViewability(t)},e.getViewability=function(n){if(this.lastViewabilityCheck&&Date.now()-this.lastViewabilityCheck<100)return this.lastViewability;if(n||(n=t.AV_player.config.slot),function(t,n,r){e.viewability||(e.viewability=new i(e.getTopWnd(),Ot.F.sf,e.ifrvi,Ot.F.vitab,e.isamp,e.logLevel>10),e.viewability.start(t,n,r))}(n,(function(t,i,n,r){"function"==typeof pl.onContentViewChanged&&pl.onContentViewChanged(t),t&&"function"==typeof pl.jsOnViewFunc&&pl.jsOnViewFunc(),e.eventsManager.dispatch(e.ViewabilityChanged,{inView:t,ratio:i,state:n})})),this.lastViewability=this.viewability.get(),this.lastViewability){var r=Math.floor(100*this.lastViewability.ratio);"UNKNOWN"==this.lastViewability.state&&(r=-1),Ot.F.vitab&&Ot.F.topDoc&&"hidden"===Ot.F.topDoc.visibilityState&&(r=0),this.lastViewability.perc=r}return this.lastViewabilityCheck=Date.now(),this.lastViewability},e.getViewabilityDist=function(t){var e=-1e4;try{var i=this.getViewability(t);i&&(e=i.diff)}catch(t){}return e},e.getViewabilityPerc=function(t){var e=-1;try{var i=this.getViewability(t);i&&(e=i.perc)}catch(t){}return e},e.checkViewabilityRule=function(t,e){try{var i=this.getViewability();if(e>0&&i.diff>=0&&e>=i.diff&&"T_TRUNC"!==i.state||t<=i.perc)return!0}catch(t){}return!1},e.reqOnView=!1,e.startAdOnView=!1,e.checkViewabilityRules=function(t,i,n,r){function o(){try{var a=e.getViewability();if(i>0&&a.diff>=0&&i>=a.diff&&"T_TRUNC"!==a.state||t<=a.perc)return e[r]&&(e[r]=!1,e.off(o,e.ViewabilityInfoChanged),n()),!0}catch(t){}return!1}return!!o()||(n&&!e[r]&&(e.on(o,e.ViewabilityInfoChanged),e[r]=!0),!1)};var n=!1;e.checkTabInView=function(t){function i(){try{if(e.viewability||e.getViewability(),e.viewability.getDocVisibility())return n&&(n=!1,e.off(i,e.ViewabilityInfoChanged),t()),!0}catch(t){}return!1}return!!i()||(t&&!n&&(e.on(i,e.ViewabilityInfoChanged),n=!0),!1)},e.isTabInView=function(){return e.viewability.getDocVisibility()},e.adPosition=-1,e.getAdPosition=function(t,e){if(this.adPosition>-1)return this.adPosition;this.adPosition=0;try{if(t){var i=t.ownerDocument;if(i&&(i.defaultView||i.parentWindow)){i.defaultView||i.parentWindow;var n=this.getTopWnd();if(top===n&&(top!==parent&&(this.getTopWnd(),t=Ot.F.frameElement),t)){var r=t.getBoundingClientRect(),o=top.scrollY+r.top+e/2;o>=0&&o<=top.innerHeight?this.adPosition=1:this.adPosition=3}}}}catch(t){}return this.adPosition},e.flashInstalled=function(){if(void 0===this.isFlashInstalled)try{this.isFlashInstalled=1==(void 0!==navigator.plugins&&"object"==typeof navigator.plugins["Shockwave Flash"]||t.ActiveXObject&&!1!==new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(t){this.isFlashInstalled=!1}return this.isFlashInstalled},e.createCORSRequest=ct,e.request=qt,e.isAutoSound=Rt,e.vcmgr={init:function(t){t.av_evts||(t.av_evts=[],t.av_evtscnt=1,t.av_orig_addEventListener=t.addEventListener,t.av_orig_removeEventListener=t.removeEventListener),t.addEventListener=function(t,e,i){return"function"==typeof e&&(e.av_evtid=this.av_evtscnt++,this.av_evts.push({evt:t,func:e,opt:i})),this.av_orig_addEventListener.apply(this,arguments)},t.removeEventListener=function(t,e,i){if("function"==typeof e&&e.av_evtid)for(var n=0;n<this.av_evts.length;n++)if(e.av_evtid==this.av_evts[n].func.av_evtid){this.av_evts.splice(n,1);break}return this.av_orig_removeEventListener.apply(this,arguments)}},clean:function(t){if(t&&t.av_evts){for(var e=0;e<t.av_evts.length;e++)try{t.av_orig_removeEventListener.call(t,t.av_evts[e].evt,t.av_evts[e].func,t.av_evts[e].opt)}catch(t){}t.av_evts.length=0,t.autoplay=!1}},reset:function(t){t&&t.av_evts&&(this.clean(t),t.av_evts=null,t.av_evtscnt=0,t.av_orig_addEventListener&&(t.addEventListener=t.av_orig_addEventListener,t.av_orig_addEventListener=null),t.av_orig_removeEventListener&&(t.removeEventListener=t.av_orig_removeEventListener,t.av_orig_removeEventListener=null))}},e.getTopWnd=Ot.Z,e.initScrollIntoViewHandler=function(t,e){function i(t,e){t&&e&&(t.Element.prototype.av_OrigScrollIntoView||(t.Element.prototype.av_OrigScrollIntoView=t.Element.prototype.scrollIntoView,t.Element.prototype.scrollIntoView=function(){for(var t=this;t&&t.parentNode&&t!==t.parentNode;){if(t===e)return;t=t.parentNode}return this.av_OrigScrollIntoView.apply(this,arguments)}))}if(!t.AV_handleScrollIntoView)try{var n=document.createElement("script");n.innerText=i.toString(),n.innerText=n.innerText.replace(/(\r\n|\n|\r)/gm,"");var r="av_sciv_hndlr"+Date.now();n.innerText=n.innerText.replace("function "+i.name,"function "+r),t.document.body.appendChild(n),t[r](t,e)}catch(t){}},e._consent={gdpr:{consentData:"",gdprApplies:!1,hasGlobalScope:!1,success:!1},usp:"",gpp:{}},e.setConsent=function(i,n,r){if((0,b.Z)(i)&&i.length>1&&(this._consentReq=!0,this.consentSet=!0,void 0===n&&(n=!0),void 0===r&&(r=!0),e._consent.gdpr={consentData:i,gdprApplies:n,hasGlobalScope:r,success:!0,tcfVersion:2},m(e._consent.gdprCallbackFunc)&&e._consent.gdprCallbackFunc(e._consent.gdpr),!t.__tcfapi)){try{if(top.__tcfapi)return void(t.__tcfapi=top.__tcfapi)}catch(t){}try{var o=tt(i);null!=o&&o.tcString&&(o.purpose&&(e._consent.gdpr.purpose=o.purpose),o.addtlConsent&&(e._consent.gdpr.addtlConsent=o.addtlConsent),o.vendor&&(e._consent.gdpr.vendor=o.vendor),o.gdprApplies=!0,o.success=!0,o.eventStatus="tcloaded",t.__tcfapi=function(t,e,i){if(m(i)){if("addEventListener"===t&&i(o,!0),"ping"===t)i({gdprApplies:!0,cmpLoaded:!0,cmpStatus:"loaded",displayStatus:"hidden",apiVersion:"2.2",cmpVersion:o.cmpVersion,cmpId:o.cmpId,gvlVersion:o.gvlVersion||1,tcfPolicyVersion:o.tcfPolicyVersion||1});"removeEventListener"===t&&i(!0)}})}catch(t){}}},e.setCCPA=function(t){"string"==typeof t&&4===t.length&&t.startsWith("1")&&!t.endsWith("---")&&(this._ccpaReq=!0,this.uspSet=!0,e._consent.usp=t,"function"==typeof e._consent.uspCallbackFunc&&e._consent.uspCallbackFunc(e._consent.usp))},e.setGpp=function(t,i){if((0,b.Z)(t)&&"D"===t[0]&&t.indexOf("~")>0&&(0,b.Z)(i)){var n;try{n=i.split(",").map((function(t){return 1*t}))}catch(t){n=[]}e._consent.gpp={gppString:t,applicableSections:n};var r=(0,Ot.Z)(),o=!r.__gpp&&!r.frames.__gppLocator;"function"==typeof e._consent.gppCallbackFunc&&e._consent.gppCallbackFunc(e._consent.gpp,o)}},e.scanConsentFuncs=function(){if(!this.consentScan){var e,i,n,r,o,a,s,l,c,d,u,p;try{for(var f=t,h=20;h-- >0;){try{if("function"==typeof f.__tcfapi?(t.__tcfapi=i=f.__tcfapi,e=f,n=2,l=!0):"function"==typeof f.__cmp&&(i=f.__cmp,e=f,n=1,l=!0),"function"==typeof f.__uspapi&&(r=f.__uspapi,o=f,c=!0),m(f.__gpp))d=f.__gpp,u=f,p=!0;else try{f.frames.__gppLocator&&(u=f,p=!0)}catch(t){}}catch(t){}try{f.frames.__tcfapiLocator&&(e=f.frames.__tcfapiLocator,n=2,l=!0)}catch(t){}try{2!=n&&f.frames.__cmpLocator&&(e=f,n=1,l=!0)}catch(t){}try{f.frames.__uspapiLocator&&(o=f,c=!0)}catch(t){}try{f&&f.$sf&&f.$sf.ext&&f.$sf.ext.cmp&&!a&&(a=f.$sf,l=!0)}catch(t){}try{f&&f.$sf&&f.$sf.ext&&f.$sf.ext.uspapi&&!s&&(s=f.$sf,c=!0)}catch(t){}if(f===top)break;f=f.parent}}catch(t){}this.consentScan={cmpFrame:e,cmpFunc:i,cmpV:n,uspFunc:r,uspFrame:o,cmpSF:a,uspSF:s,cmpFound:l,uspFound:c,gppFunc:d,gppFrame:u,gppFound:p}}return this.consentScan},e.getCurrentConsent=function(){return this._consent};var r=!1;function o(t,e,i){return!(!e||t.consentScan.cmpFound||t.consentSet)||!(!i||t.consentScan.uspFound||t.uspSet)}e.checkConsentRetry=function(t,i,n){if(!r&&(r=!0,o(this,t,i))){var a,s=this,l=0;a=setInterval((function(){if(a>0){if((++l>40||!o(s,t,i))&&(clearInterval(a),a=0),t&&0==a&&o(s,t,i)&&n){var r=n;n=null,r()}a>0&&(t&&(s._consentReq=!1),i&&(s._ccpaReq=!1),s.consentScan=null,e.getConsent())}}),250)}},e.getConsent=function(e,i,n){var r=this;function o(t){var e=!1;t&&t.consentData&&"string"==typeof t.consentData&&t.consentData.length>1&&(e=r._consent.gdpr.consentData!==t.consentData,r._consent.gdpr.consentData=t.consentData,r._consent.gdpr.gdprApplies=t.gdprApplies,r._consent.gdpr.hasGlobalScope=t.hasGlobalScope,r._consent.gdpr.purpose=t.purpose,r._consent.gdpr.addtlConsent=t.addtlConsent,t.vendorConsents&&(r._consent.gdpr.av=t.vendorConsents[780]?1:0),r._consent.gdpr.success=!0),r._consent.gdprCallbackFunc&&e&&r._consent.gdprCallbackFunc(r._consent.gdpr)}function a(t,e){e&&"object"==typeof t&&"string"==typeof t.tcString&&"boolean"==typeof t.gdprApplies&&["useractioncomplete","tcloaded"].indexOf(t.eventStatus)>-1&&o({consentData:t.tcString,gdprApplies:t.gdprApplies,vendorConsents:t.vendor&&t.vendor.consents,purpose:t.purpose,addtlConsent:t.addtlConsent,success:t.success})}function s(t,e){e&&t&&"string"==typeof t.uspString&&4===t.uspString.length&&t.uspString.startsWith("1")&&(r._consent.usp=t.uspString.toUpperCase(),r._consent.uspCallbackFunc&&(r._consent.uspCallbackFunc(r._consent.usp),r._consent.uspCallbackFunc=null))}function l(t,e){var i;e&&(0,b.Z)(null==t||null==(i=t.pingData)?void 0:i.gppString)&&(r._consent.gpp=t,t.gppString=t.gppString||t.pingData.gppString,t.applicableSections=t.applicableSections||t.pingData.applicableSections,r._consent.gppCallbackFunc&&(r._consent.gppCallbackFunc(r._consent.gpp),r._consent.gppCallbackFunc=null))}e&&(r._consent.gdprCallbackFunc=e),i&&(r._consent.uspCallbackFunc=i),n&&(r._consent.gppCallbackFunc=n);var c={};if(this._consentReq&&this._ccpaReq||(c=this.scanConsentFuncs(),this._consent.gdpr.tcfVersion=c.cmpV),!this._consentReq){var d,u;this._consentReq=!0;var p=null;if(c.cmpV&&(2==c.cmpV?(p=2,d=a,u="addEventListener"):(d=o,u="getConsentData")),c.cmpFunc)c.cmpFunc(u,p,d);else if(c.cmpSF)try{c.cmpSF.ext.register(r.width,r.height,(function(t,e){"cmpReturn"===t&&e&&e.vendorConsentData&&o(e.vendorConsentData)})),c.cmpSF.ext.cmp("getConsentData")}catch(t){}else if(c.cmpFrame)try{var f,h,v=Math.random()+"";2==c.cmpV?(f="__tcfapi",h=a):(f="__cmp",h=o);var m=f+"Call",g=f+"Return",y={};y[m]={command:u,callId:v},2==c.cmpV&&(y[m].version=2),t.addEventListener("message",w=function(e){if(e){var i="string"==typeof e.data&&e.data.indexOf("Return")>-1?JSON.parse(e.data):e.data;if(i&&i[g]&&i[g].callId===v){var n=i[g];n&&n.returnValue&&n.success&&(t.removeEventListener("message",w,!1),h(n.returnValue,n.success))}}},!1),top.postMessage(y,"*"),c.cmpFrame.postMessage(y,"*")}catch(t){}else{var A=this.getTopWnd();A&&A.context&&A.context.initialConsentValue&&A.context.initialConsentMetadata&&A.context.initialConsentMetadata.gdprApplies&&(this._consent.gdpr.tcfVersion=2,o({consentData:A.context.initialConsentValue,gdprApplies:!0,success:!0}))}}if(!this._ccpaReq)if(this._ccpaReq=!0,c.uspFunc)try{c.uspFunc("getUSPData",1,s)}catch(t){}else if(c.uspSF)try{c.uspSF.ext.register(r.width,r.height,(function(t,e){"__uspapiReturn"===t&&e&&e.vendorUSPData&&s(e.vendorUSPData,!0)})),c.uspSF.ext.uspapi("getUSPData")}catch(t){}else if(c.uspFrame)try{var w,k=Math.random()+"",x={__uspapiCall:{command:"getUSPData",parameter:null,callId:k}};t.addEventListener("message",w=function(e){if(e){var i="string"==typeof e.data&&e.data.indexOf("uspapiReturn")>-1?JSON.parse(e.data):e.data;if(i&&i.__uspapiReturn&&i.__uspapiReturn.callId===k){t.removeEventListener("message",w,!1);var n=i.__uspapiReturn;n&&n.returnValue&&s(n.returnValue,!0)}}},!1),c.uspFrame.postMessage(x,"*")}catch(t){}if(!this._gppReq)if(this._gppReq=!0,c.gppFunc)try{c.gppFunc("addEventListener",l)}catch(t){}else if(c.gppFrame)try{var _,S={__gppCall:{command:"addEventListener",parameter:null,callId:Math.random()+""}};t.addEventListener("message",_=function(e){if(e){var i=(0,b.Z)(e.data)&&e.data.indexOf("__gppReturn")>-1?JSON.parse(e.data):e.data;if(i&&i.__gppReturn&&i.__gppReturn.callId===k){t.removeEventListener("message",_,!1);var n=i.__gppReturn;n&&n.returnValue&&l(n.returnValue,!0)}}},!1),c.gppFrame.postMessage(S,"*")}catch(t){}return this._consent},e.ampStubFix=function(t){if(this.isamp)try{t.setTimeout=parent.setTimeout,t.clearTimeout=parent.clearTimeout,t.setInterval=parent.setInterval,t.clearInterval=parent.clearInterval}catch(t){}},e.firePixel=function(e,i,n,r,o,a){try{if(2==i||3==i){var s=2==i?"script":"iframe",l=document.createElement(s);l.src=n,e||(e=document.body),e&&e.appendChild(l)}else{(new((r&&o?this.getTopWnd():t).Image)).src=a?a(n):n}}catch(t){}};var a,s=0,l={};function c(t){return"av_"+t+"_data"}e.getDateTime=function(){function t(t){return t<10?"0":""}var e=new Date;if(e){if(e.getTime()-s<3e3)return l;s=e.getTime();var i=e.getUTCFullYear(),n=e.getUTCMonth()+1,r=e.getUTCDate(),o=e.getUTCHours(),a=e.getUTCMinutes(),c=e.getUTCSeconds();n=t(n)+n,r=t(r)+r,o=t(o)+o,a=t(a)+a,c=t(c)+c,l={date:i+"-"+n+"-"+r,time:o+":"+a+":"+c}}return l},e.loadScriptToIframe=function(t,i,n,r,o,a,s){function l(){pl.jsOnViewFunc=null,function(t,i,n,r,o,a){var s=i,l=n,c=r,d="#000",u="script",p=!1,f=document.createElement("iframe"),h=f;function v(t,e){var i=t.contentWindow.document,n=p?e:"<body style='margin:0;padding:0;'>"+e+"</body>";"function"==typeof o&&(t.contentWindow.avpassback=o),t.contentWindow&&a&&(t.contentWindow.avconfig=a),i.open(),i.write(n),i.close()}if(f.id="ani_passback",f.setAttribute("scrolling","no"),"object"==typeof i?(u=i.type||u,s=i.url,l=i.width?i.width+"px":"100%",c=i.height?i.height+"px":"100%",d=i.color||i.background||d,f.style.cssText="height:"+c+";width:"+l+";overflow:hidden;margin:0;padding:0;position:absolute;top:50%;left:50%;scrolling:no;frame-border:0;border-style:none;transform:translate(-50%,-50%);ms-transform:translate(-50%,-50%);",(h=document.createElement("div")).style.cssText="height:100%;width:100%;position:relative;display:block;",h.appendChild(f),p=i.fullHtml||!1):f.style.cssText="width:playerWidthpx;height:"+r+"px;overflow:hidden;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px",t.innerHTML="",t.style.background=d,t.appendChild(h),"script"===u){var m=document.createElement("script");m.type="text/javascript",m.src=s,f.appendChild(m)}else if("html"===u){var g=e.createCORSRequest("GET",s,!1);g.onload=function(){v(f,g.responseText)},g.send()}else{try{s=decodeURIComponent(s)}catch(t){}v(f,s)}}(t,i,n,r,o,s)}a&&e.getViewabilityPerc()<(i.playOnViewPerc||50)?pl.jsOnViewFunc=l:l()},e.getABT=function(t){if(t&&t.macros)return t.macros.AV_ABT},e.getStorage=function(t,e,i,n){var r=c(t),o=localStorage.getItem(r),a=!1,s=!1,l="";if(o){var d=JSON.parse(o);if(d&&1==d.v){d.t;if(l=d.d){i||(i=365);var u=d.t+24*i*60*60*1e3;if(Date.now()>u)localStorage.removeItem(r),l="",a=!0;else if(n){var p=d.t+1e3*n;Date.now()>p&&(s=!0)}}}}return{data:l,expired:a,refresh:s}},e.setStorage=function(t,e){var i=c(t),n={v:1,d:e,t:Date.now()},r=JSON.stringify(n);localStorage.setItem(i,r)},e.checkCookies=function(){return void 0!==a||(void 0!==navigator.cookieEnabled?a=navigator.cookieEnabled:(document.cookie="avtestcookie",a=-1!=document.cookie.indexOf("avtestcookie"))),a},e.getDnt=function(){return 1*("1"==t.doNotTrack||"yes"==navigator.doNotTrack||"1"==navigator.doNotTrack||"1"==navigator.msDoNotTrack)},e.isIframeInIframe=function(e){e=e||t;try{return e.parent&&e.parent.parent&&e.parent!==e.parent.parent}catch(t){return!1}},e.sendGA=function(t){try{if(!this.gatest){this.gatest=!0;try{var i=e.getTopWnd();this.gafunc=cnf.gafunc||(cnf.gafuncname?i[cnf.gafuncname]:null)||i.__gaTracker||i.ga}catch(t){}}this.gafunc&&t&&4==t.t&&t.d&&this.gafunc.getAll().forEach((function(e){e.send({hitType:t.d.eventHit,eventCategory:t.d.eventCategory,eventAction:t.d.eventAction,eventLabel:t.d.eventLabel,eventValue:isNaN(t.d.eventValue)?void 0:t.d.eventValue,location:(0,et.X)()})}))}catch(t){}},e.getPriceGranularity=at,e.getPriceGranularityFixed=st,e.checkNativeVideo=function(t){var e=document.createElement("video");e.src="data:audio/mpeg;base64,/+MYxAAAAANIAUAAAASEEB/jwOFM/0MM/90b/+RhST//w4NFwOjf///PZu////9lns5GFDv//l9GlUIEEIAAAgIg8Ir/JGq3/+MYxDsLIj5QMYcoAP0dv9HIjUcH//yYSg+CIbkGP//8w0bLVjUP///3Z0x5QCAv/yLjwtGKTEFNRTMuOTeqqqqqqqqqqqqq/+MYxEkNmdJkUYc4AKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",e.setAttribute("playsinline",!0),e.setAttribute("webkit-playsinline",!0),e.style.display="none",e.muted=!0;var i=e.play(),n=!1;i?(i.then((function(){n||t("ok"),n=!0})).catch((function(e){n||t("error"),n=!0})),setTimeout((function(){n||t("maybe"),n=!0}),1e4)):t("maybe")}}(window);var Kt=r(3444);function Jt(t){var e,i;return void 0===t&&(t=window),(null==(e=t.visualViewport)?void 0:e.height)||(null==(i=t.document.documentElement)?void 0:i.clientHeight)||t.innerHeight}function Xt(t){var e,i;return void 0===t&&(t=window),(null==(e=t.visualViewport)?void 0:e.width)||(null==(i=t.document.documentElement)?void 0:i.clientWidth)||t.innerWidth}window.aniviewCSS=Kt.Z,window.aniviewGetGui=function(t){var e,i,n,r,o,a="",s=t.adlabel,l=t.closebuttonstyle,c=!(!t.closebutton&&!((null==(e=t.sticky)?void 0:e.size)>0?t.sticky:(null==(i=t.floating)?void 0:i.size)>0?t.floating:{}).closeButton||!l||!l.outside);t.caption&&(a+='<div id="av-caption">',c&&(n='<div id="av-close-btn-overlay" class="av-pos-'+l.position+'"><div id="av-close-btn"></div></div>',r="before-label"===l.position,o="after-label"===l.position),!c||!r&&o||(a+=n),s&&s.text&&(a+='<span id="av-label">'+s.text+"</span>"),c&&o&&(a+=n),a+="</div>");return a+='<div id="av-container" class="av-responsive"><div id="av-inner"><div id="slot">',t.preloader&&("Image"==t.preloader.type&&""!=t.preloader.link||"js"==t.preloader.type)?a+='<div id="imgpreloader"><div id="preloader"></div>':a+='<div id="imgpreloader"></div><div id="preloader"><svg class="avicon" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" xml:space="preserve"><g><path d="M23.3,14.9c0-0.4-0.3-0.9-0.8-1.2l-10-6.4c-1.1-0.7-2-0.1-2,1.3v7.5C15.8,13.7,23.1,14.9,23.3,14.9z M23.3,15 c-7.9,0.6-11.4,3.5-12.8,5.7v0.8c0,1.4,0.9,2,2,1.3l10-6.4C23.1,16,23.4,15.5,23.3,15z"/></g></svg><svg class="avcircle" width="70" height="70" version="1.1" xmlns="http://www.w3.org/2000/svg"><circle cx="35" cy="35" r="32"></circle></svg><svg class="avcircle active" width="70" height="70" version="1.1" xmlns="http://www.w3.org/2000/svg"><circle cx="35" cy="35" r="32"></circle></svg>',a+='</div><div id="videoslot"></div>',"content"==t.preloader.type&&(a+='<video id="AVcontent" webkit-playsinline playsinline muted style="width: 100%;height:100%;background-color:black;"></video>'),a=a+'</div><div id="gui"><div id="timeline"><div id="timeline-buffer"></div><div id="timeline-moveto"></div><div id="timeline-progress"></div></div><div id="buttons"><div id="left"><div id="play-pause" class="pause"></div><div id="phone"><div class="avicon"></div><div id="phone-num"></div></div></div><div id="right"><div id="fullscreen" class="off"></div><div id="share"></div><div id="sound"><div class="on"></div></div></div></div><div id="big-play"></div><div id="timer"></div>'+(c?"":'<div id="close-btn"></div>')+'<div id="skip-btn">Skip</div><div id="aniview-credit">Ads by <span></span></div><div id="ad-icon"></div></div></div></div>'},window.LinearAd=function(){var t,e=0,i=0,n=new B;this.handshakeVersion=function(t){return"2.0"},this.initAd=function(r,o,a,s,l,c){!function(r,o,a,s,l,c){var d={width:r,height:o,viewMode:a,desiredBitrate:s,creativeData:l,environmentVars:c};e=r,i=o,function(){var e=function(t,e,i){"2"!=i&&(e?n.dispatch("AdError","No Ad"):n.dispatch("AdError",t))};t=new aniviewPlayer(d,e);var i=!1;t.onAdLoaded=function(){n.dispatch("AdLoaded")},t.onAdStarted=function(){i||n.dispatch("AdStarted"),i=!0},t.onAdError=e,t.onAdImpression=function(e,i){n.dispatch("AdImpression",e,i),t.onAdStarted()},t.onAdVideoComplete=function(t){n.dispatch("AdVideoComplete",t)},t.onAdSkipped=function(t){n.dispatch("AdSkipped",t)},t.onAdSkippableStateChange=function(t){n.dispatch("AdSkippableStateChange",t)},t.onAdStopped=function(){n.dispatch("AdStopped")},t.onAdClosed=function(t){n.dispatch("AdClosed",t)},t.onAdVideoStart=function(){n.dispatch("AdVideoStart")},t.onAdVideoFirstQuartile=function(t){n.dispatch("AdVideoFirstQuartile",t)},t.onAdVideoMidpoint=function(t){n.dispatch("AdVideoMidpoint",t)},t.onAdVideoThirdQuartile=function(t){n.dispatch("AdVideoThirdQuartile",t)},t.onAdClickThru=function(t,e,i){n.dispatch("AdClickThru",t,e,i)},t.onAdVolumeChange=function(t){n.dispatch("AdVolumeChange",t)},t.onAdPaused=function(t){n.dispatch("AdPaused",t)},t.onAdPlaying=function(t){n.dispatch("AdPlaying",t)},t.onAdDurationChange=function(){n.dispatch("AdDurationChange")},t.onallAdsCompleted=function(){n.dispatch("allAdsCompleted")},t.onContentImpression=function(t){n.dispatch("ContentImpression",t)},t.onContentComplete=function(){n.dispatch("ContentComplete")},t.onContentPaused=function(){n.dispatch("ContentPaused")},t.onContentPlaying=function(){n.dispatch("ContentPlaying")},t.onContentClick=function(t){n.dispatch("ContentClick",t)},t.onAdEvent=function(t,e,i){n.dispatch("AdEvent",t,e,i)},t.onInventory=function(t){n.dispatch("Inventory",t)},t.onInventoryRequest=function(t){n.dispatch("InventoryRequest",t)},t.onWaterfallEnd=function(t){n.dispatch("WaterfallEnd",t)},t.onWaterfallStart=function(t){n.dispatch("WaterfallStart",t)},t.onFullScreenRequest=function(t){n.dispatch("FullScreenRequest",t)},t.dispatchEvent=function(t,e,i,r){n.dispatch(t,e,i,r)},t.onAdReady=function(t,e,i){n.dispatch("AdReady",t,e,i)},t.onCompanionView=function(t,e,i){n.dispatch("CompanionView",t,e,i)},t.onAniviewPassbackResize=function(t){n.dispatch("AniviewPassbackResize",t)},t.onBeforeAdRequest=function(t){n.dispatch("BeforeAdRequest",t)}}()}(r,o,a,s,l,c)},this.startAd=function(e){e?t.startAd():setTimeout((function(){t.startAd()}),50)},this.setRequestState=function(e,i){t.setRequestState(e,i)},this.setWaterfallState=function(e,i,n){t.setWaterfallState(e,i,n)},this.setFullscreenState=function(e){t&&t.setFullscreenState(e)},this.setViewability=function(e){t.setViewability(e)},this.getAdLinear=function(){return!0},this.stopAd=function(e,i){t.stopAd()},this.getAdVolume=function(){return t.getAdVolume()},this.setAdVolume=function(e){t.setAdVolume(e)},this.resizeAd=function(n,r,o){t&&(t.resizeAd(n,r,o),e=n,i=r)},this.pauseAd=function(){t.pauseAd(!0)},this.resumeAd=function(){t.resumeAd()},this.expandAd=function(){},this.getAdExpanded=function(t){return!1},this.getAdSkippableState=function(t){return!1},this.collapseAd=function(){},this.skipAd=function(){t.skipAd()},this.getAdWidth=function(){return e},this.getAdHeight=function(){return i},this.getSkippableRemainingTime=function(){return-1},this.getAdRemainingTime=function(){return t.getAdRemainingTime()},this.getAdDuration=function(){return t.getAdDuration()},this.getAdCompanions=function(){return t.getAdCompanions()},this.getIcons=function(){return""},this.getAdIcons=function(){return""},this.seekAd=function(e){t.seekAd(e)},this.getContentPaused=function(){if(t)return t.getContentPaused()},this.getContentCurrentTime=function(){if(t)return t.getContentCurrentTime()},this.pauseContent=function(){if(t)return t.pauseContent()},this.resumeContent=function(){if(t)return t.resumeContent()},this.setContentVolume=function(e){if(t)return t.setContentVolume(e)},this.setFloor=function(e){if(t)return t.setFloor(e)},this.setAdConfig=function(e){if(t)return t.setAdConfig(e)},this.subscribe=function(t,e,i){n.subscribe(t,e,i)},this.unsubscribe=function(t,e){n.unsubscribe(t,e)},this.getReadyAds=function(){if(t)return t.getReadyAds()},Utils.defineProperty(this,"adRemainingTime",this.getAdRemainingTime,null),Utils.defineProperty(this,"adDuration",this.getAdDuration,null),Utils.defineProperty(this,"adVolume",this.getAdVolume,this.setAdVolume),Utils.defineProperty(this,"adSkippableState",this.getAdSkippableState,null),Utils.defineProperty(this,"adLinear",this.getAdLinear,null),Utils.defineProperty(this,"adExpanded",this.getAdExpanded,null),Utils.defineProperty(this,"adCompanions",this.getAdCompanions,null),Utils.defineProperty(this,"adIcons",this.getAdIcons,null),Utils.defineProperty(this,"adWidth",this.getAdWidth,null),Utils.defineProperty(this,"adHeight",this.getAdHeight,null)},window.getVPAIDAd=function(){return new LinearAd};window.aniviewCSS=Kt.Z,window.aniviewGetGui=function(t){var e,i,n,r,o,a="",s=t.adlabel,l=t.closebuttonstyle,c=!(!t.closebutton&&!((null==(e=t.sticky)?void 0:e.size)>0?t.sticky:(null==(i=t.floating)?void 0:i.size)>0?t.floating:{}).closeButton||!l||!l.outside);t.caption&&(a+='<div id="av-caption">',c&&(n='<div id="av-close-btn-overlay" class="av-pos-'+l.position+'"><div id="av-close-btn"></div></div>',r="before-label"===l.position,o="after-label"===l.position),!c||!r&&o||(a+=n),s&&s.text&&(a+='<span id="av-label">'+s.text+"</span>"),c&&o&&(a+=n),a+="</div>");return a+='<div id="av-container" class="av-responsive"><div id="av-inner"><div id="slot">',t.preloader&&("Image"==t.preloader.type&&""!=t.preloader.link||"js"==t.preloader.type)?a+='<div id="imgpreloader"><div id="preloader"></div>':a+='<div id="imgpreloader"></div><div id="preloader"><svg class="avicon" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" xml:space="preserve"><g><path d="M23.3,14.9c0-0.4-0.3-0.9-0.8-1.2l-10-6.4c-1.1-0.7-2-0.1-2,1.3v7.5C15.8,13.7,23.1,14.9,23.3,14.9z M23.3,15 c-7.9,0.6-11.4,3.5-12.8,5.7v0.8c0,1.4,0.9,2,2,1.3l10-6.4C23.1,16,23.4,15.5,23.3,15z"/></g></svg><svg class="avcircle" width="70" height="70" version="1.1" xmlns="http://www.w3.org/2000/svg"><circle cx="35" cy="35" r="32"></circle></svg><svg class="avcircle active" width="70" height="70" version="1.1" xmlns="http://www.w3.org/2000/svg"><circle cx="35" cy="35" r="32"></circle></svg>',a+='</div><div id="videoslot"></div>',"content"==t.preloader.type&&(a+='<video id="AVcontent" webkit-playsinline playsinline muted style="width: 100%;height:100%;background-color:black;"></video>'),a=a+'</div><div id="gui"><div id="timeline"><div id="timeline-buffer"></div><div id="timeline-moveto"></div><div id="timeline-progress"></div></div><div id="buttons"><div id="left"><div id="play-pause" class="pause"></div><div id="phone"><div class="avicon"></div><div id="phone-num"></div></div></div><div id="right"><div id="fullscreen" class="off"></div><div id="share"></div><div id="sound"><div class="on"></div></div></div></div><div id="big-play"></div><div id="timer"></div>'+(c?"":'<div id="close-btn"></div>')+'<div id="skip-btn">Skip</div><div id="aniview-credit">Ads by <span></span></div><div id="ad-icon"></div></div></div></div>'};var Qt=function(t){return t[t.Instream=1]="Instream",t[t.InBanner=2]="InBanner",t[t.InArticle=3]="InArticle",t[t.InFeed=4]="InFeed",t[t.InterstitialFloating=5]="InterstitialFloating",t}({}),Yt=function(t){return t[t.Instream=1]="Instream",t[t.AccompanyingContent=2]="AccompanyingContent",t[t.Interstitial=3]="Interstitial",t[t.NoContent=4]="NoContent",t}({}),$t=function(t){return t.Instream="instream",t.Outstream="outstream",t.Adpod="adpod",t}({}),te=function(t){return t[t.PageLoadSoundOn=1]="PageLoadSoundOn",t[t.PageLoadSoundOff=2]="PageLoadSoundOff",t[t.ClickSoundOn=3]="ClickSoundOn",t[t.MousOverSoundOn=4]="MousOverSoundOn",t[t.ViewportSoundOn=5]="ViewportSoundOn",t[t.ViewportSoundOff=6]="ViewportSoundOff",t}({}),ee=!1;function ie(t,e){var i,n,r=t.config;if(!r.noautoplcmt){r.AV_PLCMT&&(r.plcmt=1*r.AV_PLCMT||void 0),r.plcmt&&(r.plcmt=Number(r.plcmt)||void 0);var o,a=r.autosound||e>0&&r.syncvolume;if(r.plcmt)t.plcmt=r.plcmt;else r.contentplayer||"content"===(null==(o=r.preloader)?void 0:o.type)&&r.preloader.link?t.plcmt=a?Yt.Instream:Yt.AccompanyingContent:t.plcmt=Yt.NoContent;switch(r.mediatypes=r.mediatypes||{},r.mediatypes.video=r.mediatypes.video||{},r.videooverride=r.videooverride||{},r.videooverride.plcmt=(null==(i=r.mediatypes)||null==(i=i.video)?void 0:i.plcmt)||t.plcmt,t.plcmt){case Yt.Instream:r.videooverride.context=$t.Instream,r.videooverride.placement=Qt.Instream,r.videooverride.playbackmethod=[te.ClickSoundOn],r.imamuted=!1,r.imaautoplay=!1,ee=!0;break;case Yt.AccompanyingContent:r.videooverride.context=$t.Instream,r.videooverride.placement=Qt.InArticle,r.videooverride.playbackmethod=[r.startadonview||r.reqonview||r.playonview?te.ViewportSoundOff:te.PageLoadSoundOff],r.imamuted=void 0,r.setimaflags&&(r.imamuted=!0,r.imaautoplay=!0);break;case Yt.NoContent:r.videooverride.context=$t.Outstream,r.videooverride.placement=Qt.InArticle,r.videooverride.playbackmethod=r.videooverride.playbackmethod||[r.startadonview||r.reqonview||r.playonview||(null==(n=r.sticky)?void 0:n.size)>0?te.ViewportSoundOff:te.PageLoadSoundOff],r.setimaflags&&(r.imamuted=!0,r.imaautoplay=!0);break;case Yt.Interstitial:r.videooverride.context=$t.Outstream,r.videooverride.placement=Qt.InterstitialFloating,a?(r.videooverride.playbackmethod=r.videooverride.playbackmethod||[te.ClickSoundOn],r.imamuted=!1,r.imaautoplay=!1,ee=!0):ee&&(r.imamuted=void 0,r.setimaflags&&(r.imamuted=!0,r.imaautoplay=!0))}}}function ne(t,e){return void 0===e&&(e=1),Math.round(t*e)/e}!function(t){var e=Utils.isMobile();function i(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function n(t,e){!function(t,e){i(t,e)||(t.className+=" "+e)}(t,e)}function r(t,e){!function(t,e){if(i(t,e)){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ")}}(t,e)}var o=t.AnivewPlayerGUI=function(e){var i;if(this.config=e,this.skipConfig=e.skip,t.AV_PlayerGui=this,this.config.skipStyle=this.config.skipStyle||{},null==e)throw new Error("AnivewPlayerGUI: not found 'config'");if(null==e.container)throw new Error("AnivewPlayerGUI: not found 'config.container'");if(this.container=e.container,this.caption=e.caption,this.slotDoc=this.container.ownerDocument,this.label=this.caption&&e.adLabel?Utils.getElementById(this.caption,"av-label"):void 0,this.gui=Utils.getElementById(this.container,"gui"),this.slot=Utils.getElementById(this.container,"slot"),this.videoslot=Utils.getElementById(this.container,"videoslot"),this.preloader=Utils.getElementById(this.container,"preloader"),this.timelineProgress=Utils.getElementById(this.container,"timeline-progress"),this.timelineBuffer=Utils.getElementById(this.container,"timeline-buffer"),this.playPause=Utils.getElementById(this.container,"play-pause"),this.bigPlay=Utils.getElementById(this.container,"big-play"),this.fullscreen=Utils.getElementById(this.container,"fullscreen"),this.sound=Utils.getElementById(this.container,"sound"),this.skip=Utils.getElementById(this.container,"skip-btn"),"inside"===this.config.skipStyle.position){this.timer=this.skip,this.timerInSkip=!0,this.timer.display="none";var n=Utils.getElementById(this.container,"timer");n&&(n.style.display="none")}else this.timer=Utils.getElementById(this.container,"timer");this.config.skipText=this.config.skipText||"Skip",this.config.skipStyle.top>0&&(this.skip.style.bottom=this.config.skipStyle.top+"px"),this.config.skipStyle.bottom>0&&(this.skip.style.bottom=this.config.skipStyle.bottom+"px"),this.caption&&(e.close||e.floatingOrStickyCloseButton)&&null!=(i=e.closeStyle)&&i.outside?(this.closeOverlay=Utils.getElementById(this.caption,"av-close-btn-overlay"),this.close=Utils.getElementById(this.caption,"av-close-btn")):this.closeOverlay=this.close=Utils.getElementById(this.container,"close-btn"),this.config.disablercmenu&&this.container.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this.share=Utils.getElementById(this.container,"share"),this.phone=Utils.getElementById(this.container,"phone"),this.phoneNum=Utils.getElementById(this.container,"phone-num"),this.aniview=Utils.getElementById(this.container,"aniview-credit"),this.timeline=Utils.getElementById(this.container,"timeline"),this.timelineProgress=Utils.getElementById(this.container,"timeline-progress"),this.timelineMoveto=Utils.getElementById(this.container,"timeline-moveto"),this.timelineBuffer=Utils.getElementById(this.container,"timeline-buffer"),this.buttons=Utils.getElementById(this.container,"buttons"),this.rightControlsButtons=this.buttons.querySelector("#right"),this.leftControlButtons=this.buttons.querySelector("#left"),this.config.skipTimer>0&&(this.skipTimerInitValue=this.config.skipTimer),this.init(),this.showPreloader(this.config.showpreloader)};o.VERSION="1.0.2",o.prototype.config=null,o.prototype.lastframe=!1,o.prototype.container=null,o.prototype.player=null,o.prototype.paused=!1,o.prototype.muted=!1,o.prototype.videoslot=null,o.prototype.preloader=null,o.prototype.timelineProgress=null,o.prototype.timelineBuffer=null,o.prototype.playPause=null,o.prototype.bigPlay=null,o.prototype.fullscreen=null,o.prototype.sound=null,o.prototype.skip=null,o.prototype.close=null,o.prototype.share=null,o.prototype.phone=null,o.prototype.timer=null,o.prototype.aniview=null,o.prototype.timeline=null,o.prototype.timelineProgress=null,o.prototype.timelineBuffer=null,o.prototype.buttons=null,o.prototype.endTimer=0,o.prototype.showPreloader=function(t){var e=(t=this.config.showpreloader&&t)?"block":"none";this.preloader&&(this.preloader.style.display=e)},o.prototype.remove=function(){var t;(this.videoslot&&this.videoslot.parentNode.removeChild(this.videoslot),this.gui&&this.gui.parentNode.removeChild(this.gui),this.preloader&&this.preloader.parentNode.removeChild(this.preloader),this.slot)&&(null==(t=this.slot)||t.setAttribute("style","box-shadow: none; webkit-box-shadow: none;"))},o.prototype.isUserPaused=function(){return this.paused&&this.player&&this.player.userPaused},o.prototype.isPaused=function(){return this.paused},o.prototype.dispose=function(){for(var t in this.skipTimeoutId&&(clearInterval(this.skipTimeoutId),this.skipTimeoutId=null),this.preloaderTimeoutId&&(clearInterval(this.preloaderTimeoutId),this.preloaderTimeoutId=null),this)this.hasOwnProperty(t)&&(this[t]=null)},o.prototype.stopSkip=function(){this.config.skipTimer=0,this.config.skip=!1},o.prototype.startSkipTimer=function(t,e,i){this.config.skip=t,this.config.skipTimer=e,this.timer.textContent=e,(this.config.skip||this.config.close)&&this.checkSkipTimer(i)},o.prototype.init=function(){var t=this;this.lastUpdate=0,this.duration=0,this.remaining=0,this.container.className="",this.bigPlay.style.display="none",this.config.phone&&(this.phoneNum.textContent=this.config.phone),this.config.hideControls&&n(this.container,"hide-controls"),Utils.isMobile()||n(this.container,"av-desktop"),this.config.backgroundColor&&(this.videoslot.style.backgroundColor=this.config.backgroundColor),null==this.config.responsive&&(this.config.responsive=!0),null!=this.config.width&&null!=this.config.height&&(this.config.responsive=!1),this.config.responsive&&n(this.container,"av-responsive"),Utils.isMobile()&&Utils.isHighDensity()&&n(this.container,"two-x"),this.config.skip&&this.config.skipText&&(this.skip.textContent=this.config.skipText),this.config.lastframe&&(this.lastframe=this.config.lastframe),this.config.timelineMode?n(this.timeline,"av-"+this.config.timelineMode):n(this.timeline,"av-bottom"),this.playPause.onclick=function(){t.player&&t.player.ready&&(t.paused?t.player.userPaused=!1:t.player.userPaused=!0),t.playPauseClick(!0)},this.sound.onclick=function(){t.soundClick()},this.fullscreen.onclick=function(){t.fullscreenClick()},this.share.onclick=function(){t.shareClick()},this.phone.onclick=function(){t.phoneClick()},this.close.onclick=function(){t.closeClick()},this.skip.onclick=function(){t.skipClick()},this.aniview.onclick=function(){t.aniviewClick()},this.timeline.onclick=function(e){t.timelineClick(e)},this.timeline.onmousemove=function(e){t.timelineMouseMove(e)},this.updateAnimation(),this.initCloseButtonStyle(),this.buttons.classList.toggle("av-left","left"===this.config.adsControlPositioning)};var a=Utils.getTopWnd(),s=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||a.msRequestAnimationFrame,l=!1;o.prototype.updateAnimation=function(){var t=this;l||(l=!0,s((function(){l=!1,t.update(),!t.player&&t.config.optimizeUi||setTimeout(t.updateAnimation.bind(t),t.config.inttimeout)})))},o.prototype.timelineMouseMove=function(t){var e=this.getVideo();if(this.config.timelineChange&&e&&e.duration>0){var i=t.pageX-e.offsetLeft,n=(t.pageY,e.offsetTop,this.timeline.getBoundingClientRect()),r=(i-n.left)/n.width;r<0?r=0:r>1&&(r=1),this.setValue(this.timelineMoveto,r)}},o.prototype.timelineClick=function(t){var e=this.getVideo();if(this.config.timelineChange&&e&&e.duration>0){var i=t.pageX-e.offsetLeft,n=(t.pageY,e.offsetTop,this.timeline.getBoundingClientRect()),r=(i-n.left)/n.width;r<0?r=0:r>1&&(r=1),e.currentTime=r*e.duration}},o.prototype.getVideo=function(){var t=this.findVideo(this.videoslot);return t||(t=this.findVideo(this.slot)),t},o.prototype.findVideo=function(t){var e=null;for(var i in t.childNodes){var n=t.childNodes[i];if(e=n.duration>0&&null!=n.canPlayType?n:this.findVideo(n))break}return e},o.prototype.setPlayer=function(t,e,i){this.config.skip=this.skipConfig,null==t&&this.player&&"AVcontent"==this.player.id||(void 0===e&&(e=!0),this.player=t,this.ad=i,this.paused=!1,this.muted=e,this.skipTimerStarted=!1,this.firstRemaningTime=0,this.updateAnimation())},o.prototype.getPlayer=function(){return this.player},o.prototype.getDuration=function(){try{var t=this.player.adDuration;if(t>0)return t;if(this.firstRemaningTime>0)return this.firstRemaningTime}catch(t){}return 0},o.prototype.getCurrentTime=function(){return this.duration>=0&&this.remaining>=0?Math.max(this.duration-this.remaining,0):0},o.prototype.getRemainingTime=function(){try{var t=this.player.adRemainingTime;if(t>0)return 0==this.firstRemaningTime&&(this.firstRemaningTime=t),t}catch(t){}return 0},o.prototype.getSkipableState=function(){try{if(this.vidReady&&this.player&&this.player.ready&&!0===this.player.adSkippableState)return!0}catch(t){}return!1},o.prototype.checkSkipTimer=function(t){var e=this;this.config.skipTimer>0&&(this.skipTimerStarted=!0,this.timer.textContent=this.config.skipTimer,this.paused||this.getCurrentTime()<=0?this.skipTimeoutId=setTimeout((function(){e.checkSkipTimer(t)}),100):(this.config.skipTimer--,0==this.config.skipTimer&&(this.timerInSkip&&(this.timer.textContent=this.config.skipText),"function"==typeof t&&t()),this.skipTimeoutId=setTimeout((function(){e.checkSkipTimer(t)}),1e3)))},o.prototype.aniviewClick=function(){t.AV_player.config.logoclick&&t.open("https://www.aniview.com/?utm_source=av-player")};var c={text:"Ads by ",top:"2",right:"2",height:"24",width:"24"};function d(e,i){var n=e.text,r=e.height,o=e.width,a=e.link,s=e.top,l=void 0===s?2:s,c=e.right,d=void 0===c?2:c,u=e.clickthrough;(n||""==n)&&(i.innerHTML=n+"<span>"),i.style.top=l+"px",i.style.right=d+"px";var p=i.getElementsByTagName("SPAN")[0];r&&(p.style.height=r+"px"),o&&(p.style.width=o+"px"),p.style.margin="4 4 4 2",p.style.backgroundImage=a?"url('"+a+"')":"",u?(i.style.cursor="pointer",i.onclick=function(){t.open(u)}):i.onclick=function(){t.open("","blank")}}o.prototype.setLogo=function(){var t=cnf.slot.querySelector("#aniview-credit");if(t)if(cnf.customlogo)d(cnf.customlogo,t);else{d(c,t),t.style.display="inline-block";var e=t.getElementsByTagName("SPAN")[0];e.style.margin="4 4 4 2",e.style.backgroundRepeat="no-repeat",e.style.backgroundSize="cover"}},o.prototype.vastIcon=null,o.prototype.setAdIcon=function(e){this.vastIcon=e;var i=cnf.slot.querySelector("#ad-icon");if(!e)return i.style.display="none",void this.setLogo();var n=this.vastIcon,r=n.link,o=n.xPosition,a=n.yPosition,s=n.height,l=n.width,d=n.clickthrough,u=n.clickTrackings;if(i){i.style.display="inline",i.style.position="absolute";var p="".concat(a,"-").concat(o);if(i.style[o]="2px",i.style[a]="2px","top-right"===p)cnf.slot.querySelector("#aniview-credit").style.right="".concat(Number(c.right)+Number(l),"px");i.style.cursor="pointer",i.style.height=s+"px",i.style.width=l+"px",i.style.backgroundImage="url('"+r+"')",i.style.backgroundRepeat="no-repeat",i.style.backgroundSize="contain",d&&(i.style.cursor="pointer",i.onclick=function(){t.open(d),u.map((function(t){return(new Image).src=t}))})}},o.prototype.closeClick=function(){var e,i=t.AV_player.config,n=null==i||null==(e=i.floating)?void 0:e.closeButton,r=i.closeevent||n;try{var o,a;if(null==(o=t.AV_FlashOpen)||o.closeClicked(),n||(t.AV_player.stopAd=!0),"function"==typeof t.AV_FlashOpen.onAdClosed)null==(a=t.AV_FlashOpen)||a.onAdClosed(!r);!r&&this.player&&this.player.ready&&this.player.pauseAd()}catch(t){}r||(null!=this.container.parentNode&&this.container.parentNode.removeChild(this.container),this.caption&&null!=this.caption.parentNode&&this.caption.parentNode.removeChild(this.caption))},o.prototype.skipClick=function(){if(!(this.timerInSkip&&this.config.skipTimer>0)){this.skipTimerStarted=!1;try{this.player&&this.player.ready&&(this.player.skipping=!0,this.player.pauseAd(),this.player.skipAd()),this.skipTimerStarted=!1}catch(t){}}},o.prototype.phoneClick=function(){t.location.href="tel://"+this.config.phone},o.prototype.shareClick=function(){},o.prototype.playClick=function(){try{this.player&&this.player.ready&&(this.player.resumeAd(!0),this.paused=!1)}catch(t){}},o.prototype.pauseClick=function(){try{this.player&&this.player.ready&&(this.player.pauseAd(),this.paused=!0)}catch(t){}},o.prototype.playPauseClick=function(t){try{this.player&&this.player.ready&&(this.paused?(this.player.resumeAd(t),this.paused=!1):(this.player.pauseAd(),this.paused=!0))}catch(t){}},o.prototype.soundClick=function(){try{if(this.player&&this.player.ready){if(this.muted){this.ad&&(this.ad.sndEnabled=!0,this.ad.player&&(this.ad.player.sndEnabled=!0));var e=cnf.defaultvolume>0?Math.min(cnf.defaultvolume,1):.8;this.player.adVolume=e,this.player.volume=e,this.player.muted=!1,"function"==typeof this.player.setContentVolume&&this.player.setContentVolume(e),this.muted=!1}else t.AV_player.config.autosound=!1,this.player.adVolume=0,this.player.volume=0,"function"==typeof this.player.setContentVolume&&this.player.setContentVolume(0),this.muted=!0;ie(t.AV_player,this.muted?0:1)}}catch(t){}},o.prototype.setValue=function(t,e){e<0?e=0:e>1&&(e=1),t.style.width=100*e+"%"},o.prototype.fullscreenClick=function(){this.showCaption(this.isFullscreen()),t.AV_player.config.contentplayer?t.AV_player.thePlayer&&"function"==typeof t.AV_player.thePlayer.onFullScreenRequest&&t.AV_player.thePlayer.onFullScreenRequest(!this.isFullscreen()):!this.isFullscreen()&&t.AV_player.thePlayer&&"function"==typeof t.AV_player.thePlayer.resizeAd?t.AV_player.thePlayer.resizeAd(0,0,"fullscreen"):Utils.getFSElement(t.AV_player.slotWindow.document)&&(this.slotDoc.exitFullscreen?this.slotDoc.exitFullscreen():this.slotDoc.mozCancelFullScreen?this.slotDoc.mozCancelFullScreen():this.slotDoc.webkitExitFullscreen?this.slotDoc.webkitExitFullscreen():this.slotDoc.msExitFullscreen&&this.slotDoc.msExitFullscreen())},o.prototype.isFullscreen=function(){return!!t.AV_player.isFullScreen},o.prototype.getBuffer=function(t){return t+.1},o.prototype.initCloseButtonStyle=function(){var t=this.config.closeStyle;if(t&&t.outside){var e=this.closeOverlay.style,i=t.overlayMargin,n=1*t.left,r=1*t.right;switch(e.padding=i+"px",e.margin=-i+"px",isNaN(n)||(e.marginLeft=n-i+"px"),isNaN(r)||(e.marginRight=r-i+"px"),(0,b.Z)(t.position)&&(t.position=t.position.toLowerCase()),t.position){case"before-label":case"after-label":break;case"top-left":e.float="left";break;default:e.float="right"}}},o.prototype.controls=function(t,e){t?r(this.container,"hide-controls"):n(this.container,"hide-controls"),e&&(this.config.close=!1)},o.prototype.update=function(){var i,n,r=this.player&&(this.player.duration>0&&null!=this.player.canPlayType||"Content"==this.player.asid);this.vidReady=r||(null==(i=this.player)?void 0:i.ready);var o=0;this.vidReady&&(this.duration=this.getDuration(),this.remaining=this.getRemainingTime(),o=this.getCurrentTime());var a=this.duration,s=this.remaining;"loaded"!=this.videoslot.className&&this.getBuffer(o)>0&&(this.videoslot.className="loaded"),this.player&&this.player.userPaused&&(this.paused=!0),this.paused?(this.endTimer=0,a>1&&o>=a||this.player&&this.player.replay?this.playPause.className="replay":this.playPause.className="play"):this.vidReady&&this.player&&a>1&&s>=0&&(o>=a||this.player.replay)?(this.endTimer++,this.endTimer>100&&(this.playPause.className="replay",this.paused=!0)):this.playPause.className="pause",this.muted?this.sound.firstChild.className="off":this.sound.firstChild.className="on";var l=null==(n=this.ad)||null==(n=n.player)?void 0:n.video;if(this.isFullscreen()){if(this.fullscreen.className="on","full"!=t.AV_player.config.fsmode){var c=Utils.getTopWnd();this.container.style.position="absolute",this.container.style.left="0px",this.container.style.top="0px",this.container.style.width=Xt(c)+"px",this.container.style.height=Jt(c)+"px"}l&&(l.style.objectFit="contain")}else{this.fullscreen.className="off",this.container.style.position="",this.container.style.left="",this.container.style.top="";var d=0,u=0;this.config.responsive?(d=this.container.clientWidth,u=this.container.clientHeight):(this.config.width&&(d=this.config.width),this.config.height&&(u=this.config.height));d/u>10&&(u=Math.round(d/10));var p=parseInt(d)+"px",f=parseInt(u)+"px";if(this.container.style.width=p,this.container.style.height=f,this.caption&&(this.showCaption(!0),this.caption.style.width=p),l){var h,v,m=l.videoWidth||(null==(h=this.ad)||null==(h=h.podInfo)?void 0:h.width)||0,g=l.videoHeight||(null==(v=this.ad)||null==(v=v.podInfo)?void 0:v.height)||0,y=ne(d/u,100)===ne(m/g,100),b=m>0&&g>0&&y;l.style.objectFit=b?"cover":"contain"}}this.videoslot.style.width=""==this.container.style.width?this.container.clientWidth+"px":this.container.style.width,this.videoslot.style.height=""==this.container.style.height?this.container.clientHeight+"px":this.container.style.height;var A=o,w=!1;!e&&(A>.1||this.player&&s>0)?w=!0:this.player&&"function"==typeof this.player.isAudioReady?w=this.player.isAudioReady():A>1&&(w=!0),this.fullscreen.style.display=this.config.fullscreen?"inline":"none",this.share.style.display=this.config.share?"inline":"none",this.phone.style.display=this.config.phone?"inline":"none",this.sound.style.display=this.config.sound&&w?"inline":"none",this.playPause.style.display=this.config.playPause&&this.player?"inline":"none",this.aniview.style.display=this.config.logo?"inline":"none";var k=this.config.skipTimer>0;this.config.skip&&this.getSkipableState()&&this.stopSkip(),this.config.close?this.config.closeStyle&&this.config.closeStyle.outside?(this.close.style.display="",this.closeOverlay&&(this.closeOverlay.style.display="")):this.close.style.display="inline":this.closeOverlay.style.display="none";var x=!r&&!k&&this.config.skip&&this.skipTimerStarted,_=!r&&k&&(this.config.close||this.config.skip)&&this.skipTimerInitValue!=this.config.skipTimer;this.timerInSkip&&(x=_=x||_),this.skip.style.display=x?"inline":"none",this.timer.style.display=_?"inline":"none","none"==this.timer.style.display||"none"==this.close.style.display||this.config.closeStyle&&this.config.closeStyle.outside||this.timerInSkip||(this.timer.style.left=this.close.clientWidth+2+"px"),this.setValue(this.timelineProgress,o>0&&a>0?o/a:0),this.setValue(this.timelineBuffer,this.getBuffer(o)>0&&a>0?this.getBuffer(o)/a:0)},o.prototype.resize=function(t,e){var i=1;if(this.config.width=t,this.config.height=e,this.container.style.width=t+"px",this.container.style.height=e+"px",this.caption&&(this.caption.style.width=t+"px"),e<150){if(i=e/150,this.playPause.style.webkitTransform=this.playPause.style.transform="scale("+i+","+i+")",this.sound.style.webkitTransform=this.sound.style.transform="scale("+i+","+i+")",o=this.buttons.querySelector("#left")){var n=this.vastIcon&&cnf.vasticonenabled&&"left"===this.vastIcon.xPosition&&"bottom"===this.vastIcon.yPosition?this.vastIcon.width:0;o.style.left=Math.floor(13*i+n)+"px",o.style.bottom=Math.floor(11*i)+"px"}if(a=this.buttons.querySelector("#right")){var r=this.vastIcon&&cnf.vasticonenabled&&"right"===this.vastIcon.xPosition&&"bottom"===this.vastIcon.yPosition?this.vastIcon.width:0;a.style.right=Math.floor(13*i+r)+"px",a.style.bottom=Math.floor(11*i)+"px"}this.timeline&&"overlay"==this.config.timelineMode&&(this.timeline.style.bottom=Math.floor(50*i)+"px"),this.config.skip&&(this.skip.style.bottom=Math.floor(60*i)+"px",this.skip.style.height=Math.floor(32*i)+"px",this.skip.style.fontSize=Math.floor(14*i)+"px",this.skip.style.lineHeight=Math.floor(32*i)+"px",this.skip.style.padding="0 0")}else{var o,a;this.playPause.style.webkitTransform=this.playPause.style.transform="",this.sound.style.webkitTransform=this.sound.style.transform="",(o=this.buttons.querySelector("#left"))&&(o.style.left=this.vastIcon&&cnf.vasticonenabled&&"left"===this.vastIcon.xPosition&&"bottom"===this.vastIcon.yPosition?"".concat(this.vastIcon.width,"px"):"",o.style.bottom=""),(a=this.buttons.querySelector("#right"))&&(a.style.right=this.vastIcon&&cnf.vasticonenabled&&"right"===this.vastIcon.xPosition&&"bottom"===this.vastIcon.yPosition?"".concat(this.vastIcon.width,"px"):"distributed"===cnf.adscontrolpositioning.toLowerCase()?"".concat(13,"px"):"",a.style.bottom=""),this.timeline&&"overlay"==this.config.timelineMode&&(this.timeline.style.bottom=""),this.config.skip&&(this.skip.style.bottom="",this.skip.style.height="",this.skip.style.fontSize="",this.skip.style.lineHeight="",this.skip.style.padding="")}},o.prototype.showCaption=function(t){this.caption&&(this.caption.style.display=t?"":"none")},o.prototype.showTimeline=function(t){var e,i;t?(e="av-"+this.config.timelineMode,i="av-hidden"):(i="av-"+this.config.timelineMode,e="av-hidden"),r(this.timeline,i),n(this.timeline,e)}}(window);var re=r(4942);function oe(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function ae(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?oe(Object(i),!0).forEach((function(e){(0,re.Z)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):oe(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var se=r(1002);function le(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
le=function(){return t};var t={},e=Object.prototype,i=e.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,r){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),s=new S(r||[]);return n(a,"_invoke",{value:w(t,i,s)}),a}function d(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var u={};function p(){}function f(){}function h(){}var v={};l(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==e&&i.call(g,o)&&(v=g);var y=h.prototype=p.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(n,o,a,s){var l=d(t[n],t,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==(0,se.Z)(u)&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;n(this,"_invoke",{value:function(t,i){function n(){return new e((function(e,n){r(t,i,e,n)}))}return o=o?o.then(n,n):n()}})}function w(t,e,i){var n="suspendedStart";return function(r,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw o;return T()}for(i.method=r,i.arg=o;;){var a=i.delegate;if(a){var s=k(a,i);if(s){if(s===u)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var l=d(t,e,i);if("normal"===l.type){if(n=i.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n="completed",i.method="throw",i.arg=l.arg)}}}function k(t,e){var i=e.method,n=t.iterator[i];if(void 0===n)return e.delegate=null,"throw"===i&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),u;var r=d(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function C(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return f.prototype=h,n(y,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:f,configurable:!0}),f.displayName=l(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(A.prototype),l(A.prototype,a,(function(){return this})),t.AsyncIterator=A,t.async=function(e,i,n,r,o){void 0===o&&(o=Promise);var a=new A(c(e,i,n,r),o);return t.isGeneratorFunction(i)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),i=[];for(var n in e)i.push(n);return i.reverse(),function t(){for(;i.length;){var n=i.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=C,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(i,n){return a.type="throw",a.arg=t,e.next=i,n&&(e.method="next",e.arg=void 0),!!n}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),_(i),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;_(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:C(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),u}},t}var ce=r(5861);var de=r(181);function ue(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=(0,de.Z)(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}var pe=q,fe=r(6735),he=r.n(fe)();function ve(){return new pe((function(t){he(t)}))}function me(){return(new Date).getTime()}function ge(t,e){return(0,b.Z)(t)&&nt(e)?t.replace(/\${AUCTION_PRICE}/g,String(e)):t}var ye="<VAST/>";function be(t){var e,i,n,r=ye,o=t.cpm||0;if(function(t){return(0,b.Z)(t)&&t.length>25}(t.vastXml))r=ge(t.vastXml,o);else if(t.vastUrl){var a=ge(t.vastUrl,o);e=a,i=t.vastImpUrl,n=i?"<![CDATA[".concat(i,"]]>"):"",r='<?xml version="1.0" encoding="UTF-8"?><VAST version="3.0"><Ad><Wrapper><AdSystem>aniview.com wrapper</AdSystem>'+"<VASTAdTagURI><![CDATA[".concat(e,"]]></VASTAdTagURI>")+"<Impression>".concat(n,"</Impression>")+"<Creatives></Creatives></Wrapper></Ad></VAST>"}return r}var Ae=function(){function t(e){var i=this;void 0===e&&(e=[]),(0,N.Z)(this,t),this.platforms=[],this.player=void 0,this.needsReset=!1,this.proxyMethod=function(t){var e,n=null==(e=i[t])?void 0:e.bind(i);Object.defineProperty(i,t,{writable:!0,configurable:!0,value:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];null==n||n.apply(void 0,r),i.platforms.forEach((function(e){m(e[t])&&e[t].apply(e,r)}))}})},this.platforms=e,["setGdpr","setUsp","setGpp","setPlayer","setCurrency","setFloor","setDevice","setContentInfo","setAppInfo","setUserIdParams","setRtdParams","setSiteInfo","setOrtb2Info"].forEach(this.proxyMethod)}var e=t.prototype;return e.use=function(t){return this.platforms.push(t),this},e.isSupportedAdSource=function(t){return this.platforms.some((function(e){return e.isSupportedAdSource(t)}))},e.getAdSourceByCode=function(t){var e,i=ue(this.platforms,!0);try{for(i.s();!(e=i.n()).done;){var n=e.value.getAdSourceByCode(t);if(n)return n}}catch(t){i.e(t)}finally{i.f()}},e.setPlayer=function(t){this.player=t},e.addAdSource=function(t){this.platforms.some((function(e){try{if(!e.isSupportedAdSource(t))return!1;e.addAdSource(t)}catch(t){0}return!0}))},e.reset=function(){this.needsReset&&(this.platforms.forEach((function(t){t.reset()})),this.needsReset=!1)},e.requestBids=function(){var t=(0,ce.Z)(le().mark((function t(e){var i,n;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===e&&(e={}),this.needsReset=!0,e=ae({mode:"cors",credentials:"include",timeout:7e3,resolveWrappers:!0,maxRedirects:8},e),i=this.platforms.filter((function(t){return t.hasAdSources})),t.next=7,ve().then((function(){return pe.allSettled(i.map((function(t){return t.requestBids(e)})))}));case 7:return n=t.sent.reduce((function(t,e){return e.reason?t:Object.assign(t,e.value)}),{}),t.abrupt("return",n);case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),e.getBidResponses=function(){return this.platforms.reduce((function(t,e){return Object.assign(t,e.getBidResponses())}),{})},e.getBidResponsesForAdSource=function(t){this.needsReset;var e=me(),i={type:t.type,adId:t.id,adUnitCode:t.code,bidder:this.getBidderName(t),vastXml:ye,cpm:0,requestTimestamp:e,responseTimestamp:e,timeToRespond:0},n=[];return this.platforms.some((function(e){return!!e.isSupportedAdSource(t)&&(n=e.getBidResponsesForAdSource(t),!0)})),n.map((function(t){return ae({},i,t,{vastXml:be(t)||i.vastXml,cpm:t.cpm||i.cpm})}))},e.getUnreleasedBidResponses=function(){return this.platforms.reduce((function(t,e){return Object.assign(t,e.getUnreleasedBidResponses())}),{})},e.releaseBidResponses=function(){return this.platforms.reduce((function(t,e){return Object.assign(t,e.releaseBidResponses())}),{})},e.getBidderName=function(t){var e,i="aniview";if(!t)return i;t.ismp?i="marketplace":i=(null==(e=this.getPlatformByAdSource(t))?void 0:e.getBidderName(t))||i;return i},e.getPlatformByAdSource=function(t){return this.platforms.find((function(e){return e.isSupportedAdSource(t)}))},(0,F.Z)(t)}(),we=r(1752),ke=r(1120),xe=r(136),_e=r(2963);function Se(t){var e=p();return function(){var i,n=(0,ke.Z)(t);if(e){var r=(0,ke.Z)(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return(0,_e.Z)(this,i)}}var Ce={Video:"video",Vast:"vast",VastXml:"vastxml",S2S:"s2s",PlatformLink:"pl",Prebid:"pb",PrebidServer:"pbs",googima:"googima",IMA:"googima",Tag:"tag"},Te=function(t){return t.InFeed="in-feed",t.Adhesive="adhesive",t.All="all",t}({});var Ie=r(7326);function Ee(t){var e="function"==typeof Map?new Map:void 0;return Ee=function(t){if(null===t||(i=t,-1===Function.toString.call(i).indexOf("[native code]")))return t;var i;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return f(t,arguments,(0,ke.Z)(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,u.Z)(n,t)},Ee(t)}var Pe=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(t,n){var r;return void 0===t&&(t=""),(0,N.Z)(this,i),(r=e.call(this,t,n)).message=t,r.options=n,Error.captureStackTrace?Error.captureStackTrace((0,Ie.Z)(r),r.constructor):r.stack=(new Error).stack,r.name=r.constructor.name,r}return(0,F.Z)(i)}(Ee(Error)),Ve=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(t,n){var r;return void 0===t&&(t=""),(0,N.Z)(this,i),(r=e.call(this,"Unable to request bids".concat(t?": ".concat(t):""),n)).message=t,r.options=n,r.name="BidRequestError",r}return(0,F.Z)(i)}(Pe);function Oe(t){try{return decodeURIComponent(t)}catch(t){}return""}function Re(t){try{return encodeURIComponent(t)}catch(t){}return""}var Le={"player.aniview.com":1,"vpaid.vidoomy.com":1,"vpaid.springserve.com":1,"vpaid.pubmatic.com":1,"vpaid.doubleverify.com":1,"cdn.doubleverify.com":1,"video-ads.rubiconproject.com":1,"usadmm.dotomi.com":1,"t.seedtag.com":1,"svastx.moatads.com":1,"z.moatads.com":1,"static.licdn.com":1,"static.criteo.net":1,"static.adtelligent.com":1,"static.adsafeprotected.com":1,"fw.adsafeprotected.com":1,"server.cpmstar.com":1,"s.yimg.com":1,"s-static.innovid.com":1,"playtime.tubemogul.com":1,"pixel.adsafeprotected.com":1,"m.media-amazon.com":1,"libs.outbrain.com":1,"imasdk.googleapis.com":1,"cdnx.tribalfusion.com":1,"cdn.stickyadstv.com":1,"c.amazon-adsystem.com":1,"ads.celtra.com":1,"www.googletagservices.com":1,"monetize-static.viralize.tv":1,"onetag-sys.com":1,"s.tremorvideodsp.com":1},Ue={map:{"vo-av.azureedge.net/av.js":1,"trackmenow.life":1},track:[],callback:null};function De(t){t&&(Array.isArray(t.list)&&t.list.forEach((function(t){Ue.map[t]=1})),Array.isArray(t.track)&&(Ue.track=t.track),m(t.callback)&&(Ue.callback=t.callback))}function Me(t,e,i){try{var n=Bt(t);if((0,b.Z)(n)&&Ue.map[n])return function(t,e,i){var n;if((null==Ue||null==(n=Ue.track)?void 0:n.length)>0){var r,o=Re(t),a=ue(Ue.track,!0);try{for(a.s();!(r=a.n()).done;){var s=r.value;(new Image).src=s.replace("AVC_BLKURL",o).replace("BLK_REASON",(e||"")+"Block").replace("BLK_ASID",i)}}catch(t){a.e(t)}finally{a.f()}}m(null==Ue?void 0:Ue.callback)&&Ue.callback(t,e,i)}(t,e,i),!0}catch(t){}return!1}function qe(t){return!!Le[t]}var je=function(t){return t.NONE="",t.PG="1",t.PA="2",t.PD="3",t}({}),Fe={};function Ne(t,e){if(void 0===t&&(t={}),function(t){return(null==t?void 0:t.ismp)||"55b78633181f4603178b4568"===(null==t?void 0:t.nid)}(e)){var i,n=e.playerSettings||{};if(null!=(i=t)&&i.dealId&&n.lidr)try{var r=Oe(n.lidr);if(r)return r.split(",").indexOf(t.dealId)>-1}catch(t){}if(t.vastAdId&&Array.isArray(n.liid))return n.liid.includes(t.vastAdId)}return!1}var Be=function(){function t(e){if((0,N.Z)(this,t),this.keyValues=[],this.cache={},e){for(var i in e){var n=Number(e[i]);if(!isNaN(n)){var r={k:i,v:e[i],nv:n};this.keyValues.push(r)}}this.keyValues.sort((function(t,e){return t.nv>e.nv?1:-1}))}}return t.prototype.getClosest=function(t){if(this.cache[t])return this.cache[t];var e,i=this.keyValues[0],n=ue(this.keyValues,!0);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.nv>t)break;i=r}}catch(t){n.e(t)}finally{n.f()}return this.cache[t]=i,i},(0,F.Z)(t)}(),Ze=function(){function t(){(0,N.Z)(this,t),this.cache={},this.maps={}}var e=t.prototype;return e.initAdSource=function(t,e){this.maps[t]=e},e.getKey=function(t,e){if(!this.validateMap(t))return null;var i=this.cache[t].getClosest(e);return(null==i?void 0:i.k)||""},e.getValue=function(t,e){if(!this.validateMap(t))return null;var i=this.cache[t].getClosest(e);return(null==i?void 0:i.v)||""},e.getNumValue=function(t,e){if(!this.validateMap(t))return null;var i=this.cache[t].getClosest(e);return(null==i?void 0:i.nv)||0},e.validateMap=function(t){if(!this.cache[t]){if(!this.maps[t])return!1;this.initMap(t,this.maps[t])}return!0},e.initMap=function(t,e){this.cache[t]||(this.cache[t]=new Be(e))},(0,F.Z)(t)}(),ze=new Ze,We={Prebid:10,Beachfront:12,EMXDigital:54,AppNexus:55,IMA:75,GAM:75,APS:77,Direct:998,Custom:999},He=1,Ge=3,Ke=function(t){return t[t.Ratio1=0]="Ratio1",t[t.Fixed=1]="Fixed",t[t.Ratio=2]="Ratio",t}({}),Je=function(t){return t.SensitiveContent="sc",t.Tag="tag",t}({}),Xe=function(t){return t[t.Include=1]="Include",t[t.Exclude=2]="Exclude",t}({}),Qe=r(1929);function Ye(t){return nt(t)&&Qe.Z.isFinite(t)}function $e(t){var e;return Ye(null==(e=t.ac)?void 0:e.fp)?t.ac.fp:0}function ti(t){return"pl"==t.type&&t.provider==We.IMA||t.imaRender}var ei=1,ii=2,ni=3,ri=1,oi=2,ai=3,si=1,li=2,ci=3,di=1,ui=2,pi=new(function(){function t(){(0,N.Z)(this,t),this._asConf={},this._asStat={},this._playerFloor=null,this._impResetMode=null,this._playerOpt={}}var e=t.prototype;return e._hasDynamicFloor=function(t){var e;return ti(t)&&(null==(e=t.template)?void 0:e.indexOf("AVC_FLOOR_"))>0},e._getOptData=function(t,e,i){var n,r,o={};if(t.opt.m===ni&&t.opt.e)return t.opt.s=this._sampleFloor(t.opt),t.opt;if("pb"!==t.type&&"pbs"!==t.type&&!this._hasDynamicFloor(t)||(null==(n=e)||!n.m)&&!t.opt.srv)return{};if(ti(t)&&(null==(r=e)||null==(r=r.imaOpt)||!r.m)&&!t.opt.srv)return{};if(e.srv==di||t.opt.srv===ui&&t.opt.fp){var a;if(null==(a=t.opt)||!a.hc)return{};t.provider==We.IMA&&e.imaOpt&&(e=Object.assign({},e,e.imaOpt));var s=e.mm||10,l=e.hcf||1,c=e.hca||0,d=1*Math.max(t.opt.hc*l+c,i||.1).toPrecision(2);d=Math.min(s,d);var u=t.opt.l||d||i;t.opt.hc&&e.lf&&(u=Math.min(t.opt.hc,d)*e.lf);var p=1*(e.l?Math.min(e.l,d):u).toPrecision(2),f=e.ll||0;o={s:d,l:p=Math.max(p,f),h:d,m:e.m||t.opt.m||ei,it:e.it||t.opt.it||3,v:e.v||t.opt.v||.25,vf:e.vf||t.opt.vf||1,imp:e.imp||t.opt.imp||ri,imprm:ci}}else o=e||{};return o},e.initAdSource=function(t,e,i){var n,r,o;e=e||{};var a=null==(n=t.tpp)?void 0:n.floor,s=null==(r=e.floors)||null==(r=r[a])?void 0:r.map;ze.initAdSource(a,s),t.opt=t.opt||{},i=i||this._playerOpt;var l,c=t.asid,d=ti(t)&&this._hasDynamicFloor(t)&&(null==(o=t.opt)?void 0:o.s)>0?t.opt.s:0;l=ti(t)?d>0?d:0:$e(t);var u=this._getOptData(t,i,l);u.s&&(this._impResetMode=this._impResetMode||u.imprm||si),u.m==ii?u.v=Math.max(.6,Math.min(1,u.v||1)):u.v=Math.max(0,u.v||0),l=this._playerFloor||l,this._asConf[c]||(this._asConf[c]={s:l,l:l,h:l,m:1,it:0,v:0,imp:1},Object.assign(this._asConf[c],u),this._asStat[c]={req:0,err:0,imp:0,floor:this._asConf[c].s,ctime:Date.now()})},e._getIncreasedFloor=function(t,e){if(e.imp==oi)return ne(Math.max(e.s,t.floor),1e3);if(e.imp==ai){var i=e.m==ii?t.floor/e.v:t.floor+e.v;return ne(Math.min(e.h,i),1e3)}return t.floor},e._sampleFloor=function(t){var e=(t.ds||70)/100,i=Math.random();return i<e?t.hc:i<e+(1-e)/2?t.l:t.h},e._getReducedFloor=function(t,e){var i=e.m==ii?t.floor*e.v:t.floor-e.v;return ne(Math.max(e.l,i),1e3)},e._update=function(t){var e=this._asStat[t];if((null==e?void 0:e.req)>0)if(this._playerFloor)e.floor=this._playerFloor;else{var i=this._asConf[t];(null==i?void 0:i.m)===ni?e.floor=this._sampleFloor(i):e.imp?e.floor=this._getIncreasedFloor(e,i):e.err>=i.it&&(e.err=0,e.floor=this._getReducedFloor(e,i))}},e.onAdSourceRequest=function(t,e){void 0===e&&(e=void 0),e=e||this._playerOpt;var i=t.asid;try{this._update(i)}catch(t){0}var n=this._asStat[i];n&&(n.req++,n.imp=!1)},e.onBidFailed=function(t){var e=this._asStat[t];e&&e.err++},e.onAdSourceImpression=function(t){var e=this,i=this._asStat[t.asid];if(i&&(i.imp=!0,i.err=0),this._impResetMode===si||this._impResetMode===li&&i){var n=function(t){var e;return(null==(e=t.cac)?void 0:e.nCpm)||$e(t)}(t);Object.keys(this._asStat).map((function(t){var i=e._asStat[t],r=e._asConf[t];i&&r&&(e._getReducedFloor(i,r)+(r.imprd||.1)<n&&(i.err=0))}))}},e.getAdSourceFloor=function(t){var e,i;return Math.floor(100*((null==(e=this._asStat[t])?void 0:e.floor)||(null==(i=this._asConf[t])?void 0:i.f)||0))/100},e.setPlayerFloor=function(t){this._playerFloor=t},e.setPlayerOptions=function(t){this._playerOpt=t},(0,F.Z)(t)}());function fi(t){var e=Math.floor((Date.now()-t)/1e3);return e<0?"":e}var hi=null;var vi="Aniview/1.1",mi="1,2,3,4,5,6,7,8,11,12,13,14",gi="1,2,7";function yi(t,e){return function(i,n){return i.replace(t,(function(t){var i=e[t];return"function"==typeof i?i(n):i}))}}function bi(t){var e=Object.keys(t).join("|").replace(/\[|\]/g,(function(t){return"\\"+t}));return new RegExp(e,"g")}function Ai(t){Object.keys(t||{}).forEach((function(e){var i=encodeURIComponent(e);t[i]=t[e]}))}function wi(){}function ki(){}function xi(){}function _i(t){return t.roundedFloor||("pb"===t.type||"pbs"===t.type?t.floor:null)}function Si(t,e,i,n,r){var o=pi.getAdSourceFloor(t.asid),a=o||e||0;if(o=e?Utils.getPriceGranularity(o,e,i,n):o,t.roundedFloor=o||e||0,r&&ti(t)){var s,l,c=ze.getKey(null==(s=t.tpp)?void 0:s.floor,a);if(c)return t.roundedFloor=ze.getValue(null==(l=t.tpp)?void 0:l.floor,a),c}return t.roundedFloor}function Ci(t,e){var i,n,r;if(null!=t&&t.asid&&null!=(i=t.playerSettings)&&i.dealKV){var o=t.playerSettings.pxsec>0&&fi(e.startTime)>t.playerSettings.pxsec;return!(n=t.asid,null!=(r=Fe[n])&&r.closed||o)}return!1}function Ti(t){var e=t.config,i=t.macros,n=!e.disableOm,r=!!i.AV_APPPKGNAME,o={"[TIMESTAMP]":function(){return Date.now()},"[CACHEBUSTING]":function(){return Date.now()},"[VASTVERSIONS]":mi,"[OMIDPARTNER]":n?vi:"","[IFA]":i.AV_IDFA?i.AV_IDFA:"","[APPBUNDLE]":r?i.AV_APPPKGNAME:"","[PAGEURL]":r?"":i.AV_URL,"[DOMAIN]":r?"":Utils.getHostName(i.AV_URL),"[APIFRAMEWORKS]":r||!n?"1,2":gi,"[GDPRCONSENT]":t.gdpr&&i.AV_CONSENT||"","${GDPR_CONSENT_755}":t.gdpr&&i.AV_CONSENT||"","${GDPR}":t.gdpr||""};wi=yi(bi(o),o);var a={"[AV_VIEWABILITY]":function(){return Utils.getViewabilityPerc(e.slot)},"[AVC_VIEWABILITY]":function(){return Utils.getViewabilityPerc(e.slot)},"[AVC_WIDTH]":function(){return e.width},"[AVC_HEIGHT]":function(){return e.height},"[AVC_IMPCNT]":function(){return t.impCount+1},"[AVC_RUNCNT]":function(){return t.runCount},"[AVC_CPM]":function(t){return t?t.cpm:""},"[AVC_PCPM]":function(t){return t?t.pcpm:""},"[AVC_RANDOM]":function(){return Date.now()},"[AVC_STK]":function(){return Utils.isFloating()},"[AVC_DATE]":function(){return Utils.getDateTime().date},"[AVC_TIME]":function(){return Utils.getDateTime().time},"[AV_ADDURATION]":function(t){return t&&t.getDur?t.getDur():""},"[AVC_ADDURATION]":function(t){return t&&t.getDur?t.getDur():""},"[AVC_TIMEPASS]":function(e){return fi(t.asStats.getStartTime(e.asid))},"[AVC_WFCYCLE]":function(e){return e.wfCycle||t.wfCycle},"[AVC_FLOOR]":function(t){return t.floor||""},"[AVC_FLOOR_01]":function(t){return t.roundedFloor||""},"[AVC_FLOOR_05]":function(t){return t.roundedFloor||""},"[AVC_FLOOR_1]":function(t){return t.roundedFloor||""},"[AVC_OFPR]":function(t){return _i(t)||""},"[AVC_HCPM]":function(t){return _i(t.tag)||""},"[AVC_ADID]":function(t){var e;return(null==(e=t.bidData)?void 0:e.vastAdId)||""},"[AVC_ADDOMAIN]":function(t){var e;return Re(null==(e=t.bidData)?void 0:e.adDomain)||""},"[AVC_TABSTATE]":function(t){return Utils.isTabInView()?"1":"2"},"[AVC_DT]":function(t){var e;return(null==(e=t.tag)?void 0:e.dealType)||je.NONE},"[AVC_PLCMT]":function(e){return t.plcmt||""}};function s(t,e){return t?e.type===Ce.Prebid||e.type===Ce.PrebidServer?t:encodeURIComponent(t):""}Ai(a),Object.assign(a,o),ki=yi(bi(a),a);var l={"[AVC_WIDTH]":function(){return e.width},"[AVC_HEIGHT]":function(){return e.height},"[AVC_VIDEOURL]":function(t){return s(e.ctinfo.url,t)},"[AVC_DURATION]":function(){return e.ctinfo.duration>0?Math.floor(e.ctinfo.duration):""},"[AVC_VIDEOID]":function(){return e.ctinfo.id||""},"[AVC_CONTENTID]":function(){return e.ctinfo.id||""},"[AVC_TITLE]":function(t){return s(e.ctinfo.title,t)},"[AVC_KEYWORDS]":function(t){return s(e.ctinfo.keywords,t)},"[AVC_CKEYWORDS]":function(t){return s(e.ctinfo.keywords,t)},"[AVC_INVIEW]":function(t){return Utils.getViewabilityPerc()>=50?1:0},"[AVC_INVIEWPERC]":function(t){return Utils.getViewabilityPerc()},"[AVC_FLOOR]":function(t){return Si(t,null)},"[AVC_FLOOR_01]":function(t){return Si(t,.1,e.pricegranularitymax,e.pricegranularitydecimals,!0)},"[AVC_FLOOR_05]":function(t){return Si(t,.5,e.pricegranularitymax,e.pricegranularitydecimals,!0)},"[AVC_FLOOR_1]":function(t){return Si(t,1,e.pricegranularitymax,e.pricegranularitydecimals,!0)},"[AVC_FLOOR_G]":function(t){return Si(t,e.pricegranularity||.1,e.pricegranularitymax,e.pricegranularitydecimals,!0)},"[AVC_CGUID]":function(t){return e.ctinfo.cguid||""},"[AVC_WFCYCLE]":function(e){return e.wfCycle||t.wfCycle},"[AVC_PLAYERSIZE]":function(){var t=e.width;return t>600?"large":t<=600&&t>=300?"medium":t<300?"small":null},"[AVC_IRISID]":function(){return e.ctinfo.irisId||""},"[AVC_IRISCONTEXT]":function(){return e.ctinfo.irisContext||""},"[AVC_EXTID]":function(){return e.ctinfo.extId||""},"[AVC_GTARGETING]":function(){return function(){if(lt(hi)){var t="";try{top.googletag.pubads().getTargetingKeys().forEach((function(e){var i,n=top.googletag.pubads().getTargeting(e)||"";i=Array.isArray(n)?n.join(","):n,(0,b.Z)(i)&&(n=encodeURIComponent(i),t+=e+"="+n+"&")})),t=encodeURIComponent(t)}catch(t){}hi=t}return hi}()},"[AVC_IASKV]":function(){return e.iaskv||""},"[AVC_DEAL_KV]":function(e){return Ci(e,t)?Oe(e.playerSettings.dealKV):""},"[AVC_ENC_DEAL_KV]":function(e){return Ci(e,t)?e.playerSettings.dealKV:""},"[AVC_IP]":function(){var e;return(null==(e=t.device)?void 0:e.ip)||""},"[AVC_COUNTRY]":function(){var e;return(null==(e=t.device)||null==(e=e.geo)?void 0:e.country)||""},"[AVC_CATEGORY]":function(){return e.ctinfo.category||""},"[AVC_PLCMT]":function(e){return t.plcmt||""}};[1,2,3,4,5,6,7,8,9,10].forEach((function(t){l["[AVC_CPARAM"+t+"]"]=function(i){return s(e.ctinfo["cparam"+t],i)},l["[AVC_CUSTOM"+t+"]"]=i["AVC_CUSTOM"+t]||""})),Ai(l),Object.assign(l,o),xi=yi(bi(l),l)}function Ii(t,e){return(0,b.Z)(t)?ki(t,e):t}function Ei(t,e){return(0,b.Z)(t)?xi(t,e):t}function Pi(t,e){try{return JSON.parse(Ii(JSON.stringify(t),e))}catch(t){0}return t}var Vi=!0;function Oi(t,e,i,n){var r=t.config.imarender;if(null==r||!r.params)return null;var o=r.params||{};o.cust_params=o.cust_params||{},o.output=o.output||"vast",o.plcmt=t.plcmt,t.plcmt===Yt.Instream&&(o.vpmute=0,o.vpa="click");var a=e.adServers.dfp.buildVideoUrl({adUnit:n,bid:i,url:r.url,params:o});return function(t,e){if(!t)return e;var i={};try{return Object.keys(t).forEach((function(e){if(e){var n="[AVC_".concat(e.toUpperCase(),"]");i[n]=t[e],i[encodeURIComponent(n)]=t[e]}})),yi(bi(i),i)(e,{})}catch(t){}return e}(i.adserverTargeting,a)}var Ri=r(4221),Li=I?w.DOMException:function(t){(0,xe.Z)(i,t);var e=Se(i);function i(t,n){var r;return(0,N.Z)(this,i),(r=e.call(this,t)).name=n,r}return(0,F.Z)(i)}(Ee(Error)),Ui={};try{Ui.Event=new Event(".").constructor}catch(t){try{Ui.Event=new CustomEvent(".").constructor}catch(t){Ui.Event=function(t,e){e||(e={});var i=document.createEvent("Event"),n=!!e.bubbles,r=!!e.cancelable;i.initEvent(t,n,r);try{i.bubbles=n,i.cancelable=r}catch(i){}return i}}}var Di=Ui.Event,Mi=C?w.Event:Di,qi={};try{qi.EventTarget=(new EventTarget).constructor}catch(t){!function(t,e){var i=t.create,n=t.defineProperty,r=o.prototype;function o(){e.set(this,i(null))}function a(t,e,i){n(t,e,{configurable:!0,writable:!0,value:i})}function s(t){var e=t.options;return e&&e.once&&t.target.removeEventListener(this.type,t.listener),"function"==typeof t.listener?t.listener.call(t.target,this):t.listener.handleEvent(this),this._stopImmediatePropagationFlag}a(r,"addEventListener",(function(t,i,n){for(var r=e.get(this),o=r[t]||(r[t]=[]),a=0,s=o.length;a<s;a++)if(o[a].listener===i)return;o.push({target:this,listener:i,options:n})})),a(r,"dispatchEvent",(function(t){var i=e.get(this)[t.type];return i&&(a(t,"target",this),a(t,"currentTarget",this),i.slice(0).some(s,t),delete t.currentTarget,delete t.target),!0})),a(r,"removeEventListener",(function(t,i){for(var n=e.get(this),r=n[t]||(n[t]=[]),o=0,a=r.length;o<a;o++)if(r[o].listener===i)return void r.splice(o,1)})),qi.EventTarget=o}(Object,new WeakMap)}var ji,Fi,Ni=qi.EventTarget,Bi=T?w.EventTarget:Ni,Zi={};ji=Symbol.toStringTag;var zi=function(t){(0,xe.Z)(n,t);var e=Se(n),i=n.prototype;function n(t){var i;if((0,N.Z)(this,n),(i=e.call(this))._aborted=void 0,i._reason=void 0,i._onabort=void 0,t!==Zi)throw new TypeError("Illegal constructor.");return i._aborted=!1,i}return i.throwIfAborted=function(){if(this.aborted)throw Error(this.reason)},i.toString=function(){return"[object AbortSignal]"},(0,F.Z)(n,[{key:"onabort",get:function(){return this._onabort},set:function(t){var e=this._onabort;e&&this.removeEventListener("abort",e),this._onabort=t,this.addEventListener("abort",t)}},{key:"aborted",get:function(){return this._aborted}},{key:"reason",get:function(){return this._reason}},{key:ji,get:function(){return"AbortSignal"}}]),n}(Bi);Fi=Symbol.toStringTag;var Wi,Hi=function(){var t=e.prototype;function e(){(0,N.Z)(this,e),this._signal=void 0,this._signal=new zi(Zi)}return t.abort=function(t){var e=this.signal;e.aborted||(e._aborted=!0,e._reason=void 0===t?new Li("signal is aborted without reason","AbortError"):t,e.dispatchEvent(new Mi("abort")))},t.toString=function(){return"[object AbortController]"},(0,F.Z)(e,[{key:"signal",get:function(){return this._signal}},{key:Fi,get:function(){return"AbortController"}}]),e}(),Gi=E?w.AbortController:Hi,Ki=(P&&w.AbortSignal,Object.prototype.isPrototypeOf),Ji=Object.prototype.hasOwnProperty,Xi=S,Qi="Symbol"in Ri.Z&&"iterator"in Symbol,Yi=O,$i=R,tn=L;if(tn){var en=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];Wi=ArrayBuffer.isView||function(t){return t&&en.indexOf(Object.prototype.toString.call(t))>-1}}function nn(t){if(t=String(t),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function rn(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return Qi&&(e[Symbol.iterator]=function(){return e}),e}var on=function(){function t(e){(0,N.Z)(this,t),this.map={},e instanceof t?e.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(e)?e.forEach((function(t){this.append(t[0],t[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}var e=t.prototype;return e.append=function(t,e){t=nn(t),e=String(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},e.delete=function(t){delete this.map[nn(t)]},e.get=function(t){return t=nn(t),this.has(t)?this.map[t]:null},e.has=function(t){return Ji.call(this.map,nn(t))},e.set=function(t,e){this.map[nn(t)]=String(e)},e.forEach=function(t,e){for(var i in this.map)Ji.call(this.map,i)&&t.call(e,this.map[i],i,this)},e.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),rn(t)},e.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),rn(t)},e.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),rn(t)},(0,F.Z)(t)}();function an(t){if(t.bodyUsed)return pe.reject(new TypeError("Already read"));t.bodyUsed=!0}function sn(t){return new pe((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function ln(t){var e=new FileReader,i=sn(e);return e.readAsArrayBuffer(t),i}function cn(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}Qi&&(on.prototype[Symbol.iterator]=on.prototype.entries);var dn=function(){function t(){(0,N.Z)(this,t),this.bodyUsed=!1,this.body=void 0,this._bodyInit=void 0,this._bodyText=void 0,this._bodyBlob=void 0,this._bodyFormData=void 0,this._bodyArrayBuffer=void 0,this.headers=void 0}var e=t.prototype;return e._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:Yi&&Ki.call(Blob.prototype,t)?this._bodyBlob=t:$i&&Ki.call(FormData.prototype,t)?this._bodyFormData=t:Xi&&Ki.call(URLSearchParams.prototype,t)?this._bodyText=t.toString():tn&&Yi&&((e=t)&&Ki.call(DataView.prototype,e))?(this._bodyArrayBuffer=cn(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):tn&&(Ki.call(ArrayBuffer.prototype,t)||Wi(t))?this._bodyArrayBuffer=cn(t):this._bodyText=t=Object.prototype.toString.call(this,t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Xi&&Ki.call(URLSearchParams.prototype,t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob=function(){var t=an(this);if(t)return t;if(this._bodyBlob)return pe.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return pe.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return pe.resolve(new Blob([this._bodyText]))},e.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=an(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?pe.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):pe.resolve(this._bodyArrayBuffer))}return this.blob().then(ln)},e.text=function(){var t,e,i,n=an(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,i=sn(e),e.readAsText(t),i;if(this._bodyArrayBuffer)return pe.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),n=0;n<e.length;++n)i[n]=String.fromCharCode(e[n]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return pe.resolve(this._bodyText)},e.formData=function(){return this.text().then(fn)},e.json=function(){return this.text().then(JSON.parse)},(0,F.Z)(t)}();Yi||(delete dn.prototype.blob,delete dn.prototype.arrayBuffer),$i||delete dn.prototype.formData;var un=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];var pn=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(t,n){var r;if((0,N.Z)(this,i),(r=e.call(this)).credentials=void 0,r.method=void 0,r.url=void 0,r.mode=void 0,r.signal=void 0,r.headers=void 0,r.referrer=void 0,r.cache=void 0,r.destination=void 0,!((0,Ie.Z)(r)instanceof i))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var o=(n=n||{}).body;if(t instanceof i){if(t.bodyUsed)throw new TypeError("Already read");r.url=t.url,r.credentials=t.credentials,n.headers||(r.headers=new on(t.headers)),r.method=t.method,r.mode=t.mode,r.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else r.url=String(t);if(r.credentials=n.credentials||r.credentials||"same-origin",!n.headers&&r.headers||(r.headers=new on(n.headers)),r.method=function(t){var e=t.toUpperCase();return un.indexOf(e)>-1?e:t}(n.method||r.method||"GET"),r.mode=n.mode||r.mode||null,r.signal=n.signal||r.signal||(new Gi).signal,r.referrer=null,("GET"===r.method||"HEAD"===r.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(r._initBody(o),!("GET"!==r.method&&"HEAD"!==r.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var a=/([?&])_=[^&]*/;if(a.test(r.url))r.url=r.url.replace(a,"$1_="+(new Date).getTime());else{r.url+=(/\?/.test(r.url)?"&":"?")+"_="+(new Date).getTime()}}return r}return i.prototype.clone=function(){return new i(this,{body:this._bodyInit})},(0,F.Z)(i)}(dn);function fn(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),n=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(r))}})),e}var hn=[301,302,303,307,308],vn=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(t,n){var r;if((0,N.Z)(this,i),(r=e.call(this)).headers=void 0,r.ok=void 0,r.status=void 0,r.statusText=void 0,r.type=void 0,r.url=void 0,!((0,Ie.Z)(r)instanceof i))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');return n||(n={}),r.type="default",r.status=void 0===n.status?200:n.status,r.ok=r.status>=200&&r.status<300,r.statusText=void 0===n.statusText?"":""+n.statusText,r.headers=new on(n.headers),r.url=n.url||"",r._initBody(t),r}var n=i.prototype;return n.clone=function(){return new i(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new on(this.headers),url:this.url})},n.error=function(){var t=new i(null,{status:0,statusText:""});return t.type="error",t},n.redirect=function(t,e){if(-1===hn.indexOf(e))throw new RangeError("Invalid status code");return new i(null,{status:e,headers:{location:t}})},(0,F.Z)(i)}(dn);function mn(t,e){return new pe((function(i,n){var r=new pn(t,e);if(r.signal&&r.signal.aborted)return n(new Li("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}o.onload=function(){var t,e,n={status:o.status,statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",e=new on,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var i=t.split(":"),n=i.shift().trim();if(n){var r=i.join(":").trim();e.append(n,r)}})),e)};n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");var r="response"in o?o.response:o.responseText;setTimeout((function(){i(new vn(r,n))}),0)},o.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){n(new Li("Aborted","AbortError"))}),0)},o.open(r.method,function(t){try{return""===t&&Ri.Z.location.href?Ri.Z.location.href:t}catch(e){return t}}(r.url),!0),"include"===r.credentials?o.withCredentials=!0:"omit"===r.credentials&&(o.withCredentials=!1),"responseType"in o&&(Yi?o.responseType="blob":tn&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof on?r.headers.forEach((function(t,e){o.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){o.setRequestHeader(t,String(e.headers[t]))})),r.signal&&(r.signal.addEventListener("abort",a),o.onreadystatechange=function(){4===o.readyState&&r.signal.removeEventListener("abort",a)}),o.send(void 0===r._bodyInit?null:r._bodyInit)}))}mn.polyfill=!0;var gn=V?w.fetch:mn;V&&w.Request,V&&w.Response;function yn(t,e){return bn.apply(this,arguments)}function bn(){return bn=(0,ce.Z)(le().mark((function t(e,i){var n,r,o,a,s;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===i&&(i={}),null!==(i=ae({mode:"cors"},i)).timeout&&void 0!==i.timeout){t.next=4;break}return t.abrupt("return",gn(e,i));case 4:if(isFinite(i.timeout)&&!(i.timeout<=0)){t.next=6;break}throw Error("Fetch timeout should be a positive number");case 6:return o=new Gi,a=o.signal,s=setTimeout((function(){return o.abort()}),i.timeout),i.signal=a,t.prev=11,t.next=14,gn(e,i);case 14:n=t.sent,t.next=20;break;case 17:t.prev=17,t.t0=t.catch(11),r=t.t0;case 20:return t.prev=20,clearTimeout(s),t.finish(20);case 23:if(a.aborted||n&&(n.ok||0!==n.status)||"omit"===i.credentials){t.next=26;break}return i.credentials="omit",t.abrupt("return",yn(e,i));case 26:if(!r){t.next=28;break}throw r;case 28:return t.abrupt("return",n);case 29:case"end":return t.stop()}}),t,null,[[11,17,20,23]])}))),bn.apply(this,arguments)}var An=Array.prototype.map,wn=Array.prototype.filter,kn=Array.prototype.reduce,xn=new DOMParser;function _n(t){var e=t.childElementCount>0;return{tag:t.tagName,value:e?null:t.textContent,attributes:kn.call(t.attributes,(function(t,e){return t[e.name]=e.value,t}),{}),find:function(e){return Sn(t.querySelectorAll(e))},children:function(){return wn.call(t.childNodes,(function(t){return t instanceof Element})).map(_n)},getString:function(e){try{var i=t.querySelector(e);if(i)return(new XMLSerializer).serializeToString(i)}catch(t){}return""}}}function Sn(t){return An.call(t,_n)}function Cn(t){return(t||"").split(":").reverse().slice(0,3).reverse().reduce((function(t,e){return 60*t+(isNaN(1*e)?0:1*e)}),0)}function Tn(t){switch((t||"").toLowerCase()){case"true":return!0;case"false":return!1}}function In(){return Array.prototype.slice.call(arguments).reduce((function(t,e){return Object.keys(e||{}).reduce((function(t,i){return t[i]=e[i],t}),t)}),{})}function En(t,e){return Object(t)!==t?t:Object.keys(t).reduce((function(i,n){return e&&t[n]instanceof Array?i[n]=t[n].filter((function(t){return void 0!==t})).map((function(t){return En(t,!0)})):e&&t[n]instanceof Object?i[n]=En(t[n],!0):void 0!==t[n]&&(i[n]=t[n]),i}),{})}function Pn(t){if(/string|number|boolean/.test(typeof t))return isNaN(t)?void 0:Number(t)}var Vn={linear:function(t){var e=Un(t.find("Duration")),i=t.find("Tracking"),n=Un(t.find("AdParameters")),r=t.find("VideoClicks")[0],o=t.find("MediaFile"),a=Un(t.find("Linear")),s=Un(t.find("Icons"));if("Icons"===s.tag)var l=s.find("Icon");return{type:"linear",skipoffset:jn(a.attributes.skipoffset)||void 0,duration:Cn(e.value)||void 0,trackingEvents:i.map((function(t){return{event:t.attributes.event,uri:t.value,offset:jn(t.attributes.offset)}})),parameters:n.value,icons:l&&l.map((function(t){var e,i,n=Un(t.find("IconClicks")),r=Un(n.find("IconClickThrough")),o=n.find("IconClickTracking"),a=Un(t.find("IFrameResource").length?t.find("IFrameResource"):t.find("HTMLResource").length?t.find("HTMLResource"):t.find("StaticResource").length?t.find("StaticResource"):[]);return ae({},t.attributes,r&&{clickthrough:null==(e=r.value)?void 0:e.trim()},a&&{link:null==(i=a.value)?void 0:i.trim()},t.attributes.program&&{text:t.attributes.program},o.length&&{clickTrackings:o.map((function(t){var e;return null==(e=t.value)?void 0:e.trim()}))})})),videoClicks:r&&(c=Un(r.find("ClickThrough")),d=r.find("ClickTracking"),u=r.find("CustomClick"),{clickThrough:c.value,clickTrackings:d.map((function(t){return t.value})),customClicks:u.map((function(t){return{id:t.attributes.id,uri:t.value}}))}),mediaFiles:o.map((function(t){var e=t.attributes;return{id:e.id,delivery:e.delivery,type:e.type,uri:t.value,bitrate:Pn(e.bitrate),width:Pn(e.width),height:Pn(e.height),scalable:Tn(e.scalable),maintainAspectRatio:Tn(e.maintainAspectRatio),apiFramework:e.apiFramework}}))};var c,d,u},companions:function(t){var e=t.find("Companion"),i=e&&e.length?t.getString("CompanionAds"):"";return{type:"companions",companions:e.map((function(t){var e=t.find("Tracking"),i=Un(t.find("CompanionClickThrough")),n=t.find("CompanionClickTracking"),r=Un(t.find("AltText")),o=Un(t.find("AdParameters"));return{id:t.attributes.id,width:Pn(t.attributes.width),height:Pn(t.attributes.height),expandedWidth:Pn(t.attributes.expandedWidth),expandedHeight:Pn(t.attributes.expandedHeight),apiFramework:t.attributes.apiFramework,resources:Dn(t),trackingEvents:e.map((function(t){return{event:t.attributes.event,uri:t.value}})),clickThrough:i.value,clickTracking:n.map((function(t){return t.value})),altText:r.value,parameters:o.value}})),companionAds:i}},nonLinear:function(t){var e=t.find("NonLinear"),i=t.find("Tracking");return{type:"nonLinear",ads:e.map((function(t){var e=Un(t.find("NonLinearClickThrough")),i=Un(t.find("AdParameters"));return{id:t.attributes.id,width:Pn(t.attributes.width),height:Pn(t.attributes.height),expandedWidth:Pn(t.attributes.expandedWidth),expandedHeight:Pn(t.attributes.expandedHeight),scalable:Tn(t.attributes.scalable),maintainAspectRatio:Tn(t.attributes.maintainAspectRatio),minSuggestedDuration:Cn(t.attributes.minSuggestedDuration)||void 0,apiFramework:t.attributes.apiFramework,resources:Dn(t),clickThrough:e.value,parameters:i.value}})),trackingEvents:i.map((function(t){return{event:t.attributes.event,uri:t.value}}))}}},On={inline:function(t){var e=Un(t.find("AdTitle")),i=Un(t.find("Description")),n=Un(t.find("Survey"));return{type:"inline",title:e.value,description:i.value,survey:n.value}},wrapper:function(t){return{type:"wrapper",vastAdTagURI:Rn(Un(t.find("VASTAdTagURI")).value)}}};function Rn(t){return(0,b.Z)(t)&&(t=(t=t.trim()).replace(/(^\+)|(\+$)/g,"").replace(/(^\+)|(\+$)/g,"").replace(/(^\+)|(\+$)/g,"")),t}function Ln(t){var e=[];return t.map((function(t){var i=t.find("Viewable");i=i.map((function(t){t&&t.value&&e.push({uri:t.value.trim(),id:t.attributes.id})}))})),{viewable:e}}function Un(t){return t[0]||{attributes:{}}}function Dn(t){return t.find("StaticResource,IFrameResource,HTMLResource").map((function(t){return{type:t.tag.replace(/Resource$/,"").toLowerCase(),creativeType:t.attributes.creativeType,data:t.value}}))}function Mn(t){return t.find("JavaScriptResource,ExecutableResource").map((function(t){var e;return{type:t.attributes.type||t.tag.replace(/Resource$/,"").toLowerCase(),apiFramework:t.attributes.apiFramework,browserOptional:Tn(t.attributes.browserOptional),data:null==(e=t.value)?void 0:e.trim()}})).filter((function(t){return!!t.data}))}function qn(t){return Object.values(t.reduce((function(t,e){var i,n=e.attributes.vendor;if(!n)return t;var r=e.find("Tracking"),o=Un(e.find("VerificationParameters"));return t[n]={vendor:n,resources:Mn(e),trackingEvents:r.map((function(t){return{event:t.attributes.event,uri:t.value}})),parameters:null==(i=o.value)?void 0:i.trim()},t}),{}))}function jn(t){function e(t){return isNaN(t)?0:1*t}if(t)try{return t.indexOf("%")>-1?{offset:e(t.split("%")[0]),type:1}:{offset:e(Cn(t)),type:0}}catch(t){}}function Fn(t,e){var i=function(t,e){var i=xn.parseFromString(t,"application/xml");try{if(i&&i.children){var n=i.getElementsByTagName("parsererror");n&&n.length>0&&(t=t.replace(/[^A-Za-z 0-9 \.,\?""!@#\$%\^&\*\(\)-_=\+;:<>\/\\\|\}\{\[\]`~]*/g,""),i=xn.parseFromString(t,"application/xml"),"s2s"==e&&(n=i.getElementsByTagName("parsererror"))&&n.length>0&&(t.indexOf("<ClickThrough>")>1&&-1==t.indexOf("]]></ClickThrough>")&&(t=t.replace("</ClickThrough>","]]></ClickThrough>"),i=xn.parseFromString(t,"application/xml")),t.indexOf("<AdParameters><?xml")>1&&(t=(t=t.replace("<AdParameters><?xml","<AdParameters><![CDATA[<?xml")).replace("fig></AdParameters>","fig>]]> </AdParameters>"),i=xn.parseFromString(t,"application/xml"))))}}catch(t){}return function(t){return Sn(i.querySelectorAll(t))}}(t,e);return En({version:Un(i("VAST")).attributes.version,ads:i("Ad").map((function(t){var e=Un(t.find("Wrapper,InLine")).tag.toLowerCase(),i=Un(t.find("AdSystem")),n=t.find("Error"),r=t.find("Impression"),o=t.find("Creative"),a=t.find("Extensions"),s=t.find("Verification"),l=t.find("ViewableImpression"),c=Un(t.find("Advertiser")),d=t.find("UniversalAdId"),u=Un(t.find("Pricing"));return In({id:t.attributes.id,system:{name:i.value,version:i.attributes.version},errors:n.map((function(t){return t.value})),impressions:r.map((function(t){return{uri:t.value,id:t.attributes.id}})),adVerifications:qn(s),creatives:o.map((function(t){var e=function(){switch(Un(t.find("Linear,CompanionAds,NonLinearAds")).tag){case"Linear":return"linear";case"CompanionAds":return"companions";case"NonLinearAds":return"nonLinear";default:return null}}();if(null!=e)return In({id:t.attributes.id,sequence:Pn(t.attributes.sequence),adID:t.attributes.AdID},Vn[e](t))})),extensions:a.map((function(t){try{return{extension:t.children().map((function(t){if("string"==typeof t.attributes.type&&"aniview"==t.attributes.type.toLowerCase()){var e={type:"aniview"},i=t.children();if(i&&i.length>0&&i.forEach&&i.forEach((function(t){if(t&&t.tag&&t.value)try{e[t.tag]=JSON.parse(t.value)}catch(t){}})),"CPM"!=t.children()[0].tag)try{e.tag=JSON.parse(t.children()[0].value)}catch(t){}else e.cpm=t.children()[0].value;return e}}))}}catch(t){return null}return null})),viewableImpressions:Ln(l),advertiser:{id:c.attributes.id,name:c.value},universalAdIds:d.map((function(t){return{registry:t.attributes.idRegistry,id:t.value}})),pricing:{model:u.attributes.model,currency:u.attributes.currency,value:Number(u.value)||0}},On[e](t))}))},!0)}var Nn=Array.prototype.push;function Bn(t){var e="object"==typeof arguments[1]?arguments[1]:null,i="boolean"==typeof arguments[1]?arguments[1]:arguments[2];return Object(t)!==t?t:Array.isArray(t)?function(t,e,i){var n=e||[];return Nn.apply(n,i?t.map((function(t){return Bn(t,null,!0)})):t),n}(t,e,i):function(t,e,i){return Object.keys(t).reduce((function(e,n){return e[n]=i?Bn(t[n],null,!0):t[n],e}),e||{})}(t,e,i)}var Zn=Bn,zn=Array.prototype.push;function Wn(t){return Object(t)===t}function Hn(t){return t instanceof Array}function Gn(t,e){return[t,e].every(Hn)?(zn.apply(e,t.filter((function(t){return e.indexOf(t)<0}))),e):Object.keys(t).reduce((function(e,i){return[t[i],e[i]].every(Wn)&&Gn(t[i],e[i]),i in e||(e[i]=t[i]),e}),e)}function Kn(t,e){return"function"!=typeof e||t.then((function(t){e(null,t)}),(function(t){e(t)})),t}function Jn(t){return(t>9?"":"0")+t.toString()}function Xn(t){return Number(t)!==t?null:[Math.floor(t/60/60),Math.floor(t/60%60),Math.floor(t%60%60)].map(Jn).join(":")}function Qn(t){return null!=t}function Yn(t){return void 0!==t?String(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):""}function $n(t){return t.cdata?(void 0!==(e=t.value)?function(t){for(var e,i,n=[],r=/]]>/g,o=0;e=r.exec(t);)i=e.index+2,n.push(e.input.substring(o,i)),o=i;return n.push(t.substring(o,t.length)),n}(String(e)):[""]).reduce((function(t,e){return t+"<![CDATA["+e+"]]>"}),""):Yn(t.value);var e}function tr(t,e,i){var n=t.tag,r=t.attributes||{},o=Object.keys(r),a=t.children||[],s=t.value,l=a.length>0,c=o.every((function(t){return Qn(r[t])}))&&o.length>0,d=Qn(s)||l||c,u=function(t){for(var e="";t--;)e+=" ";return e}(e),p="<"+n+Object.keys(r).reduce((function(t,e){return i&&!Qn(r[e])?t:t+" "+e+'="'+Yn(r[e])+'"'}),"")+">",f="</"+n+">";return!i||d||t.required?l?[u+p].concat(t.children.reduce((function(t,n){return t.concat(tr(n,e+4,i))}),[]),[u+f]):[u+p+$n(t)+f]:[]}function er(t,e){return['<?xml version="1.0" encoding="UTF-8"?>'].concat(tr(t,0,e)).join("\n")}var ir={linear:function(t){return{tag:"Linear",children:[{tag:"Duration",value:Xn(t.duration)},nr(t.trackingEvents),or(t)].concat(t.videoClicks?[{tag:"VideoClicks",children:[{tag:"ClickThrough",value:t.videoClicks.clickThrough,cdata:!0}].concat(t.videoClicks.clickTrackings.map((function(t){return{tag:"ClickTracking",value:t,cdata:!0}})),t.videoClicks.customClicks.map((function(t){return{tag:"CustomClick",attributes:{id:t.id},value:t.uri,cdata:!0}})))}]:[],[{tag:"MediaFiles",children:t.mediaFiles.map((function(t){return{tag:"MediaFile",attributes:{id:t.id,width:t.width,height:t.height,bitrate:t.bitrate,type:t.type,delivery:t.delivery,scalable:t.scalable,maintainAspectRatio:t.maintainAspectRatio,apiFramework:t.apiFramework},value:t.uri,cdata:!0}}))}])}},companions:function(t){return{tag:"CompanionAds",children:t.companions.map((function(t){return{tag:"Companion",attributes:{id:t.id,width:t.width,height:t.height,expandedWidth:t.expandedWidth,expandedHeight:t.expandedHeight,apiFramework:t.apiFramework},children:rr(t.resources).concat([nr(t.trackingEvents),{tag:"CompanionClickThrough",value:t.clickThrough,cdata:!0},{tag:"AltText",value:t.altText},or(t)])}}))}},nonLinear:function(t){return{tag:"NonLinearAds",children:t.ads.map((function(t){return{tag:"NonLinear",attributes:{id:t.id,width:t.width,height:t.height,expandedWidth:t.expandedWidth,expandedHeight:t.expandedHeight,scalable:t.scalable,maintainAspectRatio:t.maintainAspectRatio,minSuggestedDuration:Xn(t.minSuggestedDuration),apiFramework:t.apiFramework},children:rr(t.resources).concat([{tag:"NonLinearClickThrough",value:t.clickThrough,cdata:!0},or(t)])}})).concat([nr(t.trackingEvents)])}}};function nr(t){return{tag:"TrackingEvents",children:t.map((function(t){return{tag:"Tracking",attributes:{event:t.event},value:t.uri,cdata:!0}}))}}function rr(t){return t.map((function(t){return{tag:function(t){switch(t){case"static":return"StaticResource";case"iframe":return"IFrameResource";case"html":return"HTMLResource"}}(t.type),attributes:{creativeType:t.creativeType},value:t.data,cdata:!0}}))}function or(t){return{tag:"AdParameters",value:t.parameters}}var ar=Array.prototype.push,sr={inline:function(t){Gn({description:null,survey:null},t)},wrapper:function(){}},lr={linear:function(t){Gn({trackingEvents:[],parameters:null,videoClicks:null,skipOffset:-1},t),(t.mediaFiles||[]).forEach((function(t){Gn({id:null,bitrate:null,scalable:null,maintainAspectRatio:null,apiFramework:null},t)}))},companions:function(t){t.companions.forEach((function(t){Gn({expandedWidth:null,expandedHeight:null,apiFramework:null,trackingEvents:[],clickThrough:null,altText:null,parameters:null},t)}))},nonLinear:function(t){Gn({trackingEvents:[]},t),t.ads.forEach((function(t){Gn({id:null,expandedWidth:null,expandedHeight:null,scalable:null,maintainAspectRatio:null,minSuggestedDuration:null,apiFramework:null,clickThrough:null,parameters:null},t)}))}};function cr(){}function dr(t,e){this.raw=[];var i=t;(0,b.Z)(t)&&(this.raw.push(t),i=Fn(t,e)),Zn(i,this,!0),this.ads.forEach((function(t){Gn({system:{version:null},errors:[]},t),t.creatives.forEach((function(t){Gn({id:null,sequence:null,adID:null},t),lr[t.type](t)})),sr[t.type](t)})),this.__private__={wrappers:[],inlines:[]}}Object.defineProperties(dr.prototype,{wrappers:{get:function(){var t=this.__private__.wrappers;return t.length=0,ar.apply(t,this.filter("ads",(function(t){return"wrapper"===t.type}))),t}},inlines:{get:function(){var t=this.__private__.inlines;return t.length=0,ar.apply(t,this.filter("ads",(function(t){return"inline"===t.type}))),t}}}),dr.prototype.get=function(t){return((t||"").match(/[^\[\]\.]+/g)||[]).reduce((function(t,e){return t?t[e]:void 0}),this)},dr.prototype.set=function(t,e){var i=function(){for(var e,i=/[^\[\]\.]+/g,n=[];e=i.exec(t);)n.push({token:e[0],type:o(e,e.index+e[0].length)});return n}(),n=i.pop(),r=i.reduce((function(t,e){return t[e.token]||(t[e.token]=new e.type)}),this);function o(t,e){switch(t.input.charAt(e)){case".":return Object;case"[":return Array;case"]":return o(t,e+1);default:return null}}if(!t)throw new Error("prop must be specified.");return r[n.token]=e},dr.prototype.map=function(t,e){var i=this.get(t)||[],n=i.length,r=[];if(!(i instanceof Array))return r;for(var o=0;o<n;o++)r.push(e.call(this,i[o],o,i));return r},dr.prototype.filter=function(t,e){var i=this.get(t)||[],n=i.length,r=[];if(!(i instanceof Array))return r;for(var o=0;o<n;o++)e.call(this,i[o],o,i)&&r.push(i[o]);return r},dr.prototype.find=function(t,e){var i=this.get(t)||[],n=i.length;if(i instanceof Array)for(var r=0;r<n;r++)if(e.call(this,i[r],r,i))return i[r]},dr.prototype.toPOJO=function(){var t=JSON.parse(JSON.stringify(this));return delete t.__private__,t},dr.prototype.copy=function(){return new this.constructor(this.toPOJO())},dr.prototype.extend=function(t){return Object.assign(new this.constructor(In(this.toPOJO(),t)),{raw:this.raw})},dr.prototype.resolveWrappers=function(){var t,e=isNaN(arguments[0])?1/0:arguments[0],i="object"==typeof arguments[1]&&arguments[1]||{},n="function"==typeof arguments[0]?arguments[0]:"function"==typeof arguments[2]?arguments[2]:arguments[1],r=(this.constructor,this);function o(t,e){var i,n={linear:(i=t.creatives).filter(r("linear")),companions:i.filter(r("companions")),nonLinear:i.filter(r("nonLinear"))};function r(t){return function(e){return e.type===t}}return Gn(t.impressions,e.impressions),Gn(t.errors,e.errors),Gn(t.extensions,e.extensions),Gn(t.adVerifications,e.adVerifications),Gn(t.viewableImpressions,e.viewableImpressions),e.creatives.forEach((function(t){Gn(n[t.type].shift()||{},t)})),ar.apply(e.creatives,"wrapper"!==e.type?[]:["linear","companions","nonLinear"].reduce((function(t,e){return t.concat(n[e])}),[])),e}var a,s,l=this.get("wrappers");if(l&&1==l.length&&l[0]&&"string"==typeof l[0].vastAdTagURI){var c=l[0].vastAdTagURI.indexOf("https://partners.tremorhub.com/syncnoad?");if(c>=0&&c<10){if(l[0].errors&&l[0].errors.length>0)try{l[0].errors.forEach((function(t){t.length>10&&((new Image).src=t)}))}catch(t){}return pe.reject(new Error("drop tremor syncnoad wrapper"))}}if(0===e)return pe.reject(new Error("Too many redirects were made."));if((0,b.Z)(null==l||null==(t=l[0])?void 0:t.vastAdTagURI)){if(Me(l[0].vastAdTagURI,"wrapperUrl",i.asid||""))return pe.reject(new Error("URI blocked"));l[0].vastAdTagURI=(a=l[0].vastAdTagURI,void 0===s&&(s=!1),s||0===a.toLowerCase().indexOf("https://pubads.g.doubleclick.net/gampad/ads?")||0===a.toLowerCase().indexOf("https://googleads.g.doubleclick.net/pagead/ads?")?"https://tpc.googlesyndication.com/ima3vpaid?vad_format=linear&correlator=&adtagurl="+encodeURIComponent(a):a)}return Kn(pe.all(this.map("wrappers",(function(t){return yn((e=t.vastAdTagURI,(0,b.Z)(e)?wi(e):e),ae({},i,{credentials:"include"})).then((function(t){return t.text()})).then((function(e){return r.raw.push(e),{wrapper:t,response:Fn(e).ads}}));var e}))).then((function(t){var e=t.map((function(t){return t.wrapper})),i=t.map((function(t){return t.response}));return r.extend({ads:r.map("ads",(function(t){var n=e.indexOf(t),r=e[n],a=i[n];return a?a.map(o.bind(null,r)):[t]})).reduce((function(t,e){return t.concat(e)}),[])})})).then((function(t){return t.get("wrappers.length")>0?t.resolveWrappers(e-1,i):t})),(function(t,e){e||(e=r),"function"==typeof n&&n(t,e)}))},dr.prototype.toXML=function(){var t=this.validate();if(!t.valid)throw new Error("VAST is invalid: "+t.reasons.join(", "));return function(t){return er({tag:"VAST",attributes:{version:t.get("version")},children:t.map("ads",(function(t){return{tag:"Ad",attributes:{id:t.id},children:[{tag:function(){switch(t.type){case"inline":return"InLine";case"wrapper":return"Wrapper"}}(),children:[{tag:"AdSystem",attributes:{version:t.system.version},value:t.system.name},{tag:"AdTitle",value:t.title},{tag:"Description",value:t.description},{tag:"Survey",value:t.survey,cdata:!0},{tag:"VASTAdTagURI",value:t.vastAdTagURI,cdata:!0}].concat(t.errors.map((function(t){return{tag:"Error",value:t,cdata:!0}})),t.impressions.map((function(t){return{tag:"Impression",value:t.uri,cdata:!0,attributes:{id:t.id}}})),[{tag:"Creatives",children:t.creatives.map((function(t){return{tag:"Creative",attributes:{id:t.id,sequence:t.sequence,AdID:t.adID},children:[(e=t.type,ir[e](t))]};var e})),required:!0}])}]}}))},!0)}(this)},dr.prototype.validate=function(){var t=this,e=[],i={inline:function(e){var i={linear:function(t){a(t,{exists:["duration"],atLeastOne:["mediaFiles"]})},companions:function(e){t.get(e("companions")).forEach((function(t,i){a((function(t){return e("companions["+i+"]."+t)}),{exists:[],atLeastOne:["resources"]})}))},nonLinear:function(e){t.get(e("ads")).forEach((function(t,i){a((function(t){return e("ads["+i+"]."+t)}),{exists:[],atLeastOne:["resources"]})}))}};a(e,{exists:["title"],atLeastOne:["creatives"]}),t.get(e("creatives")).forEach((function(t,n){function r(t){return e("creatives["+n+"]."+t)}a(r,{exists:["type"],atLeastOne:[]}),(i[t.type]||cr)(r)}))},wrapper:function(t){a(t,{exists:["vastAdTagURI"],atLeastOne:[]})}};function n(t,i){t||e.push(i)}function r(e){n(t.get(e),e+" is required")}function o(e){n(t.get(e+".length")>0,e+" must contain at least one value")}function a(t,e){e.exists.map(t).forEach(r),e.atLeastOne.map(t).forEach(o)}return a((function(t){return t}),{exists:[],atLeastOne:["ads"]}),this.get("ads").forEach((function(t,e){function n(t){return"ads["+e+"]."+t}a(n,{exists:["type","system.name"],atLeastOne:["impressions"]}),(i[t.type]||cr)(n)})),{valid:0===e.length,reasons:0===e.length?null:e}},dr.fetch=function(t){var e="object"==typeof arguments[1]&&arguments[1]||{},i="function"==typeof arguments[2]?arguments[2]:arguments[1],n=this;return Kn(yn(t,e).then((function(t){return t.text()})).then((function(t){var i=new n(t,e.tagType);return e.resolveWrappers?i.resolveWrappers(e.maxRedirects,{credentials:"include",timeout:e.timeout}):i})),i)};var ur=dr;function pr(t,e){return fr.apply(this,arguments)}function fr(){return fr=(0,ce.Z)(le().mark((function t(e,i){var n,r,o,a;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===i&&(i={}),!e.vast){t.next=3;break}return t.abrupt("return",e.vast);case 3:if(n=!1,!(0,b.Z)(e.ad)||e.vastXml||e.vastUrl||e.vastJson||(o=e.ad.trim(),a=o.indexOf("<VAST"),(0==o.indexOf("<?xml")&&a>=0&&a<100||0==a)&&(e.vastXml=o)),!(0,b.Z)(e.vastXml)||!e.vastXml.trim()){t.next=13;break}if(r=new ur(hr(e.vastXml.trim(),e.cpm),e.type),!i.resolveWrappers){t.next=11;break}return t.next=10,r.resolveWrappers(i.maxRedirects,{timeout:i.timeout,asid:e.adId});case 10:r=t.sent;case 11:t.next=28;break;case 13:if(!(0,it.Z)(e.vastJson)){t.next=17;break}r=new ur(e.vastJson),t.next=28;break;case 17:if(!(0,b.Z)(e.vastUrl)||!e.vastUrl.trim()){t.next=23;break}return t.next=20,ur.fetch(hr(e.vastUrl.trim(),e.cpm),i);case 20:r=t.sent,t.next=28;break;case 23:if(!(0,b.Z)(e.vastXml)&&!(0,b.Z)(e.vastUrl)){t.next=27;break}n=!0,t.next=28;break;case 27:throw Error("No VAST");case 28:if(!n&&""!==r.raw[0]){t.next=30;break}throw Error("Empty VAST");case 30:return t.abrupt("return",r);case 31:case"end":return t.stop()}}),t)}))),fr.apply(this,arguments)}function hr(t,e){return ge(t,e)}var vr=r(907);function mr(t,e,i){if(e&&!Array.isArray(e)&&"number"==typeof e.length){var n=e.length;return(0,vr.Z)(e,void 0!==i&&i<n?i:n)}return t(e,i)}var gr=r(885);function yr(t){if(lt(t))return!0;if(Array.isArray(t)||(0,b.Z)(t))return!(t.length>0);for(var e in t)if(Dt(t,e))return!1;return!0}function br(t){return t.reduce((function(t,e){var i=mr(gr.Z,e,2),n=i[0],r=i[1];return t[n]=r,t}),{})}var Ar=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(){return(0,N.Z)(this,i),e.apply(this,arguments)}var n=i.prototype;return n.isSupportedAdSource=function(t){return t.type===Ce.Vast||"googima"===t.type},n.requestBids=function(t){var e=this;return this.requestTimestamp=me(),this.groupBidsRequests(this.adSources.map((function(i){return e.createBidsRequest(i,t)})))},n.groupBidsRequests=function(t){var e=this;return pe.allSettled(t.map((function(t,i){var n=e.adSources[i];return e.bidResponses[n.code]=e.createBidResponse({type:n.type}),t.catch((function(t){e.skipBid(e.createBid(n),t)})),t.then((function(t){return e.skipInvalidBids(t,n),t}))}))).then((function(){return e.bidResponses}))},n.createBidsRequest=function(t,e){var i=this;return Me(t.url,"vastUrl",t.asid)?this.resolveBidsVast([this.createBid(t,{vastXml:"",statusMessage:"blocked"})],e):this.fetch(t.url,e,t.vastConfig).then((0,ce.Z)(le().mark((function n(r){return le().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=i,n.t1=i,n.t2=t,n.next=5,r.text();case 5:return n.t3=n.sent,n.t4=r.statusText,n.t5={vastXml:n.t3,statusMessage:n.t4},n.t6=n.t1.createBid.call(n.t1,n.t2,n.t5),n.t7=[n.t6],n.t8=e,n.abrupt("return",n.t0.resolveBidsVast.call(n.t0,n.t7,n.t8));case 12:case"end":return n.stop()}}),n)}))))},n.fetch=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return yn(t,wr.apply(void 0,i)).then((function(t){if(!t.ok)throw Error(t.statusText);return t}))},n.resolveBidsVast=function(t,e){var i=this;return void 0===e&&(e={}),pe.all(t.map((0,ce.Z)(le().mark((function t(n){var r;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=ae,t.t1={},t.t2=n,t.next=6,pr(n,e);case 6:return t.t3=t.sent,t.t4={vast:t.t3},r=(0,t.t0)(t.t1,t.t2,t.t4),i.useBid(r),t.abrupt("return",r);case 13:t.prev=13,t.t5=t.catch(0),i.skipBid(n,t.t5);case 16:return t.abrupt("return",n);case 17:case"end":return t.stop()}}),t,null,[[0,13]])})))))},n.setImaBid=function(t,e){e.params={tagUrl:t};var i=e;i.imaRender=!0,i.response.imaRender=!0,function(t){t.imaRendererAd&&(t.imaRendererAd.skip=!0)}(this.player)},(0,F.Z)(i)}(function(){function t(e){(0,N.Z)(this,t),this.config=void 0,this.sdkConfig=void 0,this.player=void 0,this.adSources=[],this.adSourceMap={},this.requestTimestamp=void 0,this.bidsRequestPromise=void 0,this.bidResponses={},e&&this.setConfig(e)}var e=t.prototype;return e.reset=function(){this.adSources.length=0,this.adSourceMap={},this.bidResponses={}},e.setConfig=function(t){this.config=ae({},t),this.sdkConfig=ae({},t.sdkConfig||{})},e.setPlayer=function(t){this.player=t},e.addAdSource=function(t){this.adSources.push(t),this.adSourceMap[t.code]=t},e.getBidderName=function(t){return t.bidder||"aniview"},e.getBidResponses=function(){return this.bidResponses},e.getBidResponsesForAdSource=function(t){var e;return(null==(e=this.bidResponses[t.code])?void 0:e.bids)||[]},e.getUnreleasedBidResponses=function(){return br(Object.entries(this.bidResponses).filter((function(t){return!mr(gr.Z,t,2)[1].released})))},e.releaseBidResponses=function(){return br(Object.entries(this.bidResponses).filter((function(t){var e=mr(gr.Z,t,2)[1];return!e.released&&(e.released=e.bids.length>0||e.skippedBids.length>0,e.bids.length>0)})))},e.getAdSourceByCode=function(t){return this.adSourceMap[t]},e.addBidData=function(t){var e,i;t.bidData=ae({},t.bidData||{},{meta:t.meta||{},auctionId:t.auctionId,creativeId:t.creativeId||"",adserverTargeting:t.adserverTargeting||{},requestId:t.requestId||"",transactionId:t.transactionId||"",vastAdId:t.vast.get("ads[0].id"),vastCreativeId:t.vast.get("ads[0].creatives[0].id"),vastCreativeAdId:t.vast.get("ads[0].creatives[0].adID"),vastAdvertiserName:t.vast.get("ads[0].advertiser.name"),vastAdvertiserId:t.vast.get("ads[0].advertiser.id"),vastUniversalAdIds:t.vast.get("ads[0].universalAdIds"),adDomain:null!=(e=t.meta)&&e.advertiserDomains?t.meta.advertiserDomains[0]:"",advertiserDomains:(null==(i=t.meta)?void 0:i.advertiserDomains)||[],adSystem:t.vast.get("ads[0].system.name"),cpm:t.cpm,vastUrl:t.vastUrl,vast:t.vast,dealId:t.dealId})},e.useBid=function(t){this.addResponseTimestamp(t),this.addBidData(t),this.bidResponses[t.adUnitCode].bids.push(t)},e.skipBid=function(t,e){this.addResponseTimestamp(t),this.bidResponses[t.adUnitCode].skippedBids.push(t)},e.addResponseTimestamp=function(t){var e=me(),i=this.bidResponses[t.adUnitCode];null!=t.responseTimestamp||(t.responseTimestamp=e),t.timeToRespond=t.responseTimestamp-t.requestTimestamp,i.responseTimestamp=e,i.timeToRespond=i.responseTimestamp-i.requestTimestamp},e.skipInvalidBids=function(t,e){var i=this;t.length<=0?this.skipBid(this.createBid(e)):t.forEach((function(t){(0,it.Z)(t)||(t=i.createBid(e),i.skipBid(t))}))},e.skipAllBids=function(){var t=this;this.initBidResponses(),this.adSources.forEach((function(e){t.skipBid(t.createBid(e))}))},e.initBidResponses=function(){var t=this;yr(this.bidResponses)&&this.adSources.forEach((function(e){t.bidResponses[e.code]=t.createBidResponse({type:e.type})}))},e.createBidResponse=function(t){var e,i=t.type,n=t.bids,r=void 0===n?[]:n,o=t.skippedBids,a=void 0===o?[]:o,s=me();return{requestTimestamp:null!=(e=this.requestTimestamp)?e:s,responseTimestamp:s,timeToRespond:s-this.requestTimestamp,type:i,platform:this.label,bids:r,skippedBids:a}},e.createBid=function(t,e){var i;void 0===e&&(e={});var n=me();return ae({requestTimestamp:null!=(i=this.requestTimestamp)?i:n,responseTimestamp:n,timeToRespond:n-this.requestTimestamp},e,{type:t.type,adId:t.id,adUnitCode:t.code,bidder:this.getBidderName(t),floor:t.floor})},(0,F.Z)(t,[{key:"label",get:function(){return this.constructor.LABEL}},{key:"hasAdSources",get:function(){return this.adSources.length>0}}]),t}());function wr(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.reduce((function(t,e){var i=e.headers?Object.assign(t.headers||{},e.headers):null;return Object.assign(t,e),i&&(t.headers=i),t}),{})}function kr(t){if(!(0,it.Z)(t)||!(0,v.Z)(t,"Object"))return!1;var e=Object.getPrototypeOf(t);return null===e||null===Object.getPrototypeOf(e)||e===Object.getPrototypeOf(e)}var xr={};function _r(t,e){var i;void 0===e&&(e={});var n=e,r=n.globalThis,o=void 0===r?window:r,a=n.onSuccess,s=n.onError,l=n.sharedScriptsState,c=m(a),d=m(s),u=kr(l),p=u?l:xr,f=p[t];if(f&&(f.globalThis===o||u)){if(f.loaded){var h=pe.resolve(Object.assign({},f.event,{target:f.scriptElement,currentTarget:f.scriptElement}));return c&&h.then(a),h}return c&&f.successCallbacks.push(a),d&&f.errorCallbacks.push(s),f.promise}var v=e,g=v.async,y=v.keepElement,b=void 0!==y&&y,A=v.timeout,w=void 0===A?3e4:A,k=o.document.createElement("script"),x=c?[a]:[],_=d?[s]:[];return g&&(k.async=!0),f=p[t]={loaded:!1,globalThis:o,scriptElement:k,successCallbacks:x,errorCallbacks:_,promise:new pe((function(t,e){x.push(t),_.push(e)}))},k.charset="utf-8",k.timeout=w,k.src=t,k.onload=(0,ce.Z)(le().mark((function t(e){return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ve();case 2:Sr(f,b),f.loaded=!0,f.event=e,Cr(x,e),x.length=_.length=0;case 7:case"end":return t.stop()}}),t)}))),k.onerror=function(t,e,i,n,r){Sr(f,b),Cr(_,r||Error("Failed to load script: ".concat(k.src))),x.length=_.length=0},w>0&&(f.timerId=o.setTimeout((function(){Cr(_,Error("Load timeout")),x.length=_.length=0}),w)),null==(i=o.document.querySelector("head,body"))||i.appendChild(k),f.promise}function Sr(t,e){var i,n=t.scriptElement,r=t.timerId;(n.onerror=n.onload=null,t.globalThis.clearTimeout(r),e)||(null==(i=n.parentNode)||i.removeChild(n))}function Cr(t,e){t.forEach((function(t){t(e)}))}var Tr;function Ir(t,e){return(null==t?void 0:t.length)>0?t.filter((function(t){return e.indexOf(t.type)>-1})):[]}function Er(t,e){void 0===e&&(e={});var i,n=null,r=1e9,o=0,a=e.type||["static","iframe","html"],s=e.defaultHtml,l=cnf.width,c=cnf.height,d=ue(t,!0);try{for(d.s();!(i=d.n()).done;){var u,p=i.value;if(p.resources=Ir(p.resources,a),p&&(null==(u=p.resources)?void 0:u.length)>0){var f=p.width*p.height||l*c,h=f-Math.min(p.width||l,l)*Math.min(p.height||c,c);(h<r||h===r&&f>o)&&(r=h,n=p,o=f)}}}catch(t){d.e(t)}finally{d.f()}return!n&&s&&(n={width:l,height:c,resources:[{type:"static",data:s,creativeType:"html"}]}),n}function Pr(t){return(0,b.Z)(t)&&(t=t.trim())?"onclick=\"window.open('".concat(t,"')\""):""}function Vr(t){return(0,b.Z)(t)&&(t=t.trim())?'alt="'.concat(t,'"'):""}function Or(t,e){try{var i=function(t,e){if(t){var i=t.get("ads[0].creatives");if((null==i?void 0:i.length)>0){var n,r=ue(i,!0);try{for(r.s();!(n=r.n()).done;){var o,a=n.value;if((null==a||null==(o=a.companions)?void 0:o.length)>0){var s,l=Er(a.companions,{type:e});if((null==l||null==(s=l.resources)?void 0:s.length)>0){var c,d=ue(l.resources,!0);try{for(d.s();!(c=d.n()).done;){var u=c.value;if(u.type&&u.data)return{width:l.width||cnf.width,height:l.height||cnf.height,data:u.data,type:u.type,altText:l.altText,creativeType:u.creativeType,trackingEvents:l.trackingEvents,clickThrough:l.clickThrough,clickTracking:l.clickTracking}}}catch(t){d.e(t)}finally{d.f()}}}}}catch(t){r.e(t)}finally{r.f()}}}return null}(t,e.type||void 0);if(i){var n,r={width:i.width,height:i.height,type:"text",url:"",fullHtml:!0};e&&(e.fullSize&&"iframe"===i.type&&(r.width=cnf.width,r.height=cnf.height),r.width=Math.min(r.width,cnf.width),r.height=Math.min(r.height,cnf.height),e.background&&(r.background=e.background));var o=i.data.trim();switch(i.type){case"iframe":n='<iframe src="'.concat(o,'" width="').concat(r.width,'" height="').concat(r.height,'"></iframe>');break;case"static":["image/png","image/jpeg","image/jpg","image/bmp"].indexOf(i.creativeType)>-1?n='<img src="'.concat(o,'" ').concat(Vr(i.altText)," ").concat(Pr(i.clickThrough),' width="').concat(r.width,'" height="').concat(r.height,'"></img>'):"application/javascript"===i.creativeType&&(n=0==i.data.indexOf("http")?'<script src="'.concat(o,'"><\/script>'):"<script> ".concat(o," <\/script>"));break;case"html":n="<div ".concat(Vr(i.altText)," ").concat(Pr(i.clickThrough),">").concat(o,"</div>");break;default:return null}if(n){var a,s,l="";(null==(a=i.trackingEvents)?void 0:a.length)>0&&i.trackingEvents.forEach((function(t){t.uri&&"creativeView"===t.event&&(l="".concat(l,'<img src="').concat(t.uri,'" style="display:none;width:1px;height:1px"></img>'))}));var c="";if((null==(s=i.clickTracking)?void 0:s.length)>0){var d=JSON.stringify(i.clickTracking);c="".concat(d,".forEach(function(pixel){(new Image).src = pixel});")}var u='<script>if(typeof window.avpassback==="function"){window.avpassback("view");document.body.onclick=function(){'.concat(c,' window.avpassback("click");document.body.onclick=null;}}<\/script>');return r.url='<body style="margin:0;padding:0;">'.concat(n," ").concat(l," ").concat(u,"</body>"),r}}}catch(t){0}return null}function Rr(t,e,i){e&&(t.style.width="100%",t.style.height="100%",t.style.zIndex=cnf.maxzindex.toString(),t.style.position="absolute",t.style.display="block",e.width=Math.min(e.width,cnf.width),e.height=Math.min(e.height,cnf.height),Utils.loadScriptToIframe(t,e,cnf.width,cnf.height,i,e.playOnView))}function Lr(t){return Tr||((Tr=document.createElement("div")).id="anibid",function(t){var e;return t.position&&(e=document.getElementById(t.position)),e||t.positiondiv||t.slot}(t).appendChild(Tr)),Tr}function Ur(t,e){var i,n,r=document.createElement("div"),o="";return((0,b.Z)(null==(i=t.tag)?void 0:i.url)&&t.tag.url.indexOf(".lkqd.net")>-1||26==t.tag.platform)&&(o="\r",t.vastPlayer&&(t.vastPlayer.opt2=!0)),r.id=(null==(n=t.tag)?void 0:n.code)||"A".concat(o,"Vplayer").concat(t.sortOrder),function(t,e){t.style.top="-100000px",t.style.zIndex="1",function(t,e){t.style.top="0px",t.style.left="0px",t.style.width="".concat(e.width,"px"),t.style.height="".concat(e.height,"px"),t.style.display="block"}(t,e)}(r,e),r}var Dr=new(function(){function t(){(0,N.Z)(this,t),this.containers=[]}var e=t.prototype;return e.setElementStyle=function(t,e,i){t.style.width=t.style.height="100%",t.style.display="block",e&&(t.style.position="absolute",t.style.left=t.style.top="0px"),i&&(t.style.zIndex="-1")},e.setIframeStyles=function(t){t.src="javascript:false",t.style.border="none",t.scrolling="no",t.setAttribute("allow","autoplay"),t.contentWindow.document.body.style.margin="0"},e.create=function(t,e){var i={active:!0,element:Ur(t,e),slot:document.createElement("div"),videoSlot:document.createElement("video"),iframe:document.createElement("iframe"),imaDisplayContainer:null,adsLoader:null};return this.setElementStyle(i.element,!0,!0),this.setElementStyle(i.slot,!0,!1),this.setElementStyle(i.videoSlot,!0,!1),this.setElementStyle(i.iframe,!0,!1),i.videoSlot.muted=!0,i.videoSlot.setAttribute("playsinline","true"),i.videoSlot.setAttribute("webkit-playsinline","true"),i.element.appendChild(i.videoSlot),i.element.appendChild(i.iframe),e.slot.querySelector("#videoslot").appendChild(i.element),i.iframe.src="javascript:false",i.iframe.setAttribute("allow","autoplay"),i.iframe.contentWindow.document.open(),i.iframe.contentWindow.document.close(),this.setIframeStyles(i.iframe),i.iframe.contentWindow.document.body.appendChild(i.slot),i.imaDisplayContainer=new window.google.ima.AdDisplayContainer(i.slot,i.videoSlot),i},e.get=function(t,e){var i,n=ue(this.containers,!0);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(!r.active)return r.active=!0,r}}catch(t){n.e(t)}finally{n.f()}var o=this.create(t,e);return this.containers.push(o),o},e.release=function(t){t.active=!0},(0,F.Z)(t)}()),Mr=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(t,n){var r;return(0,N.Z)(this,i),(r=e.call(this)).player=void 0,r.data=void 0,r.adDisplayContainer=void 0,r.adsLoader=void 0,r.adsManager=void 0,r.eventMapping={},r.wnd=void 0,r.finished=void 0,r.cleaned=void 0,r.nonLinearTimer=void 0,r.ad=void 0,r.imaContainer=void 0,r.imaMode=void 0,r.companionDiv=void 0,r.onAdError=function(){r.cleanup(),r.dispatch("AdError")},r.onAdsManagerLoaded=function(t){var e,i,n=new window.google.ima.AdsRenderingSettings;n.restoreCustomPlaybackStateOnAdBreakComplete=!1,n.loadVideoTimeout=2e4,n.useStyledNonLinearAds=!0,n.bitrate=350;var o=r.data.imaadrules&&r.player.config.contentvideo&&r.data.tagUrl.indexOf("ad_rule=1")>1?cnf.contentvideo:{currentTime:0},a=(null==(e=r.data.iasConfigs)?void 0:e.length)&&m(null==(i=r.wnd.googleImaVansAdapter)?void 0:i.init);a&&(o=cnf.contentvideo||r.data.videoSlot||o),r.adsManager=t.getAdsManager(o,n),a&&r.data.iasConfigs.forEach((function(t){null!=t&&t.anId&&null!=t&&t.chanId&&r.wnd.googleImaVansAdapter.init(r.wnd.google,r.adsManager,o,t)})),r.adsManager.addEventListener(r.wnd.google.ima.AdErrorEvent.Type.AD_ERROR,r.onAdError);var s=r.wnd.google.ima.AdEvent.Type,l=r.eventMapping;l[s.LOADED]={vpaidEvt:"AdLoaded"},l[s.IMPRESSION]={vpaidEvt:"AdImpression"},l[s.CLICK]={vpaidEvt:"AdClickThru"},l[s.FIRST_QUARTILE]={vpaidEvt:"AdVideoFirstQuartile"},l[s.MIDPOINT]={vpaidEvt:"AdVideoMidpoint"},l[s.THIRD_QUARTILE]={vpaidEvt:"AdVideoThirdQuartile"},l[s.COMPLETE]={vpaidEvt:"AdVideoComplete"},l[s.STARTED]={vpaidEvt:"AdVideoStart"},l[s.INTERACTION]={vpaidEvt:"AdInteraction"},l[s.LOG]={vpaidEvt:"AdLog"},l[s.PAUSED]={vpaidEvt:"AdPaused"},l[s.RESUMED]={vpaidEvt:"AdPlaying"},l[s.SKIPPED]={vpaidEvt:"AdSkipped"},l[s.DURATION_CHANGE]={vpaidEvt:"AdDurationChange"},l[s.SKIPPABLE_STATE_CHANGED]={vpaidEvt:"AdSkippableStateChange"},l[s.USER_CLOSE]={vpaidEvt:"AdUserClose"},l[s.VOLUME_CHANGED]={vpaidEvt:"AdVolumeChange"},l[s.ALL_ADS_COMPLETED]={vpaidEvt:"AdStopped"},l.adBreakFetchError={vpaidEvt:"AdError"};var c=!1,d=function(t){var e=function(e){var i={count:1,lastPod:!0};t===s.IMPRESSION&&r.show(),t!==s.COMPLETE&&t!==s.SKIPPED&&t!==s.ALL_ADS_COMPLETED&&t!==s.USER_CLOSE||r.hide();try{if(t===s.STARTED&&e&&(r.ad=e.getAd(),r.handleAudioAdsCompanion(r.ad)),t===s.LOADED&&(c=!0),(t===s.IMPRESSION||t===s.SKIPPED||t===s.LOADED||t===s.COMPLETE)&&(e&&(r.ad=e.getAd()),r.ad)){t===s.IMPRESSION&&r.handleNonLinearTextAd(r.ad);var n=r.ad.getAdPodInfo();if(n){var o="",a="",l=[],d=[];try{var u;o=r.ad.getAdId(),(null==(u=l=r.ad.getWrapperAdIds())?void 0:u.length)>0&&l[l.length-1]&&(o=l[l.length-1]),a=r.ad.getDealId(),d=r.ad.getWrapperCreativeIds()}catch(t){}(i={pos:n.getAdPosition(),count:r.player.config.podsupport?n.getTotalAds():1,dur:n.getMaxDuration(),width:r.ad.getVastMediaWidth(),height:r.ad.getVastMediaHeight(),skipOffset:r.ad.getSkipTimeOffset(),bidData:{vastAdId:o,vastAdIds:l,vastCreativeIds:d,adTitle:r.ad.getTitle(),dealId:a}}).lastPod=1==i.count||i.pos>=i.count}}}catch(t){}(t==s.COMPLETE&&i.lastPod||t==s.SKIPPED&&(i.lastPod||r.player.config.podskipall)||t==s.USER_CLOSE||t==s.ALL_ADS_COMPLETED)&&(r.finished=!0,setTimeout((function(){r.cleanup()}),400)),r.dispatch(r.eventMapping[t].vpaidEvt,i)};l[t]&&(l[t].handler=e),r.adsManager.addEventListener(t,e)};for(var u in l)d(u);r.adsManager.init(r.data.width,r.data.height,r.wnd.google.ima.ViewMode.NORMAL),setTimeout((function(){c||r.finished||r.cleaned||r.dispatch("AdLoaded")}),2e3)},r.isLinear=function(){if(this.ad)return this.ad.isLinear()},r.player=t,r.imaMode=n,r}var n=i.prototype;return n.hide=function(){this.imaMode>0&&(this.imaContainer.element.style.zIndex="-1")},n.show=function(){this.imaMode>0&&(this.imaContainer.element.style.zIndex=(this.player.config.maxzindex||9999).toString(),!this.imaContainer.videoSlot.src&&this.imaContainer.videoSlot.childElementCount)},n.cleanup=function(){var t=this;if(!this.cleaned){if(this.cleaned=!0,this.imaContainer&&(this.hide(),this.imaContainer.active=!1,this.imaContainer=null,this.adDisplayContainer=null),this.adsLoader){this.adsLoader.contentComplete();try{this.adsLoader.removeEventListener(this.wnd.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded,!1)}catch(t){}try{this.adsLoader.removeEventListener(this.wnd.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError,!1)}catch(t){}this.imaMode>0&&(this.adsLoader=null)}if(this.companionDiv)try{this.companionDiv.parentNode.removeChild(this.companionDiv),this.companionDiv=null}catch(t){}for(var e in this.eventMapping)this.eventMapping[e].handler&&this.adsManager.removeEventListener(e,this.eventMapping[e].handler),this.eventMapping[e].handler=null;setTimeout((function(){try{t.adsLoader&&(t.adsLoader.contentComplete(),t.adsLoader.destroy(),t.adsLoader=null),t.adsManager&&(t.adsManager.destroy(),t.adsManager=null),t.adDisplayContainer&&(t.adDisplayContainer.destroy(),t.adDisplayContainer=null)}catch(t){}}),2e3),this.nonLinearTimer&&(clearTimeout(this.nonLinearTimer),this.nonLinearTimer=0),this.ad=null}},n.createAdDisplayContainer=function(){var t=this.data.slot,e=this.data.videoSlot;try{var i=this.player.config.imalang||navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage;(0,b.Z)(i)&&i.length>=2&&(i=i.substring(0,2),window.google.ima.settings.setLocale(i))}catch(t){}this.imaMode>0?(this.imaContainer=Dr.get({tag:{},sortOrder:"ima"},this.player.config),this.adDisplayContainer=this.imaContainer.imaDisplayContainer):this.adDisplayContainer=new window.google.ima.AdDisplayContainer(t,e)},n.handleAudioAdsCompanion=function(t){if(t)try{var e=t.getContentType();if(!["audio/mpeg","audio/mp3","audio/mp4"].includes(e))return;var i=[],n=new window.google.ima.CompanionAdSelectionSettings;n.sizeCriteria=window.google.ima.CompanionAdSelectionSettings.SizeCriteria.IGNORE,t.getCompanionAds(1,1,n).forEach((function(t){var e={width:t.getWidth(),height:t.getHeight(),altText:null,resources:[{type:"html",data:t.getContent(),creativeType:""}],clickThrough:null,trackingEvents:[]};i.push(e)}));var r=Er(i,{defaultHtml:'<img src="https://player.aniview.com/script/6.1/img/audioad.png" style="width:100%"></img>'});if(!r)return;var o=document.createElement("div");o.style.cssText="position: absolute;width: 100%; height:100%; top: 0px; left: 0px; z-index: 2;display:block;";var a=this.imaMode>0?this.imaContainer.slot:this.data.slot;this.companionDiv=o,a.appendChild(o),Rr(o,{width:r.width,height:r.height,type:"text",url:r.resources[0].data},(function(){}))}catch(t){}},n.handleNonLinearTextAd=function(t){var e=this;if(!this.finished&&t)try{var i=t.getContentType()||"";(i.indexOf("image")>-1||"text"==i||!t.isLinear())&&t.getMinSuggestedDuration()<=0&&t.getDuration()<=0&&(this.nonLinearTimer=setTimeout((function(){e.finished||(e.finished=!0,e.nonLinearTimer=0,e.dispatch("AdStopped"),setTimeout((function(){e.cleanup()}),400))}),1e3*this.data.imanltimeout))}catch(t){}},n.setUpIMA=function(t,e){var i;this.data=t,this.wnd=e;try{t.imaVpaidMode&&void 0!==e.google.ima.ImaSdkSettings.VpaidMode[t.imaVpaidMode]?(e.google.ima.settings.setVpaidMode(e.google.ima.ImaSdkSettings.VpaidMode.ENABLED),e.google.ima.settings.setVpaidMode(e.google.ima.ImaSdkSettings.VpaidMode[t.imaVpaidMode])):e.google.ima.settings.setVpaidMode(e.google.ima.ImaSdkSettings.VpaidMode.INSECURE),t.imaiOSSkip&&/iPhone|iPod|iPad/.test(navigator.userAgent)&&e.google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0),e.google.ima.settings.setAutoPlayAdBreaks(!1)}catch(t){}t.ppid&&e.google.ima.settings.setPpid(t.ppid),this.createAdDisplayContainer(),this.imaMode>0&&(this.adsLoader=this.imaContainer.adsLoader),this.adsLoader=this.adsLoader||new e.google.ima.AdsLoader(this.adDisplayContainer),this.imaMode>0&&(this.imaContainer.adsLoader=this.adsLoader);try{t.imaVpaidMode&&void 0!==e.google.ima.ImaSdkSettings.VpaidMode[t.imaVpaidMode]&&this.adsLoader.getSettings().setVpaidMode(e.google.ima.ImaSdkSettings.VpaidMode[t.imaVpaidMode]),this.adsLoader.getSettings().setNumRedirects(6)}catch(t){}this.adsLoader.addEventListener(e.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded,!1),this.adsLoader.addEventListener(e.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError,!1);var n={};if((null==(i=this.player.config.mediatypes)||null==(i=i.video)?void 0:i.maxduration)>4&&(n.max_ad_duration=n.skippable_max_ad_duration=1e3*this.player.config.mediatypes.video.maxduration),t.imaSetPlcmt&&this.player.plcmt){var r=Number(this.player.plcmt)>2?Yt.AccompanyingContent:this.player.plcmt;n.plcmt=r.toString()}var o=new e.google.ima.AdsRequest,a="";cnf&&cnf.ctinfo&&(cnf.ctinfo.duration>0&&t.imaSetVidD&&(o.contentDuration=Math.floor(cnf.ctinfo.duration),n.vid_d=o.contentDuration),cnf.ctinfo.title&&(o.contentTitle=cnf.ctinfo.title),cnf.ctinfo.keywords&&(0,b.Z)(cnf.ctinfo.keywords)&&(o.contentKeywords=cnf.ctinfo.keywords.split(","))),t.tagUrl&&(void 0!==t.imaAutoplay&&(n.vpa=this.data.imaAutoplay?"auto":"click",o.setAdWillAutoPlay(this.data.imaAutoplay)),void 0!==t.imaMuted&&(n.vpmute=this.data.imaMuted?"1":"0",o.setAdWillPlayMuted(this.data.imaMuted)),a=function(t,e){var i=t.split("?"),n=i[0];try{var r=new URLSearchParams(i[1]||"");return Object.keys(e).forEach((function(t){r.set(t,e[t])})),"".concat(n,"?").concat(r.toString())}catch(e){return t}}(t.tagUrl||"",n));var s={url:a,vastXml:t.vastXml};this.player.thePlayer.onBeforeAdRequest({asid:this.data.asid,type:"ima",adUnit:s}),t.vastXml?o.adsResponse=t.vastXml:o.adTagUrl=s.url||a,o.linearAdSlotWidth=this.data.width,o.linearAdSlotHeight=this.data.height,o.nonLinearAdSlotWidth=this.data.width,o.nonLinearAdSlotHeight=this.data.height,this.player.macros.AV_APPPKGNAME||Utils.getTopWnd()===top&&!this.player.config.imasetpageurl||(o.pageUrl=Utils.getTrueDomain()),t.imanltimeout=t.imanltimeout>7?t.imanltimeout:15,this.adsLoader.requestAds(o)},n.playAds=function(){this.adDisplayContainer.initialize();try{this.adsManager.start()}catch(t){}},n.setVolume=function(t){var e;this.adsManager&&this.adsManager.setVolume(t),null!=(e=this.data)&&e.videoSlot&&(this.data.videoSlot.muted=!(t>0),this.data.videoSlot.volume=t)},n.getVolume=function(){if(this.adsManager)return this.adsManager.getVolume()},n.getDuration=function(){if(this.ad){var t=this.ad.getDuration();if(t>0)return t;if(!this.ad.isLinear()){var e=this.ad.getMinSuggestedDuration();if(e>0)return e}return t}},n.getRemainingTime=function(){if(this.adsManager)return this.adsManager.getRemainingTime()},n.stop=function(){if(this.adsManager)return this.adsManager.stop();this.cleanup()},n.resize=function(t,e,i){if(this.adsManager){var n=this.wnd.google.ima.ViewMode.NORMAL;return"fullscreen"==i&&(n=this.wnd.google.ima.ViewMode.FULLSCREEN),this.adsManager.resize(t,e,n)}},n.pause=function(){if(this.adsManager)return this.adsManager.pause()},n.resume=function(){if(this.adsManager)return this.adsManager.resume()},n.skip=function(){if(this.adsManager)return this.adsManager.skip()},n.getWidth=function(){if(this.ad)return this.ad.getWidth()},n.getHeight=function(){if(this.ad)return this.ad.getHeight()},n.getAdSkippableState=function(){if(this.adsManager)return this.adsManager.getAdSkippableState()},(0,F.Z)(i)}(B),qr=r(2982),jr="js",Fr="jsomp4",Nr="display",Br="video";function Zr(t){var e;try{if((0,b.Z)(t.template))e=function(t,e,i){var n=window.cnf;if(null!=n&&n.updatetag)try{t=(0,n.updatetag)(t,e,i)||t}catch(t){}return t}(e=Ei(decodeURIComponent(t.template),t),t.type,t.asid)}catch(t){0}return e}function zr(t){if((0,b.Z)(t))try{return JSON.parse(t)}catch(t){0}}var Wr=function(){function t(e){var i;(0,N.Z)(this,t),this.type=void 0,this.creativeType=void 0,this.placementBehaviour=Te.InFeed,this.bidder=void 0,this.ct=void 0,this.floor=void 0,this.playerSettings=void 0,this.npl=void 0,this.ntp=void 0,this.response=void 0,this.asid=void 0,this.ismp=void 0,this.asid=e.asid,this.ismp=e.ismp,this.type=e.type.toLowerCase(),this.floor=Ye(null==(i=e.ac)?void 0:i.fp)?e.ac.fp:0,this.playerSettings=e.playerSettings||{},this.ntp=e.ntp,this.npl=e.npl}return(0,F.Z)(t,[{key:"id",get:function(){return this.asid||this.type}},{key:"responseId",get:function(){return this.type===Ce.S2S?this.type:this.asid}}]),t}();function Hr(t,e){var i=Object.assign({},e);Object.getOwnPropertyNames(t).concat(Object.getOwnPropertyNames(Object.getPrototypeOf(t))).forEach((function(t){delete i[t]})),Object.assign(t,i)}var Gr="59c9148628a0612da3689288",Kr="5e0e296628a061270b21ccab",Jr="58a5addb28a0612d3529bc5e",Xr="5a16a1b928a0616e7966522d",Qr=0,Yr=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(t){var n,r;if((0,N.Z)(this,i),(r=e.call(this,t)).creativeType=Br,r.context=void 0,r.code=void 0,r.priority=void 0,r.price=void 0,r.url=void 0,r.asid=void 0,r.params=void 0,r.vastConfig=void 0,r.roundedFloor=void 0,r.floor=void 0,r.imaFloor=void 0,r.trackingParams=void 0,r.hasHcpm=void 0,r.ismp=void 0,r.hasDynFloor=!0,r.imaRender=void 0,r.skip=void 0,r.fixedTemplate=void 0,r.fixedUrl=void 0,r.geoEdge=void 0,r.asCtx=void 0,Hr((0,Ie.Z)(r),t),r.response=t,r.code=t.asid?"av_".concat(t.asid.toString().replace(/\|/g,"-"),"_").concat(Qr):"".concat(r.creativeType.toLowerCase(),"_").concat(Qr),++Qr,r.priority=parseInt(String(t.priority))||1,r.price=parseFloat(String(t.price))||0,t.type===Ce.Vast||t.type===Ce.Video||t.type===Ce.S2S?r.fixedUrl=function(t){function e(){var t=Date.now();return(t-1e10*Math.floor(t/1e10)).toString()}var i=t.url||"",n=i;if(n&&(-1==n.search(/\[AVC_RANDOM\]/i)?-1==n.search(/cb=/i)?-1!=n.indexOf(".rubiconproject.")||t.playerSettings&&t.playerSettings.noCb||-1==n.indexOf("?")||(n=n+"&cbb="+e()):n=function(t,i){var n,r=t.search(i)+i.length;n=-1==t.indexOf("&",r)?t.length:t.indexOf("&",r);var o=(t=(t=t.replace(t.slice(r,n),"")).trim()).search(i)+i.length;return[t.slice(0,o),e(),t.slice(o)].join("")}(n,"cb="):n=n.replace("[AVC_RANDOM]",e()),n))try{n=function(t,e,i){var n=window.cnf;if(null!=n&&n.updatetag)try{t=(0,n.updatetag)(t,e,i)||t}catch(t){}return t}(n=Ei(n,t),t.type,t.asid)}catch(t){}return t.type!=Ce.googima&&0!=i.toLowerCase().indexOf("https://googleads.g.doubleclick.net/pagead/ads?")||(n="https://tpc.googlesyndication.com/ima3vpaid?vad_format=linear&correlator=&adtagurl="+encodeURIComponent(i)),n}(t):(r.fixedTemplate=Zr(t),r.fixedUrl=t.url),r.url=r.fixedUrl||t.url||"",r.asid=t.asid,r.roundedFloor=t.roundedFloor,r.floor=pi.getAdSourceFloor(t.asid),r.params=zr(r.fixedTemplate||t.template),r.trackingParams=t.trackingParams,r.ismp=t.ismp||t.nid===Gr,r.asCtx=t.asCtx,ti(t)&&(0,b.Z)(t.template)&&(0,b.Z)(r.trackingParams))try{var o=t.template.match(/AVC_FLOOR_01|AVC_FLOOR_05|AVC_FLOOR_1|AVC_FLOOR_G|AVC_HCPM/g)||[""],a=null!=o&&o[0]?"[".concat(o[0],"]"):"";r.hasDynFloor=!!a,r.hasHcpm="AVC_HCPM"===(null==o?void 0:o[0]),null!=o&&o[0]&&r.trackingParams.indexOf("[AVC_FLOOR]")<0&&(r.trackingParams="".concat(r.trackingParams,"&ofpr=[AVC_FLOOR]")),r.trackingParams=r.trackingParams.replace(/\[AVC_FLOOR\]/g,a)}catch(t){0}return r.vastConfig={adType:r.type,credentials:1!==Number(null==(n=t.playerSettings)?void 0:n.nc)?"include":"omit",vpaidPriority:$r(t)},r}return(0,F.Z)(i,[{key:"cbtic",get:function(){var t;return(null==(t=this.playerSettings)?void 0:t.cbtic)>0?this.playerSettings.cbtic:0}}]),i}(Wr);function $r(t){switch(t.vpp){case He:return jr;case Ge:return Fr}}var to=755298539,eo=function(t){return t.NONE="",t.ACTIVE="Y",t.ABTEST="N",t.MP_ACTIVE="0Y",t.MP_ABTEST="0N",t}({}),io="av_eids611",no="av_eids613",ro="av_uid611",oo="av_uidt611",ao="av_uidp1",so=function(){function t(){(0,N.Z)(this,t),this.avintentiq={partner:0},this.isIntentIqMP=void 0,this.avuid=void 0,this.aveids=void 0,this.pwteids=void 0,this.iiqeids=void 0,this.consent=!1,this.storage={},this.pwt=void 0,this.intentIq=void 0,this.isItiqInited=!1,this.useIiqPpid=!1,this.iiqPpid=null}var e=t.prototype;return e.initIntentiq=function(t,e,i){var n,r=this;!this.isItiqInited&&null!=t&&null!=(n=t.avintentiq)&&n.partner&&(this.isItiqInited=!0,_r("".concat(e).concat("libs/intentIq/intentIq.js")).then((function(){var e=t.avintentiq,n=(e.partner,e.timeout,t.avintentiq),o={partner:n.partner,timeoutInMillis:n.timeoutInMillis||n.timeout||5e3,callback:function(){r.intentIqCallback.apply(r,arguments)},uid:n.uid,siloEnabled:n.siloEnabled};r.avintentiq=n,"pbjs"===n.mode&&(window.pbjs=window.pbjs||{},window.pbjs.que=window.pbjs.que||[],o.pbjs=window.pbjs),St()&&null!=i&&i.AV_APPPKGNAME&&(i.AV_IDFA||i.AV_AID?(o.partnerClientId=i.AV_IDFA||i.AV_AID,o.partnerClientIdType=4):(i.AV_IDFV||i.AV_APPSETID)&&(o.partnerClientId=i.AV_IDFV||i.AV_APPSETID,o.partnerClientIdType=1));try{r.intentIq=new IntentIqObject(o)}catch(t){0}})).catch((function(t){0})))},e.intentIqCallback=function(t){var e=null==t?void 0:t.eids;if((null==e?void 0:e.length)>0){var i=this.distinctEidsBySource(e),n=this.eidsToUserId(i);(null==i?void 0:i.length)>0&&((n=n||{}).pubProvidedId=i);var r={t:Date.now(),userIdAsEids:i,userId:n};this.setKey(r,no,"iiqeids")}},e.getIntentIqCache=function(){return this.getExternalId({},{cacheKey:"iiqeids",storageKey:no,refreshDays:1,updateCallback:null})},e.getIntentPlatfromId=function(t){switch(t){case"pb":case"pbs":return 1;case"s2s":return 4;default:return null}},e.shouldReport=function(t){return["pb","pbjs","s2s"].indexOf(t.type)>-1&&(this.avintentiq.all||t.ismp)},e.getIntentIqEids=function(){if(this.isItiqInited){var t,e=this.getIntentIqCache();if((null==e||null==(t=e.userIdAsEids)?void 0:t.length)>0)return null==e?void 0:e.userIdAsEids}return[]},e.getIntentIqUserId=function(){if(this.isItiqInited){var t=this.getIntentIqCache();if(null!=t&&t.userId)return t.userId}return null},e.getIntentIqPPID=function(){if(this.isItiqInited&&null===this.iiqPpid){var t=this.getIntentIqCache();if(null!=t&&t.userIdAsEids){this.iiqPpid="";var e,i=ue(t.userIdAsEids,!0);try{for(i.s();!(e=i.n()).done;){var n,r=e.value;"intentiq.com"===(null==r?void 0:r.source)&&(0,b.Z)(null==(n=r.uids)||null==(n=n[0])?void 0:n.id)&&r.uids[0].id.length>20&&(this.iiqPpid=r.uids[0].id)}}catch(t){i.e(t)}finally{i.f()}}}return this.iiqPpid},e.getIntentIqStateTracking=function(t){return t?this.isIntentIqMP?t===eo.ACTIVE?eo.MP_ACTIVE:eo.MP_ABTEST:t:eo.NONE},e.checkIntentIqTraffic=function(t){var e;if(t.uidproviders=t.uidproviders||{},t.iiqpartner){var i=parseInt(String(t.iiqpartner));i&&(t.uidproviders.avintentiq={partner:i,all:i!==to})}var n=t.uidproviders;if(null==n||null==(e=n.avintentiq)||!e.partner)return null;n.avintentiq.partner=parseInt(String(n.avintentiq.partner));var r=n.avintentiq,o=r.partner,a=r.os,s=r.managedAB,l=Array.isArray(a)?a:[],c=ht()||"mac"===mt()&&"safari"===pt()||l.includes(mt())||"firefox"===pt();if(!o||!c)return null;if(this.isIntentIqMP=o===to,this.useIiqPpid=!!t.useiiqppid,s)return eo.ACTIVE;var d=this.getStorage(ao,!0);if(d)return d;var u=Math.random()>.05?eo.ACTIVE:eo.ABTEST;return this.setStorage(ao,u),u},e.isIntentIqAdSource=function(t,e,i,n){return(t||e===Gr||n)&&(i===Ce.Prebid||i===Ce.PrebidServer||i===Ce.S2S)},e.fixTDID=function(t){if(t&&0!=t.length){var e,i=ue(t,!0);try{var n=function(){var t=e.value;if("adserver.org"===(null==t?void 0:t.source)&&t.uids){var i,n=!1;return t.uids.forEach((function(t){var e;"TDID"===(null==t||null==(e=t.ext)?void 0:e.rtiPartner)?n=!0:t.id&&(i=t.id)})),!n&&i&&t.uids.push({atype:1,ext:{rtiPartner:"TDID"},id:i}),{v:void 0}}};for(i.s();!(e=i.n()).done;){var r=n();if("object"==typeof r)return r.v}}catch(t){i.e(t)}finally{i.f()}}},e.distinctEidsBySource=function(t){var e=[];return(t=t||[]).reduce((function(t,i){return null!=i&&i.source&&!e.includes(i.source)?(e.push(i.source),[].concat(mr(qr.Z,t),[i])):t}),[])},e.mergeEids=function(t,e){return this.distinctEidsBySource([].concat(mr(qr.Z,t||[]),mr(qr.Z,e||[])))},e.mergeUserIds=function(t,e){return ae({},e=e||{},t=t||{})},e.mergeIds=function(t,e){return t=t||{},e=e||{},{userId:this.mergeUserIds(t.userId||{},e.userId||{}),userIdAsEids:this.mergeEids(t.userIdAsEids||[],e.userIdAsEids||[])}},e.setConsent=function(t){if(!this.consent&&t){this.consent=!0;var e=Object.keys(this.storage);if(e.length>0)for(var i=0;i<e.length;i++){var n=e[i],r=this.storage[n];try{localStorage.setItem(n,r)}catch(t){0}}}},e.setStorage=function(t,e){if(this.consent)try{localStorage.setItem(t,e)}catch(t){0}else this.storage[t]=e},e.getStorage=function(t,e){return(this.consent||e?localStorage.getItem(t):this.storage[t])||null},e.getPPID=function(){return this.useIiqPpid&&this.getIntentIqPPID()||this.getId()},e.getId=function(t){if(this.avuid)return this.avuid;try{this.avuid=this.getStorage(ro,t)}catch(t){0}return this.avuid},e.setId=function(t){try{"string"==typeof t&&t.length>10&&(this.setStorage(ro,t),this.avuid=t)}catch(t){0}},e.filterSync=function(t,e){void 0===e&&(e=24);try{var i,n=this.getStorage(oo);if(n)try{i=JSON.parse(n)}catch(t){0}i&&1==i.ver||(i={ver:1});var r=!1,o={};if(t=(t||[]).filter((function(t){if(t&&"sync"===t.e&&t.pr){var n=t.st||e,a=Math.floor(Date.now()/1e3/60/60);if((i[t.pr]||0)+n>a)return!1;o[t.pr]=a,r=!0}return!0})),r){Object.assign(i,o);var a=JSON.stringify(i);this.setStorage(oo,a)}}catch(t){0}return t},e.setEids=function(t){if(t){t.t=Date.now();try{var e=JSON.stringify(t);this.setStorage(io,e),this.aveids=t}catch(t){0}}},e.setKey=function(t,e,i){if(t){t.t=Date.now();try{if(e){var n=JSON.stringify(t);this.setStorage(e,n)}i&&(this[i]=t)}catch(t){0}}},e.updatePwt=function(t,e){var i=this;if(window.owpbjs&&window.owpbjs.getUserIdsAsEids&&window.owpbjs.getUserIds){var n=window.owpbjs.getUserIdsAsEids();if(n){var r={userId:window.owpbjs.getUserIds(),userIdAsEids:n};this.setKey(r,e.storageKey,e.cacheKey)}}else!this.pwt&&t&&(this.pwt=!0,_r(t,{onSuccess:function(){setTimeout((function(){i.updatePwt(t,e)}),2e3),setTimeout((function(){i.updatePwt(t,e)}),5e3),setTimeout((function(){i.updatePwt(t,e)}),1e4)},onError:function(){}}).catch((function(t){0})))},e.updateAVEids=function(t,e){!yr(t)&&i(t)&&this.setKey(t,e.storageKey,e.cacheKey)},e.getExternalId=function(t,e){var i=e.cacheKey,n=e.storageKey,r=e.updateCallback,o=e.refreshDays,a=void 0===o?3:o,s=e.validDays,l=void 0===s?7:s;if(this[i])return this[i];if(t&&n)try{var c,d=this.getStorage(n),u=100;if(d){try{c=JSON.parse(d)}catch(t){0}c&&c.t&&(u=(Date.now()-c.t)/864e5)<l&&(this[i]=c)}u>a&&r&&r.apply(this,arguments)}catch(t){0}return this[i]},e.getPwtEids=function(t){var e=this;return this.getExternalId(t,{cacheKey:"pwteids",storageKey:"av_eids612",refreshDays:3,validDays:30,updateCallback:function(){return e.updatePwt.apply(e,arguments)}})},e.getAVEids=function(t){var e=this;return this.getExternalId(t||" ",{cacheKey:"aveids",storageKey:io,refreshDays:3,validDays:30,updateCallback:function(){return e.updateAVEids.apply(e,arguments)}})},e.getOrtbEids=function(t,e){return yr(t)||yr(t.userIdAsEids)||((e=e||{}).user=e.user||{},e.user.ext=e.user.ext||{},e.user.ext.eids=t.userIdAsEids),e},e.eidsToUserId=function(t){if(Array.isArray(t)){var e={},i={"adserver.org":"tdid","id5-sync.com":"id5id","liveramp.com":"idl_env","britepool.com":"britepoolid","criteo.com":"criteoId","pubcid.org":"pubcid"};return t.forEach((function(t){if(t&&t.source&&i[t.source]){var n=i[t.source],r=t.uids;!e[n]&&r&&r[0]&&r[0].id&&(e[n]=r[0].id)}})),e}return null},(0,F.Z)(t)}(),lo=new so,co=[[300,250],[200,200],[240,400],[250,250],[1,1],[250,360],[336,280],[580,400]];function uo(t,e,i,n){var r=t;t=window;var o=new Mr(window.AV_player,n.imaMode);function a(t,e){var i,n=!1,r=!(null!=(i=t.iasConfigs)&&i.length),a=!1;function s(){n&&r&&!a&&(a=!0,e(t))}_r("https://imasdk.googleapis.com/js/sdkloader/ima3.js").then((function(){n=!0,s()})).catch((function(){o.dispatch("AdError")})),r||(_r("https://static.adsafeprotected.com/vans-adapter-google-ima.js").then((function(){r=!0,s()})).catch((function(){r=!0,s()})),setTimeout((function(){r=!0,s()}),2e3))}function s(e,i,n,s,l,c){var d={};if(l&&l.AdParameters){if("string"==typeof l.AdParameters)try{d=JSON.parse(l.AdParameters.trim())}catch(t){return void o.dispatch("AdError")}else"object"==typeof l.AdParameters&&(d=l.AdParameters);d.slot=c.slot,d.videoSlot=c.videoSlot,d.width=e,d.height=i,d.lang=c.imaLang,d.imaAutoplay=c.imaAutoplay,d.imaMuted=c.imaMuted,d.imaiOSSkip=c.imaiOSSkip,d.imaVpaidMode=c.imaVpaidMode,d.imaplayer=c.imaplayer,d.imanltimeout=c.imanltimeout,d.imaadrules=c.imaadrules,d.iasConfigs=c.iasConfigs,d.ppid=window.AV_player.config.imappid||lo.getPPID(),d.asid=c.asid||"",d.imaSetPlcmt=c.imaSetPlcmt,d.imaSetVidD=c.imaSetVidD}d.adUnitId?function(t,e){_r("https://securepubads.g.doubleclick.net/tag/js/gpt.js",{globalThis:r}).then((function(){var i=t.slot.ownerDocument,n=i.defaultView||i.parentWindow,o="AV"+(t.asid||"outstream-ad");if(n===r)t.slot.id=o;else{var a=r.document.createElement("div");a.id=o,a.style.width="100%",a.style.height="100%",a.style.position="absolute",a.style.top="0px",a.style.left="0px",r.document.body.appendChild(a)}r.googletag=r.googletag||{cmd:[]},r.googletag.cmd.push((function(){var i=r.googletag.defineSlot(t.adUnitId,t.sizes||co,o).addService(r.googletag.pubads());t.page_url&&i.set("page_url",t.page_url),Array.isArray(t.keyValues)&&t.keyValues.forEach((function(t){if(kr(t)&&t.key&&Array.isArray(t.values)&&t.values.length>0){var e=t.values.join(",");try{i.setTargeting(t.key,e)}catch(t){}}})),i.setConfig({outstream:{exposeVast:!0}}),r.googletag.pubads().addEventListener("slotRenderEnded",(function(i){(i=i||{}).isEmpty||!i.vast?e(!1):(t.vastXml=i.vast,e(!0))})),r.googletag.enableServices(),r.googletag.display(o)}))})).catch((function(){e(null)}))}(d,(function(e){e?a(d,(function(){o.setUpIMA(d,t)})):o.dispatch("AdError")})):a(d,(function(){o.setUpIMA(d,t)}))}this.handshakeVersion=function(t){return"2.0"},this.initAd=function(t,e,i,n,r,o){s(t,e,0,0,r,o)},this.startAd=function(){setTimeout((function(){try{o.playAds()}catch(t){}}),10)},this.getAdLinear=function(){try{return o.isLinear()}catch(t){}return!0},this.stopAd=function(){try{return o.stop()}catch(t){}},this.getAdVolume=function(){try{return o.getVolume()}catch(t){}},this.setAdVolume=function(t){try{o.setVolume(t)}catch(t){}},this.resizeAd=function(t,e,i){try{o.resize(t,e,i)}catch(t){}},this.pauseAd=function(){try{o.pause()}catch(t){}},this.resumeAd=function(){try{o.resume()}catch(t){}},this.expandAd=function(){},this.getAdExpanded=function(){return!1},this.getAdSkippableState=function(){try{return o.getAdSkippableState()}catch(t){}},this.collapseAd=function(){},this.skipAd=function(){try{o.skip()}catch(t){}},this.getAdWidth=function(){try{o.getWidth()}catch(t){}},this.getAdHeight=function(){try{o.getHeight()}catch(t){}},this.getSkippableRemainingTime=function(){return this.getAdRemainingTime()},this.getAdRemainingTime=function(){try{return o.getRemainingTime()}catch(t){}},this.getAdDuration=function(){try{return o.getDuration()}catch(t){}},this.getAdCompanions=function(){return""},this.getIcons=function(){return""},this.getAdIcons=function(){return""},this.subscribe=function(t,e,i){o.subscribe(t,e,i)},this.unsubscribe=function(t,e){o.unsubscribe(t,e)}}var po=new(function(){function t(){(0,N.Z)(this,t),this.sdks={},this.names={}}var e=t.prototype;return e.id=function(t,e){return void 0===e&&(e=!1),e&&3==t&&(t=10),t},e.register=function(t,e,i){this.sdks[t]=e,this.names[t]=i},e.get=function(t){return this.sdks[t]},e.name=function(t){return this.names[t]||"aniview"},(0,F.Z)(t)}());po.register(3,uo,"googleima"),po.register(6,uo,"googleima"),po.register(8,(function(t){var e,i,n=new B,r={AdError:"AdError",AdImpression:"AdPodImpression",AdSkipped:"AdPodSkipped",AdVideoStart:"AdStarted",AdVideoFirstQuartile:"AdPodVideoFirstQuartile",AdVideoMidpoint:"AdPodVideoMidpoint",AdVideoThirdQuartile:"AdPodVideoThirdQuartile",AdSkippableStateChange:"AdSkippableStateChange",AdStopped:"AdStopped",AdVolumeChange:"AdVolumeChange",AdVideoComplete:"AllAdPodVideoComplete"};function o(o,a,s,l,c,d){var u={};if(c&&c.AdParameters){if("string"==typeof c.AdParameters)try{u=JSON.parse(c.AdParameters.trim())}catch(t){return void n.dispatch("AdError")}else"object"==typeof c.AdParameters&&(u=c.AdParameters);e=u.slot=d.slot,u.video=d.videoSlot}var p,f,h,v;p="https://yastatic.net/awaps-ad-sdk-js/1_0/adsdk.js",f=function(){if(t.ya)try{t.ya.videoAd.loadModule("AdLoader").then((function(t){return t.AdLoader.create({partnerId:u.partnerId,category:u.category,impId:u.impId})})).then((function(t){return t.loadAd()})).then((function(t){return t.preload({videoSlot:u.video,desiredBitrate:u.desiredBitrate||1e3}),new pe((function(e){e(t)}))})).then((function(t){i=t.createPlaybackController(u.video,u.slot),Object.keys(r).forEach((function(t){i.subscribe(r[t],(function(){n.dispatch(t)}))})),i.subscribe("AdPlayingStateChange",(function(t){var e;t&&t.playingState&&("pause"==t.playingState?e="AdPaused":"play"==t.playingState&&(e="AdPlaying"),e&&n.dispatch(e))})),n.dispatch("AdLoaded")})).catch((function(t){n.dispatch("AdError")}))}catch(t){n.dispatch("AdError")}else n.dispatch("AdError")},h=t.document.getElementsByTagName("body")[0],(v=t.document.createElement("script")).type="text/javascript",v.src=p,v.onload=f,"function"!=typeof v.onload&&(v.onreadystatechange=function(){"loaded"!==this.readyState&&"complete"!==this.readyState||f()}),h.appendChild(v)}this.handshakeVersion=function(t){return"2.0"},this.initAd=function(t,e,i,n,r,a){o(0,0,0,0,r,a)},this.startAd=function(){i?i.playAd():n.dispatch("AdError")},this.getAdLinear=function(){return!0},this.stopAd=function(t,e){try{i.stopAd(),n.dispatch("AdStopped")}catch(t){}},this.getAdVolume=function(){try{return i.getAdVolume()}catch(t){}},this.setAdVolume=function(t){try{i.setAdVolume(t)}catch(t){}},this.resizeAd=function(t,e,i){},this.pauseAd=function(){try{i.pauseAd()}catch(t){}},this.resumeAd=function(){try{i.resumeAd()}catch(t){}},this.expandAd=function(){},this.getAdExpanded=function(t){return!1},this.getAdSkippableState=function(t){try{return i.getAdSkippableState()}catch(t){}return!1},this.collapseAd=function(){},this.skipAd=function(){try{i.skipAd(),n.dispatch("AdSkipped")}catch(t){}},this.getAdWidth=function(){try{if(e)return e.clientWidth}catch(t){}},this.getAdHeight=function(){try{if(e)return e.clientHeight}catch(t){}},this.getSkippableRemainingTime=function(){return-2},this.getAdRemainingTime=function(){try{return i.getAdPodRemainingTime()}catch(t){}},this.getAdDuration=function(){try{return i.getAdPodDuration()}catch(t){}},this.getAdCompanions=function(){return""},this.getIcons=function(){return""},this.getAdIcons=function(){return""},this.subscribe=function(t,e,i){n.subscribe(t,e,i)},this.unsubscribe=function(t,e){n.unsubscribe(t,e)}}),"yandex"),po.register(10,(function(t,e,i){var n,r=new B,o="CTX"+Date.now(),a=top.SDKDelegate,s=cnf.imasdkmode||0;this.handshakeVersion=function(t){return"2.0"},this.initAdV0=function(t,e,i,o,a,s){n=a,setTimeout((function(){r.dispatch("AdLoaded")}))},this.startAdV0=function(){a&&top.eventDispatcher&&n&&n.AdParameters?(top.sdkCtx&&(o="CTX"+top.sdkCtx++),top.eventDispatcher.addListener(o,(function(t,e){"AdLoaded"===t?a.startAd(o):r.dispatch(t)})),a.initAd(o,i,n.AdParameters)):r.dispatch("AdError")},this.initAd=function(t,e,l,c,d,u){s?(n=d,a&&top.eventDispatcher&&n&&n.AdParameters?(top.sdkCtx&&(o="CTX"+top.sdkCtx++),top.eventDispatcher.addListener(o,(function(t,e){r.dispatch(t)})),a.initAd(o,i,n.AdParameters)):r.dispatch("AdError")):this.initAdV0(t,e,l,c,d,u)},this.startAd=function(){s?a.startAd(o):this.startAdV0()},this.getAdLinear=function(){return!0},this.stopAd=function(t,e){try{a.stopAd(o),r.dispatch("AdStopped")}catch(t){}},this.getAdVolume=function(){try{return a.getAdVolume(o)}catch(t){}},this.setAdVolume=function(t){try{a.setAdVolume(o,{volume:t})}catch(t){}},this.resizeAd=function(t,e,i){},this.pauseAd=function(){try{a.pauseAd(o)}catch(t){}},this.resumeAd=function(){try{a.resumeAd(o)}catch(t){}},this.expandAd=function(){},this.getAdExpanded=function(t){return!1},this.getAdSkippableState=function(t){try{return a.getAdSkippableState(o)}catch(t){}},this.collapseAd=function(){},this.skipAd=function(){try{a.skipAd(o)}catch(t){}},this.getAdWidth=function(){try{return a.getAdWidth(o)}catch(t){}},this.getAdHeight=function(){try{return a.getAdHeight(o)}catch(t){}},this.getSkippableRemainingTime=function(){return-2},this.getAdRemainingTime=function(){try{return a.getAdRemainingTime(o)}catch(t){}},this.getAdDuration=function(){try{return a.getAdDuration(o)}catch(t){}},this.getAdCompanions=function(){return""},this.getIcons=function(){return""},this.getAdIcons=function(){return""},this.subscribe=function(t,e,i){r.subscribe(t,e,i)},this.unsubscribe=function(t,e){r.unsubscribe(t,e)}}),"GAM"),po.register(12,(function(t,e,i){var n,r=new B;this.handshakeVersion=function(t){return"2.0"},this.initAd=function(e,i,o,a,s,l){if(null!=s&&s.AdParameters){try{n=JSON.parse(s.AdParameters)}catch(t){return void r.dispatch("AdError")}_r("https://securepubads.g.doubleclick.net/tag/js/gpt.js",{globalThis:t}).then((function(){var e=t.document.createElement("div");e.id="outstream-ad",e.style.width="300px",e.style.height="250px",t.document.body.appendChild(e),r.dispatch("AdLoaded")})).catch((function(){r.dispatch("AdError")}))}else r.dispatch("AdError")},this.startAd=function(){t.googletag=t.googletag||{cmd:[]},t.googletag.cmd.push((function(){t.googletag.defineSlot(n.adUnitId,n.sizes||[300,250],"outstream-ad").addService(t.googletag.pubads()),t.googletag.enableServices(),t.googletag.pubads().addEventListener("slotRenderEnded",(function(t){null!=t&&t.isEmpty?r.dispatch("AdError"):r.dispatch("AdImpression")}))})),t.googletag.cmd.push((function(){t.googletag.display("outstream-ad")}))},this.getAdLinear=function(){return!0},this.stopAd=function(t,e){try{r.dispatch("AdStopped")}catch(t){}},this.getAdVolume=function(){try{return-1}catch(t){}},this.setAdVolume=function(t){},this.resizeAd=function(t,e,i){},this.pauseAd=function(){},this.resumeAd=function(){},this.expandAd=function(){},this.getAdExpanded=function(t){return!1},this.getAdSkippableState=function(t){},this.collapseAd=function(){},this.skipAd=function(){},this.getAdWidth=function(){},this.getAdHeight=function(){},this.getSkippableRemainingTime=function(){return-2},this.getAdRemainingTime=function(){},this.getAdDuration=function(){},this.getAdCompanions=function(){return""},this.getIcons=function(){return""},this.getAdIcons=function(){return""},this.subscribe=function(t,e,i){r.subscribe(t,e,i)},this.unsubscribe=function(t,e){r.unsubscribe(t,e)}}),"GoogleTag");var fo={3:"GAM",12:"GAM"},ho=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(){return(0,N.Z)(this,i),e.apply(this,arguments)}var n=i.prototype;return n.isSupportedAdSource=function(t){return t.type===Ce.PlatformLink&&!_o.isSupportedAdSource(t)},n.getBidderName=function(t){var e=Number(t.platform);return fo[e]||"aniview"},n.createBidsRequest=function(t,e){var i=po.name(t.platform),n=t.skip?"":vo(t,i,this.player.config);return this.resolveBidsVast([this.createBid(t,{bidder:i,vastXml:n})],e)},(0,F.Z)(i)}(Ar);function vo(t,e,i){var n="".concat(i.basejsurl,"sdk/").concat(t.platform,".js"),r=JSON.stringify(t.params);return'<VAST version="2.0"><Ad id="aniview"><InLine><AdSystem>'.concat(e,"</AdSystem><AdTitle>aniview</AdTitle><Creatives><Creative><Linear><Duration></Duration><AdParameters><![CDATA[").concat(r,']]></AdParameters><MediaFiles><MediaFile height="360" width="480" type="application/javascript" apiFramework="VPAID"><![CDATA[').concat(n,"]]></MediaFile></MediaFiles></Linear></Creative></Creatives></InLine></Ad></VAST>")}var mo=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(t){var n;return(0,N.Z)(this,i),(n=e.call(this,"[".concat("Amazon Platform Services","] ").concat(t))).name="ApsError",Error.captureStackTrace&&Error.captureStackTrace((0,Ie.Z)(n),i),n}return(0,F.Z)(i)}(Ee(Error));function go(){var t=window.document.createElement("iframe");t.style.display="none",window.document.body.appendChild(t),t.contentWindow.document.open(),t.contentWindow.document.close();try{t.contentWindow.__tcfapi=e.__tcfapi||window.__tcfapi,Object.defineProperties(t.contentWindow,{innerWidth:{writable:!0,configurable:!0,value:e.innerWidth},innerHeight:{writable:!0,configurable:!0,value:e.innerHeight}})}catch(t){0}return t}var yo=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(t,n){var r;return void 0===t&&(t=""),(0,N.Z)(this,i),(r=e.call(this,"SDK was not able to load".concat(t?": ".concat(t):""),n)).message=t,r.options=n,r.name="SdkLoadError",r}return(0,F.Z)(i)}(Pe);function bo(t,e){return Ao.apply(this,arguments)}function Ao(){return Ao=(0,ce.Z)(le().mark((function t(e,i){var n;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===e&&(e=window),t.prev=1,t.next=4,_r("//c.amazon-adsystem.com/aax2/apstag.js",{async:!0,globalThis:e,timeout:null==i?void 0:i.timeout});case 4:t.next=9;break;case 6:throw t.prev=6,t.t0=t.catch(1),new yo(t.t0.message);case 9:if(n=e.apstag){t.next=12;break}throw new yo("".concat("","was not found"));case 12:return t.abrupt("return",n);case 13:case"end":return t.stop()}}),t,null,[[1,6]])}))),Ao.apply(this,arguments)}var wo=function(){function t(){(0,N.Z)(this,t),this.sdkMap={}}var e=t.prototype;return e.load=function(){var t=(0,ce.Z)(le().mark((function t(e,i){var n,r,o;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.pubID,!this.sdkMap[n]){t.next=3;break}return t.abrupt("return",this.sdkMap[n].loadPromise);case 3:return r=go(),this.sdkMap[n]={iframe:r,loadPromise:bo(r.contentWindow,{timeout:null==i?void 0:i.timeout})},t.prev=5,t.next=8,this.sdkMap[n].loadPromise;case 8:return(o=t.sent).init(e),t.abrupt("return",o);case 13:throw t.prev=13,t.t0=t.catch(5),this.dispose(n),t.t0;case 17:case"end":return t.stop()}}),t,this,[[5,13]])})));return function(e,i){return t.apply(this,arguments)}}(),e.dispose=function(t){var e=this;if(t){var i,n,r=(null!=(i=this.sdkMap[t])?i:{}).iframe;null==r||null==(n=r.parentElement)||n.removeChild(r),delete this.sdkMap[t]}else Object.keys(this.sdkMap).forEach((function(t){return e.dispose(t)}))},(0,F.Z)(t)}();function ko(t){var e;return(null==(e=t.helpers)?void 0:e.encodedQsParams())||t.encodedQsParams||""}var xo=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(){var t;(0,N.Z)(this,i);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))).loader=new wo,t.debug=!1,t}var n=i.prototype;return n.isSupportedAdSource=function(t){return t.type===Ce.PlatformLink&&t.platform===this.config.platformServerId},n.addAdSource=function(t){t.params.slot&&((0,we.Z)((0,ke.Z)(i.prototype),"addAdSource",this).call(this,t),t.schain&&(this.sdkConfig.schain=t.schain))},n.requestBids=function(t){if(!this.hasAdSources)throw new mo("There were no ad units added to request bids");return(0,we.Z)((0,ke.Z)(i.prototype),"requestBids",this).call(this,t)},n.getBidResponsesForAdSource=function(t){return(0,we.Z)((0,ke.Z)(i.prototype),"getBidResponsesForAdSource",this).call(this,t)},n.getBidderName=function(){return"amazon"},n.setGdpr=function(t){var e=(null!=t?t:{}).consentData;(0,b.Z)(e)&&(this.sdkConfig.gdpr={enabled:!0,consent:e})},n.getValidBids=function(t,e){var i=this;return t.filter((function(t){if(ko(t))return!0;var n=i.createBid(e,{});return i.skipBid(n),!1}))},n.createBidsRequest=function(){var t=(0,ce.Z)(le().mark((function t(e,i){var n,r,o,a,s,l,c,d=this;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=(null==(n=e.params.config)?void 0:n.pubID)||this.config.sdkConfig.pubID){t.next=7;break}throw o=this.createBid(e,{}),this.skipBid(o),'There was no "publisherId" set',new Ve('There was no "publisherId" set');case 7:return t.next=10,this.loader.load(ae({},this.sdkConfig,{bidTimeout:e.vastConfig.timeout||this.config.sdkConfig.bidTimeout},e.params.config,{pubID:r}),{timeout:this.config.sdkLoadTimeout||void 0});case 10:return a=t.sent,s=this.createAdUnit(e),t.next=14,new pe((function(t){a.fetchBids(s,t)}));case 14:if((l=t.sent).length>0&&(l=this.getValidBids(l,e)),Array.isArray(l)&&!(l.length<=0)){t.next=18;break}return t.abrupt("return",pe.resolve([]));case 18:return c=l.map((function(t){return d.player.imaRendererAd?d.createImaBid(d.getAdSourceByCode(e.code),t):d.createBid(d.getAdSourceByCode(e.code),t)})),t.abrupt("return",this.resolveBidsVast(c,i));case 20:case"end":return t.stop()}}),t,this)})));return function(e,i){return t.apply(this,arguments)}}(),n.createAdUnit=function(t){var e=ae({slotID:this.config.defaultSlotId,mediaType:"video"},t.params.slot);return t.floor>0&&(e.floor={value:Number((100*t.floor).toFixed(2)),currency:"USD"}),{slots:[e],timeout:t.vastConfig.timeout||this.config.sdkConfig.bidTimeout}},n.createImaBid=function(t,e){void 0===e&&(e={});var n="hb_format=video&".concat(decodeURIComponent(ko(e))),r=function(t,e,i){var n=t.split("?"),r=n[0];try{var o=new URLSearchParams(n[1]||""),a="".concat(o.get(e)||"","&").concat(i);return o.set(e,a),"".concat(r,"?").concat(o.toString())}catch(e){return t}}(this.player.config.imarender.url,"cust_params",n);this.setImaBid(r,t);var o=e.targeting?e.targeting:e,a=o.amznbid,s=(o.amzniid,o.amznp),l=o.amznbid_sp,c=o.amzndeal_sp,d=o.amzniid_sp,u=vo(t,"GAM",this.player.config);return(0,we.Z)((0,ke.Z)(i.prototype),"createBid",this).call(this,t,ae({},e,{vastXml:u,cpm:0,tppbid:a,bidData:{amznp:s,amznbid:a,amznbid_sp:l,amzndeal_sp:c,amzniid_sp:d}}))},n.createBid=function(t,e){void 0===e&&(e={});var n=t.params,r=t.nasid,o=t.avtoken,a=e.targeting?e.targeting:e,s=a.amznbid,l=(a.amzniid,a.amznp),c=a.amznbid_sp,d=a.amzndeal_sp,u=a.amzniid_sp,p=function(t,e){return t.filter((function(t){return t.mediaType===e}))}([e],"video").reduce((function(t,e){return t+ko(e)}),""),f=(null==n?void 0:n.servingUrl.indexOf("?"))>-1?"&":"?",h=this.player.macros.AV_URL||"",v="".concat(n.servingUrl).concat(f,"amznparams=").concat(p,"&adsourceid=").concat(r,"&hcpm=").concat(this.player.hcpm,"&avtoken=").concat(o,"&AV_URL=").concat(h);return(0,we.Z)((0,ke.Z)(i.prototype),"createBid",this).call(this,t,ae({},e,{vastUrl:v,cpm:0,tppbid:s,bidData:{amznp:l,amznbid:s,amznbid_sp:c,amzndeal_sp:d,amzniid_sp:u}}))},(0,F.Z)(i)}(Ar);var _o=new xo({platformServerId:110,sdkLoadTimeout:5e3,defaultSlotId:"videoSlot",sdkConfig:{videoAdServer:"Aniview",bidTimeout:8e3}}),So={linearity:1,mimes:["video/mp4","application/javascript"],protocols:[1,2,3,4,5,6,7,8,11,12,13,14],api:[1,2,7],startdelay:0,skip:1,minduration:1},Co={appnexus:function(t,e,i){var n,r,o;(null!=(n=t.params).allowSmallerSizes||(n.allowSmallerSizes=!0),(0,it.Z)(t.params.video))&&(t.params.video.frameworks=[2],null!=(o=i.api)&&o.includes(7)&&t.params.video.frameworks.push(6),1===i.plcmt&&(t.params.video.playback_method=["click_to_play"]),t.params.video.startdelay=t.params.video.startdelay||0);(0,it.Z)(null==(r=e.mediaTypes)?void 0:r.video)&&(e.mediaTypes.video.startdelay=e.mediaTypes.video.startdelay||0)},gumgum:function(t,e){var i,n=e.irisId;(0,it.Z)(t.params.video)&&((i=t.params.video).maxduration||(i.maxduration=60));n&&(t.params.irisid=n)},oneVideo:function(t){(0,it.Z)(t.params.video)&&delete t.params.video.sid},pubmatic:function(t,e){var i=e.irisContext;i&&((0,b.Z)(t.params.dctr)&&t.params.dctr.length>0?t.params.dctr+="|":t.params.dctr="",t.params.dctr+="iris_context=".concat(i))},rhythmone:function(t,e){var i,n,r,o=e.mediaTypes;o.video&&((i=o.video).mimes||(i.mimes=["video/mp4","application/javascript"]),(n=o.video).delivery||(n.delivery=[1,2,3]),(r=o.video).api||(r.api=[1,2]))},rubicon:function(t,e){var i,n=e.irisContext;n&&(t.params.inventory=(i=t.params.inventory,(0,it.Z)(i)?i:{}),t.params.inventory.context=function(t,e){Array.isArray(t)||(t=[]);if(!(0,b.Z)(e))return t;return t.concat(e.split(","))}(t.params.inventory.context,n))},"freewheel-ssp":function(t,e){var i=e.irisContext;i&&(t.params.vastUrlParams=t.params.vastUrlParams||{},t.params.vastUrlParams._fw_context=t.params.vastUrlParams._fw_context||"iris:".concat(i))},telaria:function(t){t.params.srcPageUrl&&delete t.params.srcPageUrl},colossusssp:function(t,e){var i=e.mediaTypes;null!=i&&i.video&&!i.video.sizes&&(i.video.sizes=i.video.playerSize)},triplelift:function(t,e){var i,n=e.mediaTypes;null!=n&&null!=(i=n.video)&&i.renderer&&delete n.video.renderer},richaudience:function(t){t.params&&!t.params.supplyType&&(t.params.supplyType="site")}};function To(t,e){Object.keys(e).forEach((function(i){null===e[i]&&t[i]?delete t[i]:t[i]=e[i]}))}function Io(t,e,i,n,r){void 0===i&&(i={}),void 0===n&&(n={}),void 0===r&&(r={}),(0,it.Z)(null==t?void 0:t.video)&&(!function(t,e){Object.keys(e).forEach((function(i){void 0===t[i]&&(t[i]=e[i])}))}(t.video,So),Object.assign(t.video,i,n),To(t.video,r)),(0,it.Z)(null==e?void 0:e.video)&&(Object.assign(e.video,i,n),To(e.video,r))}Co.tremor=Co.telaria;var Eo=Co;var Po=function(){return Promise.all([r.e(814),r.e(148)]).then(r.bind(r,7712))},Vo=function(){return Promise.all([r.e(814),r.e(148)]).then(r.bind(r,5245))},Oo=function(){return Promise.all([r.e(814),r.e(148)]).then(r.bind(r,6776))},Ro=function(){return Promise.all([r.e(814),r.e(148)]).then(r.bind(r,9760))},Lo=function(){return Promise.all([r.e(814),r.e(41)]).then(r.bind(r,8228))},Uo=function(){return Promise.all([r.e(814),r.e(828)]).then(r.bind(r,97))},Do=function(){return Promise.all([r.e(814),r.e(828)]).then(r.bind(r,3167))},Mo=function(){return Promise.all([r.e(814),r.e(828)]).then(r.bind(r,2130))},qo=function(){return Promise.all([r.e(814),r.e(200)]).then(r.bind(r,7782))},jo=function(){return Promise.all([r.e(814),r.e(493)]).then(r.bind(r,9932))},Fo=function(){return Promise.all([r.e(814),r.e(200)]).then(r.bind(r,1063))},No=function(){return Promise.all([r.e(814),r.e(200)]).then(r.bind(r,1587))},Bo=function(){return Promise.all([r.e(814),r.e(233)]).then(r.bind(r,7410))},Zo=function(){return Promise.all([r.e(814),r.e(233)]).then(r.bind(r,8762))},zo=function(){return Promise.all([r.e(814),r.e(233)]).then(r.bind(r,1095))},Wo=function(){return Promise.all([r.e(814),r.e(985)]).then(r.bind(r,5120))},Ho=function(){return Promise.all([r.e(814),r.e(985)]).then(r.bind(r,8093))},Go=function(){return Promise.all([r.e(814),r.e(985)]).then(r.bind(r,2538))},Ko=function(){return Promise.all([r.e(814),r.e(985)]).then(r.bind(r,91))},Jo=function(){return Promise.all([r.e(814),r.e(162)]).then(r.bind(r,8237))},Xo=function(){return Promise.all([r.e(814),r.e(162)]).then(r.bind(r,9773))},Qo=function(){return Promise.all([r.e(814),r.e(233)]).then(r.bind(r,3896))},Yo=function(){return Promise.all([r.e(814),r.e(162)]).then(r.bind(r,7476))},$o=function(){return Promise.all([r.e(814),r.e(493)]).then(r.bind(r,590))},ta=function(){return Promise.all([r.e(814),r.e(493)]).then(r.bind(r,845))},ea=function(){return Promise.all([r.e(814),r.e(260)]).then(r.bind(r,7189))},ia={openx:function(){return Promise.all([r.e(814),r.e(148)]).then(r.bind(r,6409))},appnexus:Po,appnexusAst:Po,emxdigital:Po,pagescience:Po,gourmetads:Po,matomy:Po,featureforward:Po,oftmedia:Po,adasta:Po,beintoo:Po,projectagora:Po,uol:Po,adzymic:Po,pubmatic:function(){return Promise.all([r.e(814),r.e(148)]).then(r.bind(r,5416))},"freewheel-ssp":Vo,stickyadstv:Vo,smartadserver:Oo,smart:Oo,telaria:Ro,tremor:Ro,tremorvideo:Ro,spotx:function(){return Promise.all([r.e(814),r.e(148)]).then(r.bind(r,4653))},beachfront:function(){return Promise.all([r.e(814),r.e(41)]).then(r.bind(r,2433))},rubicon:function(){return Promise.all([r.e(814),r.e(41)]).then(r.bind(r,4407))},rhythmone:function(){return Promise.all([r.e(814),r.e(41)]).then(r.bind(r,376))},synacormedia:function(){return Promise.all([r.e(814),r.e(828)]).then(r.bind(r,2956))},loopme:function(){return Promise.all([r.e(814),r.e(828)]).then(r.bind(r,9803))},ix:Lo,roundel:Lo,pulsepoint:Uo,pulseLite:Uo,pulsepointLite:Uo,ucfunnel:function(){return Promise.all([r.e(814),r.e(828)]).then(r.bind(r,9149))},emx_digital:function(){return Promise.all([r.e(814),r.e(828)]).then(r.bind(r,491))},sonobi:function(){return Promise.all([r.e(814),r.e(828)]).then(r.bind(r,9912))},improvedigital:Do,id:Do,lkqd:function(){return Promise.all([r.e(814),r.e(828)]).then(r.bind(r,7415))},adman:function(){return Promise.all([r.e(814),r.e(828)]).then(r.bind(r,4316))},gumgum:Mo,gg:Mo,unruly:function(){return Promise.all([r.e(814),r.e(828)]).then(r.bind(r,1016))},onetag:function(){return Promise.all([r.e(814),r.e(200)]).then(r.bind(r,8074))},yieldlab:function(){return Promise.all([r.e(814),r.e(200)]).then(r.bind(r,5316))},undertone:function(){return Promise.all([r.e(814),r.e(162)]).then(r.bind(r,8019))},conversant:qo,adkernel:jo,yahoossp:function(){return Promise.all([r.e(814),r.e(41)]).then(r.bind(r,5098))},sparteo:function(){return Promise.all([r.e(814),r.e(200)]).then(r.bind(r,7807))},cnvr:qo,ironsource:function(){return Promise.all([r.e(814),r.e(200)]).then(r.bind(r,2780))},grid:Fo,playwire:Fo,adlivetech:Fo,medianet:function(){return Promise.all([r.e(814),r.e(200)]).then(r.bind(r,8011))},"33across":function(){return Promise.all([r.e(814),r.e(200)]).then(r.bind(r,174))},marsmedia:No,mars:No,triplelift:function(){return Promise.all([r.e(814),r.e(200)]).then(r.bind(r,7468))},richaudience:Bo,ra:Bo,apacdex:Zo,quantumdex:Zo,valueimpression:Zo,criteo:function(){return Promise.all([r.e(814),r.e(233)]).then(r.bind(r,9906))},lunamediahb:function(){return Promise.all([r.e(814),r.e(233)]).then(r.bind(r,6500))},yieldmo:function(){return Promise.all([r.e(814),r.e(260)]).then(r.bind(r,3902))},adf:zo,adformOpenRTB:zo,adform:zo,krushmedia:function(){return Promise.all([r.e(814),r.e(162)]).then(r.bind(r,7840))},amx:function(){return Promise.all([r.e(814),r.e(985)]).then(r.bind(r,7845))},ebdr:function(){return Promise.all([r.e(814),r.e(985)]).then(r.bind(r,8963))},colossusssp:function(){return Promise.all([r.e(814),r.e(985)]).then(r.bind(r,3457))},smaato:function(){return Promise.all([r.e(814),r.e(985)]).then(r.bind(r,3270))},tappx:function(){return Promise.all([r.e(814),r.e(985)]).then(r.bind(r,367))},adyoulike:Wo,ayl:Wo,smilewanted:Ho,smile:Ho,sw:Ho,adtarget:function(){return Promise.all([r.e(814),r.e(985)]).then(r.bind(r,4773))},yieldone:Go,y1:Go,openweb:function(){return Promise.all([r.e(814),r.e(985)]).then(r.bind(r,2436))},nobid:Ko,duration:Ko,rise:function(){return Promise.all([r.e(814),r.e(985)]).then(r.bind(r,3797))},operaads:Jo,opera:Jo,aja:function(){return Promise.all([r.e(814),r.e(828)]).then(r.bind(r,2179))},relaido:function(){return Promise.all([r.e(814),r.e(162),r.e(480)]).then(r.bind(r,3744))},open8:function(){return Promise.all([r.e(814),r.e(162)]).then(r.bind(r,137))},vidoomy:function(){return Promise.all([r.e(814),r.e(162)]).then(r.bind(r,4335))},bidscube:function(){return Promise.all([r.e(814),r.e(162)]).then(r.bind(r,7695))},videobyte:function(){return Promise.all([r.e(814),r.e(162)]).then(r.bind(r,7010))},adagio:function(){return Promise.all([r.e(814),r.e(233)]).then(r.bind(r,2017))},bliink:Xo,bk:Xo,pilotx:function(){return Promise.all([r.e(814),r.e(162)]).then(r.bind(r,3260))},resetdigital:function(){return Promise.all([r.e(814),r.e(162)]).then(r.bind(r,44))},sovrn:function(){return Promise.all([r.e(814),r.e(162)]).then(r.bind(r,1297))},sharethrough:function(){return Promise.all([r.e(814),r.e(162)]).then(r.bind(r,1082))},minutemedia:function(){return Promise.all([r.e(814),r.e(493)]).then(r.bind(r,1444))},ttd:Qo,thetradedesk:Qo,adhese:function(){return Promise.all([r.e(814),r.e(828)]).then(r.bind(r,3852))},smartx:function(){return Promise.all([r.e(814),r.e(985)]).then(r.bind(r,9855))},seedtag:Yo,st:Yo,kargo:function(){return Promise.all([r.e(814),r.e(260)]).then(r.bind(r,8051))},adtelligent:$o,onefiftytwomedia:$o,selectmedia:$o,appaloosa:$o,bidsxchange:$o,streamkey:$o,janet:$o,navelix:$o,pgam:$o,ocm:$o,vidcrunchllc:$o,vibrantmedia:function(){return Promise.all([r.e(814),r.e(493)]).then(r.bind(r,5681))},consumable:function(){return Promise.all([r.e(814),r.e(493)]).then(r.bind(r,3183))},headbidding:jo,adsolut:jo,oftmediahb:jo,audiencemedia:jo,waardex_ak:jo,roqoon:jo,andbeyond:jo,adbite:jo,houseofpubs:jo,torchad:jo,stringads:jo,bcm:jo,engageadx:jo,converge:jo,adomega:jo,denakop:jo,rtbanalytica:jo,unibots:jo,catapultx:jo,ergadx:jo,turktelekom:jo,felixads:jo,motionspots:jo,sonic_twist:jo,between:ta,btw:ta,mediasquare:function(){return Promise.all([r.e(814),r.e(493)]).then(r.bind(r,1175))},msq:ta,mediafuse:function(){return Promise.all([r.e(814),r.e(260)]).then(r.bind(r,2006))},insticator:function(){return Promise.all([r.e(814),r.e(493)]).then(r.bind(r,272))},globalsun:function(){return Promise.all([r.e(814),r.e(162)]).then(r.bind(r,6569))},kueezrtb:function(){return Promise.all([r.e(814),r.e(985)]).then(r.bind(r,9089))},eplanning:function(){return Promise.all([r.e(814),r.e(493)]).then(r.bind(r,6676))},cpmstar:function(){return Promise.all([r.e(814),r.e(493)]).then(r.bind(r,8039))},deepintent:function(){return Promise.all([r.e(814),r.e(200)]).then(r.bind(r,7990))},nextMillennium:function(){return Promise.all([r.e(814),r.e(493)]).then(r.bind(r,5881))},dxkulture:function(){return Promise.all([r.e(814),r.e(493)]).then(r.bind(r,3374))},vidazoo:function(){return Promise.all([r.e(814),r.e(493)]).then(r.bind(r,1767))},limelightDigital:ea,pll:ea,iionads:ea,apester:ea,adsyield:ea,rtbhouse:function(){return Promise.all([r.e(814),r.e(260)]).then(r.bind(r,6826))},oms:function(){return Promise.all([r.e(814),r.e(260)]).then(r.bind(r,4044))}};function na(t,e){var i=void 0===e?{}:e,n=i.timeout,r=i.retryTimes,o=i.retryInterval;return function(e){var i=(void 0===e?{}:e).signal,a=new pe((function(e,s){null!=i&&i.aborted&&s(i.reason),null==i||i.addEventListener("abort",(function(t){var e;return s(null==(e=t.target)?void 0:e.reason)})),t().then(e,s),isNaN(n)||setTimeout((function(){s(Error("Promise was timed out"))}),+n),isNaN(r)||(r=+r,a.catch((function(a){setTimeout((function(){if(r<1)throw a;na(t,{timeout:n,retryTimes:r-1,retryInterval:o})({signal:i}).then(e,s)}),isNaN(o)?1e3:+o)})))}));return a}}var ra=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(t){var n;return(0,N.Z)(this,i),(n=e.call(this,"[".concat("Prebid","] ").concat(t))).name="PrebidError",Error.captureStackTrace&&Error.captureStackTrace((0,Ie.Z)(n),i),n}return(0,F.Z)(i)}(Ee(Error)),oa=function(){function t(){(0,N.Z)(this,t),this.sdk=void 0,this.bidAdapters={}}var e=t.prototype;return e.loadCore=function(){var t=(0,ce.Z)(le().mark((function t(e){return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===e&&(e=5e3),this.sdk){t.next=6;break}return t.next=4,na((function(){return r.e(814).then(r.bind(r,1766))}),{timeout:e})().catch((function(t){throw new ra("SDK was not able to load. ".concat(t.message))}));case 4:this.sdk=t.sent.default,this.sdk.processQueue();case 6:return t.abrupt("return",this.sdk);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),e.loadAdapters=function(){var t=(0,ce.Z)(le().mark((function t(e,i){var n=this;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===i&&(i=5e3),e.forEach((function(t){!n.bidAdapters[t]&&m(ia[t])&&(n.bidAdapters[t]=na(ia[t],{timeout:i})().then((function(e){return n.bidAdapters[t]=e})).catch((function(e){throw delete n.bidAdapters[t],e})))})),!yr(this.bidAdapters)){t.next=5;break}return t.abrupt("return");case 5:return t.abrupt("return",pe.allSettled(Object.values(this.bidAdapters)));case 6:case"end":return t.stop()}}),t,this)})));return function(e,i){return t.apply(this,arguments)}}(),e.load=function(){var t=(0,ce.Z)(le().mark((function t(e,i){var n,r;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===i&&(i={}),n=this.loadCore(i.coreTimeout),e.length>0&&(r=this.loadAdapters(e,i.adaptersTimeout)),t.abrupt("return",pe.allSettled([n,r]).then((function(t){var e,i=mr(gr.Z,t,2),n=i[0];i[1];if(!n.value)throw Error((null==(e=n.reason)?void 0:e.message)||"There was no exported SDK");return n.value})));case 4:case"end":return t.stop()}}),t,this)})));return function(e,i){return t.apply(this,arguments)}}(),(0,F.Z)(t)}(),aa=new oa;function sa(t,e){var i,n=null==(i=t.userSync)?void 0:i.userIds;if(Array.isArray(n))return n.find((function(t){return t.name===e}))}function la(t,e){var i,n=t.mediaTypes[e];return!function(t){return Array.isArray(null==t?void 0:t.playerSize)}(n)?Array.isArray(t.sizes)&&(i=t.sizes):i=n.playerSize,Array.isArray(i)&&i.length>0&&!Array.isArray(i[0])&&(i=[i]),i}function ca(t){return t.avOriginalBidder||t.bidder||t.bidderCode||""}var da={growthCodeRtd:function(t){da.growthCodeRtd=null;var i=t.pid,n=e;n._gcio&&n._gcio.find((function(t){return t&&t[1]===i}))||(n._gcio=n._gcio||[],n._gcio.push(["pid",i]),_r("//p.gcprivacy.com/t/gcid_s.min.js",{globalThis:n,async:!0,keepElement:!0}))}},ua=da,pa={adform:"adf",tremor:"telaria"},fa=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(t){var n,r,o,a,s;(0,N.Z)(this,i),(s=e.call(this,t)).isInitialized=!1,s.publisherConfig=void 0,s.bidderMap=void 0,s.bidderAliasMap=void 0,s.bidderConfigs=[],s.adUnits=[],s.adUnitMap={},s.requestInit=void 0,s.bidsVastRequests=[],s.prebidEids=!1,s.floor=void 0,s.onBidResponse=function(t){s.player.config.imarender||s.processBidResponse(t,s.requestInit)},s.onNoBid=function(t,e){s.skipBid(s.createBid(s.getAdSourceByCode(t.adUnitCode),t),e)},s.onBidTimeout=function(t){t.forEach((function(t){s.onNoBid(t,"The user aborted a request.")}))},s.onBeforeBidderHttp=function(t,e){var i,n;if((null==e||null==(i=e.data)||null==(i=i.app)||null==(i=i.bundle)?void 0:i.length)>5&&null!=e&&null!=(n=e.data)&&n.site)try{delete e.data.site}catch(t){}if(m(s.player.config.updatebid)){var r=s.player.config.updatebid;try{r(t,e)}catch(t){0}}},s.onBeforeRequestBids=function(t){var e;if(lo.getIntentIqEids()&&"pbjs"!==lo.avintentiq.mode){var i=lo.getIntentIqEids(),n=lo.getIntentIqUserId();t.forEach((function(t){var e;null!=t&&t.setItiq&&(null==t||null==(e=t.bids)?void 0:e.length)>0&&t.bids.forEach((function(t){t&&(t.userId=lo.mergeUserIds(t.userId,n),t.userIdAsEids=lo.mergeEids(t.userIdAsEids,i)),0!==t.bidder.indexOf("appnexus")&&0!==t.bidder.indexOf("unruly")||(t.userId.pubProvidedId=i)}))}))}(null==(e=s.player.eids)||null==(e=e.userIdAsEids)?void 0:e.length)>0&&t.forEach((function(t){t.bids.forEach((function(t){t&&(t.userId=lo.mergeUserIds(t.userId,s.player.eids.userId||{}),t.userIdAsEids=lo.mergeEids(t.userIdAsEids,s.player.eids.userIdAsEids))}))})),t.forEach((function(t){var e;s.player.thePlayer.onBeforeAdRequest({asid:(null==(e=s.getAdSourceByCode(t.code))?void 0:e.asid)||"",type:"prebid",adUnit:t})}))},s.processBidResponse=(0,ce.Z)(le().mark((function t(e,i){var n,r,o,a,l,c,d,u;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=s.getAdSourceByCode(e.adUnitCode),r=pi.getAdSourceFloor(n.id)||0,o=s.createBid(n,e),a=s.getAdUnitByCode(o.adUnitCode),s.player.config.imarender&&(l=Oi(s.player,s.sdk,o,a))&&(s.setImaBid(l,n),o.vastXml=vo(n,"GAM",s.player.config),o.vastUrl=void 0),c=[o],d=s.resolveBidsVast(c,i),s.bidsVastRequests.push(d),t.next=10,d;case 10:return(u=s.bidResponses[n.code]).bids=s.filterBidsByFloorAndBlock(u.bids,r),t.abrupt("return",u);case 13:case"end":return t.stop()}}),t)})));var l=Utils.getTrueDomain(),c=Utils.getHostName(l);return(n=s.sdkConfig).pageUrl||(n.pageUrl=l),(r=s.sdkConfig).site||(r.site={}),(o=s.sdkConfig.site).domain||(o.domain=c),(a=s.sdkConfig.site).page||(a.page=l),s.reset(),s}var n=i.prototype;return n.isSupportedAdSource=function(t){return t.type===Ce.Prebid||t.type===Ce.PrebidServer},n.reset=function(){var t;(0,we.Z)((0,ke.Z)(i.prototype),"reset",this).call(this),this.bidderMap={},this.bidderAliasMap={},this.adUnits=[],this.adUnitMap={},this.bidsVastRequests.length=0,this.bidderConfigs.length=0,this.publisherConfig={},Zn(this.sdkConfig,this.publisherConfig,!0),this.publisherConfig.userSync={userIds:[]},Zn(this.sdkConfig.userSync||{},this.publisherConfig.userSync,!0),this.publisherConfig.s2sConfig={accountId:"1",bidders:[]},Zn(this.sdkConfig.s2sConfig||{},this.publisherConfig.s2sConfig,!0),this.publisherConfig.s2sConfig.extPrebid={aliases:{}},Zn((null==(t=this.sdkConfig.s2sConfig)?void 0:t.extPrebid)||{},this.publisherConfig.s2sConfig.extPrebid,!0);var e=this.publisherConfig.userSync;Array.isArray(null==e?void 0:e.userIds)&&(e.userIds=e.userIds.filter((function(t){var e=(void 0===t?{}:t).params;return!(!(0,it.Z)(e)||yr(e))})))},n.setSiteInfo=function(t){this.publisherConfig.pageUrl=this.sdkConfig.pageUrl=t.page,this.publisherConfig.site=this.sdkConfig.site=ae({},this.sdkConfig.site,t)},n.setPlayer=function(t){(0,we.Z)((0,ke.Z)(i.prototype),"setPlayer",this).call(this,t),this.publisherConfig.s2sConfig&&(this.publisherConfig.s2sConfig.accountId=this.player.config.pid),this.setDebugMode()},n.setDebugMode=function(){var t,e;(t=this.publisherConfig).debug||(t.debug=10==(null==(e=this.player.config)?void 0:e.loglevel))},n.setGdpr=function(t){var e,i=parseFloat(String(t.tcfVersion))||2,n=t.consentData,r=t.gdprApplies,o=void 0===r?Boolean(n):r,a=t.hasGlobalScope,s=void 0!==a&&a,l=t.purpose,c=t.addtlConsent;n&&(i<1||(e=i<2?{allowAuctionWithoutConsent:!1,consentData:{getConsentData:{gdprApplies:o,hasGlobalScope:s,consentData:n},getVendorConsents:{gdprApplies:o,hasGlobalScope:s,metadata:n}}}:{consentData:{getTCData:{tcString:n,gdprApplies:o,purpose:l,addtlConsent:c}}},this.sdkConfig.consentManagement||(this.sdkConfig.consentManagement={}),e.cmpApi="static",this.sdkConfig.consentManagement.gdpr=e,this.publisherConfig.consentManagement=this.sdkConfig.consentManagement))},n.setUsp=function(t){if((0,b.Z)(t)){var e={cmpApi:"static",consentData:{getUSPData:{uspString:t}}};this.sdkConfig.consentManagement||(this.sdkConfig.consentManagement={}),this.sdkConfig.consentManagement.usp=e,this.publisherConfig.consentManagement=this.sdkConfig.consentManagement}},n.setGpp=function(t){this.sdkConfig.consentManagement=this.sdkConfig.consentManagement||{},this.sdkConfig.consentManagement.gpp={cmpApi:"static",consentData:t},this.publisherConfig.consentManagement=this.sdkConfig.consentManagement},n.setUserIdParams=function(t){var e,i=this;(0,it.Z)(t)&&Array.isArray(null==(e=this.publisherConfig.userSync)?void 0:e.userIds)&&(t.uid2||null===t.uid2||Object.assign(t,{uid2:{uid2ServerCookie:"uid2_identity"}}),Object.keys(t).forEach((function(e){if((0,it.Z)(t[e])){i.prebidEids=!0;var n=i.publisherConfig.userSync.userIds,r=sa(i.sdkConfig,e),o=sa(i.publisherConfig,e),a=Object.assign({},t[e]);o||(o={name:e},n.push(o)),r&&Zn(r,o,!0),"id5Id"===e&&(a.partner=Number(a.partner)),"hadronId"===e&&(a.partnerId=Number(a.partnerId)),o.params=a}})))},n.setRtdParams=function(t){var e,i=this;if((0,it.Z)(t)&&Array.isArray(null==(e=this.publisherConfig.realTimeData)?void 0:e.dataProviders)){var n=this.publisherConfig.realTimeData.dataProviders;this.publisherConfig.realTimeData.dataProviders=[],Object.keys(t).forEach((function(e){if((0,it.Z)(t[e])){var r=n.find((function(t){return(null==t?void 0:t.name)===e}));if(r){var o=Object.assign({},r,{params:t[e]});i.publisherConfig.realTimeData.dataProviders.push(o);try{var a;null==(a=ua[e])||a.call(ua,o.params)}catch(t){0}}}}))}},n.setCurrency=function(t){(0,b.Z)(null==t?void 0:t.adServerCurrency)&&(this.sdkConfig.currency||(this.sdkConfig.currency={}),this.sdkConfig.currency.adServerCurrency=t.adServerCurrency,this.publisherConfig.currency=this.sdkConfig.currency)},n.setFloor=function(t){this.floor=t},n.setSchain=function(t){(0,it.Z)(t)&&!yr(t)&&(this.sdkConfig.schain={validation:"strict",config:t},this.publisherConfig.schain=this.sdkConfig.schain)},n.setDevice=function(t){(0,it.Z)(t)&&!yr(t)&&(this.sdkConfig.device=t,this.publisherConfig.device=t)},n.setContentInfo=function(t){(0,it.Z)(t)&&!yr(t)&&(this.sdkConfig.content=this.sdkConfig.site.content=t,this.publisherConfig.content=this.publisherConfig.site.content=t)},n.setAppInfo=function(t){(0,it.Z)(t)&&!yr(t)&&(this.sdkConfig.app=t,this.publisherConfig.app=t)},n.setOrtb2Info=function(t){t&&(this.publisherConfig.ortb2=t)},n.addAdSource=function(t){var e,n,r,o,a,s=this;(0,we.Z)((0,ke.Z)(i.prototype),"addAdSource",this).call(this,t);var l=t.params;if(Array.isArray(l.bids)&&!(l.bids.length<=0)){var c=this.player.config.gpid;c&&(l.ortb2Imp||(l.ortb2Imp={}),l.ortb2Imp.ext||(l.ortb2Imp.ext={}),l.ortb2Imp.ext.data||(l.ortb2Imp.ext.data={}),l.ortb2Imp.ext.gpid=l.ortb2Imp.ext.data.pbadslot=c),l.code=t.code,this.adUnits.push(l),this.adUnitMap[l.code]=l,(0,it.Z)(l.mediaTypes)||(l.mediaTypes={}),(0,it.Z)(l.mediaTypes.video)||(l.mediaTypes.video={});var d,u,p=la(l,"video");if(p||null==(null==(e=this.player)||null==(e=e.config)?void 0:e.width)||null==(null==(n=this.player)||null==(n=n.config)?void 0:n.height)||(p=[[this.player.config.width,this.player.config.height]]),p)l.mediaTypes.video.playerSize=p,null!=(d=l.mediaTypes.video).w||(d.w=p[0][0]),null!=(u=l.mediaTypes.video).h||(u.h=p[0][1]),l.sizes=p;"outstream"===l.mediaTypes.video.context&&(l.renderer=l.mediaTypes.video.renderer={url:null,render:A}),this.sdkConfig.floors||(this.sdkConfig.floors={},this.publisherConfig.floors=this.sdkConfig.floors),l.floors={currency:(null==(r=this.publisherConfig.currency)?void 0:r.adServerCurrency)||"USD",schema:{fields:["mediaType"]},values:{"*":null!=(o=this.floor)?o:t.floor},default:0},(t.ismp||this.player.itiqAll)&&(l.setItiq=!0);var f=t.npl,h={};if(t.ntp)try{h=JSON.parse(decodeURIComponent(t.ntp)||"{}")}catch(t){0}var v,m="pbs"===t.type,g=(null==(a=t.playerSettings)?void 0:a.vi)>0,y=this.publisherConfig.s2sConfig,b=l.bids.map((function(e){var i,n=ca(e);if(e.params){Array.isArray(t.badv)&&(e.params.badv=t.badv),Array.isArray(t.bcat)&&(e.params.bcat=t.bcat);try{var r,o,a,c,d,u,p=f?{}:s.player.config.videooverride||{};null==(r=Eo[n])||r.call(Eo,e,{mediaTypes:l.mediaTypes,irisContext:(null==(o=s.player)||null==(o=o.config)||null==(o=o.ctinfo)?void 0:o.irisContext)||(null==(a=s.player)||null==(a=a.config)||null==(a=a.ctinfo)?void 0:a.cparam1),irisId:(null==(c=s.player)||null==(c=c.config)||null==(c=c.ctinfo)?void 0:c.irisId)||(null==(d=s.player)||null==(d=d.config)||null==(d=d.ctinfo)?void 0:d.cparam2)},p),!g||p.playbackmethod&&p.playbackmethod[0]===te.ClickSoundOn||((h=h||{}).playbackmethod=[te.ViewportSoundOff]),function(t){Vi&&(t.mediaTypes=t.mediaTypes||{},t.mediaTypes.video=t.mediaTypes.video||{},t.mediaTypes.video.useCacheKey=!0)}(l),Io(l.mediaTypes,e.params,null==(u=s.player.config.mediatypes)?void 0:u.video,p,h)}catch(t){0}}if(s.bidderMap[n]||(s.bidderMap[n]=0),++s.bidderMap[n],m&&pa[n]&&(y.extPrebid.aliases[n]=pa[n]),s.bidderMap[n]>1){var v="".concat(n,"_").concat(s.bidderMap[n]);return s.bidderAliasMap[n]||(s.bidderAliasMap[n]=[]),s.bidderAliasMap[n].push(v),e.bidder=v,e.avOriginalBidder=n,m&&(y.extPrebid.aliases[v]=n),v}var b=null==(i=s.publisherConfig.userSync.filterSettings)?void 0:i.all;return b&&(Array.isArray(b.bidders)||(b.bidders=[]),b.bidders.push(n)),n}));if(m)y.enabled=!0,y.bidders=y.bidders.concat(b),(v=l.mediaTypes.video).playbackmethod||(v.playbackmethod=[]);this.setBiddersSchain(b,t.schain)}},n.setBiddersSchain=function(t,e){t.length&&null!=e&&e.nodes&&this.bidderConfigs.push({bidders:t,config:{schain:{validation:"relaxed",config:ae({},e)}}})},n.loadSdk=function(){var t=this,e=Object.keys(this.bidderMap);return aa.load(e).catch((function(e){throw t.skipAllBids(),e}))},n.setAnalyticModules=function(){var t,e=this;(null==(t=this.player.config.pbanalytics)?void 0:t.length)>0&&this.player.config.pbanalytics.forEach((function(t){e.sdk.enableAnalytics(t)}))},n.requestBids=function(){var t=(0,ce.Z)(le().mark((function t(e){var i,n,r=this;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=new ra("Unable to request bids"),this.hasAdSources){t.next=7;break}t.next=6;break;case 6:case 20:throw i;case 7:return t.next=9,this.loadSdk();case 9:if(n=t.sent,this.requestInit=e,this.requestTimestamp=me(),this.initBidResponses(),this.addEventListeners(),n){t.next=21;break}this.skipAllBids(),t.next=20;break;case 21:return t.abrupt("return",new pe((function(t){n.que.push((function(){r.setAnalyticModules(),r.player.shouldSync||(r.publisherConfig.userSync.filterSettings=void 0),r.player.config.synctopics||(r.publisherConfig.userSync.topics={bidders:[]}),r.player.config.imarender&&(r.player.config.imarender.cacheUrl=r.player.config.imarender.cacheUrl||"https://prebid.adnxs.com/pbc/v1/cache",Object.assign(r.publisherConfig,{enableSendAllBids:!0,targeting:{includebidderkeys:!0,includewinners:!0},cache:{url:r.player.config.imarender.cacheUrl}})),r.player.config.pbjsconfig&&Object.assign(r.publisherConfig,r.player.config.pbjsconfig),n.setConfig(r.publisherConfig),r.bidderConfigs.forEach((function(t){n.setBidderConfig(t)})),n.bidderSettings=r.config.prebidBidderSettings,Object.keys(r.bidderAliasMap).forEach((function(t){r.bidderAliasMap[t].forEach((function(e){n.aliasBidder(t,e)}))}));var i={adUnits:r.adUnits,bidsBackHandler:function(e){r.removeEventListeners(),r.player.config.imarender&&Object.keys(e).forEach((function(t){var i;null!=(i=e[t])&&null!=(i=i.bids)&&i[0]&&r.processBidResponse(e[t].bids[0],r.requestInit)})),t(e)}};(null==e?void 0:e.timeout)>0&&(i.timeout=e.timeout),n.requestBids(i)}))})).then((0,ce.Z)(le().mark((function t(){return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r.bidsVastRequests.length>0)){t.next=4;break}return t.next=3,pe.all(r.bidsVastRequests);case 3:r.bidsVastRequests.length=0;case 4:return t.abrupt("return",r.bidResponses);case 5:case"end":return t.stop()}}),t)})))));case 22:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),n.getBidResponsesForAdSource=function(t){return this.sdk?(0,we.Z)((0,ke.Z)(i.prototype),"getBidResponsesForAdSource",this).call(this,t):[]},n.getBidCpm=function(t){return t.cpm||0},n.getEids=function(){if(this.sdk)return{userIdAsEids:this.sdk.getUserIdsAsEids()}},n.getBidderName=function(t){var e,i=t.params;return null!=i&&null!=(e=i.bids)&&e[0]?ca(i.bids[0]):t.bidder},n.addEventListeners=function(){this.isInitialized||(this.sdk.onEvent("bidResponse",this.onBidResponse),this.sdk.onEvent("noBid",this.onNoBid),this.sdk.onEvent("bidTimeout",this.onBidTimeout),this.sdk.onEvent("beforeRequestBids",this.onBeforeRequestBids),this.sdk.onEvent("beforeBidderHttp",this.onBeforeBidderHttp),this.isInitialized=!0)},n.removeEventListeners=function(){this.isInitialized&&(this.sdk.offEvent("bidResponse",this.onBidResponse),this.sdk.offEvent("noBid",this.onNoBid),this.sdk.offEvent("bidTimeout",this.onBidTimeout),this.sdk.offEvent("beforeRequestBids",this.onBeforeRequestBids),this.sdk.offEvent("beforeBidderHttp",this.onBeforeBidderHttp),this.isInitialized=!1)},n.getAdUnitByCode=function(t){var e,i=ue(this.adUnits,!0);try{for(i.s();!(e=i.n()).done;){var n=e.value;if(n.code===t)return n}}catch(t){i.e(t)}finally{i.f()}return null},n.filterBidsByFloorAndBlock=function(t,e){var i=this;return t.filter((function(t){var n,r=i.getBidCpm(t),o=(null==(n=i.player)?void 0:n.softfloor)||0,a=r>=e-o;if(a||i.skipBid(t),a){var s,l=(null==(s=t.meta)||null==(s=s.advertiserDomains)?void 0:s[0])||"";l&&Me(l,"adDomain",t.adId)&&(i.skipBid(t),a=!1)}return a}))},(0,F.Z)(i,[{key:"sdk",get:function(){return aa.sdk}},{key:"hasGdpr",get:function(){var t;return!(null==(t=this.publisherConfig.consentManagement)||!t.gdpr)}},{key:"hasUsp",get:function(){var t;return!(null==(t=this.publisherConfig.consentManagement)||!t.usp)}},{key:"hasUserIds",get:function(){var t;return(null==(t=this.publisherConfig.userSync)||null==(t=t.userIds)?void 0:t.length)>0}}]),i}(Ar);var ha=new fa({platformServerId:10,prebidBidderSettings:{standard:{storageAllowed:!0},criteo:{storageAllowed:!0}},sdkConfig:{minBidCacheTTL:15,ttlBuffer:15,eventHistoryTTL:15,priceGranularity:"high",bidderTimeout:8e3,maxRequestsPerOrigin:10,currency:{},userSync:{aliasSyncEnabled:!0,syncDelay:500,auctionDelay:250,userIds:[{name:"id5Id",storage:{type:"html5",name:"id5id",expires:90,refreshInSeconds:28800}},{name:"unifiedId",storage:{type:"html5",name:"pbjs-unifiedid",expires:90}},{name:"identityLink",storage:{type:"html5",name:"idl_env",expires:7}},{name:"pubCommonId",storage:{type:"cookie",name:"_pubcid",expires:365}},{name:"hadronId",storage:{name:"hadronId",type:"html5",expires:90}},{name:"33acrossId",storage:{name:"33acrossId",type:"html5",expires:90,refreshInSeconds:28800}},{name:"connectId",storage:{name:"connectId",type:"html5",expires:15}},{name:"novatiqId",storage:{name:"novatiqId",type:"html5",expires:90,refreshInSeconds:28800}},{name:"uid2"},{name:"lotamePanoramaId"},{name:"liveIntentId"}],filterSettings:{all:{bidders:"*",filter:"include"}},topics:{maxTopicCaller:1,bidders:[{bidder:"pubmatic",iframeURL:"https://ads.pubmatic.com/AdServer/js/topics/topics_frame.html",expiry:7},{bidder:"openx",iframeURL:"https://pa.openx.net/topics_frame.html",expiry:7}]}},realTimeData:{auctionDelay:100,dataProviders:[{name:"growthCodeRtd",waitForIt:!0}]},s2sConfig:{accountId:"1",bidders:[],endpoint:"".concat("https://pbs.aniview.com","/openrtb2/auction"),syncEndpoint:"".concat("https://pbs.aniview.com","/cookie_sync"),timeout:8e3},improvedigital:{usePrebidSizes:!0},yahoossp:{mode:"video"},consentManagement:{gpp:{cmpApi:"iab",timeout:4e3},usp:{cmpApi:"iab",timeout:4e3}}}}),va=0,ma=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(t){var n;return(0,N.Z)(this,i),(n=e.call(this,t)).creativeType=Nr,n.context=void 0,n.code=void 0,n.priority=void 0,n.price=void 0,n.url=void 0,n.params=void 0,n.roundedFloor=void 0,n.fixedTemplate=void 0,n.fixedUrl=void 0,Hr((0,Ie.Z)(n),t),n.response=t,n.code=t.asid||"".concat(n.creativeType.toLowerCase(),"_").concat(va),++va,n.priority=parseInt(String(t.priority))||1,n.price=parseFloat(String(t.price))||0,n.url=n.fixedUrl||t.url||"",n.fixedTemplate=Zr(t),n.roundedFloor=t.roundedFloor,n.params=zr(n.fixedTemplate||t.template),n}return(0,F.Z)(i,[{key:"cbtic",get:function(){var t;return(null==(t=this.playerSettings)?void 0:t.cbtic)>0?this.playerSettings.cbtic:0}}]),i}(Wr);function ga(t){return t.creativeType&&1!==t.creativeType?new ma(t):new Yr(t)}var ya=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(){return(0,N.Z)(this,i),e.apply(this,arguments)}var n=i.prototype;return n.isSupportedAdSource=function(t){return t.type===Ce.S2S},n.requestBids=function(){var t=(0,ce.Z)(le().mark((function t(e){var n;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:void 0===e&&(e={}),t.next=3;break;case 3:if(n="",this.player.openRtb)try{n=JSON.stringify(this.player.openRtb)}catch(t){0}return t.next=7,(0,we.Z)((0,ke.Z)(i.prototype),"requestBids",this).call(this,ae({},e,{body:n}));case 7:return this.flattenMultipleBids(),t.abrupt("return",this.bidResponses);case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),n.flattenMultipleBids=function(){var t=this;this.adSources.map((function(t){return t.code})).forEach((function(e){var i;if((null==(i=t.bidResponses[e])||null==(i=i.bids)?void 0:i.length)>1){var n=t.bidResponses[e].bids;t.bidResponses[e].bids=[n[0]];for(var r=1;r<n.length;r++){var o="".concat(e,"_").concat(r),a=ga(t.adSourceMap[e].response);a.code=o,t.addAdSource(a);var s=JSON.parse(JSON.stringify(t.bidResponses[e]));n[r].adUnitCode=o,s.bids=[n[r]],s.skippedBids=[],t.bidResponses[o]=s}}}))},n.parseS2sResponses=function(t,e,i){var n,r,o=this,a=[];try{r=JSON.parse(i)}catch(t){}return(null==(n=r)||null==(n=n.seatbid)?void 0:n.length)>0&&r.seatbid.forEach((function(i){var n;if((null==i||null==(n=i.bid)?void 0:n.length)>0){var r=o.createBid(t,{vastXml:i.bid[0].adm||"",statusMessage:e,meta:{advertiserDomains:i.bid[0].adomain||[]}});a.push(r)}})),a},n.createBidsRequest=function(t,e){var i,n,r,o,a,s,l=this,c=(null==(i=this.player.config.videooverride)?void 0:i.placement)||(null==(n=this.player.config.mediatypes)||null==(n=n.video)?void 0:n.placement)||"",d=(null==(r=this.player.config.videooverride)||null==(r=r.playbackmethod)?void 0:r[0])||(null==(o=this.player.config.mediatypes)||null==(o=o.video)||null==(o=o.playbackmethod)?void 0:o[0])||"",u=Object.entries({AV_VI:Utils.getViewabilityPerc(),AV_VID:Utils.getViewabilityDist(),d4:this.player.wfCycle,d5:Math.floor((Date.now()-this.player.startTime)/1e3),AV_PLCMT:this.player.plcmt||"",AV_PLACEMENT:c,AV_PLAYBACKMETHOD:d,AV_IRISID:(null==(a=this.player.config.ctinfo)?void 0:a.irisId)||"",AV_IRISIDCTX:(null==(s=this.player.config.ctinfo)?void 0:s.irisContext)||"",ms2s:1}).map((function(t){var e=mr(gr.Z,t,2),i=e[0],n=e[1];return"".concat(i,"=").concat(n)})).join("&"),p="".concat(t.url,"&").concat(u),f="POST",h=this.player.config.s2stesturl;if(h&&(p=h,f="GET",e&&(e.body=void 0)),this.player.config.s2sbid){var v=this.player.config.s2sbid;this.player.config.s2sbid=void 0;var m=this.parseS2sResponses(t,"",v);return this.resolveBidsVast(m,e)}return this.fetch(p,e,t.vastConfig,{headers:{"Content-Type":"text/plain"},method:f,body:null==e?void 0:e.body,timeout:3500}).then((0,ce.Z)(le().mark((function i(n){var r;return le().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r=[],i.next=3,n.text().then((function(e){r=l.parseS2sResponses(t,n.statusText,e)}));case 3:return i.abrupt("return",l.resolveBidsVast(r,e));case 4:case"end":return i.stop()}}),i)}))))},(0,F.Z)(i)}(Ar);var ba=new ya,Aa=new Ar,wa=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(){return(0,N.Z)(this,i),e.apply(this,arguments)}var n=i.prototype;return n.isSupportedAdSource=function(t){return t.type===Ce.VastXml},n.createBidsRequest=function(t,e){return this.resolveBidsVast([this.createBid(t,{vastXml:t.vastxml})],e)},(0,F.Z)(i)}(Ar);var ka=new wa,xa=function(t){(0,xe.Z)(i,t);var e=Se(i);function i(){return(0,N.Z)(this,i),e.apply(this,arguments)}var n=i.prototype;return n.isSupportedAdSource=function(t){return t.type===Ce.Video},n.createBidsRequest=function(t,e){return this.resolveBidsVast([this.createBid(t,{vastXml:_a(t)})],e)},(0,F.Z)(i)}(Ar);function _a(t){return'<VAST version="2.0"><Ad id="aniview"><InLine><AdSystem>aniview</AdSystem><AdTitle>aniview</AdTitle><Creatives><Creative><Linear><Duration></Duration><VideoClicks><ClickThrough id="aniview"><![CDATA['.concat((t.clickThroughUrl||"").trim(),']]></ClickThrough></VideoClicks><MediaFiles><MediaFile height="360" width="480" bitrate="527" type="video/mp4" delivery="progressive"><![CDATA[').concat(t.url,"]]></MediaFile></MediaFiles></Linear></Creative></Creatives></InLine></Ad></VAST>")}var Sa=new xa,Ca=new ho,Ta=new Ae([ha,_o,Sa,Ca,ka,ba,Aa]);var Ia=r(6274),Ea=r(9359);function Pa(t,e){return function(t){return Dt(t,"handleEvent")&&m(t.handleEvent)}(e)?e.handleEvent.bind(e):e.bind(t)}function Va(t){return!0===t||!1===t||(0,it.Z)(t)&&(0,v.Z)(t,"Boolean")}var Oa=["webkit","moz","ms","o"],Ra=[],La=[],Ua=(0,Ea.Z)("isHidden"),Da=(0,Ea.Z)("hiddenProp"),Ma=(0,Ea.Z)("visibilityChangeEventType"),qa=(0,Ea.Z)("visibilityStateProp"),ja=(0,Ea.Z)("doc"),Fa=(0,Ea.Z)("isSupported"),Na=(0,Ea.Z)("wrapCallback");function Ba(){return!!(0,Ia.Z)(this,Da)[Da]}function Za(t){var e=this,i=La.indexOf(t);if(i>-1)return Ra[i];var n=Pa((0,Ia.Z)(this,ja)[ja],t);return[function(t){(0,Ia.Z)(e,Ua)[Ua]=!1,n(t)},function(t){(0,Ia.Z)(e,Ua)[Ua]=!0,n(t)}]}var za=new(function(){function t(e){var i=this;if((0,N.Z)(this,t),Object.defineProperty(this,Na,{value:Za}),Object.defineProperty(this,Fa,{get:Ba,set:void 0}),Object.defineProperty(this,Ua,{writable:!0,value:void 0}),Object.defineProperty(this,Da,{writable:!0,value:void 0}),Object.defineProperty(this,Ma,{writable:!0,value:void 0}),Object.defineProperty(this,qa,{writable:!0,value:void 0}),Object.defineProperty(this,ja,{writable:!0,value:void 0}),this.wnd=e,(0,Ia.Z)(this,ja)[ja]=e?e.document:window.document,Va((0,Ia.Z)(this,ja)[ja].hidden))(0,Ia.Z)(this,Da)[Da]="hidden",(0,Ia.Z)(this,Ma)[Ma]="visibilitychange",(0,Ia.Z)(this,qa)[qa]="visibilityState";else{var n=Oa.find((function(t){return Va((0,Ia.Z)(i,ja)[ja]["".concat(t,"Hidden")])}));if(!n)return;(0,Ia.Z)(this,Da)[Da]="".concat(n,"Hidden"),(0,Ia.Z)(this,Ma)[Ma]="".concat(n,"visibilitychange"),(0,Ia.Z)(this,qa)[qa]="".concat(n,"VisibilityState")}}var i=t.prototype;return i.addEventListener=function(t,i,n){if((0,Ia.Z)(this,Fa)[Fa])(0,Ia.Z)(this,ja)[ja].addEventListener((0,Ia.Z)(this,Ma)[Ma],i,n);else{var r,o=(0,Ia.Z)(this,Na)[Na](i),a=mr(gr.Z,o,2),s=a[0],l=a[1];c=i,d=[s,l],(u=La.indexOf(c))>-1?Ra[u]=d:(La.push(c),Ra.push(d)),e.addEventListener?(e.addEventListener("focus",s,n),e.addEventListener("blur",l,n)):null!=(r=e.document)&&r.attachEvent&&(e.document.attachEvent("onfocusin",s),e.document.attachEvent("onfocusout",l))}var c,d,u},i.removeEventListener=function(t,i,n){if((0,Ia.Z)(this,Fa)[Fa])(0,Ia.Z)(this,ja)[ja].removeEventListener((0,Ia.Z)(this,Ma)[Ma],i,n);else{var r,o=(0,Ia.Z)(this,Na)[Na](i),a=mr(gr.Z,o,2),s=a[0],l=a[1];c=i,(d=La.indexOf(c))>-1&&(La.splice(d,1),Ra.splice(d,1)),e.addEventListener?(e.removeEventListener("focus",s,n),e.removeEventListener("blur",l,n)):null!=(r=e.document)&&r.detachEvent&&(e.document.detachEvent("onfocusin",s),e.document.detachEvent("onfocusout",l))}var c,d},(0,F.Z)(t,[{key:"visibilityState",get:function(){return(0,Ia.Z)(this,Fa)[Fa]?(0,Ia.Z)(this,ja)[ja][(0,Ia.Z)(this,qa)[qa]]:(0,Ia.Z)(this,Ua)[Ua]?"hidden":"visible"}},{key:"hidden",get:function(){return(0,Ia.Z)(this,Fa)[Fa]?(0,Ia.Z)(this,ja)[ja][(0,Ia.Z)(this,Da)[Da]]:(0,Ia.Z)(this,Ua)[Ua]}}]),t}())(window),Wa={timeout:5,size:16},Ha=new(function(){function t(i){var n=this;void 0===i&&(i={}),(0,N.Z)(this,t),this.buffer={},this.postBaseUrl=void 0,this.postAllTrackingPixels=function(){Object.keys(n.buffer).forEach((function(t){return n.postTrackingPixels(t)}))},this.onDocumentVisibilityChange=function(){"hidden"!==za.visibilityState&&"unloaded"!==za.visibilityState||n.postAllTrackingPixels()},this.config=i,this.config=ae({},Wa,i),e.addEventListener("pagehide",this.postAllTrackingPixels),za.addEventListener("visibilitychange",this.onDocumentVisibilityChange)}var i=t.prototype;return i.bufferTrackingPixel=function(t,e,i,n){var r=this,o=this.buffer[t]||(this.buffer[t]={timer:0,data:[]});e&&(this.postBaseUrl=e),i&&o.data.push(i);try{n||o.data.length>=this.config.size?this.postTrackingPixels(t):1==o.data.length&&(o.timer=setTimeout((function(){o.timer=0,r.postTrackingPixels(t)}),1e3*this.config.timeout))}catch(t){0}},i.postTrackingPixels=function(t){var e,i=this.buffer[t],n=this.postBaseUrl;if(n&&Array.isArray(null==i?void 0:i.data)&&!(i.data.length<=0)){var r=JSON.stringify(i.data);i.data.length=0,i.timer&&(clearTimeout(i.timer),i.timer=0),m(null==(e=Ri.Z.navigator)?void 0:e.sendBeacon)?Ri.Z.navigator.sendBeacon(n,r):gn(n,{method:"POST",body:r})}},i.dispose=function(){e.removeEventListener("pagehide",this.postAllTrackingPixels),za.removeEventListener("visibilitychange",this.onDocumentVisibilityChange)},(0,F.Z)(t)}());function Ga(t,e,i,n){Ha.bufferTrackingPixel(t,e,i,n)}var Ka=["http:","https:"];var Ja="HeavyAdIntervention",Xa="vp",Qa="avm",Ya="player",$a="gen",ts="crash",es="net",is="cpu";function ns(t,e,i){e.forEach((function(e){"intervention"===e.type&&e.body&&e.body.id!==Ja||i(t,e)}))}function rs(t,e){t||(t=window);try{if(!o(t.ReportingObserver))return;var i=Xa;t===window?i=Qa:t===window.parent&&(i=Ya);var n=new t.ReportingObserver((function(t){ns(i,t,e)}),{types:["crash","intervention"],buffered:!0});n.observe(),t.addEventListener("pagehide",(function(){var t=n.takeRecords();ns(i,t,e)}))}catch(t){0}}var os=["AdLoaded","AdStarted","AdStopped","AdSkipped","AdSkippableStateChange","AdSizeChange","AdLinearChange","AdDurationChange","AdExpandedChange","AdRemainingTimeChange","AdVolumeChange","AdImpression","AdVideoStart","AdVideoFirstQuartile","AdVideoMidpoint","AdVideoThirdQuartile","AdVideoComplete","AdClickThru","AdInteraction","AdUserAcceptInvitation","AdUserMinimize","AdUserClose","AdPaused","AdPlaying","AdLog","AdBid","AdError"];os.forEach((function(t){os[t]=t}));var as=os;function ss(t,e,i,n){var r={sCpm:0,nFloor:0,nCpm:0,pCpm:void 0};if(t){var o=isNaN(t.c)?0:t.c,a=isNaN(t.r)?0:t.r;if(r.nFloor=isNaN(t.fp)?o:t.fp,r.nCpm=e||o,t.t==Ke.Fixed)r.sCpm=isNaN(t.v)?0:t.v;else if(t.t==Ke.Ratio||t.t==Ke.Ratio1){var s=isNaN(t.v)?1:t.v;r.sCpm=s*(r.nCpm-a)}if(t.pt==Ke.Fixed)r.pCpm=t.pv;else if(t.pt==Ke.Ratio||t.pt==Ke.Ratio1){var l=isNaN(t.pv)?1:t.pv;r.pCpm=l*(r.nCpm-a)}}else r.sCpm=n||i,r.nFloor=i,r.nCpm=n||i;return r}function ls(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}var cs={JAVASCRIPT:"application/javascript",XJAVASCRIPT:"application/x-javascript",TXTJAVASCRIPT:"text/javascript",FLASH:"application/x-shockwave-flash"};function ds(t,e,i){e.on(t,(function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];i.emit.apply(i,[t].concat(e))}))}function us(t,e,i){i.forEach((function(i){e.listeners(i).length>0&&ds(i,t,e)})),e.on("newListener",(function(n){i.indexOf(n)>-1&&e.listeners(n).length<1&&ds(n,t,e)}))}function ps(t){this.events=t.slice(),this.__private__={target:null,source:null}}ps.prototype.from=function(t){return this.__private__.source=t,this.__private__.target&&us(t,this.__private__.target,this.events),this},ps.prototype.to=function(t){return this.__private__.target=t,this.__private__.source&&us(this.__private__.source,t,this.events),this};var fs=ps;function hs(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function vs(t){return"function"==typeof t}function ms(t){return"object"==typeof t&&null!==t}function gs(t){return void 0===t}hs.EventEmitter=hs,hs.prototype._events=void 0,hs.prototype._maxListeners=void 0,hs.defaultMaxListeners=50,hs.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},hs.prototype.emit=function(t){var e,i,n,r,o,a;if(this._events||(this._events={}),"error"===t&&(!this._events.error||ms(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;throw TypeError('Uncaught, unspecified "error" event.')}if(gs(i=this._events[t]))return!1;if(vs(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:for(n=arguments.length,r=new Array(n-1),o=1;o<n;o++)r[o-1]=arguments[o];i.apply(this,r)}else if(ms(i)){for(n=arguments.length,r=new Array(n-1),o=1;o<n;o++)r[o-1]=arguments[o];for(n=(a=i.slice()).length,o=0;o<n;o++)a[o].apply(this,r)}return!0},hs.prototype.addListener=function(t,e){var i;if(!vs(e))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,vs(e.listener)?e.listener:e),this._events[t]?ms(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,ms(this._events[t])&&!this._events[t].warned)&&((i=gs(this._maxListeners)?hs.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[t].length>i&&(this._events[t].warned=!0,console.log("warning: EventEmitter maxListeners passed %d listeners added. ",this._events[t].length)));return this},hs.prototype.on=hs.prototype.addListener,hs.prototype.once=function(t,e){if(!vs(e))throw TypeError("listener must be a function");var i=!1;function n(){this.removeListener(t,n),i||(i=!0,e.apply(this,arguments))}return n.listener=e,this.on(t,n),this},hs.prototype.removeListener=function(t,e){var i,n,r,o;if(!vs(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=(i=this._events[t]).length,n=-1,i===e||vs(i.listener)&&i.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(ms(i)){for(o=r;o-- >0;)if(i[o]===e||i[o].listener&&i[o].listener===e){n=o;break}if(n<0)return this;1===i.length?(i.length=0,delete this._events[t]):i.splice(n,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},hs.prototype.removeAllListeners=function(t){var e,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(vs(i=this._events[t]))this.removeListener(t,i);else for(;i.length;)this.removeListener(t,i[i.length-1]);return delete this._events[t],this},hs.prototype.listeners=function(t){return this._events&&this._events[t]?vs(this._events[t])?[this._events[t]]:this._events[t].slice():[]},hs.prototype.trackAdEvent=function(t,e){var i;if((!pl.skipEvents||t===as.AdImpression)&&window.AV_player.config.postevt&&null!=(i=this.asTrackingInfo)&&i.base&&this.asTrackingInfo.params){var n="&vi="+Utils.getViewabilityPerc(),r=e?"&ti="+e:"",o="&d1="+this.vt,a="&plt=".concat(window.AV_player.plcmt),s=this.asTrackingInfo.params+"&e="+t+r+n+o+a;Ga("vpaid",this.asTrackingInfo.base,s,!1)}},hs.prototype.trackAdEventWithReason=function(t,e,i){var n;if(window.AV_player.config.postevt&&null!=(n=this.asTrackingInfo)&&n.base&&this.asTrackingInfo.params){var r="&vi="+Utils.getViewabilityPerc(),o=i?"&ti="+i:"",a="&d1="+this.vt,s="&plt=".concat(window.AV_player.plcmt),l=this.asTrackingInfo.params+"&e="+t+"&prbdres="+e+o+r+a+s;Ga("vpaid",this.asTrackingInfo.base,l,!1)}},hs.listenerCount=function(t,e){return t._events&&t._events[e]?vs(t._events[e])?1:t._events[e].length:0};var ys,bs=["AdImpression","AdVideoStart","AdVideoFirstQuartile","AdVideoMidpoint","AdVideoThirdQuartile","AdVideoComplete","AdClickThru","AdStopped","AdPaused","AdPlaying","AdVolumeChange"];function As(t,e,i){"AdVolumeChange"===i&&ys===e.adVolume||t.dispatchEvent({type:i,adVolume:e.adVolume})}function ws(t,e){var i,n=!1;function r(r){n||(i=function(t,e,i,n,r,o){var a,s,l=document.createElement("script"),c=[];e={adData:{ids:e,duration:i,url:r},dispatchEvent:function(t){this.sendEvent?(c&&(c.push(t),t=c,c=!1),this.sendEvent(t)):c&&c.push(t)},clientCallback:o},i="_moatApi"+Math.floor(1e8*Math.random());try{s=(a=t.ownerDocument).defaultView||a.parentWindow}catch(t){a=document,s=window}return s[i]=e,l.type="text/javascript",t&&t.insertBefore(l,t.childNodes[0]||null),l.src="https://z.moatads.com/"+n+"/moatvideo.js#"+i,e}(e.container,e.ids,t.adDuration,e.partnerCode,e.url),bs.forEach((function(e){t.on(e,(function(){As(i,t,e)}))})),As(i,t,r)),n=!0}t.once("AdImpression",(function(){r("AdImpression")})),t.once("AdVideoStart",(function(){r("AdVideoStart")}))}var ks=function(t,e){var i={level1:cnf.publisherid,level2:cnf.channelid,level3:t.asid,level4:t.asid};e&&e.length>0&&e.forEach((function(e){try{(e=Object.assign({},e)).ids=Object.assign({},i,e.ids||{}),e.container=t.container,ws(t,e)}catch(t){}}))};function xs(t){return t}function _s(t,e,i,n,r){this.pixels=t.reduce((function(t,e){return(t[e.event]||(t[e.event]=[])).push({uri:e.uri,t:e.t?e.t:1,offset:e.offset,d:e.d}),t}),{}),this.imaRenderPixels=e.reduce((function(t,e){return(t[e.event]||(t[e.event]=[])).push({uri:e.uri,t:e.t?e.t:1,offset:e.offset,d:e.d}),t}),{}),this.__private__={mapper:i||xs,cpm:n,pcpm:r}}var Ss={};_s.prototype.track=function(t,e,i){var n=this;Ss=window.AV_player.config;var r=this.pixels,o=this.__private__.mapper,a=""+(this.__private__.cpm||""),s=""+(this.__private__.pcpm||""),l=0;try{l=t.adVolume}catch(t){0}var c=0;function d(e){if(!c)try{(!(c=t.adDuration)||c<=0)&&e&&(c=t.adRemainingTime),(c<0||isNaN(c))&&(c=0)}catch(t){0,c=0}return c}function u(t,e,i){function n(t){return o((e||xs)(t))}return function(){i&&!i(arguments)||function(t,e,i,n,r,o){try{if("progress"===i&&t&&t.length>0){var a,s,l=t;t=[];try{if((s=(a=o.adDuration)-o.adRemainingTime)>=0&&a>0)for(var c=l.length-1;c>=0;c--)l[c].offset&&!isNaN(l[c].offset.offset)&&0===l[c].offset.type&&s>=l[c].offset.offset&&t.push(l.splice(c,1)[0])}catch(t){return}}(t||[]).forEach((function(t){try{if(t.uri)if(2==t.t||3==t.t){var a=2==t.t?"script":"iframe",s=document.createElement(a);s.src=e(t.uri);var l,c=r||window;Ss.ifrpixels&&null!=(l=o.frame)&&null!=(l=l.contentWindow)&&null!=(l=l.document)&&l.body&&(c=o.frame.contentWindow.document.body),c.appendChild(s)}else{var d=window;if("complete"==i&&"1"==n)try{parent.Image&&(d=parent)}catch(t){}(new d.Image).src=e(t.uri)}else 4==t.t&&Utils.sendGA(t)}catch(t){}}))}catch(t){}}(r[t],n,t,this&&this.tgt,this&&this.container,this)}}var p={cpm:a,pcpm:s,getDur:function(){return d(!0)},wfCycle:i.reqCounter,asid:i.asid,type:i.type,floor:i.roundedFloor||i.floor,roundedFloor:i.roundedFloor,bidData:i.bidData||{},playerSettings:i.playerSettings||{},tag:i};function f(t){try{return Ii(t,p)}catch(e){return t}}t.fireType=function(t){u(t,(function(t){return f(t)}))()};try{var h=(r.initAd||[]).filter((function(t){return t&&t.d&&5==t.t})).map((function(t){return t&&t.d||{}}));(h=h.concat(Ss.moatconfig||[])).length>0&&ks(t,Pi(h,p))}catch(t){0}try{var v=(r.initAd||[]).filter((function(t){return t&&t.d&&6==t.t})).map((function(t){return t&&t.d||{}}));(v=v.concat(Ss.iasconfig||[])).length>0&&(i.iasConfigs=Pi(v,p))}catch(t){0}t.on(as.AdSkipped,u("skip",(function(t){return f(t)}),(function(t){var e;return!(null!=t&&null!=(e=t[0])&&e.idleDetect)}))),t.on(as.AdStarted,u("creativeView",(function(t){return f(t)}))),t.on(as.AdVolumeChange,u("unmute",(function(t){return f(t)}),(function(){try{return 0===l&&t.adVolume>0}catch(t){}}))),t.on(as.AdVolumeChange,u("mute",(function(t){return f(t)}),(function(){try{return l>0&&0===t.adVolume}catch(t){0}}))),t[e?"on":"once"](as.AdImpression,u("impression",(function(t){return f(t)}),(function(e){var i;return pl.imaRendererAd&&(null==e||null==(i=e[0])||null==(i=i.bidData)||null==(i=i.vastCreativeIds)?void 0:i.length)>0&&(function(t,e){var i,n=ue(e,!0);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(t.includes(r))return!0}}catch(t){n.e(t)}finally{n.f()}return!1}(Ss.imarender.creativeIds,e[0].bidData.vastCreativeIds)||(r=n.imaRenderPixels||[])),t.impEvtSent=!0,d(),!0}))),t.on(as.AdVideoStart,u("start",(function(t){return f(t)}),(function(){try{if(t.stickyImpression&&!t.impEvtSent){var e=u("impression");e&&e(),t.impEvtSent=!0}}catch(t){0}return!0}))),t.on(as.AdVideoFirstQuartile,u("firstQuartile",(function(t){return f(t)}))),t.on(as.AdVideoMidpoint,u("midpoint",(function(t){return f(t)}))),t.on(as.AdVideoThirdQuartile,u("thirdQuartile",(function(t){return f(t)}))),t.on(as.AdVideoComplete,u("complete",(function(t){return f(t)}))),r.progress&&r.progress.length>0&&(t.on(as.AdRemainingTimeChange,u("progress",(function(t){return f(t)}),(function(t){return!0}))),t.once(as.AdImpression,(function(){t.timeChangeInterval=setInterval((function(){t.emit(as.AdRemainingTimeChange)}),1e3)})),t.on(as.AdDurationChange,(function(){if(d()>0)for(var t=0;t<r.progress.length;t++){var e=r.progress[t];e.offset&&1==e.offset.type&&(e.offset.offset=e.offset.offset*c/100,e.offset.type=0)}}))),t.on(as.AdClickThru,u("clickThrough",(function(t){return f(t)}),(function(t){return!0}))),t.on(as.AdUserAcceptInvitation,u("acceptInvitationLinear",(function(t){return f(t)}))),t.on(as.AdUserMinimize,u("collapse",(function(t){return f(t)}))),t.on(as.AdUserClose,u("closeLinear",(function(t){return f(t)}))),t.on(as.AdPaused,u("pause",(function(t){return f(t)}))),t.on(as.AdPlaying,u("resume",(function(t){return f(t)}))),t.on(as.AdError,u("error",(function(t){return t.replace(/\[ERRORCODE\]/g,901)}))),t.on(as.AdVolumeChange,(function(){try{l=t.adVolume}catch(t){0}}))};var Cs=_s;function Ts(t,e){if(void 0===e&&(e=document),Utils.isMobile()){if(function(t){var e,i;if((null==(e=window.AV_player)||null==(e=e.config)||!e.forceimageplayer)&&(t||null!=(i=window.AV_player)&&null!=(i=i.config)&&i.nativevideo)){var n;if(Utils.isVideoSupported())return!0;if(null!=(n=window.AV_player)&&n.config&&(t||window.AV_player.config.nativevideo)&&window.AV_player.config.nativetest)return!0}return!1}(t)||!window.pl.imagePlayer)return Is(e);try{return window.pl.imagePlayer.createTag("",e)}catch(t){return Utils.writeLog(Utils.logLevels.debug,"failed to load image player",t),Is(e)}}return e.createElement("video")}function Is(t){void 0===t&&(t=document);var e=t.createElement("video");return e.setAttribute("muted",!0),e.setAttribute("playsinline",!0),e.setAttribute("webkit-playsinline",!0),e.origPlay=e.play,e.play=function(){return e.fullScreenRequested||(e.setAttribute("muted",!0),e.setAttribute("playsinline",!0),e.setAttribute("webkit-playsinline",!0)),this.pauseState=!1,e.origPlay.call(e)},e.origPause=e.pause,e.pause=function(){return this.pauseState=!0,this.pauseStateTimer&&(clearInterval(this.pauseStateTimer),this.pauseStateTimer=0),e.origPause.call(e)},e.audioReady=!0,Utils.isiOS()&&(e.addEventListener("webkitbeginfullscreen",(function(){e.fullScreenRequested||"function"!=typeof e.webkitExitFullscreen||e.webkitExitFullscreen()})),e.addEventListener("webkitendfullscreen",(function(){e.setAttribute("playsinline",!0),e.setAttribute("webkit-playsinline",!0)})),e.resize=function(t,i,n){if("fullscreen"==n&&Utils.isiOS()){var r=e.paused;r||e.pause(),e.removeAttribute("playsinline"),e.removeAttribute("webkit-playsinline"),e.fullScreenRequested=!0,r||e.play()}}),e}var Es=r(4366),Ps=r.n(Es),Vs=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","interruptbegin","interruptend","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"];Vs.forEach((function(t){Vs[t.toUpperCase()]=t}));var Os,Rs=Vs,Ls=document.createElement("video");function Us(t){var e;switch(t){case cs.FLASH:return 0;case cs.JAVASCRIPT:case cs.XJAVASCRIPT:case cs.TXTJAVASCRIPT:return 2;default:var i=Os||(Os=Ts());if((window.Utils&&!window.Utils.isMobile()||null!=(e=window.AV_player)&&null!=(e=e.config)&&e.nativevideo)&&(i=Ls),i.canPlayType)switch(i.canPlayType(t)){case"probably":return 2;case"maybe":return 1;default:return 0}}return 0}function Ds(t,e){e.fired[t]||(e.fired[t]=!0,e.emit(t))}function Ms(t){hs.apply(this,arguments),t===1/0&&(t=30),this.duration=t,this.fired=[as.AdVideoStart,as.AdVideoFirstQuartile,as.AdVideoMidpoint,as.AdVideoThirdQuartile,as.AdVideoComplete].reduce((function(t,e){return t[e]=!1,t}),{})}ls(Ms,hs),Ms.prototype.tick=function(t){var e=this._getState(),i=[1,2,3,4].map((function(t){return this.duration<10||4==t?Math.floor(this.video.duration/4*t*10)/10:Math.floor(this.duration/4*t)}),this);function n(t){var n=i[t-1];return e.currentTime>=n}n(1)&&Ds(as.AdVideoFirstQuartile,this),n(2)&&Ds(as.AdVideoMidpoint,this),n(3)&&Ds(as.AdVideoThirdQuartile,this),(n(4)||t)&&(Ds(as.AdVideoComplete,this),Ds(as.AdStopped,this))};var qs=Ms;function js(t){var e=this;qs.call(this,Math.floor(t.duration||0)),this.video=t,[Rs.PLAYING,Rs.PAUSE,Rs.TIMEUPDATE,Rs.ENDED].forEach((function(i){return t.addEventListener(i,(function(){return e.tick(i==Rs.ENDED)}),!1)}))}ls(js,qs),js.prototype._getState=function(){return{playing:!this.video.paused,currentTime:this.video.currentTime}};var Fs=js,Ns=function(t){return t.AdSourceBlocked="AdSourceBlocked",t.ShouldBlockAdSource="ShouldBlockAdSource",t.VPAIDBlocked="VPAIDBlocked",t.ShouldBlockVPAID="ShouldBlockVPAID",t}({}),Bs=(0,Ea.Z)("isInitialized"),Zs=(0,Ea.Z)("blockURL"),zs=(0,Ea.Z)("blockVPAID"),Ws=(0,Ea.Z)("site"),Hs=function(){function t(){(0,N.Z)(this,t),this.geoEdgeAPI=void 0,Object.defineProperty(this,Bs,{writable:!0,value:!1}),Object.defineProperty(this,Zs,{writable:!0,value:!1}),Object.defineProperty(this,zs,{writable:!0,value:!1}),Object.defineProperty(this,Ws,{writable:!0,value:""})}var e=t.prototype;return e.initGEOEdge=function(){var t=(0,ce.Z)(le().mark((function t(e){var i,n=this;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(0,Ia.Z)(this,Bs)[Bs]){t.next=2;break}return t.abrupt("return");case 2:if(e.url){t.next=4;break}return t.abrupt("return");case 4:return t.prev=4,globalThis.geoedge={q:[],key:e.key},t.next=8,_r(e.url);case 8:this.geoEdgeAPI=window.geoedge,null!=(i=this.geoEdgeAPI)&&null!=(i=i.q)&&i.push?this.geoEdgeAPI.q.push((function(){(0,Ia.Z)(n,Bs)[Bs]=!0})):(0,Ia.Z)(this,Bs)[Bs]=!0,(0,Ia.Z)(this,Zs)[Zs]=e.blockURL||(0,Ia.Z)(this,Zs)[Zs],(0,Ia.Z)(this,zs)[zs]=e.blockVPAID||(0,Ia.Z)(this,zs)[zs],(0,Ia.Z)(this,Ws)[Ws]=e.site,t.next=18;break;case 15:t.prev=15,t.t0=t.catch(4);case 18:case"end":return t.stop()}}),t,this,[[4,15]])})));return function(e){return t.apply(this,arguments)}}(),e.filterBidResponsesMap=function(t){var e=this;return(0,Ia.Z)(this,Bs)[Bs]?Object.entries(t).reduce((function(t,i){var n=mr(gr.Z,i,2),r=n[0],o=n[1],a=e.filterBidsArray(o.bids);return 0===a.length||(t[r]=o,t[r].bids=a),t}),{}):{}},e.filterBidsArray=function(t){var e=this;return(0,Ia.Z)(this,Bs)[Bs]?t.filter((function(t){var i=e.extractGEOEdgeImpressionMetadata(t),n=e.impression(i),r=e.extractUrlsFromVast(t.vast);return!n.shouldBlock(r)})):[]},e.extractUrlsFromRawVasts=function(t){var e=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/gi;return t.reduce((function(t,i){var n=i.match(e);return n&&(t=t.concat(n)),t}),[])},e.extractUrlsFromVast=function(t){return[].concat(t.map("ads[0].impressions",(function(t){return t.uri})),t.map("ads[0].errors",(function(t){return t})),t.map("ads[0].viewableImpressions.viewable",(function(t){return t.uri})),t.get("ads[0].adVerifications").reduce((function(t,e){return t=t.concat(((null==e?void 0:e.resources)||[]).map((function(t){return t.data})))}),[]),t.get("ads[0].creatives").reduce((function(t,e){var i,n,r,o,a=(null==(i=e.mediaFiles)?void 0:i.map((function(t){return t.uri})))||[],s=(null==(n=e.videoClicks)?void 0:n.clickThrough)||[],l=(null==(r=e.videoClicks)?void 0:r.clickTrackings)||[],c=(null==(o=e.trackingEvents)?void 0:o.map((function(t){return t.uri})))||[];return t.concat(a,s,l,c)}),[])).filter((function(t){return(null==t?void 0:t.length)>0}))},e.extractGEOEdgeImpressionMetadata=function(t){var e,i,n,r,o,a,s,l,c,d,u,p,f,h,v,m,g,y,b=(null==t||null==(e=t.bidData)?void 0:e.vastAdvertiserName)||(null==t||null==(i=t.papi)?void 0:i.aname)||(null==t||null==(n=t.papi)?void 0:n.aid)||"",A=null!=(r=null==t||null==(o=t.bidData)||null==(o=o.vast)?void 0:o.raw)?r:[],w=(null==t||null==(a=t.papi)?void 0:a.aid)||"";return{video_slot:null,slot_element_id:t.code,advertiser_name:b,advertiser_id:w,vast_xmls:A,adv_name:b,adv_id:w,demand_name:b,creative_id:(null==t?void 0:t.id)||(null==t?void 0:t.asid)||"",vast_creative_id:null!=(s=null==t||null==(l=t.bidData)?void 0:l.vastCreativeId)?s:"",vast_creative_ad_id:null!=(c=null==t||null==(d=t.bidData)?void 0:d.vastCreativeAdId)?c:"",universal_ad_ids:null!=(u=null==t||null==(p=t.bidData)?void 0:p.vastUniversalAdIds)?u:[],vast_xml:A,vast_url:null!=(f=null==t||null==(h=t.bidData)?void 0:h.vastUrl)?f:"",cpm:null!=(v=null==t||null==(m=t.bidData)?void 0:m.cpm)?v:null,adomains:null!=(g=null==t||null==(y=t.bidData)?void 0:y.advertiserDomains)?g:[],site:(0,Ia.Z)(this,Ws)[Ws]}},e.shouldBlockVideoAdSource=function(t){if(!(0,Ia.Z)(this,Bs)[Bs])return!1;var e=this.extractGEOEdgeImpressionMetadata(t),i=this.impression(e);t.geoEdge=i;try{var n=this.extractUrlsFromVast(t.vast);return i.shouldBlock(n)}catch(t){return!1}},e.impression=function(t){if(!(0,Ia.Z)(this,Bs)[Bs])return this.mockGeoEdgeImpressionObject();try{return this.geoEdgeAPI.impression(t)}catch(t){return this.mockGeoEdgeImpressionObject()}},e.monitorAd=function(t,e,i){var n=this;if((0,Ia.Z)(this,Bs)[Bs]&&i.geoEdge)try{if(t&&i.geoEdge.monitorIframe(t,e),m(e))return m(i.geoEdge.onEvent)&&i.geoEdge.onEvent(this.geoEdgeAPI.EVENTS.BLOCK,e,{once:!0}),function(){try{var t;m(null==(t=i.geoEdge)?void 0:t.offEvent)&&i.geoEdge.offEvent(n.geoEdgeAPI.EVENTS.BLOCK,e),i.geoEdge=null}catch(t){}}}catch(t){0}},e.mockGeoEdgeImpressionObject=function(){return{shouldBlock:function(t){return!1},monitorIframe:function(t,e){},onEvent:function(t,e,i){},offEvent:function(t,e){}}},(0,F.Z)(t,[{key:"blockURL",get:function(){return(0,Ia.Z)(this,Zs)[Zs]}},{key:"blockVPAID",get:function(){return(0,Ia.Z)(this,zs)[zs]}}]),t}(),Gs=new Hs;function Ks(t,e,i){return t.addEventListener(e,i,!1)}function Js(t,e,i){return Ks(t,e,(function n(){return function(t,e,i){t.removeEventListener(e,i,!1)}(t,e,n),i.apply(this,arguments)}))}function Xs(t,e){return function(){if(this.video)return t.apply(this,arguments)}}function Qs(t,e){var i=this;this.dispatchWaterfallApiEvent=function(){},this.container=t,this.video=null,this.timeouts={loadTimeout:2500,initAdTimeout:2e4,startAdTimeout:2e4},this.__private__={hasPlayed:!1,vast:e},this.vt="vast",this.clearTimeouts=function(){i.timeouts.startAdTimer&&(clearTimeout(i.timeouts.startAdTimer),i.timeouts.startAdTimer=0),i.timeouts.loadAdTimer&&(clearTimeout(i.timeouts.loadAdTimer),i.timeouts.loadAdTimer=0)}}ls(Qs,hs),Object.defineProperties(Qs.prototype,{adRemainingTime:{get:Xs((function(){return this.video.duration-this.video.currentTime}))},adDuration:{get:Xs((function(){return this.video.duration}))},adVolume:{get:Xs((function(){return this.video.muted?0:this.video.volume})),set:Xs((function(t){this.video.volume=t,this.video.muted=t<=0}))},adSkippableState:{get:Xs((function(){return!1}))},adCompanions:{get:Xs((function(){var t=this.__private__.vast.filter("ads[0].creatives",(function(t){return"companions"===t.type}));return t&&t[0]&&t[0].companionAds||""}))}}),Qs.prototype.load=function(t,e,i,n,r,o,a){var s=this;this.asCtx=a.asCtx,s.trackingPixel=n;var l=i&&i.vast&&i.vast.get("ads[0].creatives[0].videoClicks.clickThrough"),c=!1;l&&"string"==typeof l&&(l=l.trim(),c=l.length>2);try{if(null!=i&&i.vast){var d=i.vast.get("ads[0].adVerifications[0].resources[0].data");if(d){var u=Utils.getHostName(d);if(u&&!qe(u)){var p=Re(d.split("?")[0])||"",f=a.trackingPixel.replace("&cd20=","&cddd20=").replace("&cd19=","&cddd19=");this.redirTrack="".concat(f,"AV_M93","&cd20=").concat(u,"&cd19=").concat(p,"&d1=vast")}}}}catch(t){}return new pe((function(e,i){var n;Utils.vcmgr.clean(o),Utils.isMobile()&&a&&"string"==typeof a.url&&a.url.indexOf("rocket10.adspirit.net")>0&&(n=!0);var r=s.container.ownerDocument||document,d=o||Ts(n,r);s.video=d;var u=function(t,e){var i=e.width,n=e.height,r=t.map((function(t){return{mediaFile:t,playability:Us(t.type),typePriority:"video/3gpp"===t.type?1:2}})).filter((function(t){return t.playability>0})).sort(Ps()("-playability","-mediaFile.bitrate")),o=r.map((function(t){return Math.abs(i-(t.mediaFile.width?t.mediaFile.width:300))})),a=r[o.indexOf(Math.min.apply(Math,o))];if(a&&a.mediaFile&&"video/3gpp"===a.mediaFile.type){var s=r.filter((function(t){return t.typePriority>1}));o=s.map((function(t){return Math.abs(n-(t.mediaFile.height?t.mediaFile.height:250))}));var l=s[o.indexOf(Math.min.apply(Math,o))];l&&(a=l)}return!a||a.playability<1?null:a.mediaFile}(t,{width:cnf.width,height:cnf.height});if(s.mediaFile=u,!n&&Utils.isMobile()&&u&&"string"==typeof u.uri&&u.uri.indexOf("r.mradx.net")>0&&(d=o||Ts(!0,r),s.video=d),s.container.style.top="0px",d.asid=s.asid,!u){var p="There are no playable <MediaFile>s.";return setTimeout((function(){s.emit(as.AdError,p)}),1),s.clearTimeouts(),i(new Error(p))}function f(){if(!s.loaded){s.loaded=!0;var t=new Fs(d);new fs(as).from(t).to(s),s.video=d,e(s),s.emit(as.AdLoaded),s.trackAdEvent(as.AdLoaded,Date.now()-s.timeouts.initAdTime),s.dispatchWaterfallApiEvent(as.AdLoaded,s.asid,{asCtx:a.asCtx}),s.timeouts.startAdTime=Date.now(),Ks(d,Rs.DURATIONCHANGE,(function(){s.emit(as.AdDurationChange)})),Ks(d,Rs.VOLUMECHANGE,(function(){s.emit(as.AdVolumeChange)})),Ks(d,Rs.TIMEUPDATE,(function(){s.emit(as.AdRemainingTimeChange,d.currentTime)})),Ks(d,Rs.PAUSE,(function(){d.ended||s.emit(as.AdPaused)})),Ks(d,Rs.PLAY,(function(){s.__private__.hasPlayed&&s.emit(as.AdPlaying)}))}}if(window.AV_player.config.noinlinevideo||(d.setAttribute("webkit-playsinline",!0),d.setAttribute("playsinline",!0)),o||(d.muted=!0,d.volume=0),d.preload="auto",d.style.visibility="hidden",d.style.width="100%",d.style.height="100%",d.style.objectFit="contain",s.loaded=!1,s.timeouts.loadAdTimer=setTimeout(f,s.timeouts.loadTimeout),Js(d,Rs.LOADEDMETADATA,(function(){f()})),Js(d,"encodeerror",(function(){s.loaded=!0;var t=d.error;t&&t.message&&t.message,s.emit(as.AdError,as.mediaPlayError),s.clearTimeouts(),i(t)})),Js(d,"error",(function(){s.loaded=!0;var t=d.error,e="";t&&t.message&&(e=t.message),s.emit(as.AdError,e),s.clearTimeouts(),i(t)})),Js(d,Rs.PLAYING,(function(){s.loaded=!0,d.style.visibility="visible",s.__private__.hasPlayed=!0,s.emit(as.AdImpression),s.emit(as.AdVideoStart),s.trackAdEvent(as.AdImpression,Date.now()-s.timeouts.startAdTime),s.clearTimeouts()})),Js(d,Rs.ENDED,(function(){})),c){var h=d;if(o&&Utils.isiOS()){var v=document.createElement("div");v.style.position="absolute",v.style.top="0px",v.style.left="0px",v.style.width="100%",v.style.height="100%",v.style.zIndex="1",s.container.appendChild(v),h=v}Utils.isMobile()||(h.style.cursor="pointer"),Ks(h,"click",(function(){s.emit(as.AdClickThru,l,null,!0)}))}o&&(o.isContent=!0),s.container.appendChild(d),d.src=u.uri,d.load(),s.timeouts.initAdTime=Date.now(),s.trackAdEvent("initAd"),s.dispatchWaterfallApiEvent("initAd",s.asid,{asCtx:a.asCtx}),s.geoedgeCleanup=Gs.monitorAd(null,(function(){Gs.blockVPAID&&(s.trackAdEventWithReason("AV_M3","vpgeob"),s.clearTimeouts(),s.emit(Ns.VPAIDBlocked)),Gs.blockVPAID||s.trackAdEventWithReason("AV_M3","vpgeosb")}),a)}))},Qs.prototype.startAd=Xs((function(){var t=this,e=this.video;return this.__private__.hasPlayed?(t.emit("AdDelayed"),e.play()):new pe((function(i,n){return Js(e,Rs.PLAYING,(function(){i(t),t.emit(as.AdStarted)})),e.style.display="block",t.timeouts.startAdTimer=setTimeout((function(){t.timeouts.startAdTimer>0&&(t.emit(as.AdError,as.mediaPlayError),t.timeouts.startAdTimer=0,t.loaded=!0,n({}))}),t.timeouts.startAdTimeout),e.play()}))})),Qs.prototype.start=function(){this.startAdCalled=!0,"function"==typeof this.video.startAd&&this.video.startAd();try{this.video.isContent||(this.adVolume=0)}catch(t){}this.startAd(),this.trackAdEvent("startAd"),this.timeouts.startAdTime=Date.now(),this.dispatchWaterfallApiEvent("startAd",this.asid,this.tagData||{asCtx:this.asCtx})},Qs.prototype.stopAd=Xs((function(){return this.emit(as.AdStopped),pe.resolve(this)})),Qs.prototype.skipAd=Xs((function(){return this.emit(as.AdSkipped),pe.resolve(this)})),Qs.prototype.pauseAd=Xs((function(){var t=this,e=this.video;return this.video.paused?pe.resolve(this):new pe((function(i){return Js(e,Rs.PAUSE,(function(){i(t)})),e.pause()}))})),Qs.prototype.resumeAd=Xs((function(){var t=this,e=this.video;return this.__private__.hasPlayed?this.video.paused?new pe((function(i){return Js(e,Rs.PLAY,(function(){i(t)})),e.play()})):pe.resolve(this):pe.reject(new Error("The ad has not been started yet."))})),Qs.prototype.resizeAd=Xs((function(t,e,i){this.video.style.width=t+"px",this.video.width=t,this.video.style.height=e+"px",this.video.height=e})),Qs.prototype.seekAd=Xs((function(t){this.video.currentTime=t}));var Ys=Qs,$s=["noError","mediaPlayError","mediaTimeout","vpaidGeneralError","vpaidLoadError","vpaidLoadTimeout","vpaidInitAdError","vpaidInitAdTimeout","vpaidStartAdError","vpaidStartAdTimeout","vpaidPlayError","mediaJsonError"];$s.forEach((function(t){$s[t]=t}));var tl=$s;function el(t){var e=(t=""+t).split(".").map(parseFloat);this.string=t,this.major=e[0],this.minor=e[1],this.patch=e[2],Object.freeze(this)}el.prototype.toString=function(){return this.string};var il=el;function nl(t,e){return function(){var i=arguments,n=this.api,r=this;function o(){return"function"==typeof r[t+"Ext"]&&r[t+"Ext"].apply(r,i),n[t].apply(n,i)}if(!e){if(!n)throw new Error("Ad has not been loaded.");return o()}return new pe((function(t,i){if(n)return r.once(e,(function(){t(r)})),o()}))}}function rl(t){this.container=t,this.api=null,this.vpaidVersion=null,this.fireVpaidEvents=window.AV_player.config.tmf.vpaid}ls(rl,hs),Object.defineProperties(rl.prototype,{adLinear:{get:nl("getAdLinear")},adWidth:{get:nl("getAdWidth")},adHeight:{get:nl("getAdHeight")},adExpanded:{get:nl("getAdExpanded")},adSkippableState:{get:nl("getAdSkippableState")},adRemainingTime:{get:nl("getAdRemainingTime")},adDuration:{get:nl("getAdDuration")},adVolume:{get:nl("getAdVolume"),set:nl("setAdVolume")},adCompanions:{get:nl("getAdCompanions")},adIcons:{get:nl("getAdIcons")}}),rl.prototype.cleanTimers=function(){this.timeouts.loadTimer&&clearTimeout(this.timeouts.loadTimer),this.timeouts.initAdTimer&&clearTimeout(this.timeouts.initAdTimer),this.timeouts.startAdTimer&&clearTimeout(this.timeouts.startAdTimer),this.timeouts.startAdTimer=this.timeouts.initAdTimer=this.timeouts.loadTimer=0},rl.prototype.load=function(){throw new Error("VPAID subclass must implement load() method.")},rl.prototype.resizeAd=nl("resizeAd",as.AdSizeChange),rl.prototype.startAd=nl("startAd",as.AdStarted),rl.prototype.stopAd=nl("stopAd",as.AdStopped),rl.prototype.pauseAd=nl("pauseAd",as.AdPaused),rl.prototype.resumeAd=nl("resumeAd",as.AdPlaying),rl.prototype.expandAd=nl("expandAd",as.AdExpandedChange),rl.prototype.collapseAd=nl("collapseAd",as.AdExpandedChange),rl.prototype.skipAd=nl("skipAd",as.AdSkipped),rl.prototype.seekAd=function(t){return!1};var ol=rl;function al(t){var e;if(null!=t&&null!=(e=t.contentWindow)&&null!=(e=e.document)&&e.open&&!t.contentWindow.document.open.name){var i=t.contentWindow.Document.prototype.open;t.contentWindow.Document.prototype.open=function(){var t=i.apply(this,arguments);return t||(t=this),t}}}var sl=function(t){var e=this,i=new B,n=["handshakeVersion","getAdLinear","stopAd","getAdVolume","setAdVolume","resizeAd","pauseAd","resumeAd","expandAd","getAdExpanded","getAdSkippableState","collapseAd","skipAd","getAdWidth","getAdHeight","getSkippableRemainingTime","getAdRemainingTime","getAdDuration","getAdCompanions","getIcons","getAdIcons"];function r(i){e[i]=function(){return t[i].apply(t,arguments)}}for(var o=0;o<n.length;o++)r(n[o]);function a(){t.setAdVolume(0),setTimeout((function(){t.setAdVolume(0),t.startAd(),t.setAdVolume(0)}),10)}var s=null;this.initAd=function(){s=arguments,setTimeout((function(){i.dispatch("AdLoaded")}),10)},this.startAd=function(){s&&(t.subscribe(a,"AdLoaded"),t.initAd.apply(t,s))},this.subscribe=function(e,n,r){"AdLoaded"==n?i.subscribe(e,n,r):t.subscribe(e,n,r)},this.unsubscribe=function(e,n){"AdLoaded"==n?(i.unsubscribe(e,n),t.unsubscribe(a,"AdLoaded")):t.unsubscribe(e,n)}};function ll(){ol.apply(this,arguments),this.stateError=tl.vpaidGeneralError,this.dispatchWaterfallApiEvent=function(){},this.frame=null,this.timeouts={loadTimeout:1e4,initAdTimeout:2e4,startAdTimeout:2e4},this.vt="vpaid",this.subscriptions=[],this.impOnOpt=[as.AdVideoStart,as.AdStarted]}ls(ll,ol),ll.prototype.load=function(t,e,i,n,r,o,a){var s,l=this;if(this.asCtx=a.asCtx,!a.skip){var c=this.uri=t[0].uri;try{if(a.trackingPixel&&!ti(a)){var d=Utils.getHostName(c);if(d&&!qe(d)){var u=Re(c.split("?")[0])||"",p=a.trackingPixel.replace("&cd20=","&cddd20=").replace("&cd19=","&cddd19=");this.redirTrack="".concat(p,"AV_M93","&cd20=").concat(d,"&cd19=").concat(u,"&d1=vpaid")}}}catch(t){}var f=t[0].bitrate;this.mediaFile=t[0],l.trackingPixel=n,l.tagType=a.type,l.imaRender=ti(a)||a.imaRender,a.imaRender&&(a.imaMode=1);var h=!1,v=!1,g=!1,y=!1,b=!1,A=c.indexOf("amazon.com");if((110===a.platform||A>-1&&A<50)&&(h=!0),(null==(s=a.url)?void 0:s.indexOf("vast.wowyowapi.com"))>-1&&(h=!0),a&&a.playerSettings){var w=0;switch(a.playerSettings.impOn&&this.impOnOpt.indexOf(a.playerSettings.impOn)>-1&&(l.impOn=a.playerSettings.impOn),a.playerSettings.vpm&&(w=a.playerSettings.vpm),"pl"==a.type||l.imaRender||!cnf.vpm||w||(w=cnf.vpm),(null==c?void 0:c.indexOf(".playwire."))>-1&&(w=0),l.imaRender&&cnf.imavpm&&!w&&(w=cnf.imavpm),w){case 4:b=!0;break;case 3:y=!0,h=!0;break;case 2:g=!0;case 1:h=!0}}return i.opt2&&(v=!0,g=!0),new pe((function(t,i){var n,s,d=l.container.ownerDocument||document,u=d.createElement("iframe"),p=d.createElement("script"),A=r||d.createElement("div"),w=!1;if(Utils.isMobile()){var k=c.indexOf(".sascdn.com/");k>-1&&k<20&&(w=!0);var x=c.indexOf("//connect.facebook.net");x>-1&&x<20&&(w=!0),"string"==typeof a.url&&a.url.indexOf("rocket10.adspirit.net")>0&&(w=!0)}o&&o.src&&o.removeAttribute&&o.removeAttribute("src");var _=o||Ts(w),S=[];function C(t,e){var i=!1;if(t.volume=0,e)for(var n=0;n<S.length;n++)if(S[n].el===t)return;function r(){l.sndEnabled||!i&&!this.muted&&this.volume>0&&(i=!0,this.volume=0,i=!1)}S.push({el:t,listener:r,evt:"volumechange"}),t.addEventListener("volumechange",r)}function T(t){if("function"==typeof t.querySelectorAll&&!Utils.isMobile()&&!window.AV_player.config.autosound)for(var e=t.querySelectorAll("video"),i=0;i<e.length;i++)C(e[i],!0)}function I(t){t.origAppendChild||(t.origAppendChild=t.appendChild,t.appendChild=function(e){return e&&("DIV"===e.nodeName&&I(e),"VIDEO"===e.nodeName&&(e.muted=!0,l.secVideoSlot=e,e.setAttribute("webkit-playsinline","true"),e.setAttribute("playsinline","true"))),t.origAppendChild.call(t,e)},t.origInsertBefore=t.insertBefore,t.insertBefore=function(e,i){return e&&("DIV"===e.nodeName&&I(e),"VIDEO"===e.nodeName&&(e.muted=!0,l.secVideoSlot=e,e.setAttribute("webkit-playsinline","true"),e.setAttribute("playsinline","true"))),t.origInsertBefore.call(t,e,i)})}l.vids=S,A.style.width="100%",A.style.height="100%",l.slot=A,l.video=_,_.asid=l.asid,Utils.isMobile()||window.AV_player.config.autosound||(_.muted=!0,_.volume=0),[A,_,u].forEach((function(t){if("function"==typeof t.scrollIntoView)try{t.scrollIntoView=function(){}}catch(t){}})),l.stopSRScan=function(){l.sndInterval&&(clearInterval(l.sndInterval),l.sndInterval=0)};var E=null;function P(t,e,i,n){function r(t,i){if(e&&e[i]&&e[i].list){for(var r=n.getHostName(t),o=!1,a=0;a<e[i].list.length;a++)if(r.indexOf(e[i].list[a])>-1){o=!0;break}if(o){if("function"==typeof e[i].callback)try{e[i].callback(t,i,l.asid)}catch(t){}if(e[i].track)try{var s=encodeURIComponent(t);for(a=0;a<e[i].track.length;a++){var c=e[i].track[a].replace("AVC_BLKURL",s);(new Image).src=c}}catch(t){}return n.writeLog(n.logLevels.defaultLevel,"URL blocked: "+i+":"+t),!0}if(t.indexOf("/mad_united.js")>-1)return!0}return!1}function o(t){return!(!t||"SCRIPT"!=t.nodeName||"string"!=typeof t.src)&&r(t.src.toLowerCase(),"script")}if(n||(n=Utils),e){if(e.script&&e.script.list&&e.script.list.length>0){var a=t.Element.prototype.appendChild,s=t.Element.prototype.insertBefore;try{t.Element.prototype.appendChild=function(t){try{if(o(t))return null}catch(t){}return a.apply(this,arguments)},t.Element.prototype.insertBefore=function(t,e){try{if(o(t))return null}catch(t){}return s.apply(this,arguments)}}catch(t){}}if(!i&&e.vast&&e.vast.list&&e.vast.list.length>0){var c=t.XMLHttpRequest.prototype.open,d=t.XMLHttpRequest.prototype.send;try{t.XMLHttpRequest.prototype.open=function(t,i,n,o,a){try{this.av_bflagged=!1,"string"==typeof i&&r(i,"vast")&&(arguments[1]=e.vast.redirUrl||"https://play.aniview.com/block.txt",arguments[0]="GET",this.av_bflagged=!0)}catch(t){}return c.apply(this,arguments)},t.XMLHttpRequest.prototype.send=function(){try{this.av_bflagged&&this.withCredentials&&(this.withCredentials=!1)}catch(t){}return d.apply(this,arguments)}}catch(t){}}if(i)return}if(!i){if(window.AV_player.config.customwndopen){var u=t.open;t.open=function(e){if(arguments&&arguments.length>0&&"string"==typeof arguments[0]){var i="&";-1==arguments[0].indexOf("?")&&(i="?"),arguments[0]+=i+"avclickopt=aniview.com"}u.apply(t,arguments)}}var p=t.document.createElement;t.document.createElement=function(e,i){var n=p.call(t.document,e,i);return"string"==typeof e&&("VIDEO"!=e.toUpperCase()||Utils.isMobile()||window.AV_player.config.autosound||C(n),"IFRAME"==e.toUpperCase()&&(n.addEventListener("load",f),S.push({el:n,listener:f,evt:"load"}))),n}}function f(){try{this.contentWindow.cav_fl_set||(this.contentWindow.cav_fl_set=!0,al(this),this.contentWindow.Element.prototype.scrollIntoView=function(){Utils.writeLog(Utils.logLevels.debug,"scrollIntoView inner vpaid overwritten "+l.asid)},P(this.contentWindow,e))}catch(t){}}}window.AV_player.waterfall&&window.AV_player.waterfall.data&&window.AV_player.waterfall.data.block&&(E=window.AV_player.waterfall.data.block),l.cleanup=function(t){if(l.frame)try{!function(){for(var t=0;t<S.length;t++)S[t].el.removeEventListener(S[t].evt,S[t].listener);S=[]}(),u.contentWindow.Element.prototype.scrollIntoView=u.contentWindow.Element.prototype.scrollIntoViewOrig}catch(t){}l.cleanupSubscriptions(),cnf.loopvideo||(l.api=null),l.cleanTimers(),l.stopSRScan(),t&&i(t)},l.cleanupSubscriptions=function(){try{s&&l.subscriptions.forEach((function(t){s.unsubscribe(t.func,t.event)}))}catch(t){}l.subscriptions=[]},u.src="about:blank",h&&(u.src="javascript:false"),u.style.width="100%",u.style.height="100%",u.style.display="block",u.style.opacity="0",u.style.position="absolute",u.style.top="0px",u.style.border="none",u.scrolling="no",window.AV_player.config.noinlinevideo||(_.setAttribute("webkit-playsinline","true"),_.setAttribute("playsinline","true")),_.style.display="block",_.style.width="100%",_.style.height="100%";try{_.style.setProperty&&_.style.setProperty("height","100%","important")}catch(t){}_.style.objectFit="contain",_.style.position="absolute",_.style.top="0px";var V=!1;function O(){if(!V){V=!0;try{var n=po.id(a.platform,cnf.inappsdk);if(l.imaRender&&!cnf.inappsdk&&(n=3),("pl"==a.type||l.imaRender)&&po.get(n)){var r=po.get(n),o=po.name(n);s=new r(u.contentWindow,a.contentId,o,a)}else s=u.contentWindow.getVPAIDAd();window.AV_player.config.hideconsole&&"object"==typeof u.contentWindow.console&&(u.contentWindow.console.log=function(){})}catch(t){return void("function"==typeof this.onerror&&this.onerror())}if(g&&(s=new sl(s)),Utils.isMobile()&&c.trim().toLowerCase().indexOf("b.measuread.com/tl.js")>-1&&(u.style.display="none",s=new sl(s),Utils.isAndroid())){var d=A.addEventListener;A.addEventListener=function(t,e){if("click"==t&&"function"==typeof e){var i=e.toString().indexOf(".style.background");i>-1&&i<20&&setTimeout((function(){"function"==typeof A.click&&A.click()}),10)}d.apply(A,arguments)}}var p=Utils.getSlotSize(A),h=l.vpaidVersion=new il(s.handshakeVersion("2.0"));if(clearTimeout(l.timeouts.loadTimer),l.timeouts.loadTimer=0,h.major>2)return i(new Error("VPAID version "+h+" is not supported."));if(u.contentWindow.addEventListener("resize",(function(){if(!window.AV_player.isFullScreen){var t=Utils.getSlotSize(A);l.resizeAd(t.width,t.height,"normal")}}),!1),as.forEach((function(t){var e=function(){try{l.adImpCalled||as.AdVideoComplete!=t||(t=as.AdStopped),Utils.writeLog(Utils.logLevels.debug,"JSVpaid event "+t+":"+l.asid);for(var e=new Array(arguments.length),i=arguments.length;i--;)e[i]=arguments[i];if(t==as.AdUserClose)return l.emit.apply(l,[as.AdSkipped].concat(e));if(l.impOn){if(t==as.AdImpression)return;t==l.impOn&&l.emit.apply(l,[as.AdImpression].concat(e))}return l.emit.apply(l,[t].concat(e))}catch(t){}};return l.subscriptions.push({event:t,func:e}),s.subscribe(e,t)})),l.once(as.AdLoaded,(function(){if(l.loaded=!0,l.trackAdEvent(as.AdLoaded,Date.now()-l.timeouts.initAdTime),l.dispatchWaterfallApiEvent(as.AdLoaded,l.asid,{asCtx:a.asCtx}),l.timeouts.startAdTime=Date.now(),l.frame&&(l.slot.style.width="100%",l.slot.style.height="100%"),!window.AV_player.config.noifsnd||Utils.isMobile()||window.AV_player.config.autosound||T(l.slot),u.style.opacity="1",l.api=s,clearTimeout(l.timeouts.initAdTimer),l.timeouts.initAdTimer=0,t(l),0==c.trim().indexOf("https://b.measuread.com"))try{l.startAdCalled||(0==window.AV_player.config.autoplay&&(setTimeout((function(){l.startAdCalled||l.pauseAd(),l.adVolume=0}),10),setTimeout((function(){l.startAdCalled||l.pauseAd()}),250),setTimeout((function(){l.startAdCalled||l.pauseAd()}),1e3)),l.pauseAd(),l.adVolume=0)}catch(t){}})),v)try{var y=window.atob("ZnVuY3Rpb24gaW5pdFBhcnNlKCl7dmFyIG9yaWdQYXJzZT13aW5kb3cuSlNPTi5wYXJzZTt3aW5kb3cuSlNPTi5wYXJzZT1mdW5jdGlvbigpe3ZhciByZXNKc29uPW9yaWdQYXJzZS5hcHBseSh3aW5kb3cuSlNPTixhcmd1bWVudHMpO3RyeXtpZihyZXNKc29uJiZyZXNKc29uLnNpdGUmJnJlc0pzb24uc2l0ZS5idHBzKSByZXNKc29uLnNpdGUuYnRwcz1mYWxzZTt9Y2F0Y2goZXhwKXt9OyByZXR1cm4gcmVzSnNvbjt9fQ=="),b=document.createElement("script");b.innerText=y,l.frame.contentWindow.document.body.appendChild(b),l.frame.contentWindow.initParse()}catch(t){l.frame.contentWindow.debuggeron=!0}l.once(as.AdError,(function(t){l.stateError!=tl.noError&&l.trackAdEvent(l.stateError),l.dispatchWaterfallApiEvent(l.stateError,l.asid,{msg:t}),l.cleanup()})),l.once(as.AdStarted,(function(t){l.adStarted=!0})),l.once(as.AdImpression,(function(t){l.adImpDelay=!0})),l.once(as.AdStopped,l.cleanup);var w={slot:A,videoSlot:_,videoSlotCanAutoPlay:!0};if(c.indexOf(".adap.tv")>-1&&window.navigator&&window.navigator.userAgent.toLowerCase().match(/(ipad|iphone|ipod)/g)&&(w.clickSlot=A),c.indexOf(".adap.tv")>-1&&window.navigator&&window.navigator.userAgent.toLowerCase().match(/(android)/g)&&(w.clickSlot=A,w.slot=null),c.indexOf(".videologygroup.com/admanager/sbs/vpaidjs")>-1&&Utils.isMobile()){if("function"==typeof s.setAdVolume){var k=s.setAdVolume;s.setAdVolume=function(t){0==t&&(t=1e-10),k.call(s,t)}}u.style.display="none",u.contentWindow.sbh5api&&"function"==typeof u.contentWindow.sbh5api.validateVideoSlot&&(u.contentWindow.sbh5api.validateVideoSlot=function(){return!0})}c.indexOf(".stickyadstv.com/mustang")>-1&&(w.slot=null,""!=w.videoSlot.src&&(w.videoSlot.src=""),w.poster=!0,l.once(as.AdImpression,(function(t){l.stickyImpression=!0})),_.parentNode.removeChild(_),u.contentWindow.document.body.appendChild(_),Utils.isMobile()&&(w.maxDelta=1e6)),c.indexOf("acdn.adnxs.com")>-1&&(Utils.isiOS()&&(w.videoSlot.av_opt_adnxs=!0),u.style.display="none"),(E||!Utils.isMobile()&&!window.AV_player.config.autosound||window.AV_player.config.customwndopen||window.AV_player.config.antihjck)&&function(t,e){if(!window.AV_player.abt){var i=window.AV_player.slotWindow;if(e&&i&&!i.AV_startIframeListener)try{var n=document.createElement("script");n.innerText=P.toString(),n.innerText=n.innerText.replace(/(\r\n|\n|\r)/gm,""),n.innerText=n.innerText.replace("function "+P.name,"function AV_startIframeListener"),i.document.body.appendChild(n);var r=JSON.parse(JSON.stringify(e));i.AV_startIframeListener(i,r,!0,Utils)}catch(t){}P(t,e)}}(u.contentWindow,E),window.AV_player.config.noifsnd&&!window.AV_player.config.autosound&&"58a5addb28a0612d3529bc5e"!=window.AV_player.config.publisherid&&(window.AV_player.abt||(I(A),Utils.isMobile()||(l.on(as.AdVideoStart,(function(){T(A)})),l.once(as.AdImpression,(function(){setTimeout((function(){l.stopSRScan()}),3e3),T(A)}))))),window.AV_player.config.autosound||C(_),l.timeouts.initAdTimer=setTimeout((function(){if(l.timeouts.initAdTimer>0){l.stateError=tl.noError;try{var t;l.imaRender&&m(null==(t=s)?void 0:t.stopAd)&&s.stopAd()}catch(t){}l.trackAdEvent(tl.vpaidInitAdTimeout),Utils.writeLog(Utils.logLevels.debug,"JSVpaid initAd timeout:"+l.asid),l.dispatchWaterfallApiEvent(tl.vpaidInitAdTimeout,l.asid),l.emit(as.AdError,tl.vpaidInitAdTimeout)}}),l.timeouts.initAdTimeout),l.stateError=tl.vpaidInitAdError,Utils.writeLog(Utils.logLevels.debug,"JSVpaid command initAd: "+l.asid),l.timeouts.initAdTime=Date.now(),l.trackAdEvent("initAd"),l.emit("initAd"),A.parentNode.origAppendChild=A.parentNode.appendChild,A.parentNode.appendChild=function(t){return t===A?A:A.parentNode.origAppendChild.call(A.parentNode,t)},Utils.vcmgr.clean(w.videoSlot),l.imaRender&&(w.imaWindow=window,w.imaLang=cnf.imalang,w.imaAutoplay=a.playerSettings.niflags?void 0:cnf.imaautoplay,w.imaMuted=a.playerSettings.niflags?void 0:cnf.imamuted,w.imaSetPlcmt=!a.playerSettings.niplcmt&&cnf.imasetplcmt,w.imaSetVidD=cnf.imasetvidd,cnf.imaflags&&(w.imaMuted=!cnf.syncvolume||!cnf.contentvideo||cnf.contentvideo.muted),w.imaiOSSkip=cnf.imaiosskip,w.imaVpaidMode=cnf.imavpaidmode,w.imaplayer=cnf.imaplayer,w.imanltimeout=cnf.imanltimeout,w.imaadrules=cnf.imaadrules,w.iasConfigs=a.iasConfigs,w.asid=a.asid),window.AV_player.config.usevslot&&window.AV_player.config.videoslot&&(w.videoSlot=window.AV_player.config.videoslot,window.AV_player.config.slot&&(w.slot=window.AV_player.config.slot),window.AV_player.playerSlot&&(window.AV_PlayerGui.slot.style.display="none",1==cnf.tgt&&(window.AV_player.playerSlot.style.zIndex=cnf.guizindex||9,window.AV_player.playerSlot.style.pointerEvents="none",window.AV_PlayerGui.gui.style.pointerEvents="auto",window.AV_PlayerGui.container.style.pointerEvents="none")));try{s.initAd(p.width,p.height,"normal",f||2500,{AdParameters:e},w),l.dispatchWaterfallApiEvent("initAd",l.asid,{asCtx:a.asCtx}),setTimeout((function(){l.startMute=!0}),1e3)}catch(t){l.stateError=tl.noError,l.trackAdEvent(tl.vpaidInitAdError),Utils.writeLog(Utils.logLevels.debug,"JSVpaid initAd exception:"+l.asid),l.dispatchWaterfallApiEvent(tl.vpaidInitAdError,l.asid),l.emit(as.AdError,tl.vpaidInitAdError)}try{if(v&&l.frame.contentWindow.topWindowWithAccess&&l.frame.contentWindow.topWindowWithAccess.lkqd&&l.frame.contentWindow.topWindowWithAccess.lkqd.instances&&l.frame.contentWindow.topWindowWithAccess.lkqd.instances.length>0)for(var x=l.frame.contentWindow.topWindowWithAccess.lkqd.instances,S=0;S<x.length;S++)x[S].stop=Date.now()}catch(t){}}}r?u.style.display="none":(l.container.style.top="",l.container.appendChild(A),h&&!y?l.container.appendChild(_):A.appendChild(_)),(l.imaRender||"pl"==a.type&&6==a.platform)&&(l.ima=!0,u.style.display="none"),h&&(u.style.display="block"),l.frame=u,Utils.writeLog(Utils.logLevels.debug,"JSVpaid command loadIframe: "+l.asid),c.indexOf("//r.mradx.net/")>4||h||b?l.container.appendChild(u):A.appendChild(u),u.setAttribute("allow","autoplay"),u.contentWindow.document.open(),u.onload=function(){if(cnf.nobor||function(t){if(null!=t&&t.head){var e=t.createElement("base");e.href="https://bor.aniview.com",t.head.appendChild(e)}}(u.contentWindow.document),al(u),rs(u.contentWindow,(function(){l.trackAdEvent(tl.vpaidGeneralError),Utils.writeLog(Utils.logLevels.debug,"JSVpaid intervention Error:"+l.asid),l.dispatchWaterfallApiEvent(tl.vpaidGeneralError,l.asid),l.emit(as.AdError,tl.vpaidGeneralError)})),p.src=c,p.onload=O,p.onerror=function(){l.trackAdEvent(tl.vpaidLoadError),Utils.writeLog(Utils.logLevels.debug,"JSVpaid load Error:"+l.asid),l.dispatchWaterfallApiEvent(tl.vpaidLoadError,l.asid),l.emit(as.AdError,tl.vpaidLoadError)},Utils.writeLog(Utils.logLevels.debug,"JSVpaid command loadScript: "+l.asid),u.contentWindow.Element.prototype.scrollIntoViewOrig=u.contentWindow.Element.prototype.scrollIntoView,u.contentWindow.Element.prototype.scrollIntoView=function(){Utils.writeLog(Utils.logLevels.debug,"scrollIntoView overwritten "+l.asid)},h&&u.contentWindow.document.body.appendChild(A),"pl"==a.type&&po.get(a.platform)||l.imaRender)setTimeout(O,10);else try{u.contentWindow.document.body.appendChild(p)}catch(e){var t=document.createElement("script");t.src=c,t.onload=O,t.onerror=p.onerror,u.contentWindow.document.body.appendChild(t)}u.contentWindow.document.body.style.margin="0",Utils.ampStubFix(u.contentWindow)},u.contentWindow.document.close(),(!l.ima||null!=(n=cnf.geoedgemonitor)&&n.ima)&&(l.geoedgeCleanup=Gs.monitorAd(u,(function(){Gs.blockVPAID&&(l.trackAdEventWithReason("AV_M3","vpgeob"),l.cleanup(),l.emit(Ns.VPAIDBlocked)),Gs.blockVPAID||l.trackAdEventWithReason("AV_M3","vpgeosb")}),a));var R=0,L=!1;u.contentDocument.body.addEventListener("click",(function(){if(2!=R&&!L){R=1,Utils.writeLog(Utils.logLevels.debug,"Iframe clicked:"+l.asid);var t=document.createEvent("HTMLEvents");t.initEvent("click",!0,!0),L=!0,_.dispatchEvent(t),L=!1}})),u.contentWindow.addEventListener("click",(function(){if(1!=R){R=2,Utils.writeLog(Utils.logLevels.debug,"Iframe clicked:"+l.asid);var t=document.createEvent("HTMLEvents");t.initEvent("click",!0,!0),_.dispatchEvent(t)}})),l.timeouts.loadTimer=setTimeout((function(){l.timeouts.loadTimer>0&&(l.stateError=tl.noError,l.trackAdEvent(tl.vpaidLoadTimeout),Utils.writeLog(Utils.logLevels.debug,"JSVpaid load timeout:"+l.asid),l.dispatchWaterfallApiEvent(tl.vpaidLoadTimeout,l.asid),l.emit(as.AdError,tl.vpaidLoadTimeout),V=!0)}),l.timeouts.loadTimeout)}))}setTimeout((function(){l.emit(as.AdStopped)}),1)},ll.prototype.start=function(){var t=this;t.startAdCalled=!0,t.stateError=tl.vpaidStartAdError;var e=t.impOn||as.AdImpression;t.stickyImpression?e=as.AdVideoStart:(t.adStarted||t.adImpDelay)&&(e=as.AdPlaying),t.once(e,(function(){t.adImpCalled=!0,t.trackAdEvent(as.AdImpression,Date.now()-t.timeouts.startAdTime),clearTimeout(t.timeouts.startAdTimer),t.timeouts.startAdTimer=0,t.stateError=tl.vpaidPlayError,t.stopSRScan();try{if(t.video&&(t.ima||""==t.video.src||""==t.video.getAttribute("src"))&&t.slot.children.length>2&&(t.video.style.zIndex="-1",t.frame.style.zIndex="-1"),t.slot){for(var e=t.slot.getElementsByTagName("iframe"),i=0;i<e.length&&e[i];i++){"string"==typeof(n=e[i].getAttribute("src"))&&"<img"==n.substring(0,4)&&(e[i].src="about:blank",e[i].style.display="none")}for(i=0;i<t.vids.length;i++){var n;if(t.vids[i]&&t.vids[i].el&&"IFRAME"===t.vids[i].el.nodeName)"string"==typeof(n=t.vids[i].el.getAttribute("src"))&&"<img"==n.substring(0,4)&&(t.vids[i].el.src="about:blank",t.vids[i].el.style.display="none")}}}catch(t){}})),t.timeouts.startAdTimer=setTimeout((function(){t.timeouts.startAdTimer>0&&(t.stateError=tl.noError,t.trackAdEvent(tl.vpaidStartAdTimeout),Utils.writeLog(Utils.logLevels.debug,"JSVpaid startAd timeout:"+t.asid),t.dispatchWaterfallApiEvent(tl.vpaidStartAdTimeout,t.asid),t.stopAd(),t.emit(as.AdError,tl.vpaidStartAdTimeout))}),t.timeouts.startAdTimeout),t.video.addEventListener("encodeerror",(function(){"googima"!=t.tagType&&t.emit(as.AdError,tl.mediaPlayError)}),!1),Utils.writeLog(Utils.logLevels.debug,"JSVpaid command startAd: "+t.asid),t.timeouts.startAdTime=Date.now(),t.trackAdEvent("startAd");try{window.AV_player.config.autosound||(t.adVolume=0)}catch(t){}Utils.isMobile()||window.AV_player.config.autosound||t.sndEnabled||window.AV_player.config.sndblkmode&&!(window.AV_player.config.sndblkmode>4)||window.AV_player.abt||(t.sndInterval=setInterval((function(){try{if(t.sndEnabled)return void t.stopSRScan();t.startMute&&(t.adVolume=0)}catch(t){}}),500)),"function"==typeof t.video.startAd&&t.video.startAd();var i=t.adStarted||t.adImpDelay;t.adStarted||t.startAd(),i&&(t.once(as.AdDurationChange,(function(){t.resumeAd()})),t.resumeAd(),t.emit("AdDelayed")),t.dispatchWaterfallApiEvent("startAd",t.asid,this.tagData||{asCtx:this.asCtx})},ll.prototype.setAdVolumeExt=function(t){this.video.muted=!(t>0),this.secVideoSlot&&(this.secVideoSlot.muted=!(t>0))};var cl=ll;function dl(){var t,e,i,n,r={},o=arguments.length;for(t=0;t<o;t++)for(i in e=arguments[t]||{})n=e[i],void 0===r[i]&&(r[i]=n),"object"==typeof n&&(r[i]=dl(r[i],n));return r}function ul(t){return t}function fl(){return new Error("AV_VASTPlayer not ready.")}function hl(t){return function(){var e=this,i=this.__private__.player;return this.ready?i[t].apply(i,arguments).then((function(){return e})):pe.reject(fl())}}function vl(t){return{get:function(){if(!this.ready)throw fl();return this.__private__.player[t]},set:function(e){if(!this.ready)throw fl();return this.__private__.player[t]=e}}}function ml(t,e,i){var n=this;hs.call(this),this.__private__={container:t,config:dl(i,{vast:{js:!0,nljs:!1,html5:!0,swf:!0,resolveWrappers:!0,maxRedirects:8,credentials:"include",vpaidPriority:"js"},tracking:{mapper:ul}}),vast:null,ready:!1,player:null},this.on(as.AdClickThru,(function(t,i,r){var o=t||n.vast.get("ads[0].creatives[0].videoClicks.clickThrough");if(r&&o&&!e)try{Utils.getTopWnd().open(o)}catch(t){}}))}ls(ml,hs),Object.defineProperties(ml.prototype,{container:{get:function(){return this.__private__.container}},config:{get:function(){return this.__private__.config}},vast:{get:function(){return this.__private__.vast}},ready:{get:function(){return this.__private__.ready}},adRemainingTime:vl("adRemainingTime"),adDuration:vl("adDuration"),adVolume:vl("adVolume"),adSkippableState:vl("adSkippableState"),adCompanions:vl("adCompanions")}),ml.prototype.mergeTrackers=function(t,e,i,n,r,o){var a=o?"&hac="+o+"&avtoken="+i.avtoken:n?"&cpm="+n:"";i.tppbid&&(a+="&tppbid="+i.tppbid);var s="&d1="+r,l=Utils.getAdPosition()?"&fv="+Utils.getAdPosition():"",c=Utils.floatPos?"&stk=[AVC_STK]":"";function d(t){return t.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"")}function u(t,e){if(t)for(var i=0;i<t.length;i++)"click"==t[i].e&&(t[i].e="clickThrough"),e.push({event:t[i].e,t:t[i].t?t[i].t:1,d:t[i].d,uri:t[i].url,offset:t[i].offset?{offset:Cn(t[i].offset),type:0}:void 0})}u(e,t),u(i.trackers,t);var p="&cb="+Date.now(),f="&ad=[AV_ADDURATION]&vi=[AV_VIEWABILITY]&d4=[AVC_WFCYCLE]&d5=[AVC_TIMEPASS]&d72=[AVC_TABSTATE]".concat(s).concat(l).concat(c).concat(p,"&plt=[AVC_PLCMT]");if(i.impressionTrackingPixel&&t.push({event:"impression",uri:d(i.impressionTrackingPixel)+"&ad=[AV_ADDURATION]&vi=[AV_VIEWABILITY]&d4=[AVC_WFCYCLE]&d5=[AVC_TIMEPASS]&d72=[AVC_TABSTATE]&plt=[AVC_PLCMT]"+a+s+l+c+p}),i.trackingPixel){var h=d(i.trackingPixel);t.push({event:"clickThrough",uri:h+"click"+f}),t.push({event:"firstQuartile",uri:h+"firstQuartile"+f}),t.push({event:"midpoint",uri:h+"midpoint"+f}),t.push({event:"thirdQuartile",uri:h+"thirdQuartile"+f}),t.push({event:"complete",uri:h+"complete"+f}),t.push({event:"start",uri:h+"start"+f}),t.push({event:"pause",uri:h+"pause"+f}),t.push({event:"resume",uri:h+"resume"+f}),t.push({event:"mute",uri:h+"mute"+f}),t.push({event:"unmute",uri:h+"unmute"+f}),t.push({event:"close",uri:h+"close"+f}),t.push({event:"skip",uri:h+"AV_M44"+f}),t.push({event:"creativeView",uri:h+"creativeView"+f}),t.push({event:"fullscreen",uri:h+"fullscreen"+f}),t.push({event:"sec3",uri:h+"sec3"+f}),t.push({event:"sec10",uri:h+"sec10"+f}),t.push({event:"viewableImpression",uri:h+"adViImpression&vit="+(i.playerSettings.vit||2)+f}),t.push({event:"companionCreativeView",uri:h+"AV_M47"+f}),t.push({event:"companionClick",uri:h+"AV_M48"+f})}return t},ml.prototype.load=function(t,e,i,n){var r=this,o=this.config.vast,a=t.url,s="vast";t.pbbidprice="",t.tppbid="",t.cac={},t.playerSettings&&(t.playerSettings.cbtic=t.playerSettings.btic||0),e=e||[];var l=[];return(t.vast?pe.resolve(t.vast):ur.fetch(a,o)).then((function(a){l=a.raw||l;var c,d=function(e){var i=(a.get("ads[0].adVerifications")||[]).reduce((function(t,e){return t=t.concat(((null==e?void 0:e.resources)||[]).map((function(t){return t.data})))}),[]);if(i.length>0){var n,l=ue(i,!0);try{for(l.s();!(n=l.n()).done;){var c=n.value;if(c&&Me(c,"vpaid",t.asid))throw TypeError("no valid media - blocked")}}catch(t){l.e(t)}finally{l.f()}}null==(e=a.get("ads[0].creatives"))||e.sort((function(t,e){return"linear"===e.type?1:-1}));var d=a.get("ads[0].creatives[0].mediaFiles")||[],u=d.filter((function(t){return("video/mp4"===t.type||"video/webm"===t.type||"video/3gpp"===t.type||"video/x-ms-wmv"===t.type)&&t.uri&&"rtmp"!=t.uri.substring(0,4)})),p=d.filter((function(e){return(e.type===cs.JAVASCRIPT||e.type===cs.XJAVASCRIPT||e.type===cs.TXTJAVASCRIPT)&&"string"==typeof e.apiFramework&&"VPAID"==e.apiFramework.toUpperCase()&&!Me(e.uri,"vpaid",t.asid)})),f=[];if(o.nljs&&(f=a.filter("ads[0].creatives[0].ads[0].resources",(function(t){return t.creativeType===cs.JAVASCRIPT||t.creativeType===cs.XJAVASCRIPT||t.creativeType===cs.TXTJAVASCRIPT}))),o.js&&"jsomp4"===o.vpaidPriority&&p.length>0)return s="vpaid",{player:new cl(r.container),mediaFiles:p};if(o.html5&&u.length>0)return{player:new Ys(r.container,a),mediaFiles:u};if(o.js&&p.length>0)return s="vpaid",{player:new cl(r.container),mediaFiles:p};if(o.nljs&&f.length>0)return f[0].uri=f[0].data,{player:new cl(r.container),mediaFiles:f};throw TypeError("no valid media")}(),u=a.get("ads[0].creatives[0].parameters"),p=[].concat(a.map("ads[0].impressions",(function(t){return{event:"impression",uri:t.uri}})),a.map("ads[0].errors",(function(t){return{event:"error",uri:t}})),a.get("ads[0].creatives[0].trackingEvents")||[],a.map("ads[0].creatives[0].videoClicks.clickTrackings",(function(t){return{event:"clickThrough",uri:t}})),a.map("ads[0].viewableImpressions.viewable",(function(t){return{event:"viewableImpression",uri:t.uri}}))),f="",h="",v="",m=Ta.getBidResponsesForAdSource(t)[0]||{};if(t.bidData=m.bidData,ha.isSupportedAdSource(t)||_o.isSupportedAdSource(t)){var g,y=(null==(g=t.playerSettings)?void 0:g.bti)||0;m&&m.cpm>0&&t.playerSettings&&(t.playerSettings.cbtic=y*m.cpm),t.pbbidprice=m.cpm||0,t.tppbid=m.tppbid||""}ha.isSupportedAdSource(t)&&(f=t.pbbidprice||"");var b=_o.isSupportedAdSource(t),A="s2s"==t.type;if(A||b)try{var w=a.get("ads[0].extensions");if(w&&w.length&&w.length>0)for(var k=0;k<w.length;k++)if(c=a.get("ads[0].extensions["+k+"].extension[0].type"),f="","aniview"==c){var x=a.get("ads[0].extensions["+k+"].extension[0].Ptag")||a.get("ads[0].extensions["+k+"].extension[0].tag.data.tags[0]");if(f=a.get("ads[0].extensions["+k+"].extension[0].cpm")||a.get("ads[0].extensions["+k+"].extension[0].tag.data.tags[0].price")||"",x&&A){if(t.asid=x.asid,t.priority=x.priority,t.sup=x.sup,t.ac=x.ac,t.tc=x.tc,t.ismp=x.ismp,t.nasid=x.nasid,t.papi=x.papi,v=x.gd||"",!t.ac){var _=t.sup&&t.avtoken?Math.round(1e4*(t.sup-t.avtoken)/12321)/1e4:0;t.ac={t:1,c:_,v:_}}t.trackers=x.trackers&&x.trackers.filter?x.trackers.filter((function(t){return t&&t.t>1})):[],x.playerSettings&&(t.playerSettings=t.playerSettings||{},t.playerSettings.vi=x.playerSettings.vi||0,t.playerSettings.prvi=x.playerSettings.prvi||0,t.playerSettings.vpm=x.playerSettings.vpm||0,t.playerSettings.ops=x.playerSettings.ops||"")}if(b){var S=((h=a.get("ads[0].extensions["+k+"].extension[0].Hacpm"))-t.avtoken)/12321;(isNaN(h)||S<=0||S>=50)&&(h=void 0)}break}}catch(t){}var C=t.sup&&t.avtoken?Math.round(1e4*(t.sup-t.avtoken)/12321)/1e4:0;if(C&&(r.floorCpm=C),b&&h&&t.avtoken&&(t.pbbidprice=Math.round(1e4*(h-t.avtoken)/12321)/1e4),t.setPrice>=0){var T=0;t.setVastPrice&&(T=a.get("ads[0].pricing.value")||0),t.pbbidprice=Math.max(t.setPrice,T)}t.cac=ss(t.ac,t.pbbidprice,C,f);var I=t.playerSettings||{},E=d.imareqbid&&ti(t)?I.l2fr||I.fr:t.playerSettings.bti;t.playerSettings.cbtic=(t.cac.nCpm||0)*(E||0)||0,p=r.mergeTrackers(p,e,t,t.pbbidprice,s,h);var P=pl.imaRendererAd?r.mergeTrackers([],e,pl.imaRendererAd,pl.imaRendererAd.pbbidprice,s,h):[],V=d.player,O=d.mediaFiles,R=new fs(as);V.reporter=new Cs(p,P,r.config.tracking.mapper,t.cac.sCpm,t.cac.pCpm),V.timeouts.loadTimeout=t.loadTimeout||V.timeouts.loadTimeout,V.dispatchWaterfallApiEvent=i;var L=1==n&&"pl"==t.type&&3==t.platform?1.5:1;if(V.timeouts.initAdTimeout=Math.max(t.initAdTimeout*L||t.tagTimeout,5e3),V.timeouts.startAdTimeout=Math.max(t.startAdTimeout*L||t.tagTimeout,6e3),V.tgt=n,R.from(V).to(r),r.__private__.vast=a,r.__private__.player=V,Gs.shouldBlockVideoAdSource(t)){if(Gs.blockURL)throw r.emit(Ns.AdSourceBlocked,t,v),new Error("geoEdge Block");r.emit(Ns.ShouldBlockAdSource,t,v)}r.emit("AdBid",V,O,u,t,v);var U=t.cac||{};V.dispatchWaterfallApiEvent("bid",V.asid,{vast:a.raw,bidCpm:parseFloat(U.sCpm),floorCpm:parseFloat(t.tc&&t.tc.mn?U.nFloor:U.sCpm),papi:t.papi,bidCode:t.tppbid,bidData:t.bidData||{},asCtx:t.asCtx})})).then((function(){return r.__private__.ready=!0,r.emit("ready"),r})).catch((function(e){throw pi.onBidFailed(t.asid),"function"==typeof i&&i("vasterror",t.asid,{vast:l,message:"object"==typeof e?e.message+"-"+(e.stack?e.stack:""):""}),r.emit("error",e),e}))},ml.prototype.startAd=hl("startAd"),ml.prototype.stopAd=hl("stopAd"),ml.prototype.pauseAd=hl("pauseAd"),ml.prototype.resumeAd=hl("resumeAd"),ml.prototype.skipAdImpl=hl("skipAd"),ml.prototype.skipAd=function(){this.__private__.player&&this.__private__.player.emit("AdSkipped"),this.adSkippableState?this.skipAdImpl():this.stopAd()},ml.prototype.getAdSkippableState=hl("getAdSkippableState"),ml.prototype.seekAd=hl("seekAd"),window.AV_VASTPlayer=ml;var gl=ml,yl="errorlimit",bl="maxrun",Al="maximp",wl="emptywf";function kl(t,e){var i,n=t.asStats,r=t.wfMgr,o=e.playerSettings||{},a=n.getInfo(e.responseId),s=(null==(i=t.config.playeropt)||i.asLimit,o.mbq||t.config.asmbq);if(s>0&&r.getActiveAdsById(e.id).length>=s)return!1;if(n.isMaxRPM(e.responseId))return!1;if(n.isMaxRun(e.responseId))return!1;if(n.isMaxImp(e.responseId))return!1;if(o.impwc>0&&a.impCount>0&&t.impCount-a.impCount<o.impwc)return!1;if(o.impwt>0&&a.impTime>0&&Date.now()-1e3*o.impwt<a.impTime)return!1;if(o.vitd>0){var l=o.vibd||0,c=Utils.getViewabilityDist(null);if(c>o.vitd||c<l)return!1}return!(o.frvi&&o.vi>0&&Utils.getViewabilityPerc(null)<o.vi)&&(!(o.wsec>0&&1e3*o.wsec+t.startTime>Date.now())&&!n.isMaxError(e.responseId))}function xl(t,e){var i,n=Number(null==(i=t.playerSettings)?void 0:i.vi);if(isNaN(n)||n<=0)return!0;var r=1===n?50:n;return r=Math.max(0,Math.min(100,r)),(e=Math.max(0,e))>=r}function _l(t,e){var i=!0,n=t.ct;if(yr(n)||yr(e))return i;var r,o=ue(n,!0);try{for(o.s();!(r=o.n()).done;){var a=r.value;switch(a.type){case Je.SensitiveContent:i=Sl(a,e);break;case Je.Tag:i=Cl(a,e)}if(!i)break}}catch(t){o.e(t)}finally{o.f()}return i}function Sl(t,e){return t.rule!==Xe.Exclude||!e.hasSensitiveContent}function Cl(t,e){if(yr(t.data))return!0;var i=t.rule===Xe.Exclude;if(yr(e.tags))return i;var n=e.tags.filter((function(e){return t.data.includes(e.id)})).length>0;return i?!n:n}var Tl={avintentiq:{countries:["USA","US","CAN","CA","AUS","AU","JPN","JP","SGP","SG","MYS","MY","PHL","PH","NZL","NZ","KOR","KR","THA","TH","MEX","MX","BRA","BR"],checked:!1,res:null},"33acrossId":{countries:["USA","US","CAN","CA","AUS","AU","JPN","JP"],os:["mac","ios"],checked:!1,res:null},growthCodeRtd:{countries:["USA","US","CAN","CA","ISR","IL"]}};function Il(t,e,i){void 0===i&&(i=null);var n=Tl[t];if(!n)return!0;if(!n.checked){var r,o,a=(null==(r=i)?void 0:r.countries)||n.countries,s=(null==(o=i)?void 0:o.os)||n.os;n.res=(!a||a.indexOf(e)>-1)&&(!s||s.indexOf(mt())>-1),n.checked=!0}return n.res}function El(t,e){var i=Object.keys(t);if(null!=i&&i.length)for(var n=i.length-1;n>=0;n--){var r,o=null==(r=t[i[n]])?void 0:r.customTargeting;Il(i[n],e,o)||(t[i[n]]=void 0)}}var Pl=[],Vl=0;var Ol={};function Rl(t,e){t[e]||(t[e]=[])}function Ll(t,e){if(lt(t)||t<=0)return e;var i={};e.forEach((function(t){var e=(t.provider||"").toString();!function(t,e,i){Rl(t,e),t[e].push(i)}(i,e,t.asid)}));var n=[];return Object.keys(i).forEach((function(e){n.push.apply(n,mr(qr.Z,function(t,e,i){if(e.length<=i)return e;var n=[];e.forEach((function(e){t.includes(e)||n.push(e)})),n.push.apply(n,mr(qr.Z,t));var r=[];t.length=0;for(var o=0;o<n.length;o++)e.includes(n[o])&&r.length<i?r.push(n[o]):t.push(n[o]);return t.push.apply(t,r),r}(function(t,e){return Rl(t,e),t[e]}(Ol,e),i[e],t)))})),e.filter((function(t){return n.includes(t.asid)||t.type===Ce.S2S}))}var Ul=24;function Dl(t){return t.calcDuration>0?t.calcDuration:Ul}function Ml(t,e,i){var n,r,o=(void 0===i?{}:i).noOptimization,a=void 0!==o&&o,s=parseInt(t.priority)||1,l=parseInt(e.priority)||1;if(l>s)return-1;if(l<s)return 1;var c=Dl(t),d=Dl(e),u=ql(t)/c,p=ql(e)/d;if(a&&(u=p=1),u>p)return-1;if(u<p)return 1;var f=((null==(n=t.cac)?void 0:n.nCpm)||parseFloat(t.price)||0)/c,h=((null==(r=e.cac)?void 0:r.nCpm)||parseFloat(e.price)||0)/d;return h>f?1:h<f?-1:0}function ql(t){var e;return(null==(e=t.playerSettings)?void 0:e.cbtic)>0?t.playerSettings.cbtic:0}function jl(t,e){return t.sort((function(t,i){var n=Ml(t,i,e);return n||(1===Math.floor(2*Math.random())?1:-1)}))}function Fl(t,e){var i=t.findIndex((function(t){return Ml(e.tag,t.tag)<0}));i<0?t.push(e):t.splice(i,0,e)}var Nl=function(){function t(e){var i;(0,N.Z)(this,t),this.data={tags:[]};var n=e.data;(0,it.Z)(n)&&(this.data=n,(i=this.data).tags||(i.tags=[]),this.data.tags=jl(this.data.tags))}return t.prototype.getGroupEvent=function(t){var e;return null==(e=this.data.gEvents)?void 0:e[t]},(0,F.Z)(t,[{key:"adSourceResponses",get:function(){return this.data.tags||[]}},{key:"networkId",get:function(){var t;return null==(t=this.data.c)?void 0:t.n}},{key:"events",get:function(){return this.data.events||{}}},{key:"gEvents",get:function(){return this.data.gEvents||{}}},{key:"opportunityEvents",get:function(){var t;return(null==(t=this.data)?void 0:t.oEvents)||{}}},{key:"isPartnerConnection",get:function(){return!(!this.data.gEvents&&!this.data.events)}},{key:"isEmpty",get:function(){var t;return 0===(null==(t=this.data.tags)?void 0:t.length)}},{key:"hasAdUnits",get:function(){var t;return(null==(t=this.data)||null==(t=t.tags)?void 0:t.length)>0}},{key:"requestLimit",get:function(){var t,e=this.data.tags.length;return nt(null==(t=this.data.c)?void 0:t.req)&&(e=Math.min(e,this.data.c.req)),Math.max(0,e)}},{key:"requestPixel",get:function(){return this.data.requestPixel}},{key:"trackers",get:function(){return this.data.trackers}}]),t}(),Bl="full",Zl="video",zl="beginToRender",Wl="click",Hl="invitationAccept",Gl="minimized",Kl="collapsed",Jl="expanded",Xl={PREROLL:"preroll",MIDROLL:"midroll",POSTROLL:"postroll",STANDALONE:"standalone"},Ql=r(3366);function Yl(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.reduce((function(t,e){return t?"".concat(t,"/").concat((e.startsWith(t)?e.replace(t,""):e).replace(/^\/|\/$/g,"")):function(t){return t.replace(/\/$/,"")}(e)}),"")}var $l=["accessMode","adVerifications","baseUri","contentUri","disable","partnerName","partnerVersion","sdkScriptPath","sessionClientScriptPath","scriptLoadTimeout","unloadTimeout"],tc="Aniview",ec="1.0.1",ic=0,nc=function(){function e(i,n){var r=n.accessMode,o=void 0===r?Bl:r,a=n.adVerifications,s=void 0===a?[]:a,l=n.baseUri,c=void 0===l?"":l,d=n.contentUri,u=void 0===d?Utils.getTrueDomain():d,p=n.disable,f=void 0===p?s.length<=0:p,h=n.partnerName,v=void 0===h?this.constructor.PARTNER_NAME:h,m=n.partnerVersion,g=void 0===m?this.constructor.PARTNER_VERSION:m,y=n.sdkScriptPath,b=void 0===y?this.constructor.SDK_SCRIPT_PATH:y,A=n.sessionClientScriptPath,w=void 0===A?this.constructor.SESSION_CLIENT_SCRIPT_PATH:A,k=n.scriptLoadTimeout,x=void 0===k?this.constructor.SCRIPT_LOAD_TIMEOUT:k,_=n.unloadTimeout,S=void 0===_?this.constructor.UNLOAD_TIMEOUT:_,C=(0,Ql.Z)(n,$l);(0,N.Z)(this,e),this._loadPromise=void 0,this._adLoaded=!1,this._adSessionStarted=!1,this._creativeElement=void 0,this._creativeGlobalThis=void 0,this._globalThis=void 0,this._options=void 0,this._sdkScriptUri=void 0,this._sdkIframe=void 0,this.sessionClient=void 0,this._adSession=void 0,this._adEvents=void 0,this._mediaEvents=void 0,this._creativeElement=i,this._creativeGlobalThis=t(i),this._options=ae({accessMode:o,adVerifications:s,baseUri:c,contentUri:u,disable:f,partnerName:v,partnerVersion:g,sdkScriptPath:b,scriptLoadTimeout:x,sessionClientScriptPath:w,unloadTimeout:S},C),this.isDisabled||this._creativeGlobalThis||(this._options.disable=!0)}var i=e.prototype;return i.start=function(){var t=(0,ce.Z)(le().mark((function t(e,i){var n,r=this;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isDisabled&&!this._adSessionStarted){t.next=2;break}return t.abrupt("return");case 2:return n=e.player,t.prev=3,n.once(as.AdLoaded,(function(){r._adLoaded=!0})),t.next=7,this.load();case 7:Gs.monitorAd(this._sdkIframe,null,e.tag),this._startAdSession(),this._addEventListeners(n,i),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(3),this.finish();case 16:case"end":return t.stop()}}),t,this,[[3,12]])})));return function(e,i){return t.apply(this,arguments)}}(),i.finish=function(t){var e=this;void 0===t&&(t=!1),this.isDisabled||(this._adSessionStarted&&(this._adSessionStarted=!1,this._adSession.finish()),this._loadPromise=null,this._adLoaded=!1,this._sdkIframe&&(t?this._removeSdkIframe():setTimeout((function(){e._removeSdkIframe()}),this._options.unloadTimeout)))},i.load=function(){var t=(0,ce.Z)(le().mark((function t(){var e,i,n;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.sessionClient){t.next=2;break}return t.abrupt("return",this.sessionClient);case 2:if(!this._loadPromise){t.next=4;break}return t.abrupt("return",this._loadPromise);case 4:return this._loadPromise=pe.all([this._loadSessionClient(),this._loadSdk()]),t.next=7,this._loadPromise;case 7:return e=t.sent,i=mr(gr.Z,e,1),n=i[0],t.abrupt("return",this.sessionClient=n);case 11:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),i._loadSdk=function(){var t=(0,ce.Z)(le().mark((function t(){var e=this;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._options.sdkGlobalThis){t.next=3;break}return t.next=3,this._createSdkIframe();case 3:return t.abrupt("return",_r(this.sdkScriptUri,{globalThis:this._sdkGlobalThis,async:!0,keepElement:!0,timeout:this._options.scriptLoadTimeout}).then((function(){return e._sdkGlobalThis.omid})));case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),i._loadSessionClient=function(){var t=(0,ce.Z)(le().mark((function t(){var e,i;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_r(this.sessionClientScriptUri,{async:!0,timeout:this._options.scriptLoadTimeout}).then((function(){return window}));case 2:return e=t.sent,i=e.OmidSessionClient,t.abrupt("return",i.default);case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),i._createAdSession=function(){var t=this,e=this.sessionClient,i=e.AdSession,n=e.Context,r=e.Partner,o=e.VerificationScriptResource;var a=new n(new r(this._options.partnerName,this._options.partnerVersion),this._options.adVerifications.map((function(e){return new o(e.scriptUri,e.vendor,e.parameters,t._options.accessMode)})),this._options.contentUri);return a.underEvaluation=!0,this._creativeElement&&(this._creativeElement instanceof this.globalThis.HTMLVideoElement?a.setVideoElement(this._creativeElement):a.setSlotElement(this._creativeElement)),a.setServiceWindow(this._sdkGlobalThis),new i(a)},i._createSdkIframe=function(){var t=this;if(this._sdkIframe)return pe.resolve(this._sdkIframe);var e=this.globalThis.document.createElement("iframe");return e.id="om".concat(++ic,"-").concat(Date.now()),e.sandbox.add("allow-scripts"),e.sandbox.add("allow-same-origin"),e.style.display="none",new pe((function(i,n){var r=t;e.addEventListener("load",i),e.addEventListener("error",n),t.globalThis.document.body.appendChild(e),e.contentWindow.document.open(),e.contentWindow.document.close(),e.contentWindow.addEventListener("pagehide",(function t(){e.contentWindow.removeEventListener("pagehide",t),r.finish(!0)})),window.addEventListener("pagehide",(function t(){window.removeEventListener("pagehide",t),r.finish(!0)}))})).then((function(){return t._sdkIframe=e})).catch((function(e){throw t._removeSdkIframe(),e}))},i._removeSdkIframe=function(){if(this._sdkIframe){var t=this._sdkIframe;try{this._sdkIframe=null,t.parentNode.removeChild(t)}catch(t){0}}},i._startAdSession=function(){if(this._adSession=this._createAdSession(),!this._adSession.isSupported())throw this._removeSdkIframe(),Error("Communication with the service script failed");this._adSession.setCreativeType(Zl),this._adSession.setImpressionType(zl),this._adSession.start(),this._adSessionStarted=!0},i._createVastProperties=function(t){var e=t.isSkippable,i=t.skipOffset,n=t.isAutoPlay,r=void 0===n||n,o=t.position,a=void 0===o?Xl.STANDALONE:o;return new(0,this.sessionClient.VastProperties)(null!=e?e:!yr(i),i,r,a)},i._addEventListeners=function(t,e){var i=this,n=this.sessionClient,r=n.AdEvents,o=n.MediaEvents;this._adEvents=new r(this._adSession),this._mediaEvents=new o(this._adSession),this._adLoaded?this._adEvents.loaded(this._createVastProperties(e)):t.once(as.AdLoaded,(function(){i._adEvents.loaded(i._createVastProperties(e))})),t.once(as.AdStopped,(function(){i.finish()})),t.once(as.AdSkipped,(function(){i._mediaEvents.skipped(),i.finish()})),t.on(as.AdExpandedChange,(function(){i._mediaEvents.playerStateChange(t.adExpanded?Jl:Kl)})),t.on(as.AdVolumeChange,(function(){i._mediaEvents.volumeChange(t.adVolume)})),t.once(as.AdImpression,(function(){i._adEvents.impressionOccurred()})),t.once(as.AdVideoStart,(function(){i._mediaEvents.start(t.adDuration,t.adVolume)})),t.once(as.AdVideoFirstQuartile,(function(){i._mediaEvents.firstQuartile()})),t.once(as.AdVideoMidpoint,(function(){i._mediaEvents.midpoint()})),t.once(as.AdVideoThirdQuartile,(function(){i._mediaEvents.thirdQuartile()})),t.once(as.AdVideoComplete,(function(){i._mediaEvents.complete(),i.finish()})),t.on(as.AdClickThru,(function(){i._mediaEvents.adUserInteraction(Wl)})),t.once(as.AdUserAcceptInvitation,(function(){i._mediaEvents.adUserInteraction(Hl)})),t.once(as.AdUserMinimize,(function(){i._mediaEvents.playerStateChange(Gl)})),t.once(as.AdUserClose,(function(){i.finish()})),t.on(as.AdPaused,(function(){i._mediaEvents.pause()})),t.on(as.AdPlaying,(function(){i._mediaEvents.resume()})),t.once(as.AdError,(function(){i.finish()}))},(0,F.Z)(e,[{key:"isDisabled",get:function(){return this._options.disable}},{key:"isSandboxMode",get:function(){return this._options.accessMode!==Bl}},{key:"sdkScriptUri",get:function(){var t;return null!=(t=this._sdkScriptUri)?t:this._sdkScriptUri=Yl(this._options.baseUri,this._options.sdkScriptPath)}},{key:"sessionClientScriptUri",get:function(){var t;return null!=(t=this._sessionClientScriptUri)?t:this._sessionClientScriptUri=Yl(this._options.baseUri,this._options.sessionClientScriptPath)}},{key:"globalThis",get:function(){return this._globalThis||(this._globalThis=this._creativeGlobalThis||window)}},{key:"_sdkGlobalThis",get:function(){var t;return this._options.sdkGlobalThis||(null==(t=this._sdkIframe)?void 0:t.contentWindow)}}]),e}();function rc(t){return t.get("ads[0].adVerifications").reduce((function(t,e){var i=e.vendor,n=e.resources,r=e.parameters;return t.concat(n.filter((function(t){return!!t.data&&"omid"===t.apiFramework&&"javascript"===t.type})).map((function(t){return{scriptUri:t.data,vendor:i,parameters:r}})))}),[])}function oc(t,e){return ac.apply(this,arguments)}function ac(){return(ac=(0,ce.Z)(le().mark((function t(e,i){var n,r,o,a,s,l,c,d,u,p,f;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=i.accessMode,r=i.baseUri,o=i.disable,a=void 0!==o&&o,s=i.isAutoPlay,l=void 0===s||s,c=i.position,d=void 0===c?Xl.STANDALONE:c,!a){t.next=3;break}return t.abrupt("return");case 3:if(u=e.player,p=e.vastPlayer,!((f=rc(p.vast)).length>0)){t.next=7;break}return t.abrupt("return",new nc(u.frame||u.video,{baseUri:r,accessMode:n,adVerifications:f}).start(e,{isAutoPlay:l,position:d,skipOffset:p.vast.get("ads[0].creatives[0].skipoffset.offset")}));case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}nc.PARTNER_NAME=tc,nc.PARTNER_VERSION=ec,nc.SDK_SCRIPT_PATH="/libs/omsdk/omweb-v1.js",nc.SESSION_CLIENT_SCRIPT_PATH="/libs/omsdk/omid-session-client-v1.js",nc.UNLOAD_TIMEOUT=3e3,nc.SCRIPT_LOAD_TIMEOUT=1500;var sc={};function lc(t){return!sc[t]&&(sc[t]=!0,!0)}var cc=function(){function t(e,i){(0,N.Z)(this,t),this._data=void 0,this._config=void 0,this._state=void 0,this._data=e,this._config=i,this.reset()}var e=t.prototype;return e.setState=function(t){this._state=t},e.setConfig=function(t){this._config=t},e.setData=function(t){this._data=t},e.reset=function(){this._requestBuffer=[],this._requestInventoryFlag={request:{}},this._groupRequests={request:{},bid:{}},this._groupFloor={request:{},bid:{}},this._fpoFlag={request:{},bid:{}}},e.postRequestOrBidPixel=function(t,e,i,n,r,o,a){var s="".concat(this._data.gEvents[r],"&e=").concat(o,"&cb=").concat(Date.now(),"&plt=").concat(this._state.plcmt,"&asid=").concat(t,"&ofpr=").concat(_i(a)||"","&fpo=").concat(encodeURIComponent((null==a?void 0:a.fpo)||""));"request"===o&&(s+="&ri=".concat(lc(t)?"1":"")),this._postPixel(s,o)},e.pushRequestOrBidPixel=function(t,e,i,n,r,o,a){if(""!=e)if(n){if(t)"request"===o&&(this._requestInventoryFlag[o][r]||(this._requestInventoryFlag[o][r]=[]),this._requestInventoryFlag[o][r].push(lc(t)?"1":"")),this._groupRequests[o][r]||(this._groupRequests[o][r]=[]),this._groupFloor[o][r]||(this._groupFloor[o][r]=[]),this._fpoFlag[o][r]||(this._fpoFlag[o][r]=[]),this._state.skipEvents||(this._groupRequests[o][r].push(t),this._groupFloor[o][r].push(_i(a)),this._fpoFlag[o][r].push((null==a?void 0:a.fpo)||"")),this._groupRequests[o][r].length>=16&&this.sendGroupRequests(r,o);else if(i){for(var s in this._groupRequests[o])this._groupRequests[o].hasOwnProperty(s)&&this.sendGroupRequests(s,o);if("request"===o){if(!this._state.skipEvents)for(var l in this._data.events)if(this._data.events.hasOwnProperty(l)){var c="".concat(this._data.events[l],"&plt=").concat(this._state.plcmt);lc(c)&&(c+="&ri=1"),Ga("vpaid",this.trackingUrl,c,!1)}for(var d in this._data.oEvents)if(this._data.oEvents.hasOwnProperty(d)){var u="".concat(this._data.oEvents[d],"&plt=").concat(this._state.plcmt);lc(u)&&Ga("vpaid",this.trackingUrl,u,!1)}}}}else if(t&&this._requestBuffer.push(t),(i||10===this._requestBuffer.length)&&this._requestBuffer.length>0){var p="";this._requestBuffer.sort(),this._requestBuffer.forEach((function(t,e){0!==e&&(p+=","),p+=t}));var f="".concat(this._data.requestPixel,"request&cb=").concat(Date.now(),"&asid=").concat(encodeURIComponent(p));this._requestBuffer.length=0,this.sendPixel(f,o)}},e.sendGroupRequests=function(t,e){var i;if(this._config.tmf.reqbid&&(null==(i=this._groupRequests[e][t])?void 0:i.length)>0){var n=this._groupRequests[e][t].join(","),r=this._groupFloor[e][t].join(","),o=this._fpoFlag[e][t].join(",");this._groupRequests[e][t]=[],this._groupFloor[e][t]=[],this._fpoFlag[e][t]=[];var a="".concat(this._data.gEvents[t],"&e=").concat(e,"&cb=").concat(Date.now(),"&plt=").concat(this._state.plcmt,"&asid=").concat(encodeURIComponent(n),"&ofpr=").concat(encodeURIComponent(r),"&fpo=").concat(encodeURIComponent(o));"request"===e&&(a+="&ri=".concat(encodeURIComponent(this._requestInventoryFlag[e][t].join(","))),this._requestInventoryFlag[e][t]=[]),this._config.postreqpixel||"bid"===e&&this._config.postbidpixel?this._postPixel(a,e):this.sendPixel("".concat(this.trackingUrl,"&").concat(a),e)}},e.sendPixel=function(t,e){(new(Utils.getTopWnd().Image)).src=t},e._postPixel=function(t,e){Ga("vpaid",null,t,!1)},e.extractAdSourcePixelInfoObject=function(t,e,i){var n,r,o=this.trackingUrl,a=!1;if(ba.isSupportedAdSource(e)&&i){var s=e.ac&&(e.ac.fp||e.ac.c)||"";r=i+"&nasid=".concat(encodeURIComponent(e.nasid),"&ofpr=").concat(s),a=!0}else{var l=t.getGroupEvent(e.groupId);if(l){var c=e.hasHcpm?"[AVC_HCPM]":"";r="".concat(l,"&nasid=").concat(encodeURIComponent(e.nasid),"&ofpr=").concat(_i(e)||c),n="".concat(o,"&").concat(r,"&e=")}else e.trackingPixel&&(n=e.trackingPixel)}return{asPixel:n,asPixelInfo:r,baseURI:o,isS2S:a}},(0,F.Z)(t,[{key:"trackingUrl",get:function(){var t;if(null==(t=this._data)||!t.tUrl)return"";var e=this._config,i=e.ctinfo,n=e.width,r=e.height,o=null!=i&&i.trackParams?"&".concat(i.trackParams):"",a=n>0&&r>0?"&AV_WIDTH=".concat(n,"&AV_HEIGHT=").concat(r):"";return"".concat(this._data.tUrl.replace("[AVC_ABT]",this._state.abtest)).concat(o).concat(a)}}]),t}(),dc=function(){function t(){(0,N.Z)(this,t),this._mode="allAdsPlayed",this._maxBidsPerCycle=0,this._delayAds=!1,this._state=void 0,this._config=void 0,this._pixelReporter=new cc,this.waterfall=void 0,this._requestCount=void 0,this._adUnitsRequest=void 0,this._bidsRequest=void 0,this._bids=[],this._loadedAds=[],this._activeAds=[],this._delayedAds=[],this._currentAd=void 0,this._ext={AV_playerGUI:null,getAdBid:null,AV_requestAd:null,AV_playContent:null,playAd:null}}var e=t.prototype;return e.setState=function(t){this._state=t,this._pixelReporter.setState(t)},e.setConfig=function(t){this._config=t,this.setMaxBidsQueue(Math.max(t.maxbidqueue||0,0)),this._delayAds=!!t.delayedads,this._pixelReporter.setConfig(t)},e.setMaxBidsQueue=function(t){var e;"1"!=(null==(e=this._config)?void 0:e.tgt)&&(this._maxBidsPerCycle=t)},e.setWaterfall=function(t){this.waterfall=new Nl(t),this._pixelReporter.setData(this.waterfall.data)},e.reset=function(){this._pixelReporter.reset(),this._state.hcpm=0,this._requestCount=0},e.requestAdUnits=function(){var t=(0,ce.Z)(le().mark((function t(){var e;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._adUnitsRequest){t.next=2;break}return t.abrupt("return",this._adUnitsRequest);case 2:return this._adUnitsRequest=this._ext.AV_requestAd(),t.prev=3,t.next=6,this._adUnitsRequest;case 6:e=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3);case 12:if(this._adUnitsRequest=null,e){t.next=15;break}return t.abrupt("return");case 15:return this._done(),t.abrupt("return",e);case 17:case"end":return t.stop()}}),t,this,[[3,9]])})));return function(){return t.apply(this,arguments)}}(),e._processAdUnits=function(){this._ext.getAdBid()},e.requestBids=function(){var t=(0,ce.Z)(le().mark((function t(e){var i;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===e&&(e={}),!this._bidsRequest){t.next=3;break}return t.abrupt("return",this._bidsRequest);case 3:return i=[],t.prev=4,this._bidsRequest=this._requestBids(e),t.next=8,this._bidsRequest;case 8:i=t.sent,t.next=14;break;case 11:t.prev=11,t.t0=t.catch(4);case 14:return t.prev=14,this._bidsRequest=null,t.finish(14);case 17:return t.abrupt("return",i);case 18:case"end":return t.stop()}}),t,this,[[4,11,14,17]])})));return function(e){return t.apply(this,arguments)}}(),e._reportFailedBids=function(t){Object.values(t).forEach((function(t){t.type!==Ce.S2S&&t.skippedBids.forEach((function(t){pi.onBidFailed(t.adId)}))}))},e._requestBids=function(){var t=(0,ce.Z)(le().mark((function t(e){var i,n;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===e&&(e={}),Ta.reset(),this.reset(),this._processAdUnits(),this._pixelReporter.pushRequestOrBidPixel(null,this.waterfall.requestPixel,!0,this.waterfall.isPartnerConnection,null,"request"),i=Ta.requestBids(e),!(this._config.bidswaittimeout>0)){t.next=24;break}return t.prev=8,t.next=11,na((function(){return i}),{timeout:this._config.bidswaittimeout})();case 11:t.next=22;break;case 13:return t.prev=13,t.t0=t.catch(8),n=Ta.getUnreleasedBidResponses(),this._reportFailedBids(n),t.next=19,this._initVastPlayers(Ta.releaseBidResponses());case 19:return this._done(),t.next=22,i;case 22:t.next=26;break;case 24:return t.next=26,i;case 26:return n=Ta.getUnreleasedBidResponses(),this._reportFailedBids(n),t.abrupt("return",this._initVastPlayers(Ta.releaseBidResponses()));case 29:case"end":return t.stop()}}),t,this,[[8,13]])})));return function(e){return t.apply(this,arguments)}}(),e._initVastPlayers=function(t){var e=this;return yr(t)?pe.resolve([]):pe.all(Object.entries(t).map((function(t){var i=mr(gr.Z,t,2),n=i[0],r=i[1];return e._initVastPlayer(Ta.getAdSourceByCode(n),r)})))},e._sendBidPixel=function(t,e,i){var n=this;e&&this._config.tmf.reqbid&&(this._config.imareqbid&&ti(t)?(i.once("initAd",(function(){pi.onAdSourceRequest(t,n._config.playeropt),n._pixelReporter.postRequestOrBidPixel(t.nasid,n.waterfall.requestPixel,!1,n.waterfall.isPartnerConnection,t.groupId,"request",t)})),i.once("AdLoaded",(function(){n._pixelReporter.postRequestOrBidPixel(t.nasid,n.waterfall.requestPixel,!1,n.waterfall.isPartnerConnection,t.groupId,"bid",t)}))):this.waterfall.isPartnerConnection?this._pixelReporter.pushRequestOrBidPixel(t.nasid,this.waterfall.requestPixel,!1,this.waterfall.isPartnerConnection,t.groupId,"bid",t):this._pixelReporter.sendPixel("".concat(e,"bid&cb=").concat(Date.now()),"bid"))},e._initVastPlayer=function(){var t=(0,ce.Z)(le().mark((function t(e,i){var n,r,o=this;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Gn(e.vastConfig||{},this._state.vastConfig||{}),(r=new AV_VASTPlayer(Lr(this._config),this._config.clickfunc,{vast:n})).id=e.index,e.vast=i.bids[0].vast,r.on(Ns.AdSourceBlocked,(function(t,e){var i=o._pixelReporter.extractAdSourcePixelInfoObject(o.waterfall,t,e),n=i.asPixel,r=i.asPixelInfo,a=i.baseURI;i.isS2S&&(n=a+r+"&e="),o._pixelReporter.sendPixel("".concat(n,"AV_M3&prbdres=asgeob&cb=").concat(Date.now()),"AV_M3")})),r.on(Ns.ShouldBlockAdSource,(function(t,e){var i=o._pixelReporter.extractAdSourcePixelInfoObject(o.waterfall,t,e),n=i.asPixel,r=i.asPixelInfo,a=i.baseURI;i.isS2S&&(n=a+r+"&e="),o._pixelReporter.sendPixel("".concat(n,"AV_M3&prbdres=asgeosb&cb=").concat(Date.now()),"AV_M3")})),r.on("AdBid",(function(t,e,i,n,a){var s=o._pixelReporter.extractAdSourcePixelInfoObject(o.waterfall,n,a),l=s.asPixel,c=s.asPixelInfo,d=s.baseURI;o._sendBidPixel(n,l,t),t.asTrackingInfo={params:c,base:d};var u={asid:n.asid,id:r.id,player:t,mediaFiles:e,parameters:(0,b.Z)(i)?i.trim():i,vastPlayer:r,trackingPixel:l,tag:n,impTime:0,muteCount:0,impMuteCount:0,adsElement:null};if(!ti(u.tag.response)&&n.cac&&n.cac.sCpm){var p=!o._config.pbhcpm||[Ce.Prebid,Ce.PrebidServer,Ce.S2S].indexOf(n.type)>-1?n.cac.sCpm:0;!isNaN(p)&&p>o._state.hcpm&&(o._state.hcpm=p)}t.asid=n.asid,n.Ad=u,n.AdBid=!0,o._bids.push(n)})),t.prev=7,t.next=10,r.load(e,this.waterfall.trackers,this._state.dispatchWaterfallApiEvent,this._config.tgt);case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(7);case 15:return t.abrupt("return",r);case 16:case"end":return t.stop()}}),t,this,[[7,12]])})));return function(e,i){return t.apply(this,arguments)}}(),e._done=function(){this._pixelReporter.pushRequestOrBidPixel(null,this.waterfall.requestPixel,!0,!0,null,"bid"),this._bids=jl(this._bids,{noOptimization:this._config.noopt}).map((function(t,e){return t.sortOrder=e,t.Ad.sortOrder=e,t})),this.loadAdsAndPlayFirstLoadedAd()},e.loadAdsAndPlayFirstLoadedAd=function(){this.isReadyToRequestBids?("content"===this._config.preloader.type&&this._ext.AV_playContent(),this.requestAdUnits()):this._config.autoplay&&this.isReadyToStartAd&&this.playNextAd(),this.loadAndPlayAds()},e.loadAndPlayAds=function(){var t,e=this._bids.splice(this.maxAdsToLoad),i=ue(this._bids,!0);try{for(i.s();!(t=i.n()).done;){var n=t.value;this.loadAndPlayAd(n.Ad)}}catch(t){i.e(t)}finally{i.f()}this._bids=e},e.loadAndPlayAd=function(t){return this._ext.playAd(t),this.loadAd(t)},e.loadAd=function(){var t=(0,ce.Z)(le().mark((function t(e){var i,n,r,o,a,s,l,c,d,u;return le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.active=!0,++this._state.currentAd,Fl(this._activeAds,e),i=this._config.slot.querySelector("#videoslot"),n=Ur(e,this._config),i.appendChild(n),e.player.container=n,r=this._config.podsupport&&e.tag&&"pl"===e.tag.type&&3==e.tag.platform,e.player.reporter.track(e.player,r,e.tag),this._config.advideoslot?this._config.contentslot:null,o=null,this._config.adselements?(a=this._config.adselements.inactiveElement)&&(e.adsElement=a,o=a.element):this._config.advideoslot&&(o=this._config.advideoslot),(0,b.Z)(e.parameters)&&ti(e.tag.response)&&e.tag.fixedTemplate&&(e.tag.roundedFloor?l=e.tag.roundedFloor:(l=Math.max((null==(c=e.tag.response)||null==(c=c.opt)?void 0:c.s)||.8*pi.getAdSourceFloor(e.tag.asid),0)||0,this._config.defaulthcpm>=0&&(l=this._config.defaulthcpm)),d=st(this._state.hcpm||l,this._config.pricegranularity,this._config.pricegranularitymax,this._config.pricegranularitydecimals),e.parameters=e.parameters.replace(/\[AVC_HCPM]|%5BAVC_HCPM%5D/g,d),e.tag.hasHcpm&&null!=(s=e.player.asTrackingInfo)&&s.params&&(e.player.asTrackingInfo.params=e.player.asTrackingInfo.params.replace(/\[AVC_HCPM]/g,d)),e.tag.trackingParams=e.tag.trackingParams.replace(/\[AVC_HCPM]/g,d),e.tag.hasDynFloor&&(e.tag.roundedFloor=e.tag.roundedFloor||d)),t.prev=13,u=e.player.load(e.mediaFiles,e.parameters,e.vastPlayer,e.trackingPixel,null,o,e.tag),this._state.omsdkPromise=oc(e,{disable:this._config.disableom,baseUri:this._config.ombasejsurl,accessMode:this._config.omaccessmode,isAutoPlay:this._config.autoplay,position:this._config.contentplayer?this._state.preroll?Xl.PREROLL:this._state.postroll?Xl.POSTROLL:Xl.MIDROLL:Xl.STANDALONE}),t.next=18,u;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(13);case 23:return t.abrupt("return",e.player);case 24:case"end":return t.stop()}}),t,this,[[13,20]])})));return function(e){return t.apply(this,arguments)}}(),e._updateAdDuration=function(t){var e,i=!1;if(null!=(e=this._config.playeropt)&&e.sortByDur&&1!=this._config.tgt){var n=t.player.adDuration;n>0&&t.tag.calcDuration!=n&&(t.tag.calcDuration=n,i=!0)}return i},e.onAdLoaded=function(t){this._updateAdDuration(t),Fl(this._loadedAds,t),this._config.autoplay&&this.isReadyToStartAd?this.playNextAd():this.isPlaying&&(this._config.psta||t.tag.playerSettings.psta)&&t.player.start()},e.getNextAdToStart=function(){for(var t,e,i=this,n=-1,r=0;r<this._loadedAds.length;r++){var o=this._loadedAds[r].tag;if(_l(o,this._config.ctinfo)&&(t||(t=Utils.getViewabilityPerc(this._config.slot)),Utils.isTabInView()||(t=0),xl(o,t))){n=r;break}}if(n>=0)return this._state.startAdViTime=0,this._delayedAds.splice(n,1),this._loadedAds.splice(n,1)[0];this.isAllLoadedAdsNotStarted&&((e=this._state).startAdViTime||(e.startAdViTime=Date.now()),Date.now()-this._state.startAdViTime<1e3*this._config.startadvitimeout?(Utils.writeLog(Utils.logLevels.debug,"AS waiting for view"),setTimeout((function(){i.startAd(!0)}),200)):(Utils.writeLog(Utils.logLevels.debug,"Wait for view ended, closing"),this._delayAds?(this._delayedAds=this._loadedAds.slice(),this.isPlaying||this.requestAdUnits()):this.restartCycle()))},e.restartCycle=function(){for(var t=this._loadedAds.length-1;t>=0;--t){var e=this._loadedAds[t];this.cleanupPlayer(e)}this.isPlaying||this.requestAdUnits()},e.startAd=function(t){var e,i,n=this;if(null!=(e=this._config.reward)&&e.enabled&&(null==(i=this._state.googleReward)?void 0:i.getReadyAds())>0){var r=!0;if(this.isReadyToStartAd){r=!1;var o=this._config.reward.startPerc||.99;if(Math.random()<o)try{var a,s=(null==(a=this._loadedAds[0])||null==(a=a.tag)||null==(a=a.cac)?void 0:a.sCpm)||0;this._state.googleReward.getReadyAdsCpm()>s&&(r=!0)}catch(t){}}if(r)return void this._state.googleReward.startAd()}if(!this._state.stopAd&&!this._state.wfPause)if(Utils.writeLog(Utils.logLevels.debug,"startAd Request"),!this._config.startadonview||Utils.checkViewabilityRules(this._config.startadonviewperc||50,this._config.startadonviewtopdist,(function(){n.startAd(t)}),"startAdOnView")){if((!this._state.startAdCalled||t&&!this.isPlaying)&&this.isAtLeastOneAdLoaded)if(this._config.autoplayloop&&(this._config.autoplay=!0,this._state.startAdCalled=!0),this._ext.AV_playerGUI.bigPlay.style.display="none",this.isReadyToStartAd){var l=this.getNextAdToStart();l&&(this._currentAd=l,this._state.player=this.currentMediaPlayer,setTimeout((function(){l.player.start()}),10))}else this.isPlaying&&this._config.autoplayloop&&this.currentMediaPlayer.start()}else Utils.writeLog(Utils.logLevels.debug,"startAd not in view")},e.getActiveAdsById=function(t){return this._activeAds.filter((function(e){return e.asid===t}))},e.isAdDelayedById=function(t){return!(!this._delayAds||!this._delayedAds.find((function(e){return e.tag.id===t})))},e.isAdPlaying=function(t){return t===this._currentAd},e.clearPlayingId=function(){this._currentAd=null,this._state.player=null},e.playNextAd=function(){if(!this._state.stopAd)if(this.isImpressionLimitReached)this.requestAdUnits();else if(this._state.runCount<this._config.vastretry&&1==this._state.preroll&&this._state.impressionSet)this.restartCycle();else{if(this._config.autoplay&&this.isReadyToStartAd&&this.startAdCheck(),this.isReadyToLoadAd){var t=this._bids.shift().Ad;this.loadAndPlayAd(t)}else this.hasNoActiveAds&&this.requestAdUnits();this.isReadyToRequestBids&&this.requestAdUnits()}},e.startAdCheck=function(){var t=this;this._config.autoplay&&this.isAtLeastOneAdLoaded&&!this.isPlaying&&(this.checkReadyPriority()?(0!==this._state.startTimer&&(clearTimeout(this._state.startTimer),this._state.startTimer=0),this._callStartAd(!0)):0===this._state.startTimer&&(this._state.startTimer=setTimeout((function(){t._state.startTimer=0,t.isPlaying||t._callStartAd(!0)}),1e3*this._config.startaddelay)))},e.checkReadyPriority=function(){return!this.isAtLeastOneAdLoaded||this._loadedAds.includes(this._activeAds[0])},e._callStartAd=function(t){var e=this;0===this._state.callStartTimer&&(this._state.callStartTimeout>0?(this._state.callStartTimer=setTimeout((function(){e._state.callStartTimer=0,e.startAd(t)}),1e3*this._state.callStartTimeout),this._state.callStartTimeout=0):this.startAd(t))},e.cleanupPlayer=function(t){var e,i,n;if(!t.cleanupPlayerCalled){if(t.adsElement&&"function"==typeof t.adsElement.deactivate&&t.adsElement.deactivate(),t.sec3Timer>0&&(clearTimeout(t.sec3Timer),t.sec3Timer=0),t.sec10Timer>0&&(clearTimeout(t.sec10Timer),t.sec10Timer=0),t.pauseResumeView&&(Utils.off(t.pauseResumeView,Utils.ViewabilityChanged),t.pauseResumeView=null),t.cleanupPlayerCalled=!0,t.vitTimer&&(clearInterval(t.vitTimer),t.vitTimer=0),null!=(e=t.player)&&e.impressionSet?this._state.asStats.resetAuctionError():this._state.asStats.setBidError(t.tag.responseId,"pl"==t.tag.type&&3==t.tag.platform),null!=(i=t.player)&&i.geoedgeCleanup){try{t.player.geoedgeCleanup()}catch(t){}t.player.geoedgeCleanup=null}if(this.isAdPlaying(t)){this._ext.AV_playerGUI.setPlayer(null),this.clearPlayingId(),this._state.activeImpression=!1,"js"!==this._config.preloader.type&&"Image"!==this._config.preloader.type&&"html"!==this._config.preloader.type||(this._config.preloader.closeButton||(this._ext.AV_playerGUI.gui.style.display="none"),this._state.adDisplayApi?(this._state.divPreloader.style.opacity=1,this._state.divPreloader.style.zIndex=this._config.maxzindex,this._state.adDisplayApi.show()):this._state.divPreloader.style.display="block");var r=!1;t.player&&(r=t.player.impressionSet),"content"===this._config.preloader.type&&r&&(this._state.adDisplayApi?(this._state.divPreloader.style.opacity=1,this._state.divPreloader.style.zIndex=this._config.maxzindex):this._state.divPreloader.style.display="block",this._ext.AV_playContent(!0))}if(null!=(n=t.player)&&null!=(n=n.container)&&n.parentNode)t.player.container.style.display="none",setTimeout((function(){t.player.removeAllListeners(),t.player.timeChangeInterval>0&&(clearInterval(t.player.timeChangeInterval),t.player.timeChangeInterval=0),Utils.writeLog(Utils.logLevels.defaultLevel,"cleanupPlayer remove container:"+t.id+":"+t.asid),function(t){if(t.slot&&t.frame){try{t.frame.parentNode.removeChild(t.frame)}catch(t){}t.frame=null;try{t.container.removeChild(t.slot)}catch(t){}}t.container.parentNode.removeChild(t.container)}(t.player)}),3e3);uc(this._activeAds,t),uc(this._loadedAds,t),uc(this._delayedAds,t)}},e.monitor=function(){var t=this;(0,Ot.Z)().addEventListener("beforeunload",(function(){var e;t._activeAds.forEach((function(t){var e;null!=t&&null!=(e=t.player)&&e.redirTrack&&((new Image).src=t.player.redirTrack)})),t._loadedAds.forEach((function(t){var e;null!=t&&null!=(e=t.player)&&e.redirTrack&&((new Image).src=t.player.redirTrack)})),null!=(e=t._currentAd)&&null!=(e=e.player)&&e.redirTrack&&((new Image).src=t._currentAd.player.redirTrack)}))},(0,F.Z)(t,[{key:"numberOfLoadedAds",get:function(){return this._loadedAds.length}},{key:"isPlaying",get:function(){return!!this._currentAd}},{key:"isReadyToRequestBids",get:function(){var t=this._bids.length+this._activeAds.length;return 0==t||t<this._maxBidsPerCycle}},{key:"maxAdsToLoad",get:function(){return this._config.maxp-this._activeAds.length}},{key:"isReadyToLoadAd",get:function(){return this._bids.length>0&&this.maxAdsToLoad>0}},{key:"isAtLeastOneAdLoaded",get:function(){return this._loadedAds.length>0}},{key:"isReadyToStartAd",get:function(){return this.isAtLeastOneAdLoaded&&!this.isPlaying}},{key:"hasNoActiveAds",get:function(){return this._activeAds.length<=0&&!this.isPlaying}},{key:"isImpressionLimitReached",get:function(){return this._state.impCount>=this._config.maximp&&!this.isPlaying}},{key:"isAllLoadedAdsNotStarted",get:function(){return this._activeAds.length===this._loadedAds.length}},{key:"currentAd",get:function(){return this._currentAd}},{key:"currentMediaPlayer",get:function(){var t;return null==(t=this.currentAd)?void 0:t.player}}]),t}();function uc(t,e){var i=t.indexOf(e);i<0||t.splice(i,1)}var pc=new dc,fc=3,hc=2,vc=1,mc=new(function(){function t(){(0,N.Z)(this,t),this.db={},this.btiFactor=1,this.maxRun=void 0,this.maxImp=void 0,this.asLimit=!1,this.maxAdSourceError=0,this.errorLimit=void 0,this.impCount=0,this.runCount=0,this.errCount=0,this.storage=void 0,this.globalRPM=void 0,this.globalStartTime=void 0,this.startTime=void 0}var e=t.prototype;return e.init=function(t,e,i){t.playeropt&&(this.asLimit=t.playeropt.asLimit||!1,this.btiFactor=t.playeropt.btiFactor||1),this.maxImp=t.maximp||9999,this.maxRun=t.maxrun||9999,this.errorLimit=t.errorlimit,this.asLimit&&(this.maxAdSourceError=t.playeropt.merr||((t.vastretry||0)+1)*((t.errorlimit||0)+1)),this.globalRPM=t.globalrpm||!1,this.startTime=i,this.storage=e,this.globalStartTime=this.storage.startTime},e.getStartTime=function(t){return(this.getInfo(t)||{}).gl?this.globalStartTime:this.startTime},e.setAuctionRun=function(){this.runCount++},e.setAuctionError=function(){this.errCount++},e.resetAuctionError=function(){this.errCount=0},e.initAdSource=function(t,e){this.db[t]||(this.db[t]={imps:0,impTime:0,reqs:0,reqTime:0,err:0,impCount:0,btiFactor:1,merr:e.merr||this.maxAdSourceError||9999,mrqs:e.mrqs||this.maxRun||9999,mips:e.mips||9999,maxRPM:e.maxRPM||0,gl:this.globalRPM||!!e.gl})},e.setRequest=function(t){var e=this.getInfo(t);if(e.reqs++,e.err++,e.reqTime=Date.now(),t&&e.gl){var i=this.storage.getAdSourceInfo(t);i.reqTime=e.reqTime,i.reqs=(i.reqs||0)+1}},e.getRequestCounter=function(t){return this.getInfo(t).reqs},e.setBidError=function(t,e){!e&&this.db[t]&&(this.db[t].btiFactor*=this.btiFactor)},e.getBidFactor=function(t){return this.getInfo(t).btiFactor},e.setImpression=function(t,e){var i=this.getInfo(t);if(this.impCount++,this.resetAuctionError(),i.imps++,i.err=0,i.impTime=Date.now(),i.impCount=e,i.btiFactor=1,t&&i.gl){var n=this.storage.getAdSourceInfo(t);n.imps=(n.imps||0)+1}},e.getImpression=function(t){return this.getInfo(t).imps},e.getError=function(t){return this.getInfo(t).err},e.getInfo=function(t){return this.db[t]},e.isMaxImp=function(t){var e=this.getInfo(t),i=e.gl&&this.storage.getAdSourceInfo(t)||e;return e&&e.mips>0&&i.imps>=e.mips},e.isMaxRun=function(t){var e=this.getInfo(t),i=e.gl&&this.storage.getAdSourceInfo(t)||e;return e&&e.mrqs>0&&i.reqs>=e.mrqs},e.isMaxError=function(t){var e=this.getInfo(t);return e&&e.merr>0&&e.err>=e.merr},e.isMaxRPM=function(t){var e=this.getInfo(t);if(!((null==e?void 0:e.maxRPM)>0))return!1;var i=e.gl&&this.storage.getAdSourceInfo(t)||e,n=i.reqTime||e.reqTime;return i&&e.maxRPM>0&&Date.now()-n<6e4/e.maxRPM},e.isTotalMaxImp=function(){return this.impCount>=this.maxImp},e.getErrorReason=function(){var t=0,e=0,i=0;if(this.isTotalMaxImp())return Al;if(this.asLimit){for(var n in Object.keys(this.db))if(this.isMaxError(n))t++;else if(this.isMaxImp(n))i++;else{if(!this.isMaxRun(n))return null;e++}var r=Math.max(t,e,i);return r==t?yl:r==e?bl:Al}return this.errCount>this.errorLimit?yl:pc.waterfall.isEmpty?wl:this.runCount>=this.maxRun?bl:null},(0,F.Z)(t)}());function gc(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Number.MAX_SAFE_INTEGER}(t.length)&&!m(t)}function yc(t){return(0,it.Z)(t)&&gc(t)}var bc=Object.prototype.hasOwnProperty;var Ac=500,wc=new(function(){function t(){(0,N.Z)(this,t),this.active=!1,this.idleTime=void 0,this.pauseTime=void 0,this.adTime=void 0,this.isPaused=void 0,this.isApiPaused=!1,this.remainingTime=void 0,this.hadRemainingTime=!1,this.detected=!1,this.checkInterval=void 0,this.player=void 0,this.trackingInfo="",this.adDuration=0,this.playerOpt={}}var e=t.prototype;return e.init=function(t){t&&(t.pstv>0||t.istv>0)&&(this.playerOpt=t,this.active=!0)},e.reset=function(){this.checkInterval>0&&(clearInterval(this.checkInterval),this.checkInterval=0),this.idleTime=0,this.pauseTime=0,this.adTime=0,this.isPaused=!1,this.isApiPaused=!1,this.remainingTime=0,this.hadRemainingTime=!1,this.detected=!1,this.trackingInfo="",this.adDuration=0,this.player=null},e.terminateAndReport=function(t){if(this.player)try{this.player.emit("AdSkipped",{idleDetect:!0}),this.player.stopAd()}catch(t){}this.trackingInfo&&(Ga("vpaid",null,"".concat(this.trackingInfo).concat(t),!1),this.trackingInfo="",this.detected=!0)},e.checkState=function(){if(this.active&&!this.detected&&this.player&&!this.isApiPaused){if(this.isPaused||(this.adTime+=.5),this.isPaused&&this.playerOpt.pstv>0){if(this.pauseTime+=Ac,this.pauseTime/1e3>this.playerOpt.pstv)return void this.terminateAndReport("pause")}else this.pauseTime=0;if(this.playerOpt.istv>0){var t=this.player.adRemainingTime,e=this.player.adDuration;if(this.adDuration||(e>0?this.adDuration=e:t>0&&(this.adDuration=t)),t>0&&(this.hadRemainingTime=!0),t==this.remainingTime){if(this.idleTime+=Ac,this.idleTime/1e3>this.playerOpt.istv)return void this.terminateAndReport("idle")}else{if(this.hadRemainingTime&&t<=0&&this.adDuration>0&&this.adTime>this.adDuration+15)return void this.terminateAndReport("duration");this.remainingTime=t,this.idleTime=0}}}},e.onImpression=function(t,e){this.active&&e&&(this.reset(),this.trackingInfo="".concat(e,"&e=AV_M3&prbdsup=1&prbdres="),this.player=t,this.checkInterval=setInterval(this.checkState.bind(this),Ac))},e.onPaused=function(t){this.isPaused=!0,"hidden"===za.visibilityState&&(t=!0),this.isApiPaused=t},e.onPlay=function(){this.isPaused=!1,this.isApiPaused=!1},e.onQuartile=function(){this.idleTime=0,this.pauseTime=0,this.isApiPaused=!1},e.onStop=function(){this.reset()},(0,F.Z)(t)}()),kc="data:audio/mpeg;base64,/+MYxAAAAANIAUAAAASEEB/jwOFM/0MM/90b/+RhST//w4NFwOjf///PZu////9lns5GFDv//l9GlUIEEIAAAgIg8Ir/JGq3/+MYxDsLIj5QMYcoAP0dv9HIjUcH//yYSg+CIbkGP//8w0bLVjUP///3Z0x5QCAv/yLjwtGKTEFNRTMuOTeqqqqqqqqqqqqq/+MYxEkNmdJkUYc4AKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",xc="securitypolicyviolation";function _c(t,e){var i=document.createElement("video");i.src=kc,function(t){t.setAttribute("playsinline","true"),t.setAttribute("webkit-playsinline","true")}(i),i.style.display="none",i.muted=!e;var n=!1,r=!1,o=!1,a=function i(n){"data"===(null==n?void 0:n.blockedURI)&&(r||t(!e,!e),o=!0,document.removeEventListener(xc,i))};document.addEventListener(xc,a);var s=i.play();s?(s.then((function(){r=!0,n=!0,t(!0,!0)})).catch((function(e){n=!0,o||t(!1,!0)})),setTimeout((function(){document.removeEventListener(xc,a),n||t(!1,!1)}),1e3)):t(!1)}function Sc(t,e){return t===e||t!=t&&e!=e}function Cc(t,e,i){"__proto__"===e?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function Tc(t,e,i){(void 0!==i&&!Sc(t[e],i)||void 0===i&&!(e in t))&&Cc(t,e,i)}var Ic=r(4798);function Ec(t,e){void 0===e&&(e=!1);var i,n,r=e?(i=t.buffer,n=new i.constructor(i.byteLength),new Uint8Array(n).set(new Uint8Array(i)),n):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var Pc=Object.prototype;function Vc(t){return"function"==typeof t.constructor&&(i=(e=t)&&e.constructor,e!==("function"==typeof i&&i.prototype||Pc))?Object.create(Object.getPrototypeOf(t)):{};var e,i}function Oc(t){return(0,it.Z)(t)&&(0,v.Z)(t,"Arguments")}var Rc=r(3127),Lc=r(3617),Uc=/^(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array$/;function Dc(t){return(0,it.Z)(t)&&Uc.test((0,Lc.Z)(t))}function Mc(t,e,n,r,o,a,s,l,c,d){var u=t[n],p=e[n],f=d.get(p);if(f)s(t,n,f);else{var h=c?c(u,p,"".concat(n),t,e,d):void 0,v=void 0===h;if(v){var g=Array.isArray(p),y=!g&&(0,Rc.Z)(p),b=!g&&!y&&Dc(p);h=p,g||y||b?Array.isArray(u)?h=u:yc(u)?h=function(t,e){void 0===e&&(e=[]);var i=-1,n=t.length;for(e||(e=new Array(n));++i<n;)e[i]=t[i];return e}(u):y?(v=!1,h=(0,Ic.Z)(p,!0)):b?(v=!1,h=Ec(p,!0)):h=[]:kr(p)||Oc(p)?(h=u,Oc(u)?h=function(t){t=Object(t);var e={};for(var i in t)e[i]=t[i];return e}(u):i(u)&&!m(u)||(h=Vc(p))):v=!1}v&&(d.set(p,h),l(h,p,r,o,a,s,c,d),d.delete(p)),s(t,n,h)}}function qc(t,e,i,n,r,o,a,s){t!==e&&function(t,e,i){for(var n=Object(t),r=i(t),o=r.length,a=-1;o--;){var s=r[++a];if(!1===e(n[s],s,n))break}}(e,(function(l,c){if(s||(s=new Map),r(l))Mc(t,e,c,i,n,r,o,qc,a,s);else{var d=a?a(t[c],l,"".concat(c),t,e,s):void 0;void 0===d&&(d=l),o(t,c,d)}}),n)}var jc=/^(?:0|[1-9]\d*)$/;function Fc(t,e){var i=typeof t;return!!(e=null==e?Number.MAX_SAFE_INTEGER:e)&&("number"===i||"symbol"!==i&&jc.test(t))&&t>-1&&t%1==0&&t<e}function Nc(t){return function(e){var n=-1,r=arguments.length<=1?0:arguments.length-1,o=r>1?r-1+1<1||arguments.length<=r-1+1?void 0:arguments[r-1+1]:void 0,a=r>2?arguments.length<=3?void 0:arguments[3]:void 0;for(t.length>3&&"function"==typeof o?r--:o=void 0,a&&function(t,e,n){if(!i(n))return!1;var r=typeof e;return!!("number"===r?gc(n)&&Fc(e,n.length):"string"===r&&e in n)&&Sc(n[e],t)}(arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var s=n+1<1||arguments.length<=n+1?void 0:arguments[n+1];s&&t(e,s,n,o)}return e}}function Bc(t){var e=[];for(var i in t)e.push(i);return e}var Zc=Nc((function(t,e,n){qc(t,e,n,Bc,i,Tc)}));var zc=!1;function Wc(t,e,i,n){void 0===n&&(n=null);var r=e.config;if(kr(t)){var o=Number(t.maxBidQueue)||t.maxbidqueue||0;try{Zc(r,t),function(t,e,i){if(!zc){zc=!0;try{if(Array.isArray(t.ctrgt)){var n=Bt(e.macros.AV_URL)||"";if(n){var r,o=ue(t.ctrgt,!0);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(Array.isArray(null==a?void 0:a.hosts)){var s,l=ue(a.hosts,!0);try{for(l.s();!(s=l.n()).done;){var c=s.value;if(n.indexOf(c)>-1||i&&i.indexOf(c)>-1)return void(kr(null==a?void 0:a.cnf)&&Zc(e.config,a.cnf))}}catch(t){l.e(t)}finally{l.f()}}}}catch(t){o.e(t)}finally{o.f()}}}}catch(t){}}}(t,e,n)}catch(t){}r.inappsdk?r.maxbidqueue=0:o>0&&(r.maxbidqueue=function(t,e,i){var n=t.config,r=0;return i>0&&(r=i,(n.errorlimit-e<fc||n.maxrun-t.runCount<=hc||n.maximp-t.impCount<=vc)&&(r=0)),r}(e,i,o),r.maxbidqueue>0&&e.wfMgr.setMaxBidsQueue(r.maxbidqueue))}}function Hc(t,e,i,n){void 0===n&&(n=null);try{var r=e.config,o=JSON.parse(decodeURIComponent(t))||{};if(!kr(o))return;Wc(o,e,i,n),o.badvlist&&De(o.badvlist),o.setimaflags&&ie(e,r.startvolume)}catch(t){}}var Gc,Kc,Jc=(Kc=function(t,e,i){return t.concat("%26",e,"%3D",i)},{parseIASResponseData:function(t){Gc=JSON.parse(t)},getIASPageTargetingAsQueryString:function(){var t="";for(var e in t=Kc(t,"fr",Gc.fr),Gc.brandSafety)t=Kc(t,e,Gc.brandSafety[e]);for(var e in Gc.custom)t=Kc(t,e,Gc.custom[e]);return t},getIASSlotTargetingAsQueryString:function(){var t={};for(var e in Gc.slots){var i=Gc.slots[e],n="";for(var r in i){var o=i[r];if(Array.isArray(o)){n=n.concat("%26",r,"%3D");for(var a=o.length-1,s=0,l=o.length;s<l;s++){var c="%2C";s===a&&(c=""),n=n.concat(o[s],c)}}else n=Kc(n,r,o);t[e]=n}}return t}});var Xc=function(){function t(e,i){if((0,N.Z)(this,t),this.resetTagCache=!1,this.cacheSig=void 0,this.storageAni=void 0,this.channelCache=void 0,this.publisherCache=void 0,this.player=void 0,this.cacheSig="S_".concat(i.position||"_").concat(i.publisherid).concat(i.channelid),this.player=e,!this.storageAni){var n=e.slotWindow||window;"1"==i.tgt&&(n=(0,Ot.Z)()),n.storageAni=n.storageAni||{},n.storageAni[this.cacheSig]=n.storageAni[this.cacheSig]||{tc1:null,tcc:0,vpct:0,cnt:0,startTime:Date.now()},n.storageAni[i.publisherid]=n.storageAni[i.publisherid]||{ar:0,pl:0},n.storageAni.requestFC=n.storageAni.requestFC||{},"1"==i.tgt&&(n.storageAni.syncs=n.storageAni.syncs||{}),this.storageAni=n.storageAni||{},this.channelCache=this.storageAni[this.cacheSig]||{},this.publisherCache=this.storageAni[i.publisherid]||{}}}var e=t.prototype;return e.getAdSourceInfo=function(t){return this.storageAni.requestFC[t]=this.storageAni.requestFC[t]||{},this.storageAni.requestFC[t]},e.checkVpaidCache=function(){if(this.channelCache&&"1"==this.player.config.tgt){if(this.channelCache.vpct>=0&&Date.now()-this.channelCache.vpct<1e3*this.player.config.vpaidfreq)return!1;if(this.player.config.maxcnt>0&&this.channelCache.cnt>this.player.config.maxcnt)return!1;if(this.player.config.maxsesstime>0&&Date.now()-this.startTime>1e3*this.player.config.maxsesstime)return!1;this.channelCache.vpct=Date.now(),this.channelCache.cnt++}return!0},e.canPlayerLoad=function(){var t=this.player.config.maxpagerun||0,e=!(t>0)||this.publisherCache.pl<t;return this.publisherCache.pl++,e},e.isFirstLoad=function(){return(this.publisherCache.pl||0)<=1},e.getMaxAdReq=function(){var t=this.player.config.maxpagereq||0;return t>0?Math.max(0,t-(this.publisherCache.ar||0)):99999999},e.incAdReqCount=function(t){this.publisherCache.ar+=t},(0,F.Z)(t,[{key:"tagCache",get:function(){var t;return null!=(t=this.channelCache)&&t.tc1&&this.channelCache.tcc>0&&!this.resetTagCache?(this.channelCache.tcc--,this.channelCache.tc1):(this.resetTagCache=!1,null)},set:function(t){this.channelCache.tc1=t,this.channelCache.tcc=null===t?0:this.player.config.tagcache}},{key:"startTime",get:function(){return this.channelCache.startTime}},{key:"autoPlay",get:function(){return this.storageAni.ap},set:function(t){this.storageAni.ap=t}}]),t}();function Qc(t,e,i){var n,r,o=t.tag.cac||{},a=null;a=null!=(n=t.tag.tc)&&n.mn?ba.isSupportedAdSource(t.tag)?o.nFloor:t.tag.floor:o.sCpm;var s=t.tag.type,l=t.tag.platform;return e.publisherid===Jr&&t.tag.ismp&&(s="pb",l=1e3),{bidCpm:o.sCpm,floorCpm:a,pubCpm:o.pCpm,type:s,bidder:i,ismp:t.tag.ismp,bidCode:t.tag.tppbid,bidData:t.tag.bidData||{},analytics:window.pba,isMarketplace:t.tag.ismp,provider:t.tag.provider,platform:l,papi:t.tag.papi,vast:null==(r=t.vastPlayer)||null==(r=r.vast)?void 0:r.raw}}var Yc={utm_source:"AV_D86",utm_medium:"AV_D87",utm_term:"AV_D88",utm_content:"AV_D89",utm_campaign:"AV_D90"};var $c,td=function(){function t(e,i,n,r,o){var a;(0,N.Z)(this,t),this.adUnitId=void 0,this.settings=void 0,this.wnd=void 0,this.gtag=void 0,this.player=void 0,this.adSource=void 0,this.baseUrl=void 0,this.wfMgr=void 0,this.asid=void 0,this.initAdOnce=!1,this.googleReward=void 0,this.rewardedSlot=void 0,this.rewardReady=!1,this.eventsRegistered=!1,this.rewardEvent=void 0,this.slotRefreshing=void 0,this.runs=0,this.errs=0,this.imps=0,this.player=r,this.wfMgr=o,this.adSource=e,this.asid=e.asid,this.adSource.cac=ss(this.adSource.ac),this.settings=i||{},this.settings.maxErr=this.settings.maxErr||15,this.settings.maxImp=this.settings.maxImp||9999,this.settings.maxRun=this.settings.maxRun||9999,this.settings.retryTimeout=this.settings.retryTimeout||2,"65df5a09bf90eba9cd0d5248"!==this.asid&&"65d9a3ffb43a29597d0d7177"!==this.asid||(this.settings.floorKey=this.settings.floorKey||"floors_aniview"),this.settings.floorKey&&(this.settings.floorFranularity=this.settings.floorFranularity||.1,this.settings.floorDecimals=this.settings.floorDecimals||1),this.baseUrl=n,this.settings.enabled&&(0,Ot.Z)()===top&&(this.wnd=top,this.wnd.googletag=this.wnd.googletag||{},this.wnd.googletag.cmd=this.wnd.googletag.cmd||[],this.gtag=this.wnd.googletag,this.adUnitId=(0,b.Z)(e.url)?null==(a=e.url.split("?")[1])?void 0:a.split("=")[1].split("&")[0]:null,this.adUnitId&&(0,b.Z)(this.settings.adUnitIdOverride)&&this.settings.adUnitIdOverride.length>5&&(this.adUnitId=this.settings.adUnitIdOverride))}var e=t.prototype;return e.initAd=function(){var t;if(null!=(t=this.settings)&&t.enabled&&this.adUnitId&&!this.initAdOnce){this.initAdOnce=!0;var e=this;try{this.gtag.cmd.push((function(){e.refreshReward(!0)}))}catch(t){}}},e.startAd=function(){var t=this;if(this.rewardReady&&this.rewardEvent){try{this.rewardEvent.makeRewardedVisible(),this.imps++}catch(t){return}this.sendEvent("start"),setTimeout((function(){var e;t.rewardEvent&&(t.sendEvent("impression"),t.player.onAdImpression({asid:t.asid,reward:!0,tagInfo:{type:"GoogleReward",bidCpm:null==(e=t.adSource.cac)?void 0:e.sCpm,bidder:"google"}}))}),1)}},e.getReadyAds=function(){return this.rewardReady?1:0},e.getReadyAdsCpm=function(){var t;return(null==(t=this.adSource)||null==(t=t.cac)?void 0:t.sCpm)||0},e.setFloorKv=function(){var t;if(this.rewardedSlot&&this.settings.floorKey&&(null==(t=this.adSource)||null==(t=t.opt)?void 0:t.s)>2){var e=this.adSource.opt.s,i=st(Math.max(e-.5*this.errs,0),this.settings.floorFranularity,10,this.settings.floorDecimals);Number(i)>0&&this.rewardedSlot.setTargeting(this.settings.floorKey,i)}},e.sendReqBid=function(t){try{this.wfMgr._pixelReporter.pushRequestOrBidPixel(this.asid,this.wfMgr.waterfall.requestPixel,!1,this.wfMgr.waterfall.isPartnerConnection,this.adSource.groupId,t,this.adSource),this.wfMgr._pixelReporter.pushRequestOrBidPixel(null,this.wfMgr.waterfall.requestPixel,!0,this.wfMgr.waterfall.isPartnerConnection,null,t)}catch(t){}},e.sendEvent=function(t){var e;if(this.baseUrl&&null!=(e=this.adSource)&&e.trackingParams&&t)try{(new Image).src=Ii("".concat(this.baseUrl,"&").concat(this.adSource.trackingParams,"&vi=[AV_VIEWABILITY]&d4=[AVC_WFCYCLE]&d5=[AVC_TIMEPASS]&d72=[AVC_TABSTATE]&cb=").concat(Date.now(),"&e=").concat(t),{tag:this.adSource,bidData:{},playerSettings:this.adSource.playerSettings,asid:this.asid,type:this.adSource.type})}catch(t){}},e.registerEvents=function(){var t=this;this.eventsRegistered||(this.eventsRegistered=!0,this.gtag.pubads().addEventListener("rewardedSlotReady",(function(e){var i;(null==e||null==(i=e.slot)?void 0:i.getAdUnitPath())===t.adUnitId&&(t.rewardEvent=e,t.rewardReady=!0,t.errs=0,t.sendReqBid("bid"))})),this.gtag.pubads().addEventListener("rewardedSlotClosed",(function(e){var i;(null==e||null==(i=e.slot)?void 0:i.getAdUnitPath())===t.adUnitId&&(t.sendEvent("AV_M44"),t.player.onAdSkipped({asid:t.asid,rewardSkipped:!0}),t.rewardEvent=null,t.rewardReady=!1,t.refreshReward())})),this.gtag.pubads().addEventListener("rewardedSlotGranted",(function(e){var i;(null==e||null==(i=e.slot)?void 0:i.getAdUnitPath())===t.adUnitId&&(t.sendEvent("complete"),t.player.onAdVideoComplete({asid:t.asid,rewardGranted:!0}),t.rewardEvent=null,t.rewardReady=!1,t.refreshReward())})),this.gtag.pubads().addEventListener("slotRenderEnded",(function(e){var i;(null==e||null==(i=e.slot)?void 0:i.getAdUnitPath())===t.adUnitId&&(null!=e&&e.isEmpty&&(t.errs++,setTimeout((function(){t.refreshReward()}),1e3*t.settings.retryTimeout)),t.rewardReady=!1)})),this.gtag.pubads().addEventListener("impressionViewable",(function(e){var i;(null==e||null==(i=e.slot)?void 0:i.getAdUnitPath())===t.adUnitId&&t.rewardEvent&&t.rewardReady&&t.sendEvent("adViImpression")})))},e.refreshReward=function(t){var e=this;void 0===t&&(t=!1),this.settings.refreshTimeout>0&&(this.rewardedSlot&&(this.gtag.destroySlots([this.rewardedSlot]),this.rewardedSlot=void 0,this.settings.fixUrl&&this.wnd.history.pushState("",this.wnd.document.title,this.wnd.location.pathname+this.wnd.location.search)),this.runs++>=this.settings.maxRun||this.imps>=this.settings.maxImp||this.errs>=this.settings.maxErr||(this.rewardedSlot=this.gtag.defineOutOfPageSlot(this.adUnitId,this.gtag.enums.OutOfPageFormat.REWARDED),this.rewardedSlot&&(this.rewardedSlot.addService(this.gtag.pubads()),this.setFloorKv(),this.registerEvents(),t&&!this.gtag.pubadsReady&&this.gtag.enableServices(),setTimeout((function(){e.gtag.cmd.push((function(){e.gtag.display(e.rewardedSlot),e.gtag.pubads().refresh([e.rewardedSlot])}))}),200),this.sendReqBid("request"))))},(0,F.Z)(t)}();var ed="__av__block";function id(t){return(0,b.Z)(t)?function(t){for(var e,i={},n=t.split("&"),r=0;r<n.length;r++){var o=!1;if((e=n[r].split("=")).length>=2)try{if("AV_URL"===e[0]&&(o=!0),0===e[0].indexOf("AV_DECODED")||(e[1]=decodeURIComponent(e[1]),e[1]=decodeURIComponent(e[1]),o&&(e[1]=(0,Ft.Z)(e[1])),e[1]=encodeURIComponent(e[1])),i[e[0]]=e[1],o&&i[e[0]]&&i[e[0]].length>0){var a=i[e[0]].substring(0,1);"%"!==a&&"{"!==a&&"$"!==a&&"["!==a&&"<"!==a||delete i[e[0]]}}catch(t){if(o&&i[e[0]]&&i[e[0]].length>0){var s=i[e[0]].substring(0,1);"%"!==s&&"{"!==s&&"$"!==s&&"["!==s&&"<"!==s||delete i[e[0]]}}}return i}(t):kr(t)?function(t){var e={};for(var i in t){var n=!1;try{if((0,b.Z)(i)&&(0,b.Z)(t[i])&&t[i].length>0&&("AV_URL"===t[i]&&(n=!0),0===i.indexOf("AV_DECODED")?e[i]=t[i]:(e[i]=decodeURIComponent(t[i]),e[i]=decodeURIComponent(e[i]),n&&(e[i]=(0,Ft.Z)(e[i])),e[i]=encodeURIComponent(e[i])),n&&e[i]&&e[i].length>0)){var r=e[i].substring(0,1);"%"!==r&&"{"!==r&&"$"!==r&&"["!==r&&"<"!==r||delete e[i]}}catch(t){if(n&&e[i]&&e[i].length>0){var o=e[i].substring(0,1);"%"!==o&&"{"!==o&&"$"!==o&&"["!==o&&"<"!==o||delete e[i]}}}return e}(t):{}}function nd(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.reduce((function(t,e){return Object.assign(t,id(e))}),{})}var rd=function(t){return t.Instream="instream",t.Outstream="outstream",t.Display="display",t}({}),od=function(t){return t.Standalone="standalone",t.Linear="linear",t.Passback="passback",t.Overlay="overlay",t}({});function ad(t,e,i){var n=t[e];Dt(t,e)&&Sc(n,i)?void 0!==i||e in t||Cc(t,e,i):0===i&&0===n&&1/i!=1/n||Cc(t,e,i)}function sd(t){return gc(t)?function(t,e){void 0===e&&(e=!1);for(var i=Array.isArray(t),n=!i&&Oc(t),r=!i&&!n&&(0,Rc.Z)(t),o=!i&&!n&&!r&&Dc(t),a=i||n||r||o,s=t.length,l=new Array(a?s:0),c=a?-1:s;++c<s;)l[c]="".concat(c);for(var d in t)!e&&!Dt(t,d)||a&&("length"===d||Fc(d,s))||l.push(d);return l}(t):Object.keys(Object(t))}var ld=Nc((function(t,e,n){qc(t,e,n,sd,(function(t){return i(t)&&!Array.isArray(t)}),ad)})),cd="https://player.aniview.com/script/webm/ad.html",dd="html",ud="js",pd="js";function fd(t){!function(t){var e;if(lt(t.passback)&&(t.passback={}),ld(t.passback,(0,b.Z)(t.passbackUrl)?{url:t.passbackUrl}:t.passbackUrl||{},(0,b.Z)(t.passbackurl)?{url:t.passbackurl}:t.passbackurl||{},(null==(e=t.display)?void 0:e.passback)||{}),(0,b.Z)(t.passback)&&(t.passback={url:t.passback}),lt(t.passback.enable)&&(t.passback.enable=!!t.passback.url),t.passback.enable)if(t.passback.url){var i,n=t.passback.url===cd;(i=t.passback).type||(i.type=n?dd:pd)}else Object.assign(t.passback,{url:cd,type:dd})}(t),function(t){var e;if(lt(t.preloader))t.preloader={};else if((0,b.Z)(t.preloader))t.preloader={url:t.preloader};else if((0,b.Z)(t.preloader.link)){var i;(i=t.preloader).url||(i.url=t.preloader.link)}if(ld(t.preloader,(null==(e=t.display)?void 0:e.linear)||{}),Array.isArray(t.preloader.link)&&!t.preloader.type&&(t.preloader.type="content"),lt(t.preloader.enable)&&(t.preloader.enable=lt(t.preloader.url)?!yr(t.preloader.link):!!t.preloader.url),t.preloader.enable){var n;t.preloader.link||(t.preloader.url?(0,b.Z)(t.preloader.url)&&(t.preloader.link=t.preloader.url):Object.assign(t.preloader,{url:cd,type:dd}));var r=t.preloader.url===cd;(n=t.preloader).type||(n.type=r?dd:ud)}}(t)}!function(n){var o="impression",a="firstQuartile",s="midpoint",l="thirdQuartile",c="complete",d="click",u="error",p="skip",f="stop",h="6.2.234".replace("+",".");n.aniviewPlayer=function(v,g){var y=this;n.AV_FlashOpen=this;var A=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)||/CriOS/.test(navigator.userAgent),w=/iPhone|iPod|iPad/.test(navigator.userAgent),k=/(android)/i.test(navigator.userAgent);!function(x){var _,S,C,T=0,I="",E="",P={},V={};function O(){S.preroll=C.preroll,S.midrollTimer&&(clearTimeout(S.midrollTimer),S.resetAdRequest=!0),S.midrollTimer=0,S.resetAdRequest&&(S.resetAdRequest=!1,setTimeout((function(){pc.requestAdUnits().catch(B)}),10))}function R(){S.isFullScreen&&!Utils.getFSElement(S.slotWindow.document)&&(S.slotWindow.document.removeEventListener(Utils.getFSEvent(),R),S.isFullScreen=!1,y.resizeAd(S.fsRestoreSize.width,S.fsRestoreSize.height,"normal"))}function L(){return pc._pixelReporter.trackingUrl}function U(){C.autoplay&&S.preroll>0&&!S.prerollTimer&&C.prerolltimeout>0&&(S.prerollTimer=setTimeout((function(){S.prerollTimer=null;var t=pc.currentMediaPlayer;null!=t&&t.impressionSet||(S.preroll=0,X())}),1e3*C.prerolltimeout))}function D(){return Utils.isAutoSound(C)}function M(t){if(!t.videoCompleteCalled){t.videoCompleteCalled=!0;var e=!1;t.player&&(e=t.player.impressionSet),e?($=0,S.asStats.resetAuctionError(),wc.onStop()):pi.onBidFailed(t.tag.asid),pc.isAdPlaying(t)&&(pc.clearPlayingId(),"content"!=C.preloader.type&&(S.divPreloader.style.zIndex=C.maxzindex),S.adDisplayApi?S.divPreloader.style.opacity=1:S.divPreloader.style.display="block","content"==C.preloader.type&&e&&X()),C.loopvideo||(e&&t&&t.sndInterval&&(clearInterval(t.sndInterval),t.sndInterval=0),C.vasticonenabled&&Q.vastIcon&&Q.setAdIcon(null),pc.playNextAd())}}function q(t,e,i,n){var r="on"+t;"function"==typeof y[r]&&y[r](e,i,n)}function j(t){function e(){S.adStoppedCalled||(S.adStoppedCalled=!0,q(as.AdStopped))}S.adStoppedCalled||("1"==C.tgt&&S.playerSlot&&(S.playerSlot.style.display="none"),t?(S.adStoppedTimer&&(clearTimeout(S.adStoppedTimer),S.adStoppedTimer=0),e()):S.adStoppedTimer||(S.adStoppedTimer=setTimeout((function(){S.adStoppedTimer=0,e()}),S.adStoppedTimeout)))}function F(t){try{t.player&&t.player.api&&!D()&&!t.sndEnabled&&(t.noForceVol||(t.player.adVolume=0),t.player.video&&(t.player.video.volume=0))}catch(t){}}function N(t,e){var i="https://player.aniview.com/beacon/"+t+".txt?cb="+Date.now();"string"!=typeof S.authTxt?Utils.request("GET",i,void 0,!1,{onload:function(t){e(t.responseText)},onerror:function(t){}}):setTimeout((function(){e(S.authTxt)}),10)}function B(t){if(--Y>0&&S.err500<7){var e=100;(t>=500||0==t)&&(S.err500++,e=S.err500>1?5e3*S.err500:1e3*S.err500),setTimeout((function(){pc.requestAdUnits().catch(B)}),e)}}x.vpaidSWFLocation="",y.startAd=pc.startAd.bind(pc),y.setFloor=function(t){pi.setPlayerFloor(t)},y.setAdConfig=function(t){(0,it.Z)(t)&&Object.assign(C,function(t){for(var e={},i=0,n=Object.entries(t);i<n.length;i++){var r=mr(gr.Z,n[i],2),o=r[0],a=r[1];e[o.toLowerCase()]=a}return e}(t))},y.setRequestState=function(t,e){if(t&&!S.inventorySet&&(S.reqAdState=t,S.initPromise.then((function(){return G()}))),t!=S.reqAdState&&(S.reqAdState=t,t&&m(S.reqAdFunc))){var i=S.reqAdFunc;S.reqAdFunc=null,e||(e=C.vastretry),e>=0&&(e=Math.min(e,10),C.vastretry=e,S.tagRequestCount=0),i()}},y.setWaterfallState=function(t,e,i){if(Utils.writeLog(Utils.logLevels.debug,"setWaterfallState Request: "+t+":"+e+":"+S.wfPause),t&&e&&!S.inventorySet&&(S.wfPause=!t,S.initPromise.then((function(){return G()}))),t==S.wfPause||!t&&e&&pc.isPlaying){if(S.wfPause=!t,!S.wfPause&&e&&(y.startAd(!0),S.tagRequestCount=0,m(S.resumeWf)&&S.midrollTimer&&(clearTimeout(S.midrollTimer),S.midrollTimer=0,S.resumeWf())),S.wfPause&&e&&pc.isPlaying)try{pc.currentMediaPlayer.pauseAd(),pc.currentMediaPlayer.stopAd(),pc.currentMediaPlayer.emit("AdError","vpaidStartAdTimeout")}catch(t){}}else t&&e&&(S.resetmidroll=!0)},y.setViewability=function(t){Utils.setViewability(t)},y.seekAd=function(t){pc.isPlaying&&pc.currentMediaPlayer.seekAd(t)},y.setAdVolume=function(t){if(!(S.stopAd&&t>0)){if(Utils.writeLog(Utils.logLevels.debug,"setAdVolume request "+t),t>0?Q&&(Q.muted=!1):Q&&(Q.muted=!0),pc.isPlaying){var e=pc.currentAd;e&&e.player&&(C.autosound&&0==t&&(C.autosound=!1),t>0&&(e.sndEnabled=!0,e.player.sndEnabled=!0),e.player.adVolume=t)}C.startvolume=t,ie(S,t)}},y.getAdVolume=function(){return pc.isPlaying&&(Utils.isAutoSound(C)||pc.currentMediaPlayer.sndEnabled)?pc.currentMediaPlayer.adVolume:0},y.pauseAd=function(t){if(Utils.writeLog(Utils.logLevels.debug,"pauseAd request"),pc.isPlaying){var e,i=pc.currentAd;if(!i.tag.isDeal||null==(e=i.tag.playerSettings)||!e.fply){var n=null==i?void 0:i.player;n&&(n.pauseFromApi=!0,n.pauseAd())}}},y.resumeAd=function(){S.stopAd||(Utils.writeLog(Utils.logLevels.debug,"resumeAd request"),pc.isPlaying&&pc.currentMediaPlayer.resumeAd())},y.getAdDuration=function(){return pc.isPlaying?pc.currentMediaPlayer.adDuration:-2},y.getAdCompanions=function(){if(pc.isPlaying)try{return pc.currentMediaPlayer.adCompanions||""}catch(t){}return""},y.getAdRemainingTime=function(){return pc.isPlaying?pc.currentMediaPlayer.adRemainingTime:-2},y.setFullscreenState=function(t){S.isFullScreen=t},y.resizeAd=function(t,i,r){var o;if(Utils.writeLog(Utils.logLevels.debug,"resizeAd: "+t+":"+i+":"+r),t=Math.floor(t),i=Math.floor(i),r||(r=Utils.getFSElement(S.slotWindow.document)?"fullscreen":"normal"),"fullscreen"==r&&(n.orientation&&90!==n.orientation&&-90!==n.orientation?(t=Jt(e)||screen.height,i=Xt(e)||screen.width):(t=Xt(e)||screen.width,i=Jt(e)||screen.height)),void 0!==n.AV_player&&n.AV_player)if(C.contentplayer&&"fullscreen"==r){n.AV_player&&(C.width=t,C.height=i);var a,s=pc.currentMediaPlayer;s&&"function"==typeof s.resizeAd&&(s.resizeAd(t,i,r),s.container.style.width="".concat(t,"px"),s.container.style.height="".concat(i,"px"),"function"==typeof(null==(a=s.video)?void 0:a.resize)&&s.video.resize(t,i,r)),void 0!==Q&&Q&&Q.resize(t,i)}else{if("fullscreen"==r){if(Utils.isiOS()){var l,c=pc.currentMediaPlayer;return void(null!=c&&c.impressionSet&&"function"==typeof(null==c||null==(l=c.video)?void 0:l.resize)&&c.video.resize(t,i,r))}if(!S.isFullScreen&&!Utils.getFSElement(S.slotWindow.document)){S.fsRestoreSize={width:C.width,height:C.height},Utils.setFSState(C.slot,!0),t=screen.width,i=screen.height,S.isFullScreen=!0;var d=Utils.getFSEvent();d&&S.slotWindow.document.addEventListener(d,R)}}void 0!==n.AV_player&&n.AV_player&&(C.width=t,C.height=i);var u,p=pc.currentMediaPlayer;if(p)if("function"==typeof p.resizeAd)p.resizeAd(t,i,r),p.container.style.width="".concat(t,"px"),p.container.style.height="".concat(i,"px"),"function"==typeof(null==(u=p.video)?void 0:u.resize)&&p.video.resize(t,i,r);void 0!==S.AVcontent&&S.AVcontent&&(S.AVcontent.style.width=t+"px",S.AVcontent.style.height=i+"px"),void 0!==Q&&Q&&Q.resize(t,i),null==(o=S.adDisplayApi)||null==o.setSize||o.setSize(t,i),y.dispatchEvent(as.AdSizeChange)}},y.getContentPaused=function(){return S.contentPaused},y.pauseContent=function(t){S.pauseContent=!0;var e=Q.getPlayer()||S.AVcontent;e&&"Content"==e.asid&&(t||(e.userPaused=!0),e.pauseAd(),Q.paused=!0)},y.resumeContent=function(t){S.pauseContent=!1;var e=Q.getPlayer()||S.AVcontent;e&&"Content"==e.asid&&(C.slot.querySelector("#imgpreloader").style.display="none",C.autoplay=!0,Q.bigPlay.style.display="none","content"==C.preloader.type&&(S.diVideoPreloader.style.display="block"),Q.controls(!C.hidecontrols&&(!C.hidemobilecontrols&&Utils.isMobile()||S.mobileControlsOn||!Utils.isMobile())),C.preloader.apiRequest=!1,t||(e.userPaused=!1),e.resumeAd(),Q.paused=!1)},y.setContentVolume=function(t){var e=Q.getPlayer()||S.AVcontent;e&&"Content"==e.asid&&(e.volume=t,t<1e-6?(Q.muted=!0,e.muted=!0):(Q.muted=!1,e.muted=!1))},y.getContentCurrentTime=function(){var t=Q.getPlayer()||S.AVcontent;if(t&&"Content"==t.asid)return t.currentTime},y.stopAd=function(){Utils.vcmgr.reset(C.advideoslot),S.stopAd=!0,Utils.writeLog(Utils.logLevels.debug,"stopAd"),pc.isPlaying&&(pc.currentMediaPlayer.pauseAd(),pc.currentMediaPlayer.stopAd()),setTimeout((function(){Q.closeClick()}),1e3)},y.getReadyAds=function(){var t;return pc.numberOfLoadedAds||(null==(t=S.googleReward)?void 0:t.getReadyAds())||0},y.skipAd=function(){pc.isPlaying&&pc.currentMediaPlayer.skipAd()},y.closeClicked=function(){var t=C.floatstate?"AV_M14":"AV_M13";v.closePixelSent||((new(Utils.getTopWnd().Image)).src="".concat(I,"&").concat(E,"&e=").concat(t,"&cb=").concat(Date.now()),C.floatstate||(v.closePixelSent=!0))},pc._ext.playAd=function(t){function e(t){try{D()||t.sndEnabled||(t.player.adVolume=0)}catch(t){}}t.player.once(as.AdLoaded,(0,ce.Z)(le().mark((function e(i){var n,r,o;return le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S.omsdkPromise;case 2:Ne(null==i?void 0:i.bidData,t.tag)&&(t.tag.isDeal=!0,t.tag.dealType=je.PG,s=t.tag.asid,l=t.tag.playerSettings,c=void 0,(c=Fe[s]||{id:s,count:0,closed:!1}).count++,c.closed=c.count>=(l.dealCt||1),Fe[s]=c,l.vi=l.vi||l.dealVi||50),ti(t.tag)&&null!=i&&i.bidData&&(t.tag.bidData=t.tag.bidData||{},t.tag.bidData.vastAdId=i.bidData.vastAdId||""),"pl"==(a=t.tag).type&&a.provider==We.APS&&null!=(n=t.tag.bidData)&&n.amznbid_sp&&(t.tag.dealType=je.PA),pc.onAdLoaded(t),Utils.writeLog(Utils.logLevels.defaultLevel,"AdLoaded:"+t.id+":"+t.asid),C.autoplay,r=S.adLoaded,S.adLoaded=!0,Utils.isiOS()&&C.contentvideo&&C.nativevideo&&(o=Utils.getOSVersion())&&o.major&&("9"==o.major||"8"==o.major||"7"==o.major)&&this.video&&this.video.src&&this.video.addEventListener("webkitendfullscreen",(function(){Q.paused=!0})),t.player.tagData={asid:t.asid,mt:t.player.vt,tagInfo:Qc(t,C,Ta.getBidderName(t.tag)),asCtx:t.tag.asCtx},q("AdReady",t.player.tagData),0!=C.autoplay||pc.isPlaying||(C.showbigplay?Q.bigPlay.style.display="inline":Q.bigPlay.style.display="none",Q.bigPlay.style.position="absolute",Q.bigPlay.style.zIndex=C.maxzindex,Q.bigPlay.onclick=function(){S.divPreloader.style.zIndex="1",y.startAd(),U()}),r||q(as.AdLoaded);case 15:case"end":return e.stop()}var a,s,l,c}),e,this)})))),t.player.on(as.AdDurationChange,(function(){Utils.writeLog(Utils.logLevels.defaultLevel,as.AdDurationChange+":"+t.id+":"+t.asid),q(as.AdDurationChange)})),t.player.on(as.AdStarted,(function(){e(t),Utils.writeLog(Utils.logLevels.defaultLevel,as.AdStarted+":"+t.id+":"+t.asid),S.sentAdStarted||(S.sentAdStarted=!0,q(as.AdStarted))})),t.player.on(as.AdVideoStart,(function(){e(t),Utils.writeLog(Utils.logLevels.defaultLevel,as.AdVideoStart+":"+t.id+":"+t.asid),q(as.AdVideoStart)}));var r=C.podsupport&&t.tag&&"pl"==t.tag.type&&3==t.tag.platform?"on":"once";function h(e){if(t.active){var i=t.tag.playerSettings.prvi/100,n=e.ratio>=i,r=!Q.isPaused()&&!n,o=Q.isPaused()&&n;r?y.pauseAd():o&&!Q.isUserPaused()&&y.resumeAd()}}t.player[r](as.AdImpression,(function(i){e(t);var r=i||{};function a(){var e,a,s,l,c,d="",u="",p="",f=null;S.impCount++;try{if(d=t.vastPlayer.vast.get("ads[0].creatives[0].videoClicks.clickThrough"),t.tag.playerSettings&&t.tag.playerSettings.ops)try{u=decodeURIComponent(t.tag.playerSettings.ops)}catch(t){}t.player&&(p=t.player.video&&t.player.video.src||"",f=t.player.video,c=t.player.adDuration),f&&f.__id&&t.tag.trackingPixel&&t.tag.trackingPixel.length>30&&((new Image).src=t.tag.trackingPixel+"c10&cb="+Date.now()),Q.showPreloader(!1)}catch(t){}1==C.tgt&&S.playerSlot&&(S.playerSlot.style.visibility=""),t.impTime=Date.now();var v=t.tag.type,m=t.tag.platform;C.publisherid==Jr&&t.tag.ismp&&(v="pb",m=1e3);var g=t.tag.cac||{},b=null;b=null!=(e=t.tag.tc)&&e.mn?ba.isSupportedAdSource(t.tag)?g.nFloor:t.tag.floor:g.sCpm;var A=ae({},t.player.mediaFile||{});ti(t.tag)&&null!=(a=i)&&a.width&&i.height&&(A.width=i.width,A.height=i.height),null!=(s=f)&&s.src&&f.videoHeight&&f.videoWidth&&(A.width=f.videoWidth,A.height=f.videoHeight);var w,k={url:ha.isSupportedAdSource(t.tag)||"pl"==t.tag.type?t.tag.fixedTemplate:t.tag.url,type:v,bidCpm:g.sCpm,floorCpm:b,ismp:t.tag.ismp,bidder:Ta.getBidderName(t.tag),provider:t.tag.provider,bidCode:t.tag.tppbid,bidData:t.tag.bidData||{},analytics:n.pba,isMarketplace:t.tag.ismp,pubCpm:g.pCpm,platform:m,mediaInfo:A,papi:t.tag.papi,vast:t.vastPlayer.vast.raw};t.tagInfo={type:k.type,bidCpm:k.bidCpm,floorCpm:k.floorCpm,pubCpm:k.pubCpm,bidder:k.bidder,ismp:k.ismp,platform:k.platform,provider:k.provider},t.podInfo=i,q(as.AdImpression,{asid:t.asid,clickThrough:d,ops:u,videoUrl:p,video:f,mt:t.player.vt,tagInfo:k,podInfo:i,asCtx:t.tag.asCtx}),q(as.AdDurationChange),w=t.tag,S.asStats.setImpression(w.responseId,S.impCount),pi.onAdSourceImpression(w),wc.onImpression(t.player,null==(l=t.player.asTrackingInfo)?void 0:l.params),"js"!=C.preloader.type&&"Image"!=C.preloader.type&&"html"!=C.preloader.type||(Q.gui.style.display="inline"),S.impressionSet=!0,S.activeImpression=!0,t.player.impressionSet=!0,$=0,S.asStats.resetAuctionError(),S.tagRequestCount=0,S.callStartTimeout=C.startmidroll,S.AVcontent&&("content"==C.preloader.type&&(S.diVideoPreloader.style.display="none"),S.AVcontent.pauseAd(),S.AVcontent.style.display="none",S.AVcontent.style.zIndex="1"),Q.bigPlay&&(Q.bigPlay.style.display="none");try{D()||t.sndEnabled||(t.player.adVolume=0,t.player.video&&(t.player.video.volume=0))}catch(t){}setTimeout((function(){F(t)}),10),setTimeout((function(){F(t)}),150),setTimeout((function(){F(t)}),300),t.player.container.style.position="absolute",t.player.container.style.top="0px",t.player.container.style.left="0px",ti(t.tag)&&t.tag.imaMode>0||(t.player.container.style.zIndex=C.maxzindex),C.backgroundcolor&&(t.player.container.style.background=C.backgroundcolor),t.player.container.style.width=0==C.width?"100%":C.width+"px",t.player.container.style.height=0==C.height?"100%":C.height+"px",Q.setPlayer(t.vastPlayer,1!=t.sndEnabled,t);var x=C.skiptimer,_=C.skip,T=t.tag.playerSettings.skipOffset;if(c>0&&!isNaN(c)){var I=t.vastPlayer.vast.get("ads[0].creatives[0].skipoffset.type"),E=t.vastPlayer.vast.get("ads[0].creatives[0].skipoffset.offset");E>0&&!isNaN(E)&&(1==I&&E<100&&(E=c*E/100),E>0&&(E<x||!x||x<=0)&&(x=E,_=!0))}-1===T&&(x=void 0,_=void 0),T>0&&(x=T,_=!0),C.noskiponimaskip&&ti(t.tag)&&r.skipOffset>0||Q.startSkipTimer(_,x,(function(){q(as.AdSkippableStateChange,{asid:t.asid,tagInfo:t.tagInfo})})),S.adDisplayApi?(S.divPreloader.style.opacity="0",S.divPreloader.style.zIndex="0",S.adDisplayApi.hide()):(S.divPreloader.style.zIndex="1",S.divPreloader.style.display="none"),C.hidecontrols||Q.controls(!0);var P=t.vastPlayer.vast.get("ads[0].creatives[0].icons[0]");if(C.vasticonenabled&&P&&Q.setAdIcon(P),C.flashsound||D()||t.sndEnabled||(setTimeout((function(){F(t)}),1),setTimeout((function(){F(t)}),100),t.sndIntervalCounter=0,t.sndInterval=setInterval((function(){if(t.sndIntervalCounter++,t.sndIntervalCounter>8)return clearInterval(t.sndInterval),void(t.sndInterval=0);t.player&&t.player.api&&!D()&&!t.sndEnabled?F(t):(clearInterval(t.sndInterval),t.sndInterval=0)}),250)),W(o,t.asid,{video:t.player.video?t.player.video.src:null,asCtx:t.tag.asCtx}),S.vastCache=0,S.storage.tagCache=null,C.tmf.timing&&(t.sec3remaining=3e3,t.sec10remaining=1e4,t.seccurrent=Date.now(),t.sec3Timer=setTimeout((function(){t.sec3Timer=0,t.player.fireType("sec3"),t.sec3remaining=0}),3e3),t.sec10Timer=setTimeout((function(){t.sec10Timer=0,t.player.fireType("sec10"),t.sec10remaining=0}),1e4)),D()&&(t.player.adVolume=C.autosoundvolume,Q.muted=!1,setTimeout((function(){t.player.adVolume=C.autosoundvolume,Q.muted=!1}),10)),S.mobileControlsTimer&&S.mobileControlsTimer>0&&(clearTimeout(S.mobileControlsTimer),S.mobileControlsTimer=0,S.mobileControlsOn=!1),t.tag.playerSettings){var V=t.tag.playerSettings.vit||2,O=t.tag.playerSettings.vitp||50,R=Date.now();t.vitTimer=setInterval((function(){t.vitTimer>0&&(Utils.getViewabilityPerc()>=O?Date.now()-R>1e3*V+100&&(clearInterval(t.vitTimer),t.vitTimer=0,t.player.fireType("viewableImpression"),y.dispatchEvent("AdViewableImpression",{asid:t.asid})):R=Date.now())}),200),t.tag.playerSettings.prvi>0&&(t.tag.playerSettings.prvi=Math.min(t.tag.playerSettings.prvi,100),t.pauseResumeView=h,Utils.on(h,Utils.ViewabilityChanged))}C.loopvideo&&function(t,e){var i=t,n=!0,r=t.currentSrc;t.addEventListener("ended",(function(){i.videoPlayerElement?(i.canVideoPlay=!0,i.videoPlayerElement.currentTime=-2,i.play()):(C.lastframe||(i.currentTime=0,setTimeout((function(){i.play()}),100)),i.pause(),Q.paused=!0),e.api&&n&&(n=!1,i.currentSrc||(i.src=r),e.api={resumeAd:function(){i.play()},pauseAd:function(){i.pause()},getAdVolume:function(){return i.muted?0:i.volume},setAdVolume:function(t){i.muted=0==t,i.volume=t},getAdRemainingTime:function(){return i.duration-i.currentTime},getAdDuration:function(){return i.duration}},i.addEventListener("pause",(function(){Q.paused=!0})),i.addEventListener("playing",(function(){Q.paused=!1})))}))}(t.player.video,pc.currentMediaPlayer),C.width==!t.player.container.clientWidth&&C.height==!t.player.container.clientHeight||y.resizeAd(C.width,C.height)}if(i=C.podsupport&&i||{},Utils.writeLog(Utils.logLevels.defaultLevel,as.AdImpression+":"+t.id+":"+t.asid),setTimeout((function(){var e;null!=(e=t.player)&&e.redirTrack&&(t.player.redirTrack=void 0)}),1e3),!pc.isAdPlaying(t)){var s=""+S.playing;(new Image).src="https://track1.aniview.com/track?pid="+C.publisherid+"&cid="+C.channelid+"&e=c6&sn=player"+s+"&cb="+Date.now();var l=!1,c=function(){if(!l&&pc.isAdPlaying(t)){l=!0;try{(new Image).src="https://track1.aniview.com/track?pid="+C.publisherid+"&cid="+C.channelid+"&e=c7&sn=player"+s+"&cb="+Date.now(),a()}catch(t){}}};return Utils.writeLog(Utils.logLevels.defaultLevel,"Impression but did not call start:"+t.id+":"+t.asid),"vast"!==t.player.vt&&(t.player.once("AdVideoStart",c),t.player.once("AdStarted",c)),t.player.once("AdDelayed",c),void t.player.pauseAd()}try{a()}catch(t){}})),t.player.on(as.AdVolumeChange,(function(){Utils.writeLog(Utils.logLevels.defaultLevel,as.AdVolumeChange+":"+t.id+":"+t.asid),"function"==typeof y.onAdVolumeChange&&this.impressionSet&&(y.adVolume=this.adVolume,t.vastPlayer&&!t.vastPlayer.skipping&&q(as.AdVolumeChange,{asid:t.asid,tagInfo:t.tagInfo}));try{S.abt||t.muting||D()||t.sndEnabled||!(0==t.impTime&&t.muteCount<2||t.impMuteCount<5&&Date.now()-t.impTime<1e3*C.mutetime)||(t.muteCount++,t.impTime&&t.impMuteCount++,setTimeout((function(){if(!t.muting&&!t.sndEnabled){t.muting=!0;try{t.player.adVolume=0}catch(t){}t.muting=!1}}),1),Utils.writeLog(Utils.logLevels.debug,as.AdVolumeChange+":force mute"))}catch(t){}})),t.player.on(as.AdVideoFirstQuartile,(function(){Utils.writeLog(Utils.logLevels.defaultLevel,as.AdVideoFirstQuartile+":"+t.id+":"+t.asid),q(as.AdVideoFirstQuartile,{asid:t.asid,tagInfo:t.tagInfo,asCtx:t.tag.asCtx}),W(a,t.asid,{asCtx:t.tag.asCtx}),wc.onQuartile()})),t.player.on(as.AdVideoMidpoint,(function(){Utils.writeLog(Utils.logLevels.defaultLevel,as.AdVideoMidpoint+":"+t.id+":"+t.asid),q(as.AdVideoMidpoint,{asid:t.asid,tagInfo:t.tagInfo,asCtx:t.tag.asCtx}),W(s,t.asid,{asCtx:t.tag.asCtx}),wc.onQuartile()})),t.player.on(as.AdVideoThirdQuartile,(function(){Utils.writeLog(Utils.logLevels.defaultLevel,as.AdVideoThirdQuartile+":"+t.id+":"+t.asid),q(as.AdVideoThirdQuartile,{asid:t.asid,tagInfo:t.tagInfo,asCtx:t.tag.asCtx}),W(l,t.asid,{asCtx:t.tag.asCtx}),wc.onQuartile()})),t.player.on(as.AdVideoComplete,(function(){if(t.active){t.complete=!0;var e=!1;Utils.writeLog(Utils.logLevels.defaultLevel,as.AdVideoComplete+":"+t.id+":"+t.asid);var i,n=!0;if(ti(t.tag)&&(n=!C.podsupport||!t.podInfo||t.podInfo.lastPod),W(c,t.asid,{asCtx:t.tag.asCtx}),C.adfoldermode||C.loopvideo||C.lastframe||C.completeonadstopped)return C.adfoldermode&&setTimeout((function(){t.player.video.addEventListener("ended",(function(){q(as.AdVideoComplete,{asid:t.asid,tagInfo:t.tagInfo,asCtx:t.tag.asCtx})}))}),250),void q(as.AdVideoComplete,{asid:t.asid,podInfo:t.podInfo,ignore:C.completeonadstopped,tagInfo:t.tagInfo,asCtx:t.tag.asCtx});if(n&&pc.cleanupPlayer(t),"1"==C.tgt)j(),setTimeout((function(){t.active&&t.player.stopAd()}),50);else if(n)if(M(t),null!=(i=C.endcard)&&i.show){var r=Or(t.vastPlayer.vast,C.endcard);r&&(e=!0,Rr(S.divPreloader,r,(function(e){"click"===e?t.player.fireType("companionClick"):"view"===e&&t.player.fireType("companionCreativeView")})),q("CompanionView",{asid:t.asid,companion:r,hint:as.AdVideoComplete}))}q(as.AdVideoComplete,{asid:t.asid,podInfo:t.podInfo,showCompanion:e,tagInfo:t.tagInfo,asCtx:t.tag.asCtx})}})),t.player.once(as.AdError,(function(e){if(t.active){var n;if(t.active=!1,Utils.writeLog(Utils.logLevels.defaultLevel,"2.AdError:"+t.id+":"+t.asid),W(u,t.asid,{asCtx:t.tag.asCtx}),pc.cleanupPlayer(t),t.player.impressionSet&&(q(as.AdError),"1"==C.tgt))return void j();M(t),(1==(null==(n=t.tag.playerSettings)?void 0:n.dbg)||C.asdbg&&!ti(t.tag))&&function(t,e,n){void 0===t&&(t=""),void 0===e&&(e="log");try{var r=i(n)?JSON.stringify(n):n.toString(),o="".concat("https://plog.aniview.com/plog/debug","?asid=").concat(t,"&e=").concat(e);gn(o,{method:"POST",body:r}).finally((function(){}))}catch(t){}}(t.tag.asid,"AdError",{reason:e||as.AdError,vast:t.vastPlayer.vast.raw})}})),t.player.once(as.AdSkipped,(function(){if(t.active){var e,i=!1,n=!0;if(ti(t.tag)&&(n=!C.podsupport||!t.podInfo||t.podInfo.lastPod),n&&(t.active=!1),Utils.writeLog(Utils.logLevels.defaultLevel,"AdSkipped:"+t.id+":"+t.asid),W(p,t.asid,{asCtx:t.tag.asCtx}),n&&pc.cleanupPlayer(t),t.player.impressionSet&&n&&t.player.stopAd(),"1"==C.tgt&&t.player.impressionSet)j(!0);else if(n)if(M(t),null!=(e=C.endcard)&&e.showOnSkip){var r=Or(t.vastPlayer.vast,C.endcard);r&&(i=!0,Rr(S.divPreloader,r,(function(){})),q("CompanionView",{asid:t.asid,companion:r,hint:as.AdSkipped}))}t.player.impressionSet&&q(as.AdSkipped,{asid:t.asid,showCompanion:i,tagInfo:t.tagInfo,asCtx:t.tag.asCtx})}})),t.player.once(as.AdStopped,(function(){if(t.active){if(t.active=!1,Utils.writeLog(Utils.logLevels.defaultLevel,"AdStopped:"+t.id+":"+t.asid),W(f,t.asid,{asCtx:t.tag.asCtx}),C.lastframe)return;C.completeonadstopped&&t.player.impressionSet&&q(as.AdStopped),pc.cleanupPlayer(t),C.contentplayer&&t.player&&t.player.impressionSet&&!t.complete&&q(as.AdError),"1"==C.tgt&&t.player.impressionSet?j(!0):M(t)}})),t.player.on(as.AdClickThru,(function(e,i,n){q(as.AdClickThru,{asid:t.asid,url:e,tagInfo:t.tagInfo,asCtx:t.tag.asCtx},i,n&&1==C.clickfunc),W(d,t.asid,{asCtx:t.tag.asCtx}),t.vitTimer>0&&(t.player.fireType("viewableImpression"),clearInterval(t.vitTimer),t.vitTimer=0),C.pauseonclick&&y.pauseAd()})),t.player.on(as.AdPaused,(function(){var e;if(t.tag.isDeal&&null!=(e=t.tag.playerSettings)&&e.fply&&(t.fplyCount=t.fplyCount||0,t.fplyCount<2))return t.fplyCount++,void t.player.resumeAd();q(as.AdPaused,{asid:t.asid,tagInfo:t.tagInfo,asCtx:t.tag.asCtx}),Q.paused=!0,C.tmf.timing&&(t.sec3Timer>0&&(t.sec3remaining=Math.max(t.sec3remaining-(Date.now()-t.seccurrent),1),clearTimeout(t.sec3Timer),t.sec3Timer=0),t.sec10Timer>0&&(t.sec10remaining=Math.max(t.sec10remaining-(Date.now()-t.seccurrent),1),clearTimeout(t.sec10Timer),t.sec10Timer=0)),wc.onPaused(t.player.pauseFromApi),t.player.pauseFromApi=!1})),t.player.on(as.AdPlaying,(function(){e(t),q(as.AdPlaying,{asid:t.asid,tagInfo:t.tagInfo,asCtx:t.tag.asCtx}),Q.paused=!1,Q.player&&Q.player===t.vastPlayer&&(Q.player.userPaused=!1),C.tmf.timing&&(t.sec3remaining>0&&0==t.sec3Timer&&(t.sec3Timer=setTimeout((function(){t.sec3Timer=0,t.player.fireType("sec3"),t.sec3remaining=0}),t.sec3remaining)),t.sec10remaining>0&&0==t.sec10Timer&&(t.sec10Timer=setTimeout((function(){t.sec10Timer=0,t.player.fireType("sec10"),t.sec10remaining=0}),t.sec10remaining)),t.seccurrent=Date.now()),wc.onPlay()})),t.player.once(as.AdSkippableStateChange,(function(e){t.active&&("pl"==t.tag.type&&3==t.tag.platform&&(Utils.writeLog(Utils.logLevels.defaultLevel,"2.AdSkippableStateChange:"+t.id+":"+t.asid),this.adSkippableState&&Q.stopSkip()),q(as.AdSkippableStateChange,{asid:t.asid,tagInfo:t.tagInfo,asCtx:t.tag.asCtx}))})),t.player.on(Ns.VPAIDBlocked,(function(){t.active&&(t.active=!1,W(u,t.asid,{asCtx:t.tag.asCtx}),pc.cleanupPlayer(t),t.player.impressionSet&&(q(as.AdError),"1"==C.tgt)?j():M(t))}))},pc._ext.getAdBid=function(){var t,e=0,i=pc.waterfall.requestLimit;S.asStats.setAuctionRun(),null!=(t=C.reward)&&t.enabled&&(S.googleReward=function(t,e,i,n,r){if(!Array.isArray(t))return null;try{for(var o=0;o<t.length;o++){var a;if("AV_REWARD_AS"===(null==(a=t[o])||null==(a=a.playerSettings)?void 0:a.ops)){var s=t.splice(o,1)[0];$c||($c=new td(ga(s),e,i,n,r));break}}}catch(t){}return $c}(S.waterfall.data.tags,C.reward,L(),y,S.wfMgr),S.googleReward&&S.googleReward.initAd());if(C.batchmode&&C.batchmode.size>0){var r=0,o=C.batchmode.minRpm||5,a=C.batchmode.minRankPerc;if(a>0){var s=0;r=S.waterfall.data.tags.reduce((function(t,e){return e.r>0&&s++,t+(e.r||0)}),0),s<(C.batchmode.minRanked||5)&&(r=0)}for(var l=C.batchmode.maxRpm||10,c=0;c<S.waterfall.data.tags.length;c++){var d=S.waterfall.data.tags[c];d.playerSettings=d.playerSettings||{};var u=l;"s2s"!=d.type&&a>0&&r>0&&100*d.r/r<a&&(u=o),d.playerSettings.maxRPM>0&&d.playerSettings.maxRPM<u&&(u=d.playerSettings.maxRPM),d.playerSettings.maxRPM=u}i=Math.min(C.batchmode.size,i)}for(var p=[],f=0;f<S.waterfall.data.tags.length;f++){if((v=S.waterfall.data.tags[f]).type===Ce.PlatformLink&&75==v.platform&&(v.platform=3),pi.initAdSource(S.waterfall.data.tags[f],S.waterfall.data.tpp||{},C.playeropt),S.waterfall.data.tags[f]=ga(S.waterfall.data.tags[f]),(m=S.waterfall.data.tags[f]).wfCycle=S.wfCycle,m.url=m.url||"",ba.isSupportedAdSource(m)&&isNaN(m.playerSettings.maxRPM)&&(m.playerSettings.maxRPM=C.s2srpm>=0?C.s2srpm:10),C.imarpm>0&&m.provider===We.IMA&&(m.playerSettings.maxRPM=C.imarpm),m.avtoken||(m.avtoken=S.avtoken),!(e>=i)&&(S.asStats.initAdSource(m.responseId,m.playerSettings),kl(S,m)&&!pc.isAdDelayedById(m.id))){if(7==m.platform&&"pl"===m.type){if("AOL"!==(C.ctinfo&&C.ctinfo.id&&C.ctinfo.platform?C.ctinfo.platform:""))continue;m.contentId=C.ctinfo.id}if(_l(m,C.ctinfo)){if(Utils.isMobile()&&m&&"string"==typeof m.url&&m.url.indexOf("rocket10.adspirit.net")>0){var h="1";try{if(Utils.isiOS())Utils.getOSVersion().major>=10&&(h="2");else Utils.isAndroid()&&Utils.getChromeVersion()>=53&&(h="2")}catch(t){}if("1"==h)continue}e++,p.push(m)}}}var v;p=function(t,e){var i,n=e.config;if(null==(i=n.imarender)||!i.asid)return n.imarender=null,t;var r,o=ue(t,!0);try{for(o.s();!(r=o.n()).done;){var a,s=r.value;if(s.asid===n.imarender.asid&&null!=(a=s.params)&&a.tagUrl){n.imarender.url=s.params.tagUrl,e.imaRendererAd=s;break}}}catch(t){o.e(t)}finally{o.f()}return e.imaRendererAd?(t=t.filter((function(t){return!ti(t.response)||ti(t.response)&&t.asid===n.imarender.asid})),n.maxp=1,n.imamode=1):n.imarender=void 0,t}(p,S),p=function(t,e,i){if(t>=1&&Date.now()/1e3-t<Vl)return i.filter((function(t){return!ti(t)}));if(Vl=Date.now()/1e3,lt(e)||e<=0)return i;var n=i.reduce((function(t,e){return ti(e)&&t.push(e.asid),t}),[]);if(n.length<=e)return i;var r=[];n.forEach((function(t){Pl.includes(t)||r.push(t)})),r.push.apply(r,Pl);var o=[];Pl.length=0;for(var a=0;a<r.length;a++)n.includes(r[a])&&o.length<e?o.push(r[a]):Pl.push(r[a]);return Pl.push.apply(Pl,o),i.filter((function(t){return!ti(t)||o.includes(t.asid)}))}(C.imainterval,C.maxima,p),p=Ll(C.maxprovider,p),S.storage.incAdReqCount(p.length);for(f=0;f<p.length;f++){var m;ti(m=p[f])&&(S.imaCalls++,Utils.isiOS()&&S.imaCalls>C.imamodecalls&&(C.imamode=1),m.imaMode=C.imamode),S.asStats.setRequest(m.responseId),m.reqCounter=S.asStats.getRequestCounter(m.responseId),L()&&m.trackingParams&&(m.impressionTrackingPixel=L()+"&"+m.trackingParams+"&e=impression&cb="+Date.now(),m.trackingPixel=L()+"&"+m.trackingParams+"&e=");var g="",b="";n.AV_player.waterfall.data.gEvents&&n.AV_player.waterfall.data.gEvents[m.groupId]?(g=L()?L()+"&"+n.AV_player.waterfall.data.gEvents[m.groupId]:n.AV_player.waterfall.data.gEvents[m.groupId],b=m.nasid):(g=n.AV_player.waterfall.data.requestPixel,b=m.asid),m.opt=null,ti(m)&&C.imareqbid||pi.onAdSourceRequest(m,C.playeropt),g&&(ti(m)&&C.imareqbid||pc._pixelReporter.pushRequestOrBidPixel(b,g,!1,pc.waterfall.isPartnerConnection,m.groupId,"request",m)),W("request",b,{floorCpm:m.ac?m.ac.fp||m.ac.c:void 0,asCtx:m.asCtx}),m.index=f,Ta.addAdSource(m)}};var Z=!0;function z(t,e){return new pe((function(r,o){if(S.stopAd)r();else{if(S.wfvifunc=null,S.startAdViTime=0,S.currentAd=0,!S.active)return Utils.writeLog(Utils.logLevels.debug,"Stop requesting new waterfall - not active"),j(!0),Utils.writeLog(Utils.logLevels.debug,"stop waterfall not active"),void r();if(S.reqAdState){var a;Utils.writeLog(Utils.logLevels.debug,"Requesting new waterfall "+S.tagRequestCount);var s=!1,l=C.midrolltime;Z&&0==C.preroll&&C.midrolltime>.1&&C.midrolldelay>0&&(s=!0,l=C.midrolldelay),Z=!1,U();var c=S.impressionSet;if(c){if(S.preroll>0&&S.preroll--,0==S.preroll&&(s=!0,0==C.loop&&"content"!=C.preloader.type))return Utils.writeLog(Utils.logLevels.debug,"stop waterfall preroll done"),void r();S.impressionSet=!1}if(C.maxbidqueue>0){var d=C.maxbidqueue;(C.errorlimit-$<fc||C.maxrun-S.runCount<=hc||C.maximp-S.impCount<=vc)&&(d=0),S.wfMgr.setMaxBidsQueue(d)}if(S.tagRequestCount>C.vastretry||S.runCount>=C.maxrun||S.impCount>=C.maximp){S.preroll>0&&(S.preroll=0),S.tagRequestCount=0,$++,S.asStats.setAuctionError();var u=$>C.errorlimit||S.runCount>=C.maxrun||S.impCount>=C.maximp,p="";if($>C.errorlimit?p="errorlimit":S.runCount>=C.maxrun?p=!pc.waterfall||pc.waterfall.isEmpty?"emptywf":"maxrun":S.impCount>=C.maximp&&(p="maximp"),S.activeImpression||q(as.AdError,{errorlimit:u,reason:p},"1"==C.tgt,C.vpmode),u&&(1!==C.tgt&&((new(Utils.getTopWnd().Image)).src=I+"&"+E+"&e=AV_M8&prbdres="+p+"&cb="+Date.now()),function(){if(!(S.impCount>0)&&S.waterfall&&S.waterfall.data&&S.waterfall.data.trackers&&S.waterfall.data.trackers.length>0)for(var t=0;t<S.waterfall.data.trackers.length;t++)if("supplyError"==S.waterfall.data.trackers[t].e)if(2==S.waterfall.data.trackers[t].t){var e=document.createElement("script");e.src=S.waterfall.data.trackers[t].url;try{S.slotWindow.document.getElementsByTagName("body")[0].appendChild(e)}catch(t){}}else(new Image).src=S.waterfall.data.trackers[t].url}()),"1"==C.tgt){var f=L()||I;return f&&Ga("vpaid",f,null,!0),j(!0),void r()}if(u){var h;S.stopWaterfall=!0;var v,g=!0;if((!C.preloader.type||C.passbackpriority)&&null!=(h=C.passback)&&h.enable)if(0==C.passback.closeButton&&(Q.gui.style.display="none"),0==S.impCount||!C.nopassbackonimp)C.passbackpriority&&(g=!1,S.AVcontent&&S.AVcontent.pauseAd()),S.divPreloader.style.width="100%",S.divPreloader.style.height="100%",S.divPreloader.style.position="absolute",S.divPreloader.style.zIndex=C.maxzindex,S.adDisplayApi?S.divPreloader.style.opacity=1:S.divPreloader.style.display="block",S.isFullScreen&&Q.fullscreenClick(),Utils.loadScriptToIframe(S.divPreloader,C.passback,C.width,C.height,(function(t,e,i,n){switch(t){case"LoadedProvider":S.adDisplayApi=n.api;break;case as.AdImpression:n.creativeType="display",q(t,n);break;case"resize":e>=0&&i>=0?S.adDisplayApi?q("AniviewPassbackResize",{w:e,h:i}):y.resizeAd(e,i):(S.divPreloader.style.opacity=0,S.divPreloader.style.zIndex=0);break;case"content":X();break;case"close":Q.closeClick()}}),C.passback.playOnView,Object.assign({},P,C.passback.config||{},V,{ref1:nd(C.ref1||{},(null==(v=C.passback.config)?void 0:v.ref1)||{}),context:{placement:rd.Outstream,unit:od.Passback}})),Q.controls(!1,C.noxpassback),Q.bigPlay&&(Q.bigPlay.style.display="none");g&&X();var A="maximp";return $>C.errorlimit?A="errorlimit":S.runCount>=C.maxrun&&(A="maxrun"),Utils.writeLog(Utils.logLevels.debug,"stop waterfall "+A),void r()}s=!0}if(!pc.isPlaying&&0==S.preroll&&"content"==C.preloader.type&&(X(),!C.midrolltime))return C.preroll>0&&(S.resetAdRequest=!0),Utils.writeLog(Utils.logLevels.debug,"stop waterfall wait for content end"),void r();if(s&&C.midrolltime>0)"function"==typeof C.midrollfunc?setTimeout((function(){(0,C.midrollfunc)((function(){z(_,!0).then(r).catch(o)}))}),10):S.midrollTimer=setTimeout(S.resumeWf=function(){S.resumeWf=null,z(_,!0).then(r).catch(o)},S.resetmidroll?10:1e3*l);else if(S.resetmidroll=!1,(!C.reqonview||Utils.checkViewabilityRules(C.reqonviewperc||50,C.reqonviewtopdist,(function(){z(_,!0).then(r).catch(o)}),"reqOnView"))&&(!C.reqtabonview||!C.vitab||Utils.checkTabInView((function(){z(_,!0).then(r).catch(o)})))){if(!e&&!c&&1==C.mode&&"function"!=typeof C.waterfall){var w=$*C.vastretry+S.tagRequestCount;if(w>10){var k=1e3*Math.floor(w/10);if(k>T)return T=k,void setTimeout((function(){z(t,!0).then(r).catch(o)}),k)}}S.tagRequestCount++,S.useFlashProxy=!1,S.runCount++;var x=null;if(S.wfCycle++,"1"==C.tgt){if(!S.storage.checkVpaidCache())return void o(-1)}else{var O="&d4="+S.wfCycle+"&d5="+fi(S.startTime)+"&plt="+S.plcmt;Ga("vpaid",L()||I,E+O+"&e=inventoryRequest",!1)}if(q("InventoryRequest"),C.pbjstag&&"object"==typeof C.pbjstag&&"string"==typeof C.pbjstag.vastXml){var R={data:{tags:[{type:"vastxml",vastxml:C.pbjstag.vastXml,tagTimeout:2e4}]}};return setTimeout((function(){H(R,!0).then(r).catch(o)}),1),void(C.pbjstag=void 0)}if(S.useCT&&S.lastCguids&&S.lastCguids.length>0){var D=S.lastCguids.indexOf(C.ctinfo.cguid);(D<0||D>2)&&(S.storage.resetTagCache=!0)}if((0,b.Z)(C.servresponse))setTimeout((function(){H(C.servresponse).then(r).catch(o)}),1);else if(void 0===C.waterfall||"string"==typeof C.waterfall){var M=S.storage.tagCache;if(M)return void setTimeout((function(){H(M).then(r).catch(o)}),1);if("string"!=typeof C.waterfall)return void G(t).then((function(t){return H(t.responseText)})).then(r).catch(o);"//"==C.waterfall.substring(0,2)&&(C.waterfall=Utils.getProtocol()+C.waterfall),N(C.publisherid,(function(t){var e;try{e=JSON.parse(t),S.authTxt=t}catch(t){e={domains:[]}}x=e;for(var i=0;i<e.domains.length;i++){var n=C.waterfall.indexOf(e.domains[i].domain);if(7==n||8==n)return void G(C.waterfall).then((function(t){return H(t.responseText)})).then(r).catch(o)}o()}))}else"function"!=typeof C.waterfall&&"object"!=typeof C.waterfall||N(C.publisherid,(function(t){var e;try{e=JSON.parse(t),S.authTxt=t}catch(t){e={domains:[]}}if(x=e,"function"==typeof C.waterfall)C.waterfall((function(t,i){for(var n=0;n<e.domains.length;n++)if(i==e.domains[n].domain)return void setTimeout((function(){H(t=F(t,e)).then(r).catch(o)}),10);o()}));else{var i=C.waterfall,n=e;if(i.data&&i.data.tags){for(var a=0;a<i.data.tags.length;a++){for(var s=!1,l=0;l<n.domains.length;l++){var c=i.data.tags[a].url.indexOf(n.domains[l].domain);if(7==c||8==c){s=!0;break}}if(s&&(n.key&&n.value||n.keys)){var d=Utils.getUrlParameters(i.data.tags[a].url);if(d&&d[n.key]&&0==d[n.key].indexOf(n.value)||(s=!1),d&&"object"==typeof n.keys)for(var u=0;u<n.keys.length;u++)for(var p in n.keys[u])if(d[p]&&d[p].indexOf(n.keys[u][p])>-1){s=!0;break}}s||(i.data.tags.splice(a,1),a--)}H(i=F(i,e)).then(r).catch(o)}else o()}}))}}else S.reqAdFunc=function(){z(t).then(r).catch(o)}}function F(t,e){if(e){for(var i=0;i<t.data.tags.length;i++){t.data.tags[i].asid=t.data.tags[i].asid||e.asid,t.data.tags[i].clickThroughUrl=t.data.tags[i].clickThroughUrl||"",t.data.tags[i].impressionTrackingPixel="https:"+e.impressionTrackingPixel+"&cb="+Date.now(),t.data.tags[i].price=t.data.tags[i].price||"0",t.data.tags[i].tagTimeout=t.data.tags[i].tagTimeout||"20000",t.data.tags[i].trackingPixel="";var n=S.host||"";t.data.tags[i].impressionTrackingPixel=t.data.tags[i].impressionTrackingPixel.replace("[AV_HOST]",n),t.data.tags[i].impressionTrackingPixel=t.data.tags[i].impressionTrackingPixel.replace("[AV_ASID]",t.data.tags[i].asid),t.data.tags[i].impressionTrackingPixel=t.data.tags[i].impressionTrackingPixel.replace("[AV_CID]",C.channelid);var r=S.macros.AV_SUBID||"";t.data.tags[i].impressionTrackingPixel=t.data.tags[i].impressionTrackingPixel.replace("[AV_SUBID]",r)}return t.data.totalTimeout="20000",t.data.requestPixel="",t}}function B(){return S.consentCallback=null,C.waitforconsent=!1,z(_)}function H(t,e){return new pe((function(r,o){if(S.stopAd)r();else try{if(Y>0){var s;if("string"==typeof t?(t.length<5&&(t="{}"),a=JSON.parse(t)):a=t,a&&"1"==a.blacklisted)return Utils.writeLog(Utils.logLevels.defaultLevel,"Serving blacklisted:"),q(as.AdError,{errorlimit:!0,reason:"blocked"},"1"==C.tgt),void r();void 0!==C.waterfall&&("string"==typeof C.waterfall&&F(a,x),function(t){if("object"==typeof S.macros){void 0===S.macros.AV_USERAGENT&&navigator.userAgent&&(S.macros.AV_USERAGENT=encodeURIComponent(navigator.userAgent));for(var e=0;e<t.data.tags.length;e++)if("string"==typeof t.data.tags[e].url)try{for(var i in S.macros)S.macros.hasOwnProperty(i)&&"AV_"==i.substring(0,3)&&(t.data.tags[e].url=t.data.tags[e].url.replace("["+i+"]",S.macros[i]));t.data.tags[e].url=t.data.tags[e].url.replace("[AV_RANDOM]",Date.now().toString()),t.data.tags[e].url=t.data.tags[e].url.replace("[AV_TIMESTAMP]",Date.now().toString())}catch(t){}}}(a));var l=a;if(S.waterfall=l,C.block&&S.waterfall&&S.waterfall.data&&!l.data.block&&(S.waterfall.data.block=C.block),S.storage.tagCache=e?null:t,S.waterfall&&S.waterfall.data){if(pc._pixelReporter.setData(S.waterfall.data),S.waterfall.data.sd&&(S.sd=S.waterfall.data.sd),"object"==typeof S.waterfall.data.c){var c,d,u,p,f=S.waterfall.data.c;C.geoedgemonitor&&(C.geoedgemonitor.site=C.geoedgemonitor.site||Oe(f.appsitename)),f.post&&(C.postevt=!0),void 0===S.skipEvents&&(S.skipEvents=!!f.sre||!!C.sre),C.postreqpixel=null!=(c=f.prp)?c:C.postreqpixel,C.postbidpixel=null!=(d=f.pbp)?d:C.postbidpixel,C.networkid=f.n;if(Va(f.imaflags)&&!Va(C.setimaflags)&&(C.setimaflags=f.imaflags,!0),Va(f.gplcmt)&&!Va(C.imasetplcmt)&&(C.imasetplcmt=f.gplcmt),!S.checkacfg)try{var h,v=(null==(h=S.waterfall.data.tags)||null==(h=h[0])||null==(h=h.schain)||null==(h=h.nodes)?void 0:h[0].sid)||"";Hc(f.acfg,S,$,v),Hc(f.gcfg,S,$,v)}catch(t){}S.checkacfg=!0;var g=C.openrtb&&C.openrtb.user&&C.openrtb.user.ext&&C.openrtb.user.ext.eids,y=f&&f.ac&&"object"==typeof f.ac.uid&&f.ac.uid||{};Object.assign(y,C.uidproviders||{}),S.device=(null==(u=S.waterfall.data.env)?void 0:u.device)||{},El(y,null==(p=S.device)||null==(p=p.geo)?void 0:p.country),S.isIntentIqUsed=S.isIntentIqUsed&&!!y.avintentiq,S.macros.AV_DNTCHECK||lo.setConsent(!0);var b=!f.gdpr||!C.noeuuid;if(f.gdpr){var A,w=Utils.getCurrentConsent();null!=w&&null!=(A=w.gdpr)&&A.av?lo.setConsent(!0):S.macros.AV_DNTCHECK&&(b=!1)}else lo.setConsent(!0);if(b&&y&&!C.nouserid||g){if(g&&g.length>0){var k={userIdAsEids:g,userId:lo.eidsToUserId(g)};S.eids=lo.mergeIds(S.eids,k)}var _=!1;if(S.isIntentIqUsed)for(var T=0;T<S.waterfall.data.tags.length;T++){var I=S.waterfall.data.tags[T];if(lo.isIntentIqAdSource(I.ismp,I.nid,I.type,S.itiqAll)){_=!0;break}}!_&&y.pwt&&y.pwt.url&&(S.eids=lo.getPwtEids(y.pwt.url)),_&&(lo.initIntentiq(C.uidproviders,C.basejsurl,S.macros),S.openRtb=ae({},S.openRtb,{itiqEids:lo.getIntentIqEids()})),Ta.setUserIdParams(y),S.eids=lo.mergeIds(S.eids,lo.getAVEids(ha.getEids())),S.openRtb=lo.getOrtbEids(S.eids,S.openRtb)}var E,P=f&&f.ac&&"object"==typeof f.ac.rtd&&f.ac.rtd||{};if(Object.assign(P,C.rtdproviders||{}),b&&P&&!C.nouserid)El(P,(null==(E=S.waterfall.data.env)||null==(E=E.device)||null==(E=E.geo)?void 0:E.country)||""),Ta.setRtdParams(P);var V=C.bidderconfig&&C.bidderconfig.currency||f.bc&&f.bc.currency;if(V&&Ta.setCurrency(V),S.softfloor=f.sf||C.softfloor||0,S.gdpr=!!f.gdpr,Utils.checkConsentRetry(S.gdpr,f.ccpa,(function(){S.gdpr&&C.waitforconsent&&(S.stopAd=!0,q(as.AdError,{errorlimit:!0,reason:"noconsent"},"1"==C.tgt))})),S.gdpr&&C.waitforconsent){var O=Utils.getConsent();if(!(O&&O.gdpr&&O.gdpr.consentData))return void(S.consentCallback=function(){B().then(r).catch(o)});if(!S.consentSent)return 1==S.runCount&&(S.runCount=0,S.tagRequestCount=0),S.consentSent=!0,void B().then(r).catch(o)}lo.setId(f.uid);var R=C.ortb2||{};Array.isArray(f.badv)&&(R.badv=f.badv),Array.isArray(f.bcat)&&(R.bcat=f.bcat),C.disableom||C.disablepbom||(R.source=R.source||{},R.source.ext=R.source.ext||{},R.source.ext.omidpn=tc,R.source.ext.omidpv=ec),kr(R)&&!yr(R)&&Ta.setOrtb2Info(R)}kr(S.waterfall.data.adc)&&Wc(S.waterfall.data.adc,S,$);var L=function(t){var e={};if(!i(t)||yr(t))return e;["episode","title","series","season","artist","genre","album","isrc","producer","url","cat","prodq","videoquality","context","contentrating","userrating","qagmediarating","keywords","livestream","sourcerelationship","language","embeddable","data","ext"].forEach((function(i){bc.call(t,i)&&(e[i]=t[i])})),e.keywords&&yc(e.keywords)&&(e.keywords=e.keywords.toString());var n=t.cparam2||t.irisId||t.id||null,r=t.duration,o=parseInt(String(r));return null!=n&&(e.id=n),isNaN(o)||(e.len=o),e}(S.config.ctinfo);if(Ta.setContentInfo(L),L&&(S.isApp?(S.openRtb.app=S.openRtb.app||{},S.openRtb.app.content=ae({},{},S.openRtb.app.content,L)):(S.openRtb.site=S.openRtb.site||{},S.openRtb.site.content=ae({},{},S.openRtb.site.content,L))),i(S.waterfall.data.env)&&i(S.waterfall.data.env.device)){var U=S.waterfall.data.env.device;S.isApp&&(U.ifa=S.macros.AV_AID),U.w=U.w||screen?screen.width:n.innerWidth,U.h=U.h||screen?screen.height:n.innerHeight,Ta.setDevice(U)}}try{if(S.waterfall&&S.waterfall.data&&S.waterfall.data.trackers&&S.waterfall.data.trackers.length>0){var D=S.waterfall.data.trackers;S.inventoryTracker||(D=lo.filterSync(D));for(var M=0;M<D.length;M++){if(!S.inventoryTracker&&("inventory"===D[M].e||"sync"===D[M].e)||"inventoryRequest"==D[M].e){var j=D[M].url.replace(/\[AVC_WIDTH\]/g,C.width).replace(/\[AVC_HEIGHT\]/g,C.height);if(1!=D[M].t&&D[M].t)if(2==D[M].t){(N=document.createElement("script")).src=j,document.body.appendChild(N)}else if(3==D[M].t){var N;(N=document.createElement("iframe")).src=j,document.body.appendChild(N)}else 4==D[M].t&&Utils.sendGA(D[M]);else(new Image).src=j}}}}catch(t){}if(S.inventoryTracker=!0,C.checkmaxpage){var Z;if(kr(C.specialset))try{Object.assign(C,C.specialset)}catch(t){}S.storage.getMaxAdReq()<10&&(null==(Z=S.waterfall)||null==(Z=Z.data)||null==(Z=Z.tags)?void 0:Z.length)>0&&(S.waterfall.data.tags.length=Math.min(S.storage.getMaxAdReq(),S.waterfall.data.tags.length))}var z=function(){var t;(null==(t=S.waterfall)||null==(t=t.data)||null==(t=t.tags)?void 0:t.length)>0?(S.dispatchWaterfallApiEvent=W,pc.setWaterfall(S.waterfall),pc.requestBids(S.vastConfig).then(r).catch(o),S.err500=0):(S.runCount=9999999,o())};if("function"==typeof C.updatewaterfall)try{C.updatewaterfall(S.waterfall.data.tags,S.waterfall.data)}catch(t){}var H=(null==(s=S.waterfall)?void 0:s.data)||{};if(q("WaterfallStart",{tags:H.tags||{},env:H.env||{}}),m(C.updatewaterfallasync))try{return void(0,C.updatewaterfallasync)(S.waterfall.data.tags,z)}catch(t){}z()}else o()}catch(t){0,o()}}))}function G(t){return new pe((function(e,i){if(Y>0){var n,r,o="cb="+Date.now();o=t.indexOf("?")>-1?"&"+o:"?"+o;var a,s,l=S.sd?"&"+S.sd:"",c="";if(S.macros&&!S.gdprset)S.gdprset=!0,(null==(a=S.macros.AV_CONSENT)?void 0:a.length)>20&&Utils.setConsent(S.macros.AV_CONSENT,S.macros.AV_GDPR,S.macros.AV_CGLOBAL),4===(null==(s=S.macros.AV_CCPA)?void 0:s.length)&&Utils.setCCPA(S.macros.AV_CCPA);null!=(n=S.macros)&&n.AV_GPP&&S.macros.AV_GPP_SID&&Utils.setGpp(S.macros.AV_GPP,S.macros.AV_GPP_SID);var d=Utils.getCurrentConsent(),u=S.macros.AV_DNT||Utils.getDnt()||"0";if(d&&d.gdpr&&d.gdpr.success&&d.gdpr.consentData&&(c+="&AV_CONSENT="+d.gdpr.consentData,S.consentSent=!0,u&&"0"!=u||!d.gdpr.gdprApplies||1!=S.macros.AV_DNTCHECK||void 0===d.gdpr.av||(u=d.gdpr.av?0:1)),null!=d&&null!=(r=d.gpp)&&r.gppString){var p=encodeURIComponent((d.gpp.applicableSections||"").toString());c+="&AV_GPP=".concat(d.gpp.gppString,"&AV_GPP_SID=").concat(p)}d&&d.usp&&(c+="&AV_CCPA="+d.usp),c+="&AV_DNT="+u;var f=!!Nt(),h="",v=lo.getId(!0);v&&(h="&AV_C_USER_ID="+v);var m=(C.ctinfo.cguid?"&AV_CGUID="+C.ctinfo.cguid:"")+(C.ctinfo.cguidlist?"&AV_CGUIDLIST="+C.ctinfo.cguidlist:"");S.lastCguids=C.ctinfo.cguidlist?C.ctinfo.cguidlist.split(","):[];var g="&AV_WIDTH="+C.width+"&AV_HEIGHT="+C.height,y="&wfc=".concat(S.wfCycle),b=void 0===S.skipEvents?"":"&sre=".concat(S.skipEvents),A=t+g+c+o+l+h+m+y+b;Utils.request("GET",A,void 0,f,{onload:function(t){e({responseText:t.responseText})},onerror:function(t){i(t.status)}})}else i()}))}}))}function W(t,e,i){var r;"function"==typeof(null==(r=n.AV_player.waterfall)||null==(r=r.data)?void 0:r.onEvent)&&n.AV_player.waterfall.data.onEvent(t,e,i),q("AdEvent",t,e,i)}function H(){var t,e,i,r,o="",a={};if(C.ref1)if("string"==typeof C.ref1&&C.ref1.length>0){e=C.ref1.split("&");for(var s=0;s<e.length;s++){var l=!1;if((i=e[s].split("=")).length>=2)try{if("current_url"!=i[0]&&"AV_URL"!=i[0]||(l=!0),0==i[0].indexOf("AV_DECODED")||(i[1]=decodeURIComponent(i[1]),i[1]=decodeURIComponent(i[1]),l&&(i[1]=Utils.getAmpUrl(i[1])),i[1]=encodeURIComponent(i[1])),a[i[0]]=i[1],l)if((o=i[1])&&o.length>0)"%"!=(c=o.substring(0,1))&&"{"!=c&&"$"!=c&&"["!=c&&"<"!=c||(o="")}catch(t){var c;if("current_url"==i[0]||"AV_URL"==i[0])if((o=i[1])&&o.length>0)"%"!=(c=o.substring(0,1))&&"{"!=c&&"$"!=c&&"["!=c&&"<"!=c||(o="")}}}else if("object"==typeof C.ref1){try{for(var d in C.ref1)try{l=!1;"AV_URL"==d&&"string"==typeof C.ref1[d]&&C.ref1[d].length>0&&(l=!0,"%"!=(c=C.ref1[d].substring(0,1))&&"{"!=c&&"$"!=c&&"["!=c&&"<"!=c||(C.ref1[d]="")),"string"==typeof d&&0==d.indexOf("AV_DECODED")?a[d]=C.ref1[d]:(a[d]=decodeURIComponent(C.ref1[d]),a[d]=decodeURIComponent(a[d]),l&&(a[d]=Utils.getAmpUrl(a[d])),a[d]=encodeURIComponent(a[d]))}catch(t){}}catch(t){}o=a.AV_URL}if(Utils.getProtocol(),a.AV_SECURED="https:"===Utils.getProtocol()?1:0,(C.publisherid===Jr||C.waitforconsent&&"64997fd0362016b0aa065754"===C.publisherid)&&(a.AV_DNTCHECK=1),!o||""==o){var u=a.AV_APPPKGNAME;o=u&&u.length>2?u:encodeURIComponent(Utils.getTrueDomain())}Utils.isAndroid()&&a.AV_APPPKGNAME&&(a.AV_APPSTOREURL=encodeURIComponent("https://play.google.com/store/apps/details?id=")+a.AV_APPPKGNAME);var p,f="";a.AV_LANGUAGE?f=a.AV_LANGUAGE:n.navigator&&(n.navigator.language&&n.navigator.language.length>1?f=n.navigator.language:n.navigator.languages&&n.navigator.languages.length>0&&n.navigator.languages[0]&&(f=n.navigator.languages[0]));if(f&&f.length>1&&(a.AV_LANGUAGE=f.substring(0,2)),C.setutm&&function(t,e){t=t||(0,et.X)();var i=e||{},n=Wt(t,!1);Object.keys(Yc).forEach((function(t){n[t]&&(i["".concat(Yc[t])]=n[t])}))}(Oe(o),a),a.AV_URL=o.substring(0,500),a.AV_PUBLISHERID=C.publisherid,a.AV_CHANNELID=C.channelid,a.tgt=C.tgt,C.pbjstag&&(a.pbjs="1"),a.AV_SUBID=a.AV_SUBID||"",a.AV_SUBID=a.AV_SUBID.substring(0,Math.min(500,a.AV_SUBID.length)),a.AV_CDIM1=a.AV_CDIM1||"",a.AV_CDIM1=a.AV_CDIM1.substring(0,Math.min(500,a.AV_CDIM1.length)),a.AV_CDIM2=a.AV_CDIM2||"",a.AV_CDIM2=a.AV_CDIM2.substring(0,Math.min(500,a.AV_CDIM2.length)),a.AV_CDIM3=a.AV_CDIM3||"",a.AV_CDIM3=a.AV_CDIM3.substring(0,Math.min(500,a.AV_CDIM3.length)),a.AV_ABT=1!=C.tgt?S.abtest:"[AVC_ABT]","string"==typeof C.trackdomain&&(a.TRACK_URL=encodeURIComponent(C.trackdomain.substring(0,500))),AV_player.config.pc&&(a.pce="1",a.npx="1"),void 0!==a.AV_WIDTH&&delete a.AV_WIDTH,void 0!==a.AV_HEIGHT&&delete a.AV_HEIGHT,a.AV_AID||a.AV_IDFA)try{a.AV_AID&&36==a.AV_AID.length||!a.AV_IDFA||36!=a.AV_IDFA.length||(a.AV_AID=a.AV_IDFA),a.AV_IDFA&&36==a.AV_IDFA.length||!a.AV_AID||36!=a.AV_AID.length||(a.AV_IDFA=a.AV_AID),a.AV_AID=a.AV_AID||a.AV_IDFA,a.AV_IDFA=a.AV_IDFA||a.AV_AID}catch(t){}(a.AV_LONGITUDE&&isNaN(1*a.AV_LONGITUDE)&&(a.AV_LONGITUDE=""),a.AV_LATITUDE&&isNaN(1*a.AV_LATITUDE)&&(a.AV_LATITUDE=""),a.AV_DETDOMAIN=Utils.getHostName(a.AV_URL),Utils.getAdPosition(C.slot,C.height)&&(a.AV_DADPOS=Utils.getAdPosition(C.slot,C.height)),a.AV_PLCMT&&delete a.AV_PLCMT,a.AV_OPLACEMENT)||(null!=(p=C.preloader)&&p.enable&&"content"===C.preloader.type&&C.preloader.link||C.advideoslot||C.contentplayer?a.AV_OPLACEMENT="1":C.floating&&C.floating.size>0||C.sticky&&C.sticky.size>0?a.AV_OPLACEMENT="5":"1"==C.templateType&&C.openAnim&&300!=C.width&&250!=C.height&&(a.AV_OPLACEMENT="3"));if(!C.gpid&&!C.noautogpid){var v=Utils.getHostName(a.AV_URL);v&&"undefined"!==v||(v=""),C.gpid="/".concat(C.publisherid,"/").concat(C.tagid||C.channelid,"/").concat(v)}C.tagid&&(a.AV_TAG=C.tagid),C.templateid&&(a.AV_TEMPLATE=C.templateid),C.gpid&&(a.AV_GPID=C.gpid);var m,g=Utils.joinObject(a),y=S.abtest&&!isNaN(S.abtest)?S.abtest+"/":"",A=C.sabtest?"&d35="+C.sabtest:"",w="&d36="+h,k=C.responsive?"&responsive=1":"",x=S.itiqState?"&AV_D20=".concat(lo.getIntentIqStateTracking(S.itiqState)):"",_="&scnt=".concat(S.scnt);(m=C).videooverride=m.videooverride||{},m.disableom&&(So.api=[1,2]),m.videooverride.api=So.api,m.contentplayer&&(So.skip=1,m.videooverride.skip=1),m.videooverride.protocols=So.protocols;var T,P,V=C.disableom?"":"&omv=".concat(ec),O=C.nabtest?"&AV_D65=".concat(C.nabtest):"",R=C.cpversion?"&AV_D66=".concat(C.cpversion):"",L="&clsid=".concat(S.clsid,"&rando=").concat(S.random);function U(t,e){(new(Utils.getTopWnd().Image)).src=I+"&"+E+"&e=AV_M3&prbdsup=1&prbdres="+t+function(t){var e;if("crash"===t.type)return ts;var i=null==(e=t.body)||null==(e=e.message)?void 0:e.toLowerCase();return(0,b.Z)(i)?i.indexOf("network")>0?es:i.indexOf("cpu")>0?is:$a:$a}(e)+"&cb="+Date.now(),q(as.AdError,{errorlimit:!0,reason:"intervention"},"1"==C.tgt)}r=C.httpsrv?"http:":"https:",S.avtoken=Date.now()-1e6*Math.floor(Date.now()/1e6),t=r+"//"+C.adserverdomain+"/api/adserver/tag/"+y+"?"+g+A+w+k+"&sver=5&avtoken="+S.avtoken+x+V+O+R+L+_,function(t){for(var e=a.AV_SUBID||"",i="",n=1;n<=20;n++){var o=a["AV_CDIM"+n];if(o){i+="&cd"+n+"="+(o=o.substring(0,Math.min(500,o.length)))}}i+=function(t){for(var e="",i=86;i<=90;i++){var n=t["AV_D"+i]||"";n&&(e+="&d"+i+"="+(n=n.substring(0,50)))}return e}(a);var s=a.AV_IC||0,l=a.tgt,c=S.abtest||"",d=a.AV_APPNAME||"",u=C.width||"",p=C.height||"",f=a.AV_APPPKGNAME||"",h=Utils.getAdPosition(C.slot,C.height)?"&fv="+Utils.getAdPosition(C.slot,C.height):"",v="https:"===Utils.getProtocol()?"https":"http",m="&stagid="+(C.tagid||"")+"&stplid="+(C.templateid||"");s*=12321;var g=Utils.getHostName(a.AV_URL);S.host=g;var y=S.itiqState?"&d20=".concat(lo.getIntentIqStateTracking(S.itiqState)):"",b=C.nabtest?"&d65=".concat(C.nabtest):"",k=C.cpversion?"&d66=".concat(C.cpversion):"",x=null!=(t=C.ctinfo)&&t.trackParams?"&".concat(C.ctinfo.trackParams):"",_="&scnt=".concat(S.scnt);I=r+"//"+C.trackdomain+"/track?r="+g+"&sn="+e+i+"&ic="+s+"&tgt="+l+"&app="+d+"&wi="+u+"&he="+p+"&test="+c+A+w+"&apppkg="+f+h+"&proto="+v+y+b+k+L+_,E="pid="+a.AV_PUBLISHERID+"&cid="+a.AV_CHANNELID+m+x}(),(C.isplayer||C.contentplayer)&&Utils.isIframeInIframe()&&rs(n.parent,U),rs(n,U),a.AV_WIDTH=0===C.width?300:C.width,a.AV_HEIGHT=0==C.height?250:C.height,S.macros=a,S.isApp=!!S.macros.AV_APPPKGNAME;try{if(S.isApp){var D,M=ae({id:S.macros.AV_APPPKGNAME,bundle:S.macros.AV_APPPKGNAME},null==(D=C.openrtb)?void 0:D.app);S.macros.AV_APPSTOREURL&&(M.storeurl=S.macros.AV_APPSTOREURL),S.macros.AV_APPNAME&&(M.name=S.macros.AV_APPNAME),Ta.setAppInfo(M),S.openRtb.app=M}else{var j;if(null!=(j=S.macros)&&j.AV_URL){var F=decodeURIComponent(S.macros.AV_URL);if(P=(T=F).split("//")[0],Ka.includes(P)&&Bt(T)){var N,B=ae({page:F,domain:Bt(F)},null==(N=C.openrtb)?void 0:N.site);Ta.setSiteInfo(B),S.openRtb.site=B}}}}catch(t){}return C.ctinfo=C.ctinfo||{},(C.ctinfo.duration||a.AV_DURATION)&&(C.ctinfo.duration=C.ctinfo.duration||a.AV_DURATION),(C.ctinfo.title||a.AV_TITLE)&&(C.ctinfo.title=C.ctinfo.title||a.AV_TITLE),(C.ctinfo.keywords||a.AV_CKEYWORDS)&&(C.ctinfo.keywords=C.ctinfo.keywords||a.AV_CKEYWORDS),(C.ctinfo.id||a.AV_CONTENTID)&&(C.ctinfo.id=C.ctinfo.id||a.AV_CONTENTID),(C.ctinfo.url||a.AV_VIDEOURL)&&(C.ctinfo.url=C.ctinfo.url||a.AV_VIDEOURL||""),Ti(S),t}function G(){if(!S.inventorySet){S.inventorySet=!0,C.pbjstag&&!1===C.pbjstag.inventory||C.noinventory||((new Image).src=I+"&"+E+"&e=inventory&vi="+Utils.getViewabilityPerc()+"&plt="+S.plcmt+"&cb="+Date.now()),De({track:[I.replace("sn","s_n")+"&"+E+"&e=AV_M3&prbdsup=1&prbdres=BLK_REASON&sn=BLK_ASID"]});Utils.on((function t(e){e.ratio>=C.viewableinventoryperc/100&&(Ga("vpaid",L()||I,E+"&e=AV_M49",!1),Utils.off(t,Utils.ViewabilityChanged))}),Utils.ViewabilityChanged),setTimeout((function(){q("Inventory",{version:h})}),1),pc.requestAdUnits().catch(B)}}pc._ext.AV_requestAd=function(t){return S.wfCycle>0&&q("WaterfallEnd"),z(_,t).catch(B)};var K=!1;pc._ext.AV_playContent=X;var J=!1;function X(t){var e;if(!(S.stopAd||S.activeImpression||0==C.nativevideo||J)&&null!=(e=C.preloader)&&e.enable&&"content"==C.preloader.type&&S.active&&(!(S.preroll>0)||t))if(C.autoplay&&!C.preloader.apiRequest||0!=C.preloader.autoplay){if(!(C.preloader.playOnView&&(S.onContentViewChanged||(S.onContentViewChanged=function(t){if(t){var e;if(null!=(e=pc.currentMediaPlayer)&&e.impressionSet)return;S.playContent?S.AVcontent.userPause||y.resumeContent(!0):X()}else S.playContent&&C.preloader.pauseOnUnseen&&y.pauseContent(!0)}),!S.playContent&&Utils.getViewabilityPerc()<(C.preloader.playOnViewPerc||50)))){C.preloader.nativeVideo,w&&A||k&&!(A&&Utils.getChromeVersion()>=53)||C.preloader.imageVideo;if(C.nonnativecontent&&!0,S.playContent){if(!(Q.player===S.AVcontent)){!D()&&S.AVcontent.volume>0&&(S.AVcontent.volume=0,S.AVcontent.muted=!0,Q.muted=!0,S.AVcontent.setAttribute("muted",!0));var i=!(S.AVcontent.volume>0&&!S.AVcontent.muted);Q.setPlayer(S.AVcontent,i)}Q.controls(!C.hidecontrols&&(!C.hidemobilecontrols&&Utils.isMobile()||S.mobileControlsOn||!Utils.isMobile())),S.AVcontent.style.display="block","content"==n.AV_player.config.preloader.type&&0==n.AV_player.config.autoplay&&"string"==typeof n.AV_player.config.preloader.poster&&n.AV_player.config.preloader.poster.length>10||(n.AV_player.divPreloader.style.zIndex="0"),S.AVcontent.style.zIndex="0",C.autoplay?("content"==C.preloader.type&&(S.diVideoPreloader.style.display="block"),S.AVcontent.resumeAd()):(C.showbigplay&&(Q.bigPlay.style.display="inline"),Q.bigPlay.style.position="absolute",Q.bigPlay.style.zIndex=C.maxzindex,Q.controls(!1),Q.bigPlay.onclick=function(){C.slot.querySelector("#imgpreloader").style.display="none",C.autoplay=!0,Q.bigPlay.style.display="none","content"==C.preloader.type&&(S.diVideoPreloader.style.display="block"),S.AVcontent.resumeAd(!0),Q.controls(!C.hidecontrols&&(!C.hidemobilecontrols&&Utils.isMobile()||S.mobileControlsOn||!Utils.isMobile())),U()})}else{var r,o,a=!0;S.playContent=!0,S.AVcontent=C.slot.querySelector("#AVcontent"),S.AVcontent.asid="Content",S.AVcontent.onvolumechange=function(){Utils.isiOS()||(S.AVcontent.volume>1e-6?S.AVcontent.muted=!1:S.AVcontent.muted=!0)},r=function(){var t;S.active&&!S.activeImpression&&(a=!1,setTimeout((function(){if(!a){var t=!(S.AVcontent.volume>0&&!S.AVcontent.muted);Q.setPlayer(S.AVcontent,t),C.hidecontrols||Q.controls(!0),S.divPreloader.style.zIndex="0",S.AVcontent.style.zIndex="0",S.AVcontent.play()}}),300),(t=n.AV_player.AVcontent.src)&&(t.indexOf("aniview.")>-1||t.indexOf("ani-view.")),n.AV_player.contentPixel&&n.AV_player.AVcontent.currentTime<2&&(n.AV_player.contentPixel=!1,q("ContentImpression",t)))},o=function(){a=!0,S.AVcontent.pause()},function(){S.AVcontent.muted=!S.AVcontent.muted,S.AVcontent.muted},S.AVcontent.volume=D()?1:0,S.AVcontent.pauseAd=function(t){o(),S.contentPaused||(S.contentPaused=!0,q("ContentPaused"))},S.AVcontent.resumeAd=function(t){S.AVcontent.userPaused||S.pauseContent&&!t||(S.pauseContent=!1,Q.showPreloader(!1),S.AVcontent.src||s(),r(),S.AVcontent.style.display="block",S.contentPaused&&(S.contentPaused=!1,q("ContentPlaying")))},S.AVcontent.addEventListener("timeupdate",(function(){try{S.slotWindow.document.fullscreenElement!==S.AVcontent||J||(J=!0,S.AVcontent.pauseAd(),S.slotWindow.document.exitFullscreen())}catch(t){}if(S.AVcontent.adDuration=S.AVcontent.duration,S.AVcontent.adRemainingTime=S.AVcontent.duration-S.AVcontent.currentTime,S.AVcontent.adRemainingTime<1&&0==S.contentPixel){if(q("ContentComplete"),S.AVcontent.volume=0,Q.player===S.AVcontent&&(Q.muted=!0),D()?(S.AVcontent.volume=1,S.AVcontent.removeAttribute("muted"),Q.muted=!1):S.AVcontent.setAttribute("muted",!0),!C.loop)return S.active=!1,S.contentInterval&&clearInterval(S.contentInterval),S.contentInterval=0,S.contentPixel=!0,void S.AVcontent.pauseAd(!0);if(S.AVcontent.currentTime=0,S.contentPixel=!0,0,"function"==typeof S.AVcontent.init&&S.AVcontent.init(C.preloader.fullframe),$<=C.errorlimit&&(C.preroll>0&&0==C.midrolltime&&O(),S.preroll>0&&!S.stopWaterfall))return Q.showPreloader(!0),S.AVcontent.pauseAd(!0),S.AVcontent.style.display="none",void(S.AVcontent.src=void 0===S.vidPreloaders?C.preloader.link:S.vidPreloaders.getPreloader().url);Q.player===S.AVcontent&&Q.playPauseClick(),s(),setTimeout((function(){r()}),1e3),C.postroll||C.loop&&0==S.preroll&&setTimeout((function(){}),100)}}));var s=function(){if(C.preloader.link,void 0===S.vidPreloaders)"function"==typeof S.AVcontent.init&&S.AVcontent.init(C.preloader.fullframe),S.AVcontent.src=C.preloader.link;else{var t=S.vidPreloaders.getPreloader();"function"==typeof S.AVcontent.init&&S.AVcontent.init(C.preloader.fullframe),S.AVcontent.src=t.url,S.diVideoPreloader.onclick=function(){C.autoplay?(q("BannerClick"),C.hidemobilecontrols&&!S.mobileControlsOn?(S.mobileControlsOn=!0,Q.controls(!0),S.mobileControlsTimer=setTimeout((function(){S.mobileControlsOn=!1,S.mobileControlsTimer=0,Q.controls(!1)}),1e3*C.mobilecontrolsdelay)):(""!=C.preloader.clickthrough&&""!=t.clickthrough&&n.open(t.clickthrough,"blank"),q("ContentClick",{src:S.diVideoPreloader.src,currentTime:S.diVideoPreloader.currentTime}))):Q.bigPlay.onclick()}}S.AVcontent.load(),D()?(S.AVcontent.volume=1,S.AVcontent.muted=!1,Q.muted=!1,S.AVcontent.removeAttribute("muted")):S.AVcontent.setAttribute("muted",!0),S.AVcontent.ready=!0;var e=!(S.AVcontent.volume>0&&!S.AVcontent.muted);Q.setPlayer(S.AVcontent,e),Q.controls(!C.hidecontrols&&(!C.hidemobilecontrols&&Utils.isMobile()||S.mobileControlsOn||!Utils.isMobile())),"content"==n.AV_player.config.preloader.type&&0==n.AV_player.config.autoplay&&"string"==typeof n.AV_player.config.preloader.poster&&n.AV_player.config.preloader.poster.length>10||(n.AV_player.divPreloader.style.zIndex="0"),S.AVcontent.style.zIndex="0",C.autoplay?S.pauseContent||r():Q.controls(!1)};S.AVcontent.style.display="block",S.AVcontent.style.zIndex="0",s()}}}else Q.setPlayer({asid:"Content",ready:!0,resumeAd:function(){X(),Q.showPreloader(!1)}},!0)}var Q,Y=9999,$=0;v&&v.environmentVars&&v.environmentVars.debug&&function(t){throw new TypeError('"'+t+'" is read-only')}("debugPixel"),function(e){var o,a,s,l,c={closePixelSent:!1,hd:!1,vastretry:0,errorlimit:5,maximp:9999,maxrun:9999,maxcrun:9999,tgt:"0",delayedads:!0,bidswaittimeout:2e3,bidsrequesttimeout:7e3,postbidpixel:!0,vpaidpriority:"js",format:"all",floatstate:!1,cdnurl:Utils.httpsReplace("http://data1.aniview.com/"),adserverdomain:"go1.aniview.com",autoplay:!0,autoplayloop:!0,muted:!0,share:!1,soundbutton:!0,pausebutton:!0,closebutton:!1,closeevent:!1,fullscreen:!1,phone:"",logo:!0,ref1:"",showbigplay:!0,backgroundcolor:"#000",timelinemode:"overlay",adscontrolpositioning:"distributed",hidecontrols:!0,hidemobilecontrols:!1,mobilecontrolsdelay:5,basejsurl:"https://player.aniview.com/script/6.1/",ombasejsurl:"https://player.aniview.com/script/6.1/",preroll:0,midroll:!0,midrolltime:0,midrolldelay:0,pc:!0,maxp:Utils.isiOS()?2:Utils.isAndroid()?3:5,autosound:!1,autosounddetect:!1,autosoundvolume:.75,startaddelay:3,startmidroll:0,startdelay:0,mutetime:1.5,clickfunc:!1,tm:"",tmf:{},replayfunc:null,nativevideo:!0,customcss:"",prerolltimeout:0,logoclick:!1,autosdk4:!1,nlruntime:120,showpreloader:!1,startadvitimeout:.5,vpaidfreq:1,postevt:!1,antihjck:!1,ctinfo:{},minbti:20,tagcache:25,maxzindex:"99999",imaiosskip:!0,imaplayer:"aniview/html5",responsive:!0,podsupport:!0,podskipall:!1,pricegranularity:"medium",disableom:!1,playeropt:{},s2srpm:0,imarpm:0,defaulthcpm:void 0,maxima:0,vpm:1,imavpm:1,imainterval:0,viewableinventoryperc:50,imamodecalls:20,imareqbid:!0,imasetplcmt:!0,setimaflags:!0,synctopics:!0,preloader:{type:null,link:null,clickthrough:null,poster:"",fullframe:!1,random:!0}};for(var d in S=n.pl=n.AV_player={wfMgr:pc,floorMaps:ze,active:!0,currentAd:0,playing:-1,readyToPlay:[],vastCache:10,advertisements:[],standbyTime:1e3,waterfall:void 0,player:[],players:[],mode:-1,vastretry:0,tagRequestCount:0,preroll:0,midrolltime:0,midrollTimer:0,postroll:!1,slotWindow:null,adLoaded:!1,inventorySet:!1,impressionSet:!1,useFlashProxy:!1,contentPixel:!0,contentPaused:!0,startTimer:0,callStartTimeout:0,callStartTimer:0,err500:0,impCount:0,runCount:0,crunCount:0,adStoppedTimeout:3e3,asStats:mc,thePlayer:y,wfPause:!1,reqAdState:!0,openRtb:{},startTime:Date.now(),wfCycle:0,skipEvents:void 0,imaCalls:0,vastConfig:{vpaidPriority:"js",swf:!0,js:!0,html5:!0},config:e},C=n.cnf=S.config,pc.setState(S),S.config)S.config.hasOwnProperty(d)&&"environmentvars"!=(l=d.toLowerCase())&&(c[l]=S.config[d]);for(var d in C.environmentVars)C.environmentVars.hasOwnProperty(d)&&(l=d.toLowerCase(),c[l]=C.environmentVars[d],"true"==c[l]&&(c[l]=!0),"false"==c[l]&&(c[l]=!1));function u(t,e){"string"==typeof t&&(t=t.trim());var i=Utils.getUrlParameters(t,e);for(var n in i)i.hasOwnProperty(n)&&("AV_PUBLISHERID"==n?c.publisherid=i[n]:"AV_CHANNELID"==n?c.channelid=i[n]:("true"==i[n]&&(i[n]=!0),"false"==i[n]&&(i[n]=!1),c[n]=i[n],n&&"AV_"==n.substring(0,3)&&(c.ref1=c.ref1+n+"="+encodeURIComponent(i[n])+"&")))}if(u(),e.creativeData&&e.creativeData.AdParameters&&u(e.creativeData.AdParameters,!0),S.vastConfig.timeout=c.bidsrequesttimeout,S.vastConfig.vpaidPriority=c.vpaidpriority,1==c.preroll?c.preroll=1:0==c.preroll&&(c.preroll=0),1==c.postroll?c.postroll=1:0==c.postroll&&(c.postroll=0),0==c.preroll&&0==c.midrolltime&&(c.midrolltime=.1),(0,b.Z)(c.badv)&&c.badv.length>4&&!c.block)try{var p=decodeURIComponent(c.badv).split(",");p.length>0&&(c.block={script:{list:p},vast:{list:p}})}catch(t){}(null==(o=c.badvlist)||null==(o=o.list)?void 0:o.length)>0&&De(c.badvlist),Utils.isiOS()&&c.publisherid!==Kr&&(c.uidproviders=c.uidproviders||{},c.uidproviders.avintentiq=c.uidproviders.avintentiq||{partner:to},c.uidproviders["33acrossId"]=c.uidproviders["33acrossId"]||{pid:"0015a00002egIVcAAM"}),void 0===c.position&&(c.position=c.slot.id),c.maxp=Math.max(1,Math.min(8,c.maxp)),Utils.getTrueDomain(),function(t){var e=Utils.getTrueDomain(),i="__av_debug_config";if(e&&e.indexOf("av_debug=10")>-1){t.loglevel=10;var n=(0,Ot.Z)();try{var r=n[i];if(kr(r)||(r=JSON.parse(localStorage.getItem(i)||null)),!kr(r)){var o=(Wt(e,!1)||{})[i]||null;o&&(r=JSON.parse(o))}kr(r)&&Object.assign(t,r)}catch(t){}}}(c),Utils.logLevel=c.loglevel,i(c.slot)&&i(c.slot.ownerDocument)?S.slotWindow=t(c.slot):i(c.videoSlot)&&i(c.videoSlot.ownerDocument)?S.slotWindow=t(c.videoSlot):"http:"==location.protocol||"https:"==location.protocol?S.slotWindow=n:(S.slotWindow=Utils.getTopWindow(),S.slotWindow||(S.slotWindow=n)),c.format&&("json"==c.format&&(c.format="all"),"all"!==c.format&&(-1==c.format.indexOf("js")&&(n.AV_player.vastConfig.js=!1),-1==c.format.indexOf("swf")&&(n.AV_player.vastConfig.swf=!1),-1==c.format.indexOf("html5")&&(n.AV_player.vastConfig.html5=!1))),S.storage=new Xc(S,c);var f=c.adlabel;!f||null!==f.text&&""!==f.text||(f.text="-Advertisement-");var h,v=c.closebuttonstyle,m="default";if(c.closebutton&&v&&("object"!=typeof v&&(v=c.closebuttonstyle={}),"string"!=typeof v.position&&(v.position=m),v.position=v.position.toLowerCase(),v.position===m&&(v.position=v.outside?"top-right":"top-left"),"number"!=typeof v.overlayMargin&&(v.overlayMargin=30)),(c.lastframe||c.loopvideo)&&(c.mode=-1,c.loop=!1,c.skip=!1),c.vastretry>5&&(c.vastretry=5),1==c.mode&&(c.errorlimit=99),c.loop&&-1==c.mode&&(c.mode=0),null!=(a=c.preloader)&&a.enable&&c.preloader.type){var g=c.preloader.type.toLowerCase();"image"==g?g="Image":"content"!=g&&"js"!=g&&"holder"!=g&&"html"!=g&&(g=null),c.preloader.type=g}if("content"==c.preloader.type&&"object"==typeof c.preloader.link&&"string"==typeof c.preloader.link[0]){S.vidPreloaders={current:0,random:!0,preloaders:[],addPreloader:function(t){this.preloaders.push(t)},getPreloader:function(){return 0==this.preloaders.length?{url:"",clickthrough:""}:(t=this.random?Math.floor(Math.random()*this.preloaders.length):this.current,this.current++,this.current>=this.preloaders.length&&(this.current=0),this.preloaders[t]);var t}},S.vidPreloaders.random=c.preloader.random;for(var A=0;A<c.preloader.link.length;A++){var w={url:c.preloader.link[A],clickthrough:c.preloader.clickthrough.length>A?c.preloader.clickthrough[A]:""};S.vidPreloaders.addPreloader(w)}}if(""==c.preloader.link&&(c.preloader.type=null),"content"==c.preloader.type&&((h=c.preloader).poster||(h.poster="")),void 0!==c.waterfall&&(c.tgt=2),"1"==c.tgt&&(c.synctopics=!1,c.autoplay=!1,c.logo=!1,5==c.maxp&&(c.maxp=2),3==c.startaddelay&&(c.startaddelay=.1),(!c.width||c.width<=0||isNaN(c.width))&&(c.slot&&c.slot.clientWidth>1?c.width=c.slot.clientWidth:c.videoslot&&c.videoslot.clientWidth>1?c.width=c.videoslot.clientWidth:c.AV_WIDTH>0&&(c.width=c.AV_WIDTH)),(!c.height||c.height<=0||isNaN(c.height))&&(c.slot&&c.slot.clientHeight>0?c.height=c.slot.clientHeight:c.videoSlot&&c.videoSlot.clientHeight>0?c.height=c.videoSlot.clientHeight:c.AV_HEIGHT>0&&(c.height=c.AV_HEIGHT)),c.width>50&&c.height>30||!isNaN(c.AV_WIDTH)&&!isNaN(c.AV_HEIGHT)&&c.AV_HEIGHT>=c.height&&c.AV_WIDTH>=c.width&&(c.width=c.AV_WIDTH,c.height=c.AV_HEIGHT),c.podsupport=!1),Number(c.servm)>0&&(0,b.Z)(c.servresponse))try{c.servresponse=decodeURIComponent(c.servresponse).trim(),c.servresponse||(c.servresponse=null)}catch(t){c.servresponse=null}if(c.width=Math.floor(c.width),c.height=Math.floor(c.height),c.tmf.vpaid=""==c.tm||c.tm.indexOf("v")>-1,c.tmf.reqbid=""==c.tm||c.tm.indexOf("r")>-1,c.tmf.adcontent=""==c.tm||c.tm.indexOf("c")>-1,c.tmf.timing=""==c.tm||c.tm.indexOf("t")>-1,c.wl&&!c.customlogo){var k,x="";c.customlogo={},c.customlogo.link=c.basejsurl+"wl/"+c.wl+"/logo.png",c["wl.ltxt"]&&(x=c["wl.ltxt"]),"vi"==c.wl&&(k="https://www.vi.ai"),c["wl.llnk"]&&(k=c["wl.llnk"]),c.customlogo.clickthrough=k,c.customlogo.text=x}if(c.adserverdomain&&"go1.aniview.com"!=c.adserverdomain&&c.wl){var _=c.adserverdomain.indexOf(".");if(_>-1){var T=c.adserverdomain.substring(0,_),E=c.adserverdomain.substring(_,100);c.trackdomain=c.trackdomain||T+"t"+E,c.keydomain=c.keydomain||T+"k"+E,c.adddomain=c.adddomain||T+"a"+E,c.cdnurl1=c.cdnurl1||Utils.getProtocol()+"//"+T+"d"+E+"/"}}c.adddomain=c.adddomain||"add1.aniview.com",c.keydomain=c.keydomain||"cdn1.aniview.com",c.trackdomain=c.trackdomain||"track1.aniview.com",fd(c),S.baseJsUrl=c.basejsurl,S.callStartTimeout=c.startdelay,Utils.isMobile()||(c.hidemobilecontrols=!1),S.config=c,(C=n.cnf=c).inappsdk&&(C.maxp=1,C.maxbidqueue=0),pc.setConfig(C),pc.monitor(),C.advideoslot&&(C.contentslot=C.advideoslot.parentNode,Utils.vcmgr.init(C.advideoslot),C.maxp=1,Utils.writeLog(Utils.logLevels.defaultLevel,"Video element passed from content player. autosound:"+C.autosound)),"1"==C.usevslot&&(C.maxp=1),C.contentplayer&&(C.imaplayer="avcplayer/html5",C.slot&&C.slot.parentNode&&(C.slot.parentNode.av_asStats||(C.slot.parentNode.av_asStats=S.asStats),S.asStats=C.slot.parentNode.av_asStats),C.showpreloader=!1,C.contentadscontainer&&C.contentadscontainer.parentNode&&C.contentadscontainer.parentNode.parentNode&&"nonl-container"==C.contentadscontainer.parentNode.parentNode.className&&(S.nlc=C.contentadscontainer.parentNode.parentNode,S.nlc.style.visibility="hidden")),ie(S,C.startvolume),C.disablewebapipatch&&(n.disableWebApiPatch=!0),S.asStats.init(c,S.storage,S.startTime),Utils.init(S.slotWindow,C.vitab,C.floatpos,C.width,C.height,C.isamp,C.ifrvi),C.antihjck&&Utils.initScrollIntoViewHandler(S.slotWindow,C.slot),C.isamp&&Utils.ampStubFix(n);var R,U,D=!0;if(Utils.getConsent((function(t,e){Ta.setGdpr(t),D||(S.storage.resetTagCache=!0),"function"==typeof S.consentCallback&&S.consentCallback()}),void 0,(function(t,e){e&&Ta.setGpp(t)})),D=!1,!C.autosounddetect||Utils.isMobile()&&!Utils.isAndroid()||(R=function(t){C.autosound=!0,C.imamuted=!1,ie(S,C.startvolume)},U=0,_c((function(t,e){if(t)R(!0);else try{parent.document.addEventListener("click",(function t(){_c((function(e,i){e&&(parent.document.removeEventListener("click",t),R(!0))}),!0),++U>5&&parent.document.removeEventListener("click",t)}))}catch(t){}}),!0)),S.abtest=C.abtest,isNaN(S.abtest)){var M=Math.floor(30*Math.random());S.abtest=M>4||0==M?"":""+M}var q,j,F=(null==(s=location)?void 0:s.host)||"";if([Xr,Jr,Kr].indexOf(C.publisherid)>-1&&(C.optimizeui=!0),C.publisherid==Jr){C.forceap=!0;var N=F.indexOf("jpost.com");N>=0&&N<30&&(C.imamode=1)}(F.indexOf("pagesix.com")>-1||F.indexOf("nypost.com")>-1)&&(C.imamode=1,C.maxprovider=2),C.forceap?(C.nativevideo=!0,C.nativetest=!0):Utils.isMobile()&&(S.storage.autoPlay?(C.nativevideo=!0,C.nativetest=!0):(C.nativevideo=!0,_c((function(t,e){t&&!C.forceimageplayer?(C.nativevideo=!0,C.nativetest=!0,S.storage.autoPlay=!0):e&&r.e(172).then(r.bind(r,7984)).then((function(t){S.imagePlayer=t.default,C.nativevideo=!1})).catch((function(t){Utils.writeLog(Utils.logLevels.debug,"failed to load image player",t)}))}),!1))),(C.forcenewcdn||!C.cdnurl1&&"add1.aniview.com"===C.adddomain&&"cdn1.aniview.com"===C.keydomain)&&(C.newcdn=!0),n.addEventListener("unload",(function(){var t=L()||I;t&&Ga("vpaid",t,null,!0)}),!1),C.floor&&pi.setPlayerFloor(C.floor),S.itiqState=lo.checkIntentIqTraffic(C),S.itiqState===eo.ACTIVE&&(S.isIntentIqUsed=!0,S.itiqAll=C.uidproviders.avintentiq.all),S.clsid=C.clsid||(q=(new Date).getTime(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=(q+16*Math.random())%16|0;return q=Math.floor(q/16),("x"==t?e:3&e|8).toString(16)}))),S.random=function(t,e,i){t=t>=0?t:0,e=e>0?e:1;var n=Math.random()*e+t;return i&&(n=Math.round(n)),n}(1,100,!0),S.scnt=function(t){var e=1;try{e=Number(sessionStorage.getItem(t))||0,e=isNaN(e)?1:e+1,sessionStorage.setItem(t,e.toString())}catch(t){}return e}("av_"+C.channelid),O(),Ta.setPlayer(S),0!=C.tgt||C.nopoptdef||"59188e64073ef43d36464356"==C.publisherid||(C.playeropt=C.playeropt||{},C.playeropt.pstv=C.playeropt.pstv||31,C.playeropt.istv=C.playeropt.istv||36,void 0===C.playeropt.sortByDur&&(C.playeropt.sortByDur=!0)),wc.init(C.playeropt),(j=C.preload)&&((j.ima||j.all)&&_r("https://imasdk.googleapis.com/js/sdkloader/ima3.js"),(j.prebid||j.all)&&r.e(814).then(r.bind(r,1766))),C.geoedgemonitor&&Gs.initGEOEdge(C.geoedgemonitor),S.initPromise=new pe((function(t){S.initResolve=t}));var B,Z=function(t){var e=t.width,i=t.height,n=(t.sticky||{}).size;return n?{width:n*e,height:n*i}:null}(B=C)||function(t){var e=t.width,i=t.height,n=t.floating,r=void 0===n?{}:n,o=r.width,a=r.height,s=r.size;return s?r.resize?{width:1===s?o||e:s*e,height:1===s?a||i:s*i}:{width:e,height:i}:null}(B);P={position:C.position,publisherId:C.publisherid,channelId:C.channelid,adServerDomain:C.adserverdomain,abTest:C.abtest,sabTest:C.sabtest,nabTest:C.nabtest},V={cpVersion:C.cpversion,width:C.width,height:C.height,tagId:C.tagid,templateId:C.templateid},!Z||Z.width===C.width&&Z.height===C.height||(V.sizeConfig=[{width:C.width,height:C.height},{width:Math.floor(Z.width),height:Math.floor(Z.height)}])}(v);var tt=S.storage.canPlayerLoad()&&function(t,e){if(1!=e)return!0;var i=0,n=t;try{for(;i<30;){if(i++,"av-container"===(n=n.parentNode).id)return!n[ed];if("BODY"===n.nodeName){var r=n.ownerDocument,o=r.defaultView||r.parentWindow;if(!o.frameElement)return!0;n=o.frameElement}}}catch(t){}return!0}(C.slot,C.tgt);if(S.shouldSync=!(C.maxpagereq>0||C.maxpagerun>0||C.synconce)||S.storage.isFirstLoad(),tt&&0!=S.storage.getMaxAdReq()){var nt=!1;!function(t,i){if(t&&t.adSlots&&t.adUnitPath){var n=!1,r=t.timeout||1e3;setTimeout((function(){n||i("")}),r);var o=e;o.__iasPET=o.__iasPET||{},o.__iasPET.queue=o.__iasPET.queue||[],o.__iasPET.pubId=t.pubId;for(var a=new o.window.Array,s=0;s<t.adSlots.length;s++)a.push({adSlotId:t.adSlots[s],size:t.size,adUnitPath:t.adUnitPath,type:t.type||"video"});o.__iasPET.queue.push({adSlots:a,dataHandler:function(t){Jc.parseIASResponseData(t);var e=Jc.getIASPageTargetingAsQueryString(),r=Jc.getIASSlotTargetingAsQueryString(),o="";Object.keys(r).forEach((function(t){r[t]&&(o+=r[t])}));var a="%26"+e.substr(3)+o;n=!0,i(a)}})}else i("")}(C.iassupply,(function(t){C.iaskv=t,nt||(nt=!0,!Utils.isMobile()||Utils.isVideoSupported()?rt():r.e(172).then(r.bind(r,7984)).then((function(t){S.imagePlayer=t.default,C.nativetest||(C.nativevideo=!1)})).catch((function(t){Utils.writeLog(Utils.logLevels.debug,"failed to load image player",t)})).finally((function(){rt()})))}))}else setTimeout((function(){g({errorlimit:!0,reason:tt?"maxpagereq":"maxpagerun"},1==C.tgt,C.vpmode)}));function rt(){var t;!function(){var t=AV_player.slotWindow.document.getElementsByTagName("head")[0];if(t||(t=AV_player.slotWindow.document.getElementsByTagName("body")[0]),t&&!C.isshadowdom||(t=AV_player.config.slot),C.positiondiv&&(t=C.positiondiv),!S.cssTag){n.AV_player.cssTag=!0;var e=document.createElement("style");C.customcss=(C.customcss||"").replace("[AVC_TAGID]",C.tagid||"");var i=n.aniviewCSS+" "+C.customcss;e.type="text/css",e.id="av_css_id",e.styleSheet?e.styleSheet.cssText=i:e.appendChild(document.createTextNode(i));var r=AV_player.slotWindow.document.getElementById("av_css_id");r&&r.innerHTML==i&&r.parentNode===t||t.appendChild(e)}}(),function(){var t,e,i,r,o,a,s;if(!K){K=!0,C.caption=!!(C.adlabel&&C.adlabel.text||C.closebutton||((null==(t=C.sticky)?void 0:t.size)>0?C.sticky:(null==(e=C.floating)?void 0:e.size)>0?C.floating:{}).closeButton&&C.closebuttonstyle&&C.closebuttonstyle.outside);var l=n.aniviewGetGui(C),c=document.createElement("div");S.playerSlot=c,"1"==C.tgt&&(c.style.top="0px",c.style.width="100%",c.style.height="100%",c.style.position="absolute",C.hidevpaid&&(S.playerSlot.style.visibility="hidden")),v.environmentVars.slot.appendChild(c);var d=c;d.innerHTML=l,d.id=v.environmentVars.slot.id+"gui";var u,p,f=d.querySelector("#av-container");if(C.blocknesting&&(f[ed]=!0),C.caption&&(u=d.querySelector("#av-caption")),v.environmentVars.captionHeight=1*(u&&u.offsetHeight)||0,S.divPreloader=d.querySelector("#imgpreloader"),"content"==C.preloader.type){var h=d.querySelector("#AVcontent");try{S.diVideoPreloader=Utils.getTopWnd().document.createElement("video"),S.diVideoPreloader.id="AVcontent",S.diVideoPreloader.setAttribute("playsinline",!0),S.diVideoPreloader.setAttribute("webkit-playsinline",!0),S.diVideoPreloader.muted=!0,S.diVideoPreloader.style.cssText="width:100%;height:100%;",C.backgroundcolor&&(S.diVideoPreloader.style.cssText+="background-color:".concat(C.backgroundcolor,";")),h.parentNode.replaceChild(S.diVideoPreloader,h)}catch(t){S.diVideoPreloader=h}S.diVideoPreloader.style.width="100%",S.diVideoPreloader.style.height="100%",S.diVideoPreloader.style.display="none",S.diVideoPreloader.style.position="absolute"}if(null!=(i=C.preloader)&&i.enable&&("Image"==C.preloader.type&&""!=C.preloader.link||"content"==C.preloader.type&&void 0!==C.preloader.poster)&&(p="Image"==C.preloader.type?C.preloader.link:C.preloader.poster,S.divPreloader.style.width="100%",S.divPreloader.style.height="100%",p&&""!=p&&(S.divPreloader.style.background="url('"+p+"') center center no-repeat"),C.preloader.poster&&(S.divPreloader.style.backgroundSize="contain"),"content"==n.AV_player.config.preloader.type&&0==n.AV_player.config.autoplay&&"string"==typeof n.AV_player.config.preloader.poster&&n.AV_player.config.preloader.poster.length>10&&(n.AV_player.divPreloader.style.zIndex="1"),S.divPreloader.style.position="absolute",""!=C.preloader.clickthrough&&"Image"==C.preloader.type&&(S.divPreloader.style.zIndex=C.maxzindex,S.divPreloader.style.cursor="pointer",S.divPreloader.onclick=function(){q("BannerClick"),n.open(C.preloader.clickthrough,"blank"),q("ContentClick")}),"content"==C.preloader.type&&(S.diVideoPreloader.onclick=function(){C.autoplay?(q("BannerClick"),C.hidemobilecontrols&&!S.mobileControlsOn?(S.mobileControlsOn=!0,Q.controls(!0),S.mobileControlsTimer=setTimeout((function(){S.mobileControlsOn=!1,S.mobileControlsTimer=0,Q.controls(!1)}),1e3*C.mobilecontrolsdelay)):(""!=C.preloader.clickthrough&&n.open(C.preloader.clickthrough,"blank"),q("ContentClick",{src:S.diVideoPreloader.src,currentTime:S.diVideoPreloader.currentTime}))):Q.bigPlay.onclick()})),"js"===C.preloader.type||"html"===C.preloader.type)if(S.divPreloader.style.width="100%",S.divPreloader.style.height="100%",S.divPreloader.style.zIndex=C.maxzindex,S.divPreloader.style.position="absolute","js"===C.preloader.type)Utils.loadScriptToIframe(S.divPreloader,C.preloader.link,C.width,C.height,null,C.preloader.playOnView);else if("html"===C.preloader.type){var m,g=Object.assign({},P,C.preloader.config||{},V,{ref1:nd(C.ref1||{},(null==(m=C.preloader.config)?void 0:m.ref1)||{}),context:{placement:rd.Outstream,unit:od.Linear}});Utils.loadScriptToIframe(S.divPreloader,C.preloader,C.width,C.height,(function(t,e,i,n){switch(t){case as.AdImpression:n.creativeType="display",q(t,n);break;case"LoadedProvider":S.adDisplayApi=n.api}}),C.preloader.playOnView,g)}var y={container:f,backgroundColor:C.backgroundcolor,caption:u,adLabel:C.adlabel,videoSlotName:v.position,autoplay:C.autoplay,muted:C.muted,share:C.share,sound:C.soundbutton,playPause:C.pausebutton,fullscreen:C.fullscreen,phone:C.phone,logo:C.logo,lastframe:C.lastframe,showBigPlay:C.showbigplay,close:C.closebutton,closeStyle:C.closebuttonstyle,floatingOrStickyCloseButton:((null==(r=C.sticky)?void 0:r.size)>0?C.sticky:(null==(o=C.floating)?void 0:o.size)>0?C.floating:{}).closeButton,skip:C.skip,skipTimer:C.skiptimer,skipText:C.skiptext,skipStyle:C.skipstyle,responsive:null==v.width&&null==v.height,width:C.width,height:C.height,hideControls:C.hidecontrols,timelineMode:C.timelinemode,timelineChange:C.timelinechange,showpreloader:C.showpreloader,inttimeout:1==C.tgt?200:150,adsControlPositioning:null==(a=C)||null==(a=a.adscontrolpositioning)?void 0:a.toLowerCase(),optimizeUi:!!C.contentplayer||1==C.tgt||C.optimizeui,disablercmenu:C.disablercmenu};Utils.writeLog(Utils.logLevels.defaultLevel,"pl.config:",S.config),Utils.writeLog(Utils.logLevels.defaultLevel,"config:",y),(Q=new AnivewPlayerGUI(y)).controls(!1),pc._ext.AV_playerGUI=Q,"content"==C.preloader.type&&S.preroll<=0&&X(),"js"!=C.preloader.type||C.preloader.closeButton||(Q.gui.style.display="none"),0==n.AV_player.config.autoplay&&null!=(s=n.AV_player.config.preloader)&&s.enable&&"content"==n.AV_player.config.preloader.type&&(C.showbigplay&&(Q.bigPlay.style.display="inline"),Q.bigPlay.style.position="absolute",Q.bigPlay.style.zIndex=C.maxzindex,Q.bigPlay.onclick=function(){n.AV_player.config.autoplay=!0,Q.bigPlay.style.display="none",Q.playClick(),U()}),Q.setLogo()}}(),_=H(),!1!==(null==(t=C.preload)?void 0:t.inventory)&&G(),S.initResolve()}}(gl)}}(window)}()}();