!function(){"use strict";var t={864:function(t,e,i){var n,r=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},n(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.hasOwnProperty.call(t,i)&&o(e,t,i);return a(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.SasAd=void 0;var l=i(322),d=i(10),c=s(i(650)),h=function(t){function e(e,i){void 0===i&&(i=!1);var n=t.call(this,i)||this;n.c=e,n.isFlash=!1,n.closed=!1,n.iCustomScriptExecuted=!1,n.animationSpeed={none:0,slow:2,medium:1.4,fast:.7},n.buttonSize={small:1,normal:1.5,big:2},n.lastClicked=0,n.ifrContainer=null,n.overIframe=!1;var r=null;return document.getElementById(e.tagId)||((r=document.createElement("div")).id=n.c.tagId,document.currentScript?document.currentScript.parentNode.insertBefore(r,document.currentScript):document.body.appendChild(r)),(r=r||document.getElementById(e.tagId)).appendChild(document.createComment("TagID")),n.isFlash=n.hasFlash(),n.c.filePath&&(n.closeButtonUrl=n.c.filePath+"images/close-retina.png",n.closeButtonUrl2=n.c.filePath+"images/close_54x54.png",n.closeButtonUrl3=n.c.filePath+"images/close-without-padding.png",n.expandButtonUrl=n.c.filePath+"images/expand_54x54.png"),n.viewability=new d.Viewability,n}return r(e,t),e.prototype.calculateDimensions=function(t,e,i,n){var r,o=this.getRatio(t,e),a=this.getParentWidth(i);-1!==n.indexOf("px!")?r=Number(n.replace("px!","")):(r=-1!==n.indexOf("%")?Math.round(Number(n.replace("%",""))/100*a):Number(n.replace("px","")))>a&&(r=a);var s=Math.round(r/o);return this.log("calculateDimensions, input: "+t+", "+e+", output: "+r+", "+s),{height:s,width:r}},e.prototype.addCss=function(t){var e=this.d.createElement("style");e.type="text/css",e.styleSheet?e.styleSheet.cssText=t:e.appendChild(this.d.createTextNode(t)),this.d.getElementsByTagName("head")[0].appendChild(e)},e.prototype.whichTransitionEvent=function(){var t=this.d.createElement("fakeelement"),e={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(var i in e)if(void 0!==t.style[i])return e[i]},e.prototype.addImage=function(t){var e="";return""!==t.url&&(""!==t.oryginalClickUrl&&(e+='"),e+='",""!==t.oryginalClickUrl&&(e+="")),e},e.prototype.flash=function(t,e,i,n){this.log("flash");var r="";for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r+='');return'"},e.prototype.addCreative=function(t,e,i,n,r,o,a,s,l,d){var c=this;void 0===i&&(i=!1),void 0===n&&(n=""),void 0===r&&(r=!0),void 0===s&&(s=!1),void 0===l&&(l=!0),this.log("addCreative",t,e,i,n,r,s,l,d);var h=t.agencyCode;n&&!this.iCustomScriptExecuted&&(h+=n,this.iCustomScriptExecuted=!0);var u=0!==t.width||s?t.width:"100%",p=0!==t.height||s?t.height:"100%",f=this.c.tagId;if(0===t.type){var m,g=this.w,v=this.d;if(null==d?void 0:d.isSafeFrame)if(window.$sf)this.addSafeFrame(e.id,u,p,h,g,v,o,a);else{var y=document.createElement("script");y.onload=function(){return c.addSafeFrame(e.id,u,p,h,g,v,o,a)},y.src="//ced-ns.sascdn.com/safeframe/safeframe-api/base_host.js",this.d.head.appendChild(y)}else m=this.addElement("iframe",e,{src:"about:blank",width:u,height:p,frameBorder:"0",allow:"autoplay;fullscreen;",scrolling:"no",marginheight:"0",marginwidth:"0",id:f+"_iframe"}),g=m.contentWindow||m,(v=m.contentWindow.document).open("text/html","replace"),v.write("\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t