/*! * @version 1.1.47 * @date 2021-08-16 * @generated */ !function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["@mfelibs/base-tools-SUDA"]=t():e["@mfelibs/base-tools-SUDA"]=t()}("undefined"!==typeof self?self:this,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"a",function(){return i});var r=function(e,t){var n,r,o,i=0;if("utf-16"===(t=t?t.toLowerCase():"")||"utf16"===t)for(r=0,o=e.length;r<\/script>'),document.getElementById("ie-domReady").onreadystatechange=function(){"complete"===this.readyState&&(e=(new Date).getTime(),this.onreadystatechange=null,this.parentNode.removeChild(this))})}();var n="https:"==window.location.protocol?"https://":"http://",r=function(e,t,n,r){if(""==e)return"";t+=r=""==r?"=":r;var o=e.indexOf(t);if(o<0)return"";o+=t.length;var i=e.indexOf(n,o);return i0?t:0;return n.length>r?n[r].content:""},A=function(e){return(e=e||function(){if(null!=window.event)return window.event;if(window.event)return window.event;for(var e=arguments.callee.caller,t=void 0,n=0;null!=e&&n<40;){if((t=e.arguments[0])&&(t.constructor==Event||t.constructor==MouseEvent||t.constructor==KeyboardEvent))return t;n++,e=e.caller}return t}()).target||(e.target=e.srcElement,e.pageX=e.x,e.pageY=e.y),"undefined"==typeof e.layerX&&(e.layerX=e.offsetX),"undefined"==typeof e.layerY&&(e.layerY=e.offsetY),e},k=function(e){if("string"!==typeof e)throw"trim need a string as parameter";for(var t=e.length,n=0,r=/(\u3000|\s|\t|\u00A0)/;nn&&r.test(e.charAt(t-1));)t-=1;return e.slice(n,t)},T="MT="+(S()||"");if("undefined"!==typeof sudaLogConfig&&"undefined"!==typeof sudaLogConfig.prevPageClickTime&&""!==sudaLogConfig.prevPageClickTime){var I=void 0!==sudaLogConfig.prevPageClickTime?sudaLogConfig.prevPageClickTime:0;T+="|mperform:1|starttime:"+I+"|endtime:"+y+"|clicktime:"+(y-I)}var L,j,U,E,D=f.referrer.toLowerCase(),N="",P=function(){return p.width+"x"+p.height},M=function(){return p.colorDepth||""},R=function(){return l.appCodeName||""},B=function(){return l.appName.indexOf("Microsoft Internet Explorer")>-1?"MSIE":l.appName},z=function(){return l.cpuClass||l.oscpu||""},F=function(){return l.platform||""},q=function(){var e=void 0,t=void 0,n=void 0,r=1,o=l.appName.indexOf("Microsoft Internet Explorer")>-1?"MSIE":l.appName,i=l.appVersion;return"MSIE"==o?(t="MSIE",(e=i.indexOf(t))>=0&&3<=(n=window.parseInt(i.substring(e+5)))&&(r=1.1,4<=n&&(r=1.3))):"Netscape"!=o&&"Opera"!=o&&"Mozilla"!=o||(r=1.3,t="Netscape6",(e=i.indexOf(t))>=0&&(r=1.5)),r},V=function(){var e="";e=l.connection&&l.connection.type?l.connection.type:e;try{f.body.addBehavior("#default#clientCaps"),e=f.body.connectionType}catch(t){e="unkown"}return e},G=function(){return l.systemLanguage||l.language||""},J=function(){return(new Date).getTimezoneOffset()/60||""},H=function(){return""},X=function(){var e=l.plugins,t=l.javaEnabled(),n=void 0;if(1==t)return 1;if(e&&e.length){for(var r in e)if(null!=(n=e[r]).description){if(null!=t)break;-1==n.description.toLowerCase().indexOf("java plug-in")||(t=parseInt(n.version))}}else window.ActiveXObject&&(t=null!=new ActiveXObject("JavaWebStart.IsInstalled"));return t?1:0},Z={pageId:function(){return""},sessionCount:function(){return""},excuteCount:function(){return SUDA.sudaCount},referrer:function(){if(""==D||D.match(/^[^\?&#]*.swf([\?#])?/)){var e=r(h,"ref","&","");if(""!=e)return escape(e)}return escape(D)},isHomepage:function(){var e="";try{f.body.addBehavior("#default#homePage"),e=f.body.isHomePage(h)?"Y":"N"}catch(t){e="unkown"}return e},PGLS:function(){return O("stencil")||""},ZT:function(){var e=O("subjectid");return e.replace(",","."),e.replace(";",","),escape(e)},mediaType:function(){return S()||""},domCount:function(){return f.getElementsByTagName("*").length||""},iframeCount:function(){return f.getElementsByTagName("iframe").length},onloadTime:u,readyTime:s,webUrl:w,ch:function(){return window.__docConfig?__docConfig.__domain:""},PE:function(){var e=document.getElementsByName("sudameta")[0];return e?e.content:""}},$=function(){var e=i("SINAGLOBAL");return""==e&&(e=i("Apache")),e},Y=function(){var e=i("Apache");if(""==e){var t=new Date;e=1e13*Math.random()+"."+t.getTime()}return e},W=function(){var e=i("Apache"),t=i("ULV").split(":"),n="",r=void 0;if(t.length>=6)if(e!=t[4]){r=new Date;var o=new Date(window.parseInt(t[0]));t[1]=window.parseInt(t[1])+1,r.getMonth()!=o.getMonth()?t[2]=1:t[2]=window.parseInt(t[2])+1,(r.getTime()-o.getTime())/864e5>=7?t[3]=1:r.getDay()1)){var a=n+"passport.sina.cn/sso/islogin?";-1==a.indexOf("?")&&(a+="?");var s=new Date,d={random:Math.random(),time:s.getTime()};f({success:function(e){e.data=e.data||{},e.data.uid||(l("SUBP"),e.data=u),e.data.uname=e.data.nick,e.data.userface=e.data.portrait_url,e.data.uid&&(e.data.islogin=1),e.data.uid&&window.setCookie("sina_ucode",c(e.data.uid),240,"/",".sina.cn"),window.userInfo=e.data,window.getUserInfo.aFn.length>0&&window.getUserInfo.aFn.forEach(function(t){t&&"function"==typeof t&&t(e.data)})},error:function(){window.getUserInfo.aFn.length>0&&window.getUserInfo.aFn.forEach(function(e){e&&"function"==typeof e&&e({})})},url:a,data:d,timeout:3e3})}}};var c=function(e,t){t=t||"encode";for(var n=["a","B","X","M","Z","Y","Q","c","I","p"],r="",o=0,i=e.length;o>2,a=(3&n)<<4|(r=e.charCodeAt(c++))>>4,s=(15&r)<<2|(o=e.charCodeAt(c++))>>6,u=63&o,isNaN(r)?s=u=64:isNaN(o)&&(u=64),t=t+this._keys.charAt(i)+this._keys.charAt(a)+this._keys.charAt(s)+this._keys.charAt(u),n=r=o="",i=a=s=u=""}while(c>4,a=(15&u)<<4|(c=r(d,e[p++]))>>2,s=(3&c)<<6|(f=r(d,e[p++])),o.push(i),64!=c&&-1!=c&&o.push(a),64!=f&&-1!=f&&o.push(s),i=a=s="",u=c=f=""}while(p4e3&&(console.log("\u56de\u9000\u6210\u529f\uff0c\u56de\u9000\u95f4\u9694\u7684\u65f6\u95f4\u662f\uff1a"+r),e&&"function"==typeof e&&e())}this.testVivo()&&window.addEventListener("click",function(t){(function e(t,n){return!!t&&("A"==t.nodeName?t:t!=n&&e(t.parentNode,n))})(t.target,document.body)&&setTimeout(function(){e&&"function"==typeof e&&e()},800)}),"onpageshow"in window&&"onpagehide"in window&&!this.testUA()?(console.log("\u7ed1\u5b9apageshow"),window.addEventListener("pageshow",function(t){console.log(t.persisted,"\u56de\u9000\u53c2\u6570"),t.persisted?(console.log("\u76f4\u63a5\u6267\u884c\u56de\u9000"),e&&"function"==typeof e&&e()):(console.log("\u5355\u6b21\u68c0\u6d4b\u56de\u9000"),n())},!1),window.addEventListener("pagehide",function(e){window.heartbeat_lastInterval=t()},!1)):(console.log("\u5f00\u542f\u56de\u9000\u5b9a\u65f6\u5668"),setInterval(n,800))},add:function(e){"function"==typeof e&&this.queue.push(e)}},window.heartbeat_lastInterval=(new Date).getTime(),window.heartbeat.bind(function(){console.log("\u56de\u9000\u6210\u529f");var t=e.getRecord(),n="";t&&t.href&&-1==t.href.indexOf("//sina.cn")&&(n=t.href),setTimeout(function(){SUDA.log("","twice","",n),window.heartbeat.queue.forEach(function(e){e&&"function"==typeof e&&e()}),window.sinaSax&&window.sinaSax.callback("saxHistory"),window.sinaSax&&window.sinaSax.callback("sendHistoryLog",[2])},300)})}}(),function(){if(-1!=window.location.href.indexOf("wm")){var e,t,n,r=(e=window.location.href,t=new RegExp("wm"+"=(.*?)(&|$)"),null!=(n=e.match(t))?n[1]:""),o=function(e){for(var t=function(e){var t={};if(e){for(var n=e.split("&"),r=0;r-1,u=t(s?i.slice(a+1):""),c="";if(-1!=i.indexOf("#")&&i.indexOf("#")>i.indexOf("?")){var f=i.split("#");i=f[0],c=f[1]}u.wm||(i=(i=s?i:i+"?")+"&wm="+r,c&&(i=i+"#"+c),i=i.replace("?&","?"),o.setAttribute("href",i))}}};document.addEventListener("DOMNodeInserted",function(e){var t=void 0;switch(e.target.tagName){case void 0:return;case"A":t=[e.target];break;default:t=e.target.querySelectorAll("a")}o(t)},!1);var i=document.querySelectorAll("a");o(i)}}(),function(){if(-1!=window.location.href.indexOf("wm")||window.getCookie("wm")){var e,t,n,r="",o=window.sudaLogConfig&&window.sudaLogConfig.wmxp||1;-1!=window.location.href.indexOf("wm")?(e=window.location.href,t=new RegExp("wm"+"=(.*?)(&|$)"),r=null!=(n=e.match(t))?n[1]:"",window.setCookie("wm",r,o,"/",".sina.cn")):(r=window.getCookie("wm"),window.setCookie("wm",r,o,"/",".sina.cn"))}}(),function(){var e=window.getCookie("recent_visited")||"",t="",n=document.referrer;t=n&&-1==n.indexOf("sina.cn")&&-1==n.indexOf("sina.com.cn")?[]:e?JSON.parse(decodeURIComponent(e)):[];var r=(new Date).getTime(),o=window.location.href.split("?")[0];if(t.length>0)for(var i=0;i5&&t.shift(),window.setCookie("recent_visited",JSON.stringify(t),"","/",".sina.cn")},30)}(),(r=document.referrer)&&-1==r.indexOf("sina.cn")&&-1==r.indexOf("sina.com.cn")&&window.setCookie("user_source",-1==r.indexOf("?")?r:r.split("?")[0],"","/",".sina.cn"),function(){var e=n(2),t=e.crosData,r=e.cookieProtector;if("sina.cn"===location.host){var o=new r({maxSize:600,whiteList:["ustat","genTime","SMART","_SMART","push_dialog","_ch_dlg","popT","callT","downT","xjXName","xjMobile","xjProvince","xjCity","searchHistoryDB","hangqingInfo_username","hangqingInfo_usermobile","share_read_time","yzzx_val","qdz_val","myz_val","carsHistoryV2","complain_searchRecord","ANIMATE_LOGO","NAV_POINT_SHOW_FLAG","WEEK_NO_PUSH","ADD_SCREEN_POP","historyRecord","FAV_PROMPT","isOldUser","palmnews_banner_ch","current_city","w_dc","weather_my_visited","conceive_calendar","tools_job","changtu_my_visited","wm","fromsinago","vt","dfz_location","dfz_loc","SMART","dfz_loc","tabVersion","historyRecord","__utrace","SINAGLOBAL","Apache","ULV","SUP","ustat","SUBP","sina_ucode","recent_visited","user_source","SINAVID","lqreferer","lquser","_universallinkTimes"].map(function(e){return{name:e}})});o.on("large",function(e){console.warn(e+" cookie is too large!")}),o.on("illegal",function(e){delCookie(e),console.warn(e+" cookie is too illegal,cookieProtector removed!")}),o.beginProtector()}SUDA.STORE=new t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(9);n.d(t,"cookieProtector",function(){return r.a}),n.d(t,"crosData",function(){return o.a}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r-1){var i=t[o];Object(s.b)(i)>r[o]&&e.emit("large",o,a.a)}else e.emit("illegal",o,a.a)})}}]),t}();t.a=c},function(e,t,n){"use strict";(function(t){var r=n(6);t.version[1]>5&&(r=n(7)),e.exports=r}).call(t,n(5))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],f=!1,l=-1;function d(){f&&u&&(f=!1,u.length?c=u.concat(c):l=-1,c.length&&p())}function p(){if(!f){var e=s(d);f=!0;for(var t=c.length;t;){for(u=c,c=[];++l1)for(var n=1;n=0?r=i:(r=n+i)<0&&(r=0);r1?t-1:0),r=1;r1?n-1:0),o=1;o=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var f="undefined"===typeof e?"undefined":n(e);if("string"===f&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*u;case"weeks":case"week":case"w":return n*s;case"days":case"day":case"d":return n*a;case"hours":case"hour":case"hrs":case"hr":case"h":return n*i;case"minutes":case"minute":case"mins":case"min":case"m":return n*o;case"seconds":case"second":case"secs":case"sec":case"s":return n*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}(e);if("number"===f&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=a)return c(e,t,a,"day");if(t>=i)return c(e,t,i,"hour");if(t>=o)return c(e,t,o,"minute");if(t>=r)return c(e,t,r,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=a)return Math.round(e/a)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=o)return Math.round(e/o)+"m";if(t>=r)return Math.round(e/r)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){e.exports={name:"@mfelibs/base-tools-crossdomaindata",version:"1.1.20",description:"",main:"./lib/index.js",module:"./src/index.js",scripts:{test:'echo "Error: no test specified" && exit 1',dev:"marax dev",build:"marax build",lib:"marax lib"},author:"",license:"ISC",dependencies:{"event-pubsub":"^4.3.0","js-cookie":"^2.2.0",lru_map:"^0.3.3","lz-string":"^1.4.4",ms:"^2.1.1",store2:"^2.7.0","url-parse":"^1.3.0"},devDependencies:{"webpack-marauder":"^1.8.3"}}}])});