(self.webpackChunkvidoomy_main_name_=self.webpackChunkvidoomy_main_name_||[]).push([[431],{829:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AdsManager:()=>Li});var r=n(610),i=n(991);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a,u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},s=(function(e){!function(t){var n,r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag",d=t.regeneratorRuntime;if(d)e.exports=d;else{(d=t.regeneratorRuntime=e.exports).wrap=b;var l="suspendedStart",f="suspendedYield",h="executing",p="completed",v={},m={};m[u]=function(){return this};var y=Object.getPrototypeOf,w=y&&y(y(O([])));w&&w!==r&&i.call(w,u)&&(m=w);var g=k.prototype=A.prototype=Object.create(m);x.prototype=g.constructor=k,k.constructor=x,k[c]=x.displayName="GeneratorFunction",d.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},d.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(g),e},d.awrap=function(e){return{__await:e}},C(T.prototype),T.prototype[s]=function(){return this},d.AsyncIterator=T,d.async=function(e,t,n,r){var i=new T(b(e,t,n,r));return d.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(g),g[c]="Generator",g[u]=function(){return this},g.toString=function(){return"[object Generator]"},d.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},d.values=O,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return u.type="throw",u.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function b(e,t,n,r){var i=t&&t.prototype instanceof A?t:A,o=Object.create(i.prototype),a=new S(r||[]);return o._invoke=function(e,t,n){var r=l;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return _()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var u=I(a,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var s=E(e,t,n);if("normal"===s.type){if(r=n.done?p:f,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=p,n.method="throw",n.arg=s.arg)}}}(e,n,a),o}function E(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function A(){}function x(){}function k(){}function C(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function T(e){function t(n,r,a,u){var s=E(e[n],e,r);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"===o(d)&&i.call(d,"__await")?Promise.resolve(d.__await).then((function(e){t("next",e,a,u)}),(function(e){t("throw",e,a,u)})):Promise.resolve(d).then((function(e){c.value=e,a(c)}),u)}u(s.arg)}var n;this._invoke=function(e,r){function i(){return new Promise((function(n,i){t(e,r,n,i)}))}return n=n?n.then(i,i):i()}}function I(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,I(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=E(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,v):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function O(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0,l=d&&c.regeneratorRuntime;c.regeneratorRuntime=void 0;var f=s;if(d)c.regeneratorRuntime=l;else try{delete c.regeneratorRuntime}catch(e){c.regeneratorRuntime=void 0}var h,p,v,m=f,y="complete",w="clickThrough",g="error",b="firstQuartile",E="impression",A="midpoint",x="mute",k="pause",C="playerCollapse",T="exitFullscreen",I="playerExpand",L="fullscreen",P="progress",S="resume",O="rewind",_="skip",V="start",U="thirdQuartile",R="unmute",F="iconClick",B="iconView",N="closeLinear",j={clickThrough:w,closeLinear:N,complete:y,error:g,exitFullscreen:T,firstQuartile:b,fullscreen:L,iconClick:F,iconView:B,impression:E,midpoint:A,mute:x,otherAdInteraction:"otherAdInteraction",pause:k,playerCollapse:C,playerExpand:I,progress:P,resume:S,rewind:O,skip:_,start:V,thirdQuartile:U,timeSpentViewing:"timeSpentViewing",unmute:R},M="acceptInvitation",D="adCollapse",z="creativeView",H="close",W={acceptInvitation:M,adCollapse:D,close:H,creativeView:z},q=[new RegExp("^]*>This page contains the following errors:]*>(.+?)\n?"),new RegExp("^(.+)\n")],G=function(e){return function(e){var t;if(null===e)throw new Error("Parse error");var n=function(e){return"parsererror"===e.documentElement.tagName&&"http://www.mozilla.org/newlayout/xml/parsererror.xml"===e.documentElement.namespaceURI?e.documentElement:("xml"===e.documentElement.tagName||"html"===e.documentElement.tagName)&&e.documentElement.childNodes&&e.documentElement.childNodes.length>0&&"parsererror"===e.documentElement.childNodes[0].nodeName?e.documentElement.childNodes[0]:"html"===e.documentElement.tagName&&e.documentElement.childNodes&&e.documentElement.childNodes.length>0&&"body"===e.documentElement.childNodes[0].nodeName&&e.documentElement.childNodes[0].childNodes&&e.documentElement.childNodes[0].childNodes.length&&"parsererror"===e.documentElement.childNodes[0].childNodes[0].nodeName?e.documentElement.childNodes[0].childNodes[0]:void 0}(e);if(void 0!==n)throw t=function(e){var t,n,r,i,o=(t=e,n=new XMLSerializer,Array.prototype.map.call(t.childNodes,(function(e){return n.serializeToString(e)})).join(""));for(r=0;r0){r.attributes={};var i=!0,o=!1,a=void 0;try{for(var u,s=Array.from(t.attributes)[Symbol.iterator]();!(i=(u=s.next()).done);i=!0){var c=u.value;r.attributes[c.nodeName]=c.nodeValue}}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}}}else n===X&&(r.text=t.nodeValue.replace("","").trim());if(t.hasChildNodes()){var d=Array.from(t.childNodes).filter((function(e){return[1,3,4].includes(e.nodeType)})),l=[];r.elements=l;var f=!0,h=!1,p=void 0;try{for(var v,m=d[Symbol.iterator]();!(f=(v=m.next()).done);f=!0){var y=e(v.value);(y.type!==X||y.text.length>0)&&l.push(y)}}catch(e){h=!0,p=e}finally{try{!f&&m.return&&m.return()}finally{if(h)throw p}}}return r},K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.elements,n=void 0===t?[]:t;return n},Y=function(e,t){return K(e).find((function(e){var n=e.name;return(void 0===n?"":n).toUpperCase()===t.toUpperCase()}))},Z=function(e,t){return"string"==typeof t?function(e,t){return K(e).filter((function(e){var n=e.name;return(void 0===n?"":n).toUpperCase()===t.toUpperCase()}))}(e,t):K(e)},J=function(e){return K(e)[0]||null},ee=function(e){var t=e&&J(e);return t&&t.text||null},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.attributes,n=void 0===t?{}:t;return n},ne=function(e,t){return te(e)[t]},re=new DOMParser,ie=function(e){return function(e,t){var n=e.parseFromString(t,"application/xml");return G(n),$(n)}(re,e)},oe=function(e){if("string"==typeof e){var t=e.match(/(\d\d):(\d\d):(\d\d)(\.(\d\d\d))?/);if(t){var n=(o=t[1],60*parseInt(o,10)*60*1e3+(i=t[2],60*parseInt(i,10)*1e3)+(r=t[3],1e3*parseInt(r,10))+parseInt(t[5]||0,10));if(!isNaN(n))return n}}var r,i,o;return null},ae=function(e){return function(e){return/^\d+(\.\d+)?%$/g.test(e)}(e)?e:oe(e)},ue=function(e){var t=J(e),n=t&&Y(t,"creatives");return n&&Z(n).find((function(e){return Y(e,"linear")}))||null},se=function(e,t){var n=e&&ue(e);if(n){var r=Y(n,"Linear"),i=r&&Y(r,"TrackingEvents"),o=i&&Z(i,"Tracking");if(o&&o.length>0){var a=o.map((function(e){var t=te(e),n=t.event,r=t.offset,i=ee(e);return{event:n,offset:r&&ae(r),uri:i}}));if(!t)return a;var u=a.filter((function(e){return e.event===t}));if(u.length>0)return u}}return null},ce=function(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,n){return function r(i,o){try{var a=t[i](o),u=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(u).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(u)}("next")}))}},de=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},le=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},ye=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==o(t)&&"function"!=typeof t?e:t},we=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);tr?1:0},xe=function(e){var t=e&&Y(e,"VAST"),n=t&&Z(t,"Ad");return n&&n.length>0?n:[]},ke=function(e){var t=parseInt(ne(e,"sequence"),10);return"number"!=typeof t||isNaN(t)?null:t},Ce=function(e){return Boolean(ke(e))},Te=function(e){var t=xe(e);return Array.isArray(t)&&t.filter(Ce).length>1},Ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Boolean(Y(e||{},"Wrapper"))},Le=function(e){var t=Y(e,"Wrapper"),n=t&&Y(t,"VastAdTagUri");return n&&ee(n)||null},Pe=function(e){var t=e&&ue(e);if(t){var n=Y(t,"UniversalAdId"),r=n&&ee(n)||null,i=Y(t,"Linear"),o=Y(i,"MediaFiles"),a=o&&Z(o,"MediaFile");if(a&&a.length>0)return a.map((function(e){var t=ee(e),n=te(e),i=n.apiFramework,o=n.bitrate,a=n.codec,u=n.delivery,s=n.height,c=n.id,d=n.maintainAspectRatio,l=n.maxBitrate,f=n.minBitrate,h=n.scalable,p=n.type,v=n.width;return{apiFramework:i,bitrate:o,codec:a,delivery:u,height:s,id:c,maintainAspectRatio:d,maxBitrate:l,minBitrate:f,scalable:h,src:t,type:p,universalAdId:r,width:v}}))}return null},Se=function(e){var t=function(e){var t=e&&ue(e);if(t){var n=Y(t,"Linear"),r=Y(n,"MediaFiles"),i=r&&Z(r,"InteractiveCreativeFile");if(i&&i.length>0)return i.map((function(e){var t=te(e),n=t.apiFramework,r=t.type;return{apiFramework:n,src:ee(e),type:r}}))}return null}(e);if(t)return t;var n=Pe(e);return n&&(t=n.filter((function(e){var t=e.apiFramework;return"vpaid"===(void 0===t?"":t).toLowerCase()})).map((function(e){return{apiFramework:e.apiFramework,src:e.src,type:e.type}}))).length>0?t:null},Oe=function(e){var t=e&&ue(e),n=t&&Y(t,"Linear");return n&&Y(n,"VideoClicks")||null},_e=function(e){var t=Oe(e),n=t&&Y(t,"ClickThrough");return n?ee(n):null},Ve=function(e){var t={};return Object.keys(e).forEach((function(n){t[n.toUpperCase()]=e[n]})),t},Ue=function(e,t){if(e){var n=new Image;return n.src=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return null;var n=e,r=Ve(t);return Boolean(r.CACHEBUSTING)||(r.CACHEBUSTING=Math.round(1e10*Math.random())),Boolean(r.TIMESTAMP)||(r.TIMESTAMP=(new Date).toISOString()),Object.keys(r).forEach((function(e){var t=encodeURIComponent(r[e]);n=n.replace(new RegExp("\\["+e+"\\]","gm"),t)})),n}(e,t),n}return null},Re=function(e,t){var n=t.errorCode,r=t.tracker,i=void 0===r?Ue:r;e.forEach((function(e){var t=e.ad,r=e.parsedXML,o=function(e){var t=e&&J(e);if(t){var n=Y(t,"Error");if(n)return ee(n)}return null}(t)||function(e){var t=e&&Y(e,"VAST");if(t){var n=Y(t,"Error");if(n)return ee(n)}return null}(r);Boolean(o)&&i(o,{errorCode:n})}))},Fe=function(e){return function(t,n){var r=n.data,i=n.tracker,o=void 0===i?Ue:i;t.forEach((function(t){var n=t.ad,i=e(n);if(Boolean(i))switch(!0){case"string"==typeof i:o(i,r);break;case Array.isArray(i):i.map((function(e){var t=e.uri;return o(t,r)}))}}))}},Be=function(e){return function(t){return se(t,e)}},Ne=(fe(h={},w,Fe((function(e){var t=[],n=function(e){var t=Oe(e),n=t&&Z(t,"ClickTracking");return n&&n.length>0?n.map((function(e){return ee(e)})):null}(e),r=function(e){var t=Oe(e),n=t&&Z(t,"CustomClick");return n&&n.length>0?n.map((function(e){return ee(e)})):null}(e);return Array.isArray(n)&&n.length>0&&t.push.apply(t,we(n.map((function(e){return{uri:e}})))),Array.isArray(r)&&r.length>0&&t.push.apply(t,we(r.map((function(e){return{uri:e}})))),t}))),fe(h,N,Fe(Be(N))),fe(h,y,Fe(Be(y))),fe(h,g,Re),fe(h,T,Fe(Be(T))),fe(h,b,Fe(Be(b))),fe(h,L,Fe(Be(L))),fe(h,F,(function(e,t){var n=t.data,r=t.tracker,i=void 0===r?Ue:r,o=n.iconClickTracking;if(Array.isArray(o)){var a=!0,u=!1,s=void 0;try{for(var c,d=o[Symbol.iterator]();!(a=(c=d.next()).done);a=!0)i(c.value,he({},n))}catch(e){u=!0,s=e}finally{try{!a&&d.return&&d.return()}finally{if(u)throw s}}}})),fe(h,B,(function(e,t){var n=t.data,r=t.tracker,i=void 0===r?Ue:r,o=n.iconViewTracking;if(Array.isArray(o)){var a=!0,u=!1,s=void 0;try{for(var c,d=o[Symbol.iterator]();!(a=(c=d.next()).done);a=!0)i(c.value,he({},n))}catch(e){u=!0,s=e}finally{try{!a&&d.return&&d.return()}finally{if(u)throw s}}}})),fe(h,E,Fe((function(e){var t=e&&J(e);if(t){var n=Z(t,"Impression");if(n)return n.map((function(e){return{uri:ee(e)}}))}return null}))),fe(h,A,Fe(Be(A))),fe(h,x,Fe(Be(x))),fe(h,k,Fe(Be(k))),fe(h,C,Fe(Be(C))),fe(h,I,Fe(Be(I))),fe(h,P,(function(e,t){var n=t.data,r=t.tracker,i=void 0===r?Ue:r,o=n.progressUri;Boolean(o)&&i(o,he({},n))})),fe(h,S,Fe(Be(S))),fe(h,O,Fe(Be(O))),fe(h,_,Fe(Be(_))),fe(h,V,Fe(Be(V))),fe(h,U,Fe(Be(U))),fe(h,R,Fe(Be(R))),h),je=function(e){return function(t){return function(e,t){var n=e&&ue(e);if(n){var r=Y(n,"NonLinearAds"),i=r&&Y(r,"TrackingEvents"),o=i&&Z(i,"Tracking");if(o&&o.length>0){var a=o.map((function(e){return{event:te(e).event,uri:ee(e)}}));if(!t)return a;var u=a.filter((function(e){return e.event===t}));if(u.length>0)return u}}return null}(t,e)}},Me=(fe(p={},M,Fe(je(M))),fe(p,D,Fe(je(D))),fe(p,H,Fe(je(H))),fe(p,z,Fe(je(z))),p),De=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.async,r=void 0!==n&&n,i=t.defer,o=void 0!==i&&i,a=t.type,u=void 0===a?"text/javascript":a,s=t.placeholder;if(!e)throw new TypeError('Missing required "src" parameter');return new Promise((function(t,n){var i=document.createElement("script"),a=s;i.type=u,i.async=r,i.defer=o,i.onerror=function(){return n(new URIError("The script "+e+" is not accessible."))},i.onload=function(){return t(i)},a||(a=document.currentScript?document.currentScript.parentNode:document.head),i.src=e,a.appendChild(i)}))},ze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=e.createElement("VIDEO");return t.style.width="100%",t.style.height="100%",t},He=function(){var e=document.createElement("DIV");return e.classList.add("mol-video-ad-container"),e.style.width="100%",e.style.height="100%",e},We=function(e){return e.contentDocument||e.contentWindow&&e.contentWindow.document},qe="srcdoc"in document.createElement("iframe"),Ge=function(){var e=document.createElement("IFRAME");return e.sandbox="allow-forms allow-popups allow-scripts allow-same-origin",e.style.margin="0",e.style.padding="0",e.style.border="none",e.style.width="0",e.style.height="0",e.style.position="absolute",e},Qe=function(e,t){return new Promise((function(n,r){var i,o,a=function(e,t){return"\n\n \n \n