@jctrans-materials/comps-vue2 1.0.41-beta.0 → 1.0.41-beta.3

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/dist/index.cjs.js CHANGED
@@ -1 +1,37 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const T=require("vue-demi"),V=require("@jctrans-materials/shared"),Q=require("jctrans-ui");function kr(r){const e=T.ref([]),n="_search_history_cache",t=typeof window!="undefined"&&typeof localStorage!="undefined",o=T.computed(()=>(r.value||"")+n),l=T.computed(()=>!!r.value&&r.value!==""),c=v=>{if(!v||!t)return;const a=e.value.filter(g=>g.id&&g.id!==v.id||g.display!==v.display);a.unshift(v);const i=a.slice(0,4);if(l.value){e.value=i;try{localStorage.setItem(o.value,JSON.stringify(i))}catch(g){console.warn("LocalStorage save failed:",g)}}},f=()=>{e.value=[],t&&localStorage.removeItem(o.value)};return T.onMounted(()=>{if(t&&l.value){const v=localStorage.getItem(o.value);if(v)try{e.value=JSON.parse(v)}catch{e.value=[]}}}),{searchHistory:e,saveToHistory:c,clearHistory:f,HasHistory:l}}async function Rr(r,e=["Continent","Country","City","Seaport","Airport"],n={}){return V.locationSearchV2.searchByName({keyword:r,displayInfo:e,...n})}const Pe=(r,e)=>V.locationSearchV2.searchByIdWithType(r,e);function Ir(r,e){const n=T.ref([]),t=T.ref(!1),o=T.ref(!1),l=T.ref(1),c=T.ref(0),f=T.ref(10),v=T.computed(()=>c.value===0?!1:n.value.length>=c.value),a=T.computed(()=>{const s=[...e.value];return s.includes("Country")&&!s.includes("Region")&&s.push("Region"),s}),i=s=>!s||!Array.isArray(s)?[]:s.filter(x=>a.value.includes(x.type));return{searchResults:n,loading:t,isFetchingMore:o,isFinished:v,currentPage:l,total:c,fetchData:async(s=1,x=!1)=>{if(!r.value.trim()&&!x){n.value=[],c.value=0;return}if(!(x&&(o.value||v.value))&&!(!x&&t.value)){x?o.value=!0:(t.value=!0,l.value=1);try{const d=await Rr(r.value,e.value,{current:s,size:f.value}),C=d.records||[],p=i(C);x?n.value=[...n.value,...p]:n.value=p,c.value=d.total||0,l.value=s}catch(d){console.error("Failed to fetch search results:",d)}finally{t.value=!1,o.value=!1}}},filterByTypes:i}}const _0=Math.min,Y=Math.max,De=Math.round,W0=Math.floor,o0=r=>({x:r,y:r}),Or={left:"right",right:"left",bottom:"top",top:"bottom"},Hr={start:"end",end:"start"};function st(r,e,n){return Y(r,_0(e,n))}function T0(r,e){return typeof r=="function"?r(e):r}function d0(r){return r.split("-")[0]}function P0(r){return r.split("-")[1]}function er(r){return r==="x"?"y":"x"}function tr(r){return r==="y"?"height":"width"}const Tr=new Set(["top","bottom"]);function l0(r){return Tr.has(d0(r))?"y":"x"}function rr(r){return er(l0(r))}function Pr(r,e,n){n===void 0&&(n=!1);const t=P0(r),o=rr(r),l=tr(o);let c=o==="x"?t===(n?"end":"start")?"right":"left":t==="start"?"bottom":"top";return e.reference[l]>e.floating[l]&&(c=be(c)),[c,be(c)]}function $r(r){const e=be(r);return[Ne(r),e,Ne(e)]}function Ne(r){return r.replace(/start|end/g,e=>Hr[e])}const ct=["left","right"],lt=["right","left"],Lr=["top","bottom"],zr=["bottom","top"];function Nr(r,e,n){switch(r){case"top":case"bottom":return n?e?lt:ct:e?ct:lt;case"left":case"right":return e?Lr:zr;default:return[]}}function qr(r,e,n,t){const o=P0(r);let l=Nr(d0(r),n==="start",t);return o&&(l=l.map(c=>c+"-"+o),e&&(l=l.concat(l.map(Ne)))),l}function be(r){return r.replace(/left|right|bottom|top/g,e=>Or[e])}function Wr(r){return{top:0,right:0,bottom:0,left:0,...r}}function Mr(r){return typeof r!="number"?Wr(r):{top:r,right:r,bottom:r,left:r}}function Fe(r){const{x:e,y:n,width:t,height:o}=r;return{width:t,height:o,top:n,left:e,right:e+t,bottom:n+o,x:e,y:n}}function xt(r,e,n){let{reference:t,floating:o}=r;const l=l0(e),c=rr(e),f=tr(c),v=d0(e),a=l==="y",i=t.x+t.width/2-o.width/2,g=t.y+t.height/2-o.height/2,s=t[f]/2-o[f]/2;let x;switch(v){case"top":x={x:i,y:t.y-o.height};break;case"bottom":x={x:i,y:t.y+t.height};break;case"right":x={x:t.x+t.width,y:g};break;case"left":x={x:t.x-o.width,y:g};break;default:x={x:t.x,y:t.y}}switch(P0(e)){case"start":x[c]-=s*(n&&a?-1:1);break;case"end":x[c]+=s*(n&&a?-1:1);break}return x}const Vr=async(r,e,n)=>{const{placement:t="bottom",strategy:o="absolute",middleware:l=[],platform:c}=n,f=l.filter(Boolean),v=await(c.isRTL==null?void 0:c.isRTL(e));let a=await c.getElementRects({reference:r,floating:e,strategy:o}),{x:i,y:g}=xt(a,t,v),s=t,x={},d=0;for(let C=0;C<f.length;C++){const{name:p,fn:A}=f[C],{x:u,y:h,data:m,reset:E}=await A({x:i,y:g,initialPlacement:t,placement:s,strategy:o,middlewareData:x,rects:a,platform:c,elements:{reference:r,floating:e}});i=u!=null?u:i,g=h!=null?h:g,x={...x,[p]:{...x[p],...m}},E&&d<=50&&(d++,typeof E=="object"&&(E.placement&&(s=E.placement),E.rects&&(a=E.rects===!0?await c.getElementRects({reference:r,floating:e,strategy:o}):E.rects),{x:i,y:g}=xt(a,s,v)),C=-1)}return{x:i,y:g,placement:s,strategy:o,middlewareData:x}};async function Me(r,e){var n;e===void 0&&(e={});const{x:t,y:o,platform:l,rects:c,elements:f,strategy:v}=r,{boundary:a="clippingAncestors",rootBoundary:i="viewport",elementContext:g="floating",altBoundary:s=!1,padding:x=0}=T0(e,r),d=Mr(x),p=f[s?g==="floating"?"reference":"floating":g],A=Fe(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(p)))==null||n?p:p.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:a,rootBoundary:i,strategy:v})),u=g==="floating"?{x:t,y:o,width:c.floating.width,height:c.floating.height}:c.reference,h=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),m=await(l.isElement==null?void 0:l.isElement(h))?await(l.getScale==null?void 0:l.getScale(h))||{x:1,y:1}:{x:1,y:1},E=Fe(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:u,offsetParent:h,strategy:v}):u);return{top:(A.top-E.top+d.top)/m.y,bottom:(E.bottom-A.bottom+d.bottom)/m.y,left:(A.left-E.left+d.left)/m.x,right:(E.right-A.right+d.right)/m.x}}const Ur=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(e){var n,t;const{placement:o,middlewareData:l,rects:c,initialPlacement:f,platform:v,elements:a}=e,{mainAxis:i=!0,crossAxis:g=!0,fallbackPlacements:s,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:C=!0,...p}=T0(r,e);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const A=d0(o),u=l0(f),h=d0(f)===f,m=await(v.isRTL==null?void 0:v.isRTL(a.floating)),E=s||(h||!C?[be(f)]:$r(f)),y=d!=="none";!s&&y&&E.push(...qr(f,C,d,m));const _=[f,...E],b=await Me(e,p),S=[];let B=((t=l.flip)==null?void 0:t.overflows)||[];if(i&&S.push(b[A]),g){const P=Pr(o,c,m);S.push(b[P[0]],b[P[1]])}if(B=[...B,{placement:o,overflows:S}],!S.every(P=>P<=0)){var D,F;const P=(((D=l.flip)==null?void 0:D.index)||0)+1,$=_[P];if($&&(!(g==="alignment"?u!==l0($):!1)||B.every(H=>l0(H.placement)===u?H.overflows[0]>0:!0)))return{data:{index:P,overflows:B},reset:{placement:$}};let L=(F=B.filter(W=>W.overflows[0]<=0).sort((W,H)=>W.overflows[1]-H.overflows[1])[0])==null?void 0:F.placement;if(!L)switch(x){case"bestFit":{var k;const W=(k=B.filter(H=>{if(y){const N=l0(H.placement);return N===u||N==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(N=>N>0).reduce((N,z)=>N+z,0)]).sort((H,N)=>H[1]-N[1])[0])==null?void 0:k[0];W&&(L=W);break}case"initialPlacement":L=f;break}if(o!==L)return{reset:{placement:L}}}return{}}}},jr=new Set(["left","top"]);async function Gr(r,e){const{placement:n,platform:t,elements:o}=r,l=await(t.isRTL==null?void 0:t.isRTL(o.floating)),c=d0(n),f=P0(n),v=l0(n)==="y",a=jr.has(c)?-1:1,i=l&&v?-1:1,g=T0(e,r);let{mainAxis:s,crossAxis:x,alignmentAxis:d}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof d=="number"&&(x=f==="end"?d*-1:d),v?{x:x*i,y:s*a}:{x:s*a,y:x*i}}const Qr=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var n,t;const{x:o,y:l,placement:c,middlewareData:f}=e,v=await Gr(e,r);return c===((n=f.offset)==null?void 0:n.placement)&&(t=f.arrow)!=null&&t.alignmentOffset?{}:{x:o+v.x,y:l+v.y,data:{...v,placement:c}}}}},Kr=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){const{x:n,y:t,placement:o}=e,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:p=>{let{x:A,y:u}=p;return{x:A,y:u}}},...v}=T0(r,e),a={x:n,y:t},i=await Me(e,v),g=l0(d0(o)),s=er(g);let x=a[s],d=a[g];if(l){const p=s==="y"?"top":"left",A=s==="y"?"bottom":"right",u=x+i[p],h=x-i[A];x=st(u,x,h)}if(c){const p=g==="y"?"top":"left",A=g==="y"?"bottom":"right",u=d+i[p],h=d-i[A];d=st(u,d,h)}const C=f.fn({...e,[s]:x,[g]:d});return{...C,data:{x:C.x-n,y:C.y-t,enabled:{[s]:l,[g]:c}}}}}},Xr=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){var n,t;const{placement:o,rects:l,platform:c,elements:f}=e,{apply:v=()=>{},...a}=T0(r,e),i=await Me(e,a),g=d0(o),s=P0(o),x=l0(o)==="y",{width:d,height:C}=l.floating;let p,A;g==="top"||g==="bottom"?(p=g,A=s===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(A=g,p=s==="end"?"top":"bottom");const u=C-i.top-i.bottom,h=d-i.left-i.right,m=_0(C-i[p],u),E=_0(d-i[A],h),y=!e.middlewareData.shift;let _=m,b=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(b=h),(t=e.middlewareData.shift)!=null&&t.enabled.y&&(_=u),y&&!s){const B=Y(i.left,0),D=Y(i.right,0),F=Y(i.top,0),k=Y(i.bottom,0);x?b=d-2*(B!==0||D!==0?B+D:Y(i.left,i.right)):_=C-2*(F!==0||k!==0?F+k:Y(i.top,i.bottom))}await v({...e,availableWidth:b,availableHeight:_});const S=await c.getDimensions(f.floating);return d!==S.width||C!==S.height?{reset:{rects:!0}}:{}}}};function Se(){return typeof window!="undefined"}function b0(r){return nr(r)?(r.nodeName||"").toLowerCase():"#document"}function Z(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function s0(r){var e;return(e=(nr(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function nr(r){return Se()?r instanceof Node||r instanceof Z(r).Node:!1}function n0(r){return Se()?r instanceof Element||r instanceof Z(r).Element:!1}function i0(r){return Se()?r instanceof HTMLElement||r instanceof Z(r).HTMLElement:!1}function ft(r){return!Se()||typeof ShadowRoot=="undefined"?!1:r instanceof ShadowRoot||r instanceof Z(r).ShadowRoot}const Jr=new Set(["inline","contents"]);function $0(r){const{overflow:e,overflowX:n,overflowY:t,display:o}=a0(r);return/auto|scroll|overlay|hidden|clip/.test(e+t+n)&&!Jr.has(o)}const Yr=new Set(["table","td","th"]);function Zr(r){return Yr.has(b0(r))}const en=[":popover-open",":modal"];function ke(r){return en.some(e=>{try{return r.matches(e)}catch{return!1}})}const tn=["transform","translate","scale","rotate","perspective"],rn=["transform","translate","scale","rotate","perspective","filter"],nn=["paint","layout","strict","content"];function Ve(r){const e=Ue(),n=n0(r)?a0(r):r;return tn.some(t=>n[t]?n[t]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||rn.some(t=>(n.willChange||"").includes(t))||nn.some(t=>(n.contain||"").includes(t))}function an(r){let e=h0(r);for(;i0(e)&&!D0(e);){if(Ve(e))return e;if(ke(e))return null;e=h0(e)}return null}function Ue(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const on=new Set(["html","body","#document"]);function D0(r){return on.has(b0(r))}function a0(r){return Z(r).getComputedStyle(r)}function Re(r){return n0(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function h0(r){if(b0(r)==="html")return r;const e=r.assignedSlot||r.parentNode||ft(r)&&r.host||s0(r);return ft(e)?e.host:e}function ar(r){const e=h0(r);return D0(e)?r.ownerDocument?r.ownerDocument.body:r.body:i0(e)&&$0(e)?e:ar(e)}function H0(r,e,n){var t;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=ar(r),l=o===((t=r.ownerDocument)==null?void 0:t.body),c=Z(o);if(l){const f=qe(c);return e.concat(c,c.visualViewport||[],$0(o)?o:[],f&&n?H0(f):[])}return e.concat(o,H0(o,[],n))}function qe(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function or(r){const e=a0(r);let n=parseFloat(e.width)||0,t=parseFloat(e.height)||0;const o=i0(r),l=o?r.offsetWidth:n,c=o?r.offsetHeight:t,f=De(n)!==l||De(t)!==c;return f&&(n=l,t=c),{width:n,height:t,$:f}}function je(r){return n0(r)?r:r.contextElement}function E0(r){const e=je(r);if(!i0(e))return o0(1);const n=e.getBoundingClientRect(),{width:t,height:o,$:l}=or(e);let c=(l?De(n.width):n.width)/t,f=(l?De(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const sn=o0(0);function ir(r){const e=Z(r);return!Ue()||!e.visualViewport?sn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function cn(r,e,n){return e===void 0&&(e=!1),!n||e&&n!==Z(r)?!1:e}function g0(r,e,n,t){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=r.getBoundingClientRect(),l=je(r);let c=o0(1);e&&(t?n0(t)&&(c=E0(t)):c=E0(r));const f=cn(l,n,t)?ir(l):o0(0);let v=(o.left+f.x)/c.x,a=(o.top+f.y)/c.y,i=o.width/c.x,g=o.height/c.y;if(l){const s=Z(l),x=t&&n0(t)?Z(t):t;let d=s,C=qe(d);for(;C&&t&&x!==d;){const p=E0(C),A=C.getBoundingClientRect(),u=a0(C),h=A.left+(C.clientLeft+parseFloat(u.paddingLeft))*p.x,m=A.top+(C.clientTop+parseFloat(u.paddingTop))*p.y;v*=p.x,a*=p.y,i*=p.x,g*=p.y,v+=h,a+=m,d=Z(C),C=qe(d)}}return Fe({width:i,height:g,x:v,y:a})}function Ie(r,e){const n=Re(r).scrollLeft;return e?e.left+n:g0(s0(r)).left+n}function sr(r,e){const n=r.getBoundingClientRect(),t=n.left+e.scrollLeft-Ie(r,n),o=n.top+e.scrollTop;return{x:t,y:o}}function ln(r){let{elements:e,rect:n,offsetParent:t,strategy:o}=r;const l=o==="fixed",c=s0(t),f=e?ke(e.floating):!1;if(t===c||f&&l)return n;let v={scrollLeft:0,scrollTop:0},a=o0(1);const i=o0(0),g=i0(t);if((g||!g&&!l)&&((b0(t)!=="body"||$0(c))&&(v=Re(t)),i0(t))){const x=g0(t);a=E0(t),i.x=x.x+t.clientLeft,i.y=x.y+t.clientTop}const s=c&&!g&&!l?sr(c,v):o0(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-v.scrollLeft*a.x+i.x+s.x,y:n.y*a.y-v.scrollTop*a.y+i.y+s.y}}function xn(r){return Array.from(r.getClientRects())}function fn(r){const e=s0(r),n=Re(r),t=r.ownerDocument.body,o=Y(e.scrollWidth,e.clientWidth,t.scrollWidth,t.clientWidth),l=Y(e.scrollHeight,e.clientHeight,t.scrollHeight,t.clientHeight);let c=-n.scrollLeft+Ie(r);const f=-n.scrollTop;return a0(t).direction==="rtl"&&(c+=Y(e.clientWidth,t.clientWidth)-o),{width:o,height:l,x:c,y:f}}const ut=25;function un(r,e){const n=Z(r),t=s0(r),o=n.visualViewport;let l=t.clientWidth,c=t.clientHeight,f=0,v=0;if(o){l=o.width,c=o.height;const i=Ue();(!i||i&&e==="fixed")&&(f=o.offsetLeft,v=o.offsetTop)}const a=Ie(t);if(a<=0){const i=t.ownerDocument,g=i.body,s=getComputedStyle(g),x=i.compatMode==="CSS1Compat"&&parseFloat(s.marginLeft)+parseFloat(s.marginRight)||0,d=Math.abs(t.clientWidth-g.clientWidth-x);d<=ut&&(l-=d)}else a<=ut&&(l+=a);return{width:l,height:c,x:f,y:v}}const dn=new Set(["absolute","fixed"]);function hn(r,e){const n=g0(r,!0,e==="fixed"),t=n.top+r.clientTop,o=n.left+r.clientLeft,l=i0(r)?E0(r):o0(1),c=r.clientWidth*l.x,f=r.clientHeight*l.y,v=o*l.x,a=t*l.y;return{width:c,height:f,x:v,y:a}}function dt(r,e,n){let t;if(e==="viewport")t=un(r,n);else if(e==="document")t=fn(s0(r));else if(n0(e))t=hn(e,n);else{const o=ir(r);t={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return Fe(t)}function cr(r,e){const n=h0(r);return n===e||!n0(n)||D0(n)?!1:a0(n).position==="fixed"||cr(n,e)}function vn(r,e){const n=e.get(r);if(n)return n;let t=H0(r,[],!1).filter(f=>n0(f)&&b0(f)!=="body"),o=null;const l=a0(r).position==="fixed";let c=l?h0(r):r;for(;n0(c)&&!D0(c);){const f=a0(c),v=Ve(c);!v&&f.position==="fixed"&&(o=null),(l?!v&&!o:!v&&f.position==="static"&&!!o&&dn.has(o.position)||$0(c)&&!v&&cr(r,c))?t=t.filter(i=>i!==c):o=f,c=h0(c)}return e.set(r,t),t}function pn(r){let{element:e,boundary:n,rootBoundary:t,strategy:o}=r;const c=[...n==="clippingAncestors"?ke(e)?[]:vn(e,this._c):[].concat(n),t],f=c[0],v=c.reduce((a,i)=>{const g=dt(e,i,o);return a.top=Y(g.top,a.top),a.right=_0(g.right,a.right),a.bottom=_0(g.bottom,a.bottom),a.left=Y(g.left,a.left),a},dt(e,f,o));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function gn(r){const{width:e,height:n}=or(r);return{width:e,height:n}}function Cn(r,e,n){const t=i0(e),o=s0(e),l=n==="fixed",c=g0(r,!0,l,e);let f={scrollLeft:0,scrollTop:0};const v=o0(0);function a(){v.x=Ie(o)}if(t||!t&&!l)if((b0(e)!=="body"||$0(o))&&(f=Re(e)),t){const x=g0(e,!0,l,e);v.x=x.x+e.clientLeft,v.y=x.y+e.clientTop}else o&&a();l&&!t&&o&&a();const i=o&&!t&&!l?sr(o,f):o0(0),g=c.left+f.scrollLeft-v.x-i.x,s=c.top+f.scrollTop-v.y-i.y;return{x:g,y:s,width:c.width,height:c.height}}function $e(r){return a0(r).position==="static"}function ht(r,e){if(!i0(r)||a0(r).position==="fixed")return null;if(e)return e(r);let n=r.offsetParent;return s0(r)===n&&(n=n.ownerDocument.body),n}function lr(r,e){const n=Z(r);if(ke(r))return n;if(!i0(r)){let o=h0(r);for(;o&&!D0(o);){if(n0(o)&&!$e(o))return o;o=h0(o)}return n}let t=ht(r,e);for(;t&&Zr(t)&&$e(t);)t=ht(t,e);return t&&D0(t)&&$e(t)&&!Ve(t)?n:t||an(r)||n}const mn=async function(r){const e=this.getOffsetParent||lr,n=this.getDimensions,t=await n(r.floating);return{reference:Cn(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:t.width,height:t.height}}};function An(r){return a0(r).direction==="rtl"}const yn={convertOffsetParentRelativeRectToViewportRelativeRect:ln,getDocumentElement:s0,getClippingRect:pn,getOffsetParent:lr,getElementRects:mn,getClientRects:xn,getDimensions:gn,getScale:E0,isElement:n0,isRTL:An};function xr(r,e){return r.x===e.x&&r.y===e.y&&r.width===e.width&&r.height===e.height}function Bn(r,e){let n=null,t;const o=s0(r);function l(){var f;clearTimeout(t),(f=n)==null||f.disconnect(),n=null}function c(f,v){f===void 0&&(f=!1),v===void 0&&(v=1),l();const a=r.getBoundingClientRect(),{left:i,top:g,width:s,height:x}=a;if(f||e(),!s||!x)return;const d=W0(g),C=W0(o.clientWidth-(i+s)),p=W0(o.clientHeight-(g+x)),A=W0(i),h={rootMargin:-d+"px "+-C+"px "+-p+"px "+-A+"px",threshold:Y(0,_0(1,v))||1};let m=!0;function E(y){const _=y[0].intersectionRatio;if(_!==v){if(!m)return c();_?c(!1,_):t=setTimeout(()=>{c(!1,1e-7)},1e3)}_===1&&!xr(a,r.getBoundingClientRect())&&c(),m=!1}try{n=new IntersectionObserver(E,{...h,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,h)}n.observe(r)}return c(!0),l}function En(r,e,n,t){t===void 0&&(t={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:v=!1}=t,a=je(r),i=o||l?[...a?H0(a):[],...H0(e)]:[];i.forEach(A=>{o&&A.addEventListener("scroll",n,{passive:!0}),l&&A.addEventListener("resize",n)});const g=a&&f?Bn(a,n):null;let s=-1,x=null;c&&(x=new ResizeObserver(A=>{let[u]=A;u&&u.target===a&&x&&(x.unobserve(e),cancelAnimationFrame(s),s=requestAnimationFrame(()=>{var h;(h=x)==null||h.observe(e)})),n()}),a&&!v&&x.observe(a),x.observe(e));let d,C=v?g0(r):null;v&&p();function p(){const A=g0(r);C&&!xr(C,A)&&n(),C=A,d=requestAnimationFrame(p)}return n(),()=>{var A;i.forEach(u=>{o&&u.removeEventListener("scroll",n),l&&u.removeEventListener("resize",n)}),g==null||g(),(A=x)==null||A.disconnect(),x=null,v&&cancelAnimationFrame(d)}}const _n=Qr,Dn=Kr,bn=Ur,Fn=Xr,wn=(r,e,n)=>{const t=new Map,o={platform:yn,...n},l={...o.platform,_c:t};return Vr(r,e,{...o,platform:l})};function Sn(r,e){const n=T.ref({position:"fixed",left:"0",top:"0",zIndex:3e3});let t=null;const o=()=>{!r.value||!e.value||wn(r.value,e.value,{placement:"bottom-start",strategy:"fixed",middleware:[_n(6),bn(),Dn({padding:10}),Fn({apply({rects:f,elements:v,availableWidth:a}){const i=`${f.reference.width}px`,g=f.reference.width;Object.assign(v.floating.style,{width:"max-content",minWidth:i,maxWidth:`${Math.max(g,a-20)}px`})}})]}).then(({x:f,y:v})=>{Object.assign(n.value,{left:`${f}px`,top:`${v}px`})})},l=()=>{r.value&&e.value&&(t=En(r.value,e.value,o))},c=()=>{t&&(t(),t=null)};return T.onBeforeUnmount(c),{floatingStyles:n,startTrack:l,stopTrack:c}}const kn="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",fr="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",Rn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVR4AaRQO07DQBCdWe8B4B5IFFyAK9ARkIVNhIQEEiVtJLgABRVRvIBCJBquwBVyDgoaSnuHeZY3MlYcNsnIb8fze6M3hra0XoKJm95N3Nv3EnyhFvb2EgjRJbOMKqmO2tDcvQ5fK+qvl4CJbOn9/CJPP9tArp5sHtP4lc652VXxPL1Z1hRFIOytF1NuTJCfnT4Ms8HjSgJctn1xIt6hxqIkdK+u8U8zT1ESmP5enUkWmqMkhG2FmxXOvR+EGD5KAhoDqsQvtiMXJQGNQJ4N8mF6PMd/wL8SxuOXPSG21pj9p+L1EOjGyAHoQQ0zWGDqx9pbPWIpwqOEkw+gGyMHoAc1ozOkVhOcZyepYndNpDpPvwAAAP//BVQJHAAAAAZJREFUAwDZWL4hub5xHQAAAABJRU5ErkJggg==",In="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACC0lEQVR4AXxRv2tTURT+zk1iIjgoOMShkIJVNwf/gQYULOjQwaGvGl8TBMEMDg4ODgF17likvL4HIYm4OLg61K2CooWKDoKCDoJDHASb9N17POf5Enwk6eN+9/z+3nfvNZjxbYS9ymbYXlQ8CbvnZrRhKoEOFMl9zFHuuaJA/E4Jp5FMJTCwZWner/veCYX6ecQVsRNrKsFE1yGJDMFW1Hm4FXX7hnIvADquvkJ9zYn/U3vw35chYOA2Ebcc26uWbVWwnKKqOak9ktmmYLwyBATkY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o2QyJz7dCLj6JTj6tRxVyf3izZUtNndwM73SU55JzaO4Q8AAAD//54At5MAAAAGSURBVAMAh2IbMAJQAZQAAAAASUVORK5CYII=";function Pn(r,e,n){const t=T.ref(!1),o=()=>t.value=!0,l=()=>t.value=!1;return{isDropdownVisible:t,openDropdown:o,closeDropdown:l,handleAfterSelect:()=>{var v,a;r?(v=e.value)==null||v.focus():(n.value="",l(),(a=e.value)==null||a.blur())},handleBlur:()=>{setTimeout(()=>{l(),r&&(n.value="")},200)}}}const $n=T.defineComponent({name:"GlobalSearch",model:{prop:"value",event:"input"},props:{value:{type:[Object,Array],default:null},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},searchTypeList:{type:Array,default:()=>["City","Seaport","Airport","Country"]},historyKey:{type:String,default:""},lang:{type:String,default:""},placeholder:{type:String,default:""},showSearchIcon:{type:Boolean,default:!0},showItemTag:{type:Boolean,default:!0},showApplyData:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},setup(r,{emit:e}){const n=T.ref(""),t=T.ref(!1),o=T.ref(""),l=T.ref(null),c=T.ref(null),f=T.ref(null),v=T.ref(null),a=T.ref(!1),{searchHistory:i,saveToHistory:g,clearHistory:s}=kr(T.toRef(r,"historyKey")),{searchResults:x,loading:d,isFetchingMore:C,isFinished:p,currentPage:A,fetchData:u,filterByTypes:h}=Ir(n,T.toRef(r,"searchTypeList")),{floatingStyles:m,startTrack:E,stopTrack:y}=Sn(f,v),{isDropdownVisible:_,openDropdown:b,handleAfterSelect:S,handleBlur:B}=Pn(T.toRef(r,"multiple").value,c,n),D=async()=>{if(b(),!r.multiple&&t.value&&x.value.length===0){const H=r.value;if(H!=null&&H.id){d.value=!0;try{const N=await Pe(H.id,H.type);x.value=h(N.records)}finally{d.value=!1}}}},F=H=>{H.target.value===""&&!r.multiple&&(t.value=!1,e("input",null),e("update:value",null))},k=()=>{var H;if(r.multiple&&!n.value&&((H=r.value)==null?void 0:H.length)>0){const N=[...r.value],z=N.pop();e("input",N),e("update:value",N),e("remove",z)}};T.watch(_,H=>H?E():y()),T.watch(n,H=>{if(!H.trim()){x.value=[];return}l.value&&clearTimeout(l.value),l.value=setTimeout(()=>u(1,!1),300)});const P=T.computed(()=>r.lang?r.lang==="en"||r.lang==="en-US":typeof document!="undefined"?/(^|;\s*)jc-language=en(-US)?(;|$)/.test(document.cookie||""):!1),$=T.computed(()=>x.value.length>0||d.value||n.value||i.value.length>0),L=H=>P.value?H.displayEn||H.display||H.nameEn||"":H.displayCn||H.display||H.nameCn||H.name||"",W=H=>{e("apply-data",H)};return T.watch(()=>r.value,async(H,N)=>{if(JSON.stringify(H)===JSON.stringify(N))return;if(r.multiple&&Array.isArray(H)){const w=[...H],I=w.filter(O=>O&&O.id&&O.type);if(I.length>0)try{const O=I.map(U=>U.id),R=await Pe(O,I[0].type);if(R&&R.records){let U=!1;const j=w.map(G=>{const q=R.records.find(p0=>p0.id===G.id);return q&&!G.display?(U=!0,{...G,...q}):G});U&&(e("input",j),e("update:value",j))}}catch(O){console.error("Batch fetch detail failed:",O)}return}const z=H;if(!z){t.value=!1,o.value="";return}if(typeof z=="object")if(z.id&&z.type&&!z.display)try{const I=(await Pe(z.id,z.type)).records.find(O=>O.id===z.id);I&&(o.value=L(I),t.value=!0)}catch(w){console.error("Single fetch detail failed:",w)}else o.value=L(z),t.value=!!o.value;else o.value=String(z),t.value=!!z},{immediate:!0,deep:!0}),T.onBeforeUnmount(y),{query:n,isSelected:t,isDropdownVisible:_,applyDataVisible:a,selectedLabel:o,inputRef:c,referenceRef:f,floatingRef:v,hasContentToShow:$,searchHistory:i,searchResults:x,loading:d,isFetchingMore:C,isFinished:p,currentPage:A,floatingStyles:m,saveToHistory:g,clearHistory:s,fetchData:u,filterByTypes:h,startTrack:E,stopTrack:y,onFocus:D,handleBlur:B,onInput:F,handleDelete:k,handleConfirmApplyData:W,handleAfterSelect:S,openDropdown:b,SearchIcon:kn,ICON_MORE:fr}},computed:{isEn(){var r,e,n,t,o,l;if(this.lang&&this.lang!=="")return this.lang==="en"||this.lang==="en-US";try{if(typeof useCookie=="function"){const c=(r=useCookie("jc-language"))==null?void 0:r.value;if(c)return/^en(-US)?$/.test(c)}}catch{}if(typeof document!="undefined"){const c=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(c)}try{if(typeof useNuxtApp=="function"){const c=useNuxtApp(),f=((l=(o=(t=(n=(e=c==null?void 0:c.ssrContext)==null?void 0:e.event)==null?void 0:n.node)==null?void 0:t.req)==null?void 0:o.headers)==null?void 0:l.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(f)}}catch{}return!1},selectedItems(){return this.value?Array.isArray(this.value)?this.value:[this.value]:[]},displayedTags(){return this.collapseTags?this.selectedItems.slice(0,1):this.selectedItems},hasValue(){return this.query||this.selectedItems.length>0},inputWidth(){return this.multiple?this.query?`${this.query.length*10+20}px`:"10px":"100%"},currentPlaceholder(){return this.multiple&&this.selectedItems.length>0?"":this.isSelected&&!this.multiple?this.selectedLabel:this.placeholder?this.placeholder:this.isEn?"Please enter...":"请输入..."}},methods:{focusInput(){var r;(r=this.$refs.inputRef)==null||r.focus()},getItemLabel(r){return this.isEn?r.displayEn||r.display||"":r.displayCn||r.display||""},getItemType(r){const e={City:{en:"City",cn:"城市"},Country:{en:"Country",cn:"国家"},Region:{en:"Region",cn:"区域"},Airport:{en:"Airport",cn:"机场"},Seaport:{en:"Seaport",cn:"港口"}};return this.isEn?e[r].en:e[r].cn},isItemActive(r){return this.selectedItems.some(e=>e.id===r.id)},selectItem(r){this.saveToHistory(r),this.multiple?this.isItemActive(r)||(this.$emit("input",[...this.selectedItems,r]),this.$emit("update:value",[...this.selectedItems,r])):(this.isSelected=!0,this.selectedLabel=this.getItemLabel(r),this.$emit("input",r),this.$emit("update:value",r)),this.$emit("select",r),this.$emit("change",r),this.handleAfterSelect()},removeItem(r){const e=this.selectedItems.filter(n=>n.id!==r.id);this.$emit("input",e),this.$emit("update:value",e),this.$emit("remove",r)},clearAll(){this.query="",this.isSelected=!1,this.selectedLabel="",this.$emit("input",this.multiple?[]:null),this.$emit("update:value",this.multiple?[]:null)},handleSearch(){const r=this.multiple?this.selectedItems:this.isSelected?this.value:null;this.$emit("submit-search",r),this.isDropdownVisible=!1},getIconUrl(r){return{City:Rn,Seaport:In,Airport:On,Country:Hn}[r]||Tn},handleScroll(r){const{scrollTop:e,scrollHeight:n,clientHeight:t}=r.target;e+t>=n-20&&!this.loading&&!this.isFetchingMore&&!this.isFinished&&this.query&&this.fetchData(this.currentPage+1,!0)}}});function x0(r,e,n,t,o,l,c,f){var v=typeof r=="function"?r.options:r;return e&&(v.render=e,v.staticRenderFns=n,v._compiled=!0),l&&(v._scopeId="data-v-"+l),{exports:r,options:v}}var Ln=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",{staticClass:"search-container",class:{"is-disabled":e.disabled}},[n("div",{ref:"referenceRef",staticClass:"search-input-wrapper",class:{"is-multiple":e.multiple},on:{click:e.focusInput}},[n("div",{staticClass:"selection-wrapper"},[e.multiple&&e.selectedItems.length>0?[e._l(e.displayedTags,function(t,o){return n("div",{key:t.id||o,staticClass:"search-tag"},[n("span",{staticClass:"tag-text"},[e._v(e._s(e.getItemLabel(t)))]),n("span",{staticClass:"tag-close",on:{click:function(l){return l.stopPropagation(),e.removeItem(t)}}},[e._v("×")])])}),e.collapseTags&&e.selectedItems.length>1?n("div",{staticClass:"search-tag collapse"},[e._v(" + "+e._s(e.selectedItems.length-1)+" ")]):e._e()]:e._e(),n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"inputRef",class:{"is-selected-state":e.isSelected&&!e.multiple},style:{width:e.inputWidth},attrs:{type:"text",placeholder:e.currentPlaceholder},domProps:{value:e.query},on:{focus:e.onFocus,blur:e.handleBlur,input:[function(t){t.target.composing||(e.query=t.target.value)},e.onInput],keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.handleDelete.apply(null,arguments)}}})],2),n("div",{staticClass:"suffix-area"},[e.hasValue?n("span",{staticClass:"clear-icon",on:{mousedown:function(t){t.preventDefault()},click:function(t){return t.stopPropagation(),e.clearAll.apply(null,arguments)}}},[e._v("ⓧ")]):e._e(),e.loading&&!e.isFetchingMore?n("div",{staticClass:"loading-spinner"}):!e.loading&&e.showSearchIcon?n("button",{staticClass:"search-btn",on:{click:function(t){return t.stopPropagation(),e.handleSearch.apply(null,arguments)}}},[n("span",{staticClass:"search-icon"},[n("img",{attrs:{src:e.SearchIcon,alt:"search"}})])]):e._e()])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isDropdownVisible&&e.hasContentToShow,expression:"isDropdownVisible && hasContentToShow"}],ref:"floatingRef",staticClass:"dropdown-list",style:e.floatingStyles,on:{scroll:e.handleScroll}},[e._t("history",function(){return[e.searchHistory.length>0&&!e.query?n("div",{staticClass:"history-section"},[n("div",{staticClass:"history-header"},[n("span",[e._v(e._s(e.isEn?"Recent search":"最近搜索"))]),n("span",{staticClass:"clear-btn",on:{mousedown:function(t){t.preventDefault()},click:function(t){return t.stopPropagation(),e.clearHistory.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Clear":"清空")+" ")])]),e._l(e.searchHistory,function(t,o){return n("div",{key:"hist-"+o,staticClass:"dropdown-item",on:{mousedown:function(l){return l.preventDefault(),e.selectItem(t)}}},[n("div",{staticClass:"category-tag",style:e.showItemTag?{}:{display:"none"}},[n("img",{staticClass:"type-icon",attrs:{src:e.getIconUrl(t.type),alt:""}}),n("span",{staticClass:"type-text"},[e._v(e._s(e.getItemType(t.type)))])]),n("div",{staticClass:"result-text"},[e._v(e._s(e.getItemLabel(t)))])])}),n("hr",{staticClass:"divider"})],2):e._e()]},{searchHistory:e.searchHistory}),e.loading&&!e.isFetchingMore?n("div",{staticClass:"status-msg"},[e._v(" "+e._s(e.isEn?"Searching...":"正在搜索中...")+" ")]):e.searchResults.length>0?[e._t("results",function(){return e._l(e.searchResults,function(t,o){return n("div",{key:o,staticClass:"dropdown-item",class:{"is-active":e.isItemActive(t)},on:{mousedown:function(l){return l.preventDefault(),e.selectItem(t)}}},[n("div",{staticClass:"category-tag",style:e.showItemTag?{}:{display:"none"}},[n("img",{staticClass:"type-icon",attrs:{src:e.getIconUrl(t.type),alt:""}}),n("span",{staticClass:"type-text"},[e._v(e._s(e.getItemType(t.type)))])]),n("div",{staticClass:"result-text"},[e._v(e._s(e.getItemLabel(t)))])])})},{searchResults:e.searchResults}),e.isFetchingMore?n("div",{staticClass:"load-more-msg"},[e._v(" "+e._s(e.isEn?"Loading more...":"正在加载更多...")+" ")]):e._e()]:e.query&&!e.loading?n("div",{staticClass:"status-msg"},[e._t("noData",function(){return[e.showApplyData?n("div",{staticClass:"no-result-label"},[e._v(" "+e._s(e.isEn?"No results found.":"暂无结果,")+" "),n("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:"4px"}},[n("span",{staticClass:"apply-data",style:{cursor:"pointer",marginLeft:"4px"},on:{click:function(t){return t.stopPropagation(),(()=>e.applyDataVisible=!0).apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Apply for data addition":"申请补充数据 "))]),n("img",{staticClass:"apply-data-more-icon",attrs:{src:e.ICON_MORE,alt:""},on:{click:function(t){return t.stopPropagation(),(()=>e.applyDataVisible=!0).apply(null,arguments)}}})])]):n("p",{staticClass:"no-result-label"},[e._v(" "+e._s(e.isEn?`No results found related to "${e.query}".`:`未找到与 "${e.query}" 相关的结果`)+" ")])]})],2):e._e()],2),n("ApplyDataDialog",{attrs:{value:e.applyDataVisible},on:{"update:value":function(t){e.applyDataVisible=t},confirm:e.handleConfirmApplyData}})],1)},zn=[],Nn=x0($n,Ln,zn,!1,null,"37e83283");const ur=Nn.exports,qn=Object.freeze(Object.defineProperty({__proto__:null,default:ur},Symbol.toStringTag,{value:"Module"})),Wn={__name:"ApplyDataDialog",props:{value:{type:Boolean,default:!1},lang:{type:String,default:"",validator:r=>["","en","en-US","zh-CN","cn"].includes(r)},placeholder:{type:String,default:""}},emits:["update:value","confirm"],setup(r,{emit:e}){const n=r,t=[{typeCn:"城市",typeEn:"City",type:"City"},{typeCn:"海运港口",typeEn:"Port",type:"Seaport"},{typeCn:"机场",typeEn:"Airport",type:"Airport"}],o=T.ref(null),l=T.ref(!1),c=T.reactive({name:"",country:""}),f=T.reactive({name:"",type:"City"}),v=T.computed(()=>{var g,s,x,d,C,p;if(n.lang&&n.lang!=="")return n.lang==="en"||n.lang==="en-US";try{if(typeof useCookie=="function"){const A=(g=useCookie("jc-language"))==null?void 0:g.value;if(A)return/^en(-US)?$/.test(A)}}catch{}if(typeof document!="undefined"){const A=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(A)}try{if(typeof useNuxtApp=="function"){const A=useNuxtApp(),u=((p=(C=(d=(x=(s=A==null?void 0:A.ssrContext)==null?void 0:s.event)==null?void 0:x.node)==null?void 0:d.req)==null?void 0:C.headers)==null?void 0:p.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(u)}}catch{}return!1}),a=()=>{c.name="",c.country="",l.value=!1,e("update:value",!1)};function i(){c.name="",c.country="";let g=!0;f.name.trim()||(c.name=v.value?"Please enter the data":"请输入需要补充的数据",g=!1),o.value||(c.country=v.value?"Please select a country":"请选择国家",g=!1),g&&V.reportNewTypeDataApi({reportData:f.name,reportType:f.type.toLocaleLowerCase(),countryId:o.value.id}).then(s=>{s.code===0&&(l.value=!0,Q.Message.success(v.value?"Application received. Awaiting review":"平台已收到申请,请等待审核"),e("confirm",{...f,country:o.value}))}).catch(s=>{}).finally(()=>{})}return{__sfc:!0,props:n,emit:e,typeOptions:t,displayQuery:o,submitSuccess:l,errors:c,formData:f,isEn:v,handleClose:a,handleConfirm:i,Search:ur}}};var Mn=function(){var o,l;var e=this,n=e._self._c,t=e._self._setupProxy;return e.value?n("div",{staticClass:"modal-mask",on:{click:function(c){return c.target!==c.currentTarget?null:t.handleClose.apply(null,arguments)}}},[t.submitSuccess?n("div",{staticClass:"apply-success-container"},[n("div",{staticClass:"apply-success-container__content"},[n("div",{staticClass:"icon"}),n("div",{staticClass:"desc"},[e._v(" "+e._s(t.isEn?"Submit successfully!":"提交成功!")+" ")])]),n("div",{staticClass:"apply-success-container__btns"},[n("div",{staticClass:"button",on:{click:function(c){return c.stopPropagation(),t.handleClose.apply(null,arguments)}}},[e._v(" "+e._s(t.isEn?"OK":"好的")+" ")])])]):n("div",{staticClass:"modal-container"},[n("div",{staticClass:"modal-header"},[n("span",{staticClass:"header-title"},[e._v(e._s(t.isEn?"Apply for data addition":"申请补充数据"))]),n("div",{staticClass:"close-btn",on:{click:t.handleClose}},[e._v("×")])]),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"form-item"},[n("label",{staticClass:"required"},[e._v(e._s(t.isEn?"Data To Add":"需补充的数据"))]),n("div",{staticClass:"input-box"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.formData.name,expression:"formData.name"}],class:["custom-input",{"input-error":t.errors.name}],attrs:{type:"text",placeholder:(o=e.placeholder)!=null?o:t.isEn?" Please enter":"请输入"},domProps:{value:t.formData.name},on:{input:[function(c){c.target.composing||e.$set(t.formData,"name",c.target.value)},function(c){t.errors.name=""}]}})]),t.errors.name?n("div",{staticClass:"error-message"},[e._v(e._s(t.errors.name))]):e._e()]),n("div",{staticClass:"form-item"},[n("label",{staticClass:"required"},[e._v(e._s(t.isEn?"Type":"所属类别"))]),n("div",{staticClass:"type-group"},e._l(t.typeOptions,function(c){return n("div",{key:c.type,class:["type-btn",{active:t.formData.type===c.type}],on:{click:function(f){t.formData.type=c.type}}},[e._v(" "+e._s(t.isEn?c.typeEn:c.typeCn)+" "),t.formData.type===c.type?n("div",{staticClass:"check-mark"}):e._e()])}),0)]),n("div",{staticClass:"form-item"},[n("label",{staticClass:"required"},[e._v(e._s(t.isEn?"Country":"国家"))]),n("div",{class:{"search-error-wrap":t.errors.country}},[n(t.Search,{style:{margin:"0 auto"},attrs:{"search-type-list":["Country"],lang:e.lang,"show-apply-data":!1,"show-search-icon":!1,placeholder:(l=e.placeholder)!=null?l:t.isEn?" Please enter":"请输入"},on:{"update:model-value":function(c){t.errors.country=""}},model:{value:t.displayQuery,callback:function(c){t.displayQuery=c},expression:"displayQuery"}})],1),t.errors.country?n("div",{staticClass:"error-message"},[e._v(" "+e._s(t.errors.country)+" ")]):e._e()])]),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"confirm-btn",on:{click:t.handleConfirm}},[e._v(" "+e._s(t.isEn?"Submit":"申请补充")+" ")])])])]):e._e()},Vn=[],Un=x0(Wn,Mn,Vn,!1,null,"eeb8a8a0");const jn=Un.exports,Gn=Object.freeze(Object.defineProperty({__proto__:null,default:jn},Symbol.toStringTag,{value:"Module"})),Qn={components:{[Q.Dialog.name]:Q.Dialog,[Q.Form.name]:Q.Form,[Q.FormItem.name]:Q.FormItem,[Q.Input.name]:Q.Input,[Q.Button.name]:Q.Button,[Q.Checkbox.name]:Q.Checkbox,[Q.Row.name]:Q.Row,[Q.Col.name]:Q.Col},data(){return{isVisible:!1,formData:{city:"",company:"",email:"",phone:"",name:"",agreement:!1},formRules:{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:(r,e,n)=>{e?n():n(new Error("请同意隐私政策"))},trigger:"change"}]}}},mounted(){V.emitter.on(V.MODAL_ACTION.Open,this.handleOpen)},beforeDestroy(){V.emitter.off(V.MODAL_ACTION.Open,this.handleOpen)},methods:{handleOpen(){console.log("🍉 ~ GlobalModal.vue:150 ~ methods.handleOpen:",this.handleOpen),this.isVisible=!0},closeModal(){this.isVisible=!1,V.emitter.emit(V.MODAL_ACTION.Close),this.$refs.formRef.resetFields()},handleSubmit(){this.$refs.formRef.validate(r=>{r&&(V.emitter.emit(V.MODAL_ACTION.Submit,{...this.formData}),this.closeModal())})}}};var Kn=function(){var e=this,n=e._self._c;return n("el-dialog",{attrs:{visible:e.isVisible,"before-close":e.closeModal,"show-close":!1,"close-on-click-modal":!0,width:"500px","custom-class":"global-modal-custom"},on:{"update:visible":function(t){e.isVisible=t}}},[n("div",{staticClass:"global-modal-header-custom",attrs:{slot:"title"},slot:"title"},[n("h2",[e._v("即刻链接全球货代")]),n("el-button",{staticClass:"close-button-custom",attrs:{type:"text"},on:{click:e.closeModal}},[n("span",{staticStyle:{"font-size":"2rem"}},[e._v("×")])])],1),n("div",{staticClass:"global-modal-body-custom"},[n("el-form",{ref:"formRef",attrs:{model:e.formData,rules:e.formRules,"label-position":"top"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"所在地(城市)",prop:"city"}},[n("el-input",{attrs:{placeholder:"请输入城市"},model:{value:e.formData.city,callback:function(t){e.$set(e.formData,"city",t)},expression:"formData.city"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"公司名称",prop:"company"}},[n("el-input",{attrs:{placeholder:"请输入公司名称"},model:{value:e.formData.company,callback:function(t){e.$set(e.formData,"company",t)},expression:"formData.company"}})],1)],1)],1),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[n("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:e.formData.email,callback:function(t){e.$set(e.formData,"email",t)},expression:"formData.email"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"电话",prop:"phone"}},[n("el-input",{attrs:{placeholder:"请输入电话"},model:{value:e.formData.phone,callback:function(t){e.$set(e.formData,"phone",t)},expression:"formData.phone"}})],1)],1)],1),n("el-row",[n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"姓名",prop:"name"}},[n("el-input",{attrs:{placeholder:"请输入您的全名"},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1)],1)],1),n("el-form-item",{staticClass:"agreement-item",attrs:{prop:"agreement"}},[n("el-checkbox",{model:{value:e.formData.agreement,callback:function(t){e.$set(e.formData,"agreement",t)},expression:"formData.agreement"}},[e._v("我同意")]),n("a",{staticClass:"privacy-link",attrs:{href:"#"}},[e._v("隐私政策")])],1)],1)],1),n("div",{staticClass:"global-modal-footer-custom",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticClass:"submit-button-custom",attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 加入会员 ")])],1)])},Xn=[],Jn=x0(Qn,Kn,Xn,!1,null,null);const dr=Jn.exports,Yn=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"})),Zn=Q.Select,ea=Q.Option;function ta(r,e=300){let n=null;return(...t)=>{n&&clearTimeout(n),n=setTimeout(()=>{r(...t)},e)}}const ra=T.defineComponent({name:"JcCarrierSearch",components:{"el-select":Zn,"el-option":ea},model:{prop:"value",event:"input"},props:{value:{type:[String,Number,Array],default:void 0},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:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(r,{emit:e}){const n=T.ref(),t=T.computed(()=>r.modelValue!==void 0?r.modelValue:r.value),o=T.computed(()=>{var y,_,b,S,B,D;if(r.lang)return r.lang==="en"||r.lang==="en-US";try{if(typeof useCookie=="function"){const F=(y=useCookie("jc-language"))==null?void 0:y.value;if(F)return/^en(-US)?$/.test(F)}}catch{}if(typeof document!="undefined"){const F=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(F)}try{if(typeof useNuxtApp=="function"){const F=useNuxtApp(),k=((D=(B=(S=(b=(_=F==null?void 0:F.ssrContext)==null?void 0:_.event)==null?void 0:b.node)==null?void 0:S.req)==null?void 0:B.headers)==null?void 0:D.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(k)}}catch{}return!1}),l=T.computed(()=>r.placeholder?r.placeholder:{Carrier:o.value?"Search by carrier name or code":"请输入公司名称或代码",Line:o.value?"Search by line name":"请输入航线名称",Seaport:o.value?"Search by seaport name":"请输入港口名称"}[r.type]||(o.value?"Search...":"请输入关键字搜索")),c=T.computed({get:()=>t.value,set:y=>{e("input",y),e("update:modelValue",y),e("update:value",y)}}),f=T.computed(()=>{const y=t.value;return Array.isArray(y)?typeof y.find(b=>b!=null&&b!=="")=="string":typeof y=="string"}),v=y=>f.value?String(y):y,a=T.ref(!1),i=T.ref([]),g=50,s=T.ref(""),x=()=>{i.value=[...r.defaultOptions]};T.watch(()=>r.defaultOptions,()=>{!a.value&&!s.value&&(i.value=[...r.defaultOptions])},{immediate:!0,deep:!0});const d=ta(async y=>{try{const _={keyword:y,current:1,size:g};let b={};r.type==="Carrier"?b=await V.locationSearchV2.carrier.search(_,r.lineType):r.type==="Line"?b=await V.locationSearchV2.line.search(_,r.lineType):b=await V.locationSearchV2.searchByName({..._,displayInfo:[r.type]});const S=b.records||[];if(r.defaultOptions.length>0){const B=r.defaultOptions.filter(D=>!S.some(F=>F.id===D.id));i.value=[...B,...S]}else i.value=S}catch(_){console.error("Search failed:",_)}finally{a.value=!1}},300),C=y=>{if(s.value=y,!y||!y.trim()){a.value=!1,x();return}a.value=!0,d(y)},p=y=>{y||(x(),a.value=!1,s.value="",n.value&&n.value.blur&&n.value.blur())},A=()=>{x(),s.value="",e("change",null,null),e("input",null),e("update:modelValue",null),e("update:value",null)},u=y=>{if(!y){e("change",y,null);return}let _;Array.isArray(y)?_=i.value.filter(b=>y.some(S=>String(S)===String(b.id))):_=i.value.find(b=>String(b.id)===String(y))||null,e("change",y,_)},h=()=>{s.value&&V.reportNewTypeDataApi({reportData:s.value,reportType:r.type.toLocaleLowerCase()}),e("apply",s.value),n.value&&n.value.blur&&n.value.blur()},m=y=>{e("remove-tag",y)},E=async()=>{const y=t.value;if(y==null||y==="")return;const b=(Array.isArray(y)?y:[y]).filter(S=>!i.value.some(B=>String(B.id)===String(S)));if(b.length!==0)try{let S=[];if(r.type==="Carrier"){const B=await V.locationSearchV2.carrier.getByIds(b.map(D=>Number(D)).filter(D=>!Number.isNaN(D)),r.lineType);S=Array.isArray(B)?B:B.records||[]}else if(r.type==="Line"){const B=await V.locationSearchV2.line.getByIds(b.map(D=>Number(D)).filter(D=>!Number.isNaN(D)),r.lineType);S=Array.isArray(B)?B:B.records||[]}if(S.length>0){const B=S.filter(D=>!i.value.some(F=>F.id===D.id));i.value.push(...B)}}catch(S){console.error("Init selected data failed:",S)}};return T.onMounted(()=>{E()}),T.watch(()=>t.value,(y,_)=>{JSON.stringify(y)!==JSON.stringify(_)&&typeof window!="undefined"&&E()}),{selectRef:n,innerValue:c,loading:a,options:i,currentPlaceholder:l,isEn:o,onRemoteMethod:C,handleVisibleChange:p,handleClear:A,handleChange:u,handleApply:h,handleRemoveTag:m,ICON_MORE:fr,showApplyData:r.showApplyData,normalizeOptionValue:v,multiple:r.multiple}}});var na=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("el-select",{ref:"selectRef",staticClass:"jc-w-full jc-carrier-search-comp",attrs:{multiple:e.multiple,filterable:"",remote:"","reserve-keyword":"",clearable:"","value-key":"id",placeholder:e.currentPlaceholder,"remote-method":e.onRemoteMethod,loading:e.loading},on:{change:e.handleChange,"visible-change":e.handleVisibleChange,clear:e.handleClear,focus:function(t){return e.$emit("focus")},blur:function(t){return e.$emit("blur")},"remove-tag":e.handleRemoveTag},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e._l(e.options,function(t){return n("el-option",{key:t.id,attrs:{label:e.isEn?t.displayEn||t.display:t.displayCn||t.display,value:e.normalizeOptionValue(t.id)}},[e._t("option",function(){return[n("div",{staticClass:"jc-flex jc-items-center jc-justify-between"},[n("span",[e._v(e._s(e.isEn?t.displayEn||t.display:t.displayCn||t.display))]),t.code?n("span",{staticClass:"jc-ml-2 jc-text-xs jc-text-gray-400"},[e._v(" "+e._s(t.code)+" ")]):e._e()])]},{item:t})],2)}),n("template",{slot:"empty"},[n("div",{staticClass:"jc-p-4 jc-text-sm jc-text-center jc-text-gray-500"},[e.loading?n("div",[e._v(e._s(e.isEn?"Searching...":"正在搜索中..."))]):n("div",{staticClass:"jc-flex jc-flex-wrap jc-justify-center jc-items-center"},[e.showApplyData?[n("p",[e._v(e._s(e.isEn?"No results found. ":"暂无结果,"))]),n("div",{staticClass:"jc-flex jc-justify-center jc-items-center jc-gap-1"},[n("span",{staticClass:"jc-font-medium jc-text-14 jc-text-orange jc-leading-5 jc-text-center jc-cursor-pointer jc-ml-1",on:{click:function(t){return t.stopPropagation(),e.handleApply.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Apply for data addition":"申请补充数据 "))]),n("img",{staticClass:"jc-mr-1 jc-size-4",attrs:{src:e.ICON_MORE,alt:""},on:{click:function(t){return t.stopPropagation(),e.handleApply.apply(null,arguments)}}})])]:[n("p",[e._v(e._s(e.isEn?"No results found.":"暂无结果"))])]],2)])])],2)},aa=[],oa=x0(ra,na,aa,!1,null,"08842628");const L0=oa.exports,ia=Object.freeze(Object.defineProperty({__proto__:null,default:L0},Symbol.toStringTag,{value:"Module"})),sa=T.defineComponent({name:"AirCarrierSearch",components:{JcCarrierSearch:L0},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:void 0},lang:{type:String,default:""},placeholder:{type:String,default:""},showApplyData:{type:Boolean,default:!1}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(r,{emit:e}){const n=T.computed({get:()=>r.modelValue!==void 0?r.modelValue:r.value,set:c=>{e("input",c),e("update:modelValue",c),e("update:value",c)}}),t=T.computed(()=>{if(r.lang)return r.lang==="en"||r.lang==="en-US";if(typeof document!="undefined"){const c=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(c)}return!1}),o=T.computed(()=>r.placeholder?r.placeholder:t.value?"Please enter the carrier code or name (e.g., AAL)":"请输入航空公司代码或名称 (如: AAL)");return{carrierId:n,currentPlaceholder:o,onCarrierChange:c=>{e("change",c)},lang:r.lang,showApplyData:r.showApplyData}}});var ca=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("JcCarrierSearch",{staticClass:"jc-air-carrier-search",attrs:{type:"Carrier","line-type":"air",placeholder:e.currentPlaceholder,lang:e.lang,"show-apply-data":e.showApplyData},on:{change:e.onCarrierChange,apply:function(t){return e.$emit("apply",e.carrierId)},focus:function(t){return e.$emit("focus")},blur:function(t){return e.$emit("blur")},"remove-tag":t=>e.$emit("remove-tag",t)},scopedSlots:e._u([e.$scopedSlots.option?{key:"option",fn:function(t){return[e._t("option",null,null,t)]}}:null],null,!0),model:{value:e.carrierId,callback:function(t){e.carrierId=t},expression:"carrierId"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e()],2)},la=[],xa=x0(sa,ca,la,!1,null,"25575ed5");const fa=xa.exports,ua=Object.freeze(Object.defineProperty({__proto__:null,default:fa},Symbol.toStringTag,{value:"Module"})),da=T.defineComponent({name:"AirLineSearch",components:{JcCarrierSearch:L0},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:void 0},lang:{type:String,default:""},placeholder:{type:String,default:""},showApplyData:{type:Boolean,default:!1}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(r,{emit:e}){const n=T.computed({get:()=>r.modelValue!==void 0?r.modelValue:r.value,set:c=>{e("input",c),e("update:modelValue",c),e("update:value",c)}}),t=T.computed(()=>{if(r.lang)return r.lang==="en"||r.lang==="en-US";if(typeof document!="undefined"){const c=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(c)}return!1}),o=T.computed(()=>r.placeholder?r.placeholder:t.value?"Please enter the line name":"请输入航线名称");return{carrierId:n,currentPlaceholder:o,onCarrierChange:c=>{e("change",c)},lang:r.lang,showApplyData:r.showApplyData}}});var ha=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("JcCarrierSearch",{staticClass:"jc-air-line-search",attrs:{type:"Line","line-type":"air",placeholder:e.currentPlaceholder,lang:e.lang,"show-apply-data":e.showApplyData},on:{change:e.onCarrierChange,apply:function(t){return e.$emit("apply",e.carrierId)},focus:function(t){return e.$emit("focus")},blur:function(t){return e.$emit("blur")},"remove-tag":t=>e.$emit("remove-tag",t)},scopedSlots:e._u([e.$scopedSlots.option?{key:"option",fn:function(t){return[e._t("option",null,null,t)]}}:null],null,!0),model:{value:e.carrierId,callback:function(t){e.carrierId=t},expression:"carrierId"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e()],2)},va=[],pa=x0(da,ha,va,!1,null,"d953f6b5");const ga=pa.exports,Ca=Object.freeze(Object.defineProperty({__proto__:null,default:ga},Symbol.toStringTag,{value:"Module"})),ma=T.defineComponent({name:"SeaCarrierSearch",components:{JcCarrierSearch:L0},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:void 0},lang:{type:String,default:""},placeholder:{type:String,default:""},showApplyData:{type:Boolean,default:!1}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(r,{emit:e}){const n=T.computed({get:()=>r.modelValue!==void 0?r.modelValue:r.value,set:c=>{e("input",c),e("update:modelValue",c),e("update:value",c)}}),t=T.computed(()=>{if(r.lang)return r.lang==="en"||r.lang==="en-US";if(typeof document!="undefined"){const c=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(c)}return!1}),o=T.computed(()=>r.placeholder?r.placeholder:t.value?"Please enter the carrier code or name (e.g., AAL)":"请输入船司代码或名称 (如: MSK)");return{carrierId:n,currentPlaceholder:o,onCarrierChange:c=>{e("change",c)},lang:r.lang,showApplyData:r.showApplyData}}});var Aa=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("JcCarrierSearch",{staticClass:"jc-sea-carrier-search",attrs:{type:"Carrier","line-type":"shipping",placeholder:e.currentPlaceholder,lang:e.lang,"show-apply-data":e.showApplyData},on:{change:e.onCarrierChange,apply:function(t){return e.$emit("apply",e.carrierId)},focus:function(t){return e.$emit("focus")},blur:function(t){return e.$emit("blur")},"remove-tag":t=>e.$emit("remove-tag",t)},scopedSlots:e._u([e.$scopedSlots.option?{key:"option",fn:function(t){return[e._t("option",null,null,t)]}}:null],null,!0),model:{value:e.carrierId,callback:function(t){e.carrierId=t},expression:"carrierId"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e()],2)},ya=[],Ba=x0(ma,Aa,ya,!1,null,"fd5ff0d4");const Ea=Ba.exports,_a=Object.freeze(Object.defineProperty({__proto__:null,default:Ea},Symbol.toStringTag,{value:"Module"})),Da=T.defineComponent({name:"SeaLineSearch",components:{JcCarrierSearch:L0},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:void 0},lang:{type:String,default:""},placeholder:{type:String,default:""},showApplyData:{type:Boolean,default:!1}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(r,{emit:e}){const n=T.computed({get:()=>r.modelValue!==void 0?r.modelValue:r.value,set:c=>{e("input",c),e("update:modelValue",c),e("update:value",c)}}),t=T.computed(()=>{if(r.lang)return r.lang==="en"||r.lang==="en-US";if(typeof document!="undefined"){const c=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(c)}return!1}),o=T.computed(()=>r.placeholder?r.placeholder:t.value?"Please enter the line name":"请输入航线名称");return{carrierId:n,currentPlaceholder:o,onCarrierChange:c=>{e("change",c)},lang:r.lang,showApplyData:r.showApplyData}}});var ba=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("JcCarrierSearch",{staticClass:"jc-sea-line-search",attrs:{type:"Line","line-type":"shipping",placeholder:e.currentPlaceholder,lang:e.lang,"show-apply-data":e.showApplyData},on:{change:e.onCarrierChange,apply:function(t){return e.$emit("apply",e.carrierId)},focus:function(t){return e.$emit("focus")},blur:function(t){return e.$emit("blur")},"remove-tag":t=>e.$emit("remove-tag",t)},scopedSlots:e._u([e.$scopedSlots.option?{key:"option",fn:function(t){return[e._t("option",null,null,t)]}}:null],null,!0),model:{value:e.carrierId,callback:function(t){e.carrierId=t},expression:"carrierId"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e()],2)},Fa=[],wa=x0(Da,ba,Fa,!1,null,"725e3fd8");const Sa=wa.exports,ka=Object.freeze(Object.defineProperty({__proto__:null,default:Sa},Symbol.toStringTag,{value:"Module"}));var Le=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ra(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Ia(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var n=function t(){var o=!1;try{o=this instanceof t}catch{}return o?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(r).forEach(function(t){var o=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return r[t]}})}),n}var M0={exports:{}};function Oa(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var V0={exports:{}};const Ha={},Ta=Object.freeze(Object.defineProperty({__proto__:null,default:Ha},Symbol.toStringTag,{value:"Module"})),Pa=Ia(Ta);var $a=V0.exports,vt;function M(){return vt||(vt=1,(function(r,e){(function(n,t){r.exports=t()})($a,function(){var n=n||(function(t,o){var l;if(typeof window!="undefined"&&window.crypto&&(l=window.crypto),typeof self!="undefined"&&self.crypto&&(l=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(l=globalThis.crypto),!l&&typeof window!="undefined"&&window.msCrypto&&(l=window.msCrypto),!l&&typeof Le!="undefined"&&Le.crypto&&(l=Le.crypto),!l&&typeof Oa=="function")try{l=Pa}catch{}var c=function(){if(l){if(typeof l.getRandomValues=="function")try{return l.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof l.randomBytes=="function")try{return l.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},f=Object.create||(function(){function u(){}return function(h){var m;return u.prototype=h,m=new u,u.prototype=null,m}})(),v={},a=v.lib={},i=a.Base=(function(){return{extend:function(u){var h=f(this);return u&&h.mixIn(u),(!h.hasOwnProperty("init")||this.init===h.init)&&(h.init=function(){h.$super.init.apply(this,arguments)}),h.init.prototype=h,h.$super=this,h},create:function(){var u=this.extend();return u.init.apply(u,arguments),u},init:function(){},mixIn:function(u){for(var h in u)u.hasOwnProperty(h)&&(this[h]=u[h]);u.hasOwnProperty("toString")&&(this.toString=u.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),g=a.WordArray=i.extend({init:function(u,h){u=this.words=u||[],h!=o?this.sigBytes=h:this.sigBytes=u.length*4},toString:function(u){return(u||x).stringify(this)},concat:function(u){var h=this.words,m=u.words,E=this.sigBytes,y=u.sigBytes;if(this.clamp(),E%4)for(var _=0;_<y;_++){var b=m[_>>>2]>>>24-_%4*8&255;h[E+_>>>2]|=b<<24-(E+_)%4*8}else for(var S=0;S<y;S+=4)h[E+S>>>2]=m[S>>>2];return this.sigBytes+=y,this},clamp:function(){var u=this.words,h=this.sigBytes;u[h>>>2]&=4294967295<<32-h%4*8,u.length=t.ceil(h/4)},clone:function(){var u=i.clone.call(this);return u.words=this.words.slice(0),u},random:function(u){for(var h=[],m=0;m<u;m+=4)h.push(c());return new g.init(h,u)}}),s=v.enc={},x=s.Hex={stringify:function(u){for(var h=u.words,m=u.sigBytes,E=[],y=0;y<m;y++){var _=h[y>>>2]>>>24-y%4*8&255;E.push((_>>>4).toString(16)),E.push((_&15).toString(16))}return E.join("")},parse:function(u){for(var h=u.length,m=[],E=0;E<h;E+=2)m[E>>>3]|=parseInt(u.substr(E,2),16)<<24-E%8*4;return new g.init(m,h/2)}},d=s.Latin1={stringify:function(u){for(var h=u.words,m=u.sigBytes,E=[],y=0;y<m;y++){var _=h[y>>>2]>>>24-y%4*8&255;E.push(String.fromCharCode(_))}return E.join("")},parse:function(u){for(var h=u.length,m=[],E=0;E<h;E++)m[E>>>2]|=(u.charCodeAt(E)&255)<<24-E%4*8;return new g.init(m,h)}},C=s.Utf8={stringify:function(u){try{return decodeURIComponent(escape(d.stringify(u)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(u){return d.parse(unescape(encodeURIComponent(u)))}},p=a.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(u){typeof u=="string"&&(u=C.parse(u)),this._data.concat(u),this._nDataBytes+=u.sigBytes},_process:function(u){var h,m=this._data,E=m.words,y=m.sigBytes,_=this.blockSize,b=_*4,S=y/b;u?S=t.ceil(S):S=t.max((S|0)-this._minBufferSize,0);var B=S*_,D=t.min(B*4,y);if(B){for(var F=0;F<B;F+=_)this._doProcessBlock(E,F);h=E.splice(0,B),m.sigBytes-=D}return new g.init(h,D)},clone:function(){var u=i.clone.call(this);return u._data=this._data.clone(),u},_minBufferSize:0});a.Hasher=p.extend({cfg:i.extend(),init:function(u){this.cfg=this.cfg.extend(u),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(u){return this._append(u),this._process(),this},finalize:function(u){u&&this._append(u);var h=this._doFinalize();return h},blockSize:16,_createHelper:function(u){return function(h,m){return new u.init(m).finalize(h)}},_createHmacHelper:function(u){return function(h,m){return new A.HMAC.init(u,m).finalize(h)}}});var A=v.algo={};return v})(Math);return n})})(V0)),V0.exports}var U0={exports:{}},La=U0.exports,pt;function Oe(){return pt||(pt=1,(function(r,e){(function(n,t){r.exports=t(M())})(La,function(n){return(function(t){var o=n,l=o.lib,c=l.Base,f=l.WordArray,v=o.x64={};v.Word=c.extend({init:function(a,i){this.high=a,this.low=i}}),v.WordArray=c.extend({init:function(a,i){a=this.words=a||[],i!=t?this.sigBytes=i:this.sigBytes=a.length*8},toX32:function(){for(var a=this.words,i=a.length,g=[],s=0;s<i;s++){var x=a[s];g.push(x.high),g.push(x.low)}return f.create(g,this.sigBytes)},clone:function(){for(var a=c.clone.call(this),i=a.words=this.words.slice(0),g=i.length,s=0;s<g;s++)i[s]=i[s].clone();return a}})})(),n})})(U0)),U0.exports}var j0={exports:{}},za=j0.exports,gt;function Na(){return gt||(gt=1,(function(r,e){(function(n,t){r.exports=t(M())})(za,function(n){return(function(){if(typeof ArrayBuffer=="function"){var t=n,o=t.lib,l=o.WordArray,c=l.init,f=l.init=function(v){if(v instanceof ArrayBuffer&&(v=new Uint8Array(v)),(v instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&v instanceof Uint8ClampedArray||v instanceof Int16Array||v instanceof Uint16Array||v instanceof Int32Array||v instanceof Uint32Array||v instanceof Float32Array||v instanceof Float64Array)&&(v=new Uint8Array(v.buffer,v.byteOffset,v.byteLength)),v instanceof Uint8Array){for(var a=v.byteLength,i=[],g=0;g<a;g++)i[g>>>2]|=v[g]<<24-g%4*8;c.call(this,i,a)}else c.apply(this,arguments)};f.prototype=l}})(),n.lib.WordArray})})(j0)),j0.exports}var G0={exports:{}},qa=G0.exports,Ct;function Wa(){return Ct||(Ct=1,(function(r,e){(function(n,t){r.exports=t(M())})(qa,function(n){return(function(){var t=n,o=t.lib,l=o.WordArray,c=t.enc;c.Utf16=c.Utf16BE={stringify:function(v){for(var a=v.words,i=v.sigBytes,g=[],s=0;s<i;s+=2){var x=a[s>>>2]>>>16-s%4*8&65535;g.push(String.fromCharCode(x))}return g.join("")},parse:function(v){for(var a=v.length,i=[],g=0;g<a;g++)i[g>>>1]|=v.charCodeAt(g)<<16-g%2*16;return l.create(i,a*2)}},c.Utf16LE={stringify:function(v){for(var a=v.words,i=v.sigBytes,g=[],s=0;s<i;s+=2){var x=f(a[s>>>2]>>>16-s%4*8&65535);g.push(String.fromCharCode(x))}return g.join("")},parse:function(v){for(var a=v.length,i=[],g=0;g<a;g++)i[g>>>1]|=f(v.charCodeAt(g)<<16-g%2*16);return l.create(i,a*2)}};function f(v){return v<<8&4278255360|v>>>8&16711935}})(),n.enc.Utf16})})(G0)),G0.exports}var Q0={exports:{}},Ma=Q0.exports,mt;function C0(){return mt||(mt=1,(function(r,e){(function(n,t){r.exports=t(M())})(Ma,function(n){return(function(){var t=n,o=t.lib,l=o.WordArray,c=t.enc;c.Base64={stringify:function(v){var a=v.words,i=v.sigBytes,g=this._map;v.clamp();for(var s=[],x=0;x<i;x+=3)for(var d=a[x>>>2]>>>24-x%4*8&255,C=a[x+1>>>2]>>>24-(x+1)%4*8&255,p=a[x+2>>>2]>>>24-(x+2)%4*8&255,A=d<<16|C<<8|p,u=0;u<4&&x+u*.75<i;u++)s.push(g.charAt(A>>>6*(3-u)&63));var h=g.charAt(64);if(h)for(;s.length%4;)s.push(h);return s.join("")},parse:function(v){var a=v.length,i=this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var s=0;s<i.length;s++)g[i.charCodeAt(s)]=s}var x=i.charAt(64);if(x){var d=v.indexOf(x);d!==-1&&(a=d)}return f(v,a,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(v,a,i){for(var g=[],s=0,x=0;x<a;x++)if(x%4){var d=i[v.charCodeAt(x-1)]<<x%4*2,C=i[v.charCodeAt(x)]>>>6-x%4*2,p=d|C;g[s>>>2]|=p<<24-s%4*8,s++}return l.create(g,s)}})(),n.enc.Base64})})(Q0)),Q0.exports}var K0={exports:{}},Va=K0.exports,At;function Ua(){return At||(At=1,(function(r,e){(function(n,t){r.exports=t(M())})(Va,function(n){return(function(){var t=n,o=t.lib,l=o.WordArray,c=t.enc;c.Base64url={stringify:function(v,a){a===void 0&&(a=!0);var i=v.words,g=v.sigBytes,s=a?this._safe_map:this._map;v.clamp();for(var x=[],d=0;d<g;d+=3)for(var C=i[d>>>2]>>>24-d%4*8&255,p=i[d+1>>>2]>>>24-(d+1)%4*8&255,A=i[d+2>>>2]>>>24-(d+2)%4*8&255,u=C<<16|p<<8|A,h=0;h<4&&d+h*.75<g;h++)x.push(s.charAt(u>>>6*(3-h)&63));var m=s.charAt(64);if(m)for(;x.length%4;)x.push(m);return x.join("")},parse:function(v,a){a===void 0&&(a=!0);var i=v.length,g=a?this._safe_map:this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var x=0;x<g.length;x++)s[g.charCodeAt(x)]=x}var d=g.charAt(64);if(d){var C=v.indexOf(d);C!==-1&&(i=C)}return f(v,i,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function f(v,a,i){for(var g=[],s=0,x=0;x<a;x++)if(x%4){var d=i[v.charCodeAt(x-1)]<<x%4*2,C=i[v.charCodeAt(x)]>>>6-x%4*2,p=d|C;g[s>>>2]|=p<<24-s%4*8,s++}return l.create(g,s)}})(),n.enc.Base64url})})(K0)),K0.exports}var X0={exports:{}},ja=X0.exports,yt;function m0(){return yt||(yt=1,(function(r,e){(function(n,t){r.exports=t(M())})(ja,function(n){return(function(t){var o=n,l=o.lib,c=l.WordArray,f=l.Hasher,v=o.algo,a=[];(function(){for(var C=0;C<64;C++)a[C]=t.abs(t.sin(C+1))*4294967296|0})();var i=v.MD5=f.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(C,p){for(var A=0;A<16;A++){var u=p+A,h=C[u];C[u]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}var m=this._hash.words,E=C[p+0],y=C[p+1],_=C[p+2],b=C[p+3],S=C[p+4],B=C[p+5],D=C[p+6],F=C[p+7],k=C[p+8],P=C[p+9],$=C[p+10],L=C[p+11],W=C[p+12],H=C[p+13],N=C[p+14],z=C[p+15],w=m[0],I=m[1],O=m[2],R=m[3];w=g(w,I,O,R,E,7,a[0]),R=g(R,w,I,O,y,12,a[1]),O=g(O,R,w,I,_,17,a[2]),I=g(I,O,R,w,b,22,a[3]),w=g(w,I,O,R,S,7,a[4]),R=g(R,w,I,O,B,12,a[5]),O=g(O,R,w,I,D,17,a[6]),I=g(I,O,R,w,F,22,a[7]),w=g(w,I,O,R,k,7,a[8]),R=g(R,w,I,O,P,12,a[9]),O=g(O,R,w,I,$,17,a[10]),I=g(I,O,R,w,L,22,a[11]),w=g(w,I,O,R,W,7,a[12]),R=g(R,w,I,O,H,12,a[13]),O=g(O,R,w,I,N,17,a[14]),I=g(I,O,R,w,z,22,a[15]),w=s(w,I,O,R,y,5,a[16]),R=s(R,w,I,O,D,9,a[17]),O=s(O,R,w,I,L,14,a[18]),I=s(I,O,R,w,E,20,a[19]),w=s(w,I,O,R,B,5,a[20]),R=s(R,w,I,O,$,9,a[21]),O=s(O,R,w,I,z,14,a[22]),I=s(I,O,R,w,S,20,a[23]),w=s(w,I,O,R,P,5,a[24]),R=s(R,w,I,O,N,9,a[25]),O=s(O,R,w,I,b,14,a[26]),I=s(I,O,R,w,k,20,a[27]),w=s(w,I,O,R,H,5,a[28]),R=s(R,w,I,O,_,9,a[29]),O=s(O,R,w,I,F,14,a[30]),I=s(I,O,R,w,W,20,a[31]),w=x(w,I,O,R,B,4,a[32]),R=x(R,w,I,O,k,11,a[33]),O=x(O,R,w,I,L,16,a[34]),I=x(I,O,R,w,N,23,a[35]),w=x(w,I,O,R,y,4,a[36]),R=x(R,w,I,O,S,11,a[37]),O=x(O,R,w,I,F,16,a[38]),I=x(I,O,R,w,$,23,a[39]),w=x(w,I,O,R,H,4,a[40]),R=x(R,w,I,O,E,11,a[41]),O=x(O,R,w,I,b,16,a[42]),I=x(I,O,R,w,D,23,a[43]),w=x(w,I,O,R,P,4,a[44]),R=x(R,w,I,O,W,11,a[45]),O=x(O,R,w,I,z,16,a[46]),I=x(I,O,R,w,_,23,a[47]),w=d(w,I,O,R,E,6,a[48]),R=d(R,w,I,O,F,10,a[49]),O=d(O,R,w,I,N,15,a[50]),I=d(I,O,R,w,B,21,a[51]),w=d(w,I,O,R,W,6,a[52]),R=d(R,w,I,O,b,10,a[53]),O=d(O,R,w,I,$,15,a[54]),I=d(I,O,R,w,y,21,a[55]),w=d(w,I,O,R,k,6,a[56]),R=d(R,w,I,O,z,10,a[57]),O=d(O,R,w,I,D,15,a[58]),I=d(I,O,R,w,H,21,a[59]),w=d(w,I,O,R,S,6,a[60]),R=d(R,w,I,O,L,10,a[61]),O=d(O,R,w,I,_,15,a[62]),I=d(I,O,R,w,P,21,a[63]),m[0]=m[0]+w|0,m[1]=m[1]+I|0,m[2]=m[2]+O|0,m[3]=m[3]+R|0},_doFinalize:function(){var C=this._data,p=C.words,A=this._nDataBytes*8,u=C.sigBytes*8;p[u>>>5]|=128<<24-u%32;var h=t.floor(A/4294967296),m=A;p[(u+64>>>9<<4)+15]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,p[(u+64>>>9<<4)+14]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,C.sigBytes=(p.length+1)*4,this._process();for(var E=this._hash,y=E.words,_=0;_<4;_++){var b=y[_];y[_]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}return E},clone:function(){var C=f.clone.call(this);return C._hash=this._hash.clone(),C}});function g(C,p,A,u,h,m,E){var y=C+(p&A|~p&u)+h+E;return(y<<m|y>>>32-m)+p}function s(C,p,A,u,h,m,E){var y=C+(p&u|A&~u)+h+E;return(y<<m|y>>>32-m)+p}function x(C,p,A,u,h,m,E){var y=C+(p^A^u)+h+E;return(y<<m|y>>>32-m)+p}function d(C,p,A,u,h,m,E){var y=C+(A^(p|~u))+h+E;return(y<<m|y>>>32-m)+p}o.MD5=f._createHelper(i),o.HmacMD5=f._createHmacHelper(i)})(Math),n.MD5})})(X0)),X0.exports}var J0={exports:{}},Ga=J0.exports,Bt;function hr(){return Bt||(Bt=1,(function(r,e){(function(n,t){r.exports=t(M())})(Ga,function(n){return(function(){var t=n,o=t.lib,l=o.WordArray,c=o.Hasher,f=t.algo,v=[],a=f.SHA1=c.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(i,g){for(var s=this._hash.words,x=s[0],d=s[1],C=s[2],p=s[3],A=s[4],u=0;u<80;u++){if(u<16)v[u]=i[g+u]|0;else{var h=v[u-3]^v[u-8]^v[u-14]^v[u-16];v[u]=h<<1|h>>>31}var m=(x<<5|x>>>27)+A+v[u];u<20?m+=(d&C|~d&p)+1518500249:u<40?m+=(d^C^p)+1859775393:u<60?m+=(d&C|d&p|C&p)-1894007588:m+=(d^C^p)-899497514,A=p,p=C,C=d<<30|d>>>2,d=x,x=m}s[0]=s[0]+x|0,s[1]=s[1]+d|0,s[2]=s[2]+C|0,s[3]=s[3]+p|0,s[4]=s[4]+A|0},_doFinalize:function(){var i=this._data,g=i.words,s=this._nDataBytes*8,x=i.sigBytes*8;return g[x>>>5]|=128<<24-x%32,g[(x+64>>>9<<4)+14]=Math.floor(s/4294967296),g[(x+64>>>9<<4)+15]=s,i.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var i=c.clone.call(this);return i._hash=this._hash.clone(),i}});t.SHA1=c._createHelper(a),t.HmacSHA1=c._createHmacHelper(a)})(),n.SHA1})})(J0)),J0.exports}var Y0={exports:{}},Qa=Y0.exports,Et;function Ge(){return Et||(Et=1,(function(r,e){(function(n,t){r.exports=t(M())})(Qa,function(n){return(function(t){var o=n,l=o.lib,c=l.WordArray,f=l.Hasher,v=o.algo,a=[],i=[];(function(){function x(A){for(var u=t.sqrt(A),h=2;h<=u;h++)if(!(A%h))return!1;return!0}function d(A){return(A-(A|0))*4294967296|0}for(var C=2,p=0;p<64;)x(C)&&(p<8&&(a[p]=d(t.pow(C,1/2))),i[p]=d(t.pow(C,1/3)),p++),C++})();var g=[],s=v.SHA256=f.extend({_doReset:function(){this._hash=new c.init(a.slice(0))},_doProcessBlock:function(x,d){for(var C=this._hash.words,p=C[0],A=C[1],u=C[2],h=C[3],m=C[4],E=C[5],y=C[6],_=C[7],b=0;b<64;b++){if(b<16)g[b]=x[d+b]|0;else{var S=g[b-15],B=(S<<25|S>>>7)^(S<<14|S>>>18)^S>>>3,D=g[b-2],F=(D<<15|D>>>17)^(D<<13|D>>>19)^D>>>10;g[b]=B+g[b-7]+F+g[b-16]}var k=m&E^~m&y,P=p&A^p&u^A&u,$=(p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22),L=(m<<26|m>>>6)^(m<<21|m>>>11)^(m<<7|m>>>25),W=_+L+k+i[b]+g[b],H=$+P;_=y,y=E,E=m,m=h+W|0,h=u,u=A,A=p,p=W+H|0}C[0]=C[0]+p|0,C[1]=C[1]+A|0,C[2]=C[2]+u|0,C[3]=C[3]+h|0,C[4]=C[4]+m|0,C[5]=C[5]+E|0,C[6]=C[6]+y|0,C[7]=C[7]+_|0},_doFinalize:function(){var x=this._data,d=x.words,C=this._nDataBytes*8,p=x.sigBytes*8;return d[p>>>5]|=128<<24-p%32,d[(p+64>>>9<<4)+14]=t.floor(C/4294967296),d[(p+64>>>9<<4)+15]=C,x.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var x=f.clone.call(this);return x._hash=this._hash.clone(),x}});o.SHA256=f._createHelper(s),o.HmacSHA256=f._createHmacHelper(s)})(Math),n.SHA256})})(Y0)),Y0.exports}var Z0={exports:{}},Ka=Z0.exports,_t;function Xa(){return _t||(_t=1,(function(r,e){(function(n,t,o){r.exports=t(M(),Ge())})(Ka,function(n){return(function(){var t=n,o=t.lib,l=o.WordArray,c=t.algo,f=c.SHA256,v=c.SHA224=f.extend({_doReset:function(){this._hash=new l.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=f._doFinalize.call(this);return a.sigBytes-=4,a}});t.SHA224=f._createHelper(v),t.HmacSHA224=f._createHmacHelper(v)})(),n.SHA224})})(Z0)),Z0.exports}var ee={exports:{}},Ja=ee.exports,Dt;function vr(){return Dt||(Dt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),Oe())})(Ja,function(n){return(function(){var t=n,o=t.lib,l=o.Hasher,c=t.x64,f=c.Word,v=c.WordArray,a=t.algo;function i(){return f.create.apply(f,arguments)}var g=[i(1116352408,3609767458),i(1899447441,602891725),i(3049323471,3964484399),i(3921009573,2173295548),i(961987163,4081628472),i(1508970993,3053834265),i(2453635748,2937671579),i(2870763221,3664609560),i(3624381080,2734883394),i(310598401,1164996542),i(607225278,1323610764),i(1426881987,3590304994),i(1925078388,4068182383),i(2162078206,991336113),i(2614888103,633803317),i(3248222580,3479774868),i(3835390401,2666613458),i(4022224774,944711139),i(264347078,2341262773),i(604807628,2007800933),i(770255983,1495990901),i(1249150122,1856431235),i(1555081692,3175218132),i(1996064986,2198950837),i(2554220882,3999719339),i(2821834349,766784016),i(2952996808,2566594879),i(3210313671,3203337956),i(3336571891,1034457026),i(3584528711,2466948901),i(113926993,3758326383),i(338241895,168717936),i(666307205,1188179964),i(773529912,1546045734),i(1294757372,1522805485),i(1396182291,2643833823),i(1695183700,2343527390),i(1986661051,1014477480),i(2177026350,1206759142),i(2456956037,344077627),i(2730485921,1290863460),i(2820302411,3158454273),i(3259730800,3505952657),i(3345764771,106217008),i(3516065817,3606008344),i(3600352804,1432725776),i(4094571909,1467031594),i(275423344,851169720),i(430227734,3100823752),i(506948616,1363258195),i(659060556,3750685593),i(883997877,3785050280),i(958139571,3318307427),i(1322822218,3812723403),i(1537002063,2003034995),i(1747873779,3602036899),i(1955562222,1575990012),i(2024104815,1125592928),i(2227730452,2716904306),i(2361852424,442776044),i(2428436474,593698344),i(2756734187,3733110249),i(3204031479,2999351573),i(3329325298,3815920427),i(3391569614,3928383900),i(3515267271,566280711),i(3940187606,3454069534),i(4118630271,4000239992),i(116418474,1914138554),i(174292421,2731055270),i(289380356,3203993006),i(460393269,320620315),i(685471733,587496836),i(852142971,1086792851),i(1017036298,365543100),i(1126000580,2618297676),i(1288033470,3409855158),i(1501505948,4234509866),i(1607167915,987167468),i(1816402316,1246189591)],s=[];(function(){for(var d=0;d<80;d++)s[d]=i()})();var x=a.SHA512=l.extend({_doReset:function(){this._hash=new v.init([new f.init(1779033703,4089235720),new f.init(3144134277,2227873595),new f.init(1013904242,4271175723),new f.init(2773480762,1595750129),new f.init(1359893119,2917565137),new f.init(2600822924,725511199),new f.init(528734635,4215389547),new f.init(1541459225,327033209)])},_doProcessBlock:function(d,C){for(var p=this._hash.words,A=p[0],u=p[1],h=p[2],m=p[3],E=p[4],y=p[5],_=p[6],b=p[7],S=A.high,B=A.low,D=u.high,F=u.low,k=h.high,P=h.low,$=m.high,L=m.low,W=E.high,H=E.low,N=y.high,z=y.low,w=_.high,I=_.low,O=b.high,R=b.low,U=S,j=B,G=D,q=F,p0=k,A0=P,He=$,F0=L,t0=W,X=H,z0=N,w0=z,N0=w,S0=I,Te=O,k0=R,r0=0;r0<80;r0++){var e0,f0,q0=s[r0];if(r0<16)f0=q0.high=d[C+r0*2]|0,e0=q0.low=d[C+r0*2+1]|0;else{var Ke=s[r0-15],y0=Ke.high,R0=Ke.low,gr=(y0>>>1|R0<<31)^(y0>>>8|R0<<24)^y0>>>7,Xe=(R0>>>1|y0<<31)^(R0>>>8|y0<<24)^(R0>>>7|y0<<25),Je=s[r0-2],B0=Je.high,I0=Je.low,Cr=(B0>>>19|I0<<13)^(B0<<3|I0>>>29)^B0>>>6,Ye=(I0>>>19|B0<<13)^(I0<<3|B0>>>29)^(I0>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=b.low=R+k0,b.high=O+Te+(R>>>0<k0>>>0?1:0)},_doFinalize:function(){var d=this._data,C=d.words,p=this._nDataBytes*8,A=d.sigBytes*8;C[A>>>5]|=128<<24-A%32,C[(A+128>>>10<<5)+30]=Math.floor(p/4294967296),C[(A+128>>>10<<5)+31]=p,d.sigBytes=C.length*4,this._process();var u=this._hash.toX32();return u},clone:function(){var d=l.clone.call(this);return d._hash=this._hash.clone(),d},blockSize:1024/32});t.SHA512=l._createHelper(x),t.HmacSHA512=l._createHmacHelper(x)})(),n.SHA512})})(ee)),ee.exports}var te={exports:{}},Ya=te.exports,bt;function Za(){return bt||(bt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),Oe(),vr())})(Ya,function(n){return(function(){var t=n,o=t.x64,l=o.Word,c=o.WordArray,f=t.algo,v=f.SHA512,a=f.SHA384=v.extend({_doReset:function(){this._hash=new c.init([new l.init(3418070365,3238371032),new l.init(1654270250,914150663),new l.init(2438529370,812702999),new l.init(355462360,4144912697),new l.init(1731405415,4290775857),new l.init(2394180231,1750603025),new l.init(3675008525,1694076839),new l.init(1203062813,3204075428)])},_doFinalize:function(){var i=v._doFinalize.call(this);return i.sigBytes-=16,i}});t.SHA384=v._createHelper(a),t.HmacSHA384=v._createHmacHelper(a)})(),n.SHA384})})(te)),te.exports}var re={exports:{}},eo=re.exports,Ft;function to(){return Ft||(Ft=1,(function(r,e){(function(n,t,o){r.exports=t(M(),Oe())})(eo,function(n){return(function(t){var o=n,l=o.lib,c=l.WordArray,f=l.Hasher,v=o.x64,a=v.Word,i=o.algo,g=[],s=[],x=[];(function(){for(var p=1,A=0,u=0;u<24;u++){g[p+5*A]=(u+1)*(u+2)/2%64;var h=A%5,m=(2*p+3*A)%5;p=h,A=m}for(var p=0;p<5;p++)for(var A=0;A<5;A++)s[p+5*A]=A+(2*p+3*A)%5*5;for(var E=1,y=0;y<24;y++){for(var _=0,b=0,S=0;S<7;S++){if(E&1){var B=(1<<S)-1;B<32?b^=1<<B:_^=1<<B-32}E&128?E=E<<1^113:E<<=1}x[y]=a.create(_,b)}})();var d=[];(function(){for(var p=0;p<25;p++)d[p]=a.create()})();var C=i.SHA3=f.extend({cfg:f.cfg.extend({outputLength:512}),_doReset:function(){for(var p=this._state=[],A=0;A<25;A++)p[A]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(p,A){for(var u=this._state,h=this.blockSize/2,m=0;m<h;m++){var E=p[A+2*m],y=p[A+2*m+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,y=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360;var _=u[m];_.high^=y,_.low^=E}for(var b=0;b<24;b++){for(var S=0;S<5;S++){for(var B=0,D=0,F=0;F<5;F++){var _=u[S+5*F];B^=_.high,D^=_.low}var k=d[S];k.high=B,k.low=D}for(var S=0;S<5;S++)for(var P=d[(S+4)%5],$=d[(S+1)%5],L=$.high,W=$.low,B=P.high^(L<<1|W>>>31),D=P.low^(W<<1|L>>>31),F=0;F<5;F++){var _=u[S+5*F];_.high^=B,_.low^=D}for(var H=1;H<25;H++){var B,D,_=u[H],N=_.high,z=_.low,w=g[H];w<32?(B=N<<w|z>>>32-w,D=z<<w|N>>>32-w):(B=z<<w-32|N>>>64-w,D=N<<w-32|z>>>64-w);var I=d[s[H]];I.high=B,I.low=D}var O=d[0],R=u[0];O.high=R.high,O.low=R.low;for(var S=0;S<5;S++)for(var F=0;F<5;F++){var H=S+5*F,_=u[H],U=d[H],j=d[(S+1)%5+5*F],G=d[(S+2)%5+5*F];_.high=U.high^~j.high&G.high,_.low=U.low^~j.low&G.low}var _=u[0],q=x[b];_.high^=q.high,_.low^=q.low}},_doFinalize:function(){var p=this._data,A=p.words;this._nDataBytes*8;var u=p.sigBytes*8,h=this.blockSize*32;A[u>>>5]|=1<<24-u%32,A[(t.ceil((u+1)/h)*h>>>5)-1]|=128,p.sigBytes=A.length*4,this._process();for(var m=this._state,E=this.cfg.outputLength/8,y=E/8,_=[],b=0;b<y;b++){var S=m[b],B=S.high,D=S.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,_.push(D),_.push(B)}return new c.init(_,E)},clone:function(){for(var p=f.clone.call(this),A=p._state=this._state.slice(0),u=0;u<25;u++)A[u]=A[u].clone();return p}});o.SHA3=f._createHelper(C),o.HmacSHA3=f._createHmacHelper(C)})(Math),n.SHA3})})(re)),re.exports}var ne={exports:{}},ro=ne.exports,wt;function no(){return wt||(wt=1,(function(r,e){(function(n,t){r.exports=t(M())})(ro,function(n){return(function(t){var o=n,l=o.lib,c=l.WordArray,f=l.Hasher,v=o.algo,a=c.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]),i=c.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]),g=c.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]),s=c.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]),x=c.create([0,1518500249,1859775393,2400959708,2840853838]),d=c.create([1352829926,1548603684,1836072691,2053994217,0]),C=v.RIPEMD160=f.extend({_doReset:function(){this._hash=c.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(y,_){for(var b=0;b<16;b++){var S=_+b,B=y[S];y[S]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var D=this._hash.words,F=x.words,k=d.words,P=a.words,$=i.words,L=g.words,W=s.words,H,N,z,w,I,O,R,U,j,G;O=H=D[0],R=N=D[1],U=z=D[2],j=w=D[3],G=I=D[4];for(var q,b=0;b<80;b+=1)q=H+y[_+P[b]]|0,b<16?q+=p(N,z,w)+F[0]:b<32?q+=A(N,z,w)+F[1]:b<48?q+=u(N,z,w)+F[2]:b<64?q+=h(N,z,w)+F[3]:q+=m(N,z,w)+F[4],q=q|0,q=E(q,L[b]),q=q+I|0,H=I,I=w,w=E(z,10),z=N,N=q,q=O+y[_+$[b]]|0,b<16?q+=m(R,U,j)+k[0]:b<32?q+=h(R,U,j)+k[1]:b<48?q+=u(R,U,j)+k[2]:b<64?q+=A(R,U,j)+k[3]:q+=p(R,U,j)+k[4],q=q|0,q=E(q,W[b]),q=q+G|0,O=G,G=j,j=E(U,10),U=R,R=q;q=D[1]+z+j|0,D[1]=D[2]+w+G|0,D[2]=D[3]+I+O|0,D[3]=D[4]+H+R|0,D[4]=D[0]+N+U|0,D[0]=q},_doFinalize:function(){var y=this._data,_=y.words,b=this._nDataBytes*8,S=y.sigBytes*8;_[S>>>5]|=128<<24-S%32,_[(S+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,y.sigBytes=(_.length+1)*4,this._process();for(var B=this._hash,D=B.words,F=0;F<5;F++){var k=D[F];D[F]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}return B},clone:function(){var y=f.clone.call(this);return y._hash=this._hash.clone(),y}});function p(y,_,b){return y^_^b}function A(y,_,b){return y&_|~y&b}function u(y,_,b){return(y|~_)^b}function h(y,_,b){return y&b|_&~b}function m(y,_,b){return y^(_|~b)}function E(y,_){return y<<_|y>>>32-_}o.RIPEMD160=f._createHelper(C),o.HmacRIPEMD160=f._createHmacHelper(C)})(),n.RIPEMD160})})(ne)),ne.exports}var ae={exports:{}},ao=ae.exports,St;function Qe(){return St||(St=1,(function(r,e){(function(n,t){r.exports=t(M())})(ao,function(n){(function(){var t=n,o=t.lib,l=o.Base,c=t.enc,f=c.Utf8,v=t.algo;v.HMAC=l.extend({init:function(a,i){a=this._hasher=new a.init,typeof i=="string"&&(i=f.parse(i));var g=a.blockSize,s=g*4;i.sigBytes>s&&(i=a.finalize(i)),i.clamp();for(var x=this._oKey=i.clone(),d=this._iKey=i.clone(),C=x.words,p=d.words,A=0;A<g;A++)C[A]^=1549556828,p[A]^=909522486;x.sigBytes=d.sigBytes=s,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var i=this._hasher,g=i.finalize(a);i.reset();var s=i.finalize(this._oKey.clone().concat(g));return s}})})()})})(ae)),ae.exports}var oe={exports:{}},oo=oe.exports,kt;function io(){return kt||(kt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),Ge(),Qe())})(oo,function(n){return(function(){var t=n,o=t.lib,l=o.Base,c=o.WordArray,f=t.algo,v=f.SHA256,a=f.HMAC,i=f.PBKDF2=l.extend({cfg:l.extend({keySize:128/32,hasher:v,iterations:25e4}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,s){for(var x=this.cfg,d=a.create(x.hasher,g),C=c.create(),p=c.create([1]),A=C.words,u=p.words,h=x.keySize,m=x.iterations;A.length<h;){var E=d.update(s).finalize(p);d.reset();for(var y=E.words,_=y.length,b=E,S=1;S<m;S++){b=d.finalize(b),d.reset();for(var B=b.words,D=0;D<_;D++)y[D]^=B[D]}C.concat(E),u[0]++}return C.sigBytes=h*4,C}});t.PBKDF2=function(g,s,x){return i.create(x).compute(g,s)}})(),n.PBKDF2})})(oe)),oe.exports}var ie={exports:{}},so=ie.exports,Rt;function v0(){return Rt||(Rt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),hr(),Qe())})(so,function(n){return(function(){var t=n,o=t.lib,l=o.Base,c=o.WordArray,f=t.algo,v=f.MD5,a=f.EvpKDF=l.extend({cfg:l.extend({keySize:128/32,hasher:v,iterations:1}),init:function(i){this.cfg=this.cfg.extend(i)},compute:function(i,g){for(var s,x=this.cfg,d=x.hasher.create(),C=c.create(),p=C.words,A=x.keySize,u=x.iterations;p.length<A;){s&&d.update(s),s=d.update(i).finalize(g),d.reset();for(var h=1;h<u;h++)s=d.finalize(s),d.reset();C.concat(s)}return C.sigBytes=A*4,C}});t.EvpKDF=function(i,g,s){return a.create(s).compute(i,g)}})(),n.EvpKDF})})(ie)),ie.exports}var se={exports:{}},co=se.exports,It;function K(){return It||(It=1,(function(r,e){(function(n,t,o){r.exports=t(M(),v0())})(co,function(n){n.lib.Cipher||(function(t){var o=n,l=o.lib,c=l.Base,f=l.WordArray,v=l.BufferedBlockAlgorithm,a=o.enc;a.Utf8;var i=a.Base64,g=o.algo,s=g.EvpKDF,x=l.Cipher=v.extend({cfg:c.extend(),createEncryptor:function(B,D){return this.create(this._ENC_XFORM_MODE,B,D)},createDecryptor:function(B,D){return this.create(this._DEC_XFORM_MODE,B,D)},init:function(B,D,F){this.cfg=this.cfg.extend(F),this._xformMode=B,this._key=D,this.reset()},reset:function(){v.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var D=this._doFinalize();return D},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function B(D){return typeof D=="string"?S:y}return function(D){return{encrypt:function(F,k,P){return B(k).encrypt(D,F,k,P)},decrypt:function(F,k,P){return B(k).decrypt(D,F,k,P)}}}})()});l.StreamCipher=x.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var d=o.mode={},C=l.BlockCipherMode=c.extend({createEncryptor:function(B,D){return this.Encryptor.create(B,D)},createDecryptor:function(B,D){return this.Decryptor.create(B,D)},init:function(B,D){this._cipher=B,this._iv=D}}),p=d.CBC=(function(){var B=C.extend();B.Encryptor=B.extend({processBlock:function(F,k){var P=this._cipher,$=P.blockSize;D.call(this,F,k,$),P.encryptBlock(F,k),this._prevBlock=F.slice(k,k+$)}}),B.Decryptor=B.extend({processBlock:function(F,k){var P=this._cipher,$=P.blockSize,L=F.slice(k,k+$);P.decryptBlock(F,k),D.call(this,F,k,$),this._prevBlock=L}});function D(F,k,P){var $,L=this._iv;L?($=L,this._iv=t):$=this._prevBlock;for(var W=0;W<P;W++)F[k+W]^=$[W]}return B})(),A=o.pad={},u=A.Pkcs7={pad:function(B,D){for(var F=D*4,k=F-B.sigBytes%F,P=k<<24|k<<16|k<<8|k,$=[],L=0;L<k;L+=4)$.push(P);var W=f.create($,k);B.concat(W)},unpad:function(B){var D=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=D}};l.BlockCipher=x.extend({cfg:x.cfg.extend({mode:p,padding:u}),reset:function(){var B;x.reset.call(this);var D=this.cfg,F=D.iv,k=D.mode;this._xformMode==this._ENC_XFORM_MODE?B=k.createEncryptor:(B=k.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,F&&F.words):(this._mode=B.call(k,this,F&&F.words),this._mode.__creator=B)},_doProcessBlock:function(B,D){this._mode.processBlock(B,D)},_doFinalize:function(){var B,D=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(D.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),D.unpad(B)),B},blockSize:128/32});var h=l.CipherParams=c.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),m=o.format={},E=m.OpenSSL={stringify:function(B){var D,F=B.ciphertext,k=B.salt;return k?D=f.create([1398893684,1701076831]).concat(k).concat(F):D=F,D.toString(i)},parse:function(B){var D,F=i.parse(B),k=F.words;return k[0]==1398893684&&k[1]==1701076831&&(D=f.create(k.slice(2,4)),k.splice(0,4),F.sigBytes-=16),h.create({ciphertext:F,salt:D})}},y=l.SerializableCipher=c.extend({cfg:c.extend({format:E}),encrypt:function(B,D,F,k){k=this.cfg.extend(k);var P=B.createEncryptor(F,k),$=P.finalize(D),L=P.cfg;return h.create({ciphertext:$,key:F,iv:L.iv,algorithm:B,mode:L.mode,padding:L.padding,blockSize:B.blockSize,formatter:k.format})},decrypt:function(B,D,F,k){k=this.cfg.extend(k),D=this._parse(D,k.format);var P=B.createDecryptor(F,k).finalize(D.ciphertext);return P},_parse:function(B,D){return typeof B=="string"?D.parse(B,this):B}}),_=o.kdf={},b=_.OpenSSL={execute:function(B,D,F,k,P){if(k||(k=f.random(64/8)),P)var $=s.create({keySize:D+F,hasher:P}).compute(B,k);else var $=s.create({keySize:D+F}).compute(B,k);var L=f.create($.words.slice(D),F*4);return $.sigBytes=D*4,h.create({key:$,iv:L,salt:k})}},S=l.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:b}),encrypt:function(B,D,F,k){k=this.cfg.extend(k);var P=k.kdf.execute(F,B.keySize,B.ivSize,k.salt,k.hasher);k.iv=P.iv;var $=y.encrypt.call(this,B,D,P.key,k);return $.mixIn(P),$},decrypt:function(B,D,F,k){k=this.cfg.extend(k),D=this._parse(D,k.format);var P=k.kdf.execute(F,B.keySize,B.ivSize,D.salt,k.hasher);k.iv=P.iv;var $=y.decrypt.call(this,B,D,P.key,k);return $}})})()})})(se)),se.exports}var ce={exports:{}},lo=ce.exports,Ot;function xo(){return Ot||(Ot=1,(function(r,e){(function(n,t,o){r.exports=t(M(),K())})(lo,function(n){return n.mode.CFB=(function(){var t=n.lib.BlockCipherMode.extend();t.Encryptor=t.extend({processBlock:function(l,c){var f=this._cipher,v=f.blockSize;o.call(this,l,c,v,f),this._prevBlock=l.slice(c,c+v)}}),t.Decryptor=t.extend({processBlock:function(l,c){var f=this._cipher,v=f.blockSize,a=l.slice(c,c+v);o.call(this,l,c,v,f),this._prevBlock=a}});function o(l,c,f,v){var a,i=this._iv;i?(a=i.slice(0),this._iv=void 0):a=this._prevBlock,v.encryptBlock(a,0);for(var g=0;g<f;g++)l[c+g]^=a[g]}return t})(),n.mode.CFB})})(ce)),ce.exports}var le={exports:{}},fo=le.exports,Ht;function uo(){return Ht||(Ht=1,(function(r,e){(function(n,t,o){r.exports=t(M(),K())})(fo,function(n){return n.mode.CTR=(function(){var t=n.lib.BlockCipherMode.extend(),o=t.Encryptor=t.extend({processBlock:function(l,c){var f=this._cipher,v=f.blockSize,a=this._iv,i=this._counter;a&&(i=this._counter=a.slice(0),this._iv=void 0);var g=i.slice(0);f.encryptBlock(g,0),i[v-1]=i[v-1]+1|0;for(var s=0;s<v;s++)l[c+s]^=g[s]}});return t.Decryptor=o,t})(),n.mode.CTR})})(le)),le.exports}var xe={exports:{}},ho=xe.exports,Tt;function vo(){return Tt||(Tt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),K())})(ho,function(n){return n.mode.CTRGladman=(function(){var t=n.lib.BlockCipherMode.extend();function o(f){if((f>>24&255)===255){var v=f>>16&255,a=f>>8&255,i=f&255;v===255?(v=0,a===255?(a=0,i===255?i=0:++i):++a):++v,f=0,f+=v<<16,f+=a<<8,f+=i}else f+=1<<24;return f}function l(f){return(f[0]=o(f[0]))===0&&(f[1]=o(f[1])),f}var c=t.Encryptor=t.extend({processBlock:function(f,v){var a=this._cipher,i=a.blockSize,g=this._iv,s=this._counter;g&&(s=this._counter=g.slice(0),this._iv=void 0),l(s);var x=s.slice(0);a.encryptBlock(x,0);for(var d=0;d<i;d++)f[v+d]^=x[d]}});return t.Decryptor=c,t})(),n.mode.CTRGladman})})(xe)),xe.exports}var fe={exports:{}},po=fe.exports,Pt;function go(){return Pt||(Pt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),K())})(po,function(n){return n.mode.OFB=(function(){var t=n.lib.BlockCipherMode.extend(),o=t.Encryptor=t.extend({processBlock:function(l,c){var f=this._cipher,v=f.blockSize,a=this._iv,i=this._keystream;a&&(i=this._keystream=a.slice(0),this._iv=void 0),f.encryptBlock(i,0);for(var g=0;g<v;g++)l[c+g]^=i[g]}});return t.Decryptor=o,t})(),n.mode.OFB})})(fe)),fe.exports}var ue={exports:{}},Co=ue.exports,$t;function mo(){return $t||($t=1,(function(r,e){(function(n,t,o){r.exports=t(M(),K())})(Co,function(n){return n.mode.ECB=(function(){var t=n.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(o,l){this._cipher.encryptBlock(o,l)}}),t.Decryptor=t.extend({processBlock:function(o,l){this._cipher.decryptBlock(o,l)}}),t})(),n.mode.ECB})})(ue)),ue.exports}var de={exports:{}},Ao=de.exports,Lt;function yo(){return Lt||(Lt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),K())})(Ao,function(n){return n.pad.AnsiX923={pad:function(t,o){var l=t.sigBytes,c=o*4,f=c-l%c,v=l+f-1;t.clamp(),t.words[v>>>2]|=f<<24-v%4*8,t.sigBytes+=f},unpad:function(t){var o=t.words[t.sigBytes-1>>>2]&255;t.sigBytes-=o}},n.pad.Ansix923})})(de)),de.exports}var he={exports:{}},Bo=he.exports,zt;function Eo(){return zt||(zt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),K())})(Bo,function(n){return n.pad.Iso10126={pad:function(t,o){var l=o*4,c=l-t.sigBytes%l;t.concat(n.lib.WordArray.random(c-1)).concat(n.lib.WordArray.create([c<<24],1))},unpad:function(t){var o=t.words[t.sigBytes-1>>>2]&255;t.sigBytes-=o}},n.pad.Iso10126})})(he)),he.exports}var ve={exports:{}},_o=ve.exports,Nt;function Do(){return Nt||(Nt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),K())})(_o,function(n){return n.pad.Iso97971={pad:function(t,o){t.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(t,o)},unpad:function(t){n.pad.ZeroPadding.unpad(t),t.sigBytes--}},n.pad.Iso97971})})(ve)),ve.exports}var pe={exports:{}},bo=pe.exports,qt;function Fo(){return qt||(qt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),K())})(bo,function(n){return n.pad.ZeroPadding={pad:function(t,o){var l=o*4;t.clamp(),t.sigBytes+=l-(t.sigBytes%l||l)},unpad:function(t){for(var o=t.words,l=t.sigBytes-1,l=t.sigBytes-1;l>=0;l--)if(o[l>>>2]>>>24-l%4*8&255){t.sigBytes=l+1;break}}},n.pad.ZeroPadding})})(pe)),pe.exports}var ge={exports:{}},wo=ge.exports,Wt;function So(){return Wt||(Wt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),K())})(wo,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})})(ge)),ge.exports}var Ce={exports:{}},ko=Ce.exports,Mt;function Ro(){return Mt||(Mt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),K())})(ko,function(n){return(function(t){var o=n,l=o.lib,c=l.CipherParams,f=o.enc,v=f.Hex,a=o.format;a.Hex={stringify:function(i){return i.ciphertext.toString(v)},parse:function(i){var g=v.parse(i);return c.create({ciphertext:g})}}})(),n.format.Hex})})(Ce)),Ce.exports}var me={exports:{}},Io=me.exports,Vt;function Oo(){return Vt||(Vt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),C0(),m0(),v0(),K())})(Io,function(n){return(function(){var t=n,o=t.lib,l=o.BlockCipher,c=t.algo,f=[],v=[],a=[],i=[],g=[],s=[],x=[],d=[],C=[],p=[];(function(){for(var h=[],m=0;m<256;m++)m<128?h[m]=m<<1:h[m]=m<<1^283;for(var E=0,y=0,m=0;m<256;m++){var _=y^y<<1^y<<2^y<<3^y<<4;_=_>>>8^_&255^99,f[E]=_,v[_]=E;var b=h[E],S=h[b],B=h[S],D=h[_]*257^_*16843008;a[E]=D<<24|D>>>8,i[E]=D<<16|D>>>16,g[E]=D<<8|D>>>24,s[E]=D;var D=B*16843009^S*65537^b*257^E*16843008;x[_]=D<<24|D>>>8,d[_]=D<<16|D>>>16,C[_]=D<<8|D>>>24,p[_]=D,E?(E=b^h[h[h[B^b]]],y^=h[h[y]]):E=y=1}})();var A=[0,1,2,4,8,16,32,64,128,27,54],u=c.AES=l.extend({_doReset:function(){var h;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var m=this._keyPriorReset=this._key,E=m.words,y=m.sigBytes/4,_=this._nRounds=y+6,b=(_+1)*4,S=this._keySchedule=[],B=0;B<b;B++)B<y?S[B]=E[B]:(h=S[B-1],B%y?y>6&&B%y==4&&(h=f[h>>>24]<<24|f[h>>>16&255]<<16|f[h>>>8&255]<<8|f[h&255]):(h=h<<8|h>>>24,h=f[h>>>24]<<24|f[h>>>16&255]<<16|f[h>>>8&255]<<8|f[h&255],h^=A[B/y|0]<<24),S[B]=S[B-y]^h);for(var D=this._invKeySchedule=[],F=0;F<b;F++){var B=b-F;if(F%4)var h=S[B];else var h=S[B-4];F<4||B<=4?D[F]=h:D[F]=x[f[h>>>24]]^d[f[h>>>16&255]]^C[f[h>>>8&255]]^p[f[h&255]]}}},encryptBlock:function(h,m){this._doCryptBlock(h,m,this._keySchedule,a,i,g,s,f)},decryptBlock:function(h,m){var E=h[m+1];h[m+1]=h[m+3],h[m+3]=E,this._doCryptBlock(h,m,this._invKeySchedule,x,d,C,p,v);var E=h[m+1];h[m+1]=h[m+3],h[m+3]=E},_doCryptBlock:function(h,m,E,y,_,b,S,B){for(var D=this._nRounds,F=h[m]^E[0],k=h[m+1]^E[1],P=h[m+2]^E[2],$=h[m+3]^E[3],L=4,W=1;W<D;W++){var H=y[F>>>24]^_[k>>>16&255]^b[P>>>8&255]^S[$&255]^E[L++],N=y[k>>>24]^_[P>>>16&255]^b[$>>>8&255]^S[F&255]^E[L++],z=y[P>>>24]^_[$>>>16&255]^b[F>>>8&255]^S[k&255]^E[L++],w=y[$>>>24]^_[F>>>16&255]^b[k>>>8&255]^S[P&255]^E[L++];F=H,k=N,P=z,$=w}var H=(B[F>>>24]<<24|B[k>>>16&255]<<16|B[P>>>8&255]<<8|B[$&255])^E[L++],N=(B[k>>>24]<<24|B[P>>>16&255]<<16|B[$>>>8&255]<<8|B[F&255])^E[L++],z=(B[P>>>24]<<24|B[$>>>16&255]<<16|B[F>>>8&255]<<8|B[k&255])^E[L++],w=(B[$>>>24]<<24|B[F>>>16&255]<<16|B[k>>>8&255]<<8|B[P&255])^E[L++];h[m]=H,h[m+1]=N,h[m+2]=z,h[m+3]=w},keySize:256/32});t.AES=l._createHelper(u)})(),n.AES})})(me)),me.exports}var Ae={exports:{}},Ho=Ae.exports,Ut;function To(){return Ut||(Ut=1,(function(r,e){(function(n,t,o){r.exports=t(M(),C0(),m0(),v0(),K())})(Ho,function(n){return(function(){var t=n,o=t.lib,l=o.WordArray,c=o.BlockCipher,f=t.algo,v=[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],a=[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],i=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],g=[{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}],s=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],x=f.DES=c.extend({_doReset:function(){for(var A=this._key,u=A.words,h=[],m=0;m<56;m++){var E=v[m]-1;h[m]=u[E>>>5]>>>31-E%32&1}for(var y=this._subKeys=[],_=0;_<16;_++){for(var b=y[_]=[],S=i[_],m=0;m<24;m++)b[m/6|0]|=h[(a[m]-1+S)%28]<<31-m%6,b[4+(m/6|0)]|=h[28+(a[m+24]-1+S)%28]<<31-m%6;b[0]=b[0]<<1|b[0]>>>31;for(var m=1;m<7;m++)b[m]=b[m]>>>(m-1)*4+3;b[7]=b[7]<<5|b[7]>>>27}for(var B=this._invSubKeys=[],m=0;m<16;m++)B[m]=y[15-m]},encryptBlock:function(A,u){this._doCryptBlock(A,u,this._subKeys)},decryptBlock:function(A,u){this._doCryptBlock(A,u,this._invSubKeys)},_doCryptBlock:function(A,u,h){this._lBlock=A[u],this._rBlock=A[u+1],d.call(this,4,252645135),d.call(this,16,65535),C.call(this,2,858993459),C.call(this,8,16711935),d.call(this,1,1431655765);for(var m=0;m<16;m++){for(var E=h[m],y=this._lBlock,_=this._rBlock,b=0,S=0;S<8;S++)b|=g[S][((_^E[S])&s[S])>>>0];this._lBlock=_,this._rBlock=y^b}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,d.call(this,1,1431655765),C.call(this,8,16711935),C.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),A[u]=this._lBlock,A[u+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function d(A,u){var h=(this._lBlock>>>A^this._rBlock)&u;this._rBlock^=h,this._lBlock^=h<<A}function C(A,u){var h=(this._rBlock>>>A^this._lBlock)&u;this._lBlock^=h,this._rBlock^=h<<A}t.DES=c._createHelper(x);var p=f.TripleDES=c.extend({_doReset:function(){var A=this._key,u=A.words;if(u.length!==2&&u.length!==4&&u.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var h=u.slice(0,2),m=u.length<4?u.slice(0,2):u.slice(2,4),E=u.length<6?u.slice(0,2):u.slice(4,6);this._des1=x.createEncryptor(l.create(h)),this._des2=x.createEncryptor(l.create(m)),this._des3=x.createEncryptor(l.create(E))},encryptBlock:function(A,u){this._des1.encryptBlock(A,u),this._des2.decryptBlock(A,u),this._des3.encryptBlock(A,u)},decryptBlock:function(A,u){this._des3.decryptBlock(A,u),this._des2.encryptBlock(A,u),this._des1.decryptBlock(A,u)},keySize:192/32,ivSize:64/32,blockSize:64/32});t.TripleDES=c._createHelper(p)})(),n.TripleDES})})(Ae)),Ae.exports}var ye={exports:{}},Po=ye.exports,jt;function $o(){return jt||(jt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),C0(),m0(),v0(),K())})(Po,function(n){return(function(){var t=n,o=t.lib,l=o.StreamCipher,c=t.algo,f=c.RC4=l.extend({_doReset:function(){for(var i=this._key,g=i.words,s=i.sigBytes,x=this._S=[],d=0;d<256;d++)x[d]=d;for(var d=0,C=0;d<256;d++){var p=d%s,A=g[p>>>2]>>>24-p%4*8&255;C=(C+x[d]+A)%256;var u=x[d];x[d]=x[C],x[C]=u}this._i=this._j=0},_doProcessBlock:function(i,g){i[g]^=v.call(this)},keySize:256/32,ivSize:0});function v(){for(var i=this._S,g=this._i,s=this._j,x=0,d=0;d<4;d++){g=(g+1)%256,s=(s+i[g])%256;var C=i[g];i[g]=i[s],i[s]=C,x|=i[(i[g]+i[s])%256]<<24-d*8}return this._i=g,this._j=s,x}t.RC4=l._createHelper(f);var a=c.RC4Drop=f.extend({cfg:f.cfg.extend({drop:192}),_doReset:function(){f._doReset.call(this);for(var i=this.cfg.drop;i>0;i--)v.call(this)}});t.RC4Drop=l._createHelper(a)})(),n.RC4})})(ye)),ye.exports}var Be={exports:{}},Lo=Be.exports,Gt;function zo(){return Gt||(Gt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),C0(),m0(),v0(),K())})(Lo,function(n){return(function(){var t=n,o=t.lib,l=o.StreamCipher,c=t.algo,f=[],v=[],a=[],i=c.Rabbit=l.extend({_doReset:function(){for(var s=this._key.words,x=this.cfg.iv,d=0;d<4;d++)s[d]=(s[d]<<8|s[d]>>>24)&16711935|(s[d]<<24|s[d]>>>8)&4278255360;var C=this._X=[s[0],s[3]<<16|s[2]>>>16,s[1],s[0]<<16|s[3]>>>16,s[2],s[1]<<16|s[0]>>>16,s[3],s[2]<<16|s[1]>>>16],p=this._C=[s[2]<<16|s[2]>>>16,s[0]&4294901760|s[1]&65535,s[3]<<16|s[3]>>>16,s[1]&4294901760|s[2]&65535,s[0]<<16|s[0]>>>16,s[2]&4294901760|s[3]&65535,s[1]<<16|s[1]>>>16,s[3]&4294901760|s[0]&65535];this._b=0;for(var d=0;d<4;d++)g.call(this);for(var d=0;d<8;d++)p[d]^=C[d+4&7];if(x){var A=x.words,u=A[0],h=A[1],m=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,E=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,y=m>>>16|E&4294901760,_=E<<16|m&65535;p[0]^=m,p[1]^=y,p[2]^=E,p[3]^=_,p[4]^=m,p[5]^=y,p[6]^=E,p[7]^=_;for(var d=0;d<4;d++)g.call(this)}},_doProcessBlock:function(s,x){var d=this._X;g.call(this),f[0]=d[0]^d[5]>>>16^d[3]<<16,f[1]=d[2]^d[7]>>>16^d[5]<<16,f[2]=d[4]^d[1]>>>16^d[7]<<16,f[3]=d[6]^d[3]>>>16^d[1]<<16;for(var C=0;C<4;C++)f[C]=(f[C]<<8|f[C]>>>24)&16711935|(f[C]<<24|f[C]>>>8)&4278255360,s[x+C]^=f[C]},blockSize:128/32,ivSize:64/32});function g(){for(var s=this._X,x=this._C,d=0;d<8;d++)v[d]=x[d];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<v[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<v[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<v[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<v[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<v[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<v[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<v[6]>>>0?1:0)|0,this._b=x[7]>>>0<v[7]>>>0?1:0;for(var d=0;d<8;d++){var C=s[d]+x[d],p=C&65535,A=C>>>16,u=((p*p>>>17)+p*A>>>15)+A*A,h=((C&4294901760)*C|0)+((C&65535)*C|0);a[d]=u^h}s[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,s[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,s[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,s[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,s[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,s[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,s[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,s[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=l._createHelper(i)})(),n.Rabbit})})(Be)),Be.exports}var Ee={exports:{}},No=Ee.exports,Qt;function qo(){return Qt||(Qt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),C0(),m0(),v0(),K())})(No,function(n){return(function(){var t=n,o=t.lib,l=o.StreamCipher,c=t.algo,f=[],v=[],a=[],i=c.RabbitLegacy=l.extend({_doReset:function(){var s=this._key.words,x=this.cfg.iv,d=this._X=[s[0],s[3]<<16|s[2]>>>16,s[1],s[0]<<16|s[3]>>>16,s[2],s[1]<<16|s[0]>>>16,s[3],s[2]<<16|s[1]>>>16],C=this._C=[s[2]<<16|s[2]>>>16,s[0]&4294901760|s[1]&65535,s[3]<<16|s[3]>>>16,s[1]&4294901760|s[2]&65535,s[0]<<16|s[0]>>>16,s[2]&4294901760|s[3]&65535,s[1]<<16|s[1]>>>16,s[3]&4294901760|s[0]&65535];this._b=0;for(var p=0;p<4;p++)g.call(this);for(var p=0;p<8;p++)C[p]^=d[p+4&7];if(x){var A=x.words,u=A[0],h=A[1],m=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,E=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,y=m>>>16|E&4294901760,_=E<<16|m&65535;C[0]^=m,C[1]^=y,C[2]^=E,C[3]^=_,C[4]^=m,C[5]^=y,C[6]^=E,C[7]^=_;for(var p=0;p<4;p++)g.call(this)}},_doProcessBlock:function(s,x){var d=this._X;g.call(this),f[0]=d[0]^d[5]>>>16^d[3]<<16,f[1]=d[2]^d[7]>>>16^d[5]<<16,f[2]=d[4]^d[1]>>>16^d[7]<<16,f[3]=d[6]^d[3]>>>16^d[1]<<16;for(var C=0;C<4;C++)f[C]=(f[C]<<8|f[C]>>>24)&16711935|(f[C]<<24|f[C]>>>8)&4278255360,s[x+C]^=f[C]},blockSize:128/32,ivSize:64/32});function g(){for(var s=this._X,x=this._C,d=0;d<8;d++)v[d]=x[d];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<v[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<v[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<v[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<v[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<v[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<v[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<v[6]>>>0?1:0)|0,this._b=x[7]>>>0<v[7]>>>0?1:0;for(var d=0;d<8;d++){var C=s[d]+x[d],p=C&65535,A=C>>>16,u=((p*p>>>17)+p*A>>>15)+A*A,h=((C&4294901760)*C|0)+((C&65535)*C|0);a[d]=u^h}s[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,s[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,s[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,s[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,s[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,s[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,s[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,s[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=l._createHelper(i)})(),n.RabbitLegacy})})(Ee)),Ee.exports}var _e={exports:{}},Wo=_e.exports,Kt;function Mo(){return Kt||(Kt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),C0(),m0(),v0(),K())})(Wo,function(n){return(function(){var t=n,o=t.lib,l=o.BlockCipher,c=t.algo;const f=16,v=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[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 i={pbox:[],sbox:[]};function g(p,A){let u=A>>24&255,h=A>>16&255,m=A>>8&255,E=A&255,y=p.sbox[0][u]+p.sbox[1][h];return y=y^p.sbox[2][m],y=y+p.sbox[3][E],y}function s(p,A,u){let h=A,m=u,E;for(let y=0;y<f;++y)h=h^p.pbox[y],m=g(p,h)^m,E=h,h=m,m=E;return E=h,h=m,m=E,m=m^p.pbox[f],h=h^p.pbox[f+1],{left:h,right:m}}function x(p,A,u){let h=A,m=u,E;for(let y=f+1;y>1;--y)h=h^p.pbox[y],m=g(p,h)^m,E=h,h=m,m=E;return E=h,h=m,m=E,m=m^p.pbox[1],h=h^p.pbox[0],{left:h,right:m}}function d(p,A,u){for(let _=0;_<4;_++){p.sbox[_]=[];for(let b=0;b<256;b++)p.sbox[_][b]=a[_][b]}let h=0;for(let _=0;_<f+2;_++)p.pbox[_]=v[_]^A[h],h++,h>=u&&(h=0);let m=0,E=0,y=0;for(let _=0;_<f+2;_+=2)y=s(p,m,E),m=y.left,E=y.right,p.pbox[_]=m,p.pbox[_+1]=E;for(let _=0;_<4;_++)for(let b=0;b<256;b+=2)y=s(p,m,E),m=y.left,E=y.right,p.sbox[_][b]=m,p.sbox[_][b+1]=E;return!0}var C=c.Blowfish=l.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var p=this._keyPriorReset=this._key,A=p.words,u=p.sigBytes/4;d(i,A,u)}},encryptBlock:function(p,A){var u=s(i,p[A],p[A+1]);p[A]=u.left,p[A+1]=u.right},decryptBlock:function(p,A){var u=x(i,p[A],p[A+1]);p[A]=u.left,p[A+1]=u.right},blockSize:64/32,keySize:128/32,ivSize:64/32});t.Blowfish=l._createHelper(C)})(),n.Blowfish})})(_e)),_e.exports}var Vo=M0.exports,Xt;function Uo(){return Xt||(Xt=1,(function(r,e){(function(n,t,o){r.exports=t(M(),Oe(),Na(),Wa(),C0(),Ua(),m0(),hr(),Ge(),Xa(),vr(),Za(),to(),no(),Qe(),io(),v0(),K(),xo(),uo(),vo(),go(),mo(),yo(),Eo(),Do(),Fo(),So(),Ro(),Oo(),To(),$o(),zo(),qo(),Mo())})(Vo,function(n){return n})})(M0)),M0.exports}var jo=Uo();const O0=Ra(jo),Go="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Qo=(r=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(r|=0));for(;r--;)e+=Go[n[r]&63];return e};const Ko={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(){return{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}},computed:{isEn(){var r,e,n,t,o,l;if(this.lang)return this.lang==="en"||this.lang==="en-US";try{if(typeof useCookie=="function"){const c=(r=useCookie("jc-language"))==null?void 0:r.value;if(c)return/^en(-US)?$/.test(c)}}catch{}if(typeof document!="undefined"){const c=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(c)}try{if(typeof useNuxtApp=="function"){const c=useNuxtApp(),f=((l=(o=(t=(n=(e=c==null?void 0:c.ssrContext)==null?void 0:e.event)==null?void 0:n.node)==null?void 0:t.req)==null?void 0:o.headers)==null?void 0:l.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(f)}}catch{}return!1},showBox(){return this.mode==="pop"?this.visible:!0},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(parseInt(this.setSize.imgWidth)*47/340)+"px",height:this.setSize.imgHeight,top:e+"px",backgroundSize:this.setSize.imgWidth+" "+this.setSize.imgHeight}}},watch:{visible(r){r&&this.$nextTick(()=>{this.handleResize(),this.refresh()})}},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-"+Qo())},aesEncrypt(r,e="XwKsGlMcdPMEhR1B"){const n=O0.enc.Utf8.parse(e),t=O0.enc.Utf8.parse(r);return O0.AES.encrypt(t,n,{mode:O0.mode.ECB,padding:O0.pad.Pkcs7}).toString()},handleResize(){const r=window.innerWidth;let e=340;r<400?(e=r-60,this.currentBarHeight=44):(e=340,this.currentBarHeight=40),this.setSize.imgWidth=e+"px",this.setSize.imgHeight=e/2+"px",this.leftBarWidth=this.currentBarHeight+"px"},start(r){if(this.isEnd)return;const e=r||window.event,n=e.touches?e.touches[0].pageX:e.clientX,t=this.$refs.barArea;this.startLeft=Math.floor(n-t.getBoundingClientRect().left),this.startMoveTime=Date.now(),this.status=!0,this.transitionLeft="",this.transitionWidth="",this.moveBlockBackgroundColor="#1890ff",this.iconColor="#fff"},move(r){if(!this.status||this.isEnd)return;const e=r||window.event,n=e.touches?e.touches[0].pageX:e.clientX,t=this.$refs.barArea;let o=n-t.getBoundingClientRect().left-this.startLeft;const l=t.offsetWidth-this.currentBarHeight;o<=0&&(o=0),o>=l&&(o=l),this.moveBlockLeft=o+"px",this.leftBarWidth=o+this.currentBarHeight+"px",e.cancelable&&e.preventDefault()},end(){if(!this.status||this.isEnd)return;this.status=!1,this.endMoveTime=Date.now();let r=parseInt(this.moveBlockLeft.replace("px",""));r=r*310/parseInt(this.setSize.imgWidth);const e={pointJson:this.secretKey?this.aesEncrypt(JSON.stringify({x:r,y:5}),this.secretKey):JSON.stringify({x:r,y:5}),uuid:this.backToken};V.slideCheckApi(e).then(n=>{n.data.code===0?this.handleSuccess(n):this.handleError()}).catch(()=>this.handleError())},handleSuccess(r){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:r.data.data.uuid,code:r.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,V.slideGetApi({clientUid:localStorage.getItem("slider"),ts:Date.now()}).then(r=>{r.data.code===0?(this.backImgBase=r.data.data.originalImageBase64,this.blockBackImgBase=r.data.data.jigsawImageBase64,this.backToken=r.data.data.uuid,this.secretKey=r.data.data.secretKey):this.loading=!1}).catch(()=>{this.loading=!1})},closeBox(){this.$emit("update:visible",!1)}}};var Xo=function(){var e=this,n=e._self._c;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showBox,expression:"showBox"}],class:e.mode==="pop"?"captcha-mask":"captcha-relative-wrapper"},[n("div",{class:e.mode==="pop"?"auth-captcha-box":"",style:{width:e.mode==="pop"?e.setSize.imgWidth+"40px":"100%","max-width":"100%"}},[e.mode==="pop"?n("div",{staticClass:"auth-captcha-box-top"},[n("span",{staticClass:"auth-captcha-title"},[e._v(e._s(e.isEn?"please finish the security verification":"请完成安全验证"))]),n("span",{staticClass:"auth-captcha-box-close",on:{click:e.closeBox}},[e._v(" × ")])]):e._e(),n("div",{staticClass:"auth-captcha-box-bottom",style:{padding:e.mode==="pop"?"15px":"0"}},[n("div",{staticClass:"captcha-wrapper",staticStyle:{position:"relative"}},[e.captchaType==="blockPuzzle"?n("div",{staticClass:"auth-captcha-img-out",style:{height:parseInt(e.setSize.imgHeight)+e.vSpace+"px"}},[n("div",{staticClass:"auth-captcha-img-panel",style:{width:e.setSize.imgWidth,height:e.setSize.imgHeight}},[n("img",{staticClass:"main-img",attrs:{src:e.backImgBase?"data:image/png;base64,"+e.backImgBase:e.defaultImg,alt:"captcha"},on:{load:e.handleImageLoaded}}),e.loading?n("div",{staticClass:"auth-captcha-loading"},[n("div",{staticClass:"loading-icon"}),n("p",{staticClass:"loading-text"},[e._v(" "+e._s(e.isEn?"Loading...":"加载中...")+" ")])]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showRefresh,expression:"showRefresh"}],staticClass:"auth-captcha-refresh",on:{click:e.refresh}},[n("svg",{staticClass:"icon",attrs:{t:"1767753956986",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2523",width:"16",height:"16",fill:"#fff"}},[n("path",{attrs:{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"}})])]),n("transition",{attrs:{name:"tips-fade"}},[e.tipWords?n("div",{class:["auth-captcha-tips",e.passFlag?"suc-bg":"err-bg"]},[e._v(" "+e._s(e.tipWords)+" ")]):e._e()])],1)]):e._e(),n("div",{ref:"barArea",staticClass:"auth-captcha-bar-area",style:{width:e.setSize.imgWidth,height:e.currentBarHeight+"px",lineHeight:e.currentBarHeight+"px"}},[n("span",{staticClass:"auth-captcha-msg"},[e._v(e._s(e.barExplain))]),n("div",{staticClass:"auth-captcha-left-bar",style:{width:e.leftBarWidth,height:e.currentBarHeight+"px",borderColor:e.leftBarBorderColor,transition:e.transitionWidth}},[n("span",{staticClass:"auth-captcha-msg",domProps:{textContent:e._s(e.finishText)}}),n("div",{staticClass:"auth-captcha-move-block",style:{width:e.currentBarHeight+"px",height:e.currentBarHeight-2+"px",backgroundColor:e.moveBlockBackgroundColor,left:e.moveBlockLeft,transition:e.transitionLeft},on:{mousedown:e.start,touchstart:function(t){return t.preventDefault(),e.start.apply(null,arguments)}}},[n("i",{class:["auth-captcha-icon iconfont",e.iconClass],style:{color:e.iconColor}}),e.captchaType==="blockPuzzle"?n("div",{staticClass:"auth-captcha-sub-block",style:e.subBlockStyle},[e.blockBackImgBase?n("img",{staticClass:"sub-img",attrs:{src:"data:image/png;base64,"+e.blockBackImgBase}}):e._e()]):e._e()])])])])])])])},Jo=[],Yo=x0(Ko,Xo,Jo,!1,null,"ce1b7e38");const Zo=Yo.exports,ei=Object.freeze(Object.defineProperty({__proto__:null,default:Zo},Symbol.toStringTag,{value:"Module"})),ti={},c0=(...r)=>{for(const e of r)if(typeof e=="string"){const n=e.trim();if(n)return n}return""},ze=(...r)=>{for(const e of r){if(typeof e=="boolean")return e;if(typeof e=="string"){const n=e.trim().toLowerCase();if(n==="true")return!0;if(n==="false")return!1}}},ri=r=>{if(typeof window=="undefined")return{};const e=window,n=e==null?void 0:e[r],t=e==null?void 0:e.__JCTRANS_GIO_CONFIG__,o=e==null?void 0:e.__GIO_CONFIG__,l=n||t||o;return l&&typeof l=="object"?l:{}},ni=r=>(c0(r)||"gio-track").replace(/^v-/,""),ai=r=>{const e=r.value;return typeof e=="string"?{eventName:e.trim(),trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1}:!e||typeof e!="object"?{eventName:"",trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1}:{eventName:c0(e.event,e.name,r.arg),trigger:c0(e.trigger)||"click",attrs:e.attributes||e.attrs||{},once:!!e.once,stop:!!e.stop,prevent:!!e.prevent,callback:typeof e.onTracked=="function"?e.onTracked:typeof e.callback=="function"?e.callback:void 0}},We=r=>{const e=r.__jctransTrackHandler__;e&&(r.removeEventListener(e.trigger,e.handler),delete r.__jctransTrackHandler__)},Jt=(r,e,n)=>{We(r);const t=ai(e);if(!t.eventName)return;const o=l=>{t.prevent&&"preventDefault"in l&&l.preventDefault(),t.stop&&"stopPropagation"in l&&l.stopPropagation(),n.isInitialized()&&n.track(t.eventName,t.attrs,()=>{var c;(c=t.callback)==null||c.call(t,{event:l,eventName:t.eventName,attrs:t.attrs,trigger:t.trigger})}),t.once&&We(r)};r.addEventListener(t.trigger,o),r.__jctransTrackHandler__={eventName:t.eventName,trigger:t.trigger,handler:o}},oi=r=>(e,n)=>{const t=c0(e);!t||!r.isInitialized()||r.track(t,n||{})},ii=(r,e)=>{if(typeof window=="undefined"||!r)return;const n=window;n.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__||(n.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__=new Set);const t=n.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__;if(t.has(e))return;const o=V.getOrCreateClientId();if(!o)return;const l=window.gdp;typeof l=="function"&&(t.add(e),l("identify",o))};function pr(r){return{install(e){var p,A,u;const n=V.tracker,t=ti||{},o=r||{},l=c0(o.globalVarName,"__JCTRANS_GIO_CONFIG__"),c=ri(l),f=ze(c.enabled,o.enabled,t.VITE_GIO_ENABLED),v={...o.initOptions||{},...c.initOptions||{}};if(!v.serverUrl){const h=c0(c.serverUrl,o.serverUrl,t.VITE_GIO_SERVER_URL);h&&(v.serverUrl=h)}const a=c0(c.accountId,o.accountId,t.VITE_GIO_ACCOUNT_ID),i=c0(c.dataSourceId,o.dataSourceId,t.VITE_GIO_DATA_SOURCE_ID,t.VITE_GIO_DATASOURCE_ID),g=c0(c.appId,o.appId,t.VITE_GIO_APP_ID),s=ze(c.autoInit,o.autoInit,t.VITE_GIO_AUTO_INIT),x=(u=ze((p=c.initOptions)==null?void 0:p.forceLogin,(A=o.initOptions)==null?void 0:A.forceLogin,v.forceLogin))!=null?u:!1,d=ni(c.directiveName||o.directiveName);(f==null||f)&&(s==null||s)&&a&&i&&!n.isInitialized()&&(g?n.init(a,i,g,v):n.init(a,i,v),ii(x,`jctrans-gio-identify-device:${a}:${i}`));const C=oi(n);e.prototype.$gio=n,e.prototype.$trackEvent=C,e.directive(d,{bind(h,m){Jt(h,m,n)},update(h,m){Jt(h,m,n)},unbind(h){We(h)}})}}}let si={open(){V.emitter.emit(V.MODAL_ACTION.Open)},close(){V.emitter.emit(V.MODAL_ACTION.Close)},onSubmit(r){V.emitter.on(V.MODAL_ACTION.Submit,r)}};function ci(){let r=!1;return{install(e){if(typeof window!="undefined"&&!r){const n=document.createElement("div");n.setAttribute("id","global-modal-root"),document.body.appendChild(n);const t=e.extend(dr);new t().$mount(n),r=!0}e.prototype.$globalModal=si}}}const Yt={},li=Object.assign({"./components/ApplyDataDialog.vue":Gn,"./components/GlobalModal.vue":Yn,"./components/JcCarrierSearch/AirCarrierSearch.vue":ua,"./components/JcCarrierSearch/AirLineSearch.vue":Ca,"./components/JcCarrierSearch/SeaCarrierSearch.vue":_a,"./components/JcCarrierSearch/SeaLineSearch.vue":ka,"./components/JcCarrierSearch/index.vue":ia,"./components/JcSearch/index.vue":qn,"./components/JcVerifySlide/index.vue":ei}),we={};Object.entries(li).forEach(([r,e])=>{let n="";if(Yt[r])n=Yt[r];else{const o=r.replace("./components/","").replace(".vue","").split("/"),l=o.pop()||"";l==="index"&&o.length>0?n=o.pop()||"":n=l}n&&(we[n]=e.default||e)});const{ApplyDataDialog:xi,JcSearch:fi,GlobalModal:ui,JcCarrierSearch:di,AirCarrierSearch:hi,SeaCarrierSearch:vi,AirLineSearch:pi,SeaLineSearch:gi}=we;let Zt=!1;const Ci={install(r,e){Zt||(Zt=!0,e!=null&&e.sharedConfig&&V.initSharedConfig(e.sharedConfig),e!=null&&e.tracking&&r.use(pr(e.tracking)),Object.keys(we).forEach(n=>{r.component(n,we[n]),console.log(`[JcUI Vue2] 自动注册组件: ${n}`)}))}};Object.defineProperty(exports,"MODAL_ACTION",{enumerable:!0,get:()=>V.MODAL_ACTION});Object.defineProperty(exports,"emitter",{enumerable:!0,get:()=>V.emitter});Object.defineProperty(exports,"initSharedConfig",{enumerable:!0,get:()=>V.initSharedConfig});exports.AirCarrierSearch=hi;exports.AirLineSearch=pi;exports.ApplyDataDialog=xi;exports.GlobalModal=ui;exports.JcCarrierSearch=di;exports.JcSearch=fi;exports.SeaCarrierSearch=vi;exports.SeaLineSearch=gi;exports.createGioTrackingPlugin=pr;exports.createGlobalModalPlugin=ci;exports.default=Ci;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=require("vue-demi"),b=require("@jctrans-materials/shared"),U=require("jctrans-ui"),ht=require("crypto-js"),Mt=require("js-cookie"),gv=require("qrcode");function vv(i){const e=C.ref([]),r="_search_history_cache",s=typeof window!="undefined"&&typeof localStorage!="undefined",u=C.computed(()=>(i.value||"")+r),p=C.computed(()=>!!i.value&&i.value!==""),l=A=>{if(!A||!s)return;const v=e.value.filter(T=>T.id&&T.id!==A.id||T.display!==A.display);v.unshift(A);const x=v.slice(0,4);if(p.value){e.value=x;try{localStorage.setItem(u.value,JSON.stringify(x))}catch(T){console.warn("LocalStorage save failed:",T)}}},m=()=>{e.value=[],s&&localStorage.removeItem(u.value)};return C.onMounted(()=>{if(s&&p.value){const A=localStorage.getItem(u.value);if(A)try{e.value=JSON.parse(A)}catch{e.value=[]}}}),{searchHistory:e,saveToHistory:l,clearHistory:m,HasHistory:p}}async function yv(i,e=["Continent","Country","City","Seaport","Airport"],r={}){return b.locationSearchV2.searchByName({keyword:i,displayInfo:e,...r})}const ja=(i,e)=>b.locationSearchV2.searchByIdWithType(i,e);function Cv(i,e){const r=C.ref([]),s=C.ref(!1),u=C.ref(!1),p=C.ref(1),l=C.ref(0),m=C.ref(10),A=C.computed(()=>l.value===0?!1:r.value.length>=l.value),v=C.computed(()=>{const I=[...e.value];return I.includes("Country")&&!I.includes("Region")&&I.push("Region"),I}),x=I=>!I||!Array.isArray(I)?[]:I.filter(B=>v.value.includes(B.type));return{searchResults:r,loading:s,isFetchingMore:u,isFinished:A,currentPage:p,total:l,fetchData:async(I=1,B=!1)=>{if(!i.value.trim()&&!B){r.value=[],l.value=0;return}if(!(B&&(u.value||A.value))&&!(!B&&s.value)){B?u.value=!0:(s.value=!0,p.value=1);try{const D=await yv(i.value,e.value,{current:I,size:m.value}),W=D.records||[],k=x(W);B?r.value=[...r.value,...k]:r.value=k,l.value=D.total||0,p.value=I}catch(D){console.error("Failed to fetch search results:",D)}finally{s.value=!1,u.value=!1}}},filterByTypes:x}}const kn=Math.min,$e=Math.max,ci=Math.round,oi=Math.floor,wt=i=>({x:i,y:i}),_v={left:"right",right:"left",bottom:"top",top:"bottom"};function Wl(i,e,r){return $e(i,kn(e,r))}function fr(i,e){return typeof i=="function"?i(e):i}function Zt(i){return i.split("-")[0]}function dr(i){return i.split("-")[1]}function ac(i){return i==="x"?"y":"x"}function sc(i){return i==="y"?"height":"width"}function Nt(i){const e=i[0];return e==="t"||e==="b"?"y":"x"}function oc(i){return ac(Nt(i))}function Av(i,e,r){r===void 0&&(r=!1);const s=dr(i),u=oc(i),p=sc(u);let l=u==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[p]>e.floating[p]&&(l=ui(l)),[l,ui(l)]}function wv(i){const e=ui(i);return[$a(i),e,$a(e)]}function $a(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}const Hl=["left","right"],Gl=["right","left"],bv=["top","bottom"],Ev=["bottom","top"];function Sv(i,e,r){switch(i){case"top":case"bottom":return r?e?Gl:Hl:e?Hl:Gl;case"left":case"right":return e?bv:Ev;default:return[]}}function Iv(i,e,r,s){const u=dr(i);let p=Sv(Zt(i),r==="start",s);return u&&(p=p.map(l=>l+"-"+u),e&&(p=p.concat(p.map($a)))),p}function ui(i){const e=Zt(i);return _v[e]+i.slice(e.length)}function xv(i){return{top:0,right:0,bottom:0,left:0,...i}}function Tv(i){return typeof i!="number"?xv(i):{top:i,right:i,bottom:i,left:i}}function fi(i){const{x:e,y:r,width:s,height:u}=i;return{width:s,height:u,top:r,left:e,right:e+s,bottom:r+u,x:e,y:r}}function Jl(i,e,r){let{reference:s,floating:u}=i;const p=Nt(e),l=oc(e),m=sc(l),A=Zt(e),v=p==="y",x=s.x+s.width/2-u.width/2,T=s.y+s.height/2-u.height/2,I=s[m]/2-u[m]/2;let B;switch(A){case"top":B={x,y:s.y-u.height};break;case"bottom":B={x,y:s.y+s.height};break;case"right":B={x:s.x+s.width,y:T};break;case"left":B={x:s.x-u.width,y:T};break;default:B={x:s.x,y:s.y}}switch(dr(e)){case"start":B[l]-=I*(r&&v?-1:1);break;case"end":B[l]+=I*(r&&v?-1:1);break}return B}async function Rv(i,e){var r;e===void 0&&(e={});const{x:s,y:u,platform:p,rects:l,elements:m,strategy:A}=i,{boundary:v="clippingAncestors",rootBoundary:x="viewport",elementContext:T="floating",altBoundary:I=!1,padding:B=0}=fr(e,i),D=Tv(B),k=m[I?T==="floating"?"reference":"floating":T],S=fi(await p.getClippingRect({element:(r=await(p.isElement==null?void 0:p.isElement(k)))==null||r?k:k.contextElement||await(p.getDocumentElement==null?void 0:p.getDocumentElement(m.floating)),boundary:v,rootBoundary:x,strategy:A})),N=T==="floating"?{x:s,y:u,width:l.floating.width,height:l.floating.height}:l.reference,H=await(p.getOffsetParent==null?void 0:p.getOffsetParent(m.floating)),Q=await(p.isElement==null?void 0:p.isElement(H))?await(p.getScale==null?void 0:p.getScale(H))||{x:1,y:1}:{x:1,y:1},z=fi(p.convertOffsetParentRelativeRectToViewportRelativeRect?await p.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:N,offsetParent:H,strategy:A}):N);return{top:(S.top-z.top+D.top)/Q.y,bottom:(z.bottom-S.bottom+D.bottom)/Q.y,left:(S.left-z.left+D.left)/Q.x,right:(z.right-S.right+D.right)/Q.x}}const Bv=50,Fv=async(i,e,r)=>{const{placement:s="bottom",strategy:u="absolute",middleware:p=[],platform:l}=r,m=l.detectOverflow?l:{...l,detectOverflow:Rv},A=await(l.isRTL==null?void 0:l.isRTL(e));let v=await l.getElementRects({reference:i,floating:e,strategy:u}),{x,y:T}=Jl(v,s,A),I=s,B=0;const D={};for(let W=0;W<p.length;W++){const k=p[W];if(!k)continue;const{name:S,fn:N}=k,{x:H,y:Q,data:z,reset:E}=await N({x,y:T,initialPlacement:s,placement:I,strategy:u,middlewareData:D,rects:v,platform:m,elements:{reference:i,floating:e}});x=H!=null?H:x,T=Q!=null?Q:T,D[S]={...D[S],...z},E&&B<Bv&&(B++,typeof E=="object"&&(E.placement&&(I=E.placement),E.rects&&(v=E.rects===!0?await l.getElementRects({reference:i,floating:e,strategy:u}):E.rects),{x,y:T}=Jl(v,I,A)),W=-1)}return{x,y:T,placement:I,strategy:u,middlewareData:D}},Pv=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(e){var r,s;const{placement:u,middlewareData:p,rects:l,initialPlacement:m,platform:A,elements:v}=e,{mainAxis:x=!0,crossAxis:T=!0,fallbackPlacements:I,fallbackStrategy:B="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:W=!0,...k}=fr(i,e);if((r=p.arrow)!=null&&r.alignmentOffset)return{};const S=Zt(u),N=Nt(m),H=Zt(m)===m,Q=await(A.isRTL==null?void 0:A.isRTL(v.floating)),z=I||(H||!W?[ui(m)]:wv(m)),E=D!=="none";!I&&E&&z.push(...Iv(m,W,D,Q));const q=[m,...z],F=await A.detectOverflow(e,k),w=[];let M=((s=p.flip)==null?void 0:s.overflows)||[];if(x&&w.push(F[S]),T){const fe=Av(u,l,Q);w.push(F[fe[0]],F[fe[1]])}if(M=[...M,{placement:u,overflows:w}],!w.every(fe=>fe<=0)){var G,$;const fe=(((G=p.flip)==null?void 0:G.index)||0)+1,Te=q[fe];if(Te&&(!(T==="alignment"?N!==Nt(Te):!1)||M.every(j=>Nt(j.placement)===N?j.overflows[0]>0:!0)))return{data:{index:fe,overflows:M},reset:{placement:Te}};let Pe=($=M.filter(X=>X.overflows[0]<=0).sort((X,j)=>X.overflows[1]-j.overflows[1])[0])==null?void 0:$.placement;if(!Pe)switch(B){case"bestFit":{var ye;const X=(ye=M.filter(j=>{if(E){const ne=Nt(j.placement);return ne===N||ne==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(ne=>ne>0).reduce((ne,Ce)=>ne+Ce,0)]).sort((j,ne)=>j[1]-ne[1])[0])==null?void 0:ye[0];X&&(Pe=X);break}case"initialPlacement":Pe=m;break}if(u!==Pe)return{reset:{placement:Pe}}}return{}}}},kv=new Set(["left","top"]);async function Dv(i,e){const{placement:r,platform:s,elements:u}=i,p=await(s.isRTL==null?void 0:s.isRTL(u.floating)),l=Zt(r),m=dr(r),A=Nt(r)==="y",v=kv.has(l)?-1:1,x=p&&A?-1:1,T=fr(e,i);let{mainAxis:I,crossAxis:B,alignmentAxis:D}=typeof T=="number"?{mainAxis:T,crossAxis:0,alignmentAxis:null}:{mainAxis:T.mainAxis||0,crossAxis:T.crossAxis||0,alignmentAxis:T.alignmentAxis};return m&&typeof D=="number"&&(B=m==="end"?D*-1:D),A?{x:B*x,y:I*v}:{x:I*v,y:B*x}}const Ov=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(e){var r,s;const{x:u,y:p,placement:l,middlewareData:m}=e,A=await Dv(e,i);return l===((r=m.offset)==null?void 0:r.placement)&&(s=m.arrow)!=null&&s.alignmentOffset?{}:{x:u+A.x,y:p+A.y,data:{...A,placement:l}}}}},Lv=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(e){const{x:r,y:s,placement:u,platform:p}=e,{mainAxis:l=!0,crossAxis:m=!1,limiter:A={fn:S=>{let{x:N,y:H}=S;return{x:N,y:H}}},...v}=fr(i,e),x={x:r,y:s},T=await p.detectOverflow(e,v),I=Nt(Zt(u)),B=ac(I);let D=x[B],W=x[I];if(l){const S=B==="y"?"top":"left",N=B==="y"?"bottom":"right",H=D+T[S],Q=D-T[N];D=Wl(H,D,Q)}if(m){const S=I==="y"?"top":"left",N=I==="y"?"bottom":"right",H=W+T[S],Q=W-T[N];W=Wl(H,W,Q)}const k=A.fn({...e,[B]:D,[I]:W});return{...k,data:{x:k.x-r,y:k.y-s,enabled:{[B]:l,[I]:m}}}}}},Nv=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(e){var r,s;const{placement:u,rects:p,platform:l,elements:m}=e,{apply:A=()=>{},...v}=fr(i,e),x=await l.detectOverflow(e,v),T=Zt(u),I=dr(u),B=Nt(u)==="y",{width:D,height:W}=p.floating;let k,S;T==="top"||T==="bottom"?(k=T,S=I===(await(l.isRTL==null?void 0:l.isRTL(m.floating))?"start":"end")?"left":"right"):(S=T,k=I==="end"?"top":"bottom");const N=W-x.top-x.bottom,H=D-x.left-x.right,Q=kn(W-x[k],N),z=kn(D-x[S],H),E=!e.middlewareData.shift;let q=Q,F=z;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(F=H),(s=e.middlewareData.shift)!=null&&s.enabled.y&&(q=N),E&&!I){const M=$e(x.left,0),G=$e(x.right,0),$=$e(x.top,0),ye=$e(x.bottom,0);B?F=D-2*(M!==0||G!==0?M+G:$e(x.left,x.right)):q=W-2*($!==0||ye!==0?$+ye:$e(x.top,x.bottom))}await A({...e,availableWidth:F,availableHeight:q});const w=await l.getDimensions(m.floating);return D!==w.width||W!==w.height?{reset:{rects:!0}}:{}}}};function mi(){return typeof window!="undefined"}function Mn(i){return lc(i)?(i.nodeName||"").toLowerCase():"#document"}function Ze(i){var e;return(i==null||(e=i.ownerDocument)==null?void 0:e.defaultView)||window}function bt(i){var e;return(e=(lc(i)?i.ownerDocument:i.document)||window.document)==null?void 0:e.documentElement}function lc(i){return mi()?i instanceof Node||i instanceof Ze(i).Node:!1}function mt(i){return mi()?i instanceof Element||i instanceof Ze(i).Element:!1}function qt(i){return mi()?i instanceof HTMLElement||i instanceof Ze(i).HTMLElement:!1}function jl(i){return!mi()||typeof ShadowRoot=="undefined"?!1:i instanceof ShadowRoot||i instanceof Ze(i).ShadowRoot}function pr(i){const{overflow:e,overflowX:r,overflowY:s,display:u}=gt(i);return/auto|scroll|overlay|hidden|clip/.test(e+s+r)&&u!=="inline"&&u!=="contents"}function Mv(i){return/^(table|td|th)$/.test(Mn(i))}function gi(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}const Uv=/transform|translate|scale|rotate|perspective|filter/,qv=/paint|layout|strict|content/,hn=i=>!!i&&i!=="none";let za;function ns(i){const e=mt(i)?gt(i):i;return hn(e.transform)||hn(e.translate)||hn(e.scale)||hn(e.rotate)||hn(e.perspective)||!rs()&&(hn(e.backdropFilter)||hn(e.filter))||Uv.test(e.willChange||"")||qv.test(e.contain||"")}function Vv(i){let e=en(i);for(;qt(e)&&!Dn(e);){if(ns(e))return e;if(gi(e))return null;e=en(e)}return null}function rs(){return za==null&&(za=typeof CSS!="undefined"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),za}function Dn(i){return/^(html|body|#document)$/.test(Mn(i))}function gt(i){return Ze(i).getComputedStyle(i)}function vi(i){return mt(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function en(i){if(Mn(i)==="html")return i;const e=i.assignedSlot||i.parentNode||jl(i)&&i.host||bt(i);return jl(e)?e.host:e}function cc(i){const e=en(i);return Dn(e)?i.ownerDocument?i.ownerDocument.body:i.body:qt(e)&&pr(e)?e:cc(e)}function ur(i,e,r){var s;e===void 0&&(e=[]),r===void 0&&(r=!0);const u=cc(i),p=u===((s=i.ownerDocument)==null?void 0:s.body),l=Ze(u);if(p){const m=Za(l);return e.concat(l,l.visualViewport||[],pr(u)?u:[],m&&r?ur(m):[])}else return e.concat(u,ur(u,[],r))}function Za(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function uc(i){const e=gt(i);let r=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const u=qt(i),p=u?i.offsetWidth:r,l=u?i.offsetHeight:s,m=ci(r)!==p||ci(s)!==l;return m&&(r=p,s=l),{width:r,height:s,$:m}}function is(i){return mt(i)?i:i.contextElement}function Pn(i){const e=is(i);if(!qt(e))return wt(1);const r=e.getBoundingClientRect(),{width:s,height:u,$:p}=uc(e);let l=(p?ci(r.width):r.width)/s,m=(p?ci(r.height):r.height)/u;return(!l||!Number.isFinite(l))&&(l=1),(!m||!Number.isFinite(m))&&(m=1),{x:l,y:m}}const Wv=wt(0);function fc(i){const e=Ze(i);return!rs()||!e.visualViewport?Wv:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Hv(i,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ze(i)?!1:e}function mn(i,e,r,s){e===void 0&&(e=!1),r===void 0&&(r=!1);const u=i.getBoundingClientRect(),p=is(i);let l=wt(1);e&&(s?mt(s)&&(l=Pn(s)):l=Pn(i));const m=Hv(p,r,s)?fc(p):wt(0);let A=(u.left+m.x)/l.x,v=(u.top+m.y)/l.y,x=u.width/l.x,T=u.height/l.y;if(p){const I=Ze(p),B=s&&mt(s)?Ze(s):s;let D=I,W=Za(D);for(;W&&s&&B!==D;){const k=Pn(W),S=W.getBoundingClientRect(),N=gt(W),H=S.left+(W.clientLeft+parseFloat(N.paddingLeft))*k.x,Q=S.top+(W.clientTop+parseFloat(N.paddingTop))*k.y;A*=k.x,v*=k.y,x*=k.x,T*=k.y,A+=H,v+=Q,D=Ze(W),W=Za(D)}}return fi({width:x,height:T,x:A,y:v})}function yi(i,e){const r=vi(i).scrollLeft;return e?e.left+r:mn(bt(i)).left+r}function dc(i,e){const r=i.getBoundingClientRect(),s=r.left+e.scrollLeft-yi(i,r),u=r.top+e.scrollTop;return{x:s,y:u}}function Gv(i){let{elements:e,rect:r,offsetParent:s,strategy:u}=i;const p=u==="fixed",l=bt(s),m=e?gi(e.floating):!1;if(s===l||m&&p)return r;let A={scrollLeft:0,scrollTop:0},v=wt(1);const x=wt(0),T=qt(s);if((T||!T&&!p)&&((Mn(s)!=="body"||pr(l))&&(A=vi(s)),T)){const B=mn(s);v=Pn(s),x.x=B.x+s.clientLeft,x.y=B.y+s.clientTop}const I=l&&!T&&!p?dc(l,A):wt(0);return{width:r.width*v.x,height:r.height*v.y,x:r.x*v.x-A.scrollLeft*v.x+x.x+I.x,y:r.y*v.y-A.scrollTop*v.y+x.y+I.y}}function Jv(i){return Array.from(i.getClientRects())}function jv(i){const e=bt(i),r=vi(i),s=i.ownerDocument.body,u=$e(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),p=$e(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let l=-r.scrollLeft+yi(i);const m=-r.scrollTop;return gt(s).direction==="rtl"&&(l+=$e(e.clientWidth,s.clientWidth)-u),{width:u,height:p,x:l,y:m}}const zl=25;function zv(i,e){const r=Ze(i),s=bt(i),u=r.visualViewport;let p=s.clientWidth,l=s.clientHeight,m=0,A=0;if(u){p=u.width,l=u.height;const x=rs();(!x||x&&e==="fixed")&&(m=u.offsetLeft,A=u.offsetTop)}const v=yi(s);if(v<=0){const x=s.ownerDocument,T=x.body,I=getComputedStyle(T),B=x.compatMode==="CSS1Compat"&&parseFloat(I.marginLeft)+parseFloat(I.marginRight)||0,D=Math.abs(s.clientWidth-T.clientWidth-B);D<=zl&&(p-=D)}else v<=zl&&(p+=v);return{width:p,height:l,x:m,y:A}}function Qv(i,e){const r=mn(i,!0,e==="fixed"),s=r.top+i.clientTop,u=r.left+i.clientLeft,p=qt(i)?Pn(i):wt(1),l=i.clientWidth*p.x,m=i.clientHeight*p.y,A=u*p.x,v=s*p.y;return{width:l,height:m,x:A,y:v}}function Ql(i,e,r){let s;if(e==="viewport")s=zv(i,r);else if(e==="document")s=jv(bt(i));else if(mt(e))s=Qv(e,r);else{const u=fc(i);s={x:e.x-u.x,y:e.y-u.y,width:e.width,height:e.height}}return fi(s)}function pc(i,e){const r=en(i);return r===e||!mt(r)||Dn(r)?!1:gt(r).position==="fixed"||pc(r,e)}function Kv(i,e){const r=e.get(i);if(r)return r;let s=ur(i,[],!1).filter(m=>mt(m)&&Mn(m)!=="body"),u=null;const p=gt(i).position==="fixed";let l=p?en(i):i;for(;mt(l)&&!Dn(l);){const m=gt(l),A=ns(l);!A&&m.position==="fixed"&&(u=null),(p?!A&&!u:!A&&m.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||pr(l)&&!A&&pc(i,l))?s=s.filter(x=>x!==l):u=m,l=en(l)}return e.set(i,s),s}function Xv(i){let{element:e,boundary:r,rootBoundary:s,strategy:u}=i;const l=[...r==="clippingAncestors"?gi(e)?[]:Kv(e,this._c):[].concat(r),s],m=Ql(e,l[0],u);let A=m.top,v=m.right,x=m.bottom,T=m.left;for(let I=1;I<l.length;I++){const B=Ql(e,l[I],u);A=$e(B.top,A),v=kn(B.right,v),x=kn(B.bottom,x),T=$e(B.left,T)}return{width:v-T,height:x-A,x:T,y:A}}function Yv(i){const{width:e,height:r}=uc(i);return{width:e,height:r}}function $v(i,e,r){const s=qt(e),u=bt(e),p=r==="fixed",l=mn(i,!0,p,e);let m={scrollLeft:0,scrollTop:0};const A=wt(0);function v(){A.x=yi(u)}if(s||!s&&!p)if((Mn(e)!=="body"||pr(u))&&(m=vi(e)),s){const B=mn(e,!0,p,e);A.x=B.x+e.clientLeft,A.y=B.y+e.clientTop}else u&&v();p&&!s&&u&&v();const x=u&&!s&&!p?dc(u,m):wt(0),T=l.left+m.scrollLeft-A.x-x.x,I=l.top+m.scrollTop-A.y-x.y;return{x:T,y:I,width:l.width,height:l.height}}function Qa(i){return gt(i).position==="static"}function Kl(i,e){if(!qt(i)||gt(i).position==="fixed")return null;if(e)return e(i);let r=i.offsetParent;return bt(i)===r&&(r=r.ownerDocument.body),r}function hc(i,e){const r=Ze(i);if(gi(i))return r;if(!qt(i)){let u=en(i);for(;u&&!Dn(u);){if(mt(u)&&!Qa(u))return u;u=en(u)}return r}let s=Kl(i,e);for(;s&&Mv(s)&&Qa(s);)s=Kl(s,e);return s&&Dn(s)&&Qa(s)&&!ns(s)?r:s||Vv(i)||r}const Zv=async function(i){const e=this.getOffsetParent||hc,r=this.getDimensions,s=await r(i.floating);return{reference:$v(i.reference,await e(i.floating),i.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function ey(i){return gt(i).direction==="rtl"}const ty={convertOffsetParentRelativeRectToViewportRelativeRect:Gv,getDocumentElement:bt,getClippingRect:Xv,getOffsetParent:hc,getElementRects:Zv,getClientRects:Jv,getDimensions:Yv,getScale:Pn,isElement:mt,isRTL:ey};function mc(i,e){return i.x===e.x&&i.y===e.y&&i.width===e.width&&i.height===e.height}function ny(i,e){let r=null,s;const u=bt(i);function p(){var m;clearTimeout(s),(m=r)==null||m.disconnect(),r=null}function l(m,A){m===void 0&&(m=!1),A===void 0&&(A=1),p();const v=i.getBoundingClientRect(),{left:x,top:T,width:I,height:B}=v;if(m||e(),!I||!B)return;const D=oi(T),W=oi(u.clientWidth-(x+I)),k=oi(u.clientHeight-(T+B)),S=oi(x),H={rootMargin:-D+"px "+-W+"px "+-k+"px "+-S+"px",threshold:$e(0,kn(1,A))||1};let Q=!0;function z(E){const q=E[0].intersectionRatio;if(q!==A){if(!Q)return l();q?l(!1,q):s=setTimeout(()=>{l(!1,1e-7)},1e3)}q===1&&!mc(v,i.getBoundingClientRect())&&l(),Q=!1}try{r=new IntersectionObserver(z,{...H,root:u.ownerDocument})}catch{r=new IntersectionObserver(z,H)}r.observe(i)}return l(!0),p}function ry(i,e,r,s){s===void 0&&(s={});const{ancestorScroll:u=!0,ancestorResize:p=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:A=!1}=s,v=is(i),x=u||p?[...v?ur(v):[],...e?ur(e):[]]:[];x.forEach(S=>{u&&S.addEventListener("scroll",r,{passive:!0}),p&&S.addEventListener("resize",r)});const T=v&&m?ny(v,r):null;let I=-1,B=null;l&&(B=new ResizeObserver(S=>{let[N]=S;N&&N.target===v&&B&&e&&(B.unobserve(e),cancelAnimationFrame(I),I=requestAnimationFrame(()=>{var H;(H=B)==null||H.observe(e)})),r()}),v&&!A&&B.observe(v),e&&B.observe(e));let D,W=A?mn(i):null;A&&k();function k(){const S=mn(i);W&&!mc(W,S)&&r(),W=S,D=requestAnimationFrame(k)}return r(),()=>{var S;x.forEach(N=>{u&&N.removeEventListener("scroll",r),p&&N.removeEventListener("resize",r)}),T==null||T(),(S=B)==null||S.disconnect(),B=null,A&&cancelAnimationFrame(D)}}const iy=Ov,ay=Lv,sy=Pv,oy=Nv,ly=(i,e,r)=>{const s=new Map,u={platform:ty,...r},p={...u.platform,_c:s};return Fv(i,e,{...u,platform:p})};function cy(i,e){const r=C.ref({position:"fixed",left:"0",top:"0",zIndex:3e3});let s=null;const u=()=>{!i.value||!e.value||ly(i.value,e.value,{placement:"bottom-start",strategy:"fixed",middleware:[iy(6),sy(),ay({padding:10}),oy({apply({rects:m,elements:A,availableWidth:v}){const x=`${m.reference.width}px`,T=m.reference.width;Object.assign(A.floating.style,{width:"max-content",minWidth:x,maxWidth:`${Math.max(T,v-20)}px`})}})]}).then(({x:m,y:A})=>{Object.assign(r.value,{left:`${m}px`,top:`${A}px`})})},p=()=>{i.value&&e.value&&(s=ry(i.value,e.value,u))},l=()=>{s&&(s(),s=null)};return C.onBeforeUnmount(l),{floatingStyles:r,startTrack:p,stopTrack:l}}const gc="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",Ci="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",uy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVR4AaRQO07DQBCdWe8B4B5IFFyAK9ARkIVNhIQEEiVtJLgABRVRvIBCJBquwBVyDgoaSnuHeZY3MlYcNsnIb8fze6M3hra0XoKJm95N3Nv3EnyhFvb2EgjRJbOMKqmO2tDcvQ5fK+qvl4CJbOn9/CJPP9tArp5sHtP4lc652VXxPL1Z1hRFIOytF1NuTJCfnT4Ms8HjSgJctn1xIt6hxqIkdK+u8U8zT1ESmP5enUkWmqMkhG2FmxXOvR+EGD5KAhoDqsQvtiMXJQGNQJ4N8mF6PMd/wL8SxuOXPSG21pj9p+L1EOjGyAHoQQ0zWGDqx9pbPWIpwqOEkw+gGyMHoAc1ozOkVhOcZyepYndNpDpPvwAAAP//BVQJHAAAAAZJREFUAwDZWL4hub5xHQAAAABJRU5ErkJggg==",fy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACC0lEQVR4AXxRv2tTURT+zk1iIjgoOMShkIJVNwf/gQYULOjQwaGvGl8TBMEMDg4ODgF17likvL4HIYm4OLg61K2CooWKDoKCDoJDHASb9N17POf5Enwk6eN+9/z+3nfvNZjxbYS9ymbYXlQ8CbvnZrRhKoEOFMl9zFHuuaJA/E4Jp5FMJTCwZWner/veCYX6ecQVsRNrKsFE1yGJDMFW1Hm4FXX7hnIvADquvkJ9zYn/U3vw35chYOA2Ebcc26uWbVWwnKKqOak9ktmmYLwyBATkY+d2b63d2FYgps9umNtTX6G18WTqmNRmTNB+djaIO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aO4Q8AAAD//54At5MAAAAGSURBVAMAh2IbMAJQAZQAAAAASUVORK5CYII=";function my(i,e,r){const s=C.ref(!1),u=()=>s.value=!0,p=()=>s.value=!1;return{isDropdownVisible:s,openDropdown:u,closeDropdown:p,handleAfterSelect:()=>{var A,v;i?(A=e.value)==null||A.focus():(r.value="",p(),(v=e.value)==null||v.blur())},handleBlur:()=>{setTimeout(()=>{p(),i&&(r.value="")},200)}}}const gy=C.defineComponent({name:"GlobalSearch",model:{prop:"value",event:"input"},props:{value:{type:[Object,Array],default:null},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},searchTypeList:{type:Array,default:()=>["City","Seaport","Airport","Country"]},historyKey:{type:String,default:""},lang:{type:String,default:""},placeholder:{type:String,default:""},showSearchIcon:{type:Boolean,default:!0},showItemTag:{type:Boolean,default:!0},showApplyData:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},setup(i,{emit:e}){const r=C.ref(""),s=C.ref(!1),u=C.ref(""),p=C.ref(null),l=C.ref(null),m=C.ref(null),A=C.ref(null),v=C.ref(!1),{searchHistory:x,saveToHistory:T,clearHistory:I}=vv(C.toRef(i,"historyKey")),{searchResults:B,loading:D,isFetchingMore:W,isFinished:k,currentPage:S,fetchData:N,filterByTypes:H}=Cv(r,C.toRef(i,"searchTypeList")),{floatingStyles:Q,startTrack:z,stopTrack:E}=cy(m,A),{isDropdownVisible:q,openDropdown:F,handleAfterSelect:w,handleBlur:M}=my(C.toRef(i,"multiple").value,l,r),G=async()=>{if(F(),!i.multiple&&s.value&&B.value.length===0){const j=i.value;if(j!=null&&j.id){D.value=!0;try{const ne=await ja(j.id,j.type);B.value=H(ne.records)}finally{D.value=!1}}}},$=j=>{j.target.value===""&&!i.multiple&&(s.value=!1,e("input",null),e("update:value",null))},ye=()=>{var j;if(i.multiple&&!r.value&&((j=i.value)==null?void 0:j.length)>0){const ne=[...i.value],Ce=ne.pop();e("input",ne),e("update:value",ne),e("remove",Ce)}};C.watch(q,j=>j?z():E()),C.watch(r,j=>{if(!j.trim()){B.value=[];return}p.value&&clearTimeout(p.value),p.value=setTimeout(()=>N(1,!1),300)});const fe=C.computed(()=>i.lang?i.lang==="en"||i.lang==="en-US":typeof document!="undefined"?/(^|;\s*)jc-language=en(-US)?(;|$)/.test(document.cookie||""):!1),Te=C.computed(()=>B.value.length>0||D.value||r.value||x.value.length>0),Pe=j=>fe.value?j.displayEn||j.display||j.nameEn||"":j.displayCn||j.display||j.nameCn||j.name||"",X=j=>{e("apply-data",j)};return C.watch(()=>i.value,async(j,ne)=>{if(JSON.stringify(j)===JSON.stringify(ne))return;if(i.multiple&&Array.isArray(j)){const Ne=[...j],Ee=Ne.filter(Ae=>Ae&&Ae.id&&Ae.type);if(Ee.length>0)try{const Ae=Ee.map(Wt=>Wt.id),vt=await ja(Ae,Ee[0].type);if(vt&&vt.records){let Wt=!1;const Et=Ne.map(St=>{const gr=vt.records.find(rn=>rn.id===St.id);return gr&&!St.display?(Wt=!0,{...St,...gr}):St});Wt&&(e("input",Et),e("update:value",Et))}}catch(Ae){console.error("Batch fetch detail failed:",Ae)}return}const Ce=j;if(!Ce){s.value=!1,u.value="";return}if(typeof Ce=="object")if(Ce.id&&Ce.type&&!Ce.display)try{const Ee=(await ja(Ce.id,Ce.type)).records.find(Ae=>Ae.id===Ce.id);Ee&&(u.value=Pe(Ee),s.value=!0)}catch(Ne){console.error("Single fetch detail failed:",Ne)}else u.value=Pe(Ce),s.value=!!u.value;else u.value=String(Ce),s.value=!!Ce},{immediate:!0,deep:!0}),C.onBeforeUnmount(E),{query:r,isSelected:s,isDropdownVisible:q,applyDataVisible:v,selectedLabel:u,inputRef:l,referenceRef:m,floatingRef:A,hasContentToShow:Te,searchHistory:x,searchResults:B,loading:D,isFetchingMore:W,isFinished:k,currentPage:S,floatingStyles:Q,saveToHistory:T,clearHistory:I,fetchData:N,filterByTypes:H,startTrack:z,stopTrack:E,onFocus:G,handleBlur:M,onInput:$,handleDelete:ye,handleConfirmApplyData:X,handleAfterSelect:w,openDropdown:F,SearchIcon:gc,ICON_MORE:Ci}},computed:{isEn(){var i,e,r,s,u,p;if(this.lang&&this.lang!=="")return this.lang==="en"||this.lang==="en-US";try{if(typeof useCookie=="function"){const l=(i=useCookie("jc-language"))==null?void 0:i.value;if(l)return/^en(-US)?$/.test(l)}}catch{}if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}try{if(typeof useNuxtApp=="function"){const l=useNuxtApp(),m=((p=(u=(s=(r=(e=l==null?void 0:l.ssrContext)==null?void 0:e.event)==null?void 0:r.node)==null?void 0:s.req)==null?void 0:u.headers)==null?void 0:p.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(m)}}catch{}return!1},selectedItems(){return this.value?Array.isArray(this.value)?this.value:[this.value]:[]},displayedTags(){return this.collapseTags?this.selectedItems.slice(0,1):this.selectedItems},hasValue(){return this.query||this.selectedItems.length>0},inputWidth(){return this.multiple?this.query?`${this.query.length*10+20}px`:"10px":"100%"},currentPlaceholder(){return this.multiple&&this.selectedItems.length>0?"":this.isSelected&&!this.multiple?this.selectedLabel:this.placeholder?this.placeholder:this.isEn?"Please enter...":"请输入..."}},methods:{focusInput(){var i;(i=this.$refs.inputRef)==null||i.focus()},getItemLabel(i){return this.isEn?i.displayEn||i.display||"":i.displayCn||i.display||""},getItemType(i){const e={City:{en:"City",cn:"城市"},Country:{en:"Country",cn:"国家"},Region:{en:"Region",cn:"区域"},Airport:{en:"Airport",cn:"机场"},Seaport:{en:"Seaport",cn:"港口"}};return this.isEn?e[i].en:e[i].cn},isItemActive(i){return this.selectedItems.some(e=>e.id===i.id)},selectItem(i){this.saveToHistory(i),this.multiple?this.isItemActive(i)||(this.$emit("input",[...this.selectedItems,i]),this.$emit("update:value",[...this.selectedItems,i])):(this.isSelected=!0,this.selectedLabel=this.getItemLabel(i),this.$emit("input",i),this.$emit("update:value",i)),this.$emit("select",i),this.$emit("change",i),this.handleAfterSelect()},removeItem(i){const e=this.selectedItems.filter(r=>r.id!==i.id);this.$emit("input",e),this.$emit("update:value",e),this.$emit("remove",i)},clearAll(){this.query="",this.isSelected=!1,this.selectedLabel="",this.$emit("input",this.multiple?[]:null),this.$emit("update:value",this.multiple?[]:null)},handleSearch(){const i=this.multiple?this.selectedItems:this.isSelected?this.value:null;this.$emit("submit-search",i),this.isDropdownVisible=!1},getIconUrl(i){return{City:uy,Seaport:fy,Airport:dy,Country:py}[i]||hy},handleScroll(i){const{scrollTop:e,scrollHeight:r,clientHeight:s}=i.target;e+s>=r-20&&!this.loading&&!this.isFetchingMore&&!this.isFinished&&this.query&&this.fetchData(this.currentPage+1,!0)}}});function me(i,e,r,s,u,p,l,m){var A=typeof i=="function"?i.options:i;return e&&(A.render=e,A.staticRenderFns=r,A._compiled=!0),p&&(A._scopeId="data-v-"+p),{exports:i,options:A}}var vy=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"search-container",class:{"is-disabled":e.disabled}},[r("div",{ref:"referenceRef",staticClass:"search-input-wrapper",class:{"is-multiple":e.multiple},on:{click:e.focusInput}},[r("div",{staticClass:"selection-wrapper"},[e.multiple&&e.selectedItems.length>0?[e._l(e.displayedTags,function(s,u){return r("div",{key:s.id||u,staticClass:"search-tag"},[r("span",{staticClass:"tag-text"},[e._v(e._s(e.getItemLabel(s)))]),r("span",{staticClass:"tag-close",on:{click:function(p){return p.stopPropagation(),e.removeItem(s)}}},[e._v("×")])])}),e.collapseTags&&e.selectedItems.length>1?r("div",{staticClass:"search-tag collapse"},[e._v(" + "+e._s(e.selectedItems.length-1)+" ")]):e._e()]:e._e(),r("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"inputRef",class:{"is-selected-state":e.isSelected&&!e.multiple},style:{width:e.inputWidth},attrs:{type:"text",placeholder:e.currentPlaceholder},domProps:{value:e.query},on:{focus:e.onFocus,blur:e.handleBlur,input:[function(s){s.target.composing||(e.query=s.target.value)},e.onInput],keydown:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"delete",[8,46],s.key,["Backspace","Delete","Del"])?null:e.handleDelete.apply(null,arguments)}}})],2),r("div",{staticClass:"suffix-area"},[e.hasValue?r("span",{staticClass:"clear-icon",on:{mousedown:function(s){s.preventDefault()},click:function(s){return s.stopPropagation(),e.clearAll.apply(null,arguments)}}},[e._v("ⓧ")]):e._e(),e.loading&&!e.isFetchingMore?r("div",{staticClass:"loading-spinner"}):!e.loading&&e.showSearchIcon?r("button",{staticClass:"search-btn",on:{click:function(s){return s.stopPropagation(),e.handleSearch.apply(null,arguments)}}},[r("span",{staticClass:"search-icon"},[r("img",{attrs:{src:e.SearchIcon,alt:"search"}})])]):e._e()])]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isDropdownVisible&&e.hasContentToShow,expression:"isDropdownVisible && hasContentToShow"}],ref:"floatingRef",staticClass:"dropdown-list",style:e.floatingStyles,on:{scroll:e.handleScroll}},[e._t("history",function(){return[e.searchHistory.length>0&&!e.query?r("div",{staticClass:"history-section"},[r("div",{staticClass:"history-header"},[r("span",[e._v(e._s(e.isEn?"Recent search":"最近搜索"))]),r("span",{staticClass:"clear-btn",on:{mousedown:function(s){s.preventDefault()},click:function(s){return s.stopPropagation(),e.clearHistory.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Clear":"清空")+" ")])]),e._l(e.searchHistory,function(s,u){return r("div",{key:"hist-"+u,staticClass:"dropdown-item",on:{mousedown:function(p){return p.preventDefault(),e.selectItem(s)}}},[r("div",{staticClass:"category-tag",style:e.showItemTag?{}:{display:"none"}},[r("img",{staticClass:"type-icon",attrs:{src:e.getIconUrl(s.type),alt:""}}),r("span",{staticClass:"type-text"},[e._v(e._s(e.getItemType(s.type)))])]),r("div",{staticClass:"result-text"},[e._v(e._s(e.getItemLabel(s)))])])}),r("hr",{staticClass:"divider"})],2):e._e()]},{searchHistory:e.searchHistory}),e.loading&&!e.isFetchingMore?r("div",{staticClass:"status-msg"},[e._v(" "+e._s(e.isEn?"Searching...":"正在搜索中...")+" ")]):e.searchResults.length>0?[e._t("results",function(){return e._l(e.searchResults,function(s,u){return r("div",{key:u,staticClass:"dropdown-item",class:{"is-active":e.isItemActive(s)},on:{mousedown:function(p){return p.preventDefault(),e.selectItem(s)}}},[r("div",{staticClass:"category-tag",style:e.showItemTag?{}:{display:"none"}},[r("img",{staticClass:"type-icon",attrs:{src:e.getIconUrl(s.type),alt:""}}),r("span",{staticClass:"type-text"},[e._v(e._s(e.getItemType(s.type)))])]),r("div",{staticClass:"result-text"},[e._v(e._s(e.getItemLabel(s)))])])})},{searchResults:e.searchResults}),e.isFetchingMore?r("div",{staticClass:"load-more-msg"},[e._v(" "+e._s(e.isEn?"Loading more...":"正在加载更多...")+" ")]):e._e()]:e.query&&!e.loading?r("div",{staticClass:"status-msg"},[e._t("noData",function(){return[e.showApplyData?r("div",{staticClass:"no-result-label"},[e._v(" "+e._s(e.isEn?"No results found.":"暂无结果,")+" "),r("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:"4px"}},[r("span",{staticClass:"apply-data",style:{cursor:"pointer",marginLeft:"4px"},on:{click:function(s){return s.stopPropagation(),(()=>e.applyDataVisible=!0).apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Apply for data addition":"申请补充数据 "))]),r("img",{staticClass:"apply-data-more-icon",attrs:{src:e.ICON_MORE,alt:""},on:{click:function(s){return s.stopPropagation(),(()=>e.applyDataVisible=!0).apply(null,arguments)}}})])]):r("p",{staticClass:"no-result-label"},[e._v(" "+e._s(e.isEn?`No results found related to "${e.query}".`:`未找到与 "${e.query}" 相关的结果`)+" ")])]})],2):e._e()],2),r("ApplyDataDialog",{attrs:{value:e.applyDataVisible},on:{"update:value":function(s){e.applyDataVisible=s},confirm:e.handleConfirmApplyData}})],1)},yy=[],Cy=me(gy,vy,yy,!1,null,"37e83283");const hr=Cy.exports,_y=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"})),Ay={__name:"ApplyDataDialog",props:{value:{type:Boolean,default:!1},lang:{type:String,default:"",validator:i=>["","en","en-US","zh-CN","cn"].includes(i)},placeholder:{type:String,default:""}},emits:["update:value","confirm"],setup(i,{emit:e}){const r=i,s=[{typeCn:"城市",typeEn:"City",type:"City"},{typeCn:"海运港口",typeEn:"Port",type:"Seaport"},{typeCn:"机场",typeEn:"Airport",type:"Airport"}],u=C.ref(null),p=C.ref(!1),l=C.reactive({name:"",country:""}),m=C.reactive({name:"",type:"City"}),A=C.computed(()=>{var T,I,B,D,W,k;if(r.lang&&r.lang!=="")return r.lang==="en"||r.lang==="en-US";try{if(typeof useCookie=="function"){const S=(T=useCookie("jc-language"))==null?void 0:T.value;if(S)return/^en(-US)?$/.test(S)}}catch{}if(typeof document!="undefined"){const S=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(S)}try{if(typeof useNuxtApp=="function"){const S=useNuxtApp(),N=((k=(W=(D=(B=(I=S==null?void 0:S.ssrContext)==null?void 0:I.event)==null?void 0:B.node)==null?void 0:D.req)==null?void 0:W.headers)==null?void 0:k.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(N)}}catch{}return!1}),v=()=>{l.name="",l.country="",p.value=!1,e("update:value",!1)};function x(){l.name="",l.country="";let T=!0;m.name.trim()||(l.name=A.value?"Please enter the data":"请输入需要补充的数据",T=!1),u.value||(l.country=A.value?"Please select a country":"请选择国家",T=!1),T&&b.reportNewTypeDataApi({reportData:m.name,reportType:m.type.toLocaleLowerCase(),countryId:u.value.id}).then(I=>{I.code===0&&(p.value=!0,U.Message.success(A.value?"Application received. Awaiting review":"平台已收到申请,请等待审核"),e("confirm",{...m,country:u.value}))}).catch(I=>{}).finally(()=>{})}return{__sfc:!0,props:r,emit:e,typeOptions:s,displayQuery:u,submitSuccess:p,errors:l,formData:m,isEn:A,handleClose:v,handleConfirm:x,Search:hr}}};var wy=function(){var u,p;var e=this,r=e._self._c,s=e._self._setupProxy;return e.value?r("div",{staticClass:"modal-mask",on:{click:function(l){return l.target!==l.currentTarget?null:s.handleClose.apply(null,arguments)}}},[s.submitSuccess?r("div",{staticClass:"apply-success-container"},[r("div",{staticClass:"apply-success-container__content"},[r("div",{staticClass:"icon"}),r("div",{staticClass:"desc"},[e._v(" "+e._s(s.isEn?"Submit successfully!":"提交成功!")+" ")])]),r("div",{staticClass:"apply-success-container__btns"},[r("div",{staticClass:"button",on:{click:function(l){return l.stopPropagation(),s.handleClose.apply(null,arguments)}}},[e._v(" "+e._s(s.isEn?"OK":"好的")+" ")])])]):r("div",{staticClass:"modal-container"},[r("div",{staticClass:"modal-header"},[r("span",{staticClass:"header-title"},[e._v(e._s(s.isEn?"Apply for data addition":"申请补充数据"))]),r("div",{staticClass:"close-btn",on:{click:s.handleClose}},[e._v("×")])]),r("div",{staticClass:"modal-body"},[r("div",{staticClass:"form-item"},[r("label",{staticClass:"required"},[e._v(e._s(s.isEn?"Data To Add":"需补充的数据"))]),r("div",{staticClass:"input-box"},[r("input",{directives:[{name:"model",rawName:"v-model",value:s.formData.name,expression:"formData.name"}],class:["custom-input",{"input-error":s.errors.name}],attrs:{type:"text",placeholder:(u=e.placeholder)!=null?u:s.isEn?" Please enter":"请输入"},domProps:{value:s.formData.name},on:{input:[function(l){l.target.composing||e.$set(s.formData,"name",l.target.value)},function(l){s.errors.name=""}]}})]),s.errors.name?r("div",{staticClass:"error-message"},[e._v(e._s(s.errors.name))]):e._e()]),r("div",{staticClass:"form-item"},[r("label",{staticClass:"required"},[e._v(e._s(s.isEn?"Type":"所属类别"))]),r("div",{staticClass:"type-group"},e._l(s.typeOptions,function(l){return r("div",{key:l.type,class:["type-btn",{active:s.formData.type===l.type}],on:{click:function(m){s.formData.type=l.type}}},[e._v(" "+e._s(s.isEn?l.typeEn:l.typeCn)+" "),s.formData.type===l.type?r("div",{staticClass:"check-mark"}):e._e()])}),0)]),r("div",{staticClass:"form-item"},[r("label",{staticClass:"required"},[e._v(e._s(s.isEn?"Country":"国家"))]),r("div",{class:{"search-error-wrap":s.errors.country}},[r(s.Search,{style:{margin:"0 auto"},attrs:{"search-type-list":["Country"],lang:e.lang,"show-apply-data":!1,"show-search-icon":!1,placeholder:(p=e.placeholder)!=null?p:s.isEn?" Please enter":"请输入"},on:{"update:model-value":function(l){s.errors.country=""}},model:{value:s.displayQuery,callback:function(l){s.displayQuery=l},expression:"displayQuery"}})],1),s.errors.country?r("div",{staticClass:"error-message"},[e._v(" "+e._s(s.errors.country)+" ")]):e._e()])]),r("div",{staticClass:"modal-footer"},[r("button",{staticClass:"confirm-btn",on:{click:s.handleConfirm}},[e._v(" "+e._s(s.isEn?"Submit":"申请补充")+" ")])])])]):e._e()},by=[],Ey=me(Ay,wy,by,!1,null,"eeb8a8a0");const Sy=Ey.exports,Iy=Object.freeze(Object.defineProperty({__proto__:null,default:Sy},Symbol.toStringTag,{value:"Module"}));var li=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},cr={exports:{}};/**
2
+ * @license
3
+ * Lodash <https://lodash.com/>
4
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
5
+ * Released under MIT license <https://lodash.com/license>
6
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
+ */var xy=cr.exports,Xl;function Ty(){return Xl||(Xl=1,(function(i,e){(function(){var r,s="4.18.1",u=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",m="Invalid `variable` option passed into `_.template`",A="Invalid `imports` option passed into `_.template`",v="__lodash_hash_undefined__",x=500,T="__lodash_placeholder__",I=1,B=2,D=4,W=1,k=2,S=1,N=2,H=4,Q=8,z=16,E=32,q=64,F=128,w=256,M=512,G=30,$="...",ye=800,fe=16,Te=1,Pe=2,X=3,j=1/0,ne=9007199254740991,Ce=17976931348623157e292,Ne=NaN,Ee=4294967295,Ae=Ee-1,vt=Ee>>>1,Wt=[["ary",F],["bind",S],["bindKey",N],["curry",Q],["curryRight",z],["flip",M],["partial",E],["partialRight",q],["rearg",w]],Et="[object Arguments]",St="[object Array]",gr="[object AsyncFunction]",rn="[object Boolean]",qn="[object Date]",kc="[object DOMException]",vr="[object Error]",yr="[object Function]",ls="[object GeneratorFunction]",ot="[object Map]",Vn="[object Number]",Dc="[object Null]",It="[object Object]",cs="[object Promise]",Oc="[object Proxy]",Wn="[object RegExp]",lt="[object Set]",Hn="[object String]",Cr="[object Symbol]",Lc="[object Undefined]",Gn="[object WeakMap]",Nc="[object WeakSet]",Jn="[object ArrayBuffer]",vn="[object DataView]",Ei="[object Float32Array]",Si="[object Float64Array]",Ii="[object Int8Array]",xi="[object Int16Array]",Ti="[object Int32Array]",Ri="[object Uint8Array]",Bi="[object Uint8ClampedArray]",Fi="[object Uint16Array]",Pi="[object Uint32Array]",Mc=/\b__p \+= '';/g,Uc=/\b(__p \+=) '' \+/g,qc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,us=/&(?:amp|lt|gt|quot|#39);/g,fs=/[&<>"']/g,Vc=RegExp(us.source),Wc=RegExp(fs.source),Hc=/<%-([\s\S]+?)%>/g,Gc=/<%([\s\S]+?)%>/g,ds=/<%=([\s\S]+?)%>/g,Jc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jc=/^\w*$/,zc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ki=/[\\^$.*+?()[\]{}|]/g,Qc=RegExp(ki.source),Di=/^\s+/,Kc=/\s/,Xc=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yc=/\{\n\/\* \[wrapped with (.+)\] \*/,$c=/,? & /,Zc=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ps=/[()=,{}\[\]\/\s]/,eu=/\\(\\)?/g,tu=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hs=/\w*$/,nu=/^[-+]0x[0-9a-f]+$/i,ru=/^0b[01]+$/i,iu=/^\[object .+?Constructor\]$/,au=/^0o[0-7]+$/i,su=/^(?:0|[1-9]\d*)$/,ou=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_r=/($^)/,lu=/['\n\r\u2028\u2029\\]/g,Ar="\\ud800-\\udfff",cu="\\u0300-\\u036f",uu="\\ufe20-\\ufe2f",fu="\\u20d0-\\u20ff",ms=cu+uu+fu,gs="\\u2700-\\u27bf",vs="a-z\\xdf-\\xf6\\xf8-\\xff",du="\\xac\\xb1\\xd7\\xf7",pu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hu="\\u2000-\\u206f",mu=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ys="A-Z\\xc0-\\xd6\\xd8-\\xde",Cs="\\ufe0e\\ufe0f",_s=du+pu+hu+mu,Oi="['’]",gu="["+Ar+"]",As="["+_s+"]",wr="["+ms+"]",ws="\\d+",vu="["+gs+"]",bs="["+vs+"]",Es="[^"+Ar+_s+ws+gs+vs+ys+"]",Li="\\ud83c[\\udffb-\\udfff]",yu="(?:"+wr+"|"+Li+")",Ss="[^"+Ar+"]",Ni="(?:\\ud83c[\\udde6-\\uddff]){2}",Mi="[\\ud800-\\udbff][\\udc00-\\udfff]",yn="["+ys+"]",Is="\\u200d",xs="(?:"+bs+"|"+Es+")",Cu="(?:"+yn+"|"+Es+")",Ts="(?:"+Oi+"(?:d|ll|m|re|s|t|ve))?",Rs="(?:"+Oi+"(?:D|LL|M|RE|S|T|VE))?",Bs=yu+"?",Fs="["+Cs+"]?",_u="(?:"+Is+"(?:"+[Ss,Ni,Mi].join("|")+")"+Fs+Bs+")*",Au="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ps=Fs+Bs+_u,bu="(?:"+[vu,Ni,Mi].join("|")+")"+Ps,Eu="(?:"+[Ss+wr+"?",wr,Ni,Mi,gu].join("|")+")",Su=RegExp(Oi,"g"),Iu=RegExp(wr,"g"),Ui=RegExp(Li+"(?="+Li+")|"+Eu+Ps,"g"),xu=RegExp([yn+"?"+bs+"+"+Ts+"(?="+[As,yn,"$"].join("|")+")",Cu+"+"+Rs+"(?="+[As,yn+xs,"$"].join("|")+")",yn+"?"+xs+"+"+Ts,yn+"+"+Rs,wu,Au,ws,bu].join("|"),"g"),Tu=RegExp("["+Is+Ar+ms+Cs+"]"),Ru=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bu=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Fu=-1,_e={};_e[Ei]=_e[Si]=_e[Ii]=_e[xi]=_e[Ti]=_e[Ri]=_e[Bi]=_e[Fi]=_e[Pi]=!0,_e[Et]=_e[St]=_e[Jn]=_e[rn]=_e[vn]=_e[qn]=_e[vr]=_e[yr]=_e[ot]=_e[Vn]=_e[It]=_e[Wn]=_e[lt]=_e[Hn]=_e[Gn]=!1;var ve={};ve[Et]=ve[St]=ve[Jn]=ve[vn]=ve[rn]=ve[qn]=ve[Ei]=ve[Si]=ve[Ii]=ve[xi]=ve[Ti]=ve[ot]=ve[Vn]=ve[It]=ve[Wn]=ve[lt]=ve[Hn]=ve[Cr]=ve[Ri]=ve[Bi]=ve[F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",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ku={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Du={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ou={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Lu=parseFloat,Nu=parseInt,ks=typeof li=="object"&&li&&li.Object===Object&&li,Mu=typeof self=="object"&&self&&self.Object===Object&&self,ke=ks||Mu||Function("return this")(),qi=e&&!e.nodeType&&e,an=qi&&!0&&i&&!i.nodeType&&i,Ds=an&&an.exports===qi,Vi=Ds&&ks.process,et=(function(){try{var y=an&&an.require&&an.require("util").types;return y||Vi&&Vi.binding&&Vi.binding("util")}catch{}})(),Os=et&&et.isArrayBuffer,Ls=et&&et.isDate,Ns=et&&et.isMap,Ms=et&&et.isRegExp,Us=et&&et.isSet,qs=et&&et.isTypedArray;function Je(y,P,R){switch(R.length){case 0:return y.call(P);case 1:return y.call(P,R[0]);case 2:return y.call(P,R[0],R[1]);case 3:return y.call(P,R[0],R[1],R[2])}return y.apply(P,R)}function Uu(y,P,R,K){for(var re=-1,de=y==null?0:y.length;++re<de;){var Re=y[re];P(K,Re,R(Re),y)}return K}function je(y,P){for(var R=-1,K=y==null?0:y.length;++R<K&&P(y[R],R,y)!==!1;);return y}function qu(y,P){for(var R=y==null?0:y.length;R--&&P(y[R],R,y)!==!1;);return y}function Vs(y,P){for(var R=-1,K=y==null?0:y.length;++R<K;)if(!P(y[R],R,y))return!1;return!0}function Ht(y,P){for(var R=-1,K=y==null?0:y.length,re=0,de=[];++R<K;){var Re=y[R];P(Re,R,y)&&(de[re++]=Re)}return de}function br(y,P){var R=y==null?0:y.length;return!!R&&Cn(y,P,0)>-1}function Wi(y,P,R){for(var K=-1,re=y==null?0:y.length;++K<re;)if(R(P,y[K]))return!0;return!1}function we(y,P){for(var R=-1,K=y==null?0:y.length,re=Array(K);++R<K;)re[R]=P(y[R],R,y);return re}function Gt(y,P){for(var R=-1,K=P.length,re=y.length;++R<K;)y[re+R]=P[R];return y}function Hi(y,P,R,K){var re=-1,de=y==null?0:y.length;for(K&&de&&(R=y[++re]);++re<de;)R=P(R,y[re],re,y);return R}function Vu(y,P,R,K){var re=y==null?0:y.length;for(K&&re&&(R=y[--re]);re--;)R=P(R,y[re],re,y);return R}function Gi(y,P){for(var R=-1,K=y==null?0:y.length;++R<K;)if(P(y[R],R,y))return!0;return!1}var Wu=Ji("length");function Hu(y){return y.split("")}function Gu(y){return y.match(Zc)||[]}function Ws(y,P,R){var K;return R(y,function(re,de,Re){if(P(re,de,Re))return K=de,!1}),K}function Er(y,P,R,K){for(var re=y.length,de=R+(K?1:-1);K?de--:++de<re;)if(P(y[de],de,y))return de;return-1}function Cn(y,P,R){return P===P?nf(y,P,R):Er(y,Hs,R)}function Ju(y,P,R,K){for(var re=R-1,de=y.length;++re<de;)if(K(y[re],P))return re;return-1}function Hs(y){return y!==y}function Gs(y,P){var R=y==null?0:y.length;return R?zi(y,P)/R:Ne}function Ji(y){return function(P){return P==null?r:P[y]}}function ji(y){return function(P){return y==null?r:y[P]}}function Js(y,P,R,K,re){return re(y,function(de,Re,ge){R=K?(K=!1,de):P(R,de,Re,ge)}),R}function ju(y,P){var R=y.length;for(y.sort(P);R--;)y[R]=y[R].value;return y}function zi(y,P){for(var R,K=-1,re=y.length;++K<re;){var de=P(y[K]);de!==r&&(R=R===r?de:R+de)}return R}function Qi(y,P){for(var R=-1,K=Array(y);++R<y;)K[R]=P(R);return K}function zu(y,P){return we(P,function(R){return[R,y[R]]})}function js(y){return y&&y.slice(0,Xs(y)+1).replace(Di,"")}function ze(y){return function(P){return y(P)}}function Ki(y,P){return we(P,function(R){return y[R]})}function jn(y,P){return y.has(P)}function zs(y,P){for(var R=-1,K=y.length;++R<K&&Cn(P,y[R],0)>-1;);return R}function Qs(y,P){for(var R=y.length;R--&&Cn(P,y[R],0)>-1;);return R}function Qu(y,P){for(var R=y.length,K=0;R--;)y[R]===P&&++K;return K}var Ku=ji(Pu),Xu=ji(ku);function Yu(y){return"\\"+Ou[y]}function $u(y,P){return y==null?r:y[P]}function _n(y){return Tu.test(y)}function Zu(y){return Ru.test(y)}function ef(y){for(var P,R=[];!(P=y.next()).done;)R.push(P.value);return R}function Xi(y){var P=-1,R=Array(y.size);return y.forEach(function(K,re){R[++P]=[re,K]}),R}function Ks(y,P){return function(R){return y(P(R))}}function Jt(y,P){for(var R=-1,K=y.length,re=0,de=[];++R<K;){var Re=y[R];(Re===P||Re===T)&&(y[R]=T,de[re++]=R)}return de}function Sr(y){var P=-1,R=Array(y.size);return y.forEach(function(K){R[++P]=K}),R}function tf(y){var P=-1,R=Array(y.size);return y.forEach(function(K){R[++P]=[K,K]}),R}function nf(y,P,R){for(var K=R-1,re=y.length;++K<re;)if(y[K]===P)return K;return-1}function rf(y,P,R){for(var K=R+1;K--;)if(y[K]===P)return K;return K}function An(y){return _n(y)?sf(y):Wu(y)}function ct(y){return _n(y)?of(y):Hu(y)}function Xs(y){for(var P=y.length;P--&&Kc.test(y.charAt(P)););return P}var af=ji(Du);function sf(y){for(var P=Ui.lastIndex=0;Ui.test(y);)++P;return P}function of(y){return y.match(Ui)||[]}function lf(y){return y.match(xu)||[]}var cf=(function y(P){P=P==null?ke:wn.defaults(ke.Object(),P,wn.pick(ke,Bu));var R=P.Array,K=P.Date,re=P.Error,de=P.Function,Re=P.Math,ge=P.Object,Yi=P.RegExp,uf=P.String,tt=P.TypeError,Ir=R.prototype,ff=de.prototype,bn=ge.prototype,xr=P["__core-js_shared__"],Tr=ff.toString,pe=bn.hasOwnProperty,df=0,Ys=(function(){var t=/[^.]+$/.exec(xr&&xr.keys&&xr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})(),Rr=bn.toString,pf=Tr.call(ge),hf=ke._,mf=Yi("^"+Tr.call(pe).replace(ki,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Br=Ds?P.Buffer:r,jt=P.Symbol,Fr=P.Uint8Array,$s=Br?Br.allocUnsafe:r,Pr=Ks(ge.getPrototypeOf,ge),Zs=ge.create,eo=bn.propertyIsEnumerable,kr=Ir.splice,to=jt?jt.isConcatSpreadable:r,zn=jt?jt.iterator:r,sn=jt?jt.toStringTag:r,Dr=(function(){try{var t=fn(ge,"defineProperty");return t({},"",{}),t}catch{}})(),gf=P.clearTimeout!==ke.clearTimeout&&P.clearTimeout,vf=K&&K.now!==ke.Date.now&&K.now,yf=P.setTimeout!==ke.setTimeout&&P.setTimeout,Or=Re.ceil,Lr=Re.floor,$i=ge.getOwnPropertySymbols,Cf=Br?Br.isBuffer:r,no=P.isFinite,_f=Ir.join,Af=Ks(ge.keys,ge),Be=Re.max,Oe=Re.min,wf=K.now,bf=P.parseInt,ro=Re.random,Ef=Ir.reverse,Zi=fn(P,"DataView"),Qn=fn(P,"Map"),ea=fn(P,"Promise"),En=fn(P,"Set"),Kn=fn(P,"WeakMap"),Xn=fn(ge,"create"),Nr=Kn&&new Kn,Sn={},Sf=dn(Zi),If=dn(Qn),xf=dn(ea),Tf=dn(En),Rf=dn(Kn),Mr=jt?jt.prototype:r,Yn=Mr?Mr.valueOf:r,io=Mr?Mr.toString:r;function f(t){if(Se(t)&&!ie(t)&&!(t instanceof ce)){if(t instanceof nt)return t;if(pe.call(t,"__wrapped__"))return sl(t)}return new nt(t)}var In=(function(){function t(){}return function(n){if(!be(n))return{};if(Zs)return Zs(n);t.prototype=n;var a=new t;return t.prototype=r,a}})();function Ur(){}function nt(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=r}f.templateSettings={escape:Hc,evaluate:Gc,interpolate:ds,variable:"",imports:{_:f}},f.prototype=Ur.prototype,f.prototype.constructor=f,nt.prototype=In(Ur.prototype),nt.prototype.constructor=nt;function ce(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ee,this.__views__=[]}function Bf(){var t=new ce(this.__wrapped__);return t.__actions__=Ve(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ve(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ve(this.__views__),t}function Ff(){if(this.__filtered__){var t=new ce(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Pf(){var t=this.__wrapped__.value(),n=this.__dir__,a=ie(t),o=n<0,c=a?t.length:0,d=Gd(0,c,this.__views__),h=d.start,g=d.end,_=g-h,O=o?g:h-1,L=this.__iteratees__,V=L.length,J=0,Y=Oe(_,this.__takeCount__);if(!a||!o&&c==_&&Y==_)return Ro(t,this.__actions__);var te=[];e:for(;_--&&J<Y;){O+=n;for(var se=-1,Z=t[O];++se<V;){var le=L[se],ue=le.iteratee,Xe=le.type,qe=ue(Z);if(Xe==Pe)Z=qe;else if(!qe){if(Xe==Te)continue e;break e}}te[J++]=Z}return te}ce.prototype=In(Ur.prototype),ce.prototype.constructor=ce;function on(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var o=t[n];this.set(o[0],o[1])}}function kf(){this.__data__=Xn?Xn(null):{},this.size=0}function Df(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}function Of(t){var n=this.__data__;if(Xn){var a=n[t];return a===v?r:a}return pe.call(n,t)?n[t]:r}function Lf(t){var n=this.__data__;return Xn?n[t]!==r:pe.call(n,t)}function Nf(t,n){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=Xn&&n===r?v:n,this}on.prototype.clear=kf,on.prototype.delete=Df,on.prototype.get=Of,on.prototype.has=Lf,on.prototype.set=Nf;function xt(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var o=t[n];this.set(o[0],o[1])}}function Mf(){this.__data__=[],this.size=0}function Uf(t){var n=this.__data__,a=qr(n,t);if(a<0)return!1;var o=n.length-1;return a==o?n.pop():kr.call(n,a,1),--this.size,!0}function qf(t){var n=this.__data__,a=qr(n,t);return a<0?r:n[a][1]}function Vf(t){return qr(this.__data__,t)>-1}function Wf(t,n){var a=this.__data__,o=qr(a,t);return o<0?(++this.size,a.push([t,n])):a[o][1]=n,this}xt.prototype.clear=Mf,xt.prototype.delete=Uf,xt.prototype.get=qf,xt.prototype.has=Vf,xt.prototype.set=Wf;function Tt(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var o=t[n];this.set(o[0],o[1])}}function Hf(){this.size=0,this.__data__={hash:new on,map:new(Qn||xt),string:new on}}function Gf(t){var n=$r(this,t).delete(t);return this.size-=n?1:0,n}function Jf(t){return $r(this,t).get(t)}function jf(t){return $r(this,t).has(t)}function zf(t,n){var a=$r(this,t),o=a.size;return a.set(t,n),this.size+=a.size==o?0:1,this}Tt.prototype.clear=Hf,Tt.prototype.delete=Gf,Tt.prototype.get=Jf,Tt.prototype.has=jf,Tt.prototype.set=zf;function ln(t){var n=-1,a=t==null?0:t.length;for(this.__data__=new Tt;++n<a;)this.add(t[n])}function Qf(t){return this.__data__.set(t,v),this}function Kf(t){return this.__data__.has(t)}ln.prototype.add=ln.prototype.push=Qf,ln.prototype.has=Kf;function ut(t){var n=this.__data__=new xt(t);this.size=n.size}function Xf(){this.__data__=new xt,this.size=0}function Yf(t){var n=this.__data__,a=n.delete(t);return this.size=n.size,a}function $f(t){return this.__data__.get(t)}function Zf(t){return this.__data__.has(t)}function ed(t,n){var a=this.__data__;if(a instanceof xt){var o=a.__data__;if(!Qn||o.length<u-1)return o.push([t,n]),this.size=++a.size,this;a=this.__data__=new Tt(o)}return a.set(t,n),this.size=a.size,this}ut.prototype.clear=Xf,ut.prototype.delete=Yf,ut.prototype.get=$f,ut.prototype.has=Zf,ut.prototype.set=ed;function ao(t,n){var a=ie(t),o=!a&&pn(t),c=!a&&!o&&Yt(t),d=!a&&!o&&!c&&Bn(t),h=a||o||c||d,g=h?Qi(t.length,uf):[],_=g.length;for(var O in t)(n||pe.call(t,O))&&!(h&&(O=="length"||c&&(O=="offset"||O=="parent")||d&&(O=="buffer"||O=="byteLength"||O=="byteOffset")||Ft(O,_)))&&g.push(O);return g}function so(t){var n=t.length;return n?t[fa(0,n-1)]:r}function td(t,n){return Zr(Ve(t),cn(n,0,t.length))}function nd(t){return Zr(Ve(t))}function ta(t,n,a){(a!==r&&!dt(t[n],a)||a===r&&!(n in t))&&yt(t,n,a)}function $n(t,n,a){var o=t[n];(!(pe.call(t,n)&&dt(o,a))||a===r&&!(n in t))&&yt(t,n,a)}function qr(t,n){for(var a=t.length;a--;)if(dt(t[a][0],n))return a;return-1}function rd(t,n,a,o){return zt(t,function(c,d,h){n(o,c,a(c),h)}),o}function oo(t,n){return t&&_t(n,Fe(n),t)}function id(t,n){return t&&_t(n,He(n),t)}function yt(t,n,a){n=="__proto__"&&Dr?Dr(t,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):t[n]=a}function na(t,n){for(var a=-1,o=n.length,c=R(o),d=t==null;++a<o;)c[a]=d?r:Na(t,n[a]);return c}function cn(t,n,a){return t===t&&(a!==r&&(t=t<=a?t:a),n!==r&&(t=t>=n?t:n)),t}function rt(t,n,a,o,c,d){var h,g=n&I,_=n&B,O=n&D;if(a&&(h=c?a(t,o,c,d):a(t)),h!==r)return h;if(!be(t))return t;var L=ie(t);if(L){if(h=jd(t),!g)return Ve(t,h)}else{var V=Le(t),J=V==yr||V==ls;if(Yt(t))return Po(t,g);if(V==It||V==Et||J&&!c){if(h=_||J?{}:Yo(t),!g)return _?Od(t,id(h,t)):Dd(t,oo(h,t))}else{if(!ve[V])return c?t:{};h=zd(t,V,g)}}d||(d=new ut);var Y=d.get(t);if(Y)return Y;d.set(t,h),Il(t)?t.forEach(function(Z){h.add(rt(Z,n,a,Z,t,d))}):El(t)&&t.forEach(function(Z,le){h.set(le,rt(Z,n,a,le,t,d))});var te=O?_?wa:Aa:_?He:Fe,se=L?r:te(t);return je(se||t,function(Z,le){se&&(le=Z,Z=t[le]),$n(h,le,rt(Z,n,a,le,t,d))}),h}function ad(t){var n=Fe(t);return function(a){return lo(a,t,n)}}function lo(t,n,a){var o=a.length;if(t==null)return!o;for(t=ge(t);o--;){var c=a[o],d=n[c],h=t[c];if(h===r&&!(c in t)||!d(h))return!1}return!0}function co(t,n,a){if(typeof t!="function")throw new tt(l);return ar(function(){t.apply(r,a)},n)}function Zn(t,n,a,o){var c=-1,d=br,h=!0,g=t.length,_=[],O=n.length;if(!g)return _;a&&(n=we(n,ze(a))),o?(d=Wi,h=!1):n.length>=u&&(d=jn,h=!1,n=new ln(n));e:for(;++c<g;){var L=t[c],V=a==null?L:a(L);if(L=o||L!==0?L:0,h&&V===V){for(var J=O;J--;)if(n[J]===V)continue e;_.push(L)}else d(n,V,o)||_.push(L)}return _}var zt=No(Ct),uo=No(ia,!0);function sd(t,n){var a=!0;return zt(t,function(o,c,d){return a=!!n(o,c,d),a}),a}function Vr(t,n,a){for(var o=-1,c=t.length;++o<c;){var d=t[o],h=n(d);if(h!=null&&(g===r?h===h&&!Ke(h):a(h,g)))var g=h,_=d}return _}function od(t,n,a,o){var c=t.length;for(a=ae(a),a<0&&(a=-a>c?0:c+a),o=o===r||o>c?c:ae(o),o<0&&(o+=c),o=a>o?0:Tl(o);a<o;)t[a++]=n;return t}function fo(t,n){var a=[];return zt(t,function(o,c,d){n(o,c,d)&&a.push(o)}),a}function De(t,n,a,o,c){var d=-1,h=t.length;for(a||(a=Kd),c||(c=[]);++d<h;){var g=t[d];n>0&&a(g)?n>1?De(g,n-1,a,o,c):Gt(c,g):o||(c[c.length]=g)}return c}var ra=Mo(),po=Mo(!0);function Ct(t,n){return t&&ra(t,n,Fe)}function ia(t,n){return t&&po(t,n,Fe)}function Wr(t,n){return Ht(n,function(a){return Pt(t[a])})}function un(t,n){n=Kt(n,t);for(var a=0,o=n.length;t!=null&&a<o;)t=t[ft(n[a++])];return a&&a==o?t:r}function ho(t,n,a){var o=n(t);return ie(t)?o:Gt(o,a(t))}function Me(t){return t==null?t===r?Lc:Dc:sn&&sn in ge(t)?Hd(t):np(t)}function aa(t,n){return t>n}function ld(t,n){return t!=null&&pe.call(t,n)}function cd(t,n){return t!=null&&n in ge(t)}function ud(t,n,a){return t>=Oe(n,a)&&t<Be(n,a)}function sa(t,n,a){for(var o=a?Wi:br,c=t[0].length,d=t.length,h=d,g=R(d),_=1/0,O=[];h--;){var L=t[h];h&&n&&(L=we(L,ze(n))),_=Oe(L.length,_),g[h]=!a&&(n||c>=120&&L.length>=120)?new ln(h&&L):r}L=t[0];var V=-1,J=g[0];e:for(;++V<c&&O.length<_;){var Y=L[V],te=n?n(Y):Y;if(Y=a||Y!==0?Y:0,!(J?jn(J,te):o(O,te,a))){for(h=d;--h;){var se=g[h];if(!(se?jn(se,te):o(t[h],te,a)))continue e}J&&J.push(te),O.push(Y)}}return O}function fd(t,n,a,o){return Ct(t,function(c,d,h){n(o,a(c),d,h)}),o}function er(t,n,a){n=Kt(n,t),t=tl(t,n);var o=t==null?t:t[ft(at(n))];return o==null?r:Je(o,t,a)}function mo(t){return Se(t)&&Me(t)==Et}function dd(t){return Se(t)&&Me(t)==Jn}function pd(t){return Se(t)&&Me(t)==qn}function tr(t,n,a,o,c){return t===n?!0:t==null||n==null||!Se(t)&&!Se(n)?t!==t&&n!==n:hd(t,n,a,o,tr,c)}function hd(t,n,a,o,c,d){var h=ie(t),g=ie(n),_=h?St:Le(t),O=g?St:Le(n);_=_==Et?It:_,O=O==Et?It:O;var L=_==It,V=O==It,J=_==O;if(J&&Yt(t)){if(!Yt(n))return!1;h=!0,L=!1}if(J&&!L)return d||(d=new ut),h||Bn(t)?Qo(t,n,a,o,c,d):Vd(t,n,_,a,o,c,d);if(!(a&W)){var Y=L&&pe.call(t,"__wrapped__"),te=V&&pe.call(n,"__wrapped__");if(Y||te){var se=Y?t.value():t,Z=te?n.value():n;return d||(d=new ut),c(se,Z,a,o,d)}}return J?(d||(d=new ut),Wd(t,n,a,o,c,d)):!1}function md(t){return Se(t)&&Le(t)==ot}function oa(t,n,a,o){var c=a.length,d=c,h=!o;if(t==null)return!d;for(t=ge(t);c--;){var g=a[c];if(h&&g[2]?g[1]!==t[g[0]]:!(g[0]in t))return!1}for(;++c<d;){g=a[c];var _=g[0],O=t[_],L=g[1];if(h&&g[2]){if(O===r&&!(_ in t))return!1}else{var V=new ut;if(o)var J=o(O,L,_,t,n,V);if(!(J===r?tr(L,O,W|k,o,V):J))return!1}}return!0}function go(t){if(!be(t)||Yd(t))return!1;var n=Pt(t)?mf:iu;return n.test(dn(t))}function gd(t){return Se(t)&&Me(t)==Wn}function vd(t){return Se(t)&&Le(t)==lt}function yd(t){return Se(t)&&ai(t.length)&&!!_e[Me(t)]}function vo(t){return typeof t=="function"?t:t==null?Ge:typeof t=="object"?ie(t)?_o(t[0],t[1]):Co(t):ql(t)}function la(t){if(!ir(t))return Af(t);var n=[];for(var a in ge(t))pe.call(t,a)&&a!="constructor"&&n.push(a);return n}function Cd(t){if(!be(t))return tp(t);var n=ir(t),a=[];for(var o in t)o=="constructor"&&(n||!pe.call(t,o))||a.push(o);return a}function ca(t,n){return t<n}function yo(t,n){var a=-1,o=We(t)?R(t.length):[];return zt(t,function(c,d,h){o[++a]=n(c,d,h)}),o}function Co(t){var n=Ea(t);return n.length==1&&n[0][2]?Zo(n[0][0],n[0][1]):function(a){return a===t||oa(a,t,n)}}function _o(t,n){return Ia(t)&&$o(n)?Zo(ft(t),n):function(a){var o=Na(a,t);return o===r&&o===n?Ma(a,t):tr(n,o,W|k)}}function Hr(t,n,a,o,c){t!==n&&ra(n,function(d,h){if(c||(c=new ut),be(d))_d(t,n,h,a,Hr,o,c);else{var g=o?o(Ta(t,h),d,h+"",t,n,c):r;g===r&&(g=d),ta(t,h,g)}},He)}function _d(t,n,a,o,c,d,h){var g=Ta(t,a),_=Ta(n,a),O=h.get(_);if(O){ta(t,a,O);return}var L=d?d(g,_,a+"",t,n,h):r,V=L===r;if(V){var J=ie(_),Y=!J&&Yt(_),te=!J&&!Y&&Bn(_);L=_,J||Y||te?ie(g)?L=g:Ie(g)?L=Ve(g):Y?(V=!1,L=Po(_,!0)):te?(V=!1,L=ko(_,!0)):L=[]:sr(_)||pn(_)?(L=g,pn(g)?L=Rl(g):(!be(g)||Pt(g))&&(L=Yo(_))):V=!1}V&&(h.set(_,L),c(L,_,o,d,h),h.delete(_)),ta(t,a,L)}function Ao(t,n){var a=t.length;if(a)return n+=n<0?a:0,Ft(n,a)?t[n]:r}function wo(t,n,a){n.length?n=we(n,function(d){return ie(d)?function(h){return un(h,d.length===1?d[0]:d)}:d}):n=[Ge];var o=-1;n=we(n,ze(ee()));var c=yo(t,function(d,h,g){var _=we(n,function(O){return O(d)});return{criteria:_,index:++o,value:d}});return ju(c,function(d,h){return kd(d,h,a)})}function Ad(t,n){return bo(t,n,function(a,o){return Ma(t,o)})}function bo(t,n,a){for(var o=-1,c=n.length,d={};++o<c;){var h=n[o],g=un(t,h);a(g,h)&&nr(d,Kt(h,t),g)}return d}function wd(t){return function(n){return un(n,t)}}function ua(t,n,a,o){var c=o?Ju:Cn,d=-1,h=n.length,g=t;for(t===n&&(n=Ve(n)),a&&(g=we(t,ze(a)));++d<h;)for(var _=0,O=n[d],L=a?a(O):O;(_=c(g,L,_,o))>-1;)g!==t&&kr.call(g,_,1),kr.call(t,_,1);return t}function Eo(t,n){for(var a=t?n.length:0,o=a-1;a--;){var c=n[a];if(a==o||c!==d){var d=c;Ft(c)?kr.call(t,c,1):ha(t,c)}}return t}function fa(t,n){return t+Lr(ro()*(n-t+1))}function bd(t,n,a,o){for(var c=-1,d=Be(Or((n-t)/(a||1)),0),h=R(d);d--;)h[o?d:++c]=t,t+=a;return h}function da(t,n){var a="";if(!t||n<1||n>ne)return a;do n%2&&(a+=t),n=Lr(n/2),n&&(t+=t);while(n);return a}function oe(t,n){return Ra(el(t,n,Ge),t+"")}function Ed(t){return so(Fn(t))}function Sd(t,n){var a=Fn(t);return Zr(a,cn(n,0,a.length))}function nr(t,n,a,o){if(!be(t))return t;n=Kt(n,t);for(var c=-1,d=n.length,h=d-1,g=t;g!=null&&++c<d;){var _=ft(n[c]),O=a;if(_==="__proto__"||_==="constructor"||_==="prototype")return t;if(c!=h){var L=g[_];O=o?o(L,_,g):r,O===r&&(O=be(L)?L:Ft(n[c+1])?[]:{})}$n(g,_,O),g=g[_]}return t}var So=Nr?function(t,n){return Nr.set(t,n),t}:Ge,Id=Dr?function(t,n){return Dr(t,"toString",{configurable:!0,enumerable:!1,value:qa(n),writable:!0})}:Ge;function xd(t){return Zr(Fn(t))}function it(t,n,a){var o=-1,c=t.length;n<0&&(n=-n>c?0:c+n),a=a>c?c:a,a<0&&(a+=c),c=n>a?0:a-n>>>0,n>>>=0;for(var d=R(c);++o<c;)d[o]=t[o+n];return d}function Td(t,n){var a;return zt(t,function(o,c,d){return a=n(o,c,d),!a}),!!a}function Gr(t,n,a){var o=0,c=t==null?o:t.length;if(typeof n=="number"&&n===n&&c<=vt){for(;o<c;){var d=o+c>>>1,h=t[d];h!==null&&!Ke(h)&&(a?h<=n:h<n)?o=d+1:c=d}return c}return pa(t,n,Ge,a)}function pa(t,n,a,o){var c=0,d=t==null?0:t.length;if(d===0)return 0;n=a(n);for(var h=n!==n,g=n===null,_=Ke(n),O=n===r;c<d;){var L=Lr((c+d)/2),V=a(t[L]),J=V!==r,Y=V===null,te=V===V,se=Ke(V);if(h)var Z=o||te;else O?Z=te&&(o||J):g?Z=te&&J&&(o||!Y):_?Z=te&&J&&!Y&&(o||!se):Y||se?Z=!1:Z=o?V<=n:V<n;Z?c=L+1:d=L}return Oe(d,Ae)}function Io(t,n){for(var a=-1,o=t.length,c=0,d=[];++a<o;){var h=t[a],g=n?n(h):h;if(!a||!dt(g,_)){var _=g;d[c++]=h===0?0:h}}return d}function xo(t){return typeof t=="number"?t:Ke(t)?Ne:+t}function Qe(t){if(typeof t=="string")return t;if(ie(t))return we(t,Qe)+"";if(Ke(t))return io?io.call(t):"";var n=t+"";return n=="0"&&1/t==-j?"-0":n}function Qt(t,n,a){var o=-1,c=br,d=t.length,h=!0,g=[],_=g;if(a)h=!1,c=Wi;else if(d>=u){var O=n?null:Ud(t);if(O)return Sr(O);h=!1,c=jn,_=new ln}else _=n?[]:g;e:for(;++o<d;){var L=t[o],V=n?n(L):L;if(L=a||L!==0?L:0,h&&V===V){for(var J=_.length;J--;)if(_[J]===V)continue e;n&&_.push(V),g.push(L)}else c(_,V,a)||(_!==g&&_.push(V),g.push(L))}return g}function ha(t,n){n=Kt(n,t);var a=-1,o=n.length;if(!o)return!0;for(;++a<o;){var c=ft(n[a]);if(c==="__proto__"&&!pe.call(t,"__proto__")||(c==="constructor"||c==="prototype")&&a<o-1)return!1}var d=tl(t,n);return d==null||delete d[ft(at(n))]}function To(t,n,a,o){return nr(t,n,a(un(t,n)),o)}function Jr(t,n,a,o){for(var c=t.length,d=o?c:-1;(o?d--:++d<c)&&n(t[d],d,t););return a?it(t,o?0:d,o?d+1:c):it(t,o?d+1:0,o?c:d)}function Ro(t,n){var a=t;return a instanceof ce&&(a=a.value()),Hi(n,function(o,c){return c.func.apply(c.thisArg,Gt([o],c.args))},a)}function ma(t,n,a){var o=t.length;if(o<2)return o?Qt(t[0]):[];for(var c=-1,d=R(o);++c<o;)for(var h=t[c],g=-1;++g<o;)g!=c&&(d[c]=Zn(d[c]||h,t[g],n,a));return Qt(De(d,1),n,a)}function Bo(t,n,a){for(var o=-1,c=t.length,d=n.length,h={};++o<c;){var g=o<d?n[o]:r;a(h,t[o],g)}return h}function ga(t){return Ie(t)?t:[]}function va(t){return typeof t=="function"?t:Ge}function Kt(t,n){return ie(t)?t:Ia(t,n)?[t]:al(he(t))}var Rd=oe;function Xt(t,n,a){var o=t.length;return a=a===r?o:a,!n&&a>=o?t:it(t,n,a)}var Fo=gf||function(t){return ke.clearTimeout(t)};function Po(t,n){if(n)return t.slice();var a=t.length,o=$s?$s(a):new t.constructor(a);return t.copy(o),o}function ya(t){var n=new t.constructor(t.byteLength);return new Fr(n).set(new Fr(t)),n}function Bd(t,n){var a=n?ya(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.byteLength)}function Fd(t){var n=new t.constructor(t.source,hs.exec(t));return n.lastIndex=t.lastIndex,n}function Pd(t){return Yn?ge(Yn.call(t)):{}}function ko(t,n){var a=n?ya(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.length)}function Do(t,n){if(t!==n){var a=t!==r,o=t===null,c=t===t,d=Ke(t),h=n!==r,g=n===null,_=n===n,O=Ke(n);if(!g&&!O&&!d&&t>n||d&&h&&_&&!g&&!O||o&&h&&_||!a&&_||!c)return 1;if(!o&&!d&&!O&&t<n||O&&a&&c&&!o&&!d||g&&a&&c||!h&&c||!_)return-1}return 0}function kd(t,n,a){for(var o=-1,c=t.criteria,d=n.criteria,h=c.length,g=a.length;++o<h;){var _=Do(c[o],d[o]);if(_){if(o>=g)return _;var O=a[o];return _*(O=="desc"?-1:1)}}return t.index-n.index}function Oo(t,n,a,o){for(var c=-1,d=t.length,h=a.length,g=-1,_=n.length,O=Be(d-h,0),L=R(_+O),V=!o;++g<_;)L[g]=n[g];for(;++c<h;)(V||c<d)&&(L[a[c]]=t[c]);for(;O--;)L[g++]=t[c++];return L}function Lo(t,n,a,o){for(var c=-1,d=t.length,h=-1,g=a.length,_=-1,O=n.length,L=Be(d-g,0),V=R(L+O),J=!o;++c<L;)V[c]=t[c];for(var Y=c;++_<O;)V[Y+_]=n[_];for(;++h<g;)(J||c<d)&&(V[Y+a[h]]=t[c++]);return V}function Ve(t,n){var a=-1,o=t.length;for(n||(n=R(o));++a<o;)n[a]=t[a];return n}function _t(t,n,a,o){var c=!a;a||(a={});for(var d=-1,h=n.length;++d<h;){var g=n[d],_=o?o(a[g],t[g],g,a,t):r;_===r&&(_=t[g]),c?yt(a,g,_):$n(a,g,_)}return a}function Dd(t,n){return _t(t,Sa(t),n)}function Od(t,n){return _t(t,Ko(t),n)}function jr(t,n){return function(a,o){var c=ie(a)?Uu:rd,d=n?n():{};return c(a,t,ee(o,2),d)}}function xn(t){return oe(function(n,a){var o=-1,c=a.length,d=c>1?a[c-1]:r,h=c>2?a[2]:r;for(d=t.length>3&&typeof d=="function"?(c--,d):r,h&&Ue(a[0],a[1],h)&&(d=c<3?r:d,c=1),n=ge(n);++o<c;){var g=a[o];g&&t(n,g,o,d)}return n})}function No(t,n){return function(a,o){if(a==null)return a;if(!We(a))return t(a,o);for(var c=a.length,d=n?c:-1,h=ge(a);(n?d--:++d<c)&&o(h[d],d,h)!==!1;);return a}}function Mo(t){return function(n,a,o){for(var c=-1,d=ge(n),h=o(n),g=h.length;g--;){var _=h[t?g:++c];if(a(d[_],_,d)===!1)break}return n}}function Ld(t,n,a){var o=n&S,c=rr(t);function d(){var h=this&&this!==ke&&this instanceof d?c:t;return h.apply(o?a:this,arguments)}return d}function Uo(t){return function(n){n=he(n);var a=_n(n)?ct(n):r,o=a?a[0]:n.charAt(0),c=a?Xt(a,1).join(""):n.slice(1);return o[t]()+c}}function Tn(t){return function(n){return Hi(Ml(Nl(n).replace(Su,"")),t,"")}}function rr(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var a=In(t.prototype),o=t.apply(a,n);return be(o)?o:a}}function Nd(t,n,a){var o=rr(t);function c(){for(var d=arguments.length,h=R(d),g=d,_=Rn(c);g--;)h[g]=arguments[g];var O=d<3&&h[0]!==_&&h[d-1]!==_?[]:Jt(h,_);if(d-=O.length,d<a)return Go(t,n,zr,c.placeholder,r,h,O,r,r,a-d);var L=this&&this!==ke&&this instanceof c?o:t;return Je(L,this,h)}return c}function qo(t){return function(n,a,o){var c=ge(n);if(!We(n)){var d=ee(a,3);n=Fe(n),a=function(g){return d(c[g],g,c)}}var h=t(n,a,o);return h>-1?c[d?n[h]:h]:r}}function Vo(t){return Bt(function(n){var a=n.length,o=a,c=nt.prototype.thru;for(t&&n.reverse();o--;){var d=n[o];if(typeof d!="function")throw new tt(l);if(c&&!h&&Yr(d)=="wrapper")var h=new nt([],!0)}for(o=h?o:a;++o<a;){d=n[o];var g=Yr(d),_=g=="wrapper"?ba(d):r;_&&xa(_[0])&&_[1]==(F|Q|E|w)&&!_[4].length&&_[9]==1?h=h[Yr(_[0])].apply(h,_[3]):h=d.length==1&&xa(d)?h[g]():h.thru(d)}return function(){var O=arguments,L=O[0];if(h&&O.length==1&&ie(L))return h.plant(L).value();for(var V=0,J=a?n[V].apply(this,O):L;++V<a;)J=n[V].call(this,J);return J}})}function zr(t,n,a,o,c,d,h,g,_,O){var L=n&F,V=n&S,J=n&N,Y=n&(Q|z),te=n&M,se=J?r:rr(t);function Z(){for(var le=arguments.length,ue=R(le),Xe=le;Xe--;)ue[Xe]=arguments[Xe];if(Y)var qe=Rn(Z),Ye=Qu(ue,qe);if(o&&(ue=Oo(ue,o,c,Y)),d&&(ue=Lo(ue,d,h,Y)),le-=Ye,Y&&le<O){var xe=Jt(ue,qe);return Go(t,n,zr,Z.placeholder,a,ue,xe,g,_,O-le)}var pt=V?a:this,Dt=J?pt[t]:t;return le=ue.length,g?ue=rp(ue,g):te&&le>1&&ue.reverse(),L&&_<le&&(ue.length=_),this&&this!==ke&&this instanceof Z&&(Dt=se||rr(Dt)),Dt.apply(pt,ue)}return Z}function Wo(t,n){return function(a,o){return fd(a,t,n(o),{})}}function Qr(t,n){return function(a,o){var c;if(a===r&&o===r)return n;if(a!==r&&(c=a),o!==r){if(c===r)return o;typeof a=="string"||typeof o=="string"?(a=Qe(a),o=Qe(o)):(a=xo(a),o=xo(o)),c=t(a,o)}return c}}function Ca(t){return Bt(function(n){return n=we(n,ze(ee())),oe(function(a){var o=this;return t(n,function(c){return Je(c,o,a)})})})}function Kr(t,n){n=n===r?" ":Qe(n);var a=n.length;if(a<2)return a?da(n,t):n;var o=da(n,Or(t/An(n)));return _n(n)?Xt(ct(o),0,t).join(""):o.slice(0,t)}function Md(t,n,a,o){var c=n&S,d=rr(t);function h(){for(var g=-1,_=arguments.length,O=-1,L=o.length,V=R(L+_),J=this&&this!==ke&&this instanceof h?d:t;++O<L;)V[O]=o[O];for(;_--;)V[O++]=arguments[++g];return Je(J,c?a:this,V)}return h}function Ho(t){return function(n,a,o){return o&&typeof o!="number"&&Ue(n,a,o)&&(a=o=r),n=kt(n),a===r?(a=n,n=0):a=kt(a),o=o===r?n<a?1:-1:kt(o),bd(n,a,o,t)}}function Xr(t){return function(n,a){return typeof n=="string"&&typeof a=="string"||(n=st(n),a=st(a)),t(n,a)}}function Go(t,n,a,o,c,d,h,g,_,O){var L=n&Q,V=L?h:r,J=L?r:h,Y=L?d:r,te=L?r:d;n|=L?E:q,n&=~(L?q:E),n&H||(n&=-4);var se=[t,n,c,Y,V,te,J,g,_,O],Z=a.apply(r,se);return xa(t)&&nl(Z,se),Z.placeholder=o,rl(Z,t,n)}function _a(t){var n=Re[t];return function(a,o){if(a=st(a),o=o==null?0:Oe(ae(o),292),o&&no(a)){var c=(he(a)+"e").split("e"),d=n(c[0]+"e"+(+c[1]+o));return c=(he(d)+"e").split("e"),+(c[0]+"e"+(+c[1]-o))}return n(a)}}var Ud=En&&1/Sr(new En([,-0]))[1]==j?function(t){return new En(t)}:Ha;function Jo(t){return function(n){var a=Le(n);return a==ot?Xi(n):a==lt?tf(n):zu(n,t(n))}}function Rt(t,n,a,o,c,d,h,g){var _=n&N;if(!_&&typeof t!="function")throw new tt(l);var O=o?o.length:0;if(O||(n&=-97,o=c=r),h=h===r?h:Be(ae(h),0),g=g===r?g:ae(g),O-=c?c.length:0,n&q){var L=o,V=c;o=c=r}var J=_?r:ba(t),Y=[t,n,a,o,c,L,V,d,h,g];if(J&&ep(Y,J),t=Y[0],n=Y[1],a=Y[2],o=Y[3],c=Y[4],g=Y[9]=Y[9]===r?_?0:t.length:Be(Y[9]-O,0),!g&&n&(Q|z)&&(n&=-25),!n||n==S)var te=Ld(t,n,a);else n==Q||n==z?te=Nd(t,n,g):(n==E||n==(S|E))&&!c.length?te=Md(t,n,a,o):te=zr.apply(r,Y);var se=J?So:nl;return rl(se(te,Y),t,n)}function jo(t,n,a,o){return t===r||dt(t,bn[a])&&!pe.call(o,a)?n:t}function zo(t,n,a,o,c,d){return be(t)&&be(n)&&(d.set(n,t),Hr(t,n,r,zo,d),d.delete(n)),t}function qd(t){return sr(t)?r:t}function Qo(t,n,a,o,c,d){var h=a&W,g=t.length,_=n.length;if(g!=_&&!(h&&_>g))return!1;var O=d.get(t),L=d.get(n);if(O&&L)return O==n&&L==t;var V=-1,J=!0,Y=a&k?new ln:r;for(d.set(t,n),d.set(n,t);++V<g;){var te=t[V],se=n[V];if(o)var Z=h?o(se,te,V,n,t,d):o(te,se,V,t,n,d);if(Z!==r){if(Z)continue;J=!1;break}if(Y){if(!Gi(n,function(le,ue){if(!jn(Y,ue)&&(te===le||c(te,le,a,o,d)))return Y.push(ue)})){J=!1;break}}else if(!(te===se||c(te,se,a,o,d))){J=!1;break}}return d.delete(t),d.delete(n),J}function Vd(t,n,a,o,c,d,h){switch(a){case vn:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case Jn:return!(t.byteLength!=n.byteLength||!d(new Fr(t),new Fr(n)));case rn:case qn:case Vn:return dt(+t,+n);case vr:return t.name==n.name&&t.message==n.message;case Wn:case Hn:return t==n+"";case ot:var g=Xi;case lt:var _=o&W;if(g||(g=Sr),t.size!=n.size&&!_)return!1;var O=h.get(t);if(O)return O==n;o|=k,h.set(t,n);var L=Qo(g(t),g(n),o,c,d,h);return h.delete(t),L;case Cr:if(Yn)return Yn.call(t)==Yn.call(n)}return!1}function Wd(t,n,a,o,c,d){var h=a&W,g=Aa(t),_=g.length,O=Aa(n),L=O.length;if(_!=L&&!h)return!1;for(var V=_;V--;){var J=g[V];if(!(h?J in n:pe.call(n,J)))return!1}var Y=d.get(t),te=d.get(n);if(Y&&te)return Y==n&&te==t;var se=!0;d.set(t,n),d.set(n,t);for(var Z=h;++V<_;){J=g[V];var le=t[J],ue=n[J];if(o)var Xe=h?o(ue,le,J,n,t,d):o(le,ue,J,t,n,d);if(!(Xe===r?le===ue||c(le,ue,a,o,d):Xe)){se=!1;break}Z||(Z=J=="constructor")}if(se&&!Z){var qe=t.constructor,Ye=n.constructor;qe!=Ye&&"constructor"in t&&"constructor"in n&&!(typeof qe=="function"&&qe instanceof qe&&typeof Ye=="function"&&Ye instanceof Ye)&&(se=!1)}return d.delete(t),d.delete(n),se}function Bt(t){return Ra(el(t,r,cl),t+"")}function Aa(t){return ho(t,Fe,Sa)}function wa(t){return ho(t,He,Ko)}var ba=Nr?function(t){return Nr.get(t)}:Ha;function Yr(t){for(var n=t.name+"",a=Sn[n],o=pe.call(Sn,n)?a.length:0;o--;){var c=a[o],d=c.func;if(d==null||d==t)return c.name}return n}function Rn(t){var n=pe.call(f,"placeholder")?f:t;return n.placeholder}function ee(){var t=f.iteratee||Va;return t=t===Va?vo:t,arguments.length?t(arguments[0],arguments[1]):t}function $r(t,n){var a=t.__data__;return Xd(n)?a[typeof n=="string"?"string":"hash"]:a.map}function Ea(t){for(var n=Fe(t),a=n.length;a--;){var o=n[a],c=t[o];n[a]=[o,c,$o(c)]}return n}function fn(t,n){var a=$u(t,n);return go(a)?a:r}function Hd(t){var n=pe.call(t,sn),a=t[sn];try{t[sn]=r;var o=!0}catch{}var c=Rr.call(t);return o&&(n?t[sn]=a:delete t[sn]),c}var Sa=$i?function(t){return t==null?[]:(t=ge(t),Ht($i(t),function(n){return eo.call(t,n)}))}:Ga,Ko=$i?function(t){for(var n=[];t;)Gt(n,Sa(t)),t=Pr(t);return n}:Ga,Le=Me;(Zi&&Le(new Zi(new ArrayBuffer(1)))!=vn||Qn&&Le(new Qn)!=ot||ea&&Le(ea.resolve())!=cs||En&&Le(new En)!=lt||Kn&&Le(new Kn)!=Gn)&&(Le=function(t){var n=Me(t),a=n==It?t.constructor:r,o=a?dn(a):"";if(o)switch(o){case Sf:return vn;case If:return ot;case xf:return cs;case Tf:return lt;case Rf:return Gn}return n});function Gd(t,n,a){for(var o=-1,c=a.length;++o<c;){var d=a[o],h=d.size;switch(d.type){case"drop":t+=h;break;case"dropRight":n-=h;break;case"take":n=Oe(n,t+h);break;case"takeRight":t=Be(t,n-h);break}}return{start:t,end:n}}function Jd(t){var n=t.match(Yc);return n?n[1].split($c):[]}function Xo(t,n,a){n=Kt(n,t);for(var o=-1,c=n.length,d=!1;++o<c;){var h=ft(n[o]);if(!(d=t!=null&&a(t,h)))break;t=t[h]}return d||++o!=c?d:(c=t==null?0:t.length,!!c&&ai(c)&&Ft(h,c)&&(ie(t)||pn(t)))}function jd(t){var n=t.length,a=new t.constructor(n);return n&&typeof t[0]=="string"&&pe.call(t,"index")&&(a.index=t.index,a.input=t.input),a}function Yo(t){return typeof t.constructor=="function"&&!ir(t)?In(Pr(t)):{}}function zd(t,n,a){var o=t.constructor;switch(n){case Jn:return ya(t);case rn:case qn:return new o(+t);case vn:return Bd(t,a);case Ei:case Si:case Ii:case xi:case Ti:case Ri:case Bi:case Fi:case Pi:return ko(t,a);case ot:return new o;case Vn:case Hn:return new o(t);case Wn:return Fd(t);case lt:return new o;case Cr:return Pd(t)}}function Qd(t,n){var a=n.length;if(!a)return t;var o=a-1;return n[o]=(a>1?"& ":"")+n[o],n=n.join(a>2?", ":" "),t.replace(Xc,`{
9
+ /* [wrapped with `+n+`] */
10
+ `)}function Kd(t){return ie(t)||pn(t)||!!(to&&t&&t[to])}function Ft(t,n){var a=typeof t;return n=n==null?ne:n,!!n&&(a=="number"||a!="symbol"&&su.test(t))&&t>-1&&t%1==0&&t<n}function Ue(t,n,a){if(!be(a))return!1;var o=typeof n;return(o=="number"?We(a)&&Ft(n,a.length):o=="string"&&n in a)?dt(a[n],t):!1}function Ia(t,n){if(ie(t))return!1;var a=typeof t;return a=="number"||a=="symbol"||a=="boolean"||t==null||Ke(t)?!0:jc.test(t)||!Jc.test(t)||n!=null&&t in ge(n)}function Xd(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function xa(t){var n=Yr(t),a=f[n];if(typeof a!="function"||!(n in ce.prototype))return!1;if(t===a)return!0;var o=ba(a);return!!o&&t===o[0]}function Yd(t){return!!Ys&&Ys in t}var $d=xr?Pt:Ja;function ir(t){var n=t&&t.constructor,a=typeof n=="function"&&n.prototype||bn;return t===a}function $o(t){return t===t&&!be(t)}function Zo(t,n){return function(a){return a==null?!1:a[t]===n&&(n!==r||t in ge(a))}}function Zd(t){var n=ri(t,function(o){return a.size===x&&a.clear(),o}),a=n.cache;return n}function ep(t,n){var a=t[1],o=n[1],c=a|o,d=c<(S|N|F),h=o==F&&a==Q||o==F&&a==w&&t[7].length<=n[8]||o==(F|w)&&n[7].length<=n[8]&&a==Q;if(!(d||h))return t;o&S&&(t[2]=n[2],c|=a&S?0:H);var g=n[3];if(g){var _=t[3];t[3]=_?Oo(_,g,n[4]):g,t[4]=_?Jt(t[3],T):n[4]}return g=n[5],g&&(_=t[5],t[5]=_?Lo(_,g,n[6]):g,t[6]=_?Jt(t[5],T):n[6]),g=n[7],g&&(t[7]=g),o&F&&(t[8]=t[8]==null?n[8]:Oe(t[8],n[8])),t[9]==null&&(t[9]=n[9]),t[0]=n[0],t[1]=c,t}function tp(t){var n=[];if(t!=null)for(var a in ge(t))n.push(a);return n}function np(t){return Rr.call(t)}function el(t,n,a){return n=Be(n===r?t.length-1:n,0),function(){for(var o=arguments,c=-1,d=Be(o.length-n,0),h=R(d);++c<d;)h[c]=o[n+c];c=-1;for(var g=R(n+1);++c<n;)g[c]=o[c];return g[n]=a(h),Je(t,this,g)}}function tl(t,n){return n.length<2?t:un(t,it(n,0,-1))}function rp(t,n){for(var a=t.length,o=Oe(n.length,a),c=Ve(t);o--;){var d=n[o];t[o]=Ft(d,a)?c[d]:r}return t}function Ta(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}var nl=il(So),ar=yf||function(t,n){return ke.setTimeout(t,n)},Ra=il(Id);function rl(t,n,a){var o=n+"";return Ra(t,Qd(o,ip(Jd(o),a)))}function il(t){var n=0,a=0;return function(){var o=wf(),c=fe-(o-a);if(a=o,c>0){if(++n>=ye)return arguments[0]}else n=0;return t.apply(r,arguments)}}function Zr(t,n){var a=-1,o=t.length,c=o-1;for(n=n===r?o:n;++a<n;){var d=fa(a,c),h=t[d];t[d]=t[a],t[a]=h}return t.length=n,t}var al=Zd(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(zc,function(a,o,c,d){n.push(c?d.replace(eu,"$1"):o||a)}),n});function ft(t){if(typeof t=="string"||Ke(t))return t;var n=t+"";return n=="0"&&1/t==-j?"-0":n}function dn(t){if(t!=null){try{return Tr.call(t)}catch{}try{return t+""}catch{}}return""}function ip(t,n){return je(Wt,function(a){var o="_."+a[0];n&a[1]&&!br(t,o)&&t.push(o)}),t.sort()}function sl(t){if(t instanceof ce)return t.clone();var n=new nt(t.__wrapped__,t.__chain__);return n.__actions__=Ve(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}function ap(t,n,a){(a?Ue(t,n,a):n===r)?n=1:n=Be(ae(n),0);var o=t==null?0:t.length;if(!o||n<1)return[];for(var c=0,d=0,h=R(Or(o/n));c<o;)h[d++]=it(t,c,c+=n);return h}function sp(t){for(var n=-1,a=t==null?0:t.length,o=0,c=[];++n<a;){var d=t[n];d&&(c[o++]=d)}return c}function op(){var t=arguments.length;if(!t)return[];for(var n=R(t-1),a=arguments[0],o=t;o--;)n[o-1]=arguments[o];return Gt(ie(a)?Ve(a):[a],De(n,1))}var lp=oe(function(t,n){return Ie(t)?Zn(t,De(n,1,Ie,!0)):[]}),cp=oe(function(t,n){var a=at(n);return Ie(a)&&(a=r),Ie(t)?Zn(t,De(n,1,Ie,!0),ee(a,2)):[]}),up=oe(function(t,n){var a=at(n);return Ie(a)&&(a=r),Ie(t)?Zn(t,De(n,1,Ie,!0),r,a):[]});function fp(t,n,a){var o=t==null?0:t.length;return o?(n=a||n===r?1:ae(n),it(t,n<0?0:n,o)):[]}function dp(t,n,a){var o=t==null?0:t.length;return o?(n=a||n===r?1:ae(n),n=o-n,it(t,0,n<0?0:n)):[]}function pp(t,n){return t&&t.length?Jr(t,ee(n,3),!0,!0):[]}function hp(t,n){return t&&t.length?Jr(t,ee(n,3),!0):[]}function mp(t,n,a,o){var c=t==null?0:t.length;return c?(a&&typeof a!="number"&&Ue(t,n,a)&&(a=0,o=c),od(t,n,a,o)):[]}function ol(t,n,a){var o=t==null?0:t.length;if(!o)return-1;var c=a==null?0:ae(a);return c<0&&(c=Be(o+c,0)),Er(t,ee(n,3),c)}function ll(t,n,a){var o=t==null?0:t.length;if(!o)return-1;var c=o-1;return a!==r&&(c=ae(a),c=a<0?Be(o+c,0):Oe(c,o-1)),Er(t,ee(n,3),c,!0)}function cl(t){var n=t==null?0:t.length;return n?De(t,1):[]}function gp(t){var n=t==null?0:t.length;return n?De(t,j):[]}function vp(t,n){var a=t==null?0:t.length;return a?(n=n===r?1:ae(n),De(t,n)):[]}function yp(t){for(var n=-1,a=t==null?0:t.length,o={};++n<a;){var c=t[n];yt(o,c[0],c[1])}return o}function ul(t){return t&&t.length?t[0]:r}function Cp(t,n,a){var o=t==null?0:t.length;if(!o)return-1;var c=a==null?0:ae(a);return c<0&&(c=Be(o+c,0)),Cn(t,n,c)}function _p(t){var n=t==null?0:t.length;return n?it(t,0,-1):[]}var Ap=oe(function(t){var n=we(t,ga);return n.length&&n[0]===t[0]?sa(n):[]}),wp=oe(function(t){var n=at(t),a=we(t,ga);return n===at(a)?n=r:a.pop(),a.length&&a[0]===t[0]?sa(a,ee(n,2)):[]}),bp=oe(function(t){var n=at(t),a=we(t,ga);return n=typeof n=="function"?n:r,n&&a.pop(),a.length&&a[0]===t[0]?sa(a,r,n):[]});function Ep(t,n){return t==null?"":_f.call(t,n)}function at(t){var n=t==null?0:t.length;return n?t[n-1]:r}function Sp(t,n,a){var o=t==null?0:t.length;if(!o)return-1;var c=o;return a!==r&&(c=ae(a),c=c<0?Be(o+c,0):Oe(c,o-1)),n===n?rf(t,n,c):Er(t,Hs,c,!0)}function Ip(t,n){return t&&t.length?Ao(t,ae(n)):r}var xp=oe(fl);function fl(t,n){return t&&t.length&&n&&n.length?ua(t,n):t}function Tp(t,n,a){return t&&t.length&&n&&n.length?ua(t,n,ee(a,2)):t}function Rp(t,n,a){return t&&t.length&&n&&n.length?ua(t,n,r,a):t}var Bp=Bt(function(t,n){var a=t==null?0:t.length,o=na(t,n);return Eo(t,we(n,function(c){return Ft(c,a)?+c:c}).sort(Do)),o});function Fp(t,n){var a=[];if(!(t&&t.length))return a;var o=-1,c=[],d=t.length;for(n=ee(n,3);++o<d;){var h=t[o];n(h,o,t)&&(a.push(h),c.push(o))}return Eo(t,c),a}function Ba(t){return t==null?t:Ef.call(t)}function Pp(t,n,a){var o=t==null?0:t.length;return o?(a&&typeof a!="number"&&Ue(t,n,a)?(n=0,a=o):(n=n==null?0:ae(n),a=a===r?o:ae(a)),it(t,n,a)):[]}function kp(t,n){return Gr(t,n)}function Dp(t,n,a){return pa(t,n,ee(a,2))}function Op(t,n){var a=t==null?0:t.length;if(a){var o=Gr(t,n);if(o<a&&dt(t[o],n))return o}return-1}function Lp(t,n){return Gr(t,n,!0)}function Np(t,n,a){return pa(t,n,ee(a,2),!0)}function Mp(t,n){var a=t==null?0:t.length;if(a){var o=Gr(t,n,!0)-1;if(dt(t[o],n))return o}return-1}function Up(t){return t&&t.length?Io(t):[]}function qp(t,n){return t&&t.length?Io(t,ee(n,2)):[]}function Vp(t){var n=t==null?0:t.length;return n?it(t,1,n):[]}function Wp(t,n,a){return t&&t.length?(n=a||n===r?1:ae(n),it(t,0,n<0?0:n)):[]}function Hp(t,n,a){var o=t==null?0:t.length;return o?(n=a||n===r?1:ae(n),n=o-n,it(t,n<0?0:n,o)):[]}function Gp(t,n){return t&&t.length?Jr(t,ee(n,3),!1,!0):[]}function Jp(t,n){return t&&t.length?Jr(t,ee(n,3)):[]}var jp=oe(function(t){return Qt(De(t,1,Ie,!0))}),zp=oe(function(t){var n=at(t);return Ie(n)&&(n=r),Qt(De(t,1,Ie,!0),ee(n,2))}),Qp=oe(function(t){var n=at(t);return n=typeof n=="function"?n:r,Qt(De(t,1,Ie,!0),r,n)});function Kp(t){return t&&t.length?Qt(t):[]}function Xp(t,n){return t&&t.length?Qt(t,ee(n,2)):[]}function Yp(t,n){return n=typeof n=="function"?n:r,t&&t.length?Qt(t,r,n):[]}function Fa(t){if(!(t&&t.length))return[];var n=0;return t=Ht(t,function(a){if(Ie(a))return n=Be(a.length,n),!0}),Qi(n,function(a){return we(t,Ji(a))})}function dl(t,n){if(!(t&&t.length))return[];var a=Fa(t);return n==null?a:we(a,function(o){return Je(n,r,o)})}var $p=oe(function(t,n){return Ie(t)?Zn(t,n):[]}),Zp=oe(function(t){return ma(Ht(t,Ie))}),eh=oe(function(t){var n=at(t);return Ie(n)&&(n=r),ma(Ht(t,Ie),ee(n,2))}),th=oe(function(t){var n=at(t);return n=typeof n=="function"?n:r,ma(Ht(t,Ie),r,n)}),nh=oe(Fa);function rh(t,n){return Bo(t||[],n||[],$n)}function ih(t,n){return Bo(t||[],n||[],nr)}var ah=oe(function(t){var n=t.length,a=n>1?t[n-1]:r;return a=typeof a=="function"?(t.pop(),a):r,dl(t,a)});function pl(t){var n=f(t);return n.__chain__=!0,n}function sh(t,n){return n(t),t}function ei(t,n){return n(t)}var oh=Bt(function(t){var n=t.length,a=n?t[0]:0,o=this.__wrapped__,c=function(d){return na(d,t)};return n>1||this.__actions__.length||!(o instanceof ce)||!Ft(a)?this.thru(c):(o=o.slice(a,+a+(n?1:0)),o.__actions__.push({func:ei,args:[c],thisArg:r}),new nt(o,this.__chain__).thru(function(d){return n&&!d.length&&d.push(r),d}))});function lh(){return pl(this)}function ch(){return new nt(this.value(),this.__chain__)}function uh(){this.__values__===r&&(this.__values__=xl(this.value()));var t=this.__index__>=this.__values__.length,n=t?r:this.__values__[this.__index__++];return{done:t,value:n}}function fh(){return this}function dh(t){for(var n,a=this;a instanceof Ur;){var o=sl(a);o.__index__=0,o.__values__=r,n?c.__wrapped__=o:n=o;var c=o;a=a.__wrapped__}return c.__wrapped__=t,n}function ph(){var t=this.__wrapped__;if(t instanceof ce){var n=t;return this.__actions__.length&&(n=new ce(this)),n=n.reverse(),n.__actions__.push({func:ei,args:[Ba],thisArg:r}),new nt(n,this.__chain__)}return this.thru(Ba)}function hh(){return Ro(this.__wrapped__,this.__actions__)}var mh=jr(function(t,n,a){pe.call(t,a)?++t[a]:yt(t,a,1)});function gh(t,n,a){var o=ie(t)?Vs:sd;return a&&Ue(t,n,a)&&(n=r),o(t,ee(n,3))}function vh(t,n){var a=ie(t)?Ht:fo;return a(t,ee(n,3))}var yh=qo(ol),Ch=qo(ll);function _h(t,n){return De(ti(t,n),1)}function Ah(t,n){return De(ti(t,n),j)}function wh(t,n,a){return a=a===r?1:ae(a),De(ti(t,n),a)}function hl(t,n){var a=ie(t)?je:zt;return a(t,ee(n,3))}function ml(t,n){var a=ie(t)?qu:uo;return a(t,ee(n,3))}var bh=jr(function(t,n,a){pe.call(t,a)?t[a].push(n):yt(t,a,[n])});function Eh(t,n,a,o){t=We(t)?t:Fn(t),a=a&&!o?ae(a):0;var c=t.length;return a<0&&(a=Be(c+a,0)),si(t)?a<=c&&t.indexOf(n,a)>-1:!!c&&Cn(t,n,a)>-1}var Sh=oe(function(t,n,a){var o=-1,c=typeof n=="function",d=We(t)?R(t.length):[];return zt(t,function(h){d[++o]=c?Je(n,h,a):er(h,n,a)}),d}),Ih=jr(function(t,n,a){yt(t,a,n)});function ti(t,n){var a=ie(t)?we:yo;return a(t,ee(n,3))}function xh(t,n,a,o){return t==null?[]:(ie(n)||(n=n==null?[]:[n]),a=o?r:a,ie(a)||(a=a==null?[]:[a]),wo(t,n,a))}var Th=jr(function(t,n,a){t[a?0:1].push(n)},function(){return[[],[]]});function Rh(t,n,a){var o=ie(t)?Hi:Js,c=arguments.length<3;return o(t,ee(n,4),a,c,zt)}function Bh(t,n,a){var o=ie(t)?Vu:Js,c=arguments.length<3;return o(t,ee(n,4),a,c,uo)}function Fh(t,n){var a=ie(t)?Ht:fo;return a(t,ii(ee(n,3)))}function Ph(t){var n=ie(t)?so:Ed;return n(t)}function kh(t,n,a){(a?Ue(t,n,a):n===r)?n=1:n=ae(n);var o=ie(t)?td:Sd;return o(t,n)}function Dh(t){var n=ie(t)?nd:xd;return n(t)}function Oh(t){if(t==null)return 0;if(We(t))return si(t)?An(t):t.length;var n=Le(t);return n==ot||n==lt?t.size:la(t).length}function Lh(t,n,a){var o=ie(t)?Gi:Td;return a&&Ue(t,n,a)&&(n=r),o(t,ee(n,3))}var Nh=oe(function(t,n){if(t==null)return[];var a=n.length;return a>1&&Ue(t,n[0],n[1])?n=[]:a>2&&Ue(n[0],n[1],n[2])&&(n=[n[0]]),wo(t,De(n,1),[])}),ni=vf||function(){return ke.Date.now()};function Mh(t,n){if(typeof n!="function")throw new tt(l);return t=ae(t),function(){if(--t<1)return n.apply(this,arguments)}}function gl(t,n,a){return n=a?r:n,n=t&&n==null?t.length:n,Rt(t,F,r,r,r,r,n)}function vl(t,n){var a;if(typeof n!="function")throw new tt(l);return t=ae(t),function(){return--t>0&&(a=n.apply(this,arguments)),t<=1&&(n=r),a}}var Pa=oe(function(t,n,a){var o=S;if(a.length){var c=Jt(a,Rn(Pa));o|=E}return Rt(t,o,n,a,c)}),yl=oe(function(t,n,a){var o=S|N;if(a.length){var c=Jt(a,Rn(yl));o|=E}return Rt(n,o,t,a,c)});function Cl(t,n,a){n=a?r:n;var o=Rt(t,Q,r,r,r,r,r,n);return o.placeholder=Cl.placeholder,o}function _l(t,n,a){n=a?r:n;var o=Rt(t,z,r,r,r,r,r,n);return o.placeholder=_l.placeholder,o}function Al(t,n,a){var o,c,d,h,g,_,O=0,L=!1,V=!1,J=!0;if(typeof t!="function")throw new tt(l);n=st(n)||0,be(a)&&(L=!!a.leading,V="maxWait"in a,d=V?Be(st(a.maxWait)||0,n):d,J="trailing"in a?!!a.trailing:J);function Y(xe){var pt=o,Dt=c;return o=c=r,O=xe,h=t.apply(Dt,pt),h}function te(xe){return O=xe,g=ar(le,n),L?Y(xe):h}function se(xe){var pt=xe-_,Dt=xe-O,Vl=n-pt;return V?Oe(Vl,d-Dt):Vl}function Z(xe){var pt=xe-_,Dt=xe-O;return _===r||pt>=n||pt<0||V&&Dt>=d}function le(){var xe=ni();if(Z(xe))return ue(xe);g=ar(le,se(xe))}function ue(xe){return g=r,J&&o?Y(xe):(o=c=r,h)}function Xe(){g!==r&&Fo(g),O=0,o=_=c=g=r}function qe(){return g===r?h:ue(ni())}function Ye(){var xe=ni(),pt=Z(xe);if(o=arguments,c=this,_=xe,pt){if(g===r)return te(_);if(V)return Fo(g),g=ar(le,n),Y(_)}return g===r&&(g=ar(le,n)),h}return Ye.cancel=Xe,Ye.flush=qe,Ye}var Uh=oe(function(t,n){return co(t,1,n)}),qh=oe(function(t,n,a){return co(t,st(n)||0,a)});function Vh(t){return Rt(t,M)}function ri(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new tt(l);var a=function(){var o=arguments,c=n?n.apply(this,o):o[0],d=a.cache;if(d.has(c))return d.get(c);var h=t.apply(this,o);return a.cache=d.set(c,h)||d,h};return a.cache=new(ri.Cache||Tt),a}ri.Cache=Tt;function ii(t){if(typeof t!="function")throw new tt(l);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}function Wh(t){return vl(2,t)}var Hh=Rd(function(t,n){n=n.length==1&&ie(n[0])?we(n[0],ze(ee())):we(De(n,1),ze(ee()));var a=n.length;return oe(function(o){for(var c=-1,d=Oe(o.length,a);++c<d;)o[c]=n[c].call(this,o[c]);return Je(t,this,o)})}),ka=oe(function(t,n){var a=Jt(n,Rn(ka));return Rt(t,E,r,n,a)}),wl=oe(function(t,n){var a=Jt(n,Rn(wl));return Rt(t,q,r,n,a)}),Gh=Bt(function(t,n){return Rt(t,w,r,r,r,n)});function Jh(t,n){if(typeof t!="function")throw new tt(l);return n=n===r?n:ae(n),oe(t,n)}function jh(t,n){if(typeof t!="function")throw new tt(l);return n=n==null?0:Be(ae(n),0),oe(function(a){var o=a[n],c=Xt(a,0,n);return o&&Gt(c,o),Je(t,this,c)})}function zh(t,n,a){var o=!0,c=!0;if(typeof t!="function")throw new tt(l);return be(a)&&(o="leading"in a?!!a.leading:o,c="trailing"in a?!!a.trailing:c),Al(t,n,{leading:o,maxWait:n,trailing:c})}function Qh(t){return gl(t,1)}function Kh(t,n){return ka(va(n),t)}function Xh(){if(!arguments.length)return[];var t=arguments[0];return ie(t)?t:[t]}function Yh(t){return rt(t,D)}function $h(t,n){return n=typeof n=="function"?n:r,rt(t,D,n)}function Zh(t){return rt(t,I|D)}function em(t,n){return n=typeof n=="function"?n:r,rt(t,I|D,n)}function tm(t,n){return n==null||lo(t,n,Fe(n))}function dt(t,n){return t===n||t!==t&&n!==n}var nm=Xr(aa),rm=Xr(function(t,n){return t>=n}),pn=mo((function(){return arguments})())?mo:function(t){return Se(t)&&pe.call(t,"callee")&&!eo.call(t,"callee")},ie=R.isArray,im=Os?ze(Os):dd;function We(t){return t!=null&&ai(t.length)&&!Pt(t)}function Ie(t){return Se(t)&&We(t)}function am(t){return t===!0||t===!1||Se(t)&&Me(t)==rn}var Yt=Cf||Ja,sm=Ls?ze(Ls):pd;function om(t){return Se(t)&&t.nodeType===1&&!sr(t)}function lm(t){if(t==null)return!0;if(We(t)&&(ie(t)||typeof t=="string"||typeof t.splice=="function"||Yt(t)||Bn(t)||pn(t)))return!t.length;var n=Le(t);if(n==ot||n==lt)return!t.size;if(ir(t))return!la(t).length;for(var a in t)if(pe.call(t,a))return!1;return!0}function cm(t,n){return tr(t,n)}function um(t,n,a){a=typeof a=="function"?a:r;var o=a?a(t,n):r;return o===r?tr(t,n,r,a):!!o}function Da(t){if(!Se(t))return!1;var n=Me(t);return n==vr||n==kc||typeof t.message=="string"&&typeof t.name=="string"&&!sr(t)}function fm(t){return typeof t=="number"&&no(t)}function Pt(t){if(!be(t))return!1;var n=Me(t);return n==yr||n==ls||n==gr||n==Oc}function bl(t){return typeof t=="number"&&t==ae(t)}function ai(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ne}function be(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}function Se(t){return t!=null&&typeof t=="object"}var El=Ns?ze(Ns):md;function dm(t,n){return t===n||oa(t,n,Ea(n))}function pm(t,n,a){return a=typeof a=="function"?a:r,oa(t,n,Ea(n),a)}function hm(t){return Sl(t)&&t!=+t}function mm(t){if($d(t))throw new re(p);return go(t)}function gm(t){return t===null}function vm(t){return t==null}function Sl(t){return typeof t=="number"||Se(t)&&Me(t)==Vn}function sr(t){if(!Se(t)||Me(t)!=It)return!1;var n=Pr(t);if(n===null)return!0;var a=pe.call(n,"constructor")&&n.constructor;return typeof a=="function"&&a instanceof a&&Tr.call(a)==pf}var Oa=Ms?ze(Ms):gd;function ym(t){return bl(t)&&t>=-ne&&t<=ne}var Il=Us?ze(Us):vd;function si(t){return typeof t=="string"||!ie(t)&&Se(t)&&Me(t)==Hn}function Ke(t){return typeof t=="symbol"||Se(t)&&Me(t)==Cr}var Bn=qs?ze(qs):yd;function Cm(t){return t===r}function _m(t){return Se(t)&&Le(t)==Gn}function Am(t){return Se(t)&&Me(t)==Nc}var wm=Xr(ca),bm=Xr(function(t,n){return t<=n});function xl(t){if(!t)return[];if(We(t))return si(t)?ct(t):Ve(t);if(zn&&t[zn])return ef(t[zn]());var n=Le(t),a=n==ot?Xi:n==lt?Sr:Fn;return a(t)}function kt(t){if(!t)return t===0?t:0;if(t=st(t),t===j||t===-j){var n=t<0?-1:1;return n*Ce}return t===t?t:0}function ae(t){var n=kt(t),a=n%1;return n===n?a?n-a:n:0}function Tl(t){return t?cn(ae(t),0,Ee):0}function st(t){if(typeof t=="number")return t;if(Ke(t))return Ne;if(be(t)){var n=typeof t.valueOf=="function"?t.valueOf():t;t=be(n)?n+"":n}if(typeof t!="string")return t===0?t:+t;t=js(t);var a=ru.test(t);return a||au.test(t)?Nu(t.slice(2),a?2:8):nu.test(t)?Ne:+t}function Rl(t){return _t(t,He(t))}function Em(t){return t?cn(ae(t),-ne,ne):t===0?t:0}function he(t){return t==null?"":Qe(t)}var Sm=xn(function(t,n){if(ir(n)||We(n)){_t(n,Fe(n),t);return}for(var a in n)pe.call(n,a)&&$n(t,a,n[a])}),Bl=xn(function(t,n){_t(n,He(n),t)}),Fl=xn(function(t,n,a,o){_t(n,He(n),t,o)}),La=xn(function(t,n,a,o){_t(n,Fe(n),t,o)}),Im=Bt(na);function xm(t,n){var a=In(t);return n==null?a:oo(a,n)}var Tm=oe(function(t,n){t=ge(t);var a=-1,o=n.length,c=o>2?n[2]:r;for(c&&Ue(n[0],n[1],c)&&(o=1);++a<o;)for(var d=n[a],h=He(d),g=-1,_=h.length;++g<_;){var O=h[g],L=t[O];(L===r||dt(L,bn[O])&&!pe.call(t,O))&&(t[O]=d[O])}return t}),Rm=oe(function(t){return t.push(r,zo),Je(Pl,r,t)});function Bm(t,n){return Ws(t,ee(n,3),Ct)}function Fm(t,n){return Ws(t,ee(n,3),ia)}function Pm(t,n){return t==null?t:ra(t,ee(n,3),He)}function km(t,n){return t==null?t:po(t,ee(n,3),He)}function Dm(t,n){return t&&Ct(t,ee(n,3))}function Om(t,n){return t&&ia(t,ee(n,3))}function Lm(t){return t==null?[]:Wr(t,Fe(t))}function Nm(t){return t==null?[]:Wr(t,He(t))}function Na(t,n,a){var o=t==null?r:un(t,n);return o===r?a:o}function Mm(t,n){return t!=null&&Xo(t,n,ld)}function Ma(t,n){return t!=null&&Xo(t,n,cd)}var Um=Wo(function(t,n,a){n!=null&&typeof n.toString!="function"&&(n=Rr.call(n)),t[n]=a},qa(Ge)),qm=Wo(function(t,n,a){n!=null&&typeof n.toString!="function"&&(n=Rr.call(n)),pe.call(t,n)?t[n].push(a):t[n]=[a]},ee),Vm=oe(er);function Fe(t){return We(t)?ao(t):la(t)}function He(t){return We(t)?ao(t,!0):Cd(t)}function Wm(t,n){var a={};return n=ee(n,3),Ct(t,function(o,c,d){yt(a,n(o,c,d),o)}),a}function Hm(t,n){var a={};return n=ee(n,3),Ct(t,function(o,c,d){yt(a,c,n(o,c,d))}),a}var Gm=xn(function(t,n,a){Hr(t,n,a)}),Pl=xn(function(t,n,a,o){Hr(t,n,a,o)}),Jm=Bt(function(t,n){var a={};if(t==null)return a;var o=!1;n=we(n,function(d){return d=Kt(d,t),o||(o=d.length>1),d}),_t(t,wa(t),a),o&&(a=rt(a,I|B|D,qd));for(var c=n.length;c--;)ha(a,n[c]);return a});function jm(t,n){return kl(t,ii(ee(n)))}var zm=Bt(function(t,n){return t==null?{}:Ad(t,n)});function kl(t,n){if(t==null)return{};var a=we(wa(t),function(o){return[o]});return n=ee(n),bo(t,a,function(o,c){return n(o,c[0])})}function Qm(t,n,a){n=Kt(n,t);var o=-1,c=n.length;for(c||(c=1,t=r);++o<c;){var d=t==null?r:t[ft(n[o])];d===r&&(o=c,d=a),t=Pt(d)?d.call(t):d}return t}function Km(t,n,a){return t==null?t:nr(t,n,a)}function Xm(t,n,a,o){return o=typeof o=="function"?o:r,t==null?t:nr(t,n,a,o)}var Dl=Jo(Fe),Ol=Jo(He);function Ym(t,n,a){var o=ie(t),c=o||Yt(t)||Bn(t);if(n=ee(n,4),a==null){var d=t&&t.constructor;c?a=o?new d:[]:be(t)?a=Pt(d)?In(Pr(t)):{}:a={}}return(c?je:Ct)(t,function(h,g,_){return n(a,h,g,_)}),a}function $m(t,n){return t==null?!0:ha(t,n)}function Zm(t,n,a){return t==null?t:To(t,n,va(a))}function eg(t,n,a,o){return o=typeof o=="function"?o:r,t==null?t:To(t,n,va(a),o)}function Fn(t){return t==null?[]:Ki(t,Fe(t))}function tg(t){return t==null?[]:Ki(t,He(t))}function ng(t,n,a){return a===r&&(a=n,n=r),a!==r&&(a=st(a),a=a===a?a:0),n!==r&&(n=st(n),n=n===n?n:0),cn(st(t),n,a)}function rg(t,n,a){return n=kt(n),a===r?(a=n,n=0):a=kt(a),t=st(t),ud(t,n,a)}function ig(t,n,a){if(a&&typeof a!="boolean"&&Ue(t,n,a)&&(n=a=r),a===r&&(typeof n=="boolean"?(a=n,n=r):typeof t=="boolean"&&(a=t,t=r)),t===r&&n===r?(t=0,n=1):(t=kt(t),n===r?(n=t,t=0):n=kt(n)),t>n){var o=t;t=n,n=o}if(a||t%1||n%1){var c=ro();return Oe(t+c*(n-t+Lu("1e-"+((c+"").length-1))),n)}return fa(t,n)}var ag=Tn(function(t,n,a){return n=n.toLowerCase(),t+(a?Ll(n):n)});function Ll(t){return Ua(he(t).toLowerCase())}function Nl(t){return t=he(t),t&&t.replace(ou,Ku).replace(Iu,"")}function sg(t,n,a){t=he(t),n=Qe(n);var o=t.length;a=a===r?o:cn(ae(a),0,o);var c=a;return a-=n.length,a>=0&&t.slice(a,c)==n}function og(t){return t=he(t),t&&Wc.test(t)?t.replace(fs,Xu):t}function lg(t){return t=he(t),t&&Qc.test(t)?t.replace(ki,"\\$&"):t}var cg=Tn(function(t,n,a){return t+(a?"-":"")+n.toLowerCase()}),ug=Tn(function(t,n,a){return t+(a?" ":"")+n.toLowerCase()}),fg=Uo("toLowerCase");function dg(t,n,a){t=he(t),n=ae(n);var o=n?An(t):0;if(!n||o>=n)return t;var c=(n-o)/2;return Kr(Lr(c),a)+t+Kr(Or(c),a)}function pg(t,n,a){t=he(t),n=ae(n);var o=n?An(t):0;return n&&o<n?t+Kr(n-o,a):t}function hg(t,n,a){t=he(t),n=ae(n);var o=n?An(t):0;return n&&o<n?Kr(n-o,a)+t:t}function mg(t,n,a){return a||n==null?n=0:n&&(n=+n),bf(he(t).replace(Di,""),n||0)}function gg(t,n,a){return(a?Ue(t,n,a):n===r)?n=1:n=ae(n),da(he(t),n)}function vg(){var t=arguments,n=he(t[0]);return t.length<3?n:n.replace(t[1],t[2])}var yg=Tn(function(t,n,a){return t+(a?"_":"")+n.toLowerCase()});function Cg(t,n,a){return a&&typeof a!="number"&&Ue(t,n,a)&&(n=a=r),a=a===r?Ee:a>>>0,a?(t=he(t),t&&(typeof n=="string"||n!=null&&!Oa(n))&&(n=Qe(n),!n&&_n(t))?Xt(ct(t),0,a):t.split(n,a)):[]}var _g=Tn(function(t,n,a){return t+(a?" ":"")+Ua(n)});function Ag(t,n,a){return t=he(t),a=a==null?0:cn(ae(a),0,t.length),n=Qe(n),t.slice(a,a+n.length)==n}function wg(t,n,a){var o=f.templateSettings;a&&Ue(t,n,a)&&(n=r),t=he(t),n=La({},n,o,jo);var c=La({},n.imports,o.imports,jo),d=Fe(c),h=Ki(c,d);je(d,function(Z){if(ps.test(Z))throw new re(A)});var g,_,O=0,L=n.interpolate||_r,V="__p += '",J=Yi((n.escape||_r).source+"|"+L.source+"|"+(L===ds?tu:_r).source+"|"+(n.evaluate||_r).source+"|$","g"),Y="//# sourceURL="+(pe.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fu+"]")+`
11
+ `;t.replace(J,function(Z,le,ue,Xe,qe,Ye){return ue||(ue=Xe),V+=t.slice(O,Ye).replace(lu,Yu),le&&(g=!0,V+=`' +
12
+ __e(`+le+`) +
13
+ '`),qe&&(_=!0,V+=`';
14
+ `+qe+`;
15
+ __p += '`),ue&&(V+=`' +
16
+ ((__t = (`+ue+`)) == null ? '' : __t) +
17
+ '`),O=Ye+Z.length,Z}),V+=`';
18
+ `;var te=pe.call(n,"variable")&&n.variable;if(!te)V=`with (obj) {
19
+ `+V+`
20
+ }
21
+ `;else if(ps.test(te))throw new re(m);V=(_?V.replace(Mc,""):V).replace(Uc,"$1").replace(qc,"$1;"),V="function("+(te||"obj")+`) {
22
+ `+(te?"":`obj || (obj = {});
23
+ `)+"var __t, __p = ''"+(g?", __e = _.escape":"")+(_?`, __j = Array.prototype.join;
24
+ function print() { __p += __j.call(arguments, '') }
25
+ `:`;
26
+ `)+V+`return __p
27
+ }`;var se=Ul(function(){return de(d,Y+"return "+V).apply(r,h)});if(se.source=V,Da(se))throw se;return se}function bg(t){return he(t).toLowerCase()}function Eg(t){return he(t).toUpperCase()}function Sg(t,n,a){if(t=he(t),t&&(a||n===r))return js(t);if(!t||!(n=Qe(n)))return t;var o=ct(t),c=ct(n),d=zs(o,c),h=Qs(o,c)+1;return Xt(o,d,h).join("")}function Ig(t,n,a){if(t=he(t),t&&(a||n===r))return t.slice(0,Xs(t)+1);if(!t||!(n=Qe(n)))return t;var o=ct(t),c=Qs(o,ct(n))+1;return Xt(o,0,c).join("")}function xg(t,n,a){if(t=he(t),t&&(a||n===r))return t.replace(Di,"");if(!t||!(n=Qe(n)))return t;var o=ct(t),c=zs(o,ct(n));return Xt(o,c).join("")}function Tg(t,n){var a=G,o=$;if(be(n)){var c="separator"in n?n.separator:c;a="length"in n?ae(n.length):a,o="omission"in n?Qe(n.omission):o}t=he(t);var d=t.length;if(_n(t)){var h=ct(t);d=h.length}if(a>=d)return t;var g=a-An(o);if(g<1)return o;var _=h?Xt(h,0,g).join(""):t.slice(0,g);if(c===r)return _+o;if(h&&(g+=_.length-g),Oa(c)){if(t.slice(g).search(c)){var O,L=_;for(c.global||(c=Yi(c.source,he(hs.exec(c))+"g")),c.lastIndex=0;O=c.exec(L);)var V=O.index;_=_.slice(0,V===r?g:V)}}else if(t.indexOf(Qe(c),g)!=g){var J=_.lastIndexOf(c);J>-1&&(_=_.slice(0,J))}return _+o}function Rg(t){return t=he(t),t&&Vc.test(t)?t.replace(us,af):t}var Bg=Tn(function(t,n,a){return t+(a?" ":"")+n.toUpperCase()}),Ua=Uo("toUpperCase");function Ml(t,n,a){return t=he(t),n=a?r:n,n===r?Zu(t)?lf(t):Gu(t):t.match(n)||[]}var Ul=oe(function(t,n){try{return Je(t,r,n)}catch(a){return Da(a)?a:new re(a)}}),Fg=Bt(function(t,n){return je(n,function(a){a=ft(a),yt(t,a,Pa(t[a],t))}),t});function Pg(t){var n=t==null?0:t.length,a=ee();return t=n?we(t,function(o){if(typeof o[1]!="function")throw new tt(l);return[a(o[0]),o[1]]}):[],oe(function(o){for(var c=-1;++c<n;){var d=t[c];if(Je(d[0],this,o))return Je(d[1],this,o)}})}function kg(t){return ad(rt(t,I))}function qa(t){return function(){return t}}function Dg(t,n){return t==null||t!==t?n:t}var Og=Vo(),Lg=Vo(!0);function Ge(t){return t}function Va(t){return vo(typeof t=="function"?t:rt(t,I))}function Ng(t){return Co(rt(t,I))}function Mg(t,n){return _o(t,rt(n,I))}var Ug=oe(function(t,n){return function(a){return er(a,t,n)}}),qg=oe(function(t,n){return function(a){return er(t,a,n)}});function Wa(t,n,a){var o=Fe(n),c=Wr(n,o);a==null&&!(be(n)&&(c.length||!o.length))&&(a=n,n=t,t=this,c=Wr(n,Fe(n)));var d=!(be(a)&&"chain"in a)||!!a.chain,h=Pt(t);return je(c,function(g){var _=n[g];t[g]=_,h&&(t.prototype[g]=function(){var O=this.__chain__;if(d||O){var L=t(this.__wrapped__),V=L.__actions__=Ve(this.__actions__);return V.push({func:_,args:arguments,thisArg:t}),L.__chain__=O,L}return _.apply(t,Gt([this.value()],arguments))})}),t}function Vg(){return ke._===this&&(ke._=hf),this}function Ha(){}function Wg(t){return t=ae(t),oe(function(n){return Ao(n,t)})}var Hg=Ca(we),Gg=Ca(Vs),Jg=Ca(Gi);function ql(t){return Ia(t)?Ji(ft(t)):wd(t)}function jg(t){return function(n){return t==null?r:un(t,n)}}var zg=Ho(),Qg=Ho(!0);function Ga(){return[]}function Ja(){return!1}function Kg(){return{}}function Xg(){return""}function Yg(){return!0}function $g(t,n){if(t=ae(t),t<1||t>ne)return[];var a=Ee,o=Oe(t,Ee);n=ee(n),t-=Ee;for(var c=Qi(o,n);++a<t;)n(a);return c}function Zg(t){return ie(t)?we(t,ft):Ke(t)?[t]:Ve(al(he(t)))}function ev(t){var n=++df;return he(t)+n}var tv=Qr(function(t,n){return t+n},0),nv=_a("ceil"),rv=Qr(function(t,n){return t/n},1),iv=_a("floor");function av(t){return t&&t.length?Vr(t,Ge,aa):r}function sv(t,n){return t&&t.length?Vr(t,ee(n,2),aa):r}function ov(t){return Gs(t,Ge)}function lv(t,n){return Gs(t,ee(n,2))}function cv(t){return t&&t.length?Vr(t,Ge,ca):r}function uv(t,n){return t&&t.length?Vr(t,ee(n,2),ca):r}var fv=Qr(function(t,n){return t*n},1),dv=_a("round"),pv=Qr(function(t,n){return t-n},0);function hv(t){return t&&t.length?zi(t,Ge):0}function mv(t,n){return t&&t.length?zi(t,ee(n,2)):0}return f.after=Mh,f.ary=gl,f.assign=Sm,f.assignIn=Bl,f.assignInWith=Fl,f.assignWith=La,f.at=Im,f.before=vl,f.bind=Pa,f.bindAll=Fg,f.bindKey=yl,f.castArray=Xh,f.chain=pl,f.chunk=ap,f.compact=sp,f.concat=op,f.cond=Pg,f.conforms=kg,f.constant=qa,f.countBy=mh,f.create=xm,f.curry=Cl,f.curryRight=_l,f.debounce=Al,f.defaults=Tm,f.defaultsDeep=Rm,f.defer=Uh,f.delay=qh,f.difference=lp,f.differenceBy=cp,f.differenceWith=up,f.drop=fp,f.dropRight=dp,f.dropRightWhile=pp,f.dropWhile=hp,f.fill=mp,f.filter=vh,f.flatMap=_h,f.flatMapDeep=Ah,f.flatMapDepth=wh,f.flatten=cl,f.flattenDeep=gp,f.flattenDepth=vp,f.flip=Vh,f.flow=Og,f.flowRight=Lg,f.fromPairs=yp,f.functions=Lm,f.functionsIn=Nm,f.groupBy=bh,f.initial=_p,f.intersection=Ap,f.intersectionBy=wp,f.intersectionWith=bp,f.invert=Um,f.invertBy=qm,f.invokeMap=Sh,f.iteratee=Va,f.keyBy=Ih,f.keys=Fe,f.keysIn=He,f.map=ti,f.mapKeys=Wm,f.mapValues=Hm,f.matches=Ng,f.matchesProperty=Mg,f.memoize=ri,f.merge=Gm,f.mergeWith=Pl,f.method=Ug,f.methodOf=qg,f.mixin=Wa,f.negate=ii,f.nthArg=Wg,f.omit=Jm,f.omitBy=jm,f.once=Wh,f.orderBy=xh,f.over=Hg,f.overArgs=Hh,f.overEvery=Gg,f.overSome=Jg,f.partial=ka,f.partialRight=wl,f.partition=Th,f.pick=zm,f.pickBy=kl,f.property=ql,f.propertyOf=jg,f.pull=xp,f.pullAll=fl,f.pullAllBy=Tp,f.pullAllWith=Rp,f.pullAt=Bp,f.range=zg,f.rangeRight=Qg,f.rearg=Gh,f.reject=Fh,f.remove=Fp,f.rest=Jh,f.reverse=Ba,f.sampleSize=kh,f.set=Km,f.setWith=Xm,f.shuffle=Dh,f.slice=Pp,f.sortBy=Nh,f.sortedUniq=Up,f.sortedUniqBy=qp,f.split=Cg,f.spread=jh,f.tail=Vp,f.take=Wp,f.takeRight=Hp,f.takeRightWhile=Gp,f.takeWhile=Jp,f.tap=sh,f.throttle=zh,f.thru=ei,f.toArray=xl,f.toPairs=Dl,f.toPairsIn=Ol,f.toPath=Zg,f.toPlainObject=Rl,f.transform=Ym,f.unary=Qh,f.union=jp,f.unionBy=zp,f.unionWith=Qp,f.uniq=Kp,f.uniqBy=Xp,f.uniqWith=Yp,f.unset=$m,f.unzip=Fa,f.unzipWith=dl,f.update=Zm,f.updateWith=eg,f.values=Fn,f.valuesIn=tg,f.without=$p,f.words=Ml,f.wrap=Kh,f.xor=Zp,f.xorBy=eh,f.xorWith=th,f.zip=nh,f.zipObject=rh,f.zipObjectDeep=ih,f.zipWith=ah,f.entries=Dl,f.entriesIn=Ol,f.extend=Bl,f.extendWith=Fl,Wa(f,f),f.add=tv,f.attempt=Ul,f.camelCase=ag,f.capitalize=Ll,f.ceil=nv,f.clamp=ng,f.clone=Yh,f.cloneDeep=Zh,f.cloneDeepWith=em,f.cloneWith=$h,f.conformsTo=tm,f.deburr=Nl,f.defaultTo=Dg,f.divide=rv,f.endsWith=sg,f.eq=dt,f.escape=og,f.escapeRegExp=lg,f.every=gh,f.find=yh,f.findIndex=ol,f.findKey=Bm,f.findLast=Ch,f.findLastIndex=ll,f.findLastKey=Fm,f.floor=iv,f.forEach=hl,f.forEachRight=ml,f.forIn=Pm,f.forInRight=km,f.forOwn=Dm,f.forOwnRight=Om,f.get=Na,f.gt=nm,f.gte=rm,f.has=Mm,f.hasIn=Ma,f.head=ul,f.identity=Ge,f.includes=Eh,f.indexOf=Cp,f.inRange=rg,f.invoke=Vm,f.isArguments=pn,f.isArray=ie,f.isArrayBuffer=im,f.isArrayLike=We,f.isArrayLikeObject=Ie,f.isBoolean=am,f.isBuffer=Yt,f.isDate=sm,f.isElement=om,f.isEmpty=lm,f.isEqual=cm,f.isEqualWith=um,f.isError=Da,f.isFinite=fm,f.isFunction=Pt,f.isInteger=bl,f.isLength=ai,f.isMap=El,f.isMatch=dm,f.isMatchWith=pm,f.isNaN=hm,f.isNative=mm,f.isNil=vm,f.isNull=gm,f.isNumber=Sl,f.isObject=be,f.isObjectLike=Se,f.isPlainObject=sr,f.isRegExp=Oa,f.isSafeInteger=ym,f.isSet=Il,f.isString=si,f.isSymbol=Ke,f.isTypedArray=Bn,f.isUndefined=Cm,f.isWeakMap=_m,f.isWeakSet=Am,f.join=Ep,f.kebabCase=cg,f.last=at,f.lastIndexOf=Sp,f.lowerCase=ug,f.lowerFirst=fg,f.lt=wm,f.lte=bm,f.max=av,f.maxBy=sv,f.mean=ov,f.meanBy=lv,f.min=cv,f.minBy=uv,f.stubArray=Ga,f.stubFalse=Ja,f.stubObject=Kg,f.stubString=Xg,f.stubTrue=Yg,f.multiply=fv,f.nth=Ip,f.noConflict=Vg,f.noop=Ha,f.now=ni,f.pad=dg,f.padEnd=pg,f.padStart=hg,f.parseInt=mg,f.random=ig,f.reduce=Rh,f.reduceRight=Bh,f.repeat=gg,f.replace=vg,f.result=Qm,f.round=dv,f.runInContext=y,f.sample=Ph,f.size=Oh,f.snakeCase=yg,f.some=Lh,f.sortedIndex=kp,f.sortedIndexBy=Dp,f.sortedIndexOf=Op,f.sortedLastIndex=Lp,f.sortedLastIndexBy=Np,f.sortedLastIndexOf=Mp,f.startCase=_g,f.startsWith=Ag,f.subtract=pv,f.sum=hv,f.sumBy=mv,f.template=wg,f.times=$g,f.toFinite=kt,f.toInteger=ae,f.toLength=Tl,f.toLower=bg,f.toNumber=st,f.toSafeInteger=Em,f.toString=he,f.toUpper=Eg,f.trim=Sg,f.trimEnd=Ig,f.trimStart=xg,f.truncate=Tg,f.unescape=Rg,f.uniqueId=ev,f.upperCase=Bg,f.upperFirst=Ua,f.each=hl,f.eachRight=ml,f.first=ul,Wa(f,(function(){var t={};return Ct(f,function(n,a){pe.call(f.prototype,a)||(t[a]=n)}),t})(),{chain:!1}),f.VERSION=s,je(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){f[t].placeholder=f}),je(["drop","take"],function(t,n){ce.prototype[t]=function(a){a=a===r?1:Be(ae(a),0);var o=this.__filtered__&&!n?new ce(this):this.clone();return o.__filtered__?o.__takeCount__=Oe(a,o.__takeCount__):o.__views__.push({size:Oe(a,Ee),type:t+(o.__dir__<0?"Right":"")}),o},ce.prototype[t+"Right"]=function(a){return this.reverse()[t](a).reverse()}}),je(["filter","map","takeWhile"],function(t,n){var a=n+1,o=a==Te||a==X;ce.prototype[t]=function(c){var d=this.clone();return d.__iteratees__.push({iteratee:ee(c,3),type:a}),d.__filtered__=d.__filtered__||o,d}}),je(["head","last"],function(t,n){var a="take"+(n?"Right":"");ce.prototype[t]=function(){return this[a](1).value()[0]}}),je(["initial","tail"],function(t,n){var a="drop"+(n?"":"Right");ce.prototype[t]=function(){return this.__filtered__?new ce(this):this[a](1)}}),ce.prototype.compact=function(){return this.filter(Ge)},ce.prototype.find=function(t){return this.filter(t).head()},ce.prototype.findLast=function(t){return this.reverse().find(t)},ce.prototype.invokeMap=oe(function(t,n){return typeof t=="function"?new ce(this):this.map(function(a){return er(a,t,n)})}),ce.prototype.reject=function(t){return this.filter(ii(ee(t)))},ce.prototype.slice=function(t,n){t=ae(t);var a=this;return a.__filtered__&&(t>0||n<0)?new ce(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),n!==r&&(n=ae(n),a=n<0?a.dropRight(-n):a.take(n-t)),a)},ce.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ce.prototype.toArray=function(){return this.take(Ee)},Ct(ce.prototype,function(t,n){var a=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),c=f[o?"take"+(n=="last"?"Right":""):n],d=o||/^find/.test(n);c&&(f.prototype[n]=function(){var h=this.__wrapped__,g=o?[1]:arguments,_=h instanceof ce,O=g[0],L=_||ie(h),V=function(le){var ue=c.apply(f,Gt([le],g));return o&&J?ue[0]:ue};L&&a&&typeof O=="function"&&O.length!=1&&(_=L=!1);var J=this.__chain__,Y=!!this.__actions__.length,te=d&&!J,se=_&&!Y;if(!d&&L){h=se?h:new ce(this);var Z=t.apply(h,g);return Z.__actions__.push({func:ei,args:[V],thisArg:r}),new nt(Z,J)}return te&&se?t.apply(this,g):(Z=this.thru(V),te?o?Z.value()[0]:Z.value():Z)})}),je(["pop","push","shift","sort","splice","unshift"],function(t){var n=Ir[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",o=/^(?:pop|shift)$/.test(t);f.prototype[t]=function(){var c=arguments;if(o&&!this.__chain__){var d=this.value();return n.apply(ie(d)?d:[],c)}return this[a](function(h){return n.apply(ie(h)?h:[],c)})}}),Ct(ce.prototype,function(t,n){var a=f[n];if(a){var o=a.name+"";pe.call(Sn,o)||(Sn[o]=[]),Sn[o].push({name:n,func:a})}}),Sn[zr(r,N).name]=[{name:"wrapper",func:r}],ce.prototype.clone=Bf,ce.prototype.reverse=Ff,ce.prototype.value=Pf,f.prototype.at=oh,f.prototype.chain=lh,f.prototype.commit=ch,f.prototype.next=uh,f.prototype.plant=dh,f.prototype.reverse=ph,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=hh,f.prototype.first=f.prototype.head,zn&&(f.prototype[zn]=fh),f}),wn=cf();an?((an.exports=wn)._=wn,qi._=wn):ke._=wn}).call(xy)})(cr,cr.exports)),cr.exports}var Ry=Ty();const By={name:"ChineseCompanySearch",components:{ElSelect:U.Select,ElOption:U.Option,ElInput:U.Input},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:["input","update:useKq","update:kqCode","update:kqInfo","change"],data(){return{loading:!1,options:[],isDisabled:!1}},computed:{isEn(){return b.getIsEn()},companyNameValue:{get(){return this.companyName},set(i){this.$emit("input",i)}}},created(){this.fetchOptionsDebounced=Ry.debounce(i=>{var r;console.log("🍉 ~ index.vue:119 ~ this.city:",this.city);const e={current:1,size:50,compName:i,cityName:((r=this.city)==null?void 0:r.nameCn)+"市"};b.getCompanyOptionApi(e).then(s=>{var u;this.options=((u=s.data.data.records)==null?void 0:u.map(p=>({value:p.nameCn,code:p.kqId,...p})))||[]}).catch(s=>{console.error("获取公司选项失败:",s),this.options=[]}).finally(()=>{this.loading=!1})},800)},watch:{countryId(){this.resetKq()}},beforeDestroy(){this.fetchOptionsDebounced.cancel()},methods:{handleRemoteSearch(i){i?(this.loading=!0,this.fetchOptionsDebounced(i)):this.options=[]},handleSelectChange(i){const e=this.options.find(r=>r.value===i);e?(this.$emit("update:useKq",!0),this.$emit("update:kqCode",e.code),this.$emit("update:kqInfo",e)):(this.$emit("update:useKq",!1),this.$emit("update:kqCode",""),this.$emit("update:kqInfo",{})),this.$emit("change",e)},handleChange(i){this.$emit("update:useKq",!1),this.$emit("update:kqCode",""),this.$emit("change",i)},resetKq(){this.$emit("input",""),this.$emit("update:useKq",!1),this.$emit("update:kqCode",""),this.$emit("update:kqInfo",{}),this.options=[]}}};var Fy=function(){var e=this,r=e._self._c;return r("div",{staticClass:"global-company-input"},[[1].includes(Number(e.countryId))?r("ElSelect",{staticStyle:{width:"100%"},attrs:{filterable:"",remote:"","reserve-keyword":"",clearable:"","allow-create":e.allowCreate,"default-first-option":e.defaultFirstOption,"remote-method":e.handleRemoteSearch,loading:e.loading,disabled:e.isDisabled||e.disabled,placeholder:e.isEn?"Company Name in Chinese":"请输入您的公司中文名称","popper-class":"company-search dialog-join-us"},on:{change:e.handleSelectChange},model:{value:e.companyNameValue,callback:function(s){e.companyNameValue=s},expression:"companyNameValue"}},[r("template",{slot:"prefix"},[e._t("prefix")],2),e._l(e.options,function(s){return r("ElOption",{key:s.code,attrs:{label:s.value,value:s.value}},[r("div",{staticClass:"company-option-item"},[r("span",[e._v(e._s(s.value))])])])})],2):r("ElInput",{staticStyle:{width:"100%"},attrs:{disabled:e.isDisabled||e.disabled,placeholder:e.isEn?"Company name in English":"请输入您的公司英文名称",maxlength:"200"},on:{change:e.handleChange},model:{value:e.companyNameValue,callback:function(s){e.companyNameValue=s},expression:"companyNameValue"}},[r("template",{slot:"prepend"},[e._t("prefix")],2)],2)],1)},Py=[],ky=me(By,Fy,Py,!1,null,"d1108b76");const _i=ky.exports,Dy=Object.freeze(Object.defineProperty({__proto__:null,default:_i},Symbol.toStringTag,{value:"Module"}));var Oy=typeof global=="object"&&global&&global.Object===Object&&global,Ly=typeof self=="object"&&self&&self.Object===Object&&self,vc=Oy||Ly||Function("return this")(),di=vc.Symbol,yc=Object.prototype,Ny=yc.hasOwnProperty,My=yc.toString,or=di?di.toStringTag:void 0;function Uy(i){var e=Ny.call(i,or),r=i[or];try{i[or]=void 0;var s=!0}catch{}var u=My.call(i);return s&&(e?i[or]=r:delete i[or]),u}var qy=Object.prototype,Vy=qy.toString;function Wy(i){return Vy.call(i)}var Hy="[object Null]",Gy="[object Undefined]",Yl=di?di.toStringTag:void 0;function Jy(i){return i==null?i===void 0?Gy:Hy:Yl&&Yl in Object(i)?Uy(i):Wy(i)}function jy(i){return i!=null&&typeof i=="object"}var zy="[object Symbol]";function Qy(i){return typeof i=="symbol"||jy(i)&&Jy(i)==zy}var Ky=/\s/;function Xy(i){for(var e=i.length;e--&&Ky.test(i.charAt(e)););return e}var Yy=/^\s+/;function $y(i){return i&&i.slice(0,Xy(i)+1).replace(Yy,"")}function es(i){var e=typeof i;return i!=null&&(e=="object"||e=="function")}var $l=NaN,Zy=/^[-+]0x[0-9a-f]+$/i,e0=/^0b[01]+$/i,t0=/^0o[0-7]+$/i,n0=parseInt;function Zl(i){if(typeof i=="number")return i;if(Qy(i))return $l;if(es(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=es(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=$y(i);var r=e0.test(i);return r||t0.test(i)?n0(i.slice(2),r?2:8):Zy.test(i)?$l:+i}var Ka=function(){return vc.Date.now()},r0="Expected a function",i0=Math.max,a0=Math.min;function s0(i,e,r){var s,u,p,l,m,A,v=0,x=!1,T=!1,I=!0;if(typeof i!="function")throw new TypeError(r0);e=Zl(e)||0,es(r)&&(x=!0,T="maxWait"in r,p=T?i0(Zl(r.maxWait)||0,e):p,I="trailing"in r?!1:I);function B(E){var q=s,F=u;return s=u=void 0,v=E,l=i.apply(F,q),l}function D(E){return v=E,m=setTimeout(S,e),x?B(E):l}function W(E){var q=E-A,F=E-v,w=e-q;return T?a0(w,p-F):w}function k(E){var q=E-A,F=E-v;return A===void 0||q>=e||q<0||T&&F>=p}function S(){var E=Ka();if(k(E))return N(E);m=setTimeout(S,W(E))}function N(E){return m=void 0,I&&s?B(E):(s=u=void 0,l)}function H(){m!==void 0&&clearTimeout(m),v=0,s=A=u=m=void 0}function Q(){return m===void 0?l:N(Ka())}function z(){var E=Ka(),q=k(E);if(s=arguments,u=this,A=E,q){if(m===void 0)return D(A);if(T)return clearTimeout(m),m=setTimeout(S,e),B(A)}return m===void 0&&(m=setTimeout(S,e)),l}return z.cancel=H,z.flush=Q,z}const o0={name:"GoogleInput",components:{ElInput:U.Input},inheritAttrs:!1,props:{placeholder:{type:String,default:""},value:{type:[String,Number],default:""}},emits:["input","blur","focus"],data(){return{isFocus:!1,autofillTimer:null}},computed:{isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus||this.value!==null&&this.value!==""}},mounted(){window.navigator.userAgent.indexOf("Chrome")>-1&&this.checkAutofill(0)},beforeDestroy(){this.clearAutofillTimer()},methods:{focusInput(){var i,e;(e=(i=this.$refs.googleInput)==null?void 0:i.focus)==null||e.call(i)},clearAutofillTimer(){this.autofillTimer&&(clearTimeout(this.autofillTimer),this.autofillTimer=null)},checkAutofill(i){var e,r;try{const s=(r=(e=this.$refs.googleInput)==null?void 0:e.$el)==null?void 0:r.querySelector("input");if(!s)return;if(window.getComputedStyle(s).getPropertyValue("background-color")==="rgb(232, 240, 254)"){this.isFocus=!0;return}i<20&&(this.autofillTimer=setTimeout(()=>{this.checkAutofill(i+1)},100))}catch(s){console.error("Autofill detection error:",s)}},handleInput(i){this.$emit("input",i)},localBlur(i){this.isFocus=!1,this.$emit("blur",i)},localFocus(i){this.isFocus=!0,this.$emit("focus",i)}}};var l0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"google-input",class:{"is-focus":e.shouldFloat,"is-have-prepend":e.isHavePrepend}},[r("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{type:"text",name:"fakeUsername",autocomplete:"on"}}),r("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{type:"password",name:"fakePassword",autocomplete:"new-password"}}),r("div",{staticClass:"google-input-wrap"},[e.isHavePrepend?r("div",{staticClass:"google-input-wrap-prepend"},[e._t("prefix")],2):e._e(),r("div",{staticClass:"google-input-wrap-input"},[r("el-input",e._g(e._b({ref:"googleInput",attrs:{value:e.value},scopedSlots:e._u([{key:"suffix",fn:function(){return[e._t("suffix")]},proxy:!0}],null,!0)},"el-input",e.$attrs,!1),{input:e.handleInput,blur:e.localBlur,focus:e.localFocus})),r("p",{staticClass:"google-input-wrap-input-placeholder",on:{click:e.focusInput}},[e._v(" "+e._s(e.placeholder)+" ")])],1)])])},c0=[],u0=me(o0,l0,c0,!1,null,"10ef665c");const Vt=u0.exports,f0=Object.freeze(Object.defineProperty({__proto__:null,default:Vt},Symbol.toStringTag,{value:"Module"})),d0={name:"JcFloatInput",components:{ElInput:U.Input},inheritAttrs:!1,props:{placeholder:{type:String,default:""},label:{type:String,default:""},value:{type:[String,Number],default:""}},emits:["input","blur","focus"],data(){return{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)},beforeDestroy(){this.clearAutofillTimer()},methods:{focusInput(){var i,e;(e=(i=this.$refs.googleInput)==null?void 0:i.focus)==null||e.call(i)},clearAutofillTimer(){this.autofillTimer&&(clearTimeout(this.autofillTimer),this.autofillTimer=null)},checkAutofill(i){var e,r;try{const s=(r=(e=this.$refs.googleInput)==null?void 0:e.$el)==null?void 0:r.querySelector("input");if(!s)return;if(window.getComputedStyle(s).getPropertyValue("background-color")==="rgb(232, 240, 254)"){this.isFocus=!0;return}i<20&&(this.autofillTimer=setTimeout(()=>{this.checkAutofill(i+1)},100))}catch(s){console.error("Autofill detection error:",s)}},handleInput(i){this.$emit("input",i)},localBlur(i){this.isFocus=!1,this.$emit("blur",i)},localFocus(i){this.isFocus=!0,this.$emit("focus",i)}}};var p0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"google-input",class:{"is-focus":e.shouldFloat,"is-have-prepend":e.isHavePrepend}},[r("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{type:"text",name:"fakeUsername",autocomplete:"on"}}),r("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{type:"password",name:"fakePassword",autocomplete:"new-password"}}),r("div",{staticClass:"google-input-wrap"},[e.isHavePrepend?r("div",{staticClass:"google-input-wrap-prepend"},[e._t("prefix")],2):e._e(),r("div",{staticClass:"google-input-wrap-input"},[r("el-input",e._g(e._b({ref:"googleInput",attrs:{value:e.value,placeholder:e.placeholder},scopedSlots:e._u([{key:"suffix",fn:function(){return[e._t("suffix")]},proxy:!0}],null,!0)},"el-input",e.$attrs,!1),{input:e.handleInput,blur:e.localBlur,focus:e.localFocus})),r("p",{staticClass:"google-input-wrap-input-placeholder",on:{click:e.focusInput}},[e._v(" "+e._s(e.currentLabel)+" ")])],1)])])},h0=[],m0=me(d0,p0,h0,!1,null,"1637a5e6");const Un=m0.exports,g0=Object.freeze(Object.defineProperty({__proto__:null,default:Un},Symbol.toStringTag,{value:"Module"}));let v0="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",y0=(i=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(i|=0));for(;i--;)e+=v0[r[i]&63];return e};const C0={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(){return{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}},computed:{isEn(){var i,e,r,s,u,p;if(this.lang)return this.lang==="en"||this.lang==="en-US";try{if(typeof useCookie=="function"){const l=(i=useCookie("jc-language"))==null?void 0:i.value;if(l)return/^en(-US)?$/.test(l)}}catch{}if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}try{if(typeof useNuxtApp=="function"){const l=useNuxtApp(),m=((p=(u=(s=(r=(e=l==null?void 0:l.ssrContext)==null?void 0:e.event)==null?void 0:r.node)==null?void 0:s.req)==null?void 0:u.headers)==null?void 0:p.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(m)}}catch{}return!1},showBox(){return this.mode==="pop"?this.visible:!0},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(parseInt(this.setSize.imgWidth)*47/340)+"px",height:this.setSize.imgHeight,top:e+"px",backgroundSize:this.setSize.imgWidth+" "+this.setSize.imgHeight}}},watch:{visible(i){i&&this.$nextTick(()=>{this.handleResize(),this.refresh()})}},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-"+y0())},aesEncrypt(i,e="XwKsGlMcdPMEhR1B"){const r=ht.enc.Utf8.parse(e),s=ht.enc.Utf8.parse(i);return ht.AES.encrypt(s,r,{mode:ht.mode.ECB,padding:ht.pad.Pkcs7}).toString()},handleResize(){const i=window.innerWidth;let e=340;i<400?(e=i-60,this.currentBarHeight=44):(e=340,this.currentBarHeight=40),this.setSize.imgWidth=e+"px",this.setSize.imgHeight=e/2+"px",this.leftBarWidth=this.currentBarHeight+"px"},start(i){if(this.isEnd)return;const e=i||window.event,r=e.touches?e.touches[0].pageX:e.clientX,s=this.$refs.barArea;this.startLeft=Math.floor(r-s.getBoundingClientRect().left),this.startMoveTime=Date.now(),this.status=!0,this.transitionLeft="",this.transitionWidth="",this.moveBlockBackgroundColor="#1890ff",this.iconColor="#fff"},move(i){if(!this.status||this.isEnd)return;const e=i||window.event,r=e.touches?e.touches[0].pageX:e.clientX,s=this.$refs.barArea;let u=r-s.getBoundingClientRect().left-this.startLeft;const p=s.offsetWidth-this.currentBarHeight;u<=0&&(u=0),u>=p&&(u=p),this.moveBlockLeft=u+"px",this.leftBarWidth=u+this.currentBarHeight+"px",e.cancelable&&e.preventDefault()},end(){if(!this.status||this.isEnd)return;this.status=!1,this.endMoveTime=Date.now();let i=parseInt(this.moveBlockLeft.replace("px",""));i=i*310/parseInt(this.setSize.imgWidth);const e={pointJson:this.secretKey?this.aesEncrypt(JSON.stringify({x:i,y:5}),this.secretKey):JSON.stringify({x:i,y:5}),uuid:this.backToken};b.slideCheckApi(e).then(r=>{r.data.code===0?this.handleSuccess(r):this.handleError()}).catch(()=>this.handleError())},handleSuccess(i){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:i.data.data.uuid,code:i.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,b.slideGetApi({clientUid:localStorage.getItem("slider"),ts:Date.now()}).then(i=>{i.data.code===0?(this.backImgBase=i.data.data.originalImageBase64,this.blockBackImgBase=i.data.data.jigsawImageBase64,this.backToken=i.data.data.uuid,this.secretKey=i.data.data.secretKey):this.loading=!1}).catch(()=>{this.loading=!1})},closeBox(){this.$emit("update:visible",!1)}}};var _0=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"show",rawName:"v-show",value:e.showBox,expression:"showBox"}],class:e.mode==="pop"?"captcha-mask":"captcha-relative-wrapper"},[r("div",{class:e.mode==="pop"?"auth-captcha-box":"",style:{width:e.mode==="pop"?e.setSize.imgWidth+"40px":"100%","max-width":"100%"}},[e.mode==="pop"?r("div",{staticClass:"auth-captcha-box-top"},[r("span",{staticClass:"auth-captcha-title"},[e._v(e._s(e.isEn?"please finish the security verification":"请完成安全验证"))]),r("span",{staticClass:"auth-captcha-box-close",on:{click:e.closeBox}},[e._v(" × ")])]):e._e(),r("div",{staticClass:"auth-captcha-box-bottom",style:{padding:e.mode==="pop"?"15px":"0"}},[r("div",{staticClass:"captcha-wrapper",staticStyle:{position:"relative"}},[e.captchaType==="blockPuzzle"?r("div",{staticClass:"auth-captcha-img-out",style:{height:parseInt(e.setSize.imgHeight)+e.vSpace+"px"}},[r("div",{staticClass:"auth-captcha-img-panel",style:{width:e.setSize.imgWidth,height:e.setSize.imgHeight}},[r("img",{staticClass:"main-img",attrs:{src:e.backImgBase?"data:image/png;base64,"+e.backImgBase:e.defaultImg,alt:"captcha"},on:{load:e.handleImageLoaded}}),e.loading?r("div",{staticClass:"auth-captcha-loading"},[r("div",{staticClass:"loading-icon"}),r("p",{staticClass:"loading-text"},[e._v(" "+e._s(e.isEn?"Loading...":"加载中...")+" ")])]):e._e(),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showRefresh,expression:"showRefresh"}],staticClass:"auth-captcha-refresh",on:{click:e.refresh}},[r("svg",{staticClass:"icon",attrs:{t:"1767753956986",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2523",width:"16",height:"16",fill:"#fff"}},[r("path",{attrs:{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"}})])]),r("transition",{attrs:{name:"tips-fade"}},[e.tipWords?r("div",{class:["auth-captcha-tips",e.passFlag?"suc-bg":"err-bg"]},[e._v(" "+e._s(e.tipWords)+" ")]):e._e()])],1)]):e._e(),r("div",{ref:"barArea",staticClass:"auth-captcha-bar-area",style:{width:e.setSize.imgWidth,height:e.currentBarHeight+"px",lineHeight:e.currentBarHeight+"px"}},[r("span",{staticClass:"auth-captcha-msg"},[e._v(e._s(e.barExplain))]),r("div",{staticClass:"auth-captcha-left-bar",style:{width:e.leftBarWidth,height:e.currentBarHeight+"px",borderColor:e.leftBarBorderColor,transition:e.transitionWidth}},[r("span",{staticClass:"auth-captcha-msg",domProps:{textContent:e._s(e.finishText)}}),r("div",{staticClass:"auth-captcha-move-block",style:{width:e.currentBarHeight+"px",height:e.currentBarHeight-2+"px",backgroundColor:e.moveBlockBackgroundColor,left:e.moveBlockLeft,transition:e.transitionLeft},on:{mousedown:e.start,touchstart:function(s){return s.preventDefault(),e.start.apply(null,arguments)}}},[r("i",{class:["auth-captcha-icon iconfont",e.iconClass],style:{color:e.iconColor}}),e.captchaType==="blockPuzzle"?r("div",{staticClass:"auth-captcha-sub-block",style:e.subBlockStyle},[e.blockBackImgBase?r("img",{staticClass:"sub-img",attrs:{src:"data:image/png;base64,"+e.blockBackImgBase}}):e._e()]):e._e()])])])])])])])},A0=[],w0=me(C0,_0,A0,!1,null,"ce1b7e38");const gn=w0.exports,b0=Object.freeze(Object.defineProperty({__proto__:null,default:gn},Symbol.toStringTag,{value:"Module"})),E0={name:"CodeInput",components:{GoogleInput:Vt,JcFloatInput:Un,JcVerifySlide:gn},props:{value: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:["input","send"],data(){return{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:s0(function(){!this.ready||this.isCounting||this.disabled||(this.captchaVisible=!0)},500,{leading:!0,trailing:!1}),handleCaptchaSuccess(i){this.$emit("send",{captchaData:i,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}},beforeDestroy(){var i,e;this.stopTimer(),(e=(i=this.handleSend).cancel)==null||e.call(i)}};var S0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"code-input-container"},[r(e.showIcon?"JcFloatInput":"GoogleInput",{tag:"component",staticClass:"verify-code-input",attrs:{value:e.value,label:e.placeholder,placeholder:e.placeholder,autocomplete:"off",maxlength:"6"},on:{input:function(s){return e.$emit("input",s)}},scopedSlots:e._u([e.showIcon?{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}:null,{key:"suffix",fn:function(){return[r("a",{staticClass:"send-code-btn",class:[e.statusClass,{"is-disabled":e.disabled||e.isCounting||!e.ready}],on:{click:e.handleSend}},[r("span",{class:e.isCounting||!e.ready?"disabled-color":"obtain-color"},[e._v(" "+e._s(e.btnText)+" ")])])]},proxy:!0}],null,!0)}),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},I0=[],x0=me(E0,S0,I0,!1,null,"c6dda8f5");const nn=x0.exports,T0=Object.freeze(Object.defineProperty({__proto__:null,default:nn},Symbol.toStringTag,{value:"Module"})),R0={components:{[U.Dialog.name]:U.Dialog,[U.Form.name]:U.Form,[U.FormItem.name]:U.FormItem,[U.Input.name]:U.Input,[U.Button.name]:U.Button,[U.Checkbox.name]:U.Checkbox,[U.Row.name]:U.Row,[U.Col.name]:U.Col},data(){return{isVisible:!1,formData:{city:"",company:"",email:"",phone:"",name:"",agreement:!1},formRules:{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:(i,e,r)=>{e?r():r(new Error("请同意隐私政策"))},trigger:"change"}]}}},mounted(){b.emitter.on(b.MODAL_ACTION.Open,this.handleOpen)},beforeDestroy(){b.emitter.off(b.MODAL_ACTION.Open,this.handleOpen)},methods:{handleOpen(){console.log("🍉 ~ GlobalModal.vue:150 ~ methods.handleOpen:",this.handleOpen),this.isVisible=!0},closeModal(){this.isVisible=!1,b.emitter.emit(b.MODAL_ACTION.Close),this.$refs.formRef.resetFields()},handleSubmit(){this.$refs.formRef.validate(i=>{i&&(b.emitter.emit(b.MODAL_ACTION.Submit,{...this.formData}),this.closeModal())})}}};var B0=function(){var e=this,r=e._self._c;return r("el-dialog",{attrs:{visible:e.isVisible,"before-close":e.closeModal,"show-close":!1,"close-on-click-modal":!0,width:"500px","custom-class":"global-modal-custom"},on:{"update:visible":function(s){e.isVisible=s}}},[r("div",{staticClass:"global-modal-header-custom",attrs:{slot:"title"},slot:"title"},[r("h2",[e._v("即刻链接全球货代")]),r("el-button",{staticClass:"close-button-custom",attrs:{type:"text"},on:{click:e.closeModal}},[r("span",{staticStyle:{"font-size":"2rem"}},[e._v("×")])])],1),r("div",{staticClass:"global-modal-body-custom"},[r("el-form",{ref:"formRef",attrs:{model:e.formData,rules:e.formRules,"label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"所在地(城市)",prop:"city"}},[r("el-input",{attrs:{placeholder:"请输入城市"},model:{value:e.formData.city,callback:function(s){e.$set(e.formData,"city",s)},expression:"formData.city"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"公司名称",prop:"company"}},[r("el-input",{attrs:{placeholder:"请输入公司名称"},model:{value:e.formData.company,callback:function(s){e.$set(e.formData,"company",s)},expression:"formData.company"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[r("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:e.formData.email,callback:function(s){e.$set(e.formData,"email",s)},expression:"formData.email"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"电话",prop:"phone"}},[r("el-input",{attrs:{placeholder:"请输入电话"},model:{value:e.formData.phone,callback:function(s){e.$set(e.formData,"phone",s)},expression:"formData.phone"}})],1)],1)],1),r("el-row",[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"姓名",prop:"name"}},[r("el-input",{attrs:{placeholder:"请输入您的全名"},model:{value:e.formData.name,callback:function(s){e.$set(e.formData,"name",s)},expression:"formData.name"}})],1)],1)],1),r("el-form-item",{staticClass:"agreement-item",attrs:{prop:"agreement"}},[r("el-checkbox",{model:{value:e.formData.agreement,callback:function(s){e.$set(e.formData,"agreement",s)},expression:"formData.agreement"}},[e._v("我同意")]),r("a",{staticClass:"privacy-link",attrs:{href:"#"}},[e._v("隐私政策")])],1)],1)],1),r("div",{staticClass:"global-modal-footer-custom",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{staticClass:"submit-button-custom",attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 加入会员 ")])],1)])},F0=[],P0=me(R0,B0,F0,!1,null,null);const Cc=P0.exports,k0=Object.freeze(Object.defineProperty({__proto__:null,default:Cc},Symbol.toStringTag,{value:"Module"})),D0=U.Select,O0=U.Option;function L0(i,e=300){let r=null;return(...s)=>{r&&clearTimeout(r),r=setTimeout(()=>{i(...s)},e)}}const N0=C.defineComponent({name:"JcCarrierSearch",components:{"el-select":D0,"el-option":O0},model:{prop:"value",event:"input"},props:{value:{type:[String,Number,Array],default:void 0},modelValue:{type:[String,Number,Array],default:void 0},lang:{type:String,default:""},type:{type:String,required:!0},lineType:{type:String,default:"shipping"},reportType:{type:String,default:"carrier"},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},showApplyData:{type:Boolean,default:!1},defaultOptions:{type:Array,default:()=>[]}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(i,{emit:e}){const r=C.ref(),s=C.computed(()=>i.modelValue!==void 0?i.modelValue:i.value),u=C.computed(()=>{var E,q,F,w,M,G;if(i.lang)return i.lang==="en"||i.lang==="en-US";try{if(typeof useCookie=="function"){const $=(E=useCookie("jc-language"))==null?void 0:E.value;if($)return/^en(-US)?$/.test($)}}catch{}if(typeof document!="undefined"){const $=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test($)}try{if(typeof useNuxtApp=="function"){const $=useNuxtApp(),ye=((G=(M=(w=(F=(q=$==null?void 0:$.ssrContext)==null?void 0:q.event)==null?void 0:F.node)==null?void 0:w.req)==null?void 0:M.headers)==null?void 0:G.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(ye)}}catch{}return!1}),p=C.computed(()=>i.placeholder?i.placeholder:{Carrier:u.value?"Search by carrier name or code":"请输入公司名称或代码",Line:u.value?"Search by line name":"请输入航线名称",Seaport:u.value?"Search by seaport name":"请输入港口名称"}[i.type]||(u.value?"Search...":"请输入关键字搜索")),l=C.computed({get:()=>s.value,set:E=>{e("input",E),e("update:modelValue",E),e("update:value",E)}}),m=C.computed(()=>{const E=s.value;return Array.isArray(E)?typeof E.find(F=>F!=null&&F!=="")=="string":typeof E=="string"}),A=E=>m.value?String(E):E,v=C.ref(!1),x=C.ref([]),T=50,I=C.ref(""),B=()=>{x.value=[...i.defaultOptions]};C.watch(()=>i.defaultOptions,()=>{!v.value&&!I.value&&(x.value=[...i.defaultOptions])},{immediate:!0,deep:!0});const D=L0(async E=>{try{const q={keyword:E,current:1,size:T};let F={};i.type==="Carrier"?F=await b.locationSearchV2.carrier.search(q,i.lineType):i.type==="Line"?F=await b.locationSearchV2.line.search(q,i.lineType):F=await b.locationSearchV2.searchByName({...q,displayInfo:[i.type]});const w=F.records||[];if(i.defaultOptions.length>0){const M=i.defaultOptions.filter(G=>!w.some($=>$.id===G.id));x.value=[...M,...w]}else x.value=w}catch(q){console.error("Search failed:",q)}finally{v.value=!1}},300),W=E=>{if(I.value=E,!E||!E.trim()){v.value=!1,B();return}v.value=!0,D(E)},k=E=>{E||(B(),v.value=!1,I.value="",r.value&&r.value.blur&&r.value.blur())},S=()=>{B(),I.value="",e("change",null,null),e("input",null),e("update:modelValue",null),e("update:value",null)},N=E=>{if(!E){e("change",E,null);return}let q;Array.isArray(E)?q=x.value.filter(F=>E.some(w=>String(w)===String(F.id))):q=x.value.find(F=>String(F.id)===String(E))||null,e("change",E,q)},H=()=>{I.value&&b.reportNewTypeDataApi({reportData:I.value,reportType:i.reportType.toLocaleLowerCase()}),e("apply",I.value),r.value&&r.value.blur&&r.value.blur()},Q=E=>{e("remove-tag",E)},z=async()=>{const E=s.value;if(E==null||E==="")return;const F=(Array.isArray(E)?E:[E]).filter(w=>!x.value.some(M=>String(M.id)===String(w)));if(F.length!==0)try{let w=[];if(i.type==="Carrier"){const M=await b.locationSearchV2.carrier.getByIds(F.map(G=>Number(G)).filter(G=>!Number.isNaN(G)),i.lineType);w=Array.isArray(M)?M:M.records||[]}else if(i.type==="Line"){const M=await b.locationSearchV2.line.getByIds(F.map(G=>Number(G)).filter(G=>!Number.isNaN(G)),i.lineType);w=Array.isArray(M)?M:M.records||[]}if(w.length>0){const M=w.filter(G=>!x.value.some($=>$.id===G.id));x.value.push(...M)}}catch(w){console.error("Init selected data failed:",w)}};return C.onMounted(()=>{z()}),C.watch(()=>s.value,(E,q)=>{JSON.stringify(E)!==JSON.stringify(q)&&typeof window!="undefined"&&z()}),{selectRef:r,innerValue:l,loading:v,options:x,currentPlaceholder:p,isEn:u,onRemoteMethod:W,handleVisibleChange:k,handleClear:S,handleChange:N,handleApply:H,handleRemoveTag:Q,ICON_MORE:Ci,showApplyData:i.showApplyData,normalizeOptionValue:A,multiple:i.multiple}}});var M0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("el-select",{ref:"selectRef",staticClass:"jc-w-full jc-carrier-search-comp",attrs:{multiple:e.multiple,filterable:"",remote:"","reserve-keyword":"",clearable:"","value-key":"id",placeholder:e.currentPlaceholder,"remote-method":e.onRemoteMethod,loading:e.loading,"popper-class":"jc-carrier-search-pop"},on:{change:e.handleChange,"visible-change":e.handleVisibleChange,clear:e.handleClear,focus:function(s){return e.$emit("focus")},blur:function(s){return e.$emit("blur")},"remove-tag":e.handleRemoveTag},model:{value:e.innerValue,callback:function(s){e.innerValue=s},expression:"innerValue"}},[e.$slots.prefix?r("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e._l(e.options,function(s){return r("el-option",{key:s.id,attrs:{label:e.isEn?s.displayEn||s.display:s.displayCn||s.display,value:e.normalizeOptionValue(s.id)}},[e._t("option",function(){return[r("div",{staticClass:"jc-flex jc-items-center jc-justify-between"},[r("span",[e._v(e._s(e.isEn?s.displayEn||s.display:s.displayCn||s.display))]),s.code?r("span",{staticClass:"jc-ml-2 jc-text-xs jc-text-gray-400"},[e._v(" "+e._s(s.code)+" ")]):e._e()])]},{item:s})],2)}),r("template",{slot:"empty"},[r("div",{staticClass:"jc-p-4 jc-text-sm jc-text-center jc-text-gray-500"},[e.loading?r("div",[e._v(e._s(e.isEn?"Searching...":"正在搜索中..."))]):r("div",{staticClass:"jc-flex jc-flex-wrap jc-justify-center jc-items-center"},[e.showApplyData?[r("p",[e._v(e._s(e.isEn?"No results found. ":"暂无结果,"))]),r("div",{staticClass:"jc-flex jc-justify-center jc-items-center jc-gap-1"},[r("span",{staticClass:"jc-font-medium jc-text-14 jc-text-orange jc-leading-5 jc-text-center jc-cursor-pointer jc-ml-1",on:{click:function(s){return s.stopPropagation(),e.handleApply.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Apply for data addition":"申请补充数据 "))]),r("img",{staticClass:"jc-mr-1 jc-size-4",attrs:{src:e.ICON_MORE,alt:""},on:{click:function(s){return s.stopPropagation(),e.handleApply.apply(null,arguments)}}})])]:[r("p",[e._v(e._s(e.isEn?"No results found.":"暂无结果"))])]],2)])])],2)},U0=[],q0=me(N0,M0,U0,!1,null,"c5c42dc6");const mr=q0.exports,V0=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),W0=C.defineComponent({name:"AirCarrierSearch",components:{JcCarrierSearch:mr},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:void 0},lang:{type:String,default:""},placeholder:{type:String,default:""},showApplyData:{type:Boolean,default:!1}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(i,{emit:e}){const r=C.computed({get:()=>i.modelValue!==void 0?i.modelValue:i.value,set:l=>{e("input",l),e("update:modelValue",l),e("update:value",l)}}),s=C.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}return!1}),u=C.computed(()=>i.placeholder?i.placeholder:s.value?"Please enter the carrier code or name (e.g., AAL)":"请输入航空公司代码或名称 (如: AAL)");return{carrierId:r,currentPlaceholder:u,onCarrierChange:l=>{e("change",l)},lang:i.lang,showApplyData:i.showApplyData}}});var H0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("JcCarrierSearch",{staticClass:"jc-air-carrier-search",attrs:{type:"Carrier","line-type":"air","report-type":"air_carrier",placeholder:e.currentPlaceholder,lang:e.lang,"show-apply-data":e.showApplyData},on:{change:e.onCarrierChange,apply:function(s){return e.$emit("apply",e.carrierId)},focus:function(s){return e.$emit("focus")},blur:function(s){return e.$emit("blur")},"remove-tag":s=>e.$emit("remove-tag",s)},scopedSlots:e._u([e.$scopedSlots.option?{key:"option",fn:function(s){return[e._t("option",null,null,s)]}}:null],null,!0),model:{value:e.carrierId,callback:function(s){e.carrierId=s},expression:"carrierId"}},[e.$slots.prefix?r("template",{slot:"prefix"},[e._t("prefix")],2):e._e()],2)},G0=[],J0=me(W0,H0,G0,!1,null,"315fec7f");const j0=J0.exports,z0=Object.freeze(Object.defineProperty({__proto__:null,default:j0},Symbol.toStringTag,{value:"Module"})),Q0=C.defineComponent({name:"AirLineSearch",components:{JcCarrierSearch:mr},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:void 0},lang:{type:String,default:""},placeholder:{type:String,default:""},showApplyData:{type:Boolean,default:!1}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(i,{emit:e}){const r=C.computed({get:()=>i.modelValue!==void 0?i.modelValue:i.value,set:l=>{e("input",l),e("update:modelValue",l),e("update:value",l)}}),s=C.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}return!1}),u=C.computed(()=>i.placeholder?i.placeholder:s.value?"Please enter the line name":"请输入航线名称");return{carrierId:r,currentPlaceholder:u,onCarrierChange:l=>{e("change",l)},lang:i.lang,showApplyData:i.showApplyData}}});var K0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("JcCarrierSearch",{staticClass:"jc-air-line-search",attrs:{type:"Line","line-type":"air","report-type":"air_line",placeholder:e.currentPlaceholder,lang:e.lang,"show-apply-data":e.showApplyData},on:{change:e.onCarrierChange,apply:function(s){return e.$emit("apply",e.carrierId)},focus:function(s){return e.$emit("focus")},blur:function(s){return e.$emit("blur")},"remove-tag":s=>e.$emit("remove-tag",s)},scopedSlots:e._u([e.$scopedSlots.option?{key:"option",fn:function(s){return[e._t("option",null,null,s)]}}:null],null,!0),model:{value:e.carrierId,callback:function(s){e.carrierId=s},expression:"carrierId"}},[e.$slots.prefix?r("template",{slot:"prefix"},[e._t("prefix")],2):e._e()],2)},X0=[],Y0=me(Q0,K0,X0,!1,null,"ec3bece0");const $0=Y0.exports,Z0=Object.freeze(Object.defineProperty({__proto__:null,default:$0},Symbol.toStringTag,{value:"Module"})),eC=C.defineComponent({name:"SeaCarrierSearch",components:{JcCarrierSearch:mr},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:void 0},lang:{type:String,default:""},placeholder:{type:String,default:""},showApplyData:{type:Boolean,default:!1}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(i,{emit:e}){const r=C.computed({get:()=>i.modelValue!==void 0?i.modelValue:i.value,set:l=>{e("input",l),e("update:modelValue",l),e("update:value",l)}}),s=C.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}return!1}),u=C.computed(()=>i.placeholder?i.placeholder:s.value?"Please enter the carrier code or name (e.g., AAL)":"请输入船司代码或名称 (如: MSK)");return{carrierId:r,currentPlaceholder:u,onCarrierChange:l=>{e("change",l)},lang:i.lang,showApplyData:i.showApplyData}}});var tC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("JcCarrierSearch",{staticClass:"jc-sea-carrier-search",attrs:{type:"Carrier","line-type":"shipping","report-type":"shipping_carrier",placeholder:e.currentPlaceholder,lang:e.lang,"show-apply-data":e.showApplyData},on:{change:e.onCarrierChange,apply:function(s){return e.$emit("apply",e.carrierId)},focus:function(s){return e.$emit("focus")},blur:function(s){return e.$emit("blur")},"remove-tag":s=>e.$emit("remove-tag",s)},scopedSlots:e._u([e.$scopedSlots.option?{key:"option",fn:function(s){return[e._t("option",null,null,s)]}}:null],null,!0),model:{value:e.carrierId,callback:function(s){e.carrierId=s},expression:"carrierId"}},[e.$slots.prefix?r("template",{slot:"prefix"},[e._t("prefix")],2):e._e()],2)},nC=[],rC=me(eC,tC,nC,!1,null,"3ca731c4");const iC=rC.exports,aC=Object.freeze(Object.defineProperty({__proto__:null,default:iC},Symbol.toStringTag,{value:"Module"})),sC=C.defineComponent({name:"SeaLineSearch",components:{JcCarrierSearch:mr},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:void 0},lang:{type:String,default:""},placeholder:{type:String,default:""},showApplyData:{type:Boolean,default:!1}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(i,{emit:e}){const r=C.computed({get:()=>i.modelValue!==void 0?i.modelValue:i.value,set:l=>{e("input",l),e("update:modelValue",l),e("update:value",l)}}),s=C.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}return!1}),u=C.computed(()=>i.placeholder?i.placeholder:s.value?"Please enter the line name":"请输入航线名称");return{carrierId:r,currentPlaceholder:u,onCarrierChange:l=>{e("change",l)},lang:i.lang,showApplyData:i.showApplyData}}});var oC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("JcCarrierSearch",{staticClass:"jc-sea-line-search",attrs:{type:"Line","line-type":"shipping","report-type":"shipping_line",placeholder:e.currentPlaceholder,lang:e.lang,"show-apply-data":e.showApplyData},on:{change:e.onCarrierChange,apply:function(s){return e.$emit("apply",e.carrierId)},focus:function(s){return e.$emit("focus")},blur:function(s){return e.$emit("blur")},"remove-tag":s=>e.$emit("remove-tag",s)},scopedSlots:e._u([e.$scopedSlots.option?{key:"option",fn:function(s){return[e._t("option",null,null,s)]}}:null],null,!0),model:{value:e.carrierId,callback:function(s){e.carrierId=s},expression:"carrierId"}},[e.$slots.prefix?r("template",{slot:"prefix"},[e._t("prefix")],2):e._e()],2)},lC=[],cC=me(sC,oC,lC,!1,null,"95dcc99d");const uC=cC.exports,fC=Object.freeze(Object.defineProperty({__proto__:null,default:uC},Symbol.toStringTag,{value:"Module"})),dC={name:"JcFloatWrapper",emits:["focus","blur"],props:{label:{type:String,default:""}},data(){return{internalFocus:!1}},computed:{isHavePrepend(){return!!this.$slots.prefix},isHaveAppend(){return!!this.$slots.suffix}},methods:{handleFocusIn(){this.internalFocus=!0,this.$emit("focus")},handleFocusOut(i){var r,s;const e=i.relatedTarget;e&&((s=(r=this.$el)==null?void 0:r.contains)!=null&&s.call(r,e))||(this.internalFocus=!1,this.$emit("blur"))}}};var pC=function(){var e=this,r=e._self._c;return r("div",{staticClass:"jc-float-wrapper",class:{"is-focus":e.internalFocus,"is-have-prepend":e.isHavePrepend},on:{focusin:e.handleFocusIn,focusout:e.handleFocusOut}},[r("div",{staticClass:"wrapper-container"},[e.isHavePrepend?r("div",{staticClass:"wrapper-prepend"},[e._t("prefix")],2):e._e(),r("div",{staticClass:"wrapper-main"},[e._t("default"),r("p",{staticClass:"wrapper-label"},[e._v(" "+e._s(e.label)+" ")])],2),e.isHaveAppend?r("div",{staticClass:"wrapper-append"},[e._t("suffix")],2):e._e()])])},hC=[],mC=me(dC,pC,hC,!1,null,"f9f8068e");const Ai=mC.exports,gC=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Ot=()=>typeof window!="undefined",At=(i,e)=>{var r;if(Ot())try{(r=window.sessionStorage)==null||r.setItem(i,e)}catch{}},$t=i=>{var e;if(!Ot())return"";try{return((e=window.sessionStorage)==null?void 0:e.getItem(i))||""}catch{return""}},lr=i=>{var e;if(Ot())try{(e=window.sessionStorage)==null||e.removeItem(i)}catch{}},vC={data:{redirect:!1,redirectPath:"",tgc:"",thirdPartyInfo:{thirdPartyEmail:"new_user@gmail.com",thirdPartyId:"999888777",thirdPartyType:"FACEBOOK",thirdPartyUserName:"New User"},mobileEmailList:[]}},yC=(i,e)=>{i.thirdPartyId&&At("jc-auth-thirdPartyId",i.thirdPartyId),i.thirdPartyEmail&&At("jc-auth-thirdPartyEmail",i.thirdPartyEmail),i.thirdPartyType&&At("jc-auth-thirdPartyType",i.thirdPartyType),i.thirdPartyUserName&&At("jc-auth-thirdPartyUserName",i.thirdPartyUserName),e&&e.length>0&&At("jc-auth-mobileEmailList",JSON.stringify(e))},_c=()=>{const i=$t("jc-auth-mobileEmailList")||"[]";return{thirdPartyId:$t("jc-auth-thirdPartyId"),thirdPartyEmail:$t("jc-auth-thirdPartyEmail"),thirdPartyType:$t("jc-auth-thirdPartyType"),thirdPartyUserName:$t("jc-auth-thirdPartyUserName"),mobileEmailList:JSON.parse(i)}},ec=i=>{i&&i.length>0&&At("jc-auth-thirdPartyEmailVerifyList",JSON.stringify(i))},tc=i=>{i&&i.length>0&&At("jc-auth-thirdPartyMobileVerifyList",JSON.stringify(i))};function CC(i){const e=C.ref(!1),r=C.ref(null),s=C.ref(!1),u=C.ref(!1),p=C.ref([]),l=C.ref(!1);let m=null,A=null,v=!1;const x="current_login_type",T="jc_auth_state_check",I="jc_auth_active_instance",B=Math.random().toString(36).substring(2,15),D=F=>Ot()?new URLSearchParams(window.location.search).get(F):null,W=()=>{A&&(clearInterval(A),A=null),m=null},k=()=>{console.log("🧹 [重置] 清空所有登录状态"),W(),Ot()&&window.removeEventListener("message",N),e.value=!1,r.value=null,s.value=!1,u.value=!1,l.value=!1,p.value=[],v=!1,lr(x),lr(I),lr(T)},S=()=>{if(Ot()&&window.opener&&window.opener!==window){const F=D("code"),w=D("state");F&&(console.log("🍉 [弹窗] 获取到授权码,准备回传:",F),window.opener.postMessage({type:"THIRD_PARTY_LOGIN_CODE",code:F,state:w},"*"),window.close())}},N=async F=>{if(!Ot())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(F.origin)){console.warn("收到未知来源的消息:",F.origin);return}const{type:M,code:G,state:$}=F.data||{};if(M==="THIRD_PARTY_LOGIN_CODE"&&G&&$){if($t(I)!==B||$t(T)!==$)return;v=!0,console.log(`🍉 [主窗口] 实例 ${B} 收到授权码:`,G,$),window.removeEventListener("message",N),W();const Te=$t(x)||null;if(Te==="TEST"){console.log("🍉 [主窗口] 测试模式:模拟接口返回");const Pe=vC.data;setTimeout(()=>{Q(Pe)},500)}else await H(G,Te)}},H=async(F,w)=>{const M=b.getAuthSessionItems(),G={thirdPartyCode:F,appId:i.appId,redirectPath:i.redirectPath||"/",activityCode:(M==null?void 0:M.activityCode)||"",referenceUserId:(M==null?void 0:M.referenceUserId)||"",prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};try{let $;w==="FACEBOOK"?$=await b.loginByFacebookApi(G):w==="LINKEDIN"&&($=await b.loginByLinkedinApi(G)),$&&$.data&&Q($.data)}catch($){console.error("登录 API 错误:",$),i.onError&&i.onError($),k()}finally{e.value=!1,lr(x),lr(I)}},Q=F=>{const w=F.data||F;if(console.log("🍉 处理登录结果:",w),r.value=w,e.value=!1,w.redirect&&w.tgc){const G=i.appId==="CPA"?"tgc-CPA":"tgc";Mt.set(G,w.tgc,{expires:30})}const M=w.mobileEmailList||[];if(yC((w==null?void 0:w.thirdPartyInfo)||{},(w==null?void 0:w.mobileEmailList)||[]),M.length>0)console.log("👉 进入绑定流程"),p.value=M,s.value=!0,u.value=!1,i.onNeedBind&&i.onNeedBind(M);else if(w.redirect)if(console.log("👉 直接登录成功,准备跳转"),s.value=!1,u.value=!1,b.setTokenAll(w.result),i.onSuccess)i.onSuccess(w);else{const G=w.redirectPath||i.redirectPath;console.log("🍉 ~ useThirdPartyLogin.ts:426 ~ handleLoginSuccess ~ targetPath:",G),G&&Ut(G)}else console.log("👉 进入注册流程"),s.value=!1,p.value=[],u.value=!0},z=F=>{if(!Ot()||e.value)return;k(),v=!1,window.addEventListener("message",N),e.value=!0,At(x,F),At(I,B);const w="jc_"+Math.random().toString(36).slice(2);At(T,w);const M=window.location.hostname.includes("jctrans.com"),G=window.location.hostname.includes("sit2"),$=window.location.hostname.includes("sit"),Pe=`${M?"https://passport.jctrans.com":G?"https://passport-sit2.jctrans.net.cn":$?"https://passport-sit.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"}/oauth_callback.html`||window.location.origin+window.location.pathname;let X="";F==="TEST"?X=`${M?"https://passport.jctrans.com/mock_auth.html":G?"https://passport-sit2.jctrans.net.cn/mock_auth.html":"https://passport-sit.jctrans.net.cn/mock_auth.html"}?redirect_uri=${encodeURIComponent(Pe)}&state=${w}`:F==="FACEBOOK"?X=`https://www.facebook.com/v22.0/dialog/oauth?client_id=1819580562224685&redirect_uri=${encodeURIComponent(Pe)}&state=${w}&scope=email,public_profile&display=popup`:F==="LINKEDIN"&&(X=`https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=86t0770jygwztk&redirect_uri=${encodeURIComponent(Pe)}&state=${w}&scope=profile%20email%20openid`);const j=600,ne=700,Ce=window.screen.width/window.innerWidth,Ne=(window.screen.width-j)/2/Ce+(window.screenLeft!==void 0?window.screenLeft:window.screenX),Ee=(window.screen.height-ne)/2/Ce+(window.screenTop!==void 0?window.screenTop:window.screenY),Ae=`
28
+ width=${j},
29
+ height=${ne},
30
+ top=${Ee},
31
+ left=${Ne},
32
+ toolbar=no,
33
+ menubar=no,
34
+ scrollbars=yes,
35
+ status=no,
36
+ location=no
37
+ `;if(console.log(`🍉 打开弹窗 [${F}]: ${X}`),m=window.open(X,"ThirdPartyLogin",Ae),!m){console.error("浏览器已阻止弹窗"),e.value=!1;return}A=setInterval(()=>{if(m&&m.closed){if(v){console.log("🍉 [竞态] 检测到窗口关闭,但正在处理消息,忽略此次关闭检测"),W();return}console.log("🍉 检测到弹窗被手动关闭,执行重置"),k(),l.value=!0}},1e3)};return C.onMounted(()=>{S()}),C.onUnmounted(()=>{Ot()&&window.removeEventListener("message",N),k()}),{isLoading:e,isBindDialogVisible:s,isRegisterVisible:u,isUserClosed:l,bindList:p,loginResult:r,startLogin:z,resetState:k,handleBindThirdParty:F=>{p.value=F,s.value=!0,u.value=!1},resetBindRegisterState:()=>{s.value=!1,u.value=!1,p.value=[]}}}async function On(i,e,r,s=!0,u=!0){if(!e||e.trim()==="")return r(new Error(s?"Email address is required":"请输入您的邮箱"));if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e))return r(new Error(s?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/[一-龥]+/.test(e))return r(new Error(s?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/@(qq|vip.qq).com$/i.test(e))return r(new Error(s?"QQ email is not supported, please change other work email":"不支持QQ邮箱,请您更换其他工作邮箱"));if(u)try{const{data:l}=await b.validateAccountExistApi({target:e});if(console.log("🍉 ~ constant.ts:67 ~ validateUserEmail ~ data:",l),l.data)return r(new Error(s?"It's already occupied, please re-enter.":"已被占用,请重新输入"));r()}catch{r(new Error(s?"Validation failed, please re-enter.":"校验失败,请重新输入"))}else return r()}async function _C(i,e,r,s=!0,u){if(console.log("🍉 ~ constant.ts:106 ~ validateThirdPartyEmail ~ context:",u),e==null||e==="")r(new Error(s?"Please enter a valid business email address":"请输入正确的公司邮箱"));else if(/[一-龥]+/.test(e))r(new Error(s?"Please enter a valid business email address":"请输入正确的公司邮箱"));else try{const p=await b.findListByMobileEmailApi({email:e});console.log("🍉 ~ constant.ts:129 ~ validateThirdPartyEmail ~ res:",p),!p.data.data||p.data.data.records.length===0?(ec([]),u.thirdPartyEmailVerifyList=[],r()):(ec(p.data.data.records),u.thirdPartyEmailVerifyList=p.data.data.records,r(new Error(s?"This email has been registered":"邮箱已注册")))}catch{r(new Error(s?"This email has been registered":"邮箱已注册"))}}function AC(i,e,r,s=!0,u){e?/^[0-9]*$/.test(e)===!0?e.length<2?r(new Error(s?"please enter at least 2 characters.":"请输入至少2个字符")):b.findListByMobileEmailApi({mobile:e}).then(p=>{!p.data.data||p.data.data.records.length===0?(tc([]),u.thirdPartyMobileVerifyList=[],r()):(tc(p.data.data.records),u.thirdPartyMobileVerifyList=p.data.data.records,r(new Error(s?"This mobile number has been registered":"手机号已注册")))}).catch(()=>{r(new Error(s?"This mobile number has been registered":"手机号已注册"))}):r(new Error("请正确填写手机号")):r(new Error(s?"Please enter your cell phone number":"请输入手机号"))}function Ln(i,e,r,s=!0,u=!0){const p=/^[a-zA-Z一-龥\s.·•]+$/,l=/^[a-zA-Z\s.·•]+$/;if(!e){const m=u?s?"please enter your Chinese name":"请输入您的中文姓名":s?"Please enter your English name":"请输入您的英文姓名";return r(new Error(m))}if(u){if(e.length>50||!p.test(e))return r(new Error(s?"Only Chinese and English characters and symbols can be entered, with a maximum of 50 words.":"仅能输入中英文字符及符号,最多50个字"))}else if(e.length>50||!l.test(e))return r(new Error(s?"Only English characters and symbols can be entered, up to 50 words.":"仅能输入英文字符及符号,最多50个字"));r()}function pi(i,e,r,s=!0){const u={empty:s?"The password cannot be empty. Please enter it":"密码不能为空,请重新输入",length:s?"The password must be at 6-20 characters only":"密码为6-20位字符",invalidChars:s?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号",complexity:s?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号"};if(e==null||e==="")return r(new Error(u.empty));if(e.length<6||e.length>20)return r(new Error(u.length));if(!/^[a-zA-Z0-9+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&""''::?》《,^——_\s   \n\r【】{}[\]|;~·]*$/.test(e))return r(new Error(u.invalidChars));const l=/^[a-zA-Z]*$/.test(e),m=/^[0-9]*$/.test(e),A=/^[+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&""''::?》《,^——_\s   \n\r【】{}[\]|;~·]*$/.test(e);if(l||m||A)return r(new Error(u.complexity));r()}async function Nn(i,e,r,s=!0,u=!0){const p={empty:s?"Please enter your cell phone number":"请输入手机号",minLen:s?"please enter at least 2 characters.":"请输入至少 2 个字符.",invalid:s?"Invalid mobile address":"手机号格式错误",occupied:s?"It's already occupied, please re- enter.":"已被占用,请重新输入"};if(!e)return r(new Error(p.empty));if(!/^[0-9]*$/.test(e))return r(new Error(p.invalid));if(e.length<2)return r(new Error(p.minLen));if(u)try{const l=await b.validateAccountExistApi({target:e});if(console.log("🍉 ~ constant.ts:288 ~ validateUserMobilefive ~ res:",l),l&&l.data.data)return r(new Error(p.occupied));r()}catch{r(new Error(p.occupied))}else return r()}function wC(i){return i?i.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s{2,}/g," "):""}async function as(i,e,r,s=!0,u){const p=wC(e);console.log("🍉 ~ constant.ts:274 ~ validateCompanyName ~ nameValue:",p);const l=u.countryId==1;if(!p)return l&&(u.appId==="DDC"||u.appId==="JHB")?r():r(new Error(s?"please enter the full company name":"请输入公司名称"));if(p.length<2)return r(new Error(s?"please enter at least 2 characters.":"请输入至少 2 个字符."));if(p.length>200)return r(new Error(s?"please enter less than 200 characters.":"请输入少于 200 个字符."));if(!l){if(/[一-龥]/.test(p))return r(new Error(s?"Do not include Chinese characters in company name":"注册公司名不能有中文"));if(!/^[a-zA-Z0-9+.()&\\\-=*/,#'":!?;%$`@^——_\s]*$/.test(p))return r(new Error(s?"Wrong format for company name":"注册公司名格式错误"))}if(u.countryId&&u.cityId)try{const m={countryId:u.countryId,cityId:u.cityId,[l?"compNameCn":"compNameEn"]:p},A=await b.validateCompanyApi(m);console.log("🍉 ~ constant.ts:347 ~ validateCompanyName ~ res:",A),A.data.data.result?u.appId==="JCPAY"?r(new Error(s?"The company already exists, please contact customer service":"公司名称已存在,请联系客服")):(l?u.companyResistCn=!0:u.companyResistEn=!0,u.resistCompanyInfo=A.data.data,r()):(l?u.companyResistCn=!1:u.companyResistEn=!1,r())}catch(m){const A=(m==null?void 0:m.toString().split(":")[1])||"API Error";r(new Error(A))}else r(new Error(s?"Please select a Country/Region":"请选择国家/地区"))}function tn(i,e,r,s=!0){if(!e)return r(new Error(s?"Please enter the verification code":"请输入验证码"));if(!/^\d{4}$/.test(e))return r(new Error(s?"Verification code must be 4 digits":"验证码必须为4位数字"));r()}function ss(i="_blank"){const e=window.location.hostname.includes("jctrans.com"),r=window.location.hostname.includes("sit2"),s=window.location.hostname.includes("sit"),p=e?"https://passport.jctrans.com":r?"https://passport-sit2.jctrans.net.cn":s?"https://passport-sit.jctrans.net.cn":"https://passport-sit.jctrans.net.cn",l=document.createElement("a");l.href=`${p}/privacyAgreement`,l.target=i;const m=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});l.dispatchEvent(m)}function os(i="_blank"){const e=window.location.hostname.includes("jctrans.com"),r=window.location.hostname.includes("sit2"),s=window.location.hostname.includes("sit"),p=e?"https://passport.jctrans.com":r?"https://passport-sit2.jctrans.net.cn":s?"https://passport-sit.jctrans.net.cn":"https://passport-sit.jctrans.net.cn",l=document.createElement("a");l.href=`${p}/privacyPolicy`,l.target=i;const m=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});l.dispatchEvent(m)}const Ut=(i,e=100)=>{typeof window!="undefined"&&i&&setTimeout(()=>{i.startsWith("http")?window.location.href=i:(window.location.href=window.location.origin+i,console.warn("内部路径跳转逻辑尚未定义:",i))},e)},bC=C.defineComponent({name:"ApplyJoinBtn",props:{isEn:{type:Boolean,default:!1}},emits:["apply-join"],setup(i,{emit:e}){const r=C.computed(()=>i.isEn?"The company already exists. Would you like to apply to ":"该公司已存在。您可申请加入。"),s=C.computed(()=>i.isEn?"join in >>":"点击申请加入 >>");return{register_already_tip:r,register_join_in:s,applyJoin:()=>{e("apply-join")}}}});var EC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"jc:text-xs jc:flex jc:mb-3 jc:-mt-3"},[r("p",{staticClass:"jc:text-xs",staticStyle:{color:"#f80"}},[r("i",{staticClass:"el-icon-warning"}),e._v(" "+e._s(e.register_already_tip)+" ")]),r("p",{staticStyle:{color:"#3264ff",cursor:"pointer"},on:{click:e.applyJoin}},[e._v(" "+e._s(e.register_join_in)+" ")])])},SC=[],IC=me(bC,EC,SC,!1,null,"4b87a2f3");const wi=IC.exports,xC=Object.freeze(Object.defineProperty({__proto__:null,default:wi},Symbol.toStringTag,{value:"Module"})),TC={name:"RegisterForm",components:{ElDialog:U.Dialog,ElForm:U.Form,ElFormItem:U.FormItem,ElInput:U.Input,ElButton:U.Button,ElCheckbox:U.Checkbox,ElSelect:U.Select,ElOption:U.Option,ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton,JcFloatInput:Un,CodeInput:nn,JcFloatWrapper:Ai,JcSearch:hr,ChineseCompanySearch:_i,GoogleInput:Vt,ApplyJoinBtn:wi},props:{isEn:Boolean},emits:["to-login","register","need-complete","register-success"],computed:{isAgree(){return this.form.agree},countryId(){var i,e,r,s,u,p,l;return((r=(e=(i=this.form.city)==null?void 0:i.raw)==null?void 0:e.country)==null?void 0:r.id)||((l=(p=(u=(s=this.form)==null?void 0:s.city)==null?void 0:u.raw)==null?void 0:p.city)==null?void 0:l.countryId)},cityId(){var i;return(i=this.form.city)==null?void 0:i.id},currentCountryIsChina(){var e;const i=this.countryId||((e=this.resistCompanyInfo)==null?void 0:e.countryId);return[1].includes(Number(i))},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:(i,e,r)=>as(i,e,r,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(i,e,r)=>On(i,e,r,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>tn(i,e,r,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(i,e,r)=>pi(i,e,r,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(i,e,r)=>{e?r():r(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:ss,getAuthSessionItems:b.getAuthSessionItems,go2Policy:os,async inviteJoinGetComp(){const e=b.getAuthSessionItems().compKey;if(!e)return;const{data:r}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=r.data},findDict(){b.findDictApi({dictType:"cmc_company_industry_sector"}).then(i=>{const e=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=i.data.data.records.map(r=>({...r,...e.find(s=>s.value===r.dictValue)}))}).catch(i=>{})},handleChangeCompany(i){this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){var s,u,p;const e=(await b.getLocalIpDataApi()).data;e&&e.code===0&&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:(s=e.data)==null?void 0:s.countryId},country:{id:(u=e.data)==null?void 0:u.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=(p=e.data)==null?void 0:p.countryId,this.handleSelectCity(this.form.city));const r=await b.findPAreaCodeApi();this.areaCodeData=r.data.data.records},handleClearCity(){this.companyResistEn=!1,this.companyResistCn=!1},handleSelectCity(i){var e,r,s,u;this.form.cityId=i.id,this.form.countryId=((r=(e=i.raw)==null?void 0:e.country)==null?void 0:r.id)||((u=(s=i.raw)==null?void 0:s.city)==null?void 0:u.countryId)||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(i){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(i,e=>{(i==="email"||i==="phone")&&(this.codeReady=e)})},handleGetCode({captchaData:i,startTimer:e}){this.verifyData=i;const r={target:this.form.email||this.form.phone,uuid:i.uuid,code:i.code};e();let s=b.sendEmailCodeApi,u=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&&(s=b.sendMobileCodeApi,u=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分钟后失效。请不要与任何人分享您的验证码。"),s(r).then(p=>{var m;const l=((m=p.data.data)==null?void 0:m.verifyCode)||p.data.verifyCode;p.data.code===0&&l&&(this.currentCountryIsChina?this.mobileUid=l:this.emailUid=l,U.Message.success(u))}).catch(p=>{console.error(p)})},handleRegister(){this.$refs.registerFormRef.validate(i=>{if(!i)return;if(!this.verifyData.uuid){U.Message.error(this.isEn?"Please get code first":"请先获取验证码");return}const e=this.getAuthSessionItems();let r={appId:this.appId,fromSys:this.appId,passwd:ht.MD5(this.form.password).toString(),clickSource:e.clickSource||"",activityCode:e.activityCode||"",referenceUserId:e.referenceUserId||"",inviterInfo:e.empNo||"",industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,uniqueCode:e.uniqueCode||"",prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};this.currentCountryIsChina?Object.assign(r,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(s=>s.telCode===this.form.areaCode).id,account:b.Encrypt(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(r,{type:"EMAIL",account:b.Encrypt(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(r):this.handleNewCompanySubmit(r)})},async handleNewCompanySubmit(i){const e=this.getAuthSessionItems(),r={...this.form.kqInfo,...i,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?r.compNameCn=this.form.companyName:r.compNameEn=this.form.companyName,this.$emit("register",r),this.loading=!0;try{const u=await(e.uniqueCode?b.registerUserCompBindWechatApi:b.registerApi)(r);this.handlePostRegister(u)}catch{this.loading=!1}},async handleApplyJoinSubmit(i){const e=this.getAuthSessionItems(),r={...i,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(r.nameCn=this.form.nameCn),this.form.nameEn&&(r.nameEn=this.form.nameEn),["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(u=>delete r[u]),this.$emit("register",r),this.loading=!0;try{const p=await(e.uniqueCode?b.registerJoinCompanyBindWechatApi:b.registerJoinCompanyApi)(r);this.handlePostRegister(p)}catch{this.loading=!1}},normalizeDelayMs(i){if(i==null||i==="")return 0;if(typeof i=="string"){const r=i.trim().toLowerCase();if(!r)return 0;if(r.endsWith("ms")){const u=Number(r.slice(0,-2).trim());return Number.isFinite(u)&&u>=0?u:0}if(r.endsWith("s")){const u=Number(r.slice(0,-1).trim());return Number.isFinite(u)&&u>=0?u*1e3:0}const s=Number(r);return!Number.isFinite(s)||s<0?0:s>=10?s:s*1e3}const e=Number(i);return!Number.isFinite(e)||e<0?0:e>=10?e:e*1e3},executeRedirectWithDelay(i,e){const r=this.normalizeDelayMs(e);setTimeout(()=>{b.resetAuthSessionItems(),Ut(i)},r)},handlePostRegister(i){const e=this.getAuthSessionItems();if(i.data.code===0)if(i.data.data.redirect){if(b.setTokenAll(i.data.data.result),i.data.data.result&&i.data.data.result.improveComp){this.$emit("need-complete",i.data.data.result.improveComp);return}try{Mt.set("tgc",i.data.data.tgc,{expires:30});const r=i.data.data.redirectPath||e.path||"/",s={isHandled:!1},u=l=>{s.isHandled=!0,this.executeRedirectWithDelay(r,l)},p=()=>{s.isHandled=!0};this.$emit("register-success",{user:i.data.data.result,redirectPath:r,preventDefault:p,redirect:u}),setTimeout(()=>{s.isHandled||this.executeRedirectWithDelay(r,0)},0)}catch(r){console.error("注册成功后的后续处理发生异常:",r)}}else this.loading=!1,U.Message.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,U.Message.error(i.data.msg)}}};var RC=function(){var s,u,p,l,m,A;var e=this,r=e._self._c;return r("div",{staticClass:"register-form-container"},[r("div",{staticClass:"register-title"},[r("p",[e._v(e._s(e.isEn?"New User Registration":"新用户注册"))])]),r("el-form",{ref:"registerFormRef",staticClass:"auth-form",attrs:{model:e.form,rules:e.rules}},[e.hasResistCompany?[r("div",{staticClass:"resist-company-info-card"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Company name":"公司名称"))])]),r("span",{staticClass:"change-link",on:{click:function(v){e.hasResistCompany=!1}}},[e._v(" "+e._s(e.isEn?"Change":"修改")+" ")])]),r("div",{staticClass:"company-content"},[r("h4",{staticClass:"company-name"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.compNameEn||e.resistCompanyInfo.compNameCn:e.resistCompanyInfo.compNameCn||e.resistCompanyInfo.compNameEn)+" ")])]),r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Location(City)":"所在地(城市)"))])])]),r("div",{staticClass:"location-info"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.countryNameEn:e.resistCompanyInfo.countryNameCn)+" / "+e._s(e.isEn?e.resistCompanyInfo.cityNameEn:e.resistCompanyInfo.cityNameCn)+" ")])]),r("el-form-item",{staticClass:"name-input-item",attrs:{prop:e.currentCountryIsChina?"nameCn":"nameEn"}},[r("JcFloatInput",{attrs:{label:e.currentCountryIsChina?e.isEn?"Your Full Name in Chinese":"您的中文名称":e.isEn?"Your Full Name in English":"您的名称",placeholder:e.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-user"})]},proxy:!0}]),model:{value:e.form[e.currentCountryIsChina?"nameCn":"nameEn"],callback:function(v){e.$set(e.form,e.currentCountryIsChina?"nameCn":"nameEn",v)},expression:"form[currentCountryIsChina ? 'nameCn' : 'nameEn']"}})],1)]:[r("el-form-item",{attrs:{prop:"city"}},[r("JcFloatWrapper",{attrs:{label:e.isEn?"Company Location (City)":"公司所在城市","has-value":!!(e.form.city&&e.form.city.id)}},[r("JcSearch",{staticClass:"jc:my-0! search-city-item",style:{"--original-text-main":"#232324"},attrs:{"show-search-icon":!1,"search-type-list":["City"],placeholder:e.isEn?"Location(City)":"请输入公司所在城市"},on:{clear:e.handleClearCity,select:e.handleSelectCity},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-location"})]},proxy:!0}],null,!1,465018025),model:{value:e.form.city,callback:function(v){e.$set(e.form,"city",v)},expression:"form.city"}})],1)],1),r("el-form-item",{attrs:{prop:"companyName"}},[r("JcFloatWrapper",{attrs:{label:e.currentCompanyLabel}},[r("ChineseCompanySearch",{staticClass:"jc:my-0! search-company-item",attrs:{"company-name":e.form.companyName,"use-kq":e.form.useKq,"kq-code":e.form.kqCode,"kq-info":e.form.kqInfo,"country-id":((p=(u=(s=e.form.city)==null?void 0:s.raw)==null?void 0:u.country)==null?void 0:p.id)||((A=(m=(l=e.form.city)==null?void 0:l.raw)==null?void 0:m.city)==null?void 0:A.countryId)||null,city:e.form.city},on:{"update:companyName":function(v){return e.$set(e.form,"companyName",v)},"update:company-name":function(v){return e.$set(e.form,"companyName",v)},"update:useKq":function(v){return e.$set(e.form,"useKq",v)},"update:use-kq":function(v){return e.$set(e.form,"useKq",v)},"update:kqCode":function(v){return e.$set(e.form,"kqCode",v)},"update:kq-code":function(v){return e.$set(e.form,"kqCode",v)},"update:kqInfo":function(v){return e.$set(e.form,"kqInfo",v)},"update:kq-info":function(v){return e.$set(e.form,"kqInfo",v)},change:e.handleChangeCompany},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-company"})]},proxy:!0}],null,!1,3014956371)})],1)],1),e.companyResistCn||e.companyResistEn?r("ApplyJoinBtn",{attrs:{"is-en":e.isEn},on:{"apply-join":e.handleApplyJoinClick}}):e._e()],e.currentCountryIsChina?r("el-form-item",{staticClass:"phone-form-item"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("google-input",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{blur:function(v){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-phone"}),r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:function(v){return e.validateField("areaCode")}},model:{value:e.form.areaCode,callback:function(v){e.$set(e.form,"areaCode",v)},expression:"form.areaCode"}},[e._l(e.areaCodeData,function(v){return r("el-option",{key:v.id,attrs:{label:v.telCode,value:v.telCode}})}),r("el-option",{attrs:{label:"+86",value:"+86"}})],2)],1)]},proxy:!0}],null,!1,2606172549),model:{value:e.form.phone,callback:function(v){e.$set(e.form,"phone",v)},expression:"form.phone"}})],1)],1):e._e(),e.currentCountryIsChina?e._e():r("el-form-item",{staticClass:"email-form-item",attrs:{prop:"email"}},[r("JcFloatInput",{attrs:{label:e.isEn?"Business Email Address":"企业邮箱",placeholder:e.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱"},on:{blur:function(v){return e.validateField("email")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-email"})]},proxy:!0}],null,!1,678594200),model:{value:e.form.email,callback:function(v){e.$set(e.form,"email",v)},expression:"form.email"}})],1),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":""},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}]),model:{value:e.form.code,callback:function(v){e.$set(e.form,"code",v)},expression:"form.code"}})],1),r("el-form-item",{staticClass:"password-form-item",attrs:{prop:"password"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{type:"password","show-password":"",label:e.isEn?"Password":"密码",placeholder:e.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}]),model:{value:e.form.password,callback:function(v){e.$set(e.form,"password",v)},expression:"form.password"}})],1),e.hasResistCompany?e._e():r("div",{staticClass:"sector-section"},[r("p",{staticClass:"sector-label"},[e._v(e._s(e.isEn?"Industry Sector":"行业类型"))]),r("div",{staticClass:"sector-group"},e._l(e.sectors,function(v){return r("div",{key:v.value,staticClass:"sector-item",class:{active:e.form.sector===v.value},on:{click:function(x){e.form.sector=v.value}}},[e._v(" "+e._s(e.isEn?v.en:v.cn)+" "),e.form.sector===v.value?r("i",{staticClass:"icon-auth-checked"}):e._e()])}),0)]),r("el-form-item",{staticClass:"agree-item",attrs:{prop:"agree"}},[r("el-checkbox",{model:{value:e.form.agree,callback:function(v){e.$set(e.form,"agree",v)},expression:"form.agree"}},[r("span",{staticClass:"agree-text"},[e._v(" "+e._s(e.isEn?"I agree":"我同意")+" "),r("span",{staticClass:"link-type",on:{click:function(v){return v.stopPropagation(),e.go2Agreement.apply(null,arguments)}}},[e._v(e._s(e.isEn?"User Agreement":"《用户条款和协议》"))]),e._v(" "+e._s(e.isEn?"and":"和")+" "),r("span",{staticClass:"link-type",on:{click:function(v){return v.stopPropagation(),e.go2Policy.apply(null,arguments)}}},[e._v(e._s(e.isEn?"Privacy Policy":"《隐私政策》"))])])])],1),r("el-button",{staticClass:"submit-btn register-btn",class:["register-btn-is-active"],attrs:{disabled:e.loading,loading:e.loading},on:{click:e.handleRegister}},[e._v(" "+e._s(e.isEn?"Register and Log in":"注册并登录")+" "),r("i",{staticClass:"el-icon-right",staticStyle:{"margin-left":"8px"}})])],2),r("div",{staticClass:"bottom-tip"},[e._v(" "+e._s(e.isEn?"Already have an account?":"已有账号?")+" "),r("span",{staticClass:"action-text",on:{click:function(v){return e.$emit("to-login")}}},[e._v(" "+e._s(e.isEn?"Click to log in":"去登录")+" "),r("svg",{staticClass:"icon-more",attrs:{t:"1767853448095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"}},[r("path",{attrs:{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)},BC=[],FC=me(TC,RC,BC,!1,null,"0b64240f");const Ac=FC.exports,PC=Object.freeze(Object.defineProperty({__proto__:null,default:Ac},Symbol.toStringTag,{value:"Module"})),kC={name:"CompleteInfoForm",components:{ElForm:U.Form,ElFormItem:U.FormItem,ElButton:U.Button,ElSelect:U.Select,ElOption:U.Option,JcFloatInput:Un,CodeInput:nn,JcFloatWrapper:Ai,JcSearch:hr,ChineseCompanySearch:_i,GoogleInput:Vt,JcVerifySlide:gn,ApplyJoinBtn:wi},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:(i,e,r)=>this.hasResistCompany?r():as(i,e,r,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(i,e,r)=>On(i,e,r,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>tn(i,e,r,this.isEn),trigger:"blur"}]}}},computed:{countryId(){var i,e,r,s;return((r=(e=(i=this.form.city)==null?void 0:i.raw)==null?void 0:e.country)==null?void 0:r.id)||((s=this.resistCompanyInfo)==null?void 0:s.countryId)},cityId(){var i;return(i=this.form.city)==null?void 0:i.id},currentCountryIsChina(){const i=this.countryId;return[1].includes(Number(i))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},isShowMobileCode(){return this.isReady?this.currentCountryIsChina&&!this.currentUserMobile:!1},isShowEmailCode(){return this.isReady?!this.currentUserEmail:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.getUserPermsInfo()},methods:{getUserPermsInfo(){b.getUserInfoApi().then(i=>{var e,r;this.currentUserMobile=(e=i.data.data)==null?void 0:e.mobile,this.currentUserEmail=(r=i.data.data)==null?void 0:r.email}).catch(()=>{this.currentUserMobile=null,this.currentUserEmail=null}).finally(()=>{this.isReady=!0})},handleCompanyExistStatus(i){i&&(this.companyResistCn=i.cnExists,this.companyResistEn=i.enExists,this.resistCompanyInfo=i.companyInfo)},handleChangeCompany(i){this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.formRef.clearValidate("companyName")})},async getAreaCodeData(){const i=await b.findPAreaCodeApi();this.areaCodeData=i.data.data.records},findDict(){b.findDictApi({dictType:"cmc_company_industry_sector"}).then(i=>{const e=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=i.data.data.records.map(r=>({...r,...e.find(s=>s.value===r.dictValue)}))})},handleSelectCity(i){var e,r,s,u;this.form.cityId=i.id,this.form.countryId=((r=(e=i.raw)==null?void 0:e.country)==null?void 0:r.id)||((u=(s=i.raw)==null?void 0:s.city)==null?void 0:u.countryId)||"",this.$nextTick(()=>{!this.hasResistCompany&&this.form.companyName&&this.$refs.formRef.validateField("companyName"),this.$refs.formRef.validateField("city")})},validateField(i){this.$refs.formRef.validateField(i,e=>{(i==="phone"||i==="email")&&(this.codeReady=e)})},handleGetCode({captchaData:i,startTimer:e}){this.verifyData=i;const r={target:this.isShowMobileCode?this.form.phone:this.form.email,uuid:i.uuid,code:i.code},s=this.isShowMobileCode?b.sendMobileCodeApi:b.sendEmailCodeApi;this.isShowMobileCode&&(r.areaCode=this.form.areaCode,r.areaCodeCountryId=this.areaCodeData.find(u=>u.telCode===this.form.areaCode).id),e(),s(r).then(u=>{var l;const p=((l=u.data.data)==null?void 0:l.verifyCode)||u.data.verifyCode;u.data.code===0&&p&&(this.isShowMobileCode?this.mobileUid=p:this.emailUid=p,U.Message.success(this.isEn?"Code Sent":"验证码已发送"))})},handleSubmit(){this.$refs.formRef.validate(i=>{i&&(this.hasResistCompany?this.handleJoinSubmit():this.handleNewSubmit())})},handleNewSubmit(){this.loading=!0;const i={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==null?void 0:window.location.pathname)||"/",...this.form.kqInfo};b.completeCompRedirectApi(i).then(e=>{e.data.code===0?(U.Message.success(this.isEn?"Success":"提交成功"),this.$emit("success",e.data.data)):U.Message.error(e.data.msg)}).finally(()=>{this.loading=!1})},handleJoinSubmit(){this.loading=!0;const i={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==null?void 0:window.location.pathname)||"/"};b.completeJoinCompanyRedirectApi(i).then(e=>{if(e.data.code===0){if(e.data.data.redirect)try{Mt.set("tgc",e.data.data.tgc,{expires:30});const r=this.getAuthSessionItems(),s=e.data.data.redirectPath||r.path||"/";b.resetAuthSessionItems(),Ut(s)}catch{}else this.loading=!1,U.Message.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");this.$emit("success",e.data.data)}else U.Message.error(e.data.msg)}).finally(()=>{this.loading=!1})}}};var DC=function(){var e=this,r=e._self._c;return r("div",{staticClass:"complete-info-container"},[r("div",{staticClass:"complete-info-container_header"},[r("div",{staticClass:"complete-info-container_title"},[e._v(" "+e._s(e.isEn?"Complete Your Information":"完善企业信息")+" ")]),r("div",{staticClass:"complete-info-container_tip-box"},[r("img",{attrs:{src:"https://resources.jctrans.com/res/era/pc/img/icon_gantan.png",alt:""}}),r("span",[e._v(e._s(e.isEn?"To provide you with better service, please complete the following enterprise information":"为了给您提供更好的服务,请完善以下企业信息"))])])]),r("el-form",{ref:"formRef",staticClass:"auth-form",attrs:{model:e.form,rules:e.rules}},[e.hasResistCompany?[r("div",{staticClass:"resist-company-info-card"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Company name":"公司名称"))])]),r("span",{staticClass:"change-link",on:{click:function(s){e.hasResistCompany=!1}}},[e._v(" "+e._s(e.isEn?"Change":"修改")+" ")])]),r("div",{staticClass:"company-content"},[r("h4",{staticClass:"company-name"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.compNameEn||e.resistCompanyInfo.compNameCn:e.resistCompanyInfo.compNameCn||e.resistCompanyInfo.compNameEn)+" ")])]),r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Location(City)":"所在地(城市)"))])])]),r("div",{staticClass:"location-info"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.countryNameEn:e.resistCompanyInfo.countryNameCn)+" / "+e._s(e.isEn?e.resistCompanyInfo.cityNameEn:e.resistCompanyInfo.cityNameCn)+" ")])]),r("el-form-item",{staticClass:"name-input-item",attrs:{prop:e.currentCountryIsChina?"nameCn":"nameEn"}},[r("JcFloatInput",{attrs:{label:e.currentCountryIsChina?e.isEn?"Your Full Name in Chinese":"您的中文名称":e.isEn?"Your Full Name in English":"您的名称",placeholder:e.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-user"})]},proxy:!0}]),model:{value:e.form[e.currentCountryIsChina?"nameCn":"nameEn"],callback:function(s){e.$set(e.form,e.currentCountryIsChina?"nameCn":"nameEn",s)},expression:"form[currentCountryIsChina ? 'nameCn' : 'nameEn']"}})],1)]:[r("el-form-item",{attrs:{prop:"city"}},[r("JcFloatWrapper",{attrs:{label:e.isEn?"Company Location (City)":"公司所在城市","has-value":!!(e.form.city&&e.form.city.id)}},[r("JcSearch",{staticClass:"jc:my-0! search-city-item",style:{"--original-text-main":"#232324"},attrs:{"show-search-icon":!1,"search-type-list":["City"],lang:e.isEn?"en":"zh-CN",placeholder:e.isEn?"Location(City)":"请输入公司所在城市"},on:{select:e.handleSelectCity},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-location"})]},proxy:!0}],null,!1,465018025),model:{value:e.form.city,callback:function(s){e.$set(e.form,"city",s)},expression:"form.city"}})],1)],1),r("el-form-item",{attrs:{prop:"companyName"}},[r("JcFloatWrapper",{attrs:{label:e.currentCompanyLabel}},[r("ChineseCompanySearch",{staticClass:"jc:my-0! search-company-item",attrs:{"company-name":e.form.companyName,"use-kq":e.form.useKq,"kq-code":e.form.kqCode,"kq-info":e.form.kqInfo,lang:e.isEn?"en":"zh-CN","country-id":e.countryId||null,city:e.form.city},on:{"update:companyName":function(s){return e.$set(e.form,"companyName",s)},"update:company-name":function(s){return e.$set(e.form,"companyName",s)},"update:useKq":function(s){return e.$set(e.form,"useKq",s)},"update:use-kq":function(s){return e.$set(e.form,"useKq",s)},"update:kqCode":function(s){return e.$set(e.form,"kqCode",s)},"update:kq-code":function(s){return e.$set(e.form,"kqCode",s)},"update:kqInfo":function(s){return e.$set(e.form,"kqInfo",s)},"update:kq-info":function(s){return e.$set(e.form,"kqInfo",s)},"update:exist-status":e.handleCompanyExistStatus,change:e.handleChangeCompany},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-company"})]},proxy:!0}],null,!1,3014956371)})],1)],1),e.companyResistCn||e.companyResistEn?r("ApplyJoinBtn",{on:{"apply-join":e.handleApplyJoinClick}}):e._e(),r("div",{staticClass:"sector-section"},[r("p",{staticClass:"sector-label"},[e._v(" "+e._s(e.isEn?"Industry Sector":"行业类型")+" ")]),r("div",{staticClass:"sector-group"},e._l(e.sectors,function(s){return r("div",{key:s.value,staticClass:"sector-item",class:{active:e.form.sector===s.value},on:{click:function(u){e.form.sector=s.value}}},[e._v(" "+e._s(e.isEn?s.en:s.cn)+" "),e.form.sector===s.value?r("i",{staticClass:"icon-auth-checked"}):e._e()])}),0)])],e.isShowMobileCode?[r("el-form-item",{ref:"areaCodeCountryId",staticClass:"phone-form-item"},[r("el-form-item",{ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("GoogleInput",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15"},on:{blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-phone"}),r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号","popper-class":"jc-area-code-select-wrapper"},on:{change:function(s){return e.validateField("areaCode")}},model:{value:e.form.areaCode,callback:function(s){e.$set(e.form,"areaCode",s)},expression:"form.areaCode"}},e._l(e.areaCodeData,function(s){return r("el-option",{key:s.id,attrs:{label:s.telCode,value:s.telCode}})}),1)],1)]},proxy:!0}],null,!1,1425799582),model:{value:e.form.phone,callback:function(s){e.$set(e.form,"phone",s)},expression:"form.phone"}})],1)],1),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":"","form-type-color":"4"},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}],null,!1,3883692614),model:{value:e.form.code,callback:function(s){e.$set(e.form,"code",s)},expression:"form.code"}})],1)]:e._e(),e.isShowEmailCode?[r("el-form-item",{staticClass:"email-form-item",attrs:{prop:"email"}},[r("JcFloatInput",{attrs:{label:e.isEn?"Business Email Address":"企业邮箱",placeholder:e.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱"},on:{blur:function(s){return e.validateField("email")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-email"})]},proxy:!0}],null,!1,678594200),model:{value:e.form.email,callback:function(s){e.$set(e.form,"email",s)},expression:"form.email"}})],1),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":"","form-type-color":"4"},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}],null,!1,3883692614),model:{value:e.form.code,callback:function(s){e.$set(e.form,"code",s)},expression:"form.code"}})],1)]:e._e(),r("el-button",{staticClass:"submit-btn register-btn register-btn-is-active",attrs:{loading:e.loading},on:{click:e.handleSubmit}},[e._v(" "+e._s(e.isEn?"Submit":"完成并进入")+" ")])],2)],1)},OC=[],LC=me(kC,DC,OC,!1,null,"c6a09f38");const wc=LC.exports,NC=Object.freeze(Object.defineProperty({__proto__:null,default:wc},Symbol.toStringTag,{value:"Module"})),MC=C.defineComponent({name:"FooterBox",props:{label:{type:String,default:""},subLabel:{type:String,default:""}},emits:["handleClick"],setup(i,{emit:e}){return{handleClick:()=>{e("handleClick")}}}});var UC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"auth-footer-box"},[e._v(" "+e._s(e.label)+" "),r("span",{staticClass:"action-text",on:{click:function(s){return s.stopPropagation(),e.handleClick.apply(null,arguments)}}},[e._v(e._s(e.subLabel)+" "),r("svg",{staticClass:"icon-more",attrs:{t:"1767853448095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"}},[r("path",{attrs:{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"}})])])])},qC=[],VC=me(MC,UC,qC,!1,null,"3fc7802c");const bc=VC.exports,WC=Object.freeze(Object.defineProperty({__proto__:null,default:bc},Symbol.toStringTag,{value:"Module"}));function HC(i){const e=C.ref(1),r=C.ref(!1),s=C.ref(!1),u=C.ref(),p=C.reactive({userName:""}),l=C.ref({}),m=C.ref(!1),A=C.ref("email"),v=C.reactive({email:!1,mobile:!1}),x=C.reactive({code:"",password:"",confirmPassword:""}),T=C.ref(""),I=C.ref(!1),B=C.reactive({mobile:!1,email:!1}),D=()=>{s.value=!0},W=z=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleVerifySuccess ~ captchaData:",z),s.value=!1,console.log("🍉 ~ useForgetPassword.ts:53 ~ handleVerifySuccess ~ ctiveStep.value:",e.value),e.value===1&&S(z)},k=({captchaData:z,startTimer:E})=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleSendCodeVerifySuccess ~ captchaData:",z),e.value===2&&N(z,E)},S=async z=>{var E;r.value=!0;try{const q=await b.checkAccountExistsFPApi({account:p.userName,...z});if((E=q.data.data)!=null&&E.exists){l.value=q.data.data;const F=!!l.value.email,w=!!l.value.mobile;!F&&!w?m.value=!0:(m.value=!1,e.value=2,F?(A.value="email",v.email=!1,v.mobile=!w):(A.value="mobile",v.mobile=!1,v.email=!0))}else U.Message.error(i.isEn?"Account does not exist":"账号不存在")}catch(q){console.error(q)}finally{r.value=!1}},N=async(z,E)=>{console.log("🍓🍓 ~ useForgetPassword.ts:120 ~ sendVerifyCode ~ captchaData:",z);try{u.value=z;const{data:q}=await b.getMEVCodeApi({account:l.value.account,target:A.value,...z});console.log("🍉 ~ useForgetPassword.ts:127 ~ sendVerifyCode ~ res:",q),q.code===0&&(U.Message.success(i.isEn?"Verification code sent":"验证码已发送"),T.value=q.data.verifyCode,E(),A.value==="mobile"?B.mobile=!0:B.email=!0)}catch(q){console.error(q)}};return{activeStep:e,activeTab:A,loading:r,verifyVisible:s,formA:p,formB:x,userData:l,disabledTabs:v,showCustomerService:m,codeCountdown:B,codeReady:I,handleTriggerVerify:D,handleVerifySuccess:W,handleSendCodeVerifySuccess:k,handleSubmitReset:async()=>{var z;if(!((z=u.value)!=null&&z.uuid)){U.Message.info(i.isEn?"Please get the verification code first":"请先获取验证码");return}r.value=!0;try{const E={id:l.value.id,account:l.value.account,codeId:T.value,codeValue:x.code,password:ht.MD5(x.password).toString(),...u.value},{data:q}=await b.resetPasswordApi(E);return q.code===0?(U.Message.success(i.isEn?"Password reset successfully":"密码重置成功"),!0):(U.Message.error(q.msg),!1)}catch(E){return console.error(E),!1}finally{r.value=!1}},restFormB:()=>{x.code="",x.password="",x.confirmPassword="",T.value="",I.value=!1,B.mobile=!1,B.email=!1}}}const GC=C.defineComponent({name:"ForgetPassword",components:{ElForm:U.Form,ElFormItem:U.FormItem,ElButton:U.Button,GoogleInput:Vt,CodeInput:nn,JcVerifySlide:gn,FooterBox:bc,JcFloatInput:Un},props:{isEn:{type:Boolean,default:!1}},emits:["to-login"],setup(i,{emit:e}){const{activeStep:r,activeTab:s,loading:u,verifyVisible:p,formA:l,formB:m,userData:A,disabledTabs:v,showCustomerService:x,codeCountdown:T,handleTriggerVerify:I,handleVerifySuccess:B,handleSendCodeVerifySuccess:D,handleSubmitReset:W,restFormB:k}=HC({isEn:i.isEn}),S=C.ref(),N=C.ref(),H=(w,M,G)=>{M===""?G(new Error(i.isEn?"Please input the password again":"请再次输入密码")):M!==m.password?G(new Error(i.isEn?"Two inputs don't match!":"两次输入密码不一致!")):G()},Q={userName:[{required:!0,message:i.isEn?"Please enter username":"请输入账号",trigger:"blur"}]};return{activeStep:r,activeTab:s,loading:u,verifyVisible:p,formA:l,formB:m,userData:A,disabledTabs:v,showCustomerService:x,codeCountdown:T,formARef:S,formBRef:N,rulesA:Q,rulesB:{code:[{required:!0,validator:(w,M,G)=>tn(w,M,G,i.isEn),trigger:"blur"}],password:[{required:!0,validator:(w,M,G)=>pi(w,M,G,i.isEn),trigger:"blur"},{validator:H,trigger:"blur"}],confirmPassword:[{required:!0,validator:(w,M,G)=>pi(w,M,G,i.isEn),trigger:"blur"},{validator:H,trigger:"blur"}]},handleStep1Next:()=>{S.value.validate(w=>{w&&I()})},handleStep2Submit:async()=>{N.value&&await N.value.validate(async w=>{w&&await W()&&e("to-login")})},handleChangeTab:w=>{w&&v[w]||(s.value=w||s.value,k())},handleTriggerVerify:I,handleVerifySuccess:B,handleSendCodeVerifySuccess:D}}}),JC="data:image/webp;base64,UklGRsRFAABXRUJQVlA4WAoAAAAQAAAAfwIA3wEAQUxQSLkLAAABFMVt20a2sv/U6Wm0/4iYAH3QsQAZj5Skpeqc1H6r0r4PNiInDqR6gg0QUQ20fqiT2bwp+VTtHH8POAbt57zXh2N0nHFNdXEEirStD0qrtrdupA+CIBhCIQhCIASCGdQMGgaGkGEgCIFgCIagH83cZ9fyt5dExARQsrW3iiT5CFMiHfgYkyKFNaw19GO7PavTG613od8aRcQE0HX/P27kCLYFYzRrWGt4R5pflTvMnU7tXt46AesczhPoCawEaZmjVq6aVcqZbk+p3Ut9EM0DGHyCf6GDkpcDE6wiYgJkxbZdNxIPIbgMLgKFgBCkERiBQ0Am4EYgBBMCEYIgEIOL4PxOnXP75a+ICFz+v/x/+f/y/+X/y/+X0PNXU4yhvJW99lMuVfuOQy+R3mphztGE1rL3U4f9zCpnLUzxg3hvovYLj+us2xo0aGtnBEMOaWUNFcR7V/vtDmkbRQjiKsN+31ffcmjgXYb9/q++UUig0of9OWVfg0Hexf642jkM5Cr2h9bOAYCq2B9dO0892sUeoPY86/gc9hSvkucb1WHPsvNcY7EHqoVmGe0f9lBHzzOM6rAne/Ls4tMer5aZxWKPWMusYrHHrGVGsdij1jKbWOxxa5lJLPbItcyi3O2xa5lBVIc9ecnTZx/29HueOizmQH3NG+rmRN0mzT7Mjz1PmFXMlVpmCzVz55WnCqt5tM4TauZUzZOE1fxap0gz12qeHvky596vybEP82/PE4NOc7Hmab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fh4kf50Yo5x8pu/Oc5pMH5gfHRGqPl1yECC0d/6Hcw3+LYJnc3NgqjlT/otdhdVZOgbE/MCv2kR9RHZU2zZ0fJCmsqeSKpGFNOlwtYf4MsTPazDC29KQaeaqjeWoJxOBVkwiLT6DY8uYm3EaZ9jUhSxFgNt+KLB9uwDpJ1NpOl5fx2X0+df/t4vPShoAQCGIY4Y9n+Wx39CEAAAACEn//+4e+kMk8wQRCCl4Sj1tWs4IV3VDIWkKhr20cMBeMCQv7DaL/6Q5/q5N1V/T1FqcBhJpYbsy3AWdy3C/vW0pBzMcoHH8IB9KhCDVVQopf5eE4DMA/HlaJmN6xKX7k6AAAAAAAAAAAAAA";var jC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"forget-password-container"},[r("div",{staticClass:"forget-box"},[r("div",{staticClass:"header-title"},[r("h1",[e._v(e._s(e.isEn?"Reset Password":"重置密码"))])]),e.showCustomerService?r("div",{staticClass:"kefu-wrapper"},[r("img",{staticClass:"kefu-img",attrs:{src:JC}}),r("p",{staticClass:"kefu-text"},[e._v(" "+e._s(e.isEn?"The current account does not have a phone number and email, and cannot be verified. Please contact customer service directly":"当前账号没有手机号和邮箱,无法验证,请直接联系客服。")+" ")]),r("div",[e._v(e._s(e.isEn?"Customer Service":"联系客服"))])]):r("div",{staticClass:"form-wrapper"},[e.activeStep===1?r("div",[r("el-form",{ref:"formARef",attrs:{model:e.formA,rules:e.rulesA}},[r("el-form-item",{staticClass:"jc:mb-5!",attrs:{prop:"userName"}},[r("GoogleInput",{attrs:{value:e.formA.userName,placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},on:{input:function(s){e.formA.userName=s}}})],1),r("el-button",{staticClass:"submit-btn",attrs:{type:"primary",loading:e.loading},on:{click:e.handleStep1Next}},[e._v(" "+e._s(e.isEn?"Next":"下一步")+" ")])],1)],1):e._e(),e.activeStep===2?r("div",[r("div",{staticClass:"tab-switcher"},[r("div",{staticClass:"tab-item",class:{active:e.activeTab==="email",disabled:e.disabledTabs.email},on:{click:function(s){return e.handleChangeTab("email")}}},[r("svg",{staticClass:"icon-svg",attrs:{t:"1767855712095",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"}},[r("path",{attrs:{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"}})]),e._v(" "+e._s(e.isEn?"Email Verify":"邮箱验证")+" ")]),r("div",{staticClass:"tab-item",class:{active:e.activeTab==="mobile",disabled:e.disabledTabs.mobile},on:{click:function(s){return e.handleChangeTab("mobile")}}},[r("svg",{staticClass:"icon-svg",attrs:{t:"1767855760413",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"}},[r("path",{attrs:{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"}})]),e._v(" "+e._s(e.isEn?"Mobile Verify":"手机验证")+" ")])]),r("el-form",{ref:"formBRef",attrs:{model:e.formB,rules:e.rulesB}},[r("el-form-item",{staticClass:"info-item"},[r("p",{staticClass:"default-info"},[r("span",{staticClass:"title"},[e._v(" "+e._s(e.activeTab==="email"?e.isEn?"Email":"邮箱":e.isEn?"Mobile":"手机号"))]),r("span",{staticClass:"user-value"},[e._v(" "+e._s(e.activeTab==="email"?e.userData.email:e.userData.mobile))])])]),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{"show-icon":"",value:e.formB.code,placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:!0,"is-en":e.isEn,"custom-countdown":e.activeTab==="email"?e.codeCountdown.email:e.codeCountdown.mobile},on:{input:function(s){e.formB.code=s},send:e.handleSendCodeVerifySuccess}})],1),r("el-form-item",{attrs:{prop:"password"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{value:e.formB.password,type:"password","show-password":"",label:e.isEn?"Password":"密码",placeholder:e.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},on:{input:function(s){e.formB.password=s}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}],null,!1,2767601835)})],1),r("el-form-item",{attrs:{prop:"confirmPassword"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{value:e.formB.confirmPassword,type:"password","show-password":"",label:e.isEn?"Confirm Password":"确认密码",placeholder:e.isEn?"Enter password again":"请再次输入密码"},on:{input:function(s){e.formB.confirmPassword=s}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}],null,!1,2767601835)})],1),r("el-button",{staticClass:"submit-btn",attrs:{type:"primary",loading:e.loading},on:{click:e.handleStep2Submit}},[e._v(" "+e._s(e.isEn?"Confirm":"确认修改")+" ")])],1)],1):e._e()])]),r("FooterBox",{style:{margin:"12px -16px -16px"},attrs:{label:e.isEn?"Back to":"返回","sub-label":e.isEn?"log in":"登录"},on:{"handle-click":function(s){return e.$emit("to-login")}}}),r("JcVerifySlide",{attrs:{visible:e.verifyVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.verifyVisible=s},success:e.handleVerifySuccess}})],1)},zC=[],QC=me(GC,jC,zC,!1,null,"a511aae1");const Ec=QC.exports,KC=Object.freeze(Object.defineProperty({__proto__:null,default:Ec},Symbol.toStringTag,{value:"Module"})),XC={name:"LoginTypeSwitcher",components:{ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton},props:{value:{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:["input","change"],methods:{handleChange(i){this.$emit("input",i),this.$emit("change",i)}}};var YC=function(){var e=this,r=e._self._c;return r("el-radio-group",{staticClass:"login-type-switcher",attrs:{value:e.value},on:{input:e.handleChange}},[e.showAccount?r("el-radio-button",{attrs:{label:"account"}},[r("div",{staticClass:"switcher-content"},[r("svg",{staticClass:"switcher-icon",class:{"is-active":e.value==="account"},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{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"}})]),r("span",[e._v(e._s(e.isEn?"Password":"账号密码"))])])]):e._e(),e.showEmail?r("el-radio-button",{attrs:{label:"email"}},[r("div",{staticClass:"switcher-content"},[r("svg",{staticClass:"switcher-icon",class:{"is-active":e.value==="email"},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{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"}})]),r("span",[e._v(e._s(e.isEn?"Email":"邮箱"))])])]):e._e(),e.showMobile?r("el-radio-button",{attrs:{label:"mobile"}},[r("div",{staticClass:"switcher-content"},[r("svg",{staticClass:"switcher-icon",class:{"is-active":e.value==="mobile"},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{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"}})]),r("span",[e._v(e._s(e.isEn?"Cell Phone":"手机号"))])])]):e._e()],1)},$C=[],ZC=me(XC,YC,$C,!1,null,"3c937e8d");const bi=ZC.exports,e1=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"})),t1=C.defineComponent({name:"ThirdBindLogin",components:{ElButton:U.Button,ElForm:U.Form,ElFormItem:U.FormItem,LoginTypeSwitcher:bi,GoogleInput:Vt,CodeInput:nn,JcVerifySlide:gn},props:{isEn:{type:Boolean,default:!1},bindList:{type:Array,default:()=>[]}},setup(i,{emit:e}){const r=C.ref(!1),s=C.ref(null),u=C.computed(()=>s.value?s.value:i.bindList.length===1?i.bindList[0]:null),p=C.ref(),l=C.ref({type:"account",username:"",password:"",email:"",phone:"",areaCode:"+86",code:""}),m=C.ref([]),A=C.ref(!0),v=C.ref(!1),x=C.ref(""),T=C.ref(""),I=C.ref({});let B=null;C.watch(u,F=>{F&&(l.value.username=F.account||"",l.value.email=F.email||"",l.value.phone=F.mobile||"",F.account?l.value.type="account":F.email?l.value.type="email":l.value.type="mobile",F.mobile&&m.value.length===0&&b.findPAreaCodeApi().then(w=>m.value=w.data.data.records))},{immediate:!0});const D=C.computed(()=>{const F={username:[{required:!0,trigger:"blur",message:i.isEn?"Enter Username":"请输入账号"}],password:[{required:!0,trigger:"blur",message:i.isEn?"Enter Password":"请输入密码"}],email:[{required:!0,validator:(w,M,G)=>{On(w,M,G,i.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(w,M,G)=>{Nn(w,M,G,i.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(w,M,G)=>tn(w,M,G,i.isEn),trigger:"blur"}]};return l.value.type==="account"?{username:F.username,password:F.password}:{code:F.code,...l.value.type==="email"?{email:F.email}:{phone:F.phone}}}),W=F=>{s.value=F},k=F=>{l.value.type=F},S=async F=>{var w;if((w=p.value)==null||w.clearValidate(),F=="mobile"&&m.value.length===0){const M=await b.findPAreaCodeApi();m.value=M.data.data.records}},N=F=>{var w;(w=p.value)==null||w.validateField(F,M=>{A.value=M})},H=({captchaData:F,startTimer:w})=>{I.value=F,B=w,Q(F)},Q=F=>{const w=l.value.type==="mobile",M={target:w?l.value.phone:l.value.email,uuid:F.uuid,code:F.code};w&&(M.areaCode=l.value.areaCode);const G=w?b.sendMobileCodeApi:b.sendEmailCodeApi;B&&B(),G(M).then($=>{var fe;const ye=((fe=$.data.data)==null?void 0:fe.verifyCode)||$.data.verifyCode;($.data.code===0||$.data.code===200)&&(w?x.value=ye:T.value=ye,U.Message.success(i.isEn?"Code sent":"验证码已发送"))}).catch(console.error)},z=()=>{var F;(F=p.value)==null||F.validate(w=>{if(w)if(l.value.type==="account")v.value=!0;else{if(!x.value&&!T.value)return U.Message.error(i.isEn?"Please get code first":"请先获取验证码");q(I.value)}})},E=F=>{v.value=!1,q(F)},q=F=>{var ye;r.value=!0;const w=_c(),M=b.getAuthSessionItems(),G={thirdPartyType:w==null?void 0:w.thirdPartyType,thirdPartyId:w==null?void 0:w.thirdPartyId,thirdPartyEmail:w==null?void 0:w.thirdPartyEmail,thirdPartyUserName:w==null?void 0:w.thirdPartyUserName,appId:"ERA",kick:!0,userId:((ye=u.value)==null?void 0:ye.userId)||"",activityCode:(M==null?void 0:M.activityCode)||"",referenceUserId:(M==null?void 0:M.referenceUserId)||"",prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};let $;if(l.value.type==="account")$=b.bindThirdPartyByPwdApi({...G,account:l.value.username,password:ht.MD5(l.value.password).toString(),verificationCodeUuid:F.uuid,verificationCodeValue:F.code,...F});else{const fe=l.value.type==="mobile";$=b.bindThirdPartyByCodeApi({...G,type:fe?"MOBILE":"EMAIL",account:fe?l.value.phone:l.value.email,verificationCodeUuid:fe?x.value:T.value,verificationCodeValue:l.value.code,...F})}$.then(fe=>{if(fe.data.code!==0)return U.Message.error(fe.data.msg||(i.isEn?"Login failed":"登录失败"));if(fe.data.data){const Te=fe.data.data;Te.tgc&&Mt.set("tgc",Te.tgc,{expires:30}),Te.result&&b.setTokenAll(Te.result),Te.redirectPath&&Ut(Te.redirectPath);return}if(fe.data.subCode==="USER_HAS_OTHER_BIND"){U.Message.error(i.isEn?"Bound to other user":"该账号已绑定其他用户");return}fe.data.result&&b.setTokenAll(fe.data.result),fe.data.tgc&&Mt.set("tgc",fe.data.tgc,{expires:30}),fe.data.redirectPath&&Ut(fe.data.redirectPath)}).finally(()=>{r.value=!1})};return{submitting:r,selectedUser:s,currentUser:u,bindLoginFormRef:p,loginForm:l,areaCodeData:m,codeReady:A,captchaVisible:v,computedRules:D,handleSelectUser:W,handleTypeInput:k,handleChangeSubType:S,validateField:N,handleGetCode:H,handleSubmit:z,handleCaptchaSuccess:E}}}),n1="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",r1="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",Sc="data:image/webp;base64,UklGRtgAAABXRUJQVlA4WAoAAAAQAAAAHwAAHwAAQUxQSG8AAAABcFXbVq2cCEQ4EYxABBtIhNvg0kAaEMEIJwoRiLB86/b5GxETYP9n6T1rGiyaBULjMJPEAvaaDOwkdgBWSRrAKH4rxsOTq3NzbfD0/Cr+eACzZk/XHl+Bluz5DlRTBnRTOuCSAmHSBlU0xlbzdwIAVlA4IEIAAABwAwCdASogACAAPjESjEYiENDKACADBLSAACWH58lev5ur/aAA/iw///2p6j//i/2//+H8FPIH///0cbN//9v7AAA=";var i1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"bind-container"},[r("div",{staticClass:"bind-title"},[r("div",[e._v(" "+e._s(e.currentUser?e.isEn?"Log in and link":"绑定并登录":e.isEn?"Select account to link":"请选择要关联的账号")+" ")]),e.currentUser&&e.bindList.length>1?r("div",{staticClass:"back-btn",on:{click:function(s){e.selectedUser=null}}},[e._v(" "+e._s(e.isEn?"< Back":"< 返回选择")+" ")]):e._e()]),e.currentUser?r("div",{staticClass:"bind-form-content"},[r("div",{staticClass:"current-bind-info"},[r("span",[e._v(e._s(e.isEn?"Binding Account:":"正在绑定账号:"))]),r("span",{staticClass:"highlight"},[e._v(e._s(e.currentUser.account||e.currentUser.email||e.currentUser.mobile))])]),r("el-form",{ref:"bindLoginFormRef",staticClass:"third-bind-login-form-content",attrs:{model:e.loginForm,rules:e.computedRules,"validate-on-rule-change":!1}},[r("el-form-item",{staticClass:"form-type",attrs:{prop:"type"}},[r("LoginTypeSwitcher",{staticClass:"jc:max-w-full!",attrs:{value:e.loginForm.type,"is-en":e.isEn,"show-account":"","show-email":!!e.loginForm.email&&e.currentUser.emailValidFlag==="1","show-mobile":!!e.loginForm.phone&&e.currentUser.mobileValidFlag==="1"},on:{input:e.handleTypeInput,change:e.handleChangeSubType}})],1),e.loginForm.type==="account"?[r("el-form-item",{staticClass:"form-user",attrs:{prop:"username"}},[r("GoogleInput",{attrs:{value:e.loginForm.username,disabled:"",placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},on:{input:function(s){e.loginForm.username=s}}})],1),r("el-form-item",{staticClass:"password-item",attrs:{prop:"password"}},[r("GoogleInput",{staticClass:"input-show-pass",attrs:{value:e.loginForm.password,type:"password",placeholder:e.isEn?"Password":"密码","show-password":""},on:{input:function(s){e.loginForm.password=s}}})],1)]:e.loginForm.type==="email"?[r("el-form-item",{attrs:{prop:"email"}},[r("GoogleInput",{attrs:{value:e.loginForm.email,disabled:"",placeholder:e.isEn?"Email Address":"邮箱地址"},on:{input:function(s){e.loginForm.email=s},blur:function(s){return e.validateField("email")}}})],1)]:[r("el-form-item",{ref:"areaCodeCountryId",staticClass:"tel"},[r("el-form-item",{ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("GoogleInput",{attrs:{value:e.loginForm.phone,placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",disabled:"",autocomplete:"off",maxlength:"15"},on:{input:function(s){e.loginForm.phone=s},blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("div",{staticClass:"tel-areacode"},[e._v(e._s(e.loginForm.areaCode))])]},proxy:!0}])})],1)],1)],e.loginForm.type==="email"||e.loginForm.type==="mobile"?r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{value:e.loginForm.code,placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn},on:{input:function(s){e.loginForm.code=s},send:e.handleGetCode}})],1):e._e(),r("div",{staticClass:"register-bottom"},[r("el-button",{staticClass:"submit-btn",attrs:{loading:e.submitting},on:{click:e.handleSubmit}},[e._v(" "+e._s(e.isEn?"Login and Link":"登录并绑定")+" "),r("img",{staticStyle:{width:"16px",height:"16px","vertical-align":"middle","margin-left":"4px"},attrs:{src:Sc,alt:""}})])],1)],2)],1):r("div",{staticClass:"user-list"},e._l(e.bindList,function(s,u){return r("div",{key:u,staticClass:"bind-user-card",on:{click:function(p){return e.handleSelectUser(s)}}},[e._m(0,!0),r("div",{staticClass:"bind-user-card__right"},[r("div",{staticClass:"bind-user-card__right__title"},[e._v(" "+e._s(e.isEn?s.userNameEn||s.userNameCn:s.userNameCn||s.userNameEn)+" ")]),r("div",{staticClass:"bind-user-card__right__desc"},[e._v(" "+e._s(e.isEn?s.compNameEn||s.compNameCn:s.compNameEn||s.compNameEn)+" ")]),s.email?r("div",{staticClass:"bind-user-card__right__info"},[r("img",{attrs:{src:n1}}),e._v(" "+e._s(s.email)+" ")]):e._e(),s.mobile?r("div",{staticClass:"bind-user-card__right__info"},[r("img",{attrs:{src:r1}}),e._v(" "+e._s(s.mobile)+" ")]):e._e()]),r("div",{staticClass:"bind-user-card__btn"},[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(p){return p.stopPropagation(),e.handleSelectUser(s)}}},[e._v(" "+e._s(e.isEn?"Select":"选择")+" ")])],1)])}),0),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},a1=[function(){var i=this,e=i._self._c;return i._self._setupProxy,e("div",{staticClass:"bind-user-card__left"},[e("div",{staticClass:"account-icon"})])}],s1=me(t1,i1,a1,!1,null,"d24ef5c3");const Ic=s1.exports,o1=Object.freeze(Object.defineProperty({__proto__:null,default:Ic},Symbol.toStringTag,{value:"Module"})),l1={name:"ThirdRegisterForm",components:{ElDialog:U.Dialog,ElForm:U.Form,ElFormItem:U.FormItem,ElInput:U.Input,ElButton:U.Button,ElCheckbox:U.Checkbox,ElSelect:U.Select,ElOption:U.Option,ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton,JcFloatInput:Un,CodeInput:nn,JcFloatWrapper:Ai,JcSearch:hr,ChineseCompanySearch:_i,GoogleInput:Vt,ApplyJoinBtn:wi},props:{isEn:Boolean},emits:["bind-third-party","register","register-success","need-complete"],computed:{isAgree(){return this.form.agree},countryId(){var i,e,r;return(r=(e=(i=this.form.city)==null?void 0:i.raw)==null?void 0:e.country)==null?void 0:r.id},cityId(){var i;return(i=this.form.city)==null?void 0:i.id},currentCountryIsChina(){var e;const i=this.countryId||((e=this.resistCompanyInfo)==null?void 0:e.countryId);return[1].includes(Number(i))},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:(i,e,r)=>as(i,e,r,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(i,e,r)=>_C(i,e,r,this.isEn,this),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>AC(i,e,r,this.isEn,this),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>tn(i,e,r,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(i,e,r)=>pi(i,e,r,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(i,e,r)=>{e?r():r(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:ss,getAuthSessionItems:b.getAuthSessionItems,go2Policy:os,handleBindThirdParty(i){this.$emit("bind-third-party",i==="email"?this.thirdPartyEmailVerifyList:this.thirdPartyMobileVerifyList)},async inviteJoinGetComp(){const e=b.getAuthSessionItems().compKey;if(!e)return;const{data:r}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=r.data},findDict(){b.findDictApi({dictType:"cmc_company_industry_sector"}).then(i=>{const e=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=i.data.data.records.map(r=>({...r,...e.find(s=>s.value===r.dictValue)}))}).catch(i=>{console.log("findDict err:",i)})},handleChangeCompany(i){this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){var s,u,p;const e=(await b.getLocalIpDataApi()).data;e&&e.code===0&&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:(s=e.data)==null?void 0:s.countryId},country:{id:(u=e.data)==null?void 0:u.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=(p=e.data)==null?void 0:p.countryId,this.handleSelectCity(this.form.city));const r=await b.findPAreaCodeApi();this.areaCodeData=r.data.data.records},handleSelectCity(i){var e,r,s,u;this.form.cityId=i.id,this.form.countryId=((r=(e=i.raw)==null?void 0:e.country)==null?void 0:r.id)||((u=(s=i.raw)==null?void 0:s.city)==null?void 0:u.countryId)||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(i){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(i,e=>{(i==="email"||i==="phone")&&(this.codeReady=e)})},handleGetCode({captchaData:i,startTimer:e}){this.verifyData=i;const r={target:this.form.email||this.form.phone,uuid:i.uuid,code:i.code};let s=b.sendEmailCodeApi,u=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&&(s=b.sendMobileCodeApi,u=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分钟后失效。请不要与任何人分享您的验证码。"),e(),s(r).then(p=>{var m;const l=((m=p.data.data)==null?void 0:m.verifyCode)||p.data.verifyCode;p.data.code===0&&l&&(this.currentCountryIsChina?this.mobileUid=l:this.emailUid=l,U.Message.success(u))}).catch(p=>{console.error(p)})},handleRegister(){this.$refs.registerFormRef.validate(i=>{var m;if(!i)return;const e=this.getAuthSessionItems(),{thirdPartyId:r,thirdPartyEmail:s,thirdPartyType:u,thirdPartyUserName:p}=_c();let l={appId:this.appId,fromSys:this.appId,passwd:ht.MD5(this.form.password).toString(),industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,clickSource:e.clickSource||"",activityCode:e.activityCode||"",referenceUserId:e.referenceUserId||"",inviterEmpNo:e.empNo||"",registerType:e.registerType||"",registerEvent:e.registerEvent||"",thirdPartyId:r,thirdPartyEmail:s,thirdPartyType:u,thirdPartyUserName:p,prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};this.currentCountryIsChina?Object.assign(l,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:(m=this.areaCodeData.find(A=>A.telCode===this.form.areaCode))==null?void 0:m.id,account:b.Encrypt(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(l,{type:"EMAIL",account:b.Encrypt(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(l):this.handleNewCompanySubmit(l)})},async handleNewCompanySubmit(i){const e={...this.form.kqInfo,...i,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?e.compNameCn=this.form.companyName:e.compNameEn=this.form.companyName,this.$emit("register",e),this.loading=!0;try{const r=await b.registerByThirdPartyApi(e);this.handlePostRegister(r)}catch{this.loading=!1}},async handleApplyJoinSubmit(i){const e={...i,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(e.nameCn=this.form.nameCn),this.form.nameEn&&(e.nameEn=this.form.nameEn),["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(s=>delete e[s]),this.$emit("register",e),this.loading=!0;try{const s=await b.registerJoinCompByThirdPartyApi(e);this.handlePostRegister(s)}catch{this.loading=!1}},handlePostRegister(i){const e=this.getAuthSessionItems();if(i.data.code===0)if(i.data.data.redirect)try{if(Mt.set("tgc",i.data.data.tgc,{expires:30}),i.data.data.result&&b.setTokenAll(i.data.data.result),i.data.data.result&&i.data.data.result.improveComp){this.$emit("need-complete",i.data.data.result.improveComp);return}const r=i.data.data.redirectPath||e.path||"/",s={isHandled:!1},u=l=>{s.isHandled=!0;const m=Number(l)||0;setTimeout(()=>{b.resetAuthSessionItems(),Ut(r)},m)},p=()=>{s.isHandled=!0};this.$emit("register-success",{user:i.data.data.result,redirectPath:r,preventDefault:p,redirect:u}),setTimeout(()=>{s.isHandled||(b.resetAuthSessionItems(),Ut(r))},0)}catch(r){console.log("handlePostRegister error:",r)}else this.loading=!1,U.Message.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,U.Message.error(i.data.msg)}}};var c1=function(){var s,u,p;var e=this,r=e._self._c;return r("div",{staticClass:"third-register-form-container"},[r("el-form",{ref:"registerFormRef",staticClass:"auth-form",attrs:{model:e.form,rules:e.rules}},[e.hasResistCompany?[r("div",{staticClass:"resist-company-info-card"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Company Name":"公司名称"))])]),r("span",{staticClass:"change-link",on:{click:function(l){e.hasResistCompany=!1}}},[e._v(" "+e._s(e.isEn?"Change":"修改")+" ")])]),r("div",{staticClass:"company-content"},[r("h4",{staticClass:"company-name"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.compNameEn:e.resistCompanyInfo.compNameCn||e.resistCompanyInfo.compNameEn)+" ")])]),r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" Location(City)")])])]),r("div",{staticClass:"location-info"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.countryNameEn:e.resistCompanyInfo.countryNameCn)+" / "+e._s(e.isEn?e.resistCompanyInfo.cityNameEn:e.resistCompanyInfo.cityNameCn)+" ")])]),r("el-form-item",{staticClass:"name-input-item",attrs:{prop:e.currentCountryIsChina?"nameCn":"nameEn"}},[r("JcFloatInput",{attrs:{label:e.currentCountryIsChina?e.isEn?"Your Full Name in Chinese":"您的中文名称":e.isEn?"Your Full Name in English":"您的名称",placeholder:e.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-user"})]},proxy:!0}]),model:{value:e.form[e.currentCountryIsChina?"nameCn":"nameEn"],callback:function(l){e.$set(e.form,e.currentCountryIsChina?"nameCn":"nameEn",l)},expression:"form[currentCountryIsChina ? 'nameCn' : 'nameEn']"}})],1)]:[r("el-form-item",{attrs:{prop:"city"}},[r("JcFloatWrapper",{attrs:{label:e.isEn?"Company Location (City)":"公司所在城市","has-value":!!(e.form.city&&e.form.city.id)}},[r("JcSearch",{staticClass:"jc:my-0! search-city-item",style:{"--original-text-main":"#232324"},attrs:{"show-search-icon":!1,"search-type-list":["City"],placeholder:e.isEn?"Location(City)":"请输入公司所在城市"},on:{select:e.handleSelectCity},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-location"})]},proxy:!0}],null,!1,465018025),model:{value:e.form.city,callback:function(l){e.$set(e.form,"city",l)},expression:"form.city"}})],1)],1),r("el-form-item",{attrs:{prop:"companyName"}},[r("JcFloatWrapper",{attrs:{label:e.currentCompanyLabel}},[r("ChineseCompanySearch",{staticClass:"jc:my-0! search-company-item",attrs:{"company-name":e.form.companyName,"use-kq":e.form.useKq,"kq-code":e.form.kqCode,"kq-info":e.form.kqInfo,"country-id":((p=(u=(s=e.form.city)==null?void 0:s.raw)==null?void 0:u.country)==null?void 0:p.id)||null,city:e.form.city},on:{"update:companyName":function(l){return e.$set(e.form,"companyName",l)},"update:company-name":function(l){return e.$set(e.form,"companyName",l)},"update:useKq":function(l){return e.$set(e.form,"useKq",l)},"update:use-kq":function(l){return e.$set(e.form,"useKq",l)},"update:kqCode":function(l){return e.$set(e.form,"kqCode",l)},"update:kq-code":function(l){return e.$set(e.form,"kqCode",l)},"update:kqInfo":function(l){return e.$set(e.form,"kqInfo",l)},"update:kq-info":function(l){return e.$set(e.form,"kqInfo",l)},change:e.handleChangeCompany},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-company"})]},proxy:!0}],null,!1,3014956371)})],1)],1),e.companyResistCn||e.companyResistEn?r("ApplyJoinBtn",{on:{"apply-join":e.handleApplyJoinClick}}):e._e()],e.currentCountryIsChina?r("el-form-item",{ref:"areaCodeCountryId",staticClass:"phone-form-item"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("google-input",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{blur:function(l){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-phone"}),r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:function(l){return e.validateField("areaCode")}},model:{value:e.form.areaCode,callback:function(l){e.$set(e.form,"areaCode",l)},expression:"form.areaCode"}},[e._l(e.areaCodeData,function(l){return r("el-option",{key:l.id,attrs:{label:l.telCode,value:l.telCode}})}),r("el-option",{attrs:{label:"+86",value:"+86"}})],2)],1)]},proxy:!0}],null,!1,2606172549),model:{value:e.form.phone,callback:function(l){e.$set(e.form,"phone",l)},expression:"form.phone"}})],1)],1):e._e(),e.currentCountryIsChina?e._e():r("el-form-item",{staticClass:"email-form-item",attrs:{prop:"email"}},[r("JcFloatInput",{attrs:{label:e.isEn?"Business Email Address":"企业邮箱",placeholder:e.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱"},on:{blur:function(l){return e.validateField("email")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-email"})]},proxy:!0}],null,!1,678594200),model:{value:e.form.email,callback:function(l){e.$set(e.form,"email",l)},expression:"form.email"}})],1),e.showEmailBindBtn?[r("el-form-item",[r("div",{staticClass:"third-party-bind-btn",on:{click:function(l){return e.handleBindThirdParty("email")}}},[e._v(" "+e._s(e.isEn?"To bind":"去绑定")+" "),r("img",{style:{marginLeft:"2px",width:"8px",height:"12px"},attrs:{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png"}})])])]:e._e(),e.showMobileBindBtn?[r("el-form-item",[r("div",{staticClass:"third-party-bind-btn",on:{click:function(l){return e.handleBindThirdParty("mobile")}}},[e._v(" "+e._s(e.isEn?"To bind":"去绑定")+" "),r("img",{style:{marginLeft:"2px",width:"8px",height:"12px"},attrs:{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png"}})])])]:e._e(),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":""},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}]),model:{value:e.form.code,callback:function(l){e.$set(e.form,"code",l)},expression:"form.code"}})],1),r("el-form-item",{staticClass:"password-form-item",attrs:{prop:"password"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{type:"password","show-password":"",label:e.isEn?"Password":"密码",placeholder:e.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}]),model:{value:e.form.password,callback:function(l){e.$set(e.form,"password",l)},expression:"form.password"}})],1),e.hasResistCompany?e._e():r("div",{staticClass:"sector-section"},[r("p",{staticClass:"sector-label"},[e._v(" "+e._s(e.isEn?"Industry Sector":"行业类型")+" ")]),r("div",{staticClass:"sector-group"},e._l(e.sectors,function(l){return r("div",{key:l.value,staticClass:"sector-item",class:{active:e.form.sector===l.value},on:{click:function(m){e.form.sector=l.value}}},[e._v(" "+e._s(e.isEn?l.en:l.cn)+" "),e.form.sector===l.value?r("i",{staticClass:"icon-auth-checked"}):e._e()])}),0)]),r("el-form-item",{staticClass:"agree-item",attrs:{prop:"agree"}},[r("el-checkbox",{model:{value:e.form.agree,callback:function(l){e.$set(e.form,"agree",l)},expression:"form.agree"}},[r("span",{staticClass:"agree-text"},[e._v(" "+e._s(e.isEn?"I agree":"我同意")+" "),r("span",{staticClass:"link-type",on:{click:function(l){return l.stopPropagation(),e.go2Agreement.apply(null,arguments)}}},[e._v(e._s(e.isEn?"User Agreement":"《用户条款和协议》"))]),e._v(" "+e._s(e.isEn?"and":"和")+" "),r("span",{staticClass:"link-type",on:{click:function(l){return l.stopPropagation(),e.go2Policy.apply(null,arguments)}}},[e._v(e._s(e.isEn?"Privacy Policy":"《隐私政策》"))])])])],1),r("el-button",{staticClass:"submit-btn register-btn",class:["register-btn-is-active"],attrs:{disabled:e.loading,loading:e.loading},on:{click:e.handleRegister}},[e._v(" "+e._s(e.isEn?"Register and Log in":"注册并登录")+" "),r("i",{staticClass:"el-icon-right",staticStyle:{"margin-left":"8px"}})])],2)],1)},u1=[],f1=me(l1,c1,u1,!1,null,"54b21d24");const xc=f1.exports,d1=Object.freeze(Object.defineProperty({__proto__:null,default:xc},Symbol.toStringTag,{value:"Module"}));function Tc(i={}){console.log("🍉 ~ useAuthLogin.ts:27 ~ useAuthLogin ~ options:",i);const{appId:e="ERA",isEn:r=!1}=i,s=C.ref(!1),u=C.ref(!1),p=C.ref(null),l=C.ref(!1),m=I=>{console.log("🍉 ~ useAuthLogin.ts:36 ~ executeRedirect ~ loginData:",I);const B=b.getAuthSessionItems()||{},D=I.redirectPath||B.path||"/";I.result&&b.setTokenAll(I.result),console.log("🍉 Redirecting to:",D),Ut(D)},A=async I=>{var F;const{loginType:B,loginForm:D={},captchaData:W={},isKick:k=!1,mobileUid:S,emailUid:N,areaCodeData:H=[],remember:Q}=I;s.value=!0,k||(p.value=W);const z=b.getAuthSessionItems()||{},E={appId:e,fromSys:e,kick:k,inviterInfo:z.empNo||void 0,redirectPath:z.path||"/",...z,...W,prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};let q=b.loginApi;if(B==="account")Object.assign(E,{type:"PASSWORD",username:D.username,password:ht.MD5(D.password).toString(),uniqueCode:""});else if(B==="wechat")Object.assign(E,{type:"WECHAT",uniqueCode:z.uniqueCode}),!z.uniqueCode&&!E.uniqueCode&&console.warn("WeChat login missing uniqueCode"),q=b.loginApi;else{const w=D.type==="mobile",M=w?S:N;if(Object.assign(E,{type:w?"MOBILE":"EMAIL",account:w?D.phone:D.email,verificationCodeValue:D.code,verificationCodeUuid:M}),w){const G=H.find($=>$.telCode===D.areaCode);E.areaCode=D.areaCode,E.areaCodeCountryId=G==null?void 0:G.id}if(!E.verificationCodeUuid){s.value=!1,U.Message.error(r?"Please get the verification code first":"请先获取验证码");return}q=b.loginByEmailOrMobileCodeApi}try{const{data:w}=await q(E);if(console.log("🍉 ~ useAuthLogin.ts:144 ~ handleAuthSubmit ~ res:",w),w.code===0){const M=w.data||{};if(M.hasLogon===!0&&!M.tgc){v(I);return}if(M.tgc){if(M.result&&b.setTokenAll(M.result),Q&&Mt.set("tgc",M.tgc,{expires:30,domain:b.getFirstDomain()}),(F=M.result)==null?void 0:F.improveComp){l.value=!0,s.value=!1,i.onNeedComplete&&i.onNeedComplete(M);return}U.Message.success(r?"Login successful":"登录成功"),i.onSuccess?i.onSuccess(M):m(M)}else i.onSuccess&&i.onSuccess(M)}else U.Message.error(w.msg||(r?"Login failed":"登录失败"))}catch(w){console.error("Login Error:",w),U.Message.error(r?"Network Error":"网络请求异常")}finally{s.value=!1}},v=I=>{U.MessageBox.confirm(r?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",r?"Tips":"提示",{confirmButtonText:r?"Confirm":"确定",cancelButtonText:r?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{A({...I,isKick:!0})}).catch(()=>{s.value=!1})},x=async I=>{var F;const{loginType:B,loginForm:D,captchaData:W,uniqueCode:k,isKick:S=!0,mobileUid:N,emailUid:H,areaCodeData:Q=[]}=I;console.log("🍉 ~ useAuthLogin.ts:261 ~ handleBindSubmit ~ params:",I),s.value=!0;const z=b.getAuthSessionItems()||{};let E,q={appId:e,uniqueCode:k,kick:S,code:W.code,uuid:W.uuid,redirectPath:z.path||"/",fromSys:e,prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};if(console.log("🍉 ~ useAuthLogin.ts:279 ~ handleBindSubmit ~ payload:",q),B==="account")E=b.loginPwdBindWechatApi,Object.assign(q,{username:D.username,password:ht.MD5(D.password).toString(),rememberMe:D.remember||!1});else{E=b.loginCodeBindWechatApi;const w=D.type==="mobile",M=w?N:H;if(Object.assign(q,{type:w?"MOBILE":"EMAIL",account:w?D.phone:D.email,verificationCodeValue:D.code,verificationCodeUuid:M,rememberMe:D.remember||!1}),w){const G=Q.find($=>$.telCode===D.areaCode);Object.assign(q,{areaCode:D.areaCode,areaCodeCountryId:G==null?void 0:G.id})}if(!q.verificationCodeUuid){s.value=!1,U.Message.error(r?"Please get the verification code first":"请先获取验证码");return}}try{const{data:w}=await E(q);if(console.log("🍉 Bind Result:",w),w.code===0){const M=w.data||{};if(M.hasLogon===!0&&!M.tgc){T(I);return}if(M.tgc){if(M.result&&b.setTokenAll(M.result),Mt.set("tgc",M.tgc,{expires:30,domain:b.getFirstDomain()}),(F=M.result)==null?void 0:F.improveComp){l.value=!0,s.value=!1,i.onNeedComplete&&i.onNeedComplete(M);return}U.Message.success(r?"Linked and logged in successfully":"绑定并登录成功"),i.onSuccess?i.onSuccess(M):m(M)}else i.onSuccess&&i.onSuccess(M)}else U.Message.error(w.msg||(r?"Binding failed":"绑定失败"))}catch(w){console.error("Bind Error:",w),U.Message.error(r?"Network Error":"网络请求异常")}finally{s.value=!1}},T=I=>{U.MessageBox.confirm(r?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",r?"Tips":"提示",{confirmButtonText:r?"Confirm":"确定",cancelButtonText:r?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{x({...I,isKick:!0})}).catch(()=>{s.value=!1})};return{loading:s,captchaVisible:u,handleAuthSubmit:A,executeRedirect:m,loginNeedComplete:l,handleBindSubmit:x}}const p1=C.defineComponent({name:"WechatBindLogin",components:{ElForm:U.Form,ElFormItem:U.FormItem,ElButton:U.Button,ElSelect:U.Select,ElOption:U.Option,LoginTypeSwitcher:bi,GoogleInput:Vt,CodeInput:nn,JcVerifySlide:gn},props:{isEn:{type:Boolean,default:!1}},emits:["needComplete"],setup(i,{emit:e}){const{loading:r,captchaVisible:s,handleBindSubmit:u}=Tc({appId:"ERA",isEn:i.isEn,onNeedComplete:E=>{console.log("需要完善信息,暂不关闭弹窗"),e("needComplete",E)}}),p=C.ref({type:"account",username:"",password:"",remember:!1,email:"",phone:"",areaCode:"",code:""}),l=C.ref([]),m=C.ref(),A=C.ref(!1),v=C.ref(!1),x=C.ref({}),T=C.ref(""),I=C.ref(""),B=C.computed(()=>p.value.type),D=C.computed(()=>{const E={username:[{required:!0,trigger:"blur",message:i.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:i.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(q,F,w)=>{On(q,F,w,i.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(q,F,w)=>{Nn(q,F,w,i.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(q,F,w)=>{tn(q,F,w,i.isEn)},trigger:"blur"}]};return B.value==="account"?{username:E.username,password:E.password}:B.value==="email"||B.value==="mobile"?{code:E.code,...p.value.type==="email"?{email:E.email}:{phone:E.phone}}:{}});function W(E){p.value.type=E}async function k(E){if(E=="mobile"&&l.value.length===0){const q=await b.findPAreaCodeApi();l.value=q.data.data.records}}function S(E){p.value.areaCode=E,N("areaCode")}function N(E){m.value.validateField(E,q=>{A.value=q})}function H(){m.value.validate(E=>{if(E)if(B.value==="account")s.value=!0;else{if(!x.value||!x.value.uuid)return U.Message.error(i.isEn?"Please get code first":"请先获取验证码");Q(x.value)}})}function Q(E){s.value=!1;const F=(b.getAuthSessionItems()||{}).uniqueCode||"";if(!F){console.error("Missing uniqueCode for binding");return}u({loginType:B.value==="account"?"account":"code",loginForm:p.value,captchaData:{...E},uniqueCode:F,mobileUid:T.value,emailUid:I.value,areaCodeData:l.value})}function z({captchaData:E,startTimer:q}){const F=p.value.type==="mobile";x.value=E;const w={target:p.value.email||p.value.phone,uuid:E.uuid,code:E.code};F&&(w.areaCode=p.value.areaCode);const M=F?b.sendMobileCodeApi:b.sendEmailCodeApi;q(),M(w).then(G=>{var ye;const $=((ye=G.data.data)==null?void 0:ye.verifyCode)||G.data.verifyCode;G.data.code===0&&$&&(F?T.value=$:I.value=$,U.Message.success(i.isEn?"Verification code sent":"验证码已发送"))}).catch(G=>{console.error(G)})}return{loginForm:p,areaCodeData:l,bindLoginFormRef:m,codeReady:A,isCounting:v,loadingBtn:r,captchaVisible:s,LoginType:B,computedRules:D,handleTypeInput:W,handleChangeSubType:k,handleAreaCodeChange:S,validateField:N,handleSubmit:H,handleCaptchaSuccess:Q,handleGetCode:z}}}),h1="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";var m1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[r("div",{staticClass:"bind-wechat-title"},[r("div",{staticClass:"title"},[r("img",{staticClass:"icon-auth-wechat",attrs:{src:h1,alt:""}}),e._v(" "+e._s(e.isEn?"Log in and link with WeChat":"登录并绑定微信")+" ")]),r("div",{staticClass:"sub-title"},[e._v(" "+e._s(e.isEn?"After linking, you can log in via WeChat scan, which is convenient and quick":"绑定后,可通过微信扫码登录,方便快捷")+" ")])]),r("el-form",{ref:"bindLoginFormRef",staticClass:"wechat-bind-login-form-content",attrs:{model:e.loginForm,rules:e.computedRules,"validate-on-rule-change":!1}},[r("el-form-item",{staticClass:"form-type",attrs:{prop:"type"}},[r("LoginTypeSwitcher",{staticClass:"jc:max-w-full!",attrs:{value:e.loginForm.type,"is-en":e.isEn,"show-account":""},on:{input:e.handleTypeInput,change:e.handleChangeSubType}})],1),e.LoginType==="account"?[r("el-form-item",{staticClass:"form-user",attrs:{prop:"username"}},[r("GoogleInput",{attrs:{value:e.loginForm.username,placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},on:{input:function(s){e.loginForm.username=s}}})],1),r("el-form-item",{staticClass:"password-item",attrs:{prop:"password"}},[r("GoogleInput",{staticClass:"input-show-pass",attrs:{value:e.loginForm.password,type:"password",placeholder:e.isEn?"Password":"密码","show-password":""},on:{input:function(s){e.loginForm.password=s}}})],1)]:e.LoginType==="email"?[r("el-form-item",{attrs:{prop:"email"}},[r("GoogleInput",{attrs:{value:e.loginForm.email,placeholder:e.isEn?"Email Address":"邮箱地址"},on:{input:function(s){e.loginForm.email=s},blur:function(s){return e.validateField("email")}}})],1)]:[r("el-form-item",{ref:"areaCodeCountryId",staticClass:"tel"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("GoogleInput",{attrs:{value:e.loginForm.phone,placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{input:function(s){e.loginForm.phone=s},blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{value:e.loginForm.areaCode,placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:e.handleAreaCodeChange}},[e._l(e.areaCodeData,function(s){return r("el-option",{key:s.id,attrs:{label:s.telCode,value:s.telCode}})}),r("el-option",{attrs:{label:"+86",value:"+86"}})],2)],1)]},proxy:!0}])})],1)],1)],e.LoginType==="email"||e.LoginType==="mobile"?r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{value:e.loginForm.code,placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn},on:{input:function(s){e.loginForm.code=s},send:e.handleGetCode}})],1):e._e(),r("div",{staticClass:"register-bottom"},[r("el-button",{staticClass:"submit-btn",attrs:{loading:e.loadingBtn},on:{click:e.handleSubmit}},[e._v(e._s(e.isEn?"Login and Link":"登录并绑定")+" "),r("img",{staticStyle:{width:"16px",height:"16px","vertical-align":"middle"},attrs:{src:Sc,alt:""}})])],1)],2),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},g1=[],v1=me(p1,m1,g1,!1,null,"a9f6eb3d");const Rc=v1.exports,y1=Object.freeze(Object.defineProperty({__proto__:null,default:Rc},Symbol.toStringTag,{value:"Module"})),C1="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==",_1="data:image/webp;base64,UklGRiQBAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSL8AAAABcFXbVtygAAdPSGKgDqIgMVAMgAIcxEdRAApQcJ0E3tD5LyLYuG0jSXKOaqvMPsL9Ha6xASWTFT5hMHmbKphYTJIwNRlAYFz0ZMB4PDiqHrB+XhpHMT4TIOtZOJhbp0OUOCcy1XDo75yrSk6UONkFJb71XIAWhxs/aFYm7qhkV5PvDmWYa1lGV2s4Wwd6OcM6RlE+dOaZZrpEXD5BoOr3d+sQWTfFkxAbhATAOF1DN6cKD1TD3cncipS2uz9DBwBWUDggPgAAAFADAJ0BKjAAMAA+JQ6FQqGHjAYAkS0gABSWHJn8435xRpEAAP7//k4XP//7dtNf5ihlI///6OQD//9v7AAA",A1=C.defineComponent({name:"WechatChooseType",components:{ElButton:U.Button},props:{isEn:{type:Boolean,default:!1}},emits:["toBind","toRegister"],setup(i,{emit:e}){return{handleLogin:()=>{e("toBind")},handleRegister:()=>{e("toRegister")}}}});var w1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"wechat-choose-type"},[r("div",[r("div",{staticClass:"choose-title"},[e._v(" "+e._s(e.isEn?"Please select whether you already have a JCtrans account":"请选择是否已有JCtrans账号")+" ")]),r("div",{staticClass:"choose-nav"},[e._v(" "+e._s(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账号,请先注册")+" ")]),r("div",{staticClass:"btn-container"},[r("el-button",{staticClass:"choose-btn jc:mb-6 default-btn jc:outline-none!",on:{click:e.handleRegister}},[r("div",{staticClass:"btn-content"},[r("img",{staticClass:"icon-account",attrs:{src:C1,alt:"register"}}),e._v(" "+e._s(e.isEn?"Create New Account":"注册新账号")+" ")])]),r("el-button",{staticClass:"choose-btn submit-btn jc:outline-none!",attrs:{type:"primary"},on:{click:e.handleLogin}},[r("div",{staticClass:"btn-content"},[r("img",{staticClass:"icon-account",attrs:{src:_1,alt:"login"}}),e._v(" "+e._s(e.isEn?"Bind Existing Account":"绑定已有账号")+" ")])])],1)])])},b1=[],E1=me(A1,w1,b1,!1,null,"2d5009d1");const Bc=E1.exports,S1=Object.freeze(Object.defineProperty({__proto__:null,default:Bc},Symbol.toStringTag,{value:"Module"})),I1=C.defineComponent({name:"WechatLogin",components:{ElButton:U.Button},props:{appId:{type:String,default:"ERA"},path:{type:String,default:""},isEn:{type:Boolean,default:!1}},emits:["success","need-register","need-complete"],setup(i,{emit:e}){const r=C.ref(null),s=C.ref(!0),u=C.ref(!1),p=C.ref("");let l=null;const m=async k=>{if(await C.nextTick(),!!r.value)try{await gv.toCanvas(r.value,k,{width:200,margin:1,color:{dark:"#000000",light:"#ffffff"},errorCorrectionLevel:"M"})}catch(S){console.error("QR Code render error:",S)}},A=async()=>{var k,S;s.value=!0,T();try{const{data:N}=await b.getLoginQrCode();if((N==null?void 0:N.code)===0){p.value=(k=N.data)==null?void 0:k.uniqueCode,u.value=!1;try{b.setAuthSessionItems({uniqueCode:p.value})}catch(H){console.log("setAuthSessionItems error:",H)}await m((S=N.data)==null?void 0:S.qrCodeUrl),v()}else u.value=!0}catch(N){console.error("Fetch WeChat QR fail:",N)}finally{s.value=!1}},v=()=>{var S;const k=((S=window.BASE_INFO)==null?void 0:S.WX_POLLING_TIME)||3e3;l=setInterval(async()=>{try{const{data:N}=await b.loginByQrCode({uniqueCode:p.value,appId:i.appId,redirectPath:i.path||"",kick:!1,prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")});N.code===0&&x(N)}catch(N){console.error("Polling error:",N),T()}},k)},x=k=>{switch(k.subcode){case"EXPIRED":u.value=!0,T();break;case"FOLLOWED_CANCEL":u.value=!0,T();break;case"FOLLOWED_NO_USER":e("need-register",p.value);break;case"FOLLOWED_LOGIN_SUCCESS":T(!1),B(k.data);break}},T=(k=!0)=>{k&&(p.value=""),b.setAuthSessionItems({uniqueCode:""}),l&&(clearInterval(l),l=null)},I=()=>{A()},B=async k=>{if(k.result&&b.setTokenAll(k.result),k.redirect===!0){const S=i.appId==="CPA"?"tgc-CPA":"tgc";Mt.set(S,k.tgc,{expires:30})}if(k.hasLogon===!0)try{await U.MessageBox.confirm(i.isEn?"The account has already logged in elsewhere. Do you want to force login?":"该账号已在其他地方登录,是否强制登录?",i.isEn?"Tips":"提示",{confirmButtonText:i.isEn?"Confirm":"确定",cancelButtonText:i.isEn?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}),D()}catch{A()}else W(k.redirectPath)},D=async()=>{var k;s.value=!0;try{const{data:S}=await b.loginByQrCode({uniqueCode:p.value,appId:i.appId,redirectPath:i.path||"",kick:!0,prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")});if(S.code===0){if(b.setTokenAll(S.data.result),(k=S.data.result)!=null&&k.improveComp){e("need-complete",S.data.result.improveComp);return}W(S.data.redirectPath)}}catch{U.Message.error(i.isEn?"Login failed":"登录失败")}finally{s.value=!1}},W=k=>{localStorage.setItem("jc-qrCode-login","wx"),T(),k&&Ut(k),e("success")};return C.onMounted(()=>{A()}),C.onUnmounted(()=>{T()}),{qrCanvasRef:r,loadingCode:s,isShowMask:u,handleRefresh:I}}}),x1="data:image/webp;base64,UklGRs4CAABXRUJQVlA4WAoAAAAQAAAAJwAAJwAAQUxQSFoBAAABN6KgbRtmp+3Gn/RDEBEEkzTVdowBQKcP3554FoBl23ba5llJyswNJ2VumGWofOY/p8qSit8R/Z8A+a8elYOpw8ta7XyzQK0aYSpXkxxr+l5TIvLMOMTaaw75atjrjVMg6apzYNuvnZH3q2Wxbl7NYR4Ddz6qB+/b4lxd8llHbmrIR018WxYu3QboXfHdMLae0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tWOIT/l4AVlA4IAIBAACwBwCdASoZABgAPjESh0KiIQ39VgAQAYJbACdM5JkB+meFg2gDaAN0l4AD9QPSA/wHuJ/sl6KYX31WXITTIqQjhEf+VVEAAP0cZ9TkuKczs9Y1za4WaelqmDJ+pg5xRI8RGqa0Xf/vA/xc/Jt7352wODrO+GBNH/+k0H/0IZkEP/+9kflw8xfZOvuJnYDve0V1+ez//9tEgIWxjEjRen4x7s8w+Gha3PQxumTkBwxFTp+YlQXvZzWdZW3wRP0nsu895denVK5N8FE8Zg23a9118GTARL99uq+SY4/E8PeGs/GKL4ufe2EdSmq0ixJ9pxRZOAX/4XkoyRtaDa35BrgAAAA=";var R1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"login-wx"},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingCode,expression:"loadingCode"}],staticClass:"login-wx-code"},[r("div",{staticClass:"qr-canvas-wrapper flex-center",class:{"qrcode-error-mask":e.isShowMask}},[r("canvas",{ref:"qrCanvasRef"})]),e.isShowMask?[r("div",{staticClass:"refresh-overlay flex-center",on:{click:e.handleRefresh}},[r("img",{staticClass:"refresh-icon",attrs:{src:x1,alt:"refresh"}}),r("div",{staticClass:"expired-text mt10 mb10"},[e._v(" "+e._s(e.isEn?"The QR code has expired":"二维码已过期")+" ")]),r("el-button",{staticClass:"jc:text-white",attrs:{type:"primary"},on:{click:function(s){return s.stopPropagation(),e.handleRefresh.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Rescan QR code":"重新扫码")+" ")])],1)]:e._e(),r("div",{staticClass:"scan-tip"},[r("img",{attrs:{src:T1,alt:"wechat"}}),r("span",[e._v(e._s(e.isEn?"Scan to login/register":"微信扫码登录/注册JCtrans"))])])],2)])},B1=[],F1=me(I1,R1,B1,!1,null,"66101abf");const Fc=F1.exports,P1=Object.freeze(Object.defineProperty({__proto__:null,default:Fc},Symbol.toStringTag,{value:"Module"})),k1={name:"JcLoginDialog",model:{prop:"visible",event:"update:visible"},components:{ElDialog:U.Dialog,ElForm:U.Form,ElFormItem:U.FormItem,ElInput:U.Input,ElButton:U.Button,ElCheckbox:U.Checkbox,ElSelect:U.Select,ElOption:U.Option,ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton,GoogleInput:Vt,CodeInput:nn,RegisterForm:Ac,LoginTypeSwitcher:bi,JcVerifySlide:gn,WechatLogin:Fc,WechatChooseType:Bc,WechatBindLogin:Rc,CompleteInfoForm:wc,ForgetPassword:Ec,ThirdBindLogin:Ic,ThirdRegisterForm:xc},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 i=b.getRememberAccount();i&&(this.loginForm.username=i.account||"",this.loginForm.password=i.password?b.Decrypt(i.password):"",this.loginForm.remember=!0)},setup(i){const{proxy:e}=C.getCurrentInstance(),r=C.ref(null),s=k=>{var Q,z;const S=String(k||"").toLowerCase(),N=String(r.value||"").toLowerCase(),H=((Q=b.getAuthSessionItems)==null?void 0:Q.call(b))||{};return S==="facebook"||N==="facebook"?"FACEBOOK":S==="linkedin"||N==="linkedin"?"LINKEDIN":S==="wechat"||(z=e==null?void 0:e.formMode)!=null&&z.startsWith("wechat")||H!=null&&H.uniqueCode?"WECHAT":"PASSWORD"},u=C.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const k=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(k)}return!1}),{loading:p,handleAuthSubmit:l,executeRedirect:m}=Tc({appId:"ERA",isEn:u.value,onNeedComplete:k=>{const S=(e==null?void 0:e.loginType)==="code"?"register":"login";e.handleNeedComplete({mode:S,accountType:s(e==null?void 0:e.loginType),payload:k})},onSuccess:k=>{const S=s(e==null?void 0:e.loginType);e.$emit("login-success",{...k||{},accountType:S,mode:"login"}),e.loginForm.remember&&b.setRememberMe(e.loginForm.username,b.Encrypt(e.loginForm.password),!0),e.currentVisible=!1,m(k)}}),{isBindDialogVisible:A,isRegisterVisible:v,bindList:x,isUserClosed:T,startLogin:I,handleBindThirdParty:B,resetBindRegisterState:D}=CC({appId:"ERA",isEn:u.value,onSuccess:k=>{const S=s(r.value);e.$emit("login-success",{...k||{},accountType:S,mode:"login"}),e.currentVisible=!1,m(k)}});C.watch(T,k=>{k&&U.Message.error(u.value?"You have canceled the login.":"您取消了登录。")});const W=k=>{r.value=k;const S=k==="facebook"?"FACEBOOK":k==="linkedin"?"LINKEDIN":k;S&&I(S)};return C.watch(A,k=>{k&&(e.loginType=r.value)}),C.watch(v,k=>{k&&(e.loginType=r.value)}),{thirdBindDialogVisible:A,thirdRegisterVisible:v,bindList:x,authLoading:p,isEn:u,handleAuthSubmit:l,executeRedirect:m,handleThirdClick:W,handleBindThirdParty:B,resetBindRegisterState:D}},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:(i,e,r)=>On(i,e,r,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>tn(i,e,r,this.isEn),trigger:"blur"}]},verifyData:{},captchaVisible:!1,mobileUid:"",emailUid:"",currentVerifyData:null,pendingCompleteEvent:null,_lastEmittedBaseMode:this.baseMode==="register"?"register":"login"}},computed:{currentDialogWidth(){let i="480px";return["register","need-complete","forget-password"].includes(this.formMode)&&(i="640px"),this.formMode==="login"&&(this.loginType==="linkedin"||this.loginType==="facebook"||this.loginType==="TEST")&&(i="640px"),i},computedRules(){const i={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,r,s)=>On(e,r,s,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(e,r,s)=>Nn(e,r,s,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(e,r,s)=>tn(e,r,s,this.isEn),trigger:"blur"}]};return this.loginType==="account"?{username:i.username,password:i.password}:this.loginType==="code"?{code:i.code,...this.loginForm.type==="email"?{email:i.email}:{phone:i.phone}}:{}}},watch:{visible(i){this.currentVisible=i},baseMode(i){const e=i==="register"?"register":"login";this.currentVisible&&["login","register"].includes(this.formMode)&&(this.formMode=e)},currentVisible(i){this.$emit("update:visible",i)},formMode:{handler(i){const e=i==="register"?"register":"login";this._lastEmittedBaseMode!==e&&(this._lastEmittedBaseMode=e,this.$emit("update:baseMode",e),this.$emit("mode-change",{formMode:i,baseMode:e}))},immediate:!0}},methods:{go2Agreement:ss,go2Policy:os,handleOpen(){this.formMode=this.baseMode||"login",this._lastEmittedBaseMode=this.formMode==="register"?"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,b.resetAuthSessionItems(),b.resetGioSessionItems(),this.resetBindRegisterState()},handleTest(i){this.formMode=i},handleNeedComplete(i={}){const e=(i==null?void 0:i.mode)==="register"?"register":"login",r=(i==null?void 0:i.accountType)||this.resolveAccountTypeByContext();this.pendingCompleteEvent={eventName:e==="register"?"register-success":"login-success",accountType:r},this.formMode="need-complete"},handleRegisterNeedComplete(i){this.handleNeedComplete({mode:"register",payload:i})},handleWechatNeedComplete(i){this.handleNeedComplete({mode:"login",accountType:"WECHAT",payload:i})},resolveAccountTypeByContext(){var r;const i=String(this.loginType||"").toLowerCase(),e=((r=b.getAuthSessionItems)==null?void 0:r.call(b))||{};return i==="facebook"?"FACEBOOK":i==="linkedin"?"LINKEDIN":i==="wechat"||e!=null&&e.uniqueCode?"WECHAT":"PASSWORD"},handleRegisterSuccess(i){if(this.pendingCompleteEvent){console.warn("需要完善信息,跳过本次 emit,等待 CompleteInfoForm 处理");return}this.$emit("register-success",{...i||{},accountType:this.resolveAccountTypeByContext(),mode:"register"})},handleWechatSuccess(i){this.$emit("login-success",{...i||{},accountType:"WECHAT",mode:"login"})},handleCompleteSuccess(i){var e;if((e=this.pendingCompleteEvent)!=null&&e.eventName){const r=this.pendingCompleteEvent.eventName==="register-success"?"register":"login";this.$emit(this.pendingCompleteEvent.eventName,{...i||{},accountType:this.pendingCompleteEvent.accountType,mode:r}),this.pendingCompleteEvent=null}i.redirectPath?this.executeRedirect(i):this.currentVisible=!1},handleWechatNeedRegister(){this.formMode="wechat-need-register"},handleWechatLogin(){this.formMode="wechat-bind"},handleWechatRegister(){this.formMode="register"},switchLoginTab(i){this.loginType!==i&&(this.loginType=i,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(i){this.$refs.loginFormRef.validateField(i,e=>{this.codeReady=e})},handleGetCode({captchaData:i,startTimer:e}){const r=this.loginForm.type==="mobile",s={target:this.loginForm.email||this.loginForm.phone,uuid:i.uuid,code:i.code};r&&(s.areaCode=this.loginForm.areaCode);const u=r?b.sendMobileCodeApi:b.sendEmailCodeApi;this.verifyData=i,e(),u(s).then(p=>{var m;const l=((m=p.data.data)==null?void 0:m.verifyCode)||p.data.verifyCode;p.data.code===0&&l&&(r?this.mobileUid=l:this.emailUid=l,U.Message.success(this.isEn?"Verification code sent":"验证码已发送"))}).catch(p=>{console.error(p)})},handleLogin(){this.$refs.loginFormRef.validate(i=>{if(i)if(this.loginType==="account")this.captchaVisible=!0;else{if(!this.verifyData||!this.verifyData.uuid)return U.Message.error(this.isEn?"Please get the verification code first":"请先获取验证码");this.handleCaptchaSuccess(this.verifyData)}})},async handleCaptchaSuccess(i){this.captchaVisible=!1,this.handleAuthSubmit({loginType:this.loginType,loginForm:this.loginForm,captchaData:i,mobileUid:this.mobileUid,emailUid:this.emailUid,areaCodeData:this.areaCodeData,isKick:!1,remember:this.loginForm.remember})},handleForget(){this.formMode="forget-password"},async handleChangeSubType(i){this.loginMethod=i,i=="mobile"&&this.areaCodeData.length===0&&(await this.getLocalIpData(),this.getAreaCodeData())},async getLocalIpData(){let e=(await b.getLocalIpDataApi()).data.data;process.env.NODE_ENV==="development"&&(e={countryId:57,cityId:4022,countryNameCn:"新加坡",countryNameEn:"Singapore",cityNameCn:"新加坡",cityNameEn:"Singapore"}),this.IpData=e},async getAreaCodeData(){var e,r;const i=await b.findPAreaCodeApi();this.areaCodeData=i.data.data.records,this.loginForm.areaCode=(r=(e=i.data.data.records)==null?void 0:e.find(s=>{var u;return s.id===((u=this.IpData)==null?void 0:u.countryId)}))==null?void 0:r.telCode,this.loginForm.areaCode||(this.areaCode="+86")},handleToLogin(){this.formMode="login",this.loginType="account",this.pendingCompleteEvent=null}}};var D1=function(){var e=this,r=e._self._c;return r("el-dialog",{staticClass:"jc-auth-dialog",attrs:{visible:e.currentVisible,"close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":"",width:e.currentDialogWidth,"show-close":!0},on:{"update:visible":function(s){e.currentVisible=s},close:e.handleClose,open:e.handleOpen}},[e.formMode==="login"?r("div",{staticClass:"auth-container"},[r("div",{staticClass:"login-section"},[r("div",{staticClass:"login-title"},[e.thirdBindDialogVisible||e.thirdRegisterVisible?r("p",[e._v(" "+e._s(e.isEn?"New User Registration":"新用户注册")+" ")]):r("p",[e._v(" "+e._s(e.isEn?"Welcome Back to JCtrans":"欢迎回到JCtrans")+" ")])]),["account","code"].includes(e.loginType)?[r("div",{staticClass:"tab-header"},[r("span",{staticClass:"tab-header-title",class:{active:e.loginType==="account"},on:{click:function(s){return e.switchLoginTab("account")}}},[e._v(" "+e._s(e.isEn?"Password Login":"账号登录")+" ")]),r("span",{staticClass:"tab-header-title",class:{active:e.loginType==="code"},on:{click:function(s){return e.switchLoginTab("code")}}},[e._v(" "+e._s(e.isEn?"Verification Code Login":"验证码登录")+" ")])]),r("el-form",{ref:"loginFormRef",staticClass:"auth-form login-form-content",attrs:{model:e.loginForm,rules:e.computedRules,"validate-on-rule-change":!1}},[e.loginType==="account"?[r("el-form-item",{staticClass:"form-user",attrs:{prop:"username"}},[r("GoogleInput",{attrs:{placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},model:{value:e.loginForm.username,callback:function(s){e.$set(e.loginForm,"username",s)},expression:"loginForm.username"}})],1),r("el-form-item",{staticClass:"password-item",attrs:{prop:"password"}},[r("GoogleInput",{staticClass:"input-show-pass",attrs:{type:"password",placeholder:e.isEn?"Password":"密码","show-password":""},model:{value:e.loginForm.password,callback:function(s){e.$set(e.loginForm,"password",s)},expression:"loginForm.password"}})],1)]:e.loginType==="code"?[r("el-form-item",{attrs:{prop:"type"}},[r("LoginTypeSwitcher",{attrs:{"is-en":e.isEn},on:{change:e.handleChangeSubType},model:{value:e.loginForm.type,callback:function(s){e.$set(e.loginForm,"type",s)},expression:"loginForm.type"}})],1),e.loginForm.type==="email"?r("el-form-item",{attrs:{prop:"email"}},[r("GoogleInput",{attrs:{placeholder:e.isEn?"Email Address":"邮箱地址"},on:{blur:function(s){return e.validateField("email")}},model:{value:e.loginForm.email,callback:function(s){e.$set(e.loginForm,"email",s)},expression:"loginForm.email"}})],1):[r("div",{staticClass:"tel"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("google-input",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:function(s){return e.validateField("areaCode")}},model:{value:e.loginForm.areaCode,callback:function(s){e.$set(e.loginForm,"areaCode",s)},expression:"loginForm.areaCode"}},e._l(e.areaCodeData,function(s){return r("el-option",{key:s.id,attrs:{label:s.telCode,value:s.telCode}})}),1)],1)]},proxy:!0}],null,!1,1341634787),model:{value:e.loginForm.phone,callback:function(s){e.$set(e.loginForm,"phone",s)},expression:"loginForm.phone"}})],1)],1)],r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn},on:{send:e.handleGetCode},model:{value:e.loginForm.code,callback:function(s){e.$set(e.loginForm,"code",s)},expression:"loginForm.code"}})],1)]:e._e(),r("div",{staticClass:"login-passport"},[r("div",{staticClass:"login-remember"},[r("el-form-item",{staticClass:"remember-item",attrs:{prop:"remember"}},[r("el-checkbox",{staticClass:"remember-btn",model:{value:e.loginForm.remember,callback:function(s){e.$set(e.loginForm,"remember",s)},expression:"loginForm.remember"}},[e._v(e._s(e.isEn?"Remember Me":"30天自动登录"))])],1),e.loginType==="account"?r("span",{staticClass:"forget-pwd-btn",on:{click:e.handleForget}},[e._v(e._s(e.isEn?"Forgot your password?":"忘记密码"))]):e._e()],1),e.loginType==="code"?r("div",{staticClass:"login-agreement"},[r("div",{staticClass:"login-agreement-text"},[r("span",{staticClass:"login-agreement-text-item"},[e._v(e._s(e.isEn?"Automatically log in after verification if not registered. Registration means you agree":"未注册验证后自动登录,注册即代表同意"))]),r("span",{staticClass:"link-type",on:{click:function(s){return s.stopPropagation(),e.go2Agreement.apply(null,arguments)}}},[e._v(e._s(e.isEn?"User Agreement":"《用户条款和协议》"))]),r("span",{staticClass:"login-agreement-text-item jc:mx-0.5"},[e._v(e._s(e.isEn?"and":""))]),r("span",{staticClass:"link-type",on:{click:function(s){return s.stopPropagation(),e.go2Policy.apply(null,arguments)}}},[e._v(e._s(e.isEn?"Privacy Policy":"《隐私政策》"))])])]):e._e(),r("el-button",{staticClass:"submit-btn",attrs:{loading:e.authLoading},on:{click:e.handleLogin}},[e._v(" "+e._s(e.loginType==="code"?e.isEn?"Register and log in":"登录/注册":e.isEn?"Sign In":"登录")+" "),r("i",{staticClass:"el-icon-right",staticStyle:{"margin-left":"8px"}})])],1)],2)]:e._e(),e.loginType==="wechat"?r("div",[r("WechatLogin",{attrs:{"is-en":e.isEn},on:{success:e.handleWechatSuccess,"need-register":e.handleWechatNeedRegister,"need-complete":e.handleWechatNeedComplete}})],1):e._e(),["linkedin","facebook","TEST"].includes(e.loginType)?r("div",[e.thirdBindDialogVisible?r("ThirdBindLogin",{staticClass:"jc:mt-1",attrs:{"is-en":e.isEn,"bind-list":e.bindList}}):e._e(),e.thirdRegisterVisible?r("ThirdRegisterForm",{staticClass:"jc:mt-6",attrs:{"is-en":e.isEn},on:{"bind-third-party":e.handleBindThirdParty,"register-success":e.handleRegisterSuccess,"need-complete":e.handleRegisterNeedComplete}}):e._e()],1):e._e(),e.loginType!=="TEST"&&e.loginType!=="facebook"&&e.loginType!=="linkedin"?r("div",{staticClass:"third-party-sign-in"},[r("div",{staticClass:"third-party-sign-in-title"},[e._v(" "+e._s(e.isEn?"Sign in with":"其他登录方式")+" ")]),r("div",{staticClass:"third-party-sign-in-group"},[["wechat","linkedin","facebook"].includes(e.loginType)?r("div",{staticClass:"third-party-sign-in-btn",on:{click:()=>e.loginType="account"}},[r("i",{staticClass:"icon-account"}),r("span",[e._v(" "+e._s(e.isEn?"Account":"账户"))])]):["account","code"].includes(e.loginType)?r("div",{staticClass:"third-party-sign-in-btn",on:{click:()=>e.loginType="wechat"}},[r("i",{staticClass:"icon-auth-wechat"}),r("span",[e._v(e._s(e.isEn?"WeChat":"微信"))])]):e._e(),r("div",{staticClass:"third-party-sign-in-btn",on:{click:function(s){return e.handleThirdClick("linkedin")}}},[r("i",{staticClass:"icon-auth-linkedin"}),r("span",[e._v("LinkedIn")])]),r("div",{staticClass:"third-party-sign-in-btn",on:{click:function(s){return e.handleThirdClick("facebook")}}},[r("i",{staticClass:"icon-auth-facebook"}),r("span",[e._v("Facebook")])]),e.showTestThirdBtn?r("div",{staticClass:"third-party-sign-in-btn",on:{click:function(s){return e.handleThirdClick("TEST")}}},[r("i",{staticClass:"icon-auth-facebook"}),r("span",[e._v("TEST")])]):e._e()])]):e._e(),!e.thirdBindDialogVisible&&!e.thirdRegisterVisible?r("div",{staticClass:"bottom-tip"},[e._v(" "+e._s(e.isEn?"Don't have an account?":"没有账户?")+" "),r("span",{staticClass:"action-text",on:{click:function(s){e.formMode="register"}}},[e._v(e._s(e.isEn?"Sign Up":"立即注册")+" "),r("svg",{staticClass:"icon-more",attrs:{t:"1767853448095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"}},[r("path",{attrs:{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"}})])])]):e._e()],2)]):e.formMode==="wechat-need-register"?r("WechatChooseType",{attrs:{"is-en":e.isEn},on:{"to-bind":e.handleWechatLogin,"to-register":e.handleWechatRegister}}):e.formMode==="wechat-bind"?r("WechatBindLogin",{attrs:{"is-en":e.isEn},on:{"need-complete":e.handleWechatNeedComplete}}):e.formMode==="register"?r("div",{staticClass:"auth-container"},[r("div",{staticClass:"register-section"},[r("RegisterForm",{attrs:{"is-en":e.isEn},on:{"to-login":e.handleToLogin,"need-complete":e.handleRegisterNeedComplete,"register-success":e.handleRegisterSuccess}})],1)]):e.formMode==="need-complete"?r("CompleteInfoForm",{attrs:{"is-en":e.isEn},on:{success:e.handleCompleteSuccess}}):e.formMode==="forget-password"?r("ForgetPassword",{attrs:{"is-en":e.isEn},on:{"to-login":e.handleToLogin}}):e._e(),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},O1=[],L1=me(k1,D1,O1,!1,null,"59e8d372");const N1=L1.exports,M1=Object.freeze(Object.defineProperty({__proto__:null,default:N1},Symbol.toStringTag,{value:"Module"}));function U1(i){const e=C.ref([]),r="_search_history_cache",s=typeof window!="undefined"&&typeof localStorage!="undefined",u=C.computed(()=>(i.value||"")+r),p=C.computed(()=>!!i.value&&i.value!==""),l=A=>{if(!A||!s)return;const v=e.value.filter(T=>T.id&&T.id!==A.id||T.display!==A.display);v.unshift(A);const x=v.slice(0,4);if(p.value){e.value=x;try{localStorage.setItem(u.value,JSON.stringify(x))}catch(T){console.warn("LocalStorage save failed:",T)}}},m=()=>{e.value=[],s&&localStorage.removeItem(u.value)};return C.onMounted(()=>{if(s&&p.value){const A=localStorage.getItem(u.value);if(A)try{e.value=JSON.parse(A)}catch{e.value=[]}}}),{searchHistory:e,saveToHistory:l,clearHistory:m,HasHistory:p}}async function q1(i,e=["Continent","Country","City","Seaport","Airport"],r={}){return b.locationSearchV2.searchByName({keyword:i,displayInfo:e,...r})}const V1=(i,e)=>b.locationSearchV2.searchByIdWithType(i,e);function W1(i,e){const r=C.ref([]),s=C.ref(!1),u=C.ref(!1),p=C.ref(!1),l=C.ref(1),m=20,A=C.ref(0),v=C.computed(()=>{const I=[...e.value];return I.includes("Country")&&!I.includes("Region")&&I.push("Region"),I}),x=I=>Array.isArray(I)?I.filter(B=>v.value.includes(B.type)):[];return{searchResults:r,loading:s,isFetchingMore:u,isFinished:p,fetchData:async(I=!1)=>{const B=i.value.trim();if(!B){r.value=[],A.value=0,p.value=!1;return}if(I){if(u.value||p.value)return;u.value=!0,l.value+=1}else{if(s.value)return;s.value=!0,l.value=1,p.value=!1}try{const D=await q1(B,e.value,{current:l.value,size:m}),W=x(D.records||[]);I?r.value.push(...W):r.value=W,A.value=D.total||0,(r.value.length>=A.value||W.length<m)&&(p.value=!0)}catch(D){console.error("Search request failed:",D),I&&(l.value-=1)}finally{s.value=!1,u.value=!1}}}}const Xa=i=>!!(i!=null&&i.id)&&!!(i!=null&&i.type)&&!(i!=null&&i.display);function H1(i){return{hydrateMultiple:async s=>{if(!Array.isArray(s)||s.length===0)return{updatedList:s,hasChanged:!1};const u=s.filter(v=>Xa(v));if(u.length===0)return{updatedList:s,hasChanged:!1};const p=u.reduce((v,x)=>{const T=x.type;return v[T]||(v[T]=[]),v[T].push(x.id),v},{}),l=new Map;for(const[v,x]of Object.entries(p)){if(x.length===0)continue;const T=await i(x,v);((T==null?void 0:T.records)||[]).forEach(B=>{!(B!=null&&B.id)||!(B!=null&&B.type)||l.set(`${B.type}::${B.id}`,B)})}let m=!1;return{updatedList:s.map(v=>{if(!Xa(v))return v;const x=`${v.type}::${v.id}`,T=l.get(x);return T?(m=!0,{...v,...T}):v}),hasChanged:m}},hydrateSingle:async s=>{if(!s||!Xa(s))return s;const u=await i(s.id,s.type),p=(u==null?void 0:u.records)||[],l=p.find(m=>(m==null?void 0:m.id)===s.id&&(m==null?void 0:m.type)===s.type)||p[0];return l?{...s,...l}:s}}}const G1=C.defineComponent({name:"JcMSearch",model:{prop:"value",event:"input"},props:{value:{type:null,default:void 0},multiple:{type:Boolean,default:!1},lang:{type:String,default:"zh-CN"},placeholder:{type:String,default:""},historyKey:{type:String,default:""},reportType:{type:String,default:"City"}},setup(i,{emit:e}){const r=C.ref(!1),s=C.ref(""),u=C.ref(null),p=C.ref(null);let l=null;const{searchHistory:m,saveToHistory:A,clearHistory:v}=U1(C.computed(()=>i.historyKey)),{searchResults:x,loading:T,isFetchingMore:I,isFinished:B,fetchData:D}=W1(s,C.ref(["City","Seaport","Airport"])),{hydrateMultiple:W,hydrateSingle:k}=H1(V1),S=C.computed(()=>{var X,j,ne,Ce,Ne,Ee;if(i.lang)return i.lang==="en"||i.lang==="en-US";try{if(typeof useCookie=="function"){const Ae=(X=useCookie("jc-language"))==null?void 0:X.value;if(Ae)return/^en(-US)?$/.test(Ae)}}catch{}if(typeof document!="undefined"){const Ae=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(Ae)}try{if(typeof useNuxtApp=="function"){const Ae=useNuxtApp(),vt=((Ee=(Ne=(Ce=(ne=(j=Ae==null?void 0:Ae.ssrContext)==null?void 0:j.event)==null?void 0:ne.node)==null?void 0:Ce.req)==null?void 0:Ne.headers)==null?void 0:Ee.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(vt)}}catch{}return!1}),N=C.computed(()=>Array.isArray(i.value)?i.value:i.value?[i.value]:[]);C.watch(()=>i.value,async(X,j)=>{if(JSON.stringify(X)!==JSON.stringify(j)){if(i.multiple&&Array.isArray(X)){try{const{updatedList:ne,hasChanged:Ce}=await W(X);Ce&&e("input",ne)}catch(ne){console.error("Batch fetch detail failed:",ne)}return}if(!i.multiple&&(X!=null&&X.id)&&(X!=null&&X.type)&&!(X!=null&&X.display))try{const ne=await k(X);ne&&ne!==X&&e("input",ne)}catch(ne){console.error("Single fetch detail failed:",ne)}}},{immediate:!0,deep:!0});const H=C.computed(()=>!i.multiple&&!!i.value),Q=C.computed(()=>H.value?ye(i.value):""),z=C.computed(()=>N.value.length>0),E=()=>{r.value=!0,C.nextTick(()=>{var X,j,ne;s.value=S.value?((X=i.value)==null?void 0:X.nameEn)||"":((j=i.value)==null?void 0:j.nameCn)||"",(ne=u.value)==null||ne.focus(),s.value&&D(!1)})},q=()=>{r.value=!1,s.value=""},F=X=>{A(X),i.multiple?N.value.some(ne=>ne.id===X.id)||e("input",[...N.value,X]):(e("input",X),q()),e("select",X)},w=()=>{e("input",i.multiple?[]:null)},M=C.ref(!1),G=X=>{const j=X.target;if(!j)return;j.scrollTop+j.clientHeight>=j.scrollHeight-80&&s.value&&!T.value&&!I.value&&!B.value&&!M.value&&(M.value=!0,D(!0))};C.watch(I,X=>{X||(M.value=!1)});const $=()=>{l&&clearTimeout(l),l=setTimeout(()=>{var X;M.value=!1,(X=p.value)==null||X.scrollTo({top:0}),D(!1)},300)};C.onBeforeUnmount(()=>{l&&(clearTimeout(l),l=null)});const ye=X=>S.value?X.displayEn||X.display:X.displayCn||X.display;return{SearchIcon:gc,ICON_MORE:Ci,isDropdownVisible:r,query:s,inputRef:u,scrollContainer:p,isEn:S,selectedItems:N,isSelected:H,selectedLabel:Q,hasValue:z,searchHistory:m,searchResults:x,loading:T,isFetchingMore:I,isFinished:B,clearHistory:v,openSearch:E,closeSearch:q,selectItem:F,clearAll:w,handleScroll:G,onInput:$,getItemLabel:ye,getItemType:X=>{const j={City:"城市",Seaport:"港口",Airport:"机场"};return S.value?X:j[X]||X},isItemActive:X=>N.value.some(j=>j.id===X.id),handleApplyData:async()=>{var j;const X=(j=s.value)==null?void 0:j.trim();if(X)try{await b.reportNewTypeDataApi({reportData:X,reportType:i.reportType})}catch(ne){console.error("Report apply data failed:",ne)}finally{e("apply",X)}}}}});var J1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"h5-search-container"},[r("div",{staticClass:"search-trigger",on:{click:e.openSearch}},[r("div",{staticClass:"trigger-content"},[r("img",{staticClass:"search-icon-m",attrs:{src:e.SearchIcon}}),r("div",{staticClass:"placeholder-text"},[e.multiple&&e.selectedItems.length>0?[r("div",{staticClass:"scroll-container"},[e._l(e.selectedItems,function(s){return r("div",{key:s.id,staticClass:"selected-tag"},[r("span",{staticClass:"tag-text"},[e._v(e._s(s.display))])])}),r("span",{staticClass:"selected-count-text"},[e._v(" "+e._s(e.isEn?"Selected":"已选")+" ("+e._s(e.selectedItems.length)+") ")])],2)]:!e.multiple&&e.isSelected?[r("span",{staticClass:"selected-val"},[e._v(e._s(e.selectedLabel))])]:[r("span",{staticClass:"placeholder-gray"},[e._v(" "+e._s(e.placeholder||(e.isEn?"Search":"搜索"))+" ")])]],2)]),e.hasValue?r("span",{staticClass:"clear-trigger",on:{click:function(s){return s.stopPropagation(),e.clearAll.apply(null,arguments)}}},[e._v(" ⓧ ")]):e._e()]),e.isDropdownVisible?r("div",{staticClass:"h5-modal-root"},[r("transition",{attrs:{name:"fade"}},[r("div",{staticClass:"h5-mask",on:{click:e.closeSearch}})]),r("transition",{attrs:{name:"slide-up"}},[r("div",{staticClass:"h5-drawer-card"},[r("div",{staticClass:"drawer-handle",on:{click:e.closeSearch}}),r("div",{staticClass:"h5-header"},[r("div",{staticClass:"h5-input-wrapper"},[r("img",{staticClass:"inner-icon",attrs:{src:e.SearchIcon}}),r("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"inputRef",attrs:{placeholder:e.isEn?"City/Port/Airport":"搜索城市/港口/机场"},domProps:{value:e.query},on:{input:[function(s){s.target.composing||(e.query=s.target.value)},e.onInput]}}),e.query?r("div",{staticClass:"h5-clear-btn",on:{click:function(s){e.query=""}}},[e._v(" ✕ ")]):e._e()]),r("div",{staticClass:"h5-cancel-btn",on:{click:e.closeSearch}},[e._v(" "+e._s(e.isEn?"Cancel":"取消")+" ")])]),r("div",{ref:"scrollContainer",staticClass:"h5-main-content",on:{scroll:e.handleScroll}},[e.loading&&!e.isFetchingMore?r("div",{staticClass:"h5-spinner-box"},[r("div",{staticClass:"h5-spinner"})]):e._e(),!e.query&&e.searchHistory.length>0?r("div",{staticClass:"h5-section"},[r("div",{staticClass:"h5-section-hd"},[r("span",[e._v(e._s(e.isEn?"Recent":"最近搜索"))]),r("span",{staticClass:"h5-clear-history",on:{click:e.clearHistory}},[e._v(" "+e._s(e.isEn?"Clear":"清空")+" ")])]),r("div",{staticClass:"h5-history-grid"},e._l(e.searchHistory,function(s,u){return r("div",{key:u,staticClass:"h5-history-tag",on:{click:function(p){return e.selectItem(s)}}},[e._v(" "+e._s(e.getItemLabel(s))+" ")])}),0)]):e._e(),e.searchResults.length>0?r("div",{staticClass:"h5-result-list"},[e._l(e.searchResults,function(s,u){return r("div",{key:u,staticClass:"h5-result-item",class:{"is-active":e.isItemActive(s)},on:{click:function(p){return e.selectItem(s)}}},[r("div",{staticClass:"item-type",class:s.type.toLowerCase()},[e._v(" "+e._s(e.getItemType(s.type))+" ")]),r("div",{staticClass:"item-info"},[r("div",{staticClass:"item-name"},[e._v(e._s(e.getItemLabel(s)))]),s.parentName?r("div",{staticClass:"item-sub"},[e._v(" "+e._s(s.parentName)+" ")]):e._e()])])}),r("div",{staticClass:"h5-load-status"},[e.isFetchingMore?[r("div",{staticClass:"mini-spinner"}),r("span",[e._v(e._s(e.isEn?"Loading...":"加载中..."))])]:e.isFinished&&e.query?r("span",{staticClass:"no-more"},[e._v(" "+e._s(e.isEn?"No more results":"没有更多结果了")+" ")]):e._e()],2)],2):e._e(),e.query&&!e.loading&&e.searchResults.length===0?r("div",{staticClass:"h5-load-status h5-empty"},[r("p",[e._v(" "+e._s(e.isEn?"No Results Found. ":"未找到相关结果,")+" ")]),r("div",{staticClass:"h5-empty-apply-wrap"},[r("span",{staticClass:"h5-empty-apply",on:{click:function(s){return s.stopPropagation(),e.handleApplyData.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Apply for data addition":"申请补充数据")+" ")]),r("img",{staticClass:"h5-empty-apply-icon",attrs:{src:e.ICON_MORE,alt:"more"},on:{click:function(s){return s.stopPropagation(),e.handleApplyData.apply(null,arguments)}}})])]):e._e()])])])],1):e._e()])},j1=[],z1=me(G1,J1,j1,!1,null,"82c8e578");const Q1=z1.exports,K1=Object.freeze(Object.defineProperty({__proto__:null,default:Q1},Symbol.toStringTag,{value:"Module"})),X1=U.Cascader,Y1=C.defineComponent({name:"LineCascader",components:{"el-cascader":X1},model:{prop:"value",event:"input"},props:{value:{type:Array,default:()=>[]},lineId:{type:Number,default:null},placeholder:{type:String,default:""},lang:{type:String,default:""},lineType:{type:String,default:"shipping"},multiple:{type:Boolean,default:!0}},emits:["input","update:lineId","change","apply"],setup(i,{emit:e}){const r=C.ref(),s=C.ref([]),u=C.ref(!1),p=C.ref(""),l=C.ref(i.value||[]),m=C.computed(()=>({multiple:i.multiple,expandTrigger:"click",emitPath:!1,checkStrictly:!1})),A=C.computed(()=>{var S,N,H,Q,z,E;if(i.lang)return i.lang==="en"||i.lang==="en-US";try{if(typeof useCookie=="function"){const q=(S=useCookie("jc-language"))==null?void 0:S.value;if(q)return/^en(-US)?$/.test(q)}}catch{}if(typeof document!="undefined"){const q=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(q)}try{if(typeof useNuxtApp=="function"){const q=useNuxtApp(),F=((E=(z=(Q=(H=(N=q==null?void 0:q.ssrContext)==null?void 0:N.event)==null?void 0:H.node)==null?void 0:Q.req)==null?void 0:z.headers)==null?void 0:E.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(F)}}catch{}return!1}),v=C.computed(()=>s.value.map(S=>{var N;return{label:A.value?S.nameEn||S.nameCn:S.nameCn||S.nameEn,value:`line-${S.id}`,children:(((N=S.raw)==null?void 0:N.countryList)||[]).map(H=>({label:A.value?H.nameEn:H.nameCn,value:`${S.id}-${H.id}`,shortCode:H.shortCode}))}})),x=C.computed(()=>i.placeholder?i.placeholder:A.value?"Please select route":"涉及航线选择"),T=C.computed(()=>u.value?A.value?"Searching...":"正在搜索中...":A.value?"No results found":"暂无结果"),I=async S=>{u.value=!0,p.value=S;try{const N=await b.locationSearchV2.line.searchAllByCountry(i.lineType);s.value=Array.isArray(N)?N:(N==null?void 0:N.records)||[]}catch(N){console.error("Search failed:",N),s.value=[]}finally{u.value=!1}},B=(S,N)=>{e("input",S),e("update:lineId",N),e("change",{countryIds:S,lineId:N})},D=()=>{},W=S=>{if(!S||S.length===0){l.value=[],B([],null);return}const N=S[S.length-1];if(N.startsWith("line-")){const[E,q]=N.split("-"),F=S.filter(w=>w.endsWith(`${q}`));B([],q),e("change",F);return}const[H]=N.split("-"),Q=S.filter(E=>E.startsWith(`${H}-`));l.value=Q;const z=Q.map(E=>E.split("-")[1]);B(z,H),e("change",Q)},k=async()=>{if(p.value)try{await b.reportNewTypeDataApi({reportData:p.value,reportType:"Line"})}catch{}e("apply",p.value),r.value&&(r.value.dropDownVisible=!1)};return C.onMounted(()=>{I("")}),C.watch(()=>i.value,S=>{const N=i.lineId;N&&S&&S.length>0?l.value=S.map(H=>`${N}-${H}`):l.value=[`line-${i.lineId}`]},{deep:!0,immediate:!0}),{selectRef:r,selectedValues:l,options:s,loading:u,cascaderProps:m,transformedOptions:v,currentPlaceholder:x,noDataText:T,handleExpand:D,handleChange:W,handleApply:k,ICON_MORE:Ci}}});var $1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"jc-line-cascader"},[r("el-cascader",{ref:"selectRef",staticStyle:{width:"100%"},attrs:{"popper-class":"jc-line-cascader-pop",options:e.transformedOptions,props:e.cascaderProps,placeholder:e.currentPlaceholder,loading:e.loading,"no-data-text":e.noDataText,filterable:"",clearable:""},on:{"expand-change":e.handleExpand,change:e.handleChange},model:{value:e.selectedValues,callback:function(s){e.selectedValues=s},expression:"selectedValues"}})],1)},Z1=[],e_=me(Y1,$1,Z1,!1,null,null);const t_=e_.exports,n_=Object.freeze(Object.defineProperty({__proto__:null,default:t_},Symbol.toStringTag,{value:"Module"})),r_={},Lt=(...i)=>{for(const e of i)if(typeof e=="string"){const r=e.trim();if(r)return r}return""},Ya=(...i)=>{for(const e of i){if(typeof e=="boolean")return e;if(typeof e=="string"){const r=e.trim().toLowerCase();if(r==="true")return!0;if(r==="false")return!1}}},i_=i=>{if(typeof window=="undefined")return{};const e=window,r=e==null?void 0:e[i],s=e==null?void 0:e.__JCTRANS_GIO_CONFIG__,u=e==null?void 0:e.__GIO_CONFIG__,p=r||s||u;return p&&typeof p=="object"?p:{}},a_=i=>(Lt(i)||"gio-track").replace(/^v-/,""),s_=i=>{const e=i.value;if(typeof e=="string")return{eventName:e.trim(),trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1};if(!e||typeof e!="object")return{eventName:"",trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1};const r=e.attributes||e.attrs||{},s=Object.entries(r).reduce((u,[p,l])=>(l!=null&&(u[p]=l),u),{});return{eventName:Lt(e.event,e.name,i.arg),trigger:Lt(e.trigger)||"click",attrs:s,once:!!e.once,stop:!!e.stop,prevent:!!e.prevent,callback:typeof e.onTracked=="function"?e.onTracked:typeof e.callback=="function"?e.callback:void 0}},ts=i=>{const e=i.__jctransTrackHandler__;e&&(i.removeEventListener(e.trigger,e.handler),delete i.__jctransTrackHandler__)},nc=(i,e,r)=>{ts(i);const s=s_(e);if(!s.eventName)return;const u=p=>{if(s.prevent&&"preventDefault"in p&&p.preventDefault(),s.stop&&"stopPropagation"in p&&p.stopPropagation(),r.isInitialized()){const l=b.normalizeClickPageAttrs(s.eventName,s.attrs);r.track(s.eventName,l,()=>{var m;(m=s.callback)==null||m.call(s,{event:p,eventName:s.eventName,attrs:l,trigger:s.trigger})})}s.once&&ts(i)};i.addEventListener(s.trigger,u),i.__jctransTrackHandler__={eventName:s.eventName,trigger:s.trigger,handler:u}},o_=i=>(e,r)=>{const s=Lt(e);if(!s||!i.isInitialized())return;const u=b.normalizeClickPageAttrs(s,r);i.track(s,u)},l_=(i,e)=>{if(typeof window=="undefined"||!i)return;const r=window;r.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__||(r.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__=new Set);const s=r.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__;if(s.has(e))return;const u=b.getOrCreateClientId();if(!u)return;const p=window.gdp;typeof p=="function"&&(s.add(e),p("identify",u))};function Pc(i){return{install(e){var k,S,N;const r=b.tracker,s=r_||{},u=i||{},p=Lt(u.globalVarName,"__JCTRANS_GIO_CONFIG__"),l=i_(p),m=Ya(l.enabled,u.enabled,s.VITE_GIO_ENABLED),A={...u.initOptions||{},...l.initOptions||{}};if(!A.serverUrl){const H=Lt(l.serverUrl,u.serverUrl,s.VITE_GIO_SERVER_URL);H&&(A.serverUrl=H)}const v=Lt(l.accountId,u.accountId,s.VITE_GIO_ACCOUNT_ID),x=Lt(l.dataSourceId,u.dataSourceId,s.VITE_GIO_DATA_SOURCE_ID,s.VITE_GIO_DATASOURCE_ID),T=Lt(l.appId,u.appId,s.VITE_GIO_APP_ID),I=Ya(l.autoInit,u.autoInit,s.VITE_GIO_AUTO_INIT),B=(N=Ya((k=l.initOptions)==null?void 0:k.forceLogin,(S=u.initOptions)==null?void 0:S.forceLogin,A.forceLogin))!=null?N:!1,D=a_(l.directiveName||u.directiveName);(m==null||m)&&(I==null||I)&&v&&x&&!r.isInitialized()&&(T?r.init(v,x,T,A):r.init(v,x,A),l_(B,`jctrans-gio-identify-device:${v}:${x}`));const W=o_(r);e.prototype.$gio=r,e.prototype.$trackEvent=W,e.directive(D,{bind(H,Q){nc(H,Q,r)},update(H,Q){nc(H,Q,r)},unbind(H){ts(H)}})}}}let c_={open(){b.emitter.emit(b.MODAL_ACTION.Open)},close(){b.emitter.emit(b.MODAL_ACTION.Close)},onSubmit(i){b.emitter.on(b.MODAL_ACTION.Submit,i)}};function u_(){let i=!1;return{install(e){if(typeof window!="undefined"&&!i){const r=document.createElement("div");r.setAttribute("id","global-modal-root"),document.body.appendChild(r);const s=e.extend(Cc);new s().$mount(r),i=!0}e.prototype.$globalModal=c_}}}const rc={},f_=Object.assign({"./components/ApplyDataDialog.vue":Iy,"./components/ChineseCompanySearch/index.vue":Dy,"./components/CodeInput.vue":T0,"./components/GlobalModal.vue":k0,"./components/GoogleInput.vue":f0,"./components/JcCarrierSearch/AirCarrierSearch.vue":z0,"./components/JcCarrierSearch/AirLineSearch.vue":Z0,"./components/JcCarrierSearch/SeaCarrierSearch.vue":aC,"./components/JcCarrierSearch/SeaLineSearch.vue":fC,"./components/JcCarrierSearch/index.vue":V0,"./components/JcFloatInput.vue":g0,"./components/JcFloatWrapper.vue":gC,"./components/JcLoginDialog/RegisterForm.vue":PC,"./components/JcLoginDialog/cmps/ApplyJoinBtn.vue":xC,"./components/JcLoginDialog/cmps/CompleteInfoForm.vue":NC,"./components/JcLoginDialog/cmps/FooterBox.vue":WC,"./components/JcLoginDialog/cmps/ForgetPassword.vue":KC,"./components/JcLoginDialog/cmps/LoginTypeSwitcher.vue":e1,"./components/JcLoginDialog/cmps/ThirdBindLogin.vue":o1,"./components/JcLoginDialog/cmps/ThirdRegisterForm.vue":d1,"./components/JcLoginDialog/cmps/WechatBindLogin.vue":y1,"./components/JcLoginDialog/cmps/WechatChooseType.vue":S1,"./components/JcLoginDialog/cmps/WechatLogin.vue":P1,"./components/JcLoginDialog/index.vue":M1,"./components/JcMSearch/index.vue":K1,"./components/JcSearch/index.vue":_y,"./components/JcVerifySlide/index.vue":b0,"./components/LineCascader/index.vue":n_}),hi={};Object.entries(f_).forEach(([i,e])=>{let r="";if(rc[i])r=rc[i];else{const u=i.replace("./components/","").replace(".vue","").split("/"),p=u.pop()||"";p==="index"&&u.length>0?r=u.pop()||"":r=p}r&&(hi[r]=e.default||e)});const{ApplyDataDialog:d_,ChineseCompanySearch:p_,JcSearch:h_,GlobalModal:m_,JcCarrierSearch:g_,AirCarrierSearch:v_,SeaCarrierSearch:y_,AirLineSearch:C_,SeaLineSearch:__,JcMSearch:A_,JcLoginDialog:w_}=hi;let ic=!1;const b_={install(i,e){ic||(ic=!0,e!=null&&e.sharedConfig&&b.initSharedConfig(e.sharedConfig),e!=null&&e.tracking&&i.use(Pc(e.tracking)),Object.keys(hi).forEach(r=>{i.component(r,hi[r]),console.log(`[JcUI Vue2] 自动注册组件: ${r}`)}))}};Object.defineProperty(exports,"MODAL_ACTION",{enumerable:!0,get:()=>b.MODAL_ACTION});Object.defineProperty(exports,"emitter",{enumerable:!0,get:()=>b.emitter});Object.defineProperty(exports,"initSharedConfig",{enumerable:!0,get:()=>b.initSharedConfig});exports.AirCarrierSearch=v_;exports.AirLineSearch=C_;exports.ApplyDataDialog=d_;exports.ChineseCompanySearch=p_;exports.GlobalModal=m_;exports.JcCarrierSearch=g_;exports.JcLoginDialog=w_;exports.JcMSearch=A_;exports.JcSearch=h_;exports.SeaCarrierSearch=y_;exports.SeaLineSearch=__;exports.createGioTrackingPlugin=Pc;exports.createGlobalModalPlugin=u_;exports.default=b_;