@jctrans-materials/comps-vue3 1.0.37-beta.2 → 1.0.37-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +172 -0
- package/dist/components/JcCarrierSearch/AirCarrierSearch.d.ts +6 -0
- package/dist/components/JcCarrierSearch/AirLineSearch.d.ts +6 -0
- package/dist/components/JcCarrierSearch/SeaCarrierSearch.d.ts +6 -0
- package/dist/components/JcCarrierSearch/SeaLineSearch.d.ts +6 -0
- package/dist/components/JcCarrierSearch/index.d.ts +6 -0
- package/dist/components/hooks/useModelValueHydration.d.ts +18 -0
- package/dist/gio.d.ts +60 -0
- package/dist/gio.test.d.ts +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +1 -1
- package/package.json +7 -3
package/dist/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ref as e,computed as t,onMounted as o,onBeforeUnmount as a,defineComponent as n,toRef as i,watch as r,createElementBlock as s,openBlock as l,normalizeClass as c,createElementVNode as d,createBlock as u,createVNode as h,renderSlot as p,createCommentVNode as f,withDirectives as m,Fragment as g,renderList as y,toDisplayString as v,withModifiers as A,withKeys as C,normalizeStyle as w,vModelText as E,unref as b,Teleport as I,createTextVNode as B,vShow as S,reactive as k,withCtx as x,resolveComponent as R,mergeProps as T,toHandlers as L,Transition as P,resolveDynamicComponent as N,createSlots as F,onUnmounted as V,mergeModels as U,useModel as Q,normalizeProps as M,guardReactiveProps as D,nextTick as j,isRef as O,getCurrentInstance as J,createApp as q}from"vue";import{locationSearchV2 as H,reportNewTypeDataApi as z,getCompanyOptionApi as K,slideGetApi as G,slideCheckApi as W,emitter as Y,MODAL_ACTION as Z,setTokenAll as _,getAuthSessionItems as X,loginByFacebookApi as $,loginByLinkedinApi as ee,validateAccountExistApi as te,findListByMobileEmailApi as oe,validateCompanyApi as ae,resetAuthSessionItems as ne,registerJoinCompanyBindWechatApi as ie,registerJoinCompanyApi as re,registerUserCompBindWechatApi as se,registerApi as le,Encrypt as ce,sendEmailCodeApi as de,getLocalIpDataApi as ue,findPAreaCodeAPi as he,findDictAPi as pe,sendMobileCodeApi as fe,getLoginQrCode as me,setAuthSessionItems as ge,loginByQrCode as ye,getFirstDomain as ve,loginApi as Ae,loginByEmailOrMobileCodeApi as Ce,loginPwdBindWechatApi as we,loginCodeBindWechatApi as Ee,completeJoinCompanyRedirectApi as be,completeCompRedirectApi as Ie,getUserInfoApi as Be,resetPasswordApi as Se,getMEVCodeApi as ke,checkAccountExistsFPApi as xe,bindThirdPartyByPwdApi as Re,bindThirdPartyByCodeApi as Te,registerJoinCompByThirdPartyApi as Le,registerByThirdPartyApi as Pe,getRememberAccount as Ne,Decrypt as Fe,setRememberMe as Ve,initSharedConfig as Ue}from"@jctrans-materials/shared";import{MODAL_ACTION as Qe,createRequest as Me,emitter as De,getAppId as je,initSharedConfig as Oe}from"@jctrans-materials/shared";import{useFormItem as Je,ElMessage as qe,vLoading as He,ElSelect as ze,ElOption as Ke,ElInput as Ge,ElDialog as We,ElForm as Ye,ElRow as Ze,ElCol as _e,ElFormItem as Xe,ElCheckbox as $e,ElButton as et,ElRadioButton as tt,ElRadioGroup as ot,ElMessageBox as at,ElCascader as nt,ElTag as it}from"element-plus";const rt=(e,t)=>H.searchByIdWithType(e,t);function st(o,a,n){const i=e([]),r=e(!1),s=e(!1),l=e(1),c=e(0),d=e(10),u=t(()=>0!==c.value&&i.value.length>=c.value),h=t(()=>{const e=[...a.value];return e.includes("Country")&&!e.includes("Region")&&e.push("Region"),e}),p=e=>e&&Array.isArray(e)?e.filter(e=>h.value.includes(e.type)):[];return{searchResults:i,loading:r,isFetchingMore:s,isFinished:u,currentPage:l,total:c,fetchData:async(e=1,t=!1)=>{const h=n?.parentId?.value,f=o.value.trim();if(!f&&!t&&!h)return i.value=[],void(c.value=0);if((!t||!s.value&&!u.value)&&(t||!r.value)){t?s.value=!0:(r.value=!0,l.value=1);try{const o={};h&&n?.parentType?.value&&("Country"===n.parentType.value?o.countryIds=[n.parentId?.value]:"City"===n.parentType.value&&(o.cityIds=[n.parentId?.value]));const r=await async function(e,t=["Continent","Country","City","Seaport","Airport"],o={}){return H.searchByName({keyword:e,displayInfo:t,...o})}(f,a.value,{current:e,size:d.value,...o}),s=r.records||[],u=p(s);i.value=t?[...i.value,...u]:u,c.value=r.total||0,l.value=e}catch(m){console.error("Failed to fetch search results:",m)}finally{r.value=!1,s.value=!1}}},filterByTypes:p}}const lt=Math.min,ct=Math.max,dt=Math.round,ut=Math.floor,ht=e=>({x:e,y:e}),pt={left:"right",right:"left",bottom:"top",top:"bottom"},ft={start:"end",end:"start"};function mt(e,t,o){return ct(e,lt(t,o))}function gt(e,t){return"function"==typeof e?e(t):e}function yt(e){return e.split("-")[0]}function vt(e){return e.split("-")[1]}function At(e){return"x"===e?"y":"x"}function Ct(e){return"y"===e?"height":"width"}const wt=/* @__PURE__ */new Set(["top","bottom"]);function Et(e){return wt.has(yt(e))?"y":"x"}function bt(e){return At(Et(e))}function It(e){return e.replace(/start|end/g,e=>ft[e])}const Bt=["left","right"],St=["right","left"],kt=["top","bottom"],xt=["bottom","top"];function Rt(e,t,o,a){const n=vt(e);let i=function(e,t,o){switch(e){case"top":case"bottom":return o?t?St:Bt:t?Bt:St;case"left":case"right":return t?kt:xt;default:return[]}}(yt(e),"start"===o,a);return n&&(i=i.map(e=>e+"-"+n),t&&(i=i.concat(i.map(It)))),i}function Tt(e){return e.replace(/left|right|bottom|top/g,e=>pt[e])}function Lt(e){const{x:t,y:o,width:a,height:n}=e;return{width:a,height:n,top:o,left:t,right:t+a,bottom:o+n,x:t,y:o}}function Pt(e,t,o){let{reference:a,floating:n}=e;const i=Et(t),r=bt(t),s=Ct(r),l=yt(t),c="y"===i,d=a.x+a.width/2-n.width/2,u=a.y+a.height/2-n.height/2,h=a[s]/2-n[s]/2;let p;switch(l){case"top":p={x:d,y:a.y-n.height};break;case"bottom":p={x:d,y:a.y+a.height};break;case"right":p={x:a.x+a.width,y:u};break;case"left":p={x:a.x-n.width,y:u};break;default:p={x:a.x,y:a.y}}switch(vt(t)){case"start":p[r]-=h*(o&&c?-1:1);break;case"end":p[r]+=h*(o&&c?-1:1)}return p}async function Nt(e,t){var o;void 0===t&&(t={});const{x:a,y:n,platform:i,rects:r,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:p=0}=gt(t,e),f=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(p),m=s[h?"floating"===u?"reference":"floating":u],g=Lt(await i.getClippingRect({element:null==(o=await(null==i.isElement?void 0:i.isElement(m)))||o?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),y="floating"===u?{x:a,y:n,width:r.floating.width,height:r.floating.height}:r.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),A=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},C=Lt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-C.top+f.top)/A.y,bottom:(C.bottom-g.bottom+f.bottom)/A.y,left:(g.left-C.left+f.left)/A.x,right:(C.right-g.right+f.right)/A.x}}const Ft=/* @__PURE__ */new Set(["left","top"]);function Vt(){return"undefined"!=typeof window}function Ut(e){return Dt(e)?(e.nodeName||"").toLowerCase():"#document"}function Qt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Mt(e){var t;return null==(t=(Dt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Dt(e){return!!Vt()&&(e instanceof Node||e instanceof Qt(e).Node)}function jt(e){return!!Vt()&&(e instanceof Element||e instanceof Qt(e).Element)}function Ot(e){return!!Vt()&&(e instanceof HTMLElement||e instanceof Qt(e).HTMLElement)}function Jt(e){return!(!Vt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Qt(e).ShadowRoot)}const qt=/* @__PURE__ */new Set(["inline","contents"]);function Ht(e){const{overflow:t,overflowX:o,overflowY:a,display:n}=oo(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+o)&&!qt.has(n)}const zt=/* @__PURE__ */new Set(["table","td","th"]);function Kt(e){return zt.has(Ut(e))}const Gt=[":popover-open",":modal"];function Wt(e){return Gt.some(t=>{try{return e.matches(t)}catch(o){return!1}})}const Yt=["transform","translate","scale","rotate","perspective"],Zt=["transform","translate","scale","rotate","perspective","filter"],_t=["paint","layout","strict","content"];function Xt(e){const t=$t(),o=jt(e)?oo(e):e;return Yt.some(e=>!!o[e]&&"none"!==o[e])||!!o.containerType&&"normal"!==o.containerType||!t&&!!o.backdropFilter&&"none"!==o.backdropFilter||!t&&!!o.filter&&"none"!==o.filter||Zt.some(e=>(o.willChange||"").includes(e))||_t.some(e=>(o.contain||"").includes(e))}function $t(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const eo=/* @__PURE__ */new Set(["html","body","#document"]);function to(e){return eo.has(Ut(e))}function oo(e){return Qt(e).getComputedStyle(e)}function ao(e){return jt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function no(e){if("html"===Ut(e))return e;const t=e.assignedSlot||e.parentNode||Jt(e)&&e.host||Mt(e);return Jt(t)?t.host:t}function io(e){const t=no(e);return to(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ot(t)&&Ht(t)?t:io(t)}function ro(e,t,o){var a;void 0===t&&(t=[]),void 0===o&&(o=!0);const n=io(e),i=n===(null==(a=e.ownerDocument)?void 0:a.body),r=Qt(n);if(i){const e=so(r);return t.concat(r,r.visualViewport||[],Ht(n)?n:[],e&&o?ro(e):[])}return t.concat(n,ro(n,[],o))}function so(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lo(e){const t=oo(e);let o=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const n=Ot(e),i=n?e.offsetWidth:o,r=n?e.offsetHeight:a,s=dt(o)!==i||dt(a)!==r;return s&&(o=i,a=r),{width:o,height:a,$:s}}function co(e){return jt(e)?e:e.contextElement}function uo(e){const t=co(e);if(!Ot(t))return ht(1);const o=t.getBoundingClientRect(),{width:a,height:n,$:i}=lo(t);let r=(i?dt(o.width):o.width)/a,s=(i?dt(o.height):o.height)/n;return r&&Number.isFinite(r)||(r=1),s&&Number.isFinite(s)||(s=1),{x:r,y:s}}const ho=/* @__PURE__ */ht(0);function po(e){const t=Qt(e);return $t()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ho}function fo(e,t,o,a){void 0===t&&(t=!1),void 0===o&&(o=!1);const n=e.getBoundingClientRect(),i=co(e);let r=ht(1);t&&(a?jt(a)&&(r=uo(a)):r=uo(e));const s=function(e,t,o){return void 0===t&&(t=!1),!(!o||t&&o!==Qt(e))&&t}(i,o,a)?po(i):ht(0);let l=(n.left+s.x)/r.x,c=(n.top+s.y)/r.y,d=n.width/r.x,u=n.height/r.y;if(i){const e=Qt(i),t=a&&jt(a)?Qt(a):a;let o=e,n=so(o);for(;n&&a&&t!==o;){const e=uo(n),t=n.getBoundingClientRect(),a=oo(n),i=t.left+(n.clientLeft+parseFloat(a.paddingLeft))*e.x,r=t.top+(n.clientTop+parseFloat(a.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=r,o=Qt(n),n=so(o)}}return Lt({width:d,height:u,x:l,y:c})}function mo(e,t){const o=ao(e).scrollLeft;return t?t.left+o:fo(Mt(e)).left+o}function go(e,t){const o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-mo(e,o),y:o.top+t.scrollTop}}const yo=/* @__PURE__ */new Set(["absolute","fixed"]);function vo(e,t,o){let a;if("viewport"===t)a=function(e,t){const o=Qt(e),a=Mt(e),n=o.visualViewport;let i=a.clientWidth,r=a.clientHeight,s=0,l=0;if(n){i=n.width,r=n.height;const e=$t();(!e||e&&"fixed"===t)&&(s=n.offsetLeft,l=n.offsetTop)}const c=mo(a);if(c<=0){const e=a.ownerDocument,t=e.body,o=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,r=Math.abs(a.clientWidth-t.clientWidth-n);r<=25&&(i-=r)}else c<=25&&(i+=c);return{width:i,height:r,x:s,y:l}}(e,o);else if("document"===t)a=function(e){const t=Mt(e),o=ao(e),a=e.ownerDocument.body,n=ct(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),i=ct(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let r=-o.scrollLeft+mo(e);const s=-o.scrollTop;return"rtl"===oo(a).direction&&(r+=ct(t.clientWidth,a.clientWidth)-n),{width:n,height:i,x:r,y:s}}(Mt(e));else if(jt(t))a=function(e,t){const o=fo(e,!0,"fixed"===t),a=o.top+e.clientTop,n=o.left+e.clientLeft,i=Ot(e)?uo(e):ht(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:n*i.x,y:a*i.y}}(t,o);else{const o=po(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Lt(a)}function Ao(e,t){const o=no(e);return!(o===t||!jt(o)||to(o))&&("fixed"===oo(o).position||Ao(o,t))}function Co(e,t,o){const a=Ot(t),n=Mt(t),i="fixed"===o,r=fo(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ht(0);function c(){l.x=mo(n)}if(a||!a&&!i)if(("body"!==Ut(t)||Ht(n))&&(s=ao(t)),a){const e=fo(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else n&&c();i&&!a&&n&&c();const d=!n||a||i?ht(0):go(n,s);return{x:r.left+s.scrollLeft-l.x-d.x,y:r.top+s.scrollTop-l.y-d.y,width:r.width,height:r.height}}function wo(e){return"static"===oo(e).position}function Eo(e,t){if(!Ot(e)||"fixed"===oo(e).position)return null;if(t)return t(e);let o=e.offsetParent;return Mt(e)===o&&(o=o.ownerDocument.body),o}function bo(e,t){const o=Qt(e);if(Wt(e))return o;if(!Ot(e)){let t=no(e);for(;t&&!to(t);){if(jt(t)&&!wo(t))return t;t=no(t)}return o}let a=Eo(e,t);for(;a&&Kt(a)&&wo(a);)a=Eo(a,t);return a&&to(a)&&wo(a)&&!Xt(a)?o:a||function(e){let t=no(e);for(;Ot(t)&&!to(t);){if(Xt(t))return t;if(Wt(t))return null;t=no(t)}return null}(e)||o}const Io={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:o,offsetParent:a,strategy:n}=e;const i="fixed"===n,r=Mt(a),s=!!t&&Wt(t.floating);if(a===r||s&&i)return o;let l={scrollLeft:0,scrollTop:0},c=ht(1);const d=ht(0),u=Ot(a);if((u||!u&&!i)&&(("body"!==Ut(a)||Ht(r))&&(l=ao(a)),Ot(a))){const e=fo(a);c=uo(a),d.x=e.x+a.clientLeft,d.y=e.y+a.clientTop}const h=!r||u||i?ht(0):go(r,l);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:o.y*c.y-l.scrollTop*c.y+d.y+h.y}},getDocumentElement:Mt,getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:a,strategy:n}=e;const i=[..."clippingAncestors"===o?Wt(t)?[]:function(e,t){const o=t.get(e);if(o)return o;let a=ro(e,[],!1).filter(e=>jt(e)&&"body"!==Ut(e)),n=null;const i="fixed"===oo(e).position;let r=i?no(e):e;for(;jt(r)&&!to(r);){const t=oo(r),o=Xt(r);o||"fixed"!==t.position||(n=null),(i?!o&&!n:!o&&"static"===t.position&&n&&yo.has(n.position)||Ht(r)&&!o&&Ao(e,r))?a=a.filter(e=>e!==r):n=t,r=no(r)}return t.set(e,a),a}(t,this._c):[].concat(o),a],r=i[0],s=i.reduce((e,o)=>{const a=vo(t,o,n);return e.top=ct(a.top,e.top),e.right=lt(a.right,e.right),e.bottom=lt(a.bottom,e.bottom),e.left=ct(a.left,e.left),e},vo(t,r,n));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:bo,getElementRects:async function(e){const t=this.getOffsetParent||bo,o=this.getDimensions,a=await o(e.floating);return{reference:Co(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:o}=lo(e);return{width:t,height:o}},getScale:uo,isElement:jt,isRTL:function(e){return"rtl"===oo(e).direction}};function Bo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function So(e,t,o,a){void 0===a&&(a={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=a,c=co(e),d=n||i?[...c?ro(c):[],...ro(t)]:[];d.forEach(e=>{n&&e.addEventListener("scroll",o,{passive:!0}),i&&e.addEventListener("resize",o)});const u=c&&s?function(e,t){let o,a=null;const n=Mt(e);function i(){var e;clearTimeout(o),null==(e=a)||e.disconnect(),a=null}return function r(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:h,height:p}=c;if(s||t(),!h||!p)return;const f={rootMargin:-ut(u)+"px "+-ut(n.clientWidth-(d+h))+"px "+-ut(n.clientHeight-(u+p))+"px "+-ut(d)+"px",threshold:ct(0,lt(1,l))||1};let m=!0;function g(t){const a=t[0].intersectionRatio;if(a!==l){if(!m)return r();a?r(!1,a):o=setTimeout(()=>{r(!1,1e-7)},1e3)}1!==a||Bo(c,e.getBoundingClientRect())||r(),m=!1}try{a=new IntersectionObserver(g,{...f,root:n.ownerDocument})}catch(y){a=new IntersectionObserver(g,f)}a.observe(e)}(!0),i}(c,o):null;let h,p=-1,f=null;r&&(f=new ResizeObserver(e=>{let[a]=e;a&&a.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),o()}),c&&!l&&f.observe(c),f.observe(t));let m=l?fo(e):null;return l&&function t(){const a=fo(e);m&&!Bo(m,a)&&o();m=a,h=requestAnimationFrame(t)}(),o(),()=>{var e;d.forEach(e=>{n&&e.removeEventListener("scroll",o),i&&e.removeEventListener("resize",o)}),null==u||u(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(h)}}const ko=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var o,a;const{x:n,y:i,placement:r,middlewareData:s}=t,l=await async function(e,t){const{placement:o,platform:a,elements:n}=e,i=await(null==a.isRTL?void 0:a.isRTL(n.floating)),r=yt(o),s=vt(o),l="y"===Et(o),c=Ft.has(r)?-1:1,d=i&&l?-1:1,u=gt(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof f&&(p="end"===s?-1*f:f),l?{x:p*d,y:h*c}:{x:h*c,y:p*d}}(t,e);return r===(null==(o=s.offset)?void 0:o.placement)&&null!=(a=s.arrow)&&a.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:r}}}}},xo=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:a,placement:n}=t,{mainAxis:i=!0,crossAxis:r=!1,limiter:s={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...l}=gt(e,t),c={x:o,y:a},d=await Nt(t,l),u=Et(yt(n)),h=At(u);let p=c[h],f=c[u];if(i){const e="y"===h?"bottom":"right";p=mt(p+d["y"===h?"top":"left"],p,p-d[e])}if(r){const e="y"===u?"bottom":"right";f=mt(f+d["y"===u?"top":"left"],f,f-d[e])}const m=s.fn({...t,[h]:p,[u]:f});return{...m,data:{x:m.x-o,y:m.y-a,enabled:{[h]:i,[u]:r}}}}}},Ro=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o,a;const{placement:n,middlewareData:i,rects:r,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=gt(e,t);if(null!=(o=i.arrow)&&o.alignmentOffset)return{};const y=yt(n),v=Et(s),A=yt(s)===s,C=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=h||(A||!m?[Tt(s)]:function(e){const t=Tt(e);return[It(e),t,It(t)]}(s)),E="none"!==f;!h&&E&&w.push(...Rt(s,m,f,C));const b=[s,...w],I=await Nt(t,g),B=[];let S=(null==(a=i.flip)?void 0:a.overflows)||[];if(d&&B.push(I[y]),u){const e=function(e,t,o){void 0===o&&(o=!1);const a=vt(e),n=bt(e),i=Ct(n);let r="x"===n?a===(o?"end":"start")?"right":"left":"start"===a?"bottom":"top";return t.reference[i]>t.floating[i]&&(r=Tt(r)),[r,Tt(r)]}(n,r,C);B.push(I[e[0]],I[e[1]])}if(S=[...S,{placement:n,overflows:B}],!B.every(e=>e<=0)){var k,x;const e=((null==(k=i.flip)?void 0:k.index)||0)+1,t=b[e];if(t){if(!("alignment"===u&&v!==Et(t))||S.every(e=>Et(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:S},reset:{placement:t}}}let o=null==(x=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:x.placement;if(!o)switch(p){case"bestFit":{var R;const e=null==(R=S.filter(e=>{if(E){const t=Et(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:R[0];e&&(o=e);break}case"initialPlacement":o=s}if(n!==o)return{reset:{placement:o}}}return{}}}},To=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var o,a;const{placement:n,rects:i,platform:r,elements:s}=t,{apply:l=()=>{},...c}=gt(e,t),d=await Nt(t,c),u=yt(n),h=vt(n),p="y"===Et(n),{width:f,height:m}=i.floating;let g,y;"top"===u||"bottom"===u?(g=u,y=h===(await(null==r.isRTL?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(y=u,g="end"===h?"top":"bottom");const v=m-d.top-d.bottom,A=f-d.left-d.right,C=lt(m-d[g],v),w=lt(f-d[y],A),E=!t.middlewareData.shift;let b=C,I=w;if(null!=(o=t.middlewareData.shift)&&o.enabled.x&&(I=A),null!=(a=t.middlewareData.shift)&&a.enabled.y&&(b=v),E&&!h){const e=ct(d.left,0),t=ct(d.right,0),o=ct(d.top,0),a=ct(d.bottom,0);p?I=f-2*(0!==e||0!==t?e+t:ct(d.left,d.right)):b=m-2*(0!==o||0!==a?o+a:ct(d.top,d.bottom))}await l({...t,availableWidth:I,availableHeight:b});const B=await r.getDimensions(s.floating);return f!==B.width||m!==B.height?{reset:{rects:!0}}:{}}}},Lo=(e,t,o)=>{const a=/* @__PURE__ */new Map,n={platform:Io,...o},i={...n.platform,_c:a};return(async(e,t,o)=>{const{placement:a="bottom",strategy:n="absolute",middleware:i=[],platform:r}=o,s=i.filter(Boolean),l=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:u}=Pt(c,a,l),h=a,p={},f=0;for(let m=0;m<s.length;m++){const{name:o,fn:i}=s[m],{x:g,y:y,data:v,reset:A}=await i({x:d,y:u,initialPlacement:a,placement:h,strategy:n,middlewareData:p,rects:c,platform:r,elements:{reference:e,floating:t}});d=null!=g?g:d,u=null!=y?y:u,p={...p,[o]:{...p[o],...v}},A&&f<=50&&(f++,"object"==typeof A&&(A.placement&&(h=A.placement),A.rects&&(c=!0===A.rects?await r.getElementRects({reference:e,floating:t,strategy:n}):A.rects),({x:d,y:u}=Pt(c,h,l))),m=-1)}return{x:d,y:u,placement:h,strategy:n,middlewareData:p}})(e,t,{...n,platform:i})};const Po="data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2534'%20width='200'%20height='200'%3e%3cpath%20d='M448%2085.333333a362.666667%20362.666667%200%201%200%20224.512%20647.509334l155.818667%20155.818666a42.666667%2042.666667%200%200%200%2060.330666-60.330666l-155.818666-155.818667A362.666667%20362.666667%200%200%200%20448%2085.333333zM170.666667%20448a277.333333%20277.333333%200%201%201%20554.666666%200%20277.333333%20277.333333%200%200%201-554.666666%200z'%20p-id='2535'%3e%3c/path%3e%3c/svg%3e",No="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon/more'%3e%3cg%20id='&%23231;&%23188;&%23150;&%23231;&%23187;&%23132;'%3e%3cpath%20id='Stroke%201'%20d='M1.56628%207.79421H14.0959'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%203'%20d='M14.0667%207.79292C11.5075%207.79292%209.43396%205.71938%209.43396%203.16016'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%205'%20d='M14.0667%207.79297C11.5075%207.79297%209.43396%209.86651%209.43396%2012.4257'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Fo={class:"selection-wrapper"},Vo={class:"tag-text"},Uo=["onClick"],Qo={key:0,class:"search-tag collapse"},Mo=["placeholder"],Do={class:"suffix-area"},jo={key:1,class:"loading-spinner"},Oo={class:"search-icon"},Jo=["src"],qo={key:0,class:"history-section"},Ho={class:"history-header"},zo=["onMousedown"],Ko=["src"],Go={class:"type-text"},Wo={class:"result-text"},Yo={key:0,class:"status-msg"},Zo=["onMousedown"],_o=["src"],Xo={class:"type-text"},$o={class:"result-text"},ea={key:0,class:"load-more-msg"},ta={key:2,class:"status-msg"},oa={key:0,class:"no-result-label"},aa={key:1,class:"no-result-label"},na={class:"jc:flex jc:justify-center jc:items-center jc:gap-1"},ia=["src"],ra=(e,t)=>{const o=e.__vccOpts||e;for(const[a,n]of t)o[a]=n;return o},sa=/* @__PURE__ */ra(/* @__PURE__ */n({__name:"index",props:{modelValue:{default:null},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},searchTypeList:{default:()=>["Continent","Country","Region","City","Seaport","Airport"]},historyKey:{default:void 0},lang:{default:""},placeholder:{},showSearchIcon:{type:Boolean,default:!0},showItemTag:{type:Boolean,default:!0},showApplyData:{type:Boolean,default:!0},parentId:{default:null},parentType:{default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","select","blur","change","submit-search","remove","clear","apply-data","apply-data-open","apply-data-close"],setup(n,{emit:k}){const x=n,R=k,T=e(null),L=e(null),P=e(null),N=e(""),F=e(""),V=e(!1);let U=null;const Q=e(!1),M=t(()=>x.modelValue?Array.isArray(x.modelValue)?x.modelValue:[x.modelValue]:[]),D=t(()=>x.multiple?x.collapseTags?M.value.slice(0,1):M.value:[]),j=t(()=>N.value||M.value.length>0),O=t(()=>x.multiple?N.value?10*N.value.length+20+"px":"10px":"100%"),{searchHistory:J,saveToHistory:q,clearHistory:H}=function(a){const n=e([]),i="undefined"!=typeof window&&"undefined"!=typeof localStorage,r=t(()=>(a.value||"")+"_search_history_cache"),s=t(()=>!!a.value&&""!==a.value);return o(()=>{if(i&&s.value){const t=localStorage.getItem(r.value);if(t)try{n.value=JSON.parse(t)}catch(e){n.value=[]}}}),{searchHistory:n,saveToHistory:e=>{if(!e||!i)return;const t=n.value.filter(t=>t.id&&t.id!==e.id||t.display!==e.display);t.unshift(e);const o=t.slice(0,4);if(s.value){n.value=o;try{localStorage.setItem(r.value,JSON.stringify(o))}catch(a){console.warn("LocalStorage save failed:",a)}}},clearHistory:()=>{n.value=[],i&&localStorage.removeItem(r.value)},HasHistory:s}}(i(x,"historyKey")),{searchResults:z,loading:K,isFetchingMore:G,isFinished:W,currentPage:Y,fetchData:Z,filterByTypes:_}=st(N,i(x,"searchTypeList"),{parentId:i(x,"parentId"),parentType:i(x,"parentType")}),{floatingStyles:X,startTrack:$,stopTrack:ee}=function(t,o){const n=e({position:"fixed",left:"0",top:"0",zIndex:3e3});let i=null;const r=()=>{t.value&&o.value&&Lo(t.value,o.value,{placement:"bottom-start",strategy:"fixed",middleware:[ko(6),Ro(),xo({padding:10}),To({apply({rects:e,elements:t,availableWidth:o}){const a=`${e.reference.width}px`,n=e.reference.width;Object.assign(t.floating.style,{width:"max-content",minWidth:a,maxWidth:`${Math.max(n,o-20)}px`})}})]}).then(({x:e,y:t})=>{Object.assign(n.value,{left:`${e}px`,top:`${t}px`})})},s=()=>{i&&(i(),i=null)};return a(s),{floatingStyles:n,startTrack:()=>{t.value&&o.value&&(i=So(t.value,o.value,r))},stopTrack:s}}(L,P),{isDropdownVisible:te,openDropdown:oe,handleAfterSelect:ae,handleBlur:ne}=function(t,o,a,n){const i=e(!1),r=()=>i.value=!1;return{isDropdownVisible:i,openDropdown:()=>i.value=!0,closeDropdown:r,handleAfterSelect:()=>{t?o.value?.focus():(a.value="",r(),o.value?.blur())},handleBlur:()=>{setTimeout(()=>{r(),n("blur"),a.value=""},200)}}}(i(x,"multiple").value,T,N,R),{formItem:ie}=Je(),re=t(()=>z.value.length>0||K.value||N.value||J.value.length>0),se=t(()=>{if(x.lang)return"en"===x.lang||"en-US"===x.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),le=t(()=>x.multiple&&M.value.length>0?"":V.value&&!x.multiple?F.value:x.placeholder?x.placeholder:se.value?"Please enter...":"请输入..."),ce=e=>({City:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVR4AaRQO07DQBCdWe8B4B5IFFyAK9ARkIVNhIQEEiVtJLgABRVRvIBCJBquwBVyDgoaSnuHeZY3MlYcNsnIb8fze6M3hra0XoKJm95N3Nv3EnyhFvb2EgjRJbOMKqmO2tDcvQ5fK+qvl4CJbOn9/CJPP9tArp5sHtP4lc652VXxPL1Z1hRFIOytF1NuTJCfnT4Ms8HjSgJctn1xIt6hxqIkdK+u8U8zT1ESmP5enUkWmqMkhG2FmxXOvR+EGD5KAhoDqsQvtiMXJQGNQJ4N8mF6PMd/wL8SxuOXPSG21pj9p+L1EOjGyAHoQQ0zWGDqx9pbPWIpwqOEkw+gGyMHoAc1ozOkVhOcZyepYndNpDpPvwAAAP//BVQJHAAAAAZJREFUAwDZWL4hub5xHQAAAABJRU5ErkJggg==",Country:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACmklEQVR4AXRTT0jUQRT+3uyqGxgYeCiy1JAo6JBUp4Q81EEiKKiDa+H+/ENGHgPpZtChQ4EHL+Ku+9t0V7EkQSGPBYGHBIU6RAqt2cFDBw9C+3de3yy7hobDvHm/+d4337x58xuDQ9r4+FRDLJZqG49PtrvvQ2j4TyDmJ7sm/NRqoMpsIYD3RgIL7pvY54lEqvug0J5APB4PxfzUOwFGRWReVJp7I+GjW+nvxxQo0DagOjLhJxcctyK0J6BS/UaAc1nNtXrdnc88rzPtSMPDwwXiM7R2W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yJz7dCLj6JTj6tRxVyf3izZUtNndwM73SU55JzaO4Q8AAAD//54At5MAAAAGSURBVAMAh2IbMAJQAZQAAAAASUVORK5CYII="),de=e=>{const t={City:{en:"City",cn:"城市"},Country:{en:"Country",cn:"国家"},Region:{en:"Region",cn:"区域"},Airport:{en:"Airport",cn:"机场"},Seaport:{en:"Seaport",cn:"港口"}};return se.value?t[e].en:t[e].cn},ue=e=>M.value.some(t=>t.id===e.id),he=()=>T.value?.focus(),pe=e=>se.value?e.displayEn||e.display||"":e.displayCn||e.display||"",fe=e=>{if(console.log("🍉 ~ index.vue:417 ~ selectItem ~ item:",e),q(e),x.multiple){if(!ue(e)){const t=[...M.value,e];R("update:modelValue",t)}}else F.value=pe(e),V.value=!0,R("update:modelValue",e);R("select",e),R("change",e),ie?.validate?.("change").catch(()=>{}),ae()},me=e=>{const t=M.value.filter(t=>t.id!==e.id);R("update:modelValue",t),R("remove",e)},ge=()=>{x.multiple&&!N.value&&M.value.length>0&&me(M.value[M.value.length-1])},ye=()=>{N.value="",V.value=!1,F.value="";const e=x.multiple?[]:null;R("update:modelValue",e),R("clear"),ie?.validate?.("change").catch(()=>{})},ve=async()=>{if(oe(),!x.multiple&&V.value&&0===z.value.length){const e=x.modelValue;if(e?.id){K.value=!0;try{const t=await rt(e.id,e.type);z.value=_(t.records)}finally{K.value=!1}}}},Ae=e=>{ne(),ie?.validate?.("blur").catch(()=>{})},Ce=e=>{""!==e.target.value||x.multiple||ye()},we=()=>{R("submit-search",M.value),te.value=!1},Ee=e=>{const{scrollTop:t,scrollHeight:o,clientHeight:a}=e.target;t+a>=o-20&&(K.value||G.value||W.value||!N.value||Z(Y.value+1,!0))},be=e=>{console.log("🍉 ~ index.vue:428 ~ handleConfirmApplyData ~ e:",e),R("apply-data",e)},Ie=()=>{Q.value=!0,R("apply-data-open")},Be=()=>{N.value="",Q.value=!1,R("apply-data-close")};return r(()=>x.parentId,()=>{x.multiple||(N.value="",z.value=[])}),r(te,e=>{e?$():ee()}),r(N,e=>{e.trim()?(U&&clearTimeout(U),U=setTimeout(()=>Z(1,!1),300)):z.value=[]}),r(()=>x.modelValue,async(e,t)=>{if(JSON.stringify(e)===JSON.stringify(t))return;if(x.multiple&&Array.isArray(e)){const t=[...e],o=t.filter(e=>e&&e.id&&e.type&&!e.display);if(o.length>0)try{const e=o.map(e=>e.id).filter(e=>null!=e),a=await rt(e,o[0].type);if(a&&a.records){let e=!1;const o=t.map(t=>{const o=a.records.find(e=>e.id===t.id);return o&&!t.display?(e=!0,{...t,...o}):t});e&&R("update:modelValue",o)}}catch(a){console.error("Batch fetch detail failed:",a)}return}const o=e;if(!o)return V.value=!1,void(F.value="");if("object"==typeof o)if(o.id&&o.type&&!o.display)try{const e=(await rt(o.id,o.type)).records.find(e=>e.id===o.id);e&&(F.value=pe(e),V.value=!0)}catch(a){console.error("Single fetch detail failed:",a)}else F.value=pe(o),V.value=!!F.value;else F.value=String(o),V.value=!!o},{immediate:!0,deep:!0}),a(ee),(e,t)=>(l(),s("div",{class:c(["search-container",{"is-disabled":n.disabled}])},[d("div",{class:c(["search-input-wrapper",{"is-multiple":n.multiple}]),ref_key:"referenceRef",ref:L,onClick:he},[d("div",Fo,[p(e.$slots,"prefix",{},void 0,!0),n.multiple&&M.value.length>0?(l(),s(g,{key:0},[(l(!0),s(g,null,y(D.value,(e,t)=>(l(),s("div",{key:e.id||t,class:"search-tag"},[d("span",Vo,v(pe(e)),1),d("span",{class:"tag-close",onClick:A(t=>me(e),["stop"])},"×",8,Uo)]))),128)),n.collapseTags&&M.value.length>1?(l(),s("div",Qo," + "+v(M.value.length-1),1)):f("",!0)],64)):f("",!0),m(d("input",{ref_key:"inputRef",ref:T,class:c({"is-selected-state":V.value&&!n.multiple}),"onUpdate:modelValue":t[0]||(t[0]=e=>N.value=e),type:"text",placeholder:le.value,style:w({width:O.value}),onFocus:ve,onBlur:Ae,onInput:Ce,onKeydown:C(ge,["delete"])},null,46,Mo),[[E,N.value]])]),p(e.$slots,"suffix",{},()=>[d("div",Do,[j.value?(l(),s("span",{key:0,class:"clear-icon",onMousedown:t[1]||(t[1]=A(()=>{},["prevent"])),onClick:A(ye,["stop"])},"ⓧ",32)):f("",!0),b(K)&&!b(G)?(l(),s("div",jo)):!b(K)&&n.showSearchIcon?(l(),s("button",{key:2,class:"search-btn",onClick:A(we,["stop"])},[d("span",Oo,[d("img",{src:b(Po),alt:"search"},null,8,Jo)])])):f("",!0)])],!0)],2),(l(),u(I,{to:"body"},[m(d("div",{ref_key:"floatingRef",ref:P,class:"dropdown-list",style:w(b(X)),onScroll:Ee},[p(e.$slots,"history",{searchHistory:b(J)},()=>[b(J).length>0&&!N.value?(l(),s("div",qo,[d("div",Ho,[d("span",null,v(se.value?"Recent search":"最近搜索"),1),d("span",{class:"clear-btn",onMousedown:t[2]||(t[2]=A(()=>{},["prevent"])),onClick:t[3]||(t[3]=A((...e)=>b(H)&&b(H)(...e),["stop"]))},v(se.value?"Clear":"清空"),33)]),(l(!0),s(g,null,y(b(J),(e,t)=>(l(),s("div",{key:"hist-"+t,class:"dropdown-item",onMousedown:A(t=>fe(e),["prevent"])},[d("div",{class:"category-tag",style:w(n.showItemTag?{}:{display:"none"})},[d("img",{class:"type-icon",src:ce(e.type),alt:""},null,8,Ko),d("span",Go,v(de(e.type)),1)],4),d("div",Wo,v(pe(e)),1)],40,zo))),128)),t[7]||(t[7]=d("hr",{class:"divider"},null,-1))])):f("",!0)],!0),b(K)&&!b(G)?(l(),s("div",Yo,v(se.value?"Searching...":"正在搜索中..."),1)):b(z).length>0?(l(),s(g,{key:1},[p(e.$slots,"results",{searchResults:b(z)},()=>[(l(!0),s(g,null,y(b(z),(e,t)=>(l(),s("div",{key:t,class:c(["dropdown-item",{"is-active":ue(e)}]),onMousedown:A(t=>fe(e),["prevent"])},[d("div",{class:"category-tag",style:w(n.showItemTag?{}:{display:"none"})},[d("img",{class:"type-icon",src:ce(e.type),alt:""},null,8,_o),d("span",Xo,v(de(e.type)),1)],4),d("div",$o,v(pe(e)),1)],42,Zo))),128))],!0),b(G)?(l(),s("div",ea,v(se.value?"Loading more...":"正在加载更多..."),1)):f("",!0)],64)):N.value&&!b(K)?(l(),s("div",ta,[p(e.$slots,"noData",{},()=>[n.showApplyData?(l(),s("div",aa,[B(v(se.value?"No results found. ":"暂无结果,")+" ",1),d("div",na,[d("span",{class:"apply-data jc:cursor-pointer jc:ml-1",onClick:t[4]||(t[4]=A(()=>Q.value=!0,["stop"]))},v(se.value?"Apply for data addition":"申请补充数据 "),1),d("img",{src:b(No),alt:"",class:"apply-data-more-icon",onClick:t[5]||(t[5]=A(()=>Q.value=!0,["stop"]))},null,8,ia)])])):(l(),s("p",oa,v(se.value?`No results found related to "${N.value}".`:`未找到与 "${N.value}" 相关的结果`),1))],!0)])):f("",!0)],36),[[S,b(te)&&re.value]])])),h(tn,{searchValue:N.value,value:Q.value,"onUpdate:value":t[6]||(t[6]=e=>Q.value=e),lang:n.lang,onConfirm:be,onOpen:Ie,onClose:Be},null,8,["searchValue","value","lang"])],2))}}),[["__scopeId","data-v-c018551b"]]),la=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:sa},Symbol.toStringTag,{value:"Module"}));var ca="object"==typeof global&&global&&global.Object===Object&&global,da="object"==typeof self&&self&&self.Object===Object&&self,ua=ca||da||Function("return this")(),ha=ua.Symbol,pa=Object.prototype,fa=pa.hasOwnProperty,ma=pa.toString,ga=ha?ha.toStringTag:void 0;var ya=Object.prototype.toString;var va=ha?ha.toStringTag:void 0;function Aa(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":va&&va in Object(e)?function(e){var t=fa.call(e,ga),o=e[ga];try{e[ga]=void 0;var a=!0}catch(i){}var n=ma.call(e);return a&&(t?e[ga]=o:delete e[ga]),n}(e):function(e){return ya.call(e)}(e)}var Ca=/\s/;var wa=/^\s+/;function Ea(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Ca.test(e.charAt(t)););return t}(e)+1).replace(wa,""):e}function ba(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var Ia=/^[-+]0x[0-9a-f]+$/i,Ba=/^0b[01]+$/i,Sa=/^0o[0-7]+$/i,ka=parseInt;function xa(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==Aa(e)}(e))return NaN;if(ba(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ba(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ea(e);var o=Ba.test(e);return o||Sa.test(e)?ka(e.slice(2),o?2:8):Ia.test(e)?NaN:+e}var Ra=function(){return ua.Date.now()},Ta=Math.max,La=Math.min;function Pa(e,t,o){var a,n,i,r,s,l,c=0,d=!1,u=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var o=a,i=n;return a=n=void 0,c=t,r=e.apply(i,o)}function f(e){var o=e-l;return void 0===l||o>=t||o<0||u&&e-c>=i}function m(){var e=Ra();if(f(e))return g(e);s=setTimeout(m,function(e){var o=t-(e-l);return u?La(o,i-(e-c)):o}(e))}function g(e){return s=void 0,h&&a?p(e):(a=n=void 0,r)}function y(){var e=Ra(),o=f(e);if(a=arguments,n=this,l=e,o){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),d?p(e):r}(l);if(u)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),r}return t=xa(t)||0,ba(o)&&(d=!!o.leading,i=(u="maxWait"in o)?Ta(xa(o.maxWait)||0,t):i,h="trailing"in o?!!o.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,a=l=n=s=void 0},y.flush=function(){return void 0===s?r:g(Ra())},y}const Na={key:0,class:"modal-container"},Fa={class:"modal-header"},Va={class:"header-title"},Ua={class:"modal-body"},Qa={class:"form-item"},Ma={class:"required"},Da={class:"input-box"},ja=["placeholder"],Oa={key:0,class:"error-message"},Ja={class:"form-item"},qa={class:"required"},Ha={class:"type-group"},za=["onClick"],Ka={key:0,class:"check-mark"},Ga={class:"form-item"},Wa={class:"required"},Ya={key:0,class:"error-message"},Za={class:"modal-footer"},_a={key:1,class:"apply-success-container"},Xa={class:"apply-success-container__content"},$a={class:"desc"},en={class:"apply-success-container__btns"},tn=/* @__PURE__ */ra({__name:"ApplyDataDialog",props:{value:{type:Boolean,default:!1},lang:{type:String,default:"",validator:e=>["","en","en-US","zh-CN","cn"].includes(e)},searchValue:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update:value","confirm","open","close"],setup(o,{emit:a}){const n=o,i=a,u=[{typeCn:"城市",typeEn:"City",type:"City"},{typeCn:"海运港口",typeEn:"Port",type:"Seaport"},{typeCn:"机场",typeEn:"Airport",type:"Airport"}],p=e(null),C=e(!1),w=e(!1);r(()=>n.value,e=>{e&&(console.log("🍉 ~ ApplyDataDialog.vue:138 ~ props.searchValue:",n.searchValue),n.searchValue&&(S.name=n.searchValue),i("open"))});const I=k({name:"",country:""}),S=k({name:"",type:"City"}),x=t(()=>{if(n.lang)return"en"===n.lang||"en-US"===n.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),R=()=>{I.name="",I.country="",C.value=!1,S.name="",S.type="City",p.value=null,i("update:value",!1),i("close")},T=Pa(()=>{I.name="",I.country="";let e=!0;S.name.trim()||(I.name=x.value?"Please enter the data":"请输入需要补充的数据",e=!1),p.value||(I.country=x.value?"Please select a country":"请选择国家",e=!1),e&&(w.value=!0,z({reportData:S.name,reportType:S.type.toLocaleLowerCase(),countryId:p.value.id}).then(e=>{console.log("🍉 ~ ApplyDataDialog.vue:185 ~ handleConfirm ~ res:",e,e.code),0===e.code&&(C.value=!0,qe.success(x.value?"Application received. Awaiting review":"平台已收到申请,请等待审核"),i("confirm",{...S,country:p.value}))}).catch(e=>{console.log("🍉 ~ ApplyDataDialog.vue:187 ~ handleConfirm ~ err:",e)}).finally(()=>{w.value=!1}))},800,{leading:!0,trailing:!1});return(e,t)=>o.value?(l(),s("div",{key:0,class:"modal-mask",onClick:A(R,["self"])},[C.value?(l(),s("div",_a,[d("div",Xa,[t[5]||(t[5]=d("div",{class:"icon"},null,-1)),d("div",$a,v(x.value?"Application received. Awaiting review!":"平台已收到申请,请等待审核!"),1)]),d("div",en,[d("div",{class:"button jc:cursor-pointer",onClick:A(R,["stop"])},v(x.value?"OK":"好的"),1)])])):(l(),s("div",Na,[d("div",Fa,[d("span",Va,v(x.value?"Apply for data addition":"申请补充数据"),1),d("div",{class:"close-btn",onClick:R},"×")]),d("div",Ua,[d("div",Qa,[d("label",Ma,v(x.value?"Data To Add":"需补充的数据"),1),d("div",Da,[m(d("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>S.name=e),type:"text",placeholder:o.placeholder??(x.value?" Please enter":"请输入"),class:c(["custom-input",{"input-error":I.name}]),onInput:t[1]||(t[1]=e=>I.name="")},null,42,ja),[[E,S.name]])]),I.name?(l(),s("div",Oa,v(I.name),1)):f("",!0)]),d("div",Ja,[d("label",qa,v(x.value?"Type":"所属类别"),1),d("div",Ha,[(l(),s(g,null,y(u,e=>d("div",{key:e.type,class:c(["type-btn",{active:S.type===e.type}]),onClick:t=>S.type=e.type},[B(v(x.value?e.typeEn:e.typeCn)+" ",1),S.type===e.type?(l(),s("div",Ka)):f("",!0)],10,za)),64))])]),d("div",Ga,[d("label",Wa,v(x.value?"Country":"国家"),1),d("div",{class:c({"search-error-wrap":I.country})},[h(sa,{"search-type-list":["Country"],"model-value":p.value,"onUpdate:modelValue":[t[2]||(t[2]=e=>p.value=e),t[3]||(t[3]=e=>I.country="")],style:{margin:"0 auto"},lang:o.lang,"show-apply-data":!1,"show-search-icon":!1,placeholder:o.placeholder??(x.value?" Please enter":"请输入")},null,8,["model-value","lang","placeholder"])],2),I.country?(l(),s("div",Ya,v(I.country),1)):f("",!0)])]),d("div",Za,[m((l(),s("div",{class:c(["confirm-btn jc:outline-none!",{"is-loading":w.value}]),onClick:t[4]||(t[4]=(...e)=>b(T)&&b(T)(...e))},[B(v(x.value?"Submit":"申请补充"),1)],2)),[[b(He),w.value]])])]))])):f("",!0)}},[["__scopeId","data-v-98fe6169"]]),on=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:tn},Symbol.toStringTag,{value:"Module"}));const an={class:"global-company-input"},nn={class:"company-option-item"},rn=/* @__PURE__ */ra({__name:"index",props:{lang:{type:String,default:""},companyName:{type:String,default:""},countryId:{type:[String,Number,null],required:!0},useKq:{type:Boolean,default:!1},kqCode:{type:[String,Number],default:""},kqInfo:{type:Object,default:()=>({})},city:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1}},emits:["update:companyName","update:useKq","update:kqCode","update:kqInfo","change"],setup(o,{emit:n}){const i=o,c=n,h=e(!1),f=e([]),{isEn:m}=function(e=""){return{isEn:t(()=>{if(e)return"en"===e||"en-US"===e;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(t){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(t){}return!1})}}(i.lang),{formItem:A}=Je(),C=t({get:()=>i.companyName,set:e=>c("update:companyName",e)}),w=e(!1),E=e=>{e?(h.value=!0,I(e)):f.value=[]},I=Pa(e=>{console.log("🍉 ~ index.vue:119 ~ props.city:",i.city);const t={current:1,size:50,compName:e,cityName:i.city?.nameCn+"市"};K(t).then(e=>{f.value=e.data.data.records?.map(e=>({value:e.nameCn,code:e.kqId,...e}))||[]}).catch(e=>{console.error("获取公司选项失败:",e),f.value=[]}).finally(()=>{h.value=!1})},800),B=e=>{const t=f.value.find(t=>t.value===e);t?(c("update:useKq",!0),c("update:kqCode",t.code),c("update:kqInfo",t)):(c("update:useKq",!1),c("update:kqCode",""),c("update:kqInfo",{})),c("change",t)},S=e=>{c("update:useKq",!1),c("update:kqCode",""),c("change",e),A?.validate?.("change").catch(()=>{})};return r(()=>i.countryId,()=>{c("update:companyName",""),c("update:useKq",!1),c("update:kqCode",""),c("update:kqInfo",{}),A?.validate?.("change").catch(()=>{}),f.value=[]}),a(()=>{I.cancel()}),(e,t)=>(l(),s("div",an,[[1].includes(Number(i.countryId))?(l(),u(b(ze),{key:0,modelValue:C.value,"onUpdate:modelValue":t[0]||(t[0]=e=>C.value=e),filterable:"",remote:"","reserve-keyword":"",clearable:"","allow-create":o.allowCreate,"default-first-option":o.defaultFirstOption,"remote-method":E,loading:h.value,disabled:w.value||i.disabled,placeholder:b(m)?"Company Name in Chinese":"请输入您的公司中文名称",style:{width:"100%"},"popper-class":"company-search dialog-join-us",onChange:B},{prefix:x(()=>[p(e.$slots,"prefix",{},void 0,!0)]),default:x(()=>[(l(!0),s(g,null,y(f.value,e=>(l(),u(b(Ke),{key:e.code,label:e.value,value:e.value},{default:x(()=>[d("div",nn,[d("span",null,v(e.value),1)])]),_:2},1032,["label","value"]))),128))]),_:3},8,["modelValue","allow-create","default-first-option","loading","disabled","placeholder"])):(l(),u(b(Ge),{key:1,modelValue:C.value,"onUpdate:modelValue":t[1]||(t[1]=e=>C.value=e),disabled:w.value||i.disabled,placeholder:b(m)?"Company name in English":"请输入您的公司英文名称","max-length":"200",style:{width:"100%"},onChange:S},{prepend:x(()=>[p(e.$slots,"prefix",{},void 0,!0)]),_:3},8,["modelValue","disabled","placeholder"]))]))}},[["__scopeId","data-v-24cf1e2e"]]),sn=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:rn},Symbol.toStringTag,{value:"Module"})),ln={type:"text",name:"fakeUsername",autocomplete:"on"},cn={type:"password",name:"fakePassword",autocomplete:"new-password"},dn={class:"google-input-wrap"},un={key:0,class:"google-input-wrap-prepend"},hn={class:"google-input-wrap-input"};const pn=/* @__PURE__ */ra({name:"GoogleInput",components:{ElInput:Ge},inheritAttrs:!1,props:{placeholder:{type:String,default:""},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue","blur","focus"],data:()=>({isFocus:!1}),computed:{isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus||null!==this.modelValue&&""!==this.modelValue}},mounted(){if(window.navigator.userAgent.indexOf("Chrome")>-1){let e=0;const t=()=>{try{e++;const o=this.$refs.googleInput?.$el.querySelector("input");if(o){"rgb(232, 240, 254)"===window.getComputedStyle(o).getPropertyValue("background-color")?this.isFocus=!0:e<20&&setTimeout(t,100)}}catch(o){console.error("Autofill detection error:",o)}};t()}},methods:{handleInput(e){this.$emit("update:modelValue",e)},localBlur(e){this.isFocus=!1,this.$emit("blur",e)},localFocus(e){this.isFocus=!0,this.$emit("focus",e)}}},[["render",function(e,t,o,a,n,i){const r=R("el-input");return l(),s("div",{class:c(["google-input",{"is-focus":i.shouldFloat,"is-have-prepend":i.isHavePrepend}])},[m(d("input",ln,null,512),[[S,!1]]),m(d("input",cn,null,512),[[S,!1]]),d("div",dn,[i.isHavePrepend?(l(),s("div",un,[p(e.$slots,"prefix",{},void 0,!0)])):f("",!0),d("div",hn,[h(r,T({ref:"googleInput"},e.$attrs,{"model-value":o.modelValue},L({input:i.handleInput,blur:i.localBlur,focus:i.localFocus})),{suffix:x(()=>[p(e.$slots,"suffix",{},void 0,!0)]),_:3},16,["model-value"]),d("p",{onClick:t[0]||(t[0]=t=>e.$refs.googleInput.focus()),class:"google-input-wrap-input-placeholder"},v(o.placeholder),1)])])],2)}],["__scopeId","data-v-03e9d373"]]),fn=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:pn},Symbol.toStringTag,{value:"Module"})),mn={type:"text",name:"fakeUsername",autocomplete:"on"},gn={type:"password",name:"fakePassword",autocomplete:"new-password"},yn={class:"google-input-wrap"},vn={key:0,class:"google-input-wrap-prepend"},An={class:"google-input-wrap-input"};const Cn=/* @__PURE__ */ra({name:"GoogleInput",components:{ElInput:Ge},inheritAttrs:!1,props:{placeholder:{type:String,default:""},label:{type:String,default:""},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue","blur","focus"],data:()=>({isFocus:!1}),computed:{currentLabel(){return this.label?this.label:this.placeholder},isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus}},mounted(){if(window.navigator.userAgent.indexOf("Chrome")>-1){let e=0;const t=()=>{try{e++;const o=this.$refs.googleInput?.$el.querySelector("input");if(o){"rgb(232, 240, 254)"===window.getComputedStyle(o).getPropertyValue("background-color")?this.isFocus=!0:e<20&&setTimeout(t,100)}}catch(o){console.error("Autofill detection error:",o)}};t()}},methods:{handleInput(e){this.$emit("update:modelValue",e)},localBlur(e){this.isFocus=!1,this.$emit("blur",e)},localFocus(e){this.isFocus=!0,this.$emit("focus",e)}}},[["render",function(e,t,o,a,n,i){const r=R("el-input");return l(),s("div",{class:c(["google-input",{"is-focus":i.shouldFloat,"is-have-prepend":i.isHavePrepend}])},[m(d("input",mn,null,512),[[S,!1]]),m(d("input",gn,null,512),[[S,!1]]),d("div",yn,[i.isHavePrepend?(l(),s("div",vn,[p(e.$slots,"prefix",{},void 0,!0)])):f("",!0),d("div",An,[h(r,T({ref:"googleInput"},e.$attrs,{"model-value":o.modelValue,placeholder:o.placeholder},L({input:i.handleInput,blur:i.localBlur,focus:i.localFocus})),{suffix:x(()=>[p(e.$slots,"suffix",{},void 0,!0)]),_:3},16,["model-value","placeholder"]),d("p",{onClick:t[0]||(t[0]=t=>e.$refs.googleInput.focus()),class:"google-input-wrap-input-placeholder"},v(i.currentLabel),1)])])],2)}],["__scopeId","data-v-328e3e35"]]),wn=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Cn},Symbol.toStringTag,{value:"Module"}));var En="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function bn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function In(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var o=function e(){var o=!1;try{o=this instanceof e}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}),o}var Bn={exports:{}};var Sn={exports:{}};const kn=/* @__PURE__ */In(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var xn;function Rn(){return xn||(xn=1,Sn.exports=(e=e||function(e,t){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),"undefined"!=typeof self&&self.crypto&&(o=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==En&&En.crypto&&(o=En.crypto),!o)try{o=kn}catch(m){}var a=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},n=Object.create||/* @__PURE__ */function(){function e(){}return function(t){var o;return e.prototype=t,o=new e,e.prototype=null,o}}(),i={},r=i.lib={},s=r.Base=/* @__PURE__ */function(){return{extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=r.WordArray=s.extend({init:function(e,o){e=this.words=e||[],this.sigBytes=o!=t?o:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,o=e.words,a=this.sigBytes,n=e.sigBytes;if(this.clamp(),a%4)for(var i=0;i<n;i++){var r=o[i>>>2]>>>24-i%4*8&255;t[a+i>>>2]|=r<<24-(a+i)%4*8}else for(var s=0;s<n;s+=4)t[a+s>>>2]=o[s>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,o=this.sigBytes;t[o>>>2]&=4294967295<<32-o%4*8,t.length=e.ceil(o/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],o=0;o<e;o+=4)t.push(a());return new l.init(t,e)}}),c=i.enc={},d=c.Hex={stringify:function(e){for(var t=e.words,o=e.sigBytes,a=[],n=0;n<o;n++){var i=t[n>>>2]>>>24-n%4*8&255;a.push((i>>>4).toString(16)),a.push((15&i).toString(16))}return a.join("")},parse:function(e){for(var t=e.length,o=[],a=0;a<t;a+=2)o[a>>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new l.init(o,t/2)}},u=c.Latin1={stringify:function(e){for(var t=e.words,o=e.sigBytes,a=[],n=0;n<o;n++){var i=t[n>>>2]>>>24-n%4*8&255;a.push(String.fromCharCode(i))}return a.join("")},parse:function(e){for(var t=e.length,o=[],a=0;a<t;a++)o[a>>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new l.init(o,t)}},h=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},p=r.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var o,a=this._data,n=a.words,i=a.sigBytes,r=this.blockSize,s=i/(4*r),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*r,d=e.min(4*c,i);if(c){for(var u=0;u<c;u+=r)this._doProcessBlock(n,u);o=n.splice(0,c),a.sigBytes-=d}return new l.init(o,d)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});r.Hasher=p.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,o){return new e.init(o).finalize(t)}},_createHmacHelper:function(e){return function(t,o){return new f.HMAC.init(e,o).finalize(t)}}});var f=i.algo={};return i}(Math),e)),Sn.exports;var e}var Tn,Ln={exports:{}};function Pn(){return Tn?Ln.exports:(Tn=1,Ln.exports=(r=Rn(),o=(t=r).lib,a=o.Base,n=o.WordArray,(i=t.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=a.extend({init:function(t,o){t=this.words=t||[],this.sigBytes=o!=e?o:8*t.length},toX32:function(){for(var e=this.words,t=e.length,o=[],a=0;a<t;a++){var i=e[a];o.push(i.high),o.push(i.low)}return n.create(o,this.sigBytes)},clone:function(){for(var e=a.clone.call(this),t=e.words=this.words.slice(0),o=t.length,n=0;n<o;n++)t[n]=t[n].clone();return e}}),r));var e,t,o,a,n,i,r}var Nn,Fn={exports:{}};function Vn(){return Nn||(Nn=1,Fn.exports=(e=Rn(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,o=t.init,a=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,a=[],n=0;n<t;n++)a[n>>>2]|=e[n]<<24-n%4*8;o.call(this,a,t)}else o.apply(this,arguments)};a.prototype=t}}(),e.lib.WordArray)),Fn.exports;var e}var Un,Qn={exports:{}};function Mn(){return Un?Qn.exports:(Un=1,Qn.exports=(e=Rn(),function(){var t=e,o=t.lib.WordArray,a=t.enc;function n(e){return e<<8&4278255360|e>>>8&16711935}a.Utf16=a.Utf16BE={stringify:function(e){for(var t=e.words,o=e.sigBytes,a=[],n=0;n<o;n+=2){var i=t[n>>>2]>>>16-n%4*8&65535;a.push(String.fromCharCode(i))}return a.join("")},parse:function(e){for(var t=e.length,a=[],n=0;n<t;n++)a[n>>>1]|=e.charCodeAt(n)<<16-n%2*16;return o.create(a,2*t)}},a.Utf16LE={stringify:function(e){for(var t=e.words,o=e.sigBytes,a=[],i=0;i<o;i+=2){var r=n(t[i>>>2]>>>16-i%4*8&65535);a.push(String.fromCharCode(r))}return a.join("")},parse:function(e){for(var t=e.length,a=[],i=0;i<t;i++)a[i>>>1]|=n(e.charCodeAt(i)<<16-i%2*16);return o.create(a,2*t)}}}(),e.enc.Utf16));var e}var Dn,jn={exports:{}};function On(){return Dn?jn.exports:(Dn=1,jn.exports=(e=Rn(),function(){var t=e,o=t.lib.WordArray;function a(e,t,a){for(var n=[],i=0,r=0;r<t;r++)if(r%4){var s=a[e.charCodeAt(r-1)]<<r%4*2|a[e.charCodeAt(r)]>>>6-r%4*2;n[i>>>2]|=s<<24-i%4*8,i++}return o.create(n,i)}t.enc.Base64={stringify:function(e){var t=e.words,o=e.sigBytes,a=this._map;e.clamp();for(var n=[],i=0;i<o;i+=3)for(var r=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<o;s++)n.push(a.charAt(r>>>6*(3-s)&63));var l=a.charAt(64);if(l)for(;n.length%4;)n.push(l);return n.join("")},parse:function(e){var t=e.length,o=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i<o.length;i++)n[o.charCodeAt(i)]=i}var r=o.charAt(64);if(r){var s=e.indexOf(r);-1!==s&&(t=s)}return a(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64));var e}var Jn,qn={exports:{}};function Hn(){return Jn?qn.exports:(Jn=1,qn.exports=(e=Rn(),function(){var t=e,o=t.lib.WordArray;function a(e,t,a){for(var n=[],i=0,r=0;r<t;r++)if(r%4){var s=a[e.charCodeAt(r-1)]<<r%4*2|a[e.charCodeAt(r)]>>>6-r%4*2;n[i>>>2]|=s<<24-i%4*8,i++}return o.create(n,i)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var o=e.words,a=e.sigBytes,n=t?this._safe_map:this._map;e.clamp();for(var i=[],r=0;r<a;r+=3)for(var s=(o[r>>>2]>>>24-r%4*8&255)<<16|(o[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|o[r+2>>>2]>>>24-(r+2)%4*8&255,l=0;l<4&&r+.75*l<a;l++)i.push(n.charAt(s>>>6*(3-l)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var o=e.length,n=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<n.length;r++)i[n.charCodeAt(r)]=r}var s=n.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(o=l)}return a(e,o,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url));var e}var zn,Kn={exports:{}};function Gn(){return zn?Kn.exports:(zn=1,Kn.exports=(e=Rn(),function(t){var o=e,a=o.lib,n=a.WordArray,i=a.Hasher,r=o.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=r.MD5=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var o=0;o<16;o++){var a=t+o,n=e[a];e[a]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var i=this._hash.words,r=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],y=e[t+6],v=e[t+7],A=e[t+8],C=e[t+9],w=e[t+10],E=e[t+11],b=e[t+12],I=e[t+13],B=e[t+14],S=e[t+15],k=i[0],x=i[1],R=i[2],T=i[3];k=c(k,x,R,T,r,7,s[0]),T=c(T,k,x,R,l,12,s[1]),R=c(R,T,k,x,p,17,s[2]),x=c(x,R,T,k,f,22,s[3]),k=c(k,x,R,T,m,7,s[4]),T=c(T,k,x,R,g,12,s[5]),R=c(R,T,k,x,y,17,s[6]),x=c(x,R,T,k,v,22,s[7]),k=c(k,x,R,T,A,7,s[8]),T=c(T,k,x,R,C,12,s[9]),R=c(R,T,k,x,w,17,s[10]),x=c(x,R,T,k,E,22,s[11]),k=c(k,x,R,T,b,7,s[12]),T=c(T,k,x,R,I,12,s[13]),R=c(R,T,k,x,B,17,s[14]),k=d(k,x=c(x,R,T,k,S,22,s[15]),R,T,l,5,s[16]),T=d(T,k,x,R,y,9,s[17]),R=d(R,T,k,x,E,14,s[18]),x=d(x,R,T,k,r,20,s[19]),k=d(k,x,R,T,g,5,s[20]),T=d(T,k,x,R,w,9,s[21]),R=d(R,T,k,x,S,14,s[22]),x=d(x,R,T,k,m,20,s[23]),k=d(k,x,R,T,C,5,s[24]),T=d(T,k,x,R,B,9,s[25]),R=d(R,T,k,x,f,14,s[26]),x=d(x,R,T,k,A,20,s[27]),k=d(k,x,R,T,I,5,s[28]),T=d(T,k,x,R,p,9,s[29]),R=d(R,T,k,x,v,14,s[30]),k=u(k,x=d(x,R,T,k,b,20,s[31]),R,T,g,4,s[32]),T=u(T,k,x,R,A,11,s[33]),R=u(R,T,k,x,E,16,s[34]),x=u(x,R,T,k,B,23,s[35]),k=u(k,x,R,T,l,4,s[36]),T=u(T,k,x,R,m,11,s[37]),R=u(R,T,k,x,v,16,s[38]),x=u(x,R,T,k,w,23,s[39]),k=u(k,x,R,T,I,4,s[40]),T=u(T,k,x,R,r,11,s[41]),R=u(R,T,k,x,f,16,s[42]),x=u(x,R,T,k,y,23,s[43]),k=u(k,x,R,T,C,4,s[44]),T=u(T,k,x,R,b,11,s[45]),R=u(R,T,k,x,S,16,s[46]),k=h(k,x=u(x,R,T,k,p,23,s[47]),R,T,r,6,s[48]),T=h(T,k,x,R,v,10,s[49]),R=h(R,T,k,x,B,15,s[50]),x=h(x,R,T,k,g,21,s[51]),k=h(k,x,R,T,b,6,s[52]),T=h(T,k,x,R,f,10,s[53]),R=h(R,T,k,x,w,15,s[54]),x=h(x,R,T,k,l,21,s[55]),k=h(k,x,R,T,A,6,s[56]),T=h(T,k,x,R,S,10,s[57]),R=h(R,T,k,x,y,15,s[58]),x=h(x,R,T,k,I,21,s[59]),k=h(k,x,R,T,m,6,s[60]),T=h(T,k,x,R,E,10,s[61]),R=h(R,T,k,x,p,15,s[62]),x=h(x,R,T,k,C,21,s[63]),i[0]=i[0]+k|0,i[1]=i[1]+x|0,i[2]=i[2]+R|0,i[3]=i[3]+T|0},_doFinalize:function(){var e=this._data,o=e.words,a=8*this._nDataBytes,n=8*e.sigBytes;o[n>>>5]|=128<<24-n%32;var i=t.floor(a/4294967296),r=a;o[15+(n+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),o[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(o.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var d=l[c];l[c]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,o,a,n,i,r){var s=e+(t&o|~t&a)+n+r;return(s<<i|s>>>32-i)+t}function d(e,t,o,a,n,i,r){var s=e+(t&a|o&~a)+n+r;return(s<<i|s>>>32-i)+t}function u(e,t,o,a,n,i,r){var s=e+(t^o^a)+n+r;return(s<<i|s>>>32-i)+t}function h(e,t,o,a,n,i,r){var s=e+(o^(t|~a))+n+r;return(s<<i|s>>>32-i)+t}o.MD5=i._createHelper(l),o.HmacMD5=i._createHmacHelper(l)}(Math),e.MD5));var e}var Wn,Yn={exports:{}};function Zn(){return Wn?Yn.exports:(Wn=1,Yn.exports=(s=Rn(),t=(e=s).lib,o=t.WordArray,a=t.Hasher,n=e.algo,i=[],r=n.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var o=this._hash.words,a=o[0],n=o[1],r=o[2],s=o[3],l=o[4],c=0;c<80;c++){if(c<16)i[c]=0|e[t+c];else{var d=i[c-3]^i[c-8]^i[c-14]^i[c-16];i[c]=d<<1|d>>>31}var u=(a<<5|a>>>27)+l+i[c];u+=c<20?1518500249+(n&r|~n&s):c<40?1859775393+(n^r^s):c<60?(n&r|n&s|r&s)-1894007588:(n^r^s)-899497514,l=s,s=r,r=n<<30|n>>>2,n=a,a=u}o[0]=o[0]+a|0,o[1]=o[1]+n|0,o[2]=o[2]+r|0,o[3]=o[3]+s|0,o[4]=o[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,a=8*e.sigBytes;return t[a>>>5]|=128<<24-a%32,t[14+(a+64>>>9<<4)]=Math.floor(o/4294967296),t[15+(a+64>>>9<<4)]=o,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=a._createHelper(r),e.HmacSHA1=a._createHmacHelper(r),s.SHA1));var e,t,o,a,n,i,r,s}var _n,Xn={exports:{}};function $n(){return _n?Xn.exports:(_n=1,Xn.exports=(e=Rn(),function(t){var o=e,a=o.lib,n=a.WordArray,i=a.Hasher,r=o.algo,s=[],l=[];!function(){function e(e){for(var o=t.sqrt(e),a=2;a<=o;a++)if(!(e%a))return!1;return!0}function o(e){return 4294967296*(e-(0|e))|0}for(var a=2,n=0;n<64;)e(a)&&(n<8&&(s[n]=o(t.pow(a,.5))),l[n]=o(t.pow(a,1/3)),n++),a++}();var c=[],d=r.SHA256=i.extend({_doReset:function(){this._hash=new n.init(s.slice(0))},_doProcessBlock:function(e,t){for(var o=this._hash.words,a=o[0],n=o[1],i=o[2],r=o[3],s=o[4],d=o[5],u=o[6],h=o[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+y+c[p-16]}var v=a&n^a&i^n&i,A=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),C=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&d^~s&u)+l[p]+c[p];h=u,u=d,d=s,s=r+C|0,r=i,i=n,n=a,a=C+(A+v)|0}o[0]=o[0]+a|0,o[1]=o[1]+n|0,o[2]=o[2]+i|0,o[3]=o[3]+r|0,o[4]=o[4]+s|0,o[5]=o[5]+d|0,o[6]=o[6]+u|0,o[7]=o[7]+h|0},_doFinalize:function(){var e=this._data,o=e.words,a=8*this._nDataBytes,n=8*e.sigBytes;return o[n>>>5]|=128<<24-n%32,o[14+(n+64>>>9<<4)]=t.floor(a/4294967296),o[15+(n+64>>>9<<4)]=a,e.sigBytes=4*o.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});o.SHA256=i._createHelper(d),o.HmacSHA256=i._createHmacHelper(d)}(Math),e.SHA256));var e}var ei,ti={exports:{}};var oi,ai={exports:{}};function ni(){return oi||(oi=1,ai.exports=(e=Rn(),Pn(),function(){var t=e,o=t.lib.Hasher,a=t.x64,n=a.Word,i=a.WordArray,r=t.algo;function s(){return n.create.apply(n,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var d=r.SHA512=o.extend({_doReset:function(){this._hash=new i.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var o=this._hash.words,a=o[0],n=o[1],i=o[2],r=o[3],s=o[4],d=o[5],u=o[6],h=o[7],p=a.high,f=a.low,m=n.high,g=n.low,y=i.high,v=i.low,A=r.high,C=r.low,w=s.high,E=s.low,b=d.high,I=d.low,B=u.high,S=u.low,k=h.high,x=h.low,R=p,T=f,L=m,P=g,N=y,F=v,V=A,U=C,Q=w,M=E,D=b,j=I,O=B,J=S,q=k,H=x,z=0;z<80;z++){var K,G,W=c[z];if(z<16)G=W.high=0|e[t+2*z],K=W.low=0|e[t+2*z+1];else{var Y=c[z-15],Z=Y.high,_=Y.low,X=(Z>>>1|_<<31)^(Z>>>8|_<<24)^Z>>>7,$=(_>>>1|Z<<31)^(_>>>8|Z<<24)^(_>>>7|Z<<25),ee=c[z-2],te=ee.high,oe=ee.low,ae=(te>>>19|oe<<13)^(te<<3|oe>>>29)^te>>>6,ne=(oe>>>19|te<<13)^(oe<<3|te>>>29)^(oe>>>6|te<<26),ie=c[z-7],re=ie.high,se=ie.low,le=c[z-16],ce=le.high,de=le.low;G=(G=(G=X+re+((K=$+se)>>>0<$>>>0?1:0))+ae+((K+=ne)>>>0<ne>>>0?1:0))+ce+((K+=de)>>>0<de>>>0?1:0),W.high=G,W.low=K}var ue,he=Q&D^~Q&O,pe=M&j^~M&J,fe=R&L^R&N^L&N,me=T&P^T&F^P&F,ge=(R>>>28|T<<4)^(R<<30|T>>>2)^(R<<25|T>>>7),ye=(T>>>28|R<<4)^(T<<30|R>>>2)^(T<<25|R>>>7),ve=(Q>>>14|M<<18)^(Q>>>18|M<<14)^(Q<<23|M>>>9),Ae=(M>>>14|Q<<18)^(M>>>18|Q<<14)^(M<<23|Q>>>9),Ce=l[z],we=Ce.high,Ee=Ce.low,be=q+ve+((ue=H+Ae)>>>0<H>>>0?1:0),Ie=ye+me;q=O,H=J,O=D,J=j,D=Q,j=M,Q=V+(be=(be=(be=be+he+((ue+=pe)>>>0<pe>>>0?1:0))+we+((ue+=Ee)>>>0<Ee>>>0?1:0))+G+((ue+=K)>>>0<K>>>0?1:0))+((M=U+ue|0)>>>0<U>>>0?1:0)|0,V=N,U=F,N=L,F=P,L=R,P=T,R=be+(ge+fe+(Ie>>>0<ye>>>0?1:0))+((T=ue+Ie|0)>>>0<ue>>>0?1:0)|0}f=a.low=f+T,a.high=p+R+(f>>>0<T>>>0?1:0),g=n.low=g+P,n.high=m+L+(g>>>0<P>>>0?1:0),v=i.low=v+F,i.high=y+N+(v>>>0<F>>>0?1:0),C=r.low=C+U,r.high=A+V+(C>>>0<U>>>0?1:0),E=s.low=E+M,s.high=w+Q+(E>>>0<M>>>0?1:0),I=d.low=I+j,d.high=b+D+(I>>>0<j>>>0?1:0),S=u.low=S+J,u.high=B+O+(S>>>0<J>>>0?1:0),x=h.low=x+H,h.high=k+q+(x>>>0<H>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,a=8*e.sigBytes;return t[a>>>5]|=128<<24-a%32,t[30+(a+128>>>10<<5)]=Math.floor(o/4294967296),t[31+(a+128>>>10<<5)]=o,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=o._createHelper(d),t.HmacSHA512=o._createHmacHelper(d)}(),e.SHA512)),ai.exports;var e}var ii,ri={exports:{}};var si,li={exports:{}};function ci(){return si?li.exports:(si=1,li.exports=(e=Rn(),Pn(),function(t){var o=e,a=o.lib,n=a.WordArray,i=a.Hasher,r=o.x64.Word,s=o.algo,l=[],c=[],d=[];!function(){for(var e=1,t=0,o=0;o<24;o++){l[e+5*t]=(o+1)*(o+2)/2%64;var a=(2*e+3*t)%5;e=t%5,t=a}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var n=1,i=0;i<24;i++){for(var s=0,u=0,h=0;h<7;h++){if(1&n){var p=(1<<h)-1;p<32?u^=1<<p:s^=1<<p-32}128&n?n=n<<1^113:n<<=1}d[i]=r.create(s,u)}}();var u=[];!function(){for(var e=0;e<25;e++)u[e]=r.create()}();var h=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new r.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var o=this._state,a=this.blockSize/2,n=0;n<a;n++){var i=e[t+2*n],r=e[t+2*n+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(x=o[n]).high^=r,x.low^=i}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var p=0,f=0,m=0;m<5;m++)p^=(x=o[h+5*m]).high,f^=x.low;var g=u[h];g.high=p,g.low=f}for(h=0;h<5;h++){var y=u[(h+4)%5],v=u[(h+1)%5],A=v.high,C=v.low;for(p=y.high^(A<<1|C>>>31),f=y.low^(C<<1|A>>>31),m=0;m<5;m++)(x=o[h+5*m]).high^=p,x.low^=f}for(var w=1;w<25;w++){var E=(x=o[w]).high,b=x.low,I=l[w];I<32?(p=E<<I|b>>>32-I,f=b<<I|E>>>32-I):(p=b<<I-32|E>>>64-I,f=E<<I-32|b>>>64-I);var B=u[c[w]];B.high=p,B.low=f}var S=u[0],k=o[0];for(S.high=k.high,S.low=k.low,h=0;h<5;h++)for(m=0;m<5;m++){var x=o[w=h+5*m],R=u[w],T=u[(h+1)%5+5*m],L=u[(h+2)%5+5*m];x.high=R.high^~T.high&L.high,x.low=R.low^~T.low&L.low}x=o[0];var P=d[s];x.high^=P.high,x.low^=P.low}},_doFinalize:function(){var e=this._data,o=e.words;this._nDataBytes;var a=8*e.sigBytes,i=32*this.blockSize;o[a>>>5]|=1<<24-a%32,o[(t.ceil((a+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*o.length,this._process();for(var r=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],d=0;d<l;d++){var u=r[d],h=u.high,p=u.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new n.init(c,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),o=0;o<25;o++)t[o]=t[o].clone();return e}});o.SHA3=i._createHelper(h),o.HmacSHA3=i._createHmacHelper(h)}(Math),e.SHA3));var e}var di,ui={exports:{}};var hi,pi={exports:{}};function fi(){return hi?pi.exports:(hi=1,pi.exports=(e=Rn(),o=(t=e).lib.Base,a=t.enc.Utf8,void(t.algo.HMAC=o.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var o=e.blockSize,n=4*o;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),r=this._iKey=t.clone(),s=i.words,l=r.words,c=0;c<o;c++)s[c]^=1549556828,l[c]^=909522486;i.sigBytes=r.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,o=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(o))}}))));var e,t,o,a}var mi,gi={exports:{}};var yi,vi={exports:{}};function Ai(){return yi?vi.exports:(yi=1,vi.exports=(s=Rn(),Zn(),fi(),t=(e=s).lib,o=t.Base,a=t.WordArray,n=e.algo,i=n.MD5,r=n.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var o,n=this.cfg,i=n.hasher.create(),r=a.create(),s=r.words,l=n.keySize,c=n.iterations;s.length<l;){o&&i.update(o),o=i.update(e).finalize(t),i.reset();for(var d=1;d<c;d++)o=i.finalize(o),i.reset();r.concat(o)}return r.sigBytes=4*l,r}}),e.EvpKDF=function(e,t,o){return r.create(o).compute(e,t)},s.EvpKDF));var e,t,o,a,n,i,r,s}var Ci,wi={exports:{}};function Ei(){return Ci?wi.exports:(Ci=1,wi.exports=(e=Rn(),Ai(),void(e.lib.Cipher||function(t){var o=e,a=o.lib,n=a.Base,i=a.WordArray,r=a.BufferedBlockAlgorithm,s=o.enc;s.Utf8;var l=s.Base64,c=o.algo.EvpKDF,d=a.Cipher=r.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,o){this.cfg=this.cfg.extend(o),this._xformMode=e,this._key=t,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:/* @__PURE__ */function(){function e(e){return"string"==typeof e?A:y}return function(t){return{encrypt:function(o,a,n){return e(a).encrypt(t,o,a,n)},decrypt:function(o,a,n){return e(a).decrypt(t,o,a,n)}}}}()});a.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=o.mode={},h=a.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=u.CBC=function(){var e=h.extend();function o(e,o,a){var n,i=this._iv;i?(n=i,this._iv=t):n=this._prevBlock;for(var r=0;r<a;r++)e[o+r]^=n[r]}return e.Encryptor=e.extend({processBlock:function(e,t){var a=this._cipher,n=a.blockSize;o.call(this,e,t,n),a.encryptBlock(e,t),this._prevBlock=e.slice(t,t+n)}}),e.Decryptor=e.extend({processBlock:function(e,t){var a=this._cipher,n=a.blockSize,i=e.slice(t,t+n);a.decryptBlock(e,t),o.call(this,e,t,n),this._prevBlock=i}}),e}(),f=(o.pad={}).Pkcs7={pad:function(e,t){for(var o=4*t,a=o-e.sigBytes%o,n=a<<24|a<<16|a<<8|a,r=[],s=0;s<a;s+=4)r.push(n);var l=i.create(r,a);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};a.BlockCipher=d.extend({cfg:d.cfg.extend({mode:p,padding:f}),reset:function(){var e;d.reset.call(this);var t=this.cfg,o=t.iv,a=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=a.createEncryptor:(e=a.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,o&&o.words):(this._mode=e.call(a,this,o&&o.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=a.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(o.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,o=e.salt;return(o?i.create([1398893684,1701076831]).concat(o).concat(t):t).toString(l)},parse:function(e){var t,o=l.parse(e),a=o.words;return 1398893684==a[0]&&1701076831==a[1]&&(t=i.create(a.slice(2,4)),a.splice(0,4),o.sigBytes-=16),m.create({ciphertext:o,salt:t})}},y=a.SerializableCipher=n.extend({cfg:n.extend({format:g}),encrypt:function(e,t,o,a){a=this.cfg.extend(a);var n=e.createEncryptor(o,a),i=n.finalize(t),r=n.cfg;return m.create({ciphertext:i,key:o,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:a.format})},decrypt:function(e,t,o,a){return a=this.cfg.extend(a),t=this._parse(t,a.format),e.createDecryptor(o,a).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(o.kdf={}).OpenSSL={execute:function(e,t,o,a,n){if(a||(a=i.random(8)),n)r=c.create({keySize:t+o,hasher:n}).compute(e,a);else var r=c.create({keySize:t+o}).compute(e,a);var s=i.create(r.words.slice(t),4*o);return r.sigBytes=4*t,m.create({key:r,iv:s,salt:a})}},A=a.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:v}),encrypt:function(e,t,o,a){var n=(a=this.cfg.extend(a)).kdf.execute(o,e.keySize,e.ivSize,a.salt,a.hasher);a.iv=n.iv;var i=y.encrypt.call(this,e,t,n.key,a);return i.mixIn(n),i},decrypt:function(e,t,o,a){a=this.cfg.extend(a),t=this._parse(t,a.format);var n=a.kdf.execute(o,e.keySize,e.ivSize,t.salt,a.hasher);return a.iv=n.iv,y.decrypt.call(this,e,t,n.key,a)}})}())));var e}var bi,Ii={exports:{}};var Bi,Si={exports:{}};var ki,xi={exports:{}};function Ri(){return ki?xi.exports:(ki=1,xi.exports=(e=Rn(),Ei(),e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function o(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,o=e>>8&255,a=255&e;255===t?(t=0,255===o?(o=0,255===a?a=0:++a):++o):++t,e=0,e+=t<<16,e+=o<<8,e+=a}return e}function a(e){return 0===(e[0]=o(e[0]))&&(e[1]=o(e[1])),e}var n=t.Encryptor=t.extend({processBlock:function(e,t){var o=this._cipher,n=o.blockSize,i=this._iv,r=this._counter;i&&(r=this._counter=i.slice(0),this._iv=void 0),a(r);var s=r.slice(0);o.encryptBlock(s,0);for(var l=0;l<n;l++)e[t+l]^=s[l]}});return t.Decryptor=n,t}(),e.mode.CTRGladman));var e}var Ti,Li={exports:{}};var Pi,Ni={exports:{}};var Fi,Vi={exports:{}};var Ui,Qi={exports:{}};var Mi,Di={exports:{}};var ji,Oi={exports:{}};var Ji,qi={exports:{}};var Hi,zi={exports:{}};var Ki,Gi={exports:{}};var Wi,Yi={exports:{}};function Zi(){return Wi?Yi.exports:(Wi=1,Yi.exports=(e=Rn(),On(),Gn(),Ai(),Ei(),function(){var t=e,o=t.lib,a=o.WordArray,n=o.BlockCipher,i=t.algo,r=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=i.DES=n.extend({_doReset:function(){for(var e=this._key.words,t=[],o=0;o<56;o++){var a=r[o]-1;t[o]=e[a>>>5]>>>31-a%32&1}for(var n=this._subKeys=[],i=0;i<16;i++){var c=n[i]=[],d=l[i];for(o=0;o<24;o++)c[o/6|0]|=t[(s[o]-1+d)%28]<<31-o%6,c[4+(o/6|0)]|=t[28+(s[o+24]-1+d)%28]<<31-o%6;for(c[0]=c[0]<<1|c[0]>>>31,o=1;o<7;o++)c[o]=c[o]>>>4*(o-1)+3;c[7]=c[7]<<5|c[7]>>>27}var u=this._invSubKeys=[];for(o=0;o<16;o++)u[o]=n[15-o]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,o){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var a=0;a<16;a++){for(var n=o[a],i=this._lBlock,r=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((r^n[l])&d[l])>>>0];this._lBlock=r,this._rBlock=i^s}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var o=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=o,this._lBlock^=o<<e}function p(e,t){var o=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=o,this._rBlock^=o<<e}t.DES=n._createHelper(u);var f=i.TripleDES=n.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),o=e.length<4?e.slice(0,2):e.slice(2,4),n=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(a.create(t)),this._des2=u.createEncryptor(a.create(o)),this._des3=u.createEncryptor(a.create(n))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=n._createHelper(f)}(),e.TripleDES));var e}var _i,Xi={exports:{}};var $i,er={exports:{}};var tr,or={exports:{}};var ar,nr={exports:{}};function ir(){return ar?nr.exports:(ar=1,nr.exports=(e=Rn(),On(),Gn(),Ai(),Ei(),function(){var t=e,o=t.lib.BlockCipher,a=t.algo;const n=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],r=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(e,t){let o=t>>24&255,a=t>>16&255,n=t>>8&255,i=255&t,r=e.sbox[0][o]+e.sbox[1][a];return r^=e.sbox[2][n],r+=e.sbox[3][i],r}function c(e,t,o){let a,i=t,r=o;for(let s=0;s<n;++s)i^=e.pbox[s],r=l(e,i)^r,a=i,i=r,r=a;return a=i,i=r,r=a,r^=e.pbox[n],i^=e.pbox[n+1],{left:i,right:r}}function d(e,t,o){let a,i=t,r=o;for(let s=n+1;s>1;--s)i^=e.pbox[s],r=l(e,i)^r,a=i,i=r,r=a;return a=i,i=r,r=a,r^=e.pbox[1],i^=e.pbox[0],{left:i,right:r}}function u(e,t,o){for(let n=0;n<4;n++){e.sbox[n]=[];for(let t=0;t<256;t++)e.sbox[n][t]=r[n][t]}let a=0;for(let r=0;r<n+2;r++)e.pbox[r]=i[r]^t[a],a++,a>=o&&(a=0);let s=0,l=0,d=0;for(let i=0;i<n+2;i+=2)d=c(e,s,l),s=d.left,l=d.right,e.pbox[i]=s,e.pbox[i+1]=l;for(let n=0;n<4;n++)for(let t=0;t<256;t+=2)d=c(e,s,l),s=d.left,l=d.right,e.sbox[n][t]=s,e.sbox[n][t+1]=l;return!0}var h=a.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,o=e.sigBytes/4;u(s,t,o)}},encryptBlock:function(e,t){var o=c(s,e[t],e[t+1]);e[t]=o.left,e[t+1]=o.right},decryptBlock:function(e,t){var o=d(s,e[t],e[t+1]);e[t]=o.left,e[t+1]=o.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=o._createHelper(h)}(),e.Blowfish));var e}var rr;var sr,lr,cr,dr,ur,hr,pr=rr?Bn.exports:(rr=1,Bn.exports=function(e){return e}(Rn(),Pn(),Vn(),Mn(),On(),Hn(),Gn(),Zn(),$n(),ei||(ei=1,ti.exports=(hr=Rn(),$n(),lr=(sr=hr).lib.WordArray,cr=sr.algo,dr=cr.SHA256,ur=cr.SHA224=dr.extend({_doReset:function(){this._hash=new lr.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=dr._doFinalize.call(this);return e.sigBytes-=4,e}}),sr.SHA224=dr._createHelper(ur),sr.HmacSHA224=dr._createHmacHelper(ur),hr.SHA224)),ni(),function(){return ii?ri.exports:(ii=1,ri.exports=(s=Rn(),Pn(),ni(),t=(e=s).x64,o=t.Word,a=t.WordArray,n=e.algo,i=n.SHA512,r=n.SHA384=i.extend({_doReset:function(){this._hash=new a.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=i._createHelper(r),e.HmacSHA384=i._createHmacHelper(r),s.SHA384));var e,t,o,a,n,i,r,s}(),ci(),function(){return di?ui.exports:(di=1,ui.exports=(e=Rn(),function(){var t=e,o=t.lib,a=o.WordArray,n=o.Hasher,i=t.algo,r=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=a.create([0,1518500249,1859775393,2400959708,2840853838]),u=a.create([1352829926,1548603684,1836072691,2053994217,0]),h=i.RIPEMD160=n.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var o=0;o<16;o++){var a=t+o,n=e[a];e[a]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var i,h,A,C,w,E,b,I,B,S,k,x=this._hash.words,R=d.words,T=u.words,L=r.words,P=s.words,N=l.words,F=c.words;for(E=i=x[0],b=h=x[1],I=A=x[2],B=C=x[3],S=w=x[4],o=0;o<80;o+=1)k=i+e[t+L[o]]|0,k+=o<16?p(h,A,C)+R[0]:o<32?f(h,A,C)+R[1]:o<48?m(h,A,C)+R[2]:o<64?g(h,A,C)+R[3]:y(h,A,C)+R[4],k=(k=v(k|=0,N[o]))+w|0,i=w,w=C,C=v(A,10),A=h,h=k,k=E+e[t+P[o]]|0,k+=o<16?y(b,I,B)+T[0]:o<32?g(b,I,B)+T[1]:o<48?m(b,I,B)+T[2]:o<64?f(b,I,B)+T[3]:p(b,I,B)+T[4],k=(k=v(k|=0,F[o]))+S|0,E=S,S=B,B=v(I,10),I=b,b=k;k=x[1]+A+B|0,x[1]=x[2]+C+S|0,x[2]=x[3]+w+E|0,x[3]=x[4]+i+b|0,x[4]=x[0]+h+I|0,x[0]=k},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,a=8*e.sigBytes;t[a>>>5]|=128<<24-a%32,t[14+(a+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(t.length+1),this._process();for(var n=this._hash,i=n.words,r=0;r<5;r++){var s=i[r];i[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return n},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,o){return e^t^o}function f(e,t,o){return e&t|~e&o}function m(e,t,o){return(e|~t)^o}function g(e,t,o){return e&o|t&~o}function y(e,t,o){return e^(t|~o)}function v(e,t){return e<<t|e>>>32-t}t.RIPEMD160=n._createHelper(h),t.HmacRIPEMD160=n._createHmacHelper(h)}(),e.RIPEMD160));var e}(),fi(),function(){return mi?gi.exports:(mi=1,gi.exports=(l=Rn(),$n(),fi(),t=(e=l).lib,o=t.Base,a=t.WordArray,n=e.algo,i=n.SHA256,r=n.HMAC,s=n.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var o=this.cfg,n=r.create(o.hasher,e),i=a.create(),s=a.create([1]),l=i.words,c=s.words,d=o.keySize,u=o.iterations;l.length<d;){var h=n.update(t).finalize(s);n.reset();for(var p=h.words,f=p.length,m=h,g=1;g<u;g++){m=n.finalize(m),n.reset();for(var y=m.words,v=0;v<f;v++)p[v]^=y[v]}i.concat(h),c[0]++}return i.sigBytes=4*d,i}}),e.PBKDF2=function(e,t,o){return s.create(o).compute(e,t)},l.PBKDF2));var e,t,o,a,n,i,r,s,l}(),Ai(),Ei(),function(){return bi?Ii.exports:(bi=1,Ii.exports=(e=Rn(),Ei(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function o(e,t,o,a){var n,i=this._iv;i?(n=i.slice(0),this._iv=void 0):n=this._prevBlock,a.encryptBlock(n,0);for(var r=0;r<o;r++)e[t+r]^=n[r]}return t.Encryptor=t.extend({processBlock:function(e,t){var a=this._cipher,n=a.blockSize;o.call(this,e,t,n,a),this._prevBlock=e.slice(t,t+n)}}),t.Decryptor=t.extend({processBlock:function(e,t){var a=this._cipher,n=a.blockSize,i=e.slice(t,t+n);o.call(this,e,t,n,a),this._prevBlock=i}}),t}(),e.mode.CFB));var e}(),function(){return Bi?Si.exports:(Bi=1,Si.exports=(o=Rn(),Ei(),o.mode.CTR=(e=o.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var o=this._cipher,a=o.blockSize,n=this._iv,i=this._counter;n&&(i=this._counter=n.slice(0),this._iv=void 0);var r=i.slice(0);o.encryptBlock(r,0),i[a-1]=i[a-1]+1|0;for(var s=0;s<a;s++)e[t+s]^=r[s]}}),e.Decryptor=t,e),o.mode.CTR));var e,t,o}(),Ri(),function(){return Ti?Li.exports:(Ti=1,Li.exports=(o=Rn(),Ei(),o.mode.OFB=(e=o.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var o=this._cipher,a=o.blockSize,n=this._iv,i=this._keystream;n&&(i=this._keystream=n.slice(0),this._iv=void 0),o.encryptBlock(i,0);for(var r=0;r<a;r++)e[t+r]^=i[r]}}),e.Decryptor=t,e),o.mode.OFB));var e,t,o}(),function(){return Pi?Ni.exports:(Pi=1,Ni.exports=(t=Rn(),Ei(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Fi?Vi.exports:(Fi=1,Vi.exports=(e=Rn(),Ei(),e.pad.AnsiX923={pad:function(e,t){var o=e.sigBytes,a=4*t,n=a-o%a,i=o+n-1;e.clamp(),e.words[i>>>2]|=n<<24-i%4*8,e.sigBytes+=n},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return Ui?Qi.exports:(Ui=1,Qi.exports=(e=Rn(),Ei(),e.pad.Iso10126={pad:function(t,o){var a=4*o,n=a-t.sigBytes%a;t.concat(e.lib.WordArray.random(n-1)).concat(e.lib.WordArray.create([n<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return Mi?Di.exports:(Mi=1,Di.exports=(e=Rn(),Ei(),e.pad.Iso97971={pad:function(t,o){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,o)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return ji?Oi.exports:(ji=1,Oi.exports=(e=Rn(),Ei(),e.pad.ZeroPadding={pad:function(e,t){var o=4*t;e.clamp(),e.sigBytes+=o-(e.sigBytes%o||o)},unpad:function(e){var t=e.words,o=e.sigBytes-1;for(o=e.sigBytes-1;o>=0;o--)if(t[o>>>2]>>>24-o%4*8&255){e.sigBytes=o+1;break}}},e.pad.ZeroPadding));var e}(),function(){return Ji?qi.exports:(Ji=1,qi.exports=(e=Rn(),Ei(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return Hi?zi.exports:(Hi=1,zi.exports=(a=Rn(),Ei(),t=(e=a).lib.CipherParams,o=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var a=o.parse(e);return t.create({ciphertext:a})}},a.format.Hex));var e,t,o,a}(),function(){return Ki?Gi.exports:(Ki=1,Gi.exports=(e=Rn(),On(),Gn(),Ai(),Ei(),function(){var t=e,o=t.lib.BlockCipher,a=t.algo,n=[],i=[],r=[],s=[],l=[],c=[],d=[],u=[],h=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var o=0,a=0;for(t=0;t<256;t++){var f=a^a<<1^a<<2^a<<3^a<<4;f=f>>>8^255&f^99,n[o]=f,i[f]=o;var m=e[o],g=e[m],y=e[g],v=257*e[f]^16843008*f;r[o]=v<<24|v>>>8,s[o]=v<<16|v>>>16,l[o]=v<<8|v>>>24,c[o]=v,v=16843009*y^65537*g^257*m^16843008*o,d[f]=v<<24|v>>>8,u[f]=v<<16|v>>>16,h[f]=v<<8|v>>>24,p[f]=v,o?(o=m^e[e[e[y^m]]],a^=e[e[a]]):o=a=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=a.AES=o.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,o=e.sigBytes/4,a=4*((this._nRounds=o+6)+1),i=this._keySchedule=[],r=0;r<a;r++)r<o?i[r]=t[r]:(c=i[r-1],r%o?o>6&&r%o==4&&(c=n[c>>>24]<<24|n[c>>>16&255]<<16|n[c>>>8&255]<<8|n[255&c]):(c=n[(c=c<<8|c>>>24)>>>24]<<24|n[c>>>16&255]<<16|n[c>>>8&255]<<8|n[255&c],c^=f[r/o|0]<<24),i[r]=i[r-o]^c);for(var s=this._invKeySchedule=[],l=0;l<a;l++){if(r=a-l,l%4)var c=i[r];else c=i[r-4];s[l]=l<4||r<=4?c:d[n[c>>>24]]^u[n[c>>>16&255]]^h[n[c>>>8&255]]^p[n[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,r,s,l,c,n)},decryptBlock:function(e,t){var o=e[t+1];e[t+1]=e[t+3],e[t+3]=o,this._doCryptBlock(e,t,this._invKeySchedule,d,u,h,p,i),o=e[t+1],e[t+1]=e[t+3],e[t+3]=o},_doCryptBlock:function(e,t,o,a,n,i,r,s){for(var l=this._nRounds,c=e[t]^o[0],d=e[t+1]^o[1],u=e[t+2]^o[2],h=e[t+3]^o[3],p=4,f=1;f<l;f++){var m=a[c>>>24]^n[d>>>16&255]^i[u>>>8&255]^r[255&h]^o[p++],g=a[d>>>24]^n[u>>>16&255]^i[h>>>8&255]^r[255&c]^o[p++],y=a[u>>>24]^n[h>>>16&255]^i[c>>>8&255]^r[255&d]^o[p++],v=a[h>>>24]^n[c>>>16&255]^i[d>>>8&255]^r[255&u]^o[p++];c=m,d=g,u=y,h=v}m=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^o[p++],g=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^o[p++],y=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&d])^o[p++],v=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^o[p++],e[t]=m,e[t+1]=g,e[t+2]=y,e[t+3]=v},keySize:8});t.AES=o._createHelper(m)}(),e.AES));var e}(),Zi(),function(){return _i?Xi.exports:(_i=1,Xi.exports=(e=Rn(),On(),Gn(),Ai(),Ei(),function(){var t=e,o=t.lib.StreamCipher,a=t.algo,n=a.RC4=o.extend({_doReset:function(){for(var e=this._key,t=e.words,o=e.sigBytes,a=this._S=[],n=0;n<256;n++)a[n]=n;n=0;for(var i=0;n<256;n++){var r=n%o,s=t[r>>>2]>>>24-r%4*8&255;i=(i+a[n]+s)%256;var l=a[n];a[n]=a[i],a[i]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,o=this._j,a=0,n=0;n<4;n++){o=(o+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[o],e[o]=i,a|=e[(e[t]+e[o])%256]<<24-8*n}return this._i=t,this._j=o,a}t.RC4=o._createHelper(n);var r=a.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=o._createHelper(r)}(),e.RC4));var e}(),function(){return $i?er.exports:($i=1,er.exports=(e=Rn(),On(),Gn(),Ai(),Ei(),function(){var t=e,o=t.lib.StreamCipher,a=t.algo,n=[],i=[],r=[],s=a.Rabbit=o.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,o=0;o<4;o++)e[o]=16711935&(e[o]<<8|e[o]>>>24)|4278255360&(e[o]<<24|e[o]>>>8);var a=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,o=0;o<4;o++)l.call(this);for(o=0;o<8;o++)n[o]^=a[o+4&7];if(t){var i=t.words,r=i[0],s=i[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),d=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=c>>>16|4294901760&d,h=d<<16|65535&c;for(n[0]^=c,n[1]^=u,n[2]^=d,n[3]^=h,n[4]^=c,n[5]^=u,n[6]^=d,n[7]^=h,o=0;o<4;o++)l.call(this)}},_doProcessBlock:function(e,t){var o=this._X;l.call(this),n[0]=o[0]^o[5]>>>16^o[3]<<16,n[1]=o[2]^o[7]>>>16^o[5]<<16,n[2]=o[4]^o[1]>>>16^o[7]<<16,n[3]=o[6]^o[3]>>>16^o[1]<<16;for(var a=0;a<4;a++)n[a]=16711935&(n[a]<<8|n[a]>>>24)|4278255360&(n[a]<<24|n[a]>>>8),e[t+a]^=n[a]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,o=0;o<8;o++)i[o]=t[o];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,o=0;o<8;o++){var a=e[o]+t[o],n=65535&a,s=a>>>16,l=((n*n>>>17)+n*s>>>15)+s*s,c=((4294901760&a)*a|0)+((65535&a)*a|0);r[o]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}t.Rabbit=o._createHelper(s)}(),e.Rabbit));var e}(),function(){return tr?or.exports:(tr=1,or.exports=(e=Rn(),On(),Gn(),Ai(),Ei(),function(){var t=e,o=t.lib.StreamCipher,a=t.algo,n=[],i=[],r=[],s=a.RabbitLegacy=o.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,o=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)a[n]^=o[n+4&7];if(t){var i=t.words,r=i[0],s=i[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),d=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=c>>>16|4294901760&d,h=d<<16|65535&c;for(a[0]^=c,a[1]^=u,a[2]^=d,a[3]^=h,a[4]^=c,a[5]^=u,a[6]^=d,a[7]^=h,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var o=this._X;l.call(this),n[0]=o[0]^o[5]>>>16^o[3]<<16,n[1]=o[2]^o[7]>>>16^o[5]<<16,n[2]=o[4]^o[1]>>>16^o[7]<<16,n[3]=o[6]^o[3]>>>16^o[1]<<16;for(var a=0;a<4;a++)n[a]=16711935&(n[a]<<8|n[a]>>>24)|4278255360&(n[a]<<24|n[a]>>>8),e[t+a]^=n[a]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,o=0;o<8;o++)i[o]=t[o];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,o=0;o<8;o++){var a=e[o]+t[o],n=65535&a,s=a>>>16,l=((n*n>>>17)+n*s>>>15)+s*s,c=((4294901760&a)*a|0)+((65535&a)*a|0);r[o]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}t.RabbitLegacy=o._createHelper(s)}(),e.RabbitLegacy));var e}(),ir()));const fr=/* @__PURE__ */bn(pr);const mr={name:"JcVerifySlide",props:{visible:{type:Boolean,default:!1},captchaType:{type:String,default:"blockPuzzle"},mode:{type:String,default:"pop"},vSpace:{type:Number,default:30},explain:{type:String,default:""},lang:{type:String,default:""},imgSize:{type:Object,default:()=>({width:"310px",height:"155px"})},barSize:{type:Object,default:()=>({width:"310px",height:"40px"})},defaultImg:{type:String,default:""}},data:()=>({secretKey:"",passFlag:!1,backImgBase:"",blockBackImgBase:"",backToken:"",startMoveTime:0,endMoveTime:0,startLeft:0,tipWords:"",finishText:"",setSize:{imgHeight:"155px",imgWidth:"340px"},moveBlockLeft:"0px",leftBarWidth:"40px",moveBlockBackgroundColor:"#fff",leftBarBorderColor:"#e4e7eb",iconColor:"#4b4b4b",iconClass:"icon-right",status:!1,isEnd:!1,showRefresh:!0,transitionLeft:"",transitionWidth:"",currentBarHeight:40,loading:!0,isNeedShow:!1}),computed:{isEn(){if(this.lang)return"en"===this.lang||"en-US"===this.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1},showBox(){return"pop"!==this.mode||this.visible&&this.isNeedShow},barExplain(){return this.isEnd?"":this.isEn?"Swipe right to complete the picture puzzle":this.explain||"向右滑动完成验证"},subBlockStyle(){const e=-(parseInt(this.setSize.imgHeight)+this.vSpace+1);return{width:Math.floor(47*parseInt(this.setSize.imgWidth)/340)+"px",height:this.setSize.imgHeight,top:e+"px",backgroundSize:this.setSize.imgWidth+" "+this.setSize.imgHeight}}},watch:{visible(e){e?(this.isNeedShow=!1,this.$nextTick(()=>{this.handleResize(),this.refresh()})):this.isNeedShow=!1}},mounted(){this.initUuid(),this.handleResize(),window.addEventListener("resize",this.handleResize),window.addEventListener("touchmove",this.move,{passive:!1}),window.addEventListener("mousemove",this.move),window.addEventListener("touchend",this.end),window.addEventListener("mouseup",this.end)},beforeUnmount(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("touchmove",this.move,{passive:!1}),window.removeEventListener("mousemove",this.move),window.removeEventListener("touchend",this.end),window.removeEventListener("mouseup",this.end)},methods:{handleImageLoaded(){this.loading=!1},initUuid(){localStorage.getItem("slider")||localStorage.setItem("slider","slider-"+((e=21)=>{let t="",o=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&o[e]];return t})())},aesEncrypt(e,t="XwKsGlMcdPMEhR1B"){const o=fr.enc.Utf8.parse(t),a=fr.enc.Utf8.parse(e);return fr.AES.encrypt(a,o,{mode:fr.mode.ECB,padding:fr.pad.Pkcs7}).toString()},handleResize(){const e=window.innerWidth;let t=340;e<400?(t=e-60,this.currentBarHeight=44):(t=340,this.currentBarHeight=40),this.setSize.imgWidth=t+"px",this.setSize.imgHeight=t/2+"px",this.leftBarWidth=this.currentBarHeight+"px"},start(e){if(this.isEnd)return;const t=e||window.event,o=t.touches?t.touches[0].pageX:t.clientX,a=this.$refs.barArea;this.startLeft=Math.floor(o-a.getBoundingClientRect().left),this.startMoveTime=Date.now(),this.status=!0,this.transitionLeft="",this.transitionWidth="",this.moveBlockBackgroundColor="#1890ff",this.iconColor="#fff"},move(e){if(!this.status||this.isEnd)return;const t=e||window.event,o=t.touches?t.touches[0].pageX:t.clientX,a=this.$refs.barArea;let n=o-a.getBoundingClientRect().left-this.startLeft;const i=a.offsetWidth-this.currentBarHeight;n<=0&&(n=0),n>=i&&(n=i),this.moveBlockLeft=n+"px",this.leftBarWidth=n+this.currentBarHeight+"px",t.cancelable&&t.preventDefault()},end(){if(!this.status||this.isEnd)return;this.status=!1,this.endMoveTime=Date.now();let e=parseInt(this.moveBlockLeft.replace("px",""));e=310*e/parseInt(this.setSize.imgWidth);const t={pointJson:this.secretKey?this.aesEncrypt(JSON.stringify({x:e,y:5}),this.secretKey):JSON.stringify({x:e,y:5}),uuid:this.backToken};W(t).then(e=>{0===e.data.code?this.handleSuccess(e):this.handleError()}).catch(()=>this.handleError())},handleSuccess(e){this.endMoveTime,this.startMoveTime,this.moveBlockBackgroundColor="#52c41a",this.iconClass="icon-check",this.isEnd=!0,this.passFlag=!0,this.tipWords=`${((this.endMoveTime-this.startMoveTime)/1e3).toFixed(2)}s `+(this.isEn?"verified successfully":"验证成功"),setTimeout(()=>{this.closeBox(),this.$emit("success",{uuid:e.data.data.uuid,code:e.data.data.code})},800)},handleError(){this.moveBlockBackgroundColor="#ff4d4f",this.iconClass="icon-close",this.passFlag=!1,this.tipWords=this.isEn?"verification failed":"验证失败",setTimeout(()=>{this.refresh(),this.tipWords=""},1e3)},refresh(){this.loading=!0,this.transitionLeft="left 0.3s",this.transitionWidth="width 0.3s",this.moveBlockLeft="0px",this.leftBarWidth=this.currentBarHeight+"px",this.moveBlockBackgroundColor="#fff",this.iconColor="#4b4b4b",this.iconClass="icon-right",this.isEnd=!1,this.tipWords="",this.getPicture()},getPicture(){this.loading=!0,G({clientUid:localStorage.getItem("slider"),ts:Date.now()}).then(e=>{if(0===e.data.code){if(!1===e.data.data.validate)return this.loading=!1,this.startMoveTime=Date.now(),this.endMoveTime=Date.now(),void this.handleSuccess(e);this.isNeedShow=!0,this.backImgBase=e.data.data.originalImageBase64,this.blockBackImgBase=e.data.data.jigsawImageBase64,this.backToken=e.data.data.uuid,this.secretKey=e.data.data.secretKey}else this.loading=!1,this.isNeedShow=!0}).catch(()=>{this.loading=!1,this.isNeedShow=!0})},closeBox(){this.$emit("update:visible",!1)}}},gr={key:0,class:"auth-captcha-box-top"},yr={class:"auth-captcha-title"},vr={class:"captcha-wrapper",style:{position:"relative"}},Ar=["src"],Cr={key:0,class:"auth-captcha-loading"},wr={class:"loading-text"},Er={class:"auth-captcha-msg"},br=["textContent"],Ir=["src"];const Br=/* @__PURE__ */ra(mr,[["render",function(e,t,o,a,n,i){return m((l(),s("div",{class:c("pop"===o.mode?"captcha-mask":"captcha-relative-wrapper")},[d("div",{class:c("pop"===o.mode?"auth-captcha-box":""),style:w({width:"pop"===o.mode?n.setSize.imgWidth+"40px":"100%","max-width":"100%"})},["pop"===o.mode?(l(),s("div",gr,[d("span",yr,v(i.isEn?"please finish the security verification":"请完成安全验证"),1),d("span",{class:"auth-captcha-box-close",onClick:t[0]||(t[0]=(...e)=>i.closeBox&&i.closeBox(...e))}," × ")])):f("",!0),d("div",{class:"auth-captcha-box-bottom",style:w({padding:"pop"===o.mode?"15px":"0"})},[d("div",vr,["blockPuzzle"===o.captchaType?(l(),s("div",{key:0,class:"auth-captcha-img-out",style:w({height:parseInt(n.setSize.imgHeight)+o.vSpace+"px"})},[d("div",{class:"auth-captcha-img-panel",style:w({width:n.setSize.imgWidth,height:n.setSize.imgHeight})},[d("img",{src:n.backImgBase?"data:image/png;base64,"+n.backImgBase:o.defaultImg,alt:"captcha",class:"main-img",onLoad:t[1]||(t[1]=(...e)=>i.handleImageLoaded&&i.handleImageLoaded(...e))},null,40,Ar),n.loading?(l(),s("div",Cr,[t[5]||(t[5]=d("div",{class:"loading-icon"},null,-1)),d("p",wr,v(i.isEn?"Loading...":"加载中..."),1)])):f("",!0),m(d("div",{class:"auth-captcha-refresh",onClick:t[2]||(t[2]=(...e)=>i.refresh&&i.refresh(...e))},[...t[6]||(t[6]=[d("svg",{t:"1767753956986",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2523",width:"16",height:"16",fill:"#fff"},[d("path",{d:"M894.481158 505.727133c0 49.589418-9.711176 97.705276-28.867468 143.007041-18.501376 43.74634-44.98454 83.031065-78.712713 116.759237-33.728172 33.728172-73.012897 60.211337-116.759237 78.712713-45.311998 19.156292-93.417623 28.877701-143.007041 28.877701s-97.695043-9.721409-142.996808-28.877701c-43.756573-18.501376-83.031065-44.98454-116.76947-78.712713-33.728172-33.728172-60.211337-73.012897-78.712713-116.759237-19.156292-45.301765-28.867468-93.417623-28.867468-143.007041 0-49.579185 9.711176-97.695043 28.867468-142.996808 18.501376-43.74634 44.98454-83.031065 78.712713-116.759237 33.738405-33.728172 73.012897-60.211337 116.76947-78.712713 45.301765-19.166525 93.40739-28.877701 142.996808-28.877701 52.925397 0 104.008842 11.010775 151.827941 32.745798 46.192042 20.977777 86.909395 50.79692 121.016191 88.608084 4.389984 4.860704 8.646937 9.854439 12.781094 14.97097l0-136.263453c0-11.307533 9.168824-20.466124 20.466124-20.466124 11.307533 0 20.466124 9.15859 20.466124 20.466124l0 183.64253c0 5.433756-2.148943 10.632151-5.986341 14.46955-3.847631 3.837398-9.046027 5.996574-14.479783 5.996574l-183.64253-0.020466c-11.307533 0-20.466124-9.168824-20.466124-20.466124 0-11.307533 9.168824-20.466124 20.466124-20.466124l132.293025 0.020466c-3.960195-4.952802-8.063653-9.782807-12.289907-14.479783-30.320563-33.605376-66.514903-60.098773-107.549481-78.753645-42.467207-19.289322-87.850837-29.072129-134.902456-29.072129-87.195921 0-169.172981 33.9533-230.816946 95.597265-61.654198 61.654198-95.597265 143.621025-95.597265 230.816946s33.943067 169.172981 95.597265 230.816946c61.643965 61.654198 143.621025 95.607498 230.816946 95.607498s169.172981-33.9533 230.816946-95.607498c61.654198-61.643965 95.597265-143.621025 95.597265-230.816946 0-11.2973 9.168824-20.466124 20.466124-20.466124C885.322567 485.261009 894.481158 494.429833 894.481158 505.727133z","p-id":"2524"})],-1)])],512),[[S,n.showRefresh]]),h(P,{name:"tips-fade"},{default:x(()=>[n.tipWords?(l(),s("div",{key:0,class:c(["auth-captcha-tips",n.passFlag?"suc-bg":"err-bg"])},v(n.tipWords),3)):f("",!0)]),_:1})],4)],4)):f("",!0),d("div",{class:"auth-captcha-bar-area",ref:"barArea",style:w({width:n.setSize.imgWidth,height:n.currentBarHeight+"px",lineHeight:n.currentBarHeight+"px"})},[d("span",Er,v(i.barExplain),1),d("div",{class:"auth-captcha-left-bar",style:w({width:n.leftBarWidth,height:n.currentBarHeight+"px",borderColor:n.leftBarBorderColor,transition:n.transitionWidth})},[d("span",{class:"auth-captcha-msg",textContent:v(n.finishText)},null,8,br),d("div",{class:"auth-captcha-move-block",onMousedown:t[3]||(t[3]=(...e)=>i.start&&i.start(...e)),onTouchstart:t[4]||(t[4]=A((...e)=>i.start&&i.start(...e),["prevent"])),style:w({width:n.currentBarHeight+"px",height:n.currentBarHeight-2+"px",backgroundColor:n.moveBlockBackgroundColor,left:n.moveBlockLeft,transition:n.transitionLeft})},[d("i",{class:c(["auth-captcha-icon iconfont",n.iconClass]),style:w({color:n.iconColor})},null,6),"blockPuzzle"===o.captchaType?(l(),s("div",{key:0,class:"auth-captcha-sub-block",style:w(i.subBlockStyle)},[n.blockBackImgBase?(l(),s("img",{key:0,src:"data:image/png;base64,"+n.blockBackImgBase,class:"sub-img"},null,8,Ir)):f("",!0)],4)):f("",!0)],36)],4)],4)])],4)],6)],2)),[[S,i.showBox]])}],["__scopeId","data-v-6c4de9d5"]]),Sr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Br},Symbol.toStringTag,{value:"Module"})),kr={name:"CodeInput",components:{GoogleInput:pn,JcFloatInput:Cn,JcVerifySlide:Br},props:{modelValue:String,placeholder:String,ready:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},duration:{type:Number,default:60},formTypeColor:{type:String,default:"1"},isEn:Boolean},emits:["update:modelValue","send"],data:()=>({isCounting:!1,countdown:0,timer:null,captchaVisible:!1}),computed:{statusClass(){return{1:"org",2:"lightBlue",4:"darkOrange"}[this.formTypeColor]||"darkBlue"},btnText(){return this.isCounting?`${this.countdown}s`:this.isEn?"Send Code":"发送验证码"}},methods:{handleSend:Pa(function(){!this.ready||this.isCounting||this.disabled||(this.captchaVisible=!0)},500,{leading:!0,trailing:!1}),handleCaptchaSuccess(e){this.$emit("send",{captchaData:e,startTimer:this.startTimer})},startTimer(){this.isCounting||(this.isCounting=!0,this.countdown=this.duration,this.timer=setInterval(()=>{this.countdown--,this.countdown<=0&&this.stopTimer()},1e3))},stopTimer(){this.timer&&(clearInterval(this.timer),this.timer=null),this.isCounting=!1,this.countdown=0}},beforeUnmount(){this.stopTimer()}},xr={class:"code-input-container"};const Rr=/* @__PURE__ */ra(kr,[["render",function(e,t,o,a,n,i){const r=R("JcVerifySlide");return l(),s("div",xr,[(l(),u(N(o.showIcon?"JcFloatInput":"GoogleInput"),{"model-value":o.modelValue,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t)),label:o.placeholder,placeholder:o.placeholder,class:"verify-code-input",autocomplete:"off",maxlength:"6"},F({suffix:x(()=>[d("a",{class:c(["send-code-btn",[i.statusClass,{"is-disabled":o.disabled||n.isCounting||!o.ready}]]),onClick:t[0]||(t[0]=(...e)=>i.handleSend&&i.handleSend(...e))},[d("span",{class:c(n.isCounting||!o.ready?"disabled-color":"obtain-color")},v(i.btnText),3)],2)]),_:2},[o.showIcon?{name:"prefix",fn:x(()=>[t[3]||(t[3]=d("i",{class:"icon-verify"},null,-1))]),key:"0"}:void 0]),1032,["model-value","label","placeholder"])),h(r,{visible:n.captchaVisible,"onUpdate:visible":t[2]||(t[2]=e=>n.captchaVisible=e),"is-en":o.isEn,onSuccess:i.handleCaptchaSuccess},null,8,["visible","is-en","onSuccess"])])}],["__scopeId","data-v-d8bb51db"]]),Tr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Rr},Symbol.toStringTag,{value:"Module"})),Lr={class:"global-modal-header-custom"},Pr={class:"global-modal-body-custom"},Nr={class:"global-modal-footer-custom"},Fr=/* @__PURE__ */n({__name:"GlobalModal",setup(t){const a=e(),n=e(!1),i=e({city:"",company:"",email:"",phone:"",name:"",agreement:!1}),r=k({city:[{required:!0,message:"请输入所在地城市",trigger:"blur"}],company:[{required:!0,message:"请输入公司名称",trigger:"blur"}],email:[{required:!0,message:"请输入邮箱",trigger:"blur"},{type:"email",message:"请输入有效的邮箱地址",trigger:"blur"}],agreement:[{validator:(e,t,o)=>{t?o():o(new Error("请同意隐私政策"))},trigger:"change"}]}),s=()=>{n.value=!1,Y.emit(Z.Close,void 0),a.value?.resetFields()},c=async()=>{a.value&&await a.value.validate(e=>{e&&(Y.emit(Z.Submit,i.value),s(),i.value={city:"",company:"",email:"",phone:"",name:"",agreement:!1})})},p=e=>{n.value=!0};return o(()=>{Y.on(Z.Open,p)}),V(()=>{Y.off(Z.Open,p)}),(e,t)=>(l(),u(b(We),{modelValue:n.value,"onUpdate:modelValue":t[7]||(t[7]=e=>n.value=e),"before-close":s,"show-close":!1,"close-on-click-modal":!0,width:500,class:"global-modal-custom"},{header:x(()=>[d("div",Lr,[t[9]||(t[9]=d("h2",null,"即刻链接全球货代",-1)),h(b(et),{link:"",onClick:s,class:"close-button-custom","aria-label":"Close"},{default:x(()=>[...t[8]||(t[8]=[d("span",{style:{"font-size":"2rem"}},"×",-1)])]),_:1})])]),footer:x(()=>[d("div",Nr,[h(b(et),{type:"primary",class:"submit-button-custom",onClick:c},{default:x(()=>[...t[11]||(t[11]=[B(" 加入会员 ",-1)])]),_:1})])]),default:x(()=>[d("div",Pr,[h(b(Ye),{model:i.value,rules:r,ref_key:"formRef",ref:a,"label-position":"top",onSubmit:t[6]||(t[6]=A(()=>{},["prevent"]))},{default:x(()=>[h(b(Ze),{gutter:20},{default:x(()=>[h(b(_e),{span:12},{default:x(()=>[h(b(Xe),{label:"所在地(城市)",prop:"city"},{default:x(()=>[h(b(Ge),{modelValue:i.value.city,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value.city=e),placeholder:"请输入城市"},null,8,["modelValue"])]),_:1})]),_:1}),h(b(_e),{span:12},{default:x(()=>[h(b(Xe),{label:"公司名称",prop:"company"},{default:x(()=>[h(b(Ge),{modelValue:i.value.company,"onUpdate:modelValue":t[1]||(t[1]=e=>i.value.company=e),placeholder:"请输入公司名称"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),h(b(Ze),{gutter:20},{default:x(()=>[h(b(_e),{span:12},{default:x(()=>[h(b(Xe),{label:"邮箱",prop:"email"},{default:x(()=>[h(b(Ge),{modelValue:i.value.email,"onUpdate:modelValue":t[2]||(t[2]=e=>i.value.email=e),placeholder:"请输入邮箱"},null,8,["modelValue"])]),_:1})]),_:1}),h(b(_e),{span:12},{default:x(()=>[h(b(Xe),{label:"电话",prop:"phone"},{default:x(()=>[h(b(Ge),{modelValue:i.value.phone,"onUpdate:modelValue":t[3]||(t[3]=e=>i.value.phone=e),placeholder:"请输入电话"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),h(b(Ze),null,{default:x(()=>[h(b(_e),{span:24},{default:x(()=>[h(b(Xe),{label:"姓名",prop:"name"},{default:x(()=>[h(b(Ge),{modelValue:i.value.name,"onUpdate:modelValue":t[4]||(t[4]=e=>i.value.name=e),placeholder:"请输入您的全名"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),h(b(Xe),{prop:"agreement",class:"agreement-item"},{default:x(()=>[h(b($e),{modelValue:i.value.agreement,"onUpdate:modelValue":t[5]||(t[5]=e=>i.value.agreement=e),label:"我同意"},null,8,["modelValue"]),t[10]||(t[10]=d("a",{href:"#",class:"privacy-link"},"隐私政策",-1))]),_:1})]),_:1},8,["model","rules"])])]),_:1},8,["modelValue"]))}}),Vr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Fr},Symbol.toStringTag,{value:"Module"})),Ur=/* @__PURE__ */n({__name:"AirCarrierSearch",props:/* @__PURE__ */U({lang:String,placeholder:String,showApplyData:{type:Boolean,default:!1}},{modelValue:{required:!0,default:""},modelModifiers:{}}),emits:/* @__PURE__ */U(["update:modelValue","change","apply"],["update:modelValue"]),setup(e,{emit:o}){const a=Q(e,"modelValue"),n=e,i=t(()=>{if(n.lang)return"en"===n.lang||"en-US"===n.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),r=t(()=>n.placeholder?n.placeholder:i.value?"Please enter the carrier code or name (e.g., AAL)":"请输入航空公司代码或名称 (如: AAL)"),s=o,c=e=>{s("change",e)};return(t,o)=>{const n=R("JcCarrierSearch");return l(),u(n,{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=e=>a.value=e),type:"Carrier","line-type":"air",class:"jc-air-carrier-search",placeholder:r.value,"show-apply-data":e.showApplyData,onChange:c,onApply:o[1]||(o[1]=e=>t.$emit("apply",a.value))},F({_:2},[y(t.$slots,(e,o)=>({name:o,fn:x(e=>[p(t.$slots,o,M(D(e||{})))])}))]),1032,["modelValue","placeholder","show-apply-data"])}}}),Qr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Ur},Symbol.toStringTag,{value:"Module"})),Mr=/* @__PURE__ */n({__name:"AirLineSearch",props:/* @__PURE__ */U({lang:String,placeholder:String,showApplyData:{type:Boolean,default:!1}},{modelValue:{required:!0,default:""},modelModifiers:{}}),emits:/* @__PURE__ */U(["update:modelValue","change","apply"],["update:modelValue"]),setup(e,{emit:o}){const a=Q(e,"modelValue"),n=e,i=t(()=>{if(n.lang)return"en"===n.lang||"en-US"===n.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),r=t(()=>n.placeholder?n.placeholder:i.value?"Please enter the line name":"请输入航线名称"),s=o,c=e=>{s("change",e)};return(t,o)=>{const n=R("JcCarrierSearch");return l(),u(n,{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=e=>a.value=e),type:"Line","line-type":"air",class:"jc-air-line-search",placeholder:r.value,"show-apply-data":e.showApplyData,onChange:c,onApply:o[1]||(o[1]=e=>t.$emit("apply",a.value))},F({_:2},[y(t.$slots,(e,o)=>({name:o,fn:x(e=>[p(t.$slots,o,M(D(e||{})))])}))]),1032,["modelValue","placeholder","show-apply-data"])}}}),Dr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Mr},Symbol.toStringTag,{value:"Module"})),jr=/* @__PURE__ */n({__name:"SeaCarrierSearch",props:/* @__PURE__ */U({lang:String,placeholder:String,showApplyData:{type:Boolean,default:!1}},{modelValue:{required:!0,default:""},modelModifiers:{}}),emits:/* @__PURE__ */U(["update:modelValue","change","apply"],["update:modelValue"]),setup(e,{emit:o}){const a=Q(e,"modelValue"),n=e,i=t(()=>{if(n.lang)return"en"===n.lang||"en-US"===n.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),r=t(()=>n.placeholder?n.placeholder:i.value?"Please enter the carrier code or name (e.g., AAL)":"请输入船司代码或名称 (如: MSK)"),s=o,c=e=>{s("change",e)};return(t,o)=>{const n=R("JcCarrierSearch");return l(),u(n,{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=e=>a.value=e),type:"Carrier","line-type":"shipping",class:"jc-sea-carrier-search",placeholder:r.value,"show-apply-data":e.showApplyData,onChange:c,onApply:o[1]||(o[1]=e=>t.$emit("apply",a.value))},F({_:2},[y(t.$slots,(e,o)=>({name:o,fn:x(e=>[p(t.$slots,o,M(D(e||{})))])}))]),1032,["modelValue","placeholder","show-apply-data"])}}}),Or=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:jr},Symbol.toStringTag,{value:"Module"})),Jr=/* @__PURE__ */n({__name:"SeaLineSearch",props:/* @__PURE__ */U({lang:String,placeholder:String,showApplyData:{type:Boolean,default:!1}},{modelValue:{required:!0,default:""},modelModifiers:{}}),emits:/* @__PURE__ */U(["update:modelValue","change","apply"],["update:modelValue"]),setup(e,{emit:o}){const a=Q(e,"modelValue"),n=e,i=t(()=>{if(n.lang)return"en"===n.lang||"en-US"===n.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),r=t(()=>n.placeholder?n.placeholder:i.value?"Please enter the line name":"请输入航线名称"),s=o,c=e=>{s("change",e)};return(t,o)=>{const n=R("JcCarrierSearch");return l(),u(n,{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=e=>a.value=e),type:"Line","line-type":"shipping",class:"jc-sea-line-search",placeholder:r.value,"show-apply-data":e.showApplyData,onChange:c,onApply:o[1]||(o[1]=e=>t.$emit("apply",a.value))},F({_:2},[y(t.$slots,(e,o)=>({name:o,fn:x(e=>[p(t.$slots,o,M(D(e||{})))])}))]),1032,["modelValue","placeholder","show-apply-data"])}}}),qr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Jr},Symbol.toStringTag,{value:"Module"})),Hr={class:"jc:flex jc:items-center jc:justify-between"},zr={key:0,class:"jc:ml-2 jc:text-xs jc:text-gray-400"},Kr={class:"jc:p-4 jc:text-sm jc:text-center jc:text-gray-500"},Gr={key:0},Wr={key:1,class:"jc:flex jc:flex-wrap jc:justify-center jc:items-center"},Yr={class:"jc:flex jc:justify-center jc:items-center jc:gap-1"},Zr=["src"],_r={key:1},Xr=/* @__PURE__ */ra(/* @__PURE__ */n({__name:"index",props:{modelValue:{type:[String,Number,Array],default:void 0},lang:{type:String,default:""},type:{type:String,required:!0},lineType:{type:String,default:"shipping"},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},showApplyData:{type:Boolean,default:!1},defaultOptions:{type:Array,default:()=>[]}},emits:["update:modelValue","change","apply"],setup(a,{emit:n}){const i=a,c=n,h=e(),m=t(()=>{if(i.lang)return"en"===i.lang||"en-US"===i.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),C=t(()=>{if(i.placeholder)return i.placeholder;return{Carrier:m.value?"Search by carrier name or code":"请输入公司名称或代码",Line:m.value?"Search by line name":"请输入航线名称",Seaport:m.value?"Search by seaport name":"请输入港口名称"}[i.type]||(m.value?"Search...":"请输入关键字搜索")}),w=t({get:()=>i.modelValue,set:e=>c("update:modelValue",e)}),E=t(()=>{const e=i.modelValue;if(Array.isArray(e)){return"string"==typeof e.find(e=>null!=e&&""!==e)}return"string"==typeof e}),I=e(!1),B=e([]),S=e(""),k=()=>{B.value=[...i.defaultOptions]};r(()=>i.defaultOptions,()=>{if(!I.value&&!S.value){const e=[...i.defaultOptions];B.value=e}},{immediate:!0,deep:!0});const R=Pa(async e=>{try{const t={keyword:e,current:1,size:50};let o={};o="Carrier"===i.type?await H.carrier.search(t,i.lineType):"Line"===i.type?await H.line.search(t,i.lineType):await H.searchByName({...t,displayInfo:[i.type]});const a=o.records||[];if(i.defaultOptions.length>0){const e=i.defaultOptions.filter(e=>!a.some(t=>t.id===e.id));B.value=[...e,...a]}else B.value=a}catch(t){console.error("Search failed:",t)}finally{I.value=!1}},300),T=e=>{if(S.value=e,!e||!e.trim())return I.value=!1,void k();I.value=!0,R(e)},L=e=>{e||(k(),I.value=!1,S.value="",h.value?.blur())},P=()=>{k(),S.value="",c("change",null,null)},N=e=>{if(!e)return void c("change",e,null);let t;t=Array.isArray(e)?B.value.filter(t=>e.some(e=>String(e)===String(t.id))):B.value.find(t=>String(t.id)===String(e))||null,c("change",e,t)},V=()=>{S.value&&z({reportData:S.value,reportType:i.type.toLocaleLowerCase()}),c("apply",S.value),h.value?.blur()},U=async()=>{if(null===i.modelValue||void 0===i.modelValue||""===i.modelValue)return;const e=(Array.isArray(i.modelValue)?i.modelValue:[i.modelValue]).filter(e=>!B.value.some(t=>String(t.id)===String(e)));if(0!==e.length)try{let t=[];const o=e.map(e=>Number(e)).filter(e=>!Number.isNaN(e));if(0===o.length)return;if("Carrier"===i.type){const e=await H.carrier.getByIds(o,i.lineType);t=Array.isArray(e)?e:e.records||[]}else if("Line"===i.type){const e=await H.line.getByIds(o,i.lineType);t=Array.isArray(e)?e:e.records||[]}if(t.length>0){const e=t.filter(e=>!B.value.some(t=>t.id===e.id));B.value.push(...e)}}catch(t){console.error("Init selected data failed:",t)}};return o(()=>{U()}),r(()=>i.modelValue,(e,t)=>{JSON.stringify(e)!==JSON.stringify(t)&&"undefined"!=typeof window&&U()}),(e,t)=>(l(),u(b(ze),{ref_key:"selectRef",ref:h,modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=e=>w.value=e),multiple:a.multiple,filterable:"",remote:"","reserve-keyword":"",clearable:"","value-key":"id",placeholder:C.value,"remote-method":T,loading:I.value,class:"jc:w-full jc-carrier-search-comp",teleported:!1,onChange:N,onVisibleChange:L,onClear:P},F({empty:x(()=>[d("div",Kr,[I.value?(l(),s("div",Gr,v(m.value?"Searching...":"正在搜索中..."),1)):(l(),s("div",Wr,[a.showApplyData?(l(),s(g,{key:0},[d("p",null,v(m.value?"No results found. ":"暂无结果,"),1),d("div",Yr,[d("span",{class:"jc:font-medium jc:text-[14px] jc:text-brand jc:leading-5 jc:text-center jc:cursor-pointer jc:ml-1",onClick:A(V,["stop"])},v(m.value?"Apply for data addition":"申请补充数据 "),1),d("img",{src:b(No),alt:"",class:"jc:mr-1 jc:size-4",onClick:A(V,["stop"])},null,8,Zr)])],64)):(l(),s("p",_r,v(m.value?"No results found.":"暂无结果"),1))]))])]),default:x(()=>[(l(!0),s(g,null,y(B.value,t=>{return l(),u(b(Ke),{key:t.id,label:m.value?t.displayEn||t.display:t.displayCn||t.display,value:(o=t.id,E.value?String(o):o)},{option:x(()=>[p(e.$slots,"option",{item:t},()=>[d("div",Hr,[d("span",null,v(m.value?t.displayEn||t.display:t.displayCn||t.display),1),t.code?(l(),s("span",zr,v(t.code),1)):f("",!0)])],!0)]),_:2},1032,["label","value"]);var o}),128))]),_:2},[e.$slots.prefix?{name:"prefix",fn:x(()=>[p(e.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","multiple","placeholder","loading"]))}}),[["__scopeId","data-v-c794da64"]]),$r=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Xr},Symbol.toStringTag,{value:"Module"})),es={class:"wrapper-container"},ts={key:0,class:"wrapper-prepend"},os={class:"wrapper-main"},as={class:"wrapper-label"},ns={key:1,class:"wrapper-append"};const is=/* @__PURE__ */ra({name:"JcFloatWrapper",props:{label:{type:String,default:""}},data:()=>({internalFocus:!1}),computed:{isHavePrepend(){return!!this.$slots.prefix},isHaveAppend(){return!!this.$slots.suffix}},methods:{handleFocusIn(){this.internalFocus=!0,this.$emit("focus")},handleFocusOut(){this.internalFocus=!1,this.$emit("blur")}}},[["render",function(e,t,o,a,n,i){return l(),s("div",{class:c(["jc-float-wrapper",{"is-focus":n.internalFocus,"is-have-prepend":i.isHavePrepend}]),onFocusin:t[0]||(t[0]=(...e)=>i.handleFocusIn&&i.handleFocusIn(...e)),onFocusout:t[1]||(t[1]=(...e)=>i.handleFocusOut&&i.handleFocusOut(...e))},[d("div",es,[i.isHavePrepend?(l(),s("div",ts,[p(e.$slots,"prefix",{},void 0,!0)])):f("",!0),d("div",os,[p(e.$slots,"default",{},void 0,!0),d("p",as,v(o.label),1)]),i.isHaveAppend?(l(),s("div",ns,[p(e.$slots,"suffix",{},void 0,!0)])):f("",!0)])],34)}],["__scopeId","data-v-f392be75"]]),rs=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:is},Symbol.toStringTag,{value:"Module"}));function ss(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)e[a]=o[a]}return e}var ls=function e(t,o){function a(e,a,n){if("undefined"!=typeof document){"number"==typeof(n=ss({},o,n)).expires&&(n.expires=new Date(Date.now()+864e5*n.expires)),n.expires&&(n.expires=n.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var r in n)n[r]&&(i+="; "+r,!0!==n[r]&&(i+="="+n[r].split(";")[0]));return document.cookie=e+"="+t.write(a,e)+i}}return Object.create({set:a,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var o=document.cookie?document.cookie.split("; "):[],a={},n=0;n<o.length;n++){var i=o[n].split("="),r=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(a[s]=t.read(r,s),e===s)break}catch(l){}}return e?a[e]:a}},remove:function(e,t){a(e,"",ss({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,ss({},this.attributes,t))},withConverter:function(t){return e(ss({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const cs={redirect:!1,redirectPath:"",tgc:"",thirdPartyInfo:{thirdPartyEmail:"new_user@gmail.com",thirdPartyId:"999888777",thirdPartyType:"FACEBOOK",thirdPartyUserName:"New User"},mobileEmailList:[]},ds=()=>({thirdPartyId:sessionStorage.getItem("jc-auth-thirdPartyId")||"",thirdPartyEmail:sessionStorage.getItem("jc-auth-thirdPartyEmail")||"",thirdPartyType:sessionStorage.getItem("jc-auth-thirdPartyType")||"",thirdPartyUserName:sessionStorage.getItem("jc-auth-thirdPartyUserName")||"",mobileEmailList:JSON.parse(sessionStorage.getItem("jc-auth-mobileEmailList")||"[]")}),us=e=>{e&&e.length>0&&sessionStorage.setItem("jc-auth-thirdPartyEmailVerifyList",JSON.stringify(e))},hs=e=>{e&&e.length>0&&sessionStorage.setItem("jc-auth-thirdPartyMobileVerifyList",JSON.stringify(e))};function ps(t){const a=e(!1),n=e(null),i=e(!1),r=e(!1),s=e([]),l=e(!1);let c=null,d=null,u=!1;const h="current_login_type",p="jc_auth_state_check",f="jc_auth_active_instance",m=Math.random().toString(36).substring(2,15),g=e=>new URLSearchParams(window.location.search).get(e),y=()=>{d&&(clearInterval(d),d=null),c=null},v=()=>{console.log("🧹 [重置] 清空所有登录状态"),y(),window.removeEventListener("message",A),a.value=!1,n.value=null,i.value=!1,r.value=!1,l.value=!1,s.value=[],u=!1,sessionStorage.removeItem(h),sessionStorage.removeItem(f),sessionStorage.removeItem(p)},A=async e=>{if(![window.location.origin,"https://passport.jctrans.com","https://passport-sit.jctrans.net.cn","https://passport-sit2.jctrans.net.cn","http://localhost:8080","http://localhost:8086","http://localhost:8093"].includes(e.origin))return void console.warn("收到未知来源的消息:",e.origin);const{type:t,code:o,state:a}=e.data||{};if("THIRD_PARTY_LOGIN_CODE"===t&&o&&a){if(sessionStorage.getItem(f)!==m)return;if(sessionStorage.getItem(p)!==a)return;u=!0,console.log(`🍉 [主窗口] 实例 ${m} 收到授权码:`,o,a),window.removeEventListener("message",A),y();const e=sessionStorage.getItem(h);if("TEST"===e){console.log("🍉 [主窗口] 测试模式:模拟接口返回");const e=cs;setTimeout(()=>{w(e)},500)}else await C(o,e)}},C=async(e,o)=>{const n=X(),i={thirdPartyCode:e,appId:t.appId,redirectPath:t.redirectPath||"/",activityCode:n?.activityCode||"",referenceUserId:n?.referenceUserId||""};try{let e;"FACEBOOK"===o?e=await $(i):"LINKEDIN"===o&&(e=await ee(i)),e&&e.data&&w(e.data)}catch(r){console.error("登录 API 错误:",r),t.onError&&t.onError(r),v()}finally{a.value=!1,sessionStorage.removeItem(h),sessionStorage.removeItem(f)}},w=e=>{const o=e.data||e;if(console.log("🍉 处理登录结果:",o),n.value=o,a.value=!1,o.redirect&&o.tgc){const e="CPA"===t.appId?"tgc-CPA":"tgc";ls.set(e,o.tgc,{expires:30})}const l=o.mobileEmailList||[];if(((e,t)=>{e.thirdPartyId&&sessionStorage.setItem("jc-auth-thirdPartyId",e.thirdPartyId),e.thirdPartyEmail&&sessionStorage.setItem("jc-auth-thirdPartyEmail",e.thirdPartyEmail),e.thirdPartyType&&sessionStorage.setItem("jc-auth-thirdPartyType",e.thirdPartyType),e.thirdPartyUserName&&sessionStorage.setItem("jc-auth-thirdPartyUserName",e.thirdPartyUserName),t&&t.length>0&&sessionStorage.setItem("jc-auth-mobileEmailList",JSON.stringify(t))})(o?.thirdPartyInfo||{},o?.mobileEmailList||[]),l.length>0)console.log("👉 进入绑定流程"),s.value=l,i.value=!0,r.value=!1,t.onNeedBind&&t.onNeedBind(l);else if(o.redirect)if(console.log("👉 直接登录成功,准备跳转"),i.value=!1,r.value=!1,_(o.result),t.onSuccess)t.onSuccess(o);else{const e=o.redirectPath||t.redirectPath;console.log("🍉 ~ useThirdPartyLogin.ts:426 ~ handleLoginSuccess ~ targetPath:",e),e&&Es(e)}else console.log("👉 进入注册流程"),i.value=!1,s.value=[],r.value=!0};o(()=>{(()=>{if(window.opener&&window.opener!==window){const e=g("code"),t=g("state");e&&(console.log("🍉 [弹窗] 获取到授权码,准备回传:",e),window.opener.postMessage({type:"THIRD_PARTY_LOGIN_CODE",code:e,state:t},"*"),window.close())}})()}),V(()=>{window.removeEventListener("message",A),v()});return{isLoading:a,isBindDialogVisible:i,isRegisterVisible:r,isUserClosed:l,bindList:s,loginResult:n,startLogin:e=>{if(a.value)return;v(),u=!1,window.addEventListener("message",A),a.value=!0,sessionStorage.setItem(h,e),sessionStorage.setItem(f,m);const t="jc_"+Math.random().toString(36).slice(2);sessionStorage.setItem(p,t);const o=window.location.hostname.includes("jctrans.com"),n=window.location.hostname.includes("sit2"),i=(window.location.hostname.includes("sit"),`${o?"https://passport.jctrans.com":n?"https://passport-sit2.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"}/oauth_callback.html`||window.location.origin+window.location.pathname);let r="";if("TEST"===e){r=`${o?"https://passport.jctrans.com/mock_auth.html":n?"https://passport-sit2.jctrans.net.cn/mock_auth.html":"https://passport-sit.jctrans.net.cn/mock_auth.html"}?redirect_uri=${encodeURIComponent(i)}&state=${t}`}else if("FACEBOOK"===e){r=`${"https://www.facebook.com/v22.0/dialog/oauth"}?client_id=${"1819580562224685"}&redirect_uri=${encodeURIComponent(i)}&state=${t}&scope=email,public_profile&display=popup`}else if("LINKEDIN"===e){r=`${"https://www.linkedin.com/oauth/v2/authorization"}?response_type=code&client_id=${"86t0770jygwztk"}&redirect_uri=${encodeURIComponent(i)}&state=${t}&scope=profile%20email%20openid`}const s=window.screen.width/window.innerWidth,g=(window.screen.width-600)/2/s+(void 0!==window.screenLeft?window.screenLeft:window.screenX),C=`\n width=600,\n height=700,\n top=${(window.screen.height-700)/2/s+(void 0!==window.screenTop?window.screenTop:window.screenY)},\n left=${g},\n toolbar=no,\n menubar=no,\n scrollbars=yes,\n status=no,\n location=no\n `;if(console.log(`🍉 打开弹窗 [${e}]: ${r}`),c=window.open(r,"ThirdPartyLogin",C),!c)return console.error("浏览器已阻止弹窗"),void(a.value=!1);d=setInterval(()=>{if(c&&c.closed){if(u)return console.log("🍉 [竞态] 检测到窗口关闭,但正在处理消息,忽略此次关闭检测"),void y();console.log("🍉 检测到弹窗被手动关闭,执行重置"),v(),l.value=!0}},1e3)},resetState:v,handleBindThirdParty:e=>{s.value=e,i.value=!0,r.value=!1},resetBindRegisterState:()=>{i.value=!1,r.value=!1,s.value=[]}}}async function fs(e,t,o,a=!0,n=!0){if(!t||""===t.trim())return o(new Error(a?"Email address is required":"请输入您的邮箱"));if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t))return o(new Error(a?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/[\u4e00-\u9fa5]+/.test(t))return o(new Error(a?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/@(qq|vip.qq).com$/i.test(t))return o(new Error(a?"QQ email is not supported, please change other work email":"不支持QQ邮箱,请您更换其他工作邮箱"));if(!n)return o();try{const{data:e}=await te({target:t});if(console.log("🍉 ~ constant.ts:67 ~ validateUserEmail ~ data:",e),e.data)return o(new Error(a?"It's already occupied, please re-enter.":"已被占用,请重新输入"));o()}catch(i){o(new Error(a?"Validation failed, please re-enter.":"校验失败,请重新输入"))}}function ms(e,t,o,a=!0,n=!0){const i=/^[a-zA-Z\u4e00-\u9fa5\s.·•]+$/,r=/^[a-zA-Z\s.·•]+$/;if(!t){return o(new Error(n?a?"please enter your Chinese name":"请输入您的中文姓名":a?"Please enter your English name":"请输入您的英文姓名"))}if(n){if(t.length>50||!i.test(t))return o(new Error(a?"Only Chinese and English characters and symbols can be entered, with a maximum of 50 words.":"仅能输入中英文字符及符号,最多50个字"))}else if(t.length>50||!r.test(t))return o(new Error(a?"Only English characters and symbols can be entered, up to 50 words.":"仅能输入英文字符及符号,最多50个字"));o()}function gs(e,t,o,a=!0){const n={empty:a?"The password cannot be empty. Please enter it":"密码不能为空,请重新输入",length:a?"The password must be at 6-20 characters only":"密码为6-20位字符",invalidChars:a?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号",complexity:a?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号"};if(null==t||""===t)return o(new Error(n.empty));if(t.length<6||t.length>20)return o(new Error(n.length));if(!/^[a-zA-Z0-9+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&“”‘’:?》《,^——_\s\u3000\u0020\u00A0\n\r【】{}[\]|;~·]*$/.test(t))return o(new Error(n.invalidChars));const i=/^[a-zA-Z]*$/.test(t),r=/^[0-9]*$/.test(t),s=/^[+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&“”‘’:?》《,^——_\s\u3000\u0020\u00A0\n\r【】{}[\]|;~·]*$/.test(t);if(i||r||s)return o(new Error(n.complexity));o()}async function ys(e,t,o,a=!0,n=!0){const i={empty:a?"Please enter your cell phone number":"请输入手机号",minLen:a?"please enter at least 2 characters.":"请输入至少 2 个字符.",invalid:a?"Invalid mobile address":"手机号格式错误",occupied:a?"It's already occupied, please re- enter.":"已被占用,请重新输入"};if(!t)return o(new Error(i.empty));if(!/^[0-9]*$/.test(t))return o(new Error(i.invalid));if(t.length<2)return o(new Error(i.minLen));if(!n)return o();try{const e=await te({target:t});if(console.log("🍉 ~ constant.ts:288 ~ validateUserMobilefive ~ res:",e),e&&e.data.data)return o(new Error(i.occupied));o()}catch(r){o(new Error(i.occupied))}}async function vs(e,t,o,a=!0,n){const i=function(e){return e?e.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s{2,}/g," "):""}(t);console.log("🍉 ~ constant.ts:274 ~ validateCompanyName ~ nameValue:",i);const r=1==n.countryId;if(!i)return!r||"DDC"!==n.appId&&"JHB"!==n.appId?o(new Error(a?"please enter the full company name":"请输入公司名称")):o();if(i.length<2)return o(new Error(a?"please enter at least 2 characters.":"请输入至少 2 个字符."));if(i.length>200)return o(new Error(a?"please enter less than 200 characters.":"请输入少于 200 个字符."));if(!r){if(/[\u4e00-\u9fa5]/.test(i))return o(new Error(a?"Do not include Chinese characters in company name":"注册公司名不能有中文"));if(!/^[a-zA-Z0-9+.()&\\\-=*/,#'":!?;%$`@^——_\s]*$/.test(i))return o(new Error(a?"Wrong format for company name":"注册公司名格式错误"))}if(n.countryId&&n.cityId)try{const e={countryId:n.countryId,cityId:n.cityId,[r?"compNameCn":"compNameEn"]:i},t=await ae(e);console.log("🍉 ~ constant.ts:347 ~ validateCompanyName ~ res:",t),t.data.data.result?"JCPAY"===n.appId?o(new Error(a?"The company already exists, please contact customer service":"公司名称已存在,请联系客服")):(r?n.companyResistCn=!0:n.companyResistEn=!0,n.resistCompanyInfo=t.data.data,o()):(r?n.companyResistCn=!1:n.companyResistEn=!1,o())}catch(s){const e=s?.toString().split(":")[1]||"API Error";o(new Error(e))}else o(new Error(a?"Please select a Country/Region":"请选择国家/地区"))}function As(e,t,o,a=!0){return t?/^\d{4}$/.test(t)?void o():o(new Error(a?"Verification code must be 4 digits":"验证码必须为4位数字")):o(new Error(a?"Please enter the verification code":"请输入验证码"))}function Cs(e="_blank"){const t=window.location.hostname.includes("jctrans.com"),o=window.location.hostname.includes("sit2"),a=(window.location.hostname.includes("sit"),t?"https://passport.jctrans.com":o?"https://passport-sit2.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"),n=document.createElement("a");n.href=`${a}/privacyAgreement`,n.target=e;const i=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});n.dispatchEvent(i)}function ws(e="_blank"){const t=window.location.hostname.includes("jctrans.com"),o=window.location.hostname.includes("sit2"),a=(window.location.hostname.includes("sit"),t?"https://passport.jctrans.com":o?"https://passport-sit2.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"),n=document.createElement("a");n.href=`${a}/privacyPolicy`,n.target=e;const i=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});n.dispatchEvent(i)}const Es=(e,t=100)=>{process.env&&"development"===process.env.NODE_ENV?console.log("🍉 ~ constant.ts:517 ~ handleRedirect ~ path:",e):e&&setTimeout(()=>{e.startsWith("http")?window.location.href=e:(window.location.href=window.location.origin+e,console.warn("内部路径跳转逻辑尚未定义:",e))},t)},bs={class:"jc:text-xs jc:flex jc:mb-3 jc:-mt-3"},Is={style:{color:"#f80"},class:"jc:text-xs"},Bs=/* @__PURE__ */n({__name:"ApplyJoinBtn",props:{isEn:{type:Boolean,default:!1}},emits:["apply-join"],setup(e,{emit:o}){const a=e,n=o,i=t(()=>a.isEn?"The company already exists. Would you like to apply to ":"该公司已存在。您可申请加入。"),r=t(()=>a.isEn?"join in >>":"点击申请加入 >>"),c=()=>{n("apply-join")};return(e,t)=>(l(),s("div",bs,[d("p",Is,[t[0]||(t[0]=d("i",{class:"el-icon-warning"},null,-1)),B(" "+v(i.value),1)]),d("p",{style:{color:"#3264ff",cursor:"pointer"},onClick:c},v(r.value),1)]))}}),Ss={name:"RegisterForm",components:{ElDialog:We,ElForm:Ye,ElFormItem:Xe,ElInput:Ge,ElButton:et,ElCheckbox:$e,ElSelect:ze,ElOption:Ke,ElRadioGroup:ot,ElRadioButton:tt,JcFloatInput:Cn,CodeInput:Rr,JcFloatWrapper:is,JcSearch:sa,ChineseCompanySearch:rn,GoogleInput:pn,ApplyJoinBtn:Bs},props:{isEn:Boolean},emits:["to-login","register","need-complete"],computed:{isAgree(){return this.form.agree},countryId(){return this.form.city?.raw?.country?.id||this.form?.city?.raw?.city?.countryId},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId||this.resistCompanyInfo?.countryId;return[1].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:null,cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,o)=>vs(0,t,o,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,o)=>ms(0,t,o,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,o)=>ms(0,t,o,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(e,t,o)=>fs(0,t,o,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>ys(0,t,o,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>As(0,t,o,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,o)=>gs(0,t,o,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(e,t,o)=>{t?o():o(new Error(this.isEn?"Please agree the User Agreement and Privacy Policy":"请勾选《用户条款和协议》和《隐私政策》"))},trigger:["change","blur"]}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:Cs,getAuthSessionItems:X,go2Policy:ws,async inviteJoinGetComp(){const e=X().compKey;if(!e)return;const{data:t}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=t.data},findDict(){pe({dictType:"cmc_company_industry_sector"}).then(e=>{console.log("🍉 ~ RegisterForm.vue:557 ~ res:",e);const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))}).catch(e=>{})},handleChangeCompany(e){console.log("🍉 ~ RegisterForm.vue:570 ~ e:",e),this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){const e=(await ue()).data;console.log("🍉 ~ RegisterForm.vue:594 ~ IpData:",e),e&&0===e.code&&e.data&&e.data.cityId&&(this.form.city={id:e.data.cityId,type:"City",nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,raw:{city:{id:e.data.cityId,nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,countryId:e.data?.countryId},country:{id:e.data?.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=e.data?.countryId,this.handleSelectCity(this.form.city));const t=await he();this.areaCodeData=t.data.data.records},handleClearCity(){console.log("🍉 ~ RegisterForm.vue:573 handleClearCity ~ :"),this.companyResistEn=!1,this.companyResistCn=!1},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id||e.raw?.city?.countryId||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(e){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(e,t=>{"email"!==e&&"phone"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){console.log("🍉 ~ RegisterForm.vue:586 ~ captchaData:",e),this.verifyData=e;const o={target:this.form.email||this.form.phone,uuid:e.uuid,code:e.code};t(),console.log("🍉 ~ RegisterForm.vue:642 ~ startTimer:",t);let a=de,n=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(a=fe,n=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),a(o).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(this.currentCountryIsChina?this.mobileUid=t:this.emailUid=t,qe.success(n))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleRegister(){this.$refs.registerFormRef.validate(e=>{if(!e)return;if(!this.verifyData.uuid)return void qe.error(this.isEn?"Please get code first":"请先获取验证码");const t=this.getAuthSessionItems();let o={appId:this.appId,fromSys:this.appId,passwd:pr.MD5(this.form.password).toString(),clickSource:t.clickSource||"",activityCode:t.activityCode||"",referenceUserId:t.referenceUserId||"",inviterInfo:t.empNo||"",industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,uniqueCode:t.uniqueCode||""};this.currentCountryIsChina?Object.assign(o,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,account:ce(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(o,{type:"EMAIL",account:ce(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),console.log("🍉 ~ RegisterForm.vue:676 ~ submitData:",o),this.hasResistCompany?this.handleApplyJoinSubmit(o):this.handleNewCompanySubmit(o)})},async handleNewCompanySubmit(e){const t=this.getAuthSessionItems(),o={...this.form.kqInfo,...e,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?o.compNameCn=this.form.companyName:o.compNameEn=this.form.companyName,this.$emit("register",o),console.log("🍉 ~ RegisterForm.vue:698 ~ registerPayload:",o),this.loading=!0;try{const e=t.uniqueCode?se:le,a=await e(o);this.handlePostRegister(a)}catch(a){this.loading=!1}},async handleApplyJoinSubmit(e){const t=this.getAuthSessionItems(),o={...e,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(o.nameCn=this.form.nameCn),this.form.nameEn&&(o.nameEn=this.form.nameEn);["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(e=>delete o[e]),this.$emit("register",o),this.loading=!0;try{const e=t.uniqueCode?ie:re,a=await e(o);this.handlePostRegister(a)}catch(a){this.loading=!1}},handlePostRegister(e){const t=this.getAuthSessionItems();if(console.log("🍉 ~ RegisterForm.vue:749 ~ res.data:",e.data),0===e.data.code)if(e.data.data.redirect){if(_(e.data.data.result),e.data.data.result&&e.data.data.result.improveComp)return void this.$emit("need-complete",e.data.data.result.improveComp);try{ls.set("tgc",e.data.data.tgc,{expires:30});const o=e.data.data.redirectPath||t.path||"/";ne(),Es(o)}catch(o){}}else this.loading=!1,qe.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,qe.error(e.data.msg)}}},ks={class:"register-form-container"},xs={class:"register-title"},Rs={class:"resist-company-info-card"},Ts={class:"card-header"},Ls={class:"title-group"},Ps={class:"tip-text"},Ns={class:"company-content"},Fs={class:"company-name"},Vs={class:"card-header"},Us={class:"title-group"},Qs={class:"tip-text"},Ms={class:"location-info"},Ds={key:4,class:"sector-section"},js={class:"sector-label"},Os={class:"sector-group"},Js=["onClick"],qs={key:0,class:"icon-auth-checked"},Hs={class:"agree-text"},zs={class:"bottom-tip"};const Ks=/* @__PURE__ */ra(Ss,[["render",function(e,t,o,a,n,i){const r=R("JcSearch"),p=R("JcFloatWrapper"),m=R("el-form-item"),C=R("ChineseCompanySearch"),w=R("ApplyJoinBtn"),E=R("JcFloatInput"),b=R("el-option"),I=R("el-select"),S=R("google-input"),k=R("CodeInput"),T=R("el-checkbox"),L=R("el-button"),P=R("el-form");return l(),s("div",ks,[d("div",xs,[d("p",null,v(o.isEn?"New User Registration":"新用户注册"),1)]),h(P,{ref:"registerFormRef",model:n.form,rules:n.rules,class:"auth-form"},{default:x(()=>[n.hasResistCompany?(l(),s(g,{key:1},[d("div",Rs,[d("div",Ts,[d("div",Ls,[d("span",Ps,v(o.isEn?"Company name":"公司名称"),1)]),d("span",{class:"change-link",onClick:t[5]||(t[5]=e=>n.hasResistCompany=!1)},v(o.isEn?"Change":"修改"),1)]),d("div",Ns,[d("h4",Fs,v(o.isEn?n.resistCompanyInfo.compNameEn||n.resistCompanyInfo.compNameCn:n.resistCompanyInfo.compNameCn||n.resistCompanyInfo.compNameEn),1)]),d("div",Vs,[d("div",Us,[d("span",Qs,v(o.isEn?"Location(City)":"所在地(城市)"),1)])]),d("div",Ms,v(o.isEn?n.resistCompanyInfo.countryNameEn:n.resistCompanyInfo.countryNameCn)+" / "+v(o.isEn?n.resistCompanyInfo.cityNameEn:n.resistCompanyInfo.cityNameCn),1)]),h(m,{prop:i.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:x(()=>[h(E,{modelValue:n.form[i.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[6]||(t[6]=e=>n.form[i.currentCountryIsChina?"nameCn":"nameEn"]=e),label:i.currentCountryIsChina?o.isEn?"Your Full Name in Chinese":"您的中文名称":o.isEn?"Your Full Name in English":"您的名称",placeholder:o.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:x(()=>[...t[21]||(t[21]=[d("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[h(m,{prop:"city"},{default:x(()=>[h(p,{label:o.isEn?"Company Location (City)":"公司所在城市","has-value":!(!n.form.city||!n.form.city.id)},{default:x(()=>[h(r,{modelValue:n.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>n.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],onClear:i.handleClearCity,onSelect:i.handleSelectCity,placeholder:o.isEn?"Location(City)":"请输入公司所在城市"},{prefix:x(()=>[...t[19]||(t[19]=[d("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","onClear","onSelect","placeholder"])]),_:1},8,["label","has-value"])]),_:1}),h(m,{prop:"companyName"},{default:x(()=>[h(p,{label:i.currentCompanyLabel},{default:x(()=>[h(C,{class:"jc:my-0! search-company-item","company-name":n.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>n.form.companyName=e),useKq:n.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>n.form.useKq=e),kqCode:n.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>n.form.kqCode=e),kqInfo:n.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>n.form.kqInfo=e),"country-id":n.form.city?.raw?.country?.id||n.form.city?.raw?.city?.countryId||null,city:n.form.city,onChange:i.handleChangeCompany},{prefix:x(()=>[...t[20]||(t[20]=[d("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","country-id","city","onChange"])]),_:1},8,["label"])]),_:1}),n.companyResistCn||n.companyResistEn?(l(),u(w,{key:0,"is-en":o.isEn,onApplyJoin:i.handleApplyJoinClick},null,8,["is-en","onApplyJoin"])):f("",!0)],64)),i.currentCountryIsChina?(l(),u(m,{key:2,class:"phone-form-item"},{default:x(()=>[(l(),u(m,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:x(()=>[h(S,{modelValue:n.form.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>n.form.phone=e),placeholder:o.isEn?"Cell Phone Number":"手机号码",label:o.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15",disabled:n.isCounting},{prefix:x(()=>[t[22]||(t[22]=d("i",{class:"icon-auth-phone"},null,-1)),h(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(I,{modelValue:n.form.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>n.form.areaCode=e),placeholder:o.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),disabled:n.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,y(n.areaCodeData,e=>(l(),u(b,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),h(b,{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1})):f("",!0),i.currentCountryIsChina?f("",!0):(l(),u(m,{key:3,prop:"email",class:"email-form-item"},{default:x(()=>[h(E,{modelValue:n.form.email,"onUpdate:modelValue":t[11]||(t[11]=e=>n.form.email=e),label:o.isEn?"Business Email Address":"企业邮箱",placeholder:o.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[12]||(t[12]=e=>i.validateField("email"))},{prefix:x(()=>[...t[23]||(t[23]=[d("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1})),h(m,{prop:"code"},{default:x(()=>[h(k,{modelValue:n.form.code,"onUpdate:modelValue":t[13]||(t[13]=e=>n.form.code=e),placeholder:o.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:n.codeReady,"is-en":o.isEn,"show-icon":"",onSend:i.handleGetCode},{prefix:x(()=>[...t[24]||(t[24]=[d("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1}),h(m,{prop:"password",class:"password-form-item"},{default:x(()=>[h(E,{modelValue:n.form.password,"onUpdate:modelValue":t[14]||(t[14]=e=>n.form.password=e),type:"password","show-password":"",class:"input-show-pass",label:o.isEn?"Password":"密码",placeholder:o.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},{prefix:x(()=>[...t[25]||(t[25]=[d("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),n.hasResistCompany?f("",!0):(l(),s("div",Ds,[d("p",js,v(o.isEn?"Industry Sector":"行业类型"),1),d("div",Os,[(l(!0),s(g,null,y(n.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:n.form.sector===e.value}]),onClick:t=>n.form.sector=e.value},[B(v(o.isEn?e.en:e.cn)+" ",1),n.form.sector===e.value?(l(),s("i",qs)):f("",!0)],10,Js))),128))])])),h(m,{prop:"agree",class:"agree-item"},{default:x(()=>[h(T,{modelValue:n.form.agree,"onUpdate:modelValue":t[17]||(t[17]=e=>n.form.agree=e)},{default:x(()=>[d("span",Hs,[B(v(o.isEn?"I agree":"我同意")+" ",1),d("span",{class:"link-type",onClick:t[15]||(t[15]=A((...e)=>i.go2Agreement&&i.go2Agreement(...e),["stop"]))},v(o.isEn?"User Agreement":"《用户条款和协议》"),1),B(" "+v(o.isEn?"and":"和")+" ",1),d("span",{class:"link-type",onClick:t[16]||(t[16]=A((...e)=>i.go2Policy&&i.go2Policy(...e),["stop"]))},v(o.isEn?"Privacy Policy":"《隐私政策》"),1)])]),_:1},8,["modelValue"])]),_:1}),h(L,{class:c(["submit-btn register-btn",["register-btn-is-active"]]),disabled:n.loading,loading:n.loading,onClick:i.handleRegister},{default:x(()=>[B(v(o.isEn?"Register and Log in":"注册并登录")+" ",1),t[26]||(t[26]=d("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["disabled","loading","onClick"])]),_:1},8,["model","rules"]),d("div",zs,[B(v(o.isEn?"Already have an account?":"已有账号?")+" ",1),d("span",{class:"action-text",onClick:t[18]||(t[18]=t=>e.$emit("to-login"))},[B(v(o.isEn?"Click to log in":"去登录")+" ",1),t[27]||(t[27]=d("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[d("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])])])}],["__scopeId","data-v-9869a2db"]]);var Gs,Ws,Ys={};var Zs,_s={},Xs={};function $s(){if(Zs)return Xs;let e;Zs=1;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Xs.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},Xs.getSymbolTotalCodewords=function(e){return t[e]},Xs.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},Xs.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');e=t},Xs.isKanjiModeEnabled=function(){return void 0!==e},Xs.toSJIS=function(t){return e(t)},Xs}var el,tl,ol,al,nl,il={};function rl(){return el||(el=1,(e=il).L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},e.from=function(t,o){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(a){return o}}),il;var e}var sl,ll={};var cl,dl={};var ul,hl={};var pl,fl={};function ml(){if(pl)return fl;pl=1;const e=rl(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return fl.getBlocksCount=function(o,a){switch(a){case e.L:return t[4*(o-1)+0];case e.M:return t[4*(o-1)+1];case e.Q:return t[4*(o-1)+2];case e.H:return t[4*(o-1)+3];default:return}},fl.getTotalCodewordsCount=function(t,a){switch(a){case e.L:return o[4*(t-1)+0];case e.M:return o[4*(t-1)+1];case e.Q:return o[4*(t-1)+2];case e.H:return o[4*(t-1)+3];default:return}},fl}var gl,yl,vl,Al,Cl={},wl={};function El(){return yl||(yl=1,function(e){const t=function(){if(gl)return wl;gl=1;const e=new Uint8Array(512),t=new Uint8Array(256);return function(){let o=1;for(let a=0;a<255;a++)e[a]=o,t[o]=a,o<<=1,256&o&&(o^=285);for(let t=255;t<512;t++)e[t]=e[t-255]}(),wl.log=function(e){if(e<1)throw new Error("log("+e+")");return t[e]},wl.exp=function(t){return e[t]},wl.mul=function(o,a){return 0===o||0===a?0:e[t[o]+t[a]]},wl}();e.mul=function(e,o){const a=new Uint8Array(e.length+o.length-1);for(let n=0;n<e.length;n++)for(let i=0;i<o.length;i++)a[n+i]^=t.mul(e[n],o[i]);return a},e.mod=function(e,o){let a=new Uint8Array(e);for(;a.length-o.length>=0;){const e=a[0];for(let i=0;i<o.length;i++)a[i]^=t.mul(o[i],e);let n=0;for(;n<a.length&&0===a[n];)n++;a=a.slice(n)}return a},e.generateECPolynomial=function(o){let a=new Uint8Array([1]);for(let n=0;n<o;n++)a=e.mul(a,new Uint8Array([1,t.exp(n)]));return a}}(Cl)),Cl}var bl,Il={},Bl={},Sl={};function kl(){return bl||(bl=1,Sl.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),Sl}var xl,Rl,Tl,Ll={};function Pl(){if(xl)return Ll;xl=1;const e="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";Ll.KANJI=new RegExp(t,"g"),Ll.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ll.BYTE=new RegExp(o,"g"),Ll.NUMERIC=new RegExp(e,"g"),Ll.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const a=new RegExp("^"+t+"$"),n=new RegExp("^"+e+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ll.testKanji=function(e){return a.test(e)},Ll.testNumeric=function(e){return n.test(e)},Ll.testAlphanumeric=function(e){return i.test(e)},Ll}function Nl(){return Rl||(Rl=1,function(e){const t=kl(),o=Pl();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,o){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!t.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?e.ccBits[0]:o<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return o.testNumeric(t)?e.NUMERIC:o.testAlphanumeric(t)?e.ALPHANUMERIC:o.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},e.isValid=function(e){return e&&e.bit&&e.ccBits},e.from=function(t,o){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(a){return o}}}(Bl)),Bl}function Fl(){return Tl||(Tl=1,function(e){const t=$s(),o=ml(),a=rl(),n=Nl(),i=kl(),r=t.getBCHDigit(7973);function s(e,t){return n.getCharCountIndicator(e,t)+4}function l(e,t){let o=0;return e.forEach(function(e){const a=s(e.mode,t);o+=a+e.getBitsLength()}),o}e.from=function(e,t){return i.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,a,r){if(!i.isValid(e))throw new Error("Invalid QR Code version");void 0===r&&(r=n.BYTE);const l=8*(t.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,a));if(r===n.MIXED)return l;const c=l-s(r,e);switch(r){case n.NUMERIC:return Math.floor(c/10*3);case n.ALPHANUMERIC:return Math.floor(c/11*2);case n.KANJI:return Math.floor(c/13);case n.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,o){let i;const r=a.from(o,a.M);if(Array.isArray(t)){if(t.length>1)return function(t,o){for(let a=1;a<=40;a++)if(l(t,a)<=e.getCapacity(a,o,n.MIXED))return a}(t,r);if(0===t.length)return 1;i=t[0]}else i=t;return function(t,o,a){for(let n=1;n<=40;n++)if(o<=e.getCapacity(n,a,t))return n}(i.mode,i.getLength(),r)},e.getEncodedBits=function(e){if(!i.isValid(e)||e<7)throw new Error("Invalid QR Code version");let o=e<<12;for(;t.getBCHDigit(o)-r>=0;)o^=7973<<t.getBCHDigit(o)-r;return e<<12|o}}(Il)),Il}var Vl,Ul={};var Ql,Ml,Dl,jl,Ol,Jl,ql,Hl,zl={};var Kl,Gl,Wl,Yl={exports:{}};function Zl(){return Gl||(Gl=1,function(e){const t=Nl(),o=function(){if(Ml)return Ql;Ml=1;const e=Nl();function t(t){this.mode=e.NUMERIC,this.data=t.toString()}return t.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){let t,o,a;for(t=0;t+3<=this.data.length;t+=3)o=this.data.substr(t,3),a=parseInt(o,10),e.put(a,10);const n=this.data.length-t;n>0&&(o=this.data.substr(t),a=parseInt(o,10),e.put(a,3*n+1))},Ql=t}(),a=function(){if(jl)return Dl;jl=1;const e=Nl(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(t){this.mode=e.ALPHANUMERIC,this.data=t}return o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let o;for(o=0;o+2<=this.data.length;o+=2){let a=45*t.indexOf(this.data[o]);a+=t.indexOf(this.data[o+1]),e.put(a,11)}this.data.length%2&&e.put(t.indexOf(this.data[o]),6)},Dl=o}(),n=function(){if(Jl)return Ol;Jl=1;const e=Nl();function t(t){this.mode=e.BYTE,this.data="string"==typeof t?(new TextEncoder).encode(t):new Uint8Array(t)}return t.getBitsLength=function(e){return 8*e},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){for(let t=0,o=this.data.length;t<o;t++)e.put(this.data[t],8)},Ol=t}(),i=function(){if(Hl)return ql;Hl=1;const e=Nl(),t=$s();function o(t){this.mode=e.KANJI,this.data=t}return o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let o;for(o=0;o<this.data.length;o++){let a=t.toSJIS(this.data[o]);if(a>=33088&&a<=40956)a-=33088;else{if(!(a>=57408&&a<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");a-=49472}a=192*(a>>>8&255)+(255&a),e.put(a,13)}},ql=o}(),r=Pl(),s=$s(),l=function(){return Kl?Yl.exports:(Kl=1,Yl.exports=e={single_source_shortest_paths:function(t,o,a){var n={},i={};i[o]=0;var r,s,l,c,d,u,h,p=e.PriorityQueue.make();for(p.push(o,0);!p.empty();)for(l in s=(r=p.pop()).value,c=r.cost,d=t[s]||{})d.hasOwnProperty(l)&&(u=c+d[l],h=i[l],(void 0===i[l]||h>u)&&(i[l]=u,p.push(l,u),n[l]=s));if(void 0!==a&&void 0===i[a]){var f=["Could not find a path from ",o," to ",a,"."].join("");throw new Error(f)}return n},extract_shortest_path_from_predecessor_list:function(e,t){for(var o=[],a=t;a;)o.push(a),e[a],a=e[a];return o.reverse(),o},find_path:function(t,o,a){var n=e.single_source_shortest_paths(t,o,a);return e.extract_shortest_path_from_predecessor_list(n,a)},PriorityQueue:{make:function(t){var o,a=e.PriorityQueue,n={};for(o in t=t||{},a)a.hasOwnProperty(o)&&(n[o]=a[o]);return n.queue=[],n.sorter=t.sorter||a.default_sorter,n},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var o={value:e,cost:t};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}});var e}();function c(e){return unescape(encodeURIComponent(e)).length}function d(e,t,o){const a=[];let n;for(;null!==(n=e.exec(o));)a.push({data:n[0],index:n.index,mode:t,length:n[0].length});return a}function u(e){const o=d(r.NUMERIC,t.NUMERIC,e),a=d(r.ALPHANUMERIC,t.ALPHANUMERIC,e);let n,i;s.isKanjiModeEnabled()?(n=d(r.BYTE,t.BYTE,e),i=d(r.KANJI,t.KANJI,e)):(n=d(r.BYTE_KANJI,t.BYTE,e),i=[]);return o.concat(a,n,i).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function h(e,r){switch(r){case t.NUMERIC:return o.getBitsLength(e);case t.ALPHANUMERIC:return a.getBitsLength(e);case t.KANJI:return i.getBitsLength(e);case t.BYTE:return n.getBitsLength(e)}}function p(e,r){let l;const c=t.getBestModeForData(e);if(l=t.from(r,c),l!==t.BYTE&&l.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+t.toString(l)+".\n Suggested mode is: "+t.toString(c));switch(l!==t.KANJI||s.isKanjiModeEnabled()||(l=t.BYTE),l){case t.NUMERIC:return new o(e);case t.ALPHANUMERIC:return new a(e);case t.KANJI:return new i(e);case t.BYTE:return new n(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(p(t,null)):t.data&&e.push(p(t.data,t.mode)),e},[])},e.fromString=function(o,a){const n=function(e){const o=[];for(let a=0;a<e.length;a++){const n=e[a];switch(n.mode){case t.NUMERIC:o.push([n,{data:n.data,mode:t.ALPHANUMERIC,length:n.length},{data:n.data,mode:t.BYTE,length:n.length}]);break;case t.ALPHANUMERIC:o.push([n,{data:n.data,mode:t.BYTE,length:n.length}]);break;case t.KANJI:o.push([n,{data:n.data,mode:t.BYTE,length:c(n.data)}]);break;case t.BYTE:o.push([{data:n.data,mode:t.BYTE,length:c(n.data)}])}}return o}(u(o,s.isKanjiModeEnabled())),i=function(e,o){const a={},n={start:{}};let i=["start"];for(let r=0;r<e.length;r++){const s=e[r],l=[];for(let e=0;e<s.length;e++){const c=s[e],d=""+r+e;l.push(d),a[d]={node:c,lastCount:0},n[d]={};for(let e=0;e<i.length;e++){const r=i[e];a[r]&&a[r].node.mode===c.mode?(n[r][d]=h(a[r].lastCount+c.length,c.mode)-h(a[r].lastCount,c.mode),a[r].lastCount+=c.length):(a[r]&&(a[r].lastCount=c.length),n[r][d]=h(c.length,c.mode)+4+t.getCharCountIndicator(c.mode,o))}}i=l}for(let t=0;t<i.length;t++)n[i[t]].end=0;return{map:n,table:a}}(n,a),r=l.find_path(i.map,"start","end"),d=[];for(let e=1;e<r.length-1;e++)d.push(i.table[r[e]].node);return e.fromArray(function(e){return e.reduce(function(e,t){const o=e.length-1>=0?e[e.length-1]:null;return o&&o.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}(d))},e.rawSplit=function(t){return e.fromArray(u(t,s.isKanjiModeEnabled()))}}(zl)),zl}function _l(){if(Wl)return _s;Wl=1;const e=$s(),t=rl(),o=function(){if(ol)return tl;function e(){this.buffer=[],this.length=0}return ol=1,e.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let o=0;o<t;o++)this.putBit(1==(e>>>t-o-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},tl=e}(),a=function(){if(nl)return al;function e(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return nl=1,e.prototype.set=function(e,t,o,a){const n=e*this.size+t;this.data[n]=o,a&&(this.reservedBit[n]=!0)},e.prototype.get=function(e,t){return this.data[e*this.size+t]},e.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o},e.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},al=e}(),n=(sl||(sl=1,function(e){const t=$s().getSymbolSize;e.getRowColCoords=function(e){if(1===e)return[];const o=Math.floor(e/7)+2,a=t(e),n=145===a?26:2*Math.ceil((a-13)/(2*o-2)),i=[a-7];for(let t=1;t<o-1;t++)i[t]=i[t-1]-n;return i.push(6),i.reverse()},e.getPositions=function(t){const o=[],a=e.getRowColCoords(t),n=a.length;for(let e=0;e<n;e++)for(let t=0;t<n;t++)0===e&&0===t||0===e&&t===n-1||e===n-1&&0===t||o.push([a[e],a[t]]);return o}}(ll)),ll),i=function(){if(cl)return dl;cl=1;const e=$s().getSymbolSize;return dl.getPositions=function(t){const o=e(t);return[[0,0],[o-7,0],[0,o-7]]},dl}(),r=(ul||(ul=1,function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t=3,o=3,a=40,n=10;function i(t,o,a){switch(t){case e.Patterns.PATTERN000:return(o+a)%2==0;case e.Patterns.PATTERN001:return o%2==0;case e.Patterns.PATTERN010:return a%3==0;case e.Patterns.PATTERN011:return(o+a)%3==0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(a/3))%2==0;case e.Patterns.PATTERN101:return o*a%2+o*a%3==0;case e.Patterns.PATTERN110:return(o*a%2+o*a%3)%2==0;case e.Patterns.PATTERN111:return(o*a%3+(o+a)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){const o=e.size;let a=0,n=0,i=0,r=null,s=null;for(let l=0;l<o;l++){n=i=0,r=s=null;for(let c=0;c<o;c++){let o=e.get(l,c);o===r?n++:(n>=5&&(a+=t+(n-5)),r=o,n=1),o=e.get(c,l),o===s?i++:(i>=5&&(a+=t+(i-5)),s=o,i=1)}n>=5&&(a+=t+(n-5)),i>=5&&(a+=t+(i-5))}return a},e.getPenaltyN2=function(e){const t=e.size;let a=0;for(let o=0;o<t-1;o++)for(let n=0;n<t-1;n++){const t=e.get(o,n)+e.get(o,n+1)+e.get(o+1,n)+e.get(o+1,n+1);4!==t&&0!==t||a++}return a*o},e.getPenaltyN3=function(e){const t=e.size;let o=0,n=0,i=0;for(let a=0;a<t;a++){n=i=0;for(let r=0;r<t;r++)n=n<<1&2047|e.get(a,r),r>=10&&(1488===n||93===n)&&o++,i=i<<1&2047|e.get(r,a),r>=10&&(1488===i||93===i)&&o++}return o*a},e.getPenaltyN4=function(e){let t=0;const o=e.data.length;for(let a=0;a<o;a++)t+=e.data[a];return Math.abs(Math.ceil(100*t/o/5)-10)*n},e.applyMask=function(e,t){const o=t.size;for(let a=0;a<o;a++)for(let n=0;n<o;n++)t.isReserved(n,a)||t.xor(n,a,i(e,n,a))},e.getBestMask=function(t,o){const a=Object.keys(e.Patterns).length;let n=0,i=1/0;for(let r=0;r<a;r++){o(r),e.applyMask(r,t);const a=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(r,t),a<i&&(i=a,n=r)}return n}}(hl)),hl),s=ml(),l=function(){if(Al)return vl;Al=1;const e=El();function t(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(t){this.degree=t,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(t.length+this.degree);o.set(t);const a=e.mod(o,this.genPoly),n=this.degree-a.length;if(n>0){const e=new Uint8Array(this.degree);return e.set(a,n),e}return a},vl=t}(),c=Fl(),d=function(){if(Vl)return Ul;Vl=1;const e=$s(),t=e.getBCHDigit(1335);return Ul.getEncodedBits=function(o,a){const n=o.bit<<3|a;let i=n<<10;for(;e.getBCHDigit(i)-t>=0;)i^=1335<<e.getBCHDigit(i)-t;return 21522^(n<<10|i)},Ul}(),u=Nl(),h=Zl();function p(e,t,o){const a=e.size,n=d.getEncodedBits(t,o);let i,r;for(i=0;i<15;i++)r=1==(n>>i&1),i<6?e.set(i,8,r,!0):i<8?e.set(i+1,8,r,!0):e.set(a-15+i,8,r,!0),i<8?e.set(8,a-i-1,r,!0):i<9?e.set(8,15-i-1+1,r,!0):e.set(8,15-i-1,r,!0);e.set(a-8,8,1,!0)}function f(t,a,n){const i=new o;n.forEach(function(e){i.put(e.mode.bit,4),i.put(e.getLength(),u.getCharCountIndicator(e.mode,t)),e.write(i)});const r=8*(e.getSymbolTotalCodewords(t)-s.getTotalCodewordsCount(t,a));for(i.getLengthInBits()+4<=r&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const c=(r-i.getLengthInBits())/8;for(let e=0;e<c;e++)i.put(e%2?17:236,8);return function(t,o,a){const n=e.getSymbolTotalCodewords(o),i=s.getTotalCodewordsCount(o,a),r=n-i,c=s.getBlocksCount(o,a),d=n%c,u=c-d,h=Math.floor(n/c),p=Math.floor(r/c),f=p+1,m=h-p,g=new l(m);let y=0;const v=new Array(c),A=new Array(c);let C=0;const w=new Uint8Array(t.buffer);for(let e=0;e<c;e++){const t=e<u?p:f;v[e]=w.slice(y,y+t),A[e]=g.encode(v[e]),y+=t,C=Math.max(C,t)}const E=new Uint8Array(n);let b,I,B=0;for(b=0;b<C;b++)for(I=0;I<c;I++)b<v[I].length&&(E[B++]=v[I][b]);for(b=0;b<m;b++)for(I=0;I<c;I++)E[B++]=A[I][b];return E}(i,t,a)}function m(t,o,s,l){let d;if(Array.isArray(t))d=h.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let e=o;if(!e){const o=h.rawSplit(t);e=c.getBestVersionForData(o,s)}d=h.fromString(t,e||40)}}const u=c.getBestVersionForData(d,s);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(o){if(o<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else o=u;const m=f(o,s,d),g=e.getSymbolSize(o),y=new a(g);return function(e,t){const o=e.size,a=i.getPositions(t);for(let n=0;n<a.length;n++){const t=a[n][0],i=a[n][1];for(let a=-1;a<=7;a++)if(!(t+a<=-1||o<=t+a))for(let n=-1;n<=7;n++)i+n<=-1||o<=i+n||(a>=0&&a<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===a||6===a)||a>=2&&a<=4&&n>=2&&n<=4?e.set(t+a,i+n,!0,!0):e.set(t+a,i+n,!1,!0))}}(y,o),function(e){const t=e.size;for(let o=8;o<t-8;o++){const t=o%2==0;e.set(o,6,t,!0),e.set(6,o,t,!0)}}(y),function(e,t){const o=n.getPositions(t);for(let a=0;a<o.length;a++){const t=o[a][0],n=o[a][1];for(let o=-2;o<=2;o++)for(let a=-2;a<=2;a++)-2===o||2===o||-2===a||2===a||0===o&&0===a?e.set(t+o,n+a,!0,!0):e.set(t+o,n+a,!1,!0)}}(y,o),p(y,s,0),o>=7&&function(e,t){const o=e.size,a=c.getEncodedBits(t);let n,i,r;for(let s=0;s<18;s++)n=Math.floor(s/3),i=s%3+o-8-3,r=1==(a>>s&1),e.set(n,i,r,!0),e.set(i,n,r,!0)}(y,o),function(e,t){const o=e.size;let a=-1,n=o-1,i=7,r=0;for(let s=o-1;s>0;s-=2)for(6===s&&s--;;){for(let o=0;o<2;o++)if(!e.isReserved(n,s-o)){let a=!1;r<t.length&&(a=1==(t[r]>>>i&1)),e.set(n,s-o,a),i--,-1===i&&(r++,i=7)}if(n+=a,n<0||o<=n){n-=a,a=-a;break}}}(y,m),isNaN(l)&&(l=r.getBestMask(y,p.bind(null,y,s))),r.applyMask(l,y),p(y,s,l),{modules:y,version:o,errorCorrectionLevel:s,maskPattern:l,segments:d}}return _s.create=function(o,a){if(void 0===o||""===o)throw new Error("No input text");let n,i,s=t.M;return void 0!==a&&(s=t.from(a.errorCorrectionLevel,t.M),n=c.from(a.version),i=r.from(a.maskPattern),a.toSJISFunc&&e.setToSJISFunction(a.toSJISFunc)),m(o,n,s,i)},_s}var Xl,$l,ec={},tc={};function oc(){return Xl||(Xl=1,function(e){function t(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const o=parseInt(t.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:255&o,hex:"#"+t.slice(0,6).join("")}}e.getOptions=function(e){e||(e={}),e.color||(e.color={});const o=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,a=e.width&&e.width>=21?e.width:void 0,n=e.scale||4;return{width:a,scale:a?4:n,margin:o,color:{dark:t(e.color.dark||"#000000ff"),light:t(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},e.getImageWidth=function(t,o){const a=e.getScale(t,o);return Math.floor((t+2*o.margin)*a)},e.qrToImageData=function(t,o,a){const n=o.modules.size,i=o.modules.data,r=e.getScale(n,a),s=Math.floor((n+2*a.margin)*r),l=a.margin*r,c=[a.color.light,a.color.dark];for(let e=0;e<s;e++)for(let o=0;o<s;o++){let d=4*(e*s+o),u=a.color.light;if(e>=l&&o>=l&&e<s-l&&o<s-l){u=c[i[Math.floor((e-l)/r)*n+Math.floor((o-l)/r)]?1:0]}t[d++]=u.r,t[d++]=u.g,t[d++]=u.b,t[d]=u.a}}}(tc)),tc}function ac(){return $l||($l=1,function(e){const t=oc();e.render=function(e,o,a){let n=a,i=o;void 0!==n||o&&o.getContext||(n=o,o=void 0),o||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),n=t.getOptions(n);const r=t.getImageWidth(e.modules.size,n),s=i.getContext("2d"),l=s.createImageData(r,r);return t.qrToImageData(l.data,e,n),function(e,t,o){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=o,t.width=o,t.style.height=o+"px",t.style.width=o+"px"}(s,i,r),s.putImageData(l,0,0),i},e.renderToDataURL=function(t,o,a){let n=a;void 0!==n||o&&o.getContext||(n=o,o=void 0),n||(n={});const i=e.render(t,o,n),r=n.type||"image/png",s=n.rendererOpts||{};return i.toDataURL(r,s.quality)}}(ec)),ec}var nc,ic,rc={};function sc(){if(nc)return rc;nc=1;const e=oc();function t(e,t){const o=e.a/255,a=t+'="'+e.hex+'"';return o<1?a+" "+t+'-opacity="'+o.toFixed(2).slice(1)+'"':a}function o(e,t,o){let a=e+t;return void 0!==o&&(a+=" "+o),a}return rc.render=function(a,n,i){const r=e.getOptions(n),s=a.modules.size,l=a.modules.data,c=s+2*r.margin,d=r.color.light.a?"<path "+t(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+t(r.color.dark,"stroke")+' d="'+function(e,t,a){let n="",i=0,r=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),d=Math.floor(l/t);c||r||(r=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(n+=r?o("M",c+a,.5+d+a):o("m",i,0),i=0,r=!1),c+1<t&&e[l+1]||(n+=o("h",s),s=0)):i++}return n}(l,s,r.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+h+' shape-rendering="crispEdges">'+d+u+"</svg>\n";return"function"==typeof i&&i(null,p),p},rc}const lc=/* @__PURE__ */bn(function(){if(ic)return Ys;ic=1;const e=Ws?Gs:(Ws=1,Gs=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}),t=_l(),o=ac(),a=sc();function n(o,a,n,i,r){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!e())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=a,a=i=void 0):2!==l||a.getContext||(i=n,n=a,a=void 0),new Promise(function(e,r){try{const r=t.create(n,i);e(o(r,a,i))}catch(s){r(s)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(r=n,n=a,a=i=void 0):3===l&&(a.getContext&&void 0===r?(r=i,i=void 0):(r=i,i=n,n=a,a=void 0));try{const e=t.create(n,i);r(null,o(e,a,i))}catch(d){r(d)}}return Ys.create=t.create,Ys.toCanvas=n.bind(null,o.render),Ys.toDataURL=n.bind(null,o.renderToDataURL),Ys.toString=n.bind(null,function(e,t,o){return a.render(e,o)}),Ys}()),cc={class:"login-wx"},dc={class:"login-wx-code"},uc={class:"expired-text mt10 mb10"},hc={class:"scan-tip"},pc=/* @__PURE__ */ra(/* @__PURE__ */n({__name:"WechatLogin",props:{appId:{default:"ERA"},path:{},isEn:{type:Boolean,default:!1}},emits:["success","need-register","need-complete"],setup(t,{emit:a}){const n=t,i=a,r=e(null),u=e(!0),p=e(!1),g=e("");let y=null;const C=async()=>{u.value=!0,I();try{const{data:t}=await me();if(console.log("🍉 ~ WechatLogin.vue:126 ~ fetchWxCode ~ data:",t),0===t?.code){g.value=t.data?.uniqueCode,p.value=!1;try{ge({uniqueCode:g.value})}catch(e){console.log("🍉 ~ WechatLogin.vue:114 ~ fetchWxCode ~ error:",e)}await(async e=>{if(await j(),r.value)try{await lc.toCanvas(r.value,e,{width:200,margin:1,color:{dark:"#000000",light:"#ffffff"},errorCorrectionLevel:"M"})}catch(t){console.error("QR Code render error:",t)}})(t.data?.qrCodeUrl),w()}else p.value=!0}catch(e){console.error("Fetch WeChat QR fail:",e)}finally{u.value=!1}},w=()=>{const e=window.BASE_INFO?.WX_POLLING_TIME||3e3;y=setInterval(async()=>{try{console.log("🍉 ~ WechatLogin.vue:173 ~ startPolling ~ props:",n);const{data:e}=await ye({uniqueCode:g.value,appId:n.appId,redirectPath:n.path||"",kick:!1});console.log("🍉 ~ WechatLogin.vue:159 ~ startPolling ~ data:",e),0===e.code&&E(e)}catch(e){console.error("Polling error:",e),I()}},e)},E=e=>{switch(e.subcode){case"EXPIRED":case"FOLLOWED_CANCEL":p.value=!0,I();break;case"FOLLOWED_NO_USER":i("need-register",g.value);break;case"FOLLOWED_LOGIN_SUCCESS":I(!1),k(e.data)}},I=(e=!0)=>{e&&(g.value=""),ge({uniqueCode:""}),y&&(clearInterval(y),y=null)},S=()=>{C()},k=async e=>{if(e.result&&_(e.result),!0===e.redirect){const t="CPA"===n.appId?"tgc-CPA":"tgc";ls.set(t,e.tgc,{expires:30})}if(!0===e.hasLogon)try{await at.confirm(n.isEn?"The account has already logged in elsewhere. Do you want to force login?":"该账号已在其他地方登录,是否强制登录?",n.isEn?"Tips":"提示",{confirmButtonText:n.isEn?"Confirm":"确定",cancelButtonText:n.isEn?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}),R()}catch{C()}else T(e.redirectPath)},R=async()=>{u.value=!0;try{const{data:e}=await ye({uniqueCode:g.value,appId:n.appId,redirectPath:n.path||"",kick:!0});if(console.log("🍉 ~ WechatLogin.vue:279 ~ reLoginWithKick ~ data:",e),0===e.code){if(_(e.data.result),e.data.result?.improveComp)return void i("need-complete",e.data.result.improveComp);T(e.data.redirectPath)}}catch(e){qe.error(n.isEn?"Login failed":"登录失败")}finally{u.value=!1}},T=e=>{localStorage.setItem("jc-qrCode-login","wx"),I(),e&&Es(e),i("success")};return o(()=>{C()}),V(()=>{I()}),(e,o)=>(l(),s("div",cc,[m((l(),s("div",dc,[d("div",{class:c(["qr-canvas-wrapper flex-center",{"qrcode-error-mask":p.value}])},[d("canvas",{ref_key:"qrCanvasRef",ref:r},null,512)],2),p.value?(l(),s("div",{key:0,class:"refresh-overlay flex-center",onClick:S},[o[0]||(o[0]=d("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABNJJREFUWEftmF9oW3UUx7/nl21O8aGDDSqdbGIHe5i6IYWCa28CChO65cbNIVjw3rTDifogm2wgwwgFK6uwh4mO1SRzCLOb5G5tQXHQ3I0JwpRIFSarNE4f9iBScQ+j5v6O/JJcSdJ7kyY3kz54X+/vnPP5nfP7/c4fwgr/aIXz4X/AehFKZ64+ySj8bMYiC37rAnswlZpZiw5sJRHqgsTasqEFhqMM5/0MKzleJ2YFIWFEtU/bCpiamOmk1eJFCdJB3EvAKi8DDPxOoMvEuMALzrRpRu6661KW/SGAgwBnTT0caQvgmcmvu6SzOMKgQReKgYIA8gyeI+COMsTAegZtI2B9heHbIIziD3mKOkJPMfFl95+zKLcM74/MeUEuO8RJy36ZgFEAHQqKwF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t8gDg0asb5vG8H5PjN+gmqqhfvEEbCaSlV1ZHkCzXF5eARwJwPdNcOjvMoU+Zw81UwKXbYHK6Hd8RsTDwDU6zctUK2DYP6CQuLC/HfOdDNgrr2WACth1dRg4+PYukaEuliUvCod58+CxFxl2bSccDb1DraqsN1ygT3YbqBaff8AMdn1OHmbwMgAAAAASUVORK5CYII=",alt:"refresh",class:"refresh-icon"},null,-1)),d("div",uc,v(t.isEn?"The QR code has expired":"二维码已过期"),1),h(b(et),{type:"primary",class:"jc:text-white",onClick:A(S,["stop"])},{default:x(()=>[B(v(t.isEn?"Rescan QR code":"重新扫码"),1)]),_:1})])):f("",!0),d("div",hc,[o[1]||(o[1]=d("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAYCAYAAAAPtVbGAAAAAXNSR0IArs4c6QAAAmxJREFUSEvtlU1IVFEUx3/nzkSOhZXSh1QUJBQJFn0sooUM5FBDQRtJCNpIoUELsRCpySfiToiKwiAiaJMDUYsWEdaYmxIljKDoA5ISSkNQBLNp3jvxngY+fdPoxpVn+e4993fe/3/OvcIihCwCgyXIglQOlsuyDOWUgTmJIzHQbQgh4CvCc5T7TP58Rfz67/nQ5kJS1kqQ86icBikGDShER4EORNuIWp9zgfwHaDJE6n0TSA1KAUI/qgWIbAUiwCDCd5RioAjlAcZJELUG/gfyQ55Ze0DuIrIT9AMZOYuhFEMdsBn0JkYeYnMKodqTD64RTVxBRLOBZkFaahFtAtZ7CcqY54WSj2CACZRxRL+AfERI4+gIhF+gvObQxaEgkB+SamkA6lFdG1yVDoDpAV2DchBhxfQ+9y+GUO3A5LURbRicme+HdDUfw5EbU9LMDv0B0o+jGzCyCwIH+ReiXWScGiqaXSm98EM6G4uQyG0ghpDvwyi9QBihFOQd4jxCzRbQSuApqo9BGhFcFe7Q7VzAspy5EPdLd2sZGfsqcABYPg2aAO0HKQR2AOOgwyB5XqcJI6BDICXgeqe9TGoVccuTLXgYU627UbsdZf+04e6hb0DcKrfnmIs/qPYRDp2g/NK37JDOluMY4oS0D5tRlHUgNmgc4bAnW/YYQ7mHceqIWpnskGQyRGWl4+v9W2eWUbKxCqRhypeAUNKgPdimmljiU7Dxue6HZF2EotVHEamfIeVUlgsQfYkt56i4/DZ7C+eC/Ft/YhUSlr0Ysw91ViEy7EHQTaS1nSP+a2bp0ZqvsAETv6DU+W9eFE/+AnQTzRkvOD8VAAAAAElFTkSuQmCC",alt:"wechat"},null,-1)),d("span",null,v(t.isEn?"Scan to login/register":"微信扫码登录/注册JCtrans"),1)])])),[[b(He),u.value]])]))}}),[["__scopeId","data-v-6c0eaafd"]]),fc={name:"LoginTypeSwitcher",components:{ElRadioGroup:ot,ElRadioButton:tt},props:{modelValue:{type:String,default:"email"},showAccount:{type:Boolean,default:!1},showEmail:{type:Boolean,default:!0},showMobile:{type:Boolean,default:!0},isEn:{type:Boolean,default:!1}},emits:["update:modelValue","change"],methods:{handleChange(e){this.$emit("update:modelValue",e),this.$emit("change",e)}}},mc={class:"switcher-content"},gc={class:"switcher-content"},yc={class:"switcher-content"};const vc=/* @__PURE__ */ra(fc,[["render",function(e,t,o,a,n,i){const r=R("el-radio-button"),h=R("el-radio-group");return l(),u(h,{class:"login-type-switcher","model-value":o.modelValue,onChange:i.handleChange},{default:x(()=>[o.showAccount?(l(),u(r,{key:0,value:"account"},{default:x(()=>[d("div",mc,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"account"===o.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[0]||(t[0]=[d("path",{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"},null,-1)])],2)),d("span",null,v(o.isEn?"Password":"账号密码"),1)])]),_:1})):f("",!0),o.showEmail?(l(),u(r,{key:1,value:"email"},{default:x(()=>[d("div",gc,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"email"===o.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[1]||(t[1]=[d("path",{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"},null,-1)])],2)),d("span",null,v(o.isEn?"Email":"邮箱"),1)])]),_:1})):f("",!0),o.showMobile?(l(),u(r,{key:2,value:"mobile"},{default:x(()=>[d("div",yc,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"mobile"===o.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[2]||(t[2]=[d("path",{d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z"},null,-1)])],2)),d("span",null,v(o.isEn?"Cell Phone":"手机号"),1)])]),_:1})):f("",!0)]),_:1},8,["model-value","onChange"])}],["__scopeId","data-v-aea2f541"]]),Ac={class:"wechat-choose-type"},Cc={class:"choose-title"},wc={class:"choose-nav"},Ec={class:"btn-container"},bc={class:"btn-content"},Ic={class:"btn-content"},Bc=/* @__PURE__ */ra(/* @__PURE__ */n({__name:"WechatChooseType",props:{isEn:{type:Boolean}},emits:["toBind","toRegister"],setup(e,{emit:t}){const o=t,a=()=>{o("toBind")},n=()=>{o("toRegister")};return(t,o)=>(l(),s("div",Ac,[d("div",null,[d("div",Cc,v(e.isEn?"Please select whether you already have a JCtrans account":"请选择是否已有JCtrans账号"),1),d("div",wc,v(e.isEn?"If you already have a JCtrans account, you can directly link it with WeChat. If you do not have a JCtrans account, please register first":"若已有JCtrans账号,可直接与微信绑定;若没有JCtrans账号,请先注册"),1),d("div",Ec,[h(b(et),{class:"choose-btn jc:mb-6 default-btn jc:outline-none!",onClick:n},{default:x(()=>[d("div",bc,[o[0]||(o[0]=d("img",{class:"icon-account",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAkZJREFUaEPtmMtxE0EQQF+LC9xEBnYEQATgCHAIJgKL00onVhdLOkmKwAoBIrAyQETAZoBufA40NWuJMirt7vTsx6hq5rrTO/36M93TwokvOXH9iQCP7cHogeiBmhaIIaQT3iC8BS6Bs51BN8AGZSwjsppGLhUP9oCm9HnGB5RBxQkLvjOWlG0bIEEAufJPuQNeeiq14QcXbUCEAcyYV1r+kExYSMJ7T2DvbWYAnXCG8NX7hIcblQsZsQ6SLRCyA0y5Ba6ClFCWMqrIGeOP7QAzPqPesX+oTiZDzo06NnsL6RSto4AMm20g7R6IANED/0RwSAi5K3TfMtjSQdhIwiubUPnuEIAFcB2oxEqGvCuS3V8QlkS3A9w3b66NsC/lvKy56wTAaa1T7F7wKGLdAczp84s7Q0HzauY6A8i94CB+klbmg7J0+3w60U4B9gmQN3eQ0uPFA49kKJ+Aj0XNm7WiFyW2OYntmXtc4uQBjmE9Sgg15ZHd7ZY3iq3WgSYVPvxXpx7IpxE9XufvYvc+EPoo/VwpYYuSIWT85guw9nmJtQ6wm0S4NmLwV1l/l7jxyrps1NIagPcIxR9m1dTMqPIa1RsuecJtgMWrcFytcIOvVdXGsu+lABoyPrFqI6SSMLaK7fcXAugsn7q5VqH9de+JoLPKAL61EDbHjSFsJeF5iKX+DwAIHrcUA9wwoMc8xCpmmTZCKC/tE67ocW3o+626u2K3lCR/IAWtyms06K8dCkWADo199KjogeiBmhaIIVTTgLXF/wBd2cQxtxFH4QAAAABJRU5ErkJggg==",alt:"register"},null,-1)),B(" "+v(e.isEn?"Create New Account":"注册新账号"),1)])]),_:1}),h(b(et),{type:"primary",class:"choose-btn submit-btn jc:outline-none!",onClick:a},{default:x(()=>[d("div",Ic,[o[1]||(o[1]=d("img",{class:"icon-account",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAmtJREFUaEPtmN1tFEEQhKsSIAEgAAQBGALg5x2IAAIAAsAEYMO7HYHFu+0EMARgEYAhASdQqNCsdLfs3vb07p2xNCPdy932bX1dPTM9Q9zywVuuHw3gph1sDjQHZmaglZCkJwCeAngB4F5J6CUAfw5JXs1M8sbwtAOS7gD4AODNhMBjAAckr7cBkgIo4r8CeBgUZTdebgMiC/ApkPk+2zHJj0Hg8GPVAJLuA/gefsP6g3bhIhk7GJYB+AzgdVLE4i5kAM4BPEoCXJHcS8Yu5sDvOQJI3p0T34/NONAAmgMrGciU0I+VlqE2mZck3XYsNjIAmU2sE3xC8t1i6oH6I6WkxwDcRmTGXm1zVzbO5ySPhl5Y7YD/RNI+gLeVBEckHRceRbyT5S53fwgiC+BOdKvNXE+8W/JXQ+6lAIoLhngfcMLW+1wQbqej4q0jDdDVQXmZQdxad+31LwCnAM7HmjdJLsGzflZrxC8CEC7olQcl+RDk1WytNGrF3ySAW/Jucv6FKHxr30VWrNkllHGgzKE+hLV4tRmdsIsto1nR/bheyfjnKvGzSqjcRnhT6yavVyV/PLziWIwns8/DFyS/DYGvQGhsqdyUsKoSKod5rx6ehJ3YqCEG8nHyn6uWAoFIzfdfFgKouEKJwpwsdWc0CSDpGYAviYxPwdgRu2GY9NgIIGlO5xkVZYiD6MPhEpLkWzfvsLsYaYhRByT93ELZjCXjmuSDTKb+F4D0dcsmgK5fySSmNsaXv4e1QZMbmSTfwBkkeolbq8EbnQ86vsFOjcllNPWvOwxqADtM9uCrmgPNgZkZaCU0M4Gzw/8A2kXkMc0wZl8AAAAASUVORK5CYII=",alt:"login"},null,-1)),B(" "+v(e.isEn?"Bind Existing Account":"绑定已有账号"),1)])]),_:1})])])]))}}),[["__scopeId","data-v-29100ac5"]]),Sc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAUxJREFUWEftloFNAkEURN90YAlaiVKBloAVKBUIFYgVKBVoB9KBdiAl0MGaSfbMgqu7id+gyf2EAFmOeTd/9t+KA5cOrM8IMDoQ4kBKaQqc5kCvJK17wx0FsASusuhMkr93VRTANXCbFdeSJl3qELMNU0rHwFsW3QInkvzerBAHrJJSegbOsuJS0qypHuVABrC4IYaaSlq1IMIcyBCPwEUhOpe0+A4iGuAIeAGciaE2gCEcTn/eqR2A3Mfy4paDtXVD+FUrB3Mi6XVY3Adwkn8K0II2wMeg+nMAEXd/X2xHu2Hb75wBwBnYljMiOoQ3wLzogYW9E74cSmEAe9PQDAtJJUw1G5EA5SR8kHTZSqPXQwAqd+9nwac9XwOKAvB5wOFzHeRpWJ4HunpfHUQ9Pav9JqVkgPO85gPJU+9/hbSgV+zXMjACjA78awfeAcb6aCEtUXPAAAAAAElFTkSuQmCC";function kc(t={}){console.log("🍉 ~ useAuthLogin.ts:27 ~ useAuthLogin ~ options:",t);const{appId:o="ERA",isEn:a=!1}=t,n=e(!1),i=e(!1),r=e(null),s=e(!1),l=e=>{console.log("🍉 ~ useAuthLogin.ts:36 ~ executeRedirect ~ loginData:",e);const t=X()||{},o=e.redirectPath||t.path||"/";e.result&&_(e.result),console.log("🍉 Redirecting to:",o),Es(o)},c=async e=>{const{loginType:i,loginForm:c={},captchaData:u={},isKick:h=!1,mobileUid:p,emailUid:f,areaCodeData:m=[],remember:g}=e;n.value=!0,h||(r.value=u);const y=X()||{},v={appId:o,fromSys:o,kick:h,inviterInfo:y.empNo||void 0,redirectPath:y.path||"/",...y,...u};let A=Ae;if("account"===i)Object.assign(v,{type:"PASSWORD",username:c.username,password:pr.MD5(c.password).toString(),uniqueCode:""});else if("wechat"===i)Object.assign(v,{type:"WECHAT",uniqueCode:y.uniqueCode}),y.uniqueCode||v.uniqueCode||console.warn("WeChat login missing uniqueCode"),A=Ae;else{const e="mobile"===c.type,t=e?p:f;if(Object.assign(v,{type:e?"MOBILE":"EMAIL",account:e?c.phone:c.email,verificationCodeValue:c.code,verificationCodeUuid:t}),e){const e=m.find(e=>e.telCode===c.areaCode);v.areaCode=c.areaCode,v.areaCodeCountryId=e?.id}if(!v.verificationCodeUuid)return n.value=!1,void qe.error(a?"Please get the verification code first":"请先获取验证码");A=Ce}try{const{data:o}=await A(v);if(console.log("🍉 ~ useAuthLogin.ts:144 ~ handleAuthSubmit ~ res:",o),0===o.code){const i=o.data||{};if(!0===i.hasLogon&&!i.tgc)return void d(e);if(i.tgc){i.result&&_(i.result),g&&ls.set("tgc",i.tgc,{expires:30,domain:ve()});const e=i.result?.improveComp;if(e)return s.value=!0,n.value=!1,void(t.onNeedComplete&&t.onNeedComplete(i));qe.success(a?"Login successful":"登录成功"),t.onSuccess?t.onSuccess(i):l(i)}else t.onSuccess&&t.onSuccess(i)}else qe.error(o.msg||(a?"Login failed":"登录失败"))}catch(C){console.error("Login Error:",C),qe.error(a?"Network Error":"网络请求异常")}finally{n.value=!1}},d=e=>{at.confirm(a?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",a?"Tips":"提示",{confirmButtonText:a?"Confirm":"确定",cancelButtonText:a?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{c({...e,isKick:!0})}).catch(()=>{n.value=!1})},u=async e=>{const{loginType:i,loginForm:r,captchaData:c,uniqueCode:d,isKick:u=!0,mobileUid:p,emailUid:f,areaCodeData:m=[]}=e;console.log("🍉 ~ useAuthLogin.ts:261 ~ handleBindSubmit ~ params:",e),n.value=!0;const g=X()||{};let y,v={appId:o,uniqueCode:d,kick:u,code:c.code,uuid:c.uuid,redirectPath:g.path||"/",fromSys:o};if(console.log("🍉 ~ useAuthLogin.ts:279 ~ handleBindSubmit ~ payload:",v),"account"===i)y=we,Object.assign(v,{username:r.username,password:pr.MD5(r.password).toString(),rememberMe:r.remember||!1});else{y=Ee;const e="mobile"===r.type,t=e?p:f;if(Object.assign(v,{type:e?"MOBILE":"EMAIL",account:e?r.phone:r.email,verificationCodeValue:r.code,verificationCodeUuid:t,rememberMe:r.remember||!1}),e){const e=m.find(e=>e.telCode===r.areaCode);Object.assign(v,{areaCode:r.areaCode,areaCodeCountryId:e?.id})}if(!v.verificationCodeUuid)return n.value=!1,void qe.error(a?"Please get the verification code first":"请先获取验证码")}try{const{data:o}=await y(v);if(console.log("🍉 Bind Result:",o),0===o.code){const i=o.data||{};if(!0===i.hasLogon&&!i.tgc)return void h(e);if(i.tgc){i.result&&_(i.result),ls.set("tgc",i.tgc,{expires:30,domain:ve()});const e=i.result?.improveComp;if(e)return s.value=!0,n.value=!1,void(t.onNeedComplete&&t.onNeedComplete(i));qe.success(a?"Linked and logged in successfully":"绑定并登录成功"),t.onSuccess?t.onSuccess(i):l(i)}else t.onSuccess&&t.onSuccess(i)}else qe.error(o.msg||(a?"Binding failed":"绑定失败"))}catch(A){console.error("Bind Error:",A),qe.error(a?"Network Error":"网络请求异常")}finally{n.value=!1}},h=e=>{at.confirm(a?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",a?"Tips":"提示",{confirmButtonText:a?"Confirm":"确定",cancelButtonText:a?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{u({...e,isKick:!0})}).catch(()=>{n.value=!1})};return{loading:n,captchaVisible:i,handleAuthSubmit:c,executeRedirect:l,loginNeedComplete:s,handleBindSubmit:u}}const xc={class:"bind-wechat-title"},Rc={class:"title"},Tc={class:"sub-title"},Lc={class:"register-bottom"},Pc=/* @__PURE__ */ra(/* @__PURE__ */n({__name:"WechatBindLogin",props:{isEn:{type:Boolean}},emits:["needComplete"],setup(o,{emit:a}){const n=o,i=a,{loading:r,captchaVisible:c,handleBindSubmit:p}=kc({appId:"ERA",isEn:n.isEn,onNeedComplete:e=>{console.log("需要完善信息,暂不关闭弹窗"),i("needComplete",e)}}),m=e({type:"account",username:"",password:"",remember:!1,email:"",phone:"",areaCode:"",code:""}),A=e([]),C=e(),w=e(!1),E=e(!1),I=e({}),S=e(""),k=e(""),R=t(()=>m.value.type),T=t(()=>{const e={username:[{required:!0,trigger:"blur",message:n.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:n.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,o)=>{fs(0,t,o,n.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>{ys(0,t,o,n.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>{As(0,t,o,n.isEn)},trigger:"blur"}]};return"account"===R.value?{username:e.username,password:e.password}:"email"===R.value||"mobile"===R.value?{code:e.code,..."email"===m.value.type?{email:e.email}:{phone:e.phone}}:{}});async function L(e){if("mobile"==e&&0===A.value.length){const e=await he();A.value=e.data.data.records}}function P(e){C.value.validateField(e,e=>{w.value=e})}function N(){C.value.validate(e=>{if(e)if("account"===R.value)c.value=!0;else{if(console.log("🍉 ~ WechatBindLogin.vue:316 ~ handleSubmit ~ verifyData:",I),!I.value||!I.value.uuid)return qe.error(n.isEn?"Please get code first":"请先获取验证码");F(I.value)}})}function F(e){c.value=!1;const t=(X()||{}).uniqueCode||"";t?p({loginType:"account"===R.value?"account":"code",loginForm:m.value,captchaData:{...e},uniqueCode:t,mobileUid:S.value,emailUid:k.value,areaCodeData:A.value}):console.error("Missing uniqueCode for binding")}function V({captchaData:e,startTimer:t}){console.log("🍉 ~ WechatBindLogin.vue:353 ~ handleGetCode ~ captchaData:",e);const o="mobile"===m.value.type;I.value=e;const a={target:m.value.email||m.value.phone,uuid:e.uuid,code:e.code};o&&(a.areaCode=m.value.areaCode);const i=o?fe:de;t(),i(a).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(o?S.value=t:k.value=t,qe.success(n.isEn?"Verification code sent":"验证码已发送"))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")}return(e,t)=>(l(),s("div",null,[d("div",xc,[d("div",Rc,[t[11]||(t[11]=d("img",{class:"icon-auth-wechat",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAABeFJREFUeF7tm19S40YQxr+Wlspj2BPE3ABOYGQOEDhB8AnCPqay4H+V5yUnAE4AvAfknGC9J4hvEOVxa0GzNZKNZVt4etQj21RGj/b0uPXz1zPdPRLBXyICJLL2xvAAhSLwAD1AIQGhuVegBygkIDT3CvQAhQSE5l6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i+fEm+8joBw3ROo9ezONBB0oZmq40Quv8gKuFagBz592dyLUuiBW+07vKujykw01HgSmtGkMF+ohAP4/DO/Cn9D03jKsDdAZx8o/XtTlxpTS3oZV0xV+ZRwbQCcRJmJnWpiogqtqUrZ21AXxZi+jSmFKUOvECsP4qhwvU4qxZrsCpU/Ef+4wcruQWtjGEKeI+DeYOIOfosVwB+TlGPLiFcpgacdVWNm5tm0jxx8s3gTGUfmBSH4Mudo0LxtrhNNDnzeX5nASGte1C6mOwd6PA5fDNy62o0P2dteEb2ZMKCH968S0Ie3n7inHwbg3E0oDQnvN7LQBn4bsMzsZ/TilnM5/92OVKZy0A48ExoHZt/rlSv8y1qj0SGwvibx7Tad2EsI2TprHVNyPTzKu/t6yBtxdgVt+GuiuzcFQp42Ogd4NWx/S0WXkWW6dbled2WWcbnSh5lMRoMxuwfSE89W0tz16rysrb3hBe/Pcfel0QdSxEwRuqe5D6zFl4ba8CizeWq/GK3Y7iQKmw45ZN+zYAvoS1rrefzgBqWp7a6dfF5vuG+qzkqCN+r+VtAZxT5eAw26lTaoI0nOnLi3qQPnCiEYL0CxAOswc2MxVTt9Axsk6a374COaFpGpMn6/oZ78bkwXTRG6JvV4EmUKbvNUgHLzD+fwGaADO/9wCZoF4b5gF6gEICQnOvQA9QSEBo7hXoAQoJCM29Aj1AIQGhuVegBygkIDT3CvQAhQSE5l6BHqCQgND8O/QeMm9D6KpFAAAAAElFTkSuQmCC",alt:""},null,-1)),B(" "+v(o.isEn?"Log in and link with WeChat":"登录并绑定微信"),1)]),d("div",Tc,v(o.isEn?"After linking, you can log in via WeChat scan, which is convenient and quick":"绑定后,可通过微信扫码登录,方便快捷"),1)]),h(b(Ye),{ref_key:"bindLoginFormRef",ref:C,model:m.value,rules:T.value,"validate-on-rule-change":!1,class:"wechat-bind-login-form-content"},{default:x(()=>[h(b(Xe),{prop:"type",class:"form-type"},{default:x(()=>[h(vc,{modelValue:m.value.type,"onUpdate:modelValue":t[0]||(t[0]=e=>m.value.type=e),"is-en":o.isEn,"show-account":"",class:"jc:max-w-full!",onChange:L},null,8,["modelValue","is-en"])]),_:1}),"account"===R.value?(l(),s(g,{key:0},[h(b(Xe),{prop:"username",class:"form-user"},{default:x(()=>[h(pn,{modelValue:m.value.username,"onUpdate:modelValue":t[1]||(t[1]=e=>m.value.username=e),placeholder:o.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),h(b(Xe),{prop:"password",class:"password-item"},{default:x(()=>[h(pn,{modelValue:m.value.password,"onUpdate:modelValue":t[2]||(t[2]=e=>m.value.password=e),type:"password",class:"input-show-pass",placeholder:o.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"email"===R.value?(l(),u(b(Xe),{key:1,prop:"email"},{default:x(()=>[h(pn,{modelValue:m.value.email,"onUpdate:modelValue":t[3]||(t[3]=e=>m.value.email=e),placeholder:o.isEn?"Email Address":"邮箱地址",onBlur:t[4]||(t[4]=e=>P("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),u(b(Xe),{key:2,ref:"areaCodeCountryId",class:"tel"},{default:x(()=>[(l(),u(b(Xe),{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:x(()=>[h(pn,{modelValue:m.value.phone,"onUpdate:modelValue":t[7]||(t[7]=e=>m.value.phone=e),placeholder:o.isEn?"Cell Phone Number":"手机号码",label:o.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[8]||(t[8]=e=>P("phone")),maxlength:"15",disabled:E.value},{prefix:x(()=>[h(b(Xe),{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(b(ze),{modelValue:m.value.areaCode,"onUpdate:modelValue":t[5]||(t[5]=e=>m.value.areaCode=e),placeholder:o.isEn?"Code":"区号",onChange:t[6]||(t[6]=e=>P("areaCode")),disabled:E.value,"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,y(A.value,e=>(l(),u(b(Ke),{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),h(b(Ke),{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1},512)),"email"===R.value||"mobile"===R.value?(l(),u(b(Xe),{key:3,prop:"code"},{default:x(()=>[h(Rr,{modelValue:m.value.code,"onUpdate:modelValue":t[9]||(t[9]=e=>m.value.code=e),placeholder:o.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:w.value,"is-en":o.isEn,onSend:V},null,8,["modelValue","placeholder","ready","is-en"])]),_:1})):f("",!0),d("div",Lc,[h(b(et),{class:"submit-btn",onClick:N,loading:b(r)},{default:x(()=>[B(v(o.isEn?"Login and Link":"登录并绑定")+" ",1),t[12]||(t[12]=d("img",{style:{width:"16px",height:"16px","vertical-align":"middle"},src:Sc,alt:""},null,-1))]),_:1},8,["loading"])])]),_:1},8,["model","rules"]),h(Br,{visible:b(c),"onUpdate:visible":t[10]||(t[10]=e=>O(c)?c.value=e:null),"is-en":o.isEn,onSuccess:F},null,8,["visible","is-en"])]))}}),[["__scopeId","data-v-95a06405"]]),Nc={name:"CompleteInfoForm",components:{ElForm:Ye,ElFormItem:Xe,ElButton:et,ElSelect:ze,ElOption:Ke,JcFloatInput:Cn,CodeInput:Rr,JcFloatWrapper:is,JcSearch:sa,ChineseCompanySearch:rn,GoogleInput:pn,JcVerifySlide:Br,ApplyJoinBtn:Bs},props:{isEn:Boolean},emits:["success"],data(){return{isReady:!1,loading:!1,verifyVisible:!1,verifyData:{},codeReady:!1,mobileUid:"",emailUid:"",areaCodeData:[],hasResistCompany:!1,companyResistCn:!1,companyResistEn:!1,resistCompanyInfo:null,currentUserMobile:null,currentUserEmail:null,form:{city:"",cityId:"",countryId:"",companyName:"",nameCn:"",nameEn:"",sector:"Logistics",phone:"",areaCode:"+86",email:"",code:"",useKq:!1,kqCode:"",kqInfo:null},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,o)=>this.hasResistCompany?o():vs(0,t,o,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,o)=>ms(0,t,o,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,o)=>ms(0,t,o,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>ys(0,t,o,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(e,t,o)=>fs(0,t,o,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>As(0,t,o,this.isEn),trigger:"blur"}]}}},computed:{countryId(){return this.form.city?.raw?.country?.id||this.resistCompanyInfo?.countryId},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId;return[1].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},isShowMobileCode(){return!!this.isReady&&(this.currentCountryIsChina&&!this.currentUserMobile)},isShowEmailCode(){return!!this.isReady&&!this.currentUserEmail}},mounted(){this.getAreaCodeData(),this.findDict(),this.getUserPermsInfo()},methods:{getUserPermsInfo(){Be().then(e=>{console.log("🍉 ~ CompleteInfoForm.vue:462 ~ res:",e),this.currentUserMobile=e.data.data?.mobile,this.currentUserEmail=e.data.data?.email}).catch(()=>{this.currentUserMobile=null,this.currentUserEmail=null}).finally(()=>{this.isReady=!0})},handleCompanyExistStatus(e){e&&(this.companyResistCn=e.cnExists,this.companyResistEn=e.enExists,this.resistCompanyInfo=e.companyInfo)},handleChangeCompany(e){console.log("🍉 ~ RegisterForm.vue:570 ~ e:",e),this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.formRef.clearValidate("companyName")})},async getAreaCodeData(){const e=await he();this.areaCodeData=e.data.data.records},findDict(){pe({dictType:"cmc_company_industry_sector"}).then(e=>{const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))})},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id||e.raw?.city?.countryId||"",this.$nextTick(()=>{!this.hasResistCompany&&this.form.companyName&&this.$refs.formRef.validateField("companyName"),this.$refs.formRef.validateField("city")})},validateField(e){this.$refs.formRef.validateField(e,t=>{"phone"!==e&&"email"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){this.verifyData=e;const o={target:this.isShowMobileCode?this.form.phone:this.form.email,uuid:e.uuid,code:e.code},a=this.isShowMobileCode?fe:de;this.isShowMobileCode&&(o.areaCode=this.form.areaCode,o.areaCodeCountryId=this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id),t(),a(o).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(this.isShowMobileCode?this.mobileUid=t:this.emailUid=t,qe.success(this.isEn?"Code Sent":"验证码已发送"))})},handleSubmit(){this.$refs.formRef.validate(e=>{e&&(this.hasResistCompany?this.handleJoinSubmit():this.handleNewSubmit())})},handleNewSubmit(){this.loading=!0;const e={cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector,nameCn:this.currentCountryIsChina?this.form.companyName:"",nameEn:this.currentCountryIsChina?"":this.form.companyName,mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",path:window?.location.pathname||"/",...this.form.kqInfo};Ie(e).then(e=>{0===e.data.code?(qe.success(this.isEn?"Success":"提交成功"),this.$emit("success",e.data.data)):qe.error(e.data.msg)}).finally(()=>{this.loading=!1})},handleJoinSubmit(){this.loading=!0;const e={compId:this.resistCompanyInfo.compId,nameCn:this.form.nameCn,nameEn:this.form.nameEn,industrySector:this.form.sector,areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,account:this.isShowMobileCode?this.form.phone:this.form.email,type:this.isShowMobileCode?"MOBILE":"EMAIL",mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",path:window?.location.pathname||"/"};be(e).then(e=>{if(0===e.data.code){if(e.data.data.redirect)try{Cookies.set("tgc",e.data.data.tgc,{expires:30});const t=this.getAuthSessionItems(),o=e.data.data.redirectPath||t.path||"/";resetAuthSessionItems(),Es(o)}catch(t){}else this.loading=!1,qe.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");this.$emit("success",e.data.data)}else qe.error(e.data.msg)}).finally(()=>{this.loading=!1})}}},Fc={class:"complete-info-container"},Vc={class:"complete-info-container_header"},Uc={class:"complete-info-container_title"},Qc={class:"complete-info-container_tip-box"},Mc={class:"sector-section"},Dc={class:"sector-label"},jc={class:"sector-group"},Oc=["onClick"],Jc={key:0,class:"icon-auth-checked"},qc={class:"resist-company-info-card"},Hc={class:"card-header"},zc={class:"title-group"},Kc={class:"tip-text"},Gc={class:"company-content"},Wc={class:"company-name"},Yc={class:"card-header"},Zc={class:"title-group"},_c={class:"tip-text"},Xc={class:"location-info"};const $c=/* @__PURE__ */ra(Nc,[["render",function(e,t,o,a,n,i){const r=R("JcSearch"),p=R("JcFloatWrapper"),m=R("el-form-item"),A=R("ChineseCompanySearch"),C=R("ApplyJoinBtn"),w=R("JcFloatInput"),E=R("el-option"),b=R("el-select"),I=R("GoogleInput"),S=R("CodeInput"),k=R("el-button"),T=R("el-form");return l(),s("div",Fc,[d("div",Vc,[d("div",Uc,v(o.isEn?"Complete Your Information":"完善企业信息"),1),d("div",Qc,[t[15]||(t[15]=d("img",{src:"https://resources.jctrans.com/res/era/pc/img/icon_gantan.png",alt:""},null,-1)),d("span",null,v(o.isEn?"To provide you with better service, please complete the following enterprise information":"为了给您提供更好的服务,请完善以下企业信息"),1)])]),h(T,{ref:"formRef",model:n.form,rules:n.rules,class:"auth-form"},{default:x(()=>[n.hasResistCompany?(l(),s(g,{key:1},[d("div",qc,[d("div",Hc,[d("div",zc,[d("span",Kc,v(o.isEn?"Company name":"公司名称"),1)]),d("span",{class:"change-link",onClick:t[5]||(t[5]=e=>n.hasResistCompany=!1)},v(o.isEn?"Change":"修改"),1)]),d("div",Gc,[d("h4",Wc,v(o.isEn?n.resistCompanyInfo.compNameEn||n.resistCompanyInfo.compNameCn:n.resistCompanyInfo.compNameCn||n.resistCompanyInfo.compNameEn),1)]),d("div",Yc,[d("div",Zc,[d("span",_c,v(o.isEn?"Location(City)":"所在地(城市)"),1)])]),d("div",Xc,v(o.isEn?n.resistCompanyInfo.countryNameEn:n.resistCompanyInfo.countryNameCn)+" / "+v(o.isEn?n.resistCompanyInfo.cityNameEn:n.resistCompanyInfo.cityNameCn),1)]),h(m,{prop:i.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:x(()=>[h(w,{modelValue:n.form[i.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[6]||(t[6]=e=>n.form[i.currentCountryIsChina?"nameCn":"nameEn"]=e),label:i.currentCountryIsChina?o.isEn?"Your Full Name in Chinese":"您的中文名称":o.isEn?"Your Full Name in English":"您的名称",placeholder:o.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:x(()=>[...t[18]||(t[18]=[d("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[h(m,{prop:"city"},{default:x(()=>[h(p,{label:o.isEn?"Company Location (City)":"公司所在城市","has-value":!(!n.form.city||!n.form.city.id)},{default:x(()=>[h(r,{modelValue:n.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>n.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],lang:o.isEn?"en":"zh-CN",placeholder:o.isEn?"Location(City)":"请输入公司所在城市",onSelect:i.handleSelectCity},{prefix:x(()=>[...t[16]||(t[16]=[d("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","lang","placeholder","onSelect"])]),_:1},8,["label","has-value"])]),_:1}),h(m,{prop:"companyName"},{default:x(()=>[h(p,{label:i.currentCompanyLabel},{default:x(()=>[h(A,{class:"jc:my-0! search-company-item","company-name":n.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>n.form.companyName=e),useKq:n.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>n.form.useKq=e),kqCode:n.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>n.form.kqCode=e),kqInfo:n.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>n.form.kqInfo=e),lang:o.isEn?"en":"zh-CN","country-id":i.countryId||null,city:n.form.city,"onUpdate:existStatus":i.handleCompanyExistStatus,onChange:i.handleChangeCompany},{prefix:x(()=>[...t[17]||(t[17]=[d("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","lang","country-id","city","onUpdate:existStatus","onChange"])]),_:1},8,["label"])]),_:1}),n.companyResistCn||n.companyResistEn?(l(),u(C,{key:0,onApplyJoin:i.handleApplyJoinClick},null,8,["onApplyJoin"])):f("",!0),d("div",Mc,[d("p",Dc,v(o.isEn?"Industry Sector":"行业类型"),1),d("div",jc,[(l(!0),s(g,null,y(n.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:n.form.sector===e.value}]),onClick:t=>n.form.sector=e.value},[B(v(o.isEn?e.en:e.cn)+" ",1),n.form.sector===e.value?(l(),s("i",Jc)):f("",!0)],10,Oc))),128))])])],64)),i.isShowMobileCode?(l(),s(g,{key:2},[h(m,{ref:"areaCodeCountryId",class:"phone-form-item"},{default:x(()=>[h(m,{prop:"phone",ref:"phone",class:"tel-mobile","inline-message":!0},{default:x(()=>[h(I,{modelValue:n.form.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>n.form.phone=e),placeholder:o.isEn?"Cell Phone Number":"手机号码",label:o.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15"},{prefix:x(()=>[t[19]||(t[19]=d("i",{class:"icon-auth-phone"},null,-1)),h(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(b,{modelValue:n.form.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>n.form.areaCode=e),placeholder:o.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,y(n.areaCodeData,e=>(l(),u(E,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1})]),_:1},8,["modelValue","placeholder","label"])]),_:1},512)]),_:1},512),h(m,{prop:"code"},{default:x(()=>[h(S,{modelValue:n.form.code,"onUpdate:modelValue":t[11]||(t[11]=e=>n.form.code=e),placeholder:o.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:n.codeReady,"is-en":o.isEn,"show-icon":"","form-type-color":"4",onSend:i.handleGetCode},{prefix:x(()=>[...t[20]||(t[20]=[d("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),i.isShowEmailCode?(l(),s(g,{key:3},[h(m,{prop:"email",class:"email-form-item"},{default:x(()=>[h(w,{modelValue:n.form.email,"onUpdate:modelValue":t[12]||(t[12]=e=>n.form.email=e),label:o.isEn?"Business Email Address":"企业邮箱",placeholder:o.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[13]||(t[13]=e=>i.validateField("email"))},{prefix:x(()=>[...t[21]||(t[21]=[d("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),h(m,{prop:"code"},{default:x(()=>[h(S,{modelValue:n.form.code,"onUpdate:modelValue":t[14]||(t[14]=e=>n.form.code=e),placeholder:o.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:n.codeReady,"is-en":o.isEn,"show-icon":"","form-type-color":"4",onSend:i.handleGetCode},{prefix:x(()=>[...t[22]||(t[22]=[d("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),h(k,{class:"submit-btn register-btn register-btn-is-active",loading:n.loading,onClick:i.handleSubmit},{default:x(()=>[B(v(o.isEn?"Submit":"完成并进入"),1)]),_:1},8,["loading","onClick"])]),_:1},8,["model","rules"])])}],["__scopeId","data-v-a48b8dc2"]]);const ed={class:"auth-footer-box"},td=/* @__PURE__ */ra(/* @__PURE__ */n({__name:"FooterBox",props:{label:{type:String,default:""},subLabel:{type:String,default:""}},emits:["handleClick"],setup(e,{emit:t}){const o=t,a=()=>{o("handleClick")};return(t,o)=>(l(),s("div",ed,[B(v(e.label)+" ",1),d("span",{class:"action-text",onClick:A(a,["stop"])},[B(v(e.subLabel)+" ",1),o[0]||(o[0]=d("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[d("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])]))}}),[["__scopeId","data-v-de818a5b"]]),od={class:"forget-password-container"},ad={class:"forget-box"},nd={class:"header-title"},id={key:0,class:"kefu-wrapper"},rd={class:"kefu-text"},sd={key:1,class:"form-wrapper"},ld={key:0},cd={key:1},dd={class:"tab-switcher"},ud={class:"default-info"},hd={class:"title"},pd={class:"user-value"},fd=/* @__PURE__ */ra(/* @__PURE__ */n({__name:"ForgetPassword",props:["isEn"],emits:["to-login"],setup(t,{emit:o}){const a=t,n=o,{activeStep:i,activeTab:r,loading:u,verifyVisible:p,formA:m,formB:g,userData:y,disabledTabs:A,showCustomerService:C,codeCountdown:w,handleTriggerVerify:E,handleVerifySuccess:I,handleSendCodeVerifySuccess:S,handleSubmitReset:R,restFormB:T}=function(t){const o=e(1),a=e(!1),n=e(!1),i=e(),r=k({userName:""}),s=e({}),l=e(!1),c=e("email"),d=k({email:!1,mobile:!1}),u=k({code:"",password:"",confirmPassword:""}),h=e(""),p=e(!1),f=k({mobile:!1,email:!1}),m=async e=>{a.value=!0;try{const a=await xe({account:r.userName,...e});if(a.data.data?.exists){s.value=a.data.data;const e=!!s.value.email,t=!!s.value.mobile;e||t?(l.value=!1,o.value=2,e?(c.value="email",d.email=!1,d.mobile=!t):(c.value="mobile",d.mobile=!1,d.email=!0)):l.value=!0}else qe.error(t.isEn?"Account does not exist":"账号不存在")}catch(n){console.error(n)}finally{a.value=!1}},g=async(e,o)=>{console.log("🍓🍓 ~ useForgetPassword.ts:120 ~ sendVerifyCode ~ captchaData:",e);try{i.value=e;const{data:a}=await ke({account:s.value.account,target:c.value,...e});console.log("🍉 ~ useForgetPassword.ts:127 ~ sendVerifyCode ~ res:",a),0===a.code&&(qe.success(t.isEn?"Verification code sent":"验证码已发送"),h.value=a.data.verifyCode,o(),"mobile"===c.value?f.mobile=!0:f.email=!0)}catch(a){console.error(a)}};return{activeStep:o,activeTab:c,loading:a,verifyVisible:n,formA:r,formB:u,userData:s,disabledTabs:d,showCustomerService:l,codeCountdown:f,codeReady:p,handleTriggerVerify:()=>{n.value=!0},handleVerifySuccess:e=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleVerifySuccess ~ captchaData:",e),n.value=!1,console.log("🍉 ~ useForgetPassword.ts:53 ~ handleVerifySuccess ~ ctiveStep.value:",o.value),1===o.value&&m(e)},handleSendCodeVerifySuccess:({captchaData:e,startTimer:t})=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleSendCodeVerifySuccess ~ captchaData:",e),2===o.value&&g(e,t)},handleSubmitReset:async()=>{if(i.value?.uuid){a.value=!0;try{const e={id:s.value.id,account:s.value.account,codeId:h.value,codeValue:u.code,password:pr.MD5(u.password).toString(),...i.value},{data:o}=await Se(e);return 0===o.code?(qe.success(t.isEn?"Password reset successfully":"密码重置成功"),!0):(qe.error(o.msg),!1)}catch(e){return console.error(e),!1}finally{a.value=!1}}else qe.info(t.isEn?"Please get the verification code first":"请先获取验证码")},restFormB:()=>{u.code="",u.password="",u.confirmPassword="",h.value="",p.value=!1,f.mobile=!1,f.email=!1}}}({isEn:a.isEn}),L=e(),P=e(),N=(e,t,o)=>{""===t?o(new Error(a.isEn?"Please input the password again":"请再次输入密码")):t!==g.password?o(new Error(a.isEn?"Two inputs don't match!":"两次输入密码不一致!")):o()},F={userName:[{required:!0,message:a.isEn?"Please enter username":"请输入账号",trigger:"blur"}]},V={code:[{required:!0,validator:(e,t,o)=>As(0,t,o,a.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,o)=>gs(0,t,o,a.isEn),trigger:"blur"},{validator:N,trigger:"blur"}],confirmPassword:[{required:!0,validator:(e,t,o)=>gs(0,t,o,a.isEn),trigger:"blur"},{validator:N,trigger:"blur"}]},U=()=>{L.value.validate(e=>{e&&E()})},Q=async()=>{P.value&&await P.value.validate(async e=>{if(e){await R()&&n("to-login")}})},M=e=>{e&&A[e]||(r.value=e||r.value,T())};return(e,o)=>(l(),s("div",od,[d("div",ad,[d("div",nd,[d("h1",null,v(t.isEn?"Reset Password":"重置密码"),1)]),b(C)?(l(),s("div",id,[o[8]||(o[8]=d("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAAXNSR0IArs4c6QAAIABJREFUeF7svQt4VtWZ9n/vHMlBRERCtTIC9hNtEfCbqWhstRWwB9uIoo6OOBVqqx1lpAUcL/1/hP/YzxZRqTpqiyKKSqUqxioKCTM4YwKdtnKqVDoQKXQcAogBcj693/XssMObN+9h73cf1973vi6uaLL2Ws/6PSvJnWet9Twa+JAACZAACZAACZAACUSKgBap2XKyJEACJEACJEACJEACoADkIiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgAR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EAAAhCAAAQgkDICCMCUbTjLhQAEIAABCEAAAghAzgAEIAABCEAAAhBIGQEEYMo2nOVCAAIQgAAEIAABBCBnAAIQgAAEIAABCKSMAAIwZRvOciEAAQhAAAIQgAACkDMAAQhAAAIQgAAEUkYAAZiyDWe5EIAABCAAAQhAAAHIGYAABCAAAQhAAAIpI4AATNmGs1wIQAACEIAABCCAAOQMQAACEIAABCAAgZQRQACmbMNZLgQgAAEIQAACEEAAcgYgAAEIQAACEIBAygggAFO24SwXAhCAAAQgAAEI/D8t7N6/Cx82BAAAAABJRU5ErkJggg==",class:"kefu-img"},null,-1)),d("p",rd,v(t.isEn?"The current account does not have a phone number and email, and cannot be verified. Please contact customer service directly":"当前账号没有手机号和邮箱,无法验证,请直接联系客服。"),1),d("div",null,v(t.isEn?"Customer Service":"联系客服"),1)])):(l(),s("div",sd,[1===b(i)?(l(),s("div",ld,[h(b(Ye),{ref_key:"formARef",ref:L,model:b(m),rules:F},{default:x(()=>[h(b(Xe),{prop:"userName",class:"jc:mb-5!"},{default:x(()=>[h(pn,{modelValue:b(m).userName,"onUpdate:modelValue":o[0]||(o[0]=e=>b(m).userName=e),placeholder:t.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),h(b(et),{type:"primary",class:"submit-btn",loading:b(u),onClick:U},{default:x(()=>[B(v(t.isEn?"Next":"下一步"),1)]),_:1},8,["loading"])]),_:1},8,["model"])])):f("",!0),2===b(i)?(l(),s("div",cd,[d("div",dd,[d("div",{class:c(["tab-item",{active:"email"===b(r),disabled:b(A).email}]),onClick:o[1]||(o[1]=e=>M("email"))},[o[9]||(o[9]=d("svg",{t:"1767855712095",class:"icon-svg",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9362","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},[d("path",{fill:"currentColor",d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z","p-id":"9363"})],-1)),B(" "+v(t.isEn?"Email Verify":"邮箱验证"),1)],2),d("div",{class:c(["tab-item",{active:"mobile"===b(r),disabled:b(A).mobile}]),onClick:o[2]||(o[2]=e=>M("mobile"))},[o[10]||(o[10]=d("svg",{t:"1767855760413",class:"icon-svg",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9516","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},[d("path",{fill:"currentcolor",d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z","p-id":"9517"})],-1)),B(" "+v(t.isEn?"Mobile Verify":"手机验证"),1)],2)]),h(b(Ye),{ref_key:"formBRef",ref:P,model:b(g),rules:V},{default:x(()=>[h(b(Xe),{class:"info-item"},{default:x(()=>[d("p",ud,[d("span",hd,v("email"===b(r)?t.isEn?"Email":"邮箱":t.isEn?"Mobile":"手机号"),1),d("span",pd,v("email"===b(r)?b(y).email:b(y).mobile),1)])]),_:1}),h(b(Xe),{prop:"code"},{default:x(()=>[h(Rr,{"show-icon":"",modelValue:b(g).code,"onUpdate:modelValue":o[3]||(o[3]=e=>b(g).code=e),placeholder:t.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:!0,"is-en":t.isEn,"custom-countdown":"email"===b(r)?b(w).email:b(w).mobile,onSend:b(S)},null,8,["modelValue","placeholder","is-en","custom-countdown","onSend"])]),_:1}),h(b(Xe),{prop:"password"},{default:x(()=>[h(Cn,{modelValue:b(g).password,"onUpdate:modelValue":o[4]||(o[4]=e=>b(g).password=e),type:"password","show-password":"",class:"input-show-pass",label:t.isEn?"Password":"密码",placeholder:t.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},{prefix:x(()=>[...o[11]||(o[11]=[d("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),h(b(Xe),{prop:"confirmPassword"},{default:x(()=>[h(Cn,{modelValue:b(g).confirmPassword,"onUpdate:modelValue":o[5]||(o[5]=e=>b(g).confirmPassword=e),type:"password","show-password":"",class:"input-show-pass",label:t.isEn?"Confirm Password":"确认密码",placeholder:t.isEn?"Enter password again":"请再次输入密码"},{prefix:x(()=>[...o[12]||(o[12]=[d("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),h(b(et),{type:"primary",class:"submit-btn",loading:b(u),onClick:Q},{default:x(()=>[B(v(t.isEn?"Confirm":"确认修改"),1)]),_:1},8,["loading"])]),_:1},8,["model"])])):f("",!0)]))]),h(td,{label:t.isEn?"Back to":"返回","sub-label":t.isEn?"log in":"登录",onHandleClick:o[6]||(o[6]=e=>n("to-login")),style:{margin:"12px -16px -16px"}},null,8,["label","sub-label"]),h(Br,{visible:b(p),"onUpdate:visible":o[7]||(o[7]=e=>O(p)?p.value=e:null),"is-en":t.isEn,onSuccess:b(I)},null,8,["visible","is-en","onSuccess"])]))}}),[["__scopeId","data-v-d4402ec7"]]),md={class:"bind-container"},gd={class:"bind-title"},yd={key:0,class:"user-list"},vd=["onClick"],Ad={class:"bind-user-card__right"},Cd={class:"bind-user-card__right__title"},wd={class:"bind-user-card__right__desc"},Ed={key:0,class:"bind-user-card__right__info"},bd={key:1,class:"bind-user-card__right__info"},Id={class:"bind-user-card__btn"},Bd={key:1,class:"bind-form-content"},Sd={class:"current-bind-info"},kd={class:"highlight"},xd={class:"tel-areacode"},Rd={class:"register-bottom"},Td=/* @__PURE__ */ra(/* @__PURE__ */n({__name:"ThirdBindLogin",props:{isEn:{type:Boolean,default:!1},bindList:{type:Array,default:()=>[]}},setup(o){const a=o,n=e(!1),i=e(null),c=t(()=>i.value?i.value:1===a.bindList.length?a.bindList[0]:null),p=e(),m=e({type:"account",username:"",password:"",email:"",phone:"",areaCode:"+86",code:""}),C=e([]),w=e(!0),E=e(!1),I=e(""),S=e(""),k=e({});let R=null;r(c,e=>{e&&(m.value.username=e.account||"",m.value.email=e.email||"",m.value.phone=e.mobile||"",console.log("🍉 ~ ThirdBindLogin.vue:290 ~ loginForm:",m),e.account?m.value.type="account":e.email?m.value.type="email":m.value.type="mobile",e.mobile&&0===C.value.length&&he().then(e=>C.value=e.data.data.records))},{immediate:!0});const T=t(()=>{const e={username:[{required:!0,trigger:"blur",message:a.isEn?"Enter Username":"请输入账号"}],password:[{required:!0,trigger:"blur",message:a.isEn?"Enter Password":"请输入密码"}],email:[{required:!0,validator:(e,t,o)=>{fs(0,t,o,a.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>{ys(0,t,o,a.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>As(0,t,o,a.isEn),trigger:"blur"}]};return"account"===m.value.type?{username:e.username,password:e.password}:{code:e.code,..."email"===m.value.type?{email:e.email}:{phone:e.phone}}}),L=e=>{i.value=e},P=async e=>{if(p.value?.clearValidate(),"mobile"==e&&0===C.value.length){const e=await he();C.value=e.data.data.records}},N=e=>{p.value?.validateField(e,e=>{w.value=e})},F=({captchaData:e,startTimer:t})=>{k.value=e,R=t,V(e)},V=e=>{const t="mobile"===m.value.type,o={target:t?m.value.phone:m.value.email,uuid:e.uuid,code:e.code};t&&(o.areaCode=m.value.areaCode);const n=t?fe:de;R&&R(),n(o).then(e=>{const o=e.data.data?.verifyCode||e.data.verifyCode;0!==e.data.code&&200!==e.data.code||(t?I.value=o:S.value=o,qe.success(a.isEn?"Code sent":"验证码已发送"))}).catch(console.error)},U=()=>{p.value?.validate(e=>{if(e)if("account"===m.value.type)E.value=!0;else{if(!I.value&&!S.value)return qe.error(a.isEn?"Please get code first":"请先获取验证码");M(k.value)}})},Q=e=>{E.value=!1,M(e)},M=e=>{n.value=!0;const t=ds(),o=X(),i={thirdPartyType:t?.thirdPartyType,thirdPartyId:t?.thirdPartyId,thirdPartyEmail:t?.thirdPartyEmail,thirdPartyUserName:t?.thirdPartyUserName,appId:"ERA",kick:!0,userId:c.value.userId,activityCode:o?.activityCode||"",referenceUserId:o?.referenceUserId||""};let r;if("account"===m.value.type)r=Re({...i,account:m.value.username,password:pr.MD5(m.value.password).toString(),verificationCodeUuid:e.uuid,verificationCodeValue:e.code,...e});else{const t="mobile"===m.value.type;r=Te({...i,type:t?"MOBILE":"EMAIL",account:t?m.value.phone:m.value.email,verificationCodeUuid:t?I.value:S.value,verificationCodeValue:m.value.code,...e})}r.then(e=>{if(console.log("🍉 ~ ThirdBindLogin.vue:483 ~ doBindRequest ~ res:",e),0!==e.data.code)return qe.error(e.data.msg||(a.isEn?"Login failed":"登录失败"));if(e.data.data){console.log("🍉 ~ ThirdBindLogin.vue:489 ~ doBindRequest ~ res.data.data:",e.data.data);const t=e.data.data;return t.tgc&&ls.set("tgc",t.tgc,{expires:30}),t.result&&_(t.result),void(t.redirectPath&&Es(t.redirectPath))}"USER_HAS_OTHER_BIND"!==e.data.subCode?(e.data.result&&_(e.data.result),e.data.tgc&&ls.set("tgc",e.data.tgc,{expires:30}),e.data.redirectPath&&Es(e.data.redirectPath)):qe.error(a.isEn?"Bound to other user":"该账号已绑定其他用户")}).finally(()=>{n.value=!1})};return(e,t)=>(l(),s("div",md,[d("div",gd,[d("div",null,v(c.value?o.isEn?"Log in and link":"绑定并登录":o.isEn?"Select account to link":"请选择要关联的账号"),1),c.value&&o.bindList.length>1?(l(),s("div",{key:0,class:"back-btn",onClick:t[0]||(t[0]=e=>i.value=null)},v(o.isEn?"< Back":"< 返回选择"),1)):f("",!0)]),c.value?(l(),s("div",Bd,[d("div",Sd,[d("span",null,v(o.isEn?"Binding Account:":"正在绑定账号:"),1),d("span",kd,v(c.value.account||c.value.email||c.value.mobile),1)]),h(b(Ye),{ref_key:"bindLoginFormRef",ref:p,model:m.value,rules:T.value,"validate-on-rule-change":!1,class:"third-bind-login-form-content"},{default:x(()=>[h(b(Xe),{prop:"type",class:"form-type"},{default:x(()=>[h(vc,{modelValue:m.value.type,"onUpdate:modelValue":t[1]||(t[1]=e=>m.value.type=e),"is-en":o.isEn,"show-account":"","show-email":!!m.value.email&&"1"===c.value.emailValidFlag,"show-mobile":!!m.value.phone&&"1"===c.value.mobileValidFlag,class:"jc:max-w-full!",onChange:P},null,8,["modelValue","is-en","show-email","show-mobile"])]),_:1}),"account"===m.value.type?(l(),s(g,{key:0},[h(b(Xe),{prop:"username",class:"form-user"},{default:x(()=>[h(pn,{modelValue:m.value.username,"onUpdate:modelValue":t[2]||(t[2]=e=>m.value.username=e),disabled:"",placeholder:o.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),h(b(Xe),{prop:"password",class:"password-item"},{default:x(()=>[h(pn,{modelValue:m.value.password,"onUpdate:modelValue":t[3]||(t[3]=e=>m.value.password=e),type:"password",class:"input-show-pass",placeholder:o.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"email"===m.value.type?(l(),u(b(Xe),{key:1,prop:"email"},{default:x(()=>[h(pn,{modelValue:m.value.email,"onUpdate:modelValue":t[4]||(t[4]=e=>m.value.email=e),disabled:"",placeholder:o.isEn?"Email Address":"邮箱地址",onBlur:t[5]||(t[5]=e=>N("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),u(b(Xe),{key:2,ref:"areaCodeCountryId",class:"tel"},{default:x(()=>[h(b(Xe),{prop:"phone",ref:"phone",class:"tel-mobile","inline-message":!0},{default:x(()=>[h(pn,{modelValue:m.value.phone,"onUpdate:modelValue":t[6]||(t[6]=e=>m.value.phone=e),placeholder:o.isEn?"Cell Phone Number":"手机号码",label:o.isEn?"Cell Phone Number":"手机号码",clearable:"",disabled:"",autocomplete:"off",onBlur:t[7]||(t[7]=e=>N("phone")),maxlength:"15"},{prefix:x(()=>[d("div",xd,v(m.value.areaCode),1)]),_:1},8,["modelValue","placeholder","label"])]),_:1},512)]),_:1},512)),"email"===m.value.type||"mobile"===m.value.type?(l(),u(b(Xe),{key:3,prop:"code"},{default:x(()=>[h(Rr,{modelValue:m.value.code,"onUpdate:modelValue":t[8]||(t[8]=e=>m.value.code=e),placeholder:o.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:w.value,"is-en":o.isEn,onSend:F},null,8,["modelValue","placeholder","ready","is-en"])]),_:1})):f("",!0),d("div",Rd,[h(b(et),{class:"submit-btn",onClick:U,loading:n.value},{default:x(()=>[B(v(o.isEn?"Login and Link":"登录并绑定")+" ",1),t[13]||(t[13]=d("img",{style:{width:"16px",height:"16px","vertical-align":"middle","margin-left":"4px"},src:Sc,alt:""},null,-1))]),_:1},8,["loading"])])]),_:1},8,["model","rules"])])):(l(),s("div",yd,[(l(!0),s(g,null,y(o.bindList,(e,a)=>(l(),s("div",{class:"bind-user-card",key:a,onClick:t=>L(e)},[t[12]||(t[12]=d("div",{class:"bind-user-card__left"},[d("div",{class:"account-icon"})],-1)),d("div",Ad,[d("div",Cd,v(o.isEn?e.userNameEn||e.userNameCn:e.userNameCn||e.userNameEn),1),d("div",wd,v(o.isEn?e.compNameEn||e.compNameCn:e.compNameEn||e.compNameEn),1),e.email?(l(),s("div",Ed,[t[10]||(t[10]=d("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855712095'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9362'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20fill='currentcolor'%20d='M113.242353%20250.217412l356.352%20356.412235a60.235294%2060.235294%200%200%200%2080.655059%204.156235l4.577882-4.156235%20356.111059-356.171294c1.204706%204.397176%201.987765%208.914824%202.409412%2013.552941l0.240941%206.987294v481.882353c0%2042.345412-32.768%2077.101176-74.270118%2080.112941l-6.023529%200.240942H190.765176a80.293647%2080.293647%200%200%201-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824%200.421647-9.456941%201.204706-14.034823l1.505883-6.746353z%20m720.052706-59.512471c4.818824%200%209.637647%200.421647%2014.215529%201.204706l6.866824%201.566118-342.136471%20342.13647-342.256941-342.13647c4.397176-1.204706%209.035294-2.048%2013.673412-2.409412l7.107764-0.361412h642.529883z'%20p-id='9363'%3e%3c/path%3e%3c/svg%3e"},null,-1)),B(" "+v(e.email),1)])):f("",!0),e.mobile?(l(),s("div",bd,[t[11]||(t[11]=d("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855760413'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9516'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M694.874353%20918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235%2064.271059-173.778824%20142.336-207.209412a59.030588%2059.030588%200%200%201%2058.006588%206.324706c64.210824%2046.863059%20108.604235%20117.639529%20146.672941%20173.357176%2017.227294%2025.178353%2013.071059%2059.512471-10.24%2079.75153L363.52%20439.717647a19.275294%2019.275294%200%200%200-5.722353%2024.696471c17.709176%2032.346353%2049.332706%2080.353882%2085.473882%20116.495058%2036.141176%2036.141176%2086.437647%2069.752471%20120.952471%2089.509648a19.395765%2019.395765%200%200%200%2025.840941-6.445177l50.959059-77.703529c19.516235-25.961412%2056.018824-31.623529%2082.582588-13.251765%2056.500706%2039.092706%20122.458353%2082.642824%20170.706824%20144.444235a59.030588%2059.030588%200%200%201%207.589647%2059.632941c-33.611294%2078.426353-118.663529%20145.167059-207.088941%20141.914353z'%20p-id='9517'%3e%3c/path%3e%3c/svg%3e"},null,-1)),B(" "+v(e.mobile),1)])):f("",!0)]),d("div",Id,[h(b(et),{type:"primary",size:"small",onClick:A(t=>L(e),["stop"])},{default:x(()=>[B(v(o.isEn?"Select":"选择"),1)]),_:1},8,["onClick"])])],8,vd))),128))])),h(Br,{visible:E.value,"onUpdate:visible":t[9]||(t[9]=e=>E.value=e),"is-en":o.isEn,onSuccess:Q},null,8,["visible","is-en"])]))}}),[["__scopeId","data-v-03262f63"]]),Ld={name:"RegisterForm",components:{ElDialog:We,ElForm:Ye,ElFormItem:Xe,ElInput:Ge,ElButton:et,ElCheckbox:$e,ElSelect:ze,ElOption:Ke,ElRadioGroup:ot,ElRadioButton:tt,JcFloatInput:Cn,CodeInput:Rr,JcFloatWrapper:is,JcSearch:sa,ChineseCompanySearch:rn,GoogleInput:pn,ApplyJoinBtn:Bs},props:{isEn:Boolean},computed:{isAgree(){return this.form.agree},countryId(){return this.form.city?.raw?.country?.id},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId||this.resistCompanyInfo?.countryId;return[1].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},showEmailBindBtn(){return!this.currentCountryIsChina&&this.thirdPartyEmailVerifyList.length>0},showMobileBindBtn(){return this.currentCountryIsChina&&this.thirdPartyMobileVerifyList.length>0}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:"",cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,o)=>vs(0,t,o,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,o)=>ms(0,t,o,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,o)=>ms(0,t,o,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(e,t,o)=>async function(e,t,o,a=!0,n){if(console.log("🍉 ~ constant.ts:106 ~ validateThirdPartyEmail ~ context:",n),null==t||""===t)o(new Error(a?"Please enter a valid business email address":"请输入正确的公司邮箱"));else if(/[\u4e00-\u9fa5]+/.test(t))o(new Error(a?"Please enter a valid business email address":"请输入正确的公司邮箱"));else try{const e=await oe({email:t});console.log("🍉 ~ constant.ts:129 ~ validateThirdPartyEmail ~ res:",e),e.data.data&&0!==e.data.data.records.length?(us(e.data.data.records),n.thirdPartyEmailVerifyList=e.data.data.records,o(new Error(a?"This email has been registered":"邮箱已注册"))):(us([]),n.thirdPartyEmailVerifyList=[],o())}catch(i){o(new Error(a?"This email has been registered":"邮箱已注册"))}}(0,t,o,this.isEn,this),trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>function(e,t,o,a=!0,n){t?!0===/^[0-9]*$/.test(t)?t.length<2?o(new Error(a?"please enter at least 2 characters.":"请输入至少2个字符")):oe({mobile:t}).then(e=>{e.data.data&&0!==e.data.data.records.length?(hs(e.data.data.records),n.thirdPartyMobileVerifyList=e.data.data.records,o(new Error(a?"This mobile number has been registered":"手机号已注册"))):(hs([]),n.thirdPartyMobileVerifyList=[],o())}).catch(()=>{o(new Error(a?"This mobile number has been registered":"手机号已注册"))}):o(new Error("请正确填写手机号")):o(new Error(a?"Please enter your cell phone number":"请输入手机号"))}(0,t,o,this.isEn,this),trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>As(0,t,o,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,o)=>gs(0,t,o,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(e,t,o)=>{t?o():o(new Error(this.isEn?"Please agree the User Agreement and Privacy Policy":"请勾选《用户条款和协议》和《隐私政策》"))},trigger:["change","blur"]}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1,thirdPartyMobileVerifyList:[],thirdPartyEmailVerifyList:[]}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:Cs,getAuthSessionItems:X,go2Policy:ws,handleBindThirdParty(e){this.$emit("bind-third-party","email"===e?this.thirdPartyEmailVerifyList:this.thirdPartyMobileVerifyList)},async inviteJoinGetComp(){const e=X().compKey;if(!e)return;const{data:t}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=t.data},findDict(){pe({dictType:"cmc_company_industry_sector"}).then(e=>{console.log("🍉 ~ RegisterForm.vue:527 ~ res:",e);const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))}).catch(e=>{console.log("🍉 ~ RegisterForm.vue:527 ~ err:",e)})},handleChangeCompany(e){console.log("🍉 ~ RegisterForm.vue:570 ~ e:",e),this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){const e=(await ue()).data;e&&0===e.code&&e.data&&e.data.cityId&&(this.form.city={id:e.data.cityId,type:"City",nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,raw:{city:{id:e.data.cityId,nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,countryId:e.data?.countryId},country:{id:e.data?.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=e.data?.countryId,this.handleSelectCity(this.form.city));const t=await he();this.areaCodeData=t.data.data.records},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id||e.raw?.city?.countryId||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(e){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(e,t=>{"email"!==e&&"phone"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){this.verifyData=e;const o={target:this.form.email||this.form.phone,uuid:e.uuid,code:e.code};let a=de,n=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(a=fe,n=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),t(),a(o).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(this.currentCountryIsChina?this.mobileUid=t:this.emailUid=t,qe.success(n))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleRegister(){this.$refs.registerFormRef.validate(e=>{if(!e)return;const t=this.getAuthSessionItems(),{thirdPartyId:o,thirdPartyEmail:a,thirdPartyType:n,thirdPartyUserName:i}=ds();let r={appId:this.appId,fromSys:this.appId,passwd:pr.MD5(this.form.password).toString(),industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,clickSource:t.clickSource||"",activityCode:t.activityCode||"",referenceUserId:t.referenceUserId||"",inviterEmpNo:t.empNo||"",registerType:t.registerType||"",registerEvent:t.registerEvent||"",thirdPartyId:o,thirdPartyEmail:a,thirdPartyType:n,thirdPartyUserName:i};this.currentCountryIsChina?Object.assign(r,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode)?.id,account:ce(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(r,{type:"EMAIL",account:ce(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(r):this.handleNewCompanySubmit(r)})},async handleNewCompanySubmit(e){const t={...this.form.kqInfo,...e,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?t.compNameCn=this.form.companyName:t.compNameEn=this.form.companyName,this.$emit("register",t),this.loading=!0;try{const e=await Pe(t);this.handlePostRegister(e)}catch(o){this.loading=!1}},async handleApplyJoinSubmit(e){const t={...e,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(t.nameCn=this.form.nameCn),this.form.nameEn&&(t.nameEn=this.form.nameEn);["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(e=>delete t[e]),this.$emit("register",t),this.loading=!0;try{const e=await Le(t);this.handlePostRegister(e)}catch(o){this.loading=!1}},handlePostRegister(e){const t=this.getAuthSessionItems();if(0===e.data.code)if(console.log("🍉 ~ RegisterForm.vue:717 ~ res.data:",e.data.data,e.data.data.redirect),e.data.data.redirect)try{ls.set("tgc",e.data.data.tgc,{expires:30}),e.data.data.result&&_(e.data.data.result);const o=e.data.data.redirectPath||t.path||"/";Es(o),ne()}catch(o){console.log("🍉 ~ RegisterForm.vue:737 ~ error:",o)}else this.loading=!1,qe.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,qe.error(e.data.msg)}}},Pd={class:"third-register-form-container"},Nd={class:"resist-company-info-card"},Fd={class:"card-header"},Vd={class:"title-group"},Ud={class:"tip-text"},Qd={class:"company-content"},Md={class:"company-name"},Dd={class:"location-info"},jd={key:6,class:"sector-section"},Od={class:"sector-label"},Jd={class:"sector-group"},qd=["onClick"],Hd={key:0,class:"icon-auth-checked"},zd={class:"agree-text"};const Kd={name:"AuthDialog",components:{ElDialog:We,ElForm:Ye,ElFormItem:Xe,ElInput:Ge,ElButton:et,ElCheckbox:$e,ElSelect:ze,ElOption:Ke,ElRadioGroup:ot,ElRadioButton:tt,GoogleInput:pn,CodeInput:Rr,RegisterForm:Ks,LoginTypeSwitcher:vc,JcVerifySlide:Br,WechatLogin:pc,WechatChooseType:Bc,WechatBindLogin:Pc,CompleteInfoForm:$c,ForgetPassword:fd,ThirdBindLogin:Td,ThirdRegisterForm:/* @__PURE__ */ra(Ld,[["render",function(e,t,o,a,n,i){const r=R("JcSearch"),p=R("JcFloatWrapper"),m=R("el-form-item"),C=R("ChineseCompanySearch"),w=R("ApplyJoinBtn"),E=R("JcFloatInput"),b=R("el-option"),I=R("el-select"),S=R("google-input"),k=R("CodeInput"),T=R("el-checkbox"),L=R("el-button"),P=R("el-form");return l(),s("div",Pd,[h(P,{ref:"registerFormRef",model:n.form,rules:n.rules,class:"auth-form"},{default:x(()=>[n.hasResistCompany?(l(),s(g,{key:1},[d("div",Nd,[d("div",Fd,[d("div",Vd,[d("span",Ud,v(o.isEn?"Company Name":"公司名称"),1)]),d("span",{class:"change-link",onClick:t[5]||(t[5]=e=>n.hasResistCompany=!1)},v(o.isEn?"Change":"修改"),1)]),d("div",Qd,[d("h4",Md,v(o.isEn?n.resistCompanyInfo.compNameEn:n.resistCompanyInfo.compNameCn||n.resistCompanyInfo.compNameEn),1)]),t[22]||(t[22]=d("div",{class:"card-header"},[d("div",{class:"title-group"},[d("span",{class:"tip-text"}," Location(City)")])],-1)),d("div",Dd,v(o.isEn?n.resistCompanyInfo.countryNameEn:n.resistCompanyInfo.countryNameCn)+" / "+v(o.isEn?n.resistCompanyInfo.cityNameEn:n.resistCompanyInfo.cityNameCn),1)]),h(m,{prop:i.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:x(()=>[h(E,{modelValue:n.form[i.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[6]||(t[6]=e=>n.form[i.currentCountryIsChina?"nameCn":"nameEn"]=e),label:i.currentCountryIsChina?o.isEn?"Your Full Name in Chinese":"您的中文名称":o.isEn?"Your Full Name in English":"您的名称",placeholder:o.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:x(()=>[...t[23]||(t[23]=[d("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[h(m,{prop:"city"},{default:x(()=>[h(p,{label:o.isEn?"Company Location (City)":"公司所在城市","has-value":!(!n.form.city||!n.form.city.id)},{default:x(()=>[h(r,{modelValue:n.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>n.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],placeholder:o.isEn?"Location(City)":"请输入公司所在城市",onSelect:i.handleSelectCity},{prefix:x(()=>[...t[20]||(t[20]=[d("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","placeholder","onSelect"])]),_:1},8,["label","has-value"])]),_:1}),h(m,{prop:"companyName"},{default:x(()=>[h(p,{label:i.currentCompanyLabel},{default:x(()=>[h(C,{class:"jc:my-0! search-company-item","company-name":n.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>n.form.companyName=e),useKq:n.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>n.form.useKq=e),kqCode:n.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>n.form.kqCode=e),kqInfo:n.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>n.form.kqInfo=e),"country-id":n.form.city?.raw?.country?.id||null,city:n.form.city,onChange:i.handleChangeCompany},{prefix:x(()=>[...t[21]||(t[21]=[d("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","country-id","city","onChange"])]),_:1},8,["label"])]),_:1}),n.companyResistCn||n.companyResistEn?(l(),u(w,{key:0,onApplyJoin:i.handleApplyJoinClick},null,8,["onApplyJoin"])):f("",!0)],64)),i.currentCountryIsChina?(l(),u(m,{key:2,ref:"areaCodeCountryId",class:"phone-form-item"},{default:x(()=>[(l(),u(m,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:x(()=>[h(S,{modelValue:n.form.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>n.form.phone=e),placeholder:o.isEn?"Cell Phone Number":"手机号码",label:o.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15",disabled:n.isCounting},{prefix:x(()=>[t[24]||(t[24]=d("i",{class:"icon-auth-phone"},null,-1)),h(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(I,{modelValue:n.form.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>n.form.areaCode=e),placeholder:o.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),disabled:n.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,y(n.areaCodeData,e=>(l(),u(b,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),h(b,{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1},512)):f("",!0),i.currentCountryIsChina?f("",!0):(l(),u(m,{key:3,prop:"email",class:"email-form-item"},{default:x(()=>[h(E,{modelValue:n.form.email,"onUpdate:modelValue":t[11]||(t[11]=e=>n.form.email=e),label:o.isEn?"Business Email Address":"企业邮箱",placeholder:o.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[12]||(t[12]=e=>i.validateField("email"))},{prefix:x(()=>[...t[25]||(t[25]=[d("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1})),i.showEmailBindBtn?(l(),u(m,{key:4},{default:x(()=>[d("div",{class:"third-party-bind-btn",onClick:t[13]||(t[13]=e=>i.handleBindThirdParty("email"))},[B(v(o.isEn?"To bind":"去绑定")+" ",1),t[26]||(t[26]=d("img",{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png",style:{marginLeft:"2px",width:"8px",height:"12px"}},null,-1))])]),_:1})):f("",!0),i.showMobileBindBtn?(l(),u(m,{key:5},{default:x(()=>[d("div",{class:"third-party-bind-btn",onClick:t[14]||(t[14]=e=>i.handleBindThirdParty("mobile"))},[B(v(o.isEn?"To bind":"去绑定")+" ",1),t[27]||(t[27]=d("img",{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png",style:{marginLeft:"2px",width:"8px",height:"12px"}},null,-1))])]),_:1})):f("",!0),h(m,{prop:"code"},{default:x(()=>[h(k,{modelValue:n.form.code,"onUpdate:modelValue":t[15]||(t[15]=e=>n.form.code=e),placeholder:o.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:n.codeReady,"is-en":o.isEn,"show-icon":"",onSend:i.handleGetCode},{prefix:x(()=>[...t[28]||(t[28]=[d("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1}),h(m,{prop:"password",class:"password-form-item"},{default:x(()=>[h(E,{modelValue:n.form.password,"onUpdate:modelValue":t[16]||(t[16]=e=>n.form.password=e),type:"password","show-password":"",class:"input-show-pass",label:o.isEn?"Password":"密码",placeholder:o.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},{prefix:x(()=>[...t[29]||(t[29]=[d("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),n.hasResistCompany?f("",!0):(l(),s("div",jd,[d("p",Od,v(o.isEn?"Industry Sector":"行业类型"),1),d("div",Jd,[(l(!0),s(g,null,y(n.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:n.form.sector===e.value}]),onClick:t=>n.form.sector=e.value},[B(v(o.isEn?e.en:e.cn)+" ",1),n.form.sector===e.value?(l(),s("i",Hd)):f("",!0)],10,qd))),128))])])),h(m,{prop:"agree",class:"agree-item"},{default:x(()=>[h(T,{modelValue:n.form.agree,"onUpdate:modelValue":t[19]||(t[19]=e=>n.form.agree=e)},{default:x(()=>[d("span",zd,[B(v(o.isEn?"I agree":"我同意")+" ",1),d("span",{class:"link-type",onClick:t[17]||(t[17]=A((...e)=>i.go2Agreement&&i.go2Agreement(...e),["stop"]))},v(o.isEn?"User Agreement":"《用户条款和协议》"),1),B(" "+v(o.isEn?"and":"和")+" ",1),d("span",{class:"link-type",onClick:t[18]||(t[18]=A((...e)=>i.go2Policy&&i.go2Policy(...e),["stop"]))},v(o.isEn?"Privacy Policy":"《隐私政策》"),1)])]),_:1},8,["modelValue"])]),_:1}),h(L,{class:c(["submit-btn register-btn",["register-btn-is-active"]]),disabled:n.loading,loading:n.loading,onClick:i.handleRegister},{default:x(()=>[B(v(o.isEn?"Register and Log in":"注册并登录")+" ",1),t[30]||(t[30]=d("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["disabled","loading","onClick"])]),_:1},8,["model","rules"])])}],["__scopeId","data-v-e61e088d"]])},props:{visible:{type:Boolean,default:!1},lang:{type:String,default:""},currentPath:{type:String,default:"/"},loginPath:{type:String,default:"http://localhost:8086"},showTestThirdBtn:{type:Boolean,default:!1},baseMode:{type:String,default:"login"}},provide(){return{loginPath:this.loginPath,lang:this.lang,isEn:this.isEn}},mounted(){const e=Ne();e&&(this.loginForm.username=e.account||"",this.loginForm.password=e.password?Fe(e.password):"",this.loginForm.remember=!0)},setup(o){const{proxy:a}=J(),n=e(null),i=t(()=>{if(o.lang)return"en"===o.lang||"en-US"===o.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),{loading:s,handleAuthSubmit:l,executeRedirect:c}=kc({appId:"ERA",isEn:i.value,onNeedComplete:e=>{console.log("需要完善信息,暂不关闭弹窗"),a.handleNeedComplete()},onSuccess:e=>{a.loginForm.remember&&Ve(a.loginForm.username,ce(a.loginForm.password),!0),a.currentVisible=!1,c(e)}}),{isBindDialogVisible:d,isRegisterVisible:u,bindList:h,isUserClosed:p,startLogin:f,handleBindThirdParty:m,resetBindRegisterState:g}=ps({appId:"ERA",isEn:i.value});r(p,e=>{e&&qe.error(i.value?"You have canceled the login.":"您取消了登录。")});return r(d,e=>{e&&(console.log("🍉 ~ index.vue:525 ~ watch ~ 第三方登录需要绑定账号"),a.loginType=n.value)}),r(u,e=>{e&&(a.loginType=n.value,console.log("🍉 ~ index.vue:530 ~ watch ~ 第三方登录需要注册账号"))}),{thirdBindDialogVisible:d,thirdRegisterVisible:u,bindList:h,authLoading:s,isEn:i,handleAuthSubmit:l,executeRedirect:c,handleThirdClick:e=>{console.log("🍉 ~ index.vue:530 ~ handleThirdClick ~ type:",e),n.value=e;const t="facebook"===e?"FACEBOOK":"linkedin"===e?"LINKEDIN":e;t&&f(t)},handleBindThirdParty:m,resetBindRegisterState:g}},data(){return{currentVisible:this.visible,formMode:"login",loginType:"account",loginMethod:"email",areaCodeData:[],IpData:null,isCounting:!1,countdown:60,codeReady:!1,timer:null,loginForm:{type:"email",username:"",password:"",remember:!1,areaCode:"",phone:"",email:"",code:""},loginRules:{username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,o)=>fs(0,t,o,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>ys(0,t,o,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>As(0,t,o,this.isEn),trigger:"blur"}]},verifyData:{},captchaVisible:!1,mobileUid:"",emailUid:"",currentVerifyData:null}},computed:{currentDialogWidth(){let e="480px";return["register","need-complete","forget-password"].includes(this.formMode)&&(e="640px"),"login"!==this.formMode||"linkedin"!==this.loginType&&"facebook"!==this.loginType&&"TEST"!==this.loginType||(e="640px"),e},computedRules(){const e={username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,o)=>fs(0,t,o,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>ys(0,t,o,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>As(0,t,o,this.isEn),trigger:"blur"}]};return"account"===this.loginType?{username:e.username,password:e.password}:"code"===this.loginType?{code:e.code,..."email"===this.loginForm.type?{email:e.email}:{phone:e.phone}}:{}}},watch:{visible(e){this.currentVisible=e},currentVisible(e){this.$emit("update:visible",e)}},methods:{go2Agreement:Cs,go2Policy:ws,handleOpen(){this.formMode=this.baseMode||"login",this.$emit("open")},handleClose(){this.$emit("auth-dialog-close",{loginType:this.loginType,formMode:this.formMode}),this.loginType="account",this.formMode=this.baseMode||"login",ne(),this.resetBindRegisterState()},handleTest(e){this.formMode=e},handleNeedComplete(){this.formMode="need-complete"},handleCompleteSuccess(e){e.redirectPath?this.executeRedirect(e):this.currentVisible=!1},handleWechatNeedRegister(){this.formMode="wechat-need-register"},handleWechatLogin(){this.formMode="wechat-bind"},handleWechatRegister(){this.formMode="register"},switchLoginTab(e){this.loginType!==e&&(this.loginType=e,this.$nextTick(()=>{if(!this.$refs.loginFormRef)return;this.$refs.loginFormRef.clearValidate();const e={username:"",password:"",email:"",phone:"",code:"",areaCode:"",remember:this.loginForm.remember,type:this.loginForm.type};Object.assign(this.loginForm,e),this.codeReady=!1}))},validateField(e){this.$refs.loginFormRef.validateField(e,e=>{this.codeReady=e})},handleGetCode({captchaData:e,startTimer:t}){const o="mobile"===this.loginForm.type,a={target:this.loginForm.email||this.loginForm.phone,uuid:e.uuid,code:e.code};o&&(a.areaCode=this.loginForm.areaCode);const n=o?fe:de;this.verifyData=e,t(),n(a).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(o?this.mobileUid=t:this.emailUid=t,qe.success(this.isEn?"Verification code sent":"验证码已发送"))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleLogin(){this.$refs.loginFormRef.validate(e=>{if(e)if("account"===this.loginType)this.captchaVisible=!0;else{if(console.log("🍉 ~ index.vue:795 ~ this.verifyData:",this.verifyData),console.log("🍉 ~ index.vue:796 ~ this.verifyData.code:",this.verifyData.code),!this.verifyData||!this.verifyData.uuid)return qe.error(this.isEn?"Please get the verification code first":"请先获取验证码");this.handleCaptchaSuccess(this.verifyData)}})},async handleCaptchaSuccess(e){this.captchaVisible=!1,this.handleAuthSubmit({loginType:this.loginType,loginForm:this.loginForm,captchaData:e,mobileUid:this.mobileUid,emailUid:this.emailUid,areaCodeData:this.areaCodeData,isKick:!1,remember:this.loginForm.remember})},handleForget(){console.log("Forget Password"),this.formMode="forget-password"},async handleChangeSubType(e){this.loginMethod=e,"mobile"==e&&0===this.areaCodeData.length&&(await this.getLocalIpData(),this.getAreaCodeData())},async getLocalIpData(){let e=(await ue()).data;"development"===process.env.NODE_ENV&&(e={countryId:57,cityId:4022,countryNameCn:"新加坡",countryNameEn:"Singapore",cityNameCn:"新加坡",cityNameEn:"Singapore"}),this.IpData=e},async getAreaCodeData(){const e=await he();this.areaCodeData=e.data.data.records,this.loginForm.areaCode=e.data.data.records?.find(e=>e.id===this.IpData?.countryId)?.telCode,this.loginForm.areaCode||(this.areaCode="+86")},handleToLogin(){this.formMode="login",this.loginType="account"}}},Gd={key:0,class:"auth-container"},Wd={class:"login-section"},Yd={class:"login-title"},Zd={key:0},_d={key:1},Xd={class:"tab-header"},$d={key:1,class:"tel"},eu={class:"login-passport"},tu={class:"login-remember"},ou={key:0,class:"login-agreement"},au={class:"login-agreement-text"},nu={class:"login-agreement-text-item"},iu={class:"login-agreement-text-item jc:mx-0.5"},ru={key:1},su={key:2},lu={key:3,class:"third-party-sign-in"},cu={class:"third-party-sign-in-title"},du={class:"third-party-sign-in-group"},uu={key:4,class:"bottom-tip"},hu={key:3,class:"auth-container"},pu={class:"register-section"};const fu=/* @__PURE__ */ra(Kd,[["render",function(e,t,o,a,n,i){const r=R("GoogleInput"),p=R("el-form-item"),m=R("LoginTypeSwitcher"),C=R("el-option"),w=R("el-select"),E=R("google-input"),b=R("CodeInput"),I=R("el-checkbox"),S=R("el-button"),k=R("el-form"),T=R("WechatLogin"),L=R("ThirdBindLogin"),P=R("ThirdRegisterForm"),N=R("WechatChooseType"),F=R("WechatBindLogin"),V=R("RegisterForm"),U=R("CompleteInfoForm"),Q=R("ForgetPassword"),M=R("JcVerifySlide"),D=R("ElDialog");return l(),u(D,{modelValue:n.currentVisible,"onUpdate:modelValue":t[23]||(t[23]=e=>n.currentVisible=e),"close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":"",width:i.currentDialogWidth,"align-center":"",class:"jc-auth-dialog","show-close":!0,onClose:i.handleClose,onOpen:i.handleOpen},{default:x(()=>["login"===n.formMode?(l(),s("div",Gd,[d("div",Wd,[d("div",Yd,[a.thirdBindDialogVisible||a.thirdRegisterVisible?(l(),s("p",Zd,v(a.isEn?"New User Registration":"新用户注册"),1)):(l(),s("p",_d,v(a.isEn?"Welcome Back to JCtrans":"欢迎回到JCtrans"),1))]),["account","code"].includes(n.loginType)?(l(),s(g,{key:0},[d("div",Xd,[d("span",{class:c(["tab-header-title",{active:"account"===n.loginType}]),onClick:t[0]||(t[0]=e=>i.switchLoginTab("account"))},v(a.isEn?"Password Login":"账号登录"),3),d("span",{class:c(["tab-header-title",{active:"code"===n.loginType}]),onClick:t[1]||(t[1]=e=>i.switchLoginTab("code"))},v(a.isEn?"Verification Code Login":"验证码登录"),3)]),h(k,{ref:"loginFormRef",model:n.loginForm,rules:i.computedRules,"validate-on-rule-change":!1,class:"auth-form login-form-content"},{default:x(()=>["account"===n.loginType?(l(),s(g,{key:0},[h(p,{prop:"username",class:"form-user"},{default:x(()=>[h(r,{modelValue:n.loginForm.username,"onUpdate:modelValue":t[2]||(t[2]=e=>n.loginForm.username=e),placeholder:a.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),h(p,{prop:"password",class:"password-item"},{default:x(()=>[h(r,{modelValue:n.loginForm.password,"onUpdate:modelValue":t[3]||(t[3]=e=>n.loginForm.password=e),type:"password",class:"input-show-pass",placeholder:a.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"code"===n.loginType?(l(),s(g,{key:1},[h(p,{prop:"type"},{default:x(()=>[h(m,{modelValue:n.loginForm.type,"onUpdate:modelValue":t[4]||(t[4]=e=>n.loginForm.type=e),"is-en":a.isEn,onChange:i.handleChangeSubType},null,8,["modelValue","is-en","onChange"])]),_:1}),"email"===n.loginForm.type?(l(),u(p,{key:0,prop:"email"},{default:x(()=>[h(r,{modelValue:n.loginForm.email,"onUpdate:modelValue":t[5]||(t[5]=e=>n.loginForm.email=e),placeholder:a.isEn?"Email Address":"邮箱地址",onBlur:t[6]||(t[6]=e=>i.validateField("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),s("div",$d,[(l(),u(p,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:x(()=>[h(E,{modelValue:n.loginForm.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>n.loginForm.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15",disabled:n.isCounting},{prefix:x(()=>[h(p,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(w,{modelValue:n.loginForm.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>n.loginForm.areaCode=e),placeholder:a.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),disabled:n.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,y(n.areaCodeData,e=>(l(),u(C,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))])),h(p,{prop:"code"},{default:x(()=>[h(b,{modelValue:n.loginForm.code,"onUpdate:modelValue":t[11]||(t[11]=e=>n.loginForm.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:n.codeReady,"is-en":a.isEn,onSend:i.handleGetCode},null,8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),d("div",eu,[d("div",tu,[h(p,{prop:"remember",class:"remember-item"},{default:x(()=>[h(I,{modelValue:n.loginForm.remember,"onUpdate:modelValue":t[12]||(t[12]=e=>n.loginForm.remember=e),class:"remember-btn"},{default:x(()=>[B(v(a.isEn?"Remember Me":"30天自动登录"),1)]),_:1},8,["modelValue"])]),_:1}),"account"===n.loginType?(l(),s("span",{key:0,class:"forget-pwd-btn",onClick:t[13]||(t[13]=(...e)=>i.handleForget&&i.handleForget(...e))},v(a.isEn?"Forgot your password?":"忘记密码"),1)):f("",!0)]),"code"===n.loginType?(l(),s("div",ou,[d("div",au,[d("span",nu,v(a.isEn?"Automatically log in after verification if not registered. Registration means you agree":"未注册验证后自动登录,注册即代表同意"),1),d("span",{class:"link-type",onClick:t[14]||(t[14]=A((...e)=>i.go2Agreement&&i.go2Agreement(...e),["stop"]))},v(a.isEn?"User Agreement":"《用户条款和协议》"),1),d("span",iu,v(a.isEn?"and":""),1),d("span",{class:"link-type",onClick:t[15]||(t[15]=A((...e)=>i.go2Policy&&i.go2Policy(...e),["stop"]))},v(a.isEn?"Privacy Policy":"《隐私政策》"),1)])])):f("",!0),h(S,{class:"submit-btn",loading:a.authLoading,onClick:i.handleLogin},{default:x(()=>[B(v("code"===n.loginType?a.isEn?"Register and log in":"登录/注册":a.isEn?"Sign In":"登录")+" ",1),t[24]||(t[24]=d("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["loading","onClick"])])]),_:1},8,["model","rules"])],64)):f("",!0),"wechat"===n.loginType?(l(),s("div",ru,[h(T,{"is-en":a.isEn,onNeedRegister:i.handleWechatNeedRegister,onNeedComplete:i.handleNeedComplete},null,8,["is-en","onNeedRegister","onNeedComplete"])])):f("",!0),["linkedin","facebook","TEST"].includes(n.loginType)?(l(),s("div",su,[a.thirdBindDialogVisible?(l(),u(L,{key:0,"is-en":a.isEn,"bind-list":a.bindList,class:"jc:mt-1"},null,8,["is-en","bind-list"])):f("",!0),a.thirdRegisterVisible?(l(),u(P,{key:1,"is-en":a.isEn,class:"jc:mt-6",onBindThirdParty:a.handleBindThirdParty},null,8,["is-en","onBindThirdParty"])):f("",!0)])):f("",!0),"TEST"!==n.loginType&&"facebook"!==n.loginType&&"linkedin"!==n.loginType?(l(),s("div",lu,[d("div",cu,v(a.isEn?"Sign in with":"其他登录方式"),1),d("div",du,[["wechat","linkedin","facebook"].includes(n.loginType)?(l(),s("div",{key:0,class:"third-party-sign-in-btn",onClick:t[16]||(t[16]=()=>n.loginType="account")},[t[25]||(t[25]=d("i",{class:"icon-account"},null,-1)),d("span",null,v(a.isEn?"Account":"账户"),1)])):["account","code"].includes(n.loginType)?(l(),s("div",{key:1,class:"third-party-sign-in-btn",onClick:t[17]||(t[17]=()=>n.loginType="wechat")},[t[26]||(t[26]=d("i",{class:"icon-auth-wechat"},null,-1)),d("span",null,v(a.isEn?"WeChat":"微信"),1)])):f("",!0),d("div",{class:"third-party-sign-in-btn",onClick:t[18]||(t[18]=e=>a.handleThirdClick("linkedin"))},[...t[27]||(t[27]=[d("i",{class:"icon-auth-linkedin"},null,-1),d("span",null,"LinkedIn",-1)])]),d("div",{class:"third-party-sign-in-btn",onClick:t[19]||(t[19]=e=>a.handleThirdClick("facebook"))},[...t[28]||(t[28]=[d("i",{class:"icon-auth-facebook"},null,-1),d("span",null,"Facebook",-1)])]),o.showTestThirdBtn?(l(),s("div",{key:2,class:"third-party-sign-in-btn",onClick:t[20]||(t[20]=e=>a.handleThirdClick("TEST"))},[...t[29]||(t[29]=[d("i",{class:"icon-auth-facebook"},null,-1),d("span",null,"TEST",-1)])])):f("",!0)])])):f("",!0),a.thirdBindDialogVisible||a.thirdRegisterVisible?f("",!0):(l(),s("div",uu,[B(v(a.isEn?"Don't have an account?":"没有账户?")+" ",1),d("span",{class:"action-text",onClick:t[21]||(t[21]=e=>n.formMode="register")},[B(v(a.isEn?"Sign Up":"立即注册")+" ",1),t[30]||(t[30]=d("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[d("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])]))])])):"wechat-need-register"===n.formMode?(l(),u(N,{key:1,"is-en":a.isEn,onToBind:i.handleWechatLogin,onToRegister:i.handleWechatRegister},null,8,["is-en","onToBind","onToRegister"])):"wechat-bind"===n.formMode?(l(),u(F,{key:2,"is-en":a.isEn,onNeedComplete:i.handleNeedComplete},null,8,["is-en","onNeedComplete"])):"register"===n.formMode?(l(),s("div",hu,[d("div",pu,[h(V,{"is-en":a.isEn,onToLogin:i.handleToLogin,onNeedComplete:i.handleNeedComplete},null,8,["is-en","onToLogin","onNeedComplete"])])])):"need-complete"===n.formMode?(l(),u(U,{key:4,"is-en":a.isEn,onSuccess:i.handleCompleteSuccess},null,8,["is-en","onSuccess"])):"forget-password"===n.formMode?(l(),u(Q,{key:5,"is-en":a.isEn,onToLogin:i.handleToLogin},null,8,["is-en","onToLogin"])):f("",!0),h(M,{visible:n.captchaVisible,"onUpdate:visible":t[22]||(t[22]=e=>n.captchaVisible=e),"is-en":a.isEn,onSuccess:i.handleCaptchaSuccess},null,8,["visible","is-en","onSuccess"])]),_:1},8,["modelValue","width","onClose","onOpen"])}],["__scopeId","data-v-e7657d6f"]]),mu=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:fu},Symbol.toStringTag,{value:"Module"}));const gu=(e,t)=>H.searchByIdWithType(e,t);function yu(o,a){const n=e([]),i=e(!1),r=e(!1),s=e(!1),l=e(1),c=e(0),d=t(()=>{const e=[...a.value];return e.includes("Country")&&!e.includes("Region")&&e.push("Region"),e});return{searchResults:n,loading:i,isFetchingMore:r,isFinished:s,fetchData:async(e=!1)=>{const t=o.value.trim();if(!t)return n.value=[],c.value=0,void(s.value=!1);if(e){if(r.value||s.value)return;r.value=!0,l.value+=1}else{if(i.value)return;i.value=!0,l.value=1,s.value=!1}try{const o=await async function(e,t=["Continent","Country","City","Seaport","Airport"],o={}){return H.searchByName({keyword:e,displayInfo:t,...o})}(t,a.value,{current:l.value,size:20}),i=(u=o.records||[],Array.isArray(u)?u.filter(e=>d.value.includes(e.type)):[]);e?n.value.push(...i):n.value=i,c.value=o.total||0,(n.value.length>=c.value||i.length<20)&&(s.value=!0)}catch(h){console.error("Search request failed:",h),e&&(l.value-=1)}finally{i.value=!1,r.value=!1}var u}}}const vu={class:"h5-search-container"},Au={class:"trigger-content"},Cu=["src"],wu={class:"placeholder-text"},Eu={key:0,class:"scroll-container"},bu={class:"tag-text"},Iu={class:"selected-count-text"},Bu={key:1,class:"selected-val"},Su={key:2,class:"placeholder-gray"},ku={key:0,class:"h5-modal-root"},xu={class:"h5-drawer-card"},Ru={class:"h5-header"},Tu={class:"h5-input-wrapper"},Lu=["src"],Pu=["placeholder"],Nu={key:0,class:"h5-spinner-box"},Fu={key:1,class:"h5-section"},Vu={class:"h5-section-hd"},Uu={class:"h5-history-grid"},Qu=["onClick"],Mu={key:2,class:"h5-result-list"},Du=["onClick"],ju={class:"item-info"},Ou={class:"item-name"},Ju={key:0,class:"item-sub"},qu={class:"h5-load-status"},Hu={key:1,class:"no-more"},zu={key:3,class:"h5-load-status h5-empty"},Ku={class:"h5-empty-apply-wrap"},Gu=["src"],Wu=/* @__PURE__ */ra(/* @__PURE__ */n({__name:"index",props:{modelValue:{},multiple:{type:Boolean,default:!1},lang:{default:"zh-CN"},placeholder:{},historyKey:{},reportType:{default:"City"}},emits:["update:modelValue","select","apply"],setup(a,{emit:n}){const p=a,C=n,w=e(!1),B=e(""),S=e(null),k=e(null);let R=null;const{searchHistory:T,saveToHistory:L,clearHistory:N}=function(a){const n=e([]),i="undefined"!=typeof window&&"undefined"!=typeof localStorage,r=t(()=>(a.value||"")+"_search_history_cache"),s=t(()=>!!a.value&&""!==a.value);return o(()=>{if(i&&s.value){const t=localStorage.getItem(r.value);if(t)try{n.value=JSON.parse(t)}catch(e){n.value=[]}}}),{searchHistory:n,saveToHistory:e=>{if(!e||!i)return;const t=n.value.filter(t=>t.id&&t.id!==e.id||t.display!==e.display);t.unshift(e);const o=t.slice(0,4);if(s.value){n.value=o;try{localStorage.setItem(r.value,JSON.stringify(o))}catch(a){console.warn("LocalStorage save failed:",a)}}},clearHistory:()=>{n.value=[],i&&localStorage.removeItem(r.value)},HasHistory:s}}(i(p,"historyKey")),{searchResults:F,loading:V,isFetchingMore:U,isFinished:Q,fetchData:M}=yu(B,e(["City","Seaport","Airport"])),D=t(()=>{if(p.lang)return"en"===p.lang||"en-US"===p.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),O=t(()=>Array.isArray(p.modelValue)?p.modelValue:p.modelValue?[p.modelValue]:[]);r(()=>p.modelValue,(e,t)=>{JSON.stringify(e)!==JSON.stringify(t)&&(async e=>{if(p.multiple&&Array.isArray(e)){const o=[...e],a=o.filter(e=>e?.id&&e?.type&&!e?.display);if(a.length>0)try{const e=a[0].type,t=a.map(e=>e.id),n=await gu(t,e);if(n?.records){let e=!1;const t=o.map(t=>{const o=n.records.find(e=>e.id===t.id);return o&&!t.display?(e=!0,{...t,...o}):t});e&&C("update:modelValue",t)}}catch(t){console.error("Batch fetch detail failed:",t)}}else if(!p.multiple&&e?.id&&e?.type&&!e?.display)try{const t=await gu([e.id],e.type),o=t?.records?.[0];o&&C("update:modelValue",{...e,...o})}catch(t){console.error("Single fetch detail failed:",t)}})(e)},{immediate:!0,deep:!0});const J=t(()=>!p.multiple&&!!p.modelValue),q=t(()=>J.value?$(p.modelValue):""),H=t(()=>O.value.length>0),K=()=>{w.value=!0,j(()=>{console.log("🍓🍓 ~ index.vue:294 ~ nextTick ~ props.modelValue:",p.modelValue),B.value=D.value?p.modelValue?.nameEn||"":p.modelValue?.nameCn||"",S.value?.focus(),B.value&&M(!1)})},G=()=>{w.value=!1,B.value=""},W=e=>{if(L(e),p.multiple){O.value.some(t=>t.id===e.id)||C("update:modelValue",[...O.value,e])}else C("update:modelValue",e),G();C("select",e)},Y=()=>{C("update:modelValue",p.multiple?[]:null)},Z=e(!1),_=e=>{const t=e.target;if(!t)return;!(t.scrollTop+t.clientHeight>=t.scrollHeight-80)||!B.value||V.value||U.value||Q.value||Z.value||(Z.value=!0,M(!0))};r(U,e=>{e||(Z.value=!1)});const X=()=>{R&&clearTimeout(R),R=setTimeout(()=>{Z.value=!1,k.value?.scrollTo({top:0}),M(!1)},300)},$=e=>D.value?e.displayEn||e.display:e.displayCn||e.display,ee=e=>O.value.some(t=>t.id===e.id),te=async()=>{const e=B.value?.trim();if(e)try{await z({reportData:e,reportType:p.reportType})}catch(t){console.error("Report apply data failed:",t)}finally{C("apply",e)}};return(e,t)=>(l(),s("div",vu,[d("div",{class:"search-trigger",onClick:K},[d("div",Au,[d("img",{src:b(Po),class:"search-icon-m"},null,8,Cu),d("div",wu,[a.multiple&&O.value.length>0?(l(),s("div",Eu,[(l(!0),s(g,null,y(O.value,e=>(l(),s("div",{key:e.id,class:"selected-tag"},[d("span",bu,v(e.display),1)]))),128)),d("span",Iu,v(D.value?"Selected":"已选")+" ("+v(O.value.length)+") ",1)])):!a.multiple&&J.value?(l(),s("span",Bu,v(q.value),1)):(l(),s("span",Su,v(a.placeholder||(D.value?"Search":"搜索")),1))])]),H.value?(l(),s("span",{key:0,class:"clear-trigger",onClick:A(Y,["stop"])},"ⓧ")):f("",!0)]),(l(),u(I,{to:"body"},[w.value?(l(),s("div",ku,[h(P,{name:"fade"},{default:x(()=>[d("div",{class:"h5-mask",onClick:G})]),_:1}),h(P,{name:"slide-up"},{default:x(()=>[d("div",xu,[d("div",{class:"drawer-handle",onClick:G}),d("div",Ru,[d("div",Tu,[d("img",{src:b(Po),class:"inner-icon"},null,8,Lu),m(d("input",{ref_key:"inputRef",ref:S,"onUpdate:modelValue":t[0]||(t[0]=e=>B.value=e),placeholder:D.value?"City/Port/Airport":"搜索城市/港口/机场",onInput:X},null,40,Pu),[[E,B.value]]),B.value?(l(),s("div",{key:0,class:"h5-clear-btn",onClick:t[1]||(t[1]=e=>B.value="")}," ✕ ")):f("",!0)]),d("div",{class:"h5-cancel-btn",onClick:G},v(D.value?"Cancel":"取消"),1)]),d("div",{class:"h5-main-content",ref_key:"scrollContainer",ref:k,onScroll:_},[b(V)&&!b(U)?(l(),s("div",Nu,[...t[3]||(t[3]=[d("div",{class:"h5-spinner"},null,-1)])])):f("",!0),!B.value&&b(T).length>0?(l(),s("div",Fu,[d("div",Vu,[d("span",null,v(D.value?"Recent":"最近搜索"),1),d("span",{class:"h5-clear-history",onClick:t[2]||(t[2]=(...e)=>b(N)&&b(N)(...e))},v(D.value?"Clear":"清空"),1)]),d("div",Uu,[(l(!0),s(g,null,y(b(T),(e,t)=>(l(),s("div",{key:t,class:"h5-history-tag",onClick:t=>W(e)},v($(e)),9,Qu))),128))])])):f("",!0),b(F).length>0?(l(),s("div",Mu,[(l(!0),s(g,null,y(b(F),(e,t)=>{return l(),s("div",{key:t,class:c(["h5-result-item",{"is-active":ee(e)}]),onClick:t=>W(e)},[d("div",{class:c(["item-type",e.type.toLowerCase()])},v((o=e.type,D.value?o:{City:"城市",Seaport:"港口",Airport:"机场"}[o]||o)),3),d("div",ju,[d("div",Ou,v($(e)),1),e.parentName?(l(),s("div",Ju,v(e.parentName),1)):f("",!0)])],10,Du);var o}),128)),d("div",qu,[b(U)?(l(),s(g,{key:0},[t[4]||(t[4]=d("div",{class:"mini-spinner"},null,-1)),d("span",null,v(D.value?"Loading...":"加载中..."),1)],64)):b(Q)&&B.value?(l(),s("span",Hu,v(D.value?"No more results":"没有更多结果了"),1)):f("",!0)])])):f("",!0),B.value&&!b(V)&&0===b(F).length?(l(),s("div",zu,[d("p",null,v(D.value?"No Results Found. ":"未找到相关结果,"),1),d("div",Ku,[d("span",{class:"h5-empty-apply",onClick:A(te,["stop"])},v(D.value?"Apply for data addition":"申请补充数据"),1),d("img",{src:b(No),alt:"more",class:"h5-empty-apply-icon",onClick:A(te,["stop"])},null,8,Gu)])])):f("",!0)],544)])]),_:1})])):f("",!0)]))]))}}),[["__scopeId","data-v-6eca015d"]]),Yu=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Wu},Symbol.toStringTag,{value:"Module"})),Zu={class:"jc-line-cascader jc:w-full"},_u={class:"jc:flex jc:justify-between jc:items-center jc:w-full"},Xu={key:0,class:"jc:text-xs jc:text-gray-400 jc:ml-4"},$u={class:"jc:p-4 jc:text-sm jc:text-center jc:text-gray-500"},eh={key:0},th={key:1,class:"jc:flex jc:flex-wrap jc:justify-center jc:items-center"},oh={class:"jc:flex jc:justify-center jc:items-center jc:gap-1 jc:ml-1"},ah=["src"],nh=/* @__PURE__ */n({__name:"index",props:{modelValue:{default:()=>[]},lineId:{default:null},placeholder:{default:""},lang:{},lineType:{default:"shipping"},multiple:{type:Boolean,default:!0}},emits:["update:modelValue","update:lineId","change","apply"],setup(a,{emit:n}){const i=a,c=n,p=e(),m=e([]),C=e(!1),w=e(""),E=e(i.modelValue),I={multiple:!0,expandTrigger:"click",emitPath:!1,checkStrictly:!1},S=t(()=>({...I,multiple:i.multiple})),k=t(()=>{if(i.lang)return"en"===i.lang||"en-US"===i.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),R=t(()=>m.value.map(e=>({label:k.value?e.nameEn||e.nameCn:e.nameCn||e.nameEn,value:`line-${e.id}`,children:(e.raw?.countryList||[]).map(t=>({label:k.value?t.nameEn:t.nameCn,value:`${e.id}-${t.id}`,shortCode:t.shortCode}))}))),T=t(()=>i.placeholder?i.placeholder:k.value?"Please select route":"涉及航线选择"),L=(e,t)=>{const o=t.toLowerCase();return e.pathLabels.some(e=>e.toLowerCase().includes(o))},P=(e,t)=>{c("update:modelValue",e),c("update:lineId",t),c("change",{countryIds:e,lineId:t})},N=e=>{},F=e=>{if(console.log("🍓🍓 ~ index.vue:244 ~ handleChange ~ selected:",e),!e||0===e.length)return E.value=[],void P([],null);const t=e[e.length-1];if(t.startsWith("line-")){const[o,a]=t.split("-"),n=e.filter(e=>e.endsWith(`${a}`));return console.log("🍓🍓 ~ index.vue:260 ~ validSelections ~ validSelections:",n),P([],a),void c("change",n)}const[o]=t.split("-"),a=e.filter(e=>e.startsWith(`${o}-`));E.value=a;const n=a.map(e=>e.split("-")[1]);P(n,o),c("change",a)},V=async()=>{if(w.value)try{await z({reportData:w.value,reportType:"Line"})}catch(e){}c("apply",w.value),p.value?.togglePopperVisible(!1)},U=e=>{const t=/* @__PURE__ */new Set;for(const o of e){let e=o.node?.parent;for(;e&&1!==e.level;)e=e.parent;const a=e?.data?.label;a&&t.add(a)}return[...t]};return o(()=>{(async e=>{C.value=!0,w.value=e;try{const e=await H.line.searchAllByCountry(i.lineType);m.value=Array.isArray(e)?e:e?.records||[]}catch(t){console.error("Search failed:",t),m.value=[]}finally{C.value=!1}})("")}),r(()=>i.modelValue,e=>{console.log("🍓🍓 ~ index.vue:324 ~ newVal:",e);const t=i.lineId;t&&e&&e.length>0?E.value=e.map(e=>`${t}-${e}`):E.value=[`line-${i.lineId}`]},{deep:!0,immediate:!0}),(e,t)=>(l(),s("div",Zu,[h(b(nt),{ref_key:"selectRef",ref:p,modelValue:E.value,"onUpdate:modelValue":t[0]||(t[0]=e=>E.value=e),"popper-class":"jc-line-cascader-pop",options:R.value,props:S.value,placeholder:T.value,loading:C.value,filterable:"",clearable:"","collapse-tags":"","collapse-tags-tooltip":"",class:"jc:w-full","filter-method":L,onExpandChange:N,onChange:F},{tag:x(({data:e})=>[(l(!0),s(g,null,y(U(e),e=>(l(),u(b(it),{key:e},{default:x(()=>[B(v(e),1)]),_:2},1024))),128))]),default:x(({data:e,node:t})=>[d("div",_u,[d("span",null,v(e.label),1),t.isLeaf&&e.shortCode?(l(),s("span",Xu,v(e.shortCode),1)):f("",!0)])]),empty:x(()=>[d("div",$u,[C.value?(l(),s("div",eh,[t[1]||(t[1]=d("i",{class:"el-icon-loading jc:mr-1"},null,-1)),B(" "+v(k.value?"Searching...":"正在搜索中..."),1)])):(l(),s("div",th,[d("p",null,v(k.value?"No results found. ":"暂无结果,"),1),d("div",oh,[d("span",{class:"jc:font-medium jc:text-[14px] jc:text-[#ff6a00] jc:cursor-pointer jc:hover:underline",onClick:A(V,["stop"])},v(k.value?"Apply for data addition":"申请补充数据 "),1),d("img",{src:b(No),alt:"more",class:"jc:size-4 jc:cursor-pointer",onClick:A(V,["stop"])},null,8,ah)])]))])]),_:1},8,["modelValue","options","props","placeholder","loading"])]))}}),ih=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:nh},Symbol.toStringTag,{value:"Module"}));let rh={open(){Y.emit(Z.Open)},close(){Y.emit(Z.Close)},onSubmit(e){Y.on(Z.Submit,e)}};function sh(){let e=!1;return{install(t){if("undefined"!=typeof window&&!e){const t=document.createElement("div");t.setAttribute("id","global-modal-root"),document.body.appendChild(t),q(Fr).mount(t),e=!0}t.config.globalProperties.$globalModal=rh}}}const lh=/* @__PURE__ */Object.assign({"./components/ApplyDataDialog.vue":on,"./components/ChineseCompanySearch/index.vue":sn,"./components/CodeInput.vue":Tr,"./components/GlobalModal.vue":Vr,"./components/GoogleInput.vue":fn,"./components/JcCarrierSearch/AirCarrierSearch.vue":Qr,"./components/JcCarrierSearch/AirLineSearch.vue":Dr,"./components/JcCarrierSearch/SeaCarrierSearch.vue":Or,"./components/JcCarrierSearch/SeaLineSearch.vue":qr,"./components/JcCarrierSearch/index.vue":$r,"./components/JcFloatInput.vue":wn,"./components/JcFloatWrapper.vue":rs,"./components/JcLoginDialog/index.vue":mu,"./components/JcMSearch/index.vue":Yu,"./components/JcSearch/index.vue":la,"./components/JcVerifySlide/index.vue":Sr,"./components/LineCascader/index.vue":ih}),ch={};Object.entries(lh).forEach(([e,t])=>{const o=e.split("/"),a=o.pop()||"",n=o.pop()||"";let i="";i="index.vue"===a?n:a.replace(/\.vue$/,""),i&&t.default&&(ch[i]=t.default)});const{ApplyDataDialog:dh,JcSearch:uh,GlobalModal:hh,JcMSearch:ph,ChineseCompanySearch:fh,JcLoginDialog:mh,CodeInput:gh,GoogleInput:yh,JcFloatInput:vh,JcFloatWrapper:Ah,JcVerifySlide:Ch,JcCarrierSearch:wh,AirCarrierSearch:Eh,SeaCarrierSearch:bh,AirLineSearch:Ih,SeaLineSearch:Bh,LineCascader:Sh}=ch;let kh=!1;const xh={install(e,t){if(!kh){kh=!0,t?.sharedConfig&&Ue(t.sharedConfig);for(const t in ch)e.component(t,ch[t]),console.log(`[JcUI] 自动注册组件: ${t}`)}}};export{Eh as AirCarrierSearch,Ih as AirLineSearch,dh as ApplyDataDialog,fh as ChineseCompanySearch,gh as CodeInput,hh as GlobalModal,yh as GoogleInput,wh as JcCarrierSearch,vh as JcFloatInput,Ah as JcFloatWrapper,mh as JcLoginDialog,ph as JcMSearch,uh as JcSearch,Ch as JcVerifySlide,Sh as LineCascader,Qe as MODAL_ACTION,bh as SeaCarrierSearch,Bh as SeaLineSearch,sh as createGlobalModalPlugin,Me as createRequest,xh as default,De as emitter,je as getAppId,Oe as initSharedConfig};
|
|
1
|
+
import{ref as e,computed as t,onMounted as a,onBeforeUnmount as n,defineComponent as o,toRef as i,watch as r,createElementBlock as s,openBlock as l,normalizeClass as c,createElementVNode as d,createBlock as u,createVNode as p,renderSlot as h,createCommentVNode as f,withDirectives as m,Fragment as g,renderList as y,toDisplayString as v,withModifiers as w,withKeys as C,normalizeStyle as b,vModelText as A,unref as E,Teleport as k,createTextVNode as x,vShow as S,reactive as I,withCtx as B,resolveComponent as V,mergeProps as T,toHandlers as P,Transition as R,resolveDynamicComponent as N,createSlots as D,onUnmounted as U,mergeModels as F,useModel as _,normalizeProps as L,guardReactiveProps as M,nextTick as O,isRef as j,getCurrentInstance as q,createApp as H}from"vue";import{locationSearchV2 as z,reportNewTypeDataApi as J,getCompanyOptionApi as W,slideGetApi as Q,slideCheckApi as K,emitter as G,MODAL_ACTION as X,setTokenAll as Y,getAuthSessionItems as Z,loginByFacebookApi as $,loginByLinkedinApi as ee,validateAccountExistApi as te,findListByMobileEmailApi as ae,validateCompanyApi as ne,resetAuthSessionItems as oe,registerJoinCompanyBindWechatApi as ie,registerJoinCompanyApi as re,registerUserCompBindWechatApi as se,registerApi as le,Encrypt as ce,sendEmailCodeApi as de,getLocalIpDataApi as ue,findPAreaCodeAPi as pe,findDictAPi as he,sendMobileCodeApi as fe,getLoginQrCode as me,setAuthSessionItems as ge,loginByQrCode as ye,getFirstDomain as ve,loginApi as we,loginByEmailOrMobileCodeApi as Ce,loginPwdBindWechatApi as be,loginCodeBindWechatApi as Ae,completeJoinCompanyRedirectApi as Ee,completeCompRedirectApi as ke,getUserInfoApi as xe,resetPasswordApi as Se,getMEVCodeApi as Ie,checkAccountExistsFPApi as Be,bindThirdPartyByPwdApi as Ve,bindThirdPartyByCodeApi as Te,registerJoinCompByThirdPartyApi as Pe,registerByThirdPartyApi as Re,resetGioSessionItems as Ne,getRememberAccount as De,Decrypt as Ue,setRememberMe as Fe,tracker as _e,initSharedConfig as Le}from"@jctrans-materials/shared";import{MODAL_ACTION as Me,createRequest as Oe,emitter as je,getAppId as qe,initSharedConfig as He}from"@jctrans-materials/shared";import{useFormItem as ze,ElMessage as Je,vLoading as We,ElSelect as Qe,ElOption as Ke,ElInput as Ge,ElDialog as Xe,ElForm as Ye,ElRow as Ze,ElCol as $e,ElFormItem as et,ElCheckbox as tt,ElButton as at,ElRadioButton as nt,ElRadioGroup as ot,ElMessageBox as it,ElCascader as rt,ElTag as st}from"element-plus";const lt=e=>!!e?.id&&!!e?.type&&!e?.display;function ct(e){return{hydrateMultiple:async t=>{if(!Array.isArray(t)||0===t.length)return{updatedList:t,hasChanged:!1};const a=t.filter(e=>lt(e));if(0===a.length)return{updatedList:t,hasChanged:!1};const n=a.reduce((e,t)=>{const a=t.type;return e[a]||(e[a]=[]),e[a].push(t.id),e},{}),o=/* @__PURE__ */new Map;for(const[r,s]of Object.entries(n)){if(0===s.length)continue;const t=await e(s,r);(t?.records||[]).forEach(e=>{e?.id&&e?.type&&o.set(`${e.type}::${e.id}`,e)})}let i=!1;return{updatedList:t.map(e=>{if(!lt(e))return e;const t=`${e.type}::${e.id}`,a=o.get(t);return a?(i=!0,{...e,...a}):e}),hasChanged:i}},hydrateSingle:async t=>{if(!t||!lt(t))return t;const a=await e(t.id,t.type),n=a?.records||[],o=n.find(e=>e?.id===t.id&&e?.type===t.type)||n[0];return o?{...t,...o}:t}}}const dt=(e,t)=>z.searchByIdWithType(e,t);function ut(a,n,o){const i=e([]),r=e(!1),s=e(!1),l=e(1),c=e(0),d=e(10),u=t(()=>0!==c.value&&i.value.length>=c.value),p=t(()=>{const e=[...n.value];return e.includes("Country")&&!e.includes("Region")&&e.push("Region"),e}),h=e=>e&&Array.isArray(e)?e.filter(e=>p.value.includes(e.type)):[];return{searchResults:i,loading:r,isFetchingMore:s,isFinished:u,currentPage:l,total:c,fetchData:async(e=1,t=!1)=>{const p=o?.parentId?.value,f=a.value.trim();if(!f&&!t&&!p)return i.value=[],void(c.value=0);if((!t||!s.value&&!u.value)&&(t||!r.value)){t?s.value=!0:(r.value=!0,l.value=1);try{const a={};p&&o?.parentType?.value&&("Country"===o.parentType.value?a.countryIds=[o.parentId?.value]:"City"===o.parentType.value&&(a.cityIds=[o.parentId?.value]));const r=await async function(e,t=["Continent","Country","City","Seaport","Airport"],a={}){return z.searchByName({keyword:e,displayInfo:t,...a})}(f,n.value,{current:e,size:d.value,...a}),s=r.records||[],u=h(s);i.value=t?[...i.value,...u]:u,c.value=r.total||0,l.value=e}catch(m){console.error("Failed to fetch search results:",m)}finally{r.value=!1,s.value=!1}}},filterByTypes:h}}const pt=Math.min,ht=Math.max,ft=Math.round,mt=Math.floor,gt=e=>({x:e,y:e}),yt={left:"right",right:"left",bottom:"top",top:"bottom"},vt={start:"end",end:"start"};function wt(e,t,a){return ht(e,pt(t,a))}function Ct(e,t){return"function"==typeof e?e(t):e}function bt(e){return e.split("-")[0]}function At(e){return e.split("-")[1]}function Et(e){return"x"===e?"y":"x"}function kt(e){return"y"===e?"height":"width"}const xt=/* @__PURE__ */new Set(["top","bottom"]);function St(e){return xt.has(bt(e))?"y":"x"}function It(e){return Et(St(e))}function Bt(e){return e.replace(/start|end/g,e=>vt[e])}const Vt=["left","right"],Tt=["right","left"],Pt=["top","bottom"],Rt=["bottom","top"];function Nt(e,t,a,n){const o=At(e);let i=function(e,t,a){switch(e){case"top":case"bottom":return a?t?Tt:Vt:t?Vt:Tt;case"left":case"right":return t?Pt:Rt;default:return[]}}(bt(e),"start"===a,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Bt)))),i}function Dt(e){return e.replace(/left|right|bottom|top/g,e=>yt[e])}function Ut(e){const{x:t,y:a,width:n,height:o}=e;return{width:n,height:o,top:a,left:t,right:t+n,bottom:a+o,x:t,y:a}}function Ft(e,t,a){let{reference:n,floating:o}=e;const i=St(t),r=It(t),s=kt(r),l=bt(t),c="y"===i,d=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,p=n[s]/2-o[s]/2;let h;switch(l){case"top":h={x:d,y:n.y-o.height};break;case"bottom":h={x:d,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:u};break;case"left":h={x:n.x-o.width,y:u};break;default:h={x:n.x,y:n.y}}switch(At(t)){case"start":h[r]-=p*(a&&c?-1:1);break;case"end":h[r]+=p*(a&&c?-1:1)}return h}async function _t(e,t){var a;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:r,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=Ct(t,e),f=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(h),m=s[p?"floating"===u?"reference":"floating":u],g=Ut(await i.getClippingRect({element:null==(a=await(null==i.isElement?void 0:i.isElement(m)))||a?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),y="floating"===u?{x:n,y:o,width:r.floating.width,height:r.floating.height}:r.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},C=Ut(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-C.top+f.top)/w.y,bottom:(C.bottom-g.bottom+f.bottom)/w.y,left:(g.left-C.left+f.left)/w.x,right:(C.right-g.right+f.right)/w.x}}const Lt=/* @__PURE__ */new Set(["left","top"]);function Mt(){return"undefined"!=typeof window}function Ot(e){return Ht(e)?(e.nodeName||"").toLowerCase():"#document"}function jt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function qt(e){var t;return null==(t=(Ht(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ht(e){return!!Mt()&&(e instanceof Node||e instanceof jt(e).Node)}function zt(e){return!!Mt()&&(e instanceof Element||e instanceof jt(e).Element)}function Jt(e){return!!Mt()&&(e instanceof HTMLElement||e instanceof jt(e).HTMLElement)}function Wt(e){return!(!Mt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof jt(e).ShadowRoot)}const Qt=/* @__PURE__ */new Set(["inline","contents"]);function Kt(e){const{overflow:t,overflowX:a,overflowY:n,display:o}=ra(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+a)&&!Qt.has(o)}const Gt=/* @__PURE__ */new Set(["table","td","th"]);function Xt(e){return Gt.has(Ot(e))}const Yt=[":popover-open",":modal"];function Zt(e){return Yt.some(t=>{try{return e.matches(t)}catch(a){return!1}})}const $t=["transform","translate","scale","rotate","perspective"],ea=["transform","translate","scale","rotate","perspective","filter"],ta=["paint","layout","strict","content"];function aa(e){const t=na(),a=zt(e)?ra(e):e;return $t.some(e=>!!a[e]&&"none"!==a[e])||!!a.containerType&&"normal"!==a.containerType||!t&&!!a.backdropFilter&&"none"!==a.backdropFilter||!t&&!!a.filter&&"none"!==a.filter||ea.some(e=>(a.willChange||"").includes(e))||ta.some(e=>(a.contain||"").includes(e))}function na(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const oa=/* @__PURE__ */new Set(["html","body","#document"]);function ia(e){return oa.has(Ot(e))}function ra(e){return jt(e).getComputedStyle(e)}function sa(e){return zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function la(e){if("html"===Ot(e))return e;const t=e.assignedSlot||e.parentNode||Wt(e)&&e.host||qt(e);return Wt(t)?t.host:t}function ca(e){const t=la(e);return ia(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jt(t)&&Kt(t)?t:ca(t)}function da(e,t,a){var n;void 0===t&&(t=[]),void 0===a&&(a=!0);const o=ca(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),r=jt(o);if(i){const e=ua(r);return t.concat(r,r.visualViewport||[],Kt(o)?o:[],e&&a?da(e):[])}return t.concat(o,da(o,[],a))}function ua(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pa(e){const t=ra(e);let a=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Jt(e),i=o?e.offsetWidth:a,r=o?e.offsetHeight:n,s=ft(a)!==i||ft(n)!==r;return s&&(a=i,n=r),{width:a,height:n,$:s}}function ha(e){return zt(e)?e:e.contextElement}function fa(e){const t=ha(e);if(!Jt(t))return gt(1);const a=t.getBoundingClientRect(),{width:n,height:o,$:i}=pa(t);let r=(i?ft(a.width):a.width)/n,s=(i?ft(a.height):a.height)/o;return r&&Number.isFinite(r)||(r=1),s&&Number.isFinite(s)||(s=1),{x:r,y:s}}const ma=/* @__PURE__ */gt(0);function ga(e){const t=jt(e);return na()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ma}function ya(e,t,a,n){void 0===t&&(t=!1),void 0===a&&(a=!1);const o=e.getBoundingClientRect(),i=ha(e);let r=gt(1);t&&(n?zt(n)&&(r=fa(n)):r=fa(e));const s=function(e,t,a){return void 0===t&&(t=!1),!(!a||t&&a!==jt(e))&&t}(i,a,n)?ga(i):gt(0);let l=(o.left+s.x)/r.x,c=(o.top+s.y)/r.y,d=o.width/r.x,u=o.height/r.y;if(i){const e=jt(i),t=n&&zt(n)?jt(n):n;let a=e,o=ua(a);for(;o&&n&&t!==a;){const e=fa(o),t=o.getBoundingClientRect(),n=ra(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,r=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=r,a=jt(o),o=ua(a)}}return Ut({width:d,height:u,x:l,y:c})}function va(e,t){const a=sa(e).scrollLeft;return t?t.left+a:ya(qt(e)).left+a}function wa(e,t){const a=e.getBoundingClientRect();return{x:a.left+t.scrollLeft-va(e,a),y:a.top+t.scrollTop}}const Ca=/* @__PURE__ */new Set(["absolute","fixed"]);function ba(e,t,a){let n;if("viewport"===t)n=function(e,t){const a=jt(e),n=qt(e),o=a.visualViewport;let i=n.clientWidth,r=n.clientHeight,s=0,l=0;if(o){i=o.width,r=o.height;const e=na();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=va(n);if(c<=0){const e=n.ownerDocument,t=e.body,a=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(a.marginLeft)+parseFloat(a.marginRight)||0,r=Math.abs(n.clientWidth-t.clientWidth-o);r<=25&&(i-=r)}else c<=25&&(i+=c);return{width:i,height:r,x:s,y:l}}(e,a);else if("document"===t)n=function(e){const t=qt(e),a=sa(e),n=e.ownerDocument.body,o=ht(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ht(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-a.scrollLeft+va(e);const s=-a.scrollTop;return"rtl"===ra(n).direction&&(r+=ht(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:r,y:s}}(qt(e));else if(zt(t))n=function(e,t){const a=ya(e,!0,"fixed"===t),n=a.top+e.clientTop,o=a.left+e.clientLeft,i=Jt(e)?fa(e):gt(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,a);else{const a=ga(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Ut(n)}function Aa(e,t){const a=la(e);return!(a===t||!zt(a)||ia(a))&&("fixed"===ra(a).position||Aa(a,t))}function Ea(e,t,a){const n=Jt(t),o=qt(t),i="fixed"===a,r=ya(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=gt(0);function c(){l.x=va(o)}if(n||!n&&!i)if(("body"!==Ot(t)||Kt(o))&&(s=sa(t)),n){const e=ya(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!n&&o&&c();const d=!o||n||i?gt(0):wa(o,s);return{x:r.left+s.scrollLeft-l.x-d.x,y:r.top+s.scrollTop-l.y-d.y,width:r.width,height:r.height}}function ka(e){return"static"===ra(e).position}function xa(e,t){if(!Jt(e)||"fixed"===ra(e).position)return null;if(t)return t(e);let a=e.offsetParent;return qt(e)===a&&(a=a.ownerDocument.body),a}function Sa(e,t){const a=jt(e);if(Zt(e))return a;if(!Jt(e)){let t=la(e);for(;t&&!ia(t);){if(zt(t)&&!ka(t))return t;t=la(t)}return a}let n=xa(e,t);for(;n&&Xt(n)&&ka(n);)n=xa(n,t);return n&&ia(n)&&ka(n)&&!aa(n)?a:n||function(e){let t=la(e);for(;Jt(t)&&!ia(t);){if(aa(t))return t;if(Zt(t))return null;t=la(t)}return null}(e)||a}const Ia={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:a,offsetParent:n,strategy:o}=e;const i="fixed"===o,r=qt(n),s=!!t&&Zt(t.floating);if(n===r||s&&i)return a;let l={scrollLeft:0,scrollTop:0},c=gt(1);const d=gt(0),u=Jt(n);if((u||!u&&!i)&&(("body"!==Ot(n)||Kt(r))&&(l=sa(n)),Jt(n))){const e=ya(n);c=fa(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}const p=!r||u||i?gt(0):wa(r,l);return{width:a.width*c.x,height:a.height*c.y,x:a.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:a.y*c.y-l.scrollTop*c.y+d.y+p.y}},getDocumentElement:qt,getClippingRect:function(e){let{element:t,boundary:a,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===a?Zt(t)?[]:function(e,t){const a=t.get(e);if(a)return a;let n=da(e,[],!1).filter(e=>zt(e)&&"body"!==Ot(e)),o=null;const i="fixed"===ra(e).position;let r=i?la(e):e;for(;zt(r)&&!ia(r);){const t=ra(r),a=aa(r);a||"fixed"!==t.position||(o=null),(i?!a&&!o:!a&&"static"===t.position&&o&&Ca.has(o.position)||Kt(r)&&!a&&Aa(e,r))?n=n.filter(e=>e!==r):o=t,r=la(r)}return t.set(e,n),n}(t,this._c):[].concat(a),n],r=i[0],s=i.reduce((e,a)=>{const n=ba(t,a,o);return e.top=ht(n.top,e.top),e.right=pt(n.right,e.right),e.bottom=pt(n.bottom,e.bottom),e.left=ht(n.left,e.left),e},ba(t,r,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Sa,getElementRects:async function(e){const t=this.getOffsetParent||Sa,a=this.getDimensions,n=await a(e.floating);return{reference:Ea(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:a}=pa(e);return{width:t,height:a}},getScale:fa,isElement:zt,isRTL:function(e){return"rtl"===ra(e).direction}};function Ba(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Va(e,t,a,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=ha(e),d=o||i?[...c?da(c):[],...da(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",a,{passive:!0}),i&&e.addEventListener("resize",a)});const u=c&&s?function(e,t){let a,n=null;const o=qt(e);function i(){var e;clearTimeout(a),null==(e=n)||e.disconnect(),n=null}return function r(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-mt(u)+"px "+-mt(o.clientWidth-(d+p))+"px "+-mt(o.clientHeight-(u+h))+"px "+-mt(d)+"px",threshold:ht(0,pt(1,l))||1};let m=!0;function g(t){const n=t[0].intersectionRatio;if(n!==l){if(!m)return r();n?r(!1,n):a=setTimeout(()=>{r(!1,1e-7)},1e3)}1!==n||Ba(c,e.getBoundingClientRect())||r(),m=!1}try{n=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(y){n=new IntersectionObserver(g,f)}n.observe(e)}(!0),i}(c,a):null;let p,h=-1,f=null;r&&(f=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),a()}),c&&!l&&f.observe(c),f.observe(t));let m=l?ya(e):null;return l&&function t(){const n=ya(e);m&&!Ba(m,n)&&a();m=n,p=requestAnimationFrame(t)}(),a(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",a),i&&e.removeEventListener("resize",a)}),null==u||u(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Ta=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var a,n;const{x:o,y:i,placement:r,middlewareData:s}=t,l=await async function(e,t){const{placement:a,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),r=bt(a),s=At(a),l="y"===St(a),c=Lt.has(r)?-1:1,d=i&&l?-1:1,u=Ct(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}(t,e);return r===(null==(a=s.offset)?void 0:a.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:r}}}}},Pa=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:r=!1,limiter:s={fn:e=>{let{x:t,y:a}=e;return{x:t,y:a}}},...l}=Ct(e,t),c={x:a,y:n},d=await _t(t,l),u=St(bt(o)),p=Et(u);let h=c[p],f=c[u];if(i){const e="y"===p?"bottom":"right";h=wt(h+d["y"===p?"top":"left"],h,h-d[e])}if(r){const e="y"===u?"bottom":"right";f=wt(f+d["y"===u?"top":"left"],f,f-d[e])}const m=s.fn({...t,[p]:h,[u]:f});return{...m,data:{x:m.x-a,y:m.y-n,enabled:{[p]:i,[u]:r}}}}}},Ra=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var a,n;const{placement:o,middlewareData:i,rects:r,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=Ct(e,t);if(null!=(a=i.arrow)&&a.alignmentOffset)return{};const y=bt(o),v=St(s),w=bt(s)===s,C=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=p||(w||!m?[Dt(s)]:function(e){const t=Dt(e);return[Bt(e),t,Bt(t)]}(s)),A="none"!==f;!p&&A&&b.push(...Nt(s,m,f,C));const E=[s,...b],k=await _t(t,g),x=[];let S=(null==(n=i.flip)?void 0:n.overflows)||[];if(d&&x.push(k[y]),u){const e=function(e,t,a){void 0===a&&(a=!1);const n=At(e),o=It(e),i=kt(o);let r="x"===o?n===(a?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(r=Dt(r)),[r,Dt(r)]}(o,r,C);x.push(k[e[0]],k[e[1]])}if(S=[...S,{placement:o,overflows:x}],!x.every(e=>e<=0)){var I,B;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=E[e];if(t){if(!("alignment"===u&&v!==St(t))||S.every(e=>St(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:S},reset:{placement:t}}}let a=null==(B=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:B.placement;if(!a)switch(h){case"bestFit":{var V;const e=null==(V=S.filter(e=>{if(A){const t=St(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:V[0];e&&(a=e);break}case"initialPlacement":a=s}if(o!==a)return{reset:{placement:a}}}return{}}}},Na=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var a,n;const{placement:o,rects:i,platform:r,elements:s}=t,{apply:l=()=>{},...c}=Ct(e,t),d=await _t(t,c),u=bt(o),p=At(o),h="y"===St(o),{width:f,height:m}=i.floating;let g,y;"top"===u||"bottom"===u?(g=u,y=p===(await(null==r.isRTL?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(y=u,g="end"===p?"top":"bottom");const v=m-d.top-d.bottom,w=f-d.left-d.right,C=pt(m-d[g],v),b=pt(f-d[y],w),A=!t.middlewareData.shift;let E=C,k=b;if(null!=(a=t.middlewareData.shift)&&a.enabled.x&&(k=w),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(E=v),A&&!p){const e=ht(d.left,0),t=ht(d.right,0),a=ht(d.top,0),n=ht(d.bottom,0);h?k=f-2*(0!==e||0!==t?e+t:ht(d.left,d.right)):E=m-2*(0!==a||0!==n?a+n:ht(d.top,d.bottom))}await l({...t,availableWidth:k,availableHeight:E});const x=await r.getDimensions(s.floating);return f!==x.width||m!==x.height?{reset:{rects:!0}}:{}}}},Da=(e,t,a)=>{const n=/* @__PURE__ */new Map,o={platform:Ia,...a},i={...o.platform,_c:n};return(async(e,t,a)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:r}=a,s=i.filter(Boolean),l=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=Ft(c,n,l),p=n,h={},f=0;for(let m=0;m<s.length;m++){const{name:a,fn:i}=s[m],{x:g,y:y,data:v,reset:w}=await i({x:d,y:u,initialPlacement:n,placement:p,strategy:o,middlewareData:h,rects:c,platform:r,elements:{reference:e,floating:t}});d=null!=g?g:d,u=null!=y?y:u,h={...h,[a]:{...h[a],...v}},w&&f<=50&&(f++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(c=!0===w.rects?await r.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:d,y:u}=Ft(c,p,l))),m=-1)}return{x:d,y:u,placement:p,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};const Ua="data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2534'%20width='200'%20height='200'%3e%3cpath%20d='M448%2085.333333a362.666667%20362.666667%200%201%200%20224.512%20647.509334l155.818667%20155.818666a42.666667%2042.666667%200%200%200%2060.330666-60.330666l-155.818666-155.818667A362.666667%20362.666667%200%200%200%20448%2085.333333zM170.666667%20448a277.333333%20277.333333%200%201%201%20554.666666%200%20277.333333%20277.333333%200%200%201-554.666666%200z'%20p-id='2535'%3e%3c/path%3e%3c/svg%3e",Fa="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon/more'%3e%3cg%20id='&%23231;&%23188;&%23150;&%23231;&%23187;&%23132;'%3e%3cpath%20id='Stroke%201'%20d='M1.56628%207.79421H14.0959'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%203'%20d='M14.0667%207.79292C11.5075%207.79292%209.43396%205.71938%209.43396%203.16016'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%205'%20d='M14.0667%207.79297C11.5075%207.79297%209.43396%209.86651%209.43396%2012.4257'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",_a={class:"selection-wrapper"},La={class:"tag-text"},Ma=["onClick"],Oa={key:0,class:"search-tag collapse"},ja=["placeholder"],qa={class:"suffix-area"},Ha={key:1,class:"loading-spinner"},za={class:"search-icon"},Ja=["src"],Wa={key:0,class:"history-section"},Qa={class:"history-header"},Ka=["onMousedown"],Ga=["src"],Xa={class:"type-text"},Ya={class:"result-text"},Za={key:0,class:"status-msg"},$a=["onMousedown"],en=["src"],tn={class:"type-text"},an={class:"result-text"},nn={key:0,class:"load-more-msg"},on={key:2,class:"status-msg"},rn={key:0,class:"no-result-label"},sn={key:1,class:"no-result-label"},ln={class:"jc:flex jc:justify-center jc:items-center jc:gap-1"},cn=["src"],dn=(e,t)=>{const a=e.__vccOpts||e;for(const[n,o]of t)a[n]=o;return a},un=/* @__PURE__ */dn(/* @__PURE__ */o({__name:"index",props:{modelValue:{default:null},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},searchTypeList:{default:()=>["Continent","Country","Region","City","Seaport","Airport"]},historyKey:{default:void 0},lang:{default:""},placeholder:{},showSearchIcon:{type:Boolean,default:!0},showItemTag:{type:Boolean,default:!0},showApplyData:{type:Boolean,default:!0},parentId:{default:null},parentType:{default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","select","blur","change","submit-search","remove","clear","apply-data","apply-data-open","apply-data-close"],setup(o,{emit:I}){const B=o,V=I,T=e(null),P=e(null),R=e(null),N=e(""),D=e(""),U=e(!1);let F=null;const _=e(!1),L=t(()=>B.modelValue?Array.isArray(B.modelValue)?B.modelValue:[B.modelValue]:[]),M=t(()=>B.multiple?B.collapseTags?L.value.slice(0,1):L.value:[]),O=t(()=>N.value||L.value.length>0),j=t(()=>B.multiple?N.value?10*N.value.length+20+"px":"10px":"100%"),{searchHistory:q,saveToHistory:H,clearHistory:z}=function(n){const o=e([]),i="undefined"!=typeof window&&"undefined"!=typeof localStorage,r=t(()=>(n.value||"")+"_search_history_cache"),s=t(()=>!!n.value&&""!==n.value);return a(()=>{if(i&&s.value){const t=localStorage.getItem(r.value);if(t)try{o.value=JSON.parse(t)}catch(e){o.value=[]}}}),{searchHistory:o,saveToHistory:e=>{if(!e||!i)return;const t=o.value.filter(t=>t.id&&t.id!==e.id||t.display!==e.display);t.unshift(e);const a=t.slice(0,4);if(s.value){o.value=a;try{localStorage.setItem(r.value,JSON.stringify(a))}catch(n){console.warn("LocalStorage save failed:",n)}}},clearHistory:()=>{o.value=[],i&&localStorage.removeItem(r.value)},HasHistory:s}}(i(B,"historyKey")),{searchResults:J,loading:W,isFetchingMore:Q,isFinished:K,currentPage:G,fetchData:X,filterByTypes:Y}=ut(N,i(B,"searchTypeList"),{parentId:i(B,"parentId"),parentType:i(B,"parentType")}),{floatingStyles:Z,startTrack:$,stopTrack:ee}=function(t,a){const o=e({position:"fixed",left:"0",top:"0",zIndex:3e3});let i=null;const r=()=>{t.value&&a.value&&Da(t.value,a.value,{placement:"bottom-start",strategy:"fixed",middleware:[Ta(6),Ra(),Pa({padding:10}),Na({apply({rects:e,elements:t,availableWidth:a}){const n=`${e.reference.width}px`,o=e.reference.width;Object.assign(t.floating.style,{width:"max-content",minWidth:n,maxWidth:`${Math.max(o,a-20)}px`})}})]}).then(({x:e,y:t})=>{Object.assign(o.value,{left:`${e}px`,top:`${t}px`})})},s=()=>{i&&(i(),i=null)};return n(s),{floatingStyles:o,startTrack:()=>{t.value&&a.value&&(i=Va(t.value,a.value,r))},stopTrack:s}}(P,R),{hydrateMultiple:te,hydrateSingle:ae}=ct(dt),{isDropdownVisible:ne,openDropdown:oe,handleAfterSelect:ie,handleBlur:re}=function(t,a,n,o){const i=e(!1),r=()=>i.value=!1;return{isDropdownVisible:i,openDropdown:()=>i.value=!0,closeDropdown:r,handleAfterSelect:()=>{t?a.value?.focus():(n.value="",r(),a.value?.blur())},handleBlur:()=>{setTimeout(()=>{r(),o("blur"),n.value=""},200)}}}(i(B,"multiple").value,T,N,V),{formItem:se}=ze(),le=t(()=>J.value.length>0||W.value||N.value||q.value.length>0),ce=t(()=>{if(B.lang)return"en"===B.lang||"en-US"===B.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),de=t(()=>B.multiple&&L.value.length>0?"":U.value&&!B.multiple?D.value:B.placeholder?B.placeholder:ce.value?"Please enter...":"请输入..."),ue=e=>({City:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVR4AaRQO07DQBCdWe8B4B5IFFyAK9ARkIVNhIQEEiVtJLgABRVRvIBCJBquwBVyDgoaSnuHeZY3MlYcNsnIb8fze6M3hra0XoKJm95N3Nv3EnyhFvb2EgjRJbOMKqmO2tDcvQ5fK+qvl4CJbOn9/CJPP9tArp5sHtP4lc652VXxPL1Z1hRFIOytF1NuTJCfnT4Ms8HjSgJctn1xIt6hxqIkdK+u8U8zT1ESmP5enUkWmqMkhG2FmxXOvR+EGD5KAhoDqsQvtiMXJQGNQJ4N8mF6PMd/wL8SxuOXPSG21pj9p+L1EOjGyAHoQQ0zWGDqx9pbPWIpwqOEkw+gGyMHoAc1ozOkVhOcZyepYndNpDpPvwAAAP//BVQJHAAAAAZJREFUAwDZWL4hub5xHQAAAABJRU5ErkJggg==",Country:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACmklEQVR4AXRTT0jUQRT+3uyqGxgYeCiy1JAo6JBUp4Q81EEiKKiDa+H+/ENGHgPpZtChQ4EHL+Ku+9t0V7EkQSGPBYGHBIU6RAqt2cFDBw9C+3de3yy7hobDvHm/+d4337x58xuDQ9r4+FRDLJZq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FxfbbVUVGG5v4i2p8LD8x9ax65C66KTfKGCSDc97fv6DJzuf9QtDtm+iqsM1ot70w9O+YDbmSQ6bkkyCJitnAUcnryqmuExgSsZYKypvgFvS+5xVsJk0MGlps97mFCVXpnNZqoBcbo2QyJz7dCLj6JTj6tRxVyf3izZUtNndwM73SU55JzaO4Q8AAAD//54At5MAAAAGSURBVAMAh2IbMAJQAZQAAAAASUVORK5CYII="),pe=e=>{const t={City:{en:"City",cn:"城市"},Country:{en:"Country",cn:"国家"},Region:{en:"Region",cn:"区域"},Airport:{en:"Airport",cn:"机场"},Seaport:{en:"Seaport",cn:"港口"}}[e];return t?ce.value?t.en:t.cn:e},he=e=>L.value.some(t=>t.id===e.id),fe=()=>T.value?.focus(),me=e=>ce.value?e.displayEn||e.display||"":e.displayCn||e.display||"",ge=e=>{if(H(e),B.multiple){if(!he(e)){const t=[...L.value,e];V("update:modelValue",t)}}else D.value=me(e),U.value=!0,V("update:modelValue",e);V("select",e),V("change",e),se?.validate?.("change").catch(()=>{}),ie()},ye=e=>{const t=L.value.filter(t=>t.id!==e.id);V("update:modelValue",t),V("remove",e)},ve=()=>{B.multiple&&!N.value&&L.value.length>0&&ye(L.value[L.value.length-1])},we=()=>{N.value="",U.value=!1,D.value="";const e=B.multiple?[]:null;V("update:modelValue",e),V("clear"),se?.validate?.("change").catch(()=>{})},Ce=async()=>{if(oe(),!B.multiple&&U.value&&0===J.value.length){const e=B.modelValue;if(e?.id){W.value=!0;try{const t=await dt(e.id,e.type);J.value=Y(t.records)}finally{W.value=!1}}}},be=e=>{re(),se?.validate?.("blur").catch(()=>{})},Ae=e=>{const t=e.target;t&&(""!==t.value||B.multiple||we())},Ee=()=>{V("submit-search",L.value),ne.value=!1},ke=e=>{const t=e.target;if(!t)return;const{scrollTop:a,scrollHeight:n,clientHeight:o}=t;a+o>=n-20&&(W.value||Q.value||K.value||!N.value||X(G.value+1,!0))},xe=e=>{V("apply-data",e)},Se=()=>{_.value=!0,V("apply-data-open")},Ie=()=>{N.value="",_.value=!1,V("apply-data-close")};return r(()=>B.parentId,()=>{B.multiple||(N.value="",J.value=[])}),r(ne,e=>{e?$():ee()}),r(N,e=>{if(!e.trim())return J.value=[],void(F&&(clearTimeout(F),F=null));F&&clearTimeout(F),F=setTimeout(()=>X(1,!1),300)}),r(()=>B.modelValue,async(e,t)=>{if(JSON.stringify(e)===JSON.stringify(t))return;if(B.multiple&&Array.isArray(e)){try{const{updatedList:t,hasChanged:a}=await te(e);a&&V("update:modelValue",t)}catch(n){console.error("Batch fetch detail failed:",n)}return}const a=e;if(!a)return U.value=!1,void(D.value="");if("object"==typeof a)if(a.id&&a.type&&!a.display)try{const e=await ae(a);e&&(D.value=me(e),U.value=!0)}catch(n){console.error("Single fetch detail failed:",n)}else D.value=me(a),U.value=!!D.value;else D.value=String(a),U.value=!!a},{immediate:!0,deep:!0}),n(()=>{ee(),F&&(clearTimeout(F),F=null)}),(e,t)=>(l(),s("div",{class:c(["search-container",{"is-disabled":o.disabled}])},[d("div",{class:c(["search-input-wrapper",{"is-multiple":o.multiple}]),ref_key:"referenceRef",ref:P,onClick:fe},[d("div",_a,[h(e.$slots,"prefix",{},void 0,!0),o.multiple&&L.value.length>0?(l(),s(g,{key:0},[(l(!0),s(g,null,y(M.value,(e,t)=>(l(),s("div",{key:e.id||t,class:"search-tag"},[d("span",La,v(me(e)),1),d("span",{class:"tag-close",onClick:w(t=>ye(e),["stop"])},"×",8,Ma)]))),128)),o.collapseTags&&L.value.length>1?(l(),s("div",Oa," + "+v(L.value.length-1),1)):f("",!0)],64)):f("",!0),m(d("input",{ref_key:"inputRef",ref:T,class:c({"is-selected-state":U.value&&!o.multiple}),"onUpdate:modelValue":t[0]||(t[0]=e=>N.value=e),type:"text",placeholder:de.value,style:b({width:j.value}),onFocus:Ce,onBlur:be,onInput:Ae,onKeydown:C(ve,["delete"])},null,46,ja),[[A,N.value]])]),h(e.$slots,"suffix",{},()=>[d("div",qa,[O.value?(l(),s("span",{key:0,class:"clear-icon",onMousedown:t[1]||(t[1]=w(()=>{},["prevent"])),onClick:w(we,["stop"])},"ⓧ",32)):f("",!0),E(W)&&!E(Q)?(l(),s("div",Ha)):!E(W)&&o.showSearchIcon?(l(),s("button",{key:2,class:"search-btn",onClick:w(Ee,["stop"])},[d("span",za,[d("img",{src:E(Ua),alt:"search"},null,8,Ja)])])):f("",!0)])],!0)],2),(l(),u(k,{to:"body"},[m(d("div",{ref_key:"floatingRef",ref:R,class:"dropdown-list",style:b(E(Z)),onScroll:ke},[h(e.$slots,"history",{searchHistory:E(q)},()=>[E(q).length>0&&!N.value?(l(),s("div",Wa,[d("div",Qa,[d("span",null,v(ce.value?"Recent search":"最近搜索"),1),d("span",{class:"clear-btn",onMousedown:t[2]||(t[2]=w(()=>{},["prevent"])),onClick:t[3]||(t[3]=w((...e)=>E(z)&&E(z)(...e),["stop"]))},v(ce.value?"Clear":"清空"),33)]),(l(!0),s(g,null,y(E(q),(e,t)=>(l(),s("div",{key:"hist-"+t,class:"dropdown-item",onMousedown:w(t=>ge(e),["prevent"])},[d("div",{class:"category-tag",style:b(o.showItemTag?{}:{display:"none"})},[d("img",{class:"type-icon",src:ue(e.type),alt:""},null,8,Ga),d("span",Xa,v(pe(e.type)),1)],4),d("div",Ya,v(me(e)),1)],40,Ka))),128)),t[7]||(t[7]=d("hr",{class:"divider"},null,-1))])):f("",!0)],!0),E(W)&&!E(Q)?(l(),s("div",Za,v(ce.value?"Searching...":"正在搜索中..."),1)):E(J).length>0?(l(),s(g,{key:1},[h(e.$slots,"results",{searchResults:E(J)},()=>[(l(!0),s(g,null,y(E(J),(e,t)=>(l(),s("div",{key:t,class:c(["dropdown-item",{"is-active":he(e)}]),onMousedown:w(t=>ge(e),["prevent"])},[d("div",{class:"category-tag",style:b(o.showItemTag?{}:{display:"none"})},[d("img",{class:"type-icon",src:ue(e.type),alt:""},null,8,en),d("span",tn,v(pe(e.type)),1)],4),d("div",an,v(me(e)),1)],42,$a))),128))],!0),E(Q)?(l(),s("div",nn,v(ce.value?"Loading more...":"正在加载更多..."),1)):f("",!0)],64)):N.value&&!E(W)?(l(),s("div",on,[h(e.$slots,"noData",{},()=>[o.showApplyData?(l(),s("div",sn,[x(v(ce.value?"No results found. ":"暂无结果,")+" ",1),d("div",ln,[d("span",{class:"apply-data jc:cursor-pointer jc:ml-1",onClick:t[4]||(t[4]=w(()=>_.value=!0,["stop"]))},v(ce.value?"Apply for data addition":"申请补充数据 "),1),d("img",{src:E(Fa),alt:"",class:"apply-data-more-icon",onClick:t[5]||(t[5]=w(()=>_.value=!0,["stop"]))},null,8,cn)])])):(l(),s("p",rn,v(ce.value?`No results found related to "${N.value}".`:`未找到与 "${N.value}" 相关的结果`),1))],!0)])):f("",!0)],36),[[S,E(ne)&&le.value]])])),p(io,{searchValue:N.value,value:_.value,"onUpdate:value":t[6]||(t[6]=e=>_.value=e),lang:o.lang,onConfirm:xe,onOpen:Se,onClose:Ie},null,8,["searchValue","value","lang"])],2))}}),[["__scopeId","data-v-41ee7833"]]),pn=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:un},Symbol.toStringTag,{value:"Module"}));var hn="object"==typeof global&&global&&global.Object===Object&&global,fn="object"==typeof self&&self&&self.Object===Object&&self,mn=hn||fn||Function("return this")(),gn=mn.Symbol,yn=Object.prototype,vn=yn.hasOwnProperty,wn=yn.toString,Cn=gn?gn.toStringTag:void 0;var bn=Object.prototype.toString;var An=gn?gn.toStringTag:void 0;function En(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":An&&An in Object(e)?function(e){var t=vn.call(e,Cn),a=e[Cn];try{e[Cn]=void 0;var n=!0}catch(i){}var o=wn.call(e);return n&&(t?e[Cn]=a:delete e[Cn]),o}(e):function(e){return bn.call(e)}(e)}var kn=/\s/;var xn=/^\s+/;function Sn(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&kn.test(e.charAt(t)););return t}(e)+1).replace(xn,""):e}function In(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var Bn=/^[-+]0x[0-9a-f]+$/i,Vn=/^0b[01]+$/i,Tn=/^0o[0-7]+$/i,Pn=parseInt;function Rn(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==En(e)}(e))return NaN;if(In(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=In(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Sn(e);var a=Vn.test(e);return a||Tn.test(e)?Pn(e.slice(2),a?2:8):Bn.test(e)?NaN:+e}var Nn=function(){return mn.Date.now()},Dn=Math.max,Un=Math.min;function Fn(e,t,a){var n,o,i,r,s,l,c=0,d=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var a=n,i=o;return n=o=void 0,c=t,r=e.apply(i,a)}function f(e){var a=e-l;return void 0===l||a>=t||a<0||u&&e-c>=i}function m(){var e=Nn();if(f(e))return g(e);s=setTimeout(m,function(e){var a=t-(e-l);return u?Un(a,i-(e-c)):a}(e))}function g(e){return s=void 0,p&&n?h(e):(n=o=void 0,r)}function y(){var e=Nn(),a=f(e);if(n=arguments,o=this,l=e,a){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),d?h(e):r}(l);if(u)return clearTimeout(s),s=setTimeout(m,t),h(l)}return void 0===s&&(s=setTimeout(m,t)),r}return t=Rn(t)||0,In(a)&&(d=!!a.leading,i=(u="maxWait"in a)?Dn(Rn(a.maxWait)||0,t):i,p="trailing"in a?!!a.trailing:p),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=o=s=void 0},y.flush=function(){return void 0===s?r:g(Nn())},y}const _n={key:0,class:"modal-container"},Ln={class:"modal-header"},Mn={class:"header-title"},On={class:"modal-body"},jn={class:"form-item"},qn={class:"required"},Hn={class:"input-box"},zn=["placeholder"],Jn={key:0,class:"error-message"},Wn={class:"form-item"},Qn={class:"required"},Kn={class:"type-group"},Gn=["onClick"],Xn={key:0,class:"check-mark"},Yn={class:"form-item"},Zn={class:"required"},$n={key:0,class:"error-message"},eo={class:"modal-footer"},to={key:1,class:"apply-success-container"},ao={class:"apply-success-container__content"},no={class:"desc"},oo={class:"apply-success-container__btns"},io=/* @__PURE__ */dn({__name:"ApplyDataDialog",props:{value:{type:Boolean,default:!1},lang:{type:String,default:"",validator:e=>["","en","en-US","zh-CN","cn"].includes(e)},searchValue:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update:value","confirm","open","close"],setup(a,{emit:n}){const o=a,i=n,u=[{typeCn:"城市",typeEn:"City",type:"City"},{typeCn:"海运港口",typeEn:"Port",type:"Seaport"},{typeCn:"机场",typeEn:"Airport",type:"Airport"}],h=e(null),C=e(!1),b=e(!1);r(()=>o.value,e=>{e&&(console.log("🍉 ~ ApplyDataDialog.vue:138 ~ props.searchValue:",o.searchValue),o.searchValue&&(S.name=o.searchValue),i("open"))});const k=I({name:"",country:""}),S=I({name:"",type:"City"}),B=t(()=>{if(o.lang)return"en"===o.lang||"en-US"===o.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),V=()=>{k.name="",k.country="",C.value=!1,S.name="",S.type="City",h.value=null,i("update:value",!1),i("close")},T=Fn(()=>{k.name="",k.country="";let e=!0;S.name.trim()||(k.name=B.value?"Please enter the data":"请输入需要补充的数据",e=!1),h.value||(k.country=B.value?"Please select a country":"请选择国家",e=!1),e&&(b.value=!0,J({reportData:S.name,reportType:S.type.toLocaleLowerCase(),countryId:h.value.id}).then(e=>{console.log("🍉 ~ ApplyDataDialog.vue:185 ~ handleConfirm ~ res:",e,e.code),0===e.code&&(C.value=!0,Je.success(B.value?"Application received. Awaiting review":"平台已收到申请,请等待审核"),i("confirm",{...S,country:h.value}))}).catch(e=>{console.log("🍉 ~ ApplyDataDialog.vue:187 ~ handleConfirm ~ err:",e)}).finally(()=>{b.value=!1}))},800,{leading:!0,trailing:!1});return(e,t)=>a.value?(l(),s("div",{key:0,class:"modal-mask",onClick:w(V,["self"])},[C.value?(l(),s("div",to,[d("div",ao,[t[5]||(t[5]=d("div",{class:"icon"},null,-1)),d("div",no,v(B.value?"Application received. Awaiting review!":"平台已收到申请,请等待审核!"),1)]),d("div",oo,[d("div",{class:"button jc:cursor-pointer",onClick:w(V,["stop"])},v(B.value?"OK":"好的"),1)])])):(l(),s("div",_n,[d("div",Ln,[d("span",Mn,v(B.value?"Apply for data addition":"申请补充数据"),1),d("div",{class:"close-btn",onClick:V},"×")]),d("div",On,[d("div",jn,[d("label",qn,v(B.value?"Data To Add":"需补充的数据"),1),d("div",Hn,[m(d("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>S.name=e),type:"text",placeholder:a.placeholder??(B.value?" Please enter":"请输入"),class:c(["custom-input",{"input-error":k.name}]),onInput:t[1]||(t[1]=e=>k.name="")},null,42,zn),[[A,S.name]])]),k.name?(l(),s("div",Jn,v(k.name),1)):f("",!0)]),d("div",Wn,[d("label",Qn,v(B.value?"Type":"所属类别"),1),d("div",Kn,[(l(),s(g,null,y(u,e=>d("div",{key:e.type,class:c(["type-btn",{active:S.type===e.type}]),onClick:t=>S.type=e.type},[x(v(B.value?e.typeEn:e.typeCn)+" ",1),S.type===e.type?(l(),s("div",Xn)):f("",!0)],10,Gn)),64))])]),d("div",Yn,[d("label",Zn,v(B.value?"Country":"国家"),1),d("div",{class:c({"search-error-wrap":k.country})},[p(un,{"search-type-list":["Country"],"model-value":h.value,"onUpdate:modelValue":[t[2]||(t[2]=e=>h.value=e),t[3]||(t[3]=e=>k.country="")],style:{margin:"0 auto"},lang:a.lang,"show-apply-data":!1,"show-search-icon":!1,placeholder:a.placeholder??(B.value?" Please enter":"请输入")},null,8,["model-value","lang","placeholder"])],2),k.country?(l(),s("div",$n,v(k.country),1)):f("",!0)])]),d("div",eo,[m((l(),s("div",{class:c(["confirm-btn jc:outline-none!",{"is-loading":b.value}]),onClick:t[4]||(t[4]=(...e)=>E(T)&&E(T)(...e))},[x(v(B.value?"Submit":"申请补充"),1)],2)),[[E(We),b.value]])])]))])):f("",!0)}},[["__scopeId","data-v-98fe6169"]]),ro=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:io},Symbol.toStringTag,{value:"Module"}));const so={class:"global-company-input"},lo={class:"company-option-item"},co=/* @__PURE__ */dn({__name:"index",props:{lang:{type:String,default:""},companyName:{type:String,default:""},countryId:{type:[String,Number,null],required:!0},useKq:{type:Boolean,default:!1},kqCode:{type:[String,Number],default:""},kqInfo:{type:Object,default:()=>({})},city:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1}},emits:["update:companyName","update:useKq","update:kqCode","update:kqInfo","change"],setup(a,{emit:o}){const i=a,c=o,p=e(!1),f=e([]),{isEn:m}=function(e=""){return{isEn:t(()=>{if(e)return"en"===e||"en-US"===e;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(t){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(t){}return!1})}}(i.lang),{formItem:w}=ze(),C=t({get:()=>i.companyName,set:e=>c("update:companyName",e)}),b=e(!1),A=e=>{e?(p.value=!0,k(e)):f.value=[]},k=Fn(e=>{console.log("🍉 ~ index.vue:119 ~ props.city:",i.city);const t={current:1,size:50,compName:e,cityName:i.city?.nameCn+"市"};W(t).then(e=>{f.value=e.data.data.records?.map(e=>({value:e.nameCn,code:e.kqId,...e}))||[]}).catch(e=>{console.error("获取公司选项失败:",e),f.value=[]}).finally(()=>{p.value=!1})},800),x=e=>{const t=f.value.find(t=>t.value===e);t?(c("update:useKq",!0),c("update:kqCode",t.code),c("update:kqInfo",t)):(c("update:useKq",!1),c("update:kqCode",""),c("update:kqInfo",{})),c("change",t)},S=e=>{c("update:useKq",!1),c("update:kqCode",""),c("change",e),w?.validate?.("change").catch(()=>{})};return r(()=>i.countryId,()=>{c("update:companyName",""),c("update:useKq",!1),c("update:kqCode",""),c("update:kqInfo",{}),w?.validate?.("change").catch(()=>{}),f.value=[]}),n(()=>{k.cancel()}),(e,t)=>(l(),s("div",so,[[1].includes(Number(i.countryId))?(l(),u(E(Qe),{key:0,modelValue:C.value,"onUpdate:modelValue":t[0]||(t[0]=e=>C.value=e),filterable:"",remote:"","reserve-keyword":"",clearable:"","allow-create":a.allowCreate,"default-first-option":a.defaultFirstOption,"remote-method":A,loading:p.value,disabled:b.value||i.disabled,placeholder:E(m)?"Company Name in Chinese":"请输入您的公司中文名称",style:{width:"100%"},"popper-class":"company-search dialog-join-us",onChange:x},{prefix:B(()=>[h(e.$slots,"prefix",{},void 0,!0)]),default:B(()=>[(l(!0),s(g,null,y(f.value,e=>(l(),u(E(Ke),{key:e.code,label:e.value,value:e.value},{default:B(()=>[d("div",lo,[d("span",null,v(e.value),1)])]),_:2},1032,["label","value"]))),128))]),_:3},8,["modelValue","allow-create","default-first-option","loading","disabled","placeholder"])):(l(),u(E(Ge),{key:1,modelValue:C.value,"onUpdate:modelValue":t[1]||(t[1]=e=>C.value=e),disabled:b.value||i.disabled,placeholder:E(m)?"Company name in English":"请输入您的公司英文名称","max-length":"200",style:{width:"100%"},onChange:S},{prepend:B(()=>[h(e.$slots,"prefix",{},void 0,!0)]),_:3},8,["modelValue","disabled","placeholder"]))]))}},[["__scopeId","data-v-24cf1e2e"]]),uo=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:co},Symbol.toStringTag,{value:"Module"})),po={type:"text",name:"fakeUsername",autocomplete:"on"},ho={type:"password",name:"fakePassword",autocomplete:"new-password"},fo={class:"google-input-wrap"},mo={key:0,class:"google-input-wrap-prepend"},go={class:"google-input-wrap-input"};const yo=/* @__PURE__ */dn({name:"GoogleInput",components:{ElInput:Ge},inheritAttrs:!1,props:{placeholder:{type:String,default:""},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue","blur","focus"],data:()=>({isFocus:!1,autofillTimer:null}),computed:{isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus||null!==this.modelValue&&""!==this.modelValue}},mounted(){window.navigator.userAgent.indexOf("Chrome")>-1&&this.checkAutofill(0)},beforeUnmount(){this.clearAutofillTimer()},methods:{focusInput(){this.$refs.googleInput?.focus?.()},clearAutofillTimer(){this.autofillTimer&&(clearTimeout(this.autofillTimer),this.autofillTimer=null)},checkAutofill(e){try{const t=this.$refs.googleInput?.$el?.querySelector("input");if(!t)return;if("rgb(232, 240, 254)"===window.getComputedStyle(t).getPropertyValue("background-color"))return void(this.isFocus=!0);e<20&&(this.autofillTimer=setTimeout(()=>{this.checkAutofill(e+1)},100))}catch(t){console.error("Autofill detection error:",t)}},handleInput(e){this.$emit("update:modelValue",e)},localBlur(e){this.isFocus=!1,this.$emit("blur",e)},localFocus(e){this.isFocus=!0,this.$emit("focus",e)}}},[["render",function(e,t,a,n,o,i){const r=V("el-input");return l(),s("div",{class:c(["google-input",{"is-focus":i.shouldFloat,"is-have-prepend":i.isHavePrepend}])},[m(d("input",po,null,512),[[S,!1]]),m(d("input",ho,null,512),[[S,!1]]),d("div",fo,[i.isHavePrepend?(l(),s("div",mo,[h(e.$slots,"prefix",{},void 0,!0)])):f("",!0),d("div",go,[p(r,T({ref:"googleInput"},e.$attrs,{"model-value":a.modelValue},P({input:i.handleInput,blur:i.localBlur,focus:i.localFocus})),{suffix:B(()=>[h(e.$slots,"suffix",{},void 0,!0)]),_:3},16,["model-value"]),d("p",{onClick:t[0]||(t[0]=(...e)=>i.focusInput&&i.focusInput(...e)),class:"google-input-wrap-input-placeholder"},v(a.placeholder),1)])])],2)}],["__scopeId","data-v-27eaff9d"]]),vo=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:yo},Symbol.toStringTag,{value:"Module"})),wo={type:"text",name:"fakeUsername",autocomplete:"on"},Co={type:"password",name:"fakePassword",autocomplete:"new-password"},bo={class:"google-input-wrap"},Ao={key:0,class:"google-input-wrap-prepend"},Eo={class:"google-input-wrap-input"};const ko=/* @__PURE__ */dn({name:"JcFloatInput",components:{ElInput:Ge},inheritAttrs:!1,props:{placeholder:{type:String,default:""},label:{type:String,default:""},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue","blur","focus"],data:()=>({isFocus:!1,autofillTimer:null}),computed:{currentLabel(){return this.label?this.label:this.placeholder},isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus}},mounted(){window.navigator.userAgent.indexOf("Chrome")>-1&&this.checkAutofill(0)},beforeUnmount(){this.clearAutofillTimer()},methods:{focusInput(){this.$refs.googleInput?.focus?.()},clearAutofillTimer(){this.autofillTimer&&(clearTimeout(this.autofillTimer),this.autofillTimer=null)},checkAutofill(e){try{const t=this.$refs.googleInput?.$el?.querySelector("input");if(!t)return;if("rgb(232, 240, 254)"===window.getComputedStyle(t).getPropertyValue("background-color"))return void(this.isFocus=!0);e<20&&(this.autofillTimer=setTimeout(()=>{this.checkAutofill(e+1)},100))}catch(t){console.error("Autofill detection error:",t)}},handleInput(e){this.$emit("update:modelValue",e)},localBlur(e){this.isFocus=!1,this.$emit("blur",e)},localFocus(e){this.isFocus=!0,this.$emit("focus",e)}}},[["render",function(e,t,a,n,o,i){const r=V("el-input");return l(),s("div",{class:c(["google-input",{"is-focus":i.shouldFloat,"is-have-prepend":i.isHavePrepend}])},[m(d("input",wo,null,512),[[S,!1]]),m(d("input",Co,null,512),[[S,!1]]),d("div",bo,[i.isHavePrepend?(l(),s("div",Ao,[h(e.$slots,"prefix",{},void 0,!0)])):f("",!0),d("div",Eo,[p(r,T({ref:"googleInput"},e.$attrs,{"model-value":a.modelValue,placeholder:a.placeholder},P({input:i.handleInput,blur:i.localBlur,focus:i.localFocus})),{suffix:B(()=>[h(e.$slots,"suffix",{},void 0,!0)]),_:3},16,["model-value","placeholder"]),d("p",{onClick:t[0]||(t[0]=(...e)=>i.focusInput&&i.focusInput(...e)),class:"google-input-wrap-input-placeholder"},v(i.currentLabel),1)])])],2)}],["__scopeId","data-v-b4df44b2"]]),xo=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:ko},Symbol.toStringTag,{value:"Module"}));var So="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Io(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bo(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var a=function e(){var a=!1;try{a=this instanceof e}catch{}return a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),a}var Vo={exports:{}};var To={exports:{}};const Po=/* @__PURE__ */Bo(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ro;function No(){return Ro||(Ro=1,To.exports=(e=e||function(e,t){var a;if("undefined"!=typeof window&&window.crypto&&(a=window.crypto),"undefined"!=typeof self&&self.crypto&&(a=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(a=globalThis.crypto),!a&&"undefined"!=typeof window&&window.msCrypto&&(a=window.msCrypto),!a&&void 0!==So&&So.crypto&&(a=So.crypto),!a)try{a=Po}catch(m){}var n=function(){if(a){if("function"==typeof a.getRandomValues)try{return a.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"==typeof a.randomBytes)try{return a.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||/* @__PURE__ */function(){function e(){}return function(t){var a;return e.prototype=t,a=new e,e.prototype=null,a}}(),i={},r=i.lib={},s=r.Base=/* @__PURE__ */function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=r.WordArray=s.extend({init:function(e,a){e=this.words=e||[],this.sigBytes=a!=t?a:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,a=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var r=a[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=r<<24-(n+i)%4*8}else for(var s=0;s<o;s+=4)t[n+s>>>2]=a[s>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,a=this.sigBytes;t[a>>>2]&=4294967295<<32-a%4*8,t.length=e.ceil(a/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],a=0;a<e;a+=4)t.push(n());return new l.init(t,e)}}),c=i.enc={},d=c.Hex={stringify:function(e){for(var t=e.words,a=e.sigBytes,n=[],o=0;o<a;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,a=[],n=0;n<t;n+=2)a[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(a,t/2)}},u=c.Latin1={stringify:function(e){for(var t=e.words,a=e.sigBytes,n=[],o=0;o<a;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,a=[],n=0;n<t;n++)a[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(a,t)}},p=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},h=r.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var a,n=this._data,o=n.words,i=n.sigBytes,r=this.blockSize,s=i/(4*r),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*r,d=e.min(4*c,i);if(c){for(var u=0;u<c;u+=r)this._doProcessBlock(o,u);a=o.splice(0,c),n.sigBytes-=d}return new l.init(a,d)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});r.Hasher=h.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,a){return new e.init(a).finalize(t)}},_createHmacHelper:function(e){return function(t,a){return new f.HMAC.init(e,a).finalize(t)}}});var f=i.algo={};return i}(Math),e)),To.exports;var e}var Do,Uo={exports:{}};function Fo(){return Do?Uo.exports:(Do=1,Uo.exports=(r=No(),a=(t=r).lib,n=a.Base,o=a.WordArray,(i=t.x64={}).Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=n.extend({init:function(t,a){t=this.words=t||[],this.sigBytes=a!=e?a:8*t.length},toX32:function(){for(var e=this.words,t=e.length,a=[],n=0;n<t;n++){var i=e[n];a.push(i.high),a.push(i.low)}return o.create(a,this.sigBytes)},clone:function(){for(var e=n.clone.call(this),t=e.words=this.words.slice(0),a=t.length,o=0;o<a;o++)t[o]=t[o].clone();return e}}),r));var e,t,a,n,o,i,r}var _o,Lo={exports:{}};function Mo(){return _o||(_o=1,Lo.exports=(e=No(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,a=t.init,n=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],o=0;o<t;o++)n[o>>>2]|=e[o]<<24-o%4*8;a.call(this,n,t)}else a.apply(this,arguments)};n.prototype=t}}(),e.lib.WordArray)),Lo.exports;var e}var Oo,jo={exports:{}};function qo(){return Oo?jo.exports:(Oo=1,jo.exports=(e=No(),function(){var t=e,a=t.lib.WordArray,n=t.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,a=e.sigBytes,n=[],o=0;o<a;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o<t;o++)n[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return a.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,a=e.sigBytes,n=[],i=0;i<a;i+=2){var r=o(t[i>>>2]>>>16-i%4*8&65535);n.push(String.fromCharCode(r))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return a.create(n,2*t)}}}(),e.enc.Utf16));var e}var Ho,zo={exports:{}};function Jo(){return Ho?zo.exports:(Ho=1,zo.exports=(e=No(),function(){var t=e,a=t.lib.WordArray;function n(e,t,n){for(var o=[],i=0,r=0;r<t;r++)if(r%4){var s=n[e.charCodeAt(r-1)]<<r%4*2|n[e.charCodeAt(r)]>>>6-r%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return a.create(o,i)}t.enc.Base64={stringify:function(e){var t=e.words,a=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<a;i+=3)for(var r=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<a;s++)o.push(n.charAt(r>>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,a=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<a.length;i++)o[a.charCodeAt(i)]=i}var r=a.charAt(64);if(r){var s=e.indexOf(r);-1!==s&&(t=s)}return n(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64));var e}var Wo,Qo={exports:{}};function Ko(){return Wo?Qo.exports:(Wo=1,Qo.exports=(e=No(),function(){var t=e,a=t.lib.WordArray;function n(e,t,n){for(var o=[],i=0,r=0;r<t;r++)if(r%4){var s=n[e.charCodeAt(r-1)]<<r%4*2|n[e.charCodeAt(r)]>>>6-r%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return a.create(o,i)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var a=e.words,n=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],r=0;r<n;r+=3)for(var s=(a[r>>>2]>>>24-r%4*8&255)<<16|(a[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|a[r+2>>>2]>>>24-(r+2)%4*8&255,l=0;l<4&&r+.75*l<n;l++)i.push(o.charAt(s>>>6*(3-l)&63));var c=o.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var a=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<o.length;r++)i[o.charCodeAt(r)]=r}var s=o.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(a=l)}return n(e,a,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url));var e}var Go,Xo={exports:{}};function Yo(){return Go?Xo.exports:(Go=1,Xo.exports=(e=No(),function(t){var a=e,n=a.lib,o=n.WordArray,i=n.Hasher,r=a.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=r.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var a=0;a<16;a++){var n=t+a,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,r=e[t+0],l=e[t+1],h=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],y=e[t+6],v=e[t+7],w=e[t+8],C=e[t+9],b=e[t+10],A=e[t+11],E=e[t+12],k=e[t+13],x=e[t+14],S=e[t+15],I=i[0],B=i[1],V=i[2],T=i[3];I=c(I,B,V,T,r,7,s[0]),T=c(T,I,B,V,l,12,s[1]),V=c(V,T,I,B,h,17,s[2]),B=c(B,V,T,I,f,22,s[3]),I=c(I,B,V,T,m,7,s[4]),T=c(T,I,B,V,g,12,s[5]),V=c(V,T,I,B,y,17,s[6]),B=c(B,V,T,I,v,22,s[7]),I=c(I,B,V,T,w,7,s[8]),T=c(T,I,B,V,C,12,s[9]),V=c(V,T,I,B,b,17,s[10]),B=c(B,V,T,I,A,22,s[11]),I=c(I,B,V,T,E,7,s[12]),T=c(T,I,B,V,k,12,s[13]),V=c(V,T,I,B,x,17,s[14]),I=d(I,B=c(B,V,T,I,S,22,s[15]),V,T,l,5,s[16]),T=d(T,I,B,V,y,9,s[17]),V=d(V,T,I,B,A,14,s[18]),B=d(B,V,T,I,r,20,s[19]),I=d(I,B,V,T,g,5,s[20]),T=d(T,I,B,V,b,9,s[21]),V=d(V,T,I,B,S,14,s[22]),B=d(B,V,T,I,m,20,s[23]),I=d(I,B,V,T,C,5,s[24]),T=d(T,I,B,V,x,9,s[25]),V=d(V,T,I,B,f,14,s[26]),B=d(B,V,T,I,w,20,s[27]),I=d(I,B,V,T,k,5,s[28]),T=d(T,I,B,V,h,9,s[29]),V=d(V,T,I,B,v,14,s[30]),I=u(I,B=d(B,V,T,I,E,20,s[31]),V,T,g,4,s[32]),T=u(T,I,B,V,w,11,s[33]),V=u(V,T,I,B,A,16,s[34]),B=u(B,V,T,I,x,23,s[35]),I=u(I,B,V,T,l,4,s[36]),T=u(T,I,B,V,m,11,s[37]),V=u(V,T,I,B,v,16,s[38]),B=u(B,V,T,I,b,23,s[39]),I=u(I,B,V,T,k,4,s[40]),T=u(T,I,B,V,r,11,s[41]),V=u(V,T,I,B,f,16,s[42]),B=u(B,V,T,I,y,23,s[43]),I=u(I,B,V,T,C,4,s[44]),T=u(T,I,B,V,E,11,s[45]),V=u(V,T,I,B,S,16,s[46]),I=p(I,B=u(B,V,T,I,h,23,s[47]),V,T,r,6,s[48]),T=p(T,I,B,V,v,10,s[49]),V=p(V,T,I,B,x,15,s[50]),B=p(B,V,T,I,g,21,s[51]),I=p(I,B,V,T,E,6,s[52]),T=p(T,I,B,V,f,10,s[53]),V=p(V,T,I,B,b,15,s[54]),B=p(B,V,T,I,l,21,s[55]),I=p(I,B,V,T,w,6,s[56]),T=p(T,I,B,V,S,10,s[57]),V=p(V,T,I,B,y,15,s[58]),B=p(B,V,T,I,k,21,s[59]),I=p(I,B,V,T,m,6,s[60]),T=p(T,I,B,V,A,10,s[61]),V=p(V,T,I,B,h,15,s[62]),B=p(B,V,T,I,C,21,s[63]),i[0]=i[0]+I|0,i[1]=i[1]+B|0,i[2]=i[2]+V|0,i[3]=i[3]+T|0},_doFinalize:function(){var e=this._data,a=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;a[o>>>5]|=128<<24-o%32;var i=t.floor(n/4294967296),r=n;a[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a[14+(o+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(a.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var d=l[c];l[c]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,a,n,o,i,r){var s=e+(t&a|~t&n)+o+r;return(s<<i|s>>>32-i)+t}function d(e,t,a,n,o,i,r){var s=e+(t&n|a&~n)+o+r;return(s<<i|s>>>32-i)+t}function u(e,t,a,n,o,i,r){var s=e+(t^a^n)+o+r;return(s<<i|s>>>32-i)+t}function p(e,t,a,n,o,i,r){var s=e+(a^(t|~n))+o+r;return(s<<i|s>>>32-i)+t}a.MD5=i._createHelper(l),a.HmacMD5=i._createHmacHelper(l)}(Math),e.MD5));var e}var Zo,$o={exports:{}};function ei(){return Zo?$o.exports:(Zo=1,$o.exports=(s=No(),t=(e=s).lib,a=t.WordArray,n=t.Hasher,o=e.algo,i=[],r=o.SHA1=n.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var a=this._hash.words,n=a[0],o=a[1],r=a[2],s=a[3],l=a[4],c=0;c<80;c++){if(c<16)i[c]=0|e[t+c];else{var d=i[c-3]^i[c-8]^i[c-14]^i[c-16];i[c]=d<<1|d>>>31}var u=(n<<5|n>>>27)+l+i[c];u+=c<20?1518500249+(o&r|~o&s):c<40?1859775393+(o^r^s):c<60?(o&r|o&s|r&s)-1894007588:(o^r^s)-899497514,l=s,s=r,r=o<<30|o>>>2,o=n,n=u}a[0]=a[0]+n|0,a[1]=a[1]+o|0,a[2]=a[2]+r|0,a[3]=a[3]+s|0,a[4]=a[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(a/4294967296),t[15+(n+64>>>9<<4)]=a,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=n._createHelper(r),e.HmacSHA1=n._createHmacHelper(r),s.SHA1));var e,t,a,n,o,i,r,s}var ti,ai={exports:{}};function ni(){return ti?ai.exports:(ti=1,ai.exports=(e=No(),function(t){var a=e,n=a.lib,o=n.WordArray,i=n.Hasher,r=a.algo,s=[],l=[];!function(){function e(e){for(var a=t.sqrt(e),n=2;n<=a;n++)if(!(e%n))return!1;return!0}function a(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)e(n)&&(o<8&&(s[o]=a(t.pow(n,.5))),l[o]=a(t.pow(n,1/3)),o++),n++}();var c=[],d=r.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var a=this._hash.words,n=a[0],o=a[1],i=a[2],r=a[3],s=a[4],d=a[5],u=a[6],p=a[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var f=c[h-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[h-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[h]=m+c[h-7]+y+c[h-16]}var v=n&o^n&i^o&i,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),C=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&d^~s&u)+l[h]+c[h];p=u,u=d,d=s,s=r+C|0,r=i,i=o,o=n,n=C+(w+v)|0}a[0]=a[0]+n|0,a[1]=a[1]+o|0,a[2]=a[2]+i|0,a[3]=a[3]+r|0,a[4]=a[4]+s|0,a[5]=a[5]+d|0,a[6]=a[6]+u|0,a[7]=a[7]+p|0},_doFinalize:function(){var e=this._data,a=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return a[o>>>5]|=128<<24-o%32,a[14+(o+64>>>9<<4)]=t.floor(n/4294967296),a[15+(o+64>>>9<<4)]=n,e.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});a.SHA256=i._createHelper(d),a.HmacSHA256=i._createHmacHelper(d)}(Math),e.SHA256));var e}var oi,ii={exports:{}};var ri,si={exports:{}};function li(){return ri||(ri=1,si.exports=(e=No(),Fo(),function(){var t=e,a=t.lib.Hasher,n=t.x64,o=n.Word,i=n.WordArray,r=t.algo;function s(){return o.create.apply(o,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var d=r.SHA512=a.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var a=this._hash.words,n=a[0],o=a[1],i=a[2],r=a[3],s=a[4],d=a[5],u=a[6],p=a[7],h=n.high,f=n.low,m=o.high,g=o.low,y=i.high,v=i.low,w=r.high,C=r.low,b=s.high,A=s.low,E=d.high,k=d.low,x=u.high,S=u.low,I=p.high,B=p.low,V=h,T=f,P=m,R=g,N=y,D=v,U=w,F=C,_=b,L=A,M=E,O=k,j=x,q=S,H=I,z=B,J=0;J<80;J++){var W,Q,K=c[J];if(J<16)Q=K.high=0|e[t+2*J],W=K.low=0|e[t+2*J+1];else{var G=c[J-15],X=G.high,Y=G.low,Z=(X>>>1|Y<<31)^(X>>>8|Y<<24)^X>>>7,$=(Y>>>1|X<<31)^(Y>>>8|X<<24)^(Y>>>7|X<<25),ee=c[J-2],te=ee.high,ae=ee.low,ne=(te>>>19|ae<<13)^(te<<3|ae>>>29)^te>>>6,oe=(ae>>>19|te<<13)^(ae<<3|te>>>29)^(ae>>>6|te<<26),ie=c[J-7],re=ie.high,se=ie.low,le=c[J-16],ce=le.high,de=le.low;Q=(Q=(Q=Z+re+((W=$+se)>>>0<$>>>0?1:0))+ne+((W+=oe)>>>0<oe>>>0?1:0))+ce+((W+=de)>>>0<de>>>0?1:0),K.high=Q,K.low=W}var ue,pe=_&M^~_&j,he=L&O^~L&q,fe=V&P^V&N^P&N,me=T&R^T&D^R&D,ge=(V>>>28|T<<4)^(V<<30|T>>>2)^(V<<25|T>>>7),ye=(T>>>28|V<<4)^(T<<30|V>>>2)^(T<<25|V>>>7),ve=(_>>>14|L<<18)^(_>>>18|L<<14)^(_<<23|L>>>9),we=(L>>>14|_<<18)^(L>>>18|_<<14)^(L<<23|_>>>9),Ce=l[J],be=Ce.high,Ae=Ce.low,Ee=H+ve+((ue=z+we)>>>0<z>>>0?1:0),ke=ye+me;H=j,z=q,j=M,q=O,M=_,O=L,_=U+(Ee=(Ee=(Ee=Ee+pe+((ue+=he)>>>0<he>>>0?1:0))+be+((ue+=Ae)>>>0<Ae>>>0?1:0))+Q+((ue+=W)>>>0<W>>>0?1:0))+((L=F+ue|0)>>>0<F>>>0?1:0)|0,U=N,F=D,N=P,D=R,P=V,R=T,V=Ee+(ge+fe+(ke>>>0<ye>>>0?1:0))+((T=ue+ke|0)>>>0<ue>>>0?1:0)|0}f=n.low=f+T,n.high=h+V+(f>>>0<T>>>0?1:0),g=o.low=g+R,o.high=m+P+(g>>>0<R>>>0?1:0),v=i.low=v+D,i.high=y+N+(v>>>0<D>>>0?1:0),C=r.low=C+F,r.high=w+U+(C>>>0<F>>>0?1:0),A=s.low=A+L,s.high=b+_+(A>>>0<L>>>0?1:0),k=d.low=k+O,d.high=E+M+(k>>>0<O>>>0?1:0),S=u.low=S+q,u.high=x+j+(S>>>0<q>>>0?1:0),B=p.low=B+z,p.high=I+H+(B>>>0<z>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(a/4294967296),t[31+(n+128>>>10<<5)]=a,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=a._createHelper(d),t.HmacSHA512=a._createHmacHelper(d)}(),e.SHA512)),si.exports;var e}var ci,di={exports:{}};var ui,pi={exports:{}};function hi(){return ui?pi.exports:(ui=1,pi.exports=(e=No(),Fo(),function(t){var a=e,n=a.lib,o=n.WordArray,i=n.Hasher,r=a.x64.Word,s=a.algo,l=[],c=[],d=[];!function(){for(var e=1,t=0,a=0;a<24;a++){l[e+5*t]=(a+1)*(a+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var s=0,u=0,p=0;p<7;p++){if(1&o){var h=(1<<p)-1;h<32?u^=1<<h:s^=1<<h-32}128&o?o=o<<1^113:o<<=1}d[i]=r.create(s,u)}}();var u=[];!function(){for(var e=0;e<25;e++)u[e]=r.create()}();var p=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new r.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var a=this._state,n=this.blockSize/2,o=0;o<n;o++){var i=e[t+2*o],r=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(B=a[o]).high^=r,B.low^=i}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var h=0,f=0,m=0;m<5;m++)h^=(B=a[p+5*m]).high,f^=B.low;var g=u[p];g.high=h,g.low=f}for(p=0;p<5;p++){var y=u[(p+4)%5],v=u[(p+1)%5],w=v.high,C=v.low;for(h=y.high^(w<<1|C>>>31),f=y.low^(C<<1|w>>>31),m=0;m<5;m++)(B=a[p+5*m]).high^=h,B.low^=f}for(var b=1;b<25;b++){var A=(B=a[b]).high,E=B.low,k=l[b];k<32?(h=A<<k|E>>>32-k,f=E<<k|A>>>32-k):(h=E<<k-32|A>>>64-k,f=A<<k-32|E>>>64-k);var x=u[c[b]];x.high=h,x.low=f}var S=u[0],I=a[0];for(S.high=I.high,S.low=I.low,p=0;p<5;p++)for(m=0;m<5;m++){var B=a[b=p+5*m],V=u[b],T=u[(p+1)%5+5*m],P=u[(p+2)%5+5*m];B.high=V.high^~T.high&P.high,B.low=V.low^~T.low&P.low}B=a[0];var R=d[s];B.high^=R.high,B.low^=R.low}},_doFinalize:function(){var e=this._data,a=e.words;this._nDataBytes;var n=8*e.sigBytes,i=32*this.blockSize;a[n>>>5]|=1<<24-n%32,a[(t.ceil((n+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*a.length,this._process();for(var r=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],d=0;d<l;d++){var u=r[d],p=u.high,h=u.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),c.push(h),c.push(p)}return new o.init(c,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),a=0;a<25;a++)t[a]=t[a].clone();return e}});a.SHA3=i._createHelper(p),a.HmacSHA3=i._createHmacHelper(p)}(Math),e.SHA3));var e}var fi,mi={exports:{}};var gi,yi={exports:{}};function vi(){return gi?yi.exports:(gi=1,yi.exports=(e=No(),a=(t=e).lib.Base,n=t.enc.Utf8,void(t.algo.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var a=e.blockSize,o=4*a;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),r=this._iKey=t.clone(),s=i.words,l=r.words,c=0;c<a;c++)s[c]^=1549556828,l[c]^=909522486;i.sigBytes=r.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,a=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(a))}}))));var e,t,a,n}var wi,Ci={exports:{}};var bi,Ai={exports:{}};function Ei(){return bi?Ai.exports:(bi=1,Ai.exports=(s=No(),ei(),vi(),t=(e=s).lib,a=t.Base,n=t.WordArray,o=e.algo,i=o.MD5,r=o.EvpKDF=a.extend({cfg:a.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var a,o=this.cfg,i=o.hasher.create(),r=n.create(),s=r.words,l=o.keySize,c=o.iterations;s.length<l;){a&&i.update(a),a=i.update(e).finalize(t),i.reset();for(var d=1;d<c;d++)a=i.finalize(a),i.reset();r.concat(a)}return r.sigBytes=4*l,r}}),e.EvpKDF=function(e,t,a){return r.create(a).compute(e,t)},s.EvpKDF));var e,t,a,n,o,i,r,s}var ki,xi={exports:{}};function Si(){return ki?xi.exports:(ki=1,xi.exports=(e=No(),Ei(),void(e.lib.Cipher||function(t){var a=e,n=a.lib,o=n.Base,i=n.WordArray,r=n.BufferedBlockAlgorithm,s=a.enc;s.Utf8;var l=s.Base64,c=a.algo.EvpKDF,d=n.Cipher=r.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,a){this.cfg=this.cfg.extend(a),this._xformMode=e,this._key=t,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:/* @__PURE__ */function(){function e(e){return"string"==typeof e?w:y}return function(t){return{encrypt:function(a,n,o){return e(n).encrypt(t,a,n,o)},decrypt:function(a,n,o){return e(n).decrypt(t,a,n,o)}}}}()});n.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=a.mode={},p=n.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=u.CBC=function(){var e=p.extend();function a(e,a,n){var o,i=this._iv;i?(o=i,this._iv=t):o=this._prevBlock;for(var r=0;r<n;r++)e[a+r]^=o[r]}return e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize;a.call(this,e,t,o),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),e.Decryptor=e.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=e.slice(t,t+o);n.decryptBlock(e,t),a.call(this,e,t,o),this._prevBlock=i}}),e}(),f=(a.pad={}).Pkcs7={pad:function(e,t){for(var a=4*t,n=a-e.sigBytes%a,o=n<<24|n<<16|n<<8|n,r=[],s=0;s<n;s+=4)r.push(o);var l=i.create(r,n);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=d.extend({cfg:d.cfg.extend({mode:h,padding:f}),reset:function(){var e;d.reset.call(this);var t=this.cfg,a=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,a&&a.words):(this._mode=e.call(n,this,a&&a.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(a.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,a=e.salt;return(a?i.create([1398893684,1701076831]).concat(a).concat(t):t).toString(l)},parse:function(e){var t,a=l.parse(e),n=a.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=i.create(n.slice(2,4)),n.splice(0,4),a.sigBytes-=16),m.create({ciphertext:a,salt:t})}},y=n.SerializableCipher=o.extend({cfg:o.extend({format:g}),encrypt:function(e,t,a,n){n=this.cfg.extend(n);var o=e.createEncryptor(a,n),i=o.finalize(t),r=o.cfg;return m.create({ciphertext:i,key:a,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,a,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(a,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(a.kdf={}).OpenSSL={execute:function(e,t,a,n,o){if(n||(n=i.random(8)),o)r=c.create({keySize:t+a,hasher:o}).compute(e,n);else var r=c.create({keySize:t+a}).compute(e,n);var s=i.create(r.words.slice(t),4*a);return r.sigBytes=4*t,m.create({key:r,iv:s,salt:n})}},w=n.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:v}),encrypt:function(e,t,a,n){var o=(n=this.cfg.extend(n)).kdf.execute(a,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=o.iv;var i=y.encrypt.call(this,e,t,o.key,n);return i.mixIn(o),i},decrypt:function(e,t,a,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var o=n.kdf.execute(a,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=o.iv,y.decrypt.call(this,e,t,o.key,n)}})}())));var e}var Ii,Bi={exports:{}};var Vi,Ti={exports:{}};var Pi,Ri={exports:{}};function Ni(){return Pi?Ri.exports:(Pi=1,Ri.exports=(e=No(),Si(),e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function a(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,a=e>>8&255,n=255&e;255===t?(t=0,255===a?(a=0,255===n?n=0:++n):++a):++t,e=0,e+=t<<16,e+=a<<8,e+=n}return e}function n(e){return 0===(e[0]=a(e[0]))&&(e[1]=a(e[1])),e}var o=t.Encryptor=t.extend({processBlock:function(e,t){var a=this._cipher,o=a.blockSize,i=this._iv,r=this._counter;i&&(r=this._counter=i.slice(0),this._iv=void 0),n(r);var s=r.slice(0);a.encryptBlock(s,0);for(var l=0;l<o;l++)e[t+l]^=s[l]}});return t.Decryptor=o,t}(),e.mode.CTRGladman));var e}var Di,Ui={exports:{}};var Fi,_i={exports:{}};var Li,Mi={exports:{}};var Oi,ji={exports:{}};var qi,Hi={exports:{}};var zi,Ji={exports:{}};var Wi,Qi={exports:{}};var Ki,Gi={exports:{}};var Xi,Yi={exports:{}};var Zi,$i={exports:{}};function er(){return Zi?$i.exports:(Zi=1,$i.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib,n=a.WordArray,o=a.BlockCipher,i=t.algo,r=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],a=0;a<56;a++){var n=r[a]-1;t[a]=e[n>>>5]>>>31-n%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var c=o[i]=[],d=l[i];for(a=0;a<24;a++)c[a/6|0]|=t[(s[a]-1+d)%28]<<31-a%6,c[4+(a/6|0)]|=t[28+(s[a+24]-1+d)%28]<<31-a%6;for(c[0]=c[0]<<1|c[0]>>>31,a=1;a<7;a++)c[a]=c[a]>>>4*(a-1)+3;c[7]=c[7]<<5|c[7]>>>27}var u=this._invSubKeys=[];for(a=0;a<16;a++)u[a]=o[15-a]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,a){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),p.call(this,1,1431655765);for(var n=0;n<16;n++){for(var o=a[n],i=this._lBlock,r=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((r^o[l])&d[l])>>>0];this._lBlock=r,this._rBlock=i^s}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,p.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var a=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=a,this._lBlock^=a<<e}function h(e,t){var a=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=a,this._rBlock^=a<<e}t.DES=o._createHelper(u);var f=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),a=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(n.create(t)),this._des2=u.createEncryptor(n.create(a)),this._des3=u.createEncryptor(n.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=o._createHelper(f)}(),e.TripleDES));var e}var tr,ar={exports:{}};var nr,or={exports:{}};var ir,rr={exports:{}};var sr,lr={exports:{}};function cr(){return sr?lr.exports:(sr=1,lr.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib.BlockCipher,n=t.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],r=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(e,t){let a=t>>24&255,n=t>>16&255,o=t>>8&255,i=255&t,r=e.sbox[0][a]+e.sbox[1][n];return r^=e.sbox[2][o],r+=e.sbox[3][i],r}function c(e,t,a){let n,i=t,r=a;for(let s=0;s<o;++s)i^=e.pbox[s],r=l(e,i)^r,n=i,i=r,r=n;return n=i,i=r,r=n,r^=e.pbox[o],i^=e.pbox[o+1],{left:i,right:r}}function d(e,t,a){let n,i=t,r=a;for(let s=o+1;s>1;--s)i^=e.pbox[s],r=l(e,i)^r,n=i,i=r,r=n;return n=i,i=r,r=n,r^=e.pbox[1],i^=e.pbox[0],{left:i,right:r}}function u(e,t,a){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=r[o][t]}let n=0;for(let r=0;r<o+2;r++)e.pbox[r]=i[r]^t[n],n++,n>=a&&(n=0);let s=0,l=0,d=0;for(let i=0;i<o+2;i+=2)d=c(e,s,l),s=d.left,l=d.right,e.pbox[i]=s,e.pbox[i+1]=l;for(let o=0;o<4;o++)for(let t=0;t<256;t+=2)d=c(e,s,l),s=d.left,l=d.right,e.sbox[o][t]=s,e.sbox[o][t+1]=l;return!0}var p=n.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,a=e.sigBytes/4;u(s,t,a)}},encryptBlock:function(e,t){var a=c(s,e[t],e[t+1]);e[t]=a.left,e[t+1]=a.right},decryptBlock:function(e,t){var a=d(s,e[t],e[t+1]);e[t]=a.left,e[t+1]=a.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=a._createHelper(p)}(),e.Blowfish));var e}var dr;var ur,pr,hr,fr,mr,gr,yr=dr?Vo.exports:(dr=1,Vo.exports=function(e){return e}(No(),Fo(),Mo(),qo(),Jo(),Ko(),Yo(),ei(),ni(),oi||(oi=1,ii.exports=(gr=No(),ni(),pr=(ur=gr).lib.WordArray,hr=ur.algo,fr=hr.SHA256,mr=hr.SHA224=fr.extend({_doReset:function(){this._hash=new pr.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=fr._doFinalize.call(this);return e.sigBytes-=4,e}}),ur.SHA224=fr._createHelper(mr),ur.HmacSHA224=fr._createHmacHelper(mr),gr.SHA224)),li(),function(){return ci?di.exports:(ci=1,di.exports=(s=No(),Fo(),li(),t=(e=s).x64,a=t.Word,n=t.WordArray,o=e.algo,i=o.SHA512,r=o.SHA384=i.extend({_doReset:function(){this._hash=new n.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=i._createHelper(r),e.HmacSHA384=i._createHmacHelper(r),s.SHA384));var e,t,a,n,o,i,r,s}(),hi(),function(){return fi?mi.exports:(fi=1,mi.exports=(e=No(),function(){var t=e,a=t.lib,n=a.WordArray,o=a.Hasher,i=t.algo,r=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=n.create([1352829926,1548603684,1836072691,2053994217,0]),p=i.RIPEMD160=o.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var a=0;a<16;a++){var n=t+a,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,p,w,C,b,A,E,k,x,S,I,B=this._hash.words,V=d.words,T=u.words,P=r.words,R=s.words,N=l.words,D=c.words;for(A=i=B[0],E=p=B[1],k=w=B[2],x=C=B[3],S=b=B[4],a=0;a<80;a+=1)I=i+e[t+P[a]]|0,I+=a<16?h(p,w,C)+V[0]:a<32?f(p,w,C)+V[1]:a<48?m(p,w,C)+V[2]:a<64?g(p,w,C)+V[3]:y(p,w,C)+V[4],I=(I=v(I|=0,N[a]))+b|0,i=b,b=C,C=v(w,10),w=p,p=I,I=A+e[t+R[a]]|0,I+=a<16?y(E,k,x)+T[0]:a<32?g(E,k,x)+T[1]:a<48?m(E,k,x)+T[2]:a<64?f(E,k,x)+T[3]:h(E,k,x)+T[4],I=(I=v(I|=0,D[a]))+S|0,A=S,S=x,x=v(k,10),k=E,E=I;I=B[1]+w+x|0,B[1]=B[2]+C+S|0,B[2]=B[3]+b+A|0,B[3]=B[4]+i+E|0,B[4]=B[0]+p+k|0,B[0]=I},_doFinalize:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,r=0;r<5;r++){var s=i[r];i[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,a){return e^t^a}function f(e,t,a){return e&t|~e&a}function m(e,t,a){return(e|~t)^a}function g(e,t,a){return e&a|t&~a}function y(e,t,a){return e^(t|~a)}function v(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(p),t.HmacRIPEMD160=o._createHmacHelper(p)}(),e.RIPEMD160));var e}(),vi(),function(){return wi?Ci.exports:(wi=1,Ci.exports=(l=No(),ni(),vi(),t=(e=l).lib,a=t.Base,n=t.WordArray,o=e.algo,i=o.SHA256,r=o.HMAC,s=o.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var a=this.cfg,o=r.create(a.hasher,e),i=n.create(),s=n.create([1]),l=i.words,c=s.words,d=a.keySize,u=a.iterations;l.length<d;){var p=o.update(t).finalize(s);o.reset();for(var h=p.words,f=h.length,m=p,g=1;g<u;g++){m=o.finalize(m),o.reset();for(var y=m.words,v=0;v<f;v++)h[v]^=y[v]}i.concat(p),c[0]++}return i.sigBytes=4*d,i}}),e.PBKDF2=function(e,t,a){return s.create(a).compute(e,t)},l.PBKDF2));var e,t,a,n,o,i,r,s,l}(),Ei(),Si(),function(){return Ii?Bi.exports:(Ii=1,Bi.exports=(e=No(),Si(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function a(e,t,a,n){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,n.encryptBlock(o,0);for(var r=0;r<a;r++)e[t+r]^=o[r]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize;a.call(this,e,t,o,n),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=e.slice(t,t+o);a.call(this,e,t,o,n),this._prevBlock=i}}),t}(),e.mode.CFB));var e}(),function(){return Vi?Ti.exports:(Vi=1,Ti.exports=(a=No(),Si(),a.mode.CTR=(e=a.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var a=this._cipher,n=a.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var r=i.slice(0);a.encryptBlock(r,0),i[n-1]=i[n-1]+1|0;for(var s=0;s<n;s++)e[t+s]^=r[s]}}),e.Decryptor=t,e),a.mode.CTR));var e,t,a}(),Ni(),function(){return Di?Ui.exports:(Di=1,Ui.exports=(a=No(),Si(),a.mode.OFB=(e=a.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var a=this._cipher,n=a.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),a.encryptBlock(i,0);for(var r=0;r<n;r++)e[t+r]^=i[r]}}),e.Decryptor=t,e),a.mode.OFB));var e,t,a}(),function(){return Fi?_i.exports:(Fi=1,_i.exports=(t=No(),Si(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Li?Mi.exports:(Li=1,Mi.exports=(e=No(),Si(),e.pad.AnsiX923={pad:function(e,t){var a=e.sigBytes,n=4*t,o=n-a%n,i=a+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return Oi?ji.exports:(Oi=1,ji.exports=(e=No(),Si(),e.pad.Iso10126={pad:function(t,a){var n=4*a,o=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return qi?Hi.exports:(qi=1,Hi.exports=(e=No(),Si(),e.pad.Iso97971={pad:function(t,a){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,a)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return zi?Ji.exports:(zi=1,Ji.exports=(e=No(),Si(),e.pad.ZeroPadding={pad:function(e,t){var a=4*t;e.clamp(),e.sigBytes+=a-(e.sigBytes%a||a)},unpad:function(e){var t=e.words,a=e.sigBytes-1;for(a=e.sigBytes-1;a>=0;a--)if(t[a>>>2]>>>24-a%4*8&255){e.sigBytes=a+1;break}}},e.pad.ZeroPadding));var e}(),function(){return Wi?Qi.exports:(Wi=1,Qi.exports=(e=No(),Si(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return Ki?Gi.exports:(Ki=1,Gi.exports=(n=No(),Si(),t=(e=n).lib.CipherParams,a=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var n=a.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,a,n}(),function(){return Xi?Yi.exports:(Xi=1,Yi.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib.BlockCipher,n=t.algo,o=[],i=[],r=[],s=[],l=[],c=[],d=[],u=[],p=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var a=0,n=0;for(t=0;t<256;t++){var f=n^n<<1^n<<2^n<<3^n<<4;f=f>>>8^255&f^99,o[a]=f,i[f]=a;var m=e[a],g=e[m],y=e[g],v=257*e[f]^16843008*f;r[a]=v<<24|v>>>8,s[a]=v<<16|v>>>16,l[a]=v<<8|v>>>24,c[a]=v,v=16843009*y^65537*g^257*m^16843008*a,d[f]=v<<24|v>>>8,u[f]=v<<16|v>>>16,p[f]=v<<8|v>>>24,h[f]=v,a?(a=m^e[e[e[y^m]]],n^=e[e[n]]):a=n=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=a.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,a=e.sigBytes/4,n=4*((this._nRounds=a+6)+1),i=this._keySchedule=[],r=0;r<n;r++)r<a?i[r]=t[r]:(c=i[r-1],r%a?a>6&&r%a==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=f[r/a|0]<<24),i[r]=i[r-a]^c);for(var s=this._invKeySchedule=[],l=0;l<n;l++){if(r=n-l,l%4)var c=i[r];else c=i[r-4];s[l]=l<4||r<=4?c:d[o[c>>>24]]^u[o[c>>>16&255]]^p[o[c>>>8&255]]^h[o[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,r,s,l,c,o)},decryptBlock:function(e,t){var a=e[t+1];e[t+1]=e[t+3],e[t+3]=a,this._doCryptBlock(e,t,this._invKeySchedule,d,u,p,h,i),a=e[t+1],e[t+1]=e[t+3],e[t+3]=a},_doCryptBlock:function(e,t,a,n,o,i,r,s){for(var l=this._nRounds,c=e[t]^a[0],d=e[t+1]^a[1],u=e[t+2]^a[2],p=e[t+3]^a[3],h=4,f=1;f<l;f++){var m=n[c>>>24]^o[d>>>16&255]^i[u>>>8&255]^r[255&p]^a[h++],g=n[d>>>24]^o[u>>>16&255]^i[p>>>8&255]^r[255&c]^a[h++],y=n[u>>>24]^o[p>>>16&255]^i[c>>>8&255]^r[255&d]^a[h++],v=n[p>>>24]^o[c>>>16&255]^i[d>>>8&255]^r[255&u]^a[h++];c=m,d=g,u=y,p=v}m=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&p])^a[h++],g=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[p>>>8&255]<<8|s[255&c])^a[h++],y=(s[u>>>24]<<24|s[p>>>16&255]<<16|s[c>>>8&255]<<8|s[255&d])^a[h++],v=(s[p>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^a[h++],e[t]=m,e[t+1]=g,e[t+2]=y,e[t+3]=v},keySize:8});t.AES=a._createHelper(m)}(),e.AES));var e}(),er(),function(){return tr?ar.exports:(tr=1,ar.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib.StreamCipher,n=t.algo,o=n.RC4=a.extend({_doReset:function(){for(var e=this._key,t=e.words,a=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var r=o%a,s=t[r>>>2]>>>24-r%4*8&255;i=(i+n[o]+s)%256;var l=n[o];n[o]=n[i],n[i]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,a=this._j,n=0,o=0;o<4;o++){a=(a+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[a],e[a]=i,n|=e[(e[t]+e[a])%256]<<24-8*o}return this._i=t,this._j=a,n}t.RC4=a._createHelper(o);var r=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=a._createHelper(r)}(),e.RC4));var e}(),function(){return nr?or.exports:(nr=1,or.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib.StreamCipher,n=t.algo,o=[],i=[],r=[],s=n.Rabbit=a.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,a=0;a<4;a++)e[a]=16711935&(e[a]<<8|e[a]>>>24)|4278255360&(e[a]<<24|e[a]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,a=0;a<4;a++)l.call(this);for(a=0;a<8;a++)o[a]^=n[a+4&7];if(t){var i=t.words,r=i[0],s=i[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),d=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=c>>>16|4294901760&d,p=d<<16|65535&c;for(o[0]^=c,o[1]^=u,o[2]^=d,o[3]^=p,o[4]^=c,o[5]^=u,o[6]^=d,o[7]^=p,a=0;a<4;a++)l.call(this)}},_doProcessBlock:function(e,t){var a=this._X;l.call(this),o[0]=a[0]^a[5]>>>16^a[3]<<16,o[1]=a[2]^a[7]>>>16^a[5]<<16,o[2]=a[4]^a[1]>>>16^a[7]<<16,o[3]=a[6]^a[3]>>>16^a[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,a=0;a<8;a++)i[a]=t[a];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,a=0;a<8;a++){var n=e[a]+t[a],o=65535&n,s=n>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);r[a]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}t.Rabbit=a._createHelper(s)}(),e.Rabbit));var e}(),function(){return ir?rr.exports:(ir=1,rr.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib.StreamCipher,n=t.algo,o=[],i=[],r=[],s=n.RabbitLegacy=a.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,a=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)l.call(this);for(o=0;o<8;o++)n[o]^=a[o+4&7];if(t){var i=t.words,r=i[0],s=i[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),d=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=c>>>16|4294901760&d,p=d<<16|65535&c;for(n[0]^=c,n[1]^=u,n[2]^=d,n[3]^=p,n[4]^=c,n[5]^=u,n[6]^=d,n[7]^=p,o=0;o<4;o++)l.call(this)}},_doProcessBlock:function(e,t){var a=this._X;l.call(this),o[0]=a[0]^a[5]>>>16^a[3]<<16,o[1]=a[2]^a[7]>>>16^a[5]<<16,o[2]=a[4]^a[1]>>>16^a[7]<<16,o[3]=a[6]^a[3]>>>16^a[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,a=0;a<8;a++)i[a]=t[a];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,a=0;a<8;a++){var n=e[a]+t[a],o=65535&n,s=n>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);r[a]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}t.RabbitLegacy=a._createHelper(s)}(),e.RabbitLegacy));var e}(),cr()));const vr=/* @__PURE__ */Io(yr);const wr={name:"JcVerifySlide",props:{visible:{type:Boolean,default:!1},captchaType:{type:String,default:"blockPuzzle"},mode:{type:String,default:"pop"},vSpace:{type:Number,default:30},explain:{type:String,default:""},lang:{type:String,default:""},imgSize:{type:Object,default:()=>({width:"310px",height:"155px"})},barSize:{type:Object,default:()=>({width:"310px",height:"40px"})},defaultImg:{type:String,default:""}},data:()=>({secretKey:"",passFlag:!1,backImgBase:"",blockBackImgBase:"",backToken:"",startMoveTime:0,endMoveTime:0,startLeft:0,tipWords:"",finishText:"",setSize:{imgHeight:"155px",imgWidth:"340px"},moveBlockLeft:"0px",leftBarWidth:"40px",moveBlockBackgroundColor:"#fff",leftBarBorderColor:"#e4e7eb",iconColor:"#4b4b4b",iconClass:"icon-right",status:!1,isEnd:!1,showRefresh:!0,transitionLeft:"",transitionWidth:"",currentBarHeight:40,loading:!0,isNeedShow:!1}),computed:{isEn(){if(this.lang)return"en"===this.lang||"en-US"===this.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1},showBox(){return"pop"!==this.mode||this.visible&&this.isNeedShow},barExplain(){return this.isEnd?"":this.isEn?"Swipe right to complete the picture puzzle":this.explain||"向右滑动完成验证"},subBlockStyle(){const e=-(parseInt(this.setSize.imgHeight)+this.vSpace+1);return{width:Math.floor(47*parseInt(this.setSize.imgWidth)/340)+"px",height:this.setSize.imgHeight,top:e+"px",backgroundSize:this.setSize.imgWidth+" "+this.setSize.imgHeight}}},watch:{visible(e){e?(this.isNeedShow=!1,this.$nextTick(()=>{this.handleResize(),this.refresh()})):this.isNeedShow=!1}},mounted(){this.initUuid(),this.handleResize(),window.addEventListener("resize",this.handleResize),window.addEventListener("touchmove",this.move,{passive:!1}),window.addEventListener("mousemove",this.move),window.addEventListener("touchend",this.end),window.addEventListener("mouseup",this.end)},beforeUnmount(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("touchmove",this.move,{passive:!1}),window.removeEventListener("mousemove",this.move),window.removeEventListener("touchend",this.end),window.removeEventListener("mouseup",this.end)},methods:{handleImageLoaded(){this.loading=!1},initUuid(){localStorage.getItem("slider")||localStorage.setItem("slider","slider-"+((e=21)=>{let t="",a=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&a[e]];return t})())},aesEncrypt(e,t="XwKsGlMcdPMEhR1B"){const a=vr.enc.Utf8.parse(t),n=vr.enc.Utf8.parse(e);return vr.AES.encrypt(n,a,{mode:vr.mode.ECB,padding:vr.pad.Pkcs7}).toString()},handleResize(){const e=window.innerWidth;let t=340;e<400?(t=e-60,this.currentBarHeight=44):(t=340,this.currentBarHeight=40),this.setSize.imgWidth=t+"px",this.setSize.imgHeight=t/2+"px",this.leftBarWidth=this.currentBarHeight+"px"},start(e){if(this.isEnd)return;const t=e||window.event,a=t.touches?t.touches[0].pageX:t.clientX,n=this.$refs.barArea;this.startLeft=Math.floor(a-n.getBoundingClientRect().left),this.startMoveTime=Date.now(),this.status=!0,this.transitionLeft="",this.transitionWidth="",this.moveBlockBackgroundColor="#1890ff",this.iconColor="#fff"},move(e){if(!this.status||this.isEnd)return;const t=e||window.event,a=t.touches?t.touches[0].pageX:t.clientX,n=this.$refs.barArea;let o=a-n.getBoundingClientRect().left-this.startLeft;const i=n.offsetWidth-this.currentBarHeight;o<=0&&(o=0),o>=i&&(o=i),this.moveBlockLeft=o+"px",this.leftBarWidth=o+this.currentBarHeight+"px",t.cancelable&&t.preventDefault()},end(){if(!this.status||this.isEnd)return;this.status=!1,this.endMoveTime=Date.now();let e=parseInt(this.moveBlockLeft.replace("px",""));e=310*e/parseInt(this.setSize.imgWidth);const t={pointJson:this.secretKey?this.aesEncrypt(JSON.stringify({x:e,y:5}),this.secretKey):JSON.stringify({x:e,y:5}),uuid:this.backToken};K(t).then(e=>{0===e.data.code?this.handleSuccess(e):this.handleError()}).catch(()=>this.handleError())},handleSuccess(e){this.endMoveTime,this.startMoveTime,this.moveBlockBackgroundColor="#52c41a",this.iconClass="icon-check",this.isEnd=!0,this.passFlag=!0,this.tipWords=`${((this.endMoveTime-this.startMoveTime)/1e3).toFixed(2)}s `+(this.isEn?"verified successfully":"验证成功"),setTimeout(()=>{this.closeBox(),this.$emit("success",{uuid:e.data.data.uuid,code:e.data.data.code})},800)},handleError(){this.moveBlockBackgroundColor="#ff4d4f",this.iconClass="icon-close",this.passFlag=!1,this.tipWords=this.isEn?"verification failed":"验证失败",setTimeout(()=>{this.refresh(),this.tipWords=""},1e3)},refresh(){this.loading=!0,this.transitionLeft="left 0.3s",this.transitionWidth="width 0.3s",this.moveBlockLeft="0px",this.leftBarWidth=this.currentBarHeight+"px",this.moveBlockBackgroundColor="#fff",this.iconColor="#4b4b4b",this.iconClass="icon-right",this.isEnd=!1,this.tipWords="",this.getPicture()},getPicture(){this.loading=!0,Q({clientUid:localStorage.getItem("slider"),ts:Date.now()}).then(e=>{if(0===e.data.code){if(!1===e.data.data.validate)return this.loading=!1,this.startMoveTime=Date.now(),this.endMoveTime=Date.now(),void this.handleSuccess(e);this.isNeedShow=!0,this.backImgBase=e.data.data.originalImageBase64,this.blockBackImgBase=e.data.data.jigsawImageBase64,this.backToken=e.data.data.uuid,this.secretKey=e.data.data.secretKey}else this.loading=!1,this.isNeedShow=!0}).catch(()=>{this.loading=!1,this.isNeedShow=!0})},closeBox(){this.$emit("update:visible",!1)}}},Cr={key:0,class:"auth-captcha-box-top"},br={class:"auth-captcha-title"},Ar={class:"captcha-wrapper",style:{position:"relative"}},Er=["src"],kr={key:0,class:"auth-captcha-loading"},xr={class:"loading-text"},Sr={class:"auth-captcha-msg"},Ir=["textContent"],Br=["src"];const Vr=/* @__PURE__ */dn(wr,[["render",function(e,t,a,n,o,i){return m((l(),s("div",{class:c("pop"===a.mode?"captcha-mask":"captcha-relative-wrapper")},[d("div",{class:c("pop"===a.mode?"auth-captcha-box":""),style:b({width:"pop"===a.mode?o.setSize.imgWidth+"40px":"100%","max-width":"100%"})},["pop"===a.mode?(l(),s("div",Cr,[d("span",br,v(i.isEn?"please finish the security verification":"请完成安全验证"),1),d("span",{class:"auth-captcha-box-close",onClick:t[0]||(t[0]=(...e)=>i.closeBox&&i.closeBox(...e))}," × ")])):f("",!0),d("div",{class:"auth-captcha-box-bottom",style:b({padding:"pop"===a.mode?"15px":"0"})},[d("div",Ar,["blockPuzzle"===a.captchaType?(l(),s("div",{key:0,class:"auth-captcha-img-out",style:b({height:parseInt(o.setSize.imgHeight)+a.vSpace+"px"})},[d("div",{class:"auth-captcha-img-panel",style:b({width:o.setSize.imgWidth,height:o.setSize.imgHeight})},[d("img",{src:o.backImgBase?"data:image/png;base64,"+o.backImgBase:a.defaultImg,alt:"captcha",class:"main-img",onLoad:t[1]||(t[1]=(...e)=>i.handleImageLoaded&&i.handleImageLoaded(...e))},null,40,Er),o.loading?(l(),s("div",kr,[t[5]||(t[5]=d("div",{class:"loading-icon"},null,-1)),d("p",xr,v(i.isEn?"Loading...":"加载中..."),1)])):f("",!0),m(d("div",{class:"auth-captcha-refresh",onClick:t[2]||(t[2]=(...e)=>i.refresh&&i.refresh(...e))},[...t[6]||(t[6]=[d("svg",{t:"1767753956986",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2523",width:"16",height:"16",fill:"#fff"},[d("path",{d:"M894.481158 505.727133c0 49.589418-9.711176 97.705276-28.867468 143.007041-18.501376 43.74634-44.98454 83.031065-78.712713 116.759237-33.728172 33.728172-73.012897 60.211337-116.759237 78.712713-45.311998 19.156292-93.417623 28.877701-143.007041 28.877701s-97.695043-9.721409-142.996808-28.877701c-43.756573-18.501376-83.031065-44.98454-116.76947-78.712713-33.728172-33.728172-60.211337-73.012897-78.712713-116.759237-19.156292-45.301765-28.867468-93.417623-28.867468-143.007041 0-49.579185 9.711176-97.695043 28.867468-142.996808 18.501376-43.74634 44.98454-83.031065 78.712713-116.759237 33.738405-33.728172 73.012897-60.211337 116.76947-78.712713 45.301765-19.166525 93.40739-28.877701 142.996808-28.877701 52.925397 0 104.008842 11.010775 151.827941 32.745798 46.192042 20.977777 86.909395 50.79692 121.016191 88.608084 4.389984 4.860704 8.646937 9.854439 12.781094 14.97097l0-136.263453c0-11.307533 9.168824-20.466124 20.466124-20.466124 11.307533 0 20.466124 9.15859 20.466124 20.466124l0 183.64253c0 5.433756-2.148943 10.632151-5.986341 14.46955-3.847631 3.837398-9.046027 5.996574-14.479783 5.996574l-183.64253-0.020466c-11.307533 0-20.466124-9.168824-20.466124-20.466124 0-11.307533 9.168824-20.466124 20.466124-20.466124l132.293025 0.020466c-3.960195-4.952802-8.063653-9.782807-12.289907-14.479783-30.320563-33.605376-66.514903-60.098773-107.549481-78.753645-42.467207-19.289322-87.850837-29.072129-134.902456-29.072129-87.195921 0-169.172981 33.9533-230.816946 95.597265-61.654198 61.654198-95.597265 143.621025-95.597265 230.816946s33.943067 169.172981 95.597265 230.816946c61.643965 61.654198 143.621025 95.607498 230.816946 95.607498s169.172981-33.9533 230.816946-95.607498c61.654198-61.643965 95.597265-143.621025 95.597265-230.816946 0-11.2973 9.168824-20.466124 20.466124-20.466124C885.322567 485.261009 894.481158 494.429833 894.481158 505.727133z","p-id":"2524"})],-1)])],512),[[S,o.showRefresh]]),p(R,{name:"tips-fade"},{default:B(()=>[o.tipWords?(l(),s("div",{key:0,class:c(["auth-captcha-tips",o.passFlag?"suc-bg":"err-bg"])},v(o.tipWords),3)):f("",!0)]),_:1})],4)],4)):f("",!0),d("div",{class:"auth-captcha-bar-area",ref:"barArea",style:b({width:o.setSize.imgWidth,height:o.currentBarHeight+"px",lineHeight:o.currentBarHeight+"px"})},[d("span",Sr,v(i.barExplain),1),d("div",{class:"auth-captcha-left-bar",style:b({width:o.leftBarWidth,height:o.currentBarHeight+"px",borderColor:o.leftBarBorderColor,transition:o.transitionWidth})},[d("span",{class:"auth-captcha-msg",textContent:v(o.finishText)},null,8,Ir),d("div",{class:"auth-captcha-move-block",onMousedown:t[3]||(t[3]=(...e)=>i.start&&i.start(...e)),onTouchstart:t[4]||(t[4]=w((...e)=>i.start&&i.start(...e),["prevent"])),style:b({width:o.currentBarHeight+"px",height:o.currentBarHeight-2+"px",backgroundColor:o.moveBlockBackgroundColor,left:o.moveBlockLeft,transition:o.transitionLeft})},[d("i",{class:c(["auth-captcha-icon iconfont",o.iconClass]),style:b({color:o.iconColor})},null,6),"blockPuzzle"===a.captchaType?(l(),s("div",{key:0,class:"auth-captcha-sub-block",style:b(i.subBlockStyle)},[o.blockBackImgBase?(l(),s("img",{key:0,src:"data:image/png;base64,"+o.blockBackImgBase,class:"sub-img"},null,8,Br)):f("",!0)],4)):f("",!0)],36)],4)],4)])],4)],6)],2)),[[S,i.showBox]])}],["__scopeId","data-v-00650cc3"]]),Tr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Vr},Symbol.toStringTag,{value:"Module"})),Pr={name:"CodeInput",components:{GoogleInput:yo,JcFloatInput:ko,JcVerifySlide:Vr},props:{modelValue:String,placeholder:String,ready:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},duration:{type:Number,default:60},formTypeColor:{type:String,default:"1"},isEn:Boolean},emits:["update:modelValue","send"],data:()=>({isCounting:!1,countdown:0,timer:null,captchaVisible:!1}),computed:{statusClass(){return{1:"org",2:"lightBlue",4:"darkOrange"}[this.formTypeColor]||"darkBlue"},btnText(){return this.isCounting?`${this.countdown}s`:this.isEn?"Send Code":"发送验证码"}},methods:{handleSend:Fn(function(){!this.ready||this.isCounting||this.disabled||(this.captchaVisible=!0)},500,{leading:!0,trailing:!1}),handleCaptchaSuccess(e){this.$emit("send",{captchaData:e,startTimer:this.startTimer.bind(this)})},startTimer(){this.isCounting||(this.isCounting=!0,this.countdown=this.duration,this.timer=setInterval(()=>{this.countdown--,this.countdown<=0&&this.stopTimer()},1e3))},stopTimer(){this.timer&&(clearInterval(this.timer),this.timer=null),this.isCounting=!1,this.countdown=0}},beforeUnmount(){this.stopTimer(),this.handleSend.cancel?.()}},Rr={class:"code-input-container"};const Nr=/* @__PURE__ */dn(Pr,[["render",function(e,t,a,n,o,i){const r=V("JcVerifySlide");return l(),s("div",Rr,[(l(),u(N(a.showIcon?"JcFloatInput":"GoogleInput"),{"model-value":a.modelValue,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t)),label:a.placeholder,placeholder:a.placeholder,class:"verify-code-input",autocomplete:"off",maxlength:"6"},D({suffix:B(()=>[d("a",{class:c(["send-code-btn",[i.statusClass,{"is-disabled":a.disabled||o.isCounting||!a.ready}]]),onClick:t[0]||(t[0]=(...e)=>i.handleSend&&i.handleSend(...e))},[d("span",{class:c(o.isCounting||!a.ready?"disabled-color":"obtain-color")},v(i.btnText),3)],2)]),_:2},[a.showIcon?{name:"prefix",fn:B(()=>[t[3]||(t[3]=d("i",{class:"icon-verify"},null,-1))]),key:"0"}:void 0]),1032,["model-value","label","placeholder"])),p(r,{visible:o.captchaVisible,"onUpdate:visible":t[2]||(t[2]=e=>o.captchaVisible=e),"is-en":a.isEn,onSuccess:i.handleCaptchaSuccess},null,8,["visible","is-en","onSuccess"])])}],["__scopeId","data-v-9d6cb765"]]),Dr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Nr},Symbol.toStringTag,{value:"Module"})),Ur={class:"global-modal-header-custom"},Fr={class:"global-modal-body-custom"},_r={class:"global-modal-footer-custom"},Lr=/* @__PURE__ */o({__name:"GlobalModal",setup(t){const n=e(),o=e(!1),i=I({city:"",company:"",email:"",phone:"",name:"",agreement:!1}),r=I({city:[{required:!0,message:"请输入所在地城市",trigger:"blur"}],company:[{required:!0,message:"请输入公司名称",trigger:"blur"}],email:[{required:!0,message:"请输入邮箱",trigger:"blur"},{type:"email",message:"请输入有效的邮箱地址",trigger:"blur"}],agreement:[{validator:(e,t,a)=>{t?a():a(new Error("请同意隐私政策"))},trigger:"change"}]}),s=()=>{o.value=!1,G.emit(X.Close,void 0),n.value?.clearValidate(),Object.assign(i,{city:"",company:"",email:"",phone:"",name:"",agreement:!1})},c=async()=>{if(!n.value)return;await n.value.validate().catch(()=>!1)&&(G.emit(X.Submit,{...i}),s())},h=()=>{o.value=!0};return a(()=>{G.on(X.Open,h)}),U(()=>{G.off(X.Open,h)}),(e,t)=>(l(),u(E(Xe),{modelValue:o.value,"onUpdate:modelValue":t[7]||(t[7]=e=>o.value=e),"before-close":s,"show-close":!1,"close-on-click-modal":!0,width:500,class:"global-modal-custom"},{header:B(()=>[d("div",Ur,[t[9]||(t[9]=d("h2",null,"即刻链接全球货代",-1)),p(E(at),{link:"",onClick:s,class:"close-button-custom","aria-label":"Close"},{default:B(()=>[...t[8]||(t[8]=[d("span",{style:{"font-size":"2rem"}},"×",-1)])]),_:1})])]),footer:B(()=>[d("div",_r,[p(E(at),{type:"primary",class:"submit-button-custom",onClick:c},{default:B(()=>[...t[11]||(t[11]=[x(" 加入会员 ",-1)])]),_:1})])]),default:B(()=>[d("div",Fr,[p(E(Ye),{model:i,rules:r,ref_key:"formRef",ref:n,"label-position":"top",onSubmit:t[6]||(t[6]=w(()=>{},["prevent"]))},{default:B(()=>[p(E(Ze),{gutter:20},{default:B(()=>[p(E($e),{span:12},{default:B(()=>[p(E(et),{label:"所在地(城市)",prop:"city"},{default:B(()=>[p(E(Ge),{modelValue:i.city,"onUpdate:modelValue":t[0]||(t[0]=e=>i.city=e),placeholder:"请输入城市"},null,8,["modelValue"])]),_:1})]),_:1}),p(E($e),{span:12},{default:B(()=>[p(E(et),{label:"公司名称",prop:"company"},{default:B(()=>[p(E(Ge),{modelValue:i.company,"onUpdate:modelValue":t[1]||(t[1]=e=>i.company=e),placeholder:"请输入公司名称"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),p(E(Ze),{gutter:20},{default:B(()=>[p(E($e),{span:12},{default:B(()=>[p(E(et),{label:"邮箱",prop:"email"},{default:B(()=>[p(E(Ge),{modelValue:i.email,"onUpdate:modelValue":t[2]||(t[2]=e=>i.email=e),placeholder:"请输入邮箱"},null,8,["modelValue"])]),_:1})]),_:1}),p(E($e),{span:12},{default:B(()=>[p(E(et),{label:"电话",prop:"phone"},{default:B(()=>[p(E(Ge),{modelValue:i.phone,"onUpdate:modelValue":t[3]||(t[3]=e=>i.phone=e),placeholder:"请输入电话"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),p(E(Ze),null,{default:B(()=>[p(E($e),{span:24},{default:B(()=>[p(E(et),{label:"姓名",prop:"name"},{default:B(()=>[p(E(Ge),{modelValue:i.name,"onUpdate:modelValue":t[4]||(t[4]=e=>i.name=e),placeholder:"请输入您的全名"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),p(E(et),{prop:"agreement",class:"agreement-item"},{default:B(()=>[p(E(tt),{modelValue:i.agreement,"onUpdate:modelValue":t[5]||(t[5]=e=>i.agreement=e),label:"我同意"},null,8,["modelValue"]),t[10]||(t[10]=d("a",{href:"#",class:"privacy-link"},"隐私政策",-1))]),_:1})]),_:1},8,["model","rules"])])]),_:1},8,["modelValue"]))}}),Mr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Lr},Symbol.toStringTag,{value:"Module"})),Or=/* @__PURE__ */o({__name:"AirCarrierSearch",props:/* @__PURE__ */F({lang:String,placeholder:String,showApplyData:{type:Boolean,default:!1}},{modelValue:{required:!0,default:""},modelModifiers:{}}),emits:/* @__PURE__ */F(["update:modelValue","change","apply","focus","blur","remove-tag"],["update:modelValue"]),setup(e,{emit:a}){const n=_(e,"modelValue"),o=e,i=t(()=>{if(o.lang)return"en"===o.lang||"en-US"===o.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),r=t(()=>o.placeholder?o.placeholder:i.value?"Please enter the carrier code or name (e.g., AAL)":"请输入航空公司代码或名称 (如: AAL)"),s=a,c=e=>{s("change",e)};return(t,a)=>{const o=V("JcCarrierSearch");return l(),u(o,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e),type:"Carrier","line-type":"air",class:"jc-air-carrier-search",placeholder:r.value,"show-apply-data":e.showApplyData,onChange:c,onApply:a[1]||(a[1]=e=>t.$emit("apply",n.value)),onFocus:a[2]||(a[2]=e=>t.$emit("focus")),onBlur:a[3]||(a[3]=e=>t.$emit("blur")),onRemoveTag:a[4]||(a[4]=e=>t.$emit("remove-tag",e))},D({_:2},[y(t.$slots,(e,a)=>({name:a,fn:B(e=>[h(t.$slots,a,L(M(e||{})))])}))]),1032,["modelValue","placeholder","show-apply-data"])}}}),jr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Or},Symbol.toStringTag,{value:"Module"})),qr=/* @__PURE__ */o({__name:"AirLineSearch",props:/* @__PURE__ */F({lang:String,placeholder:String,showApplyData:{type:Boolean,default:!1}},{modelValue:{required:!0,default:""},modelModifiers:{}}),emits:/* @__PURE__ */F(["update:modelValue","change","apply","focus","blur","remove-tag"],["update:modelValue"]),setup(e,{emit:a}){const n=_(e,"modelValue"),o=e,i=t(()=>{if(o.lang)return"en"===o.lang||"en-US"===o.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),r=t(()=>o.placeholder?o.placeholder:i.value?"Please enter the line name":"请输入航线名称"),s=a,c=e=>{s("change",e)};return(t,a)=>{const o=V("JcCarrierSearch");return l(),u(o,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e),type:"Line","line-type":"air",class:"jc-air-line-search",placeholder:r.value,"show-apply-data":e.showApplyData,onChange:c,onApply:a[1]||(a[1]=e=>t.$emit("apply",n.value)),onFocus:a[2]||(a[2]=e=>t.$emit("focus")),onBlur:a[3]||(a[3]=e=>t.$emit("blur")),onRemoveTag:a[4]||(a[4]=e=>t.$emit("remove-tag",e))},D({_:2},[y(t.$slots,(e,a)=>({name:a,fn:B(e=>[h(t.$slots,a,L(M(e||{})))])}))]),1032,["modelValue","placeholder","show-apply-data"])}}}),Hr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:qr},Symbol.toStringTag,{value:"Module"})),zr=/* @__PURE__ */o({__name:"SeaCarrierSearch",props:/* @__PURE__ */F({lang:String,placeholder:String,showApplyData:{type:Boolean,default:!1}},{modelValue:{required:!0,default:""},modelModifiers:{}}),emits:/* @__PURE__ */F(["update:modelValue","change","apply","focus","blur","remove-tag"],["update:modelValue"]),setup(e,{emit:a}){const n=_(e,"modelValue"),o=e,i=t(()=>{if(o.lang)return"en"===o.lang||"en-US"===o.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),r=t(()=>o.placeholder?o.placeholder:i.value?"Please enter the carrier code or name (e.g., AAL)":"请输入船司代码或名称 (如: MSK)"),s=a,c=e=>{s("change",e)};return(t,a)=>{const o=V("JcCarrierSearch");return l(),u(o,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e),type:"Carrier","line-type":"shipping",class:"jc-sea-carrier-search",placeholder:r.value,"show-apply-data":e.showApplyData,onChange:c,onApply:a[1]||(a[1]=e=>t.$emit("apply",n.value)),onFocus:a[2]||(a[2]=e=>t.$emit("focus")),onBlur:a[3]||(a[3]=e=>t.$emit("blur")),onRemoveTag:a[4]||(a[4]=e=>t.$emit("remove-tag",e))},D({_:2},[y(t.$slots,(e,a)=>({name:a,fn:B(e=>[h(t.$slots,a,L(M(e||{})))])}))]),1032,["modelValue","placeholder","show-apply-data"])}}}),Jr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:zr},Symbol.toStringTag,{value:"Module"})),Wr=/* @__PURE__ */o({__name:"SeaLineSearch",props:/* @__PURE__ */F({lang:String,placeholder:String,showApplyData:{type:Boolean,default:!1}},{modelValue:{required:!0,default:""},modelModifiers:{}}),emits:/* @__PURE__ */F(["update:modelValue","change","apply","focus","blur","remove-tag"],["update:modelValue"]),setup(e,{emit:a}){const n=_(e,"modelValue"),o=e,i=t(()=>{if(o.lang)return"en"===o.lang||"en-US"===o.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),r=t(()=>o.placeholder?o.placeholder:i.value?"Please enter the line name":"请输入航线名称"),s=a,c=e=>{s("change",e)};return(t,a)=>{const o=V("JcCarrierSearch");return l(),u(o,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e),type:"Line","line-type":"shipping",class:"jc-sea-line-search",placeholder:r.value,"show-apply-data":e.showApplyData,onChange:c,onApply:a[1]||(a[1]=e=>t.$emit("apply",n.value)),onFocus:a[2]||(a[2]=e=>t.$emit("focus")),onBlur:a[3]||(a[3]=e=>t.$emit("blur")),onRemoveTag:a[4]||(a[4]=e=>t.$emit("remove-tag",e))},D({_:2},[y(t.$slots,(e,a)=>({name:a,fn:B(e=>[h(t.$slots,a,L(M(e||{})))])}))]),1032,["modelValue","placeholder","show-apply-data"])}}}),Qr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Wr},Symbol.toStringTag,{value:"Module"})),Kr={class:"jc:flex jc:items-center jc:justify-between"},Gr={key:0,class:"jc:ml-2 jc:text-xs jc:text-gray-400"},Xr={class:"jc:p-4 jc:text-sm jc:text-center jc:text-gray-500"},Yr={key:0},Zr={key:1,class:"jc:flex jc:flex-wrap jc:justify-center jc:items-center"},$r={class:"jc:flex jc:justify-center jc:items-center jc:gap-1"},es=["src"],ts={key:1},as=/* @__PURE__ */dn(/* @__PURE__ */o({__name:"index",props:{modelValue:{type:[String,Number,Array],default:void 0},lang:{type:String,default:""},type:{type:String,required:!0},lineType:{type:String,default:"shipping"},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},showApplyData:{type:Boolean,default:!1},defaultOptions:{type:Array,default:()=>[]}},emits:["update:modelValue","change","apply","focus","blur","remove-tag"],setup(n,{emit:o}){const i=n,c=o,p=e(),m=t(()=>{if(i.lang)return"en"===i.lang||"en-US"===i.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),C=t(()=>{if(i.placeholder)return i.placeholder;return{Carrier:m.value?"Search by carrier name or code":"请输入公司名称或代码",Line:m.value?"Search by line name":"请输入航线名称",Seaport:m.value?"Search by seaport name":"请输入港口名称"}[i.type]||(m.value?"Search...":"请输入关键字搜索")}),b=t({get:()=>i.modelValue,set:e=>c("update:modelValue",e)}),A=t(()=>{const e=i.modelValue;if(Array.isArray(e)){return"string"==typeof e.find(e=>null!=e&&""!==e)}return"string"==typeof e}),k=e(!1),x=e([]),S=e(""),I=()=>{x.value=[...i.defaultOptions]};r(()=>i.defaultOptions,()=>{if(!k.value&&!S.value){const e=[...i.defaultOptions];x.value=e}},{immediate:!0,deep:!0});const V=Fn(async e=>{try{const t={keyword:e,current:1,size:50};let a={};a="Carrier"===i.type?await z.carrier.search(t,i.lineType):"Line"===i.type?await z.line.search(t,i.lineType):await z.searchByName({...t,displayInfo:[i.type]});const n=a.records||[];if(i.defaultOptions.length>0){const e=i.defaultOptions.filter(e=>!n.some(t=>t.id===e.id));x.value=[...e,...n]}else x.value=n}catch(t){console.error("Search failed:",t)}finally{k.value=!1}},300),T=e=>{if(S.value=e,!e||!e.trim())return k.value=!1,void I();k.value=!0,V(e)},P=e=>{e||(I(),k.value=!1,S.value="",p.value?.blur())},R=()=>{I(),S.value="",c("change",null,null)},N=e=>{if(!e)return void c("change",e,null);let t;t=Array.isArray(e)?x.value.filter(t=>e.some(e=>String(e)===String(t.id))):x.value.find(t=>String(t.id)===String(e))||null,c("change",e,t)},U=()=>{S.value&&J({reportData:S.value,reportType:i.type.toLocaleLowerCase()}),c("apply",S.value),p.value?.blur()},F=async()=>{if(null===i.modelValue||void 0===i.modelValue||""===i.modelValue)return;const e=(Array.isArray(i.modelValue)?i.modelValue:[i.modelValue]).filter(e=>!x.value.some(t=>String(t.id)===String(e)));if(0!==e.length)try{let t=[];const a=e.map(e=>Number(e)).filter(e=>!Number.isNaN(e));if(0===a.length)return;if("Carrier"===i.type){const e=await z.carrier.getByIds(a,i.lineType);t=Array.isArray(e)?e:e.records||[]}else if("Line"===i.type){const e=await z.line.getByIds(a,i.lineType);t=Array.isArray(e)?e:e.records||[]}if(t.length>0){const e=t.filter(e=>!x.value.some(t=>t.id===e.id));x.value.push(...e)}}catch(t){console.error("Init selected data failed:",t)}};return a(()=>{F()}),r(()=>i.modelValue,(e,t)=>{JSON.stringify(e)!==JSON.stringify(t)&&"undefined"!=typeof window&&F()}),(e,t)=>(l(),u(E(Qe),{ref_key:"selectRef",ref:p,modelValue:b.value,"onUpdate:modelValue":t[0]||(t[0]=e=>b.value=e),multiple:n.multiple,filterable:"",remote:"","reserve-keyword":"",clearable:"","value-key":"id",placeholder:C.value,"remote-method":T,loading:k.value,class:"jc:w-full jc-carrier-search-comp",teleported:!1,onChange:N,onVisibleChange:P,onClear:R,onFocus:t[1]||(t[1]=t=>e.$emit("focus")),onBlur:t[2]||(t[2]=t=>e.$emit("blur")),onRemoveTag:t[3]||(t[3]=t=>e.$emit("remove-tag",t))},D({empty:B(()=>[d("div",Xr,[k.value?(l(),s("div",Yr,v(m.value?"Searching...":"正在搜索中..."),1)):(l(),s("div",Zr,[n.showApplyData?(l(),s(g,{key:0},[d("p",null,v(m.value?"No results found. ":"暂无结果,"),1),d("div",$r,[d("span",{class:"jc:font-medium jc:text-[14px] jc:text-brand jc:leading-5 jc:text-center jc:cursor-pointer jc:ml-1",onClick:w(U,["stop"])},v(m.value?"Apply for data addition":"申请补充数据 "),1),d("img",{src:E(Fa),alt:"",class:"jc:mr-1 jc:size-4",onClick:w(U,["stop"])},null,8,es)])],64)):(l(),s("p",ts,v(m.value?"No results found.":"暂无结果"),1))]))])]),default:B(()=>[(l(!0),s(g,null,y(x.value,t=>{return l(),u(E(Ke),{key:t.id,label:m.value?t.displayEn||t.display:t.displayCn||t.display,value:(a=t.id,A.value?String(a):a)},{option:B(()=>[h(e.$slots,"option",{item:t},()=>[d("div",Kr,[d("span",null,v(m.value?t.displayEn||t.display:t.displayCn||t.display),1),t.code?(l(),s("span",Gr,v(t.code),1)):f("",!0)])],!0)]),_:2},1032,["label","value"]);var a}),128))]),_:2},[e.$slots.prefix?{name:"prefix",fn:B(()=>[h(e.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","multiple","placeholder","loading"]))}}),[["__scopeId","data-v-8b1bf751"]]),ns=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:as},Symbol.toStringTag,{value:"Module"})),os={class:"wrapper-container"},is={key:0,class:"wrapper-prepend"},rs={class:"wrapper-main"},ss={class:"wrapper-label"},ls={key:1,class:"wrapper-append"};const cs=/* @__PURE__ */dn({name:"JcFloatWrapper",emits:["focus","blur"],props:{label:{type:String,default:""}},data:()=>({internalFocus:!1}),computed:{isHavePrepend(){return!!this.$slots.prefix},isHaveAppend(){return!!this.$slots.suffix}},methods:{handleFocusIn(){this.internalFocus=!0,this.$emit("focus")},handleFocusOut(e){const t=e.relatedTarget;t&&this.$el?.contains?.(t)||(this.internalFocus=!1,this.$emit("blur"))}}},[["render",function(e,t,a,n,o,i){return l(),s("div",{class:c(["jc-float-wrapper",{"is-focus":o.internalFocus,"is-have-prepend":i.isHavePrepend}]),onFocusin:t[0]||(t[0]=(...e)=>i.handleFocusIn&&i.handleFocusIn(...e)),onFocusout:t[1]||(t[1]=(...e)=>i.handleFocusOut&&i.handleFocusOut(...e))},[d("div",os,[i.isHavePrepend?(l(),s("div",is,[h(e.$slots,"prefix",{},void 0,!0)])):f("",!0),d("div",rs,[h(e.$slots,"default",{},void 0,!0),d("p",ss,v(a.label),1)]),i.isHaveAppend?(l(),s("div",ls,[h(e.$slots,"suffix",{},void 0,!0)])):f("",!0)])],34)}],["__scopeId","data-v-4e8a7fce"]]),ds=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"}));function us(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)e[n]=a[n]}return e}var ps=function e(t,a){function n(e,n,o){if("undefined"!=typeof document){"number"==typeof(o=us({},a,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var r in o)o[r]&&(i+="; "+r,!0!==o[r]&&(i+="="+o[r].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+i}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var a=document.cookie?document.cookie.split("; "):[],n={},o=0;o<a.length;o++){var i=a[o].split("="),r=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(n[s]=t.read(r,s),e===s)break}catch(l){}}return e?n[e]:n}},remove:function(e,t){n(e,"",us({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,us({},this.attributes,t))},withConverter:function(t){return e(us({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const hs=()=>"undefined"!=typeof window,fs=(e,t)=>{if(hs())try{window.sessionStorage?.setItem(e,t)}catch(a){}},ms=e=>{if(!hs())return"";try{return window.sessionStorage?.getItem(e)||""}catch(t){return""}},gs=e=>{if(hs())try{window.sessionStorage?.removeItem(e)}catch(t){}},ys={redirect:!1,redirectPath:"",tgc:"",thirdPartyInfo:{thirdPartyEmail:"new_user@gmail.com",thirdPartyId:"999888777",thirdPartyType:"FACEBOOK",thirdPartyUserName:"New User"},mobileEmailList:[]},vs=()=>{const e=ms("jc-auth-mobileEmailList")||"[]";return{thirdPartyId:ms("jc-auth-thirdPartyId"),thirdPartyEmail:ms("jc-auth-thirdPartyEmail"),thirdPartyType:ms("jc-auth-thirdPartyType"),thirdPartyUserName:ms("jc-auth-thirdPartyUserName"),mobileEmailList:JSON.parse(e)}},ws=e=>{e&&e.length>0&&fs("jc-auth-thirdPartyEmailVerifyList",JSON.stringify(e))},Cs=e=>{e&&e.length>0&&fs("jc-auth-thirdPartyMobileVerifyList",JSON.stringify(e))};function bs(t){const n=e(!1),o=e(null),i=e(!1),r=e(!1),s=e([]),l=e(!1);let c=null,d=null,u=!1;const p="current_login_type",h="jc_auth_state_check",f="jc_auth_active_instance",m=Math.random().toString(36).substring(2,15),g=e=>hs()?new URLSearchParams(window.location.search).get(e):null,y=()=>{d&&(clearInterval(d),d=null),c=null},v=()=>{console.log("🧹 [重置] 清空所有登录状态"),y(),hs()&&window.removeEventListener("message",w),n.value=!1,o.value=null,i.value=!1,r.value=!1,l.value=!1,s.value=[],u=!1,gs(p),gs(f),gs(h)},w=async e=>{if(!hs())return;if(![window.location.origin,"https://passport.jctrans.com","https://passport-sit.jctrans.net.cn","https://passport-sit2.jctrans.net.cn","http://localhost:8080","http://localhost:8086","http://localhost:8093"].includes(e.origin))return void console.warn("收到未知来源的消息:",e.origin);const{type:t,code:a,state:n}=e.data||{};if("THIRD_PARTY_LOGIN_CODE"===t&&a&&n){if(ms(f)!==m)return;if(ms(h)!==n)return;u=!0,console.log(`🍉 [主窗口] 实例 ${m} 收到授权码:`,a,n),window.removeEventListener("message",w),y();const e=ms(p)||null;if("TEST"===e){console.log("🍉 [主窗口] 测试模式:模拟接口返回");const e=ys;setTimeout(()=>{b(e)},500)}else await C(a,e)}},C=async(e,a)=>{const o=Z(),i={thirdPartyCode:e,appId:t.appId,redirectPath:t.redirectPath||"/",activityCode:o?.activityCode||"",referenceUserId:o?.referenceUserId||""};try{let e;"FACEBOOK"===a?e=await $(i):"LINKEDIN"===a&&(e=await ee(i)),e&&e.data&&b(e.data)}catch(r){console.error("登录 API 错误:",r),t.onError&&t.onError(r),v()}finally{n.value=!1,gs(p),gs(f)}},b=e=>{const a=e.data||e;if(console.log("🍉 处理登录结果:",a),o.value=a,n.value=!1,a.redirect&&a.tgc){const e="CPA"===t.appId?"tgc-CPA":"tgc";ps.set(e,a.tgc,{expires:30})}const l=a.mobileEmailList||[];if(((e,t)=>{e.thirdPartyId&&fs("jc-auth-thirdPartyId",e.thirdPartyId),e.thirdPartyEmail&&fs("jc-auth-thirdPartyEmail",e.thirdPartyEmail),e.thirdPartyType&&fs("jc-auth-thirdPartyType",e.thirdPartyType),e.thirdPartyUserName&&fs("jc-auth-thirdPartyUserName",e.thirdPartyUserName),t&&t.length>0&&fs("jc-auth-mobileEmailList",JSON.stringify(t))})(a?.thirdPartyInfo||{},a?.mobileEmailList||[]),l.length>0)console.log("👉 进入绑定流程"),s.value=l,i.value=!0,r.value=!1,t.onNeedBind&&t.onNeedBind(l);else if(a.redirect)if(console.log("👉 直接登录成功,准备跳转"),i.value=!1,r.value=!1,Y(a.result),t.onSuccess)t.onSuccess(a);else{const e=a.redirectPath||t.redirectPath;console.log("🍉 ~ useThirdPartyLogin.ts:426 ~ handleLoginSuccess ~ targetPath:",e),e&&Ts(e)}else console.log("👉 进入注册流程"),i.value=!1,s.value=[],r.value=!0};a(()=>{(()=>{if(hs()&&window.opener&&window.opener!==window){const e=g("code"),t=g("state");e&&(console.log("🍉 [弹窗] 获取到授权码,准备回传:",e),window.opener.postMessage({type:"THIRD_PARTY_LOGIN_CODE",code:e,state:t},"*"),window.close())}})()}),U(()=>{hs()&&window.removeEventListener("message",w),v()});return{isLoading:n,isBindDialogVisible:i,isRegisterVisible:r,isUserClosed:l,bindList:s,loginResult:o,startLogin:e=>{if(!hs())return;if(n.value)return;v(),u=!1,window.addEventListener("message",w),n.value=!0,fs(p,e),fs(f,m);const t="jc_"+Math.random().toString(36).slice(2);fs(h,t);const a=window.location.hostname.includes("jctrans.com"),o=window.location.hostname.includes("sit2"),i=(window.location.hostname.includes("sit"),`${a?"https://passport.jctrans.com":o?"https://passport-sit2.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"}/oauth_callback.html`||window.location.origin+window.location.pathname);let r="";if("TEST"===e){r=`${a?"https://passport.jctrans.com/mock_auth.html":o?"https://passport-sit2.jctrans.net.cn/mock_auth.html":"https://passport-sit.jctrans.net.cn/mock_auth.html"}?redirect_uri=${encodeURIComponent(i)}&state=${t}`}else if("FACEBOOK"===e){r=`${"https://www.facebook.com/v22.0/dialog/oauth"}?client_id=${"1819580562224685"}&redirect_uri=${encodeURIComponent(i)}&state=${t}&scope=email,public_profile&display=popup`}else if("LINKEDIN"===e){r=`${"https://www.linkedin.com/oauth/v2/authorization"}?response_type=code&client_id=${"86t0770jygwztk"}&redirect_uri=${encodeURIComponent(i)}&state=${t}&scope=profile%20email%20openid`}const s=window.screen.width/window.innerWidth,g=(window.screen.width-600)/2/s+(void 0!==window.screenLeft?window.screenLeft:window.screenX),C=`\n width=600,\n height=700,\n top=${(window.screen.height-700)/2/s+(void 0!==window.screenTop?window.screenTop:window.screenY)},\n left=${g},\n toolbar=no,\n menubar=no,\n scrollbars=yes,\n status=no,\n location=no\n `;if(console.log(`🍉 打开弹窗 [${e}]: ${r}`),c=window.open(r,"ThirdPartyLogin",C),!c)return console.error("浏览器已阻止弹窗"),void(n.value=!1);d=setInterval(()=>{if(c&&c.closed){if(u)return console.log("🍉 [竞态] 检测到窗口关闭,但正在处理消息,忽略此次关闭检测"),void y();console.log("🍉 检测到弹窗被手动关闭,执行重置"),v(),l.value=!0}},1e3)},resetState:v,handleBindThirdParty:e=>{s.value=e,i.value=!0,r.value=!1},resetBindRegisterState:()=>{i.value=!1,r.value=!1,s.value=[]}}}async function As(e,t,a,n=!0,o=!0){if(!t||""===t.trim())return a(new Error(n?"Email address is required":"请输入您的邮箱"));if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t))return a(new Error(n?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/[\u4e00-\u9fa5]+/.test(t))return a(new Error(n?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/@(qq|vip.qq).com$/i.test(t))return a(new Error(n?"QQ email is not supported, please change other work email":"不支持QQ邮箱,请您更换其他工作邮箱"));if(!o)return a();try{const{data:e}=await te({target:t});if(console.log("🍉 ~ constant.ts:67 ~ validateUserEmail ~ data:",e),e.data)return a(new Error(n?"It's already occupied, please re-enter.":"已被占用,请重新输入"));a()}catch(i){a(new Error(n?"Validation failed, please re-enter.":"校验失败,请重新输入"))}}function Es(e,t,a,n=!0,o=!0){const i=/^[a-zA-Z\u4e00-\u9fa5\s.·•]+$/,r=/^[a-zA-Z\s.·•]+$/;if(!t){return a(new Error(o?n?"please enter your Chinese name":"请输入您的中文姓名":n?"Please enter your English name":"请输入您的英文姓名"))}if(o){if(t.length>50||!i.test(t))return a(new Error(n?"Only Chinese and English characters and symbols can be entered, with a maximum of 50 words.":"仅能输入中英文字符及符号,最多50个字"))}else if(t.length>50||!r.test(t))return a(new Error(n?"Only English characters and symbols can be entered, up to 50 words.":"仅能输入英文字符及符号,最多50个字"));a()}function ks(e,t,a,n=!0){const o={empty:n?"The password cannot be empty. Please enter it":"密码不能为空,请重新输入",length:n?"The password must be at 6-20 characters only":"密码为6-20位字符",invalidChars:n?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号",complexity:n?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号"};if(null==t||""===t)return a(new Error(o.empty));if(t.length<6||t.length>20)return a(new Error(o.length));if(!/^[a-zA-Z0-9+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&“”‘’:?》《,^——_\s\u3000\u0020\u00A0\n\r【】{}[\]|;~·]*$/.test(t))return a(new Error(o.invalidChars));const i=/^[a-zA-Z]*$/.test(t),r=/^[0-9]*$/.test(t),s=/^[+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&“”‘’:?》《,^——_\s\u3000\u0020\u00A0\n\r【】{}[\]|;~·]*$/.test(t);if(i||r||s)return a(new Error(o.complexity));a()}async function xs(e,t,a,n=!0,o=!0){const i={empty:n?"Please enter your cell phone number":"请输入手机号",minLen:n?"please enter at least 2 characters.":"请输入至少 2 个字符.",invalid:n?"Invalid mobile address":"手机号格式错误",occupied:n?"It's already occupied, please re- enter.":"已被占用,请重新输入"};if(!t)return a(new Error(i.empty));if(!/^[0-9]*$/.test(t))return a(new Error(i.invalid));if(t.length<2)return a(new Error(i.minLen));if(!o)return a();try{const e=await te({target:t});if(console.log("🍉 ~ constant.ts:288 ~ validateUserMobilefive ~ res:",e),e&&e.data.data)return a(new Error(i.occupied));a()}catch(r){a(new Error(i.occupied))}}async function Ss(e,t,a,n=!0,o){const i=function(e){return e?e.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s{2,}/g," "):""}(t);console.log("🍉 ~ constant.ts:274 ~ validateCompanyName ~ nameValue:",i);const r=1==o.countryId;if(!i)return!r||"DDC"!==o.appId&&"JHB"!==o.appId?a(new Error(n?"please enter the full company name":"请输入公司名称")):a();if(i.length<2)return a(new Error(n?"please enter at least 2 characters.":"请输入至少 2 个字符."));if(i.length>200)return a(new Error(n?"please enter less than 200 characters.":"请输入少于 200 个字符."));if(!r){if(/[\u4e00-\u9fa5]/.test(i))return a(new Error(n?"Do not include Chinese characters in company name":"注册公司名不能有中文"));if(!/^[a-zA-Z0-9+.()&\\\-=*/,#'":!?;%$`@^——_\s]*$/.test(i))return a(new Error(n?"Wrong format for company name":"注册公司名格式错误"))}if(o.countryId&&o.cityId)try{const e={countryId:o.countryId,cityId:o.cityId,[r?"compNameCn":"compNameEn"]:i},t=await ne(e);console.log("🍉 ~ constant.ts:347 ~ validateCompanyName ~ res:",t),t.data.data.result?"JCPAY"===o.appId?a(new Error(n?"The company already exists, please contact customer service":"公司名称已存在,请联系客服")):(r?o.companyResistCn=!0:o.companyResistEn=!0,o.resistCompanyInfo=t.data.data,a()):(r?o.companyResistCn=!1:o.companyResistEn=!1,a())}catch(s){const e=s?.toString().split(":")[1]||"API Error";a(new Error(e))}else a(new Error(n?"Please select a Country/Region":"请选择国家/地区"))}function Is(e,t,a,n=!0){return t?/^\d{4}$/.test(t)?void a():a(new Error(n?"Verification code must be 4 digits":"验证码必须为4位数字")):a(new Error(n?"Please enter the verification code":"请输入验证码"))}function Bs(e="_blank"){const t=window.location.hostname.includes("jctrans.com"),a=window.location.hostname.includes("sit2"),n=(window.location.hostname.includes("sit"),t?"https://passport.jctrans.com":a?"https://passport-sit2.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"),o=document.createElement("a");o.href=`${n}/privacyAgreement`,o.target=e;const i=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});o.dispatchEvent(i)}function Vs(e="_blank"){const t=window.location.hostname.includes("jctrans.com"),a=window.location.hostname.includes("sit2"),n=(window.location.hostname.includes("sit"),t?"https://passport.jctrans.com":a?"https://passport-sit2.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"),o=document.createElement("a");o.href=`${n}/privacyPolicy`,o.target=e;const i=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});o.dispatchEvent(i)}const Ts=(e,t=100)=>{process.env&&"development"===process.env.NODE_ENV?console.log("🍉 ~ constant.ts:517 ~ handleRedirect ~ path:",e):e&&setTimeout(()=>{e.startsWith("http")?window.location.href=e:(window.location.href=window.location.origin+e,console.warn("内部路径跳转逻辑尚未定义:",e))},t)},Ps={class:"jc:text-xs jc:flex jc:mb-3 jc:-mt-3"},Rs={style:{color:"#f80"},class:"jc:text-xs"},Ns=/* @__PURE__ */o({__name:"ApplyJoinBtn",props:{isEn:{type:Boolean,default:!1}},emits:["apply-join"],setup(e,{emit:a}){const n=e,o=a,i=t(()=>n.isEn?"The company already exists. Would you like to apply to ":"该公司已存在。您可申请加入。"),r=t(()=>n.isEn?"join in >>":"点击申请加入 >>"),c=()=>{o("apply-join")};return(e,t)=>(l(),s("div",Ps,[d("p",Rs,[t[0]||(t[0]=d("i",{class:"el-icon-warning"},null,-1)),x(" "+v(i.value),1)]),d("p",{style:{color:"#3264ff",cursor:"pointer"},onClick:c},v(r.value),1)]))}}),Ds={name:"RegisterForm",components:{ElDialog:Xe,ElForm:Ye,ElFormItem:et,ElInput:Ge,ElButton:at,ElCheckbox:tt,ElSelect:Qe,ElOption:Ke,ElRadioGroup:ot,ElRadioButton:nt,JcFloatInput:ko,CodeInput:Nr,JcFloatWrapper:cs,JcSearch:un,ChineseCompanySearch:co,GoogleInput:yo,ApplyJoinBtn:Ns},props:{isEn:Boolean},emits:["to-login","register","need-complete","register-success"],computed:{isAgree(){return this.form.agree},countryId(){return this.form.city?.raw?.country?.id||this.form?.city?.raw?.city?.countryId},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId||this.resistCompanyInfo?.countryId;return[1].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:null,cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,a)=>Ss(0,t,a,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(e,t,a)=>As(0,t,a,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>xs(0,t,a,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,a)=>ks(0,t,a,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(e,t,a)=>{t?a():a(new Error(this.isEn?"Please agree the User Agreement and Privacy Policy":"请勾选《用户条款和协议》和《隐私政策》"))},trigger:["change","blur"]}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:Bs,getAuthSessionItems:Z,go2Policy:Vs,async inviteJoinGetComp(){const e=Z().compKey;if(!e)return;const{data:t}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=t.data},findDict(){he({dictType:"cmc_company_industry_sector"}).then(e=>{console.log("🍉 ~ RegisterForm.vue:557 ~ res:",e);const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))}).catch(e=>{})},handleChangeCompany(e){console.log("🍉 ~ RegisterForm.vue:570 ~ e:",e),this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){const e=(await ue()).data;console.log("🍉 ~ RegisterForm.vue:594 ~ IpData:",e),e&&0===e.code&&e.data&&e.data.cityId&&(this.form.city={id:e.data.cityId,type:"City",nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,raw:{city:{id:e.data.cityId,nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,countryId:e.data?.countryId},country:{id:e.data?.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=e.data?.countryId,this.handleSelectCity(this.form.city));const t=await pe();this.areaCodeData=t.data.data.records},handleClearCity(){console.log("🍉 ~ RegisterForm.vue:573 handleClearCity ~ :"),this.companyResistEn=!1,this.companyResistCn=!1},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id||e.raw?.city?.countryId||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(e){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(e,t=>{"email"!==e&&"phone"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){console.log("🍉 ~ RegisterForm.vue:586 ~ captchaData:",e),this.verifyData=e;const a={target:this.form.email||this.form.phone,uuid:e.uuid,code:e.code};t(),console.log("🍉 ~ RegisterForm.vue:642 ~ startTimer:",t);let n=de,o=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(n=fe,o=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),n(a).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(this.currentCountryIsChina?this.mobileUid=t:this.emailUid=t,Je.success(o))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleRegister(){this.$refs.registerFormRef.validate(e=>{if(!e)return;if(!this.verifyData.uuid)return void Je.error(this.isEn?"Please get code first":"请先获取验证码");const t=this.getAuthSessionItems();let a={appId:this.appId,fromSys:this.appId,passwd:yr.MD5(this.form.password).toString(),clickSource:t.clickSource||"",activityCode:t.activityCode||"",referenceUserId:t.referenceUserId||"",inviterInfo:t.empNo||"",industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,uniqueCode:t.uniqueCode||""};this.currentCountryIsChina?Object.assign(a,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,account:ce(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(a,{type:"EMAIL",account:ce(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),console.log("🍉 ~ RegisterForm.vue:676 ~ submitData:",a),this.hasResistCompany?this.handleApplyJoinSubmit(a):this.handleNewCompanySubmit(a)})},async handleNewCompanySubmit(e){const t=this.getAuthSessionItems(),a={...this.form.kqInfo,...e,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?a.compNameCn=this.form.companyName:a.compNameEn=this.form.companyName,this.$emit("register",a),console.log("🍉 ~ RegisterForm.vue:698 ~ registerPayload:",a),this.loading=!0;try{const e=t.uniqueCode?se:le,n=await e(a);this.handlePostRegister(n)}catch(n){this.loading=!1}},async handleApplyJoinSubmit(e){const t=this.getAuthSessionItems(),a={...e,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(a.nameCn=this.form.nameCn),this.form.nameEn&&(a.nameEn=this.form.nameEn);["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(e=>delete a[e]),this.$emit("register",a),this.loading=!0;try{const e=t.uniqueCode?ie:re,n=await e(a);this.handlePostRegister(n)}catch(n){this.loading=!1}},normalizeDelayMs(e){if(null==e||""===e)return 0;if("string"==typeof e){const t=e.trim().toLowerCase();if(!t)return 0;if(t.endsWith("ms")){const e=Number(t.slice(0,-2).trim());return Number.isFinite(e)&&e>=0?e:0}if(t.endsWith("s")){const e=Number(t.slice(0,-1).trim());return Number.isFinite(e)&&e>=0?1e3*e:0}const a=Number(t);return!Number.isFinite(a)||a<0?0:a>=10?a:1e3*a}const t=Number(e);return!Number.isFinite(t)||t<0?0:t>=10?t:1e3*t},executeRedirectWithDelay(e,t){const a=this.normalizeDelayMs(t);setTimeout(()=>{oe(),Ts(e)},a)},handlePostRegister(e){const t=this.getAuthSessionItems();if(console.log("🍉 ~ RegisterForm.vue:749 ~ res.data:",e.data),0===e.data.code)if(e.data.data.redirect){if(Y(e.data.data.result),e.data.data.result&&e.data.data.result.improveComp)return void this.$emit("need-complete",e.data.data.result.improveComp);try{ps.set("tgc",e.data.data.tgc,{expires:30});const a=e.data.data.redirectPath||t.path||"/",n={isHandled:!1},o=e=>{n.isHandled=!0,this.executeRedirectWithDelay(a,e)},i=()=>{n.isHandled=!0};this.$emit("register-success",{user:e.data.data.result,redirectPath:a,preventDefault:i,redirect:o}),setTimeout(()=>{n.isHandled||this.executeRedirectWithDelay(a,0)},0)}catch(a){console.error("🍉 注册成功后的后续处理发生异常:",a)}}else this.loading=!1,Je.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,Je.error(e.data.msg)}}},Us={class:"register-form-container"},Fs={class:"register-title"},_s={class:"resist-company-info-card"},Ls={class:"card-header"},Ms={class:"title-group"},Os={class:"tip-text"},js={class:"company-content"},qs={class:"company-name"},Hs={class:"card-header"},zs={class:"title-group"},Js={class:"tip-text"},Ws={class:"location-info"},Qs={key:4,class:"sector-section"},Ks={class:"sector-label"},Gs={class:"sector-group"},Xs=["onClick"],Ys={key:0,class:"icon-auth-checked"},Zs={class:"agree-text"},$s={class:"bottom-tip"};const el=/* @__PURE__ */dn(Ds,[["render",function(e,t,a,n,o,i){const r=V("JcSearch"),h=V("JcFloatWrapper"),m=V("el-form-item"),C=V("ChineseCompanySearch"),b=V("ApplyJoinBtn"),A=V("JcFloatInput"),E=V("el-option"),k=V("el-select"),S=V("google-input"),I=V("CodeInput"),T=V("el-checkbox"),P=V("el-button"),R=V("el-form");return l(),s("div",Us,[d("div",Fs,[d("p",null,v(a.isEn?"New User Registration":"新用户注册"),1)]),p(R,{ref:"registerFormRef",model:o.form,rules:o.rules,class:"auth-form"},{default:B(()=>[o.hasResistCompany?(l(),s(g,{key:1},[d("div",_s,[d("div",Ls,[d("div",Ms,[d("span",Os,v(a.isEn?"Company name":"公司名称"),1)]),d("span",{class:"change-link",onClick:t[5]||(t[5]=e=>o.hasResistCompany=!1)},v(a.isEn?"Change":"修改"),1)]),d("div",js,[d("h4",qs,v(a.isEn?o.resistCompanyInfo.compNameEn||o.resistCompanyInfo.compNameCn:o.resistCompanyInfo.compNameCn||o.resistCompanyInfo.compNameEn),1)]),d("div",Hs,[d("div",zs,[d("span",Js,v(a.isEn?"Location(City)":"所在地(城市)"),1)])]),d("div",Ws,v(a.isEn?o.resistCompanyInfo.countryNameEn:o.resistCompanyInfo.countryNameCn)+" / "+v(a.isEn?o.resistCompanyInfo.cityNameEn:o.resistCompanyInfo.cityNameCn),1)]),p(m,{prop:i.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:B(()=>[p(A,{modelValue:o.form[i.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[6]||(t[6]=e=>o.form[i.currentCountryIsChina?"nameCn":"nameEn"]=e),label:i.currentCountryIsChina?a.isEn?"Your Full Name in Chinese":"您的中文名称":a.isEn?"Your Full Name in English":"您的名称",placeholder:a.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:B(()=>[...t[21]||(t[21]=[d("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[p(m,{prop:"city"},{default:B(()=>[p(h,{label:a.isEn?"Company Location (City)":"公司所在城市","has-value":!(!o.form.city||!o.form.city.id)},{default:B(()=>[p(r,{modelValue:o.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>o.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],onClear:i.handleClearCity,onSelect:i.handleSelectCity,placeholder:a.isEn?"Location(City)":"请输入公司所在城市"},{prefix:B(()=>[...t[19]||(t[19]=[d("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","onClear","onSelect","placeholder"])]),_:1},8,["label","has-value"])]),_:1}),p(m,{prop:"companyName"},{default:B(()=>[p(h,{label:i.currentCompanyLabel},{default:B(()=>[p(C,{class:"jc:my-0! search-company-item","company-name":o.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>o.form.companyName=e),useKq:o.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>o.form.useKq=e),kqCode:o.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>o.form.kqCode=e),kqInfo:o.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>o.form.kqInfo=e),"country-id":o.form.city?.raw?.country?.id||o.form.city?.raw?.city?.countryId||null,city:o.form.city,onChange:i.handleChangeCompany},{prefix:B(()=>[...t[20]||(t[20]=[d("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","country-id","city","onChange"])]),_:1},8,["label"])]),_:1}),o.companyResistCn||o.companyResistEn?(l(),u(b,{key:0,"is-en":a.isEn,onApplyJoin:i.handleApplyJoinClick},null,8,["is-en","onApplyJoin"])):f("",!0)],64)),i.currentCountryIsChina?(l(),u(m,{key:2,class:"phone-form-item"},{default:B(()=>[(l(),u(m,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:B(()=>[p(S,{modelValue:o.form.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>o.form.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15",disabled:o.isCounting},{prefix:B(()=>[t[22]||(t[22]=d("i",{class:"icon-auth-phone"},null,-1)),p(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:B(()=>[p(k,{modelValue:o.form.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>o.form.areaCode=e),placeholder:a.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),disabled:o.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:B(()=>[(l(!0),s(g,null,y(o.areaCodeData,e=>(l(),u(E,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),p(E,{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1})):f("",!0),i.currentCountryIsChina?f("",!0):(l(),u(m,{key:3,prop:"email",class:"email-form-item"},{default:B(()=>[p(A,{modelValue:o.form.email,"onUpdate:modelValue":t[11]||(t[11]=e=>o.form.email=e),label:a.isEn?"Business Email Address":"企业邮箱",placeholder:a.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[12]||(t[12]=e=>i.validateField("email"))},{prefix:B(()=>[...t[23]||(t[23]=[d("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1})),p(m,{prop:"code"},{default:B(()=>[p(I,{modelValue:o.form.code,"onUpdate:modelValue":t[13]||(t[13]=e=>o.form.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:o.codeReady,"is-en":a.isEn,"show-icon":"",onSend:i.handleGetCode},{prefix:B(()=>[...t[24]||(t[24]=[d("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1}),p(m,{prop:"password",class:"password-form-item"},{default:B(()=>[p(A,{modelValue:o.form.password,"onUpdate:modelValue":t[14]||(t[14]=e=>o.form.password=e),type:"password","show-password":"",class:"input-show-pass",label:a.isEn?"Password":"密码",placeholder:a.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},{prefix:B(()=>[...t[25]||(t[25]=[d("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),o.hasResistCompany?f("",!0):(l(),s("div",Qs,[d("p",Ks,v(a.isEn?"Industry Sector":"行业类型"),1),d("div",Gs,[(l(!0),s(g,null,y(o.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:o.form.sector===e.value}]),onClick:t=>o.form.sector=e.value},[x(v(a.isEn?e.en:e.cn)+" ",1),o.form.sector===e.value?(l(),s("i",Ys)):f("",!0)],10,Xs))),128))])])),p(m,{prop:"agree",class:"agree-item"},{default:B(()=>[p(T,{modelValue:o.form.agree,"onUpdate:modelValue":t[17]||(t[17]=e=>o.form.agree=e)},{default:B(()=>[d("span",Zs,[x(v(a.isEn?"I agree":"我同意")+" ",1),d("span",{class:"link-type",onClick:t[15]||(t[15]=w((...e)=>i.go2Agreement&&i.go2Agreement(...e),["stop"]))},v(a.isEn?"User Agreement":"《用户条款和协议》"),1),x(" "+v(a.isEn?"and":"和")+" ",1),d("span",{class:"link-type",onClick:t[16]||(t[16]=w((...e)=>i.go2Policy&&i.go2Policy(...e),["stop"]))},v(a.isEn?"Privacy Policy":"《隐私政策》"),1)])]),_:1},8,["modelValue"])]),_:1}),p(P,{class:c(["submit-btn register-btn",["register-btn-is-active"]]),disabled:o.loading,loading:o.loading,onClick:i.handleRegister},{default:B(()=>[x(v(a.isEn?"Register and Log in":"注册并登录")+" ",1),t[26]||(t[26]=d("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["disabled","loading","onClick"])]),_:1},8,["model","rules"]),d("div",$s,[x(v(a.isEn?"Already have an account?":"已有账号?")+" ",1),d("span",{class:"action-text",onClick:t[18]||(t[18]=t=>e.$emit("to-login"))},[x(v(a.isEn?"Click to log in":"去登录")+" ",1),t[27]||(t[27]=d("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[d("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])])])}],["__scopeId","data-v-e49d204e"]]);var tl,al,nl={};var ol,il={},rl={};function sl(){if(ol)return rl;let e;ol=1;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return rl.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},rl.getSymbolTotalCodewords=function(e){return t[e]},rl.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},rl.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');e=t},rl.isKanjiModeEnabled=function(){return void 0!==e},rl.toSJIS=function(t){return e(t)},rl}var ll,cl,dl,ul,pl,hl={};function fl(){return ll||(ll=1,(e=hl).L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},e.from=function(t,a){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(n){return a}}),hl;var e}var ml,gl={};var yl,vl={};var wl,Cl={};var bl,Al={};function El(){if(bl)return Al;bl=1;const e=fl(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],a=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Al.getBlocksCount=function(a,n){switch(n){case e.L:return t[4*(a-1)+0];case e.M:return t[4*(a-1)+1];case e.Q:return t[4*(a-1)+2];case e.H:return t[4*(a-1)+3];default:return}},Al.getTotalCodewordsCount=function(t,n){switch(n){case e.L:return a[4*(t-1)+0];case e.M:return a[4*(t-1)+1];case e.Q:return a[4*(t-1)+2];case e.H:return a[4*(t-1)+3];default:return}},Al}var kl,xl,Sl,Il,Bl={},Vl={};function Tl(){return xl||(xl=1,function(e){const t=function(){if(kl)return Vl;kl=1;const e=new Uint8Array(512),t=new Uint8Array(256);return function(){let a=1;for(let n=0;n<255;n++)e[n]=a,t[a]=n,a<<=1,256&a&&(a^=285);for(let t=255;t<512;t++)e[t]=e[t-255]}(),Vl.log=function(e){if(e<1)throw new Error("log("+e+")");return t[e]},Vl.exp=function(t){return e[t]},Vl.mul=function(a,n){return 0===a||0===n?0:e[t[a]+t[n]]},Vl}();e.mul=function(e,a){const n=new Uint8Array(e.length+a.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<a.length;i++)n[o+i]^=t.mul(e[o],a[i]);return n},e.mod=function(e,a){let n=new Uint8Array(e);for(;n.length-a.length>=0;){const e=n[0];for(let i=0;i<a.length;i++)n[i]^=t.mul(a[i],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},e.generateECPolynomial=function(a){let n=new Uint8Array([1]);for(let o=0;o<a;o++)n=e.mul(n,new Uint8Array([1,t.exp(o)]));return n}}(Bl)),Bl}var Pl,Rl={},Nl={},Dl={};function Ul(){return Pl||(Pl=1,Dl.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),Dl}var Fl,_l,Ll,Ml={};function Ol(){if(Fl)return Ml;Fl=1;const e="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const a="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";Ml.KANJI=new RegExp(t,"g"),Ml.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ml.BYTE=new RegExp(a,"g"),Ml.NUMERIC=new RegExp(e,"g"),Ml.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const n=new RegExp("^"+t+"$"),o=new RegExp("^"+e+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ml.testKanji=function(e){return n.test(e)},Ml.testNumeric=function(e){return o.test(e)},Ml.testAlphanumeric=function(e){return i.test(e)},Ml}function jl(){return _l||(_l=1,function(e){const t=Ul(),a=Ol();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,a){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!t.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?e.ccBits[0]:a<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return a.testNumeric(t)?e.NUMERIC:a.testAlphanumeric(t)?e.ALPHANUMERIC:a.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},e.isValid=function(e){return e&&e.bit&&e.ccBits},e.from=function(t,a){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(n){return a}}}(Nl)),Nl}function ql(){return Ll||(Ll=1,function(e){const t=sl(),a=El(),n=fl(),o=jl(),i=Ul(),r=t.getBCHDigit(7973);function s(e,t){return o.getCharCountIndicator(e,t)+4}function l(e,t){let a=0;return e.forEach(function(e){const n=s(e.mode,t);a+=n+e.getBitsLength()}),a}e.from=function(e,t){return i.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,n,r){if(!i.isValid(e))throw new Error("Invalid QR Code version");void 0===r&&(r=o.BYTE);const l=8*(t.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,n));if(r===o.MIXED)return l;const c=l-s(r,e);switch(r){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,a){let i;const r=n.from(a,n.M);if(Array.isArray(t)){if(t.length>1)return function(t,a){for(let n=1;n<=40;n++)if(l(t,n)<=e.getCapacity(n,a,o.MIXED))return n}(t,r);if(0===t.length)return 1;i=t[0]}else i=t;return function(t,a,n){for(let o=1;o<=40;o++)if(a<=e.getCapacity(o,n,t))return o}(i.mode,i.getLength(),r)},e.getEncodedBits=function(e){if(!i.isValid(e)||e<7)throw new Error("Invalid QR Code version");let a=e<<12;for(;t.getBCHDigit(a)-r>=0;)a^=7973<<t.getBCHDigit(a)-r;return e<<12|a}}(Rl)),Rl}var Hl,zl={};var Jl,Wl,Ql,Kl,Gl,Xl,Yl,Zl,$l={};var ec,tc,ac,nc={exports:{}};function oc(){return tc||(tc=1,function(e){const t=jl(),a=function(){if(Wl)return Jl;Wl=1;const e=jl();function t(t){this.mode=e.NUMERIC,this.data=t.toString()}return t.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){let t,a,n;for(t=0;t+3<=this.data.length;t+=3)a=this.data.substr(t,3),n=parseInt(a,10),e.put(n,10);const o=this.data.length-t;o>0&&(a=this.data.substr(t),n=parseInt(a,10),e.put(n,3*o+1))},Jl=t}(),n=function(){if(Kl)return Ql;Kl=1;const e=jl(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function a(t){this.mode=e.ALPHANUMERIC,this.data=t}return a.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let a;for(a=0;a+2<=this.data.length;a+=2){let n=45*t.indexOf(this.data[a]);n+=t.indexOf(this.data[a+1]),e.put(n,11)}this.data.length%2&&e.put(t.indexOf(this.data[a]),6)},Ql=a}(),o=function(){if(Xl)return Gl;Xl=1;const e=jl();function t(t){this.mode=e.BYTE,this.data="string"==typeof t?(new TextEncoder).encode(t):new Uint8Array(t)}return t.getBitsLength=function(e){return 8*e},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){for(let t=0,a=this.data.length;t<a;t++)e.put(this.data[t],8)},Gl=t}(),i=function(){if(Zl)return Yl;Zl=1;const e=jl(),t=sl();function a(t){this.mode=e.KANJI,this.data=t}return a.getBitsLength=function(e){return 13*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let a;for(a=0;a<this.data.length;a++){let n=t.toSJIS(this.data[a]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[a]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},Yl=a}(),r=Ol(),s=sl(),l=function(){return ec?nc.exports:(ec=1,nc.exports=e={single_source_shortest_paths:function(t,a,n){var o={},i={};i[a]=0;var r,s,l,c,d,u,p,h=e.PriorityQueue.make();for(h.push(a,0);!h.empty();)for(l in s=(r=h.pop()).value,c=r.cost,d=t[s]||{})d.hasOwnProperty(l)&&(u=c+d[l],p=i[l],(void 0===i[l]||p>u)&&(i[l]=u,h.push(l,u),o[l]=s));if(void 0!==n&&void 0===i[n]){var f=["Could not find a path from ",a," to ",n,"."].join("");throw new Error(f)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var a=[],n=t;n;)a.push(n),e[n],n=e[n];return a.reverse(),a},find_path:function(t,a,n){var o=e.single_source_shortest_paths(t,a,n);return e.extract_shortest_path_from_predecessor_list(o,n)},PriorityQueue:{make:function(t){var a,n=e.PriorityQueue,o={};for(a in t=t||{},n)n.hasOwnProperty(a)&&(o[a]=n[a]);return o.queue=[],o.sorter=t.sorter||n.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var a={value:e,cost:t};this.queue.push(a),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}});var e}();function c(e){return unescape(encodeURIComponent(e)).length}function d(e,t,a){const n=[];let o;for(;null!==(o=e.exec(a));)n.push({data:o[0],index:o.index,mode:t,length:o[0].length});return n}function u(e){const a=d(r.NUMERIC,t.NUMERIC,e),n=d(r.ALPHANUMERIC,t.ALPHANUMERIC,e);let o,i;s.isKanjiModeEnabled()?(o=d(r.BYTE,t.BYTE,e),i=d(r.KANJI,t.KANJI,e)):(o=d(r.BYTE_KANJI,t.BYTE,e),i=[]);return a.concat(n,o,i).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function p(e,r){switch(r){case t.NUMERIC:return a.getBitsLength(e);case t.ALPHANUMERIC:return n.getBitsLength(e);case t.KANJI:return i.getBitsLength(e);case t.BYTE:return o.getBitsLength(e)}}function h(e,r){let l;const c=t.getBestModeForData(e);if(l=t.from(r,c),l!==t.BYTE&&l.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+t.toString(l)+".\n Suggested mode is: "+t.toString(c));switch(l!==t.KANJI||s.isKanjiModeEnabled()||(l=t.BYTE),l){case t.NUMERIC:return new a(e);case t.ALPHANUMERIC:return new n(e);case t.KANJI:return new i(e);case t.BYTE:return new o(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(h(t,null)):t.data&&e.push(h(t.data,t.mode)),e},[])},e.fromString=function(a,n){const o=function(e){const a=[];for(let n=0;n<e.length;n++){const o=e[n];switch(o.mode){case t.NUMERIC:a.push([o,{data:o.data,mode:t.ALPHANUMERIC,length:o.length},{data:o.data,mode:t.BYTE,length:o.length}]);break;case t.ALPHANUMERIC:a.push([o,{data:o.data,mode:t.BYTE,length:o.length}]);break;case t.KANJI:a.push([o,{data:o.data,mode:t.BYTE,length:c(o.data)}]);break;case t.BYTE:a.push([{data:o.data,mode:t.BYTE,length:c(o.data)}])}}return a}(u(a,s.isKanjiModeEnabled())),i=function(e,a){const n={},o={start:{}};let i=["start"];for(let r=0;r<e.length;r++){const s=e[r],l=[];for(let e=0;e<s.length;e++){const c=s[e],d=""+r+e;l.push(d),n[d]={node:c,lastCount:0},o[d]={};for(let e=0;e<i.length;e++){const r=i[e];n[r]&&n[r].node.mode===c.mode?(o[r][d]=p(n[r].lastCount+c.length,c.mode)-p(n[r].lastCount,c.mode),n[r].lastCount+=c.length):(n[r]&&(n[r].lastCount=c.length),o[r][d]=p(c.length,c.mode)+4+t.getCharCountIndicator(c.mode,a))}}i=l}for(let t=0;t<i.length;t++)o[i[t]].end=0;return{map:o,table:n}}(o,n),r=l.find_path(i.map,"start","end"),d=[];for(let e=1;e<r.length-1;e++)d.push(i.table[r[e]].node);return e.fromArray(function(e){return e.reduce(function(e,t){const a=e.length-1>=0?e[e.length-1]:null;return a&&a.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}(d))},e.rawSplit=function(t){return e.fromArray(u(t,s.isKanjiModeEnabled()))}}($l)),$l}function ic(){if(ac)return il;ac=1;const e=sl(),t=fl(),a=function(){if(dl)return cl;function e(){this.buffer=[],this.length=0}return dl=1,e.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let a=0;a<t;a++)this.putBit(1==(e>>>t-a-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},cl=e}(),n=function(){if(pl)return ul;function e(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return pl=1,e.prototype.set=function(e,t,a,n){const o=e*this.size+t;this.data[o]=a,n&&(this.reservedBit[o]=!0)},e.prototype.get=function(e,t){return this.data[e*this.size+t]},e.prototype.xor=function(e,t,a){this.data[e*this.size+t]^=a},e.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},ul=e}(),o=(ml||(ml=1,function(e){const t=sl().getSymbolSize;e.getRowColCoords=function(e){if(1===e)return[];const a=Math.floor(e/7)+2,n=t(e),o=145===n?26:2*Math.ceil((n-13)/(2*a-2)),i=[n-7];for(let t=1;t<a-1;t++)i[t]=i[t-1]-o;return i.push(6),i.reverse()},e.getPositions=function(t){const a=[],n=e.getRowColCoords(t),o=n.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)0===e&&0===t||0===e&&t===o-1||e===o-1&&0===t||a.push([n[e],n[t]]);return a}}(gl)),gl),i=function(){if(yl)return vl;yl=1;const e=sl().getSymbolSize;return vl.getPositions=function(t){const a=e(t);return[[0,0],[a-7,0],[0,a-7]]},vl}(),r=(wl||(wl=1,function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t=3,a=3,n=40,o=10;function i(t,a,n){switch(t){case e.Patterns.PATTERN000:return(a+n)%2==0;case e.Patterns.PATTERN001:return a%2==0;case e.Patterns.PATTERN010:return n%3==0;case e.Patterns.PATTERN011:return(a+n)%3==0;case e.Patterns.PATTERN100:return(Math.floor(a/2)+Math.floor(n/3))%2==0;case e.Patterns.PATTERN101:return a*n%2+a*n%3==0;case e.Patterns.PATTERN110:return(a*n%2+a*n%3)%2==0;case e.Patterns.PATTERN111:return(a*n%3+(a+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){const a=e.size;let n=0,o=0,i=0,r=null,s=null;for(let l=0;l<a;l++){o=i=0,r=s=null;for(let c=0;c<a;c++){let a=e.get(l,c);a===r?o++:(o>=5&&(n+=t+(o-5)),r=a,o=1),a=e.get(c,l),a===s?i++:(i>=5&&(n+=t+(i-5)),s=a,i=1)}o>=5&&(n+=t+(o-5)),i>=5&&(n+=t+(i-5))}return n},e.getPenaltyN2=function(e){const t=e.size;let n=0;for(let a=0;a<t-1;a++)for(let o=0;o<t-1;o++){const t=e.get(a,o)+e.get(a,o+1)+e.get(a+1,o)+e.get(a+1,o+1);4!==t&&0!==t||n++}return n*a},e.getPenaltyN3=function(e){const t=e.size;let a=0,o=0,i=0;for(let n=0;n<t;n++){o=i=0;for(let r=0;r<t;r++)o=o<<1&2047|e.get(n,r),r>=10&&(1488===o||93===o)&&a++,i=i<<1&2047|e.get(r,n),r>=10&&(1488===i||93===i)&&a++}return a*n},e.getPenaltyN4=function(e){let t=0;const a=e.data.length;for(let n=0;n<a;n++)t+=e.data[n];return Math.abs(Math.ceil(100*t/a/5)-10)*o},e.applyMask=function(e,t){const a=t.size;for(let n=0;n<a;n++)for(let o=0;o<a;o++)t.isReserved(o,n)||t.xor(o,n,i(e,o,n))},e.getBestMask=function(t,a){const n=Object.keys(e.Patterns).length;let o=0,i=1/0;for(let r=0;r<n;r++){a(r),e.applyMask(r,t);const n=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(r,t),n<i&&(i=n,o=r)}return o}}(Cl)),Cl),s=El(),l=function(){if(Il)return Sl;Il=1;const e=Tl();function t(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(t){this.degree=t,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(t.length+this.degree);a.set(t);const n=e.mod(a,this.genPoly),o=this.degree-n.length;if(o>0){const e=new Uint8Array(this.degree);return e.set(n,o),e}return n},Sl=t}(),c=ql(),d=function(){if(Hl)return zl;Hl=1;const e=sl(),t=e.getBCHDigit(1335);return zl.getEncodedBits=function(a,n){const o=a.bit<<3|n;let i=o<<10;for(;e.getBCHDigit(i)-t>=0;)i^=1335<<e.getBCHDigit(i)-t;return 21522^(o<<10|i)},zl}(),u=jl(),p=oc();function h(e,t,a){const n=e.size,o=d.getEncodedBits(t,a);let i,r;for(i=0;i<15;i++)r=1==(o>>i&1),i<6?e.set(i,8,r,!0):i<8?e.set(i+1,8,r,!0):e.set(n-15+i,8,r,!0),i<8?e.set(8,n-i-1,r,!0):i<9?e.set(8,15-i-1+1,r,!0):e.set(8,15-i-1,r,!0);e.set(n-8,8,1,!0)}function f(t,n,o){const i=new a;o.forEach(function(e){i.put(e.mode.bit,4),i.put(e.getLength(),u.getCharCountIndicator(e.mode,t)),e.write(i)});const r=8*(e.getSymbolTotalCodewords(t)-s.getTotalCodewordsCount(t,n));for(i.getLengthInBits()+4<=r&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const c=(r-i.getLengthInBits())/8;for(let e=0;e<c;e++)i.put(e%2?17:236,8);return function(t,a,n){const o=e.getSymbolTotalCodewords(a),i=s.getTotalCodewordsCount(a,n),r=o-i,c=s.getBlocksCount(a,n),d=o%c,u=c-d,p=Math.floor(o/c),h=Math.floor(r/c),f=h+1,m=p-h,g=new l(m);let y=0;const v=new Array(c),w=new Array(c);let C=0;const b=new Uint8Array(t.buffer);for(let e=0;e<c;e++){const t=e<u?h:f;v[e]=b.slice(y,y+t),w[e]=g.encode(v[e]),y+=t,C=Math.max(C,t)}const A=new Uint8Array(o);let E,k,x=0;for(E=0;E<C;E++)for(k=0;k<c;k++)E<v[k].length&&(A[x++]=v[k][E]);for(E=0;E<m;E++)for(k=0;k<c;k++)A[x++]=w[k][E];return A}(i,t,n)}function m(t,a,s,l){let d;if(Array.isArray(t))d=p.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let e=a;if(!e){const a=p.rawSplit(t);e=c.getBestVersionForData(a,s)}d=p.fromString(t,e||40)}}const u=c.getBestVersionForData(d,s);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(a){if(a<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else a=u;const m=f(a,s,d),g=e.getSymbolSize(a),y=new n(g);return function(e,t){const a=e.size,n=i.getPositions(t);for(let o=0;o<n.length;o++){const t=n[o][0],i=n[o][1];for(let n=-1;n<=7;n++)if(!(t+n<=-1||a<=t+n))for(let o=-1;o<=7;o++)i+o<=-1||a<=i+o||(n>=0&&n<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===n||6===n)||n>=2&&n<=4&&o>=2&&o<=4?e.set(t+n,i+o,!0,!0):e.set(t+n,i+o,!1,!0))}}(y,a),function(e){const t=e.size;for(let a=8;a<t-8;a++){const t=a%2==0;e.set(a,6,t,!0),e.set(6,a,t,!0)}}(y),function(e,t){const a=o.getPositions(t);for(let n=0;n<a.length;n++){const t=a[n][0],o=a[n][1];for(let a=-2;a<=2;a++)for(let n=-2;n<=2;n++)-2===a||2===a||-2===n||2===n||0===a&&0===n?e.set(t+a,o+n,!0,!0):e.set(t+a,o+n,!1,!0)}}(y,a),h(y,s,0),a>=7&&function(e,t){const a=e.size,n=c.getEncodedBits(t);let o,i,r;for(let s=0;s<18;s++)o=Math.floor(s/3),i=s%3+a-8-3,r=1==(n>>s&1),e.set(o,i,r,!0),e.set(i,o,r,!0)}(y,a),function(e,t){const a=e.size;let n=-1,o=a-1,i=7,r=0;for(let s=a-1;s>0;s-=2)for(6===s&&s--;;){for(let a=0;a<2;a++)if(!e.isReserved(o,s-a)){let n=!1;r<t.length&&(n=1==(t[r]>>>i&1)),e.set(o,s-a,n),i--,-1===i&&(r++,i=7)}if(o+=n,o<0||a<=o){o-=n,n=-n;break}}}(y,m),isNaN(l)&&(l=r.getBestMask(y,h.bind(null,y,s))),r.applyMask(l,y),h(y,s,l),{modules:y,version:a,errorCorrectionLevel:s,maskPattern:l,segments:d}}return il.create=function(a,n){if(void 0===a||""===a)throw new Error("No input text");let o,i,s=t.M;return void 0!==n&&(s=t.from(n.errorCorrectionLevel,t.M),o=c.from(n.version),i=r.from(n.maskPattern),n.toSJISFunc&&e.setToSJISFunction(n.toSJISFunc)),m(a,o,s,i)},il}var rc,sc,lc={},cc={};function dc(){return rc||(rc=1,function(e){function t(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const a=parseInt(t.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:255&a,hex:"#"+t.slice(0,6).join("")}}e.getOptions=function(e){e||(e={}),e.color||(e.color={});const a=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:n,scale:n?4:o,margin:a,color:{dark:t(e.color.dark||"#000000ff"),light:t(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},e.getImageWidth=function(t,a){const n=e.getScale(t,a);return Math.floor((t+2*a.margin)*n)},e.qrToImageData=function(t,a,n){const o=a.modules.size,i=a.modules.data,r=e.getScale(o,n),s=Math.floor((o+2*n.margin)*r),l=n.margin*r,c=[n.color.light,n.color.dark];for(let e=0;e<s;e++)for(let a=0;a<s;a++){let d=4*(e*s+a),u=n.color.light;if(e>=l&&a>=l&&e<s-l&&a<s-l){u=c[i[Math.floor((e-l)/r)*o+Math.floor((a-l)/r)]?1:0]}t[d++]=u.r,t[d++]=u.g,t[d++]=u.b,t[d]=u.a}}}(cc)),cc}function uc(){return sc||(sc=1,function(e){const t=dc();e.render=function(e,a,n){let o=n,i=a;void 0!==o||a&&a.getContext||(o=a,a=void 0),a||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=t.getOptions(o);const r=t.getImageWidth(e.modules.size,o),s=i.getContext("2d"),l=s.createImageData(r,r);return t.qrToImageData(l.data,e,o),function(e,t,a){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=a,t.width=a,t.style.height=a+"px",t.style.width=a+"px"}(s,i,r),s.putImageData(l,0,0),i},e.renderToDataURL=function(t,a,n){let o=n;void 0!==o||a&&a.getContext||(o=a,a=void 0),o||(o={});const i=e.render(t,a,o),r=o.type||"image/png",s=o.rendererOpts||{};return i.toDataURL(r,s.quality)}}(lc)),lc}var pc,hc,fc={};function mc(){if(pc)return fc;pc=1;const e=dc();function t(e,t){const a=e.a/255,n=t+'="'+e.hex+'"';return a<1?n+" "+t+'-opacity="'+a.toFixed(2).slice(1)+'"':n}function a(e,t,a){let n=e+t;return void 0!==a&&(n+=" "+a),n}return fc.render=function(n,o,i){const r=e.getOptions(o),s=n.modules.size,l=n.modules.data,c=s+2*r.margin,d=r.color.light.a?"<path "+t(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+t(r.color.dark,"stroke")+' d="'+function(e,t,n){let o="",i=0,r=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),d=Math.floor(l/t);c||r||(r=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(o+=r?a("M",c+n,.5+d+n):a("m",i,0),i=0,r=!1),c+1<t&&e[l+1]||(o+=a("h",s),s=0)):i++}return o}(l,s,r.margin)+'"/>',p='viewBox="0 0 '+c+" "+c+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+p+' shape-rendering="crispEdges">'+d+u+"</svg>\n";return"function"==typeof i&&i(null,h),h},fc}const gc=/* @__PURE__ */Io(function(){if(hc)return nl;hc=1;const e=al?tl:(al=1,tl=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}),t=ic(),a=uc(),n=mc();function o(a,n,o,i,r){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!e())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(o=n,n=i=void 0):2!==l||n.getContext||(i=o,o=n,n=void 0),new Promise(function(e,r){try{const r=t.create(o,i);e(a(r,n,i))}catch(s){r(s)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(r=o,o=n,n=i=void 0):3===l&&(n.getContext&&void 0===r?(r=i,i=void 0):(r=i,i=o,o=n,n=void 0));try{const e=t.create(o,i);r(null,a(e,n,i))}catch(d){r(d)}}return nl.create=t.create,nl.toCanvas=o.bind(null,a.render),nl.toDataURL=o.bind(null,a.renderToDataURL),nl.toString=o.bind(null,function(e,t,a){return n.render(e,a)}),nl}()),yc={class:"login-wx"},vc={class:"login-wx-code"},wc={class:"expired-text mt10 mb10"},Cc={class:"scan-tip"},bc=/* @__PURE__ */dn(/* @__PURE__ */o({__name:"WechatLogin",props:{appId:{default:"ERA"},path:{},isEn:{type:Boolean,default:!1}},emits:["success","need-register","need-complete"],setup(t,{emit:n}){const o=t,i=n,r=e(null),u=e(!0),h=e(!1),g=e("");let y=null;const C=async()=>{u.value=!0,k();try{const{data:t}=await me();if(console.log("🍉 ~ WechatLogin.vue:126 ~ fetchWxCode ~ data:",t),0===t?.code){g.value=t.data?.uniqueCode,h.value=!1;try{ge({uniqueCode:g.value})}catch(e){console.log("🍉 ~ WechatLogin.vue:114 ~ fetchWxCode ~ error:",e)}await(async e=>{if(await O(),r.value)try{await gc.toCanvas(r.value,e,{width:200,margin:1,color:{dark:"#000000",light:"#ffffff"},errorCorrectionLevel:"M"})}catch(t){console.error("QR Code render error:",t)}})(t.data?.qrCodeUrl),b()}else h.value=!0}catch(e){console.error("Fetch WeChat QR fail:",e)}finally{u.value=!1}},b=()=>{const e=window.BASE_INFO?.WX_POLLING_TIME||3e3;y=setInterval(async()=>{try{console.log("🍉 ~ WechatLogin.vue:173 ~ startPolling ~ props:",o);const{data:e}=await ye({uniqueCode:g.value,appId:o.appId,redirectPath:o.path||"",kick:!1});console.log("🍉 ~ WechatLogin.vue:159 ~ startPolling ~ data:",e),0===e.code&&A(e)}catch(e){console.error("Polling error:",e),k()}},e)},A=e=>{switch(e.subcode){case"EXPIRED":case"FOLLOWED_CANCEL":h.value=!0,k();break;case"FOLLOWED_NO_USER":i("need-register",g.value);break;case"FOLLOWED_LOGIN_SUCCESS":k(!1),I(e.data)}},k=(e=!0)=>{e&&(g.value=""),ge({uniqueCode:""}),y&&(clearInterval(y),y=null)},S=()=>{C()},I=async e=>{if(e.result&&Y(e.result),!0===e.redirect){const t="CPA"===o.appId?"tgc-CPA":"tgc";ps.set(t,e.tgc,{expires:30})}if(!0===e.hasLogon)try{await it.confirm(o.isEn?"The account has already logged in elsewhere. Do you want to force login?":"该账号已在其他地方登录,是否强制登录?",o.isEn?"Tips":"提示",{confirmButtonText:o.isEn?"Confirm":"确定",cancelButtonText:o.isEn?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}),V()}catch{C()}else T(e.redirectPath)},V=async()=>{u.value=!0;try{const{data:e}=await ye({uniqueCode:g.value,appId:o.appId,redirectPath:o.path||"",kick:!0});if(console.log("🍉 ~ WechatLogin.vue:279 ~ reLoginWithKick ~ data:",e),0===e.code){if(Y(e.data.result),e.data.result?.improveComp)return void i("need-complete",e.data.result.improveComp);T(e.data.redirectPath)}}catch(e){Je.error(o.isEn?"Login failed":"登录失败")}finally{u.value=!1}},T=e=>{localStorage.setItem("jc-qrCode-login","wx"),k(),e&&Ts(e),i("success")};return a(()=>{C()}),U(()=>{k()}),(e,a)=>(l(),s("div",yc,[m((l(),s("div",vc,[d("div",{class:c(["qr-canvas-wrapper flex-center",{"qrcode-error-mask":h.value}])},[d("canvas",{ref_key:"qrCanvasRef",ref:r},null,512)],2),h.value?(l(),s("div",{key:0,class:"refresh-overlay flex-center",onClick:S},[a[0]||(a[0]=d("img",{src:"data:image/webp;base64,UklGRs4CAABXRUJQVlA4WAoAAAAQAAAAJwAAJwAAQUxQSFoBAAABN6KgbRtmp+3Gn/RDEBEEkzTVdowBQKcP3554FoBl23ba5llJyswNJ2VumGWofOY/p8qSit8R/Z8A+a8elYOpw8ta7XyzQK0aYSpXkxxr+l5TIvLMOMTaaw75atjrjVMg6apzYNuvnZH3q2Wxbl7NYR4Ddz6qB+/b4lxd8llHbmrIR018WxYu3QboXfHdMLae0xXZtvhGY+x52WHLcCHeNxRfOfR5Fu/tpdZaJ1mWZeOiA0zFL+w9j/I9NSffY5NUvmeVwTfp8PxNbrn9HRbs2zo8fU3Muq3K6EtK5JFtkzT6ilPmUrji+CvueSh64OULVMJJ0TamEq7JXBx7vAZTCVWXbcNlqBdm4nxFthPmGrPrJj2SvRBXUBdPNcTUvdQTXIu3eoP+gVt1hWlKyLaBQaNs275awvJIwlYeDaBH/f40BXQnkuCVq7HBmr5VI/naaP+iWj1bl98fVlA4IE4BAAAQBwCdASooACgAPi0ShkKhoQ42SgAMAWJZWxKQyHAkNc+PADbI89n6J94A3jAJQK0xA6Tk60mYtNspcySSE/tFIADM///yqf//Kgv//ywQt7g1bu7h+xw3tKfdFW3YSP2h0iF6VIn4CTXLv//vM//94Jv//ee+S0E0m6xnEgxdBDf7ewX/lL4BgZWe2EfgOrK0pMN4Qy5uWqWBS4KWWUfrCz0nMK/H/I4/+XhdD+65pGbyiKvih/6tn//ciDb/uimjajMDV4Q/Xe6/5j9xYKcn08xURQpu0wODf/+3SuKUFZLR0yHKFUmWQGuB/RhP/o3UFQW2JYdAdLNwvjre+S6H5X//i0Kc3jhiy9mLmUsuJ+4/5++fwdGZUbaTBUfk9QB9rjsVLVNwQW2lzccI98O08eePpfHRQKN1FzjT/cMehMc50hgx//o3l7EokAAA",alt:"refresh",class:"refresh-icon"},null,-1)),d("div",wc,v(t.isEn?"The QR code has expired":"二维码已过期"),1),p(E(at),{type:"primary",class:"jc:text-white",onClick:w(S,["stop"])},{default:B(()=>[x(v(t.isEn?"Rescan QR code":"重新扫码"),1)]),_:1})])):f("",!0),d("div",Cc,[a[1]||(a[1]=d("img",{src:"data:image/webp;base64,UklGRhACAABXRUJQVlA4WAoAAAAQAAAAGAAAFwAAQUxQSOcAAAABgINt27HlzZxs1+i945+yudmaXJMm27btmmzbtm094f2+L88RMQHoH0ivGDZ+dTufRGOhwhmw/QIfT5NlyDEEHdz1zdzA5sDmTZ4EKeWJp2may+JdpEray5o7HRnnPYCzy2e43uvNSQvW5CfhcwDY1eKWK4CX3WgRAt0NzG7T6At8vGkUw3FXXX8YGLkf9c+8rLBeOI2gxyD51juA6+5ZuFjaej6YvL3vEsEhxb5nuOicA8KHHlECg1QHMzfnukeCszhGAgY6hBCT+RTuvkMWUWQz7XsGgPs2OUSdS9Uv2N0tWOIT/l4AVlA4IAIBAACwBwCdASoZABgAPjESh0KiIQ39VgAQAYJbACdM5JkB+meFg2gDaAN0l4AD9QPSA/wHuJ/sl6KYX31WXITTIqQjhEf+VVEAAP0cZ9TkuKczs9Y1za4WaelqmDJ+pg5xRI8RGqa0Xf/vA/xc/Jt7352wODrO+GBNH/+k0H/0IZkEP/+9kflw8xfZOvuJnYDve0V1+ez//9tEgIWxjEjRen4x7s8w+Gha3PQxumTkBwxFTp+YlQXvZzWdZW3wRP0nsu895denVK5N8FE8Zg23a9118GTARL99uq+SY4/E8PeGs/GKL4ufe2EdSmq0ixJ9pxRZOAX/4XkoyRtaDa35BrgAAAA=",alt:"wechat"},null,-1)),d("span",null,v(t.isEn?"Scan to login/register":"微信扫码登录/注册JCtrans"),1)])])),[[E(We),u.value]])]))}}),[["__scopeId","data-v-4966d595"]]),Ac={name:"LoginTypeSwitcher",components:{ElRadioGroup:ot,ElRadioButton:nt},props:{modelValue:{type:String,default:"email"},showAccount:{type:Boolean,default:!1},showEmail:{type:Boolean,default:!0},showMobile:{type:Boolean,default:!0},isEn:{type:Boolean,default:!1}},emits:["update:modelValue","change"],methods:{handleChange(e){this.$emit("update:modelValue",e),this.$emit("change",e)}}},Ec={class:"switcher-content"},kc={class:"switcher-content"},xc={class:"switcher-content"};const Sc=/* @__PURE__ */dn(Ac,[["render",function(e,t,a,n,o,i){const r=V("el-radio-button"),p=V("el-radio-group");return l(),u(p,{class:"login-type-switcher","model-value":a.modelValue,onChange:i.handleChange},{default:B(()=>[a.showAccount?(l(),u(r,{key:0,value:"account"},{default:B(()=>[d("div",Ec,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"account"===a.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[0]||(t[0]=[d("path",{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"},null,-1)])],2)),d("span",null,v(a.isEn?"Password":"账号密码"),1)])]),_:1})):f("",!0),a.showEmail?(l(),u(r,{key:1,value:"email"},{default:B(()=>[d("div",kc,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"email"===a.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[1]||(t[1]=[d("path",{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"},null,-1)])],2)),d("span",null,v(a.isEn?"Email":"邮箱"),1)])]),_:1})):f("",!0),a.showMobile?(l(),u(r,{key:2,value:"mobile"},{default:B(()=>[d("div",xc,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"mobile"===a.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[2]||(t[2]=[d("path",{d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z"},null,-1)])],2)),d("span",null,v(a.isEn?"Cell Phone":"手机号"),1)])]),_:1})):f("",!0)]),_:1},8,["model-value","onChange"])}],["__scopeId","data-v-aea2f541"]]),Ic={class:"wechat-choose-type"},Bc={class:"choose-title"},Vc={class:"choose-nav"},Tc={class:"btn-container"},Pc={class:"btn-content"},Rc={class:"btn-content"},Nc=/* @__PURE__ */dn(/* @__PURE__ */o({__name:"WechatChooseType",props:{isEn:{type:Boolean}},emits:["toBind","toRegister"],setup(e,{emit:t}){const a=t,n=()=>{a("toBind")},o=()=>{a("toRegister")};return(t,a)=>(l(),s("div",Ic,[d("div",null,[d("div",Bc,v(e.isEn?"Please select whether you already have a JCtrans account":"请选择是否已有JCtrans账号"),1),d("div",Vc,v(e.isEn?"If you already have a JCtrans account, you can directly link it with WeChat. If you do not have a JCtrans account, please register first":"若已有JCtrans账号,可直接与微信绑定;若没有JCtrans账号,请先注册"),1),d("div",Tc,[p(E(at),{class:"choose-btn jc:mb-6 default-btn jc:outline-none!",onClick:o},{default:B(()=>[d("div",Pc,[a[0]||(a[0]=d("img",{class:"icon-account",src:"data:image/webp;base64,UklGRhgCAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSKIAAAABgFZbb9xIEATBUAyhEAqhDBIGNgOXQaEIgiAYwtfZtM3+LyImgP4d+1BAVqvCAx8OLsECo3CFAfMo0ODsecsz88SjeXD/vNQjedOzPgDCuqfl0bRNKsBiEa5APD+aTCWI2l0AnZ3ehTnKW+9dgIp/Kf146Aa2PM5egI8Ns66WwwOBq70JvmyE6jVsIPwIOpB4xuyMXU5jbhlnDF0lSm/03whWUDggUAEAAPALAJ0BKjAAMAA+LRKGQqGhDjduAAwBYlsAMgdwP4BoK/wA4aTvN+x2I4/APyq/oHuA/gHOJ7gD9XfMA6QDrYP0z9gD9APRQ/ZD4FP219gD9UARvMpbMuVN2542MibJh8RTb2jFdmX4AP7/8PzX//KRnpdaTTuezU2wfPVue6zvilNiLydYqgogCDf+z+cTn0sw++BUMUAXW/ykOXcyNB2xLlv/9baGU9jTlskvg+1Mv/puM3RR2VkkR8nzfym/nfxZ64t/3bWsauPme9EKHGYBBZv8u8jT/DUfv3hKs//3THxis4v6eWcTTUpo9W6e2PurHwS2B16ei/If+Ww23FLqmd3jWPwTwBTDBEJ3HBZfQftnPWpA9rY4f//0skE1+0YwOJB/my/FIk/GCZloGHd/7iN//8vNjd/zOhSoSRNP6Xtp1K0Qc6nr99ilYAAAAA==",alt:"register"},null,-1)),x(" "+v(e.isEn?"Create New Account":"注册新账号"),1)])]),_:1}),p(E(at),{type:"primary",class:"choose-btn submit-btn jc:outline-none!",onClick:n},{default:B(()=>[d("div",Rc,[a[1]||(a[1]=d("img",{class:"icon-account",src:"data:image/webp;base64,UklGRiQBAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSL8AAAABcFXbVtygAAdPSGKgDqIgMVAMgAIcxEdRAApQcJ0E3tD5LyLYuG0jSXKOaqvMPsL9Ha6xASWTFT5hMHmbKphYTJIwNRlAYFz0ZMB4PDiqHrB+XhpHMT4TIOtZOJhbp0OUOCcy1XDo75yrSk6UONkFJb71XIAWhxs/aFYm7qhkV5PvDmWYa1lGV2s4Wwd6OcM6RlE+dOaZZrpEXD5BoOr3d+sQWTfFkxAbhATAOF1DN6cKD1TD3cncipS2uz9DBwBWUDggPgAAAFADAJ0BKjAAMAA+JQ6FQqGHjAYAkS0gABSWHJn8435xRpEAAP7//k4XP//7dtNf5ihlI///6OQD//9v7AAA",alt:"login"},null,-1)),x(" "+v(e.isEn?"Bind Existing Account":"绑定已有账号"),1)])]),_:1})])])]))}}),[["__scopeId","data-v-d6500e67"]]),Dc="data:image/webp;base64,UklGRtgAAABXRUJQVlA4WAoAAAAQAAAAHwAAHwAAQUxQSG8AAAABcFXbVq2cCEQ4EYxABBtIhNvg0kAaEMEIJwoRiLB86/b5GxETYP9n6T1rGiyaBULjMJPEAvaaDOwkdgBWSRrAKH4rxsOTq3NzbfD0/Cr+eACzZk/XHl+Bluz5DlRTBnRTOuCSAmHSBlU0xlbzdwIAVlA4IEIAAABwAwCdASogACAAPjESjEYiENDKACADBLSAACWH58lev5ur/aAA/iw///2p6j//i/2//+H8FPIH///0cbN//9v7AAA=";function Uc(t={}){console.log("🍉 ~ useAuthLogin.ts:27 ~ useAuthLogin ~ options:",t);const{appId:a="ERA",isEn:n=!1}=t,o=e(!1),i=e(!1),r=e(null),s=e(!1),l=e=>{console.log("🍉 ~ useAuthLogin.ts:36 ~ executeRedirect ~ loginData:",e);const t=Z()||{},a=e.redirectPath||t.path||"/";e.result&&Y(e.result),console.log("🍉 Redirecting to:",a),Ts(a)},c=async e=>{const{loginType:i,loginForm:c={},captchaData:u={},isKick:p=!1,mobileUid:h,emailUid:f,areaCodeData:m=[],remember:g}=e;o.value=!0,p||(r.value=u);const y=Z()||{},v={appId:a,fromSys:a,kick:p,inviterInfo:y.empNo||void 0,redirectPath:y.path||"/",...y,...u};let w=we;if("account"===i)Object.assign(v,{type:"PASSWORD",username:c.username,password:yr.MD5(c.password).toString(),uniqueCode:""});else if("wechat"===i)Object.assign(v,{type:"WECHAT",uniqueCode:y.uniqueCode}),y.uniqueCode||v.uniqueCode||console.warn("WeChat login missing uniqueCode"),w=we;else{const e="mobile"===c.type,t=e?h:f;if(Object.assign(v,{type:e?"MOBILE":"EMAIL",account:e?c.phone:c.email,verificationCodeValue:c.code,verificationCodeUuid:t}),e){const e=m.find(e=>e.telCode===c.areaCode);v.areaCode=c.areaCode,v.areaCodeCountryId=e?.id}if(!v.verificationCodeUuid)return o.value=!1,void Je.error(n?"Please get the verification code first":"请先获取验证码");w=Ce}try{const{data:a}=await w(v);if(console.log("🍉 ~ useAuthLogin.ts:144 ~ handleAuthSubmit ~ res:",a),0===a.code){const i=a.data||{};if(!0===i.hasLogon&&!i.tgc)return void d(e);if(i.tgc){i.result&&Y(i.result),g&&ps.set("tgc",i.tgc,{expires:30,domain:ve()});const e=i.result?.improveComp;if(e)return s.value=!0,o.value=!1,void(t.onNeedComplete&&t.onNeedComplete(i));Je.success(n?"Login successful":"登录成功"),t.onSuccess?t.onSuccess(i):l(i)}else t.onSuccess&&t.onSuccess(i)}else Je.error(a.msg||(n?"Login failed":"登录失败"))}catch(C){console.error("Login Error:",C),Je.error(n?"Network Error":"网络请求异常")}finally{o.value=!1}},d=e=>{it.confirm(n?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",n?"Tips":"提示",{confirmButtonText:n?"Confirm":"确定",cancelButtonText:n?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{c({...e,isKick:!0})}).catch(()=>{o.value=!1})},u=async e=>{const{loginType:i,loginForm:r,captchaData:c,uniqueCode:d,isKick:u=!0,mobileUid:h,emailUid:f,areaCodeData:m=[]}=e;console.log("🍉 ~ useAuthLogin.ts:261 ~ handleBindSubmit ~ params:",e),o.value=!0;const g=Z()||{};let y,v={appId:a,uniqueCode:d,kick:u,code:c.code,uuid:c.uuid,redirectPath:g.path||"/",fromSys:a};if(console.log("🍉 ~ useAuthLogin.ts:279 ~ handleBindSubmit ~ payload:",v),"account"===i)y=be,Object.assign(v,{username:r.username,password:yr.MD5(r.password).toString(),rememberMe:r.remember||!1});else{y=Ae;const e="mobile"===r.type,t=e?h:f;if(Object.assign(v,{type:e?"MOBILE":"EMAIL",account:e?r.phone:r.email,verificationCodeValue:r.code,verificationCodeUuid:t,rememberMe:r.remember||!1}),e){const e=m.find(e=>e.telCode===r.areaCode);Object.assign(v,{areaCode:r.areaCode,areaCodeCountryId:e?.id})}if(!v.verificationCodeUuid)return o.value=!1,void Je.error(n?"Please get the verification code first":"请先获取验证码")}try{const{data:a}=await y(v);if(console.log("🍉 Bind Result:",a),0===a.code){const i=a.data||{};if(!0===i.hasLogon&&!i.tgc)return void p(e);if(i.tgc){i.result&&Y(i.result),ps.set("tgc",i.tgc,{expires:30,domain:ve()});const e=i.result?.improveComp;if(e)return s.value=!0,o.value=!1,void(t.onNeedComplete&&t.onNeedComplete(i));Je.success(n?"Linked and logged in successfully":"绑定并登录成功"),t.onSuccess?t.onSuccess(i):l(i)}else t.onSuccess&&t.onSuccess(i)}else Je.error(a.msg||(n?"Binding failed":"绑定失败"))}catch(w){console.error("Bind Error:",w),Je.error(n?"Network Error":"网络请求异常")}finally{o.value=!1}},p=e=>{it.confirm(n?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",n?"Tips":"提示",{confirmButtonText:n?"Confirm":"确定",cancelButtonText:n?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{u({...e,isKick:!0})}).catch(()=>{o.value=!1})};return{loading:o,captchaVisible:i,handleAuthSubmit:c,executeRedirect:l,loginNeedComplete:s,handleBindSubmit:u}}const Fc={class:"bind-wechat-title"},_c={class:"title"},Lc={class:"sub-title"},Mc={class:"register-bottom"},Oc=/* @__PURE__ */dn(/* @__PURE__ */o({__name:"WechatBindLogin",props:{isEn:{type:Boolean}},emits:["needComplete"],setup(a,{emit:n}){const o=a,i=n,{loading:r,captchaVisible:c,handleBindSubmit:h}=Uc({appId:"ERA",isEn:o.isEn,onNeedComplete:e=>{console.log("需要完善信息,暂不关闭弹窗"),i("needComplete",e)}}),m=e({type:"account",username:"",password:"",remember:!1,email:"",phone:"",areaCode:"",code:""}),w=e([]),C=e(),b=e(!1),A=e(!1),k=e({}),S=e(""),I=e(""),V=t(()=>m.value.type),T=t(()=>{const e={username:[{required:!0,trigger:"blur",message:o.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:o.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,a)=>{As(0,t,a,o.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>{xs(0,t,a,o.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>{Is(0,t,a,o.isEn)},trigger:"blur"}]};return"account"===V.value?{username:e.username,password:e.password}:"email"===V.value||"mobile"===V.value?{code:e.code,..."email"===m.value.type?{email:e.email}:{phone:e.phone}}:{}});async function P(e){if("mobile"==e&&0===w.value.length){const e=await pe();w.value=e.data.data.records}}function R(e){C.value.validateField(e,e=>{b.value=e})}function N(){C.value.validate(e=>{if(e)if("account"===V.value)c.value=!0;else{if(console.log("🍉 ~ WechatBindLogin.vue:316 ~ handleSubmit ~ verifyData:",k),!k.value||!k.value.uuid)return Je.error(o.isEn?"Please get code first":"请先获取验证码");D(k.value)}})}function D(e){c.value=!1;const t=(Z()||{}).uniqueCode||"";t?h({loginType:"account"===V.value?"account":"code",loginForm:m.value,captchaData:{...e},uniqueCode:t,mobileUid:S.value,emailUid:I.value,areaCodeData:w.value}):console.error("Missing uniqueCode for binding")}function U({captchaData:e,startTimer:t}){console.log("🍉 ~ WechatBindLogin.vue:353 ~ handleGetCode ~ captchaData:",e);const a="mobile"===m.value.type;k.value=e;const n={target:m.value.email||m.value.phone,uuid:e.uuid,code:e.code};a&&(n.areaCode=m.value.areaCode);const i=a?fe:de;t(),i(n).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(a?S.value=t:I.value=t,Je.success(o.isEn?"Verification code sent":"验证码已发送"))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")}return(e,t)=>(l(),s("div",null,[d("div",Fc,[d("div",_c,[t[11]||(t[11]=d("img",{class:"icon-auth-wechat",src:"data:image/webp;base64,UklGRkYDAABXRUJQVlA4WAoAAAAQAAAATwAATwAAQUxQSK0BAAABkJVtT55JrwQkRAISIqEOBgl1sDhoHVAHXQdIQEIkICH780ETOodzEBETgJ+MA3FKG8fvIaQiOm5lCy/j2vVx4RdxVdtKLwmH2pfwBmrqKbQeifr2bTUSdd/WIlH/HpcqOuxnyjJT9/0aqISFkg47AaCJGwDOgeaFZPQb/7dR/I9HSsuwjsuHapaXKRMaAZCOawBQJvoyMqN3PvqEypGrzsZFgvrLmShgXXYrjMDHLSLS6rGR3+ZUCVy7TtfklVz6Dq76XJIPe0gMh9oW8iAHIWpqLeSAbhdJ1L5Hh8ssB1HPTnZsJTjUV4IZxChFHUrartG5nf2TZju2EdQRAaifCgAe9GCG22QnHQoA7J8SAAw02wWxiPtIv4AgnyqAX6NmBxID1Am9S9ehlKqTwQ4kjxpkxj46gORJha6YPBCuR32FzQXxQYOswD7ng457heAj/8ndPmnYF6hwjaoqCUDglEspRAskn1Ml4WF1E/huCY/ZjZ1MT6eM9UNzufBGEocaXgFqZhdem412vJiqCb8JiJdM9f/OdwHg/a4i0soeQZeqvO4pi8bvBWD8PAwAVlA4IHIBAACQDQCdASpQAFAAPjESh0KiIQzPMmYQAYJYgDTVCv5F+Mf4gb4DJX+Sz7l/ANsR/t26P/QD/AegB1gH9L/gHoV9YB+tfoUf7T/efAf+sP68fAV+m//U1vlDvsJaoYWahGVgTNJjQto23T3wmPTWzB6ZzMk6AwAA/v7uqgr/9ZP//7blAnmnE6lioCaVp1+WnldB5HpBbYjxc1NG5XU54UvD9kf2w/pZ7/42ltzXYtGbK1//nqr8tjkze5eVKps78/9WExTMn4pKTe3c8mpsuj8YwNG+XmxN6qsxIT2EwKQHnE5z8J/+pe+1IL/r1o8YBWTv7H+OAb1dnyF/HIBfP7w3V0JsIK9k9luJE6Inls4/P8XLinjMj63/lB+fL9Mg/9VBqi1r084wLn/+c3RisrFoveLUv2I5xww1R/MwdnWNwJwQ8oKLyHlGl0b3UxrGhAtGoS5KzFv4B538wnEyq7d8a9J8x7Ua1ZythfCc5mNgAAAA",alt:""},null,-1)),x(" "+v(a.isEn?"Log in and link with WeChat":"登录并绑定微信"),1)]),d("div",Lc,v(a.isEn?"After linking, you can log in via WeChat scan, which is convenient and quick":"绑定后,可通过微信扫码登录,方便快捷"),1)]),p(E(Ye),{ref_key:"bindLoginFormRef",ref:C,model:m.value,rules:T.value,"validate-on-rule-change":!1,class:"wechat-bind-login-form-content"},{default:B(()=>[p(E(et),{prop:"type",class:"form-type"},{default:B(()=>[p(Sc,{modelValue:m.value.type,"onUpdate:modelValue":t[0]||(t[0]=e=>m.value.type=e),"is-en":a.isEn,"show-account":"",class:"jc:max-w-full!",onChange:P},null,8,["modelValue","is-en"])]),_:1}),"account"===V.value?(l(),s(g,{key:0},[p(E(et),{prop:"username",class:"form-user"},{default:B(()=>[p(yo,{modelValue:m.value.username,"onUpdate:modelValue":t[1]||(t[1]=e=>m.value.username=e),placeholder:a.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),p(E(et),{prop:"password",class:"password-item"},{default:B(()=>[p(yo,{modelValue:m.value.password,"onUpdate:modelValue":t[2]||(t[2]=e=>m.value.password=e),type:"password",class:"input-show-pass",placeholder:a.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"email"===V.value?(l(),u(E(et),{key:1,prop:"email"},{default:B(()=>[p(yo,{modelValue:m.value.email,"onUpdate:modelValue":t[3]||(t[3]=e=>m.value.email=e),placeholder:a.isEn?"Email Address":"邮箱地址",onBlur:t[4]||(t[4]=e=>R("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),u(E(et),{key:2,ref:"areaCodeCountryId",class:"tel"},{default:B(()=>[(l(),u(E(et),{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:B(()=>[p(yo,{modelValue:m.value.phone,"onUpdate:modelValue":t[7]||(t[7]=e=>m.value.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[8]||(t[8]=e=>R("phone")),maxlength:"15",disabled:A.value},{prefix:B(()=>[p(E(et),{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:B(()=>[p(E(Qe),{modelValue:m.value.areaCode,"onUpdate:modelValue":t[5]||(t[5]=e=>m.value.areaCode=e),placeholder:a.isEn?"Code":"区号",onChange:t[6]||(t[6]=e=>R("areaCode")),disabled:A.value,"popper-class":"jc-area-code-select-wrapper"},{default:B(()=>[(l(!0),s(g,null,y(w.value,e=>(l(),u(E(Ke),{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),p(E(Ke),{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1},512)),"email"===V.value||"mobile"===V.value?(l(),u(E(et),{key:3,prop:"code"},{default:B(()=>[p(Nr,{modelValue:m.value.code,"onUpdate:modelValue":t[9]||(t[9]=e=>m.value.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:b.value,"is-en":a.isEn,onSend:U},null,8,["modelValue","placeholder","ready","is-en"])]),_:1})):f("",!0),d("div",Mc,[p(E(at),{class:"submit-btn",onClick:N,loading:E(r)},{default:B(()=>[x(v(a.isEn?"Login and Link":"登录并绑定")+" ",1),t[12]||(t[12]=d("img",{style:{width:"16px",height:"16px","vertical-align":"middle"},src:Dc,alt:""},null,-1))]),_:1},8,["loading"])])]),_:1},8,["model","rules"]),p(Vr,{visible:E(c),"onUpdate:visible":t[10]||(t[10]=e=>j(c)?c.value=e:null),"is-en":a.isEn,onSuccess:D},null,8,["visible","is-en"])]))}}),[["__scopeId","data-v-0f920ee0"]]),jc={name:"CompleteInfoForm",components:{ElForm:Ye,ElFormItem:et,ElButton:at,ElSelect:Qe,ElOption:Ke,JcFloatInput:ko,CodeInput:Nr,JcFloatWrapper:cs,JcSearch:un,ChineseCompanySearch:co,GoogleInput:yo,JcVerifySlide:Vr,ApplyJoinBtn:Ns},props:{isEn:Boolean},emits:["success"],data(){return{isReady:!1,loading:!1,verifyVisible:!1,verifyData:{},codeReady:!1,mobileUid:"",emailUid:"",areaCodeData:[],hasResistCompany:!1,companyResistCn:!1,companyResistEn:!1,resistCompanyInfo:null,currentUserMobile:null,currentUserEmail:null,form:{city:"",cityId:"",countryId:"",companyName:"",nameCn:"",nameEn:"",sector:"Logistics",phone:"",areaCode:"+86",email:"",code:"",useKq:!1,kqCode:"",kqInfo:null},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,a)=>this.hasResistCompany?a():Ss(0,t,a,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>xs(0,t,a,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(e,t,a)=>As(0,t,a,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,this.isEn),trigger:"blur"}]}}},computed:{countryId(){return this.form.city?.raw?.country?.id||this.resistCompanyInfo?.countryId},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId;return[1].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},isShowMobileCode(){return!!this.isReady&&(this.currentCountryIsChina&&!this.currentUserMobile)},isShowEmailCode(){return!!this.isReady&&!this.currentUserEmail}},mounted(){this.getAreaCodeData(),this.findDict(),this.getUserPermsInfo()},methods:{getUserPermsInfo(){xe().then(e=>{console.log("🍉 ~ CompleteInfoForm.vue:462 ~ res:",e),this.currentUserMobile=e.data.data?.mobile,this.currentUserEmail=e.data.data?.email}).catch(()=>{this.currentUserMobile=null,this.currentUserEmail=null}).finally(()=>{this.isReady=!0})},handleCompanyExistStatus(e){e&&(this.companyResistCn=e.cnExists,this.companyResistEn=e.enExists,this.resistCompanyInfo=e.companyInfo)},handleChangeCompany(e){console.log("🍉 ~ RegisterForm.vue:570 ~ e:",e),this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.formRef.clearValidate("companyName")})},async getAreaCodeData(){const e=await pe();this.areaCodeData=e.data.data.records},findDict(){he({dictType:"cmc_company_industry_sector"}).then(e=>{const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))})},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id||e.raw?.city?.countryId||"",this.$nextTick(()=>{!this.hasResistCompany&&this.form.companyName&&this.$refs.formRef.validateField("companyName"),this.$refs.formRef.validateField("city")})},validateField(e){this.$refs.formRef.validateField(e,t=>{"phone"!==e&&"email"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){this.verifyData=e;const a={target:this.isShowMobileCode?this.form.phone:this.form.email,uuid:e.uuid,code:e.code},n=this.isShowMobileCode?fe:de;this.isShowMobileCode&&(a.areaCode=this.form.areaCode,a.areaCodeCountryId=this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id),t(),n(a).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(this.isShowMobileCode?this.mobileUid=t:this.emailUid=t,Je.success(this.isEn?"Code Sent":"验证码已发送"))})},handleSubmit(){this.$refs.formRef.validate(e=>{e&&(this.hasResistCompany?this.handleJoinSubmit():this.handleNewSubmit())})},handleNewSubmit(){this.loading=!0;const e={cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector,nameCn:this.currentCountryIsChina?this.form.companyName:"",nameEn:this.currentCountryIsChina?"":this.form.companyName,mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",path:window?.location.pathname||"/",...this.form.kqInfo};ke(e).then(e=>{0===e.data.code?(Je.success(this.isEn?"Success":"提交成功"),this.$emit("success",e.data.data)):Je.error(e.data.msg)}).finally(()=>{this.loading=!1})},handleJoinSubmit(){this.loading=!0;const e={compId:this.resistCompanyInfo.compId,nameCn:this.form.nameCn,nameEn:this.form.nameEn,industrySector:this.form.sector,areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,account:this.isShowMobileCode?this.form.phone:this.form.email,type:this.isShowMobileCode?"MOBILE":"EMAIL",mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",path:window?.location.pathname||"/"};Ee(e).then(e=>{if(0===e.data.code){if(e.data.data.redirect)try{Cookies.set("tgc",e.data.data.tgc,{expires:30});const t=this.getAuthSessionItems(),a=e.data.data.redirectPath||t.path||"/";resetAuthSessionItems(),Ts(a)}catch(t){}else this.loading=!1,Je.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");this.$emit("success",e.data.data)}else Je.error(e.data.msg)}).finally(()=>{this.loading=!1})}}},qc={class:"complete-info-container"},Hc={class:"complete-info-container_header"},zc={class:"complete-info-container_title"},Jc={class:"complete-info-container_tip-box"},Wc={class:"sector-section"},Qc={class:"sector-label"},Kc={class:"sector-group"},Gc=["onClick"],Xc={key:0,class:"icon-auth-checked"},Yc={class:"resist-company-info-card"},Zc={class:"card-header"},$c={class:"title-group"},ed={class:"tip-text"},td={class:"company-content"},ad={class:"company-name"},nd={class:"card-header"},od={class:"title-group"},id={class:"tip-text"},rd={class:"location-info"};const sd=/* @__PURE__ */dn(jc,[["render",function(e,t,a,n,o,i){const r=V("JcSearch"),h=V("JcFloatWrapper"),m=V("el-form-item"),w=V("ChineseCompanySearch"),C=V("ApplyJoinBtn"),b=V("JcFloatInput"),A=V("el-option"),E=V("el-select"),k=V("GoogleInput"),S=V("CodeInput"),I=V("el-button"),T=V("el-form");return l(),s("div",qc,[d("div",Hc,[d("div",zc,v(a.isEn?"Complete Your Information":"完善企业信息"),1),d("div",Jc,[t[15]||(t[15]=d("img",{src:"https://resources.jctrans.com/res/era/pc/img/icon_gantan.png",alt:""},null,-1)),d("span",null,v(a.isEn?"To provide you with better service, please complete the following enterprise information":"为了给您提供更好的服务,请完善以下企业信息"),1)])]),p(T,{ref:"formRef",model:o.form,rules:o.rules,class:"auth-form"},{default:B(()=>[o.hasResistCompany?(l(),s(g,{key:1},[d("div",Yc,[d("div",Zc,[d("div",$c,[d("span",ed,v(a.isEn?"Company name":"公司名称"),1)]),d("span",{class:"change-link",onClick:t[5]||(t[5]=e=>o.hasResistCompany=!1)},v(a.isEn?"Change":"修改"),1)]),d("div",td,[d("h4",ad,v(a.isEn?o.resistCompanyInfo.compNameEn||o.resistCompanyInfo.compNameCn:o.resistCompanyInfo.compNameCn||o.resistCompanyInfo.compNameEn),1)]),d("div",nd,[d("div",od,[d("span",id,v(a.isEn?"Location(City)":"所在地(城市)"),1)])]),d("div",rd,v(a.isEn?o.resistCompanyInfo.countryNameEn:o.resistCompanyInfo.countryNameCn)+" / "+v(a.isEn?o.resistCompanyInfo.cityNameEn:o.resistCompanyInfo.cityNameCn),1)]),p(m,{prop:i.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:B(()=>[p(b,{modelValue:o.form[i.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[6]||(t[6]=e=>o.form[i.currentCountryIsChina?"nameCn":"nameEn"]=e),label:i.currentCountryIsChina?a.isEn?"Your Full Name in Chinese":"您的中文名称":a.isEn?"Your Full Name in English":"您的名称",placeholder:a.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:B(()=>[...t[18]||(t[18]=[d("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[p(m,{prop:"city"},{default:B(()=>[p(h,{label:a.isEn?"Company Location (City)":"公司所在城市","has-value":!(!o.form.city||!o.form.city.id)},{default:B(()=>[p(r,{modelValue:o.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>o.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],lang:a.isEn?"en":"zh-CN",placeholder:a.isEn?"Location(City)":"请输入公司所在城市",onSelect:i.handleSelectCity},{prefix:B(()=>[...t[16]||(t[16]=[d("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","lang","placeholder","onSelect"])]),_:1},8,["label","has-value"])]),_:1}),p(m,{prop:"companyName"},{default:B(()=>[p(h,{label:i.currentCompanyLabel},{default:B(()=>[p(w,{class:"jc:my-0! search-company-item","company-name":o.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>o.form.companyName=e),useKq:o.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>o.form.useKq=e),kqCode:o.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>o.form.kqCode=e),kqInfo:o.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>o.form.kqInfo=e),lang:a.isEn?"en":"zh-CN","country-id":i.countryId||null,city:o.form.city,"onUpdate:existStatus":i.handleCompanyExistStatus,onChange:i.handleChangeCompany},{prefix:B(()=>[...t[17]||(t[17]=[d("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","lang","country-id","city","onUpdate:existStatus","onChange"])]),_:1},8,["label"])]),_:1}),o.companyResistCn||o.companyResistEn?(l(),u(C,{key:0,onApplyJoin:i.handleApplyJoinClick},null,8,["onApplyJoin"])):f("",!0),d("div",Wc,[d("p",Qc,v(a.isEn?"Industry Sector":"行业类型"),1),d("div",Kc,[(l(!0),s(g,null,y(o.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:o.form.sector===e.value}]),onClick:t=>o.form.sector=e.value},[x(v(a.isEn?e.en:e.cn)+" ",1),o.form.sector===e.value?(l(),s("i",Xc)):f("",!0)],10,Gc))),128))])])],64)),i.isShowMobileCode?(l(),s(g,{key:2},[p(m,{ref:"areaCodeCountryId",class:"phone-form-item"},{default:B(()=>[p(m,{prop:"phone",ref:"phone",class:"tel-mobile","inline-message":!0},{default:B(()=>[p(k,{modelValue:o.form.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>o.form.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15"},{prefix:B(()=>[t[19]||(t[19]=d("i",{class:"icon-auth-phone"},null,-1)),p(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:B(()=>[p(E,{modelValue:o.form.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>o.form.areaCode=e),placeholder:a.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),"popper-class":"jc-area-code-select-wrapper"},{default:B(()=>[(l(!0),s(g,null,y(o.areaCodeData,e=>(l(),u(A,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1})]),_:1},8,["modelValue","placeholder","label"])]),_:1},512)]),_:1},512),p(m,{prop:"code"},{default:B(()=>[p(S,{modelValue:o.form.code,"onUpdate:modelValue":t[11]||(t[11]=e=>o.form.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:o.codeReady,"is-en":a.isEn,"show-icon":"","form-type-color":"4",onSend:i.handleGetCode},{prefix:B(()=>[...t[20]||(t[20]=[d("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),i.isShowEmailCode?(l(),s(g,{key:3},[p(m,{prop:"email",class:"email-form-item"},{default:B(()=>[p(b,{modelValue:o.form.email,"onUpdate:modelValue":t[12]||(t[12]=e=>o.form.email=e),label:a.isEn?"Business Email Address":"企业邮箱",placeholder:a.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[13]||(t[13]=e=>i.validateField("email"))},{prefix:B(()=>[...t[21]||(t[21]=[d("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),p(m,{prop:"code"},{default:B(()=>[p(S,{modelValue:o.form.code,"onUpdate:modelValue":t[14]||(t[14]=e=>o.form.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:o.codeReady,"is-en":a.isEn,"show-icon":"","form-type-color":"4",onSend:i.handleGetCode},{prefix:B(()=>[...t[22]||(t[22]=[d("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),p(I,{class:"submit-btn register-btn register-btn-is-active",loading:o.loading,onClick:i.handleSubmit},{default:B(()=>[x(v(a.isEn?"Submit":"完成并进入"),1)]),_:1},8,["loading","onClick"])]),_:1},8,["model","rules"])])}],["__scopeId","data-v-befd9149"]]);const ld={class:"auth-footer-box"},cd=/* @__PURE__ */dn(/* @__PURE__ */o({__name:"FooterBox",props:{label:{type:String,default:""},subLabel:{type:String,default:""}},emits:["handleClick"],setup(e,{emit:t}){const a=t,n=()=>{a("handleClick")};return(t,a)=>(l(),s("div",ld,[x(v(e.label)+" ",1),d("span",{class:"action-text",onClick:w(n,["stop"])},[x(v(e.subLabel)+" ",1),a[0]||(a[0]=d("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[d("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])]))}}),[["__scopeId","data-v-de818a5b"]]),dd={class:"forget-password-container"},ud={class:"forget-box"},pd={class:"header-title"},hd={key:0,class:"kefu-wrapper"},fd={class:"kefu-text"},md={key:1,class:"form-wrapper"},gd={key:0},yd={key:1},vd={class:"tab-switcher"},wd={class:"default-info"},Cd={class:"title"},bd={class:"user-value"},Ad=/* @__PURE__ */dn(/* @__PURE__ */o({__name:"ForgetPassword",props:["isEn"],emits:["to-login"],setup(t,{emit:a}){const n=t,o=a,{activeStep:i,activeTab:r,loading:u,verifyVisible:h,formA:m,formB:g,userData:y,disabledTabs:w,showCustomerService:C,codeCountdown:b,handleTriggerVerify:A,handleVerifySuccess:k,handleSendCodeVerifySuccess:S,handleSubmitReset:V,restFormB:T}=function(t){const a=e(1),n=e(!1),o=e(!1),i=e(),r=I({userName:""}),s=e({}),l=e(!1),c=e("email"),d=I({email:!1,mobile:!1}),u=I({code:"",password:"",confirmPassword:""}),p=e(""),h=e(!1),f=I({mobile:!1,email:!1}),m=async e=>{n.value=!0;try{const n=await Be({account:r.userName,...e});if(n.data.data?.exists){s.value=n.data.data;const e=!!s.value.email,t=!!s.value.mobile;e||t?(l.value=!1,a.value=2,e?(c.value="email",d.email=!1,d.mobile=!t):(c.value="mobile",d.mobile=!1,d.email=!0)):l.value=!0}else Je.error(t.isEn?"Account does not exist":"账号不存在")}catch(o){console.error(o)}finally{n.value=!1}},g=async(e,a)=>{console.log("🍓🍓 ~ useForgetPassword.ts:120 ~ sendVerifyCode ~ captchaData:",e);try{i.value=e;const{data:n}=await Ie({account:s.value.account,target:c.value,...e});console.log("🍉 ~ useForgetPassword.ts:127 ~ sendVerifyCode ~ res:",n),0===n.code&&(Je.success(t.isEn?"Verification code sent":"验证码已发送"),p.value=n.data.verifyCode,a(),"mobile"===c.value?f.mobile=!0:f.email=!0)}catch(n){console.error(n)}};return{activeStep:a,activeTab:c,loading:n,verifyVisible:o,formA:r,formB:u,userData:s,disabledTabs:d,showCustomerService:l,codeCountdown:f,codeReady:h,handleTriggerVerify:()=>{o.value=!0},handleVerifySuccess:e=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleVerifySuccess ~ captchaData:",e),o.value=!1,console.log("🍉 ~ useForgetPassword.ts:53 ~ handleVerifySuccess ~ ctiveStep.value:",a.value),1===a.value&&m(e)},handleSendCodeVerifySuccess:({captchaData:e,startTimer:t})=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleSendCodeVerifySuccess ~ captchaData:",e),2===a.value&&g(e,t)},handleSubmitReset:async()=>{if(i.value?.uuid){n.value=!0;try{const e={id:s.value.id,account:s.value.account,codeId:p.value,codeValue:u.code,password:yr.MD5(u.password).toString(),...i.value},{data:a}=await Se(e);return 0===a.code?(Je.success(t.isEn?"Password reset successfully":"密码重置成功"),!0):(Je.error(a.msg),!1)}catch(e){return console.error(e),!1}finally{n.value=!1}}else Je.info(t.isEn?"Please get the verification code first":"请先获取验证码")},restFormB:()=>{u.code="",u.password="",u.confirmPassword="",p.value="",h.value=!1,f.mobile=!1,f.email=!1}}}({isEn:n.isEn}),P=e(),R=e(),N=(e,t,a)=>{""===t?a(new Error(n.isEn?"Please input the password again":"请再次输入密码")):t!==g.password?a(new Error(n.isEn?"Two inputs don't match!":"两次输入密码不一致!")):a()},D={userName:[{required:!0,message:n.isEn?"Please enter username":"请输入账号",trigger:"blur"}]},U={code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,n.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,a)=>ks(0,t,a,n.isEn),trigger:"blur"},{validator:N,trigger:"blur"}],confirmPassword:[{required:!0,validator:(e,t,a)=>ks(0,t,a,n.isEn),trigger:"blur"},{validator:N,trigger:"blur"}]},F=()=>{P.value.validate(e=>{e&&A()})},_=async()=>{R.value&&await R.value.validate(async e=>{if(e){await V()&&o("to-login")}})},L=e=>{e&&w[e]||(r.value=e||r.value,T())};return(e,a)=>(l(),s("div",dd,[d("div",ud,[d("div",pd,[d("h1",null,v(t.isEn?"Reset Password":"重置密码"),1)]),E(C)?(l(),s("div",hd,[a[8]||(a[8]=d("img",{src:"data:image/webp;base64,UklGRsRFAABXRUJQVlA4WAoAAAAQAAAAfwIA3wEAQUxQSLkLAAABFMVt20a2sv/U6Wm0/4iYAH3QsQAZj5Skpeqc1H6r0r4PNiInDqR6gg0QUQ20fqiT2bwp+VTtHH8POAbt57zXh2N0nHFNdXEEirStD0qrtrdupA+CIBhCIQhCIASCGdQMGgaGkGEgCIFgCIagH83cZ9fyt5dExARQsrW3iiT5CFMiHfgYkyKFNaw19GO7PavTG613od8aRcQE0HX/P27kCLYFYzRrWGt4R5pflTvMnU7tXt46AesczhPoCawEaZmjVq6aVcqZbk+p3Ut9EM0DGHyCf6GDkpcDE6wiYgJkxbZdNxIPIbgMLgKFgBCkERiB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IK+u+D8xH40nAwWYn++Jo3XY5+D6t1FIG2uKBI+KI3eloW+N8XVYovWpUTwlOItbmGZC8GS00lHfcbdTaWhbTwC8UqFBWNZXsQkv3QFpQpU8JSUpQmu5qrZ9zKfM7ZJhH4PstsmmIUOOpmh/v4IzCB2E38hTPZcVNRe0yb4zH5FoIjyqOW9mnRBIF+c7ebGfwkxVqVFHAAKZaLq0f5A5fg8JvpZtrzxXb8DKhOO4tGeWRn/pdApG2RVIVdUmcwpqzlDEInDeEM1fdc6Kf0tlvlt85k8uSCJECa1NJbfThRmnkPdxNW73UqDZjTTjg1cc5/xAio3nrqea6y7nePIPbAD4xQiYRrRJOJf2TX5rVRRFi/auoEHDR8rSRFQGYsBDWjSFA+0anMpYYevDOVK/B0m27pI5W/B2Fh4kf50Yo5x8pu/Oc5pMH5gfHRGqPl1yECC0d/6Hcw3+LYJnc3NgqjlT/otdhdVZOgbE/MCv2kR9RHZU2zZ0fJCmsqeSKpGFNOlwtYf4MsTPazDC29KQaeaqjeWoJxOBVkwiLT6DY8uYm3EaZ9jUhSxFgNt+KLB9uwDpJ1NpOl5fx2X0+df/t4vPShoAQCGIY4Y9n+Wx39CEAAAACEn//+4e+kMk8wQRCCl4Sj1tWs4IV3VDIWkKhr20cMBeMCQv7DaL/6Q5/q5N1V/T1FqcBhJpYbsy3AWdy3C/vW0pBzMcoHH8IB9KhCDVVQopf5eE4DMA/HlaJmN6xKX7k6AAAAAAAAAAAAAA",class:"kefu-img"},null,-1)),d("p",fd,v(t.isEn?"The current account does not have a phone number and email, and cannot be verified. Please contact customer service directly":"当前账号没有手机号和邮箱,无法验证,请直接联系客服。"),1),d("div",null,v(t.isEn?"Customer Service":"联系客服"),1)])):(l(),s("div",md,[1===E(i)?(l(),s("div",gd,[p(E(Ye),{ref_key:"formARef",ref:P,model:E(m),rules:D},{default:B(()=>[p(E(et),{prop:"userName",class:"jc:mb-5!"},{default:B(()=>[p(yo,{modelValue:E(m).userName,"onUpdate:modelValue":a[0]||(a[0]=e=>E(m).userName=e),placeholder:t.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),p(E(at),{type:"primary",class:"submit-btn",loading:E(u),onClick:F},{default:B(()=>[x(v(t.isEn?"Next":"下一步"),1)]),_:1},8,["loading"])]),_:1},8,["model"])])):f("",!0),2===E(i)?(l(),s("div",yd,[d("div",vd,[d("div",{class:c(["tab-item",{active:"email"===E(r),disabled:E(w).email}]),onClick:a[1]||(a[1]=e=>L("email"))},[a[9]||(a[9]=d("svg",{t:"1767855712095",class:"icon-svg",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9362","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},[d("path",{fill:"currentColor",d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z","p-id":"9363"})],-1)),x(" "+v(t.isEn?"Email Verify":"邮箱验证"),1)],2),d("div",{class:c(["tab-item",{active:"mobile"===E(r),disabled:E(w).mobile}]),onClick:a[2]||(a[2]=e=>L("mobile"))},[a[10]||(a[10]=d("svg",{t:"1767855760413",class:"icon-svg",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9516","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},[d("path",{fill:"currentcolor",d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z","p-id":"9517"})],-1)),x(" "+v(t.isEn?"Mobile Verify":"手机验证"),1)],2)]),p(E(Ye),{ref_key:"formBRef",ref:R,model:E(g),rules:U},{default:B(()=>[p(E(et),{class:"info-item"},{default:B(()=>[d("p",wd,[d("span",Cd,v("email"===E(r)?t.isEn?"Email":"邮箱":t.isEn?"Mobile":"手机号"),1),d("span",bd,v("email"===E(r)?E(y).email:E(y).mobile),1)])]),_:1}),p(E(et),{prop:"code"},{default:B(()=>[p(Nr,{"show-icon":"",modelValue:E(g).code,"onUpdate:modelValue":a[3]||(a[3]=e=>E(g).code=e),placeholder:t.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:!0,"is-en":t.isEn,"custom-countdown":"email"===E(r)?E(b).email:E(b).mobile,onSend:E(S)},null,8,["modelValue","placeholder","is-en","custom-countdown","onSend"])]),_:1}),p(E(et),{prop:"password"},{default:B(()=>[p(ko,{modelValue:E(g).password,"onUpdate:modelValue":a[4]||(a[4]=e=>E(g).password=e),type:"password","show-password":"",class:"input-show-pass",label:t.isEn?"Password":"密码",placeholder:t.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},{prefix:B(()=>[...a[11]||(a[11]=[d("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),p(E(et),{prop:"confirmPassword"},{default:B(()=>[p(ko,{modelValue:E(g).confirmPassword,"onUpdate:modelValue":a[5]||(a[5]=e=>E(g).confirmPassword=e),type:"password","show-password":"",class:"input-show-pass",label:t.isEn?"Confirm Password":"确认密码",placeholder:t.isEn?"Enter password again":"请再次输入密码"},{prefix:B(()=>[...a[12]||(a[12]=[d("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),p(E(at),{type:"primary",class:"submit-btn",loading:E(u),onClick:_},{default:B(()=>[x(v(t.isEn?"Confirm":"确认修改"),1)]),_:1},8,["loading"])]),_:1},8,["model"])])):f("",!0)]))]),p(cd,{label:t.isEn?"Back to":"返回","sub-label":t.isEn?"log in":"登录",onHandleClick:a[6]||(a[6]=e=>o("to-login")),style:{margin:"12px -16px -16px"}},null,8,["label","sub-label"]),p(Vr,{visible:E(h),"onUpdate:visible":a[7]||(a[7]=e=>j(h)?h.value=e:null),"is-en":t.isEn,onSuccess:E(k)},null,8,["visible","is-en","onSuccess"])]))}}),[["__scopeId","data-v-9313f14c"]]),Ed={class:"bind-container"},kd={class:"bind-title"},xd={key:0,class:"user-list"},Sd=["onClick"],Id={class:"bind-user-card__right"},Bd={class:"bind-user-card__right__title"},Vd={class:"bind-user-card__right__desc"},Td={key:0,class:"bind-user-card__right__info"},Pd={key:1,class:"bind-user-card__right__info"},Rd={class:"bind-user-card__btn"},Nd={key:1,class:"bind-form-content"},Dd={class:"current-bind-info"},Ud={class:"highlight"},Fd={class:"tel-areacode"},_d={class:"register-bottom"},Ld=/* @__PURE__ */dn(/* @__PURE__ */o({__name:"ThirdBindLogin",props:{isEn:{type:Boolean,default:!1},bindList:{type:Array,default:()=>[]}},setup(a){const n=a,o=e(!1),i=e(null),c=t(()=>i.value?i.value:1===n.bindList.length?n.bindList[0]:null),h=e(),m=e({type:"account",username:"",password:"",email:"",phone:"",areaCode:"+86",code:""}),C=e([]),b=e(!0),A=e(!1),k=e(""),S=e(""),I=e({});let V=null;r(c,e=>{e&&(m.value.username=e.account||"",m.value.email=e.email||"",m.value.phone=e.mobile||"",console.log("🍉 ~ ThirdBindLogin.vue:290 ~ loginForm:",m),e.account?m.value.type="account":e.email?m.value.type="email":m.value.type="mobile",e.mobile&&0===C.value.length&&pe().then(e=>C.value=e.data.data.records))},{immediate:!0});const T=t(()=>{const e={username:[{required:!0,trigger:"blur",message:n.isEn?"Enter Username":"请输入账号"}],password:[{required:!0,trigger:"blur",message:n.isEn?"Enter Password":"请输入密码"}],email:[{required:!0,validator:(e,t,a)=>{As(0,t,a,n.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>{xs(0,t,a,n.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,n.isEn),trigger:"blur"}]};return"account"===m.value.type?{username:e.username,password:e.password}:{code:e.code,..."email"===m.value.type?{email:e.email}:{phone:e.phone}}}),P=e=>{i.value=e},R=async e=>{if(h.value?.clearValidate(),"mobile"==e&&0===C.value.length){const e=await pe();C.value=e.data.data.records}},N=e=>{h.value?.validateField(e,e=>{b.value=e})},D=({captchaData:e,startTimer:t})=>{I.value=e,V=t,U(e)},U=e=>{const t="mobile"===m.value.type,a={target:t?m.value.phone:m.value.email,uuid:e.uuid,code:e.code};t&&(a.areaCode=m.value.areaCode);const o=t?fe:de;V&&V(),o(a).then(e=>{const a=e.data.data?.verifyCode||e.data.verifyCode;0!==e.data.code&&200!==e.data.code||(t?k.value=a:S.value=a,Je.success(n.isEn?"Code sent":"验证码已发送"))}).catch(console.error)},F=()=>{h.value?.validate(e=>{if(e)if("account"===m.value.type)A.value=!0;else{if(!k.value&&!S.value)return Je.error(n.isEn?"Please get code first":"请先获取验证码");L(I.value)}})},_=e=>{A.value=!1,L(e)},L=e=>{o.value=!0;const t=vs(),a=Z(),i={thirdPartyType:t?.thirdPartyType,thirdPartyId:t?.thirdPartyId,thirdPartyEmail:t?.thirdPartyEmail,thirdPartyUserName:t?.thirdPartyUserName,appId:"ERA",kick:!0,userId:c.value.userId,activityCode:a?.activityCode||"",referenceUserId:a?.referenceUserId||""};let r;if("account"===m.value.type)r=Ve({...i,account:m.value.username,password:yr.MD5(m.value.password).toString(),verificationCodeUuid:e.uuid,verificationCodeValue:e.code,...e});else{const t="mobile"===m.value.type;r=Te({...i,type:t?"MOBILE":"EMAIL",account:t?m.value.phone:m.value.email,verificationCodeUuid:t?k.value:S.value,verificationCodeValue:m.value.code,...e})}r.then(e=>{if(console.log("🍉 ~ ThirdBindLogin.vue:483 ~ doBindRequest ~ res:",e),0!==e.data.code)return Je.error(e.data.msg||(n.isEn?"Login failed":"登录失败"));if(e.data.data){console.log("🍉 ~ ThirdBindLogin.vue:489 ~ doBindRequest ~ res.data.data:",e.data.data);const t=e.data.data;return t.tgc&&ps.set("tgc",t.tgc,{expires:30}),t.result&&Y(t.result),void(t.redirectPath&&Ts(t.redirectPath))}"USER_HAS_OTHER_BIND"!==e.data.subCode?(e.data.result&&Y(e.data.result),e.data.tgc&&ps.set("tgc",e.data.tgc,{expires:30}),e.data.redirectPath&&Ts(e.data.redirectPath)):Je.error(n.isEn?"Bound to other user":"该账号已绑定其他用户")}).finally(()=>{o.value=!1})};return(e,t)=>(l(),s("div",Ed,[d("div",kd,[d("div",null,v(c.value?a.isEn?"Log in and link":"绑定并登录":a.isEn?"Select account to link":"请选择要关联的账号"),1),c.value&&a.bindList.length>1?(l(),s("div",{key:0,class:"back-btn",onClick:t[0]||(t[0]=e=>i.value=null)},v(a.isEn?"< Back":"< 返回选择"),1)):f("",!0)]),c.value?(l(),s("div",Nd,[d("div",Dd,[d("span",null,v(a.isEn?"Binding Account:":"正在绑定账号:"),1),d("span",Ud,v(c.value.account||c.value.email||c.value.mobile),1)]),p(E(Ye),{ref_key:"bindLoginFormRef",ref:h,model:m.value,rules:T.value,"validate-on-rule-change":!1,class:"third-bind-login-form-content"},{default:B(()=>[p(E(et),{prop:"type",class:"form-type"},{default:B(()=>[p(Sc,{modelValue:m.value.type,"onUpdate:modelValue":t[1]||(t[1]=e=>m.value.type=e),"is-en":a.isEn,"show-account":"","show-email":!!m.value.email&&"1"===c.value.emailValidFlag,"show-mobile":!!m.value.phone&&"1"===c.value.mobileValidFlag,class:"jc:max-w-full!",onChange:R},null,8,["modelValue","is-en","show-email","show-mobile"])]),_:1}),"account"===m.value.type?(l(),s(g,{key:0},[p(E(et),{prop:"username",class:"form-user"},{default:B(()=>[p(yo,{modelValue:m.value.username,"onUpdate:modelValue":t[2]||(t[2]=e=>m.value.username=e),disabled:"",placeholder:a.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),p(E(et),{prop:"password",class:"password-item"},{default:B(()=>[p(yo,{modelValue:m.value.password,"onUpdate:modelValue":t[3]||(t[3]=e=>m.value.password=e),type:"password",class:"input-show-pass",placeholder:a.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"email"===m.value.type?(l(),u(E(et),{key:1,prop:"email"},{default:B(()=>[p(yo,{modelValue:m.value.email,"onUpdate:modelValue":t[4]||(t[4]=e=>m.value.email=e),disabled:"",placeholder:a.isEn?"Email Address":"邮箱地址",onBlur:t[5]||(t[5]=e=>N("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),u(E(et),{key:2,ref:"areaCodeCountryId",class:"tel"},{default:B(()=>[p(E(et),{prop:"phone",ref:"phone",class:"tel-mobile","inline-message":!0},{default:B(()=>[p(yo,{modelValue:m.value.phone,"onUpdate:modelValue":t[6]||(t[6]=e=>m.value.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",disabled:"",autocomplete:"off",onBlur:t[7]||(t[7]=e=>N("phone")),maxlength:"15"},{prefix:B(()=>[d("div",Fd,v(m.value.areaCode),1)]),_:1},8,["modelValue","placeholder","label"])]),_:1},512)]),_:1},512)),"email"===m.value.type||"mobile"===m.value.type?(l(),u(E(et),{key:3,prop:"code"},{default:B(()=>[p(Nr,{modelValue:m.value.code,"onUpdate:modelValue":t[8]||(t[8]=e=>m.value.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:b.value,"is-en":a.isEn,onSend:D},null,8,["modelValue","placeholder","ready","is-en"])]),_:1})):f("",!0),d("div",_d,[p(E(at),{class:"submit-btn",onClick:F,loading:o.value},{default:B(()=>[x(v(a.isEn?"Login and Link":"登录并绑定")+" ",1),t[13]||(t[13]=d("img",{style:{width:"16px",height:"16px","vertical-align":"middle","margin-left":"4px"},src:Dc,alt:""},null,-1))]),_:1},8,["loading"])])]),_:1},8,["model","rules"])])):(l(),s("div",xd,[(l(!0),s(g,null,y(a.bindList,(e,n)=>(l(),s("div",{class:"bind-user-card",key:n,onClick:t=>P(e)},[t[12]||(t[12]=d("div",{class:"bind-user-card__left"},[d("div",{class:"account-icon"})],-1)),d("div",Id,[d("div",Bd,v(a.isEn?e.userNameEn||e.userNameCn:e.userNameCn||e.userNameEn),1),d("div",Vd,v(a.isEn?e.compNameEn||e.compNameCn:e.compNameEn||e.compNameEn),1),e.email?(l(),s("div",Td,[t[10]||(t[10]=d("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855712095'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9362'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20fill='currentcolor'%20d='M113.242353%20250.217412l356.352%20356.412235a60.235294%2060.235294%200%200%200%2080.655059%204.156235l4.577882-4.156235%20356.111059-356.171294c1.204706%204.397176%201.987765%208.914824%202.409412%2013.552941l0.240941%206.987294v481.882353c0%2042.345412-32.768%2077.101176-74.270118%2080.112941l-6.023529%200.240942H190.765176a80.293647%2080.293647%200%200%201-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824%200.421647-9.456941%201.204706-14.034823l1.505883-6.746353z%20m720.052706-59.512471c4.818824%200%209.637647%200.421647%2014.215529%201.204706l6.866824%201.566118-342.136471%20342.13647-342.256941-342.13647c4.397176-1.204706%209.035294-2.048%2013.673412-2.409412l7.107764-0.361412h642.529883z'%20p-id='9363'%3e%3c/path%3e%3c/svg%3e"},null,-1)),x(" "+v(e.email),1)])):f("",!0),e.mobile?(l(),s("div",Pd,[t[11]||(t[11]=d("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855760413'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9516'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M694.874353%20918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235%2064.271059-173.778824%20142.336-207.209412a59.030588%2059.030588%200%200%201%2058.006588%206.324706c64.210824%2046.863059%20108.604235%20117.639529%20146.672941%20173.357176%2017.227294%2025.178353%2013.071059%2059.512471-10.24%2079.75153L363.52%20439.717647a19.275294%2019.275294%200%200%200-5.722353%2024.696471c17.709176%2032.346353%2049.332706%2080.353882%2085.473882%20116.495058%2036.141176%2036.141176%2086.437647%2069.752471%20120.952471%2089.509648a19.395765%2019.395765%200%200%200%2025.840941-6.445177l50.959059-77.703529c19.516235-25.961412%2056.018824-31.623529%2082.582588-13.251765%2056.500706%2039.092706%20122.458353%2082.642824%20170.706824%20144.444235a59.030588%2059.030588%200%200%201%207.589647%2059.632941c-33.611294%2078.426353-118.663529%20145.167059-207.088941%20141.914353z'%20p-id='9517'%3e%3c/path%3e%3c/svg%3e"},null,-1)),x(" "+v(e.mobile),1)])):f("",!0)]),d("div",Rd,[p(E(at),{type:"primary",size:"small",onClick:w(t=>P(e),["stop"])},{default:B(()=>[x(v(a.isEn?"Select":"选择"),1)]),_:1},8,["onClick"])])],8,Sd))),128))])),p(Vr,{visible:A.value,"onUpdate:visible":t[9]||(t[9]=e=>A.value=e),"is-en":a.isEn,onSuccess:_},null,8,["visible","is-en"])]))}}),[["__scopeId","data-v-2d697707"]]),Md={name:"RegisterForm",components:{ElDialog:Xe,ElForm:Ye,ElFormItem:et,ElInput:Ge,ElButton:at,ElCheckbox:tt,ElSelect:Qe,ElOption:Ke,ElRadioGroup:ot,ElRadioButton:nt,JcFloatInput:ko,CodeInput:Nr,JcFloatWrapper:cs,JcSearch:un,ChineseCompanySearch:co,GoogleInput:yo,ApplyJoinBtn:Ns},props:{isEn:Boolean},emits:["bind-third-party","register","register-success","need-complete"],computed:{isAgree(){return this.form.agree},countryId(){return this.form.city?.raw?.country?.id},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId||this.resistCompanyInfo?.countryId;return[1].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},showEmailBindBtn(){return!this.currentCountryIsChina&&this.thirdPartyEmailVerifyList.length>0},showMobileBindBtn(){return this.currentCountryIsChina&&this.thirdPartyMobileVerifyList.length>0}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:"",cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,a)=>Ss(0,t,a,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(e,t,a)=>async function(e,t,a,n=!0,o){if(console.log("🍉 ~ constant.ts:106 ~ validateThirdPartyEmail ~ context:",o),null==t||""===t)a(new Error(n?"Please enter a valid business email address":"请输入正确的公司邮箱"));else if(/[\u4e00-\u9fa5]+/.test(t))a(new Error(n?"Please enter a valid business email address":"请输入正确的公司邮箱"));else try{const e=await ae({email:t});console.log("🍉 ~ constant.ts:129 ~ validateThirdPartyEmail ~ res:",e),e.data.data&&0!==e.data.data.records.length?(ws(e.data.data.records),o.thirdPartyEmailVerifyList=e.data.data.records,a(new Error(n?"This email has been registered":"邮箱已注册"))):(ws([]),o.thirdPartyEmailVerifyList=[],a())}catch(i){a(new Error(n?"This email has been registered":"邮箱已注册"))}}(0,t,a,this.isEn,this),trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>function(e,t,a,n=!0,o){t?!0===/^[0-9]*$/.test(t)?t.length<2?a(new Error(n?"please enter at least 2 characters.":"请输入至少2个字符")):ae({mobile:t}).then(e=>{e.data.data&&0!==e.data.data.records.length?(Cs(e.data.data.records),o.thirdPartyMobileVerifyList=e.data.data.records,a(new Error(n?"This mobile number has been registered":"手机号已注册"))):(Cs([]),o.thirdPartyMobileVerifyList=[],a())}).catch(()=>{a(new Error(n?"This mobile number has been registered":"手机号已注册"))}):a(new Error("请正确填写手机号")):a(new Error(n?"Please enter your cell phone number":"请输入手机号"))}(0,t,a,this.isEn,this),trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,a)=>ks(0,t,a,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(e,t,a)=>{t?a():a(new Error(this.isEn?"Please agree the User Agreement and Privacy Policy":"请勾选《用户条款和协议》和《隐私政策》"))},trigger:["change","blur"]}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1,thirdPartyMobileVerifyList:[],thirdPartyEmailVerifyList:[]}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:Bs,getAuthSessionItems:Z,go2Policy:Vs,handleBindThirdParty(e){this.$emit("bind-third-party","email"===e?this.thirdPartyEmailVerifyList:this.thirdPartyMobileVerifyList)},async inviteJoinGetComp(){const e=Z().compKey;if(!e)return;const{data:t}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=t.data},findDict(){he({dictType:"cmc_company_industry_sector"}).then(e=>{console.log("🍉 ~ RegisterForm.vue:527 ~ res:",e);const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))}).catch(e=>{console.log("🍉 ~ RegisterForm.vue:527 ~ err:",e)})},handleChangeCompany(e){console.log("🍉 ~ RegisterForm.vue:570 ~ e:",e),this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){const e=(await ue()).data;e&&0===e.code&&e.data&&e.data.cityId&&(this.form.city={id:e.data.cityId,type:"City",nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,raw:{city:{id:e.data.cityId,nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,countryId:e.data?.countryId},country:{id:e.data?.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=e.data?.countryId,this.handleSelectCity(this.form.city));const t=await pe();this.areaCodeData=t.data.data.records},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id||e.raw?.city?.countryId||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(e){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(e,t=>{"email"!==e&&"phone"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){this.verifyData=e;const a={target:this.form.email||this.form.phone,uuid:e.uuid,code:e.code};let n=de,o=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(n=fe,o=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),t(),n(a).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(this.currentCountryIsChina?this.mobileUid=t:this.emailUid=t,Je.success(o))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleRegister(){this.$refs.registerFormRef.validate(e=>{if(!e)return;const t=this.getAuthSessionItems(),{thirdPartyId:a,thirdPartyEmail:n,thirdPartyType:o,thirdPartyUserName:i}=vs();let r={appId:this.appId,fromSys:this.appId,passwd:yr.MD5(this.form.password).toString(),industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,clickSource:t.clickSource||"",activityCode:t.activityCode||"",referenceUserId:t.referenceUserId||"",inviterEmpNo:t.empNo||"",registerType:t.registerType||"",registerEvent:t.registerEvent||"",thirdPartyId:a,thirdPartyEmail:n,thirdPartyType:o,thirdPartyUserName:i};this.currentCountryIsChina?Object.assign(r,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode)?.id,account:ce(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(r,{type:"EMAIL",account:ce(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(r):this.handleNewCompanySubmit(r)})},async handleNewCompanySubmit(e){const t={...this.form.kqInfo,...e,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?t.compNameCn=this.form.companyName:t.compNameEn=this.form.companyName,this.$emit("register",t),this.loading=!0;try{const e=await Re(t);this.handlePostRegister(e)}catch(a){this.loading=!1}},async handleApplyJoinSubmit(e){const t={...e,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(t.nameCn=this.form.nameCn),this.form.nameEn&&(t.nameEn=this.form.nameEn);["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(e=>delete t[e]),this.$emit("register",t),this.loading=!0;try{const e=await Pe(t);this.handlePostRegister(e)}catch(a){this.loading=!1}},handlePostRegister(e){const t=this.getAuthSessionItems();if(0===e.data.code)if(console.log("🍉 ~ RegisterForm.vue:717 ~ res.data:",e.data.data,e.data.data.redirect),e.data.data.redirect)try{if(ps.set("tgc",e.data.data.tgc,{expires:30}),e.data.data.result&&Y(e.data.data.result),e.data.data.result&&e.data.data.result.improveComp)return void this.$emit("need-complete",e.data.data.result.improveComp);const a=e.data.data.redirectPath||t.path||"/",n={isHandled:!1},o=e=>{n.isHandled=!0;const t=Number(e)||0;setTimeout(()=>{oe(),Ts(a)},t)},i=()=>{n.isHandled=!0};this.$emit("register-success",{user:e.data.data.result,redirectPath:a,preventDefault:i,redirect:o}),setTimeout(()=>{n.isHandled||(oe(),Ts(a))},0)}catch(a){console.log("🍉 ~ RegisterForm.vue:737 ~ error:",a)}else this.loading=!1,Je.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,Je.error(e.data.msg)}}},Od={class:"third-register-form-container"},jd={class:"resist-company-info-card"},qd={class:"card-header"},Hd={class:"title-group"},zd={class:"tip-text"},Jd={class:"company-content"},Wd={class:"company-name"},Qd={class:"location-info"},Kd={key:6,class:"sector-section"},Gd={class:"sector-label"},Xd={class:"sector-group"},Yd=["onClick"],Zd={key:0,class:"icon-auth-checked"},$d={class:"agree-text"};const eu={name:"AuthDialog",components:{ElDialog:Xe,ElForm:Ye,ElFormItem:et,ElInput:Ge,ElButton:at,ElCheckbox:tt,ElSelect:Qe,ElOption:Ke,ElRadioGroup:ot,ElRadioButton:nt,GoogleInput:yo,CodeInput:Nr,RegisterForm:el,LoginTypeSwitcher:Sc,JcVerifySlide:Vr,WechatLogin:bc,WechatChooseType:Nc,WechatBindLogin:Oc,CompleteInfoForm:sd,ForgetPassword:Ad,ThirdBindLogin:Ld,ThirdRegisterForm:/* @__PURE__ */dn(Md,[["render",function(e,t,a,n,o,i){const r=V("JcSearch"),h=V("JcFloatWrapper"),m=V("el-form-item"),C=V("ChineseCompanySearch"),b=V("ApplyJoinBtn"),A=V("JcFloatInput"),E=V("el-option"),k=V("el-select"),S=V("google-input"),I=V("CodeInput"),T=V("el-checkbox"),P=V("el-button"),R=V("el-form");return l(),s("div",Od,[p(R,{ref:"registerFormRef",model:o.form,rules:o.rules,class:"auth-form"},{default:B(()=>[o.hasResistCompany?(l(),s(g,{key:1},[d("div",jd,[d("div",qd,[d("div",Hd,[d("span",zd,v(a.isEn?"Company Name":"公司名称"),1)]),d("span",{class:"change-link",onClick:t[5]||(t[5]=e=>o.hasResistCompany=!1)},v(a.isEn?"Change":"修改"),1)]),d("div",Jd,[d("h4",Wd,v(a.isEn?o.resistCompanyInfo.compNameEn:o.resistCompanyInfo.compNameCn||o.resistCompanyInfo.compNameEn),1)]),t[22]||(t[22]=d("div",{class:"card-header"},[d("div",{class:"title-group"},[d("span",{class:"tip-text"}," Location(City)")])],-1)),d("div",Qd,v(a.isEn?o.resistCompanyInfo.countryNameEn:o.resistCompanyInfo.countryNameCn)+" / "+v(a.isEn?o.resistCompanyInfo.cityNameEn:o.resistCompanyInfo.cityNameCn),1)]),p(m,{prop:i.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:B(()=>[p(A,{modelValue:o.form[i.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[6]||(t[6]=e=>o.form[i.currentCountryIsChina?"nameCn":"nameEn"]=e),label:i.currentCountryIsChina?a.isEn?"Your Full Name in Chinese":"您的中文名称":a.isEn?"Your Full Name in English":"您的名称",placeholder:a.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:B(()=>[...t[23]||(t[23]=[d("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[p(m,{prop:"city"},{default:B(()=>[p(h,{label:a.isEn?"Company Location (City)":"公司所在城市","has-value":!(!o.form.city||!o.form.city.id)},{default:B(()=>[p(r,{modelValue:o.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>o.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],placeholder:a.isEn?"Location(City)":"请输入公司所在城市",onSelect:i.handleSelectCity},{prefix:B(()=>[...t[20]||(t[20]=[d("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","placeholder","onSelect"])]),_:1},8,["label","has-value"])]),_:1}),p(m,{prop:"companyName"},{default:B(()=>[p(h,{label:i.currentCompanyLabel},{default:B(()=>[p(C,{class:"jc:my-0! search-company-item","company-name":o.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>o.form.companyName=e),useKq:o.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>o.form.useKq=e),kqCode:o.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>o.form.kqCode=e),kqInfo:o.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>o.form.kqInfo=e),"country-id":o.form.city?.raw?.country?.id||null,city:o.form.city,onChange:i.handleChangeCompany},{prefix:B(()=>[...t[21]||(t[21]=[d("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","country-id","city","onChange"])]),_:1},8,["label"])]),_:1}),o.companyResistCn||o.companyResistEn?(l(),u(b,{key:0,onApplyJoin:i.handleApplyJoinClick},null,8,["onApplyJoin"])):f("",!0)],64)),i.currentCountryIsChina?(l(),u(m,{key:2,ref:"areaCodeCountryId",class:"phone-form-item"},{default:B(()=>[(l(),u(m,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:B(()=>[p(S,{modelValue:o.form.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>o.form.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15",disabled:o.isCounting},{prefix:B(()=>[t[24]||(t[24]=d("i",{class:"icon-auth-phone"},null,-1)),p(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:B(()=>[p(k,{modelValue:o.form.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>o.form.areaCode=e),placeholder:a.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),disabled:o.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:B(()=>[(l(!0),s(g,null,y(o.areaCodeData,e=>(l(),u(E,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),p(E,{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1},512)):f("",!0),i.currentCountryIsChina?f("",!0):(l(),u(m,{key:3,prop:"email",class:"email-form-item"},{default:B(()=>[p(A,{modelValue:o.form.email,"onUpdate:modelValue":t[11]||(t[11]=e=>o.form.email=e),label:a.isEn?"Business Email Address":"企业邮箱",placeholder:a.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[12]||(t[12]=e=>i.validateField("email"))},{prefix:B(()=>[...t[25]||(t[25]=[d("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1})),i.showEmailBindBtn?(l(),u(m,{key:4},{default:B(()=>[d("div",{class:"third-party-bind-btn",onClick:t[13]||(t[13]=e=>i.handleBindThirdParty("email"))},[x(v(a.isEn?"To bind":"去绑定")+" ",1),t[26]||(t[26]=d("img",{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png",style:{marginLeft:"2px",width:"8px",height:"12px"}},null,-1))])]),_:1})):f("",!0),i.showMobileBindBtn?(l(),u(m,{key:5},{default:B(()=>[d("div",{class:"third-party-bind-btn",onClick:t[14]||(t[14]=e=>i.handleBindThirdParty("mobile"))},[x(v(a.isEn?"To bind":"去绑定")+" ",1),t[27]||(t[27]=d("img",{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png",style:{marginLeft:"2px",width:"8px",height:"12px"}},null,-1))])]),_:1})):f("",!0),p(m,{prop:"code"},{default:B(()=>[p(I,{modelValue:o.form.code,"onUpdate:modelValue":t[15]||(t[15]=e=>o.form.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:o.codeReady,"is-en":a.isEn,"show-icon":"",onSend:i.handleGetCode},{prefix:B(()=>[...t[28]||(t[28]=[d("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1}),p(m,{prop:"password",class:"password-form-item"},{default:B(()=>[p(A,{modelValue:o.form.password,"onUpdate:modelValue":t[16]||(t[16]=e=>o.form.password=e),type:"password","show-password":"",class:"input-show-pass",label:a.isEn?"Password":"密码",placeholder:a.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},{prefix:B(()=>[...t[29]||(t[29]=[d("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),o.hasResistCompany?f("",!0):(l(),s("div",Kd,[d("p",Gd,v(a.isEn?"Industry Sector":"行业类型"),1),d("div",Xd,[(l(!0),s(g,null,y(o.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:o.form.sector===e.value}]),onClick:t=>o.form.sector=e.value},[x(v(a.isEn?e.en:e.cn)+" ",1),o.form.sector===e.value?(l(),s("i",Zd)):f("",!0)],10,Yd))),128))])])),p(m,{prop:"agree",class:"agree-item"},{default:B(()=>[p(T,{modelValue:o.form.agree,"onUpdate:modelValue":t[19]||(t[19]=e=>o.form.agree=e)},{default:B(()=>[d("span",$d,[x(v(a.isEn?"I agree":"我同意")+" ",1),d("span",{class:"link-type",onClick:t[17]||(t[17]=w((...e)=>i.go2Agreement&&i.go2Agreement(...e),["stop"]))},v(a.isEn?"User Agreement":"《用户条款和协议》"),1),x(" "+v(a.isEn?"and":"和")+" ",1),d("span",{class:"link-type",onClick:t[18]||(t[18]=w((...e)=>i.go2Policy&&i.go2Policy(...e),["stop"]))},v(a.isEn?"Privacy Policy":"《隐私政策》"),1)])]),_:1},8,["modelValue"])]),_:1}),p(P,{class:c(["submit-btn register-btn",["register-btn-is-active"]]),disabled:o.loading,loading:o.loading,onClick:i.handleRegister},{default:B(()=>[x(v(a.isEn?"Register and Log in":"注册并登录")+" ",1),t[30]||(t[30]=d("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["disabled","loading","onClick"])]),_:1},8,["model","rules"])])}],["__scopeId","data-v-fd64db36"]])},props:{visible:{type:Boolean,default:!1},lang:{type:String,default:""},currentPath:{type:String,default:"/"},loginPath:{type:String,default:"http://localhost:8086"},showTestThirdBtn:{type:Boolean,default:!1},baseMode:{type:String,default:"login"}},provide(){return{loginPath:this.loginPath,lang:this.lang,isEn:this.isEn}},emit:["update:visible","update:baseMode","open","mode-change","auth-dialog-close","login-success","register-success"],mounted(){const e=De();e&&(this.loginForm.username=e.account||"",this.loginForm.password=e.password?Ue(e.password):"",this.loginForm.remember=!0)},setup(a){const{proxy:n}=q(),o=e(null),i=e=>{const t=String(e||"").toLowerCase(),a=String(o.value||"").toLowerCase(),i=Z?.()||{};return"facebook"===t||"facebook"===a?"FACEBOOK":"linkedin"===t||"linkedin"===a?"LINKEDIN":"wechat"===t||n?.formMode?.startsWith("wechat")||i?.uniqueCode?"WECHAT":"PASSWORD"},s=t(()=>{if(a.lang)return"en"===a.lang||"en-US"===a.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),{loading:l,handleAuthSubmit:c,executeRedirect:d}=Uc({appId:"ERA",isEn:s.value,onNeedComplete:e=>{console.log("需要完善信息,暂不关闭弹窗");const t="code"===n?.loginType?"register":"login";n.handleNeedComplete({mode:t,accountType:i(n?.loginType),payload:e})},onSuccess:e=>{const t=i(n?.loginType);n.$emit("login-success",{...e||{},accountType:t,mode:"login"}),n.loginForm.remember&&Fe(n.loginForm.username,ce(n.loginForm.password),!0),n.currentVisible=!1,d(e)}}),{isBindDialogVisible:u,isRegisterVisible:p,bindList:h,isUserClosed:f,startLogin:m,handleBindThirdParty:g,resetBindRegisterState:y}=bs({appId:"ERA",isEn:s.value,onSuccess:e=>{const t=i(o.value);n.$emit("login-success",{...e||{},accountType:t,mode:"login"}),n.currentVisible=!1,d(e)}});r(f,e=>{e&&Je.error(s.value?"You have canceled the login.":"您取消了登录。")});return r(u,e=>{e&&(console.log("🍉 ~ index.vue:525 ~ watch ~ 第三方登录需要绑定账号"),n.loginType=o.value)}),r(p,e=>{e&&(n.loginType=o.value,console.log("🍉 ~ index.vue:530 ~ watch ~ 第三方登录需要注册账号"))}),{thirdBindDialogVisible:u,thirdRegisterVisible:p,bindList:h,authLoading:l,isEn:s,handleAuthSubmit:c,executeRedirect:d,handleThirdClick:e=>{console.log("🍉 ~ index.vue:530 ~ handleThirdClick ~ type:",e),o.value=e;const t="facebook"===e?"FACEBOOK":"linkedin"===e?"LINKEDIN":e;t&&m(t)},handleBindThirdParty:g,resetBindRegisterState:y}},data(){return{currentVisible:this.visible,formMode:"login",loginType:"account",loginMethod:"email",areaCodeData:[],IpData:null,isCounting:!1,countdown:60,codeReady:!1,timer:null,loginForm:{type:"email",username:"",password:"",remember:!1,areaCode:"",phone:"",email:"",code:""},loginRules:{username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,a)=>As(0,t,a,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>xs(0,t,a,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,this.isEn),trigger:"blur"}]},verifyData:{},captchaVisible:!1,mobileUid:"",emailUid:"",currentVerifyData:null,pendingCompleteEvent:null,_lastEmittedBaseMode:"register"===this.baseMode?"register":"login"}},computed:{currentDialogWidth(){let e="480px";return["register","need-complete","forget-password"].includes(this.formMode)&&(e="640px"),"login"!==this.formMode||"linkedin"!==this.loginType&&"facebook"!==this.loginType&&"TEST"!==this.loginType||(e="640px"),e},computedRules(){const e={username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,a)=>As(0,t,a,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>xs(0,t,a,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,this.isEn),trigger:"blur"}]};return"account"===this.loginType?{username:e.username,password:e.password}:"code"===this.loginType?{code:e.code,..."email"===this.loginForm.type?{email:e.email}:{phone:e.phone}}:{}}},watch:{visible(e){this.currentVisible=e},baseMode(e){const t="register"===e?"register":"login";this.currentVisible&&["login","register"].includes(this.formMode)&&(this.formMode=t)},currentVisible(e){this.$emit("update:visible",e)},formMode:{handler(e){const t="register"===e?"register":"login";this._lastEmittedBaseMode!==t&&(this._lastEmittedBaseMode=t,this.$emit("update:baseMode",t),this.$emit("mode-change",{formMode:e,baseMode:t}))},immediate:!0}},methods:{go2Agreement:Bs,go2Policy:Vs,handleOpen(){this.formMode=this.baseMode||"login",this._lastEmittedBaseMode="register"===this.formMode?"register":"login",this.$emit("open")},handleClose(){this.$emit("auth-dialog-close",{loginType:this.loginType,formMode:this.formMode}),this.loginType="account",this.formMode=this.baseMode||"login",this.pendingCompleteEvent=null,oe(),Ne(),this.resetBindRegisterState()},handleTest(e){this.formMode=e},handleNeedComplete(e={}){const t="register"===e?.mode?"register":"login",a=e?.accountType||this.resolveAccountTypeByContext();this.pendingCompleteEvent={eventName:"register"===t?"register-success":"login-success",accountType:a},this.formMode="need-complete"},handleRegisterNeedComplete(e){this.handleNeedComplete({mode:"register",payload:e})},handleWechatNeedComplete(e){this.handleNeedComplete({mode:"login",accountType:"WECHAT",payload:e})},resolveAccountTypeByContext(){const e=String(this.loginType||"").toLowerCase(),t=Z?.()||{};return"facebook"===e?"FACEBOOK":"linkedin"===e?"LINKEDIN":"wechat"===e||t?.uniqueCode?"WECHAT":"PASSWORD"},handleRegisterSuccess(e){this.$emit("register-success",{...e||{},accountType:this.resolveAccountTypeByContext(),mode:"register"})},handleWechatSuccess(e){this.$emit("login-success",{...e||{},accountType:"WECHAT",mode:"login"})},handleCompleteSuccess(e){if(this.pendingCompleteEvent?.eventName){const t="register-success"===this.pendingCompleteEvent.eventName?"register":"login";this.$emit(this.pendingCompleteEvent.eventName,{...e||{},accountType:this.pendingCompleteEvent.accountType,mode:t}),this.pendingCompleteEvent=null}e.redirectPath?this.executeRedirect(e):this.currentVisible=!1},handleWechatNeedRegister(){this.formMode="wechat-need-register"},handleWechatLogin(){this.formMode="wechat-bind"},handleWechatRegister(){this.formMode="register"},switchLoginTab(e){this.loginType!==e&&(this.loginType=e,this.$nextTick(()=>{if(!this.$refs.loginFormRef)return;this.$refs.loginFormRef.clearValidate();const e={username:"",password:"",email:"",phone:"",code:"",areaCode:"",remember:this.loginForm.remember,type:this.loginForm.type};Object.assign(this.loginForm,e),this.codeReady=!1}))},validateField(e){this.$refs.loginFormRef.validateField(e,e=>{this.codeReady=e})},handleGetCode({captchaData:e,startTimer:t}){const a="mobile"===this.loginForm.type,n={target:this.loginForm.email||this.loginForm.phone,uuid:e.uuid,code:e.code};a&&(n.areaCode=this.loginForm.areaCode);const o=a?fe:de;this.verifyData=e,t(),o(n).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(a?this.mobileUid=t:this.emailUid=t,Je.success(this.isEn?"Verification code sent":"验证码已发送"))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleLogin(){this.$refs.loginFormRef.validate(e=>{if(e)if("account"===this.loginType)this.captchaVisible=!0;else{if(console.log("🍉 ~ index.vue:795 ~ this.verifyData:",this.verifyData),console.log("🍉 ~ index.vue:796 ~ this.verifyData.code:",this.verifyData.code),!this.verifyData||!this.verifyData.uuid)return Je.error(this.isEn?"Please get the verification code first":"请先获取验证码");this.handleCaptchaSuccess(this.verifyData)}})},async handleCaptchaSuccess(e){this.captchaVisible=!1,this.handleAuthSubmit({loginType:this.loginType,loginForm:this.loginForm,captchaData:e,mobileUid:this.mobileUid,emailUid:this.emailUid,areaCodeData:this.areaCodeData,isKick:!1,remember:this.loginForm.remember})},handleForget(){console.log("Forget Password"),this.formMode="forget-password"},async handleChangeSubType(e){this.loginMethod=e,"mobile"==e&&0===this.areaCodeData.length&&(await this.getLocalIpData(),this.getAreaCodeData())},async getLocalIpData(){let e=(await ue()).data.data;"development"===process.env.NODE_ENV&&(e={countryId:57,cityId:4022,countryNameCn:"新加坡",countryNameEn:"Singapore",cityNameCn:"新加坡",cityNameEn:"Singapore"}),this.IpData=e},async getAreaCodeData(){const e=await pe();this.areaCodeData=e.data.data.records,this.loginForm.areaCode=e.data.data.records?.find(e=>e.id===this.IpData?.countryId)?.telCode,this.loginForm.areaCode||(this.areaCode="+86")},handleToLogin(){this.formMode="login",this.loginType="account",this.pendingCompleteEvent=null}}},tu={key:0,class:"auth-container"},au={class:"login-section"},nu={class:"login-title"},ou={key:0},iu={key:1},ru={class:"tab-header"},su={key:1,class:"tel"},lu={class:"login-passport"},cu={class:"login-remember"},du={key:0,class:"login-agreement"},uu={class:"login-agreement-text"},pu={class:"login-agreement-text-item"},hu={class:"login-agreement-text-item jc:mx-0.5"},fu={key:1},mu={key:2},gu={key:3,class:"third-party-sign-in"},yu={class:"third-party-sign-in-title"},vu={class:"third-party-sign-in-group"},wu={key:4,class:"bottom-tip"},Cu={key:3,class:"auth-container"},bu={class:"register-section"};const Au=/* @__PURE__ */dn(eu,[["render",function(e,t,a,n,o,i){const r=V("GoogleInput"),h=V("el-form-item"),m=V("LoginTypeSwitcher"),C=V("el-option"),b=V("el-select"),A=V("google-input"),E=V("CodeInput"),k=V("el-checkbox"),S=V("el-button"),I=V("el-form"),T=V("WechatLogin"),P=V("ThirdBindLogin"),R=V("ThirdRegisterForm"),N=V("WechatChooseType"),D=V("WechatBindLogin"),U=V("RegisterForm"),F=V("CompleteInfoForm"),_=V("ForgetPassword"),L=V("JcVerifySlide"),M=V("ElDialog");return l(),u(M,{modelValue:o.currentVisible,"onUpdate:modelValue":t[23]||(t[23]=e=>o.currentVisible=e),"close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":"",width:i.currentDialogWidth,"align-center":"",class:"jc-auth-dialog","show-close":!0,onClose:i.handleClose,onOpen:i.handleOpen},{default:B(()=>["login"===o.formMode?(l(),s("div",tu,[d("div",au,[d("div",nu,[n.thirdBindDialogVisible||n.thirdRegisterVisible?(l(),s("p",ou,v(n.isEn?"New User Registration":"新用户注册"),1)):(l(),s("p",iu,v(n.isEn?"Welcome Back to JCtrans":"欢迎回到JCtrans"),1))]),["account","code"].includes(o.loginType)?(l(),s(g,{key:0},[d("div",ru,[d("span",{class:c(["tab-header-title",{active:"account"===o.loginType}]),onClick:t[0]||(t[0]=e=>i.switchLoginTab("account"))},v(n.isEn?"Password Login":"账号登录"),3),d("span",{class:c(["tab-header-title",{active:"code"===o.loginType}]),onClick:t[1]||(t[1]=e=>i.switchLoginTab("code"))},v(n.isEn?"Verification Code Login":"验证码登录"),3)]),p(I,{ref:"loginFormRef",model:o.loginForm,rules:i.computedRules,"validate-on-rule-change":!1,class:"auth-form login-form-content"},{default:B(()=>["account"===o.loginType?(l(),s(g,{key:0},[p(h,{prop:"username",class:"form-user"},{default:B(()=>[p(r,{modelValue:o.loginForm.username,"onUpdate:modelValue":t[2]||(t[2]=e=>o.loginForm.username=e),placeholder:n.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),p(h,{prop:"password",class:"password-item"},{default:B(()=>[p(r,{modelValue:o.loginForm.password,"onUpdate:modelValue":t[3]||(t[3]=e=>o.loginForm.password=e),type:"password",class:"input-show-pass",placeholder:n.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"code"===o.loginType?(l(),s(g,{key:1},[p(h,{prop:"type"},{default:B(()=>[p(m,{modelValue:o.loginForm.type,"onUpdate:modelValue":t[4]||(t[4]=e=>o.loginForm.type=e),"is-en":n.isEn,onChange:i.handleChangeSubType},null,8,["modelValue","is-en","onChange"])]),_:1}),"email"===o.loginForm.type?(l(),u(h,{key:0,prop:"email"},{default:B(()=>[p(r,{modelValue:o.loginForm.email,"onUpdate:modelValue":t[5]||(t[5]=e=>o.loginForm.email=e),placeholder:n.isEn?"Email Address":"邮箱地址",onBlur:t[6]||(t[6]=e=>i.validateField("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),s("div",su,[(l(),u(h,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:B(()=>[p(A,{modelValue:o.loginForm.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>o.loginForm.phone=e),placeholder:n.isEn?"Cell Phone Number":"手机号码",label:n.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15",disabled:o.isCounting},{prefix:B(()=>[p(h,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:B(()=>[p(b,{modelValue:o.loginForm.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>o.loginForm.areaCode=e),placeholder:n.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),disabled:o.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:B(()=>[(l(!0),s(g,null,y(o.areaCodeData,e=>(l(),u(C,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))])),p(h,{prop:"code"},{default:B(()=>[p(E,{modelValue:o.loginForm.code,"onUpdate:modelValue":t[11]||(t[11]=e=>o.loginForm.code=e),placeholder:n.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:o.codeReady,"is-en":n.isEn,onSend:i.handleGetCode},null,8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),d("div",lu,[d("div",cu,[p(h,{prop:"remember",class:"remember-item"},{default:B(()=>[p(k,{modelValue:o.loginForm.remember,"onUpdate:modelValue":t[12]||(t[12]=e=>o.loginForm.remember=e),class:"remember-btn"},{default:B(()=>[x(v(n.isEn?"Remember Me":"30天自动登录"),1)]),_:1},8,["modelValue"])]),_:1}),"account"===o.loginType?(l(),s("span",{key:0,class:"forget-pwd-btn",onClick:t[13]||(t[13]=(...e)=>i.handleForget&&i.handleForget(...e))},v(n.isEn?"Forgot your password?":"忘记密码"),1)):f("",!0)]),"code"===o.loginType?(l(),s("div",du,[d("div",uu,[d("span",pu,v(n.isEn?"Automatically log in after verification if not registered. Registration means you agree":"未注册验证后自动登录,注册即代表同意"),1),d("span",{class:"link-type",onClick:t[14]||(t[14]=w((...e)=>i.go2Agreement&&i.go2Agreement(...e),["stop"]))},v(n.isEn?"User Agreement":"《用户条款和协议》"),1),d("span",hu,v(n.isEn?"and":""),1),d("span",{class:"link-type",onClick:t[15]||(t[15]=w((...e)=>i.go2Policy&&i.go2Policy(...e),["stop"]))},v(n.isEn?"Privacy Policy":"《隐私政策》"),1)])])):f("",!0),p(S,{class:"submit-btn",loading:n.authLoading,onClick:i.handleLogin},{default:B(()=>[x(v("code"===o.loginType?n.isEn?"Register and log in":"登录/注册":n.isEn?"Sign In":"登录")+" ",1),t[24]||(t[24]=d("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["loading","onClick"])])]),_:1},8,["model","rules"])],64)):f("",!0),"wechat"===o.loginType?(l(),s("div",fu,[p(T,{"is-en":n.isEn,onSuccess:i.handleWechatSuccess,onNeedRegister:i.handleWechatNeedRegister,onNeedComplete:i.handleWechatNeedComplete},null,8,["is-en","onSuccess","onNeedRegister","onNeedComplete"])])):f("",!0),["linkedin","facebook","TEST"].includes(o.loginType)?(l(),s("div",mu,[n.thirdBindDialogVisible?(l(),u(P,{key:0,"is-en":n.isEn,"bind-list":n.bindList,class:"jc:mt-1"},null,8,["is-en","bind-list"])):f("",!0),n.thirdRegisterVisible?(l(),u(R,{key:1,"is-en":n.isEn,class:"jc:mt-6",onBindThirdParty:n.handleBindThirdParty,onRegisterSuccess:i.handleRegisterSuccess,onNeedComplete:i.handleRegisterNeedComplete},null,8,["is-en","onBindThirdParty","onRegisterSuccess","onNeedComplete"])):f("",!0)])):f("",!0),"TEST"!==o.loginType&&"facebook"!==o.loginType&&"linkedin"!==o.loginType?(l(),s("div",gu,[d("div",yu,v(n.isEn?"Sign in with":"其他登录方式"),1),d("div",vu,[["wechat","linkedin","facebook"].includes(o.loginType)?(l(),s("div",{key:0,class:"third-party-sign-in-btn",onClick:t[16]||(t[16]=()=>o.loginType="account")},[t[25]||(t[25]=d("i",{class:"icon-account"},null,-1)),d("span",null,v(n.isEn?"Account":"账户"),1)])):["account","code"].includes(o.loginType)?(l(),s("div",{key:1,class:"third-party-sign-in-btn",onClick:t[17]||(t[17]=()=>o.loginType="wechat")},[t[26]||(t[26]=d("i",{class:"icon-auth-wechat"},null,-1)),d("span",null,v(n.isEn?"WeChat":"微信"),1)])):f("",!0),d("div",{class:"third-party-sign-in-btn",onClick:t[18]||(t[18]=e=>n.handleThirdClick("linkedin"))},[...t[27]||(t[27]=[d("i",{class:"icon-auth-linkedin"},null,-1),d("span",null,"LinkedIn",-1)])]),d("div",{class:"third-party-sign-in-btn",onClick:t[19]||(t[19]=e=>n.handleThirdClick("facebook"))},[...t[28]||(t[28]=[d("i",{class:"icon-auth-facebook"},null,-1),d("span",null,"Facebook",-1)])]),a.showTestThirdBtn?(l(),s("div",{key:2,class:"third-party-sign-in-btn",onClick:t[20]||(t[20]=e=>n.handleThirdClick("TEST"))},[...t[29]||(t[29]=[d("i",{class:"icon-auth-facebook"},null,-1),d("span",null,"TEST",-1)])])):f("",!0)])])):f("",!0),n.thirdBindDialogVisible||n.thirdRegisterVisible?f("",!0):(l(),s("div",wu,[x(v(n.isEn?"Don't have an account?":"没有账户?")+" ",1),d("span",{class:"action-text",onClick:t[21]||(t[21]=e=>o.formMode="register")},[x(v(n.isEn?"Sign Up":"立即注册")+" ",1),t[30]||(t[30]=d("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[d("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])]))])])):"wechat-need-register"===o.formMode?(l(),u(N,{key:1,"is-en":n.isEn,onToBind:i.handleWechatLogin,onToRegister:i.handleWechatRegister},null,8,["is-en","onToBind","onToRegister"])):"wechat-bind"===o.formMode?(l(),u(D,{key:2,"is-en":n.isEn,onNeedComplete:i.handleWechatNeedComplete},null,8,["is-en","onNeedComplete"])):"register"===o.formMode?(l(),s("div",Cu,[d("div",bu,[p(U,{"is-en":n.isEn,onToLogin:i.handleToLogin,onNeedComplete:i.handleRegisterNeedComplete,onRegisterSuccess:i.handleRegisterSuccess},null,8,["is-en","onToLogin","onNeedComplete","onRegisterSuccess"])])])):"need-complete"===o.formMode?(l(),u(F,{key:4,"is-en":n.isEn,onSuccess:i.handleCompleteSuccess},null,8,["is-en","onSuccess"])):"forget-password"===o.formMode?(l(),u(_,{key:5,"is-en":n.isEn,onToLogin:i.handleToLogin},null,8,["is-en","onToLogin"])):f("",!0),p(L,{visible:o.captchaVisible,"onUpdate:visible":t[22]||(t[22]=e=>o.captchaVisible=e),"is-en":n.isEn,onSuccess:i.handleCaptchaSuccess},null,8,["visible","is-en","onSuccess"])]),_:1},8,["modelValue","width","onClose","onOpen"])}],["__scopeId","data-v-837e1621"]]),Eu=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Au},Symbol.toStringTag,{value:"Module"}));const ku=(e,t)=>z.searchByIdWithType(e,t);function xu(a,n){const o=e([]),i=e(!1),r=e(!1),s=e(!1),l=e(1),c=e(0),d=t(()=>{const e=[...n.value];return e.includes("Country")&&!e.includes("Region")&&e.push("Region"),e});return{searchResults:o,loading:i,isFetchingMore:r,isFinished:s,fetchData:async(e=!1)=>{const t=a.value.trim();if(!t)return o.value=[],c.value=0,void(s.value=!1);if(e){if(r.value||s.value)return;r.value=!0,l.value+=1}else{if(i.value)return;i.value=!0,l.value=1,s.value=!1}try{const a=await async function(e,t=["Continent","Country","City","Seaport","Airport"],a={}){return z.searchByName({keyword:e,displayInfo:t,...a})}(t,n.value,{current:l.value,size:20}),i=(u=a.records||[],Array.isArray(u)?u.filter(e=>d.value.includes(e.type)):[]);e?o.value.push(...i):o.value=i,c.value=a.total||0,(o.value.length>=c.value||i.length<20)&&(s.value=!0)}catch(p){console.error("Search request failed:",p),e&&(l.value-=1)}finally{i.value=!1,r.value=!1}var u}}}const Su={class:"h5-search-container"},Iu={class:"trigger-content"},Bu=["src"],Vu={class:"placeholder-text"},Tu={key:0,class:"scroll-container"},Pu={class:"tag-text"},Ru={class:"selected-count-text"},Nu={key:1,class:"selected-val"},Du={key:2,class:"placeholder-gray"},Uu={key:0,class:"h5-modal-root"},Fu={class:"h5-drawer-card"},_u={class:"h5-header"},Lu={class:"h5-input-wrapper"},Mu=["src"],Ou=["placeholder"],ju={key:0,class:"h5-spinner-box"},qu={key:1,class:"h5-section"},Hu={class:"h5-section-hd"},zu={class:"h5-history-grid"},Ju=["onClick"],Wu={key:2,class:"h5-result-list"},Qu=["onClick"],Ku={class:"item-info"},Gu={class:"item-name"},Xu={key:0,class:"item-sub"},Yu={class:"h5-load-status"},Zu={key:1,class:"no-more"},$u={key:3,class:"h5-load-status h5-empty"},ep={class:"h5-empty-apply-wrap"},tp=["src"],ap=/* @__PURE__ */dn(/* @__PURE__ */o({__name:"index",props:{modelValue:{},multiple:{type:Boolean,default:!1},lang:{default:"zh-CN"},placeholder:{},historyKey:{},reportType:{default:"City"}},emits:["update:modelValue","select","apply"],setup(o,{emit:h}){const C=o,b=h,x=e(!1),S=e(""),I=e(null),V=e(null);let T=null;const{searchHistory:P,saveToHistory:N,clearHistory:D}=function(n){const o=e([]),i="undefined"!=typeof window&&"undefined"!=typeof localStorage,r=t(()=>(n.value||"")+"_search_history_cache"),s=t(()=>!!n.value&&""!==n.value);return a(()=>{if(i&&s.value){const t=localStorage.getItem(r.value);if(t)try{o.value=JSON.parse(t)}catch(e){o.value=[]}}}),{searchHistory:o,saveToHistory:e=>{if(!e||!i)return;const t=o.value.filter(t=>t.id&&t.id!==e.id||t.display!==e.display);t.unshift(e);const a=t.slice(0,4);if(s.value){o.value=a;try{localStorage.setItem(r.value,JSON.stringify(a))}catch(n){console.warn("LocalStorage save failed:",n)}}},clearHistory:()=>{o.value=[],i&&localStorage.removeItem(r.value)},HasHistory:s}}(i(C,"historyKey")),{searchResults:U,loading:F,isFetchingMore:_,isFinished:L,fetchData:M}=xu(S,e(["City","Seaport","Airport"])),{hydrateMultiple:j,hydrateSingle:q}=ct(ku),H=t(()=>{if(C.lang)return"en"===C.lang||"en-US"===C.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),z=t(()=>Array.isArray(C.modelValue)?C.modelValue:C.modelValue?[C.modelValue]:[]);r(()=>C.modelValue,async(e,t)=>{if(JSON.stringify(e)!==JSON.stringify(t))if(C.multiple&&Array.isArray(e))try{const{updatedList:t,hasChanged:a}=await j(e);a&&b("update:modelValue",t)}catch(a){console.error("Batch fetch detail failed:",a)}else if(!C.multiple&&e?.id&&e?.type&&!e?.display)try{const t=await q(e);t&&t!==e&&b("update:modelValue",t)}catch(a){console.error("Single fetch detail failed:",a)}},{immediate:!0,deep:!0});const W=t(()=>!C.multiple&&!!C.modelValue),Q=t(()=>W.value?ae(C.modelValue):""),K=t(()=>z.value.length>0),G=()=>{x.value=!0,O(()=>{S.value=H.value?C.modelValue?.nameEn||"":C.modelValue?.nameCn||"",I.value?.focus(),S.value&&M(!1)})},X=()=>{x.value=!1,S.value=""},Y=e=>{if(N(e),C.multiple){z.value.some(t=>t.id===e.id)||b("update:modelValue",[...z.value,e])}else b("update:modelValue",e),X();b("select",e)},Z=()=>{b("update:modelValue",C.multiple?[]:null)},$=e(!1),ee=e=>{const t=e.target;if(!t)return;!(t.scrollTop+t.clientHeight>=t.scrollHeight-80)||!S.value||F.value||_.value||L.value||$.value||($.value=!0,M(!0))};r(_,e=>{e||($.value=!1)});const te=()=>{T&&clearTimeout(T),T=setTimeout(()=>{$.value=!1,V.value?.scrollTo({top:0}),M(!1)},300)};n(()=>{T&&(clearTimeout(T),T=null)});const ae=e=>H.value?e.displayEn||e.display:e.displayCn||e.display,ne=e=>z.value.some(t=>t.id===e.id),oe=async()=>{const e=S.value?.trim();if(e)try{await J({reportData:e,reportType:C.reportType})}catch(t){console.error("Report apply data failed:",t)}finally{b("apply",e)}};return(e,t)=>(l(),s("div",Su,[d("div",{class:"search-trigger",onClick:G},[d("div",Iu,[d("img",{src:E(Ua),class:"search-icon-m"},null,8,Bu),d("div",Vu,[o.multiple&&z.value.length>0?(l(),s("div",Tu,[(l(!0),s(g,null,y(z.value,e=>(l(),s("div",{key:e.id,class:"selected-tag"},[d("span",Pu,v(e.display),1)]))),128)),d("span",Ru,v(H.value?"Selected":"已选")+" ("+v(z.value.length)+") ",1)])):!o.multiple&&W.value?(l(),s("span",Nu,v(Q.value),1)):(l(),s("span",Du,v(o.placeholder||(H.value?"Search":"搜索")),1))])]),K.value?(l(),s("span",{key:0,class:"clear-trigger",onClick:w(Z,["stop"])},"ⓧ")):f("",!0)]),(l(),u(k,{to:"body"},[x.value?(l(),s("div",Uu,[p(R,{name:"fade"},{default:B(()=>[d("div",{class:"h5-mask",onClick:X})]),_:1}),p(R,{name:"slide-up"},{default:B(()=>[d("div",Fu,[d("div",{class:"drawer-handle",onClick:X}),d("div",_u,[d("div",Lu,[d("img",{src:E(Ua),class:"inner-icon"},null,8,Mu),m(d("input",{ref_key:"inputRef",ref:I,"onUpdate:modelValue":t[0]||(t[0]=e=>S.value=e),placeholder:H.value?"City/Port/Airport":"搜索城市/港口/机场",onInput:te},null,40,Ou),[[A,S.value]]),S.value?(l(),s("div",{key:0,class:"h5-clear-btn",onClick:t[1]||(t[1]=e=>S.value="")}," ✕ ")):f("",!0)]),d("div",{class:"h5-cancel-btn",onClick:X},v(H.value?"Cancel":"取消"),1)]),d("div",{class:"h5-main-content",ref_key:"scrollContainer",ref:V,onScroll:ee},[E(F)&&!E(_)?(l(),s("div",ju,[...t[3]||(t[3]=[d("div",{class:"h5-spinner"},null,-1)])])):f("",!0),!S.value&&E(P).length>0?(l(),s("div",qu,[d("div",Hu,[d("span",null,v(H.value?"Recent":"最近搜索"),1),d("span",{class:"h5-clear-history",onClick:t[2]||(t[2]=(...e)=>E(D)&&E(D)(...e))},v(H.value?"Clear":"清空"),1)]),d("div",zu,[(l(!0),s(g,null,y(E(P),(e,t)=>(l(),s("div",{key:t,class:"h5-history-tag",onClick:t=>Y(e)},v(ae(e)),9,Ju))),128))])])):f("",!0),E(U).length>0?(l(),s("div",Wu,[(l(!0),s(g,null,y(E(U),(e,t)=>{return l(),s("div",{key:t,class:c(["h5-result-item",{"is-active":ne(e)}]),onClick:t=>Y(e)},[d("div",{class:c(["item-type",e.type.toLowerCase()])},v((a=e.type,H.value?a:{City:"城市",Seaport:"港口",Airport:"机场"}[a]||a)),3),d("div",Ku,[d("div",Gu,v(ae(e)),1),e.parentName?(l(),s("div",Xu,v(e.parentName),1)):f("",!0)])],10,Qu);var a}),128)),d("div",Yu,[E(_)?(l(),s(g,{key:0},[t[4]||(t[4]=d("div",{class:"mini-spinner"},null,-1)),d("span",null,v(H.value?"Loading...":"加载中..."),1)],64)):E(L)&&S.value?(l(),s("span",Zu,v(H.value?"No more results":"没有更多结果了"),1)):f("",!0)])])):f("",!0),S.value&&!E(F)&&0===E(U).length?(l(),s("div",$u,[d("p",null,v(H.value?"No Results Found. ":"未找到相关结果,"),1),d("div",ep,[d("span",{class:"h5-empty-apply",onClick:w(oe,["stop"])},v(H.value?"Apply for data addition":"申请补充数据"),1),d("img",{src:E(Fa),alt:"more",class:"h5-empty-apply-icon",onClick:w(oe,["stop"])},null,8,tp)])])):f("",!0)],544)])]),_:1})])):f("",!0)]))]))}}),[["__scopeId","data-v-ae746c64"]]),np=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:ap},Symbol.toStringTag,{value:"Module"})),op={class:"jc-line-cascader jc:w-full"},ip={class:"jc:flex jc:justify-between jc:items-center jc:w-full"},rp={key:0,class:"jc:text-xs jc:text-gray-400 jc:ml-4"},sp={class:"jc:p-4 jc:text-sm jc:text-center jc:text-gray-500"},lp={key:0},cp={key:1,class:"jc:flex jc:flex-wrap jc:justify-center jc:items-center"},dp={class:"jc:flex jc:justify-center jc:items-center jc:gap-1 jc:ml-1"},up=["src"],pp=/* @__PURE__ */o({__name:"index",props:{modelValue:{default:()=>[]},lineId:{default:null},placeholder:{default:""},lang:{},lineType:{default:"shipping"},multiple:{type:Boolean,default:!0}},emits:["update:modelValue","update:lineId","change","apply"],setup(n,{emit:o}){const i=n,c=o,h=e(),m=e([]),C=e(!1),b=e(""),A=e(i.modelValue),k={multiple:!0,expandTrigger:"click",emitPath:!1,checkStrictly:!1},S=t(()=>({...k,multiple:i.multiple})),I=t(()=>{if(i.lang)return"en"===i.lang||"en-US"===i.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),V=t(()=>m.value.map(e=>({label:I.value?e.nameEn||e.nameCn:e.nameCn||e.nameEn,value:`line-${e.id}`,children:(e.raw?.countryList||[]).map(t=>({label:I.value?t.nameEn:t.nameCn,value:`${e.id}-${t.id}`,shortCode:t.shortCode}))}))),T=t(()=>i.placeholder?i.placeholder:I.value?"Please select route":"涉及航线选择"),P=(e,t)=>{const a=t.toLowerCase();return e.pathLabels.some(e=>e.toLowerCase().includes(a))},R=(e,t)=>{c("update:modelValue",e),c("update:lineId",t),c("change",{countryIds:e,lineId:t})},N=e=>{},D=e=>{if(console.log("🍓🍓 ~ index.vue:244 ~ handleChange ~ selected:",e),!e||0===e.length)return A.value=[],void R([],null);const t=e[e.length-1];if(t.startsWith("line-")){const[a,n]=t.split("-"),o=e.filter(e=>e.endsWith(`${n}`));return console.log("🍓🍓 ~ index.vue:260 ~ validSelections ~ validSelections:",o),R([],n),void c("change",o)}const[a]=t.split("-"),n=e.filter(e=>e.startsWith(`${a}-`));A.value=n;const o=n.map(e=>e.split("-")[1]);R(o,a),c("change",n)},U=async()=>{if(b.value)try{await J({reportData:b.value,reportType:"Line"})}catch(e){}c("apply",b.value),h.value?.togglePopperVisible(!1)},F=e=>{const t=/* @__PURE__ */new Set;for(const a of e){let e=a.node?.parent;for(;e&&1!==e.level;)e=e.parent;const n=e?.data?.label;n&&t.add(n)}return[...t]};return a(()=>{(async e=>{C.value=!0,b.value=e;try{const e=await z.line.searchAllByCountry(i.lineType);m.value=Array.isArray(e)?e:e?.records||[]}catch(t){console.error("Search failed:",t),m.value=[]}finally{C.value=!1}})("")}),r(()=>i.modelValue,e=>{console.log("🍓🍓 ~ index.vue:324 ~ newVal:",e);const t=i.lineId;t&&e&&e.length>0?A.value=e.map(e=>`${t}-${e}`):A.value=[`line-${i.lineId}`]},{deep:!0,immediate:!0}),(e,t)=>(l(),s("div",op,[p(E(rt),{ref_key:"selectRef",ref:h,modelValue:A.value,"onUpdate:modelValue":t[0]||(t[0]=e=>A.value=e),"popper-class":"jc-line-cascader-pop",options:V.value,props:S.value,placeholder:T.value,loading:C.value,filterable:"",clearable:"","collapse-tags":"","collapse-tags-tooltip":"",class:"jc:w-full","filter-method":P,onExpandChange:N,onChange:D},{tag:B(({data:e})=>[(l(!0),s(g,null,y(F(e),e=>(l(),u(E(st),{key:e},{default:B(()=>[x(v(e),1)]),_:2},1024))),128))]),default:B(({data:e,node:t})=>[d("div",ip,[d("span",null,v(e.label),1),t.isLeaf&&e.shortCode?(l(),s("span",rp,v(e.shortCode),1)):f("",!0)])]),empty:B(()=>[d("div",sp,[C.value?(l(),s("div",lp,[t[1]||(t[1]=d("i",{class:"el-icon-loading jc:mr-1"},null,-1)),x(" "+v(I.value?"Searching...":"正在搜索中..."),1)])):(l(),s("div",cp,[d("p",null,v(I.value?"No results found. ":"暂无结果,"),1),d("div",dp,[d("span",{class:"jc:font-medium jc:text-[14px] jc:text-[#ff6a00] jc:cursor-pointer jc:hover:underline",onClick:w(U,["stop"])},v(I.value?"Apply for data addition":"申请补充数据 "),1),d("img",{src:E(Fa),alt:"more",class:"jc:size-4 jc:cursor-pointer",onClick:w(U,["stop"])},null,8,up)])]))])]),_:1},8,["modelValue","options","props","placeholder","loading"])]))}}),hp=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:pp},Symbol.toStringTag,{value:"Module"})),fp={},mp=(...e)=>{for(const t of e)if("string"==typeof t){const e=t.trim();if(e)return e}return""},gp=(...e)=>{for(const t of e){if("boolean"==typeof t)return t;if("string"==typeof t){const e=t.trim().toLowerCase();if("true"===e)return!0;if("false"===e)return!1}}},yp=e=>{const t=e.__jctransTrackHandler__;t&&(e.removeEventListener(t.trigger,t.handler),delete e.__jctransTrackHandler__)},vp=(e,t,a)=>{yp(e);const n=(e=>{const t=e.value;return"string"==typeof t?{eventName:t.trim(),trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1}:t&&"object"==typeof t?{eventName:mp(t.event,t.name,e.arg),trigger:mp(t.trigger)||"click",attrs:t.attributes||t.attrs||{},once:Boolean(t.once),stop:Boolean(t.stop),prevent:Boolean(t.prevent),callback:"function"==typeof t.onTracked?t.onTracked:"function"==typeof t.callback?t.callback:void 0}:{eventName:"",trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1}})(t);if(!n.eventName)return;const o=t=>{n.prevent&&"preventDefault"in t&&t.preventDefault(),n.stop&&"stopPropagation"in t&&t.stopPropagation(),a.isInitialized()&&a.track(n.eventName,n.attrs,()=>{n.callback?.({event:t,eventName:n.eventName,attrs:n.attrs,trigger:n.trigger})}),n.once&&yp(e)};e.addEventListener(n.trigger,o),e.__jctransTrackHandler__={eventName:n.eventName,trigger:n.trigger,handler:o}};function wp(e){return{install(t){const a=_e,n=fp||{},o=e||{},i=(e=>{if("undefined"==typeof window)return{};const t=window,a=t?.[e],n=t?.__JCTRANS_GIO_CONFIG__,o=t?.__GIO_CONFIG__,i=a||n||o;return i&&"object"==typeof i?i:{}})(mp(o.globalVarName,"__JCTRANS_GIO_CONFIG__")),r=gp(i.enabled,o.enabled,n.VITE_GIO_ENABLED),s={...o.initOptions||{},...i.initOptions||{}};if(!s.serverUrl){const e=mp(i.serverUrl,o.serverUrl,n.VITE_GIO_SERVER_URL);e&&(s.serverUrl=e)}const l=mp(i.accountId,o.accountId,n.VITE_GIO_ACCOUNT_ID),c=mp(i.dataSourceId,o.dataSourceId,n.VITE_GIO_DATA_SOURCE_ID,n.VITE_GIO_DATASOURCE_ID),d=mp(i.appId,o.appId,n.VITE_GIO_APP_ID),u=gp(i.autoInit,o.autoInit,n.VITE_GIO_AUTO_INIT),p=(h=i.directiveName||o.directiveName,(mp(h)||"gio-track").replace(/^v-/,""));var h;(r??1)&&(u??1)&&l&&c&&!a.isInitialized()&&(d?a.init(l,c,d,s):a.init(l,c,s));const f=(e=>(t,a)=>{const n=mp(t);n&&e.isInitialized()&&e.track(n,a||{})})(a);t.config.globalProperties.$gio=a,t.config.globalProperties.$trackEvent=f,t.provide("gio",a),t.provide("trackEvent",f);const m={mounted(e,t){vp(e,t,a)},updated(e,t){vp(e,t,a)},beforeUnmount(e){yp(e)}};t.directive(p,m)}}}let Cp={open(){G.emit(X.Open)},close(){G.emit(X.Close)},onSubmit(e){G.on(X.Submit,e)}};function bp(){let e=!1;return{install(t){if("undefined"!=typeof window&&!e){const t=document.createElement("div");t.setAttribute("id","global-modal-root"),document.body.appendChild(t),H(Lr).mount(t),e=!0}t.config.globalProperties.$globalModal=Cp}}}const Ap=/* @__PURE__ */Object.assign({"./components/ApplyDataDialog.vue":ro,"./components/ChineseCompanySearch/index.vue":uo,"./components/CodeInput.vue":Dr,"./components/GlobalModal.vue":Mr,"./components/GoogleInput.vue":vo,"./components/JcCarrierSearch/AirCarrierSearch.vue":jr,"./components/JcCarrierSearch/AirLineSearch.vue":Hr,"./components/JcCarrierSearch/SeaCarrierSearch.vue":Jr,"./components/JcCarrierSearch/SeaLineSearch.vue":Qr,"./components/JcCarrierSearch/index.vue":ns,"./components/JcFloatInput.vue":xo,"./components/JcFloatWrapper.vue":ds,"./components/JcLoginDialog/index.vue":Eu,"./components/JcMSearch/index.vue":np,"./components/JcSearch/index.vue":pn,"./components/JcVerifySlide/index.vue":Tr,"./components/LineCascader/index.vue":hp}),Ep={};Object.entries(Ap).forEach(([e,t])=>{const a=e.split("/"),n=a.pop()||"",o=a.pop()||"";let i="";i="index.vue"===n?o:n.replace(/\.vue$/,""),i&&t.default&&(Ep[i]=t.default)});const{ApplyDataDialog:kp,JcSearch:xp,GlobalModal:Sp,JcMSearch:Ip,ChineseCompanySearch:Bp,JcLoginDialog:Vp,CodeInput:Tp,GoogleInput:Pp,JcFloatInput:Rp,JcFloatWrapper:Np,JcVerifySlide:Dp,JcCarrierSearch:Up,AirCarrierSearch:Fp,SeaCarrierSearch:_p,AirLineSearch:Lp,SeaLineSearch:Mp,LineCascader:Op}=Ep;let jp=!1;const qp={install(e,t){if(!jp){jp=!0,t?.sharedConfig&&Le(t.sharedConfig),t?.tracking&&e.use(wp(t.tracking));for(const t in Ep)e.component(t,Ep[t]),console.log(`[JcUI] 自动注册组件: ${t}`)}}};export{Fp as AirCarrierSearch,Lp as AirLineSearch,kp as ApplyDataDialog,Bp as ChineseCompanySearch,Tp as CodeInput,Sp as GlobalModal,Pp as GoogleInput,Up as JcCarrierSearch,Rp as JcFloatInput,Np as JcFloatWrapper,Vp as JcLoginDialog,Ip as JcMSearch,xp as JcSearch,Dp as JcVerifySlide,Op as LineCascader,Me as MODAL_ACTION,_p as SeaCarrierSearch,Mp as SeaLineSearch,wp as createGioTrackingPlugin,bp as createGlobalModalPlugin,Oe as createRequest,qp as default,je as emitter,qe as getAppId,He as initSharedConfig};
|