(()=>{"use strict";var t,e,a={783:(t,e,a)=>{var i=a(618),r=Object.create(null),n="undefined"==typeof document,c=Array.prototype.forEach;function s(){}function o(t,e){if(!e){if(!t.href)return;e=t.href.split("?")[0]}if(l(e)&&!1!==t.isLoaded&&e&&e.indexOf(".css")>-1){t.visited=!0;var a=t.cloneNode();a.isLoaded=!1,a.addEventListener("load",(function(){a.isLoaded||(a.isLoaded=!0,t.parentNode.removeChild(t))})),a.addEventListener("error",(function(){a.isLoaded||(a.isLoaded=!0,t.parentNode.removeChild(t))})),a.href="".concat(e,"?").concat(Date.now()),t.nextSibling?t.parentNode.insertBefore(a,t.nextSibling):t.parentNode.appendChild(a)}}function d(t){if(!t)return!1;var e=document.querySelectorAll("link"),a=!1;return c.call(e,(function(e){if(e.href){var r=function(t,e){var a;return t=i(t),e.some((function(i){t.indexOf(e)>-1&&(a=i)})),a}(e.href,t);l(r)&&!0!==e.visited&&r&&(o(e,r),a=!0)}})),a}function h(){var t=document.querySelectorAll("link");c.call(t,(function(t){!0!==t.visited&&o(t)}))}function l(t){return!!/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(t)}t.exports=function(t,e){if(n)return s;var a,c,o,l=function(t){var e=r[t];if(!e){if(document.currentScript)e=document.currentScript.src;else{var a=document.getElementsByTagName("script"),n=a[a.length-1];n&&(e=n.src)}r[t]=e}return function(t){if(!e)return null;var a=e.split(/([^\\/]+)\.js$/),r=a&&a[1];return r&&t?t.split(",").map((function(t){var a=new RegExp("".concat(r,"\\.js$"),"g");return i(e.replace(a,"".concat(t.replace(/{fileName}/g,r),".css")))})):[e.replace(".js",".css")]}}(t);return a=function(){var t=d(l(e.filename));e.locals?h():t||h()},c=50,o=0,function(){var t=this,e=arguments;clearTimeout(o),o=setTimeout((function(){return a.apply(t,e)}),c)}}},618:t=>{t.exports=function(t){if(t=t.trim(),/^data:/i.test(t))return t;var e=-1!==t.indexOf("//")?t.split("//")[0]+"//":"",a=t.replace(new RegExp(e,"i"),"").split("/"),i=a[0].toLowerCase().replace(/\.$/,"");return a[0]="",e+i+a.reduce((function(t,e){switch(e){case"..":t.pop();break;case".":break;default:t.push(e)}return t}),[]).join("/")}},488:(t,e,a)=>{var i=a(783)(t.id,{locals:!1});t.hot.dispose(i),t.hot.accept(void 0,i)},523:(t,e,a)=>{var i=a(783)(t.id,{locals:!1});t.hot.dispose(i),t.hot.accept(void 0,i)},991:(t,e,a)=>{var i=a(783)(t.id,{locals:!1});t.hot.dispose(i),t.hot.accept(void 0,i)},492:(t,e,a)=>{var i=a(783)(t.id,{locals:!1});t.hot.dispose(i),t.hot.accept(void 0,i)},305:(t,e,a)=>{var i=a(783)(t.id,{locals:!1});t.hot.dispose(i),t.hot.accept(void 0,i)},444:(t,e,a)=>{var i=a(783)(t.id,{locals:!1});t.hot.dispose(i),t.hot.accept(void 0,i)},600:(t,e,a)=>{a(488),a(523),a(444);function i(t){t.preventDefault&&t.preventDefault()}function r(t){A(t).each((t=>{t.addEventListener("touchmove",i,{passive:!1}),t.addEventListener("mousemove",i,{passive:!1})}))}function n(t){if(null!==t.pageX&&void 0!==t.pageX)return{x:Math.round(t.pageX),y:Math.round(t.pageY)};let e;return t.changedTouches?e=t.changedTouches:t.targetTouches?e=t.targetTouches:t.originalEvent&&t.originalEvent.targetTouches&&(e=t.originalEvent.targetTouches),null!==e[0].pageX&&void 0!==e[0].pageX?{x:Math.round(e[0].pageX),y:Math.round(e[0].pageY)}:{x:Math.round(e[0].clientX),y:Math.round(e[0].clientY)}}function c(t){const e=n(t);let a=e.x,i=e.y;currentCaptcha.currentCaptchaData.startX=a,currentCaptcha.currentCaptchaData.startY=i;const r=currentCaptcha.currentCaptchaData.startX,c=currentCaptcha.currentCaptchaData.startY,o=currentCaptcha.currentCaptchaData.startTime;currentCaptcha.currentCaptchaData.trackArr.push({x:r-a,y:c-i,type:"down",t:(new Date).getTime()-o.getTime()}),window.addEventListener("mousemove",s),window.addEventListener("mouseup",d),window.addEventListener("touchmove",s,!1),window.addEventListener("touchend",d,!1),window.currentCaptcha.doDown&&window.currentCaptcha.doDown(t,window.currentCaptcha)}function s(t){t.touches&&t.touches.length>0&&(t=t.touches[0]);const e=n(t);let a=e.x,i=e.y;const r=window.currentCaptcha.currentCaptchaData.startX,c=window.currentCaptcha.currentCaptchaData.startY,s=window.currentCaptcha.currentCaptchaData.startTime,o=window.currentCaptcha.currentCaptchaData.end,d=window.currentCaptcha.currentCaptchaData.bgImageWidth,h=window.currentCaptcha.currentCaptchaData.trackArr;let l=a-r,p=i-c;const u={x:a-r,y:i-c,type:"move",t:(new Date).getTime()-s.getTime()};h.push(u),l<0?l=0:l>o&&(l=o),window.currentCaptcha.currentCaptchaData.moveX=l,window.currentCaptcha.currentCaptchaData.movePercent=l/d,window.currentCaptcha.currentCaptchaData.moveY=p,window.currentCaptcha.doMove&&window.currentCaptcha.doMove(t,currentCaptcha)}function o(){window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",d),window.removeEventListener("touchmove",s),window.removeEventListener("touchend",d)}function d(t){o();const e=n(t);currentCaptcha.currentCaptchaData.stopTime=new Date;let a=e.x,i=e.y;const r=currentCaptcha.currentCaptchaData.startX,c=currentCaptcha.currentCaptchaData.startY,s=currentCaptcha.currentCaptchaData.startTime,d=currentCaptcha.currentCaptchaData.trackArr,h={x:a-r,y:i-c,type:"up",t:(new Date).getTime()-s.getTime()};d.push(h),window.currentCaptcha.doUp&&window.currentCaptcha.doUp(t,window.currentCaptcha),window.currentCaptcha.endCallback(currentCaptcha.currentCaptchaData,currentCaptcha)}function h(t,e,a,i,r){const n={startTime:new Date,trackArr:[],movePercent:0,clickCount:0,bgImageWidth:Math.round(t),bgImageHeight:Math.round(e),templateImageWidth:Math.round(a),templateImageHeight:Math.round(i),end:r};return n}function l(t,e){A(t).find("#tianai-captcha-tips").removeClass("tianai-captcha-tips-on"),e&&setTimeout(e,.35)}function p(t,e,a,i){const r=A(t).find("#tianai-captcha-tips");r.text(e),1===a?(r.removeClass("tianai-captcha-tips-error"),r.addClass("tianai-captcha-tips-success")):(r.removeClass("tianai-captcha-tips-success"),r.addClass("tianai-captcha-tips-error")),r.addClass("tianai-captcha-tips-on"),setTimeout(i,1e3)}class u{showTips(t,e,a){p(this.el,t,e,a)}closeTips(t,e){l(this.el,t)}}function A(t,e){return new g(t,e)}class g{constructor(t,e){if(e&&"object"==typeof e&&void 0!==e.nodeType)return this.dom=e,void(this.domStr=t);if(t instanceof g)this.dom=t.dom,this.domStr=t.domStr;else if("string"==typeof t)this.dom=document.querySelector(t),this.domStr=t;else{if("object"!=typeof document||void 0===document.nodeType)throw new Error("不支持的类型");this.dom=t,this.domStr=t.nodeName}}each(t){this.getTarget().querySelectorAll("*").forEach(t)}removeClass(t){let e=this.getTarget();if(e.classList)e.classList.remove(t);else{const a=e.className,i=new RegExp("(?:^|\\s)"+t+"(?!\\S)","g");e.className=a.replace(i,"")}return this}addClass(t){const e=this.getTarget();if(e.classList)e.classList.add(t);else{let a=e.className;-1===a.indexOf(t)&&(e.className=a+" "+t)}return this}find(t){const e=this.getTarget().querySelector(t);return e?new g(t,e):null}children(t){const e=this.getTarget().childNodes;for(let a=0;a\n
\n 拖动滑块完成拼图\n
\n
\n
\n \n \n
\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n')),this.el=this.boxEl.find("#tianai-captcha"),this.loadStyle(),this.el.find("#tianai-captcha-slider-move-btn").mousedown(c),this.el.find("#tianai-captcha-slider-move-btn").touchstart(c),window.currentCaptcha=this,this.loadCaptchaForData(this,t),this.endCallback=e,a&&a(this),this}showTips(t,e,a){p(this.el,t,e,a)}closeTips(t){l(this.el,t)}destroy(){const t=this.boxEl.children("#tianai-captcha");t&&t.remove(),o()}doMove(){const t=this.currentCaptchaData.moveX;this.el.find("#tianai-captcha-slider-move-btn").css("transform","translate("+t+"px, 0px)"),this.el.find("#tianai-captcha-slider-img-div").css("transform","translate("+t+"px, 0px)"),this.el.find("#tianai-captcha-slider-move-track-mask").css("width",t+"px")}loadStyle(){let t="",e="#00f4ab",a="#a9ffe5";const i=this.styleConfig;i&&(t=i.btnUrl,a=i.moveTrackMaskBgColor,e=i.moveTrackMaskBorderColor),this.el.find(".slider-move .slider-move-btn").css("background-image","url("+t+")"),this.el.find("#tianai-captcha-slider-move-track-mask").css("border-color",e),this.el.find("#tianai-captcha-slider-move-track-mask").css("background-color",a)}loadCaptchaForData(t,e){const a=t.el.find("#tianai-captcha-slider-bg-img"),i=t.el.find("#tianai-captcha-slider-move-img");a.attr("src",e.captcha.backgroundImage),i.attr("src",e.captcha.templateImage),a.on("load",(()=>{t.currentCaptchaData=h(a.width(),a.height(),i.width(),i.height(),242),t.currentCaptchaData.currentCaptchaId=e.id}))}};a(305);const m=class extends u{constructor(t,e){super(),this.boxEl=A(t),this.styleConfig=e,this.type="ROTATE",this.currentCaptchaData={}}init(t,e,a){return this.destroy(),this.boxEl.append((this.styleConfig,'\n
\n
\n 拖动滑块完成拼图\n
\n
\n
\n \n \n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n')),this.el=this.boxEl.find("#tianai-captcha"),this.loadStyle(),this.el.find("#tianai-captcha-slider-move-btn").mousedown(c),this.el.find("#tianai-captcha-slider-move-btn").touchstart(c),window.currentCaptcha=this,this.loadCaptchaForData(this,t),this.endCallback=e,a&&a(this),this}destroy(){const t=this.boxEl.children("#tianai-captcha");t&&t.remove(),o()}doMove(){const t=this.currentCaptchaData.moveX;this.el.find("#tianai-captcha-slider-move-btn").css("transform","translate("+t+"px, 0px)"),this.el.find("#tianai-captcha-slider-move-img").css("transform","rotate("+t/(this.currentCaptchaData.end/360)+"deg)"),this.el.find("#tianai-captcha-slider-move-track-mask").css("width",t+"px")}loadStyle(){let t="",e="#00f4ab",a="#a9ffe5";const i=this.styleConfig;i&&(t=i.btnUrl,a=i.moveTrackMaskBgColor,e=i.moveTrackMaskBorderColor),this.el.find(".slider-move .slider-move-btn").css("background-image","url("+t+")"),this.el.find("#tianai-captcha-slider-move-track-mask").css("border-color",e),this.el.find("#tianai-captcha-slider-move-track-mask").css("background-color",a)}loadCaptchaForData(t,e){const a=t.el.find("#tianai-captcha-slider-bg-img"),i=t.el.find("#tianai-captcha-slider-move-img");a.attr("src",e.captcha.backgroundImage),i.attr("src",e.captcha.templateImage),a.on("load",(()=>{t.currentCaptchaData=h(a.width(),a.height(),i.width(),i.height(),242),t.currentCaptchaData.currentCaptchaId=e.id}))}};a(991);const v=class extends u{constructor(t,e){super(),this.boxEl=A(t),this.styleConfig=e,this.type="CONCAT",this.currentCaptchaData={}}init(t,e,a){return this.destroy(),this.boxEl.append((this.styleConfig,'\n
\n
\n 拖动滑块完成拼图\n
\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n ')),this.el=this.boxEl.find("#tianai-captcha"),this.loadStyle(),this.el.find("#tianai-captcha-slider-move-btn").mousedown(c),this.el.find("#tianai-captcha-slider-move-btn").touchstart(c),r(this.el),window.currentCaptcha=this,this.loadCaptchaForData(this,t),this.endCallback=e,a&&a(this),this}destroy(){o();const t=this.boxEl.children("#tianai-captcha");t&&t.remove()}doMove(){const t=this.currentCaptchaData.moveX;this.el.find("#tianai-captcha-slider-move-btn").css("transform","translate("+t+"px, 0px)"),this.el.find("#tianai-captcha-slider-concat-img-div").css("background-position-x",t+"px"),this.el.find("#tianai-captcha-slider-move-track-mask").css("width",t+"px")}loadStyle(){let t="",e="#00f4ab",a="#a9ffe5";const i=this.styleConfig;i&&(t=i.btnUrl,a=i.moveTrackMaskBgColor,e=i.moveTrackMaskBorderColor),this.el.find(".slider-move .slider-move-btn").css("background-image","url("+t+")"),this.el.find("#tianai-captcha-slider-move-track-mask").css("border-color",e),this.el.find("#tianai-captcha-slider-move-track-mask").css("background-color",a)}loadCaptchaForData(t,e){const a=t.el.find(".tianai-captcha-slider-concat-bg-img"),i=t.el.find("#tianai-captcha-slider-concat-img-div");a.css("background-image","url("+e.captcha.backgroundImage+")"),i.css("background-image","url("+e.captcha.backgroundImage+")"),i.css("background-position","0px 0px");var r=e.captcha.backgroundImageHeight,n=(r-e.captcha.data.randomY)/r*180;i.css("height",n+"px"),t.currentCaptchaData=h(a.width(),a.height(),i.width(),i.height(),242),t.currentCaptchaData.currentCaptchaId=e.id}};a(492);const C=class extends u{constructor(t,e){super(),this.boxEl=A(t),this.styleConfig=e,this.type="IMAGE_CLICK",this.currentCaptchaData={}}init(t,e,a){return this.destroy(),this.boxEl.append((this.styleConfig,'\n
\n
\n 请依次点击:\n \n
\n
\n
\n \n \n
\n
\n
\n
\n
\n')),this.el=this.boxEl.find("#tianai-captcha"),window.currentCaptcha=this,this.loadCaptchaForData(this,t),this.endCallback=e,this.el.find("#bg-img-click-mask").click((t=>{this.currentCaptchaData.clickCount++;const e=this.currentCaptchaData.trackArr,a=this.currentCaptchaData.startTime;1===this.currentCaptchaData.clickCount&&(window.addEventListener("mousemove",s),this.currentCaptchaData.startX=t.offsetX,this.currentCaptchaData.startY=t.offsetY),e.push({x:Math.round(t.offsetX),y:Math.round(t.offsetY),type:"click",t:(new Date).getTime()-a.getTime()});const i=t.offsetX-10,r=t.offsetY-10;this.el.find("#bg-img-click-mask").append(""+this.currentCaptchaData.clickCount+""),4===this.currentCaptchaData.clickCount&&(this.currentCaptchaData.stopTime=new Date,window.removeEventListener("mousemove",s),this.endCallback(this.currentCaptchaData,this))})),a&&a(this),this}destroy(){const t=this.boxEl.children("#tianai-captcha");t&&t.remove(),o()}loadCaptchaForData(t,e){const a=t.el.find("#tianai-captcha-slider-bg-img"),i=t.el.find("#tianai-captcha-tip-img");a.on("load",(()=>{t.currentCaptchaData=h(a.width(),a.height(),i.width(),i.height()),t.currentCaptchaData.currentCaptchaId=e.id})),a.attr("src",e.captcha.backgroundImage),i.attr("src",e.captcha.templateImage)}};const w=class extends C{constructor(t,e){super(t,e),this.type="WORD_IMAGE_CLICK"}};class b{constructor(t){if(!t.bindEl)throw new Error("[TAC] 必须配置 [bindEl]用于将验证码绑定到该元素上");if(!t.requestCaptchaDataUrl)throw new Error("[TAC] 必须配置 [requestCaptchaDataUrl]请求验证码接口");if(!t.validCaptchaUrl)throw new Error("[TAC] 必须配置 [validCaptchaUrl]验证验证码接口");this.bindEl=t.bindEl,this.domBindEl=A(t.bindEl),this.requestCaptchaDataUrl=t.requestCaptchaDataUrl,this.validCaptchaUrl=t.validCaptchaUrl,t.validSuccess&&(this.validSuccess=t.validSuccess),t.validFail&&(this.validFail=t.validFail),t.requestHeaders?this.requestHeaders=t.requestHeaders:this.requestHeaders={},t.btnCloseFun&&(this.btnCloseFun=t.btnCloseFun),t.btnRefreshFun&&(this.btnRefreshFun=t.btnRefreshFun),this.requestChain=[],this.timeToTimestamp=t.timeToTimestamp,this.insertRequestChain(0,{preRequest(t,e,a,i){if(this.timeToTimestamp&&e.data)for(let t in e.data)e.data[t]instanceof Date&&(e.data[t]=e.data[t].getTime());return!0}})}addRequestChain(t){this.requestChain.push(t)}insertRequestChain(t,e){this.requestChain.splice(t,0,e)}removeRequestChain(t){this.requestChain.splice(t,1)}requestCaptchaData(){const t={};t.headers=this.requestHeaders||{},t.data={},t.headers["Content-Type"]="application/json;charset=UTF-8",t.method="POST",t.url=this.requestCaptchaDataUrl,this._preRequest("requestCaptchaData",t);return this.doSendRequest(t).then((e=>(this._postRequest("requestCaptchaData",t,e),e)))}doSendRequest(t){if(t.headers)for(const e in t.headers)if(t.headers[e].indexOf("application/json")>-1){"string"!=typeof t.data&&(t.data=JSON.stringify(t.data));break}return(e=t,new Promise((function(t,a){var i=new XMLHttpRequest;if(i.open(e.method||"GET",e.url),e.headers)for(const t in e.headers)e.headers.hasOwnProperty(t)&&i.setRequestHeader(t,e.headers[t]);i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE)if(i.status>=200&&i.status<=500){const e=i.getResponseHeader("Content-Type");e&&-1!==e.indexOf("application/json")?t(JSON.parse(i.responseText)):t(i.responseText)}else a(new Error("Request failed with status: "+i.status))},i.onerror=function(){a(new Error("Network Error"))},i.send(e.data)}))).then((t=>{try{return JSON.parse(t)}catch(e){return t}}));var e}_preRequest(t,e,a,i){for(let r=0;r(this._postRequest("validCaptcha",n,t,a,i),t))).then((t=>{if(200==t.code){const r=(e.stopTime-e.startTime)/1e3;a.showTips(`验证成功,耗时${r}秒`,1,(()=>this.validSuccess(t,a,i)))}else{let e="验证失败,请重新尝试!";t.code&&4001!=t.code&&(e="验证码被黑洞吸走了!"),a.showTips(e,0,(()=>this.validFail(t,a,i)))}})).catch((t=>{let e=a.styleConfig.i18n.tips_error;t.code&&200!=t.code&&(4001!=res.code&&(e=a.styleConfig.i18n.tips_4001),a.showTips(e,0,(()=>this.validFail(res,a,i))))}))}validSuccess(t,e,a){window.currentCaptchaRes=t,a.destroyWindow()}validFail(t,e,a){a.reloadCaptcha()}}window.TAC=class{constructor(t,e){this.config=function(t){return t instanceof b?t:new b(t)}(t),this.config.btnRefreshFun&&(this.btnRefreshFun=this.config.btnRefreshFun),this.config.btnCloseFun&&(this.btnCloseFun=this.config.btnCloseFun),this.style=function(t){return t||(t={}),t.btnUrl||(t.btnUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAABkCAYAAABU19jRAAAJcUlEQVR4nO2d63MT1xmHf9rV6mr5fgNMuSW+ENsY8N0EE2BMhinJNB8y/dD2Qz/0v+gMf0w/JHTKNJAhICwbsA02TpNAHEMgQIwNBSEb8F2rvXTeY1kjYyA+TmVJmfeZ8YiRWa9299E57/mdI63Dtm3E+RjAKTDMaj4F8AU9uyzMCQBn+EQxb+EjAF+RMH8AcJrPFLMGvCSMzWeKWSN/I2GiAFx8xpi1oPBZYiTQWRhGChaGkYKFYaRgYRgpWBhGChaGkYKFYaRgYRgpWBhGChaGkYKFYaRgYRgpWBhGChaGkYKFYaRgYRgpWBhGChaGkYKFYaRgYRgpWBhGChaGkYKFYaRgYRgpWBhGCiefrtShGwZiup74+4qqwu12Z/W7lIVJEfN6FDfv3sPXfYOIRRfpm1UQKC7EkQ+PYF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tzWumChUkxdlyWge4rYt0uzRMpSck01SzUDR3s7MC7e2pFRqSmOZx7GyxMCrESLcsldAd7oCgrEx6xrldRRM1SvbceHfV1K0K7TISFSREx28L41KRIcGmdruOVz82KBFd1oqWjBe/tb0ArLd3McFnAwqSOiclJ9JwP4fLFXtEtJXdDywluU2uTGDpTgZupNcur8GerU8R0eBJDV6+LRVbJLYdIcF2aSHD3tzaL9b20zjdbYGFShB0z4HY6V9QtFNLRXFATxf2U4FZXZkLcLwULkyJoaUXMNMV6HbyS4O6jicQMS3DXCguTInJKC9HU0YoPOg8k1uy0t7eivnmfSHB9WSgLwZOPKcKwLcT0GL69cxe3b46KoK6+ZS92V2zNyAR3jfBsdaox6LPSpiVyf/rEo/rq11JlFzxbnWoomEMW5CtrhWsYRgoWhpGChWGkYGEYKVgYRgoWhpGChWGkYGEYKVgYRgoWhpGChWGkYGEYKVgYRgoWhpGChWGkYGEYKVgYRgoWhpGChWGkYGEYKVgYRgoWhpGChWGkYGEYKVgYRgr6qGx6b4/BZBXUwnzCl4xZI5844g3MCQBn+Kwxb+EjAGcdST3SxwBO8RljXsOnAL4AgP8BXnVIgIvemwsAAAAASUVORK5CYII="),t.moveTrackMaskBgColor||t.moveTrackMaskBorderColor||(t.moveTrackMaskBgColor="#89d2ff",t.moveTrackMaskBorderColor="#0298f8"),t}(e)}init(){return this.destroyWindow(),this.config.domBindEl.append('\n
\n
\n
\n loading\n
\n \x3c!-- 底部 --\x3e\n
\n \n
\n
\n
\n
\n '),this.domTemplate=this.config.domBindEl.find("#tianai-captcha-parent"),r(this.domTemplate),this.loadStyle(),this.config.domBindEl.find("#tianai-captcha-slider-refresh-btn").click((t=>{this.btnRefreshFun(t,this)})),this.config.domBindEl.find("#tianai-captcha-slider-close-btn").click((t=>{this.btnCloseFun(t,this)})),this.reloadCaptcha(),this}btnRefreshFun(t,e){e.reloadCaptcha()}btnCloseFun(t,e){e.destroyWindow()}reloadCaptcha(){this.showLoading(),this.destroyCaptcha((()=>{this.createCaptcha()}))}showLoading(){this.config.domBindEl.find("#tianai-captcha-loading").css("display","block")}closeLoading(){this.config.domBindEl.find("#tianai-captcha-loading").css("display","none")}loadStyle(){const t=this.style.bgUrl,e=this.style.logoUrl;t&&this.config.domBindEl.find("#tianai-captcha-bg-img").css("background-image","url("+t+")"),e&&""!==e?this.config.domBindEl.find("#tianai-captcha-logo").attr("src",e):null===e&&this.config.domBindEl.find("#tianai-captcha-logo").css("display","none")}destroyWindow(){window.currentCaptcha=void 0,this.domTemplate&&this.domTemplate.remove()}openCaptcha(){setTimeout((()=>{window.currentCaptcha.el.css("transform","translateX(0)")}),10)}createCaptcha(){this.config.requestCaptchaData().then((t=>{this.closeLoading();const e=function(t,e){switch(t){case"SLIDER":return new f("#tianai-captcha-box",e);case"ROTATE":return new m("#tianai-captcha-box",e);case"CONCAT":return new v("#tianai-captcha-box",e);case"WORD_IMAGE_CLICK":return new w("#tianai-captcha-box",e);default:return null}}(t.captcha.type,this.style);if(null==e)throw new Error("[TAC] 未知的验证码类型["+t.captcha.type+"]");e.init(t,((t,e)=>{const a=e.currentCaptchaData,i={bgImageWidth:a.bgImageWidth,bgImageHeight:a.bgImageHeight,templateImageWidth:a.sliderImageWidth,templateImageHeight:a.sliderImageHeight,startTime:a.startTime,stopTime:a.stopTime,trackList:a.trackArr};"ROTATE_DEGREE"!==e.type&&"ROTATE"!==e.type||(i.bgImageWidth=e.currentCaptchaData.end);const r=e.currentCaptchaData.currentCaptchaId;e.currentCaptchaData=void 0,this.config.validCaptcha(r,i,e,this)})),this.openCaptcha()}))}destroyCaptcha(t){window.currentCaptcha?(window.currentCaptcha.el.css("transform","translateX(300px)"),setTimeout((()=>{window.currentCaptcha.destroy(),t&&t()}),500)):t()}},window.CaptchaConfig=b}},i={};function r(t){var e=i[t];if(void 0!==e){if(void 0!==e.error)throw e.error;return e.exports}var n=i[t]={id:t,exports:{}};try{var c={id:t,module:n,factory:a[t],require:r};r.i.forEach((function(t){t(c)})),n=c.module,c.factory.call(n.exports,n,n.exports,c.require)}catch(t){throw n.error=t,t}return n.exports}r.m=a,r.c=i,r.i=[],r.hu=t=>t+"."+r.h()+".hot-update.js",r.miniCssF=t=>{},r.hmrF=()=>"main."+r.h()+".hot-update.json",r.h=()=>"2c6dc59f1afe56e91870",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="webpack-demo:",r.l=(a,i,n,c)=>{if(t[a])t[a].push(i);else{var s,o;if(void 0!==n)for(var d=document.getElementsByTagName("script"),h=0;h{s.onerror=s.onload=null,clearTimeout(u);var r=t[a];if(delete t[a],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach((t=>t(i))),e)return e(i)},u=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),o&&document.head.appendChild(s)}},(()=>{var t,e,a,i={},n=r.c,c=[],s=[],o="idle",d=0,h=[];function l(t){o=t;for(var e=[],a=0;a0)return l("abort").then((function(){throw r[0]}));var n=l("dispose");i.forEach((function(t){t.dispose&&t.dispose()}));var c,s=l("apply"),o=function(t){c||(c=t)},d=[];return i.forEach((function(t){if(t.apply){var e=t.apply(o);if(e)for(var a=0;a=0&&v._disposeHandlers.splice(e,1)},invalidate:function(){switch(this._selfInvalidated=!0,o){case"idle":e=[],Object.keys(r.hmrI).forEach((function(t){r.hmrI[t](g,e)})),l("ready");break;case"ready":Object.keys(r.hmrI).forEach((function(t){r.hmrI[t](g,e)}));break;case"prepare":case"check":case"dispose":case"apply":(a=a||[]).push(g)}},check:u,apply:A,status:function(t){if(!t)return o;s.push(t)},addStatusHandler:function(t){s.push(t)},removeStatusHandler:function(t){var e=s.indexOf(t);e>=0&&s.splice(e,1)},data:i[g]},t=void 0,v),C.parents=c,C.children=[],c=[],h.require=w})),r.hmrC={},r.hmrI={}})(),(()=>{var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var a=e.getElementsByTagName("script");if(a.length)for(var i=a.length-1;i>-1&&!t;)t=a[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t+"../../"})(),(()=>{if("undefined"!=typeof document){var t=(t,e,a,i,r)=>{var n=document.createElement("link");n.rel="stylesheet",n.type="text/css";return n.onerror=n.onload=a=>{if(n.onerror=n.onload=null,"load"===a.type)i();else{var c=a&&("load"===a.type?"missing":a.type),s=a&&a.target&&a.target.href||e,o=new Error("Loading CSS chunk "+t+" failed.\n("+s+")");o.code="CSS_CHUNK_LOAD_FAILED",o.type=c,o.request=s,n.parentNode&&n.parentNode.removeChild(n),r(o)}},n.href=e,a?a.parentNode.insertBefore(n,a.nextSibling):document.head.appendChild(n),n},e=(t,e)=>{for(var a=document.getElementsByTagName("link"),i=0;i({dispose:()=>{for(var t=0;t{for(var t=0;t{h.push(n),c.forEach((n=>{var c=r.miniCssF(n),s=r.p+c,o=e(c,s);o&&d.push(new Promise(((e,r)=>{var c=t(n,s,o,(()=>{c.as="style",c.rel="preload",e()}),r);a.push(o),i.push(c)})))}))}}})(),(()=>{var t,e,a,i,n,c=r.hmrS_jsonp=r.hmrS_jsonp||{179:0},s={};function o(e,a){return t=a,new Promise(((t,a)=>{s[e]=t;var i=r.p+r.hu(e),n=new Error;r.l(i,(t=>{if(s[e]){s[e]=void 0;var i=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;n.message="Loading hot update chunk "+e+" failed.\n("+i+": "+r+")",n.name="ChunkLoadError",n.type=i,n.request=r,a(n)}}))}))}function d(t){function s(t){for(var e=[t],a={},i=e.map((function(t){return{chain:[t],id:t}}));i.length>0;){var n=i.pop(),c=n.id,s=n.chain,d=r.c[c];if(d&&(!d.hot._selfAccepted||d.hot._selfInvalidated)){if(d.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:c};if(d.hot._main)return{type:"unaccepted",chain:s,moduleId:c};for(var h=0;h ")),A.type){case"self-declined":t.onDeclined&&t.onDeclined(A),t.ignoreDeclined||(f=new Error("Aborted because of self decline: "+A.moduleId+C));break;case"declined":t.onDeclined&&t.onDeclined(A),t.ignoreDeclined||(f=new Error("Aborted because of declined dependency: "+A.moduleId+" in "+A.parentId+C));break;case"unaccepted":t.onUnaccepted&&t.onUnaccepted(A),t.ignoreUnaccepted||(f=new Error("Aborted because "+u+" is not accepted"+C));break;case"accepted":t.onAccepted&&t.onAccepted(A),m=!0;break;case"disposed":t.onDisposed&&t.onDisposed(A),v=!0;break;default:throw new Error("Unexception type "+A.type)}if(f)return{error:f};if(m)for(u in l[u]=g,o(h,A.outdatedModules),A.outdatedDependencies)r.o(A.outdatedDependencies,u)&&(d[u]||(d[u]=[]),o(d[u],A.outdatedDependencies[u]));v&&(o(h,[A.moduleId]),l[u]=p)}a=void 0;for(var w,b=[],D=0;D0;){var n=a.pop(),s=r.c[n];if(s){var o={},l=s.hot._disposeHandlers;for(D=0;D=0&&p.parents.splice(t,1))}}}for(var u in d)if(r.o(d,u)&&(s=r.c[u]))for(w=d[u],D=0;D=0&&s.children.splice(t,1)},apply:function(e){for(var a in l)r.o(l,a)&&(r.m[a]=l[a]);for(var i=0;i{for(var o in i)r.o(i,o)&&(a[o]=i[o],t&&t.push(o));c&&n.push(c),s[e]&&(s[e](),s[e]=void 0)},r.hmrI.jsonp=function(t,e){a||(a={},n=[],i=[],e.push(d)),r.o(a,t)||(a[t]=r.m[t])},r.hmrC.jsonp=function(t,s,h,l,p,u){p.push(d),e={},i=s,a=h.reduce((function(t,e){return t[e]=!1,t}),{}),n=[],t.forEach((function(t){r.o(c,t)&&void 0!==c[t]?(l.push(o(t,u)),e[t]=!0):e[t]=!1})),r.f&&(r.f.jsonpHmr=function(t,a){e&&r.o(e,t)&&!e[t]&&(a.push(o(t)),e[t]=!0)})},r.hmrM=()=>{if("undefined"==typeof fetch)throw new Error("No browser support: need fetch API");return fetch(r.p+r.hmrF()).then((t=>{if(404!==t.status){if(!t.ok)throw new Error("Failed to fetch update manifest "+t.statusText);return t.json()}}))}})();r(600)})();