@xlui/xux-ui 0.2.1 → 1.1.0
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/assets/areas.worker-Ci--LHMH.js +1 -0
- package/dist/browser-Bfcp93e9.js +8 -0
- package/dist/browser-Dj1SWzn2.mjs +1456 -0
- package/dist/index.css +1 -1
- package/dist/index.js +32 -32
- package/dist/index.mjs +18021 -2703
- package/package.json +70 -63
- package/src/components/Button/index.vue +6 -6
- package/src/components/Card/index.vue +44 -11
- package/src/components/DateTimePicker/index.vue +121 -39
- package/src/components/Qrcode/index.vue +390 -0
- package/src/components/RegionCascader/areas.worker.ts +196 -0
- package/src/components/RegionCascader/data/china-areas.full.json +14464 -0
- package/src/components/RegionCascader/data/init.mjs +377 -0
- package/src/components/RegionCascader/index.vue +870 -0
- package/src/components/Select/index.vue +25 -22
- package/src/components/SpecialEffects/fireworks.vue +134 -0
- package/src/components/SpecialEffects/glow.vue +377 -0
- package/src/components/Switch/index.vue +335 -0
- package/src/index.ts +9 -0
- package/LICENSE +0 -194
package/dist/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),We=/^[a-z0-9]+(-[a-z0-9]+)*$/,ye=(t,l,o,n="")=>{const a=t.split(":");if(t.slice(0,1)==="@"){if(a.length<2||a.length>3)return null;n=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){const i=a.pop(),r=a.pop(),d={provider:a.length>0?a[0]:n,prefix:r,name:i};return l&&!me(d)?null:d}const s=a[0],c=s.split("-");if(c.length>1){const i={provider:n,prefix:c.shift(),name:c.join("-")};return l&&!me(i)?null:i}if(o&&n===""){const i={provider:n,prefix:"",name:s};return l&&!me(i,o)?null:i}return null},me=(t,l)=>t?!!((l&&t.prefix===""||t.prefix)&&t.name):!1,Re=Object.freeze({left:0,top:0,width:16,height:16}),ve=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),we=Object.freeze({...Re,...ve}),Se=Object.freeze({...we,body:"",hidden:!1});function Ct(t,l){const o={};!t.hFlip!=!l.hFlip&&(o.hFlip=!0),!t.vFlip!=!l.vFlip&&(o.vFlip=!0);const n=((t.rotate||0)+(l.rotate||0))%4;return n&&(o.rotate=n),o}function De(t,l){const o=Ct(t,l);for(const n in Se)n in ve?n in t&&!(n in o)&&(o[n]=ve[n]):n in l?o[n]=l[n]:n in t&&(o[n]=t[n]);return o}function kt(t,l){const o=t.icons,n=t.aliases||Object.create(null),a=Object.create(null);function s(c){if(o[c])return a[c]=[];if(!(c in a)){a[c]=null;const i=n[c]&&n[c].parent,r=i&&s(i);r&&(a[c]=[i].concat(r))}return a[c]}return Object.keys(o).concat(Object.keys(n)).forEach(s),a}function St(t,l,o){const n=t.icons,a=t.aliases||Object.create(null);let s={};function c(i){s=De(n[i]||a[i],s)}return c(l),o.forEach(c),De(t,s)}function Ge(t,l){const o=[];if(typeof t!="object"||typeof t.icons!="object")return o;t.not_found instanceof Array&&t.not_found.forEach(a=>{l(a,null),o.push(a)});const n=kt(t);for(const a in n){const s=n[a];s&&(l(a,St(t,a,s)),o.push(a))}return o}const xt={provider:"",aliases:{},not_found:{},...Re};function Ce(t,l){for(const o in l)if(o in t&&typeof t[o]!=typeof l[o])return!1;return!0}function Ue(t){if(typeof t!="object"||t===null)return null;const l=t;if(typeof l.prefix!="string"||!t.icons||typeof t.icons!="object"||!Ce(t,xt))return null;const o=l.icons;for(const a in o){const s=o[a];if(!a||typeof s.body!="string"||!Ce(s,Se))return null}const n=l.aliases||Object.create(null);for(const a in n){const s=n[a],c=s.parent;if(!a||typeof c!="string"||!o[c]&&!n[c]||!Ce(s,Se))return null}return l}const Ae=Object.create(null);function Et(t,l){return{provider:t,prefix:l,icons:Object.create(null),missing:new Set}}function ie(t,l){const o=Ae[t]||(Ae[t]=Object.create(null));return o[l]||(o[l]=Et(t,l))}function Ke(t,l){return Ue(l)?Ge(l,(o,n)=>{n?t.icons[o]=n:t.missing.add(o)}):[]}function $t(t,l,o){try{if(typeof o.body=="string")return t.icons[l]={...o},!0}catch{}return!1}let fe=!1;function qe(t){return typeof t=="boolean"&&(fe=t),fe}function Mt(t){const l=typeof t=="string"?ye(t,!0,fe):t;if(l){const o=ie(l.provider,l.prefix),n=l.name;return o.icons[n]||(o.missing.has(n)?null:void 0)}}function Pt(t,l){const o=ye(t,!0,fe);if(!o)return!1;const n=ie(o.provider,o.prefix);return l?$t(n,o.name,l):(n.missing.add(o.name),!0)}function Bt(t,l){if(typeof t!="object")return!1;if(typeof l!="string"&&(l=t.provider||""),fe&&!l&&!t.prefix){let a=!1;return Ue(t)&&(t.prefix="",Ge(t,(s,c)=>{Pt(s,c)&&(a=!0)})),a}const o=t.prefix;if(!me({prefix:o,name:"a"}))return!1;const n=ie(l,o);return!!Ke(n,t)}const Ze=Object.freeze({width:null,height:null}),Qe=Object.freeze({...Ze,...ve}),jt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Vt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Te(t,l,o){if(l===1)return t;if(o=o||100,typeof t=="number")return Math.ceil(t*l*o)/o;if(typeof t!="string")return t;const n=t.split(jt);if(n===null||!n.length)return t;const a=[];let s=n.shift(),c=Vt.test(s);for(;;){if(c){const i=parseFloat(s);isNaN(i)?a.push(s):a.push(Math.ceil(i*l*o)/o)}else a.push(s);if(s=n.shift(),s===void 0)return a.join("");c=!c}}function Nt(t,l="defs"){let o="";const n=t.indexOf("<"+l);for(;n>=0;){const a=t.indexOf(">",n),s=t.indexOf("</"+l);if(a===-1||s===-1)break;const c=t.indexOf(">",s);if(c===-1)break;o+=t.slice(a+1,s).trim(),t=t.slice(0,n).trim()+t.slice(c+1)}return{defs:o,content:t}}function Dt(t,l){return t?"<defs>"+t+"</defs>"+l:l}function At(t,l,o){const n=Nt(t);return Dt(n.defs,l+n.content+o)}const Tt=t=>t==="unset"||t==="undefined"||t==="none";function zt(t,l){const o={...we,...t},n={...Qe,...l},a={left:o.left,top:o.top,width:o.width,height:o.height};let s=o.body;[o,n].forEach(u=>{const f=[],y=u.hFlip,k=u.vFlip;let w=u.rotate;y?k?w+=2:(f.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),f.push("scale(-1 1)"),a.top=a.left=0):k&&(f.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),f.push("scale(1 -1)"),a.top=a.left=0);let S;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:S=a.height/2+a.top,f.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:f.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:S=a.width/2+a.left,f.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}w%2===1&&(a.left!==a.top&&(S=a.left,a.left=a.top,a.top=S),a.width!==a.height&&(S=a.width,a.width=a.height,a.height=S)),f.length&&(s=At(s,'<g transform="'+f.join(" ")+'">',"</g>"))});const c=n.width,i=n.height,r=a.width,d=a.height;let g,p;c===null?(p=i===null?"1em":i==="auto"?d:i,g=Te(p,r/d)):(g=c==="auto"?r:c,p=i===null?Te(g,d/r):i==="auto"?d:i);const v={},h=(u,f)=>{Tt(f)||(v[u]=f.toString())};h("width",g),h("height",p);const x=[a.left,a.top,r,d];return v.viewBox=x.join(" "),{attributes:v,viewBox:x,body:s}}const It=/\sid="(\S+)"/g,Ot="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Lt=0;function Yt(t,l=Ot){const o=[];let n;for(;n=It.exec(t);)o.push(n[1]);if(!o.length)return t;const a="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(s=>{const c=typeof l=="function"?l(s):l+(Lt++).toString(),i=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+c+a+"$3")}),t=t.replace(new RegExp(a,"g"),""),t}const xe=Object.create(null);function _t(t,l){xe[t]=l}function Ee(t){return xe[t]||xe[""]}function Pe(t){let l;if(typeof t.resources=="string")l=[t.resources];else if(l=t.resources,!(l instanceof Array)||!l.length)return null;return{resources:l,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const Be=Object.create(null),de=["https://api.simplesvg.com","https://api.unisvg.com"],he=[];for(;de.length>0;)de.length===1||Math.random()>.5?he.push(de.shift()):he.push(de.pop());Be[""]=Pe({resources:["https://api.iconify.design"].concat(he)});function Xt(t,l){const o=Pe(l);return o===null?!1:(Be[t]=o,!0)}function je(t){return Be[t]}const Ft=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let ze=Ft();function Ht(t,l){const o=je(t);if(!o)return 0;let n;if(!o.maxURL)n=0;else{let a=0;o.resources.forEach(c=>{a=Math.max(a,c.length)});const s=l+".json?icons=";n=o.maxURL-a-o.path.length-s.length}return n}function Wt(t){return t===404}const Rt=(t,l,o)=>{const n=[],a=Ht(t,l),s="icons";let c={type:s,provider:t,prefix:l,icons:[]},i=0;return o.forEach((r,d)=>{i+=r.length+1,i>=a&&d>0&&(n.push(c),c={type:s,provider:t,prefix:l,icons:[]},i=r.length),c.icons.push(r)}),n.push(c),n};function Gt(t){if(typeof t=="string"){const l=je(t);if(l)return l.path}return"/"}const Ut=(t,l,o)=>{if(!ze){o("abort",424);return}let n=Gt(l.provider);switch(l.type){case"icons":{const s=l.prefix,i=l.icons.join(","),r=new URLSearchParams({icons:i});n+=s+".json?"+r.toString();break}case"custom":{const s=l.uri;n+=s.slice(0,1)==="/"?s.slice(1):s;break}default:o("abort",400);return}let a=503;ze(t+n).then(s=>{const c=s.status;if(c!==200){setTimeout(()=>{o(Wt(c)?"abort":"next",c)});return}return a=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?o("abort",s):o("next",a)});return}setTimeout(()=>{o("success",s)})}).catch(()=>{o("next",a)})},Kt={prepare:Rt,send:Ut};function qt(t){const l={loaded:[],missing:[],pending:[]},o=Object.create(null);t.sort((a,s)=>a.provider!==s.provider?a.provider.localeCompare(s.provider):a.prefix!==s.prefix?a.prefix.localeCompare(s.prefix):a.name.localeCompare(s.name));let n={provider:"",prefix:"",name:""};return t.forEach(a=>{if(n.name===a.name&&n.prefix===a.prefix&&n.provider===a.provider)return;n=a;const s=a.provider,c=a.prefix,i=a.name,r=o[s]||(o[s]=Object.create(null)),d=r[c]||(r[c]=ie(s,c));let g;i in d.icons?g=l.loaded:c===""||d.missing.has(i)?g=l.missing:g=l.pending;const p={provider:s,prefix:c,name:i};g.push(p)}),l}function Je(t,l){t.forEach(o=>{const n=o.loaderCallbacks;n&&(o.loaderCallbacks=n.filter(a=>a.id!==l))})}function Zt(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const l=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!l.length)return;let o=!1;const n=t.provider,a=t.prefix;l.forEach(s=>{const c=s.icons,i=c.pending.length;c.pending=c.pending.filter(r=>{if(r.prefix!==a)return!0;const d=r.name;if(t.icons[d])c.loaded.push({provider:n,prefix:a,name:d});else if(t.missing.has(d))c.missing.push({provider:n,prefix:a,name:d});else return o=!0,!0;return!1}),c.pending.length!==i&&(o||Je([t],s.id),s.callback(c.loaded.slice(0),c.missing.slice(0),c.pending.slice(0),s.abort))})}))}let Qt=0;function Jt(t,l,o){const n=Qt++,a=Je.bind(null,o,n);if(!l.pending.length)return a;const s={id:n,icons:l,callback:t,abort:a};return o.forEach(c=>{(c.loaderCallbacks||(c.loaderCallbacks=[])).push(s)}),a}function en(t,l=!0,o=!1){const n=[];return t.forEach(a=>{const s=typeof a=="string"?ye(a,l,o):a;s&&n.push(s)}),n}var tn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function nn(t,l,o,n){const a=t.resources.length,s=t.random?Math.floor(Math.random()*a):t.index;let c;if(t.random){let P=t.resources.slice(0);for(c=[];P.length>1;){const B=Math.floor(Math.random()*P.length);c.push(P[B]),P=P.slice(0,B).concat(P.slice(B+1))}c=c.concat(P)}else c=t.resources.slice(s).concat(t.resources.slice(0,s));const i=Date.now();let r="pending",d=0,g,p=null,v=[],h=[];typeof n=="function"&&h.push(n);function x(){p&&(clearTimeout(p),p=null)}function u(){r==="pending"&&(r="aborted"),x(),v.forEach(P=>{P.status==="pending"&&(P.status="aborted")}),v=[]}function f(P,B){B&&(h=[]),typeof P=="function"&&h.push(P)}function y(){return{startTime:i,payload:l,status:r,queriesSent:d,queriesPending:v.length,subscribe:f,abort:u}}function k(){r="failed",h.forEach(P=>{P(void 0,g)})}function w(){v.forEach(P=>{P.status==="pending"&&(P.status="aborted")}),v=[]}function S(P,B,m){const E=B!=="success";switch(v=v.filter(b=>b!==P),r){case"pending":break;case"failed":if(E||!t.dataAfterTimeout)return;break;default:return}if(B==="abort"){g=m,k();return}if(E){g=m,v.length||(c.length?D():k());return}if(x(),w(),!t.random){const b=t.resources.indexOf(P.resource);b!==-1&&b!==t.index&&(t.index=b)}r="completed",h.forEach(b=>{b(m)})}function D(){if(r!=="pending")return;x();const P=c.shift();if(P===void 0){if(v.length){p=setTimeout(()=>{x(),r==="pending"&&(w(),k())},t.timeout);return}k();return}const B={status:"pending",resource:P,callback:(m,E)=>{S(B,m,E)}};v.push(B),d++,p=setTimeout(D,t.rotate),o(P,l,B.callback)}return setTimeout(D),y}function et(t){const l={...tn,...t};let o=[];function n(){o=o.filter(i=>i().status==="pending")}function a(i,r,d){const g=nn(l,i,r,(p,v)=>{n(),d&&d(p,v)});return o.push(g),g}function s(i){return o.find(r=>i(r))||null}return{query:a,find:s,setIndex:i=>{l.index=i},getIndex:()=>l.index,cleanup:n}}function Ie(){}const ke=Object.create(null);function on(t){if(!ke[t]){const l=je(t);if(!l)return;const o=et(l),n={config:l,redundancy:o};ke[t]=n}return ke[t]}function an(t,l,o){let n,a;if(typeof t=="string"){const s=Ee(t);if(!s)return o(void 0,424),Ie;a=s.send;const c=on(t);c&&(n=c.redundancy)}else{const s=Pe(t);if(s){n=et(s);const c=t.resources?t.resources[0]:"",i=Ee(c);i&&(a=i.send)}}return!n||!a?(o(void 0,424),Ie):n.query(l,a,o)().abort}function Oe(){}function ln(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Zt(t)}))}function sn(t){const l=[],o=[];return t.forEach(n=>{(n.match(We)?l:o).push(n)}),{valid:l,invalid:o}}function ge(t,l,o){function n(){const a=t.pendingIcons;l.forEach(s=>{a&&a.delete(s),t.icons[s]||t.missing.add(s)})}if(o&&typeof o=="object")try{if(!Ke(t,o).length){n();return}}catch(a){console.error(a)}n(),ln(t)}function Le(t,l){t instanceof Promise?t.then(o=>{l(o)}).catch(()=>{l(null)}):l(t)}function cn(t,l){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(l).sort():t.iconsToLoad=l,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:o,prefix:n}=t,a=t.iconsToLoad;if(delete t.iconsToLoad,!a||!a.length)return;const s=t.loadIcon;if(t.loadIcons&&(a.length>1||!s)){Le(t.loadIcons(a,n,o),g=>{ge(t,a,g)});return}if(s){a.forEach(g=>{const p=s(g,n,o);Le(p,v=>{const h=v?{prefix:n,icons:{[g]:v}}:null;ge(t,[g],h)})});return}const{valid:c,invalid:i}=sn(a);if(i.length&&ge(t,i,null),!c.length)return;const r=n.match(We)?Ee(o):null;if(!r){ge(t,c,null);return}r.prepare(o,n,c).forEach(g=>{an(o,g,p=>{ge(t,g.icons,p)})})}))}const rn=(t,l)=>{const o=en(t,!0,qe()),n=qt(o);if(!n.pending.length){let r=!0;return l&&setTimeout(()=>{r&&l(n.loaded,n.missing,n.pending,Oe)}),()=>{r=!1}}const a=Object.create(null),s=[];let c,i;return n.pending.forEach(r=>{const{provider:d,prefix:g}=r;if(g===i&&d===c)return;c=d,i=g,s.push(ie(d,g));const p=a[d]||(a[d]=Object.create(null));p[g]||(p[g]=[])}),n.pending.forEach(r=>{const{provider:d,prefix:g,name:p}=r,v=ie(d,g),h=v.pendingIcons||(v.pendingIcons=new Set);h.has(p)||(h.add(p),a[d][g].push(p))}),s.forEach(r=>{const d=a[r.provider][r.prefix];d.length&&cn(r,d)}),l?Jt(l,n,s):Oe};function dn(t,l){const o={...t};for(const n in l){const a=l[n],s=typeof a;n in Ze?(a===null||a&&(s==="string"||s==="number"))&&(o[n]=a):s===typeof o[n]&&(o[n]=n==="rotate"?a%4:a)}return o}const gn=/[\s,]+/;function fn(t,l){l.split(gn).forEach(o=>{switch(o.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function un(t,l=0){const o=t.replace(/^-?[0-9.]*/,"");function n(a){for(;a<0;)a+=4;return a%4}if(o===""){const a=parseInt(t);return isNaN(a)?0:n(a)}else if(o!==t){let a=0;switch(o){case"%":a=25;break;case"deg":a=90}if(a){let s=parseFloat(t.slice(0,t.length-o.length));return isNaN(s)?0:(s=s/a,s%1===0?n(s):0)}}return l}function mn(t,l){let o=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in l)o+=" "+n+'="'+l[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}function hn(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function pn(t){return"data:image/svg+xml,"+hn(t)}function vn(t){return'url("'+pn(t)+'")'}const Ye={...Qe,inline:!1},yn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},wn={display:"inline-block"},$e={backgroundColor:"currentColor"},tt={backgroundColor:"transparent"},_e={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Xe={webkitMask:$e,mask:$e,background:tt};for(const t in Xe){const l=Xe[t];for(const o in _e)l[t+o]=_e[o]}const pe={};["horizontal","vertical"].forEach(t=>{const l=t.slice(0,1)+"Flip";pe[t+"-flip"]=l,pe[t.slice(0,1)+"-flip"]=l,pe[t+"Flip"]=l});function Fe(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const He=(t,l)=>{const o=dn(Ye,l),n={...yn},a=l.mode||"svg",s={},c=l.style,i=typeof c=="object"&&!(c instanceof Array)?c:{};for(let u in l){const f=l[u];if(f!==void 0)switch(u){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":o[u]=f===!0||f==="true"||f===1;break;case"flip":typeof f=="string"&&fn(o,f);break;case"color":s.color=f;break;case"rotate":typeof f=="string"?o[u]=un(f):typeof f=="number"&&(o[u]=f);break;case"ariaHidden":case"aria-hidden":f!==!0&&f!=="true"&&delete n["aria-hidden"];break;default:{const y=pe[u];y?(f===!0||f==="true"||f===1)&&(o[y]=!0):Ye[u]===void 0&&(n[u]=f)}}}const r=zt(t,o),d=r.attributes;if(o.inline&&(s.verticalAlign="-0.125em"),a==="svg"){n.style={...s,...i},Object.assign(n,d);let u=0,f=l.id;return typeof f=="string"&&(f=f.replace(/-/g,"_")),n.innerHTML=Yt(r.body,f?()=>f+"ID"+u++:"iconifyVue"),e.h("svg",n)}const{body:g,width:p,height:v}=t,h=a==="mask"||(a==="bg"?!1:g.indexOf("currentColor")!==-1),x=mn(g,{...d,width:p+"",height:v+""});return n.style={...s,"--svg":vn(x),width:Fe(d.width),height:Fe(d.height),...wn,...h?$e:tt,...i},e.h("span",n)};qe(!0);_t("",Kt);if(typeof document<"u"&&typeof window<"u"){const t=window;if(t.IconifyPreload!==void 0){const l=t.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof l=="object"&&l!==null&&(l instanceof Array?l:[l]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!Bt(n))&&console.error(o)}catch{console.error(o)}})}if(t.IconifyProviders!==void 0){const l=t.IconifyProviders;if(typeof l=="object"&&l!==null)for(let o in l){const n="IconifyProviders["+o+"] is invalid.";try{const a=l[o];if(typeof a!="object"||!a||a.resources===void 0)continue;Xt(o,a)||console.error(n)}catch{console.error(n)}}}}const bn={...we,body:""},K=e.defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,l,o){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let n;if(typeof t!="string"||(n=ye(t,!1,!0))===null)return this.abortLoading(),null;let a=Mt(n);if(!a)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",a!==null&&(this._loadingIcon={name:t,abort:rn([n],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==t&&(this._name=t,l&&l(t)),o){a=Object.assign({},a);const c=o(a.body,n.name,n.prefix,n.provider);typeof c=="string"&&(a.body=c)}const s=["iconify"];return n.prefix!==""&&s.push("iconify--"+n.prefix),n.provider!==""&&s.push("iconify--"+n.provider),{data:a,classes:s}}},render(){this.counter;const t=this.$attrs,l=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad,t.customise):null;if(!l)return He(bn,t);let o=t;return l.classes&&(o={...t,class:(typeof t.class=="string"?t.class+" ":"")+l.classes.join(" ")}),He({...we,...l.data},o)}}),Cn=["disabled"],kn={key:0,class:"x-btn-icon"},Sn={key:1,class:"x-btn-loading"},xn={class:"x-btn-content"},En={key:2,class:"x-btn-icon"},$n=e.defineComponent({__name:"index",props:{type:{default:"default"},size:{default:"medium"},icon:{},iconRight:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},block:{type:Boolean,default:!1},round:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(),s=e.ref([]);let c=0;const i=e.computed(()=>["x-btn",`x-btn-${o.type}`,`x-btn-${o.size}`,{"x-btn-disabled":o.disabled,"x-btn-loading":o.loading,"x-btn-block":o.block,"x-btn-round":o.round,"x-btn-ghost":o.ghost}]);function r(g){!o.disabled&&!o.loading&&n("click",g)}function d(g){if(o.disabled||o.loading)return;const p=a.value;if(!p)return;const v=p.getBoundingClientRect(),h={id:c++,style:{left:`${g.clientX-v.left}px`,top:`${g.clientY-v.top}px`}};s.value.push(h),setTimeout(()=>{const x=s.value.findIndex(u=>u.id===h.id);x>-1&&s.value.splice(x,1)},600)}return(g,p)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(i.value),disabled:t.disabled||t.loading,onClick:r,onMousedown:d,ref_key:"buttonRef",ref:a},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,v=>(e.openBlock(),e.createElementBlock("span",{key:v.id,class:"x-btn-ripple",style:e.normalizeStyle(v.style)},null,4))),128)),t.icon&&!t.loading?(e.openBlock(),e.createElementBlock("span",kn,[e.createVNode(e.unref(K),{icon:t.icon},null,8,["icon"])])):e.createCommentVNode("",!0),t.loading?(e.openBlock(),e.createElementBlock("span",Sn,[e.createVNode(e.unref(K),{icon:"eos-icons:loading"})])):e.createCommentVNode("",!0),e.createElementVNode("span",xn,[e.renderSlot(g.$slots,"default",{},void 0,!0)]),t.iconRight&&!t.loading?(e.openBlock(),e.createElementBlock("span",En,[e.createVNode(e.unref(K),{icon:t.iconRight},null,8,["icon"])])):e.createCommentVNode("",!0)],42,Cn))}}),Z=(t,l)=>{const o=t.__vccOpts||t;for(const[n,a]of l)o[n]=a;return o},Me=Z($n,[["__scopeId","data-v-4ae56e67"]]),Mn={class:"x-card-container"},Pn=["onClick"],Bn={class:"relative p-2"},jn=["src","alt"],Vn={key:0,class:"absolute top-3 left-3"},Nn={class:"label-badge"},Dn={class:"product-info p-5 ml-5"},An={class:"text-sm lg:text-base text-gray-700 leading-relaxed line-clamp-2 mb-3"},Tn={class:"flex items-center justify-between gap-2"},zn={class:"text-base lg:text-lg font-bold text-[var(--x-color-primary)]"},In={key:0,class:"bi bi-heart text-gray-500"},On={key:1,class:"bi bi-heart-fill text-[#FE374F]"},Ln=["onClick"],Yn={class:"relative flex-shrink-0 p-2"},_n={class:"aspect-square bg-gray-100 rounded-lg overflow-hidden"},Xn=["src","alt"],Fn={key:0,class:"absolute top-3 left-3"},Hn={class:"label-badge"},Wn={class:"flex-1 flex flex-col justify-between product-info p-5 ml-5"},Rn={class:"text-sm lg:text-base text-gray-700 font-medium line-clamp-2 leading-relaxed mb-3"},Gn={class:"flex items-center justify-between gap-2 mt-auto"},Un={class:"text-base lg:text-lg font-bold text-[var(--x-color-primary)]"},Kn=e.defineComponent({__name:"index",props:{layout:{default:"grid"},products:{default:()=>[]},useMockData:{type:Boolean,default:!0},columns:{default:4}},emits:["productClick","like"],setup(t,{emit:l}){const o=t,n=l,a=[{id:"1",name:"北欧风简约陶瓷花瓶",image:"https://images.unsplash.com/photo-1578500494198-246f612d3b3d?w=400",price:"¥299",label:"热卖",isWish:!1},{id:"2",name:"手工编织棉麻抱枕套",image:"https://images.unsplash.com/photo-1584100936595-c0654b55a2e2?w=400",price:"¥89",label:"新品",isWish:!0},{id:"3",name:"实木原木置物架收纳架",image:"https://images.unsplash.com/photo-1595428774223-ef52624120d2?w=400",price:"¥459",label:"",isWish:!1},{id:"4",name:"ins风格桌面装饰摆件",image:"https://images.unsplash.com/photo-1513506003901-1e6a229e2d15?w=400",price:"¥129",label:"特价",isWish:!1},{id:"5",name:"现代简约台灯护眼学习灯",image:"https://images.unsplash.com/photo-1507473885765-e6ed057f782c?w=400",price:"¥399",label:"",isWish:!0},{id:"6",name:"北欧风格装饰画挂画",image:"https://images.unsplash.com/photo-1561214115-f2f134cc4912?w=400",price:"¥199",label:"热卖",isWish:!1},{id:"7",name:"多功能收纳盒桌面整理",image:"https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=400",price:"¥68",label:"",isWish:!1},{id:"8",name:"创意陶瓷马克杯咖啡杯",image:"https://images.unsplash.com/photo-1514228742587-6b1558fcca3d?w=400",price:"¥59",label:"新品",isWish:!1},{id:"9",name:"手工玻璃花瓶透明花器",image:"https://images.unsplash.com/photo-1523293182086-7651a899d37f?w=400",price:"¥179",label:"",isWish:!0},{id:"10",name:"日式和风招财猫摆件",image:"https://images.unsplash.com/photo-1615529182904-14819c35db37?w=400",price:"¥149",label:"热卖",isWish:!1},{id:"11",name:"北欧风木质挂钟客厅",image:"https://images.unsplash.com/photo-1563861826100-9cb868fdbe1c?w=400",price:"¥259",label:"",isWish:!1},{id:"12",name:"现代简约落地花架",image:"https://images.unsplash.com/photo-1545127398-14699f92334b?w=400",price:"¥329",label:"特价",isWish:!1}],s=e.ref([]),c=e.computed(()=>o.products&&o.products.length>0?o.products:s.value),i=e.computed(()=>{const p=Math.min(Math.max(o.columns||4,1),4),v={1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-2 md:grid-cols-3 lg:grid-cols-4"};return v[p]||v[4]}),r=e.computed(()=>{const p=Math.min(Math.max(o.columns||4,1),4),v={1:"columns-1",2:"columns-1 md:columns-2",3:"columns-2 md:columns-2 lg:columns-3",4:"columns-2 sm:columns-2 md:columns-3 lg:columns-4"};return v[p]||v[4]});e.onMounted(()=>{o.useMockData&&(!o.products||o.products.length===0)&&(s.value=a)});const d=p=>{n("productClick",p)},g=p=>{p.isWish=!p.isWish,n("like",p)};return(p,v)=>(e.openBlock(),e.createElementBlock("div",Mn,[t.layout==="masonry"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["masonry-layout",r.value,"gap-4 sm:gap-6"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,h=>(e.openBlock(),e.createElementBlock("div",{key:h.id+"-masonry",class:"mb-4 sm:mb-6 break-inside-avoid group cursor-pointer product-card",onClick:x=>d(h.id)},[e.createElementVNode("div",Bn,[e.createElementVNode("img",{src:h.image,alt:h.name,loading:"lazy",class:"w-full h-auto rounded-lg bg-gray-100 object-cover transition-transform duration-300 group-hover:scale-[1.01]"},null,8,jn),h.label?(e.openBlock(),e.createElementBlock("div",Vn,[e.createElementVNode("span",Nn,e.toDisplayString(h.label),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Dn,[e.createElementVNode("h3",An,e.toDisplayString(h.name),1),e.createElementVNode("div",Tn,[e.createElementVNode("span",zn,e.toDisplayString(h.price),1),e.createVNode(Me,{onClick:e.withModifiers(x=>g(h),["stop"]),type:"text",size:"small",class:"like-button !min-w-0 !p-1"},{default:e.withCtx(()=>[h.isWish?(e.openBlock(),e.createElementBlock("i",On)):(e.openBlock(),e.createElementBlock("i",In))]),_:2},1032,["onClick"])])])],8,Pn))),128))],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["grid",i.value,"gap-4 lg:gap-6"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,h=>(e.openBlock(),e.createElementBlock("div",{key:h.id+"-grid",class:"h-full"},[e.createElementVNode("div",{class:"group cursor-pointer product-card h-full flex flex-col",onClick:x=>d(h.id)},[e.createElementVNode("div",Yn,[e.createElementVNode("div",_n,[e.createElementVNode("img",{src:h.image,alt:h.name,class:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300",loading:"lazy"},null,8,Xn)]),h.label?(e.openBlock(),e.createElementBlock("div",Fn,[e.createElementVNode("span",Hn,e.toDisplayString(h.label),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Wn,[e.createElementVNode("h3",Rn,e.toDisplayString(h.name),1),e.createElementVNode("div",Gn,[e.createElementVNode("span",Un,e.toDisplayString(h.price),1),e.createVNode(Me,{onClick:e.withModifiers(x=>g(h),["stop"]),type:"text",size:"small",class:"like-button !min-w-0 !p-1"},{default:e.withCtx(()=>[h.isWish?(e.openBlock(),e.createBlock(e.unref(K),{key:1,icon:"bi:heart-fill",class:"bi bi-heart-fill text-[#FE374F]"})):(e.openBlock(),e.createBlock(e.unref(K),{key:0,icon:"bi:heart",class:"bi bi-heart text-gray-500"}))]),_:2},1032,["onClick"])])])],8,Ln)]))),128))],2))]))}}),qn=Z(Kn,[["__scopeId","data-v-aec5fd31"]]),Zn=[{name:"Afghanistan",code:"AF",flagEmoji:"🇦🇫",flagSvg:"https://flagcdn.com/af.svg",flagPng:"https://flagcdn.com/w40/af.png",phoneCode:"+93",phonelengthMAX:10},{name:"Åland Islands",code:"AX",flagEmoji:"🇦🇽",flagSvg:"https://flagcdn.com/ax.svg",flagPng:"https://flagcdn.com/w40/ax.png",phoneCode:"+358",phonelengthMAX:10},{name:"Albania",code:"AL",flagEmoji:"🇦🇱",flagSvg:"https://flagcdn.com/al.svg",flagPng:"https://flagcdn.com/w40/al.png",phoneCode:"+355",phonelengthMAX:10},{name:"Algeria",code:"DZ",flagEmoji:"🇩🇿",flagSvg:"https://flagcdn.com/dz.svg",flagPng:"https://flagcdn.com/w40/dz.png",phoneCode:"+213",phonelengthMAX:10},{name:"American Samoa",code:"AS",flagEmoji:"🇦🇸",flagSvg:"https://flagcdn.com/as.svg",flagPng:"https://flagcdn.com/w40/as.png",phoneCode:"+1684",phonelengthMAX:10},{name:"Andorra",code:"AD",flagEmoji:"🇦🇩",flagSvg:"https://flagcdn.com/ad.svg",flagPng:"https://flagcdn.com/w40/ad.png",phoneCode:"+376",phonelengthMAX:10},{name:"Angola",code:"AO",flagEmoji:"🇦🇴",flagSvg:"https://flagcdn.com/ao.svg",flagPng:"https://flagcdn.com/w40/ao.png",phoneCode:"+244",phonelengthMAX:10},{name:"Anguilla",code:"AI",flagEmoji:"🇦🇮",flagSvg:"https://flagcdn.com/ai.svg",flagPng:"https://flagcdn.com/w40/ai.png",phoneCode:"+1264",phonelengthMAX:10},{name:"Antarctica",code:"AQ",flagEmoji:"🇦🇶",flagSvg:"https://flagcdn.com/aq.svg",flagPng:"https://flagcdn.com/w40/aq.png",phoneCode:"+672",phonelengthMAX:10},{name:"Antigua and Barbuda",code:"AG",flagEmoji:"🇦🇬",flagSvg:"https://flagcdn.com/ag.svg",flagPng:"https://flagcdn.com/w40/ag.png",phoneCode:"+1268",phonelengthMAX:10},{name:"Argentina",code:"AR",flagEmoji:"🇦🇷",flagSvg:"https://flagcdn.com/ar.svg",flagPng:"https://flagcdn.com/w40/ar.png",phoneCode:"+54",phonelengthMAX:10},{name:"Armenia",code:"AM",flagEmoji:"🇦🇲",flagSvg:"https://flagcdn.com/am.svg",flagPng:"https://flagcdn.com/w40/am.png",phoneCode:"+374",phonelengthMAX:10},{name:"Aruba",code:"AW",flagEmoji:"🇦🇼",flagSvg:"https://flagcdn.com/aw.svg",flagPng:"https://flagcdn.com/w40/aw.png",phoneCode:"+297",phonelengthMAX:10},{name:"Australia",code:"AU",flagEmoji:"🇦🇺",flagSvg:"https://flagcdn.com/au.svg",flagPng:"https://flagcdn.com/w40/au.png",phoneCode:"+61",phonelengthMAX:10},{name:"Austria",code:"AT",flagEmoji:"🇦🇹",flagSvg:"https://flagcdn.com/at.svg",flagPng:"https://flagcdn.com/w40/at.png",phoneCode:"+43",phonelengthMAX:10},{name:"Azerbaijan",code:"AZ",flagEmoji:"🇦🇿",flagSvg:"https://flagcdn.com/az.svg",flagPng:"https://flagcdn.com/w40/az.png",phoneCode:"+994",phonelengthMAX:10},{name:"Bahamas",code:"BS",flagEmoji:"🇧🇸",flagSvg:"https://flagcdn.com/bs.svg",flagPng:"https://flagcdn.com/w40/bs.png",phoneCode:"+1242",phonelengthMAX:10},{name:"Bahrain",code:"BH",flagEmoji:"🇧🇭",flagSvg:"https://flagcdn.com/bh.svg",flagPng:"https://flagcdn.com/w40/bh.png",phoneCode:"+973",phonelengthMAX:10},{name:"Bangladesh",code:"BD",flagEmoji:"🇧🇩",flagSvg:"https://flagcdn.com/bd.svg",flagPng:"https://flagcdn.com/w40/bd.png",phoneCode:"+880",phonelengthMAX:10},{name:"Barbados",code:"BB",flagEmoji:"🇧🇧",flagSvg:"https://flagcdn.com/bb.svg",flagPng:"https://flagcdn.com/w40/bb.png",phoneCode:"+1246",phonelengthMAX:10},{name:"Belarus",code:"BY",flagEmoji:"🇧🇾",flagSvg:"https://flagcdn.com/by.svg",flagPng:"https://flagcdn.com/w40/by.png",phoneCode:"+375",phonelengthMAX:10},{name:"Belgium",code:"BE",flagEmoji:"🇧🇪",flagSvg:"https://flagcdn.com/be.svg",flagPng:"https://flagcdn.com/w40/be.png",phoneCode:"+32",phonelengthMAX:10},{name:"Belize",code:"BZ",flagEmoji:"🇧🇿",flagSvg:"https://flagcdn.com/bz.svg",flagPng:"https://flagcdn.com/w40/bz.png",phoneCode:"+501",phonelengthMAX:10},{name:"Benin",code:"BJ",flagEmoji:"🇧🇯",flagSvg:"https://flagcdn.com/bj.svg",flagPng:"https://flagcdn.com/w40/bj.png",phoneCode:"+229",phonelengthMAX:10},{name:"Bermuda",code:"BM",flagEmoji:"🇧🇲",flagSvg:"https://flagcdn.com/bm.svg",flagPng:"https://flagcdn.com/w40/bm.png",phoneCode:"+1441",phonelengthMAX:10},{name:"Bhutan",code:"BT",flagEmoji:"🇧🇹",flagSvg:"https://flagcdn.com/bt.svg",flagPng:"https://flagcdn.com/w40/bt.png",phoneCode:"+975",phonelengthMAX:10},{name:"Bolivia (Plurinational State of)",code:"BO",flagEmoji:"🇧🇴",flagSvg:"https://flagcdn.com/bo.svg",flagPng:"https://flagcdn.com/w40/bo.png",phoneCode:"+591",phonelengthMAX:10},{name:"Bonaire, Sint Eustatius and Saba",code:"BQ",flagEmoji:"🇧🇶",flagSvg:"https://flagcdn.com/bq.svg",flagPng:"https://flagcdn.com/w40/bq.png",phoneCode:"+5997",phonelengthMAX:10},{name:"Bosnia and Herzegovina",code:"BA",flagEmoji:"🇧🇦",flagSvg:"https://flagcdn.com/ba.svg",flagPng:"https://flagcdn.com/w40/ba.png",phoneCode:"+387",phonelengthMAX:10},{name:"Botswana",code:"BW",flagEmoji:"🇧🇼",flagSvg:"https://flagcdn.com/bw.svg",flagPng:"https://flagcdn.com/w40/bw.png",phoneCode:"+267",phonelengthMAX:10},{name:"Bouvet Island",code:"BV",flagEmoji:"🇧🇻",flagSvg:"https://flagcdn.com/bv.svg",flagPng:"https://flagcdn.com/w40/bv.png",phoneCode:"+55",phonelengthMAX:10},{name:"Brazil",code:"BR",flagEmoji:"🇧🇷",flagSvg:"https://flagcdn.com/br.svg",flagPng:"https://flagcdn.com/w40/br.png",phoneCode:"+55",phonelengthMAX:10},{name:"British Indian Ocean Territory",code:"IO",flagEmoji:"🇮🇴",flagSvg:"https://flagcdn.com/io.svg",flagPng:"https://flagcdn.com/w40/io.png",phoneCode:"+246",phonelengthMAX:10},{name:"Brunei Darussalam",code:"BN",flagEmoji:"🇧🇳",flagSvg:"https://flagcdn.com/bn.svg",flagPng:"https://flagcdn.com/w40/bn.png",phoneCode:"+673",phonelengthMAX:10},{name:"Bulgaria",code:"BG",flagEmoji:"🇧🇬",flagSvg:"https://flagcdn.com/bg.svg",flagPng:"https://flagcdn.com/w40/bg.png",phoneCode:"+359",phonelengthMAX:10},{name:"Burkina Faso",code:"BF",flagEmoji:"🇧🇫",flagSvg:"https://flagcdn.com/bf.svg",flagPng:"https://flagcdn.com/w40/bf.png",phoneCode:"+226",phonelengthMAX:10},{name:"Burundi",code:"BI",flagEmoji:"🇧🇮",flagSvg:"https://flagcdn.com/bi.svg",flagPng:"https://flagcdn.com/w40/bi.png",phoneCode:"+257",phonelengthMAX:10},{name:"Cabo Verde",code:"CV",flagEmoji:"🇨🇻",flagSvg:"https://flagcdn.com/cv.svg",flagPng:"https://flagcdn.com/w40/cv.png",phoneCode:"+238",phonelengthMAX:10},{name:"Cambodia",code:"KH",flagEmoji:"🇰🇭",flagSvg:"https://flagcdn.com/kh.svg",flagPng:"https://flagcdn.com/w40/kh.png",phoneCode:"+855",phonelengthMAX:10},{name:"Cameroon",code:"CM",flagEmoji:"🇨🇲",flagSvg:"https://flagcdn.com/cm.svg",flagPng:"https://flagcdn.com/w40/cm.png",phoneCode:"+237",phonelengthMAX:10},{name:"Canada",code:"CA",flagEmoji:"🇨🇦",flagSvg:"https://flagcdn.com/ca.svg",flagPng:"https://flagcdn.com/w40/ca.png",phoneCode:"+1",phonelengthMAX:10},{name:"Cayman Islands",code:"KY",flagEmoji:"🇰🇾",flagSvg:"https://flagcdn.com/ky.svg",flagPng:"https://flagcdn.com/w40/ky.png",phoneCode:"+1345",phonelengthMAX:10},{name:"Central African Republic",code:"CF",flagEmoji:"🇨🇫",flagSvg:"https://flagcdn.com/cf.svg",flagPng:"https://flagcdn.com/w40/cf.png",phoneCode:"+236",phonelengthMAX:10},{name:"Chad",code:"TD",flagEmoji:"🇹🇩",flagSvg:"https://flagcdn.com/td.svg",flagPng:"https://flagcdn.com/w40/td.png",phoneCode:"+235",phonelengthMAX:10},{name:"Chile",code:"CL",flagEmoji:"🇨🇱",flagSvg:"https://flagcdn.com/cl.svg",flagPng:"https://flagcdn.com/w40/cl.png",phoneCode:"+56",phonelengthMAX:10},{name:"China",code:"CN",flagEmoji:"🇨🇳",flagSvg:"https://flagcdn.com/cn.svg",flagPng:"https://flagcdn.com/w40/cn.png",phoneCode:"+86",phonelengthMAX:11},{name:"Christmas Island",code:"CX",flagEmoji:"🇨🇽",flagSvg:"https://flagcdn.com/cx.svg",flagPng:"https://flagcdn.com/w40/cx.png",phoneCode:"+61",phonelengthMAX:10},{name:"Cocos (Keeling) Islands",code:"CC",flagEmoji:"🇨🇨",flagSvg:"https://flagcdn.com/cc.svg",flagPng:"https://flagcdn.com/w40/cc.png",phoneCode:"+61",phonelengthMAX:10},{name:"Colombia",code:"CO",flagEmoji:"🇨🇴",flagSvg:"https://flagcdn.com/co.svg",flagPng:"https://flagcdn.com/w40/co.png",phoneCode:"+57",phonelengthMAX:10},{name:"Comoros",code:"KM",flagEmoji:"🇰🇲",flagSvg:"https://flagcdn.com/km.svg",flagPng:"https://flagcdn.com/w40/km.png",phoneCode:"+269",phonelengthMAX:10},{name:"Congo",code:"CG",flagEmoji:"🇨🇬",flagSvg:"https://flagcdn.com/cg.svg",flagPng:"https://flagcdn.com/w40/cg.png",phoneCode:"+242",phonelengthMAX:10},{name:"Congo, Democratic Republic of the",code:"CD",flagEmoji:"🇨🇩",flagSvg:"https://flagcdn.com/cd.svg",flagPng:"https://flagcdn.com/w40/cd.png",phoneCode:"+243",phonelengthMAX:10},{name:"Cook Islands",code:"CK",flagEmoji:"🇨🇰",flagSvg:"https://flagcdn.com/ck.svg",flagPng:"https://flagcdn.com/w40/ck.png",phoneCode:"+682",phonelengthMAX:10},{name:"Costa Rica",code:"CR",flagEmoji:"🇨🇷",flagSvg:"https://flagcdn.com/cr.svg",flagPng:"https://flagcdn.com/w40/cr.png",phoneCode:"+506",phonelengthMAX:10},{name:"Croatia",code:"HR",flagEmoji:"🇭🇷",flagSvg:"https://flagcdn.com/hr.svg",flagPng:"https://flagcdn.com/w40/hr.png",phoneCode:"+385",phonelengthMAX:10},{name:"Cuba",code:"CU",flagEmoji:"🇨🇺",flagSvg:"https://flagcdn.com/cu.svg",flagPng:"https://flagcdn.com/w40/cu.png",phoneCode:"+53",phonelengthMAX:10},{name:"Curaçao",code:"CW",flagEmoji:"🇨🇼",flagSvg:"https://flagcdn.com/cw.svg",flagPng:"https://flagcdn.com/w40/cw.png",phoneCode:"+5999",phonelengthMAX:10},{name:"Cyprus",code:"CY",flagEmoji:"🇨🇾",flagSvg:"https://flagcdn.com/cy.svg",flagPng:"https://flagcdn.com/w40/cy.png",phoneCode:"+357",phonelengthMAX:10},{name:"Czechia",code:"CZ",flagEmoji:"🇨🇿",flagSvg:"https://flagcdn.com/cz.svg",flagPng:"https://flagcdn.com/w40/cz.png",phoneCode:"+420",phonelengthMAX:10},{name:"Denmark",code:"DK",flagEmoji:"🇩🇰",flagSvg:"https://flagcdn.com/dk.svg",flagPng:"https://flagcdn.com/w40/dk.png",phoneCode:"+45",phonelengthMAX:10},{name:"Djibouti",code:"DJ",flagEmoji:"🇩🇯",flagSvg:"https://flagcdn.com/dj.svg",flagPng:"https://flagcdn.com/w40/dj.png",phoneCode:"+253",phonelengthMAX:10},{name:"Dominica",code:"DM",flagEmoji:"🇩🇲",flagSvg:"https://flagcdn.com/dm.svg",flagPng:"https://flagcdn.com/w40/dm.png",phoneCode:"+1767",phonelengthMAX:10},{name:"Dominican Republic",code:"DO",flagEmoji:"🇩🇴",flagSvg:"https://flagcdn.com/do.svg",flagPng:"https://flagcdn.com/w40/do.png",phoneCode:"+1809",phonelengthMAX:10},{name:"Ecuador",code:"EC",flagEmoji:"🇪🇨",flagSvg:"https://flagcdn.com/ec.svg",flagPng:"https://flagcdn.com/w40/ec.png",phoneCode:"+593",phonelengthMAX:10},{name:"Egypt",code:"EG",flagEmoji:"🇪🇬",flagSvg:"https://flagcdn.com/eg.svg",flagPng:"https://flagcdn.com/w40/eg.png",phoneCode:"+20",phonelengthMAX:10},{name:"El Salvador",code:"SV",flagEmoji:"🇸🇻",flagSvg:"https://flagcdn.com/sv.svg",flagPng:"https://flagcdn.com/w40/sv.png",phoneCode:"+503",phonelengthMAX:10},{name:"Equatorial Guinea",code:"GQ",flagEmoji:"🇬🇶",flagSvg:"https://flagcdn.com/gq.svg",flagPng:"https://flagcdn.com/w40/gq.png",phoneCode:"+240",phonelengthMAX:10},{name:"Eritrea",code:"ER",flagEmoji:"🇪🇷",flagSvg:"https://flagcdn.com/er.svg",flagPng:"https://flagcdn.com/w40/er.png",phoneCode:"+291",phonelengthMAX:10},{name:"Estonia",code:"EE",flagEmoji:"🇪🇪",flagSvg:"https://flagcdn.com/ee.svg",flagPng:"https://flagcdn.com/w40/ee.png",phoneCode:"+372",phonelengthMAX:10},{name:"Eswatini",code:"SZ",flagEmoji:"🇸🇿",flagSvg:"https://flagcdn.com/sz.svg",flagPng:"https://flagcdn.com/w40/sz.png",phoneCode:"+268",phonelengthMAX:10},{name:"Ethiopia",code:"ET",flagEmoji:"🇪🇹",flagSvg:"https://flagcdn.com/et.svg",flagPng:"https://flagcdn.com/w40/et.png",phoneCode:"+251",phonelengthMAX:10},{name:"Falkland Islands (Malvinas)",code:"FK",flagEmoji:"🇫🇰",flagSvg:"https://flagcdn.com/fk.svg",flagPng:"https://flagcdn.com/w40/fk.png",phoneCode:"+500",phonelengthMAX:10},{name:"Faroe Islands",code:"FO",flagEmoji:"🇫🇴",flagSvg:"https://flagcdn.com/fo.svg",flagPng:"https://flagcdn.com/w40/fo.png",phoneCode:"+298",phonelengthMAX:10},{name:"Fiji",code:"FJ",flagEmoji:"🇫🇯",flagSvg:"https://flagcdn.com/fj.svg",flagPng:"https://flagcdn.com/w40/fj.png",phoneCode:"+679",phonelengthMAX:10},{name:"Finland",code:"FI",flagEmoji:"🇫🇮",flagSvg:"https://flagcdn.com/fi.svg",flagPng:"https://flagcdn.com/w40/fi.png",phoneCode:"+358",phonelengthMAX:10},{name:"France",code:"FR",flagEmoji:"🇫🇷",flagSvg:"https://flagcdn.com/fr.svg",flagPng:"https://flagcdn.com/w40/fr.png",phoneCode:"+33",phonelengthMAX:10},{name:"French Guiana",code:"GF",flagEmoji:"🇬🇫",flagSvg:"https://flagcdn.com/gf.svg",flagPng:"https://flagcdn.com/w40/gf.png",phoneCode:"+594",phonelengthMAX:10},{name:"French Polynesia",code:"PF",flagEmoji:"🇵🇫",flagSvg:"https://flagcdn.com/pf.svg",flagPng:"https://flagcdn.com/w40/pf.png",phoneCode:"+689",phonelengthMAX:10},{name:"French Southern Territories",code:"TF",flagEmoji:"🇹🇫",flagSvg:"https://flagcdn.com/tf.svg",flagPng:"https://flagcdn.com/w40/tf.png",phoneCode:"+262",phonelengthMAX:10},{name:"Gabon",code:"GA",flagEmoji:"🇬🇦",flagSvg:"https://flagcdn.com/ga.svg",flagPng:"https://flagcdn.com/w40/ga.png",phoneCode:"+241",phonelengthMAX:10},{name:"Gambia",code:"GM",flagEmoji:"🇬🇲",flagSvg:"https://flagcdn.com/gm.svg",flagPng:"https://flagcdn.com/w40/gm.png",phoneCode:"+220",phonelengthMAX:10},{name:"Georgia",code:"GE",flagEmoji:"🇬🇪",flagSvg:"https://flagcdn.com/ge.svg",flagPng:"https://flagcdn.com/w40/ge.png",phoneCode:"+995",phonelengthMAX:10},{name:"Germany",code:"DE",flagEmoji:"🇩🇪",flagSvg:"https://flagcdn.com/de.svg",flagPng:"https://flagcdn.com/w40/de.png",phoneCode:"+49",phonelengthMAX:10},{name:"Ghana",code:"GH",flagEmoji:"🇬🇭",flagSvg:"https://flagcdn.com/gh.svg",flagPng:"https://flagcdn.com/w40/gh.png",phoneCode:"+233",phonelengthMAX:10},{name:"Gibraltar",code:"GI",flagEmoji:"🇬🇮",flagSvg:"https://flagcdn.com/gi.svg",flagPng:"https://flagcdn.com/w40/gi.png",phoneCode:"+350",phonelengthMAX:10},{name:"Greece",code:"GR",flagEmoji:"🇬🇷",flagSvg:"https://flagcdn.com/gr.svg",flagPng:"https://flagcdn.com/w40/gr.png",phoneCode:"+30",phonelengthMAX:10},{name:"Greenland",code:"GL",flagEmoji:"🇬🇱",flagSvg:"https://flagcdn.com/gl.svg",flagPng:"https://flagcdn.com/w40/gl.png",phoneCode:"+299",phonelengthMAX:10},{name:"Grenada",code:"GD",flagEmoji:"🇬🇩",flagSvg:"https://flagcdn.com/gd.svg",flagPng:"https://flagcdn.com/w40/gd.png",phoneCode:"+1473",phonelengthMAX:10},{name:"Guadeloupe",code:"GP",flagEmoji:"🇬🇵",flagSvg:"https://flagcdn.com/gp.svg",flagPng:"https://flagcdn.com/w40/gp.png",phoneCode:"+590",phonelengthMAX:10},{name:"Guam",code:"GU",flagEmoji:"🇬🇺",flagSvg:"https://flagcdn.com/gu.svg",flagPng:"https://flagcdn.com/w40/gu.png",phoneCode:"+1671",phonelengthMAX:10},{name:"Guatemala",code:"GT",flagEmoji:"🇬🇹",flagSvg:"https://flagcdn.com/gt.svg",flagPng:"https://flagcdn.com/w40/gt.png",phoneCode:"+502",phonelengthMAX:10},{name:"Guernsey",code:"GG",flagEmoji:"🇬🇬",flagSvg:"https://flagcdn.com/gg.svg",flagPng:"https://flagcdn.com/w40/gg.png",phoneCode:"+44",phonelengthMAX:10},{name:"Guinea",code:"GN",flagEmoji:"🇬🇳",flagSvg:"https://flagcdn.com/gn.svg",flagPng:"https://flagcdn.com/w40/gn.png",phoneCode:"+224",phonelengthMAX:10},{name:"Guinea-Bissau",code:"GW",flagEmoji:"🇬🇼",flagSvg:"https://flagcdn.com/gw.svg",flagPng:"https://flagcdn.com/w40/gw.png",phoneCode:"+245",phonelengthMAX:10},{name:"Guyana",code:"GY",flagEmoji:"🇬🇾",flagSvg:"https://flagcdn.com/gy.svg",flagPng:"https://flagcdn.com/w40/gy.png",phoneCode:"+592",phonelengthMAX:10},{name:"Haiti",code:"HT",flagEmoji:"🇭🇹",flagSvg:"https://flagcdn.com/ht.svg",flagPng:"https://flagcdn.com/w40/ht.png",phoneCode:"+509",phonelengthMAX:10},{name:"Heard Island and McDonald Islands",code:"HM",flagEmoji:"🇭🇲",flagSvg:"https://flagcdn.com/hm.svg",flagPng:"https://flagcdn.com/w40/hm.png",phoneCode:"+672"},{name:"Holy See",code:"VA",flagEmoji:"🇻🇦",flagSvg:"https://flagcdn.com/va.svg",flagPng:"https://flagcdn.com/w40/va.png",phoneCode:"+39"},{name:"Honduras",code:"HN",flagEmoji:"🇭🇳",flagSvg:"https://flagcdn.com/hn.svg",flagPng:"https://flagcdn.com/w40/hn.png",phoneCode:"+504"},{name:"Hong Kong",code:"HK",flagEmoji:"🇭🇰",flagSvg:"https://flagcdn.com/hk.svg",flagPng:"https://flagcdn.com/w40/hk.png",phoneCode:"+852"},{name:"Hungary",code:"HU",flagEmoji:"🇭🇺",flagSvg:"https://flagcdn.com/hu.svg",flagPng:"https://flagcdn.com/w40/hu.png",phoneCode:"+36"},{name:"Iceland",code:"IS",flagEmoji:"🇮🇸",flagSvg:"https://flagcdn.com/is.svg",flagPng:"https://flagcdn.com/w40/is.png",phoneCode:"+354"},{name:"India",code:"IN",flagEmoji:"🇮🇳",flagSvg:"https://flagcdn.com/in.svg",flagPng:"https://flagcdn.com/w40/in.png",phoneCode:"+91"},{name:"Indonesia",code:"ID",flagEmoji:"🇮🇩",flagSvg:"https://flagcdn.com/id.svg",flagPng:"https://flagcdn.com/w40/id.png",phoneCode:"+62"},{name:"Iran (Islamic Republic of)",code:"IR",flagEmoji:"🇮🇷",flagSvg:"https://flagcdn.com/ir.svg",flagPng:"https://flagcdn.com/w40/ir.png",phoneCode:"+98"},{name:"Iraq",code:"IQ",flagEmoji:"🇮🇶",flagSvg:"https://flagcdn.com/iq.svg",flagPng:"https://flagcdn.com/w40/iq.png",phoneCode:"+964"},{name:"Ireland",code:"IE",flagEmoji:"🇮🇪",flagSvg:"https://flagcdn.com/ie.svg",flagPng:"https://flagcdn.com/w40/ie.png",phoneCode:"+353"},{name:"Isle of Man",code:"IM",flagEmoji:"🇮🇲",flagSvg:"https://flagcdn.com/im.svg",flagPng:"https://flagcdn.com/w40/im.png",phoneCode:"+44"},{name:"Israel",code:"IL",flagEmoji:"🇮🇱",flagSvg:"https://flagcdn.com/il.svg",flagPng:"https://flagcdn.com/w40/il.png",phoneCode:"+972"},{name:"Italy",code:"IT",flagEmoji:"🇮🇹",flagSvg:"https://flagcdn.com/it.svg",flagPng:"https://flagcdn.com/w40/it.png",phoneCode:"+39"},{name:"Jamaica",code:"JM",flagEmoji:"🇯🇲",flagSvg:"https://flagcdn.com/jm.svg",flagPng:"https://flagcdn.com/w40/jm.png",phoneCode:"+1876"},{name:"Japan",code:"JP",flagEmoji:"🇯🇵",flagSvg:"https://flagcdn.com/jp.svg",flagPng:"https://flagcdn.com/w40/jp.png",phoneCode:"+81"},{name:"Jersey",code:"JE",flagEmoji:"🇯🇪",flagSvg:"https://flagcdn.com/je.svg",flagPng:"https://flagcdn.com/w40/je.png",phoneCode:"+44"},{name:"Jordan",code:"JO",flagEmoji:"🇯🇴",flagSvg:"https://flagcdn.com/jo.svg",flagPng:"https://flagcdn.com/w40/jo.png",phoneCode:"+962"},{name:"Kazakhstan",code:"KZ",flagEmoji:"🇰🇿",flagSvg:"https://flagcdn.com/kz.svg",flagPng:"https://flagcdn.com/w40/kz.png",phoneCode:"+7"},{name:"Kenya",code:"KE",flagEmoji:"🇰🇪",flagSvg:"https://flagcdn.com/ke.svg",flagPng:"https://flagcdn.com/w40/ke.png",phoneCode:"+254"},{name:"Kiribati",code:"KI",flagEmoji:"🇰🇮",flagSvg:"https://flagcdn.com/ki.svg",flagPng:"https://flagcdn.com/w40/ki.png",phoneCode:"+686"},{name:"Korea (Democratic People's Republic of)",code:"KP",flagEmoji:"🇰🇵",flagSvg:"https://flagcdn.com/kp.svg",flagPng:"https://flagcdn.com/w40/kp.png",phoneCode:"+850"},{name:"Korea, Republic of",code:"KR",flagEmoji:"🇰🇷",flagSvg:"https://flagcdn.com/kr.svg",flagPng:"https://flagcdn.com/w40/kr.png",phoneCode:"+82"},{name:"Kuwait",code:"KW",flagEmoji:"🇰🇼",flagSvg:"https://flagcdn.com/kw.svg",flagPng:"https://flagcdn.com/w40/kw.png",phoneCode:"+965"},{name:"Kyrgyzstan",code:"KG",flagEmoji:"🇰🇬",flagSvg:"https://flagcdn.com/kg.svg",flagPng:"https://flagcdn.com/w40/kg.png",phoneCode:"+996"},{name:"Lao People's Democratic Republic",code:"LA",flagEmoji:"🇱🇦",flagSvg:"https://flagcdn.com/la.svg",flagPng:"https://flagcdn.com/w40/la.png",phoneCode:"+856"},{name:"Latvia",code:"LV",flagEmoji:"🇱🇻",flagSvg:"https://flagcdn.com/lv.svg",flagPng:"https://flagcdn.com/w40/lv.png",phoneCode:"+371"},{name:"Lebanon",code:"LB",flagEmoji:"🇱🇧",flagSvg:"https://flagcdn.com/lb.svg",flagPng:"https://flagcdn.com/w40/lb.png",phoneCode:"+961"},{name:"Lesotho",code:"LS",flagEmoji:"🇱🇸",flagSvg:"https://flagcdn.com/ls.svg",flagPng:"https://flagcdn.com/w40/ls.png",phoneCode:"+266"},{name:"Liberia",code:"LR",flagEmoji:"🇱🇷",flagSvg:"https://flagcdn.com/lr.svg",flagPng:"https://flagcdn.com/w40/lr.png",phoneCode:"+231"},{name:"Libya",code:"LY",flagEmoji:"🇱🇾",flagSvg:"https://flagcdn.com/ly.svg",flagPng:"https://flagcdn.com/w40/ly.png",phoneCode:"+218"},{name:"Liechtenstein",code:"LI",flagEmoji:"🇱🇮",flagSvg:"https://flagcdn.com/li.svg",flagPng:"https://flagcdn.com/w40/li.png",phoneCode:"+423"},{name:"Lithuania",code:"LT",flagEmoji:"🇱🇹",flagSvg:"https://flagcdn.com/lt.svg",flagPng:"https://flagcdn.com/w40/lt.png",phoneCode:"+370"},{name:"Luxembourg",code:"LU",flagEmoji:"🇱🇺",flagSvg:"https://flagcdn.com/lu.svg",flagPng:"https://flagcdn.com/w40/lu.png",phoneCode:"+352"},{name:"Macao",code:"MO",flagEmoji:"🇲🇴",flagSvg:"https://flagcdn.com/mo.svg",flagPng:"https://flagcdn.com/w40/mo.png",phoneCode:"+853"},{name:"Madagascar",code:"MG",flagEmoji:"🇲🇬",flagSvg:"https://flagcdn.com/mg.svg",flagPng:"https://flagcdn.com/w40/mg.png",phoneCode:"+261"},{name:"Malawi",code:"MW",flagEmoji:"🇲🇼",flagSvg:"https://flagcdn.com/mw.svg",flagPng:"https://flagcdn.com/w40/mw.png",phoneCode:"+265"},{name:"Malaysia",code:"MY",flagEmoji:"🇲🇾",flagSvg:"https://flagcdn.com/my.svg",flagPng:"https://flagcdn.com/w40/my.png",phoneCode:"+60"},{name:"Maldives",code:"MV",flagEmoji:"🇲🇻",flagSvg:"https://flagcdn.com/mv.svg",flagPng:"https://flagcdn.com/w40/mv.png",phoneCode:"+960"},{name:"Mali",code:"ML",flagEmoji:"🇲🇱",flagSvg:"https://flagcdn.com/ml.svg",flagPng:"https://flagcdn.com/w40/ml.png",phoneCode:"+223"},{name:"Malta",code:"MT",flagEmoji:"🇲🇹",flagSvg:"https://flagcdn.com/mt.svg",flagPng:"https://flagcdn.com/w40/mt.png",phoneCode:"+356"},{name:"Marshall Islands",code:"MH",flagEmoji:"🇲🇭",flagSvg:"https://flagcdn.com/mh.svg",flagPng:"https://flagcdn.com/w40/mh.png",phoneCode:"+692"},{name:"Martinique",code:"MQ",flagEmoji:"🇲🇶",flagSvg:"https://flagcdn.com/mq.svg",flagPng:"https://flagcdn.com/w40/mq.png",phoneCode:"+596"},{name:"Mauritania",code:"MR",flagEmoji:"🇲🇷",flagSvg:"https://flagcdn.com/mr.svg",flagPng:"https://flagcdn.com/w40/mr.png",phoneCode:"+222"},{name:"Mauritius",code:"MU",flagEmoji:"🇲🇺",flagSvg:"https://flagcdn.com/mu.svg",flagPng:"https://flagcdn.com/w40/mu.png",phoneCode:"+230"},{name:"Mayotte",code:"YT",flagEmoji:"🇾🇹",flagSvg:"https://flagcdn.com/yt.svg",flagPng:"https://flagcdn.com/w40/yt.png",phoneCode:"+262"},{name:"Mexico",code:"MX",flagEmoji:"🇲🇽",flagSvg:"https://flagcdn.com/mx.svg",flagPng:"https://flagcdn.com/w40/mx.png",phoneCode:"+52"},{name:"Micronesia (Federated States of)",code:"FM",flagEmoji:"🇫🇲",flagSvg:"https://flagcdn.com/fm.svg",flagPng:"https://flagcdn.com/w40/fm.png",phoneCode:"+691"},{name:"Moldova, Republic of",code:"MD",flagEmoji:"🇲🇩",flagSvg:"https://flagcdn.com/md.svg",flagPng:"https://flagcdn.com/w40/md.png",phoneCode:"+373"},{name:"Monaco",code:"MC",flagEmoji:"🇲🇨",flagSvg:"https://flagcdn.com/mc.svg",flagPng:"https://flagcdn.com/w40/mc.png",phoneCode:"+377",phonelengthMAX:10},{name:"Mongolia",code:"MN",flagEmoji:"🇲🇳",flagSvg:"https://flagcdn.com/mn.svg",flagPng:"https://flagcdn.com/w40/mn.png",phoneCode:"+976"},{name:"Montenegro",code:"ME",flagEmoji:"🇲🇪",flagSvg:"https://flagcdn.com/me.svg",flagPng:"https://flagcdn.com/w40/me.png",phoneCode:"+382"},{name:"Montserrat",code:"MS",flagEmoji:"🇲🇸",flagSvg:"https://flagcdn.com/ms.svg",flagPng:"https://flagcdn.com/w40/ms.png",phoneCode:"+1664"},{name:"Morocco",code:"MA",flagEmoji:"🇲🇦",flagSvg:"https://flagcdn.com/ma.svg",flagPng:"https://flagcdn.com/w40/ma.png",phoneCode:"+212"},{name:"Mozambique",code:"MZ",flagEmoji:"🇲🇿",flagSvg:"https://flagcdn.com/mz.svg",flagPng:"https://flagcdn.com/w40/mz.png",phoneCode:"+258"},{name:"Myanmar",code:"MM",flagEmoji:"🇲🇲",flagSvg:"https://flagcdn.com/mm.svg",flagPng:"https://flagcdn.com/w40/mm.png",phoneCode:"+95"},{name:"Namibia",code:"NA",flagEmoji:"🇳🇦",flagSvg:"https://flagcdn.com/na.svg",flagPng:"https://flagcdn.com/w40/na.png",phoneCode:"+264"},{name:"Nauru",code:"NR",flagEmoji:"🇳🇷",flagSvg:"https://flagcdn.com/nr.svg",flagPng:"https://flagcdn.com/w40/nr.png",phoneCode:"+674"},{name:"Nepal",code:"NP",flagEmoji:"🇳🇵",flagSvg:"https://flagcdn.com/np.svg",flagPng:"https://flagcdn.com/w40/np.png",phoneCode:"+977"},{name:"Netherlands",code:"NL",flagEmoji:"🇳🇱",flagSvg:"https://flagcdn.com/nl.svg",flagPng:"https://flagcdn.com/w40/nl.png",phoneCode:"+31"},{name:"New Caledonia",code:"NC",flagEmoji:"🇳🇨",flagSvg:"https://flagcdn.com/nc.svg",flagPng:"https://flagcdn.com/w40/nc.png",phoneCode:"+687"},{name:"New Zealand",code:"NZ",flagEmoji:"🇳🇿",flagSvg:"https://flagcdn.com/nz.svg",flagPng:"https://flagcdn.com/w40/nz.png",phoneCode:"+64"},{name:"Nicaragua",code:"NI",flagEmoji:"🇳🇮",flagSvg:"https://flagcdn.com/ni.svg",flagPng:"https://flagcdn.com/w40/ni.png",phoneCode:"+505"},{name:"Niger",code:"NE",flagEmoji:"🇳🇪",flagSvg:"https://flagcdn.com/ne.svg",flagPng:"https://flagcdn.com/w40/ne.png",phoneCode:"+227"},{name:"Nigeria",code:"NG",flagEmoji:"🇳🇬",flagSvg:"https://flagcdn.com/ng.svg",flagPng:"https://flagcdn.com/w40/ng.png",phoneCode:"+234"},{name:"Niue",code:"NU",flagEmoji:"🇳🇺",flagSvg:"https://flagcdn.com/nu.svg",flagPng:"https://flagcdn.com/w40/nu.png",phoneCode:"+683"},{name:"Norfolk Island",code:"NF",flagEmoji:"🇳🇫",flagSvg:"https://flagcdn.com/nf.svg",flagPng:"https://flagcdn.com/w40/nf.png",phoneCode:"+672"},{name:"North Macedonia",code:"MK",flagEmoji:"🇲🇰",flagSvg:"https://flagcdn.com/mk.svg",flagPng:"https://flagcdn.com/w40/mk.png",phoneCode:"+389"},{name:"Northern Mariana Islands",code:"MP",flagEmoji:"🇲🇵",flagSvg:"https://flagcdn.com/mp.svg",flagPng:"https://flagcdn.com/w40/mp.png",phoneCode:"+1670"},{name:"Norway",code:"NO",flagEmoji:"🇳🇴",flagSvg:"https://flagcdn.com/no.svg",flagPng:"https://flagcdn.com/w40/no.png",phoneCode:"+47"},{name:"Oman",code:"OM",flagEmoji:"🇴🇲",flagSvg:"https://flagcdn.com/om.svg",flagPng:"https://flagcdn.com/w40/om.png",phoneCode:"+968"},{name:"Pakistan",code:"PK",flagEmoji:"🇵🇰",flagSvg:"https://flagcdn.com/pk.svg",flagPng:"https://flagcdn.com/w40/pk.png",phoneCode:"+92"},{name:"Palau",code:"PW",flagEmoji:"🇵🇼",flagSvg:"https://flagcdn.com/pw.svg",flagPng:"https://flagcdn.com/w40/pw.png",phoneCode:"+680"},{name:"Palestine, State of",code:"PS",flagEmoji:"🇵🇸",flagSvg:"https://flagcdn.com/ps.svg",flagPng:"https://flagcdn.com/w40/ps.png",phoneCode:"+970"},{name:"Panama",code:"PA",flagEmoji:"🇵🇦",flagSvg:"https://flagcdn.com/pa.svg",flagPng:"https://flagcdn.com/w40/pa.png",phoneCode:"+507"},{name:"Papua New Guinea",code:"PG",flagEmoji:"🇵🇬",flagSvg:"https://flagcdn.com/pg.svg",flagPng:"https://flagcdn.com/w40/pg.png",phoneCode:"+675"},{name:"Paraguay",code:"PY",flagEmoji:"🇵🇾",flagSvg:"https://flagcdn.com/py.svg",flagPng:"https://flagcdn.com/w40/py.png",phoneCode:"+595"},{name:"Peru",code:"PE",flagEmoji:"🇵🇪",flagSvg:"https://flagcdn.com/pe.svg",flagPng:"https://flagcdn.com/w40/pe.png",phoneCode:"+51"},{name:"Philippines",code:"PH",flagEmoji:"🇵🇭",flagSvg:"https://flagcdn.com/ph.svg",flagPng:"https://flagcdn.com/w40/ph.png",phoneCode:"+63"},{name:"Pitcairn",code:"PN",flagEmoji:"🇵🇳",flagSvg:"https://flagcdn.com/pn.svg",flagPng:"https://flagcdn.com/w40/pn.png",phoneCode:"+64"},{name:"Poland",code:"PL",flagEmoji:"🇵🇱",flagSvg:"https://flagcdn.com/pl.svg",flagPng:"https://flagcdn.com/w40/pl.png",phoneCode:"+48"},{name:"Portugal",code:"PT",flagEmoji:"🇵🇹",flagSvg:"https://flagcdn.com/pt.svg",flagPng:"https://flagcdn.com/w40/pt.png",phoneCode:"+351"},{name:"Puerto Rico",code:"PR",flagEmoji:"🇵🇷",flagSvg:"https://flagcdn.com/pr.svg",flagPng:"https://flagcdn.com/w40/pr.png",phoneCode:"+1787"},{name:"Qatar",code:"QA",flagEmoji:"🇶🇦",flagSvg:"https://flagcdn.com/qa.svg",flagPng:"https://flagcdn.com/w40/qa.png",phoneCode:"+974"},{name:"Réunion",code:"RE",flagEmoji:"🇷🇪",flagSvg:"https://flagcdn.com/re.svg",flagPng:"https://flagcdn.com/w40/re.png",phoneCode:"+262"},{name:"Romania",code:"RO",flagEmoji:"🇷🇴",flagSvg:"https://flagcdn.com/ro.svg",flagPng:"https://flagcdn.com/w40/ro.png",phoneCode:"+40"},{name:"Russian Federation",code:"RU",flagEmoji:"🇷🇺",flagSvg:"https://flagcdn.com/ru.svg",flagPng:"https://flagcdn.com/w40/ru.png",phoneCode:"+7"},{name:"Rwanda",code:"RW",flagEmoji:"🇷🇼",flagSvg:"https://flagcdn.com/rw.svg",flagPng:"https://flagcdn.com/w40/rw.png",phoneCode:"+250"},{name:"Saint Barthélemy",code:"BL",flagEmoji:"🇧🇱",flagSvg:"https://flagcdn.com/bl.svg",flagPng:"https://flagcdn.com/w40/bl.png",phoneCode:"+590"},{name:"Saint Helena, Ascension and Tristan da Cunha",code:"SH",flagEmoji:"🇸🇭",flagSvg:"https://flagcdn.com/sh.svg",flagPng:"https://flagcdn.com/w40/sh.png",phoneCode:"+290"},{name:"Saint Kitts and Nevis",code:"KN",flagEmoji:"🇰🇳",flagSvg:"https://flagcdn.com/kn.svg",flagPng:"https://flagcdn.com/w40/kn.png",phoneCode:"+1869"},{name:"Saint Lucia",code:"LC",flagEmoji:"🇱🇨",flagSvg:"https://flagcdn.com/lc.svg",flagPng:"https://flagcdn.com/w40/lc.png",phoneCode:"+1758"},{name:"Saint Martin (French part)",code:"MF",flagEmoji:"🇲🇫",flagSvg:"https://flagcdn.com/mf.svg",flagPng:"https://flagcdn.com/w40/mf.png",phoneCode:"+590"},{name:"Saint Pierre and Miquelon",code:"PM",flagEmoji:"🇵🇲",flagSvg:"https://flagcdn.com/pm.svg",flagPng:"https://flagcdn.com/w40/pm.png",phoneCode:"+508"},{name:"Saint Vincent and the Grenadines",code:"VC",flagEmoji:"🇻🇨",flagSvg:"https://flagcdn.com/vc.svg",flagPng:"https://flagcdn.com/w40/vc.png",phoneCode:"+1784"},{name:"Samoa",code:"WS",flagEmoji:"🇼🇸",flagSvg:"https://flagcdn.com/ws.svg",flagPng:"https://flagcdn.com/w40/ws.png",phoneCode:"+685"},{name:"San Marino",code:"SM",flagEmoji:"🇸🇲",flagSvg:"https://flagcdn.com/sm.svg",flagPng:"https://flagcdn.com/w40/sm.png",phoneCode:"+378"},{name:"Sao Tome and Principe",code:"ST",flagEmoji:"🇸🇹",flagSvg:"https://flagcdn.com/st.svg",flagPng:"https://flagcdn.com/w40/st.png",phoneCode:"+239"},{name:"Saudi Arabia",code:"SA",flagEmoji:"🇸🇦",flagSvg:"https://flagcdn.com/sa.svg",flagPng:"https://flagcdn.com/w40/sa.png",phoneCode:"+966"},{name:"Senegal",code:"SN",flagEmoji:"🇸🇳",flagSvg:"https://flagcdn.com/sn.svg",flagPng:"https://flagcdn.com/w40/sn.png",phoneCode:"+221"},{name:"Serbia",code:"RS",flagEmoji:"🇷🇸",flagSvg:"https://flagcdn.com/rs.svg",flagPng:"https://flagcdn.com/w40/rs.png",phoneCode:"+381"},{name:"Seychelles",code:"SC",flagEmoji:"🇸🇨",flagSvg:"https://flagcdn.com/sc.svg",flagPng:"https://flagcdn.com/w40/sc.png",phoneCode:"+248"},{name:"Sierra Leone",code:"SL",flagEmoji:"🇸🇱",flagSvg:"https://flagcdn.com/sl.svg",flagPng:"https://flagcdn.com/w40/sl.png",phoneCode:"+232"},{name:"Singapore",code:"SG",flagEmoji:"🇸🇬",flagSvg:"https://flagcdn.com/sg.svg",flagPng:"https://flagcdn.com/w40/sg.png",phoneCode:"+65"},{name:"Sint Maarten (Dutch part)",code:"SX",flagEmoji:"🇸🇽",flagSvg:"https://flagcdn.com/sx.svg",flagPng:"https://flagcdn.com/w40/sx.png",phoneCode:"+1721"},{name:"Slovakia",code:"SK",flagEmoji:"🇸🇰",flagSvg:"https://flagcdn.com/sk.svg",flagPng:"https://flagcdn.com/w40/sk.png",phoneCode:"+421"},{name:"Slovenia",code:"SI",flagEmoji:"🇸🇮",flagSvg:"https://flagcdn.com/si.svg",flagPng:"https://flagcdn.com/w40/si.png",phoneCode:"+386"},{name:"Solomon Islands",code:"SB",flagEmoji:"🇸🇧",flagSvg:"https://flagcdn.com/sb.svg",flagPng:"https://flagcdn.com/w40/sb.png",phoneCode:"+677"},{name:"Somalia",code:"SO",flagEmoji:"🇸🇴",flagSvg:"https://flagcdn.com/so.svg",flagPng:"https://flagcdn.com/w40/so.png",phoneCode:"+252"},{name:"South Africa",code:"ZA",flagEmoji:"🇿🇦",flagSvg:"https://flagcdn.com/za.svg",flagPng:"https://flagcdn.com/w40/za.png",phoneCode:"+27"},{name:"South Georgia and the South Sandwich Islands",code:"GS",flagEmoji:"🇬🇸",flagSvg:"https://flagcdn.com/gs.svg",flagPng:"https://flagcdn.com/w40/gs.png",phoneCode:"+500"},{name:"South Sudan",code:"SS",flagEmoji:"🇸🇸",flagSvg:"https://flagcdn.com/ss.svg",flagPng:"https://flagcdn.com/w40/ss.png",phoneCode:"+211"},{name:"Spain",code:"ES",flagEmoji:"🇪🇸",flagSvg:"https://flagcdn.com/es.svg",flagPng:"https://flagcdn.com/w40/es.png",phoneCode:"+34"},{name:"Sri Lanka",code:"LK",flagEmoji:"🇱🇰",flagSvg:"https://flagcdn.com/lk.svg",flagPng:"https://flagcdn.com/w40/lk.png",phoneCode:"+94"},{name:"Sudan",code:"SD",flagEmoji:"🇸🇩",flagSvg:"https://flagcdn.com/sd.svg",flagPng:"https://flagcdn.com/w40/sd.png",phoneCode:"+249"},{name:"Suriname",code:"SR",flagEmoji:"🇸🇷",flagSvg:"https://flagcdn.com/sr.svg",flagPng:"https://flagcdn.com/w40/sr.png",phoneCode:"+597"},{name:"Svalbard and Jan Mayen",code:"SJ",flagEmoji:"🇸🇯",flagSvg:"https://flagcdn.com/sj.svg",flagPng:"https://flagcdn.com/w40/sj.png",phoneCode:"+47"},{name:"Sweden",code:"SE",flagEmoji:"🇸🇪",flagSvg:"https://flagcdn.com/se.svg",flagPng:"https://flagcdn.com/w40/se.png",phoneCode:"+46"},{name:"Switzerland",code:"CH",flagEmoji:"🇨🇭",flagSvg:"https://flagcdn.com/ch.svg",flagPng:"https://flagcdn.com/w40/ch.png",phoneCode:"+41"},{name:"Syrian Arab Republic",code:"SY",flagEmoji:"🇸🇾",flagSvg:"https://flagcdn.com/sy.svg",flagPng:"https://flagcdn.com/w40/sy.png",phoneCode:"+963"},{name:"Taiwan, Province of China",code:"TW",flagEmoji:"🇹🇼",flagSvg:"https://flagcdn.com/tw.svg",flagPng:"https://flagcdn.com/w40/tw.png",phoneCode:"+886"},{name:"Tajikistan",code:"TJ",flagEmoji:"🇹🇯",flagSvg:"https://flagcdn.com/tj.svg",flagPng:"https://flagcdn.com/w40/tj.png",phoneCode:"+992"},{name:"Tanzania, United Republic of",code:"TZ",flagEmoji:"🇹🇿",flagSvg:"https://flagcdn.com/tz.svg",flagPng:"https://flagcdn.com/w40/tz.png",phoneCode:"+255"},{name:"Thailand",code:"TH",flagEmoji:"🇹🇭",flagSvg:"https://flagcdn.com/th.svg",flagPng:"https://flagcdn.com/w40/th.png",phoneCode:"+66"},{name:"Timor-Leste",code:"TL",flagEmoji:"🇹🇱",flagSvg:"https://flagcdn.com/tl.svg",flagPng:"https://flagcdn.com/w40/tl.png",phoneCode:"+670"},{name:"Togo",code:"TG",flagEmoji:"🇹🇬",flagSvg:"https://flagcdn.com/tg.svg",flagPng:"https://flagcdn.com/w40/tg.png",phoneCode:"+228"},{name:"Tokelau",code:"TK",flagEmoji:"🇹🇰",flagSvg:"https://flagcdn.com/tk.svg",flagPng:"https://flagcdn.com/w40/tk.png",phoneCode:"+690"},{name:"Tonga",code:"TO",flagEmoji:"🇹🇴",flagSvg:"https://flagcdn.com/to.svg",flagPng:"https://flagcdn.com/w40/to.png",phoneCode:"+676"},{name:"Trinidad and Tobago",code:"TT",flagEmoji:"🇹🇹",flagSvg:"https://flagcdn.com/tt.svg",flagPng:"https://flagcdn.com/w40/tt.png",phoneCode:"+1868"},{name:"Tunisia",code:"TN",flagEmoji:"🇹🇳",flagSvg:"https://flagcdn.com/tn.svg",flagPng:"https://flagcdn.com/w40/tn.png",phoneCode:"+216"},{name:"Turkey",code:"TR",flagEmoji:"🇹🇷",flagSvg:"https://flagcdn.com/tr.svg",flagPng:"https://flagcdn.com/w40/tr.png",phoneCode:"+90"},{name:"Turkmenistan",code:"TM",flagEmoji:"🇹🇲",flagSvg:"https://flagcdn.com/tm.svg",flagPng:"https://flagcdn.com/w40/tm.png",phoneCode:"+993"},{name:"Turks and Caicos Islands",code:"TC",flagEmoji:"🇹🇨",flagSvg:"https://flagcdn.com/tc.svg",flagPng:"https://flagcdn.com/w40/tc.png",phoneCode:"+1649"},{name:"Tuvalu",code:"TV",flagEmoji:"🇹🇻",flagSvg:"https://flagcdn.com/tv.svg",flagPng:"https://flagcdn.com/w40/tv.png",phoneCode:"+688"},{name:"Uganda",code:"UG",flagEmoji:"🇺🇬",flagSvg:"https://flagcdn.com/ug.svg",flagPng:"https://flagcdn.com/w40/ug.png",phoneCode:"+256"},{name:"Ukraine",code:"UA",flagEmoji:"🇺🇦",flagSvg:"https://flagcdn.com/ua.svg",flagPng:"https://flagcdn.com/w40/ua.png",phoneCode:"+380"},{name:"United Arab Emirates",code:"AE",flagEmoji:"🇦🇪",flagSvg:"https://flagcdn.com/ae.svg",flagPng:"https://flagcdn.com/w40/ae.png",phoneCode:"+971"},{name:"United Kingdom of Great Britain and Northern Ireland",code:"GB",flagEmoji:"🇬🇧",flagSvg:"https://flagcdn.com/gb.svg",flagPng:"https://flagcdn.com/w40/gb.png",phoneCode:"+44"},{name:"United States",code:"US",flagEmoji:"🇺🇸",flagSvg:"https://flagcdn.com/us.svg",flagPng:"https://flagcdn.com/w40/us.png",phoneCode:"+1"},{name:"United States Minor Outlying Islands",code:"UM",flagEmoji:"🇺🇲",flagSvg:"https://flagcdn.com/um.svg",flagPng:"https://flagcdn.com/w40/um.png",phoneCode:"+1"},{name:"Uruguay",code:"UY",flagEmoji:"🇺🇾",flagSvg:"https://flagcdn.com/uy.svg",flagPng:"https://flagcdn.com/w40/uy.png",phoneCode:"+598"},{name:"Uzbekistan",code:"UZ",flagEmoji:"🇺🇿",flagSvg:"https://flagcdn.com/uz.svg",flagPng:"https://flagcdn.com/w40/uz.png",phoneCode:"+998"},{name:"Vanuatu",code:"VU",flagEmoji:"🇻🇺",flagSvg:"https://flagcdn.com/vu.svg",flagPng:"https://flagcdn.com/w40/vu.png",phoneCode:"+678"},{name:"Venezuela (Bolivarian Republic of)",code:"VE",flagEmoji:"🇻🇪",flagSvg:"https://flagcdn.com/ve.svg",flagPng:"https://flagcdn.com/w40/ve.png",phoneCode:"+58"},{name:"Viet Nam",code:"VN",flagEmoji:"🇻🇳",flagSvg:"https://flagcdn.com/vn.svg",flagPng:"https://flagcdn.com/w40/vn.png",phoneCode:"+84"},{name:"Virgin Islands (British)",code:"VG",flagEmoji:"🇻🇬",flagSvg:"https://flagcdn.com/vg.svg",flagPng:"https://flagcdn.com/w40/vg.png",phoneCode:"+1284"},{name:"Virgin Islands (U.S.)",code:"VI",flagEmoji:"🇻🇮",flagSvg:"https://flagcdn.com/vi.svg",flagPng:"https://flagcdn.com/w40/vi.png",phoneCode:"+1340"},{name:"Wallis and Futuna",code:"WF",flagEmoji:"🇼🇫",flagSvg:"https://flagcdn.com/wf.svg",flagPng:"https://flagcdn.com/w40/wf.png",phoneCode:"+681"},{name:"Western Sahara",code:"EH",flagEmoji:"🇪🇭",flagSvg:"https://flagcdn.com/eh.svg",flagPng:"https://flagcdn.com/w40/eh.png",phoneCode:"+212"},{name:"Yemen",code:"YE",flagEmoji:"🇾🇪",flagSvg:"https://flagcdn.com/ye.svg",flagPng:"https://flagcdn.com/w40/ye.png",phoneCode:"+967"},{name:"Zambia",code:"ZM",flagEmoji:"🇿🇲",flagSvg:"https://flagcdn.com/zm.svg",flagPng:"https://flagcdn.com/w40/zm.png",phoneCode:"+260"},{name:"Zimbabwe",code:"ZW",flagEmoji:"🇿🇼",flagSvg:"https://flagcdn.com/zw.svg",flagPng:"https://flagcdn.com/w40/zw.png",phoneCode:"+263"}],Qn=["tabindex"],Jn={class:"flex items-center gap-2"},eo=["src","alt"],to={key:0,class:"absolute z-[9999] w-full mt-1 bg-white border border-gray-300 rounded-md shadow-lg max-h-60 overflow-y-auto",style:{position:"absolute"}},no=["onClick"],oo=["src","alt","onError"],ao=e.defineComponent({__name:"index",props:{modelValue:{default:""},placeholder:{default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},customClass:{default:""},autoDetectFromIp:{type:Boolean,default:!0},returnType:{default:"name"},priorityCountries:{default:()=>["US","CA","GB","DE","FR","JP","CN","AU"]},ipDetectUrl:{default:"https://ipinfo.io/json"},ipDetectMethod:{default:"GET"},ipDetectHeaders:{},ipDetectResponseParser:{}},emits:["update:modelValue","change","ip-detect-start","ip-detect-success","ip-detect-error"],setup(t,{expose:l,emit:o}){const n=t,a=o,s=e.ref(!1),c=e.ref(Zn),i=e.computed(()=>n.modelValue?c.value.find(u=>n.returnType==="code"?u.code===n.modelValue:u.name===n.modelValue):null),r=e.computed(()=>{const u=c.value.filter(w=>n.priorityCountries.includes(w.code)),f=c.value.filter(w=>!n.priorityCountries.includes(w.code)),y=u.sort((w,S)=>{const D=n.priorityCountries.indexOf(w.code),P=n.priorityCountries.indexOf(S.code);return D-P}),k=f.sort((w,S)=>w.name.localeCompare(S.name));return[...y,...k]}),d=()=>{n.disabled||(s.value=!s.value)},g=()=>{s.value=!1},p=u=>{if(u){const f=n.returnType==="code"?u.code:u.name;a("update:modelValue",f),a("change",f,u)}else a("update:modelValue","");g()},v=(u,f)=>{const y=u.target;f&&y.src===f.flagSvg?y.src=f.flagPng:i.value&&y.src===i.value.flagSvg&&(y.src=i.value.flagPng)},h=async()=>{if(!(!n.autoDetectFromIp||n.modelValue)){a("ip-detect-start");try{const u={method:n.ipDetectMethod,headers:{"Content-Type":"application/json",...n.ipDetectHeaders}},f=await fetch(n.ipDetectUrl,u);if(!f.ok)throw new Error(`HTTP error! status: ${f.status}`);const y=await f.json();let k;if(n.ipDetectResponseParser?k=n.ipDetectResponseParser(y):k=y.country||y.countryCode||y.country_code||"",k=k.toUpperCase(),!k)throw new Error("Country code not found in response");console.log("Auto-detected country from IP:",k),a("ip-detect-success",k);const w=c.value.find(S=>S.code===k);if(w){const S=n.returnType==="code"?w.code:w.name;a("update:modelValue",S),a("change",S,w)}else console.warn("Detected country code not found in country list:",k)}catch(u){const f=u instanceof Error?u:new Error(String(u));console.warn("Failed to detect country from IP:",f),a("ip-detect-error",f)}}},x=e.ref();return e.onMounted(async()=>{await e.nextTick(),n.autoDetectFromIp&&!n.modelValue&&await h();const u=f=>{x.value&&!x.value.contains(f.target)&&g()};document.addEventListener("click",u),e.onUnmounted(()=>{document.removeEventListener("click",u)})}),l({detectCountryFromIp:h,allCountries:e.readonly(c),sortedCountries:e.readonly(r)}),(u,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:x,class:"country-select-container relative"},[e.createElementVNode("div",{onClick:d,class:e.normalizeClass(["w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[#1a1a1a] focus:border-[#1a1a1a] transition-colors duration-200 cursor-pointer bg-white flex items-center justify-between",t.customClass,{"opacity-60 cursor-not-allowed":t.disabled}]),tabindex:t.disabled?-1:0,onKeydown:[e.withKeys(d,["enter"]),e.withKeys(d,["space"]),e.withKeys(g,["escape"])]},[e.createElementVNode("div",Jn,[i.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:i.value.flagSvg,alt:i.value.name,class:"w-5 h-4 object-cover rounded-sm",onError:v},null,40,eo)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass({"text-gray-500":!i.value&&t.placeholder})},e.toDisplayString(i.value?i.value.name:t.placeholder||"选择国家"),3)]),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["w-5 h-5 text-gray-400 transition-transform duration-200",{"rotate-180":s.value}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...f[0]||(f[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],42,Qn),s.value&&!t.disabled?(e.openBlock(),e.createElementBlock("div",to,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,y=>{var k;return e.openBlock(),e.createElementBlock("div",{key:y.code,onClick:w=>p(y),class:e.normalizeClass(["px-3 py-2 hover:bg-gray-50 cursor-pointer flex items-center gap-2 transition-colors",{"bg-gray-100":((k=i.value)==null?void 0:k.code)===y.code}])},[e.createElementVNode("img",{src:y.flagSvg,alt:y.name,class:"w-5 h-4 object-cover rounded-sm flex-shrink-0",onError:w=>v(w,y)},null,40,oo),e.createElementVNode("span",null,e.toDisplayString(y.name),1)],10,no)}),128))])):e.createCommentVNode("",!0),s.value&&!t.disabled?(e.openBlock(),e.createElementBlock("div",{key:1,class:"fixed inset-0 z-[9998]",onClick:g})):e.createCommentVNode("",!0)],512))}}),lo=Z(ao,[["__scopeId","data-v-08b31f1b"]]),so=["tabindex","aria-expanded","aria-labelledby"],co={class:"flex items-center gap-2 min-h-0 flex-1"},io={key:0,class:"text-gray-500"},ro={key:1,class:"flex flex-wrap gap-1"},go={key:0,class:"text-gray-900"},fo=["onClick"],uo={key:0,class:"absolute z-[9999] w-full mt-2 bg-white rounded-xl shadow-xl border border-gray-100/50 max-h-60 overflow-auto backdrop-blur-sm",role:"listbox"},mo={key:0,class:"p-3 border-b border-gray-50/80"},ho={class:"py-1"},po={key:0,class:"px-4 py-3 text-sm text-gray-400 text-center"},vo=["onClick","onKeydown","aria-selected"],yo={class:"flex items-center gap-3"},wo={key:0,class:"flex items-center"},bo={key:0,class:"bi bi-check text-[#1a1a1a] text-xs"},Co={key:1,class:"flex items-center"},ko={key:0,class:"w-1.5 h-1.5 bg-white rounded-full"},So={class:"flex-1"},xo=e.defineComponent({__name:"index",props:{modelValue:{},options:{},placeholder:{default:"请选择..."},multiple:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},labelKey:{default:"label"},valueKey:{default:"value"},noOptionsText:{default:"暂无选项"},clearable:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1},width:{default:"200px"}},emits:["update:modelValue","change","open","close"],setup(t,{expose:l,emit:o}){const n=t,a=o,s=e.ref(!1),c=e.ref(""),i=e.ref(),r=e.ref(),d=e.computed(()=>!n.searchable||!c.value?n.options:n.options.filter(m=>x(m).toLowerCase().includes(c.value.toLowerCase()))),g=e.computed(()=>n.multiple?null:n.options.find(m=>u(m)===n.modelValue)||null),p=e.computed(()=>n.multiple?Array.isArray(n.modelValue)?n.options.filter(m=>n.modelValue.includes(u(m))):[]:[]),v=e.computed(()=>n.multiple?p.value.length>0:g.value!==null),h=e.computed(()=>`select-label-${Math.random().toString(36).substr(2,9)}`),x=m=>typeof m=="object"?m[n.labelKey]:m,u=m=>typeof m=="object"?m[n.valueKey]:m,f=m=>{const E=u(m);return n.multiple?Array.isArray(n.modelValue)&&n.modelValue.includes(E):n.modelValue===E},y=m=>{if(m.disabled)return;const E=u(m);if(n.multiple){const b=Array.isArray(n.modelValue)?[...n.modelValue]:[],j=b.indexOf(E);j>-1?b.splice(j,1):b.push(E),a("update:modelValue",b),a("change",b)}else a("update:modelValue",E),a("change",E),D()},k=m=>{if(!n.multiple)return;const E=u(m),b=Array.isArray(n.modelValue)?[...n.modelValue]:[],j=b.indexOf(E);j>-1&&(b.splice(j,1),a("update:modelValue",b),a("change",b))},w=()=>{n.disabled||(s.value?D():S())},S=()=>{s.value=!0,a("open"),e.nextTick(()=>{n.searchable&&r.value&&r.value.focus()})},D=()=>{s.value=!1,c.value="",a("close")},P=m=>{i.value&&!i.value.contains(m.target)&&D()},B=m=>{if(!s.value)return;const E=d.value,b=E.findIndex(j=>f(j));switch(m.key){case"ArrowDown":m.preventDefault();break;case"ArrowUp":m.preventDefault();break;case"Enter":case" ":m.preventDefault(),b>=0&&E[b]&&y(E[b]);break}};return e.onMounted(()=>{document.addEventListener("click",P),document.addEventListener("keydown",B)}),e.onUnmounted(()=>{document.removeEventListener("click",P),document.removeEventListener("keydown",B)}),l({open:S,close:D,toggle:w}),(m,E)=>(e.openBlock(),e.createElementBlock("div",{class:"relative",style:e.normalizeStyle({width:t.width}),ref_key:"selectContainer",ref:i},[e.createElementVNode("div",{onClick:w,onKeydown:[e.withKeys(w,["enter"]),e.withKeys(w,["space"]),e.withKeys(D,["escape"])],class:e.normalizeClass(["flex items-center justify-between w-full px-4 py-1.5 text-sm bg-white rounded-md cursor-pointer transition-all duration-200 border ","focus:outline-none focus:ring-2 focus:ring-[#1a1a1a]/50 focus:ring-offset-1",{"shadow-sm hover:shadow-md border border-gray-200/60 hover:border-gray-300/80":!t.disabled&&!t.borderless,"shadow-sm hover:shadow-md":!t.disabled&&t.borderless,"bg-gray-50/50 cursor-not-allowed border border-gray-100":t.disabled,"ring-1 ring-[#1a1a1a]/50 border-[#1a1a1a]/50 shadow-md":s.value&&!t.borderless,"ring-1 ring-[#1a1a1a]/50 shadow-md":s.value&&t.borderless}]),tabindex:t.disabled?-1:0,role:"combobox","aria-expanded":s.value,"aria-haspopup":!0,"aria-labelledby":h.value},[e.createElementVNode("div",co,[t.placeholder&&!v.value?(e.openBlock(),e.createElementBlock("span",io,e.toDisplayString(t.placeholder),1)):(e.openBlock(),e.createElementBlock("div",ro,[t.multiple?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(p.value,b=>(e.openBlock(),e.createElementBlock("span",{key:u(b),class:"inline-flex items-center gap-1.5 px-2.5 py-1 text-xs bg-[#FFF] text-[#1a1a1a] rounded-full border border-[#1a1a1a]/50"},[e.createTextVNode(e.toDisplayString(x(b))+" ",1),e.createElementVNode("button",{onClick:e.withModifiers(j=>k(b),["stop"]),class:"rounded-full p-0.5 transition-colors duration-150",type:"button"},[...E[1]||(E[1]=[e.createElementVNode("i",{class:"bi bi-x text-xs text-[#1a1a1a]"},null,-1)])],8,fo)]))),128)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[g.value?(e.openBlock(),e.createElementBlock("span",go,e.toDisplayString(x(g.value)),1)):e.createCommentVNode("",!0)],64))]))]),e.createElementVNode("i",{class:e.normalizeClass(["bi text-gray-400 transition-transform duration-200 text-lg",{"bi-chevron-down":!s.value,"bi-chevron-up":s.value}])},null,2)],42,so),e.createVNode(e.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition ease-in duration-150","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",uo,[t.searchable?(e.openBlock(),e.createElementBlock("div",mo,[e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:r,"onUpdate:modelValue":E[0]||(E[0]=b=>c.value=b),type:"text",class:"w-full px-3 py-2 text-sm bg-gray-50/50 border border-gray-200/60 rounded-lg focus:outline-none focus:ring-1 focus:ring-[#1a1a1a]/50 focus:border-[#1a1a1a]/50 transition-all duration-200",placeholder:"搜索...",onKeydown:e.withKeys(D,["escape"])},null,544),[[e.vModelText,c.value]])])):e.createCommentVNode("",!0),e.createElementVNode("div",ho,[d.value.length===0?(e.openBlock(),e.createElementBlock("div",po,e.toDisplayString(t.noOptionsText),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,b=>(e.openBlock(),e.createElementBlock("div",{key:u(b),onClick:j=>y(b),onKeydown:[e.withKeys(j=>y(b),["enter"]),e.withKeys(j=>y(b),["space"])],class:e.normalizeClass(["px-4 py-3 text-sm cursor-pointer transition-all duration-150",{"bg-[#f2f2f2] text-[#1a1a1a] font-medium":f(b),"hover:bg-[#f2f2f2] text-gray-700":!f(b)}]),role:"option","aria-selected":f(b),tabindex:0},[e.createElementVNode("div",yo,[t.multiple?(e.openBlock(),e.createElementBlock("div",wo,[e.createElementVNode("div",{class:e.normalizeClass(["w-4 h-4 rounded border flex items-center justify-center transition-all duration-150",{"border-[#1a1a1a] text-white":f(b),"border-gray-300 bg-white":!f(b)}])},[f(b)?(e.openBlock(),e.createElementBlock("i",bo)):e.createCommentVNode("",!0)],2)])):(e.openBlock(),e.createElementBlock("div",Co,[e.createElementVNode("div",{class:e.normalizeClass(["w-4 h-4 rounded-full border-2 flex items-center justify-center transition-all duration-150",{"border-[#1a1a1a] bg-[#1a1a1a]":f(b),"border-gray-300 bg-white":!f(b)}])},[f(b)?(e.openBlock(),e.createElementBlock("div",ko)):e.createCommentVNode("",!0)],2)])),e.createElementVNode("span",So,e.toDisplayString(x(b)),1)])],42,vo))),128))])])):e.createCommentVNode("",!0)]),_:1})],4))}}),Eo=Z(xo,[["__scopeId","data-v-1f7381d8"]]),$o=["type","value","placeholder","disabled","readonly","required","maxlength","minlength","autocomplete"],Mo={key:2,class:"x-input-count"},Po=e.defineComponent({__name:"index",props:{modelValue:{},type:{default:"text"},placeholder:{default:""},label:{default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},maxlength:{},minlength:{},autocomplete:{default:"off"},error:{type:Boolean,default:!1},width:{default:"100%"}},emits:["update:modelValue","input","change","blur","focus","clear","keydown","keyup"],setup(t,{expose:l,emit:o}){const n=t,a=o,s=e.ref(),c=e.ref(!1),i=e.computed(()=>!!n.label),r=e.computed(()=>{const S=n.modelValue;return S!=null&&S!==""}),d=e.computed(()=>String(n.modelValue||"").length),g=S=>{const P=S.target.value;a("update:modelValue",P),a("input",P,S)},p=S=>{const P=S.target.value;a("change",P,S)},v=S=>{c.value=!1,a("blur",S)},h=S=>{c.value=!0,a("focus",S)},x=S=>{a("keydown",S)},u=S=>{a("keyup",S)},f=()=>{var S;a("update:modelValue",""),a("clear"),(S=s.value)==null||S.focus()};return l({focus:()=>{var S;(S=s.value)==null||S.focus()},blur:()=>{var S;(S=s.value)==null||S.blur()},select:()=>{var S;(S=s.value)==null||S.select()},ref:s}),(S,D)=>(e.openBlock(),e.createElementBlock("div",{class:"x-input-group",style:e.normalizeStyle({width:t.width})},[e.createElementVNode("input",{ref_key:"inputRef",ref:s,type:t.type,value:t.modelValue,placeholder:i.value?"":t.placeholder,disabled:t.disabled,readonly:t.readonly,required:t.required,maxlength:t.maxlength,minlength:t.minlength,autocomplete:t.autocomplete,class:e.normalizeClass(["x-input",{"x-input--disabled":t.disabled,"x-input--error":t.error,"x-input--clearable":t.clearable&&t.modelValue,"x-input--with-label":i.value}]),onInput:g,onBlur:v,onFocus:h,onKeydown:x,onKeyup:u,onChange:p},null,42,$o),t.label?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass(["x-input-label",{"x-input-label--active":c.value||r.value,"x-input-label--error":t.error}])},e.toDisplayString(t.label),3)):e.createCommentVNode("",!0),t.clearable&&t.modelValue&&!t.disabled?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"x-input-clear",onClick:f,onMousedown:D[0]||(D[0]=e.withModifiers(()=>{},["prevent"]))},[e.createVNode(e.unref(K),{icon:"bi:x-circle"})],32)):e.createCommentVNode("",!0),t.showWordLimit&&t.maxlength?(e.openBlock(),e.createElementBlock("div",Mo,e.toDisplayString(d.value)+" / "+e.toDisplayString(t.maxlength),1)):e.createCommentVNode("",!0)],4))}}),Bo=Z(Po,[["__scopeId","data-v-d7d149e3"]]),jo={class:"x-checkboxes"},Vo=["onClick"],No={class:"checkbox-wrapper"},Do=["checked","disabled","onChange"],Ao={class:"checkbox-custom"},To={key:0,class:"check-icon",viewBox:"0 0 24 24"},zo={class:"option-label"},Io=e.defineComponent({__name:"index",props:{options:{},modelValue:{default:()=>[]},placeholder:{default:"请选择选项"},maxSelections:{default:0},disabled:{type:Boolean,default:!1},layout:{default:"vertical"},columns:{default:3}},emits:["update:modelValue","change"],setup(t,{expose:l,emit:o}){const n=t,a=o,s=p=>n.modelValue&&n.modelValue.includes(p),c=p=>{if(n.disabled)return;const v=n.options.find(u=>u.value===p);if(v!=null&&v.disabled)return;const h=[...n.modelValue],x=h.indexOf(p);if(x>-1)h.splice(x,1);else{if(n.maxSelections>0&&h.length>=n.maxSelections)return;h.push(p)}a("update:modelValue",h),a("change",h)},i=p=>{!n.disabled&&!p.disabled&&c(p.value)};return l({clearAll:()=>{n.disabled||(a("update:modelValue",[]),a("change",[]))},selectAll:()=>{if(n.disabled)return;const v=n.options.filter(h=>!h.disabled).map(h=>h.value);n.maxSelections>0?(a("update:modelValue",v.slice(0,n.maxSelections)),a("change",v.slice(0,n.maxSelections))):(a("update:modelValue",v),a("change",v))},removeOption:p=>{c(p)}}),(p,v)=>(e.openBlock(),e.createElementBlock("div",jo,[e.createElementVNode("div",{class:e.normalizeClass(["options-container",[`options-container--${t.layout}`,{"options-container--disabled":t.disabled}]]),style:e.normalizeStyle(t.layout==="grid"?{gridTemplateColumns:`repeat(${t.columns}, 1fr)`}:{})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,h=>(e.openBlock(),e.createElementBlock("div",{key:h.value,class:e.normalizeClass(["option-item",{"option-selected":s(h.value),"option-disabled":t.disabled||h.disabled}]),onClick:x=>i(h)},[e.createElementVNode("div",No,[e.createElementVNode("input",{type:"checkbox",checked:s(h.value),disabled:t.disabled||h.disabled,onChange:e.withModifiers(x=>c(h.value),["stop"]),class:"checkbox-input"},null,40,Do),e.createElementVNode("div",Ao,[s(h.value)?(e.openBlock(),e.createElementBlock("svg",To,[...v[0]||(v[0]=[e.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1)])])):e.createCommentVNode("",!0)])]),e.createElementVNode("span",zo,e.toDisplayString(h.label),1)],10,Vo))),128))],6)]))}}),Oo=Z(Io,[["__scopeId","data-v-05984fcf"]]),Lo=["onClick","disabled","aria-expanded","aria-controls"],Yo={class:"accordion-title"},_o={class:"accordion-icon"},Xo=["id"],Fo={class:"accordion-body"},Ho=e.defineComponent({__name:"index",props:{items:{},allowMultiple:{type:Boolean,default:!1},defaultOpen:{default:()=>[]},bordered:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["change","item-click"],setup(t,{expose:l,emit:o}){const n=t,a=o,s=e.ref(new Set(n.defaultOpen)),c=e.ref({}),i=e.ref({}),r=(u,f)=>{u&&(i.value[f]=u,e.nextTick(()=>{const y=u.querySelector(".accordion-body");y&&(c.value[f]=y.scrollHeight)}))},d=u=>{var y;if(n.disabled||(y=n.items[u])!=null&&y.disabled)return;const f=s.value.has(u);n.allowMultiple?f?s.value.delete(u):s.value.add(u):f?s.value.clear():(s.value.clear(),s.value.add(u)),a("item-click",u,!f),a("change",Array.from(s.value))},g=u=>s.value.has(u);return e.watch(()=>n.defaultOpen,u=>{s.value=new Set(u)},{deep:!0}),e.watch(()=>n.items,()=>{e.nextTick(()=>{Object.keys(i.value).forEach(u=>{const f=parseInt(u),y=i.value[f];if(y){const k=y.querySelector(".accordion-body");k&&(c.value[f]=k.scrollHeight)}})})},{deep:!0}),l({openItem:u=>{var f;!n.disabled&&!((f=n.items[u])!=null&&f.disabled)&&(s.value.has(u)||(n.allowMultiple||s.value.clear(),s.value.add(u),a("change",Array.from(s.value))))},closeItem:u=>{s.value.has(u)&&(s.value.delete(u),a("change",Array.from(s.value)))},openAll:()=>{n.allowMultiple&&!n.disabled&&(n.items.forEach((u,f)=>{u.disabled||s.value.add(f)}),a("change",Array.from(s.value)))},closeAll:()=>{s.value.clear(),a("change",[])},toggle:d}),(u,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["accordion-container",{"accordion-container--bordered":t.bordered}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(y,k)=>(e.openBlock(),e.createElementBlock("div",{key:y.id||k,class:e.normalizeClass(["accordion-item",{"is-open":g(k),"is-disabled":t.disabled||y.disabled}])},[e.createElementVNode("button",{onClick:w=>d(k),class:"accordion-header",disabled:t.disabled||y.disabled,"aria-expanded":g(k),"aria-controls":`accordion-content-${k}`},[e.createElementVNode("span",Yo,e.toDisplayString(y.title),1),e.createElementVNode("div",_o,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["accordion-arrow",{"accordion-arrow--rotate":g(k)}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:"2"},[...f[0]||(f[0]=[e.createElementVNode("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"},null,-1)])],2))])],8,Lo),e.createElementVNode("div",{id:`accordion-content-${k}`,class:"accordion-content",style:e.normalizeStyle({maxHeight:g(k)?`${c.value[k]}px`:"0px"}),ref_for:!0,ref:w=>r(w,k)},[e.createElementVNode("div",Fo,e.toDisplayString(y.content),1)],12,Xo)],2))),128))],2))}}),Wo=Z(Ho,[["__scopeId","data-v-c5fef037"]]),Ro={class:"thumbnail-container-wrapper relative"},Go=["onMouseenter","onClick"],Uo=["src","alt"],Ko={class:"thumbnail-index"},qo=e.defineComponent({__name:"index",props:{images:{default:()=>[]},modelValue:{default:0},autoScroll:{type:Boolean,default:!0},showIndex:{type:Boolean,default:!0}},emits:["update:modelValue","change","hover"],setup(t,{expose:l,emit:o}){const n=t,a=o,s=e.ref(n.modelValue),c=e.ref(null),i=e.ref([]),r=e.ref(!1),d=e.ref(!1),g=e.ref(0),p=e.ref(!1),v=e.ref(!1),h=()=>{D()},x=(m,E)=>{m&&m instanceof HTMLElement&&(i.value[E]=m)},u=m=>{a("hover",m)},f=()=>{},y=m=>{s.value=m,a("update:modelValue",m),a("change",m),n.autoScroll&&e.nextTick(()=>{S(m),setTimeout(()=>{D()},300)})},k=()=>{if(!c.value)return;const m=c.value,E=m.clientWidth*.8;m.scrollBy({left:-E,behavior:"smooth"})},w=()=>{if(!c.value)return;const m=c.value,E=m.clientWidth*.8;m.scrollBy({left:E,behavior:"smooth"})},S=m=>{if(!c.value||i.value.length===0)return;const E=c.value,b=i.value[m];if(!b)return;const j=2,A=b.offsetWidth+8;let V=0;m>=j&&(V=(m-j)*A);const N=E.scrollWidth-E.clientWidth;V=Math.max(0,Math.min(V,N)),E.scrollTo({left:V,behavior:"smooth"})},D=()=>{if(!c.value)return;const m=c.value,E=m.scrollLeft,b=m.scrollWidth-m.clientWidth;r.value=E>0,d.value=E<b,b>0?g.value=E/b*100:g.value=0;const j=P();p.value=n.images.length>j&&r.value,v.value=n.images.length>j&&d.value},P=()=>{var _;if(!c.value||i.value.length===0)return 4;const E=c.value.clientWidth-32,L=(((_=i.value[0])==null?void 0:_.offsetWidth)||80)+12;return Math.floor(E/L)},B=m=>{m>=0&&m<n.images.length&&y(m)};return e.watch(()=>n.modelValue,m=>{m!==void 0&&m!==s.value&&(s.value=m,n.autoScroll&&e.nextTick(()=>{S(m)}))}),e.watch(()=>n.images,()=>{e.nextTick(()=>{D()})},{deep:!0}),e.onMounted(()=>{e.nextTick(()=>{D()})}),l({setCurrentIndex:B,scrollLeft:k,scrollRight:w,updateScrollState:D}),(m,E)=>(e.openBlock(),e.createElementBlock("div",Ro,[p.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:k,class:"scroll-arrow scroll-arrow-left","aria-label":"向左滚动"},[...E[1]||(E[1]=[e.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M15 18l-6-6 6-6"})],-1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"thumbnailContainer",ref:c,onScroll:h,class:"thumbnail-scroll-container"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.images,(b,j)=>(e.openBlock(),e.createElementBlock("div",{key:j,ref_for:!0,ref:L=>x(L,j),onMouseenter:L=>u(j),onMouseleave:E[0]||(E[0]=L=>f()),onClick:L=>y(j),class:e.normalizeClass(["thumbnail-item",{"thumbnail-item--active":s.value===j,"thumbnail-item--inactive":s.value!==j}])},[e.createElementVNode("img",{src:b,alt:`缩略图 ${j+1}`,class:e.normalizeClass(["thumbnail-image",{"thumbnail-image--active":s.value===j,"thumbnail-image--inactive":s.value!==j}])},null,10,Uo),e.createElementVNode("div",Ko,e.toDisplayString(j+1),1)],42,Go))),128))],544),v.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:w,class:"scroll-arrow scroll-arrow-right","aria-label":"向右滚动"},[...E[2]||(E[2]=[e.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M9 18l6-6-6-6"})],-1)])])):e.createCommentVNode("",!0)]))}}),Zo=Z(qo,[["__scopeId","data-v-809b97a6"]]),Qo=e.defineComponent({__name:"index",props:{width:{default:"100%"},height:{default:"1rem"},shape:{default:"rectangle"},animated:{type:Boolean,default:!0},loading:{type:Boolean,default:!0},class:{default:""},style:{default:()=>({})}},setup(t){const l=t,o=e.computed(()=>typeof l.width=="string"?l.width.includes("%")||l.width.includes("px")||l.width.includes("rem")?"":`w-${l.width}`:""),n=e.computed(()=>typeof l.height=="string"?l.height.includes("%")||l.height.includes("px")||l.height.includes("rem")?"":`h-${l.height}`:""),a=e.computed(()=>{switch(l.shape){case"circle":return"rounded-full";case"rounded":return"rounded-lg";default:return"rounded"}}),s=e.computed(()=>l.class),c=e.computed(()=>{const i={...l.style};return typeof l.width=="string"&&(l.width.includes("%")||l.width.includes("px")||l.width.includes("rem"))?i.width=l.width:typeof l.width=="number"&&(i.width=`${l.width}px`),typeof l.height=="string"&&(l.height.includes("%")||l.height.includes("px")||l.height.includes("rem"))?i.height=l.height:typeof l.height=="number"&&(i.height=`${l.height}px`),i});return(i,r)=>t.loading?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["bg-gray-200",[o.value,n.value,a.value,s.value,{"animate-pulse":t.animated}]]),style:e.normalizeStyle(c.value)},null,6)):e.renderSlot(i.$slots,"default",{key:1},void 0,!0)}}),Jo=Z(Qo,[["__scopeId","data-v-db4a4465"]]),ea={key:0,class:"modal-header"},ta={class:"modal-title"},na={class:"modal-body"},oa={key:1,class:"modal-footer"},aa={key:0,class:"loading-spinner"},la=e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1},title:{default:"提示"},width:{},size:{default:"medium"},fullscreen:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},showCancel:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},cancelText:{default:"取消"},confirmText:{default:"确定"},confirmLoading:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},escClosable:{type:Boolean,default:!0}},emits:["update:visible","close","cancel","confirm","opened","closed"],setup(t,{expose:l,emit:o}){const n=t,a=o,s=()=>{a("update:visible",!1),a("close")},c=()=>{a("cancel"),a("update:visible",!1)},i=()=>{a("confirm")},r=()=>{n.maskClosable&&s()},d=g=>{g.key==="Escape"&&n.escClosable&&n.visible&&s()};return e.watch(()=>n.visible,g=>{g?(document.addEventListener("keydown",d),document.body.style.overflow="hidden",a("opened")):(document.removeEventListener("keydown",d),document.body.style.overflow="",a("closed"))}),l({close:s}),(g,p)=>{const v=e.resolveComponent("XButton");return e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{"enter-active-class":"transition-opacity duration-300","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition-opacity duration-300","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:e.withCtx(()=>[t.visible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-mask",onClick:r},[e.createVNode(e.Transition,{"enter-active-class":"transition-all duration-300","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition-all duration-300","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:e.withCtx(()=>[t.visible?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["modal-container",[`modal-container--${t.size}`,{"modal-container--fullscreen":t.fullscreen}]]),style:e.normalizeStyle({width:t.width}),onClick:p[0]||(p[0]=e.withModifiers(()=>{},["stop"]))},[t.showHeader?(e.openBlock(),e.createElementBlock("div",ea,[e.renderSlot(g.$slots,"header",{},()=>[e.createElementVNode("h3",ta,e.toDisplayString(t.title),1)],!0),t.showClose?(e.openBlock(),e.createBlock(v,{key:0,size:"small",class:"modal-close",icon:"mdi:close",onClick:s,"aria-label":"关闭"},{default:e.withCtx(()=>[e.createVNode(e.unref(K),{icon:"mdi:close"})]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",na,[e.renderSlot(g.$slots,"default",{},void 0,!0)]),t.showFooter?(e.openBlock(),e.createElementBlock("div",oa,[e.renderSlot(g.$slots,"footer",{},()=>[t.showCancel?(e.openBlock(),e.createBlock(v,{key:0,size:"small",ghost:"",type:"danger",onClick:c},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelText),1)]),_:1})):e.createCommentVNode("",!0),t.showConfirm?(e.openBlock(),e.createBlock(v,{key:1,size:"small",ghost:"",type:"primary",onClick:i,disabled:t.confirmLoading},{default:e.withCtx(()=>[t.confirmLoading?(e.openBlock(),e.createElementBlock("span",aa)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.confirmText),1)]),_:1},8,["disabled"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0)]),_:3})])):e.createCommentVNode("",!0)]),_:3})])}}}),sa=Z(la,[["__scopeId","data-v-6b874658"]]),ca={class:"x-tooltip-trigger"},ia={class:"tooltip-label"},ra={class:"tooltip-text"},da={class:"tooltip-hover-text"},ga=e.defineComponent({__name:"index",props:{content:{},placement:{default:"top"},variant:{default:"basic"},label:{default:"Hover"},hoverText:{default:""}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.variant==="basic"?"x-tooltip-wrapper":"x-tooltip-rich-wrapper",t.variant==="rich"&&`rich-${t.placement}`])},[t.variant==="basic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",ca,[e.renderSlot(l.$slots,"default",{},void 0,!0)]),e.createElementVNode("div",{class:e.normalizeClass(["x-tooltip",`tooltip-${t.placement}`])},[e.createTextVNode(e.toDisplayString(t.content)+" ",1),e.createElementVNode("div",{class:e.normalizeClass(["tooltip-arrow",`arrow-${t.placement}`])},null,2)],2)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",ia,e.toDisplayString(t.label),1),e.createElementVNode("span",ra,e.toDisplayString(t.content),1),e.createElementVNode("span",da,e.toDisplayString(t.hoverText||t.label),1)],64))],2))}}),fa=Z(ga,[["__scopeId","data-v-6d3b782b"]]),ua={class:"rating"},ma=["title","onClick"],ha=["name","value","disabled","checked"],pa={key:0,class:"score-text"},va={key:1,class:"score-value"},ya=e.defineComponent({__name:"index",props:{modelValue:{default:0},maxStars:{default:5},size:{default:"medium"},disabled:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showValue:{type:Boolean,default:!1},texts:{default:()=>["极差","差","一般","好","极好"]},allowHalf:{type:Boolean,default:!1},color:{default:"#ffc73a"}},emits:["update:modelValue","change"],setup(t,{emit:l}){e.useCssVars(r=>({v45ed3bbe:r.color}));const o=t,n=l,a=e.computed(()=>Math.random().toString(36).substr(2,9)),s=r=>{o.disabled||(n("update:modelValue",r),n("change",r))},c=r=>o.texts&&o.texts[r-1]?`${r}星 - ${o.texts[r-1]}`:`${r}星`,i=()=>o.modelValue===0?"未评分":o.texts&&o.texts[o.modelValue-1]?o.texts[o.modelValue-1]:`${o.modelValue}星`;return(r,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["x-score",[`score-${t.size}`,{"score-disabled":t.disabled}]])},[e.createElementVNode("div",ua,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxStars,g=>(e.openBlock(),e.createElementBlock("label",{key:g,class:e.normalizeClass({"star-filled":g<=t.modelValue}),title:c(g),onClick:p=>s(g)},[e.createElementVNode("input",{type:"radio",name:`star-radio-${a.value}`,value:g,disabled:t.disabled,checked:t.modelValue===g,style:{display:"none"}},null,8,ha),d[0]||(d[0]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e.createElementVNode("path",{pathLength:"360",d:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"})],-1))],10,ma))),128))]),t.showText?(e.openBlock(),e.createElementBlock("div",pa,e.toDisplayString(i()),1)):e.createCommentVNode("",!0),t.showValue?(e.openBlock(),e.createElementBlock("div",va,e.toDisplayString(t.modelValue)+"/"+e.toDisplayString(t.maxStars),1)):e.createCommentVNode("",!0)],2))}}),wa=Z(ya,[["__scopeId","data-v-3cdb1a2c"]]),ba=["name","value","disabled","checked","onChange"],Ca={key:0,class:"radio-button"},ka={class:"radio-content"},Sa={key:0,class:"radio-icon"},xa={class:"radio-text"},Ea={class:"radio-label"},$a={key:0,class:"radio-description"},Ma={key:1,class:"payment-method-container"},Pa={class:"payment-content"},Ba={class:"payment-icon"},ja={class:"payment-label"},Va=["name","value","disabled","checked","onChange"],Na=e.defineComponent({__name:"index",props:{modelValue:{default:""},options:{default:()=>[]},size:{default:"medium"},disabled:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},name:{default:"radio-group"},direction:{default:"vertical"},variant:{default:"standard"},mode:{default:"default"}},emits:["update:modelValue","change"],setup(t,{emit:l}){const o=t,n=l,a=[{value:"google",label:"Google Pay",icon:"logos:google-pay"},{value:"apple",label:"Apple Pay",icon:"logos:apple-pay"},{value:"paypal",label:"Paypal",icon:"logos:paypal"},{value:"visa",label:"Credit Card",icon:"logos:visa"}],s=c=>{o.disabled||(n("update:modelValue",c),n("change",c))};return(c,i)=>t.variant==="standard"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["x-radio-group",[`radio-${t.size}`,`radio-${t.direction}`,`radio-${t.mode}`,{"radio-disabled":t.disabled}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,r=>(e.openBlock(),e.createElementBlock("label",{key:r.value,class:e.normalizeClass(["x-radio-item",[{"radio-item-checked":t.modelValue===r.value},{"radio-item-disabled":t.disabled||r.disabled}]])},[e.createElementVNode("input",{type:"radio",name:t.name,value:r.value,disabled:t.disabled||r.disabled,checked:t.modelValue===r.value,onChange:d=>s(r.value),class:"radio-input"},null,40,ba),t.mode==="default"?(e.openBlock(),e.createElementBlock("div",Ca,[...i[0]||(i[0]=[e.createElementVNode("div",{class:"radio-button-inner"},null,-1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",ka,[r.icon||t.showIcon?(e.openBlock(),e.createElementBlock("div",Sa,[e.renderSlot(c.$slots,"icon",{option:r},()=>[r.icon?(e.openBlock(),e.createBlock(e.unref(K),{key:0,icon:r.icon},null,8,["icon"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",xa,[e.createElementVNode("div",Ea,e.toDisplayString(r.label),1),r.description?(e.openBlock(),e.createElementBlock("div",$a,e.toDisplayString(r.description),1)):e.createCommentVNode("",!0)]),e.renderSlot(c.$slots,"content",{option:r},void 0,!0)])],2))),128))],2)):(e.openBlock(),e.createElementBlock("div",Ma,[i[1]||(i[1]=e.createElementVNode("p",{class:"payment-title"},"Payment method",-1)),i[2]||(i[2]=e.createElementVNode("p",{class:"payment-subtitle"},[e.createTextVNode(" This component is made by using "),e.createElementVNode("span",{class:"payment-highlight"},"`:has() pseudo-class`")],-1)),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,r=>e.createElementVNode("label",{key:r.value,class:e.normalizeClass(["payment-option",{"payment-option-checked":t.modelValue===r.value}])},[e.createElementVNode("div",Pa,[e.createElementVNode("div",Ba,[e.createVNode(e.unref(K),{icon:r.icon},null,8,["icon"])]),e.createElementVNode("p",ja,e.toDisplayString(r.label),1)]),e.createElementVNode("input",{type:"radio",name:t.name,value:r.value,disabled:t.disabled,checked:t.modelValue===r.value,onChange:d=>s(r.value),class:"payment-input"},null,40,Va)],2)),64))]))}}),Da=Z(Na,[["__scopeId","data-v-0b609d3b"]]);var J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ee(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var nt={exports:{}};(function(t,l){(function(o,n){t.exports=n()})(J,function(){var o=1e3,n=6e4,a=36e5,s="millisecond",c="second",i="minute",r="hour",d="day",g="week",p="month",v="quarter",h="year",x="date",u="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var V=["th","st","nd","rd"],N=A%100;return"["+A+(V[(N-20)%10]||V[N]||V[0])+"]"}},w=function(A,V,N){var z=String(A);return!z||z.length>=V?A:""+Array(V+1-z.length).join(N)+A},S={s:w,z:function(A){var V=-A.utcOffset(),N=Math.abs(V),z=Math.floor(N/60),C=N%60;return(V<=0?"+":"-")+w(z,2,"0")+":"+w(C,2,"0")},m:function A(V,N){if(V.date()<N.date())return-A(N,V);var z=12*(N.year()-V.year())+(N.month()-V.month()),C=V.clone().add(z,p),$=N-C<0,I=V.clone().add(z+($?-1:1),p);return+(-(z+(N-C)/($?C-I:I-C))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:p,y:h,w:g,d,D:x,h:r,m:i,s:c,ms:s,Q:v}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},D="en",P={};P[D]=k;var B="$isDayjsObject",m=function(A){return A instanceof L||!(!A||!A[B])},E=function A(V,N,z){var C;if(!V)return D;if(typeof V=="string"){var $=V.toLowerCase();P[$]&&(C=$),N&&(P[$]=N,C=$);var I=V.split("-");if(!C&&I.length>1)return A(I[0])}else{var O=V.name;P[O]=V,C=O}return!z&&C&&(D=C),C||!z&&D},b=function(A,V){if(m(A))return A.clone();var N=typeof V=="object"?V:{};return N.date=A,N.args=arguments,new L(N)},j=S;j.l=E,j.i=m,j.w=function(A,V){return b(A,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var L=function(){function A(N){this.$L=E(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[B]=!0}var V=A.prototype;return V.parse=function(N){this.$d=function(z){var C=z.date,$=z.utc;if(C===null)return new Date(NaN);if(j.u(C))return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){var I=C.match(f);if(I){var O=I[2]-1||0,X=(I[7]||"0").substring(0,3);return $?new Date(Date.UTC(I[1],O,I[3]||1,I[4]||0,I[5]||0,I[6]||0,X)):new Date(I[1],O,I[3]||1,I[4]||0,I[5]||0,I[6]||0,X)}}return new Date(C)}(N),this.init()},V.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},V.$utils=function(){return j},V.isValid=function(){return this.$d.toString()!==u},V.isSame=function(N,z){var C=b(N);return this.startOf(z)<=C&&C<=this.endOf(z)},V.isAfter=function(N,z){return b(N)<this.startOf(z)},V.isBefore=function(N,z){return this.endOf(z)<b(N)},V.$g=function(N,z,C){return j.u(N)?this[z]:this.set(C,N)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(N,z){var C=this,$=!!j.u(z)||z,I=j.p(N),O=function(G,R){var q=j.w(C.$u?Date.UTC(C.$y,R,G):new Date(C.$y,R,G),C);return $?q:q.endOf(d)},X=function(G,R){return j.w(C.toDate()[G].apply(C.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(R)),C)},H=this.$W,M=this.$M,T=this.$D,Y="set"+(this.$u?"UTC":"");switch(I){case h:return $?O(1,0):O(31,11);case p:return $?O(1,M):O(0,M+1);case g:var W=this.$locale().weekStart||0,U=(H<W?H+7:H)-W;return O($?T-U:T+(6-U),M);case d:case x:return X(Y+"Hours",0);case r:return X(Y+"Minutes",1);case i:return X(Y+"Seconds",2);case c:return X(Y+"Milliseconds",3);default:return this.clone()}},V.endOf=function(N){return this.startOf(N,!1)},V.$set=function(N,z){var C,$=j.p(N),I="set"+(this.$u?"UTC":""),O=(C={},C[d]=I+"Date",C[x]=I+"Date",C[p]=I+"Month",C[h]=I+"FullYear",C[r]=I+"Hours",C[i]=I+"Minutes",C[c]=I+"Seconds",C[s]=I+"Milliseconds",C)[$],X=$===d?this.$D+(z-this.$W):z;if($===p||$===h){var H=this.clone().set(x,1);H.$d[O](X),H.init(),this.$d=H.set(x,Math.min(this.$D,H.daysInMonth())).$d}else O&&this.$d[O](X);return this.init(),this},V.set=function(N,z){return this.clone().$set(N,z)},V.get=function(N){return this[j.p(N)]()},V.add=function(N,z){var C,$=this;N=Number(N);var I=j.p(z),O=function(M){var T=b($);return j.w(T.date(T.date()+Math.round(M*N)),$)};if(I===p)return this.set(p,this.$M+N);if(I===h)return this.set(h,this.$y+N);if(I===d)return O(1);if(I===g)return O(7);var X=(C={},C[i]=n,C[r]=a,C[c]=o,C)[I]||1,H=this.$d.getTime()+N*X;return j.w(H,this)},V.subtract=function(N,z){return this.add(-1*N,z)},V.format=function(N){var z=this,C=this.$locale();if(!this.isValid())return C.invalidDate||u;var $=N||"YYYY-MM-DDTHH:mm:ssZ",I=j.z(this),O=this.$H,X=this.$m,H=this.$M,M=C.weekdays,T=C.months,Y=C.meridiem,W=function(R,q,Q,te){return R&&(R[q]||R(z,$))||Q[q].slice(0,te)},U=function(R){return j.s(O%12||12,R,"0")},G=Y||function(R,q,Q){var te=R<12?"AM":"PM";return Q?te.toLowerCase():te};return $.replace(y,function(R,q){return q||function(Q){switch(Q){case"YY":return String(z.$y).slice(-2);case"YYYY":return j.s(z.$y,4,"0");case"M":return H+1;case"MM":return j.s(H+1,2,"0");case"MMM":return W(C.monthsShort,H,T,3);case"MMMM":return W(T,H);case"D":return z.$D;case"DD":return j.s(z.$D,2,"0");case"d":return String(z.$W);case"dd":return W(C.weekdaysMin,z.$W,M,2);case"ddd":return W(C.weekdaysShort,z.$W,M,3);case"dddd":return M[z.$W];case"H":return String(O);case"HH":return j.s(O,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return G(O,X,!0);case"A":return G(O,X,!1);case"m":return String(X);case"mm":return j.s(X,2,"0");case"s":return String(z.$s);case"ss":return j.s(z.$s,2,"0");case"SSS":return j.s(z.$ms,3,"0");case"Z":return I}return null}(R)||I.replace(":","")})},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(N,z,C){var $,I=this,O=j.p(z),X=b(N),H=(X.utcOffset()-this.utcOffset())*n,M=this-X,T=function(){return j.m(I,X)};switch(O){case h:$=T()/12;break;case p:$=T();break;case v:$=T()/3;break;case g:$=(M-H)/6048e5;break;case d:$=(M-H)/864e5;break;case r:$=M/a;break;case i:$=M/n;break;case c:$=M/o;break;default:$=M}return C?$:j.a($)},V.daysInMonth=function(){return this.endOf(p).$D},V.$locale=function(){return P[this.$L]},V.locale=function(N,z){if(!N)return this.$L;var C=this.clone(),$=E(N,z,!0);return $&&(C.$L=$),C},V.clone=function(){return j.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},A}(),_=L.prototype;return b.prototype=_,[["$ms",s],["$s",c],["$m",i],["$H",r],["$W",d],["$M",p],["$y",h],["$D",x]].forEach(function(A){_[A[1]]=function(V){return this.$g(V,A[0],A[1])}}),b.extend=function(A,V){return A.$i||(A(V,L,b),A.$i=!0),b},b.locale=E,b.isDayjs=m,b.unix=function(A){return b(1e3*A)},b.en=P[D],b.Ls=P,b.p={},b})})(nt);var ot=nt.exports;const F=ee(ot);var at={exports:{}};(function(t,l){(function(o,n){t.exports=n()})(J,function(){var o="minute",n=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,c,i){var r=c.prototype;i.utc=function(u){var f={date:u,utc:!0,args:arguments};return new c(f)},r.utc=function(u){var f=i(this.toDate(),{locale:this.$L,utc:!0});return u?f.add(this.utcOffset(),o):f},r.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var d=r.parse;r.parse=function(u){u.utc&&(this.$u=!0),this.$utils().u(u.$offset)||(this.$offset=u.$offset),d.call(this,u)};var g=r.init;r.init=function(){if(this.$u){var u=this.$d;this.$y=u.getUTCFullYear(),this.$M=u.getUTCMonth(),this.$D=u.getUTCDate(),this.$W=u.getUTCDay(),this.$H=u.getUTCHours(),this.$m=u.getUTCMinutes(),this.$s=u.getUTCSeconds(),this.$ms=u.getUTCMilliseconds()}else g.call(this)};var p=r.utcOffset;r.utcOffset=function(u,f){var y=this.$utils().u;if(y(u))return this.$u?0:y(this.$offset)?p.call(this):this.$offset;if(typeof u=="string"&&(u=function(D){D===void 0&&(D="");var P=D.match(n);if(!P)return null;var B=(""+P[0]).match(a)||["-",0,0],m=B[0],E=60*+B[1]+ +B[2];return E===0?0:m==="+"?E:-E}(u),u===null))return this;var k=Math.abs(u)<=16?60*u:u;if(k===0)return this.utc(f);var w=this.clone();if(f)return w.$offset=k,w.$u=!1,w;var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(w=this.local().add(k+S,o)).$offset=k,w.$x.$localOffset=S,w};var v=r.format;r.format=function(u){var f=u||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return v.call(this,f)},r.valueOf=function(){var u=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*u},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var h=r.toDate;r.toDate=function(u){return u==="s"&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var x=r.diff;r.diff=function(u,f,y){if(u&&this.$u===u.$u)return x.call(this,u,f,y);var k=this.local(),w=i(u).local();return x.call(k,w,f,y)}}})})(at);var Aa=at.exports;const Ta=ee(Aa);var lt={exports:{}};(function(t,l){(function(o,n){t.exports=n()})(J,function(){var o={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(a,s,c){var i,r=function(v,h,x){x===void 0&&(x={});var u=new Date(v),f=function(y,k){k===void 0&&(k={});var w=k.timeZoneName||"short",S=y+"|"+w,D=n[S];return D||(D=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:y,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:w}),n[S]=D),D}(h,x);return f.formatToParts(u)},d=function(v,h){for(var x=r(v,h),u=[],f=0;f<x.length;f+=1){var y=x[f],k=y.type,w=y.value,S=o[k];S>=0&&(u[S]=parseInt(w,10))}var D=u[3],P=D===24?0:D,B=u[0]+"-"+u[1]+"-"+u[2]+" "+P+":"+u[4]+":"+u[5]+":000",m=+v;return(c.utc(B).valueOf()-(m-=m%1e3))/6e4},g=s.prototype;g.tz=function(v,h){v===void 0&&(v=i);var x,u=this.utcOffset(),f=this.toDate(),y=f.toLocaleString("en-US",{timeZone:v}),k=Math.round((f-new Date(y))/1e3/60),w=15*-Math.round(f.getTimezoneOffset()/15)-k;if(!Number(w))x=this.utcOffset(0,h);else if(x=c(y,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(w,!0),h){var S=x.utcOffset();x=x.add(u-S,"minute")}return x.$x.$timezone=v,x},g.offsetName=function(v){var h=this.$x.$timezone||c.tz.guess(),x=r(this.valueOf(),h,{timeZoneName:v}).find(function(u){return u.type.toLowerCase()==="timezonename"});return x&&x.value};var p=g.startOf;g.startOf=function(v,h){if(!this.$x||!this.$x.$timezone)return p.call(this,v,h);var x=c(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return p.call(x,v,h).tz(this.$x.$timezone,!0)},c.tz=function(v,h,x){var u=x&&h,f=x||h||i,y=d(+c(),f);if(typeof v!="string")return c(v).tz(f);var k=function(P,B,m){var E=P-60*B*1e3,b=d(E,m);if(B===b)return[E,B];var j=d(E-=60*(b-B)*1e3,m);return b===j?[E,b]:[P-60*Math.min(b,j)*1e3,Math.max(b,j)]}(c.utc(v,u).valueOf(),y,f),w=k[0],S=k[1],D=c(w).utcOffset(S);return D.$x.$timezone=f,D},c.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},c.tz.setDefault=function(v){i=v}}})})(lt);var za=lt.exports;const Ia=ee(za);var st={exports:{}};(function(t,l){(function(o,n){t.exports=n()})(J,function(){return function(o,n,a){o=o||{};var s=n.prototype,c={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(d,g,p,v){return s.fromToBase(d,g,p,v)}a.en.relativeTime=c,s.fromToBase=function(d,g,p,v,h){for(var x,u,f,y=p.$locale().relativeTime||c,k=o.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=k.length,S=0;S<w;S+=1){var D=k[S];D.d&&(x=v?a(d).diff(p,D.d,!0):p.diff(d,D.d,!0));var P=(o.rounding||Math.round)(Math.abs(x));if(f=x>0,P<=D.r||!D.r){P<=1&&S>0&&(D=k[S-1]);var B=y[D.l];h&&(P=h(""+P)),u=typeof B=="string"?B.replace("%d",P):B(P,g,D.l,f);break}}if(g)return u;var m=f?y.future:y.past;return typeof m=="function"?m(u):m.replace("%s",u)},s.to=function(d,g){return i(d,g,this,!0)},s.from=function(d,g){return i(d,g,this)};var r=function(d){return d.$u?a.utc():a()};s.toNow=function(d){return this.to(r(this),d)},s.fromNow=function(d){return this.from(r(this),d)}}})})(st);var Oa=st.exports;const La=ee(Oa);var ct={exports:{}};(function(t,l){(function(o,n){t.exports=n()})(J,function(){var o,n,a=1e3,s=6e4,c=36e5,i=864e5,r=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=31536e6,g=2628e6,p=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,v={years:d,months:g,days:i,hours:c,minutes:s,seconds:a,milliseconds:1,weeks:6048e5},h=function(P){return P instanceof S},x=function(P,B,m){return new S(P,m,B.$l)},u=function(P){return n.p(P)+"s"},f=function(P){return P<0},y=function(P){return f(P)?Math.ceil(P):Math.floor(P)},k=function(P){return Math.abs(P)},w=function(P,B){return P?f(P)?{negative:!0,format:""+k(P)+B}:{negative:!1,format:""+P+B}:{negative:!1,format:""}},S=function(){function P(m,E,b){var j=this;if(this.$d={},this.$l=b,m===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return x(m*v[u(E)],this);if(typeof m=="number")return this.$ms=m,this.parseFromMilliseconds(),this;if(typeof m=="object")return Object.keys(m).forEach(function(A){j.$d[u(A)]=m[A]}),this.calMilliseconds(),this;if(typeof m=="string"){var L=m.match(p);if(L){var _=L.slice(2).map(function(A){return A!=null?Number(A):0});return this.$d.years=_[0],this.$d.months=_[1],this.$d.weeks=_[2],this.$d.days=_[3],this.$d.hours=_[4],this.$d.minutes=_[5],this.$d.seconds=_[6],this.calMilliseconds(),this}}return this}var B=P.prototype;return B.calMilliseconds=function(){var m=this;this.$ms=Object.keys(this.$d).reduce(function(E,b){return E+(m.$d[b]||0)*v[b]},0)},B.parseFromMilliseconds=function(){var m=this.$ms;this.$d.years=y(m/d),m%=d,this.$d.months=y(m/g),m%=g,this.$d.days=y(m/i),m%=i,this.$d.hours=y(m/c),m%=c,this.$d.minutes=y(m/s),m%=s,this.$d.seconds=y(m/a),m%=a,this.$d.milliseconds=m},B.toISOString=function(){var m=w(this.$d.years,"Y"),E=w(this.$d.months,"M"),b=+this.$d.days||0;this.$d.weeks&&(b+=7*this.$d.weeks);var j=w(b,"D"),L=w(this.$d.hours,"H"),_=w(this.$d.minutes,"M"),A=this.$d.seconds||0;this.$d.milliseconds&&(A+=this.$d.milliseconds/1e3,A=Math.round(1e3*A)/1e3);var V=w(A,"S"),N=m.negative||E.negative||j.negative||L.negative||_.negative||V.negative,z=L.format||_.format||V.format?"T":"",C=(N?"-":"")+"P"+m.format+E.format+j.format+z+L.format+_.format+V.format;return C==="P"||C==="-P"?"P0D":C},B.toJSON=function(){return this.toISOString()},B.format=function(m){var E=m||"YYYY-MM-DDTHH:mm:ss",b={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return E.replace(r,function(j,L){return L||String(b[j])})},B.as=function(m){return this.$ms/v[u(m)]},B.get=function(m){var E=this.$ms,b=u(m);return b==="milliseconds"?E%=1e3:E=b==="weeks"?y(E/v[b]):this.$d[b],E||0},B.add=function(m,E,b){var j;return j=E?m*v[u(E)]:h(m)?m.$ms:x(m,this).$ms,x(this.$ms+j*(b?-1:1),this)},B.subtract=function(m,E){return this.add(m,E,!0)},B.locale=function(m){var E=this.clone();return E.$l=m,E},B.clone=function(){return x(this.$ms,this)},B.humanize=function(m){return o().add(this.$ms,"ms").locale(this.$l).fromNow(!m)},B.valueOf=function(){return this.asMilliseconds()},B.milliseconds=function(){return this.get("milliseconds")},B.asMilliseconds=function(){return this.as("milliseconds")},B.seconds=function(){return this.get("seconds")},B.asSeconds=function(){return this.as("seconds")},B.minutes=function(){return this.get("minutes")},B.asMinutes=function(){return this.as("minutes")},B.hours=function(){return this.get("hours")},B.asHours=function(){return this.as("hours")},B.days=function(){return this.get("days")},B.asDays=function(){return this.as("days")},B.weeks=function(){return this.get("weeks")},B.asWeeks=function(){return this.as("weeks")},B.months=function(){return this.get("months")},B.asMonths=function(){return this.as("months")},B.years=function(){return this.get("years")},B.asYears=function(){return this.as("years")},P}(),D=function(P,B,m){return P.add(B.years()*m,"y").add(B.months()*m,"M").add(B.days()*m,"d").add(B.hours()*m,"h").add(B.minutes()*m,"m").add(B.seconds()*m,"s").add(B.milliseconds()*m,"ms")};return function(P,B,m){o=m,n=m().$utils(),m.duration=function(j,L){var _=m.locale();return x(j,{$l:_},L)},m.isDuration=h;var E=B.prototype.add,b=B.prototype.subtract;B.prototype.add=function(j,L){return h(j)?D(this,j,1):E.bind(this)(j,L)},B.prototype.subtract=function(j,L){return h(j)?D(this,j,-1):b.bind(this)(j,L)}}})})(ct);var Ya=ct.exports;const _a=ee(Ya);var it={exports:{}};(function(t,l){(function(o,n){t.exports=n()})(J,function(){return function(o,n){n.prototype.isSameOrAfter=function(a,s){return this.isSame(a,s)||this.isAfter(a,s)}}})})(it);var Xa=it.exports;const Fa=ee(Xa);var rt={exports:{}};(function(t,l){(function(o,n){t.exports=n()})(J,function(){return function(o,n){n.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})})(rt);var Ha=rt.exports;const Wa=ee(Ha);var dt={exports:{}};(function(t,l){(function(o,n){t.exports=n()})(J,function(){return function(o,n,a){n.prototype.isBetween=function(s,c,i,r){var d=a(s),g=a(c),p=(r=r||"()")[0]==="(",v=r[1]===")";return(p?this.isAfter(d,i):!this.isBefore(d,i))&&(v?this.isBefore(g,i):!this.isAfter(g,i))||(p?this.isBefore(d,i):!this.isAfter(d,i))&&(v?this.isAfter(g,i):!this.isBefore(g,i))}}})})(dt);var Ra=dt.exports;const Ga=ee(Ra);var gt={exports:{}};(function(t,l){(function(o,n){t.exports=n()})(J,function(){var o="week",n="year";return function(a,s,c){var i=s.prototype;i.week=function(r){if(r===void 0&&(r=null),r!==null)return this.add(7*(r-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var g=c(this).startOf(n).add(1,n).date(d),p=c(this).endOf(o);if(g.isBefore(p))return 1}var v=c(this).startOf(n).date(d).startOf(o).subtract(1,"millisecond"),h=this.diff(v,o,!0);return h<0?c(this).startOf("week").week():Math.ceil(h)},i.weeks=function(r){return r===void 0&&(r=null),this.week(r)}}})})(gt);var Ua=gt.exports;const Ka=ee(Ua);var ft={exports:{}};(function(t,l){(function(o,n){t.exports=n()})(J,function(){var o="day";return function(n,a,s){var c=function(d){return d.add(4-d.isoWeekday(),o)},i=a.prototype;i.isoWeekYear=function(){return c(this).year()},i.isoWeek=function(d){if(!this.$utils().u(d))return this.add(7*(d-this.isoWeek()),o);var g,p,v,h,x=c(this),u=(g=this.isoWeekYear(),p=this.$u,v=(p?s.utc:s)().year(g).startOf("year"),h=4-v.isoWeekday(),v.isoWeekday()>4&&(h+=7),v.add(h,o));return x.diff(u,"week")+1},i.isoWeekday=function(d){return this.$utils().u(d)?this.day()||7:this.day(this.day()%7?d:d-7)};var r=i.startOf;i.startOf=function(d,g){var p=this.$utils(),v=!!p.u(g)||g;return p.p(d)==="isoweek"?v?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):r.bind(this)(d,g)}}})})(ft);var qa=ft.exports;const Za=ee(qa);var ut={exports:{}};(function(t,l){(function(o,n){t.exports=n()})(J,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,s=/\d\d/,c=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,r={},d=function(f){return(f=+f)+(f>68?1900:2e3)},g=function(f){return function(y){this[f]=+y}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var k=y.match(/([+-]|\d\d)/g),w=60*k[1]+(+k[2]||0);return w===0?0:k[0]==="+"?-w:w}(f)}],v=function(f){var y=r[f];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(f,y){var k,w=r.meridiem;if(w){for(var S=1;S<=24;S+=1)if(f.indexOf(w(S,0,y))>-1){k=S>12;break}}else k=f===(y?"pm":"PM");return k},x={A:[i,function(f){this.afternoon=h(f,!1)}],a:[i,function(f){this.afternoon=h(f,!0)}],Q:[a,function(f){this.month=3*(f-1)+1}],S:[a,function(f){this.milliseconds=100*+f}],SS:[s,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[c,g("seconds")],ss:[c,g("seconds")],m:[c,g("minutes")],mm:[c,g("minutes")],H:[c,g("hours")],h:[c,g("hours")],HH:[c,g("hours")],hh:[c,g("hours")],D:[c,g("day")],DD:[s,g("day")],Do:[i,function(f){var y=r.ordinal,k=f.match(/\d+/);if(this.day=k[0],y)for(var w=1;w<=31;w+=1)y(w).replace(/\[|\]/g,"")===f&&(this.day=w)}],w:[c,g("week")],ww:[s,g("week")],M:[c,g("month")],MM:[s,g("month")],MMM:[i,function(f){var y=v("months"),k=(v("monthsShort")||y.map(function(w){return w.slice(0,3)})).indexOf(f)+1;if(k<1)throw new Error;this.month=k%12||k}],MMMM:[i,function(f){var y=v("months").indexOf(f)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,g("year")],YY:[s,function(f){this.year=d(f)}],YYYY:[/\d{4}/,g("year")],Z:p,ZZ:p};function u(f){var y,k;y=f,k=r&&r.formats;for(var w=(f=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,j,L){var _=L&&L.toUpperCase();return j||k[L]||o[L]||k[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,V,N){return V||N.slice(1)})})).match(n),S=w.length,D=0;D<S;D+=1){var P=w[D],B=x[P],m=B&&B[0],E=B&&B[1];w[D]=E?{regex:m,parser:E}:P.replace(/^\[|\]$/g,"")}return function(b){for(var j={},L=0,_=0;L<S;L+=1){var A=w[L];if(typeof A=="string")_+=A.length;else{var V=A.regex,N=A.parser,z=b.slice(_),C=V.exec(z)[0];N.call(j,C),b=b.replace(C,"")}}return function($){var I=$.afternoon;if(I!==void 0){var O=$.hours;I?O<12&&($.hours+=12):O===12&&($.hours=0),delete $.afternoon}}(j),j}}return function(f,y,k){k.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(d=f.parseTwoDigitYear);var w=y.prototype,S=w.parse;w.parse=function(D){var P=D.date,B=D.utc,m=D.args;this.$u=B;var E=m[1];if(typeof E=="string"){var b=m[2]===!0,j=m[3]===!0,L=b||j,_=m[2];j&&(_=m[2]),r=this.$locale(),!b&&_&&(r=k.Ls[_]),this.$d=function(z,C,$,I){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*z);var O=u(C)(z),X=O.year,H=O.month,M=O.day,T=O.hours,Y=O.minutes,W=O.seconds,U=O.milliseconds,G=O.zone,R=O.week,q=new Date,Q=M||(X||H?1:q.getDate()),te=X||q.getFullYear(),ne=0;X&&!H||(ne=H>0?H-1:q.getMonth());var oe,le=T||0,re=Y||0,se=W||0,ce=U||0;return G?new Date(Date.UTC(te,ne,Q,le,re,se,ce+60*G.offset*1e3)):$?new Date(Date.UTC(te,ne,Q,le,re,se,ce)):(oe=new Date(te,ne,Q,le,re,se,ce),R&&(oe=I(oe).week(R).toDate()),oe)}catch{return new Date("")}}(P,E,B,k),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),L&&P!=this.format(E)&&(this.$d=new Date("")),r={}}else if(E instanceof Array)for(var A=E.length,V=1;V<=A;V+=1){m[1]=E[V-1];var N=k.apply(this,m);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}V===A&&(this.$d=new Date(""))}else S.call(this,D)}}})})(ut);var Qa=ut.exports;const Ja=ee(Qa);var mt={exports:{}};(function(t,l){(function(o,n){t.exports=n()})(J,function(){return function(o,n){var a=n.prototype,s=a.format;a.format=function(c){var i=this,r=this.$locale();if(!this.isValid())return s.bind(this)(c);var d=this.$utils(),g=(c||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return r.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return r.ordinal(i.week(),"W");case"w":case"ww":return d.s(i.week(),p==="w"?1:2,"0");case"W":case"WW":return d.s(i.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return d.s(String(i.$H===0?24:i.$H),p==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return p}});return s.bind(this)(g)}}})})(mt);var el=mt.exports;const tl=ee(el);var nl={exports:{}};(function(t,l){(function(o,n){t.exports=n(ot)})(J,function(o){function n(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var a=n(o),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(c,i){return i==="W"?c+"周":c+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(c,i){var r=100*c+i;return r<600?"凌晨":r<900?"早上":r<1100?"上午":r<1300?"中午":r<1800?"下午":"晚上"}};return a.default.locale(s,null,!0),s})})(nl);F.extend(Ta);F.extend(Ia);F.extend(La);F.extend(_a);F.extend(Fa);F.extend(Wa);F.extend(Ga);F.extend(Ka);F.extend(Za);F.extend(Ja);F.extend(tl);function Ve(t={}){const{timezone:l="Asia/Shanghai",locale:o="zh-cn",defaultFormat:n="YYYY-MM-DD HH:mm:ss",parseStrict:a=!1,weekStart:s}=t;F.locale(o);const c=M=>(M==null?F():F(M)).tz(l).locale(o),i=(M,T)=>T?F(M,T,a).tz(l).locale(o):c(M),r=M=>i(M).utc(),d=M=>F(M).utc().tz(l).locale(o),g=e.ref(c()),p=()=>{g.value=c()},v=()=>c(),h=(M,T=n)=>i(M).format(T),x=(M,T)=>i(M,T),u=M=>i(M),f=(M,T,Y)=>i(M).isSame(i(T),Y),y=(M,T,Y)=>i(M).isAfter(i(T),Y),k=(M,T,Y)=>i(M).isBefore(i(T),Y),w=(M,T,Y)=>i(M).isSameOrAfter(i(T),Y),S=(M,T,Y)=>i(M).isSameOrBefore(i(T),Y),D=(M,T,Y,W,U)=>i(M).isBetween(i(T),i(Y),W,U),P=(M,T,Y)=>i(M).add(T,Y),B=(M,T,Y)=>i(M).subtract(T,Y),m=(M,T,Y,W)=>i(M).diff(i(T),Y,W),E=(M,T)=>i(M).startOf(T),b=(M,T)=>i(M).endOf(T),j=M=>i(M).from(c()),L=M=>i(M).to(c()),_=(M,T)=>i(M).from(i(T)),A=(M,T)=>i(M).to(i(T)),V=(M,T=c(),Y="millisecond")=>{const W=i(M).diff(i(T),"millisecond");return F.duration(Math.abs(W)).humanize()},N=M=>{const T=F.duration(M),Y=Math.floor(T.asDays()),W=T.hours(),U=T.minutes(),G=T.seconds();return{days:Y,hours:W,minutes:U,seconds:G}},z=(M,T,Y,W,U)=>{var ce;const G=c().year(M).month(T).date(1),R=G.startOf("month");G.endOf("month");const q=typeof s=="number"?s:((ce=F.Ls[o])==null?void 0:ce.weekStart)??0,Q=R.startOf("week").add(q,"day"),te=Q.isAfter(R)?Q.subtract(7,"day"):Q,ne=Y?i(Y):null,oe=W?i(W).startOf("day"):null,le=U?i(U).endOf("day"):null,re=c(),se=[];for(let ue=0;ue<42;ue++){const ae=te.add(ue,"day"),vt=ae.month()===T,yt=ae.isSame(re,"day"),wt=ne?ae.isSame(ne,"day"):!1,Ne=ae.day(),bt=Ne===0||Ne===6;let be=!1;oe&&ae.isBefore(oe,"day")&&(be=!0),le&&ae.isAfter(le,"day")&&(be=!0),se.push({date:ae,isCurrentMonth:vt,isToday:yt,isSelected:wt,isDisabled:be,isWeekend:bt})}return se},C=(M,T)=>{const Y=c().year(M).month(T).date(1),W=Y.endOf("month"),U=W.date(),G=Y.day(),R=W.day(),q=Math.ceil((G+U)/7);return{firstDay:Y,lastDay:W,daysInMonth:U,firstWeekday:G,lastWeekday:R,weeksInMonth:q}},$=()=>{const M=c();return{today:{start:M.startOf("day"),end:M.endOf("day")},yesterday:{start:M.subtract(1,"day").startOf("day"),end:M.subtract(1,"day").endOf("day")},thisWeek:{start:M.startOf("week"),end:M.endOf("week")},lastWeek:{start:M.subtract(1,"week").startOf("week"),end:M.subtract(1,"week").endOf("week")},thisMonth:{start:M.startOf("month"),end:M.endOf("month")},lastMonth:{start:M.subtract(1,"month").startOf("month"),end:M.subtract(1,"month").endOf("month")},thisYear:{start:M.startOf("year"),end:M.endOf("year")},lastYear:{start:M.subtract(1,"year").startOf("year"),end:M.subtract(1,"year").endOf("year")}}},I=(M,T)=>T?F(M,T,a).isValid():F(M).isValid(),O=(M,T)=>i(M).get(T),X=(M,T,Y)=>i(M).set(T,Y),H={date:"YYYY-MM-DD",time:"HH:mm:ss",datetime:"YYYY-MM-DD HH:mm:ss",dateTime:"YYYY-MM-DD HH:mm",month:"YYYY-MM",year:"YYYY",timestamp:"X",iso:"YYYY-MM-DDTHH:mm:ssZ"};return{now:e.computed(()=>g.value),updateNow:p,getCurrent:v,format:h,parse:x,create:u,isSame:f,isAfter:y,isBefore:k,isSameOrAfter:w,isSameOrBefore:S,isBetween:D,add:P,subtract:B,diff:m,startOf:E,endOf:b,fromNow:j,toNow:L,from:_,to:A,humanizeDiff:V,formatParts:N,getCalendarDates:z,getMonthInfo:C,getTimeRanges:$,isValid:I,getUnit:O,setUnit:X,formats:H,dayjs:M=>i(M),toUTC:r,fromUTC:d}}function ol(t={start:null,end:null},l="Asia/Shanghai"){const o=r=>(r==null?F():F(r)).tz(l),n=e.ref({start:t.start?o(t.start):null,end:t.end?o(t.end):null}),a=(r,d)=>{n.value={start:r?o(r):null,end:d?o(d):null}},s=()=>{n.value={start:null,end:null}},c=e.computed(()=>{const{start:r,end:d}=n.value;return!r||!d?!1:r.isBefore(d)||r.isSame(d)}),i=e.computed(()=>{if(!c.value)return null;const r=n.value.end.diff(n.value.start);return{ms:r,days:Math.floor(F.duration(r).asDays())}});return{range:e.computed(()=>n.value),setRange:a,clearRange:s,isValidRange:c,rangeDuration:i}}function al(t,l="Asia/Shanghai"){const o=g=>(g==null?F():F(g)).tz(l),n=e.ref(o(t)),a=e.ref(o()),s=e.ref(!1),c=e.computed(()=>{const g=n.value.diff(a.value);return g<=0?(s.value=!0,F.duration(0)):F.duration(g)}),i=()=>{a.value=o()},r=(g="HH:mm:ss")=>{if(s.value)return"00:00:00";const p=c.value,v=Math.floor(p.asHours()),h=p.minutes(),x=p.seconds();return g.replace("HH",String(v).padStart(2,"0")).replace("mm",String(h).padStart(2,"0")).replace("ss",String(x).padStart(2,"0"))},d=e.computed(()=>{const g=c.value;return{days:Math.floor(g.asDays()),hours:g.hours(),minutes:g.minutes(),seconds:g.seconds(),milliseconds:g.milliseconds()}});return{target:e.computed(()=>n.value),now:e.computed(()=>a.value),duration:e.computed(()=>c.value),parts:d,isExpired:e.computed(()=>s.value),updateNow:i,formatDuration:r}}const ll=["value","placeholder","disabled"],sl={class:"datetime-icon"},cl={class:"datetime-header"},il={class:"datetime-title"},rl={key:0,class:"datetime-mode-switch"},dl={key:1,class:"datetime-date-picker"},gl={class:"date-navigation"},fl={class:"current-month"},ul={class:"month-year"},ml={class:"weekdays"},hl={class:"date-grid"},pl=["onClick"],vl={key:2,class:"datetime-time-picker"},yl={class:"time-inputs"},wl={class:"time-input-group"},bl=["value"],Cl={class:"time-input-group"},kl=["value"],Sl={key:0,class:"time-separator"},xl={key:1,class:"time-input-group"},El=["value"],$l={class:"time-sliders"},Ml={class:"time-slider-group"},Pl=["value"],Bl={class:"slider-value"},jl={class:"time-slider-group"},Vl=["value"],Nl={class:"slider-value"},Dl={key:0,class:"time-slider-group"},Al=["value"],Tl={class:"slider-value"},zl={class:"datetime-footer"},Il=e.defineComponent({__name:"index",props:{modelValue:{default:null},mode:{default:"datetime"},size:{default:"medium"},disabled:{type:Boolean,default:!1},placeholder:{default:"请选择日期时间"},title:{default:"选择日期时间"},showSeconds:{type:Boolean,default:!1},minDate:{},maxDate:{},dateFormat:{default:"YYYY-MM-DD"},timeFormat:{default:"24"},showToday:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0},locale:{default:"zh-CN"}},emits:["update:modelValue","change","open","close"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(!1),s=e.ref("date"),c=e.ref(new Date().getFullYear()),i=e.ref(new Date().getMonth()),r=e.ref(null),d=e.ref(0),g=e.ref(0),p=e.ref(0),v=e.ref(!1),h=e.ref("panel-bottom"),x=e.ref(),{format:u,create:f,getCalendarDates:y,formats:k}=Ve({timezone:"Asia/Shanghai",locale:"zh-cn"}),w=e.computed(()=>o.locale==="zh-CN"?["日","一","二","三","四","五","六"]:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),S=e.computed(()=>{if(!r.value)return"";const C=f(r.value),$=o.showSeconds?`${d.value.toString().padStart(2,"0")}:${g.value.toString().padStart(2,"0")}:${p.value.toString().padStart(2,"0")}`:`${d.value.toString().padStart(2,"0")}:${g.value.toString().padStart(2,"0")}`;return o.mode==="date"?u(C,k.date):o.mode==="time"?$:`${u(C,k.date)} ${$}`}),D=e.computed(()=>o.mode==="date"?"mdi:calendar":o.mode==="time"?"mdi:clock":"mdi:calendar-clock"),P=e.computed(()=>{const C=r.value?f(r.value):void 0,$=o.minDate?f(o.minDate):void 0,I=o.maxDate?f(o.maxDate):void 0;return y(c.value,i.value,C,$,I)}),B=()=>{o.disabled||(a.value=!a.value,a.value?(N(),n("open")):n("close"))},m=()=>{a.value=!1,n("close")},E=()=>{i.value===0?(i.value=11,c.value--):i.value--},b=()=>{i.value===11?(i.value=0,c.value++):i.value++},j=C=>{C.isDisabled||(r.value=C.date.toDate(),o.mode==="date"&&_())},L=()=>{d.value=Math.max(0,Math.min(23,d.value)),g.value=Math.max(0,Math.min(59,g.value)),p.value=Math.max(0,Math.min(59,p.value))},_=()=>{if(o.mode==="date"&&r.value){const C=f(r.value),$=u(C,o.dateFormat);n("update:modelValue",$),n("change",$)}else if(o.mode==="time"){const C=o.showSeconds?`${d.value.toString().padStart(2,"0")}:${g.value.toString().padStart(2,"0")}:${p.value.toString().padStart(2,"0")}`:`${d.value.toString().padStart(2,"0")}:${g.value.toString().padStart(2,"0")}`;n("update:modelValue",C),n("change",C)}else if(o.mode==="datetime"&&r.value){const C=f(r.value).hour(d.value).minute(g.value).second(p.value).millisecond(0),$=o.showSeconds?`${d.value.toString().padStart(2,"0")}:${g.value.toString().padStart(2,"0")}:${p.value.toString().padStart(2,"0")}`:`${d.value.toString().padStart(2,"0")}:${g.value.toString().padStart(2,"0")}`,I=`${u(C,o.dateFormat)} ${$}`;n("update:modelValue",I),n("change",I)}m()},A=()=>{r.value=null,d.value=0,g.value=0,p.value=0,n("update:modelValue",null),n("change",null),m()},V=()=>{v.value=window.innerWidth<=768},N=()=>{if(!x.value)return;const C=x.value.getBoundingClientRect(),I=window.innerHeight-C.bottom,O=C.top;I>=400||I>O?h.value="panel-bottom":h.value="panel-top"};e.watch(()=>o.modelValue,C=>{if(C){const $=f(C);r.value=$.toDate(),d.value=$.hour(),g.value=$.minute(),p.value=$.second(),c.value=$.year(),i.value=$.month()}else r.value=null,d.value=0,g.value=0,p.value=0},{immediate:!0}),e.watch(()=>o.mode,C=>{C==="datetime"?s.value="date":s.value=C},{immediate:!0});const z=C=>{var $;a.value&&!(($=C.target)!=null&&$.closest(".x-datetime-picker"))&&m()};return e.onMounted(()=>{V(),window.addEventListener("resize",V),document.addEventListener("click",z)}),e.onUnmounted(()=>{window.removeEventListener("resize",V),document.removeEventListener("click",z)}),(C,$)=>{const I=e.resolveComponent("XButton");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["x-datetime-picker",[`datetime-${t.size}`,{"datetime-disabled":t.disabled}]])},[e.createElementVNode("div",{class:"datetime-input-wrapper",onClick:B},[e.createElementVNode("input",{ref_key:"inputRef",ref:x,type:"text",value:S.value,placeholder:t.placeholder,disabled:t.disabled,readonly:"",class:"datetime-input"},null,8,ll),e.createElementVNode("div",sl,[e.createVNode(e.unref(K),{icon:D.value},null,8,["icon"])])]),a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["datetime-panel",h.value])},[e.createElementVNode("div",cl,[e.createElementVNode("div",il,e.toDisplayString(t.title),1),e.createVNode(I,{icon:"mdi:close",size:"small",onClick:m},{default:e.withCtx(()=>[e.createVNode(e.unref(K),{icon:"mdi:close"})]),_:1})]),t.mode==="datetime"?(e.openBlock(),e.createElementBlock("div",rl,[e.createVNode(I,{size:"small",class:e.normalizeClass({active:s.value==="date"}),icon:"mdi:calendar",onClick:$[0]||($[0]=O=>s.value="date")},{default:e.withCtx(()=>[e.createVNode(e.unref(K),{icon:"mdi:calendar"}),$[2]||($[2]=e.createElementVNode("span",null,"日期",-1))]),_:1},8,["class"]),e.createVNode(I,{size:"small",icon:"mdi:clock",class:e.normalizeClass({active:s.value==="time"}),onClick:$[1]||($[1]=O=>s.value="time")},{default:e.withCtx(()=>[e.createVNode(e.unref(K),{icon:"mdi:clock"}),$[3]||($[3]=e.createElementVNode("span",null,"时间",-1))]),_:1},8,["class"])])):e.createCommentVNode("",!0),s.value==="date"||t.mode==="date"?(e.openBlock(),e.createElementBlock("div",dl,[e.createElementVNode("div",gl,[e.createVNode(I,{size:"small",onClick:E},{default:e.withCtx(()=>[e.createVNode(e.unref(K),{icon:"mdi:chevron-left"})]),_:1}),e.createElementVNode("div",fl,[e.createElementVNode("span",ul,e.toDisplayString(c.value)+"年"+e.toDisplayString(i.value+1)+"月",1)]),e.createVNode(I,{size:"small",onClick:b},{default:e.withCtx(()=>[e.createVNode(e.unref(K),{icon:"mdi:chevron-right"})]),_:1})]),e.createElementVNode("div",ml,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,O=>(e.openBlock(),e.createElementBlock("div",{key:O,class:"weekday"},e.toDisplayString(O),1))),128))]),e.createElementVNode("div",hl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,O=>(e.openBlock(),e.createElementBlock("div",{key:O.date.format("YYYY-MM-DD"),class:e.normalizeClass(["date-cell",{"date-other-month":!O.isCurrentMonth,"date-today":O.isToday,"date-selected":O.isSelected,"date-disabled":O.isDisabled}]),onClick:X=>j(O)},e.toDisplayString(O.date.date()),11,pl))),128))])])):e.createCommentVNode("",!0),s.value==="time"||t.mode==="time"?(e.openBlock(),e.createElementBlock("div",vl,[e.createElementVNode("div",yl,[e.createElementVNode("div",wl,[$[4]||($[4]=e.createElementVNode("label",{class:"time-label"},"时",-1)),e.createElementVNode("input",{value:d.value,type:"number",min:"0",max:"23",class:"time-input",onChange:L},null,40,bl)]),$[7]||($[7]=e.createElementVNode("div",{class:"time-separator"},":",-1)),e.createElementVNode("div",Cl,[$[5]||($[5]=e.createElementVNode("label",{class:"time-label"},"分",-1)),e.createElementVNode("input",{value:g.value,type:"number",min:"0",max:"59",class:"time-input",onChange:L},null,40,kl)]),t.showSeconds?(e.openBlock(),e.createElementBlock("div",Sl,":")):e.createCommentVNode("",!0),t.showSeconds?(e.openBlock(),e.createElementBlock("div",xl,[$[6]||($[6]=e.createElementVNode("label",{class:"time-label"},"秒",-1)),e.createElementVNode("input",{value:p.value,type:"number",min:"0",max:"59",class:"time-input",onChange:L},null,40,El)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",$l,[e.createElementVNode("div",Ml,[$[8]||($[8]=e.createElementVNode("label",{class:"slider-label"},"小时",-1)),e.createElementVNode("input",{value:d.value,type:"range",min:"0",max:"23",class:"time-slider",onInput:L},null,40,Pl),e.createElementVNode("span",Bl,e.toDisplayString(d.value.toString().padStart(2,"0")),1)]),e.createElementVNode("div",jl,[$[9]||($[9]=e.createElementVNode("label",{class:"slider-label"},"分钟",-1)),e.createElementVNode("input",{value:g.value,type:"range",min:"0",max:"59",class:"time-slider",onInput:L},null,40,Vl),e.createElementVNode("span",Nl,e.toDisplayString(g.value.toString().padStart(2,"0")),1)]),t.showSeconds?(e.openBlock(),e.createElementBlock("div",Dl,[$[10]||($[10]=e.createElementVNode("label",{class:"slider-label"},"秒钟",-1)),e.createElementVNode("input",{value:p.value,type:"range",min:"0",max:"59",step:"1",class:"time-slider",onInput:L},null,40,Al),e.createElementVNode("span",Tl,e.toDisplayString(p.value.toString().padStart(2,"0")),1)])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),e.createElementVNode("div",zl,[e.createVNode(I,{size:"small",ghost:"",type:"danger",onClick:A},{default:e.withCtx(()=>[e.createVNode(e.unref(K),{icon:"mdi:delete"}),$[11]||($[11]=e.createElementVNode("span",null,"清空",-1))]),_:1}),e.createVNode(I,{size:"small",ghost:"",type:"primary",onClick:_},{default:e.withCtx(()=>[e.createVNode(e.unref(K),{icon:"mdi:check"}),$[12]||($[12]=e.createElementVNode("span",null,"确定",-1))]),_:1})])],2)):e.createCommentVNode("",!0)],2)}}}),Ol=Z(Il,[["__scopeId","data-v-44868cc1"]]),ht=()=>{const t=()=>{let d=document.getElementById("xl-message-container");return d||(d=document.createElement("div"),d.id="xl-message-container",d.style.cssText=`
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");var Se=typeof document<"u"?document.currentScript:null;const Ke=/^[a-z0-9]+(-[a-z0-9]+)*$/,we=(l,u,t,a="")=>{const n=l.split(":");if(l.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;a=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const c=n.pop(),i=n.pop(),r={provider:n.length>0?n[0]:a,prefix:i,name:c};return u&&!he(r)?null:r}const o=n[0],s=o.split("-");if(s.length>1){const c={provider:a,prefix:s.shift(),name:s.join("-")};return u&&!he(c)?null:c}if(t&&a===""){const c={provider:a,prefix:"",name:o};return u&&!he(c,t)?null:c}return null},he=(l,u)=>l?!!((u&&l.prefix===""||l.prefix)&&l.name):!1,qe=Object.freeze({left:0,top:0,width:16,height:16}),ye=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ke=Object.freeze({...qe,...ye}),Me=Object.freeze({...ke,body:"",hidden:!1});function Cl(l,u){const t={};!l.hFlip!=!u.hFlip&&(t.hFlip=!0),!l.vFlip!=!u.vFlip&&(t.vFlip=!0);const a=((l.rotate||0)+(u.rotate||0))%4;return a&&(t.rotate=a),t}function ze(l,u){const t=Cl(l,u);for(const a in Me)a in ye?a in l&&!(a in t)&&(t[a]=ye[a]):a in u?t[a]=u[a]:a in l&&(t[a]=l[a]);return t}function xl(l,u){const t=l.icons,a=l.aliases||Object.create(null),n=Object.create(null);function o(s){if(t[s])return n[s]=[];if(!(s in n)){n[s]=null;const c=a[s]&&a[s].parent,i=c&&o(c);i&&(n[s]=[c].concat(i))}return n[s]}return Object.keys(t).concat(Object.keys(a)).forEach(o),n}function Sl(l,u,t){const a=l.icons,n=l.aliases||Object.create(null);let o={};function s(c){o=ze(a[c]||n[c],o)}return s(u),t.forEach(s),ze(l,o)}function Ze(l,u){const t=[];if(typeof l!="object"||typeof l.icons!="object")return t;l.not_found instanceof Array&&l.not_found.forEach(n=>{u(n,null),t.push(n)});const a=xl(l);for(const n in a){const o=a[n];o&&(u(n,Sl(l,n,o)),t.push(n))}return t}const El={provider:"",aliases:{},not_found:{},...qe};function Ee(l,u){for(const t in u)if(t in l&&typeof l[t]!=typeof u[t])return!1;return!0}function Qe(l){if(typeof l!="object"||l===null)return null;const u=l;if(typeof u.prefix!="string"||!l.icons||typeof l.icons!="object"||!Ee(l,El))return null;const t=u.icons;for(const n in t){const o=t[n];if(!n||typeof o.body!="string"||!Ee(o,Me))return null}const a=u.aliases||Object.create(null);for(const n in a){const o=a[n],s=o.parent;if(!n||typeof s!="string"||!t[s]&&!a[s]||!Ee(o,Me))return null}return u}const Ie=Object.create(null);function $l(l,u){return{provider:l,prefix:u,icons:Object.create(null),missing:new Set}}function de(l,u){const t=Ie[l]||(Ie[l]=Object.create(null));return t[u]||(t[u]=$l(l,u))}function Je(l,u){return Qe(u)?Ze(u,(t,a)=>{a?l.icons[t]=a:l.missing.add(t)}):[]}function Ml(l,u,t){try{if(typeof t.body=="string")return l.icons[u]={...t},!0}catch{}return!1}let fe=!1;function el(l){return typeof l=="boolean"&&(fe=l),fe}function Bl(l){const u=typeof l=="string"?we(l,!0,fe):l;if(u){const t=de(u.provider,u.prefix),a=u.name;return t.icons[a]||(t.missing.has(a)?null:void 0)}}function Pl(l,u){const t=we(l,!0,fe);if(!t)return!1;const a=de(t.provider,t.prefix);return u?Ml(a,t.name,u):(a.missing.add(t.name),!0)}function Vl(l,u){if(typeof l!="object")return!1;if(typeof u!="string"&&(u=l.provider||""),fe&&!u&&!l.prefix){let n=!1;return Qe(l)&&(l.prefix="",Ze(l,(o,s)=>{Pl(o,s)&&(n=!0)})),n}const t=l.prefix;if(!he({prefix:t,name:"a"}))return!1;const a=de(u,t);return!!Je(a,l)}const ll=Object.freeze({width:null,height:null}),al=Object.freeze({...ll,...ye}),jl=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Nl=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function _e(l,u,t){if(u===1)return l;if(t=t||100,typeof l=="number")return Math.ceil(l*u*t)/t;if(typeof l!="string")return l;const a=l.split(jl);if(a===null||!a.length)return l;const n=[];let o=a.shift(),s=Nl.test(o);for(;;){if(s){const c=parseFloat(o);isNaN(c)?n.push(o):n.push(Math.ceil(c*u*t)/t)}else n.push(o);if(o=a.shift(),o===void 0)return n.join("");s=!s}}function Ll(l,u="defs"){let t="";const a=l.indexOf("<"+u);for(;a>=0;){const n=l.indexOf(">",a),o=l.indexOf("</"+u);if(n===-1||o===-1)break;const s=l.indexOf(">",o);if(s===-1)break;t+=l.slice(n+1,o).trim(),l=l.slice(0,a).trim()+l.slice(s+1)}return{defs:t,content:l}}function Tl(l,u){return l?"<defs>"+l+"</defs>"+u:u}function Dl(l,u,t){const a=Ll(l);return Tl(a.defs,u+a.content+t)}const Al=l=>l==="unset"||l==="undefined"||l==="none";function zl(l,u){const t={...ke,...l},a={...al,...u},n={left:t.left,top:t.top,width:t.width,height:t.height};let o=t.body;[t,a].forEach(b=>{const d=[],y=b.hFlip,m=b.vFlip;let w=b.rotate;y?m?w+=2:(d.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),d.push("scale(-1 1)"),n.top=n.left=0):m&&(d.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),d.push("scale(1 -1)"),n.top=n.left=0);let k;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:k=n.height/2+n.top,d.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:d.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:k=n.width/2+n.left,d.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}w%2===1&&(n.left!==n.top&&(k=n.left,n.left=n.top,n.top=k),n.width!==n.height&&(k=n.width,n.width=n.height,n.height=k)),d.length&&(o=Dl(o,'<g transform="'+d.join(" ")+'">',"</g>"))});const s=a.width,c=a.height,i=n.width,r=n.height;let v,h;s===null?(h=c===null?"1em":c==="auto"?r:c,v=_e(h,i/r)):(v=s==="auto"?i:s,h=c===null?_e(v,r/i):c==="auto"?r:c);const p={},f=(b,d)=>{Al(d)||(p[b]=d.toString())};f("width",v),f("height",h);const x=[n.left,n.top,i,r];return p.viewBox=x.join(" "),{attributes:p,viewBox:x,body:o}}const Il=/\sid="(\S+)"/g,_l="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ol=0;function Yl(l,u=_l){const t=[];let a;for(;a=Il.exec(l);)t.push(a[1]);if(!t.length)return l;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(o=>{const s=typeof u=="function"?u(o):u+(Ol++).toString(),c=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");l=l.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+s+n+"$3")}),l=l.replace(new RegExp(n,"g"),""),l}const Be=Object.create(null);function Fl(l,u){Be[l]=u}function Pe(l){return Be[l]||Be[""]}function Ne(l){let u;if(typeof l.resources=="string")u=[l.resources];else if(u=l.resources,!(u instanceof Array)||!u.length)return null;return{resources:u,path:l.path||"/",maxURL:l.maxURL||500,rotate:l.rotate||750,timeout:l.timeout||5e3,random:l.random===!0,index:l.index||0,dataAfterTimeout:l.dataAfterTimeout!==!1}}const Le=Object.create(null),be=["https://api.simplesvg.com","https://api.unisvg.com"],me=[];for(;be.length>0;)be.length===1||Math.random()>.5?me.push(be.shift()):me.push(be.pop());Le[""]=Ne({resources:["https://api.iconify.design"].concat(me)});function Xl(l,u){const t=Ne(u);return t===null?!1:(Le[l]=t,!0)}function Te(l){return Le[l]}const Hl=()=>{let l;try{if(l=fetch,typeof l=="function")return l}catch{}};let Oe=Hl();function Rl(l,u){const t=Te(l);if(!t)return 0;let a;if(!t.maxURL)a=0;else{let n=0;t.resources.forEach(s=>{n=Math.max(n,s.length)});const o=u+".json?icons=";a=t.maxURL-n-t.path.length-o.length}return a}function Wl(l){return l===404}const Gl=(l,u,t)=>{const a=[],n=Rl(l,u),o="icons";let s={type:o,provider:l,prefix:u,icons:[]},c=0;return t.forEach((i,r)=>{c+=i.length+1,c>=n&&r>0&&(a.push(s),s={type:o,provider:l,prefix:u,icons:[]},c=i.length),s.icons.push(i)}),a.push(s),a};function Ul(l){if(typeof l=="string"){const u=Te(l);if(u)return u.path}return"/"}const Kl=(l,u,t)=>{if(!Oe){t("abort",424);return}let a=Ul(u.provider);switch(u.type){case"icons":{const o=u.prefix,c=u.icons.join(","),i=new URLSearchParams({icons:c});a+=o+".json?"+i.toString();break}case"custom":{const o=u.uri;a+=o.slice(0,1)==="/"?o.slice(1):o;break}default:t("abort",400);return}let n=503;Oe(l+a).then(o=>{const s=o.status;if(s!==200){setTimeout(()=>{t(Wl(s)?"abort":"next",s)});return}return n=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?t("abort",o):t("next",n)});return}setTimeout(()=>{t("success",o)})}).catch(()=>{t("next",n)})},ql={prepare:Gl,send:Kl};function Zl(l){const u={loaded:[],missing:[],pending:[]},t=Object.create(null);l.sort((n,o)=>n.provider!==o.provider?n.provider.localeCompare(o.provider):n.prefix!==o.prefix?n.prefix.localeCompare(o.prefix):n.name.localeCompare(o.name));let a={provider:"",prefix:"",name:""};return l.forEach(n=>{if(a.name===n.name&&a.prefix===n.prefix&&a.provider===n.provider)return;a=n;const o=n.provider,s=n.prefix,c=n.name,i=t[o]||(t[o]=Object.create(null)),r=i[s]||(i[s]=de(o,s));let v;c in r.icons?v=u.loaded:s===""||r.missing.has(c)?v=u.missing:v=u.pending;const h={provider:o,prefix:s,name:c};v.push(h)}),u}function tl(l,u){l.forEach(t=>{const a=t.loaderCallbacks;a&&(t.loaderCallbacks=a.filter(n=>n.id!==u))})}function Ql(l){l.pendingCallbacksFlag||(l.pendingCallbacksFlag=!0,setTimeout(()=>{l.pendingCallbacksFlag=!1;const u=l.loaderCallbacks?l.loaderCallbacks.slice(0):[];if(!u.length)return;let t=!1;const a=l.provider,n=l.prefix;u.forEach(o=>{const s=o.icons,c=s.pending.length;s.pending=s.pending.filter(i=>{if(i.prefix!==n)return!0;const r=i.name;if(l.icons[r])s.loaded.push({provider:a,prefix:n,name:r});else if(l.missing.has(r))s.missing.push({provider:a,prefix:n,name:r});else return t=!0,!0;return!1}),s.pending.length!==c&&(t||tl([l],o.id),o.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),o.abort))})}))}let Jl=0;function ea(l,u,t){const a=Jl++,n=tl.bind(null,t,a);if(!u.pending.length)return n;const o={id:a,icons:u,callback:l,abort:n};return t.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(o)}),n}function la(l,u=!0,t=!1){const a=[];return l.forEach(n=>{const o=typeof n=="string"?we(n,u,t):n;o&&a.push(o)}),a}var aa={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ta(l,u,t,a){const n=l.resources.length,o=l.random?Math.floor(Math.random()*n):l.index;let s;if(l.random){let E=l.resources.slice(0);for(s=[];E.length>1;){const M=Math.floor(Math.random()*E.length);s.push(E[M]),E=E.slice(0,M).concat(E.slice(M+1))}s=s.concat(E)}else s=l.resources.slice(o).concat(l.resources.slice(0,o));const c=Date.now();let i="pending",r=0,v,h=null,p=[],f=[];typeof a=="function"&&f.push(a);function x(){h&&(clearTimeout(h),h=null)}function b(){i==="pending"&&(i="aborted"),x(),p.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),p=[]}function d(E,M){M&&(f=[]),typeof E=="function"&&f.push(E)}function y(){return{startTime:c,payload:u,status:i,queriesSent:r,queriesPending:p.length,subscribe:d,abort:b}}function m(){i="failed",f.forEach(E=>{E(void 0,v)})}function w(){p.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),p=[]}function k(E,M,g){const $=M!=="success";switch(p=p.filter(S=>S!==E),i){case"pending":break;case"failed":if($||!l.dataAfterTimeout)return;break;default:return}if(M==="abort"){v=g,m();return}if($){v=g,p.length||(s.length?N():m());return}if(x(),w(),!l.random){const S=l.resources.indexOf(E.resource);S!==-1&&S!==l.index&&(l.index=S)}i="completed",f.forEach(S=>{S(g)})}function N(){if(i!=="pending")return;x();const E=s.shift();if(E===void 0){if(p.length){h=setTimeout(()=>{x(),i==="pending"&&(w(),m())},l.timeout);return}m();return}const M={status:"pending",resource:E,callback:(g,$)=>{k(M,g,$)}};p.push(M),r++,h=setTimeout(N,l.rotate),t(E,u,M.callback)}return setTimeout(N),y}function nl(l){const u={...aa,...l};let t=[];function a(){t=t.filter(c=>c().status==="pending")}function n(c,i,r){const v=ta(u,c,i,(h,p)=>{a(),r&&r(h,p)});return t.push(v),v}function o(c){return t.find(i=>c(i))||null}return{query:n,find:o,setIndex:c=>{u.index=c},getIndex:()=>u.index,cleanup:a}}function Ye(){}const $e=Object.create(null);function na(l){if(!$e[l]){const u=Te(l);if(!u)return;const t=nl(u),a={config:u,redundancy:t};$e[l]=a}return $e[l]}function oa(l,u,t){let a,n;if(typeof l=="string"){const o=Pe(l);if(!o)return t(void 0,424),Ye;n=o.send;const s=na(l);s&&(a=s.redundancy)}else{const o=Ne(l);if(o){a=nl(o);const s=l.resources?l.resources[0]:"",c=Pe(s);c&&(n=c.send)}}return!a||!n?(t(void 0,424),Ye):a.query(u,n,t)().abort}function Fe(){}function ua(l){l.iconsLoaderFlag||(l.iconsLoaderFlag=!0,setTimeout(()=>{l.iconsLoaderFlag=!1,Ql(l)}))}function sa(l){const u=[],t=[];return l.forEach(a=>{(a.match(Ke)?u:t).push(a)}),{valid:u,invalid:t}}function ge(l,u,t){function a(){const n=l.pendingIcons;u.forEach(o=>{n&&n.delete(o),l.icons[o]||l.missing.add(o)})}if(t&&typeof t=="object")try{if(!Je(l,t).length){a();return}}catch(n){console.error(n)}a(),ua(l)}function Xe(l,u){l instanceof Promise?l.then(t=>{u(t)}).catch(()=>{u(null)}):u(l)}function ca(l,u){l.iconsToLoad?l.iconsToLoad=l.iconsToLoad.concat(u).sort():l.iconsToLoad=u,l.iconsQueueFlag||(l.iconsQueueFlag=!0,setTimeout(()=>{l.iconsQueueFlag=!1;const{provider:t,prefix:a}=l,n=l.iconsToLoad;if(delete l.iconsToLoad,!n||!n.length)return;const o=l.loadIcon;if(l.loadIcons&&(n.length>1||!o)){Xe(l.loadIcons(n,a,t),v=>{ge(l,n,v)});return}if(o){n.forEach(v=>{const h=o(v,a,t);Xe(h,p=>{const f=p?{prefix:a,icons:{[v]:p}}:null;ge(l,[v],f)})});return}const{valid:s,invalid:c}=sa(n);if(c.length&&ge(l,c,null),!s.length)return;const i=a.match(Ke)?Pe(t):null;if(!i){ge(l,s,null);return}i.prepare(t,a,s).forEach(v=>{oa(t,v,h=>{ge(l,v.icons,h)})})}))}const ra=(l,u)=>{const t=la(l,!0,el()),a=Zl(t);if(!a.pending.length){let i=!0;return u&&setTimeout(()=>{i&&u(a.loaded,a.missing,a.pending,Fe)}),()=>{i=!1}}const n=Object.create(null),o=[];let s,c;return a.pending.forEach(i=>{const{provider:r,prefix:v}=i;if(v===c&&r===s)return;s=r,c=v,o.push(de(r,v));const h=n[r]||(n[r]=Object.create(null));h[v]||(h[v]=[])}),a.pending.forEach(i=>{const{provider:r,prefix:v,name:h}=i,p=de(r,v),f=p.pendingIcons||(p.pendingIcons=new Set);f.has(h)||(f.add(h),n[r][v].push(h))}),o.forEach(i=>{const r=n[i.provider][i.prefix];r.length&&ca(i,r)}),u?ea(u,a,o):Fe};function ia(l,u){const t={...l};for(const a in u){const n=u[a],o=typeof n;a in ll?(n===null||n&&(o==="string"||o==="number"))&&(t[a]=n):o===typeof t[a]&&(t[a]=a==="rotate"?n%4:n)}return t}const va=/[\s,]+/;function da(l,u){u.split(va).forEach(t=>{switch(t.trim()){case"horizontal":l.hFlip=!0;break;case"vertical":l.vFlip=!0;break}})}function ba(l,u=0){const t=l.replace(/^-?[0-9.]*/,"");function a(n){for(;n<0;)n+=4;return n%4}if(t===""){const n=parseInt(l);return isNaN(n)?0:a(n)}else if(t!==l){let n=0;switch(t){case"%":n=25;break;case"deg":n=90}if(n){let o=parseFloat(l.slice(0,l.length-t.length));return isNaN(o)?0:(o=o/n,o%1===0?a(o):0)}}return u}function ga(l,u){let t=l.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const a in u)t+=" "+a+'="'+u[a]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+l+"</svg>"}function fa(l){return l.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ha(l){return"data:image/svg+xml,"+fa(l)}function ma(l){return'url("'+ha(l)+'")'}const He={...al,inline:!1},pa={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ya={display:"inline-block"},Ve={backgroundColor:"currentColor"},ol={backgroundColor:"transparent"},Re={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},We={webkitMask:Ve,mask:Ve,background:ol};for(const l in We){const u=We[l];for(const t in Re)u[l+t]=Re[t]}const pe={};["horizontal","vertical"].forEach(l=>{const u=l.slice(0,1)+"Flip";pe[l+"-flip"]=u,pe[l.slice(0,1)+"-flip"]=u,pe[l+"Flip"]=u});function Ge(l){return l+(l.match(/^[-0-9.]+$/)?"px":"")}const Ue=(l,u)=>{const t=ia(He,u),a={...pa},n=u.mode||"svg",o={},s=u.style,c=typeof s=="object"&&!(s instanceof Array)?s:{};for(let b in u){const d=u[b];if(d!==void 0)switch(b){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":t[b]=d===!0||d==="true"||d===1;break;case"flip":typeof d=="string"&&da(t,d);break;case"color":o.color=d;break;case"rotate":typeof d=="string"?t[b]=ba(d):typeof d=="number"&&(t[b]=d);break;case"ariaHidden":case"aria-hidden":d!==!0&&d!=="true"&&delete a["aria-hidden"];break;default:{const y=pe[b];y?(d===!0||d==="true"||d===1)&&(t[y]=!0):He[b]===void 0&&(a[b]=d)}}}const i=zl(l,t),r=i.attributes;if(t.inline&&(o.verticalAlign="-0.125em"),n==="svg"){a.style={...o,...c},Object.assign(a,r);let b=0,d=u.id;return typeof d=="string"&&(d=d.replace(/-/g,"_")),a.innerHTML=Yl(i.body,d?()=>d+"ID"+b++:"iconifyVue"),e.h("svg",a)}const{body:v,width:h,height:p}=l,f=n==="mask"||(n==="bg"?!1:v.indexOf("currentColor")!==-1),x=ga(v,{...r,width:h+"",height:p+""});return a.style={...o,"--svg":ma(x),width:Ge(r.width),height:Ge(r.height),...ya,...f?Ve:ol,...c},e.h("span",a)};el(!0);Fl("",ql);if(typeof document<"u"&&typeof window<"u"){const l=window;if(l.IconifyPreload!==void 0){const u=l.IconifyPreload,t="Invalid IconifyPreload syntax.";typeof u=="object"&&u!==null&&(u instanceof Array?u:[u]).forEach(a=>{try{(typeof a!="object"||a===null||a instanceof Array||typeof a.icons!="object"||typeof a.prefix!="string"||!Vl(a))&&console.error(t)}catch{console.error(t)}})}if(l.IconifyProviders!==void 0){const u=l.IconifyProviders;if(typeof u=="object"&&u!==null)for(let t in u){const a="IconifyProviders["+t+"] is invalid.";try{const n=u[t];if(typeof n!="object"||!n||n.resources===void 0)continue;Xl(t,n)||console.error(a)}catch{console.error(a)}}}}const wa={...ke,body:""},te=e.defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(l,u,t){if(typeof l=="object"&&l!==null&&typeof l.body=="string")return this._name="",this.abortLoading(),{data:l};let a;if(typeof l!="string"||(a=we(l,!1,!0))===null)return this.abortLoading(),null;let n=Bl(a);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==l)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:l,abort:ra([a],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==l&&(this._name=l,u&&u(l)),t){n=Object.assign({},n);const s=t(n.body,a.name,a.prefix,a.provider);typeof s=="string"&&(n.body=s)}const o=["iconify"];return a.prefix!==""&&o.push("iconify--"+a.prefix),a.provider!==""&&o.push("iconify--"+a.provider),{data:n,classes:o}}},render(){this.counter;const l=this.$attrs,u=this.iconMounted||l.ssr?this.getIcon(l.icon,l.onLoad,l.customise):null;if(!u)return Ue(wa,l);let t=l;return u.classes&&(t={...l,class:(typeof l.class=="string"?l.class+" ":"")+u.classes.join(" ")}),Ue({...ke,...u.data},t)}}),ka=["disabled"],Ca={key:0,class:"x-btn-icon"},xa={key:1,class:"x-btn-loading"},Sa={class:"x-btn-content"},Ea={key:2,class:"x-btn-icon"},$a=e.defineComponent({__name:"index",props:{type:{default:"default"},size:{default:"medium"},icon:{},iconRight:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},block:{type:Boolean,default:!1},round:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1}},emits:["click"],setup(l,{emit:u}){const t=l,a=u,n=e.ref(),o=e.ref([]);let s=0;const c=e.computed(()=>["x-btn",`x-btn-${t.type}`,`x-btn-${t.size}`,{"x-btn-disabled":t.disabled,"x-btn-loading":t.loading,"x-btn-block":t.block,"x-btn-round":t.round,"x-btn-ghost":t.ghost}]);function i(v){!t.disabled&&!t.loading&&a("click",v)}function r(v){if(t.disabled||t.loading)return;const h=n.value;if(!h)return;const p=h.getBoundingClientRect(),f={id:s++,style:{left:`${v.clientX-p.left}px`,top:`${v.clientY-p.top}px`}};o.value.push(f),setTimeout(()=>{const x=o.value.findIndex(b=>b.id===f.id);x>-1&&o.value.splice(x,1)},600)}return(v,h)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(c.value),disabled:l.disabled||l.loading,onClick:i,onMousedown:r,ref_key:"buttonRef",ref:n},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,p=>(e.openBlock(),e.createElementBlock("span",{key:p.id,class:"x-btn-ripple",style:e.normalizeStyle(p.style)},null,4))),128)),l.icon&&!l.loading?(e.openBlock(),e.createElementBlock("span",Ca,[e.createVNode(e.unref(te),{icon:l.icon},null,8,["icon"])])):e.createCommentVNode("",!0),l.loading?(e.openBlock(),e.createElementBlock("span",xa,[e.createVNode(e.unref(te),{icon:"eos-icons:loading"})])):e.createCommentVNode("",!0),e.createElementVNode("span",Sa,[e.renderSlot(v.$slots,"default",{},void 0,!0)]),l.iconRight&&!l.loading?(e.openBlock(),e.createElementBlock("span",Ea,[e.createVNode(e.unref(te),{icon:l.iconRight},null,8,["icon"])])):e.createCommentVNode("",!0)],42,ka))}}),ae=(l,u)=>{const t=l.__vccOpts||l;for(const[a,n]of u)t[a]=n;return t},je=ae($a,[["__scopeId","data-v-57e2dc2c"]]),Ma={class:"x-card-container"},Ba=["onClick"],Pa={class:"relative p-2"},Va={class:"image-container relative overflow-hidden rounded-lg bg-gray-100"},ja=["src","alt"],Na={key:0,class:"absolute top-3 left-3"},La={class:"label-badge"},Ta={class:"product-info p-5 ml-5"},Da={class:"text-sm lg:text-base text-gray-700 leading-relaxed line-clamp-2 mb-3"},Aa={class:"flex items-center justify-between gap-2"},za={class:"text-base lg:text-lg font-bold text-[var(--x-color-primary)]"},Ia={key:0,class:"bi bi-heart text-gray-500"},_a={key:1,class:"bi bi-heart-fill text-[#FE374F]"},Oa=["onClick"],Ya={class:"relative flex-shrink-0 p-2"},Fa={class:"image-container aspect-square bg-gray-100 rounded-lg overflow-hidden relative"},Xa=["src","alt"],Ha={key:0,class:"absolute top-3 left-3"},Ra={class:"label-badge"},Wa={class:"flex-1 flex flex-col justify-between product-info p-5 ml-5"},Ga={class:"text-sm lg:text-base text-gray-700 font-medium line-clamp-2 leading-relaxed mb-3"},Ua={class:"flex items-center justify-between gap-2 mt-auto"},Ka={class:"text-base lg:text-lg font-bold text-[var(--x-color-primary)]"},qa=e.defineComponent({__name:"index",props:{layout:{default:"grid"},products:{default:()=>[]},useMockData:{type:Boolean,default:!0},columns:{default:4}},emits:["productClick","like"],setup(l,{emit:u}){const t=l,a=u,n=[{id:"1",name:"北欧风简约陶瓷花瓶",image:"https://images.unsplash.com/photo-1578500494198-246f612d3b3d?w=400",price:"¥299",label:"热卖",isWish:!1},{id:"2",name:"手工编织棉麻抱枕套",image:"https://images.unsplash.com/photo-1584100936595-c0654b55a2e2?w=400",price:"¥89",label:"新品",isWish:!0},{id:"3",name:"实木原木置物架收纳架",image:"https://images.unsplash.com/photo-1595428774223-ef52624120d2?w=400",price:"¥459",label:"",isWish:!1},{id:"4",name:"ins风格桌面装饰摆件",image:"https://images.unsplash.com/photo-1513506003901-1e6a229e2d15?w=400",price:"¥129",label:"特价",isWish:!1},{id:"5",name:"现代简约台灯护眼学习灯",image:"https://images.unsplash.com/photo-1507473885765-e6ed057f782c?w=400",price:"¥399",label:"",isWish:!0},{id:"6",name:"北欧风格装饰画挂画",image:"https://images.unsplash.com/photo-1561214115-f2f134cc4912?w=400",price:"¥199",label:"热卖",isWish:!1},{id:"7",name:"多功能收纳盒桌面整理",image:"https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=400",price:"¥68",label:"",isWish:!1},{id:"8",name:"创意陶瓷马克杯咖啡杯",image:"https://images.unsplash.com/photo-1514228742587-6b1558fcca3d?w=400",price:"¥59",label:"新品",isWish:!1},{id:"9",name:"手工玻璃花瓶透明花器",image:"https://images.unsplash.com/photo-1523293182086-7651a899d37f?w=400",price:"¥179",label:"",isWish:!0},{id:"10",name:"日式和风招财猫摆件",image:"https://images.unsplash.com/photo-1615529182904-14819c35db37?w=400",price:"¥149",label:"热卖",isWish:!1},{id:"11",name:"北欧风木质挂钟客厅",image:"https://images.unsplash.com/photo-1563861826100-9cb868fdbe1c?w=400",price:"¥259",label:"",isWish:!1},{id:"12",name:"现代简约落地花架",image:"https://images.unsplash.com/photo-1545127398-14699f92334b?w=400",price:"¥329",label:"特价",isWish:!1}],o=e.ref([]),s=e.computed(()=>t.products&&t.products.length>0?t.products:o.value),c=e.computed(()=>{const h=Math.min(Math.max(t.columns||4,1),4),p={1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-2 md:grid-cols-3 lg:grid-cols-4"};return p[h]||p[4]}),i=e.computed(()=>{const h=Math.min(Math.max(t.columns||4,1),4),p={1:"columns-1",2:"columns-1 md:columns-2",3:"columns-2 md:columns-2 lg:columns-3",4:"columns-2 sm:columns-2 md:columns-3 lg:columns-4"};return p[h]||p[4]});e.onMounted(()=>{t.useMockData&&(!t.products||t.products.length===0)&&(o.value=n)});const r=h=>{a("productClick",h)},v=h=>{h.isWish=!h.isWish,a("like",h)};return(h,p)=>(e.openBlock(),e.createElementBlock("div",Ma,[l.layout==="masonry"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["masonry-layout",i.value,"gap-4 sm:gap-6"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id+"-masonry",class:"mb-4 sm:mb-6 break-inside-avoid group cursor-pointer product-card",onClick:x=>r(f.id)},[e.createElementVNode("div",Pa,[e.createElementVNode("div",Va,[e.createElementVNode("img",{src:f.image,alt:f.name,loading:"lazy",class:"w-full h-auto object-cover transition-transform duration-300 group-hover:scale-[1.01]"},null,8,ja),p[0]||(p[0]=e.createElementVNode("div",{class:"light-effect"},null,-1))]),f.label?(e.openBlock(),e.createElementBlock("div",Na,[e.createElementVNode("span",La,e.toDisplayString(f.label),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ta,[e.createElementVNode("h3",Da,e.toDisplayString(f.name),1),e.createElementVNode("div",Aa,[e.createElementVNode("span",za,e.toDisplayString(f.price),1),e.createVNode(je,{onClick:e.withModifiers(x=>v(f),["stop"]),type:"text",size:"small",class:"like-button !min-w-0 !p-1"},{default:e.withCtx(()=>[f.isWish?(e.openBlock(),e.createElementBlock("i",_a)):(e.openBlock(),e.createElementBlock("i",Ia))]),_:2},1032,["onClick"])])])],8,Ba))),128))],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["grid",c.value,"gap-4 lg:gap-6"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id+"-grid",class:"h-full"},[e.createElementVNode("div",{class:"py-2 px-2 group cursor-pointer product-card h-full flex flex-col",onClick:x=>r(f.id)},[e.createElementVNode("div",Ya,[e.createElementVNode("div",Fa,[e.createElementVNode("img",{src:f.image,alt:f.name,class:"w-full h-full object-cover transition-transform duration-300",loading:"lazy"},null,8,Xa),p[1]||(p[1]=e.createElementVNode("div",{class:"light-effect"},null,-1))]),f.label?(e.openBlock(),e.createElementBlock("div",Ha,[e.createElementVNode("span",Ra,e.toDisplayString(f.label),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Wa,[e.createElementVNode("h3",Ga,e.toDisplayString(f.name),1),e.createElementVNode("div",Ua,[e.createElementVNode("span",Ka,e.toDisplayString(f.price),1),e.createVNode(je,{onClick:e.withModifiers(x=>v(f),["stop"]),type:"text",size:"small",class:"like-button !min-w-0 !p-1"},{default:e.withCtx(()=>[f.isWish?(e.openBlock(),e.createBlock(e.unref(te),{key:1,icon:"bi:heart-fill",class:"bi bi-heart-fill text-[#FE374F] text-lg"})):(e.openBlock(),e.createBlock(e.unref(te),{key:0,icon:"bi:heart",class:"bi bi-heart text-gray-500 text-lg"}))]),_:2},1032,["onClick"])])])],8,Oa)]))),128))],2))]))}}),Za=ae(qa,[["__scopeId","data-v-9eac2a47"]]),Qa=[{name:"Afghanistan",code:"AF",flagEmoji:"🇦🇫",flagSvg:"https://flagcdn.com/af.svg",flagPng:"https://flagcdn.com/w40/af.png",phoneCode:"+93",phonelengthMAX:10},{name:"Åland Islands",code:"AX",flagEmoji:"🇦🇽",flagSvg:"https://flagcdn.com/ax.svg",flagPng:"https://flagcdn.com/w40/ax.png",phoneCode:"+358",phonelengthMAX:10},{name:"Albania",code:"AL",flagEmoji:"🇦🇱",flagSvg:"https://flagcdn.com/al.svg",flagPng:"https://flagcdn.com/w40/al.png",phoneCode:"+355",phonelengthMAX:10},{name:"Algeria",code:"DZ",flagEmoji:"🇩🇿",flagSvg:"https://flagcdn.com/dz.svg",flagPng:"https://flagcdn.com/w40/dz.png",phoneCode:"+213",phonelengthMAX:10},{name:"American Samoa",code:"AS",flagEmoji:"🇦🇸",flagSvg:"https://flagcdn.com/as.svg",flagPng:"https://flagcdn.com/w40/as.png",phoneCode:"+1684",phonelengthMAX:10},{name:"Andorra",code:"AD",flagEmoji:"🇦🇩",flagSvg:"https://flagcdn.com/ad.svg",flagPng:"https://flagcdn.com/w40/ad.png",phoneCode:"+376",phonelengthMAX:10},{name:"Angola",code:"AO",flagEmoji:"🇦🇴",flagSvg:"https://flagcdn.com/ao.svg",flagPng:"https://flagcdn.com/w40/ao.png",phoneCode:"+244",phonelengthMAX:10},{name:"Anguilla",code:"AI",flagEmoji:"🇦🇮",flagSvg:"https://flagcdn.com/ai.svg",flagPng:"https://flagcdn.com/w40/ai.png",phoneCode:"+1264",phonelengthMAX:10},{name:"Antarctica",code:"AQ",flagEmoji:"🇦🇶",flagSvg:"https://flagcdn.com/aq.svg",flagPng:"https://flagcdn.com/w40/aq.png",phoneCode:"+672",phonelengthMAX:10},{name:"Antigua and Barbuda",code:"AG",flagEmoji:"🇦🇬",flagSvg:"https://flagcdn.com/ag.svg",flagPng:"https://flagcdn.com/w40/ag.png",phoneCode:"+1268",phonelengthMAX:10},{name:"Argentina",code:"AR",flagEmoji:"🇦🇷",flagSvg:"https://flagcdn.com/ar.svg",flagPng:"https://flagcdn.com/w40/ar.png",phoneCode:"+54",phonelengthMAX:10},{name:"Armenia",code:"AM",flagEmoji:"🇦🇲",flagSvg:"https://flagcdn.com/am.svg",flagPng:"https://flagcdn.com/w40/am.png",phoneCode:"+374",phonelengthMAX:10},{name:"Aruba",code:"AW",flagEmoji:"🇦🇼",flagSvg:"https://flagcdn.com/aw.svg",flagPng:"https://flagcdn.com/w40/aw.png",phoneCode:"+297",phonelengthMAX:10},{name:"Australia",code:"AU",flagEmoji:"🇦🇺",flagSvg:"https://flagcdn.com/au.svg",flagPng:"https://flagcdn.com/w40/au.png",phoneCode:"+61",phonelengthMAX:10},{name:"Austria",code:"AT",flagEmoji:"🇦🇹",flagSvg:"https://flagcdn.com/at.svg",flagPng:"https://flagcdn.com/w40/at.png",phoneCode:"+43",phonelengthMAX:10},{name:"Azerbaijan",code:"AZ",flagEmoji:"🇦🇿",flagSvg:"https://flagcdn.com/az.svg",flagPng:"https://flagcdn.com/w40/az.png",phoneCode:"+994",phonelengthMAX:10},{name:"Bahamas",code:"BS",flagEmoji:"🇧🇸",flagSvg:"https://flagcdn.com/bs.svg",flagPng:"https://flagcdn.com/w40/bs.png",phoneCode:"+1242",phonelengthMAX:10},{name:"Bahrain",code:"BH",flagEmoji:"🇧🇭",flagSvg:"https://flagcdn.com/bh.svg",flagPng:"https://flagcdn.com/w40/bh.png",phoneCode:"+973",phonelengthMAX:10},{name:"Bangladesh",code:"BD",flagEmoji:"🇧🇩",flagSvg:"https://flagcdn.com/bd.svg",flagPng:"https://flagcdn.com/w40/bd.png",phoneCode:"+880",phonelengthMAX:10},{name:"Barbados",code:"BB",flagEmoji:"🇧🇧",flagSvg:"https://flagcdn.com/bb.svg",flagPng:"https://flagcdn.com/w40/bb.png",phoneCode:"+1246",phonelengthMAX:10},{name:"Belarus",code:"BY",flagEmoji:"🇧🇾",flagSvg:"https://flagcdn.com/by.svg",flagPng:"https://flagcdn.com/w40/by.png",phoneCode:"+375",phonelengthMAX:10},{name:"Belgium",code:"BE",flagEmoji:"🇧🇪",flagSvg:"https://flagcdn.com/be.svg",flagPng:"https://flagcdn.com/w40/be.png",phoneCode:"+32",phonelengthMAX:10},{name:"Belize",code:"BZ",flagEmoji:"🇧🇿",flagSvg:"https://flagcdn.com/bz.svg",flagPng:"https://flagcdn.com/w40/bz.png",phoneCode:"+501",phonelengthMAX:10},{name:"Benin",code:"BJ",flagEmoji:"🇧🇯",flagSvg:"https://flagcdn.com/bj.svg",flagPng:"https://flagcdn.com/w40/bj.png",phoneCode:"+229",phonelengthMAX:10},{name:"Bermuda",code:"BM",flagEmoji:"🇧🇲",flagSvg:"https://flagcdn.com/bm.svg",flagPng:"https://flagcdn.com/w40/bm.png",phoneCode:"+1441",phonelengthMAX:10},{name:"Bhutan",code:"BT",flagEmoji:"🇧🇹",flagSvg:"https://flagcdn.com/bt.svg",flagPng:"https://flagcdn.com/w40/bt.png",phoneCode:"+975",phonelengthMAX:10},{name:"Bolivia (Plurinational State of)",code:"BO",flagEmoji:"🇧🇴",flagSvg:"https://flagcdn.com/bo.svg",flagPng:"https://flagcdn.com/w40/bo.png",phoneCode:"+591",phonelengthMAX:10},{name:"Bonaire, Sint Eustatius and Saba",code:"BQ",flagEmoji:"🇧🇶",flagSvg:"https://flagcdn.com/bq.svg",flagPng:"https://flagcdn.com/w40/bq.png",phoneCode:"+5997",phonelengthMAX:10},{name:"Bosnia and Herzegovina",code:"BA",flagEmoji:"🇧🇦",flagSvg:"https://flagcdn.com/ba.svg",flagPng:"https://flagcdn.com/w40/ba.png",phoneCode:"+387",phonelengthMAX:10},{name:"Botswana",code:"BW",flagEmoji:"🇧🇼",flagSvg:"https://flagcdn.com/bw.svg",flagPng:"https://flagcdn.com/w40/bw.png",phoneCode:"+267",phonelengthMAX:10},{name:"Bouvet Island",code:"BV",flagEmoji:"🇧🇻",flagSvg:"https://flagcdn.com/bv.svg",flagPng:"https://flagcdn.com/w40/bv.png",phoneCode:"+55",phonelengthMAX:10},{name:"Brazil",code:"BR",flagEmoji:"🇧🇷",flagSvg:"https://flagcdn.com/br.svg",flagPng:"https://flagcdn.com/w40/br.png",phoneCode:"+55",phonelengthMAX:10},{name:"British Indian Ocean Territory",code:"IO",flagEmoji:"🇮🇴",flagSvg:"https://flagcdn.com/io.svg",flagPng:"https://flagcdn.com/w40/io.png",phoneCode:"+246",phonelengthMAX:10},{name:"Brunei Darussalam",code:"BN",flagEmoji:"🇧🇳",flagSvg:"https://flagcdn.com/bn.svg",flagPng:"https://flagcdn.com/w40/bn.png",phoneCode:"+673",phonelengthMAX:10},{name:"Bulgaria",code:"BG",flagEmoji:"🇧🇬",flagSvg:"https://flagcdn.com/bg.svg",flagPng:"https://flagcdn.com/w40/bg.png",phoneCode:"+359",phonelengthMAX:10},{name:"Burkina Faso",code:"BF",flagEmoji:"🇧🇫",flagSvg:"https://flagcdn.com/bf.svg",flagPng:"https://flagcdn.com/w40/bf.png",phoneCode:"+226",phonelengthMAX:10},{name:"Burundi",code:"BI",flagEmoji:"🇧🇮",flagSvg:"https://flagcdn.com/bi.svg",flagPng:"https://flagcdn.com/w40/bi.png",phoneCode:"+257",phonelengthMAX:10},{name:"Cabo Verde",code:"CV",flagEmoji:"🇨🇻",flagSvg:"https://flagcdn.com/cv.svg",flagPng:"https://flagcdn.com/w40/cv.png",phoneCode:"+238",phonelengthMAX:10},{name:"Cambodia",code:"KH",flagEmoji:"🇰🇭",flagSvg:"https://flagcdn.com/kh.svg",flagPng:"https://flagcdn.com/w40/kh.png",phoneCode:"+855",phonelengthMAX:10},{name:"Cameroon",code:"CM",flagEmoji:"🇨🇲",flagSvg:"https://flagcdn.com/cm.svg",flagPng:"https://flagcdn.com/w40/cm.png",phoneCode:"+237",phonelengthMAX:10},{name:"Canada",code:"CA",flagEmoji:"🇨🇦",flagSvg:"https://flagcdn.com/ca.svg",flagPng:"https://flagcdn.com/w40/ca.png",phoneCode:"+1",phonelengthMAX:10},{name:"Cayman Islands",code:"KY",flagEmoji:"🇰🇾",flagSvg:"https://flagcdn.com/ky.svg",flagPng:"https://flagcdn.com/w40/ky.png",phoneCode:"+1345",phonelengthMAX:10},{name:"Central African Republic",code:"CF",flagEmoji:"🇨🇫",flagSvg:"https://flagcdn.com/cf.svg",flagPng:"https://flagcdn.com/w40/cf.png",phoneCode:"+236",phonelengthMAX:10},{name:"Chad",code:"TD",flagEmoji:"🇹🇩",flagSvg:"https://flagcdn.com/td.svg",flagPng:"https://flagcdn.com/w40/td.png",phoneCode:"+235",phonelengthMAX:10},{name:"Chile",code:"CL",flagEmoji:"🇨🇱",flagSvg:"https://flagcdn.com/cl.svg",flagPng:"https://flagcdn.com/w40/cl.png",phoneCode:"+56",phonelengthMAX:10},{name:"China",code:"CN",flagEmoji:"🇨🇳",flagSvg:"https://flagcdn.com/cn.svg",flagPng:"https://flagcdn.com/w40/cn.png",phoneCode:"+86",phonelengthMAX:11},{name:"Christmas Island",code:"CX",flagEmoji:"🇨🇽",flagSvg:"https://flagcdn.com/cx.svg",flagPng:"https://flagcdn.com/w40/cx.png",phoneCode:"+61",phonelengthMAX:10},{name:"Cocos (Keeling) Islands",code:"CC",flagEmoji:"🇨🇨",flagSvg:"https://flagcdn.com/cc.svg",flagPng:"https://flagcdn.com/w40/cc.png",phoneCode:"+61",phonelengthMAX:10},{name:"Colombia",code:"CO",flagEmoji:"🇨🇴",flagSvg:"https://flagcdn.com/co.svg",flagPng:"https://flagcdn.com/w40/co.png",phoneCode:"+57",phonelengthMAX:10},{name:"Comoros",code:"KM",flagEmoji:"🇰🇲",flagSvg:"https://flagcdn.com/km.svg",flagPng:"https://flagcdn.com/w40/km.png",phoneCode:"+269",phonelengthMAX:10},{name:"Congo",code:"CG",flagEmoji:"🇨🇬",flagSvg:"https://flagcdn.com/cg.svg",flagPng:"https://flagcdn.com/w40/cg.png",phoneCode:"+242",phonelengthMAX:10},{name:"Congo, Democratic Republic of the",code:"CD",flagEmoji:"🇨🇩",flagSvg:"https://flagcdn.com/cd.svg",flagPng:"https://flagcdn.com/w40/cd.png",phoneCode:"+243",phonelengthMAX:10},{name:"Cook Islands",code:"CK",flagEmoji:"🇨🇰",flagSvg:"https://flagcdn.com/ck.svg",flagPng:"https://flagcdn.com/w40/ck.png",phoneCode:"+682",phonelengthMAX:10},{name:"Costa Rica",code:"CR",flagEmoji:"🇨🇷",flagSvg:"https://flagcdn.com/cr.svg",flagPng:"https://flagcdn.com/w40/cr.png",phoneCode:"+506",phonelengthMAX:10},{name:"Croatia",code:"HR",flagEmoji:"🇭🇷",flagSvg:"https://flagcdn.com/hr.svg",flagPng:"https://flagcdn.com/w40/hr.png",phoneCode:"+385",phonelengthMAX:10},{name:"Cuba",code:"CU",flagEmoji:"🇨🇺",flagSvg:"https://flagcdn.com/cu.svg",flagPng:"https://flagcdn.com/w40/cu.png",phoneCode:"+53",phonelengthMAX:10},{name:"Curaçao",code:"CW",flagEmoji:"🇨🇼",flagSvg:"https://flagcdn.com/cw.svg",flagPng:"https://flagcdn.com/w40/cw.png",phoneCode:"+5999",phonelengthMAX:10},{name:"Cyprus",code:"CY",flagEmoji:"🇨🇾",flagSvg:"https://flagcdn.com/cy.svg",flagPng:"https://flagcdn.com/w40/cy.png",phoneCode:"+357",phonelengthMAX:10},{name:"Czechia",code:"CZ",flagEmoji:"🇨🇿",flagSvg:"https://flagcdn.com/cz.svg",flagPng:"https://flagcdn.com/w40/cz.png",phoneCode:"+420",phonelengthMAX:10},{name:"Denmark",code:"DK",flagEmoji:"🇩🇰",flagSvg:"https://flagcdn.com/dk.svg",flagPng:"https://flagcdn.com/w40/dk.png",phoneCode:"+45",phonelengthMAX:10},{name:"Djibouti",code:"DJ",flagEmoji:"🇩🇯",flagSvg:"https://flagcdn.com/dj.svg",flagPng:"https://flagcdn.com/w40/dj.png",phoneCode:"+253",phonelengthMAX:10},{name:"Dominica",code:"DM",flagEmoji:"🇩🇲",flagSvg:"https://flagcdn.com/dm.svg",flagPng:"https://flagcdn.com/w40/dm.png",phoneCode:"+1767",phonelengthMAX:10},{name:"Dominican Republic",code:"DO",flagEmoji:"🇩🇴",flagSvg:"https://flagcdn.com/do.svg",flagPng:"https://flagcdn.com/w40/do.png",phoneCode:"+1809",phonelengthMAX:10},{name:"Ecuador",code:"EC",flagEmoji:"🇪🇨",flagSvg:"https://flagcdn.com/ec.svg",flagPng:"https://flagcdn.com/w40/ec.png",phoneCode:"+593",phonelengthMAX:10},{name:"Egypt",code:"EG",flagEmoji:"🇪🇬",flagSvg:"https://flagcdn.com/eg.svg",flagPng:"https://flagcdn.com/w40/eg.png",phoneCode:"+20",phonelengthMAX:10},{name:"El Salvador",code:"SV",flagEmoji:"🇸🇻",flagSvg:"https://flagcdn.com/sv.svg",flagPng:"https://flagcdn.com/w40/sv.png",phoneCode:"+503",phonelengthMAX:10},{name:"Equatorial Guinea",code:"GQ",flagEmoji:"🇬🇶",flagSvg:"https://flagcdn.com/gq.svg",flagPng:"https://flagcdn.com/w40/gq.png",phoneCode:"+240",phonelengthMAX:10},{name:"Eritrea",code:"ER",flagEmoji:"🇪🇷",flagSvg:"https://flagcdn.com/er.svg",flagPng:"https://flagcdn.com/w40/er.png",phoneCode:"+291",phonelengthMAX:10},{name:"Estonia",code:"EE",flagEmoji:"🇪🇪",flagSvg:"https://flagcdn.com/ee.svg",flagPng:"https://flagcdn.com/w40/ee.png",phoneCode:"+372",phonelengthMAX:10},{name:"Eswatini",code:"SZ",flagEmoji:"🇸🇿",flagSvg:"https://flagcdn.com/sz.svg",flagPng:"https://flagcdn.com/w40/sz.png",phoneCode:"+268",phonelengthMAX:10},{name:"Ethiopia",code:"ET",flagEmoji:"🇪🇹",flagSvg:"https://flagcdn.com/et.svg",flagPng:"https://flagcdn.com/w40/et.png",phoneCode:"+251",phonelengthMAX:10},{name:"Falkland Islands (Malvinas)",code:"FK",flagEmoji:"🇫🇰",flagSvg:"https://flagcdn.com/fk.svg",flagPng:"https://flagcdn.com/w40/fk.png",phoneCode:"+500",phonelengthMAX:10},{name:"Faroe Islands",code:"FO",flagEmoji:"🇫🇴",flagSvg:"https://flagcdn.com/fo.svg",flagPng:"https://flagcdn.com/w40/fo.png",phoneCode:"+298",phonelengthMAX:10},{name:"Fiji",code:"FJ",flagEmoji:"🇫🇯",flagSvg:"https://flagcdn.com/fj.svg",flagPng:"https://flagcdn.com/w40/fj.png",phoneCode:"+679",phonelengthMAX:10},{name:"Finland",code:"FI",flagEmoji:"🇫🇮",flagSvg:"https://flagcdn.com/fi.svg",flagPng:"https://flagcdn.com/w40/fi.png",phoneCode:"+358",phonelengthMAX:10},{name:"France",code:"FR",flagEmoji:"🇫🇷",flagSvg:"https://flagcdn.com/fr.svg",flagPng:"https://flagcdn.com/w40/fr.png",phoneCode:"+33",phonelengthMAX:10},{name:"French Guiana",code:"GF",flagEmoji:"🇬🇫",flagSvg:"https://flagcdn.com/gf.svg",flagPng:"https://flagcdn.com/w40/gf.png",phoneCode:"+594",phonelengthMAX:10},{name:"French Polynesia",code:"PF",flagEmoji:"🇵🇫",flagSvg:"https://flagcdn.com/pf.svg",flagPng:"https://flagcdn.com/w40/pf.png",phoneCode:"+689",phonelengthMAX:10},{name:"French Southern Territories",code:"TF",flagEmoji:"🇹🇫",flagSvg:"https://flagcdn.com/tf.svg",flagPng:"https://flagcdn.com/w40/tf.png",phoneCode:"+262",phonelengthMAX:10},{name:"Gabon",code:"GA",flagEmoji:"🇬🇦",flagSvg:"https://flagcdn.com/ga.svg",flagPng:"https://flagcdn.com/w40/ga.png",phoneCode:"+241",phonelengthMAX:10},{name:"Gambia",code:"GM",flagEmoji:"🇬🇲",flagSvg:"https://flagcdn.com/gm.svg",flagPng:"https://flagcdn.com/w40/gm.png",phoneCode:"+220",phonelengthMAX:10},{name:"Georgia",code:"GE",flagEmoji:"🇬🇪",flagSvg:"https://flagcdn.com/ge.svg",flagPng:"https://flagcdn.com/w40/ge.png",phoneCode:"+995",phonelengthMAX:10},{name:"Germany",code:"DE",flagEmoji:"🇩🇪",flagSvg:"https://flagcdn.com/de.svg",flagPng:"https://flagcdn.com/w40/de.png",phoneCode:"+49",phonelengthMAX:10},{name:"Ghana",code:"GH",flagEmoji:"🇬🇭",flagSvg:"https://flagcdn.com/gh.svg",flagPng:"https://flagcdn.com/w40/gh.png",phoneCode:"+233",phonelengthMAX:10},{name:"Gibraltar",code:"GI",flagEmoji:"🇬🇮",flagSvg:"https://flagcdn.com/gi.svg",flagPng:"https://flagcdn.com/w40/gi.png",phoneCode:"+350",phonelengthMAX:10},{name:"Greece",code:"GR",flagEmoji:"🇬🇷",flagSvg:"https://flagcdn.com/gr.svg",flagPng:"https://flagcdn.com/w40/gr.png",phoneCode:"+30",phonelengthMAX:10},{name:"Greenland",code:"GL",flagEmoji:"🇬🇱",flagSvg:"https://flagcdn.com/gl.svg",flagPng:"https://flagcdn.com/w40/gl.png",phoneCode:"+299",phonelengthMAX:10},{name:"Grenada",code:"GD",flagEmoji:"🇬🇩",flagSvg:"https://flagcdn.com/gd.svg",flagPng:"https://flagcdn.com/w40/gd.png",phoneCode:"+1473",phonelengthMAX:10},{name:"Guadeloupe",code:"GP",flagEmoji:"🇬🇵",flagSvg:"https://flagcdn.com/gp.svg",flagPng:"https://flagcdn.com/w40/gp.png",phoneCode:"+590",phonelengthMAX:10},{name:"Guam",code:"GU",flagEmoji:"🇬🇺",flagSvg:"https://flagcdn.com/gu.svg",flagPng:"https://flagcdn.com/w40/gu.png",phoneCode:"+1671",phonelengthMAX:10},{name:"Guatemala",code:"GT",flagEmoji:"🇬🇹",flagSvg:"https://flagcdn.com/gt.svg",flagPng:"https://flagcdn.com/w40/gt.png",phoneCode:"+502",phonelengthMAX:10},{name:"Guernsey",code:"GG",flagEmoji:"🇬🇬",flagSvg:"https://flagcdn.com/gg.svg",flagPng:"https://flagcdn.com/w40/gg.png",phoneCode:"+44",phonelengthMAX:10},{name:"Guinea",code:"GN",flagEmoji:"🇬🇳",flagSvg:"https://flagcdn.com/gn.svg",flagPng:"https://flagcdn.com/w40/gn.png",phoneCode:"+224",phonelengthMAX:10},{name:"Guinea-Bissau",code:"GW",flagEmoji:"🇬🇼",flagSvg:"https://flagcdn.com/gw.svg",flagPng:"https://flagcdn.com/w40/gw.png",phoneCode:"+245",phonelengthMAX:10},{name:"Guyana",code:"GY",flagEmoji:"🇬🇾",flagSvg:"https://flagcdn.com/gy.svg",flagPng:"https://flagcdn.com/w40/gy.png",phoneCode:"+592",phonelengthMAX:10},{name:"Haiti",code:"HT",flagEmoji:"🇭🇹",flagSvg:"https://flagcdn.com/ht.svg",flagPng:"https://flagcdn.com/w40/ht.png",phoneCode:"+509",phonelengthMAX:10},{name:"Heard Island and McDonald Islands",code:"HM",flagEmoji:"🇭🇲",flagSvg:"https://flagcdn.com/hm.svg",flagPng:"https://flagcdn.com/w40/hm.png",phoneCode:"+672"},{name:"Holy See",code:"VA",flagEmoji:"🇻🇦",flagSvg:"https://flagcdn.com/va.svg",flagPng:"https://flagcdn.com/w40/va.png",phoneCode:"+39"},{name:"Honduras",code:"HN",flagEmoji:"🇭🇳",flagSvg:"https://flagcdn.com/hn.svg",flagPng:"https://flagcdn.com/w40/hn.png",phoneCode:"+504"},{name:"Hong Kong",code:"HK",flagEmoji:"🇭🇰",flagSvg:"https://flagcdn.com/hk.svg",flagPng:"https://flagcdn.com/w40/hk.png",phoneCode:"+852"},{name:"Hungary",code:"HU",flagEmoji:"🇭🇺",flagSvg:"https://flagcdn.com/hu.svg",flagPng:"https://flagcdn.com/w40/hu.png",phoneCode:"+36"},{name:"Iceland",code:"IS",flagEmoji:"🇮🇸",flagSvg:"https://flagcdn.com/is.svg",flagPng:"https://flagcdn.com/w40/is.png",phoneCode:"+354"},{name:"India",code:"IN",flagEmoji:"🇮🇳",flagSvg:"https://flagcdn.com/in.svg",flagPng:"https://flagcdn.com/w40/in.png",phoneCode:"+91"},{name:"Indonesia",code:"ID",flagEmoji:"🇮🇩",flagSvg:"https://flagcdn.com/id.svg",flagPng:"https://flagcdn.com/w40/id.png",phoneCode:"+62"},{name:"Iran (Islamic Republic of)",code:"IR",flagEmoji:"🇮🇷",flagSvg:"https://flagcdn.com/ir.svg",flagPng:"https://flagcdn.com/w40/ir.png",phoneCode:"+98"},{name:"Iraq",code:"IQ",flagEmoji:"🇮🇶",flagSvg:"https://flagcdn.com/iq.svg",flagPng:"https://flagcdn.com/w40/iq.png",phoneCode:"+964"},{name:"Ireland",code:"IE",flagEmoji:"🇮🇪",flagSvg:"https://flagcdn.com/ie.svg",flagPng:"https://flagcdn.com/w40/ie.png",phoneCode:"+353"},{name:"Isle of Man",code:"IM",flagEmoji:"🇮🇲",flagSvg:"https://flagcdn.com/im.svg",flagPng:"https://flagcdn.com/w40/im.png",phoneCode:"+44"},{name:"Israel",code:"IL",flagEmoji:"🇮🇱",flagSvg:"https://flagcdn.com/il.svg",flagPng:"https://flagcdn.com/w40/il.png",phoneCode:"+972"},{name:"Italy",code:"IT",flagEmoji:"🇮🇹",flagSvg:"https://flagcdn.com/it.svg",flagPng:"https://flagcdn.com/w40/it.png",phoneCode:"+39"},{name:"Jamaica",code:"JM",flagEmoji:"🇯🇲",flagSvg:"https://flagcdn.com/jm.svg",flagPng:"https://flagcdn.com/w40/jm.png",phoneCode:"+1876"},{name:"Japan",code:"JP",flagEmoji:"🇯🇵",flagSvg:"https://flagcdn.com/jp.svg",flagPng:"https://flagcdn.com/w40/jp.png",phoneCode:"+81"},{name:"Jersey",code:"JE",flagEmoji:"🇯🇪",flagSvg:"https://flagcdn.com/je.svg",flagPng:"https://flagcdn.com/w40/je.png",phoneCode:"+44"},{name:"Jordan",code:"JO",flagEmoji:"🇯🇴",flagSvg:"https://flagcdn.com/jo.svg",flagPng:"https://flagcdn.com/w40/jo.png",phoneCode:"+962"},{name:"Kazakhstan",code:"KZ",flagEmoji:"🇰🇿",flagSvg:"https://flagcdn.com/kz.svg",flagPng:"https://flagcdn.com/w40/kz.png",phoneCode:"+7"},{name:"Kenya",code:"KE",flagEmoji:"🇰🇪",flagSvg:"https://flagcdn.com/ke.svg",flagPng:"https://flagcdn.com/w40/ke.png",phoneCode:"+254"},{name:"Kiribati",code:"KI",flagEmoji:"🇰🇮",flagSvg:"https://flagcdn.com/ki.svg",flagPng:"https://flagcdn.com/w40/ki.png",phoneCode:"+686"},{name:"Korea (Democratic People's Republic of)",code:"KP",flagEmoji:"🇰🇵",flagSvg:"https://flagcdn.com/kp.svg",flagPng:"https://flagcdn.com/w40/kp.png",phoneCode:"+850"},{name:"Korea, Republic of",code:"KR",flagEmoji:"🇰🇷",flagSvg:"https://flagcdn.com/kr.svg",flagPng:"https://flagcdn.com/w40/kr.png",phoneCode:"+82"},{name:"Kuwait",code:"KW",flagEmoji:"🇰🇼",flagSvg:"https://flagcdn.com/kw.svg",flagPng:"https://flagcdn.com/w40/kw.png",phoneCode:"+965"},{name:"Kyrgyzstan",code:"KG",flagEmoji:"🇰🇬",flagSvg:"https://flagcdn.com/kg.svg",flagPng:"https://flagcdn.com/w40/kg.png",phoneCode:"+996"},{name:"Lao People's Democratic Republic",code:"LA",flagEmoji:"🇱🇦",flagSvg:"https://flagcdn.com/la.svg",flagPng:"https://flagcdn.com/w40/la.png",phoneCode:"+856"},{name:"Latvia",code:"LV",flagEmoji:"🇱🇻",flagSvg:"https://flagcdn.com/lv.svg",flagPng:"https://flagcdn.com/w40/lv.png",phoneCode:"+371"},{name:"Lebanon",code:"LB",flagEmoji:"🇱🇧",flagSvg:"https://flagcdn.com/lb.svg",flagPng:"https://flagcdn.com/w40/lb.png",phoneCode:"+961"},{name:"Lesotho",code:"LS",flagEmoji:"🇱🇸",flagSvg:"https://flagcdn.com/ls.svg",flagPng:"https://flagcdn.com/w40/ls.png",phoneCode:"+266"},{name:"Liberia",code:"LR",flagEmoji:"🇱🇷",flagSvg:"https://flagcdn.com/lr.svg",flagPng:"https://flagcdn.com/w40/lr.png",phoneCode:"+231"},{name:"Libya",code:"LY",flagEmoji:"🇱🇾",flagSvg:"https://flagcdn.com/ly.svg",flagPng:"https://flagcdn.com/w40/ly.png",phoneCode:"+218"},{name:"Liechtenstein",code:"LI",flagEmoji:"🇱🇮",flagSvg:"https://flagcdn.com/li.svg",flagPng:"https://flagcdn.com/w40/li.png",phoneCode:"+423"},{name:"Lithuania",code:"LT",flagEmoji:"🇱🇹",flagSvg:"https://flagcdn.com/lt.svg",flagPng:"https://flagcdn.com/w40/lt.png",phoneCode:"+370"},{name:"Luxembourg",code:"LU",flagEmoji:"🇱🇺",flagSvg:"https://flagcdn.com/lu.svg",flagPng:"https://flagcdn.com/w40/lu.png",phoneCode:"+352"},{name:"Macao",code:"MO",flagEmoji:"🇲🇴",flagSvg:"https://flagcdn.com/mo.svg",flagPng:"https://flagcdn.com/w40/mo.png",phoneCode:"+853"},{name:"Madagascar",code:"MG",flagEmoji:"🇲🇬",flagSvg:"https://flagcdn.com/mg.svg",flagPng:"https://flagcdn.com/w40/mg.png",phoneCode:"+261"},{name:"Malawi",code:"MW",flagEmoji:"🇲🇼",flagSvg:"https://flagcdn.com/mw.svg",flagPng:"https://flagcdn.com/w40/mw.png",phoneCode:"+265"},{name:"Malaysia",code:"MY",flagEmoji:"🇲🇾",flagSvg:"https://flagcdn.com/my.svg",flagPng:"https://flagcdn.com/w40/my.png",phoneCode:"+60"},{name:"Maldives",code:"MV",flagEmoji:"🇲🇻",flagSvg:"https://flagcdn.com/mv.svg",flagPng:"https://flagcdn.com/w40/mv.png",phoneCode:"+960"},{name:"Mali",code:"ML",flagEmoji:"🇲🇱",flagSvg:"https://flagcdn.com/ml.svg",flagPng:"https://flagcdn.com/w40/ml.png",phoneCode:"+223"},{name:"Malta",code:"MT",flagEmoji:"🇲🇹",flagSvg:"https://flagcdn.com/mt.svg",flagPng:"https://flagcdn.com/w40/mt.png",phoneCode:"+356"},{name:"Marshall Islands",code:"MH",flagEmoji:"🇲🇭",flagSvg:"https://flagcdn.com/mh.svg",flagPng:"https://flagcdn.com/w40/mh.png",phoneCode:"+692"},{name:"Martinique",code:"MQ",flagEmoji:"🇲🇶",flagSvg:"https://flagcdn.com/mq.svg",flagPng:"https://flagcdn.com/w40/mq.png",phoneCode:"+596"},{name:"Mauritania",code:"MR",flagEmoji:"🇲🇷",flagSvg:"https://flagcdn.com/mr.svg",flagPng:"https://flagcdn.com/w40/mr.png",phoneCode:"+222"},{name:"Mauritius",code:"MU",flagEmoji:"🇲🇺",flagSvg:"https://flagcdn.com/mu.svg",flagPng:"https://flagcdn.com/w40/mu.png",phoneCode:"+230"},{name:"Mayotte",code:"YT",flagEmoji:"🇾🇹",flagSvg:"https://flagcdn.com/yt.svg",flagPng:"https://flagcdn.com/w40/yt.png",phoneCode:"+262"},{name:"Mexico",code:"MX",flagEmoji:"🇲🇽",flagSvg:"https://flagcdn.com/mx.svg",flagPng:"https://flagcdn.com/w40/mx.png",phoneCode:"+52"},{name:"Micronesia (Federated States of)",code:"FM",flagEmoji:"🇫🇲",flagSvg:"https://flagcdn.com/fm.svg",flagPng:"https://flagcdn.com/w40/fm.png",phoneCode:"+691"},{name:"Moldova, Republic of",code:"MD",flagEmoji:"🇲🇩",flagSvg:"https://flagcdn.com/md.svg",flagPng:"https://flagcdn.com/w40/md.png",phoneCode:"+373"},{name:"Monaco",code:"MC",flagEmoji:"🇲🇨",flagSvg:"https://flagcdn.com/mc.svg",flagPng:"https://flagcdn.com/w40/mc.png",phoneCode:"+377",phonelengthMAX:10},{name:"Mongolia",code:"MN",flagEmoji:"🇲🇳",flagSvg:"https://flagcdn.com/mn.svg",flagPng:"https://flagcdn.com/w40/mn.png",phoneCode:"+976"},{name:"Montenegro",code:"ME",flagEmoji:"🇲🇪",flagSvg:"https://flagcdn.com/me.svg",flagPng:"https://flagcdn.com/w40/me.png",phoneCode:"+382"},{name:"Montserrat",code:"MS",flagEmoji:"🇲🇸",flagSvg:"https://flagcdn.com/ms.svg",flagPng:"https://flagcdn.com/w40/ms.png",phoneCode:"+1664"},{name:"Morocco",code:"MA",flagEmoji:"🇲🇦",flagSvg:"https://flagcdn.com/ma.svg",flagPng:"https://flagcdn.com/w40/ma.png",phoneCode:"+212"},{name:"Mozambique",code:"MZ",flagEmoji:"🇲🇿",flagSvg:"https://flagcdn.com/mz.svg",flagPng:"https://flagcdn.com/w40/mz.png",phoneCode:"+258"},{name:"Myanmar",code:"MM",flagEmoji:"🇲🇲",flagSvg:"https://flagcdn.com/mm.svg",flagPng:"https://flagcdn.com/w40/mm.png",phoneCode:"+95"},{name:"Namibia",code:"NA",flagEmoji:"🇳🇦",flagSvg:"https://flagcdn.com/na.svg",flagPng:"https://flagcdn.com/w40/na.png",phoneCode:"+264"},{name:"Nauru",code:"NR",flagEmoji:"🇳🇷",flagSvg:"https://flagcdn.com/nr.svg",flagPng:"https://flagcdn.com/w40/nr.png",phoneCode:"+674"},{name:"Nepal",code:"NP",flagEmoji:"🇳🇵",flagSvg:"https://flagcdn.com/np.svg",flagPng:"https://flagcdn.com/w40/np.png",phoneCode:"+977"},{name:"Netherlands",code:"NL",flagEmoji:"🇳🇱",flagSvg:"https://flagcdn.com/nl.svg",flagPng:"https://flagcdn.com/w40/nl.png",phoneCode:"+31"},{name:"New Caledonia",code:"NC",flagEmoji:"🇳🇨",flagSvg:"https://flagcdn.com/nc.svg",flagPng:"https://flagcdn.com/w40/nc.png",phoneCode:"+687"},{name:"New Zealand",code:"NZ",flagEmoji:"🇳🇿",flagSvg:"https://flagcdn.com/nz.svg",flagPng:"https://flagcdn.com/w40/nz.png",phoneCode:"+64"},{name:"Nicaragua",code:"NI",flagEmoji:"🇳🇮",flagSvg:"https://flagcdn.com/ni.svg",flagPng:"https://flagcdn.com/w40/ni.png",phoneCode:"+505"},{name:"Niger",code:"NE",flagEmoji:"🇳🇪",flagSvg:"https://flagcdn.com/ne.svg",flagPng:"https://flagcdn.com/w40/ne.png",phoneCode:"+227"},{name:"Nigeria",code:"NG",flagEmoji:"🇳🇬",flagSvg:"https://flagcdn.com/ng.svg",flagPng:"https://flagcdn.com/w40/ng.png",phoneCode:"+234"},{name:"Niue",code:"NU",flagEmoji:"🇳🇺",flagSvg:"https://flagcdn.com/nu.svg",flagPng:"https://flagcdn.com/w40/nu.png",phoneCode:"+683"},{name:"Norfolk Island",code:"NF",flagEmoji:"🇳🇫",flagSvg:"https://flagcdn.com/nf.svg",flagPng:"https://flagcdn.com/w40/nf.png",phoneCode:"+672"},{name:"North Macedonia",code:"MK",flagEmoji:"🇲🇰",flagSvg:"https://flagcdn.com/mk.svg",flagPng:"https://flagcdn.com/w40/mk.png",phoneCode:"+389"},{name:"Northern Mariana Islands",code:"MP",flagEmoji:"🇲🇵",flagSvg:"https://flagcdn.com/mp.svg",flagPng:"https://flagcdn.com/w40/mp.png",phoneCode:"+1670"},{name:"Norway",code:"NO",flagEmoji:"🇳🇴",flagSvg:"https://flagcdn.com/no.svg",flagPng:"https://flagcdn.com/w40/no.png",phoneCode:"+47"},{name:"Oman",code:"OM",flagEmoji:"🇴🇲",flagSvg:"https://flagcdn.com/om.svg",flagPng:"https://flagcdn.com/w40/om.png",phoneCode:"+968"},{name:"Pakistan",code:"PK",flagEmoji:"🇵🇰",flagSvg:"https://flagcdn.com/pk.svg",flagPng:"https://flagcdn.com/w40/pk.png",phoneCode:"+92"},{name:"Palau",code:"PW",flagEmoji:"🇵🇼",flagSvg:"https://flagcdn.com/pw.svg",flagPng:"https://flagcdn.com/w40/pw.png",phoneCode:"+680"},{name:"Palestine, State of",code:"PS",flagEmoji:"🇵🇸",flagSvg:"https://flagcdn.com/ps.svg",flagPng:"https://flagcdn.com/w40/ps.png",phoneCode:"+970"},{name:"Panama",code:"PA",flagEmoji:"🇵🇦",flagSvg:"https://flagcdn.com/pa.svg",flagPng:"https://flagcdn.com/w40/pa.png",phoneCode:"+507"},{name:"Papua New Guinea",code:"PG",flagEmoji:"🇵🇬",flagSvg:"https://flagcdn.com/pg.svg",flagPng:"https://flagcdn.com/w40/pg.png",phoneCode:"+675"},{name:"Paraguay",code:"PY",flagEmoji:"🇵🇾",flagSvg:"https://flagcdn.com/py.svg",flagPng:"https://flagcdn.com/w40/py.png",phoneCode:"+595"},{name:"Peru",code:"PE",flagEmoji:"🇵🇪",flagSvg:"https://flagcdn.com/pe.svg",flagPng:"https://flagcdn.com/w40/pe.png",phoneCode:"+51"},{name:"Philippines",code:"PH",flagEmoji:"🇵🇭",flagSvg:"https://flagcdn.com/ph.svg",flagPng:"https://flagcdn.com/w40/ph.png",phoneCode:"+63"},{name:"Pitcairn",code:"PN",flagEmoji:"🇵🇳",flagSvg:"https://flagcdn.com/pn.svg",flagPng:"https://flagcdn.com/w40/pn.png",phoneCode:"+64"},{name:"Poland",code:"PL",flagEmoji:"🇵🇱",flagSvg:"https://flagcdn.com/pl.svg",flagPng:"https://flagcdn.com/w40/pl.png",phoneCode:"+48"},{name:"Portugal",code:"PT",flagEmoji:"🇵🇹",flagSvg:"https://flagcdn.com/pt.svg",flagPng:"https://flagcdn.com/w40/pt.png",phoneCode:"+351"},{name:"Puerto Rico",code:"PR",flagEmoji:"🇵🇷",flagSvg:"https://flagcdn.com/pr.svg",flagPng:"https://flagcdn.com/w40/pr.png",phoneCode:"+1787"},{name:"Qatar",code:"QA",flagEmoji:"🇶🇦",flagSvg:"https://flagcdn.com/qa.svg",flagPng:"https://flagcdn.com/w40/qa.png",phoneCode:"+974"},{name:"Réunion",code:"RE",flagEmoji:"🇷🇪",flagSvg:"https://flagcdn.com/re.svg",flagPng:"https://flagcdn.com/w40/re.png",phoneCode:"+262"},{name:"Romania",code:"RO",flagEmoji:"🇷🇴",flagSvg:"https://flagcdn.com/ro.svg",flagPng:"https://flagcdn.com/w40/ro.png",phoneCode:"+40"},{name:"Russian Federation",code:"RU",flagEmoji:"🇷🇺",flagSvg:"https://flagcdn.com/ru.svg",flagPng:"https://flagcdn.com/w40/ru.png",phoneCode:"+7"},{name:"Rwanda",code:"RW",flagEmoji:"🇷🇼",flagSvg:"https://flagcdn.com/rw.svg",flagPng:"https://flagcdn.com/w40/rw.png",phoneCode:"+250"},{name:"Saint Barthélemy",code:"BL",flagEmoji:"🇧🇱",flagSvg:"https://flagcdn.com/bl.svg",flagPng:"https://flagcdn.com/w40/bl.png",phoneCode:"+590"},{name:"Saint Helena, Ascension and Tristan da Cunha",code:"SH",flagEmoji:"🇸🇭",flagSvg:"https://flagcdn.com/sh.svg",flagPng:"https://flagcdn.com/w40/sh.png",phoneCode:"+290"},{name:"Saint Kitts and Nevis",code:"KN",flagEmoji:"🇰🇳",flagSvg:"https://flagcdn.com/kn.svg",flagPng:"https://flagcdn.com/w40/kn.png",phoneCode:"+1869"},{name:"Saint Lucia",code:"LC",flagEmoji:"🇱🇨",flagSvg:"https://flagcdn.com/lc.svg",flagPng:"https://flagcdn.com/w40/lc.png",phoneCode:"+1758"},{name:"Saint Martin (French part)",code:"MF",flagEmoji:"🇲🇫",flagSvg:"https://flagcdn.com/mf.svg",flagPng:"https://flagcdn.com/w40/mf.png",phoneCode:"+590"},{name:"Saint Pierre and Miquelon",code:"PM",flagEmoji:"🇵🇲",flagSvg:"https://flagcdn.com/pm.svg",flagPng:"https://flagcdn.com/w40/pm.png",phoneCode:"+508"},{name:"Saint Vincent and the Grenadines",code:"VC",flagEmoji:"🇻🇨",flagSvg:"https://flagcdn.com/vc.svg",flagPng:"https://flagcdn.com/w40/vc.png",phoneCode:"+1784"},{name:"Samoa",code:"WS",flagEmoji:"🇼🇸",flagSvg:"https://flagcdn.com/ws.svg",flagPng:"https://flagcdn.com/w40/ws.png",phoneCode:"+685"},{name:"San Marino",code:"SM",flagEmoji:"🇸🇲",flagSvg:"https://flagcdn.com/sm.svg",flagPng:"https://flagcdn.com/w40/sm.png",phoneCode:"+378"},{name:"Sao Tome and Principe",code:"ST",flagEmoji:"🇸🇹",flagSvg:"https://flagcdn.com/st.svg",flagPng:"https://flagcdn.com/w40/st.png",phoneCode:"+239"},{name:"Saudi Arabia",code:"SA",flagEmoji:"🇸🇦",flagSvg:"https://flagcdn.com/sa.svg",flagPng:"https://flagcdn.com/w40/sa.png",phoneCode:"+966"},{name:"Senegal",code:"SN",flagEmoji:"🇸🇳",flagSvg:"https://flagcdn.com/sn.svg",flagPng:"https://flagcdn.com/w40/sn.png",phoneCode:"+221"},{name:"Serbia",code:"RS",flagEmoji:"🇷🇸",flagSvg:"https://flagcdn.com/rs.svg",flagPng:"https://flagcdn.com/w40/rs.png",phoneCode:"+381"},{name:"Seychelles",code:"SC",flagEmoji:"🇸🇨",flagSvg:"https://flagcdn.com/sc.svg",flagPng:"https://flagcdn.com/w40/sc.png",phoneCode:"+248"},{name:"Sierra Leone",code:"SL",flagEmoji:"🇸🇱",flagSvg:"https://flagcdn.com/sl.svg",flagPng:"https://flagcdn.com/w40/sl.png",phoneCode:"+232"},{name:"Singapore",code:"SG",flagEmoji:"🇸🇬",flagSvg:"https://flagcdn.com/sg.svg",flagPng:"https://flagcdn.com/w40/sg.png",phoneCode:"+65"},{name:"Sint Maarten (Dutch part)",code:"SX",flagEmoji:"🇸🇽",flagSvg:"https://flagcdn.com/sx.svg",flagPng:"https://flagcdn.com/w40/sx.png",phoneCode:"+1721"},{name:"Slovakia",code:"SK",flagEmoji:"🇸🇰",flagSvg:"https://flagcdn.com/sk.svg",flagPng:"https://flagcdn.com/w40/sk.png",phoneCode:"+421"},{name:"Slovenia",code:"SI",flagEmoji:"🇸🇮",flagSvg:"https://flagcdn.com/si.svg",flagPng:"https://flagcdn.com/w40/si.png",phoneCode:"+386"},{name:"Solomon Islands",code:"SB",flagEmoji:"🇸🇧",flagSvg:"https://flagcdn.com/sb.svg",flagPng:"https://flagcdn.com/w40/sb.png",phoneCode:"+677"},{name:"Somalia",code:"SO",flagEmoji:"🇸🇴",flagSvg:"https://flagcdn.com/so.svg",flagPng:"https://flagcdn.com/w40/so.png",phoneCode:"+252"},{name:"South Africa",code:"ZA",flagEmoji:"🇿🇦",flagSvg:"https://flagcdn.com/za.svg",flagPng:"https://flagcdn.com/w40/za.png",phoneCode:"+27"},{name:"South Georgia and the South Sandwich Islands",code:"GS",flagEmoji:"🇬🇸",flagSvg:"https://flagcdn.com/gs.svg",flagPng:"https://flagcdn.com/w40/gs.png",phoneCode:"+500"},{name:"South Sudan",code:"SS",flagEmoji:"🇸🇸",flagSvg:"https://flagcdn.com/ss.svg",flagPng:"https://flagcdn.com/w40/ss.png",phoneCode:"+211"},{name:"Spain",code:"ES",flagEmoji:"🇪🇸",flagSvg:"https://flagcdn.com/es.svg",flagPng:"https://flagcdn.com/w40/es.png",phoneCode:"+34"},{name:"Sri Lanka",code:"LK",flagEmoji:"🇱🇰",flagSvg:"https://flagcdn.com/lk.svg",flagPng:"https://flagcdn.com/w40/lk.png",phoneCode:"+94"},{name:"Sudan",code:"SD",flagEmoji:"🇸🇩",flagSvg:"https://flagcdn.com/sd.svg",flagPng:"https://flagcdn.com/w40/sd.png",phoneCode:"+249"},{name:"Suriname",code:"SR",flagEmoji:"🇸🇷",flagSvg:"https://flagcdn.com/sr.svg",flagPng:"https://flagcdn.com/w40/sr.png",phoneCode:"+597"},{name:"Svalbard and Jan Mayen",code:"SJ",flagEmoji:"🇸🇯",flagSvg:"https://flagcdn.com/sj.svg",flagPng:"https://flagcdn.com/w40/sj.png",phoneCode:"+47"},{name:"Sweden",code:"SE",flagEmoji:"🇸🇪",flagSvg:"https://flagcdn.com/se.svg",flagPng:"https://flagcdn.com/w40/se.png",phoneCode:"+46"},{name:"Switzerland",code:"CH",flagEmoji:"🇨🇭",flagSvg:"https://flagcdn.com/ch.svg",flagPng:"https://flagcdn.com/w40/ch.png",phoneCode:"+41"},{name:"Syrian Arab Republic",code:"SY",flagEmoji:"🇸🇾",flagSvg:"https://flagcdn.com/sy.svg",flagPng:"https://flagcdn.com/w40/sy.png",phoneCode:"+963"},{name:"Taiwan, Province of China",code:"TW",flagEmoji:"🇹🇼",flagSvg:"https://flagcdn.com/tw.svg",flagPng:"https://flagcdn.com/w40/tw.png",phoneCode:"+886"},{name:"Tajikistan",code:"TJ",flagEmoji:"🇹🇯",flagSvg:"https://flagcdn.com/tj.svg",flagPng:"https://flagcdn.com/w40/tj.png",phoneCode:"+992"},{name:"Tanzania, United Republic of",code:"TZ",flagEmoji:"🇹🇿",flagSvg:"https://flagcdn.com/tz.svg",flagPng:"https://flagcdn.com/w40/tz.png",phoneCode:"+255"},{name:"Thailand",code:"TH",flagEmoji:"🇹🇭",flagSvg:"https://flagcdn.com/th.svg",flagPng:"https://flagcdn.com/w40/th.png",phoneCode:"+66"},{name:"Timor-Leste",code:"TL",flagEmoji:"🇹🇱",flagSvg:"https://flagcdn.com/tl.svg",flagPng:"https://flagcdn.com/w40/tl.png",phoneCode:"+670"},{name:"Togo",code:"TG",flagEmoji:"🇹🇬",flagSvg:"https://flagcdn.com/tg.svg",flagPng:"https://flagcdn.com/w40/tg.png",phoneCode:"+228"},{name:"Tokelau",code:"TK",flagEmoji:"🇹🇰",flagSvg:"https://flagcdn.com/tk.svg",flagPng:"https://flagcdn.com/w40/tk.png",phoneCode:"+690"},{name:"Tonga",code:"TO",flagEmoji:"🇹🇴",flagSvg:"https://flagcdn.com/to.svg",flagPng:"https://flagcdn.com/w40/to.png",phoneCode:"+676"},{name:"Trinidad and Tobago",code:"TT",flagEmoji:"🇹🇹",flagSvg:"https://flagcdn.com/tt.svg",flagPng:"https://flagcdn.com/w40/tt.png",phoneCode:"+1868"},{name:"Tunisia",code:"TN",flagEmoji:"🇹🇳",flagSvg:"https://flagcdn.com/tn.svg",flagPng:"https://flagcdn.com/w40/tn.png",phoneCode:"+216"},{name:"Turkey",code:"TR",flagEmoji:"🇹🇷",flagSvg:"https://flagcdn.com/tr.svg",flagPng:"https://flagcdn.com/w40/tr.png",phoneCode:"+90"},{name:"Turkmenistan",code:"TM",flagEmoji:"🇹🇲",flagSvg:"https://flagcdn.com/tm.svg",flagPng:"https://flagcdn.com/w40/tm.png",phoneCode:"+993"},{name:"Turks and Caicos Islands",code:"TC",flagEmoji:"🇹🇨",flagSvg:"https://flagcdn.com/tc.svg",flagPng:"https://flagcdn.com/w40/tc.png",phoneCode:"+1649"},{name:"Tuvalu",code:"TV",flagEmoji:"🇹🇻",flagSvg:"https://flagcdn.com/tv.svg",flagPng:"https://flagcdn.com/w40/tv.png",phoneCode:"+688"},{name:"Uganda",code:"UG",flagEmoji:"🇺🇬",flagSvg:"https://flagcdn.com/ug.svg",flagPng:"https://flagcdn.com/w40/ug.png",phoneCode:"+256"},{name:"Ukraine",code:"UA",flagEmoji:"🇺🇦",flagSvg:"https://flagcdn.com/ua.svg",flagPng:"https://flagcdn.com/w40/ua.png",phoneCode:"+380"},{name:"United Arab Emirates",code:"AE",flagEmoji:"🇦🇪",flagSvg:"https://flagcdn.com/ae.svg",flagPng:"https://flagcdn.com/w40/ae.png",phoneCode:"+971"},{name:"United Kingdom of Great Britain and Northern Ireland",code:"GB",flagEmoji:"🇬🇧",flagSvg:"https://flagcdn.com/gb.svg",flagPng:"https://flagcdn.com/w40/gb.png",phoneCode:"+44"},{name:"United States",code:"US",flagEmoji:"🇺🇸",flagSvg:"https://flagcdn.com/us.svg",flagPng:"https://flagcdn.com/w40/us.png",phoneCode:"+1"},{name:"United States Minor Outlying Islands",code:"UM",flagEmoji:"🇺🇲",flagSvg:"https://flagcdn.com/um.svg",flagPng:"https://flagcdn.com/w40/um.png",phoneCode:"+1"},{name:"Uruguay",code:"UY",flagEmoji:"🇺🇾",flagSvg:"https://flagcdn.com/uy.svg",flagPng:"https://flagcdn.com/w40/uy.png",phoneCode:"+598"},{name:"Uzbekistan",code:"UZ",flagEmoji:"🇺🇿",flagSvg:"https://flagcdn.com/uz.svg",flagPng:"https://flagcdn.com/w40/uz.png",phoneCode:"+998"},{name:"Vanuatu",code:"VU",flagEmoji:"🇻🇺",flagSvg:"https://flagcdn.com/vu.svg",flagPng:"https://flagcdn.com/w40/vu.png",phoneCode:"+678"},{name:"Venezuela (Bolivarian Republic of)",code:"VE",flagEmoji:"🇻🇪",flagSvg:"https://flagcdn.com/ve.svg",flagPng:"https://flagcdn.com/w40/ve.png",phoneCode:"+58"},{name:"Viet Nam",code:"VN",flagEmoji:"🇻🇳",flagSvg:"https://flagcdn.com/vn.svg",flagPng:"https://flagcdn.com/w40/vn.png",phoneCode:"+84"},{name:"Virgin Islands (British)",code:"VG",flagEmoji:"🇻🇬",flagSvg:"https://flagcdn.com/vg.svg",flagPng:"https://flagcdn.com/w40/vg.png",phoneCode:"+1284"},{name:"Virgin Islands (U.S.)",code:"VI",flagEmoji:"🇻🇮",flagSvg:"https://flagcdn.com/vi.svg",flagPng:"https://flagcdn.com/w40/vi.png",phoneCode:"+1340"},{name:"Wallis and Futuna",code:"WF",flagEmoji:"🇼🇫",flagSvg:"https://flagcdn.com/wf.svg",flagPng:"https://flagcdn.com/w40/wf.png",phoneCode:"+681"},{name:"Western Sahara",code:"EH",flagEmoji:"🇪🇭",flagSvg:"https://flagcdn.com/eh.svg",flagPng:"https://flagcdn.com/w40/eh.png",phoneCode:"+212"},{name:"Yemen",code:"YE",flagEmoji:"🇾🇪",flagSvg:"https://flagcdn.com/ye.svg",flagPng:"https://flagcdn.com/w40/ye.png",phoneCode:"+967"},{name:"Zambia",code:"ZM",flagEmoji:"🇿🇲",flagSvg:"https://flagcdn.com/zm.svg",flagPng:"https://flagcdn.com/w40/zm.png",phoneCode:"+260"},{name:"Zimbabwe",code:"ZW",flagEmoji:"🇿🇼",flagSvg:"https://flagcdn.com/zw.svg",flagPng:"https://flagcdn.com/w40/zw.png",phoneCode:"+263"}],Ja=["tabindex"],et={class:"flex items-center gap-2"},lt=["src","alt"],at={key:0,class:"absolute z-[9999] w-full mt-1 bg-white border border-gray-300 rounded-md shadow-lg max-h-60 overflow-y-auto",style:{position:"absolute"}},tt=["onClick"],nt=["src","alt","onError"],ot=e.defineComponent({__name:"index",props:{modelValue:{default:""},placeholder:{default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},customClass:{default:""},autoDetectFromIp:{type:Boolean,default:!0},returnType:{default:"name"},priorityCountries:{default:()=>["US","CA","GB","DE","FR","JP","CN","AU"]},ipDetectUrl:{default:"https://ipinfo.io/json"},ipDetectMethod:{default:"GET"},ipDetectHeaders:{},ipDetectResponseParser:{}},emits:["update:modelValue","change","ip-detect-start","ip-detect-success","ip-detect-error"],setup(l,{expose:u,emit:t}){const a=l,n=t,o=e.ref(!1),s=e.ref(Qa),c=e.computed(()=>a.modelValue?s.value.find(b=>a.returnType==="code"?b.code===a.modelValue:b.name===a.modelValue):null),i=e.computed(()=>{const b=s.value.filter(w=>a.priorityCountries.includes(w.code)),d=s.value.filter(w=>!a.priorityCountries.includes(w.code)),y=b.sort((w,k)=>{const N=a.priorityCountries.indexOf(w.code),E=a.priorityCountries.indexOf(k.code);return N-E}),m=d.sort((w,k)=>w.name.localeCompare(k.name));return[...y,...m]}),r=()=>{a.disabled||(o.value=!o.value)},v=()=>{o.value=!1},h=b=>{if(b){const d=a.returnType==="code"?b.code:b.name;n("update:modelValue",d),n("change",d,b)}else n("update:modelValue","");v()},p=(b,d)=>{const y=b.target;d&&y.src===d.flagSvg?y.src=d.flagPng:c.value&&y.src===c.value.flagSvg&&(y.src=c.value.flagPng)},f=async()=>{if(!(!a.autoDetectFromIp||a.modelValue)){n("ip-detect-start");try{const b={method:a.ipDetectMethod,headers:{"Content-Type":"application/json",...a.ipDetectHeaders}},d=await fetch(a.ipDetectUrl,b);if(!d.ok)throw new Error(`HTTP error! status: ${d.status}`);const y=await d.json();let m;if(a.ipDetectResponseParser?m=a.ipDetectResponseParser(y):m=y.country||y.countryCode||y.country_code||"",m=m.toUpperCase(),!m)throw new Error("Country code not found in response");console.log("Auto-detected country from IP:",m),n("ip-detect-success",m);const w=s.value.find(k=>k.code===m);if(w){const k=a.returnType==="code"?w.code:w.name;n("update:modelValue",k),n("change",k,w)}else console.warn("Detected country code not found in country list:",m)}catch(b){const d=b instanceof Error?b:new Error(String(b));console.warn("Failed to detect country from IP:",d),n("ip-detect-error",d)}}},x=e.ref();return e.onMounted(async()=>{await e.nextTick(),a.autoDetectFromIp&&!a.modelValue&&await f();const b=d=>{x.value&&!x.value.contains(d.target)&&v()};document.addEventListener("click",b),e.onUnmounted(()=>{document.removeEventListener("click",b)})}),u({detectCountryFromIp:f,allCountries:e.readonly(s),sortedCountries:e.readonly(i)}),(b,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:x,class:"country-select-container relative"},[e.createElementVNode("div",{onClick:r,class:e.normalizeClass(["w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[#1a1a1a] focus:border-[#1a1a1a] transition-colors duration-200 cursor-pointer bg-white flex items-center justify-between",l.customClass,{"opacity-60 cursor-not-allowed":l.disabled}]),tabindex:l.disabled?-1:0,onKeydown:[e.withKeys(r,["enter"]),e.withKeys(r,["space"]),e.withKeys(v,["escape"])]},[e.createElementVNode("div",et,[c.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:c.value.flagSvg,alt:c.value.name,class:"w-5 h-4 object-cover rounded-sm",onError:p},null,40,lt)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass({"text-gray-500":!c.value&&l.placeholder})},e.toDisplayString(c.value?c.value.name:l.placeholder||"选择国家"),3)]),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["w-5 h-5 text-gray-400 transition-transform duration-200",{"rotate-180":o.value}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...d[0]||(d[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],42,Ja),o.value&&!l.disabled?(e.openBlock(),e.createElementBlock("div",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,y=>{var m;return e.openBlock(),e.createElementBlock("div",{key:y.code,onClick:w=>h(y),class:e.normalizeClass(["px-3 py-2 hover:bg-gray-50 cursor-pointer flex items-center gap-2 transition-colors",{"bg-gray-100":((m=c.value)==null?void 0:m.code)===y.code}])},[e.createElementVNode("img",{src:y.flagSvg,alt:y.name,class:"w-5 h-4 object-cover rounded-sm flex-shrink-0",onError:w=>p(w,y)},null,40,nt),e.createElementVNode("span",null,e.toDisplayString(y.name),1)],10,tt)}),128))])):e.createCommentVNode("",!0),o.value&&!l.disabled?(e.openBlock(),e.createElementBlock("div",{key:1,class:"fixed inset-0 z-[9998]",onClick:v})):e.createCommentVNode("",!0)],512))}}),ut=ae(ot,[["__scopeId","data-v-08b31f1b"]]),st=["tabindex","aria-expanded","aria-labelledby"],ct={class:"flex items-center gap-2 min-h-0 flex-1"},rt={key:0,class:"text-gray-500"},it={key:1,class:"flex flex-wrap gap-1"},vt={key:0,class:"text-gray-900"},dt=["onClick"],bt={key:0,class:"absolute z-[9999] w-full mt-2 bg-white rounded-xl shadow-xl border border-gray-100/50 max-h-60 overflow-auto backdrop-blur-sm",role:"listbox"},gt={key:0,class:"p-3 border-b border-gray-50/80"},ft={class:"py-1"},ht={key:0,class:"px-4 py-3 text-sm text-gray-400 text-center"},mt=["onClick","onKeydown","aria-selected"],pt={class:"flex items-center gap-3"},yt={key:0,class:"flex items-center"},wt={key:1,class:"flex items-center"},kt={key:0,class:"w-1.5 h-1.5 bg-white rounded-full"},Ct={class:"flex-1"},xt=e.defineComponent({__name:"index",props:{modelValue:{},options:{},placeholder:{default:"请选择..."},multiple:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},labelKey:{default:"label"},valueKey:{default:"value"},noOptionsText:{default:"暂无选项"},clearable:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1},width:{default:"200px"}},emits:["update:modelValue","change","open","close"],setup(l,{expose:u,emit:t}){const a=l,n=t,o=e.ref(!1),s=e.ref(""),c=e.ref(),i=e.ref(),r=e.computed(()=>!a.searchable||!s.value?a.options:a.options.filter(g=>x(g).toLowerCase().includes(s.value.toLowerCase()))),v=e.computed(()=>a.multiple?null:a.options.find(g=>b(g)===a.modelValue)||null),h=e.computed(()=>a.multiple?Array.isArray(a.modelValue)?a.options.filter(g=>a.modelValue.includes(b(g))):[]:[]),p=e.computed(()=>a.multiple?h.value.length>0:v.value!==null),f=e.computed(()=>`select-label-${Math.random().toString(36).substr(2,9)}`),x=g=>typeof g=="object"?g[a.labelKey]:g,b=g=>typeof g=="object"?g[a.valueKey]:g,d=g=>{const $=b(g);return a.multiple?Array.isArray(a.modelValue)&&a.modelValue.includes($):a.modelValue===$},y=g=>{if(g.disabled)return;const $=b(g);if(a.multiple){const S=Array.isArray(a.modelValue)?[...a.modelValue]:[],V=S.indexOf($);V>-1?S.splice(V,1):S.push($),n("update:modelValue",S),n("change",S)}else n("update:modelValue",$),n("change",$),N()},m=g=>{if(!a.multiple)return;const $=b(g),S=Array.isArray(a.modelValue)?[...a.modelValue]:[],V=S.indexOf($);V>-1&&(S.splice(V,1),n("update:modelValue",S),n("change",S))},w=()=>{a.disabled||(o.value?N():k())},k=()=>{o.value=!0,n("open"),e.nextTick(()=>{a.searchable&&i.value&&i.value.focus()})},N=()=>{o.value=!1,s.value="",n("close")},E=g=>{c.value&&!c.value.contains(g.target)&&N()},M=g=>{if(!o.value)return;const $=r.value,S=$.findIndex(V=>d(V));switch(g.key){case"ArrowDown":g.preventDefault();break;case"ArrowUp":g.preventDefault();break;case"Enter":case" ":g.preventDefault(),S>=0&&$[S]&&y($[S]);break}};return e.onMounted(()=>{document.addEventListener("click",E),document.addEventListener("keydown",M)}),e.onUnmounted(()=>{document.removeEventListener("click",E),document.removeEventListener("keydown",M)}),u({open:k,close:N,toggle:w}),(g,$)=>(e.openBlock(),e.createElementBlock("div",{class:"relative",style:e.normalizeStyle({width:l.width}),ref_key:"selectContainer",ref:c},[e.createElementVNode("div",{onClick:w,onKeydown:[e.withKeys(w,["enter"]),e.withKeys(w,["space"]),e.withKeys(N,["escape"])],class:e.normalizeClass(["flex items-center justify-between w-full px-4 py-1.5 text-sm bg-white rounded-md cursor-pointer transition-all duration-200 border ","focus:outline-none focus:ring-2 focus:ring-[#1a1a1a]/50 focus:ring-offset-1",{"shadow-sm hover:shadow-md border border-gray-200/60 hover:border-gray-300/80":!l.disabled&&!l.borderless,"shadow-sm hover:shadow-md":!l.disabled&&l.borderless,"bg-gray-50/50 cursor-not-allowed border border-gray-100":l.disabled,"ring-1 ring-[#1a1a1a]/50 border-[#1a1a1a]/50 shadow-md":o.value&&!l.borderless,"ring-1 ring-[#1a1a1a]/50 shadow-md":o.value&&l.borderless}]),tabindex:l.disabled?-1:0,role:"combobox","aria-expanded":o.value,"aria-haspopup":!0,"aria-labelledby":f.value},[e.createElementVNode("div",ct,[l.placeholder&&!p.value?(e.openBlock(),e.createElementBlock("span",rt,e.toDisplayString(l.placeholder),1)):(e.openBlock(),e.createElementBlock("div",it,[l.multiple?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(h.value,S=>(e.openBlock(),e.createElementBlock("span",{key:b(S),class:"inline-flex items-center gap-1.5 px-2.5 py-1 text-xs bg-[#FFF] text-[#1a1a1a] rounded-full border border-[#1a1a1a]/50"},[e.createTextVNode(e.toDisplayString(x(S))+" ",1),e.createElementVNode("button",{onClick:e.withModifiers(V=>m(S),["stop"]),class:"rounded-full p-0.5 transition-colors duration-150",type:"button"},[...$[1]||($[1]=[e.createElementVNode("i",{class:"bi bi-x text-xs text-[#1a1a1a]"},null,-1)])],8,dt)]))),128)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[v.value?(e.openBlock(),e.createElementBlock("span",vt,e.toDisplayString(x(v.value)),1)):e.createCommentVNode("",!0)],64))]))]),e.createVNode(e.unref(te),{class:e.normalizeClass(["text-gray-400 transition-transform duration-300 ease-in-out text-lg",{"rotate-180":o.value,"rotate-0":!o.value}]),icon:"mdi:chevron-down"},null,8,["class"])],42,st),e.createVNode(e.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition ease-in duration-150","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock("div",bt,[l.searchable?(e.openBlock(),e.createElementBlock("div",gt,[e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:i,"onUpdate:modelValue":$[0]||($[0]=S=>s.value=S),type:"text",class:"w-full px-3 py-2 text-sm bg-gray-50/50 border border-gray-200/60 rounded-lg focus:outline-none focus:ring-1 focus:ring-[#1a1a1a]/50 focus:border-[#1a1a1a]/50 transition-all duration-200",placeholder:"搜索...",onKeydown:e.withKeys(N,["escape"])},null,544),[[e.vModelText,s.value]])])):e.createCommentVNode("",!0),e.createElementVNode("div",ft,[r.value.length===0?(e.openBlock(),e.createElementBlock("div",ht,e.toDisplayString(l.noOptionsText),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,S=>(e.openBlock(),e.createElementBlock("div",{key:b(S),onClick:V=>y(S),onKeydown:[e.withKeys(V=>y(S),["enter"]),e.withKeys(V=>y(S),["space"])],class:e.normalizeClass(["px-4 py-3 text-sm cursor-pointer transition-all duration-150",{"bg-[#f2f2f2] text-[#1a1a1a] font-medium":d(S),"hover:bg-[#f2f2f2] text-gray-700":!d(S)}]),role:"option","aria-selected":d(S),tabindex:0},[e.createElementVNode("div",pt,[l.multiple?(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",{class:e.normalizeClass(["w-4 h-4 rounded border flex items-center justify-center transition-all duration-150",{"border-[#1a1a1a] ":d(S),"border-gray-300 bg-white":!d(S)}])},[d(S)?(e.openBlock(),e.createBlock(e.unref(te),{key:0,icon:"mdi:check",class:"text-[#1a1a1a] text-xs font-bold"})):e.createCommentVNode("",!0)],2)])):(e.openBlock(),e.createElementBlock("div",wt,[e.createElementVNode("div",{class:e.normalizeClass(["w-4 h-4 rounded-full border-2 flex items-center justify-center transition-all duration-150",{"border-[#1a1a1a] bg-[#1a1a1a]":d(S),"border-gray-300 bg-white":!d(S)}])},[d(S)?(e.openBlock(),e.createElementBlock("div",kt)):e.createCommentVNode("",!0)],2)])),e.createElementVNode("span",Ct,e.toDisplayString(x(S)),1)])],42,mt))),128))])])):e.createCommentVNode("",!0)]),_:1})],4))}}),St=ae(xt,[["__scopeId","data-v-9347fa7f"]]),Et=["type","value","placeholder","disabled","readonly","required","maxlength","minlength","autocomplete"],$t={key:2,class:"x-input-count"},Mt=e.defineComponent({__name:"index",props:{modelValue:{},type:{default:"text"},placeholder:{default:""},label:{default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},maxlength:{},minlength:{},autocomplete:{default:"off"},error:{type:Boolean,default:!1},width:{default:"100%"}},emits:["update:modelValue","input","change","blur","focus","clear","keydown","keyup"],setup(l,{expose:u,emit:t}){const a=l,n=t,o=e.ref(),s=e.ref(!1),c=e.computed(()=>!!a.label),i=e.computed(()=>{const k=a.modelValue;return k!=null&&k!==""}),r=e.computed(()=>String(a.modelValue||"").length),v=k=>{const E=k.target.value;n("update:modelValue",E),n("input",E,k)},h=k=>{const E=k.target.value;n("change",E,k)},p=k=>{s.value=!1,n("blur",k)},f=k=>{s.value=!0,n("focus",k)},x=k=>{n("keydown",k)},b=k=>{n("keyup",k)},d=()=>{var k;n("update:modelValue",""),n("clear"),(k=o.value)==null||k.focus()};return u({focus:()=>{var k;(k=o.value)==null||k.focus()},blur:()=>{var k;(k=o.value)==null||k.blur()},select:()=>{var k;(k=o.value)==null||k.select()},ref:o}),(k,N)=>(e.openBlock(),e.createElementBlock("div",{class:"x-input-group",style:e.normalizeStyle({width:l.width})},[e.createElementVNode("input",{ref_key:"inputRef",ref:o,type:l.type,value:l.modelValue,placeholder:c.value?"":l.placeholder,disabled:l.disabled,readonly:l.readonly,required:l.required,maxlength:l.maxlength,minlength:l.minlength,autocomplete:l.autocomplete,class:e.normalizeClass(["x-input",{"x-input--disabled":l.disabled,"x-input--error":l.error,"x-input--clearable":l.clearable&&l.modelValue,"x-input--with-label":c.value}]),onInput:v,onBlur:p,onFocus:f,onKeydown:x,onKeyup:b,onChange:h},null,42,Et),l.label?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass(["x-input-label",{"x-input-label--active":s.value||i.value,"x-input-label--error":l.error}])},e.toDisplayString(l.label),3)):e.createCommentVNode("",!0),l.clearable&&l.modelValue&&!l.disabled?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"x-input-clear",onClick:d,onMousedown:N[0]||(N[0]=e.withModifiers(()=>{},["prevent"]))},[e.createVNode(e.unref(te),{icon:"bi:x-circle"})],32)):e.createCommentVNode("",!0),l.showWordLimit&&l.maxlength?(e.openBlock(),e.createElementBlock("div",$t,e.toDisplayString(r.value)+" / "+e.toDisplayString(l.maxlength),1)):e.createCommentVNode("",!0)],4))}}),Bt=ae(Mt,[["__scopeId","data-v-d7d149e3"]]),Pt={class:"x-checkboxes"},Vt=["onClick"],jt={class:"checkbox-wrapper"},Nt=["checked","disabled","onChange"],Lt={class:"checkbox-custom"},Tt={key:0,class:"check-icon",viewBox:"0 0 24 24"},Dt={class:"option-label"},At=e.defineComponent({__name:"index",props:{options:{},modelValue:{default:()=>[]},placeholder:{default:"请选择选项"},maxSelections:{default:0},disabled:{type:Boolean,default:!1},layout:{default:"vertical"},columns:{default:3}},emits:["update:modelValue","change"],setup(l,{expose:u,emit:t}){const a=l,n=t,o=h=>a.modelValue&&a.modelValue.includes(h),s=h=>{if(a.disabled)return;const p=a.options.find(b=>b.value===h);if(p!=null&&p.disabled)return;const f=[...a.modelValue],x=f.indexOf(h);if(x>-1)f.splice(x,1);else{if(a.maxSelections>0&&f.length>=a.maxSelections)return;f.push(h)}n("update:modelValue",f),n("change",f)},c=h=>{!a.disabled&&!h.disabled&&s(h.value)};return u({clearAll:()=>{a.disabled||(n("update:modelValue",[]),n("change",[]))},selectAll:()=>{if(a.disabled)return;const p=a.options.filter(f=>!f.disabled).map(f=>f.value);a.maxSelections>0?(n("update:modelValue",p.slice(0,a.maxSelections)),n("change",p.slice(0,a.maxSelections))):(n("update:modelValue",p),n("change",p))},removeOption:h=>{s(h)}}),(h,p)=>(e.openBlock(),e.createElementBlock("div",Pt,[e.createElementVNode("div",{class:e.normalizeClass(["options-container",[`options-container--${l.layout}`,{"options-container--disabled":l.disabled}]]),style:e.normalizeStyle(l.layout==="grid"?{gridTemplateColumns:`repeat(${l.columns}, 1fr)`}:{})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.options,f=>(e.openBlock(),e.createElementBlock("div",{key:f.value,class:e.normalizeClass(["option-item",{"option-selected":o(f.value),"option-disabled":l.disabled||f.disabled}]),onClick:x=>c(f)},[e.createElementVNode("div",jt,[e.createElementVNode("input",{type:"checkbox",checked:o(f.value),disabled:l.disabled||f.disabled,onChange:e.withModifiers(x=>s(f.value),["stop"]),class:"checkbox-input"},null,40,Nt),e.createElementVNode("div",Lt,[o(f.value)?(e.openBlock(),e.createElementBlock("svg",Tt,[...p[0]||(p[0]=[e.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1)])])):e.createCommentVNode("",!0)])]),e.createElementVNode("span",Dt,e.toDisplayString(f.label),1)],10,Vt))),128))],6)]))}}),zt=ae(At,[["__scopeId","data-v-05984fcf"]]),It=["onClick","disabled","aria-expanded","aria-controls"],_t={class:"accordion-title"},Ot={class:"accordion-icon"},Yt=["id"],Ft={class:"accordion-body"},Xt=e.defineComponent({__name:"index",props:{items:{},allowMultiple:{type:Boolean,default:!1},defaultOpen:{default:()=>[]},bordered:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["change","item-click"],setup(l,{expose:u,emit:t}){const a=l,n=t,o=e.ref(new Set(a.defaultOpen)),s=e.ref({}),c=e.ref({}),i=(b,d)=>{b&&(c.value[d]=b,e.nextTick(()=>{const y=b.querySelector(".accordion-body");y&&(s.value[d]=y.scrollHeight)}))},r=b=>{var y;if(a.disabled||(y=a.items[b])!=null&&y.disabled)return;const d=o.value.has(b);a.allowMultiple?d?o.value.delete(b):o.value.add(b):d?o.value.clear():(o.value.clear(),o.value.add(b)),n("item-click",b,!d),n("change",Array.from(o.value))},v=b=>o.value.has(b);return e.watch(()=>a.defaultOpen,b=>{o.value=new Set(b)},{deep:!0}),e.watch(()=>a.items,()=>{e.nextTick(()=>{Object.keys(c.value).forEach(b=>{const d=parseInt(b),y=c.value[d];if(y){const m=y.querySelector(".accordion-body");m&&(s.value[d]=m.scrollHeight)}})})},{deep:!0}),u({openItem:b=>{var d;!a.disabled&&!((d=a.items[b])!=null&&d.disabled)&&(o.value.has(b)||(a.allowMultiple||o.value.clear(),o.value.add(b),n("change",Array.from(o.value))))},closeItem:b=>{o.value.has(b)&&(o.value.delete(b),n("change",Array.from(o.value)))},openAll:()=>{a.allowMultiple&&!a.disabled&&(a.items.forEach((b,d)=>{b.disabled||o.value.add(d)}),n("change",Array.from(o.value)))},closeAll:()=>{o.value.clear(),n("change",[])},toggle:r}),(b,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["accordion-container",{"accordion-container--bordered":l.bordered}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:y.id||m,class:e.normalizeClass(["accordion-item",{"is-open":v(m),"is-disabled":l.disabled||y.disabled}])},[e.createElementVNode("button",{onClick:w=>r(m),class:"accordion-header",disabled:l.disabled||y.disabled,"aria-expanded":v(m),"aria-controls":`accordion-content-${m}`},[e.createElementVNode("span",_t,e.toDisplayString(y.title),1),e.createElementVNode("div",Ot,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["accordion-arrow",{"accordion-arrow--rotate":v(m)}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:"2"},[...d[0]||(d[0]=[e.createElementVNode("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"},null,-1)])],2))])],8,It),e.createElementVNode("div",{id:`accordion-content-${m}`,class:"accordion-content",style:e.normalizeStyle({maxHeight:v(m)?`${s.value[m]}px`:"0px"}),ref_for:!0,ref:w=>i(w,m)},[e.createElementVNode("div",Ft,e.toDisplayString(y.content),1)],12,Yt)],2))),128))],2))}}),Ht=ae(Xt,[["__scopeId","data-v-c5fef037"]]),Rt={class:"thumbnail-container-wrapper relative"},Wt=["onMouseenter","onClick"],Gt=["src","alt"],Ut={class:"thumbnail-index"},Kt=e.defineComponent({__name:"index",props:{images:{default:()=>[]},modelValue:{default:0},autoScroll:{type:Boolean,default:!0},showIndex:{type:Boolean,default:!0}},emits:["update:modelValue","change","hover"],setup(l,{expose:u,emit:t}){const a=l,n=t,o=e.ref(a.modelValue),s=e.ref(null),c=e.ref([]),i=e.ref(!1),r=e.ref(!1),v=e.ref(0),h=e.ref(!1),p=e.ref(!1),f=()=>{N()},x=(g,$)=>{g&&g instanceof HTMLElement&&(c.value[$]=g)},b=g=>{n("hover",g)},d=()=>{},y=g=>{o.value=g,n("update:modelValue",g),n("change",g),a.autoScroll&&e.nextTick(()=>{k(g),setTimeout(()=>{N()},300)})},m=()=>{if(!s.value)return;const g=s.value,$=g.clientWidth*.8;g.scrollBy({left:-$,behavior:"smooth"})},w=()=>{if(!s.value)return;const g=s.value,$=g.clientWidth*.8;g.scrollBy({left:$,behavior:"smooth"})},k=g=>{if(!s.value||c.value.length===0)return;const $=s.value,S=c.value[g];if(!S)return;const V=2,z=S.offsetWidth+8;let L=0;g>=V&&(L=(g-V)*z);const T=$.scrollWidth-$.clientWidth;L=Math.max(0,Math.min(L,T)),$.scrollTo({left:L,behavior:"smooth"})},N=()=>{if(!s.value)return;const g=s.value,$=g.scrollLeft,S=g.scrollWidth-g.clientWidth;i.value=$>0,r.value=$<S,S>0?v.value=$/S*100:v.value=0;const V=E();h.value=a.images.length>V&&i.value,p.value=a.images.length>V&&r.value},E=()=>{var X;if(!s.value||c.value.length===0)return 4;const $=s.value.clientWidth-32,F=(((X=c.value[0])==null?void 0:X.offsetWidth)||80)+12;return Math.floor($/F)},M=g=>{g>=0&&g<a.images.length&&y(g)};return e.watch(()=>a.modelValue,g=>{g!==void 0&&g!==o.value&&(o.value=g,a.autoScroll&&e.nextTick(()=>{k(g)}))}),e.watch(()=>a.images,()=>{e.nextTick(()=>{N()})},{deep:!0}),e.onMounted(()=>{e.nextTick(()=>{N()})}),u({setCurrentIndex:M,scrollLeft:m,scrollRight:w,updateScrollState:N}),(g,$)=>(e.openBlock(),e.createElementBlock("div",Rt,[h.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:m,class:"scroll-arrow scroll-arrow-left","aria-label":"向左滚动"},[...$[1]||($[1]=[e.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M15 18l-6-6 6-6"})],-1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"thumbnailContainer",ref:s,onScroll:f,class:"thumbnail-scroll-container"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.images,(S,V)=>(e.openBlock(),e.createElementBlock("div",{key:V,ref_for:!0,ref:F=>x(F,V),onMouseenter:F=>b(V),onMouseleave:$[0]||($[0]=F=>d()),onClick:F=>y(V),class:e.normalizeClass(["thumbnail-item",{"thumbnail-item--active":o.value===V,"thumbnail-item--inactive":o.value!==V}])},[e.createElementVNode("img",{src:S,alt:`缩略图 ${V+1}`,class:e.normalizeClass(["thumbnail-image",{"thumbnail-image--active":o.value===V,"thumbnail-image--inactive":o.value!==V}])},null,10,Gt),e.createElementVNode("div",Ut,e.toDisplayString(V+1),1)],42,Wt))),128))],544),p.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:w,class:"scroll-arrow scroll-arrow-right","aria-label":"向右滚动"},[...$[2]||($[2]=[e.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M9 18l6-6-6-6"})],-1)])])):e.createCommentVNode("",!0)]))}}),qt=ae(Kt,[["__scopeId","data-v-809b97a6"]]),Zt=e.defineComponent({__name:"index",props:{width:{default:"100%"},height:{default:"1rem"},shape:{default:"rectangle"},animated:{type:Boolean,default:!0},loading:{type:Boolean,default:!0},class:{default:""},style:{default:()=>({})}},setup(l){const u=l,t=e.computed(()=>typeof u.width=="string"?u.width.includes("%")||u.width.includes("px")||u.width.includes("rem")?"":`w-${u.width}`:""),a=e.computed(()=>typeof u.height=="string"?u.height.includes("%")||u.height.includes("px")||u.height.includes("rem")?"":`h-${u.height}`:""),n=e.computed(()=>{switch(u.shape){case"circle":return"rounded-full";case"rounded":return"rounded-lg";default:return"rounded"}}),o=e.computed(()=>u.class),s=e.computed(()=>{const c={...u.style};return typeof u.width=="string"&&(u.width.includes("%")||u.width.includes("px")||u.width.includes("rem"))?c.width=u.width:typeof u.width=="number"&&(c.width=`${u.width}px`),typeof u.height=="string"&&(u.height.includes("%")||u.height.includes("px")||u.height.includes("rem"))?c.height=u.height:typeof u.height=="number"&&(c.height=`${u.height}px`),c});return(c,i)=>l.loading?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["bg-gray-200",[t.value,a.value,n.value,o.value,{"animate-pulse":l.animated}]]),style:e.normalizeStyle(s.value)},null,6)):e.renderSlot(c.$slots,"default",{key:1},void 0,!0)}}),Qt=ae(Zt,[["__scopeId","data-v-db4a4465"]]),Jt={key:0,class:"modal-header"},en={class:"modal-title"},ln={class:"modal-body"},an={key:1,class:"modal-footer"},tn={key:0,class:"loading-spinner"},nn=e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1},title:{default:"提示"},width:{},size:{default:"medium"},fullscreen:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},showCancel:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},cancelText:{default:"取消"},confirmText:{default:"确定"},confirmLoading:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},escClosable:{type:Boolean,default:!0}},emits:["update:visible","close","cancel","confirm","opened","closed"],setup(l,{expose:u,emit:t}){const a=l,n=t,o=()=>{n("update:visible",!1),n("close")},s=()=>{n("cancel"),n("update:visible",!1)},c=()=>{n("confirm")},i=()=>{a.maskClosable&&o()},r=v=>{v.key==="Escape"&&a.escClosable&&a.visible&&o()};return e.watch(()=>a.visible,v=>{v?(document.addEventListener("keydown",r),document.body.style.overflow="hidden",n("opened")):(document.removeEventListener("keydown",r),document.body.style.overflow="",n("closed"))}),u({close:o}),(v,h)=>{const p=e.resolveComponent("XButton");return e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{"enter-active-class":"transition-opacity duration-300","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition-opacity duration-300","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:e.withCtx(()=>[l.visible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-mask",onClick:i},[e.createVNode(e.Transition,{"enter-active-class":"transition-all duration-300","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition-all duration-300","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:e.withCtx(()=>[l.visible?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["modal-container",[`modal-container--${l.size}`,{"modal-container--fullscreen":l.fullscreen}]]),style:e.normalizeStyle({width:l.width}),onClick:h[0]||(h[0]=e.withModifiers(()=>{},["stop"]))},[l.showHeader?(e.openBlock(),e.createElementBlock("div",Jt,[e.renderSlot(v.$slots,"header",{},()=>[e.createElementVNode("h3",en,e.toDisplayString(l.title),1)],!0),l.showClose?(e.openBlock(),e.createBlock(p,{key:0,size:"small",class:"modal-close",icon:"mdi:close",onClick:o,"aria-label":"关闭"},{default:e.withCtx(()=>[e.createVNode(e.unref(te),{icon:"mdi:close"})]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",ln,[e.renderSlot(v.$slots,"default",{},void 0,!0)]),l.showFooter?(e.openBlock(),e.createElementBlock("div",an,[e.renderSlot(v.$slots,"footer",{},()=>[l.showCancel?(e.openBlock(),e.createBlock(p,{key:0,size:"small",ghost:"",type:"danger",onClick:s},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.cancelText),1)]),_:1})):e.createCommentVNode("",!0),l.showConfirm?(e.openBlock(),e.createBlock(p,{key:1,size:"small",ghost:"",type:"primary",onClick:c,disabled:l.confirmLoading},{default:e.withCtx(()=>[l.confirmLoading?(e.openBlock(),e.createElementBlock("span",tn)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l.confirmText),1)]),_:1},8,["disabled"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0)]),_:3})])):e.createCommentVNode("",!0)]),_:3})])}}}),on=ae(nn,[["__scopeId","data-v-6b874658"]]),un={class:"x-tooltip-trigger"},sn={class:"tooltip-label"},cn={class:"tooltip-text"},rn={class:"tooltip-hover-text"},vn=e.defineComponent({__name:"index",props:{content:{},placement:{default:"top"},variant:{default:"basic"},label:{default:"Hover"},hoverText:{default:""}},setup(l){return(u,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([l.variant==="basic"?"x-tooltip-wrapper":"x-tooltip-rich-wrapper",l.variant==="rich"&&`rich-${l.placement}`])},[l.variant==="basic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",un,[e.renderSlot(u.$slots,"default",{},void 0,!0)]),e.createElementVNode("div",{class:e.normalizeClass(["x-tooltip",`tooltip-${l.placement}`])},[e.createTextVNode(e.toDisplayString(l.content)+" ",1),e.createElementVNode("div",{class:e.normalizeClass(["tooltip-arrow",`arrow-${l.placement}`])},null,2)],2)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",sn,e.toDisplayString(l.label),1),e.createElementVNode("span",cn,e.toDisplayString(l.content),1),e.createElementVNode("span",rn,e.toDisplayString(l.hoverText||l.label),1)],64))],2))}}),dn=ae(vn,[["__scopeId","data-v-6d3b782b"]]),bn=["id","checked","disabled"],gn=["for"],fn={key:0,class:"loading-spinner"},hn=e.defineComponent({__name:"index",props:{modelValue:{type:Boolean},disabled:{type:Boolean,default:!1},size:{default:"medium"},color:{default:"#1a1a1a"},shadowColor:{default:"#1a1a1a"},thumbColor:{default:"#ffffff"},loading:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(l,{emit:u}){const t=l,a=u,n=e.computed(()=>`switch-${Math.random().toString(36).substr(2,9)}`),o=e.computed(()=>{const r=t.color||"#0974f1",v=t.shadowColor||r,h=t.thumbColor||"#ffffff",p=c(r,.9),f=c(r,.2);return{"--switch-color":r,"--switch-color-rgb":s(r),"--switch-shadow-color":v,"--switch-shadow-color-rgb":s(v),"--switch-thumb-color":h,"--switch-bg-color":p,"--switch-active-color":f}}),s=r=>{const v=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);if(v){const h=parseInt(v[1],16),p=parseInt(v[2],16),f=parseInt(v[3],16);return`${h}, ${p}, ${f}`}return"26, 26, 26"},c=(r,v)=>{const h=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);if(h){const p=parseInt(h[1],16),f=parseInt(h[2],16),x=parseInt(h[3],16),b=Math.round(p+(255-p)*v),d=Math.round(f+(255-f)*v),y=Math.round(x+(255-x)*v);return`#${b.toString(16).padStart(2,"0")}${d.toString(16).padStart(2,"0")}${y.toString(16).padStart(2,"0")}`}return"#e5e7eb"},i=()=>{if(!t.disabled&&!t.loading){const r=!t.modelValue;a("change",r),a("update:modelValue",r)}};return(r,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["switch",[`size-${l.size}`,{disabled:l.disabled},{loading:l.loading},{checked:l.modelValue}]]),style:e.normalizeStyle(o.value)},[e.createElementVNode("input",{id:n.value,checked:l.modelValue,onChange:i,disabled:l.disabled||l.loading,type:"checkbox"},null,40,bn),e.createElementVNode("label",{for:n.value,class:"slider"},[l.loading?(e.openBlock(),e.createElementBlock("span",fn,[...v[0]||(v[0]=[e.createElementVNode("span",{class:"spinner-inner"},null,-1)])])):e.createCommentVNode("",!0)],8,gn)],6))}}),mn=ae(hn,[["__scopeId","data-v-66bcec99"]]),pn={class:"rating"},yn=["title","onClick"],wn=["name","value","disabled","checked"],kn={key:0,class:"score-text"},Cn={key:1,class:"score-value"},xn=e.defineComponent({__name:"index",props:{modelValue:{default:0},maxStars:{default:5},size:{default:"medium"},disabled:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showValue:{type:Boolean,default:!1},texts:{default:()=>["极差","差","一般","好","极好"]},allowHalf:{type:Boolean,default:!1},color:{default:"#ffc73a"}},emits:["update:modelValue","change"],setup(l,{emit:u}){e.useCssVars(i=>({v45ed3bbe:i.color}));const t=l,a=u,n=e.computed(()=>Math.random().toString(36).substr(2,9)),o=i=>{t.disabled||(a("update:modelValue",i),a("change",i))},s=i=>t.texts&&t.texts[i-1]?`${i}星 - ${t.texts[i-1]}`:`${i}星`,c=()=>t.modelValue===0?"未评分":t.texts&&t.texts[t.modelValue-1]?t.texts[t.modelValue-1]:`${t.modelValue}星`;return(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["x-score",[`score-${l.size}`,{"score-disabled":l.disabled}]])},[e.createElementVNode("div",pn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.maxStars,v=>(e.openBlock(),e.createElementBlock("label",{key:v,class:e.normalizeClass({"star-filled":v<=l.modelValue}),title:s(v),onClick:h=>o(v)},[e.createElementVNode("input",{type:"radio",name:`star-radio-${n.value}`,value:v,disabled:l.disabled,checked:l.modelValue===v,style:{display:"none"}},null,8,wn),r[0]||(r[0]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e.createElementVNode("path",{pathLength:"360",d:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"})],-1))],10,yn))),128))]),l.showText?(e.openBlock(),e.createElementBlock("div",kn,e.toDisplayString(c()),1)):e.createCommentVNode("",!0),l.showValue?(e.openBlock(),e.createElementBlock("div",Cn,e.toDisplayString(l.modelValue)+"/"+e.toDisplayString(l.maxStars),1)):e.createCommentVNode("",!0)],2))}}),Sn=ae(xn,[["__scopeId","data-v-3cdb1a2c"]]),En=["name","value","disabled","checked","onChange"],$n={key:0,class:"radio-button"},Mn={class:"radio-content"},Bn={key:0,class:"radio-icon"},Pn={class:"radio-text"},Vn={class:"radio-label"},jn={key:0,class:"radio-description"},Nn={key:1,class:"payment-method-container"},Ln={class:"payment-content"},Tn={class:"payment-icon"},Dn={class:"payment-label"},An=["name","value","disabled","checked","onChange"],zn=e.defineComponent({__name:"index",props:{modelValue:{default:""},options:{default:()=>[]},size:{default:"medium"},disabled:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},name:{default:"radio-group"},direction:{default:"vertical"},variant:{default:"standard"},mode:{default:"default"}},emits:["update:modelValue","change"],setup(l,{emit:u}){const t=l,a=u,n=[{value:"google",label:"Google Pay",icon:"logos:google-pay"},{value:"apple",label:"Apple Pay",icon:"logos:apple-pay"},{value:"paypal",label:"Paypal",icon:"logos:paypal"},{value:"visa",label:"Credit Card",icon:"logos:visa"}],o=s=>{t.disabled||(a("update:modelValue",s),a("change",s))};return(s,c)=>l.variant==="standard"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["x-radio-group",[`radio-${l.size}`,`radio-${l.direction}`,`radio-${l.mode}`,{"radio-disabled":l.disabled}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.options,i=>(e.openBlock(),e.createElementBlock("label",{key:i.value,class:e.normalizeClass(["x-radio-item",[{"radio-item-checked":l.modelValue===i.value},{"radio-item-disabled":l.disabled||i.disabled}]])},[e.createElementVNode("input",{type:"radio",name:l.name,value:i.value,disabled:l.disabled||i.disabled,checked:l.modelValue===i.value,onChange:r=>o(i.value),class:"radio-input"},null,40,En),l.mode==="default"?(e.openBlock(),e.createElementBlock("div",$n,[...c[0]||(c[0]=[e.createElementVNode("div",{class:"radio-button-inner"},null,-1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",Mn,[i.icon||l.showIcon?(e.openBlock(),e.createElementBlock("div",Bn,[e.renderSlot(s.$slots,"icon",{option:i},()=>[i.icon?(e.openBlock(),e.createBlock(e.unref(te),{key:0,icon:i.icon},null,8,["icon"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Pn,[e.createElementVNode("div",Vn,e.toDisplayString(i.label),1),i.description?(e.openBlock(),e.createElementBlock("div",jn,e.toDisplayString(i.description),1)):e.createCommentVNode("",!0)]),e.renderSlot(s.$slots,"content",{option:i},void 0,!0)])],2))),128))],2)):(e.openBlock(),e.createElementBlock("div",Nn,[c[1]||(c[1]=e.createElementVNode("p",{class:"payment-title"},"Payment method",-1)),c[2]||(c[2]=e.createElementVNode("p",{class:"payment-subtitle"},[e.createTextVNode(" This component is made by using "),e.createElementVNode("span",{class:"payment-highlight"},"`:has() pseudo-class`")],-1)),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,i=>e.createElementVNode("label",{key:i.value,class:e.normalizeClass(["payment-option",{"payment-option-checked":l.modelValue===i.value}])},[e.createElementVNode("div",Ln,[e.createElementVNode("div",Tn,[e.createVNode(e.unref(te),{icon:i.icon},null,8,["icon"])]),e.createElementVNode("p",Dn,e.toDisplayString(i.label),1)]),e.createElementVNode("input",{type:"radio",name:l.name,value:i.value,disabled:l.disabled,checked:l.modelValue===i.value,onChange:r=>o(i.value),class:"payment-input"},null,40,An)],2)),64))]))}}),In=ae(zn,[["__scopeId","data-v-0b609d3b"]]);var ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ce(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var ul={exports:{}};(function(l,u){(function(t,a){l.exports=a()})(ue,function(){var t=1e3,a=6e4,n=36e5,o="millisecond",s="second",c="minute",i="hour",r="day",v="week",h="month",p="quarter",f="year",x="date",b="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var L=["th","st","nd","rd"],T=z%100;return"["+z+(L[(T-20)%10]||L[T]||L[0])+"]"}},w=function(z,L,T){var A=String(z);return!A||A.length>=L?z:""+Array(L+1-A.length).join(T)+z},k={s:w,z:function(z){var L=-z.utcOffset(),T=Math.abs(L),A=Math.floor(T/60),B=T%60;return(L<=0?"+":"-")+w(A,2,"0")+":"+w(B,2,"0")},m:function z(L,T){if(L.date()<T.date())return-z(T,L);var A=12*(T.year()-L.year())+(T.month()-L.month()),B=L.clone().add(A,h),P=T-B<0,_=L.clone().add(A+(P?-1:1),h);return+(-(A+(T-B)/(P?B-_:_-B))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:h,y:f,w:v,d:r,D:x,h:i,m:c,s,ms:o,Q:p}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},N="en",E={};E[N]=m;var M="$isDayjsObject",g=function(z){return z instanceof F||!(!z||!z[M])},$=function z(L,T,A){var B;if(!L)return N;if(typeof L=="string"){var P=L.toLowerCase();E[P]&&(B=P),T&&(E[P]=T,B=P);var _=L.split("-");if(!B&&_.length>1)return z(_[0])}else{var Y=L.name;E[Y]=L,B=Y}return!A&&B&&(N=B),B||!A&&N},S=function(z,L){if(g(z))return z.clone();var T=typeof L=="object"?L:{};return T.date=z,T.args=arguments,new F(T)},V=k;V.l=$,V.i=g,V.w=function(z,L){return S(z,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var F=function(){function z(T){this.$L=$(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[M]=!0}var L=z.prototype;return L.parse=function(T){this.$d=function(A){var B=A.date,P=A.utc;if(B===null)return new Date(NaN);if(V.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var _=B.match(d);if(_){var Y=_[2]-1||0,G=(_[7]||"0").substring(0,3);return P?new Date(Date.UTC(_[1],Y,_[3]||1,_[4]||0,_[5]||0,_[6]||0,G)):new Date(_[1],Y,_[3]||1,_[4]||0,_[5]||0,_[6]||0,G)}}return new Date(B)}(T),this.init()},L.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},L.$utils=function(){return V},L.isValid=function(){return this.$d.toString()!==b},L.isSame=function(T,A){var B=S(T);return this.startOf(A)<=B&&B<=this.endOf(A)},L.isAfter=function(T,A){return S(T)<this.startOf(A)},L.isBefore=function(T,A){return this.endOf(A)<S(T)},L.$g=function(T,A,B){return V.u(T)?this[A]:this.set(B,T)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(T,A){var B=this,P=!!V.u(A)||A,_=V.p(T),Y=function(Q,Z){var le=V.w(B.$u?Date.UTC(B.$y,Z,Q):new Date(B.$y,Z,Q),B);return P?le:le.endOf(r)},G=function(Q,Z){return V.w(B.toDate()[Q].apply(B.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(Z)),B)},U=this.$W,j=this.$M,I=this.$D,H="set"+(this.$u?"UTC":"");switch(_){case f:return P?Y(1,0):Y(31,11);case h:return P?Y(1,j):Y(0,j+1);case v:var q=this.$locale().weekStart||0,ee=(U<q?U+7:U)-q;return Y(P?I-ee:I+(6-ee),j);case r:case x:return G(H+"Hours",0);case i:return G(H+"Minutes",1);case c:return G(H+"Seconds",2);case s:return G(H+"Milliseconds",3);default:return this.clone()}},L.endOf=function(T){return this.startOf(T,!1)},L.$set=function(T,A){var B,P=V.p(T),_="set"+(this.$u?"UTC":""),Y=(B={},B[r]=_+"Date",B[x]=_+"Date",B[h]=_+"Month",B[f]=_+"FullYear",B[i]=_+"Hours",B[c]=_+"Minutes",B[s]=_+"Seconds",B[o]=_+"Milliseconds",B)[P],G=P===r?this.$D+(A-this.$W):A;if(P===h||P===f){var U=this.clone().set(x,1);U.$d[Y](G),U.init(),this.$d=U.set(x,Math.min(this.$D,U.daysInMonth())).$d}else Y&&this.$d[Y](G);return this.init(),this},L.set=function(T,A){return this.clone().$set(T,A)},L.get=function(T){return this[V.p(T)]()},L.add=function(T,A){var B,P=this;T=Number(T);var _=V.p(A),Y=function(j){var I=S(P);return V.w(I.date(I.date()+Math.round(j*T)),P)};if(_===h)return this.set(h,this.$M+T);if(_===f)return this.set(f,this.$y+T);if(_===r)return Y(1);if(_===v)return Y(7);var G=(B={},B[c]=a,B[i]=n,B[s]=t,B)[_]||1,U=this.$d.getTime()+T*G;return V.w(U,this)},L.subtract=function(T,A){return this.add(-1*T,A)},L.format=function(T){var A=this,B=this.$locale();if(!this.isValid())return B.invalidDate||b;var P=T||"YYYY-MM-DDTHH:mm:ssZ",_=V.z(this),Y=this.$H,G=this.$m,U=this.$M,j=B.weekdays,I=B.months,H=B.meridiem,q=function(Z,le,ne,se){return Z&&(Z[le]||Z(A,P))||ne[le].slice(0,se)},ee=function(Z){return V.s(Y%12||12,Z,"0")},Q=H||function(Z,le,ne){var se=Z<12?"AM":"PM";return ne?se.toLowerCase():se};return P.replace(y,function(Z,le){return le||function(ne){switch(ne){case"YY":return String(A.$y).slice(-2);case"YYYY":return V.s(A.$y,4,"0");case"M":return U+1;case"MM":return V.s(U+1,2,"0");case"MMM":return q(B.monthsShort,U,I,3);case"MMMM":return q(I,U);case"D":return A.$D;case"DD":return V.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return q(B.weekdaysMin,A.$W,j,2);case"ddd":return q(B.weekdaysShort,A.$W,j,3);case"dddd":return j[A.$W];case"H":return String(Y);case"HH":return V.s(Y,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return Q(Y,G,!0);case"A":return Q(Y,G,!1);case"m":return String(G);case"mm":return V.s(G,2,"0");case"s":return String(A.$s);case"ss":return V.s(A.$s,2,"0");case"SSS":return V.s(A.$ms,3,"0");case"Z":return _}return null}(Z)||_.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(T,A,B){var P,_=this,Y=V.p(A),G=S(T),U=(G.utcOffset()-this.utcOffset())*a,j=this-G,I=function(){return V.m(_,G)};switch(Y){case f:P=I()/12;break;case h:P=I();break;case p:P=I()/3;break;case v:P=(j-U)/6048e5;break;case r:P=(j-U)/864e5;break;case i:P=j/n;break;case c:P=j/a;break;case s:P=j/t;break;default:P=j}return B?P:V.a(P)},L.daysInMonth=function(){return this.endOf(h).$D},L.$locale=function(){return E[this.$L]},L.locale=function(T,A){if(!T)return this.$L;var B=this.clone(),P=$(T,A,!0);return P&&(B.$L=P),B},L.clone=function(){return V.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},z}(),X=F.prototype;return S.prototype=X,[["$ms",o],["$s",s],["$m",c],["$H",i],["$W",r],["$M",h],["$y",f],["$D",x]].forEach(function(z){X[z[1]]=function(L){return this.$g(L,z[0],z[1])}}),S.extend=function(z,L){return z.$i||(z(L,F,S),z.$i=!0),S},S.locale=$,S.isDayjs=g,S.unix=function(z){return S(1e3*z)},S.en=E[N],S.Ls=E,S.p={},S})})(ul);var sl=ul.exports;const K=ce(sl);var cl={exports:{}};(function(l,u){(function(t,a){l.exports=a()})(ue,function(){var t="minute",a=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(o,s,c){var i=s.prototype;c.utc=function(b){var d={date:b,utc:!0,args:arguments};return new s(d)},i.utc=function(b){var d=c(this.toDate(),{locale:this.$L,utc:!0});return b?d.add(this.utcOffset(),t):d},i.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var r=i.parse;i.parse=function(b){b.utc&&(this.$u=!0),this.$utils().u(b.$offset)||(this.$offset=b.$offset),r.call(this,b)};var v=i.init;i.init=function(){if(this.$u){var b=this.$d;this.$y=b.getUTCFullYear(),this.$M=b.getUTCMonth(),this.$D=b.getUTCDate(),this.$W=b.getUTCDay(),this.$H=b.getUTCHours(),this.$m=b.getUTCMinutes(),this.$s=b.getUTCSeconds(),this.$ms=b.getUTCMilliseconds()}else v.call(this)};var h=i.utcOffset;i.utcOffset=function(b,d){var y=this.$utils().u;if(y(b))return this.$u?0:y(this.$offset)?h.call(this):this.$offset;if(typeof b=="string"&&(b=function(N){N===void 0&&(N="");var E=N.match(a);if(!E)return null;var M=(""+E[0]).match(n)||["-",0,0],g=M[0],$=60*+M[1]+ +M[2];return $===0?0:g==="+"?$:-$}(b),b===null))return this;var m=Math.abs(b)<=16?60*b:b;if(m===0)return this.utc(d);var w=this.clone();if(d)return w.$offset=m,w.$u=!1,w;var k=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(w=this.local().add(m+k,t)).$offset=m,w.$x.$localOffset=k,w};var p=i.format;i.format=function(b){var d=b||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,d)},i.valueOf=function(){var b=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*b},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var f=i.toDate;i.toDate=function(b){return b==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var x=i.diff;i.diff=function(b,d,y){if(b&&this.$u===b.$u)return x.call(this,b,d,y);var m=this.local(),w=c(b).local();return x.call(m,w,d,y)}}})})(cl);var _n=cl.exports;const On=ce(_n);var rl={exports:{}};(function(l,u){(function(t,a){l.exports=a()})(ue,function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},a={};return function(n,o,s){var c,i=function(p,f,x){x===void 0&&(x={});var b=new Date(p),d=function(y,m){m===void 0&&(m={});var w=m.timeZoneName||"short",k=y+"|"+w,N=a[k];return N||(N=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:y,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:w}),a[k]=N),N}(f,x);return d.formatToParts(b)},r=function(p,f){for(var x=i(p,f),b=[],d=0;d<x.length;d+=1){var y=x[d],m=y.type,w=y.value,k=t[m];k>=0&&(b[k]=parseInt(w,10))}var N=b[3],E=N===24?0:N,M=b[0]+"-"+b[1]+"-"+b[2]+" "+E+":"+b[4]+":"+b[5]+":000",g=+p;return(s.utc(M).valueOf()-(g-=g%1e3))/6e4},v=o.prototype;v.tz=function(p,f){p===void 0&&(p=c);var x,b=this.utcOffset(),d=this.toDate(),y=d.toLocaleString("en-US",{timeZone:p}),m=Math.round((d-new Date(y))/1e3/60),w=15*-Math.round(d.getTimezoneOffset()/15)-m;if(!Number(w))x=this.utcOffset(0,f);else if(x=s(y,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(w,!0),f){var k=x.utcOffset();x=x.add(b-k,"minute")}return x.$x.$timezone=p,x},v.offsetName=function(p){var f=this.$x.$timezone||s.tz.guess(),x=i(this.valueOf(),f,{timeZoneName:p}).find(function(b){return b.type.toLowerCase()==="timezonename"});return x&&x.value};var h=v.startOf;v.startOf=function(p,f){if(!this.$x||!this.$x.$timezone)return h.call(this,p,f);var x=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return h.call(x,p,f).tz(this.$x.$timezone,!0)},s.tz=function(p,f,x){var b=x&&f,d=x||f||c,y=r(+s(),d);if(typeof p!="string")return s(p).tz(d);var m=function(E,M,g){var $=E-60*M*1e3,S=r($,g);if(M===S)return[$,M];var V=r($-=60*(S-M)*1e3,g);return S===V?[$,S]:[E-60*Math.min(S,V)*1e3,Math.max(S,V)]}(s.utc(p,b).valueOf(),y,d),w=m[0],k=m[1],N=s(w).utcOffset(k);return N.$x.$timezone=d,N},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(p){c=p}}})})(rl);var Yn=rl.exports;const Fn=ce(Yn);var il={exports:{}};(function(l,u){(function(t,a){l.exports=a()})(ue,function(){return function(t,a,n){t=t||{};var o=a.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(r,v,h,p){return o.fromToBase(r,v,h,p)}n.en.relativeTime=s,o.fromToBase=function(r,v,h,p,f){for(var x,b,d,y=h.$locale().relativeTime||s,m=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=m.length,k=0;k<w;k+=1){var N=m[k];N.d&&(x=p?n(r).diff(h,N.d,!0):h.diff(r,N.d,!0));var E=(t.rounding||Math.round)(Math.abs(x));if(d=x>0,E<=N.r||!N.r){E<=1&&k>0&&(N=m[k-1]);var M=y[N.l];f&&(E=f(""+E)),b=typeof M=="string"?M.replace("%d",E):M(E,v,N.l,d);break}}if(v)return b;var g=d?y.future:y.past;return typeof g=="function"?g(b):g.replace("%s",b)},o.to=function(r,v){return c(r,v,this,!0)},o.from=function(r,v){return c(r,v,this)};var i=function(r){return r.$u?n.utc():n()};o.toNow=function(r){return this.to(i(this),r)},o.fromNow=function(r){return this.from(i(this),r)}}})})(il);var Xn=il.exports;const Hn=ce(Xn);var vl={exports:{}};(function(l,u){(function(t,a){l.exports=a()})(ue,function(){var t,a,n=1e3,o=6e4,s=36e5,c=864e5,i=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,r=31536e6,v=2628e6,h=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,p={years:r,months:v,days:c,hours:s,minutes:o,seconds:n,milliseconds:1,weeks:6048e5},f=function(E){return E instanceof k},x=function(E,M,g){return new k(E,g,M.$l)},b=function(E){return a.p(E)+"s"},d=function(E){return E<0},y=function(E){return d(E)?Math.ceil(E):Math.floor(E)},m=function(E){return Math.abs(E)},w=function(E,M){return E?d(E)?{negative:!0,format:""+m(E)+M}:{negative:!1,format:""+E+M}:{negative:!1,format:""}},k=function(){function E(g,$,S){var V=this;if(this.$d={},this.$l=S,g===void 0&&(this.$ms=0,this.parseFromMilliseconds()),$)return x(g*p[b($)],this);if(typeof g=="number")return this.$ms=g,this.parseFromMilliseconds(),this;if(typeof g=="object")return Object.keys(g).forEach(function(z){V.$d[b(z)]=g[z]}),this.calMilliseconds(),this;if(typeof g=="string"){var F=g.match(h);if(F){var X=F.slice(2).map(function(z){return z!=null?Number(z):0});return this.$d.years=X[0],this.$d.months=X[1],this.$d.weeks=X[2],this.$d.days=X[3],this.$d.hours=X[4],this.$d.minutes=X[5],this.$d.seconds=X[6],this.calMilliseconds(),this}}return this}var M=E.prototype;return M.calMilliseconds=function(){var g=this;this.$ms=Object.keys(this.$d).reduce(function($,S){return $+(g.$d[S]||0)*p[S]},0)},M.parseFromMilliseconds=function(){var g=this.$ms;this.$d.years=y(g/r),g%=r,this.$d.months=y(g/v),g%=v,this.$d.days=y(g/c),g%=c,this.$d.hours=y(g/s),g%=s,this.$d.minutes=y(g/o),g%=o,this.$d.seconds=y(g/n),g%=n,this.$d.milliseconds=g},M.toISOString=function(){var g=w(this.$d.years,"Y"),$=w(this.$d.months,"M"),S=+this.$d.days||0;this.$d.weeks&&(S+=7*this.$d.weeks);var V=w(S,"D"),F=w(this.$d.hours,"H"),X=w(this.$d.minutes,"M"),z=this.$d.seconds||0;this.$d.milliseconds&&(z+=this.$d.milliseconds/1e3,z=Math.round(1e3*z)/1e3);var L=w(z,"S"),T=g.negative||$.negative||V.negative||F.negative||X.negative||L.negative,A=F.format||X.format||L.format?"T":"",B=(T?"-":"")+"P"+g.format+$.format+V.format+A+F.format+X.format+L.format;return B==="P"||B==="-P"?"P0D":B},M.toJSON=function(){return this.toISOString()},M.format=function(g){var $=g||"YYYY-MM-DDTHH:mm:ss",S={Y:this.$d.years,YY:a.s(this.$d.years,2,"0"),YYYY:a.s(this.$d.years,4,"0"),M:this.$d.months,MM:a.s(this.$d.months,2,"0"),D:this.$d.days,DD:a.s(this.$d.days,2,"0"),H:this.$d.hours,HH:a.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:a.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:a.s(this.$d.seconds,2,"0"),SSS:a.s(this.$d.milliseconds,3,"0")};return $.replace(i,function(V,F){return F||String(S[V])})},M.as=function(g){return this.$ms/p[b(g)]},M.get=function(g){var $=this.$ms,S=b(g);return S==="milliseconds"?$%=1e3:$=S==="weeks"?y($/p[S]):this.$d[S],$||0},M.add=function(g,$,S){var V;return V=$?g*p[b($)]:f(g)?g.$ms:x(g,this).$ms,x(this.$ms+V*(S?-1:1),this)},M.subtract=function(g,$){return this.add(g,$,!0)},M.locale=function(g){var $=this.clone();return $.$l=g,$},M.clone=function(){return x(this.$ms,this)},M.humanize=function(g){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!g)},M.valueOf=function(){return this.asMilliseconds()},M.milliseconds=function(){return this.get("milliseconds")},M.asMilliseconds=function(){return this.as("milliseconds")},M.seconds=function(){return this.get("seconds")},M.asSeconds=function(){return this.as("seconds")},M.minutes=function(){return this.get("minutes")},M.asMinutes=function(){return this.as("minutes")},M.hours=function(){return this.get("hours")},M.asHours=function(){return this.as("hours")},M.days=function(){return this.get("days")},M.asDays=function(){return this.as("days")},M.weeks=function(){return this.get("weeks")},M.asWeeks=function(){return this.as("weeks")},M.months=function(){return this.get("months")},M.asMonths=function(){return this.as("months")},M.years=function(){return this.get("years")},M.asYears=function(){return this.as("years")},E}(),N=function(E,M,g){return E.add(M.years()*g,"y").add(M.months()*g,"M").add(M.days()*g,"d").add(M.hours()*g,"h").add(M.minutes()*g,"m").add(M.seconds()*g,"s").add(M.milliseconds()*g,"ms")};return function(E,M,g){t=g,a=g().$utils(),g.duration=function(V,F){var X=g.locale();return x(V,{$l:X},F)},g.isDuration=f;var $=M.prototype.add,S=M.prototype.subtract;M.prototype.add=function(V,F){return f(V)?N(this,V,1):$.bind(this)(V,F)},M.prototype.subtract=function(V,F){return f(V)?N(this,V,-1):S.bind(this)(V,F)}}})})(vl);var Rn=vl.exports;const Wn=ce(Rn);var dl={exports:{}};(function(l,u){(function(t,a){l.exports=a()})(ue,function(){return function(t,a){a.prototype.isSameOrAfter=function(n,o){return this.isSame(n,o)||this.isAfter(n,o)}}})})(dl);var Gn=dl.exports;const Un=ce(Gn);var bl={exports:{}};(function(l,u){(function(t,a){l.exports=a()})(ue,function(){return function(t,a){a.prototype.isSameOrBefore=function(n,o){return this.isSame(n,o)||this.isBefore(n,o)}}})})(bl);var Kn=bl.exports;const qn=ce(Kn);var gl={exports:{}};(function(l,u){(function(t,a){l.exports=a()})(ue,function(){return function(t,a,n){a.prototype.isBetween=function(o,s,c,i){var r=n(o),v=n(s),h=(i=i||"()")[0]==="(",p=i[1]===")";return(h?this.isAfter(r,c):!this.isBefore(r,c))&&(p?this.isBefore(v,c):!this.isAfter(v,c))||(h?this.isBefore(r,c):!this.isAfter(r,c))&&(p?this.isAfter(v,c):!this.isBefore(v,c))}}})})(gl);var Zn=gl.exports;const Qn=ce(Zn);var fl={exports:{}};(function(l,u){(function(t,a){l.exports=a()})(ue,function(){var t="week",a="year";return function(n,o,s){var c=o.prototype;c.week=function(i){if(i===void 0&&(i=null),i!==null)return this.add(7*(i-this.week()),"day");var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var v=s(this).startOf(a).add(1,a).date(r),h=s(this).endOf(t);if(v.isBefore(h))return 1}var p=s(this).startOf(a).date(r).startOf(t).subtract(1,"millisecond"),f=this.diff(p,t,!0);return f<0?s(this).startOf("week").week():Math.ceil(f)},c.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}})})(fl);var Jn=fl.exports;const eo=ce(Jn);var hl={exports:{}};(function(l,u){(function(t,a){l.exports=a()})(ue,function(){var t="day";return function(a,n,o){var s=function(r){return r.add(4-r.isoWeekday(),t)},c=n.prototype;c.isoWeekYear=function(){return s(this).year()},c.isoWeek=function(r){if(!this.$utils().u(r))return this.add(7*(r-this.isoWeek()),t);var v,h,p,f,x=s(this),b=(v=this.isoWeekYear(),h=this.$u,p=(h?o.utc:o)().year(v).startOf("year"),f=4-p.isoWeekday(),p.isoWeekday()>4&&(f+=7),p.add(f,t));return x.diff(b,"week")+1},c.isoWeekday=function(r){return this.$utils().u(r)?this.day()||7:this.day(this.day()%7?r:r-7)};var i=c.startOf;c.startOf=function(r,v){var h=this.$utils(),p=!!h.u(v)||v;return h.p(r)==="isoweek"?p?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):i.bind(this)(r,v)}}})})(hl);var lo=hl.exports;const ao=ce(lo);var ml={exports:{}};(function(l,u){(function(t,a){l.exports=a()})(ue,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,o=/\d\d/,s=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,i={},r=function(d){return(d=+d)+(d>68?1900:2e3)},v=function(d){return function(y){this[d]=+y}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(d){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var m=y.match(/([+-]|\d\d)/g),w=60*m[1]+(+m[2]||0);return w===0?0:m[0]==="+"?-w:w}(d)}],p=function(d){var y=i[d];return y&&(y.indexOf?y:y.s.concat(y.f))},f=function(d,y){var m,w=i.meridiem;if(w){for(var k=1;k<=24;k+=1)if(d.indexOf(w(k,0,y))>-1){m=k>12;break}}else m=d===(y?"pm":"PM");return m},x={A:[c,function(d){this.afternoon=f(d,!1)}],a:[c,function(d){this.afternoon=f(d,!0)}],Q:[n,function(d){this.month=3*(d-1)+1}],S:[n,function(d){this.milliseconds=100*+d}],SS:[o,function(d){this.milliseconds=10*+d}],SSS:[/\d{3}/,function(d){this.milliseconds=+d}],s:[s,v("seconds")],ss:[s,v("seconds")],m:[s,v("minutes")],mm:[s,v("minutes")],H:[s,v("hours")],h:[s,v("hours")],HH:[s,v("hours")],hh:[s,v("hours")],D:[s,v("day")],DD:[o,v("day")],Do:[c,function(d){var y=i.ordinal,m=d.match(/\d+/);if(this.day=m[0],y)for(var w=1;w<=31;w+=1)y(w).replace(/\[|\]/g,"")===d&&(this.day=w)}],w:[s,v("week")],ww:[o,v("week")],M:[s,v("month")],MM:[o,v("month")],MMM:[c,function(d){var y=p("months"),m=(p("monthsShort")||y.map(function(w){return w.slice(0,3)})).indexOf(d)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[c,function(d){var y=p("months").indexOf(d)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,v("year")],YY:[o,function(d){this.year=r(d)}],YYYY:[/\d{4}/,v("year")],Z:h,ZZ:h};function b(d){var y,m;y=d,m=i&&i.formats;for(var w=(d=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(S,V,F){var X=F&&F.toUpperCase();return V||m[F]||t[F]||m[X].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(z,L,T){return L||T.slice(1)})})).match(a),k=w.length,N=0;N<k;N+=1){var E=w[N],M=x[E],g=M&&M[0],$=M&&M[1];w[N]=$?{regex:g,parser:$}:E.replace(/^\[|\]$/g,"")}return function(S){for(var V={},F=0,X=0;F<k;F+=1){var z=w[F];if(typeof z=="string")X+=z.length;else{var L=z.regex,T=z.parser,A=S.slice(X),B=L.exec(A)[0];T.call(V,B),S=S.replace(B,"")}}return function(P){var _=P.afternoon;if(_!==void 0){var Y=P.hours;_?Y<12&&(P.hours+=12):Y===12&&(P.hours=0),delete P.afternoon}}(V),V}}return function(d,y,m){m.p.customParseFormat=!0,d&&d.parseTwoDigitYear&&(r=d.parseTwoDigitYear);var w=y.prototype,k=w.parse;w.parse=function(N){var E=N.date,M=N.utc,g=N.args;this.$u=M;var $=g[1];if(typeof $=="string"){var S=g[2]===!0,V=g[3]===!0,F=S||V,X=g[2];V&&(X=g[2]),i=this.$locale(),!S&&X&&(i=m.Ls[X]),this.$d=function(A,B,P,_){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*A);var Y=b(B)(A),G=Y.year,U=Y.month,j=Y.day,I=Y.hours,H=Y.minutes,q=Y.seconds,ee=Y.milliseconds,Q=Y.zone,Z=Y.week,le=new Date,ne=j||(G||U?1:le.getDate()),se=G||le.getFullYear(),oe=0;G&&!U||(oe=U>0?U-1:le.getMonth());var re,ie=I||0,C=H||0,D=q||0,O=ee||0;return Q?new Date(Date.UTC(se,oe,ne,ie,C,D,O+60*Q.offset*1e3)):P?new Date(Date.UTC(se,oe,ne,ie,C,D,O)):(re=new Date(se,oe,ne,ie,C,D,O),Z&&(re=_(re).week(Z).toDate()),re)}catch{return new Date("")}}(E,$,M,m),this.init(),X&&X!==!0&&(this.$L=this.locale(X).$L),F&&E!=this.format($)&&(this.$d=new Date("")),i={}}else if($ instanceof Array)for(var z=$.length,L=1;L<=z;L+=1){g[1]=$[L-1];var T=m.apply(this,g);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}L===z&&(this.$d=new Date(""))}else k.call(this,N)}}})})(ml);var to=ml.exports;const no=ce(to);var pl={exports:{}};(function(l,u){(function(t,a){l.exports=a()})(ue,function(){return function(t,a){var n=a.prototype,o=n.format;n.format=function(s){var c=this,i=this.$locale();if(!this.isValid())return o.bind(this)(s);var r=this.$utils(),v=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return i.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return i.ordinal(c.week(),"W");case"w":case"ww":return r.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return r.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return r.s(String(c.$H===0?24:c.$H),h==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return h}});return o.bind(this)(v)}}})})(pl);var oo=pl.exports;const uo=ce(oo);var so={exports:{}};(function(l,u){(function(t,a){l.exports=a(sl)})(ue,function(t){function a(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var n=a(t),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,c){return c==="W"?s+"周":s+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(s,c){var i=100*s+c;return i<600?"凌晨":i<900?"早上":i<1100?"上午":i<1300?"中午":i<1800?"下午":"晚上"}};return n.default.locale(o,null,!0),o})})(so);K.extend(On);K.extend(Fn);K.extend(Hn);K.extend(Wn);K.extend(Un);K.extend(qn);K.extend(Qn);K.extend(eo);K.extend(ao);K.extend(no);K.extend(uo);function De(l={}){const{timezone:u="Asia/Shanghai",locale:t="zh-cn",defaultFormat:a="YYYY-MM-DD HH:mm:ss",parseStrict:n=!1,weekStart:o}=l;K.locale(t);const s=j=>(j==null?K():K(j)).tz(u).locale(t),c=(j,I)=>I?K(j,I,n).tz(u).locale(t):s(j),i=j=>c(j).utc(),r=j=>K(j).utc().tz(u).locale(t),v=e.ref(s()),h=()=>{v.value=s()},p=()=>s(),f=(j,I=a)=>c(j).format(I),x=(j,I)=>c(j,I),b=j=>c(j),d=(j,I,H)=>c(j).isSame(c(I),H),y=(j,I,H)=>c(j).isAfter(c(I),H),m=(j,I,H)=>c(j).isBefore(c(I),H),w=(j,I,H)=>c(j).isSameOrAfter(c(I),H),k=(j,I,H)=>c(j).isSameOrBefore(c(I),H),N=(j,I,H,q,ee)=>c(j).isBetween(c(I),c(H),q,ee),E=(j,I,H)=>c(j).add(I,H),M=(j,I,H)=>c(j).subtract(I,H),g=(j,I,H,q)=>c(j).diff(c(I),H,q),$=(j,I)=>c(j).startOf(I),S=(j,I)=>c(j).endOf(I),V=j=>c(j).from(s()),F=j=>c(j).to(s()),X=(j,I)=>c(j).from(c(I)),z=(j,I)=>c(j).to(c(I)),L=(j,I=s(),H="millisecond")=>{const q=c(j).diff(c(I),"millisecond");return K.duration(Math.abs(q)).humanize()},T=j=>{const I=K.duration(j),H=Math.floor(I.asDays()),q=I.hours(),ee=I.minutes(),Q=I.seconds();return{days:H,hours:q,minutes:ee,seconds:Q}},A=(j,I,H,q,ee)=>{var O;const Q=s().year(j).month(I).date(1),Z=Q.startOf("month");Q.endOf("month");const le=typeof o=="number"?o:((O=K.Ls[t])==null?void 0:O.weekStart)??0,ne=Z.startOf("week").add(le,"day"),se=ne.isAfter(Z)?ne.subtract(7,"day"):ne,oe=H?c(H):null,re=q?c(q).startOf("day"):null,ie=ee?c(ee).endOf("day"):null,C=s(),D=[];for(let R=0;R<42;R++){const W=se.add(R,"day"),J=W.month()===I,ve=W.isSame(C,"day"),Ce=oe?W.isSame(oe,"day"):!1,Ae=W.day(),kl=Ae===0||Ae===6;let xe=!1;re&&W.isBefore(re,"day")&&(xe=!0),ie&&W.isAfter(ie,"day")&&(xe=!0),D.push({date:W,isCurrentMonth:J,isToday:ve,isSelected:Ce,isDisabled:xe,isWeekend:kl})}return D},B=(j,I)=>{const H=s().year(j).month(I).date(1),q=H.endOf("month"),ee=q.date(),Q=H.day(),Z=q.day(),le=Math.ceil((Q+ee)/7);return{firstDay:H,lastDay:q,daysInMonth:ee,firstWeekday:Q,lastWeekday:Z,weeksInMonth:le}},P=()=>{const j=s();return{today:{start:j.startOf("day"),end:j.endOf("day")},yesterday:{start:j.subtract(1,"day").startOf("day"),end:j.subtract(1,"day").endOf("day")},thisWeek:{start:j.startOf("week"),end:j.endOf("week")},lastWeek:{start:j.subtract(1,"week").startOf("week"),end:j.subtract(1,"week").endOf("week")},thisMonth:{start:j.startOf("month"),end:j.endOf("month")},lastMonth:{start:j.subtract(1,"month").startOf("month"),end:j.subtract(1,"month").endOf("month")},thisYear:{start:j.startOf("year"),end:j.endOf("year")},lastYear:{start:j.subtract(1,"year").startOf("year"),end:j.subtract(1,"year").endOf("year")}}},_=(j,I)=>I?K(j,I,n).isValid():K(j).isValid(),Y=(j,I)=>c(j).get(I),G=(j,I,H)=>c(j).set(I,H),U={date:"YYYY-MM-DD",time:"HH:mm:ss",datetime:"YYYY-MM-DD HH:mm:ss",dateTime:"YYYY-MM-DD HH:mm",month:"YYYY-MM",year:"YYYY",timestamp:"X",iso:"YYYY-MM-DDTHH:mm:ssZ"};return{now:e.computed(()=>v.value),updateNow:h,getCurrent:p,format:f,parse:x,create:b,isSame:d,isAfter:y,isBefore:m,isSameOrAfter:w,isSameOrBefore:k,isBetween:N,add:E,subtract:M,diff:g,startOf:$,endOf:S,fromNow:V,toNow:F,from:X,to:z,humanizeDiff:L,formatParts:T,getCalendarDates:A,getMonthInfo:B,getTimeRanges:P,isValid:_,getUnit:Y,setUnit:G,formats:U,dayjs:j=>c(j),toUTC:i,fromUTC:r}}function co(l={start:null,end:null},u="Asia/Shanghai"){const t=i=>(i==null?K():K(i)).tz(u),a=e.ref({start:l.start?t(l.start):null,end:l.end?t(l.end):null}),n=(i,r)=>{a.value={start:i?t(i):null,end:r?t(r):null}},o=()=>{a.value={start:null,end:null}},s=e.computed(()=>{const{start:i,end:r}=a.value;return!i||!r?!1:i.isBefore(r)||i.isSame(r)}),c=e.computed(()=>{if(!s.value)return null;const i=a.value.end.diff(a.value.start);return{ms:i,days:Math.floor(K.duration(i).asDays())}});return{range:e.computed(()=>a.value),setRange:n,clearRange:o,isValidRange:s,rangeDuration:c}}function ro(l,u="Asia/Shanghai"){const t=v=>(v==null?K():K(v)).tz(u),a=e.ref(t(l)),n=e.ref(t()),o=e.ref(!1),s=e.computed(()=>{const v=a.value.diff(n.value);return v<=0?(o.value=!0,K.duration(0)):K.duration(v)}),c=()=>{n.value=t()},i=(v="HH:mm:ss")=>{if(o.value)return"00:00:00";const h=s.value,p=Math.floor(h.asHours()),f=h.minutes(),x=h.seconds();return v.replace("HH",String(p).padStart(2,"0")).replace("mm",String(f).padStart(2,"0")).replace("ss",String(x).padStart(2,"0"))},r=e.computed(()=>{const v=s.value;return{days:Math.floor(v.asDays()),hours:v.hours(),minutes:v.minutes(),seconds:v.seconds(),milliseconds:v.milliseconds()}});return{target:e.computed(()=>a.value),now:e.computed(()=>n.value),duration:e.computed(()=>s.value),parts:r,isExpired:e.computed(()=>o.value),updateNow:c,formatDuration:i}}const io=["value","placeholder","disabled"],vo={class:"datetime-icon"},bo={class:"datetime-header"},go={class:"datetime-title"},fo={key:0,class:"datetime-mode-switch"},ho={key:1,class:"datetime-date-picker"},mo={class:"date-navigation"},po={class:"current-month"},yo={class:"month-year"},wo={class:"weekdays"},ko={class:"date-grid"},Co=["onClick"],xo={key:2,class:"datetime-time-picker"},So={class:"time-inputs"},Eo={class:"time-input-group"},$o=["value"],Mo={class:"time-input-group"},Bo=["value"],Po={key:0,class:"time-separator"},Vo={key:1,class:"time-input-group"},jo=["value"],No={class:"time-sliders"},Lo={class:"time-slider-group"},To=["value"],Do={class:"slider-value"},Ao={class:"time-slider-group"},zo=["value"],Io={class:"slider-value"},_o={key:0,class:"time-slider-group"},Oo=["value"],Yo={class:"slider-value"},Fo={class:"datetime-footer"},Xo=e.defineComponent({__name:"index",props:{modelValue:{default:null},mode:{default:"datetime"},size:{default:"medium"},disabled:{type:Boolean,default:!1},placeholder:{default:"请选择日期时间"},title:{default:"选择日期时间"},showSeconds:{type:Boolean,default:!1},minDate:{},maxDate:{},dateFormat:{default:"YYYY-MM-DD"},timeFormat:{default:"24"},showToday:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0},locale:{default:"zh-CN"}},emits:["update:modelValue","change","open","close"],setup(l,{emit:u}){const t=l,a=u,n=e.ref(!1),o=e.ref("date"),s=e.ref(new Date().getFullYear()),c=e.ref(new Date().getMonth()),i=e.ref(null),r=e.ref(0),v=e.ref(0),h=e.ref(0),p=e.ref(!1),f=e.ref("panel-bottom"),x=e.ref(),{format:b,create:d,getCalendarDates:y,formats:m}=De({timezone:"Asia/Shanghai",locale:"zh-cn"}),w=e.computed(()=>t.locale==="zh-CN"?["日","一","二","三","四","五","六"]:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),k=e.computed(()=>{if(!i.value)return"";const B=d(i.value),P=t.showSeconds?`${r.value.toString().padStart(2,"0")}:${v.value.toString().padStart(2,"0")}:${h.value.toString().padStart(2,"0")}`:`${r.value.toString().padStart(2,"0")}:${v.value.toString().padStart(2,"0")}`;return t.mode==="date"?b(B,m.date):t.mode==="time"?P:`${b(B,m.date)} ${P}`}),N=e.computed(()=>t.mode==="date"?"mdi:calendar":t.mode==="time"?"mdi:clock":"mdi:calendar-clock"),E=e.computed(()=>{const B=i.value?d(i.value):void 0,P=t.minDate?d(t.minDate):void 0,_=t.maxDate?d(t.maxDate):void 0;return y(s.value,c.value,B,P,_)}),M=()=>{t.disabled||(n.value=!n.value,n.value?(T(),a("open")):a("close"))},g=()=>{n.value=!1,a("close")},$=()=>{c.value===0?(c.value=11,s.value--):c.value--},S=()=>{c.value===11?(c.value=0,s.value++):c.value++},V=B=>{B.isDisabled||(i.value=B.date.toDate(),t.mode==="date"&&X())},F=()=>{r.value=Math.max(0,Math.min(23,r.value)),v.value=Math.max(0,Math.min(59,v.value)),h.value=Math.max(0,Math.min(59,h.value))},X=()=>{if(t.mode==="date"&&i.value){const B=d(i.value),P=b(B,t.dateFormat);a("update:modelValue",P),a("change",P)}else if(t.mode==="time"){const B=t.showSeconds?`${r.value.toString().padStart(2,"0")}:${v.value.toString().padStart(2,"0")}:${h.value.toString().padStart(2,"0")}`:`${r.value.toString().padStart(2,"0")}:${v.value.toString().padStart(2,"0")}`;a("update:modelValue",B),a("change",B)}else if(t.mode==="datetime"&&i.value){const B=d(i.value).hour(r.value).minute(v.value).second(h.value).millisecond(0),P=t.showSeconds?`${r.value.toString().padStart(2,"0")}:${v.value.toString().padStart(2,"0")}:${h.value.toString().padStart(2,"0")}`:`${r.value.toString().padStart(2,"0")}:${v.value.toString().padStart(2,"0")}`,_=`${b(B,t.dateFormat)} ${P}`;a("update:modelValue",_),a("change",_)}g()},z=()=>{i.value=null,r.value=0,v.value=0,h.value=0,a("update:modelValue",null),a("change",null),g()},L=()=>{p.value=window.innerWidth<=768},T=()=>{if(!x.value)return;const B=x.value.getBoundingClientRect(),_=window.innerHeight-B.bottom,Y=B.top;_>=400||_>Y?f.value="panel-bottom":f.value="panel-top"};e.watch(()=>t.modelValue,B=>{if(B){const P=d(B);i.value=P.toDate(),r.value=P.hour(),v.value=P.minute(),h.value=P.second(),s.value=P.year(),c.value=P.month()}else i.value=null,r.value=0,v.value=0,h.value=0},{immediate:!0}),e.watch(()=>t.mode,B=>{B==="datetime"?o.value="date":o.value=B},{immediate:!0});const A=B=>{var P;n.value&&!((P=B.target)!=null&&P.closest(".x-datetime-picker"))&&g()};return e.onMounted(()=>{L(),window.addEventListener("resize",L),document.addEventListener("click",A)}),e.onUnmounted(()=>{window.removeEventListener("resize",L),document.removeEventListener("click",A)}),(B,P)=>{const _=e.resolveComponent("XButton");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["x-datetime-picker",[`datetime-${l.size}`,{"datetime-disabled":l.disabled}]])},[e.createElementVNode("div",{class:"datetime-input-wrapper",onClick:M},[e.createElementVNode("input",{ref_key:"inputRef",ref:x,type:"text",value:k.value,placeholder:l.placeholder,disabled:l.disabled,readonly:"",class:"datetime-input"},null,8,io),e.createElementVNode("div",vo,[e.createVNode(e.unref(te),{icon:N.value},null,8,["icon"])])]),e.createVNode(e.Transition,{"enter-active-class":"panel-enter-active","enter-from-class":"panel-enter-from","enter-to-class":"panel-enter-to","leave-active-class":"panel-leave-active","leave-from-class":"panel-leave-from","leave-to-class":"panel-leave-to"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["datetime-panel",f.value])},[e.createElementVNode("div",bo,[e.createElementVNode("div",go,e.toDisplayString(l.title),1),e.createVNode(_,{icon:"mdi:close",size:"small",onClick:g})]),l.mode==="datetime"?(e.openBlock(),e.createElementBlock("div",fo,[e.createVNode(_,{size:"small",class:e.normalizeClass({active:o.value==="date"}),icon:"mdi:calendar",onClick:P[0]||(P[0]=Y=>o.value="date")},{default:e.withCtx(()=>[e.createVNode(e.unref(te),{icon:"mdi:calendar"}),P[2]||(P[2]=e.createElementVNode("span",null,"日期",-1))]),_:1},8,["class"]),e.createVNode(_,{size:"small",icon:"mdi:clock",class:e.normalizeClass({active:o.value==="time"}),onClick:P[1]||(P[1]=Y=>o.value="time")},{default:e.withCtx(()=>[e.createVNode(e.unref(te),{icon:"mdi:clock"}),P[3]||(P[3]=e.createElementVNode("span",null,"时间",-1))]),_:1},8,["class"])])):e.createCommentVNode("",!0),o.value==="date"||l.mode==="date"?(e.openBlock(),e.createElementBlock("div",ho,[e.createElementVNode("div",mo,[e.createVNode(_,{size:"small",onClick:$},{default:e.withCtx(()=>[e.createVNode(e.unref(te),{icon:"mdi:chevron-left"})]),_:1}),e.createElementVNode("div",po,[e.createElementVNode("span",yo,e.toDisplayString(s.value)+"年"+e.toDisplayString(c.value+1)+"月",1)]),e.createVNode(_,{size:"small",onClick:S},{default:e.withCtx(()=>[e.createVNode(e.unref(te),{icon:"mdi:chevron-right"})]),_:1})]),e.createElementVNode("div",wo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,Y=>(e.openBlock(),e.createElementBlock("div",{key:Y,class:"weekday"},e.toDisplayString(Y),1))),128))]),e.createElementVNode("div",ko,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,Y=>(e.openBlock(),e.createElementBlock("div",{key:Y.date.format("YYYY-MM-DD"),class:e.normalizeClass(["date-cell",{"date-other-month":!Y.isCurrentMonth,"date-today":Y.isToday,"date-selected":Y.isSelected,"date-disabled":Y.isDisabled}]),onClick:G=>V(Y)},e.toDisplayString(Y.date.date()),11,Co))),128))])])):e.createCommentVNode("",!0),o.value==="time"||l.mode==="time"?(e.openBlock(),e.createElementBlock("div",xo,[e.createElementVNode("div",So,[e.createElementVNode("div",Eo,[P[4]||(P[4]=e.createElementVNode("label",{class:"time-label"},"时",-1)),e.createElementVNode("input",{value:r.value,type:"number",min:"0",max:"23",class:"time-input",onChange:F},null,40,$o)]),P[7]||(P[7]=e.createElementVNode("div",{class:"time-separator"},":",-1)),e.createElementVNode("div",Mo,[P[5]||(P[5]=e.createElementVNode("label",{class:"time-label"},"分",-1)),e.createElementVNode("input",{value:v.value,type:"number",min:"0",max:"59",class:"time-input",onChange:F},null,40,Bo)]),l.showSeconds?(e.openBlock(),e.createElementBlock("div",Po,":")):e.createCommentVNode("",!0),l.showSeconds?(e.openBlock(),e.createElementBlock("div",Vo,[P[6]||(P[6]=e.createElementVNode("label",{class:"time-label"},"秒",-1)),e.createElementVNode("input",{value:h.value,type:"number",min:"0",max:"59",class:"time-input",onChange:F},null,40,jo)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",No,[e.createElementVNode("div",Lo,[P[8]||(P[8]=e.createElementVNode("label",{class:"slider-label"},"小时",-1)),e.createElementVNode("input",{value:r.value,type:"range",min:"0",max:"23",class:"time-slider",onInput:F},null,40,To),e.createElementVNode("span",Do,e.toDisplayString(r.value.toString().padStart(2,"0")),1)]),e.createElementVNode("div",Ao,[P[9]||(P[9]=e.createElementVNode("label",{class:"slider-label"},"分钟",-1)),e.createElementVNode("input",{value:v.value,type:"range",min:"0",max:"59",class:"time-slider",onInput:F},null,40,zo),e.createElementVNode("span",Io,e.toDisplayString(v.value.toString().padStart(2,"0")),1)]),l.showSeconds?(e.openBlock(),e.createElementBlock("div",_o,[P[10]||(P[10]=e.createElementVNode("label",{class:"slider-label"},"秒钟",-1)),e.createElementVNode("input",{value:h.value,type:"range",min:"0",max:"59",step:"1",class:"time-slider",onInput:F},null,40,Oo),e.createElementVNode("span",Yo,e.toDisplayString(h.value.toString().padStart(2,"0")),1)])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),e.createElementVNode("div",Fo,[e.createVNode(_,{size:"small",ghost:"",type:"danger",onClick:z},{default:e.withCtx(()=>[e.createVNode(e.unref(te),{icon:"mdi:delete"}),P[11]||(P[11]=e.createElementVNode("span",null,"清空",-1))]),_:1}),e.createVNode(_,{size:"small",ghost:"",type:"primary",onClick:X},{default:e.withCtx(()=>[e.createVNode(e.unref(te),{icon:"mdi:check"}),P[12]||(P[12]=e.createElementVNode("span",null,"确定",-1))]),_:1})])],2)):e.createCommentVNode("",!0)]),_:1})],2)}}}),Ho=ae(Xo,[["__scopeId","data-v-8f125c61"]]),Ro=[{value:"34",label:"安徽省",children:[{value:"3408",label:"安庆市",children:[{value:"340871",label:"安徽安庆经济开发区"},{value:"340803",label:"大观区"},{value:"340822",label:"怀宁县"},{value:"340882",label:"潜山市"},{value:"340826",label:"宿松县"},{value:"340825",label:"太湖县"},{value:"340881",label:"桐城市"},{value:"340827",label:"望江县"},{value:"340811",label:"宜秀区"},{value:"340802",label:"迎江区"},{value:"340828",label:"岳西县"}]},{value:"3403",label:"蚌埠市",children:[{value:"340371",label:"蚌埠市高新技术开发区"},{value:"340372",label:"蚌埠市经济开发区"},{value:"340303",label:"蚌山区"},{value:"340323",label:"固镇县"},{value:"340321",label:"怀远县"},{value:"340311",label:"淮上区"},{value:"340302",label:"龙子湖区"},{value:"340322",label:"五河县"},{value:"340304",label:"禹会区"}]},{value:"3416",label:"亳州市",children:[{value:"341623",label:"利辛县"},{value:"341622",label:"蒙城县"},{value:"341602",label:"谯城区"},{value:"341621",label:"涡阳县"}]},{value:"3417",label:"池州市",children:[{value:"341721",label:"东至县"},{value:"341702",label:"贵池区"},{value:"341723",label:"青阳县"},{value:"341722",label:"石台县"}]},{value:"3411",label:"滁州市",children:[{value:"341172",label:"滁州经济技术开发区"},{value:"341125",label:"定远县"},{value:"341126",label:"凤阳县"},{value:"341122",label:"来安县"},{value:"341102",label:"琅琊区"},{value:"341182",label:"明光市"},{value:"341103",label:"南谯区"},{value:"341124",label:"全椒县"},{value:"341181",label:"天长市"},{value:"341171",label:"中新苏滁高新技术产业开发区"}]},{value:"3412",label:"阜阳市",children:[{value:"341225",label:"阜南县"},{value:"341271",label:"阜阳合肥现代产业园区"},{value:"341272",label:"阜阳经济技术开发区"},{value:"341282",label:"界首市"},{value:"341221",label:"临泉县"},{value:"341222",label:"太和县"},{value:"341203",label:"颍东区"},{value:"341204",label:"颍泉区"},{value:"341226",label:"颍上县"},{value:"341202",label:"颍州区"}]},{value:"3401",label:"合肥市",children:[{value:"340111",label:"包河区"},{value:"340181",label:"巢湖市"},{value:"340122",label:"肥东县"},{value:"340123",label:"肥西县"},{value:"340176",label:"合肥高新技术产业开发区"},{value:"340177",label:"合肥经济技术开发区"},{value:"340178",label:"合肥新站高新技术产业开发区"},{value:"340124",label:"庐江县"},{value:"340103",label:"庐阳区"},{value:"340104",label:"蜀山区"},{value:"340102",label:"瑶海区"},{value:"340121",label:"长丰县"}]},{value:"3406",label:"淮北市",children:[{value:"340602",label:"杜集区"},{value:"340604",label:"烈山区"},{value:"340621",label:"濉溪县"},{value:"340603",label:"相山区"}]},{value:"3404",label:"淮南市",children:[{value:"340405",label:"八公山区"},{value:"340402",label:"大通区"},{value:"340421",label:"凤台县"},{value:"340406",label:"潘集区"},{value:"340422",label:"寿县"},{value:"340403",label:"田家庵区"},{value:"340404",label:"谢家集区"}]},{value:"3410",label:"黄山市",children:[{value:"341003",label:"黄山区"},{value:"341004",label:"徽州区"},{value:"341024",label:"祁门县"},{value:"341021",label:"歙县"},{value:"341002",label:"屯溪区"},{value:"341022",label:"休宁县"},{value:"341023",label:"黟县"}]},{value:"3415",label:"六安市",children:[{value:"341522",label:"霍邱县"},{value:"341525",label:"霍山县"},{value:"341502",label:"金安区"},{value:"341524",label:"金寨县"},{value:"341523",label:"舒城县"},{value:"341504",label:"叶集区"},{value:"341503",label:"裕安区"}]},{value:"3405",label:"马鞍山市",children:[{value:"340506",label:"博望区"},{value:"340521",label:"当涂县"},{value:"340522",label:"含山县"},{value:"340523",label:"和县"},{value:"340503",label:"花山区"},{value:"340504",label:"雨山区"}]},{value:"3413",label:"宿州市",children:[{value:"341321",label:"砀山县"},{value:"341323",label:"灵璧县"},{value:"341324",label:"泗县"},{value:"341372",label:"宿州经济技术开发区"},{value:"341371",label:"宿州马鞍山现代产业园区"},{value:"341322",label:"萧县"},{value:"341302",label:"埇桥区"}]},{value:"3407",label:"铜陵市",children:[{value:"340722",label:"枞阳县"},{value:"340711",label:"郊区"},{value:"340705",label:"铜官区"},{value:"340706",label:"义安区"}]},{value:"3402",label:"芜湖市",children:[{value:"340272",label:"安徽芜湖三山经济开发区"},{value:"340212",label:"繁昌区"},{value:"340202",label:"镜湖区"},{value:"340207",label:"鸠江区"},{value:"340223",label:"南陵县"},{value:"340210",label:"湾沚区"},{value:"340281",label:"无为市"},{value:"340271",label:"芜湖经济技术开发区"},{value:"340209",label:"弋江区"}]},{value:"3418",label:"宣城市",children:[{value:"341882",label:"广德市"},{value:"341824",label:"绩溪县"},{value:"341823",label:"泾县"},{value:"341825",label:"旌德县"},{value:"341821",label:"郎溪县"},{value:"341881",label:"宁国市"},{value:"341871",label:"宣城市经济开发区"},{value:"341802",label:"宣州区"}]}]},{value:"11",label:"北京市",children:[{value:"1101",label:"市辖区",children:[{value:"110114",label:"昌平区"},{value:"110105",label:"朝阳区"},{value:"110115",label:"大兴区"},{value:"110101",label:"东城区"},{value:"110111",label:"房山区"},{value:"110106",label:"丰台区"},{value:"110108",label:"海淀区"},{value:"110116",label:"怀柔区"},{value:"110109",label:"门头沟区"},{value:"110118",label:"密云区"},{value:"110117",label:"平谷区"},{value:"110107",label:"石景山区"},{value:"110113",label:"顺义区"},{value:"110112",label:"通州区"},{value:"110102",label:"西城区"},{value:"110119",label:"延庆区"}]}]},{value:"50",label:"重庆市",children:[{value:"5001",label:"市辖区",children:[{value:"500113",label:"巴南区"},{value:"500109",label:"北碚区"},{value:"500120",label:"璧山区"},{value:"500104",label:"大渡口区"},{value:"500111",label:"大足区"},{value:"500102",label:"涪陵区"},{value:"500117",label:"合川区"},{value:"500105",label:"江北区"},{value:"500116",label:"江津区"},{value:"500107",label:"九龙坡区"},{value:"500154",label:"开州区"},{value:"500155",label:"梁平区"},{value:"500108",label:"南岸区"},{value:"500119",label:"南川区"},{value:"500110",label:"綦江区"},{value:"500114",label:"黔江区"},{value:"500153",label:"荣昌区"},{value:"500106",label:"沙坪坝区"},{value:"500151",label:"铜梁区"},{value:"500152",label:"潼南区"},{value:"500101",label:"万州区"},{value:"500156",label:"武隆区"},{value:"500118",label:"永川区"},{value:"500112",label:"渝北区"},{value:"500103",label:"渝中区"},{value:"500115",label:"长寿区"}]},{value:"5002",label:"县",children:[{value:"500229",label:"城口县"},{value:"500231",label:"垫江县"},{value:"500230",label:"丰都县"},{value:"500236",label:"奉节县"},{value:"500243",label:"彭水苗族土家族自治县"},{value:"500240",label:"石柱土家族自治县"},{value:"500237",label:"巫山县"},{value:"500238",label:"巫溪县"},{value:"500241",label:"秀山土家族苗族自治县"},{value:"500242",label:"酉阳土家族苗族自治县"},{value:"500235",label:"云阳县"},{value:"500233",label:"忠县"}]}]},{value:"35",label:"福建省",children:[{value:"3501",label:"福州市",children:[{value:"350104",label:"仓山区"},{value:"350181",label:"福清市"},{value:"350102",label:"鼓楼区"},{value:"350111",label:"晋安区"},{value:"350122",label:"连江县"},{value:"350123",label:"罗源县"},{value:"350105",label:"马尾区"},{value:"350121",label:"闽侯县"},{value:"350124",label:"闽清县"},{value:"350128",label:"平潭县"},{value:"350103",label:"台江区"},{value:"350125",label:"永泰县"},{value:"350112",label:"长乐区"}]},{value:"3508",label:"龙岩市",children:[{value:"350825",label:"连城县"},{value:"350823",label:"上杭县"},{value:"350824",label:"武平县"},{value:"350802",label:"新罗区"},{value:"350803",label:"永定区"},{value:"350881",label:"漳平市"},{value:"350821",label:"长汀县"}]},{value:"3507",label:"南平市",children:[{value:"350723",label:"光泽县"},{value:"350783",label:"建瓯市"},{value:"350703",label:"建阳区"},{value:"350722",label:"浦城县"},{value:"350781",label:"邵武市"},{value:"350721",label:"顺昌县"},{value:"350724",label:"松溪县"},{value:"350782",label:"武夷山市"},{value:"350702",label:"延平区"},{value:"350725",label:"政和县"}]},{value:"3509",label:"宁德市",children:[{value:"350981",label:"福安市"},{value:"350982",label:"福鼎市"},{value:"350922",label:"古田县"},{value:"350902",label:"蕉城区"},{value:"350923",label:"屏南县"},{value:"350924",label:"寿宁县"},{value:"350921",label:"霞浦县"},{value:"350926",label:"柘荣县"},{value:"350925",label:"周宁县"}]},{value:"3503",label:"莆田市",children:[{value:"350302",label:"城厢区"},{value:"350303",label:"涵江区"},{value:"350304",label:"荔城区"},{value:"350322",label:"仙游县"},{value:"350305",label:"秀屿区"}]},{value:"3505",label:"泉州市",children:[{value:"350524",label:"安溪县"},{value:"350526",label:"德化县"},{value:"350503",label:"丰泽区"},{value:"350521",label:"惠安县"},{value:"350527",label:"金门县"},{value:"350582",label:"晋江市"},{value:"350502",label:"鲤城区"},{value:"350504",label:"洛江区"},{value:"350583",label:"南安市"},{value:"350505",label:"泉港区"},{value:"350581",label:"石狮市"},{value:"350525",label:"永春县"}]},{value:"3504",label:"三明市",children:[{value:"350425",label:"大田县"},{value:"350430",label:"建宁县"},{value:"350428",label:"将乐县"},{value:"350421",label:"明溪县"},{value:"350424",label:"宁化县"},{value:"350423",label:"清流县"},{value:"350404",label:"三元区"},{value:"350405",label:"沙县区"},{value:"350429",label:"泰宁县"},{value:"350481",label:"永安市"},{value:"350426",label:"尤溪县"}]},{value:"3502",label:"厦门市",children:[{value:"350205",label:"海沧区"},{value:"350206",label:"湖里区"},{value:"350211",label:"集美区"},{value:"350203",label:"思明区"},{value:"350212",label:"同安区"},{value:"350213",label:"翔安区"}]},{value:"3506",label:"漳州市",children:[{value:"350626",label:"东山县"},{value:"350629",label:"华安县"},{value:"350604",label:"龙海区"},{value:"350603",label:"龙文区"},{value:"350627",label:"南靖县"},{value:"350628",label:"平和县"},{value:"350602",label:"芗城区"},{value:"350622",label:"云霄县"},{value:"350623",label:"漳浦县"},{value:"350605",label:"长泰区"},{value:"350624",label:"诏安县"}]}]},{value:"62",label:"甘肃省",children:[{value:"6204",label:"白银市",children:[{value:"620402",label:"白银区"},{value:"620422",label:"会宁县"},{value:"620423",label:"景泰县"},{value:"620421",label:"靖远县"},{value:"620403",label:"平川区"}]},{value:"6211",label:"定西市",children:[{value:"621102",label:"安定区"},{value:"621124",label:"临洮县"},{value:"621122",label:"陇西县"},{value:"621126",label:"岷县"},{value:"621121",label:"通渭县"},{value:"621123",label:"渭源县"},{value:"621125",label:"漳县"}]},{value:"6230",label:"甘南藏族自治州",children:[{value:"623024",label:"迭部县"},{value:"623001",label:"合作市"},{value:"623021",label:"临潭县"},{value:"623026",label:"碌曲县"},{value:"623025",label:"玛曲县"},{value:"623027",label:"夏河县"},{value:"623023",label:"舟曲县"},{value:"623022",label:"卓尼县"}]},{value:"6202",label:"嘉峪关市",children:[{value:"620201002",label:"钢城街道"},{value:"620201102",label:"文殊镇"},{value:"620201100",label:"新城镇"},{value:"620201001",label:"雄关街道"},{value:"620201101",label:"峪泉镇"}]},{value:"6203",label:"金昌市",children:[{value:"620302",label:"金川区"},{value:"620321",label:"永昌县"}]},{value:"6209",label:"酒泉市",children:[{value:"620924",label:"阿克塞哈萨克族自治县"},{value:"620982",label:"敦煌市"},{value:"620922",label:"瓜州县"},{value:"620921",label:"金塔县"},{value:"620923",label:"肃北蒙古族自治县"},{value:"620902",label:"肃州区"},{value:"620981",label:"玉门市"}]},{value:"6201",label:"兰州市",children:[{value:"620105",label:"安宁区"},{value:"620102",label:"城关区"},{value:"620122",label:"皋兰县"},{value:"620111",label:"红古区"},{value:"620171",label:"兰州新区"},{value:"620103",label:"七里河区"},{value:"620104",label:"西固区"},{value:"620121",label:"永登县"},{value:"620123",label:"榆中县"}]},{value:"6229",label:"临夏回族自治州",children:[{value:"622926",label:"东乡族自治县"},{value:"622924",label:"广河县"},{value:"622925",label:"和政县"},{value:"622927",label:"积石山保安族东乡族撒拉族自治县"},{value:"622922",label:"康乐县"},{value:"622901",label:"临夏市"},{value:"622921",label:"临夏县"},{value:"622923",label:"永靖县"}]},{value:"6212",label:"陇南市",children:[{value:"621221",label:"成县"},{value:"621223",label:"宕昌县"},{value:"621227",label:"徽县"},{value:"621224",label:"康县"},{value:"621226",label:"礼县"},{value:"621228",label:"两当县"},{value:"621222",label:"文县"},{value:"621202",label:"武都区"},{value:"621225",label:"西和县"}]},{value:"6208",label:"平凉市",children:[{value:"620823",label:"崇信县"},{value:"620881",label:"华亭市"},{value:"620821",label:"泾川县"},{value:"620826",label:"静宁县"},{value:"620802",label:"崆峒区"},{value:"620822",label:"灵台县"},{value:"620825",label:"庄浪县"}]},{value:"6210",label:"庆阳市",children:[{value:"621024",label:"合水县"},{value:"621023",label:"华池县"},{value:"621022",label:"环县"},{value:"621026",label:"宁县"},{value:"621021",label:"庆城县"},{value:"621002",label:"西峰区"},{value:"621027",label:"镇原县"},{value:"621025",label:"正宁县"}]},{value:"6205",label:"天水市",children:[{value:"620523",label:"甘谷县"},{value:"620503",label:"麦积区"},{value:"620522",label:"秦安县"},{value:"620502",label:"秦州区"},{value:"620521",label:"清水县"},{value:"620524",label:"武山县"},{value:"620525",label:"张家川回族自治县"}]},{value:"6206",label:"武威市",children:[{value:"620622",label:"古浪县"},{value:"620602",label:"凉州区"},{value:"620621",label:"民勤县"},{value:"620623",label:"天祝藏族自治县"}]},{value:"6207",label:"张掖市",children:[{value:"620702",label:"甘州区"},{value:"620724",label:"高台县"},{value:"620723",label:"临泽县"},{value:"620722",label:"民乐县"},{value:"620725",label:"山丹县"},{value:"620721",label:"肃南裕固族自治县"}]}]},{value:"44",label:"广东省",children:[{value:"4451",label:"潮州市",children:[{value:"445103",label:"潮安区"},{value:"445122",label:"饶平县"},{value:"445102",label:"湘桥区"}]},{value:"4419",label:"东莞市",children:[{value:"441900103",label:"茶山镇"},{value:"441900110",label:"常平镇"},{value:"441900113",label:"大朗镇"},{value:"441900118",label:"大岭山镇"},{value:"441900124",label:"道滘镇"},{value:"441900003",label:"东城街道"},{value:"441900404",label:"东莞滨海湾新区"},{value:"441900402",label:"东莞港"},{value:"441900403",label:"东莞生态园"},{value:"441900109",label:"东坑镇"},{value:"441900117",label:"凤岗镇"},{value:"441900129",label:"高埗镇"},{value:"441900006",label:"莞城街道"},{value:"441900106",label:"横沥镇"},{value:"441900125",label:"洪梅镇"},{value:"441900122",label:"厚街镇"},{value:"441900121",label:"虎门镇"},{value:"441900114",label:"黄江镇"},{value:"441900111",label:"寮步镇"},{value:"441900126",label:"麻涌镇"},{value:"441900004",label:"南城街道"},{value:"441900105",label:"企石镇"},{value:"441900107",label:"桥头镇"},{value:"441900115",label:"清溪镇"},{value:"441900123",label:"沙田镇"},{value:"441900101",label:"石碣镇"},{value:"441900102",label:"石龙镇"},{value:"441900104",label:"石排镇"},{value:"441900401",label:"松山湖"},{value:"441900116",label:"塘厦镇"},{value:"441900005",label:"万江街道"},{value:"441900127",label:"望牛墩镇"},{value:"441900108",label:"谢岗镇"},{value:"441900112",label:"樟木头镇"},{value:"441900119",label:"长安镇"},{value:"441900128",label:"中堂镇"}]},{value:"4406",label:"佛山市",children:[{value:"440604",label:"禅城区"},{value:"440608",label:"高明区"},{value:"440605",label:"南海区"},{value:"440607",label:"三水区"},{value:"440606",label:"顺德区"}]},{value:"4401",label:"广州市",children:[{value:"440111",label:"白云区"},{value:"440117",label:"从化区"},{value:"440113",label:"番禺区"},{value:"440105",label:"海珠区"},{value:"440114",label:"花都区"},{value:"440112",label:"黄埔区"},{value:"440103",label:"荔湾区"},{value:"440115",label:"南沙区"},{value:"440106",label:"天河区"},{value:"440104",label:"越秀区"},{value:"440118",label:"增城区"}]},{value:"4416",label:"河源市",children:[{value:"441625",label:"东源县"},{value:"441624",label:"和平县"},{value:"441623",label:"连平县"},{value:"441622",label:"龙川县"},{value:"441602",label:"源城区"},{value:"441621",label:"紫金县"}]},{value:"4413",label:"惠州市",children:[{value:"441322",label:"博罗县"},{value:"441302",label:"惠城区"},{value:"441323",label:"惠东县"},{value:"441303",label:"惠阳区"},{value:"441324",label:"龙门县"}]},{value:"4407",label:"江门市",children:[{value:"440785",label:"恩平市"},{value:"440784",label:"鹤山市"},{value:"440704",label:"江海区"},{value:"440783",label:"开平市"},{value:"440703",label:"蓬江区"},{value:"440781",label:"台山市"},{value:"440705",label:"新会区"}]},{value:"4452",label:"揭阳市",children:[{value:"445224",label:"惠来县"},{value:"445203",label:"揭东区"},{value:"445222",label:"揭西县"},{value:"445281",label:"普宁市"},{value:"445202",label:"榕城区"}]},{value:"4409",label:"茂名市",children:[{value:"440904",label:"电白区"},{value:"440981",label:"高州市"},{value:"440982",label:"化州市"},{value:"440902",label:"茂南区"},{value:"440983",label:"信宜市"}]},{value:"4414",label:"梅州市",children:[{value:"441422",label:"大埔县"},{value:"441423",label:"丰顺县"},{value:"441427",label:"蕉岭县"},{value:"441402",label:"梅江区"},{value:"441403",label:"梅县区"},{value:"441426",label:"平远县"},{value:"441424",label:"五华县"},{value:"441481",label:"兴宁市"}]},{value:"4418",label:"清远市",children:[{value:"441821",label:"佛冈县"},{value:"441826",label:"连南瑶族自治县"},{value:"441825",label:"连山壮族瑶族自治县"},{value:"441882",label:"连州市"},{value:"441802",label:"清城区"},{value:"441803",label:"清新区"},{value:"441823",label:"阳山县"},{value:"441881",label:"英德市"}]},{value:"4405",label:"汕头市",children:[{value:"440514",label:"潮南区"},{value:"440513",label:"潮阳区"},{value:"440515",label:"澄海区"},{value:"440512",label:"濠江区"},{value:"440511",label:"金平区"},{value:"440507",label:"龙湖区"},{value:"440523",label:"南澳县"}]},{value:"4415",label:"汕尾市",children:[{value:"441502",label:"城区"},{value:"441521",label:"海丰县"},{value:"441581",label:"陆丰市"},{value:"441523",label:"陆河县"}]},{value:"4402",label:"韶关市",children:[{value:"440281",label:"乐昌市"},{value:"440282",label:"南雄市"},{value:"440205",label:"曲江区"},{value:"440224",label:"仁化县"},{value:"440232",label:"乳源瑶族自治县"},{value:"440222",label:"始兴县"},{value:"440229",label:"翁源县"},{value:"440203",label:"武江区"},{value:"440233",label:"新丰县"},{value:"440204",label:"浈江区"}]},{value:"4403",label:"深圳市",children:[{value:"440306",label:"宝安区"},{value:"440304",label:"福田区"},{value:"440311",label:"光明区"},{value:"440307",label:"龙岗区"},{value:"440309",label:"龙华区"},{value:"440303",label:"罗湖区"},{value:"440305",label:"南山区"},{value:"440310",label:"坪山区"},{value:"440308",label:"盐田区"}]},{value:"4417",label:"阳江市",children:[{value:"441702",label:"江城区"},{value:"441781",label:"阳春市"},{value:"441704",label:"阳东区"},{value:"441721",label:"阳西县"}]},{value:"4453",label:"云浮市",children:[{value:"445381",label:"罗定市"},{value:"445321",label:"新兴县"},{value:"445322",label:"郁南县"},{value:"445303",label:"云安区"},{value:"445302",label:"云城区"}]},{value:"4408",label:"湛江市",children:[{value:"440802",label:"赤坎区"},{value:"440882",label:"雷州市"},{value:"440881",label:"廉江市"},{value:"440811",label:"麻章区"},{value:"440804",label:"坡头区"},{value:"440823",label:"遂溪县"},{value:"440883",label:"吴川市"},{value:"440803",label:"霞山区"},{value:"440825",label:"徐闻县"}]},{value:"4412",label:"肇庆市",children:[{value:"441226",label:"德庆县"},{value:"441203",label:"鼎湖区"},{value:"441202",label:"端州区"},{value:"441225",label:"封开县"},{value:"441204",label:"高要区"},{value:"441223",label:"广宁县"},{value:"441224",label:"怀集县"},{value:"441284",label:"四会市"}]},{value:"4420",label:"中山市",children:[{value:"442000115",label:"板芙镇"},{value:"442000116",label:"大涌镇"},{value:"442000103",label:"东凤镇"},{value:"442000002",label:"东区街道"},{value:"442000112",label:"阜沙镇"},{value:"442000108",label:"港口镇"},{value:"442000105",label:"古镇镇"},{value:"442000110",label:"横栏镇"},{value:"442000101",label:"黄圃镇"},{value:"442000007",label:"民众街道"},{value:"442000008",label:"南朗街道"},{value:"442000005",label:"南区街道"},{value:"442000111",label:"南头镇"},{value:"442000109",label:"三角镇"},{value:"442000114",label:"三乡镇"},{value:"442000106",label:"沙溪镇"},{value:"442000117",label:"神湾镇"},{value:"442000001",label:"石岐街道"},{value:"442000107",label:"坦洲镇"},{value:"442000006",label:"五桂山街道"},{value:"442000004",label:"西区街道"},{value:"442000118",label:"小榄镇"},{value:"442000003",label:"中山港街道"}]},{value:"4404",label:"珠海市",children:[{value:"440403",label:"斗门区"},{value:"440404",label:"金湾区"},{value:"440402",label:"香洲区"}]}]},{value:"45",label:"广西壮族自治区",children:[{value:"4510",label:"百色市",children:[{value:"451024",label:"德保县"},{value:"451081",label:"靖西市"},{value:"451028",label:"乐业县"},{value:"451027",label:"凌云县"},{value:"451031",label:"隆林各族自治县"},{value:"451026",label:"那坡县"},{value:"451082",label:"平果市"},{value:"451022",label:"田东县"},{value:"451029",label:"田林县"},{value:"451003",label:"田阳区"},{value:"451030",label:"西林县"},{value:"451002",label:"右江区"}]},{value:"4505",label:"北海市",children:[{value:"450502",label:"海城区"},{value:"450521",label:"合浦县"},{value:"450512",label:"铁山港区"},{value:"450503",label:"银海区"}]},{value:"4514",label:"崇左市",children:[{value:"451424",label:"大新县"},{value:"451421",label:"扶绥县"},{value:"451402",label:"江州区"},{value:"451423",label:"龙州县"},{value:"451422",label:"宁明县"},{value:"451481",label:"凭祥市"},{value:"451425",label:"天等县"}]},{value:"4506",label:"防城港市",children:[{value:"450681",label:"东兴市"},{value:"450603",label:"防城区"},{value:"450602",label:"港口区"},{value:"450621",label:"上思县"}]},{value:"4508",label:"贵港市",children:[{value:"450802",label:"港北区"},{value:"450803",label:"港南区"},{value:"450881",label:"桂平市"},{value:"450821",label:"平南县"},{value:"450804",label:"覃塘区"}]},{value:"4503",label:"桂林市",children:[{value:"450303",label:"叠彩区"},{value:"450332",label:"恭城瑶族自治县"},{value:"450327",label:"灌阳县"},{value:"450381",label:"荔浦市"},{value:"450312",label:"临桂区"},{value:"450323",label:"灵川县"},{value:"450328",label:"龙胜各族自治县"},{value:"450330",label:"平乐县"},{value:"450305",label:"七星区"},{value:"450324",label:"全州县"},{value:"450304",label:"象山区"},{value:"450325",label:"兴安县"},{value:"450302",label:"秀峰区"},{value:"450311",label:"雁山区"},{value:"450321",label:"阳朔县"},{value:"450326",label:"永福县"},{value:"450329",label:"资源县"}]},{value:"4512",label:"河池市",children:[{value:"451227",label:"巴马瑶族自治县"},{value:"451229",label:"大化瑶族自治县"},{value:"451224",label:"东兰县"},{value:"451228",label:"都安瑶族自治县"},{value:"451223",label:"凤山县"},{value:"451226",label:"环江毛南族自治县"},{value:"451202",label:"金城江区"},{value:"451225",label:"罗城仫佬族自治县"},{value:"451221",label:"南丹县"},{value:"451222",label:"天峨县"},{value:"451203",label:"宜州区"}]},{value:"4511",label:"贺州市",children:[{value:"451102",label:"八步区"},{value:"451123",label:"富川瑶族自治县"},{value:"451103",label:"平桂区"},{value:"451121",label:"昭平县"},{value:"451122",label:"钟山县"}]},{value:"4513",label:"来宾市",children:[{value:"451381",label:"合山市"},{value:"451324",label:"金秀瑶族自治县"},{value:"451323",label:"武宣县"},{value:"451322",label:"象州县"},{value:"451321",label:"忻城县"},{value:"451302",label:"兴宾区"}]},{value:"4502",label:"柳州市",children:[{value:"450202",label:"城中区"},{value:"450205",label:"柳北区"},{value:"450222",label:"柳城县"},{value:"450206",label:"柳江区"},{value:"450204",label:"柳南区"},{value:"450223",label:"鹿寨县"},{value:"450224",label:"融安县"},{value:"450225",label:"融水苗族自治县"},{value:"450226",label:"三江侗族自治县"},{value:"450203",label:"鱼峰区"}]},{value:"4501",label:"南宁市",children:[{value:"450126",label:"宾阳县"},{value:"450181",label:"横州市"},{value:"450105",label:"江南区"},{value:"450108",label:"良庆区"},{value:"450123",label:"隆安县"},{value:"450124",label:"马山县"},{value:"450103",label:"青秀区"},{value:"450125",label:"上林县"},{value:"450110",label:"武鸣区"},{value:"450107",label:"西乡塘区"},{value:"450102",label:"兴宁区"},{value:"450109",label:"邕宁区"}]},{value:"4507",label:"钦州市",children:[{value:"450721",label:"灵山县"},{value:"450722",label:"浦北县"},{value:"450703",label:"钦北区"},{value:"450702",label:"钦南区"}]},{value:"4504",label:"梧州市",children:[{value:"450421",label:"苍梧县"},{value:"450481",label:"岑溪市"},{value:"450406",label:"龙圩区"},{value:"450423",label:"蒙山县"},{value:"450422",label:"藤县"},{value:"450403",label:"万秀区"},{value:"450405",label:"长洲区"}]},{value:"4509",label:"玉林市",children:[{value:"450981",label:"北流市"},{value:"450923",label:"博白县"},{value:"450903",label:"福绵区"},{value:"450922",label:"陆川县"},{value:"450921",label:"容县"},{value:"450924",label:"兴业县"},{value:"450902",label:"玉州区"}]}]},{value:"52",label:"贵州省",children:[{value:"5204",label:"安顺市",children:[{value:"520424",label:"关岭布依族苗族自治县"},{value:"520403",label:"平坝区"},{value:"520422",label:"普定县"},{value:"520402",label:"西秀区"},{value:"520423",label:"镇宁布依族苗族自治县"},{value:"520425",label:"紫云苗族布依族自治县"}]},{value:"5205",label:"毕节市",children:[{value:"520521",label:"大方县"},{value:"520527",label:"赫章县"},{value:"520523",label:"金沙县"},{value:"520525",label:"纳雍县"},{value:"520502",label:"七星关区"},{value:"520581",label:"黔西市"},{value:"520526",label:"威宁彝族回族苗族自治县"},{value:"520524",label:"织金县"}]},{value:"5201",label:"贵阳市",children:[{value:"520113",label:"白云区"},{value:"520115",label:"观山湖区"},{value:"520111",label:"花溪区"},{value:"520121",label:"开阳县"},{value:"520102",label:"南明区"},{value:"520181",label:"清镇市"},{value:"520112",label:"乌当区"},{value:"520122",label:"息烽县"},{value:"520123",label:"修文县"},{value:"520103",label:"云岩区"}]},{value:"5202",label:"六盘水市",children:[{value:"520203",label:"六枝特区"},{value:"520281",label:"盘州市"},{value:"520204",label:"水城区"},{value:"520201",label:"钟山区"}]},{value:"5226",label:"黔东南苗族侗族自治州",children:[{value:"522626",label:"岑巩县"},{value:"522633",label:"从江县"},{value:"522636",label:"丹寨县"},{value:"522622",label:"黄平县"},{value:"522629",label:"剑河县"},{value:"522628",label:"锦屏县"},{value:"522601",label:"凯里市"},{value:"522634",label:"雷山县"},{value:"522631",label:"黎平县"},{value:"522635",label:"麻江县"},{value:"522632",label:"榕江县"},{value:"522624",label:"三穗县"},{value:"522623",label:"施秉县"},{value:"522630",label:"台江县"},{value:"522627",label:"天柱县"},{value:"522625",label:"镇远县"}]},{value:"5227",label:"黔南布依族苗族自治州",children:[{value:"522701",label:"都匀市"},{value:"522726",label:"独山县"},{value:"522702",label:"福泉市"},{value:"522723",label:"贵定县"},{value:"522731",label:"惠水县"},{value:"522722",label:"荔波县"},{value:"522730",label:"龙里县"},{value:"522728",label:"罗甸县"},{value:"522727",label:"平塘县"},{value:"522732",label:"三都水族自治县"},{value:"522725",label:"瓮安县"},{value:"522729",label:"长顺县"}]},{value:"5223",label:"黔西南布依族苗族自治州",children:[{value:"522328",label:"安龙县"},{value:"522327",label:"册亨县"},{value:"522323",label:"普安县"},{value:"522324",label:"晴隆县"},{value:"522326",label:"望谟县"},{value:"522302",label:"兴仁市"},{value:"522301",label:"兴义市"},{value:"522325",label:"贞丰县"}]},{value:"5206",label:"铜仁市",children:[{value:"520602",label:"碧江区"},{value:"520626",label:"德江县"},{value:"520621",label:"江口县"},{value:"520623",label:"石阡县"},{value:"520624",label:"思南县"},{value:"520628",label:"松桃苗族自治县"},{value:"520603",label:"万山区"},{value:"520627",label:"沿河土家族自治县"},{value:"520625",label:"印江土家族苗族自治县"},{value:"520622",label:"玉屏侗族自治县"}]},{value:"5203",label:"遵义市",children:[{value:"520304",label:"播州区"},{value:"520381",label:"赤水市"},{value:"520325",label:"道真仡佬族苗族自治县"},{value:"520327",label:"凤冈县"},{value:"520302",label:"红花岗区"},{value:"520303",label:"汇川区"},{value:"520328",label:"湄潭县"},{value:"520382",label:"仁怀市"},{value:"520323",label:"绥阳县"},{value:"520322",label:"桐梓县"},{value:"520326",label:"务川仡佬族苗族自治县"},{value:"520330",label:"习水县"},{value:"520329",label:"余庆县"},{value:"520324",label:"正安县"}]}]},{value:"46",label:"海南省",children:[{value:"4604",label:"儋州市",children:[{value:"460400112",label:"白马井镇"},{value:"460400103",label:"大成镇"},{value:"460400115",label:"东成镇"},{value:"460400109",label:"峨蔓镇"},{value:"460400106",label:"光村镇"},{value:"460400108",label:"海头镇"},{value:"460400101",label:"和庆镇"},{value:"460400500",label:"华南热作学院"},{value:"460400105",label:"兰洋镇"},{value:"460400107",label:"木棠镇"},{value:"460400100",label:"那大镇"},{value:"460400102",label:"南丰镇"},{value:"460400114",label:"排浦镇"},{value:"460400111",label:"王五镇"},{value:"460400116",label:"新州镇"},{value:"460400104",label:"雅星镇"},{value:"460400499",label:"洋浦经济开发区"},{value:"460400113",label:"中和镇"}]},{value:"4601",label:"海口市",children:[{value:"460106",label:"龙华区"},{value:"460108",label:"美兰区"},{value:"460107",label:"琼山区"},{value:"460105",label:"秀英区"}]},{value:"4603",label:"三沙市",children:[{value:"460322",label:"南沙群岛"},{value:"460321",label:"西沙群岛"},{value:"460323",label:"中沙群岛的岛礁及其海域"}]},{value:"4602",label:"三亚市",children:[{value:"460202",label:"海棠区"},{value:"460203",label:"吉阳区"},{value:"460204",label:"天涯区"},{value:"460205",label:"崖州区"}]},{value:"4690",label:"省直辖县级行政区划",children:[{value:"469025",label:"白沙黎族自治县"},{value:"469029",label:"保亭黎族苗族自治县"},{value:"469026",label:"昌江黎族自治县"},{value:"469023",label:"澄迈县"},{value:"469021",label:"定安县"},{value:"469007",label:"东方市"},{value:"469027",label:"乐东黎族自治县"},{value:"469024",label:"临高县"},{value:"469028",label:"陵水黎族自治县"},{value:"469002",label:"琼海市"},{value:"469030",label:"琼中黎族苗族自治县"},{value:"469022",label:"屯昌县"},{value:"469006",label:"万宁市"},{value:"469005",label:"文昌市"},{value:"469001",label:"五指山市"}]}]},{value:"13",label:"河北省",children:[{value:"1306",label:"保定市",children:[{value:"130683",label:"安国市"},{value:"130632",label:"安新县"},{value:"130672",label:"保定白沟新城"},{value:"130671",label:"保定高新技术产业开发区"},{value:"130637",label:"博野县"},{value:"130626",label:"定兴县"},{value:"130682",label:"定州市"},{value:"130624",label:"阜平县"},{value:"130684",label:"高碑店市"},{value:"130628",label:"高阳县"},{value:"130602",label:"竞秀区"},{value:"130623",label:"涞水县"},{value:"130630",label:"涞源县"},{value:"130635",label:"蠡县"},{value:"130606",label:"莲池区"},{value:"130607",label:"满城区"},{value:"130608",label:"清苑区"},{value:"130634",label:"曲阳县"},{value:"130629",label:"容城县"},{value:"130636",label:"顺平县"},{value:"130627",label:"唐县"},{value:"130631",label:"望都县"},{value:"130638",label:"雄县"},{value:"130609",label:"徐水区"},{value:"130633",label:"易县"},{value:"130681",label:"涿州市"}]},{value:"1309",label:"沧州市",children:[{value:"130921",label:"沧县"},{value:"130973",label:"沧州渤海新区"},{value:"130972",label:"沧州高新技术产业开发区"},{value:"130923",label:"东光县"},{value:"130924",label:"海兴县"},{value:"130971",label:"河北沧州经济开发区"},{value:"130984",label:"河间市"},{value:"130983",label:"黄骅市"},{value:"130930",label:"孟村回族自治县"},{value:"130927",label:"南皮县"},{value:"130981",label:"泊头市"},{value:"130922",label:"青县"},{value:"130982",label:"任丘市"},{value:"130926",label:"肃宁县"},{value:"130928",label:"吴桥县"},{value:"130929",label:"献县"},{value:"130902",label:"新华区"},{value:"130925",label:"盐山县"},{value:"130903",label:"运河区"}]},{value:"1308",label:"承德市",children:[{value:"130871",label:"承德高新技术产业开发区"},{value:"130821",label:"承德县"},{value:"130826",label:"丰宁满族自治县"},{value:"130827",label:"宽城满族自治县"},{value:"130825",label:"隆化县"},{value:"130824",label:"滦平县"},{value:"130881",label:"平泉市"},{value:"130803",label:"双滦区"},{value:"130802",label:"双桥区"},{value:"130828",label:"围场满族蒙古族自治县"},{value:"130822",label:"兴隆县"},{value:"130804",label:"鹰手营子矿区"}]},{value:"1304",label:"邯郸市",children:[{value:"130424",label:"成安县"},{value:"130427",label:"磁县"},{value:"130403",label:"丛台区"},{value:"130425",label:"大名县"},{value:"130407",label:"肥乡区"},{value:"130406",label:"峰峰矿区"},{value:"130404",label:"复兴区"},{value:"130433",label:"馆陶县"},{value:"130432",label:"广平县"},{value:"130473",label:"邯郸冀南新区"},{value:"130471",label:"邯郸经济技术开发区"},{value:"130402",label:"邯山区"},{value:"130431",label:"鸡泽县"},{value:"130423",label:"临漳县"},{value:"130430",label:"邱县"},{value:"130435",label:"曲周县"},{value:"130426",label:"涉县"},{value:"130434",label:"魏县"},{value:"130481",label:"武安市"},{value:"130408",label:"永年区"}]},{value:"1311",label:"衡水市",children:[{value:"131125",label:"安平县"},{value:"131128",label:"阜城县"},{value:"131126",label:"故城县"},{value:"131171",label:"河北衡水高新技术产业开发区"},{value:"131172",label:"衡水滨湖新区"},{value:"131103",label:"冀州区"},{value:"131127",label:"景县"},{value:"131124",label:"饶阳县"},{value:"131182",label:"深州市"},{value:"131102",label:"桃城区"},{value:"131123",label:"武强县"},{value:"131122",label:"武邑县"},{value:"131121",label:"枣强县"}]},{value:"1310",label:"廊坊市",children:[{value:"131002",label:"安次区"},{value:"131081",label:"霸州市"},{value:"131028",label:"大厂回族自治县"},{value:"131025",label:"大城县"},{value:"131022",label:"固安县"},{value:"131003",label:"广阳区"},{value:"131071",label:"廊坊经济技术开发区"},{value:"131082",label:"三河市"},{value:"131026",label:"文安县"},{value:"131024",label:"香河县"},{value:"131023",label:"永清县"}]},{value:"1303",label:"秦皇岛市",children:[{value:"130304",label:"北戴河区"},{value:"130372",label:"北戴河新区"},{value:"130322",label:"昌黎县"},{value:"130306",label:"抚宁区"},{value:"130302",label:"海港区"},{value:"130324",label:"卢龙县"},{value:"130371",label:"秦皇岛市经济技术开发区"},{value:"130321",label:"青龙满族自治县"},{value:"130303",label:"山海关区"}]},{value:"1301",label:"石家庄市",children:[{value:"130127",label:"高邑县"},{value:"130109",label:"藁城区"},{value:"130183",label:"晋州市"},{value:"130107",label:"井陉矿区"},{value:"130121",label:"井陉县"},{value:"130126",label:"灵寿县"},{value:"130110",label:"鹿泉区"},{value:"130111",label:"栾城区"},{value:"130131",label:"平山县"},{value:"130104",label:"桥西区"},{value:"130128",label:"深泽县"},{value:"130171",label:"石家庄高新技术产业开发区"},{value:"130172",label:"石家庄循环化工园区"},{value:"130130",label:"无极县"},{value:"130181",label:"辛集市"},{value:"130105",label:"新华区"},{value:"130184",label:"新乐市"},{value:"130125",label:"行唐县"},{value:"130108",label:"裕华区"},{value:"130132",label:"元氏县"},{value:"130129",label:"赞皇县"},{value:"130102",label:"长安区"},{value:"130133",label:"赵县"},{value:"130123",label:"正定县"}]},{value:"1302",label:"唐山市",children:[{value:"130209",label:"曹妃甸区"},{value:"130207",label:"丰南区"},{value:"130208",label:"丰润区"},{value:"130204",label:"古冶区"},{value:"130274",label:"河北唐山海港经济开发区"},{value:"130271",label:"河北唐山芦台经济开发区"},{value:"130205",label:"开平区"},{value:"130225",label:"乐亭县"},{value:"130203",label:"路北区"},{value:"130202",label:"路南区"},{value:"130224",label:"滦南县"},{value:"130284",label:"滦州市"},{value:"130283",label:"迁安市"},{value:"130227",label:"迁西县"},{value:"130273",label:"唐山高新技术产业开发区"},{value:"130272",label:"唐山市汉沽管理区"},{value:"130229",label:"玉田县"},{value:"130281",label:"遵化市"}]},{value:"1305",label:"邢台市",children:[{value:"130524",label:"柏乡县"},{value:"130531",label:"广宗县"},{value:"130571",label:"河北邢台经济开发区"},{value:"130529",label:"巨鹿县"},{value:"130522",label:"临城县"},{value:"130535",label:"临西县"},{value:"130525",label:"隆尧县"},{value:"130581",label:"南宫市"},{value:"130506",label:"南和区"},{value:"130523",label:"内丘县"},{value:"130528",label:"宁晋县"},{value:"130532",label:"平乡县"},{value:"130534",label:"清河县"},{value:"130505",label:"任泽区"},{value:"130582",label:"沙河市"},{value:"130533",label:"威县"},{value:"130502",label:"襄都区"},{value:"130530",label:"新河县"},{value:"130503",label:"信都区"}]},{value:"1307",label:"张家口市",children:[{value:"130732",label:"赤城县"},{value:"130709",label:"崇礼区"},{value:"130724",label:"沽源县"},{value:"130728",label:"怀安县"},{value:"130730",label:"怀来县"},{value:"130723",label:"康保县"},{value:"130702",label:"桥东区"},{value:"130703",label:"桥西区"},{value:"130725",label:"尚义县"},{value:"130708",label:"万全区"},{value:"130726",label:"蔚县"},{value:"130706",label:"下花园区"},{value:"130705",label:"宣化区"},{value:"130727",label:"阳原县"},{value:"130722",label:"张北县"},{value:"130771",label:"张家口经济开发区"},{value:"130772",label:"张家口市察北管理区"},{value:"130773",label:"张家口市塞北管理区"},{value:"130731",label:"涿鹿县"}]}]},{value:"41",label:"河南省",children:[{value:"4105",label:"安阳市",children:[{value:"410571",label:"安阳高新技术产业开发区"},{value:"410522",label:"安阳县"},{value:"410503",label:"北关区"},{value:"410526",label:"滑县"},{value:"410581",label:"林州市"},{value:"410506",label:"龙安区"},{value:"410527",label:"内黄县"},{value:"410523",label:"汤阴县"},{value:"410502",label:"文峰区"},{value:"410505",label:"殷都区"}]},{value:"4106",label:"鹤壁市",children:[{value:"410671",label:"鹤壁经济技术开发区"},{value:"410602",label:"鹤山区"},{value:"410621",label:"浚县"},{value:"410611",label:"淇滨区"},{value:"410622",label:"淇县"},{value:"410603",label:"山城区"}]},{value:"4108",label:"焦作市",children:[{value:"410822",label:"博爱县"},{value:"410871",label:"焦作城乡一体化示范区"},{value:"410802",label:"解放区"},{value:"410804",label:"马村区"},{value:"410883",label:"孟州市"},{value:"410882",label:"沁阳市"},{value:"410811",label:"山阳区"},{value:"410825",label:"温县"},{value:"410823",label:"武陟县"},{value:"410821",label:"修武县"},{value:"410803",label:"中站区"}]},{value:"4102",label:"开封市",children:[{value:"410204",label:"鼓楼区"},{value:"410225",label:"兰考县"},{value:"410202",label:"龙亭区"},{value:"410221",label:"杞县"},{value:"410203",label:"顺河回族区"},{value:"410222",label:"通许县"},{value:"410223",label:"尉氏县"},{value:"410212",label:"祥符区"},{value:"410205",label:"禹王台区"}]},{value:"4103",label:"洛阳市",children:[{value:"410304",label:"瀍河回族区"},{value:"410305",label:"涧西区"},{value:"410302",label:"老城区"},{value:"410324",label:"栾川县"},{value:"410311",label:"洛龙区"},{value:"410328",label:"洛宁县"},{value:"410371",label:"洛阳高新技术产业开发区"},{value:"410308",label:"孟津区"},{value:"410326",label:"汝阳县"},{value:"410325",label:"嵩县"},{value:"410303",label:"西工区"},{value:"410323",label:"新安县"},{value:"410307",label:"偃师区"},{value:"410329",label:"伊川县"},{value:"410327",label:"宜阳县"}]},{value:"4111",label:"漯河市",children:[{value:"411122",label:"临颍县"},{value:"411171",label:"漯河经济技术开发区"},{value:"411121",label:"舞阳县"},{value:"411103",label:"郾城区"},{value:"411102",label:"源汇区"},{value:"411104",label:"召陵区"}]},{value:"4113",label:"南阳市",children:[{value:"411381",label:"邓州市"},{value:"411322",label:"方城县"},{value:"411371",label:"南阳高新技术产业开发区"},{value:"411372",label:"南阳市城乡一体化示范区"},{value:"411321",label:"南召县"},{value:"411325",label:"内乡县"},{value:"411327",label:"社旗县"},{value:"411328",label:"唐河县"},{value:"411330",label:"桐柏县"},{value:"411302",label:"宛城区"},{value:"411303",label:"卧龙区"},{value:"411323",label:"西峡县"},{value:"411326",label:"淅川县"},{value:"411329",label:"新野县"},{value:"411324",label:"镇平县"}]},{value:"4104",label:"平顶山市",children:[{value:"410421",label:"宝丰县"},{value:"410425",label:"郏县"},{value:"410423",label:"鲁山县"},{value:"410471",label:"平顶山高新技术产业开发区"},{value:"410472",label:"平顶山市城乡一体化示范区"},{value:"410482",label:"汝州市"},{value:"410404",label:"石龙区"},{value:"410403",label:"卫东区"},{value:"410481",label:"舞钢市"},{value:"410402",label:"新华区"},{value:"410422",label:"叶县"},{value:"410411",label:"湛河区"}]},{value:"4109",label:"濮阳市",children:[{value:"410926",label:"范县"},{value:"410971",label:"河南濮阳工业园区"},{value:"410902",label:"华龙区"},{value:"410923",label:"南乐县"},{value:"410972",label:"濮阳经济技术开发区"},{value:"410928",label:"濮阳县"},{value:"410922",label:"清丰县"},{value:"410927",label:"台前县"}]},{value:"4112",label:"三门峡市",children:[{value:"411271",label:"河南三门峡经济开发区"},{value:"411202",label:"湖滨区"},{value:"411282",label:"灵宝市"},{value:"411224",label:"卢氏县"},{value:"411221",label:"渑池县"},{value:"411203",label:"陕州区"},{value:"411281",label:"义马市"}]},{value:"4114",label:"商丘市",children:[{value:"411472",label:"河南商丘经济开发区"},{value:"411402",label:"梁园区"},{value:"411421",label:"民权县"},{value:"411423",label:"宁陵县"},{value:"411422",label:"睢县"},{value:"411403",label:"睢阳区"},{value:"411426",label:"夏邑县"},{value:"411481",label:"永城市"},{value:"411425",label:"虞城县"},{value:"411471",label:"豫东综合物流产业聚集区"},{value:"411424",label:"柘城县"}]},{value:"4190",label:"省直辖县级行政区划",children:[{value:"419001",label:"济源市"}]},{value:"4107",label:"新乡市",children:[{value:"410727",label:"封丘县"},{value:"410704",label:"凤泉区"},{value:"410702",label:"红旗区"},{value:"410782",label:"辉县市"},{value:"410724",label:"获嘉县"},{value:"410711",label:"牧野区"},{value:"410703",label:"卫滨区"},{value:"410781",label:"卫辉市"},{value:"410771",label:"新乡高新技术产业开发区"},{value:"410772",label:"新乡经济技术开发区"},{value:"410773",label:"新乡市平原城乡一体化示范区"},{value:"410721",label:"新乡县"},{value:"410726",label:"延津县"},{value:"410725",label:"原阳县"},{value:"410783",label:"长垣市"}]},{value:"4115",label:"信阳市",children:[{value:"411525",label:"固始县"},{value:"411522",label:"光山县"},{value:"411527",label:"淮滨县"},{value:"411526",label:"潢川县"},{value:"411521",label:"罗山县"},{value:"411503",label:"平桥区"},{value:"411524",label:"商城县"},{value:"411502",label:"浉河区"},{value:"411528",label:"息县"},{value:"411523",label:"新县"},{value:"411571",label:"信阳高新技术产业开发区"}]},{value:"4110",label:"许昌市",children:[{value:"411003",label:"建安区"},{value:"411002",label:"魏都区"},{value:"411025",label:"襄城县"},{value:"411071",label:"许昌经济技术开发区"},{value:"411024",label:"鄢陵县"},{value:"411081",label:"禹州市"},{value:"411082",label:"长葛市"}]},{value:"4101",label:"郑州市",children:[{value:"410185",label:"登封市"},{value:"410103",label:"二七区"},{value:"410181",label:"巩义市"},{value:"410104",label:"管城回族区"},{value:"410108",label:"惠济区"},{value:"410105",label:"金水区"},{value:"410106",label:"上街区"},{value:"410183",label:"新密市"},{value:"410184",label:"新郑市"},{value:"410182",label:"荥阳市"},{value:"410172",label:"郑州高新技术产业开发区"},{value:"410173",label:"郑州航空港经济综合实验区"},{value:"410171",label:"郑州经济技术开发区"},{value:"410122",label:"中牟县"},{value:"410102",label:"中原区"}]},{value:"4116",label:"周口市",children:[{value:"411602",label:"川汇区"},{value:"411625",label:"郸城县"},{value:"411621",label:"扶沟县"},{value:"411603",label:"淮阳区"},{value:"411628",label:"鹿邑县"},{value:"411623",label:"商水县"},{value:"411624",label:"沈丘县"},{value:"411627",label:"太康县"},{value:"411622",label:"西华县"},{value:"411681",label:"项城市"},{value:"411671",label:"周口临港开发区"}]},{value:"4117",label:"驻马店市",children:[{value:"411771",label:"河南驻马店经济开发区"},{value:"411726",label:"泌阳县"},{value:"411723",label:"平舆县"},{value:"411725",label:"确山县"},{value:"411727",label:"汝南县"},{value:"411722",label:"上蔡县"},{value:"411728",label:"遂平县"},{value:"411721",label:"西平县"},{value:"411729",label:"新蔡县"},{value:"411702",label:"驿城区"},{value:"411724",label:"正阳县"}]}]},{value:"23",label:"黑龙江省",children:[{value:"2306",label:"大庆市",children:[{value:"230671",label:"大庆高新技术产业开发区"},{value:"230606",label:"大同区"},{value:"230624",label:"杜尔伯特蒙古族自治县"},{value:"230605",label:"红岗区"},{value:"230623",label:"林甸县"},{value:"230603",label:"龙凤区"},{value:"230604",label:"让胡路区"},{value:"230602",label:"萨尔图区"},{value:"230622",label:"肇源县"},{value:"230621",label:"肇州县"}]},{value:"2327",label:"大兴安岭地区",children:[{value:"232721",label:"呼玛县"},{value:"232764",label:"呼中区"},{value:"232761",label:"加格达奇区"},{value:"232701",label:"漠河市"},{value:"232762",label:"松岭区"},{value:"232722",label:"塔河县"},{value:"232763",label:"新林区"}]},{value:"2301",label:"哈尔滨市",children:[{value:"230112",label:"阿城区"},{value:"230126",label:"巴彦县"},{value:"230125",label:"宾县"},{value:"230102",label:"道里区"},{value:"230104",label:"道外区"},{value:"230124",label:"方正县"},{value:"230111",label:"呼兰区"},{value:"230127",label:"木兰县"},{value:"230103",label:"南岗区"},{value:"230108",label:"平房区"},{value:"230183",label:"尚志市"},{value:"230113",label:"双城区"},{value:"230109",label:"松北区"},{value:"230128",label:"通河县"},{value:"230184",label:"五常市"},{value:"230110",label:"香坊区"},{value:"230129",label:"延寿县"},{value:"230123",label:"依兰县"}]},{value:"2304",label:"鹤岗市",children:[{value:"230406",label:"东山区"},{value:"230403",label:"工农区"},{value:"230421",label:"萝北县"},{value:"230404",label:"南山区"},{value:"230422",label:"绥滨县"},{value:"230402",label:"向阳区"},{value:"230405",label:"兴安区"},{value:"230407",label:"兴山区"}]},{value:"2311",label:"黑河市",children:[{value:"231102",label:"爱辉区"},{value:"231181",label:"北安市"},{value:"231183",label:"嫩江市"},{value:"231124",label:"孙吴县"},{value:"231182",label:"五大连池市"},{value:"231123",label:"逊克县"}]},{value:"2303",label:"鸡西市",children:[{value:"230306",label:"城子河区"},{value:"230304",label:"滴道区"},{value:"230303",label:"恒山区"},{value:"230381",label:"虎林市"},{value:"230321",label:"鸡东县"},{value:"230302",label:"鸡冠区"},{value:"230305",label:"梨树区"},{value:"230307",label:"麻山区"},{value:"230382",label:"密山市"}]},{value:"2308",label:"佳木斯市",children:[{value:"230805",label:"东风区"},{value:"230883",label:"抚远市"},{value:"230882",label:"富锦市"},{value:"230826",label:"桦川县"},{value:"230822",label:"桦南县"},{value:"230811",label:"郊区"},{value:"230804",label:"前进区"},{value:"230828",label:"汤原县"},{value:"230881",label:"同江市"},{value:"230803",label:"向阳区"}]},{value:"2310",label:"牡丹江市",children:[{value:"231004",label:"爱民区"},{value:"231002",label:"东安区"},{value:"231086",label:"东宁市"},{value:"231083",label:"海林市"},{value:"231025",label:"林口县"},{value:"231085",label:"穆棱市"},{value:"231084",label:"宁安市"},{value:"231081",label:"绥芬河市"},{value:"231005",label:"西安区"},{value:"231003",label:"阳明区"}]},{value:"2309",label:"七台河市",children:[{value:"230921",label:"勃利县"},{value:"230904",label:"茄子河区"},{value:"230903",label:"桃山区"},{value:"230902",label:"新兴区"}]},{value:"2302",label:"齐齐哈尔市",children:[{value:"230205",label:"昂昂溪区"},{value:"230231",label:"拜泉县"},{value:"230206",label:"富拉尔基区"},{value:"230227",label:"富裕县"},{value:"230225",label:"甘南县"},{value:"230203",label:"建华区"},{value:"230230",label:"克东县"},{value:"230229",label:"克山县"},{value:"230221",label:"龙江县"},{value:"230202",label:"龙沙区"},{value:"230208",label:"梅里斯达斡尔族区"},{value:"230281",label:"讷河市"},{value:"230207",label:"碾子山区"},{value:"230224",label:"泰来县"},{value:"230204",label:"铁锋区"},{value:"230223",label:"依安县"}]},{value:"2305",label:"双鸭山市",children:[{value:"230523",label:"宝清县"},{value:"230506",label:"宝山区"},{value:"230521",label:"集贤县"},{value:"230502",label:"尖山区"},{value:"230503",label:"岭东区"},{value:"230524",label:"饶河县"},{value:"230505",label:"四方台区"},{value:"230522",label:"友谊县"}]},{value:"2312",label:"绥化市",children:[{value:"231281",label:"安达市"},{value:"231202",label:"北林区"},{value:"231283",label:"海伦市"},{value:"231222",label:"兰西县"},{value:"231225",label:"明水县"},{value:"231223",label:"青冈县"},{value:"231224",label:"庆安县"},{value:"231226",label:"绥棱县"},{value:"231221",label:"望奎县"},{value:"231282",label:"肇东市"}]},{value:"2307",label:"伊春市",children:[{value:"230725",label:"大箐山县"},{value:"230724",label:"丰林县"},{value:"230722",label:"嘉荫县"},{value:"230751",label:"金林区"},{value:"230726",label:"南岔县"},{value:"230723",label:"汤旺县"},{value:"230781",label:"铁力市"},{value:"230718",label:"乌翠区"},{value:"230717",label:"伊美区"},{value:"230719",label:"友好区"}]}]},{value:"42",label:"湖北省",children:[{value:"4207",label:"鄂州市",children:[{value:"420704",label:"鄂城区"},{value:"420703",label:"华容区"},{value:"420702",label:"梁子湖区"}]},{value:"4228",label:"恩施土家族苗族自治州",children:[{value:"422823",label:"巴东县"},{value:"422801",label:"恩施市"},{value:"422828",label:"鹤峰县"},{value:"422822",label:"建始县"},{value:"422827",label:"来凤县"},{value:"422802",label:"利川市"},{value:"422826",label:"咸丰县"},{value:"422825",label:"宣恩县"}]},{value:"4211",label:"黄冈市",children:[{value:"421122",label:"红安县"},{value:"421127",label:"黄梅县"},{value:"421102",label:"黄州区"},{value:"421171",label:"龙感湖管理区"},{value:"421123",label:"罗田县"},{value:"421181",label:"麻城市"},{value:"421126",label:"蕲春县"},{value:"421121",label:"团风县"},{value:"421182",label:"武穴市"},{value:"421125",label:"浠水县"},{value:"421124",label:"英山县"}]},{value:"4202",label:"黄石市",children:[{value:"420281",label:"大冶市"},{value:"420202",label:"黄石港区"},{value:"420205",label:"铁山区"},{value:"420203",label:"西塞山区"},{value:"420204",label:"下陆区"},{value:"420222",label:"阳新县"}]},{value:"4208",label:"荆门市",children:[{value:"420802",label:"东宝区"},{value:"420804",label:"掇刀区"},{value:"420882",label:"京山市"},{value:"420822",label:"沙洋县"},{value:"420881",label:"钟祥市"}]},{value:"4210",label:"荆州市",children:[{value:"421022",label:"公安县"},{value:"421083",label:"洪湖市"},{value:"421088",label:"监利市"},{value:"421024",label:"江陵县"},{value:"421071",label:"荆州经济技术开发区"},{value:"421003",label:"荆州区"},{value:"421002",label:"沙市区"},{value:"421081",label:"石首市"},{value:"421087",label:"松滋市"}]},{value:"4290",label:"省直辖县级行政区划",children:[{value:"429005",label:"潜江市"},{value:"429021",label:"神农架林区"},{value:"429006",label:"天门市"},{value:"429004",label:"仙桃市"}]},{value:"4203",label:"十堰市",children:[{value:"420381",label:"丹江口市"},{value:"420325",label:"房县"},{value:"420302",label:"茅箭区"},{value:"420322",label:"郧西县"},{value:"420304",label:"郧阳区"},{value:"420303",label:"张湾区"},{value:"420323",label:"竹山县"},{value:"420324",label:"竹溪县"}]},{value:"4213",label:"随州市",children:[{value:"421303",label:"曾都区"},{value:"421381",label:"广水市"},{value:"421321",label:"随县"}]},{value:"4201",label:"武汉市",children:[{value:"420114",label:"蔡甸区"},{value:"420112",label:"东西湖区"},{value:"420113",label:"汉南区"},{value:"420105",label:"汉阳区"},{value:"420111",label:"洪山区"},{value:"420116",label:"黄陂区"},{value:"420102",label:"江岸区"},{value:"420103",label:"江汉区"},{value:"420115",label:"江夏区"},{value:"420104",label:"硚口区"},{value:"420107",label:"青山区"},{value:"420106",label:"武昌区"},{value:"420117",label:"新洲区"}]},{value:"4212",label:"咸宁市",children:[{value:"421281",label:"赤壁市"},{value:"421223",label:"崇阳县"},{value:"421221",label:"嘉鱼县"},{value:"421222",label:"通城县"},{value:"421224",label:"通山县"},{value:"421202",label:"咸安区"}]},{value:"4206",label:"襄阳市",children:[{value:"420626",label:"保康县"},{value:"420606",label:"樊城区"},{value:"420625",label:"谷城县"},{value:"420682",label:"老河口市"},{value:"420624",label:"南漳县"},{value:"420602",label:"襄城区"},{value:"420607",label:"襄州区"},{value:"420684",label:"宜城市"},{value:"420683",label:"枣阳市"}]},{value:"4209",label:"孝感市",children:[{value:"420982",label:"安陆市"},{value:"420922",label:"大悟县"},{value:"420984",label:"汉川市"},{value:"420921",label:"孝昌县"},{value:"420902",label:"孝南区"},{value:"420981",label:"应城市"},{value:"420923",label:"云梦县"}]},{value:"4205",label:"宜昌市",children:[{value:"420582",label:"当阳市"},{value:"420504",label:"点军区"},{value:"420529",label:"五峰土家族自治县"},{value:"420503",label:"伍家岗区"},{value:"420502",label:"西陵区"},{value:"420505",label:"猇亭区"},{value:"420526",label:"兴山县"},{value:"420506",label:"夷陵区"},{value:"420581",label:"宜都市"},{value:"420525",label:"远安县"},{value:"420528",label:"长阳土家族自治县"},{value:"420583",label:"枝江市"},{value:"420527",label:"秭归县"}]}]},{value:"43",label:"湖南省",children:[{value:"4307",label:"常德市",children:[{value:"430721",label:"安乡县"},{value:"430771",label:"常德市西洞庭管理区"},{value:"430703",label:"鼎城区"},{value:"430722",label:"汉寿县"},{value:"430781",label:"津市市"},{value:"430723",label:"澧县"},{value:"430724",label:"临澧县"},{value:"430726",label:"石门县"},{value:"430725",label:"桃源县"},{value:"430702",label:"武陵区"}]},{value:"4310",label:"郴州市",children:[{value:"431028",label:"安仁县"},{value:"431002",label:"北湖区"},{value:"431027",label:"桂东县"},{value:"431021",label:"桂阳县"},{value:"431024",label:"嘉禾县"},{value:"431025",label:"临武县"},{value:"431026",label:"汝城县"},{value:"431003",label:"苏仙区"},{value:"431022",label:"宜章县"},{value:"431023",label:"永兴县"},{value:"431081",label:"资兴市"}]},{value:"4304",label:"衡阳市",children:[{value:"430482",label:"常宁市"},{value:"430424",label:"衡东县"},{value:"430422",label:"衡南县"},{value:"430423",label:"衡山县"},{value:"430421",label:"衡阳县"},{value:"430476",label:"湖南衡阳高新技术产业园区"},{value:"430473",label:"湖南衡阳松木经济开发区"},{value:"430481",label:"耒阳市"},{value:"430412",label:"南岳区"},{value:"430426",label:"祁东县"},{value:"430407",label:"石鼓区"},{value:"430406",label:"雁峰区"},{value:"430408",label:"蒸湘区"},{value:"430405",label:"珠晖区"}]},{value:"4312",label:"怀化市",children:[{value:"431223",label:"辰溪县"},{value:"431202",label:"鹤城区"},{value:"431281",label:"洪江市"},{value:"431271",label:"怀化市洪江管理区"},{value:"431225",label:"会同县"},{value:"431229",label:"靖州苗族侗族自治县"},{value:"431226",label:"麻阳苗族自治县"},{value:"431230",label:"通道侗族自治县"},{value:"431227",label:"新晃侗族自治县"},{value:"431224",label:"溆浦县"},{value:"431222",label:"沅陵县"},{value:"431228",label:"芷江侗族自治县"},{value:"431221",label:"中方县"}]},{value:"4313",label:"娄底市",children:[{value:"431381",label:"冷水江市"},{value:"431382",label:"涟源市"},{value:"431302",label:"娄星区"},{value:"431321",label:"双峰县"},{value:"431322",label:"新化县"}]},{value:"4305",label:"邵阳市",children:[{value:"430511",label:"北塔区"},{value:"430529",label:"城步苗族自治县"},{value:"430503",label:"大祥区"},{value:"430525",label:"洞口县"},{value:"430524",label:"隆回县"},{value:"430582",label:"邵东市"},{value:"430523",label:"邵阳县"},{value:"430502",label:"双清区"},{value:"430527",label:"绥宁县"},{value:"430581",label:"武冈市"},{value:"430528",label:"新宁县"},{value:"430522",label:"新邵县"}]},{value:"4303",label:"湘潭市",children:[{value:"430371",label:"湖南湘潭高新技术产业园区"},{value:"430382",label:"韶山市"},{value:"430373",label:"湘潭九华示范区"},{value:"430321",label:"湘潭县"},{value:"430372",label:"湘潭昭山示范区"},{value:"430381",label:"湘乡市"},{value:"430302",label:"雨湖区"},{value:"430304",label:"岳塘区"}]},{value:"4331",label:"湘西土家族苗族自治州",children:[{value:"433125",label:"保靖县"},{value:"433123",label:"凤凰县"},{value:"433126",label:"古丈县"},{value:"433124",label:"花垣县"},{value:"433101",label:"吉首市"},{value:"433130",label:"龙山县"},{value:"433122",label:"泸溪县"},{value:"433127",label:"永顺县"}]},{value:"4309",label:"益阳市",children:[{value:"430923",label:"安化县"},{value:"430903",label:"赫山区"},{value:"430972",label:"湖南益阳高新技术产业园区"},{value:"430921",label:"南县"},{value:"430922",label:"桃江县"},{value:"430971",label:"益阳市大通湖管理区"},{value:"430981",label:"沅江市"},{value:"430902",label:"资阳区"}]},{value:"4311",label:"永州市",children:[{value:"431124",label:"道县"},{value:"431122",label:"东安县"},{value:"431129",label:"江华瑶族自治县"},{value:"431125",label:"江永县"},{value:"431127",label:"蓝山县"},{value:"431103",label:"冷水滩区"},{value:"431102",label:"零陵区"},{value:"431126",label:"宁远县"},{value:"431181",label:"祁阳市"},{value:"431123",label:"双牌县"},{value:"431128",label:"新田县"},{value:"431171",label:"永州经济技术开发区"},{value:"431173",label:"永州市回龙圩管理区"}]},{value:"4306",label:"岳阳市",children:[{value:"430623",label:"华容县"},{value:"430611",label:"君山区"},{value:"430682",label:"临湘市"},{value:"430681",label:"汨罗市"},{value:"430626",label:"平江县"},{value:"430624",label:"湘阴县"},{value:"430602",label:"岳阳楼区"},{value:"430671",label:"岳阳市屈原管理区"},{value:"430621",label:"岳阳县"},{value:"430603",label:"云溪区"}]},{value:"4308",label:"张家界市",children:[{value:"430821",label:"慈利县"},{value:"430822",label:"桑植县"},{value:"430811",label:"武陵源区"},{value:"430802",label:"永定区"}]},{value:"4301",label:"长沙市",children:[{value:"430102",label:"芙蓉区"},{value:"430105",label:"开福区"},{value:"430181",label:"浏阳市"},{value:"430182",label:"宁乡市"},{value:"430103",label:"天心区"},{value:"430112",label:"望城区"},{value:"430111",label:"雨花区"},{value:"430104",label:"岳麓区"},{value:"430121",label:"长沙县"}]},{value:"4302",label:"株洲市",children:[{value:"430224",label:"茶陵县"},{value:"430202",label:"荷塘区"},{value:"430281",label:"醴陵市"},{value:"430203",label:"芦淞区"},{value:"430212",label:"渌口区"},{value:"430204",label:"石峰区"},{value:"430211",label:"天元区"},{value:"430225",label:"炎陵县"},{value:"430223",label:"攸县"}]}]},{value:"22",label:"吉林省",children:[{value:"2208",label:"白城市",children:[{value:"220882",label:"大安市"},{value:"220871",label:"吉林白城经济开发区"},{value:"220802",label:"洮北区"},{value:"220881",label:"洮南市"},{value:"220822",label:"通榆县"},{value:"220821",label:"镇赉县"}]},{value:"2206",label:"白山市",children:[{value:"220621",label:"抚松县"},{value:"220602",label:"浑江区"},{value:"220605",label:"江源区"},{value:"220622",label:"靖宇县"},{value:"220681",label:"临江市"},{value:"220623",label:"长白朝鲜族自治县"}]},{value:"2202",label:"吉林市",children:[{value:"220202",label:"昌邑区"},{value:"220204",label:"船营区"},{value:"220211",label:"丰满区"},{value:"220282",label:"桦甸市"},{value:"220272",label:"吉林高新技术产业开发区"},{value:"220271",label:"吉林经济开发区"},{value:"220273",label:"吉林中国新加坡食品区"},{value:"220281",label:"蛟河市"},{value:"220203",label:"龙潭区"},{value:"220284",label:"磐石市"},{value:"220283",label:"舒兰市"},{value:"220221",label:"永吉县"}]},{value:"2204",label:"辽源市",children:[{value:"220421",label:"东丰县"},{value:"220422",label:"东辽县"},{value:"220402",label:"龙山区"},{value:"220403",label:"西安区"}]},{value:"2203",label:"四平市",children:[{value:"220322",label:"梨树县"},{value:"220382",label:"双辽市"},{value:"220303",label:"铁东区"},{value:"220302",label:"铁西区"},{value:"220323",label:"伊通满族自治县"}]},{value:"2207",label:"松原市",children:[{value:"220781",label:"扶余市"},{value:"220771",label:"吉林松原经济开发区"},{value:"220702",label:"宁江区"},{value:"220721",label:"前郭尔罗斯蒙古族自治县"},{value:"220723",label:"乾安县"},{value:"220722",label:"长岭县"}]},{value:"2205",label:"通化市",children:[{value:"220502",label:"东昌区"},{value:"220503",label:"二道江区"},{value:"220523",label:"辉南县"},{value:"220582",label:"集安市"},{value:"220524",label:"柳河县"},{value:"220581",label:"梅河口市"},{value:"220521",label:"通化县"}]},{value:"2224",label:"延边朝鲜族自治州",children:[{value:"222426",label:"安图县"},{value:"222403",label:"敦化市"},{value:"222406",label:"和龙市"},{value:"222404",label:"珲春市"},{value:"222405",label:"龙井市"},{value:"222402",label:"图们市"},{value:"222424",label:"汪清县"},{value:"222401",label:"延吉市"}]},{value:"2201",label:"长春市",children:[{value:"220104",label:"朝阳区"},{value:"220183",label:"德惠市"},{value:"220105",label:"二道区"},{value:"220184",label:"公主岭市"},{value:"220113",label:"九台区"},{value:"220103",label:"宽城区"},{value:"220106",label:"绿园区"},{value:"220102",label:"南关区"},{value:"220122",label:"农安县"},{value:"220112",label:"双阳区"},{value:"220182",label:"榆树市"},{value:"220173",label:"长春高新技术产业开发区"},{value:"220171",label:"长春经济技术开发区"},{value:"220172",label:"长春净月高新技术产业开发区"},{value:"220174",label:"长春汽车经济技术开发区"}]}]},{value:"32",label:"江苏省",children:[{value:"3204",label:"常州市",children:[{value:"320413",label:"金坛区"},{value:"320481",label:"溧阳市"},{value:"320402",label:"天宁区"},{value:"320412",label:"武进区"},{value:"320411",label:"新北区"},{value:"320404",label:"钟楼区"}]},{value:"3208",label:"淮安市",children:[{value:"320813",label:"洪泽区"},{value:"320871",label:"淮安经济技术开发区"},{value:"320803",label:"淮安区"},{value:"320804",label:"淮阴区"},{value:"320831",label:"金湖县"},{value:"320826",label:"涟水县"},{value:"320812",label:"清江浦区"},{value:"320830",label:"盱眙县"}]},{value:"3207",label:"连云港市",children:[{value:"320722",label:"东海县"},{value:"320707",label:"赣榆区"},{value:"320724",label:"灌南县"},{value:"320723",label:"灌云县"},{value:"320706",label:"海州区"},{value:"320771",label:"连云港经济技术开发区"},{value:"320703",label:"连云区"}]},{value:"3201",label:"南京市",children:[{value:"320118",label:"高淳区"},{value:"320106",label:"鼓楼区"},{value:"320105",label:"建邺区"},{value:"320115",label:"江宁区"},{value:"320117",label:"溧水区"},{value:"320116",label:"六合区"},{value:"320111",label:"浦口区"},{value:"320113",label:"栖霞区"},{value:"320104",label:"秦淮区"},{value:"320102",label:"玄武区"},{value:"320114",label:"雨花台区"}]},{value:"3206",label:"南通市",children:[{value:"320613",label:"崇川区"},{value:"320685",label:"海安市"},{value:"320614",label:"海门区"},{value:"320671",label:"南通经济技术开发区"},{value:"320681",label:"启东市"},{value:"320623",label:"如东县"},{value:"320682",label:"如皋市"},{value:"320612",label:"通州区"}]},{value:"3205",label:"苏州市",children:[{value:"320581",label:"常熟市"},{value:"320508",label:"姑苏区"},{value:"320505",label:"虎丘区"},{value:"320583",label:"昆山市"},{value:"320576",label:"苏州工业园区"},{value:"320585",label:"太仓市"},{value:"320509",label:"吴江区"},{value:"320506",label:"吴中区"},{value:"320507",label:"相城区"},{value:"320582",label:"张家港市"}]},{value:"3213",label:"宿迁市",children:[{value:"321322",label:"沭阳县"},{value:"321324",label:"泗洪县"},{value:"321323",label:"泗阳县"},{value:"321302",label:"宿城区"},{value:"321371",label:"宿迁经济技术开发区"},{value:"321311",label:"宿豫区"}]},{value:"3212",label:"泰州市",children:[{value:"321203",label:"高港区"},{value:"321202",label:"海陵区"},{value:"321204",label:"姜堰区"},{value:"321282",label:"靖江市"},{value:"321283",label:"泰兴市"},{value:"321281",label:"兴化市"}]},{value:"3202",label:"无锡市",children:[{value:"320211",label:"滨湖区"},{value:"320206",label:"惠山区"},{value:"320281",label:"江阴市"},{value:"320213",label:"梁溪区"},{value:"320205",label:"锡山区"},{value:"320214",label:"新吴区"},{value:"320282",label:"宜兴市"}]},{value:"3203",label:"徐州市",children:[{value:"320321",label:"丰县"},{value:"320302",label:"鼓楼区"},{value:"320305",label:"贾汪区"},{value:"320322",label:"沛县"},{value:"320382",label:"邳州市"},{value:"320311",label:"泉山区"},{value:"320324",label:"睢宁县"},{value:"320312",label:"铜山区"},{value:"320381",label:"新沂市"},{value:"320371",label:"徐州经济技术开发区"},{value:"320303",label:"云龙区"}]},{value:"3209",label:"盐城市",children:[{value:"320922",label:"滨海县"},{value:"320904",label:"大丰区"},{value:"320981",label:"东台市"},{value:"320923",label:"阜宁县"},{value:"320925",label:"建湖县"},{value:"320924",label:"射阳县"},{value:"320902",label:"亭湖区"},{value:"320921",label:"响水县"},{value:"320971",label:"盐城经济技术开发区"},{value:"320903",label:"盐都区"}]},{value:"3210",label:"扬州市",children:[{value:"321023",label:"宝应县"},{value:"321084",label:"高邮市"},{value:"321002",label:"广陵区"},{value:"321003",label:"邗江区"},{value:"321012",label:"江都区"},{value:"321071",label:"扬州经济技术开发区"},{value:"321081",label:"仪征市"}]},{value:"3211",label:"镇江市",children:[{value:"321112",label:"丹徒区"},{value:"321181",label:"丹阳市"},{value:"321102",label:"京口区"},{value:"321183",label:"句容市"},{value:"321111",label:"润州区"},{value:"321182",label:"扬中市"},{value:"321171",label:"镇江新区"}]}]},{value:"36",label:"江西省",children:[{value:"3610",label:"抚州市",children:[{value:"361024",label:"崇仁县"},{value:"361003",label:"东乡区"},{value:"361030",label:"广昌县"},{value:"361027",label:"金溪县"},{value:"361025",label:"乐安县"},{value:"361022",label:"黎川县"},{value:"361002",label:"临川区"},{value:"361021",label:"南城县"},{value:"361023",label:"南丰县"},{value:"361026",label:"宜黄县"},{value:"361028",label:"资溪县"}]},{value:"3607",label:"赣州市",children:[{value:"360726",label:"安远县"},{value:"360725",label:"崇义县"},{value:"360723",label:"大余县"},{value:"360728",label:"定南县"},{value:"360704",label:"赣县区"},{value:"360733",label:"会昌县"},{value:"360783",label:"龙南市"},{value:"360703",label:"南康区"},{value:"360730",label:"宁都县"},{value:"360729",label:"全南县"},{value:"360781",label:"瑞金市"},{value:"360724",label:"上犹县"},{value:"360735",label:"石城县"},{value:"360722",label:"信丰县"},{value:"360732",label:"兴国县"},{value:"360734",label:"寻乌县"},{value:"360731",label:"于都县"},{value:"360702",label:"章贡区"}]},{value:"3608",label:"吉安市",children:[{value:"360829",label:"安福县"},{value:"360821",label:"吉安县"},{value:"360822",label:"吉水县"},{value:"360802",label:"吉州区"},{value:"360881",label:"井冈山市"},{value:"360803",label:"青原区"},{value:"360827",label:"遂川县"},{value:"360826",label:"泰和县"},{value:"360828",label:"万安县"},{value:"360823",label:"峡江县"},{value:"360824",label:"新干县"},{value:"360825",label:"永丰县"},{value:"360830",label:"永新县"}]},{value:"3602",label:"景德镇市",children:[{value:"360202",label:"昌江区"},{value:"360222",label:"浮梁县"},{value:"360281",label:"乐平市"},{value:"360203",label:"珠山区"}]},{value:"3604",label:"九江市",children:[{value:"360404",label:"柴桑区"},{value:"360426",label:"德安县"},{value:"360428",label:"都昌县"},{value:"360482",label:"共青城市"},{value:"360429",label:"湖口县"},{value:"360402",label:"濂溪区"},{value:"360483",label:"庐山市"},{value:"360430",label:"彭泽县"},{value:"360481",label:"瑞昌市"},{value:"360423",label:"武宁县"},{value:"360424",label:"修水县"},{value:"360403",label:"浔阳区"},{value:"360425",label:"永修县"}]},{value:"3601",label:"南昌市",children:[{value:"360123",label:"安义县"},{value:"360102",label:"东湖区"},{value:"360113",label:"红谷滩区"},{value:"360124",label:"进贤县"},{value:"360121",label:"南昌县"},{value:"360111",label:"青山湖区"},{value:"360104",label:"青云谱区"},{value:"360103",label:"西湖区"},{value:"360112",label:"新建区"}]},{value:"3603",label:"萍乡市",children:[{value:"360302",label:"安源区"},{value:"360321",label:"莲花县"},{value:"360323",label:"芦溪县"},{value:"360322",label:"上栗县"},{value:"360313",label:"湘东区"}]},{value:"3611",label:"上饶市",children:[{value:"361181",label:"德兴市"},{value:"361103",label:"广丰区"},{value:"361104",label:"广信区"},{value:"361125",label:"横峰县"},{value:"361128",label:"鄱阳县"},{value:"361124",label:"铅山县"},{value:"361129",label:"万年县"},{value:"361130",label:"婺源县"},{value:"361102",label:"信州区"},{value:"361126",label:"弋阳县"},{value:"361127",label:"余干县"},{value:"361123",label:"玉山县"}]},{value:"3605",label:"新余市",children:[{value:"360521",label:"分宜县"},{value:"360502",label:"渝水区"}]},{value:"3609",label:"宜春市",children:[{value:"360981",label:"丰城市"},{value:"360921",label:"奉新县"},{value:"360983",label:"高安市"},{value:"360925",label:"靖安县"},{value:"360923",label:"上高县"},{value:"360926",label:"铜鼓县"},{value:"360922",label:"万载县"},{value:"360924",label:"宜丰县"},{value:"360902",label:"袁州区"},{value:"360982",label:"樟树市"}]},{value:"3606",label:"鹰潭市",children:[{value:"360681",label:"贵溪市"},{value:"360603",label:"余江区"},{value:"360602",label:"月湖区"}]}]},{value:"21",label:"辽宁省",children:[{value:"2103",label:"鞍山市",children:[{value:"210381",label:"海城市"},{value:"210304",label:"立山区"},{value:"210311",label:"千山区"},{value:"210321",label:"台安县"},{value:"210302",label:"铁东区"},{value:"210303",label:"铁西区"},{value:"210323",label:"岫岩满族自治县"}]},{value:"2105",label:"本溪市",children:[{value:"210521",label:"本溪满族自治县"},{value:"210522",label:"桓仁满族自治县"},{value:"210504",label:"明山区"},{value:"210505",label:"南芬区"},{value:"210502",label:"平山区"},{value:"210503",label:"溪湖区"}]},{value:"2113",label:"朝阳市",children:[{value:"211381",label:"北票市"},{value:"211321",label:"朝阳县"},{value:"211322",label:"建平县"},{value:"211324",label:"喀喇沁左翼蒙古族自治县"},{value:"211382",label:"凌源市"},{value:"211303",label:"龙城区"},{value:"211302",label:"双塔区"}]},{value:"2102",label:"大连市",children:[{value:"210211",label:"甘井子区"},{value:"210213",label:"金州区"},{value:"210212",label:"旅顺口区"},{value:"210214",label:"普兰店区"},{value:"210204",label:"沙河口区"},{value:"210281",label:"瓦房店市"},{value:"210203",label:"西岗区"},{value:"210224",label:"长海县"},{value:"210202",label:"中山区"},{value:"210283",label:"庄河市"}]},{value:"2106",label:"丹东市",children:[{value:"210681",label:"东港市"},{value:"210682",label:"凤城市"},{value:"210624",label:"宽甸满族自治县"},{value:"210602",label:"元宝区"},{value:"210604",label:"振安区"},{value:"210603",label:"振兴区"}]},{value:"2104",label:"抚顺市",children:[{value:"210403",label:"东洲区"},{value:"210421",label:"抚顺县"},{value:"210423",label:"清原满族自治县"},{value:"210411",label:"顺城区"},{value:"210404",label:"望花区"},{value:"210422",label:"新宾满族自治县"},{value:"210402",label:"新抚区"}]},{value:"2109",label:"阜新市",children:[{value:"210921",label:"阜新蒙古族自治县"},{value:"210902",label:"海州区"},{value:"210905",label:"清河门区"},{value:"210904",label:"太平区"},{value:"210911",label:"细河区"},{value:"210903",label:"新邱区"},{value:"210922",label:"彰武县"}]},{value:"2114",label:"葫芦岛市",children:[{value:"211422",label:"建昌县"},{value:"211402",label:"连山区"},{value:"211403",label:"龙港区"},{value:"211404",label:"南票区"},{value:"211421",label:"绥中县"},{value:"211481",label:"兴城市"}]},{value:"2107",label:"锦州市",children:[{value:"210782",label:"北镇市"},{value:"210702",label:"古塔区"},{value:"210726",label:"黑山县"},{value:"210781",label:"凌海市"},{value:"210703",label:"凌河区"},{value:"210711",label:"太和区"},{value:"210727",label:"义县"}]},{value:"2110",label:"辽阳市",children:[{value:"211002",label:"白塔区"},{value:"211081",label:"灯塔市"},{value:"211005",label:"弓长岭区"},{value:"211004",label:"宏伟区"},{value:"211021",label:"辽阳县"},{value:"211011",label:"太子河区"},{value:"211003",label:"文圣区"}]},{value:"2111",label:"盘锦市",children:[{value:"211104",label:"大洼区"},{value:"211122",label:"盘山县"},{value:"211102",label:"双台子区"},{value:"211103",label:"兴隆台区"}]},{value:"2101",label:"沈阳市",children:[{value:"210104",label:"大东区"},{value:"210124",label:"法库县"},{value:"210102",label:"和平区"},{value:"210105",label:"皇姑区"},{value:"210112",label:"浑南区"},{value:"210123",label:"康平县"},{value:"210115",label:"辽中区"},{value:"210113",label:"沈北新区"},{value:"210103",label:"沈河区"},{value:"210111",label:"苏家屯区"},{value:"210106",label:"铁西区"},{value:"210181",label:"新民市"},{value:"210114",label:"于洪区"}]},{value:"2112",label:"铁岭市",children:[{value:"211224",label:"昌图县"},{value:"211281",label:"调兵山市"},{value:"211282",label:"开原市"},{value:"211204",label:"清河区"},{value:"211221",label:"铁岭县"},{value:"211223",label:"西丰县"},{value:"211202",label:"银州区"}]},{value:"2108",label:"营口市",children:[{value:"210804",label:"鲅鱼圈区"},{value:"210882",label:"大石桥市"},{value:"210881",label:"盖州市"},{value:"210811",label:"老边区"},{value:"210803",label:"西市区"},{value:"210802",label:"站前区"}]}]},{value:"15",label:"内蒙古自治区",children:[{value:"1529",label:"阿拉善盟",children:[{value:"152922",label:"阿拉善右旗"},{value:"152921",label:"阿拉善左旗"},{value:"152923",label:"额济纳旗"},{value:"152971",label:"内蒙古阿拉善高新技术产业开发区"}]},{value:"1508",label:"巴彦淖尔市",children:[{value:"150822",label:"磴口县"},{value:"150826",label:"杭锦后旗"},{value:"150802",label:"临河区"},{value:"150825",label:"乌拉特后旗"},{value:"150823",label:"乌拉特前旗"},{value:"150824",label:"乌拉特中旗"},{value:"150821",label:"五原县"}]},{value:"1502",label:"包头市",children:[{value:"150206",label:"白云鄂博矿区"},{value:"150271",label:"包头稀土高新技术产业开发区"},{value:"150223",label:"达尔罕茂明安联合旗"},{value:"150202",label:"东河区"},{value:"150222",label:"固阳县"},{value:"150207",label:"九原区"},{value:"150203",label:"昆都仑区"},{value:"150204",label:"青山区"},{value:"150205",label:"石拐区"},{value:"150221",label:"土默特右旗"}]},{value:"1504",label:"赤峰市",children:[{value:"150421",label:"阿鲁科尔沁旗"},{value:"150430",label:"敖汉旗"},{value:"150423",label:"巴林右旗"},{value:"150422",label:"巴林左旗"},{value:"150402",label:"红山区"},{value:"150428",label:"喀喇沁旗"},{value:"150425",label:"克什克腾旗"},{value:"150424",label:"林西县"},{value:"150429",label:"宁城县"},{value:"150404",label:"松山区"},{value:"150426",label:"翁牛特旗"},{value:"150403",label:"元宝山区"}]},{value:"1506",label:"鄂尔多斯市",children:[{value:"150621",label:"达拉特旗"},{value:"150602",label:"东胜区"},{value:"150624",label:"鄂托克旗"},{value:"150623",label:"鄂托克前旗"},{value:"150625",label:"杭锦旗"},{value:"150603",label:"康巴什区"},{value:"150626",label:"乌审旗"},{value:"150627",label:"伊金霍洛旗"},{value:"150622",label:"准格尔旗"}]},{value:"1501",label:"呼和浩特市",children:[{value:"150123",label:"和林格尔县"},{value:"150172",label:"呼和浩特经济技术开发区"},{value:"150103",label:"回民区"},{value:"150124",label:"清水河县"},{value:"150105",label:"赛罕区"},{value:"150121",label:"土默特左旗"},{value:"150122",label:"托克托县"},{value:"150125",label:"武川县"},{value:"150102",label:"新城区"},{value:"150104",label:"玉泉区"}]},{value:"1507",label:"呼伦贝尔市",children:[{value:"150721",label:"阿荣旗"},{value:"150725",label:"陈巴尔虎旗"},{value:"150784",label:"额尔古纳市"},{value:"150723",label:"鄂伦春自治旗"},{value:"150724",label:"鄂温克族自治旗"},{value:"150785",label:"根河市"},{value:"150702",label:"海拉尔区"},{value:"150781",label:"满洲里市"},{value:"150722",label:"莫力达瓦达斡尔族自治旗"},{value:"150727",label:"新巴尔虎右旗"},{value:"150726",label:"新巴尔虎左旗"},{value:"150782",label:"牙克石市"},{value:"150703",label:"扎赉诺尔区"},{value:"150783",label:"扎兰屯市"}]},{value:"1505",label:"通辽市",children:[{value:"150581",label:"霍林郭勒市"},{value:"150523",label:"开鲁县"},{value:"150502",label:"科尔沁区"},{value:"150522",label:"科尔沁左翼后旗"},{value:"150521",label:"科尔沁左翼中旗"},{value:"150524",label:"库伦旗"},{value:"150525",label:"奈曼旗"},{value:"150571",label:"通辽经济技术开发区"},{value:"150526",label:"扎鲁特旗"}]},{value:"1503",label:"乌海市",children:[{value:"150302",label:"海勃湾区"},{value:"150303",label:"海南区"},{value:"150304",label:"乌达区"}]},{value:"1509",label:"乌兰察布市",children:[{value:"150928",label:"察哈尔右翼后旗"},{value:"150926",label:"察哈尔右翼前旗"},{value:"150927",label:"察哈尔右翼中旗"},{value:"150981",label:"丰镇市"},{value:"150922",label:"化德县"},{value:"150902",label:"集宁区"},{value:"150925",label:"凉城县"},{value:"150923",label:"商都县"},{value:"150929",label:"四子王旗"},{value:"150924",label:"兴和县"},{value:"150921",label:"卓资县"}]},{value:"1525",label:"锡林郭勒盟",children:[{value:"152522",label:"阿巴嘎旗"},{value:"152525",label:"东乌珠穆沁旗"},{value:"152531",label:"多伦县"},{value:"152501",label:"二连浩特市"},{value:"152524",label:"苏尼特右旗"},{value:"152523",label:"苏尼特左旗"},{value:"152527",label:"太仆寺旗"},{value:"152571",label:"乌拉盖管理区管委会"},{value:"152526",label:"西乌珠穆沁旗"},{value:"152502",label:"锡林浩特市"},{value:"152528",label:"镶黄旗"},{value:"152530",label:"正蓝旗"},{value:"152529",label:"正镶白旗"}]},{value:"1522",label:"兴安盟",children:[{value:"152202",label:"阿尔山市"},{value:"152221",label:"科尔沁右翼前旗"},{value:"152222",label:"科尔沁右翼中旗"},{value:"152224",label:"突泉县"},{value:"152201",label:"乌兰浩特市"},{value:"152223",label:"扎赉特旗"}]}]},{value:"64",label:"宁夏回族自治区",children:[{value:"6404",label:"固原市",children:[{value:"640424",label:"泾源县"},{value:"640423",label:"隆德县"},{value:"640425",label:"彭阳县"},{value:"640422",label:"西吉县"},{value:"640402",label:"原州区"}]},{value:"6402",label:"石嘴山市",children:[{value:"640202",label:"大武口区"},{value:"640205",label:"惠农区"},{value:"640221",label:"平罗县"}]},{value:"6403",label:"吴忠市",children:[{value:"640303",label:"红寺堡区"},{value:"640302",label:"利通区"},{value:"640381",label:"青铜峡市"},{value:"640324",label:"同心县"},{value:"640323",label:"盐池县"}]},{value:"6401",label:"银川市",children:[{value:"640122",label:"贺兰县"},{value:"640106",label:"金凤区"},{value:"640181",label:"灵武市"},{value:"640105",label:"西夏区"},{value:"640104",label:"兴庆区"},{value:"640121",label:"永宁县"}]},{value:"6405",label:"中卫市",children:[{value:"640522",label:"海原县"},{value:"640502",label:"沙坡头区"},{value:"640521",label:"中宁县"}]}]},{value:"63",label:"青海省",children:[{value:"6326",label:"果洛藏族自治州",children:[{value:"632622",label:"班玛县"},{value:"632624",label:"达日县"},{value:"632623",label:"甘德县"},{value:"632625",label:"久治县"},{value:"632626",label:"玛多县"},{value:"632621",label:"玛沁县"}]},{value:"6322",label:"海北藏族自治州",children:[{value:"632224",label:"刚察县"},{value:"632223",label:"海晏县"},{value:"632221",label:"门源回族自治县"},{value:"632222",label:"祁连县"}]},{value:"6302",label:"海东市",children:[{value:"630223",label:"互助土族自治县"},{value:"630224",label:"化隆回族自治县"},{value:"630202",label:"乐都区"},{value:"630222",label:"民和回族土族自治县"},{value:"630203",label:"平安区"},{value:"630225",label:"循化撒拉族自治县"}]},{value:"6325",label:"海南藏族自治州",children:[{value:"632521",label:"共和县"},{value:"632523",label:"贵德县"},{value:"632525",label:"贵南县"},{value:"632522",label:"同德县"},{value:"632524",label:"兴海县"}]},{value:"6328",label:"海西蒙古族藏族自治州",children:[{value:"632857",label:"大柴旦行政委员会"},{value:"632802",label:"德令哈市"},{value:"632822",label:"都兰县"},{value:"632801",label:"格尔木市"},{value:"632803",label:"茫崖市"},{value:"632823",label:"天峻县"},{value:"632821",label:"乌兰县"}]},{value:"6323",label:"黄南藏族自治州",children:[{value:"632324",label:"河南蒙古族自治县"},{value:"632322",label:"尖扎县"},{value:"632301",label:"同仁市"},{value:"632323",label:"泽库县"}]},{value:"6301",label:"西宁市",children:[{value:"630105",label:"城北区"},{value:"630102",label:"城东区"},{value:"630104",label:"城西区"},{value:"630103",label:"城中区"},{value:"630121",label:"大通回族土族自治县"},{value:"630123",label:"湟源县"},{value:"630106",label:"湟中区"}]},{value:"6327",label:"玉树藏族自治州",children:[{value:"632723",label:"称多县"},{value:"632725",label:"囊谦县"},{value:"632726",label:"曲麻莱县"},{value:"632701",label:"玉树市"},{value:"632722",label:"杂多县"},{value:"632724",label:"治多县"}]}]},{value:"37",label:"山东省",children:[{value:"3716",label:"滨州市",children:[{value:"371602",label:"滨城区"},{value:"371625",label:"博兴县"},{value:"371621",label:"惠民县"},{value:"371623",label:"无棣县"},{value:"371622",label:"阳信县"},{value:"371603",label:"沾化区"},{value:"371681",label:"邹平市"}]},{value:"3714",label:"德州市",children:[{value:"371402",label:"德城区"},{value:"371471",label:"德州天衢新区"},{value:"371481",label:"乐陵市"},{value:"371424",label:"临邑县"},{value:"371403",label:"陵城区"},{value:"371422",label:"宁津县"},{value:"371426",label:"平原县"},{value:"371425",label:"齐河县"},{value:"371423",label:"庆云县"},{value:"371428",label:"武城县"},{value:"371427",label:"夏津县"},{value:"371482",label:"禹城市"}]},{value:"3705",label:"东营市",children:[{value:"370572",label:"东营港经济开发区"},{value:"370571",label:"东营经济技术开发区"},{value:"370502",label:"东营区"},{value:"370523",label:"广饶县"},{value:"370503",label:"河口区"},{value:"370505",label:"垦利区"},{value:"370522",label:"利津县"}]},{value:"3717",label:"菏泽市",children:[{value:"371721",label:"曹县"},{value:"371723",label:"成武县"},{value:"371722",label:"单县"},{value:"371703",label:"定陶区"},{value:"371728",label:"东明县"},{value:"371772",label:"菏泽高新技术开发区"},{value:"371771",label:"菏泽经济技术开发区"},{value:"371724",label:"巨野县"},{value:"371726",label:"鄄城县"},{value:"371702",label:"牡丹区"},{value:"371725",label:"郓城县"}]},{value:"3701",label:"济南市",children:[{value:"370117",label:"钢城区"},{value:"370104",label:"槐荫区"},{value:"370176",label:"济南高新技术产业开发区"},{value:"370115",label:"济阳区"},{value:"370116",label:"莱芜区"},{value:"370112",label:"历城区"},{value:"370102",label:"历下区"},{value:"370124",label:"平阴县"},{value:"370126",label:"商河县"},{value:"370103",label:"市中区"},{value:"370105",label:"天桥区"},{value:"370114",label:"章丘区"},{value:"370113",label:"长清区"}]},{value:"3708",label:"济宁市",children:[{value:"370871",label:"济宁高新技术产业开发区"},{value:"370829",label:"嘉祥县"},{value:"370828",label:"金乡县"},{value:"370832",label:"梁山县"},{value:"370881",label:"曲阜市"},{value:"370811",label:"任城区"},{value:"370831",label:"泗水县"},{value:"370826",label:"微山县"},{value:"370830",label:"汶上县"},{value:"370812",label:"兖州区"},{value:"370827",label:"鱼台县"},{value:"370883",label:"邹城市"}]},{value:"3715",label:"聊城市",children:[{value:"371503",label:"茌平区"},{value:"371524",label:"东阿县"},{value:"371502",label:"东昌府区"},{value:"371526",label:"高唐县"},{value:"371525",label:"冠县"},{value:"371581",label:"临清市"},{value:"371522",label:"莘县"},{value:"371521",label:"阳谷县"}]},{value:"3713",label:"临沂市",children:[{value:"371325",label:"费县"},{value:"371312",label:"河东区"},{value:"371327",label:"莒南县"},{value:"371324",label:"兰陵县"},{value:"371302",label:"兰山区"},{value:"371329",label:"临沭县"},{value:"371371",label:"临沂高新技术产业开发区"},{value:"371311",label:"罗庄区"},{value:"371328",label:"蒙阴县"},{value:"371326",label:"平邑县"},{value:"371322",label:"郯城县"},{value:"371321",label:"沂南县"},{value:"371323",label:"沂水县"}]},{value:"3702",label:"青岛市",children:[{value:"370214",label:"城阳区"},{value:"370211",label:"黄岛区"},{value:"370215",label:"即墨区"},{value:"370281",label:"胶州市"},{value:"370285",label:"莱西市"},{value:"370212",label:"崂山区"},{value:"370213",label:"李沧区"},{value:"370283",label:"平度市"},{value:"370203",label:"市北区"},{value:"370202",label:"市南区"}]},{value:"3711",label:"日照市",children:[{value:"371102",label:"东港区"},{value:"371122",label:"莒县"},{value:"371103",label:"岚山区"},{value:"371171",label:"日照经济技术开发区"},{value:"371121",label:"五莲县"}]},{value:"3709",label:"泰安市",children:[{value:"370911",label:"岱岳区"},{value:"370923",label:"东平县"},{value:"370983",label:"肥城市"},{value:"370921",label:"宁阳县"},{value:"370902",label:"泰山区"},{value:"370982",label:"新泰市"}]},{value:"3710",label:"威海市",children:[{value:"371002",label:"环翠区"},{value:"371082",label:"荣成市"},{value:"371083",label:"乳山市"},{value:"371071",label:"威海火炬高技术产业开发区"},{value:"371072",label:"威海经济技术开发区"},{value:"371073",label:"威海临港经济技术开发区"},{value:"371003",label:"文登区"}]},{value:"3707",label:"潍坊市",children:[{value:"370784",label:"安丘市"},{value:"370725",label:"昌乐县"},{value:"370786",label:"昌邑市"},{value:"370704",label:"坊子区"},{value:"370785",label:"高密市"},{value:"370703",label:"寒亭区"},{value:"370705",label:"奎文区"},{value:"370724",label:"临朐县"},{value:"370781",label:"青州市"},{value:"370783",label:"寿光市"},{value:"370702",label:"潍城区"},{value:"370772",label:"潍坊滨海经济技术开发区"},{value:"370782",label:"诸城市"}]},{value:"3706",label:"烟台市",children:[{value:"370611",label:"福山区"},{value:"370687",label:"海阳市"},{value:"370613",label:"莱山区"},{value:"370682",label:"莱阳市"},{value:"370683",label:"莱州市"},{value:"370681",label:"龙口市"},{value:"370612",label:"牟平区"},{value:"370614",label:"蓬莱区"},{value:"370686",label:"栖霞市"},{value:"370671",label:"烟台高新技术产业开发区"},{value:"370676",label:"烟台经济技术开发区"},{value:"370685",label:"招远市"},{value:"370602",label:"芝罘区"}]},{value:"3704",label:"枣庄市",children:[{value:"370406",label:"山亭区"},{value:"370402",label:"市中区"},{value:"370405",label:"台儿庄区"},{value:"370481",label:"滕州市"},{value:"370403",label:"薛城区"},{value:"370404",label:"峄城区"}]},{value:"3703",label:"淄博市",children:[{value:"370304",label:"博山区"},{value:"370322",label:"高青县"},{value:"370321",label:"桓台县"},{value:"370305",label:"临淄区"},{value:"370323",label:"沂源县"},{value:"370303",label:"张店区"},{value:"370306",label:"周村区"},{value:"370302",label:"淄川区"}]}]},{value:"14",label:"山西省",children:[{value:"1402",label:"大同市",children:[{value:"140223",label:"广灵县"},{value:"140225",label:"浑源县"},{value:"140224",label:"灵丘县"},{value:"140213",label:"平城区"},{value:"140271",label:"山西大同经济开发区"},{value:"140222",label:"天镇县"},{value:"140212",label:"新荣区"},{value:"140221",label:"阳高县"},{value:"140214",label:"云冈区"},{value:"140215",label:"云州区"},{value:"140226",label:"左云县"}]},{value:"1405",label:"晋城市",children:[{value:"140502",label:"城区"},{value:"140581",label:"高平市"},{value:"140524",label:"陵川县"},{value:"140521",label:"沁水县"},{value:"140522",label:"阳城县"},{value:"140525",label:"泽州县"}]},{value:"1407",label:"晋中市",children:[{value:"140723",label:"和顺县"},{value:"140781",label:"介休市"},{value:"140729",label:"灵石县"},{value:"140728",label:"平遥县"},{value:"140727",label:"祁县"},{value:"140725",label:"寿阳县"},{value:"140703",label:"太谷区"},{value:"140724",label:"昔阳县"},{value:"140702",label:"榆次区"},{value:"140721",label:"榆社县"},{value:"140722",label:"左权县"}]},{value:"1410",label:"临汾市",children:[{value:"141026",label:"安泽县"},{value:"141030",label:"大宁县"},{value:"141034",label:"汾西县"},{value:"141027",label:"浮山县"},{value:"141025",label:"古县"},{value:"141024",label:"洪洞县"},{value:"141081",label:"侯马市"},{value:"141082",label:"霍州市"},{value:"141028",label:"吉县"},{value:"141033",label:"蒲县"},{value:"141021",label:"曲沃县"},{value:"141031",label:"隰县"},{value:"141029",label:"乡宁县"},{value:"141023",label:"襄汾县"},{value:"141002",label:"尧都区"},{value:"141022",label:"翼城县"},{value:"141032",label:"永和县"}]},{value:"1411",label:"吕梁市",children:[{value:"141128",label:"方山县"},{value:"141182",label:"汾阳市"},{value:"141122",label:"交城县"},{value:"141130",label:"交口县"},{value:"141127",label:"岚县"},{value:"141102",label:"离石区"},{value:"141124",label:"临县"},{value:"141125",label:"柳林县"},{value:"141126",label:"石楼县"},{value:"141121",label:"文水县"},{value:"141181",label:"孝义市"},{value:"141123",label:"兴县"},{value:"141129",label:"中阳县"}]},{value:"1406",label:"朔州市",children:[{value:"140681",label:"怀仁市"},{value:"140603",label:"平鲁区"},{value:"140671",label:"山西朔州经济开发区"},{value:"140621",label:"山阴县"},{value:"140602",label:"朔城区"},{value:"140622",label:"应县"},{value:"140623",label:"右玉县"}]},{value:"1401",label:"太原市",children:[{value:"140181",label:"古交市"},{value:"140108",label:"尖草坪区"},{value:"140110",label:"晋源区"},{value:"140123",label:"娄烦县"},{value:"140121",label:"清徐县"},{value:"140171",label:"山西转型综合改革示范区"},{value:"140109",label:"万柏林区"},{value:"140105",label:"小店区"},{value:"140107",label:"杏花岭区"},{value:"140122",label:"阳曲县"},{value:"140106",label:"迎泽区"}]},{value:"1409",label:"忻州市",children:[{value:"140931",label:"保德县"},{value:"140923",label:"代县"},{value:"140921",label:"定襄县"},{value:"140924",label:"繁峙县"},{value:"140930",label:"河曲县"},{value:"140926",label:"静乐县"},{value:"140929",label:"岢岚县"},{value:"140925",label:"宁武县"},{value:"140932",label:"偏关县"},{value:"140927",label:"神池县"},{value:"140971",label:"五台山风景名胜区"},{value:"140922",label:"五台县"},{value:"140928",label:"五寨县"},{value:"140902",label:"忻府区"},{value:"140981",label:"原平市"}]},{value:"1403",label:"阳泉市",children:[{value:"140302",label:"城区"},{value:"140311",label:"郊区"},{value:"140303",label:"矿区"},{value:"140321",label:"平定县"},{value:"140322",label:"盂县"}]},{value:"1408",label:"运城市",children:[{value:"140882",label:"河津市"},{value:"140824",label:"稷山县"},{value:"140826",label:"绛县"},{value:"140821",label:"临猗县"},{value:"140829",label:"平陆县"},{value:"140830",label:"芮城县"},{value:"140822",label:"万荣县"},{value:"140823",label:"闻喜县"},{value:"140828",label:"夏县"},{value:"140825",label:"新绛县"},{value:"140802",label:"盐湖区"},{value:"140881",label:"永济市"},{value:"140827",label:"垣曲县"}]},{value:"1404",label:"长治市",children:[{value:"140427",label:"壶关县"},{value:"140426",label:"黎城县"},{value:"140406",label:"潞城区"},{value:"140403",label:"潞州区"},{value:"140425",label:"平顺县"},{value:"140430",label:"沁县"},{value:"140431",label:"沁源县"},{value:"140404",label:"上党区"},{value:"140405",label:"屯留区"},{value:"140429",label:"武乡县"},{value:"140423",label:"襄垣县"},{value:"140428",label:"长子县"}]}]},{value:"61",label:"陕西省",children:[{value:"6109",label:"安康市",children:[{value:"610929",label:"白河县"},{value:"610902",label:"汉滨区"},{value:"610921",label:"汉阴县"},{value:"610925",label:"岚皋县"},{value:"610923",label:"宁陕县"},{value:"610926",label:"平利县"},{value:"610922",label:"石泉县"},{value:"610981",label:"旬阳市"},{value:"610927",label:"镇坪县"},{value:"610924",label:"紫阳县"}]},{value:"6103",label:"宝鸡市",children:[{value:"610304",label:"陈仓区"},{value:"610330",label:"凤县"},{value:"610305",label:"凤翔区"},{value:"610324",label:"扶风县"},{value:"610303",label:"金台区"},{value:"610329",label:"麟游县"},{value:"610327",label:"陇县"},{value:"610326",label:"眉县"},{value:"610323",label:"岐山县"},{value:"610328",label:"千阳县"},{value:"610331",label:"太白县"},{value:"610302",label:"渭滨区"}]},{value:"6107",label:"汉中市",children:[{value:"610722",label:"城固县"},{value:"610730",label:"佛坪县"},{value:"610702",label:"汉台区"},{value:"610729",label:"留坝县"},{value:"610727",label:"略阳县"},{value:"610725",label:"勉县"},{value:"610703",label:"南郑区"},{value:"610726",label:"宁强县"},{value:"610724",label:"西乡县"},{value:"610723",label:"洋县"},{value:"610728",label:"镇巴县"}]},{value:"6110",label:"商洛市",children:[{value:"611022",label:"丹凤县"},{value:"611021",label:"洛南县"},{value:"611024",label:"山阳县"},{value:"611023",label:"商南县"},{value:"611002",label:"商州区"},{value:"611026",label:"柞水县"},{value:"611025",label:"镇安县"}]},{value:"6102",label:"铜川市",children:[{value:"610202",label:"王益区"},{value:"610204",label:"耀州区"},{value:"610222",label:"宜君县"},{value:"610203",label:"印台区"}]},{value:"6105",label:"渭南市",children:[{value:"610527",label:"白水县"},{value:"610525",label:"澄城县"},{value:"610523",label:"大荔县"},{value:"610528",label:"富平县"},{value:"610581",label:"韩城市"},{value:"610524",label:"合阳县"},{value:"610582",label:"华阴市"},{value:"610503",label:"华州区"},{value:"610502",label:"临渭区"},{value:"610526",label:"蒲城县"},{value:"610522",label:"潼关县"}]},{value:"6101",label:"西安市",children:[{value:"610111",label:"灞桥区"},{value:"610103",label:"碑林区"},{value:"610117",label:"高陵区"},{value:"610118",label:"鄠邑区"},{value:"610122",label:"蓝田县"},{value:"610104",label:"莲湖区"},{value:"610115",label:"临潼区"},{value:"610112",label:"未央区"},{value:"610102",label:"新城区"},{value:"610114",label:"阎良区"},{value:"610113",label:"雁塔区"},{value:"610116",label:"长安区"},{value:"610124",label:"周至县"}]},{value:"6104",label:"咸阳市",children:[{value:"610482",label:"彬州市"},{value:"610430",label:"淳化县"},{value:"610423",label:"泾阳县"},{value:"610425",label:"礼泉县"},{value:"610424",label:"乾县"},{value:"610402",label:"秦都区"},{value:"610422",label:"三原县"},{value:"610404",label:"渭城区"},{value:"610431",label:"武功县"},{value:"610481",label:"兴平市"},{value:"610429",label:"旬邑县"},{value:"610403",label:"杨陵区"},{value:"610426",label:"永寿县"},{value:"610428",label:"长武县"}]},{value:"6106",label:"延安市",children:[{value:"610603",label:"安塞区"},{value:"610602",label:"宝塔区"},{value:"610628",label:"富县"},{value:"610627",label:"甘泉县"},{value:"610632",label:"黄陵县"},{value:"610631",label:"黄龙县"},{value:"610629",label:"洛川县"},{value:"610626",label:"吴起县"},{value:"610622",label:"延川县"},{value:"610621",label:"延长县"},{value:"610630",label:"宜川县"},{value:"610625",label:"志丹县"},{value:"610681",label:"子长市"}]},{value:"6108",label:"榆林市",children:[{value:"610825",label:"定边县"},{value:"610822",label:"府谷县"},{value:"610803",label:"横山区"},{value:"610828",label:"佳县"},{value:"610824",label:"靖边县"},{value:"610827",label:"米脂县"},{value:"610830",label:"清涧县"},{value:"610881",label:"神木市"},{value:"610826",label:"绥德县"},{value:"610829",label:"吴堡县"},{value:"610802",label:"榆阳区"},{value:"610831",label:"子洲县"}]}]},{value:"31",label:"上海市",children:[{value:"3101",label:"市辖区",children:[{value:"310113",label:"宝山区"},{value:"310151",label:"崇明区"},{value:"310120",label:"奉贤区"},{value:"310109",label:"虹口区"},{value:"310101",label:"黄浦区"},{value:"310114",label:"嘉定区"},{value:"310116",label:"金山区"},{value:"310106",label:"静安区"},{value:"310112",label:"闵行区"},{value:"310115",label:"浦东新区"},{value:"310107",label:"普陀区"},{value:"310118",label:"青浦区"},{value:"310117",label:"松江区"},{value:"310104",label:"徐汇区"},{value:"310110",label:"杨浦区"},{value:"310105",label:"长宁区"}]}]},{value:"51",label:"四川省",children:[{value:"5132",label:"阿坝藏族羌族自治州",children:[{value:"513231",label:"阿坝县"},{value:"513228",label:"黑水县"},{value:"513233",label:"红原县"},{value:"513226",label:"金川县"},{value:"513225",label:"九寨沟县"},{value:"513222",label:"理县"},{value:"513201",label:"马尔康市"},{value:"513223",label:"茂县"},{value:"513230",label:"壤塘县"},{value:"513232",label:"若尔盖县"},{value:"513224",label:"松潘县"},{value:"513221",label:"汶川县"},{value:"513227",label:"小金县"}]},{value:"5119",label:"巴中市",children:[{value:"511902",label:"巴州区"},{value:"511903",label:"恩阳区"},{value:"511922",label:"南江县"},{value:"511923",label:"平昌县"},{value:"511921",label:"通江县"}]},{value:"5101",label:"成都市",children:[{value:"510108",label:"成华区"},{value:"510184",label:"崇州市"},{value:"510129",label:"大邑县"},{value:"510181",label:"都江堰市"},{value:"510185",label:"简阳市"},{value:"510106",label:"金牛区"},{value:"510121",label:"金堂县"},{value:"510104",label:"锦江区"},{value:"510112",label:"龙泉驿区"},{value:"510182",label:"彭州市"},{value:"510117",label:"郫都区"},{value:"510131",label:"蒲江县"},{value:"510113",label:"青白江区"},{value:"510105",label:"青羊区"},{value:"510183",label:"邛崃市"},{value:"510116",label:"双流区"},{value:"510115",label:"温江区"},{value:"510107",label:"武侯区"},{value:"510114",label:"新都区"},{value:"510118",label:"新津区"}]},{value:"5117",label:"达州市",children:[{value:"511703",label:"达川区"},{value:"511724",label:"大竹县"},{value:"511723",label:"开江县"},{value:"511725",label:"渠县"},{value:"511702",label:"通川区"},{value:"511781",label:"万源市"},{value:"511722",label:"宣汉县"}]},{value:"5106",label:"德阳市",children:[{value:"510681",label:"广汉市"},{value:"510603",label:"旌阳区"},{value:"510604",label:"罗江区"},{value:"510683",label:"绵竹市"},{value:"510682",label:"什邡市"},{value:"510623",label:"中江县"}]},{value:"5133",label:"甘孜藏族自治州",children:[{value:"513335",label:"巴塘县"},{value:"513331",label:"白玉县"},{value:"513323",label:"丹巴县"},{value:"513326",label:"道孚县"},{value:"513337",label:"稻城县"},{value:"513338",label:"得荣县"},{value:"513330",label:"德格县"},{value:"513328",label:"甘孜县"},{value:"513324",label:"九龙县"},{value:"513301",label:"康定市"},{value:"513334",label:"理塘县"},{value:"513322",label:"泸定县"},{value:"513327",label:"炉霍县"},{value:"513333",label:"色达县"},{value:"513332",label:"石渠县"},{value:"513336",label:"乡城县"},{value:"513329",label:"新龙县"},{value:"513325",label:"雅江县"}]},{value:"5116",label:"广安市",children:[{value:"511602",label:"广安区"},{value:"511681",label:"华蓥市"},{value:"511623",label:"邻水县"},{value:"511603",label:"前锋区"},{value:"511622",label:"武胜县"},{value:"511621",label:"岳池县"}]},{value:"5108",label:"广元市",children:[{value:"510824",label:"苍溪县"},{value:"510812",label:"朝天区"},{value:"510823",label:"剑阁县"},{value:"510802",label:"利州区"},{value:"510822",label:"青川县"},{value:"510821",label:"旺苍县"},{value:"510811",label:"昭化区"}]},{value:"5111",label:"乐山市",children:[{value:"511132",label:"峨边彝族自治县"},{value:"511181",label:"峨眉山市"},{value:"511126",label:"夹江县"},{value:"511123",label:"犍为县"},{value:"511113",label:"金口河区"},{value:"511124",label:"井研县"},{value:"511133",label:"马边彝族自治县"},{value:"511129",label:"沐川县"},{value:"511111",label:"沙湾区"},{value:"511102",label:"市中区"},{value:"511112",label:"五通桥区"}]},{value:"5134",label:"凉山彝族自治州",children:[{value:"513429",label:"布拖县"},{value:"513424",label:"德昌县"},{value:"513435",label:"甘洛县"},{value:"513426",label:"会东县"},{value:"513402",label:"会理市"},{value:"513430",label:"金阳县"},{value:"513437",label:"雷波县"},{value:"513436",label:"美姑县"},{value:"513433",label:"冕宁县"},{value:"513422",label:"木里藏族自治县"},{value:"513427",label:"宁南县"},{value:"513428",label:"普格县"},{value:"513401",label:"西昌市"},{value:"513432",label:"喜德县"},{value:"513423",label:"盐源县"},{value:"513434",label:"越西县"},{value:"513431",label:"昭觉县"}]},{value:"5105",label:"泸州市",children:[{value:"510525",label:"古蔺县"},{value:"510522",label:"合江县"},{value:"510502",label:"江阳区"},{value:"510504",label:"龙马潭区"},{value:"510521",label:"泸县"},{value:"510503",label:"纳溪区"},{value:"510524",label:"叙永县"}]},{value:"5114",label:"眉山市",children:[{value:"511424",label:"丹棱县"},{value:"511402",label:"东坡区"},{value:"511423",label:"洪雅县"},{value:"511403",label:"彭山区"},{value:"511425",label:"青神县"},{value:"511421",label:"仁寿县"}]},{value:"5107",label:"绵阳市",children:[{value:"510705",label:"安州区"},{value:"510726",label:"北川羌族自治县"},{value:"510703",label:"涪城区"},{value:"510781",label:"江油市"},{value:"510727",label:"平武县"},{value:"510722",label:"三台县"},{value:"510723",label:"盐亭县"},{value:"510704",label:"游仙区"},{value:"510725",label:"梓潼县"}]},{value:"5113",label:"南充市",children:[{value:"511303",label:"高坪区"},{value:"511304",label:"嘉陵区"},{value:"511381",label:"阆中市"},{value:"511321",label:"南部县"},{value:"511323",label:"蓬安县"},{value:"511302",label:"顺庆区"},{value:"511325",label:"西充县"},{value:"511324",label:"仪陇县"},{value:"511322",label:"营山县"}]},{value:"5110",label:"内江市",children:[{value:"511011",label:"东兴区"},{value:"511083",label:"隆昌市"},{value:"511002",label:"市中区"},{value:"511024",label:"威远县"},{value:"511025",label:"资中县"}]},{value:"5104",label:"攀枝花市",children:[{value:"510402",label:"东区"},{value:"510421",label:"米易县"},{value:"510411",label:"仁和区"},{value:"510403",label:"西区"},{value:"510422",label:"盐边县"}]},{value:"5109",label:"遂宁市",children:[{value:"510904",label:"安居区"},{value:"510903",label:"船山区"},{value:"510923",label:"大英县"},{value:"510921",label:"蓬溪县"},{value:"510981",label:"射洪市"}]},{value:"5118",label:"雅安市",children:[{value:"511827",label:"宝兴县"},{value:"511823",label:"汉源县"},{value:"511826",label:"芦山县"},{value:"511803",label:"名山区"},{value:"511824",label:"石棉县"},{value:"511825",label:"天全县"},{value:"511822",label:"荥经县"},{value:"511802",label:"雨城区"}]},{value:"5115",label:"宜宾市",children:[{value:"511502",label:"翠屏区"},{value:"511525",label:"高县"},{value:"511526",label:"珙县"},{value:"511523",label:"江安县"},{value:"511503",label:"南溪区"},{value:"511529",label:"屏山县"},{value:"511528",label:"兴文县"},{value:"511504",label:"叙州区"},{value:"511527",label:"筠连县"},{value:"511524",label:"长宁县"}]},{value:"5120",label:"资阳市",children:[{value:"512021",label:"安岳县"},{value:"512022",label:"乐至县"},{value:"512002",label:"雁江区"}]},{value:"5103",label:"自贡市",children:[{value:"510304",label:"大安区"},{value:"510322",label:"富顺县"},{value:"510303",label:"贡井区"},{value:"510321",label:"荣县"},{value:"510311",label:"沿滩区"},{value:"510302",label:"自流井区"}]}]},{value:"12",label:"天津市",children:[{value:"1201",label:"市辖区",children:[{value:"120115",label:"宝坻区"},{value:"120113",label:"北辰区"},{value:"120116",label:"滨海新区"},{value:"120110",label:"东丽区"},{value:"120101",label:"和平区"},{value:"120105",label:"河北区"},{value:"120102",label:"河东区"},{value:"120103",label:"河西区"},{value:"120106",label:"红桥区"},{value:"120119",label:"蓟州区"},{value:"120112",label:"津南区"},{value:"120118",label:"静海区"},{value:"120104",label:"南开区"},{value:"120117",label:"宁河区"},{value:"120114",label:"武清区"},{value:"120111",label:"西青区"}]}]},{value:"54",label:"西藏自治区",children:[{value:"5425",label:"阿里地区",children:[{value:"542527",label:"措勤县"},{value:"542523",label:"噶尔县"},{value:"542526",label:"改则县"},{value:"542525",label:"革吉县"},{value:"542521",label:"普兰县"},{value:"542524",label:"日土县"},{value:"542522",label:"札达县"}]},{value:"5403",label:"昌都市",children:[{value:"540326",label:"八宿县"},{value:"540330",label:"边坝县"},{value:"540325",label:"察雅县"},{value:"540324",label:"丁青县"},{value:"540322",label:"贡觉县"},{value:"540321",label:"江达县"},{value:"540302",label:"卡若区"},{value:"540323",label:"类乌齐县"},{value:"540329",label:"洛隆县"},{value:"540328",label:"芒康县"},{value:"540327",label:"左贡县"}]},{value:"5401",label:"拉萨市",children:[{value:"540102",label:"城关区"},{value:"540174",label:"达孜工业园区"},{value:"540104",label:"达孜区"},{value:"540122",label:"当雄县"},{value:"540103",label:"堆龙德庆区"},{value:"540171",label:"格尔木藏青工业园区"},{value:"540172",label:"拉萨经济技术开发区"},{value:"540121",label:"林周县"},{value:"540127",label:"墨竹工卡县"},{value:"540123",label:"尼木县"},{value:"540124",label:"曲水县"},{value:"540173",label:"西藏文化旅游创意园区"}]},{value:"5404",label:"林芝市",children:[{value:"540402",label:"巴宜区"},{value:"540424",label:"波密县"},{value:"540425",label:"察隅县"},{value:"540421",label:"工布江达县"},{value:"540426",label:"朗县"},{value:"540481",label:"米林市"},{value:"540423",label:"墨脱县"}]},{value:"5406",label:"那曲市",children:[{value:"540624",label:"安多县"},{value:"540628",label:"巴青县"},{value:"540627",label:"班戈县"},{value:"540622",label:"比如县"},{value:"540621",label:"嘉黎县"},{value:"540629",label:"尼玛县"},{value:"540623",label:"聂荣县"},{value:"540602",label:"色尼区"},{value:"540625",label:"申扎县"},{value:"540630",label:"双湖县"},{value:"540626",label:"索县"}]},{value:"5402",label:"日喀则市",children:[{value:"540226",label:"昂仁县"},{value:"540228",label:"白朗县"},{value:"540231",label:"定结县"},{value:"540223",label:"定日县"},{value:"540237",label:"岗巴县"},{value:"540234",label:"吉隆县"},{value:"540222",label:"江孜县"},{value:"540230",label:"康马县"},{value:"540225",label:"拉孜县"},{value:"540221",label:"南木林县"},{value:"540235",label:"聂拉木县"},{value:"540229",label:"仁布县"},{value:"540236",label:"萨嘎县"},{value:"540224",label:"萨迦县"},{value:"540202",label:"桑珠孜区"},{value:"540227",label:"谢通门县"},{value:"540233",label:"亚东县"},{value:"540232",label:"仲巴县"}]},{value:"5405",label:"山南市",children:[{value:"540526",label:"措美县"},{value:"540581",label:"错那市"},{value:"540522",label:"贡嘎县"},{value:"540528",label:"加查县"},{value:"540531",label:"浪卡子县"},{value:"540529",label:"隆子县"},{value:"540527",label:"洛扎县"},{value:"540502",label:"乃东区"},{value:"540524",label:"琼结县"},{value:"540525",label:"曲松县"},{value:"540523",label:"桑日县"},{value:"540521",label:"扎囊县"}]}]},{value:"65",label:"新疆维吾尔自治区",children:[{value:"6529",label:"阿克苏地区",children:[{value:"652901",label:"阿克苏市"},{value:"652928",label:"阿瓦提县"},{value:"652926",label:"拜城县"},{value:"652929",label:"柯坪县"},{value:"652902",label:"库车市"},{value:"652924",label:"沙雅县"},{value:"652922",label:"温宿县"},{value:"652927",label:"乌什县"},{value:"652925",label:"新和县"}]},{value:"6543",label:"阿勒泰地区",children:[{value:"654301",label:"阿勒泰市"},{value:"654321",label:"布尔津县"},{value:"654323",label:"福海县"},{value:"654322",label:"富蕴县"},{value:"654324",label:"哈巴河县"},{value:"654326",label:"吉木乃县"},{value:"654325",label:"青河县"}]},{value:"6528",label:"巴音郭楞蒙古自治州",children:[{value:"652829",label:"博湖县"},{value:"652827",label:"和静县"},{value:"652828",label:"和硕县"},{value:"652801",label:"库尔勒市"},{value:"652822",label:"轮台县"},{value:"652825",label:"且末县"},{value:"652824",label:"若羌县"},{value:"652823",label:"尉犁县"},{value:"652826",label:"焉耆回族自治县"}]},{value:"6527",label:"博尔塔拉蒙古自治州",children:[{value:"652702",label:"阿拉山口市"},{value:"652701",label:"博乐市"},{value:"652722",label:"精河县"},{value:"652723",label:"温泉县"}]},{value:"6523",label:"昌吉回族自治州",children:[{value:"652301",label:"昌吉市"},{value:"652302",label:"阜康市"},{value:"652323",label:"呼图壁县"},{value:"652327",label:"吉木萨尔县"},{value:"652324",label:"玛纳斯县"},{value:"652328",label:"木垒哈萨克自治县"},{value:"652325",label:"奇台县"}]},{value:"6505",label:"哈密市",children:[{value:"650521",label:"巴里坤哈萨克自治县"},{value:"650522",label:"伊吾县"},{value:"650502",label:"伊州区"}]},{value:"6532",label:"和田地区",children:[{value:"653225",label:"策勒县"},{value:"653201",label:"和田市"},{value:"653221",label:"和田县"},{value:"653224",label:"洛浦县"},{value:"653227",label:"民丰县"},{value:"653222",label:"墨玉县"},{value:"653223",label:"皮山县"},{value:"653226",label:"于田县"}]},{value:"6531",label:"喀什地区",children:[{value:"653130",label:"巴楚县"},{value:"653129",label:"伽师县"},{value:"653101",label:"喀什市"},{value:"653127",label:"麦盖提县"},{value:"653125",label:"莎车县"},{value:"653121",label:"疏附县"},{value:"653122",label:"疏勒县"},{value:"653131",label:"塔什库尔干塔吉克自治县"},{value:"653126",label:"叶城县"},{value:"653123",label:"英吉沙县"},{value:"653128",label:"岳普湖县"},{value:"653124",label:"泽普县"}]},{value:"6502",label:"克拉玛依市",children:[{value:"650204",label:"白碱滩区"},{value:"650202",label:"独山子区"},{value:"650203",label:"克拉玛依区"},{value:"650205",label:"乌尔禾区"}]},{value:"6530",label:"克孜勒苏柯尔克孜自治州",children:[{value:"653023",label:"阿合奇县"},{value:"653022",label:"阿克陶县"},{value:"653001",label:"阿图什市"},{value:"653024",label:"乌恰县"}]},{value:"6542",label:"塔城地区",children:[{value:"654221",label:"额敏县"},{value:"654226",label:"和布克赛尔蒙古自治县"},{value:"654203",label:"沙湾市"},{value:"654201",label:"塔城市"},{value:"654224",label:"托里县"},{value:"654202",label:"乌苏市"},{value:"654225",label:"裕民县"}]},{value:"6504",label:"吐鲁番市",children:[{value:"650402",label:"高昌区"},{value:"650421",label:"鄯善县"},{value:"650422",label:"托克逊县"}]},{value:"6501",label:"乌鲁木齐市",children:[{value:"650107",label:"达坂城区"},{value:"650109",label:"米东区"},{value:"650103",label:"沙依巴克区"},{value:"650105",label:"水磨沟区"},{value:"650102",label:"天山区"},{value:"650106",label:"头屯河区"},{value:"650121",label:"乌鲁木齐县"},{value:"650104",label:"新市区"}]},{value:"6540",label:"伊犁哈萨克自治州",children:[{value:"654022",label:"察布查尔锡伯自治县"},{value:"654024",label:"巩留县"},{value:"654023",label:"霍城县"},{value:"654004",label:"霍尔果斯市"},{value:"654003",label:"奎屯市"},{value:"654028",label:"尼勒克县"},{value:"654027",label:"特克斯县"},{value:"654025",label:"新源县"},{value:"654002",label:"伊宁市"},{value:"654021",label:"伊宁县"},{value:"654026",label:"昭苏县"}]},{value:"6590",label:"自治区直辖县级行政区划",children:[{value:"659002",label:"阿拉尔市"},{value:"659012",label:"白杨市"},{value:"659005",label:"北屯市"},{value:"659010",label:"胡杨河市"},{value:"659008",label:"可克达拉市"},{value:"659009",label:"昆玉市"},{value:"659001",label:"石河子市"},{value:"659007",label:"双河市"},{value:"659006",label:"铁门关市"},{value:"659003",label:"图木舒克市"},{value:"659004",label:"五家渠市"},{value:"659011",label:"新星市"}]}]},{value:"53",label:"云南省",children:[{value:"5305",label:"保山市",children:[{value:"530524",label:"昌宁县"},{value:"530523",label:"龙陵县"},{value:"530502",label:"隆阳区"},{value:"530521",label:"施甸县"},{value:"530581",label:"腾冲市"}]},{value:"5323",label:"楚雄彝族自治州",children:[{value:"532301",label:"楚雄市"},{value:"532326",label:"大姚县"},{value:"532302",label:"禄丰市"},{value:"532323",label:"牟定县"},{value:"532324",label:"南华县"},{value:"532322",label:"双柏县"},{value:"532329",label:"武定县"},{value:"532325",label:"姚安县"},{value:"532327",label:"永仁县"},{value:"532328",label:"元谋县"}]},{value:"5329",label:"大理白族自治州",children:[{value:"532924",label:"宾川县"},{value:"532901",label:"大理市"},{value:"532930",label:"洱源县"},{value:"532932",label:"鹤庆县"},{value:"532931",label:"剑川县"},{value:"532925",label:"弥渡县"},{value:"532926",label:"南涧彝族自治县"},{value:"532927",label:"巍山彝族回族自治县"},{value:"532923",label:"祥云县"},{value:"532922",label:"漾濞彝族自治县"},{value:"532928",label:"永平县"},{value:"532929",label:"云龙县"}]},{value:"5331",label:"德宏傣族景颇族自治州",children:[{value:"533122",label:"梁河县"},{value:"533124",label:"陇川县"},{value:"533103",label:"芒市"},{value:"533102",label:"瑞丽市"},{value:"533123",label:"盈江县"}]},{value:"5334",label:"迪庆藏族自治州",children:[{value:"533422",label:"德钦县"},{value:"533423",label:"维西傈僳族自治县"},{value:"533401",label:"香格里拉市"}]},{value:"5325",label:"红河哈尼族彝族自治州",children:[{value:"532501",label:"个旧市"},{value:"532532",label:"河口瑶族自治县"},{value:"532529",label:"红河县"},{value:"532524",label:"建水县"},{value:"532530",label:"金平苗族瑶族傣族自治县"},{value:"532502",label:"开远市"},{value:"532527",label:"泸西县"},{value:"532531",label:"绿春县"},{value:"532503",label:"蒙自市"},{value:"532504",label:"弥勒市"},{value:"532523",label:"屏边苗族自治县"},{value:"532525",label:"石屏县"},{value:"532528",label:"元阳县"}]},{value:"5301",label:"昆明市",children:[{value:"530181",label:"安宁市"},{value:"530114",label:"呈贡区"},{value:"530113",label:"东川区"},{value:"530124",label:"富民县"},{value:"530111",label:"官渡区"},{value:"530115",label:"晋宁区"},{value:"530128",label:"禄劝彝族苗族自治县"},{value:"530103",label:"盘龙区"},{value:"530126",label:"石林彝族自治县"},{value:"530127",label:"嵩明县"},{value:"530102",label:"五华区"},{value:"530112",label:"西山区"},{value:"530129",label:"寻甸回族彝族自治县"},{value:"530125",label:"宜良县"}]},{value:"5307",label:"丽江市",children:[{value:"530702",label:"古城区"},{value:"530723",label:"华坪县"},{value:"530724",label:"宁蒗彝族自治县"},{value:"530722",label:"永胜县"},{value:"530721",label:"玉龙纳西族自治县"}]},{value:"5309",label:"临沧市",children:[{value:"530927",label:"沧源佤族自治县"},{value:"530921",label:"凤庆县"},{value:"530926",label:"耿马傣族佤族自治县"},{value:"530902",label:"临翔区"},{value:"530925",label:"双江拉祜族佤族布朗族傣族自治县"},{value:"530923",label:"永德县"},{value:"530922",label:"云县"},{value:"530924",label:"镇康县"}]},{value:"5333",label:"怒江傈僳族自治州",children:[{value:"533323",label:"福贡县"},{value:"533324",label:"贡山独龙族怒族自治县"},{value:"533325",label:"兰坪白族普米族自治县"},{value:"533301",label:"泸水市"}]},{value:"5308",label:"普洱市",children:[{value:"530826",label:"江城哈尼族彝族自治县"},{value:"530823",label:"景东彝族自治县"},{value:"530824",label:"景谷傣族彝族自治县"},{value:"530828",label:"澜沧拉祜族自治县"},{value:"530827",label:"孟连傣族拉祜族佤族自治县"},{value:"530822",label:"墨江哈尼族自治县"},{value:"530821",label:"宁洱哈尼族彝族自治县"},{value:"530802",label:"思茅区"},{value:"530829",label:"西盟佤族自治县"},{value:"530825",label:"镇沅彝族哈尼族拉祜族自治县"}]},{value:"5303",label:"曲靖市",children:[{value:"530325",label:"富源县"},{value:"530326",label:"会泽县"},{value:"530322",label:"陆良县"},{value:"530324",label:"罗平县"},{value:"530304",label:"马龙区"},{value:"530302",label:"麒麟区"},{value:"530323",label:"师宗县"},{value:"530381",label:"宣威市"},{value:"530303",label:"沾益区"}]},{value:"5326",label:"文山壮族苗族自治州",children:[{value:"532628",label:"富宁县"},{value:"532627",label:"广南县"},{value:"532624",label:"麻栗坡县"},{value:"532625",label:"马关县"},{value:"532626",label:"丘北县"},{value:"532601",label:"文山市"},{value:"532623",label:"西畴县"},{value:"532622",label:"砚山县"}]},{value:"5328",label:"西双版纳傣族自治州",children:[{value:"532801",label:"景洪市"},{value:"532822",label:"勐海县"},{value:"532823",label:"勐腊县"}]},{value:"5304",label:"玉溪市",children:[{value:"530481",label:"澄江市"},{value:"530426",label:"峨山彝族自治县"},{value:"530402",label:"红塔区"},{value:"530424",label:"华宁县"},{value:"530403",label:"江川区"},{value:"530423",label:"通海县"},{value:"530427",label:"新平彝族傣族自治县"},{value:"530425",label:"易门县"},{value:"530428",label:"元江哈尼族彝族傣族自治县"}]},{value:"5306",label:"昭通市",children:[{value:"530624",label:"大关县"},{value:"530621",label:"鲁甸县"},{value:"530622",label:"巧家县"},{value:"530681",label:"水富市"},{value:"530626",label:"绥江县"},{value:"530629",label:"威信县"},{value:"530623",label:"盐津县"},{value:"530628",label:"彝良县"},{value:"530625",label:"永善县"},{value:"530602",label:"昭阳区"},{value:"530627",label:"镇雄县"}]}]},{value:"33",label:"浙江省",children:[{value:"3301",label:"杭州市",children:[{value:"330108",label:"滨江区"},{value:"330127",label:"淳安县"},{value:"330111",label:"富阳区"},{value:"330105",label:"拱墅区"},{value:"330182",label:"建德市"},{value:"330112",label:"临安区"},{value:"330113",label:"临平区"},{value:"330114",label:"钱塘区"},{value:"330102",label:"上城区"},{value:"330122",label:"桐庐县"},{value:"330106",label:"西湖区"},{value:"330109",label:"萧山区"},{value:"330110",label:"余杭区"}]},{value:"3305",label:"湖州市",children:[{value:"330523",label:"安吉县"},{value:"330521",label:"德清县"},{value:"330503",label:"南浔区"},{value:"330502",label:"吴兴区"},{value:"330522",label:"长兴县"}]},{value:"3304",label:"嘉兴市",children:[{value:"330481",label:"海宁市"},{value:"330424",label:"海盐县"},{value:"330421",label:"嘉善县"},{value:"330402",label:"南湖区"},{value:"330482",label:"平湖市"},{value:"330483",label:"桐乡市"},{value:"330411",label:"秀洲区"}]},{value:"3307",label:"金华市",children:[{value:"330783",label:"东阳市"},{value:"330703",label:"金东区"},{value:"330781",label:"兰溪市"},{value:"330727",label:"磐安县"},{value:"330726",label:"浦江县"},{value:"330723",label:"武义县"},{value:"330702",label:"婺城区"},{value:"330782",label:"义乌市"},{value:"330784",label:"永康市"}]},{value:"3311",label:"丽水市",children:[{value:"331122",label:"缙云县"},{value:"331127",label:"景宁畲族自治县"},{value:"331102",label:"莲都区"},{value:"331181",label:"龙泉市"},{value:"331121",label:"青田县"},{value:"331126",label:"庆元县"},{value:"331124",label:"松阳县"},{value:"331123",label:"遂昌县"},{value:"331125",label:"云和县"}]},{value:"3302",label:"宁波市",children:[{value:"330206",label:"北仑区"},{value:"330282",label:"慈溪市"},{value:"330213",label:"奉化区"},{value:"330203",label:"海曙区"},{value:"330205",label:"江北区"},{value:"330226",label:"宁海县"},{value:"330225",label:"象山县"},{value:"330212",label:"鄞州区"},{value:"330281",label:"余姚市"},{value:"330211",label:"镇海区"}]},{value:"3308",label:"衢州市",children:[{value:"330822",label:"常山县"},{value:"330881",label:"江山市"},{value:"330824",label:"开化县"},{value:"330802",label:"柯城区"},{value:"330825",label:"龙游县"},{value:"330803",label:"衢江区"}]},{value:"3306",label:"绍兴市",children:[{value:"330603",label:"柯桥区"},{value:"330604",label:"上虞区"},{value:"330683",label:"嵊州市"},{value:"330624",label:"新昌县"},{value:"330602",label:"越城区"},{value:"330681",label:"诸暨市"}]},{value:"3310",label:"台州市",children:[{value:"331003",label:"黄岩区"},{value:"331002",label:"椒江区"},{value:"331082",label:"临海市"},{value:"331004",label:"路桥区"},{value:"331022",label:"三门县"},{value:"331023",label:"天台县"},{value:"331081",label:"温岭市"},{value:"331024",label:"仙居县"},{value:"331083",label:"玉环市"}]},{value:"3303",label:"温州市",children:[{value:"330327",label:"苍南县"},{value:"330305",label:"洞头区"},{value:"330382",label:"乐清市"},{value:"330383",label:"龙港市"},{value:"330303",label:"龙湾区"},{value:"330302",label:"鹿城区"},{value:"330304",label:"瓯海区"},{value:"330326",label:"平阳县"},{value:"330381",label:"瑞安市"},{value:"330329",label:"泰顺县"},{value:"330328",label:"文成县"},{value:"330324",label:"永嘉县"}]},{value:"3309",label:"舟山市",children:[{value:"330921",label:"岱山县"},{value:"330902",label:"定海区"},{value:"330903",label:"普陀区"},{value:"330922",label:"嵊泗县"}]}]}],Wo=["tabindex"],Go={class:"flex items-center gap-2 flex-1 overflow-hidden"},Uo={key:0,class:"truncate"},Ko={key:1,class:"text-gray-400"},qo={key:0,class:"absolute z-[9999] mt-1 bg-white border border-gray-300 rounded-md shadow-lg",style:{minWidth:"100%",width:"max-content"}},Zo={key:0,class:"p-3 border-b border-gray-200"},Qo={class:"relative"},Jo=["placeholder"],eu={key:0,class:"mt-2 text-xs text-gray-500 flex items-center gap-1"},lu={class:"font-medium"},au={key:1,class:"max-h-80 overflow-y-auto",style:{"min-width":"600px"}},tu={class:"px-3 py-2 text-xs text-gray-500 bg-gray-50 sticky top-0"},nu=["onClick"],ou={class:"flex items-center justify-between"},uu={class:"flex-1"},su=["innerHTML"],cu={class:"ml-2 text-xs text-gray-400"},ru={key:0,class:"text-xs text-gray-500 mt-1"},iu={key:2,class:"flex",style:{"min-width":"600px"}},vu=["onClick","innerHTML"],du=["onClick","innerHTML"],bu=["onClick","innerHTML"],gu={key:3,class:"px-4 py-8 text-center text-gray-400"},fu={key:4,class:"px-4 py-8 text-center text-gray-400"},hu=e.defineComponent({__name:"index",props:{modelValue:{default:()=>[]},placeholder:{default:"请选择地区"},disabled:{type:Boolean,default:!1},customClass:{default:""},separator:{default:" / "},maxLevel:{default:3},searchable:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(l,{expose:u,emit:t}){const a=l,n=t,o=e.ref(!1),s=e.ref(),c=e.ref(),i=e.ref(),r=e.ref(),v=e.ref(),h=e.ref(),p=e.ref(),f=e.ref(),x=e.ref(!1),b=e.ref(""),d=e.ref([]),y=e.ref(!1);let m=null;const w=new Map,k=e.ref(null),N=e.ref(null),E=e.ref(null),M=e.ref([]),g=e.ref([]),$=e.ref([]),S=e.computed(()=>{const C=[];return k.value&&C.push(k.value.label),N.value&&C.push(N.value.label),E.value&&C.push(E.value.label),C.length>0?C.join(a.separator):""}),V=e.computed(()=>"搜索省/市/区,支持智能定位..."),F=e.computed(()=>{const C=[];return k.value&&C.push(k.value.label),N.value&&C.push(N.value.label),E.value&&C.push(E.value.label),C.length>0?C.join(" > "):""}),X=e.computed(()=>{if(!b.value.trim())return M.value;const C=b.value.toLowerCase().trim();return M.value.filter(D=>D.label.toLowerCase().includes(C)||D.value.includes(C))}),z=e.computed(()=>{if(!b.value.trim())return g.value;const C=b.value.toLowerCase().trim();return g.value.filter(D=>D.label.toLowerCase().includes(C)||D.value.includes(C))}),L=e.computed(()=>{if(!b.value.trim())return $.value;const C=b.value.toLowerCase().trim();return $.value.filter(D=>D.label.toLowerCase().includes(C)||D.value.includes(C))});function T(C,D){if(!D||!D.trim())return C;const O=D.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),R=new RegExp(`(${O})`,"gi");return C.replace(R,'<span class="bg-yellow-200 font-semibold">$1</span>')}function A(C){return new Promise(D=>{if(!m||!x.value){D([]);return}if(w.has(C)){D(w.get(C));return}const O=R=>{var W;if(((W=R.data)==null?void 0:W.type)==="children"&&R.data.parent===C){const J=R.data.list||[];w.set(C,J),D(J),m.removeEventListener("message",O)}};m.addEventListener("message",O),m.postMessage({type:"children",payload:{parent:C}}),setTimeout(()=>{m.removeEventListener("message",O),D([])},5e3)})}function B(){return new Promise(C=>{if(!m||!x.value){C([]);return}const D=O=>{var R;if(((R=O.data)==null?void 0:R.type)==="roots"){const W=O.data.list||[];C(W),m.removeEventListener("message",D)}};m.addEventListener("message",D),m.postMessage({type:"roots"}),setTimeout(()=>{m.removeEventListener("message",D),C([])},5e3)})}const P=async()=>{a.disabled||(o.value=!o.value,o.value&&(M.value.length===0&&(M.value=await B()),await _(),a.searchable&&setTimeout(()=>{var C;(C=c.value)==null||C.focus()},100)))},_=async()=>{if(k.value&&a.maxLevel>=2){const C=await A(k.value.value);g.value=C,console.log("[RegionCascader] 恢复省份选择,加载城市:",C.length),await e.nextTick(),G()}if(N.value&&a.maxLevel>=3){const C=await A(N.value.value);$.value=C,console.log("[RegionCascader] 恢复城市选择,加载区县:",C.length),await e.nextTick(),U()}E.value&&a.maxLevel>=3&&(await e.nextTick(),j())},Y=(C,D,O)=>{if(!D||!C)return;const R=C.clientHeight,W=D.offsetTop,J=D.clientHeight,ve=W-R/2+J/2;C.scrollTo({top:Math.max(0,ve),behavior:"auto"}),console.log("[RegionCascader] 滚动到:",O)},G=()=>{var C;Y(i.value,h.value,((C=k.value)==null?void 0:C.label)||"")},U=()=>{var C;Y(r.value,p.value,((C=N.value)==null?void 0:C.label)||"")},j=()=>{var C;Y(v.value,f.value,((C=E.value)==null?void 0:C.label)||"")},I=()=>{o.value=!1,b.value=""};let H=null;const q=()=>{H&&clearTimeout(H),H=setTimeout(()=>{ee()},300)},ee=()=>{const C=b.value.trim();if(!C){d.value=[],y.value=!1;return}if(y.value=!0,m&&x.value){const D=O=>{var R;((R=O.data)==null?void 0:R.type)==="searchResults"&&O.data.keyword===C&&(d.value=O.data.results||[],y.value=!1,m.removeEventListener("message",D))};m.addEventListener("message",D),m.postMessage({type:"search",payload:{keyword:C,parentValue:null}}),setTimeout(()=>{m.removeEventListener("message",D),y.value=!1},3e3)}else y.value=!1},Q=()=>{var C;b.value="",d.value=[],y.value=!1,(C=c.value)==null||C.focus()},Z=async C=>{if(console.log("[RegionCascader] 选择省份:",C.label,"maxLevel:",a.maxLevel),k.value=C,N.value=null,E.value=null,g.value=[],$.value=[],b.value="",e.nextTick(()=>{G()}),a.maxLevel===1){console.log("[RegionCascader] maxLevel=1,关闭下拉框"),oe(),I();return}if(!C.leaf&&a.maxLevel>=2){console.log("[RegionCascader] 加载城市列表...");const D=await A(C.value);g.value=D,console.log("[RegionCascader] 城市列表加载完成:",D.length,"个城市"),console.log("[RegionCascader] 下拉框状态 isOpen:",o.value),a.searchable&&setTimeout(()=>{var O;(O=c.value)==null||O.focus()},100)}else console.log("[RegionCascader] 省份是叶子节点或maxLevel<2,关闭下拉框"),oe(),I()},le=async C=>{if(N.value=C,E.value=null,$.value=[],b.value="",e.nextTick(()=>{U()}),a.maxLevel===2){oe(),I();return}!C.leaf&&a.maxLevel>=3?($.value=await A(C.value),a.searchable&&setTimeout(()=>{var D;(D=c.value)==null||D.focus()},100)):(oe(),I())},ne=C=>{E.value=C,e.nextTick(()=>{j()}),oe(),I()},se=async C=>{if(!C.path||!C.pathLabels)return;b.value="",d.value=[];const D=C.path,O=C.pathLabels,R=C.level||D.length;if(M.value.length===0&&(M.value=await B()),R===1){const W={value:D[0],label:O[0],leaf:!1};await Z(W)}else if(R===2){k.value={value:D[0],label:O[0],leaf:!1},g.value=await A(D[0]);const W={value:D[1],label:O[1],leaf:!1};await le(W)}else if(R===3){k.value={value:D[0],label:O[0],leaf:!1},g.value=await A(D[0]),N.value={value:D[1],label:O[1],leaf:!1},$.value=await A(D[1]);const W={value:D[2],label:O[2],leaf:!0};ne(W)}},oe=()=>{const C=[],D=[];k.value&&(C.push(k.value.value),D.push(k.value.label)),N.value&&(C.push(N.value.value),D.push(N.value.label)),E.value&&(C.push(E.value.value),D.push(E.value.label)),n("update:modelValue",C),n("change",C,D)},re=()=>{try{m=new Worker(new URL("/assets/areas.worker-Ci--LHMH.js",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.js",document.baseURI).href),{type:"module"}),m.onmessage=C=>{var D,O;((D=C.data)==null?void 0:D.type)==="ready"?(x.value=!0,console.log("[RegionCascader] Worker初始化完成")):((O=C.data)==null?void 0:O.type)==="error"&&console.error("[RegionCascader] Worker错误:",C.data.error)},m.onerror=C=>{console.error("[RegionCascader] Worker error:",C)},m.postMessage({type:"init",payload:{root:Ro}})}catch(C){console.error("[RegionCascader] Failed to create worker:",C)}};e.onMounted(async()=>{re();const C=D=>{s.value&&!s.value.contains(D.target)&&I()};document.addEventListener("click",C),e.onUnmounted(()=>{document.removeEventListener("click",C),m&&(m.terminate(),m=null)})});async function ie(C){var D,O,R;if(!C||C.length===0){k.value=null,N.value=null,E.value=null,M.value=[],g.value=[],$.value=[];return}console.log("[RegionCascader] 恢复选中状态:",C);try{if(M.value.length===0&&(M.value=await B()),C[0]){const W=M.value.find(J=>J.value===C[0]);if(W){if(k.value=W,C[1]&&a.maxLevel>=2){g.value=await A(C[0]);const J=g.value.find(ve=>ve.value===C[1]);if(J&&(N.value=J,C[2]&&a.maxLevel>=3)){$.value=await A(C[1]);const ve=$.value.find(Ce=>Ce.value===C[2]);ve&&(E.value=ve)}}}else console.warn("[RegionCascader] 未找到省份代码:",C[0])}console.log("[RegionCascader] 恢复完成:",{province:(D=k.value)==null?void 0:D.label,city:(O=N.value)==null?void 0:O.label,district:(R=E.value)==null?void 0:R.label})}catch(W){console.error("[RegionCascader] 恢复选中状态失败:",W)}}return e.watch(()=>a.modelValue,async C=>{console.log("[RegionCascader] modelValue changed:",C),await ie(C)},{deep:!0,immediate:!1}),e.watch(x,async C=>{C&&a.modelValue&&a.modelValue.length>0&&(console.log("[RegionCascader] Worker就绪,开始恢复初始值:",a.modelValue),await ie(a.modelValue))},{immediate:!0}),u({worker:m,workerReady:x,loadChildren:A,clearCache:()=>w.clear()}),(C,D)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:s,class:"region-cascader-container relative"},[e.createElementVNode("div",{onClick:P,class:e.normalizeClass(["w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[#1a1a1a] focus:border-[#1a1a1a] transition-colors duration-200 cursor-pointer bg-white flex items-center justify-between",l.customClass,{"opacity-60 cursor-not-allowed":l.disabled}]),tabindex:l.disabled?-1:0,onKeydown:[e.withKeys(P,["enter"]),e.withKeys(P,["space"]),e.withKeys(I,["escape"])]},[e.createElementVNode("div",Go,[S.value?(e.openBlock(),e.createElementBlock("span",Uo,e.toDisplayString(S.value),1)):(e.openBlock(),e.createElementBlock("span",Ko,e.toDisplayString(l.placeholder),1))]),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["w-5 h-5 text-gray-400 transition-transform duration-200 flex-shrink-0",{"rotate-180":o.value}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...D[2]||(D[2]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],42,Wo),o.value&&!l.disabled?(e.openBlock(),e.createElementBlock("div",qo,[l.searchable?(e.openBlock(),e.createElementBlock("div",Zo,[e.createElementVNode("div",Qo,[e.withDirectives(e.createElementVNode("input",{ref_key:"searchInputRef",ref:c,"onUpdate:modelValue":D[0]||(D[0]=O=>b.value=O),type:"text",placeholder:V.value,class:"w-full px-3 py-2 pl-9 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[#1a1a1a] focus:border-[#1a1a1a] transition-colors",onInput:q,onKeydown:D[1]||(D[1]=e.withModifiers(()=>{},["stop"]))},null,40,Jo),[[e.vModelText,b.value]]),D[4]||(D[4]=e.createElementVNode("svg",{class:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1)),b.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:Q,class:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600"},[...D[3]||(D[3]=[e.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])])):e.createCommentVNode("",!0)]),F.value?(e.openBlock(),e.createElementBlock("div",eu,[D[5]||(D[5]=e.createElementVNode("span",null,"当前:",-1)),e.createElementVNode("span",lu,e.toDisplayString(F.value),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.searchable&&b.value&&d.value.length>0?(e.openBlock(),e.createElementBlock("div",au,[e.createElementVNode("div",tu," 找到 "+e.toDisplayString(d.value.length)+" 个结果(点击自动定位) ",1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,O=>(e.openBlock(),e.createElementBlock("div",{key:O.value,onClick:e.withModifiers(R=>se(O),["stop"]),class:"px-3 py-2 hover:bg-gray-50 cursor-pointer transition-colors border-b border-gray-100"},[e.createElementVNode("div",ou,[e.createElementVNode("div",uu,[e.createElementVNode("span",{innerHTML:T(O.label,b.value),class:"font-medium"},null,8,su),e.createElementVNode("span",cu,e.toDisplayString(["","省","市","区"][O.level||0]),1)])]),O.pathLabels&&O.pathLabels.length>1?(e.openBlock(),e.createElementBlock("div",ru,e.toDisplayString(O.pathLabels.slice(0,-1).join(" > ")),1)):e.createCommentVNode("",!0)],8,nu))),128))])):e.createCommentVNode("",!0),!l.searchable||!b.value||d.value.length===0?(e.openBlock(),e.createElementBlock("div",iu,[e.createElementVNode("div",{ref_key:"provinceListRef",ref:i,class:"flex-1 border-r border-gray-200 max-h-60 overflow-y-auto min-w-[200px]"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(X.value,O=>{var R;return e.openBlock(),e.createElementBlock("div",{key:O.value,ref_for:!0,ref:W=>{var J;((J=k.value)==null?void 0:J.value)===O.value&&(h.value=W)},onClick:e.withModifiers(W=>Z(O),["stop"]),class:e.normalizeClass(["px-3 py-2 hover:bg-gray-50 cursor-pointer transition-colors whitespace-nowrap",{"bg-blue-50 text-blue-600":((R=k.value)==null?void 0:R.value)===O.value}]),innerHTML:T(O.label,b.value)},null,10,vu)}),128))],512),z.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"cityListRef",ref:r,class:"flex-1 border-r border-gray-200 max-h-60 overflow-y-auto min-w-[200px]"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,O=>{var R;return e.openBlock(),e.createElementBlock("div",{key:O.value,ref_for:!0,ref:W=>{var J;((J=N.value)==null?void 0:J.value)===O.value&&(p.value=W)},onClick:e.withModifiers(W=>le(O),["stop"]),class:e.normalizeClass(["px-3 py-2 hover:bg-gray-50 cursor-pointer transition-colors whitespace-nowrap",{"bg-blue-50 text-blue-600":((R=N.value)==null?void 0:R.value)===O.value}]),innerHTML:T(O.label,b.value)},null,10,du)}),128))],512)):e.createCommentVNode("",!0),L.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"districtListRef",ref:v,class:"flex-1 border-r border-gray-200 max-h-60 overflow-y-auto min-w-[200px]"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,O=>{var R;return e.openBlock(),e.createElementBlock("div",{key:O.value,ref_for:!0,ref:W=>{var J;((J=E.value)==null?void 0:J.value)===O.value&&(f.value=W)},onClick:e.withModifiers(W=>ne(O),["stop"]),class:e.normalizeClass(["px-3 py-2 hover:bg-gray-50 cursor-pointer transition-colors whitespace-nowrap",{"bg-blue-50 text-blue-600":((R=E.value)==null?void 0:R.value)===O.value}]),innerHTML:T(O.label,b.value)},null,10,bu)}),128))],512)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),x.value?M.value.length===0?(e.openBlock(),e.createElementBlock("div",fu,[...D[7]||(D[7]=[e.createElementVNode("div",{class:"mb-2"},"暂无数据",-1)])])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",gu,[...D[6]||(D[6]=[e.createElementVNode("div",{class:"mb-2"},"正在初始化地区数据...",-1),e.createElementVNode("div",{class:"text-xs"},"请稍候",-1)])]))])):e.createCommentVNode("",!0),o.value&&!l.disabled?(e.openBlock(),e.createElementBlock("div",{key:1,class:"fixed inset-0 z-[9998]",onClick:I})):e.createCommentVNode("",!0)],512))}}),mu=ae(hu,[["__scopeId","data-v-a14f703f"]]),pu=e.defineComponent({__name:"fireworks",setup(l){const u=e.ref([]);let t=0;const a=n=>{const o=n.currentTarget.getBoundingClientRect(),s=n.clientX-o.left,c=n.clientY-o.top,i={x:s,y:c,id:t++};u.value.push(i),setTimeout(()=>{const r=u.value.findIndex(v=>v.id===i.id);r>-1&&u.value.splice(r,1)},1250)};return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:"fireworks-wrapper",onClick:a},[e.renderSlot(n.$slots,"default",{},void 0,!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(s,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"firework-effect",style:e.normalizeStyle({left:`${s.x}px`,top:`${s.y}px`})},[...o[0]||(o[0]=[e.createElementVNode("div",{class:"firework-particle"},null,-1)])],4))),128))]))}}),yu=ae(pu,[["__scopeId","data-v-3d86407c"]]),wu={class:"glow-button-wrapper"},ku={class:"text"},Cu={"aria-hidden":"true",class:"particle-pen"},xu=e.defineComponent({__name:"glow",props:{text:{default:"Button"},color:{default:"#8b5cf6"},size:{default:"medium"}},emits:["click"],setup(l,{emit:u}){const t=l,a=u,n=r=>{r=r.replace("#","");const v=parseInt(r.substring(0,2),16)/255,h=parseInt(r.substring(2,4),16)/255,p=parseInt(r.substring(4,6),16)/255,f=Math.max(v,h,p),x=Math.min(v,h,p);let b=0,d=0;const y=(f+x)/2;if(f!==x){const m=f-x;switch(d=y>.5?m/(2-f-x):m/(f+x),f){case v:b=((h-p)/m+(h<p?6:0))/6;break;case h:b=((p-v)/m+2)/6;break;case p:b=((v-h)/m+4)/6;break}}return{h:Math.round(b*360),s:Math.round(d*100),l:Math.round(y*100)}},o=e.computed(()=>n(t.color)),s={small:"0.9rem",medium:"1.2rem",large:"1.5rem"},c=e.computed(()=>({"--hue":o.value.h,"--saturation":`${o.value.s}%`,"--lightness":`${o.value.l}%`,"--font-size":s[t.size]})),i=r=>{a("click",r)};return(r,v)=>(e.openBlock(),e.createElementBlock("div",wu,[e.createElementVNode("button",{class:"glow-button",style:e.normalizeStyle(c.value),onClick:i},[v[0]||(v[0]=e.createStaticVNode('<span class="spark" data-v-0c48f8a7></span><span class="backdrop" data-v-0c48f8a7></span><svg class="sparkle" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-0c48f8a7><path d="M14.187 8.096L15 5.25L15.813 8.096C16.0231 8.83114 16.4171 9.50062 16.9577 10.0413C17.4984 10.5819 18.1679 10.9759 18.903 11.186L21.75 12L18.904 12.813C18.1689 13.0231 17.4994 13.4171 16.9587 13.9577C16.4181 14.4984 16.0241 15.1679 15.814 15.903L15 18.75L14.187 15.904C13.9769 15.1689 13.5829 14.4994 13.0423 13.9587C12.5016 13.4181 11.8321 13.0241 11.097 12.814L8.25 12L11.096 11.187C11.8311 10.9769 12.5006 10.5829 13.0413 10.0423C13.5819 9.50162 13.9759 8.83214 14.186 8.097L14.187 8.096Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" data-v-0c48f8a7></path><path d="M6 14.25L5.741 15.285C5.59267 15.8785 5.28579 16.4206 4.85319 16.8532C4.42059 17.2858 3.87853 17.5927 3.285 17.741L2.25 18L3.285 18.259C3.87853 18.4073 4.42059 18.7142 4.85319 19.1468C5.28579 19.5794 5.59267 20.1215 5.741 20.715L6 21.75L6.259 20.715C6.40725 20.1216 6.71398 19.5796 7.14639 19.147C7.5788 18.7144 8.12065 18.4075 8.714 18.259L9.75 18L8.714 17.741C8.12065 17.5925 7.5788 17.2856 7.14639 16.853C6.71398 16.4204 6.40725 15.8784 6.259 15.285L6 14.25Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" data-v-0c48f8a7></path><path d="M6.5 4L6.303 4.5915C6.24777 4.75718 6.15472 4.90774 6.03123 5.03123C5.90774 5.15472 5.75718 5.24777 5.5915 5.303L5 5.5L5.5915 5.697C5.75718 5.75223 5.90774 5.84528 6.03123 5.96877C6.15472 6.09226 6.24777 6.24282 6.303 6.4085L6.5 7L6.697 6.4085C6.75223 6.24282 6.84528 6.09226 6.96877 5.96877C7.09226 5.84528 7.24282 5.75223 7.4085 5.697L8 5.5L7.4085 5.303C7.24282 5.24777 7.09226 5.15472 6.96877 5.03123C6.84528 4.90774 6.75223 4.75718 6.697 4.5915L6.5 4Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" data-v-0c48f8a7></path></svg>',3)),e.createElementVNode("span",ku,[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.text),1)],!0)])],4),v[2]||(v[2]=e.createElementVNode("div",{class:"bodydrop"},null,-1)),e.createElementVNode("span",Cu,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(20,h=>e.createElementVNode("svg",{key:h,class:"particle",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...v[1]||(v[1]=[e.createElementVNode("path",{d:"M6.937 3.846L7.75 1L8.563 3.846C8.77313 4.58114 9.1671 5.25062 9.70774 5.79126C10.2484 6.3319 10.9179 6.72587 11.653 6.936L14.5 7.75L11.654 8.563C10.9189 8.77313 10.2494 9.1671 9.70874 9.70774C9.1681 10.2484 8.77413 10.9179 8.564 11.653L7.75 14.5L6.937 11.654C6.72687 10.9189 6.3329 10.2494 5.79226 9.70874C5.25162 9.1681 4.58214 8.77413 3.847 8.564L1 7.75L3.846 6.937C4.58114 6.72687 5.25062 6.3329 5.79126 5.79226C6.3319 5.25162 6.72587 4.58214 6.936 3.847L6.937 3.846Z",fill:"currentColor",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])),64))])]))}}),Su=ae(xu,[["__scopeId","data-v-0c48f8a7"]]),Eu=["width","height"],$u={key:0,class:"x-qrcode-loading"},Mu={key:0,class:"x-qrcode-loading-text"},Bu={key:1,class:"x-qrcode-error"},Pu={key:0,class:"x-qrcode-error-text"},Vu=e.defineComponent({__name:"index",props:{value:{},textIcon:{},icon:{},iconSize:{default:40},iconColor:{default:"#000000"},size:{default:200},backgroundColor:{default:"#ffffff"},foregroundColor:{default:"#1a1a1a"},errorCorrectionLevel:{default:"M"},bordered:{type:Boolean,default:!0},borderColor:{default:"#d9d9d9"},borderWidth:{default:1},loadingText:{default:"生成中..."},errorText:{default:"生成失败"}},emits:["success","error"],setup(l,{expose:u,emit:t}){const a=l,n=t,o=e.ref(),s=e.ref(!1),c=e.ref(!1),i=e.computed(()=>a.size),r=e.computed(()=>a.bordered?a.size+a.borderWidth*2:a.size),v=e.computed(()=>["x-qrcode",{"x-qrcode-bordered":a.bordered,"x-qrcode-loading":s.value,"x-qrcode-error":c.value}]),h=e.computed(()=>({width:`${r.value}px`,height:`${r.value}px`})),p=e.computed(()=>({width:`${a.size}px`,height:`${a.size}px`,border:a.bordered?`${a.borderWidth}px solid ${a.borderColor}`:"none",borderRadius:"4px"}));async function f(d,y){try{const m=(await Promise.resolve().then(()=>require("./browser-Bfcp93e9.js")).then(N=>N.browser)).default,w=o.value;if(!w)throw new Error("Canvas not found");const k={width:y,margin:1,color:{dark:a.foregroundColor,light:a.backgroundColor},errorCorrectionLevel:a.errorCorrectionLevel};await m.toCanvas(w,d,k),(a.textIcon||a.icon)&&await x(w,y)}catch(m){throw new Error(`Failed to generate QR code: ${m}`)}}async function x(d,y){const m=d.getContext("2d");if(!m)return;const w=a.iconSize,k=y/2,N=y/2,E=k-w/2,M=N-w/2;if(a.icon){const g=new Image;return g.crossOrigin="anonymous",new Promise(($,S)=>{g.onload=()=>{try{m.fillStyle=a.backgroundColor,m.beginPath(),m.rect(E-4,M-4,w+8,w+8),m.fill(),m.drawImage(g,E,M,w,w),$()}catch(V){S(V)}},g.onerror=()=>{S(new Error("Failed to load icon image"))},g.src=a.icon})}else if(a.textIcon){m.font=`${w}px Arial`,m.textAlign="center",m.textBaseline="middle";const $=m.measureText(a.textIcon).width,S=w,V=8,F=Math.max($+V,w),X=Math.max(S+V,w),z=k-F/2,L=N-X/2;m.fillStyle=a.backgroundColor,m.beginPath(),m.rect(z,L,F,X),m.fill(),m.fillStyle=a.iconColor,m.fillText(a.textIcon,k,N)}}async function b(){if(!a.value){c.value=!0,n("error",new Error("Value is required"));return}s.value=!0,c.value=!1;try{await f(a.value,a.size),s.value=!1,n("success")}catch(d){s.value=!1,c.value=!0,n("error",d)}}return e.watch(()=>[a.value,a.size,a.backgroundColor,a.foregroundColor,a.textIcon,a.icon,a.iconSize,a.iconColor],()=>{e.nextTick(()=>{b()})},{deep:!0}),e.onMounted(()=>{b()}),u({refresh:b}),(d,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(v.value),style:e.normalizeStyle(h.value)},[e.createElementVNode("canvas",{ref_key:"canvasRef",ref:o,width:i.value,height:i.value,style:e.normalizeStyle(p.value)},null,12,Eu),s.value?(e.openBlock(),e.createElementBlock("div",$u,[y[0]||(y[0]=e.createElementVNode("div",{class:"x-qrcode-spinner"},null,-1)),l.loadingText?(e.openBlock(),e.createElementBlock("span",Mu,e.toDisplayString(l.loadingText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("div",Bu,[y[1]||(y[1]=e.createElementVNode("div",{class:"x-qrcode-error-icon"},"⚠️",-1)),l.errorText?(e.openBlock(),e.createElementBlock("span",Pu,e.toDisplayString(l.errorText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))}}),ju=ae(Vu,[["__scopeId","data-v-34f77e62"]]),yl=()=>{const l=()=>{let r=document.getElementById("xl-message-container");return r||(r=document.createElement("div"),r.id="xl-message-container",r.style.cssText=`
|
2
2
|
position: fixed;
|
3
3
|
top: 20px;
|
4
4
|
right: 20px;
|
@@ -6,10 +6,10 @@
|
|
6
6
|
display: flex;
|
7
7
|
flex-direction: column;
|
8
8
|
gap: 10px;
|
9
|
-
`,document.body.appendChild(
|
10
|
-
background-color: ${
|
11
|
-
border: 1px solid ${
|
12
|
-
color: ${
|
9
|
+
`,document.body.appendChild(r)),r},u=r=>{const v={success:{bgColor:"#f0fdf4",borderColor:"#86efac",textColor:"#166534",iconColor:"#22c55e",iconSvg:'<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>'},error:{bgColor:"#fef2f2",borderColor:"#fca5a5",textColor:"#991b1b",iconColor:"#ef4444",iconSvg:'<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>'},warning:{bgColor:"#fefce8",borderColor:"#fde047",textColor:"#854d0e",iconColor:"#eab308",iconSvg:'<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>'},info:{bgColor:"#f8fafc",borderColor:"#cbd5e1",textColor:"#1e293b",iconColor:"#64748b",iconSvg:'<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>'}};return v[r]||v.info},t=r=>{const v=l(),h=r.type||"info",p=r.duration!==void 0?r.duration:3e3,f=u(h),x=`xl-msg-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,b=document.createElement("div");b.id=x,b.style.cssText=`
|
10
|
+
background-color: ${f.bgColor};
|
11
|
+
border: 1px solid ${f.borderColor};
|
12
|
+
color: ${f.textColor};
|
13
13
|
border-radius: 12px;
|
14
14
|
padding: 16px;
|
15
15
|
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
@@ -18,19 +18,19 @@
|
|
18
18
|
opacity: 0;
|
19
19
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
20
20
|
pointer-events: auto;
|
21
|
-
`,
|
21
|
+
`,b.innerHTML=`
|
22
22
|
<div style="display: flex; align-items: flex-start; gap: 12px;">
|
23
|
-
<div style="flex-shrink: 0; color: ${
|
24
|
-
${
|
23
|
+
<div style="flex-shrink: 0; color: ${f.iconColor}; margin-top: 2px;">
|
24
|
+
${f.iconSvg}
|
25
25
|
</div>
|
26
26
|
<div style="flex: 1; min-width: 0;">
|
27
|
-
<div style="font-size: 14px; font-weight: 500; line-height: 1.5; color: ${
|
28
|
-
${
|
27
|
+
<div style="font-size: 14px; font-weight: 500; line-height: 1.5; color: ${f.textColor};">
|
28
|
+
${r.title}
|
29
29
|
</div>
|
30
|
-
${
|
30
|
+
${r.content?`<div style="margin-top: 4px; font-size: 13px; line-height: 1.5; color: ${f.textColor}; opacity: 0.8;">${r.content}</div>`:""}
|
31
31
|
</div>
|
32
32
|
<button
|
33
|
-
style="flex-shrink: 0; background: none; border: none; padding: 4px; cursor: pointer; color: ${
|
33
|
+
style="flex-shrink: 0; background: none; border: none; padding: 4px; cursor: pointer; color: ${f.textColor}; opacity: 0.5; border-radius: 4px; transition: all 0.15s; display: flex; align-items: center; justify-content: center;"
|
34
34
|
onmouseover="this.style.opacity='1'; this.style.backgroundColor='rgba(0,0,0,0.05)';"
|
35
35
|
onmouseout="this.style.opacity='0.5'; this.style.backgroundColor='transparent';"
|
36
36
|
onclick="document.getElementById('${x}')?.remove()"
|
@@ -40,7 +40,7 @@
|
|
40
40
|
</svg>
|
41
41
|
</button>
|
42
42
|
</div>
|
43
|
-
`,
|
43
|
+
`,v.appendChild(b),requestAnimationFrame(()=>{requestAnimationFrame(()=>{b.style.transform="translateX(0)",b.style.opacity="1"})}),p>0&&setTimeout(()=>{a(x)},p)},a=r=>{const v=document.getElementById(r);v&&(v.style.transform="translateX(100%)",v.style.opacity="0",setTimeout(()=>{v.parentNode&&v.parentNode.removeChild(v)},300))};return{show:t,confirm:r=>{const v=r.type||"info",h=u(v),p=`xl-confirm-${Date.now()}`,f=document.createElement("div");f.id=p,f.style.cssText=`
|
44
44
|
position: fixed;
|
45
45
|
inset: 0;
|
46
46
|
z-index: 9999;
|
@@ -65,17 +65,17 @@
|
|
65
65
|
">
|
66
66
|
<div style="padding: 24px;">
|
67
67
|
<div style="display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px;">
|
68
|
-
<div style="flex-shrink: 0; color: ${
|
69
|
-
${
|
68
|
+
<div style="flex-shrink: 0; color: ${h.iconColor}; margin-top: 2px;">
|
69
|
+
${h.iconSvg}
|
70
70
|
</div>
|
71
71
|
<div style="flex: 1;">
|
72
72
|
<h3 style="font-size: 18px; font-weight: 600; color: #1a1a1a; line-height: 1.5; margin: 0;">
|
73
|
-
${
|
73
|
+
${r.title}
|
74
74
|
</h3>
|
75
75
|
</div>
|
76
76
|
</div>
|
77
77
|
<div style="font-size: 14px; color: #64748b; line-height: 1.6; margin-bottom: 24px; padding-left: 36px;">
|
78
|
-
${
|
78
|
+
${r.content}
|
79
79
|
</div>
|
80
80
|
<div style="display: flex; justify-content: flex-end; gap: 12px;">
|
81
81
|
<button class="xl-confirm-cancel" style="
|
@@ -98,7 +98,7 @@
|
|
98
98
|
onmouseout="this.style.backgroundColor='white'; this.style.borderColor='#cacaca'; this.style.color='#1a1a1a'; this.style.boxShadow='0 1px 2px rgba(26, 26, 26, 0.05)'; this.style.transform='translateY(0)';"
|
99
99
|
onmousedown="this.style.transform='translateY(1px)'; this.style.boxShadow='0 2px 4px rgba(0, 0, 0, 0.1)';"
|
100
100
|
onmouseup="this.style.transform='translateY(-2px)';">
|
101
|
-
${
|
101
|
+
${r.cancelText||"取消"}
|
102
102
|
</button>
|
103
103
|
<button class="xl-confirm-ok" style="
|
104
104
|
padding: 8px 16px;
|
@@ -120,12 +120,12 @@
|
|
120
120
|
onmouseout="this.style.background='linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%)'; this.style.boxShadow='0 4px 12px rgba(26, 26, 26, 0.3)'; this.style.transform='translateY(0)';"
|
121
121
|
onmousedown="this.style.transform='translateY(1px)'; this.style.boxShadow='0 2px 4px rgba(0, 0, 0, 0.1)';"
|
122
122
|
onmouseup="this.style.transform='translateY(-2px)';">
|
123
|
-
${
|
123
|
+
${r.confirmText||"确认"}
|
124
124
|
</button>
|
125
125
|
</div>
|
126
126
|
</div>
|
127
127
|
</div>
|
128
|
-
`;
|
128
|
+
`;f.innerHTML=x,document.body.appendChild(f),requestAnimationFrame(()=>{f.style.opacity="1";const w=f.querySelector(".xl-confirm-dialog");w&&requestAnimationFrame(()=>{w.style.transform="scale(1)",w.style.opacity="1"})});const b=f.querySelector(".xl-confirm-ok"),d=f.querySelector(".xl-confirm-cancel"),y=()=>{const w=f.querySelector(".xl-confirm-dialog");w&&(w.style.transform="scale(0.95)",w.style.opacity="0"),f.style.opacity="0",setTimeout(()=>{f.parentNode&&f.parentNode.removeChild(f)},300)};b==null||b.addEventListener("click",()=>{var w;(w=r.onConfirm)==null||w.call(r),y()}),d==null||d.addEventListener("click",()=>{var w;(w=r.onCancel)==null||w.call(r),y()}),f.addEventListener("click",w=>{var k;w.target===f&&((k=r.onCancel)==null||k.call(r),y())});const m=w=>{var k;w.key==="Escape"&&((k=r.onCancel)==null||k.call(r),y(),document.removeEventListener("keydown",m))};document.addEventListener("keydown",m)},success:(r,v,h)=>{t({title:r,content:v,type:"success",duration:h})},error:(r,v,h)=>{t({title:r,content:v,type:"error",duration:h})},warning:(r,v,h)=>{t({title:r,content:v,type:"warning",duration:h})},info:(r,v,h)=>{t({title:r,content:v,type:"info",duration:h})},remove:a}},wl=()=>{const l=()=>{let i=document.getElementById("xl-alert-container");return i||(i=document.createElement("div"),i.id="xl-alert-container",i.style.cssText=`
|
129
129
|
position: fixed;
|
130
130
|
top: 5%;
|
131
131
|
left: 50%;
|
@@ -136,7 +136,7 @@
|
|
136
136
|
gap: 12px;
|
137
137
|
max-width: 90%;
|
138
138
|
width: 500px;
|
139
|
-
`,document.body.appendChild(
|
139
|
+
`,document.body.appendChild(i)),i},u=i=>{const r={success:{bgColor:"rgb(240, 253, 244)",darkBgColor:"rgb(20, 83, 45)",borderColor:"rgb(134, 239, 172)",darkBorderColor:"rgb(22, 101, 52)",textColor:"rgb(22, 101, 52)",darkTextColor:"rgb(187, 247, 208)",iconColor:"rgb(34, 197, 94)",iconSvg:`<svg stroke="currentColor" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
140
140
|
<path d="M13 16h-1v-4h1m0-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"></path>
|
141
141
|
</svg>`},error:{bgColor:"rgb(254, 242, 242)",darkBgColor:"rgb(127, 29, 29)",borderColor:"rgb(252, 165, 165)",darkBorderColor:"rgb(153, 27, 27)",textColor:"rgb(153, 27, 27)",darkTextColor:"rgb(254, 202, 202)",iconColor:"rgb(239, 68, 68)",iconSvg:`<svg stroke="currentColor" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
142
142
|
<path d="M13 16h-1v-4h1m0-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"></path>
|
@@ -144,10 +144,10 @@
|
|
144
144
|
<path d="M13 16h-1v-4h1m0-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"></path>
|
145
145
|
</svg>`},info:{bgColor:"rgb(239, 246, 255)",darkBgColor:"rgb(30, 58, 138)",borderColor:"rgb(147, 197, 253)",darkBorderColor:"rgb(29, 78, 216)",textColor:"rgb(30, 64, 175)",darkTextColor:"rgb(191, 219, 254)",iconColor:"rgb(59, 130, 246)",iconSvg:`<svg stroke="currentColor" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
146
146
|
<path d="M13 16h-1v-4h1m0-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"></path>
|
147
|
-
</svg>`}};return
|
148
|
-
background-color: ${x?
|
149
|
-
border-left: 4px solid ${x?
|
150
|
-
color: ${x?
|
147
|
+
</svg>`}};return r[i]||r.info},t=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,a=i=>{const r=l(),v=i.type||"info",h=i.duration!==void 0?i.duration:5e3,p=i.closable!==void 0?i.closable:!0,f=u(v),x=t(),b=`xl-alert-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,d=document.createElement("div");d.id=b,d.setAttribute("role","alert"),d.style.cssText=`
|
148
|
+
background-color: ${x?f.darkBgColor:f.bgColor};
|
149
|
+
border-left: 4px solid ${x?f.darkBorderColor:f.borderColor};
|
150
|
+
color: ${x?f.darkTextColor:f.textColor};
|
151
151
|
padding: 16px;
|
152
152
|
border-radius: 12px;
|
153
153
|
display: flex;
|
@@ -158,20 +158,20 @@
|
|
158
158
|
opacity: 0;
|
159
159
|
position: relative;
|
160
160
|
`;let y=`
|
161
|
-
<div style="color: ${
|
162
|
-
${
|
161
|
+
<div style="color: ${f.iconColor}; width: 20px; height: 20px; flex-shrink: 0; margin-right: 12px;">
|
162
|
+
${f.iconSvg}
|
163
163
|
</div>
|
164
164
|
<div style="flex: 1;">
|
165
|
-
${
|
166
|
-
<p style="font-size: ${
|
165
|
+
${i.title?`<p style="font-weight: 600; font-size: 14px; margin-bottom: 4px;">${i.title}</p>`:""}
|
166
|
+
<p style="font-size: ${i.title?"13px":"14px"}; font-weight: ${i.title?"400":"600"};">${i.content}</p>
|
167
167
|
</div>
|
168
|
-
`;
|
168
|
+
`;p&&(y+=`
|
169
169
|
<button
|
170
170
|
class="xl-alert-close"
|
171
171
|
style="
|
172
172
|
background: transparent;
|
173
173
|
border: none;
|
174
|
-
color: ${x?
|
174
|
+
color: ${x?f.darkTextColor:f.textColor};
|
175
175
|
cursor: pointer;
|
176
176
|
padding: 4px;
|
177
177
|
margin-left: 8px;
|
@@ -192,4 +192,4 @@
|
|
192
192
|
<line x1="6" y1="6" x2="18" y2="18"></line>
|
193
193
|
</svg>
|
194
194
|
</button>
|
195
|
-
`),
|
195
|
+
`),d.innerHTML=y;const m=()=>{d.style.transform="scale(0.8)",d.style.opacity="0",setTimeout(()=>{d.parentNode&&r.removeChild(d),r.children.length===0&&document.body.removeChild(r)},300)};if(p){const w=d.querySelector(".xl-alert-close");w&&w.addEventListener("click",m)}return r.appendChild(d),setTimeout(()=>{d.style.transform="scale(1)",d.style.opacity="1"},10),h>0&&setTimeout(m,h),{close:m}};return{show:a,success:(i,r)=>a({content:i,type:"success",...r}),error:(i,r)=>a({content:i,type:"error",...r}),warning:(i,r)=>a({content:i,type:"warning",...r}),info:(i,r)=>a({content:i,type:"info",...r})}};exports.XAccordion=Ht;exports.XButton=je;exports.XCard=Za;exports.XCheckboxes=zt;exports.XCountrySelect=ut;exports.XDateTimePicker=Ho;exports.XFirework=yu;exports.XGButton=Su;exports.XInput=Bt;exports.XModal=on;exports.XQrcode=ju;exports.XRadio=In;exports.XRegionCascader=mu;exports.XScore=Sn;exports.XSelect=St;exports.XSkeleton=Qt;exports.XSwitch=mn;exports.XThumbnailContainer=qt;exports.XTooltips=dn;exports.useAlert=wl;exports.useCountdown=ro;exports.useDateRange=co;exports.useDateTime=De;exports.useDateTimeDefault=De;exports.useMsg=yl;exports.xlAlert=wl;exports.xlMsg=yl;
|