/*! For license information please see commons.3a12491611f64a12741e.bundle.js.LICENSE.txt */ (self.webpackChunk_name_=self.webpackChunk_name_||[]).push([[9351],{66419:function(t,e,r){t.exports=r(27698)},77766:function(t,e,r){t.exports=r(8065)},54804:function(t,e,r){t.exports=r(95247)},20116:function(t,e,r){t.exports=r(11955)},94473:function(t,e,r){t.exports=r(61577)},78914:function(t,e,r){t.exports=r(46279)},78580:function(t,e,r){t.exports=r(33778)},81643:function(t,e,r){t.exports=r(19373)},23054:function(t,e,r){t.exports=r(11022)},2991:function(t,e,r){t.exports=r(61798)},54903:function(t,e,r){t.exports=r(88906)},32366:function(t,e,r){t.exports=r(52527)},3649:function(t,e,r){t.exports=r(82073)},77149:function(t,e,r){t.exports=r(45286)},47302:function(t,e,r){t.exports=r(62856)},92762:function(t,e,r){t.exports=r(2348)},25843:function(t,e,r){t.exports=r(76361)},59340:function(t,e,r){t.exports=r(8933)},24717:function(t,e,r){t.exports=r(61799)},51942:function(t,e,r){t.exports=r(63383)},20368:function(t,e,r){t.exports=r(57396)},63978:function(t,e,r){t.exports=r(41910)},34074:function(t,e,r){t.exports=r(79427)},39649:function(t,e,r){t.exports=r(62857)},48604:function(t,e,r){t.exports=r(64477)},14310:function(t,e,r){t.exports=r(9534)},21611:function(t,e,r){t.exports=r(96507)},86902:function(t,e,r){t.exports=r(23059)},85507:function(t,e,r){t.exports=r(16670)},20455:function(t,e,r){t.exports=r(47795)},31238:function(t,e,r){t.exports=r(66877)},94198:function(t,e,r){t.exports=r(74888)},93476:function(t,e,r){t.exports=r(27460)},1068:function(t,e,r){t.exports=r(61895)},65420:function(t,e,r){t.exports=r(92547)},98341:function(t,e,r){t.exports=r(46509)},94435:function(t,e,r){t.exports=r(73926)},39969:function(t,e,r){t.exports=r(57641)},19996:function(t,e,r){t.exports=r(32209)},90149:function(t,e,r){t.exports=r(30888)},95683:function(t,e,r){t.exports=r(69447)},12088:function(t,e,r){t.exports=r(60269)},189:function(t,e,r){t.exports=r(76094)},44341:function(t,e,r){t.exports=r(73685)},89356:function(t,e,r){t.exports=r(93799)},79542:function(t,e,r){t.exports=r(55122)},69798:function(t,e,r){t.exports=r(29531)},90962:function(t,e,r){r(90149);var n=r(86902),o=r(14310),i=r(20116),a=r(34074),u=r(78914),c=r(39649),s=r(20368),f=r(63978),l=r(65420),p=r(98341),v=r(85507),h=r(21611),d=r(1068),y=r(19996),g=r(66419),m=r(3649),b=r(81643),x=r(32366),w=r(2991),A=r(48604),T=r(54903),E=r(31238),S=r(77766),O=r(24717),R=r(23054),k=r(25843),P=r(94198),j=r(77149),N=r(51942),L=r(93476),I=r(92762),C=r(94473);r(41539),r(68309),r(74916),r(28733),r(4723),r(15306),r(24603),r(39714),r(23123),r(69600),r(82526),r(41817),r(66992),r(88674),r(78783),r(33948),function(t){"use strict";function e(t,e){var r=n(t);if(o){var u=o(t);e&&(u=i(u).call(u,(function(e){return a(t,e).enumerable}))),r.push.apply(r,u)}return r}function r(t){for(var r=1;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{};return{id:t.id||null,adId:t.adId||null,sequence:t.sequence||null,apiFramework:t.apiFramework||null,universalAdIds:[],creativeExtensions:[]}}var Y=["ADCATEGORIES","ADCOUNT","ADPLAYHEAD","ADSERVINGID","ADTYPE","APIFRAMEWORKS","APPBUNDLE","ASSETURI","BLOCKEDADCATEGORIES","BREAKMAXADLENGTH","BREAKMAXADS","BREAKMAXDURATION","BREAKMINADLENGTH","BREAKMINDURATION","BREAKPOSITION","CLICKPOS","CLICKTYPE","CLIENTUA","CONTENTID","CONTENTPLAYHEAD","CONTENTURI","DEVICEIP","DEVICEUA","DOMAIN","EXTENSIONS","GDPRCONSENT","IFA","IFATYPE","INVENTORYSTATE","LATLONG","LIMITADTRACKING","MEDIAMIME","MEDIAPLAYHEAD","OMIDPARTNER","PAGEURL","PLACEMENTTYPE","PLAYERCAPABILITIES","PLAYERSIZE","PLAYERSTATE","PODSEQUENCE","REGULATIONS","SERVERSIDE","SERVERUA","TRANSACTIONID","UNIVERSALADID","VASTVERSIONS","VERIFICATIONVENDORS"];function J(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=[],o=Z(t);for(var i in!e.ERRORCODE||r.isCustomCode||/^[0-9]{3}$/.test(e.ERRORCODE)||(e.ERRORCODE=900),e.CACHEBUSTING=rt(Math.round(1e8*Math.random())),e.TIMESTAMP=(new Date).toISOString(),e.RANDOM=e.random=e.CACHEBUSTING,e)e[i]=et(e[i]);for(var a in o){var u=o[a];"string"==typeof u&&n.push(X(u,e))}return n}function X(t,e){var r=(t=K(t,e)).match(/[^[\]]+(?=])/g);if(!r)return t;var n=i(r).call(r,(function(t){return b(Y).call(Y,t)>-1}));return 0===n.length?t:K(t,n=x(n).call(n,(function(t,e){return t[e]=-1,t}),{}))}function K(t,e){var r=t;for(var n in e){var o=e[n];r=r.replace(new RegExp("(?:\\[|%%)(".concat(n,")(?:\\]|%%)"),"g"),o)}return r}function Z(t){return Array.isArray(t)?w(t).call(t,(function(t){return t&&t.hasOwnProperty("url")?t.url:t})):t}function Q(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:8;return T(e=t.toString()).call(e,r,"0")}var nt={track:function(t,e,r){var n;u(n=J(t,e,r)).call(n,(function(t){"undefined"!=typeof window&&null!==window&&((new Image).src=t)}))},resolveURLTemplates:J,extractURLsFromTemplates:Z,containsTemplateObject:Q,isTemplateObjectEqual:tt,encodeURIComponentRFC3986:et,replaceUrlMacros:X,isNumeric:function(t){return!isNaN(E(t))&&isFinite(t)},flatten:function t(e){return x(e).call(e,(function(e,r){return S(e).call(e,Array.isArray(r)?t(r):r)}),[])},joinArrayOfUniqueTemplateObjs:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Array.isArray(t)?t:[],n=Array.isArray(e)?e:[],o=S(r).call(r,n);return x(o).call(o,(function(t,e){return Q(e,t)||t.push(e),t}),[])},isValidTimeValue:function(t){return O(t)&&t>=-2},addLeadingZeros:rt};function ot(t){var e;return-1!==b(e=["true","TRUE","True","1"]).call(e,t)}var it={childByName:function(t,e){var r=t.childNodes;for(var n in r){var o=r[n];if(o.nodeName===e)return o}},childrenByName:function(t,e){var r=[],n=t.childNodes;for(var o in n){var i=n[o];i.nodeName===e&&r.push(i)}return r},resolveVastAdTagURI:function(t,e){if(!e)return t;if(0===b(t).call(t,"//")){var r,n=location.protocol;return S(r="".concat(n)).call(r,t)}if(-1===b(t).call(t,"://")){var o,i=m(e).call(e,0,R(e).call(e,"/"));return S(o="".concat(i,"/")).call(o,t)}return t},parseBoolean:ot,parseNodeText:function(t){var e;return t&&k(e=t.textContent||t.text||"").call(e)},copyNodeAttribute:function(t,e,r){var n=e.getAttribute(t);n&&r.setAttribute(t,n)},parseAttributes:function(t){for(var e=t.attributes,r={},n=0;n3600||n>60?-1:i+o+n},splitVAST:function(t){var e=[],r=null;return u(t).call(t,(function(n,o){if(n.sequence&&(n.sequence=P(n.sequence,10)),n.sequence>1){var i=t[o-1];if(i&&i.sequence===n.sequence-1)return void(r&&r.push(n));delete n.sequence}r=[n],e.push(r)})),e},assignAttributes:function(t,e){if(t)for(var r in t){var n=t[r];if(n.nodeName&&n.nodeValue&&e.hasOwnProperty(n.nodeName)){var o=n.nodeValue;"boolean"==typeof e[n.nodeName]&&(o=ot(o)),e[n.nodeName]=o}}},mergeWrapperAdData:function(t,e){var r,n,o,a,c,s,f,l;t.errorURLTemplates=S(r=e.errorURLTemplates).call(r,t.errorURLTemplates),t.impressionURLTemplates=S(n=e.impressionURLTemplates).call(n,t.impressionURLTemplates),t.extensions=S(o=e.extensions).call(o,t.extensions),e.viewableImpression.length>0&&(t.viewableImpression=S(a=[]).call(a,$(t.viewableImpression),$(e.viewableImpression))),t.followAdditionalWrappers=e.followAdditionalWrappers,t.allowMultipleAds=e.allowMultipleAds,t.fallbackOnNoAd=e.fallbackOnNoAd;var p=i(c=e.creatives||[]).call(c,(function(t){return t&&"companion"===t.type})),v=x(p).call(p,(function(t,e){var r;return u(r=e.variations||[]).call(r,(function(e){var r;u(r=e.companionClickTrackingURLTemplates||[]).call(r,(function(e){nt.containsTemplateObject(e,t)||t.push(e)}))})),t}),[]);t.creatives=S(p).call(p,t.creatives);var h=e.videoClickTrackingURLTemplates&&e.videoClickTrackingURLTemplates.length,d=e.videoCustomClickURLTemplates&&e.videoCustomClickURLTemplates.length;u(s=t.creatives).call(s,(function(t){var r,n,o;if(e.trackingEvents&&e.trackingEvents[t.type])for(var i in e.trackingEvents[t.type]){var a,c=e.trackingEvents[t.type][i];Array.isArray(t.trackingEvents[i])||(t.trackingEvents[i]=[]),t.trackingEvents[i]=S(a=t.trackingEvents[i]).call(a,c)}"linear"===t.type&&(h&&(t.videoClickTrackingURLTemplates=S(r=t.videoClickTrackingURLTemplates).call(r,e.videoClickTrackingURLTemplates)),d&&(t.videoCustomClickURLTemplates=S(n=t.videoCustomClickURLTemplates).call(n,e.videoCustomClickURLTemplates)),!e.videoClickThroughURLTemplate||null!==t.videoClickThroughURLTemplate&&void 0!==t.videoClickThroughURLTemplate||(t.videoClickThroughURLTemplate=e.videoClickThroughURLTemplate)),"companion"===t.type&&v.length&&u(o=t.variations||[]).call(o,(function(t){t.companionClickTrackingURLTemplates=nt.joinArrayOfUniqueTemplateObjs(t.companionClickTrackingURLTemplates,v)}))})),e.adVerifications&&(t.adVerifications=S(f=t.adVerifications).call(f,e.adVerifications)),e.blockedAdCategories&&(t.blockedAdCategories=S(l=t.blockedAdCategories).call(l,e.blockedAdCategories))}};function at(t,e){var r,n=function(){var t=z(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return{id:t.id,adId:t.adId,sequence:t.sequence,apiFramework:t.apiFramework,type:"companion",required:null,variations:[]}}(e);return n.required=t.getAttribute("required")||null,n.variations=w(r=it.childrenByName(t,"Companion")).call(r,(function(t){var e,r,n,o,i,a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:t.id||null,adType:"companionAd",width:t.width||0,height:t.height||0,assetWidth:t.assetWidth||null,assetHeight:t.assetHeight||null,expandedWidth:t.expandedWidth||null,expandedHeight:t.expandedHeight||null,apiFramework:t.apiFramework||null,adSlotID:t.adSlotID||null,pxratio:t.pxratio||"1",renderingMode:t.renderingMode||"default",staticResources:[],htmlResources:[],iframeResources:[],adParameters:null,xmlEncoded:null,altText:null,companionClickThroughURLTemplate:null,companionClickTrackingURLTemplates:[],trackingEvents:{}}}(it.parseAttributes(t));a.htmlResources=x(e=it.childrenByName(t,"HTMLResource")).call(e,(function(t,e){var r=it.parseNodeText(e);return r?S(t).call(t,r):t}),[]),a.iframeResources=x(r=it.childrenByName(t,"IFrameResource")).call(r,(function(t,e){var r=it.parseNodeText(e);return r?S(t).call(t,r):t}),[]),a.staticResources=x(n=it.childrenByName(t,"StaticResource")).call(n,(function(t,e){var r=it.parseNodeText(e);return r?S(t).call(t,{url:r,creativeType:e.getAttribute("creativeType")||null}):t}),[]),a.altText=it.parseNodeText(it.childByName(t,"AltText"))||null;var c=it.childByName(t,"TrackingEvents");c&&u(o=it.childrenByName(c,"Tracking")).call(o,(function(t){var e=t.getAttribute("event"),r=it.parseNodeText(t);e&&r&&(Array.isArray(a.trackingEvents[e])||(a.trackingEvents[e]=[]),a.trackingEvents[e].push(r))})),a.companionClickTrackingURLTemplates=w(i=it.childrenByName(t,"CompanionClickTracking")).call(i,(function(t){return{id:t.getAttribute("id")||null,url:it.parseNodeText(t)}})),a.companionClickThroughURLTemplate=it.parseNodeText(it.childByName(t,"CompanionClickThrough"))||null;var s=it.childByName(t,"AdParameters");return s&&(a.adParameters=it.parseNodeText(s),a.xmlEncoded=s.getAttribute("xmlEncoded")||null),a})),n}function ut(t){return"linear"===t.type}function ct(t,e){var r,n,o,i,a=function(){var t=z(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return{id:t.id,adId:t.adId,sequence:t.sequence,apiFramework:t.apiFramework,type:"linear",duration:0,skipDelay:null,mediaFiles:[],mezzanine:null,interactiveCreativeFile:null,closedCaptionFiles:[],videoClickThroughURLTemplate:null,videoClickTrackingURLTemplates:[],videoCustomClickURLTemplates:[],adParameters:null,icons:[],trackingEvents:{}}}(e);a.duration=it.parseDuration(it.parseNodeText(it.childByName(t,"Duration")));var c=t.getAttribute("skipoffset");if(null==c)a.skipDelay=null;else if("%"===c.charAt(c.length-1)&&-1!==a.duration){var s=P(c,10);a.skipDelay=a.duration*(s/100)}else a.skipDelay=it.parseDuration(c);var f=it.childByName(t,"VideoClicks");if(f){var l,p,v=it.childByName(f,"ClickThrough");a.videoClickThroughURLTemplate=v?{id:v.getAttribute("id")||null,url:it.parseNodeText(v)}:null,u(l=it.childrenByName(f,"ClickTracking")).call(l,(function(t){a.videoClickTrackingURLTemplates.push({id:t.getAttribute("id")||null,url:it.parseNodeText(t)})})),u(p=it.childrenByName(f,"CustomClick")).call(p,(function(t){a.videoCustomClickURLTemplates.push({id:t.getAttribute("id")||null,url:it.parseNodeText(t)})}))}var h=it.childByName(t,"AdParameters");h&&(a.adParameters=it.parseNodeText(h)),u(r=it.childrenByName(t,"TrackingEvents")).call(r,(function(t){var e;u(e=it.childrenByName(t,"Tracking")).call(e,(function(t){var e=t.getAttribute("event"),r=it.parseNodeText(t);if(e&&r){if("progress"===e){if(!(i=t.getAttribute("offset")))return;e="%"===i.charAt(i.length-1)?"progress-".concat(i):"progress-".concat(Math.round(it.parseDuration(i)))}Array.isArray(a.trackingEvents[e])||(a.trackingEvents[e]=[]),a.trackingEvents[e].push(r)}}))})),u(n=it.childrenByName(t,"MediaFiles")).call(n,(function(t){var e,r,n;u(e=it.childrenByName(t,"MediaFile")).call(e,(function(t){a.mediaFiles.push(function(t){var e={id:null,fileURL:null,fileSize:0,deliveryType:"progressive",mimeType:null,mediaType:null,codec:null,bitrate:0,minBitrate:0,maxBitrate:0,width:0,height:0,apiFramework:null,scalable:null,maintainAspectRatio:null};e.id=t.getAttribute("id"),e.fileURL=it.parseNodeText(t),e.deliveryType=t.getAttribute("delivery"),e.codec=t.getAttribute("codec"),e.mimeType=t.getAttribute("type"),e.mediaType=t.getAttribute("mediaType")||"2D",e.apiFramework=t.getAttribute("apiFramework"),e.fileSize=P(t.getAttribute("fileSize")||0),e.bitrate=P(t.getAttribute("bitrate")||0),e.minBitrate=P(t.getAttribute("minBitrate")||0),e.maxBitrate=P(t.getAttribute("maxBitrate")||0),e.width=P(t.getAttribute("width")||0),e.height=P(t.getAttribute("height")||0);var r=t.getAttribute("scalable");r&&"string"==typeof r&&(e.scalable=it.parseBoolean(r));var n=t.getAttribute("maintainAspectRatio");return n&&"string"==typeof n&&(e.maintainAspectRatio=it.parseBoolean(n)),e}(t))}));var o=it.childByName(t,"InteractiveCreativeFile");o&&(a.interactiveCreativeFile=function(t){var e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:t.type||null,apiFramework:t.apiFramework||null,variableDuration:it.parseBoolean(t.variableDuration),fileURL:null}}(it.parseAttributes(t));return e.fileURL=it.parseNodeText(t),e}(o));var i=it.childByName(t,"ClosedCaptionFiles");i&&u(r=it.childrenByName(i,"ClosedCaptionFile")).call(r,(function(t){var e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:t.type||null,language:t.language||null,fileURL:null}}(it.parseAttributes(t));e.fileURL=it.parseNodeText(t),a.closedCaptionFiles.push(e)}));var c,s,f,l=it.childByName(t,"Mezzanine"),p=(c=l,s={},f=!1,u(n=["delivery","type","width","height"]).call(n,(function(t){c&&c.getAttribute(t)?s[t]=c.getAttribute(t):f=!0})),f?null:s);if(p){var v={id:null,fileURL:null,delivery:null,codec:null,type:null,width:0,height:0,fileSize:0,mediaType:"2D"};v.id=l.getAttribute("id"),v.fileURL=it.parseNodeText(l),v.delivery=p.delivery,v.codec=l.getAttribute("codec"),v.type=p.type,v.width=P(p.width,10),v.height=P(p.height,10),v.fileSize=P(l.getAttribute("fileSize"),10),v.mediaType=l.getAttribute("mediaType")||"2D",a.mezzanine=v}}));var d=it.childByName(t,"Icons");return d&&u(o=it.childrenByName(d,"Icon")).call(o,(function(t){a.icons.push(function(t){var e,r,n,o,i={program:null,height:0,width:0,xPosition:0,yPosition:0,apiFramework:null,offset:null,duration:0,type:null,staticResource:null,htmlResource:null,iframeResource:null,pxratio:"1",iconClickThroughURLTemplate:null,iconClickTrackingURLTemplates:[],iconViewTrackingURLTemplate:null};i.program=t.getAttribute("program"),i.height=P(t.getAttribute("height")||0),i.width=P(t.getAttribute("width")||0),i.xPosition=function(t){var e;return-1!==b(e=["left","right"]).call(e,t)?t:P(t||0)}(t.getAttribute("xPosition")),i.yPosition=function(t){var e;return-1!==b(e=["top","bottom"]).call(e,t)?t:P(t||0)}(t.getAttribute("yPosition")),i.apiFramework=t.getAttribute("apiFramework"),i.pxratio=t.getAttribute("pxratio")||"1",i.offset=it.parseDuration(t.getAttribute("offset")),i.duration=it.parseDuration(t.getAttribute("duration")),u(e=it.childrenByName(t,"HTMLResource")).call(e,(function(t){i.type=t.getAttribute("creativeType")||"text/html",i.htmlResource=it.parseNodeText(t)})),u(r=it.childrenByName(t,"IFrameResource")).call(r,(function(t){i.type=t.getAttribute("creativeType")||0,i.iframeResource=it.parseNodeText(t)})),u(n=it.childrenByName(t,"StaticResource")).call(n,(function(t){i.type=t.getAttribute("creativeType")||0,i.staticResource=it.parseNodeText(t)}));var a=it.childByName(t,"IconClicks");return a&&(i.iconClickThroughURLTemplate=it.parseNodeText(it.childByName(a,"IconClickThrough")),u(o=it.childrenByName(a,"IconClickTracking")).call(o,(function(t){i.iconClickTrackingURLTemplates.push({id:t.getAttribute("id")||null,url:it.parseNodeText(t)})}))),i.iconViewTrackingURLTemplate=it.parseNodeText(it.childByName(t,"IconViewTracking")),i}(t))})),a}function st(t,e){var r,n,o=function(){var t=z(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return{id:t.id,adId:t.adId,sequence:t.sequence,apiFramework:t.apiFramework,type:"nonlinear",variations:[],trackingEvents:{}}}(e);return u(r=it.childrenByName(t,"TrackingEvents")).call(r,(function(t){var e,r,n;u(e=it.childrenByName(t,"Tracking")).call(e,(function(t){r=t.getAttribute("event"),n=it.parseNodeText(t),r&&n&&(Array.isArray(o.trackingEvents[r])||(o.trackingEvents[r]=[]),o.trackingEvents[r].push(n))}))})),u(n=it.childrenByName(t,"NonLinear")).call(n,(function(t){var e,r,n,i,a={id:null,width:0,height:0,expandedWidth:0,expandedHeight:0,scalable:!0,maintainAspectRatio:!0,minSuggestedDuration:0,apiFramework:"static",adType:"nonLinearAd",type:null,staticResource:null,htmlResource:null,iframeResource:null,nonlinearClickThroughURLTemplate:null,nonlinearClickTrackingURLTemplates:[],adParameters:null};a.id=t.getAttribute("id")||null,a.width=t.getAttribute("width"),a.height=t.getAttribute("height"),a.expandedWidth=t.getAttribute("expandedWidth"),a.expandedHeight=t.getAttribute("expandedHeight"),a.scalable=it.parseBoolean(t.getAttribute("scalable")),a.maintainAspectRatio=it.parseBoolean(t.getAttribute("maintainAspectRatio")),a.minSuggestedDuration=it.parseDuration(t.getAttribute("minSuggestedDuration")),a.apiFramework=t.getAttribute("apiFramework"),u(e=it.childrenByName(t,"HTMLResource")).call(e,(function(t){a.type=t.getAttribute("creativeType")||"text/html",a.htmlResource=it.parseNodeText(t)})),u(r=it.childrenByName(t,"IFrameResource")).call(r,(function(t){a.type=t.getAttribute("creativeType")||0,a.iframeResource=it.parseNodeText(t)})),u(n=it.childrenByName(t,"StaticResource")).call(n,(function(t){a.type=t.getAttribute("creativeType")||0,a.staticResource=it.parseNodeText(t)}));var c=it.childByName(t,"AdParameters");c&&(a.adParameters=it.parseNodeText(c)),a.nonlinearClickThroughURLTemplate=it.parseNodeText(it.childByName(t,"NonLinearClickThrough")),u(i=it.childrenByName(t,"NonLinearClickTracking")).call(i,(function(t){a.nonlinearClickTrackingURLTemplates.push({id:t.getAttribute("id")||null,url:it.parseNodeText(t)})})),o.variations.push(a)})),o}function ft(t){var e=[];return u(t).call(t,(function(t){var r=lt(t);r&&e.push(r)})),e}function lt(t){var e;if("#comment"===t.nodeName)return null;var r,o={name:null,value:null,attributes:{},children:[]},i=t.attributes,a=t.childNodes;if(o.name=t.nodeName,t.attributes)for(var u in i)if(i.hasOwnProperty(u)){var c=i[u];c.nodeName&&c.nodeValue&&(o.attributes[c.nodeName]=c.nodeValue)}for(var s in a)if(a.hasOwnProperty(s)){var f=lt(a[s]);f&&o.children.push(f)}if(0===o.children.length||1===o.children.length&&b(e=["#cdata-section","#text"]).call(e,o.children[0].name)>=0){var l=it.parseNodeText(t);""!==l&&(o.value=l),o.children=[]}return null===(r=o).value&&0===n(r.attributes).length&&0===r.children.length?null:o}function pt(t){var e=[];return u(t).call(t,(function(t){var r,n,o={id:t.getAttribute("id")||null,adId:vt(t),sequence:t.getAttribute("sequence")||null,apiFramework:t.getAttribute("apiFramework")||null},i=[];u(r=it.childrenByName(t,"UniversalAdId")).call(r,(function(t){var e={idRegistry:t.getAttribute("idRegistry")||"unknown",value:it.parseNodeText(t)};i.push(e)}));var a=it.childByName(t,"CreativeExtensions");for(var c in a&&(n=ft(it.childrenByName(a,"CreativeExtension"))),t.childNodes){var s=t.childNodes[c],f=void 0;switch(s.nodeName){case"Linear":f=ct(s,o);break;case"NonLinearAds":f=st(s,o);break;case"CompanionAds":f=at(s,o)}f&&(i&&(f.universalAdIds=i),n&&(f.creativeExtensions=n),e.push(f))}})),e}function vt(t){return t.getAttribute("AdID")||t.getAttribute("adID")||t.getAttribute("adId")||null}var ht={Wrapper:{subElements:["VASTAdTagURI","Impression"]},BlockedAdCategories:{attributes:["authority"]},InLine:{subElements:["AdSystem","AdTitle","Impression","AdServingId","Creatives"]},Category:{attributes:["authority"]},Pricing:{attributes:["model","currency"]},Verification:{oneOfinLineResources:["JavaScriptResource","ExecutableResource"],attributes:["vendor"]},UniversalAdId:{attributes:["idRegistry"]},JavaScriptResource:{attributes:["apiFramework","browserOptional"]},ExecutableResource:{attributes:["apiFramework","type"]},Tracking:{attributes:["event"]},Creatives:{subElements:["Creative"]},Creative:{subElements:["UniversalAdId"]},Linear:{subElements:["MediaFiles","Duration"]},MediaFiles:{subElements:["MediaFile"]},MediaFile:{attributes:["delivery","type","width","height"]},Mezzanine:{attributes:["delivery","type","width","height"]},NonLinear:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"],attributes:["width","height"]},Companion:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"],attributes:["width","height"]},StaticResource:{attributes:["creativeType"]},Icons:{subElements:["Icon"]},Icon:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"]}};function dt(t,e){if(ht[t.nodeName]&&ht[t.nodeName].attributes){var r,n=i(r=ht[t.nodeName].attributes).call(r,(function(e){return!t.getAttribute(e)}));n.length>0&&mt({name:t.nodeName,parentName:t.parentNode.nodeName,attributes:n},e)}}function yt(t,e,r){var n=ht[t.nodeName],o=!r&&"Wrapper"!==t.nodeName;if(n&&!o){var a;if(n.subElements){var u,c=i(u=n.subElements).call(u,(function(e){return!it.childByName(t,e)}));c.length>0&&mt({name:t.nodeName,parentName:t.parentNode.nodeName,subElements:c},e)}r&&n.oneOfinLineResources&&(j(a=n.oneOfinLineResources).call(a,(function(e){return it.childByName(t,e)}))||mt({name:t.nodeName,parentName:t.parentNode.nodeName,oneOfResources:n.oneOfinLineResources},e))}}function gt(t){return t.children&&0!==t.children.length}function mt(t,e){var r=t.name,n=t.parentName,o=t.attributes,i=t.subElements,a=t.oneOfResources,u="Element '".concat(r,"'");e("VAST-warning",{message:u+=o?" missing required attribute(s) '".concat(o.join(", "),"' "):i?" missing required sub element(s) '".concat(i.join(", "),"' "):a?" must provide one of the following '".concat(a.join(", "),"' "):" is empty",parentElement:n,specVersion:4.1})}var bt=function t(e,r,n){if(e&&e.nodeName)if("InLine"===e.nodeName&&(n=!0),dt(e,r),gt(e)){yt(e,r,n);for(var o=0;o2&&void 0!==arguments[2]?arguments[2]:{},n=r.allowMultipleAds,o=r.followAdditionalWrappers,i=t.childNodes;for(var a in i){var u,c=i[a];if(-1!==b(u=["Wrapper","InLine"]).call(u,c.nodeName)&&("Wrapper"!==c.nodeName||!1!==o)){if(it.copyNodeAttribute("id",t,c),it.copyNodeAttribute("sequence",t,c),it.copyNodeAttribute("adType",t,c),"Wrapper"===c.nodeName)return{ad:Tt(c,e),type:"WRAPPER"};if("InLine"===c.nodeName)return{ad:wt(c,e,{allowMultipleAds:n}),type:"INLINE"}}}}function wt(t,e){return!1===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allowMultipleAds&&t.getAttribute("sequence")?null:At(t,e)}function At(t,e){var r,n=[];e&&bt(t,e);var o=t.childNodes,i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:t.id||null,sequence:t.sequence||null,adType:t.adType||null,adServingId:null,categories:[],expires:null,viewableImpression:[],system:null,title:null,description:null,advertiser:null,pricing:null,survey:null,errorURLTemplates:[],impressionURLTemplates:[],creatives:[],extensions:[],adVerifications:[],blockedAdCategories:[],followAdditionalWrappers:!0,allowMultipleAds:!1,fallbackOnNoAd:null}}(it.parseAttributes(t));for(var a in o){var u=o[a];switch(u.nodeName){case"Error":i.errorURLTemplates.push(it.parseNodeText(u));break;case"Impression":i.impressionURLTemplates.push({id:u.getAttribute("id")||null,url:it.parseNodeText(u)});break;case"Creatives":i.creatives=pt(it.childrenByName(u,"Creative"));break;case"Extensions":var c=it.childrenByName(u,"Extension");i.extensions=ft(c),i.adVerifications.length||(n=St(c));break;case"AdVerifications":i.adVerifications=Et(it.childrenByName(u,"Verification"));break;case"AdSystem":i.system={value:it.parseNodeText(u),version:u.getAttribute("version")||null};break;case"AdTitle":i.title=it.parseNodeText(u);break;case"AdServingId":i.adServingId=it.parseNodeText(u);break;case"Category":i.categories.push({authority:u.getAttribute("authority")||null,value:it.parseNodeText(u)});break;case"Expires":i.expires=P(it.parseNodeText(u),10);break;case"ViewableImpression":i.viewableImpression.push(Ot(u));break;case"Description":i.description=it.parseNodeText(u);break;case"Advertiser":i.advertiser={id:u.getAttribute("id")||null,value:it.parseNodeText(u)};break;case"Pricing":i.pricing={value:it.parseNodeText(u),model:u.getAttribute("model")||null,currency:u.getAttribute("currency")||null};break;case"Survey":i.survey=it.parseNodeText(u);break;case"BlockedAdCategories":i.blockedAdCategories.push({authority:u.getAttribute("authority")||null,value:it.parseNodeText(u)})}}return n.length&&(i.adVerifications=S(r=i.adVerifications).call(r,n)),i}function Tt(t,e){var r,n=At(t,e),o=t.getAttribute("followAdditionalWrappers"),i=t.getAttribute("allowMultipleAds"),a=t.getAttribute("fallbackOnNoAd");n.followAdditionalWrappers=!o||it.parseBoolean(o),n.allowMultipleAds=!!i&&it.parseBoolean(i),n.fallbackOnNoAd=a?it.parseBoolean(a):null;var c=it.childByName(t,"VASTAdTagURI");if(c?n.nextWrapperURL=it.parseNodeText(c):(c=it.childByName(t,"VASTAdTagURL"))&&(n.nextWrapperURL=it.parseNodeText(it.childByName(c,"URL"))),u(r=n.creatives).call(r,(function(t){var e;if(-1!==b(e=["linear","nonlinear"]).call(e,t.type)){var r,o;if(t.trackingEvents){n.trackingEvents||(n.trackingEvents={}),n.trackingEvents[t.type]||(n.trackingEvents[t.type]={});var i=function(e){var r=t.trackingEvents[e];Array.isArray(n.trackingEvents[t.type][e])||(n.trackingEvents[t.type][e]=[]),u(r).call(r,(function(r){n.trackingEvents[t.type][e].push(r)}))};for(var a in t.trackingEvents)i(a)}t.videoClickTrackingURLTemplates&&(Array.isArray(n.videoClickTrackingURLTemplates)||(n.videoClickTrackingURLTemplates=[]),u(r=t.videoClickTrackingURLTemplates).call(r,(function(t){n.videoClickTrackingURLTemplates.push(t)}))),t.videoClickThroughURLTemplate&&(n.videoClickThroughURLTemplate=t.videoClickThroughURLTemplate),t.videoCustomClickURLTemplates&&(Array.isArray(n.videoCustomClickURLTemplates)||(n.videoCustomClickURLTemplates=[]),u(o=t.videoCustomClickURLTemplates).call(o,(function(t){n.videoCustomClickURLTemplates.push(t)})))}})),n.nextWrapperURL)return n}function Et(t){var e=[];return u(t).call(t,(function(t){var r,n={resource:null,vendor:null,browserOptional:!1,apiFramework:null,type:null,parameters:null,trackingEvents:{}},o=t.childNodes;for(var i in it.assignAttributes(t.attributes,n),o){var a=o[i];switch(a.nodeName){case"JavaScriptResource":case"ExecutableResource":n.resource=it.parseNodeText(a),it.assignAttributes(a.attributes,n);break;case"VerificationParameters":n.parameters=it.parseNodeText(a)}}var c=it.childByName(t,"TrackingEvents");c&&u(r=it.childrenByName(c,"Tracking")).call(r,(function(t){var e=t.getAttribute("event"),r=it.parseNodeText(t);e&&r&&(Array.isArray(n.trackingEvents[e])||(n.trackingEvents[e]=[]),n.trackingEvents[e].push(r))})),e.push(n)})),e}function St(t){var e=null,r=[];return j(t).call(t,(function(t){return e=it.childByName(t,"AdVerifications")})),e&&(r=Et(it.childrenByName(e,"Verification"))),r}function Ot(t){var e={};e.id=t.getAttribute("id")||null;var r=t.childNodes;for(var n in r){var o=r[n],i=o.nodeName,a=it.parseNodeText(o);if(("Viewable"===i||"NotViewable"===i||"ViewUndetermined"===i)&&a){var u=i.toLowerCase();Array.isArray(e[u])||(e[u]=[]),e[u].push(a)}}return e}var Rt=function(){function t(){D(this,t),this._handlers=[]}return M(t,[{key:"on",value:function(t,e){if("function"!=typeof e)throw new TypeError("The handler argument must be of type Function. Received type ".concat(U(e)));if(!t)throw new TypeError("The event argument must be of type String. Received type ".concat(U(t)));return this._handlers.push({event:t,handler:e}),this}},{key:"once",value:function(t,e){return this.on(t,function(t,e,r){var n={fired:!1,wrapFn:void 0};function o(){n.fired||(t.off(e,n.wrapFn),n.fired=!0,r.bind(t).apply(void 0,arguments))}return n.wrapFn=o,o}(this,t,e))}},{key:"off",value:function(t,e){var r;return this._handlers=i(r=this._handlers).call(r,(function(r){return r.event!==t||r.handler!==e})),this}},{key:"emit",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o2?n-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return new L((function(i,a){var c;u(c=e.URLTemplateFilters).call(c,(function(e){t=e(t)})),e.parentURLs.push(t);var s=Date.now();e.emit("VAST-resolving",{url:t,previousUrl:n,wrapperDepth:r,maxWrapperDepth:e.maxWrapperDepth,timeout:e.fetchingOptions.timeout,wrapperAd:o}),e.urlHandler.get(t,e.fetchingOptions,(function(o,u){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=Math.round(Date.now()-s),l=N({url:t,previousUrl:n,wrapperDepth:r,error:o,duration:f},c);e.emit("VAST-resolved",l),_t(c.byteLength,f),o?a(o):i(u)}))}))}},{key:"initParsingStatus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.errorURLTemplates=[],this.fetchingOptions={timeout:t.timeout||Pt,withCredentials:t.withCredentials},this.maxWrapperDepth=t.wrapperLimit||10,this.parentURLs=[],this.parsingOptions={allowMultipleAds:t.allowMultipleAds},this.remainingAds=[],this.rootErrorURLTemplates=[],this.rootURL="",this.urlHandler=t.urlHandler||t.urlhandler||Ct,this.vastVersion=null,_t(t.byteLength,t.requestDuration)}},{key:"getRemainingAds",value:function(t){var e=this;if(0===this.remainingAds.length)return L.reject(new Error("No more ads are available for the given VAST"));var r=t?nt.flatten(this.remainingAds):this.remainingAds.shift();return this.errorURLTemplates=[],this.parentURLs=[],this.resolveAds(r,{wrapperDepth:0,url:this.rootURL}).then((function(t){return e.buildVASTResponse(t)}))}},{key:"getAndParseVAST",value:function(t){var e,r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.initParsingStatus(n),u(e=this.URLTemplateFilters).call(e,(function(e){t=e(t)})),this.rootURL=t,this.fetchVAST(t).then((function(e){return n.previousUrl=t,n.isRootVAST=!0,n.url=t,r.parse(e,n).then((function(t){return r.buildVASTResponse(t)}))}))}},{key:"parseVAST",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.initParsingStatus(r),r.isRootVAST=!0,this.parse(t,r).then((function(t){return e.buildVASTResponse(t)}))}},{key:"buildVASTResponse",value:function(t){var e,r={ads:(e={ads:t,errorURLTemplates:this.getErrorURLTemplates(),version:this.vastVersion}).ads||[],errorURLTemplates:e.errorURLTemplates||[],version:e.version||null};return this.completeWrapperResolving(r),r}},{key:"parseVastXml",value:function(t,e){var r=e.isRootVAST,n=void 0!==r&&r,o=e.url,i=void 0===o?null:o,a=e.wrapperDepth,u=void 0===a?0:a,c=e.allowMultipleAds,s=e.followAdditionalWrappers;if(!t||!t.documentElement||"VAST"!==t.documentElement.nodeName)throw this.emit("VAST-ad-parsed",{type:"ERROR",url:i,wrapperDepth:u}),new Error("Invalid VAST XMLDocument");var f=[],l=t.documentElement.childNodes,p=t.documentElement.getAttribute("version");for(var v in n&&p&&(this.vastVersion=p),l){var h=l[v];if("Error"===h.nodeName){var d=it.parseNodeText(h);n?this.rootErrorURLTemplates.push(d):this.errorURLTemplates.push(d)}else if("Ad"===h.nodeName){if(this.vastVersion&&E(this.vastVersion)<3)c=!0;else if(!1===c&&f.length>1)break;var y=xt(h,this.emit.bind(this),{allowMultipleAds:c,followAdditionalWrappers:s});y.ad?(f.push(y.ad),this.emit("VAST-ad-parsed",{type:y.type,url:i,wrapperDepth:u,adIndex:f.length-1,vastVersion:p})):this.trackVastError(this.getErrorURLTemplates(),{ERRORCODE:101})}}return f}},{key:"parse",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.url,n=void 0===r?null:r,o=e.resolveAll,i=void 0===o||o,a=e.wrapperSequence,u=void 0===a?null:a,c=e.previousUrl,s=void 0===c?null:c,f=e.wrapperDepth,l=void 0===f?0:f,p=e.isRootVAST,v=void 0!==p&&p,h=e.followAdditionalWrappers,d=e.allowMultipleAds,y=[];this.vastVersion&&E(this.vastVersion)<3&&v&&(d=!0);try{y=this.parseVastXml(t,{isRootVAST:v,url:n,wrapperDepth:l,allowMultipleAds:d,followAdditionalWrappers:h})}catch(t){return L.reject(t)}return 1===y.length&&null!=u&&(y[0].sequence=u),!1===i&&(this.remainingAds=it.splitVAST(y),y=this.remainingAds.shift()),this.resolveAds(y,{wrapperDepth:l,previousUrl:s,url:n})}},{key:"resolveAds",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,n=r.wrapperDepth,o=r.previousUrl,i=r.url,a=[];return o=i,u(e).call(e,(function(e){var r=t.resolveWrappers(e,n,o);a.push(r)})),L.all(a).then((function(e){var r=nt.flatten(e);if(!r&&t.remainingAds.length>0){var a=t.remainingAds.shift();return t.resolveAds(a,{wrapperDepth:n,previousUrl:o,url:i})}return r}))}},{key:"resolveWrappers",value:function(t,e,r){var n=this;return new L((function(o){var i,a,c;if(e++,!t.nextWrapperURL)return delete t.nextWrapperURL,o(t);if(e>=n.maxWrapperDepth||-1!==b(i=n.parentURLs).call(i,t.nextWrapperURL))return t.errorCode=302,delete t.nextWrapperURL,o(t);t.nextWrapperURL=it.resolveVastAdTagURI(t.nextWrapperURL,r),u(a=n.URLTemplateFilters).call(a,(function(e){t.nextWrapperURL=e(t.nextWrapperURL)}));var s=null!==(c=n.parsingOptions.allowMultipleAds)&&void 0!==c?c:t.allowMultipleAds,f=t.sequence;n.fetchVAST(t.nextWrapperURL,e,r,t).then((function(i){return n.parse(i,{url:t.nextWrapperURL,previousUrl:r,wrapperSequence:f,wrapperDepth:e,followAdditionalWrappers:t.followAdditionalWrappers,allowMultipleAds:s}).then((function(e){if(delete t.nextWrapperURL,0===e.length)return t.creatives=[],o(t);u(e).call(e,(function(e){e&&it.mergeWrapperAdData(e,t)})),o(e)}))})).catch((function(e){t.errorCode=301,t.errorMessage=e.message,o(t)}))}))}},{key:"completeWrapperResolving",value:function(t){if(0===t.ads.length)this.trackVastError(t.errorURLTemplates,{ERRORCODE:303});else for(var e=t.ads.length-1;e>=0;e--){var r,n,o=t.ads[e];(o.errorCode||0===o.creatives.length)&&(this.trackVastError(S(r=o.errorURLTemplates).call(r,t.errorURLTemplates),{ERRORCODE:o.errorCode||303},{ERRORMESSAGE:o.errorMessage||""},{extensions:o.extensions},{system:o.system}),I(n=t.ads).call(n,e,1))}}}]),r}(Rt),Bt=null,Vt={data:{},length:0,getItem:function(t){return this.data[t]},setItem:function(t,e){this.data[t]=e,this.length=n(this.data).length},removeItem:function(t){delete this.data[t],this.length=n(this.data).length},clear:function(){this.data={},this.length=0}},Ht=function(){function t(){D(this,t),this.storage=this.initStorage()}return M(t,[{key:"initStorage",value:function(){if(Bt)return Bt;try{Bt="undefined"!=typeof window&&null!==window?window.localStorage||window.sessionStorage:null}catch(t){Bt=null}return Bt&&!this.isStorageDisabled(Bt)||(Bt=Vt).clear(),Bt}},{key:"isStorageDisabled",value:function(t){var e="__VASTStorage__";try{if(t.setItem(e,e),t.getItem(e)!==e)return t.removeItem(e),!0}catch(t){return!0}return t.removeItem(e),!1}},{key:"getItem",value:function(t){return this.storage.getItem(t)}},{key:"setItem",value:function(t,e){return this.storage.setItem(t,e)}},{key:"removeItem",value:function(t){return this.storage.removeItem(t)}},{key:"clear",value:function(){return this.storage.clear()}}]),t}(),qt=function(){function t(e,r,n){D(this,t),this.cappingFreeLunch=e||0,this.cappingMinimumTimeInterval=r||0,this.defaultOptions={withCredentials:!1,timeout:0},this.vastParser=new Ft,this.storage=n||new Ht,void 0===this.lastSuccessfulAd&&(this.lastSuccessfulAd=0),void 0===this.totalCalls&&(this.totalCalls=0),void 0===this.totalCallsTimeout&&(this.totalCallsTimeout=0)}return M(t,[{key:"getParser",value:function(){return this.vastParser}},{key:"lastSuccessfulAd",get:function(){return this.storage.getItem("vast-client-last-successful-ad")},set:function(t){this.storage.setItem("vast-client-last-successful-ad",t)}},{key:"totalCalls",get:function(){return this.storage.getItem("vast-client-total-calls")},set:function(t){this.storage.setItem("vast-client-total-calls",t)}},{key:"totalCallsTimeout",get:function(){return this.storage.getItem("vast-client-total-calls-timeout")},set:function(t){this.storage.setItem("vast-client-total-calls-timeout",t)}},{key:"hasRemainingAds",value:function(){return this.vastParser.remainingAds.length>0}},{key:"getNextAds",value:function(t){return this.vastParser.getRemainingAds(t)}},{key:"get",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Date.now();return(r=N({},this.defaultOptions,r)).hasOwnProperty("resolveAll")||(r.resolveAll=!1),this.totalCallsTimeout=e.totalCalls)return i(new Error(S(a="VAST call canceled – FreeLunch capping not reached yet ".concat(e.totalCalls,"/")).call(a,e.cappingFreeLunch)));var u=n-e.lastSuccessfulAd;if(u<0)e.lastSuccessfulAd=0;else if(u3&&void 0!==arguments[3]?arguments[3]:null;for(var u in D(this,n),(i=e.call(this)).ad=r,i.creative=o,i.variation=a,i.muted=!1,i.impressed=!1,i.skippable=!1,i.trackingEvents={},i.lastPercentage=0,i._alreadyTriggeredQuartiles={},i.emitAlwaysEvents=["creativeView","start","firstQuartile","midpoint","thirdQuartile","complete","resume","pause","rewind","skip","closeLinear","close"],i.creative.trackingEvents){var c=i.creative.trackingEvents[u];i.trackingEvents[u]=m(c).call(c,0)}return ut(i.creative)?i._initLinearTracking():i._initVariationTracking(),t&&i.on("start",(function(){t.lastSuccessfulAd=Date.now()})),i}return M(n,[{key:"_initLinearTracking",value:function(){this.linear=!0,this.skipDelay=this.creative.skipDelay,this.setDuration(this.creative.duration),this.clickThroughURLTemplate=this.creative.videoClickThroughURLTemplate,this.clickTrackingURLTemplates=this.creative.videoClickTrackingURLTemplates}},{key:"_initVariationTracking",value:function(){if(this.linear=!1,this.skipDelay=-1,this.variation){for(var t in this.variation.trackingEvents){var e,r=this.variation.trackingEvents[t];this.trackingEvents[t]?this.trackingEvents[t]=S(e=this.trackingEvents[t]).call(e,m(r).call(r,0)):this.trackingEvents[t]=m(r).call(r,0)}"nonLinearAd"===this.variation.adType?(this.clickThroughURLTemplate=this.variation.nonlinearClickThroughURLTemplate,this.clickTrackingURLTemplates=this.variation.nonlinearClickTrackingURLTemplates,this.setDuration(this.variation.minSuggestedDuration)):function(t){return"companionAd"===t.adType}(this.variation)&&(this.clickThroughURLTemplate=this.variation.companionClickThroughURLTemplate,this.clickTrackingURLTemplates=this.variation.companionClickTrackingURLTemplates)}}},{key:"setDuration",value:function(t){nt.isValidTimeValue(t)&&(this.assetDuration=t,this.quartiles={firstQuartile:Math.round(25*this.assetDuration)/100,midpoint:Math.round(50*this.assetDuration)/100,thirdQuartile:Math.round(75*this.assetDuration)/100})}},{key:"setProgress",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(nt.isValidTimeValue(t)&&"object"===U(r)){var n=this.skipDelay||-1;if(-1===n||this.skippable||(n>t?this.emit("skip-countdown",n-t):(this.skippable=!0,this.emit("skip-countdown",0))),this.assetDuration>0){var o=Math.round(t/this.assetDuration*100),i=[];if(t>0){i.push("start");for(var a=this.lastPercentage;a1&&void 0!==arguments[1]?arguments[1]:{};"boolean"==typeof t&&"object"===U(e)&&(this.muted!==t&&this.track(t?"mute":"unmute",{macros:e}),this.muted=t)}},{key:"setPaused",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"boolean"==typeof t&&"object"===U(e)&&(this.paused!==t&&this.track(t?"pause":"resume",{macros:e}),this.paused=t)}},{key:"setFullscreen",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"boolean"==typeof t&&"object"===U(e)&&(this.fullscreen!==t&&this.track(t?"fullscreen":"exitFullscreen",{macros:e}),this.fullscreen=t)}},{key:"setExpand",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"boolean"==typeof t&&"object"===U(e)&&(this.expanded!==t&&(this.track(t?"expand":"collapse",{macros:e}),this.track(t?"playerExpand":"playerCollapse",{macros:e})),this.expanded=t)}},{key:"setSkipDelay",value:function(t){nt.isValidTimeValue(t)&&(this.skipDelay=t)}},{key:"trackImpression",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===U(t)&&(this.impressed||(this.impressed=!0,this.trackURLs(this.ad.impressionURLTemplates,t),this.track("creativeView",{macros:t})))}},{key:"error",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"object"===U(t)&&"boolean"==typeof e&&this.trackURLs(this.ad.errorURLTemplates,t,{isCustomCode:e})}},{key:"errorWithCode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"string"==typeof t&&"boolean"==typeof e&&(this.error({ERRORCODE:t},e),console.log("The method errorWithCode is deprecated, please use vast tracker error method instead"))}},{key:"complete",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===U(t)&&this.track("complete",{macros:t})}},{key:"notUsed",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===U(t)&&(this.track("notUsed",{macros:t}),this.trackingEvents=[])}},{key:"otherAdInteraction",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===U(t)&&this.track("otherAdInteraction",{macros:t})}},{key:"acceptInvitation",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===U(t)&&this.track("acceptInvitation",{macros:t})}},{key:"adExpand",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===U(t)&&this.track("adExpand",{macros:t})}},{key:"adCollapse",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===U(t)&&this.track("adCollapse",{macros:t})}},{key:"minimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===U(t)&&this.track("minimize",{macros:t})}},{key:"verificationNotExecuted",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof t&&"object"===U(e)){var r;if(!this.ad||!this.ad.adVerifications||!this.ad.adVerifications.length)throw new Error("No adVerifications provided");if(!t)throw new Error("No vendor provided, unable to find associated verificationNotExecuted");var n=C(r=this.ad.adVerifications).call(r,(function(e){return e.vendor===t}));if(!n)throw new Error("No associated verification element found for vendor: ".concat(t));var o=n.trackingEvents;if(o&&o.verificationNotExecuted){var i=o.verificationNotExecuted;this.trackURLs(i,e),this.emit("verificationNotExecuted",{trackingURLTemplates:i})}}}},{key:"overlayViewDuration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t&&"object"===U(e)&&(e.ADPLAYHEAD=t,this.track("overlayViewDuration",{macros:e}))}},{key:"close",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===U(t)&&this.track(this.linear?"closeLinear":"close",{macros:t})}},{key:"skip",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===U(t)&&this.track("skip",{macros:t})}},{key:"load",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===U(t)&&this.track("loaded",{macros:t})}},{key:"click",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((null===t||"string"==typeof t)&&"object"===U(e)){this.clickTrackingURLTemplates&&this.clickTrackingURLTemplates.length&&this.trackURLs(this.clickTrackingURLTemplates,e);var n=this.clickThroughURLTemplate||t,o=r({},e);if(n){this.progress&&(o.ADPLAYHEAD=this.progressFormatted());var i=nt.resolveURLTemplates([n],o)[0];this.emit("clickthrough",i)}}}},{key:"track",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.macros,n=void 0===r?{}:r,o=e.once,i=void 0!==o&&o;if("object"===U(n)){var a,u,c;"closeLinear"===t&&!this.trackingEvents[t]&&this.trackingEvents.close&&(t="close");var s=this.trackingEvents[t],f=b(a=this.emitAlwaysEvents).call(a,t)>-1;s?(this.emit(t,{trackingURLTemplates:s}),this.trackURLs(s,n)):f&&this.emit(t,null),i&&(delete this.trackingEvents[t],f&&I(u=this.emitAlwaysEvents).call(u,b(c=this.emitAlwaysEvents).call(c,t),1))}}},{key:"trackURLs",value:function(t){var e,n,o,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=r({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});this.linear&&(this.creative&&this.creative.mediaFiles&&this.creative.mediaFiles[0]&&this.creative.mediaFiles[0].fileURL&&(u.ASSETURI=this.creative.mediaFiles[0].fileURL),this.progress&&(u.ADPLAYHEAD=this.progressFormatted())),null!==(o=this.creative)&&void 0!==o&&null!==(i=o.universalAdIds)&&void 0!==i&&i.length&&(u.UNIVERSALADID=w(e=this.creative.universalAdIds).call(e,(function(t){var e;return S(e=t.idRegistry).call(e," ",t.value)})).join(",")),this.ad&&(this.ad.sequence&&(u.PODSEQUENCE=this.ad.sequence),this.ad.adType&&(u.ADTYPE=this.ad.adType),this.ad.adServingId&&(u.ADSERVINGID=this.ad.adServingId),this.ad.categories&&this.ad.categories.length&&(u.ADCATEGORIES=w(n=this.ad.categories).call(n,(function(t){return t.value})).join(",")),this.ad.blockedAdCategories&&this.ad.blockedAdCategories.length&&(u.BLOCKEDADCATEGORIES=this.ad.blockedAdCategories)),nt.track(t,u,a)}},{key:"convertToTimecode",value:function(t){var e,r,n;if(!nt.isValidTimeValue(t))return"";var o=1e3*t,i=Math.floor(o/36e5),a=Math.floor(o/6e4%60),u=Math.floor(o/1e3%60),c=Math.floor(o%1e3);return S(e=S(r=S(n="".concat(nt.addLeadingZeros(i,2),":")).call(n,nt.addLeadingZeros(a,2),":")).call(r,nt.addLeadingZeros(u,2),".")).call(e,nt.addLeadingZeros(c,3))}},{key:"progressFormatted",value:function(){return this.convertToTimecode(this.progress)}}]),n}(Rt);t.VASTClient=qt,t.VASTParser=Ft,t.VASTTracker=Wt,f(t,"__esModule",{value:!0})}(e)},40175:function(t,e,r){"use strict";r.d(e,{Z:function(){return l}});var n=r(2991),o=r.n(n),i=(r(74916),r(15306),r(25843)),a=r.n(i),u=function(t){var e;for(var r in this.id=t.getAttribute("id"),this.allowMultipleAds=t.getAttribute("allowMultipleAds"),this.followRedirects=t.getAttribute("followRedirects"),this.vastAdData=null,this.adTagURI=null,this.customData=null,t.childNodes){var n=t.childNodes[r];switch(n.localName){case"AdTagURI":this.adTagURI={templateType:n.getAttribute("templateType"),uri:a()(e=n.textContent||n.text||"").call(e)};break;case"VASTAdData":for(this.vastAdData=n.firstChild;this.vastAdData&&1!==this.vastAdData.nodeType;)this.vastAdData=this.vastAdData.nextSibling;break;case"CustomAdData":this.customData=n}}};function c(t,e){var r=[];for(var n in t.childNodes){var o=t.childNodes[n];o.nodeName!==e&&e!=="vmap:"+o.nodeName&&o.nodeName!=="vmap:"+e||r.push(o)}return r}function s(t){var e={attributes:{},children:{},value:{}};e.value=function(t){var e;if(!t||!t.childNodes)return{};var r=t.childNodes,n=[];for(var o in r){var i=r[o];"#cdata-section"===i.nodeName&&n.push(i)}if(n&&n.length>0)try{return JSON.parse(n[0].data)}catch(t){}var u="";for(var c in r){var s=r[c];switch(s.nodeName){case"#text":u+=a()(e=s.textContent).call(e);break;case"#cdata-section":u+=s.data}}return u}(t);var r=t.attributes;if(r)for(var n in r){var o=r[n];o.nodeName&&void 0!==o.nodeValue&&null!==o.nodeValue&&(e.attributes[o.nodeName]=o.nodeValue)}var i=t.childNodes;if(i)for(var u in i){var c=i[u];c.nodeName&&"#"!==c.nodeName.substring(0,1)&&(e.children[c.nodeName]=s(c))}return e}var f=function(){function t(t){var e;for(var r in this.timeOffset=t.getAttribute("timeOffset"),this.breakType=t.getAttribute("breakType"),this.breakId=t.getAttribute("breakId"),this.repeatAfter=t.getAttribute("repeatAfter"),this.adSource=null,this.trackingEvents=[],this.extensions=[],t.childNodes){var n=t.childNodes[r];switch(n.localName){case"AdSource":this.adSource=new u(n);break;case"TrackingEvents":for(var i in n.childNodes){var f,l=n.childNodes[i];"Tracking"===l.localName&&this.trackingEvents.push({event:l.getAttribute("event"),uri:a()(f=l.textContent||l.text||"").call(f)})}break;case"Extensions":this.extensions=o()(e=c(n,"Extension")).call(e,(function(t){return s(t)}))}}}var e=t.prototype;return e.track=function(t,e){for(var r in this.trackingEvents){var n=this.trackingEvents[r];if(n.event===t){var o=n.uri;"error"===n.event&&(o=o.replace("[ERRORCODE]",e)),this.tracker(o)}}},e.tracker=function(t){"undefined"!=typeof window&&null!==window&&((new Image).src=t)},t}(),l=function(t){var e;if(!t||!t.documentElement||"VMAP"!==t.documentElement.localName)throw new Error("Not a VMAP document");for(var r in this.version=t.documentElement.getAttribute("version"),this.adBreaks=[],this.extensions=[],t.documentElement.childNodes){var n=t.documentElement.childNodes[r];switch(n.localName){case"AdBreak":this.adBreaks.push(new f(n));break;case"Extensions":this.extensions=o()(e=c(n,"Extension")).call(e,(function(t){return s(t)}))}}}},55056:function(t,e,r){t.exports=r(80203)},73198:function(t,e,r){"use strict";var n=r(93476),o=r(81643),i=r(78914),a=r(63401),u=r(5888),c=r(4963),s=r(48826),f=r(34466),l=r(98418),p=r(46130),v=r(18760),h=r(24200),d=r(52800),y=r(64830);t.exports=function(t){return new n((function(e,r){var n,g,m=t.data,b=t.headers,x=t.responseType;function w(){t.cancelToken&&t.cancelToken.unsubscribe(g),t.signal&&t.signal.removeEventListener("abort",g)}a.isFormData(m)&&a.isStandardBrowserEnv()&&delete b["Content-Type"];var A=new XMLHttpRequest;if(t.auth){var T=t.auth.username||"",E=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";b.Authorization="Basic "+btoa(T+":"+E)}var S=f(t.baseURL,t.url);function O(){if(A){var n="getAllResponseHeaders"in A?l(A.getAllResponseHeaders()):null,o={data:x&&"text"!==x&&"json"!==x?A.response:A.responseText,status:A.status,statusText:A.statusText,headers:n,config:t,request:A};u((function(t){e(t),w()}),(function(t){r(t),w()}),o),A=null}}if(A.open(t.method.toUpperCase(),s(S,t.params,t.paramsSerializer),!0),A.timeout=t.timeout,"onloadend"in A?A.onloadend=O:A.onreadystatechange=function(){var t;A&&4===A.readyState&&(0!==A.status||A.responseURL&&0===o(t=A.responseURL).call(t,"file:"))&&setTimeout(O)},A.onabort=function(){A&&(r(new h("Request aborted",h.ECONNABORTED,t,A)),A=null)},A.onerror=function(){r(new h("Network Error",h.ERR_NETWORK,t,A,A)),A=null},A.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||v;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new h(e,n.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,t,A)),A=null},a.isStandardBrowserEnv()){var R=(t.withCredentials||p(S))&&t.xsrfCookieName?c.read(t.xsrfCookieName):void 0;R&&(b[t.xsrfHeaderName]=R)}"setRequestHeader"in A&&i(a).call(a,b,(function(t,e){void 0===m&&"content-type"===e.toLowerCase()?delete b[e]:A.setRequestHeader(e,t)})),a.isUndefined(t.withCredentials)||(A.withCredentials=!!t.withCredentials),x&&"json"!==x&&(A.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&A.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&A.upload&&A.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(g=function(t){A&&(r(!t||t&&t.type?new d:t),A.abort(),A=null)},t.cancelToken&&t.cancelToken.subscribe(g),t.signal&&(t.signal.aborted?g():t.signal.addEventListener("abort",g))),m||(m=null);var k=y(S);k&&-1===o(n=["http","https","file"]).call(n,k)?r(new h("Unsupported protocol "+k+":",h.ERR_BAD_REQUEST,t)):A.send(m)}))}},80203:function(t,e,r){"use strict";var n=r(93476);r(66992),r(41539),r(88674),r(78783),r(33948);var o=r(63401),i=r(29366),a=r(81112),u=r(3674),c=function t(e){var r=new a(e),n=i(a.prototype.request,r);return o.extend(n,a.prototype,r),o.extend(n,r),n.create=function(r){return t(u(e,r))},n}(r(89050));c.Axios=a,c.CanceledError=r(52800),c.CancelToken=r(34078),c.isCancel=r(81907),c.VERSION=r(98963).version,c.toFormData=r(47427),c.AxiosError=r(24200),c.Cancel=c.CanceledError,c.all=function(t){return n.all(t)},c.spread=r(87998),c.isAxiosError=r(1720),t.exports=c,t.exports.default=c},34078:function(t,e,r){"use strict";var n=r(93476),o=r(81643),i=r(92762),a=r(52800);function u(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new n((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i(a).call(a,["delete","get","head"],(function(t){h.headers[t]={}})),i(a).call(a,["post","put","patch"],(function(t){h.headers[t]=a.merge(l)})),t.exports=h},18760:function(t){"use strict";t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},98963:function(t){t.exports={version:"0.27.2"}},29366:function(t){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n=0)return;var n;f[e]="set-cookie"===e?a(n=f[e]?f[e]:[]).call(n,[r]):f[e]?f[e]+", "+r:r}})),f):f}},64830:function(t,e,r){"use strict";r(74916),t.exports=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}},87998:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},47427:function(t,e,r){"use strict";var n=r(81643),o=r(78914),i=r(54804),a=r(59340);r(28733),r(41539),r(88674);var u=r(63401);t.exports=function(t,e){e=e||new FormData;var r=[];function c(t){return null===t?"":u.isDate(t)?t.toISOString():u.isArrayBuffer(t)||u.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(s,f){if(u.isPlainObject(s)||u.isArray(s)){if(-1!==n(r).call(r,s))throw Error("Circular reference detected in "+f);r.push(s),o(u).call(u,s,(function(r,n){if(!u.isUndefined(r)){var s,l=f?f+"."+n:n;if(r&&!f&&"object"==typeof r)if(i(u).call(u,n,"{}"))r=a(r);else if(i(u).call(u,n,"[]")&&(s=u.toArray(r)))return void o(s).call(s,(function(t){!u.isUndefined(t)&&e.append(l,c(t))}));t(r,l)}})),r.pop()}else e.append(f,c(s))}(t),e}},73465:function(t,e,r){"use strict";var n,o=r(78914),i=r(86902),a=r(98963).version,u=r(24200),c={};o(n=["object","boolean","number","function","string","symbol"]).call(n,(function(t,e){c[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var s={};c.transitional=function(t,e,r){function n(t,e){return"[Axios v"+a+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,i){if(!1===t)throw new u(n(o," has been removed"+(e?" in "+e:"")),u.ERR_DEPRECATED);return e&&!s[o]&&(s[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}},t.exports={assertOptions:function(t,e,r){if("object"!=typeof t)throw new u("options must be an object",u.ERR_BAD_OPTION_VALUE);for(var n=i(t),o=n.length;o-- >0;){var a=n[o],c=e[a];if(c){var s=t[a],f=void 0===s||c(s,a,t);if(!0!==f)throw new u("option "+a+" must be "+f,u.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new u("Unknown option "+a,u.ERR_BAD_OPTION)}},validators:c}},63401:function(t,e,r){"use strict";var n=r(3649),o=r(21611),i=r(25843),a=r(51942),u=r(48604),c=r(81643);r(41539),r(18264),r(39575),r(76938),r(39714),r(74916),r(15306),r(66992),r(82472),r(92990),r(18927),r(33105),r(35035),r(74345),r(7174),r(32846),r(44731),r(77209),r(96319),r(58867),r(37789),r(33739),r(29368),r(14483),r(12056),r(3462),r(30678),r(27462),r(33824),r(55021),r(12974),r(15016);var s,f=r(29366),l=Object.prototype.toString,p=(s=Object.create(null),function(t){var e=l.call(t);return s[e]||(s[e]=n(e).call(e,8,-1).toLowerCase())});function v(t){return t=t.toLowerCase(),function(e){return p(e)===t}}function h(t){return Array.isArray(t)}function d(t){return void 0===t}var y=v("ArrayBuffer");function g(t){return null!==t&&"object"==typeof t}function m(t){if("object"!==p(t))return!1;var e=o(t);return null===e||e===Object.prototype}var b=v("Date"),x=v("File"),w=v("Blob"),A=v("FileList");function T(t){return"[object Function]"===l.call(t)}var E=v("URLSearchParams");function S(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),h(t))for(var r=0,n=t.length;r0;)c[a=n[i]]||(e[a]=t[a],c[a]=!0);t=o(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:p,kindOfTest:v,endsWith:function(t,e,r){t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;var n=c(t).call(t,e,r);return-1!==n&&n===r},toArray:function(t){if(!t)return null;var e=t.length;if(d(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r},isTypedArray:R,isFileList:A}},21924:function(t,e,r){"use strict";var n=r(40210),o=r(55559),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},55559:function(t,e,r){"use strict";var n=r(58612),o=r(40210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||n.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),s=o("%Object.defineProperty%",!0),f=o("%Math.max%");if(s)try{s({},"a",{value:1})}catch(t){s=null}t.exports=function(t){var e=u(n,a,arguments);if(c&&s){var r=c(e,"length");r.configurable&&s(e,"length",{value:1+f(0,t.length-(arguments.length-1))})}return e};var l=function(){return u(n,i,arguments)};s?s(t.exports,"apply",{value:l}):t.exports.apply=l},66820:function(t,e,r){var n=r(56243);t.exports=n},5023:function(t,e,r){var n=r(72369);t.exports=n},15684:function(t,e,r){var n=r(19373);t.exports=n},65362:function(t,e,r){var n=r(63383);t.exports=n},32271:function(t,e,r){var n=r(14471);t.exports=n},43536:function(t,e,r){var n=r(41910);t.exports=n},45012:function(t,e,r){var n=r(23059);t.exports=n},78690:function(t,e,r){var n=r(16670);t.exports=n},25626:function(t,e,r){var n=r(27460);t.exports=n},54493:function(t,e,r){r(77971),r(53242);var n=r(54058);t.exports=n.Array.from},15367:function(t,e,r){r(85906);var n=r(35703);t.exports=n("Array").concat},62383:function(t,e,r){r(21501);var n=r(35703);t.exports=n("Array").filter},17671:function(t,e,r){r(80833);var n=r(35703);t.exports=n("Array").find},99324:function(t,e,r){r(2437);var n=r(35703);t.exports=n("Array").forEach},80991:function(t,e,r){r(97690);var n=r(35703);t.exports=n("Array").includes},8700:function(t,e,r){r(99076);var n=r(35703);t.exports=n("Array").indexOf},6442:function(t,e,r){r(75915);var n=r(35703);t.exports=n("Array").lastIndexOf},23866:function(t,e,r){r(68787);var n=r(35703);t.exports=n("Array").map},30891:function(t,e,r){r(81876);var n=r(35703);t.exports=n("Array").reduce},24900:function(t,e,r){r(60186);var n=r(35703);t.exports=n("Array").slice},3824:function(t,e,r){r(36026);var n=r(35703);t.exports=n("Array").some},2948:function(t,e,r){r(4115);var n=r(35703);t.exports=n("Array").sort},78209:function(t,e,r){r(98611);var n=r(35703);t.exports=n("Array").splice},13830:function(t,e,r){r(66274),r(77971);var n=r(22902);t.exports=n},91031:function(t,e,r){r(52595),t.exports=r(21899)},56043:function(t,e,r){var n=r(7046),o=r(15367),i=Array.prototype;t.exports=function(t){var e=t.concat;return t===i||n(i,t)&&e===i.concat?o:e}},1727:function(t,e,r){var n=r(7046),o=r(17796),i=String.prototype;t.exports=function(t){var e=t.endsWith;return"string"==typeof t||t===i||n(i,t)&&e===i.endsWith?o:e}},2480:function(t,e,r){var n=r(7046),o=r(62383),i=Array.prototype;t.exports=function(t){var e=t.filter;return t===i||n(i,t)&&e===i.filter?o:e}},32236:function(t,e,r){var n=r(7046),o=r(17671),i=Array.prototype;t.exports=function(t){var e=t.find;return t===i||n(i,t)&&e===i.find?o:e}},58557:function(t,e,r){var n=r(7046),o=r(80991),i=r(21631),a=Array.prototype,u=String.prototype;t.exports=function(t){var e=t.includes;return t===a||n(a,t)&&e===a.includes?o:"string"==typeof t||t===u||n(u,t)&&e===u.includes?i:e}},34570:function(t,e,r){var n=r(7046),o=r(8700),i=Array.prototype;t.exports=function(t){var e=t.indexOf;return t===i||n(i,t)&&e===i.indexOf?o:e}},57564:function(t,e,r){var n=r(7046),o=r(6442),i=Array.prototype;t.exports=function(t){var e=t.lastIndexOf;return t===i||n(i,t)&&e===i.lastIndexOf?o:e}},88287:function(t,e,r){var n=r(7046),o=r(23866),i=Array.prototype;t.exports=function(t){var e=t.map;return t===i||n(i,t)&&e===i.map?o:e}},51337:function(t,e,r){var n=r(7046),o=r(49335),i=String.prototype;t.exports=function(t){var e=t.padStart;return"string"==typeof t||t===i||n(i,t)&&e===i.padStart?o:e}},68025:function(t,e,r){var n=r(7046),o=r(30891),i=Array.prototype;t.exports=function(t){var e=t.reduce;return t===i||n(i,t)&&e===i.reduce?o:e}},69601:function(t,e,r){var n=r(7046),o=r(24900),i=Array.prototype;t.exports=function(t){var e=t.slice;return t===i||n(i,t)&&e===i.slice?o:e}},28299:function(t,e,r){var n=r(7046),o=r(3824),i=Array.prototype;t.exports=function(t){var e=t.some;return t===i||n(i,t)&&e===i.some?o:e}},69355:function(t,e,r){var n=r(7046),o=r(2948),i=Array.prototype;t.exports=function(t){var e=t.sort;return t===i||n(i,t)&&e===i.sort?o:e}},18339:function(t,e,r){var n=r(7046),o=r(78209),i=Array.prototype;t.exports=function(t){var e=t.splice;return t===i||n(i,t)&&e===i.splice?o:e}},62774:function(t,e,r){var n=r(7046),o=r(13348),i=String.prototype;t.exports=function(t){var e=t.trim;return"string"==typeof t||t===i||n(i,t)&&e===i.trim?o:e}},84426:function(t,e,r){r(32619);var n=r(54058),o=r(79730);n.JSON||(n.JSON={stringify:JSON.stringify}),t.exports=function(t,e,r){return o(n.JSON.stringify,null,arguments)}},26712:function(t,e,r){r(56883);var n=r(54058);t.exports=n.Number.isFinite},45999:function(t,e,r){r(49221);var n=r(54058);t.exports=n.Object.assign},35254:function(t,e,r){r(53882);var n=r(54058).Object;t.exports=function(t,e){return n.create(t,e)}},7702:function(t,e,r){r(74979);var n=r(54058).Object,o=t.exports=function(t,e){return n.defineProperties(t,e)};n.defineProperties.sham&&(o.sham=!0)},48171:function(t,e,r){r(86450);var n=r(54058).Object,o=t.exports=function(t,e,r){return n.defineProperty(t,e,r)};n.defineProperty.sham&&(o.sham=!0)},286:function(t,e,r){r(46924);var n=r(54058).Object,o=t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)};n.getOwnPropertyDescriptor.sham&&(o.sham=!0)},92766:function(t,e,r){r(88482);var n=r(54058);t.exports=n.Object.getOwnPropertyDescriptors},83288:function(t,e,r){r(9816);var n=r(54058).Object;t.exports=function(t){return n.getOwnPropertyNames(t)}},30498:function(t,e,r){r(35824);var n=r(54058);t.exports=n.Object.getOwnPropertySymbols},13966:function(t,e,r){r(17405);var n=r(54058);t.exports=n.Object.getPrototypeOf},48494:function(t,e,r){r(21724);var n=r(54058);t.exports=n.Object.keys},3065:function(t,e,r){r(90108);var n=r(54058);t.exports=n.Object.setPrototypeOf},98430:function(t,e,r){r(26614);var n=r(54058);t.exports=n.Object.values},7579:function(t,e,r){r(49718);var n=r(54058);t.exports=n.parseFloat},98524:function(t,e,r){r(14038);var n=r(54058);t.exports=n.parseInt},52956:function(t,e,r){r(47627),r(66274),r(55967),r(98881),r(4560),r(91302),r(44349),r(77971);var n=r(54058);t.exports=n.Promise},14983:function(t,e,r){r(7453);var n=r(54058);t.exports=n.Reflect.construct},17796:function(t,e,r){r(1293);var n=r(35703);t.exports=n("String").endsWith},21631:function(t,e,r){r(11035);var n=r(35703);t.exports=n("String").includes},49335:function(t,e,r){r(92075);var n=r(35703);t.exports=n("String").padStart},13348:function(t,e,r){r(57398);var n=r(35703);t.exports=n("String").trim},57473:function(t,e,r){r(85906),r(55967),r(35824),r(8555),r(52615),r(21732),r(35903),r(1825),r(28394),r(45915),r(61766),r(62737),r(89911),r(74315),r(63131),r(64714),r(70659),r(69120),r(79413),r(1502);var n=r(54058);t.exports=n.Symbol},24227:function(t,e,r){r(66274),r(55967),r(77971),r(1825);var n=r(11477);t.exports=n.f("iterator")},32209:function(t,e,r){var n=r(66820);t.exports=n},30888:function(t,e,r){r(9668);var n=r(5023);t.exports=n},69447:function(t,e,r){var n=r(15684);t.exports=n},60269:function(t,e,r){var n=r(65362);t.exports=n},76094:function(t,e,r){var n=r(32271);t.exports=n},73685:function(t,e,r){var n=r(43536);t.exports=n},93799:function(t,e,r){var n=r(45012);t.exports=n},55122:function(t,e,r){var n=r(78690);t.exports=n},29531:function(t,e,r){var n=r(25626);r(89731),r(55708),r(30014),r(88731),t.exports=n},24883:function(t,e,r){var n=r(21899),o=r(57475),i=r(69826),a=n.TypeError;t.exports=function(t){if(o(t))return t;throw a(i(t)+" is not a function")}},174:function(t,e,r){var n=r(21899),o=r(24284),i=r(69826),a=n.TypeError;t.exports=function(t){if(o(t))return t;throw a(i(t)+" is not a constructor")}},11851:function(t,e,r){var n=r(21899),o=r(57475),i=n.String,a=n.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw a("Can't set "+i(t)+" as a prototype")}},18479:function(t){t.exports=function(){}},5743:function(t,e,r){var n=r(21899),o=r(7046),i=n.TypeError;t.exports=function(t,e){if(o(e,t))return t;throw i("Incorrect invocation")}},96059:function(t,e,r){var n=r(21899),o=r(10941),i=n.String,a=n.TypeError;t.exports=function(t){if(o(t))return t;throw a(i(t)+" is not an object")}},56837:function(t,e,r){"use strict";var n=r(3610).forEach,o=r(34194)("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},11354:function(t,e,r){"use strict";var n=r(21899),o=r(86843),i=r(78834),a=r(89678),u=r(75196),c=r(6782),s=r(24284),f=r(10623),l=r(55449),p=r(53476),v=r(22902),h=n.Array;t.exports=function(t){var e=a(t),r=s(this),n=arguments.length,d=n>1?arguments[1]:void 0,y=void 0!==d;y&&(d=o(d,n>2?arguments[2]:void 0));var g,m,b,x,w,A,T=v(e),E=0;if(!T||this==h&&c(T))for(g=f(e),m=r?new this(g):h(g);g>E;E++)A=y?d(e[E],E):e[E],l(m,E,A);else for(w=(x=p(e,T)).next,m=r?new this:[];!(b=i(w,x)).done;E++)A=y?u(x,d,[b.value,E],!0):b.value,l(m,E,A);return m.length=E,m}},31692:function(t,e,r){var n=r(74529),o=r(59413),i=r(10623),a=function(t){return function(e,r,a){var u,c=n(e),s=i(c),f=o(a,s);if(t&&r!=r){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},3610:function(t,e,r){var n=r(86843),o=r(95329),i=r(37026),a=r(89678),u=r(10623),c=r(64692),s=o([].push),f=function(t){var e=1==t,r=2==t,o=3==t,f=4==t,l=6==t,p=7==t,v=5==t||l;return function(h,d,y,g){for(var m,b,x=a(h),w=i(x),A=n(d,y),T=u(w),E=0,S=g||c,O=e?S(h,T):r||p?S(h,0):void 0;T>E;E++)if((v||E in w)&&(b=A(m=w[E],E,x),t))if(e)O[E]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return E;case 2:s(O,m)}else switch(t){case 4:return!1;case 7:s(O,m)}return l?-1:o||f?f:O}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},67145:function(t,e,r){"use strict";var n=r(79730),o=r(74529),i=r(62435),a=r(10623),u=r(34194),c=Math.min,s=[].lastIndexOf,f=!!s&&1/[1].lastIndexOf(1,-0)<0,l=u("lastIndexOf"),p=f||!l;t.exports=p?function(t){if(f)return n(s,this,arguments)||0;var e=o(this),r=a(e),u=r-1;for(arguments.length>1&&(u=c(u,i(arguments[1]))),u<0&&(u=r+u);u>=0;u--)if(u in e&&e[u]===t)return u||0;return-1}:s},50568:function(t,e,r){var n=r(95981),o=r(99813),i=r(53385),a=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},34194:function(t,e,r){"use strict";var n=r(95981);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},46499:function(t,e,r){var n=r(21899),o=r(24883),i=r(89678),a=r(37026),u=r(10623),c=n.TypeError,s=function(t){return function(e,r,n,s){o(r);var f=i(e),l=a(f),p=u(f),v=t?p-1:0,h=t?-1:1;if(n<2)for(;;){if(v in l){s=l[v],v+=h;break}if(v+=h,t?v<0:p<=v)throw c("Reduce of empty array with no initial value")}for(;t?v>=0:p>v;v+=h)v in l&&(s=r(s,l[v],v,f));return s}};t.exports={left:s(!1),right:s(!0)}},15790:function(t,e,r){var n=r(21899),o=r(59413),i=r(10623),a=r(55449),u=n.Array,c=Math.max;t.exports=function(t,e,r){for(var n=i(t),s=o(e,n),f=o(void 0===r?n:r,n),l=u(c(f-s,0)),p=0;s0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},u=function(t,e,r,n){for(var o=e.length,i=r.length,a=0,u=0;a0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},18938:function(t,e,r){var n=r(2861).match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},35703:function(t,e,r){var n=r(54058);t.exports=function(t){return n[t+"Prototype"]}},56759:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},18780:function(t,e,r){var n=r(95981),o=r(31887);t.exports=!n((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},76887:function(t,e,r){"use strict";var n=r(21899),o=r(79730),i=r(95329),a=r(57475),u=r(49677).f,c=r(37252),s=r(54058),f=r(86843),l=r(32029),p=r(90953),v=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return o(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,o,h,d,y,g,m,b,x=t.target,w=t.global,A=t.stat,T=t.proto,E=w?n:A?n[x]:(n[x]||{}).prototype,S=w?s:s[x]||l(s,x,{})[x],O=S.prototype;for(h in e)r=!c(w?h:x+(A?".":"#")+h,t.forced)&&E&&p(E,h),y=S[h],r&&(g=t.noTargetGet?(b=u(E,h))&&b.value:E[h]),d=r&&g?g:e[h],r&&typeof y==typeof d||(m=t.bind&&r?f(d,n):t.wrap&&r?v(d):T&&a(d)?i(d):d,(t.sham||d&&d.sham||y&&y.sham)&&l(m,"sham",!0),l(S,h,m),T&&(p(s,o=x+"Prototype")||l(s,o,{}),l(s[o],h,d),t.real&&O&&!O[h]&&l(O,h,d)))}},95981:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},79730:function(t,e,r){var n=r(18285),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},86843:function(t,e,r){var n=r(95329),o=r(24883),i=r(18285),a=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},18285:function(t,e,r){var n=r(95981);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},98308:function(t,e,r){"use strict";var n=r(21899),o=r(95329),i=r(24883),a=r(10941),u=r(90953),c=r(93765),s=r(18285),f=n.Function,l=o([].concat),p=o([].join),v={},h=function(t,e,r){if(!u(v,e)){for(var n=[],o=0;om;m++)if((x=P(t[m]))&&f(y,x))return x;return new d(!1)}n=l(t,g)}for(w=n.next;!(A=i(w,n)).done;){try{x=P(A.value)}catch(t){v(n,"throw",t)}if("object"==typeof x&&x&&f(y,x))return x}return new d(!1)}},7609:function(t,e,r){var n=r(78834),o=r(96059),i=r(14229);t.exports=function(t,e,r){var a,u;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw r;return r}a=n(a,t)}catch(t){u=!0,a=t}if("throw"===e)throw r;if(u)throw a;return o(a),r}},35143:function(t,e,r){"use strict";var n,o,i,a=r(95981),u=r(57475),c=r(29290),s=r(249),f=r(99754),l=r(99813),p=r(82529),v=l("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(n=o):h=!0),null==n||a((function(){var t={};return n[v].call(t)!==t}))?n={}:p&&(n=c(n)),u(n[v])||f(n,v,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},12077:function(t){t.exports={}},10623:function(t,e,r){var n=r(43057);t.exports=function(t){return n(t.length)}},66132:function(t,e,r){var n,o,i,a,u,c,s,f,l=r(21899),p=r(86843),v=r(49677).f,h=r(42941).set,d=r(22749),y=r(4470),g=r(58045),m=r(6049),b=l.MutationObserver||l.WebKitMutationObserver,x=l.document,w=l.process,A=l.Promise,T=v(l,"queueMicrotask"),E=T&&T.value;E||(n=function(){var t,e;for(m&&(t=w.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?a():i=void 0,t}}i=void 0,t&&t.enter()},d||m||g||!b||!x?!y&&A&&A.resolve?((s=A.resolve(void 0)).constructor=A,f=p(s.then,s),a=function(){f(n)}):m?a=function(){w.nextTick(n)}:(h=p(h,l),a=function(){h(n)}):(u=!0,c=x.createTextNode(""),new b(n).observe(c,{characterData:!0}),a=function(){c.data=u=!u})),t.exports=E||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},19297:function(t,e,r){var n=r(21899);t.exports=n.Promise},72497:function(t,e,r){var n=r(53385),o=r(95981);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},28468:function(t,e,r){var n=r(95981),o=r(99813),i=r(82529),a=o("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),i&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},38019:function(t,e,r){var n=r(21899),o=r(57475),i=r(81302),a=n.WeakMap;t.exports=o(a)&&/native code/.test(i(a))},69520:function(t,e,r){"use strict";var n=r(24883),o=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new o(t)}},14649:function(t,e,r){var n=r(85803);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},70344:function(t,e,r){var n=r(21899),o=r(60685),i=n.TypeError;t.exports=function(t){if(o(t))throw i("The method doesn't accept regular expressions");return t}},72534:function(t,e,r){var n=r(21899).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&n(t)}},81942:function(t,e,r){var n=r(21899),o=r(95981),i=r(95329),a=r(85803),u=r(74853).trim,c=r(73483),s=i("".charAt),f=n.parseFloat,l=n.Symbol,p=l&&l.iterator,v=1/f(c+"-0")!=-1/0||p&&!o((function(){f(Object(p))}));t.exports=v?function(t){var e=u(a(t)),r=f(e);return 0===r&&"-"==s(e,0)?-0:r}:f},29806:function(t,e,r){var n=r(21899),o=r(95981),i=r(95329),a=r(85803),u=r(74853).trim,c=r(73483),s=n.parseInt,f=n.Symbol,l=f&&f.iterator,p=/^[+-]?0x/i,v=i(p.exec),h=8!==s(c+"08")||22!==s(c+"0x16")||l&&!o((function(){s(Object(l))}));t.exports=h?function(t,e){var r=u(a(t));return s(r,e>>>0||(v(p,r)?16:10))}:s},24420:function(t,e,r){"use strict";var n=r(55746),o=r(95329),i=r(78834),a=r(95981),u=r(14771),c=r(87857),s=r(36760),f=r(89678),l=r(37026),p=Object.assign,v=Object.defineProperty,h=o([].concat);t.exports=!p||a((function(){if(n&&1!==p({b:1},p(v({},"a",{enumerable:!0,get:function(){v(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach((function(t){e[t]=t})),7!=p({},t)[r]||u(p({},e)).join("")!=o}))?function(t,e){for(var r=f(t),o=arguments.length,a=1,p=c.f,v=s.f;o>a;)for(var d,y=l(arguments[a++]),g=p?h(u(y),p(y)):u(y),m=g.length,b=0;m>b;)d=g[b++],n&&!i(v,y,d)||(r[d]=y[d]);return r}:p},29290:function(t,e,r){var n,o=r(96059),i=r(59938),a=r(56759),u=r(27748),c=r(15463),s=r(61333),f=r(44262)("IE_PROTO"),l=function(){},p=function(t){return"