You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
16 KiB

2 years ago
"use strict";function _classCallCheck(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}var _createClass=function(){function e(e,o){for(var t=0;t<o.length;t++){var i=o[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(o,t,i){return t&&e(o.prototype,t),i&&e(o,i),o}}();!function(){function e(e){for(var o=document.cookie.split("; "),t=0;t<o.length;t++){var i=o[t].split("=");if(i[0]==e)return decodeURIComponent(i[1])}}function o(e){window.csdn&&window.csdn.report&&window.csdn.report.reportClick(e)}function t(e){window.csdn&&window.csdn.report&&window.csdn.report.reportView(e)}function i(){var e=/(phone|pad|pod|iphone|ipod|ios|ipad|android|mobile|blackberry|iemobile|mqqbrowser|juc|fennec|wosbrowser|browserng|webos|symbian|windows phone|csdn)/i.test(navigator.userAgent);return/(MicroMessenger)/i.test(navigator.userAgent)?!/(WindowsWechat|MacWechat)/i.test(navigator.userAgent):e}function n(){var e=window.navigator.userAgent,o="others",t={Sogou:/SE\s2\.X|SogouMobileBrowser/,HuaWei:/HuaweiBrowser/,Quark:/Quark/,Explorer2345:/2345Explorer|2345chrome|Mb2345Browser/,Liebao:/LBBROWSER/,QQBrowser:/QQBrowser/,Baidu:/BIDUBrowser|baidubrowser|BaiduHD/,Toutiao:/NewsArticle|NewsLite/,UC:/UBrowser|UCBrowser|UCWEB/,MiuiBrowser:/MiuiBrowser/,Wechat:/MicroMessenger/,MobileQQ:/Mobile\/\w{5,}\sQQ\/(\d+[\.\d]+)/,Shoujibaidu:/baiduboxapp/,Firefox:/Firefox/,Maxthon:/Maxthon/,Se360:/360SE/,Ee360:/360EE/,Wukong:/GoldBrowser|WukongSearch|wksearch/,TheWorld:/TheWorld/,Weibo:/__weibo__/,NokiaBrowser:/NokiaBrowser/,Opera:/Opera|OPR\/(\d+[\.\d]+)/,Edge:/Edge/,IE:/Trident|MSIE/,Chrome:/Chrome|CriOS/,Safari:/Version[|\/]([\w.]+)(\s\w.+)?\s?Safari|like\sGecko\)\sMobile\/\w{3,}$/,AndroidBrowser:/Android.*Mobile\sSafari|Android\/(\d[\.\d]+)\sRelease\/(\d[\.\d]+)\sBrowser\/AppleWebKit(\d[\.\d]+)/i};for(var i in t)if(t[i].exec(e)){o=i;break}return o}function s(){var e=/micromessenger/.test(navigator.userAgent.toLowerCase()),o=/wxwork/.test(navigator.userAgent.toLowerCase());if("undefined"!=typeof WeixinJSBridge||e)return!o}function r(e){this.app=c(),this.isMobile=i(),this.cb=void 0,this.payInfo=void 0,e&&e.cb&&(this.cb=e.cb),e&&e.biz&&"pay"===e.biz&&e.payInfo&&(this.payInfo=e.payInfo),this.cb&&(delete e.cb,e.hascb="yes"),this.payInfo&&delete e.payInfo,this.inputData=e,this.defaultParams={domain:"csdn.net",isIframe:!0,frameWidth:this.isMobile?343:410,frameHeight:this.isMobile?410:520,append:"#passportbox",iframeName:"passport_iframe",from:encodeURIComponent(window.location.href),pvSource:"",service:"",loginService:this.isMobile?"https://passport.csdn.net/waplogin":"https://passport.csdn.net/account/login"};var o=d&&d.spm?d.spm:"",t=e&&e.spm?e.spm:"",n=t||o;n&&(this.inputData=this.inputData||{},this.inputData.spm=f(n)),this.options=Object.assign({},this.defaultParams,this.inputData),this.extend="",this.version=this.isMobile?"popupv1":"loginv3",this.renderCss(),this.fileExtends(),this.init(this.options)}var a=null,d={};window.csdn=window.csdn||{};var l=function(e,o,t){var i=new Date;if(t)"number"==typeof t?i.setTime(i.getTime()+t):i=new Date(i.getFullYear(),i.getMonth(),i.getDate()+1,0,0,0);else{i.setTime(i.getTime()+2592e6)}document.cookie=e+"="+encodeURIComponent(o)+";expires="+i.toGMTString()+";domain=.csdn.net;path=/"},p=function(e){var o=/([^?#*&=]+)=([^?#*&=]+)/g,t={};return location.href.replace(o,function(){for(var e=arguments.length,o=Array(e),i=0;i<e;i++)o[i]=arguments[i];var n=o[1],s=o[2];t[n]=s}),t[e]},c=function(){return navigator.userAgent.toLowerCase().indexOf("csdn")>-1},h=function(){if(c()){var e=navigator.userAgent.toLowerCase(),o=JSON.stringify({url:"csdnapp://app.csdn.net/login/quick"});/iphone|ipad|ipod|ios/i.test(e)?window.webkit.messageHandlers.csdnjumpnewpage.postMessage(o):window.jsCallBackListener.csdnjumpnewpage(o)}},u=function(){if(c()){/iphone|ipad|ipod|ios/i.test(navigator.userAgent.toLowerCase())?window.webkit.messageHandlers.csdnLogOut.postMessage(null):window.jsCallBackListener.csdnLogOut()}},f=function(e){e=String(e);va