!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define([],e):"object"==typeofexports?exports.initNECaptcha=e():t.initNECaptcha=e()}(this,function(){returnfunction(t){functione(n){if(r[n])returnr[n].exports;varo=r[n]={exports:{},id:n,loaded:!1};returnt[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}varr={};returne.m=t,e.c=r,e.p="/",e(0)}([function(t,e,r){r(20),r(23),r(22),r(19),r(21);varn=r(17);t.exports=n},function(t,e){functionr(t,e,r){returneint?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}functionn(t,e){functionr(){}r.prototype=e.prototype,t.prototype=newr,t.prototype.constructor=t}functiono(t,e,r){this.name="CaptchaError",this.code=t,this.message=t+("("+_[t]+")")+(e?" - "+e:""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(newError).stack,this.data=r||{}}vari,a="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},c="prototype",s=100,u=200,l=300,p=432,f=500,h=501,d=502,v=503,y=504,m=505,g=600,E=1e3,_=(i={},r(i,s,"script error"),r(i,u,"business error"),r(i,l,"unpass error"),r(i,p,"captcha id is invalid"),r(i,f,"request error"),r(i,h,"request api error"),r(i,d,"request script error"),r(i,v,"request img error"),r(i,y,"request timeout error"),r(i,m,"request audio error"),r(i,g,"request anticheat token error"),r(i,E,"unknown error"),i);n(o,Error),o[c].toString=function(){vart=String(this.stack);return0===t.indexOf("CaptchaError:")?t:this.name+": "+this.message+(t?"\n "+t:"")},o.set=function(t,e){"number"==typeoft&&"string"==typeofe&&(_[t]=e),"object"===("undefined"==typeoft?"undefined":a(t))&&t&&Object.assign(_,t)},o.get=function(t){return_[t]},o.remove=function(t){String(t)in_&&delete_[t]},e=t.exports=o,e.SCRIPT_ERROR=s,e.BUSINESS_ERROR=u,e.UNPASS_ERROR=l,e.ID_INVAILD_ERROR=p,e.REQUEST_ERROR=f,e.REQUEST_API_ERROR=h,e.REQUEST_SCRIPT_ERROR=d,e.REQUEST_IMG_ERROR=v,e.REQUEST_TIMEOUT_ERROR=y,e.REQUEST_AUDIO_ERROR=m,e.ANTICHEAT_TOKEN_ERROR=g,e.UNKNOWN_ERROR=E},function(t,e,r){functionn(t,e){varr={};for(varnint)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);returnr}varo=Object.assign||function(t){for(vare=1;e<arguments.length;e++){varr=arguments[e];for(varninr)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}returnt},i=r(24),a=r(3),c=r(10),s=r(14),u=r(6),l=0,p=/MicroMessenger|Weibo/i.test(window.navigator.userAgent),f=function(t){return"string"==typeoft?[t,t]:Array.isArray(t)&&1===t.length?t.concat(t):t},h=function(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:1;returnparseInt((newDate).valueOf()/t,10)},d={script:function(t,e){varr=this;this.cacheTime&&(t=t+"?v="+h(this.cacheTime)),i(t,{charset:"UTF-8"},function(n,o){vari=r.detectKey;if(n||i&&!window[i]){vara=n&&n.message||"unreliable script",c=newError("Failed to load script("+t+")."+a);returnc.data={url:t,retry:!!r._options.retry},voide(c)}e({scriptEl:o,_originUrl:t})})},image:function(t,e){varr=this,n=document.createElement("img");n.onload=function(){n.onload=n.onerror=null,e({width:n.width,height:n.height,src:t})},n.onerror=function(o){n.onload=n.onerror=null;vari=o&&o.message||"unreliable image error",a=newError("Failed to load image("+t+")."+i);a.data={url:t,retry:!!r._options.retry},e(a)},n.src=t},audio:function(t,e){varr=this;try{if(p){varn=newXMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){vart=newBlob([n.response],{type:"audio/mpeg"}),r=URL.createObjectURL(t);e({src:r})},n.onerror=function(){n.onload=n.onerror=null;varr=n.statusText||"unreliable audio error",o=n.status||"",i=newError("Failed to load audio("+t+")."+r+"."+o);i.data={url:t,retry:!!this._options.retry},e(i)},n.send()}else{varo=newAudio;o.oncanplaythrough=function(r){o.oncanplaythrough=o.onerror=null,e({src:t})},o.onerror=function(n){o.oncanplaythrough=o.onerror=null;vari=o.error&&o.error.message||"unreliable audio error",a=o.error&&o.code||"",c=newError("Failed to play audio("+t+")."+i+"."+a);c.data={url:t,retry:!!r._options.retry},e(c)},o.src=t,o.load()}}catch(i){vara=newError("not support audio");a.data={url:t,retry:!!this._options.retry},e(a)}},api:function(t,e,r){varn=this;s(t,r,function(r,i,a){if(r){varc=r&&r.message||"unreliable api error",s=newError("Failed to request api("+t+")."+c);returns.data={url:t,retry:!!n._options.retry},voide(s)}e(o({},i,{_originUrl:a.url}))},{timeout:this.timeout})}},v=function(t){this.id=t.id||"resource_"+l++,this.type=t.type||"script",this.url=t.url||"",this.payload=t.payload,this.timeout=t.timeout||6e3,this.cacheTime=t.cacheTime?parseInt(t.cacheTime,10):0,this.detectKey=t.detectKey||"",this._options=t,a.call(this),this.load(),this.setTimeout()};c(v,a),Object.assign(v.prototype,{load:function(){vart=this,e=d[this.type];e&&e.call(this,this.url,function(e){returnt.resolve(e)},this.payload)},addSupport:function(t,e,r){("function"!=typeofd[t]||r)&&(d[t]=e)},setTimeout:function(){vart=this;window.setTimeout(function(){vare=String(t.url),r=newError("Timeout: failed to request "+t.type+"("+e+").");r.data={url:e},t.resolve(r)},this.timeout)}}),v.SUPPORTS=d;vary=function(t){d.hasOwnProperty(t)&&(v[t]=function(e){varr=e.disableRetry,i=e.onProcess,c=e.checkResult,s=n(e,["disableRetry","onProcess","checkResult"]);if(r){varl=s.url;returnArray.isArray(l)&&(l=l[0]||""),newv(o({},s,{url:l,type:t}))}varp=f(e.url),h=newa,d=functiony(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:0,r=function(r){varn=p.length;e<n-1?y(e+1):e===n-1&&(r.data=o({},r.data,{url:String(p),requestId:d.id}),h.resolve(r)),u.isFn(i)&&i(f,d.id,t,{status:"error",error:r,index:e})},n=function(t){vare=tinstanceofError?t:newError("Failed to check result of "+f);e.data={url:f,retry:!!s.retry},r(e)},l=function(e){u.isFn(i)&&i(f,d.id,t,{status:"success",res:e}),h.resolve(e)},f=p[e],d=newv(o({},s,{type:t,url:f,retry:e>0}));u.isFn(i)&&i(f,d.id,t,{status:"start"}),d.then(function(t){if(!u.isFn(c))returnl(t);vare=c(t);einstanceofa?e.then(l(t))["catch"](function(t){returnn(t)}):e?l(t):n()})["catch"](function(t){returnr(t)})};returnd(0),h})};for(varmind)y(m);v.all=function(t){vare=0,r=!1,n=newa,o=[];returnt.map(function(i,a){i.then(function(i){r||(o[a]=i,e++,e===t.length&&n.resolve(o))})["catch"](function(t){r=!0,n.resolve(t)})}),n},t.exports=v},function(t,e){functionr(){this._state=i,this._arg=void0,this._fullfilledCallback=[],this._rejectedCallback=[]}functionn(t){window.setTimeout(t,1)}functiono(t){if(t){vare=newr;t.then=function(){returne.then.apply(e,arguments)},t["catch"]=function(){returne["catch"].apply(e,arguments)},t["finally"]=function(){returne["finally"].apply(e,arguments)},t.resolve=function(){returne.resolve.apply(e,arguments)}}}vari="pending",a="fullfilled",c="rejected";Object.assign(r.prototype,{then:function(t,e){varr=function(t){return"function"==typeoft};returnr(t)&&this._fullfilledCallback.push(t),r(e)&&this._rejectedCallback.push(e),this._state!==i&&this._emit(this._state),this},"catch":function(t){returnthis.then(null,t)},"finally":function(t){returnthis.then(t,t)},resolve:function(t){this._state===i&&(tinstanceofError?this._state=c:this._state=a,this._arg=t,this._emit(this._state))},_emit:function(t){vare=this;switch(t){casea:n(function(){e._fullfilledCallback.map(function(t){returnt(e._arg)}),e._fullfilledCallback=[],e._rejectedCallback=[]});break;casec:n(function(){e._rejectedCallback.map(function(t){returnt(e._arg)}),e._fullfilledCallback=[],e._rejectedCallback=[]})}}}),r.mixin=o,t.exports=r},function(t,e){t.exports=function(t){vare=t.protocol,r=void0===e?"":e,n=t.host,o=void0===n?"":n,i=t.port,a=void0===i?"":i,c=t.path,s=void0===c?"":c,u=t.search,l=void0===u?"":u,p=t.hash,f=void0===p?"":p;if(r&&(r=r.replace(/:?\/{0,2}$/,"://")),o){varh=o.match(/^([-0-9a-zA-Z.:]*)(\/.*)?/);o=h[1],s=(h[2]||"")+"/"+s}if(!o&&(r=""),a){if(!o)throwError('"host" is required, if "port" was provided');a=":"+a}returns&&(s=s.replace(/^\/*|\/+/g,"/")),l&&(l=l.replace(/^\??/,"?")),f&&(f=f.replace(/^#?/,"#")),r+o+a+s+l+f}},function(t,e){e.CAPTCHA_TYPE={JIGSAW:2,POINT:3,SMS:4,INTELLISENSE:5,ICON_POINT:7,INFERENCE:9,WORD_ORDER:10,SPACE:11,VOICE:12},e.CAPTCHA_CLASS={CAPTCHA:"yidun",PANEL:"yidun_panel",SLIDE_INDICATOR:"yidun_slide_indicator",SLIDER:"yidun_slider",JIGSAW:"yidun_jigsaw",POINT:"point",SMS:"yidun_sms",TIPS:"yidun_tips",REFRESH:"yidun_refresh",CONTROL:"yidun_control",BGIMG:"yidun_bgimg",INPUT:"yidun_input",LOADBOX:"yidun_loadbox",LOADICON:"yidun_loadicon",LOADTEXT:"yidun_loadtext",ERROR:"error",WARN:"warn",VERIFY:"verifying",SUCCESS:"success",LOADING:"loading",LOADFAIL:"loadfail"},e.WIDTH_LIMIT=[220,1e4],e.SAMPLE_NUM=50,e.DEVICE={MOUSE:1,TOUCH:2,MOUSE_TOUCH:3},e.MAX_VERIFICATION=5,e.RTL_LANGS=["ar","he"],e.CACHE_MIN=6e4,e.FILE_DETECT_KEY={core:"NECaptcha",light:"NECaptcha_theme_light",dark:"NECaptcha_theme_dark",plugins:"NECaptcha_plugin",watchman:"initWatchman"},e.FEEDBACK_URL="http://support.dun.163.com/feedback/captcha",e.RUN_ENV={WEB:10,ANDROID:20,IOS:30,MINIPROGRAM:40,JUMPER_MINI_PROGRAM:50,QUICKAPP:60},e.CLOSE_SOURCE={USER:1,PROCESS:2,CLOSE:3}},function(t,e){varr={}.toString,n={slice:function(t,e,r){for(varn=[],o=e||0,i=r||t.length;o<i;o++)n.push(o);returnn},getObjKey:function(t,e){for(varrint)if(t.hasOwnProperty(r)&&t[r]===e)returnr},typeOf:function(t){returnnull==t?String(t):r.call(t).slice(8,-1).toLowerCase()},isFn:function(t){return"function"==typeoft},log:function(t,e){varr=["info","warn","error"];return"string"==typeoft&&~r.indexOf(t)?void(console&&console[t]("[NECaptcha] "+e)):voidn.error('util.log(type, msg): "type" must be one string of '+r.toString())},warn:function(t){n.log("warn",t)},error:function(t){n.log("error",t)},assert:function(t,e){if(!t)thrownewError("[NECaptcha] "+e)},msie:functiono(){vart=navigator.userAgent,o=parseInt((/msie (\d+)/.exec(t.toLowerCase())||[])[1]);returnisNaN(o)&&(o=parseInt((/trident\/.*; rv:(\d+)/.exec(t.toLowerCase())||[])[1])),o},now:function(){return(newDate).getTime()},getIn:function(t,e,r){if("[object Object]"!==Object.prototype.toString.call(t))returnr;"string"==typeofe&&(e=e.split("."));for(varn=0,o=e.length;n<o;n++){vari=e[n];if(n<o-1&&!t[i])returnr||void0;t=t[i]}returnt},raf:functioni(t){vari=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){window.setTimeout(t,16)};i(t)},nextFrame:function(t){n.raf(function(){returnn.raf(t)})},sample:function(t,e){varr=t.length;if(r<=e)returnt;for(varn=[],o=0,i=0;i<r;i++)i>=o*(r-1)/(e-1)&&(n.push(t[i]),o+=1);returnn},template:function(t,e){varr=function(t){returnt.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},n={start:"<%",end:"%>",interpolate:/<%=(.+?)%>/g},o=n,i=newRegExp("'(?=[^"+o.end.substr(0,1)+"]*"+r(o.end)+")","g"),a=newFunction("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+t.replace(/[\r\t\n]/g," ").replace(i,"\t").split("'").join("\\'").split("\t").join("'").replace(o.interpolate,"',$1,'").split(o.start).join("');").split(o.end).join("p.push('")+"');}return p.join('');");returne?a(e):a},uuid:functiona(t,e){varr="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),a=[],n=void0;if(e=e||r.length,t)for(n=0;n<t;n++)a[n]=r[0|Math.random()*e];else{varo=void0;for(a[8]=a[13]=a[18]=a[23]="-",a[14]="4",n=0;n<36;n++)a[n]||(o=0|16*Math.random(),a[n]=r[19===n?3&o|8:o])}returna.join("")},reverse:function(t){returnArray.isArray(t)?t.reverse():"string"===n.typeOf(t)?t.split("").reverse().join(""):t},encodeUrlParams:function(t){vare=[];for(varrint)t.hasOwnProperty(r)&&e.push(window.encodeURIComponent(r)+"="+window.encodeURIComponent(t[r]));returne.join("&")}};t.exports=n},function(t,e,r){functionn(t,e){varr={};for(varnint)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);returnr}functiono(t,e){functionr(){}r.prototype=e.prototype,t.prototype=newr,t.prototype.constructor=t}functioni(t,e){this.enable=!0,this.snaker=newu(s({},t,{pid:"captcha",limit:9,random:.3,version:"2.15.4"})),this._captchaConfig=e||{},this.events={}}functiona(t,e){varr=f(t);if("string"===r||"number"===r)return"string"===r&&(t=parseFloat(t),!isNaN(t)&&(t=t.toFixed)),t.toFixed(e)}functionc(t){vare=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},r="network";returnfunction(n,o,i,c){varu=c.status,p=c.error,f=c.index,d=c.res,E=c.perfEntry;try{varb=l(n),w="image"===i?"image":b.path;if(p){t.remove(r,w,o);varS={script:v,image:m,audio:g,api:y},C=newh(S[i],p.message,s({},e,{url:n}));t.collectErr(C,{times:f+1})}else{varI=O[u];if(R){if("end"!==I)return;varT=E||_.getEntriesByName(d&&d._originUrl||n)[0];if(!T)return;t.collect(r,w,{tc:a(T.responseEnd-(T.domainLookupStart||T.connectStart),1),dc:a(T.domainLookupEnd-T.domainLookupStart,1),cc:a(T.connectEnd-T.connectStart,1),rc:a(T.responseStart-T.requestStart,1),rr:a(T.responseEnd-T.responseStart,1),url:n,host:b.host,https:"https"===b.protocol,from:"PERF"},{},s({},e))}elset.collect(r,w,{timestamp:(newDate).valueOf(),url:n,host:b.host,https:"https"===b.protocol,from:"js"},{rangeId:o,rangeType:I},s({},e))}}catch(C){}}}vars=Object.assign||function(t){for(vare=1;e<arguments.length;e++){varr=arguments[e];for(varninr)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}returnt},u=r(11),l=r(15),p=r(6),f=p.typeOf,h=r(1),d=r(12),v=h.REQUEST_SCRIPT_ERROR,y=h.REQUEST_API_ERROR,m=h.REQUEST_IMG_ERROR,g=h.REQUEST_AUDIO_ERROR,E="prototype",_=window.performance||window.msPerformance||window.webkitPerformance||{},R=_&&"getEntriesByName"in_;o(i,Error),i[E].collect=function(t,e,r,o,i){vara=o.rangeId,c=o.rangeType;if(this.enable)try{if(a){varu=r.timestamp,l=n(r,["timestamp"]);!this.events[t]&&(this.events[t]={}),!this.events[t][e]&&(this.events[t][e]={});varp=this.events[t][e][a];if("start"!==c||p){if("end"===c&&p&&!p.end){Object.assign(p,s({end:u,zoneId:this._captchaConfig.zoneId,extra:i},l));varh=p.end,d=p.start,v=p.extra,y=n(p,["end","start","extra"]);this.snaker.trackAsync(t,e,window.encodeURIComponent(JSON.stringify(s({tc:h-d},y))),s({},v,{nts:(newDate).valueOf()})),this.events[t][e][a]=null}}elsethis.events[t][e][a]=s({ev:p,start:u,extra:i},l)}elsethis.snaker.trackAsync(t,e,"string"===f(r)?r:window.encodeURIComponent(JSON.stringify(s({},r,{zoneId:this._captchaConfig.zoneId}))),s({},i,{nts:(newDate).valueOf()}))}catch(m){}},i[E].collectErr=function(t,e){d(t,this._captchaConfig,s({},e))},i[E].remove=function(t,e,r){t&&e&&r?this.events[t]&&this.events[t][e]&&deletethis.events[t][e][r]:t&&e?this.events[t]&&(this.events[t][e]={}):t&&(this.events[t]={})},i[E].clear=function(){if(this.enable)try{this.snaker.flush(),this.events={}}catch(t){}};varO={start:"start",success:"end"};e=t.exports=i,e.createNetCollect=c,e.supportEntries=R},function(t,e,r){varn=Object.assign||function(t){for(vare=1;e<arguments.length;e++){varr=arguments[e];for(varninr)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}returnt},o=r(2),i=r(13);t.exports=function(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},e=t.captchaConfig,r=void0===e?{}:e;returnfunction(e,a,c,s){a=Object.assign({referer:i(),zoneId:r.zoneId||""},a);varu=n({},t,s,{url:e,payload:a});o.api(u).then(function(t){returnc(null,t)})["catch"](c)}}},function(t,e,r){varn=r(5),o=n.FILE_DETECT_KEY;t.exports=function(t){vare=Object.keys(o);if(e.indexOf(t)>-1)returno[t];for(varr=0,n=e.length;r<n;r++)if(newRegExp("/"+e[r]+"\\.(\\S*?\\.min\\.)?js").test(t))returno[e[r]];return""}},function(t,e){t.exports=function(t,e){functionr(){}r.prototype=e.prototype,t.prototype=newr,t.prototype.constructor=t}},function(t,e,r){!function(e,r){t.exports=r()}(this,function(){"use strict";functiont(t){vare=newRegExp("(^|;)[ ]*"+t+"=([^;]*)"),r=e.exec(document.cookie);returnr?decodeURIComponent(r[2]):""}functione(t,e,r){varn,o=t+"="+encodeURIComponent(e)+";";r&&(n=newDate,n.setTime(n.getTime()+r),o+="expires="+n.toUTCString()),document.cookie=o}functionr(){for(vart="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",e="",r=0,n=t.length;r<16;r++)e+=t.charAt(Math.floor(Math.random()*n));returne}varn,o=function(){returno=Object.assign||function(t){for(vare,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(varoine)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}returnt},o.apply(this,arguments)},i={userData:null,name:location.hostname+"_snaker",init:function(){if(!i.userData)try{i.userData=document.createElement("INPUT"),i.userData.type="hidden",i.userData.style.display="none",i.userData.addBehavior("#default#userData"),i.userData&&document.body.appendChild(i.userData);vart=newDate;t.setDate(t.getDate()+365),i.userData.expires=t.toUTCString()}catch(e){returnconsole.log("userData is disabled!"),!1}return!0},setItem:function(t,e){i.init()&&i.userData&&(i.userData.load(i.name),i.userData.setAttribute(t,e),i.userData.save(i.name))},getItem:function(t){returni.init()&&i.userData?(i.userData.load(i.name),i.userData.getAttribute(t)||""):""},removeItem:function(t){i.init()&&i.userData&&(i.userData.load(i.name),i.userData.removeAttribute(t),i.userData.save(i.name))}};try{n=localStorage||i}catch(a){n=i}varc=function(){functiont(t){this.name=t}returnt.prototype.push=function(t){if(t)try{vare=n.getItem(this.name);n.setItem(this.name,e?e+","+t:t)}catch(r){console.log("localstorage or userData is disabled!")}},t.prototype.length=function(){try{vart=n.getItem(this.name)||"";returnt?t.split(",").length:0}catch(e){returnconsole.log("localstorage or userData is disabled!"),0}},t.prototype.pop=function(t){void0===t&&(t=1);vare;try{varr=n.getItem(this.name),o=r?r.split(","):[];e=o.splice(0,t),n.setItem(this.name,o.join(","))}catch(i){e=[],console.log("localstorage or userData is disabled!")}returne},t.prototype.clear=function(){try{n.removeItem(this.name)}catch(t){console.log("localstorage or userData is disabled!")}},t}(),s=function(){functionn(n){if(!n.pid)thrownewError("product id is required!");varo=n.pid,i=n.bid,a=n.url,s=n.random,u=n.limit,l=n.disabled,p=n.version;this.pid=o,this.bid=i,this.random=s||100,this.limit=u||5,this.disabled=l,this.version=p||"",this.url=a||"https://da.dun.163.com/sn.gif",this.prefix="__snaker__id",this.cache=newc(this.prefix);varf=t(this.prefix);f?this.uuid=f:(this.uuid=r(),e(this.prefix,this.uuid,31536e6))}returnn.prototype.setUser=function(t){if("string"==typeoft)this.user={uid:t};else{this.user={uid:t.uid};for(vareint)t.hasOwnProperty(e)&&"uid"!==e&&(this.user["$user_"+e]=t[e])}},n.prototype.serialize=function(t,e){varr=this,n=r.pid,i=r.bid,a=r.uuid,c=r.user,s=r.version,u=t.type,l=t.name,p=t.value,f=function(t,e){returnt.substring(0,e)},h=screen.width+"x"+screen.height,d=f(location.href,200),v=(newDate).getTime()+"",y=o(o({pid:n,bid:i,uuid:a,type:u,name:l,version:s,value:p,res:h,pu:d,nts:v},e),c),m=[];for(varginy)y.hasOwnProperty(g)&&void0!==y[g]&&m.push(encodeURIComponent(g+"=")+encodeURIComponent(encodeURIComponent(y[g])));returnm.join("%26")},n.prototype.sendRequest=function(t,e){if(!this.disabled){varr=newImage(1,1);r.src=t+"?d="+e}},n.prototype.report=function(t,e,r,n,o){if(!this.disabled){vari=this.serialize({type:t,name:e,value:r},o?o:{});this.random<Math.random()||(n?(this.cache.push(i),this.cache.length()>=this.limit&&this.flush()):this.sendRequest(this.url,i))}},n.prototype.track=function(t,e,r,n){this.report(t,e,r,!1,n)},n.prototype.trackAsync=function(t,e,r,n){this.report(t,e,r,!0,n)},n.prototype.flush=function(){for(vart="",e=this.cache.pop(this.limit);e.length;){varr=e.pop()||"";r&&(t.length+r.length<=1800?(t=t?t+","+r:r,e.length||this.sendRequest(this.url,t)):(this.sendRequest(this.url,t),t=r))}},n}();returns})},function(t,e,r){functionn(t,e,r){returneint?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}varo,i=r(8),a=r(4),c=r(1),s=c.REQUEST_SCRIPT_ERROR,u=c.REQUEST_API_ERROR,l=c.REQUEST_IMG_ERROR,p=c.REQUEST_AUDIO_ERROR,f=c.BUSINESS_ERROR,h=c.UNPASS_ERROR,d=c.ANTICHEAT_TOKEN_ERROR,v=r(3),y=r(2),m=r(6),g=m.uuid,E=(o={},n(o,u,"api"),n(o,l,"image"),n(o,p,"audio"),n(o,s,"script"),n(o,f,"business"),n(o,h,"unpass"),n(o,d,"anticheat"),o),_=null;t.exports=function(t,e,r){varn=e.protocol,o=e.apiServer,c=e.__serverConfig__,s=void0===c?{}:c,u=e.captchaId,l=e.timeout,p=newv,f=function(t){vare="/api/v2/collect";returnArray.isArray(t)?t.map(function(t){returna({protocol:n,host:t,path:e})}):a({protocol:n,host:t,path:e})},h=f(o||s.apiServer||["c.dun.163.com","c.dun.163yun.com"]),d=i({timeout:l,disableRetry:!0,captchaConfig:e}),m=t.data,R=Object.assign({id:u,token:m.token||"",type:E[t.code]||"other",target:m.url||m.resource||"",message:t.toString()},r);null==window.ip&&(window.ip=function(t,e,r){_={ip:t,dns:r}});varO=function(){Object.assign(R,_),d(h,R,function(t,e){if(t||e.error){console&&console.warn("Failed to collect error.");varr=newError(t?t.message:e.msg);returnr.data={url:h},voidp.resolve(r)}p.resolve()})},b=n+"://only-d-"+g(32)+"-"+(newDate).valueOf()+".nstool.netease.com/ip.js";returny.script({url:b,timeout:l,checkResult:function(t){t&&t.scriptEl&&t.scriptEl.parentElement.removeChild(t.scriptEl);vare=newv;return_&&_.dns?(e.resolve(),e):(setTimeout(function(){returne.resolve(newError("try to collect dns again"))},100),e)}})["finally"](function(){O()}),p}},function(t,e){t.exports=function(){returnlocation.href.replace(/\?[\s\S]*/,"").substring(0,128)}},function(t,e){functionr(){}functionn(t,e,n,a){functionc(){l.parentNode&&l.parentNode.removeChild(l),window[d]=r,p&&clearTimeout(p)}functions(){window[d]&&c()}functionu(t){vare=[];for(varrint)t.hasOwnProperty(r)&&e.push(m(r)+"="+m(t[r]));returne.join("&")}"object"===("undefined"==typeofn?"undefined":o(n))&&(a=n,n=null),"function"==typeofe&&(n=e,e=null),a||(a={});varl,p,f=Math.random().toString(36).slice(2,9),h=a.prefix||"__JSONP",d=a.name||h+("_"+f)+("_"+i++),v=a.param||"callback",y=a.timeout||6e3,m=window.encodeURIComponent,g=document.getElementsByTagName("script")[0]||document.head;returny&&(p=setTimeout(function(){c(),n&&n(newError("Timeout"))},y)),window[d]=function(e){c(),n&&n(null,e,{url:t})},e&&(t=t.split("?")[0]),t+=(~t.indexOf("?")?"&":"?")+u(e)+"&"+v+"="+m(d),t=t.replace("?&","?"),l=document.createElement("script"),l.type="text/javascript",l.src=t,g.parentNode.insertBefore(l,g),s}varo="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},i=0;t.exports=n},function(t,e){functionr(t){if(!t)return{};vare=document.createElement("a");returne.href=t,{source:t,protocol:e.protocol.replace(":",""),host:e.hostname,port:e.port,query:e.search,hash:e.hash.replace("#",""),path:e.pathname.replace(/^([^/])/,"/$1"),segments:e.pathname.replace(/^\//,"").split("/")}}t.exports=r},function(t,e,r){functionn(){this._events={}}varo=r(3);t.exports=n,Object.assign(n.prototype,{on:function(t,e){varr=this._events;returnr[t]||(r[t]=[]),r[t].push(e),this},once:function(t,e){varr=this,n=functiono(){e.apply(void0,arguments),r.off(t,o)};returnthis.on(t,n)},off:function(t,e){if(t)if(t&&!e)this._events[t]=[];else{varr=this._events[t]||[],n=r.indexOf(e);n>-1&&r.splice(n,1)}elsethis._events={};returnthis},emit:function(t){for(vare=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];vari=this._events[t]||[],a=newo,c={},s=functionu(t){vare=i[t];if(!e)returnvoida.resolve(c);varn=!1,o={async:function(){returnn=!0,function(e){returneinstanceofError?voida.resolve(e):voidu(t+1)}}};e.call.apply(e,[o].concat(r,[c])),!n&&u(t+1)};returns(0),a}})},function(t,e,r){functionn(t,e,r){e=e||function(){},r=r||function(t){console&&console.error('[NECaptcha] initNECaptcha(config, onload, onerror) has thrown an error. If needed, handle it yourself in callback "onerror".\n',t)};vara=window.location.protocol.replace(":",""),l={protocol:"http"===a||"https"===a?a:"https",timeout:6e3,runEnv:f.WEB};t=Object.assign({},l,t);var_=newd({bid:t.captchaId,url:""},t);_.clear(),E||(E=!0,setTimeout(function(){if(m)for(vart=performance.getEntries({entryType:"resource",initiatorType:"script"}),e=0;e<t.length;e++){varr=t[e];r&&r.name.indexOf("/load.min.js")!==-1&&y(_)(r.name,"load.min.js_"+e,"script",{status:"success",perfEntry:r})}},0));varR=function(e){varr="plugins"+(v?"":".min")+".js";returnArray.isArray(e)?e.map(function(e){returnc({protocol:t.protocol,host:e,path:r})}):c({protocol:t.protocol,host:e,path:r})},O="loader_plugins",b=g[O]||i.script({id:O,url:R(t.staticServer||["cstaticdun.126.net","cstatic.dun.163yun.com"]),timeout:t.timeout,cacheTime:p,onProcess:y(_),detectKey:h("plugins")});!g[O]&&(g[O]=b),b.then(function(){vari=newo({captchaConfig:t,cache:g,captchaCollector:_});i._hooks={onload:e,onerror:r},n.apply(i),i.run()})["catch"](function(t){g[O]=null,r(news(u,t.message,t.data))})}varo=r(18),i=r(2),a=r(3),c=r(4),s=r(1),u=s.REQUEST_SCRIPT_ERROR,l=r(5),p=l.CACHE_MIN,f=l.RUN_ENV,h=r(9),d=r(7),v=!1,y=d.createNetCollect,m=d.supportEntries,g={},E=!1;n.use=function(t){this._plugins||(this._plugins=[]);vare=t.constructor,r=!!e.singleton,n=this._plugins.map(function(t){returnt.constructor}).indexOf(e)>-1;n&&r||this._plugins.push(t)},n.apply=function(t){this._plugins&&this._plugins.map(function(e){returne.apply(t)})},n.VERSION="2.2.2",n.ResourceLoader=i,n.Thenable=a,n.CaptchaError=s,t.exports=n},function(t,e,r){functionn(t,e){if(!t)thrownewError("[NECaptcha Loader] "+e)}functiono(t){u.call(this),n(t.captchaConfig,'option "captchaConfig" is required.'),n(t.cache,'option "cache" is required.'),this._captchaConfig=t.captchaConfig,this._captchaHooks=t.captchaHooks,this._cache=t.cache,this._captchaCollector=t.captchaCollector,this._error=null}vari=Object.assign||function(t){for(vare=1;e<arguments.length;e++){varr=arguments[e];for(varninr)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}returnt},a=r(8),c=r(4),s=r(1),u=r(16),l=r(10),p=r(2),f=r(7),h=f.createNetCollect,d=r(9),v=r(5),y=v.CACHE_MIN,m=s.REQUEST_API_ERROR,g=s.REQUEST_SCRIPT_ERROR,E=s.ID_INVAILD_ERROR,_=s.UNKNOWN_ERROR,R=!1;l(o,u),Object.assign(o.prototype,{run:function(){vart=this;this.fetchConfig(function(){returnt.loadResources()})},fetchConfig:function(t){vare=this,r=this._captchaConfig,n=r.captchaId,o=r.protocol,s=r.timeout,u=r.apiServer,l=r.__serverConfig__,p=r.ipv6,f=r.runEnv;null==u&&(u=["c.dun.163.com","c.dun.163yun.com"]);vard=function(){vart="/api/v2/getconf";returnArray.isArray(u)?u.map(function(e){returnc({protocol:o,host:e,path:t})}):c({protocol:o,host:u,path:t})},v=d(),y={id:n,ipv6:p,runEnv:f},g={timeout:s},_=a(i({},g,{onProcess:h(this._captchaCollector)})),O=function(){_(v,y,function(r,n){if(r||n.error){varo=r?r.message:n.msg,i=newError(o+" ("+v+")");i.data={url:v};vara=r||n.error!==E?m:E;returnvoide.catchError(i,a)}varc=function(t){varr=e._captchaConfig;null==r.apiServer&&(r.apiServer=t.apiServer),null==r.staticServer&&(r.staticServer=t.staticServers),r.theme=t.theme,r.acConfig=t.ac,r.zoneId=t.zoneId,r.__serverConfig__=t},s=n.data;R&&l&&(s=Object.assign({},s,l)),c(s),e.emit("after-config",e._captchaConfig.__serverConfig__).then(t)["catch"](function(t){returne.catchError(t)})})};this.emit("before-config",{params:y,jsonpOpts:g}).then(O)["catch"](function(t){returne.catchError(t)})},loadResources:function(){vart=this,e=this._captchaConfig,r=e.protocol,n=e.timeout,o=e.staticServer,i=e.__serverConfig__,a=function(t,e){returnArray.isArray(t)?t.map(function(t){returnc({protocol:r,host:t,path:e})}):c({protocol:r,host:t,path:e})};this.emit("before-load",o).then(function(){vare=i.resources.map(function(e){varr=a(o,e),i=Array.isArray(r)?r[0]:r,c=t._cache[i];returnc||(c=p.script({id:i,url:r,timeout:n,cacheTime:10*y,onProcess:h(t._captchaCollector),detectKey:d(e)}),t._cache[i]=c,c["catch"](function(){t._cache[i]=null})),c});p.all(e).then(function(){t.emit("after-load")["catch"](function(e){returnt.catchError(e)})})["catch"](function(e){returnt.catchError(e,g)})})["catch"](function(e){returnt.catchError(e)})},catchError:function(t,e){if(!this._error){varr=news(e||_,t.message,t.data);this._error=r,this.emit("error",r)}}}),t.exports=o},function(t,e){Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)})},function(t,e){"function"!=typeofObject.assign&&(Object.assign=function(t){if(null==t)thrownewTypeError("Cannot convert undefined or null to object");t=Object(t);for(vare=1;e<arguments.length;e++){varr=arguments[e];if(null!=r)for(varninr)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}returnt})},function(t,e){varr="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft};Object.keys||(Object.keys=function(){"use strict";vart=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=n.length;returnfunction(i){if("function"!=typeofi&&("object"!==("undefined"==typeofi?"undefined":r(i))||null===i))thrownewTypeError("Object.keys called on non-object");vara,c,s=[];for(aini)t.call(i,a)&&s.push(a);if(e)for(c=0;c<o;c++)t.call(i,n[c])&&s.push(n[c]);returns}}())},function(t,e){Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){varr;if(null==this)thrownewTypeError('"this" is null or not defined');varn=Object(this),o=n.length>>>0;if(0===o)return-1;vari=+e||0;if(Math.abs(i)===1/0&&(i=0),i>=o)return-1;for(r=Math.max(i>=0?i:o-Math.abs(i),0);r<o;){if(rinn&&n[r]===t)returnr;r++}return-1})},function(t,e){Array.prototype.map||(Array.prototype.map=function(t,e){varr,n,o;if(null==this)thrownewTypeError(" this is null or not defined");vari=Object(this),a=i.length>>>0;if("[object Function]"!==Object.prototype.toString.call(t))thrownewTypeError(t+" is not a function");for(e&&(r=e),n=newArray(a),o=0;o<a;){varc,s;oini&&(c=i[o],s=t.call(r,c,o,i),n[o]=s),o++}returnn})},function(t,e){functionr(t,e){for(varrine)t.setAttribute(r,e[r])}functionn(t,e){t.onload=function(){this.onerror=this.onload=null,e(null,t)},t.onerror=function(){this.onerror=this.onload=null,e(newError("Failed to load "+this.src),t)}}functiono(t,e){t.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,e(null,t))}}t.exports=function(t,e,i){vara=document.head||document.getElementsByTagName("head")[0],c=document.createElement("script");"function"==typeofe&&(i=e,e={}),e=e||{},i=i||function(){},c.type=e.type||"text/javascript",c.charset=e.charset||"utf8",c.async=!("async"ine)||!!e.async,c.src=t,e.attrs&&r(c,e.attrs),e.text&&(c.text=""+e.text);vars="onload"inc?n:o;s(c,i),c.onload||n(c,i),a.appendChild(c)}}])});