import{f as e,g as d,B as n,E as t,I as i,b8 as o,w as a,ah as r,i as c,j as s,s as l,H as u,m as $,n as h,b9 as m,k as f,G as _,l as p,F as g,ba as y,a3 as b,an as v,P as C,u as w,v as S,bb as k,as as I,bc as A,N as P,o as O,z as x,x as M,aW as E,aX as N,y as B,ar as T,J as R}from"./index-ba48620e.js";import{_ as F}from"./_plugin-vue_export-helper.1b428a4d.js";const L={id:"2852637",name:"uniui图标库",font_family:"uniicons",css_prefix_text:"uniui-",description:"",glyphs:[{icon_id:"25027049",name:"yanse",font_class:"color",unicode:"e6cf",unicode_decimal:59087},{icon_id:"25027048",name:"wallet",font_class:"wallet",unicode:"e6b1",unicode_decimal:59057},{icon_id:"25015720",name:"settings-filled",font_class:"settings-filled",unicode:"e6ce",unicode_decimal:59086},{icon_id:"25015434",name:"shimingrenzheng-filled",font_class:"auth-filled",unicode:"e6cc",unicode_decimal:59084},{icon_id:"24934246",name:"shop-filled",font_class:"shop-filled",unicode:"e6cd",unicode_decimal:59085},{icon_id:"24934159",name:"staff-filled-01",font_class:"staff-filled",unicode:"e6cb",unicode_decimal:59083},{icon_id:"24932461",name:"VIP-filled",font_class:"vip-filled",unicode:"e6c6",unicode_decimal:59078},{icon_id:"24932462",name:"plus_circle_fill",font_class:"plus-filled",unicode:"e6c7",unicode_decimal:59079},{icon_id:"24932463",name:"folder_add-filled",font_class:"folder-add-filled",unicode:"e6c8",unicode_decimal:59080},{icon_id:"24932464",name:"yanse-filled",font_class:"color-filled",unicode:"e6c9",unicode_decimal:59081},{icon_id:"24932465",name:"tune-filled",font_class:"tune-filled",unicode:"e6ca",unicode_decimal:59082},{icon_id:"24932455",name:"a-rilidaka-filled",font_class:"calendar-filled",unicode:"e6c0",unicode_decimal:59072},{icon_id:"24932456",name:"notification-filled",font_class:"notification-filled",unicode:"e6c1",unicode_decimal:59073},{icon_id:"24932457",name:"wallet-filled",font_class:"wallet-filled",unicode:"e6c2",unicode_decimal:59074},{icon_id:"24932458",name:"paihangbang-filled",font_class:"medal-filled",unicode:"e6c3",unicode_decimal:59075},{icon_id:"24932459",name:"gift-filled",font_class:"gift-filled",unicode:"e6c4",unicode_decimal:59076},{icon_id:"24932460",name:"fire-filled",font_class:"fire-filled",unicode:"e6c5",unicode_decimal:59077},{icon_id:"24928001",name:"refreshempty",font_class:"refreshempty",unicode:"e6bf",unicode_decimal:59071},{icon_id:"24926853",name:"location-ellipse",font_class:"location-filled",unicode:"e6af",unicode_decimal:59055},{icon_id:"24926735",name:"person-filled",font_class:"person-filled",unicode:"e69d",unicode_decimal:59037},{icon_id:"24926703",name:"personadd-filled",font_class:"personadd-filled",unicode:"e698",unicode_decimal:59032},{icon_id:"24923351",name:"back",font_class:"back",unicode:"e6b9",unicode_decimal:59065},{icon_id:"24923352",name:"forward",font_class:"forward",unicode:"e6ba",unicode_decimal:59066},{icon_id:"24923353",name:"arrowthinright",font_class:"arrow-right",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923353",name:"arrowthinright",font_class:"arrowthinright",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrow-left",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrowthinleft",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923355",name:"arrowthinup",font_class:"arrow-up",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923355",name:"arrowthinup",font_class:"arrowthinup",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923356",name:"arrowthindown",font_class:"arrow-down",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923356",name:"arrowthindown",font_class:"arrowthindown",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923349",name:"arrowdown",font_class:"bottom",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923349",name:"arrowdown",font_class:"arrowdown",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923346",name:"arrowright",font_class:"right",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923346",name:"arrowright",font_class:"arrowright",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923347",name:"arrowup",font_class:"top",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923347",name:"arrowup",font_class:"arrowup",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923348",name:"arrowleft",font_class:"left",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923348",name:"arrowleft",font_class:"arrowleft",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923334",name:"eye",font_class:"eye",unicode:"e651",unicode_decimal:58961},{icon_id:"24923335",name:"eye-filled",font_class:"eye-filled",unicode:"e66a",unicode_decimal:58986},{icon_id:"24923336",name:"eye-slash",font_class:"eye-slash",unicode:"e6b3",unicode_decimal:59059},{icon_id:"24923337",name:"eye-slash-filled",font_class:"eye-slash-filled",unicode:"e6b4",unicode_decimal:59060},{icon_id:"24923305",name:"info-filled",font_class:"info-filled",unicode:"e649",unicode_decimal:58953},{icon_id:"24923299",name:"reload-01",font_class:"reload",unicode:"e6b2",unicode_decimal:59058},{icon_id:"24923195",name:"mic_slash_fill",font_class:"micoff-filled",unicode:"e6b0",unicode_decimal:59056},{icon_id:"24923165",name:"map-pin-ellipse",font_class:"map-pin-ellipse",unicode:"e6ac",unicode_decimal:59052},{icon_id:"24923166",name:"map-pin",font_class:"map-pin",unicode:"e6ad",unicode_decimal:59053},{icon_id:"24923167",name:"location",font_class:"location",unicode:"e6ae",unicode_decimal:59054},{icon_id:"24923064",name:"starhalf",font_class:"starhalf",unicode:"e683",unicode_decimal:59011},{icon_id:"24923065",name:"star",font_class:"star",unicode:"e688",unicode_decimal:59016},{icon_id:"24923066",name:"star-filled",font_class:"star-filled",unicode:"e68f",unicode_decimal:59023},{icon_id:"24899646",name:"a-rilidaka",font_class:"calendar",unicode:"e6a0",unicode_decimal:59040},{icon_id:"24899647",name:"fire",font_class:"fire",unicode:"e6a1",unicode_decimal:59041},{icon_id:"24899648",name:"paihangbang",font_class:"medal",unicode:"e6a2",unicode_decimal:59042},{icon_id:"24899649",name:"font",font_class:"font",unicode:"e6a3",unicode_decimal:59043},{icon_id:"24899650",name:"gift",font_class:"gift",unicode:"e6a4",unicode_decimal:59044},{icon_id:"24899651",name:"link",font_class:"link",unicode:"e6a5",unicode_decimal:59045},{icon_id:"24899652",name:"notification",font_class:"notification",unicode:"e6a6",unicode_decimal:59046},{icon_id:"24899653",name:"staff",font_class:"staff",unicode:"e6a7",unicode_decimal:59047},{icon_id:"24899654",name:"VIP",font_class:"vip",unicode:"e6a8",unicode_decimal:59048},{icon_id:"24899655",name:"folder_add",font_class:"folder-add",unicode:"e6a9",unicode_decimal:59049},{icon_id:"24899656",name:"tune",font_class:"tune",unicode:"e6aa",unicode_decimal:59050},{icon_id:"24899657",name:"shimingrenzheng",font_class:"auth",unicode:"e6ab",unicode_decimal:59051},{icon_id:"24899565",name:"person",font_class:"person",unicode:"e699",unicode_decimal:59033},{icon_id:"24899566",name:"email-filled",font_class:"email-filled",unicode:"e69a",unicode_decimal:59034},{icon_id:"24899567",name:"phone-filled",font_class:"phone-filled",unicode:"e69b",unicode_decimal:59035},{icon_id:"24899568",name:"phone",font_class:"phone",unicode:"e69c",unicode_decimal:59036},{icon_id:"24899570",name:"email",font_class:"email",unicode:"e69e",unicode_decimal:59038},{icon_id:"24899571",name:"personadd",font_class:"personadd",unicode:"e69f",unicode_decimal:59039},{icon_id:"24899558",name:"chatboxes-filled",font_class:"chatboxes-filled",unicode:"e692",unicode_decimal:59026},{icon_id:"24899559",name:"contact",font_class:"contact",unicode:"e693",unicode_decimal:59027},{icon_id:"24899560",name:"chatbubble-filled",font_class:"chatbubble-filled",unicode:"e694",unicode_decimal:59028},{icon_id:"24899561",name:"contact-filled",font_class:"contact-filled",unicode:"e695",unicode_decimal:59029},{icon_id:"24899562",name:"chatboxes",font_class:"chatboxes",unicode:"e696",unicode_decimal:59030},{icon_id:"24899563",name:"chatbubble",font_class:"chatbubble",unicode:"e697",unicode_decimal:59031},{icon_id:"24881290",name:"upload-filled",font_class:"upload-filled",unicode:"e68e",unicode_decimal:59022},{icon_id:"24881292",name:"upload",font_class:"upload",unicode:"e690",unicode_decimal:59024},{icon_id:"24881293",name:"weixin",font_class:"weixin",unicode:"e691",unicode_decimal:59025},{icon_id:"24881274",name:"compose",font_class:"compose",unicode:"e67f",unicode_decimal:59007},{icon_id:"24881275",name:"qq",font_class:"qq",unicode:"e680",unicode_decimal:59008},{icon_id:"24881276",name:"download-filled",font_class:"download-filled",unicode:"e681",unicode_decimal:59009},{icon_id:"24881277",name:"pengyouquan",font_class:"pyq",unicode:"e682",unicode_decimal:59010},{icon_id:"24881279",name:"sound",font_class:"sound",unicode:"e684",unicode_decimal:59012},{icon_id:"24881280",name:"trash-filled",font_class:"trash-filled",unicode:"e685",unicode_decimal:59013},{icon_id:"24881281",name:"sound-filled",font_class:"sound-filled",unicode:"e686",unicode_decimal:59014},{icon_id:"24881282",name:"trash",font_class:"trash",unicode:"e687",unicode_decimal:59015},{icon_id:"24881284",name:"videocam-filled",font_class:"videocam-filled",unicode:"e689",unicode_decimal:59017},{icon_id:"24881285",name:"spinner-cycle",font_class:"spinner-cycle",unicode:"e68a",unicode_decimal:59018},{icon_id:"24881286",name:"weibo",font_class:"weibo",unicode:"e68b",unicode_decimal:59019},{icon_id:"24881288",name:"videocam",font_class:"videocam",unicode:"e68c",unicode_decimal:59020},{icon_id:"24881289",name:"download",font_class:"download",unicode:"e68d",unicode_decimal:59021},{icon_id:"24879601",name:"help",font_class:"help",unicode:"e679",unicode_decimal:59001},{icon_id:"24879602",name:"navigate-filled",font_class:"navigate-filled",unicode:"e67a",unicode_decimal:59002},{icon_id:"24879603",name:"plusempty",font_class:"plusempty",unicode:"e67b",unicode_decimal:59003},{icon_id:"24879604",name:"smallcircle",font_class:"smallcircle",unicode:"e67c",unicode_decimal:59004},{icon_id:"24879605",name:"minus-filled",font_class:"minus-filled",unicode:"e67d",unicode_decimal:59005},{icon_id:"24879606",name:"micoff",font_class:"micoff",unicode:"e67e",unicode_decimal:59006},{icon_id:"24879588",name:"closeempty",font_class:"closeempty",unicode:"e66c",unicode_decimal:58988},{icon_id:"24879589",name:"clear",font_class:"clear",unicode:"e66d",unicode_decimal:58989},{icon_id:"24879590",name:"navigate",font_class:"navigate",unicode:"e66e",unicode_decimal:58990},{icon_id:"24879591",name:"minus",font_class:"minus",unicode:"e66f",unicode_decimal:58991},{icon_id:"24879592",name:"image",font_class:"image",unicode:"e670",unicode_decimal:58992},{icon_id:"24879593",name:"mic",font_class:"mic",unicode:"e671",unicode_decimal:58993},{icon_id:"24879594",name:"paperplane",font_class:"paperplane",unicode:"e672",unicode_decimal:58994},{icon_id:"24879595",name:"close",font_class:"close",unicode:"e673",unicode_decimal:58995},{icon_id:"24879596",name:"help-filled",font_class:"help-filled",unicode:"e674",unicode_decimal:58996},{icon_id:"24879597",name:"plus-filled",font_class:"paperplane-filled",unicode:"e675",unicode_decimal:58997},{icon_id:"24879598",name:"plus",font_class:"plus",unicode:"e676",unicode_decimal:58998},{icon_id:"24879599",name:"mic-filled",font_class:"mic-filled",unicode:"e677",unicode_decimal:58999},{icon_id:"24879600",name:"image-filled",font_class:"image-filled",unicode:"e678",unicode_decimal:59e3},{icon_id:"24855900",name:"locked-filled",font_class:"locked-filled",unicode:"e668",unicode_decimal:58984},{icon_id:"24855901",name:"info",font_class:"info",unicode:"e669",unicode_decimal:58985},{icon_id:"24855903",name:"locked",font_class:"locked",unicode:"e66b",unicode_decimal:58987},{icon_id:"24855884",name:"camera-filled",font_class:"camera-filled",unicode:"e658",unicode_decimal:58968},{icon_id:"24855885",name:"chat-filled",font_class:"chat-filled",unicode:"e659",unicode_decimal:58969},{icon_id:"24855886",name:"camera",font_class:"camera",unicode:"e65a",unicode_decimal:58970},{icon_id:"24855887",name:"circle",font_class:"circle",unicode:"e65b",unicode_decimal:58971},{icon_id:"24855888",name:"checkmarkempty",font_class:"checkmarkempty",unicode:"e65c",unicode_decimal:58972},{icon_id:"24855889",name:"chat",font_class:"chat",unicode:"e65d",unicode_decimal:58973},{icon_id:"24855890",name:"circle-filled",font_class:"circle-filled",unicode:"e65e",unicode_decimal:58974},{icon_id:"24855891",name:"flag",font_class:"flag",unicode:"e65f",unicode_decimal:58975},{icon_id:"24855892",name:"flag-filled",font_class:"flag-filled",unicode:"e660",unicode_decimal:58976},{icon_id:"24855893",name:"gear-filled",font_class:"gear-filled",unicode:"e661",unicode_decimal:58977},{icon_id:"24855894",name:"home",font_class:"home",unicode:"e662",unicode_decimal:58978},{icon_id:"24855895",name:"home-filled",font_class:"home-filled",unicode:"e663",unicode_decimal:58979},{icon_id:"24855896",name:"gear",font_class:"gear",unicode:"e664",unicode_decimal:58980},{icon_id:"24855897",name:"smallcircle-filled",font_class:"smallcircle-filled",unicode:"e665",unicode_decimal:58981},{icon_id:"24855898",name:"map-filled",font_class:"map-filled",unicode:"e666",unicode_decimal:58982},{icon_id:"24855899",name:"map",font_class:"map",unicode:"e667",unicode_decimal:58983},{icon_id:"24855825",name:"refresh-filled",font_class:"refresh-filled",unicode:"e656",unicode_decimal:58966},{icon_id:"24855826",name:"refresh",font_class:"refresh",unicode:"e657",unicode_decimal:58967},{icon_id:"24855808",name:"cloud-upload",font_class:"cloud-upload",unicode:"e645",unicode_decimal:58949},{icon_id:"24855809",name:"cloud-download-filled",font_class:"cloud-download-filled",unicode:"e646",unicode_decimal:58950},{icon_id:"24855810",name:"cloud-download",font_class:"cloud-download",unicode:"e647",unicode_decimal:58951},{icon_id:"24855811",name:"cloud-upload-filled",font_class:"cloud-upload-filled",unicode:"e648",unicode_decimal:58952},{icon_id:"24855813",name:"redo",font_class:"redo",unicode:"e64a",unicode_decimal:58954},{icon_id:"24855814",name:"images-filled",font_class:"images-filled",unicode:"e64b",unicode_decimal:58955},{icon_id:"24855815",name:"undo-filled",font_class:"undo-filled",unicode:"e64c",unicode_decimal:58956},{icon_id:"24855816",name:"more",font_class:"more",unicode:"e64d",unicode_decimal:58957},{icon_id:"24855817",name:"more-filled",font_class:"more-filled",unicode:"e64e",unicode_decimal:58958},{icon_id:"24855818",name:"undo",font_class:"undo",unicode:"e64f",unicode_decimal:58959},{icon_id:"24855819",name:"images",font_class:"images",unicode:"e650",unicode_decimal:58960},{icon_id:"24855821",name:"paperclip",font_class:"paperclip",unicode:"e652",unicode_decimal:58962},{icon_id:"24855822",name:"settings",font_class:"settings",unicode:"e653",unicode_decimal:58963},{icon_id:"24855823",name:"search",font_class:"search",unicode:"e654",unicode_decimal:58964},{icon_id:"24855824",name:"redo-filled",font_class:"redo-filled",unicode:"e655",unicode_decimal:58965},{icon_id:"24841702",name:"list",font_class:"list",unicode:"e644",unicode_decimal:58948},{icon_id:"24841489",name:"mail-open-filled",font_class:"mail-open-filled",unicode:"e63a",unicode_decimal:58938},{icon_id:"24841491",name:"hand-thumbsdown-filled",font_class:"hand-down-filled",unicode:"e63c",unicode_decimal:58940},{icon_id:"24841492",name:"hand-thumbsdown",font_class:"hand-down",unicode:"e63d",unicode_decimal:58941},{icon_id:"24841493",name:"hand-thumbsup-filled",font_class:"hand-up-filled",unicode:"e63e",unicode_decimal:58942},{icon_id:"24841494",name:"hand-thumbsup",font_class:"hand-up",unicode:"e63f",unicode_decimal:58943},{icon_id:"24841496",name:"heart-filled",font_class:"heart-filled",unicode:"e641",unicode_decimal:58945},{icon_id:"24841498",name:"mail-open",font_class:"mail-open",unicode:"e643",unicode_decimal:58947},{icon_id:"24841488",name:"heart",font_class:"heart",unicode:"e639",unicode_decimal:58937},{icon_id:"24839963",name:"loop",font_class:"loop",unicode:"e633",unicode_decimal:58931},{icon_id:"24839866",name:"pulldown",font_class:"pulldown",unicode:"e632",unicode_decimal:58930},{icon_id:"24813798",name:"scan",font_class:"scan",unicode:"e62a",unicode_decimal:58922},{icon_id:"24813786",name:"bars",font_class:"bars",unicode:"e627",unicode_decimal:58919},{icon_id:"24813788",name:"cart-filled",font_class:"cart-filled",unicode:"e629",unicode_decimal:58921},{icon_id:"24813790",name:"checkbox",font_class:"checkbox",unicode:"e62b",unicode_decimal:58923},{icon_id:"24813791",name:"checkbox-filled",font_class:"checkbox-filled",unicode:"e62c",unicode_decimal:58924},{icon_id:"24813794",name:"shop",font_class:"shop",unicode:"e62f",unicode_decimal:58927},{icon_id:"24813795",name:"headphones",font_class:"headphones",unicode:"e630",unicode_decimal:58928},{icon_id:"24813796",name:"cart",font_class:"cart",unicode:"e631",unicode_decimal:58929}]};const D=F({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""}},data:()=>({icons:L.glyphs}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?unescape(`%u${e.unicode}`):""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e}},methods:{_onClick(){this.$emit("click")}}},[["render",function(o,a,r,c,s,l){const u=i;return e(),d(u,{style:n({color:r.color,"font-size":l.iconSize}),class:t(["uni-icons",["uniui-"+r.type,r.customPrefix,r.customPrefix?r.type:""]]),onClick:l._onClick},null,8,["style","class","onClick"])}],["__scopeId","data-v-7c2f6cb0"]]);class j{constructor(e,d){this.options=e,this.animation=o(e),this.currentStepAnimates={},this.next=0,this.$=d}_nvuePushAnimates(e,d){let n=this.currentStepAnimates[this.next],t={};if(t=n||{styles:{},config:{}},G.includes(e)){t.styles.transform||(t.styles.transform="");let n="";"rotate"===e&&(n="deg"),t.styles.transform+=`${e}(${d+n}) `}else t.styles[e]=`${d}`;this.currentStepAnimates[this.next]=t}_animateRun(e={},d={}){let n=this.$.$refs.ani.ref;if(n)return new Promise(((t,i)=>{nvueAnimation.transition(n,{styles:e,...d},(e=>{t()}))}))}_nvueNextAnimate(e,d=0,n){let t=e[d];if(t){let{styles:i,config:o}=t;this._animateRun(i,o).then((()=>{d+=1,this._nvueNextAnimate(e,d,n)}))}else this.currentStepAnimates={},"function"==typeof n&&n(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof e&&e()}),this.$.durationTime)}}const G=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function V(e,d){if(d)return clearTimeout(d.timer),new j(e,d)}G.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{j.prototype[e]=function(...d){return this.animation[e](...d),this}}));const U=F({name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let e={...this.styles,"transition-duration":this.duration/1e3+"s"},d="";for(let n in e){d+=this.toLine(n)+":"+e[n]+";"}return d},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(e={}){e.duration&&(this.durationTime=e.duration),this.animation=V(Object.assign(this.config,e),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(e,d={}){if(this.animation){for(let d in e)try{"object"==typeof e[d]?this.animation[d](...e[d]):this.animation[d](e[d])}catch(n){console.error(`方法 ${d} 不存在`)}return this.animation.step(d),this}},run(e){this.animation&&this.animation.run(e)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:e,transform:d}=this.styleInit(!1);void 0!==e&&(this.opacity=e),this.transform=d,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=V(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(e){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:e,transform:d}=this.styleInit(!1);this.opacity=e||1,this.transform=d,this.$emit("change",{detail:this.isShow})}))},styleInit(e){let d={transform:""},n=(e,n)=>{"fade"===n?d.opacity=this.animationType(e)[n]:d.transform+=this.animationType(e)[n]+" "};return"string"==typeof this.modeClass?n(e,this.modeClass):this.modeClass.forEach((d=>{n(e,d)})),d},tranfromInit(e){let d=(e,d)=>{let n=null;"fade"===d?n=e?0:1:(n=e?"-100%":"0","zoom-in"===d&&(n=e?.8:1),"zoom-out"===d&&(n=e?1.2:1),"slide-right"===d&&(n=e?"100%":"0"),"slide-bottom"===d&&(n=e?"100%":"0")),this.animation[this.animationMode()[d]](n)};return"string"==typeof this.modeClass?d(e,this.modeClass):this.modeClass.forEach((n=>{d(e,n)})),this.animation},animationType:e=>({fade:e?1:0,"slide-top":`translateY(${e?"0":"-100%"})`,"slide-right":`translateX(${e?"0":"100%"})`,"slide-bottom":`translateY(${e?"0":"100%"})`,"slide-left":`translateX(${e?"0":"-100%"})`,"zoom-in":`scaleX(${e?1:.8}) scaleY(${e?1:.8})`,"zoom-out":`scaleX(${e?1:1.2}) scaleY(${e?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:e=>e.replace(/([A-Z])/g,"-$1").toLowerCase()}},[["render",function(i,o,l,u,$,h){const m=s;return $.isShow?(e(),d(m,{key:0,ref:"ani",animation:$.animationData,class:t(l.customClass),style:n(h.transformStyles),onClick:h.onClick},{default:a((()=>[r(i.$slots,"default")])),_:3},8,["animation","class","style","onClick"])):c("",!0)}]]),K={name:"SuPopup",components:{keypress:{name:"Keypress",props:{disable:{type:Boolean,default:!1}},mounted(){const e={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]};document.addEventListener("keyup",(d=>{if(this.disable)return;const n=Object.keys(e).find((n=>{const t=d.key,i=e[n];return i===t||Array.isArray(i)&&i.includes(t)}));n&&setTimeout((()=>{this.$emit(n,{})}),0)}))},render:()=>{}}},emits:["change","maskClick","close"],props:{show:{type:Boolean,default:!1},space:{type:Number,default:0},round:{type:[String,Number],default:0},showClose:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},type:{type:String,default:"bottom"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"#ffffff"},backgroundImage:{type:String,default:""},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"},zIndex:{type:[String,Number],default:10075}},watch:{show:{handler:function(e,d){(void 0!==d||e)&&(e?this.open():this.close())},immediate:!0},type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup(e){document.getElementsByTagName("body")[0].style.overflow=e?"hidden":"visible"}},data(){return{sheep:l,duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:this.isDesktop?"fixforpc-top":"top"}},computed:{isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor},borderRadius(){if(this.round){if("bottom"===this.type)return{"border-top-left-radius":parseFloat(this.round)+"px","border-top-right-radius":parseFloat(this.round)+"px"};if("center"===this.type)return{"border-top-left-radius":parseFloat(this.round)+"px","border-top-right-radius":parseFloat(this.round)+"px","border-bottom-left-radius":parseFloat(this.round)+"px","border-bottom-right-radius":parseFloat(this.round)+"px"};if("top"===this.type)return{"border-bottom-left-radius":parseFloat(this.round)+"px","border-bottom-right-radius":parseFloat(this.round)+"px"}}}},mounted(){(()=>{const{windowWidth:e,windowHeight:d,windowTop:n,safeArea:t,screenHeight:i,safeAreaInsets:o}=l.$platform.device;this.popupWidth=e,this.popupHeight=d+(n||0),t&&this.safeArea?this.safeAreaInsets=o.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(){document.getElementsByTagName("body")[0].style.overflow="visible"},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(e){e.stopPropagation(),this.clearPropagation=!0},open(e){this.showPopup&&(clearTimeout(this.timer),this.showPopup=!1);e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):console.error("缺少类型:",e)},close(e){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),this.$emit("close"),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(e){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,top:this.space+"px",backgroundColor:this.bg},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+this.space+"px",backgroundColor:this.bg},e||(this.showPopup=!0,this.showTrans=!0)},center(e){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center"},e||(this.showPopup=!0,this.showTrans=!0)},left(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}},W=()=>{u((e=>({"5127060f":e.backgroundImage})))},J=K.setup;K.setup=J?(e,d)=>(W(),J(e,d)):W;const H=F(K,[["render",function(i,o,l,u,p,g){const y=$(h("uni-transition"),U),b=$(h("uni-icons"),D),v=s,C=m("keypress");return p.showPopup?(e(),d(v,{key:0,class:t(["uni-popup",[p.popupstyle,g.isDesktop?"fixforpc-z-index":""]]),style:n([{zIndex:l.zIndex}]),onTouchmove:_(g.clear,["stop","prevent"])},{default:a((()=>[f(v,{onTouchstart:g.touchstart},{default:a((()=>[p.maskShow?(e(),d(y,{key:"1",name:"mask","mode-class":"fade",styles:p.maskClass,duration:p.duration,show:p.showTrans,onClick:g.onTap},null,8,["styles","duration","show","onClick"])):c("",!0),f(y,{key:"2","mode-class":p.ani,name:"content",styles:{...p.transClass,...g.borderRadius},duration:p.duration,show:p.showTrans,onClick:g.onTap},{default:a((()=>[p.showPopup?(e(),d(v,{key:0,class:t(["uni-popup__wrapper",[p.popupstyle]]),style:n([{backgroundColor:g.bg},g.borderRadius]),onClick:g.clear},{default:a((()=>[l.showClose?(e(),d(b,{key:0,class:"close-icon",color:"#F6F6F6",type:"closeempty",size:"32",onClick:g.close},null,8,["onClick"])):c("",!0),r(i.$slots,"default",{},void 0,!0)])),_:3},8,["style","class","onClick"])):c("",!0)])),_:3},8,["mode-class","styles","duration","show","onClick"])])),_:3},8,["onTouchstart"]),p.maskShow?(e(),d(C,{key:0,onEsc:g.onTap},null,8,["onEsc"])):c("",!0)])),_:3},8,["class","style","onTouchmove"])):c("",!0)}],["__scopeId","data-v-82dd9cbf"]]);const Y=F({name:"uni-easyinput",emits:["click","iconClick","update:modelValue","input","focus","blur","confirm"],model:{prop:"modelValue",event:"update:modelValue"},props:{name:String,value:[Number,String],modelValue:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:String,placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:15},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!0},passwordIcon:{type:Boolean,default:!0},styles:{type:Object,default:()=>({color:"#333",disableColor:"#F7F6F6",borderColor:"#e5e5e5"})},errorMessage:{type:[String,Boolean],default:""},paddingLeft:{type:[Number,String],default:0}},data:()=>({focused:!1,errMsg:"",val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1}),computed:{msg(){return this.errorMessage||this.errMsg},inputMaxlength(){return Number(this.maxlength)}},watch:{value(e){this.errMsg&&(this.errMsg=""),this.val=e,this.form&&this.formItem&&!this.is_reset&&(this.is_reset=!1,this.formItem.setValue(e))},modelValue(e){this.errMsg&&(this.errMsg=""),this.val=e,this.form&&this.formItem&&!this.is_reset&&(this.is_reset=!1,this.formItem.setValue(e))},focus(e){this.$nextTick((()=>{this.focused=this.focus}))}},created(){this.value||0===this.value||(this.val=this.modelValue),this.modelValue||0===this.modelValue||(this.val=this.value),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.is_reset||(this.is_reset=!1,this.formItem.setValue(this.val)),this.rename=this.formItem.name,this.form.inputChildrens.push(this))},mounted(){this.$nextTick((()=>{this.focused=this.focus}))},methods:{init(){},onClickIcon(e){this.$emit("iconClick",e)},getForm(e="uniForms"){let d=this.$parent,n=d.$options.name;for(;n!==e;){if(d=d.$parent,!d)return!1;n=d.$options.name}return d},onEyes(){this.showPassword=!this.showPassword},onInput(e){let d=e.detail.value;this.trim&&("boolean"==typeof this.trim&&this.trim&&(d=this.trimStr(d)),"string"==typeof this.trim&&(d=this.trimStr(d,this.trim))),this.errMsg&&(this.errMsg=""),this.val=d,this.$emit("input",d),this.$emit("update:modelValue",d)},onFocus(e){this.$emit("focus",e)},onBlur(e){e.detail.value,this.$emit("blur",e)},onConfirm(e){this.$emit("confirm",e.detail.value)},onClear(e){this.val="",this.$emit("input",""),this.$emit("update:modelValue","")},fieldClick(){this.$emit("click")},trimStr:(e,d="both")=>"both"===d?e.trim():"left"===d?e.trimLeft():"right"===d?e.trimRight():"start"===d?e.trimStart():"end"===d?e.trimEnd():"all"===d?e.replace(/\s+/g,""):e}},[["render",function(i,o,l,u,m,_){const v=$(h("uni-icons"),D),C=y,w=b,S=s;return e(),d(S,{class:t(["uni-easyinput",{"uni-easyinput-error":_.msg}]),style:n({color:l.inputBorder&&_.msg?"#e43d33":l.styles.color})},{default:a((()=>[f(S,{class:t(["uni-easyinput__content",{"is-input-border":l.inputBorder,"is-input-error-border":l.inputBorder&&_.msg,"is-textarea":"textarea"===l.type,"is-disabled":l.disabled}]),style:n({"border-color":l.inputBorder&&_.msg?"#dd524d":l.styles.borderColor,"background-color":l.disabled?l.styles.disableColor:""})},{default:a((()=>[l.prefixIcon?(e(),d(v,{key:0,class:"content-clear-icon",type:l.prefixIcon,color:"#c0c4cc",onClick:o[0]||(o[0]=e=>_.onClickIcon("prefix"))},null,8,["type"])):c("",!0),"textarea"===l.type?(e(),d(C,{key:1,class:t(["uni-easyinput__content-textarea",{"input-padding":l.inputBorder}]),name:l.name,value:m.val,placeholder:l.placeholder,placeholderStyle:l.placeholderStyle,disabled:l.disabled,"placeholder-class":"uni-easyinput__placeholder-class",maxlength:_.inputMaxlength,focus:m.focused,autoHeight:l.autoHeight,onInput:_.onInput,onBlur:_.onBlur,onFocus:_.onFocus,onConfirm:_.onConfirm},null,8,["class","name","value","placeholder","placeholderStyle","disabled","maxlength","focus","autoHeight","onInput","onBlur","onFocus","onConfirm"])):(e(),d(w,{key:2,type:"password"===l.type?"text":l.type,class:"uni-easyinput__content-input",style:n({"padding-right":"password"===l.type||l.clearable||l.prefixIcon?"":"10px","padding-left":l.paddingLeft+"px"}),name:l.name,value:m.val,password:!m.showPassword&&"password"===l.type,placeholder:l.placeholder,placeholderStyle:l.placeholderStyle,"placeholder-class":"uni-easyinput__placeholder-class",disabled:l.disabled,maxlength:_.inputMaxlength,focus:m.focused,confirmType:l.confirmType,onFocus:_.onFocus,onBlur:_.onBlur,onInput:_.onInput,onChange:_.onInput,onConfirm:_.onConfirm,"cursor-spacing":30,"always-embed":""},null,8,["type","style","name","value","password","placeholder","placeholderStyle","disabled","maxlength","focus","confirmType","onFocus","onBlur","onInput","onChange","onConfirm"])),"password"===l.type&&l.passwordIcon?(e(),p(g,{key:3},[m.val?(e(),d(v,{key:0,class:t(["content-clear-icon",{"is-textarea-icon":"textarea"===l.type}]),type:m.showPassword?"eye-slash-filled":"eye-filled",size:18,color:"#c0c4cc",onClick:_.onEyes},null,8,["class","type","onClick"])):c("",!0)],64)):l.suffixIcon?(e(),p(g,{key:4},[l.suffixIcon?(e(),d(v,{key:0,class:"content-clear-icon",type:l.suffixIcon,color:"#c0c4cc",onClick:o[1]||(o[1]=e=>_.onClickIcon("suffix"))},null,8,["type"])):c("",!0)],64)):(e(),p(g,{key:5},[l.clearable&&m.val&&!l.disabled?(e(),d(v,{key:0,class:t(["content-clear-icon",{"is-textarea-icon":"textarea"===l.type}]),type:"clear",size:l.clearSize,color:"#c0c4cc",onClick:_.onClear},null,8,["class","size","onClick"])):c("",!0)],64)),r(i.$slots,"right",{},void 0,!0)])),_:3},8,["class","style"])])),_:3},8,["class","style"])}],["__scopeId","data-v-cc151d44"]]);const Z=F({name:"uniFormsItem",props:{custom:{type:Boolean,default:!1},showMessage:{type:Boolean,default:!0},name:String,required:Boolean,validateTrigger:{type:String,default:""},leftIcon:String,iconColor:{type:String,default:"#606266"},label:String,labelWidth:{type:[Number,String],default:""},labelAlign:{type:String,default:""},labelPosition:{type:String,default:""},errorMessage:{type:[String,Boolean],default:""},rules:{type:Array,default:()=>[]}},data:()=>({errorTop:!1,errorBottom:!1,labelMarginBottom:"",errorWidth:"",errMsg:"",val:"",labelPos:"",labelWid:"",labelAli:"",showMsg:"undertext",border:!1,isFirstBorder:!1,isArray:!1,arrayField:""}),computed:{msg(){return this.errorMessage||this.errMsg},fieldStyle(){let e={};return"top"==this.labelPos&&(e.padding="0 0",this.labelMarginBottom="6px"),"left"==this.labelPos&&!1!==this.msg&&""!=this.msg?(e.paddingBottom="0px",this.errorBottom=!0,this.errorTop=!1):"top"==this.labelPos&&!1!==this.msg&&""!=this.msg?(this.errorBottom=!1,this.errorTop=!0):(this.errorTop=!1,this.errorBottom=!1),e},justifyContent(){return"left"===this.labelAli?"flex-start":"center"===this.labelAli?"center":"right"===this.labelAli?"flex-end":void 0},labelLeft(){return("left"===this.labelPos?parseInt(this.labelWid):0)+"rpx"}},watch:{validateTrigger(e){this.formTrigger=e}},created(){this.form=this.getForm(),this.group=this.getForm("uniGroup"),this.formRules=[],this.formTrigger=this.validateTrigger,this.name&&-1!==this.name.indexOf("[")&&-1!==this.name.indexOf("]")&&(this.isArray=!0,this.arrayField=this.name,this.form.formData[this.name]=this.form._getValue(this.name,""))},mounted(){this.form&&this.form.childrens.push(this),this.init()},unmounted(){this.__isUnmounted=!0,this.unInit()},methods:{init(){if(this.form){let{formRules:e,validator:d,formData:n,value:t,labelPosition:i,labelWidth:o,labelAlign:a,errShowType:r}=this.form;this.labelPos=this.labelPosition?this.labelPosition:i,this.label?this.labelWid=this.labelWidth?this.labelWidth:o||140:this.labelWid=this.labelWidth?this.labelWidth:o||"auto",this.labelWid&&"auto"!==this.labelWid&&(this.labelWid+="rpx"),this.labelAli=this.labelAlign?this.labelAlign:a,this.form.isFirstBorder||(this.form.isFirstBorder=!0,this.isFirstBorder=!0),this.group&&(this.group.isFirstBorder||(this.group.isFirstBorder=!0,this.isFirstBorder=!0)),this.border=this.form.border,this.showMsg=r;let c=this.isArray?this.arrayField:this.name;if(!c)return;e&&this.rules.length>0&&(e[c]||(e[c]={rules:this.rules}),d.updateSchema(e)),this.formRules=e[c]||{},this.validator=d}else this.labelPos=this.labelPosition||"left",this.labelWid=this.labelWidth||130,this.labelAli=this.labelAlign||"left"},unInit(){this.form&&this.form.childrens.forEach(((e,d)=>{e===this&&(this.form.childrens.splice(d,1),delete this.form.formData[e.name])}))},getForm(e="uniForms"){let d=this.$parent,n=d.$options.name;for(;n!==e;){if(d=d.$parent,!d)return!1;n=d.$options.name}return d},clearValidate(){this.errMsg=""},setValue(e){let d=this.isArray?this.arrayField:this.name;if(d){if(this.errMsg&&(this.errMsg=""),this.form.formData[d]=this.form._getValue(d,e),!this.formRules||(this.formRules,"{}"===JSON.stringify(this.formRules)))return;this.triggerCheck(this.form._getValue(this.name,e))}},async triggerCheck(e,d){if(this.errMsg="",!this.validator||0===Object.keys(this.formRules).length)return;const n=this.isRequired(this.formRules.rules||[]);let t=this.isTrigger(this.formRules.validateTrigger,this.validateTrigger,this.form.validateTrigger),i=null;if(t||d){let d=this.isArray?this.arrayField:this.name;i=await this.validator.validateUpdate({[d]:e},this.form.formData)}n||void 0!==e&&""!==e||(i=null);const o=this.form.inputChildrens.find((e=>e.rename===this.name));return(t||d)&&i&&i.errorMessage?(o&&(o.errMsg=i.errorMessage),"toast"===this.form.errShowType&&v({title:i.errorMessage||"校验错误",icon:"none"}),"modal"===this.form.errShowType&&C({title:"提示",content:i.errorMessage||"校验错误"})):o&&(o.errMsg=""),this.errMsg=i?i.errorMessage:"",this.form.validateCheck(i||null),i||null},isTrigger:(e,d,n)=>!("submit"===e||!e)||void 0===e&&("bind"===d||!d&&"bind"===n),isRequired(e){let d=!1;for(let n=0;n[f(b,{class:t(["uni-forms-item",{"uni-forms-item--border":_.border,"is-first-border":_.border&&_.isFirstBorder,"uni-forms-item-error":p.msg}])},{default:a((()=>[f(b,{class:"uni-forms-item__box"},{default:a((()=>[f(b,{class:t(["uni-forms-item__inner",["is-direction-"+_.labelPos]])},{default:a((()=>[f(b,{class:"uni-forms-item__label",style:n({width:_.labelWid,justifyContent:p.justifyContent})},{default:a((()=>[r(o.$slots,"label",{},(()=>[u.required?(e(),d(g,{key:0,class:"is-required"},{default:a((()=>[w("*")])),_:1})):c("",!0),u.leftIcon?(e(),d(y,{key:1,class:"label-icon",size:"16",type:u.leftIcon,color:u.iconColor},null,8,["type","color"])):c("",!0),f(g,{class:"label-text"},{default:a((()=>[w(S(u.label),1)])),_:1}),u.label?(e(),d(b,{key:2,class:"label-seat"})):c("",!0)]),!0)])),_:3},8,["style"]),f(b,{class:t(["uni-forms-item__content",{"is-input-error-border":p.msg}])},{default:a((()=>[r(o.$slots,"default",{},void 0,!0)])),_:3},8,["class"])])),_:3},8,["class"]),p.msg?(e(),d(b,{key:0,class:t(["uni-error-message",{"uni-error-msg--boeder":_.border}]),style:n({paddingLeft:p.labelLeft})},{default:a((()=>[f(g,{class:"uni-error-message-text"},{default:a((()=>[w(S("undertext"===_.showMsg?p.msg:""),1)])),_:1})])),_:1},8,["class","style"])):c("",!0)])),_:3})])),_:3},8,["class"])])),_:3})}],["__scopeId","data-v-52b226c3"]]);var Q={email:/^\S+?@\S+?\.\S+?$/,idcard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i")};const z={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function X(e,d=""){["label"].forEach((d=>{void 0===e[d]&&(e[d]="")}));let n=d;for(let t in e){let d=new RegExp("{"+t+"}");n=n.replace(d,e[t])}return n}const q={integer:e=>q.number(e)&&parseInt(e,10)===e,string:e=>"string"==typeof e,number:e=>!isNaN(e)&&"number"==typeof e,boolean:function(e){return"boolean"==typeof e},float:function(e){return q.number(e)&&!q.integer(e)},array:e=>Array.isArray(e),object:e=>"object"==typeof e&&!q.array(e),date:e=>e instanceof Date,timestamp(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:e=>"string"==typeof e.url,email:e=>"string"==typeof e&&!!e.match(Q.email)&&e.length<255,url:e=>"string"==typeof e&&!!e.match(Q.url),pattern(e,d){try{return new RegExp(e).test(d)}catch(n){return!1}},method:e=>"function"==typeof e,idcard:e=>"string"==typeof e&&!!e.match(Q.idcard),"url-https"(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":e=>e.startsWith("://"),"url-web":e=>!1};const ee={required:(e,d,n)=>e.required&&function(e,d){return null==e||"string"==typeof e&&!e||!(!Array.isArray(e)||e.length)||"object"===d&&!Object.keys(e).length}(d,e.format||typeof d)?X(e,e.errorMessage||n.required):null,range(e,d,n){const{range:t,errorMessage:i}=e;let o=new Array(t.length);for(let r=0;r-1&&(a=!0),a?null:X(e,i||n.enum)},rangeNumber(e,d,n){if(!q.number(d))return X(e,e.errorMessage||n.pattern.mismatch);let{minimum:t,maximum:i,exclusiveMinimum:o,exclusiveMaximum:a}=e,r=o?d<=t:d=i:d>i;return void 0!==t&&r?X(e,e.errorMessage||n.number[o?"exclusiveMinimum":"minimum"]):void 0!==i&&c?X(e,e.errorMessage||n.number[a?"exclusiveMaximum":"maximum"]):void 0!==t&&void 0!==i&&(r||c)?X(e,e.errorMessage||n.number.range):null},rangeLength(e,d,n){if(!q.string(d)&&!q.array(d))return X(e,e.errorMessage||n.pattern.mismatch);let t=e.minLength,i=e.maxLength,o=d.length;return void 0!==t&&oi?X(e,e.errorMessage||n.length.maxLength):void 0!==t&&void 0!==i&&(oi)?X(e,e.errorMessage||n.length.range):null},pattern:(e,d,n)=>q.pattern(e.pattern,d)?null:X(e,e.errorMessage||n.pattern.mismatch),format(e,d,n){var t=Object.keys(q),i=z[e.format]?z[e.format]:e.format||e.arrayType;return t.indexOf(i)>-1&&!q[i](d)?X(e,e.errorMessage||n.typeError):null},arrayTypeFormat(e,d,n){if(!Array.isArray(d))return X(e,e.errorMessage||n.typeError);for(let t=0;te.required))<0){if(null==n)return o;if("string"==typeof n&&!n.length)return o}var r=this._message;if(void 0===a)return r.default;for(var c=0;c{a=e}));(a||"string"==typeof r&&r||!1===r)&&(o=this._getMessage(e,a||r,i))}catch(a){o=this._getMessage(e,a.message,i)}return o}_getMessage(e,d,n){return X(e,d||e.errorMessage||this._message[n]||d.default)}_getValidateType(e){var d="";return e.required?d="required":e.format?d="format":e.arrayType?d="arrayTypeFormat":e.range?d="range":void 0!==e.maximum||void 0!==e.minimum?d="rangeNumber":void 0!==e.maxLength||void 0!==e.minLength?d="rangeLength":e.pattern?d="pattern":e.validateFunction&&(d="validateFunction"),d}}{constructor(e,d){super(de.message),this._schema=e,this._options=d||null}updateSchema(e){this._schema=e}async validate(e,d){let n=this._checkFieldInSchema(e);return n||(n=await this.invokeValidate(e,!1,d)),n.length?n[0]:null}async validateAll(e,d){let n=this._checkFieldInSchema(e);return n||(n=await this.invokeValidate(e,!0,d)),n}async validateUpdate(e,d){let n=this._checkFieldInSchema(e);return n||(n=await this.invokeValidateUpdate(e,!1,d)),n.length?n[0]:null}async invokeValidate(e,d,n){let t=[],i=this._schema;for(let o in i){let a=i[o],r=await this.validateRule(o,a,e[o],e,n);if(null!=r&&(t.push({key:o,errorMessage:r}),!d))break}return t}async invokeValidateUpdate(e,d,n){let t=[];for(let i in e){let o=await this.validateRule(i,this._schema[i],e[i],e,n);if(null!=o&&(t.push({key:i,errorMessage:o}),!d))break}return t}_checkFieldInSchema(e){var d=Object.keys(e),n=Object.keys(this._schema);if(new Set(d.concat(n)).size===n.length)return"";var t=d.filter((e=>n.indexOf(e)<0));return[{key:"invalid",errorMessage:X({field:JSON.stringify(t)},de.message.TAG+de.message.defaultInvalid)}]}}de.message=new function(){return{TAG:"",default:"验证错误",defaultInvalid:"提交的字段{field}在数据库中并不存在",validateFunction:"验证无效",required:"{label}必填",enum:"{label}超出范围",timestamp:"{label}格式无效",whitespace:"{label}不能为空",typeError:"{label}类型无效",date:{format:"{label}日期{value}格式无效",parse:"{label}日期无法解析,{value}无效",invalid:"{label}日期{value}无效"},length:{minLength:"{label}长度不能少于{minLength}",maxLength:"{label}长度不能超过{maxLength}",range:"{label}必须介于{minLength}和{maxLength}之间"},number:{minimum:"{label}不能小于{minimum}",maximum:"{label}不能大于{maximum}",exclusiveMinimum:"{label}不能小于等于{minimum}",exclusiveMaximum:"{label}不能大于等于{maximum}",range:"{label}必须介于{minimum}and{maximum}之间"},pattern:{mismatch:"{label}格式不匹配"}}};const ne=F({name:"uniForms",components:{},emits:["input","reset","validate","submit"],props:{value:{type:Object,default:()=>({})},modelValue:{type:Object,default:()=>({})},rules:{type:Object,default:()=>({})},validateTrigger:{type:String,default:""},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:"left"},errShowType:{type:String,default:"undertext"},border:{type:Boolean,default:!1}},data:()=>({formData:{}}),computed:{dataValue(){return"{}"===JSON.stringify(this.modelValue)?this.value:this.modelValue}},watch:{rules(e){this.init(e)},labelPosition(){this.childrens.forEach((e=>{e.init()}))}},created(){k().$vm.$.appContext.config.globalProperties.binddata||(k().$vm.$.appContext.config.globalProperties.binddata=function(e,d,n){if(n)this.$refs[n].setValue(e,d);else{let n;for(let e in this.$refs){const d=this.$refs[e];if(d&&d.$options&&"uniForms"===d.$options.name){n=d;break}}if(!n)return console.error("当前 uni-froms 组件缺少 ref 属性");n.setValue(e,d)}}),this.unwatchs=[],this.childrens=[],this.inputChildrens=[],this.checkboxChildrens=[],this.formRules=[],this.init(this.rules)},methods:{init(e){0!==Object.keys(e).length?(this.formRules=e,this.validator=new de(e),this.registerWatch()):this.formData=this.dataValue},registerWatch(){this.unwatchs.forEach((e=>e())),this.childrens.forEach((e=>{e.init()})),Object.keys(this.dataValue).forEach((e=>{let d=this.$watch("dataValue."+e,(d=>{if(d)if("[object Object]"===d.toString())for(let n in d){let t=`${e}[${n}]`;this.formData[t]=this._getValue(t,d[n])}else this.formData[e]=this._getValue(e,d)}),{deep:!0,immediate:!0});this.unwatchs.push(d)}))},setRules(e){this.init(e)},setValue(e,d,n){let t=this.childrens.find((d=>d.name===e));return t?(d=this._getValue(t.name,d),this.formData[e]=d,t.val=d,t.triggerCheck(d,n)):null},resetForm(e){this.childrens.forEach((e=>{e.errMsg="";const d=this.inputChildrens.find((d=>d.rename===e.name));d&&(d.errMsg="",d.is_reset=!0,d.$emit("input",d.multiple?[]:""),d.$emit("update:modelValue",d.multiple?[]:""))})),this.childrens.forEach((e=>{e.name&&(this.formData[e.name]=this._getValue(e.name,""))})),this.$emit("reset",e)},validateCheck(e){null===e&&(e=null),this.$emit("validate",e)},async validateAll(e,d,n,t){let i,o=[];for(let c in e){const e=this.childrens.find((e=>e.name===c));e&&o.push(e)}t||"function"!=typeof n||(t=n),!t&&"function"!=typeof t&&Promise&&(i=new Promise(((e,d)=>{t=function(n,t){n?d(n):e(t)}})));let a=[],r={};if(this.validator)for(let c in o){const d=o[c];let n=d.isArray?d.arrayField:d.name;if(d.isArray){if(-1!==d.name.indexOf("[")&&-1!==d.name.indexOf("]")){const t=d.name.split("["),i=t[0],o=t[1].replace("]","");r[i]||(r[i]={}),r[i][o]=this._getValue(n,e[n])}}else r[n]=this._getValue(n,e[n]);const t=await d.triggerCheck(e[n],!0);if(t&&(a.push(t),"toast"===this.errShowType||"modal"===this.errShowType))break}else r=e;return Array.isArray(a)&&0===a.length&&(a=null),Array.isArray(n)&&n.forEach((e=>{r[e]=this.dataValue[e]})),"submit"===d?this.$emit("submit",{detail:{value:r,errors:a}}):this.$emit("validate",a),t&&"function"==typeof t&&t(a,r),i&&t?i:null},submitForm(){},submit(e,d,n){for(let t in this.dataValue){this.childrens.find((e=>e.name===t))&&void 0===this.formData[t]&&(this.formData[t]=this._getValue(t,this.dataValue[t]))}return n||console.warn("submit 方法即将废弃,请使用validate方法代替!"),this.validateAll(this.formData,"submit",e,d)},validate(e,d){return this.submit(e,d,!0)},validateField(e,d){e=[].concat(e);let n={};return this.childrens.forEach((d=>{-1!==e.indexOf(d.name)&&(n=Object.assign({},n,{[d.name]:this.formData[d.name]}))})),this.validateAll(n,"submit",[],d)},resetFields(){this.resetForm()},clearValidate(e){e=[].concat(e),this.childrens.forEach((d=>{const n=this.inputChildrens.find((e=>e.rename===d.name));(0===e.length||-1!==e.indexOf(d.name))&&(d.errMsg="",n&&(n.errMsg=""))}))},_getValue(e,d){const n=this.formRules[e]&&this.formRules[e].rules||[],t=n.find((e=>e.format&&this.type_filter(e.format))),i=n.find((e=>e.format&&"boolean"===e.format||"bool"===e.format));return t&&(d=isNaN(d)?d:""===d||null===d?null:Number(d)),i&&(d=!!d),d},type_filter:e=>"int"===e||"double"===e||"number"===e||"timestamp"===e}},[["render",function(n,i,o,c,l,u){const $=I,h=s;return e(),d(h,{class:t(["uni-forms",{"uni-forms--top":!o.border}])},{default:a((()=>[f($,{onSubmit:_(u.submitForm,["stop"]),onReset:u.resetForm},{default:a((()=>[r(n.$slots,"default",{},void 0,!0)])),_:3},8,["onSubmit","onReset"])])),_:3},8,["class"])}],["__scopeId","data-v-5ab2d274"]]),te={rules:[{required:!0,errorMessage:"请输入用户名"},{validateFunction:function(e,d,n,t){return d||t("用户名不能为空"),!0}}]},ie={rules:[{required:!0,errorMessage:"请输入手机号"},{validateFunction:function(e,d,n,t){return A.mobile(d)||t("手机号码格式不正确"),!0}}]},oe={rules:[{required:!0,errorMessage:"请输入密码"},{validateFunction:function(e,d,n,t){return/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]+\S{5,12}$/.test(d)||t("需包含字母和数字,长度在6-12之间"),!0}}]},ae={rules:[{required:!0,errorMessage:"请输入验证码"}]},re="data:image/png;base64,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",ce=[{english_name:"China",chinese_name:"中国",country_code:"CN",phone_code:"86"},{english_name:"Hong Kong",chinese_name:"中国香港",country_code:"HK",phone_code:"852"},{english_name:"Taiwan",chinese_name:"中国台湾",country_code:"TW",phone_code:"886"},{english_name:"Macau",chinese_name:"中国澳门",country_code:"MO",phone_code:"853"},{english_name:"Central African Republic",chinese_name:"中非共和国",country_code:"CF",phone_code:"236"},{english_name:"Chile",chinese_name:"智利",country_code:"CL",phone_code:"56"},{english_name:"Gibraltar",chinese_name:"直布罗陀",country_code:"GI",phone_code:"350"},{english_name:"Chad",chinese_name:"乍得",country_code:"TD",phone_code:"235"},{english_name:"Zambia",chinese_name:"赞比亚",country_code:"ZM",phone_code:"260"},{english_name:"Vietnam",chinese_name:"越南",country_code:"VN",phone_code:"84"},{english_name:"Jordan",chinese_name:"约旦",country_code:"JO",phone_code:"962"},{english_name:"Virgin Islands, British",chinese_name:"英属处女群岛",country_code:"VG",phone_code:"1340"},{english_name:"United Kingdom",chinese_name:"英国",country_code:"GB",phone_code:"44"},{english_name:"Indonesia",chinese_name:"印度尼西亚",country_code:"ID",phone_code:"62"},{english_name:"India",chinese_name:"印度",country_code:"IN",phone_code:"91"},{english_name:"Italy",chinese_name:"意大利",country_code:"IT",phone_code:"39"},{english_name:"Israel",chinese_name:"以色列",country_code:"IL",phone_code:"972"},{english_name:"Iran",chinese_name:"伊朗",country_code:"IR",phone_code:"98"},{english_name:"Iraq",chinese_name:"伊拉克",country_code:"IQ",phone_code:"964"},{english_name:"Yemen",chinese_name:"也门",country_code:"YE",phone_code:"967"},{english_name:"Armenia",chinese_name:"亚美尼亚",country_code:"AM",phone_code:"374"},{english_name:"Jamaica",chinese_name:"牙买加",country_code:"JM",phone_code:"1876"},{english_name:"Syria",chinese_name:"叙利亚",country_code:"SY",phone_code:"963"},{english_name:"Hungary",chinese_name:"匈牙利",country_code:"HU",phone_code:"36"},{english_name:"New Zealand",chinese_name:"新西兰",country_code:"NZ",phone_code:"64"},{english_name:"New Caledonia",chinese_name:"新喀里多尼亚",country_code:"NC",phone_code:"687"},{english_name:"Singapore",chinese_name:"新加坡",country_code:"SG",phone_code:"65"},{english_name:"Ivory Coast",chinese_name:"象牙海岸",country_code:"CI",phone_code:"225"},{english_name:"Greece",chinese_name:"希腊",country_code:"GR",phone_code:"30"},{english_name:"Spain",chinese_name:"西班牙",country_code:"ES",phone_code:"34"},{english_name:"Uzbekistan",chinese_name:"乌兹别克斯坦",country_code:"UZ",phone_code:"998"},{english_name:"Uruguay",chinese_name:"乌拉圭",country_code:"UY",phone_code:"598"},{english_name:"Ukraine",chinese_name:"乌克兰",country_code:"UA",phone_code:"380"},{english_name:"Uganda",chinese_name:"乌干达",country_code:"UG",phone_code:"256"},{english_name:"Brunei",chinese_name:"文莱",country_code:"BN",phone_code:"673"},{english_name:"Venezuela",chinese_name:"委内瑞拉",country_code:"VE",phone_code:"58"},{english_name:"Vanuatu",chinese_name:"瓦努阿图",country_code:"VU",phone_code:"678"},{english_name:"Turkmenistan",chinese_name:"土库曼斯坦",country_code:"TM",phone_code:"993"},{english_name:"Turkey",chinese_name:"土耳其",country_code:"TR",phone_code:"90"},{english_name:"Tunisia",chinese_name:"突尼斯",country_code:"TN",phone_code:"216"},{english_name:"Trinidad and Tobago",chinese_name:"特立尼达和多巴哥",country_code:"TT",phone_code:"1868"},{english_name:"Turks and Caicos Islands",chinese_name:"特克斯和凯科斯群岛",country_code:"TC",phone_code:"1649"},{english_name:"Tonga",chinese_name:"汤加",country_code:"TO",phone_code:"676"},{english_name:"Tanzania",chinese_name:"坦桑尼亚",country_code:"TZ",phone_code:"255"},{english_name:"Thailand",chinese_name:"泰国",country_code:"TH",phone_code:"66"},{english_name:"Tajikistan",chinese_name:"塔吉克斯坦",country_code:"TJ",phone_code:"992"},{english_name:"Somalia",chinese_name:"索马里",country_code:"SO",phone_code:"252"},{english_name:"Solomon Islands",chinese_name:"所罗门群岛",country_code:"SB",phone_code:"677"},{english_name:"Suriname",chinese_name:"苏里南",country_code:"SR",phone_code:"597"},{english_name:"Sudan",chinese_name:"苏丹",country_code:"SD",phone_code:"249"},{english_name:"Swaziland",chinese_name:"斯威士兰",country_code:"SZ",phone_code:"268"},{english_name:"Slovenia",chinese_name:"斯洛文尼亚",country_code:"SI",phone_code:"386"},{english_name:"Slovakia",chinese_name:"斯洛伐克",country_code:"SK",phone_code:"421"},{english_name:"Sri Lanka",chinese_name:"斯里兰卡",country_code:"LK",phone_code:"94"},{english_name:"Saint Vincent and The Grenadines",chinese_name:"圣文森特和格林纳丁斯",country_code:"VC",phone_code:"1784"},{english_name:"San Marino",chinese_name:"圣马力诺",country_code:"SM",phone_code:"378"},{english_name:"Saint Maarten (Dutch Part)",chinese_name:"圣马丁岛(荷兰部分)",country_code:"SX",phone_code:"1721"},{english_name:"Saint Lucia",chinese_name:"圣露西亚",country_code:"LC",phone_code:"1758"},{english_name:"Saint Kitts and Nevis",chinese_name:"圣基茨和尼维斯",country_code:"KN",phone_code:"1869"},{english_name:"Sao Tome and Principe",chinese_name:"圣多美和普林西比",country_code:"ST",phone_code:"239"},{english_name:"Saint Pierre and Miquelon",chinese_name:"圣彼埃尔和密克隆岛",country_code:"PM",phone_code:"508"},{english_name:"Saudi Arabia",chinese_name:"沙特阿拉伯",country_code:"SA",phone_code:"966"},{english_name:"Seychelles",chinese_name:"塞舌尔",country_code:"SC",phone_code:"248"},{english_name:"Cyprus",chinese_name:"塞浦路斯",country_code:"CY",phone_code:"357"},{english_name:"Senegal",chinese_name:"塞内加尔",country_code:"SN",phone_code:"221"},{english_name:"Sierra Leone",chinese_name:"塞拉利昂",country_code:"SL",phone_code:"232"},{english_name:"Serbia",chinese_name:"塞尔维亚",country_code:"RS",phone_code:"381"},{english_name:"Samoa",chinese_name:"萨摩亚",country_code:"WS",phone_code:"685"},{english_name:"El Salvador",chinese_name:"萨尔瓦多",country_code:"SV",phone_code:"503"},{english_name:"Switzerland",chinese_name:"瑞士",country_code:"CH",phone_code:"41"},{english_name:"Sweden",chinese_name:"瑞典",country_code:"SE",phone_code:"46"},{english_name:"Japan",chinese_name:"日本",country_code:"JP",phone_code:"81"},{english_name:"Portugal",chinese_name:"葡萄牙",country_code:"PT",phone_code:"351"},{english_name:"Palau",chinese_name:"帕劳",country_code:"PW",phone_code:"680"},{english_name:"Norway",chinese_name:"挪威",country_code:"NO",phone_code:"47"},{english_name:"Nigeria",chinese_name:"尼日利亚",country_code:"NG",phone_code:"234"},{english_name:"Niger",chinese_name:"尼日尔",country_code:"NE",phone_code:"227"},{english_name:"Nepal",chinese_name:"尼泊尔",country_code:"NP",phone_code:"977"},{english_name:"Nicaragua",chinese_name:"尼加拉瓜",country_code:"NI",phone_code:"505"},{english_name:"South Africa",chinese_name:"南非",country_code:"ZA",phone_code:"27"},{english_name:"Namibia",chinese_name:"纳米比亚",country_code:"NA",phone_code:"264"},{english_name:"Mexico",chinese_name:"墨西哥",country_code:"MX",phone_code:"52"},{english_name:"Mozambique",chinese_name:"莫桑比克",country_code:"MZ",phone_code:"258"},{english_name:"Monaco",chinese_name:"摩纳哥",country_code:"MC",phone_code:"377"},{english_name:"Morocco",chinese_name:"摩洛哥",country_code:"MA",phone_code:"212"},{english_name:"Moldova",chinese_name:"摩尔多瓦",country_code:"MD",phone_code:"373"},{english_name:"Myanmar",chinese_name:"缅甸",country_code:"MM",phone_code:"95"},{english_name:"Peru",chinese_name:"秘鲁",country_code:"PE",phone_code:"51"},{english_name:"Bangladesh",chinese_name:"孟加拉国",country_code:"BD",phone_code:"880"},{english_name:"Montserrat",chinese_name:"蒙特塞拉特岛",country_code:"MS",phone_code:"1664"},{english_name:"Mongolia",chinese_name:"蒙古",country_code:"MN",phone_code:"976"},{english_name:"Virgin Islands, US",chinese_name:"美属维尔京群岛",country_code:"VI",phone_code:"1284"},{english_name:"American Samoa",chinese_name:"美属萨摩亚",country_code:"AS",phone_code:"1684"},{english_name:"United States",chinese_name:"美国",country_code:"US",phone_code:"1"},{english_name:"Mauritania",chinese_name:"毛里塔尼亚",country_code:"MR",phone_code:"222"},{english_name:"Mauritius",chinese_name:"毛里求斯",country_code:"MU",phone_code:"230"},{english_name:"Mayotte",chinese_name:"马约特",country_code:"YT",phone_code:"269"},{english_name:"Martinique",chinese_name:"马提尼克",country_code:"MQ",phone_code:"596"},{english_name:"Macedonia",chinese_name:"马其顿",country_code:"MK",phone_code:"389"},{english_name:"Mali",chinese_name:"马里",country_code:"ML",phone_code:"223"},{english_name:"Malaysia",chinese_name:"马来西亚",country_code:"MY",phone_code:"60"},{english_name:"Malawi",chinese_name:"马拉维",country_code:"MW",phone_code:"265"},{english_name:"Malta",chinese_name:"马耳他",country_code:"MT",phone_code:"356"},{english_name:"Maldives",chinese_name:"马尔代夫",country_code:"MV",phone_code:"960"},{english_name:"Madagascar",chinese_name:"马达加斯加",country_code:"MG",phone_code:"261"},{english_name:"Romania",chinese_name:"罗马尼亚",country_code:"RO",phone_code:"40"},{english_name:"Rwanda",chinese_name:"卢旺达",country_code:"RW",phone_code:"250"},{english_name:"Luxembourg",chinese_name:"卢森堡",country_code:"LU",phone_code:"352"},{english_name:"Réunion Island",chinese_name:"留尼汪",country_code:"RE",phone_code:"262"},{english_name:"Liechtenstein",chinese_name:"列支敦士登",country_code:"LI",phone_code:"423"},{english_name:"Libya",chinese_name:"利比亚",country_code:"LY",phone_code:"218"},{english_name:"Liberia",chinese_name:"利比里亚",country_code:"LR",phone_code:"231"},{english_name:"Lithuania",chinese_name:"立陶宛",country_code:"LT",phone_code:"370"},{english_name:"Lebanon",chinese_name:"黎巴嫩",country_code:"LB",phone_code:"961"},{english_name:"Laos",chinese_name:"老挝",country_code:"LA",phone_code:"856"},{english_name:"Lesotho",chinese_name:"莱索托",country_code:"LS",phone_code:"266"},{english_name:"Latvia",chinese_name:"拉脱维亚",country_code:"LV",phone_code:"371"},{english_name:"Curacao",chinese_name:"库拉索",country_code:"CW",phone_code:"599"},{english_name:"Cook Islands",chinese_name:"库克群岛",country_code:"CK",phone_code:"682"},{english_name:"Kenya",chinese_name:"肯尼亚",country_code:"KE",phone_code:"254"},{english_name:"Croatia",chinese_name:"克罗地亚",country_code:"HR",phone_code:"385"},{english_name:"Kuwait",chinese_name:"科威特",country_code:"KW",phone_code:"965"},{english_name:"Comoros",chinese_name:"科摩罗",country_code:"KM",phone_code:"269"},{english_name:"Cape Verde",chinese_name:"开普",country_code:"CV",phone_code:"238"},{english_name:"Cayman Islands",chinese_name:"开曼群岛",country_code:"KY",phone_code:"1345"},{english_name:"Qatar",chinese_name:"卡塔尔",country_code:"QA",phone_code:"974"},{english_name:"Cameroon",chinese_name:"喀麦隆",country_code:"CM",phone_code:"237"},{english_name:"Zimbabwe",chinese_name:"津巴布韦",country_code:"ZW",phone_code:"263"},{english_name:"Czech",chinese_name:"捷克",country_code:"CZ",phone_code:"420"},{english_name:"Cambodia",chinese_name:"柬埔寨",country_code:"KH",phone_code:"855"},{english_name:"Gabon",chinese_name:"加蓬",country_code:"GA",phone_code:"241"},{english_name:"Ghana",chinese_name:"加纳",country_code:"GH",phone_code:"233"},{english_name:"Canada",chinese_name:"加拿大",country_code:"CA",phone_code:"1"},{english_name:"Guinea-Bissau",chinese_name:"几内亚比绍共和国",country_code:"GW",phone_code:"245"},{english_name:"Guinea",chinese_name:"几内亚",country_code:"GN",phone_code:"224"},{english_name:"Kyrgyzstan",chinese_name:"吉尔吉斯斯坦",country_code:"KG",phone_code:"996"},{english_name:"Djibouti",chinese_name:"吉布提",country_code:"DJ",phone_code:"253"},{english_name:"Kiribati",chinese_name:"基里巴斯",country_code:"KI",phone_code:"686"},{english_name:"Honduras",chinese_name:"洪都拉斯",country_code:"HN",phone_code:"504"},{english_name:"Montenegro",chinese_name:"黑山",country_code:"ME",phone_code:"382"},{english_name:"Netherlands",chinese_name:"荷兰",country_code:"NL",phone_code:"31"},{english_name:"South Korea",chinese_name:"韩国",country_code:"KR",phone_code:"82"},{english_name:"Haiti",chinese_name:"海地",country_code:"HT",phone_code:"509"},{english_name:"Kazakhstan",chinese_name:"哈萨克斯坦",country_code:"KZ",phone_code:"7"},{english_name:"Guyana",chinese_name:"圭亚那",country_code:"GY",phone_code:"592"},{english_name:"Guam",chinese_name:"关岛",country_code:"GU",phone_code:"1671"},{english_name:"Guatemala",chinese_name:"瓜地马拉",country_code:"GT",phone_code:"502"},{english_name:"Guadeloupe",chinese_name:"瓜德罗普岛",country_code:"GP",phone_code:"590"},{english_name:"Cuba",chinese_name:"古巴",country_code:"CU",phone_code:"53"},{english_name:"Georgia",chinese_name:"格鲁吉亚",country_code:"GE",phone_code:"995"},{english_name:"Greenland",chinese_name:"格陵兰岛",country_code:"GL",phone_code:"299"},{english_name:"Grenada",chinese_name:"格林纳达",country_code:"GD",phone_code:"1473"},{english_name:"Costa Rica",chinese_name:"哥斯达黎加",country_code:"CR",phone_code:"506"},{english_name:"Colombia",chinese_name:"哥伦比亚",country_code:"CO",phone_code:"57"},{english_name:"Democratic Republic of the Congo",chinese_name:"刚果民主共和国",country_code:"CD",phone_code:"243"},{english_name:"Republic Of The Congo",chinese_name:"刚果共和国",country_code:"CG",phone_code:"242"},{english_name:"Gambia",chinese_name:"冈比亚",country_code:"GM",phone_code:"220"},{english_name:"Finland",chinese_name:"芬兰",country_code:"FI",phone_code:"358"},{english_name:"Fiji",chinese_name:"斐济",country_code:"FJ",phone_code:"679"},{english_name:"Philippines",chinese_name:"菲律宾",country_code:"PH",phone_code:"63"},{english_name:"French Guiana",chinese_name:"法属圭亚那",country_code:"GF",phone_code:"594"},{english_name:"French Polynesia",chinese_name:"法属波利尼西亚",country_code:"PF",phone_code:"689"},{english_name:"Faroe Islands",chinese_name:"法罗群岛",country_code:"FO",phone_code:"298"},{english_name:"France",chinese_name:"法国",country_code:"FR",phone_code:"33"},{english_name:"Eritrea",chinese_name:"厄立特里亚",country_code:"ER",phone_code:"291"},{english_name:"Ecuador",chinese_name:"厄瓜多尔",country_code:"EC",phone_code:"593"},{english_name:"Russia",chinese_name:"俄罗斯",country_code:"RU",phone_code:"7"},{english_name:"Dominican Republic",chinese_name:"多米尼加共和国",country_code:"DO",phone_code:"1809"},{english_name:"Dominica",chinese_name:"多米尼加",country_code:"DM",phone_code:"1767"},{english_name:"Togo",chinese_name:"多哥",country_code:"TG",phone_code:"228"},{english_name:"Timor-Leste",chinese_name:"东帝汶",country_code:"TL",phone_code:"670"},{english_name:"Germany",chinese_name:"德国",country_code:"DE",phone_code:"49"},{english_name:"Denmark",chinese_name:"丹麦",country_code:"DK",phone_code:"45"},{english_name:"Equatorial Guinea",chinese_name:"赤道几内亚",country_code:"GQ",phone_code:"240"},{english_name:"Burundi",chinese_name:"布隆迪",country_code:"BI",phone_code:"257"},{english_name:"Burkina Faso",chinese_name:"布基纳法索",country_code:"BF",phone_code:"226"},{english_name:"Bhutan",chinese_name:"不丹",country_code:"BT",phone_code:"975"},{english_name:"Botswana",chinese_name:"博茨瓦纳",country_code:"BW",phone_code:"267"},{english_name:"Belize",chinese_name:"伯利兹",country_code:"BZ",phone_code:"501"},{english_name:"Bolivia",chinese_name:"玻利维亚",country_code:"BO",phone_code:"591"},{english_name:"Bosnia and Herzegovina",chinese_name:"波斯尼亚和黑塞哥维那",country_code:"BA",phone_code:"387"},{english_name:"Poland",chinese_name:"波兰",country_code:"PL",phone_code:"48"},{english_name:"Puerto Rico",chinese_name:"波多黎各",country_code:"PR",phone_code:"1787"},{english_name:"Iceland",chinese_name:"冰岛",country_code:"IS",phone_code:"354"},{english_name:"Belgium",chinese_name:"比利时",country_code:"BE",phone_code:"32"},{english_name:"Benin",chinese_name:"贝宁",country_code:"BJ",phone_code:"229"},{english_name:"Bulgaria",chinese_name:"保加利亚",country_code:"BG",phone_code:"359"},{english_name:"Bermuda",chinese_name:"百慕大群岛",country_code:"BM",phone_code:"1441"},{english_name:"Belarus",chinese_name:"白俄罗斯",country_code:"BY",phone_code:"375"},{english_name:"Brazil",chinese_name:"巴西",country_code:"BR",phone_code:"55"},{english_name:"Panama",chinese_name:"巴拿马",country_code:"PA",phone_code:"507"},{english_name:"Bahrain",chinese_name:"巴林",country_code:"BH",phone_code:"973"},{english_name:"Palestine",chinese_name:"巴勒斯坦",country_code:"BL",phone_code:"970"},{english_name:"Paraguay",chinese_name:"巴拉圭",country_code:"PY",phone_code:"595"},{english_name:"Pakistan",chinese_name:"巴基斯坦",country_code:"PK",phone_code:"92"},{english_name:"Bahamas",chinese_name:"巴哈马",country_code:"BS",phone_code:"1242"},{english_name:"Papua New Guinea",chinese_name:"巴布亚新几内亚",country_code:"PG",phone_code:"675"},{english_name:"Barbados",chinese_name:"巴巴多斯",country_code:"BB",phone_code:"1246"},{english_name:"Australia",chinese_name:"澳大利亚",country_code:"AU",phone_code:"61"},{english_name:"Austria",chinese_name:"奥地利",country_code:"AT",phone_code:"43"},{english_name:"Antigua and Barbuda",chinese_name:"安提瓜和巴布达",country_code:"AG",phone_code:"1268"},{english_name:"Anguilla",chinese_name:"安圭拉",country_code:"AI",phone_code:"1264"},{english_name:"Angola",chinese_name:"安哥拉",country_code:"AO",phone_code:"244"},{english_name:"Andorra",chinese_name:"安道尔",country_code:"AD",phone_code:"376"},{english_name:"Estonia",chinese_name:"爱沙尼亚",country_code:"EE",phone_code:"372"},{english_name:"Ireland",chinese_name:"爱尔兰",country_code:"IE",phone_code:"353"},{english_name:"Ethiopia",chinese_name:"埃塞俄比亚",country_code:"ET",phone_code:"251"},{english_name:"Egypt",chinese_name:"埃及",country_code:"EG",phone_code:"20"},{english_name:"Azerbaijan",chinese_name:"阿塞拜疆",country_code:"AZ",phone_code:"994"},{english_name:"Oman",chinese_name:"阿曼",country_code:"OM",phone_code:"968"},{english_name:"Aruba",chinese_name:"阿鲁巴",country_code:"AW",phone_code:"297"},{english_name:"United Arab Emirates",chinese_name:"阿拉伯联合酋长国",country_code:"AE",phone_code:"971"},{english_name:"Argentina",chinese_name:"阿根廷",country_code:"AR",phone_code:"54"},{english_name:"Afghanistan",chinese_name:"阿富汗",country_code:"AF",phone_code:"93"},{english_name:"Algeria",chinese_name:"阿尔及利亚",country_code:"DZ",phone_code:"213"},{english_name:"Albania",chinese_name:"阿尔巴尼亚",country_code:"AL",phone_code:"355"}];function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function le(e,d){for(var n=0;na)return 1;if(a>o)return-1;if(!isNaN(o)&&isNaN(a))return 1;if(isNaN(o)&&!isNaN(a))return-1}return e[1]&&d[1]?e[1]>d[1]?1:e[1]=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Je(e,d){(null==d||d>e.length)&&(d=e.length);for(var n=0,t=new Array(d);n=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Qe(e,d){(null==d||d>e.length)&&(d=e.length);for(var n=0,t=new Array(d);na?"TOO_SHORT":i[i.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function qe(e,d){return"IS_POSSIBLE"===ze(e,d)}function ed(e,d){return e=e||"",new RegExp("^(?:"+d+")$").test(e)}function dd(e,d){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,d){if(!e)return;if("string"==typeof e)return nd(e,d);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nd(e,d)}(e))||d&&e&&"number"==typeof e.length){n&&(e=n);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nd(e,d){(null==d||d>e.length)&&(d=e.length);for(var n=0,t=new Array(d);n=0)return!0;return!1}(d,e,n)})):[]}var rd=/(\$\d)/;function cd(e,d,n){var t=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var o=e.replace(new RegExp(d.pattern()),t?d.internationalFormat():i&&d.nationalPrefixFormattingRule()?d.format().replace(rd,d.nationalPrefixFormattingRule()):d.format());return t?function(e){return e.replace(new RegExp("[".concat(ye,"]+"),"g")," ").trim()}(o):o}var sd=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function ld(e,d){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,d){if(!e)return;if("string"==typeof e)return ud(e,d);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ud(e,d)}(e))||d&&e&&"number"==typeof e.length){n&&(e=n);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ud(e,d){(null==d||d>e.length)&&(d=e.length);for(var n=0,t=new Array(d);n0){var o=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(0!==d.search(o))continue}if(ed(d,i.pattern()))return i}}(t.formats(),e);return o?cd(e,o,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!o.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!i||!1!==i.nationalPrefix,carrierCode:d,metadata:t}):e}function gd(e,d,n,t){return d?t(e,d,n):e}function yd(e,d){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);d&&(t=t.filter((function(d){return Object.getOwnPropertyDescriptor(e,d).enumerable}))),n.push.apply(n,t)}return n}function bd(e){for(var d=1;d0&&t[r];if(d.nationalPrefixTransformRule()&&c)i=e.replace(n,d.nationalPrefixTransformRule()),r>1&&(o=t[1]);else{var s=t[0];i=e.slice(s.length),c&&(o=t[1])}if(c){var l=e.indexOf(t[1]);e.slice(0,l)===d.numberingPlan.nationalPrefix()&&(a=d.numberingPlan.nationalPrefix())}else a=t[0];return{nationalNumber:i,nationalPrefix:a,carrierCode:o}}}return{nationalNumber:e}}(e,d),t=n.carrierCode,i=n.nationalNumber;if(i!==e){if(!function(e,d,n){if(ed(e,n.nationalNumberPattern())&&!ed(d,n.nationalNumberPattern()))return!1;return!0}(e,i,d))return{nationalNumber:e};if(d.possibleLengths()&&!function(e,d){switch(ze(e,d)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(i,d))return{nationalNumber:e}}return{nationalNumber:i,carrierCode:t}}function Id(e,d,n,t){if(!e)return{};var i;if("+"!==e[0]){var o=function(e,d,n,t){if(d){var i=new Pe(t);i.selectNumberingPlan(d,n);var o=new RegExp(i.IDDPrefix());if(0===e.search(o)){var a=(e=e.slice(e.match(o)[0].length)).match(Sd);if(!(a&&null!=a[1]&&a[1].length>0&&"0"===a[1]))return e}}}(e,d,n,t);if(!o||o===e){if(d||n){var a=function(e,d,n,t){var i=d?Te(d,t):n;if(0===e.indexOf(i)){(t=new Pe(t)).selectNumberingPlan(d,n);var o=e.slice(i.length),a=kd(o,t).nationalNumber,r=kd(e,t).nationalNumber;if(!ed(r,t.nationalNumberPattern())&&ed(a,t.nationalNumberPattern())||"TOO_LONG"===ze(r,t))return{countryCallingCode:i,number:o}}return{number:e}}(e,d,n,t),r=a.countryCallingCode,c=a.number;if(r)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:r,number:c}}return{number:e}}i=!0,e="+"+o}if("0"===e[1])return{};t=new Pe(t);for(var s=2;s-1<=3&&s<=e.length;){var l=e.slice(1,s);if(t.hasCallingCode(l))return t.selectNumberingPlan(l),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:l,number:e.slice(s)};s++}return{}}function Ad(e,d){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,d){if(!e)return;if("string"==typeof e)return Pd(e,d);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pd(e,d)}(e))||d&&e&&"number"==typeof e.length){n&&(e=n);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Pd(e,d){(null==d||d>e.length)&&(d=e.length);for(var n=0,t=new Array(d);n0)return a[0]}(n,{countries:o,defaultCountry:t,metadata:i.metadata})}var xd=new RegExp("^\\+([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*[0-90-9٠-٩۰-۹]([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*$","g"),Md=new RegExp("^([0-90-9٠-٩۰-۹]+((\\-)*[0-90-9٠-٩۰-۹])*\\.)*[a-zA-Z]+((\\-)*[0-90-9٠-٩۰-۹])*\\.?$","g");function Ed(e,d){var n,t=d.extractFormattedPhoneNumber,i=function(e){var d=e.indexOf(";phone-context=");if(d<0)return null;var n=d+";phone-context=".length;if(n>=e.length)return"";var t=e.indexOf(";",n);return t>=0?e.substring(n,t):e.substring(n)}(e);if(!function(e){return null===e||0!==e.length&&(xd.test(e)||Md.test(e))}(i))throw new ge("NOT_A_NUMBER");if(null===i)n=t(e)||"";else{n="","+"===i.charAt(0)&&(n+=i);var o,a=e.indexOf("tel:");o=a>=0?a+"tel:".length:0;var r=e.indexOf(";phone-context=");n+=e.substring(o,r)}var c=n.indexOf(";isub=");if(c>0&&(n=n.substring(0,c)),""!==n)return n}var Nd=new RegExp("[++0-90-9٠-٩۰-۹]"),Bd=new RegExp("[^0-90-9٠-٩۰-۹#]+$");function Td(e,d,n){if(d=d||{},n=new Pe(n),d.defaultCountry&&!n.hasCountry(d.defaultCountry)){if(d.v2)throw new ge("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(d.defaultCountry))}var t=function(e,d,n){var t=Ed(e,{extractFormattedPhoneNumber:function(e){return function(e,d,n){if(!e)return;if(e.length>250){if(n)throw new ge("TOO_LONG");return}if(!1===d)return e;var t=e.search(Nd);if(t<0)return;return e.slice(t).replace(Bd,"")}(e,n,d)}});if(!t)return{};if(!function(e){return e.length>=2&&Ve.test(e)}(t))return function(e){return je.test(e)}(t)?{error:"TOO_SHORT"}:{};var i=function(e){var d=e.search(Ue);if(d<0)return{};for(var n=e.slice(0,d),t=e.match(Ue),i=1;i17){if(d.v2)throw new ge("TOO_LONG");return{}}if(d.v2){var h=new wd(l,s,n.metadata);return c&&(h.country=c),$&&(h.carrierCode=$),o&&(h.ext=o),h.__countryCallingCodeSource=u,h}var m=!!(d.extended?n.hasSelectedNumberingPlan():c)&&ed(s,n.nationalNumberPattern());return d.extended?{country:c,countryCallingCode:l,carrierCode:$,valid:m,possible:!!m||!(!0!==d.extended||!n.possibleLengths()||!qe(s,n)),phone:s,ext:o}:m?function(e,d,n){var t={country:e,phone:d};n&&(t.ext=n);return t}(c,s,o):{}}function Rd(e,d){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);d&&(t=t.filter((function(d){return Object.getOwnPropertyDescriptor(e,d).enumerable}))),n.push.apply(n,t)}return n}function Fd(e){for(var d=1;de.length)&&(d=e.length);for(var n=0,t=new Array(d);n{c.value=e.detail.value,o.value=i.value[c.value].phone_code,r.value=i.value[c.value].country_code};O((()=>{const e=(d="86",i.value.findIndex((e=>e.phone_code==d)));var d;-1!==e&&(c.value=e,o.value=i.value[e].phone_code,r.value=i.value[e].country_code)}));const u=n,m=e=>{const d=e;if(""==d)u("input",d,"请输入手机号");else try{const e=function(){return Qd(Yd,arguments)}(d,r.value);e.isValid()?u("input",d,""):u("input",d,"手机号码格式不正确")}catch(n){}},_=x({codeText:"获取验证码",model:{mobile:""}});return(n,r)=>{const u=B,y=s,b=T,v=R,C=$(h("uni-easyinput"),Y);return e(),p(g,null,[f(b,{mode:"selector",range:i.value.map((e=>e.chinese_name+" +"+e.phone_code)),value:c.value,onChange:l,style:{float:"left",height:"100%",width:"110rpx",display:"flex","align-items":"center"}},{default:a((()=>[f(y,null,{default:a((()=>[w("+"+S(o.value)+" ",1),f(u,{src:re,style:{width:"20rpx",height:"20rpx"}})])),_:1})])),_:1},8,["range","value"]),f(C,{placeholder:"请输入手机号",modelValue:_.model.mobile,"onUpdate:modelValue":r[1]||(r[1]=e=>_.model.mobile=e),onInput:m,inputBorder:!1,type:"number",style:{float:"left",width:"calc(100% - 110rpx)"}},{right:a((()=>[f(v,{class:t(["ss-reset-button code-btn code-btn-start",{disabled:!d.verifyUsername||86!=o.value}]),disabled:!d.verifyUsername||86!=o.value,onClick:r[0]||(r[0]=e=>M(E)("smsLogin",_.model.mobile))},{default:a((()=>[w(S(M(N)("smsLogin")),1)])),_:1},8,["disabled","class"])])),_:1},8,["modelValue"])],64)}}},[["__scopeId","data-v-dac5005d"]]);export{H as _,Y as a,Z as b,ae as c,ne as d,D as e,re as f,oe as g,ie as m,zd as p,te as u};