Advertisement
FlyFar

HTML.Trojan.Obfuscated-263

Jun 10th, 2023
1,441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 32.25 KB | Cybersecurity | 0 0
  1. !function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[a]={exports:{}};e[a][0].call(d.exports,function(t){var n=e[a][1][t];return i(n?n:t)},d,d.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){var r=t(14).UserDataLoader,i=t(11);window.JSON=window.JSON||t(15);var o=function(t){this.userDataLoader=new r,this.options=t,this.callbackQueue=[]};o.newCSUDObj=function(){return{partnerResponses:{},rtime:0}},o.encodeUserData=function(t){return t?encodeURIComponent(JSON.stringify(t)):""},o.loadPreRenderPixelData=function(t){var e=o.newCSUDObj();return i.forEachProperty(t,function(t,n){null!==n&&void 0!==n&&(e.partnerResponses[t]={result:{id:n,ext:{}},rtime:0})}),e},o.isEmpty=function(t){return null===t||void 0===t?!0:i.objSizeOf(t.partnerResponses)<=0},o.mergeData=function(t){var e=o.newCSUDObj();return null===t||void 0===t||null===t.length||void 0===t.length||t.length<=0?e:(i.forEach(t,function(t){null!==t&&void 0!==t&&(t.rtime&&(e.rtime=e.rtime+t.rtime),i.forEachProperty(t.partnerResponses,function(t,n){null!==n&&void 0!==n&&(e.partnerResponses[t]=n)}))}),e)},o.prototype={loadUserData:function(t,e){if(e||(e=function(){}),!this.options||null===this.options.partners||void 0===this.options.partners||0===i.objSizeOf(this.options.partners))return void e(null,null);if(this.cachedUserData)return void e(this.cachedUserData.error,this.cachedUserData.results);var n={},r=0,o=t&&t.partnerResponses?t.partnerResponses:{};if(i.forEachProperty(this.options.partners,function(t,e){o[t]&&o[t].result||(n[t]=e,r++)}),0>=r)return void e(null,null);this.callbackQueue.push(e);var a=this;this.userDataLoader.loadAllUserData({timeout:this.options.timeout,partners:n,responseHandler:function(t,e){a.handleLoadedUserData(t,e)}})},handleLoadedUserData:function(t,e){this.cachedUserData={error:t,results:e};for(var n;void 0!==(n=this.callbackQueue.pop());)try{n(t,e)}catch(r){}var i=this;setTimeout(function(){i.userDataLoader.close()},this.options.closeTimeout||5e3)}},e.exports=o},{11:11,14:14,15:15}],2:[function(t,e,n){var r=t(3),i=function(){var t={iab:new r};this.load=function(e,n,r){try{if(t[n]){var i=!1,o=setTimeout(function(){i||e()},r);t[n].getConsent(function(t){i||(e(null,t),i=!0,clearTimeout(o))})}else e()}catch(a){e(a)}}};e.exports=i},{3:3}],3:[function(t,e,n){var r=t(9),i=t(6),o=function(){function t(t){if(t.data){var e=n(t.data,"string")?a(t.data):t.data;if(e&&e.__cmpReturn){var r=e.__cmpReturn;s[r.callId]&&(s[r.callId](r.returnValue,r.success),delete s[r.callId])}}}function e(){for(var t=window;;){if(o(t,"__cmpLocator"))return t;if(t===top)return null;t=t.parent}}function n(t,e){return typeof t===e}function o(t,e){try{if(t.frames[e])return t}catch(n){}return!1}function a(t){try{return JSON.parse(t)}catch(e){return null}}var s={};i.attachEvent(window,"message",function(e){t(e)}),this.getConsent=function(t){var i=function(e,n){t(n&&e.consentData?e.consentData:null)};if(n(window.__cmp,"function"))window.__cmp("getConsentData",null,i);else{var o=r.random("pp"),a=e();a?(s[o]=i,a.postMessage({__cmpCall:{command:"getConsentData",callId:o}},"*")):t(null)}}};e.exports=o},{6:6,9:9}],4:[function(require,module,exports){var IframeUtil=require(8),UserDataProvider=require(1),GDPRLoader=require(2),HttpClient=require(7);window.pp=window.pp||{},window.pp.allAds=window.pp.allAds||{},window.pp.adCounter=window.pp.adCounter||0,window.pp.AJAX_READY_STATES={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},window.pp.HTTP_STATUS={OK:200,OK_NO_DATA:204},window.pp.requestActions={VIEWAD:"VIEWAD",BID:"BID"},window.pp.updateMaOpts=function(t,e){try{var n=this.allAds[t];return n.maOpts=e,n}catch(r){}},window.pp.beforeRenderAd=function(t){var e=this.allAds[t];e.completeRotatingAd()},window.pp.afterRenderAd=function(t){try{var e=this.allAds[t];0!==e.maSeqNum||e.options.rif||document.write("</div>"),e.scheduleMA()}catch(n){}},window.pp.Ad=window.pp.Ad||function(t){this.options=t,this.FrameStatus={JS:0,IFRAME:1,IFRAME_BREAKOUT:2,DOUBLE_IFRAME:3},this.errorStep="",this.adRect=this.parseAdSize(),this.callback=t.callback,this.adUnitId=t.adUnitId,this.maSeqNum=0,this.asyncTasks={},null!==this.adRect&&this.options.hasOwnProperty("maOpts")&&(this.maOpts=this.options.maOpts,this.maEnabled=this.options.maOpts.enabled),t.csud&&t.rif&&(this.addAsyncTask("csud"),window.pp.userDataProvider=window.pp.userDataProvider||new UserDataProvider(t.csud)),t.gdpr&&t.rif&&this.addAsyncTask("gdpr"),this.asyncLoading=t.rif&&(t.csud||t.gdpr)},window.pp.Ad.prototype={loopingPrefix:"cwl_",kvPrefix:"cwkv_",append:function(t){this.placeHolderElement.appendChild(t)},display:function(){var t=this;try{this.isBidCall()||(this.adContainerId="pp_ad_container_"+window.pp.adCounter++,document.write('<div class="pp_placeholder" id="'+this.adContainerId+'_ph"></div>'),this.placeHolderElement=document.getElementById(this.adContainerId+"_ph"),this.options.rif&&document.write('<iframe class="pp_ad_container" id="'+this.adContainerId+'_iframe" width="'+this.adRect.width+'" height="'+this.adRect.height+'" scrolling="no" frameBorder="0" frameborder="0" allowtransparency="true" marginheight="0" marginwidth="0"></iframe>'),window.pp.allAds[this.adContainerId]=this),this.setState(),this.options.gdpr&&(new GDPRLoader).load(function(e,n){n&&(t.gdprData=n),t.doneAsyncTask("gdpr")},this.options.gdpr.cmp,this.options.gdpr.timeoutMs),this.prpClientSideUserData=UserDataProvider.loadPreRenderPixelData(window.pp.prp),this.asyncLoading?window.pp.userDataProvider&&window.pp.userDataProvider.loadUserData(this.prpClientSideUserData,function(e,n){n&&(t.clientSideUserData=n),t.doneAsyncTask("csud")}):this.getAd()}catch(e){-1==this.getAdUrl.indexOf("?")&&this.buildGetAdUrlFromOptions(this.options);var n=this.getAdUrl+this.buildGetAdUrl();n=n+(n.indexOf("?")>-1?"&":"?")+"jserr="+this.exMsg(e)+"&errSt="+this.errorStep;var r=document.createElement("script");r.src=n,this.append(r)}},isBidCall:function(){return this.options.ca==window.pp.requestActions.BID},setState:function(){try{this.evalQueryString(),this.storage=navigator,this.getAdUrl=this.options.cu,this.isDefined(this.options.cwif)||(this.options.cwif=!1),this.smartFileLocation=this.getSmartFileLocation(),this.frameStatus=this.getDisplayType(),this.tile=this.getTile(this.frameStatus,this.storage,this.kvPrefix),this.isOpera=this.isOpera(),this.position=this.getPosition()}catch(t){throw this.setErrorStep("setSt"),t}},isDefined:function(t){return"undefined"!=typeof t},getAd:function(){try{var t=this;this.isInIFrame()||(this.isDefined(this.getAdUrl)?(this.attachUnloadHandler(function(){t.onUnload(t.loopingPrefix,t.kvPrefix,t.storage)}),this.isBidCall()?this.apiRespond(this.callback):(this.getAdUrl+=this.buildGetAdUrl(),this.writeAd())):this.append(document.createTextNode("Thank you, your file's location is:  "+window.location)))}catch(e){throw this.setErrorStep("getAd"),e}},apiRespond:function(t){HttpClient.makeRequest({url:this.getAdUrl+this.buildGetAdUrl(),cors:!0,success:function(e){t(e)},error:function(e,n){t(n)}})},getDisplayType:function(){try{return window==top?this.FrameStatus.JS:document.location.host==top.document.location.host?this.FrameStatus.IFRAME_BREAKOUT:this.FrameStatus.IFRAME}catch(t){try{if(top&&parent==top)return this.FrameStatus.IFRAME;if(parent.document.referrer)return this.FrameStatus.IFRAME}catch(e){}return this.FrameStatus.DOUBLE_IFRAME}},getTile:function(t,e,n){try{if(!this.isJSOrIFrameBreakout())return-1;var r=n+"tile";return void 0===e[r]&&(e[r]=0),++e[r]}catch(i){return-1}},isInIFrame:function(){return this.options.cwif||this.isJSOrIFrameBreakout()||!this.smartFileLocation?!1:this.breakOutFromFrames()},evalQueryString:function(){var query=location.search.slice(1);!this.isEmpty(query)&&this.strContains(query,"this.options.cwif")&&eval(unescape(query))},isEmpty:function(t){return!t||null===t||"string"==typeof t&&("null"==t||!this.isDefined(t)||""===t.replace(/\s*/,""))},breakOutFromFrames:function(){var t=this.smartFileLocation+"?this.options.cwif=true;";for(var e in this.options)t+=this.getKeyValueString("this.options."+e,this.options[e]);var n=this.getBreakOutFrame(this.smartFileLocation);return n?(n.location.replace(t),!0):!1},getKeyValueString:function(t,e){return this.isEmpty(e)?"":t+"='"+e+"';"},getBreakOutFrame:function(t){var e=window;try{var n=t.split("//")[1].split("/")[0],r=e.location.host;if(r==n)return null;for(;e.parent.window!=e.top&&(r=e.parent.location.host,!this.strContains(r,n));)e=e.parent.window}catch(i){}return e},attachUnloadHandler:function(t){try{var e=window;if(this.isDefined(e.addEventListener)&&!this.isOpera)e.addEventListener("beforeunload",t,!1);else if(this.isDefined(e.attachEvent)&&!this.isOpera)e.attachEvent("onbeforeunload",t);else{var n=e.onload;e.onload="function"!=typeof n?t:function(){n(),t()}}}catch(r){throw this.setErrorStep("unload"),r}},onUnload:function(t,e,n){try{var r;for(r in n)0===r.indexOf(t)&&(n[r]=0),0===r.indexOf(e)&&(n[r]=0)}catch(i){}},buildGetAdUrl:function(){var t=this.buildGetAdUrlFromOptions(this.options);t+="&rq="+this.getLoopingCount(),t+="&dw="+this.getWidth(),t+="&cwu="+this.processUrlForQSValue(this.getUrl()),t+="&cwr="+this.processUrlForQSValue(this.getReferrer()),t+="&mrnd="+this.getRandomNumber(),t+="&if="+this.frameStatus,t+="&tl="+this.tile,t+="&pxy="+this.position,t+="&cxy="+this.getClientDimensions(),t+="&dxy="+this.getDocumentDimensions(),t+="&tz="+(new Date).getTimezoneOffset(),t+="&ln="+this.getLanguage();var e=this.getEncodedMergedClientSideUserData();return void 0!==e&&(t+="&csud="+e),this.gdprData&&(t+=this.safeQs("gdpr",this.gdprData)),t},getEncodedMergedClientSideUserData:function(){var t=UserDataProvider.mergeData([this.clientSideUserData,this.prpClientSideUserData]);return UserDataProvider.isEmpty(t)?void 0:UserDataProvider.encodeUserData(t)},buildGetAdUrlFromOptions:function(t){var e="";return e+="?tagver=1",e+=this.safeQs("ca",t.ca),e+=this.safeQs("cp",t.cp),e+=this.safeQs("ct",t.ct),e+=this.safeQs("cwod",t.cwod),e+=this.safeQs("epid",t.epid),e+=this.safeQs("esid",t.esid),e+=this.safeQs("ifurl",t.ifurl),t.tppg&&(e+=this.safeQs("tppg",this.processUrlForQSValue(t.tppg))),e+=this.safeQs("ccid",t.ccid),e+=this.safeQs("wp",t.wp),e+=this.safeQs("cf",this.processUrlForQSValue(t.cf)),e+=this.safeQs("asv",t.asv),e+=this.safeQs("cw",t.cw),e+=this.safeQs("ch",t.ch),e+=this.safeQs("fp",t.fp),e+=this.safeQs("eid",t.eid),t.eclk&&(e+=this.safeQs("eclk",this.processUrlForQSValue(t.eclk))),e+=this.addPubTokens(t.PPTOKEN)},addPubTokens:function(t){var e="";if(this.isDefined(t)&&null!==t)for(var n in t)e+=this.safeQs("PPTOKEN_"+n,t[n]);return e},safeQs:function(t,e){return this.isDefined(e)?"&"+t+"="+e:""},processUrlForQSValue:function(t){var e=escape(t);return e=e.replace(/\+/g,"%2B"),e=e.replace(/\//g,"%2F")},getLoopingCount:function(){try{var t=this.loopingPrefix+this.options.ct+"_"+this.options.cf+"_"+this.options.esid+"_"+this.position;return this.storage[t]?this.storage[t]++:this.storage[t]=1,this.storage[t]}catch(e){return this.setErrorStep("loop"),1}},getWidth:function(){var t=0;try{if(!document.body){var e=document.createElement("div");e.id="cwViz1",e.style.width="0px",e.style.height="0px",e.style.display="none",e.style.visibility="hidden",e.innerHTML="o",this.append(e)}self.innerWidth?t=self.innerWidth:document.documentElement&&document.documentElement.clientHeight?t=document.documentElement.clientWidth:document.body&&(t=document.body.clientWidth)}catch(n){t=-1}return t},getUrl:function(){var t="",e="",n="",r=window;try{if(this.isJSOrIFrameBreakout())return top.location}catch(i){}try{if(e=document.location,e==top.location)t=e;else for(;;){if(t=r.document.location,r.document.referrer&&(n=r.document.referrer),r==r.parent)break;r.document.referrer&&(t=n),r=r.parent}(""===t||null===t||void 0===t)&&(t=n?n:e)}catch(i){n&&""!==n?t=n:""===t&&(t=e)}return t},getReferrer:function(){try{if(this.isJSOrIFrameBreakout())return top.document.referrer}catch(t){}return""},getPosition:function(){var t=[0,0];try{if(t=this.getOffsetPosition(this.isBidCall()?document.getElementById(this.adUnitId):this.placeHolderElement),window!=top){var e=this.getIFramePosition();t[0]+=e[0],t[1]+=e[1]}}catch(n){}return t},getRandomNumber:function(){return Math.floor(1e8*Math.random())},getOffsetPosition:function(t){var e=[0,0];if(null!==t&&void 0!==t){var n=t.getBoundingClientRect();e=[Math.round(n.left),Math.round(n.top)]}return e},getIFramePosition:function(){var t=this.getTopFrame();if(null===t||void 0===t)throw-15;try{return this.getOffsetPosition(t.frameElement)}catch(e){}for(var n=top.document.getElementsByTagName("IFRAME"),r=0;r<n.length;r++){var i=n[r].contentWindow.location;if(i==t.location)return this.getOffsetPosition(n[r])}},getTopFrame:function(){try{for(var t=[],e=window,n=20;--n>0;){if(t.push(e),e===top||null===e.parent)return t[t.length-2];e=e.parent}return null}catch(r){return null}},getClientDimensions:function(){try{var t=window.innerWidth||top.document.documentElement.clientWidth||top.document.body.clientWidth,e=window.innerHeight||top.document.documentElement.clientHeight||top.document.body.clientHeight;return[t,e]}catch(n){return""}},getDocumentDimensions:function(){try{return[top.window.document.body.offsetWidth,top.window.document.body.offsetHeight]}catch(t){return""}},getLanguage:function(){try{if(navigator){var t=[];return navigator.language&&t.push(navigator.language),navigator.userLanguage&&t.push(navigator.userLanguage),navigator.browserLanguage&&t.push(navigator.browserLanguage),navigator.systemLanguage&&t.push(navigator.systemLanguage),t.join(",")}}catch(e){}return""},writeAd:function(){if(this.options.rif){var t=IframeUtil.getDocument(document.getElementById(this.adContainerId+"_iframe"));this.requiresDocOpen()&&t.open(),t.write(this.getAdIframeMarkup()),this.requiresDocOpen()&&t.close()}else document.write('<div class="pp_ad_container" id="'+this.adContainerId+'">'+this.getAdScriptTag())},parseAdSize:function(){try{var t=this.options.cf.split(/x/i);return{width:t[0],height:t[1]}}catch(e){}return null},getAdScriptTag:function(){return'<script type="text/javascript" src="'+this.getAdScriptTagURL()+'"></script>'},getAdScriptTagURL:function(){var t=this.getAdUrl;return this.maSeqNum>0&&(t+="&ma="+this.maSeqNum),this.adContainerId&&(t+="&acid="+this.adContainerId),t},scheduleIsAllowed:function(){return this.maOpts.enabled&&this.maOpts.periodMax>0&&this.maOpts.periodMin>0&&this.maOpts.periodMax>=this.maOpts.periodMin&&this.maSeqNum<this.maOpts.maxSeqNum},scheduleMA:function(){if(this.scheduleIsAllowed()){var t=this;setTimeout(function(){t.maSeqNum++,t.writeMA()},Math.round(1e3*(t.maOpts.periodMin+Math.random()*(t.maOpts.periodMax-t.maOpts.periodMin))))}},writeMA:function(){var t=this.options.rif?IframeUtil.getDocument(document.getElementById(this.adContainerId+"_iframe")):document,e=this.options.rif?t.body:t.getElementById(this.adContainerId),n=t.createElement("iframe");n.setAttribute("marginwidth",0),n.setAttribute("marginheight",0),n.setAttribute("allowtransparency",!0),n.setAttribute("frameborder",0),n.setAttribute("frameBorder",0),n.setAttribute("scrolling","no"),n.setAttribute("height",this.adRect.height),n.setAttribute("width",this.adRect.width),n.className="pp_ad_container",n.style.display="none",e.appendChild(n);var r=IframeUtil.getDocument(n);this.requiresDocOpen()&&r.open(),r.write(this.getAdIframeMarkup()),this.requiresDocOpen()&&r.close()},getAdIframeMarkup:function(){return"<html><body style='margin:0;padding:0;overflow:hidden;background-color:transparent;'>"+this.getAdScriptTag()+"</body></html>"},completeRotatingAd:function(){var t;if(t=this.options.rif?IframeUtil.getDocument(document.getElementById(this.adContainerId+"_iframe")).body:document.getElementById(this.adContainerId),t&&0!==this.maSeqNum)if(this.maOpts.skipRotation)t.childNodes.length>1&&t.removeChild(t.lastChild);else{for(;t.childNodes.length>1;)t.removeChild(t.firstChild);t.childNodes.length>0&&(t.firstChild.style.display="block")}},isJSOrIFrameBreakout:function(){return this.frameStatus==this.FrameStatus.JS||this.frameStatus==this.FrameStatus.IFRAME_BREAKOUT},exMsg:function(t){try{if("object"==typeof t)return escape(this.isDefined(JSON)&&this.isDefined(JSON.stringify)?JSON.stringify(t):t.toString())}catch(e){}return escape(t)},strContains:function(t,e){return t&&e&&-1!=t.toLowerCase().indexOf(e.toLowerCase())},getSmartFileLocation:function(){try{if(this.isDefined(this.options.cwfl)&&this.options.cwfl.length>0)return this.options.cwfl;if(this.isDefined(window.cwfl))return window.cwfl}catch(t){this.setErrorStep("smartFile")}return!1},isOpera:function(){try{return this.strContains(navigator.userAgent,"opera")}catch(t){return this.setErrorStep("opera"),!1}},requiresDocOpen:function(){var t=this;return this.requiresDocOpenCached=this.requiresDocOpenCached||function(){try{return!t.strContains(navigator.userAgent,"msie")}catch(e){return!0}}(),this.requiresDocOpenCached},setErrorStep:function(t){this.errorStep+="|"+t},addAsyncTask:function(t){this.asyncTasks[t]=1},doneAsyncTask:function(t){delete this.asyncTasks[t],this.asyncLoading&&this.allAsyncTasksDone()&&this.getAd()},allAsyncTasksDone:function(){for(var t in this.asyncTasks)if(this.asyncTasks.hasOwnProperty(t))return!1;return!0}},"undefined"!=typeof pp_display_ad&&"undefined"!=typeof pp_options&&new pp.Ad(pp_options).display()},{1:1,2:2,7:7,8:8}],5:[function(t,e,n){var r={querySelectorAll:function(t){return s=t.createStyleSheet(),function(e,n,r,i,o){for(o=t.all,n=[],e=e.replace(/\[for\b/gi,"[htmlFor").split(","),r=e.length;r--;){for(s.addRule(e[r],"k:v"),i=o.length;i--;)o[i].currentStyle.k&&n.push(o[i]);s.removeRule(0)}return n}},requestAnimationFrame:function(t){return function(e){var n=window.setTimeout(e,t);return n}},windowDimensions:function(t,e){var n=t.innerWidth||e.documentElement.clientWidth,r=t.innerHeight||e.documentElement.clientHeight;return{width:n,height:r}},canAccessDocument:function(t){try{{t.document}return!0}catch(e){return!1}},createPixel:function(t){var e=document.createElement("img");e.width=e.height="1",e.style.width=e.style.height="1px",e.style.top=e.style.left="-9999px",e.style.position="absolute",e.height="1",e.src=dataUrl,document.body&&document.body.appendChild(e)},attachScript:function(t,e){var n=document.getElementsByTagName("head");if(0===n.length&&(n=document.getElementsByTagName("body")),!(n.length>=0))throw new Error("Document does not have head or body");var r=document.createElement("script");r.async=!0,r.src=t,r.type="text/javascript",r.addEventListener?r.addEventListener("load",e,!1):r.attachEvent("onreadystatechange",function(){("loaded"===r.readyState||"complete"===r.readyState)&&(r.onreadystatechange=null,e())}),n[0].appendChild(r)}};e.exports=r},{}],6:[function(t,e,n){var r={attachEvent:function(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+etype]=n},fireEvent:function(t,e,n){if(t.createEvent&&e.dispatchEvent){var r=t.createEvent("UIEvents");r.initEvent(n,!0,!1),e.dispatchEvent(r)}else e.fireEvent&&e.fireEvent("on"+n)},onDocumentLoaded:function(t,e,n){"complete"===e.readyState?n():this.attachEvent(t,"load",function(t){n()})}};e.exports=r},{}],7:[function(t,e,n){window.JSON=window.JSON||t(15);var r=t(10),i=t(5),o={makeRequest:function(t){try{t.method=t.method||"GET",t.success=t.success||function(t){},t.error=t.error||function(t,e){},t.cors=t.cors||!1;var e=null;window.XMLHttpRequest?e=new XMLHttpRequest:window.ActiveXObject&&(e=new ActiveXObject("Microsoft.XMLHTTP")),e.open(t.method||"GET",t.url,1),e.onreadystatechange=function(){4===e.readyState&&o.handleResponse(t,e)},t.cors&&(e.withCredentials=!0,e.setRequestHeader("Content-type","text/plain")),e.send(t.body||null)}catch(n){t.error(n,null)}},handleResponse:function(t,e){var n=e.responseText;try{if(200==e.status){if(n){var r=e.getResponseHeader("Content-type");return r&&r.indexOf("application/json")>-1?void t.success(JSON.parse(n)):void t.success(n)}}else if(e.status>300)return void t.error(new Error("Response code:"+e.status),n);t.success(null)}catch(i){t.error(i,n)}},sendDataOnUnload:function(t,e){var n=JSON.stringify(e),o=r.buildUri(t,{data:n}),a=navigator.sendBeacon;a&&(a=navigator.sendBeacon(t,n)),a||(void 0!==window.Image?new window.Image(1,1).src=o:i.createPixel(o))}};e.exports=o},{10:10,15:15,5:5}],8:[function(t,e,n){var r=t(9),i={getDocument:function(t){return t.contentDocument||t.contentWindow.document},createIFrame:function(t,e,n,i,o,a){var s=t.createElement("iframe");if(s.width=n,s.height=i,s.style.border="0px",s.scrolling="no",s.frameborder=0,s.allowtransparency=!0,s.margin="0",s.padding="0",s.frameBorder="0",s.id=r.random("div_"),e.appendChild(s),o&&(s.src=o),a){var c=["<html><head></head><body style='margin: 0px; background-color: transparent; padding: 0px;'>",a,"</body></html>"].join("");s.contentWindow.contents=c,s.src='javascript:window["contents"]'}return s}};e.exports=i},{9:9}],9:[function(t,e,n){var r={random:function(t){return(t||"")+Math.floor(Math.random()*Math.pow(10,8))}};e.exports=r},{}],10:[function(t,e,n){var r={buildUri:function(t,e,n){var r="";if(e)for(var i in e)e.hasOwnProperty(i)&&(r+=i+"="+encodeURIComponent(e[i])+"&");return n===!0?t+"#"+r:t+(t.indexOf("?")>0?"&"+r:"?"+r)},urlToQueryMap:function(t,e){var n=t;t.indexOf("?")>=0&&(n=t.substring(t.indexOf("?")+1));var r=function(t,e){for(var n=e.split("&"),r=0;r<n.length;r++){var i=n[r].split("=");t[i[0]]=decodeURIComponent(i[1])}return t},i=r({},n);return e===!0&&t.indexOf("#")>=0&&(hashFragment=t.substring(t.indexOf("#")+1),i=r(i,hashFragment)),i}};e.exports=r},{}],11:[function(t,e,n){var r={forEachProperty:function(t,e){if(null!==t&&void 0!==t&&"object"==typeof t)for(var n in t)t.hasOwnProperty(n)&&e(n,t[n])},forEach:function(t,e){if(null!==t&&void 0!==t&&"object"==typeof t&&void 0!==t.length)for(var n=0;n<t.length;n++)e(t[n])},objSizeOf:function(t){var e=0;return r.forEachProperty(t,function(t,n){e++}),e}};e.exports=r},{}],12:[function(t,e,n){window.JSON=window.JSON||t(15);var r=function(){this.iframes={},this.init()};r.counter=0,r.prototype={handleResponse:function(t){if(t&&t.id){var e=this.iframes[t.id];if(e){try{e.handleResponse(t.error,t.result)}catch(n){}try{clearTimeout(e.timeoutFn)}catch(r){}delete this.iframes[t.id],this.removeDomElement(e)}}},init:function(){var t=this;t.hasPostMessage()&&(t.windowEventListener=function(e){try{t.handleResponse(JSON.parse(e.data))}catch(n){}},window.addEventListener?window.addEventListener("message",t.windowEventListener):window.attachEvent("onmessage",t.windowEventListener))},hasPostMessage:function(){return window.postMessage?!0:!1},loadUserData:function(t){var e=this,n=++r.counter,i=escape(JSON.stringify({id:n,payload:t.payload})),o=document.createElement("iframe");if(o.style.width="0px",o.style.height="0px",o.style.display="none",o.handleResponse=t.responseHandler,this.iframes[n]=o,t.timeout&&(o.timeoutFn=setTimeout(function(){e.handleResponse({error:"timeout",id:n})},t.timeout)),o.src=t.url+"#"+i,!this.hasPostMessage()){var a=function(){try{o.contentWindow.name&&e.handleResponse(JSON.parse(o.contentWindow.name))}catch(t){o.onload=a}},s=function(){};o.onload=a,o.onerror=s,o.attachEvent&&(o.attachEvent("onload",a),o.attachEvent("onerror",s))}return document.body.appendChild(o),this},loadAllUserData:function(t){var e={},n=(new Date).getTime(),r=1,i=function(){0===--r&&t.responseHandler(void 0,{rtime:(new Date).getTime()-n,partnerResponses:e})},o=function(t){return function(r,o){var a={};r&&(a.error=r),o&&(a.result=o),a.rtime=(new Date).getTime()-n,e[t]=a,i()}};for(var a in t.partners){var s=t.partners[a];r++,this.loadUserData({url:s.url,timeout:s.timeout||t.timeout,payload:s.payload,responseHandler:o(a)})}i()},close:function(){this.windowEventListener&&(window.removeEventListener?window.removeEventListener("message",this.windowEventListener):window.detachEvent("message",this.windowEventListener));for(var t in this.iframes){var e=this.iframes[t];delete this.iframes[t],this.removeDomElement(e)}},removeDomElement:function(t){try{t&&t.parentNode&&t.parentNode.removeChild(t)}catch(e){}}},e.exports=r},{15:15}],13:[function(t,e,n){window.JSON=window.JSON||t(15);var r=function(){};r.prototype={hasPostMessage:function(){return window.postMessage?!0:!1},parseRequest:function(){return JSON.parse(unescape(window.location.href.split("#")[1]))},listen:function(t){try{var e,n=this,r=n.parseRequest(),i=function(t,e){try{t&&(t=t.message?t.message:"General Error");var i=JSON.stringify({error:t,result:e,id:r.id});if(n.hasPostMessage())window.parent.postMessage(i,"*");else{window.name=i;var o=document.referrer.split("/")[2];window.location.href="//"+o+"/favicon.ico"}}catch(a){}};try{e=t(r.payload,i)}catch(o){return void i(o)}void 0!==e&&null!==e&&i(null,e)}catch(a){}}},e.exports=r},{15:15}],14:[function(t,e,n){e.exports={UserDataLoader:t(12),UserDataProvider:t(13)}},{12:12,13:13}],15:[function(t,e,n){(function(t){(function(){function r(t,e){function n(t){if(n[t]!==g)return n[t];var r;if("bug-string-char-index"==t)r="a"!="a"[0];else if("json"==t)r=n("json-stringify")&&n("json-parse");else{var o,s='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var c=e.stringify,d="function"==typeof c&&y;if(d){(o=function(){return 1}).toJSON=o;try{d="0"===c(0)&&"0"===c(new i)&&'""'==c(new a)&&c(w)===g&&c(g)===g&&c()===g&&"1"===c(o)&&"[1]"==c([o])&&"[null]"==c([g])&&"null"==c(null)&&"[null,null,null]"==c([g,w,null])&&c({a:[o,!0,!1,null,"\x00\b\n\f\r    "]})==s&&"1"===c(null,o)&&"[\n 1,\n 2\n]"==c([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==c(new u(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==c(new u(864e13))&&'"-000001-01-01T00:00:00.000Z"'==c(new u(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==c(new u(-1))}catch(l){d=!1}}r=d}if("json-parse"==t){var h=e.parse;if("function"==typeof h)try{if(0===h("0")&&!h(!1)){o=h(s);var f=5==o.a.length&&1===o.a[0];if(f){try{f=!h('" "')}catch(l){}if(f)try{f=1!==h("01")}catch(l){}if(f)try{f=1!==h("1.")}catch(l){}}}}catch(l){f=!1}r=f}}return n[t]=!!r}t||(t=s.Object()),e||(e=s.Object());var i=t.Number||s.Number,a=t.String||s.String,c=t.Object||s.Object,u=t.Date||s.Date,d=t.SyntaxError||s.SyntaxError,l=t.TypeError||s.TypeError,h=t.Math||s.Math,f=t.JSON||s.JSON;"object"==typeof f&&f&&(e.stringify=f.stringify,e.parse=f.parse);var p,m,g,v=c.prototype,w=v.toString,y=new u(-0xc782b5b800cec);try{y=-109252==y.getUTCFullYear()&&0===y.getUTCMonth()&&1===y.getUTCDate()&&10==y.getUTCHours()&&37==y.getUTCMinutes()&&6==y.getUTCSeconds()&&708==y.getUTCMilliseconds()}catch(S){}if(!n("json")){var E="[object Function]",O="[object Date]",A="[object Number]",D="[object String]",b="[object Array]",C="[object Boolean]",U=n("bug-string-char-index");if(!y)var T=h.floor,I=[0,31,59,90,120,151,181,212,243,273,304,334],x=function(t,e){return I[e]+365*(t-1970)+T((t-1969+(e=+(e>1)))/4)-T((t-1901+e)/100)+T((t-1601+e)/400)};if((p=v.hasOwnProperty)||(p=function(t){var e,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=w?p=function(t){var e=this.__proto__,n=t in(this.__proto__=null,this);return this.__proto__=e,n}:(e=n.constructor,p=function(t){var n=(this.constructor||e).prototype;return t in this&&!(t in n&&this[t]===n[t])}),n=null,p.call(this,t)}),m=function(t,e){var n,r,i,a=0;(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n;for(i in r)p.call(r,i)&&a++;return n=r=null,a?m=2==a?function(t,e){var n,r={},i=w.call(t)==E;for(n in t)i&&"prototype"==n||p.call(r,n)||!(r[n]=1)||!p.call(t,n)||e(n)}:function(t,e){var n,r,i=w.call(t)==E;for(n in t)i&&"prototype"==n||!p.call(t,n)||(r="constructor"===n)||e(n);(r||p.call(t,n="constructor"))&&e(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],m=function(t,e){var n,i,a=w.call(t)==E,s=!a&&"function"!=typeof t.constructor&&o[typeof t.hasOwnProperty]&&t.hasOwnProperty||p;for(n in t)a&&"prototype"==n||!s.call(t,n)||e(n);for(i=r.length;n=r[--i];s.call(t,n)&&e(n));}),m(t,e)},!n("json-stringify")){var R={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},_="000000",N=function(t,e){return(_+(e||0)).slice(-t)},F="\\u00",M=function(t){for(var e='"',n=0,r=t.length,i=!U||r>10,o=i&&(U?t.split(""):t);r>n;n++){var a=t.charCodeAt(n);switch(a){case 8:case 9:case 10:case 12:case 13:case 34:case 92:e+=R[a];break;default:if(32>a){e+=F+N(2,a.toString(16));break}e+=i?o[n]:t.charAt(n)}}return e+'"'},P=function(t,e,n,r,i,o,a){var s,c,u,d,h,f,v,y,S,E,U,I,R,_,F,L;try{s=e[t]}catch(k){}if("object"==typeof s&&s)if(c=w.call(s),c!=O||p.call(s,"toJSON"))"function"==typeof s.toJSON&&(c!=A&&c!=D&&c!=b||p.call(s,"toJSON"))&&(s=s.toJSON(t));else if(s>-1/0&&1/0>s){if(x){for(h=T(s/864e5),u=T(h/365.2425)+1970-1;x(u+1,0)<=h;u++);for(d=T((h-x(u,0))/30.42);x(u,d+1)<=h;d++);h=1+h-x(u,d),f=(s%864e5+864e5)%864e5,v=T(f/36e5)%24,y=T(f/6e4)%60,S=T(f/1e3)%60,E=f%1e3}else u=s.getUTCFullYear(),d=s.getUTCMonth(),h=s.getUTCDate(),v=s.getUTCHours(),y=s.getUTCMinutes(),S=s.getUTCSeconds(),E=s.getUTCMilliseconds();s=(0>=u||u>=1e4?(0>u?"-":"+")+N(6,0>u?-u:u):N(4,u))+"-"+N(2,d+1)+"-"+N(2,h)+"T"+N(2,v)+":"+N(2,y)+":"+N(2,S)+"."+N(3,E)+"Z"}else s=null;if(n&&(s=n.call(e,t,s)),null===s)return"null";if(c=w.call(s),c==C)return""+s;if(c==A)return s>-1/0&&1/0>s?""+s:"null";if(c==D)return M(""+s);if("object"==typeof s){for(_=a.length;_--;)if(a[_]===s)throw l();if(a.push(s),U=[],F=o,o+=i,c==b){for(R=0,_=s.length;_>R;R++)I=P(R,s,n,r,i,o,a),U.push(I===g?"null":I);L=U.length?i?"[\n"+o+U.join(",\n"+o)+"\n"+F+"]":"["+U.join(",")+"]":"[]"}else m(r||s,function(t){var e=P(t,s,n,r,i,o,a);e!==g&&U.push(M(t)+":"+(i?" ":"")+e)}),L=U.length?i?"{\n"+o+U.join(",\n"+o)+"\n"+F+"}":"{"+U.join(",")+"}":"{}";return a.pop(),L}};e.stringify=function(t,e,n){var r,i,a,s;if(o[typeof e]&&e)if((s=w.call(e))==E)i=e;else if(s==b){a={};for(var c,u=0,d=e.length;d>u;c=e[u++],s=w.call(c),(s==D||s==A)&&(a[c]=1));}if(n)if((s=w.call(n))==A){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+=" ");}else s==D&&(r=n.length<=10?n:n.slice(0,10));return P("",(c={},c[""]=t,c),i,a,r,"",[])}}if(!n("json-parse")){var L,k,j=a.fromCharCode,J={92:"\\",34:'"',47:"/",98:"\b",116:"   ",110:"\n",102:"\f",114:"\r"},q=function(){throw L=k=null,d()},B=function(){for(var t,e,n,r,i,o=k,a=o.length;a>L;)switch(i=o.charCodeAt(L)){case 9:case 10:case 13:case 32:L++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=U?o.charAt(L):o[L],L++,t;case 34:for(t="@",L++;a>L;)if(i=o.charCodeAt(L),32>i)q();else if(92==i)switch(i=o.charCodeAt(++L)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=J[i],L++;break;case 117:for(e=++L,n=L+4;n>L;L++)i=o.charCodeAt(L),i>=48&&57>=i||i>=97&&102>=i||i>=65&&70>=i||q();t+=j("0x"+o.slice(e,L));break;default:q()}else{if(34==i)break;for(i=o.charCodeAt(L),e=L;i>=32&&92!=i&&34!=i;)i=o.charCodeAt(++L);t+=o.slice(e,L)}if(34==o.charCodeAt(L))return L++,t;q();default:if(e=L,45==i&&(r=!0,i=o.charCodeAt(++L)),i>=48&&57>=i){for(48==i&&(i=o.charCodeAt(L+1),i>=48&&57>=i)&&q(),r=!1;a>L&&(i=o.charCodeAt(L),i>=48&&57>=i);L++);if(46==o.charCodeAt(L)){for(n=++L;a>n&&(i=o.charCodeAt(n),i>=48&&57>=i);n++);n==L&&q(),L=n}if(i=o.charCodeAt(L),101==i||69==i){for(i=o.charCodeAt(++L),(43==i||45==i)&&L++,n=L;a>n&&(i=o.charCodeAt(n),i>=48&&57>=i);n++);n==L&&q(),L=n}return+o.slice(e,L)}if(r&&q(),"true"==o.slice(L,L+4))return L+=4,!0;if("false"==o.slice(L,L+5))return L+=5,!1;if("null"==o.slice(L,L+4))return L+=4,null;q()}return"$"},Q=function(t){var e,n;if("$"==t&&q(),"string"==typeof t){if("@"==(U?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];t=B(),"]"!=t;n||(n=!0))n&&(","==t?(t=B(),"]"==t&&q()):q()),","==t&&q(),e.push(Q(t));return e}if("{"==t){for(e={};t=B(),"}"!=t;n||(n=!0))n&&(","==t?(t=B(),"}"==t&&q()):q()),(","==t||"string"!=typeof t||"@"!=(U?t.charAt(0):t[0])||":"!=B())&&q(),
  2. e[t.slice(1)]=Q(B());return e}q()}return t},H=function(t,e,n){var r=W(t,e,n);r===g?delete t[e]:t[e]=r},W=function(t,e,n){var r,i=t[e];if("object"==typeof i&&i)if(w.call(i)==b)for(r=i.length;r--;)H(i,r,n);else m(i,function(t){H(i,t,n)});return n.call(t,e,i)};e.parse=function(t,e){var n,r;return L=0,k=""+t,n=Q(B()),"$"!=B()&&q(),L=k=null,e&&w.call(e)==E?W((r={},r[""]=n,r),"",e):n}}}return e.runInContext=r,e}var i="function"==typeof define&&define.amd,o={"function":!0,object:!0},a=o[typeof n]&&n&&!n.nodeType&&n,s=o[typeof window]&&window||this,c=a&&o[typeof e]&&e&&!e.nodeType&&"object"==typeof t&&t;if(!c||c.global!==c&&c.window!==c&&c.self!==c||(s=c),a&&!i)r(s,a);else{var u=s.JSON,d=s.JSON3,l=!1,h=r(s,s.JSON3={noConflict:function(){return l||(l=!0,s.JSON=u,s.JSON3=d,u=d=null),h}});s.JSON={parse:h.parse,stringify:h.stringify}}i&&define(function(){return h})}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[4]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement