@jctrans-materials/comps-vue3 1.0.41-beta.4 → 1.0.41-beta.6

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,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("@jctrans-materials/shared"),o=require("element-plus"),n=e=>!!(null==e?void 0:e.id)&&!!(null==e?void 0:e.type)&&!(null==e?void 0:e.display);function r(e){return{hydrateMultiple:async t=>{if(!Array.isArray(t)||0===t.length)return{updatedList:t,hasChanged:!1};const o=t.filter(e=>n(e));if(0===o.length)return{updatedList:t,hasChanged:!1};const r=o.reduce((e,t)=>{const o=t.type;return e[o]||(e[o]=[]),e[o].push(t.id),e},{}),a=new Map;for(const[n,l]of Object.entries(r)){if(0===l.length)continue;const t=await e(l,n);((null==t?void 0:t.records)||[]).forEach(e=>{(null==e?void 0:e.id)&&(null==e?void 0:e.type)&&a.set(`${e.type}::${e.id}`,e)})}let i=!1;return{updatedList:t.map(e=>{if(!n(e))return e;const t=`${e.type}::${e.id}`,o=a.get(t);return o?(i=!0,{...e,...o}):e}),hasChanged:i}},hydrateSingle:async t=>{if(!t||!n(t))return t;const o=await e(t.id,t.type),r=(null==o?void 0:o.records)||[],a=r.find(e=>(null==e?void 0:e.id)===t.id&&(null==e?void 0:e.type)===t.type)||r[0];return a?{...t,...a}:t}}}const a=(e,o)=>t.locationSearchV2.searchByIdWithType(e,o);function i(o,n,r){const a=e.ref([]),i=e.ref(!1),l=e.ref(!1),s=e.ref(1),c=e.ref(0),d=e.ref(10),u=e.computed(()=>0!==c.value&&a.value.length>=c.value),p=e.computed(()=>{const e=[...n.value];return e.includes("Country")&&!e.includes("Region")&&e.push("Region"),e}),m=e=>e&&Array.isArray(e)?e.filter(e=>p.value.includes(e.type)):[];return{searchResults:a,loading:i,isFetchingMore:l,isFinished:u,currentPage:s,total:c,fetchData:async(e=1,p=!1)=>{var h,f,g,v;const y=null==(h=null==r?void 0:r.parentId)?void 0:h.value,C=o.value.trim();if(!C&&!p&&!y)return a.value=[],void(c.value=0);if((!p||!l.value&&!u.value)&&(p||!i.value)){p?l.value=!0:(i.value=!0,s.value=1);try{const o={};y&&(null==(f=null==r?void 0:r.parentType)?void 0:f.value)&&("Country"===r.parentType.value?o.countryIds=[null==(g=r.parentId)?void 0:g.value]:"City"===r.parentType.value&&(o.cityIds=[null==(v=r.parentId)?void 0:v.value]));const i=await async function(e,o=["Continent","Country","City","Seaport","Airport"],n={}){return t.locationSearchV2.searchByName({keyword:e,displayInfo:o,...n})}(C,n.value,{current:e,size:d.value,...o}),l=i.records||[],u=m(l);a.value=p?[...a.value,...u]:u,c.value=i.total||0,s.value=e}catch(w){console.error("Failed to fetch search results:",w)}finally{i.value=!1,l.value=!1}}},filterByTypes:m}}const l=Math.min,s=Math.max,c=Math.round,d=Math.floor,u=e=>({x:e,y:e}),p={left:"right",right:"left",bottom:"top",top:"bottom"};function m(e,t,o){return s(e,l(t,o))}function h(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function g(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function y(e){return"y"===e?"height":"width"}function C(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function w(e){return v(C(e))}function E(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const b=["left","right"],k=["right","left"],A=["top","bottom"],B=["bottom","top"];function V(e,t,o,n){const r=g(e);let a=function(e,t,o){switch(e){case"top":case"bottom":return o?t?k:b:t?b:k;case"left":case"right":return t?A:B;default:return[]}}(f(e),"start"===o,n);return r&&(a=a.map(e=>e+"-"+r),t&&(a=a.concat(a.map(E)))),a}function x(e){const t=f(e);return p[t]+e.slice(t.length)}function N(e){const{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function S(e,t,o){let{reference:n,floating:r}=e;const a=C(t),i=w(t),l=y(i),s=f(t),c="y"===a,d=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2,p=n[l]/2-r[l]/2;let m;switch(s){case"top":m={x:d,y:n.y-r.height};break;case"bottom":m={x:d,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:u};break;case"left":m={x:n.x-r.width,y:u};break;default:m={x:n.x,y:n.y}}switch(g(t)){case"start":m[i]-=p*(o&&c?-1:1);break;case"end":m[i]+=p*(o&&c?-1:1)}return m}async function I(e,t){var o;void 0===t&&(t={});const{x:n,y:r,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:m=0}=h(t,e),f=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(m),g=l[p?"floating"===u?"reference":"floating":u],v=N(await a.getClippingRect({element:null==(o=await(null==a.isElement?void 0:a.isElement(g)))||o?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:s})),y="floating"===u?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),w=await(null==a.isElement?void 0:a.isElement(C))&&await(null==a.getScale?void 0:a.getScale(C))||{x:1,y:1},E=N(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:C,strategy:s}):y);return{top:(v.top-E.top+f.top)/w.y,bottom:(E.bottom-v.bottom+f.bottom)/w.y,left:(v.left-E.left+f.left)/w.x,right:(E.right-v.right+f.right)/w.x}}const T=new Set(["left","top"]);function D(){return"undefined"!=typeof window}function P(e){return F(e)?(e.nodeName||"").toLowerCase():"#document"}function R(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function _(e){var t;return null==(t=(F(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function F(e){return!!D()&&(e instanceof Node||e instanceof R(e).Node)}function M(e){return!!D()&&(e instanceof Element||e instanceof R(e).Element)}function L(e){return!!D()&&(e instanceof HTMLElement||e instanceof R(e).HTMLElement)}function O(e){return!(!D()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof R(e).ShadowRoot)}function U(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&"inline"!==r&&"contents"!==r}function j(e){return/^(table|td|th)$/.test(P(e))}function z(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}const q=/transform|translate|scale|rotate|perspective|filter/,H=/paint|layout|strict|content/,W=e=>!!e&&"none"!==e;let J;function Q(e){const t=M(e)?X(e):e;return W(t.transform)||W(t.translate)||W(t.scale)||W(t.rotate)||W(t.perspective)||!K()&&(W(t.backdropFilter)||W(t.filter))||q.test(t.willChange||"")||H.test(t.contain||"")}function K(){return null==J&&(J="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),J}function G(e){return/^(html|body|#document)$/.test(P(e))}function X(e){return R(e).getComputedStyle(e)}function Y(e){return M(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if("html"===P(e))return e;const t=e.assignedSlot||e.parentNode||O(e)&&e.host||_(e);return O(t)?t.host:t}function $(e){const t=Z(e);return G(t)?e.ownerDocument?e.ownerDocument.body:e.body:L(t)&&U(t)?t:$(t)}function ee(e,t,o){var n;void 0===t&&(t=[]),void 0===o&&(o=!0);const r=$(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),i=R(r);if(a){const e=te(i);return t.concat(i,i.visualViewport||[],U(r)?r:[],e&&o?ee(e):[])}return t.concat(r,ee(r,[],o))}function te(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oe(e){const t=X(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=L(e),a=r?e.offsetWidth:o,i=r?e.offsetHeight:n,l=c(o)!==a||c(n)!==i;return l&&(o=a,n=i),{width:o,height:n,$:l}}function ne(e){return M(e)?e:e.contextElement}function re(e){const t=ne(e);if(!L(t))return u(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:a}=oe(t);let i=(a?c(o.width):o.width)/n,l=(a?c(o.height):o.height)/r;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const ae=u(0);function ie(e){const t=R(e);return K()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ae}function le(e,t,o,n){void 0===t&&(t=!1),void 0===o&&(o=!1);const r=e.getBoundingClientRect(),a=ne(e);let i=u(1);t&&(n?M(n)&&(i=re(n)):i=re(e));const l=function(e,t,o){return void 0===t&&(t=!1),!(!o||t&&o!==R(e))&&t}(a,o,n)?ie(a):u(0);let s=(r.left+l.x)/i.x,c=(r.top+l.y)/i.y,d=r.width/i.x,p=r.height/i.y;if(a){const e=R(a),t=n&&M(n)?R(n):n;let o=e,r=te(o);for(;r&&n&&t!==o;){const e=re(r),t=r.getBoundingClientRect(),n=X(r),a=t.left+(r.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(n.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,p*=e.y,s+=a,c+=i,o=R(r),r=te(o)}}return N({width:d,height:p,x:s,y:c})}function se(e,t){const o=Y(e).scrollLeft;return t?t.left+o:le(_(e)).left+o}function ce(e,t){const o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-se(e,o),y:o.top+t.scrollTop}}function de(e,t,o){let n;if("viewport"===t)n=function(e,t){const o=R(e),n=_(e),r=o.visualViewport;let a=n.clientWidth,i=n.clientHeight,l=0,s=0;if(r){a=r.width,i=r.height;const e=K();(!e||e&&"fixed"===t)&&(l=r.offsetLeft,s=r.offsetTop)}const c=se(n);if(c<=0){const e=n.ownerDocument,t=e.body,o=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,i=Math.abs(n.clientWidth-t.clientWidth-r);i<=25&&(a-=i)}else c<=25&&(a+=c);return{width:a,height:i,x:l,y:s}}(e,o);else if("document"===t)n=function(e){const t=_(e),o=Y(e),n=e.ownerDocument.body,r=s(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=s(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+se(e);const l=-o.scrollTop;return"rtl"===X(n).direction&&(i+=s(t.clientWidth,n.clientWidth)-r),{width:r,height:a,x:i,y:l}}(_(e));else if(M(t))n=function(e,t){const o=le(e,!0,"fixed"===t),n=o.top+e.clientTop,r=o.left+e.clientLeft,a=L(e)?re(e):u(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:r*a.x,y:n*a.y}}(t,o);else{const o=ie(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return N(n)}function ue(e,t){const o=Z(e);return!(o===t||!M(o)||G(o))&&("fixed"===X(o).position||ue(o,t))}function pe(e,t,o){const n=L(t),r=_(t),a="fixed"===o,i=le(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=u(0);function c(){s.x=se(r)}if(n||!n&&!a)if(("body"!==P(t)||U(r))&&(l=Y(t)),n){const e=le(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&c();a&&!n&&r&&c();const d=!r||n||a?u(0):ce(r,l);return{x:i.left+l.scrollLeft-s.x-d.x,y:i.top+l.scrollTop-s.y-d.y,width:i.width,height:i.height}}function me(e){return"static"===X(e).position}function he(e,t){if(!L(e)||"fixed"===X(e).position)return null;if(t)return t(e);let o=e.offsetParent;return _(e)===o&&(o=o.ownerDocument.body),o}function fe(e,t){const o=R(e);if(z(e))return o;if(!L(e)){let t=Z(e);for(;t&&!G(t);){if(M(t)&&!me(t))return t;t=Z(t)}return o}let n=he(e,t);for(;n&&j(n)&&me(n);)n=he(n,t);return n&&G(n)&&me(n)&&!Q(n)?o:n||function(e){let t=Z(e);for(;L(t)&&!G(t);){if(Q(t))return t;if(z(t))return null;t=Z(t)}return null}(e)||o}const ge={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const a="fixed"===r,i=_(n),l=!!t&&z(t.floating);if(n===i||l&&a)return o;let s={scrollLeft:0,scrollTop:0},c=u(1);const d=u(0),p=L(n);if((p||!p&&!a)&&(("body"!==P(n)||U(i))&&(s=Y(n)),p)){const e=le(n);c=re(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}const m=!i||p||a?u(0):ce(i,s);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-s.scrollLeft*c.x+d.x+m.x,y:o.y*c.y-s.scrollTop*c.y+d.y+m.y}},getDocumentElement:_,getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const a=[..."clippingAncestors"===o?z(t)?[]:function(e,t){const o=t.get(e);if(o)return o;let n=ee(e,[],!1).filter(e=>M(e)&&"body"!==P(e)),r=null;const a="fixed"===X(e).position;let i=a?Z(e):e;for(;M(i)&&!G(i);){const t=X(i),o=Q(i);o||"fixed"!==t.position||(r=null),(a?!o&&!r:!o&&"static"===t.position&&r&&("absolute"===r.position||"fixed"===r.position)||U(i)&&!o&&ue(e,i))?n=n.filter(e=>e!==i):r=t,i=Z(i)}return t.set(e,n),n}(t,this._c):[].concat(o),n],i=de(t,a[0],r);let c=i.top,d=i.right,u=i.bottom,p=i.left;for(let m=1;m<a.length;m++){const e=de(t,a[m],r);c=s(e.top,c),d=l(e.right,d),u=l(e.bottom,u),p=s(e.left,p)}return{width:d-p,height:u-c,x:p,y:c}},getOffsetParent:fe,getElementRects:async function(e){const t=this.getOffsetParent||fe,o=this.getDimensions,n=await o(e.floating);return{reference:pe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:o}=oe(e);return{width:t,height:o}},getScale:re,isElement:M,isRTL:function(e){return"rtl"===X(e).direction}};function ve(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ye(e,t,o,n){void 0===n&&(n={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,p=ne(e),m=r||a?[...p?ee(p):[],...t?ee(t):[]]:[];m.forEach(e=>{r&&e.addEventListener("scroll",o,{passive:!0}),a&&e.addEventListener("resize",o)});const h=p&&c?function(e,t){let o,n=null;const r=_(e);function a(){var e;clearTimeout(o),null==(e=n)||e.disconnect(),n=null}return function i(c,u){void 0===c&&(c=!1),void 0===u&&(u=1),a();const p=e.getBoundingClientRect(),{left:m,top:h,width:f,height:g}=p;if(c||t(),!f||!g)return;const v={rootMargin:-d(h)+"px "+-d(r.clientWidth-(m+f))+"px "+-d(r.clientHeight-(h+g))+"px "+-d(m)+"px",threshold:s(0,l(1,u))||1};let y=!0;function C(t){const n=t[0].intersectionRatio;if(n!==u){if(!y)return i();n?i(!1,n):o=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==n||ve(p,e.getBoundingClientRect())||i(),y=!1}try{n=new IntersectionObserver(C,{...v,root:r.ownerDocument})}catch(w){n=new IntersectionObserver(C,v)}n.observe(e)}(!0),a}(p,o):null;let f,g=-1,v=null;i&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===p&&v&&t&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),o()}),p&&!u&&v.observe(p),t&&v.observe(t));let y=u?le(e):null;return u&&function t(){const n=le(e);y&&!ve(y,n)&&o();y=n,f=requestAnimationFrame(t)}(),o(),()=>{var e;m.forEach(e=>{r&&e.removeEventListener("scroll",o),a&&e.removeEventListener("resize",o)}),null==h||h(),null==(e=v)||e.disconnect(),v=null,u&&cancelAnimationFrame(f)}}const Ce=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:a,placement:i,middlewareData:l}=t,s=await async function(e,t){const{placement:o,platform:n,elements:r}=e,a=await(null==n.isRTL?void 0:n.isRTL(r.floating)),i=f(o),l=g(o),s="y"===C(o),c=T.has(i)?-1:1,d=a&&s?-1:1,u=h(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:v}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&"number"==typeof v&&(m="end"===l?-1*v:v),s?{x:m*d,y:p*c}:{x:p*c,y:m*d}}(t,e);return i===(null==(o=l.offset)?void 0:o.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:r+s.x,y:a+s.y,data:{...s,placement:i}}}}},we=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:r,platform:a}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...c}=h(e,t),d={x:o,y:n},u=await a.detectOverflow(t,c),p=C(f(r)),g=v(p);let y=d[g],w=d[p];if(i){const e="y"===g?"bottom":"right";y=m(y+u["y"===g?"top":"left"],y,y-u[e])}if(l){const e="y"===p?"bottom":"right";w=m(w+u["y"===p?"top":"left"],w,w-u[e])}const E=s.fn({...t,[g]:y,[p]:w});return{...E,data:{x:E.x-o,y:E.y-n,enabled:{[g]:i,[p]:l}}}}}},Ee=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:a,rects:i,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,...k}=h(e,t);if(null!=(o=a.arrow)&&o.alignmentOffset)return{};const A=f(r),B=C(l),N=f(l)===l,S=await(null==s.isRTL?void 0:s.isRTL(c.floating)),I=p||(N||!b?[x(l)]:function(e){const t=x(e);return[E(e),t,E(t)]}(l)),T="none"!==v;!p&&T&&I.push(...V(l,b,v,S));const D=[l,...I],P=await s.detectOverflow(t,k),R=[];let _=(null==(n=a.flip)?void 0:n.overflows)||[];if(d&&R.push(P[A]),u){const e=function(e,t,o){void 0===o&&(o=!1);const n=g(e),r=w(e),a=y(r);let i="x"===r?n===(o?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=x(i)),[i,x(i)]}(r,i,S);R.push(P[e[0]],P[e[1]])}if(_=[..._,{placement:r,overflows:R}],!R.every(e=>e<=0)){var F,M;const e=((null==(F=a.flip)?void 0:F.index)||0)+1,t=D[e];if(t){if(!("alignment"===u&&B!==C(t))||_.every(e=>C(e.placement)!==B||e.overflows[0]>0))return{data:{index:e,overflows:_},reset:{placement:t}}}let o=null==(M=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:M.placement;if(!o)switch(m){case"bestFit":{var L;const e=null==(L=_.filter(e=>{if(T){const t=C(e.placement);return t===B||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:L[0];e&&(o=e);break}case"initialPlacement":o=l}if(r!==o)return{reset:{placement:o}}}return{}}}},be=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var o,n;const{placement:r,rects:a,platform:i,elements:c}=t,{apply:d=()=>{},...u}=h(e,t),p=await i.detectOverflow(t,u),m=f(r),v=g(r),y="y"===C(r),{width:w,height:E}=a.floating;let b,k;"top"===m||"bottom"===m?(b=m,k=v===(await(null==i.isRTL?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(k=m,b="end"===v?"top":"bottom");const A=E-p.top-p.bottom,B=w-p.left-p.right,V=l(E-p[b],A),x=l(w-p[k],B),N=!t.middlewareData.shift;let S=V,I=x;if(null!=(o=t.middlewareData.shift)&&o.enabled.x&&(I=B),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(S=A),N&&!v){const e=s(p.left,0),t=s(p.right,0),o=s(p.top,0),n=s(p.bottom,0);y?I=w-2*(0!==e||0!==t?e+t:s(p.left,p.right)):S=E-2*(0!==o||0!==n?o+n:s(p.top,p.bottom))}await d({...t,availableWidth:I,availableHeight:S});const T=await i.getDimensions(c.floating);return w!==T.width||E!==T.height?{reset:{rects:!0}}:{}}}},ke=(e,t,o)=>{const n=new Map,r={platform:ge,...o},a={...r.platform,_c:n};return(async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:i}=o,l=i.detectOverflow?i:{...i,detectOverflow:I},s=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:u}=S(c,n,s),p=n,m=0;const h={};for(let f=0;f<a.length;f++){const o=a[f];if(!o)continue;const{name:g,fn:v}=o,{x:y,y:C,data:w,reset:E}=await v({x:d,y:u,initialPlacement:n,placement:p,strategy:r,middlewareData:h,rects:c,platform:l,elements:{reference:e,floating:t}});d=null!=y?y:d,u=null!=C?C:u,h[g]={...h[g],...w},E&&m<50&&(m++,"object"==typeof E&&(E.placement&&(p=E.placement),E.rects&&(c=!0===E.rects?await i.getElementRects({reference:e,floating:t,strategy:r}):E.rects),({x:d,y:u}=S(c,p,s))),f=-1)}return{x:d,y:u,placement:p,strategy:r,middlewareData:h}})(e,t,{...r,platform:a})};const Ae="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",Be="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",Ve={class:"selection-wrapper"},xe={class:"tag-text"},Ne=["onClick"],Se={key:0,class:"search-tag collapse"},Ie=["placeholder"],Te={class:"suffix-area"},De={key:1,class:"loading-spinner"},Pe={class:"search-icon"},Re=["src"],_e={key:0,class:"history-section"},Fe={class:"history-header"},Me=["onMousedown"],Le=["src"],Oe={class:"type-text"},Ue={class:"result-text"},je={key:0,class:"status-msg"},ze=["onMousedown"],qe=["src"],He={class:"type-text"},We={class:"result-text"},Je={key:0,class:"load-more-msg"},Qe={key:2,class:"status-msg"},Ke={key:0,class:"no-result-label"},Ge={key:1,class:"no-result-label"},Xe={class:"jc:flex jc:justify-center jc:items-center jc:gap-1"},Ye=["src"],Ze=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},$e=Ze(e.defineComponent({__name:"index",props:{modelValue:{default:null},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},searchTypeList:{default:()=>["Continent","Country","Region","City","Seaport","Airport"]},historyKey:{default:void 0},lang:{default:""},placeholder:{},showSearchIcon:{type:Boolean,default:!0},showItemTag:{type:Boolean,default:!0},showApplyData:{type:Boolean,default:!0},parentId:{default:null},parentType:{default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","select","blur","change","submit-search","remove","clear","apply-data","apply-data-open","apply-data-close"],setup(t,{emit:n}){const l=t,s=n,c=e.ref(null),d=e.ref(null),u=e.ref(null),p=e.ref(""),m=e.ref(""),h=e.ref(!1);let f=null;const g=e.ref(!1),v=e.computed(()=>l.modelValue?Array.isArray(l.modelValue)?l.modelValue:[l.modelValue]:[]),y=e.computed(()=>l.multiple?l.collapseTags?v.value.slice(0,1):v.value:[]),C=e.computed(()=>p.value||v.value.length>0),w=e.computed(()=>l.multiple?p.value?10*p.value.length+20+"px":"10px":"100%"),{searchHistory:E,saveToHistory:b,clearHistory:k}=function(t){const o=e.ref([]),n="undefined"!=typeof window&&"undefined"!=typeof localStorage,r=e.computed(()=>(t.value||"")+"_search_history_cache"),a=e.computed(()=>!!t.value&&""!==t.value);return e.onMounted(()=>{if(n&&a.value){const t=localStorage.getItem(r.value);if(t)try{o.value=JSON.parse(t)}catch(e){o.value=[]}}}),{searchHistory:o,saveToHistory:e=>{if(!e||!n)return;const t=o.value.filter(t=>t.id&&t.id!==e.id||t.display!==e.display);t.unshift(e);const i=t.slice(0,4);if(a.value){o.value=i;try{localStorage.setItem(r.value,JSON.stringify(i))}catch(l){console.warn("LocalStorage save failed:",l)}}},clearHistory:()=>{o.value=[],n&&localStorage.removeItem(r.value)},HasHistory:a}}(e.toRef(l,"historyKey")),{searchResults:A,loading:B,isFetchingMore:V,isFinished:x,currentPage:N,fetchData:S,filterByTypes:I}=i(p,e.toRef(l,"searchTypeList"),{parentId:e.toRef(l,"parentId"),parentType:e.toRef(l,"parentType")}),{floatingStyles:T,startTrack:D,stopTrack:P}=function(t,o){const n=e.ref({position:"fixed",left:"0",top:"0",zIndex:3e3});let r=null;const a=()=>{t.value&&o.value&&ke(t.value,o.value,{placement:"bottom-start",strategy:"fixed",middleware:[Ce(6),Ee(),we({padding:10}),be({apply({rects:e,elements:t,availableWidth:o}){const n=`${e.reference.width}px`,r=e.reference.width;Object.assign(t.floating.style,{width:"max-content",minWidth:n,maxWidth:`${Math.max(r,o-20)}px`})}})]}).then(({x:e,y:t})=>{Object.assign(n.value,{left:`${e}px`,top:`${t}px`})})},i=()=>{r&&(r(),r=null)};return e.onBeforeUnmount(i),{floatingStyles:n,startTrack:()=>{t.value&&o.value&&(r=ye(t.value,o.value,a))},stopTrack:i}}(d,u),{hydrateMultiple:R,hydrateSingle:_}=r(a),{isDropdownVisible:F,openDropdown:M,handleAfterSelect:L,handleBlur:O}=function(t,o,n,r){const a=e.ref(!1),i=()=>a.value=!1;return{isDropdownVisible:a,openDropdown:()=>a.value=!0,closeDropdown:i,handleAfterSelect:()=>{var e,r;t?null==(e=o.value)||e.focus():(n.value="",i(),null==(r=o.value)||r.blur())},handleBlur:()=>{setTimeout(()=>{i(),r("blur"),n.value=""},200)}}}(e.toRef(l,"multiple").value,c,p,s),{formItem:U}=o.useFormItem(),j=e.computed(()=>A.value.length>0||B.value||p.value||E.value.length>0),z=e.computed(()=>{var e,t,o,n,r,a;if(l.lang)return"en"===l.lang||"en-US"===l.lang;try{if("function"==typeof useCookie){const t=null==(e=useCookie("jc-language"))?void 0:e.value;if(t)return/^en(-US)?$/.test(t)}}catch(i){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp(),i=(null==(a=null==(r=null==(n=null==(o=null==(t=null==e?void 0:e.ssrContext)?void 0:t.event)?void 0:o.node)?void 0:n.req)?void 0:r.headers)?void 0:a.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(i)}}catch(i){}return!1}),q=e.computed(()=>l.multiple&&v.value.length>0?"":h.value&&!l.multiple?m.value:l.placeholder?l.placeholder:z.value?"Please enter...":"请输入..."),H=e=>({City:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVR4AaRQO07DQBCdWe8B4B5IFFyAK9ARkIVNhIQEEiVtJLgABRVRvIBCJBquwBVyDgoaSnuHeZY3MlYcNsnIb8fze6M3hra0XoKJm95N3Nv3EnyhFvb2EgjRJbOMKqmO2tDcvQ5fK+qvl4CJbOn9/CJPP9tArp5sHtP4lc652VXxPL1Z1hRFIOytF1NuTJCfnT4Ms8HjSgJctn1xIt6hxqIkdK+u8U8zT1ESmP5enUkWmqMkhG2FmxXOvR+EGD5KAhoDqsQvtiMXJQGNQJ4N8mF6PMd/wL8SxuOXPSG21pj9p+L1EOjGyAHoQQ0zWGDqx9pbPWIpwqOEkw+gGyMHoAc1ozOkVhOcZyepYndNpDpPvwAAAP//BVQJHAAAAAZJREFUAwDZWL4hub5xHQAAAABJRU5ErkJggg==",Country:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACmklEQVR4AXRTT0jUQRT+3uyqGxgYeCiy1JAo6JBUp4Q81EEiKKiDa+H+/ENGHgPpZtChQ4EHL+Ku+9t0V7EkQSGPBYGHBIU6RAqt2cFDBw9C+3de3yy7hobDvHm/+d4337x58xuDQ9r4+FRDLJZqG49PtrvvQ2j4TyDmJ7sm/NRqoMpsIYD3RgIL7pvY54lEqvug0J5APB4PxfzUOwFGRWReVJp7I+GjW+nvxxQo0DagOjLhJxcctyK0J6BS/UaAc1nNtXrdnc88rzPtSMPDwwXiM7R2WNwDpMVKzTTKrSRQTq0tq9mOR55XWliOY2wsVQ+RRWZQiyACjiPQ9pg/0+U4JQEoBkXMi4OLmWpdsEZXofY5yYtSzH10HHJHBPYJMZhyhS8X84U5B+y36iaBNPxMr59nPTo9z8uU4jaToL8Yj88eN2xNTG+3r+/BBncMuSLRln1/+iZgdkhEY2NjvfMVo1DarbG20GIqoPMaqL5G38Zb+GBh36roMufpzc3N3xSvi0ZfX6APEYNAg86bjMluCFDr+7OX1JoWQNJed/ipaK6Z6oOi2dbTZ85eVan+YYLBL7yBdRb9IXkha23aPPa8bQBrFoUVqo4qMMU5mOZ2JBKeo98RiwHi8xQ7Qo6vCsdb6e+//4ubgJegLzlmDOQ6i/XKCVQskZg9aaFtRrBGsYytQpQiu+SPOI5xQ2+kK6mQJRJHo8lko8MqxswGhceCzY25mMnLEmOf3Br6f2/BaLaTqhuSl6/xxPRQNDrJehBRrSWxABMaMnmsKfCN9eEfSZS9lAG9O3OmJ9J1C9ABVb1rgoF1PqA/Cokw3k7stgKDvZHwHXcUYqW+J1CacejlcXoi4SvFvD2lRdxAER0s3glirS5Gyr7+FwAA//8Pj6q2AAAABklEQVQDAJPeLlNn5TR8AAAAAElFTkSuQmCC",Airport:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACT0lEQVR4AaRSO2hTYRT+zn9v2g6CiktFJYoVHXQoOljM2EIEh0orbRKa5qUuDoIZAnXI4FBwcRDikMcNkoQMQjcVESo4OASsW2kLBi3oUKiD1OZx7/H811wJZFF6uOee85/H93/3nKtwQPkvgFKpdKRgVR+UrFrOsurX9N3/DJCvVPxMwx+lKcbgKzbstPhwAXSyWK7eLZZrc4VCNZDPPx/Tt+kCrTqvOrQqfuNrc2OcgW0CduQM9TfJyIB5mQy8UaaxKbftFq3qL9HP1KGGFDe+NDdC/jPnlwgcZEM9lRiU2VFjgngI4FGxa0IvZXecU07XPsc2pkCUIULaa2Z2MsJ7Orkw/8kFiMVCb4XWcQV14w8temL4aJNM47Fh0OHEYqieWAyXT/jPBhzmh7o5EY28Rk/cGWSz2a4GSsTCt3tgs5qmDc726sTQvsS6/c0SFDz97lO/329K4z2Amm1u3ZK11SyrOmNC/ZDYSElWiT5R2resymUZ1pIUv2Qa+iafcrrFretDNJwTf94GUnt7u9u6to3hUW09dQEcIC+BR0LxqgztPnFrotd8wWHclNykaR4dYeCngj0IQNyekOQshLas8hmzLyA3B2UTU6l4eEX8Ld8IZsTu+Mg4hj5xGcTj8f1kLPxChjgO0AdWlAOwnkotbImFrHGFGdOy6u82aJAB+kUZywQ6KaH3ou7TcbguziRApiLWOXjiMvAO2iaic3rH6wxe1Wetd+KRNQKEDV9kwisd83QAQCfkr7uUjEUq2vdUgdJQFExEw++8mLa/AQAA//9h0VsEAAAABklEQVQDAKhs6Pxd3K8TAAAAAElFTkSuQmCC",Seaport:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACC0lEQVR4AXxRv2tTURT+zk1iIjgoOMShkIJVNwf/gQYULOjQwaGvGl8TBMEMDg4ODgF17likvL4HIYm4OLg61K2CooWKDoKCDoJDHASb9N17POf5Enwk6eN+9/z+3nfvNZjxbYS9ymbYXlQ8CbvnZrRhKoEOFMl9zFHuuaJA/E4Jp5FMJTCwZWner/veCYX6ecQVsRNrKsFE1yGJDMFW1Hm4FXX7hnIvADquvkJ9zYn/U3vw35chYOA2Ebcc26uWbVWwnKKqOak9ktmmYLwyBATkY+d2b63d2FYgps9umNtTX6G18WTqmNRmTNB+djaIOqEpmC+FIn8Lom4vaD89n2lKgwkCebYNsvEnAlXI4CIMXSagTNa9l9p6Ojc2CUEYhiW5oE3IxQH4AYNFeb5qvea9SuB7Vc1J7ReDjomidZ2RWNKysyneFHNFovGgxIiizoWR9BGRqiKw76i0qj2JAo7jtwycJDvY1eQIDNM0lu+OYrUHf/BBbEmI9sTKP2VvNGpvAP4Kc1SVSGb2OlLiVQa+12srr7UrUZA6Lx27e0HUu6PnU/kOXGbwaT1Gq9XKa80xmgTa1hlFQiBP1hNWn4AdOd8DpmLfgnakYV/yv/UF5ipn+qLyvgGp2us6I/V/R+DYPiYenpKbv0Y8mGeLS0OmhYbvLQuWiGkeFkuGBwtrvrdyMKA5nVGCvwAAAP//q4xnOgAAAAZJREFUAwCH2O8KfEWHWQAAAABJRU5ErkJggg=="}[e]||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACgUlEQVR4AXRST0hUYRD/zbfbrqahQpAHlQ3dSurYoaBAwWNQkIT7J/ve09DQsOigkNCha4ckl4Lct0/S3QI7REFEBB08FBHRIYLwIJEodOlUurnfNN+6mq9weMPM+818v2/mm1HYQXK5XH02mz9h1fo7pOE/gkwmU+v5+fuGot8phJdWmSLLnl+4I0RV/xIFCGxCdU3DUwaOkULX18Uve1ydrC4xdwLcwRR9bnO2kwQIoCIDEowpXjsZ4vBCSyx+w/Nnb1KElkkwG4OqGhG79QUImEkT0T2JrpZ4fV5sF0Ad6je9BrBKxLeZuVv8rS9IAG4qGf5oTPSolNxIXOyUNjqlpb0W4xI+Cd62dVqcAAGBVqSCVmPMIoPCttzm2MEBAoeLir4hRK2AWPyVIAHRHMH0Ly0tCBF3M5t+Aq6A0HPJSSyCeZAIz7BNAgQwqxNyc1NL7MCoeyH1xNWpuKsTcet7fv46QI0/zdoEtkmAwHGcHyFQj/Q57vuPzm7m+X5efB6HYj3kOCubuLVlApltfdbPX5uaetCmdeKVAqUN1mdy04XR3PTsqAHPWMztTb24myvEBBuRM+WlUnbzDEXeya2D4XC0zrJqnXwsO3pG3mCMGWMK6lQZk2A0hH2GMSxL9VlI6lVkd90RgGKkVFrrc+9REXubjLH9FxfbbVUVGG5v4i2p8LD8x9ax65C66KTfKGCSDc97fv6DJzuf9QtDtm+iqsM1ot70w9O+YDbmSQ6bkkyCJitnAUcnryqmuExgSsZYKypvgFvS+5xVsJk0MGlps97mFCVXpnNZqoBcbo2QyJz7dCLj6JTj6tRxVyf3izZUtNndwM73SU55JzaO4Q8AAAD//54At5MAAAAGSURBVAMAh2IbMAJQAZQAAAAASUVORK5CYII="),W=e=>{const t={City:{en:"City",cn:"城市"},Country:{en:"Country",cn:"国家"},Region:{en:"Region",cn:"区域"},Airport:{en:"Airport",cn:"机场"},Seaport:{en:"Seaport",cn:"港口"}}[e];return t?z.value?t.en:t.cn:e},J=e=>v.value.some(t=>t.id===e.id),Q=()=>{var e;return null==(e=c.value)?void 0:e.focus()},K=e=>z.value?e.displayEn||e.display||"":e.displayCn||e.display||"",G=e=>{var t;if(b(e),l.multiple){if(!J(e)){const t=[...v.value,e];s("update:modelValue",t)}}else m.value=K(e),h.value=!0,s("update:modelValue",e);s("select",e),s("change",e),null==(t=null==U?void 0:U.validate)||t.call(U,"change").catch(()=>{}),L()},X=e=>{const t=v.value.filter(t=>t.id!==e.id);s("update:modelValue",t),s("remove",e)},Y=()=>{l.multiple&&!p.value&&v.value.length>0&&X(v.value[v.value.length-1])},Z=()=>{var e;p.value="",h.value=!1,m.value="";const t=l.multiple?[]:null;s("update:modelValue",t),s("clear"),null==(e=null==U?void 0:U.validate)||e.call(U,"change").catch(()=>{})},$=async()=>{if(M(),!l.multiple&&h.value&&0===A.value.length){const e=l.modelValue;if(null==e?void 0:e.id){B.value=!0;try{const t=await a(e.id,e.type);A.value=I(t.records)}finally{B.value=!1}}}},ee=e=>{var t;O(),null==(t=null==U?void 0:U.validate)||t.call(U,"blur").catch(()=>{})},te=e=>{const t=e.target;t&&(""!==t.value||l.multiple||Z())},oe=()=>{s("submit-search",v.value),F.value=!1},ne=e=>{const t=e.target;if(!t)return;const{scrollTop:o,scrollHeight:n,clientHeight:r}=t;o+r>=n-20&&(B.value||V.value||x.value||!p.value||S(N.value+1,!0))},re=e=>{s("apply-data",e)},ae=()=>{g.value=!0,s("apply-data-open")},ie=()=>{p.value="",g.value=!1,s("apply-data-close")};return e.watch(()=>l.parentId,()=>{l.multiple||(p.value="",A.value=[])}),e.watch(F,e=>{e?D():P()}),e.watch(p,e=>{if(!e.trim())return A.value=[],void(f&&(clearTimeout(f),f=null));f&&clearTimeout(f),f=setTimeout(()=>S(1,!1),300)}),e.watch(()=>l.modelValue,async(e,t)=>{if(JSON.stringify(e)===JSON.stringify(t))return;if(l.multiple&&Array.isArray(e)){try{const{updatedList:t,hasChanged:o}=await R(e);o&&s("update:modelValue",t)}catch(n){console.error("Batch fetch detail failed:",n)}return}const o=e;if(!o)return h.value=!1,void(m.value="");if("object"==typeof o)if(o.id&&o.type&&!o.display)try{const e=await _(o);e&&(m.value=K(e),h.value=!0)}catch(n){console.error("Single fetch detail failed:",n)}else m.value=K(o),h.value=!!m.value;else m.value=String(o),h.value=!!o},{immediate:!0,deep:!0}),e.onBeforeUnmount(()=>{P(),f&&(clearTimeout(f),f=null)}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["search-container",{"is-disabled":t.disabled}])},[e.createElementVNode("div",{class:e.normalizeClass(["search-input-wrapper",{"is-multiple":t.multiple}]),ref_key:"referenceRef",ref:d,onClick:Q},[e.createElementVNode("div",Ve,[e.renderSlot(o.$slots,"prefix",{},void 0,!0),t.multiple&&v.value.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(t,o)=>(e.openBlock(),e.createElementBlock("div",{key:t.id||o,class:"search-tag"},[e.createElementVNode("span",xe,e.toDisplayString(K(t)),1),e.createElementVNode("span",{class:"tag-close",onClick:e.withModifiers(e=>X(t),["stop"])},"×",8,Ne)]))),128)),t.collapseTags&&v.value.length>1?(e.openBlock(),e.createElementBlock("div",Se," + "+e.toDisplayString(v.value.length-1),1)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{ref_key:"inputRef",ref:c,class:e.normalizeClass({"is-selected-state":h.value&&!t.multiple}),"onUpdate:modelValue":n[0]||(n[0]=e=>p.value=e),type:"text",placeholder:q.value,style:e.normalizeStyle({width:w.value}),onFocus:$,onBlur:ee,onInput:te,onKeydown:e.withKeys(Y,["delete"])},null,46,Ie),[[e.vModelText,p.value]])]),e.renderSlot(o.$slots,"suffix",{},()=>[e.createElementVNode("div",Te,[C.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:"clear-icon",onMousedown:n[1]||(n[1]=e.withModifiers(()=>{},["prevent"])),onClick:e.withModifiers(Z,["stop"])},"ⓧ",32)):e.createCommentVNode("",!0),e.unref(B)&&!e.unref(V)?(e.openBlock(),e.createElementBlock("div",De)):!e.unref(B)&&t.showSearchIcon?(e.openBlock(),e.createElementBlock("button",{key:2,class:"search-btn",onClick:e.withModifiers(oe,["stop"])},[e.createElementVNode("span",Pe,[e.createElementVNode("img",{src:e.unref(Ae),alt:"search"},null,8,Re)])])):e.createCommentVNode("",!0)])],!0)],2),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.withDirectives(e.createElementVNode("div",{ref_key:"floatingRef",ref:u,class:"dropdown-list",style:e.normalizeStyle(e.unref(T)),onScroll:ne},[e.renderSlot(o.$slots,"history",{searchHistory:e.unref(E)},()=>[e.unref(E).length>0&&!p.value?(e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("div",Fe,[e.createElementVNode("span",null,e.toDisplayString(z.value?"Recent search":"最近搜索"),1),e.createElementVNode("span",{class:"clear-btn",onMousedown:n[2]||(n[2]=e.withModifiers(()=>{},["prevent"])),onClick:n[3]||(n[3]=e.withModifiers((...t)=>e.unref(k)&&e.unref(k)(...t),["stop"]))},e.toDisplayString(z.value?"Clear":"清空"),33)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(E),(o,n)=>(e.openBlock(),e.createElementBlock("div",{key:"hist-"+n,class:"dropdown-item",onMousedown:e.withModifiers(e=>G(o),["prevent"])},[e.createElementVNode("div",{class:"category-tag",style:e.normalizeStyle(t.showItemTag?{}:{display:"none"})},[e.createElementVNode("img",{class:"type-icon",src:H(o.type),alt:""},null,8,Le),e.createElementVNode("span",Oe,e.toDisplayString(W(o.type)),1)],4),e.createElementVNode("div",Ue,e.toDisplayString(K(o)),1)],40,Me))),128)),n[7]||(n[7]=e.createElementVNode("hr",{class:"divider"},null,-1))])):e.createCommentVNode("",!0)],!0),e.unref(B)&&!e.unref(V)?(e.openBlock(),e.createElementBlock("div",je,e.toDisplayString(z.value?"Searching...":"正在搜索中..."),1)):e.unref(A).length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(o.$slots,"results",{searchResults:e.unref(A)},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(A),(o,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:e.normalizeClass(["dropdown-item",{"is-active":J(o)}]),onMousedown:e.withModifiers(e=>G(o),["prevent"])},[e.createElementVNode("div",{class:"category-tag",style:e.normalizeStyle(t.showItemTag?{}:{display:"none"})},[e.createElementVNode("img",{class:"type-icon",src:H(o.type),alt:""},null,8,qe),e.createElementVNode("span",He,e.toDisplayString(W(o.type)),1)],4),e.createElementVNode("div",We,e.toDisplayString(K(o)),1)],42,ze))),128))],!0),e.unref(V)?(e.openBlock(),e.createElementBlock("div",Je,e.toDisplayString(z.value?"Loading more...":"正在加载更多..."),1)):e.createCommentVNode("",!0)],64)):p.value&&!e.unref(B)?(e.openBlock(),e.createElementBlock("div",Qe,[e.renderSlot(o.$slots,"noData",{},()=>[t.showApplyData?(e.openBlock(),e.createElementBlock("div",Ge,[e.createTextVNode(e.toDisplayString(z.value?"No results found. ":"暂无结果,")+" ",1),e.createElementVNode("div",Xe,[e.createElementVNode("span",{class:"apply-data jc:cursor-pointer jc:ml-1",onClick:n[4]||(n[4]=e.withModifiers(()=>g.value=!0,["stop"]))},e.toDisplayString(z.value?"Apply for data addition":"申请补充数据 "),1),e.createElementVNode("img",{src:e.unref(Be),alt:"",class:"apply-data-more-icon",onClick:n[5]||(n[5]=e.withModifiers(()=>g.value=!0,["stop"]))},null,8,Ye)])])):(e.openBlock(),e.createElementBlock("p",Ke,e.toDisplayString(z.value?`No results found related to "${p.value}".`:`未找到与 "${p.value}" 相关的结果`),1))],!0)])):e.createCommentVNode("",!0)],36),[[e.vShow,e.unref(F)&&j.value]])])),e.createVNode(In,{searchValue:p.value,value:g.value,"onUpdate:value":n[6]||(n[6]=e=>g.value=e),lang:t.lang,onConfirm:re,onOpen:ae,onClose:ie},null,8,["searchValue","value","lang"])],2))}}),[["__scopeId","data-v-176a8f0f"]]),et=Object.freeze(Object.defineProperty({__proto__:null,default:$e},Symbol.toStringTag,{value:"Module"}));var tt="object"==typeof global&&global&&global.Object===Object&&global,ot="object"==typeof self&&self&&self.Object===Object&&self,nt=tt||ot||Function("return this")(),rt=nt.Symbol,at=Object.prototype,it=at.hasOwnProperty,lt=at.toString,st=rt?rt.toStringTag:void 0;var ct=Object.prototype.toString;var dt=rt?rt.toStringTag:void 0;function ut(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":dt&&dt in Object(e)?function(e){var t=it.call(e,st),o=e[st];try{e[st]=void 0;var n=!0}catch(a){}var r=lt.call(e);return n&&(t?e[st]=o:delete e[st]),r}(e):function(e){return ct.call(e)}(e)}function pt(e){return null!=e&&"object"==typeof e}var mt=Array.isArray,ht=/\s/;var ft=/^\s+/;function gt(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&ht.test(e.charAt(t)););return t}(e)+1).replace(ft,""):e}function vt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var yt=/^[-+]0x[0-9a-f]+$/i,Ct=/^0b[01]+$/i,wt=/^0o[0-7]+$/i,Et=parseInt;function bt(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||pt(e)&&"[object Symbol]"==ut(e)}(e))return NaN;if(vt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=vt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=gt(e);var o=Ct.test(e);return o||wt.test(e)?Et(e.slice(2),o?2:8):yt.test(e)?NaN:+e}function kt(e){if(!vt(e))return!1;var t=ut(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var At,Bt=nt["__core-js_shared__"],Vt=(At=/[^.]+$/.exec(Bt&&Bt.keys&&Bt.keys.IE_PROTO||""))?"Symbol(src)_1."+At:"";var xt=Function.prototype.toString;function Nt(e){if(null!=e){try{return xt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var St=/^\[object .+?Constructor\]$/,It=Function.prototype,Tt=Object.prototype,Dt=It.toString,Pt=Tt.hasOwnProperty,Rt=RegExp("^"+Dt.call(Pt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _t(e){return!(!vt(e)||(t=e,Vt&&Vt in t))&&(kt(e)?Rt:St).test(Nt(e));var t}function Ft(e,t){var o=function(e,t){return null==e?void 0:e[t]}(e,t);return _t(o)?o:void 0}var Mt=Ft(nt,"WeakMap"),Lt=/^(?:0|[1-9]\d*)$/;function Ot(e,t){var o=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&Lt.test(e))&&e>-1&&e%1==0&&e<t}function Ut(e,t){return e===t||e!=e&&t!=t}function jt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var zt=Object.prototype;function qt(e){return pt(e)&&"[object Arguments]"==ut(e)}var Ht=Object.prototype,Wt=Ht.hasOwnProperty,Jt=Ht.propertyIsEnumerable,Qt=qt(function(){return arguments}())?qt:function(e){return pt(e)&&Wt.call(e,"callee")&&!Jt.call(e,"callee")};var Kt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Gt=Kt&&"object"==typeof module&&module&&!module.nodeType&&module,Xt=Gt&&Gt.exports===Kt?nt.Buffer:void 0,Yt=(Xt?Xt.isBuffer:void 0)||function(){return!1},Zt={};Zt["[object Float32Array]"]=Zt["[object Float64Array]"]=Zt["[object Int8Array]"]=Zt["[object Int16Array]"]=Zt["[object Int32Array]"]=Zt["[object Uint8Array]"]=Zt["[object Uint8ClampedArray]"]=Zt["[object Uint16Array]"]=Zt["[object Uint32Array]"]=!0,Zt["[object Arguments]"]=Zt["[object Array]"]=Zt["[object ArrayBuffer]"]=Zt["[object Boolean]"]=Zt["[object DataView]"]=Zt["[object Date]"]=Zt["[object Error]"]=Zt["[object Function]"]=Zt["[object Map]"]=Zt["[object Number]"]=Zt["[object Object]"]=Zt["[object RegExp]"]=Zt["[object Set]"]=Zt["[object String]"]=Zt["[object WeakMap]"]=!1;var $t,eo="object"==typeof exports&&exports&&!exports.nodeType&&exports,to=eo&&"object"==typeof module&&module&&!module.nodeType&&module,oo=to&&to.exports===eo&&tt.process,no=function(){try{var e=to&&to.require&&to.require("util").types;return e||oo&&oo.binding&&oo.binding("util")}catch(t){}}(),ro=no&&no.isTypedArray,ao=ro?($t=ro,function(e){return $t(e)}):function(e){return pt(e)&&jt(e.length)&&!!Zt[ut(e)]},io=Object.prototype.hasOwnProperty;function lo(e,t){var o=mt(e),n=!o&&Qt(e),r=!o&&!n&&Yt(e),a=!o&&!n&&!r&&ao(e),i=o||n||r||a,l=i?function(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}(e.length,String):[],s=l.length;for(var c in e)!io.call(e,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ot(c,s))||l.push(c);return l}var so=function(e,t){return function(o){return e(t(o))}}(Object.keys,Object),co=Object.prototype.hasOwnProperty;function uo(e){if(o=(t=e)&&t.constructor,t!==("function"==typeof o&&o.prototype||zt))return so(e);var t,o,n=[];for(var r in Object(e))co.call(e,r)&&"constructor"!=r&&n.push(r);return n}function po(e){return null!=(t=e)&&jt(t.length)&&!kt(t)?lo(e):uo(e);var t}var mo=Ft(Object,"create");var ho=Object.prototype.hasOwnProperty;var fo=Object.prototype.hasOwnProperty;function go(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function vo(e,t){for(var o=e.length;o--;)if(Ut(e[o][0],t))return o;return-1}go.prototype.clear=function(){this.__data__=mo?mo(null):{},this.size=0},go.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},go.prototype.get=function(e){var t=this.__data__;if(mo){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return ho.call(t,e)?t[e]:void 0},go.prototype.has=function(e){var t=this.__data__;return mo?void 0!==t[e]:fo.call(t,e)},go.prototype.set=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=mo&&void 0===t?"__lodash_hash_undefined__":t,this};var yo=Array.prototype.splice;function Co(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Co.prototype.clear=function(){this.__data__=[],this.size=0},Co.prototype.delete=function(e){var t=this.__data__,o=vo(t,e);return!(o<0)&&(o==t.length-1?t.pop():yo.call(t,o,1),--this.size,!0)},Co.prototype.get=function(e){var t=this.__data__,o=vo(t,e);return o<0?void 0:t[o][1]},Co.prototype.has=function(e){return vo(this.__data__,e)>-1},Co.prototype.set=function(e,t){var o=this.__data__,n=vo(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this};var wo=Ft(nt,"Map");function Eo(e,t){var o,n,r=e.__data__;return("string"==(n=typeof(o=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==o:null===o)?r["string"==typeof t?"string":"hash"]:r.map}function bo(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}bo.prototype.clear=function(){this.size=0,this.__data__={hash:new go,map:new(wo||Co),string:new go}},bo.prototype.delete=function(e){var t=Eo(this,e).delete(e);return this.size-=t?1:0,t},bo.prototype.get=function(e){return Eo(this,e).get(e)},bo.prototype.has=function(e){return Eo(this,e).has(e)},bo.prototype.set=function(e,t){var o=Eo(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this};function ko(e){var t=this.__data__=new Co(e);this.size=t.size}ko.prototype.clear=function(){this.__data__=new Co,this.size=0},ko.prototype.delete=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o},ko.prototype.get=function(e){return this.__data__.get(e)},ko.prototype.has=function(e){return this.__data__.has(e)},ko.prototype.set=function(e,t){var o=this.__data__;if(o instanceof Co){var n=o.__data__;if(!wo||n.length<199)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new bo(n)}return o.set(e,t),this.size=o.size,this};var Ao=Object.prototype.propertyIsEnumerable,Bo=Object.getOwnPropertySymbols,Vo=Bo?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var o=-1,n=null==e?0:e.length,r=0,a=[];++o<n;){var i=e[o];t(i,o,e)&&(a[r++]=i)}return a}(Bo(e),function(t){return Ao.call(e,t)}))}:function(){return[]};function xo(e){return function(e,t,o){var n=t(e);return mt(e)?n:function(e,t){for(var o=-1,n=t.length,r=e.length;++o<n;)e[r+o]=t[o];return e}(n,o(e))}(e,po,Vo)}var No=Ft(nt,"DataView"),So=Ft(nt,"Promise"),Io=Ft(nt,"Set"),To="[object Map]",Do="[object Promise]",Po="[object Set]",Ro="[object WeakMap]",_o="[object DataView]",Fo=Nt(No),Mo=Nt(wo),Lo=Nt(So),Oo=Nt(Io),Uo=Nt(Mt),jo=ut;(No&&jo(new No(new ArrayBuffer(1)))!=_o||wo&&jo(new wo)!=To||So&&jo(So.resolve())!=Do||Io&&jo(new Io)!=Po||Mt&&jo(new Mt)!=Ro)&&(jo=function(e){var t=ut(e),o="[object Object]"==t?e.constructor:void 0,n=o?Nt(o):"";if(n)switch(n){case Fo:return _o;case Mo:return To;case Lo:return Do;case Oo:return Po;case Uo:return Ro}return t});var zo=nt.Uint8Array;function qo(e){var t=-1,o=null==e?0:e.length;for(this.__data__=new bo;++t<o;)this.add(e[t])}function Ho(e,t){for(var o=-1,n=null==e?0:e.length;++o<n;)if(t(e[o],o,e))return!0;return!1}qo.prototype.add=qo.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},qo.prototype.has=function(e){return this.__data__.has(e)};function Wo(e,t,o,n,r,a){var i=1&o,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var u=-1,p=!0,m=2&o?new qo:void 0;for(a.set(e,t),a.set(t,e);++u<l;){var h=e[u],f=t[u];if(n)var g=i?n(f,h,u,t,e,a):n(h,f,u,e,t,a);if(void 0!==g){if(g)continue;p=!1;break}if(m){if(!Ho(t,function(e,t){if(i=t,!m.has(i)&&(h===e||r(h,e,o,n,a)))return m.push(t);var i})){p=!1;break}}else if(h!==f&&!r(h,f,o,n,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Jo(e){var t=-1,o=Array(e.size);return e.forEach(function(e,n){o[++t]=[n,e]}),o}function Qo(e){var t=-1,o=Array(e.size);return e.forEach(function(e){o[++t]=e}),o}var Ko=rt?rt.prototype:void 0,Go=Ko?Ko.valueOf:void 0;var Xo=Object.prototype.hasOwnProperty;var Yo="[object Arguments]",Zo="[object Array]",$o="[object Object]",en=Object.prototype.hasOwnProperty;function tn(e,t,o,n,r,a){var i=mt(e),l=mt(t),s=i?Zo:jo(e),c=l?Zo:jo(t),d=(s=s==Yo?$o:s)==$o,u=(c=c==Yo?$o:c)==$o,p=s==c;if(p&&Yt(e)){if(!Yt(t))return!1;i=!0,d=!1}if(p&&!d)return a||(a=new ko),i||ao(e)?Wo(e,t,o,n,r,a):function(e,t,o,n,r,a,i){switch(o){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new zo(e),new zo(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ut(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=Jo;case"[object Set]":var s=1&n;if(l||(l=Qo),e.size!=t.size&&!s)return!1;var c=i.get(e);if(c)return c==t;n|=2,i.set(e,t);var d=Wo(l(e),l(t),n,r,a,i);return i.delete(e),d;case"[object Symbol]":if(Go)return Go.call(e)==Go.call(t)}return!1}(e,t,s,o,n,r,a);if(!(1&o)){var m=d&&en.call(e,"__wrapped__"),h=u&&en.call(t,"__wrapped__");if(m||h){var f=m?e.value():e,g=h?t.value():t;return a||(a=new ko),r(f,g,o,n,a)}}return!!p&&(a||(a=new ko),function(e,t,o,n,r,a){var i=1&o,l=xo(e),s=l.length;if(s!=xo(t).length&&!i)return!1;for(var c=s;c--;){var d=l[c];if(!(i?d in t:Xo.call(t,d)))return!1}var u=a.get(e),p=a.get(t);if(u&&p)return u==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var h=i;++c<s;){var f=e[d=l[c]],g=t[d];if(n)var v=i?n(g,f,d,t,e,a):n(f,g,d,e,t,a);if(!(void 0===v?f===g||r(f,g,o,n,a):v)){m=!1;break}h||(h="constructor"==d)}if(m&&!h){var y=e.constructor,C=t.constructor;y==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof C&&C instanceof C||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,o,n,r,a))}function on(e,t,o,n,r){return e===t||(null==e||null==t||!pt(e)&&!pt(t)?e!=e&&t!=t:tn(e,t,o,n,on,r))}var nn=function(){return nt.Date.now()},rn=Math.max,an=Math.min;function ln(e,t,o){var n,r,a,i,l,s,c=0,d=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var o=n,a=r;return n=r=void 0,c=t,i=e.apply(a,o)}function h(e){var o=e-s;return void 0===s||o>=t||o<0||u&&e-c>=a}function f(){var e=nn();if(h(e))return g(e);l=setTimeout(f,function(e){var o=t-(e-s);return u?an(o,a-(e-c)):o}(e))}function g(e){return l=void 0,p&&n?m(e):(n=r=void 0,i)}function v(){var e=nn(),o=h(e);if(n=arguments,r=this,s=e,o){if(void 0===l)return function(e){return c=e,l=setTimeout(f,t),d?m(e):i}(s);if(u)return clearTimeout(l),l=setTimeout(f,t),m(s)}return void 0===l&&(l=setTimeout(f,t)),i}return t=bt(t)||0,vt(o)&&(d=!!o.leading,a=(u="maxWait"in o)?rn(bt(o.maxWait)||0,t):a,p="trailing"in o?!!o.trailing:p),v.cancel=function(){void 0!==l&&clearTimeout(l),c=0,n=s=r=l=void 0},v.flush=function(){return void 0===l?i:g(nn())},v}const sn={key:0,class:"modal-container"},cn={class:"modal-header"},dn={class:"header-title"},un={class:"modal-body"},pn={class:"form-item"},mn={class:"required"},hn={class:"input-box"},fn=["placeholder"],gn={key:0,class:"error-message"},vn={class:"form-item"},yn={class:"required"},Cn={class:"type-group"},wn=["onClick"],En={key:0,class:"check-mark"},bn={class:"form-item"},kn={class:"required"},An={key:0,class:"error-message"},Bn={class:"modal-footer"},Vn={key:1,class:"apply-success-container"},xn={class:"apply-success-container__content"},Nn={class:"desc"},Sn={class:"apply-success-container__btns"},In=Ze({__name:"ApplyDataDialog",props:{value:{type:Boolean,default:!1},lang:{type:String,default:"",validator:e=>["","en","en-US","zh-CN","cn"].includes(e)},searchValue:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update:value","confirm","open","close"],setup(n,{emit:r}){const a=n,i=r,l=[{typeCn:"城市",typeEn:"City",type:"City"},{typeCn:"海运港口",typeEn:"Port",type:"Seaport"},{typeCn:"机场",typeEn:"Airport",type:"Airport"}],s=e.ref(null),c=e.ref(!1),d=e.ref(!1);e.watch(()=>a.value,e=>{e&&(console.log("🍉 ~ ApplyDataDialog.vue:138 ~ props.searchValue:",a.searchValue),a.searchValue&&(p.name=a.searchValue),i("open"))});const u=e.reactive({name:"",country:""}),p=e.reactive({name:"",type:"City"}),m=e.computed(()=>{var e,t,o,n,r,i;if(a.lang)return"en"===a.lang||"en-US"===a.lang;try{if("function"==typeof useCookie){const t=null==(e=useCookie("jc-language"))?void 0:e.value;if(t)return/^en(-US)?$/.test(t)}}catch(l){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp(),a=(null==(i=null==(r=null==(n=null==(o=null==(t=null==e?void 0:e.ssrContext)?void 0:t.event)?void 0:o.node)?void 0:n.req)?void 0:r.headers)?void 0:i.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(a)}}catch(l){}return!1}),h=()=>{u.name="",u.country="",c.value=!1,p.name="",p.type="City",s.value=null,i("update:value",!1),i("close")},f=ln(()=>{u.name="",u.country="";let e=!0;p.name.trim()||(u.name=m.value?"Please enter the data":"请输入需要补充的数据",e=!1),s.value||(u.country=m.value?"Please select a country":"请选择国家",e=!1),e&&(d.value=!0,t.reportNewTypeDataApi({reportData:p.name,reportType:p.type.toLocaleLowerCase(),countryId:s.value.id}).then(e=>{console.log("🍉 ~ ApplyDataDialog.vue:185 ~ handleConfirm ~ res:",e,e.code),0===e.code&&(c.value=!0,o.ElMessage.success(m.value?"Application received. Awaiting review":"平台已收到申请,请等待审核"),i("confirm",{...p,country:s.value}))}).catch(e=>{console.log("🍉 ~ ApplyDataDialog.vue:187 ~ handleConfirm ~ err:",e)}).finally(()=>{d.value=!1}))},800,{leading:!0,trailing:!1});return(t,r)=>n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-mask",onClick:e.withModifiers(h,["self"])},[c.value?(e.openBlock(),e.createElementBlock("div",Vn,[e.createElementVNode("div",xn,[r[5]||(r[5]=e.createElementVNode("div",{class:"icon"},null,-1)),e.createElementVNode("div",Nn,e.toDisplayString(m.value?"Application received. Awaiting review!":"平台已收到申请,请等待审核!"),1)]),e.createElementVNode("div",Sn,[e.createElementVNode("div",{class:"button jc:cursor-pointer",onClick:e.withModifiers(h,["stop"])},e.toDisplayString(m.value?"OK":"好的"),1)])])):(e.openBlock(),e.createElementBlock("div",sn,[e.createElementVNode("div",cn,[e.createElementVNode("span",dn,e.toDisplayString(m.value?"Apply for data addition":"申请补充数据"),1),e.createElementVNode("div",{class:"close-btn",onClick:h},"×")]),e.createElementVNode("div",un,[e.createElementVNode("div",pn,[e.createElementVNode("label",mn,e.toDisplayString(m.value?"Data To Add":"需补充的数据"),1),e.createElementVNode("div",hn,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":r[0]||(r[0]=e=>p.name=e),type:"text",placeholder:n.placeholder??(m.value?" Please enter":"请输入"),class:e.normalizeClass(["custom-input",{"input-error":u.name}]),onInput:r[1]||(r[1]=e=>u.name="")},null,42,fn),[[e.vModelText,p.name]])]),u.name?(e.openBlock(),e.createElementBlock("div",gn,e.toDisplayString(u.name),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",vn,[e.createElementVNode("label",yn,e.toDisplayString(m.value?"Type":"所属类别"),1),e.createElementVNode("div",Cn,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,t=>e.createElementVNode("div",{key:t.type,class:e.normalizeClass(["type-btn",{active:p.type===t.type}]),onClick:e=>p.type=t.type},[e.createTextVNode(e.toDisplayString(m.value?t.typeEn:t.typeCn)+" ",1),p.type===t.type?(e.openBlock(),e.createElementBlock("div",En)):e.createCommentVNode("",!0)],10,wn)),64))])]),e.createElementVNode("div",bn,[e.createElementVNode("label",kn,e.toDisplayString(m.value?"Country":"国家"),1),e.createElementVNode("div",{class:e.normalizeClass({"search-error-wrap":u.country})},[e.createVNode($e,{"search-type-list":["Country"],"model-value":s.value,"onUpdate:modelValue":[r[2]||(r[2]=e=>s.value=e),r[3]||(r[3]=e=>u.country="")],style:{margin:"0 auto"},lang:n.lang,"show-apply-data":!1,"show-search-icon":!1,placeholder:n.placeholder??(m.value?" Please enter":"请输入")},null,8,["model-value","lang","placeholder"])],2),u.country?(e.openBlock(),e.createElementBlock("div",An,e.toDisplayString(u.country),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Bn,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["confirm-btn jc:outline-none!",{"is-loading":d.value}]),onClick:r[4]||(r[4]=(...t)=>e.unref(f)&&e.unref(f)(...t))},[e.createTextVNode(e.toDisplayString(m.value?"Submit":"申请补充"),1)],2)),[[e.unref(o.vLoading),d.value]])])]))])):e.createCommentVNode("",!0)}},[["__scopeId","data-v-98fe6169"]]),Tn=Object.freeze(Object.defineProperty({__proto__:null,default:In},Symbol.toStringTag,{value:"Module"})),Dn=(t="")=>({isEn:e.computed(()=>{var e,o,n,r,a,i;if(t)return"en"===t||"en-US"===t;try{if("function"==typeof useCookie){const t=null==(e=useCookie("jc-language"))?void 0:e.value;if(t)return/^en(-US)?$/.test(t)}}catch(l){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp(),t=(null==(i=null==(a=null==(r=null==(n=null==(o=null==e?void 0:e.ssrContext)?void 0:o.event)?void 0:n.node)?void 0:r.req)?void 0:a.headers)?void 0:i.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(t)}}catch(l){}return!1})}),Pn={class:"global-company-input"},Rn={class:"company-option-item"},_n=Ze({__name:"index",props:{lang:{type:String,default:""},companyName:{type:String,default:""},countryId:{type:[String,Number,null],required:!0},useKq:{type:Boolean,default:!1},kqCode:{type:[String,Number],default:""},kqInfo:{type:Object,default:()=>({})},city:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1}},emits:["update:companyName","update:useKq","update:kqCode","update:kqInfo","change"],setup(n,{emit:r}){const a=n,i=r,l=e.ref(!1),s=e.ref([]),{isEn:c}=Dn(a.lang),{formItem:d}=o.useFormItem(),u=e.computed({get:()=>a.companyName,set:e=>i("update:companyName",e)}),p=e.ref(!1),m=e=>{e?(l.value=!0,h(e)):s.value=[]},h=ln(e=>{var o;console.log("🍉 ~ index.vue:119 ~ props.city:",a.city);const n={current:1,size:50,compName:e,cityName:(null==(o=a.city)?void 0:o.nameCn)+"市"};t.getCompanyOptionApi(n).then(e=>{var t;s.value=(null==(t=e.data.data.records)?void 0:t.map(e=>({value:e.nameCn,code:e.kqId,...e})))||[]}).catch(e=>{console.error("获取公司选项失败:",e),s.value=[]}).finally(()=>{l.value=!1})},800),f=e=>{const t=s.value.find(t=>t.value===e);t?(i("update:useKq",!0),i("update:kqCode",t.code),i("update:kqInfo",t)):(i("update:useKq",!1),i("update:kqCode",""),i("update:kqInfo",{})),i("change",t)},g=e=>{var t;i("update:useKq",!1),i("update:kqCode",""),i("change",e),null==(t=null==d?void 0:d.validate)||t.call(d,"change").catch(()=>{})};return e.watch(()=>a.countryId,()=>{var e;i("update:companyName",""),i("update:useKq",!1),i("update:kqCode",""),i("update:kqInfo",{}),null==(e=null==d?void 0:d.validate)||e.call(d,"change").catch(()=>{}),s.value=[]}),e.onBeforeUnmount(()=>{h.cancel()}),(t,r)=>(e.openBlock(),e.createElementBlock("div",Pn,[[1].includes(Number(a.countryId))?(e.openBlock(),e.createBlock(e.unref(o.ElSelect),{key:0,modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=e=>u.value=e),filterable:"",remote:"","reserve-keyword":"",clearable:"","allow-create":n.allowCreate,"default-first-option":n.defaultFirstOption,"remote-method":m,loading:l.value,disabled:p.value||a.disabled,placeholder:e.unref(c)?"Company Name in Chinese":"请输入您的公司中文名称",style:{width:"100%"},"popper-class":"company-search dialog-join-us",onChange:f},{prefix:e.withCtx(()=>[e.renderSlot(t.$slots,"prefix",{},void 0,!0)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,t=>(e.openBlock(),e.createBlock(e.unref(o.ElOption),{key:t.code,label:t.value,value:t.value},{default:e.withCtx(()=>[e.createElementVNode("div",Rn,[e.createElementVNode("span",null,e.toDisplayString(t.value),1)])]),_:2},1032,["label","value"]))),128))]),_:3},8,["modelValue","allow-create","default-first-option","loading","disabled","placeholder"])):(e.openBlock(),e.createBlock(e.unref(o.ElInput),{key:1,modelValue:u.value,"onUpdate:modelValue":r[1]||(r[1]=e=>u.value=e),disabled:p.value||a.disabled,placeholder:e.unref(c)?"Company name in English":"请输入您的公司英文名称","max-length":"200",style:{width:"100%"},onChange:g},{prepend:e.withCtx(()=>[e.renderSlot(t.$slots,"prefix",{},void 0,!0)]),_:3},8,["modelValue","disabled","placeholder"]))]))}},[["__scopeId","data-v-07246d14"]]),Fn=Object.freeze(Object.defineProperty({__proto__:null,default:_n},Symbol.toStringTag,{value:"Module"})),Mn={name:"GoogleInput",components:{ElInput:o.ElInput},inheritAttrs:!1,props:{placeholder:{type:String,default:""},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue","blur","focus"],data:()=>({isFocus:!1,autofillTimer:null}),computed:{isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus||null!==this.modelValue&&""!==this.modelValue}},mounted(){window.navigator.userAgent.indexOf("Chrome")>-1&&this.checkAutofill(0)},beforeUnmount(){this.clearAutofillTimer()},methods:{focusInput(){var e,t;null==(t=null==(e=this.$refs.googleInput)?void 0:e.focus)||t.call(e)},clearAutofillTimer(){this.autofillTimer&&(clearTimeout(this.autofillTimer),this.autofillTimer=null)},checkAutofill(e){var t,o;try{const n=null==(o=null==(t=this.$refs.googleInput)?void 0:t.$el)?void 0:o.querySelector("input");if(!n)return;if("rgb(232, 240, 254)"===window.getComputedStyle(n).getPropertyValue("background-color"))return void(this.isFocus=!0);e<20&&(this.autofillTimer=setTimeout(()=>{this.checkAutofill(e+1)},100))}catch(n){console.error("Autofill detection error:",n)}},handleInput(e){this.$emit("update:modelValue",e)},localBlur(e){this.isFocus=!1,this.$emit("blur",e)},localFocus(e){this.isFocus=!0,this.$emit("focus",e)}}},Ln={type:"text",name:"fakeUsername",autocomplete:"on"},On={type:"password",name:"fakePassword",autocomplete:"new-password"},Un={class:"google-input-wrap"},jn={key:0,class:"google-input-wrap-prepend"},zn={class:"google-input-wrap-input"};const qn=Ze(Mn,[["render",function(t,o,n,r,a,i){const l=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["google-input",{"is-focus":i.shouldFloat,"is-have-prepend":i.isHavePrepend}])},[e.withDirectives(e.createElementVNode("input",Ln,null,512),[[e.vShow,!1]]),e.withDirectives(e.createElementVNode("input",On,null,512),[[e.vShow,!1]]),e.createElementVNode("div",Un,[i.isHavePrepend?(e.openBlock(),e.createElementBlock("div",jn,[e.renderSlot(t.$slots,"prefix",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",zn,[e.createVNode(l,e.mergeProps({ref:"googleInput"},t.$attrs,{"model-value":n.modelValue},e.toHandlers({input:i.handleInput,blur:i.localBlur,focus:i.localFocus})),{suffix:e.withCtx(()=>[e.renderSlot(t.$slots,"suffix",{},void 0,!0)]),_:3},16,["model-value"]),e.createElementVNode("p",{onClick:o[0]||(o[0]=(...e)=>i.focusInput&&i.focusInput(...e)),class:"google-input-wrap-input-placeholder"},e.toDisplayString(n.placeholder),1)])])],2)}],["__scopeId","data-v-27eaff9d"]]),Hn=Object.freeze(Object.defineProperty({__proto__:null,default:qn},Symbol.toStringTag,{value:"Module"})),Wn={name:"JcFloatInput",components:{ElInput:o.ElInput},inheritAttrs:!1,props:{placeholder:{type:String,default:""},label:{type:String,default:""},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue","blur","focus"],data:()=>({isFocus:!1,autofillTimer:null}),computed:{currentLabel(){return this.label?this.label:this.placeholder},isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus}},mounted(){window.navigator.userAgent.indexOf("Chrome")>-1&&this.checkAutofill(0)},beforeUnmount(){this.clearAutofillTimer()},methods:{focusInput(){var e,t;null==(t=null==(e=this.$refs.googleInput)?void 0:e.focus)||t.call(e)},clearAutofillTimer(){this.autofillTimer&&(clearTimeout(this.autofillTimer),this.autofillTimer=null)},checkAutofill(e){var t,o;try{const n=null==(o=null==(t=this.$refs.googleInput)?void 0:t.$el)?void 0:o.querySelector("input");if(!n)return;if("rgb(232, 240, 254)"===window.getComputedStyle(n).getPropertyValue("background-color"))return void(this.isFocus=!0);e<20&&(this.autofillTimer=setTimeout(()=>{this.checkAutofill(e+1)},100))}catch(n){console.error("Autofill detection error:",n)}},handleInput(e){this.$emit("update:modelValue",e)},localBlur(e){this.isFocus=!1,this.$emit("blur",e)},localFocus(e){this.isFocus=!0,this.$emit("focus",e)}}},Jn={type:"text",name:"fakeUsername",autocomplete:"on"},Qn={type:"password",name:"fakePassword",autocomplete:"new-password"},Kn={class:"google-input-wrap"},Gn={key:0,class:"google-input-wrap-prepend"},Xn={class:"google-input-wrap-input"};const Yn=Ze(Wn,[["render",function(t,o,n,r,a,i){const l=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["google-input",{"is-focus":i.shouldFloat,"is-have-prepend":i.isHavePrepend}])},[e.withDirectives(e.createElementVNode("input",Jn,null,512),[[e.vShow,!1]]),e.withDirectives(e.createElementVNode("input",Qn,null,512),[[e.vShow,!1]]),e.createElementVNode("div",Kn,[i.isHavePrepend?(e.openBlock(),e.createElementBlock("div",Gn,[e.renderSlot(t.$slots,"prefix",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Xn,[e.createVNode(l,e.mergeProps({ref:"googleInput"},t.$attrs,{"model-value":n.modelValue,placeholder:n.placeholder},e.toHandlers({input:i.handleInput,blur:i.localBlur,focus:i.localFocus})),{suffix:e.withCtx(()=>[e.renderSlot(t.$slots,"suffix",{},void 0,!0)]),_:3},16,["model-value","placeholder"]),e.createElementVNode("p",{onClick:o[0]||(o[0]=(...e)=>i.focusInput&&i.focusInput(...e)),class:"google-input-wrap-input-placeholder"},e.toDisplayString(i.currentLabel),1)])])],2)}],["__scopeId","data-v-b4df44b2"]]),Zn=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"}));var $n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tr(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var o=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),o}var or={exports:{}};var nr={exports:{}};const rr=tr(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var ar;function ir(){return ar||(ar=1,nr.exports=(e=e||function(e,t){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),"undefined"!=typeof self&&self.crypto&&(o=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==$n&&$n.crypto&&(o=$n.crypto),!o)try{o=rr}catch(f){}var n=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(f){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(f){}}throw new Error("Native crypto module could not be used to get secure random number.")},r=Object.create||function(){function e(){}return function(t){var o;return e.prototype=t,o=new e,e.prototype=null,o}}(),a={},i=a.lib={},l=i.Base=function(){return{extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=i.WordArray=l.extend({init:function(e,o){e=this.words=e||[],this.sigBytes=o!=t?o:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,o=e.words,n=this.sigBytes,r=e.sigBytes;if(this.clamp(),n%4)for(var a=0;a<r;a++){var i=o[a>>>2]>>>24-a%4*8&255;t[n+a>>>2]|=i<<24-(n+a)%4*8}else for(var l=0;l<r;l+=4)t[n+l>>>2]=o[l>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,o=this.sigBytes;t[o>>>2]&=4294967295<<32-o%4*8,t.length=e.ceil(o/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],o=0;o<e;o+=4)t.push(n());return new s.init(t,e)}}),c=a.enc={},d=c.Hex={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],r=0;r<o;r++){var a=t[r>>>2]>>>24-r%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,o=[],n=0;n<t;n+=2)o[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new s.init(o,t/2)}},u=c.Latin1={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],r=0;r<o;r++){var a=t[r>>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,o=[],n=0;n<t;n++)o[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new s.init(o,t)}},p=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},m=i.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var o,n=this._data,r=n.words,a=n.sigBytes,i=this.blockSize,l=a/(4*i),c=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*i,d=e.min(4*c,a);if(c){for(var u=0;u<c;u+=i)this._doProcessBlock(r,u);o=r.splice(0,c),n.sigBytes-=d}return new s.init(o,d)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=m.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,o){return new e.init(o).finalize(t)}},_createHmacHelper:function(e){return function(t,o){return new h.HMAC.init(e,o).finalize(t)}}});var h=a.algo={};return a}(Math),e)),nr.exports;var e}var lr,sr={exports:{}};function cr(){return lr?sr.exports:(lr=1,sr.exports=(i=ir(),o=(t=i).lib,n=o.Base,r=o.WordArray,(a=t.x64={}).Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=n.extend({init:function(t,o){t=this.words=t||[],this.sigBytes=o!=e?o:8*t.length},toX32:function(){for(var e=this.words,t=e.length,o=[],n=0;n<t;n++){var a=e[n];o.push(a.high),o.push(a.low)}return r.create(o,this.sigBytes)},clone:function(){for(var e=n.clone.call(this),t=e.words=this.words.slice(0),o=t.length,r=0;r<o;r++)t[r]=t[r].clone();return e}}),i));var e,t,o,n,r,a,i}var dr,ur={exports:{}};function pr(){return dr||(dr=1,ur.exports=(e=ir(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,o=t.init,n=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],r=0;r<t;r++)n[r>>>2]|=e[r]<<24-r%4*8;o.call(this,n,t)}else o.apply(this,arguments)};n.prototype=t}}(),e.lib.WordArray)),ur.exports;var e}var mr,hr={exports:{}};function fr(){return mr?hr.exports:(mr=1,hr.exports=(e=ir(),function(){var t=e,o=t.lib.WordArray,n=t.enc;function r(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],r=0;r<o;r+=2){var a=t[r>>>2]>>>16-r%4*8&65535;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>1]|=e.charCodeAt(r)<<16-r%2*16;return o.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],a=0;a<o;a+=2){var i=r(t[a>>>2]>>>16-a%4*8&65535);n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a++)n[a>>>1]|=r(e.charCodeAt(a)<<16-a%2*16);return o.create(n,2*t)}}}(),e.enc.Utf16));var e}var gr,vr={exports:{}};function yr(){return gr?vr.exports:(gr=1,vr.exports=(e=ir(),function(){var t=e,o=t.lib.WordArray;function n(e,t,n){for(var r=[],a=0,i=0;i<t;i++)if(i%4){var l=n[e.charCodeAt(i-1)]<<i%4*2|n[e.charCodeAt(i)]>>>6-i%4*2;r[a>>>2]|=l<<24-a%4*8,a++}return o.create(r,a)}t.enc.Base64={stringify:function(e){var t=e.words,o=e.sigBytes,n=this._map;e.clamp();for(var r=[],a=0;a<o;a+=3)for(var i=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<o;l++)r.push(n.charAt(i>>>6*(3-l)&63));var s=n.charAt(64);if(s)for(;r.length%4;)r.push(s);return r.join("")},parse:function(e){var t=e.length,o=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a<o.length;a++)r[o.charCodeAt(a)]=a}var i=o.charAt(64);if(i){var l=e.indexOf(i);-1!==l&&(t=l)}return n(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64));var e}var Cr,wr={exports:{}};function Er(){return Cr?wr.exports:(Cr=1,wr.exports=(e=ir(),function(){var t=e,o=t.lib.WordArray;function n(e,t,n){for(var r=[],a=0,i=0;i<t;i++)if(i%4){var l=n[e.charCodeAt(i-1)]<<i%4*2|n[e.charCodeAt(i)]>>>6-i%4*2;r[a>>>2]|=l<<24-a%4*8,a++}return o.create(r,a)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var o=e.words,n=e.sigBytes,r=t?this._safe_map:this._map;e.clamp();for(var a=[],i=0;i<n;i+=3)for(var l=(o[i>>>2]>>>24-i%4*8&255)<<16|(o[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|o[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<n;s++)a.push(r.charAt(l>>>6*(3-s)&63));var c=r.charAt(64);if(c)for(;a.length%4;)a.push(c);return a.join("")},parse:function(e,t){void 0===t&&(t=!0);var o=e.length,r=t?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var i=0;i<r.length;i++)a[r.charCodeAt(i)]=i}var l=r.charAt(64);if(l){var s=e.indexOf(l);-1!==s&&(o=s)}return n(e,o,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url));var e}var br,kr={exports:{}};function Ar(){return br?kr.exports:(br=1,kr.exports=(e=ir(),function(t){var o=e,n=o.lib,r=n.WordArray,a=n.Hasher,i=o.algo,l=[];!function(){for(var e=0;e<64;e++)l[e]=4294967296*t.abs(t.sin(e+1))|0}();var s=i.MD5=a.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var o=0;o<16;o++){var n=t+o,r=e[n];e[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var a=this._hash.words,i=e[t+0],s=e[t+1],m=e[t+2],h=e[t+3],f=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],C=e[t+8],w=e[t+9],E=e[t+10],b=e[t+11],k=e[t+12],A=e[t+13],B=e[t+14],V=e[t+15],x=a[0],N=a[1],S=a[2],I=a[3];x=c(x,N,S,I,i,7,l[0]),I=c(I,x,N,S,s,12,l[1]),S=c(S,I,x,N,m,17,l[2]),N=c(N,S,I,x,h,22,l[3]),x=c(x,N,S,I,f,7,l[4]),I=c(I,x,N,S,g,12,l[5]),S=c(S,I,x,N,v,17,l[6]),N=c(N,S,I,x,y,22,l[7]),x=c(x,N,S,I,C,7,l[8]),I=c(I,x,N,S,w,12,l[9]),S=c(S,I,x,N,E,17,l[10]),N=c(N,S,I,x,b,22,l[11]),x=c(x,N,S,I,k,7,l[12]),I=c(I,x,N,S,A,12,l[13]),S=c(S,I,x,N,B,17,l[14]),x=d(x,N=c(N,S,I,x,V,22,l[15]),S,I,s,5,l[16]),I=d(I,x,N,S,v,9,l[17]),S=d(S,I,x,N,b,14,l[18]),N=d(N,S,I,x,i,20,l[19]),x=d(x,N,S,I,g,5,l[20]),I=d(I,x,N,S,E,9,l[21]),S=d(S,I,x,N,V,14,l[22]),N=d(N,S,I,x,f,20,l[23]),x=d(x,N,S,I,w,5,l[24]),I=d(I,x,N,S,B,9,l[25]),S=d(S,I,x,N,h,14,l[26]),N=d(N,S,I,x,C,20,l[27]),x=d(x,N,S,I,A,5,l[28]),I=d(I,x,N,S,m,9,l[29]),S=d(S,I,x,N,y,14,l[30]),x=u(x,N=d(N,S,I,x,k,20,l[31]),S,I,g,4,l[32]),I=u(I,x,N,S,C,11,l[33]),S=u(S,I,x,N,b,16,l[34]),N=u(N,S,I,x,B,23,l[35]),x=u(x,N,S,I,s,4,l[36]),I=u(I,x,N,S,f,11,l[37]),S=u(S,I,x,N,y,16,l[38]),N=u(N,S,I,x,E,23,l[39]),x=u(x,N,S,I,A,4,l[40]),I=u(I,x,N,S,i,11,l[41]),S=u(S,I,x,N,h,16,l[42]),N=u(N,S,I,x,v,23,l[43]),x=u(x,N,S,I,w,4,l[44]),I=u(I,x,N,S,k,11,l[45]),S=u(S,I,x,N,V,16,l[46]),x=p(x,N=u(N,S,I,x,m,23,l[47]),S,I,i,6,l[48]),I=p(I,x,N,S,y,10,l[49]),S=p(S,I,x,N,B,15,l[50]),N=p(N,S,I,x,g,21,l[51]),x=p(x,N,S,I,k,6,l[52]),I=p(I,x,N,S,h,10,l[53]),S=p(S,I,x,N,E,15,l[54]),N=p(N,S,I,x,s,21,l[55]),x=p(x,N,S,I,C,6,l[56]),I=p(I,x,N,S,V,10,l[57]),S=p(S,I,x,N,v,15,l[58]),N=p(N,S,I,x,A,21,l[59]),x=p(x,N,S,I,f,6,l[60]),I=p(I,x,N,S,b,10,l[61]),S=p(S,I,x,N,m,15,l[62]),N=p(N,S,I,x,w,21,l[63]),a[0]=a[0]+x|0,a[1]=a[1]+N|0,a[2]=a[2]+S|0,a[3]=a[3]+I|0},_doFinalize:function(){var e=this._data,o=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;o[r>>>5]|=128<<24-r%32;var a=t.floor(n/4294967296),i=n;o[15+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),o[14+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.sigBytes=4*(o.length+1),this._process();for(var l=this._hash,s=l.words,c=0;c<4;c++){var d=s[c];s[c]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return l},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,o,n,r,a,i){var l=e+(t&o|~t&n)+r+i;return(l<<a|l>>>32-a)+t}function d(e,t,o,n,r,a,i){var l=e+(t&n|o&~n)+r+i;return(l<<a|l>>>32-a)+t}function u(e,t,o,n,r,a,i){var l=e+(t^o^n)+r+i;return(l<<a|l>>>32-a)+t}function p(e,t,o,n,r,a,i){var l=e+(o^(t|~n))+r+i;return(l<<a|l>>>32-a)+t}o.MD5=a._createHelper(s),o.HmacMD5=a._createHmacHelper(s)}(Math),e.MD5));var e}var Br,Vr={exports:{}};function xr(){return Br?Vr.exports:(Br=1,Vr.exports=(l=ir(),t=(e=l).lib,o=t.WordArray,n=t.Hasher,r=e.algo,a=[],i=r.SHA1=n.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var o=this._hash.words,n=o[0],r=o[1],i=o[2],l=o[3],s=o[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var d=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=d<<1|d>>>31}var u=(n<<5|n>>>27)+s+a[c];u+=c<20?1518500249+(r&i|~r&l):c<40?1859775393+(r^i^l):c<60?(r&i|r&l|i&l)-1894007588:(r^i^l)-899497514,s=l,l=i,i=r<<30|r>>>2,r=n,n=u}o[0]=o[0]+n|0,o[1]=o[1]+r|0,o[2]=o[2]+i|0,o[3]=o[3]+l|0,o[4]=o[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(o/4294967296),t[15+(n+64>>>9<<4)]=o,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=n._createHelper(i),e.HmacSHA1=n._createHmacHelper(i),l.SHA1));var e,t,o,n,r,a,i,l}var Nr,Sr={exports:{}};function Ir(){return Nr?Sr.exports:(Nr=1,Sr.exports=(e=ir(),function(t){var o=e,n=o.lib,r=n.WordArray,a=n.Hasher,i=o.algo,l=[],s=[];!function(){function e(e){for(var o=t.sqrt(e),n=2;n<=o;n++)if(!(e%n))return!1;return!0}function o(e){return 4294967296*(e-(0|e))|0}for(var n=2,r=0;r<64;)e(n)&&(r<8&&(l[r]=o(t.pow(n,.5))),s[r]=o(t.pow(n,1/3)),r++),n++}();var c=[],d=i.SHA256=a.extend({_doReset:function(){this._hash=new r.init(l.slice(0))},_doProcessBlock:function(e,t){for(var o=this._hash.words,n=o[0],r=o[1],a=o[2],i=o[3],l=o[4],d=o[5],u=o[6],p=o[7],m=0;m<64;m++){if(m<16)c[m]=0|e[t+m];else{var h=c[m-15],f=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,g=c[m-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[m]=f+c[m-7]+v+c[m-16]}var y=n&r^n&a^r&a,C=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=p+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&d^~l&u)+s[m]+c[m];p=u,u=d,d=l,l=i+w|0,i=a,a=r,r=n,n=w+(C+y)|0}o[0]=o[0]+n|0,o[1]=o[1]+r|0,o[2]=o[2]+a|0,o[3]=o[3]+i|0,o[4]=o[4]+l|0,o[5]=o[5]+d|0,o[6]=o[6]+u|0,o[7]=o[7]+p|0},_doFinalize:function(){var e=this._data,o=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return o[r>>>5]|=128<<24-r%32,o[14+(r+64>>>9<<4)]=t.floor(n/4294967296),o[15+(r+64>>>9<<4)]=n,e.sigBytes=4*o.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});o.SHA256=a._createHelper(d),o.HmacSHA256=a._createHmacHelper(d)}(Math),e.SHA256));var e}var Tr,Dr={exports:{}};var Pr,Rr={exports:{}};function _r(){return Pr||(Pr=1,Rr.exports=(e=ir(),cr(),function(){var t=e,o=t.lib.Hasher,n=t.x64,r=n.Word,a=n.WordArray,i=t.algo;function l(){return r.create.apply(r,arguments)}var s=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=l()}();var d=i.SHA512=o.extend({_doReset:function(){this._hash=new a.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var o=this._hash.words,n=o[0],r=o[1],a=o[2],i=o[3],l=o[4],d=o[5],u=o[6],p=o[7],m=n.high,h=n.low,f=r.high,g=r.low,v=a.high,y=a.low,C=i.high,w=i.low,E=l.high,b=l.low,k=d.high,A=d.low,B=u.high,V=u.low,x=p.high,N=p.low,S=m,I=h,T=f,D=g,P=v,R=y,_=C,F=w,M=E,L=b,O=k,U=A,j=B,z=V,q=x,H=N,W=0;W<80;W++){var J,Q,K=c[W];if(W<16)Q=K.high=0|e[t+2*W],J=K.low=0|e[t+2*W+1];else{var G=c[W-15],X=G.high,Y=G.low,Z=(X>>>1|Y<<31)^(X>>>8|Y<<24)^X>>>7,$=(Y>>>1|X<<31)^(Y>>>8|X<<24)^(Y>>>7|X<<25),ee=c[W-2],te=ee.high,oe=ee.low,ne=(te>>>19|oe<<13)^(te<<3|oe>>>29)^te>>>6,re=(oe>>>19|te<<13)^(oe<<3|te>>>29)^(oe>>>6|te<<26),ae=c[W-7],ie=ae.high,le=ae.low,se=c[W-16],ce=se.high,de=se.low;Q=(Q=(Q=Z+ie+((J=$+le)>>>0<$>>>0?1:0))+ne+((J+=re)>>>0<re>>>0?1:0))+ce+((J+=de)>>>0<de>>>0?1:0),K.high=Q,K.low=J}var ue,pe=M&O^~M&j,me=L&U^~L&z,he=S&T^S&P^T&P,fe=I&D^I&R^D&R,ge=(S>>>28|I<<4)^(S<<30|I>>>2)^(S<<25|I>>>7),ve=(I>>>28|S<<4)^(I<<30|S>>>2)^(I<<25|S>>>7),ye=(M>>>14|L<<18)^(M>>>18|L<<14)^(M<<23|L>>>9),Ce=(L>>>14|M<<18)^(L>>>18|M<<14)^(L<<23|M>>>9),we=s[W],Ee=we.high,be=we.low,ke=q+ye+((ue=H+Ce)>>>0<H>>>0?1:0),Ae=ve+fe;q=j,H=z,j=O,z=U,O=M,U=L,M=_+(ke=(ke=(ke=ke+pe+((ue+=me)>>>0<me>>>0?1:0))+Ee+((ue+=be)>>>0<be>>>0?1:0))+Q+((ue+=J)>>>0<J>>>0?1:0))+((L=F+ue|0)>>>0<F>>>0?1:0)|0,_=P,F=R,P=T,R=D,T=S,D=I,S=ke+(ge+he+(Ae>>>0<ve>>>0?1:0))+((I=ue+Ae|0)>>>0<ue>>>0?1:0)|0}h=n.low=h+I,n.high=m+S+(h>>>0<I>>>0?1:0),g=r.low=g+D,r.high=f+T+(g>>>0<D>>>0?1:0),y=a.low=y+R,a.high=v+P+(y>>>0<R>>>0?1:0),w=i.low=w+F,i.high=C+_+(w>>>0<F>>>0?1:0),b=l.low=b+L,l.high=E+M+(b>>>0<L>>>0?1:0),A=d.low=A+U,d.high=k+O+(A>>>0<U>>>0?1:0),V=u.low=V+z,u.high=B+j+(V>>>0<z>>>0?1:0),N=p.low=N+H,p.high=x+q+(N>>>0<H>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(o/4294967296),t[31+(n+128>>>10<<5)]=o,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=o._createHelper(d),t.HmacSHA512=o._createHmacHelper(d)}(),e.SHA512)),Rr.exports;var e}var Fr,Mr={exports:{}};var Lr,Or={exports:{}};function Ur(){return Lr?Or.exports:(Lr=1,Or.exports=(e=ir(),cr(),function(t){var o=e,n=o.lib,r=n.WordArray,a=n.Hasher,i=o.x64.Word,l=o.algo,s=[],c=[],d=[];!function(){for(var e=1,t=0,o=0;o<24;o++){s[e+5*t]=(o+1)*(o+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var r=1,a=0;a<24;a++){for(var l=0,u=0,p=0;p<7;p++){if(1&r){var m=(1<<p)-1;m<32?u^=1<<m:l^=1<<m-32}128&r?r=r<<1^113:r<<=1}d[a]=i.create(l,u)}}();var u=[];!function(){for(var e=0;e<25;e++)u[e]=i.create()}();var p=l.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new i.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var o=this._state,n=this.blockSize/2,r=0;r<n;r++){var a=e[t+2*r],i=e[t+2*r+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),(N=o[r]).high^=i,N.low^=a}for(var l=0;l<24;l++){for(var p=0;p<5;p++){for(var m=0,h=0,f=0;f<5;f++)m^=(N=o[p+5*f]).high,h^=N.low;var g=u[p];g.high=m,g.low=h}for(p=0;p<5;p++){var v=u[(p+4)%5],y=u[(p+1)%5],C=y.high,w=y.low;for(m=v.high^(C<<1|w>>>31),h=v.low^(w<<1|C>>>31),f=0;f<5;f++)(N=o[p+5*f]).high^=m,N.low^=h}for(var E=1;E<25;E++){var b=(N=o[E]).high,k=N.low,A=s[E];A<32?(m=b<<A|k>>>32-A,h=k<<A|b>>>32-A):(m=k<<A-32|b>>>64-A,h=b<<A-32|k>>>64-A);var B=u[c[E]];B.high=m,B.low=h}var V=u[0],x=o[0];for(V.high=x.high,V.low=x.low,p=0;p<5;p++)for(f=0;f<5;f++){var N=o[E=p+5*f],S=u[E],I=u[(p+1)%5+5*f],T=u[(p+2)%5+5*f];N.high=S.high^~I.high&T.high,N.low=S.low^~I.low&T.low}N=o[0];var D=d[l];N.high^=D.high,N.low^=D.low}},_doFinalize:function(){var e=this._data,o=e.words;this._nDataBytes;var n=8*e.sigBytes,a=32*this.blockSize;o[n>>>5]|=1<<24-n%32,o[(t.ceil((n+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*o.length,this._process();for(var i=this._state,l=this.cfg.outputLength/8,s=l/8,c=[],d=0;d<s;d++){var u=i[d],p=u.high,m=u.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),m=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),c.push(m),c.push(p)}return new r.init(c,l)},clone:function(){for(var e=a.clone.call(this),t=e._state=this._state.slice(0),o=0;o<25;o++)t[o]=t[o].clone();return e}});o.SHA3=a._createHelper(p),o.HmacSHA3=a._createHmacHelper(p)}(Math),e.SHA3));var e}var jr,zr={exports:{}};var qr,Hr={exports:{}};function Wr(){return qr?Hr.exports:(qr=1,Hr.exports=(e=ir(),o=(t=e).lib.Base,n=t.enc.Utf8,void(t.algo.HMAC=o.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var o=e.blockSize,r=4*o;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),i=this._iKey=t.clone(),l=a.words,s=i.words,c=0;c<o;c++)l[c]^=1549556828,s[c]^=909522486;a.sigBytes=i.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,o=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(o))}}))));var e,t,o,n}var Jr,Qr={exports:{}};var Kr,Gr={exports:{}};function Xr(){return Kr?Gr.exports:(Kr=1,Gr.exports=(l=ir(),xr(),Wr(),t=(e=l).lib,o=t.Base,n=t.WordArray,r=e.algo,a=r.MD5,i=r.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var o,r=this.cfg,a=r.hasher.create(),i=n.create(),l=i.words,s=r.keySize,c=r.iterations;l.length<s;){o&&a.update(o),o=a.update(e).finalize(t),a.reset();for(var d=1;d<c;d++)o=a.finalize(o),a.reset();i.concat(o)}return i.sigBytes=4*s,i}}),e.EvpKDF=function(e,t,o){return i.create(o).compute(e,t)},l.EvpKDF));var e,t,o,n,r,a,i,l}var Yr,Zr={exports:{}};function $r(){return Yr?Zr.exports:(Yr=1,Zr.exports=(e=ir(),Xr(),void(e.lib.Cipher||function(t){var o=e,n=o.lib,r=n.Base,a=n.WordArray,i=n.BufferedBlockAlgorithm,l=o.enc;l.Utf8;var s=l.Base64,c=o.algo.EvpKDF,d=n.Cipher=i.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,o){this.cfg=this.cfg.extend(o),this._xformMode=e,this._key=t,this.reset()},reset:function(){i.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?C:v}return function(t){return{encrypt:function(o,n,r){return e(n).encrypt(t,o,n,r)},decrypt:function(o,n,r){return e(n).decrypt(t,o,n,r)}}}}()});n.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=o.mode={},p=n.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),m=u.CBC=function(){var e=p.extend();function o(e,o,n){var r,a=this._iv;a?(r=a,this._iv=t):r=this._prevBlock;for(var i=0;i<n;i++)e[o+i]^=r[i]}return e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize;o.call(this,e,t,r),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),e.Decryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,a=e.slice(t,t+r);n.decryptBlock(e,t),o.call(this,e,t,r),this._prevBlock=a}}),e}(),h=(o.pad={}).Pkcs7={pad:function(e,t){for(var o=4*t,n=o-e.sigBytes%o,r=n<<24|n<<16|n<<8|n,i=[],l=0;l<n;l+=4)i.push(r);var s=a.create(i,n);e.concat(s)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=d.extend({cfg:d.cfg.extend({mode:m,padding:h}),reset:function(){var e;d.reset.call(this);var t=this.cfg,o=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,o&&o.words):(this._mode=e.call(n,this,o&&o.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var f=n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(o.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,o=e.salt;return(o?a.create([1398893684,1701076831]).concat(o).concat(t):t).toString(s)},parse:function(e){var t,o=s.parse(e),n=o.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=a.create(n.slice(2,4)),n.splice(0,4),o.sigBytes-=16),f.create({ciphertext:o,salt:t})}},v=n.SerializableCipher=r.extend({cfg:r.extend({format:g}),encrypt:function(e,t,o,n){n=this.cfg.extend(n);var r=e.createEncryptor(o,n),a=r.finalize(t),i=r.cfg;return f.create({ciphertext:a,key:o,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,o,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(o,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(o.kdf={}).OpenSSL={execute:function(e,t,o,n,r){if(n||(n=a.random(8)),r)i=c.create({keySize:t+o,hasher:r}).compute(e,n);else var i=c.create({keySize:t+o}).compute(e,n);var l=a.create(i.words.slice(t),4*o);return i.sigBytes=4*t,f.create({key:i,iv:l,salt:n})}},C=n.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:y}),encrypt:function(e,t,o,n){var r=(n=this.cfg.extend(n)).kdf.execute(o,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=r.iv;var a=v.encrypt.call(this,e,t,r.key,n);return a.mixIn(r),a},decrypt:function(e,t,o,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var r=n.kdf.execute(o,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=r.iv,v.decrypt.call(this,e,t,r.key,n)}})}())));var e}var ea,ta={exports:{}};var oa,na={exports:{}};var ra,aa={exports:{}};function ia(){return ra?aa.exports:(ra=1,aa.exports=(e=ir(),$r(),
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("@jctrans-materials/shared"),o=require("element-plus"),n=e=>!!(null==e?void 0:e.id)&&!!(null==e?void 0:e.type)&&!(null==e?void 0:e.display);function r(e){return{hydrateMultiple:async t=>{if(!Array.isArray(t)||0===t.length)return{updatedList:t,hasChanged:!1};const o=t.filter(e=>n(e));if(0===o.length)return{updatedList:t,hasChanged:!1};const r=o.reduce((e,t)=>{const o=t.type;return e[o]||(e[o]=[]),e[o].push(t.id),e},{}),a=new Map;for(const[n,l]of Object.entries(r)){if(0===l.length)continue;const t=await e(l,n);((null==t?void 0:t.records)||[]).forEach(e=>{(null==e?void 0:e.id)&&(null==e?void 0:e.type)&&a.set(`${e.type}::${e.id}`,e)})}let i=!1;return{updatedList:t.map(e=>{if(!n(e))return e;const t=`${e.type}::${e.id}`,o=a.get(t);return o?(i=!0,{...e,...o}):e}),hasChanged:i}},hydrateSingle:async t=>{if(!t||!n(t))return t;const o=await e(t.id,t.type),r=(null==o?void 0:o.records)||[],a=r.find(e=>(null==e?void 0:e.id)===t.id&&(null==e?void 0:e.type)===t.type)||r[0];return a?{...t,...a}:t}}}const a=(e,o)=>t.locationSearchV2.searchByIdWithType(e,o);function i(o,n,r){const a=e.ref([]),i=e.ref(!1),l=e.ref(!1),s=e.ref(1),c=e.ref(0),d=e.ref(10),u=e.computed(()=>0!==c.value&&a.value.length>=c.value),p=e.computed(()=>{const e=[...n.value];return e.includes("Country")&&!e.includes("Region")&&e.push("Region"),e}),m=e=>e&&Array.isArray(e)?e.filter(e=>p.value.includes(e.type)):[];return{searchResults:a,loading:i,isFetchingMore:l,isFinished:u,currentPage:s,total:c,fetchData:async(e=1,p=!1)=>{var h,f,g,v;const y=null==(h=null==r?void 0:r.parentId)?void 0:h.value,C=o.value.trim();if(!C&&!p&&!y)return a.value=[],void(c.value=0);if((!p||!l.value&&!u.value)&&(p||!i.value)){p?l.value=!0:(i.value=!0,s.value=1);try{const o={};y&&(null==(f=null==r?void 0:r.parentType)?void 0:f.value)&&("Country"===r.parentType.value?o.countryIds=[null==(g=r.parentId)?void 0:g.value]:"City"===r.parentType.value&&(o.cityIds=[null==(v=r.parentId)?void 0:v.value]));const i=await async function(e,o=["Continent","Country","City","Seaport","Airport"],n={}){return t.locationSearchV2.searchByName({keyword:e,displayInfo:o,...n})}(C,n.value,{current:e,size:d.value,...o}),l=i.records||[],u=m(l);a.value=p?[...a.value,...u]:u,c.value=i.total||0,s.value=e}catch(w){console.error("Failed to fetch search results:",w)}finally{i.value=!1,l.value=!1}}},filterByTypes:m}}const l=Math.min,s=Math.max,c=Math.round,d=Math.floor,u=e=>({x:e,y:e}),p={left:"right",right:"left",bottom:"top",top:"bottom"};function m(e,t,o){return s(e,l(t,o))}function h(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function g(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function y(e){return"y"===e?"height":"width"}function C(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function w(e){return v(C(e))}function E(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const b=["left","right"],k=["right","left"],A=["top","bottom"],B=["bottom","top"];function V(e,t,o,n){const r=g(e);let a=function(e,t,o){switch(e){case"top":case"bottom":return o?t?k:b:t?b:k;case"left":case"right":return t?A:B;default:return[]}}(f(e),"start"===o,n);return r&&(a=a.map(e=>e+"-"+r),t&&(a=a.concat(a.map(E)))),a}function x(e){const t=f(e);return p[t]+e.slice(t.length)}function N(e){const{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function S(e,t,o){let{reference:n,floating:r}=e;const a=C(t),i=w(t),l=y(i),s=f(t),c="y"===a,d=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2,p=n[l]/2-r[l]/2;let m;switch(s){case"top":m={x:d,y:n.y-r.height};break;case"bottom":m={x:d,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:u};break;case"left":m={x:n.x-r.width,y:u};break;default:m={x:n.x,y:n.y}}switch(g(t)){case"start":m[i]-=p*(o&&c?-1:1);break;case"end":m[i]+=p*(o&&c?-1:1)}return m}async function I(e,t){var o;void 0===t&&(t={});const{x:n,y:r,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:m=0}=h(t,e),f=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(m),g=l[p?"floating"===u?"reference":"floating":u],v=N(await a.getClippingRect({element:null==(o=await(null==a.isElement?void 0:a.isElement(g)))||o?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:s})),y="floating"===u?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),w=await(null==a.isElement?void 0:a.isElement(C))&&await(null==a.getScale?void 0:a.getScale(C))||{x:1,y:1},E=N(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:C,strategy:s}):y);return{top:(v.top-E.top+f.top)/w.y,bottom:(E.bottom-v.bottom+f.bottom)/w.y,left:(v.left-E.left+f.left)/w.x,right:(E.right-v.right+f.right)/w.x}}const T=new Set(["left","top"]);function D(){return"undefined"!=typeof window}function P(e){return F(e)?(e.nodeName||"").toLowerCase():"#document"}function R(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function _(e){var t;return null==(t=(F(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function F(e){return!!D()&&(e instanceof Node||e instanceof R(e).Node)}function M(e){return!!D()&&(e instanceof Element||e instanceof R(e).Element)}function L(e){return!!D()&&(e instanceof HTMLElement||e instanceof R(e).HTMLElement)}function O(e){return!(!D()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof R(e).ShadowRoot)}function U(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&"inline"!==r&&"contents"!==r}function j(e){return/^(table|td|th)$/.test(P(e))}function z(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}const q=/transform|translate|scale|rotate|perspective|filter/,H=/paint|layout|strict|content/,W=e=>!!e&&"none"!==e;let J;function Q(e){const t=M(e)?X(e):e;return W(t.transform)||W(t.translate)||W(t.scale)||W(t.rotate)||W(t.perspective)||!K()&&(W(t.backdropFilter)||W(t.filter))||q.test(t.willChange||"")||H.test(t.contain||"")}function K(){return null==J&&(J="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),J}function G(e){return/^(html|body|#document)$/.test(P(e))}function X(e){return R(e).getComputedStyle(e)}function Y(e){return M(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if("html"===P(e))return e;const t=e.assignedSlot||e.parentNode||O(e)&&e.host||_(e);return O(t)?t.host:t}function $(e){const t=Z(e);return G(t)?e.ownerDocument?e.ownerDocument.body:e.body:L(t)&&U(t)?t:$(t)}function ee(e,t,o){var n;void 0===t&&(t=[]),void 0===o&&(o=!0);const r=$(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),i=R(r);if(a){const e=te(i);return t.concat(i,i.visualViewport||[],U(r)?r:[],e&&o?ee(e):[])}return t.concat(r,ee(r,[],o))}function te(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oe(e){const t=X(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=L(e),a=r?e.offsetWidth:o,i=r?e.offsetHeight:n,l=c(o)!==a||c(n)!==i;return l&&(o=a,n=i),{width:o,height:n,$:l}}function ne(e){return M(e)?e:e.contextElement}function re(e){const t=ne(e);if(!L(t))return u(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:a}=oe(t);let i=(a?c(o.width):o.width)/n,l=(a?c(o.height):o.height)/r;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const ae=u(0);function ie(e){const t=R(e);return K()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ae}function le(e,t,o,n){void 0===t&&(t=!1),void 0===o&&(o=!1);const r=e.getBoundingClientRect(),a=ne(e);let i=u(1);t&&(n?M(n)&&(i=re(n)):i=re(e));const l=function(e,t,o){return void 0===t&&(t=!1),!(!o||t&&o!==R(e))&&t}(a,o,n)?ie(a):u(0);let s=(r.left+l.x)/i.x,c=(r.top+l.y)/i.y,d=r.width/i.x,p=r.height/i.y;if(a){const e=R(a),t=n&&M(n)?R(n):n;let o=e,r=te(o);for(;r&&n&&t!==o;){const e=re(r),t=r.getBoundingClientRect(),n=X(r),a=t.left+(r.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(n.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,p*=e.y,s+=a,c+=i,o=R(r),r=te(o)}}return N({width:d,height:p,x:s,y:c})}function se(e,t){const o=Y(e).scrollLeft;return t?t.left+o:le(_(e)).left+o}function ce(e,t){const o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-se(e,o),y:o.top+t.scrollTop}}function de(e,t,o){let n;if("viewport"===t)n=function(e,t){const o=R(e),n=_(e),r=o.visualViewport;let a=n.clientWidth,i=n.clientHeight,l=0,s=0;if(r){a=r.width,i=r.height;const e=K();(!e||e&&"fixed"===t)&&(l=r.offsetLeft,s=r.offsetTop)}const c=se(n);if(c<=0){const e=n.ownerDocument,t=e.body,o=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,i=Math.abs(n.clientWidth-t.clientWidth-r);i<=25&&(a-=i)}else c<=25&&(a+=c);return{width:a,height:i,x:l,y:s}}(e,o);else if("document"===t)n=function(e){const t=_(e),o=Y(e),n=e.ownerDocument.body,r=s(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=s(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+se(e);const l=-o.scrollTop;return"rtl"===X(n).direction&&(i+=s(t.clientWidth,n.clientWidth)-r),{width:r,height:a,x:i,y:l}}(_(e));else if(M(t))n=function(e,t){const o=le(e,!0,"fixed"===t),n=o.top+e.clientTop,r=o.left+e.clientLeft,a=L(e)?re(e):u(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:r*a.x,y:n*a.y}}(t,o);else{const o=ie(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return N(n)}function ue(e,t){const o=Z(e);return!(o===t||!M(o)||G(o))&&("fixed"===X(o).position||ue(o,t))}function pe(e,t,o){const n=L(t),r=_(t),a="fixed"===o,i=le(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=u(0);function c(){s.x=se(r)}if(n||!n&&!a)if(("body"!==P(t)||U(r))&&(l=Y(t)),n){const e=le(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&c();a&&!n&&r&&c();const d=!r||n||a?u(0):ce(r,l);return{x:i.left+l.scrollLeft-s.x-d.x,y:i.top+l.scrollTop-s.y-d.y,width:i.width,height:i.height}}function me(e){return"static"===X(e).position}function he(e,t){if(!L(e)||"fixed"===X(e).position)return null;if(t)return t(e);let o=e.offsetParent;return _(e)===o&&(o=o.ownerDocument.body),o}function fe(e,t){const o=R(e);if(z(e))return o;if(!L(e)){let t=Z(e);for(;t&&!G(t);){if(M(t)&&!me(t))return t;t=Z(t)}return o}let n=he(e,t);for(;n&&j(n)&&me(n);)n=he(n,t);return n&&G(n)&&me(n)&&!Q(n)?o:n||function(e){let t=Z(e);for(;L(t)&&!G(t);){if(Q(t))return t;if(z(t))return null;t=Z(t)}return null}(e)||o}const ge={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const a="fixed"===r,i=_(n),l=!!t&&z(t.floating);if(n===i||l&&a)return o;let s={scrollLeft:0,scrollTop:0},c=u(1);const d=u(0),p=L(n);if((p||!p&&!a)&&(("body"!==P(n)||U(i))&&(s=Y(n)),p)){const e=le(n);c=re(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}const m=!i||p||a?u(0):ce(i,s);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-s.scrollLeft*c.x+d.x+m.x,y:o.y*c.y-s.scrollTop*c.y+d.y+m.y}},getDocumentElement:_,getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const a=[..."clippingAncestors"===o?z(t)?[]:function(e,t){const o=t.get(e);if(o)return o;let n=ee(e,[],!1).filter(e=>M(e)&&"body"!==P(e)),r=null;const a="fixed"===X(e).position;let i=a?Z(e):e;for(;M(i)&&!G(i);){const t=X(i),o=Q(i);o||"fixed"!==t.position||(r=null),(a?!o&&!r:!o&&"static"===t.position&&r&&("absolute"===r.position||"fixed"===r.position)||U(i)&&!o&&ue(e,i))?n=n.filter(e=>e!==i):r=t,i=Z(i)}return t.set(e,n),n}(t,this._c):[].concat(o),n],i=de(t,a[0],r);let c=i.top,d=i.right,u=i.bottom,p=i.left;for(let m=1;m<a.length;m++){const e=de(t,a[m],r);c=s(e.top,c),d=l(e.right,d),u=l(e.bottom,u),p=s(e.left,p)}return{width:d-p,height:u-c,x:p,y:c}},getOffsetParent:fe,getElementRects:async function(e){const t=this.getOffsetParent||fe,o=this.getDimensions,n=await o(e.floating);return{reference:pe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:o}=oe(e);return{width:t,height:o}},getScale:re,isElement:M,isRTL:function(e){return"rtl"===X(e).direction}};function ve(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ye(e,t,o,n){void 0===n&&(n={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,p=ne(e),m=r||a?[...p?ee(p):[],...t?ee(t):[]]:[];m.forEach(e=>{r&&e.addEventListener("scroll",o,{passive:!0}),a&&e.addEventListener("resize",o)});const h=p&&c?function(e,t){let o,n=null;const r=_(e);function a(){var e;clearTimeout(o),null==(e=n)||e.disconnect(),n=null}return function i(c,u){void 0===c&&(c=!1),void 0===u&&(u=1),a();const p=e.getBoundingClientRect(),{left:m,top:h,width:f,height:g}=p;if(c||t(),!f||!g)return;const v={rootMargin:-d(h)+"px "+-d(r.clientWidth-(m+f))+"px "+-d(r.clientHeight-(h+g))+"px "+-d(m)+"px",threshold:s(0,l(1,u))||1};let y=!0;function C(t){const n=t[0].intersectionRatio;if(n!==u){if(!y)return i();n?i(!1,n):o=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==n||ve(p,e.getBoundingClientRect())||i(),y=!1}try{n=new IntersectionObserver(C,{...v,root:r.ownerDocument})}catch(w){n=new IntersectionObserver(C,v)}n.observe(e)}(!0),a}(p,o):null;let f,g=-1,v=null;i&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===p&&v&&t&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),o()}),p&&!u&&v.observe(p),t&&v.observe(t));let y=u?le(e):null;return u&&function t(){const n=le(e);y&&!ve(y,n)&&o();y=n,f=requestAnimationFrame(t)}(),o(),()=>{var e;m.forEach(e=>{r&&e.removeEventListener("scroll",o),a&&e.removeEventListener("resize",o)}),null==h||h(),null==(e=v)||e.disconnect(),v=null,u&&cancelAnimationFrame(f)}}const Ce=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:a,placement:i,middlewareData:l}=t,s=await async function(e,t){const{placement:o,platform:n,elements:r}=e,a=await(null==n.isRTL?void 0:n.isRTL(r.floating)),i=f(o),l=g(o),s="y"===C(o),c=T.has(i)?-1:1,d=a&&s?-1:1,u=h(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:v}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&"number"==typeof v&&(m="end"===l?-1*v:v),s?{x:m*d,y:p*c}:{x:p*c,y:m*d}}(t,e);return i===(null==(o=l.offset)?void 0:o.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:r+s.x,y:a+s.y,data:{...s,placement:i}}}}},we=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:r,platform:a}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...c}=h(e,t),d={x:o,y:n},u=await a.detectOverflow(t,c),p=C(f(r)),g=v(p);let y=d[g],w=d[p];if(i){const e="y"===g?"bottom":"right";y=m(y+u["y"===g?"top":"left"],y,y-u[e])}if(l){const e="y"===p?"bottom":"right";w=m(w+u["y"===p?"top":"left"],w,w-u[e])}const E=s.fn({...t,[g]:y,[p]:w});return{...E,data:{x:E.x-o,y:E.y-n,enabled:{[g]:i,[p]:l}}}}}},Ee=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:a,rects:i,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,...k}=h(e,t);if(null!=(o=a.arrow)&&o.alignmentOffset)return{};const A=f(r),B=C(l),N=f(l)===l,S=await(null==s.isRTL?void 0:s.isRTL(c.floating)),I=p||(N||!b?[x(l)]:function(e){const t=x(e);return[E(e),t,E(t)]}(l)),T="none"!==v;!p&&T&&I.push(...V(l,b,v,S));const D=[l,...I],P=await s.detectOverflow(t,k),R=[];let _=(null==(n=a.flip)?void 0:n.overflows)||[];if(d&&R.push(P[A]),u){const e=function(e,t,o){void 0===o&&(o=!1);const n=g(e),r=w(e),a=y(r);let i="x"===r?n===(o?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=x(i)),[i,x(i)]}(r,i,S);R.push(P[e[0]],P[e[1]])}if(_=[..._,{placement:r,overflows:R}],!R.every(e=>e<=0)){var F,M;const e=((null==(F=a.flip)?void 0:F.index)||0)+1,t=D[e];if(t){if(!("alignment"===u&&B!==C(t))||_.every(e=>C(e.placement)!==B||e.overflows[0]>0))return{data:{index:e,overflows:_},reset:{placement:t}}}let o=null==(M=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:M.placement;if(!o)switch(m){case"bestFit":{var L;const e=null==(L=_.filter(e=>{if(T){const t=C(e.placement);return t===B||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:L[0];e&&(o=e);break}case"initialPlacement":o=l}if(r!==o)return{reset:{placement:o}}}return{}}}},be=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var o,n;const{placement:r,rects:a,platform:i,elements:c}=t,{apply:d=()=>{},...u}=h(e,t),p=await i.detectOverflow(t,u),m=f(r),v=g(r),y="y"===C(r),{width:w,height:E}=a.floating;let b,k;"top"===m||"bottom"===m?(b=m,k=v===(await(null==i.isRTL?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(k=m,b="end"===v?"top":"bottom");const A=E-p.top-p.bottom,B=w-p.left-p.right,V=l(E-p[b],A),x=l(w-p[k],B),N=!t.middlewareData.shift;let S=V,I=x;if(null!=(o=t.middlewareData.shift)&&o.enabled.x&&(I=B),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(S=A),N&&!v){const e=s(p.left,0),t=s(p.right,0),o=s(p.top,0),n=s(p.bottom,0);y?I=w-2*(0!==e||0!==t?e+t:s(p.left,p.right)):S=E-2*(0!==o||0!==n?o+n:s(p.top,p.bottom))}await d({...t,availableWidth:I,availableHeight:S});const T=await i.getDimensions(c.floating);return w!==T.width||E!==T.height?{reset:{rects:!0}}:{}}}},ke=(e,t,o)=>{const n=new Map,r={platform:ge,...o},a={...r.platform,_c:n};return(async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:i}=o,l=i.detectOverflow?i:{...i,detectOverflow:I},s=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:u}=S(c,n,s),p=n,m=0;const h={};for(let f=0;f<a.length;f++){const o=a[f];if(!o)continue;const{name:g,fn:v}=o,{x:y,y:C,data:w,reset:E}=await v({x:d,y:u,initialPlacement:n,placement:p,strategy:r,middlewareData:h,rects:c,platform:l,elements:{reference:e,floating:t}});d=null!=y?y:d,u=null!=C?C:u,h[g]={...h[g],...w},E&&m<50&&(m++,"object"==typeof E&&(E.placement&&(p=E.placement),E.rects&&(c=!0===E.rects?await i.getElementRects({reference:e,floating:t,strategy:r}):E.rects),({x:d,y:u}=S(c,p,s))),f=-1)}return{x:d,y:u,placement:p,strategy:r,middlewareData:h}})(e,t,{...r,platform:a})};const Ae="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",Be="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",Ve={class:"selection-wrapper"},xe={class:"tag-text"},Ne=["onClick"],Se={key:0,class:"search-tag collapse"},Ie=["placeholder"],Te={class:"suffix-area"},De={key:1,class:"loading-spinner"},Pe={class:"search-icon"},Re=["src"],_e={key:0,class:"history-section"},Fe={class:"history-header"},Me=["onMousedown"],Le=["src"],Oe={class:"type-text"},Ue={class:"result-text"},je={key:0,class:"status-msg"},ze=["onMousedown"],qe=["src"],He={class:"type-text"},We={class:"result-text"},Je={key:0,class:"load-more-msg"},Qe={key:2,class:"status-msg"},Ke={key:0,class:"no-result-label"},Ge={key:1,class:"no-result-label"},Xe={class:"jc:flex jc:justify-center jc:items-center jc:gap-1"},Ye=["src"],Ze=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},$e=Ze(e.defineComponent({__name:"index",props:{modelValue:{default:null},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},searchTypeList:{default:()=>["Continent","Country","Region","City","Seaport","Airport"]},historyKey:{default:void 0},lang:{default:""},placeholder:{},showSearchIcon:{type:Boolean,default:!0},showItemTag:{type:Boolean,default:!0},showApplyData:{type:Boolean,default:!0},parentId:{default:null},parentType:{default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","select","blur","change","submit-search","remove","clear","apply-data","apply-data-open","apply-data-close"],setup(t,{emit:n}){const l=t,s=n,c=e.ref(null),d=e.ref(null),u=e.ref(null),p=e.ref(""),m=e.ref(""),h=e.ref(!1);let f=null;const g=e.ref(!1),v=e.computed(()=>l.modelValue?Array.isArray(l.modelValue)?l.modelValue:[l.modelValue]:[]),y=e.computed(()=>l.multiple?l.collapseTags?v.value.slice(0,1):v.value:[]),C=e.computed(()=>p.value||v.value.length>0),w=e.computed(()=>l.multiple?p.value?10*p.value.length+20+"px":"10px":"100%"),{searchHistory:E,saveToHistory:b,clearHistory:k}=function(t){const o=e.ref([]),n="undefined"!=typeof window&&"undefined"!=typeof localStorage,r=e.computed(()=>(t.value||"")+"_search_history_cache"),a=e.computed(()=>!!t.value&&""!==t.value);return e.onMounted(()=>{if(n&&a.value){const t=localStorage.getItem(r.value);if(t)try{o.value=JSON.parse(t)}catch(e){o.value=[]}}}),{searchHistory:o,saveToHistory:e=>{if(!e||!n)return;const t=o.value.filter(t=>t.id&&t.id!==e.id||t.display!==e.display);t.unshift(e);const i=t.slice(0,4);if(a.value){o.value=i;try{localStorage.setItem(r.value,JSON.stringify(i))}catch(l){console.warn("LocalStorage save failed:",l)}}},clearHistory:()=>{o.value=[],n&&localStorage.removeItem(r.value)},HasHistory:a}}(e.toRef(l,"historyKey")),{searchResults:A,loading:B,isFetchingMore:V,isFinished:x,currentPage:N,fetchData:S,filterByTypes:I}=i(p,e.toRef(l,"searchTypeList"),{parentId:e.toRef(l,"parentId"),parentType:e.toRef(l,"parentType")}),{floatingStyles:T,startTrack:D,stopTrack:P}=function(t,o){const n=e.ref({position:"fixed",left:"0",top:"0",zIndex:3e3});let r=null;const a=()=>{t.value&&o.value&&ke(t.value,o.value,{placement:"bottom-start",strategy:"fixed",middleware:[Ce(6),Ee(),we({padding:10}),be({apply({rects:e,elements:t,availableWidth:o}){const n=`${e.reference.width}px`,r=e.reference.width;Object.assign(t.floating.style,{width:"max-content",minWidth:n,maxWidth:`${Math.max(r,o-20)}px`})}})]}).then(({x:e,y:t})=>{Object.assign(n.value,{left:`${e}px`,top:`${t}px`})})},i=()=>{r&&(r(),r=null)};return e.onBeforeUnmount(i),{floatingStyles:n,startTrack:()=>{t.value&&o.value&&(r=ye(t.value,o.value,a))},stopTrack:i}}(d,u),{hydrateMultiple:R,hydrateSingle:_}=r(a),{isDropdownVisible:F,openDropdown:M,handleAfterSelect:L,handleBlur:O}=function(t,o,n,r){const a=e.ref(!1),i=()=>a.value=!1;return{isDropdownVisible:a,openDropdown:()=>a.value=!0,closeDropdown:i,handleAfterSelect:()=>{var e,r;t?null==(e=o.value)||e.focus():(n.value="",i(),null==(r=o.value)||r.blur())},handleBlur:()=>{setTimeout(()=>{i(),r("blur"),n.value=""},200)}}}(e.toRef(l,"multiple").value,c,p,s),{formItem:U}=o.useFormItem(),j=e.computed(()=>A.value.length>0||B.value||p.value||E.value.length>0),z=e.computed(()=>{var e,t,o,n,r,a;if(l.lang)return"en"===l.lang||"en-US"===l.lang;try{if("function"==typeof useCookie){const t=null==(e=useCookie("jc-language"))?void 0:e.value;if(t)return/^en(-US)?$/.test(t)}}catch(i){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp(),i=(null==(a=null==(r=null==(n=null==(o=null==(t=null==e?void 0:e.ssrContext)?void 0:t.event)?void 0:o.node)?void 0:n.req)?void 0:r.headers)?void 0:a.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(i)}}catch(i){}return!1}),q=e.computed(()=>l.multiple&&v.value.length>0?"":h.value&&!l.multiple?m.value:l.placeholder?l.placeholder:z.value?"Please enter...":"请输入..."),H=e=>({City:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVR4AaRQO07DQBCdWe8B4B5IFFyAK9ARkIVNhIQEEiVtJLgABRVRvIBCJBquwBVyDgoaSnuHeZY3MlYcNsnIb8fze6M3hra0XoKJm95N3Nv3EnyhFvb2EgjRJbOMKqmO2tDcvQ5fK+qvl4CJbOn9/CJPP9tArp5sHtP4lc652VXxPL1Z1hRFIOytF1NuTJCfnT4Ms8HjSgJctn1xIt6hxqIkdK+u8U8zT1ESmP5enUkWmqMkhG2FmxXOvR+EGD5KAhoDqsQvtiMXJQGNQJ4N8mF6PMd/wL8SxuOXPSG21pj9p+L1EOjGyAHoQQ0zWGDqx9pbPWIpwqOEkw+gGyMHoAc1ozOkVhOcZyepYndNpDpPvwAAAP//BVQJHAAAAAZJREFUAwDZWL4hub5xHQAAAABJRU5ErkJggg==",Country:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACmklEQVR4AXRTT0jUQRT+3uyqGxgYeCiy1JAo6JBUp4Q81EEiKKiDa+H+/ENGHgPpZtChQ4EHL+Ku+9t0V7EkQSGPBYGHBIU6RAqt2cFDBw9C+3de3yy7hobDvHm/+d4337x58xuDQ9r4+FRDLJZqG49PtrvvQ2j4TyDmJ7sm/NRqoMpsIYD3RgIL7pvY54lEqvug0J5APB4PxfzUOwFGRWReVJp7I+GjW+nvxxQo0DagOjLhJxcctyK0J6BS/UaAc1nNtXrdnc88rzPtSMPDwwXiM7R2WNwDpMVKzTTKrSRQTq0tq9mOR55XWliOY2wsVQ+RRWZQiyACjiPQ9pg/0+U4JQEoBkXMi4OLmWpdsEZXofY5yYtSzH10HHJHBPYJMZhyhS8X84U5B+y36iaBNPxMr59nPTo9z8uU4jaToL8Yj88eN2xNTG+3r+/BBncMuSLRln1/+iZgdkhEY2NjvfMVo1DarbG20GIqoPMaqL5G38Zb+GBh36roMufpzc3N3xSvi0ZfX6APEYNAg86bjMluCFDr+7OX1JoWQNJed/ipaK6Z6oOi2dbTZ85eVan+YYLBL7yBdRb9IXkha23aPPa8bQBrFoUVqo4qMMU5mOZ2JBKeo98RiwHi8xQ7Qo6vCsdb6e+//4ubgJegLzlmDOQ6i/XKCVQskZg9aaFtRrBGsYytQpQiu+SPOI5xQ2+kK6mQJRJHo8lko8MqxswGhceCzY25mMnLEmOf3Br6f2/BaLaTqhuSl6/xxPRQNDrJehBRrSWxABMaMnmsKfCN9eEfSZS9lAG9O3OmJ9J1C9ABVb1rgoF1PqA/Cokw3k7stgKDvZHwHXcUYqW+J1CacejlcXoi4SvFvD2lRdxAER0s3glirS5Gyr7+FwAA//8Pj6q2AAAABklEQVQDAJPeLlNn5TR8AAAAAElFTkSuQmCC",Airport:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACT0lEQVR4AaRSO2hTYRT+zn9v2g6CiktFJYoVHXQoOljM2EIEh0orbRKa5qUuDoIZAnXI4FBwcRDikMcNkoQMQjcVESo4OASsW2kLBi3oUKiD1OZx7/H811wJZFF6uOee85/H93/3nKtwQPkvgFKpdKRgVR+UrFrOsurX9N3/DJCvVPxMwx+lKcbgKzbstPhwAXSyWK7eLZZrc4VCNZDPPx/Tt+kCrTqvOrQqfuNrc2OcgW0CduQM9TfJyIB5mQy8UaaxKbftFq3qL9HP1KGGFDe+NDdC/jPnlwgcZEM9lRiU2VFjgngI4FGxa0IvZXecU07XPsc2pkCUIULaa2Z2MsJ7Orkw/8kFiMVCb4XWcQV14w8temL4aJNM47Fh0OHEYqieWAyXT/jPBhzmh7o5EY28Rk/cGWSz2a4GSsTCt3tgs5qmDc726sTQvsS6/c0SFDz97lO/329K4z2Amm1u3ZK11SyrOmNC/ZDYSElWiT5R2resymUZ1pIUv2Qa+iafcrrFretDNJwTf94GUnt7u9u6to3hUW09dQEcIC+BR0LxqgztPnFrotd8wWHclNykaR4dYeCngj0IQNyekOQshLas8hmzLyA3B2UTU6l4eEX8Ld8IZsTu+Mg4hj5xGcTj8f1kLPxChjgO0AdWlAOwnkotbImFrHGFGdOy6u82aJAB+kUZywQ6KaH3ou7TcbguziRApiLWOXjiMvAO2iaic3rH6wxe1Wetd+KRNQKEDV9kwisd83QAQCfkr7uUjEUq2vdUgdJQFExEw++8mLa/AQAA//9h0VsEAAAABklEQVQDAKhs6Pxd3K8TAAAAAElFTkSuQmCC",Seaport:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACC0lEQVR4AXxRv2tTURT+zk1iIjgoOMShkIJVNwf/gQYULOjQwaGvGl8TBMEMDg4ODgF17likvL4HIYm4OLg61K2CooWKDoKCDoJDHASb9N17POf5Enwk6eN+9/z+3nfvNZjxbYS9ymbYXlQ8CbvnZrRhKoEOFMl9zFHuuaJA/E4Jp5FMJTCwZWner/veCYX6ecQVsRNrKsFE1yGJDMFW1Hm4FXX7hnIvADquvkJ9zYn/U3vw35chYOA2Ebcc26uWbVWwnKKqOak9ktmmYLwyBATkY+d2b63d2FYgps9umNtTX6G18WTqmNRmTNB+djaIOqEpmC+FIn8Lom4vaD89n2lKgwkCebYNsvEnAlXI4CIMXSagTNa9l9p6Ojc2CUEYhiW5oE3IxQH4AYNFeb5qvea9SuB7Vc1J7ReDjomidZ2RWNKysyneFHNFovGgxIiizoWR9BGRqiKw76i0qj2JAo7jtwycJDvY1eQIDNM0lu+OYrUHf/BBbEmI9sTKP2VvNGpvAP4Kc1SVSGb2OlLiVQa+12srr7UrUZA6Lx27e0HUu6PnU/kOXGbwaT1Gq9XKa80xmgTa1hlFQiBP1hNWn4AdOd8DpmLfgnakYV/yv/UF5ipn+qLyvgGp2us6I/V/R+DYPiYenpKbv0Y8mGeLS0OmhYbvLQuWiGkeFkuGBwtrvrdyMKA5nVGCvwAAAP//q4xnOgAAAAZJREFUAwCH2O8KfEWHWQAAAABJRU5ErkJggg=="}[e]||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACgUlEQVR4AXRST0hUYRD/zbfbrqahQpAHlQ3dSurYoaBAwWNQkIT7J/ve09DQsOigkNCha4ckl4Lct0/S3QI7REFEBB08FBHRIYLwIJEodOlUurnfNN+6mq9weMPM+818v2/mm1HYQXK5XH02mz9h1fo7pOE/gkwmU+v5+fuGot8phJdWmSLLnl+4I0RV/xIFCGxCdU3DUwaOkULX18Uve1ydrC4xdwLcwRR9bnO2kwQIoCIDEowpXjsZ4vBCSyx+w/Nnb1KElkkwG4OqGhG79QUImEkT0T2JrpZ4fV5sF0Ad6je9BrBKxLeZuVv8rS9IAG4qGf5oTPSolNxIXOyUNjqlpb0W4xI+Cd62dVqcAAGBVqSCVmPMIoPCttzm2MEBAoeLir4hRK2AWPyVIAHRHMH0Ly0tCBF3M5t+Aq6A0HPJSSyCeZAIz7BNAgQwqxNyc1NL7MCoeyH1xNWpuKsTcet7fv46QI0/zdoEtkmAwHGcHyFQj/Q57vuPzm7m+X5efB6HYj3kOCubuLVlApltfdbPX5uaetCmdeKVAqUN1mdy04XR3PTsqAHPWMztTb24myvEBBuRM+WlUnbzDEXeya2D4XC0zrJqnXwsO3pG3mCMGWMK6lQZk2A0hH2GMSxL9VlI6lVkd90RgGKkVFrrc+9REXubjLH9FxfbbVUVGG5v4i2p8LD8x9ax65C66KTfKGCSDc97fv6DJzuf9QtDtm+iqsM1ot70w9O+YDbmSQ6bkkyCJitnAUcnryqmuExgSsZYKypvgFvS+5xVsJk0MGlps97mFCVXpnNZqoBcbo2QyJz7dCLj6JTj6tRxVyf3izZUtNndwM73SU55JzaO4Q8AAAD//54At5MAAAAGSURBVAMAh2IbMAJQAZQAAAAASUVORK5CYII="),W=e=>{const t={City:{en:"City",cn:"城市"},Country:{en:"Country",cn:"国家"},Region:{en:"Region",cn:"区域"},Airport:{en:"Airport",cn:"机场"},Seaport:{en:"Seaport",cn:"港口"}}[e];return t?z.value?t.en:t.cn:e},J=e=>v.value.some(t=>t.id===e.id),Q=()=>{var e;return null==(e=c.value)?void 0:e.focus()},K=e=>z.value?e.displayEn||e.display||"":e.displayCn||e.display||"",G=e=>{var t;if(b(e),l.multiple){if(!J(e)){const t=[...v.value,e];s("update:modelValue",t)}}else m.value=K(e),h.value=!0,s("update:modelValue",e);s("select",e),s("change",e),null==(t=null==U?void 0:U.validate)||t.call(U,"change").catch(()=>{}),L()},X=e=>{const t=v.value.filter(t=>t.id!==e.id);s("update:modelValue",t),s("remove",e)},Y=()=>{l.multiple&&!p.value&&v.value.length>0&&X(v.value[v.value.length-1])},Z=()=>{var e;p.value="",h.value=!1,m.value="";const t=l.multiple?[]:null;s("update:modelValue",t),s("clear"),null==(e=null==U?void 0:U.validate)||e.call(U,"change").catch(()=>{})},$=async()=>{if(M(),!l.multiple&&h.value&&0===A.value.length){const e=l.modelValue;if(null==e?void 0:e.id){B.value=!0;try{const t=await a(e.id,e.type);A.value=I(t.records)}finally{B.value=!1}}}},ee=e=>{var t;O(),null==(t=null==U?void 0:U.validate)||t.call(U,"blur").catch(()=>{})},te=e=>{const t=e.target;t&&(""!==t.value||l.multiple||Z())},oe=()=>{s("submit-search",v.value),F.value=!1},ne=e=>{const t=e.target;if(!t)return;const{scrollTop:o,scrollHeight:n,clientHeight:r}=t;o+r>=n-20&&(B.value||V.value||x.value||!p.value||S(N.value+1,!0))},re=e=>{s("apply-data",e)},ae=()=>{g.value=!0,s("apply-data-open")},ie=()=>{p.value="",g.value=!1,s("apply-data-close")};return e.watch(()=>l.parentId,()=>{l.multiple||(p.value="",A.value=[])}),e.watch(F,e=>{e?D():P()}),e.watch(p,e=>{if(!e.trim())return A.value=[],void(f&&(clearTimeout(f),f=null));f&&clearTimeout(f),f=setTimeout(()=>S(1,!1),300)}),e.watch(()=>l.modelValue,async(e,t)=>{if(JSON.stringify(e)===JSON.stringify(t))return;if(l.multiple&&Array.isArray(e)){try{const{updatedList:t,hasChanged:o}=await R(e);o&&s("update:modelValue",t)}catch(n){console.error("Batch fetch detail failed:",n)}return}const o=e;if(!o)return h.value=!1,void(m.value="");if("object"==typeof o)if(o.id&&o.type&&!o.display)try{const e=await _(o);e&&(m.value=K(e),h.value=!0)}catch(n){console.error("Single fetch detail failed:",n)}else m.value=K(o),h.value=!!m.value;else m.value=String(o),h.value=!!o},{immediate:!0,deep:!0}),e.onBeforeUnmount(()=>{P(),f&&(clearTimeout(f),f=null)}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["search-container",{"is-disabled":t.disabled}])},[e.createElementVNode("div",{class:e.normalizeClass(["search-input-wrapper",{"is-multiple":t.multiple}]),ref_key:"referenceRef",ref:d,onClick:Q},[e.createElementVNode("div",Ve,[e.renderSlot(o.$slots,"prefix",{},void 0,!0),t.multiple&&v.value.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(t,o)=>(e.openBlock(),e.createElementBlock("div",{key:t.id||o,class:"search-tag"},[e.createElementVNode("span",xe,e.toDisplayString(K(t)),1),e.createElementVNode("span",{class:"tag-close",onClick:e.withModifiers(e=>X(t),["stop"])},"×",8,Ne)]))),128)),t.collapseTags&&v.value.length>1?(e.openBlock(),e.createElementBlock("div",Se," + "+e.toDisplayString(v.value.length-1),1)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{ref_key:"inputRef",ref:c,class:e.normalizeClass({"is-selected-state":h.value&&!t.multiple}),"onUpdate:modelValue":n[0]||(n[0]=e=>p.value=e),type:"text",placeholder:q.value,style:e.normalizeStyle({width:w.value}),onFocus:$,onBlur:ee,onInput:te,onKeydown:e.withKeys(Y,["delete"])},null,46,Ie),[[e.vModelText,p.value]])]),e.renderSlot(o.$slots,"suffix",{},()=>[e.createElementVNode("div",Te,[C.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:"clear-icon",onMousedown:n[1]||(n[1]=e.withModifiers(()=>{},["prevent"])),onClick:e.withModifiers(Z,["stop"])},"ⓧ",32)):e.createCommentVNode("",!0),e.unref(B)&&!e.unref(V)?(e.openBlock(),e.createElementBlock("div",De)):!e.unref(B)&&t.showSearchIcon?(e.openBlock(),e.createElementBlock("button",{key:2,class:"search-btn",onClick:e.withModifiers(oe,["stop"])},[e.createElementVNode("span",Pe,[e.createElementVNode("img",{src:e.unref(Ae),alt:"search"},null,8,Re)])])):e.createCommentVNode("",!0)])],!0)],2),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.withDirectives(e.createElementVNode("div",{ref_key:"floatingRef",ref:u,class:"dropdown-list",style:e.normalizeStyle(e.unref(T)),onScroll:ne},[e.renderSlot(o.$slots,"history",{searchHistory:e.unref(E)},()=>[e.unref(E).length>0&&!p.value?(e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("div",Fe,[e.createElementVNode("span",null,e.toDisplayString(z.value?"Recent search":"最近搜索"),1),e.createElementVNode("span",{class:"clear-btn",onMousedown:n[2]||(n[2]=e.withModifiers(()=>{},["prevent"])),onClick:n[3]||(n[3]=e.withModifiers((...t)=>e.unref(k)&&e.unref(k)(...t),["stop"]))},e.toDisplayString(z.value?"Clear":"清空"),33)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(E),(o,n)=>(e.openBlock(),e.createElementBlock("div",{key:"hist-"+n,class:"dropdown-item",onMousedown:e.withModifiers(e=>G(o),["prevent"])},[e.createElementVNode("div",{class:"category-tag",style:e.normalizeStyle(t.showItemTag?{}:{display:"none"})},[e.createElementVNode("img",{class:"type-icon",src:H(o.type),alt:""},null,8,Le),e.createElementVNode("span",Oe,e.toDisplayString(W(o.type)),1)],4),e.createElementVNode("div",Ue,e.toDisplayString(K(o)),1)],40,Me))),128)),n[7]||(n[7]=e.createElementVNode("hr",{class:"divider"},null,-1))])):e.createCommentVNode("",!0)],!0),e.unref(B)&&!e.unref(V)?(e.openBlock(),e.createElementBlock("div",je,e.toDisplayString(z.value?"Searching...":"正在搜索中..."),1)):e.unref(A).length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(o.$slots,"results",{searchResults:e.unref(A)},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(A),(o,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:e.normalizeClass(["dropdown-item",{"is-active":J(o)}]),onMousedown:e.withModifiers(e=>G(o),["prevent"])},[e.createElementVNode("div",{class:"category-tag",style:e.normalizeStyle(t.showItemTag?{}:{display:"none"})},[e.createElementVNode("img",{class:"type-icon",src:H(o.type),alt:""},null,8,qe),e.createElementVNode("span",He,e.toDisplayString(W(o.type)),1)],4),e.createElementVNode("div",We,e.toDisplayString(K(o)),1)],42,ze))),128))],!0),e.unref(V)?(e.openBlock(),e.createElementBlock("div",Je,e.toDisplayString(z.value?"Loading more...":"正在加载更多..."),1)):e.createCommentVNode("",!0)],64)):p.value&&!e.unref(B)?(e.openBlock(),e.createElementBlock("div",Qe,[e.renderSlot(o.$slots,"noData",{},()=>[t.showApplyData?(e.openBlock(),e.createElementBlock("div",Ge,[e.createTextVNode(e.toDisplayString(z.value?"No results found. ":"暂无结果,")+" ",1),e.createElementVNode("div",Xe,[e.createElementVNode("span",{class:"apply-data jc:cursor-pointer jc:ml-1",onClick:n[4]||(n[4]=e.withModifiers(()=>g.value=!0,["stop"]))},e.toDisplayString(z.value?"Apply for data addition":"申请补充数据 "),1),e.createElementVNode("img",{src:e.unref(Be),alt:"",class:"apply-data-more-icon",onClick:n[5]||(n[5]=e.withModifiers(()=>g.value=!0,["stop"]))},null,8,Ye)])])):(e.openBlock(),e.createElementBlock("p",Ke,e.toDisplayString(z.value?`No results found related to "${p.value}".`:`未找到与 "${p.value}" 相关的结果`),1))],!0)])):e.createCommentVNode("",!0)],36),[[e.vShow,e.unref(F)&&j.value]])])),e.createVNode(In,{searchValue:p.value,value:g.value,"onUpdate:value":n[6]||(n[6]=e=>g.value=e),lang:t.lang,onConfirm:re,onOpen:ae,onClose:ie},null,8,["searchValue","value","lang"])],2))}}),[["__scopeId","data-v-176a8f0f"]]),et=Object.freeze(Object.defineProperty({__proto__:null,default:$e},Symbol.toStringTag,{value:"Module"}));var tt="object"==typeof global&&global&&global.Object===Object&&global,ot="object"==typeof self&&self&&self.Object===Object&&self,nt=tt||ot||Function("return this")(),rt=nt.Symbol,at=Object.prototype,it=at.hasOwnProperty,lt=at.toString,st=rt?rt.toStringTag:void 0;var ct=Object.prototype.toString;var dt=rt?rt.toStringTag:void 0;function ut(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":dt&&dt in Object(e)?function(e){var t=it.call(e,st),o=e[st];try{e[st]=void 0;var n=!0}catch(a){}var r=lt.call(e);return n&&(t?e[st]=o:delete e[st]),r}(e):function(e){return ct.call(e)}(e)}function pt(e){return null!=e&&"object"==typeof e}var mt=Array.isArray,ht=/\s/;var ft=/^\s+/;function gt(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&ht.test(e.charAt(t)););return t}(e)+1).replace(ft,""):e}function vt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var yt=/^[-+]0x[0-9a-f]+$/i,Ct=/^0b[01]+$/i,wt=/^0o[0-7]+$/i,Et=parseInt;function bt(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||pt(e)&&"[object Symbol]"==ut(e)}(e))return NaN;if(vt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=vt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=gt(e);var o=Ct.test(e);return o||wt.test(e)?Et(e.slice(2),o?2:8):yt.test(e)?NaN:+e}function kt(e){if(!vt(e))return!1;var t=ut(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var At,Bt=nt["__core-js_shared__"],Vt=(At=/[^.]+$/.exec(Bt&&Bt.keys&&Bt.keys.IE_PROTO||""))?"Symbol(src)_1."+At:"";var xt=Function.prototype.toString;function Nt(e){if(null!=e){try{return xt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var St=/^\[object .+?Constructor\]$/,It=Function.prototype,Tt=Object.prototype,Dt=It.toString,Pt=Tt.hasOwnProperty,Rt=RegExp("^"+Dt.call(Pt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _t(e){return!(!vt(e)||(t=e,Vt&&Vt in t))&&(kt(e)?Rt:St).test(Nt(e));var t}function Ft(e,t){var o=function(e,t){return null==e?void 0:e[t]}(e,t);return _t(o)?o:void 0}var Mt=Ft(nt,"WeakMap"),Lt=/^(?:0|[1-9]\d*)$/;function Ot(e,t){var o=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&Lt.test(e))&&e>-1&&e%1==0&&e<t}function Ut(e,t){return e===t||e!=e&&t!=t}function jt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var zt=Object.prototype;function qt(e){return pt(e)&&"[object Arguments]"==ut(e)}var Ht=Object.prototype,Wt=Ht.hasOwnProperty,Jt=Ht.propertyIsEnumerable,Qt=qt(function(){return arguments}())?qt:function(e){return pt(e)&&Wt.call(e,"callee")&&!Jt.call(e,"callee")};var Kt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Gt=Kt&&"object"==typeof module&&module&&!module.nodeType&&module,Xt=Gt&&Gt.exports===Kt?nt.Buffer:void 0,Yt=(Xt?Xt.isBuffer:void 0)||function(){return!1},Zt={};Zt["[object Float32Array]"]=Zt["[object Float64Array]"]=Zt["[object Int8Array]"]=Zt["[object Int16Array]"]=Zt["[object Int32Array]"]=Zt["[object Uint8Array]"]=Zt["[object Uint8ClampedArray]"]=Zt["[object Uint16Array]"]=Zt["[object Uint32Array]"]=!0,Zt["[object Arguments]"]=Zt["[object Array]"]=Zt["[object ArrayBuffer]"]=Zt["[object Boolean]"]=Zt["[object DataView]"]=Zt["[object Date]"]=Zt["[object Error]"]=Zt["[object Function]"]=Zt["[object Map]"]=Zt["[object Number]"]=Zt["[object Object]"]=Zt["[object RegExp]"]=Zt["[object Set]"]=Zt["[object String]"]=Zt["[object WeakMap]"]=!1;var $t,eo="object"==typeof exports&&exports&&!exports.nodeType&&exports,to=eo&&"object"==typeof module&&module&&!module.nodeType&&module,oo=to&&to.exports===eo&&tt.process,no=function(){try{var e=to&&to.require&&to.require("util").types;return e||oo&&oo.binding&&oo.binding("util")}catch(t){}}(),ro=no&&no.isTypedArray,ao=ro?($t=ro,function(e){return $t(e)}):function(e){return pt(e)&&jt(e.length)&&!!Zt[ut(e)]},io=Object.prototype.hasOwnProperty;function lo(e,t){var o=mt(e),n=!o&&Qt(e),r=!o&&!n&&Yt(e),a=!o&&!n&&!r&&ao(e),i=o||n||r||a,l=i?function(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}(e.length,String):[],s=l.length;for(var c in e)!io.call(e,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ot(c,s))||l.push(c);return l}var so=function(e,t){return function(o){return e(t(o))}}(Object.keys,Object),co=Object.prototype.hasOwnProperty;function uo(e){if(o=(t=e)&&t.constructor,t!==("function"==typeof o&&o.prototype||zt))return so(e);var t,o,n=[];for(var r in Object(e))co.call(e,r)&&"constructor"!=r&&n.push(r);return n}function po(e){return null!=(t=e)&&jt(t.length)&&!kt(t)?lo(e):uo(e);var t}var mo=Ft(Object,"create");var ho=Object.prototype.hasOwnProperty;var fo=Object.prototype.hasOwnProperty;function go(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function vo(e,t){for(var o=e.length;o--;)if(Ut(e[o][0],t))return o;return-1}go.prototype.clear=function(){this.__data__=mo?mo(null):{},this.size=0},go.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},go.prototype.get=function(e){var t=this.__data__;if(mo){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return ho.call(t,e)?t[e]:void 0},go.prototype.has=function(e){var t=this.__data__;return mo?void 0!==t[e]:fo.call(t,e)},go.prototype.set=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=mo&&void 0===t?"__lodash_hash_undefined__":t,this};var yo=Array.prototype.splice;function Co(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Co.prototype.clear=function(){this.__data__=[],this.size=0},Co.prototype.delete=function(e){var t=this.__data__,o=vo(t,e);return!(o<0)&&(o==t.length-1?t.pop():yo.call(t,o,1),--this.size,!0)},Co.prototype.get=function(e){var t=this.__data__,o=vo(t,e);return o<0?void 0:t[o][1]},Co.prototype.has=function(e){return vo(this.__data__,e)>-1},Co.prototype.set=function(e,t){var o=this.__data__,n=vo(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this};var wo=Ft(nt,"Map");function Eo(e,t){var o,n,r=e.__data__;return("string"==(n=typeof(o=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==o:null===o)?r["string"==typeof t?"string":"hash"]:r.map}function bo(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}bo.prototype.clear=function(){this.size=0,this.__data__={hash:new go,map:new(wo||Co),string:new go}},bo.prototype.delete=function(e){var t=Eo(this,e).delete(e);return this.size-=t?1:0,t},bo.prototype.get=function(e){return Eo(this,e).get(e)},bo.prototype.has=function(e){return Eo(this,e).has(e)},bo.prototype.set=function(e,t){var o=Eo(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this};function ko(e){var t=this.__data__=new Co(e);this.size=t.size}ko.prototype.clear=function(){this.__data__=new Co,this.size=0},ko.prototype.delete=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o},ko.prototype.get=function(e){return this.__data__.get(e)},ko.prototype.has=function(e){return this.__data__.has(e)},ko.prototype.set=function(e,t){var o=this.__data__;if(o instanceof Co){var n=o.__data__;if(!wo||n.length<199)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new bo(n)}return o.set(e,t),this.size=o.size,this};var Ao=Object.prototype.propertyIsEnumerable,Bo=Object.getOwnPropertySymbols,Vo=Bo?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var o=-1,n=null==e?0:e.length,r=0,a=[];++o<n;){var i=e[o];t(i,o,e)&&(a[r++]=i)}return a}(Bo(e),function(t){return Ao.call(e,t)}))}:function(){return[]};function xo(e){return function(e,t,o){var n=t(e);return mt(e)?n:function(e,t){for(var o=-1,n=t.length,r=e.length;++o<n;)e[r+o]=t[o];return e}(n,o(e))}(e,po,Vo)}var No=Ft(nt,"DataView"),So=Ft(nt,"Promise"),Io=Ft(nt,"Set"),To="[object Map]",Do="[object Promise]",Po="[object Set]",Ro="[object WeakMap]",_o="[object DataView]",Fo=Nt(No),Mo=Nt(wo),Lo=Nt(So),Oo=Nt(Io),Uo=Nt(Mt),jo=ut;(No&&jo(new No(new ArrayBuffer(1)))!=_o||wo&&jo(new wo)!=To||So&&jo(So.resolve())!=Do||Io&&jo(new Io)!=Po||Mt&&jo(new Mt)!=Ro)&&(jo=function(e){var t=ut(e),o="[object Object]"==t?e.constructor:void 0,n=o?Nt(o):"";if(n)switch(n){case Fo:return _o;case Mo:return To;case Lo:return Do;case Oo:return Po;case Uo:return Ro}return t});var zo=nt.Uint8Array;function qo(e){var t=-1,o=null==e?0:e.length;for(this.__data__=new bo;++t<o;)this.add(e[t])}function Ho(e,t){for(var o=-1,n=null==e?0:e.length;++o<n;)if(t(e[o],o,e))return!0;return!1}qo.prototype.add=qo.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},qo.prototype.has=function(e){return this.__data__.has(e)};function Wo(e,t,o,n,r,a){var i=1&o,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var u=-1,p=!0,m=2&o?new qo:void 0;for(a.set(e,t),a.set(t,e);++u<l;){var h=e[u],f=t[u];if(n)var g=i?n(f,h,u,t,e,a):n(h,f,u,e,t,a);if(void 0!==g){if(g)continue;p=!1;break}if(m){if(!Ho(t,function(e,t){if(i=t,!m.has(i)&&(h===e||r(h,e,o,n,a)))return m.push(t);var i})){p=!1;break}}else if(h!==f&&!r(h,f,o,n,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Jo(e){var t=-1,o=Array(e.size);return e.forEach(function(e,n){o[++t]=[n,e]}),o}function Qo(e){var t=-1,o=Array(e.size);return e.forEach(function(e){o[++t]=e}),o}var Ko=rt?rt.prototype:void 0,Go=Ko?Ko.valueOf:void 0;var Xo=Object.prototype.hasOwnProperty;var Yo="[object Arguments]",Zo="[object Array]",$o="[object Object]",en=Object.prototype.hasOwnProperty;function tn(e,t,o,n,r,a){var i=mt(e),l=mt(t),s=i?Zo:jo(e),c=l?Zo:jo(t),d=(s=s==Yo?$o:s)==$o,u=(c=c==Yo?$o:c)==$o,p=s==c;if(p&&Yt(e)){if(!Yt(t))return!1;i=!0,d=!1}if(p&&!d)return a||(a=new ko),i||ao(e)?Wo(e,t,o,n,r,a):function(e,t,o,n,r,a,i){switch(o){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new zo(e),new zo(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ut(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=Jo;case"[object Set]":var s=1&n;if(l||(l=Qo),e.size!=t.size&&!s)return!1;var c=i.get(e);if(c)return c==t;n|=2,i.set(e,t);var d=Wo(l(e),l(t),n,r,a,i);return i.delete(e),d;case"[object Symbol]":if(Go)return Go.call(e)==Go.call(t)}return!1}(e,t,s,o,n,r,a);if(!(1&o)){var m=d&&en.call(e,"__wrapped__"),h=u&&en.call(t,"__wrapped__");if(m||h){var f=m?e.value():e,g=h?t.value():t;return a||(a=new ko),r(f,g,o,n,a)}}return!!p&&(a||(a=new ko),function(e,t,o,n,r,a){var i=1&o,l=xo(e),s=l.length;if(s!=xo(t).length&&!i)return!1;for(var c=s;c--;){var d=l[c];if(!(i?d in t:Xo.call(t,d)))return!1}var u=a.get(e),p=a.get(t);if(u&&p)return u==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var h=i;++c<s;){var f=e[d=l[c]],g=t[d];if(n)var v=i?n(g,f,d,t,e,a):n(f,g,d,e,t,a);if(!(void 0===v?f===g||r(f,g,o,n,a):v)){m=!1;break}h||(h="constructor"==d)}if(m&&!h){var y=e.constructor,C=t.constructor;y==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof C&&C instanceof C||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,o,n,r,a))}function on(e,t,o,n,r){return e===t||(null==e||null==t||!pt(e)&&!pt(t)?e!=e&&t!=t:tn(e,t,o,n,on,r))}var nn=function(){return nt.Date.now()},rn=Math.max,an=Math.min;function ln(e,t,o){var n,r,a,i,l,s,c=0,d=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var o=n,a=r;return n=r=void 0,c=t,i=e.apply(a,o)}function h(e){var o=e-s;return void 0===s||o>=t||o<0||u&&e-c>=a}function f(){var e=nn();if(h(e))return g(e);l=setTimeout(f,function(e){var o=t-(e-s);return u?an(o,a-(e-c)):o}(e))}function g(e){return l=void 0,p&&n?m(e):(n=r=void 0,i)}function v(){var e=nn(),o=h(e);if(n=arguments,r=this,s=e,o){if(void 0===l)return function(e){return c=e,l=setTimeout(f,t),d?m(e):i}(s);if(u)return clearTimeout(l),l=setTimeout(f,t),m(s)}return void 0===l&&(l=setTimeout(f,t)),i}return t=bt(t)||0,vt(o)&&(d=!!o.leading,a=(u="maxWait"in o)?rn(bt(o.maxWait)||0,t):a,p="trailing"in o?!!o.trailing:p),v.cancel=function(){void 0!==l&&clearTimeout(l),c=0,n=s=r=l=void 0},v.flush=function(){return void 0===l?i:g(nn())},v}const sn={key:0,class:"modal-container"},cn={class:"modal-header"},dn={class:"header-title"},un={class:"modal-body"},pn={class:"form-item"},mn={class:"required"},hn={class:"input-box"},fn=["placeholder"],gn={key:0,class:"error-message"},vn={class:"form-item"},yn={class:"required"},Cn={class:"type-group"},wn=["onClick"],En={key:0,class:"check-mark"},bn={class:"form-item"},kn={class:"required"},An={key:0,class:"error-message"},Bn={class:"modal-footer"},Vn={key:1,class:"apply-success-container"},xn={class:"apply-success-container__content"},Nn={class:"desc"},Sn={class:"apply-success-container__btns"},In=Ze({__name:"ApplyDataDialog",props:{value:{type:Boolean,default:!1},lang:{type:String,default:"",validator:e=>["","en","en-US","zh-CN","cn"].includes(e)},searchValue:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update:value","confirm","open","close"],setup(n,{emit:r}){const a=n,i=r,l=[{typeCn:"城市",typeEn:"City",type:"City"},{typeCn:"海运港口",typeEn:"Port",type:"Seaport"},{typeCn:"机场",typeEn:"Airport",type:"Airport"}],s=e.ref(null),c=e.ref(!1),d=e.ref(!1);e.watch(()=>a.value,e=>{e&&(console.log("🍉 ~ ApplyDataDialog.vue:138 ~ props.searchValue:",a.searchValue),a.searchValue&&(p.name=a.searchValue),i("open"))});const u=e.reactive({name:"",country:""}),p=e.reactive({name:"",type:"City"}),m=e.computed(()=>{var e,t,o,n,r,i;if(a.lang)return"en"===a.lang||"en-US"===a.lang;try{if("function"==typeof useCookie){const t=null==(e=useCookie("jc-language"))?void 0:e.value;if(t)return/^en(-US)?$/.test(t)}}catch(l){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp(),a=(null==(i=null==(r=null==(n=null==(o=null==(t=null==e?void 0:e.ssrContext)?void 0:t.event)?void 0:o.node)?void 0:n.req)?void 0:r.headers)?void 0:i.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(a)}}catch(l){}return!1}),h=()=>{u.name="",u.country="",c.value=!1,p.name="",p.type="City",s.value=null,i("update:value",!1),i("close")},f=ln(()=>{u.name="",u.country="";let e=!0;p.name.trim()||(u.name=m.value?"Please enter the data":"请输入需要补充的数据",e=!1),s.value||(u.country=m.value?"Please select a country":"请选择国家",e=!1),e&&(d.value=!0,t.reportNewTypeDataApi({reportData:p.name,reportType:p.type.toLocaleLowerCase(),countryId:s.value.id}).then(e=>{console.log("🍉 ~ ApplyDataDialog.vue:185 ~ handleConfirm ~ res:",e,e.code),0===e.code&&(c.value=!0,o.ElMessage.success(m.value?"Application received. Awaiting review":"平台已收到申请,请等待审核"),i("confirm",{...p,country:s.value}))}).catch(e=>{console.log("🍉 ~ ApplyDataDialog.vue:187 ~ handleConfirm ~ err:",e)}).finally(()=>{d.value=!1}))},800,{leading:!0,trailing:!1});return(t,r)=>n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-mask",onClick:e.withModifiers(h,["self"])},[c.value?(e.openBlock(),e.createElementBlock("div",Vn,[e.createElementVNode("div",xn,[r[5]||(r[5]=e.createElementVNode("div",{class:"icon"},null,-1)),e.createElementVNode("div",Nn,e.toDisplayString(m.value?"Application received. Awaiting review!":"平台已收到申请,请等待审核!"),1)]),e.createElementVNode("div",Sn,[e.createElementVNode("div",{class:"button jc:cursor-pointer",onClick:e.withModifiers(h,["stop"])},e.toDisplayString(m.value?"OK":"好的"),1)])])):(e.openBlock(),e.createElementBlock("div",sn,[e.createElementVNode("div",cn,[e.createElementVNode("span",dn,e.toDisplayString(m.value?"Apply for data addition":"申请补充数据"),1),e.createElementVNode("div",{class:"close-btn",onClick:h},"×")]),e.createElementVNode("div",un,[e.createElementVNode("div",pn,[e.createElementVNode("label",mn,e.toDisplayString(m.value?"Data To Add":"需补充的数据"),1),e.createElementVNode("div",hn,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":r[0]||(r[0]=e=>p.name=e),type:"text",placeholder:n.placeholder??(m.value?" Please enter":"请输入"),class:e.normalizeClass(["custom-input",{"input-error":u.name}]),onInput:r[1]||(r[1]=e=>u.name="")},null,42,fn),[[e.vModelText,p.name]])]),u.name?(e.openBlock(),e.createElementBlock("div",gn,e.toDisplayString(u.name),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",vn,[e.createElementVNode("label",yn,e.toDisplayString(m.value?"Type":"所属类别"),1),e.createElementVNode("div",Cn,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,t=>e.createElementVNode("div",{key:t.type,class:e.normalizeClass(["type-btn",{active:p.type===t.type}]),onClick:e=>p.type=t.type},[e.createTextVNode(e.toDisplayString(m.value?t.typeEn:t.typeCn)+" ",1),p.type===t.type?(e.openBlock(),e.createElementBlock("div",En)):e.createCommentVNode("",!0)],10,wn)),64))])]),e.createElementVNode("div",bn,[e.createElementVNode("label",kn,e.toDisplayString(m.value?"Country":"国家"),1),e.createElementVNode("div",{class:e.normalizeClass({"search-error-wrap":u.country})},[e.createVNode($e,{"search-type-list":["Country"],"model-value":s.value,"onUpdate:modelValue":[r[2]||(r[2]=e=>s.value=e),r[3]||(r[3]=e=>u.country="")],style:{margin:"0 auto"},lang:n.lang,"show-apply-data":!1,"show-search-icon":!1,placeholder:n.placeholder??(m.value?" Please enter":"请输入")},null,8,["model-value","lang","placeholder"])],2),u.country?(e.openBlock(),e.createElementBlock("div",An,e.toDisplayString(u.country),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Bn,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["confirm-btn jc:outline-none!",{"is-loading":d.value}]),onClick:r[4]||(r[4]=(...t)=>e.unref(f)&&e.unref(f)(...t))},[e.createTextVNode(e.toDisplayString(m.value?"Submit":"申请补充"),1)],2)),[[e.unref(o.vLoading),d.value]])])]))])):e.createCommentVNode("",!0)}},[["__scopeId","data-v-98fe6169"]]),Tn=Object.freeze(Object.defineProperty({__proto__:null,default:In},Symbol.toStringTag,{value:"Module"})),Dn=(t="")=>({isEn:e.computed(()=>{var e,o,n,r,a,i;if(t)return"en"===t||"en-US"===t;try{if("function"==typeof useCookie){const t=null==(e=useCookie("jc-language"))?void 0:e.value;if(t)return/^en(-US)?$/.test(t)}}catch(l){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp(),t=(null==(i=null==(a=null==(r=null==(n=null==(o=null==e?void 0:e.ssrContext)?void 0:o.event)?void 0:n.node)?void 0:r.req)?void 0:a.headers)?void 0:i.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(t)}}catch(l){}return!1})}),Pn={class:"global-company-input"},Rn={class:"company-option-item"},_n=Ze(e.defineComponent({__name:"index",props:{lang:{default:""},companyName:{default:""},countryId:{},useKq:{type:Boolean,default:!1},kqCode:{default:""},kqInfo:{default:()=>({})},city:{default:()=>({})},disabled:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1}},emits:["update:companyName","update:useKq","update:kqCode","update:kqInfo","change"],setup(n,{emit:r}){const a=n,i=r,l=e.ref(!1),s=e.ref([]),{isEn:c}=Dn(a.lang),{formItem:d}=o.useFormItem(),u=e.computed({get:()=>a.companyName,set:e=>i("update:companyName",e)}),p=e.computed(()=>1===a.countryId),m=e.ref(!1);let h=null;const f=e=>{e?(l.value=!0,g(e)):s.value=[]},g=ln(async e=>{var o,n,r,i;h&&h.abort(),h=new AbortController;const c={current:1,size:50,compName:e,cityName:(null==(o=a.city)?void 0:o.nameCn)+"市"};try{const e=await t.getCompanyOptionApi(c);s.value=(null==(i=null==(r=null==(n=null==e?void 0:e.data)?void 0:n.data)?void 0:r.records)?void 0:i.map(e=>({value:e.nameCn,code:e.kqId,kqId:e.kqId,...e})))||[]}catch(d){"AbortError"!==(null==d?void 0:d.name)&&"CanceledError"!==(null==d?void 0:d.name)&&console.error("获取公司选项失败:",d),s.value=[]}finally{l.value=!1}},800),v=e=>{const t=s.value.find(t=>t.value===e);t?(i("update:useKq",!0),i("update:kqCode",t.code),i("update:kqInfo",t)):(i("update:useKq",!1),i("update:kqCode",""),i("update:kqInfo",{})),i("change",t)},y=e=>{var t;i("update:useKq",!1),i("update:kqCode",""),i("change",e),null==(t=null==d?void 0:d.validate)||t.call(d,"change").catch(e=>{"development"===process.env.NODE_ENV&&console.warn("[ChineseCompanySearch] formItem.validate 失败:",e)})};return e.watch(()=>a.countryId,()=>{var e;i("update:companyName",""),i("update:useKq",!1),i("update:kqCode",""),i("update:kqInfo",{}),null==(e=null==d?void 0:d.validate)||e.call(d,"change").catch(e=>{"development"===process.env.NODE_ENV&&console.warn("[ChineseCompanySearch] formItem.validate 失败:",e)}),s.value=[]}),e.onBeforeUnmount(()=>{g.cancel(),h&&h.abort()}),(t,n)=>(e.openBlock(),e.createElementBlock("div",Pn,[p.value?(e.openBlock(),e.createBlock(e.unref(o.ElSelect),{key:0,modelValue:u.value,"onUpdate:modelValue":n[0]||(n[0]=e=>u.value=e),filterable:"",remote:"","reserve-keyword":"",clearable:"","allow-create":a.allowCreate,"default-first-option":a.defaultFirstOption,"remote-method":f,loading:l.value,disabled:m.value||a.disabled,placeholder:e.unref(c)?"Company Name in Chinese":"请输入您的公司中文名称","popper-class":"company-search dialog-join-us",onChange:v},{prefix:e.withCtx(()=>[e.renderSlot(t.$slots,"prefix",{},void 0,!0)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,t=>(e.openBlock(),e.createBlock(e.unref(o.ElOption),{key:t.kqId,label:t.value,value:t.value},{default:e.withCtx(()=>[e.createElementVNode("div",Rn,[e.createElementVNode("span",null,e.toDisplayString(t.value),1)])]),_:2},1032,["label","value"]))),128))]),_:3},8,["modelValue","allow-create","default-first-option","loading","disabled","placeholder"])):(e.openBlock(),e.createBlock(e.unref(o.ElInput),{key:1,modelValue:u.value,"onUpdate:modelValue":n[1]||(n[1]=e=>u.value=e),disabled:m.value||a.disabled,placeholder:e.unref(c)?"Company name in English":"请输入您的公司英文名称","max-length":"200",onChange:y},{prepend:e.withCtx(()=>[e.renderSlot(t.$slots,"prefix",{},void 0,!0)]),_:3},8,["modelValue","disabled","placeholder"]))]))}}),[["__scopeId","data-v-1c4f606a"]]),Fn=Object.freeze(Object.defineProperty({__proto__:null,default:_n},Symbol.toStringTag,{value:"Module"})),Mn={name:"GoogleInput",components:{ElInput:o.ElInput},inheritAttrs:!1,props:{placeholder:{type:String,default:""},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue","blur","focus"],data:()=>({isFocus:!1,autofillTimer:null}),computed:{isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus||null!==this.modelValue&&""!==this.modelValue}},mounted(){window.navigator.userAgent.indexOf("Chrome")>-1&&this.checkAutofill(0)},beforeUnmount(){this.clearAutofillTimer()},methods:{focusInput(){var e,t;null==(t=null==(e=this.$refs.googleInput)?void 0:e.focus)||t.call(e)},clearAutofillTimer(){this.autofillTimer&&(clearTimeout(this.autofillTimer),this.autofillTimer=null)},checkAutofill(e){var t,o;try{const n=null==(o=null==(t=this.$refs.googleInput)?void 0:t.$el)?void 0:o.querySelector("input");if(!n)return;if("rgb(232, 240, 254)"===window.getComputedStyle(n).getPropertyValue("background-color"))return void(this.isFocus=!0);e<20&&(this.autofillTimer=setTimeout(()=>{this.checkAutofill(e+1)},100))}catch(n){console.error("Autofill detection error:",n)}},handleInput(e){this.$emit("update:modelValue",e)},localBlur(e){this.isFocus=!1,this.$emit("blur",e)},localFocus(e){this.isFocus=!0,this.$emit("focus",e)}}},Ln={type:"text",name:"fakeUsername",autocomplete:"on"},On={type:"password",name:"fakePassword",autocomplete:"new-password"},Un={class:"google-input-wrap"},jn={key:0,class:"google-input-wrap-prepend"},zn={class:"google-input-wrap-input"};const qn=Ze(Mn,[["render",function(t,o,n,r,a,i){const l=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["google-input",{"is-focus":i.shouldFloat,"is-have-prepend":i.isHavePrepend}])},[e.withDirectives(e.createElementVNode("input",Ln,null,512),[[e.vShow,!1]]),e.withDirectives(e.createElementVNode("input",On,null,512),[[e.vShow,!1]]),e.createElementVNode("div",Un,[i.isHavePrepend?(e.openBlock(),e.createElementBlock("div",jn,[e.renderSlot(t.$slots,"prefix",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",zn,[e.createVNode(l,e.mergeProps({ref:"googleInput"},t.$attrs,{"model-value":n.modelValue},e.toHandlers({input:i.handleInput,blur:i.localBlur,focus:i.localFocus})),{suffix:e.withCtx(()=>[e.renderSlot(t.$slots,"suffix",{},void 0,!0)]),_:3},16,["model-value"]),e.createElementVNode("p",{onClick:o[0]||(o[0]=(...e)=>i.focusInput&&i.focusInput(...e)),class:"google-input-wrap-input-placeholder"},e.toDisplayString(n.placeholder),1)])])],2)}],["__scopeId","data-v-27eaff9d"]]),Hn=Object.freeze(Object.defineProperty({__proto__:null,default:qn},Symbol.toStringTag,{value:"Module"})),Wn={name:"JcFloatInput",components:{ElInput:o.ElInput},inheritAttrs:!1,props:{placeholder:{type:String,default:""},label:{type:String,default:""},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue","blur","focus"],data:()=>({isFocus:!1,autofillTimer:null}),computed:{currentLabel(){return this.label?this.label:this.placeholder},isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus}},mounted(){window.navigator.userAgent.indexOf("Chrome")>-1&&this.checkAutofill(0)},beforeUnmount(){this.clearAutofillTimer()},methods:{focusInput(){var e,t;null==(t=null==(e=this.$refs.googleInput)?void 0:e.focus)||t.call(e)},clearAutofillTimer(){this.autofillTimer&&(clearTimeout(this.autofillTimer),this.autofillTimer=null)},checkAutofill(e){var t,o;try{const n=null==(o=null==(t=this.$refs.googleInput)?void 0:t.$el)?void 0:o.querySelector("input");if(!n)return;if("rgb(232, 240, 254)"===window.getComputedStyle(n).getPropertyValue("background-color"))return void(this.isFocus=!0);e<20&&(this.autofillTimer=setTimeout(()=>{this.checkAutofill(e+1)},100))}catch(n){console.error("Autofill detection error:",n)}},handleInput(e){this.$emit("update:modelValue",e)},localBlur(e){this.isFocus=!1,this.$emit("blur",e)},localFocus(e){this.isFocus=!0,this.$emit("focus",e)}}},Jn={type:"text",name:"fakeUsername",autocomplete:"on"},Qn={type:"password",name:"fakePassword",autocomplete:"new-password"},Kn={class:"google-input-wrap"},Gn={key:0,class:"google-input-wrap-prepend"},Xn={class:"google-input-wrap-input"};const Yn=Ze(Wn,[["render",function(t,o,n,r,a,i){const l=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["google-input",{"is-focus":i.shouldFloat,"is-have-prepend":i.isHavePrepend}])},[e.withDirectives(e.createElementVNode("input",Jn,null,512),[[e.vShow,!1]]),e.withDirectives(e.createElementVNode("input",Qn,null,512),[[e.vShow,!1]]),e.createElementVNode("div",Kn,[i.isHavePrepend?(e.openBlock(),e.createElementBlock("div",Gn,[e.renderSlot(t.$slots,"prefix",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Xn,[e.createVNode(l,e.mergeProps({ref:"googleInput"},t.$attrs,{"model-value":n.modelValue,placeholder:n.placeholder},e.toHandlers({input:i.handleInput,blur:i.localBlur,focus:i.localFocus})),{suffix:e.withCtx(()=>[e.renderSlot(t.$slots,"suffix",{},void 0,!0)]),_:3},16,["model-value","placeholder"]),e.createElementVNode("p",{onClick:o[0]||(o[0]=(...e)=>i.focusInput&&i.focusInput(...e)),class:"google-input-wrap-input-placeholder"},e.toDisplayString(i.currentLabel),1)])])],2)}],["__scopeId","data-v-b4df44b2"]]),Zn=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"}));var $n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tr(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var o=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),o}var or={exports:{}};var nr={exports:{}};const rr=tr(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var ar;function ir(){return ar||(ar=1,nr.exports=(e=e||function(e,t){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),"undefined"!=typeof self&&self.crypto&&(o=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==$n&&$n.crypto&&(o=$n.crypto),!o)try{o=rr}catch(f){}var n=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(f){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(f){}}throw new Error("Native crypto module could not be used to get secure random number.")},r=Object.create||function(){function e(){}return function(t){var o;return e.prototype=t,o=new e,e.prototype=null,o}}(),a={},i=a.lib={},l=i.Base=function(){return{extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=i.WordArray=l.extend({init:function(e,o){e=this.words=e||[],this.sigBytes=o!=t?o:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,o=e.words,n=this.sigBytes,r=e.sigBytes;if(this.clamp(),n%4)for(var a=0;a<r;a++){var i=o[a>>>2]>>>24-a%4*8&255;t[n+a>>>2]|=i<<24-(n+a)%4*8}else for(var l=0;l<r;l+=4)t[n+l>>>2]=o[l>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,o=this.sigBytes;t[o>>>2]&=4294967295<<32-o%4*8,t.length=e.ceil(o/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],o=0;o<e;o+=4)t.push(n());return new s.init(t,e)}}),c=a.enc={},d=c.Hex={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],r=0;r<o;r++){var a=t[r>>>2]>>>24-r%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,o=[],n=0;n<t;n+=2)o[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new s.init(o,t/2)}},u=c.Latin1={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],r=0;r<o;r++){var a=t[r>>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,o=[],n=0;n<t;n++)o[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new s.init(o,t)}},p=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},m=i.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var o,n=this._data,r=n.words,a=n.sigBytes,i=this.blockSize,l=a/(4*i),c=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*i,d=e.min(4*c,a);if(c){for(var u=0;u<c;u+=i)this._doProcessBlock(r,u);o=r.splice(0,c),n.sigBytes-=d}return new s.init(o,d)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=m.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,o){return new e.init(o).finalize(t)}},_createHmacHelper:function(e){return function(t,o){return new h.HMAC.init(e,o).finalize(t)}}});var h=a.algo={};return a}(Math),e)),nr.exports;var e}var lr,sr={exports:{}};function cr(){return lr?sr.exports:(lr=1,sr.exports=(i=ir(),o=(t=i).lib,n=o.Base,r=o.WordArray,(a=t.x64={}).Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=n.extend({init:function(t,o){t=this.words=t||[],this.sigBytes=o!=e?o:8*t.length},toX32:function(){for(var e=this.words,t=e.length,o=[],n=0;n<t;n++){var a=e[n];o.push(a.high),o.push(a.low)}return r.create(o,this.sigBytes)},clone:function(){for(var e=n.clone.call(this),t=e.words=this.words.slice(0),o=t.length,r=0;r<o;r++)t[r]=t[r].clone();return e}}),i));var e,t,o,n,r,a,i}var dr,ur={exports:{}};function pr(){return dr||(dr=1,ur.exports=(e=ir(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,o=t.init,n=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],r=0;r<t;r++)n[r>>>2]|=e[r]<<24-r%4*8;o.call(this,n,t)}else o.apply(this,arguments)};n.prototype=t}}(),e.lib.WordArray)),ur.exports;var e}var mr,hr={exports:{}};function fr(){return mr?hr.exports:(mr=1,hr.exports=(e=ir(),function(){var t=e,o=t.lib.WordArray,n=t.enc;function r(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],r=0;r<o;r+=2){var a=t[r>>>2]>>>16-r%4*8&65535;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>1]|=e.charCodeAt(r)<<16-r%2*16;return o.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],a=0;a<o;a+=2){var i=r(t[a>>>2]>>>16-a%4*8&65535);n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a++)n[a>>>1]|=r(e.charCodeAt(a)<<16-a%2*16);return o.create(n,2*t)}}}(),e.enc.Utf16));var e}var gr,vr={exports:{}};function yr(){return gr?vr.exports:(gr=1,vr.exports=(e=ir(),function(){var t=e,o=t.lib.WordArray;function n(e,t,n){for(var r=[],a=0,i=0;i<t;i++)if(i%4){var l=n[e.charCodeAt(i-1)]<<i%4*2|n[e.charCodeAt(i)]>>>6-i%4*2;r[a>>>2]|=l<<24-a%4*8,a++}return o.create(r,a)}t.enc.Base64={stringify:function(e){var t=e.words,o=e.sigBytes,n=this._map;e.clamp();for(var r=[],a=0;a<o;a+=3)for(var i=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<o;l++)r.push(n.charAt(i>>>6*(3-l)&63));var s=n.charAt(64);if(s)for(;r.length%4;)r.push(s);return r.join("")},parse:function(e){var t=e.length,o=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a<o.length;a++)r[o.charCodeAt(a)]=a}var i=o.charAt(64);if(i){var l=e.indexOf(i);-1!==l&&(t=l)}return n(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64));var e}var Cr,wr={exports:{}};function Er(){return Cr?wr.exports:(Cr=1,wr.exports=(e=ir(),function(){var t=e,o=t.lib.WordArray;function n(e,t,n){for(var r=[],a=0,i=0;i<t;i++)if(i%4){var l=n[e.charCodeAt(i-1)]<<i%4*2|n[e.charCodeAt(i)]>>>6-i%4*2;r[a>>>2]|=l<<24-a%4*8,a++}return o.create(r,a)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var o=e.words,n=e.sigBytes,r=t?this._safe_map:this._map;e.clamp();for(var a=[],i=0;i<n;i+=3)for(var l=(o[i>>>2]>>>24-i%4*8&255)<<16|(o[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|o[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<n;s++)a.push(r.charAt(l>>>6*(3-s)&63));var c=r.charAt(64);if(c)for(;a.length%4;)a.push(c);return a.join("")},parse:function(e,t){void 0===t&&(t=!0);var o=e.length,r=t?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var i=0;i<r.length;i++)a[r.charCodeAt(i)]=i}var l=r.charAt(64);if(l){var s=e.indexOf(l);-1!==s&&(o=s)}return n(e,o,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url));var e}var br,kr={exports:{}};function Ar(){return br?kr.exports:(br=1,kr.exports=(e=ir(),function(t){var o=e,n=o.lib,r=n.WordArray,a=n.Hasher,i=o.algo,l=[];!function(){for(var e=0;e<64;e++)l[e]=4294967296*t.abs(t.sin(e+1))|0}();var s=i.MD5=a.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var o=0;o<16;o++){var n=t+o,r=e[n];e[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var a=this._hash.words,i=e[t+0],s=e[t+1],m=e[t+2],h=e[t+3],f=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],C=e[t+8],w=e[t+9],E=e[t+10],b=e[t+11],k=e[t+12],A=e[t+13],B=e[t+14],V=e[t+15],x=a[0],N=a[1],S=a[2],I=a[3];x=c(x,N,S,I,i,7,l[0]),I=c(I,x,N,S,s,12,l[1]),S=c(S,I,x,N,m,17,l[2]),N=c(N,S,I,x,h,22,l[3]),x=c(x,N,S,I,f,7,l[4]),I=c(I,x,N,S,g,12,l[5]),S=c(S,I,x,N,v,17,l[6]),N=c(N,S,I,x,y,22,l[7]),x=c(x,N,S,I,C,7,l[8]),I=c(I,x,N,S,w,12,l[9]),S=c(S,I,x,N,E,17,l[10]),N=c(N,S,I,x,b,22,l[11]),x=c(x,N,S,I,k,7,l[12]),I=c(I,x,N,S,A,12,l[13]),S=c(S,I,x,N,B,17,l[14]),x=d(x,N=c(N,S,I,x,V,22,l[15]),S,I,s,5,l[16]),I=d(I,x,N,S,v,9,l[17]),S=d(S,I,x,N,b,14,l[18]),N=d(N,S,I,x,i,20,l[19]),x=d(x,N,S,I,g,5,l[20]),I=d(I,x,N,S,E,9,l[21]),S=d(S,I,x,N,V,14,l[22]),N=d(N,S,I,x,f,20,l[23]),x=d(x,N,S,I,w,5,l[24]),I=d(I,x,N,S,B,9,l[25]),S=d(S,I,x,N,h,14,l[26]),N=d(N,S,I,x,C,20,l[27]),x=d(x,N,S,I,A,5,l[28]),I=d(I,x,N,S,m,9,l[29]),S=d(S,I,x,N,y,14,l[30]),x=u(x,N=d(N,S,I,x,k,20,l[31]),S,I,g,4,l[32]),I=u(I,x,N,S,C,11,l[33]),S=u(S,I,x,N,b,16,l[34]),N=u(N,S,I,x,B,23,l[35]),x=u(x,N,S,I,s,4,l[36]),I=u(I,x,N,S,f,11,l[37]),S=u(S,I,x,N,y,16,l[38]),N=u(N,S,I,x,E,23,l[39]),x=u(x,N,S,I,A,4,l[40]),I=u(I,x,N,S,i,11,l[41]),S=u(S,I,x,N,h,16,l[42]),N=u(N,S,I,x,v,23,l[43]),x=u(x,N,S,I,w,4,l[44]),I=u(I,x,N,S,k,11,l[45]),S=u(S,I,x,N,V,16,l[46]),x=p(x,N=u(N,S,I,x,m,23,l[47]),S,I,i,6,l[48]),I=p(I,x,N,S,y,10,l[49]),S=p(S,I,x,N,B,15,l[50]),N=p(N,S,I,x,g,21,l[51]),x=p(x,N,S,I,k,6,l[52]),I=p(I,x,N,S,h,10,l[53]),S=p(S,I,x,N,E,15,l[54]),N=p(N,S,I,x,s,21,l[55]),x=p(x,N,S,I,C,6,l[56]),I=p(I,x,N,S,V,10,l[57]),S=p(S,I,x,N,v,15,l[58]),N=p(N,S,I,x,A,21,l[59]),x=p(x,N,S,I,f,6,l[60]),I=p(I,x,N,S,b,10,l[61]),S=p(S,I,x,N,m,15,l[62]),N=p(N,S,I,x,w,21,l[63]),a[0]=a[0]+x|0,a[1]=a[1]+N|0,a[2]=a[2]+S|0,a[3]=a[3]+I|0},_doFinalize:function(){var e=this._data,o=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;o[r>>>5]|=128<<24-r%32;var a=t.floor(n/4294967296),i=n;o[15+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),o[14+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.sigBytes=4*(o.length+1),this._process();for(var l=this._hash,s=l.words,c=0;c<4;c++){var d=s[c];s[c]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return l},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,o,n,r,a,i){var l=e+(t&o|~t&n)+r+i;return(l<<a|l>>>32-a)+t}function d(e,t,o,n,r,a,i){var l=e+(t&n|o&~n)+r+i;return(l<<a|l>>>32-a)+t}function u(e,t,o,n,r,a,i){var l=e+(t^o^n)+r+i;return(l<<a|l>>>32-a)+t}function p(e,t,o,n,r,a,i){var l=e+(o^(t|~n))+r+i;return(l<<a|l>>>32-a)+t}o.MD5=a._createHelper(s),o.HmacMD5=a._createHmacHelper(s)}(Math),e.MD5));var e}var Br,Vr={exports:{}};function xr(){return Br?Vr.exports:(Br=1,Vr.exports=(l=ir(),t=(e=l).lib,o=t.WordArray,n=t.Hasher,r=e.algo,a=[],i=r.SHA1=n.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var o=this._hash.words,n=o[0],r=o[1],i=o[2],l=o[3],s=o[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var d=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=d<<1|d>>>31}var u=(n<<5|n>>>27)+s+a[c];u+=c<20?1518500249+(r&i|~r&l):c<40?1859775393+(r^i^l):c<60?(r&i|r&l|i&l)-1894007588:(r^i^l)-899497514,s=l,l=i,i=r<<30|r>>>2,r=n,n=u}o[0]=o[0]+n|0,o[1]=o[1]+r|0,o[2]=o[2]+i|0,o[3]=o[3]+l|0,o[4]=o[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(o/4294967296),t[15+(n+64>>>9<<4)]=o,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=n._createHelper(i),e.HmacSHA1=n._createHmacHelper(i),l.SHA1));var e,t,o,n,r,a,i,l}var Nr,Sr={exports:{}};function Ir(){return Nr?Sr.exports:(Nr=1,Sr.exports=(e=ir(),function(t){var o=e,n=o.lib,r=n.WordArray,a=n.Hasher,i=o.algo,l=[],s=[];!function(){function e(e){for(var o=t.sqrt(e),n=2;n<=o;n++)if(!(e%n))return!1;return!0}function o(e){return 4294967296*(e-(0|e))|0}for(var n=2,r=0;r<64;)e(n)&&(r<8&&(l[r]=o(t.pow(n,.5))),s[r]=o(t.pow(n,1/3)),r++),n++}();var c=[],d=i.SHA256=a.extend({_doReset:function(){this._hash=new r.init(l.slice(0))},_doProcessBlock:function(e,t){for(var o=this._hash.words,n=o[0],r=o[1],a=o[2],i=o[3],l=o[4],d=o[5],u=o[6],p=o[7],m=0;m<64;m++){if(m<16)c[m]=0|e[t+m];else{var h=c[m-15],f=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,g=c[m-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[m]=f+c[m-7]+v+c[m-16]}var y=n&r^n&a^r&a,C=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=p+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&d^~l&u)+s[m]+c[m];p=u,u=d,d=l,l=i+w|0,i=a,a=r,r=n,n=w+(C+y)|0}o[0]=o[0]+n|0,o[1]=o[1]+r|0,o[2]=o[2]+a|0,o[3]=o[3]+i|0,o[4]=o[4]+l|0,o[5]=o[5]+d|0,o[6]=o[6]+u|0,o[7]=o[7]+p|0},_doFinalize:function(){var e=this._data,o=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return o[r>>>5]|=128<<24-r%32,o[14+(r+64>>>9<<4)]=t.floor(n/4294967296),o[15+(r+64>>>9<<4)]=n,e.sigBytes=4*o.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});o.SHA256=a._createHelper(d),o.HmacSHA256=a._createHmacHelper(d)}(Math),e.SHA256));var e}var Tr,Dr={exports:{}};var Pr,Rr={exports:{}};function _r(){return Pr||(Pr=1,Rr.exports=(e=ir(),cr(),function(){var t=e,o=t.lib.Hasher,n=t.x64,r=n.Word,a=n.WordArray,i=t.algo;function l(){return r.create.apply(r,arguments)}var s=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=l()}();var d=i.SHA512=o.extend({_doReset:function(){this._hash=new a.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var o=this._hash.words,n=o[0],r=o[1],a=o[2],i=o[3],l=o[4],d=o[5],u=o[6],p=o[7],m=n.high,h=n.low,f=r.high,g=r.low,v=a.high,y=a.low,C=i.high,w=i.low,E=l.high,b=l.low,k=d.high,A=d.low,B=u.high,V=u.low,x=p.high,N=p.low,S=m,I=h,T=f,D=g,P=v,R=y,_=C,F=w,M=E,L=b,O=k,U=A,j=B,z=V,q=x,H=N,W=0;W<80;W++){var J,Q,K=c[W];if(W<16)Q=K.high=0|e[t+2*W],J=K.low=0|e[t+2*W+1];else{var G=c[W-15],X=G.high,Y=G.low,Z=(X>>>1|Y<<31)^(X>>>8|Y<<24)^X>>>7,$=(Y>>>1|X<<31)^(Y>>>8|X<<24)^(Y>>>7|X<<25),ee=c[W-2],te=ee.high,oe=ee.low,ne=(te>>>19|oe<<13)^(te<<3|oe>>>29)^te>>>6,re=(oe>>>19|te<<13)^(oe<<3|te>>>29)^(oe>>>6|te<<26),ae=c[W-7],ie=ae.high,le=ae.low,se=c[W-16],ce=se.high,de=se.low;Q=(Q=(Q=Z+ie+((J=$+le)>>>0<$>>>0?1:0))+ne+((J+=re)>>>0<re>>>0?1:0))+ce+((J+=de)>>>0<de>>>0?1:0),K.high=Q,K.low=J}var ue,pe=M&O^~M&j,me=L&U^~L&z,he=S&T^S&P^T&P,fe=I&D^I&R^D&R,ge=(S>>>28|I<<4)^(S<<30|I>>>2)^(S<<25|I>>>7),ve=(I>>>28|S<<4)^(I<<30|S>>>2)^(I<<25|S>>>7),ye=(M>>>14|L<<18)^(M>>>18|L<<14)^(M<<23|L>>>9),Ce=(L>>>14|M<<18)^(L>>>18|M<<14)^(L<<23|M>>>9),we=s[W],Ee=we.high,be=we.low,ke=q+ye+((ue=H+Ce)>>>0<H>>>0?1:0),Ae=ve+fe;q=j,H=z,j=O,z=U,O=M,U=L,M=_+(ke=(ke=(ke=ke+pe+((ue+=me)>>>0<me>>>0?1:0))+Ee+((ue+=be)>>>0<be>>>0?1:0))+Q+((ue+=J)>>>0<J>>>0?1:0))+((L=F+ue|0)>>>0<F>>>0?1:0)|0,_=P,F=R,P=T,R=D,T=S,D=I,S=ke+(ge+he+(Ae>>>0<ve>>>0?1:0))+((I=ue+Ae|0)>>>0<ue>>>0?1:0)|0}h=n.low=h+I,n.high=m+S+(h>>>0<I>>>0?1:0),g=r.low=g+D,r.high=f+T+(g>>>0<D>>>0?1:0),y=a.low=y+R,a.high=v+P+(y>>>0<R>>>0?1:0),w=i.low=w+F,i.high=C+_+(w>>>0<F>>>0?1:0),b=l.low=b+L,l.high=E+M+(b>>>0<L>>>0?1:0),A=d.low=A+U,d.high=k+O+(A>>>0<U>>>0?1:0),V=u.low=V+z,u.high=B+j+(V>>>0<z>>>0?1:0),N=p.low=N+H,p.high=x+q+(N>>>0<H>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(o/4294967296),t[31+(n+128>>>10<<5)]=o,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=o._createHelper(d),t.HmacSHA512=o._createHmacHelper(d)}(),e.SHA512)),Rr.exports;var e}var Fr,Mr={exports:{}};var Lr,Or={exports:{}};function Ur(){return Lr?Or.exports:(Lr=1,Or.exports=(e=ir(),cr(),function(t){var o=e,n=o.lib,r=n.WordArray,a=n.Hasher,i=o.x64.Word,l=o.algo,s=[],c=[],d=[];!function(){for(var e=1,t=0,o=0;o<24;o++){s[e+5*t]=(o+1)*(o+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var r=1,a=0;a<24;a++){for(var l=0,u=0,p=0;p<7;p++){if(1&r){var m=(1<<p)-1;m<32?u^=1<<m:l^=1<<m-32}128&r?r=r<<1^113:r<<=1}d[a]=i.create(l,u)}}();var u=[];!function(){for(var e=0;e<25;e++)u[e]=i.create()}();var p=l.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new i.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var o=this._state,n=this.blockSize/2,r=0;r<n;r++){var a=e[t+2*r],i=e[t+2*r+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),(N=o[r]).high^=i,N.low^=a}for(var l=0;l<24;l++){for(var p=0;p<5;p++){for(var m=0,h=0,f=0;f<5;f++)m^=(N=o[p+5*f]).high,h^=N.low;var g=u[p];g.high=m,g.low=h}for(p=0;p<5;p++){var v=u[(p+4)%5],y=u[(p+1)%5],C=y.high,w=y.low;for(m=v.high^(C<<1|w>>>31),h=v.low^(w<<1|C>>>31),f=0;f<5;f++)(N=o[p+5*f]).high^=m,N.low^=h}for(var E=1;E<25;E++){var b=(N=o[E]).high,k=N.low,A=s[E];A<32?(m=b<<A|k>>>32-A,h=k<<A|b>>>32-A):(m=k<<A-32|b>>>64-A,h=b<<A-32|k>>>64-A);var B=u[c[E]];B.high=m,B.low=h}var V=u[0],x=o[0];for(V.high=x.high,V.low=x.low,p=0;p<5;p++)for(f=0;f<5;f++){var N=o[E=p+5*f],S=u[E],I=u[(p+1)%5+5*f],T=u[(p+2)%5+5*f];N.high=S.high^~I.high&T.high,N.low=S.low^~I.low&T.low}N=o[0];var D=d[l];N.high^=D.high,N.low^=D.low}},_doFinalize:function(){var e=this._data,o=e.words;this._nDataBytes;var n=8*e.sigBytes,a=32*this.blockSize;o[n>>>5]|=1<<24-n%32,o[(t.ceil((n+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*o.length,this._process();for(var i=this._state,l=this.cfg.outputLength/8,s=l/8,c=[],d=0;d<s;d++){var u=i[d],p=u.high,m=u.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),m=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),c.push(m),c.push(p)}return new r.init(c,l)},clone:function(){for(var e=a.clone.call(this),t=e._state=this._state.slice(0),o=0;o<25;o++)t[o]=t[o].clone();return e}});o.SHA3=a._createHelper(p),o.HmacSHA3=a._createHmacHelper(p)}(Math),e.SHA3));var e}var jr,zr={exports:{}};var qr,Hr={exports:{}};function Wr(){return qr?Hr.exports:(qr=1,Hr.exports=(e=ir(),o=(t=e).lib.Base,n=t.enc.Utf8,void(t.algo.HMAC=o.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var o=e.blockSize,r=4*o;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),i=this._iKey=t.clone(),l=a.words,s=i.words,c=0;c<o;c++)l[c]^=1549556828,s[c]^=909522486;a.sigBytes=i.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,o=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(o))}}))));var e,t,o,n}var Jr,Qr={exports:{}};var Kr,Gr={exports:{}};function Xr(){return Kr?Gr.exports:(Kr=1,Gr.exports=(l=ir(),xr(),Wr(),t=(e=l).lib,o=t.Base,n=t.WordArray,r=e.algo,a=r.MD5,i=r.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var o,r=this.cfg,a=r.hasher.create(),i=n.create(),l=i.words,s=r.keySize,c=r.iterations;l.length<s;){o&&a.update(o),o=a.update(e).finalize(t),a.reset();for(var d=1;d<c;d++)o=a.finalize(o),a.reset();i.concat(o)}return i.sigBytes=4*s,i}}),e.EvpKDF=function(e,t,o){return i.create(o).compute(e,t)},l.EvpKDF));var e,t,o,n,r,a,i,l}var Yr,Zr={exports:{}};function $r(){return Yr?Zr.exports:(Yr=1,Zr.exports=(e=ir(),Xr(),void(e.lib.Cipher||function(t){var o=e,n=o.lib,r=n.Base,a=n.WordArray,i=n.BufferedBlockAlgorithm,l=o.enc;l.Utf8;var s=l.Base64,c=o.algo.EvpKDF,d=n.Cipher=i.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,o){this.cfg=this.cfg.extend(o),this._xformMode=e,this._key=t,this.reset()},reset:function(){i.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?C:v}return function(t){return{encrypt:function(o,n,r){return e(n).encrypt(t,o,n,r)},decrypt:function(o,n,r){return e(n).decrypt(t,o,n,r)}}}}()});n.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=o.mode={},p=n.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),m=u.CBC=function(){var e=p.extend();function o(e,o,n){var r,a=this._iv;a?(r=a,this._iv=t):r=this._prevBlock;for(var i=0;i<n;i++)e[o+i]^=r[i]}return e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize;o.call(this,e,t,r),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),e.Decryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,a=e.slice(t,t+r);n.decryptBlock(e,t),o.call(this,e,t,r),this._prevBlock=a}}),e}(),h=(o.pad={}).Pkcs7={pad:function(e,t){for(var o=4*t,n=o-e.sigBytes%o,r=n<<24|n<<16|n<<8|n,i=[],l=0;l<n;l+=4)i.push(r);var s=a.create(i,n);e.concat(s)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=d.extend({cfg:d.cfg.extend({mode:m,padding:h}),reset:function(){var e;d.reset.call(this);var t=this.cfg,o=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,o&&o.words):(this._mode=e.call(n,this,o&&o.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var f=n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(o.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,o=e.salt;return(o?a.create([1398893684,1701076831]).concat(o).concat(t):t).toString(s)},parse:function(e){var t,o=s.parse(e),n=o.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=a.create(n.slice(2,4)),n.splice(0,4),o.sigBytes-=16),f.create({ciphertext:o,salt:t})}},v=n.SerializableCipher=r.extend({cfg:r.extend({format:g}),encrypt:function(e,t,o,n){n=this.cfg.extend(n);var r=e.createEncryptor(o,n),a=r.finalize(t),i=r.cfg;return f.create({ciphertext:a,key:o,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,o,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(o,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(o.kdf={}).OpenSSL={execute:function(e,t,o,n,r){if(n||(n=a.random(8)),r)i=c.create({keySize:t+o,hasher:r}).compute(e,n);else var i=c.create({keySize:t+o}).compute(e,n);var l=a.create(i.words.slice(t),4*o);return i.sigBytes=4*t,f.create({key:i,iv:l,salt:n})}},C=n.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:y}),encrypt:function(e,t,o,n){var r=(n=this.cfg.extend(n)).kdf.execute(o,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=r.iv;var a=v.encrypt.call(this,e,t,r.key,n);return a.mixIn(r),a},decrypt:function(e,t,o,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var r=n.kdf.execute(o,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=r.iv,v.decrypt.call(this,e,t,r.key,n)}})}())));var e}var ea,ta={exports:{}};var oa,na={exports:{}};var ra,aa={exports:{}};function ia(){return ra?aa.exports:(ra=1,aa.exports=(e=ir(),$r(),
2
2
  /** @preserve
3
3
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
4
4
  * derived from CryptoJS.mode.CTR