/*! * @version 1.1.55-4 * @date 2022-11-30 * @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(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},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 o}),n.d(t,"c",function(){return r}),n.d(t,"a",function(){return i});var o=function(e,t){var n,o,r,i=0;if("utf-16"===(t=t?t.toLowerCase():"")||"utf16"===t)for(o=0,r=e.length;o<\/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://",o=function(e,t,n,o){if(""==e)return"";t+=o=""==o?"=":o;var r=e.indexOf(t);if(r<0)return"";r+=t.length;var i=e.indexOf(n,r);return i0?t:0;return n.length>o?n[o].content:""},I=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},A=function(e){if("string"!==typeof e)throw"trim need a string as parameter";for(var t=e.length,n=0,o=/(\u3000|\s|\t|\u00A0)/;nn&&o.test(e.charAt(t-1));)t-=1;return e.slice(n,t)},k="MT="+(O()||"");if("undefined"!==typeof sudaLogConfig&&"undefined"!==typeof sudaLogConfig.prevPageClickTime&&""!==sudaLogConfig.prevPageClickTime){var T=void 0!==sudaLogConfig.prevPageClickTime?sudaLogConfig.prevPageClickTime:0;k+="|mperform:1|starttime:"+T+"|endtime:"+y+"|clicktime:"+(y-T)}var L,U,j,E,D=f.referrer.toLowerCase(),N="",P=function(){return p.width+"x"+p.height},R=function(){return p.colorDepth||""},M=function(){return l.appCodeName||""},B=function(){return l.appName.indexOf("Microsoft Internet Explorer")>-1?"MSIE":l.appName},z=function(){return l.cpuClass||l.oscpu||""},q=function(){return l.platform||""},F=function(){var e=void 0,t=void 0,n=void 0,o=1,r=l.appName.indexOf("Microsoft Internet Explorer")>-1?"MSIE":l.appName,i=l.appVersion;return"MSIE"==r?(t="MSIE",(e=i.indexOf(t))>=0&&3<=(n=window.parseInt(i.substring(e+5)))&&(o=1.1,4<=n&&(o=1.3))):"Netscape"!=r&&"Opera"!=r&&"Mozilla"!=r||(o=1.3,t="Netscape6",(e=i.indexOf(t))>=0&&(o=1.5)),o},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""},Z=function(){var e=l.plugins,t=l.javaEnabled(),n=void 0;if(1==t)return 1;if(e&&e.length){for(var o in e)if(null!=(n=e[o]).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},X={pageId:function(){return""},sessionCount:function(){return""},excuteCount:function(){return SUDA.sudaCount},referrer:function(){if(""==D||D.match(/^[^\?&#]*.swf([\?#])?/)){var e=o(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 S("stencil")||""},ZT:function(){var e=S("subjectid");return e.replace(",","."),e.replace(";",","),escape(e)},mediaType:function(){return O()||""},domCount:function(){return f.getElementsByTagName("*").length||""},iframeCount:function(){return f.getElementsByTagName("iframe").length},onloadTime:u,readyTime:s,webUrl:g,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="",o=void 0;if(t.length>=6)if(e!=t[4]){o=new Date;var r=new Date(window.parseInt(t[0]));t[1]=window.parseInt(t[1])+1,o.getMonth()!=r.getMonth()?t[2]=1:t[2]=window.parseInt(t[2])+1,(o.getTime()-r.getTime())/864e5>=7?t[3]=1:o.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.nickName=e.data.nick,e.data.userface=e.data.avatar=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"],o="",r=0,i=e.length;r>2,a=(3&n)<<4|(o=e.charCodeAt(c++))>>4,s=(15&o)<<2|(r=e.charCodeAt(c++))>>6,u=63&r,isNaN(o)?s=u=64:isNaN(r)&&(u=64),t=t+this._keys.charAt(i)+this._keys.charAt(a)+this._keys.charAt(s)+this._keys.charAt(u),n=o=r="",i=a=s=u=""}while(c>4,a=(15&u)<<4|(c=o(d,e[p++]))>>2,s=(3&c)<<6|(f=o(d,e[p++])),r.push(i),64!=c&&-1!=c&&r.push(a),64!=f&&-1!=f&&r.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"+o),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,o=(e=window.location.href,t=new RegExp("wm"+"=(.*?)(&|$)"),null!=(n=e.match(t))?n[1]:""),r=function(e){for(var t=function(e){var t={};if(e){for(var n=e.split("&"),o=0;o-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="+o,c&&(i=i+"#"+c),i=i.replace("?&","?"),r.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")}r(t)},!1);var i=document.querySelectorAll("a");r(i)}}(),function(){if(-1!=window.location.href.indexOf("wm")||window.getCookie("wm")){var e,t,n,o="",r=window.sudaLogConfig&&window.sudaLogConfig.wmxp||1;-1!=window.location.href.indexOf("wm")?(e=window.location.href,t=new RegExp("wm"+"=(.*?)(&|$)"),o=null!=(n=e.match(t))?n[1]:"",window.setCookie("wm",o,r,"/",".sina.cn")):(o=window.getCookie("wm"),window.setCookie("wm",o,r,"/",".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 o=(new Date).getTime(),r=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)}(),(o=document.referrer)&&-1==o.indexOf("sina.cn")&&-1==o.indexOf("sina.com.cn")&&window.setCookie("user_source",-1==o.indexOf("?")?o:o.split("?")[0],"","/",".sina.cn"),function(){var e=n(4),t=e.crosData,o=e.cookieProtector;if("sina.cn"===location.host){var r=new o({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","fold_botton_time"].map(function(e){return{name:e}})});r.on("large",function(e){console.warn(e+" cookie is too large!")}),r.on("illegal",function(e){delCookie(e),console.warn(e+" cookie is too illegal,cookieProtector removed!")}),r.beginProtector()}SUDA.STORE=new t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),r=n(11);n.d(t,"cookieProtector",function(){return o.a}),n.d(t,"crosData",function(){return r.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),o=1;o-1){var i=t[r];Object(s.b)(i)>o[r]&&e.emit("large",r,a.a)}else e.emit("illegal",r,a.a)})}}]),t}();t.a=c},function(e,t,n){"use strict";(function(t){var o=n(8);t.version[1]>5&&(o=n(9)),e.exports=o}).call(t,n(7))},function(e,t){var n,o,r=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{o="function"===typeof clearTimeout?clearTimeout:a}catch(e){o=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?o=i:(o=n+i)<0&&(o=0);o1?t-1:0),o=1;o1?n-1:0),r=1;r=2&&(n=n.slice(2)):v(r)?n=o[4]:r?i&&(n=n.slice(2)):u>=2&&v(t.protocol)&&(n=o[4]),{protocol:r,slashes:i||v(r),slashesCount:u,rest:n}}function g(e,t,n){if(e=(e=d(e)).replace(s,""),!(this instanceof g))return new g(e,t,n);var a,u,c,f,h,y,b=p.slice(),_="undefined"===typeof t?"undefined":o(t),C=this,x=0;for("object"!==_&&"string"!==_&&(n=t,t=null),n&&"function"!==typeof n&&(n=i.parse),t=m(t),a=!(u=w(e||"",t)).protocol&&!u.slashes,C.slashes=u.slashes||a&&t.slashes,C.protocol=u.protocol||t.protocol||"",e=u.rest,("file:"===u.protocol&&(2!==u.slashesCount||l.test(e))||!u.slashes&&(u.protocol||u.slashesCount<2||!v(C.protocol)))&&(b[3]=[/(.*)/,"pathname"]);x=1.5*n;return Math.round(e/n)+" "+o+(r?"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*r;case"seconds":case"second":case"secs":case"sec":case"s":return n*o;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>=r)return c(e,t,r,"minute");if(t>=o)return c(e,t,o,"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>=r)return Math.round(e/r)+"m";if(t>=o)return Math.round(e/o)+"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"}}}])});