@fox-js/foxui 4.0.1-85 → 4.0.1-86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(B,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("@fox-js/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","@fox-js/icons-vue","@fox-js/i18n"],t):(B=typeof globalThis<"u"?globalThis:B||self,t(B.FoxUI={},B.Vue,B.FoxValidator,B.FoxIconsVue,B.FoxI18n))})(this,function(B,t,ot,oe,pe){Object.defineProperties(B,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Hi=Object.create,Xo=Object.defineProperty,ji=Object.getOwnPropertyDescriptor,Wi=Object.getOwnPropertyNames,Yi=Object.getPrototypeOf,Xi=Object.prototype.hasOwnProperty,Ue=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),Qi=(e,n,a,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var o=Wi(n),r=0,i=o.length,c;r<i;r++)c=o[r],!Xi.call(e,c)&&c!==a&&Xo(e,c,{get:(s=>n[s]).bind(null,c),enumerable:!(l=ji(n,c))||l.enumerable});return e},He=(e,n,a)=>(a=e!=null?Hi(Yi(e)):{},Qi(n||!e||!e.__esModule?Xo(a,"default",{value:e,enumerable:!0}):a,e)),sn=window,Gi=typeof window<"u";function Zi(){return typeof sn<"u"?sn.requestAnimationFrame||sn.webkitRequestAnimationFrame||function(e){sn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Qo(e){Gi?cancelAnimationFrame(e):clearTimeout(e)}var Ge=Zi();function cn(e,n="0"){let a=0,l=-1;e[0]=="-"&&(a++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,l=2,n=n.substring(1),n.length),e=Ae(e),n=Ae(n),[e,n]=vl(Ae(e),Ae(n)),a==1&&(l==1?e=bl(e):n=bl(n));let o=Go(e,n);return a?a==2?"-"+Ae(o):e.length<o.length?Ae(o.substring(1)):"-"+Ae(bl(o)):Ae(o)}function bl(e){let n="",a=e.length,l=e.split(".")[1],o=l?l.length:0;for(let i=0;i<a;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=o>0?"0."+new Array(o).join("0")+"1":"1";return Go(n,r)}function Ae(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function vl(e,n){let a=e.split("."),l=n.split("."),o=a[0].length,r=l[0].length;return o>r?l[0]=new Array(Math.abs(o-r)+1).join("0")+(l[0]?l[0]:""):a[0]=new Array(Math.abs(o-r)+1).join("0")+(a[0]?a[0]:""),o=a[1]?a[1].length:0,r=l[1]?l[1].length:0,(o||r)&&(o>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(o-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(o-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Go(e,n){[e,n]=vl(e,n);let a="",l=0;for(let o=e.length-1;o>=0;o--){if(e[o]==="."){a="."+a;continue}let r=parseInt(e[o])+parseInt(n[o])+l;a=r%10+a,l=Math.floor(r/10)}return l?l.toString()+a:a}var Ne=(function(e){return e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e})({});function xt(e,n=0,a=Ne.HALF_EVEN){if(a===Ne.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let o=e.split("."),r=o[0],i=o[1];if(n<0){if(n=-n,r.length<=n)return"0";{let s=r.substr(0,r.length-n);return e=s+"."+r.substr(r.length-n)+i,s=xt(e,0,a),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return r.length,Zo(o[1],r,l,a)?(l?"-":"")+Sl(r):(l?"-":"")+r;if(o[1]){if(o[1].length<n)return(l?"-":"")+r+"."+o[1]+new Array(n-o[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");i=o[1].substring(0,n);let c=o[1].substring(n);return c&&Zo(c,i,l,a)&&(i=Sl(i),i.length>n)?(l?"-":"")+Sl(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}function Zo(e,n,a,l){if(!e||e===new Array(e.length+1).join("0")||l===Ne.DOWN||!a&&l===Ne.FLOOR||a&&l===Ne.CEILING)return!1;if(l===Ne.UP||a&&l===Ne.FLOOR||!a&&l===Ne.CEILING)return!0;let o="5"+new Array(e.length).join("0");if(e>o)return!0;if(e<o)return!1;switch(l){case Ne.HALF_DOWN:return!1;case Ne.HALF_UP:return!0;case Ne.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Sl(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,l="";for(let o=a;o>=0;o--){let r=parseInt(e[o])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function kl(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=Pt(e),n=Pt(n);let l=0,o=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(o=n.length-n.indexOf(".")-1);let r=l+o;if(e=Pt(e.replace(".","")),n=Pt(n.replace(".","")),e.length<n.length){let u=e;e=n,n=u}if(n=="0")return"0";let i=n.length,c=0,s=[],d=i-1,h="";for(let u=0;u<i;u++)s[u]=e.length-1;for(let u=0;u<2*e.length;u++){let y=0;for(let S=n.length-1;S>=d&&S>=0;S--)s[S]>-1&&s[S]<e.length&&(y+=parseInt(e[s[S]--])*parseInt(n[S]));y+=c,c=Math.floor(y/10),h=y%10+h,d--}return h=Pt(_i(h,r)),a==1&&(h="-"+h),h}function _i(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function Pt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function wl(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var o=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ae(n.replace(".","")),o>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ae(e+new Array(o+1).join("0"));else if(o>d)e=e.replace(".",""),e=Ae(e+new Array(o-d+1).join("0"));else if(o<d){e=e.replace(".","");let h=e.length-d+o;e=Ae(e.substring(0,h)+"."+e.substring(h))}else o==d&&(e=Ae(e.replace(".","")))}let r=0,i=n.length,c="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(d+=i-s.length,s=s+new Array(i-s.length+1).join("0")),r=d,c="0."+new Array(d).join("0")}for(a=a+2;r<=a;){let d=0;for(;parseInt(s)>=parseInt(n);)s=cn(s,"-"+n),d++;c+=d,e?(e[0]=="."&&(c+=".",r++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(r||(c+="."),r++,s=s+"0")}return(l==1?"-":"")+Ae(xt(c,a-2))}function Cl(e,n){return e=e.toString(),n=n.toString(),n=Nl(n),cn(e,n)}function Nl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function _o(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Jo(e),Jo(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Cl(e,kl(n,xt(wl(e,n),0,Ne.FLOOR)));return a+l}function Jo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function er(e,n){let a=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),a=!0),[e,n]=vl(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?a?-1:1:a?1:-1;return 0}var Mt=class he{value;static RoundingModes=Ne;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,l]=n.split(/[eE]/);a=Ae(a);let o="";a[0]=="-"&&(o="-",a=a.substring(1)),a.indexOf(".")>=0?(l=parseInt(l)+a.indexOf("."),a=a.replace(".","")):l=parseInt(l)+a.length,a.length<l?n=o+a+new Array(l-a.length+1).join("0"):a.length>=l&&l>0?n=o+Ae(a.substring(0,l))+(a.length>l?"."+a.substring(l):""):n=o+"0."+new Array(-l+1).join("0")+a}return n}constructor(n="0"){this.value=he.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,l){if(!(a||l))a=3,l=",";else if(!(a&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=he.validate(n);let o=n.charAt(0)=="-";o&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",c=r;c>0;)c<a?(a=c,c=0):c-=a,i=n.substring(c,c+a)+(c<r-a&&c>=0?l:"")+i;return(o?"-":"")+i+n.substring(r)}getPrettyValue(n,a){return he.getPrettyValue(this.value,n,a)}static round(n,a=0,l=Ne.HALF_EVEN){if(n=he.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return xt(n,a,l)}round(n=0,a=Ne.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new he(xt(this.value,n,a))}static floor(n){return n=he.validate(n),n.indexOf(".")===-1?n:he.round(n,0,Ne.FLOOR)}floor(){return this.value.indexOf(".")===-1?new he(this.value):new he(this.value).round(0,Ne.FLOOR)}static ceil(n){return n=he.validate(n),n.indexOf(".")===-1?n:he.round(n,0,Ne.CEILING)}ceil(){return this.value.indexOf(".")===-1?new he(this.value):new he(this.value).round(0,Ne.CEILING)}static add(n,a){return n=he.validate(n),a=he.validate(a),cn(n,a)}add(n){return new he(cn(this.value,n.getValue()))}static subtract(n,a){return n=he.validate(n),a=he.validate(a),Cl(n,a)}subtract(n){return new he(Cl(this.value,n.getValue()))}static multiply(n,a){return n=he.validate(n),a=he.validate(a),kl(n,a)}multiply(n){return new he(kl(this.value,n.getValue()))}static divide(n,a,l){return n=he.validate(n),a=he.validate(a),wl(n,a,l)}divide(n,a){return new he(wl(this.value,n.getValue(),a))}static modulus(n,a){return n=he.validate(n),a=he.validate(a),_o(n,a)}modulus(n){return new he(_o(this.value,n.getValue()))}static compareTo(n,a){return n=he.validate(n),a=he.validate(a),er(n,a)}compareTo(n){return er(this.value,n.getValue())}static negate(n){return n=he.validate(n),Nl(n)}negate(){return new he(Nl(this.value))}};function tr(e,n){return Mt.multiply(`${e}`,`${n}`)}function Al(e,n,a=8){return Mt.divide(`${e}`,`${n}`,a)}var I2=Mt.RoundingModes;function Bl(e,n){return e=`${e}`,n=`${n}`,Mt.compareTo(e,n)}function nr(e){return Mt.negate(e)}function un(e,n=-1,a=!1,l=3,o=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let c=r,s="",d=r.indexOf(".");d!=-1&&(c=r.substring(0,d),s=r.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):a&&n>s.length&&(s=s.padEnd(n,"0")));let h;if(l>0){let u="",y=c.split("").reverse();for(let S=0;S<y.length;S++)u+=y[S]+((S+1)%l==0&&S+1!=y.length?o:"");s.length==0?h=`${i}${u.split("").reverse().join("")}`:h=`${i}${u.split("").reverse().join("")}.${s}`}else s.length==0?h=`${i}${c}`:h=`${i}${c}.${s}`;return h}function lr(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let l=n.replace(/[^\d\.-]/g,"");return`${a}${l}`}var Ze=typeof window<"u",je=Ge;function Me(e){return e==null}var dn=Array.isArray,Ji=e=>mn(e)==="[object Map]",es=e=>mn(e)==="[object Set]",We=e=>e instanceof Date,fn=e=>typeof e=="function",ar=e=>typeof e=="string",ts=e=>typeof e=="symbol",Ve=e=>e!==null&&typeof e=="object",dt=e=>Ve(e)&&fn(e.then)&&fn(e.catch),or=Object.prototype.toString,mn=e=>or.call(e),ns=e=>mn(e)==="[object Object]",rr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ls(e){return e.__esModule||rr&&e[Symbol.toStringTag]==="Module"}var as=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ft(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,l=e.length,o=!1;for(typeof n=="boolean"&&(o=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<l;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let i in r){let c=n[i],s=r[i];if(c!==s)if(o===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=c&&Array.isArray(c)?c:[]:d=c&&typeof c=="object"?c:{},n[i]=ft(o,d,s)}else s!==void 0&&(n[i]=s)}}return n}var Tl=as?Promise.resolve():null;function os(e,...n){Tl!==null?n&&n.length>0?Tl.then(()=>{e(n)}):Tl.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ke(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function de(e){return typeof e=="number"?e:Number(e)}var rs={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function mt(e){let n=Object.prototype.toString.call(e);return e==null?String(e):rs[n]||"object"}function ir(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const a=window.getComputedStyle(n);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!0;n=n.parentElement}return!1}function Vl(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let n=e.parentElement;for(;n;){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function sr(e){return e&&typeof e=="object"&&"setInterval"in e}function cr(e){let n=!!e&&"length"in e&&e.length,a=mt(e);return a==="function"||sr(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function ur(e,n){let a=+n.length,l=0,o=e.length;for(;l<a;l++)e[o++]=n[l];return e.length=o,e}function is(e,n=[]){let a=n;return e!=null&&(cr(Object(e))?ur(a,typeof e=="string"?[e]:e):a.push(e)),a}function $e(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=mt(e);if(a!==mt(n))return!1;if(a==="object"){let l=Object.keys(e),o=Object.keys(n);if(l.length!==o.length)return!1;for(let r=0;r<l.length;r++){let i=l[r],c=e[i],s=n[i];if(!$e(c,s))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let o=e[l],r=n[l];if(!$e(o,r))return!1}return!0}return!1}function $l(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var fe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function hn(e){return fe(e)?!1:(e.charAt(0)=="-"&&(e=e.substring(1)),fe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function dr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function fr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function mr(e,n,a){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(a,"")}function El(e,n=!0,a=!0){n?e=mr(e,".",/\./g):e=e.replace(/\./g,""),a?e=mr(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function ss(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if($e(e,a))return!0}):n.indexOf(e)}function cs(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(l=>{if($e(e,l))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function we(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ye(e,...n){const a={};return n.forEach(l=>{for(const o in l)a[o]=e[o]}),a}function _e(e,...n){const a=[];n.forEach(o=>{Reflect.apply([].push,a,Reflect.ownKeys(o))});const l={};for(const o in e)a.includes(o)||(l[o]=e[o]);return l}var us=(e,n,a)=>{const l=Object.assign({},e),o=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{o.hasOwnProperty(r)?typeof o[r]=="string"&&(l[r]=n[o[r]]):n[r]&&(l[r]=n[r])}),l):e};function Dl(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var rt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Ye=(e,n,a)=>Math.min(Math.max(e,n),a);function pn(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function ds(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var Ce=Symbol.for("BroadcastKey"),Il=class{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(e,n,a){this.parent=e,this.proxy=n,this.name=a,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(a=>e===a);n!==-1&&this.children.splice(n,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(e,n,a){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,o={matched:e,action:n,args:a};return this.persistantMessages.set(l,o),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(n=>{e.push(n)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,n){if(!n||n.messagingPolicy==="Once"&&n.resolved===!0)return!1;let a=!1;return!n.name||n.name==="*"||n.name==="+"||$l(n.name)&&e&&n.name.test(e)?a=!0:typeof n.name=="function"?a=Reflect.apply(n.name,null,[e]):n.name===e&&(a=!0),a}trigger(e,n,a){let l=null;const o=this.callbacks.get(n);typeof o=="function"&&(l=Reflect.apply(o,this.proxy,[...a]));const r=this.proxy??{};typeof r[n]=="function"&&(l=Reflect.apply(r[n],r,[...a])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(l)}pull(){let e=this.parent;for(;e;){const n=e.getPersistantMessages();Array.isArray(n)&&n.length>0&&n.forEach(a=>{if(this.isMatched(this.name,a.matched))try{this.trigger(a.matched,a.action,a.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...a){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,a)){const r=e.resolve,i=e.uniqueId??"",c=(...s)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...s)};e.resolve=c}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):$l(e.name)&&this.name&&e.name.test(this.name)?l=!0:typeof e.name=="function"?l=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(l=!0);const o=[];if(l){const r=this.callbacks.get(n);if(typeof r=="function"){const c=Reflect.apply(r,this.proxy,[...a]);c!=null&&o.push(c)}const i=this.proxy??{};if(typeof i[n]=="function"){const c=Reflect.apply(i[n],i,[...a]);c!=null&&o.push(c)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...o),e.messagingPolicy==="Once")return o}return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...e},n,...a]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,o,[...i])}),o}emitToChildren(e,n,...a){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,a)){const o=e.resolve,r=e.uniqueId??"",i=(...c)=>{this.deletePersistantMessage(r),typeof o=="function"&&o(...c)};e.resolve=i}e.cachePolicy="None"}const l=[];return this.children.forEach(o=>{const r=Reflect.apply(o.emit,o,[{...e},n,...a]);r!=null&&Array.isArray(r)&&Reflect.apply([].push,l,[...r])}),l}on(e,n){this.callbacks.set(e,n)}};function gn(e,n,a,l){const o=new Il(n,e,a);if(l&&typeof l=="object")for(const r in l)o.on(r,l[r]);return o}function fs(e,n,a){const l=a;if(l[Ce])return l[Ce];const o=new Il((0,t.inject)(Ce,null),a,e);if(n&&typeof n=="object")for(const r in n)o.on(r,n[r]);return l[Ce]=o,(0,t.provide)(Ce,o),(0,t.onUnmounted)(()=>{o.destroy(),l[Ce]=void 0}),o}function zt(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[Ce]??(0,t.inject)(Ce,null):(0,t.inject)(Ce,null)}var ms=class{error(e,n){const a=n,l=n||(0,t.hasInjectionContext)()?zt(n):null;l?l.emit({name:"*"},"setErrorTip",e):typeof a.setErrorTip=="function"&&a.setErrorTip(e)}reset(e){const n=e,a=e||(0,t.hasInjectionContext)()?zt(e):null;a?a.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}success(e){const n=e,a=e||(0,t.hasInjectionContext)()?zt(e):null;a?a.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}decorate(e,n,a){Array.isArray(e)||(e=[e]);const l=a,o=a||(0,t.hasInjectionContext)()?zt(a):null,r=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=e.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!r&&i?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):r&&!i&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(a))}getValue(e){return e.modelValue}},Lt=new ms;function hs(e){Lt=e}function ps(e){Lt?Object.assign(Lt,e):Lt=e}function gs(e,n){ot.Schema.setValidator(e,n)}function ys(e){ot.Schema.deleteValidator(e)}var hr=["blur","clear"];function bs(e){hr=e}function pr(){return hr}var gr=["focus","change","setValue"];function vs(e){gr=e}function yr(){return gr}function Ss(e){ot.Schema.messages(e)}function Rt(...e){const n=[];return e.forEach(a=>{a.forEach(l=>{const o=n.findIndex(r=>r.type===l.type);o!==-1&&n.splice(o,1),n.push(l)})}),n}function yn(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var Le=Symbol("ValidateSchemaKey"),br=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,a){this.parent=e,this.descriptor=n,this.proxy=a,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let e=this.proxy.$attrs;e&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const n=yn(Rt(this.attrRules,this.rules)),a=[];for(let o in e){let r=e[o];if(this.hasValidator(o,!0)){if(r===!1)continue;let c={type:o};r!==null&&typeof r=="object"&&Object.assign(c,r),a.push(c);continue}let i=this.getValidator(o);if(i!==null){let c={type:o,validator:i};a.push(c)}}this.attrRules=yn(a);const l=Rt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(l,n)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...n){const a=this.descriptor.validateHandler;if(a&&typeof a[e]=="function")return Reflect.apply(a[e],a,[...n]);const l=Lt;return l&&typeof l[e]=="function"?Reflect.apply(l[e],l,[...n]):null}decorate(e,n){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,n,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(e,n,a=!1){a?ot.Schema.setValidator(e,n):this.validators[e]=n}getValidator(e){let n=this.validators[e]??null;return n||(n=this.parent?.getValidator(e)??null),n}deleteValidator(e,n=!1){n?ot.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return ot.Schema.hasValidator(e);{let a=Reflect.has(this.validators,e);return!a&&this.parent!==null&&(a=this.parent.hasValidator(e,!1)),a}}setRule(e){const n=Rt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=yn(e):this.rules=yn([e]);const a=Rt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(a,n)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Rt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const a={[`${n}`]:e},l=this.getValue(),o={[`${n}`]:l},r=new ot.Schema(a),i=this.proxy??o;return r.validate(o,{context:i}).then(c=>{if(c.pass)this.success();else{let s="error";Array.isArray(c.errors)&&c.errors.length>0&&(s=c.errors[0].message??s,c.errors=[c.errors[0]],c.errors[0].ref=i),this.error(s)}return c}).catch(c=>{const s=c.message??`${c}`;return this.error(s),c})}}return Promise.resolve({pass:!0})}};function bn(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(o){return o[l]}}}return new br(n,a,e)}var vn=Symbol.for("EventEmitterKey"),vr=class{register=new Map;proxy;constructor(e){this.proxy=e}destroy(){this.proxy=null,this.register.clear()}off(e,n){let a=this.register.get(e);if(a&&Array.isArray(a)){let l=a.findIndex(o=>o===n);l!==-1&&a.splice(l,1)}}on(e,n){let a=this.register.get(e);a||(a=new Array,this.register.set(e,a)),a.push(n)}emit(e,...n){const a=this.register.get(e);a&&a.forEach(l=>{try{Reflect.apply(l,null,[e,...n])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[e,...n])}};function Ie(e,n){let a=null;return function(...l){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...l])},n)}}function Sn(e,n){let a=0;return function(...l){const o=new Date().getTime();o-a<n||(a=o,Reflect.apply(e,null,[...l]))}}function ks(e,n){const a=Ie((l,o)=>{e=l,o()},n);return(0,t.customRef)((l,o)=>({get(){return l(),e},set(r){a(r,o)}}))}function ws(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function ql(e,n,a,l=0,o=!0){let r=n,i=0;if(o){const s=e();if(i++,s||i>a)return}const c=()=>{const s=e();i++,!(s||i>a)&&(r+=l,setTimeout(c,r))};setTimeout(c,r)}var Ee=Symbol("DomainKey"),ht=Symbol("DataItemsKey"),kn=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}_props=(0,t.reactive)({});constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(e,n=[]){for(const a in e){const l=e[a];n.length>0&&n.indexOf(l)!==-1||(this._props[a]=l)}}has(e){if(Reflect.has(this._props,e)){const n=this._props[e];if(n!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,n){this._props[e]=n}get(e,n){if(Reflect.has(this._props,e)){const a=this._props[e];if(a!=null)return a}return this.parent==null?n:this.parent.get(e,n)}getForParent(e,n){return this.parent==null?n:this.parent.get(e,n)}getForSelf(e){return this._props[e]}getAll(e){const n=[];let a=this;for(;a!=null;){if(Reflect.has(a._props,e)){const l=a._props[e];n.push(l)}a=a._parent}return n}},Cs=new kn;function pt(){return Cs}function Je(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[Ee]??(0,t.inject)(Ee,null):(0,t.inject)(Ee,null)}var xl=Symbol("OriginalDateKey");function Pl(e,n,a=[],l){const o=(0,t.getCurrentInstance)();let r=o?.proxy,i=(0,t.inject)(Ee,null);i===null&&(i=pt());const c=e||n.prop||n.name;let s=new kn(c);s.parent=i;const d=b=>{r[xl]||y(b),s?.set("modelValue",b)},h=()=>s?.getForSelf("modelValue")??null,u=()=>r[xl]??null,y=b=>{const k={};ft(!0,k,(0,t.toRaw)(b)),r[xl]=k};(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,b=>{s?.merge(b,a)},{immediate:!0}):s.merge(n,a),n.modelValue&&y(n.modelValue);const S=(b,k)=>{s?.set(b,k)},w=b=>s?.getForSelf(b)??null;if(r[Ee]=s,(0,t.provide)(Ee,s),o!==null){const b=(0,t.inject)(Ce,null),k=gn(r,b,c,l);s.broadcast=k,r[Ce]=k,(0,t.provide)(Ce,k),r.broadcast=(m,N,...A)=>Reflect.apply(k.emit,k,[m,N,...A]);const f=(0,t.inject)(Le,null),v=bn(r,f,{componentName:""});s.validateSchema=v,r[Le]=v,(0,t.provide)(Le,v),r[ht]=new Map,r.validate=(m=!0)=>{const N=[];let A=null;const p={deep:!1};if(m===!0)A={name:"*"};else if(Array.isArray(m)&&m.length>0){const g=m;A={name:C=>C?g.indexOf(C)!==-1:!1}}else if(m!=null&&typeof m=="object"){const g=m;if(Object.assign(p,g),Array.isArray(g.include)&&g.include.length>0){const C=g.include;A={name:T=>T?C.indexOf(T)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const C=g.exclude;A={name:T=>T?C.indexOf(T)===-1:!1}}else A={name:"*"}}if(A){const g=k?.emitToChildren(A,"validate",p);g&&Reflect.apply([].push,N,g)}return N.length==1?N[0]:N.length>1?Promise.all(N).then(g=>{let C=[];return g.forEach(T=>{T.pass===!1&&Array.isArray(T.errors)&&(C=[...C,...T.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(m,N=!0,A=!1)=>{if(A===!0){Reflect.ownKeys(m).forEach(p=>{let g=String(p);const C={componentName:"",fieldName:g,pureDataValidate:!0};if(s){const T=kr(s,g,C,k,v);r[ht].set(g,T);const $=m[g];$&&T.validateSchema.setRule($)}});return}if(N){const p=Reflect.ownKeys(m);k?.emitToChildren({name:g=>p.includes(g),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",m,!1)}},r.clearValidate=(m=!0)=>{let N=null;if(m===!0)N={name:"*"};else if(Array.isArray(m)&&m.length>0){const A=m;N={name:p=>p?A.indexOf(p)!==-1:!1}}else if(m!=null&&typeof m=="object"){const A=m;if(Array.isArray(A.include)&&A.include.length>0){const p=A.include;N={name:g=>g?p.indexOf(g)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const p=A.exclude;N={name:g=>g?p.indexOf(g)===-1:!1}}else N={name:"*"}}N&&k?.emitToChildren(N,"clearValidate",!1)},r.resetFields=m=>{const N=h();if(!N)return;const A={};if(ft(!0,A,u()??{}),Array.isArray(m))m.forEach(p=>{N[p]=A[p]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(p=>{N[p]=A[p]});else if(m&&Array.isArray(m.exclude)){let p=m.exclude??[];Reflect.ownKeys(A).forEach(g=>{p.includes(g)||(N[g]=A[g])})}else Object.assign(N,A);r.clearValidate(m)},r.setModelValue=(m,N)=>{if(!N||N===c)d(m);else{const A={name:N,messagingPolicy:"Once"};k?.emitToChildren(A,"setModelValue",m)}},r.getModelValue=()=>h(),r.setDomainProperty=(m,N)=>{S(m,N)},r.getDomainProperty=m=>w(m),setTimeout(function(){k?.pull()},0)}return(0,t.onUnmounted)(function(){s?.validateSchema&&(s.validateSchema.destroy(),r[Le]=void 0,(0,t.provide)(Le,null)),s?.broadcast&&(s?.broadcast?.destroy(),r[Ce]=void 0,(0,t.provide)(Ce,null)),s?.destroy(),r[Ee]=void 0,(0,t.provide)(Ee,null),r[ht]&&(r[ht].clear(),r[ht]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,s=null,r=null}),s}function Sr(e,n,a=[]){let l=(0,t.getCurrentInstance)()?.proxy,o=(0,t.inject)(Ee,null);o===null&&(o=pt());let r=new kn(e||n.prop||n.name);return r.parent=o,(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,i=>{r?.merge(i,a)},{immediate:!0}):r.merge(n,a),l[Ee]=r,(0,t.provide)(Ee,r),(0,t.onUnmounted)(()=>{r?.destroy(),l[Ee]=void 0,(0,t.provide)(Ee,null),r=null,l=null}),r}function Be(e,n,a){const l=(0,t.getCurrentInstance)()?.proxy,o=n??"";let r=gn(l,(0,t.inject)(Ce,null),o,a);l[Ce]=r,(0,t.provide)(Ce,r),l.broadcast=(h,u,...y)=>r?Reflect.apply(r.emit,r,[h,u,...y]):null;const i=(0,t.inject)(Le,null);e.fieldName=e.fieldName??o;let c=bn(l,i,e);l[Le]=c,(0,t.provide)(Le,c),l.validate=(h=null)=>{if(!c)return Promise.resolve({pass:!0});const u=[];let y=!1,S=!1;if(Array.isArray(h)&&h.indexOf(o)!==-1)S=!0,y=!0;else if(h&&typeof h=="object"){const w=h,b=w.ignoreDisabled??!0,k=w.ignoreReadonly??!0,f=w.ignoreHidden??!0;b===!0&&e.disabled===!0||k===!0&&e.readonly===!0||f===!0&&ir(l.$el)?S=!1:(Array.isArray(w.include)&&w.include.indexOf(o)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(o),S=!0),y=w.deep??!1}else typeof h=="boolean"&&(y=h),S=!0;if(S){const w=c?.validate();u.push(w)}if(y){let w=null;const b={deep:!1};if(h===!0)w={name:"*"};else if(Array.isArray(h)&&h.length>0){const k=h;w={name:f=>f?k.indexOf(f)!==-1:!1}}else if(h!=null&&typeof h=="object"){const k=h;if(Object.assign(b,k),Array.isArray(k.include)&&k.include.length>0){const f=k.include;w={name:v=>v?f.indexOf(v)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;w={name:v=>v?f.indexOf(v)===-1:!1}}else w={name:"*"}}if(w&&r){const k=r.emitToChildren(w,"validate",b);Reflect.apply([].push,u,k)}}return u.length==1?u[0]:u.length>1?Promise.all(u).then(w=>{let b=[];return w.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(b=[...b,...k.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=h=>c?.setRule(h),l.setNameValidateRules=(h,u=!1)=>{const y=h[o];y&&c?.setRule(y),u&&r&&r.emitToChildren({name:S=>Reflect.ownKeys(h).includes(S)},"setNameValidateRules",h,!1)},l.clearValidate=(h=null)=>{(!Array.isArray(h)||h.indexOf(n??"")!==-1)&&c?.clear();let u=null;if(h===!0)u={name:"*"};else if(Array.isArray(h)&&h.length>0){const y=h;u={name:S=>S?y.indexOf(S)!==-1:!1}}else if(h!=null&&typeof h=="object"){const y=h;if(Array.isArray(y.include)&&y.include.length>0){const S=y.include;u={name:w=>w?S.indexOf(w)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const S=y.exclude;u={name:w=>w?S.indexOf(w)===-1:!1}}else u={name:"*"}}u&&r&&r.emitToChildren(u,"clearValidate",!1)};let s=new vr(l);l[vn]=s;const d=Ie((h="validate")=>{c&&(h==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:pr()).forEach(h=>{s&&s.on(h,u=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:yr()).forEach(h=>{s&&s.on(h,u=>{d("reset")})}),setTimeout(function(){r?.pull()},0),(0,t.onUnmounted)(()=>{r?.destroy(),l[Ce]=void 0,(0,t.provide)(Ce,null),r=null,c?.destroy(),l[Le]=void 0,(0,t.provide)(Le,null),c=null,s?.destroy(),l[vn]=void 0,s=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:r,validateSchema:c,emitEvent:(h,...u)=>{s&&Reflect.apply(s.emit,s,[h,...u])},onEvent:(h,u)=>{s&&Reflect.apply(s.on,s,[u])},offEvent:(h,u)=>{s&&Reflect.apply(s.off,s,[u])}}}function kr(e,n,a,l,o){const r={},i=n??"",c={getValue(){const h=e.getForSelf("modelValue");return h?h[i]:null},isExist(){const h=e.getForSelf("modelValue");return h?Reflect.has(h,i):!1}};a.fieldName=i,a.validateHandler={getValue(h){return c.getValue()}};let s=bn({},o,a);r.validate=(h=null)=>{if(!c.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const u=[];let y=!1,S=!1;if(Array.isArray(h)&&h.indexOf(i)!==-1)S=!0,y=!0;else if(h&&typeof h=="object"){const w=h;Array.isArray(w.include)&&w.include.indexOf(i)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(i),S=!0,y=w.deep??!1}else typeof h=="boolean"&&(y=h),S=!0;if(S&&s){const w=s.validate();u.push(w)}if(y){let w=null;const b={deep:!1};if(h===!0)w={name:"*"};else if(Array.isArray(h)&&h.length>0){const k=h;w={name:f=>f?k.indexOf(f)!==-1:!1}}else if(h!=null&&typeof h=="object"){const k=h;if(Object.assign(b,k),Array.isArray(k.include)&&k.include.length>0){const f=k.include;w={name:v=>v?f.indexOf(v)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;w={name:v=>v?f.indexOf(v)===-1:!1}}else w={name:"*"}}if(w&&d){const k=d.emitToChildren(w,"validate",b);Reflect.apply([].push,u,k)}}return u.length==1?u[0]:u.length>1?Promise.all(u).then(w=>{let b=[];return w.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(b=[...b,...k.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=h=>s?.setRule(h),r.setNameValidateRules=h=>{const u=h[i];u&&s?.setRule(u)};let d=gn(null,l,i,r);return(0,t.onUnmounted)(()=>{s=null,d=null}),{broadcast:d,validateSchema:s}}function gt(){let e=(0,t.getCurrentInstance)()?.proxy,n=new vr(e);return e[vn]=n,(0,t.onUnmounted)(()=>{n?.destroy(),e[vn]=void 0,n=null,e=null}),{emitEvent:(a,...l)=>{n&&Reflect.apply(n.emit,n,[a,...l])},onEvent:(a,l)=>{n&&Reflect.apply(n.on,n,[l])},offEvent:(a,l)=>{n&&Reflect.apply(n.off,n,[l])}}}var me=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ce(e)}px`:"",Ns=me;function ce(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let o=Number(e.substring(0,a)),r=1;if(Ze){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),c=i.indexOf("px");c>0&&(r=Number(i.substring(0,c)))}return o*=r,o}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))*n;const l=Number(e);return isNaN(l)?0:l}function As(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}var et="PageStateKey";function Oe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ce(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ce(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ce(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ce(e.right))),n}function Ml(e,n,a={},l=!0,o=-1,r=-1,i=0,c=0){if(e.headerHeight=ce(a.headerHeight??n.headerHeight??-1),e.headerPadding=Oe(a.headerPadding??n.headerPadding),e.footerHeight=ce(a.footerHeight??n.footerHeight??-1),e.footerPadding=Oe(a.footerPadding??n.footerPadding),e.contentPadding=Oe(a.contentPadding??n.contentPadding),l){const s=a.height??n.height;s?e.height=ce(s,r):e.height=ce(r)-ce(i,r)-ce(c,r),e.width=ce(a.width??n.width??0,o)}}function wr(e,n={}){const a={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},o=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});o&&(l.safeAreaTop=ce(o.top),l.safeAreaBottom=ce(o.bottom),l.safeAreaLeft=ce(o.left),l.safeAreaRight=ce(o.right));const r=e.get("pageLayout");if(!r)return null;Ml(l,r,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const i=(0,t.reactive)(l),c=e.getForParent(et);c&&(l.height=An(e,c),l.width=Bn(e,c),(0,t.watch)([()=>An(e,c),()=>Bn(e,c)],([d,h])=>{i.height=d,i.width=h}));const s=!c;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([d,h,u=-1,y=-1,S=0,w=0])=>{Ml(i,h,n,s,u,y,S,w)}),e.set(et,i),i}function wn(e){return e.get(et)}function Cn(e,n){if(n=n??e.get(et),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function Nn(e,n){if(n=n??e.get(et),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function An(e,n){if(n=n??e.get(et),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=Cn(e,n),l=Nn(e,n),o=ce(n.contentPadding.top??0),r=ce(n.contentPadding.bottom??0);return n.height-a-l-o-r}return 0}function Bn(e,n){if(n=n??e.get(et),n){const a=ce(n.contentPadding.left??0),l=ce(n.contentPadding.right??0);return n.contentInnerWidth??n.width-a-l}return 0}function Bs(e){return!!e.getForParent(et)}var zl=Symbol.for("InnerPageScopeKey");function Cr(e){(0,t.provide)(zl,e)}function Ot(e=!1){return(0,t.inject)(zl,e)}var Ll=Symbol.for("AbstractPageScopeKey");function Nr(e){(0,t.provide)(Ll,e)}function Ft(e=!1){return(0,t.inject)(Ll,e)}var tt=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function Tn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Te(e,n,a=tt.Near,l){const o=Je();return o==null?e:a===tt.Parent?(0,t.computed)(()=>{const r=o.getAll(n);for(let c=r.length-1;c>=0;c--){const s=r[c];if(Tn(s,l))return s}const i=e.value;return Tn(i,l)?i:null}):(0,t.computed)(()=>{const r=e.value;if(Tn(r,l))return r;const i=o.getAll(n);for(let c=0;c<i.length;c++){const s=i[c];if(Tn(s,l))return s}return null})}function Vn(e){return Te(e,"readonly",tt.Near)}function $n(e){return Te(e,"disabled",tt.Near)}function Ar(e){return Te(e,"browse",tt.Near)}function qe(e){const n=(0,t.ref)(null),a=$n((0,t.computed)(()=>n.value??e.disabled)),l=(0,t.ref)(null);return{innerDisabled:n,disabled:a,innerReadonly:l,readonly:Vn((0,t.computed)(()=>l.value??e.readonly)),browse:Ar((0,t.computed)(()=>e.browse))}}function xe(e,n="modelValue",a=null,l){const o=(0,t.toRef)(e,n);let r=o.value;typeof a=="function"&&(r=a(o.value));const i=(0,t.ref)(r);return(0,t.watch)(o,c=>{if(typeof a=="function"){const s=a(c);s!==i.value&&(i.value=s,l&&l("setValue",s))}else c!==i.value&&(i.value=c,l&&l("setValue",c))}),i}var Br=new Map,En=new Map,Rl=null;function Ts(e){Rl=e}function Tr(e,n,a){if(a){let l=En.get(a);l||(l=new Map,En.set(a,l)),l.set(e,n)}else Br.set(e,n)}function nt(e,n,a){!a&&Rl&&(a=Rl(e)??void 0);let l=null;if(a){let o=En.get(a);o&&(l=o.get(n))}return l||(l=Br.get(n)),l}function Vs(e,n){for(let a in e){const l=e[a];Tr(a,l,n)}}function $s(e){En.delete(e)}function Es(){return{top:0,left:0,bottom:0,right:0}}function Ds(){return Ze?{rootWidth:document.documentElement.clientWidth||document.body.clientWidth,rootHeight:document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{headerHeight:-1,footerHeight:-1}}}function Is(e,n){let a=e;if(n.componentPrefix){const l=a.indexOf("-");l!==-1?a=`${n.componentPrefix}${a.slice(l)}`:a=`${n.componentPrefix}-${a}`}return pn(a)}var qs=class{packages;_version;get version(){return this._version}constructor(e,n){this.packages=e,this._version=n}install(e,n){n?.install!==!1&&this.packages.forEach(l=>{if(l.install)e.use(l,n);else if(l.name){const o=Is(l.name,n);e.component(o,l)}});const a=pt();if(n.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l={...n},o=Ie(()=>{const r={...l};this.updateLayout(r,a)},120);new window.ResizeObserver(o).observe(window.document.body)}this.updateLayout(n,a)}updateLayout(e,n){const a=e.headerBarHeight??0,l=e.footerBarHeight??0,o=ft({},Es(),e.safeAreaInset),r=Ds(),i=ft({},r.pageLayout,e.pageLayout);n=n??pt(),n.set("safeAreaInset",o),n.set("headerBarHeight",a),n.set("footerBarHeight",l),n.set("pageLayout",i),n.set("rootWidth",r.rootWidth),n.set("rootHeight",r.rootHeight);const c=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const s in e)c.indexOf(s)===-1&&n.set(s,e[s])}setScopeGetter(e){Ts(e)}setAPI(e,n,a){Tr(e,n,a)}getAPI(e,n,a){return nt(e,n,a)}batchSetAPI(e,n){Vs(e,n)}clearScopeAPI(e){$s(e)}getRootDomain(){return pt()}};function ee(e){const n=`fox-${e}`,a=pn(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=a,l.install=(o,r)=>{let i=l.name;r?.componentPrefix&&(i=`${r.componentPrefix}-${l.baseName}`,i=pn(i)),o.component(i,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var xs=(e,n)=>{let a=document.body;const l=e.teleport||"body";l!="body"&&(ar(l)?a=document.querySelector(l):a=e.teleport);const o=document.createElement("view");o.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let r={};fn(n.wrapper)?r=n.wrapper(a,o):r=n.wrapper;const i=(0,t.createApp)(r,e),c=n.components;return c&&c.forEach(s=>{i.use(s)}),a.appendChild(o),{instance:i.mount(o),unmount:()=>{i.unmount(),a.removeChild(o)}}},Vr=(e,n)=>e?(0,t.h)(e,n):"";function be(e,n=null){if(n||(n=(0,t.getCurrentInstance)()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}var ge={browse:{type:[String],required:!1,default:()=>null},disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},ve={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},$r={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Er={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!1},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},Dr=[];for(const e in Er)Dr.push(e);var Ps={name:{type:String,required:!1,default:()=>""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Ms=(e,n)=>({inheritAttrs:!0,props:{...ge,...$r,...Ps},setup(a,{slots:l}){const o=Ft(!1),r=Ot(!1),i=Pl(a.name,a);if(i){const u=wr(i,a);be({getPageContentHeight:()=>An(i,u),getPageContentWidth:()=>Bn(i,u),getPageHeaderHeight:()=>Cn(i,u),getPageFooterHeight:()=>Nn(i,u)}),u&&r&&(u.contentHeight="100%")}const c=(0,t.computed)(()=>({[e]:!0,"is-inner":r})),s=(0,t.computed)(()=>({})),d=(0,t.getCurrentInstance)(),h=(u,y=!1)=>{const S=d?.proxy;S&&typeof S.setNameValidateRules=="function"&&S.setNameValidateRules(u,!0,y)};return(0,t.watch)([()=>a.rules,()=>a.pureDataRules],([u,y],[S,w])=>{if(u&&S){const b=(0,t.toRaw)(S),k=(0,t.toRaw)(u),f=k?Reflect.ownKeys(k):[];(b?Reflect.ownKeys(b):[]).forEach(v=>{f.includes(v)||(k[v]=[])}),h(k)}if(y&&w){const b=(0,t.toRaw)(w),k=(0,t.toRaw)(y),f=k?Reflect.ownKeys(k):[];(b?Reflect.ownKeys(b):[]).forEach(v=>{f.includes(v)||(k[v]=[])}),h(k,!0)}},{deep:!0}),(0,t.onMounted)(()=>{a.rules&&h((0,t.toRaw)(a.rules)),a.pureDataRules&&h((0,t.toRaw)(a.pureDataRules),!0)}),()=>o?l?.default?.():(0,t.h)("div",{class:c.value,style:s.value},[l?.default?.()])}}),{componentName:zs,create:Ls,scope:Rs}=ee("page"),Os=Ls(Ms(zs,Rs)),Ol=Os;function Fl(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Dn(e){const n=(0,t.unref)(e),a=window.getComputedStyle(n,null),l=parseFloat(a.getPropertyValue("padding-left")),o=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),i=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-o,height:n.clientHeight-r-i}}var Ir={headerbar:{},radio:{},checkbox:{}};function Fs(e){Object.assign(Ir,e)}function In(){return Ir}var Ks=(e,n,a,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(o,r){const i=Ft(!1),c=Ot(!1),s=i?null:Je(),d=s?wn(s):null,h=In(),u=e,y=(0,t.computed)(()=>{const D={[u]:!0,[`${u}--border`]:o.border,[`${u}--fixed`]:o.fixed};return c||(D[`${u}--safe-area-inset-top`]=o.safeAreaInsetTop),D}),S=(0,t.computed)(()=>({[`${u}__inner`]:!0,[`${u}__inner--${o.align}`]:!0})),w=Me(o.height)?null:ce(o.height),b=(0,t.computed)(()=>{const D={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i)return D;if(s&&d){const M=Oe(o.padding??d.headerPadding);if(Object.assign(D,M),Me(w)||(d.headerHeight=w),D.height=d.headerHeight,D.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,D.safeAreaTop>0){const z=ce(M.top??0);D.top=D.safeAreaTop+z,D.height&&D.height>0&&(D.height=D.height+D.safeAreaTop)}return D}if(Me(w)||(D.height=w),o.padding){const M=Oe(o.padding);Object.assign(D,M)}return D}),k=(0,t.ref)(null),f=()=>d&&k.value&&!Vl(k.value)?(l||(d.headerAllHeight=Fl(k.value).height),d.headerMounted=!0,!0):!1,v=Ie(f,120);let m=null;(0,t.onMounted)(()=>{i||d&&(ql(f,50,5,50,!0),window.ResizeObserver&&k.value&&(m=new window.ResizeObserver(v),m.observe(k.value)))}),(0,t.onUnmounted)(()=>{i||d&&(d.headerMounted=!1,m&&(m.disconnect(),m=null))});const N=(0,t.computed)(()=>{const D={};return i||(b.value.height!==null&&b.value.height!==void 0&&(D.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(D.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(D.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(D.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(D.paddingBottom=`${b.value.bottom}px`)),D}),A=(0,t.computed)(()=>{const D=b.value?.height;return Me(D)||D<0?!0:D>0});function p(){r.emit("back")}function g(){r.emit("click-title")}function C(){r.emit("click-right")}function T(){r.emit("click-right-text")}const $=()=>{if(!o.leftShow)return null;const D=[];if(r.slots.left)D.push(r.slots.left());else{if(r.slots.leftIcon){const M=(0,t.h)("view",{class:"left-icon",onClick:p},[r.slots.leftIcon()]);D.push(M)}else{const M=o.leftIcon??h.headerbar.Left??a,z=(0,t.h)("view",{class:"left-icon",onClick:p},[(0,t.h)(M)]);D.push(z)}if(o.leftText){const M=(0,t.h)("view",{class:"left-text",onClick:p},[o.leftText]);D.push(M)}}return D.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},D)},V=()=>{if(!o.rightShow)return null;const D=[];if(r.slots.right)D.push(r.slots.right());else{if(o.rightText){const M=(0,t.h)("view",{class:"right-text",onClick:T},[o.rightText]);D.push(M)}if(r.slots.rightIcon){const M=(0,t.h)("view",{class:"right-icon",onClick:C},[r.slots.rightIcon()]);D.push(M)}else if(o.rightIcon){const M=(0,t.h)("view",{class:"right-icon",onClick:C},[(0,t.h)(o.rightIcon)]);D.push(M)}}return D.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},D)},H=()=>{if(!o.titleShow)return null;const D=[],M=r.slots.default?r.slots.default():null;if(M)D.push(M);else{if(o.title){const z=(0,t.h)("view",{class:"title-text"},[o.title]);D.push(z)}if(r.slots.titleIcon){const z=(0,t.h)("view",{class:"title-icon",onClick:g},[r.slots.titleIcon()]);D.push(z)}else if(o.titleIcon){const z=(0,t.h)("view",{class:"title-icon",onClick:g},[(0,t.h)(o.titleIcon)]);D.push(z)}}return D.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},D)},Z=()=>{const D=[],M=r.slots.bottom?r.slots.bottom():null;return M&&D.push(M),D.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},D)};return()=>{if(i||!A.value)return null;const D=[];if(r.slots.all)D.push(r.slots.all());else{const M=[],z=$();z&&M.push(z);const P=H();P&&M.push(P);const K=V();if(K&&M.push(K),M.length>0){const x=(0,t.h)("view",{class:S.value},M);D.push(x)}const j=Z();j&&D.push(j)}return D.length===0?null:(0,t.h)("view",{class:y.value,style:N.value,ref:k},D)}}}),{componentName:Us,create:Hs,scope:js}=ee("header-bar"),Ws=Hs(Ks(Us,js,oe.Left,!1)),Kl=Ws;function Ys(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,o){const r=Ft(!1),i=Ot(!1),c=r?null:Je(),s=c?wn(c):null,d=e,h=(0,t.computed)(()=>{const m={[d]:!0,[`${d}--${l.align}`]:!0,[`${d}--border`]:l.border,[`${d}--fixed`]:l.fixed};return i||(m[`${d}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),m}),u=Me(l.height)?null:ce(l.height),y=(0,t.computed)(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r)return m;if(c&&s){const N=Oe(l.padding??s.footerPadding);if(Object.assign(m,N),Me(u)||(s.footerHeight=u),m.height=s.footerHeight,m.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,m.safeAreaBottom>0){const A=ce(N.bottom??0);m.bottom=m.safeAreaBottom+A,m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)}return m}if(Me(u)||(m.height=u),l.padding){const N=Oe(l.padding);Object.assign(m,N)}return m}),S=(0,t.computed)(()=>{const m=y.value?.height;return Me(m)||m<0?!0:m>0}),w=(0,t.ref)(null),b=()=>s&&w.value&&!Vl(w.value)?(a||(s.footerAllHeight=Fl(w.value).height),s.footerMounted=!0,!0):!1,k=Ie(b,120);let f=null;(0,t.onMounted)(()=>{r||s&&(ql(b,50,5,50,!0),window.ResizeObserver&&(f=new window.ResizeObserver(k),f.observe(w.value)))}),(0,t.onUnmounted)(()=>{r||s&&(s.footerMounted=!1,f&&(f.disconnect(),f=null))});const v=(0,t.computed)(()=>{const m={};return r||(y.value.height!==null&&y.value.height!==void 0&&(m.height=me(y.value.height)),y.value.top!==null&&y.value.top!==void 0&&(m.paddingTop=me(y.value.top)),y.value.left!==null&&y.value.left!==void 0&&(m.paddingLeft=me(y.value.left)),y.value.right!==null&&y.value.right!==void 0&&(m.paddingRight=me(y.value.right)),y.value.bottom!==null&&y.value.bottom!==void 0&&(m.paddingBottom=me(y.value.bottom))),m});return()=>{if(r||!S.value)return null;const m=o.slots.default?o.slots.default():[];return(0,t.h)("view",{ref:w,class:h.value,style:v.value},m)}}}}var{componentName:Xs,create:Qs,scope:Gs}=ee("footer-bar"),Zs=Qs(Ys(Xs,Gs,!1)),Ul=Zs;function _s(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:l,attrs:o}){const r=Ft(!1),i=Ot(!1),c=r?null:Je(),s=(0,t.computed)(()=>({[e]:!0})),d=c?wn(c):null,h=(0,t.computed)(()=>{const b={};if(r)return b;if(c&&d){if(a.padding){const g=Oe(a.padding);Object.assign(d.contentPadding,g)}const k=Cn(c,d),f=Nn(c,d);let v="";d.contentHeight?v=`${d.contentHeight}`:v=`${d.height}px`,console.debug("[content]page height:",v),console.debug("[content]header height:",k),console.debug("[content]footer height:",f),console.debug("[content]padding:",d.contentPadding),b.height=v;let m=ce((d&&d.contentPadding&&d.contentPadding.top)??-1);(m>=0||k>0)&&(m=m<0?0:m,b.paddingTop=`${k+m}px`);let N=ce((d&&d.contentPadding&&d.contentPadding.bottom)??-1);(N>=0||f>0)&&(N=N<0?0:N,b.paddingBottom=`${f+N}px`);const A=ce((d&&d.contentPadding&&d.contentPadding.left)??-1);A>=0&&(b.paddingLeft=`${A}px`);const p=ce((d&&d.contentPadding&&d.contentPadding.right)??-1);return p>=0&&(b.paddingRight=`${p}px`),b}if(a.padding){const k=Oe(a.padding);k.left&&(b.paddingLeft=`${k.left}px`),k.top&&(b.paddingTop=`${k.top}px`),k.right&&(b.paddingRight=`${k.right}px`),k.bottom&&(b.paddingBottom=`${k.bottom}px`)}return b}),u=(0,t.ref)(null),y=()=>{if(d&&u.value){const b=Dn(u.value);d.contentInnerHeight=b.height,d.contentInnerWidth=b.width}},S=Ie(y,120);let w=null;return(0,t.onMounted)(()=>{i||r||(requestAnimationFrame(y),window.ResizeObserver&&u.value&&(w=new window.ResizeObserver(S),w.observe(u.value)))}),(0,t.onUnmounted)(()=>{i||r||w&&(w.disconnect(),w=null)}),()=>r?l.default?.():(0,t.h)(a.tag??"view",{...o,ref:u,class:s.value,style:h.value},l)}}}var{componentName:Js,create:ec,scope:tc}=ee("content"),nc=ec(_s(Js,tc)),Hl=nc,yt="GroupStateKey",qr=Symbol.for("GroupScopeKey");function qn(){return(0,t.inject)(qr,!1)}function xn(e=!0){(0,t.provide)(qr,e)}function lc(e,n={}){Reflect.ownKeys(n).forEach(a=>{if(typeof a!="string")return;const l=n[a];Me(l)||(e[a]=l)})}function ac(e,n={}){const a={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};lc(a,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(a),passport:0,order:{index:0}});return e.set(yt,l),l}function jl(e,n,a=-1,l=-1,o=!1,r,i,c){const s=e.get(yt);if(!s)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),l===-1&&(l=d.gutter??0),r||(r=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const h=ce(r),u=ce(i);c||(c=d.type??"grid");const y=()=>{const S=n===""||n===-1,w=ce(n);let b=de(a);const k=ce(l);if(!S){let m=(w-(b-1)*k)/b;for(;u!==-1&&m>u;)b++,m=(w-(b-1)*k)/b;for(;h!==-1&&b>1&&m<h;)b--,m=(w-(b-1)*k)/b}let f=!1;const v=s.layout;v.value.width=n,v.value.column!==b&&(v.value.column=b,f=!0),v.value.gutter!==k&&(v.value.gutter=k,f=!0),v.value.type!==c&&(v.value.type=c,f=!0),f&&(0,t.triggerRef)(v)};if(o)y();else{const S=++s.passport;setTimeout(()=>{S===s.passport&&y()},50)}}function Pn(e,n=!1){let a;return n?a=e.getForParent(yt):a=e.get(yt),a.layout}function Mn(e,n=!1){let a;return n?a=e.getForParent(yt):a=e.get(yt),a.order}function xr(e,n=1){if(n==="stretch")return-1;const a=de(n);return a===-1?100:100*a/e}function zn(e,n,a=1,l=0,o){const r={};let i=0;o?i=ce(o):i=xr(n.column,a),i>0&&(r.width=`${i}%`);const c=xr(n.column,l);c>0&&(r["margin-left"]=`${c}%`);const s=ce(n.gutter)/2;return s>0&&(r["padding-left"]=`${s}px`,r["padding-right"]=`${s}px`),r}function Ln(e,n,a=1,l=0){if(a==="stretch"){const s=e.index%n.column,d=s+(n.column-s);return e.index=e.index+(d-s),{"grid-column":`${s+1} / -1`}}let o=de(a);if(o===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(o>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const r=de(l)%n.column;let i=(e.index+r)%n.column,c=i+o;return c>n.column?(i=0,c=i+o,e.index=e.index+(n.column-i)+o):e.index=e.index+r+o,r>0?{"grid-column":`${i+1} / span ${o}`}:{"grid-column-start":`span ${o}`}}var Pr=Symbol("RollingStateKey");function oc(e){(0,t.provide)(Pr,e)}function rc(){return(0,t.inject)(Pr,null)}function Wl(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),o=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-o}else n=e.offsetHeight;return n}function ic(e){let n=Wl(e);if(n<=0){const a=e.cloneNode(!0);a.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=Wl(a),document.body.removeChild(a)}return n}function sc(e,n,a){const l=typeof e=="number"?e:parseInt(e),o=typeof n=="number"?n:parseInt(n),r=typeof a=="number"?a:parseInt(a);if(l<=0)return"1fr";const i=(l-(o-1)*r)/o;return i>0?`${i}px`:"1fr"}function Mr(e){const n=[];return e.forEach(a=>{a.type===t.Fragment&&Array.isArray(a.children)?n.push(...Mr(a.children)):n.push(a)}),n}function cc(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Yl(e){function n(){return Mr(e?.()??[]).filter(cc)}return{getChildren:n}}var uc={...ge,...$r,...Er};function dc(e,n,a){return{props:uc,emits:["update:collapse","header-click"],setup(l,o){const r=Pl(l.prop??l.name,l,Dr),i=ac(r,{type:l.type}),c=qn();xn(!0);const s=l.rollingDisplay?rc():null,d=(0,t.ref)(null),h=(0,t.computed)(()=>l.rollingDisplay?s&&!s.disabled:!1),u=(0,t.computed)(()=>c&&r?Pn(r,!0).value:null),y=(0,t.getCurrentInstance)(),S=(L,O=!1)=>{const q=y?.proxy;q&&typeof q.setNameValidateRules=="function"&&q.setNameValidateRules(L,!0,O)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([L,O],[q,E])=>{if(L&&q){const F=(0,t.toRaw)(q),Y=(0,t.toRaw)(L),te=Y?Reflect.ownKeys(Y):[];(F?Reflect.ownKeys(F):[]).forEach(ae=>{te.includes(ae)||(Y[ae]=[])}),S(Y)}if(O&&E){const F=(0,t.toRaw)(E),Y=(0,t.toRaw)(O),te=Y?Reflect.ownKeys(Y):[];(F?Reflect.ownKeys(F):[]).forEach(ae=>{te.includes(ae)||(Y[ae]=[])}),S(Y,!0)}},{deep:!0});const w=e,b=(0,t.computed)(()=>{const L={};if(L.height=M.value,l.width)l.width!=="auto"&&(L.width=me(l.width));else{const O=c?Mn(r,!0):null;if(u.value&&O){if(u.value.type==="grid"){const q=Ln(O,u.value,l.span,l.offset);Object.assign(L,q)}else if(u.value.type==="flow"){const q=zn(O,u.value,l.span,l.offset,l.width);Object.assign(L,q)}}}return L}),k=(0,t.computed)(()=>{const L=i.layout.value.type;return L==="grid"||L==="flow"?{[`${w}--${L}`]:!0,[`${w}--${L}-justify-${l.justify}`]:!0,[`${w}--${L}-align-${l.align}`]:!0,[`${w}--gutter`]:!0}:{[`${w}--${L}`]:!0,[`${w}--gutter`]:!0}}),f=(0,t.computed)(()=>{if(i.layout.value.type==="grid"){let L="";if(l.columnWidth)L=`repeat(auto-fill, ${l.columnWidth})`;else{const O=sc(C.value,i.layout.value.column,i.layout.value.gutter);L=`repeat(${i.layout.value.column}, ${O})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":L}}}),v=(0,t.toRef)(l,"gutter"),m=(0,t.toRef)(l,"column"),N=(0,t.computed)(()=>c||h.value?!0:ke(l.isWrap)),A=[],p=L=>{A.push(L)},g=()=>{let L=A.length;A.splice(0,L)},C=(0,t.ref)(-1),T=L=>{const O=Dn(L).width;O>0&&O!==C.value&&(C.value=O)};jl(r,C.value,m.value,v.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([C,m,v],([L,O,q])=>{i.order.index=0,jl(r,L,O,q,!1,l.minItemWidth,l.maxItemWidth,l.type)});const $=(0,t.computed)(()=>z.value?l.expandText??"":l.collapseText??""),V=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),H=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!z.value,"is-collapse":z.value})),Z=(0,t.ref)(),D=(0,t.ref)(),M=(0,t.computed)(()=>P.value||me(l.height)||""),z=(0,t.ref)(!1),P=(0,t.ref)(""),K=(0,t.ref)(!1);let j=-1;const x=(L,O=!0)=>{const q=Z.value;if(q&&z.value!==L){if(j=j<=0?ic(q):j,K.value=!0,O)if(q.style["will-change"]="height",q.ontransitionend=function(){q.ontransitionend=null,this.style["will-change"]="auto",L||(P.value="",K.value=!1)},L){let E=0;l.collapseHeight?E=l.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(E=D.value.offsetHeight),P.value=`${j}px`,(0,t.nextTick)(()=>{P.value=`${E}px`})}else P.value=`${j}px`;else if(L){let E=0;l.collapseHeight?E=l.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(E=D.value.offsetHeight),P.value=`${E}px`}else K.value=!1,P.value=`${j}px`;z.value=L,o.emit("update:collapse",L)}};(0,t.watch)(()=>l.collapse,L=>{x(L)});const _=L=>{o.emit("header-click",L)},ne=()=>{W()},W=L=>{L=L??!z.value,x(L)};be({toggleCollapse:W,doLayout:()=>{A[0]&&(T(A[0]),jl(r,C.value,m.value,v.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let X=null,J=!0;const I=L=>{if(l.rules&&S((0,t.toRaw)(l.rules)),l.pureDataRules&&S((0,t.toRaw)(l.pureDataRules),!0),!!Ze&&(L&&x(ke(l.collapse),!1),l.autoLayout&&Array.isArray(A)&&A.length>0)){const O=A[0];if(T(O),window.ResizeObserver){const q=Ie(()=>T(O),120);X=new window.ResizeObserver(q),X.observe(O)}}},R=()=>{X?.disconnect(),X=null},Q=!h.value||s?.acquire();Q&&(d.value=h.value?!0:null),(0,t.onMounted)(()=>{if(Q&&(I(J),J=!1),h.value&&s){let L=null,O=s.initialHeight;s.observe(Z.value,q=>{if(q!==d.value)if(q)d.value=!0,z.value||(P.value=""),L=setTimeout(()=>{L=null,d.value!==!1&&(I(J),J=!1)},100);else{if(L!==null&&clearTimeout(L),d.value=!1,!z.value)if(J)P.value=s.initialHeight;else{let E=Wl(Z.value);E<=0?P.value=O:(P.value=`${E}px`,O=P.value)}J||R()}})}}),(0,t.onUnmounted)(()=>{X?.disconnect(),s&&s.unobserve(Z.value)});const G=(L="right")=>{const O=[];if($.value){const F=(0,t.h)("span",{class:V.value},[$.value]);O.push(F)}const q={class:H.value},E=(0,t.h)(l.collapseIcon??a,q);return O.push(E),O.length>0?(0,t.h)("div",{class:{[`${w}__header-collapse`]:!0,[`is-${L}`]:!0},onClick:ne},O):null},le=(L,O,q,E)=>{const F={...k.value};if(O===0&&(F[`${w}__first`]=!0),q>=E-1&&(F[`${w}__last`]=!0),N.value===!1){const Y=o.attrs.class;Y&&(F[`${Y}`]=!0)}return(0,t.h)("div",{ref:p,key:`${O}`,class:F,style:f.value},L)};return()=>{const L=l.prop??l.name;if(h.value&&d.value!==!0)return(0,t.h)(l.tag||"div",{ref:Z,prop:L,class:{[`${w}`]:!0,"is-collapse":K.value},style:b.value},[]);i.order.index=0;const O=[];let q=0;if(o.slots.header){const te=(0,t.h)("div",{key:`${q++}`,ref:D,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:_},[o.slots.header()]);O.push(te)}else{const te=[],ae=l.collapsePosition==="left";if(ae&&l.showCollapse){const se=G("left");se&&te.push(se)}if(l.title||o.slots.title){if(l.showMark){const se={class:{[`${w}__header-mark`]:!0}};l.markColor&&(se.style={background:l.markColor});const ue=(0,t.h)("div",se);te.push(ue)}if(o.slots.title){const se=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[o.slots.title()]);te.push(se)}else if(l.title){const se=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[l.title]);te.push(se)}}if(o.slots.toolbar&&te.push(o.slots.toolbar()),!ae&&l.showCollapse){const se=G("right");se&&te.push(se)}if(te.length>0){const se=(0,t.h)("div",{key:`${q++}`,ref:D,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:_},te);O.push(se)}}g();const{getChildren:E}=Yl(o.slots.default),F=E(),Y=i.layout.value.type;if(Y==="grid"){const te=le(F,q++,0,F.length);O.push(te)}else if(Y==="flow"){const te=le(F,q++,0,F.length);O.push(te)}else for(let te=0;te<F.length;te++){const ae=F[te],se=le([ae],q++,te,F.length);O.push(se)}return N.value?(0,t.h)(l.tag||"div",{ref:Z,prop:L,class:{[`${w}`]:!0,"is-collapse":K.value},style:b.value},[O]):O}}}}var{componentName:fc,create:mc,scope:hc}=ee("group"),pc=mc(dc(fc,hc,oe.RectUp)),Xl=pc;function gc(e){return e===window}var yc=/matrix\((.+)\)/,Ql=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(gc(n))return{x:0,y:0};let a=0,l=0,o=n;for(;o!==null;)a+=o.offsetLeft,l+=o.offsetTop,o=o.offsetParent;let r=0,i=0,c=0,s=0;for(o=n;o!==document;){i+=o.scrollTop,r+=o.scrollLeft;const{transform:d}=window.getComputedStyle(o);if(d){const h=yc.exec(d);if(h){let u=h[1].split(/\s*,\s*/);u.length==6&&(c+=Number(u[4]),s+=Number(u[5]))}}o=o.parentNode}return a-=r,l-=i,a+=c,l+=s,{x:a,y:l}},bc=class{watchedListeners=[];add(e){this.watchedListeners.push(e)}remove(e){const n=this.watchedListeners.indexOf(e);n!==-1&&this.watchedListeners.splice(n,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(e=>{try{e()}catch{}})}},vc=class{monitorRegister=new WeakMap;watch(e,n){let a=e.parentNode;const l=document.body.parentNode;for(;a&&a!==l;){let o=this.monitorRegister.get(a);o||(o=new bc,a.addEventListener("scroll",o.listen),a===document.body&&a.addEventListener("resize",o.listen),this.monitorRegister.set(a,o)),o.add(n),a=a.parentNode}}unwatch(e,n){let a=e.parentNode;const l=document.body.parentNode;for(;a&&a!==l;){let o=this.monitorRegister.get(a);o&&(o.remove(n),o.size()===0&&(this.monitorRegister.delete(a),a.removeEventListener("scroll",o.listen),a===document.body&&a.removeEventListener("resize",o.listen))),a=a.parentNode}}},Kt=new vc,zr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Sc,create:kc}=ee("price"),wc=kc({props:{...zr},setup(e){const n=(0,t.computed)(()=>({[Sc]:!0})),a=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>we(e.price)==0?"":un(e.price,e.decimalLength,!0,de(e.digits),e.separator));return{classes:n,showSymbol:a,intText:(0,t.computed)(()=>{let o=l.value;if(o.length==0)return"";let r=o.indexOf(".");return o.substring(0,r)}),decimalText:(0,t.computed)(()=>{let o=l.value;if(o.length==0)return"";let r=o.indexOf(".");return o.substring(r+1)})}}}),re=(e,n)=>{const a=e.__vccOpts||e;for(const[l,o]of n)a[l]=o;return a},Cc=["innerHTML"],Nc=["innerHTML"];function Ac(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Cc)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--${e.size}`)},(0,t.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,t.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Nc)):(0,t.createCommentVNode)("",!0)],2)}var Rn=re(wc,[["render",Ac]]),{componentName:Gl,create:Bc}=ee("hint-text"),Tc=Bc({components:{Price:Rn},props:{...zr,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:()=>6},showArrow:{type:Boolean,default:()=>!0},arrowOffset:{type:Number,default:()=>20},offset:{type:Number,default:()=>12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const a=(0,t.ref)({top:null,right:null,bottom:null,left:null}),l=(0,t.ref)({x:0,y:0}),o=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(e.placement),c=(0,t.ref)(!1),s=(0,t.ref)(null),d=(V,H,Z,D,M,z)=>{const P=document.documentElement.clientWidth||document.body.clientWidth,K=document.documentElement.clientHeight||document.body.clientHeight,j=V.split("-");let x=[];j[0]==="top"?x=["top","bottom","right","left"]:j[0]==="bottom"?x=["bottom","top","right","left"]:j[0]==="left"?x=["left","top","bottom","right"]:j[0]==="right"&&(x=["right","top","bottom","left"]);const _={top:null,right:null,bottom:null,left:null},ne=[];for(let W=0;W<x.length;W++){const U=x[W];if(ne[0]=U,j[1]&&(ne[1]=j[1]),U==="top"){const X=H.y-z-e.arrowSize-e.offset;if(X>=0){_.top=X;let J=0;j[1]==="start"?J=H.x:j[1]==="end"?J=H.x+Z-M:J=H.x+Z/2-M/2;const I=P-J-M;I<0?(J+=I,u.value=-I):u.value=0,_.left=J<0?0:J;break}}else if(U==="bottom"){const X=H.y+D+e.arrowSize+e.offset;if(X+z<=K){_.top=X;let J=0;j[1]==="start"?J=H.x:j[1]==="end"?J=H.x+Z-M:J=H.x+Z/2-M/2;const I=P-J-M;I<0?(J+=I,u.value=-I):u.value=0,_.left=J<0?0:J;break}}else if(U==="left"){const X=H.x-M-e.arrowSize-e.offset;if(X>=0){_.left=X;let J=0;j[1]==="start"?J=H.y:j[1]==="end"?J=H.y+D-z:J=H.y+D/2-z/2,_.top=J<0?0:J;break}}else if(U==="right"){const X=H.x+Z+e.arrowSize+e.offset;if(X+M<=P){_.left=X;let J=0;j[1]==="start"?J=H.y:j[1]==="end"?J=H.y+D-z:J=H.y+D/2-z/2,_.top=J<0?0:J;break}}}return{bestPlacement:ne.join("-"),bestInsetRect:_}},h=(V,H,Z=10)=>{if(!Ze||H===!1||!V)return;l.value=Ql(e.reference),o.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const D=s.value.offsetHeight,M=s.value.offsetWidth,{bestPlacement:z,bestInsetRect:P}=d(e.placement,l.value,o.value,r.value,M,D);i.value=z,a.value=P,c.value=!0},u=(0,t.ref)(0),y=Ie(()=>{h(e.message,e.visible)},10),S=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,V=>{S.value=V});const w=(0,t.computed)(()=>S.value&&b.value),b=(0,t.ref)(!0),k=Ie(V=>{const H=V[0];H&&(b.value=H.isIntersecting)},10),f=new IntersectionObserver(k);(0,t.watch)([()=>e.message,()=>e.visible],([V,H])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{h(e.message,e.visible)},0),Kt.watch(e.reference,y),f.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Kt.unwatch(e.reference,y),f.unobserve(e.reference),f.disconnect()});const v=(0,t.computed)(()=>{const V={[Gl]:!0};return i.value.startsWith("top")?V["is-top"]=!0:i.value.startsWith("right")?V["is-right"]=!0:i.value.startsWith("bottom")?V["is-bottom"]=!0:i.value.startsWith("right")&&(V["is-right"]=!0),e.size==="small"?V["is-small"]=!0:e.size==="large"&&(V["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(V[`${e.customClass}`]=!0),V}),m=(0,t.computed)(()=>{const V={};return a.value.top!==null&&(V.top=`${a.value.top}px`),a.value.right!==null&&(V.right=`${a.value.right}px`),a.value.bottom!==null&&(V.bottom=`${a.value.bottom}px`),a.value.left!==null&&(V.left=`${a.value.left}px`),e.autoFit&&(V["min-width"]=`${o.value}px`),V["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,c.value&&(V.opacity="1"),e.transition||(V.transition="none"),e.zIndex&&(V["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(V,e.customStyle),V}),N=(0,t.computed)(()=>{const V=[`${Gl}__content`];return e.customTextClass&&V.push(e.customTextClass),V}),A=(0,t.computed)(()=>{const V={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(V,e.customTextStyle),V}),p=(0,t.computed)(()=>({[`${Gl}__arrow`]:!0})),g=(0,t.computed)(()=>{const V={};return e.showArrow?(V.width=`${e.arrowSize}px`,V.height=`${e.arrowSize}px`,i.value==="top"?(V.left="50%",V.bottom=`-${e.arrowSize}px`,V.transform=" translate(-50%, 0%)"):i.value==="top-start"?(V.left=`${e.arrowOffset+u.value}px`,V.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(V.right=`${e.arrowOffset-u.value}px`,V.bottom=`-${e.arrowSize}px`):i.value==="right"?(V.left=`-${e.arrowSize}px`,V.top="50%",V.transform=" translate(0%, -50%)"):i.value==="right-start"?(V.left=`-${e.arrowSize}px`,V.top=`${e.arrowOffset}px`):i.value==="right-end"?(V.left=`-${e.arrowSize}px`,V.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(V.left="50%",V.top=`-${e.arrowSize}px`,V.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(V.left=`${e.arrowOffset+u.value}px`,V.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(V.right=`${e.arrowOffset-u.value}px`,V.top=`-${e.arrowSize}px`):i.value==="left"?(V.right=`-${e.arrowSize}px`,V.top="50%",V.transform=" translate(0%, -50%)"):i.value==="left-start"?(V.right=`-${e.arrowSize}px`,V.top=`${e.arrowOffset}px`):i.value==="left-end"&&(V.right=`-${e.arrowSize}px`,V.bottom=`-${e.arrowOffset}px`),V):{display:"none"}}),C=(0,t.computed)(()=>w.value&&e.closeOnClick),T=(0,t.computed)(()=>{const V={};return e.zIndex&&(V["z-index"]=`${e.zIndex}`),V});return{show:w,tipRef:s,classes:v,styles:m,textClasses:N,textStyles:A,arrowClasses:p,arrowStyles:g,overlayShow:C,overlayStyle:T,onClickOverlay:()=>{S.value=!1,n.emit("update:visible",!1)}}}}),Vc=["innerHTML"];function $c(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Price");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.overlayShow?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,t.normalizeStyle)(e.overlayStyle),onClick:n[0]||(n[0]=(...c)=>e.onClickOverlay&&e.onClickOverlay(...c))},null,4)):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"tipRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.textClasses),style:(0,t.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,Vc))],6),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.arrowClasses),style:(0,t.normalizeStyle)(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}var Lr=re(Tc,[["render",$c]]),On=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},Zl={},Ec=new On,bt=new Map,Fn=e=>{if(e){const n=document.getElementById(e);bt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of bt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}bt.clear()}},Dc=e=>{e.unmount=Fn;const n=document.getElementById(e.id);if(n){const a=bt.get(e.id);return a?e={...Zl,...a,...e}:e={...Zl,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(Lr,e),n),e.id}},Ic=e=>{e.unmount=Fn;let n=e.id??`hinttext_${Ec.get()}`;e={...Zl,...e},e.id=n,bt.set(n,e);const a=document.createElement("div");return a.id=e.id,(0,t.render)((0,t.createVNode)(Lr,e),a),document.body.appendChild(a),n},qc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},vt={show(e,n,a={},l=!0){qc(n);const o=a.id;return o&&bt.has(o)?Dc({...a,message:n,reference:e}):(l&&Fn(),Ic({...a,message:n,reference:e}))},hide(e){Fn(e)},install(e){e.config.globalProperties.$hintText=vt}};function xc(e,n,a,l=!1){return{inheritAttrs:!0,props:{...ge,...ve},emits:["appear","disappear"],setup(o,r){const i=o.prop??r.attrs.name;Be({componentName:e,validate:!1},i);const c=Je(),s=qn();xn(!1);const d=(0,t.computed)(()=>s&&c?Pn(c,!1).value:null),h=e,u=(0,t.ref)(null),y=(0,t.computed)(()=>{const E={[h]:!0,[`${h}__gutter`]:d.value&&d.value.type!=="flow",[`${h}__stretch`]:o.span==="stretch",[`${h}__input--border`]:ke(o.hasBorder)};if(E[o.errorMarkClass]=!!z.value,E[o.warnMarkClass]=!!D.value,E[o.infoMarkClass]=!!H.value,typeof u.value=="function"){const F=u.value(i);E[F]=!0}else if(typeof u.value=="string"){const F=u.value;E[F]=!0}return E}),S=(0,t.ref)(null),w=(0,t.computed)(()=>{const E={};if(o.width)o.width!=="auto"&&(E.width=me(o.width));else{const F=s&&c?Mn(c,!1):null;if(d.value&&F){if(d.value.type==="grid"){const Y=Ln(F,d.value,o.span,o.offset);Object.assign(E,Y)}else if(d.value.type==="flow"){const Y=zn(F,d.value,o.span,o.offset,o.width);Object.assign(E,Y)}}}if(typeof S.value=="function"){const F=S.value(i);F&&Object.assign(E,F)}else if(S.value&&typeof S.value=="object"){const F=S.value;Object.assign(E,F)}return E}),b=(0,t.ref)(null),k=(0,t.computed)({get:()=>b.value??ke(o.isRequired),set:E=>{b.value=E}}),f=()=>typeof o.label=="string"&&o.label.length>0||typeof r.slots.label=="function",v=Te((0,t.toRef)(o,"labelPosition"),"labelPosition",tt.Near),m=(0,t.computed)(()=>v&&v.value==="top"?"top":v&&v.value==="right"?"right":"left"),N=(0,t.computed)(()=>({[`${h}__main`]:!0,[`${h}__main--${m.value}`]:!0})),A=(0,t.computed)(()=>({label:!0,[`label--${m.value}`]:!0})),p=Te((0,t.toRef)(o,"labelWidth"),"labelWidth",tt.Near),g=(0,t.computed)(()=>p&&p.value?{width:me(p.value)}:{}),C=(0,t.computed)(()=>({"label--string":!0,"label--required":k.value})),T=(0,t.computed)(()=>({content:!0,[o.contentClass]:!0})),$=(0,t.computed)(()=>({...o.contentStyle})),V=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired(E){k.value=E},setErrorTip(E){V.errorTip=E},setErrorIcon(E){V.errorIcon=E},setWarnTip(E){V.warnTip=E},setWarnIcon(E){V.warnIcon=E},setInfoTip(E){V.infoTip=E},setInfoIcon(E){V.infoIcon=E},setCustomClassName(E){u.value=E},setCustomStyle(E){S.value=E}});const H=(0,t.computed)(()=>o.infoTip||V.infoTip),Z=(0,t.computed)(()=>o.infoIcon||V.infoIcon),D=(0,t.computed)(()=>o.warnTip||V.warnTip),M=(0,t.computed)(()=>o.warnIcon||V.warnIcon),z=(0,t.computed)(()=>o.errorTip||V.errorTip),P=(0,t.computed)(()=>o.errorIcon||V.errorIcon),K=(0,t.computed)(()=>z.value?"error":D.value?"warn":H.value?"info":""),j=()=>K.value.length>0,x=(0,t.computed)(()=>K.value==="error"?z.value:K.value==="warn"?D.value:K.value==="info"?H.value:""),_=(0,t.computed)(()=>K.value==="error"?P.value:K.value==="warn"?M.value:K.value==="info"?Z.value:null),ne=(0,t.computed)(()=>{const E={[`${h}__tip`]:!0,[`${h}__tip--${K.value}`]:!0,[`${h}--animate`]:!0};return K.value==="error"&&o.errorClass?E[`${o.errorClass}`]=!0:K.value==="warn"&&o.warnClass?E[`${o.warnClass}`]=!0:K.value==="info"&&o.infoClass&&(E[`${o.infoClass}`]=!0),E}),W=(0,t.computed)(()=>{const E={};return v&&v.value==="top"||!f()?E["padding-left"]="0px":p&&p.value&&(E["padding-left"]=me(p.value)),E}),U=(0,t.ref)();let X="";(0,t.watch)([()=>o.hintVisible,()=>o.hintText,()=>o.hintType,()=>o.hintProps],([E,F,Y,te])=>{U.value&&(E&&!fe(F)?X?a.show(U.value,F,{...te,id:X,type:Y},!0):X=a.show(U.value,F,{...te,type:Y},!0):a.hide(X))});let J=null;const I=()=>{J||!U.value||(J=new IntersectionObserver(E=>{let F=!1;for(let Y of E)if(Y.intersectionRatio>0){F=!0,F&&r.emit("appear",Y);break}F||r.emit("disappear")}),J.observe(U.value))},R=()=>{!J||!U.value||(J.unobserve(U.value),J=null)};(0,t.watch)(()=>ke(o.appearListen),E=>{E?I():R()}),(0,t.onMounted)(()=>{ke(o.appearListen)&&I()}),(0,t.onUnmounted)(R);const Q=()=>{if(!f())return null;const E=[],F=r.slots?.label?.()??o.label,Y=(0,t.h)("div",{class:C.value},[F]);if(E.push(Y),r.slots.fixedPreTip){const te=r.slots.fixedPreTip();E.push(te)}return(0,t.h)("div",{class:A.value,style:g.value},E)},G=()=>{const E=[];if(r.slots.prepend){const F=r.slots.prepend();E.push(F)}if(r.slots.default){const F=r.slots.default();E.push(F)}if(r.slots.append){const F=r.slots.append();E.push(F)}if(r.slots.fixedTip){const F=(0,t.h)("div",{class:[`${h}__fixed-tip`]},[r.slots.fixedTip()]);E.push(F)}return(0,t.h)("div",{ref:U,class:T.value,style:$.value},E)},le=()=>{const E=_.value;return E?typeof E=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[E()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(E)]):null},L=()=>{const E=x.value;return E?typeof E=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[E()]):(0,t.h)("div",{class:"fox-item__tip--text"},[E]):null},O=()=>{if(!j())return null;const E=[],F=le();F&&E.push(F);const Y=L();return Y&&E.push(Y),(0,t.h)("div",{class:ne.value,style:W.value},E)},q=()=>r.slots?.hide?.()??null;return()=>{const E=[],F=[],Y=Q();Y&&F.push(Y);const te=G();te&&F.push(te);const ae=(0,t.h)("div",{class:N.value},F);E.push(ae);const se=O();se&&E.push(se);const ue=q();return ue&&E.push(ue),(0,t.h)("div",{class:y.value,style:w.value,prop:o.prop},E)}}}}var{componentName:Pc,create:Mc,scope:zc}=ee("item"),Lc=Mc(xc(Pc,zc,vt,!1)),St=Lc,Rr={span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function Rc(e,n){return{props:Rr,setup(a,l){const o=e,r=(0,t.computed)(()=>({[o]:!0,[`${o}__stretch`]:a.span==="stretch",[`${o}__${a.align}`]:!0})),i=Je(),c=qn();xn(!1);const s=(0,t.computed)(()=>{const d={};if(a.width)a.width!=="auto"&&(d.width=me(a.width));else if(c&&i){const h=Pn(i,!1),u=Mn(i,!1);if(h.value&&u){if(h.value.type==="grid"){const y=Ln(u,h.value,a.span,a.offset);Object.assign(d,y)}else if(h.value.type==="flow"){const y=zn(u,h.value,a.span,a.offset,a.width);Object.assign(d,y)}}}return a.gutter&&(d.gap=me(a.gutter)),d});return()=>{const d=[];if(l.slots.default){const h=l.slots.default();if(a.divide)for(let u=0;u<h.length;u++){if(u>0){const y=(0,t.h)("div",{class:{[`${o}__divide`]:!0}});d.push(y)}d.push(h[u])}else Reflect.apply([].push,d,h)}return(0,t.h)("div",{class:r.value,style:s.value},d)}}}}var{componentName:Oc,create:Fc,scope:Kc}=ee("row-item"),Uc=Fc(Rc(Oc,Kc)),Kn=Uc,Hc=(0,t.defineComponent)({name:"ArrowDown",__name:"arrow-down",setup(e){return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,t.createElementVNode)("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}});function jc(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(o)},500)}var Wc={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function Yc(e,n,a,l=!1){return{props:{...Wc},emits:["click"],setup(o,r){const i=(0,t.ref)(null),c=(0,t.computed)(()=>{const m={[`${e}`]:!0,"is-truncated":o.truncated};return o.type&&(m[`${e}--${o.type??"default"}`]=!0),o.size&&(m[`${e}--${o.size}`]=!0),m}),s=(0,t.computed)(()=>{const m={},N=o.textColor??o.color;return N&&(m.color=N),m}),d=(m,N)=>{let A=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const p=o.highlightFilter;m.indexOf(p)!==-1&&(N.innerHTML=m.replace(new RegExp(p,"g"),`<span>${p}</span>`),N.class["is-highlight"]=!0,A=(0,t.h)(o.tag,N))}else if(typeof o.highlightFilter=="function"){const p=o.highlightFilter(m);p&&(N.innerHTML=p,N.class["is-highlight"]=!0,A=(0,t.h)(o.tag,N))}return A},h=m=>{r.emit("click",m)};let u="";const y=()=>{const m=i.value;if(!m)return;const N=m.clientWidth;jc(m,A=>{const p=m.innerHTML??"";fe(p)||A<N||(u?a?.show(m,p,{type:"text",id:u,showArrow:o.showArrow},!0):u=a?.show(m,p,{type:"text",showArrow:o.showArrow},!0)??"")})},S=()=>{u&&a?.hide(u)};let w=null;const b=m=>{w||(w=setTimeout(()=>{y(),w=null},o.showAfter??0))},k=m=>{w&&(clearTimeout(w),w=null),setTimeout(()=>{S()},o.hideAfter??0)},f=()=>{const m=i.value;m&&(m.addEventListener("mouseover",b),m.addEventListener("mouseleave",k))},v=()=>{const m=i.value;m&&(m.removeEventListener("mouseover",b),m.removeEventListener("mouseleave",k))};return(0,t.onMounted)(()=>{!ke(o.showOverflowTooltip)||!a||f()}),(0,t.onBeforeUnmount)(()=>{!ke(o.showOverflowTooltip)||!a||v()}),()=>{const m={onClick:h,class:c.value,style:s.value,ref:i};let N=null;if(ke(o.numberFormat)&&typeof r.slots.default=="function"){const p=r.slots.default();if(Array.isArray(p)&&p.length===1){const g=p[0].type.toString();if(g==="Symbol(Text)"||g==="Symbol(v-txt)"){const C=de(o.digits),T=de(o.decimalLength),$=ke(o.autoPadding);let V=`${p[0].children}`,H=V.split("").reverse().join("");H=un(H,T,$,C,o.separator),V=H.split("").reverse().join(""),o.highlightFilter!==void 0&&(N=d(V,m)),N||(m.innerHTML=V,N=(0,t.h)(o.tag,m))}}}else{if(o.highlightFilter!==void 0&&typeof r.slots.default=="function"){const p=r.slots.default();if(Array.isArray(p)&&p.length===1){const g=p[0].type.toString();if(g==="Symbol(Text)"||g==="Symbol(v-txt)"){const C=`${p[0].children}`;N=d(C,m),N||(m.innerHTML=C,N=(0,t.h)(o.tag,m))}}}N||(N=(0,t.h)(o.tag,m,{default:r.slots.default}))}if(!o.mark&&!o.icon&&!r.slots.mark)return N;const A=[];if(r.slots.mark){const p={[`${e}__mark-wrap`]:!0};o.type&&(p[`${e}__mark-wrap--${o.type}`]=!0);const g={},C=o.color;C&&(g.color=C);const T=(0,t.h)("view",{class:p,style:g},{default:r.slots.mark});A.push(T)}else{const p={[`${e}__mark`]:!0};o.type&&(p[`${e}__mark--${o.type??"default"}`]=!0);const g={},C=o.color;C&&(g["background-color"]=C);const T=(0,t.h)("view",{class:p,style:g});A.push(T)}if(o.divide){const p=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});A.push(p)}return A.push(N),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}},A)}}}}var{componentName:Xc,create:Qc,scope:Gc}=ee("text"),Zc=Qc(Yc(Xc,Gc,vt,!1)),kt=Zc,_c={visible:{type:Boolean},reference:{type:[Object,String]},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function Jc(e,n,a=!1){return{props:{..._c},emits:["update:visible"],setup(l,{emit:o,slots:r,expose:i}){const c=(0,t.ref)({top:null,right:null,bottom:null,left:null}),s=(0,t.ref)(0),d=(0,t.ref)(0),h=(0,t.ref)(0),u=(0,t.ref)(0),y=(0,t.ref)(l.placement),S=(0,t.ref)(!1),w=(0,t.ref)(!1),b=(0,t.ref)(null),k=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,f=(x,_,ne,W,U,X,J,I=!0)=>{const R=document.documentElement.clientWidth||document.body.clientWidth,Q=document.documentElement.clientHeight||document.body.clientHeight,G=x.split("-");let le=[];I?G[0]==="top"?le=["top","bottom","right","left"]:G[0]==="bottom"?le=["bottom","top","right","left"]:G[0]==="left"?le=["left","top","bottom","right"]:G[0]==="right"&&(le=["right","top","bottom","left"]):le=[x[0]];const L={top:null,right:null,bottom:null,left:null},O=[];for(let q=0;q<le.length;q++){const E=le[q];if(O[0]=E,G[1]&&(O[1]=G[1]),E==="top"){const F=ne-J-l.arrowSize/2-l.offset;if(F>=0){L.top=F;let Y=0;G[1]==="start"?Y=_:G[1]==="end"?Y=_+W-X:Y=_+W/2-X/2;const te=R-Y-X;te<0?(Y+=te,m.value=-te):m.value=0,L.left=Y<0?0:Y;break}}else if(E==="bottom"){const F=ne+U+l.arrowSize/2+l.offset;if(F+J<=Q){L.top=F;let Y=0;G[1]==="start"?Y=_:G[1]==="end"?Y=_+W-X:Y=_+W/2-X/2;const te=R-Y-X;te<0?(Y+=te,m.value=-te):m.value=0,L.left=Y<0?0:Y;break}}else if(E==="left"){const F=_-X-l.arrowSize/2-l.offset;if(F>=0){L.left=F;let Y=0;G[1]==="start"?Y=ne:G[1]==="end"?Y=ne+U-J:Y=ne+U/2-J/2,L.top=Y<0?0:Y;break}}else if(E==="right"){const F=_+W+l.arrowSize/2+l.offset;if(F+X<=R){L.left=F;let Y=0;G[1]==="start"?Y=ne:G[1]==="end"?Y=ne+U-J:Y=ne+U/2-J/2,L.top=Y<0?0:Y;break}}}return{bestPlacement:O.join("-"),bestInsetRect:L}},v=()=>{const x=l.visible,_=l.autoFit;if(!Ze||x===!1)return;if(l.reference){const J=k(),I=Ql(J);s.value=I.x,d.value=I.y,h.value=J.offsetWidth,u.value=J.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,d.value=l.referenceInset.top,h.value=l.referenceInset.right-l.referenceInset.left,u.value=l.referenceInset.bottom-l.referenceInset.top);const ne=b.value.offsetWidth,W=b.value.offsetHeight,{bestPlacement:U,bestInsetRect:X}=f(l.placement,s.value,d.value,h.value,u.value,ne,W,_);y.value=U,c.value=X},m=(0,t.ref)(0),N=Ie(()=>{v()},10),A=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([x])=>{A.value=x,x?(S.value=x,setTimeout(()=>{v(),w.value=!0},0)):w.value=!1});const p=(0,t.computed)(()=>A.value&&g.value),g=(0,t.ref)(!0),C=Ie(x=>{const _=x[0];_&&(g.value=_.isIntersecting)},10),T=new IntersectionObserver(C);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([x,_],[ne,W])=>{!x&&!_||(setTimeout(()=>{v()},0),l.autoFit&&(ne&&(Kt.unwatch(ne,N),T.unobserve(ne)),x&&(Kt.watch(x,N),T.observe(x))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Kt.unwatch(l.reference,N),T.unobserve(l.reference),T.disconnect())});const $=(0,t.computed)(()=>{const x={[e]:!0};return y.value.startsWith("top")?x["is-top"]=!0:y.value.startsWith("right")?x["is-right"]=!0:y.value.startsWith("bottom")?x["is-bottom"]=!0:y.value.startsWith("left")&&(x["is-left"]=!0),x[`is-${l.effect}`]=!0,!w.value&&p.value&&(x["is-opacity"]=!0),w.value&&p.value&&(x["is-show"]=!0),p.value||(x["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(x[`${l.customClass}`]=!0),x}),V=(0,t.computed)(()=>{const x={};return c.value.top!==null&&(x.top=`${c.value.top}px`),c.value.right!==null&&(x.right=`${c.value.right}px`),c.value.bottom!==null&&(x.bottom=`${c.value.bottom}px`),c.value.left!==null&&(x.left=`${c.value.left}px`),l.width&&(x.width=l.width),l.zIndex&&(x["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(x,l.customStyle),x}),H=()=>{A.value=!1,o("update:visible",!1)},Z=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:H}):null,D=()=>{let x=null;return r.title?x=(0,t.h)("div",{class:`${e}__title`},{default:r.title}):l.title&&(x=(0,t.h)("div",{class:`${e}__title`},[l.title])),x},M=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),z=(0,t.computed)(()=>{const x={};return l.showArrow?(x.width=`${l.arrowSize}px`,x.height=`${l.arrowSize}px`,y.value==="top"?(x.left="50%",x.bottom="0",x.transform="translate(-50%, 50%)"):y.value==="top-start"?(x.left=`${l.arrowOffset+m.value}px`,x.bottom="0",x.transform="translate(-50%, 50%)"):y.value==="top-end"?(x.right=`${l.arrowOffset-m.value}px`,x.bottom="0",x.transform="translate(-50%, 50%)"):y.value==="right"?(x.left="0",x.top="50%",x.transform="translate(-50%, -50%)"):y.value==="right-start"?(x.left="0",x.top=`${l.arrowOffset}px`,x.transform="translate(-50%, 50%)"):y.value==="right-end"?(x.left="0",x.bottom=`-${l.arrowOffset}px`,x.transform="translate(-50%, 50%)"):y.value==="bottom"?(x.left="50%",x.top="0",x.transform="translate(-50%, -50%)"):y.value==="bottom-start"?(x.left=`${l.arrowOffset+m.value}px`,x.top="0",x.transform="translate(-50%, -50%)"):y.value==="bottom-end"?(x.right=`${l.arrowOffset-m.value}px`,x.top="0",x.transform="translate(-50%, -50%)"):y.value==="left"?(x.right="0",x.top="50%",x.transform="translate(50%, -50%)"):y.value==="left-start"?(x.right="0",x.top=`${l.arrowOffset}px`,x.transform="translate(50%, -50%)"):y.value==="left-end"&&(x.right="0",x.bottom=`-${l.arrowOffset}px`,x.transform="translate(50%, -50%)"),x):{display:"none"}}),P=()=>(0,t.h)("div",{class:M.value,style:z.value}),K=()=>{A.value===!1&&(S.value=!1)},j=x=>{if(!b.value||A.value===!1)return;const{relatedTarget:_}=x;b.value.contains(_)||(A.value=!1,o("update:visible",!1))};return i({doLayout:v}),()=>{if(!S.value)return null;const x=[],_=Z();_&&x.push(_);const ne=[],W=D();if(W&&ne.push(W),r.default){const I=r.default();ne.push(I)}const U=P();U&&ne.push(U);const X={ref:b,class:$.value,style:V.value,onAnimationend:K};l.leaveHide&&(X.onMouseleave=j);const J=(0,t.h)("div",X,{default:()=>ne});return x.push(J),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>x})}}}}var{componentName:eu,create:tu,scope:nu}=ee("popover-dialog"),lu=tu(Jc(eu,nu,!1)),Un=lu,au={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function ou(e,n,a){return{props:{...Rr,...au},emits:["click"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),c=i(l,["moreText"]),s=e,d=(0,t.computed)(()=>({[s]:!0}));function h(p){return p.props||{}}function u(p){return!!h(p).disabled}function y(p){return p.children??[]}const S=(0,t.ref)(),w=(0,t.computed)(()=>S.value?.$el??null),b=(0,t.ref)(!1),k=p=>{b.value=p},f=()=>{b.value=!b.value};function v(p,g){return()=>{g||(b.value=!1,h(p)?.onClick?.())}}function m(p,g){const C=y(p),T=u(p),$=v(p,T),V=[`${s}__dropdown-item`];return T&&V.push("is-disabled"),(0,t.h)("span",{class:V,onClick:$},C)}const N=p=>{const g=l.maxDisplayCount??p.length;if(g>=p.length)return p;const C=[],T=g-1;for(let D=0;D<T;D++)C.push(p[D]);const $=(r.moreIcon&&r.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(a),V=(0,t.h)(kt,{ref:D=>S.value=D,class:`${s}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:f},{default:()=>c.moreText.value,mark:()=>$});C.push(V);const H=[];for(let D=T;D<p.length;D++){const M=m(p[D],D);H.push(M)}const Z=(0,t.h)(Un,{placement:l.dropdownPlacement,"onUpdate:visible":k,visible:b.value,reference:w.value,"custom-class":`${s}__popover`},{default:()=>H});return C.push(Z),C},A=()=>(r.default?.()||[]).filter(p=>p.type!==Comment);return()=>{const p=N(A());return(0,t.h)(Kn,{class:d.value},{default:()=>p})}}}}var{componentName:ru,create:iu,scope:su}=ee("buttons-item"),cu=iu(ou(ru,su,Hc)),_l=cu,uu={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function du(e,n){return{props:uu,setup(a,l){const o=Je(),r=qn();xn(!1);const i=(0,t.computed)(()=>r&&o?Pn(o,!1).value:null),c=e,s=(0,t.computed)(()=>({[c]:!0,[`${c}__gutter`]:i.value&&i.value.type!=="flow",[`${c}__stretch`]:a.span==="stretch"})),d=(0,t.computed)(()=>{const h={};if(a.width)a.width!=="auto"&&(h.width=me(a.width));else{const u=r&&o?Mn(o,!1):null;if(i.value&&u){if(i.value.type==="grid"){const y=Ln(u,i.value,a.span,a.offset);Object.assign(h,y)}else if(i.value.type==="flow"){const y=zn(u,i.value,a.span,a.offset,a.width);Object.assign(h,y)}}}return h});return()=>{const h={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?(0,t.h)("div",h,l.slots.default()):(0,t.h)("div",h)}}}}var{componentName:fu,create:mu,scope:hu}=ee("slot-item"),pu=mu(du(fu,hu)),Jl=pu;function Pe(e,n={}){return(0,t.h)(St,e,n)}function gu(e,n,a,l,o){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],c=n[0];if(Array.isArray(e)&&!Array.isArray(c)&&!c[o]){let s=n;for(let d=0;s&&d<r.length;d++){let h=r[d],u=s.find(y=>y[l]===h);if(!u)break;i.push(u[a])}return i}if(Array.isArray(c))for(let s=0;s<n.length&&s<r.length;s++){let d=n[s],h=r[s];const u=d.find(y=>y[l]===h);if(!u)break;i.push(u[a])}else{let s=n;for(let d=0;s&&d<r.length;d++){let h=r[d],u=s.find(y=>y[l]===h);if(!u)break;i.push(u[a]),s=u[o]}}return i}var yu=class{proxy;constructor(e){this.proxy=e}async load(e,n,a){if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function bu(){return new yu((0,t.getCurrentInstance)().proxy)}var vu={tag:{type:[String,Object],required:!1,default:"span"},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1}};function Su(e,n,a=!1){return{props:vu,setup(l,{attrs:o,slots:r}){const i=bu(),c=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([d,h])=>{c.value=await i.load(l.sourceType,d,h)},{immediate:!0});const s=(0,t.computed)(()=>{if(!Array.isArray(c.value)||c.value.length===0)return l.emptyText;let d=gu(l.modelValue,c.value,l.textKey,l.valueKey,l.childrenKey);return d.length==0?l.emptyText??"":d.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${d[0]}`:d[0]:d.join(l.separator)});return()=>{const d={...o};if(r.default)return r.default({text:s.value,value:l.modelValue});const h=l.tag??"span";return typeof h=="object"?(0,t.h)(h,d,{default:()=>s.value}):(0,t.h)(h,d,[s.value])}}}}var{componentName:ku,create:wu,scope:Cu}=ee("mapping"),Nu=wu(Su(ku,Cu,!1)),Hn=Nu;function ze(e,n,a,l){const o="fox-browse-item";let r=null;a?r=(0,t.h)(Hn,{class:[`${o}__mapping`],source:a,modelValue:e,separator:l},{default:c=>(0,t.h)(kt,{class:[`${o}__text`]},{default:()=>c.text})}):r=(0,t.h)(kt,{class:[`${o}__text`]},{default:()=>e});const i={label:n.default,default:()=>r};return(0,t.h)(St,{class:[o]},i)}var Or={type:{type:String,default:"text"},modelValue:{type:[String,Number],default:""},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}},Au={...ge,...ve,...Or};function Bu(e,n,a,l,o){return{props:Au,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(r,i){const{innerDisabled:c,disabled:s,innerReadonly:d,readonly:h,browse:u}=qe(r),{emitEvent:y}=Be({componentName:e,get readonly(){return h.value},get disabled(){return s.value}},r.prop??i.attrs.name),{toLocaleRefs:S}=(0,pe.useFoxI18n)(n),w=S(r,["placeholder"]),b=(0,t.ref)(!1),k=xe(r,"modelValue",null,y),f=e,v=(0,t.computed)(()=>({[f]:!0,"is-disabled":s.value,"is-readonly":h.value})),m=Te((0,t.computed)(()=>r.textAlign),"textAlign"),N=(0,t.computed)(()=>{const j={};return m.value&&(j["text-align"]=m.value),j}),A=j=>{let x=j.target.value;r.type==="digit"&&(x=El(x,!0)),r.type==="number"&&(x=El(x,!1)),r.maxLength&&x.length>Number(r.maxLength)&&(x=x.slice(0,Number(r.maxLength))),k.value=x,y("update:modelValue",x,j),y("change",x,j)};let p=xe(r,"hintText"),g=(0,t.ref)(!1);const C=j=>{let x=j.target.value;b.value=!0,fe(p.value)||(g.value=!0),y("focus",x,j)},T=j=>{setTimeout(()=>{g.value&&(g.value=!1),b.value=!1},0);let x=j.target.value;r.maxLength&&x.length>Number(r.maxLength)&&(x=x.slice(0,Number(r.maxLength))),y("blur",x,j)},$=(0,t.computed)(()=>({[`${f}__append`]:!0,"is-disabled":s.value,"is-readonly":h.value})),V=(0,t.computed)(()=>{const j={};return i.slots.append&&!H.value&&!P.value&&(j.display="none"),j}),H=(0,t.computed)(()=>we(r.unit)>0),Z=(0,t.computed)(()=>!P.value),D=(0,t.computed)(()=>({[`${f}__unit`]:!0,hidden:!Z.value})),M=j=>{k.value="",y("update:modelValue","",j),y("change","",j),y("clear","")},z=(0,t.computed)(()=>ke(r.clearable)&&!s.value&&!h.value),P=(0,t.computed)(()=>{let j=we(k.value)>0;return ke(r.clearable)&&j&&b.value}),K=(0,t.computed)(()=>({action:!0,hidden:!P.value}));return be({setDisabled:j=>{c.value=j},setReadonly:j=>{d.value=j}}),()=>{if(u.value==="on"&&(h.value||s.value))return l(k.value,i.slots);const j={class:v.value,style:N.value,type:r.type,maxlength:r.maxLength,placeholder:w.placeholder.value,disabled:s.value,readonly:h.value,value:k.value,"adjust-position":r.adjustPosition,"always-system":r.alwaysSystem,onInput:A,onFocus:C,onBlur:T},x=[],_=(0,t.h)("input",j);x.push(_);const ne=[];if(z.value){const J=(0,t.h)(o,{class:["action-icon"]}),I=(0,t.h)("view",{class:K.value,onClick:M},{default:()=>[J]});ne.push(I)}if(H.value){const J=(0,t.h)("view",{class:D.value},[r.unit]);ne.push(J)}const W=(0,t.h)("view",{class:$.value,style:V.value},{default:()=>ne});x.push(W);const U={default:()=>x};U.label=i.slots.default,U.prepend=i.slots.prepend,U.append=i.slots.append,U.fixedPreTip=i.slots.fixedPreTip,U.fixedTip=i.slots.fixedTip;const X={..._e(r,Or),hintText:p.value,hintVisible:g.value};return r.prop&&(X.prop=`${r.prop}_item`),a(X,U)}}}}var{componentName:Tu,create:Vu,scope:$u}=ee("input-item"),Eu=Vu(Bu(Tu,$u,Pe,ze,oe.CircleClose)),ea=Eu;function Fr(e,n=0){let a=`${e}`,l=a.indexOf(".");if(l==-1)return a;let o=l;for(let r=a.length-1;r>=l;r--)if(a.charAt(r)!="0"){o=r;break}return o-l<n?o=l+n+1:o!=l&&(o+=1),o>a.length?a=a.padEnd(o,"0"):a=a.substring(0,o),a}function Kr(e,n,a=20){return typeof n=="string"&&(n=de(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?Fr(tr(`${e}`,`${n}`)):Fr(Al(`${e}`,nr(`${n}`),20))}function Du(e,n=-1,a=!1,l=3,o=","){return un(e,de(n),a,l,o)}function Ur(e,n,a,l,o=!0){if(e==="")return"";if(e=lr(e),n=de(n),n==1)return e;if(l)e=Kr(e,n),a&&(e=="0"&&o?e=`${e}.`.padEnd(de(a)+2,"0"):e=Al(e,1,de(a)));else{let r=-1*n;e=Kr(e,r)}return e}function Hr(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ke(n.minInclude),o=Bl(e,n.min);(l&&o==-1||!l&&(o==0||o==-1))&&(a.message="请输入不小于 {0} 的数值".replace("{0}",n.min),a.minValid=!1)}if(n.max!=null){let l=ke(n.maxInclude),o=Bl(e,n.max);(l&&o==1||!l&&(o==0||o==1))&&(a.maxValid=!1)}return a}var jr={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean],default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:[String],required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:[Boolean],required:!1,default:!0},digits:{type:[Number],required:!1,default:3},separator:{type:[String],required:!1,default:","},placeholder:{type:[String],required:!1},textAlign:{type:[String],required:!1},adjustPosition:{type:[Boolean],default:!0},alwaysSystem:{type:[Boolean],default:!1},maxLength:{type:[String,Number]}},Iu={...ge,...ve,...jr};function qu(e,n,a,l,o){return{props:Iu,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(r,i){const{innerDisabled:c,disabled:s,innerReadonly:d,readonly:h,browse:u}=qe(r),{emitEvent:y}=Be({componentName:e,get readonly(){return h.value},get disabled(){return s.value}},r.prop??i.attrs.name),S=(0,t.ref)(!1),w=xe(r,"modelValue",null,y),b=(0,t.ref)("");(0,t.watch)([()=>w.value,()=>r.rates,()=>r.precision],([U,X,J])=>{if(fe(U)){b.value="";return}const I=Ur(U,X,J,!1);b.value!==I&&(b.value=I)},{immediate:!0});const k=(0,t.computed)(()=>{let U="";return S.value&&(U=b.value),U}),{t:f}=(0,pe.useFoxI18n)(n),v=(0,t.computed)(()=>{let U=r.placeholder??"";return!S.value&&!fe(b.value)?U=Du(b.value,r.decimalLength,r.autoPadding,r.digits,r.separator):U=fe(U)?f(["placeholder"]):U,U}),m=e,N=(0,t.computed)(()=>({[m]:!0,[`${m}__placeholder`]:b.value.length>0,"is-disabled":s.value,"is-readonly":h.value})),A=Te((0,t.computed)(()=>r.textAlign),"textAlign"),p=(0,t.computed)(()=>{const U={};return A.value&&(U["text-align"]=A.value),U}),g=(0,t.ref)(""),C=(0,t.computed)(()=>{let U=g.value;return fe(U)&&(U=r.errorTip??""),U}),T=(0,t.ref)(""),$=(0,t.ref)(!1),V=U=>{let X=U.target.value;if(fe(X)){b.value="",w.value="",y("update:modelValue","",U),y("change","",U),ke(r.showTip)&&$.value&&($.value=!1);return}if(X.length>=2){let J=X;if(J.charAt(0)=="-"&&(J=J.substring(1)),J.length>=2&&J.charAt(0)=="0"&&J.charAt(1)!="."){(0,t.triggerRef)(b);return}}if(X!="-"){if(!hn(X)){(0,t.triggerRef)(b);return}if(r.integerLength!=-1&&dr(X)>Number(r.integerLength)){(0,t.triggerRef)(b);return}if(r.decimalLength&&r.decimalLength!=-1&&fr(X)>Number(r.decimalLength)){(0,t.triggerRef)(b);return}let J=Hr(X,r);if(J.maxValid===!1){g.value=J.message,(0,t.triggerRef)(b);return}}else if(r.min!=null&&de(r.min)>=0){(0,t.triggerRef)(b);return}T.value=X,ke(r.showTip)&&($.value=X.length>0),b.value=X,w.value=Ur(X,r.rates,r.precision,!0),y("update:modelValue",w.value,U),y("change",w.value,U)},H=U=>{if(S.value=!0,ke(r.showTip)){let X=b.value;fe(X)&&(X=r.hintText),fe(X)||(T.value=X,$.value=!0)}g.value="",y("focus",w.value,U)},Z=U=>{if(setTimeout(()=>{S.value=!1,ke(r.showTip)&&$.value===!0&&($.value=!1)},0),!fe(b.value)){let X=Hr(b.value,r);if(X.minValid===!1||X.maxValid===!1){g.value=X.message;return}}y("update:modelValue",w.value,U),y("blur",w.value,U)},D=(0,t.computed)(()=>({[`${m}__append`]:!0,"is-disabled":s.value,"is-readonly":h.value})),M=(0,t.computed)(()=>{const U={};return i.slots.append&&!z.value&&!_.value&&(U.display="none"),U}),z=(0,t.computed)(()=>we(r.unit)>0),P=(0,t.computed)(()=>!_.value),K=(0,t.computed)(()=>({[`${m}__unit`]:!0,hidden:!P.value})),j=U=>{w.value="",y("update:modelValue","",U),y("change","",U),y("clear","")},x=(0,t.computed)(()=>ke(r.clearable)&&!s.value&&!h.value),_=(0,t.computed)(()=>{let U=we(w.value)>0;return ke(r.clearable)&&U&&S.value}),ne=(0,t.computed)(()=>({action:!0,hidden:!_.value}));be({setDisabled:U=>{c.value=U},setReadonly:U=>{d.value=U}});const W=()=>w.value?v.value:w.value;return()=>{if(u.value==="on"&&(h.value||s.value))return l(W(),i.slots);let U={class:N.value,style:p.value,type:"digit",maxlength:r.maxLength,placeholder:v.value,disabled:s.value,readonly:h.value,value:k.value,"adjust-position":r.adjustPosition,"always-system":r.alwaysSystem,onInput:V,onFocus:H,onBlur:Z},X=[],J=(0,t.h)("input",U);X.push(J);let I=[];if(x.value){const le=(0,t.h)(o,{class:["action-icon"]}),L=(0,t.h)("view",{class:ne.value,onClick:j},{default:()=>[le]});I.push(L)}if(z.value){const le=(0,t.h)("view",{class:K.value},[r.unit]);I.push(le)}const R=(0,t.h)("view",{class:D.value,style:M.value},{default:()=>I});X.push(R);const Q={default:()=>X};Q.label=i.slots.default,Q.prepend=i.slots.prepend,Q.append=i.slots.append,Q.fixedPreTip=i.slots.fixedPreTip,Q.fixedTip=i.slots.fixedTip;const G={..._e(r,jr),errorTip:C.value,hintText:T.value,hintVisible:$.value,hintType:"number"};return r.prop&&(G.prop=`${r.prop}_item`),a(G,Q)}}}}var{componentName:xu,create:Pu,scope:Mu}=ee("money-item"),zu=Pu(qu(xu,Mu,Pe,ze,oe.CircleClose)),ta=zu,na={modelValue:{type:[String,Number],default:""},textAlign:{type:String,default:""},limitShow:{type:Boolean,default:!1},maxLength:{type:[String,Number],default:""},rows:{type:[String,Number],default:"2"},placeholder:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autosize:{type:[Boolean,Object],default:!1},autofocus:{type:Boolean,default:!1}},{componentName:Lu,create:Ru,scope:Ou}=ee("textarea"),Fu=Ru({props:{...na},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=(0,pe.useFoxI18n)(Ou);const l=a(e,["placeholder"]),o=(0,t.ref)(),r=(0,t.computed)(()=>{const y=Lu;return{[y]:!0,[`${y}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&s(String(e.modelValue)),e.autosize&&(0,t.nextTick)(c)});const i=(0,t.computed)(()=>({textAlign:e.textAlign})),c=()=>{let y=o.value;y.style.height="auto";let S=y.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:w,minHeight:b}=e.autosize;w!==void 0&&(S=Math.min(S,w)),b!==void 0&&(S=Math.max(S,b))}S&&(console.info("----------- height",S),y.style.height=S+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(c)});const s=(y,S)=>{e.maxLength&&y.length>Number(e.maxLength)&&(y=y.substring(0,Number(e.maxLength))),n("update:modelValue",y,S),n("change",y,S)};return{...l,textareaRef:o,classes:r,styles:i,change:y=>{const S=y.target;s(S.value,y)},focus:y=>{e.disabled||e.readonly||n("focus",y)},blur:y=>{if(e.disabled||e.readonly)return;let S=y.target.value;s(S,y),n("blur",{value:S,event:y})}}}}),Ku=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Uu={key:0,class:"fox-textarea__limit"};function Hu(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:(0,t.normalizeStyle)(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...i)=>e.change&&e.change(...i)),onBlur:n[1]||(n[1]=(...i)=>e.blur&&e.blur(...i)),onFocus:n[2]||(n[2]=(...i)=>e.focus&&e.focus(...i)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Ku),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",Uu,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var jn=re(Fu,[["render",Hu]]);function ju(e,n,a,l){return{props:{...ge,...ve,...na},emits:["update:modelValue","change","blur","focus","setValue"],setup(o,r){const i=$n((0,t.computed)(()=>o.disabled)),c=Vn((0,t.computed)(()=>o.readonly)),{emitEvent:s}=Be({componentName:e,get readonly(){return c.value},get disabled(){return i.value}},o.prop??r.attrs.name),d=xe(o,"modelValue",null,s),h=b=>{d.value=b,s("update:modelValue",b,{}),s("change",b,{})};let u=xe(o,"hintText"),y=(0,t.ref)(!1);const S=b=>{fe(u.value)||(y.value=!0),s("focus",d.value,b)},w=b=>{setTimeout(()=>{y.value&&(y.value=!1)},0),s("blur",d.value,b)};return()=>{const b={...ye(o,na),disabled:i.value,readonly:c.value,value:d.value,"onUpdate:modelValue":h,onFocus:S,onBlur:w},k=[],f=(0,t.h)(l,b);k.push(f);const v={default:()=>k};v.label=r.slots.default,v.prepend=r.slots.prepend,v.append=r.slots.append,v.fixedPreTip=r.slots.fixedPreTip,v.fixedTip=r.slots.fixedTip;const m={...ye(o,ve,ge)};return o.prop&&(m.prop=`${o.prop}_item`),(0,t.h)(a,m,v)}}}}var{componentName:Wu,create:Yu,scope:Xu}=ee("textarea-item"),Qu=Yu(ju(Wu,Xu,St,jn)),la=Qu;function Gu(e){return e===window}var De=e=>{const n=(0,t.unref)(e);if(Gu(n)){const a=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:a,bottom:l,width:a,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Wr=10;function Yr(e,n){return e>n&&e>Wr?"horizontal":n>e&&n>Wr?"vertical":""}function Wn(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Yn(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const c=i;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Yr(e.offsetX,e.offsetY))}),start:(i=>{if(l(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const c=i;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:a,state:e}}function lt(){const e=(0,t.ref)(0),n=(0,t.ref)(0),a=(0,t.ref)(0),l=(0,t.ref)(0),o=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(0),c=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(0),h=(0,t.ref)(""),u=()=>h.value==="vertical",y=()=>h.value==="horizontal",S=()=>{i.value=0,c.value=0,s.value=0,d.value=0,h.value="",a.value=0};return{move:(k=>{if(k.touches){const f=k.touches[0];i.value=f.clientX-e.value,c.value=f.clientY-n.value,o.value=f.clientX,r.value=f.clientY}else{const f=k;i.value=f.clientX-e.value,c.value=f.clientY-n.value,o.value=f.clientX,r.value=f.clientY}s.value=Math.abs(i.value),d.value=Math.abs(c.value),l.value=Date.now()-a.value,h.value||(h.value=Yr(s.value,d.value))}),start:(k=>{if(S(),k.touches){const f=k.touches[0];e.value=f.clientX,n.value=f.clientY}else{const f=k;e.value=f.clientX,n.value=f.clientY}a.value=Date.now()}),reset:S,startX:e,startY:n,startTime:a,duration:l,moveX:o,moveY:r,deltaX:i,deltaY:c,offsetX:s,offsetY:d,direction:h,isVertical:u,isHorizontal:y}}var Zu=2e3,Xr=()=>Zu++,at={visible:{type:Boolean,default:!1},zIndex:{type:[String,Number]},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:[String,Array],default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},_u=(e,n)=>({components:n,props:{...at},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:l}){const o=(0,t.reactive)({zIndex:0,showSlot:!0,closed:a.closeable});a.visible&&(o.zIndex=Xr());const r=(0,t.computed)(()=>{const b=e,k=[b,`${b}--${a.position}`];return a.round&&k.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&k.push(`${b}--${a.position}--safebottom`),typeof a.popClass=="string"?k.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(f=>{k.push(f)}),k}),i=(0,t.computed)(()=>({zIndex:o.zIndex,transitionDuration:`${a.duration}s`,...a.style})),c=(0,t.computed)(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),s=()=>{l("update:visible",!0),a.zIndex?o.zIndex=a.zIndex:o.zIndex=Xr(),a.destroyOnClose&&(o.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),a.destroyOnClose&&setTimeout(()=>{o.showSlot=!1},+a.duration*1e3)},h=b=>{l("click-pop",b)},u=b=>{b.stopPropagation(),l("click-close-icon",b),l("update:visible",!1)},y=b=>{l("click-overlay",b),a.closeOnClickOverlay&&l("update:visible",!1)},S=b=>{l("opend",b)},w=b=>{l("closed",b)};return(0,t.watch)(()=>a.visible,b=>{a.visible?s():d()}),(0,t.watch)(()=>a.closeable,b=>{o.closed=b}),{...(0,t.toRefs)(o),popStyle:i,transitionName:c,classes:r,onClick:h,onClickCloseIcon:u,onClickOverlay:y,onOpened:S,onClosed:w}}}),Qr={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},aa={...at,...Qr,modelValue:{type:[String,Number,Boolean,Object,Array],default:()=>""},text:{type:[Array],default:()=>[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:()=>[]},sourceFilter:{type:[Function]},params:{type:Object},valueType:{type:String,required:!1,default:()=>"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String},isAutoBackFill:{type:[Boolean],default:()=>!0},poppable:{type:[Boolean],default:()=>!0}},Gr=36;function Ju(){return Gr}function ed(e){Gr=e}function Fe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function oa(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function td(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function it(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Zr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var nd=class{proxy;constructor(e){this.proxy=e}async load(e,n,a){if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function ld(){return new nd((0,t.getCurrentInstance)().proxy)}function _r(e,n,a){return!(Fe(e,n)!==Fe(e,a)||it(e,n)!==it(e,a))}function ad(e,n,a,l){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const o=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const c=n[i];let s=a[i].findIndex(d=>{if(r==="text")return Fe(e,d)===c;if(r==="value"){let h=it(e,d);return h==null&&(h=Fe(e,d)),h===c}else if(r==="item")return _r(e,d,c)});if(s==-1)break;o.push(s)}else{let i=a[0];for(let c=0;c<n.length;c++){const s=n[c];let d=i.findIndex(u=>{if(r==="text")return Fe(e,u)===s;if(r==="value"){let y=it(e,u);return y==null&&(y=Fe(e,u)),y===s}else if(r==="item")return _r(e,u,s)});if(d==-1)break;o.push(d);const h=oa(e,i[d]);if(!Array.isArray(h))break;i=h}}return o}function Jr(e,n,a,l){if(a.length==0)return null;const o={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const c=a[i];let s=n[i];s<0&&s>=c.length&&(s=0);const d=c[s],h=Fe(e,d);if(o.texts.push(h),o.items.push(d),r==="text")o.values.push(h);else if(r==="value"){let u=it(e,d);u==null&&(u=h),o.values.push(u)}else o.values.push(d)}else{let i=a[0];for(let c=0;c<n.length;c++){let s=n[c];s<0&&s>=i.length&&(s=0);const d=i[s],h=Object.assign({},d);h.children=null;const u=Fe(e,d);if(o.texts.push(u),o.items.push(h),r==="text")o.values.push(u);else if(r==="value"){let y=it(e,d);y==null&&(y=u),o.values.push(y)}else o.values.push(h);if(!Array.isArray(d.children))break;i=d.children}}return o}function ei(e){return{text:e,value:e}}var od=15,rd=300,id=200,{create:sd}=ee("picker-column");function cd(e){e.stopPropagation()}function ud(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&cd(e)}var dd={source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},...Qr},fd=sd({props:dd,emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=(0,t.computed)(()=>({"fox-picker__list":!0})),l=(0,t.computed)(()=>({height:`${de(e.visibleItemCount)*+e.itemHeight}px`})),o=(0,t.computed)(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=(0,t.computed)(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=g=>{const C=g+1;return C>=u.currIndex+8||C<=u.currIndex-8},c=(0,t.computed)(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${u.deg})`,top:`${r.value}px`})),s=g=>{const C=g+1;return`transform: rotate3d(1, 0, 0, ${-u.rotation*C}deg) translate3d(0px, 0px, 104px)`},d=(0,t.computed)(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${u.scrollDistance+r.value}px, 0)`})),h=(0,t.ref)(null),u=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),y=g=>Fe(e,g),S=g=>it(e,g),w=lt(),b=()=>{u.transitionEndTrigger&&(u.transitionEndTrigger(),u.transitionEndTrigger=null)},k=(g,C=!1,T=!1)=>{if(u.currIndex=g,C){const $=()=>{u.moving=!1,n("update:modelValue",g),n("change",g)};T?u.transitionEndTrigger=$:$()}},f=(g,C,T)=>{let $=g+u.startDistance;if(C==="end"){const V=-(e.source.length-1)*e.itemHeight;$<V&&($=V),$>0&&($=0);let H=Math.abs(Math.round(-$/e.itemHeight));const Z=-H*e.itemHeight,D=`${(H+1)*u.rotation}deg`;k(H,!0,T?T>0:!1),v(Z,C,T,D)}else{let V=(-$/e.itemHeight+1)*u.rotation;const H=(e.source.length+1)*u.rotation,Z=0;if(V=Math.min(Math.max(V,Z),H),e.threeDimensional&&(V<Z||V>H))return;v($,null,void 0,`${V}deg`)}},v=(g=0,C,T=id,$)=>{C==="end"?u.scrollTime=T:u.scrollTime=0,u.deg=$,u.scrollDistance=g},m=(g,C)=>(g=Math.abs(g/C)/.003*(g<0?-1:1),g),N=g=>{e.readonly||(u.startDistance=u.scrollDistance,w.start(g),u.transitionEndTrigger=null)},A=g=>{e.readonly||(u.moving=!0,w.move(g),w.isVertical()&&(u.moving=!0,ud(g,!0)),f(w.deltaY.value,"",0))},p=()=>{if(e.readonly)return;const g=w.deltaY.value,C=w.duration.value;C<rd&&Math.abs(g)>od?f(m(g,C),"end",de(e.swipeDuration)):f(g,"end",0)};return(0,t.watch)(()=>e.modelValue,g=>{const C=u.currIndex-g;C!==0&&(u.currIndex=g,u.startDistance=u.scrollDistance,f(C*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,g=>{if(u.currIndex>=g.length){const C=(g.length-1-u.currIndex)*e.itemHeight;u.startDistance=u.scrollDistance,f(C,"end",0)}}),(0,t.watch)(()=>e.visible,g=>{g===!1&&b()}),(0,t.onMounted)(()=>{f(-e.modelValue*e.itemHeight)}),{classes:a,styles:l,contentClasses:o,itemText:y,itemValue:S,...(0,t.toRefs)(u),roller:h,getItemText:Fe,onTouchStart:N,onTouchMove:A,onTouchEnd:p,isHidden:i,setRollerStyle:s,touchRollerStyle:c,touchTileStyle:d,stopMomentum:b}}}),md={key:1,class:"fox-picker__item-tile"};function hd(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[(0,t.createElementVNode)("view",{ref:"roller",class:(0,t.normalizeClass)(e.contentClasses),style:(0,t.normalizeStyle)(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.source,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${c}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(c)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(c))},(0,t.toDisplayString)(e.itemText(i)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",md,(0,t.toDisplayString)(e.itemText(i)),1))],64))),128))],6)],38)}var pd=re(fd,[["render",hd]]),Ut=0,ti="fox-overflow-hidden",ni=()=>Ze?document.body:{classList:[]},gd=e=>[()=>{if(e())try{!Ut&&ni().classList.add(ti),Ut++}catch{}},()=>{if(e()&&Ut)try{Ut--,!Ut&&ni().classList.remove(ti)}catch{}}],yd={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:bd,create:vd}=ee("overlay"),Sd=vd({props:{...yd},emits:["click","update:visible"],setup(e,{emit:n}){const[a,l]=gd(()=>e.lockScroll),o=(0,t.computed)(()=>({[bd]:!0,[e.overlayClass]:!0})),r=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,c=>{c?a():l()}),{classes:o,style:r,onClick:c=>{n("click",c),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function kd(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"overlay-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var st=re(Sd,[["render",kd]]),{componentName:wd,create:Cd}=ee("popup"),Nd=Cd(_u(wd,{FoxOverLay:st,Close:oe.Close}));function Ad(e,n,a,l,o,r){const i=(0,t.resolveComponent)("FoxOverLay"),c=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(i,(0,t.mergeProps)({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.closed?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:(0,t.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(c)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var Se=re(Nd,[["render",Ad]]),Bd=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-picker__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(Se,_e({...e},{poppable:!1}),n):n?.default?.()??null}}),Td=Bd,{create:Vd,componentName:li,scope:$d}=ee("picker"),Ed=Vd({components:{Column:pd,Wrapper:Td},props:aa,emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:l}=(0,pe.useFoxI18n)($d),o=a(e,["title","cancelText","clearText","confirmText"]),r=(0,t.ref)(null),i=(0,t.ref)(Ju());(0,t.watch)(()=>e.visible,z=>{z&&i.value<=0&&setTimeout(()=>{r.value&&(i.value=De(r.value).height,ed(i.value))},50)});const c=(0,t.computed)(()=>({[li]:!0})),s=(0,t.computed)(()=>{const z=[];return Array.isArray(e.popClass)?z.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&z.push(e.popClass),z.push(`${li}__popup`),z.join(" ")}),d=ld(),h=(0,t.ref)("singleColumn");let u=(0,t.ref)([]);const y=(0,t.computed)(()=>{if(typeof e.sourceFilter=="function"){const z=[];for(let P=0;P<u.value.length;P++){const K=u.value[P];if(Array.isArray(K)){const j=K.filter(e.sourceFilter);z.push(j)}}return z}return u.value});(0,t.watch)([()=>e.source,()=>e.params],async([z,P])=>{if(z){let K=await d.load("picker",z,P);if(K.length>0){let j=K[0];if(Array.isArray(j)){if(typeof j[0]=="string"){let x=K,_=[];x.forEach(ne=>{let W=ne.map(U=>ei(U));_.push(W)}),u.value=_}else u.value=K;h.value="multipleColumn"}else if(typeof j=="string"){let x=K,_=[],ne=x.map(W=>ei(W));_.push(ne),u.value=_,h.value="singleColumn"}else{const x=oa(e,j);Array.isArray(x)?(h.value="cascade",u.value=[K]):(h.value="singleColumn",u.value=[K])}}else u.value=[]}},{immediate:!0});const S=(0,t.ref)([]),w=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),b=(0,t.ref)([]);let k=null;const f=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>y.value],([z,P])=>{let K=ad(e,z,P,h.value);if(!$e(K,f.value)){f.value=K,k||(k=K?[...K]:[]);let j=Jr(e,K,P,h.value);j&&(S.value=j.texts,$e(w.value,j.values)||(w.value=j.values),$e(b.value,j.items)||(b.value=j.items),n("update:text",S.value))}});let v="";const m=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,z=>{m.value=z,z&&(v="active",f.value.length>0&&(k=[...f.value]))});const N=z=>{let P=Zr(e,z);return Ve(P)?P.defaultIndex??0:0},A=z=>{if(e.readonly===!0)return!0;let P=Zr(e,z);return Ve(P)?P.readonly??!1:!1},p=(z,P)=>{let K=f.value;K[z]=P;for(let x=0;x<z;x++)K[x]==null&&(K[x]=N(x));if(h.value==="cascade")for(let x=z+1;x<C.value.length;x++){let _=N(x);x<K.length?K[x]=_:K.push(_)}else for(let x=K.length;x<C.value.length;x++){let _=N(x);K.push(_)}f.value=K;let j=Jr(e,K,y.value,h.value);j&&(S.value=j.texts,w.value=j.values,b.value=j.items)},g=z=>z<f.value.length?f.value[z]:N(z),C=(0,t.computed)(()=>{if(y.value.length==0)return[];if(h.value=="singleColumn"||h.value=="multipleColumn")return y.value;let z=[],P=0,K=y.value[0],j=0;for(;;){let x=K.map(W=>{let U=Object.assign({},W);return td(e,U,null),U});z.push(x),P>=f.value.length?j=0:j=f.value[P],(j<0||j>=K.length)&&(j=0);let _=K[j];const ne=oa(e,_);if(!Array.isArray(ne))break;K=ne,P++}return z}),T=(0,t.computed)(()=>de(+e.visibleItemCount-1)/2*i.value),$=(z=!1)=>{if(e.readonly===!0){z&&n("update:visible",!1);return}let P=y.value.length-1;for(;P>=0&&!(f.value[P]===null||f.value[P]===void 0);P--);if(P>=0&&p(P,0),h.value==="singleColumn"){let K=w.value.length>0?w.value[0]:"",j=b.value.length>0?b.value[0]:null;n("update:modelValue",K),n("update:text",S.value),n("change",K,j),z&&(n("confirm",K),n("update:visible",!1))}else n("update:modelValue",w.value),n("update:text",S.value),n("change",w.value,b.value),z&&(n("confirm",w.value),n("update:visible",!1))},V=(z,P)=>{v!=="close"&&(p(z,P),e.isAutoBackFill&&$(!m.value))},H=()=>{v==="active"&&(v="confirm",k=Array.isArray(f.value)?[...f.value]:[],$(!0))},Z=()=>{h.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),f.value=[],k=null};return{...o,pickerLineRef:r,classes:c,popClasses:s,columns:C,dataType:h,show:m,itemHeight:i,top:T,isReadonly:A,getIndex:g,change:V,close:()=>{if(v==="active"){if(v="close",k===null||k.length===0)Z();else{if(Array.isArray(k))for(let z=0;z<k.length;z++)p(z,k[z]);$(!1)}n("close"),n("update:visible",!1)}},confirm:H,clear:()=>{if(v==="active"){if(v="clear",e.readonly===!0){n("update:visible",!1);return}Z(),k=null,n("clear",""),n("update:visible",!1)}}}}}),Dd={key:0,class:"fox-picker__bar"},Id={class:"fox-picker__title"},qd={class:"fox-picker__bar__action"},xd={class:"fox-picker__column"};function Pd(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Column"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(c,{position:"bottom","pop-class":e.popClasses,visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable,poppable:e.poppable},{default:(0,t.withCtx)(()=>[e.poppable?((0,t.openBlock)(),(0,t.createElementBlock)("view",Dd,[(0,t.createElementVNode)("view",Id,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",qd,[(0,t.createElementVNode)("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...s)=>e.close&&e.close(...s))},(0,t.toDisplayString)(e.cancelText),1),(0,t.createElementVNode)("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},(0,t.toDisplayString)(e.confirmText),1),e.clearText?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...s)=>e.clear&&e.clear(...s))},(0,t.toDisplayString)(e.clearText),1)):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"top"),(0,t.createElementVNode)("view",xd,[(0,t.createElementVNode)("view",{class:"fox-picker__mask",style:(0,t.normalizeStyle)({backgroundSize:`100% ${e.top}px`})},null,4),(0,t.createElementVNode)("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:(0,t.normalizeStyle)({top:` ${e.top}px`})},null,4),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:"fox-picker__columnitem"},[(0,t.createVNode)(i,{visible:e.show,source:s,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":h=>e.change(d,h),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["pop-class","visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable","poppable"])],2)}var Ht=re(Ed,[["render",Pd]]),Md={...ge,...ve,...aa,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}};function zd(e,n,a,l,o,r,i,c=!0){return{props:Md,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{innerDisabled:h,disabled:u,innerReadonly:y,readonly:S,browse:w}=qe(s),{emitEvent:b}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return u.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),v=(0,t.ref)(!1),m=xe(s,"modelValue",null,b),N=(0,t.ref)([]),A=(0,t.computed)(()=>Array.isArray(N.value)?N.value.join(s.separator):N.value),p="fox-input-item",g=(0,t.computed)(()=>({[p]:!0,"is-disabled":u.value,"is-readonly":S.value})),C=Te((0,t.computed)(()=>s.textAlign),"textAlign"),T=(0,t.computed)(()=>{const R={};return C.value&&(R["text-align"]=C.value),R}),$=(0,t.ref)(!1),V=()=>{$.value=!0},H=R=>{$.value=R},Z=R=>{m.value=R,b("update:modelValue",R)},D=(R,Q)=>{b("change",R,Q)},M=R=>{let Q=R.target.value;v.value=!0,b("focus",Q,R)},z=R=>{setTimeout(()=>{v.value=!1},0);let Q=R.target.value;s.maxLength&&Q.length>Number(s.maxLength)&&(Q=Q.slice(0,Number(s.maxLength))),b("blur",Q,R)},P=R=>{N.value=R,Array.isArray(R)&&R.length===0?b("update:text",R[0]):b("update:text",R)},K=(0,t.computed)(()=>({[`${p}__append`]:!0,"is-disabled":u.value,"is-readonly":S.value})),j=(0,t.computed)(()=>we(s.unit)>0),x=(0,t.computed)(()=>we(s.unit)>0&&!v.value),_=(0,t.computed)(()=>({hidden:!x.value})),ne=R=>{m.value="",b("update:modelValue","",R),b("change","",R),b("clear","")},W=(0,t.computed)(()=>s.clearable&&!u.value&&!S.value),U=(0,t.computed)(()=>we(m.value)>0&&v.value),X=R=>{U.value?ne(R):V()},J=(0,t.computed)(()=>U.value&&W.value?o:r),I=(0,t.computed)(()=>({action:!0}));return be({setDisabled:R=>{h.value=R},setReadonly:R=>{y.value=R}}),()=>{if(w.value==="on"&&(S.value||u.value))return l(A.value,d.slots);const R={class:g.value,style:T.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:A.value,onClick:V,onFocus:M,onBlur:z};c&&(R.disabled=!0);const Q=[],G=(0,t.h)("input",R);Q.push(G);const le=[],L=(0,t.h)(J.value,{class:["action-icon"]}),O=(0,t.h)("view",{class:I.value,onClick:X},{default:()=>[L]});if(le.push(O),j.value){const ae=(0,t.h)("view",{class:_.value},[s.unit]);le.push(ae)}const q=(0,t.h)("view",{class:K.value},{default:()=>le});Q.push(q);const E={default:()=>Q};E.label=d.slots.default,E.prepend=d.slots.prepend,E.append=d.slots.append,E.fixedPreTip=d.slots.fixedPreTip,E.fixedTip=d.slots.fixedTip;const F=ye(s,aa);F.disabled=!1,F.readonly=u.value||S.value,F.visible=$.value,F["onUpdate:visible"]=H,F.modelValue=m.value,F["onUpdate:modelValue"]=Z,F.text=N.value,F["onUpdate:text"]=P,F.onChange=D;const Y=(0,t.h)(i,F);E.hide=()=>[Y];const te=ye(s,ve,ge);return s.prop&&(te.prop=`${s.prop}_item`),a(te,E)}}}}var{componentName:Ld,create:Rd,scope:Od}=ee("picker-item"),Fd=Rd(zd(Ld,Od,Pe,ze,oe.CircleClose,oe.ArrowRight,Ht,!1)),ra=Fd,Kd=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:a}){return()=>e.poppable?(0,t.h)(Se,{...a},n):n?.default?.()??null}}),Ud=Kd,Xn=(e,n,a)=>e.map(l=>{const{value:o="value",text:r="text",children:i="children"}=a??{},{[o]:c,[r]:s,[i]:d,...h}=l,u={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:c,text:s,children:d,_parent:n};return u.children&&u.children.length&&(u.children=Xn(u.children,u,a)),u}),ai=(e,n)=>{let a=0,l;for(;(l=e[a++])&&n(l)!==!0;)l.children&&l.children.length&&ai(l.children,n)},Hd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},jd=(e,n)=>{const{topId:a,idKey:l,pidKey:o,sortKey:r}={...Hd,...n||{}};let i=[],c={};return e.forEach(s=>{s={...s};const{[l]:d,[o]:h}=s,u=c[h]=c[h]||[];!i.length&&h===a&&(i=u),u.push(s),s.children=c[d]||(c[d]=[])}),r&&Object.keys(c).forEach(s=>{c[s].length>1&&c[s].sort((d,h)=>d[r]-h[r])}),c=null,i},ia={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},oi=(e,n)=>n[e.textKey],jt=(e,n)=>n[e.valueKey],Wd=(e,n)=>n[e.visibleKey],ri=(e,n)=>n[e.disabledKey],Yd=(e,n)=>{const a=n[e.doitKey];return ke(a)},Xd=(e,n)=>{const a=n[e.numKey];return a==null?null:de(n[a])},ii=(e,n,a)=>{const l=e.itemOptions;return typeof l=="function"?l(n,a):l||null};function Qd(e,n,a,l,o,r=!1){return{props:ia,emits:["update:modelValue","change","click"],setup(i,{slots:c,emit:s}){const d=(0,t.computed)(()=>{const q={};return q[`${e}`]=!0,q}),h=(0,t.computed)(()=>{const q={};return q[`${e}__titles`]=!0,q[`${i.direction}`]=!0,i.align&&(q[`${i.align}`]=!0),i.scroll===!0&&(q.scrollable=!0),i.shape&&(q[`${i.shape}`]=!0),i.showScrollArrow?(J.value===!0&&(q["has-left-scroll-arrow "]=!0),I.value===!0&&(q["has-right-scroll-arrow "]=!0)):i.showQuickNavigation&&(q["has-navigation"]=!0),q}),u=(0,t.computed)(()=>({})),y=(0,t.computed)(()=>{if(!i.gutter)return 0;const q=ce(i.gutter);return q<=0?0:q}),S=(0,t.ref)(i.modelValue);(0,t.watch)(()=>i.modelValue,q=>{S.value!==q&&(S.value=q,j(!1))});const w=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),b=(0,t.computed)(()=>{const q={};return f.value||(q.display="none"),q}),k=(0,t.ref)(),f=(0,t.ref)(!1),v=()=>{m(!f.value)},m=q=>{const E=q;E?(f.value=E,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.value["fox-tabs-bar__popup--hide"]=!0,k.value?k.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},N=(0,t.ref)(),A=(0,t.ref)([]),p=(q,E)=>{A.value[E]=q},g=q=>E=>{p(E,q)},C=(q,E)=>{const F=N.value,Y=A.value;if(!F||!Y||!Y[q])return;const te=Y[q];let ae=0;i.direction==="vertical"?ae=te.offsetTop-(F.offsetHeight-te.offsetHeight)/2:ae=te.offsetLeft-(F.offsetWidth-te.offsetWidth)/2,T(F,ae,E?0:.3,i.direction)},T=(q,E,F,Y)=>{let te=0;const ae=Y==="horizontal"?q.scrollLeft:q.scrollTop,se=F===0?1:Math.round(F*1e3/16);function ue(){Y==="horizontal"?q.scrollLeft+=(E-ae)/se:q.scrollTop+=(E-ae)/se,++te<se&&je(ue)}ue()},$=(q,E)=>{const F=jt(i,q),Y={};return Y[`${e}__titles-item`]=!0,Y.disabled=ri(i,q),Y.active=F===S.value,i.shape&&(Y[`${i.shape}`]=!0),i.ellipsis&&(Y.ellipsis=!0),E&&(E.class&&(Y[`${E.class}`]=!0),E.disabled===!0&&(Y.disabled=E.disabled)),Y},V=(q,E)=>{const F={};if(y.value>0){const Y=Math.abs(y.value/2);i.direction==="vertical"?(F["margin-top"]=`${Y}px`,F["margin-bottom"]=`${Y}px`):(F["margin-left"]=`${Y}px`,F["margin-right"]=`${Y}px`)}return E&&E.style&&Object.assign(F,E.style),F},H=(q,E)=>`${jt(i,q)??E}`,Z=(q,E)=>{const F=jt(i,q),Y={};Y[`${e}__popup-item`]=!0,Y.disabled=ri(i,q),Y.active=F===S.value,i.shape&&(Y[`${i.shape}`]=!0);const te=ii(i,q,E);return te&&te.disabled===!0&&(Y.disabled=te.disabled),Y},D=(0,t.computed)(()=>(i.data??[]).filter(q=>Wd(i,q)!==!1)),M=(q,E)=>{const F=jt(i,q);if(s("click",q,E),S.value==F)return;const Y=()=>{S.value=F,i.scroll&&C(E,!1),s("update:modelValue",F),s("change",q,E)};if(typeof i.beforeChange=="function"){const te=i.beforeChange(q,E);dt(te)?te.then(ae=>{ae!==!1&&Y()}).catch(()=>{Y()}):te!==!1&&Y()}else Y()},z=(q,E)=>function(){M(q,E)},P=(q,E)=>{M(q,E),m(!1)},K=(q,E)=>function(){P(q,E)},j=q=>{if(!Array.isArray(i.data)||!i.scroll)return;X()&&le();const E=i.data.findIndex(F=>jt(i,F)===S.value);E!==-1&&C(E,q)},x=()=>{X()||L()};(0,t.watch)(()=>i.data,()=>{setTimeout(j,0)}),(0,t.onMounted)(()=>{j(!0)}),(0,t.onBeforeUnmount)(()=>{x()});const _=(q,E)=>{if(c.item)return c.item({item:q,index:E});const F=ii(i,q,E),Y=[];if(c.text){const ae=c.text({item:q,index:E});Y.push(ae)}else{const ae=[];if(F?.doit===!0||Yd(i,q)){const Qe=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ae.push(Qe)}const se=F?.num??Xd(i,q);if(se){let Qe="";const Re=de(se);Re>=100?Qe="99+":Qe=`${Re}`;const rn=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[Qe]);ae.push(rn)}const ue={class:`${e}__titles-item-text`};ae.push(oi(i,q));const Xe=(0,t.h)("view",ue,ae);Y.push(Xe)}const te=(0,t.h)("view",{class:`${e}__titles-item-line`});return Y.push(te),(0,t.h)("view",{ref:g(E),class:$(q,F),style:V(q,F),key:H(q,E),onClick:z(q,E)},Y)},ne=()=>{const q=c.default?c.default():[];if(q.length===0)for(let E=0;E<D.value.length;E++){const F=D.value[E],Y=_(F,E);q.push(Y)}return(0,t.h)("view",{ref:N,class:h.value,style:u.value},q)},W=()=>{let q=null;return c.navigation?q=c.navigation():q=(0,t.h)(a),(0,t.h)("view",{class:`${e}__navigation`,onClick:v},[q])},U=()=>{const q=[];for(let E=0;E<D.value.length;E++){const F=D.value[E];let Y=null;c.popupItem?Y=c.popupItem({item:F,index:E}):Y=oi(i,F);const te=(0,t.h)("view",{class:Z(F,E),key:H(F,E),onClick:K(F,E)},[Y]);q.push(te)}return(0,t.h)("view",{class:w.value,style:b.value},q)},X=()=>i.showScrollArrow&&i.direction=="horizontal",J=(0,t.ref)(!1),I=(0,t.ref)(!1),R=q=>{const E=N.value,F=A.value;if(!(!E||!F))if(q==="left"){const Y=E.scrollLeft;let te=Y;for(let ae=0;ae<F.length;ae++){const se=F[ae].offsetLeft;if(Y-se<0)break;te=se}T(E,te,.3,"horizontal")}else{const Y=E.scrollLeft;let te=Y,ae=E.offsetWidth;for(let se=F.length-1;se>=0;se--){const ue=F[se].offsetLeft+F[se].offsetWidth;if(ue-Y<E.offsetWidth){te+=ae-ue;break}ae=ue}T(E,te,.3,"horizontal")}},Q=Ie(()=>{const q=N.value;if(!q)return;let E=q.scrollLeft>0;E!==J.value&&(J.value=E);let F=q.scrollWidth-q.scrollLeft>q.offsetWidth;F!==I.value&&(I.value=F)},50),G=q=>{Q()},le=()=>{const q=N.value;q&&(Q(),q.addEventListener("scroll",G))},L=()=>{const q=N.value;q&&q.removeEventListener("scroll",G)},O=q=>{if(q==="left"&&J.value!==!0||q==="right"&&I.value!==!0)return null;let E=null;return q==="left"?c.leftArrow?E=c.leftArrow():E=(0,t.h)(l):c.rightArrow?E=c.rightArrow():E=(0,t.h)(o),(0,t.h)("view",{class:[`${e}__scroll-arrow`,q],onClick:()=>{R(q)}},[E])};return()=>{const q=[],E=ne();if(q.push(E),X()){const F=O("left");F&&q.push(F);const Y=O("right");Y&&q.push(Y)}else if(i.showQuickNavigation){const F=W();q.push(F);const Y=U();q.push(Y)}return(0,t.h)("view",{class:d.value},q)}}}}var{create:Gd,componentName:Zd,scope:_d}=ee("tabs-bar"),Jd=Gd(Qd(Zd,_d,oe.MoreH,oe.Left,oe.Right,!1)),Wt=Jd,si=Symbol("TabsStatesKey"),sa={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},transition:{type:[Boolean],default:()=>!0},height:{type:[String,Number]},width:{type:[String,Number]}},ef=15,tf=300,nf=200;function lf(e,n,a=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*a}function ci(e,n=0,a,l,o=nf){a==="end"?e.style.transition=`transform ${o}ms linear`:e.style.transition="transform 0ms linear",l==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}var af=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,n,a,l=1,o){this.onStart=e,this.onMove=n,this.onEnd=a,this.momentumReduceRatio=l,this.isTouch=o??Wn()}open(e){this.el=e;const n=Yn(),a=(l,o,r)=>{const i={delta:l,direction:o,type:r};this.onMove(i)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;n.start(l),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const o={delta:0,type:"start",direction:this.direction};this.onStart(o)},this.touchmove=l=>{if(!this.moving)return;n.move(l);let o=0;if(this.direction==="horizontal"){if(n.isVertical())return;o=n.state.deltaX}else{if(n.isHorizontal())return;o=n.state.deltaY}a(o,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(n.isVertical()){this.moving=!1;return}l=n.state.deltaX}else{if(n.isHorizontal()){this.moving=!1;return}l=n.state.deltaY}const o=n.state.duration;o<tf&&Math.abs(l)>ef?(l=lf(l,o,this.momentumReduceRatio),a(l,this.direction,"end")):a(l,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function of(e,n,a,l=1,o){return new af(e,n,a,l,o)}function rf(e,n,a=!1){return{props:sa,emits:["update:modelValue","change"],setup(l,{emit:o,slots:r}){const i=(0,t.shallowRef)([]),c={current:(0,t.ref)(l.modelValue??""),direction:(0,t.ref)(l.direction),transition:l.transition,tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:g=>{const C={name:g};c.current.value===g&&(C.loaded=!0),i.value.push(C),(0,t.triggerRef)(i)},remove:g=>{const C=i.value.findIndex(T=>T.name===g);C!==-1&&i.value.splice(C,1)},isLoaded:g=>{if(!l.lazy)return!0;const C=i.value.findIndex(T=>T.name===g);return C!==-1?c.current.value?i.value[C].loaded??!1:C===0:!1}};(0,t.provide)(si,c);const s=g=>{const C=i.value.findIndex(T=>T.name===g);C!==-1&&(i.value[C].loaded=!0,(0,t.triggerRef)(i))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([g,C])=>{c.current.value!==g&&(c.current.value=g??"",s(g??"")),c.direction.value!==C&&(c.direction.value=C)});const d=(0,t.ref)(null),h=(0,t.ref)(null),u=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),y=(0,t.computed)(()=>{const g={};if(l.width){const C=me(l.width);C&&(g.width=C)}if(l.height){const C=me(l.height);C&&(g.height=C)}return g});let S=!0;const w=(0,t.computed)(()=>{const g={};if(l.transition===!1)return g;const C=i.value.length;if(C<=0)return g;const T=i.value.findIndex($=>$.name===c.current.value);return c.direction.value==="vertical"?c.tabHeight.value>0&&(g.height=`${C*c.tabHeight.value}px`,T!==-1&&(g.transform=`translate(0, -${T*c.tabHeight.value}px)`)):c.tabWidth.value>0&&(g.width=`${C*c.tabWidth.value}px`,T!==-1&&(g.transform=`translate(-${T*c.tabWidth.value}px, 0)`)),S&&(S=!1,g.transition="transform 0s ease"),g}),b={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},k=g=>{const C=i.value.length,T=i.value.findIndex($=>$.name===c.current.value);b.moved=0,g.direction==="vertical"?(b.min=-1*(c.tabHeight.value*(C-1)+c.tabHeight.value/4),b.max=c.tabHeight.value/4,b.start=-T*c.tabHeight.value,b.itemDistance=c.tabHeight.value):(b.min=-1*(c.tabWidth.value*(C-1)+c.tabWidth.value/4),b.max=c.tabWidth.value/4,b.start=-T*c.tabWidth.value,b.itemDistance=c.tabWidth.value)},f=g=>{const C=h.value;if(!C)return;let T=b.start+g.delta;if(T>b.max?T=b.max:T<b.min&&(T=b.min),g.type==="move")ci(C,T,"move",g.direction,300);else if(g.type==="end"){let $=Math.floor(Math.abs(T)*1/b.itemDistance);const V=Math.abs(T)%b.itemDistance;b.start>T?V>=b.itemDistance*b.triggerAutoMoveRatio&&($+=1):V>b.itemDistance-b.itemDistance*b.triggerAutoMoveRatio&&($+=1),T=-1*$*b.itemDistance,ci(C,T,"end",g.direction,300),b.moved=T;const H=i.value[$].name;c.current.value=H??"",s(H??""),o("update:modelValue",H)}},v=()=>{},m=()=>{if(!d.value)return;const g=Dn(d.value);c.tabWidth.value=g.width,c.tabHeight.value=g.height},N=Sn(m,250);let A=null,p=null;return(0,t.onMounted)(()=>{l.transition!==!1&&d.value&&(m(),window.ResizeObserver&&(p=new window.ResizeObserver(N),p.observe(d.value)),l.draggle&&(A=of(k,f,v),A.open(h.value)))}),(0,t.onBeforeUnmount)(()=>{p&&(p.disconnect(),p=null),A&&A.close()}),be({doLayout(){m()}}),()=>{const g=(0,t.h)("view",{class:`${e}__panes`,style:w.value,ref:h},[r?.default?.()]);return(0,t.h)("view",{class:u.value,style:y.value,ref:d},[g])}}}}var{create:sf,componentName:cf,scope:uf}=ee("tabs-container"),df=sf(rf(cf,uf,!1)),Yt=df,ff={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function mf(e,n,a){return{props:ff,setup(l,{emit:o,slots:r}){const i=(0,t.inject)(si);(0,t.onMounted)(()=>{i.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{i.remove(l.paneKey)});const c=(0,t.computed)(()=>{const h=[e];return i.direction.value==="vertical"?h.push("is-vertical"):h.push("is-horizontal"),i.transition===!1?h.push("is-no-transition"):h.push("is-transition"),h}),s=(0,t.computed)(()=>{const h={};return i.transition===!1?(i.current.value!==l.paneKey&&(h.display="none"),h):(i.direction.value==="vertical"&&i.tabHeight.value>0?h.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(h.width=`${i.tabWidth.value}px`),h)}),d=(0,t.computed)(()=>l.loaded!=null?ke(l.loaded):i.isLoaded(l.paneKey));return()=>{let h=[];if(d.value)h=r?.default?.()??[];else if(r.empty)h=r.empty();else{const u={class:`${e}__empty-icon`},y=(0,t.h)(l.emptyIcon??a,u),S=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),w=(0,t.h)("view",{class:`${e}__empty`},[y,S]);h.push(w)}return(0,t.h)("view",{class:c.value,style:s.value,prop:l.paneKey},h)}}}}var{create:hf,componentName:pf,scope:gf}=ee("tabs-pane"),yf=hf(mf(pf,gf,oe.Loading)),Qn=yf,ui=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=Xn(e,null,this.config)}updateChildren(e,n){n?n.children=Xn(e,n,this.config):this.nodes=Xn(e,null,this.config)}getNodeByValue(e){let n;return ai(this.nodes,a=>{if(a.value===e)return n=a,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let a=this.nodes;for(;a&&a.length;){const l=a.find(o=>o.value===e[o.level]);if(!l)break;n.push(l),a=l.children}return n}isLeaf(e,n){const{leaf:a,children:l}=e,o=Array.isArray(l)&&!!l.length;return a||!o&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:a}=e;return Array.isArray(a)&&!!a.length}},{create:bf,scope:vf}=ee("cascader-pane"),Sf=bf({components:{Loading:oe.Loading,Checklist:oe.Checklist,TabsBar:Wt,TabsContainer:Yt,TabsPane:Qn},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:a}=(0,pe.useFoxI18n)(vf),l=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=(0,t.ref)(0),r=(0,t.ref)(),i=(0,t.ref)(!1),c=(0,t.ref)(e.modelValue),s=(0,t.ref)(new ui([],{})),d=(0,t.ref)([]),h=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),u=(0,t.computed)(()=>i.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((m,N)=>({text:m.selectedNode?m.selectedNode.text:a("select"),value:N}))),y=new Map;let S;const w=async()=>{y.clear(),d.value=[],o.value=0,i.value=!1,S=null;let{options:m}=e;l.value.convertConfig&&(m=jd(m,l.value.convertConfig)),s.value=new ui(m,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),h.value&&!s.value.nodes.length&&await k({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:s.value.nodes,selectedNode:null}],b(!h.value)},b=async(m=!0)=>{const N=c.value;if(N===void 0||!s.value.nodes.length)return;if(N.length===0){o.value=0,d.value=[{nodes:s.value.nodes,selectedNode:null}];return}let A=N;if(h.value&&Array.isArray(N)&&N.length){A=[];let p=s.value.nodes.find(g=>g.value===N[0]);p&&(A=[p.value],i.value=!0,await k(await N.slice(1).reduce(async(g,C)=>{const T=await g;await k(T);const $=T&&T?.children?.find(V=>V.value===C);return $&&A.push(C),Promise.resolve($)},Promise.resolve(p))),i.value=!1)}A.length&&N===e.modelValue&&s.value.getPathNodesByValue(A).map((p,g)=>{o.value=g,v.handleNode(p,m)})},k=async m=>{if(!m)return;if(!l.value.lazyLoad){m.leaf=!0;return}if(s.value.isLeaf(m,h.value)||s.value.hasChildren(m,h.value))return;m.loading=!0;const N=m.root?null:m;let A=y.get(m);A||(A=new Promise(g=>{l.value.lazyLoad?.(m,g)}),y.set(m,A));const p=await A;Array.isArray(p)&&p.length>0?s.value.updateChildren(p,N):m.leaf=!0,m.loading=!1,y.delete(m)},f=m=>{const N=m.map(A=>A.value);c.value=N,n("change",N,m),n("pathChange",m),n("update:modelValue",N)},v={async handleNode(m,N){const{disabled:A,loading:p}=m;if(!(!N&&A||!d.value[o.value])){if(s.value.isLeaf(m,h.value)){if(m.leaf=!0,d.value[o.value].selectedNode=m,d.value=d.value.slice(0,m.level+1),!N){const g=d.value.map(C=>C.selectedNode);f(g),n("pathChange",g)}return}if(s.value.hasChildren(m,h.value)){const g=m.level+1;d.value[o.value].selectedNode=m,d.value=d.value.slice(0,g),d.value.push({nodes:m.children||[],selectedNode:null}),o.value=g,N||n("pathChange",d.value.map(C=>C.selectedNode));return}S=m,!p&&(await k(m),S===m&&(d.value[o.value].selectedNode=m,v.handleNode(m,N)))}},handleTabChange(m,N){S=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:a("select")},isSelected(m,N){return m.selectedNode&&m.selectedNode.value===N.value}};return(0,t.watch)([l,()=>e.options],()=>{w()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,m=>{$e(m,c.value)||(c.value=m,b(!h.value))}),(0,t.watch)(()=>e.visible,m=>{m&&Array.isArray(c.value)&&c.value.length>0&&b(),m&&r.value&&setTimeout(()=>{r.value.doLayout()},0)}),{panes:d,panesTitles:u,initLoading:i,tabsCursor:o,tabsContainerRef:r,...v}}}),kf={class:"fox-cascader"},wf={role:"menu",class:"fox-cascader__pane"},Cf=["aria-checked","aria-disabled","onClick"],Nf={class:"fox-cascader__item__title"};function Af(e,n,a,l,o,r){const i=(0,t.resolveComponent)("TabsBar"),c=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Checklist"),d=(0,t.resolveComponent)("TabsPane"),h=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",kf,[(0,t.createVNode)(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),(0,t.createVNode)(h,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=u=>e.tabsCursor=u)},{default:(0,t.withCtx)(()=>[!e.initLoading&&e.panes.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.panes,(u,y)=>((0,t.openBlock)(),(0,t.createBlock)(d,{"pane-key":y,key:y},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",wf,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(u.nodes,S=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:S.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(u,S),disabled:S.disabled}]),"aria-checked":e.isSelected(u,S),"aria-disabled":S.disabled||void 0,role:"menuitemradio",onClick:w=>e.handleNode(S,!1)},[(0,t.createElementVNode)("view",Nf,(0,t.toDisplayString)(S.text),1),S.loading?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Cf))),128))])]),_:2},1032,["pane-key"]))),128)):((0,t.openBlock)(),(0,t.createBlock)(d,{key:1,"pane-key":0},{default:(0,t.withCtx)(()=>[...n[2]||(n[2]=[(0,t.createElementVNode)("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}var Bf=re(Sf,[["render",Af]]),{create:Tf}=ee("cascader"),Vf=Tf({components:{CascaderPane:Bf,Wrapper:Ud},props:{...at,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},poppable:{type:Boolean,default:()=>!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=(0,t.ref)(e.modelValue),l=(0,t.computed)({get(){return e.visible},set(i){n("update:visible",i)}}),o=(i,c)=>{a.value=i,l.value=!1,n("change",i,c),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return(0,t.watch)(()=>e.modelValue,i=>{i!==a.value&&(a.value=i)}),{onChange:o,onPathChange:r,innerValue:a,innerVisible:l}}}),$f=["innerHTML"];function Ef(e,n,a,l,o,r){const i=(0,t.resolveComponent)("CascaderPane"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(c,{poppable:e.poppable,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"header",{},()=>[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,$f)):(0,t.createCommentVNode)("",!0)]),(0,t.createVNode)(i,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:3},8,["poppable","visible","closeable","close-icon-position"])}var Gn=re(Vf,[["render",Ef]]);function wt(e,n){return n[e.textKey??"text"]??""}function Ct(e,n){return n[e.valueKey??"value"]}function di(e,n){return n[e.childrenKey??"children"]}function Zn(e,n=[]){const a={texts:[],values:[]};for(let l=0;l<n.length;l++){const o=n[l],r=wt(e,o),i=Ct(e,o);a.texts.push(r),a.values.push(i??"")}return a}function fi(e,n,a,l,o=[]){if(!a)return;const r=a[l];for(let i=0;i<n.length;i++)if(wt(e,n[i])===r){const c=Ct(e,n[i])??"",s={[e.textKey]:r,[e.valueKey]:c};o.push(s);const d=di(e,n[i]);Array.isArray(d)&&fi(e,d,a,l+1,o);return}}function mi(e,n,a,l,o=[]){if(!a)return;const r=a[l];for(let i=0;i<n.length;i++)if(Ct(e,n[i])===r){const c=wt(e,n[i])??"",s={[e.textKey]:c,[e.valueKey]:r};o.push(s);const d=di(e,n[i]);Array.isArray(d)&&mi(e,d,a,l+1,o);return}}function ca(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let l=0;l<n.length;l++)if(wt(e,n[l])!==wt(e,a[l])||Ct(e,n[l])!==Ct(e,a[l]))return!1;return!0}var Df=class{proxy;constructor(e){this.proxy=e}async load(e,n,a){const l="cascader";if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,a);const o=nt(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(Ve(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await o(e,n,a))}};function If(){return new Df((0,t.getCurrentInstance)().proxy)}var hi={modelValue:{type:[String,Array]},pathNodes:{type:[Array]},title:{type:[String],required:!1},placeholder:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:[Object]},valueType:{type:String,required:!1,default:"value"},lazy:{type:[Boolean],required:!1},lazyLoad:{type:[Function],required:!1},valueKey:{type:[String],default:"value"},textKey:{type:[String],default:"text"},childrenKey:{type:[String],default:"children"},convertConfig:{type:[Object]},showAllLevels:{type:[Boolean],default:!0},separator:{type:[String],default:"/"},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}},qf={...ge,...ve,...hi};function xf(e,n,a,l,o,r,i,c=!1){return{props:qf,emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,d){const{innerDisabled:h,disabled:u,innerReadonly:y,readonly:S,browse:w}=qe(s),{emitEvent:b}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return u.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),v=(0,t.ref)(!1),m=If(),N=(0,t.ref)([]),A=(0,t.ref)([]),p=(0,t.computed)(()=>{if(Array.isArray(A.value)){if(s.showAllLevels===!1){const O=A.value.length-1;return A.value[O]}return A.value.join(s.separator)}else return A.value}),g=(0,t.ref)([]),C=(0,t.ref)([]);(0,t.watch)([()=>s.modelValue,()=>N.value],async([O,q])=>{if(b("setValue",O),s.lazy===!0){C.value.length==0&&(A.value=Array.isArray(O)?O:[],g.value=Array.isArray(O)?O:[]);return}if(s.valueType==="item"){let E=O;if(!ca(s,E,C.value)){C.value=E;let F=Zn(s,E);A.value=F.texts,g.value=F.values}}else if(s.valueType==="text"){let E=O,F=[];if(fi(s,q,E,0,F),!ca(s,F,C.value)){C.value=F;let Y=Zn(s,F);A.value=Y.texts,g.value=Y.values}}else{let E=O,F=[];if(mi(s,q,E,0,F),!ca(s,F,C.value)){C.value=F;let Y=Zn(s,F);A.value=Y.texts,g.value=Y.values}}}),s.lazy===!0&&(g.value=Array.isArray(s.modelValue)?s.modelValue:[]),(0,t.watch)([()=>s.source,()=>s.params],async([O,q])=>{s.lazy||O&&(N.value=await m.load(O,q))},{immediate:!0});const T="fox-input-item",$=(0,t.computed)(()=>({[T]:!0,"is-disabled":u.value,"is-readonly":S.value})),V=Te((0,t.computed)(()=>s.textAlign),"textAlign"),H=(0,t.computed)(()=>{const O={};return V.value&&(O["text-align"]=V.value),O}),Z=(0,t.ref)(!1),D=()=>{u.value===!0||S.value===!0||(Z.value=!0)},M=O=>{Z.value=O},z=(O,q)=>{let E=q.map(Y=>{if(Y==null)return Y;let te={...Y};return Reflect.deleteProperty(te,"text"),te[s.textKey]=Y.text??"",Reflect.deleteProperty(te,"value"),te[s.valueKey]=Y.value??"",te});C.value=E;let F=Zn(s,E);A.value=F.texts,g.value=F.values,s.valueType==="text"?(b("change",A.value,E),b("update:modelValue",A.value)):s.valueType==="item"?(b("change",E,E),b("update:modelValue",E)):(b("change",g.value,E),b("update:modelValue",g.value)),b("update:pathNodes",E)},P=O=>{b("pathChange",O.map(q=>{if(q==null)return q;let E={...q};return Reflect.deleteProperty(E,"text"),E[s.textKey]=q.text??"",Reflect.deleteProperty(E,"value"),E[s.valueKey]=q.value??"",E}))},K=O=>{v.value=!0,b("focus",g.value,O)},j=O=>{setTimeout(()=>{v.value=!1},0),b("blur",g.value,O)},x=(0,t.computed)(()=>({[`${T}__append`]:!0,"is-disabled":u.value,"is-readonly":S.value})),_=(0,t.computed)(()=>we(s.unit)>0),ne=(0,t.computed)(()=>we(s.unit)>0&&!v.value),W=(0,t.computed)(()=>({hidden:!ne.value})),U=O=>{C.value=[],A.value=[],g.value=[],b("update:modelValue",[]),b("change",[],O),b("clear",[]),b("update:pathNodes",[])},X=(0,t.computed)(()=>s.clearable&&!u.value&&!S.value),J=(0,t.computed)(()=>{let O=g.value&&g.value.length>0;return s.clearable&&O&&v.value}),I=O=>{J.value?U(O):D()},R=(0,t.computed)(()=>J.value&&X.value?o:r),Q=(0,t.computed)(()=>({action:!0}));let G=null;const le=()=>typeof G=="function"?G:typeof s.lazyLoad=="function"?s.lazyLoad:(G=async(O,q)=>{const E=[],F=[];let Y=0;if(!O.root){let te=O;for(;te;){const ae=wt(s,te),se=Ct(s,te);F.splice(0,0,ae),E.splice(0,0,se),te=te._parent}Y=E.length}q(await m.load(s.source,{...O,level:Y,pathLabels:F,pathValues:E},!0))},G),L=(0,t.ref)();return be({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()},setDisabled:O=>{h.value=O},setReadonly:O=>{y.value=O}}),()=>{if(w.value==="on"&&(S.value||u.value))return l(p.value,d.slots);const O={class:$.value,style:H.value,ref:L,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:D,onFocus:K,onBlur:j};c&&(O.disabled=!0);const q=[],E=(0,t.h)("input",O);q.push(E);const F=[],Y=(0,t.h)(R.value,{class:["action-icon"]}),te=(0,t.h)("view",{class:Q.value,onClick:I},{default:()=>[Y]});if(F.push(te),_.value){const rn=(0,t.h)("view",{class:W.value},[s.unit]);F.push(rn)}const ae=(0,t.h)("view",{class:x.value},{default:()=>F});q.push(ae);const se={default:()=>q};se.label=d.slots.default,se.prepend=d.slots.prepend,se.append=d.slots.append,se.fixedPreTip=d.slots.fixedPreTip,se.fixedTip=d.slots.fixedTip;const ue={};ue.visible=Z.value,ue["onUpdate:visible"]=M,ue.modelValue=g.value,ue.onChange=z,ue.onPathChange=P,ue.title=s.title,ue.valueKey=s.valueKey,ue.textKey=s.textKey,ue.childrenKey=s.childrenKey,ue.convertConfig=s.convertConfig,s.lazy?(ue.lazy=!0,ue.lazyLoad=le()):ue.options=N.value;const Xe={};Xe.header=d.slots.header;const Qe=(0,t.h)(i,ue,Xe);se.hide=()=>[Qe];const Re={..._e(s,hi)};return s.prop&&(Re.prop=`${s.prop}_item`),a(Re,se)}}}}var{componentName:Pf,create:Mf,scope:zf}=ee("cascader-item"),Lf=Mf(xf(Pf,zf,Pe,ze,oe.CircleClose,oe.ArrowRight,Gn,!1)),ua=Lf,Rf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs=l()})(e,(function(){"use strict";var a=1e3,l=6e4,o=36e5,r="millisecond",i="second",c="minute",s="hour",d="day",h="week",u="month",y="quarter",S="year",w="date",b="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|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,v={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(D){var M=["th","st","nd","rd"],z=D%100;return"["+D+(M[(z-20)%10]||M[z]||M[0])+"]"}},m=function(D,M,z){var P=String(D);return!P||P.length>=M?D:""+Array(M+1-P.length).join(z)+D},N={s:m,z:function(D){var M=-D.utcOffset(),z=Math.abs(M),P=Math.floor(z/60),K=z%60;return(M<=0?"+":"-")+m(P,2,"0")+":"+m(K,2,"0")},m:function D(M,z){if(M.date()<z.date())return-D(z,M);var P=12*(z.year()-M.year())+(z.month()-M.month()),K=M.clone().add(P,u),j=z-K<0,x=M.clone().add(P+(j?-1:1),u);return+(-(P+(z-K)/(j?K-x:x-K))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:u,y:S,w:h,d,D:w,h:s,m:c,s:i,ms:r,Q:y}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},A="en",p={};p[A]=v;var g="$isDayjsObject",C=function(D){return D instanceof H||!(!D||!D[g])},T=function D(M,z,P){var K;if(!M)return A;if(typeof M=="string"){var j=M.toLowerCase();p[j]&&(K=j),z&&(p[j]=z,K=j);var x=M.split("-");if(!K&&x.length>1)return D(x[0])}else{var _=M.name;p[_]=M,K=_}return!P&&K&&(A=K),K||!P&&A},$=function(D,M){if(C(D))return D.clone();var z=typeof M=="object"?M:{};return z.date=D,z.args=arguments,new H(z)},V=N;V.l=T,V.i=C,V.w=function(D,M){return $(D,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var H=(function(){function D(z){this.$L=T(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[g]=!0}var M=D.prototype;return M.parse=function(z){this.$d=(function(P){var K=P.date,j=P.utc;if(K===null)return new Date(NaN);if(V.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var x=K.match(k);if(x){var _=x[2]-1||0,ne=(x[7]||"0").substring(0,3);return j?new Date(Date.UTC(x[1],_,x[3]||1,x[4]||0,x[5]||0,x[6]||0,ne)):new Date(x[1],_,x[3]||1,x[4]||0,x[5]||0,x[6]||0,ne)}}return new Date(K)})(z),this.init()},M.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},M.$utils=function(){return V},M.isValid=function(){return this.$d.toString()!==b},M.isSame=function(z,P){var K=$(z);return this.startOf(P)<=K&&K<=this.endOf(P)},M.isAfter=function(z,P){return $(z)<this.startOf(P)},M.isBefore=function(z,P){return this.endOf(P)<$(z)},M.$g=function(z,P,K){return V.u(z)?this[P]:this.set(K,z)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(z,P){var K=this,j=!!V.u(P)||P,x=V.p(z),_=function(Q,G){var le=V.w(K.$u?Date.UTC(K.$y,G,Q):new Date(K.$y,G,Q),K);return j?le:le.endOf(d)},ne=function(Q,G){return V.w(K.toDate()[Q].apply(K.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(G)),K)},W=this.$W,U=this.$M,X=this.$D,J="set"+(this.$u?"UTC":"");switch(x){case S:return j?_(1,0):_(31,11);case u:return j?_(1,U):_(0,U+1);case h:var I=this.$locale().weekStart||0,R=(W<I?W+7:W)-I;return _(j?X-R:X+(6-R),U);case d:case w:return ne(J+"Hours",0);case s:return ne(J+"Minutes",1);case c:return ne(J+"Seconds",2);case i:return ne(J+"Milliseconds",3);default:return this.clone()}},M.endOf=function(z){return this.startOf(z,!1)},M.$set=function(z,P){var K,j=V.p(z),x="set"+(this.$u?"UTC":""),_=(K={},K[d]=x+"Date",K[w]=x+"Date",K[u]=x+"Month",K[S]=x+"FullYear",K[s]=x+"Hours",K[c]=x+"Minutes",K[i]=x+"Seconds",K[r]=x+"Milliseconds",K)[j],ne=j===d?this.$D+(P-this.$W):P;if(j===u||j===S){var W=this.clone().set(w,1);W.$d[_](ne),W.init(),this.$d=W.set(w,Math.min(this.$D,W.daysInMonth())).$d}else _&&this.$d[_](ne);return this.init(),this},M.set=function(z,P){return this.clone().$set(z,P)},M.get=function(z){return this[V.p(z)]()},M.add=function(z,P){var K,j=this;z=Number(z);var x=V.p(P),_=function(U){var X=$(j);return V.w(X.date(X.date()+Math.round(U*z)),j)};if(x===u)return this.set(u,this.$M+z);if(x===S)return this.set(S,this.$y+z);if(x===d)return _(1);if(x===h)return _(7);var ne=(K={},K[c]=l,K[s]=o,K[i]=a,K)[x]||1,W=this.$d.getTime()+z*ne;return V.w(W,this)},M.subtract=function(z,P){return this.add(-1*z,P)},M.format=function(z){var P=this,K=this.$locale();if(!this.isValid())return K.invalidDate||b;var j=z||"YYYY-MM-DDTHH:mm:ssZ",x=V.z(this),_=this.$H,ne=this.$m,W=this.$M,U=K.weekdays,X=K.months,J=K.meridiem,I=function(G,le,L,O){return G&&(G[le]||G(P,j))||L[le].slice(0,O)},R=function(G){return V.s(_%12||12,G,"0")},Q=J||function(G,le,L){var O=G<12?"AM":"PM";return L?O.toLowerCase():O};return j.replace(f,(function(G,le){return le||(function(L){switch(L){case"YY":return String(P.$y).slice(-2);case"YYYY":return V.s(P.$y,4,"0");case"M":return W+1;case"MM":return V.s(W+1,2,"0");case"MMM":return I(K.monthsShort,W,X,3);case"MMMM":return I(X,W);case"D":return P.$D;case"DD":return V.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return I(K.weekdaysMin,P.$W,U,2);case"ddd":return I(K.weekdaysShort,P.$W,U,3);case"dddd":return U[P.$W];case"H":return String(_);case"HH":return V.s(_,2,"0");case"h":return R(1);case"hh":return R(2);case"a":return Q(_,ne,!0);case"A":return Q(_,ne,!1);case"m":return String(ne);case"mm":return V.s(ne,2,"0");case"s":return String(P.$s);case"ss":return V.s(P.$s,2,"0");case"SSS":return V.s(P.$ms,3,"0");case"Z":return x}return null})(G)||x.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(z,P,K){var j,x=this,_=V.p(P),ne=$(z),W=(ne.utcOffset()-this.utcOffset())*l,U=this-ne,X=function(){return V.m(x,ne)};switch(_){case S:j=X()/12;break;case u:j=X();break;case y:j=X()/3;break;case h:j=(U-W)/6048e5;break;case d:j=(U-W)/864e5;break;case s:j=U/o;break;case c:j=U/l;break;case i:j=U/a;break;default:j=U}return K?j:V.a(j)},M.daysInMonth=function(){return this.endOf(u).$D},M.$locale=function(){return p[this.$L]},M.locale=function(z,P){if(!z)return this.$L;var K=this.clone(),j=T(z,P,!0);return j&&(K.$L=j),K},M.clone=function(){return V.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},D})(),Z=H.prototype;return $.prototype=Z,[["$ms",r],["$s",i],["$m",c],["$H",s],["$W",d],["$M",u],["$y",S],["$D",w]].forEach((function(D){Z[D[1]]=function(M){return this.$g(M,D[0],D[1])}})),$.extend=function(D,M){return D.$i||(D(M,H,$),D.$i=!0),$},$.locale=T,$.isDayjs=C,$.unix=function(D){return $(1e3*D)},$.en=p[A],$.Ls=p,$.p={},$}))})),Of=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var a={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"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,r=/\d\d/,i=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,s={},d=function(k){return(k=+k)+(k>68?1900:2e3)},h=function(k){return function(f){this[k]=+f}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(f){if(!f||f==="Z")return 0;var v=f.match(/([+-]|\d\d)/g),m=60*v[1]+(+v[2]||0);return m===0?0:v[0]==="+"?-m:m})(k)}],y=function(k){var f=s[k];return f&&(f.indexOf?f:f.s.concat(f.f))},S=function(k,f){var v,m=s.meridiem;if(m){for(var N=1;N<=24;N+=1)if(k.indexOf(m(N,0,f))>-1){v=N>12;break}}else v=k===(f?"pm":"PM");return v},w={A:[c,function(k){this.afternoon=S(k,!1)}],a:[c,function(k){this.afternoon=S(k,!0)}],Q:[o,function(k){this.month=3*(k-1)+1}],S:[o,function(k){this.milliseconds=100*+k}],SS:[r,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[i,h("seconds")],ss:[i,h("seconds")],m:[i,h("minutes")],mm:[i,h("minutes")],H:[i,h("hours")],h:[i,h("hours")],HH:[i,h("hours")],hh:[i,h("hours")],D:[i,h("day")],DD:[r,h("day")],Do:[c,function(k){var f=s.ordinal;if(this.day=k.match(/\d+/)[0],f)for(var v=1;v<=31;v+=1)f(v).replace(/\[|\]/g,"")===k&&(this.day=v)}],w:[i,h("week")],ww:[r,h("week")],M:[i,h("month")],MM:[r,h("month")],MMM:[c,function(k){var f=y("months"),v=(y("monthsShort")||f.map((function(m){return m.slice(0,3)}))).indexOf(k)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[c,function(k){var f=y("months").indexOf(k)+1;if(f<1)throw new Error;this.month=f%12||f}],Y:[/[+-]?\d+/,h("year")],YY:[r,function(k){this.year=d(k)}],YYYY:[/\d{4}/,h("year")],Z:u,ZZ:u};function b(k){for(var f=k,v=s&&s.formats,m=(k=f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function($,V,H){var Z=H&&H.toUpperCase();return V||v[H]||a[H]||v[Z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,M,z){return M||z.slice(1)}))}))).match(l),N=m.length,A=0;A<N;A+=1){var p=m[A],g=w[p],C=g&&g[0],T=g&&g[1];m[A]=T?{regex:C,parser:T}:p.replace(/^\[|\]$/g,"")}return function($){for(var V={},H=0,Z=0;H<N;H+=1){var D=m[H];if(typeof D=="string")Z+=D.length;else{var M=D.regex,z=D.parser,P=$.slice(Z),K=M.exec(P)[0];z.call(V,K),$=$.replace(K,"")}}return(function(j){var x=j.afternoon;if(x!==void 0){var _=j.hours;x?_<12&&(j.hours+=12):_===12&&(j.hours=0),delete j.afternoon}})(V),V}}return function(k,f,v){v.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(d=k.parseTwoDigitYear);var m=f.prototype,N=m.parse;m.parse=function(A){var p=A.date,g=A.utc,C=A.args;this.$u=g;var T=C[1];if(typeof T=="string"){var $=C[2]===!0,V=C[3]===!0,H=$||V,Z=C[2];V&&(Z=C[2]),s=this.$locale(),!$&&Z&&(s=v.Ls[Z]),this.$d=(function(P,K,j,x){try{if(["x","X"].indexOf(K)>-1)return new Date((K==="X"?1e3:1)*P);var _=b(K)(P),ne=_.year,W=_.month,U=_.day,X=_.hours,J=_.minutes,I=_.seconds,R=_.milliseconds,Q=_.zone,G=_.week,le=new Date,L=U||(ne||W?1:le.getDate()),O=ne||le.getFullYear(),q=0;ne&&!W||(q=W>0?W-1:le.getMonth());var E,F=X||0,Y=J||0,te=I||0,ae=R||0;return Q?new Date(Date.UTC(O,q,L,F,Y,te,ae+60*Q.offset*1e3)):j?new Date(Date.UTC(O,q,L,F,Y,te,ae)):(E=new Date(O,q,L,F,Y,te,ae),G&&(E=x(E).week(G).toDate()),E)}catch{return new Date("")}})(p,T,g,v),this.init(),Z&&Z!==!0&&(this.$L=this.locale(Z).$L),H&&p!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var D=T.length,M=1;M<=D;M+=1){C[1]=T[M-1];var z=v.apply(this,C);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}M===D&&(this.$d=new Date(""))}else N.call(this,A)}}}))})),Ff=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(a,l){var o=l.prototype,r=o.format;o.format=function(i){var c=this,s=this.$locale();if(!this.isValid())return r.bind(this)(i);var d=this.$utils(),h=(i||"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(u){switch(u){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return s.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return s.ordinal(c.week(),"W");case"w":case"ww":return d.s(c.week(),u==="w"?1:2,"0");case"W":case"WW":return d.s(c.isoWeek(),u==="W"?1:2,"0");case"k":case"kk":return d.s(String(c.$H===0?24:c.$H),u==="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 u}}));return r.bind(this)(h)}}}))})),Kf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(a,l,o){var r=l.prototype,i=function(u){return u&&(u.indexOf?u:u.s)},c=function(u,y,S,w,b){var k=u.name?u:u.$locale(),f=i(k[y]),v=i(k[S]),m=f||v.map((function(A){return A.slice(0,w)}));if(!b)return m;var N=k.weekStart;return m.map((function(A,p){return m[(p+(N||0))%7]}))},s=function(){return o.Ls[o.locale()]},d=function(u,y){return u.formats[y]||(function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,b,k){return b||k.slice(1)}))})(u.formats[y.toUpperCase()])},h=function(){var u=this;return{months:function(y){return y?y.format("MMMM"):c(u,"months")},monthsShort:function(y){return y?y.format("MMM"):c(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):c(u,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):c(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):c(u,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return d(u.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return h.bind(this)()},o.localeData=function(){var u=s();return{firstDayOfWeek:function(){return u.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(y){return d(u,y)},meridiem:u.meridiem,ordinal:u.ordinal}},o.months=function(){return c(s(),"months")},o.monthsShort=function(){return c(s(),"monthsShort","months",3)},o.weekdays=function(u){return c(s(),"weekdays",null,null,u)},o.weekdaysShort=function(u){return c(s(),"weekdaysShort","weekdays",3,u)},o.weekdaysMin=function(u){return c(s(),"weekdaysMin","weekdays",2,u)}}}))})),Uf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var a="week",l="year";return function(o,r,i){var c=r.prototype;c.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=i(this).startOf(l).add(1,l).date(d),u=i(this).endOf(a);if(h.isBefore(u))return 1}var y=i(this).startOf(l).date(d).startOf(a).subtract(1,"millisecond"),S=this.diff(y,a,!0);return S<0?i(this).startOf("week").week():Math.ceil(S)},c.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})),Hf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(a,l){l.prototype.weekYear=function(){var o=this.month(),r=this.week(),i=this.year();return r===1&&o===11?i+1:o===0&&r>=52?i-1:i}}}))})),jf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(a,l,o){l.prototype.dayOfYear=function(r){var i=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}}))})),Wf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(a,l){l.prototype.isSameOrAfter=function(o,r){return this.isSame(o,r)||this.isAfter(o,r)}}}))})),Yf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(a,l){l.prototype.isSameOrBefore=function(o,r){return this.isSame(o,r)||this.isBefore(o,r)}}}))})),Ke=He(Rf(),1),Xf=He(Of(),1),Qf=He(Ff(),1),Gf=He(Kf(),1),Zf=He(Uf(),1),_f=He(Hf(),1),Jf=He(jf(),1),em=He(Wf(),1),tm=He(Yf(),1);Ke.default.extend(Gf.default),Ke.default.extend(Qf.default),Ke.default.extend(Xf.default),Ke.default.extend(Zf.default),Ke.default.extend(_f.default),Ke.default.extend(Jf.default),Ke.default.extend(em.default),Ke.default.extend(tm.default);var Nt={format(e,n="YYYY-MM-DD"){return(0,Ke.default)(e).format(n)},parser(e,n){return(0,Ke.default)(e,n).toDate()},getDay(e,n,a){let l=n??new Date;const o=e*(1e3*60*60*24);return l=new Date(l.getTime()+o),a=a??"YYYY-MM-DD",this.format(l,a)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){let l=new Date(e+"/"+n+"/"+a).getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},compare(e,n,a){const l=typeof e=="string"?this.parser(e,a):e,o=typeof n=="string"?this.parser(n,a):n,r=l.getTime(),i=o.getTime();return r==i?0:r>i?1:-1},between(e,n,a,l){let o;l==="year"?o=new Date(new Date(n).setFullYear(n.getFullYear()+a)):l==="month"?o=new Date(new Date(n).setMonth(n.getMonth()+a)):o=new Date(new Date(n).setDate(n.getDate()+a));const r=e.getTime(),i=o.getTime(),c=n.getTime();return i>c?r>=c&&r<=i:r>=i&&r<=c},inScope4Day(e,n,a){return this.between(e,n,a,"day")},inScope4Month(e,n,a){return this.between(e,n,a,"month")},inScope4Year(e,n,a){return this.between(e,n,a,"year")}},pi=new Date().getFullYear(),da={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},_n=(e,n,a)=>{let l;if(We(n)?l=n:typeof n=="string"&&we(n)>0?l=Nt.parser(n,a):l=new Date,l.toString()==="Invalid Date")return null;let o=Math.max(l.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),new Date(o)},fa=(e,n,a)=>{We(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),Nt.format(new Date(l),a)},ma={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:()=>"date"},valueFormat:{type:String},visible:{type:Boolean,default:()=>!1},title:{type:String},isShowChinese:{type:Boolean,default:()=>!0},minuteStep:{type:Number,default:()=>1},minDate:{type:Date,default:()=>new Date(pi-10,0,1),validator:We},maxDate:{type:Date,default:()=>new Date(pi+10,11,31),validator:We},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:nm,scope:lm}=ee("date-picker"),am=nm({components:{Picker:Ht},props:{...ma},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=(0,pe.useFoxI18n)(lm),l={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds"),today:a("today"),fullWeekdays:JSON.parse(a("fullWeekdays"))},o=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,m=>{o.value=m});function r(m,N){return new Date(m,N,0).getDate()}const i=(m,N)=>{const A=e[`${m}Date`],p=A.getFullYear();let g=1,C=1,T=0,$=0;m==="max"&&(g=12,C=r(N.getFullYear(),N.getMonth()+1),T=23,$=59);const V=$;return N.getFullYear()===p&&(g=A.getMonth()+1,N.getMonth()+1===g&&(C=A.getDate(),N.getDate()===C&&(T=A.getHours(),N.getHours()===T&&($=A.getMinutes())))),{[`${m}Year`]:p,[`${m}Month`]:g,[`${m}Date`]:C,[`${m}Hour`]:T,[`${m}Minute`]:$,[`${m}Seconds`]:V}},c=(0,t.computed)(()=>{if(!y.value)return[];const{maxYear:m,maxDate:N,maxMonth:A,maxHour:p,maxMinute:g,maxSeconds:C}=i("max",y.value),{minYear:T,minDate:$,minMonth:V,minHour:H,minMinute:Z,minSeconds:D}=i("min",y.value);let M=[{type:"year",range:[T,m]},{type:"month",range:[V,A]},{type:"day",range:[$,N]},{type:"hour",range:[H,p]},{type:"minute",range:[Z,g]},{type:"seconds",range:[D,C]}];switch(e.type){case"date":M=M.slice(0,3);break;case"datetime":M=M.slice(0,5);break;case"time":M=M.slice(3,6);break;case"year-month":M=M.slice(0,2);break;case"month-day":M=M.slice(1,3);break;case"datehour":M=M.slice(0,4);break;case"hour-minute":M=M.slice(3,5);break}return M}),s=(m,N,A,p,g)=>{const C=[];for(;m<=N;){let T=!0;if(typeof e.itemFilter=="function"){const $={text:`${m}`,value:m,type:A,currentYearMonth:p};T=e.itemFilter($)}if(T)if(typeof e.itemFormatter=="function"){const $={text:`${m}`,value:m,type:A,currentYearMonth:p};e.itemFormatter($),C.push({text:$.text,value:$.value})}else if(e.isShowChinese){let $=`${m}${l[A]}`;if(A==="day"){if(p[0]===g[0]&&p[1]===g[1]&&m===g[2])$=l.today;else{const V=new Date(p[0],p[1],m).getDay();$=`${$} ${l.fullWeekdays[V]}`}C.push({text:$,value:m})}else C.push({text:m+l[A],value:m})}else C.push({text:`${m}`,value:m});A==="minute"?m+=e.minuteStep:m++}return C},d=(0,t.computed)(()=>{const m=new Date,N=[m.getFullYear(),m.getMonth(),m.getDate()],A=[];y.value&&(A[0]=y.value.getFullYear(),A[1]=y.value.getMonth());let p=[];return c.value.forEach(g=>{let C=s(g.range[0],g.range[1],g.type,A,N);C&&p.push(C)}),p}),h=(m,N)=>m==="year"?N.getFullYear():m==="month"?N.getMonth()+1:m==="day"?N.getDate():m==="hour"?N.getHours():m==="minute"?N.getMinutes():m==="seconds"?N.getSeconds():0,u=(0,t.ref)(),y=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,m=>{let N;if(typeof m=="string"?m.length==0||m==="Invalid Date"?N=new Date:e.valueFormat?N=_n(e,e.modelValue,e.valueFormat):N=_n(e,m,da[e.type]):We(m)?N=m:N=new Date,!!N&&(!y.value||N.getTime()!==y.value.getTime())){y.value=N;let A=[];c.value.forEach(p=>{let g=h(p.type,N);A.push(g)}),u.value=A}},{immediate:!0});const S=m=>{if(!m||m.length===0){y.value=new Date;let N=[];c.value.forEach(A=>{let p=h(A.type,y.value);N.push(p)}),u.value=N;return}if(e.type==="date"){const N=m[0],A=m[1]-1,p=Math.min(m[2],r(N,A+1));p!==m[2]&&(m[2]=p),y.value=new Date(N,A,p)}else if(e.type==="datetime"){const N=m[0],A=m[1]-1,p=Math.min(m[2],r(N,A+1)),g=m[3],C=m[4];p!==m[2]&&(m[2]=p),y.value=new Date(N,A,p,g,C)}else if(e.type==="time"){const N=m[0],A=m[1],p=m[2],g=y.value??new Date;y.value=new Date(g.getFullYear(),g.getMonth(),g.getDate(),N,A,p)}else if(e.type==="year-month"){const N=m[0],A=m[1]-1;y.value=new Date(N,A)}else if(e.type==="month-day"){const N=(y.value??new Date).getFullYear(),A=m[0]-1,p=Math.min(m[1],r(N,A+1));p!==m[1]&&(m[1]=p),y.value=new Date(N,A,p)}else if(e.type==="datehour"){const N=m[0],A=m[1]-1,p=Math.min(m[2],r(N,A+1)),g=m[3];p!==m[2]&&(m[2]=p),y.value=new Date(N,A,p,g)}else if(e.type==="hour-minute"){const N=m[0],A=m[1],p=y.value??new Date;y.value=new Date(p.getFullYear(),p.getMonth(),p.getDate(),N,A)}u.value=m};return{columns:d,dateIndexs:u,show:o,onChange:m=>{S(m)},onClose:()=>{n("update:close",!1)},onConfirm:m=>{S(m);const N=y.value??new Date;e.valueFormat?n("update:modelValue",fa(e,N,e.valueFormat)):n("update:modelValue",N),n("confirm",m)},onClear:()=>{n("clear")},onUpdateVisible:m=>{o.value=m,n("update:visible",m)}}}});function om(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"top")]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}var Jn=re(am,[["render",om]]),rm={format:{type:[String]},placeholder:{type:[String]},textAlign:{type:[String]},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}};function im(e){let n=e.format;return n||(n=da[e.type??"date"]),n}var sm={...ge,...ve,...ma,...rm};function cm(e,n,a,l,o,r,i,c=!1){return{props:sm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{innerDisabled:h,disabled:u,innerReadonly:y,readonly:S,browse:w}=qe(s),{emitEvent:b}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return u.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),v=(0,t.ref)(!1),N=xe(s,"modelValue",I=>I==null?null:typeof I=="string"?I.length==0?null:s.valueFormat?_n(s,I,s.valueFormat)??I:_n(s,I,da[s.type])??I:We(I)?I:null,b),A=(0,t.computed)(()=>{if(!N.value)return"";const I=im(s);return fa(s,N.value,I)}),p="fox-input-item",g=(0,t.computed)(()=>({[p]:!0,"is-disabled":u.value,"is-readonly":S.value})),C=Te((0,t.computed)(()=>s.textAlign),"textAlign"),T=(0,t.computed)(()=>{const I={};return C.value&&(I["text-align"]=C.value),I}),$=(0,t.ref)(!1),V=()=>{$.value=!0},H=()=>{$.value=!1};d.expose({showPicker:V,hidePicker:H});const Z=I=>{$.value=I},D=I=>{if(N.value=I,s.valueFormat){let R=fa(s,I,s.valueFormat);b("update:modelValue",R,{}),b("change",R,{})}else b("update:modelValue",I,{}),b("change",I,{})},M=I=>{let R=I.target.value;v.value=!0,b("focus",R,I)},z=I=>{setTimeout(()=>{v.value=!1},0);let R=I.target.value;s.maxLength&&R.length>Number(s.maxLength)&&(R=R.slice(0,Number(s.maxLength))),b("blur",R,I)},P=(0,t.computed)(()=>({[`${p}__append`]:!0,"is-disabled":u.value,"is-readonly":S.value})),K=(0,t.computed)(()=>we(s.unit)>0),j=(0,t.computed)(()=>we(s.unit)>0&&!v.value),x=(0,t.computed)(()=>({hidden:!j.value})),_=I=>{N.value="",b("update:modelValue","",I),b("change","",I),b("clear",""),H()},ne=(0,t.computed)(()=>s.clearable&&!u.value&&!S.value),W=(0,t.computed)(()=>{let I=we(N.value)>0;return s.clearable&&I&&v.value}),U=I=>{W.value?_(I):V()},X=(0,t.computed)(()=>W.value&&ne.value?o:r),J=(0,t.computed)(()=>({action:!0}));return be({setDisabled:I=>{h.value=I},setReadonly:I=>{y.value=I}}),()=>{if(w.value==="on"&&(S.value||u.value))return l(A.value,d.slots);const I={class:g.value,style:T.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:A.value,onClick:V,onFocus:M,onBlur:z};c&&(I.disabled=!0);const R=[],Q=(0,t.h)("input",I);R.push(Q);const G=[],le=(0,t.h)(X.value,{class:["action-icon"]}),L=(0,t.h)("view",{class:J.value,onClick:U},{default:()=>[le]});if(G.push(L),K.value){const ae=(0,t.h)("view",{class:x.value},[s.unit]);G.push(ae)}const O=(0,t.h)("view",{class:P.value},{default:()=>G});R.push(O);const q={default:()=>R};q.label=d.slots.default,q.prepend=d.slots.prepend,q.append=d.slots.append,q.fixedPreTip=d.slots.fixedPreTip,q.fixedTip=d.slots.fixedTip;const E=ye(s,ma);E.valueFormat=null,E.disabled=!1,E.readonly=u.value||S.value,E.visible=$.value,E["onUpdate:visible"]=Z,E.modelValue=N.value,E["onUpdate:modelValue"]=D,E.onClear=_;const F={};if(d.slots.top){const ae=d.slots.top();F.top=()=>ae}if(d.slots.bottom){const ae=d.slots.bottom();F.default=()=>ae}const Y=(0,t.h)(i,E,F);q.hide=()=>[Y];const te={...ye(s,ve,ge)};return s.prop&&(te.prop=`${s.prop}_item`),a(te,q)}}}}var{create:um,componentName:dm,scope:fm}=ee("date-item"),mm=um(cm(dm,fm,Pe,ze,oe.CircleClose,oe.Date,Jn,!1)),ha=mm,ie={format(e,n="YYYY-MM-DD"){return Nt.format(e,n)},parser(e,n){return Nt.parser(e,n)},isLeapYear:function(e){return Nt.isLeapYear(e)},getWhatDay:function(e,n,a){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+a).getDay()]},getMonthPreDay:function(e,n){let a=new Date(e+"/"+n+"/01").getDay();return a==0&&(a=7),a},getMonthDays:function(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit:function(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},getDay:function(e){e=e||0;let n=new Date;const a=e*(1e3*60*60*24);return n=new Date(n.getTime()+a),this.date2Str(n)},compareDate:function(e,n){return!(new Date(e.replace("-","/").replace("-","/"))>=new Date(n.replace("-","/").replace("-","/")))},isEqual:function(e,n){return new Date(e).getTime()==new Date(n).getTime()},getMonthWeek:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a));let r=o.getDay();const i=o.getDate();let c=6-r;return l!==0&&(r=r==0?7:r,c=7-r),Math.ceil((i+c)/7)},getYearWeek:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),i=Math.round((o.valueOf()-r.valueOf())/864e5);return Math.ceil((i+(r.getDay()+1-1))/7)},getWeekDate:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a)),r=o.getTime();let i=o.getDay();if(l===0){const s=r-i*864e5,d=r+(6-i)*864e5;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}else{i=i==0?7:i;const c=1440*60*1e3,s=r-(i-1)*c,d=r+(7-i)*c;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}},formatResultDate:function(e){const n=[...e.split("-")];return n[2]=ie.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ie.getWhatDay(+n[0],+n[1],+n[2]),n}},{create:hm,scope:pm}=ee("calendar-pane"),gm=hm({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String},confirmText:{type:String},startText:{type:String},endText:{type:String},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:ie.getDay(0)},endDate:{type:String,default:ie.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:l,t:o}=(0,pe.useFoxI18n)(pm),r=l(e,["title","confirmText","startText","endText","today"]),i=JSON.parse(o("weekdays")),c=(0,t.ref)([...i.slice(e.firstDayOfWeek,7),...i.slice(0,e.firstDayOfWeek)]),s=(0,t.ref)(null),d=(0,t.ref)(null),h=(0,t.ref)(null),u=(0,t.ref)(null),y=(0,t.ref)(0),S=(0,t.computed)(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),w=(0,t.computed)(()=>a.btn),b=(0,t.computed)(()=>a["top-info"]),k=(0,t.computed)(()=>a["bottom-info"]),f=(0,t.reactive)({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),v=I=>I.split("-"),m=I=>ie.isEqual(f.currDate[0],I),N=I=>ie.isEqual(f.currDate[1],I),A=I=>f.currDate?.length>0?f.currDate?.some(R=>ie.isEqual(R,I)):!1,p=(I,R)=>R.curData[0]+"-"+R.curData[1]+"-"+ie.getNumTwoBit(+I.day),g=(I,R)=>{const Q=p(I,R),{type:G}=e;return I.type=="curr"?ie.isEqual(f.currDate,Q)||(G=="range"||G=="week")&&(m(Q)||N(Q))||G=="multiple"&&A(Q)?`${f.dayPrefix}--active`:f.propStartDate&&ie.compareDate(Q,f.propStartDate)||f.propEndDate&&ie.compareDate(f.propEndDate,Q)?`${f.dayPrefix}--disabled`:(G=="range"||G=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ie.compareDate(f.currDate[0],Q)&&ie.compareDate(Q,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},C=()=>{const{type:I}=e;if(I=="range"&&f.chooseData.length==2||I!="range"){let R=f.chooseData.slice(0);I=="week"&&(R={weekDate:[$(f.chooseData[0]),$(f.chooseData[1])]}),n("choose",R),e.poppable&&n("update")}},T=(I,R,Q=!1)=>{if(g(I,R)!=`${f.dayPrefix}--disabled`){const{type:G}=e;let[le,L]=R.curData,O=[...R.curData];if(O[2]=ie.getNumTwoBit(Number(I.day)),O[3]=`${O[0]}-${O[1]}-${O[2]}`,O[4]=ie.getWhatDay(+O[0],+O[1],+O[2]),G=="multiple")if(f.currDate?.length>0){let q;f.currDate?.forEach((E,F)=>{E==O[3]&&(q=F)}),Q?f.chooseData.push([...O]):q!==void 0?(f.currDate.splice(q,1),f.chooseData.splice(q,1)):(f.currDate.push(O[3]),f.chooseData.push([...O]))}else f.currDate=[O[3]],f.chooseData=[[...O]];else if(G=="range"){let q=Object.values(f.currDate).length;q==2||q==0?f.currDate=[O[3]]:ie.compareDate(f.currDate[0],O[3])?Array.isArray(f.currDate)&&f.currDate.push(O[3]):Array.isArray(f.currDate)&&f.currDate.unshift(O[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...O]]:ie.compareDate(f.chooseData[0][3],O[3])?f.chooseData=[...f.chooseData,[...O]]:f.chooseData=[[...O],...f.chooseData]}else if(G=="week"){let q=ie.getWeekDate(le,L,I.day,e.firstDayOfWeek);f.propStartDate&&ie.compareDate(q[0],f.propStartDate)&&q.splice(0,1,f.propStartDate),f.propEndDate&&ie.compareDate(f.propEndDate,q[1])&&q.splice(1,1,f.propEndDate),f.currDate=q,f.chooseData=[ie.formatResultDate(q[0]),ie.formatResultDate(q[1])]}else f.currDate=O[3],f.chooseData=[...O];if(!Q){let q=f.chooseData;G=="week"&&(q={weekDate:[$(f.chooseData[0]),$(f.chooseData[1])]}),n("select",q),(e.isAutoBackFill||!e.poppable)&&C()}}},$=I=>{let[R,Q,G]=I;return{date:I,monthWeekNum:ie.getMonthWeek(R,Q,G,e.firstDayOfWeek),yearWeekNum:ie.getYearWeek(R,Q,G,e.firstDayOfWeek)}},V=I=>{const R=I=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let Q=parseInt(R.curData[0]),G=parseInt(R.curData[1].toString().replace(/^0/,""));switch(I){case"prev":G==1&&(Q-=1),G=G==1?12:--G;break;case"next":G==12&&(Q+=1),G=G==12?1:++G;break}return[Q+"",ie.getNumTwoBit(G),ie.getMonthDays(String(Q),String(G))+""]},H=(I,R,Q)=>{let{year:G,month:le}=Q;return R=="prev"&&I>=7&&(I-=7),Array.from(Array(I),(L,O)=>({day:String(O+1),type:R,year:G,month:le}))},Z=(I,R,Q,G)=>{I=I-e.firstDayOfWeek;let{year:le,month:L}=Q;return R=="prev"&&I>=7&&(I-=7),Array.from(Array(G),(O,q)=>({day:String(q+1),type:R,year:le,month:L})).slice(G-I)},D=(I,R)=>{const Q=ie.getMonthPreDay(+I[0],+I[1]);let G=Number(I[1])-1,le=Number(I[0]);G<=0&&(G=12,le+=1);const L=ie.getMonthDays(String(I[0]),String(I[1])),O=ie.getMonthDays(le+"",G+""),q={year:I[0],month:I[1]},E={curData:I,title:o("monthTitle",{year:q.year,month:q.month}),monthData:[...Z(Q,"prev",{month:String(G),year:String(le)},O),...H(L,"curr",q)],cssHeight:0,cssScrollHeight:0};E.cssHeight=39+64*(E.monthData.length>35?6:5);let F=0;f.monthsData.length>0&&(F=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),E.cssScrollHeight=F,R=="next"?(!f.endData||!ie.compareDate(`${f.endData[0]}-${f.endData[1]}-${ie.getMonthDays(f.endData[0],f.endData[1])}`,`${I[0]}-${I[1]}-${I[2]}`))&&f.monthsData.push(E):!f.startData||!ie.compareDate(`${I[0]}-${I[1]}-${I[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(E):f.unLoadPrev=!0},M=()=>{let I=e.startDate?e.startDate:ie.getDay(0),R=e.endDate?e.endDate:ie.getDay(365);f.propStartDate=I,f.propEndDate=R,f.startData=v(I),f.endData=v(R),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const Q={year:Number(f.startData[0]),month:Number(f.startData[1])},G={year:Number(f.endData[0]),month:Number(f.endData[1])};let le=G.month-Q.month;G.year-Q.year>0&&(le=le+12*(G.year-Q.year)),le<=0&&(le=1),D(f.startData,"next");let L=1;do D(V("next"),"next");while(L++<le);if(f.monthsNum=le,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(I&&ie.compareDate(f.currDate[0],I)&&f.currDate.splice(0,1,I),R&&ie.compareDate(R,f.currDate[1])&&f.currDate.splice(1,1,R),f.defaultData=[...v(f.currDate[0]),...v(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let O=[],q={};f.currDate.forEach(E=>{I&&!ie.compareDate(E,I)&&R&&!ie.compareDate(R,E)&&(Object.hasOwnProperty.call(q,E)||(O.push(E),q[E]=E))}),f.currDate=[...O],f.defaultData=[...v(O[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[O,q,E]=v(f.currDate[0]);f.currDate=ie.getWeekDate(O,q,E,e.firstDayOfWeek),I&&ie.compareDate(f.currDate[0],I)&&f.currDate.splice(0,1,I),R&&ie.compareDate(R,f.currDate[1])&&f.currDate.splice(1,1,R),f.defaultData=[...v(f.currDate[0]),...v(f.currDate[1])]}}else f.currDate&&(I&&ie.compareDate(f.currDate,I)?f.currDate=I:R&&!ie.compareDate(f.currDate,R)&&(f.currDate=R),f.defaultData=[...v(f.currDate)])};be({scrollToDate:I=>{ie.compareDate(I,f.propStartDate)?I=f.propStartDate:ie.compareDate(I,f.propEndDate)||(I=f.propEndDate);let R=v(I);f.monthsData.forEach((Q,G)=>{if(Q.title==o("monthTitle",{year:R[0],month:R[1]})&&s.value){let le=f.monthsData[G].cssScrollHeight-s.value.scrollTop;if(e.toDateAnimation){let L=0,O=setInterval(()=>{if(L++,s.value){let q=le/10;s.value.scrollTop=s.value.scrollTop+q}L>=10&&(clearInterval(O),s.value&&(s.value.scrollTop=f.monthsData[G].cssScrollHeight))},40)}else s.value.scrollTop=f.monthsData[G].cssScrollHeight}})},initPosition:()=>{s?.value&&(s.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let I=0,R=0;f.defaultData.length>0&&f.monthsData.forEach((le,L)=>{le.title==o("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(I=L),(e.type=="range"||e.type=="week")&&le.title==o("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(R=L)}),j(f.monthsNum,I),f.currentIndex=I,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(T({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),T({day:f.defaultData[5],type:"curr"},f.monthsData[R],!0)):e.type=="week"?T({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(le=>{let L=v(le),O=f.currentIndex;f.monthsData.forEach((q,E)=>{q.title==o("monthTitle",{year:L[0],month:L[1]})&&(O=E)}),T({day:L[2],type:"curr"},f.monthsData[O],!0)}):T({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let Q=f.monthsData[f.monthsData.length-1],G=Q.cssHeight+Q.cssScrollHeight;Ge(()=>{s?.value&&d?.value&&u?.value&&(y.value=s.value.clientHeight,d.value.style.height=`${G}px`,s.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(G/(f.monthsNum+1))}});const j=(I,R)=>{I>=3?R>0&&R<I?f.defaultRange=[R-1,R+3]:R==0?f.defaultRange=[R,R+4]:R==I&&(f.defaultRange=[R-2,R+2]):f.defaultRange=[0,I+2],f.translateY=f.monthsData[f.defaultRange[0]].cssScrollHeight},x=(I,R)=>(e.type=="range"||e.type=="week")&&I.type=="curr"&&g(I,R)=="fox-calendar__day--active",_=(I,R)=>x(I,R)&&m(p(I,R)),ne=(I,R)=>f.currDate.length>=2&&N(p(I,R))?x(I,R):!1,W=()=>{if(f.currDate.length>=2)return ie.isEqual(f.currDate[0],f.currDate[1])},U=I=>{const R=`${I.year}-${I.month}-${Number(I.day)<10?"0"+I.day:I.day}`;return ie.isEqual(R,ie.date2Str(new Date))},X=I=>{if(f.monthsData.length<=1)return;const R=I.target.scrollTop;let Q=Math.floor(R/f.avgHeight);if(Q==0)R>=f.monthsData[Q+1].cssScrollHeight&&(Q+=1);else if(Q>0&&Q<f.monthsNum-1)R>=f.monthsData[Q+1].cssScrollHeight&&(Q+=1),R<f.monthsData[Q].cssScrollHeight&&(Q-=1);else{const G=Math.round(R+y.value);G<f.monthsData[Q].cssScrollHeight+f.monthsData[Q].cssHeight&&R>f.monthsData[Q-1].cssScrollHeight&&(Q-=1),Q+1<=f.monthsNum&&G>=f.monthsData[Q+1].cssScrollHeight+f.monthsData[Q+1].cssHeight&&(Q+=1),Q>=1&&R<f.monthsData[Q-1].cssScrollHeight&&(Q-=1)}f.currentIndex!==Q&&(f.currentIndex=Q,j(f.monthsNum,Q)),f.yearMonthTitle=f.monthsData[Q].title},J=()=>{f.chooseData.splice(0),f.monthsData.splice(0),M()};return M(),(0,t.watch)(()=>e.defaultValue,I=>{I&&e.poppable&&J()}),{weeks:c,compConthsData:S,showTopBtn:w,topInfo:b,bottomInfo:k,rangeTip:W,mothsViewScroll:X,getClass:g,isStartTip:_,isEndTip:ne,chooseDay:T,isCurrDay:U,confirm:C,months:s,...(0,t.toRefs)(f),...(0,t.toRefs)(e),...r,monthsPanel:d,weeksPanel:h,viewArea:u}}}),ym={class:"fox-calendar__header"},bm={key:0,class:"fox-calendar__header-title"},vm={key:1,class:"fox-calendar__header-slot"},Sm={key:2,class:"fox-calendar__header-subtitle"},km={class:"fox-calendar__weekdays",ref:"weeksPanel"},wm={class:"fox-calendar__panel",ref:"monthsPanel"},Cm={class:"fox-calendar__month-title"},Nm={class:"fox-calendar__days"},Am=["onClick"],Bm={class:"fox-calendar__day-value"},Tm={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Vm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},$m={key:2,class:"fox-calendar__day-tips--curr"},Em={key:4,class:"fox-calendar__day-tip"},Dm={key:0,class:"fox-calendar__footer"};function Im(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[(0,t.createElementVNode)("view",ym,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",bm,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",vm,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Sm,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",km,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.weeks,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:c},(0,t.toDisplayString)(i),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[(0,t.createElementVNode)("view",wm,[(0,t.createElementVNode)("view",{class:"fox-calendar__body",ref:"viewArea",style:(0,t.normalizeStyle)({transform:`translateY(${e.translateY}px)`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.compConthsData,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:c},[(0,t.createElementVNode)("view",Cm,(0,t.toDisplayString)(i.title),1),(0,t.createElementVNode)("view",Nm,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.monthData,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(s,i)]),onClick:h=>e.chooseDay(s,i)},[(0,t.createElementVNode)("view",Bm,[(0,t.renderSlot)(e.$slots,"day",{date:s.type=="curr"?s:""},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.type=="curr"?s.day:""),1)])]),e.topInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",Tm,[(0,t.renderSlot)(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):(0,t.createCommentVNode)("",!0),e.bottomInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",Vm,[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.type=="curr"?s:""})])):(0,t.createCommentVNode)("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",$m,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(s,i)?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:3,class:(0,t.normalizeClass)(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},(0,t.toDisplayString)(e.startText),3)):(0,t.createCommentVNode)("",!0),e.isEndTip(s,i)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Em,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,Am))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",Dm,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var qm=re(gm,[["render",Im]]),xm=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-calender__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(Se,_e({...e},{poppable:!1}),n):n?.default?.()??null}}),Pm=xm,Mm=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),el={type:{type:[String],default:"one"},isAutoBackFill:{type:[Boolean],default:!1},toDateAnimation:{type:[Boolean],default:!0},poppable:{type:[Boolean],default:!0},showTitle:{type:[Boolean],default:!0},showSubTitle:{type:[Boolean],default:!0},visible:{type:[Boolean],default:!1},showToday:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},startText:{type:[String]},endText:{type:[String]},defaultValue:{type:[String,Array]},startDate:{type:[String]},endDate:{type:[String]},firstDayOfWeek:{type:[Number],default:0,validator:e=>e>=0&&e<=6}},{create:zm}=ee("calendar"),Lm=zm({components:{Wrapper:Pm,CalendarPane:qm},props:{...el},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const l=(0,t.computed)(()=>a.btn),o=(0,t.computed)(()=>a["top-info"]),r=(0,t.computed)(()=>a.day),i=(0,t.computed)(()=>a["bottom-info"]),c=(0,t.ref)(null),s=b=>{c.value?.scrollToDate(b)},d=()=>{c.value?.initPosition()};(0,t.watch)(()=>e.visible,b=>{b&&(0,t.nextTick)(()=>{c.value?c.value.doLayout():setTimeout(()=>{c.value&&c.value.doLayout()},250)})}),be({scrollToDate:s,initPosition:d});const h=()=>{n("update:visible",!1)},u=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{u()},update:h,close:u,select:b=>{n("select",b)},choose:b=>{u(),n("choose",b)},calendarRef:c,showTopBtn:l,topInfo:o,dayInfo:r,bottomInfo:i}}});function Rm(e,n,a,l,o,r){const i=(0,t.resolveComponent)("CalendarPane"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(c,(0,t.mergeProps)({visible:e.visible,position:"bottom","pop-class":"fox-calendar__popup",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,poppable:e.poppable}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},(0,t.createSlots)({_:2},[e.showTopBtn?{name:"btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","poppable"])}var tl=re(Lm,[["render",Rm]]),gi={modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:[String],default:"-"},valueFormat:{type:[String],default:"YYYY-MM-DD"},format:{type:[String],default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:[String]},textAlign:{type:[String]},clearable:{type:[Boolean],default:!0},maxLength:{type:[String,Number]},unit:{type:[String]}},pa=(e,n)=>{let a;return We(e)?a=e:typeof e=="string"&&we(e)>0?a=ie.parser(e,n):a=new Date,a},At=(e,n,a)=>(We(n)||(n=new Date),ie.format(n,a)),Bt=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,ie.date2Str(e),ie.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],Om={...ge,...ve,...el,...gi};function Fm(e,n,a,l,o,{CloseIcon:r,MarkIcon:i},c=!1){return{props:Om,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{disabled:h,readonly:u,browse:y}=qe(s),{emitEvent:S}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return u.value},get disabled(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:w}=(0,pe.useFoxI18n)(n),b=w(s,["placeholder"]),k=(0,t.ref)(!1),f=(0,t.computed)(()=>s.type==="range"),v=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),m=()=>{v.startDate!==null&&(v.startDate=null,v.endDate=null,v.startArray=[],v.endArray=[])},N=(I,R="one",Q="YYYY-MM-DD")=>{if(Mm(I)){m();return}if(f.value&&Array.isArray(I)&&I.length==2){let G,le;typeof I[0]=="string"?(G=pa(I[0],Q),le=pa(I[1],Q)):(G=I[0],le=I[1]);let L=Bt(G),O=Bt(le);(v.startDate===null||v.startDate.getTime()!==G.getTime()||v.endDate?.getTime()!==le.getTime())&&(v.startDate=G,v.startArray=L,v.endDate=le,v.endArray=O)}else{let G;typeof I=="string"?G=pa(I,Q):G=I;let le=Bt(G);(v.startDate===null||v.startDate.getTime()!==G.getTime())&&(v.startDate=G,v.startArray=le)}};N(s.modelValue,s.type,s.valueFormat),(0,t.watch)(()=>s.modelValue,I=>{N(I,s.type,s.valueFormat),S("setValue",I)});const A=(0,t.computed)(()=>{if(v.startDate===null)return"";if(f.value){let I=At(s,v.startDate,s.format),R=At(s,v.endDate,s.format);return`${I} ${s.rangeSeparator} ${R}`}else{let I=At(s,v.startDate,s.format);return s.showWeek&&(I=`${I} ${v.startArray[4]}`),I}}),p=(0,t.computed)(()=>v.startDate===null?null:f.value?[ie.date2Str(v.startDate),ie.date2Str(v.endDate??new Date)]:ie.date2Str(v.startDate)),g="fox-input-item",C=(0,t.computed)(()=>({[g]:!0,"is-disabled":h.value,"is-readonly":u.value})),T=Te((0,t.computed)(()=>s.textAlign),"textAlign"),$=(0,t.computed)(()=>{const I={};return T.value&&(I["text-align"]=T.value),I}),V=(0,t.ref)(!1),H=()=>{u.value||h.value||(V.value=!0)},Z=I=>{V.value=I},D=I=>{if(I){if(f.value&&Array.isArray(I)){let R=I[0],Q=de(R[0]),G=de(R[1]),le=de(R[2]),L=new Date(Q,G-1,le),O=I[1];Q=de(O[0]),G=de(O[1]),le=de(O[2]);let q=new Date(Q,G-1,le);v.startDate=L,v.startArray=Bt(L),v.endDate=q,v.endArray=Bt(q),s.valueFormat?S("update:modelValue",[At(s,L,s.valueFormat),At(s,q,s.valueFormat)],{}):S("update:modelValue",[L,q],{})}else{let R=I,Q=de(R[0]),G=de(R[1]),le=de(R[2]),L=new Date(Q,G-1,le);v.startDate=L,v.startArray=Bt(L),s.valueFormat?S("update:modelValue",At(s,L,s.valueFormat),{}):S("update:modelValue",L,{})}S("change",I,{})}},M=I=>{let R=I.target.value;k.value=!0,S("focus",R,I)},z=I=>{setTimeout(()=>{k.value=!1},0);let R=I.target.value;s.maxLength&&R.length>Number(s.maxLength)&&(R=R.slice(0,Number(s.maxLength))),S("blur",R,I)},P=(0,t.computed)(()=>({[`${g}__append`]:!0,"is-disabled":h.value,"is-readonly":u.value})),K=(0,t.computed)(()=>we(s.unit)>0),j=(0,t.computed)(()=>we(s.unit)>0&&!k.value),x=(0,t.computed)(()=>({hidden:!j.value})),_=I=>{m(),S("update:modelValue",null,I),S("change","",I),S("clear","")},ne=(0,t.computed)(()=>s.clearable&&!h.value&&!u.value),W=(0,t.computed)(()=>{let I=we(A.value)>0;return s.clearable&&I&&k.value}),U=I=>{W.value?_(I):H()},X=(0,t.computed)(()=>W.value&&ne.value?r:i),J=(0,t.computed)(()=>({action:!0}));return()=>{if(y.value==="on"&&(u.value||h.value))return o(A.value,d.slots);const I={class:C.value,style:$.value,type:"text",maxlength:s.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:A.value,onClick:H,onFocus:M,onBlur:z};c&&(I.disabled=!0);const R=[],Q=(0,t.h)("input",I);R.push(Q);const G=[],le=(0,t.h)(X.value,{class:["action-icon"]}),L=(0,t.h)("view",{class:J.value,onClick:U},{default:()=>[le]});if(G.push(L),K.value){const ae=(0,t.h)("view",{class:x.value},[s.unit]);G.push(ae)}const O=(0,t.h)("view",{class:P.value},{default:()=>G});R.push(O);const q={default:()=>R};q.label=d.slots.default,q.prepend=d.slots.prepend,q.append=d.slots.append,q.fixedPreTip=d.slots.fixedPreTip,q.fixedTip=d.slots.fixedTip;const E=ye(s,el);E.visible=V.value,E["onUpdate:visible"]=Z,E["default-value"]=p.value,E.onChoose=D;const F={};if(d.slots.btn){const ae=d.slots.btn();F.btn=()=>ae}d.slots.day&&(F.day=d.slots.day),d.slots.topInfo&&(F.topInfo=d.slots.topInfo),d.slots.bottomInfo&&(F.bottomInfo=d.slots.bottomInfo);const Y=(0,t.h)(a,E,F);q.hide=()=>[Y];const te={..._e(s,el,gi)};return s.prop&&(te.prop=`${s.prop}_item`),l(te,q)}}}}var{componentName:Km,create:Um,scope:Hm}=ee("calendar-item"),jm=Um(Fm(Km,Hm,tl,Pe,ze,{CloseIcon:oe.CircleClose,MarkIcon:oe.Date},!1)),ga=jm,Wm={readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},shape:{type:String,default:"round"},label:{type:[String,Number,Boolean],default:""},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}};function Ym(e,{CheckNormal:n,Checked:a}){return{props:{...Wm},setup(l,{emit:o,slots:r}){const i=(0,t.inject)("parent",null),c=In(),s=(0,t.computed)(()=>i.label.value===l.label),d=(0,t.computed)(()=>i.position),h=()=>{const b=[];if(s.value){if(r.checkedIcon)return r.checkedIcon();{const k=ce(l.iconSize),f=l.checkedIcon??c.radio.Checked??a;return b.push("fox-radio__icon"),l.disabled&&b.push("is-disabled"),l.readonly&&b.push("is-readonly"),(0,t.h)(f,{width:k,height:k,class:b})}}else{if(r.icon)return r.icon();{const k=ce(l.iconSize),f=l.icon??c.radio.CheckNormal??n;return b.push("fox-radio__icon--unchecked"),l.disabled&&b.push("is-disabled"),l.readonly&&b.push("is-readonly"),(0,t.h)(f,{width:k,height:k,class:b})}}},u=()=>{const b=[`${e}__label`];return l.disabled&&b.push("is-disabled"),l.readonly&&b.push("is-readonly"),(0,t.h)("view",{class:b},r.default?.())},y=()=>{const b=[`${e}__button`];return s.value&&b.push(`${e}__button--active`),l.disabled&&b.push("is-disabled"),l.readonly&&b.push("is-readonly"),(0,t.h)("view",{class:b},r.default?.())},S=()=>{s.value||l.disabled||l.readonly||i.updateValue(l.label)},w=d.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${w?`${e}--reverse`:""}`,onClick:S},[l.shape=="button"?y():w?[u(),h()]:[h(),u()]])}}}var{componentName:Xm,create:Qm}=ee("radio"),Gm=Qm(Ym(Xm,{CheckNormal:oe.CheckNormal,Checked:oe.CheckChecked})),nl=Gm,{componentName:yi,create:Zm}=ee("radio-group"),_m=Zm({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:a}=gt(),l=o=>a("update:modelValue",o);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:l}),(0,t.watch)(()=>e.modelValue,o=>a("change",o)),()=>{const o={};return e.textAlign&&(o["text-align"]=e.textAlign),(0,t.h)("view",{class:`${yi} ${yi}--${e.direction}`,style:o},n.default?.())}}}),ll=_m;function bi(e,n,a,l="value"){for(let o=0;o<n.length;o++){let r=n[o];if(l==="text"){if(al(e,r)===a)return o}else if(l==="item"){if($e(a,r))return o}else if(Xt(e,r)===a)return o}return-1}function al(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Xt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Jm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function e0(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var t0=class{proxy;constructor(e){this.proxy=e}async load(e,n,a){if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);let l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function n0(){return new t0((0,t.getCurrentInstance)().proxy)}function l0(e){return{text:e,value:e}}var vi={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},a0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},o0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Object],default:""}},r0={...ge,...ve,...vi,...a0,...o0};function i0(e,n,a,l,o,r){return{props:r0,emits:["change","update:modelValue","setValue"],setup(i,c){const{innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:y}=qe(i),{emitEvent:S}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return u.value},get disabled(){return d.value}},i.prop??c.attrs.name),w=Te((0,t.computed)(()=>i.textAlign),"textAlign"),b=n0(),k=(0,t.ref)([]),f=(0,t.computed)(()=>typeof i.sourceFilter=="function"&&Array.isArray(k.value)?k.value.filter(i.sourceFilter):k.value);(0,t.watch)([()=>i.source,()=>i.params],async([p,g])=>{if(p){const C=await b.load("radio",p,g);C.length>0?typeof C[0]=="string"?k.value=C.map(T=>l0(T)):k.value=C:k.value=[]}},{immediate:!0});let v=(0,t.ref)(-1);(0,t.watch)([()=>i.modelValue,()=>f.value],async([p,g])=>{v.value=bi(i,g,p,i.valueType),S("setValue",p)},{deep:!0});const m=(0,t.computed)(()=>{if(!i.source)return i.modelValue;if(v.value===-1)return null;const p=f.value[v.value];return Xt(i,p)}),N=p=>{let g=null,C=null;if(f.value.length>0){let T=bi(i,f.value,p,"value");v.value=T,T>=0&&(C=f.value[T],i.valueType==="text"?g=al(i,C):i.valueType==="item"?g=C:g=Xt(i,C))}else g=p;S("update:modelValue",g),S("change",g,C)},A=()=>{let p=null,g=null;if(f.value.length>0&&v.value!==-1){let C=f.value[v.value];i.valueType==="text"?p=al(i,C):i.valueType==="item"?p=C:p=Xt(i,C)}S("update:modelValue",p),S("change",p,g)};if(be({clear(){v.value!==-1&&(v.value=-1,A())},setDisabled:p=>{s.value=p},setReadonly:p=>{h.value=p}}),i.source){const p=()=>{const g=[],C=ye(i,vi);return f.value.forEach((T,$)=>{const V=Xt(i,T),H=Jm(i,T);let Z={...C,label:V,disabled:H};const D=e0(i,T,$);Z={...Z,...D},d.value&&(Z.disabled=!0),u.value&&(Z.readonly=!0);const M={};if(c.slots.icon&&(M.icon=c.slots.icon),c.slots.checkedIcon&&(M.checkedIcon=c.slots.checkedIcon),typeof c.slots.text=="function"){const P=c.slots.text(T);M.default=()=>[P]}else{const P=al(i,T);M.default=()=>P}let z=(0,t.h)(r,Z,M);g.push(z)}),g};return()=>{if(y.value==="on"&&(u.value||d.value))return l(m.value,c.slots,f.value);const g=p(),C=(0,t.h)(o,{class:`${e}`,direction:i.direction,textPosition:i.textPosition,textAlign:w.value,modelValue:m.value,"onUpdate:modelValue":N},{default:()=>g}),T={default:()=>C};T.label=c.slots.default,T.prepend=c.slots.prepend,T.append=c.slots.append,T.fixedPreTip=c.slots.fixedPreTip,T.fixedTip=c.slots.fixedTip;const $={...ye(i,ve,ge)};return i.prop&&($.prop=`${i.prop}_item`),a($,T)}}else return()=>{const p=c.slots.options?.()??[];return(0,t.h)(o,{class:`${e}`,direction:i.direction,textPosition:i.textPosition,textAlign:w.value,modelValue:m,"update:modelValue":N},{default:()=>p})}}}}var{componentName:s0,create:c0,scope:u0}=ee("radio-item"),d0=c0(i0(s0,u0,Pe,ze,ll,nl)),ya=d0,f0=(e,{CheckNormal:n,Checked:a,Indeterminate:l})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(o,{slots:r}){const{emitEvent:i}=gt(),c=In(),s=(0,t.inject)("parent",null),d=(0,t.reactive)({partialSelect:o.indeterminate});(0,t.watch)(()=>o.indeterminate,m=>{d.partialSelect=m});const h=(0,t.computed)(()=>!!s),u=(0,t.computed)(()=>h.value?s.value.value.includes(o.label):!!o.modelValue),y=(0,t.computed)(()=>h.value?s.position:o.textPosition);let S="";const w=(m,N)=>{S="click",i("update:modelValue",m),i("change",m,N)};(0,t.watch)(()=>o.modelValue,m=>{S=="click"?S="":i("change",m)});const b=()=>{const m=[];if(d.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const N=ce(o.iconSize),A=o.indeterminateIcon??c.checkbox.Indeterminate??l;return m.push("fox-checkbox__icon--indeterminate"),o.disabled&&m.push("is-disabled"),o.readonly&&m.push("is-readonly"),(0,t.h)(A,{width:N,height:N,class:m})}}else if(u.value){if(r.checkedIcon)return r.checkedIcon();{const N=ce(o.iconSize),A=o.checkedIcon??c.checkbox.Checked??a;return m.push("fox-checkbox__icon"),o.disabled&&m.push("is-disabled"),o.readonly&&m.push("is-readonly"),(0,t.h)(A,{width:N,height:N,class:m})}}else{if(r.icon)return r.icon();{const N=ce(o.iconSize),A=o.icon??c.checkbox.CheckNormal??n;return m.push("fox-checkbox__icon--unchecked"),o.disabled&&m.push("is-disabled"),o.readonly&&m.push("is-readonly"),(0,t.h)(A,{width:N,height:N,class:m})}}},k=()=>{const m=[`${e}__label`];return o.disabled&&m.push("is-disabled"),o.readonly&&m.push("is-readonly"),(0,t.h)("view",{class:m},r.default?.())},f=()=>{const m=[`${e}__button`];return u.value&&m.push(`${e}__button--active`),o.disabled&&m.push("is-disabled"),o.readonly&&m.push("is-readonly"),(0,t.h)("view",{class:m},r.default?.())},v=m=>{if(!(o.disabled||o.readonly)){if(u.value&&d.partialSelect){d.partialSelect=!1,w(u.value,r.default?.()[0].children);return}if(w(!u.value,r.default?.()[0].children),h.value){const N=s.value.value,A=s.max.value,{label:p}=o,g=N.indexOf(p);g>-1?N.splice(g,1):g<=-1&&(N.length<A||!A)&&N.push(p),s.updateValue(N)}}};return(0,t.onMounted)(()=>{h.value&&s.link((0,t.getCurrentInstance)())}),(0,t.onBeforeUnmount)(()=>{h.value&&s.unlink((0,t.getCurrentInstance)())}),()=>(0,t.h)("view",{class:`${e} ${e}--${o.shape} ${y.value==="left"?`${e}--reverse`:""}`,onClick:v},[o.shape=="button"?f():[b(),k()]])}}),{componentName:m0,create:h0}=ee("checkbox"),p0=h0(f0(m0,{CheckNormal:oe.CheckNormal,Checked:oe.Checked,Indeterminate:oe.CheckDisabled})),ol=p0,{create:g0,componentName:Si}=ee("checkbox-group"),y0=g0({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:a}=gt(),l=(0,t.reactive)({children:[]}),o=d=>{d.proxy&&l.children.push(d.proxy)},r=d=>{d.proxy&&(l.children=l.children.filter(h=>h!==d.proxy))},i=d=>{a("update:modelValue",d),a("change",d)},c=d=>{const h=[];d&&l.children.forEach(u=>{u?.disabled||h.push(u?.label)}),a("update:modelValue",h)},s=()=>{a("update:modelValue",l.children.filter(d=>d?.disabled?!1:!e.modelValue.includes(d.label)).map(d=>d.label))};return(0,t.provide)("parent",{value:(0,t.computed)(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:(0,t.computed)(()=>e.max),updateValue:i,link:o,unlink:r}),(0,t.watch)(()=>e.modelValue,d=>{a("change",d)}),be({toggleAll:c,toggleReverse:s}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Si} ${Si}--${e.direction}`,style:d},n.default?.())}}}),rl=y0;function ki(e,n,a,l="value"){for(let o=0;o<n.length;o++){let r=n[o];if(l==="text"){if(ba(e,r)===a)return o}else if(l==="item"){if($e(a,r))return o}else if(il(e,r)===a)return o}return-1}function ba(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function il(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function b0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function v0(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var S0=class{proxy;constructor(e){this.proxy=e}async load(e,n,a){if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);let l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function k0(){return new S0((0,t.getCurrentInstance)().proxy)}function w0(e){return{text:e,value:e}}var C0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},wi={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},N0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function]},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]},separator:{type:[String],required:!1,default:", "}},A0={...ge,...ve,...C0,...wi,...N0};function B0(e,n,a,l,o,r){return{props:A0,emits:["change","update:modelValue","setValue"],setup(i,c){const{innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:y}=qe(i),S=Te((0,t.computed)(()=>i.textAlign),"textAlign"),{emitEvent:w}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return u.value},get disabled(){return d.value}},i.prop??c.attrs.name),b=k0(),k=(0,t.ref)([]),f=(0,t.computed)(()=>typeof i.sourceFilter=="function"&&Array.isArray(k.value)?k.value.filter(i.sourceFilter):k.value);(0,t.watch)([()=>i.source,()=>i.params],async([p,g])=>{if(p){const C=await b.load("checkbox",p,g);C.length>0?typeof C[0]=="string"?k.value=C.map(T=>w0(T)):k.value=C:k.value=[]}},{immediate:!0});const v=(0,t.ref)([]);(0,t.watch)([()=>i.modelValue,()=>f.value],async([p,g])=>{const C=[];Array.isArray(p)&&p.forEach(T=>{let $=ki(i,g,T,i.valueType);$!==-1&&C.push($)}),!$e(C,v.value)&&(v.value=C,w("setValue",C))},{deep:!0});const m=(0,t.computed)(()=>{if(!i.source)return i.modelValue;let p=[];return v.value.forEach(g=>{let C=f.value[g];p.push(il(i,C))}),p}),N=p=>{let g=[],C=[];if(f.value.length>0){const T=[];Array.isArray(p)&&p.forEach($=>{let V=ki(i,f.value,$,"value");V!==-1&&T.push(V);const H=f.value[V];C.push(H),i.valueType==="text"?g.push(ba(i,H)):i.valueType==="item"?g.push(H):g.push(il(i,H))}),v.value=T}else g=p;w("update:modelValue",g),w("change",g,C)},A=(0,t.ref)();if(be({toggleAll:p=>{A.value.toggleAll(p)},toggleReverse:()=>{A.value.toggleReverse()},setDisabled:p=>{s.value=p},setReadonly:p=>{h.value=p}}),i.source){const p=()=>{const g=[],C=ye(i,wi);return f.value.forEach((T,$)=>{const V=il(i,T),H=b0(i,T);let Z={...C,label:V,disabled:H};const D=v0(i,T,$);Z={...Z,...D},d.value&&(Z.disabled=!0),u.value&&(Z.readonly=!0);const M={};if(c.slots.icon&&(M.icon=c.slots.icon),c.slots.checkedIcon&&(M.checkedIcon=c.slots.checkedIcon),c.slots.indeterminateIcon&&(M.indeterminateIcon=c.slots.indeterminateIcon),typeof c.slots.text=="function"){const P=c.slots.text(T);M.default=()=>[P]}else{const P=ba(i,T);M.default=()=>P}let z=(0,t.h)(r,Z,M);g.push(z)}),g};return()=>{if(y.value==="on"&&(u.value||d.value))return l(m.value,c.slots,f.value,i.separator);const g=p(),C=(0,t.h)(o,{class:`${e}`,ref:A,direction:i.direction,max:i.max,textPosition:i.textPosition,modelValue:m.value,"onUpdate:modelValue":N},{default:()=>g}),T={default:()=>C};T.label=c.slots.default,T.prepend=c.slots.prepend,T.append=c.slots.append,T.fixedPreTip=c.slots.fixedPreTip,T.fixedTip=c.slots.fixedTip;const $={...ye(i,ve,ge)};return i.prop&&($.prop=`${i.prop}_item`),a($,T)}}else return()=>{const p=c.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:A,direction:i.direction,max:i.max,textPosition:i.textPosition,textAlign:S.value,modelValue:m,"onUpdate:modelValue":N},{default:()=>p})}}}}var{componentName:T0,create:V0,scope:$0}=ee("checkbox-item"),E0=V0(B0(T0,$0,Pe,ze,rl,ol)),va=E0,Sa={modelValue:{type:[String,Boolean,Number],default:!1},disabled:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:D0,create:I0}=ee("switch"),q0=I0({components:{Loading1:oe.Loading1},props:{...Sa},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const c=D0;return{[c]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${c}-base`]:!0,"is-disabled":e.disabled}}),o=(0,t.computed)(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let r="";const i=c=>{if(e.disabled||e.loading)return;r="click";const s=a.value?e.inactiveValue:e.activeValue;n("update:modelValue",s),n("change",s,c)};return(0,t.watch)(()=>e.modelValue,c=>{r=="click"?r="":n("change",c)}),{classes:l,style:o,isActive:a,onClick:i}}}),x0={class:"fox-switch-button"};function P0(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...c)=>e.onClick&&e.onClick(...c)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",x0,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(i,{name:"loading",color:e.activeColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.activeText?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label open"},(0,t.toDisplayString)(e.activeText),513),[[t.vShow,e.isActive]]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label close"},(0,t.toDisplayString)(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):(0,t.createCommentVNode)("",!0)])],6)}var sl=re(q0,[["render",P0]]),M0={...ge,...ve,...Sa};function z0(e,n,a,l,o){return{props:M0,emits:["change","update:modelValue","setValue"],setup(r,i){const{innerDisabled:c,disabled:s,innerReadonly:d,readonly:h,browse:u}=qe(r),{emitEvent:y}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return h.value},get disabled(){return s.value}},r.prop??i.attrs.name),S=e,w=xe(r,"modelValue",null,y),b=k=>{w.value=k,y("update:modelValue",k,{}),y("change",k,{})};return be({setDisabled:k=>{c.value=k},setReadonly:k=>{d.value=k}}),()=>{if(u.value==="on"&&(h.value||s.value))return l(w.value,i.slots);const k={...ye(r,Sa),disabled:s.value||h.value,value:w.value,"onUpdate:modelValue":b},f=[],v=(0,t.h)(o,k);f.push(v);const m={default:()=>f};m.label=i.slots.default,m.fixedPreTip=i.slots.fixedPreTip,m.fixedTip=i.slots.fixedTip;const N={...ye(r,ve,ge)};return r.prop&&(N.prop=`${r.prop}_item`),N["content-class"]=S,a(N,m)}}}}var{componentName:L0,create:R0,scope:O0}=ee("switch-item"),F0=R0(z0(L0,O0,Pe,ze,sl)),ka=F0,K0={...ge,...ve,placeholder:{type:[String]},textAlign:{type:[String]},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1},unit:{type:[String],required:!1}};function U0(e,n,a,l){return{props:K0,emits:["click","focus","blur","change"],setup(o,r){const i=$n((0,t.computed)(()=>o.disabled)),c=Vn((0,t.computed)(()=>o.readonly)),{emitEvent:s}=Be({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return c.value},get disabled(){return i.value}},o.prop??r.attrs.name),{toLocaleRefs:d}=(0,pe.useFoxI18n)(n),h=d(o,["placeholder"]),u=(0,t.ref)(o.modelValue);(0,t.watch)(()=>o.modelValue,H=>{u.value=H,s("change",H)});const y=(0,t.computed)(()=>({[`${e}`]:!0})),S=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!i.value&&fe(u.value),"is-disabled":i.value,"is-readonly":c.value})),w=Te((0,t.computed)(()=>o.textAlign),"textAlign"),b=(0,t.computed)(()=>{const H={};return w.value&&(H["text-align"]=w.value),H}),k=(0,t.computed)(()=>!fe(o.modelValue)||r.slots.main?!0:!!fe(o.desc)),f=(0,t.computed)(()=>fe(u.value)?h.placeholder.value:u.value),v=(0,t.computed)(()=>!fe(o.desc)||r.slots.sub),m=(0,t.computed)(()=>({[`${e}__sub`]:!0})),N=(0,t.computed)(()=>{const H={};return w.value&&(H["text-align"]=w.value),H}),A=()=>{s("focus",u.value)},p=()=>{s("blur",u.value)},g=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":i.value,"is-readonly":c.value})),C=(0,t.computed)(()=>we(o.unit)>0),T=H=>{i.value==!0||c.value==!0||s("click")},$=(0,t.computed)(()=>o.icon??a),V=(0,t.computed)(()=>({action:!0}));return()=>{const H=[];if(typeof r.slots.content=="function"){const x=r.slots.content();H.push(x)}else{const x=[];if(k.value){const ne={tabIndex:0,class:S.value,style:b.value,onFocus:A,onBlur:p};let W=null;r.slots.main?W=(0,t.h)("view",ne,[r.slots.main(f.value)]):W=(0,t.h)("view",ne,[f.value]),x.push(W)}if(v.value){const ne={tabIndex:0,class:m.value,style:N.value,onFocus:A,onBlur:p};let W=null;r.slots.sub?W=(0,t.h)("view",ne,[r.slots.sub(o.desc)]):W=(0,t.h)("view",ne,[o.desc]),x.push(W)}const _=(0,t.h)("view",{class:y.value,onClick:T},x);H.push(_)}const Z=[],D=ce(o.iconSize);let M=r.slots.icon;if(!M){const x={width:D,height:D,class:["action-icon"]};M=(0,t.h)($.value,x)}const z=(0,t.h)("view",{class:V.value,onClick:T},{default:()=>[M]});if(Z.push(z),C.value){const x=(0,t.h)("view",{},[o.unit]);Z.push(x)}const P=(0,t.h)("view",{class:g.value},{default:()=>Z});H.push(P);const K={default:()=>H};K.label=r.slots.default,K.prepend=r.slots.prepend,K.append=r.slots.append,K.fixedPreTip=r.slots.fixedPreTip,K.fixedTip=r.slots.fixedTip;const j={...ye(o,ve,ge)};return o.prop&&(j.prop=`${o.prop}_item`),l(j,K)}}}}var{componentName:H0,create:j0,scope:W0}=ee("link-item"),Y0=j0(U0(H0,W0,oe.ArrowRight,Pe)),wa=Y0,Ca={count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object},size:{type:[String,Number],default:void 0},activeColor:{type:String,default:""},voidColor:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:void 0}},{create:X0,componentName:Q0}=ee("rate"),G0=X0({props:{...Ca},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)([]),o=(0,t.computed)(()=>({[Q0]:!0})),r=S=>{n("update:modelValue",S),n("change",S)},i=(S,w)=>{if(e.disabled||e.readonly)return;let b=0;w===1&&e.modelValue===w||(b=w,e.allowHalf&&S==2&&(b-=.5)),r(b)},c=(S,w,b)=>{let k=0;for(let f=w.value.length-1;f>=0;f--){const v=w.value[f];if(S>v.offsetLeft){b?k=f+(S>v.offsetLeft+v.clientWidth/2?1:.5):k=f+1;break}}return k},s=lt(),d={onTouchStart(S){!e.touchable||e.readonly||s.start(S)},onTouchMove(S){e.touchable&&(s.move(S),s.isHorizontal()&&l.value&&(S.preventDefault(),r(c(s.moveX.value,l,e.allowHalf))))}},h=Math.random().toString(36).slice(-8),u=(0,t.computed)(()=>e.customIcon??oe.StarFillN);return{classes:o,...d,onClick:i,toPxString:me,renderIcon:(S,w)=>(0,t.h)(S,w),rateRefs:l,refRandomId:h,slots:a,customIcon:u}}}),Z0=["id"],_0={class:"fox-rate-item__icon--full"},J0={key:0,class:"fox-rate-item__icon--half"},eh={key:1,class:"fox-rate-item__icon--half"};function th(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),i=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:i,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+i,style:(0,t.normalizeStyle)(i<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("view",_0,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,t.normalizeClass)(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||i>e.modelValue}]),onClick:c=>e.onClick(1,i)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>i?((0,t.openBlock)(),(0,t.createElementBlock)("view",J0,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:c=>e.onClick(2,i)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<i?((0,t.openBlock)(),(0,t.createElementBlock)("view",eh,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:c=>e.onClick(2,i)},null,8,["onClick"]))])):(0,t.createCommentVNode)("",!0)],12,Z0))),128))],34)}var cl=re(G0,[["render",th]]),nh={...ge,...ve,...Ca};function lh(e,n,a,l,o){return{props:nh,emits:["change","update:modelValue","setValue"],setup(r,i){const{innerDisabled:c,disabled:s,innerReadonly:d,readonly:h,browse:u}=qe(r),{emitEvent:y}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return h.value},get disabled(){return s.value}},r.prop??i.attrs.name),S=e,w=xe(r,"modelValue",null,y),b=k=>{w.value=k,y("update:modelValue",k,{}),y("change",k,{})};return be({setDisabled:k=>{c.value=k},setReadonly:k=>{d.value=k}}),()=>{if(u.value==="on"&&(h.value||s.value))return l(w.value,i.slots);const k={...ye(r,Ca),disabled:s.value,readonly:h.value,value:w.value,"onUpdate:modelValue":b},f=[],v=(0,t.h)(o,k);f.push(v);const m={default:()=>f};if(i.slots.default){const A=i.slots.default();m.label=()=>A}const N=ye(r,ve,ge);return r.prop&&(N.prop=`${r.prop}_item`),N["content-class"]=S,a(N,m)}}}}var{componentName:ah,create:oh,scope:rh}=ee("rate-item"),ih=oh(lh(ah,rh,Pe,ze,cl)),Na=ih,sh=/scroll|auto|overlay/i,Ci=window;function ch(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Aa(e,n=Ci){let a=e;for(;a&&a!==n&&ch(a);){const{overflowY:l}=window.getComputedStyle(a);if(sh.test(l))return a;a=a.parentNode}return n}function Ni(e,n=Ci){const a=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(a.value=Aa(e.value,n))}),a}var Ai=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,uh={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function dh(e,n,a){return{props:{...uh},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),c=i(l,["pullText","loadText","noMoreText"]),s=(0,t.ref)(),d=Ni(s),h=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),u=(0,t.computed)(()=>({[e]:!0})),y=v=>v?v.offsetTop+y(v.offsetParent):0,S=()=>{let v=0,m=0,N="down";if(d.value==window){const A=Ai();s.value&&(v=y(s.value)+s.value.offsetHeight-A-window.innerHeight),m=A}else{const{scrollHeight:A,clientHeight:p,scrollTop:g}=d.value;v=A-p-g,m=g}return h.beforeScrollTop>m?N="up":N="down",h.beforeScrollTop=m,o("scroll-change",m),v<=l.threshold&&N=="down"},w=()=>{Ge(()=>{if(!S()||!l.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,o("update:modelValue",!0),(0,t.nextTick)(()=>o("load-more"))})},b=()=>{d.value&&d.value.addEventListener("scroll",w,l.useCapture)},k=()=>{d.value&&d.value.removeEventListener("scroll",w,l.useCapture)};(0,t.onMounted)(()=>{b(),l.immediate&&w()}),(0,t.onUnmounted)(()=>{k()});const f=(0,t.ref)(!1);return(0,t.onActivated)(()=>{f.value&&(f.value=!1,b())}),(0,t.onDeactivated)(()=>{f.value=!0,k()}),(0,t.watch)(()=>l.modelValue,v=>{v||(h.isInfiniting=!1)}),()=>{const v=(0,t.h)("view",{class:"fox-infinite__container"},[r?.default?.()]),m=[];if(h.isInfiniting){let A=r?.loading?.()??null;if(!A){let g=r?.loadingIcon?.()??null;g||(g=(0,t.h)(a,{class:["fox-infinite__bottom-box__img"]}));const C=(0,t.h)("view",{class:"fox-infinite__bottom-box__text"},[c.loadText.value]);A=[g,C]}const p=(0,t.h)("view",{class:"fox-infinite__bottom-box"},A);m.push(p)}else if(!l.hasMore){let A=r?.finished?.()??null;A||(A=(0,t.h)("view",{class:"fox-infinite__bottom-tips"},[c.noMoreText.value]),m.push(A))}const N=(0,t.h)("view",{class:"fox-infinite__bottom"},m);return(0,t.h)("view",{class:u.value,ref:s},[v,N])}}}}var{componentName:fh,create:mh,scope:hh}=ee("infinite-loading"),ph=mh(dh(fh,hh,oe.Loading)),ul=ph,{componentName:gh,create:yh}=ee("button"),bh=yh({components:{Loading:oe.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:l,size:o,shape:r,disabled:i,loading:c,color:s,plain:d,block:h}=(0,t.toRefs)(e);return{handleClick:y=>{!c.value&&!i.value&&n("click",y)},classes:(0,t.computed)(()=>{const y=gh;return{[y]:!0,[`${y}--${l.value}`]:l.value,[`${y}--${o.value}`]:o.value,[`${y}--${r.value}`]:r.value,[`${y}--plain`]:d.value,[`${y}--block`]:h.value,[`${y}--disabled`]:i.value,[`${y}--loading`]:c.value}}),getStyle:(0,t.computed)(()=>{const y={};return s?.value&&(d.value?(y.color=s.value,y.background="#fff",s.value?.includes("gradient")||(y.borderColor=s.value)):(y.color="#fff",y.background=s.value)),y})}}}),vh={class:"fox-button__wrap"};function Sh(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Loading");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle),onClick:n[0]||(n[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[(0,t.createElementVNode)("view",vh,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-icon-loading"})):(0,t.createCommentVNode)("",!0),e.$slots.icon&&!e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:1}):(0,t.createCommentVNode)("",!0),e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)({"fox-button__text":e.$slots.icon||e.loading})},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)])],6)}var ct=re(bh,[["render",Sh]]),kh={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},wh=(e,n,a)=>({props:{...kh},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:o}){const{emitEvent:r}=gt(),{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),c=i(l,["placeholder"]),s=(0,t.reactive)({active:!1}),d=(0,t.computed)(()=>({background:l.background})),h=(0,t.computed)(()=>({background:l.inputBackground})),u=T=>{let $=T.target.value;l.maxLength&&$.length>Number(l.maxLength)&&($=$.slice(0,Number(l.maxLength))),r("update:modelValue",$,T),r("change",$,T)},y=(0,t.ref)({}),S=T=>{let $=T.target.value;s.active=!0,y.value=l.focusStyle,r("focus",$,T)},w=T=>{setTimeout(()=>{s.active=!1},0);let $=T.target.value;l.maxLength&&$.length>Number(l.maxLength)&&($=$.slice(0,Number(l.maxLength))),y.value={},r("blur",$,T)},b=T=>{r("update:modelValue","",T),r("change","",T),r("clear","")},k=(0,t.computed)(()=>String(l.modelValue).length>0),f=(0,t.computed)(()=>{const T={};return k.value||(T.display="none"),T}),v=T=>{l.autoblur&&g.value?.blur(),(typeof T.cancelable!="boolean"||T.cancelable)&&T.preventDefault(),r("search",l.modelValue)},m=T=>{r("keyup-input",T)},N=T=>{r("click-input",T)},A=T=>{r("click-left-icon",l.modelValue,T)},p=(0,t.computed)(()=>({textAlign:l.inputAlign})),g=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&g.value.focus()});const C=()=>{const T=[];if(o.leftin){const Z=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:A},[o.leftin()]);T.push(Z)}const $=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:g,style:p.value,type:l.inputType,maxlengt:l.maxLength,placeholder:c.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:N,onInput:u,onFocus:S,onBlur:w,onkeyup:m}),V=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:v},[$]);T.push(V);const H=[];if(l.clearable){const Z=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:b},[(0,t.h)(o?.clear?.()??l.clearIcon??a)]);H.push(Z)}if(o.rightin){const Z=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[o.rightin()]);H.push(Z)}if(H.length>0){const Z=(0,t.h)("view",{class:`${e}__input-inner-right`},H);T.push(Z)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...h.value,...y.value}},T)};return()=>{const T=[];if(l.label){const V=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);T.push(V)}if(o.leftout){const V=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[o.leftout()]);T.push(V)}const $=C();if(T.push($),o.rightout){const V=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[o.rightout()]);T.push(V)}return(0,t.h)("view",{class:`${e}`,style:d.value},T)}}}),{componentName:Ch,create:Nh,scope:Ah}=ee("searchbar"),Bh=Nh(wh(Ch,Ah,oe.CircleClose)),dl=Bh,fl={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,String,Object],default(){return[]}},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},textPosition:{type:[String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},noMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},searchDelayTriggerClear:{type:Number,default:250},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Th(e,n,a,l="value"){for(let o=0;o<n.length;o++){let r=n[o];if(l==="text"){if(ml(e,r)===a)return o}else if(l==="item"){if($e(a,r))return o}else if(Ti(e,r)===a)return o}return-1}function ml(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Bi(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Ti(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Vh(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function $h(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var Eh=class{proxy;constructor(e){this.proxy=e}async load(e,n,a,l,o,r,i){if(Array.isArray(n)){let s=n;typeof i=="function"&&(s=s.filter(i));let d=(a-1)*l,h=d+l;h>s.length&&(h=s.length);const u=s.slice(d,h);return{totalSize:s.length,page:u}}if(typeof n=="function")return await Reflect.apply(n,null,[a,l,o,r]);const c=nt(this.proxy,e);return c===null?(console.error(`${e} component not found api function`),{totalSize:0,page:[]}):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await Reflect.apply(c,null,[n,a,l,o]))}};function Dh(){return new Eh((0,t.getCurrentInstance)().proxy)}function Ih(e,n,a,l,o,r,i,c,s,d,h){return{props:fl,emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(u,{slots:y}){const{emitEvent:S}=gt(),{toLocaleRefs:w}=(0,pe.useFoxI18n)(n),b=w(u,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),k=Dh(),f=(0,t.ref)([]),v=(0,t.ref)(0),m=(0,t.ref)(""),N=(0,t.shallowRef)(null),A=(0,t.computed)(()=>{const L={};return u.params&&Object.assign(L,u.params),fe(m.value)||(L[`${u.searchKey}`]=m.value),N.value&&Object.assign(L,N.value),L});let p=!0;const g=async(L,O,q)=>{try{if(T.value===!1)return;let E=null;fe(m.value)||(E=Y=>{const te=ml(u,Y);if(typeof te=="string"&&te.includes(m.value))return!0;const ae=Bi(u,Y);return!!(typeof ae=="string"&&ae.includes(m.value))});const F=await k.load("actionsheet",L,O,q,A.value,p,E??void 0);p=!1,Array.isArray(F)?(f.value=F,v.value=1,T.value=!1):!Array.isArray(F.page)||F.page.length===0?(console.warn("[FoxUI] can not load more data"),T.value=!1):(Reflect.apply([].push,f.value,F.page),v.value=Math.ceil(f.value.length/u.pageSize),(F.totalSize&&f.value.length>=F.totalSize||q<F.page.length)&&(T.value=!1)),C.value=!1}catch(E){console.error("[FoxUI] ActionSheet load more data fail",E),T.value=!0,v.value=0,f.value=[]}setTimeout(()=>{S("loaded-data")},250)},C=(0,t.ref)(!1),T=(0,t.ref)(!0),$=async()=>{if(!u.source){C.value=!1;return}await g(u.source,v.value+1,u.pageSize)};let V=null;(0,t.watch)(m,(L,O)=>{V&&(clearTimeout(V),V=null),fe(L)&&!fe(O)&&(V=setTimeout(()=>{Z()},u.searchDelayTriggerClear))});const H=()=>{T.value=!0,v.value=0,f.value=[],u.source&&$()},Z=()=>{H()};(0,t.watch)([()=>u.source,()=>u.pageSize,()=>u.params],async([L,O,q])=>{u.source&&H()},{immediate:!0});const D=(0,t.computed)(()=>!u.multiple&&u.isAutoBackFill),M=(0,t.ref)([]);let z=null;const P=(0,t.ref)(u.visible);(0,t.watch)(()=>u.visible,L=>{P.value!==L&&(P.value=L),L?z=[...M.value]:z=null});const K=(L,O)=>{const q=[];return Array.isArray(L)||(L=[L]),L.forEach(E=>{let F=Th(u,O,E,u.valueType);F!==-1&&q.push(F)}),$e(q,M.value)?!1:(M.value=q,!0)};(0,t.watch)([()=>u.modelValue,()=>f.value],([L,O],[q,E])=>{K(L,O)&&x(j())},{deep:!0});const j=()=>{const L=[],O=[],q=[];for(let te of M.value){const ae=f.value[te];O.push(ae);const se=ml(u,ae);if(q.push(se),u.valueType==="item")L.push(ae);else if(u.valueType==="text")L.push(se);else{const ue=Ti(u,ae);L.push(ue)}}let E=null,F=null,Y=null;return u.multiple?(E=L,F=q,Y=O):(E=L[0]??null,F=q[0]??null,Y=O[0]??null),{value:E,text:F,item:Y}},x=L=>{S("update:modelValue",L.value),S("update:text",L.text),S("change",L.value,L.item,L.text)},_=()=>{z&&(M.value=z)},ne=L=>{const O=M.value.indexOf(L);u.multiple?O===-1?M.value.push(L):M.value.splice(O,1):O===-1?M.value=[L]:M.value=[],(D.value||!u.poppable&&!u.showFooter)&&X()},W=L=>{P.value=L,S("update:visible",L)},U=()=>{const L=()=>{_(),W(!1)},O=u.beforeMethod??u.beforeClose;if(typeof O=="function"){const q=O("close");dt(q)?q.then(E=>{E!==!1&&L()}).catch(()=>{L()}):q!==!1&&L()}else L()},X=()=>{const L=j(),O=()=>{x(L),W(!1)},q=u.beforeMethod??u.beforeClose;if(typeof q=="function"){const E=q("confirm",L.value,L.item,L.text);dt(E)?E.then(F=>{F!==!1&&O()}).catch(()=>{O()}):E!==!1&&O()}else O()},J=()=>{let L=b.title.value??"";return y.title&&(L=y.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[L]),(0,t.h)(s,{class:["fox-actionsheet__header-icon"],onClick:U})])},I=()=>{let L=null;return y.search?L=y.search():L=(0,t.h)(r,{onSearch:H,placeholder:b.seachPlaceholder.value,disabled:u.disabled,modelValue:m.value,"onUpdate:modelValue":O=>{m.value=O}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[L])},R=(L,O,q,E,F)=>{if(y.optionLabel)return y.optionLabel({text:L,checked:O,disabled:q,subText:E,item:F});const Y=[],te=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[L]);if(Y.push(te),E){const ae=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[E]);Y.push(ae)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},Y)},Q=(L,O,q,E)=>y.optionIcon?y.optionIcon({checked:L,disabled:O,iconSize:q,item:E}):L?y.checkedIcon?y.checkedIcon({disabled:O,item:E}):(0,t.h)(u.checkedIcon??c,{width:q,height:q,class:["fox-actionsheet__list-item-icon"]}):y.icon?y.icon({disabled:O,item:E}):(0,t.h)(u.icon??i,{width:q,height:q,class:["fox-actionsheet__list-item-icon"]}),G=()=>{const L=[];for(let O=0;O<f.value.length;O++){const q=f.value[O],E=ml(u,q),F=Bi(u,q),Y=["fox-actionsheet__list-item"],te={};let ae=Vh(u,q),se=u.iconSize?ce(u.iconSize):null;const ue=$h(u,q,O);ue&&(ae=ae||ue.disabled,ue.class&&Y.push(ue.class),ue.style&&Object.assign(te,ue.style)),ae=!!(u.disabled||ae);const Xe=M.value.includes(O);ae&&Y.push("is-disabled"),Xe&&Y.push("is-checked");const Qe={class:Y,style:te,key:`${O}`,onClick:()=>{ae||ne(O)}};let Re=[];if(y.option)Re.push(y.option({item:q,checked:Xe,disabled:ae}));else{const E2=R(E,Xe,ae,F,q);Re.push(E2);const D2=Q(Xe,ae,se,q);Re.push(D2),u.textPosition==="right"&&Re.reverse()}const rn=(0,t.h)("view",Qe,Re);L.push(rn)}return L},le=()=>{let L=[];if(y.buttons)L=y.buttons();else{const O=(0,t.h)(o,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:X,disabled:u.disabled},{default:()=>b.confirmText.value});L.push(O)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[L])};return be({search:async(L=null,O=!0)=>{N.value=L&&(0,t.toRaw)(L),(0,t.triggerRef)(N),O&&(T.value=!0,v.value=0,f.value=[]),(0,t.nextTick)(()=>{$()})},clear:()=>{T.value=!0,v.value=0,f.value=[]},confirm:()=>{X()},cancel:()=>{U()}}),()=>{const L=[];if(u.showHeader){const ae=J();L.push(ae)}if(u.showSearchbar){const ae=I();L.push(ae)}let O=null;if(y.content)O=y.content();else{const ae=G();O=(0,t.h)(l,{hasMore:T.value,loadText:b.loadText.value,noMoreText:b.noMoreText.value,modelValue:C.value,"onUpdate:modelValue":se=>{C.value=se},onLoadMore:$},{default:()=>ae})}const q={};u.optionsHeight&&(q.height=u.optionsHeight);const E={"fox-actionsheet__list":!0};u.poppable||(E["fox-actionsheet__list--inner"]=!0);const F=(0,t.h)("view",{class:E,style:q},[O]);if(L.push(F),u.showFooter&&!D.value){const ae=le();L.push(ae)}const Y=(0,t.h)("view",{class:"fox-actionsheet"},L);if(!u.poppable)return Y;const te=["fox-actionsheet__popup"];return u.popClass&&te.push(u.popClass),(0,t.h)(a,{popClass:te.join(" "),visible:P.value,closeable:!1,"onUpdate:visible":W,position:u.position,round:"round",onClickOverlay:U,closeOnClickOverlay:u.closeOnClickOverlay},{default:()=>Y})}}}}var{componentName:qh,create:xh,scope:Ph}=ee("actionsheet-pane"),Mh=xh(Ih(qh,Ph,Se,ul,ct,dl,oe.CheckNormal,oe.Checked,oe.Close,oe.Search2,!1)),hl=Mh,Vi={type:{type:String,default:"text"},placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}},zh={...ge,...ve,...Vi,...fl};function Lh(e,n,a,l,o,r,i,c){return{props:zh,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{innerDisabled:h,disabled:u,innerReadonly:y,readonly:S,browse:w}=qe(s),{emitEvent:b}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return u.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),v=(0,t.ref)(!1),m=xe(s,"modelValue",null,b),N=(0,t.ref)(""),A=(0,t.computed)(()=>Array.isArray(N.value)?N.value.join(s.separator):N.value),p="fox-input-item",g=(0,t.computed)(()=>({[p]:!0,"is-disabled":u.value,"is-readonly":S.value})),C=Te((0,t.computed)(()=>s.textAlign),"textAlign"),T=(0,t.computed)(()=>{const Q={};return C.value&&(Q["text-align"]=C.value),Q}),$=(0,t.ref)(!1),V=()=>{$.value=!0},H=Q=>{$.value=Q},Z=Q=>{m.value=Q,b("update:modelValue",Q)},D=(Q,G)=>{b("change",Q,G)},M=Q=>{let G=Q.target.value;v.value=!0,b("focus",G,Q)},z=Q=>{setTimeout(()=>{v.value=!1},0);let G=Q.target.value;s.maxLength&&G.length>Number(s.maxLength)&&(G=G.slice(0,Number(s.maxLength))),b("blur",G,Q)},P=Q=>{N.value=Q,b("update:text",Q)},K=(0,t.computed)(()=>({[`${p}__append`]:!0,"is-disabled":u.value,"is-readonly":S.value})),j=(0,t.computed)(()=>we(s.unit)>0),x=(0,t.computed)(()=>we(s.unit)>0&&!v.value),_=(0,t.computed)(()=>({hidden:!x.value})),ne=Q=>{m.value="",b("update:modelValue","",Q),b("change","",Q),b("clear","")},W=(0,t.computed)(()=>s.clearable&&!u.value&&!S.value),U=(0,t.computed)(()=>we(m.value)>0&&v.value),X=Q=>{U.value?ne(Q):V()},J=(0,t.computed)(()=>U.value&&W.value?o:r),I=(0,t.computed)(()=>({action:!0})),R=(0,t.ref)(null);return be({search:Q=>{R.value&&R.value.search(Q)},clear:()=>{R.value&&R.value.clear},confirm:Q=>{R.value&&R.value.confirm()},cancel:()=>{R.value&&R.value.cancel()},setDisabled:Q=>{h.value=Q},setReadonly:Q=>{y.value=Q}}),()=>{if(w.value==="on"&&(S.value||u.value))return l(A.value,d.slots);const Q={class:g.value,style:T.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:A.value,onClick:V,onFocus:M,onBlur:z};c&&(Q.disabled=!0);const G=[],le=(0,t.h)("input",Q);G.push(le);const L=[],O=(0,t.h)(J.value,{class:["action-icon"]}),q=(0,t.h)("view",{class:I.value,onClick:X},{default:()=>[O]});if(L.push(q),j.value){const se=(0,t.h)("view",{class:_.value},[s.unit]);L.push(se)}const E=(0,t.h)("view",{class:K.value},{default:()=>L});G.push(E);const F={default:()=>G};F.label=d.slots.default,F.prepend=d.slots.prepend,F.append=d.slots.append,F.fixedPreTip=d.slots.fixedPreTip,F.fixedTip=d.slots.fixedTip;const Y=ye(s,fl);Y.ref=R,Y.class=s.actionSheetClass,Y.disabled=u.value||S.value,Y.visible=$.value,Y["onUpdate:visible"]=H,Y.modelValue=m.value,Y["onUpdate:modelValue"]=Z,Y.text=N.value,Y["onUpdate:text"]=P,Y.onChange=D,Y.poppable=!0,Y["text-position"]=s.textPosition;const te=(0,t.h)(i,Y,{title:d.slots.title,search:d.slots.search,option:d.slots.option,optionLabel:d.slots.optionLabel,optionIcon:d.slots.optionIcon,buttons:d.slots.buttons});F.hide=()=>[te];const ae={..._e(s,Vi,fl)};return s.prop&&(ae.prop=`${s.prop}_item`),a(ae,F)}}}}var{componentName:Rh,create:Oh,scope:Fh}=ee("actionsheet-item"),Kh=Oh(Lh(Rh,Fh,Pe,ze,oe.CircleClose,oe.ArrowRight,hl)),Ba=Kh,Ta={modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:[Boolean],default:!1},readonly:{type:[Boolean],default:!1}},{componentName:Uh,create:Hh}=ee("input-number"),jh=Hh({components:{Minus:oe.Minus,Plus:oe.Plus},props:{...Ta},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=(0,t.computed)(()=>{const S=Uh;return{[S]:!0,[`${S}--disabled`]:e.disabled}}),l=S=>Number(S).toFixed(Number(e.decimalPlaces)),o=S=>{const w=S.target;n("update:modelValue",w.valueAsNumber,S)},r=(S,w)=>{let b=l(S);n("update:modelValue",b,w),n("change",b,w)},i=(S=Number(e.modelValue))=>S<Number(e.max)&&!e.disabled,c=(S=Number(e.modelValue))=>S>Number(e.min)&&!e.disabled,s=S=>{n("reduce",S),c()?r(Number(e.modelValue)-Number(e.step),S):n("overlimit",S,"reduce")},d=S=>{n("add",S),i()?r(Number(e.modelValue)+Number(e.step),S):n("overlimit",S,"add")},h=S=>{e.disabled||e.readonly||n("focus",S)},u=S=>{if(e.disabled||e.readonly)return;let w=S.target.valueAsNumber;w<Number(e.min)?w=Number(e.min):w>Number(e.max)&&(w=Number(e.max)),r(w,S),n("blur",S)},y=S=>{let w=Number(S);return w<Number(e.min)?w=Number(e.min):w>Number(e.max)&&(w=Number(e.max)),w};return(0,t.watch)(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const S=y(e.modelValue);S!==Number(e.modelValue)&&r(S,{})}),{classes:a,change:o,blur:u,focus:h,add:d,addAllow:i,reduce:s,reduceAllow:c,toPxString:me}}}),Wh=["min","max","disabled","readonly","value"];function Yh(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Minus"),c=(0,t.resolveComponent)("Plus");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:n[0]||(n[0]=(...s)=>e.reduce&&e.reduce(...s))},[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[(0,t.createVNode)(i,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2),(0,t.createElementVNode)("input",{type:"number",min:e.min,max:e.max,style:(0,t.normalizeStyle)({width:e.toPxString(e.inputWidth),height:e.toPxString(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[1]||(n[1]=(...s)=>e.change&&e.change(...s)),onBlur:n[2]||(n[2]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[3]||(n[3]=(...s)=>e.focus&&e.focus(...s))},null,44,Wh),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[4]=(...s)=>e.add&&e.add(...s))},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[(0,t.createVNode)(c,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var pl=re(jh,[["render",Yh]]),Xh={...ge,...ve,...Ta};function Qh(e,n,a,l,o){return{props:Xh,emits:["change","update:modelValue","setValue","add","reduce"],setup(r,i){const{innerDisabled:c,disabled:s,innerReadonly:d,readonly:h,browse:u}=qe(r),{emitEvent:y}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!h.value}},r.prop??i.attrs.name),S=(0,t.computed)(()=>{const v=[`${e}`];return r.textAlign==="left"?v.push("is-left"):r.textAlign==="center"?v.push("is-center"):r.textAlign==="right"&&v.push("is-right"),v.join(" ")}),w=xe(r,"modelValue",null,y),b=v=>{w.value=v,y("update:modelValue",v,{}),y("change",v,{})},k=v=>{y("add",v)},f=v=>{y("reduce",v)};return be({setDisabled:v=>{c.value=v},setReadonly:v=>{d.value=v}}),()=>{if(u.value==="on"&&(h.value||s.value))return l(w.value,i.slots);const v={"left-icon":i.slots["left-icon"],"right-icon":i.slots["right-icon"]},m=ye(r,Ta),N=(0,t.h)(o,{...i.attrs,...m,disabled:s.value,readonly:h.value,value:w.value,"onUpdate:modelValue":b,onAdd:k,onReduce:f},v),A=[];A.push(N);const p={default:()=>A};p.label=i.slots.default,p.fixedPreTip=i.slots.fixedPreTip,p.fixedTip=i.slots.fixedTip;const g={...ye(r,ve,ge)};return r.prop&&(g.prop=`${r.prop}_item`),g["content-class"]=S.value,a(g,p)}}}}var{componentName:Gh,create:Zh,scope:_h}=ee("input-number-item"),Jh=Zh(Qh(Gh,_h,Pe,ze,pl)),Va=Jh,ep={...ia,...sa,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function tp(e,n,a,l){return{props:ep,emits:["update:modelValue","change"],setup(o,{emit:r,slots:i}){const c=e,s=(0,t.computed)(()=>{const b=[`${c}`];return o.direction==="vertical"?b.push("vertical-tabbar"):b.push("horizontal-tabbar"),b}),d=(0,t.computed)(()=>{const b={};if(o.width){const k=me(o.width);k&&(b.width=k)}if(o.height){const k=me(o.height);k&&(b.height=k)}return b}),h=(0,t.computed)(()=>[`${c}__bar`]),u=(0,t.computed)(()=>[`${c}__container`]),y=(0,t.ref)(o.modelValue);(0,t.watch)(()=>o.modelValue,b=>{y.value!==b&&(y.value=b)});const S=b=>{r("change",b)},w=b=>{y.value!==b&&(y.value=b,r("update:modelValue",b))};return()=>{const{getChildren:b}=Yl(i.default),k=b(),f=[];if(Array.isArray(o.data))f.push(...o.data);else for(let C=0;C<k.length;C++){const T=k[C].props??{},$={text:T.label??"",value:T["pane-key"]??T.paneKey??""};f.push($)}const v={};for(let C in i)C!=="default"&&(v[C]=i[C]);const m=ye(o,ia);Object.assign(m,{data:f,class:h.value,modelValue:y.value,direction:o.direction,onChange:S,"onUpdate:modelValue":w});const N=(0,t.h)(a,m,v),A={default:()=>k},p=ye(o,sa);Object.assign(p,{class:u.value,modelValue:y.value,onChange:S,"onUpdate:modelValue":w});const g=(0,t.h)(l,p,A);return(0,t.h)("view",{class:s.value,style:d.value},[N,g])}}}}var{create:np,componentName:lp,scope:ap}=ee("tabs-frame"),op=np(tp(lp,ap,Wt,Yt)),$a=op,rp={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function ip(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function $i(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ei(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function sp(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Ea(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Di(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Ii(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Da(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var cp=class{proxy;constructor(e){this.proxy=e}async load(e,n,a){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[a]);const l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await Reflect.apply(l,null,[n,a]))}};function up(){return new cp((0,t.getCurrentInstance)().proxy)}function dp(e,n,a,l){return{props:{...rp},emits:["update:modelValue","change","loaded-data","click"],setup(o,{slots:r,emit:i}){const c=e,s=up(),d=(0,t.ref)([]),h=(0,t.computed)(()=>d.value.filter(W=>sp(o,W)!==!1)),u=(0,t.ref)(-1),y=()=>{const W=o.modelValue,U=h.value.findIndex(X=>$i(o,X)===W);u.value!==U&&(u.value=U,o.scroll&&_(U,!1))};(0,t.watch)([()=>o.modelValue,h],()=>{y()});const S=W=>u.value===W,w=W=>{if(W<0&&W>=h.value.length)return!1;const U=h.value[W],X=(Da(o,U,W)??{}).status??Ea(o,U);return S(W)||X},b=(0,t.computed)(()=>{const W={[c]:!0};return o.mode?W[`is-${o.mode}`]=!0:o.direction&&(W[`is-${o.direction}`]=!0),o.scroll&&(W["is-scroll"]=!0),W}),k=(0,t.computed)(()=>({})),f=(W,U,X,J,I)=>{const R={[`${c}__step`]:!0};return I&&(R[`${I}`]=!0),R[`${v.value}`]=!0,J&&(R["is-doit"]=!0),W===u.value?R["is-active"]=!0:U==="done"?R["is-done"]=!0:U==="error"?R["is-error"]=!0:U==="half"?R["is-half"]=!0:X?R["is-disabled"]=!0:R["is-normal"]=!0,R},v=(0,t.computed)(()=>{let W=o.align;if(!W){if(o.mode==="simple")return"start";o.direction==="vertical"?W="start":W="center"}return W}),m=(W,U={})=>{const X={...U};if(v.value==="start"&&W===h.value.length-1)X.flex="0 0 auto";else if(o.step){const J=typeof o.step=="number"||hn(o.step)?me(o.step):o.step;o.direction==="vertical"?X.height=J:X.width=J}else X.flex="1 1 100%";return X},N=(W,U)=>{let X={};if(U<h.value.length-1){const J=U+1;w(U)&&w(J)?o.direction==="vertical"?X.height="100%":X.width="100%":X.opacity="0"}return X},A=W=>h.value.length-1===W,p=(W,U)=>{if(o.clickNavigatePolicy==="disabled"||(o.clickNavigatePolicy==="only-back"||o.clickNavigatePolicy==="only-back-reset")&&U>u.value||u.value===U)return;const X=u.value,J=U;u.value=U,o.scroll&&_(U,!1);const I=$i(o,W);i("update:modelValue",I),i("change",I,{fromIndex:X,currentIndex:J,item:W,items:h.value,clickNavigatePolicy:o.clickNavigatePolicy})},g=(0,t.ref)(!0),C=async(W,U)=>{try{const X=await s.load("stesbar",W,U);Array.isArray(X)&&(d.value=X),g.value=!1}catch(X){console.error("[FoxUI] Load StepsBar Data Fail",X),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};(0,t.watch)([()=>o.data,()=>o.params],async([W,U])=>{W&&C(W,U)},{immediate:!0});const T=(W,U,X,J,I,R)=>{const Q=[];let G=null;if(!R)if(r.icon)G=r.icon({item:W,index:U,status:J});else if(J==="done"){const le={};o.iconSize&&(le.width=o.iconSize,le.height=o.iconSize),G=(0,t.h)(o.icon??a,le)}else G=(0,t.h)("span",{},[X??`${U+1}`]);return G&&Q.push(G),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{i("click",{item:W,index:U}),!I&&p(W,U)}},Q)},$=(W,U,X)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:N(W,U)})]),V=()=>{let W=null;if(r.markIcon)W=r.markIcon();else{const U={};o.iconSize&&(U.width=o.markIconSize,U.height=o.markIconSize),W=(0,t.h)(o.markIcon??l,U)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[W])},H=(W,U,X,J,I,R)=>{const Q=[];if(!A(U)){const le=$(W,U,J);Q.push(le)}const G=T(W,U,X,J,I,R);return Q.push(G),(0,t.h)("view",{class:"fox-steps-bar__head"},Q)},Z=(W,U,X,J)=>{let I=null;return r.main?I=r.main({item:W,index:U,status:X}):I=ip(o,W),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{i("click",{item:W,index:U}),!J&&p(W,U)}},[I])},D=(W,U,X)=>{let J=null;return r.sub?(J=r.sub({item:W,index:U,status:X}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[J])):null},M=(W,U)=>{const X=Da(o,W,U)??{},J=X.status??Ea(o,W);let I=Ei(o,W);X.disabled===!0&&(I=!0),o.disabled===!0&&(I=!0);let R=Di(o,W);X.doit===!0&&(R=!0);const Q=X.label??Ii(o,W),G=[],le=T(W,U,Q,J,I,R);le&&G.push(le);const L=Z(W,U,J,I);if(L&&G.push(L),!A(U)){const F=$(W,U,J);F&&G.push(F)}const O=(0,t.h)("view",{class:"fox-steps-bar__head"},G),q=X.class,E=X.style??{};return(0,t.h)("view",{ref:x(U),class:f(U,J,I,R,q),style:m(U,E)},[O])},z=(W,U)=>{const X=Da(o,W,U)??{},J=X.status??Ea(o,W);let I=Ei(o,W);X.disabled===!0&&(I=!0),o.disabled===!0&&(I=!0);let R=Di(o,W);X.doit===!0&&(R=!0);const Q=X.label??Ii(o,W),G=[],le=o.layout;for(let q of le)if(q==="head"){const E=H(W,U,Q,J,I,R);G.push(E)}else if(q==="main"){const E=Z(W,U,J,I);G.push(E)}else if(q==="sub"){const E=D(W,U,J);G.push(E)}else if(q==="mark"){const E=V();G.push(E)}const L=X.class,O=X.style??{};return(0,t.h)("view",{ref:x(U),class:f(U,J,I,R,L),style:m(U,O)},G)},P=(0,t.ref)(),K=(0,t.ref)([]),j=(W,U)=>{K.value[U]=W},x=W=>U=>{j(U,W)},_=(W,U)=>{const X=P.value,J=K.value;if(!X||!J||!J[W])return;const I=J[W];let R=0;o.direction==="vertical"?R=I.offsetTop-(X.offsetHeight-I.offsetHeight)/2:R=I.offsetLeft-(X.offsetWidth-I.offsetWidth)/2,ne(X,R,U?0:.3,o.direction)},ne=(W,U,X,J)=>{let I=0;const R=J==="horizontal"?W.scrollLeft:W.scrollTop,Q=X===0?1:Math.round(X*1e3/16);function G(){J==="horizontal"?W.scrollLeft+=(U-R)/Q:W.scrollTop+=(U-R)/Q,++I<Q&&je(G)}G()};return()=>{let W=[];if(o.mode==="simple")for(let X=0;X<h.value.length;X++){const J=h.value[X],I=M(J,X);W.push(I)}else for(let X=0;X<h.value.length;X++){const J=h.value[X],I=z(J,X);W.push(I)}const U={ref:P,class:b.value,style:k.value};return W.length===0&&typeof r.default=="function"&&(W=r.default()),(0,t.h)("view",U,W)}}}}var{componentName:fp,create:mp,scope:hp}=ee("steps-bar"),pp=mp(dp(fp,hp,oe.Checklist,oe.ArrowRight)),Ia=pp;function gp(e){e.stopPropagation()}var yp=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,n){this.startMove=e,this.updateMove=n,this.isTouch=Wn()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=Yn(),a=(l,o,r,i)=>{this.updateMove({x:l,y:o})};this.touchstart=l=>{this.moving||(n.start(l),this.startMove({x:n.state.startX,y:n.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(n.move(l),gp(l),a(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{a(n.state.deltaX,n.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),n.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function bp(e,n){return new yp(e,n)}var vp={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},Sp=(e,n,a,l=!1)=>({props:{...vp},emits:["click"],setup(o,{slots:r,emit:i}){let c=-1,s=-1;const d=(0,t.reactive)({top:o.top,right:o.right,bottom:o.bottom,left:o.left,width:0,height:0}),h=(0,t.computed)(()=>{const A=[`${e}`];return o.customClass&&A.push(o.customClass),A}),u=A=>typeof A=="string"&&!hn(A)?A:`${A}px`,y=(0,t.computed)(()=>{const A={};return fe(d.top)||(A.top=u(d.top)),fe(d.right)||(A.right=u(d.right)),fe(d.bottom)||(A.bottom=u(d.bottom)),fe(d.left)||(A.left=u(d.left)),fe(o.width)||(A.width=u(o.width)),fe(o.height)||(A.height=u(o.height)),fe(o.color)||(A.color=o.color),fe(o.background)||(A.background=o.background),fe(o.borderRadius)||(A["border-radius"]=o.borderRadius),fe(o.zIndex)||(A["z-index"]=o.zIndex),A}),S=(0,t.computed)(()=>({[`${e}__icon`]:!0})),w=()=>{i("click")},b=(0,t.ref)(null),k=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},f={x:0,y:0},N=bp(A=>{if(!b.value)return;const p=b.value;k(),d.left=p.offsetLeft,d.top=p.offsetTop,p.style.left=`${d.left}px`,p.style.top=`${d.top}px`,p.style.right=null,p.style.bottom=null,f.x=d.left,f.y=d.top,d.width=p.offsetWidth,d.height=p.offsetHeight,c=document.documentElement.clientWidth||document.body.clientWidth,s=document.documentElement.clientHeight||document.body.clientHeight},A=>{if(!b.value)return;const p=b.value;k();let g=f.x+A.x;g<0&&(g=0),g>c-d.width&&(g=c-d.width);let C=f.y+A.y;C<0&&(C=0),C>s-d.height&&(C=s-d.height),d.left=g,d.top=C,p.style.left=`${g}px`,p.style.top=`${C}px`});return(0,t.onMounted)(()=>{if(o.draggable&&b.value){const A=[b.value];N.open(A)}}),(0,t.onBeforeUnmount)(()=>{o.draggable&&b.value&&N.close()}),()=>{let A=[];const p=typeof r.default=="function"?r.default():[];if(p&&p.length>0)A=p;else{const g=(0,t.h)(a,{class:S.value});A.push(g)}return(0,t.h)("view",{ref:g=>{b.value=g},class:h.value,style:y.value,onClick:w},A)}}}),{componentName:kp,create:wp,scope:Cp}=ee("floating-button"),Np=wp(Sp(kp,Cp,oe.Uploader,!1)),qa=Np,Ap={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function Bp(e,n,a){return{props:{...Ap},emits:["click","update:modelValue"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),c=i(l,["collapseText","expandText"]),s=(0,t.computed)(()=>{const w={[`${e}`]:!0};return l.disabled?w[`${e}--disabled`]=!0:w[`${e}--${l.type}`]=!0,w}),d=xe(l,"modelValue"),h=(0,t.computed)(()=>d.value?c.expandText.value??"":c.collapseText.value??""),u=(0,t.computed)(()=>({[`${e}__text`]:!0})),y=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),S=()=>{o("update:modelValue",!d.value)};return()=>{const w=[];if(h.value){const f=(0,t.h)("span",{class:u.value},[h.value]);w.push(f)}const b={class:y.value},k=(r.icon&&r.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(a);if(k){const f=(0,t.h)("view",b,[k]);w.push(f)}return l.textPosition==="right"&&w.reverse(),(0,t.h)("view",{class:s.value,onClick:S},w)}}}}var{componentName:Tp,create:Vp,scope:$p}=ee("more-button"),Ep=Vp(Bp(Tp,$p,oe.RectUp)),xa=Ep,Dp={visible:{type:[Boolean],default:!0},width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},Ip=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function qp(e,n,a){return{props:{...Dp},emits:["update:visible"],setup(l,{attrs:o,slots:r,emit:i}){const{toLocaleRefs:c}=(0,pe.useFoxI18n)(n),s=c(l,["confirmText","cancelText"]),d=e,h=(0,t.ref)(l.visible),u=A=>{h.value=A,i("update:visible",A)};(0,t.watch)(()=>l.visible,A=>{h.value!==A&&(h.value=A)});const y=A=>{if(typeof l.unmount=="function")try{l.unmount()}catch(p){console.error(p)}if(typeof l.callback=="function")try{l.callback(A)}catch(p){console.error(p)}},S=()=>{y("confirm")},w=()=>{y("cancel")},b=()=>{l.closeOnClickOverlay!==!1&&y("close")},k=(A,p)=>Ip(A)?(p.src=A,(0,t.h)("img",p)):typeof A=="string"?(Array.isArray(p.class)?p.class.push(A):p.class&&typeof p.class=="object"?p[`${A}`]=!0:typeof p.class=="string"?p.class=`${p.class}, ${A}`:p.class=A,(0,t.h)(l.tag,p)):(0,t.h)(A,p),f=()=>{const A=[];if(l.icon){const p={class:[`${d}__header-icon`]},g=k(l.icon,p);A.push(g)}if(l.title){const p=(0,t.h)("view",{class:`${d}__header-title`},[l.title]);A.push(p)}if(l.showClose&&l.closeIcon){const p={class:[`${d}__header-close-icon`],onClick:b},g=k(l.closeIcon,p);A.push(g)}return(0,t.h)("view",{class:[`${d}__header`]},A)},v=(A,p)=>{const g=[];if(p){const C=(0,t.h)("view",{class:`${d}__group-title`},[p]);g.push(C)}if(A){const C=[];Array.isArray(A)||(A=[A]);for(let T of A){const $=(0,t.h)("view",{class:`${d}__group-row`,innerHTML:T});C.push($)}if(C.length>0){const T=(0,t.h)("view",{class:`${d}__group-rows`},C);g.push(T)}}return g.length===0?null:(0,t.h)("view",{class:`${d}__group`},g)},m=()=>{const A=[];if(typeof l.message=="string")A.push(l.message);else if(Array.isArray(l.message))for(let p of l.message)if(typeof p=="string"){const g=v(p);A.push(g)}else{const g=v(p.content,p.title);A.push(g)}else if(typeof l.message=="function"){const p=l.message();A.push(p)}else{const p=l.message;A.push(p)}return(0,t.h)("view",{class:`${d}__body`},A)},N=()=>{const A=[];if(l.showCancelButton){const p={class:[`${d}__footer-button`],style:{},onClick:w};l.cancelButtonClass&&p.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(p.style,l.cancleButtonStyle);const g=(0,t.h)("button",p,[l.cancelButtonText??s.cancelText.value]);A.push(g)}if(l.showConfirmButton){const p={class:[`${d}__footer-button`],style:{},onClick:S};l.confirmButtonClass&&p.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(p.style,l.confirmButtonStyle);const g=(0,t.h)("button",p,[l.confirmButtonText??s.confirmText.value]);A.push(g)}return A.length===0?null:(0,t.h)("view",{class:`${d}__footer`},A)};return()=>{const A=[],p=f();p&&A.push(p);const g=m();g&&A.push(g);const C=N();C&&A.push(C);const T=(0,t.h)("view",{class:{[`${d}`]:!0,[`${d}--${l.type||"info"}`]:!0}},A),$=[`${d}__popup`];l.popClass&&$.push(l.popClass);const V={};return l.width&&(V.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(V.height=typeof l.height=="number"?`${l.height}px`:l.height),(0,t.h)(a,{popClass:$.join(" "),style:V,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":u,position:l.position,round:"round",onClickOverlay:b,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>T})}}}}var{componentName:xp,create:Pp,scope:Mp}=ee("messagebox"),zp=Pp(qp(xp,Mp,Se)),Lp=zp,Rp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M82.5121%201.93968L81.7498%206.07825C81.6498%206.6214%2081.1284%206.98064%2080.5853%206.8806C80.4326%206.85251%2080.2886%206.78925%2080.1646%206.69578L77.1586%204.43061C76.7175%204.09823%2076.6294%203.47123%2076.9618%203.03016C77.0552%202.90617%2077.1762%202.80562%2077.3153%202.73655L81.0834%200.863097C81.5779%200.617235%2082.1782%200.818843%2082.4241%201.31339C82.5204%201.50712%2082.5512%201.72688%2082.5121%201.93968Z'%20fill='%23FFD1C9'%20%3e%3c/path%3e%3cpath%20d='M3.08218%20102.2L6.53454%2094.2358C6.75419%2093.7291%207.34251%2093.4968%207.84925%2093.7164C7.99216%2093.7778%208.11815%2093.872%208.21791%2093.9909L13.2085%2099.9384C13.5635%20100.361%2013.5081%20100.992%2013.0852%20101.347C12.9665%20101.447%2012.8261%20101.518%2012.675%20101.554L4.23203%20103.571C3.69484%20103.699%203.15538%20103.367%203.02699%20102.83C2.97674%20102.62%202.99607%20102.399%203.08218%20102.2Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23FF5959'%20%3e%3c/circle%3e%3cpath%20d='M59.935%2049.6213C61.3827%2051.069%2061.3827%2053.4162%2059.935%2054.864L45.935%2068.864C44.4873%2070.3117%2042.1401%2070.3117%2040.6924%2068.864C39.2447%2067.4162%2039.2447%2065.069%2040.6924%2063.6213L54.6924%2049.6213C56.1401%2048.1736%2058.4873%2048.1736%2059.935%2049.6213Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3cpath%20d='M40.6924%2049.6213C39.2447%2051.069%2039.2447%2053.4162%2040.6924%2054.864L54.6924%2068.864C56.1401%2070.3117%2058.4873%2070.3117%2059.935%2068.864C61.3827%2067.4162%2061.3827%2065.069%2059.935%2063.6213L45.935%2049.6213C44.4873%2048.1736%2042.1401%2048.1736%2040.6924%2049.6213Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%23FFD1C9'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L102%20110L102%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Op="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cpath%20d='M8%2087L8%2095C8%2095.5523%207.55228%2096%207%2096C6.44772%2096%206%2095.5523%206%2095L6%2087L2%2087C1.44772%2087%201%2086.5523%201%2086C1%2085.4477%201.44772%2085%202%2085L6%2085L6%2082C6%2081.4477%206.44772%2081%207%2081C7.55228%2081%208%2081.4477%208%2082L8%2085L12%2085C12.5523%2085%2013%2085.4477%2013%2086C13%2086.5523%2012.5523%2087%2012%2087L8%2087Z'%20fill-rule='evenodd'%20fill='%2396CEFF'%20%3e%3c/path%3e%3cpath%20d='M89%205L89%2010C89%2010.5523%2088.5523%2011%2088%2011C87.4477%2011%2087%2010.5523%2087%2010L87%205L85%205C84.4477%205%2084%204.55228%2084%204C84%203.44772%2084.4477%203%2085%203L87%203L87%201C87%200.447715%2087.4477%200%2088%200C88.5523%200%2089%200.447715%2089%201L89%203L91%203C91.5523%203%2092%203.44772%2092%204C92%204.55228%2091.5523%205%2091%205L89%205Z'%20fill-rule='evenodd'%20fill='%23BDE2FF'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23237FFA'%20%3e%3c/circle%3e%3crect%20x='47.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%2396CEFF'%20%3e%3c/rect%3e%3crect%20x='47.5'%20y='66'%20width='7'%20height='7'%20rx='4'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3c/svg%3e",Fp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='105'%20viewBox='0%200%20102%20105'%20fill='none'%3e%3cpath%20d='M7%2076C7.55228%2076%208%2076.4477%208%2077L7.999%2079.999L12%2080C12.5523%2080%2013%2080.4477%2013%2081C13%2081.5523%2012.5523%2082%2012%2082L7.999%2081.999L8%2090C8%2090.5523%207.55228%2091%207%2091C6.44772%2091%206%2090.5523%206%2090L5.999%2081.999L2%2082C1.44772%2082%201%2081.5523%201%2081C1%2080.4477%201.44772%2080%202%2080L5.999%2079.999L6%2077C6%2076.4477%206.44772%2076%207%2076Z'%20fill='%2338D677'%20%3e%3c/path%3e%3cpath%20d='M75%201.72421e-32C75.5523%20-1.01453e-16%2076%200.447715%2076%201L76%202.999L78%203C78.5523%203%2079%203.44772%2079%204C79%204.55228%2078.5523%205%2078%205L76%204.999L76%2010C76%2010.5523%2075.5523%2011%2075%2011C74.4477%2011%2074%2010.5523%2074%2010L74%204.999L72%205C71.4477%205%2071%204.55228%2071%204C71%203.44772%2071.4477%203%2072%203L74%202.999L74%201C74%200.447715%2074.4477%201.01453e-16%2075%201.72421e-32Z'%20fill='%238BF0AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='54'%20r='28'%20fill='%2338D677'%20%3e%3c/circle%3e%3cpath%20d='M36.8787%2051.8786C38.3265%2050.4309%2040.6736%2050.4309%2042.1213%2051.8786L50.1214%2059.8786C51.5691%2061.3263%2051.5691%2063.6735%2050.1214%2065.1212C48.6737%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212L36.8787%2057.1212C35.431%2055.6735%2035.431%2053.3263%2036.8787%2051.8786Z'%20fill='%23B3F2C6'%20%3e%3c/path%3e%3cpath%20d='M64.1214%2045.8786C65.5691%2047.3263%2065.5691%2049.6735%2064.1214%2051.1212L50.1213%2065.1212C48.6736%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212C43.431%2063.6735%2043.431%2061.3263%2044.8787%2059.8786L58.8788%2045.8786C60.3265%2044.4309%2062.6737%2044.4309%2064.1214%2045.8786Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='14.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='101.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='25'%20r='7'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3c/svg%3e",Kp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='101'%20height='110'%20viewBox='0%200%20101%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M81.512%201.93968L80.7498%206.07825C80.6498%206.6214%2080.1284%206.98064%2079.5852%206.8806C79.4326%206.85251%2079.2886%206.78925%2079.1645%206.69578L76.1585%204.43061C75.7175%204.09823%2075.6293%203.47123%2075.9617%203.03016C76.0552%202.90617%2076.1761%202.80562%2076.3152%202.73655L80.0833%200.863097C80.5779%200.617235%2081.1781%200.818843%2081.424%201.31339C81.5203%201.50712%2081.5512%201.72688%2081.512%201.93968Z'%20fill='%23FEFAE0'%20%3e%3c/path%3e%3cpath%20d='M2.08224%20102.2L5.5346%2094.2358C5.75425%2093.7291%206.34257%2093.4968%206.84931%2093.7164C6.99222%2093.7778%207.11822%2093.872%207.21798%2093.9909L12.2086%2099.9384C12.5636%20100.361%2012.5082%20100.992%2012.0853%20101.347C11.9666%20101.447%2011.8261%20101.518%2011.675%20101.554L3.23209%20103.571C2.6949%20103.699%202.15544%20103.367%202.02705%20102.83C1.97681%20102.62%201.99613%20102.399%202.08224%20102.2Z'%20fill='%23FEE789'%20%3e%3c/path%3e%3ccircle%20cx='50'%20cy='59'%20r='28'%20fill='%23FAB007'%20%3e%3c/circle%3e%3crect%20x='46.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%23FEE789'%20%3e%3c/rect%3e%3crect%20x='46.5'%20y='66'%20width='7'%20height='7'%20rx='3.5'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='84.5'%20cy='106.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='94'%20cy='30'%20r='7'%20fill='%23FEE789'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L101%20110L101%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Up=new On,Hp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},jp=e=>{let n=document.body,a=e.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):a&&(n=e.teleport));const l=document.createElement("view"),o=`messagebox-${Up.get()}`;l.id=o,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const i=document.querySelector(`#${o}`);i&&i.parentNode?.removeChild(i)};const r=(0,t.createVNode)(Lp,e);n.appendChild(l),(0,t.render)(r,l)},ut={show:(e,n,a,l)=>{const o={...Hp};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(o,n):(n&&(o.message=n),a&&typeof a=="object"?Object.assign(o,a):(typeof a=="string"&&(o.title=a),l&&typeof l=="object"?Object.assign(o,l):typeof l=="string"&&(o.type=l)));const r=o.type??"info";return o.icon||(r==="success"?o.icon=Fp:r==="warning"?o.icon=Kp:r==="error"?o.icon=Rp:o.icon=Op),e==="alert"?(o.showCancelButton=!1,o.showConfirmButton=!0):e==="confirm"&&(o.showCancelButton=!0,o.showConfirmButton=!0),o.showClose&&!o.closeIcon&&(o.closeIcon=oe.Close),new Promise((i,c)=>{const s=o.callback;o.callback=d=>{if(typeof s=="function")try{s(d)}catch(h){console.error(h)}i({action:d})},jp(o)})},alert:(e,n,a)=>ut.show("alert",e,n,a),confirm:(e,n,a)=>ut.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=ut.alert,e.config.globalProperties.$confirm=ut.confirm}},Wp=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let o=!0,r=!0;for(let i in n)i==="bubbles"?o=!!n[i]:i==="cancelable"?r=!!n[i]:l[i]=n[i];l.initEvent(e,o,r),(a??document).dispatchEvent(l)},Yp=new On,Xp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Qp=e=>`${e}-${Yp.get()}`,Gp=Symbol.for("InnerPageScopeKey"),Zp=Symbol.for("PageWrapperKey"),_p="FoxLeave",Jp="FoxLeaveEnd",eg={width:{type:[String,Number]},height:{type:[String,Number]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!0},showDelay:{type:Number,default:10},showClose:{type:Boolean,default:!0},closeIcon:{type:Object},showHeader:{type:Boolean,default:!1},popClass:{type:String},popStyle:{type:Object},position:{type:String,default:"center"},mode:{type:String}};function tg(e,n,a,l){return{props:{...at,...eg},emits:["update:visible"],setup(o,{attrs:r,slots:i,emit:c}){(0,t.provide)(Gp,!0);const s={};(0,t.provide)(Zp,s);const d=p=>(typeof s.beforeClose=="function"&&s.beforeClose(),!1),h=()=>{d("close")},u=e,y=p=>{S.value=p,c("update:visible",p)},S=(0,t.ref)(!1),w=(p,g)=>Xp(p)?(g.src=p,(0,t.h)("img",g)):typeof p=="string"?(Array.isArray(g.class)?g.class.push(p):g.class&&typeof g.class=="object"?g[`${p}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${p}`:g.class=p,(0,t.h)(o.tag,g)):(0,t.h)(p,g),b=()=>{if(!o.showHeader)return null;const p=[];if(i.header){const g=i.header();p.push(g)}else if(o.title){const g=(0,t.h)("view",{class:`${u}__header-title`},[o.title]);p.push(g)}return p.length===0?null:(0,t.h)("view",{class:[`${u}__header`]},p)},k=()=>{if(!o.showClose)return null;const p={class:[`${u}__close-icon`],onClick:h};return w(o.closeIcon??l,p)};let f=null;const v=p=>{Wp(Jp,{},f)},m=Qp(e),N=()=>{y(!0)},A=()=>{if(!f)return;const p=f.querySelector(".fox-overlay");p&&(p.classList.add("overlay-fade-leave-active"),p.classList.add("overlay-fade-leave-to"));const g=f.querySelector(".fox-popup");g&&(g.classList.add(`fox-popup-slide-${o.position}-leave-active`),g.classList.add(`fox-popup-slide-${o.position}-leave-to`),g.addEventListener("animationend",v,{once:!0}),g.addEventListener("transitionend",v,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{f=document.querySelector(`.${m}`),f?.addEventListener(_p,A,{once:!0}),N()}),()=>{const p=[],g=b();g&&p.push(g);const C=k();C&&p.push(C);const T=i.default?i.default():[];Reflect.apply([].push,p,T);const $={[`${u}`]:!0};o.mode&&($[`${u}--${o.mode}`]=!0);const V=(0,t.h)("view",{class:$},p),H=[`${u}__popup`,m];o.popClass&&H.push(o.popClass),o.position&&H.push(`${u}__popup--${o.position}`);const Z={};o.width&&(Z.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(Z.height=typeof o.height=="number"?`${o.height}px`:o.height);const D=(0,t.h)(a,{...ye(o,at),popClass:H.join(" "),style:Z,visible:S.value,teleportDisable:!0,closeable:!1,position:o.position,closeOnClickOverlay:o.closeOnClickOverlay,onClickOverlay:h,"onUpdate:visible":y},{default:()=>V});return(0,t.h)("div",{class:[`${u}__root`,m]},[D])}}}}var{componentName:ng,create:lg,scope:ag}=ee("popup-wrapper"),og=lg(tg(ng,ag,Se,oe.Close)),Pa=og,rg={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function ig(e,n,a,l){return{props:{...rg},emits:["update:visible"],setup(o,{emit:r,slots:i}){const c=s=>{r("update:visible",s)};return()=>{const s=[`${e}__popup`];o.popClass&&s.push(o.popClass);const d=(0,t.h)(a,{popClass:s,style:o.popStyle??{},position:"top",zIndex:o.zIndex,closeOnClickOverlay:o.closeOnClickOverlay,teleportDisable:!0,visible:o.visible,"onUpdate:visible":c},i);return(0,t.h)("view",{class:`${e}`},[d])}}}}var{componentName:sg,create:cg,scope:ug}=ee("dropdown"),dg=cg(ig(sg,ug,Se,!1)),Ma=dg;function fg(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(a,{slots:l}){return Sr(a.name,()=>a.config),Me(a.innerPageScope)||Cr(a.innerPageScope),Me(a.abstractPageScope)||Nr(a.abstractPageScope),()=>typeof l.default=="function"?l.default():null}}}var{componentName:mg,create:hg,scope:pg}=ee("domain-provider"),gg=hg(fg(mg,pg)),za=gg,yg={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function bg(e,n){return{inheritAttrs:!1,props:yg,emits:["change"],setup(a,{slots:l,emit:o}){if(Ze&&window.IntersectionObserver){const r=new WeakMap;let i=new Map;const c=(y,S)=>{if(h===null){i.set(y,{visible:null,callback:S});return}r.has(y)&&h.unobserve(y),r.set(y,{visible:null,callback:S}),h.observe(y)},s=y=>{if(h===null){i.delete(y);return}r.has(y)&&(r.delete(y),h.unobserve(y))};let d=a.initialVisibleObserverSize;oc({acquire:()=>{if(a.loadPolicy==="always")return!0;const y=d>0;return d--,y},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:c,unobserve:s});let h=null;const u=(y,S,w)=>{h=new IntersectionObserver(b=>{if(o("change",b),a.loadPolicy!=="always")for(let k of b){let f=!1;k.intersectionRatio>0&&(f=!0);const v=r.get(k.target);if(v)try{if(a.loadPolicy==="lazy"&&!f&&v.visible!==null)return;v.visible=f,v.callback(f)}catch(m){console.error(m)}}},{root:y,rootMargin:S,threshold:w}),i.forEach((b,k)=>{r.set(k,b),h?.observe(k)}),i.clear()};(0,t.watch)([()=>a.root,()=>a.disabled],([y,S])=>{if(S||!y||h)return;let w=null;typeof y=="string"?w=document.querySelector(y):w=y,w&&u(w,a.rootMargin,a.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:vg,create:Sg,scope:kg}=ee("rolling-provider"),wg=Sg(bg(vg,kg)),La=wg,{componentName:Cg,create:Ng}=ee("cell"),Ag=Ng({components:{Right:oe.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=(0,t.computed)(()=>{const r=Cg;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:me(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:l}}}),Bg={key:0,class:"fox-cell__icon"},Tg={key:1,class:"fox-cell__title"},Vg={class:"title"},$g={class:"fox-cell__title-desc"};function Eg(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Right");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.baseStyle),onClick:n[0]||(n[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Bg,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Tg,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",Vg,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",$g,(0,t.toDisplayString)(e.subTitle),1)],64)):(0,t.renderSlot)(e.$slots,"title",{key:1},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)])])):(0,t.createCommentVNode)("",!0),e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:(0,t.normalizeStyle)({"text-align":e.descTextAlign})},(0,t.toDisplayString)(e.desc),7)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"link",{},()=>[e.isLink?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var Ra=re(Ag,[["render",Eg]]),Dg={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function Ig(e,n){return{props:{...Dg},setup(a,{attrs:l,slots:o}){const r=(0,t.computed)(()=>{const i={};return a.color&&(i.color=a.color),a.size&&(i.fontSize=me(a.size)),i});return()=>{const i={style:r.value,class:`${e}-wrap`,...l};return(0,t.h)(a.tag??"li",i,o)}}}}var{componentName:qg,create:xg,scope:Pg}=ee("icon"),Mg=xg(Ig(qg,Pg)),Oa=Mg,{componentName:zg,create:Lg}=ee("cell-group"),Rg=Lg({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[zg]:!0}))}}}),Og={key:1,class:"fox-cell-group__title"},Fg={key:3,class:"fox-cell-group__desc"},Kg={class:"fox-cell-group__wrap"};function Ug(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Og,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.$slots.desc?(0,t.renderSlot)(e.$slots,"desc",{key:2}):e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Kg,[(0,t.renderSlot)(e.$slots,"default")])],2)}var Fa=re(Rg,[["render",Ug]]),{componentName:Hg,create:jg}=ee("image"),Wg=jg({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:oe.Image,ImageError:oe.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const S=Hg;return{[S]:!0,[`${S}-round`]:e.round}}),o=(0,t.ref)(null),r=(0,t.ref)(!1),i=(0,t.ref)(null),c=()=>{o.value=new IntersectionObserver(S=>{S.forEach(w=>{w.isIntersecting&&(r.value=!0,o.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),i.value&&o.value.observe(i.value)};(0,t.onMounted)(()=>{e.lazyLoad&&c()}),(0,t.onBeforeUnmount)(()=>{o.value&&o.value.disconnect()});const s=(0,t.computed)(()=>{let S={};return e.width&&(S.width=me(e.width)),e.height&&(S.height=me(e.height)),e.radius!==void 0&&e.radius!==null&&(S.overflow="hidden",S.borderRadius=me(e.radius)),S}),d=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,S=>{a.isError=!1,a.loading=!0});const h=()=>{a.loading=!1,n("load")},u=()=>{a.isError=!0,a.loading=!1,n("error")},y=S=>{n("click",S)};return{...(0,t.toRefs)(a),imageClick:y,classes:l,styles:d,stylebox:s,error:u,load:h,show:r,imgRef:i}}}),Yg=["src","date-src","alt"],Xg={key:0,class:"fox-img-loading"},Qg={key:1,class:"fox-img-error"};function Gg(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Image"),c=(0,t.resolveComponent)("ImageError");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.stylebox),onClick:n[2]||(n[2]=(...s)=>e.imageClick&&e.imageClick(...s))},[(0,t.createElementVNode)("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:n[0]||(n[0]=(...s)=>e.load&&e.load(...s)),onError:n[1]||(n[1]=(...s)=>e.error&&e.error(...s)),style:(0,t.normalizeStyle)(e.styles)},null,44,Yg),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",Xg,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,width:"16px",height:"20px",name:"image"})),(0,t.renderSlot)(e.$slots,"loading")])):(0,t.createCommentVNode)("",!0),e.isError&&!e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",Qg,[e.slotError?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,width:"16px",height:"20px",name:"imageError"})),(0,t.renderSlot)(e.$slots,"error")])):(0,t.createCommentVNode)("",!0)],6)}var Ka=re(Wg,[["render",Gg]]),{create:Zg}=ee("layout"),_g=Zg({}),Ua=_g,{componentName:Jg,create:ey}=ee("col"),ty=ey({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=Jg,a=(0,t.inject)("gutter");return{classes:(0,t.computed)(()=>({[n]:!0,[`${n}-gutter`]:a,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),style:(0,t.computed)(()=>({paddingLeft:a/2+"px",paddingRight:a/2+"px"}))}}});function ny(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Ha=re(ty,[["render",ny]]),{componentName:ly,create:ay}=ee("row"),oy=ay({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const n=ly;(0,t.provide)("gutter",e.gutter);const a=(l,o)=>l?o?`fox-row-${l}-${o}`:"":`fox-row-${o}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
1
+ (function(B,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("@fox-js/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","@fox-js/icons-vue","@fox-js/i18n"],t):(B=typeof globalThis<"u"?globalThis:B||self,t(B.FoxUI={},B.Vue,B.FoxValidator,B.FoxIconsVue,B.FoxI18n))})(this,function(B,t,ot,oe,pe){Object.defineProperties(B,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Yi=Object.create,Xo=Object.defineProperty,Xi=Object.getOwnPropertyDescriptor,Qi=Object.getOwnPropertyNames,Gi=Object.getPrototypeOf,Zi=Object.prototype.hasOwnProperty,Ue=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),_i=(e,n,a,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var o=Qi(n),r=0,i=o.length,c;r<i;r++)c=o[r],!Zi.call(e,c)&&c!==a&&Xo(e,c,{get:(s=>n[s]).bind(null,c),enumerable:!(l=Xi(n,c))||l.enumerable});return e},He=(e,n,a)=>(a=e!=null?Yi(Gi(e)):{},_i(n||!e||!e.__esModule?Xo(a,"default",{value:e,enumerable:!0}):a,e)),sn=window,Ji=typeof window<"u";function es(){return typeof sn<"u"?sn.requestAnimationFrame||sn.webkitRequestAnimationFrame||function(e){sn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Qo(e){Ji?cancelAnimationFrame(e):clearTimeout(e)}var Ge=es();function cn(e,n="0"){let a=0,l=-1;e[0]=="-"&&(a++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,l=2,n=n.substring(1),n.length),e=Ae(e),n=Ae(n),[e,n]=Sl(Ae(e),Ae(n)),a==1&&(l==1?e=vl(e):n=vl(n));let o=Go(e,n);return a?a==2?"-"+Ae(o):e.length<o.length?Ae(o.substring(1)):"-"+Ae(vl(o)):Ae(o)}function vl(e){let n="",a=e.length,l=e.split(".")[1],o=l?l.length:0;for(let i=0;i<a;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=o>0?"0."+new Array(o).join("0")+"1":"1";return Go(n,r)}function Ae(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Sl(e,n){let a=e.split("."),l=n.split("."),o=a[0].length,r=l[0].length;return o>r?l[0]=new Array(Math.abs(o-r)+1).join("0")+(l[0]?l[0]:""):a[0]=new Array(Math.abs(o-r)+1).join("0")+(a[0]?a[0]:""),o=a[1]?a[1].length:0,r=l[1]?l[1].length:0,(o||r)&&(o>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(o-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(o-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Go(e,n){[e,n]=Sl(e,n);let a="",l=0;for(let o=e.length-1;o>=0;o--){if(e[o]==="."){a="."+a;continue}let r=parseInt(e[o])+parseInt(n[o])+l;a=r%10+a,l=Math.floor(r/10)}return l?l.toString()+a:a}var Ne=(function(e){return e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e})({});function xt(e,n=0,a=Ne.HALF_EVEN){if(a===Ne.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let o=e.split("."),r=o[0],i=o[1];if(n<0){if(n=-n,r.length<=n)return"0";{let s=r.substr(0,r.length-n);return e=s+"."+r.substr(r.length-n)+i,s=xt(e,0,a),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return r.length,Zo(o[1],r,l,a)?(l?"-":"")+kl(r):(l?"-":"")+r;if(o[1]){if(o[1].length<n)return(l?"-":"")+r+"."+o[1]+new Array(n-o[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");i=o[1].substring(0,n);let c=o[1].substring(n);return c&&Zo(c,i,l,a)&&(i=kl(i),i.length>n)?(l?"-":"")+kl(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}function Zo(e,n,a,l){if(!e||e===new Array(e.length+1).join("0")||l===Ne.DOWN||!a&&l===Ne.FLOOR||a&&l===Ne.CEILING)return!1;if(l===Ne.UP||a&&l===Ne.FLOOR||!a&&l===Ne.CEILING)return!0;let o="5"+new Array(e.length).join("0");if(e>o)return!0;if(e<o)return!1;switch(l){case Ne.HALF_DOWN:return!1;case Ne.HALF_UP:return!0;case Ne.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function kl(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,l="";for(let o=a;o>=0;o--){let r=parseInt(e[o])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function wl(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=Pt(e),n=Pt(n);let l=0,o=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(o=n.length-n.indexOf(".")-1);let r=l+o;if(e=Pt(e.replace(".","")),n=Pt(n.replace(".","")),e.length<n.length){let u=e;e=n,n=u}if(n=="0")return"0";let i=n.length,c=0,s=[],d=i-1,h="";for(let u=0;u<i;u++)s[u]=e.length-1;for(let u=0;u<2*e.length;u++){let g=0;for(let S=n.length-1;S>=d&&S>=0;S--)s[S]>-1&&s[S]<e.length&&(g+=parseInt(e[s[S]--])*parseInt(n[S]));g+=c,c=Math.floor(g/10),h=g%10+h,d--}return h=Pt(ts(h,r)),a==1&&(h="-"+h),h}function ts(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function Pt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Cl(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var o=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ae(n.replace(".","")),o>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ae(e+new Array(o+1).join("0"));else if(o>d)e=e.replace(".",""),e=Ae(e+new Array(o-d+1).join("0"));else if(o<d){e=e.replace(".","");let h=e.length-d+o;e=Ae(e.substring(0,h)+"."+e.substring(h))}else o==d&&(e=Ae(e.replace(".","")))}let r=0,i=n.length,c="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(d+=i-s.length,s=s+new Array(i-s.length+1).join("0")),r=d,c="0."+new Array(d).join("0")}for(a=a+2;r<=a;){let d=0;for(;parseInt(s)>=parseInt(n);)s=cn(s,"-"+n),d++;c+=d,e?(e[0]=="."&&(c+=".",r++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(r||(c+="."),r++,s=s+"0")}return(l==1?"-":"")+Ae(xt(c,a-2))}function Nl(e,n){return e=e.toString(),n=n.toString(),n=Al(n),cn(e,n)}function Al(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function _o(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Jo(e),Jo(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Nl(e,wl(n,xt(Cl(e,n),0,Ne.FLOOR)));return a+l}function Jo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function er(e,n){let a=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),a=!0),[e,n]=Sl(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?a?-1:1:a?1:-1;return 0}var Mt=class he{value;static RoundingModes=Ne;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,l]=n.split(/[eE]/);a=Ae(a);let o="";a[0]=="-"&&(o="-",a=a.substring(1)),a.indexOf(".")>=0?(l=parseInt(l)+a.indexOf("."),a=a.replace(".","")):l=parseInt(l)+a.length,a.length<l?n=o+a+new Array(l-a.length+1).join("0"):a.length>=l&&l>0?n=o+Ae(a.substring(0,l))+(a.length>l?"."+a.substring(l):""):n=o+"0."+new Array(-l+1).join("0")+a}return n}constructor(n="0"){this.value=he.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,l){if(!(a||l))a=3,l=",";else if(!(a&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=he.validate(n);let o=n.charAt(0)=="-";o&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",c=r;c>0;)c<a?(a=c,c=0):c-=a,i=n.substring(c,c+a)+(c<r-a&&c>=0?l:"")+i;return(o?"-":"")+i+n.substring(r)}getPrettyValue(n,a){return he.getPrettyValue(this.value,n,a)}static round(n,a=0,l=Ne.HALF_EVEN){if(n=he.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return xt(n,a,l)}round(n=0,a=Ne.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new he(xt(this.value,n,a))}static floor(n){return n=he.validate(n),n.indexOf(".")===-1?n:he.round(n,0,Ne.FLOOR)}floor(){return this.value.indexOf(".")===-1?new he(this.value):new he(this.value).round(0,Ne.FLOOR)}static ceil(n){return n=he.validate(n),n.indexOf(".")===-1?n:he.round(n,0,Ne.CEILING)}ceil(){return this.value.indexOf(".")===-1?new he(this.value):new he(this.value).round(0,Ne.CEILING)}static add(n,a){return n=he.validate(n),a=he.validate(a),cn(n,a)}add(n){return new he(cn(this.value,n.getValue()))}static subtract(n,a){return n=he.validate(n),a=he.validate(a),Nl(n,a)}subtract(n){return new he(Nl(this.value,n.getValue()))}static multiply(n,a){return n=he.validate(n),a=he.validate(a),wl(n,a)}multiply(n){return new he(wl(this.value,n.getValue()))}static divide(n,a,l){return n=he.validate(n),a=he.validate(a),Cl(n,a,l)}divide(n,a){return new he(Cl(this.value,n.getValue(),a))}static modulus(n,a){return n=he.validate(n),a=he.validate(a),_o(n,a)}modulus(n){return new he(_o(this.value,n.getValue()))}static compareTo(n,a){return n=he.validate(n),a=he.validate(a),er(n,a)}compareTo(n){return er(this.value,n.getValue())}static negate(n){return n=he.validate(n),Al(n)}negate(){return new he(Al(this.value))}};function tr(e,n){return Mt.multiply(`${e}`,`${n}`)}function Bl(e,n,a=8){return Mt.divide(`${e}`,`${n}`,a)}var P2=Mt.RoundingModes;function Tl(e,n){return e=`${e}`,n=`${n}`,Mt.compareTo(e,n)}function nr(e){return Mt.negate(e)}function un(e,n=-1,a=!1,l=3,o=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let c=r,s="",d=r.indexOf(".");d!=-1&&(c=r.substring(0,d),s=r.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):a&&n>s.length&&(s=s.padEnd(n,"0")));let h;if(l>0){let u="",g=c.split("").reverse();for(let S=0;S<g.length;S++)u+=g[S]+((S+1)%l==0&&S+1!=g.length?o:"");s.length==0?h=`${i}${u.split("").reverse().join("")}`:h=`${i}${u.split("").reverse().join("")}.${s}`}else s.length==0?h=`${i}${c}`:h=`${i}${c}.${s}`;return h}function lr(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let l=n.replace(/[^\d\.-]/g,"");return`${a}${l}`}var Ze=typeof window<"u",je=Ge;function Me(e){return e==null}var dn=Array.isArray,ns=e=>mn(e)==="[object Map]",ls=e=>mn(e)==="[object Set]",We=e=>e instanceof Date,fn=e=>typeof e=="function",ar=e=>typeof e=="string",as=e=>typeof e=="symbol",Ve=e=>e!==null&&typeof e=="object",dt=e=>Ve(e)&&fn(e.then)&&fn(e.catch),or=Object.prototype.toString,mn=e=>or.call(e),os=e=>mn(e)==="[object Object]",rr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function rs(e){return e.__esModule||rr&&e[Symbol.toStringTag]==="Module"}var is=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ft(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,l=e.length,o=!1;for(typeof n=="boolean"&&(o=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<l;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let i in r){let c=n[i],s=r[i];if(c!==s)if(o===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=c&&Array.isArray(c)?c:[]:d=c&&typeof c=="object"?c:{},n[i]=ft(o,d,s)}else s!==void 0&&(n[i]=s)}}return n}var Vl=is?Promise.resolve():null;function ss(e,...n){Vl!==null?n&&n.length>0?Vl.then(()=>{e(n)}):Vl.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ke(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function de(e){return typeof e=="number"?e:Number(e)}var cs={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function mt(e){let n=Object.prototype.toString.call(e);return e==null?String(e):cs[n]||"object"}function ir(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const a=window.getComputedStyle(n);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!0;n=n.parentElement}return!1}function $l(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let n=e.parentElement;for(;n;){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function sr(e){return e&&typeof e=="object"&&"setInterval"in e}function cr(e){let n=!!e&&"length"in e&&e.length,a=mt(e);return a==="function"||sr(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function ur(e,n){let a=+n.length,l=0,o=e.length;for(;l<a;l++)e[o++]=n[l];return e.length=o,e}function us(e,n=[]){let a=n;return e!=null&&(cr(Object(e))?ur(a,typeof e=="string"?[e]:e):a.push(e)),a}function $e(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=mt(e);if(a!==mt(n))return!1;if(a==="object"){let l=Object.keys(e),o=Object.keys(n);if(l.length!==o.length)return!1;for(let r=0;r<l.length;r++){let i=l[r],c=e[i],s=n[i];if(!$e(c,s))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let o=e[l],r=n[l];if(!$e(o,r))return!1}return!0}return!1}function El(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var fe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function hn(e){return fe(e)?!1:(e.charAt(0)=="-"&&(e=e.substring(1)),fe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function dr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function fr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function mr(e,n,a){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(a,"")}function Dl(e,n=!0,a=!0){n?e=mr(e,".",/\./g):e=e.replace(/\./g,""),a?e=mr(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function ds(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if($e(e,a))return!0}):n.indexOf(e)}function fs(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(l=>{if($e(e,l))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function we(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ye(e,...n){const a={};return n.forEach(l=>{for(const o in l)a[o]=e[o]}),a}function _e(e,...n){const a=[];n.forEach(o=>{Reflect.apply([].push,a,Reflect.ownKeys(o))});const l={};for(const o in e)a.includes(o)||(l[o]=e[o]);return l}var ms=(e,n,a)=>{const l=Object.assign({},e),o=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{o.hasOwnProperty(r)?typeof o[r]=="string"&&(l[r]=n[o[r]]):n[r]&&(l[r]=n[r])}),l):e};function Il(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var rt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Ye=(e,n,a)=>Math.min(Math.max(e,n),a);function pn(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function hs(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var Ce=Symbol.for("BroadcastKey"),ql=class{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(e,n,a){this.parent=e,this.proxy=n,this.name=a,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(a=>e===a);n!==-1&&this.children.splice(n,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(e,n,a){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,o={matched:e,action:n,args:a};return this.persistantMessages.set(l,o),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(n=>{e.push(n)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,n){if(!n||n.messagingPolicy==="Once"&&n.resolved===!0)return!1;let a=!1;return!n.name||n.name==="*"||n.name==="+"||El(n.name)&&e&&n.name.test(e)?a=!0:typeof n.name=="function"?a=Reflect.apply(n.name,null,[e]):n.name===e&&(a=!0),a}trigger(e,n,a){let l=null;const o=this.callbacks.get(n);typeof o=="function"&&(l=Reflect.apply(o,this.proxy,[...a]));const r=this.proxy??{};typeof r[n]=="function"&&(l=Reflect.apply(r[n],r,[...a])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(l)}pull(){let e=this.parent;for(;e;){const n=e.getPersistantMessages();Array.isArray(n)&&n.length>0&&n.forEach(a=>{if(this.isMatched(this.name,a.matched))try{this.trigger(a.matched,a.action,a.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...a){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,a)){const r=e.resolve,i=e.uniqueId??"",c=(...s)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...s)};e.resolve=c}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):El(e.name)&&this.name&&e.name.test(this.name)?l=!0:typeof e.name=="function"?l=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(l=!0);const o=[];if(l){const r=this.callbacks.get(n);if(typeof r=="function"){const c=Reflect.apply(r,this.proxy,[...a]);c!=null&&o.push(c)}const i=this.proxy??{};if(typeof i[n]=="function"){const c=Reflect.apply(i[n],i,[...a]);c!=null&&o.push(c)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...o),e.messagingPolicy==="Once")return o}return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...e},n,...a]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,o,[...i])}),o}emitToChildren(e,n,...a){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,a)){const o=e.resolve,r=e.uniqueId??"",i=(...c)=>{this.deletePersistantMessage(r),typeof o=="function"&&o(...c)};e.resolve=i}e.cachePolicy="None"}const l=[];return this.children.forEach(o=>{const r=Reflect.apply(o.emit,o,[{...e},n,...a]);r!=null&&Array.isArray(r)&&Reflect.apply([].push,l,[...r])}),l}on(e,n){this.callbacks.set(e,n)}};function gn(e,n,a,l){const o=new ql(n,e,a);if(l&&typeof l=="object")for(const r in l)o.on(r,l[r]);return o}function ps(e,n,a){const l=a;if(l[Ce])return l[Ce];const o=new ql((0,t.inject)(Ce,null),a,e);if(n&&typeof n=="object")for(const r in n)o.on(r,n[r]);return l[Ce]=o,(0,t.provide)(Ce,o),(0,t.onUnmounted)(()=>{o.destroy(),l[Ce]=void 0}),o}function zt(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[Ce]??(0,t.inject)(Ce,null):(0,t.inject)(Ce,null)}var gs=class{error(e,n){const a=n,l=n||(0,t.hasInjectionContext)()?zt(n):null;l?l.emit({name:"*"},"setErrorTip",e):typeof a.setErrorTip=="function"&&a.setErrorTip(e)}reset(e){const n=e,a=e||(0,t.hasInjectionContext)()?zt(e):null;a?a.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}success(e){const n=e,a=e||(0,t.hasInjectionContext)()?zt(e):null;a?a.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}decorate(e,n,a){Array.isArray(e)||(e=[e]);const l=a,o=a||(0,t.hasInjectionContext)()?zt(a):null,r=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=e.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!r&&i?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):r&&!i&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(a))}getValue(e){return e.modelValue}},Lt=new gs;function ys(e){Lt=e}function bs(e){Lt?Object.assign(Lt,e):Lt=e}function vs(e,n){ot.Schema.setValidator(e,n)}function Ss(e){ot.Schema.deleteValidator(e)}var hr=["blur","clear"];function ks(e){hr=e}function pr(){return hr}var gr=["focus","change","setValue"];function ws(e){gr=e}function yr(){return gr}function Cs(e){ot.Schema.messages(e)}function Rt(...e){const n=[];return e.forEach(a=>{a.forEach(l=>{const o=n.findIndex(r=>r.type===l.type);o!==-1&&n.splice(o,1),n.push(l)})}),n}function yn(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var Le=Symbol("ValidateSchemaKey"),br=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,a){this.parent=e,this.descriptor=n,this.proxy=a,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let e=this.proxy.$attrs;e&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const n=yn(Rt(this.attrRules,this.rules)),a=[];for(let o in e){let r=e[o];if(this.hasValidator(o,!0)){if(r===!1)continue;let c={type:o};r!==null&&typeof r=="object"&&Object.assign(c,r),a.push(c);continue}let i=this.getValidator(o);if(i!==null){let c={type:o,validator:i};a.push(c)}}this.attrRules=yn(a);const l=Rt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(l,n)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...n){const a=this.descriptor.validateHandler;if(a&&typeof a[e]=="function")return Reflect.apply(a[e],a,[...n]);const l=Lt;return l&&typeof l[e]=="function"?Reflect.apply(l[e],l,[...n]):null}decorate(e,n){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,n,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(e,n,a=!1){a?ot.Schema.setValidator(e,n):this.validators[e]=n}getValidator(e){let n=this.validators[e]??null;return n||(n=this.parent?.getValidator(e)??null),n}deleteValidator(e,n=!1){n?ot.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return ot.Schema.hasValidator(e);{let a=Reflect.has(this.validators,e);return!a&&this.parent!==null&&(a=this.parent.hasValidator(e,!1)),a}}setRule(e){const n=Rt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=yn(e):this.rules=yn([e]);const a=Rt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(a,n)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Rt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const a={[`${n}`]:e},l=this.getValue(),o={[`${n}`]:l},r=new ot.Schema(a),i=this.proxy??o;return r.validate(o,{context:i}).then(c=>{if(c.pass)this.success();else{let s="error";Array.isArray(c.errors)&&c.errors.length>0&&(s=c.errors[0].message??s,c.errors=[c.errors[0]],c.errors[0].ref=i),this.error(s)}return c}).catch(c=>{const s=c.message??`${c}`;return this.error(s),c})}}return Promise.resolve({pass:!0})}};function bn(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(o){return o[l]}}}return new br(n,a,e)}var vn=Symbol.for("EventEmitterKey"),vr=class{register=new Map;proxy;constructor(e){this.proxy=e}destroy(){this.proxy=null,this.register.clear()}off(e,n){let a=this.register.get(e);if(a&&Array.isArray(a)){let l=a.findIndex(o=>o===n);l!==-1&&a.splice(l,1)}}on(e,n){let a=this.register.get(e);a||(a=new Array,this.register.set(e,a)),a.push(n)}emit(e,...n){const a=this.register.get(e);a&&a.forEach(l=>{try{Reflect.apply(l,null,[e,...n])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[e,...n])}};function Ie(e,n){let a=null;return function(...l){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...l])},n)}}function Sn(e,n){let a=0;return function(...l){const o=new Date().getTime();o-a<n||(a=o,Reflect.apply(e,null,[...l]))}}function Ns(e,n){const a=Ie((l,o)=>{e=l,o()},n);return(0,t.customRef)((l,o)=>({get(){return l(),e},set(r){a(r,o)}}))}function As(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function xl(e,n,a,l=0,o=!0){let r=n,i=0;if(o){const s=e();if(i++,s||i>a)return}const c=()=>{const s=e();i++,!(s||i>a)&&(r+=l,setTimeout(c,r))};setTimeout(c,r)}var Ee=Symbol("DomainKey"),ht=Symbol("DataItemsKey"),kn=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}_props=(0,t.reactive)({});constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(e,n=[]){for(const a in e){const l=e[a];n.length>0&&n.indexOf(l)!==-1||(this._props[a]=l)}}has(e){if(Reflect.has(this._props,e)){const n=this._props[e];if(n!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,n){this._props[e]=n}get(e,n){if(Reflect.has(this._props,e)){const a=this._props[e];if(a!=null)return a}return this.parent==null?n:this.parent.get(e,n)}getForParent(e,n){return this.parent==null?n:this.parent.get(e,n)}getForSelf(e){return this._props[e]}getAll(e){const n=[];let a=this;for(;a!=null;){if(Reflect.has(a._props,e)){const l=a._props[e];n.push(l)}a=a._parent}return n}},Bs=new kn;function pt(){return Bs}function Je(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[Ee]??(0,t.inject)(Ee,null):(0,t.inject)(Ee,null)}var Pl=Symbol("OriginalDateKey");function Ml(e,n,a=[],l){const o=(0,t.getCurrentInstance)();let r=o?.proxy,i=(0,t.inject)(Ee,null);i===null&&(i=pt());const c=e||n.prop||n.name;let s=new kn(c);s.parent=i;const d=b=>{r[Pl]||g(b),s?.set("modelValue",b)},h=()=>s?.getForSelf("modelValue")??null,u=()=>r[Pl]??null,g=b=>{const k={};ft(!0,k,(0,t.toRaw)(b)),r[Pl]=k};(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,b=>{s?.merge(b,a)},{immediate:!0}):s.merge(n,a),n.modelValue&&g(n.modelValue);const S=(b,k)=>{s?.set(b,k)},w=b=>s?.getForSelf(b)??null;if(r[Ee]=s,(0,t.provide)(Ee,s),o!==null){const b=(0,t.inject)(Ce,null),k=gn(r,b,c,l);s.broadcast=k,r[Ce]=k,(0,t.provide)(Ce,k),r.broadcast=(m,A,...C)=>Reflect.apply(k.emit,k,[m,A,...C]);const f=(0,t.inject)(Le,null),v=bn(r,f,{componentName:""});s.validateSchema=v,r[Le]=v,(0,t.provide)(Le,v),r[ht]=new Map,r.validate=(m=!0)=>{const A=[];let C=null;const y={deep:!1};if(m===!0)C={name:"*"};else if(Array.isArray(m)&&m.length>0){const p=m;C={name:N=>N?p.indexOf(N)!==-1:!1}}else if(m!=null&&typeof m=="object"){const p=m;if(Object.assign(y,p),Array.isArray(p.include)&&p.include.length>0){const N=p.include;C={name:T=>T?N.indexOf(T)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const N=p.exclude;C={name:T=>T?N.indexOf(T)===-1:!1}}else C={name:"*"}}if(C){const p=k?.emitToChildren(C,"validate",y);p&&Reflect.apply([].push,A,p)}return A.length==1?A[0]:A.length>1?Promise.all(A).then(p=>{let N=[];return p.forEach(T=>{T.pass===!1&&Array.isArray(T.errors)&&(N=[...N,...T.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(m,A=!0,C=!1)=>{if(C===!0){Reflect.ownKeys(m).forEach(y=>{let p=String(y);const N={componentName:"",fieldName:p,pureDataValidate:!0};if(s){const T=kr(s,p,N,k,v);r[ht].set(p,T);const V=m[p];V&&T.validateSchema.setRule(V)}});return}if(A){const y=Reflect.ownKeys(m);k?.emitToChildren({name:p=>y.includes(p),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",m,!1)}},r.clearValidate=(m=!0)=>{let A=null;if(m===!0)A={name:"*"};else if(Array.isArray(m)&&m.length>0){const C=m;A={name:y=>y?C.indexOf(y)!==-1:!1}}else if(m!=null&&typeof m=="object"){const C=m;if(Array.isArray(C.include)&&C.include.length>0){const y=C.include;A={name:p=>p?y.indexOf(p)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const y=C.exclude;A={name:p=>p?y.indexOf(p)===-1:!1}}else A={name:"*"}}A&&k?.emitToChildren(A,"clearValidate",!1)},r.resetFields=m=>{const A=h();if(!A)return;const C={};if(ft(!0,C,u()??{}),Array.isArray(m))m.forEach(y=>{A[y]=C[y]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(y=>{A[y]=C[y]});else if(m&&Array.isArray(m.exclude)){let y=m.exclude??[];Reflect.ownKeys(C).forEach(p=>{y.includes(p)||(A[p]=C[p])})}else Object.assign(A,C);r.clearValidate(m)},r.setModelValue=(m,A)=>{if(!A||A===c)d(m);else{const C={name:A,messagingPolicy:"Once"};k?.emitToChildren(C,"setModelValue",m)}},r.getModelValue=()=>h(),r.setDomainProperty=(m,A)=>{S(m,A)},r.getDomainProperty=m=>w(m),setTimeout(function(){k?.pull()},0)}return(0,t.onUnmounted)(function(){s?.validateSchema&&(s.validateSchema.destroy(),r[Le]=void 0,(0,t.provide)(Le,null)),s?.broadcast&&(s?.broadcast?.destroy(),r[Ce]=void 0,(0,t.provide)(Ce,null)),s?.destroy(),r[Ee]=void 0,(0,t.provide)(Ee,null),r[ht]&&(r[ht].clear(),r[ht]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,s=null,r=null}),s}function Sr(e,n,a=[]){let l=(0,t.getCurrentInstance)()?.proxy,o=(0,t.inject)(Ee,null);o===null&&(o=pt());let r=new kn(e||n.prop||n.name);return r.parent=o,(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,i=>{r?.merge(i,a)},{immediate:!0}):r.merge(n,a),l[Ee]=r,(0,t.provide)(Ee,r),(0,t.onUnmounted)(()=>{r?.destroy(),l[Ee]=void 0,(0,t.provide)(Ee,null),r=null,l=null}),r}function Be(e,n,a){const l=(0,t.getCurrentInstance)()?.proxy,o=n??"";let r=gn(l,(0,t.inject)(Ce,null),o,a);l[Ce]=r,(0,t.provide)(Ce,r),l.broadcast=(h,u,...g)=>r?Reflect.apply(r.emit,r,[h,u,...g]):null;const i=(0,t.inject)(Le,null);e.fieldName=e.fieldName??o;let c=bn(l,i,e);l[Le]=c,(0,t.provide)(Le,c),l.validate=(h=null)=>{if(!c)return Promise.resolve({pass:!0});const u=[];let g=!1,S=!1;if(Array.isArray(h)&&h.indexOf(o)!==-1)S=!0,g=!0;else if(h&&typeof h=="object"){const w=h,b=w.ignoreDisabled??!0,k=w.ignoreReadonly??!0,f=w.ignoreHidden??!0;b===!0&&e.disabled===!0||k===!0&&e.readonly===!0||f===!0&&ir(l.$el)?S=!1:(Array.isArray(w.include)&&w.include.indexOf(o)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(o),S=!0),g=w.deep??!1}else typeof h=="boolean"&&(g=h),S=!0;if(S){const w=c?.validate();u.push(w)}if(g){let w=null;const b={deep:!1};if(h===!0)w={name:"*"};else if(Array.isArray(h)&&h.length>0){const k=h;w={name:f=>f?k.indexOf(f)!==-1:!1}}else if(h!=null&&typeof h=="object"){const k=h;if(Object.assign(b,k),Array.isArray(k.include)&&k.include.length>0){const f=k.include;w={name:v=>v?f.indexOf(v)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;w={name:v=>v?f.indexOf(v)===-1:!1}}else w={name:"*"}}if(w&&r){const k=r.emitToChildren(w,"validate",b);Reflect.apply([].push,u,k)}}return u.length==1?u[0]:u.length>1?Promise.all(u).then(w=>{let b=[];return w.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(b=[...b,...k.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=h=>c?.setRule(h),l.setNameValidateRules=(h,u=!1)=>{const g=h[o];g&&c?.setRule(g),u&&r&&r.emitToChildren({name:S=>Reflect.ownKeys(h).includes(S)},"setNameValidateRules",h,!1)},l.clearValidate=(h=null)=>{(!Array.isArray(h)||h.indexOf(n??"")!==-1)&&c?.clear();let u=null;if(h===!0)u={name:"*"};else if(Array.isArray(h)&&h.length>0){const g=h;u={name:S=>S?g.indexOf(S)!==-1:!1}}else if(h!=null&&typeof h=="object"){const g=h;if(Array.isArray(g.include)&&g.include.length>0){const S=g.include;u={name:w=>w?S.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const S=g.exclude;u={name:w=>w?S.indexOf(w)===-1:!1}}else u={name:"*"}}u&&r&&r.emitToChildren(u,"clearValidate",!1)};let s=new vr(l);l[vn]=s;const d=Ie((h="validate")=>{c&&(h==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:pr()).forEach(h=>{s&&s.on(h,u=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:yr()).forEach(h=>{s&&s.on(h,u=>{d("reset")})}),setTimeout(function(){r?.pull()},0),(0,t.onUnmounted)(()=>{r?.destroy(),l[Ce]=void 0,(0,t.provide)(Ce,null),r=null,c?.destroy(),l[Le]=void 0,(0,t.provide)(Le,null),c=null,s?.destroy(),l[vn]=void 0,s=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:r,validateSchema:c,emitEvent:(h,...u)=>{s&&Reflect.apply(s.emit,s,[h,...u])},onEvent:(h,u)=>{s&&Reflect.apply(s.on,s,[u])},offEvent:(h,u)=>{s&&Reflect.apply(s.off,s,[u])}}}function kr(e,n,a,l,o){const r={},i=n??"",c={getValue(){const h=e.getForSelf("modelValue");return h?h[i]:null},isExist(){const h=e.getForSelf("modelValue");return h?Reflect.has(h,i):!1}};a.fieldName=i,a.validateHandler={getValue(h){return c.getValue()}};let s=bn({},o,a);r.validate=(h=null)=>{if(!c.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const u=[];let g=!1,S=!1;if(Array.isArray(h)&&h.indexOf(i)!==-1)S=!0,g=!0;else if(h&&typeof h=="object"){const w=h;Array.isArray(w.include)&&w.include.indexOf(i)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(i),S=!0,g=w.deep??!1}else typeof h=="boolean"&&(g=h),S=!0;if(S&&s){const w=s.validate();u.push(w)}if(g){let w=null;const b={deep:!1};if(h===!0)w={name:"*"};else if(Array.isArray(h)&&h.length>0){const k=h;w={name:f=>f?k.indexOf(f)!==-1:!1}}else if(h!=null&&typeof h=="object"){const k=h;if(Object.assign(b,k),Array.isArray(k.include)&&k.include.length>0){const f=k.include;w={name:v=>v?f.indexOf(v)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;w={name:v=>v?f.indexOf(v)===-1:!1}}else w={name:"*"}}if(w&&d){const k=d.emitToChildren(w,"validate",b);Reflect.apply([].push,u,k)}}return u.length==1?u[0]:u.length>1?Promise.all(u).then(w=>{let b=[];return w.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(b=[...b,...k.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=h=>s?.setRule(h),r.setNameValidateRules=h=>{const u=h[i];u&&s?.setRule(u)};let d=gn(null,l,i,r);return(0,t.onUnmounted)(()=>{s=null,d=null}),{broadcast:d,validateSchema:s}}function gt(){let e=(0,t.getCurrentInstance)()?.proxy,n=new vr(e);return e[vn]=n,(0,t.onUnmounted)(()=>{n?.destroy(),e[vn]=void 0,n=null,e=null}),{emitEvent:(a,...l)=>{n&&Reflect.apply(n.emit,n,[a,...l])},onEvent:(a,l)=>{n&&Reflect.apply(n.on,n,[l])},offEvent:(a,l)=>{n&&Reflect.apply(n.off,n,[l])}}}var me=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ce(e)}px`:"",Ts=me;function ce(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let o=Number(e.substring(0,a)),r=1;if(Ze){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),c=i.indexOf("px");c>0&&(r=Number(i.substring(0,c)))}return o*=r,o}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))*n;const l=Number(e);return isNaN(l)?0:l}function Vs(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}var et="PageStateKey";function Fe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ce(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ce(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ce(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ce(e.right))),n}function zl(e,n,a={},l=!0,o=-1,r=-1,i=0,c=0){if(e.headerHeight=ce(a.headerHeight??n.headerHeight??-1),e.headerPadding=Fe(a.headerPadding??n.headerPadding),e.footerHeight=ce(a.footerHeight??n.footerHeight??-1),e.footerPadding=Fe(a.footerPadding??n.footerPadding),e.contentPadding=Fe(a.contentPadding??n.contentPadding),l){const s=a.height??n.height;s?e.height=ce(s,r):e.height=ce(r)-ce(i,r)-ce(c,r),e.width=ce(a.width??n.width??0,o)}}function wr(e,n={}){const a={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},o=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});o&&(l.safeAreaTop=ce(o.top),l.safeAreaBottom=ce(o.bottom),l.safeAreaLeft=ce(o.left),l.safeAreaRight=ce(o.right));const r=e.get("pageLayout");if(!r)return null;zl(l,r,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const i=(0,t.reactive)(l),c=e.getForParent(et);c&&(l.height=An(e,c),l.width=Bn(e,c),(0,t.watch)([()=>An(e,c),()=>Bn(e,c)],([d,h])=>{i.height=d,i.width=h}));const s=!c;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([d,h,u=-1,g=-1,S=0,w=0])=>{zl(i,h,n,s,u,g,S,w)}),e.set(et,i),i}function wn(e){return e.get(et)}function Cn(e,n){if(n=n??e.get(et),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function Nn(e,n){if(n=n??e.get(et),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function An(e,n){if(n=n??e.get(et),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=Cn(e,n),l=Nn(e,n),o=ce(n.contentPadding.top??0),r=ce(n.contentPadding.bottom??0);return n.height-a-l-o-r}return 0}function Bn(e,n){if(n=n??e.get(et),n){const a=ce(n.contentPadding.left??0),l=ce(n.contentPadding.right??0);return n.contentInnerWidth??n.width-a-l}return 0}function $s(e){return!!e.getForParent(et)}var Ll=Symbol.for("InnerPageScopeKey");function Cr(e){(0,t.provide)(Ll,e)}function Ft(e=!1){return(0,t.inject)(Ll,e)}var Rl=Symbol.for("AbstractPageScopeKey");function Nr(e){(0,t.provide)(Rl,e)}function Ot(e=!1){return(0,t.inject)(Rl,e)}function Ar(e=!1){const n=Ot(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.headerBar??e:e}function Br(e=!1){const n=Ot(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.footerBar??e:e}function Tr(e=!1){const n=Ot(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.content??e:e}var tt=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function Tn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Te(e,n,a=tt.Near,l){const o=Je();return o==null?e:a===tt.Parent?(0,t.computed)(()=>{const r=o.getAll(n);for(let c=r.length-1;c>=0;c--){const s=r[c];if(Tn(s,l))return s}const i=e.value;return Tn(i,l)?i:null}):(0,t.computed)(()=>{const r=e.value;if(Tn(r,l))return r;const i=o.getAll(n);for(let c=0;c<i.length;c++){const s=i[c];if(Tn(s,l))return s}return null})}function Vn(e){return Te(e,"readonly",tt.Near)}function $n(e){return Te(e,"disabled",tt.Near)}function Vr(e){return Te(e,"browse",tt.Near)}function qe(e){const n=(0,t.ref)(null),a=$n((0,t.computed)(()=>n.value??e.disabled)),l=(0,t.ref)(null);return{innerDisabled:n,disabled:a,innerReadonly:l,readonly:Vn((0,t.computed)(()=>l.value??e.readonly)),browse:Vr((0,t.computed)(()=>e.browse))}}function xe(e,n="modelValue",a=null,l){const o=(0,t.toRef)(e,n);let r=o.value;typeof a=="function"&&(r=a(o.value));const i=(0,t.ref)(r);return(0,t.watch)(o,c=>{if(typeof a=="function"){const s=a(c);s!==i.value&&(i.value=s,l&&l("setValue",s))}else c!==i.value&&(i.value=c,l&&l("setValue",c))}),i}var $r=new Map,En=new Map,Fl=null;function Es(e){Fl=e}function Er(e,n,a){if(a){let l=En.get(a);l||(l=new Map,En.set(a,l)),l.set(e,n)}else $r.set(e,n)}function nt(e,n,a){!a&&Fl&&(a=Fl(e)??void 0);let l=null;if(a){let o=En.get(a);o&&(l=o.get(n))}return l||(l=$r.get(n)),l}function Ds(e,n){for(let a in e){const l=e[a];Er(a,l,n)}}function Is(e){En.delete(e)}function qs(){return{top:0,left:0,bottom:0,right:0}}function xs(){return Ze?{rootWidth:document.documentElement.clientWidth||document.body.clientWidth,rootHeight:document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{headerHeight:-1,footerHeight:-1}}}function Ps(e,n){let a=e;if(n.componentPrefix){const l=a.indexOf("-");l!==-1?a=`${n.componentPrefix}${a.slice(l)}`:a=`${n.componentPrefix}-${a}`}return pn(a)}var Ms=class{packages;_version;get version(){return this._version}constructor(e,n){this.packages=e,this._version=n}install(e,n){n?.install!==!1&&this.packages.forEach(l=>{if(l.install)e.use(l,n);else if(l.name){const o=Ps(l.name,n);e.component(o,l)}});const a=pt();if(n.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l={...n},o=Ie(()=>{const r={...l};this.updateLayout(r,a)},120);new window.ResizeObserver(o).observe(window.document.body)}this.updateLayout(n,a)}updateLayout(e,n){const a=e.headerBarHeight??0,l=e.footerBarHeight??0,o=ft({},qs(),e.safeAreaInset),r=xs(),i=ft({},r.pageLayout,e.pageLayout);n=n??pt(),n.set("safeAreaInset",o),n.set("headerBarHeight",a),n.set("footerBarHeight",l),n.set("pageLayout",i),n.set("rootWidth",r.rootWidth),n.set("rootHeight",r.rootHeight);const c=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const s in e)c.indexOf(s)===-1&&n.set(s,e[s])}setScopeGetter(e){Es(e)}setAPI(e,n,a){Er(e,n,a)}getAPI(e,n,a){return nt(e,n,a)}batchSetAPI(e,n){Ds(e,n)}clearScopeAPI(e){Is(e)}getRootDomain(){return pt()}};function ee(e){const n=`fox-${e}`,a=pn(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=a,l.install=(o,r)=>{let i=l.name;r?.componentPrefix&&(i=`${r.componentPrefix}-${l.baseName}`,i=pn(i)),o.component(i,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var zs=(e,n)=>{let a=document.body;const l=e.teleport||"body";l!="body"&&(ar(l)?a=document.querySelector(l):a=e.teleport);const o=document.createElement("view");o.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let r={};fn(n.wrapper)?r=n.wrapper(a,o):r=n.wrapper;const i=(0,t.createApp)(r,e),c=n.components;return c&&c.forEach(s=>{i.use(s)}),a.appendChild(o),{instance:i.mount(o),unmount:()=>{i.unmount(),a.removeChild(o)}}},Dr=(e,n)=>e?(0,t.h)(e,n):"";function be(e,n=null){if(n||(n=(0,t.getCurrentInstance)()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}var ge={browse:{type:[String],required:!1,default:()=>null},disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},ve={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Ir={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},qr={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!1},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},xr=[];for(const e in qr)xr.push(e);var Ls={name:{type:String,required:!1,default:()=>""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Rs=(e,n)=>({inheritAttrs:!0,props:{...ge,...Ir,...Ls},setup(a,{slots:l}){const o=!!Ot(!1),r=Ft(!1),i=Ml(a.name,a);if(i){const u=wr(i,a);be({getPageContentHeight:()=>An(i,u),getPageContentWidth:()=>Bn(i,u),getPageHeaderHeight:()=>Cn(i,u),getPageFooterHeight:()=>Nn(i,u)}),u&&r&&(u.contentHeight="100%")}const c=(0,t.computed)(()=>({[e]:!0,"is-inner":r})),s=(0,t.computed)(()=>({})),d=(0,t.getCurrentInstance)(),h=(u,g=!1)=>{const S=d?.proxy;S&&typeof S.setNameValidateRules=="function"&&S.setNameValidateRules(u,!0,g)};return(0,t.watch)([()=>a.rules,()=>a.pureDataRules],([u,g],[S,w])=>{if(u&&S){const b=(0,t.toRaw)(S),k=(0,t.toRaw)(u),f=k?Reflect.ownKeys(k):[];(b?Reflect.ownKeys(b):[]).forEach(v=>{f.includes(v)||(k[v]=[])}),h(k)}if(g&&w){const b=(0,t.toRaw)(w),k=(0,t.toRaw)(g),f=k?Reflect.ownKeys(k):[];(b?Reflect.ownKeys(b):[]).forEach(v=>{f.includes(v)||(k[v]=[])}),h(k,!0)}},{deep:!0}),(0,t.onMounted)(()=>{a.rules&&h((0,t.toRaw)(a.rules)),a.pureDataRules&&h((0,t.toRaw)(a.pureDataRules),!0)}),()=>o?l?.default?.():(0,t.h)("div",{class:c.value,style:s.value},[l?.default?.()])}}),{componentName:Fs,create:Os,scope:Ks}=ee("page"),Us=Os(Rs(Fs,Ks)),Ol=Us;function Kl(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Dn(e){const n=(0,t.unref)(e),a=window.getComputedStyle(n,null),l=parseFloat(a.getPropertyValue("padding-left")),o=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),i=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-o,height:n.clientHeight-r-i}}var Pr={headerbar:{},radio:{},checkbox:{}};function Hs(e){Object.assign(Pr,e)}function In(){return Pr}var js=(e,n,a,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(o,r){const i=Ar(!1),c=Ft(!1),s=i?null:Je(),d=s?wn(s):null,h=In(),u=e,g=(0,t.computed)(()=>{const D={[u]:!0,[`${u}--border`]:o.border,[`${u}--fixed`]:o.fixed};return c||(D[`${u}--safe-area-inset-top`]=o.safeAreaInsetTop),D}),S=(0,t.computed)(()=>({[`${u}__inner`]:!0,[`${u}__inner--${o.align}`]:!0})),w=Me(o.height)?null:ce(o.height),b=(0,t.computed)(()=>{const D={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i)return D;if(s&&d){const M=Fe(o.padding??d.headerPadding);if(Object.assign(D,M),Me(w)||(d.headerHeight=w),D.height=d.headerHeight,D.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,D.safeAreaTop>0){const z=ce(M.top??0);D.top=D.safeAreaTop+z,D.height&&D.height>0&&(D.height=D.height+D.safeAreaTop)}return D}if(Me(w)||(D.height=w),o.padding){const M=Fe(o.padding);Object.assign(D,M)}return D}),k=(0,t.ref)(null),f=()=>d&&k.value&&!$l(k.value)?(l||(d.headerAllHeight=Kl(k.value).height),d.headerMounted=!0,!0):!1,v=Ie(f,120);let m=null;(0,t.onMounted)(()=>{i||d&&(xl(f,50,5,50,!0),window.ResizeObserver&&k.value&&(m=new window.ResizeObserver(v),m.observe(k.value)))}),(0,t.onUnmounted)(()=>{i||d&&(d.headerMounted=!1,m&&(m.disconnect(),m=null))});const A=(0,t.computed)(()=>{const D={};return i||(b.value.height!==null&&b.value.height!==void 0&&(D.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(D.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(D.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(D.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(D.paddingBottom=`${b.value.bottom}px`)),D}),C=(0,t.computed)(()=>{const D=b.value?.height;return Me(D)||D<0?!0:D>0});function y(){r.emit("back")}function p(){r.emit("click-title")}function N(){r.emit("click-right")}function T(){r.emit("click-right-text")}const V=()=>{if(!o.leftShow)return null;const D=[];if(r.slots.left)D.push(r.slots.left());else{if(r.slots.leftIcon){const M=(0,t.h)("view",{class:"left-icon",onClick:y},[r.slots.leftIcon()]);D.push(M)}else{const M=o.leftIcon??h.headerbar.Left??a,z=(0,t.h)("view",{class:"left-icon",onClick:y},[(0,t.h)(M)]);D.push(z)}if(o.leftText){const M=(0,t.h)("view",{class:"left-text",onClick:y},[o.leftText]);D.push(M)}}return D.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},D)},$=()=>{if(!o.rightShow)return null;const D=[];if(r.slots.right)D.push(r.slots.right());else{if(o.rightText){const M=(0,t.h)("view",{class:"right-text",onClick:T},[o.rightText]);D.push(M)}if(r.slots.rightIcon){const M=(0,t.h)("view",{class:"right-icon",onClick:N},[r.slots.rightIcon()]);D.push(M)}else if(o.rightIcon){const M=(0,t.h)("view",{class:"right-icon",onClick:N},[(0,t.h)(o.rightIcon)]);D.push(M)}}return D.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},D)},H=()=>{if(!o.titleShow)return null;const D=[],M=r.slots.default?r.slots.default():null;if(M)D.push(M);else{if(o.title){const z=(0,t.h)("view",{class:"title-text"},[o.title]);D.push(z)}if(r.slots.titleIcon){const z=(0,t.h)("view",{class:"title-icon",onClick:p},[r.slots.titleIcon()]);D.push(z)}else if(o.titleIcon){const z=(0,t.h)("view",{class:"title-icon",onClick:p},[(0,t.h)(o.titleIcon)]);D.push(z)}}return D.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},D)},X=()=>{const D=[],M=r.slots.bottom?r.slots.bottom():null;return M&&D.push(M),D.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},D)};return()=>{if(i||!C.value)return null;const D=[];if(r.slots.all)D.push(r.slots.all());else{const M=[],z=V();z&&M.push(z);const P=H();P&&M.push(P);const K=$();if(K&&M.push(K),M.length>0){const x=(0,t.h)("view",{class:S.value},M);D.push(x)}const j=X();j&&D.push(j)}return D.length===0?null:(0,t.h)("view",{class:g.value,style:A.value,ref:k},D)}}}),{componentName:Ws,create:Ys,scope:Xs}=ee("header-bar"),Qs=Ys(js(Ws,Xs,oe.Left,!1)),Ul=Qs;function Gs(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,o){const r=Br(!1),i=Ft(!1),c=r?null:Je(),s=c?wn(c):null,d=e,h=(0,t.computed)(()=>{const m={[d]:!0,[`${d}--${l.align}`]:!0,[`${d}--border`]:l.border,[`${d}--fixed`]:l.fixed};return i||(m[`${d}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),m}),u=Me(l.height)?null:ce(l.height),g=(0,t.computed)(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r)return m;if(c&&s){const A=Fe(l.padding??s.footerPadding);if(Object.assign(m,A),Me(u)||(s.footerHeight=u),m.height=s.footerHeight,m.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,m.safeAreaBottom>0){const C=ce(A.bottom??0);m.bottom=m.safeAreaBottom+C,m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)}return m}if(Me(u)||(m.height=u),l.padding){const A=Fe(l.padding);Object.assign(m,A)}return m}),S=(0,t.computed)(()=>{const m=g.value?.height;return Me(m)||m<0?!0:m>0}),w=(0,t.ref)(null),b=()=>s&&w.value&&!$l(w.value)?(a||(s.footerAllHeight=Kl(w.value).height),s.footerMounted=!0,!0):!1,k=Ie(b,120);let f=null;(0,t.onMounted)(()=>{r||s&&(xl(b,50,5,50,!0),window.ResizeObserver&&(f=new window.ResizeObserver(k),f.observe(w.value)))}),(0,t.onUnmounted)(()=>{r||s&&(s.footerMounted=!1,f&&(f.disconnect(),f=null))});const v=(0,t.computed)(()=>{const m={};return r||(g.value.height!==null&&g.value.height!==void 0&&(m.height=me(g.value.height)),g.value.top!==null&&g.value.top!==void 0&&(m.paddingTop=me(g.value.top)),g.value.left!==null&&g.value.left!==void 0&&(m.paddingLeft=me(g.value.left)),g.value.right!==null&&g.value.right!==void 0&&(m.paddingRight=me(g.value.right)),g.value.bottom!==null&&g.value.bottom!==void 0&&(m.paddingBottom=me(g.value.bottom))),m});return()=>{if(r||!S.value)return null;const m=o.slots.default?o.slots.default():[];return(0,t.h)("view",{ref:w,class:h.value,style:v.value},m)}}}}var{componentName:Zs,create:_s,scope:Js}=ee("footer-bar"),ec=_s(Gs(Zs,Js,!1)),Hl=ec;function tc(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:l,attrs:o}){const r=Tr(!1),i=Ft(!1),c=r?null:Je(),s=(0,t.computed)(()=>({[e]:!0})),d=c?wn(c):null,h=(0,t.computed)(()=>{const b={};if(r)return b;if(c&&d){if(a.padding){const p=Fe(a.padding);Object.assign(d.contentPadding,p)}const k=Cn(c,d),f=Nn(c,d);let v="";d.contentHeight?v=`${d.contentHeight}`:v=`${d.height}px`,console.debug("[content]page height:",v),console.debug("[content]header height:",k),console.debug("[content]footer height:",f),console.debug("[content]padding:",d.contentPadding),b.height=v;let m=ce((d&&d.contentPadding&&d.contentPadding.top)??-1);(m>=0||k>0)&&(m=m<0?0:m,b.paddingTop=`${k+m}px`);let A=ce((d&&d.contentPadding&&d.contentPadding.bottom)??-1);(A>=0||f>0)&&(A=A<0?0:A,b.paddingBottom=`${f+A}px`);const C=ce((d&&d.contentPadding&&d.contentPadding.left)??-1);C>=0&&(b.paddingLeft=`${C}px`);const y=ce((d&&d.contentPadding&&d.contentPadding.right)??-1);return y>=0&&(b.paddingRight=`${y}px`),b}if(a.padding){const k=Fe(a.padding);k.left&&(b.paddingLeft=`${k.left}px`),k.top&&(b.paddingTop=`${k.top}px`),k.right&&(b.paddingRight=`${k.right}px`),k.bottom&&(b.paddingBottom=`${k.bottom}px`)}return b}),u=(0,t.ref)(null),g=()=>{if(d&&u.value){const b=Dn(u.value);d.contentInnerHeight=b.height,d.contentInnerWidth=b.width}},S=Ie(g,120);let w=null;return(0,t.onMounted)(()=>{i||r||(requestAnimationFrame(g),window.ResizeObserver&&u.value&&(w=new window.ResizeObserver(S),w.observe(u.value)))}),(0,t.onUnmounted)(()=>{i||r||w&&(w.disconnect(),w=null)}),()=>r?l.default?.():(0,t.h)(a.tag??"view",{...o,ref:u,class:s.value,style:h.value},l)}}}var{componentName:nc,create:lc,scope:ac}=ee("content"),oc=lc(tc(nc,ac)),jl=oc,yt="GroupStateKey",Mr=Symbol.for("GroupScopeKey");function qn(){return(0,t.inject)(Mr,!1)}function xn(e=!0){(0,t.provide)(Mr,e)}function rc(e,n={}){Reflect.ownKeys(n).forEach(a=>{if(typeof a!="string")return;const l=n[a];Me(l)||(e[a]=l)})}function ic(e,n={}){const a={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};rc(a,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(a),passport:0,order:{index:0}});return e.set(yt,l),l}function Wl(e,n,a=-1,l=-1,o=!1,r,i,c){const s=e.get(yt);if(!s)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),l===-1&&(l=d.gutter??0),r||(r=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const h=ce(r),u=ce(i);c||(c=d.type??"grid");const g=()=>{const S=n===""||n===-1,w=ce(n);let b=de(a);const k=ce(l);if(!S){let m=(w-(b-1)*k)/b;for(;u!==-1&&m>u;)b++,m=(w-(b-1)*k)/b;for(;h!==-1&&b>1&&m<h;)b--,m=(w-(b-1)*k)/b}let f=!1;const v=s.layout;v.value.width=n,v.value.column!==b&&(v.value.column=b,f=!0),v.value.gutter!==k&&(v.value.gutter=k,f=!0),v.value.type!==c&&(v.value.type=c,f=!0),f&&(0,t.triggerRef)(v)};if(o)g();else{const S=++s.passport;setTimeout(()=>{S===s.passport&&g()},50)}}function Pn(e,n=!1){let a;return n?a=e.getForParent(yt):a=e.get(yt),a.layout}function Mn(e,n=!1){let a;return n?a=e.getForParent(yt):a=e.get(yt),a.order}function zr(e,n=1){if(n==="stretch")return-1;const a=de(n);return a===-1?100:100*a/e}function zn(e,n,a=1,l=0,o){const r={};let i=0;o?i=ce(o):i=zr(n.column,a),i>0&&(r.width=`${i}%`);const c=zr(n.column,l);c>0&&(r["margin-left"]=`${c}%`);const s=ce(n.gutter)/2;return s>0&&(r["padding-left"]=`${s}px`,r["padding-right"]=`${s}px`),r}function Ln(e,n,a=1,l=0){if(a==="stretch"){const s=e.index%n.column,d=s+(n.column-s);return e.index=e.index+(d-s),{"grid-column":`${s+1} / -1`}}let o=de(a);if(o===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(o>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const r=de(l)%n.column;let i=(e.index+r)%n.column,c=i+o;return c>n.column?(i=0,c=i+o,e.index=e.index+(n.column-i)+o):e.index=e.index+r+o,r>0?{"grid-column":`${i+1} / span ${o}`}:{"grid-column-start":`span ${o}`}}var Lr=Symbol("RollingStateKey");function sc(e){(0,t.provide)(Lr,e)}function cc(){return(0,t.inject)(Lr,null)}function Yl(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),o=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-o}else n=e.offsetHeight;return n}function uc(e){let n=Yl(e);if(n<=0){const a=e.cloneNode(!0);a.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=Yl(a),document.body.removeChild(a)}return n}function dc(e,n,a){const l=typeof e=="number"?e:parseInt(e),o=typeof n=="number"?n:parseInt(n),r=typeof a=="number"?a:parseInt(a);if(l<=0)return"1fr";const i=(l-(o-1)*r)/o;return i>0?`${i}px`:"1fr"}function Rr(e){const n=[];return e.forEach(a=>{a.type===t.Fragment&&Array.isArray(a.children)?n.push(...Rr(a.children)):n.push(a)}),n}function fc(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Rn(e){function n(){return Rr(e?.()??[]).filter(fc)}return{getChildren:n}}var mc={...ge,...Ir,...qr};function hc(e,n,a){return{props:mc,emits:["update:collapse","header-click"],setup(l,o){const r=Ml(l.prop??l.name,l,xr),i=ic(r,{type:l.type}),c=qn();xn(!0);const s=l.rollingDisplay?cc():null,d=(0,t.ref)(null),h=(0,t.computed)(()=>l.rollingDisplay?s&&!s.disabled:!1),u=(0,t.computed)(()=>c&&r?Pn(r,!0).value:null),g=(0,t.getCurrentInstance)(),S=(L,F=!1)=>{const q=g?.proxy;q&&typeof q.setNameValidateRules=="function"&&q.setNameValidateRules(L,!0,F)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([L,F],[q,E])=>{if(L&&q){const O=(0,t.toRaw)(q),Y=(0,t.toRaw)(L),te=Y?Reflect.ownKeys(Y):[];(O?Reflect.ownKeys(O):[]).forEach(ae=>{te.includes(ae)||(Y[ae]=[])}),S(Y)}if(F&&E){const O=(0,t.toRaw)(E),Y=(0,t.toRaw)(F),te=Y?Reflect.ownKeys(Y):[];(O?Reflect.ownKeys(O):[]).forEach(ae=>{te.includes(ae)||(Y[ae]=[])}),S(Y,!0)}},{deep:!0});const w=e,b=(0,t.computed)(()=>{const L={};if(L.height=M.value,l.width)l.width!=="auto"&&(L.width=me(l.width));else{const F=c?Mn(r,!0):null;if(u.value&&F){if(u.value.type==="grid"){const q=Ln(F,u.value,l.span,l.offset);Object.assign(L,q)}else if(u.value.type==="flow"){const q=zn(F,u.value,l.span,l.offset,l.width);Object.assign(L,q)}}}return L}),k=(0,t.computed)(()=>{const L=i.layout.value.type;return L==="grid"||L==="flow"?{[`${w}--${L}`]:!0,[`${w}--${L}-justify-${l.justify}`]:!0,[`${w}--${L}-align-${l.align}`]:!0,[`${w}--gutter`]:!0}:{[`${w}--${L}`]:!0,[`${w}--gutter`]:!0}}),f=(0,t.computed)(()=>{if(i.layout.value.type==="grid"){let L="";if(l.columnWidth)L=`repeat(auto-fill, ${l.columnWidth})`;else{const F=dc(N.value,i.layout.value.column,i.layout.value.gutter);L=`repeat(${i.layout.value.column}, ${F})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":L}}}),v=(0,t.toRef)(l,"gutter"),m=(0,t.toRef)(l,"column"),A=(0,t.computed)(()=>c||h.value?!0:ke(l.isWrap)),C=[],y=L=>{C.push(L)},p=()=>{let L=C.length;C.splice(0,L)},N=(0,t.ref)(-1),T=L=>{const F=Dn(L).width;F>0&&F!==N.value&&(N.value=F)};Wl(r,N.value,m.value,v.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([N,m,v],([L,F,q])=>{i.order.index=0,Wl(r,L,F,q,!1,l.minItemWidth,l.maxItemWidth,l.type)});const V=(0,t.computed)(()=>z.value?l.expandText??"":l.collapseText??""),$=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),H=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!z.value,"is-collapse":z.value})),X=(0,t.ref)(),D=(0,t.ref)(),M=(0,t.computed)(()=>P.value||me(l.height)||""),z=(0,t.ref)(!1),P=(0,t.ref)(""),K=(0,t.ref)(!1);let j=-1;const x=(L,F=!0)=>{const q=X.value;if(q&&z.value!==L){if(j=j<=0?uc(q):j,K.value=!0,F)if(q.style["will-change"]="height",q.ontransitionend=function(){q.ontransitionend=null,this.style["will-change"]="auto",L||(P.value="",K.value=!1)},L){let E=0;l.collapseHeight?E=l.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(E=D.value.offsetHeight),P.value=`${j}px`,(0,t.nextTick)(()=>{P.value=`${E}px`})}else P.value=`${j}px`;else if(L){let E=0;l.collapseHeight?E=l.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(E=D.value.offsetHeight),P.value=`${E}px`}else K.value=!1,P.value=`${j}px`;z.value=L,o.emit("update:collapse",L)}};(0,t.watch)(()=>l.collapse,L=>{x(L)});const _=L=>{o.emit("header-click",L)},ne=()=>{W()},W=L=>{L=L??!z.value,x(L)};be({toggleCollapse:W,doLayout:()=>{C[0]&&(T(C[0]),Wl(r,N.value,m.value,v.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let Q=null,J=!0;const I=L=>{if(l.rules&&S((0,t.toRaw)(l.rules)),l.pureDataRules&&S((0,t.toRaw)(l.pureDataRules),!0),!!Ze&&(L&&x(ke(l.collapse),!1),l.autoLayout&&Array.isArray(C)&&C.length>0)){const F=C[0];if(T(F),window.ResizeObserver){const q=Ie(()=>T(F),120);Q=new window.ResizeObserver(q),Q.observe(F)}}},R=()=>{Q?.disconnect(),Q=null},G=!h.value||s?.acquire();G&&(d.value=h.value?!0:null),(0,t.onMounted)(()=>{if(G&&(I(J),J=!1),h.value&&s){let L=null,F=s.initialHeight;s.observe(X.value,q=>{if(q!==d.value)if(q)d.value=!0,z.value||(P.value=""),L=setTimeout(()=>{L=null,d.value!==!1&&(I(J),J=!1)},100);else{if(L!==null&&clearTimeout(L),d.value=!1,!z.value)if(J)P.value=s.initialHeight;else{let E=Yl(X.value);E<=0?P.value=F:(P.value=`${E}px`,F=P.value)}J||R()}})}}),(0,t.onUnmounted)(()=>{Q?.disconnect(),s&&s.unobserve(X.value)});const Z=(L="right")=>{const F=[];if(V.value){const O=(0,t.h)("span",{class:$.value},[V.value]);F.push(O)}const q={class:H.value},E=(0,t.h)(l.collapseIcon??a,q);return F.push(E),F.length>0?(0,t.h)("div",{class:{[`${w}__header-collapse`]:!0,[`is-${L}`]:!0},onClick:ne},F):null},le=(L,F,q,E)=>{const O={...k.value};if(F===0&&(O[`${w}__first`]=!0),q>=E-1&&(O[`${w}__last`]=!0),A.value===!1){const Y=o.attrs.class;Y&&(O[`${Y}`]=!0)}return(0,t.h)("div",{ref:y,key:`${F}`,class:O,style:f.value},L)};return()=>{const L=l.prop??l.name;if(h.value&&d.value!==!0)return(0,t.h)(l.tag||"div",{ref:X,prop:L,class:{[`${w}`]:!0,"is-collapse":K.value},style:b.value},[]);i.order.index=0;const F=[];let q=0;if(o.slots.header){const te=(0,t.h)("div",{key:`${q++}`,ref:D,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:_},[o.slots.header()]);F.push(te)}else{const te=[],ae=l.collapsePosition==="left";if(ae&&l.showCollapse){const se=Z("left");se&&te.push(se)}if(l.title||o.slots.title){if(l.showMark){const se={class:{[`${w}__header-mark`]:!0}};l.markColor&&(se.style={background:l.markColor});const ue=(0,t.h)("div",se);te.push(ue)}if(o.slots.title){const se=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[o.slots.title()]);te.push(se)}else if(l.title){const se=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[l.title]);te.push(se)}}if(o.slots.toolbar&&te.push(o.slots.toolbar()),!ae&&l.showCollapse){const se=Z("right");se&&te.push(se)}if(te.length>0){const se=(0,t.h)("div",{key:`${q++}`,ref:D,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:_},te);F.push(se)}}p();const{getChildren:E}=Rn(o.slots.default),O=E(),Y=i.layout.value.type;if(Y==="grid"){const te=le(O,q++,0,O.length);F.push(te)}else if(Y==="flow"){const te=le(O,q++,0,O.length);F.push(te)}else for(let te=0;te<O.length;te++){const ae=O[te],se=le([ae],q++,te,O.length);F.push(se)}return A.value?(0,t.h)(l.tag||"div",{ref:X,prop:L,class:{[`${w}`]:!0,"is-collapse":K.value},style:b.value},[F]):F}}}}var{componentName:pc,create:gc,scope:yc}=ee("group"),bc=gc(hc(pc,yc,oe.RectUp)),Xl=bc;function vc(e){return e===window}var Sc=/matrix\((.+)\)/,Ql=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(vc(n))return{x:0,y:0};let a=0,l=0,o=n;for(;o!==null;)a+=o.offsetLeft,l+=o.offsetTop,o=o.offsetParent;let r=0,i=0,c=0,s=0;for(o=n;o!==document;){i+=o.scrollTop,r+=o.scrollLeft;const{transform:d}=window.getComputedStyle(o);if(d){const h=Sc.exec(d);if(h){let u=h[1].split(/\s*,\s*/);u.length==6&&(c+=Number(u[4]),s+=Number(u[5]))}}o=o.parentNode}return a-=r,l-=i,a+=c,l+=s,{x:a,y:l}},kc=class{watchedListeners=[];add(e){this.watchedListeners.push(e)}remove(e){const n=this.watchedListeners.indexOf(e);n!==-1&&this.watchedListeners.splice(n,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(e=>{try{e()}catch{}})}},wc=class{monitorRegister=new WeakMap;watch(e,n){let a=e.parentNode;const l=document.body.parentNode;for(;a&&a!==l;){let o=this.monitorRegister.get(a);o||(o=new kc,a.addEventListener("scroll",o.listen),a===document.body&&a.addEventListener("resize",o.listen),this.monitorRegister.set(a,o)),o.add(n),a=a.parentNode}}unwatch(e,n){let a=e.parentNode;const l=document.body.parentNode;for(;a&&a!==l;){let o=this.monitorRegister.get(a);o&&(o.remove(n),o.size()===0&&(this.monitorRegister.delete(a),a.removeEventListener("scroll",o.listen),a===document.body&&a.removeEventListener("resize",o.listen))),a=a.parentNode}}},Kt=new wc,Fr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Cc,create:Nc}=ee("price"),Ac=Nc({props:{...Fr},setup(e){const n=(0,t.computed)(()=>({[Cc]:!0})),a=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>we(e.price)==0?"":un(e.price,e.decimalLength,!0,de(e.digits),e.separator));return{classes:n,showSymbol:a,intText:(0,t.computed)(()=>{let o=l.value;if(o.length==0)return"";let r=o.indexOf(".");return o.substring(0,r)}),decimalText:(0,t.computed)(()=>{let o=l.value;if(o.length==0)return"";let r=o.indexOf(".");return o.substring(r+1)})}}}),re=(e,n)=>{const a=e.__vccOpts||e;for(const[l,o]of n)a[l]=o;return a},Bc=["innerHTML"],Tc=["innerHTML"];function Vc(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Bc)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--${e.size}`)},(0,t.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,t.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Tc)):(0,t.createCommentVNode)("",!0)],2)}var Fn=re(Ac,[["render",Vc]]),{componentName:Gl,create:$c}=ee("hint-text"),Ec=$c({components:{Price:Fn},props:{...Fr,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:()=>6},showArrow:{type:Boolean,default:()=>!0},arrowOffset:{type:Number,default:()=>20},offset:{type:Number,default:()=>12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const a=(0,t.ref)({top:null,right:null,bottom:null,left:null}),l=(0,t.ref)({x:0,y:0}),o=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(e.placement),c=(0,t.ref)(!1),s=(0,t.ref)(null),d=($,H,X,D,M,z)=>{const P=document.documentElement.clientWidth||document.body.clientWidth,K=document.documentElement.clientHeight||document.body.clientHeight,j=$.split("-");let x=[];j[0]==="top"?x=["top","bottom","right","left"]:j[0]==="bottom"?x=["bottom","top","right","left"]:j[0]==="left"?x=["left","top","bottom","right"]:j[0]==="right"&&(x=["right","top","bottom","left"]);const _={top:null,right:null,bottom:null,left:null},ne=[];for(let W=0;W<x.length;W++){const U=x[W];if(ne[0]=U,j[1]&&(ne[1]=j[1]),U==="top"){const Q=H.y-z-e.arrowSize-e.offset;if(Q>=0){_.top=Q;let J=0;j[1]==="start"?J=H.x:j[1]==="end"?J=H.x+X-M:J=H.x+X/2-M/2;const I=P-J-M;I<0?(J+=I,u.value=-I):u.value=0,_.left=J<0?0:J;break}}else if(U==="bottom"){const Q=H.y+D+e.arrowSize+e.offset;if(Q+z<=K){_.top=Q;let J=0;j[1]==="start"?J=H.x:j[1]==="end"?J=H.x+X-M:J=H.x+X/2-M/2;const I=P-J-M;I<0?(J+=I,u.value=-I):u.value=0,_.left=J<0?0:J;break}}else if(U==="left"){const Q=H.x-M-e.arrowSize-e.offset;if(Q>=0){_.left=Q;let J=0;j[1]==="start"?J=H.y:j[1]==="end"?J=H.y+D-z:J=H.y+D/2-z/2,_.top=J<0?0:J;break}}else if(U==="right"){const Q=H.x+X+e.arrowSize+e.offset;if(Q+M<=P){_.left=Q;let J=0;j[1]==="start"?J=H.y:j[1]==="end"?J=H.y+D-z:J=H.y+D/2-z/2,_.top=J<0?0:J;break}}}return{bestPlacement:ne.join("-"),bestInsetRect:_}},h=($,H,X=10)=>{if(!Ze||H===!1||!$)return;l.value=Ql(e.reference),o.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const D=s.value.offsetHeight,M=s.value.offsetWidth,{bestPlacement:z,bestInsetRect:P}=d(e.placement,l.value,o.value,r.value,M,D);i.value=z,a.value=P,c.value=!0},u=(0,t.ref)(0),g=Ie(()=>{h(e.message,e.visible)},10),S=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,$=>{S.value=$});const w=(0,t.computed)(()=>S.value&&b.value),b=(0,t.ref)(!0),k=Ie($=>{const H=$[0];H&&(b.value=H.isIntersecting)},10),f=new IntersectionObserver(k);(0,t.watch)([()=>e.message,()=>e.visible],([$,H])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{h(e.message,e.visible)},0),Kt.watch(e.reference,g),f.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Kt.unwatch(e.reference,g),f.unobserve(e.reference),f.disconnect()});const v=(0,t.computed)(()=>{const $={[Gl]:!0};return i.value.startsWith("top")?$["is-top"]=!0:i.value.startsWith("right")?$["is-right"]=!0:i.value.startsWith("bottom")?$["is-bottom"]=!0:i.value.startsWith("right")&&($["is-right"]=!0),e.size==="small"?$["is-small"]=!0:e.size==="large"&&($["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&($[`${e.customClass}`]=!0),$}),m=(0,t.computed)(()=>{const $={};return a.value.top!==null&&($.top=`${a.value.top}px`),a.value.right!==null&&($.right=`${a.value.right}px`),a.value.bottom!==null&&($.bottom=`${a.value.bottom}px`),a.value.left!==null&&($.left=`${a.value.left}px`),e.autoFit&&($["min-width"]=`${o.value}px`),$["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,c.value&&($.opacity="1"),e.transition||($.transition="none"),e.zIndex&&($["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign($,e.customStyle),$}),A=(0,t.computed)(()=>{const $=[`${Gl}__content`];return e.customTextClass&&$.push(e.customTextClass),$}),C=(0,t.computed)(()=>{const $={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign($,e.customTextStyle),$}),y=(0,t.computed)(()=>({[`${Gl}__arrow`]:!0})),p=(0,t.computed)(()=>{const $={};return e.showArrow?($.width=`${e.arrowSize}px`,$.height=`${e.arrowSize}px`,i.value==="top"?($.left="50%",$.bottom=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):i.value==="top-start"?($.left=`${e.arrowOffset+u.value}px`,$.bottom=`-${e.arrowSize}px`):i.value==="top-end"?($.right=`${e.arrowOffset-u.value}px`,$.bottom=`-${e.arrowSize}px`):i.value==="right"?($.left=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):i.value==="right-start"?($.left=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):i.value==="right-end"?($.left=`-${e.arrowSize}px`,$.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?($.left="50%",$.top=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?($.left=`${e.arrowOffset+u.value}px`,$.top=`-${e.arrowSize}px`):i.value==="bottom-end"?($.right=`${e.arrowOffset-u.value}px`,$.top=`-${e.arrowSize}px`):i.value==="left"?($.right=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):i.value==="left-start"?($.right=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):i.value==="left-end"&&($.right=`-${e.arrowSize}px`,$.bottom=`-${e.arrowOffset}px`),$):{display:"none"}}),N=(0,t.computed)(()=>w.value&&e.closeOnClick),T=(0,t.computed)(()=>{const $={};return e.zIndex&&($["z-index"]=`${e.zIndex}`),$});return{show:w,tipRef:s,classes:v,styles:m,textClasses:A,textStyles:C,arrowClasses:y,arrowStyles:p,overlayShow:N,overlayStyle:T,onClickOverlay:()=>{S.value=!1,n.emit("update:visible",!1)}}}}),Dc=["innerHTML"];function Ic(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Price");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.overlayShow?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,t.normalizeStyle)(e.overlayStyle),onClick:n[0]||(n[0]=(...c)=>e.onClickOverlay&&e.onClickOverlay(...c))},null,4)):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"tipRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.textClasses),style:(0,t.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,Dc))],6),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.arrowClasses),style:(0,t.normalizeStyle)(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}var Or=re(Ec,[["render",Ic]]),On=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},Zl={},qc=new On,bt=new Map,Kn=e=>{if(e){const n=document.getElementById(e);bt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of bt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}bt.clear()}},xc=e=>{e.unmount=Kn;const n=document.getElementById(e.id);if(n){const a=bt.get(e.id);return a?e={...Zl,...a,...e}:e={...Zl,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(Or,e),n),e.id}},Pc=e=>{e.unmount=Kn;let n=e.id??`hinttext_${qc.get()}`;e={...Zl,...e},e.id=n,bt.set(n,e);const a=document.createElement("div");return a.id=e.id,(0,t.render)((0,t.createVNode)(Or,e),a),document.body.appendChild(a),n},Mc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},vt={show(e,n,a={},l=!0){Mc(n);const o=a.id;return o&&bt.has(o)?xc({...a,message:n,reference:e}):(l&&Kn(),Pc({...a,message:n,reference:e}))},hide(e){Kn(e)},install(e){e.config.globalProperties.$hintText=vt}};function zc(e,n,a,l=!1){return{inheritAttrs:!0,props:{...ge,...ve},emits:["appear","disappear"],setup(o,r){const i=o.prop??r.attrs.name;Be({componentName:e,validate:!1},i);const c=Je(),s=qn();xn(!1);const d=(0,t.computed)(()=>s&&c?Pn(c,!1).value:null),h=e,u=(0,t.ref)(null),g=(0,t.computed)(()=>{const E={[h]:!0,[`${h}__gutter`]:d.value&&d.value.type!=="flow",[`${h}__stretch`]:o.span==="stretch",[`${h}__input--border`]:ke(o.hasBorder)};if(E[o.errorMarkClass]=!!z.value,E[o.warnMarkClass]=!!D.value,E[o.infoMarkClass]=!!H.value,typeof u.value=="function"){const O=u.value(i);E[O]=!0}else if(typeof u.value=="string"){const O=u.value;E[O]=!0}return E}),S=(0,t.ref)(null),w=(0,t.computed)(()=>{const E={};if(o.width)o.width!=="auto"&&(E.width=me(o.width));else{const O=s&&c?Mn(c,!1):null;if(d.value&&O){if(d.value.type==="grid"){const Y=Ln(O,d.value,o.span,o.offset);Object.assign(E,Y)}else if(d.value.type==="flow"){const Y=zn(O,d.value,o.span,o.offset,o.width);Object.assign(E,Y)}}}if(typeof S.value=="function"){const O=S.value(i);O&&Object.assign(E,O)}else if(S.value&&typeof S.value=="object"){const O=S.value;Object.assign(E,O)}return E}),b=(0,t.ref)(null),k=(0,t.computed)({get:()=>b.value??ke(o.isRequired),set:E=>{b.value=E}}),f=()=>typeof o.label=="string"&&o.label.length>0||typeof r.slots.label=="function",v=Te((0,t.toRef)(o,"labelPosition"),"labelPosition",tt.Near),m=(0,t.computed)(()=>v&&v.value==="top"?"top":v&&v.value==="right"?"right":"left"),A=(0,t.computed)(()=>({[`${h}__main`]:!0,[`${h}__main--${m.value}`]:!0})),C=(0,t.computed)(()=>({label:!0,[`label--${m.value}`]:!0})),y=Te((0,t.toRef)(o,"labelWidth"),"labelWidth",tt.Near),p=(0,t.computed)(()=>y&&y.value?{width:me(y.value)}:{}),N=(0,t.computed)(()=>({"label--string":!0,"label--required":k.value})),T=(0,t.computed)(()=>({content:!0,[o.contentClass]:!0})),V=(0,t.computed)(()=>({...o.contentStyle})),$=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired(E){k.value=E},setErrorTip(E){$.errorTip=E},setErrorIcon(E){$.errorIcon=E},setWarnTip(E){$.warnTip=E},setWarnIcon(E){$.warnIcon=E},setInfoTip(E){$.infoTip=E},setInfoIcon(E){$.infoIcon=E},setCustomClassName(E){u.value=E},setCustomStyle(E){S.value=E}});const H=(0,t.computed)(()=>o.infoTip||$.infoTip),X=(0,t.computed)(()=>o.infoIcon||$.infoIcon),D=(0,t.computed)(()=>o.warnTip||$.warnTip),M=(0,t.computed)(()=>o.warnIcon||$.warnIcon),z=(0,t.computed)(()=>o.errorTip||$.errorTip),P=(0,t.computed)(()=>o.errorIcon||$.errorIcon),K=(0,t.computed)(()=>z.value?"error":D.value?"warn":H.value?"info":""),j=()=>K.value.length>0,x=(0,t.computed)(()=>K.value==="error"?z.value:K.value==="warn"?D.value:K.value==="info"?H.value:""),_=(0,t.computed)(()=>K.value==="error"?P.value:K.value==="warn"?M.value:K.value==="info"?X.value:null),ne=(0,t.computed)(()=>{const E={[`${h}__tip`]:!0,[`${h}__tip--${K.value}`]:!0,[`${h}--animate`]:!0};return K.value==="error"&&o.errorClass?E[`${o.errorClass}`]=!0:K.value==="warn"&&o.warnClass?E[`${o.warnClass}`]=!0:K.value==="info"&&o.infoClass&&(E[`${o.infoClass}`]=!0),E}),W=(0,t.computed)(()=>{const E={};return v&&v.value==="top"||!f()?E["padding-left"]="0px":y&&y.value&&(E["padding-left"]=me(y.value)),E}),U=(0,t.ref)();let Q="";(0,t.watch)([()=>o.hintVisible,()=>o.hintText,()=>o.hintType,()=>o.hintProps],([E,O,Y,te])=>{U.value&&(E&&!fe(O)?Q?a.show(U.value,O,{...te,id:Q,type:Y},!0):Q=a.show(U.value,O,{...te,type:Y},!0):a.hide(Q))});let J=null;const I=()=>{J||!U.value||(J=new IntersectionObserver(E=>{let O=!1;for(let Y of E)if(Y.intersectionRatio>0){O=!0,O&&r.emit("appear",Y);break}O||r.emit("disappear")}),J.observe(U.value))},R=()=>{!J||!U.value||(J.unobserve(U.value),J=null)};(0,t.watch)(()=>ke(o.appearListen),E=>{E?I():R()}),(0,t.onMounted)(()=>{ke(o.appearListen)&&I()}),(0,t.onUnmounted)(R);const G=()=>{if(!f())return null;const E=[],O=r.slots?.label?.()??o.label,Y=(0,t.h)("div",{class:N.value},[O]);if(E.push(Y),r.slots.fixedPreTip){const te=r.slots.fixedPreTip();E.push(te)}return(0,t.h)("div",{class:C.value,style:p.value},E)},Z=()=>{const E=[];if(r.slots.prepend){const O=r.slots.prepend();E.push(O)}if(r.slots.default){const O=r.slots.default();E.push(O)}if(r.slots.append){const O=r.slots.append();E.push(O)}if(r.slots.fixedTip){const O=(0,t.h)("div",{class:[`${h}__fixed-tip`]},[r.slots.fixedTip()]);E.push(O)}return(0,t.h)("div",{ref:U,class:T.value,style:V.value},E)},le=()=>{const E=_.value;return E?typeof E=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[E()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(E)]):null},L=()=>{const E=x.value;return E?typeof E=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[E()]):(0,t.h)("div",{class:"fox-item__tip--text"},[E]):null},F=()=>{if(!j())return null;const E=[],O=le();O&&E.push(O);const Y=L();return Y&&E.push(Y),(0,t.h)("div",{class:ne.value,style:W.value},E)},q=()=>r.slots?.hide?.()??null;return()=>{const E=[],O=[],Y=G();Y&&O.push(Y);const te=Z();te&&O.push(te);const ae=(0,t.h)("div",{class:A.value},O);E.push(ae);const se=F();se&&E.push(se);const ue=q();return ue&&E.push(ue),(0,t.h)("div",{class:g.value,style:w.value,prop:o.prop},E)}}}}var{componentName:Lc,create:Rc,scope:Fc}=ee("item"),Oc=Rc(zc(Lc,Fc,vt,!1)),St=Oc,Kr={span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function Kc(e,n){return{props:Kr,setup(a,l){const o=e,r=(0,t.computed)(()=>({[o]:!0,[`${o}__stretch`]:a.span==="stretch",[`${o}__${a.align}`]:!0})),i=Je(),c=qn();xn(!1);const s=(0,t.computed)(()=>{const d={};if(a.width)a.width!=="auto"&&(d.width=me(a.width));else if(c&&i){const h=Pn(i,!1),u=Mn(i,!1);if(h.value&&u){if(h.value.type==="grid"){const g=Ln(u,h.value,a.span,a.offset);Object.assign(d,g)}else if(h.value.type==="flow"){const g=zn(u,h.value,a.span,a.offset,a.width);Object.assign(d,g)}}}return a.gutter&&(d.gap=me(a.gutter)),d});return()=>{const d=[];if(l.slots.default){const h=l.slots.default();if(a.divide)for(let u=0;u<h.length;u++){if(u>0){const g=(0,t.h)("div",{class:{[`${o}__divide`]:!0}});d.push(g)}d.push(h[u])}else Reflect.apply([].push,d,h)}return(0,t.h)("div",{class:r.value,style:s.value},d)}}}}var{componentName:Uc,create:Hc,scope:jc}=ee("row-item"),Wc=Hc(Kc(Uc,jc)),Un=Wc,Yc=(0,t.defineComponent)({name:"ArrowDown",__name:"arrow-down",setup(e){return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,t.createElementVNode)("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}});function Xc(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(o)},500)}var Qc={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function Gc(e,n,a,l=!1){return{props:{...Qc},emits:["click"],setup(o,r){const i=(0,t.ref)(null),c=(0,t.computed)(()=>{const m={[`${e}`]:!0,"is-truncated":o.truncated};return o.type&&(m[`${e}--${o.type??"default"}`]=!0),o.size&&(m[`${e}--${o.size}`]=!0),m}),s=(0,t.computed)(()=>{const m={},A=o.textColor??o.color;return A&&(m.color=A),m}),d=(m,A)=>{let C=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const y=o.highlightFilter;m.indexOf(y)!==-1&&(A.innerHTML=m.replace(new RegExp(y,"g"),`<span>${y}</span>`),A.class["is-highlight"]=!0,C=(0,t.h)(o.tag,A))}else if(typeof o.highlightFilter=="function"){const y=o.highlightFilter(m);y&&(A.innerHTML=y,A.class["is-highlight"]=!0,C=(0,t.h)(o.tag,A))}return C},h=m=>{r.emit("click",m)};let u="";const g=()=>{const m=i.value;if(!m)return;const A=m.clientWidth;Xc(m,C=>{const y=m.innerHTML??"";fe(y)||C<A||(u?a?.show(m,y,{type:"text",id:u,showArrow:o.showArrow},!0):u=a?.show(m,y,{type:"text",showArrow:o.showArrow},!0)??"")})},S=()=>{u&&a?.hide(u)};let w=null;const b=m=>{w||(w=setTimeout(()=>{g(),w=null},o.showAfter??0))},k=m=>{w&&(clearTimeout(w),w=null),setTimeout(()=>{S()},o.hideAfter??0)},f=()=>{const m=i.value;m&&(m.addEventListener("mouseover",b),m.addEventListener("mouseleave",k))},v=()=>{const m=i.value;m&&(m.removeEventListener("mouseover",b),m.removeEventListener("mouseleave",k))};return(0,t.onMounted)(()=>{!ke(o.showOverflowTooltip)||!a||f()}),(0,t.onBeforeUnmount)(()=>{!ke(o.showOverflowTooltip)||!a||v()}),()=>{const m={onClick:h,class:c.value,style:s.value,ref:i};let A=null;if(ke(o.numberFormat)&&typeof r.slots.default=="function"){const y=r.slots.default();if(Array.isArray(y)&&y.length===1){const p=y[0].type.toString();if(p==="Symbol(Text)"||p==="Symbol(v-txt)"){const N=de(o.digits),T=de(o.decimalLength),V=ke(o.autoPadding);let $=`${y[0].children}`,H=$.split("").reverse().join("");H=un(H,T,V,N,o.separator),$=H.split("").reverse().join(""),o.highlightFilter!==void 0&&(A=d($,m)),A||(m.innerHTML=$,A=(0,t.h)(o.tag,m))}}}else{if(o.highlightFilter!==void 0&&typeof r.slots.default=="function"){const y=r.slots.default();if(Array.isArray(y)&&y.length===1){const p=y[0].type.toString();if(p==="Symbol(Text)"||p==="Symbol(v-txt)"){const N=`${y[0].children}`;A=d(N,m),A||(m.innerHTML=N,A=(0,t.h)(o.tag,m))}}}A||(A=(0,t.h)(o.tag,m,{default:r.slots.default}))}if(!o.mark&&!o.icon&&!r.slots.mark)return A;const C=[];if(r.slots.mark){const y={[`${e}__mark-wrap`]:!0};o.type&&(y[`${e}__mark-wrap--${o.type}`]=!0);const p={},N=o.color;N&&(p.color=N);const T=(0,t.h)("view",{class:y,style:p},{default:r.slots.mark});C.push(T)}else{const y={[`${e}__mark`]:!0};o.type&&(y[`${e}__mark--${o.type??"default"}`]=!0);const p={},N=o.color;N&&(p["background-color"]=N);const T=(0,t.h)("view",{class:y,style:p});C.push(T)}if(o.divide){const y=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});C.push(y)}return C.push(A),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}},C)}}}}var{componentName:Zc,create:_c,scope:Jc}=ee("text"),eu=_c(Gc(Zc,Jc,vt,!1)),kt=eu,tu={visible:{type:Boolean},reference:{type:[Object,String]},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function nu(e,n,a=!1){return{props:{...tu},emits:["update:visible"],setup(l,{emit:o,slots:r,expose:i}){const c=(0,t.ref)({top:null,right:null,bottom:null,left:null}),s=(0,t.ref)(0),d=(0,t.ref)(0),h=(0,t.ref)(0),u=(0,t.ref)(0),g=(0,t.ref)(l.placement),S=(0,t.ref)(!1),w=(0,t.ref)(!1),b=(0,t.ref)(null),k=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,f=(x,_,ne,W,U,Q,J,I=!0)=>{const R=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,Z=x.split("-");let le=[];I?Z[0]==="top"?le=["top","bottom","right","left"]:Z[0]==="bottom"?le=["bottom","top","right","left"]:Z[0]==="left"?le=["left","top","bottom","right"]:Z[0]==="right"&&(le=["right","top","bottom","left"]):le=[x[0]];const L={top:null,right:null,bottom:null,left:null},F=[];for(let q=0;q<le.length;q++){const E=le[q];if(F[0]=E,Z[1]&&(F[1]=Z[1]),E==="top"){const O=ne-J-l.arrowSize/2-l.offset;if(O>=0){L.top=O;let Y=0;Z[1]==="start"?Y=_:Z[1]==="end"?Y=_+W-Q:Y=_+W/2-Q/2;const te=R-Y-Q;te<0?(Y+=te,m.value=-te):m.value=0,L.left=Y<0?0:Y;break}}else if(E==="bottom"){const O=ne+U+l.arrowSize/2+l.offset;if(O+J<=G){L.top=O;let Y=0;Z[1]==="start"?Y=_:Z[1]==="end"?Y=_+W-Q:Y=_+W/2-Q/2;const te=R-Y-Q;te<0?(Y+=te,m.value=-te):m.value=0,L.left=Y<0?0:Y;break}}else if(E==="left"){const O=_-Q-l.arrowSize/2-l.offset;if(O>=0){L.left=O;let Y=0;Z[1]==="start"?Y=ne:Z[1]==="end"?Y=ne+U-J:Y=ne+U/2-J/2,L.top=Y<0?0:Y;break}}else if(E==="right"){const O=_+W+l.arrowSize/2+l.offset;if(O+Q<=R){L.left=O;let Y=0;Z[1]==="start"?Y=ne:Z[1]==="end"?Y=ne+U-J:Y=ne+U/2-J/2,L.top=Y<0?0:Y;break}}}return{bestPlacement:F.join("-"),bestInsetRect:L}},v=()=>{const x=l.visible,_=l.autoFit;if(!Ze||x===!1)return;if(l.reference){const J=k(),I=Ql(J);s.value=I.x,d.value=I.y,h.value=J.offsetWidth,u.value=J.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,d.value=l.referenceInset.top,h.value=l.referenceInset.right-l.referenceInset.left,u.value=l.referenceInset.bottom-l.referenceInset.top);const ne=b.value.offsetWidth,W=b.value.offsetHeight,{bestPlacement:U,bestInsetRect:Q}=f(l.placement,s.value,d.value,h.value,u.value,ne,W,_);g.value=U,c.value=Q},m=(0,t.ref)(0),A=Ie(()=>{v()},10),C=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([x])=>{C.value=x,x?(S.value=x,setTimeout(()=>{v(),w.value=!0},0)):w.value=!1});const y=(0,t.computed)(()=>C.value&&p.value),p=(0,t.ref)(!0),N=Ie(x=>{const _=x[0];_&&(p.value=_.isIntersecting)},10),T=new IntersectionObserver(N);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([x,_],[ne,W])=>{!x&&!_||(setTimeout(()=>{v()},0),l.autoFit&&(ne&&(Kt.unwatch(ne,A),T.unobserve(ne)),x&&(Kt.watch(x,A),T.observe(x))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Kt.unwatch(l.reference,A),T.unobserve(l.reference),T.disconnect())});const V=(0,t.computed)(()=>{const x={[e]:!0};return g.value.startsWith("top")?x["is-top"]=!0:g.value.startsWith("right")?x["is-right"]=!0:g.value.startsWith("bottom")?x["is-bottom"]=!0:g.value.startsWith("left")&&(x["is-left"]=!0),x[`is-${l.effect}`]=!0,!w.value&&y.value&&(x["is-opacity"]=!0),w.value&&y.value&&(x["is-show"]=!0),y.value||(x["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(x[`${l.customClass}`]=!0),x}),$=(0,t.computed)(()=>{const x={};return c.value.top!==null&&(x.top=`${c.value.top}px`),c.value.right!==null&&(x.right=`${c.value.right}px`),c.value.bottom!==null&&(x.bottom=`${c.value.bottom}px`),c.value.left!==null&&(x.left=`${c.value.left}px`),l.width&&(x.width=l.width),l.zIndex&&(x["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(x,l.customStyle),x}),H=()=>{C.value=!1,o("update:visible",!1)},X=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:H}):null,D=()=>{let x=null;return r.title?x=(0,t.h)("div",{class:`${e}__title`},{default:r.title}):l.title&&(x=(0,t.h)("div",{class:`${e}__title`},[l.title])),x},M=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),z=(0,t.computed)(()=>{const x={};return l.showArrow?(x.width=`${l.arrowSize}px`,x.height=`${l.arrowSize}px`,g.value==="top"?(x.left="50%",x.bottom="0",x.transform="translate(-50%, 50%)"):g.value==="top-start"?(x.left=`${l.arrowOffset+m.value}px`,x.bottom="0",x.transform="translate(-50%, 50%)"):g.value==="top-end"?(x.right=`${l.arrowOffset-m.value}px`,x.bottom="0",x.transform="translate(-50%, 50%)"):g.value==="right"?(x.left="0",x.top="50%",x.transform="translate(-50%, -50%)"):g.value==="right-start"?(x.left="0",x.top=`${l.arrowOffset}px`,x.transform="translate(-50%, 50%)"):g.value==="right-end"?(x.left="0",x.bottom=`-${l.arrowOffset}px`,x.transform="translate(-50%, 50%)"):g.value==="bottom"?(x.left="50%",x.top="0",x.transform="translate(-50%, -50%)"):g.value==="bottom-start"?(x.left=`${l.arrowOffset+m.value}px`,x.top="0",x.transform="translate(-50%, -50%)"):g.value==="bottom-end"?(x.right=`${l.arrowOffset-m.value}px`,x.top="0",x.transform="translate(-50%, -50%)"):g.value==="left"?(x.right="0",x.top="50%",x.transform="translate(50%, -50%)"):g.value==="left-start"?(x.right="0",x.top=`${l.arrowOffset}px`,x.transform="translate(50%, -50%)"):g.value==="left-end"&&(x.right="0",x.bottom=`-${l.arrowOffset}px`,x.transform="translate(50%, -50%)"),x):{display:"none"}}),P=()=>(0,t.h)("div",{class:M.value,style:z.value}),K=()=>{C.value===!1&&(S.value=!1)},j=x=>{if(!b.value||C.value===!1)return;const{relatedTarget:_}=x;b.value.contains(_)||(C.value=!1,o("update:visible",!1))};return i({doLayout:v}),()=>{if(!S.value)return null;const x=[],_=X();_&&x.push(_);const ne=[],W=D();if(W&&ne.push(W),r.default){const I=r.default();ne.push(I)}const U=P();U&&ne.push(U);const Q={ref:b,class:V.value,style:$.value,onAnimationend:K};l.leaveHide&&(Q.onMouseleave=j);const J=(0,t.h)("div",Q,{default:()=>ne});return x.push(J),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>x})}}}}var{componentName:lu,create:au,scope:ou}=ee("popover-dialog"),ru=au(nu(lu,ou,!1)),Hn=ru,iu={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function su(e,n,a){return{props:{...Kr,...iu},emits:["click"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),c=i(l,["moreText"]),s=e,d=(0,t.computed)(()=>({[s]:!0}));function h(C){return C.props||{}}function u(C){return!!h(C).disabled}function g(C){return C.children??[]}const S=(0,t.ref)(),w=(0,t.computed)(()=>S.value?.$el??null),b=(0,t.ref)(!1),k=C=>{b.value=C},f=()=>{b.value=!b.value};function v(C,y){return()=>{y||(b.value=!1,h(C)?.onClick?.())}}function m(C,y){const p=g(C),N=u(C),T=v(C,N),V=[`${s}__dropdown-item`];return N&&V.push("is-disabled"),(0,t.h)("span",{class:V,onClick:T},p)}const A=C=>{const y=l.maxDisplayCount??C.length;if(y>=C.length)return C;const p=[],N=y-1;for(let X=0;X<N;X++)p.push(C[X]);const T=(r.moreIcon&&r.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(a),V=(0,t.h)(kt,{ref:X=>S.value=X,class:`${s}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:f},{default:()=>c.moreText.value,mark:()=>T});p.push(V);const $=[];for(let X=N;X<C.length;X++){const D=m(C[X],X);$.push(D)}const H=(0,t.h)(Hn,{placement:l.dropdownPlacement,"onUpdate:visible":k,visible:b.value,reference:w.value,"custom-class":`${s}__popover`},{default:()=>$});return p.push(H),p};return()=>{const{getChildren:C}=Rn(r?.default),y=A(C());return(0,t.h)(Un,{class:d.value},{default:()=>y})}}}}var{componentName:cu,create:uu,scope:du}=ee("buttons-item"),fu=uu(su(cu,du,Yc)),_l=fu,mu={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function hu(e,n){return{props:mu,setup(a,l){const o=Je(),r=qn();xn(!1);const i=(0,t.computed)(()=>r&&o?Pn(o,!1).value:null),c=e,s=(0,t.computed)(()=>({[c]:!0,[`${c}__gutter`]:i.value&&i.value.type!=="flow",[`${c}__stretch`]:a.span==="stretch"})),d=(0,t.computed)(()=>{const h={};if(a.width)a.width!=="auto"&&(h.width=me(a.width));else{const u=r&&o?Mn(o,!1):null;if(i.value&&u){if(i.value.type==="grid"){const g=Ln(u,i.value,a.span,a.offset);Object.assign(h,g)}else if(i.value.type==="flow"){const g=zn(u,i.value,a.span,a.offset,a.width);Object.assign(h,g)}}}return h});return()=>{const h={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?(0,t.h)("div",h,l.slots.default()):(0,t.h)("div",h)}}}}var{componentName:pu,create:gu,scope:yu}=ee("slot-item"),bu=gu(hu(pu,yu)),Jl=bu;function Pe(e,n={}){return(0,t.h)(St,e,n)}function vu(e,n,a,l,o){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],c=n[0];if(Array.isArray(e)&&!Array.isArray(c)&&!c[o]){let s=n;for(let d=0;s&&d<r.length;d++){let h=r[d],u=s.find(g=>g[l]===h);if(!u)break;i.push(u[a])}return i}if(Array.isArray(c))for(let s=0;s<n.length&&s<r.length;s++){let d=n[s],h=r[s];const u=d.find(g=>g[l]===h);if(!u)break;i.push(u[a])}else{let s=n;for(let d=0;s&&d<r.length;d++){let h=r[d],u=s.find(g=>g[l]===h);if(!u)break;i.push(u[a]),s=u[o]}}return i}var Su=class{proxy;constructor(e){this.proxy=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function ku(){return new Su((0,t.getCurrentInstance)().proxy)}var wu={tag:{type:[String,Object],required:!1,default:"span"},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1}};function Cu(e,n,a=!1){return{props:wu,setup(l,{attrs:o,slots:r}){const i=ku(),c=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([d,h])=>{c.value=await i.load(l.sourceType,d,h)},{immediate:!0});const s=(0,t.computed)(()=>{if(!Array.isArray(c.value)||c.value.length===0)return l.emptyText;let d=vu(l.modelValue,c.value,l.textKey,l.valueKey,l.childrenKey);return d.length==0?l.emptyText??"":d.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${d[0]}`:d[0]:d.join(l.separator)});return()=>{const d={...o};if(r.default)return r.default({text:s.value,value:l.modelValue});const h=l.tag??"span";return typeof h=="object"?(0,t.h)(h,d,{default:()=>s.value}):(0,t.h)(h,d,[s.value])}}}}var{componentName:Nu,create:Au,scope:Bu}=ee("mapping"),Tu=Au(Cu(Nu,Bu,!1)),jn=Tu;function ze(e,n,a,l){const o="fox-browse-item";let r=null;a?r=(0,t.h)(jn,{class:[`${o}__mapping`],source:a,modelValue:e,separator:l},{default:c=>(0,t.h)(kt,{class:[`${o}__text`]},{default:()=>c.text})}):r=(0,t.h)(kt,{class:[`${o}__text`]},{default:()=>e});const i={label:n.default,default:()=>r};return(0,t.h)(St,{class:[o]},i)}var Ur={type:{type:String,default:"text"},modelValue:{type:[String,Number],default:""},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}},Vu={...ge,...ve,...Ur};function $u(e,n,a,l,o){return{props:Vu,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(r,i){const{innerDisabled:c,disabled:s,innerReadonly:d,readonly:h,browse:u}=qe(r),{emitEvent:g}=Be({componentName:e,get readonly(){return h.value},get disabled(){return s.value}},r.prop??i.attrs.name),{toLocaleRefs:S}=(0,pe.useFoxI18n)(n),w=S(r,["placeholder"]),b=(0,t.ref)(!1),k=xe(r,"modelValue",null,g),f=e,v=(0,t.computed)(()=>({[f]:!0,"is-disabled":s.value,"is-readonly":h.value})),m=Te((0,t.computed)(()=>r.textAlign),"textAlign"),A=(0,t.computed)(()=>{const j={};return m.value&&(j["text-align"]=m.value),j}),C=j=>{let x=j.target.value;r.type==="digit"&&(x=Dl(x,!0)),r.type==="number"&&(x=Dl(x,!1)),r.maxLength&&x.length>Number(r.maxLength)&&(x=x.slice(0,Number(r.maxLength))),k.value=x,g("update:modelValue",x,j),g("change",x,j)};let y=xe(r,"hintText"),p=(0,t.ref)(!1);const N=j=>{let x=j.target.value;b.value=!0,fe(y.value)||(p.value=!0),g("focus",x,j)},T=j=>{setTimeout(()=>{p.value&&(p.value=!1),b.value=!1},0);let x=j.target.value;r.maxLength&&x.length>Number(r.maxLength)&&(x=x.slice(0,Number(r.maxLength))),g("blur",x,j)},V=(0,t.computed)(()=>({[`${f}__append`]:!0,"is-disabled":s.value,"is-readonly":h.value})),$=(0,t.computed)(()=>{const j={};return i.slots.append&&!H.value&&!P.value&&(j.display="none"),j}),H=(0,t.computed)(()=>we(r.unit)>0),X=(0,t.computed)(()=>!P.value),D=(0,t.computed)(()=>({[`${f}__unit`]:!0,hidden:!X.value})),M=j=>{k.value="",g("update:modelValue","",j),g("change","",j),g("clear","")},z=(0,t.computed)(()=>ke(r.clearable)&&!s.value&&!h.value),P=(0,t.computed)(()=>{let j=we(k.value)>0;return ke(r.clearable)&&j&&b.value}),K=(0,t.computed)(()=>({action:!0,hidden:!P.value}));return be({setDisabled:j=>{c.value=j},setReadonly:j=>{d.value=j}}),()=>{if(u.value==="on"&&(h.value||s.value))return l(k.value,i.slots);const j={class:v.value,style:A.value,type:r.type,maxlength:r.maxLength,placeholder:w.placeholder.value,disabled:s.value,readonly:h.value,value:k.value,"adjust-position":r.adjustPosition,"always-system":r.alwaysSystem,onInput:C,onFocus:N,onBlur:T},x=[],_=(0,t.h)("input",j);x.push(_);const ne=[];if(z.value){const J=(0,t.h)(o,{class:["action-icon"]}),I=(0,t.h)("view",{class:K.value,onClick:M},{default:()=>[J]});ne.push(I)}if(H.value){const J=(0,t.h)("view",{class:D.value},[r.unit]);ne.push(J)}const W=(0,t.h)("view",{class:V.value,style:$.value},{default:()=>ne});x.push(W);const U={default:()=>x};U.label=i.slots.default,U.prepend=i.slots.prepend,U.append=i.slots.append,U.fixedPreTip=i.slots.fixedPreTip,U.fixedTip=i.slots.fixedTip;const Q={..._e(r,Ur),hintText:y.value,hintVisible:p.value};return r.prop&&(Q.prop=`${r.prop}_item`),a(Q,U)}}}}var{componentName:Eu,create:Du,scope:Iu}=ee("input-item"),qu=Du($u(Eu,Iu,Pe,ze,oe.CircleClose)),ea=qu;function Hr(e,n=0){let a=`${e}`,l=a.indexOf(".");if(l==-1)return a;let o=l;for(let r=a.length-1;r>=l;r--)if(a.charAt(r)!="0"){o=r;break}return o-l<n?o=l+n+1:o!=l&&(o+=1),o>a.length?a=a.padEnd(o,"0"):a=a.substring(0,o),a}function jr(e,n,a=20){return typeof n=="string"&&(n=de(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?Hr(tr(`${e}`,`${n}`)):Hr(Bl(`${e}`,nr(`${n}`),20))}function xu(e,n=-1,a=!1,l=3,o=","){return un(e,de(n),a,l,o)}function Wr(e,n,a,l,o=!0){if(e==="")return"";if(e=lr(e),n=de(n),n==1)return e;if(l)e=jr(e,n),a&&(e=="0"&&o?e=`${e}.`.padEnd(de(a)+2,"0"):e=Bl(e,1,de(a)));else{let r=-1*n;e=jr(e,r)}return e}function Yr(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ke(n.minInclude),o=Tl(e,n.min);(l&&o==-1||!l&&(o==0||o==-1))&&(a.message="请输入不小于 {0} 的数值".replace("{0}",n.min),a.minValid=!1)}if(n.max!=null){let l=ke(n.maxInclude),o=Tl(e,n.max);(l&&o==1||!l&&(o==0||o==1))&&(a.maxValid=!1)}return a}var Xr={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean],default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:[String],required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:[Boolean],required:!1,default:!0},digits:{type:[Number],required:!1,default:3},separator:{type:[String],required:!1,default:","},placeholder:{type:[String],required:!1},textAlign:{type:[String],required:!1},adjustPosition:{type:[Boolean],default:!0},alwaysSystem:{type:[Boolean],default:!1},maxLength:{type:[String,Number]}},Pu={...ge,...ve,...Xr};function Mu(e,n,a,l,o){return{props:Pu,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(r,i){const{innerDisabled:c,disabled:s,innerReadonly:d,readonly:h,browse:u}=qe(r),{emitEvent:g}=Be({componentName:e,get readonly(){return h.value},get disabled(){return s.value}},r.prop??i.attrs.name),S=(0,t.ref)(!1),w=xe(r,"modelValue",null,g),b=(0,t.ref)("");(0,t.watch)([()=>w.value,()=>r.rates,()=>r.precision],([U,Q,J])=>{if(fe(U)){b.value="";return}const I=Wr(U,Q,J,!1);b.value!==I&&(b.value=I)},{immediate:!0});const k=(0,t.computed)(()=>{let U="";return S.value&&(U=b.value),U}),{t:f}=(0,pe.useFoxI18n)(n),v=(0,t.computed)(()=>{let U=r.placeholder??"";return!S.value&&!fe(b.value)?U=xu(b.value,r.decimalLength,r.autoPadding,r.digits,r.separator):U=fe(U)?f(["placeholder"]):U,U}),m=e,A=(0,t.computed)(()=>({[m]:!0,[`${m}__placeholder`]:b.value.length>0,"is-disabled":s.value,"is-readonly":h.value})),C=Te((0,t.computed)(()=>r.textAlign),"textAlign"),y=(0,t.computed)(()=>{const U={};return C.value&&(U["text-align"]=C.value),U}),p=(0,t.ref)(""),N=(0,t.computed)(()=>{let U=p.value;return fe(U)&&(U=r.errorTip??""),U}),T=(0,t.ref)(""),V=(0,t.ref)(!1),$=U=>{let Q=U.target.value;if(fe(Q)){b.value="",w.value="",g("update:modelValue","",U),g("change","",U),ke(r.showTip)&&V.value&&(V.value=!1);return}if(Q.length>=2){let J=Q;if(J.charAt(0)=="-"&&(J=J.substring(1)),J.length>=2&&J.charAt(0)=="0"&&J.charAt(1)!="."){(0,t.triggerRef)(b);return}}if(Q!="-"){if(!hn(Q)){(0,t.triggerRef)(b);return}if(r.integerLength!=-1&&dr(Q)>Number(r.integerLength)){(0,t.triggerRef)(b);return}if(r.decimalLength&&r.decimalLength!=-1&&fr(Q)>Number(r.decimalLength)){(0,t.triggerRef)(b);return}let J=Yr(Q,r);if(J.maxValid===!1){p.value=J.message,(0,t.triggerRef)(b);return}}else if(r.min!=null&&de(r.min)>=0){(0,t.triggerRef)(b);return}T.value=Q,ke(r.showTip)&&(V.value=Q.length>0),b.value=Q,w.value=Wr(Q,r.rates,r.precision,!0),g("update:modelValue",w.value,U),g("change",w.value,U)},H=U=>{if(S.value=!0,ke(r.showTip)){let Q=b.value;fe(Q)&&(Q=r.hintText),fe(Q)||(T.value=Q,V.value=!0)}p.value="",g("focus",w.value,U)},X=U=>{if(setTimeout(()=>{S.value=!1,ke(r.showTip)&&V.value===!0&&(V.value=!1)},0),!fe(b.value)){let Q=Yr(b.value,r);if(Q.minValid===!1||Q.maxValid===!1){p.value=Q.message;return}}g("update:modelValue",w.value,U),g("blur",w.value,U)},D=(0,t.computed)(()=>({[`${m}__append`]:!0,"is-disabled":s.value,"is-readonly":h.value})),M=(0,t.computed)(()=>{const U={};return i.slots.append&&!z.value&&!_.value&&(U.display="none"),U}),z=(0,t.computed)(()=>we(r.unit)>0),P=(0,t.computed)(()=>!_.value),K=(0,t.computed)(()=>({[`${m}__unit`]:!0,hidden:!P.value})),j=U=>{w.value="",g("update:modelValue","",U),g("change","",U),g("clear","")},x=(0,t.computed)(()=>ke(r.clearable)&&!s.value&&!h.value),_=(0,t.computed)(()=>{let U=we(w.value)>0;return ke(r.clearable)&&U&&S.value}),ne=(0,t.computed)(()=>({action:!0,hidden:!_.value}));be({setDisabled:U=>{c.value=U},setReadonly:U=>{d.value=U}});const W=()=>w.value?v.value:w.value;return()=>{if(u.value==="on"&&(h.value||s.value))return l(W(),i.slots);let U={class:A.value,style:y.value,type:"digit",maxlength:r.maxLength,placeholder:v.value,disabled:s.value,readonly:h.value,value:k.value,"adjust-position":r.adjustPosition,"always-system":r.alwaysSystem,onInput:$,onFocus:H,onBlur:X},Q=[],J=(0,t.h)("input",U);Q.push(J);let I=[];if(x.value){const le=(0,t.h)(o,{class:["action-icon"]}),L=(0,t.h)("view",{class:ne.value,onClick:j},{default:()=>[le]});I.push(L)}if(z.value){const le=(0,t.h)("view",{class:K.value},[r.unit]);I.push(le)}const R=(0,t.h)("view",{class:D.value,style:M.value},{default:()=>I});Q.push(R);const G={default:()=>Q};G.label=i.slots.default,G.prepend=i.slots.prepend,G.append=i.slots.append,G.fixedPreTip=i.slots.fixedPreTip,G.fixedTip=i.slots.fixedTip;const Z={..._e(r,Xr),errorTip:N.value,hintText:T.value,hintVisible:V.value,hintType:"number"};return r.prop&&(Z.prop=`${r.prop}_item`),a(Z,G)}}}}var{componentName:zu,create:Lu,scope:Ru}=ee("money-item"),Fu=Lu(Mu(zu,Ru,Pe,ze,oe.CircleClose)),ta=Fu,na={modelValue:{type:[String,Number],default:""},textAlign:{type:String,default:""},limitShow:{type:Boolean,default:!1},maxLength:{type:[String,Number],default:""},rows:{type:[String,Number],default:"2"},placeholder:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autosize:{type:[Boolean,Object],default:!1},autofocus:{type:Boolean,default:!1}},{componentName:Ou,create:Ku,scope:Uu}=ee("textarea"),Hu=Ku({props:{...na},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=(0,pe.useFoxI18n)(Uu);const l=a(e,["placeholder"]),o=(0,t.ref)(),r=(0,t.computed)(()=>{const g=Ou;return{[g]:!0,[`${g}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&s(String(e.modelValue)),e.autosize&&(0,t.nextTick)(c)});const i=(0,t.computed)(()=>({textAlign:e.textAlign})),c=()=>{let g=o.value;g.style.height="auto";let S=g.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:w,minHeight:b}=e.autosize;w!==void 0&&(S=Math.min(S,w)),b!==void 0&&(S=Math.max(S,b))}S&&(console.info("----------- height",S),g.style.height=S+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(c)});const s=(g,S)=>{e.maxLength&&g.length>Number(e.maxLength)&&(g=g.substring(0,Number(e.maxLength))),n("update:modelValue",g,S),n("change",g,S)};return{...l,textareaRef:o,classes:r,styles:i,change:g=>{const S=g.target;s(S.value,g)},focus:g=>{e.disabled||e.readonly||n("focus",g)},blur:g=>{if(e.disabled||e.readonly)return;let S=g.target.value;s(S,g),n("blur",{value:S,event:g})}}}}),ju=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Wu={key:0,class:"fox-textarea__limit"};function Yu(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:(0,t.normalizeStyle)(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...i)=>e.change&&e.change(...i)),onBlur:n[1]||(n[1]=(...i)=>e.blur&&e.blur(...i)),onFocus:n[2]||(n[2]=(...i)=>e.focus&&e.focus(...i)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,ju),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wu,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var Wn=re(Hu,[["render",Yu]]);function Xu(e,n,a,l){return{props:{...ge,...ve,...na},emits:["update:modelValue","change","blur","focus","setValue"],setup(o,r){const i=$n((0,t.computed)(()=>o.disabled)),c=Vn((0,t.computed)(()=>o.readonly)),{emitEvent:s}=Be({componentName:e,get readonly(){return c.value},get disabled(){return i.value}},o.prop??r.attrs.name),d=xe(o,"modelValue",null,s),h=b=>{d.value=b,s("update:modelValue",b,{}),s("change",b,{})};let u=xe(o,"hintText"),g=(0,t.ref)(!1);const S=b=>{fe(u.value)||(g.value=!0),s("focus",d.value,b)},w=b=>{setTimeout(()=>{g.value&&(g.value=!1)},0),s("blur",d.value,b)};return()=>{const b={...ye(o,na),disabled:i.value,readonly:c.value,value:d.value,"onUpdate:modelValue":h,onFocus:S,onBlur:w},k=[],f=(0,t.h)(l,b);k.push(f);const v={default:()=>k};v.label=r.slots.default,v.prepend=r.slots.prepend,v.append=r.slots.append,v.fixedPreTip=r.slots.fixedPreTip,v.fixedTip=r.slots.fixedTip;const m={...ye(o,ve,ge)};return o.prop&&(m.prop=`${o.prop}_item`),(0,t.h)(a,m,v)}}}}var{componentName:Qu,create:Gu,scope:Zu}=ee("textarea-item"),_u=Gu(Xu(Qu,Zu,St,Wn)),la=_u;function Ju(e){return e===window}var De=e=>{const n=(0,t.unref)(e);if(Ju(n)){const a=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:a,bottom:l,width:a,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Qr=10;function Gr(e,n){return e>n&&e>Qr?"horizontal":n>e&&n>Qr?"vertical":""}function Yn(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Xn(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const c=i;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Gr(e.offsetX,e.offsetY))}),start:(i=>{if(l(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const c=i;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:a,state:e}}function lt(){const e=(0,t.ref)(0),n=(0,t.ref)(0),a=(0,t.ref)(0),l=(0,t.ref)(0),o=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(0),c=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(0),h=(0,t.ref)(""),u=()=>h.value==="vertical",g=()=>h.value==="horizontal",S=()=>{i.value=0,c.value=0,s.value=0,d.value=0,h.value="",a.value=0};return{move:(k=>{if(k.touches){const f=k.touches[0];i.value=f.clientX-e.value,c.value=f.clientY-n.value,o.value=f.clientX,r.value=f.clientY}else{const f=k;i.value=f.clientX-e.value,c.value=f.clientY-n.value,o.value=f.clientX,r.value=f.clientY}s.value=Math.abs(i.value),d.value=Math.abs(c.value),l.value=Date.now()-a.value,h.value||(h.value=Gr(s.value,d.value))}),start:(k=>{if(S(),k.touches){const f=k.touches[0];e.value=f.clientX,n.value=f.clientY}else{const f=k;e.value=f.clientX,n.value=f.clientY}a.value=Date.now()}),reset:S,startX:e,startY:n,startTime:a,duration:l,moveX:o,moveY:r,deltaX:i,deltaY:c,offsetX:s,offsetY:d,direction:h,isVertical:u,isHorizontal:g}}var ed=2e3,Zr=()=>ed++,at={visible:{type:Boolean,default:!1},zIndex:{type:[String,Number]},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:[String,Array],default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},td=(e,n)=>({components:n,props:{...at},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:l}){const o=(0,t.reactive)({zIndex:0,showSlot:!0,closed:a.closeable});a.visible&&(o.zIndex=Zr());const r=(0,t.computed)(()=>{const b=e,k=[b,`${b}--${a.position}`];return a.round&&k.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&k.push(`${b}--${a.position}--safebottom`),typeof a.popClass=="string"?k.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(f=>{k.push(f)}),k}),i=(0,t.computed)(()=>({zIndex:o.zIndex,transitionDuration:`${a.duration}s`,...a.style})),c=(0,t.computed)(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),s=()=>{l("update:visible",!0),a.zIndex?o.zIndex=a.zIndex:o.zIndex=Zr(),a.destroyOnClose&&(o.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),a.destroyOnClose&&setTimeout(()=>{o.showSlot=!1},+a.duration*1e3)},h=b=>{l("click-pop",b)},u=b=>{b.stopPropagation(),l("click-close-icon",b),l("update:visible",!1)},g=b=>{l("click-overlay",b),a.closeOnClickOverlay&&l("update:visible",!1)},S=b=>{l("opend",b)},w=b=>{l("closed",b)};return(0,t.watch)(()=>a.visible,b=>{a.visible?s():d()}),(0,t.watch)(()=>a.closeable,b=>{o.closed=b}),{...(0,t.toRefs)(o),popStyle:i,transitionName:c,classes:r,onClick:h,onClickCloseIcon:u,onClickOverlay:g,onOpened:S,onClosed:w}}}),_r={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},aa={...at,..._r,modelValue:{type:[String,Number,Boolean,Object,Array],default:()=>""},text:{type:[Array],default:()=>[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:()=>[]},sourceFilter:{type:[Function]},params:{type:Object},valueType:{type:String,required:!1,default:()=>"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String},isAutoBackFill:{type:[Boolean],default:()=>!0},poppable:{type:[Boolean],default:()=>!0}},Jr=36;function nd(){return Jr}function ld(e){Jr=e}function Oe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function oa(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function ad(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function it(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ei(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var od=class{proxy;constructor(e){this.proxy=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function rd(){return new od((0,t.getCurrentInstance)().proxy)}function ti(e,n,a){return!(Oe(e,n)!==Oe(e,a)||it(e,n)!==it(e,a))}function id(e,n,a,l){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const o=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const c=n[i];let s=a[i].findIndex(d=>{if(r==="text")return Oe(e,d)===c;if(r==="value"){let h=it(e,d);return h==null&&(h=Oe(e,d)),h===c}else if(r==="item")return ti(e,d,c)});if(s==-1)break;o.push(s)}else{let i=a[0];for(let c=0;c<n.length;c++){const s=n[c];let d=i.findIndex(u=>{if(r==="text")return Oe(e,u)===s;if(r==="value"){let g=it(e,u);return g==null&&(g=Oe(e,u)),g===s}else if(r==="item")return ti(e,u,s)});if(d==-1)break;o.push(d);const h=oa(e,i[d]);if(!Array.isArray(h))break;i=h}}return o}function ni(e,n,a,l){if(a.length==0)return null;const o={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const c=a[i];let s=n[i];s<0&&s>=c.length&&(s=0);const d=c[s],h=Oe(e,d);if(o.texts.push(h),o.items.push(d),r==="text")o.values.push(h);else if(r==="value"){let u=it(e,d);u==null&&(u=h),o.values.push(u)}else o.values.push(d)}else{let i=a[0];for(let c=0;c<n.length;c++){let s=n[c];s<0&&s>=i.length&&(s=0);const d=i[s],h=Object.assign({},d);h.children=null;const u=Oe(e,d);if(o.texts.push(u),o.items.push(h),r==="text")o.values.push(u);else if(r==="value"){let g=it(e,d);g==null&&(g=u),o.values.push(g)}else o.values.push(h);if(!Array.isArray(d.children))break;i=d.children}}return o}function li(e){return{text:e,value:e}}var sd=15,cd=300,ud=200,{create:dd}=ee("picker-column");function fd(e){e.stopPropagation()}function md(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&fd(e)}var hd={source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},..._r},pd=dd({props:hd,emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=(0,t.computed)(()=>({"fox-picker__list":!0})),l=(0,t.computed)(()=>({height:`${de(e.visibleItemCount)*+e.itemHeight}px`})),o=(0,t.computed)(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=(0,t.computed)(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=p=>{const N=p+1;return N>=u.currIndex+8||N<=u.currIndex-8},c=(0,t.computed)(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${u.deg})`,top:`${r.value}px`})),s=p=>{const N=p+1;return`transform: rotate3d(1, 0, 0, ${-u.rotation*N}deg) translate3d(0px, 0px, 104px)`},d=(0,t.computed)(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${u.scrollDistance+r.value}px, 0)`})),h=(0,t.ref)(null),u=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),g=p=>Oe(e,p),S=p=>it(e,p),w=lt(),b=()=>{u.transitionEndTrigger&&(u.transitionEndTrigger(),u.transitionEndTrigger=null)},k=(p,N=!1,T=!1)=>{if(u.currIndex=p,N){const V=()=>{u.moving=!1,n("update:modelValue",p),n("change",p)};T?u.transitionEndTrigger=V:V()}},f=(p,N,T)=>{let V=p+u.startDistance;if(N==="end"){const $=-(e.source.length-1)*e.itemHeight;V<$&&(V=$),V>0&&(V=0);let H=Math.abs(Math.round(-V/e.itemHeight));const X=-H*e.itemHeight,D=`${(H+1)*u.rotation}deg`;k(H,!0,T?T>0:!1),v(X,N,T,D)}else{let $=(-V/e.itemHeight+1)*u.rotation;const H=(e.source.length+1)*u.rotation,X=0;if($=Math.min(Math.max($,X),H),e.threeDimensional&&($<X||$>H))return;v(V,null,void 0,`${$}deg`)}},v=(p=0,N,T=ud,V)=>{N==="end"?u.scrollTime=T:u.scrollTime=0,u.deg=V,u.scrollDistance=p},m=(p,N)=>(p=Math.abs(p/N)/.003*(p<0?-1:1),p),A=p=>{e.readonly||(u.startDistance=u.scrollDistance,w.start(p),u.transitionEndTrigger=null)},C=p=>{e.readonly||(u.moving=!0,w.move(p),w.isVertical()&&(u.moving=!0,md(p,!0)),f(w.deltaY.value,"",0))},y=()=>{if(e.readonly)return;const p=w.deltaY.value,N=w.duration.value;N<cd&&Math.abs(p)>sd?f(m(p,N),"end",de(e.swipeDuration)):f(p,"end",0)};return(0,t.watch)(()=>e.modelValue,p=>{const N=u.currIndex-p;N!==0&&(u.currIndex=p,u.startDistance=u.scrollDistance,f(N*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,p=>{if(u.currIndex>=p.length){const N=(p.length-1-u.currIndex)*e.itemHeight;u.startDistance=u.scrollDistance,f(N,"end",0)}}),(0,t.watch)(()=>e.visible,p=>{p===!1&&b()}),(0,t.onMounted)(()=>{f(-e.modelValue*e.itemHeight)}),{classes:a,styles:l,contentClasses:o,itemText:g,itemValue:S,...(0,t.toRefs)(u),roller:h,getItemText:Oe,onTouchStart:A,onTouchMove:C,onTouchEnd:y,isHidden:i,setRollerStyle:s,touchRollerStyle:c,touchTileStyle:d,stopMomentum:b}}}),gd={key:1,class:"fox-picker__item-tile"};function yd(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[(0,t.createElementVNode)("view",{ref:"roller",class:(0,t.normalizeClass)(e.contentClasses),style:(0,t.normalizeStyle)(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.source,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${c}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(c)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(c))},(0,t.toDisplayString)(e.itemText(i)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",gd,(0,t.toDisplayString)(e.itemText(i)),1))],64))),128))],6)],38)}var bd=re(pd,[["render",yd]]),Ut=0,ai="fox-overflow-hidden",oi=()=>Ze?document.body:{classList:[]},vd=e=>[()=>{if(e())try{!Ut&&oi().classList.add(ai),Ut++}catch{}},()=>{if(e()&&Ut)try{Ut--,!Ut&&oi().classList.remove(ai)}catch{}}],Sd={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:kd,create:wd}=ee("overlay"),Cd=wd({props:{...Sd},emits:["click","update:visible"],setup(e,{emit:n}){const[a,l]=vd(()=>e.lockScroll),o=(0,t.computed)(()=>({[kd]:!0,[e.overlayClass]:!0})),r=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,c=>{c?a():l()}),{classes:o,style:r,onClick:c=>{n("click",c),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Nd(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"overlay-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var st=re(Cd,[["render",Nd]]),{componentName:Ad,create:Bd}=ee("popup"),Td=Bd(td(Ad,{FoxOverLay:st,Close:oe.Close}));function Vd(e,n,a,l,o,r){const i=(0,t.resolveComponent)("FoxOverLay"),c=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(i,(0,t.mergeProps)({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.closed?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:(0,t.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(c)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var Se=re(Td,[["render",Vd]]),$d=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-picker__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(Se,_e({...e},{poppable:!1}),n):n?.default?.()??null}}),Ed=$d,{create:Dd,componentName:ri,scope:Id}=ee("picker"),qd=Dd({components:{Column:bd,Wrapper:Ed},props:aa,emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:l}=(0,pe.useFoxI18n)(Id),o=a(e,["title","cancelText","clearText","confirmText"]),r=(0,t.ref)(null),i=(0,t.ref)(nd());(0,t.watch)(()=>e.visible,z=>{z&&i.value<=0&&setTimeout(()=>{r.value&&(i.value=De(r.value).height,ld(i.value))},50)});const c=(0,t.computed)(()=>({[ri]:!0})),s=(0,t.computed)(()=>{const z=[];return Array.isArray(e.popClass)?z.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&z.push(e.popClass),z.push(`${ri}__popup`),z.join(" ")}),d=rd(),h=(0,t.ref)("singleColumn");let u=(0,t.ref)([]);const g=(0,t.computed)(()=>{if(typeof e.sourceFilter=="function"){const z=[];for(let P=0;P<u.value.length;P++){const K=u.value[P];if(Array.isArray(K)){const j=K.filter(e.sourceFilter);z.push(j)}}return z}return u.value});(0,t.watch)([()=>e.source,()=>e.params],async([z,P])=>{if(z){let K=await d.load("picker",z,P);if(K.length>0){let j=K[0];if(Array.isArray(j)){if(typeof j[0]=="string"){let x=K,_=[];x.forEach(ne=>{let W=ne.map(U=>li(U));_.push(W)}),u.value=_}else u.value=K;h.value="multipleColumn"}else if(typeof j=="string"){let x=K,_=[],ne=x.map(W=>li(W));_.push(ne),u.value=_,h.value="singleColumn"}else{const x=oa(e,j);Array.isArray(x)?(h.value="cascade",u.value=[K]):(h.value="singleColumn",u.value=[K])}}else u.value=[]}},{immediate:!0});const S=(0,t.ref)([]),w=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),b=(0,t.ref)([]);let k=null;const f=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>g.value],([z,P])=>{let K=id(e,z,P,h.value);if(!$e(K,f.value)){f.value=K,k||(k=K?[...K]:[]);let j=ni(e,K,P,h.value);j&&(S.value=j.texts,$e(w.value,j.values)||(w.value=j.values),$e(b.value,j.items)||(b.value=j.items),n("update:text",S.value))}});let v="";const m=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,z=>{m.value=z,z&&(v="active",f.value.length>0&&(k=[...f.value]))});const A=z=>{let P=ei(e,z);return Ve(P)?P.defaultIndex??0:0},C=z=>{if(e.readonly===!0)return!0;let P=ei(e,z);return Ve(P)?P.readonly??!1:!1},y=(z,P)=>{let K=f.value;K[z]=P;for(let x=0;x<z;x++)K[x]==null&&(K[x]=A(x));if(h.value==="cascade")for(let x=z+1;x<N.value.length;x++){let _=A(x);x<K.length?K[x]=_:K.push(_)}else for(let x=K.length;x<N.value.length;x++){let _=A(x);K.push(_)}f.value=K;let j=ni(e,K,g.value,h.value);j&&(S.value=j.texts,w.value=j.values,b.value=j.items)},p=z=>z<f.value.length?f.value[z]:A(z),N=(0,t.computed)(()=>{if(g.value.length==0)return[];if(h.value=="singleColumn"||h.value=="multipleColumn")return g.value;let z=[],P=0,K=g.value[0],j=0;for(;;){let x=K.map(W=>{let U=Object.assign({},W);return ad(e,U,null),U});z.push(x),P>=f.value.length?j=0:j=f.value[P],(j<0||j>=K.length)&&(j=0);let _=K[j];const ne=oa(e,_);if(!Array.isArray(ne))break;K=ne,P++}return z}),T=(0,t.computed)(()=>de(+e.visibleItemCount-1)/2*i.value),V=(z=!1)=>{if(e.readonly===!0){z&&n("update:visible",!1);return}let P=g.value.length-1;for(;P>=0&&!(f.value[P]===null||f.value[P]===void 0);P--);if(P>=0&&y(P,0),h.value==="singleColumn"){let K=w.value.length>0?w.value[0]:"",j=b.value.length>0?b.value[0]:null;n("update:modelValue",K),n("update:text",S.value),n("change",K,j),z&&(n("confirm",K),n("update:visible",!1))}else n("update:modelValue",w.value),n("update:text",S.value),n("change",w.value,b.value),z&&(n("confirm",w.value),n("update:visible",!1))},$=(z,P)=>{v!=="close"&&(y(z,P),e.isAutoBackFill&&V(!m.value))},H=()=>{v==="active"&&(v="confirm",k=Array.isArray(f.value)?[...f.value]:[],V(!0))},X=()=>{h.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),f.value=[],k=null};return{...o,pickerLineRef:r,classes:c,popClasses:s,columns:N,dataType:h,show:m,itemHeight:i,top:T,isReadonly:C,getIndex:p,change:$,close:()=>{if(v==="active"){if(v="close",k===null||k.length===0)X();else{if(Array.isArray(k))for(let z=0;z<k.length;z++)y(z,k[z]);V(!1)}n("close"),n("update:visible",!1)}},confirm:H,clear:()=>{if(v==="active"){if(v="clear",e.readonly===!0){n("update:visible",!1);return}X(),k=null,n("clear",""),n("update:visible",!1)}}}}}),xd={key:0,class:"fox-picker__bar"},Pd={class:"fox-picker__title"},Md={class:"fox-picker__bar__action"},zd={class:"fox-picker__column"};function Ld(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Column"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(c,{position:"bottom","pop-class":e.popClasses,visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable,poppable:e.poppable},{default:(0,t.withCtx)(()=>[e.poppable?((0,t.openBlock)(),(0,t.createElementBlock)("view",xd,[(0,t.createElementVNode)("view",Pd,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Md,[(0,t.createElementVNode)("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...s)=>e.close&&e.close(...s))},(0,t.toDisplayString)(e.cancelText),1),(0,t.createElementVNode)("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},(0,t.toDisplayString)(e.confirmText),1),e.clearText?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...s)=>e.clear&&e.clear(...s))},(0,t.toDisplayString)(e.clearText),1)):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"top"),(0,t.createElementVNode)("view",zd,[(0,t.createElementVNode)("view",{class:"fox-picker__mask",style:(0,t.normalizeStyle)({backgroundSize:`100% ${e.top}px`})},null,4),(0,t.createElementVNode)("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:(0,t.normalizeStyle)({top:` ${e.top}px`})},null,4),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:"fox-picker__columnitem"},[(0,t.createVNode)(i,{visible:e.show,source:s,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":h=>e.change(d,h),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["pop-class","visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable","poppable"])],2)}var Ht=re(qd,[["render",Ld]]),Rd={...ge,...ve,...aa,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Fd(e,n,a,l,o,r,i,c=!0){return{props:Rd,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{innerDisabled:h,disabled:u,innerReadonly:g,readonly:S,browse:w}=qe(s),{emitEvent:b}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return u.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),v=(0,t.ref)(!1),m=xe(s,"modelValue",null,b),A=(0,t.ref)([]),C=(0,t.computed)(()=>Array.isArray(A.value)?A.value.join(s.separator):A.value),y="fox-input-item",p=(0,t.computed)(()=>({[y]:!0,"is-disabled":u.value,"is-readonly":S.value})),N=Te((0,t.computed)(()=>s.textAlign),"textAlign"),T=(0,t.computed)(()=>{const R={};return N.value&&(R["text-align"]=N.value),R}),V=(0,t.ref)(!1),$=()=>{V.value=!0},H=R=>{V.value=R},X=R=>{m.value=R,b("update:modelValue",R)},D=(R,G)=>{b("change",R,G)},M=R=>{let G=R.target.value;v.value=!0,b("focus",G,R)},z=R=>{setTimeout(()=>{v.value=!1},0);let G=R.target.value;s.maxLength&&G.length>Number(s.maxLength)&&(G=G.slice(0,Number(s.maxLength))),b("blur",G,R)},P=R=>{A.value=R,Array.isArray(R)&&R.length===0?b("update:text",R[0]):b("update:text",R)},K=(0,t.computed)(()=>({[`${y}__append`]:!0,"is-disabled":u.value,"is-readonly":S.value})),j=(0,t.computed)(()=>we(s.unit)>0),x=(0,t.computed)(()=>we(s.unit)>0&&!v.value),_=(0,t.computed)(()=>({hidden:!x.value})),ne=R=>{m.value="",b("update:modelValue","",R),b("change","",R),b("clear","")},W=(0,t.computed)(()=>s.clearable&&!u.value&&!S.value),U=(0,t.computed)(()=>we(m.value)>0&&v.value),Q=R=>{U.value?ne(R):$()},J=(0,t.computed)(()=>U.value&&W.value?o:r),I=(0,t.computed)(()=>({action:!0}));return be({setDisabled:R=>{h.value=R},setReadonly:R=>{g.value=R}}),()=>{if(w.value==="on"&&(S.value||u.value))return l(C.value,d.slots);const R={class:p.value,style:T.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:C.value,onClick:$,onFocus:M,onBlur:z};c&&(R.disabled=!0);const G=[],Z=(0,t.h)("input",R);G.push(Z);const le=[],L=(0,t.h)(J.value,{class:["action-icon"]}),F=(0,t.h)("view",{class:I.value,onClick:Q},{default:()=>[L]});if(le.push(F),j.value){const ae=(0,t.h)("view",{class:_.value},[s.unit]);le.push(ae)}const q=(0,t.h)("view",{class:K.value},{default:()=>le});G.push(q);const E={default:()=>G};E.label=d.slots.default,E.prepend=d.slots.prepend,E.append=d.slots.append,E.fixedPreTip=d.slots.fixedPreTip,E.fixedTip=d.slots.fixedTip;const O=ye(s,aa);O.disabled=!1,O.readonly=u.value||S.value,O.visible=V.value,O["onUpdate:visible"]=H,O.modelValue=m.value,O["onUpdate:modelValue"]=X,O.text=A.value,O["onUpdate:text"]=P,O.onChange=D;const Y=(0,t.h)(i,O);E.hide=()=>[Y];const te=ye(s,ve,ge);return s.prop&&(te.prop=`${s.prop}_item`),a(te,E)}}}}var{componentName:Od,create:Kd,scope:Ud}=ee("picker-item"),Hd=Kd(Fd(Od,Ud,Pe,ze,oe.CircleClose,oe.ArrowRight,Ht,!1)),ra=Hd,jd=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:a}){return()=>e.poppable?(0,t.h)(Se,{...a},n):n?.default?.()??null}}),Wd=jd,Qn=(e,n,a)=>e.map(l=>{const{value:o="value",text:r="text",children:i="children"}=a??{},{[o]:c,[r]:s,[i]:d,...h}=l,u={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:c,text:s,children:d,_parent:n};return u.children&&u.children.length&&(u.children=Qn(u.children,u,a)),u}),ii=(e,n)=>{let a=0,l;for(;(l=e[a++])&&n(l)!==!0;)l.children&&l.children.length&&ii(l.children,n)},Yd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Xd=(e,n)=>{const{topId:a,idKey:l,pidKey:o,sortKey:r}={...Yd,...n||{}};let i=[],c={};return e.forEach(s=>{s={...s};const{[l]:d,[o]:h}=s,u=c[h]=c[h]||[];!i.length&&h===a&&(i=u),u.push(s),s.children=c[d]||(c[d]=[])}),r&&Object.keys(c).forEach(s=>{c[s].length>1&&c[s].sort((d,h)=>d[r]-h[r])}),c=null,i},ia={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},si=(e,n)=>n[e.textKey],jt=(e,n)=>n[e.valueKey],Qd=(e,n)=>n[e.visibleKey],ci=(e,n)=>n[e.disabledKey],Gd=(e,n)=>{const a=n[e.doitKey];return ke(a)},Zd=(e,n)=>{const a=n[e.numKey];return a==null?null:de(n[a])},ui=(e,n,a)=>{const l=e.itemOptions;return typeof l=="function"?l(n,a):l||null};function _d(e,n,a,l,o,r=!1){return{props:ia,emits:["update:modelValue","change","click"],setup(i,{slots:c,emit:s}){const d=(0,t.computed)(()=>{const q={};return q[`${e}`]=!0,q}),h=(0,t.computed)(()=>{const q={};return q[`${e}__titles`]=!0,q[`${i.direction}`]=!0,i.align&&(q[`${i.align}`]=!0),i.scroll===!0&&(q.scrollable=!0),i.shape&&(q[`${i.shape}`]=!0),i.showScrollArrow?(J.value===!0&&(q["has-left-scroll-arrow "]=!0),I.value===!0&&(q["has-right-scroll-arrow "]=!0)):i.showQuickNavigation&&(q["has-navigation"]=!0),q}),u=(0,t.computed)(()=>({})),g=(0,t.computed)(()=>{if(!i.gutter)return 0;const q=ce(i.gutter);return q<=0?0:q}),S=(0,t.ref)(i.modelValue);(0,t.watch)(()=>i.modelValue,q=>{S.value!==q&&(S.value=q,j(!1))});const w=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),b=(0,t.computed)(()=>{const q={};return f.value||(q.display="none"),q}),k=(0,t.ref)(),f=(0,t.ref)(!1),v=()=>{m(!f.value)},m=q=>{const E=q;E?(f.value=E,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.value["fox-tabs-bar__popup--hide"]=!0,k.value?k.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},A=(0,t.ref)(),C=(0,t.ref)([]),y=(q,E)=>{C.value[E]=q},p=q=>E=>{y(E,q)},N=(q,E)=>{const O=A.value,Y=C.value;if(!O||!Y||!Y[q])return;const te=Y[q];let ae=0;i.direction==="vertical"?ae=te.offsetTop-(O.offsetHeight-te.offsetHeight)/2:ae=te.offsetLeft-(O.offsetWidth-te.offsetWidth)/2,T(O,ae,E?0:.3,i.direction)},T=(q,E,O,Y)=>{let te=0;const ae=Y==="horizontal"?q.scrollLeft:q.scrollTop,se=O===0?1:Math.round(O*1e3/16);function ue(){Y==="horizontal"?q.scrollLeft+=(E-ae)/se:q.scrollTop+=(E-ae)/se,++te<se&&je(ue)}ue()},V=(q,E)=>{const O=jt(i,q),Y={};return Y[`${e}__titles-item`]=!0,Y.disabled=ci(i,q),Y.active=O===S.value,i.shape&&(Y[`${i.shape}`]=!0),i.ellipsis&&(Y.ellipsis=!0),E&&(E.class&&(Y[`${E.class}`]=!0),E.disabled===!0&&(Y.disabled=E.disabled)),Y},$=(q,E)=>{const O={};if(g.value>0){const Y=Math.abs(g.value/2);i.direction==="vertical"?(O["margin-top"]=`${Y}px`,O["margin-bottom"]=`${Y}px`):(O["margin-left"]=`${Y}px`,O["margin-right"]=`${Y}px`)}return E&&E.style&&Object.assign(O,E.style),O},H=(q,E)=>`${jt(i,q)??E}`,X=(q,E)=>{const O=jt(i,q),Y={};Y[`${e}__popup-item`]=!0,Y.disabled=ci(i,q),Y.active=O===S.value,i.shape&&(Y[`${i.shape}`]=!0);const te=ui(i,q,E);return te&&te.disabled===!0&&(Y.disabled=te.disabled),Y},D=(0,t.computed)(()=>(i.data??[]).filter(q=>Qd(i,q)!==!1)),M=(q,E)=>{const O=jt(i,q);if(s("click",q,E),S.value==O)return;const Y=()=>{S.value=O,i.scroll&&N(E,!1),s("update:modelValue",O),s("change",q,E)};if(typeof i.beforeChange=="function"){const te=i.beforeChange(q,E);dt(te)?te.then(ae=>{ae!==!1&&Y()}).catch(()=>{Y()}):te!==!1&&Y()}else Y()},z=(q,E)=>function(){M(q,E)},P=(q,E)=>{M(q,E),m(!1)},K=(q,E)=>function(){P(q,E)},j=q=>{if(!Array.isArray(i.data)||!i.scroll)return;Q()&&le();const E=i.data.findIndex(O=>jt(i,O)===S.value);E!==-1&&N(E,q)},x=()=>{Q()||L()};(0,t.watch)(()=>i.data,()=>{setTimeout(j,0)}),(0,t.onMounted)(()=>{j(!0)}),(0,t.onBeforeUnmount)(()=>{x()});const _=(q,E)=>{if(c.item)return c.item({item:q,index:E});const O=ui(i,q,E),Y=[];if(c.text){const ae=c.text({item:q,index:E});Y.push(ae)}else{const ae=[];if(O?.doit===!0||Gd(i,q)){const Qe=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ae.push(Qe)}const se=O?.num??Zd(i,q);if(se){let Qe="";const Re=de(se);Re>=100?Qe="99+":Qe=`${Re}`;const rn=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[Qe]);ae.push(rn)}const ue={class:`${e}__titles-item-text`};ae.push(si(i,q));const Xe=(0,t.h)("view",ue,ae);Y.push(Xe)}const te=(0,t.h)("view",{class:`${e}__titles-item-line`});return Y.push(te),(0,t.h)("view",{ref:p(E),class:V(q,O),style:$(q,O),key:H(q,E),onClick:z(q,E)},Y)},ne=()=>{const q=c.default?c.default():[];if(q.length===0)for(let E=0;E<D.value.length;E++){const O=D.value[E],Y=_(O,E);q.push(Y)}return(0,t.h)("view",{ref:A,class:h.value,style:u.value},q)},W=()=>{let q=null;return c.navigation?q=c.navigation():q=(0,t.h)(a),(0,t.h)("view",{class:`${e}__navigation`,onClick:v},[q])},U=()=>{const q=[];for(let E=0;E<D.value.length;E++){const O=D.value[E];let Y=null;c.popupItem?Y=c.popupItem({item:O,index:E}):Y=si(i,O);const te=(0,t.h)("view",{class:X(O,E),key:H(O,E),onClick:K(O,E)},[Y]);q.push(te)}return(0,t.h)("view",{class:w.value,style:b.value},q)},Q=()=>i.showScrollArrow&&i.direction=="horizontal",J=(0,t.ref)(!1),I=(0,t.ref)(!1),R=q=>{const E=A.value,O=C.value;if(!(!E||!O))if(q==="left"){const Y=E.scrollLeft;let te=Y;for(let ae=0;ae<O.length;ae++){const se=O[ae].offsetLeft;if(Y-se<0)break;te=se}T(E,te,.3,"horizontal")}else{const Y=E.scrollLeft;let te=Y,ae=E.offsetWidth;for(let se=O.length-1;se>=0;se--){const ue=O[se].offsetLeft+O[se].offsetWidth;if(ue-Y<E.offsetWidth){te+=ae-ue;break}ae=ue}T(E,te,.3,"horizontal")}},G=Ie(()=>{const q=A.value;if(!q)return;let E=q.scrollLeft>0;E!==J.value&&(J.value=E);let O=q.scrollWidth-q.scrollLeft>q.offsetWidth;O!==I.value&&(I.value=O)},50),Z=q=>{G()},le=()=>{const q=A.value;q&&(G(),q.addEventListener("scroll",Z))},L=()=>{const q=A.value;q&&q.removeEventListener("scroll",Z)},F=q=>{if(q==="left"&&J.value!==!0||q==="right"&&I.value!==!0)return null;let E=null;return q==="left"?c.leftArrow?E=c.leftArrow():E=(0,t.h)(l):c.rightArrow?E=c.rightArrow():E=(0,t.h)(o),(0,t.h)("view",{class:[`${e}__scroll-arrow`,q],onClick:()=>{R(q)}},[E])};return()=>{const q=[],E=ne();if(q.push(E),Q()){const O=F("left");O&&q.push(O);const Y=F("right");Y&&q.push(Y)}else if(i.showQuickNavigation){const O=W();q.push(O);const Y=U();q.push(Y)}return(0,t.h)("view",{class:d.value},q)}}}}var{create:Jd,componentName:ef,scope:tf}=ee("tabs-bar"),nf=Jd(_d(ef,tf,oe.MoreH,oe.Left,oe.Right,!1)),Wt=nf,di=Symbol("TabsStatesKey"),sa={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},transition:{type:[Boolean],default:()=>!0},height:{type:[String,Number]},width:{type:[String,Number]}},lf=15,af=300,of=200;function rf(e,n,a=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*a}function fi(e,n=0,a,l,o=of){a==="end"?e.style.transition=`transform ${o}ms linear`:e.style.transition="transform 0ms linear",l==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}var sf=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,n,a,l=1,o){this.onStart=e,this.onMove=n,this.onEnd=a,this.momentumReduceRatio=l,this.isTouch=o??Yn()}open(e){this.el=e;const n=Xn(),a=(l,o,r)=>{const i={delta:l,direction:o,type:r};this.onMove(i)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;n.start(l),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const o={delta:0,type:"start",direction:this.direction};this.onStart(o)},this.touchmove=l=>{if(!this.moving)return;n.move(l);let o=0;if(this.direction==="horizontal"){if(n.isVertical())return;o=n.state.deltaX}else{if(n.isHorizontal())return;o=n.state.deltaY}a(o,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(n.isVertical()){this.moving=!1;return}l=n.state.deltaX}else{if(n.isHorizontal()){this.moving=!1;return}l=n.state.deltaY}const o=n.state.duration;o<af&&Math.abs(l)>lf?(l=rf(l,o,this.momentumReduceRatio),a(l,this.direction,"end")):a(l,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function cf(e,n,a,l=1,o){return new sf(e,n,a,l,o)}function uf(e,n,a=!1){return{props:sa,emits:["update:modelValue","change"],setup(l,{emit:o,slots:r}){const i=(0,t.shallowRef)([]),c={current:(0,t.ref)(l.modelValue??""),direction:(0,t.ref)(l.direction),transition:l.transition,tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:p=>{const N={name:p};c.current.value===p&&(N.loaded=!0),i.value.push(N),(0,t.triggerRef)(i)},remove:p=>{const N=i.value.findIndex(T=>T.name===p);N!==-1&&i.value.splice(N,1)},isLoaded:p=>{if(!l.lazy)return!0;const N=i.value.findIndex(T=>T.name===p);return N!==-1?c.current.value?i.value[N].loaded??!1:N===0:!1}};(0,t.provide)(di,c);const s=p=>{const N=i.value.findIndex(T=>T.name===p);N!==-1&&(i.value[N].loaded=!0,(0,t.triggerRef)(i))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([p,N])=>{c.current.value!==p&&(c.current.value=p??"",s(p??"")),c.direction.value!==N&&(c.direction.value=N)});const d=(0,t.ref)(null),h=(0,t.ref)(null),u=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),g=(0,t.computed)(()=>{const p={};if(l.width){const N=me(l.width);N&&(p.width=N)}if(l.height){const N=me(l.height);N&&(p.height=N)}return p});let S=!0;const w=(0,t.computed)(()=>{const p={};if(l.transition===!1)return p;const N=i.value.length;if(N<=0)return p;const T=i.value.findIndex(V=>V.name===c.current.value);return c.direction.value==="vertical"?c.tabHeight.value>0&&(p.height=`${N*c.tabHeight.value}px`,T!==-1&&(p.transform=`translate(0, -${T*c.tabHeight.value}px)`)):c.tabWidth.value>0&&(p.width=`${N*c.tabWidth.value}px`,T!==-1&&(p.transform=`translate(-${T*c.tabWidth.value}px, 0)`)),S&&(S=!1,p.transition="transform 0s ease"),p}),b={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},k=p=>{const N=i.value.length,T=i.value.findIndex(V=>V.name===c.current.value);b.moved=0,p.direction==="vertical"?(b.min=-1*(c.tabHeight.value*(N-1)+c.tabHeight.value/4),b.max=c.tabHeight.value/4,b.start=-T*c.tabHeight.value,b.itemDistance=c.tabHeight.value):(b.min=-1*(c.tabWidth.value*(N-1)+c.tabWidth.value/4),b.max=c.tabWidth.value/4,b.start=-T*c.tabWidth.value,b.itemDistance=c.tabWidth.value)},f=p=>{const N=h.value;if(!N)return;let T=b.start+p.delta;if(T>b.max?T=b.max:T<b.min&&(T=b.min),p.type==="move")fi(N,T,"move",p.direction,300);else if(p.type==="end"){let V=Math.floor(Math.abs(T)*1/b.itemDistance);const $=Math.abs(T)%b.itemDistance;b.start>T?$>=b.itemDistance*b.triggerAutoMoveRatio&&(V+=1):$>b.itemDistance-b.itemDistance*b.triggerAutoMoveRatio&&(V+=1),T=-1*V*b.itemDistance,fi(N,T,"end",p.direction,300),b.moved=T;const H=i.value[V].name;c.current.value=H??"",s(H??""),o("update:modelValue",H)}},v=()=>{},m=()=>{if(!d.value)return;const p=Dn(d.value);c.tabWidth.value=p.width,c.tabHeight.value=p.height},A=Sn(m,250);let C=null,y=null;return(0,t.onMounted)(()=>{l.transition!==!1&&d.value&&(m(),window.ResizeObserver&&(y=new window.ResizeObserver(A),y.observe(d.value)),l.draggle&&(C=cf(k,f,v),C.open(h.value)))}),(0,t.onBeforeUnmount)(()=>{y&&(y.disconnect(),y=null),C&&C.close()}),be({doLayout(){m()}}),()=>{const p=(0,t.h)("view",{class:`${e}__panes`,style:w.value,ref:h},[r?.default?.()]);return(0,t.h)("view",{class:u.value,style:g.value,ref:d},[p])}}}}var{create:df,componentName:ff,scope:mf}=ee("tabs-container"),hf=df(uf(ff,mf,!1)),Yt=hf,pf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function gf(e,n,a){return{props:pf,setup(l,{emit:o,slots:r}){const i=(0,t.inject)(di);(0,t.onMounted)(()=>{i.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{i.remove(l.paneKey)});const c=(0,t.computed)(()=>{const h=[e];return i.direction.value==="vertical"?h.push("is-vertical"):h.push("is-horizontal"),i.transition===!1?h.push("is-no-transition"):h.push("is-transition"),h}),s=(0,t.computed)(()=>{const h={};return i.transition===!1?(i.current.value!==l.paneKey&&(h.display="none"),h):(i.direction.value==="vertical"&&i.tabHeight.value>0?h.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(h.width=`${i.tabWidth.value}px`),h)}),d=(0,t.computed)(()=>l.loaded!=null?ke(l.loaded):i.isLoaded(l.paneKey));return()=>{let h=[];if(d.value)h=r?.default?.()??[];else if(r.empty)h=r.empty();else{const u={class:`${e}__empty-icon`},g=(0,t.h)(l.emptyIcon??a,u),S=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),w=(0,t.h)("view",{class:`${e}__empty`},[g,S]);h.push(w)}return(0,t.h)("view",{class:c.value,style:s.value,prop:l.paneKey},h)}}}}var{create:yf,componentName:bf,scope:vf}=ee("tabs-pane"),Sf=yf(gf(bf,vf,oe.Loading)),Gn=Sf,mi=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=Qn(e,null,this.config)}updateChildren(e,n){n?n.children=Qn(e,n,this.config):this.nodes=Qn(e,null,this.config)}getNodeByValue(e){let n;return ii(this.nodes,a=>{if(a.value===e)return n=a,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let a=this.nodes;for(;a&&a.length;){const l=a.find(o=>o.value===e[o.level]);if(!l)break;n.push(l),a=l.children}return n}isLeaf(e,n){const{leaf:a,children:l}=e,o=Array.isArray(l)&&!!l.length;return a||!o&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:a}=e;return Array.isArray(a)&&!!a.length}},{create:kf,scope:wf}=ee("cascader-pane"),Cf=kf({components:{Loading:oe.Loading,Checklist:oe.Checklist,TabsBar:Wt,TabsContainer:Yt,TabsPane:Gn},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:a}=(0,pe.useFoxI18n)(wf),l=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=(0,t.ref)(0),r=(0,t.ref)(),i=(0,t.ref)(!1),c=(0,t.ref)(e.modelValue),s=(0,t.ref)(new mi([],{})),d=(0,t.ref)([]),h=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),u=(0,t.computed)(()=>i.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((m,A)=>({text:m.selectedNode?m.selectedNode.text:a("select"),value:A}))),g=new Map;let S;const w=async()=>{g.clear(),d.value=[],o.value=0,i.value=!1,S=null;let{options:m}=e;l.value.convertConfig&&(m=Xd(m,l.value.convertConfig)),s.value=new mi(m,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),h.value&&!s.value.nodes.length&&await k({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:s.value.nodes,selectedNode:null}],b(!h.value)},b=async(m=!0)=>{const A=c.value;if(A===void 0||!s.value.nodes.length)return;if(A.length===0){o.value=0,d.value=[{nodes:s.value.nodes,selectedNode:null}];return}let C=A;if(h.value&&Array.isArray(A)&&A.length){C=[];let y=s.value.nodes.find(p=>p.value===A[0]);y&&(C=[y.value],i.value=!0,await k(await A.slice(1).reduce(async(p,N)=>{const T=await p;await k(T);const V=T&&T?.children?.find($=>$.value===N);return V&&C.push(N),Promise.resolve(V)},Promise.resolve(y))),i.value=!1)}C.length&&A===e.modelValue&&s.value.getPathNodesByValue(C).map((y,p)=>{o.value=p,v.handleNode(y,m)})},k=async m=>{if(!m)return;if(!l.value.lazyLoad){m.leaf=!0;return}if(s.value.isLeaf(m,h.value)||s.value.hasChildren(m,h.value))return;m.loading=!0;const A=m.root?null:m;let C=g.get(m);C||(C=new Promise(p=>{l.value.lazyLoad?.(m,p)}),g.set(m,C));const y=await C;Array.isArray(y)&&y.length>0?s.value.updateChildren(y,A):m.leaf=!0,m.loading=!1,g.delete(m)},f=m=>{const A=m.map(C=>C.value);c.value=A,n("change",A,m),n("pathChange",m),n("update:modelValue",A)},v={async handleNode(m,A){const{disabled:C,loading:y}=m;if(!(!A&&C||!d.value[o.value])){if(s.value.isLeaf(m,h.value)){if(m.leaf=!0,d.value[o.value].selectedNode=m,d.value=d.value.slice(0,m.level+1),!A){const p=d.value.map(N=>N.selectedNode);f(p),n("pathChange",p)}return}if(s.value.hasChildren(m,h.value)){const p=m.level+1;d.value[o.value].selectedNode=m,d.value=d.value.slice(0,p),d.value.push({nodes:m.children||[],selectedNode:null}),o.value=p,A||n("pathChange",d.value.map(N=>N.selectedNode));return}S=m,!y&&(await k(m),S===m&&(d.value[o.value].selectedNode=m,v.handleNode(m,A)))}},handleTabChange(m,A){S=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:a("select")},isSelected(m,A){return m.selectedNode&&m.selectedNode.value===A.value}};return(0,t.watch)([l,()=>e.options],()=>{w()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,m=>{$e(m,c.value)||(c.value=m,b(!h.value))}),(0,t.watch)(()=>e.visible,m=>{m&&Array.isArray(c.value)&&c.value.length>0&&b(),m&&r.value&&setTimeout(()=>{r.value.doLayout()},0)}),{panes:d,panesTitles:u,initLoading:i,tabsCursor:o,tabsContainerRef:r,...v}}}),Nf={class:"fox-cascader"},Af={role:"menu",class:"fox-cascader__pane"},Bf=["aria-checked","aria-disabled","onClick"],Tf={class:"fox-cascader__item__title"};function Vf(e,n,a,l,o,r){const i=(0,t.resolveComponent)("TabsBar"),c=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Checklist"),d=(0,t.resolveComponent)("TabsPane"),h=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",Nf,[(0,t.createVNode)(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),(0,t.createVNode)(h,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=u=>e.tabsCursor=u)},{default:(0,t.withCtx)(()=>[!e.initLoading&&e.panes.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.panes,(u,g)=>((0,t.openBlock)(),(0,t.createBlock)(d,{"pane-key":g,key:g},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Af,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(u.nodes,S=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:S.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(u,S),disabled:S.disabled}]),"aria-checked":e.isSelected(u,S),"aria-disabled":S.disabled||void 0,role:"menuitemradio",onClick:w=>e.handleNode(S,!1)},[(0,t.createElementVNode)("view",Tf,(0,t.toDisplayString)(S.text),1),S.loading?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Bf))),128))])]),_:2},1032,["pane-key"]))),128)):((0,t.openBlock)(),(0,t.createBlock)(d,{key:1,"pane-key":0},{default:(0,t.withCtx)(()=>[...n[2]||(n[2]=[(0,t.createElementVNode)("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}var $f=re(Cf,[["render",Vf]]),{create:Ef}=ee("cascader"),Df=Ef({components:{CascaderPane:$f,Wrapper:Wd},props:{...at,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},poppable:{type:Boolean,default:()=>!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=(0,t.ref)(e.modelValue),l=(0,t.computed)({get(){return e.visible},set(i){n("update:visible",i)}}),o=(i,c)=>{a.value=i,l.value=!1,n("change",i,c),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return(0,t.watch)(()=>e.modelValue,i=>{i!==a.value&&(a.value=i)}),{onChange:o,onPathChange:r,innerValue:a,innerVisible:l}}}),If=["innerHTML"];function qf(e,n,a,l,o,r){const i=(0,t.resolveComponent)("CascaderPane"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(c,{poppable:e.poppable,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"header",{},()=>[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,If)):(0,t.createCommentVNode)("",!0)]),(0,t.createVNode)(i,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:3},8,["poppable","visible","closeable","close-icon-position"])}var Zn=re(Df,[["render",qf]]);function wt(e,n){return n[e.textKey??"text"]??""}function Ct(e,n){return n[e.valueKey??"value"]}function hi(e,n){return n[e.childrenKey??"children"]}function _n(e,n=[]){const a={texts:[],values:[]};for(let l=0;l<n.length;l++){const o=n[l],r=wt(e,o),i=Ct(e,o);a.texts.push(r),a.values.push(i??"")}return a}function pi(e,n,a,l,o=[]){if(!a)return;const r=a[l];for(let i=0;i<n.length;i++)if(wt(e,n[i])===r){const c=Ct(e,n[i])??"",s={[e.textKey]:r,[e.valueKey]:c};o.push(s);const d=hi(e,n[i]);Array.isArray(d)&&pi(e,d,a,l+1,o);return}}function gi(e,n,a,l,o=[]){if(!a)return;const r=a[l];for(let i=0;i<n.length;i++)if(Ct(e,n[i])===r){const c=wt(e,n[i])??"",s={[e.textKey]:c,[e.valueKey]:r};o.push(s);const d=hi(e,n[i]);Array.isArray(d)&&gi(e,d,a,l+1,o);return}}function ca(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let l=0;l<n.length;l++)if(wt(e,n[l])!==wt(e,a[l])||Ct(e,n[l])!==Ct(e,a[l]))return!1;return!0}var xf=class{proxy;constructor(e){this.proxy=e}async load(e,n,a){const l="cascader";if(!e)return[];if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,a);const o=nt(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(Ve(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await o(e,n,a))}};function Pf(){return new xf((0,t.getCurrentInstance)().proxy)}var yi={modelValue:{type:[String,Array]},pathNodes:{type:[Array]},title:{type:[String],required:!1},placeholder:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:[Object]},valueType:{type:String,required:!1,default:"value"},lazy:{type:[Boolean],required:!1},lazyLoad:{type:[Function],required:!1},valueKey:{type:[String],default:"value"},textKey:{type:[String],default:"text"},childrenKey:{type:[String],default:"children"},convertConfig:{type:[Object]},showAllLevels:{type:[Boolean],default:!0},separator:{type:[String],default:"/"},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}},Mf={...ge,...ve,...yi};function zf(e,n,a,l,o,r,i,c=!1){return{props:Mf,emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,d){const{innerDisabled:h,disabled:u,innerReadonly:g,readonly:S,browse:w}=qe(s),{emitEvent:b}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return u.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),v=(0,t.ref)(!1),m=Pf(),A=(0,t.ref)([]),C=(0,t.ref)([]),y=(0,t.computed)(()=>{if(Array.isArray(C.value)){if(s.showAllLevels===!1){const F=C.value.length-1;return C.value[F]}return C.value.join(s.separator)}else return C.value}),p=(0,t.ref)([]),N=(0,t.ref)([]);(0,t.watch)([()=>s.modelValue,()=>A.value],async([F,q])=>{if(b("setValue",F),s.lazy===!0){N.value.length==0&&(C.value=Array.isArray(F)?F:[],p.value=Array.isArray(F)?F:[]);return}if(s.valueType==="item"){let E=F;if(!ca(s,E,N.value)){N.value=E;let O=_n(s,E);C.value=O.texts,p.value=O.values}}else if(s.valueType==="text"){let E=F,O=[];if(pi(s,q,E,0,O),!ca(s,O,N.value)){N.value=O;let Y=_n(s,O);C.value=Y.texts,p.value=Y.values}}else{let E=F,O=[];if(gi(s,q,E,0,O),!ca(s,O,N.value)){N.value=O;let Y=_n(s,O);C.value=Y.texts,p.value=Y.values}}}),s.lazy===!0&&(p.value=Array.isArray(s.modelValue)?s.modelValue:[]),(0,t.watch)([()=>s.source,()=>s.params],async([F,q])=>{s.lazy||F&&(A.value=await m.load(F,q))},{immediate:!0});const T="fox-input-item",V=(0,t.computed)(()=>({[T]:!0,"is-disabled":u.value,"is-readonly":S.value})),$=Te((0,t.computed)(()=>s.textAlign),"textAlign"),H=(0,t.computed)(()=>{const F={};return $.value&&(F["text-align"]=$.value),F}),X=(0,t.ref)(!1),D=()=>{u.value===!0||S.value===!0||(X.value=!0)},M=F=>{X.value=F},z=(F,q)=>{let E=q.map(Y=>{if(Y==null)return Y;let te={...Y};return Reflect.deleteProperty(te,"text"),te[s.textKey]=Y.text??"",Reflect.deleteProperty(te,"value"),te[s.valueKey]=Y.value??"",te});N.value=E;let O=_n(s,E);C.value=O.texts,p.value=O.values,s.valueType==="text"?(b("change",C.value,E),b("update:modelValue",C.value)):s.valueType==="item"?(b("change",E,E),b("update:modelValue",E)):(b("change",p.value,E),b("update:modelValue",p.value)),b("update:pathNodes",E)},P=F=>{b("pathChange",F.map(q=>{if(q==null)return q;let E={...q};return Reflect.deleteProperty(E,"text"),E[s.textKey]=q.text??"",Reflect.deleteProperty(E,"value"),E[s.valueKey]=q.value??"",E}))},K=F=>{v.value=!0,b("focus",p.value,F)},j=F=>{setTimeout(()=>{v.value=!1},0),b("blur",p.value,F)},x=(0,t.computed)(()=>({[`${T}__append`]:!0,"is-disabled":u.value,"is-readonly":S.value})),_=(0,t.computed)(()=>we(s.unit)>0),ne=(0,t.computed)(()=>we(s.unit)>0&&!v.value),W=(0,t.computed)(()=>({hidden:!ne.value})),U=F=>{N.value=[],C.value=[],p.value=[],b("update:modelValue",[]),b("change",[],F),b("clear",[]),b("update:pathNodes",[])},Q=(0,t.computed)(()=>s.clearable&&!u.value&&!S.value),J=(0,t.computed)(()=>{let F=p.value&&p.value.length>0;return s.clearable&&F&&v.value}),I=F=>{J.value?U(F):D()},R=(0,t.computed)(()=>J.value&&Q.value?o:r),G=(0,t.computed)(()=>({action:!0}));let Z=null;const le=()=>typeof Z=="function"?Z:typeof s.lazyLoad=="function"?s.lazyLoad:(Z=async(F,q)=>{const E=[],O=[];let Y=0;if(!F.root){let te=F;for(;te;){const ae=wt(s,te),se=Ct(s,te);O.splice(0,0,ae),E.splice(0,0,se),te=te._parent}Y=E.length}q(await m.load(s.source,{...F,level:Y,pathLabels:O,pathValues:E},!0))},Z),L=(0,t.ref)();return be({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()},setDisabled:F=>{h.value=F},setReadonly:F=>{g.value=F}}),()=>{if(w.value==="on"&&(S.value||u.value))return l(y.value,d.slots);const F={class:V.value,style:H.value,ref:L,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:y.value,onClick:D,onFocus:K,onBlur:j};c&&(F.disabled=!0);const q=[],E=(0,t.h)("input",F);q.push(E);const O=[],Y=(0,t.h)(R.value,{class:["action-icon"]}),te=(0,t.h)("view",{class:G.value,onClick:I},{default:()=>[Y]});if(O.push(te),_.value){const rn=(0,t.h)("view",{class:W.value},[s.unit]);O.push(rn)}const ae=(0,t.h)("view",{class:x.value},{default:()=>O});q.push(ae);const se={default:()=>q};se.label=d.slots.default,se.prepend=d.slots.prepend,se.append=d.slots.append,se.fixedPreTip=d.slots.fixedPreTip,se.fixedTip=d.slots.fixedTip;const ue={};ue.visible=X.value,ue["onUpdate:visible"]=M,ue.modelValue=p.value,ue.onChange=z,ue.onPathChange=P,ue.title=s.title,ue.valueKey=s.valueKey,ue.textKey=s.textKey,ue.childrenKey=s.childrenKey,ue.convertConfig=s.convertConfig,s.lazy?(ue.lazy=!0,ue.lazyLoad=le()):ue.options=A.value;const Xe={};Xe.header=d.slots.header;const Qe=(0,t.h)(i,ue,Xe);se.hide=()=>[Qe];const Re={..._e(s,yi)};return s.prop&&(Re.prop=`${s.prop}_item`),a(Re,se)}}}}var{componentName:Lf,create:Rf,scope:Ff}=ee("cascader-item"),Of=Rf(zf(Lf,Ff,Pe,ze,oe.CircleClose,oe.ArrowRight,Zn,!1)),ua=Of,Kf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs=l()})(e,(function(){"use strict";var a=1e3,l=6e4,o=36e5,r="millisecond",i="second",c="minute",s="hour",d="day",h="week",u="month",g="quarter",S="year",w="date",b="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|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,v={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(D){var M=["th","st","nd","rd"],z=D%100;return"["+D+(M[(z-20)%10]||M[z]||M[0])+"]"}},m=function(D,M,z){var P=String(D);return!P||P.length>=M?D:""+Array(M+1-P.length).join(z)+D},A={s:m,z:function(D){var M=-D.utcOffset(),z=Math.abs(M),P=Math.floor(z/60),K=z%60;return(M<=0?"+":"-")+m(P,2,"0")+":"+m(K,2,"0")},m:function D(M,z){if(M.date()<z.date())return-D(z,M);var P=12*(z.year()-M.year())+(z.month()-M.month()),K=M.clone().add(P,u),j=z-K<0,x=M.clone().add(P+(j?-1:1),u);return+(-(P+(z-K)/(j?K-x:x-K))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:u,y:S,w:h,d,D:w,h:s,m:c,s:i,ms:r,Q:g}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},C="en",y={};y[C]=v;var p="$isDayjsObject",N=function(D){return D instanceof H||!(!D||!D[p])},T=function D(M,z,P){var K;if(!M)return C;if(typeof M=="string"){var j=M.toLowerCase();y[j]&&(K=j),z&&(y[j]=z,K=j);var x=M.split("-");if(!K&&x.length>1)return D(x[0])}else{var _=M.name;y[_]=M,K=_}return!P&&K&&(C=K),K||!P&&C},V=function(D,M){if(N(D))return D.clone();var z=typeof M=="object"?M:{};return z.date=D,z.args=arguments,new H(z)},$=A;$.l=T,$.i=N,$.w=function(D,M){return V(D,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var H=(function(){function D(z){this.$L=T(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[p]=!0}var M=D.prototype;return M.parse=function(z){this.$d=(function(P){var K=P.date,j=P.utc;if(K===null)return new Date(NaN);if($.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var x=K.match(k);if(x){var _=x[2]-1||0,ne=(x[7]||"0").substring(0,3);return j?new Date(Date.UTC(x[1],_,x[3]||1,x[4]||0,x[5]||0,x[6]||0,ne)):new Date(x[1],_,x[3]||1,x[4]||0,x[5]||0,x[6]||0,ne)}}return new Date(K)})(z),this.init()},M.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},M.$utils=function(){return $},M.isValid=function(){return this.$d.toString()!==b},M.isSame=function(z,P){var K=V(z);return this.startOf(P)<=K&&K<=this.endOf(P)},M.isAfter=function(z,P){return V(z)<this.startOf(P)},M.isBefore=function(z,P){return this.endOf(P)<V(z)},M.$g=function(z,P,K){return $.u(z)?this[P]:this.set(K,z)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(z,P){var K=this,j=!!$.u(P)||P,x=$.p(z),_=function(G,Z){var le=$.w(K.$u?Date.UTC(K.$y,Z,G):new Date(K.$y,Z,G),K);return j?le:le.endOf(d)},ne=function(G,Z){return $.w(K.toDate()[G].apply(K.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(Z)),K)},W=this.$W,U=this.$M,Q=this.$D,J="set"+(this.$u?"UTC":"");switch(x){case S:return j?_(1,0):_(31,11);case u:return j?_(1,U):_(0,U+1);case h:var I=this.$locale().weekStart||0,R=(W<I?W+7:W)-I;return _(j?Q-R:Q+(6-R),U);case d:case w:return ne(J+"Hours",0);case s:return ne(J+"Minutes",1);case c:return ne(J+"Seconds",2);case i:return ne(J+"Milliseconds",3);default:return this.clone()}},M.endOf=function(z){return this.startOf(z,!1)},M.$set=function(z,P){var K,j=$.p(z),x="set"+(this.$u?"UTC":""),_=(K={},K[d]=x+"Date",K[w]=x+"Date",K[u]=x+"Month",K[S]=x+"FullYear",K[s]=x+"Hours",K[c]=x+"Minutes",K[i]=x+"Seconds",K[r]=x+"Milliseconds",K)[j],ne=j===d?this.$D+(P-this.$W):P;if(j===u||j===S){var W=this.clone().set(w,1);W.$d[_](ne),W.init(),this.$d=W.set(w,Math.min(this.$D,W.daysInMonth())).$d}else _&&this.$d[_](ne);return this.init(),this},M.set=function(z,P){return this.clone().$set(z,P)},M.get=function(z){return this[$.p(z)]()},M.add=function(z,P){var K,j=this;z=Number(z);var x=$.p(P),_=function(U){var Q=V(j);return $.w(Q.date(Q.date()+Math.round(U*z)),j)};if(x===u)return this.set(u,this.$M+z);if(x===S)return this.set(S,this.$y+z);if(x===d)return _(1);if(x===h)return _(7);var ne=(K={},K[c]=l,K[s]=o,K[i]=a,K)[x]||1,W=this.$d.getTime()+z*ne;return $.w(W,this)},M.subtract=function(z,P){return this.add(-1*z,P)},M.format=function(z){var P=this,K=this.$locale();if(!this.isValid())return K.invalidDate||b;var j=z||"YYYY-MM-DDTHH:mm:ssZ",x=$.z(this),_=this.$H,ne=this.$m,W=this.$M,U=K.weekdays,Q=K.months,J=K.meridiem,I=function(Z,le,L,F){return Z&&(Z[le]||Z(P,j))||L[le].slice(0,F)},R=function(Z){return $.s(_%12||12,Z,"0")},G=J||function(Z,le,L){var F=Z<12?"AM":"PM";return L?F.toLowerCase():F};return j.replace(f,(function(Z,le){return le||(function(L){switch(L){case"YY":return String(P.$y).slice(-2);case"YYYY":return $.s(P.$y,4,"0");case"M":return W+1;case"MM":return $.s(W+1,2,"0");case"MMM":return I(K.monthsShort,W,Q,3);case"MMMM":return I(Q,W);case"D":return P.$D;case"DD":return $.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return I(K.weekdaysMin,P.$W,U,2);case"ddd":return I(K.weekdaysShort,P.$W,U,3);case"dddd":return U[P.$W];case"H":return String(_);case"HH":return $.s(_,2,"0");case"h":return R(1);case"hh":return R(2);case"a":return G(_,ne,!0);case"A":return G(_,ne,!1);case"m":return String(ne);case"mm":return $.s(ne,2,"0");case"s":return String(P.$s);case"ss":return $.s(P.$s,2,"0");case"SSS":return $.s(P.$ms,3,"0");case"Z":return x}return null})(Z)||x.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(z,P,K){var j,x=this,_=$.p(P),ne=V(z),W=(ne.utcOffset()-this.utcOffset())*l,U=this-ne,Q=function(){return $.m(x,ne)};switch(_){case S:j=Q()/12;break;case u:j=Q();break;case g:j=Q()/3;break;case h:j=(U-W)/6048e5;break;case d:j=(U-W)/864e5;break;case s:j=U/o;break;case c:j=U/l;break;case i:j=U/a;break;default:j=U}return K?j:$.a(j)},M.daysInMonth=function(){return this.endOf(u).$D},M.$locale=function(){return y[this.$L]},M.locale=function(z,P){if(!z)return this.$L;var K=this.clone(),j=T(z,P,!0);return j&&(K.$L=j),K},M.clone=function(){return $.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},D})(),X=H.prototype;return V.prototype=X,[["$ms",r],["$s",i],["$m",c],["$H",s],["$W",d],["$M",u],["$y",S],["$D",w]].forEach((function(D){X[D[1]]=function(M){return this.$g(M,D[0],D[1])}})),V.extend=function(D,M){return D.$i||(D(M,H,V),D.$i=!0),V},V.locale=T,V.isDayjs=N,V.unix=function(D){return V(1e3*D)},V.en=y[C],V.Ls=y,V.p={},V}))})),Uf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var a={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"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,r=/\d\d/,i=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,s={},d=function(k){return(k=+k)+(k>68?1900:2e3)},h=function(k){return function(f){this[k]=+f}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(f){if(!f||f==="Z")return 0;var v=f.match(/([+-]|\d\d)/g),m=60*v[1]+(+v[2]||0);return m===0?0:v[0]==="+"?-m:m})(k)}],g=function(k){var f=s[k];return f&&(f.indexOf?f:f.s.concat(f.f))},S=function(k,f){var v,m=s.meridiem;if(m){for(var A=1;A<=24;A+=1)if(k.indexOf(m(A,0,f))>-1){v=A>12;break}}else v=k===(f?"pm":"PM");return v},w={A:[c,function(k){this.afternoon=S(k,!1)}],a:[c,function(k){this.afternoon=S(k,!0)}],Q:[o,function(k){this.month=3*(k-1)+1}],S:[o,function(k){this.milliseconds=100*+k}],SS:[r,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[i,h("seconds")],ss:[i,h("seconds")],m:[i,h("minutes")],mm:[i,h("minutes")],H:[i,h("hours")],h:[i,h("hours")],HH:[i,h("hours")],hh:[i,h("hours")],D:[i,h("day")],DD:[r,h("day")],Do:[c,function(k){var f=s.ordinal;if(this.day=k.match(/\d+/)[0],f)for(var v=1;v<=31;v+=1)f(v).replace(/\[|\]/g,"")===k&&(this.day=v)}],w:[i,h("week")],ww:[r,h("week")],M:[i,h("month")],MM:[r,h("month")],MMM:[c,function(k){var f=g("months"),v=(g("monthsShort")||f.map((function(m){return m.slice(0,3)}))).indexOf(k)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[c,function(k){var f=g("months").indexOf(k)+1;if(f<1)throw new Error;this.month=f%12||f}],Y:[/[+-]?\d+/,h("year")],YY:[r,function(k){this.year=d(k)}],YYYY:[/\d{4}/,h("year")],Z:u,ZZ:u};function b(k){for(var f=k,v=s&&s.formats,m=(k=f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(V,$,H){var X=H&&H.toUpperCase();return $||v[H]||a[H]||v[X].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,M,z){return M||z.slice(1)}))}))).match(l),A=m.length,C=0;C<A;C+=1){var y=m[C],p=w[y],N=p&&p[0],T=p&&p[1];m[C]=T?{regex:N,parser:T}:y.replace(/^\[|\]$/g,"")}return function(V){for(var $={},H=0,X=0;H<A;H+=1){var D=m[H];if(typeof D=="string")X+=D.length;else{var M=D.regex,z=D.parser,P=V.slice(X),K=M.exec(P)[0];z.call($,K),V=V.replace(K,"")}}return(function(j){var x=j.afternoon;if(x!==void 0){var _=j.hours;x?_<12&&(j.hours+=12):_===12&&(j.hours=0),delete j.afternoon}})($),$}}return function(k,f,v){v.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(d=k.parseTwoDigitYear);var m=f.prototype,A=m.parse;m.parse=function(C){var y=C.date,p=C.utc,N=C.args;this.$u=p;var T=N[1];if(typeof T=="string"){var V=N[2]===!0,$=N[3]===!0,H=V||$,X=N[2];$&&(X=N[2]),s=this.$locale(),!V&&X&&(s=v.Ls[X]),this.$d=(function(P,K,j,x){try{if(["x","X"].indexOf(K)>-1)return new Date((K==="X"?1e3:1)*P);var _=b(K)(P),ne=_.year,W=_.month,U=_.day,Q=_.hours,J=_.minutes,I=_.seconds,R=_.milliseconds,G=_.zone,Z=_.week,le=new Date,L=U||(ne||W?1:le.getDate()),F=ne||le.getFullYear(),q=0;ne&&!W||(q=W>0?W-1:le.getMonth());var E,O=Q||0,Y=J||0,te=I||0,ae=R||0;return G?new Date(Date.UTC(F,q,L,O,Y,te,ae+60*G.offset*1e3)):j?new Date(Date.UTC(F,q,L,O,Y,te,ae)):(E=new Date(F,q,L,O,Y,te,ae),Z&&(E=x(E).week(Z).toDate()),E)}catch{return new Date("")}})(y,T,p,v),this.init(),X&&X!==!0&&(this.$L=this.locale(X).$L),H&&y!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var D=T.length,M=1;M<=D;M+=1){N[1]=T[M-1];var z=v.apply(this,N);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}M===D&&(this.$d=new Date(""))}else A.call(this,C)}}}))})),Hf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(a,l){var o=l.prototype,r=o.format;o.format=function(i){var c=this,s=this.$locale();if(!this.isValid())return r.bind(this)(i);var d=this.$utils(),h=(i||"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(u){switch(u){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return s.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return s.ordinal(c.week(),"W");case"w":case"ww":return d.s(c.week(),u==="w"?1:2,"0");case"W":case"WW":return d.s(c.isoWeek(),u==="W"?1:2,"0");case"k":case"kk":return d.s(String(c.$H===0?24:c.$H),u==="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 u}}));return r.bind(this)(h)}}}))})),jf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(a,l,o){var r=l.prototype,i=function(u){return u&&(u.indexOf?u:u.s)},c=function(u,g,S,w,b){var k=u.name?u:u.$locale(),f=i(k[g]),v=i(k[S]),m=f||v.map((function(C){return C.slice(0,w)}));if(!b)return m;var A=k.weekStart;return m.map((function(C,y){return m[(y+(A||0))%7]}))},s=function(){return o.Ls[o.locale()]},d=function(u,g){return u.formats[g]||(function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,b,k){return b||k.slice(1)}))})(u.formats[g.toUpperCase()])},h=function(){var u=this;return{months:function(g){return g?g.format("MMMM"):c(u,"months")},monthsShort:function(g){return g?g.format("MMM"):c(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):c(u,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):c(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):c(u,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return d(u.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return h.bind(this)()},o.localeData=function(){var u=s();return{firstDayOfWeek:function(){return u.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(g){return d(u,g)},meridiem:u.meridiem,ordinal:u.ordinal}},o.months=function(){return c(s(),"months")},o.monthsShort=function(){return c(s(),"monthsShort","months",3)},o.weekdays=function(u){return c(s(),"weekdays",null,null,u)},o.weekdaysShort=function(u){return c(s(),"weekdaysShort","weekdays",3,u)},o.weekdaysMin=function(u){return c(s(),"weekdaysMin","weekdays",2,u)}}}))})),Wf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var a="week",l="year";return function(o,r,i){var c=r.prototype;c.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=i(this).startOf(l).add(1,l).date(d),u=i(this).endOf(a);if(h.isBefore(u))return 1}var g=i(this).startOf(l).date(d).startOf(a).subtract(1,"millisecond"),S=this.diff(g,a,!0);return S<0?i(this).startOf("week").week():Math.ceil(S)},c.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})),Yf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(a,l){l.prototype.weekYear=function(){var o=this.month(),r=this.week(),i=this.year();return r===1&&o===11?i+1:o===0&&r>=52?i-1:i}}}))})),Xf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(a,l,o){l.prototype.dayOfYear=function(r){var i=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}}))})),Qf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(a,l){l.prototype.isSameOrAfter=function(o,r){return this.isSame(o,r)||this.isAfter(o,r)}}}))})),Gf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(a,l){l.prototype.isSameOrBefore=function(o,r){return this.isSame(o,r)||this.isBefore(o,r)}}}))})),Ke=He(Kf(),1),Zf=He(Uf(),1),_f=He(Hf(),1),Jf=He(jf(),1),em=He(Wf(),1),tm=He(Yf(),1),nm=He(Xf(),1),lm=He(Qf(),1),am=He(Gf(),1);Ke.default.extend(Jf.default),Ke.default.extend(_f.default),Ke.default.extend(Zf.default),Ke.default.extend(em.default),Ke.default.extend(tm.default),Ke.default.extend(nm.default),Ke.default.extend(lm.default),Ke.default.extend(am.default);var Nt={format(e,n="YYYY-MM-DD"){return(0,Ke.default)(e).format(n)},parser(e,n){return(0,Ke.default)(e,n).toDate()},getDay(e,n,a){let l=n??new Date;const o=e*(1e3*60*60*24);return l=new Date(l.getTime()+o),a=a??"YYYY-MM-DD",this.format(l,a)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){let l=new Date(e+"/"+n+"/"+a).getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},compare(e,n,a){const l=typeof e=="string"?this.parser(e,a):e,o=typeof n=="string"?this.parser(n,a):n,r=l.getTime(),i=o.getTime();return r==i?0:r>i?1:-1},between(e,n,a,l){let o;l==="year"?o=new Date(new Date(n).setFullYear(n.getFullYear()+a)):l==="month"?o=new Date(new Date(n).setMonth(n.getMonth()+a)):o=new Date(new Date(n).setDate(n.getDate()+a));const r=e.getTime(),i=o.getTime(),c=n.getTime();return i>c?r>=c&&r<=i:r>=i&&r<=c},inScope4Day(e,n,a){return this.between(e,n,a,"day")},inScope4Month(e,n,a){return this.between(e,n,a,"month")},inScope4Year(e,n,a){return this.between(e,n,a,"year")}},bi=new Date().getFullYear(),da={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},Jn=(e,n,a)=>{let l;if(We(n)?l=n:typeof n=="string"&&we(n)>0?l=Nt.parser(n,a):l=new Date,l.toString()==="Invalid Date")return null;let o=Math.max(l.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),new Date(o)},fa=(e,n,a)=>{We(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),Nt.format(new Date(l),a)},ma={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:()=>"date"},valueFormat:{type:String},visible:{type:Boolean,default:()=>!1},title:{type:String},isShowChinese:{type:Boolean,default:()=>!0},minuteStep:{type:Number,default:()=>1},minDate:{type:Date,default:()=>new Date(bi-10,0,1),validator:We},maxDate:{type:Date,default:()=>new Date(bi+10,11,31),validator:We},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:om,scope:rm}=ee("date-picker"),im=om({components:{Picker:Ht},props:{...ma},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=(0,pe.useFoxI18n)(rm),l={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds"),today:a("today"),fullWeekdays:JSON.parse(a("fullWeekdays"))},o=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,m=>{o.value=m});function r(m,A){return new Date(m,A,0).getDate()}const i=(m,A)=>{const C=e[`${m}Date`],y=C.getFullYear();let p=1,N=1,T=0,V=0;m==="max"&&(p=12,N=r(A.getFullYear(),A.getMonth()+1),T=23,V=59);const $=V;return A.getFullYear()===y&&(p=C.getMonth()+1,A.getMonth()+1===p&&(N=C.getDate(),A.getDate()===N&&(T=C.getHours(),A.getHours()===T&&(V=C.getMinutes())))),{[`${m}Year`]:y,[`${m}Month`]:p,[`${m}Date`]:N,[`${m}Hour`]:T,[`${m}Minute`]:V,[`${m}Seconds`]:$}},c=(0,t.computed)(()=>{if(!g.value)return[];const{maxYear:m,maxDate:A,maxMonth:C,maxHour:y,maxMinute:p,maxSeconds:N}=i("max",g.value),{minYear:T,minDate:V,minMonth:$,minHour:H,minMinute:X,minSeconds:D}=i("min",g.value);let M=[{type:"year",range:[T,m]},{type:"month",range:[$,C]},{type:"day",range:[V,A]},{type:"hour",range:[H,y]},{type:"minute",range:[X,p]},{type:"seconds",range:[D,N]}];switch(e.type){case"date":M=M.slice(0,3);break;case"datetime":M=M.slice(0,5);break;case"time":M=M.slice(3,6);break;case"year-month":M=M.slice(0,2);break;case"month-day":M=M.slice(1,3);break;case"datehour":M=M.slice(0,4);break;case"hour-minute":M=M.slice(3,5);break}return M}),s=(m,A,C,y,p)=>{const N=[];for(;m<=A;){let T=!0;if(typeof e.itemFilter=="function"){const V={text:`${m}`,value:m,type:C,currentYearMonth:y};T=e.itemFilter(V)}if(T)if(typeof e.itemFormatter=="function"){const V={text:`${m}`,value:m,type:C,currentYearMonth:y};e.itemFormatter(V),N.push({text:V.text,value:V.value})}else if(e.isShowChinese){let V=`${m}${l[C]}`;if(C==="day"){if(y[0]===p[0]&&y[1]===p[1]&&m===p[2])V=l.today;else{const $=new Date(y[0],y[1],m).getDay();V=`${V} ${l.fullWeekdays[$]}`}N.push({text:V,value:m})}else N.push({text:m+l[C],value:m})}else N.push({text:`${m}`,value:m});C==="minute"?m+=e.minuteStep:m++}return N},d=(0,t.computed)(()=>{const m=new Date,A=[m.getFullYear(),m.getMonth(),m.getDate()],C=[];g.value&&(C[0]=g.value.getFullYear(),C[1]=g.value.getMonth());let y=[];return c.value.forEach(p=>{let N=s(p.range[0],p.range[1],p.type,C,A);N&&y.push(N)}),y}),h=(m,A)=>m==="year"?A.getFullYear():m==="month"?A.getMonth()+1:m==="day"?A.getDate():m==="hour"?A.getHours():m==="minute"?A.getMinutes():m==="seconds"?A.getSeconds():0,u=(0,t.ref)(),g=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,m=>{let A;if(typeof m=="string"?m.length==0||m==="Invalid Date"?A=new Date:e.valueFormat?A=Jn(e,e.modelValue,e.valueFormat):A=Jn(e,m,da[e.type]):We(m)?A=m:A=new Date,!!A&&(!g.value||A.getTime()!==g.value.getTime())){g.value=A;let C=[];c.value.forEach(y=>{let p=h(y.type,A);C.push(p)}),u.value=C}},{immediate:!0});const S=m=>{if(!m||m.length===0){g.value=new Date;let A=[];c.value.forEach(C=>{let y=h(C.type,g.value);A.push(y)}),u.value=A;return}if(e.type==="date"){const A=m[0],C=m[1]-1,y=Math.min(m[2],r(A,C+1));y!==m[2]&&(m[2]=y),g.value=new Date(A,C,y)}else if(e.type==="datetime"){const A=m[0],C=m[1]-1,y=Math.min(m[2],r(A,C+1)),p=m[3],N=m[4];y!==m[2]&&(m[2]=y),g.value=new Date(A,C,y,p,N)}else if(e.type==="time"){const A=m[0],C=m[1],y=m[2],p=g.value??new Date;g.value=new Date(p.getFullYear(),p.getMonth(),p.getDate(),A,C,y)}else if(e.type==="year-month"){const A=m[0],C=m[1]-1;g.value=new Date(A,C)}else if(e.type==="month-day"){const A=(g.value??new Date).getFullYear(),C=m[0]-1,y=Math.min(m[1],r(A,C+1));y!==m[1]&&(m[1]=y),g.value=new Date(A,C,y)}else if(e.type==="datehour"){const A=m[0],C=m[1]-1,y=Math.min(m[2],r(A,C+1)),p=m[3];y!==m[2]&&(m[2]=y),g.value=new Date(A,C,y,p)}else if(e.type==="hour-minute"){const A=m[0],C=m[1],y=g.value??new Date;g.value=new Date(y.getFullYear(),y.getMonth(),y.getDate(),A,C)}u.value=m};return{columns:d,dateIndexs:u,show:o,onChange:m=>{S(m)},onClose:()=>{n("update:close",!1)},onConfirm:m=>{S(m);const A=g.value??new Date;e.valueFormat?n("update:modelValue",fa(e,A,e.valueFormat)):n("update:modelValue",A),n("confirm",m)},onClear:()=>{n("clear")},onUpdateVisible:m=>{o.value=m,n("update:visible",m)}}}});function sm(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"top")]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}var el=re(im,[["render",sm]]),cm={format:{type:[String]},placeholder:{type:[String]},textAlign:{type:[String]},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}};function um(e){let n=e.format;return n||(n=da[e.type??"date"]),n}var dm={...ge,...ve,...ma,...cm};function fm(e,n,a,l,o,r,i,c=!1){return{props:dm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{innerDisabled:h,disabled:u,innerReadonly:g,readonly:S,browse:w}=qe(s),{emitEvent:b}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return u.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),v=(0,t.ref)(!1),A=xe(s,"modelValue",I=>I==null?null:typeof I=="string"?I.length==0?null:s.valueFormat?Jn(s,I,s.valueFormat)??I:Jn(s,I,da[s.type])??I:We(I)?I:null,b),C=(0,t.computed)(()=>{if(!A.value)return"";const I=um(s);return fa(s,A.value,I)}),y="fox-input-item",p=(0,t.computed)(()=>({[y]:!0,"is-disabled":u.value,"is-readonly":S.value})),N=Te((0,t.computed)(()=>s.textAlign),"textAlign"),T=(0,t.computed)(()=>{const I={};return N.value&&(I["text-align"]=N.value),I}),V=(0,t.ref)(!1),$=()=>{V.value=!0},H=()=>{V.value=!1};d.expose({showPicker:$,hidePicker:H});const X=I=>{V.value=I},D=I=>{if(A.value=I,s.valueFormat){let R=fa(s,I,s.valueFormat);b("update:modelValue",R,{}),b("change",R,{})}else b("update:modelValue",I,{}),b("change",I,{})},M=I=>{let R=I.target.value;v.value=!0,b("focus",R,I)},z=I=>{setTimeout(()=>{v.value=!1},0);let R=I.target.value;s.maxLength&&R.length>Number(s.maxLength)&&(R=R.slice(0,Number(s.maxLength))),b("blur",R,I)},P=(0,t.computed)(()=>({[`${y}__append`]:!0,"is-disabled":u.value,"is-readonly":S.value})),K=(0,t.computed)(()=>we(s.unit)>0),j=(0,t.computed)(()=>we(s.unit)>0&&!v.value),x=(0,t.computed)(()=>({hidden:!j.value})),_=I=>{A.value="",b("update:modelValue","",I),b("change","",I),b("clear",""),H()},ne=(0,t.computed)(()=>s.clearable&&!u.value&&!S.value),W=(0,t.computed)(()=>{let I=we(A.value)>0;return s.clearable&&I&&v.value}),U=I=>{W.value?_(I):$()},Q=(0,t.computed)(()=>W.value&&ne.value?o:r),J=(0,t.computed)(()=>({action:!0}));return be({setDisabled:I=>{h.value=I},setReadonly:I=>{g.value=I}}),()=>{if(w.value==="on"&&(S.value||u.value))return l(C.value,d.slots);const I={class:p.value,style:T.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:C.value,onClick:$,onFocus:M,onBlur:z};c&&(I.disabled=!0);const R=[],G=(0,t.h)("input",I);R.push(G);const Z=[],le=(0,t.h)(Q.value,{class:["action-icon"]}),L=(0,t.h)("view",{class:J.value,onClick:U},{default:()=>[le]});if(Z.push(L),K.value){const ae=(0,t.h)("view",{class:x.value},[s.unit]);Z.push(ae)}const F=(0,t.h)("view",{class:P.value},{default:()=>Z});R.push(F);const q={default:()=>R};q.label=d.slots.default,q.prepend=d.slots.prepend,q.append=d.slots.append,q.fixedPreTip=d.slots.fixedPreTip,q.fixedTip=d.slots.fixedTip;const E=ye(s,ma);E.valueFormat=null,E.disabled=!1,E.readonly=u.value||S.value,E.visible=V.value,E["onUpdate:visible"]=X,E.modelValue=A.value,E["onUpdate:modelValue"]=D,E.onClear=_;const O={};if(d.slots.top){const ae=d.slots.top();O.top=()=>ae}if(d.slots.bottom){const ae=d.slots.bottom();O.default=()=>ae}const Y=(0,t.h)(i,E,O);q.hide=()=>[Y];const te={...ye(s,ve,ge)};return s.prop&&(te.prop=`${s.prop}_item`),a(te,q)}}}}var{create:mm,componentName:hm,scope:pm}=ee("date-item"),gm=mm(fm(hm,pm,Pe,ze,oe.CircleClose,oe.Date,el,!1)),ha=gm,ie={format(e,n="YYYY-MM-DD"){return Nt.format(e,n)},parser(e,n){return Nt.parser(e,n)},isLeapYear:function(e){return Nt.isLeapYear(e)},getWhatDay:function(e,n,a){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+a).getDay()]},getMonthPreDay:function(e,n){let a=new Date(e+"/"+n+"/01").getDay();return a==0&&(a=7),a},getMonthDays:function(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit:function(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},getDay:function(e){e=e||0;let n=new Date;const a=e*(1e3*60*60*24);return n=new Date(n.getTime()+a),this.date2Str(n)},compareDate:function(e,n){return!(new Date(e.replace("-","/").replace("-","/"))>=new Date(n.replace("-","/").replace("-","/")))},isEqual:function(e,n){return new Date(e).getTime()==new Date(n).getTime()},getMonthWeek:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a));let r=o.getDay();const i=o.getDate();let c=6-r;return l!==0&&(r=r==0?7:r,c=7-r),Math.ceil((i+c)/7)},getYearWeek:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),i=Math.round((o.valueOf()-r.valueOf())/864e5);return Math.ceil((i+(r.getDay()+1-1))/7)},getWeekDate:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a)),r=o.getTime();let i=o.getDay();if(l===0){const s=r-i*864e5,d=r+(6-i)*864e5;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}else{i=i==0?7:i;const c=1440*60*1e3,s=r-(i-1)*c,d=r+(7-i)*c;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}},formatResultDate:function(e){const n=[...e.split("-")];return n[2]=ie.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ie.getWhatDay(+n[0],+n[1],+n[2]),n}},{create:ym,scope:bm}=ee("calendar-pane"),vm=ym({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String},confirmText:{type:String},startText:{type:String},endText:{type:String},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:ie.getDay(0)},endDate:{type:String,default:ie.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:l,t:o}=(0,pe.useFoxI18n)(bm),r=l(e,["title","confirmText","startText","endText","today"]),i=JSON.parse(o("weekdays")),c=(0,t.ref)([...i.slice(e.firstDayOfWeek,7),...i.slice(0,e.firstDayOfWeek)]),s=(0,t.ref)(null),d=(0,t.ref)(null),h=(0,t.ref)(null),u=(0,t.ref)(null),g=(0,t.ref)(0),S=(0,t.computed)(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),w=(0,t.computed)(()=>a.btn),b=(0,t.computed)(()=>a["top-info"]),k=(0,t.computed)(()=>a["bottom-info"]),f=(0,t.reactive)({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),v=I=>I.split("-"),m=I=>ie.isEqual(f.currDate[0],I),A=I=>ie.isEqual(f.currDate[1],I),C=I=>f.currDate?.length>0?f.currDate?.some(R=>ie.isEqual(R,I)):!1,y=(I,R)=>R.curData[0]+"-"+R.curData[1]+"-"+ie.getNumTwoBit(+I.day),p=(I,R)=>{const G=y(I,R),{type:Z}=e;return I.type=="curr"?ie.isEqual(f.currDate,G)||(Z=="range"||Z=="week")&&(m(G)||A(G))||Z=="multiple"&&C(G)?`${f.dayPrefix}--active`:f.propStartDate&&ie.compareDate(G,f.propStartDate)||f.propEndDate&&ie.compareDate(f.propEndDate,G)?`${f.dayPrefix}--disabled`:(Z=="range"||Z=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ie.compareDate(f.currDate[0],G)&&ie.compareDate(G,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},N=()=>{const{type:I}=e;if(I=="range"&&f.chooseData.length==2||I!="range"){let R=f.chooseData.slice(0);I=="week"&&(R={weekDate:[V(f.chooseData[0]),V(f.chooseData[1])]}),n("choose",R),e.poppable&&n("update")}},T=(I,R,G=!1)=>{if(p(I,R)!=`${f.dayPrefix}--disabled`){const{type:Z}=e;let[le,L]=R.curData,F=[...R.curData];if(F[2]=ie.getNumTwoBit(Number(I.day)),F[3]=`${F[0]}-${F[1]}-${F[2]}`,F[4]=ie.getWhatDay(+F[0],+F[1],+F[2]),Z=="multiple")if(f.currDate?.length>0){let q;f.currDate?.forEach((E,O)=>{E==F[3]&&(q=O)}),G?f.chooseData.push([...F]):q!==void 0?(f.currDate.splice(q,1),f.chooseData.splice(q,1)):(f.currDate.push(F[3]),f.chooseData.push([...F]))}else f.currDate=[F[3]],f.chooseData=[[...F]];else if(Z=="range"){let q=Object.values(f.currDate).length;q==2||q==0?f.currDate=[F[3]]:ie.compareDate(f.currDate[0],F[3])?Array.isArray(f.currDate)&&f.currDate.push(F[3]):Array.isArray(f.currDate)&&f.currDate.unshift(F[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...F]]:ie.compareDate(f.chooseData[0][3],F[3])?f.chooseData=[...f.chooseData,[...F]]:f.chooseData=[[...F],...f.chooseData]}else if(Z=="week"){let q=ie.getWeekDate(le,L,I.day,e.firstDayOfWeek);f.propStartDate&&ie.compareDate(q[0],f.propStartDate)&&q.splice(0,1,f.propStartDate),f.propEndDate&&ie.compareDate(f.propEndDate,q[1])&&q.splice(1,1,f.propEndDate),f.currDate=q,f.chooseData=[ie.formatResultDate(q[0]),ie.formatResultDate(q[1])]}else f.currDate=F[3],f.chooseData=[...F];if(!G){let q=f.chooseData;Z=="week"&&(q={weekDate:[V(f.chooseData[0]),V(f.chooseData[1])]}),n("select",q),(e.isAutoBackFill||!e.poppable)&&N()}}},V=I=>{let[R,G,Z]=I;return{date:I,monthWeekNum:ie.getMonthWeek(R,G,Z,e.firstDayOfWeek),yearWeekNum:ie.getYearWeek(R,G,Z,e.firstDayOfWeek)}},$=I=>{const R=I=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let G=parseInt(R.curData[0]),Z=parseInt(R.curData[1].toString().replace(/^0/,""));switch(I){case"prev":Z==1&&(G-=1),Z=Z==1?12:--Z;break;case"next":Z==12&&(G+=1),Z=Z==12?1:++Z;break}return[G+"",ie.getNumTwoBit(Z),ie.getMonthDays(String(G),String(Z))+""]},H=(I,R,G)=>{let{year:Z,month:le}=G;return R=="prev"&&I>=7&&(I-=7),Array.from(Array(I),(L,F)=>({day:String(F+1),type:R,year:Z,month:le}))},X=(I,R,G,Z)=>{I=I-e.firstDayOfWeek;let{year:le,month:L}=G;return R=="prev"&&I>=7&&(I-=7),Array.from(Array(Z),(F,q)=>({day:String(q+1),type:R,year:le,month:L})).slice(Z-I)},D=(I,R)=>{const G=ie.getMonthPreDay(+I[0],+I[1]);let Z=Number(I[1])-1,le=Number(I[0]);Z<=0&&(Z=12,le+=1);const L=ie.getMonthDays(String(I[0]),String(I[1])),F=ie.getMonthDays(le+"",Z+""),q={year:I[0],month:I[1]},E={curData:I,title:o("monthTitle",{year:q.year,month:q.month}),monthData:[...X(G,"prev",{month:String(Z),year:String(le)},F),...H(L,"curr",q)],cssHeight:0,cssScrollHeight:0};E.cssHeight=39+64*(E.monthData.length>35?6:5);let O=0;f.monthsData.length>0&&(O=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),E.cssScrollHeight=O,R=="next"?(!f.endData||!ie.compareDate(`${f.endData[0]}-${f.endData[1]}-${ie.getMonthDays(f.endData[0],f.endData[1])}`,`${I[0]}-${I[1]}-${I[2]}`))&&f.monthsData.push(E):!f.startData||!ie.compareDate(`${I[0]}-${I[1]}-${I[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(E):f.unLoadPrev=!0},M=()=>{let I=e.startDate?e.startDate:ie.getDay(0),R=e.endDate?e.endDate:ie.getDay(365);f.propStartDate=I,f.propEndDate=R,f.startData=v(I),f.endData=v(R),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const G={year:Number(f.startData[0]),month:Number(f.startData[1])},Z={year:Number(f.endData[0]),month:Number(f.endData[1])};let le=Z.month-G.month;Z.year-G.year>0&&(le=le+12*(Z.year-G.year)),le<=0&&(le=1),D(f.startData,"next");let L=1;do D($("next"),"next");while(L++<le);if(f.monthsNum=le,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(I&&ie.compareDate(f.currDate[0],I)&&f.currDate.splice(0,1,I),R&&ie.compareDate(R,f.currDate[1])&&f.currDate.splice(1,1,R),f.defaultData=[...v(f.currDate[0]),...v(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let F=[],q={};f.currDate.forEach(E=>{I&&!ie.compareDate(E,I)&&R&&!ie.compareDate(R,E)&&(Object.hasOwnProperty.call(q,E)||(F.push(E),q[E]=E))}),f.currDate=[...F],f.defaultData=[...v(F[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[F,q,E]=v(f.currDate[0]);f.currDate=ie.getWeekDate(F,q,E,e.firstDayOfWeek),I&&ie.compareDate(f.currDate[0],I)&&f.currDate.splice(0,1,I),R&&ie.compareDate(R,f.currDate[1])&&f.currDate.splice(1,1,R),f.defaultData=[...v(f.currDate[0]),...v(f.currDate[1])]}}else f.currDate&&(I&&ie.compareDate(f.currDate,I)?f.currDate=I:R&&!ie.compareDate(f.currDate,R)&&(f.currDate=R),f.defaultData=[...v(f.currDate)])};be({scrollToDate:I=>{ie.compareDate(I,f.propStartDate)?I=f.propStartDate:ie.compareDate(I,f.propEndDate)||(I=f.propEndDate);let R=v(I);f.monthsData.forEach((G,Z)=>{if(G.title==o("monthTitle",{year:R[0],month:R[1]})&&s.value){let le=f.monthsData[Z].cssScrollHeight-s.value.scrollTop;if(e.toDateAnimation){let L=0,F=setInterval(()=>{if(L++,s.value){let q=le/10;s.value.scrollTop=s.value.scrollTop+q}L>=10&&(clearInterval(F),s.value&&(s.value.scrollTop=f.monthsData[Z].cssScrollHeight))},40)}else s.value.scrollTop=f.monthsData[Z].cssScrollHeight}})},initPosition:()=>{s?.value&&(s.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let I=0,R=0;f.defaultData.length>0&&f.monthsData.forEach((le,L)=>{le.title==o("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(I=L),(e.type=="range"||e.type=="week")&&le.title==o("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(R=L)}),j(f.monthsNum,I),f.currentIndex=I,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(T({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),T({day:f.defaultData[5],type:"curr"},f.monthsData[R],!0)):e.type=="week"?T({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(le=>{let L=v(le),F=f.currentIndex;f.monthsData.forEach((q,E)=>{q.title==o("monthTitle",{year:L[0],month:L[1]})&&(F=E)}),T({day:L[2],type:"curr"},f.monthsData[F],!0)}):T({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let G=f.monthsData[f.monthsData.length-1],Z=G.cssHeight+G.cssScrollHeight;Ge(()=>{s?.value&&d?.value&&u?.value&&(g.value=s.value.clientHeight,d.value.style.height=`${Z}px`,s.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(Z/(f.monthsNum+1))}});const j=(I,R)=>{I>=3?R>0&&R<I?f.defaultRange=[R-1,R+3]:R==0?f.defaultRange=[R,R+4]:R==I&&(f.defaultRange=[R-2,R+2]):f.defaultRange=[0,I+2],f.translateY=f.monthsData[f.defaultRange[0]].cssScrollHeight},x=(I,R)=>(e.type=="range"||e.type=="week")&&I.type=="curr"&&p(I,R)=="fox-calendar__day--active",_=(I,R)=>x(I,R)&&m(y(I,R)),ne=(I,R)=>f.currDate.length>=2&&A(y(I,R))?x(I,R):!1,W=()=>{if(f.currDate.length>=2)return ie.isEqual(f.currDate[0],f.currDate[1])},U=I=>{const R=`${I.year}-${I.month}-${Number(I.day)<10?"0"+I.day:I.day}`;return ie.isEqual(R,ie.date2Str(new Date))},Q=I=>{if(f.monthsData.length<=1)return;const R=I.target.scrollTop;let G=Math.floor(R/f.avgHeight);if(G==0)R>=f.monthsData[G+1].cssScrollHeight&&(G+=1);else if(G>0&&G<f.monthsNum-1)R>=f.monthsData[G+1].cssScrollHeight&&(G+=1),R<f.monthsData[G].cssScrollHeight&&(G-=1);else{const Z=Math.round(R+g.value);Z<f.monthsData[G].cssScrollHeight+f.monthsData[G].cssHeight&&R>f.monthsData[G-1].cssScrollHeight&&(G-=1),G+1<=f.monthsNum&&Z>=f.monthsData[G+1].cssScrollHeight+f.monthsData[G+1].cssHeight&&(G+=1),G>=1&&R<f.monthsData[G-1].cssScrollHeight&&(G-=1)}f.currentIndex!==G&&(f.currentIndex=G,j(f.monthsNum,G)),f.yearMonthTitle=f.monthsData[G].title},J=()=>{f.chooseData.splice(0),f.monthsData.splice(0),M()};return M(),(0,t.watch)(()=>e.defaultValue,I=>{I&&e.poppable&&J()}),{weeks:c,compConthsData:S,showTopBtn:w,topInfo:b,bottomInfo:k,rangeTip:W,mothsViewScroll:Q,getClass:p,isStartTip:_,isEndTip:ne,chooseDay:T,isCurrDay:U,confirm:N,months:s,...(0,t.toRefs)(f),...(0,t.toRefs)(e),...r,monthsPanel:d,weeksPanel:h,viewArea:u}}}),Sm={class:"fox-calendar__header"},km={key:0,class:"fox-calendar__header-title"},wm={key:1,class:"fox-calendar__header-slot"},Cm={key:2,class:"fox-calendar__header-subtitle"},Nm={class:"fox-calendar__weekdays",ref:"weeksPanel"},Am={class:"fox-calendar__panel",ref:"monthsPanel"},Bm={class:"fox-calendar__month-title"},Tm={class:"fox-calendar__days"},Vm=["onClick"],$m={class:"fox-calendar__day-value"},Em={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Dm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Im={key:2,class:"fox-calendar__day-tips--curr"},qm={key:4,class:"fox-calendar__day-tip"},xm={key:0,class:"fox-calendar__footer"};function Pm(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[(0,t.createElementVNode)("view",Sm,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",km,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",wm,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Cm,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Nm,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.weeks,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:c},(0,t.toDisplayString)(i),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[(0,t.createElementVNode)("view",Am,[(0,t.createElementVNode)("view",{class:"fox-calendar__body",ref:"viewArea",style:(0,t.normalizeStyle)({transform:`translateY(${e.translateY}px)`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.compConthsData,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:c},[(0,t.createElementVNode)("view",Bm,(0,t.toDisplayString)(i.title),1),(0,t.createElementVNode)("view",Tm,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.monthData,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(s,i)]),onClick:h=>e.chooseDay(s,i)},[(0,t.createElementVNode)("view",$m,[(0,t.renderSlot)(e.$slots,"day",{date:s.type=="curr"?s:""},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.type=="curr"?s.day:""),1)])]),e.topInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",Em,[(0,t.renderSlot)(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):(0,t.createCommentVNode)("",!0),e.bottomInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",Dm,[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.type=="curr"?s:""})])):(0,t.createCommentVNode)("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Im,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(s,i)?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:3,class:(0,t.normalizeClass)(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},(0,t.toDisplayString)(e.startText),3)):(0,t.createCommentVNode)("",!0),e.isEndTip(s,i)?((0,t.openBlock)(),(0,t.createElementBlock)("view",qm,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,Vm))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",xm,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var Mm=re(vm,[["render",Pm]]),zm=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-calender__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(Se,_e({...e},{poppable:!1}),n):n?.default?.()??null}}),Lm=zm,Rm=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),tl={type:{type:[String],default:"one"},isAutoBackFill:{type:[Boolean],default:!1},toDateAnimation:{type:[Boolean],default:!0},poppable:{type:[Boolean],default:!0},showTitle:{type:[Boolean],default:!0},showSubTitle:{type:[Boolean],default:!0},visible:{type:[Boolean],default:!1},showToday:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},startText:{type:[String]},endText:{type:[String]},defaultValue:{type:[String,Array]},startDate:{type:[String]},endDate:{type:[String]},firstDayOfWeek:{type:[Number],default:0,validator:e=>e>=0&&e<=6}},{create:Fm}=ee("calendar"),Om=Fm({components:{Wrapper:Lm,CalendarPane:Mm},props:{...tl},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const l=(0,t.computed)(()=>a.btn),o=(0,t.computed)(()=>a["top-info"]),r=(0,t.computed)(()=>a.day),i=(0,t.computed)(()=>a["bottom-info"]),c=(0,t.ref)(null),s=b=>{c.value?.scrollToDate(b)},d=()=>{c.value?.initPosition()};(0,t.watch)(()=>e.visible,b=>{b&&(0,t.nextTick)(()=>{c.value?c.value.doLayout():setTimeout(()=>{c.value&&c.value.doLayout()},250)})}),be({scrollToDate:s,initPosition:d});const h=()=>{n("update:visible",!1)},u=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{u()},update:h,close:u,select:b=>{n("select",b)},choose:b=>{u(),n("choose",b)},calendarRef:c,showTopBtn:l,topInfo:o,dayInfo:r,bottomInfo:i}}});function Km(e,n,a,l,o,r){const i=(0,t.resolveComponent)("CalendarPane"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(c,(0,t.mergeProps)({visible:e.visible,position:"bottom","pop-class":"fox-calendar__popup",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,poppable:e.poppable}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},(0,t.createSlots)({_:2},[e.showTopBtn?{name:"btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","poppable"])}var nl=re(Om,[["render",Km]]),vi={modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:[String],default:"-"},valueFormat:{type:[String],default:"YYYY-MM-DD"},format:{type:[String],default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:[String]},textAlign:{type:[String]},clearable:{type:[Boolean],default:!0},maxLength:{type:[String,Number]},unit:{type:[String]}},pa=(e,n)=>{let a;return We(e)?a=e:typeof e=="string"&&we(e)>0?a=ie.parser(e,n):a=new Date,a},At=(e,n,a)=>(We(n)||(n=new Date),ie.format(n,a)),Bt=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,ie.date2Str(e),ie.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],Um={...ge,...ve,...tl,...vi};function Hm(e,n,a,l,o,{CloseIcon:r,MarkIcon:i},c=!1){return{props:Um,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{disabled:h,readonly:u,browse:g}=qe(s),{emitEvent:S}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return u.value},get disabled(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:w}=(0,pe.useFoxI18n)(n),b=w(s,["placeholder"]),k=(0,t.ref)(!1),f=(0,t.computed)(()=>s.type==="range"),v=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),m=()=>{v.startDate!==null&&(v.startDate=null,v.endDate=null,v.startArray=[],v.endArray=[])},A=(I,R="one",G="YYYY-MM-DD")=>{if(Rm(I)){m();return}if(f.value&&Array.isArray(I)&&I.length==2){let Z,le;typeof I[0]=="string"?(Z=pa(I[0],G),le=pa(I[1],G)):(Z=I[0],le=I[1]);let L=Bt(Z),F=Bt(le);(v.startDate===null||v.startDate.getTime()!==Z.getTime()||v.endDate?.getTime()!==le.getTime())&&(v.startDate=Z,v.startArray=L,v.endDate=le,v.endArray=F)}else{let Z;typeof I=="string"?Z=pa(I,G):Z=I;let le=Bt(Z);(v.startDate===null||v.startDate.getTime()!==Z.getTime())&&(v.startDate=Z,v.startArray=le)}};A(s.modelValue,s.type,s.valueFormat),(0,t.watch)(()=>s.modelValue,I=>{A(I,s.type,s.valueFormat),S("setValue",I)});const C=(0,t.computed)(()=>{if(v.startDate===null)return"";if(f.value){let I=At(s,v.startDate,s.format),R=At(s,v.endDate,s.format);return`${I} ${s.rangeSeparator} ${R}`}else{let I=At(s,v.startDate,s.format);return s.showWeek&&(I=`${I} ${v.startArray[4]}`),I}}),y=(0,t.computed)(()=>v.startDate===null?null:f.value?[ie.date2Str(v.startDate),ie.date2Str(v.endDate??new Date)]:ie.date2Str(v.startDate)),p="fox-input-item",N=(0,t.computed)(()=>({[p]:!0,"is-disabled":h.value,"is-readonly":u.value})),T=Te((0,t.computed)(()=>s.textAlign),"textAlign"),V=(0,t.computed)(()=>{const I={};return T.value&&(I["text-align"]=T.value),I}),$=(0,t.ref)(!1),H=()=>{u.value||h.value||($.value=!0)},X=I=>{$.value=I},D=I=>{if(I){if(f.value&&Array.isArray(I)){let R=I[0],G=de(R[0]),Z=de(R[1]),le=de(R[2]),L=new Date(G,Z-1,le),F=I[1];G=de(F[0]),Z=de(F[1]),le=de(F[2]);let q=new Date(G,Z-1,le);v.startDate=L,v.startArray=Bt(L),v.endDate=q,v.endArray=Bt(q),s.valueFormat?S("update:modelValue",[At(s,L,s.valueFormat),At(s,q,s.valueFormat)],{}):S("update:modelValue",[L,q],{})}else{let R=I,G=de(R[0]),Z=de(R[1]),le=de(R[2]),L=new Date(G,Z-1,le);v.startDate=L,v.startArray=Bt(L),s.valueFormat?S("update:modelValue",At(s,L,s.valueFormat),{}):S("update:modelValue",L,{})}S("change",I,{})}},M=I=>{let R=I.target.value;k.value=!0,S("focus",R,I)},z=I=>{setTimeout(()=>{k.value=!1},0);let R=I.target.value;s.maxLength&&R.length>Number(s.maxLength)&&(R=R.slice(0,Number(s.maxLength))),S("blur",R,I)},P=(0,t.computed)(()=>({[`${p}__append`]:!0,"is-disabled":h.value,"is-readonly":u.value})),K=(0,t.computed)(()=>we(s.unit)>0),j=(0,t.computed)(()=>we(s.unit)>0&&!k.value),x=(0,t.computed)(()=>({hidden:!j.value})),_=I=>{m(),S("update:modelValue",null,I),S("change","",I),S("clear","")},ne=(0,t.computed)(()=>s.clearable&&!h.value&&!u.value),W=(0,t.computed)(()=>{let I=we(C.value)>0;return s.clearable&&I&&k.value}),U=I=>{W.value?_(I):H()},Q=(0,t.computed)(()=>W.value&&ne.value?r:i),J=(0,t.computed)(()=>({action:!0}));return()=>{if(g.value==="on"&&(u.value||h.value))return o(C.value,d.slots);const I={class:N.value,style:V.value,type:"text",maxlength:s.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:C.value,onClick:H,onFocus:M,onBlur:z};c&&(I.disabled=!0);const R=[],G=(0,t.h)("input",I);R.push(G);const Z=[],le=(0,t.h)(Q.value,{class:["action-icon"]}),L=(0,t.h)("view",{class:J.value,onClick:U},{default:()=>[le]});if(Z.push(L),K.value){const ae=(0,t.h)("view",{class:x.value},[s.unit]);Z.push(ae)}const F=(0,t.h)("view",{class:P.value},{default:()=>Z});R.push(F);const q={default:()=>R};q.label=d.slots.default,q.prepend=d.slots.prepend,q.append=d.slots.append,q.fixedPreTip=d.slots.fixedPreTip,q.fixedTip=d.slots.fixedTip;const E=ye(s,tl);E.visible=$.value,E["onUpdate:visible"]=X,E["default-value"]=y.value,E.onChoose=D;const O={};if(d.slots.btn){const ae=d.slots.btn();O.btn=()=>ae}d.slots.day&&(O.day=d.slots.day),d.slots.topInfo&&(O.topInfo=d.slots.topInfo),d.slots.bottomInfo&&(O.bottomInfo=d.slots.bottomInfo);const Y=(0,t.h)(a,E,O);q.hide=()=>[Y];const te={..._e(s,tl,vi)};return s.prop&&(te.prop=`${s.prop}_item`),l(te,q)}}}}var{componentName:jm,create:Wm,scope:Ym}=ee("calendar-item"),Xm=Wm(Hm(jm,Ym,nl,Pe,ze,{CloseIcon:oe.CircleClose,MarkIcon:oe.Date},!1)),ga=Xm,Qm={readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},shape:{type:String,default:"round"},label:{type:[String,Number,Boolean],default:""},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}};function Gm(e,{CheckNormal:n,Checked:a}){return{props:{...Qm},setup(l,{emit:o,slots:r}){const i=(0,t.inject)("parent",null),c=In(),s=(0,t.computed)(()=>i.label.value===l.label),d=(0,t.computed)(()=>i.position),h=()=>{const b=[];if(s.value){if(r.checkedIcon)return r.checkedIcon();{const k=ce(l.iconSize),f=l.checkedIcon??c.radio.Checked??a;return b.push("fox-radio__icon"),l.disabled&&b.push("is-disabled"),l.readonly&&b.push("is-readonly"),(0,t.h)(f,{width:k,height:k,class:b})}}else{if(r.icon)return r.icon();{const k=ce(l.iconSize),f=l.icon??c.radio.CheckNormal??n;return b.push("fox-radio__icon--unchecked"),l.disabled&&b.push("is-disabled"),l.readonly&&b.push("is-readonly"),(0,t.h)(f,{width:k,height:k,class:b})}}},u=()=>{const b=[`${e}__label`];return l.disabled&&b.push("is-disabled"),l.readonly&&b.push("is-readonly"),(0,t.h)("view",{class:b},r.default?.())},g=()=>{const b=[`${e}__button`];return s.value&&b.push(`${e}__button--active`),l.disabled&&b.push("is-disabled"),l.readonly&&b.push("is-readonly"),(0,t.h)("view",{class:b},r.default?.())},S=()=>{s.value||l.disabled||l.readonly||i.updateValue(l.label)},w=d.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${w?`${e}--reverse`:""}`,onClick:S},[l.shape=="button"?g():w?[u(),h()]:[h(),u()]])}}}var{componentName:Zm,create:_m}=ee("radio"),Jm=_m(Gm(Zm,{CheckNormal:oe.CheckNormal,Checked:oe.CheckChecked})),ll=Jm,{componentName:Si,create:e0}=ee("radio-group"),t0=e0({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:a}=gt(),l=o=>a("update:modelValue",o);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:l}),(0,t.watch)(()=>e.modelValue,o=>a("change",o)),()=>{const o={};return e.textAlign&&(o["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Si} ${Si}--${e.direction}`,style:o},n.default?.())}}}),al=t0;function ki(e,n,a,l="value"){for(let o=0;o<n.length;o++){let r=n[o];if(l==="text"){if(ol(e,r)===a)return o}else if(l==="item"){if($e(a,r))return o}else if(Xt(e,r)===a)return o}return-1}function ol(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Xt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function n0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function l0(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var a0=class{proxy;constructor(e){this.proxy=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);let l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function o0(){return new a0((0,t.getCurrentInstance)().proxy)}function r0(e){return{text:e,value:e}}var wi={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},i0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},s0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Object],default:""}},c0={...ge,...ve,...wi,...i0,...s0};function u0(e,n,a,l,o,r){return{props:c0,emits:["change","update:modelValue","setValue"],setup(i,c){const{innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:g}=qe(i),{emitEvent:S}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return u.value},get disabled(){return d.value}},i.prop??c.attrs.name),w=Te((0,t.computed)(()=>i.textAlign),"textAlign"),b=o0(),k=(0,t.ref)([]),f=(0,t.computed)(()=>typeof i.sourceFilter=="function"&&Array.isArray(k.value)?k.value.filter(i.sourceFilter):k.value);(0,t.watch)([()=>i.source,()=>i.params],async([y,p])=>{if(y){const N=await b.load("radio",y,p);N.length>0?typeof N[0]=="string"?k.value=N.map(T=>r0(T)):k.value=N:k.value=[]}},{immediate:!0});let v=(0,t.ref)(-1);(0,t.watch)([()=>i.modelValue,()=>f.value],async([y,p])=>{v.value=ki(i,p,y,i.valueType),S("setValue",y)},{deep:!0});const m=(0,t.computed)(()=>{if(!i.source)return i.modelValue;if(v.value===-1)return null;const y=f.value[v.value];return Xt(i,y)}),A=y=>{let p=null,N=null;if(f.value.length>0){let T=ki(i,f.value,y,"value");v.value=T,T>=0&&(N=f.value[T],i.valueType==="text"?p=ol(i,N):i.valueType==="item"?p=N:p=Xt(i,N))}else p=y;S("update:modelValue",p),S("change",p,N)},C=()=>{let y=null,p=null;if(f.value.length>0&&v.value!==-1){let N=f.value[v.value];i.valueType==="text"?y=ol(i,N):i.valueType==="item"?y=N:y=Xt(i,N)}S("update:modelValue",y),S("change",y,p)};if(be({clear(){v.value!==-1&&(v.value=-1,C())},setDisabled:y=>{s.value=y},setReadonly:y=>{h.value=y}}),i.source){const y=()=>{const p=[],N=ye(i,wi);return f.value.forEach((T,V)=>{const $=Xt(i,T),H=n0(i,T);let X={...N,label:$,disabled:H};const D=l0(i,T,V);X={...X,...D},d.value&&(X.disabled=!0),u.value&&(X.readonly=!0);const M={};if(c.slots.icon&&(M.icon=c.slots.icon),c.slots.checkedIcon&&(M.checkedIcon=c.slots.checkedIcon),typeof c.slots.text=="function"){const P=c.slots.text(T);M.default=()=>[P]}else{const P=ol(i,T);M.default=()=>P}let z=(0,t.h)(r,X,M);p.push(z)}),p};return()=>{if(g.value==="on"&&(u.value||d.value))return l(m.value,c.slots,f.value);const p=y(),N=(0,t.h)(o,{class:`${e}`,direction:i.direction,textPosition:i.textPosition,textAlign:w.value,modelValue:m.value,"onUpdate:modelValue":A},{default:()=>p}),T={default:()=>N};T.label=c.slots.default,T.prepend=c.slots.prepend,T.append=c.slots.append,T.fixedPreTip=c.slots.fixedPreTip,T.fixedTip=c.slots.fixedTip;const V={...ye(i,ve,ge)};return i.prop&&(V.prop=`${i.prop}_item`),a(V,T)}}else return()=>{const y=c.slots.options?.()??[];return(0,t.h)(o,{class:`${e}`,direction:i.direction,textPosition:i.textPosition,textAlign:w.value,modelValue:m,"update:modelValue":A},{default:()=>y})}}}}var{componentName:d0,create:f0,scope:m0}=ee("radio-item"),h0=f0(u0(d0,m0,Pe,ze,al,ll)),ya=h0,p0=(e,{CheckNormal:n,Checked:a,Indeterminate:l})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(o,{slots:r}){const{emitEvent:i}=gt(),c=In(),s=(0,t.inject)("parent",null),d=(0,t.reactive)({partialSelect:o.indeterminate});(0,t.watch)(()=>o.indeterminate,m=>{d.partialSelect=m});const h=(0,t.computed)(()=>!!s),u=(0,t.computed)(()=>h.value?s.value.value.includes(o.label):!!o.modelValue),g=(0,t.computed)(()=>h.value?s.position:o.textPosition);let S="";const w=(m,A)=>{S="click",i("update:modelValue",m),i("change",m,A)};(0,t.watch)(()=>o.modelValue,m=>{S=="click"?S="":i("change",m)});const b=()=>{const m=[];if(d.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const A=ce(o.iconSize),C=o.indeterminateIcon??c.checkbox.Indeterminate??l;return m.push("fox-checkbox__icon--indeterminate"),o.disabled&&m.push("is-disabled"),o.readonly&&m.push("is-readonly"),(0,t.h)(C,{width:A,height:A,class:m})}}else if(u.value){if(r.checkedIcon)return r.checkedIcon();{const A=ce(o.iconSize),C=o.checkedIcon??c.checkbox.Checked??a;return m.push("fox-checkbox__icon"),o.disabled&&m.push("is-disabled"),o.readonly&&m.push("is-readonly"),(0,t.h)(C,{width:A,height:A,class:m})}}else{if(r.icon)return r.icon();{const A=ce(o.iconSize),C=o.icon??c.checkbox.CheckNormal??n;return m.push("fox-checkbox__icon--unchecked"),o.disabled&&m.push("is-disabled"),o.readonly&&m.push("is-readonly"),(0,t.h)(C,{width:A,height:A,class:m})}}},k=()=>{const m=[`${e}__label`];return o.disabled&&m.push("is-disabled"),o.readonly&&m.push("is-readonly"),(0,t.h)("view",{class:m},r.default?.())},f=()=>{const m=[`${e}__button`];return u.value&&m.push(`${e}__button--active`),o.disabled&&m.push("is-disabled"),o.readonly&&m.push("is-readonly"),(0,t.h)("view",{class:m},r.default?.())},v=m=>{if(!(o.disabled||o.readonly)){if(u.value&&d.partialSelect){d.partialSelect=!1,w(u.value,r.default?.()[0].children);return}if(w(!u.value,r.default?.()[0].children),h.value){const A=s.value.value,C=s.max.value,{label:y}=o,p=A.indexOf(y);p>-1?A.splice(p,1):p<=-1&&(A.length<C||!C)&&A.push(y),s.updateValue(A)}}};return(0,t.onMounted)(()=>{h.value&&s.link((0,t.getCurrentInstance)())}),(0,t.onBeforeUnmount)(()=>{h.value&&s.unlink((0,t.getCurrentInstance)())}),()=>(0,t.h)("view",{class:`${e} ${e}--${o.shape} ${g.value==="left"?`${e}--reverse`:""}`,onClick:v},[o.shape=="button"?f():[b(),k()]])}}),{componentName:g0,create:y0}=ee("checkbox"),b0=y0(p0(g0,{CheckNormal:oe.CheckNormal,Checked:oe.Checked,Indeterminate:oe.CheckDisabled})),rl=b0,{create:v0,componentName:Ci}=ee("checkbox-group"),S0=v0({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:a}=gt(),l=(0,t.reactive)({children:[]}),o=d=>{d.proxy&&l.children.push(d.proxy)},r=d=>{d.proxy&&(l.children=l.children.filter(h=>h!==d.proxy))},i=d=>{a("update:modelValue",d),a("change",d)},c=d=>{const h=[];d&&l.children.forEach(u=>{u?.disabled||h.push(u?.label)}),a("update:modelValue",h)},s=()=>{a("update:modelValue",l.children.filter(d=>d?.disabled?!1:!e.modelValue.includes(d.label)).map(d=>d.label))};return(0,t.provide)("parent",{value:(0,t.computed)(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:(0,t.computed)(()=>e.max),updateValue:i,link:o,unlink:r}),(0,t.watch)(()=>e.modelValue,d=>{a("change",d)}),be({toggleAll:c,toggleReverse:s}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Ci} ${Ci}--${e.direction}`,style:d},n.default?.())}}}),il=S0;function Ni(e,n,a,l="value"){for(let o=0;o<n.length;o++){let r=n[o];if(l==="text"){if(ba(e,r)===a)return o}else if(l==="item"){if($e(a,r))return o}else if(sl(e,r)===a)return o}return-1}function ba(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function sl(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function k0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function w0(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var C0=class{proxy;constructor(e){this.proxy=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);let l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function N0(){return new C0((0,t.getCurrentInstance)().proxy)}function A0(e){return{text:e,value:e}}var B0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Ai={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},T0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function]},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]},separator:{type:[String],required:!1,default:", "}},V0={...ge,...ve,...B0,...Ai,...T0};function $0(e,n,a,l,o,r){return{props:V0,emits:["change","update:modelValue","setValue"],setup(i,c){const{innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:g}=qe(i),S=Te((0,t.computed)(()=>i.textAlign),"textAlign"),{emitEvent:w}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return u.value},get disabled(){return d.value}},i.prop??c.attrs.name),b=N0(),k=(0,t.ref)([]),f=(0,t.computed)(()=>typeof i.sourceFilter=="function"&&Array.isArray(k.value)?k.value.filter(i.sourceFilter):k.value);(0,t.watch)([()=>i.source,()=>i.params],async([y,p])=>{if(y){const N=await b.load("checkbox",y,p);N.length>0?typeof N[0]=="string"?k.value=N.map(T=>A0(T)):k.value=N:k.value=[]}},{immediate:!0});const v=(0,t.ref)([]);(0,t.watch)([()=>i.modelValue,()=>f.value],async([y,p])=>{const N=[];Array.isArray(y)&&y.forEach(T=>{let V=Ni(i,p,T,i.valueType);V!==-1&&N.push(V)}),!$e(N,v.value)&&(v.value=N,w("setValue",N))},{deep:!0});const m=(0,t.computed)(()=>{if(!i.source)return i.modelValue;let y=[];return v.value.forEach(p=>{let N=f.value[p];y.push(sl(i,N))}),y}),A=y=>{let p=[],N=[];if(f.value.length>0){const T=[];Array.isArray(y)&&y.forEach(V=>{let $=Ni(i,f.value,V,"value");$!==-1&&T.push($);const H=f.value[$];N.push(H),i.valueType==="text"?p.push(ba(i,H)):i.valueType==="item"?p.push(H):p.push(sl(i,H))}),v.value=T}else p=y;w("update:modelValue",p),w("change",p,N)},C=(0,t.ref)();if(be({toggleAll:y=>{C.value.toggleAll(y)},toggleReverse:()=>{C.value.toggleReverse()},setDisabled:y=>{s.value=y},setReadonly:y=>{h.value=y}}),i.source){const y=()=>{const p=[],N=ye(i,Ai);return f.value.forEach((T,V)=>{const $=sl(i,T),H=k0(i,T);let X={...N,label:$,disabled:H};const D=w0(i,T,V);X={...X,...D},d.value&&(X.disabled=!0),u.value&&(X.readonly=!0);const M={};if(c.slots.icon&&(M.icon=c.slots.icon),c.slots.checkedIcon&&(M.checkedIcon=c.slots.checkedIcon),c.slots.indeterminateIcon&&(M.indeterminateIcon=c.slots.indeterminateIcon),typeof c.slots.text=="function"){const P=c.slots.text(T);M.default=()=>[P]}else{const P=ba(i,T);M.default=()=>P}let z=(0,t.h)(r,X,M);p.push(z)}),p};return()=>{if(g.value==="on"&&(u.value||d.value))return l(m.value,c.slots,f.value,i.separator);const p=y(),N=(0,t.h)(o,{class:`${e}`,ref:C,direction:i.direction,max:i.max,textPosition:i.textPosition,modelValue:m.value,"onUpdate:modelValue":A},{default:()=>p}),T={default:()=>N};T.label=c.slots.default,T.prepend=c.slots.prepend,T.append=c.slots.append,T.fixedPreTip=c.slots.fixedPreTip,T.fixedTip=c.slots.fixedTip;const V={...ye(i,ve,ge)};return i.prop&&(V.prop=`${i.prop}_item`),a(V,T)}}else return()=>{const y=c.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:C,direction:i.direction,max:i.max,textPosition:i.textPosition,textAlign:S.value,modelValue:m,"onUpdate:modelValue":A},{default:()=>y})}}}}var{componentName:E0,create:D0,scope:I0}=ee("checkbox-item"),q0=D0($0(E0,I0,Pe,ze,il,rl)),va=q0,Sa={modelValue:{type:[String,Boolean,Number],default:!1},disabled:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:x0,create:P0}=ee("switch"),M0=P0({components:{Loading1:oe.Loading1},props:{...Sa},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const c=x0;return{[c]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${c}-base`]:!0,"is-disabled":e.disabled}}),o=(0,t.computed)(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let r="";const i=c=>{if(e.disabled||e.loading)return;r="click";const s=a.value?e.inactiveValue:e.activeValue;n("update:modelValue",s),n("change",s,c)};return(0,t.watch)(()=>e.modelValue,c=>{r=="click"?r="":n("change",c)}),{classes:l,style:o,isActive:a,onClick:i}}}),z0={class:"fox-switch-button"};function L0(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...c)=>e.onClick&&e.onClick(...c)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",z0,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(i,{name:"loading",color:e.activeColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.activeText?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label open"},(0,t.toDisplayString)(e.activeText),513),[[t.vShow,e.isActive]]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label close"},(0,t.toDisplayString)(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):(0,t.createCommentVNode)("",!0)])],6)}var cl=re(M0,[["render",L0]]),R0={...ge,...ve,...Sa};function F0(e,n,a,l,o){return{props:R0,emits:["change","update:modelValue","setValue"],setup(r,i){const{innerDisabled:c,disabled:s,innerReadonly:d,readonly:h,browse:u}=qe(r),{emitEvent:g}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return h.value},get disabled(){return s.value}},r.prop??i.attrs.name),S=e,w=xe(r,"modelValue",null,g),b=k=>{w.value=k,g("update:modelValue",k,{}),g("change",k,{})};return be({setDisabled:k=>{c.value=k},setReadonly:k=>{d.value=k}}),()=>{if(u.value==="on"&&(h.value||s.value))return l(w.value,i.slots);const k={...ye(r,Sa),disabled:s.value||h.value,value:w.value,"onUpdate:modelValue":b},f=[],v=(0,t.h)(o,k);f.push(v);const m={default:()=>f};m.label=i.slots.default,m.fixedPreTip=i.slots.fixedPreTip,m.fixedTip=i.slots.fixedTip;const A={...ye(r,ve,ge)};return r.prop&&(A.prop=`${r.prop}_item`),A["content-class"]=S,a(A,m)}}}}var{componentName:O0,create:K0,scope:U0}=ee("switch-item"),H0=K0(F0(O0,U0,Pe,ze,cl)),ka=H0,j0={...ge,...ve,placeholder:{type:[String]},textAlign:{type:[String]},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1},unit:{type:[String],required:!1}};function W0(e,n,a,l){return{props:j0,emits:["click","focus","blur","change"],setup(o,r){const i=$n((0,t.computed)(()=>o.disabled)),c=Vn((0,t.computed)(()=>o.readonly)),{emitEvent:s}=Be({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return c.value},get disabled(){return i.value}},o.prop??r.attrs.name),{toLocaleRefs:d}=(0,pe.useFoxI18n)(n),h=d(o,["placeholder"]),u=(0,t.ref)(o.modelValue);(0,t.watch)(()=>o.modelValue,H=>{u.value=H,s("change",H)});const g=(0,t.computed)(()=>({[`${e}`]:!0})),S=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!i.value&&fe(u.value),"is-disabled":i.value,"is-readonly":c.value})),w=Te((0,t.computed)(()=>o.textAlign),"textAlign"),b=(0,t.computed)(()=>{const H={};return w.value&&(H["text-align"]=w.value),H}),k=(0,t.computed)(()=>!fe(o.modelValue)||r.slots.main?!0:!!fe(o.desc)),f=(0,t.computed)(()=>fe(u.value)?h.placeholder.value:u.value),v=(0,t.computed)(()=>!fe(o.desc)||r.slots.sub),m=(0,t.computed)(()=>({[`${e}__sub`]:!0})),A=(0,t.computed)(()=>{const H={};return w.value&&(H["text-align"]=w.value),H}),C=()=>{s("focus",u.value)},y=()=>{s("blur",u.value)},p=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":i.value,"is-readonly":c.value})),N=(0,t.computed)(()=>we(o.unit)>0),T=H=>{i.value==!0||c.value==!0||s("click")},V=(0,t.computed)(()=>o.icon??a),$=(0,t.computed)(()=>({action:!0}));return()=>{const H=[];if(typeof r.slots.content=="function"){const x=r.slots.content();H.push(x)}else{const x=[];if(k.value){const ne={tabIndex:0,class:S.value,style:b.value,onFocus:C,onBlur:y};let W=null;r.slots.main?W=(0,t.h)("view",ne,[r.slots.main(f.value)]):W=(0,t.h)("view",ne,[f.value]),x.push(W)}if(v.value){const ne={tabIndex:0,class:m.value,style:A.value,onFocus:C,onBlur:y};let W=null;r.slots.sub?W=(0,t.h)("view",ne,[r.slots.sub(o.desc)]):W=(0,t.h)("view",ne,[o.desc]),x.push(W)}const _=(0,t.h)("view",{class:g.value,onClick:T},x);H.push(_)}const X=[],D=ce(o.iconSize);let M=r.slots.icon;if(!M){const x={width:D,height:D,class:["action-icon"]};M=(0,t.h)(V.value,x)}const z=(0,t.h)("view",{class:$.value,onClick:T},{default:()=>[M]});if(X.push(z),N.value){const x=(0,t.h)("view",{},[o.unit]);X.push(x)}const P=(0,t.h)("view",{class:p.value},{default:()=>X});H.push(P);const K={default:()=>H};K.label=r.slots.default,K.prepend=r.slots.prepend,K.append=r.slots.append,K.fixedPreTip=r.slots.fixedPreTip,K.fixedTip=r.slots.fixedTip;const j={...ye(o,ve,ge)};return o.prop&&(j.prop=`${o.prop}_item`),l(j,K)}}}}var{componentName:Y0,create:X0,scope:Q0}=ee("link-item"),G0=X0(W0(Y0,Q0,oe.ArrowRight,Pe)),wa=G0,Ca={count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object},size:{type:[String,Number],default:void 0},activeColor:{type:String,default:""},voidColor:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:void 0}},{create:Z0,componentName:_0}=ee("rate"),J0=Z0({props:{...Ca},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)([]),o=(0,t.computed)(()=>({[_0]:!0})),r=S=>{n("update:modelValue",S),n("change",S)},i=(S,w)=>{if(e.disabled||e.readonly)return;let b=0;w===1&&e.modelValue===w||(b=w,e.allowHalf&&S==2&&(b-=.5)),r(b)},c=(S,w,b)=>{let k=0;for(let f=w.value.length-1;f>=0;f--){const v=w.value[f];if(S>v.offsetLeft){b?k=f+(S>v.offsetLeft+v.clientWidth/2?1:.5):k=f+1;break}}return k},s=lt(),d={onTouchStart(S){!e.touchable||e.readonly||s.start(S)},onTouchMove(S){e.touchable&&(s.move(S),s.isHorizontal()&&l.value&&(S.preventDefault(),r(c(s.moveX.value,l,e.allowHalf))))}},h=Math.random().toString(36).slice(-8),u=(0,t.computed)(()=>e.customIcon??oe.StarFillN);return{classes:o,...d,onClick:i,toPxString:me,renderIcon:(S,w)=>(0,t.h)(S,w),rateRefs:l,refRandomId:h,slots:a,customIcon:u}}}),eh=["id"],th={class:"fox-rate-item__icon--full"},nh={key:0,class:"fox-rate-item__icon--half"},lh={key:1,class:"fox-rate-item__icon--half"};function ah(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),i=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:i,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+i,style:(0,t.normalizeStyle)(i<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("view",th,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,t.normalizeClass)(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||i>e.modelValue}]),onClick:c=>e.onClick(1,i)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>i?((0,t.openBlock)(),(0,t.createElementBlock)("view",nh,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:c=>e.onClick(2,i)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<i?((0,t.openBlock)(),(0,t.createElementBlock)("view",lh,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:c=>e.onClick(2,i)},null,8,["onClick"]))])):(0,t.createCommentVNode)("",!0)],12,eh))),128))],34)}var ul=re(J0,[["render",ah]]),oh={...ge,...ve,...Ca};function rh(e,n,a,l,o){return{props:oh,emits:["change","update:modelValue","setValue"],setup(r,i){const{innerDisabled:c,disabled:s,innerReadonly:d,readonly:h,browse:u}=qe(r),{emitEvent:g}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return h.value},get disabled(){return s.value}},r.prop??i.attrs.name),S=e,w=xe(r,"modelValue",null,g),b=k=>{w.value=k,g("update:modelValue",k,{}),g("change",k,{})};return be({setDisabled:k=>{c.value=k},setReadonly:k=>{d.value=k}}),()=>{if(u.value==="on"&&(h.value||s.value))return l(w.value,i.slots);const k={...ye(r,Ca),disabled:s.value,readonly:h.value,value:w.value,"onUpdate:modelValue":b},f=[],v=(0,t.h)(o,k);f.push(v);const m={default:()=>f};if(i.slots.default){const C=i.slots.default();m.label=()=>C}const A=ye(r,ve,ge);return r.prop&&(A.prop=`${r.prop}_item`),A["content-class"]=S,a(A,m)}}}}var{componentName:ih,create:sh,scope:ch}=ee("rate-item"),uh=sh(rh(ih,ch,Pe,ze,ul)),Na=uh,dh=/scroll|auto|overlay/i,Bi=window;function fh(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Aa(e,n=Bi){let a=e;for(;a&&a!==n&&fh(a);){const{overflowY:l}=window.getComputedStyle(a);if(dh.test(l))return a;a=a.parentNode}return n}function Ti(e,n=Bi){const a=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(a.value=Aa(e.value,n))}),a}var Vi=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,mh={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function hh(e,n,a){return{props:{...mh},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),c=i(l,["pullText","loadText","noMoreText"]),s=(0,t.ref)(),d=Ti(s),h=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),u=(0,t.computed)(()=>({[e]:!0})),g=v=>v?v.offsetTop+g(v.offsetParent):0,S=()=>{let v=0,m=0,A="down";if(d.value==window){const C=Vi();s.value&&(v=g(s.value)+s.value.offsetHeight-C-window.innerHeight),m=C}else{const{scrollHeight:C,clientHeight:y,scrollTop:p}=d.value;v=C-y-p,m=p}return h.beforeScrollTop>m?A="up":A="down",h.beforeScrollTop=m,o("scroll-change",m),v<=l.threshold&&A=="down"},w=()=>{Ge(()=>{if(!S()||!l.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,o("update:modelValue",!0),(0,t.nextTick)(()=>o("load-more"))})},b=()=>{d.value&&d.value.addEventListener("scroll",w,l.useCapture)},k=()=>{d.value&&d.value.removeEventListener("scroll",w,l.useCapture)};(0,t.onMounted)(()=>{b(),l.immediate&&w()}),(0,t.onUnmounted)(()=>{k()});const f=(0,t.ref)(!1);return(0,t.onActivated)(()=>{f.value&&(f.value=!1,b())}),(0,t.onDeactivated)(()=>{f.value=!0,k()}),(0,t.watch)(()=>l.modelValue,v=>{v||(h.isInfiniting=!1)}),()=>{const v=(0,t.h)("view",{class:"fox-infinite__container"},[r?.default?.()]),m=[];if(h.isInfiniting){let C=r?.loading?.()??null;if(!C){let p=r?.loadingIcon?.()??null;p||(p=(0,t.h)(a,{class:["fox-infinite__bottom-box__img"]}));const N=(0,t.h)("view",{class:"fox-infinite__bottom-box__text"},[c.loadText.value]);C=[p,N]}const y=(0,t.h)("view",{class:"fox-infinite__bottom-box"},C);m.push(y)}else if(!l.hasMore){let C=r?.finished?.()??null;C||(C=(0,t.h)("view",{class:"fox-infinite__bottom-tips"},[c.noMoreText.value]),m.push(C))}const A=(0,t.h)("view",{class:"fox-infinite__bottom"},m);return(0,t.h)("view",{class:u.value,ref:s},[v,A])}}}}var{componentName:ph,create:gh,scope:yh}=ee("infinite-loading"),bh=gh(hh(ph,yh,oe.Loading)),dl=bh,{componentName:vh,create:Sh}=ee("button"),kh=Sh({components:{Loading:oe.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:l,size:o,shape:r,disabled:i,loading:c,color:s,plain:d,block:h}=(0,t.toRefs)(e);return{handleClick:g=>{!c.value&&!i.value&&n("click",g)},classes:(0,t.computed)(()=>{const g=vh;return{[g]:!0,[`${g}--${l.value}`]:l.value,[`${g}--${o.value}`]:o.value,[`${g}--${r.value}`]:r.value,[`${g}--plain`]:d.value,[`${g}--block`]:h.value,[`${g}--disabled`]:i.value,[`${g}--loading`]:c.value}}),getStyle:(0,t.computed)(()=>{const g={};return s?.value&&(d.value?(g.color=s.value,g.background="#fff",s.value?.includes("gradient")||(g.borderColor=s.value)):(g.color="#fff",g.background=s.value)),g})}}}),wh={class:"fox-button__wrap"};function Ch(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Loading");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle),onClick:n[0]||(n[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[(0,t.createElementVNode)("view",wh,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-icon-loading"})):(0,t.createCommentVNode)("",!0),e.$slots.icon&&!e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:1}):(0,t.createCommentVNode)("",!0),e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)({"fox-button__text":e.$slots.icon||e.loading})},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)])],6)}var ct=re(kh,[["render",Ch]]),Nh={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Ah=(e,n,a)=>({props:{...Nh},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:o}){const{emitEvent:r}=gt(),{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),c=i(l,["placeholder"]),s=(0,t.reactive)({active:!1}),d=(0,t.computed)(()=>({background:l.background})),h=(0,t.computed)(()=>({background:l.inputBackground})),u=T=>{let V=T.target.value;l.maxLength&&V.length>Number(l.maxLength)&&(V=V.slice(0,Number(l.maxLength))),r("update:modelValue",V,T),r("change",V,T)},g=(0,t.ref)({}),S=T=>{let V=T.target.value;s.active=!0,g.value=l.focusStyle,r("focus",V,T)},w=T=>{setTimeout(()=>{s.active=!1},0);let V=T.target.value;l.maxLength&&V.length>Number(l.maxLength)&&(V=V.slice(0,Number(l.maxLength))),g.value={},r("blur",V,T)},b=T=>{r("update:modelValue","",T),r("change","",T),r("clear","")},k=(0,t.computed)(()=>String(l.modelValue).length>0),f=(0,t.computed)(()=>{const T={};return k.value||(T.display="none"),T}),v=T=>{l.autoblur&&p.value?.blur(),(typeof T.cancelable!="boolean"||T.cancelable)&&T.preventDefault(),r("search",l.modelValue)},m=T=>{r("keyup-input",T)},A=T=>{r("click-input",T)},C=T=>{r("click-left-icon",l.modelValue,T)},y=(0,t.computed)(()=>({textAlign:l.inputAlign})),p=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&p.value.focus()});const N=()=>{const T=[];if(o.leftin){const X=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:C},[o.leftin()]);T.push(X)}const V=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:p,style:y.value,type:l.inputType,maxlengt:l.maxLength,placeholder:c.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:A,onInput:u,onFocus:S,onBlur:w,onkeyup:m}),$=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:v},[V]);T.push($);const H=[];if(l.clearable){const X=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:b},[(0,t.h)(o?.clear?.()??l.clearIcon??a)]);H.push(X)}if(o.rightin){const X=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[o.rightin()]);H.push(X)}if(H.length>0){const X=(0,t.h)("view",{class:`${e}__input-inner-right`},H);T.push(X)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...h.value,...g.value}},T)};return()=>{const T=[];if(l.label){const $=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);T.push($)}if(o.leftout){const $=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[o.leftout()]);T.push($)}const V=N();if(T.push(V),o.rightout){const $=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[o.rightout()]);T.push($)}return(0,t.h)("view",{class:`${e}`,style:d.value},T)}}}),{componentName:Bh,create:Th,scope:Vh}=ee("searchbar"),$h=Th(Ah(Bh,Vh,oe.CircleClose)),fl=$h,ml={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,String,Object],default(){return[]}},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},textPosition:{type:[String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},noMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},searchDelayTriggerClear:{type:Number,default:250},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Eh(e,n,a,l="value"){for(let o=0;o<n.length;o++){let r=n[o];if(l==="text"){if(hl(e,r)===a)return o}else if(l==="item"){if($e(a,r))return o}else if(Ei(e,r)===a)return o}return-1}function hl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function $i(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Ei(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Dh(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Ih(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var qh=class{proxy;constructor(e){this.proxy=e}async load(e,n,a,l,o,r,i){if(!n)return{totalSize:0,page:[]};if(Array.isArray(n)){let s=n;typeof i=="function"&&(s=s.filter(i));let d=(a-1)*l,h=d+l;h>s.length&&(h=s.length);const u=s.slice(d,h);return{totalSize:s.length,page:u}}if(typeof n=="function")return await Reflect.apply(n,null,[a,l,o,r]);const c=nt(this.proxy,e);return c===null?(console.error(`${e} component not found api function`),{totalSize:0,page:[]}):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await Reflect.apply(c,null,[n,a,l,o]))}};function xh(){return new qh((0,t.getCurrentInstance)().proxy)}function Ph(e,n,a,l,o,r,i,c,s,d,h){return{props:ml,emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(u,{slots:g}){const{emitEvent:S}=gt(),{toLocaleRefs:w}=(0,pe.useFoxI18n)(n),b=w(u,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),k=xh(),f=(0,t.ref)([]),v=(0,t.ref)(0),m=(0,t.ref)(""),A=(0,t.shallowRef)(null),C=(0,t.computed)(()=>{const L={};return u.params&&Object.assign(L,u.params),fe(m.value)||(L[`${u.searchKey}`]=m.value),A.value&&Object.assign(L,A.value),L});let y=!0;const p=async(L,F,q)=>{try{if(T.value===!1)return;let E=null;fe(m.value)||(E=Y=>{const te=hl(u,Y);if(typeof te=="string"&&te.includes(m.value))return!0;const ae=$i(u,Y);return!!(typeof ae=="string"&&ae.includes(m.value))});const O=await k.load("actionsheet",L,F,q,C.value,y,E??void 0);y=!1,Array.isArray(O)?(f.value=O,v.value=1,T.value=!1):!Array.isArray(O.page)||O.page.length===0?(console.warn("[FoxUI] can not load more data"),T.value=!1):(Reflect.apply([].push,f.value,O.page),v.value=Math.ceil(f.value.length/u.pageSize),(O.totalSize&&f.value.length>=O.totalSize||q<O.page.length)&&(T.value=!1)),N.value=!1}catch(E){console.error("[FoxUI] ActionSheet load more data fail",E),T.value=!0,v.value=0,f.value=[]}setTimeout(()=>{S("loaded-data")},250)},N=(0,t.ref)(!1),T=(0,t.ref)(!0),V=async()=>{if(!u.source){N.value=!1;return}await p(u.source,v.value+1,u.pageSize)};let $=null;(0,t.watch)(m,(L,F)=>{$&&(clearTimeout($),$=null),fe(L)&&!fe(F)&&($=setTimeout(()=>{X()},u.searchDelayTriggerClear))});const H=()=>{T.value=!0,v.value=0,f.value=[],u.source&&V()},X=()=>{H()};(0,t.watch)([()=>u.source,()=>u.pageSize,()=>u.params],async([L,F,q])=>{u.source&&H()},{immediate:!0});const D=(0,t.computed)(()=>!u.multiple&&u.isAutoBackFill),M=(0,t.ref)([]);let z=null;const P=(0,t.ref)(u.visible);(0,t.watch)(()=>u.visible,L=>{P.value!==L&&(P.value=L),L?z=[...M.value]:z=null});const K=(L,F)=>{const q=[];return Array.isArray(L)||(L=[L]),L.forEach(E=>{let O=Eh(u,F,E,u.valueType);O!==-1&&q.push(O)}),$e(q,M.value)?!1:(M.value=q,!0)};(0,t.watch)([()=>u.modelValue,()=>f.value],([L,F],[q,E])=>{K(L,F)&&x(j())},{deep:!0});const j=()=>{const L=[],F=[],q=[];for(let te of M.value){const ae=f.value[te];F.push(ae);const se=hl(u,ae);if(q.push(se),u.valueType==="item")L.push(ae);else if(u.valueType==="text")L.push(se);else{const ue=Ei(u,ae);L.push(ue)}}let E=null,O=null,Y=null;return u.multiple?(E=L,O=q,Y=F):(E=L[0]??null,O=q[0]??null,Y=F[0]??null),{value:E,text:O,item:Y}},x=L=>{S("update:modelValue",L.value),S("update:text",L.text),S("change",L.value,L.item,L.text)},_=()=>{z&&(M.value=z)},ne=L=>{const F=M.value.indexOf(L);u.multiple?F===-1?M.value.push(L):M.value.splice(F,1):F===-1?M.value=[L]:M.value=[],(D.value||!u.poppable&&!u.showFooter)&&Q()},W=L=>{P.value=L,S("update:visible",L)},U=()=>{const L=()=>{_(),W(!1)},F=u.beforeMethod??u.beforeClose;if(typeof F=="function"){const q=F("close");dt(q)?q.then(E=>{E!==!1&&L()}).catch(()=>{L()}):q!==!1&&L()}else L()},Q=()=>{const L=j(),F=()=>{x(L),W(!1)},q=u.beforeMethod??u.beforeClose;if(typeof q=="function"){const E=q("confirm",L.value,L.item,L.text);dt(E)?E.then(O=>{O!==!1&&F()}).catch(()=>{F()}):E!==!1&&F()}else F()},J=()=>{let L=b.title.value??"";return g.title&&(L=g.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[L]),(0,t.h)(s,{class:["fox-actionsheet__header-icon"],onClick:U})])},I=()=>{let L=null;return g.search?L=g.search():L=(0,t.h)(r,{onSearch:H,placeholder:b.seachPlaceholder.value,disabled:u.disabled,modelValue:m.value,"onUpdate:modelValue":F=>{m.value=F}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[L])},R=(L,F,q,E,O)=>{if(g.optionLabel)return g.optionLabel({text:L,checked:F,disabled:q,subText:E,item:O});const Y=[],te=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[L]);if(Y.push(te),E){const ae=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[E]);Y.push(ae)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},Y)},G=(L,F,q,E)=>g.optionIcon?g.optionIcon({checked:L,disabled:F,iconSize:q,item:E}):L?g.checkedIcon?g.checkedIcon({disabled:F,item:E}):(0,t.h)(u.checkedIcon??c,{width:q,height:q,class:["fox-actionsheet__list-item-icon"]}):g.icon?g.icon({disabled:F,item:E}):(0,t.h)(u.icon??i,{width:q,height:q,class:["fox-actionsheet__list-item-icon"]}),Z=()=>{const L=[];for(let F=0;F<f.value.length;F++){const q=f.value[F],E=hl(u,q),O=$i(u,q),Y=["fox-actionsheet__list-item"],te={};let ae=Dh(u,q),se=u.iconSize?ce(u.iconSize):null;const ue=Ih(u,q,F);ue&&(ae=ae||ue.disabled,ue.class&&Y.push(ue.class),ue.style&&Object.assign(te,ue.style)),ae=!!(u.disabled||ae);const Xe=M.value.includes(F);ae&&Y.push("is-disabled"),Xe&&Y.push("is-checked");const Qe={class:Y,style:te,key:`${F}`,onClick:()=>{ae||ne(F)}};let Re=[];if(g.option)Re.push(g.option({item:q,checked:Xe,disabled:ae}));else{const q2=R(E,Xe,ae,O,q);Re.push(q2);const x2=G(Xe,ae,se,q);Re.push(x2),u.textPosition==="right"&&Re.reverse()}const rn=(0,t.h)("view",Qe,Re);L.push(rn)}return L},le=()=>{let L=[];if(g.buttons)L=g.buttons();else{const F=(0,t.h)(o,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:Q,disabled:u.disabled},{default:()=>b.confirmText.value});L.push(F)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[L])};return be({search:async(L=null,F=!0)=>{A.value=L&&(0,t.toRaw)(L),(0,t.triggerRef)(A),F&&(T.value=!0,v.value=0,f.value=[]),(0,t.nextTick)(()=>{V()})},clear:()=>{T.value=!0,v.value=0,f.value=[]},confirm:()=>{Q()},cancel:()=>{U()}}),()=>{const L=[];if(u.showHeader){const ae=J();L.push(ae)}if(u.showSearchbar){const ae=I();L.push(ae)}let F=null;if(g.content)F=g.content();else{const ae=Z();F=(0,t.h)(l,{hasMore:T.value,loadText:b.loadText.value,noMoreText:b.noMoreText.value,modelValue:N.value,"onUpdate:modelValue":se=>{N.value=se},onLoadMore:V},{default:()=>ae})}const q={};u.optionsHeight&&(q.height=u.optionsHeight);const E={"fox-actionsheet__list":!0};u.poppable||(E["fox-actionsheet__list--inner"]=!0);const O=(0,t.h)("view",{class:E,style:q},[F]);if(L.push(O),u.showFooter&&!D.value){const ae=le();L.push(ae)}const Y=(0,t.h)("view",{class:"fox-actionsheet"},L);if(!u.poppable)return Y;const te=["fox-actionsheet__popup"];return u.popClass&&te.push(u.popClass),(0,t.h)(a,{popClass:te.join(" "),visible:P.value,closeable:!1,"onUpdate:visible":W,position:u.position,round:"round",onClickOverlay:U,closeOnClickOverlay:u.closeOnClickOverlay},{default:()=>Y})}}}}var{componentName:Mh,create:zh,scope:Lh}=ee("actionsheet-pane"),Rh=zh(Ph(Mh,Lh,Se,dl,ct,fl,oe.CheckNormal,oe.Checked,oe.Close,oe.Search2,!1)),pl=Rh,Di={type:{type:String,default:"text"},placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}},Fh={...ge,...ve,...Di,...ml};function Oh(e,n,a,l,o,r,i,c){return{props:Fh,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{innerDisabled:h,disabled:u,innerReadonly:g,readonly:S,browse:w}=qe(s),{emitEvent:b}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return u.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),v=(0,t.ref)(!1),m=xe(s,"modelValue",null,b),A=(0,t.ref)(""),C=(0,t.computed)(()=>Array.isArray(A.value)?A.value.join(s.separator):A.value),y="fox-input-item",p=(0,t.computed)(()=>({[y]:!0,"is-disabled":u.value,"is-readonly":S.value})),N=Te((0,t.computed)(()=>s.textAlign),"textAlign"),T=(0,t.computed)(()=>{const G={};return N.value&&(G["text-align"]=N.value),G}),V=(0,t.ref)(!1),$=()=>{V.value=!0},H=G=>{V.value=G},X=G=>{m.value=G,b("update:modelValue",G)},D=(G,Z)=>{b("change",G,Z)},M=G=>{let Z=G.target.value;v.value=!0,b("focus",Z,G)},z=G=>{setTimeout(()=>{v.value=!1},0);let Z=G.target.value;s.maxLength&&Z.length>Number(s.maxLength)&&(Z=Z.slice(0,Number(s.maxLength))),b("blur",Z,G)},P=G=>{A.value=G,b("update:text",G)},K=(0,t.computed)(()=>({[`${y}__append`]:!0,"is-disabled":u.value,"is-readonly":S.value})),j=(0,t.computed)(()=>we(s.unit)>0),x=(0,t.computed)(()=>we(s.unit)>0&&!v.value),_=(0,t.computed)(()=>({hidden:!x.value})),ne=G=>{m.value="",b("update:modelValue","",G),b("change","",G),b("clear","")},W=(0,t.computed)(()=>s.clearable&&!u.value&&!S.value),U=(0,t.computed)(()=>we(m.value)>0&&v.value),Q=G=>{U.value?ne(G):$()},J=(0,t.computed)(()=>U.value&&W.value?o:r),I=(0,t.computed)(()=>({action:!0})),R=(0,t.ref)(null);return be({search:G=>{R.value&&R.value.search(G)},clear:()=>{R.value&&R.value.clear},confirm:G=>{R.value&&R.value.confirm()},cancel:()=>{R.value&&R.value.cancel()},setDisabled:G=>{h.value=G},setReadonly:G=>{g.value=G}}),()=>{if(w.value==="on"&&(S.value||u.value))return l(C.value,d.slots);const G={class:p.value,style:T.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:C.value,onClick:$,onFocus:M,onBlur:z};c&&(G.disabled=!0);const Z=[],le=(0,t.h)("input",G);Z.push(le);const L=[],F=(0,t.h)(J.value,{class:["action-icon"]}),q=(0,t.h)("view",{class:I.value,onClick:Q},{default:()=>[F]});if(L.push(q),j.value){const se=(0,t.h)("view",{class:_.value},[s.unit]);L.push(se)}const E=(0,t.h)("view",{class:K.value},{default:()=>L});Z.push(E);const O={default:()=>Z};O.label=d.slots.default,O.prepend=d.slots.prepend,O.append=d.slots.append,O.fixedPreTip=d.slots.fixedPreTip,O.fixedTip=d.slots.fixedTip;const Y=ye(s,ml);Y.ref=R,Y.class=s.actionSheetClass,Y.disabled=u.value||S.value,Y.visible=V.value,Y["onUpdate:visible"]=H,Y.modelValue=m.value,Y["onUpdate:modelValue"]=X,Y.text=A.value,Y["onUpdate:text"]=P,Y.onChange=D,Y.poppable=!0,Y["text-position"]=s.textPosition;const te=(0,t.h)(i,Y,{title:d.slots.title,search:d.slots.search,option:d.slots.option,optionLabel:d.slots.optionLabel,optionIcon:d.slots.optionIcon,buttons:d.slots.buttons});O.hide=()=>[te];const ae={..._e(s,Di,ml)};return s.prop&&(ae.prop=`${s.prop}_item`),a(ae,O)}}}}var{componentName:Kh,create:Uh,scope:Hh}=ee("actionsheet-item"),jh=Uh(Oh(Kh,Hh,Pe,ze,oe.CircleClose,oe.ArrowRight,pl)),Ba=jh,Ta={modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:[Boolean],default:!1},readonly:{type:[Boolean],default:!1}},{componentName:Wh,create:Yh}=ee("input-number"),Xh=Yh({components:{Minus:oe.Minus,Plus:oe.Plus},props:{...Ta},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=(0,t.computed)(()=>{const S=Wh;return{[S]:!0,[`${S}--disabled`]:e.disabled}}),l=S=>Number(S).toFixed(Number(e.decimalPlaces)),o=S=>{const w=S.target;n("update:modelValue",w.valueAsNumber,S)},r=(S,w)=>{let b=l(S);n("update:modelValue",b,w),n("change",b,w)},i=(S=Number(e.modelValue))=>S<Number(e.max)&&!e.disabled,c=(S=Number(e.modelValue))=>S>Number(e.min)&&!e.disabled,s=S=>{n("reduce",S),c()?r(Number(e.modelValue)-Number(e.step),S):n("overlimit",S,"reduce")},d=S=>{n("add",S),i()?r(Number(e.modelValue)+Number(e.step),S):n("overlimit",S,"add")},h=S=>{e.disabled||e.readonly||n("focus",S)},u=S=>{if(e.disabled||e.readonly)return;let w=S.target.valueAsNumber;w<Number(e.min)?w=Number(e.min):w>Number(e.max)&&(w=Number(e.max)),r(w,S),n("blur",S)},g=S=>{let w=Number(S);return w<Number(e.min)?w=Number(e.min):w>Number(e.max)&&(w=Number(e.max)),w};return(0,t.watch)(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const S=g(e.modelValue);S!==Number(e.modelValue)&&r(S,{})}),{classes:a,change:o,blur:u,focus:h,add:d,addAllow:i,reduce:s,reduceAllow:c,toPxString:me}}}),Qh=["min","max","disabled","readonly","value"];function Gh(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Minus"),c=(0,t.resolveComponent)("Plus");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:n[0]||(n[0]=(...s)=>e.reduce&&e.reduce(...s))},[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[(0,t.createVNode)(i,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2),(0,t.createElementVNode)("input",{type:"number",min:e.min,max:e.max,style:(0,t.normalizeStyle)({width:e.toPxString(e.inputWidth),height:e.toPxString(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[1]||(n[1]=(...s)=>e.change&&e.change(...s)),onBlur:n[2]||(n[2]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[3]||(n[3]=(...s)=>e.focus&&e.focus(...s))},null,44,Qh),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[4]=(...s)=>e.add&&e.add(...s))},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[(0,t.createVNode)(c,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var gl=re(Xh,[["render",Gh]]),Zh={...ge,...ve,...Ta};function _h(e,n,a,l,o){return{props:Zh,emits:["change","update:modelValue","setValue","add","reduce"],setup(r,i){const{innerDisabled:c,disabled:s,innerReadonly:d,readonly:h,browse:u}=qe(r),{emitEvent:g}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!h.value}},r.prop??i.attrs.name),S=(0,t.computed)(()=>{const v=[`${e}`];return r.textAlign==="left"?v.push("is-left"):r.textAlign==="center"?v.push("is-center"):r.textAlign==="right"&&v.push("is-right"),v.join(" ")}),w=xe(r,"modelValue",null,g),b=v=>{w.value=v,g("update:modelValue",v,{}),g("change",v,{})},k=v=>{g("add",v)},f=v=>{g("reduce",v)};return be({setDisabled:v=>{c.value=v},setReadonly:v=>{d.value=v}}),()=>{if(u.value==="on"&&(h.value||s.value))return l(w.value,i.slots);const v={"left-icon":i.slots["left-icon"],"right-icon":i.slots["right-icon"]},m=ye(r,Ta),A=(0,t.h)(o,{...i.attrs,...m,disabled:s.value,readonly:h.value,value:w.value,"onUpdate:modelValue":b,onAdd:k,onReduce:f},v),C=[];C.push(A);const y={default:()=>C};y.label=i.slots.default,y.fixedPreTip=i.slots.fixedPreTip,y.fixedTip=i.slots.fixedTip;const p={...ye(r,ve,ge)};return r.prop&&(p.prop=`${r.prop}_item`),p["content-class"]=S.value,a(p,y)}}}}var{componentName:Jh,create:ep,scope:tp}=ee("input-number-item"),np=ep(_h(Jh,tp,Pe,ze,gl)),Va=np,lp={...ia,...sa,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function ap(e,n,a,l){return{props:lp,emits:["update:modelValue","change"],setup(o,{emit:r,slots:i}){const c=e,s=(0,t.computed)(()=>{const b=[`${c}`];return o.direction==="vertical"?b.push("vertical-tabbar"):b.push("horizontal-tabbar"),b}),d=(0,t.computed)(()=>{const b={};if(o.width){const k=me(o.width);k&&(b.width=k)}if(o.height){const k=me(o.height);k&&(b.height=k)}return b}),h=(0,t.computed)(()=>[`${c}__bar`]),u=(0,t.computed)(()=>[`${c}__container`]),g=(0,t.ref)(o.modelValue);(0,t.watch)(()=>o.modelValue,b=>{g.value!==b&&(g.value=b)});const S=b=>{r("change",b)},w=b=>{g.value!==b&&(g.value=b,r("update:modelValue",b))};return()=>{const{getChildren:b}=Rn(i.default),k=b(),f=[];if(Array.isArray(o.data))f.push(...o.data);else for(let N=0;N<k.length;N++){const T=k[N].props??{},V={text:T.label??"",value:T["pane-key"]??T.paneKey??""};f.push(V)}const v={};for(let N in i)N!=="default"&&(v[N]=i[N]);const m=ye(o,ia);Object.assign(m,{data:f,class:h.value,modelValue:g.value,direction:o.direction,onChange:S,"onUpdate:modelValue":w});const A=(0,t.h)(a,m,v),C={default:()=>k},y=ye(o,sa);Object.assign(y,{class:u.value,modelValue:g.value,onChange:S,"onUpdate:modelValue":w});const p=(0,t.h)(l,y,C);return(0,t.h)("view",{class:s.value,style:d.value},[A,p])}}}}var{create:op,componentName:rp,scope:ip}=ee("tabs-frame"),sp=op(ap(rp,ip,Wt,Yt)),$a=sp,cp={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function up(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ii(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function qi(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function dp(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Ea(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function xi(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Pi(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Da(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var fp=class{proxy;constructor(e){this.proxy=e}async load(e,n,a){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[a]);const l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await Reflect.apply(l,null,[n,a]))}};function mp(){return new fp((0,t.getCurrentInstance)().proxy)}function hp(e,n,a,l){return{props:{...cp},emits:["update:modelValue","change","loaded-data","click"],setup(o,{slots:r,emit:i}){const c=e,s=mp(),d=(0,t.ref)([]),h=(0,t.computed)(()=>d.value.filter(W=>dp(o,W)!==!1)),u=(0,t.ref)(-1),g=()=>{const W=o.modelValue,U=h.value.findIndex(Q=>Ii(o,Q)===W);u.value!==U&&(u.value=U,o.scroll&&_(U,!1))};(0,t.watch)([()=>o.modelValue,h],()=>{g()});const S=W=>u.value===W,w=W=>{if(W<0&&W>=h.value.length)return!1;const U=h.value[W],Q=(Da(o,U,W)??{}).status??Ea(o,U);return S(W)||Q},b=(0,t.computed)(()=>{const W={[c]:!0};return o.mode?W[`is-${o.mode}`]=!0:o.direction&&(W[`is-${o.direction}`]=!0),o.scroll&&(W["is-scroll"]=!0),W}),k=(0,t.computed)(()=>({})),f=(W,U,Q,J,I)=>{const R={[`${c}__step`]:!0};return I&&(R[`${I}`]=!0),R[`${v.value}`]=!0,J&&(R["is-doit"]=!0),W===u.value?R["is-active"]=!0:U==="done"?R["is-done"]=!0:U==="error"?R["is-error"]=!0:U==="half"?R["is-half"]=!0:Q?R["is-disabled"]=!0:R["is-normal"]=!0,R},v=(0,t.computed)(()=>{let W=o.align;if(!W){if(o.mode==="simple")return"start";o.direction==="vertical"?W="start":W="center"}return W}),m=(W,U={})=>{const Q={...U};if(v.value==="start"&&W===h.value.length-1)Q.flex="0 0 auto";else if(o.step){const J=typeof o.step=="number"||hn(o.step)?me(o.step):o.step;o.direction==="vertical"?Q.height=J:Q.width=J}else Q.flex="1 1 100%";return Q},A=(W,U)=>{let Q={};if(U<h.value.length-1){const J=U+1;w(U)&&w(J)?o.direction==="vertical"?Q.height="100%":Q.width="100%":Q.opacity="0"}return Q},C=W=>h.value.length-1===W,y=(W,U)=>{if(o.clickNavigatePolicy==="disabled"||(o.clickNavigatePolicy==="only-back"||o.clickNavigatePolicy==="only-back-reset")&&U>u.value||u.value===U)return;const Q=u.value,J=U;u.value=U,o.scroll&&_(U,!1);const I=Ii(o,W);i("update:modelValue",I),i("change",I,{fromIndex:Q,currentIndex:J,item:W,items:h.value,clickNavigatePolicy:o.clickNavigatePolicy})},p=(0,t.ref)(!0),N=async(W,U)=>{try{const Q=await s.load("stesbar",W,U);Array.isArray(Q)&&(d.value=Q),p.value=!1}catch(Q){console.error("[FoxUI] Load StepsBar Data Fail",Q),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};(0,t.watch)([()=>o.data,()=>o.params],async([W,U])=>{W&&N(W,U)},{immediate:!0});const T=(W,U,Q,J,I,R)=>{const G=[];let Z=null;if(!R)if(r.icon)Z=r.icon({item:W,index:U,status:J});else if(J==="done"){const le={};o.iconSize&&(le.width=o.iconSize,le.height=o.iconSize),Z=(0,t.h)(o.icon??a,le)}else Z=(0,t.h)("span",{},[Q??`${U+1}`]);return Z&&G.push(Z),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{i("click",{item:W,index:U}),!I&&y(W,U)}},G)},V=(W,U,Q)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:A(W,U)})]),$=()=>{let W=null;if(r.markIcon)W=r.markIcon();else{const U={};o.iconSize&&(U.width=o.markIconSize,U.height=o.markIconSize),W=(0,t.h)(o.markIcon??l,U)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[W])},H=(W,U,Q,J,I,R)=>{const G=[];if(!C(U)){const le=V(W,U,J);G.push(le)}const Z=T(W,U,Q,J,I,R);return G.push(Z),(0,t.h)("view",{class:"fox-steps-bar__head"},G)},X=(W,U,Q,J)=>{let I=null;return r.main?I=r.main({item:W,index:U,status:Q}):I=up(o,W),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{i("click",{item:W,index:U}),!J&&y(W,U)}},[I])},D=(W,U,Q)=>{let J=null;return r.sub?(J=r.sub({item:W,index:U,status:Q}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[J])):null},M=(W,U)=>{const Q=Da(o,W,U)??{},J=Q.status??Ea(o,W);let I=qi(o,W);Q.disabled===!0&&(I=!0),o.disabled===!0&&(I=!0);let R=xi(o,W);Q.doit===!0&&(R=!0);const G=Q.label??Pi(o,W),Z=[],le=T(W,U,G,J,I,R);le&&Z.push(le);const L=X(W,U,J,I);if(L&&Z.push(L),!C(U)){const O=V(W,U,J);O&&Z.push(O)}const F=(0,t.h)("view",{class:"fox-steps-bar__head"},Z),q=Q.class,E=Q.style??{};return(0,t.h)("view",{ref:x(U),class:f(U,J,I,R,q),style:m(U,E)},[F])},z=(W,U)=>{const Q=Da(o,W,U)??{},J=Q.status??Ea(o,W);let I=qi(o,W);Q.disabled===!0&&(I=!0),o.disabled===!0&&(I=!0);let R=xi(o,W);Q.doit===!0&&(R=!0);const G=Q.label??Pi(o,W),Z=[],le=o.layout;for(let q of le)if(q==="head"){const E=H(W,U,G,J,I,R);Z.push(E)}else if(q==="main"){const E=X(W,U,J,I);Z.push(E)}else if(q==="sub"){const E=D(W,U,J);Z.push(E)}else if(q==="mark"){const E=$();Z.push(E)}const L=Q.class,F=Q.style??{};return(0,t.h)("view",{ref:x(U),class:f(U,J,I,R,L),style:m(U,F)},Z)},P=(0,t.ref)(),K=(0,t.ref)([]),j=(W,U)=>{K.value[U]=W},x=W=>U=>{j(U,W)},_=(W,U)=>{const Q=P.value,J=K.value;if(!Q||!J||!J[W])return;const I=J[W];let R=0;o.direction==="vertical"?R=I.offsetTop-(Q.offsetHeight-I.offsetHeight)/2:R=I.offsetLeft-(Q.offsetWidth-I.offsetWidth)/2,ne(Q,R,U?0:.3,o.direction)},ne=(W,U,Q,J)=>{let I=0;const R=J==="horizontal"?W.scrollLeft:W.scrollTop,G=Q===0?1:Math.round(Q*1e3/16);function Z(){J==="horizontal"?W.scrollLeft+=(U-R)/G:W.scrollTop+=(U-R)/G,++I<G&&je(Z)}Z()};return()=>{let W=[];if(o.mode==="simple")for(let Q=0;Q<h.value.length;Q++){const J=h.value[Q],I=M(J,Q);W.push(I)}else for(let Q=0;Q<h.value.length;Q++){const J=h.value[Q],I=z(J,Q);W.push(I)}const U={ref:P,class:b.value,style:k.value};return W.length===0&&typeof r.default=="function"&&(W=r.default()),(0,t.h)("view",U,W)}}}}var{componentName:pp,create:gp,scope:yp}=ee("steps-bar"),bp=gp(hp(pp,yp,oe.Checklist,oe.ArrowRight)),Ia=bp;function vp(e){e.stopPropagation()}var Sp=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,n){this.startMove=e,this.updateMove=n,this.isTouch=Yn()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=Xn(),a=(l,o,r,i)=>{this.updateMove({x:l,y:o})};this.touchstart=l=>{this.moving||(n.start(l),this.startMove({x:n.state.startX,y:n.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(n.move(l),vp(l),a(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{a(n.state.deltaX,n.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),n.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function kp(e,n){return new Sp(e,n)}var wp={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},Cp=(e,n,a,l=!1)=>({props:{...wp},emits:["click"],setup(o,{slots:r,emit:i}){let c=-1,s=-1;const d=(0,t.reactive)({top:o.top,right:o.right,bottom:o.bottom,left:o.left,width:0,height:0}),h=(0,t.computed)(()=>{const C=[`${e}`];return o.customClass&&C.push(o.customClass),C}),u=C=>typeof C=="string"&&!hn(C)?C:`${C}px`,g=(0,t.computed)(()=>{const C={};return fe(d.top)||(C.top=u(d.top)),fe(d.right)||(C.right=u(d.right)),fe(d.bottom)||(C.bottom=u(d.bottom)),fe(d.left)||(C.left=u(d.left)),fe(o.width)||(C.width=u(o.width)),fe(o.height)||(C.height=u(o.height)),fe(o.color)||(C.color=o.color),fe(o.background)||(C.background=o.background),fe(o.borderRadius)||(C["border-radius"]=o.borderRadius),fe(o.zIndex)||(C["z-index"]=o.zIndex),C}),S=(0,t.computed)(()=>({[`${e}__icon`]:!0})),w=()=>{i("click")},b=(0,t.ref)(null),k=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},f={x:0,y:0},A=kp(C=>{if(!b.value)return;const y=b.value;k(),d.left=y.offsetLeft,d.top=y.offsetTop,y.style.left=`${d.left}px`,y.style.top=`${d.top}px`,y.style.right=null,y.style.bottom=null,f.x=d.left,f.y=d.top,d.width=y.offsetWidth,d.height=y.offsetHeight,c=document.documentElement.clientWidth||document.body.clientWidth,s=document.documentElement.clientHeight||document.body.clientHeight},C=>{if(!b.value)return;const y=b.value;k();let p=f.x+C.x;p<0&&(p=0),p>c-d.width&&(p=c-d.width);let N=f.y+C.y;N<0&&(N=0),N>s-d.height&&(N=s-d.height),d.left=p,d.top=N,y.style.left=`${p}px`,y.style.top=`${N}px`});return(0,t.onMounted)(()=>{if(o.draggable&&b.value){const C=[b.value];A.open(C)}}),(0,t.onBeforeUnmount)(()=>{o.draggable&&b.value&&A.close()}),()=>{let C=[];const y=typeof r.default=="function"?r.default():[];if(y&&y.length>0)C=y;else{const p=(0,t.h)(a,{class:S.value});C.push(p)}return(0,t.h)("view",{ref:p=>{b.value=p},class:h.value,style:g.value,onClick:w},C)}}}),{componentName:Np,create:Ap,scope:Bp}=ee("floating-button"),Tp=Ap(Cp(Np,Bp,oe.Uploader,!1)),qa=Tp,Vp={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function $p(e,n,a){return{props:{...Vp},emits:["click","update:modelValue"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),c=i(l,["collapseText","expandText"]),s=(0,t.computed)(()=>{const w={[`${e}`]:!0};return l.disabled?w[`${e}--disabled`]=!0:w[`${e}--${l.type}`]=!0,w}),d=xe(l,"modelValue"),h=(0,t.computed)(()=>d.value?c.expandText.value??"":c.collapseText.value??""),u=(0,t.computed)(()=>({[`${e}__text`]:!0})),g=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),S=()=>{o("update:modelValue",!d.value)};return()=>{const w=[];if(h.value){const f=(0,t.h)("span",{class:u.value},[h.value]);w.push(f)}const b={class:g.value},k=(r.icon&&r.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(a);if(k){const f=(0,t.h)("view",b,[k]);w.push(f)}return l.textPosition==="right"&&w.reverse(),(0,t.h)("view",{class:s.value,onClick:S},w)}}}}var{componentName:Ep,create:Dp,scope:Ip}=ee("more-button"),qp=Dp($p(Ep,Ip,oe.RectUp)),xa=qp,xp={visible:{type:[Boolean],default:!0},width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},Pp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Mp(e,n,a){return{props:{...xp},emits:["update:visible"],setup(l,{attrs:o,slots:r,emit:i}){const{toLocaleRefs:c}=(0,pe.useFoxI18n)(n),s=c(l,["confirmText","cancelText"]),d=e,h=(0,t.ref)(l.visible),u=C=>{h.value=C,i("update:visible",C)};(0,t.watch)(()=>l.visible,C=>{h.value!==C&&(h.value=C)});const g=C=>{if(typeof l.unmount=="function")try{l.unmount()}catch(y){console.error(y)}if(typeof l.callback=="function")try{l.callback(C)}catch(y){console.error(y)}},S=()=>{g("confirm")},w=()=>{g("cancel")},b=()=>{l.closeOnClickOverlay!==!1&&g("close")},k=(C,y)=>Pp(C)?(y.src=C,(0,t.h)("img",y)):typeof C=="string"?(Array.isArray(y.class)?y.class.push(C):y.class&&typeof y.class=="object"?y[`${C}`]=!0:typeof y.class=="string"?y.class=`${y.class}, ${C}`:y.class=C,(0,t.h)(l.tag,y)):(0,t.h)(C,y),f=()=>{const C=[];if(l.icon){const y={class:[`${d}__header-icon`]},p=k(l.icon,y);C.push(p)}if(l.title){const y=(0,t.h)("view",{class:`${d}__header-title`},[l.title]);C.push(y)}if(l.showClose&&l.closeIcon){const y={class:[`${d}__header-close-icon`],onClick:b},p=k(l.closeIcon,y);C.push(p)}return(0,t.h)("view",{class:[`${d}__header`]},C)},v=(C,y)=>{const p=[];if(y){const N=(0,t.h)("view",{class:`${d}__group-title`},[y]);p.push(N)}if(C){const N=[];Array.isArray(C)||(C=[C]);for(let T of C){const V=(0,t.h)("view",{class:`${d}__group-row`,innerHTML:T});N.push(V)}if(N.length>0){const T=(0,t.h)("view",{class:`${d}__group-rows`},N);p.push(T)}}return p.length===0?null:(0,t.h)("view",{class:`${d}__group`},p)},m=()=>{const C=[];if(typeof l.message=="string")C.push(l.message);else if(Array.isArray(l.message))for(let y of l.message)if(typeof y=="string"){const p=v(y);C.push(p)}else{const p=v(y.content,y.title);C.push(p)}else if(typeof l.message=="function"){const y=l.message();C.push(y)}else{const y=l.message;C.push(y)}return(0,t.h)("view",{class:`${d}__body`},C)},A=()=>{const C=[];if(l.showCancelButton){const y={class:[`${d}__footer-button`],style:{},onClick:w};l.cancelButtonClass&&y.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(y.style,l.cancleButtonStyle);const p=(0,t.h)("button",y,[l.cancelButtonText??s.cancelText.value]);C.push(p)}if(l.showConfirmButton){const y={class:[`${d}__footer-button`],style:{},onClick:S};l.confirmButtonClass&&y.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(y.style,l.confirmButtonStyle);const p=(0,t.h)("button",y,[l.confirmButtonText??s.confirmText.value]);C.push(p)}return C.length===0?null:(0,t.h)("view",{class:`${d}__footer`},C)};return()=>{const C=[],y=f();y&&C.push(y);const p=m();p&&C.push(p);const N=A();N&&C.push(N);const T=(0,t.h)("view",{class:{[`${d}`]:!0,[`${d}--${l.type||"info"}`]:!0}},C),V=[`${d}__popup`];l.popClass&&V.push(l.popClass);const $={};return l.width&&($.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&($.height=typeof l.height=="number"?`${l.height}px`:l.height),(0,t.h)(a,{popClass:V.join(" "),style:$,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":u,position:l.position,round:"round",onClickOverlay:b,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>T})}}}}var{componentName:zp,create:Lp,scope:Rp}=ee("messagebox"),Fp=Lp(Mp(zp,Rp,Se)),Op=Fp,Kp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M82.5121%201.93968L81.7498%206.07825C81.6498%206.6214%2081.1284%206.98064%2080.5853%206.8806C80.4326%206.85251%2080.2886%206.78925%2080.1646%206.69578L77.1586%204.43061C76.7175%204.09823%2076.6294%203.47123%2076.9618%203.03016C77.0552%202.90617%2077.1762%202.80562%2077.3153%202.73655L81.0834%200.863097C81.5779%200.617235%2082.1782%200.818843%2082.4241%201.31339C82.5204%201.50712%2082.5512%201.72688%2082.5121%201.93968Z'%20fill='%23FFD1C9'%20%3e%3c/path%3e%3cpath%20d='M3.08218%20102.2L6.53454%2094.2358C6.75419%2093.7291%207.34251%2093.4968%207.84925%2093.7164C7.99216%2093.7778%208.11815%2093.872%208.21791%2093.9909L13.2085%2099.9384C13.5635%20100.361%2013.5081%20100.992%2013.0852%20101.347C12.9665%20101.447%2012.8261%20101.518%2012.675%20101.554L4.23203%20103.571C3.69484%20103.699%203.15538%20103.367%203.02699%20102.83C2.97674%20102.62%202.99607%20102.399%203.08218%20102.2Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23FF5959'%20%3e%3c/circle%3e%3cpath%20d='M59.935%2049.6213C61.3827%2051.069%2061.3827%2053.4162%2059.935%2054.864L45.935%2068.864C44.4873%2070.3117%2042.1401%2070.3117%2040.6924%2068.864C39.2447%2067.4162%2039.2447%2065.069%2040.6924%2063.6213L54.6924%2049.6213C56.1401%2048.1736%2058.4873%2048.1736%2059.935%2049.6213Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3cpath%20d='M40.6924%2049.6213C39.2447%2051.069%2039.2447%2053.4162%2040.6924%2054.864L54.6924%2068.864C56.1401%2070.3117%2058.4873%2070.3117%2059.935%2068.864C61.3827%2067.4162%2061.3827%2065.069%2059.935%2063.6213L45.935%2049.6213C44.4873%2048.1736%2042.1401%2048.1736%2040.6924%2049.6213Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%23FFD1C9'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L102%20110L102%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Up="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cpath%20d='M8%2087L8%2095C8%2095.5523%207.55228%2096%207%2096C6.44772%2096%206%2095.5523%206%2095L6%2087L2%2087C1.44772%2087%201%2086.5523%201%2086C1%2085.4477%201.44772%2085%202%2085L6%2085L6%2082C6%2081.4477%206.44772%2081%207%2081C7.55228%2081%208%2081.4477%208%2082L8%2085L12%2085C12.5523%2085%2013%2085.4477%2013%2086C13%2086.5523%2012.5523%2087%2012%2087L8%2087Z'%20fill-rule='evenodd'%20fill='%2396CEFF'%20%3e%3c/path%3e%3cpath%20d='M89%205L89%2010C89%2010.5523%2088.5523%2011%2088%2011C87.4477%2011%2087%2010.5523%2087%2010L87%205L85%205C84.4477%205%2084%204.55228%2084%204C84%203.44772%2084.4477%203%2085%203L87%203L87%201C87%200.447715%2087.4477%200%2088%200C88.5523%200%2089%200.447715%2089%201L89%203L91%203C91.5523%203%2092%203.44772%2092%204C92%204.55228%2091.5523%205%2091%205L89%205Z'%20fill-rule='evenodd'%20fill='%23BDE2FF'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23237FFA'%20%3e%3c/circle%3e%3crect%20x='47.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%2396CEFF'%20%3e%3c/rect%3e%3crect%20x='47.5'%20y='66'%20width='7'%20height='7'%20rx='4'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3c/svg%3e",Hp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='105'%20viewBox='0%200%20102%20105'%20fill='none'%3e%3cpath%20d='M7%2076C7.55228%2076%208%2076.4477%208%2077L7.999%2079.999L12%2080C12.5523%2080%2013%2080.4477%2013%2081C13%2081.5523%2012.5523%2082%2012%2082L7.999%2081.999L8%2090C8%2090.5523%207.55228%2091%207%2091C6.44772%2091%206%2090.5523%206%2090L5.999%2081.999L2%2082C1.44772%2082%201%2081.5523%201%2081C1%2080.4477%201.44772%2080%202%2080L5.999%2079.999L6%2077C6%2076.4477%206.44772%2076%207%2076Z'%20fill='%2338D677'%20%3e%3c/path%3e%3cpath%20d='M75%201.72421e-32C75.5523%20-1.01453e-16%2076%200.447715%2076%201L76%202.999L78%203C78.5523%203%2079%203.44772%2079%204C79%204.55228%2078.5523%205%2078%205L76%204.999L76%2010C76%2010.5523%2075.5523%2011%2075%2011C74.4477%2011%2074%2010.5523%2074%2010L74%204.999L72%205C71.4477%205%2071%204.55228%2071%204C71%203.44772%2071.4477%203%2072%203L74%202.999L74%201C74%200.447715%2074.4477%201.01453e-16%2075%201.72421e-32Z'%20fill='%238BF0AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='54'%20r='28'%20fill='%2338D677'%20%3e%3c/circle%3e%3cpath%20d='M36.8787%2051.8786C38.3265%2050.4309%2040.6736%2050.4309%2042.1213%2051.8786L50.1214%2059.8786C51.5691%2061.3263%2051.5691%2063.6735%2050.1214%2065.1212C48.6737%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212L36.8787%2057.1212C35.431%2055.6735%2035.431%2053.3263%2036.8787%2051.8786Z'%20fill='%23B3F2C6'%20%3e%3c/path%3e%3cpath%20d='M64.1214%2045.8786C65.5691%2047.3263%2065.5691%2049.6735%2064.1214%2051.1212L50.1213%2065.1212C48.6736%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212C43.431%2063.6735%2043.431%2061.3263%2044.8787%2059.8786L58.8788%2045.8786C60.3265%2044.4309%2062.6737%2044.4309%2064.1214%2045.8786Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='14.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='101.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='25'%20r='7'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3c/svg%3e",jp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='101'%20height='110'%20viewBox='0%200%20101%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M81.512%201.93968L80.7498%206.07825C80.6498%206.6214%2080.1284%206.98064%2079.5852%206.8806C79.4326%206.85251%2079.2886%206.78925%2079.1645%206.69578L76.1585%204.43061C75.7175%204.09823%2075.6293%203.47123%2075.9617%203.03016C76.0552%202.90617%2076.1761%202.80562%2076.3152%202.73655L80.0833%200.863097C80.5779%200.617235%2081.1781%200.818843%2081.424%201.31339C81.5203%201.50712%2081.5512%201.72688%2081.512%201.93968Z'%20fill='%23FEFAE0'%20%3e%3c/path%3e%3cpath%20d='M2.08224%20102.2L5.5346%2094.2358C5.75425%2093.7291%206.34257%2093.4968%206.84931%2093.7164C6.99222%2093.7778%207.11822%2093.872%207.21798%2093.9909L12.2086%2099.9384C12.5636%20100.361%2012.5082%20100.992%2012.0853%20101.347C11.9666%20101.447%2011.8261%20101.518%2011.675%20101.554L3.23209%20103.571C2.6949%20103.699%202.15544%20103.367%202.02705%20102.83C1.97681%20102.62%201.99613%20102.399%202.08224%20102.2Z'%20fill='%23FEE789'%20%3e%3c/path%3e%3ccircle%20cx='50'%20cy='59'%20r='28'%20fill='%23FAB007'%20%3e%3c/circle%3e%3crect%20x='46.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%23FEE789'%20%3e%3c/rect%3e%3crect%20x='46.5'%20y='66'%20width='7'%20height='7'%20rx='3.5'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='84.5'%20cy='106.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='94'%20cy='30'%20r='7'%20fill='%23FEE789'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L101%20110L101%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Wp=new On,Yp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Xp=e=>{let n=document.body,a=e.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):a&&(n=e.teleport));const l=document.createElement("view"),o=`messagebox-${Wp.get()}`;l.id=o,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const i=document.querySelector(`#${o}`);i&&i.parentNode?.removeChild(i)};const r=(0,t.createVNode)(Op,e);n.appendChild(l),(0,t.render)(r,l)},ut={show:(e,n,a,l)=>{const o={...Yp};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(o,n):(n&&(o.message=n),a&&typeof a=="object"?Object.assign(o,a):(typeof a=="string"&&(o.title=a),l&&typeof l=="object"?Object.assign(o,l):typeof l=="string"&&(o.type=l)));const r=o.type??"info";return o.icon||(r==="success"?o.icon=Hp:r==="warning"?o.icon=jp:r==="error"?o.icon=Kp:o.icon=Up),e==="alert"?(o.showCancelButton=!1,o.showConfirmButton=!0):e==="confirm"&&(o.showCancelButton=!0,o.showConfirmButton=!0),o.showClose&&!o.closeIcon&&(o.closeIcon=oe.Close),new Promise((i,c)=>{const s=o.callback;o.callback=d=>{if(typeof s=="function")try{s(d)}catch(h){console.error(h)}i({action:d})},Xp(o)})},alert:(e,n,a)=>ut.show("alert",e,n,a),confirm:(e,n,a)=>ut.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=ut.alert,e.config.globalProperties.$confirm=ut.confirm}},Qp=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let o=!0,r=!0;for(let i in n)i==="bubbles"?o=!!n[i]:i==="cancelable"?r=!!n[i]:l[i]=n[i];l.initEvent(e,o,r),(a??document).dispatchEvent(l)},Gp=new On,Zp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),_p=e=>`${e}-${Gp.get()}`,Jp=Symbol.for("InnerPageScopeKey"),eg=Symbol.for("PageWrapperKey"),tg="FoxLeave",ng="FoxLeaveEnd",lg={width:{type:[String,Number]},height:{type:[String,Number]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!0},showDelay:{type:Number,default:10},showClose:{type:Boolean,default:!0},closeIcon:{type:Object},showHeader:{type:Boolean,default:!1},popClass:{type:String},popStyle:{type:Object},position:{type:String,default:"center"},mode:{type:String}};function ag(e,n,a,l){return{props:{...at,...lg},emits:["update:visible"],setup(o,{attrs:r,slots:i,emit:c}){(0,t.provide)(Jp,!0);const s={};(0,t.provide)(eg,s);const d=y=>(typeof s.beforeClose=="function"&&s.beforeClose(),!1),h=()=>{d("close")},u=e,g=y=>{S.value=y,c("update:visible",y)},S=(0,t.ref)(!1),w=(y,p)=>Zp(y)?(p.src=y,(0,t.h)("img",p)):typeof y=="string"?(Array.isArray(p.class)?p.class.push(y):p.class&&typeof p.class=="object"?p[`${y}`]=!0:typeof p.class=="string"?p.class=`${p.class}, ${y}`:p.class=y,(0,t.h)(o.tag,p)):(0,t.h)(y,p),b=()=>{if(!o.showHeader)return null;const y=[];if(i.header){const p=i.header();y.push(p)}else if(o.title){const p=(0,t.h)("view",{class:`${u}__header-title`},[o.title]);y.push(p)}return y.length===0?null:(0,t.h)("view",{class:[`${u}__header`]},y)},k=()=>{if(!o.showClose)return null;const y={class:[`${u}__close-icon`],onClick:h};return w(o.closeIcon??l,y)};let f=null;const v=y=>{Qp(ng,{},f)},m=_p(e),A=()=>{g(!0)},C=()=>{if(!f)return;const y=f.querySelector(".fox-overlay");y&&(y.classList.add("overlay-fade-leave-active"),y.classList.add("overlay-fade-leave-to"));const p=f.querySelector(".fox-popup");p&&(p.classList.add(`fox-popup-slide-${o.position}-leave-active`),p.classList.add(`fox-popup-slide-${o.position}-leave-to`),p.addEventListener("animationend",v,{once:!0}),p.addEventListener("transitionend",v,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{f=document.querySelector(`.${m}`),f?.addEventListener(tg,C,{once:!0}),A()}),()=>{const y=[],p=b();p&&y.push(p);const N=k();N&&y.push(N);const T=i.default?i.default():[];Reflect.apply([].push,y,T);const V={[`${u}`]:!0};o.mode&&(V[`${u}--${o.mode}`]=!0);const $=(0,t.h)("view",{class:V},y),H=[`${u}__popup`,m];o.popClass&&H.push(o.popClass),o.position&&H.push(`${u}__popup--${o.position}`);const X={};o.width&&(X.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(X.height=typeof o.height=="number"?`${o.height}px`:o.height);const D=(0,t.h)(a,{...ye(o,at),popClass:H.join(" "),style:X,visible:S.value,teleportDisable:!0,closeable:!1,position:o.position,closeOnClickOverlay:o.closeOnClickOverlay,onClickOverlay:h,"onUpdate:visible":g},{default:()=>$});return(0,t.h)("div",{class:[`${u}__root`,m]},[D])}}}}var{componentName:og,create:rg,scope:ig}=ee("popup-wrapper"),sg=rg(ag(og,ig,Se,oe.Close)),Pa=sg,cg={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function ug(e,n,a,l){return{props:{...cg},emits:["update:visible"],setup(o,{emit:r,slots:i}){const c=s=>{r("update:visible",s)};return()=>{const s=[`${e}__popup`];o.popClass&&s.push(o.popClass);const d=(0,t.h)(a,{popClass:s,style:o.popStyle??{},position:"top",zIndex:o.zIndex,closeOnClickOverlay:o.closeOnClickOverlay,teleportDisable:!0,visible:o.visible,"onUpdate:visible":c},i);return(0,t.h)("view",{class:`${e}`},[d])}}}}var{componentName:dg,create:fg,scope:mg}=ee("dropdown"),hg=fg(ug(dg,mg,Se,!1)),Ma=hg;function pg(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(a,{slots:l}){return Sr(a.name,()=>a.config),Me(a.innerPageScope)||Cr(a.innerPageScope),Me(a.abstractPageScope)||Nr(a.abstractPageScope),()=>typeof l.default=="function"?l.default():null}}}var{componentName:gg,create:yg,scope:bg}=ee("domain-provider"),vg=yg(pg(gg,bg)),za=vg,Sg={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function kg(e,n){return{inheritAttrs:!1,props:Sg,emits:["change"],setup(a,{slots:l,emit:o}){if(Ze&&window.IntersectionObserver){const r=new WeakMap;let i=new Map;const c=(g,S)=>{if(h===null){i.set(g,{visible:null,callback:S});return}r.has(g)&&h.unobserve(g),r.set(g,{visible:null,callback:S}),h.observe(g)},s=g=>{if(h===null){i.delete(g);return}r.has(g)&&(r.delete(g),h.unobserve(g))};let d=a.initialVisibleObserverSize;sc({acquire:()=>{if(a.loadPolicy==="always")return!0;const g=d>0;return d--,g},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:c,unobserve:s});let h=null;const u=(g,S,w)=>{h=new IntersectionObserver(b=>{if(o("change",b),a.loadPolicy!=="always")for(let k of b){let f=!1;k.intersectionRatio>0&&(f=!0);const v=r.get(k.target);if(v)try{if(a.loadPolicy==="lazy"&&!f&&v.visible!==null)return;v.visible=f,v.callback(f)}catch(m){console.error(m)}}},{root:g,rootMargin:S,threshold:w}),i.forEach((b,k)=>{r.set(k,b),h?.observe(k)}),i.clear()};(0,t.watch)([()=>a.root,()=>a.disabled],([g,S])=>{if(S||!g||h)return;let w=null;typeof g=="string"?w=document.querySelector(g):w=g,w&&u(w,a.rootMargin,a.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:wg,create:Cg,scope:Ng}=ee("rolling-provider"),Ag=Cg(kg(wg,Ng)),La=Ag,{componentName:Bg,create:Tg}=ee("cell"),Vg=Tg({components:{Right:oe.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=(0,t.computed)(()=>{const r=Bg;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:me(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:l}}}),$g={key:0,class:"fox-cell__icon"},Eg={key:1,class:"fox-cell__title"},Dg={class:"title"},Ig={class:"fox-cell__title-desc"};function qg(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Right");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.baseStyle),onClick:n[0]||(n[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",$g,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Eg,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",Dg,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",Ig,(0,t.toDisplayString)(e.subTitle),1)],64)):(0,t.renderSlot)(e.$slots,"title",{key:1},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)])])):(0,t.createCommentVNode)("",!0),e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:(0,t.normalizeStyle)({"text-align":e.descTextAlign})},(0,t.toDisplayString)(e.desc),7)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"link",{},()=>[e.isLink?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var Ra=re(Vg,[["render",qg]]),xg={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function Pg(e,n){return{props:{...xg},setup(a,{attrs:l,slots:o}){const r=(0,t.computed)(()=>{const i={};return a.color&&(i.color=a.color),a.size&&(i.fontSize=me(a.size)),i});return()=>{const i={style:r.value,class:`${e}-wrap`,...l};return(0,t.h)(a.tag??"li",i,o)}}}}var{componentName:Mg,create:zg,scope:Lg}=ee("icon"),Rg=zg(Pg(Mg,Lg)),Fa=Rg,{componentName:Fg,create:Og}=ee("cell-group"),Kg=Og({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[Fg]:!0}))}}}),Ug={key:1,class:"fox-cell-group__title"},Hg={key:3,class:"fox-cell-group__desc"},jg={class:"fox-cell-group__wrap"};function Wg(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ug,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.$slots.desc?(0,t.renderSlot)(e.$slots,"desc",{key:2}):e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",jg,[(0,t.renderSlot)(e.$slots,"default")])],2)}var Oa=re(Kg,[["render",Wg]]),{componentName:Yg,create:Xg}=ee("image"),Qg=Xg({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:oe.Image,ImageError:oe.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const S=Yg;return{[S]:!0,[`${S}-round`]:e.round}}),o=(0,t.ref)(null),r=(0,t.ref)(!1),i=(0,t.ref)(null),c=()=>{o.value=new IntersectionObserver(S=>{S.forEach(w=>{w.isIntersecting&&(r.value=!0,o.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),i.value&&o.value.observe(i.value)};(0,t.onMounted)(()=>{e.lazyLoad&&c()}),(0,t.onBeforeUnmount)(()=>{o.value&&o.value.disconnect()});const s=(0,t.computed)(()=>{let S={};return e.width&&(S.width=me(e.width)),e.height&&(S.height=me(e.height)),e.radius!==void 0&&e.radius!==null&&(S.overflow="hidden",S.borderRadius=me(e.radius)),S}),d=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,S=>{a.isError=!1,a.loading=!0});const h=()=>{a.loading=!1,n("load")},u=()=>{a.isError=!0,a.loading=!1,n("error")},g=S=>{n("click",S)};return{...(0,t.toRefs)(a),imageClick:g,classes:l,styles:d,stylebox:s,error:u,load:h,show:r,imgRef:i}}}),Gg=["src","date-src","alt"],Zg={key:0,class:"fox-img-loading"},_g={key:1,class:"fox-img-error"};function Jg(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Image"),c=(0,t.resolveComponent)("ImageError");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.stylebox),onClick:n[2]||(n[2]=(...s)=>e.imageClick&&e.imageClick(...s))},[(0,t.createElementVNode)("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:n[0]||(n[0]=(...s)=>e.load&&e.load(...s)),onError:n[1]||(n[1]=(...s)=>e.error&&e.error(...s)),style:(0,t.normalizeStyle)(e.styles)},null,44,Gg),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",Zg,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,width:"16px",height:"20px",name:"image"})),(0,t.renderSlot)(e.$slots,"loading")])):(0,t.createCommentVNode)("",!0),e.isError&&!e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",_g,[e.slotError?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,width:"16px",height:"20px",name:"imageError"})),(0,t.renderSlot)(e.$slots,"error")])):(0,t.createCommentVNode)("",!0)],6)}var Ka=re(Qg,[["render",Jg]]),{create:ey}=ee("layout"),ty=ey({}),Ua=ty,{componentName:ny,create:ly}=ee("col"),ay=ly({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=ny,a=(0,t.inject)("gutter");return{classes:(0,t.computed)(()=>({[n]:!0,[`${n}-gutter`]:a,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),style:(0,t.computed)(()=>({paddingLeft:a/2+"px",paddingRight:a/2+"px"}))}}});function oy(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Ha=re(ay,[["render",oy]]),{componentName:ry,create:iy}=ee("row"),sy=iy({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const n=ry;(0,t.provide)("gutter",e.gutter);const a=(l,o)=>l?o?`fox-row-${l}-${o}`:"":`fox-row-${o}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
2
2
  ${a("",e.type)}
3
3
  ${a("justify",e.justify)}
4
4
  ${a("align",e.align)}
@@ -6,4 +6,4 @@
6
6
  ${n}
7
7
  `:`
8
8
  ${n}
9
- `)}}});function ry(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)}var ja=re(oy,[["render",ry]]),{create:iy}=ee("sticky"),sy=iy({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,t.ref)(),o=(0,t.reactive)({fixed:!1,height:0,transform:0}),r=(0,t.computed)(()=>e.position==="top"?Number(e.top):Number(e.bottom)),i=(0,t.computed)(()=>o.fixed?{height:`${o.height}px`}:{}),c=(0,t.computed)(()=>o.fixed?{[e.position]:`${r.value}px`,transform:o.transform?`translate3d(0, ${o.transform}px, 0)`:void 0,position:o.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),s=()=>{const d=e.container;if(!a.value&&!d)return;const h=De(a),u=l.value,y=De(u),S=De(d);o.height=h.height;const w=()=>{let k=!1;if(e.position==="top")k=d?r.value>h.top&&S.bottom>0:r.value>h.top;else{const f=document.documentElement.clientHeight;k=d?S.bottom>0&&f-r.value-y.height>S.top:f-r.value<h.bottom}return k},b=()=>{if(d)if(e.position==="top"){const k=S.bottom-r.value-y.height;return k<0?k:0}else{const k=document.documentElement.clientHeight,f=S.bottom-(k-r.value);return f<0?f:0}return 0};o.transform=b(),o.fixed=w()};return(0,t.watch)(()=>o.fixed,d=>{n("change",d)}),(0,t.onMounted)(()=>{s(),Aa(a.value).addEventListener("scroll",s,!0)}),(0,t.onUnmounted)(()=>{Aa(a.value).removeEventListener("scroll",s)}),{rootRef:a,rootStyle:i,stickyRef:l,stickyStyle:c}}});function cy(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-sticky",ref:"rootRef",style:(0,t.normalizeStyle)(e.rootStyle)},[(0,t.createElementVNode)("div",{class:"fox-sticky__box",ref:"stickyRef",style:(0,t.normalizeStyle)(e.stickyStyle)},[(0,t.renderSlot)(e.$slots,"default")],4)],4)}var Qt=re(sy,[["render",cy]]),{componentName:uy,create:dy}=ee("divider"),fy=dy({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:(0,t.computed)(()=>{const a=uy;let l={[a]:!0},o={};return e.direction==="horizontal"?o={...l,[`${a}-center`]:n.slots.default,[`${a}-left`]:e.contentPosition==="left",[`${a}-right`]:e.contentPosition==="right",[`${a}-dashed`]:e.dashed,[`${a}-hairline`]:e.hairline}:o={...l,[`${a}-vertical`]:e.direction==="vertical"},o})}}});function my(e,n,a,l,o,r){return e.direction==="horizontal"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes)},null,2))}var Wa=re(fy,[["render",my]]);function hy(e,n){const a=[],l=o=>{Array.isArray(o)&&o.forEach(r=>{if((0,t.isVNode)(r)){if(n){if(r.type&&r.type.name===n){a.push(r);return}}else a.push(r);r.component?.subTree&&l(r.component.subTree.children),r.children&&l(r.children)}})};return l(e),a}function py(e,n,a){const l=hy(e.subTree.children,a);n.sort((o,r)=>l.indexOf(o.vnode)-l.indexOf(r.vnode))}function gy(e,n){const a=(0,t.shallowReactive)([]),l=(0,t.getCurrentInstance)(),o=c=>{c.proxy&&(a.push((0,t.markRaw)(c)),py(l,a,n))},r=c=>{a.splice(a.indexOf((0,t.markRaw)(c)),1)},i=Object.assign;return c=>((0,t.provide)(e,i({add:o,remove:r,internalChildren:a},c)),{internalChildren:a})}var{componentName:qi}=ee("grid"),xi=Symbol("grid"),yy={columnNum:{type:[Number,String],default:4},border:{type:Boolean,default:!0},gutter:{type:[Number,String],default:0},center:{type:Boolean,default:!0},square:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},direction:{type:String},clickable:{type:Boolean,default:!1}},by={props:yy,setup(e,{slots:n}){gy(xi,`${qi}-item`)({props:e});const a=(0,t.computed)(()=>{const o=qi;return{[o]:!0,[`${o}--border`]:e.border&&!e.gutter}}),l=(0,t.computed)(()=>{const o={};return e.gutter&&(o.paddingLeft=me(e.gutter)),o});return()=>(0,t.h)("view",{class:a.value,style:l.value},n.default?.())}},{create:vy}=ee("grid"),Sy=vy(by),Ya=Sy;function ky(e){const n=(0,t.inject)(e,null);if(n){const a=(0,t.getCurrentInstance)(),{add:l,remove:o,internalChildren:r}=n;return l(a),(0,t.onUnmounted)(()=>o(a)),{parent:n,index:(0,t.computed)(()=>r.indexOf(a))}}return{parent:null,index:(0,t.ref)(-1)}}var{create:wy,componentName:Pi}=ee("grid-item"),Cy=wy({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=ky(xi);if(!a.parent)return{};const l=a.index,o=a.parent.props,r=(0,t.computed)(()=>({[Pi]:!0})),i=(0,t.computed)(()=>{const d={flexBasis:`${100/+o.columnNum}%`};return o.square?d.paddingTop=`${100/+o.columnNum}%`:o.gutter&&(d.paddingRight=me(o.gutter),l.value>=o.columnNum&&(d.marginTop=me(o.gutter))),d}),c=(0,t.computed)(()=>{const d=`${Pi}__content`;return{[`${d}`]:!0,[`${d}--border`]:o.border,[`${d}--surround`]:o.border&&o.gutter,[`${d}--center`]:o.center,[`${d}--square`]:o.square,[`${d}--reverse`]:o.reverse,[`${d}--${o.direction}`]:!!o.direction,[`${d}--clickable`]:o.clickable}});return{rootClass:r,rootStyle:i,contentClass:c,handleClick:d=>{n("click",d)}}}}),Ny={class:"fox-grid-item__text"};function Ay(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.rootClass),style:(0,t.normalizeStyle)(e.rootStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.contentClass)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("view",Ny,[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.renderSlot)(e.$slots,"text",{key:1})])],2)],6)}var Xa=re(Cy,[["render",Ay]]),{componentName:By,create:Ty}=ee("navbar"),Vy=Ty({components:{Left:oe.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:l,safeAreaInsetTop:o,placeholder:r,zIndex:i}=(0,t.toRefs)(e),c=(0,t.ref)(null),s=(0,t.ref)(null);let d=(0,t.ref)();const h=(0,t.computed)(()=>{const k=By;return{[k]:!0,[`${k}--border`]:a.value,[`${k}--fixed`]:l.value,[`${k}--safe-area-inset-top`]:o.value}}),u=(0,t.computed)(()=>({zIndex:i.value}));(0,t.onMounted)(()=>{l.value&&r.value&&(0,t.nextTick)(()=>{d.value=s?.value?.getBoundingClientRect().height,c.value.style.height=d.value+"px"})});function y(){n("on-click-back")}function S(){n("on-click-title")}function w(){n("on-click-icon")}function b(){n("on-click-right")}return{navBarWrap:c,navBarHtml:s,classes:h,styles:u,handleLeft:y,handleCenter:S,handleCenterIcon:w,handleRight:b}}}),$y={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Ey={key:1,class:"fox-navbar__text"},Dy={class:"fox-navbar__title"},Iy={key:0,class:"fox-navbar__text"},qy={key:1,class:"fox-navbar__text"},xy={class:"fox-navbar__title"},Py={key:0,class:"fox-navbar__text"};function My(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",$y,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),ref:"navBarHtml"},[(0,t.createElementVNode)("view",{class:"fox-navbar__left",onClick:n[0]||(n[0]=(...c)=>e.handleLeft&&e.handleLeft(...c))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(i,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ey,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Dy,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...c)=>e.handleCenter&&e.handleCenter(...c))},(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.titleIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"icon",onClick:n[3]||(n[3]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...c)=>e.handleRight&&e.handleRight(...c))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Iy,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6)],512)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("view",{class:"fox-navbar__left",onClick:n[5]||(n[5]=(...c)=>e.handleLeft&&e.handleLeft(...c))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(i,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",qy,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",xy,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...c)=>e.handleCenter&&e.handleCenter(...c))},(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.titleIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"icon",onClick:n[8]||(n[8]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...c)=>e.handleRight&&e.handleRight(...c))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Py,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var Qa=re(Vy,[["render",My]]),zy=(e,n,a)=>({components:a,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{type:String,default:""},activeText:{type:String},unActiveText:{type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(l,{emit:o}){const{toLocaleRefs:r}=(0,pe.useFoxI18n)(n),i=r(l,["activeText","unActiveText"]),c=(0,t.computed)(()=>({[e]:!0,active:l.visible,[l.type]:!0})),s=(0,t.ref)(-1);return{...i,classes:c,updateValue:(u=!l.visible)=>{o("update:visible",u)},selected:(u,y)=>{o("selected",{item:u,event:y}),s.value=u.id},current:s}}}),{componentName:Ly,create:Ry,scope:Oy}=ee("fixednav"),Fy=Ry(zy(Ly,Oy,{[st.name]:st,Left:oe.Left})),Ky={class:"fox-fixednav__list"},Uy=["onClick"],Hy=["src"],jy={class:"span"},Wy={key:0,class:"b"},Yy={class:"text"};function Xy(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-overlay"),c=(0,t.resolveComponent)("Left");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.position)},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=s=>e.updateValue(!1))},null,8,["visible"])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"list",{},()=>[(0,t.createElementVNode)("view",Ky,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.navList,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-fixednav__list-item",{active:s.id==e.current}]),onClick:h=>e.selected(s,h),key:s.id||d},[(0,t.createElementVNode)("img",{src:s.icon},null,8,Hy),(0,t.createElementVNode)("view",jy,(0,t.toDisplayString)(s.text),1),s.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wy,(0,t.toDisplayString)(s.num),1)):(0,t.createCommentVNode)("",!0)],10,Uy))),128))])]),(0,t.createElementVNode)("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=s=>e.updateValue())},[(0,t.renderSlot)(e.$slots,"btn",{},()=>[(0,t.createVNode)(c,{color:"#fff"}),(0,t.createElementVNode)("view",Yy,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var Ga=re(Fy,[["render",Xy]]),{componentName:Qy,create:Gy}=ee("menu"),Zy=Gy({components:{ArrowUp2:oe.ArrowUp2,ArrowDown2:oe.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:a}){const l=(0,t.ref)(),o=(0,t.ref)(0),r=(0,t.ref)(!1),i=()=>{const k=(0,t.reactive)([]),f=(0,t.reactive)([]);return{children:k,linkChildren:m=>{const N=p=>{p.proxy&&(f.push(p),k.push(p.proxy))},A=p=>{if(p.proxy){let g=f.indexOf(p);g>-1&&f.splice(g,1);let C=k.indexOf(p.proxy);g>-1&&k.splice(C,1)}};(0,t.provide)("menuParent",Object.assign({removeLink:A,link:N,children:k,internalChildren:f},m))}}},{children:c,linkChildren:s}=i(),d=(0,t.computed)(()=>c.some(k=>k.state.showWrapper)),h=(0,t.computed)(()=>({[Qy]:!0,"scroll-fixed":r.value})),u=()=>{if(l.value){const k=De(l);e.direction==="down"?o.value=k.bottom:o.value=window.innerHeight-k.top}};s({props:e,offset:o});const y=k=>{c.forEach((f,v)=>{v===k?(u(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},S=k=>Math.max(0,"scrollTop"in k?k.scrollTop:k.pageYOffset),w=()=>{const{scrollFixed:k}=e;r.value=S(window)>(typeof k=="boolean"?30:Number(k))},b=k=>{let f="";const{titleClass:v}=e;return k&&(f+="active"),v&&(f+=` ${v}`),f};return(0,t.onMounted)(()=>{const{scrollFixed:k}=e;k&&window.addEventListener("scroll",w)}),(0,t.onUnmounted)(()=>{const{scrollFixed:k}=e;k&&window.removeEventListener("scroll",w)}),{toggleItem:y,children:c,opened:d,classes:h,barRef:l,getClasses:b}}}),_y=["onClick"],Jy={class:"fox-menu__title-text"},eb={class:"fox-menu__title-icon"};function tb(e,n,a,l,o,r){const i=(0,t.resolveComponent)("ArrowUp2"),c=(0,t.resolveComponent)("ArrowDown2");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.children,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu__item",{disabled:s.disabled,active:s.state.showPopup}]),onClick:h=>!s.disabled&&e.toggleItem(d),style:(0,t.normalizeStyle)({color:s.state.showPopup?e.activeColor:""})},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__title",e.getClasses(s.state.showPopup)])},[(0,t.createElementVNode)("view",Jy,(0,t.toDisplayString)(s.renderTitle()),1),(0,t.createElementVNode)("span",eb,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.direction==="up"?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1}))])])],2)],14,_y))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var Za=re(Zy,[["render",tb]]),{componentName:nb,create:lb}=ee("menu-item"),ab=lb({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[Se.name]:Se,Check:oe.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:a}){const l=(0,t.reactive)({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),o=()=>{const S=(0,t.inject)("menuParent",null);if(S){const w=(0,t.getCurrentInstance)(),{link:b,removeLink:k}=S;return b(w),(0,t.onUnmounted)(()=>{k(w)}),{parent:S}}},{parent:r}=o(),i=(0,t.computed)(()=>({[nb]:!0})),c=(0,t.computed)(()=>{const S={height:r.offset.value+"px"};return r.props.direction==="down"?S:{...S,top:"auto"}});return{classes:i,placeholderElementStyle:c,renderTitle:()=>{if(e.title)return e.title;const S=e.options?.find(w=>w.value===e.modelValue);return S?S.text:""},state:l,parent:r,toggle:(S=!l.showPopup,w={})=>{S!==l.showPopup&&(l.showPopup=S,l.isShowPlaceholderElement=S,S&&(l.showWrapper=!0,n("open")))},onClick:S=>{l.showPopup=!1,l.isShowPlaceholderElement=!1,S.value!==e.modelValue&&(n("update:modelValue",S.value),n("change",S.value))},handleClose:()=>{n("close"),l.showWrapper=!1,l.isShowPlaceholderElement=!1},handleClickOutside:()=>{l.showPopup=!1,n("close")}}}}),ob={class:"fox-menu-item__content fox-menu-item__overflow"},rb=["onClick"];function ib(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Check"),c=(0,t.resolveComponent)("fox-popup");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{onClick:n[0]||(n[0]=(...s)=>e.handleClickOutside&&e.handleClickOutside(...s)),class:(0,t.normalizeClass)(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:(0,t.normalizeStyle)(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),(0,t.createVNode)(c,(0,t.mergeProps)({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",top:"auto"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.state.showPopup=s),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",ob,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu-item__option",[{active:s.value===e.modelValue}]]),style:(0,t.normalizeStyle)({"flex-basis":100/e.cols+"%"}),onClick:h=>e.onClick(s)},[s.value===e.modelValue?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:(0,t.normalizeClass)(["fox-menu-item__span",[s.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[(0,t.renderSlot)(e.$slots,"icon",{},()=>[(0,t.createVNode)(i,(0,t.mergeProps)({ref_for:!0},e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)([s.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:(0,t.normalizeStyle)({color:s.value===e.modelValue?e.parent.props.activeColor:""})},(0,t.toDisplayString)(s.text),7)],14,rb))),128)),(0,t.renderSlot)(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}var _a=re(ab,[["render",ib]]),{create:sb}=ee("tabbar"),cb=sb({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,n){function a(o){l.value!==o&&(l.value=o,n.emit("update:modelValue",o),n.emit("change",o,l.children[o]))}const l=(0,t.reactive)({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:a});return(0,t.provide)("parent",l),(0,t.watch)(()=>e.modelValue,o=>{l.value=o}),{changeIndex:a}}});function ub(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[(0,t.renderSlot)(e.$slots,"default")],2)}var Ja=re(cb,[["render",ub]]),{create:db}=ee("tabbar-item"),fb=db({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,n){const a=(0,t.inject)("parent"),l=(0,t.reactive)({size:a.size,inactiveColor:a.inactiveColor,activeColor:a.activeColor,value:a.value,index:0}),o=(0,t.getCurrentInstance)();o!==null&&(s=>{if(s.proxy){let d=a.children.length;l.index=d;let h=Object.assign(s.proxy,{index:d});a.children.push(h)}})(o);const r=(0,t.computed)(()=>l.index===l.value);function i(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}return(0,t.watch)((0,t.computed)(()=>a?a.value:null),c=>{l.value=c}),{state:l,active:r,change:i}}}),mb={class:"fox-tabbar-item_icon-box"},hb={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},pb={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},gb={key:1,class:"fox-tabbar-item_icon-box_dot"},yb={key:2},bb={key:0};function vb(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:(0,t.normalizeStyle)({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=i=>e.change(e.state.index))},[(0,t.createElementVNode)("view",mb,[e.dot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.num&&e.num<=99?((0,t.openBlock)(),(0,t.createElementBlock)("view",hb,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",pb,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",gb)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",yb,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):(0,t.createCommentVNode)("",!0),!e.icon&&e.activeImg?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:(0,t.normalizeStyle)({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",bb,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.title?(0,t.createCommentVNode)("",!0):(0,t.renderSlot)(e.$slots,"default",{key:1})],2)])],6)}var eo=re(fb,[["render",vb]]),{componentName:Sb,create:kb}=ee("elevator"),wb=kb({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const a=(0,t.ref)(null),l=(0,t.reactive)({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),o=(0,t.computed)(()=>({[Sb]:!0})),r=(0,t.computed)(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),i=(0,t.computed)(()=>a.value.clientHeight),c=(f,v)=>f.getAttribute("data-"+v),s=f=>{(0,t.nextTick)(()=>{!l.listGroup.includes(f)&&f!=null&&l.listGroup.push(f)})},d=()=>{let f=0;l.listHeight.push(f);for(let v=0;v<l.listGroup.length;v++){let m=l.listGroup[v];f+=Math.floor(m.clientHeight),l.listHeight.push(f)}},h=f=>{!f&&f!==0||(f<0&&(f=0),f>l.listHeight.length-2&&(f=l.listHeight.length-2),l.codeIndex=f,a.value.scrollTo(0,l.listHeight[f]))},u=f=>{l.scrollStart=!0;let v=c(f.target,"index"),m=f.touches[0];l.touchState.y1=m.pageY,l.anchorIndex=+v,l.codeIndex=+v,h(+v)},y=f=>{let v=f.touches[0];l.touchState.y2=v.pageY;let m=(l.touchState.y2-l.touchState.y1)/e.spaceHeight|0;l.codeIndex=l.anchorIndex+m,h(l.codeIndex)},S=()=>{l.scrollStart=!1},w=(f,v)=>{n.emit("click-item",f,v),l.currentData=v,l.currentKey=f},b=f=>{n.emit("click-index",f)},k=f=>{let v=f.target.scrollTop;const m=l.listHeight;l.scrollY=v;for(let N=0;N<m.length-1;N++){let A=m[N],p=m[N+1];if(l.scrollY>=A&&l.scrollY<p){l.currentIndex=N,l.diff=p-l.scrollY;return}}l.currentIndex=m.length-2};return(0,t.onMounted)(()=>{a.value.addEventListener("scroll",k)}),be({scrollTo:h}),(0,t.watch)(()=>l.listGroup.length,()=>{l.listHeight=[],(0,t.nextTick)(d)}),(0,t.watch)(()=>l.diff,f=>{const v=l.listHeight;let m=f>0&&f<e.titleHeight?f-e.titleHeight:0;l.scrollY+i.value===v[v.length-1]&&m!==0&&(m=0),l.fixedTop!==m&&(l.fixedTop=m)}),(0,t.watch)(()=>l.currentIndex,f=>{n.emit("change",f)}),{classes:o,...(0,t.toRefs)(l),fixedStyle:r,clientHeight:i,setListGroup:s,listview:a,touchStart:u,touchMove:y,touchEnd:S,handleClickItem:w,handleClickIndex:b}}}),Cb={class:"fox-elevator__list__item__code"},Nb=["onClick"],Ab=["innerHTML"],Bb={class:"fox-elevator__fixed-title"},Tb={class:"fox-elevator__bars__inner"},Vb=["data-index","onClick"];function $b(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:"fox-elevator__list",ref:"listview",style:(0,t.normalizeStyle)({height:isNaN(+e.height)?e.height:`${e.height}px`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,i=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-elevator__list__item",key:i[e.acceptKey],ref_for:!0,ref:e.setListGroup},[(0,t.createElementVNode)("view",Cb,(0,t.toDisplayString)(i[e.acceptKey]),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.list,c=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===c.id&&e.currentKey===i[e.acceptKey]}]),key:c.id,onClick:s=>e.handleClickItem(i[e.acceptKey],c)},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:1,item:c}):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:c.name},null,8,Ab))],10,Nb))),128))]))),128)),e.isSticky?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-elevator__list__fixed",style:(0,t.normalizeStyle)(e.fixedStyle)},[(0,t.createElementVNode)("span",Bb,(0,t.toDisplayString)(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):(0,t.createCommentVNode)("",!0)],4),e.indexList.length?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-elevator__code--current"},(0,t.toDisplayString)(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-elevator__bars",onTouchstart:n[0]||(n[0]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:n[1]||(n[1]=(0,t.withModifiers)((...i)=>e.touchMove&&e.touchMove(...i),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[(0,t.createElementVNode)("view",Tb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__bars__inner__item",{active:i[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":c,key:i[e.acceptKey],onClick:s=>e.handleClickIndex(i[e.acceptKey])},(0,t.toDisplayString)(i[e.acceptKey]),11,Vb))),128))])],32)],2)}var to=re(wb,[["render",$b]]),{componentName:q2,create:Eb,scope:Db}=ee("pagination"),Ib=Eb({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,pe.useFoxI18n)(Db),l=a(e,["prevText","nextText"]),{modelValue:o,mode:r,showPageSize:i,forceEllipses:c}=(0,t.toRefs)(e),s=(0,t.computed)(()=>{const{pageCount:y,totalItems:S,itemsPerPage:w}=(0,t.toRefs)(e),b=+y.value||Math.ceil(+S.value/+w.value);return Math.max(1,b)}),d=(y,S)=>{y>s.value||y<1||(y!=o.value&&n("update:modelValue",y),S&&n("change",y))},h=(y,S,w=!1)=>({number:y,text:S,active:w}),u=(0,t.computed)(()=>{if(r.value=="simple")return;let y=[];const S=s.value,w=+i.value;let b=1,k=S;const f=S>w;f&&(b=Math.max(o.value-Math.floor(w/2),1),k=b+w-1,k>S&&(k=S,b=k-w+1));for(var v=b;v<=k;v++){const m=h(v,v,o.value==v);y.push(m)}if(f&&w>0&&c.value){if(b>1){const m=h(b-1,"...");y.unshift(m)}if(k<S){const m=h(k+1,"...");y.push(m)}}return y});return(0,t.watchEffect)(()=>{d(o.value,!1)}),{...l,modelValue:o,select:d,countRef:s,mode:r,pages:u,forceEllipses:c}}}),qb={class:"fox-pagination"},xb={key:0,class:"fox-pagination-contain"},Pb=["onClick"],Mb={key:1,class:"fox-pagination-contain"},zb={class:"fox-pagination-simple"};function Lb(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",qb,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=i=>e.select(e.modelValue-1,!0))},[(0,t.renderSlot)(e.$slots,"prev-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.prevText),1)])],2),e.mode=="multi"?((0,t.openBlock)(),(0,t.createElementBlock)("view",xb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pages,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:c+"pagination",class:(0,t.normalizeClass)(["fox-pagination-item",i.active?"active":""]),onClick:s=>e.select(i.number,!0)},[(0,t.renderSlot)(e.$slots,"page",{item:i},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(i.text),1)])],10,Pb))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Mb,[(0,t.createElementVNode)("view",zb,(0,t.toDisplayString)(e.modelValue)+"/"+(0,t.toDisplayString)(e.countRef),1)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=i=>e.select(e.modelValue+1,!0))},[(0,t.renderSlot)(e.$slots,"next-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextText),1)])],2)])}var no=re(Ib,[["render",Lb]]),Rb=(e,n,a,l)=>{const o=(0,t.ref)(),r=(0,t.ref)({width:0,height:0}),i=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let u=await l(o,a);r.value.width=u.width||0,r.value.height=u.height||0}else r.value.width=o.value?.clientWidth||0,r.value.height=o.value?.clientHeight||0};(0,t.onMounted)(()=>{setTimeout(()=>{i()},100)});const c=(0,t.reactive)({offset:0,moving:!1}),s=lt();let d="";const h=(u,y)=>{let S=u;switch(e.direction=="horizontal"?(d=u>0?"right":"left",S=Math.abs(S)/r.value.width*100):(d=y>0?"bottom":"top",S=y,S=Math.abs(S)/r.value?.height*100),S>85&&(S=85),d){case"left":case"top":n.isEnd()&&(S=0,c.moving=!1);break;case"right":case"bottom":S=-S,n.isBegin()&&(S=0,c.moving=!1);break}c.offset=S};return{touchMethods:{onTouchStart(u){e.swipeable&&s.start(u)},onTouchMove(u){e.swipeable&&(s.move(u),c.moving=!0,h(s.deltaX.value,s.deltaY.value),e.direction=="horizontal"&&s.isHorizontal()&&(u.preventDefault(),u.stopPropagation()),e.direction=="vertical"&&s.isVertical()&&(u.preventDefault(),u.stopPropagation()))},onTouchEnd(){if(c.moving)switch(c.moving=!1,d){case"left":case"top":c.offset>35&&n.next();break;case"right":case"bottom":c.offset<-35&&n.prev();break}}},touchState:c,tabsContentRef:o}},Ob=class{title="";titleSlot;paneKey="";disabled=!1;constructor(){}},{create:Fb}=ee("tabs"),Kb=Fb({components:{[Qt.name]:Qt,JoySmile:oe.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)(null);let o;(0,t.provide)("tabsOpiton",{activeKey:(0,t.computed)(()=>e.modelValue||"0"),autoHeight:(0,t.computed)(()=>e.autoHeight),animatedTime:(0,t.computed)(()=>e.animatedTime)});const r=(0,t.ref)([]),i=$=>{$.forEach((V,H)=>{let Z=V.type;if(Z=Z.name||Z,Z=="fox-tab-pane"){let D=new Ob;if(V.props?.title||V.props?.["pane-key"]||V.props?.paneKey){let M=mt(V.props?.["pane-key"]),z=M=="number"||M=="string"?String(V.props?.["pane-key"]):null,P=mt(V.props?.paneKey),K=P=="number"||P=="string"?String(V.props?.paneKey):null;D.title=V.props?.title,D.paneKey=z||K||String(H),D.disabled=V.props?.disabled}r.value.push(D)}else{if(V.children==" ")return;Array.isArray(V.children)&&i(V.children)}})},c=(0,t.ref)(e.modelValue||0),s=$=>{let V=r.value.findIndex(H=>H.paneKey==$);r.value.length==0||V==-1||(c.value=V)},d=(0,t.computed)(()=>e.titleScroll&&e.direction==="vertical"),h=(0,t.ref)(),u=(0,t.ref)([]),y=$=>{const V=h.value,H=u.value;if(!V||!H||!H[c.value])return;const Z=H[c.value];let D=0;e.direction==="vertical"?D=Z.offsetTop-V.offsetTop+10-(V.offsetHeight-Z.offsetHeight)/2:D=Z.offsetLeft-(V.offsetWidth-Z.offsetWidth)/2,S(V,D,$?0:.3,e.direction)},S=($,V,H,Z)=>{let D=0;const M=Z==="horizontal"?$.scrollLeft:$.scrollTop,z=H===0?1:Math.round(H*1e3/16);function P(){Z==="horizontal"?$.scrollLeft+=(V-M)/z:$.scrollTop+=(V-M)/z,++D<z&&je(P)}P()},w=($=a.default?.())=>{r.value=[],$=$?.filter(V=>typeof V.children!="string"),$&&$.length&&i($),s(e.modelValue),(0,t.nextTick)(()=>{y()})},b=$=>{o=$.fixed};(0,t.watch)(()=>a.default?.(),$=>{w($)});const k=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;(0,t.watch)(()=>e.modelValue,$=>{if(s($),y(),o){let V=De(l.value).top+k(),H=Math.ceil(V-e.top);window.scrollTo({top:H,behavior:"smooth"})}}),(0,t.onMounted)(w),(0,t.onActivated)(w);const f={isBegin:()=>c.value==0,isEnd:()=>c.value==r.value.length-1,next:()=>{c.value+=1,f.updateValue(r.value[c.value])},prev:()=>{c.value-=1,f.updateValue(r.value[c.value])},updateValue:$=>{n("update:modelValue",$.paneKey),n("change",$)},tabChange:($,V)=>{n("click",$),!($.disabled||c.value==V)&&(c.value=V,f.updateValue($))},setTabItemRef:($,V)=>{u.value[V]=$}},{tabsContentRef:v,touchState:m,touchMethods:N}=Rb(e,f),A=(0,t.computed)(()=>{let $=c.value*100;m.moving&&($+=m.offset);let V={transform:e.direction=="horizontal"?`translate3d(-${$}%, 0, 0)`:`translate3d( 0,-${$}%, 0)`,transitionDuration:m.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(V={}),V}),p=(0,t.computed)(()=>({background:e.background})),g=(0,t.computed)(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),C=(0,t.computed)(()=>{if(!e.titleGutter)return{};const $=me(e.titleGutter);return e.direction==="vertical"?{marginTop:$,marginBottom:$}:{marginLeft:$,marginRight:$}}),T=(0,t.computed)(()=>a.fixedTitle);return{navRef:h,tabsContentRef:v,titles:r,contentStyle:A,tabsNavStyle:p,titleStyle:C,tabsActiveStyle:g,container:l,getScrollY:d,onStickyScroll:b,...f,...N,hasFixedTitle:T}}}),Ub=["onClick"],Hb={key:0,class:"fox-tabs__titles-fixed-item"},jb=["onClick"],Wb={key:0,class:"fox-tabs__titles-fixed-item"};function Yb(e,n,a,l,o,r){const i=(0,t.resolveComponent)("JoySmile"),c=(0,t.resolveComponent)("fox-sticky");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:(0,t.normalizeStyle)(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?(0,t.renderSlot)(e.$slots,"titles",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.titles,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:s.paneKey==e.modelValue,disabled:s.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:h=>e.tabChange(s,d),key:s.paneKey},[(0,t.renderSlot)(e.$slots,"title",{title:s.title,paneKey:s.paneKey},()=>[e.type=="line"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-tabs__titles-item__line",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},null,4)):(0,t.createCommentVNode)("",!0),e.type=="smile"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-tabs__titles-item__smile",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},[(0,t.createVNode)(i,{color:e.color},null,8,["color"])],4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},(0,t.toDisplayString)(s.title),3)])],14,Ub))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hb,[(0,t.renderSlot)(e.$slots,"fixedTitle")])):(0,t.createCommentVNode)("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:(0,t.normalizeStyle)(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?(0,t.renderSlot)(e.$slots,"titles",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.titles,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:s.paneKey==e.modelValue,disabled:s.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:h=>e.tabChange(s,d),key:s.paneKey,ref_for:!0,ref:h=>e.setTabItemRef(h,d)},[(0,t.renderSlot)(e.$slots,"title",{title:s.title,paneKey:s.paneKey},()=>[e.type=="line"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-tabs__titles-item__line",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},null,4)):(0,t.createCommentVNode)("",!0),e.type=="smile"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-tabs__titles-item__smile",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},[(0,t.createVNode)(i,{color:e.color},null,8,["color"])],4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},(0,t.toDisplayString)(s.title),3)])],14,jb))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wb,[(0,t.renderSlot)(e.$slots,"fixedTitle")])):(0,t.createCommentVNode)("",!0)],64))],6)),(0,t.createElementVNode)("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:(0,t.normalizeStyle)(e.contentStyle),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[(0,t.renderSlot)(e.$slots,"default")],36)],2)}var lo=re(Kb,[["render",Yb]]),{create:Xb}=ee("tab-pane"),Qb=Xb({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=(0,t.inject)("tabsOpiton"),l=(0,t.computed)(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:l}}});function Gb(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:(0,t.normalizeStyle)(e.paneStyle)},[(0,t.renderSlot)(e.$slots,"default")],6)}var ao=re(Qb,[["render",Gb]]),{componentName:Mi,create:Zb}=ee("indicator"),_b=Zb({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:a}=(0,t.toRefs)(e);return{classes:(0,t.computed)(()=>{const l=Mi;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Mi,padZero:rt}}});function Jb(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.size,i=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:i},[i===e.current?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(`${e.componentName}--number`)},(0,t.toDisplayString)(e.fillZero&&e.padZero(i)||i),3)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var oo=re(_b,[["render",Jb]]),{componentName:ev,create:tv}=ee("side-navbar"),nv=tv({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=(0,t.ref)(null),a=(0,t.reactive)({count:1,observer:null}),l=(0,t.computed)(()=>({[ev]:!0})),o=(i,c=1)=>{for(let s=0;s<i.length;s++){let d=i[s];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*c+"px",d.className.includes("fox-side-navbar-item")||o(Array.from(d.children[1].children),++a.count))}a.count--},r=()=>{let i=n.value.childNodes;i.length&&(i=Array.from(i).filter(c=>c.nodeType!==3).map(c=>c),o(i))};return(0,t.onMounted)(()=>{r(),a.observer=new MutationObserver(function(){a.count=1,r()}),a.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(a),list:n,classes:l}}}),lv={class:"fox-side-navbar__content"},av={class:"fox-side-navbar__content__list",ref:"list"};function ov(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",lv,[(0,t.createElementVNode)("view",av,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var ro=re(nv,[["render",ov]]),{componentName:rv,create:iv}=ee("side-navbar-item"),sv=iv({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[rv]:!0})),handleClick:()=>{n.emit("click")}})}),cv=["ikey"],uv={class:"fox-side-navbar-item__title"};function dv(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...i)=>e.handleClick&&e.handleClick(...i),["stop"])),ikey:e.ikey},[(0,t.createElementVNode)("span",uv,(0,t.toDisplayString)(e.title),1)],10,cv)}var io=re(sv,[["render",dv]]),{componentName:fv,create:mv}=ee("sub-side-navbar"),hv=mv({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:oe.ArrowDown2,ArrowUp2:oe.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=(0,t.reactive)({direction:""}),l=(0,t.computed)(()=>({[fv]:!0})),o=(0,t.computed)(()=>({height:a.direction?"0px":"auto"})),r=()=>{n.emit("title-click"),a.direction=a.direction?"":"up"};return(0,t.onMounted)(()=>{a.direction=e.open?"":"up"}),{...(0,t.toRefs)(a),classes:l,style:o,handleClick:r}}}),pv=["ikey"],gv={class:"fox-sub-side-navbar__title__text"},yv={class:"fox-sub-side-navbar__title__icon"};function bv(e,n,a,l,o,r){const i=(0,t.resolveComponent)("ArrowDown2"),c=(0,t.resolveComponent)("ArrowUp2");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ikey:e.ikey},[(0,t.createElementVNode)("view",{class:"fox-sub-side-navbar__title",onClick:n[0]||(n[0]=(0,t.withModifiers)((...s)=>e.handleClick&&e.handleClick(...s),["stop"]))},[(0,t.createElementVNode)("span",gv,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",yv,[e.direction?((0,t.openBlock)(),(0,t.createBlock)(c,{key:1})):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0}))])]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,pv)}var so=re(hv,[["render",bv]]),{componentName:vv,create:Sv}=ee("range"),kv=Sv({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const a=(0,t.ref)(0);let l,o;const r=(0,t.ref)(),i=(0,t.ref)(),c=lt(),s=(0,t.computed)(()=>{const{marks:D,max:M,min:z}=e;return Object.keys(D).map(parseFloat).sort((P,K)=>P-K).filter(P=>{const K=de(P);return K>=de(z)&&K<=de(M)})}),d=(0,t.computed)(()=>Number(e.max)-Number(e.min)),h=(0,t.computed)(()=>{const D=vv;return{[D]:!0,[`${D}-disabled`]:e.disabled,[`${D}-vertical`]:e.vertical,[`${D}-show-number`]:!e.hiddenRange}}),u=(0,t.computed)(()=>{const D="fox-range-container";return{[D]:!0,[`${D}-vertical`]:e.vertical}}),y=(0,t.computed)(()=>({background:e.inactiveColor})),S=(0,t.computed)(()=>({borderColor:e.buttonColor})),w=D=>!!e.range&&Array.isArray(D),b=()=>{const{modelValue:D,min:M}=e;return w(D)?`${(D[1]-D[0])*100/d.value}%`:`${(D-Number(M))*100/d.value}%`},k=()=>{const{modelValue:D,min:M}=e;return w(D)?`${(D[0]-Number(M))*100/d.value}%`:"0%"},f=(0,t.computed)(()=>e.vertical?{height:b(),top:k(),background:e.activeColor,transition:i.value?"none":void 0}:{width:b(),left:k(),background:e.activeColor,transition:i.value?"none":void 0}),v=D=>{const M="fox-range-mark",{modelValue:z,max:P,min:K}=e;let j=Number(K),x=Number(P);if(e.range){const[ne,W]=z;j=ne,x=W}else x=z;let _=D<=x&&D>=j;return{[`${M}-text`]:!0,[`${M}-text-active`]:_}},m=D=>{const{min:M,vertical:z}=e;let P={left:`${(D-Number(M))/d.value*100}%`};return z&&(P={top:`${(D-Number(M))/d.value*100}%`}),P},N=D=>{const{modelValue:M,max:z,min:P}=e;let K=Number(P),j=Number(z);if(e.range){const[x,_]=M;K=x,j=_}return{background:D<=j&&D>=K?e.activeColor:e.inactiveColor}},A=D=>{const{min:M,max:z,step:P}=e;return D=Math.max(+M,Math.min(D,+z)),Math.round(D/+P)*+P},p=(D,M)=>JSON.stringify(D)===JSON.stringify(M),g=D=>D[0]>D[1]?D.slice(0).reverse():D,C=(D,M)=>{w(D)?D=g(D).map(A):D=A(D),p(D,e.modelValue)||n("update:modelValue",D),M&&!p(D,l)&&n("change",D)},T=D=>{if(e.disabled)return;const{min:M,modelValue:z}=e,P=De(r);let K=D.clientX-P.left,j=P.width;e.vertical&&(K=D.clientY-P.top,j=P.height);const x=Number(M)+K/j*d.value;if(w(z)){const[_,ne]=z;x<=(_+ne)/2?C([x,ne],!0):C([_,x],!0)}else C(x,!0)},$=D=>{e.disabled||(c.start(D),o=e.modelValue,w(o)?l=o.map(A):l=A(o),i.value="start")},V=D=>{if(e.disabled)return;i.value==="start"&&n("drag-start"),c.move(D),i.value="draging";const M=De(r);let z=c.deltaX.value,P=M.width,K=z/P*d.value;e.vertical&&(z=c.deltaY.value,P=M.height,K=z/P*d.value),w(l)?o[a.value]=l[a.value]+K:o=l+K,C(o),D.stopPropagation(),D.preventDefault()},H=()=>{e.disabled||(i.value==="draging"&&(C(o,!0),n("drag-end")),i.value="")},Z=D=>dn(e.modelValue)&&typeof D=="number"?e.modelValue[D]:Number(e.modelValue);return{root:r,classes:h,wrapperStyle:y,buttonStyle:S,onClick:T,onTouchStart:$,onTouchMove:V,onTouchEnd:H,...(0,t.toRefs)(e),barStyle:f,curValue:Z,buttonIndex:a,containerClasses:u,markClassName:v,marksStyle:m,marksList:s,tickStyle:N}}}),wv={key:0,class:"fox-range-min"},Cv={key:0,class:"fox-range-mark"},Nv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Av={key:0,class:"number"},Bv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Tv={key:0,class:"number"},Vv={key:1,class:"fox-range-max"};function $v(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.containerClasses)},[e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",wv,(0,t.toDisplayString)(+e.min),1)),(0,t.createElementVNode)("view",{ref:"root",style:(0,t.normalizeStyle)(e.wrapperStyle),class:(0,t.normalizeClass)(e.classes),onClick:n[9]||(n[9]=(0,t.withModifiers)((...i)=>e.onClick&&e.onClick(...i),["stop"]))},[e.marksList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",Cv,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.marksList,i=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:i,class:(0,t.normalizeClass)(e.markClassName(i)),style:(0,t.normalizeStyle)(e.marksStyle(i))},[(0,t.createTextVNode)((0,t.toDisplayString)(i)+" ",1),(0,t.createElementVNode)("span",{class:"fox-range-tick",style:(0,t.normalizeStyle)(e.tickStyle(i))},null,4)],6))),128))])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-range-bar",style:(0,t.normalizeStyle)(e.barStyle)},[e.range?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)([0,1],i=>(0,t.createElementVNode)("view",{key:i,role:"slider",class:(0,t.normalizeClass)({"fox-range-button-wrapper-left":i==0,"fox-range-button-wrapper-right":i==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(i),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:(0,t.withModifiers)(c=>{typeof i=="number"&&(e.buttonIndex=i),e.onTouchStart(c)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=(0,t.withModifiers)((...c)=>e.onTouchMove&&e.onTouchMove(...c),["stop","prevent"])),onTouchend:n[1]||(n[1]=(0,t.withModifiers)((...c)=>e.onTouchEnd&&e.onTouchEnd(...c),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=(0,t.withModifiers)((...c)=>e.onTouchEnd&&e.onTouchEnd(...c),["stop","prevent"])),onClick:n[3]||(n[3]=c=>c.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Av,(0,t.toDisplayString)(e.curValue(i)),1))],4))],42,Nv)),64)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=(0,t.withModifiers)(i=>{e.onTouchStart(i)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=(0,t.withModifiers)((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=(0,t.withModifiers)((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:n[8]||(n[8]=i=>i.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Tv,(0,t.toDisplayString)(e.curValue()),1))],4))],40,Bv))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Vv,(0,t.toDisplayString)(+e.max),1))],2)}var Gt=re(kv,[["render",$v]]),{create:Ev,scope:Dv}=ee("short-password"),Iv=Ev({components:{[Se.name]:Se,Tips:oe.Tips},props:{title:{type:String},desc:{type:String},tips:{type:String},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,pe.useFoxI18n)(Dv),l=a(e,["title","desc","tips"]),o=(0,t.ref)(e.modelValue),r=(0,t.computed)(()=>d(Number(e.length))),i=(0,t.ref)(e.visible),c=u=>{u.stopPropagation(),n("focus")};(0,t.watch)(()=>e.visible,u=>{i.value=u}),(0,t.watch)(()=>e.modelValue,u=>{o.value=u,String(u).length===r.value&&n("complete",u)});const s=()=>{n("update:visible",!1),n("close")},d=u=>Math.min(Math.max(4,u),6);return{comLen:r,realInput:o,onTouchStart:c,range:d,close:s,onTips:()=>{n("tips")},show:i,...l}}}),qv={class:"fox-short-password-title"},xv={class:"fox-short-password-subtitle"},Pv={class:"fox-short-password-wrapper"},Mv={key:0,class:"fox-short-password__item-icon"},zv={class:"fox-short-password__message"},Lv={class:"fox-short-password--error"},Rv={key:0,class:"fox-short-password--forget"};function Ov(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Tips"),c=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",null,[(0,t.createVNode)(c,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":n[2]||(n[2]=s=>e.show=s),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",qv,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",xv,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",Pv,[(0,t.createElementVNode)("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(new Array(e.comLen),(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?((0,t.openBlock)(),(0,t.createElementBlock)("view",Mv)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",zv,[(0,t.createElementVNode)("view",Lv,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",Rv,[(0,t.createVNode)(i,{class:"icon",width:"11px",height:"11px"}),(0,t.createElementVNode)("view",{onClick:n[1]||(n[1]=(...s)=>e.onTips&&e.onTips(...s))},(0,t.toDisplayString)(e.tips),1)])):(0,t.createCommentVNode)("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}var co=re(Iv,[["render",Ov]]),Fv=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},Kv=class{options;constructor(e){this.options=e}upload(){const e=this.options,n=new XMLHttpRequest;if(n.timeout=e.timeout,n.upload){n.upload.addEventListener("progress",a=>{e.onProgress?.(a,e)},!1),n.onreadystatechange=()=>{n.readyState===4&&(n.status==e.xhrState?e.onSuccess?.(n.responseText,e):e.onFailure?.(n.responseText,e))},n.withCredentials=e.withCredentials,n.open(e.method,e.url,!0);for(const[a,l]of Object.entries(e.headers))n.setRequestHeader(a,l);e.onStart?.(e),e.beforeXhrUpload?e.beforeXhrUpload(n,e):n.send(e.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}},Uv=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},zi=(e,{args:n=[],done:a,canceled:l})=>{if(e){const o=e.apply(null,n);dt(o)?o.then(r=>{r?a(r):l&&l()}).catch(()=>{}):o?a():l&&l()}else a()},{create:Hv}=ee("progress"),jv=Hv({components:{Checked:oe.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!(0,t.useSlots)().default,a=(0,t.ref)(e.strokeWidth+"px"),l=(0,t.ref)(),o=(0,t.ref)(),r=(0,t.computed)(()=>{const s=de(e.percentage);return s>=100?100:s}),i=(0,t.computed)(()=>({width:r.value+"%",background:e.strokeColor||""})),c=(0,t.computed)(()=>({color:e.textColor||""}));return(0,t.onMounted)(()=>{}),{height:a,percentage:r,bgStyle:i,textStyle:c,progressOuter:l,insideText:o,slotDefault:n}}}),Wv={class:"fox-progress"},Yv={key:0,class:"fox-progress-text"};function Xv(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",Wv,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-progress-outer",[e.showText&&!e.textInside?"fox-progress-outer-part":"",e.size?"fox-progress-"+e.size:""]]),ref:"progressOuter",style:(0,t.normalizeStyle)({height:e.height})},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-progress-inner",e.status=="active"?"fox-active":""]),style:(0,t.normalizeStyle)(e.bgStyle)},null,6),e.showText&&e.textInside&&!e.slotDefault?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-progress-text fox-progress-insidetext",ref:"insideText",style:(0,t.normalizeStyle)({lineHeight:e.height,left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`,background:e.textBackground||e.strokeColor})},[(0,t.createElementVNode)("span",{style:(0,t.normalizeStyle)(e.textStyle)},(0,t.toDisplayString)(e.percentage)+(0,t.toDisplayString)(e.isShowPercentage?"%":""),5)],4)):(0,t.createCommentVNode)("",!0),e.showText&&e.textInside&&e.slotDefault?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,ref:"insideText",style:(0,t.normalizeStyle)({position:"absolute",top:"50%",left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`})},[(0,t.renderSlot)(e.$slots,"default")],4)):(0,t.createCommentVNode)("",!0)],6),e.showText&&!e.textInside?((0,t.openBlock)(),(0,t.createElementBlock)("div",Yv,[e.status=="active"||e.status==""?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,style:(0,t.normalizeStyle)(e.textStyle)},(0,t.toDisplayString)(e.percentage)+(0,t.toDisplayString)(e.isShowPercentage?"%":""),5)):e.status=="icon"?(0,t.renderSlot)(e.$slots,"icon-name",{key:1},()=>[(0,t.createVNode)(i,{width:"15px",height:"15px",color:"#439422"})]):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)])}var Zt=re(jv,[["render",Xv]]),{componentName:Qv,create:Gv,scope:Zv}=ee("uploader"),_v=Gv({components:{[Zt.name]:Zt,Photograph:oe.Photograph,Failure:oe.Failure,Loading:oe.Loading,Del:oe.Del,Link:oe.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=(0,pe.useFoxI18n)(Zv),l=(0,t.reactive)(e.fileList);let o=[];const r=(0,t.computed)(()=>({[Qv]:!0})),i=()=>{let v={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(v.capture="camera"),(0,t.h)("input",v)},c=v=>{v.value=""},s=v=>{n("file-item-click",{fileItem:v})},d=(v,m)=>{const N=new Fv;N.url=e.url,N.formData=v.formData,N.timeout=e.timeout*1,N.method=e.method,N.xhrState=e.xhrState,N.headers=e.headers,N.withCredentials=e.withCredentials,N.beforeXhrUpload=e.beforeXhrUpload;try{N.sourceFile=v.formData.get(e.name)}catch{}N.onStart=p=>{v.status="ready",v.message=a("readyUpload"),h(m),n("start",p)},N.onProgress=(p,g)=>{v.status="uploading",v.message=a("uploading"),v.percentage=(p.loaded/p.total*100).toFixed(0),n("progress",{event:p,option:g,percentage:v.percentage})},N.onSuccess=(p,g)=>{v.status="success",v.message=a("success"),n("success",{responseText:p,option:g,fileItem:v}),n("update:fileList",l)},N.onFailure=(p,g)=>{v.status="error",v.message=a("error"),n("failure",{responseText:p,option:g,fileItem:v})};let A=new Kv(N);e.autoUpload?A.upload():o.push(new Promise((p,g)=>{p(A)}))},h=(v=-1)=>{v>-1?o.splice(v,1):(o=[],l.splice(0,l.length))},u=()=>{Promise.all(o).then(v=>{v.forEach(m=>m.upload())})},y=v=>{v.forEach((m,N)=>{const A=new FormData;for(const[g,C]of Object.entries(e.data))A.append(g,C);A.append(e.name,m);const p=(0,t.reactive)(new Uv);if(p.name=m.name,p.status="ready",p.type=m.type,p.formData=A,p.message=a("waitingUpload"),d(p,N),e.isPreview&&m.type.includes("image")){const g=new FileReader;g.onload=C=>{p.url=C.target.result,l.push(p)},g.readAsDataURL(m)}else l.push(p)})},S=v=>{const m=e.maximum*1,N=e.maximize*1,A=new Array;v=v.filter(g=>g.size>N?(A.push(g),!1):!0),A.length&&n("oversize",A);let p=v.length+l.length;return p>m&&v.splice(v.length-(p-m)),v},w=(v,m)=>{l.splice(m,1),n("delete",{file:v,fileList:l,index:m})},b=(v,m)=>{h(m),zi(e.beforeDelete,{args:[v,l],done:()=>w(v,m)})},k=v=>{if(e.disabled)return;const m=v.target;let{files:N}=m;e.beforeUpload?e.beforeUpload(N).then(A=>f(A)):f(N),n("change",{fileList:l,event:v}),e.clearInput&&c(m)},f=v=>{y(S(new Array().slice.call(v)))};return{onChange:k,onDelete:b,fileList:l,classes:r,fileItemClick:s,clearUploadQueue:h,submit:u,renderInput:i}}}),Jv={key:0,class:"fox-uploader__slot"},eS={key:0,class:"fox-uploader__preview-img"},tS={key:0,class:"fox-uploader__preview__progress"},nS={class:"fox-uploader__preview__progress__msg"},lS=["onClick"],aS=["onClick","src"],oS={key:3,class:"fox-uploader__preview-img__file"},rS=["onClick"],iS={class:"file__name_tips"},sS={class:"tips"},cS={key:1,class:"fox-uploader__preview-list"},uS=["onClick"],dS={class:"file__name_tips"};function fS(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Failure"),c=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Link"),d=(0,t.resolveComponent)("Del"),h=(0,t.resolveComponent)("fox-progress"),u=(0,t.resolveComponent)("Photograph");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",Jv,[(0,t.renderSlot)(e.$slots,"default"),Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.fileList,(y,S)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-uploader__preview",[e.listType]]),key:y.uid},[e.listType=="picture"&&!e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",eS,[y.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",tS,[y.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[y.status=="error"?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,color:"#fff"})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1,name:"loading",color:"#fff"}))],64)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",nS,(0,t.toDisplayString)(y.message),1)])):(0,t.createCommentVNode)("",!0),e.isDeletable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"close",onClick:w=>e.onDelete(y,S)},[(0,t.renderSlot)(e.$slots,"delete-icon",{},()=>[(0,t.createVNode)(i)])],8,lS)):(0,t.createCommentVNode)("",!0),y?.type?.includes("image")&&y.url?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,class:"fox-uploader__preview-img__c",onClick:w=>e.fileItemClick(y),src:y.url},null,8,aS)):((0,t.openBlock)(),(0,t.createElementBlock)("view",oS,[(0,t.createElementVNode)("view",{onClick:w=>e.fileItemClick(y),class:"fox-uploader__preview-img__file__name"},[(0,t.createElementVNode)("view",iS,(0,t.toDisplayString)(y.name),1)],8,rS)])),(0,t.createElementVNode)("view",sS,(0,t.toDisplayString)(y.name),1)])):e.listType=="list"?((0,t.openBlock)(),(0,t.createElementBlock)("view",cS,[(0,t.createElementVNode)("view",{onClick:w=>e.fileItemClick(y),class:(0,t.normalizeClass)(["fox-uploader__preview-img__file__name",[y.status]])},[(0,t.createVNode)(s,{class:"fox-uploader__preview-img__file__link"}),(0,t.createElementVNode)("view",dS,(0,t.toDisplayString)(y.name),1),e.isDeletable?((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:w=>e.onDelete(y,S)},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],10,uS),y.status=="uploading"?((0,t.openBlock)(),(0,t.createBlock)(h,{key:0,size:"small",percentage:y.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(["fox-uploader__upload",[e.listType]])},[(0,t.renderSlot)(e.$slots,"upload-icon",{},()=>[(0,t.createVNode)(u,{color:"#808080"})]),((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):(0,t.createCommentVNode)("",!0)],2)}var uo=re(_v,[["render",fS]]),mS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCI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5z+KovDBD3V2pgznz/y91noevSOECBbhxtwVt7dFpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:pS,scope:gS}=ee("number-keyboard"),yS=pS({components:{[Se.name]:Se},props:{confirmText:{type:String},title:{type:String},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,pe.useFoxI18n)(gS),l=a(e,["confirmText"]),o=(0,t.ref)(void 0),r=(0,t.ref)(e.visible),i=(0,t.ref)();function c(){const{customKey:f}=e;let v={id:"lock",type:"lock"},m=Array.isArray(f)?f:[f];return m.length===1&&(v={id:m[0],type:"custom"}),[...s(),v,{id:0,type:"number"},{id:"delete",type:"delete"}]}function s(){const f=[];for(let v=1;v<=9;v++)f.push({id:v,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function d(){const f=s(),{customKey:v}=e;let m=Array.isArray(v)?v:[v];return m.length>2&&(m=[m[0],m[1]]),m.length==2&&e.title&&e.type!="rightColumn"&&(m=[m[0]]),m.length===1?e.title&&e.type!="rightColumn"?f.push({id:m[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:m[0],type:"custom"}):m.length===2&&f.push({id:m[0],type:"custom"},{id:0,type:"number"},{id:m[1],type:"custom"}),f}const h=(0,t.computed)(()=>e.type=="rightColumn"||e.title!=""?d():c()),u=()=>{e.visible&&n("blur")},y=f=>{const v=i.value;v&&!v.contains(f.target)&&u()};(0,t.watch)(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",y,!1):window.removeEventListener("touchstart",y,!1)});function S(f,v){v.stopPropagation(),o.value=f.id,(f.type=="number"||f.type=="custom")&&(n("input",f.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+f.id)),f.type=="lock"&&k(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function w(f){f.stopPropagation()}function b(f){f.preventDefault(),o.value=void 0}function k(){n("update:visible",!1),n("close")}return{...l,delImg:mS,lockImg:hS,clickKeyIndex:o,defaultKey:c,closeBoard:k,onTouchEnd:b,onTouchMove:w,onTouchstart:S,keysList:h,genCustomKeys:d,getBasicKeys:s,root:i,show:r}}}),bS={ref:"root"},vS={class:"fox-number-keyboard"},SS={key:0,class:"fox-number-keyboard__header"},kS={class:"fox-number-keyboard__title"},wS={class:"fox-number-keyboard__body"},CS={class:"fox-number-keyboard__keys"},NS=["onTouchstart"],AS=["src"],BS=["src"],TS={key:0,class:"fox-number-keyboard__sidebar"},VS={class:"fox-key__wrapper"},$S=["src"];function ES(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",bS,[(0,t.createVNode)(i,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=c=>e.show=c),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",vS,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",SS,[(0,t.createElementVNode)("h3",kS,(0,t.toDisplayString)(e.title),1),e.type=="default"?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-number-keyboard__close",onClick:n[0]||(n[0]=c=>e.closeBoard())},(0,t.toDisplayString)(e.confirmText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",wS,[(0,t.createElementVNode)("div",CS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.keysList,c=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:"key"+c.id,class:(0,t.normalizeClass)(["fox-key__wrapper",{"fox-key__wrapper--wider":c.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{"fox-key--active":c.id==e.clickKeyIndex},{"fox-key--lock":c.type=="lock"},{"fox-key--delete":c.type=="delete"}]),onTouchstart:s=>e.onTouchstart(c,s),onTouchmove:n[1]||(n[1]=s=>e.onTouchMove(s)),onTouchend:n[2]||(n[2]=s=>e.onTouchEnd(s))},[c.type=="number"||c.type=="custom"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(c.id),1)],64)):(0,t.createCommentVNode)("",!0),c.type=="lock"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:1,src:e.lockImg},null,8,AS)):(0,t.createCommentVNode)("",!0),c.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,BS)):(0,t.createCommentVNode)("",!0)],42,NS)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",TS,[(0,t.createElementVNode)("div",VS,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=c=>e.onTouchstart({id:"delete",type:"delete"},c)),onTouchmove:n[4]||(n[4]=c=>e.onTouchMove(c)),onTouchend:n[5]||(n[5]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[(0,t.createElementVNode)("img",{src:e.delImg},null,8,$S)],34)]),(0,t.createElementVNode)("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=c=>e.closeBoard())},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},(0,t.toDisplayString)(e.confirmText),3)])])):(0,t.createCommentVNode)("",!0)])])]),_:1},8,["visible","popClass"])],512)}var fo=re(yS,[["render",ES]]),{componentName:DS,create:IS}=ee("swipe"),qS=IS({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n}){const a=(0,t.computed)(()=>({[DS]:!0})),l=v=>v.value?.clientWidth||0,o=(0,t.ref)(),r=(0,t.computed)(()=>l(o)),i=(0,t.ref)(),c=(0,t.computed)(()=>l(i));let s=!1,d="",h="";const u=(0,t.reactive)({offset:0,moving:!1}),y=(v="")=>{s=!0,v&&(u.offset=v==="left"?-c.value:r.value),n("open",{name:e.name,position:d||v})},S=()=>{u.offset=0,s=!1,n("close",{name:e.name,position:d})},w=(0,t.computed)(()=>({transform:`translate3d(${u.offset}px, 0, 0)`})),b=v=>{d=v>0?"right":"left";let m=v;switch(d){case"left":s&&h===d?m=-c.value:m=Math.abs(v)>c.value?-c.value:v;break;case"right":s&&h===d?m=r.value:m=Math.abs(v)>r.value?r.value:v;break}u.offset=m},k=lt(),f={onTouchStart(v){e.disabled||k.start(v)},onTouchMove(v){e.disabled||(k.move(v),k.isHorizontal()&&(u.moving=!0,b(k.deltaX.value),e.touchMovePreventDefault&&v.preventDefault(),e.touchMoveStopPropagation&&v.stopPropagation()))},onTouchEnd(){if(u.moving)switch(u.moving=!1,h=d,d){case"left":Math.abs(u.offset)<=c.value/2?S():(u.offset=-c.value,y());break;case"right":Math.abs(u.offset)<=r.value/2?S():(u.offset=r.value,y());break}}};return be({open:y,close:S}),{classes:a,touchStyle:w,...f,leftRef:o,rightRef:i,open:y,close:S}}}),xS={class:"fox-swipe__left",ref:"leftRef"},PS={class:"fox-swipe__content"},MS={class:"fox-swipe__right",ref:"rightRef"};function zS(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.touchStyle),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[(0,t.createElementVNode)("view",xS,[(0,t.renderSlot)(e.$slots,"left")],512),(0,t.createElementVNode)("view",PS,[(0,t.renderSlot)(e.$slots,"default")]),(0,t.createElementVNode)("view",MS,[(0,t.renderSlot)(e.$slots,"right")],512)],38)}var mo=re(qS,[["render",zS]]),{componentName:LS,create:RS}=ee("action-sheet"),OS=RS({components:{Popup:Se,Loading:oe.Loading},props:{...at,cancelTxt:{type:String},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String},title:{type:String},color:{type:String,default:"#ee0a24"},description:{type:String},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const a=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[LS]:!0}));return{slotDefault:a,isHighlight:s=>e.chooseTagValue&&e.chooseTagValue===s[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(s,d)=>{!s.disable&&!s.loading&&(n("choose",s,d),n("update:visible",!1))},close:s=>{n("close",s),n("update:visible",!1)},classes:l}}}),FS={key:0,class:"fox-action-sheet__title"},KS={key:1},US={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},HS={key:1,class:"fox-action-sheet__menu"},jS=["onClick"],WS={key:1},YS={class:"fox-action-sheet__subdesc"};function XS(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Loading"),c=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createBlock)(c,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes)},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",FS,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",KS,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",US,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",HS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.menuItems,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":s.disable,"fox-action-sheet__item--loading":s.loading}]),style:(0,t.normalizeStyle)({color:e.isHighlight(s)||s.color}),key:d,onClick:h=>e.chooseItem(s,d)},[s.loading?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",WS,(0,t.toDisplayString)(s[e.optionTag]),1)),(0,t.createElementVNode)("view",YS,(0,t.toDisplayString)(s[e.optionSubTag]),1)],14,jS))),128))])):(0,t.createCommentVNode)("",!0),e.cancelTxt?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:"fox-action-sheet__cancel",onClick:n[0]||(n[0]=(...s)=>e.cancelActionSheet&&e.cancelActionSheet(...s))},(0,t.toDisplayString)(e.cancelTxt),1)):(0,t.createCommentVNode)("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}var ho=re(OS,[["render",XS]]),{componentName:QS,create:GS}=ee("backtop"),ZS=GS({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:a}){const l=(0,t.reactive)({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),o=(0,t.computed)(()=>({[QS]:!0,show:l.backTop})),r=(0,t.computed)(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function i(){l.scrollEl instanceof Window?l.scrollTop=l.scrollEl.pageYOffset:l.scrollTop=l.scrollEl.scrollTop,l.backTop=l.scrollTop>=e.distance}function c(w=0){l.scrollEl instanceof Window?window.scrollTo(0,w):l.scrollEl.scrollTop=w}function s(){let w=Ge(function b(){var k=e.duration-Math.max(0,l.startTime-+new Date+e.duration),f=k*-l.scrollTop/e.duration+l.scrollTop;c(f),w=Ge(b),(k==e.duration||f==0)&&Qo(w)})}function d(){l.scrollEl.addEventListener("scroll",i,!1),l.scrollEl.addEventListener("resize",i,!1)}function h(){l.scrollEl.removeEventListener("scroll",i,!1),l.scrollEl.removeEventListener("resize",i,!1)}function u(w){l.startTime=+new Date,e.isAnimation&&e.duration>0?s():c(),n("click",w)}function y(){S.value?l.scrollEl=S.value.el:e.elId&&document.getElementById(e.elId)&&(l.scrollEl=document.getElementById(e.elId)),d()}(0,t.onMounted)(()=>{e.distance==0&&(l.backTop=!0),y()}),(0,t.onUnmounted)(()=>{h()}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1,y())}),(0,t.onDeactivated)(()=>{l.keepAlive=!0,h()});const S=(0,t.computed)(()=>{if(typeof a.content=="function"){const w=a.content();return Array.isArray(w)?w[0]:w}return null});return()=>{const w=[];S.value&&w.push(S.value);const b=[];if(typeof a.default=="function")b.push(a.default());else{const f=(0,t.h)(oe.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});b.push(f)}const k=(0,t.h)("div",{class:o.value,style:r.value,onClick:u},b);return w.push(k),w}}}),po=ZS,{componentName:_S,create:JS}=ee("drag"),e1=JS({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,t.reactive)({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),o=(0,t.computed)(()=>({[_S]:!0}));function r(){const u=document.documentElement;l.elWidth=a.value.offsetWidth,l.elHeight=a.value.offsetHeight,l.screenWidth=u.clientWidth,l.screenHeight=u.clientHeight}function i(u){l.boundary.left?+u.style.left.split("px")[0]>l.boundary.left?(u.style.left=+u.style.left.split("px")[0]-10+"px",je(()=>{i(u)})):u.style.left=`${l.boundary.left}px`:+u.style.left.split("px")[0]>10?(u.style.left=+u.style.left.split("px")[0]-10+"px",je(()=>{i(u)})):u.style.left="0px"}function c(u,y){y-parseInt(u.style.left.split("px")[0])>10?(u.style.left=parseInt(u.style.left.split("px")[0])+10+"px",je(()=>{c(u,y)})):u.style.left=y+"px"}function s(u){u.preventDefault();const y=u.currentTarget;if(u.targetTouches.length===1){const S=u.targetTouches[0];l.nx=S.clientX-l.position.x,l.ny=S.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const w=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>w?l.xPum=w:l.xPum<=l.boundary.left&&(l.xPum=l.boundary.left),l.yPum<l.boundary.top?l.yPum=l.boundary.top:l.yPum>l.screenHeight-l.elHeight-l.boundary.bottom&&(l.yPum=l.screenHeight-l.elHeight-l.boundary.bottom),e.direction!="y"&&(y.style.left=l.xPum+"px"),e.direction!="x"&&(y.style.top=l.yPum+"px")}}function d(u){const y=u.currentTarget;let S=u.changedTouches[0].clientX;const w=l.screenWidth-l.elWidth-l.boundary.right;S>w?S=w:S<l.boundary.left?S=l.boundary.left:S=S<l.screenWidth/2?l.boundary.left:w,e.direction!="y"&&e.attract&&(S<l.screenWidth/2?je(()=>{i(y)}):je(()=>{c(y,w)})),e.direction!="x"&&(y.style.top=l.yPum+"px")}function h(u){const y=u.currentTarget,S=u.touches[0],w=u.targetTouches[0];l.startTop=y.offsetTop,l.startLeft=y.offsetLeft,l.position.x=S.clientX,l.position.y=S.clientY,l.nx=w.clientX-l.position.x,l.ny=w.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return(0,t.onMounted)(()=>{r(),l.boundary=e.boundary}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1)}),(0,t.onDeactivated)(()=>{l.keepAlive=!0;const u=a;u.value.removeEventListener("touchstart",h),u.value.removeEventListener("touchmove",s),u.value.removeEventListener("touchend",d)}),{classes:o,myDrag:a,touchStart:h,touchMove:s,touchEnd:d}}});function t1(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=i=>e.touchStart(i)),onTouchmove:n[1]||(n[1]=i=>e.touchMove(i)),onTouchend:n[2]||(n[2]=i=>e.touchEnd(i))},[(0,t.renderSlot)(e.$slots,"default")],34)}var go=re(e1,[["render",t1]]),n1={width:{type:[String,Number]},height:{type:[String,Number]},plain:{type:[Boolean]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},showClose:{type:Boolean,default:!1},closeIcon:{type:Object},content:{type:[String,Object]},showFooter:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},cancelButtonText:{type:String},cancelText:{type:String},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},confirmButtonText:{type:String},confirmText:{type:String},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},footerDirection:{type:String,default:"horizontal"},popClass:{type:String},popStyle:{type:Object},beforeClose:{type:Function}},l1=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function a1(e,n,a,l,o){return{props:{...at,...n1},setup(r,{attrs:i,slots:c,emit:s}){const{toLocaleRefs:d}=(0,pe.useFoxI18n)(n),h=d(r,["confirmText","cancelText"]),u=e,y=(0,t.ref)(r.visible);(0,t.watch)(()=>r.visible,p=>{y.value!==p&&(y.value=p,p&&s("opened"))});const S=p=>{y.value=p,s("update:visible",p),s("update",p)},w=p=>{if(s(p),!(p==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const g=r.beforeClose(p);dt(g)?g.then(C=>{C&&(S(!1),s("closed",p))}):g===!0&&(S(!1),s("closed",p))}else S(!1),s("closed",p)},b=()=>{w("confirm")},k=()=>{w("cancel")},f=()=>{w("close")},v=(p,g)=>l1(p)?(g.src=p,(0,t.h)("img",g)):typeof p=="string"?(Array.isArray(g.class)?g.class.push(p):g.class&&typeof g.class=="object"?g[`${p}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${p}`:g.class=p,(0,t.h)(r.tag,g)):(0,t.h)(p,g),m=()=>{const p=[];if(c.header){const g=c.header();p.push(g)}else{if(r.title){const g=(0,t.h)("view",{class:`${u}__header-title`},[r.title]);p.push(g)}if(r.showClose){const g={class:[`${u}__header-close-icon`],onClick:f},C=v(r.closeIcon??o,g);p.push(C)}}return p.length===0?null:(0,t.h)("view",{class:[`${u}__header`]},p)},N=()=>{const p=[];if(c.default)p.push(c.default());else{const g={class:[`${u}__content`]};if(r.textAlign&&g.class.push(r.textAlign),typeof r.content=="string"){g.innerHTML=r.content;const C=(0,t.h)("view",g);p.push(C)}else if(typeof r.content=="function"){const C=(0,t.h)("view",g,[r.content()]);p.push(C)}else{const C=(0,t.h)("view",g,[r.content]);p.push(C)}}return p.length===0?null:(0,t.h)("view",{class:[`${u}__body`]},p)},A=()=>{if(!r.showFooter)return null;const p=[];if(c.footer)p.push(c.footer());else if(r.plain){if(r.showCancelButton){const g={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},onClick:k};r.cancelButtonClass&&g.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(g.style,r.cancleButtonStyle);const C=(0,t.h)("view",g,[r.cancelButtonText??h.cancelText.value]);p.push(C)}if(r.showConfirmButton){const g={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},onClick:b};r.confirmButtonClass&&g.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(g.style,r.confirmButtonStyle);const C=(0,t.h)("view",g,[r.confirmButtonText??h.confirmText.value]);p.push(C)}}else{if(r.showCancelButton){const g={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:k};r.cancelButtonClass&&g.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(g.style,r.cancleButtonStyle);const C=(0,t.h)(l,g,{default:()=>[r.cancelButtonText??h.cancelText.value]});p.push(C)}if(r.showConfirmButton){const g={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:b};r.confirmButtonClass&&g.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(g.style,r.confirmButtonStyle);const C=(0,t.h)(l,g,{default:()=>[r.confirmButtonText??h.confirmText.value]});p.push(C)}}return p.length===0?null:(0,t.h)("view",{class:[`${u}__footer`,`${u}__footer--${r.footerDirection}`]},p)};return()=>{const p=[],g=m();g&&p.push(g);const C=N();C&&p.push(C);const T=A();T&&p.push(T);const $=(0,t.h)("view",{class:{[`${u}`]:!0,[`${u}--plain`]:r.plain}},p),V=[`${u}__popup`];r.popClass&&V.push(r.popClass);const H={};return r.width&&(H.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(H.height=typeof r.height=="number"?`${r.height}px`:r.height),(0,t.h)(a,{...ye(r,at),popClass:V.join(" "),style:H,visible:y.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":S,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay},{default:()=>$})}}}}var{componentName:o1,create:r1,scope:i1}=ee("dialog"),s1=r1(a1(o1,i1,Se,ct,oe.Close)),Li=s1,c1=class{title="";content="";cancelText=null;confirmText=null;textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=e=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1},u1=class{options=new c1;constructor(e){let n=Object.assign(this.options,e),a=document.body,l=n.teleport;l!="body"&&(typeof l=="string"?a=document.querySelector(l):a=n.teleport);const o=document.createElement("view"),r=`dialog-${n.id}`;o.id=r;const i=(0,t.createVNode)({setup(){return n.onUpdate=c=>{if(c===!1){const s=document.querySelector(`#${r}`);s&&s.parentNode?.removeChild(s)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(Li,n)}});a.appendChild(o),(0,t.render)(i,o)}},_t=function(e){return new u1(e)};_t.install=e=>{e.use(Li),e.config.globalProperties.$dialog=_t};var d1={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},f1=(e,n,a)=>({props:{...d1},emits:["change","refresh","update:modelValue"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),c=i(l,["pullingText","loosingText","loadingText"]),s=Yn(),d=(0,t.ref)(),h=Ni(d),u=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=(0,t.computed)(()=>({[e]:!0})),S=(0,t.computed)(()=>{switch(u.status){case"pulling":return r.pulling?"":c.pullingText.value;case"loosing":return r.loosing?"":c.loosingText.value;case"loading":return r.loading?"":c.loadingText.value;default:return""}}),w=(0,t.computed)(()=>({transitionDuration:`${l.duration}s`,transform:u.distance?`translate3d(0,${u.distance}px, 0)`:""})),b=(0,t.computed)(()=>{const g={};return l.headHeight!=50&&(g.height=me(l.headHeight)),g}),k=g=>{const C=+(l.pullDistance||l.headHeight);let T=g;return g>C&&(g<C*2?T=(g+C)/2:T=C+g/4),Math.round(T)},f=(g,C)=>{const T=+(l.pullDistance||l.headHeight);u.distance=g,C?u.status="loading":g===0?u.status="normal":g<T?u.status="pulling":u.status="loosing",o("change",{status:u.status,distance:g})},v=()=>u.status!=="loading"&&u.status!=="complete",m=()=>h.value==window?Ai()==0:h.value&&h.value.scrollTop==0,N=g=>{v()&&(m()?(s.start(g),u.isPullRefresh=!0,u.moving=!0):(u.distance=0,u.isPullRefresh=!1))},A=g=>{v()&&u.moving&&(s.move(g),s.isVertical()&&s.state.deltaY>0&&u.isPullRefresh&&(g.cancelable&&g.preventDefault(),f(k(s.state.deltaY))))},p=()=>{u.moving=!1,u.isPullRefresh&&v()&&s.state.deltaY&&(u.status==="loosing"?(f(+l.headHeight,!0),o("update:modelValue",!0),(0,t.nextTick)(()=>o("refresh"))):f(0)),setTimeout(()=>{s.reset()},0)};return(0,t.watch)(()=>l.modelValue,g=>{g?f(+l.headHeight,!0):f(0)}),()=>{const g=[];let C=null;u.status==="loading"?(C=r?.loading?.()??null,C||(C=(0,t.h)(a,{class:["fox-pull-refresh-container-topbox-icon"]}))):u.status==="pulling"?C=r?.pulling?.()??null:u.status==="loosing"&&(C=r?.loosing?.()??null),C&&g.push(C);const T=(0,t.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[S.value]);g.push(T);const $=(0,t.h)("div",{class:["fox-pull-refresh-container-topbox"],style:b.value},g),V=(0,t.h)("div",{class:"fox-pull-refresh-container",style:w.value},[$,r?.default?.()]),H={ref:d,class:y.value};return Wn()?Object.assign(H,{onTouchstart:N,onTouchmove:A,onTouchend:p}):Object.assign(H,{onMousedown:N,onMousemove:A,onMouseup:p}),(0,t.h)("div",H,[V])}}}),{componentName:m1,create:h1,scope:p1}=ee("pull-refresh"),g1=h1(f1(m1,p1,oe.Loading)),yo=g1,{create:y1}=ee("notify"),b1=y1({components:{[Se.name]:Se},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const a=()=>{e.onClick&&e.onClick()};let l=null;const o=()=>{l&&clearTimeout(l),l=null},r=()=>{n("update:visible",!1)},i=(0,t.ref)(!1),c=(0,t.watch)(()=>e.visible,d=>{i.value=e.visible;const h=e.duration;d&&h&&(l=setTimeout(()=>{r()},h))},{immediate:!0});return{onAfterLeave:()=>{o(),c&&c(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:i}}});function v1(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(i,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.isShowPopup=c),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-notify",`fox-notify--${e.type}`,e.className]),style:(0,t.normalizeStyle)({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...c)=>e.clickCover&&e.clickCover(...c))},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}var bo=re(b1,[["render",v1]]),vo={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function},Tt=[],Jt=[],Ri=e=>{if(e){const n=document.getElementById(e);Jt=Jt.filter(a=>a.id!==e),Tt=Tt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Tt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Jt=[],Tt=[]},S1=e=>{const n=document.getElementById(e.id);if(n){const a=Jt.find(o=>o.id===e.id);a?e={...vo,...a,...e}:e={...vo,...e};const l=(0,t.createVNode)(bo,e);return(0,t.render)(l,n),l.component.data}},en=e=>{e.unmount=Ri;let n;if(e.id){if(n=e.id,Tt.find(o=>o===e.id))return S1(e)}else n=new Date().getTime()+"";e={...vo,...e},e.id=n,Tt.push(e.id),Jt.push(e);const a=document.createElement("view");a.id="notify-"+e.id;const l=(0,t.createVNode)({setup(){return e.teleport=`#notify-${e.id}`,(0,t.onMounted)(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(a)},e.duration)}),()=>(0,t.h)(bo,e)}});document.body.appendChild(a),(0,t.render)(l,a)},tn=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},So={text(e,n={}){return tn(e),en({...n,msg:e})},primary(e,n={}){return tn(e),en({...n,msg:e,type:"primary"})},success(e,n={}){return tn(e),en({...n,msg:e,type:"success"})},danger(e,n={}){return tn(e),en({...n,msg:e,type:"danger"})},warn(e,n={}){return tn(e),en({...n,msg:e,type:"warning"})},hide(){Ri()},install(e){e.use(bo)}},{create:k1}=ee("toast"),w1=k1({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const o=()=>{a&&(clearTimeout(a),a=null)},r=()=>{l.mounted=!1},i=()=>{o(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},c=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),(0,t.watch)(()=>e.duration,S=>{S&&i()});const s=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const S=ce(e.iconSize);return(0,t.h)(e.icon,{width:S,height:S,color:e.iconColor})},h=(0,t.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),u=(0,t.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:r,clickCover:c,renderIcon:d,hasIcon:s,toastBodyClass:h,toastIconWrapperClass:u,onAfterLeave:()=>{o(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),C1={key:1,class:"fox-toast-title"},N1=["innerHTML"];function A1(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.toastBodyClass),style:(0,t.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[(0,t.createElementVNode)("view",{class:"fox-toast-inner",style:(0,t.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.toastIconWrapperClass)},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon())))],2)):(0,t.createCommentVNode)("",!0),e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",C1,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,N1)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var ko=re(w1,[["render",A1]]),wo={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1},Vt=[],nn=[],Oi=e=>{if(e){const n=document.getElementById(e);nn=nn.filter(a=>a.id!==e),Vt=Vt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Vt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),nn=[],Vt=[]},B1=e=>{const n=document.getElementById(e.id);if(n){const a=nn.find(l=>l.id===e.id);return a?e={...wo,...a,...e}:e={...wo,...e},(0,t.render)((0,t.createVNode)(ko,e),n),$t}},ln=e=>{e.unmount=Oi;let n;if(e.id){if(n=e.id,Vt.find(l=>l===e.id))return B1(e)}else n=new Date().getTime()+"";e={...wo,...e},e.id=n,Vt.push(e.id),nn.push(e);const a=document.createElement("div");return a.id=e.id,(0,t.render)((0,t.createVNode)(ko,e),a),document.body.appendChild(a),$t},gl=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},$t={text(e,n={}){return gl(e),ln({...n,type:"text",msg:e})},success(e,n={}){return gl(e),ln({icon:oe.Success,...n,msg:e,type:"success"})},fail(e,n={}){return gl(e),ln({icon:oe.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return gl(e),ln({icon:oe.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return ln({icon:oe.Loading,...n,msg:e,type:"loading"})},hide(e){Oi(e)},install(e){e.use(ko),e.config.globalProperties.$toast=$t}},{componentName:x2,create:T1}=ee("audio"),V1=T1({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:oe.Service,[Gt.name]:Gt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)(null),o=(0,t.reactive)({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});(0,t.onMounted)(()=>{var b=["webkitVisibilityState","visibilitychange"];try{for(let k=0;k<b.length;k++)document.addEventListener(b[k],()=>{document.hidden?l.value.pause():o.playing&&setTimeout(()=>{l.value.play()},200)})}catch(k){k.message}});const r=b=>{const k=l.value;e.autoplay&&k&&k.paused&&k.play(),o.second=k.duration,o.duration=w(k.duration),n("can-play",b)},i=b=>{o.currentTime=parseInt(b.target.currentTime)},c=()=>{o.currentTime>0&&o.currentTime--,l.value.currentTime=o.currentTime,n("fastBack",o.currentTime)},s=()=>{const b=l.value;o.playing?(b.pause(),o.handPlaying=!1):(b.play(),o.handPlaying=!0),o.playing=!o.playing,n("play",o.playing)},d=()=>{o.currentTime++,l.value.currentTime=o.currentTime,n("forward",o.currentTime)},h=b=>{o.currentDuration=w(b),o.percent=b/o.second*100},u=()=>{o.playing=!1,n("ended")},y=b=>{const k=l.value;k.currentTime=o.second*b/100,n("changeProgress",k.currentTime)},S=()=>{o.hanMuted=!o.hanMuted,n("mute",o.hanMuted)},w=b=>{if(!b)return"00:00:00";let k=parseInt(b),f=Math.floor(k/3600),v=Math.floor((k-f*3600)/60),m=k-f*3600-v*60,N="";return N+=("0"+f.toString()).slice(-2)+":",N+=("0"+v.toString()).slice(-2)+":",N+=("0"+m.toString()).slice(-2),N};return(0,t.watch)(()=>o.currentTime,b=>{h(b)}),(0,t.provide)("audioParent",{children:[],props:e,audioData:o,handleMute:S,forward:d,fastBack:c,changeStatus:s}),{...(0,t.toRefs)(e),...(0,t.toRefs)(o),audioRef:l,fastBack:c,forward:d,changeStatus:s,progressChange:y,audioEnd:u,onTimeupdate:i,handleMute:S,onCanplay:r,slots:a}}}),$1={class:"fox-audio"},E1={key:0,class:"fox-audio__progress"},D1={class:"fox-audio__time"},I1={class:"fox-audio__bar"},q1={class:"fox-audio__time"},x1={key:1,class:"fox-audio__icon"},P1=["controls","src","preload","autoplay","loop","muted"];function M1(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-range"),c=(0,t.resolveComponent)("Service");return(0,t.openBlock)(),(0,t.createElementBlock)("div",$1,[e.type=="progress"?((0,t.openBlock)(),(0,t.createElementBlock)("div",E1,[(0,t.createElementVNode)("div",D1,(0,t.toDisplayString)(e.currentDuration),1),(0,t.createElementVNode)("div",I1,[(0,t.createVNode)(i,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=s=>e.percent=s),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:(0,t.withCtx)(()=>[...n[6]||(n[6]=[(0,t.createElementVNode)("div",{class:"fox-audio__button--custom"},null,-1)])]),_:1},8,["modelValue","onChange"])]),(0,t.createElementVNode)("div",q1,(0,t.toDisplayString)(e.duration),1)])):(0,t.createCommentVNode)("",!0),e.type=="icon"?((0,t.openBlock)(),(0,t.createElementBlock)("div",x1,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:n[1]||(n[1]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[e.playing?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1}))],2)])):(0,t.createCommentVNode)("",!0),e.type=="none"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,onClick:n[2]||(n[2]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type!="none"?(0,t.renderSlot)(e.$slots,"default",{key:3}):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:n[3]||(n[3]=(...s)=>e.onTimeupdate&&e.onTimeupdate(...s)),onCanplay:n[4]||(n[4]=(...s)=>e.onCanplay&&e.onCanplay(...s)),onEnded:n[5]||(n[5]=(...s)=>e.audioEnd&&e.audioEnd(...s)),muted:e.hanMuted},null,40,P1)])}var Co=re(V1,[["render",M1]]),{componentName:P2,create:z1,scope:L1}=ee("audio-operate"),R1=z1({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=(0,pe.useFoxI18n)(L1),l=(0,t.reactive)((0,t.inject)("audioParent")),o=(0,t.ref)((0,t.useSlots)().default);return{...(0,t.toRefs)(e),...(0,t.toRefs)(l),customSlot:o,t:a}}}),O1={class:"fox-audio-operate"};function F1(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",O1,[e.type=="back"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...c)=>e.fastBack&&e.fastBack(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("back")),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="play"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="forward"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...c)=>e.forward&&e.forward(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("forward")),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="mute"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...c)=>e.handleMute&&e.handleMute(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("mute")),1)]),_:1},8,["type"])),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0)])}var No=re(R1,[["render",F1]]),{componentName:K1,create:U1}=ee("avatar"),H1=U1({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:a,bgColor:l,color:o}=(0,t.toRefs)(e),r=["large","normal","small"],i=(0,t.inject)("avatarGroup",null),c=(0,t.ref)(null),s=(0,t.reactive)({lightTheme:!1}),d=(0,t.reactive)({index:1,showMax:!1,maxIndex:0});(0,t.onMounted)(()=>{const w=i?.avatarGroupRef?.value?.children;w&&S(w)});const h=(0,t.computed)(()=>({[K1]:!0,[`fox-avatar-${n.value||i?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||i?.props?.shape||"normal"}`]:!0})),u=(0,t.computed)(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${l.value}`,color:`${o.value}`,marginLeft:d.index!=1&&(i?.props?.span?`${i?.props?.span}px`:""),zIndex:i?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),y=(0,t.computed)(()=>({backgroundColor:`${i?.props?.maxBgColor}`,color:`${i?.props?.maxColor}`})),S=w=>{d.maxIndex=w.length;for(let b=0;b<w.length;b++)w[b]&&w[b].classList&&w[b].classList[0]=="fox-avatar"&&w[b].setAttribute("data-index",b+1);d.index=c?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=i?.props?.maxCount&&(d.showMax=!0)};return{classes:h,styles:u,maxStyles:y,avatarGroup:i,visible:s,avatarRef:c,...(0,t.toRefs)(d)}}});function j1(e,n,a,l,o,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,style:(0,t.normalizeStyle)(e.showMax?e.maxStyles:e.styles),class:(0,t.normalizeClass)(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):(0,t.createCommentVNode)("",!0)],6)):(0,t.createCommentVNode)("",!0)}var an=re(H1,[["render",j1]]),{componentName:W1,create:Y1}=ee("avatar-group"),X1=Y1({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:a}){const{size:l}=(0,t.toRefs)(e),o=(0,t.ref)(null),r=(0,t.ref)(0),i=(0,t.computed)(()=>({[W1]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:o,index:r}),{classes:i,avatarGroupRef:o}}});function Q1(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"avatarGroupRef"},[(0,t.renderSlot)(e.$slots,"default")],2)}var Ao=re(X1,[["render",Q1]]),Et=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function G1(e,n,a){let l=0,o=e.length-1,r=null;for(;l<=o;){r=Math.floor((l+o)/2);const i=e[r],c=a(i,n);if(c===Et.eq)return r;c===Et.lt?l=r+1:c===Et.gt&&(o=r-1)}return r}var{componentName:Z1,create:_1}=ee("list"),Fi=document.documentElement.clientHeight||document.body.clientHeight||667,J1=_1({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Fi},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const a=(0,t.ref)(null),l=(0,t.ref)(null),o=(0,t.ref)(null),r=(0,t.reactive)({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),i=(0,t.computed)(()=>Math.min(e.containerHeight,Fi)),c=(0,t.computed)(()=>Math.ceil(i.value/e.height)),s=(0,t.computed)(()=>Math.min(r.originStartIndex+c.value+e.bufferSize,r.list.length)),d=(0,t.computed)(()=>({[Z1]:!0})),h=(0,t.computed)(()=>r.list.slice(r.start,s.value)),u=()=>{if(o.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},y=()=>{r.cachePositions=[];for(let f=0;f<r.list.length;++f)r.cachePositions[f]={index:f,height:e.height,top:f*e.height,bottom:(f+1)*(e.height+e.margin),dValue:0}},S=()=>{let f=o.value.childNodes;f=Array.from(f).filter(p=>p.nodeType===1);const v=f[0];f.forEach((p,g)=>{if(!p)return;const{height:C}=De(p),T=r.cachePositions[g+r.start].height-C;T&&(r.cachePositions[g+r.start].bottom-=T,r.cachePositions[g+r.start].height=C,r.cachePositions[g+r.start].dValue=T)});let m=0;v&&(m=r.start);const N=r.cachePositions.length;let A=r.cachePositions[m].dValue;r.cachePositions[m].dValue=0;for(let p=m+1;p<N;++p){const g=r.cachePositions[p];r.cachePositions[p].top=r.cachePositions[p-1].bottom,r.cachePositions[p].bottom=r.cachePositions[p].bottom-A,g.dValue!==0&&(A+=g.dValue,g.dValue=0)}r.phantomHeight=r.cachePositions[N-1].bottom},w=(f=0)=>{let v=G1(r.cachePositions,f,(m,N)=>{const A=m.bottom;return A===N?Et.eq:A<N?Et.lt:Et.gt});return r.cachePositions[v].bottom<f&&(v+=1),v},b=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,a.value.scrollTop=0,y(),r.phantomHeight=e.height*r.list.length},k=()=>{const f=a.value?.scrollTop,{originStartIndex:v}=r,m=w(f);m!==v&&(r.originStartIndex=m,r.start=Math.max(r.originStartIndex-e.bufferSize,0),s.value>=r.list.length-1&&n("scroll-bottom")),n(f>r.scrollTop?"scroll-up":"scroll-down",f),r.scrollTop=f};return(0,t.watch)(()=>e.listData,f=>{if(r.list=f.slice(),r.list.length===f.length)y(),S();else{b();return}}),(0,t.watch)(()=>r.start,()=>{o.value&&r.list.length>0&&S()}),{...(0,t.toRefs)(r),list:a,phantom:l,actualContent:o,getTransform:u,visibleData:h,classes:d,getContainerHeight:i,handleScrollEvent:k}}});function ek(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...i)=>e.handleScrollEvent&&e.handleScrollEvent(...i)),ref:"list"},[(0,t.createElementVNode)("div",{class:"fox-list-phantom",style:(0,t.normalizeStyle)({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),(0,t.createElementVNode)("div",{class:"fox-list-container",style:(0,t.normalizeStyle)({transform:e.getTransform()}),ref:"actualContent"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.visibleData,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-list-item",key:i},[(0,t.renderSlot)(e.$slots,"default",{item:i,index:c+e.start})]))),128))],4)],38)}var Bo=re(J1,[["render",ek]]),{componentName:tk,create:nk}=ee("circleprogress"),lk=nk({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const a=!!(0,t.useSlots)().default,l=Math.random().toString(36).slice(-8),o=(0,t.computed)(()=>({[tk]:!0})),r=(0,t.computed)(()=>{const c=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${c} 0 90 a 45 45 0 1, ${c} 0 -90`}),i=(0,t.computed)(()=>Ve(e.color)?`url(#${l})`:e.color);return{classes:o,hoverStyle:(0,t.computed)(()=>{let c=283,s=c*Number(e.progress)/100;return{stroke:Ve(e.color)?`url(#${l})`:e.color,strokeDasharray:`${s}px ${c}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:r,hoverColor:i,stop:(0,t.computed)(()=>{if(!Ve(e.color))return;let c=e.color;const s=Object.keys(c).sort((h,u)=>parseFloat(h)-parseFloat(u));let d=[];return s.map((h,u)=>{let y={key:"",value:""};y.key=h,y.value=c[h],d.push(y)}),d}),slotDefault:a,refRandomId:l}}}),ak={viewBox:"0 0 100 100"},ok=["id"],rk=["offset","stop-color"],ik=["d","stroke-width"],sk=["d","stroke","stroke-linecap","stroke-width"],ck={class:"fox-circleprogress-text"},uk={key:0};function dk(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:e.radius*2+"px",width:e.radius*2+"px"})},[((0,t.openBlock)(),(0,t.createElementBlock)("svg",ak,[(0,t.createElementVNode)("defs",null,[(0,t.createElementVNode)("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.stop,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("stop",{key:c,offset:i.key,"stop-color":i.value},null,8,rk))),128))],8,ok)]),(0,t.createElementVNode)("path",{class:"fox-circleprogress-path",style:(0,t.normalizeStyle)(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,ik),(0,t.createElementVNode)("path",{class:"fox-circleprogress-hover",style:(0,t.normalizeStyle)(e.hoverStyle),d:e.path,fill:"none",stroke:e.hoverColor,"stroke-linecap":e.strokeLinecap,"stroke-width":e.strokeWidth},null,12,sk)])),(0,t.createElementVNode)("div",ck,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",uk,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var To=re(lk,[["render",dk]]),{componentName:fk,create:mk}=ee("noticebar"),hk=mk({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,(0,t.h)(e.item)},Notice:oe.Notice,CircleClose:oe.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)(null),o=(0,t.ref)(null),r=(0,t.reactive)({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),i=(0,t.computed)(()=>({[fk]:!0})),c=(0,t.computed)(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),s=(0,t.computed)(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":c.value,[r.animationClass]:!0})),d=(0,t.computed)(()=>{let g={};return e.color&&(g.color=e.color),e.background&&(g.background=e.background),e.direction=="vertical"&&(g.height=`${e.height}px`),g}),h=(0,t.computed)(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),u=(0,t.computed)(()=>{let g={};if(e.complexAm)g={transform:`translateY(${r.distance}px)`};else if(r.animate){let C=~~(e.height/e.speed/4);g={transition:`all ${C==0?~~(e.height/e.speed):C}s`,"margin-top":`-${e.height}px`}}return g});(0,t.watch)(()=>e.text,g=>{y(g)}),(0,t.watch)(()=>e.list,g=>{r.scrollList=[...g]});const y=g=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!l.value||!o.value)return;const C=l.value.getBoundingClientRect().width,T=o.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?T>C:e.scrollable,r.isCanScroll?(r.wrapWidth=C,r.offsetWidth=T,r.duration=T/e.speed,r.animationClass="play"):r.animationClass=""},0)},S=g=>{n("click",g)},w=g=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",g)},b=g=>{r.firstRound=!1,n("across-end",g),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},k=()=>{f(),r.timer=setInterval(f,~~(e.height/e.speed/4*1e3)+e.standTime)},f=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},v=()=>{r.timer=setInterval(()=>{let g=100;for(let C=0;C<g;C++)m(C,!(C<g-1))},e.standTime+100*e.speed)},m=(g,C)=>{setTimeout(()=>{r.distance-=e.height/100,C&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},g*e.speed)},N=g=>{n("click",g)},A=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(a.default?p(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?v():k()},e.standTime)):y(e.text)}),(0,t.watch)(()=>a.default?a.default():[],g=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),p(g))});const p=g=>{g&&g.length>0&&(r.scrollList=g[0].children)};return(0,t.onActivated)(()=>{r.keepAlive&&(r.keepAlive=!1)}),(0,t.onDeactivated)(()=>{r.keepAlive=!0,clearInterval(r.timer)}),(0,t.onUnmounted)(()=>{clearInterval(r.timer)}),{...(0,t.toRefs)(e),...(0,t.toRefs)(r),isEllipsis:c,classes:i,barStyle:d,contentStyle:h,horseLampStyle:u,wrap:l,content:o,handleClick:S,onClickIcon:w,onAnimationEnd:b,go:N,handleClickIcon:A,slots:a,toPxString:me,wrapContentClass:s}}}),pk={key:0,class:"fox-noticebar__page-lefticon"},gk={ref:"wrap",class:"fox-noticebar__page-wrap"},yk={class:"showNotica"},bk=["onClick"];function vk(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Notice"),c=(0,t.resolveComponent)("CircleClose"),s=(0,t.resolveComponent)("ScrollItem");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.direction=="across"?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:(0,t.normalizeStyle)(e.barStyle),onClick:n[3]||(n[3]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.showLeftIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",pk,[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,size:"16px"})):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",gk,[(0,t.createElementVNode)("view",{ref:"content",class:(0,t.normalizeClass)(e.wrapContentClass),style:(0,t.normalizeStyle)(e.contentStyle),onAnimationend:n[0]||(n[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":n[1]||(n[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=(0,t.withModifiers)((...d)=>e.onClickIcon&&e.onClickIcon(...d),["stop"]))},[e.$slots["right-icon"]?(0,t.renderSlot)(e.$slots,"right-icon",{key:0}):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1}))])):(0,t.createCommentVNode)("",!0)],6)),[[t.vShow,e.showNoticebar]]):(0,t.createCommentVNode)("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__vertical",style:(0,t.normalizeStyle)(e.barStyle)},[e.slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[(0,t.createElementVNode)("div",yk,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,h)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:h,style:(0,t.normalizeStyle)({height:e.height+"px","line-height":e.height+"px"}),item:d},null,8,["style","item"]))),128))])],4)):((0,t.openBlock)(),(0,t.createElementBlock)("ul",{key:1,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,h)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{class:"fox-noticebar__vertical-item",key:h,style:(0,t.normalizeStyle)({height:e.toPxString(e.height),lineHeight:e.toPxString(e.height)}),onClick:u=>e.go(d)},[(0,t.renderSlot)(e.$slots,"item",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(d),1)])],12,bk))),128))],4)),(0,t.createElementVNode)("view",{class:"go",onClick:n[4]||(n[4]=d=>!e.slots.rightIcon&&e.handleClickIcon())},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[e.closeMode?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,color:e.color,size:"11px"},null,8,["color"])):(0,t.createCommentVNode)("",!0)])])],4)):(0,t.createCommentVNode)("",!0)],2)}var Vo=re(hk,[["render",vk]]),Sk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb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AAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:M2,create:Ck,scope:Nk}=ee("empty"),Ak={empty:Sk,error:kk,network:wk},Bk=Ck({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,pe.useFoxI18n)(Nk),a=n(e,["description"]),{image:l,imageSize:o}=(0,t.toRefs)(e),r=(0,t.computed)(()=>o.value?typeof o.value=="number"?`width:${o.value}px;height:${o.value}px`:`width:${o.value};height:${o.value}`:""),i=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:Ak[l.value];return{...a,imageUrl:i,imgStyle:r}}}),Tk={class:"fox-empty"},Vk=["src"],$k={key:1,class:"fox-empty-description"};function Ek(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Tk,[(0,t.createElementVNode)("view",{class:"fox-empty-image",style:(0,t.normalizeStyle)(e.imgStyle)},[e.$slots.image?(0,t.renderSlot)(e.$slots,"image",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.imageUrl?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,class:"img",src:e.imageUrl},null,8,Vk)):(0,t.createCommentVNode)("",!0)],64))],4),e.$slots.description?(0,t.renderSlot)(e.$slots,"description",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",$k,(0,t.toDisplayString)(e.description),1)),e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:2}):(0,t.createCommentVNode)("",!0)])}var $o=re(Bk,[["render",Ek]]),{create:Dk,scope:Ik}=ee("video"),qk=Dk({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:a}=(0,pe.useFoxI18n)(Ik),l=(0,t.reactive)({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),o=(0,t.ref)(null),r=(0,t.computed)(()=>e.options.disabled);(0,t.watch)(()=>e.source,p=>{p.src&&(0,t.nextTick)(()=>{l.videoElm.load()})},{immediate:!0,deep:!0}),(0,t.watch)(()=>e.options,p=>{l.state.isMuted=p?p.muted:!1},{immediate:!0});const i=()=>{l.videoElm=o.value,e.options.autoplay&&setTimeout(()=>{l.videoElm.play()},200),e.options.touchPlay&&(l.showTouchMask=!0),e.options.playsinline&&(l.videoElm.setAttribute("playsinline",e.options.playsinline),l.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),l.videoElm.setAttribute("x5-video-player-type","h5-page"),l.videoElm.setAttribute("x5-video-player-fullscreen",!1)),w(),l.showToolbox?c():(l.videoElm.addEventListener("play",()=>{l.state.playing=!0,n("play",l.videoElm)}),l.videoElm.addEventListener("pause",()=>{l.state.playing=!1,n("pause",l.videoElm)}),l.videoElm.addEventListener("ended",y),l.videoElm.addEventListener("timeupdate",Sn(u,1e3)))},c=()=>{const p=o.value,g=o.value.getElementsByClassName("fox-video-controller__progress-value")[0];l.player.$player=p,l.progressBar.progressElm=g,l.progressBar.pos=g.getBoundingClientRect(),l.videoSet.progress.width=Math.round(g.getBoundingClientRect().width)},s=()=>{if(e.options.autoplay&&e.options.disabled)return l.state.playing=!0,!1;if(l.state.playing=!l.state.playing,l.videoElm)if(l.state.playing)try{setTimeout(()=>{l.videoElm.play()},200),l.videoElm.addEventListener("progress",()=>{h()}),l.videoElm.addEventListener("timeupdate",Sn(u,1e3)),l.videoElm.addEventListener("ended",y),n("play",l.videoElm)}catch{S()}else l.videoElm.pause(),n("pause",l.videoElm)},d=p=>{let g=[];const C=Math.floor(p/3600);C>0&&(C<10?g.push(`0${C}`):g.push(`${C}`));const T=Math.floor(p%3600/60);T<10?g.push(`0${T}`):g.push(`${T}`);const $=Math.round(p%3600%60);return $<10?g.push(`0${$}`):g.push(`${$}`),g.join(":")},h=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},u=()=>{const p=l.videoElm.currentTime/l.videoElm.duration;l.videoSet.progress.current=Math.round(l.videoSet.progress.width*p),l.videoSet.totalTime=d(l.videoElm.duration),l.videoSet.displayTime=d(l.videoElm.currentTime),n("time",l.videoSet.displayTime,l.videoSet.totalTime)},y=()=>{l.state.playing=!1,l.state.isEnd=!0,l.videoSet.displayTime="00:00",l.videoSet.progress.current=0,l.videoElm.currentTime=0,n("playend",l.videoElm)},S=()=>{l.state.isError=!0},w=()=>{l.state.vol=e.options.volume},b=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},k=()=>{},f=p=>{let g=p.targetTouches[0].pageX-l.progressBar.pos.left;g<=0&&(g=0),g>=l.videoSet.progress.width&&(g=l.videoSet.progress.width),l.videoSet.progress.current=g;let C=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&m(C,l.videoElm.duration)},v=p=>{let g=p.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=g;let C=g/l.videoSet.progress.width;l.videoElm.duration&&m(C,l.videoElm.duration)},m=(p,g)=>{l.videoElm.currentTime=Math.floor(p*g)},N=()=>{l.state.isError=!1,i()},A=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{i()}),{root:o,...(0,t.toRefs)(e),...(0,t.toRefs)(l),handleError:S,isDisabled:r,play:s,handleMuted:b,touchSlidSrart:k,touchSlidMove:f,touchSlidEnd:v,retry:N,fullScreen:A,t:a}}}),xk={class:"fox-video",ref:"videocon"},Pk=["muted","autoplay","loop","poster","controls","preload"],Mk=["src","type"],zk={class:"fox-video-controller__now"},Lk={class:"fox-video-controller__progress"},Rk={class:"fox-video-controller__progress-value",ref:"progressBar"},Ok={class:"fox-video-controller__played",ref:"playedBar"},Fk={class:"fox-video-controller__total"},Kk={class:"fox-video-error"},Uk={class:"fox-video-error-tip"};function Hk(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",xk,[(0,t.createElementVNode)("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:n[0]||(n[0]=(...i)=>e.handleError&&e.handleError(...i))},[(0,t.createElementVNode)("source",{src:e.source.src,type:e.source.type},null,8,Mk)],40,Pk),e.showToolbox&&!e.isDisabled?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...i)=>e.play&&e.play(...i))},null,512)):(0,t.createCommentVNode)("",!0),e.showToolbox&&!e.isDisabled?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:n[2]||(n[2]=(...i)=>e.play&&e.play(...i))},null,512)),[[t.vShow,!e.state.playing]]):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[(0,t.createElementVNode)("div",{class:"fox-video-controller__playbtn",onClick:n[3]||(n[3]=(...i)=>e.play&&e.play(...i))}),(0,t.createElementVNode)("div",zk,(0,t.toDisplayString)(e.videoSet.displayTime),1),(0,t.createElementVNode)("div",Lk,[(0,t.createElementVNode)("div",Rk,[(0,t.createElementVNode)("div",{class:"buffered",style:(0,t.normalizeStyle)({width:`${e.videoSet.loaded}%`})},null,4),(0,t.createElementVNode)("div",{class:"fox-video-controller__ball",style:(0,t.normalizeStyle)({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:n[4]||(n[4]=(0,t.withModifiers)(i=>e.touchSlidMove(i),["stop","prevent"])),onTouchstart:n[5]||(n[5]=(0,t.withModifiers)(i=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)(i=>e.touchSlidEnd(i),["stop"]))},[...n[10]||(n[10]=[(0,t.createElementVNode)("div",{class:"fox-video-controller__ball-move"},null,-1)])],36),(0,t.createElementVNode)("div",Ok,null,512)],512)]),(0,t.createElementVNode)("div",Fk,(0,t.toDisplayString)(e.videoSet.totalTime),1),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...i)=>e.handleMuted&&e.handleMuted(...i))},null,2),(0,t.createElementVNode)("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...i)=>e.fullScreen&&e.fullScreen(...i))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),(0,t.withDirectives)((0,t.createElementVNode)("div",Kk,[(0,t.createElementVNode)("p",Uk,(0,t.toDisplayString)(e.t("errorTip")),1),(0,t.createElementVNode)("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...i)=>e.retry&&e.retry(...i))},(0,t.toDisplayString)(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var Dt=re(qk,[["render",Hk]]),{create:jk,componentName:Wk}=ee("steps"),Yk=jk({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:a}){const l=(0,t.reactive)({children:[]}),o=(0,t.computed)(()=>{const c=Wk;return{[c]:!0,[`${c}-${e.direction}`]:!0,[`${c}-dot`]:!!e.progressDot}}),r=c=>{c&&l.children.push(c)},i=c=>{n("click-step",c)};return(0,t.provide)("parent",{relation:r,state:l,props:e,onEmit:i}),()=>(0,t.h)("view",{class:o.value},a.default?.())}}),Eo=Yk,{create:Xk,componentName:Qk}=ee("step"),Gk=Xk({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=(0,t.getCurrentInstance)(),n=(0,t.inject)("parent");n.relation(e);const a=(0,t.reactive)({dot:n.props.progressDot}),l=(0,t.computed)(()=>n.state.children.indexOf(e)+1),o=()=>{const s=l.value;return s<+n.props.current?"finish":s===+n.props.current?"process":"wait"},r=(0,t.computed)(()=>o()),i=(0,t.computed)(()=>{const s=Qk;return{[s]:!0,[`${s}-${r.value}`]:!0}}),c=()=>{n.onEmit(l.value)};return{...(0,t.toRefs)(a),index:l,classes:i,handleClickStep:c}}}),Zk={class:"fox-step-head"},_k={class:"fox-step-icon-inner"},Jk={key:1,class:"fox-step-inner"},ew={class:"fox-step-main"},tw={class:"fox-step-title"},nw={key:0},lw={key:0,class:"fox-step-content"},aw=["innerHTML"];function ow(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...i)=>e.handleClickStep&&e.handleClickStep(...i))},[(0,t.createElementVNode)("view",Zk,[n[1]||(n[1]=(0,t.createElementVNode)("view",{class:"fox-step-line"},null,-1)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-step-icon",[e.dot?"":"is-icon"]])},[(0,t.createElementVNode)("view",_k,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.dot?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[],64)):((0,t.openBlock)(),(0,t.createElementBlock)("view",Jk,(0,t.toDisplayString)(e.index),1))])])],2)]),(0,t.createElementVNode)("view",ew,[(0,t.createElementVNode)("view",tw,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",nw,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",lw,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,aw)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var Do=re(Gk,[["render",ow]]),{create:rw,componentName:Io}=ee("swiper"),iw=rw({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)(),o=(0,t.reactive)({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=lt(),i=(0,t.computed)(()=>({[Io]:!0})),c=(0,t.computed)(()=>e.direction==="vertical"),s=(0,t.computed)(()=>{const P=Io;return{[`${P}-inner`]:!0,[`${P}-vertical`]:c.value}}),d=(0,t.computed)(()=>{const P=Io;return{[`${P}-pagination`]:!0,[`${P}-pagination-vertical`]:c.value}}),h=(0,t.computed)(()=>c.value?r.deltaY.value:r.deltaX.value),u=(0,t.computed)(()=>r.direction.value===e.direction),y=(0,t.computed)(()=>o.children.length),S=(0,t.computed)(()=>o[c.value?"height":"width"]),w=(0,t.computed)(()=>y.value*S.value),b=(0,t.computed)(()=>o.rect?(c.value?o.rect.height:o.rect.width)-S.value*y.value:0),k=(0,t.computed)(()=>(o.active+y.value)%y.value),f=()=>{let P=0;P=o.offset,o.style={transitionDuration:`${o.moving?0:e.duration}ms`,transform:`translate${c.value?"Y":"X"}(${P}px)`,[c.value?"height":"width"]:`${S.value*y.value}px`,[c.value?"width":"height"]:`${c.value?o.width:o.height}px`}},v=P=>{let K=[];const j=o.childrenVNode.length;let x=a?.default?.();if(x=x.filter(_=>_.children&&Array.isArray(_.children)),x.forEach(_=>{K=K.concat(_.children)}),!j)o.childrenVNode=K.slice(),P.proxy&&o.children.push(P.proxy);else if(j>K.length)o.children=o.children.filter(_=>P.proxy!==_);else if(j<K.length){for(let _=0;_<j;_++)if(K[_].key!==o.childrenVNode[_].key){P.proxy&&o.children.splice(_,0,P.proxy),P.vnode&&o.childrenVNode.splice(_,0,P.vnode);break}j!==K.length&&(P.proxy&&o.children.push(P.proxy),P.vnode&&o.childrenVNode.push(P.vnode))}else o.childrenVNode=K.slice(),P.proxy&&o.children.push(P.proxy)},m=(P,K=0)=>{let j=P*S.value;e.loop||(j=Math.min(j,-b.value));let x=K-j;return e.loop||(x=Ye(x,b.value,0)),x},N=P=>{const{active:K}=o;return P?e.loop?Ye(K+P,-1,y.value):Ye(K+P,0,y.value-1):K},A=({pace:P=0,offset:K=0,isEmit:j=!1})=>{if(y.value<=1)return;const{active:x}=o,_=N(P),ne=m(_,K);if(e.loop){if(o.children[0]&&ne!==b.value){const W=ne<b.value;o.children[0].setOffset(W?w.value:0)}if(o.children[y.value-1]&&ne!==0){const W=ne>0;o.children[y.value-1].setOffset(W?-w.value:0)}}o.active=_,o.offset=ne,j&&x!==o.active&&n("change",k.value),f()},p=()=>{o.moving=!0,o.active<=-1&&A({pace:y.value}),o.active>=y.value&&A({pace:-y.value})},g=()=>{o.autoplayTimer&&clearTimeout(o.autoplayTimer)},C=P=>{p(),r.reset(),Ge(()=>{Ge(()=>{o.moving=!1,A({pace:P,isEmit:!0})})})},T=()=>{C(-1)},$=()=>{C(1)},V=P=>{p(),r.reset(),Ge(()=>{o.moving=!1;let K;e.loop&&y.value===P?K=o.active===0?0:P:K=P%y.value,A({pace:K-o.active,isEmit:!0})})},H=()=>{const P=de(e.autoPlay);P<=0||y.value<=1||(g(),o.autoplayTimer=setTimeout(()=>{$(),H()},P))},Z=(P=+e.initPage)=>{g(),o.rect=l.value.getBoundingClientRect(),P=Math.min(y.value-1,P),o.width=e.width?+e.width:o.rect.width,o.height=e.height?+e.height:o.rect.height,o.active=P,o.offset=m(o.active),o.moving=!0,f(),H()},D=P=>{e.isPreventDefault&&P.preventDefault(),e.isStopPropagation&&P.stopPropagation(),e.touchable&&(r.start(P),o.touchTime=Date.now(),g(),p())},M=P=>{e.touchable&&o.moving&&(r.move(P),u.value&&A({offset:h.value}))},z=P=>{if(!e.touchable||!o.moving)return;const K=h.value/(Date.now()-o.touchTime);if((Math.abs(K)>.3||Math.abs(h.value)>+(S.value/2).toFixed(2))&&u.value){let j=0;const x=c.value?r.offsetY.value:r.offsetX.value;e.loop?j=x>0?h.value>0?-1:1:0:j=-Math[h.value>0?"ceil":"floor"](h.value/S.value),A({pace:j,isEmit:!0})}else h.value&&A({pace:0});o.moving=!1,f(),H()};return(0,t.provide)("parent",{props:e,size:S,relation:v}),be({prev:T,next:$,to:V}),(0,t.onDeactivated)(()=>{g()}),(0,t.onBeforeUnmount)(()=>{g()}),(0,t.watch)(()=>e.initPage,P=>{(0,t.nextTick)(()=>{Z(Number(P))})}),(0,t.watch)(()=>o.children.length,()=>{(0,t.nextTick)(()=>{Z()})}),(0,t.watch)(()=>e.autoPlay,P=>{de(P)>0?H():g()}),{state:o,classes:i,classesInner:s,classesPagination:d,container:l,activePagination:k,onTouchStart:D,onTouchMove:M,onTouchEnd:z}}});function sw(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{ref:"container",class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classesInner),style:(0,t.normalizeStyle)(e.state.style)},[(0,t.renderSlot)(e.$slots,"default")],6),(0,t.renderSlot)(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classesPagination)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.state.children.length,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("i",{style:(0,t.normalizeStyle)({backgroundColor:e.activePagination===c?e.paginationColor:"#ddd"}),class:(0,t.normalizeClass)({active:e.activePagination===c}),key:c},null,6))),128))],2)):(0,t.createCommentVNode)("",!0)],34)}var It=re(iw,[["render",sw]]),{create:cw,componentName:uw}=ee("swiper-item"),dw=cw({setup(e,{slots:n}){const a=(0,t.inject)("parent");a.relation((0,t.getCurrentInstance)());const l=(0,t.reactive)({offset:0}),o=(0,t.computed)(()=>({[uw]:!0})),r=(0,t.computed)(()=>{const c={},s=a?.props.direction;return a?.size.value&&(c[s==="horizontal"?"width":"height"]=`${a?.size.value}px`),l.offset&&(c.transform=`translate${s==="horizontal"?"X":"Y"}(${l.offset}px)`),c}),i=c=>{l.offset=c};return(0,t.onUnmounted)(()=>{a.relation((0,t.getCurrentInstance)(),"unmount")}),be({setOffset:i}),{style:r,classes:o}}});function fw(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var qt=re(dw,[["render",fw]]),Ki={show:{type:Boolean,default:!1},initNo:{type:Number,default:0},showIndex:{type:Boolean,default:!0},minZoom:{type:Number,default:1/3},maxZoom:{type:Number,default:3}},{create:mw}=ee("image-preview-item"),hw=mw({props:{...Ki,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},contentClose:{type:Boolean,default:!0}},emits:["close","scale"],components:{[Dt.name]:Dt,[qt.name]:qt},setup(e,{emit:n}){const a=(0,t.reactive)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),l=lt(),o=(0,t.computed)(()=>{const{rootWidth:T,rootHeight:$}=e,V=$/T;return a.imageRatio>V}),r=(0,t.computed)(()=>{const T=e.image;if(T&&T.src){const{scale:$,moveX:V,moveY:H,moving:Z,zooming:D}=a,M={transitionDuration:D||Z?"0s":".3s"};return $!==1&&(M.transform=`scale(${$}, ${$}) translate(${V/$}px, ${H/$}px)`),M}return{}}),i=(0,t.computed)(()=>{if(a.imageRatio){const{rootWidth:T,rootHeight:$}=e,V=o.value?$/a.imageRatio:T;return Math.max(0,(a.scale*V-T)/2)}return 0}),c=(0,t.computed)(()=>{if(a.imageRatio){const{rootWidth:T,rootHeight:$}=e,V=o.value?$:T*a.imageRatio;return Math.max(0,(a.scale*V-$)/2)}return 0}),s=T=>{const{naturalWidth:$,naturalHeight:V}=T.target;a.imageRatio=V/$},d=()=>{h(1),a.moveX=0,a.moveY=0},h=T=>{T=Ye(T,+e.minZoom,+e.maxZoom+1),T!==a.scale&&(a.scale=T,n("scale",{scale:T,index:e.initNo}))},u=()=>{h(a.scale>1?1:2),a.moveX=0,a.moveY=0},y=T=>Math.sqrt((T[0].clientX-T[1].clientX)**2+(T[0].clientY-T[1].clientY)**2);let S,w,b,k,f,v,m;const N=T=>{const{touches:$}=T,{offsetX:V}=l;l.start(T),m=$.length,S=a.moveX,w=a.moveY,v=Date.now(),a.moving=m===1&&a.scale!==1,a.zooming=m===2&&!V.value,a.zooming&&(b=a.scale,k=y(T.touches))},A=T=>{const{touches:$}=T;if(l.move(T),(a.moving||a.zooming)&&Dl(T,!0),a.moving){const{deltaX:V,deltaY:H}=l,Z=V.value+S,D=H.value+w;a.moveX=Ye(Z,-i.value,i.value),a.moveY=Ye(D,-c.value,c.value)}if(a.zooming&&$.length===2){const V=y($);h(b*V/k)}},p=()=>{if(m==1&&e.video&&e.video.source||m>1)return;const{offsetX:T,offsetY:$}=l,V=Date.now()-v,H=250,Z=5;T.value<Z&&$.value<Z&&V<H&&(f?(clearTimeout(f),f=null,u()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},H))},g=T=>{let $=!1;(a.moving||a.zooming)&&($=!0,a.moving&&S===a.moveX&&w===a.moveY&&($=!1),T.touches.length||(a.zooming&&(a.moveX=Ye(a.moveX,-i.value,i.value),a.moveY=Ye(a.moveY,-c.value,c.value),a.zooming=!1),a.moving=!1,S=0,w=0,b=1,a.scale<1&&d(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),Dl(T,$),p(),l.reset()},C=()=>{n("close")};return(0,t.watch)(()=>e.initNo,d),(0,t.watch)(()=>e.show,T=>{T||d()}),{...(0,t.toRefs)(a),onTouchStart:N,onTouchMove:A,onTouchEnd:g,getDistance:y,imageStyle:r,imageLoad:s,closeSwiper:C}}}),pw=["src"];function gw(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-video"),c=(0,t.resolveComponent)("fox-swiper-item");return(0,t.openBlock)(),(0,t.createBlock)(c,{onClick:e.closeSwiper},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{style:(0,t.normalizeStyle)(e.imageStyle),class:"fox-image-preview-box",onTouchstart:n[1]||(n[1]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[2]||(n[2]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[4]||(n[4]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[e.image&&e.image.src?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:n[0]||(n[0]=(...s)=>e.imageLoad&&e.imageLoad(...s))},null,40,pw)):(0,t.createCommentVNode)("",!0),e.video&&e.video.source?((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):(0,t.createCommentVNode)("",!0)],36)]),_:1},8,["onClick"])}var yw=re(hw,[["render",gw]]),{create:bw}=ee("image-preview"),vw=bw({props:{...Ki,images:{type:Array,default:()=>[]},videos:{type:Array,default:()=>[]},contentClose:{type:Boolean,default:!0},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},autoplay:{type:[Number,String],default:0},teleport:{type:[String,Element],default:"body"},teleportDisable:{ype:Boolean,default:!1},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},beforeClose:Function,isLoop:{type:Boolean,default:!0}},emits:["close","change"],components:{ImagePreviewItem:yw,CircleClose:oe.CircleClose,[Se.name]:Se,[It.name]:It},setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,t.reactive)({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),o=(0,t.computed)(()=>{const h="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${h}-right`:`${h}-left`}`}),r=(0,t.computed)(()=>dn(e.videos)?[].concat(e.videos).concat(e.images):e.images),i=h=>{h!==l.active&&(l.active=h,n("change",l.active))},c=()=>{zi(e.beforeClose,{args:[l.active],done:()=>s()})},s=()=>{l.showPop=!1,n("close")},d=()=>{if(a.value){const h=De(a.value);l.rootHeight=h.height,l.rootWidth=h.width}};return(0,t.watch)(()=>e.show,h=>{l.showPop=h,h&&(i(e.initNo),d())}),(0,t.watch)(()=>e.initNo,h=>{h!=l.active&&i(h)}),(0,t.onMounted)(()=>{i(e.initNo)}),{swipeRef:a,...(0,t.toRefs)(l),onClose:c,mergeImages:r,setActive:i,iconClasses:o}}}),Sw={class:"fox-image-preview",ref:"swipeRef"},kw={key:0,class:"fox-image-preview-index"};function ww(e,n,a,l,o,r){const i=(0,t.resolveComponent)("image-preview-item"),c=(0,t.resolveComponent)("fox-swiper"),s=(0,t.resolveComponent)("CircleClose"),d=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=h=>e.showPop=h),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Sw,[e.showPop?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.mergeImages,(h,u)=>((0,t.openBlock)(),(0,t.createBlock)(i,{key:u,video:u<e.videos.length?h:{},image:u>=e.videos.length?h:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):(0,t.createCommentVNode)("",!0)],512),e.showIndex?((0,t.openBlock)(),(0,t.createElementBlock)("view",kw,(0,t.toDisplayString)(e.active+1)+" / "+(0,t.toDisplayString)(e.mergeImages.length),1)):(0,t.createCommentVNode)("",!0),e.closeable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.iconClasses),onClick:n[0]||(n[0]=(...h)=>e.onClose&&e.onClose(...h))},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(s,{color:"#ffffff"})])],2)):(0,t.createCommentVNode)("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}var Ui=re(vw,[["render",ww]]),Cw=class{show=!1;images=[];videos=[];contentClose=!0;initNo=0;paginationVisible=!1;paginationColor="";autoplay=0;isWrapTeleport=!1;showIndex=!0;closeable=!1;closeIconPosition="top-right";beforeClose;maxZoom=3;minZoom=1/3;isLoop=!0;teleport="body"},Nw=class{options=new Cw;constructor(e){const n=Object.assign(this.options,e),{unmount:a}=xs(n,{name:"image-preview",components:[Se,Dt,It,qt,st],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{a()})},(0,t.h)(Ui,n))}})})}},yl=e=>new Nw(e);yl.install=e=>{e.use(Ui)};function Aw(e){const n=(0,t.getCurrentInstance)();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}var{componentName:z2,create:Bw}=ee("countup"),Tw=Bw({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:n}){const a=(0,t.ref)(null),l=(0,t.ref)([]),o=C=>{C&&l.value.push(C)},r=(0,t.reactive)({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:i,scrolling:c,customBgImg:s,type:d}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,(C,T)=>{u(),k(0)}),(0,t.watch)(()=>e.machinePrizeLevel,(C,T)=>{r.prizeLevelTrun=C}),(0,t.watch)(()=>e.initNum,(C,T)=>{r.current=C,r.valFlag=!1,h()}),(0,t.watch)(()=>e.endNum,(C,T)=>{r.current=e.initNum,r.valFlag=!1,h()});const h=()=>{if(r.valFlag)return!1;i&&(c||s?d!="machine"&&k():(b(),setTimeout(()=>{r.valFlag=!0},300)))},u=()=>{clearInterval(Number(r.timer)),r.timer=null},y=(C,T,$)=>{const V=(C.toString().split(".")[1]||"").length,H=(T.toString().split(".")[1]||"").length,Z=Math.pow(10,Math.max(V,H));return $=="-"?Number((C*Z-T*Z).toFixed(0))/Z:Number((C*Z+T*Z).toFixed(0))/Z},S=C=>{let{num_total_len:T,pointNum:$,initDigit1:V,initDigit2:H,sortFlag:Z}=r,D=Z=="add"||Z=="equal"?String(H)[C-(T-$)]:10-Number(String(H)[C-(T-$)]),M=Z=="add"||Z=="equal"?String(V)[C]:10-Number(String(V)[C]),z=C>T-$-1?-D*100+"%":C<=String(V).length-1?-M*100+"%":0;return z=="-1000%"&&(z=0),z},w=C=>{let{num_total_len:T,pointNum:$,initDigit1:V,initDigit2:H,sortFlag:Z}=r,D=String(H)[C-(T-$)];return C>T-$-1?D||0:C<=String(V).length-1?String(V)[C]:0},b=()=>{let{endNum:C,initNum:T,speed:$,toFixed:V}=e,H=setInterval(()=>{if(T>C)if(r.current<=C||r.current<=$)r.current=Number(C.toFixed(V)),clearInterval(H),n("scroll-end"),r.valFlag=!1;else{let Z=parseFloat(String(r.current))-parseFloat(String($));r.current=Number(Z.toFixed(V))}else if(r.current>=C)r.current=Number(C.toFixed(V)),clearInterval(H),n("scroll-end"),r.valFlag=!1;else{let Z=parseFloat(String(r.current))+parseFloat(String($));r.current=Number(Z.toFixed(V))}},e.during)},k=C=>{let{initNum:T,endNum:$,toFixed:V,customBgImg:H}=e;H&&(T=e.customChangeNum);let Z,D,M,z;T!=0?(V!=0&&(T=Number(T.toFixed(V))),String(T).indexOf(".")>-1?(Z=String(T).split(".")[0].length,D=String(T).split(".")[1].length):(Z=String(T).length,D=0)):(Z=1,D=0),$!=0?(V!=0&&($=Number($.toFixed(V))),String($).indexOf(".")>-1?(M=String($).split(".")[0].length,z=String($).split(".")[1].length):(M=String($).length,z=0)):(M=1,z=0);let P=Z>=M?Z:M,K=D>=z?D:z;r.num_total_len=P+K,r.pointNum=K,T>$?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=y(T,$,"-"),r.numberVal=Number(String(T))):T<$?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=y($,T,"-"),r.numberVal=Number(String($))):r.sortFlag="equal";var j=1;for(let _=0;_<r.pointNum;_++)j*=10;var x=r.numberVal*j;if(r.relNum=x,V!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(x).length),String(T).indexOf(".")>-1){let _=String(T).split(".");r.initDigit1=Number(_[0]),r.initDigit2=Number(_[1])}else r.initDigit1=T,r.initDigit2=0;c&&!H?(0,t.nextTick)(()=>{if(r.sortFlag=="equal")return!1;let _=l.value[r.num_total_len-1];f(_)}):C!==0&&N()},f=C=>{u();var T=1;r.pointNum!=0&&(T=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{v(C),r.totalCount=y(r.totalCount,T,"-"),r.totalCount<=0&&(u(),n("scroll-end"),r.valFlag=!1)},e.during)},v=C=>{let T=C.getAttribute("turn-number"),$;if(r.sortFlag=="add"?$=parseInt(String(T))+1:$=parseInt(String(T))-1>=0?parseInt(String(T))-1:9,C.setAttribute("turn-number",String($)),(C.style.transition=="none 0s ease 0s"||$==1||!C.style.transition)&&(C.style.transition=`all linear ${e.during}ms`),$==10||r.sortFlag=="reduce"&&$==0){var V=null;C.style.top=`-${r.sortFlag=="add"?$*100:(10-$)*100}%`,C.setAttribute("turn-number","0"),V=setTimeout(()=>{V&&clearTimeout(V),C.style.transition="none",C.style.top="0",m(C,$)},.975*e.during)}else C.style.top=`-${r.sortFlag=="add"?$*100:(10-$)*100}%`;C.style.top=="-100%"&&r.sortFlag=="reduce"&&v(C.previousSibling)},m=(C,T)=>{setTimeout(()=>{T==10&&C.previousSibling&&v(C.previousSibling)},200)},N=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),(0,t.nextTick)(()=>{a.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},A=()=>{for(r.notPrize=[];r.notPrize.length<3;){var C=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(C)==-1&&r.notPrize.push(C)}};Aw({machineLuck:()=>{const C=e.machineTurnMore<0?0:e.machineTurnMore;let T=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&A();for(let $=0;$<e.machineNum;$++)setTimeout(()=>{let V=T*($+1+parseFloat(String(C)));r.prizeYPrev.length!=0&&(r.prizeY[$]=r.prizeYPrev[$]);let H=r.prizeYPrev[$]?r.prizeYPrev[$]:0,Z=V+H+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(T-H);r.prizeLevelTrun<0&&(Z+=e.numHeight*r.notPrize[$]),g($,Z,H)},500*$)}});const g=(C,T,$)=>{let V=setInterval(()=>{if($<=T)$+=10,r.prizeY[C]=parseFloat(String($));else if(clearInterval(V),V=null,r.finshMachine+=1,r.prizeY[C]=T,r.finshMachine==e.machineNum){let H=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(Z=>{let D=Z;for(;D>H;)D-=H;r.prizeYPrev.push(D)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return(0,t.onMounted)(()=>{r.current=e.initNum,(0,t.nextTick)(()=>{h()})}),(0,t.onUnmounted)(()=>{u(),r.timer=null}),{...(0,t.toRefs)(r),...(0,t.toRefs)((0,t.reactive)(e)),runNumberImg:a,setRef:o,topNumber:S,turnNumber:w}}}),Vw={class:"fox-countup"},$w=["turn-number"];function Ew(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Vw,[e.customBgImg!=""?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.type=="machine"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup__machine",style:(0,t.normalizeStyle)({height:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.machineNum,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-countup__machine-item",key:"mImg"+c,style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[c]+"px"})},null,4))),128))],4)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:(0,t.normalizeStyle)({height:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.num_total_len,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-countup__numberimg__item",key:"cImg"+c,style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(Number(c)>e.num_total_len-e.pointNum-1?Number(c)==e.num_total_len-e.pointNum?Number(c)*1.5:Number(c)*1.3:Number(c))+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[c]*e.numHeight+e.customSpacNum*+String(e.relNum)[c])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup-pointstyl",style:(0,t.normalizeStyle)({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):(0,t.createCommentVNode)("",!0)],4))],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.scrolling?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup__number",style:(0,t.normalizeStyle)({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.num_total_len,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{ref_for:!0,ref:s=>e.setRef(s),class:"fox-countup__number-item",key:i,style:(0,t.normalizeStyle)({top:e.topNumber(c),left:e.numWidth*(Number(c)>e.num_total_len-e.pointNum-1?Number(c)*1.1:Number(c))+"px"}),"turn-number":e.turnNumber(c)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.to0_10,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-countup__number-item__span",key:"dote"+d,style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},(0,t.toDisplayString)(s),5))),128))],12,$w))),128)),e.pointNum>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup-pointstyl",style:(0,t.normalizeStyle)({width:e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px",top:0,left:e.numWidth*(e.num_total_len-e.pointNum)+"px"})},".",4)):(0,t.createCommentVNode)("",!0)],4)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.current),1)],64))],64))])}var qo=re(Tw,[["render",Ew]]),Dw=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:Iw,create:qw}=ee("countdown"),xw=qw({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:a}){const l=(0,t.reactive)({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),o=(0,t.computed)(()=>({[Iw]:!0})),r=(0,t.computed)(()=>s(l.restTime)),i=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-Dw(e.startTime),l.counting||(l.counting=!0),c()},c=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const S=Date.now()-l.diffTime,w=Math.max(l.handleEndTime-S,0);l.restTime=w,w||(l.counting=!1,u(),n("on-end")),w>0&&c()}}))},s=(S,w)=>{const b=S;let k={d:0,h:0,m:0,s:0,ms:0};const f=1e3,v=60*f,m=60*v,N=24*m;return b>0&&(k.d=b>=f?Math.floor(b/N):0,k.h=Math.floor(b%N/m),k.m=Math.floor(b%m/v),k.s=Math.floor(b%v/f),k.ms=Math.floor(b%f)),w=="custom"?k:d({...k})},d=S=>{let{d:w,h:b,m:k,s:f,ms:v}=S,m=e.format;if(m.includes("DD")?m=m.replace("DD",rt(w)):b+=Number(w)*24,m.includes("HH")?m=m.replace("HH",rt(b)):k+=Number(b)*60,m.includes("mm")?m=m.replace("mm",rt(k)):f+=Number(k)*60,m.includes("ss")?m=m.replace("ss",rt(f)):v+=Number(f)*1e3,m.includes("S")){const N=rt(v,3).toString();m.includes("SSS")?m=m.replace("SSS",N):m.includes("SS")?m=m.replace("SS",N.slice(0,2)):m.includes("S")&&(m=m.replace("SS",N.slice(0,1)))}return m},h=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),c(),n("on-restart",l.restTime))},u=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},y=()=>{e.autoStart||(u(),l.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?i():l.restTime=e.time}),(0,t.watch)(()=>l.restTime,S=>{let w=s(S,"custom");n("update:modelValue",w),n("input",w)}),(0,t.watch)(()=>e.paused,(S,w)=>{w?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),c()),n("on-restart",l.restTime)):l.counting&&u()}),(0,t.watch)(()=>e.endTime,S=>{i()}),(0,t.watch)(()=>e.startTime,S=>{i()}),{...(0,t.toRefs)(e),slots:a,classes:o,start:h,pause:u,renderTime:r,reset:y}}}),Pw=["innerHTML"];function Mw(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,Pw))],2)}var xo=re(xw,[["render",Mw]]),{create:zw}=ee("badge"),Lw=zw({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){return{state:(0,t.reactive)({}),stl:(0,t.computed)(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),content:(0,t.computed)(()=>{if(e.dot)return;const n=e.value,a=e.max;return typeof n=="number"&&typeof a=="number"&&a<n?`${a}+`:n})}}}),Rw={class:"fox-badge"},Ow=["textContent"];function Fw(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Rw,[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-badge__icon",style:(0,t.normalizeStyle)(e.stl)},[(0,t.renderSlot)(e.$slots,"icon")],4),[[t.vShow,!e.hidden&&!e.dot&&e.$slots.icon]]),(0,t.renderSlot)(e.$slots,"default"),(0,t.withDirectives)((0,t.createElementVNode)("view",{textContent:(0,t.toDisplayString)(e.content),class:(0,t.normalizeClass)(["fox-badge__content fox-badge__content--sup",{"fox-badge__content--dot":e.dot,"fox-badge__content--bubble":!e.dot&&e.bubble}]),style:(0,t.normalizeStyle)(e.stl)},null,14,Ow),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var Po=re(Lw,[["render",Fw]]),{componentName:Kw,create:Uw}=ee("tag"),Hw=Uw({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:oe.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:(0,t.computed)(()=>{const i=Kw;return{[i]:!0,[`${i}--${e.type}`]:!0,[`${i}--plain`]:e.plain,[`${i}--round`]:e.round,[`${i}--mark`]:e.mark,[`${i}--symbol`]:e.symbol,[`${i}--text`]:e.text,[`${i}--light`]:e.light}}),getStyle:()=>{const i={};return e.textColor?i.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(i.color=e.color),e.plain?(i.background="#fff",i["border-color"]=e.color):!e.text&&e.color&&(i.background=e.color),i},onClose:i=>{i.stopPropagation(),n("close",i)},onClick:i=>{n("click",i)}}}});function jw(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle()),onClick:n[0]||(n[0]=(...c)=>e.onClick&&e.onClick(...c))},[(0,t.renderSlot)(e.$slots,"default"),e.closeable?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],6)}var Mo=re(Hw,[["render",jw]]),{create:Ww}=ee("popover"),Yw=Ww({components:{FoxPopup:Se},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,t.ref)(),o=(0,t.ref)(e.visible);let r=(0,t.ref)(),i=(0,t.ref)();const c=(0,t.computed)(()=>{const v="fox-popover-arrow",m=e.location;return`${v} ${v}-${m.split("-")[0]} ${v}--${m}`}),s=(0,t.computed)(()=>{const v={},{bgColor:m,arrowOffset:N,location:A}=e,p=A.split("-")[0],g=A.split("-")[1],C=16;return m&&(v[`border${d(p)}Color`]=m),e.arrowOffset!=0&&(["bottom","top"].includes(p)&&(g||(v.left=`calc(50% + ${N}px)`),g=="start"&&(v.left=`${C+N}px`),g=="end"&&(v.right=`${C-N}px`)),["left","right"].includes(p)&&(g||(v.top=`calc(50% - ${N}px)`),g=="start"&&(v.top=`${C-N}px`),g=="end"&&(v.bottom=`${C+N}px`))),v}),d=v=>(v=v.toLowerCase(),v=v.replace(/\b\w+\b/g,m=>m.substring(0,1).toUpperCase()+m.substring(1)),v),h=(0,t.computed)(()=>{let v={};if(!r.value||!i.value)return{};const m=i.value.width,N=i.value.height,{width:A,height:p,left:g,top:C}=r.value,{location:T,offset:$}=e,V=T.split("-")[0],H=T.split("-")[1];let Z=0,D=0;return dn($)&&$.length==2&&(Z+=Number($[1]),D+=Number($[0])),A&&(["bottom","top"].includes(V)&&(v.top=`${C+(V=="bottom"?p+Z:-(N+Z))}px`,H||(v.left=`${-(m-A)/2+g+D}px`),H=="start"&&(v.left=`${g+D}px`),H=="end"&&(v.left=`${r.value.right+D}px`)),["left","right"].includes(V)&&(v.left=`${g+(V=="left"?-(m+Z):A+Z)}px`,H||(v.top=`${C-N/2+p/2-4+D}px`),H=="start"&&(v.top=`${C+D}px`),H=="end"&&(v.top=`${C+p+D}px`))),v}),u=(0,t.computed)(()=>{const v={};return e.bgColor&&(v.background=e.bgColor),v}),y=()=>{let v=De(a.value);e.targetId&&(v=De(document.querySelector(`#${e.targetId}`))),r.value=v,setTimeout(()=>{i.value={height:l.value?.clientHeight,width:l.value?.clientWidth}},0)};(0,t.onMounted)(()=>{setTimeout(()=>{y()},200)}),(0,t.watch)(()=>e.visible,v=>{o.value=v,v?(window.addEventListener("touchstart",f,!0),y()):window.removeEventListener("touchstart",f,!0)});const S=v=>{n("update",v),n("update:visible",v)},w=()=>{S(!e.visible),n("open")},b=()=>{n("update:visible",!1),n("close")},k=(v,m)=>{!v.disabled&&n("choose",v,m),e.closeOnClickAction&&b()},f=v=>{const m=a.value,N=l.value;let A=m&&!m.contains(v.target);if(e.targetId){const p=document.querySelector(`#${e.targetId}`);A=p&&!p.contains(v.target)}A&&N&&!N.contains(v.target)&&e.closeOnClickOutside&&b()};return{showPopup:o,openPopover:w,popoverArrow:c,closePopover:b,chooseItem:k,popoverRef:a,popoverContentRef:l,getRootPosition:h,customStyle:u,popoverArrowStyle:s,renderIcon:Vr}}}),Xw={ref:"popoverContentRef",class:"fox-popover-content-group"},Qw=["onClick"],Gw={class:"fox-popover-menu-item-name"};function Zw(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.targetId?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:n[0]||(n[0]=(...c)=>e.openPopover&&e.openPopover(...c))},[(0,t.renderSlot)(e.$slots,"reference")],512)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:(0,t.normalizeStyle)(e.getRootPosition)},[(0,t.createVNode)(i,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.showPopup=c),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:(0,t.normalizeStyle)(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Xw,[e.showArrow?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.popoverArrow),style:(0,t.normalizeStyle)(e.popoverArrowStyle)},null,6)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content"),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.list,(c,s)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:s,class:(0,t.normalizeClass)([c.className,c.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:(0,t.withModifiers)(d=>e.chooseItem(c,s),["stop"])},[c.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(c.icon)),{key:0,class:"fox-popover-item-img"})):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Gw,(0,t.toDisplayString)(c.name),1)],10,Qw))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}var on=re(Yw,[["render",Zw]]),_w=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:a,round:l,avatarSize:o}=(0,t.toRefs)(n),r=(0,t.computed)(()=>{const s="avatarClass";return{[s]:!0,[`${s}--${a.value}`]:a.value}});return{avatarShape:a,avatarClass:r,getBlockClass:s=>({[s]:!0,[`${s}--round`]:l.value}),getStyle:()=>o.value?{width:o.value,height:o.value}:{width:"50px",height:"50px"}}}}),{create:Jw}=ee("skeleton"),eC=Jw(_w({[an.name]:an})),tC={key:0},nC={key:1,class:"fox-skeleton"},lC={key:0,class:"fox-skeleton-animation"},aC={class:"fox-skeleton-content"};function oC(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",nC,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",lC)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",aC,[e.avatar?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:(0,t.normalizeClass)(e.avatarClass),shape:e.avatarShape,style:(0,t.normalizeStyle)(e.getStyle())},null,8,["class","shape","style"])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-skeleton-content__line",style:(0,t.normalizeStyle)({width:e.width})},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.getBlockClass("fox-skeleton-blockTitle")),style:(0,t.normalizeStyle)({height:e.height})},null,6)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.row),c=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:c,class:(0,t.normalizeClass)(e.getBlockClass("fox-skeleton-blockLine")),style:(0,t.normalizeStyle)({height:e.height})},null,6))),128))],4)])])):((0,t.openBlock)(),(0,t.createElementBlock)("view",tC,[(0,t.renderSlot)(e.$slots,"default")]))}var zo=re(eC,[["render",oC]]),{create:rC,componentName:iC}=ee("collapse"),sC=rC({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=(0,t.ref)(null),l=(0,t.ref)(e.modelValue||(e.accordion?"":[])),o=(0,t.computed)(()=>({[iC]:!0}));(0,t.watch)(()=>e.modelValue,s=>{l.value=s});const r=(s,d,h=!0)=>{l.value=s,n("update:modelValue",s),n("change",s,d,h)},i=s=>{e.accordion?l.value===s?r("",s,!1):r(s,s,!0):Array.isArray(l.value)?l.value.includes(s)?r(l.value.filter(d=>d!==s),s,!1):r(l.value.concat([s]),s,!0):console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},c=s=>e.accordion?l.value===s:Array.isArray(l.value)?l.value.includes(s):!1;return(0,t.provide)("collapseParent",{updateVal:i,isExpanded:c}),{collapseDom:a,classes:o}}});function cC(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"collapseDom"},[(0,t.renderSlot)(e.$slots,"default")],2)}var Lo=re(sC,[["render",cC]]),{create:uC,componentName:dC}=ee("collapse-item"),fC=uC({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:oe.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=(0,t.ref)(null),a=(0,t.ref)(null),l=(0,t.reactive)((0,t.inject)("collapseParent")),o=(0,t.computed)(()=>{const u=dC;return{[u]:!0,[u+"__border"]:e.border}}),r=(0,t.computed)(()=>l?l.isExpanded(e.name):!1),i=(0,t.ref)(r.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},s=()=>{r.value&&(i.value="auto")},d=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const u=a.value?.offsetHeight;i.value=u?`${u}px`:"auto"})})},h=()=>{const u=a.value?.offsetHeight;i.value=u?`${u}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return(0,t.watch)(r,u=>{u?d():h()}),{classes:o,renderIcon:Vr,wrapperRef:n,contentRef:a,open:d,toggle:c,wrapperHeight:i,expanded:r,onTransitionEnd:s}}}),mC={class:"fox-collapse-item__title-main"},hC={class:"fox-collapse-item__title-main-value"},pC=["innerHTML"],gC={key:2,class:"fox-collapse-item__title-label"},yC={key:0,class:"fox-collapse-item__title-sub"},bC=["innerHTML"],vC={key:0,class:"fox-collapse__item-extraWrapper"},SC={class:"fox-collapse__item-extraWrapper__extraRender"},kC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function wC(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:n[0]||(n[0]=(...i)=>e.toggle&&e.toggle(...i))},[(0,t.createElementVNode)("view",mC,[(0,t.createElementVNode)("view",hC,[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,innerHTML:e.title,class:"fox-collapse-item__title-mtitle"},null,8,pC)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",gC,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",yC,[(0,t.renderSlot)(e.$slots,"value")])):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,bC)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-collapse-item__title-icon",{"fox-collapse-item__title-icon--expanded":e.expanded}]),style:(0,t.normalizeStyle)({transform:"rotate("+(e.expanded?e.rotate:0)+"deg)"})},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.icon))))],6)],2),e.$slots.extra?((0,t.openBlock)(),(0,t.createElementBlock)("view",vC,[(0,t.createElementVNode)("div",SC,[(0,t.renderSlot)(e.$slots,"extra")])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:(0,t.normalizeStyle)({willChange:"height",height:e.wrapperHeight}),onTransitionend:n[1]||(n[1]=(...i)=>e.onTransitionEnd&&e.onTransitionEnd(...i))},[(0,t.createElementVNode)("view",kC,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var Ro=re(fC,[["render",wC]]),CC=(0,t.defineComponent)({setup(e){return()=>(0,t.h)("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}}),{componentName:NC,create:AC,scope:BC}=ee("table"),TC=AC({components:{RenderColumn:CC,DownArrow:oe.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:l}=(0,pe.useFoxI18n)(BC),o=(0,t.reactive)({curData:e.data}),r=(0,t.computed)(()=>({[NC]:!0})),i=S=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${S.align?S.align:""}`]:!0}),c=S=>S.stylehead?S.stylehead:"",s=S=>S.stylecolumn?S.stylecolumn:"",d=S=>e.columns.filter(w=>w.key===S)[0],h=S=>{const w=e.columns.filter(b=>b.key===S);return w[0].stylecolumn?w[0].stylecolumn:""},u=S=>{S.sorter&&(n("sorter",S),o.curData=typeof S.sorter=="function"?o.curData.sort(S.sorter):S.sorter==="default"?o.curData.sort():o.curData)},y=()=>e.columns.map(S=>[S.key,S.render]);return(0,t.watch)(()=>e.data,S=>{o.curData=S.slice()}),{...(0,t.toRefs)(o),classes:r,cellClasses:i,getColumnItem:d,getColumnItemStyle:h,handleSorterClick:u,sortDataItem:y,t:l,stylehead:c,stylecolumn:s}}}),VC={class:"fox-table__main__head"},$C={class:"fox-table__main__head__tr"},EC=["onClick"],DC={class:"fox-table__main__body"},IC={key:1},qC={key:0,class:"fox-table__nodata"},xC={key:0,class:"fox-table__nodata__text"},PC={key:1,class:"fox-table__summary"},MC=["innerHTML"];function zC(e,n,a,l,o,r){const i=(0,t.resolveComponent)("DownArrow"),c=(0,t.resolveComponent)("RenderColumn");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-table__main",{"fox-table__main--striped":e.striped}])},[(0,t.createElementVNode)("view",VC,[(0,t.createElementVNode)("view",$C,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,s=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__head__tr__th",e.cellClasses(s)]),key:s.key,onClick:d=>e.handleSorterClick(s),style:(0,t.normalizeStyle)(s.stylehead)},[(0,t.createTextVNode)((0,t.toDisplayString)(s.title)+" ",1),(0,t.renderSlot)(e.$slots,"icon"),!e.$slots.icon&&s.sorter?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,width:"12px",height:"12px"})):(0,t.createCommentVNode)("",!0)],14,EC))),128))])]),(0,t.createElementVNode)("view",DC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.curData,s=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-table__main__body__tr",key:s},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.sortDataItem(),([d,h])=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:(0,t.normalizeStyle)(e.getColumnItemStyle(d))},[typeof s[d]=="function"||typeof h=="function"?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,slots:[h,s[d]],record:s},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",IC,(0,t.toDisplayString)(s[d]),1))],6))),128))]))),128))])],2),e.curData.length?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",qC,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-table__nodata",{"fox-table__nodata--border":e.bordered}])},[(0,t.renderSlot)(e.$slots,"nodata"),e.$slots.nodata?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",xC,(0,t.toDisplayString)(e.t("noData")),1))],2)])),e.summary?((0,t.openBlock)(),(0,t.createElementBlock)("view",PC,[(0,t.createElementVNode)("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,MC)])):(0,t.createCommentVNode)("",!0)],2)}var Oo=re(TC,[["render",zC]]),{componentName:LC,create:RC}=ee("ellipsis"),OC=RC({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const a=(0,t.ref)(null);let l=null,o=0;const r=(0,t.ref)(),i=(0,t.reactive)({exceeded:!1,expanded:!1}),c=(0,t.computed)(()=>({[LC]:!0}));(0,t.watch)(()=>e.content,(b,k)=>{b!=k&&s()}),(0,t.onMounted)(()=>{s()});const s=()=>{if(!a.value)return;const b=window.getComputedStyle(a.value);l=document.createElement("div"),Array.prototype.slice.apply(b).forEach(f=>{l.style.setProperty(f,b.getPropertyValue(f))}),l.style.position="fixed",l.style.left="999999px",l.style.top="999999px",l.style.zIndex="-1000",l.style.height="auto",l.style.minHeight="auto",l.style.maxHeight="auto",l.style.textOverflow="clip",l.style.whiteSpace="normal",l.style.webkitLineClamp="unset",l.style.display="block";const k=y(b.lineHeight==="normal"?e.lineHeight:b.lineHeight);o=Math.floor(k*(Number(e.rows)+.5)+y(b.paddingTop)+y(b.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),d()},d=()=>{if(l.offsetHeight<=o)i.exceeded=!1,document.body.removeChild(l);else{i.exceeded=!0;const b=e.content.length,k=Math.floor((0+b)/2);r.value=e.direction==="middle"?u([0,k],[k,b]):h(0,b),document.body.removeChild(l)}},h=(b,k)=>{const f=i.expanded?e.collapseText:e.expandText,v=e.content.length;if(k-b<=1)return e.direction==="end"?{leading:e.content.slice(0,b)+e.symbol}:{tailing:e.symbol+e.content.slice(k,v)};const m=Math.round((b+k)/2);return e.direction==="end"?l.innerText=e.content.slice(0,m)+e.symbol+f:l.innerText=f+e.symbol+e.content.slice(m,v),l.offsetHeight<=o?e.direction==="end"?h(m,k):h(b,m):e.direction==="end"?h(b,m):h(m,k)},u=(b,k)=>{const f=i.expanded?e.collapseText:e.expandText,v=e.content.length;if(b[1]-b[0]<=1&&k[1]-k[0]<=1)return{leading:e.content.slice(0,b[0])+e.symbol,tailing:e.symbol+e.content.slice(k[1],v)};const m=Math.floor((b[0]+b[1])/2),N=Math.ceil((k[0]+k[1])/2);return l.innerText=e.content.slice(0,m)+e.symbol+f+e.symbol+e.content.slice(N,v),l.offsetHeight<=o?u([m,b[1]],[k[0],N]):u([b[0],m],[N,k[1]])},y=b=>{if(!b)return 0;const k=b.match(/^\d*(\.\d*)?/);return k?Number(k[0]):0},S=b=>{b==1?(i.expanded=!0,n("change","expand")):(i.expanded=!1,n("change","collapse"))},w=()=>{n("click")};return{...(0,t.toRefs)(i),root:a,ellipsis:r,classes:c,clickHandle:S,handleClick:w}}}),FC={key:0},KC={key:1},UC={key:2};function HC(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[2]||(n[2]=(...i)=>e.handleClick&&e.handleClick(...i)),ref:"root"},[e.exceeded?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",FC,(0,t.toDisplayString)(e.content),1)),e.exceeded&&!e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",KC,[(0,t.createTextVNode)((0,t.toDisplayString)(e.ellipsis&&e.ellipsis.leading),1),e.expandText?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-ellipsis__text",onClick:n[0]||(n[0]=(0,t.withModifiers)(i=>e.clickHandle(1),["stop"]))},(0,t.toDisplayString)(e.expandText),1)):(0,t.createCommentVNode)("",!0),(0,t.createTextVNode)((0,t.toDisplayString)(e.ellipsis&&e.ellipsis.tailing),1)])):(0,t.createCommentVNode)("",!0),e.exceeded&&e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",UC,[(0,t.createTextVNode)((0,t.toDisplayString)(e.content)+" ",1),e.expandText?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-ellipsis__text",onClick:n[1]||(n[1]=(0,t.withModifiers)(i=>e.clickHandle(2),["stop"]))},(0,t.toDisplayString)(e.collapseText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2)}var Fo=re(OC,[["render",HC]]),{componentName:jC,create:WC}=ee("animate"),YC=WC({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:a,loop:l,action:o}=(0,t.toRefs)(e),r=(0,t.reactive)({clicked:!1});let i=(0,t.computed)(()=>({"fox-animate__container":!0,[`${jC}-${a.value}`]:o.value==="initial"||r.clicked?a.value:!1,loop:l.value}));const c=s=>{r.clicked=!0,l.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",s)};return{...(0,t.toRefs)(r),classes:i,handleClick:c}}}),XC={class:"fox-animate"};function QC(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",XC,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i)),style:(0,t.normalizeStyle)({animationDuration:e.duration?`${e.duration}ms`:void 0})},[(0,t.renderSlot)(e.$slots,"default")],6)])}var Ko=re(YC,[["render",QC]]),{componentName:GC,create:ZC}=ee("watermark"),_C=ZC({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const a=(0,t.reactive)({base64Url:""}),{zIndex:l,gapX:o,gapY:r,width:i,height:c,rotate:s,image:d,imageWidth:h,imageHeight:u,content:y,fontStyle:S,fontWeight:w,fontColor:b,fontSize:k,fontFamily:f}=e,v=()=>{const N=document.createElement("canvas"),A=window.devicePixelRatio,p=N.getContext("2d"),g=`${(o+i)*A}px`,C=`${(r+c)*A}px`,T=i*A,$=c*A;if(N.setAttribute("width",g),N.setAttribute("height",C),p)if(d){p.translate(T/2,$/2),p.rotate(Math.PI/180*Number(s));const V=new Image;V.crossOrigin="anonymous",V.referrerPolicy="no-referrer",V.src=d,V.onload=()=>{p.drawImage(V,-h*A/2,-u*A/2,h*A,u*A),p.restore(),a.base64Url=N.toDataURL()}}else y&&(p.textBaseline="middle",p.textAlign="center",p.translate(T/2,$/2),p.rotate(Math.PI/180*Number(s)),p.font=`${S} normal ${w} ${Number(k)*A}px/${$}px ${f}`,p.fillStyle=b,p.fillText(y,0,0),p.restore(),a.base64Url=N.toDataURL());else throw new Error("当前环境不支持Canvas")};v(),(0,t.watch)(()=>[l,o,r,i,c,s,d,h,u,y,S,w,b,k,f],()=>{v()});const m=(0,t.computed)(()=>{const N=GC;return{[N]:!0,[`${N}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(a),classes:m}}});function JC(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}var Uo=re(_C,[["render",JC]]);function e2(e,n=2){return Object.is(parseFloat(e),NaN)?console.log(`传入的值:${e}不是一个数字`):(e=parseFloat(e),(Math.round((e+Number.EPSILON)*Math.pow(10,n))/Math.pow(10,n)).toFixed(n))}var{componentName:t2,create:n2}=ee("trend-arrow"),l2=n2({components:{TriangleUp:oe.TriangleUp,TriangleDown:oe.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=(0,t.reactive)({rateTrend:e.rate>0}),a=(0,t.computed)(()=>({[t2]:!0})),l=(0,t.computed)(()=>{const{rate:r,digits:i,showSign:c,showZero:s}=e;n.rateTrend=r>0;const d=Math.abs(r);return!s&&r===0?"--":`${c&&r!==0?n.rateTrend?"+":"-":""}${e2(Number(d),i)}%`}),o=(0,t.computed)(()=>{const{dropColor:r,riseColor:i,syncTextColor:c,textColor:s,rate:d}=e;return{color:d===0?s:c?n.rateTrend?i:r:s}});return{...(0,t.toRefs)(n),classes:a,calcRate:l,calcStyle:o}}});function a2(e,n,a,l,o,r){const i=(0,t.resolveComponent)("TriangleUp"),c=(0,t.resolveComponent)("TriangleDown");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.arrowLeft?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?(0,t.renderSlot)(e.$slots,"up-icon",{key:1},()=>[(0,t.createVNode)(i,{color:e.riseColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),Number(e.rate)!==0&&!e.rateTrend?(0,t.renderSlot)(e.$slots,"down-icon",{key:2},()=>[(0,t.createVNode)(c,{color:e.dropColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.arrowLeft?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)):(0,t.createCommentVNode)("",!0)],2)}var Ho=re(l2,[["render",a2]]),{create:o2}=ee("tour"),r2=o2({components:{[on.name]:on,Close:oe.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),l=(0,t.ref)({}),o=(0,t.computed)(()=>"fox-tour"),r=(0,t.computed)(()=>{const{offset:h,maskWidth:u,maskHeight:y}=e,{width:S,height:w,left:b,top:k}=l.value,f=[b+S/2,k+w/2],v=Number(u||S),m=Number(y||w);return{width:`${v+ +h[1]*2}px`,height:`${m+ +h[0]*2}px`,top:`${f[1]-m/2-+h[0]}px`,left:`${f[0]-v/2-+h[1]}px`}}),i=h=>{h=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,(0,t.nextTick)(()=>{a.showPopup=!0,c()}),n("change",a.active)},c=()=>{l.value=De(document.querySelector(`#${e.steps[a.active].target}`))},s=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&s()};return(0,t.onMounted)(()=>{a.active=0,c()}),(0,t.watch)(()=>e.modelValue,h=>{h&&c(),a.active=0,a.showTour=h,a.showPopup=h}),{...(0,t.toRefs)(a),classes:o,maskStyle:r,changeStep:i,close:s,handleClickMask:d}}}),i2={key:0,class:"fox-tour-content"},s2={key:0,class:"fox-tour-content-top"},c2={class:"fox-tour-content-inner"},u2={class:"fox-tour-content-bottom"},d2={class:"fox-tour-content-bottom-init"},f2={class:"fox-tour-content-bottom-operate"},m2={key:1,class:"fox-tour-content fox-tour-content-tile"},h2={class:"fox-tour-content-inner"};function p2(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Close"),c=(0,t.resolveComponent)("fox-popover");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...s)=>e.handleClickMask&&e.handleClickMask(...s))},null,512),[[t.vShow,e.showTour]]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.steps,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:d,style:{height:"0"}},[d==e.active?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.showTour?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:(0,t.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(c,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=h=>e.showPopup=h),location:s.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:s.popoverOffset||[0,12],arrowOffset:s.arrowOffset||0},{content:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,t.openBlock)(),(0,t.createElementBlock)("div",i2,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",s2,[(0,t.createElementVNode)("div",{onClick:n[1]||(n[1]=(...h)=>e.close&&e.close(...h))},[(0,t.createVNode)(i,{class:"fox-tour-content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",c2,(0,t.toDisplayString)(s.content),1),(0,t.createElementVNode)("div",u2,[(0,t.createElementVNode)("div",d2,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",f2,[(0,t.renderSlot)(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:n[2]||(n[2]=h=>e.changeStep("prev"))},(0,t.toDisplayString)(e.prevStepTxt),1)):(0,t.createCommentVNode)("",!0)]),e.steps.length-1==e.active?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[3]||(n[3]=(...h)=>e.close&&e.close(...h))},(0,t.toDisplayString)(e.completeTxt),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[4]||(n[4]=h=>e.changeStep("next"))},(0,t.toDisplayString)(e.nextStepTxt),1)):(0,t.createCommentVNode)("",!0)])])])])):(0,t.createCommentVNode)("",!0),e.type=="tile"?((0,t.openBlock)(),(0,t.createElementBlock)("div",m2,[(0,t.createElementVNode)("div",h2,(0,t.toDisplayString)(s.content),1)])):(0,t.createCommentVNode)("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):(0,t.createCommentVNode)("",!0)]))),128))],2)}var jo=re(r2,[["render",p2]]),{componentName:g2,create:y2}=ee("barrage"),b2=y2({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const n=new Date().getTime(),a=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[g2]:!0}));let o=(0,t.ref)(document.createElement("div")),r=(0,t.ref)(document.createElement("div")),i=null;const c=(0,t.ref)(e.danmu),s=(0,t.ref)(e.rows),d=(0,t.ref)(e.top),h=(0,t.ref)(0),u=e.speeds,y=(0,t.ref)(0);(0,t.onMounted)(()=>{S(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(b(),h.value=0,w("hidden")):document.visibilityState==="visible"&&S()})}),(0,t.onUnmounted)(()=>{c.value=[],b()});const S=()=>{y.value=o.value.offsetWidth,a&&w("init"),setTimeout(()=>{o.value?.style.setProperty("--move-distance",`-${y.value}px`),f()},300)},w=m=>{let N=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const A=[];N&&Array.from(N).forEach(p=>{m=="init"?(p.style.opacity="0",A.push(p)):(p.classList="",p.style={})}),m=="init"&&(c.value=A)},b=()=>{i&&(clearTimeout(i),i=null)};(0,t.watch)(()=>e.danmu,m=>{e.danmu.length>0&&(c.value=[...m])});const k=m=>{const N=h.value%c.value.length;!e.loop&&h.value===c.value.length?c.value.splice(c.value.length,0,m):c.value.splice(N,0,m)},f=()=>{b(),i=setTimeout(()=>{v()},e.frequency)},v=()=>{const m=e.loop?h.value%c.value.length:h.value;let N=document.createElement("view");a&&typeof c.value[m]=="object"?(N=c.value[m],N?.classList?.add("fox-barrage__item")):(N.innerHTML=c.value[m],N.classList.add("fox-barrage__item"),r.value.appendChild(N)),(0,t.nextTick)(()=>{const A=N.offsetHeight;if(N?.classList?.add("move"),N.style.animationDuration=`${u}ms`,N.style.top=m%s.value*(A+d.value)+20+"px",N.style.opacity="1",!a){const p=N.offsetWidth;N.style.width=p+20+"px"}N.addEventListener("animationend",()=>{a?N.classList.remove("move"):r.value.removeChild(N)}),!(!e.loop&&h.value>=c.value.length-1)&&(h.value++,h.value>=c.value.length&&(h.value=0),N.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:l,danmuList:c,dmBody:o,dmContainer:r,add:k}}});function v2(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{ref:"dmBody",class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",{ref:"dmContainer",class:(0,t.normalizeClass)(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["slotBody","slotBody"+e.classTime])},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)],2)],2)}var Wo=re(b2,[["render",v2]]),{componentName:S2,create:k2,scope:w2}=ee("signature"),C2=k2({props:{customClass:{type:String,default:""},lineWidth:{type:Number,default:2},strokeStyle:{type:String,default:()=>document.getElementsByTagName("body")[0].className.indexOf("fox-theme-dark")==-1?"#000":"#fff"},type:{type:String,default:"png"},unSupportTpl:{type:String,default:""}},components:{[ct.name]:ct},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,pe.useFoxI18n)(w2),l=a(e,["unSupportTpl","reSign","confirmText"]),o=(0,t.ref)(null),r=(0,t.ref)(null),i=(0,t.computed)(()=>({[S2]:!0,[`${e.customClass}`]:e.customClass})),c=(0,t.reactive)({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),s=()=>{let v=document.createElement("canvas");return!!(v.getContext&&v.getContext("2d"))},d=()=>{o.value.addEventListener(c.events[0],h,!1)},h=v=>{v.preventDefault(),c.ctx.beginPath(),c.ctx.lineWidth=e.lineWidth,c.ctx.strokeStyle=e.strokeStyle,n("start"),o.value.addEventListener(c.events[1],u,!1),o.value.addEventListener(c.events[2],y,!1),o.value.addEventListener(c.events[3],S,!1)},u=v=>{v.preventDefault();let m=c.isSupportTouch?v.touches[0]:v;n("signing",m);let N=o.value.getBoundingClientRect(),A=m.clientX-N.left,p=m.clientY-N.top;c.ctx.lineTo(A,p),c.ctx.stroke()},y=v=>{v.preventDefault(),n("end"),o.value.removeEventListener(c.events[1],u,!1),o.value.removeEventListener(c.events[2],y,!1)},S=v=>{v.preventDefault(),o.value.removeEventListener(c.events[1],u,!1),o.value.removeEventListener(c.events[2],y,!1)},w=()=>{o.value.addEventListener(c.events[2],y,!1),c.ctx.clearRect(0,0,c.canvasWidth,c.canvasHeight),c.ctx.closePath(),n("clear")},b=()=>{f(o.value)},k=v=>{if(!v)return!0;var m=document.createElement("canvas");return m.width=v.width,m.height=v.height,v?.toDataURL()==m.toDataURL()},f=v=>{let m;switch(e.type){case"png":m=v.toDataURL("image/png");break;case"jpg":m=v.toDataURL("image/jpeg",.8);break}n("confirm",k(v)?"请绘制签名":v,k(v)?"":m)};return(0,t.onMounted)(()=>{s()&&(c.ctx=o.value.getContext("2d"),c.canvasWidth=r.value.offsetWidth,c.canvasHeight=r.value.offsetHeight,d())}),{...l,...(0,t.toRefs)(c),canvas:o,wrap:r,isCanvasSupported:s,confirm:b,clear:w,classes:i}}}),N2={class:"fox-signature-inner",ref:"wrap"},A2=["height","width"],B2={key:0,class:"fox-signature-unsopport"};function T2(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",N2,[(0,t.withDirectives)((0,t.createElementVNode)("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,A2),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("p",B2,(0,t.toDisplayString)(e.unSupportTpl),1))],512),(0,t.createVNode)(i,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=c=>e.clear())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.reSign),1)]),_:1}),(0,t.createVNode)(i,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=c=>e.confirm())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.confirmText),1)]),_:1})],2)}var Yo=re(C2,[["render",T2]]),V2=[Ol,Kl,Ul,Hl,Xl,St,Kn,_l,Jl,ea,ta,la,jn,ra,ua,ha,ga,nl,ll,ya,ol,rl,va,ka,vt,wa,Na,hl,Ba,Va,Wt,Yt,Qn,$a,Ia,qa,xa,ut,Pa,Ma,Un,kt,Hn,za,La,ct,Ra,Oa,Fa,st,Se,Ka,Ua,Ha,ja,Qt,Wa,Ya,Xa,Qa,Ga,Za,_a,Ja,eo,to,no,lo,ao,oo,ro,io,so,Gt,dl,Gn,tl,Jn,pl,cl,Ht,co,uo,fo,mo,ho,po,go,_t,ul,yo,So,sl,$t,Co,No,an,Ao,Bo,Zt,To,Vo,$o,Dt,Eo,Do,It,qt,Rn,yl,qo,xo,Po,Mo,on,zo,Lo,Ro,Oo,Fo,Ko,Uo,Ho,jo,Wo,Yo],$2=new qs(V2,"4.0.0");B.AbstractPageScopeKey=Ll,B.ActionSheet=ho,B.FoxActionSheet=ho,B.ActionsheetItem=Ba,B.FoxActionsheetItem=Ba,B.ActionsheetPane=hl,B.FoxActionsheetPane=hl,B.Animate=Ko,B.FoxAnimate=Ko,B.Audio=Co,B.FoxAudio=Co,B.AudioOperate=No,B.FoxAudioOperate=No,B.Avatar=an,B.FoxAvatar=an,B.AvatarGroup=Ao,B.FoxAvatarGroup=Ao,B.BackTop=po,B.FoxBackTop=po,B.Badge=Po,B.FoxBadge=Po,B.Barrage=Wo,B.FoxBarrage=Wo,B.Broadcast=Il,B.BroadcastKey=Ce,B.Button=ct,B.FoxButton=ct,B.ButtonsItem=_l,B.FoxButtonsItem=_l,B.Calendar=tl,B.FoxCalendar=tl,B.CalendarItem=ga,B.FoxCalendarItem=ga,B.Cascader=Gn,B.FoxCascader=Gn,B.CascaderItem=ua,B.FoxCascaderItem=ua,B.Cell=Ra,B.FoxCell=Ra,B.CellGroup=Fa,B.FoxCellGroup=Fa,B.Checkbox=ol,B.FoxCheckbox=ol,B.CheckboxGroup=rl,B.FoxCheckboxGroup=rl,B.CheckboxItem=va,B.FoxCheckboxItem=va,B.CircleProgress=To,B.FoxCircleProgress=To,B.Col=Ha,B.FoxCol=Ha,B.Collapse=Lo,B.FoxCollapse=Lo,B.CollapseItem=Ro,B.FoxCollapseItem=Ro,B.Content=Hl,B.FoxContent=Hl,B.CountDown=xo,B.FoxCountDown=xo,B.CountUp=qo,B.FoxCountUp=qo,B.DataItemsKey=ht,B.DateItem=ha,B.FoxDateItem=ha,B.DatePicker=Jn,B.FoxDatePicker=Jn,B.DateUtils=Nt,B.Dialog=_t,B.FoxDialog=_t,B.Divider=Wa,B.FoxDivider=Wa,B.Domain=kn,B.DomainKey=Ee,B.DomainProvider=za,B.FoxDomainProvider=za,B.Drag=go,B.FoxDrag=go,B.Dropdown=Ma,B.FoxDropdown=Ma,B.Elevator=to,B.FoxElevator=to,B.Ellipsis=Fo,B.FoxEllipsis=Fo,B.Empty=$o,B.FoxEmpty=$o,B.FixedNav=Ga,B.FoxFixedNav=Ga,B.FloatingButton=qa,B.FoxFloatingButton=qa,B.FooterBar=Ul,B.FoxFooterBar=Ul,B.FoxGrid=Ya,B.Grid=Ya,B.FoxGridItem=Xa,B.GridItem=Xa,B.FoxGroup=Xl,B.Group=Xl,B.FoxHeaderBar=Kl,B.HeaderBar=Kl,B.FoxHintText=vt,B.HintText=vt,B.FoxIcon=Oa,B.Icon=Oa,B.FoxImage=Ka,B.Image=Ka,B.FoxImagePreview=yl,B.ImagePreview=yl,B.FoxIndicator=oo,B.Indicator=oo,B.FoxInfiniteLoading=ul,B.InfiniteLoading=ul,B.FoxInputItem=ea,B.InputItem=ea,B.FoxInputNumber=pl,B.InputNumber=pl,B.FoxInputNumberItem=Va,B.InputNumberItem=Va,B.FoxItem=St,B.Item=St,B.FoxLayout=Ua,B.Layout=Ua,B.FoxLinkItem=wa,B.LinkItem=wa,B.FoxList=Bo,B.List=Bo,B.FoxMapping=Hn,B.Mapping=Hn,B.FoxMenu=Za,B.Menu=Za,B.FoxMenuItem=_a,B.MenuItem=_a,B.FoxMessageBox=ut,B.MessageBox=ut,B.FoxMoneyItem=ta,B.MoneyItem=ta,B.FoxMoreButton=xa,B.MoreButton=xa,B.FoxNavbar=Qa,B.Navbar=Qa,B.FoxNoticeBar=Vo,B.NoticeBar=Vo,B.FoxNotify=So,B.Notify=So,B.FoxNumberKeyboard=fo,B.NumberKeyboard=fo,B.FoxOverLay=st,B.OverLay=st,B.FoxPage=Ol,B.Page=Ol,B.FoxPagination=no,B.Pagination=no,B.FoxPicker=Ht,B.Picker=Ht,B.FoxPickerItem=ra,B.PickerItem=ra,B.FoxPopover=on,B.Popover=on,B.FoxPopoverDialog=Un,B.PopoverDialog=Un,B.FoxPopup=Se,B.Popup=Se,B.FoxPopupWrapper=Pa,B.PopupWrapper=Pa,B.FoxPrice=Rn,B.Price=Rn,B.FoxProgress=Zt,B.Progress=Zt,B.FoxPullRefresh=yo,B.PullRefresh=yo,B.FoxRadio=nl,B.Radio=nl,B.FoxRadioGroup=ll,B.RadioGroup=ll,B.FoxRadioItem=ya,B.RadioItem=ya,B.FoxRange=Gt,B.Range=Gt,B.FoxRate=cl,B.Rate=cl,B.FoxRateItem=Na,B.RateItem=Na,B.FoxRollingProvider=La,B.RollingProvider=La,B.FoxRow=ja,B.Row=ja,B.FoxRowItem=Kn,B.RowItem=Kn,B.FoxSearchBar=dl,B.SearchBar=dl,B.FoxShortPassword=co,B.ShortPassword=co,B.FoxSideNavBar=ro,B.SideNavBar=ro,B.FoxSideNavBarItem=io,B.SideNavBarItem=io,B.FoxSignature=Yo,B.Signature=Yo,B.FoxSkeleton=zo,B.Skeleton=zo,B.FoxSlotItem=Jl,B.SlotItem=Jl,B.FoxStep=Do,B.Step=Do,B.FoxSteps=Eo,B.Steps=Eo,B.FoxStepsBar=Ia,B.StepsBar=Ia,B.FoxSticky=Qt,B.Sticky=Qt,B.FoxSubSideNavBar=so,B.SubSideNavBar=so,B.FoxSwipe=mo,B.Swipe=mo,B.FoxSwiper=It,B.Swiper=It,B.FoxSwiperItem=qt,B.SwiperItem=qt,B.FoxSwitch=sl,B.Switch=sl,B.FoxSwitchItem=ka,B.SwitchItem=ka,B.FoxTabPane=ao,B.TabPane=ao,B.FoxTabbar=Ja,B.Tabbar=Ja,B.FoxTabbarItem=eo,B.TabbarItem=eo,B.FoxTable=Oo,B.Table=Oo,B.FoxTabs=lo,B.Tabs=lo,B.FoxTabsBar=Wt,B.TabsBar=Wt,B.FoxTabsContainer=Yt,B.TabsContainer=Yt,B.FoxTabsFrame=$a,B.TabsFrame=$a,B.FoxTabsPane=Qn,B.TabsPane=Qn,B.FoxTag=Mo,B.Tag=Mo,B.FoxText=kt,B.Text=kt,B.FoxTextarea=jn,B.Textarea=jn,B.FoxTextareaItem=la,B.TextareaItem=la,B.FoxToast=$t,B.Toast=$t,B.FoxTour=jo,B.Tour=jo,B.FoxTrendArrow=Ho,B.TrendArrow=Ho,B.FoxUploader=uo,B.Uploader=uo,B.FoxVideo=Dt,B.Video=Dt,B.FoxWaterMark=Uo,B.WaterMark=Uo,B.InnerPageScopeKey=zl,B.PriorityPolicy=tt,B.UniqueID=On,B.ValidateSchema=br,B.ValidateSchemaKey=Le,B.browseProperty=Ar,B.cancelRaf=Qo,B.clamp=Ye,B.clearNonNumber=El,B.compareTo=Bl,B.createBroadcast=gn,B.createValidateSchema=bn,B.debounce=Ie,B.debounceRef=ks,B.decimalLength=fr,B.default=$2,B.defineBroadcast=fs,B.defineConfigDomain=Sr,B.defineDataItem=kr,B.defineDomain=Pl,B.defineDomainItemProperty=qe,B.defineItem=Be,B.definePageState=wr,B.defineSimpleItem=gt,B.deleteGlobalValidator=ys,B.disabledProperty=$n,B.divide=Al,B.excludeProps=_e,B.extend=ft,B.floatData=us,B.getGlobalIcons=In,B.getGlobalValidateCheckEvents=pr,B.getGlobalValidateResetEvents=yr,B.getPageContentAreaHeight=An,B.getPageContentAreaWidth=Bn,B.getPageFooterAreaHeight=Nn,B.getPageHeaderAreaHeight=Cn,B.getRootDomain=pt,B.hasSymbol=rr,B.includeProps=ye,B.indexOf=ss,B.injectAbstractPageScope=Ft,B.injectInnerPageScope=Ot,B.integerLength=dr,B.isArray=dn,B.isArrayLike=cr,B.isBrowser=Ze,B.isDate=We,B.isDisplayNone=Vl,B.isESModule=ls,B.isEmptyString=fe,B.isEqual=$e,B.isFunction=fn,B.isHidden=ir,B.isMap=Ji,B.isNil=Me,B.isNumberString=hn,B.isObject=Ve,B.isPlainObject=ns,B.isPromise=dt,B.isRegExp=$l,B.isSet=es,B.isString=ar,B.isSubPage=Bs,B.isSymbol=ts,B.isTouch=Wn,B.isWindow=sr,B.kebabToPascal=pn,B.lastIndexOf=cs,B.makeArray=is,B.merge=ur,B.multiply=tr,B.negate=nr,B.nextTick=os,B.numberFormat=un,B.objectToString=or,B.once=ws,B.overrideGlobalIcons=Fs,B.overrideGlobalValidateHandler=ps,B.padZero=rt,B.pascalToKebab=ds,B.preventDefault=Dl,B.property=Te,B.provideAbstractPageScope=Nr,B.provideInnerPageScope=Cr,B.px2Number=As,B.raf=je,B.readonlyProperty=Vn,B.setGlobalValidateCheckEvents=bs,B.setGlobalValidateHandler=hs,B.setGlobalValidateMessages=Ss,B.setGlobalValidateResetEvents=vs,B.setGlobalValidator=gs,B.throttle=Sn,B.toBoolean=ke,B.toNumber=de,B.toPadding=Oe,B.toPx=ce,B.toPxDesc=Ns,B.toPxString=me,B.toTypeString=mn,B.toValue=xe,B.tryTimes=ql,B.typeOf=mt,B.unNumberFormat=lr,B.updatePageState=Ml,B.useBroadcast=zt,B.useDomain=Je,B.useExpose=be,B.useInnerSize=Dn,B.usePageState=wn,B.usePosition=Ql,B.useRawTouch=Yn,B.useRect=De,B.useSize=Fl,B.useSlotChildren=Yl,B.useTouch=lt,B.valueLength=we});
9
+ `)}}});function cy(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)}var ja=re(sy,[["render",cy]]),{create:uy}=ee("sticky"),dy=uy({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,t.ref)(),o=(0,t.reactive)({fixed:!1,height:0,transform:0}),r=(0,t.computed)(()=>e.position==="top"?Number(e.top):Number(e.bottom)),i=(0,t.computed)(()=>o.fixed?{height:`${o.height}px`}:{}),c=(0,t.computed)(()=>o.fixed?{[e.position]:`${r.value}px`,transform:o.transform?`translate3d(0, ${o.transform}px, 0)`:void 0,position:o.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),s=()=>{const d=e.container;if(!a.value&&!d)return;const h=De(a),u=l.value,g=De(u),S=De(d);o.height=h.height;const w=()=>{let k=!1;if(e.position==="top")k=d?r.value>h.top&&S.bottom>0:r.value>h.top;else{const f=document.documentElement.clientHeight;k=d?S.bottom>0&&f-r.value-g.height>S.top:f-r.value<h.bottom}return k},b=()=>{if(d)if(e.position==="top"){const k=S.bottom-r.value-g.height;return k<0?k:0}else{const k=document.documentElement.clientHeight,f=S.bottom-(k-r.value);return f<0?f:0}return 0};o.transform=b(),o.fixed=w()};return(0,t.watch)(()=>o.fixed,d=>{n("change",d)}),(0,t.onMounted)(()=>{s(),Aa(a.value).addEventListener("scroll",s,!0)}),(0,t.onUnmounted)(()=>{Aa(a.value).removeEventListener("scroll",s)}),{rootRef:a,rootStyle:i,stickyRef:l,stickyStyle:c}}});function fy(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-sticky",ref:"rootRef",style:(0,t.normalizeStyle)(e.rootStyle)},[(0,t.createElementVNode)("div",{class:"fox-sticky__box",ref:"stickyRef",style:(0,t.normalizeStyle)(e.stickyStyle)},[(0,t.renderSlot)(e.$slots,"default")],4)],4)}var Qt=re(dy,[["render",fy]]),{componentName:my,create:hy}=ee("divider"),py=hy({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:(0,t.computed)(()=>{const a=my;let l={[a]:!0},o={};return e.direction==="horizontal"?o={...l,[`${a}-center`]:n.slots.default,[`${a}-left`]:e.contentPosition==="left",[`${a}-right`]:e.contentPosition==="right",[`${a}-dashed`]:e.dashed,[`${a}-hairline`]:e.hairline}:o={...l,[`${a}-vertical`]:e.direction==="vertical"},o})}}});function gy(e,n,a,l,o,r){return e.direction==="horizontal"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes)},null,2))}var Wa=re(py,[["render",gy]]);function yy(e,n){const a=[],l=o=>{Array.isArray(o)&&o.forEach(r=>{if((0,t.isVNode)(r)){if(n){if(r.type&&r.type.name===n){a.push(r);return}}else a.push(r);r.component?.subTree&&l(r.component.subTree.children),r.children&&l(r.children)}})};return l(e),a}function by(e,n,a){const l=yy(e.subTree.children,a);n.sort((o,r)=>l.indexOf(o.vnode)-l.indexOf(r.vnode))}function vy(e,n){const a=(0,t.shallowReactive)([]),l=(0,t.getCurrentInstance)(),o=c=>{c.proxy&&(a.push((0,t.markRaw)(c)),by(l,a,n))},r=c=>{a.splice(a.indexOf((0,t.markRaw)(c)),1)},i=Object.assign;return c=>((0,t.provide)(e,i({add:o,remove:r,internalChildren:a},c)),{internalChildren:a})}var{componentName:Mi}=ee("grid"),zi=Symbol("grid"),Sy={columnNum:{type:[Number,String],default:4},border:{type:Boolean,default:!0},gutter:{type:[Number,String],default:0},center:{type:Boolean,default:!0},square:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},direction:{type:String},clickable:{type:Boolean,default:!1}},ky={props:Sy,setup(e,{slots:n}){vy(zi,`${Mi}-item`)({props:e});const a=(0,t.computed)(()=>{const o=Mi;return{[o]:!0,[`${o}--border`]:e.border&&!e.gutter}}),l=(0,t.computed)(()=>{const o={};return e.gutter&&(o.paddingLeft=me(e.gutter)),o});return()=>(0,t.h)("view",{class:a.value,style:l.value},n.default?.())}},{create:wy}=ee("grid"),Cy=wy(ky),Ya=Cy;function Ny(e){const n=(0,t.inject)(e,null);if(n){const a=(0,t.getCurrentInstance)(),{add:l,remove:o,internalChildren:r}=n;return l(a),(0,t.onUnmounted)(()=>o(a)),{parent:n,index:(0,t.computed)(()=>r.indexOf(a))}}return{parent:null,index:(0,t.ref)(-1)}}var{create:Ay,componentName:Li}=ee("grid-item"),By=Ay({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=Ny(zi);if(!a.parent)return{};const l=a.index,o=a.parent.props,r=(0,t.computed)(()=>({[Li]:!0})),i=(0,t.computed)(()=>{const d={flexBasis:`${100/+o.columnNum}%`};return o.square?d.paddingTop=`${100/+o.columnNum}%`:o.gutter&&(d.paddingRight=me(o.gutter),l.value>=o.columnNum&&(d.marginTop=me(o.gutter))),d}),c=(0,t.computed)(()=>{const d=`${Li}__content`;return{[`${d}`]:!0,[`${d}--border`]:o.border,[`${d}--surround`]:o.border&&o.gutter,[`${d}--center`]:o.center,[`${d}--square`]:o.square,[`${d}--reverse`]:o.reverse,[`${d}--${o.direction}`]:!!o.direction,[`${d}--clickable`]:o.clickable}});return{rootClass:r,rootStyle:i,contentClass:c,handleClick:d=>{n("click",d)}}}}),Ty={class:"fox-grid-item__text"};function Vy(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.rootClass),style:(0,t.normalizeStyle)(e.rootStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.contentClass)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("view",Ty,[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.renderSlot)(e.$slots,"text",{key:1})])],2)],6)}var Xa=re(By,[["render",Vy]]),{componentName:$y,create:Ey}=ee("navbar"),Dy=Ey({components:{Left:oe.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:l,safeAreaInsetTop:o,placeholder:r,zIndex:i}=(0,t.toRefs)(e),c=(0,t.ref)(null),s=(0,t.ref)(null);let d=(0,t.ref)();const h=(0,t.computed)(()=>{const k=$y;return{[k]:!0,[`${k}--border`]:a.value,[`${k}--fixed`]:l.value,[`${k}--safe-area-inset-top`]:o.value}}),u=(0,t.computed)(()=>({zIndex:i.value}));(0,t.onMounted)(()=>{l.value&&r.value&&(0,t.nextTick)(()=>{d.value=s?.value?.getBoundingClientRect().height,c.value.style.height=d.value+"px"})});function g(){n("on-click-back")}function S(){n("on-click-title")}function w(){n("on-click-icon")}function b(){n("on-click-right")}return{navBarWrap:c,navBarHtml:s,classes:h,styles:u,handleLeft:g,handleCenter:S,handleCenterIcon:w,handleRight:b}}}),Iy={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},qy={key:1,class:"fox-navbar__text"},xy={class:"fox-navbar__title"},Py={key:0,class:"fox-navbar__text"},My={key:1,class:"fox-navbar__text"},zy={class:"fox-navbar__title"},Ly={key:0,class:"fox-navbar__text"};function Ry(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",Iy,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),ref:"navBarHtml"},[(0,t.createElementVNode)("view",{class:"fox-navbar__left",onClick:n[0]||(n[0]=(...c)=>e.handleLeft&&e.handleLeft(...c))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(i,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",qy,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",xy,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...c)=>e.handleCenter&&e.handleCenter(...c))},(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.titleIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"icon",onClick:n[3]||(n[3]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...c)=>e.handleRight&&e.handleRight(...c))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Py,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6)],512)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("view",{class:"fox-navbar__left",onClick:n[5]||(n[5]=(...c)=>e.handleLeft&&e.handleLeft(...c))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(i,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",My,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",zy,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...c)=>e.handleCenter&&e.handleCenter(...c))},(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.titleIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"icon",onClick:n[8]||(n[8]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...c)=>e.handleRight&&e.handleRight(...c))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ly,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var Qa=re(Dy,[["render",Ry]]),Fy=(e,n,a)=>({components:a,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{type:String,default:""},activeText:{type:String},unActiveText:{type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(l,{emit:o}){const{toLocaleRefs:r}=(0,pe.useFoxI18n)(n),i=r(l,["activeText","unActiveText"]),c=(0,t.computed)(()=>({[e]:!0,active:l.visible,[l.type]:!0})),s=(0,t.ref)(-1);return{...i,classes:c,updateValue:(u=!l.visible)=>{o("update:visible",u)},selected:(u,g)=>{o("selected",{item:u,event:g}),s.value=u.id},current:s}}}),{componentName:Oy,create:Ky,scope:Uy}=ee("fixednav"),Hy=Ky(Fy(Oy,Uy,{[st.name]:st,Left:oe.Left})),jy={class:"fox-fixednav__list"},Wy=["onClick"],Yy=["src"],Xy={class:"span"},Qy={key:0,class:"b"},Gy={class:"text"};function Zy(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-overlay"),c=(0,t.resolveComponent)("Left");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.position)},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=s=>e.updateValue(!1))},null,8,["visible"])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"list",{},()=>[(0,t.createElementVNode)("view",jy,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.navList,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-fixednav__list-item",{active:s.id==e.current}]),onClick:h=>e.selected(s,h),key:s.id||d},[(0,t.createElementVNode)("img",{src:s.icon},null,8,Yy),(0,t.createElementVNode)("view",Xy,(0,t.toDisplayString)(s.text),1),s.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",Qy,(0,t.toDisplayString)(s.num),1)):(0,t.createCommentVNode)("",!0)],10,Wy))),128))])]),(0,t.createElementVNode)("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=s=>e.updateValue())},[(0,t.renderSlot)(e.$slots,"btn",{},()=>[(0,t.createVNode)(c,{color:"#fff"}),(0,t.createElementVNode)("view",Gy,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var Ga=re(Hy,[["render",Zy]]),{componentName:_y,create:Jy}=ee("menu"),eb=Jy({components:{ArrowUp2:oe.ArrowUp2,ArrowDown2:oe.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:a}){const l=(0,t.ref)(),o=(0,t.ref)(0),r=(0,t.ref)(!1),i=()=>{const k=(0,t.reactive)([]),f=(0,t.reactive)([]);return{children:k,linkChildren:m=>{const A=y=>{y.proxy&&(f.push(y),k.push(y.proxy))},C=y=>{if(y.proxy){let p=f.indexOf(y);p>-1&&f.splice(p,1);let N=k.indexOf(y.proxy);p>-1&&k.splice(N,1)}};(0,t.provide)("menuParent",Object.assign({removeLink:C,link:A,children:k,internalChildren:f},m))}}},{children:c,linkChildren:s}=i(),d=(0,t.computed)(()=>c.some(k=>k.state.showWrapper)),h=(0,t.computed)(()=>({[_y]:!0,"scroll-fixed":r.value})),u=()=>{if(l.value){const k=De(l);e.direction==="down"?o.value=k.bottom:o.value=window.innerHeight-k.top}};s({props:e,offset:o});const g=k=>{c.forEach((f,v)=>{v===k?(u(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},S=k=>Math.max(0,"scrollTop"in k?k.scrollTop:k.pageYOffset),w=()=>{const{scrollFixed:k}=e;r.value=S(window)>(typeof k=="boolean"?30:Number(k))},b=k=>{let f="";const{titleClass:v}=e;return k&&(f+="active"),v&&(f+=` ${v}`),f};return(0,t.onMounted)(()=>{const{scrollFixed:k}=e;k&&window.addEventListener("scroll",w)}),(0,t.onUnmounted)(()=>{const{scrollFixed:k}=e;k&&window.removeEventListener("scroll",w)}),{toggleItem:g,children:c,opened:d,classes:h,barRef:l,getClasses:b}}}),tb=["onClick"],nb={class:"fox-menu__title-text"},lb={class:"fox-menu__title-icon"};function ab(e,n,a,l,o,r){const i=(0,t.resolveComponent)("ArrowUp2"),c=(0,t.resolveComponent)("ArrowDown2");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.children,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu__item",{disabled:s.disabled,active:s.state.showPopup}]),onClick:h=>!s.disabled&&e.toggleItem(d),style:(0,t.normalizeStyle)({color:s.state.showPopup?e.activeColor:""})},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__title",e.getClasses(s.state.showPopup)])},[(0,t.createElementVNode)("view",nb,(0,t.toDisplayString)(s.renderTitle()),1),(0,t.createElementVNode)("span",lb,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.direction==="up"?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1}))])])],2)],14,tb))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var Za=re(eb,[["render",ab]]),{componentName:ob,create:rb}=ee("menu-item"),ib=rb({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[Se.name]:Se,Check:oe.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:a}){const l=(0,t.reactive)({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),o=()=>{const S=(0,t.inject)("menuParent",null);if(S){const w=(0,t.getCurrentInstance)(),{link:b,removeLink:k}=S;return b(w),(0,t.onUnmounted)(()=>{k(w)}),{parent:S}}},{parent:r}=o(),i=(0,t.computed)(()=>({[ob]:!0})),c=(0,t.computed)(()=>{const S={height:r.offset.value+"px"};return r.props.direction==="down"?S:{...S,top:"auto"}});return{classes:i,placeholderElementStyle:c,renderTitle:()=>{if(e.title)return e.title;const S=e.options?.find(w=>w.value===e.modelValue);return S?S.text:""},state:l,parent:r,toggle:(S=!l.showPopup,w={})=>{S!==l.showPopup&&(l.showPopup=S,l.isShowPlaceholderElement=S,S&&(l.showWrapper=!0,n("open")))},onClick:S=>{l.showPopup=!1,l.isShowPlaceholderElement=!1,S.value!==e.modelValue&&(n("update:modelValue",S.value),n("change",S.value))},handleClose:()=>{n("close"),l.showWrapper=!1,l.isShowPlaceholderElement=!1},handleClickOutside:()=>{l.showPopup=!1,n("close")}}}}),sb={class:"fox-menu-item__content fox-menu-item__overflow"},cb=["onClick"];function ub(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Check"),c=(0,t.resolveComponent)("fox-popup");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{onClick:n[0]||(n[0]=(...s)=>e.handleClickOutside&&e.handleClickOutside(...s)),class:(0,t.normalizeClass)(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:(0,t.normalizeStyle)(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),(0,t.createVNode)(c,(0,t.mergeProps)({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",top:"auto"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.state.showPopup=s),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",sb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu-item__option",[{active:s.value===e.modelValue}]]),style:(0,t.normalizeStyle)({"flex-basis":100/e.cols+"%"}),onClick:h=>e.onClick(s)},[s.value===e.modelValue?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:(0,t.normalizeClass)(["fox-menu-item__span",[s.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[(0,t.renderSlot)(e.$slots,"icon",{},()=>[(0,t.createVNode)(i,(0,t.mergeProps)({ref_for:!0},e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)([s.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:(0,t.normalizeStyle)({color:s.value===e.modelValue?e.parent.props.activeColor:""})},(0,t.toDisplayString)(s.text),7)],14,cb))),128)),(0,t.renderSlot)(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}var _a=re(ib,[["render",ub]]),{create:db}=ee("tabbar"),fb=db({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,n){function a(o){l.value!==o&&(l.value=o,n.emit("update:modelValue",o),n.emit("change",o,l.children[o]))}const l=(0,t.reactive)({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:a});return(0,t.provide)("parent",l),(0,t.watch)(()=>e.modelValue,o=>{l.value=o}),{changeIndex:a}}});function mb(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[(0,t.renderSlot)(e.$slots,"default")],2)}var Ja=re(fb,[["render",mb]]),{create:hb}=ee("tabbar-item"),pb=hb({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,n){const a=(0,t.inject)("parent"),l=(0,t.reactive)({size:a.size,inactiveColor:a.inactiveColor,activeColor:a.activeColor,value:a.value,index:0}),o=(0,t.getCurrentInstance)();o!==null&&(s=>{if(s.proxy){let d=a.children.length;l.index=d;let h=Object.assign(s.proxy,{index:d});a.children.push(h)}})(o);const r=(0,t.computed)(()=>l.index===l.value);function i(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}return(0,t.watch)((0,t.computed)(()=>a?a.value:null),c=>{l.value=c}),{state:l,active:r,change:i}}}),gb={class:"fox-tabbar-item_icon-box"},yb={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},bb={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},vb={key:1,class:"fox-tabbar-item_icon-box_dot"},Sb={key:2},kb={key:0};function wb(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:(0,t.normalizeStyle)({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=i=>e.change(e.state.index))},[(0,t.createElementVNode)("view",gb,[e.dot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.num&&e.num<=99?((0,t.openBlock)(),(0,t.createElementBlock)("view",yb,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",bb,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",vb)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Sb,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):(0,t.createCommentVNode)("",!0),!e.icon&&e.activeImg?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:(0,t.normalizeStyle)({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",kb,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.title?(0,t.createCommentVNode)("",!0):(0,t.renderSlot)(e.$slots,"default",{key:1})],2)])],6)}var eo=re(pb,[["render",wb]]),{componentName:Cb,create:Nb}=ee("elevator"),Ab=Nb({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const a=(0,t.ref)(null),l=(0,t.reactive)({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),o=(0,t.computed)(()=>({[Cb]:!0})),r=(0,t.computed)(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),i=(0,t.computed)(()=>a.value.clientHeight),c=(f,v)=>f.getAttribute("data-"+v),s=f=>{(0,t.nextTick)(()=>{!l.listGroup.includes(f)&&f!=null&&l.listGroup.push(f)})},d=()=>{let f=0;l.listHeight.push(f);for(let v=0;v<l.listGroup.length;v++){let m=l.listGroup[v];f+=Math.floor(m.clientHeight),l.listHeight.push(f)}},h=f=>{!f&&f!==0||(f<0&&(f=0),f>l.listHeight.length-2&&(f=l.listHeight.length-2),l.codeIndex=f,a.value.scrollTo(0,l.listHeight[f]))},u=f=>{l.scrollStart=!0;let v=c(f.target,"index"),m=f.touches[0];l.touchState.y1=m.pageY,l.anchorIndex=+v,l.codeIndex=+v,h(+v)},g=f=>{let v=f.touches[0];l.touchState.y2=v.pageY;let m=(l.touchState.y2-l.touchState.y1)/e.spaceHeight|0;l.codeIndex=l.anchorIndex+m,h(l.codeIndex)},S=()=>{l.scrollStart=!1},w=(f,v)=>{n.emit("click-item",f,v),l.currentData=v,l.currentKey=f},b=f=>{n.emit("click-index",f)},k=f=>{let v=f.target.scrollTop;const m=l.listHeight;l.scrollY=v;for(let A=0;A<m.length-1;A++){let C=m[A],y=m[A+1];if(l.scrollY>=C&&l.scrollY<y){l.currentIndex=A,l.diff=y-l.scrollY;return}}l.currentIndex=m.length-2};return(0,t.onMounted)(()=>{a.value.addEventListener("scroll",k)}),be({scrollTo:h}),(0,t.watch)(()=>l.listGroup.length,()=>{l.listHeight=[],(0,t.nextTick)(d)}),(0,t.watch)(()=>l.diff,f=>{const v=l.listHeight;let m=f>0&&f<e.titleHeight?f-e.titleHeight:0;l.scrollY+i.value===v[v.length-1]&&m!==0&&(m=0),l.fixedTop!==m&&(l.fixedTop=m)}),(0,t.watch)(()=>l.currentIndex,f=>{n.emit("change",f)}),{classes:o,...(0,t.toRefs)(l),fixedStyle:r,clientHeight:i,setListGroup:s,listview:a,touchStart:u,touchMove:g,touchEnd:S,handleClickItem:w,handleClickIndex:b}}}),Bb={class:"fox-elevator__list__item__code"},Tb=["onClick"],Vb=["innerHTML"],$b={class:"fox-elevator__fixed-title"},Eb={class:"fox-elevator__bars__inner"},Db=["data-index","onClick"];function Ib(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:"fox-elevator__list",ref:"listview",style:(0,t.normalizeStyle)({height:isNaN(+e.height)?e.height:`${e.height}px`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,i=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-elevator__list__item",key:i[e.acceptKey],ref_for:!0,ref:e.setListGroup},[(0,t.createElementVNode)("view",Bb,(0,t.toDisplayString)(i[e.acceptKey]),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.list,c=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===c.id&&e.currentKey===i[e.acceptKey]}]),key:c.id,onClick:s=>e.handleClickItem(i[e.acceptKey],c)},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:1,item:c}):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:c.name},null,8,Vb))],10,Tb))),128))]))),128)),e.isSticky?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-elevator__list__fixed",style:(0,t.normalizeStyle)(e.fixedStyle)},[(0,t.createElementVNode)("span",$b,(0,t.toDisplayString)(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):(0,t.createCommentVNode)("",!0)],4),e.indexList.length?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-elevator__code--current"},(0,t.toDisplayString)(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-elevator__bars",onTouchstart:n[0]||(n[0]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:n[1]||(n[1]=(0,t.withModifiers)((...i)=>e.touchMove&&e.touchMove(...i),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[(0,t.createElementVNode)("view",Eb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__bars__inner__item",{active:i[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":c,key:i[e.acceptKey],onClick:s=>e.handleClickIndex(i[e.acceptKey])},(0,t.toDisplayString)(i[e.acceptKey]),11,Db))),128))])],32)],2)}var to=re(Ab,[["render",Ib]]),{componentName:M2,create:qb,scope:xb}=ee("pagination"),Pb=qb({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,pe.useFoxI18n)(xb),l=a(e,["prevText","nextText"]),{modelValue:o,mode:r,showPageSize:i,forceEllipses:c}=(0,t.toRefs)(e),s=(0,t.computed)(()=>{const{pageCount:g,totalItems:S,itemsPerPage:w}=(0,t.toRefs)(e),b=+g.value||Math.ceil(+S.value/+w.value);return Math.max(1,b)}),d=(g,S)=>{g>s.value||g<1||(g!=o.value&&n("update:modelValue",g),S&&n("change",g))},h=(g,S,w=!1)=>({number:g,text:S,active:w}),u=(0,t.computed)(()=>{if(r.value=="simple")return;let g=[];const S=s.value,w=+i.value;let b=1,k=S;const f=S>w;f&&(b=Math.max(o.value-Math.floor(w/2),1),k=b+w-1,k>S&&(k=S,b=k-w+1));for(var v=b;v<=k;v++){const m=h(v,v,o.value==v);g.push(m)}if(f&&w>0&&c.value){if(b>1){const m=h(b-1,"...");g.unshift(m)}if(k<S){const m=h(k+1,"...");g.push(m)}}return g});return(0,t.watchEffect)(()=>{d(o.value,!1)}),{...l,modelValue:o,select:d,countRef:s,mode:r,pages:u,forceEllipses:c}}}),Mb={class:"fox-pagination"},zb={key:0,class:"fox-pagination-contain"},Lb=["onClick"],Rb={key:1,class:"fox-pagination-contain"},Fb={class:"fox-pagination-simple"};function Ob(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Mb,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=i=>e.select(e.modelValue-1,!0))},[(0,t.renderSlot)(e.$slots,"prev-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.prevText),1)])],2),e.mode=="multi"?((0,t.openBlock)(),(0,t.createElementBlock)("view",zb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pages,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:c+"pagination",class:(0,t.normalizeClass)(["fox-pagination-item",i.active?"active":""]),onClick:s=>e.select(i.number,!0)},[(0,t.renderSlot)(e.$slots,"page",{item:i},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(i.text),1)])],10,Lb))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Rb,[(0,t.createElementVNode)("view",Fb,(0,t.toDisplayString)(e.modelValue)+"/"+(0,t.toDisplayString)(e.countRef),1)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=i=>e.select(e.modelValue+1,!0))},[(0,t.renderSlot)(e.$slots,"next-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextText),1)])],2)])}var no=re(Pb,[["render",Ob]]),Kb=(e,n,a,l)=>{const o=(0,t.ref)(),r=(0,t.ref)({width:0,height:0}),i=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let u=await l(o,a);r.value.width=u.width||0,r.value.height=u.height||0}else r.value.width=o.value?.clientWidth||0,r.value.height=o.value?.clientHeight||0};(0,t.onMounted)(()=>{setTimeout(()=>{i()},100)});const c=(0,t.reactive)({offset:0,moving:!1}),s=lt();let d="";const h=(u,g)=>{let S=u;switch(e.direction=="horizontal"?(d=u>0?"right":"left",S=Math.abs(S)/r.value.width*100):(d=g>0?"bottom":"top",S=g,S=Math.abs(S)/r.value?.height*100),S>85&&(S=85),d){case"left":case"top":n.isEnd()&&(S=0,c.moving=!1);break;case"right":case"bottom":S=-S,n.isBegin()&&(S=0,c.moving=!1);break}c.offset=S};return{touchMethods:{onTouchStart(u){e.swipeable&&s.start(u)},onTouchMove(u){e.swipeable&&(s.move(u),c.moving=!0,h(s.deltaX.value,s.deltaY.value),e.direction=="horizontal"&&s.isHorizontal()&&(u.preventDefault(),u.stopPropagation()),e.direction=="vertical"&&s.isVertical()&&(u.preventDefault(),u.stopPropagation()))},onTouchEnd(){if(c.moving)switch(c.moving=!1,d){case"left":case"top":c.offset>35&&n.next();break;case"right":case"bottom":c.offset<-35&&n.prev();break}}},touchState:c,tabsContentRef:o}},Ub=class{title="";titleSlot;paneKey="";disabled=!1;constructor(){}},{create:Hb}=ee("tabs"),jb=Hb({components:{[Qt.name]:Qt,JoySmile:oe.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)(null);let o;(0,t.provide)("tabsOpiton",{activeKey:(0,t.computed)(()=>e.modelValue||"0"),autoHeight:(0,t.computed)(()=>e.autoHeight),animatedTime:(0,t.computed)(()=>e.animatedTime)});const r=(0,t.ref)([]),i=V=>{V.forEach(($,H)=>{let X=$.type;if(X=X.name||X,X=="fox-tab-pane"){let D=new Ub;if($.props?.title||$.props?.["pane-key"]||$.props?.paneKey){let M=mt($.props?.["pane-key"]),z=M=="number"||M=="string"?String($.props?.["pane-key"]):null,P=mt($.props?.paneKey),K=P=="number"||P=="string"?String($.props?.paneKey):null;D.title=$.props?.title,D.paneKey=z||K||String(H),D.disabled=$.props?.disabled}r.value.push(D)}else{if($.children==" ")return;Array.isArray($.children)&&i($.children)}})},c=(0,t.ref)(e.modelValue||0),s=V=>{let $=r.value.findIndex(H=>H.paneKey==V);r.value.length==0||$==-1||(c.value=$)},d=(0,t.computed)(()=>e.titleScroll&&e.direction==="vertical"),h=(0,t.ref)(),u=(0,t.ref)([]),g=V=>{const $=h.value,H=u.value;if(!$||!H||!H[c.value])return;const X=H[c.value];let D=0;e.direction==="vertical"?D=X.offsetTop-$.offsetTop+10-($.offsetHeight-X.offsetHeight)/2:D=X.offsetLeft-($.offsetWidth-X.offsetWidth)/2,S($,D,V?0:.3,e.direction)},S=(V,$,H,X)=>{let D=0;const M=X==="horizontal"?V.scrollLeft:V.scrollTop,z=H===0?1:Math.round(H*1e3/16);function P(){X==="horizontal"?V.scrollLeft+=($-M)/z:V.scrollTop+=($-M)/z,++D<z&&je(P)}P()},w=(V=a.default?.())=>{r.value=[],V=V?.filter($=>typeof $.children!="string"),V&&V.length&&i(V),s(e.modelValue),(0,t.nextTick)(()=>{g()})},b=V=>{o=V.fixed};(0,t.watch)(()=>a.default?.(),V=>{w(V)});const k=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;(0,t.watch)(()=>e.modelValue,V=>{if(s(V),g(),o){let $=De(l.value).top+k(),H=Math.ceil($-e.top);window.scrollTo({top:H,behavior:"smooth"})}}),(0,t.onMounted)(w),(0,t.onActivated)(w);const f={isBegin:()=>c.value==0,isEnd:()=>c.value==r.value.length-1,next:()=>{c.value+=1,f.updateValue(r.value[c.value])},prev:()=>{c.value-=1,f.updateValue(r.value[c.value])},updateValue:V=>{n("update:modelValue",V.paneKey),n("change",V)},tabChange:(V,$)=>{n("click",V),!(V.disabled||c.value==$)&&(c.value=$,f.updateValue(V))},setTabItemRef:(V,$)=>{u.value[$]=V}},{tabsContentRef:v,touchState:m,touchMethods:A}=Kb(e,f),C=(0,t.computed)(()=>{let V=c.value*100;m.moving&&(V+=m.offset);let $={transform:e.direction=="horizontal"?`translate3d(-${V}%, 0, 0)`:`translate3d( 0,-${V}%, 0)`,transitionDuration:m.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&($={}),$}),y=(0,t.computed)(()=>({background:e.background})),p=(0,t.computed)(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),N=(0,t.computed)(()=>{if(!e.titleGutter)return{};const V=me(e.titleGutter);return e.direction==="vertical"?{marginTop:V,marginBottom:V}:{marginLeft:V,marginRight:V}}),T=(0,t.computed)(()=>a.fixedTitle);return{navRef:h,tabsContentRef:v,titles:r,contentStyle:C,tabsNavStyle:y,titleStyle:N,tabsActiveStyle:p,container:l,getScrollY:d,onStickyScroll:b,...f,...A,hasFixedTitle:T}}}),Wb=["onClick"],Yb={key:0,class:"fox-tabs__titles-fixed-item"},Xb=["onClick"],Qb={key:0,class:"fox-tabs__titles-fixed-item"};function Gb(e,n,a,l,o,r){const i=(0,t.resolveComponent)("JoySmile"),c=(0,t.resolveComponent)("fox-sticky");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:(0,t.normalizeStyle)(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?(0,t.renderSlot)(e.$slots,"titles",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.titles,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:s.paneKey==e.modelValue,disabled:s.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:h=>e.tabChange(s,d),key:s.paneKey},[(0,t.renderSlot)(e.$slots,"title",{title:s.title,paneKey:s.paneKey},()=>[e.type=="line"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-tabs__titles-item__line",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},null,4)):(0,t.createCommentVNode)("",!0),e.type=="smile"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-tabs__titles-item__smile",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},[(0,t.createVNode)(i,{color:e.color},null,8,["color"])],4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},(0,t.toDisplayString)(s.title),3)])],14,Wb))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Yb,[(0,t.renderSlot)(e.$slots,"fixedTitle")])):(0,t.createCommentVNode)("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:(0,t.normalizeStyle)(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?(0,t.renderSlot)(e.$slots,"titles",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.titles,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:s.paneKey==e.modelValue,disabled:s.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:h=>e.tabChange(s,d),key:s.paneKey,ref_for:!0,ref:h=>e.setTabItemRef(h,d)},[(0,t.renderSlot)(e.$slots,"title",{title:s.title,paneKey:s.paneKey},()=>[e.type=="line"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-tabs__titles-item__line",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},null,4)):(0,t.createCommentVNode)("",!0),e.type=="smile"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-tabs__titles-item__smile",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},[(0,t.createVNode)(i,{color:e.color},null,8,["color"])],4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},(0,t.toDisplayString)(s.title),3)])],14,Xb))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Qb,[(0,t.renderSlot)(e.$slots,"fixedTitle")])):(0,t.createCommentVNode)("",!0)],64))],6)),(0,t.createElementVNode)("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:(0,t.normalizeStyle)(e.contentStyle),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[(0,t.renderSlot)(e.$slots,"default")],36)],2)}var lo=re(jb,[["render",Gb]]),{create:Zb}=ee("tab-pane"),_b=Zb({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=(0,t.inject)("tabsOpiton"),l=(0,t.computed)(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:l}}});function Jb(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:(0,t.normalizeStyle)(e.paneStyle)},[(0,t.renderSlot)(e.$slots,"default")],6)}var ao=re(_b,[["render",Jb]]),{componentName:Ri,create:ev}=ee("indicator"),tv=ev({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:a}=(0,t.toRefs)(e);return{classes:(0,t.computed)(()=>{const l=Ri;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Ri,padZero:rt}}});function nv(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.size,i=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:i},[i===e.current?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(`${e.componentName}--number`)},(0,t.toDisplayString)(e.fillZero&&e.padZero(i)||i),3)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var oo=re(tv,[["render",nv]]),{componentName:lv,create:av}=ee("side-navbar"),ov=av({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=(0,t.ref)(null),a=(0,t.reactive)({count:1,observer:null}),l=(0,t.computed)(()=>({[lv]:!0})),o=(i,c=1)=>{for(let s=0;s<i.length;s++){let d=i[s];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*c+"px",d.className.includes("fox-side-navbar-item")||o(Array.from(d.children[1].children),++a.count))}a.count--},r=()=>{let i=n.value.childNodes;i.length&&(i=Array.from(i).filter(c=>c.nodeType!==3).map(c=>c),o(i))};return(0,t.onMounted)(()=>{r(),a.observer=new MutationObserver(function(){a.count=1,r()}),a.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(a),list:n,classes:l}}}),rv={class:"fox-side-navbar__content"},iv={class:"fox-side-navbar__content__list",ref:"list"};function sv(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",rv,[(0,t.createElementVNode)("view",iv,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var ro=re(ov,[["render",sv]]),{componentName:cv,create:uv}=ee("side-navbar-item"),dv=uv({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[cv]:!0})),handleClick:()=>{n.emit("click")}})}),fv=["ikey"],mv={class:"fox-side-navbar-item__title"};function hv(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...i)=>e.handleClick&&e.handleClick(...i),["stop"])),ikey:e.ikey},[(0,t.createElementVNode)("span",mv,(0,t.toDisplayString)(e.title),1)],10,fv)}var io=re(dv,[["render",hv]]),{componentName:pv,create:gv}=ee("sub-side-navbar"),yv=gv({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:oe.ArrowDown2,ArrowUp2:oe.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=(0,t.reactive)({direction:""}),l=(0,t.computed)(()=>({[pv]:!0})),o=(0,t.computed)(()=>({height:a.direction?"0px":"auto"})),r=()=>{n.emit("title-click"),a.direction=a.direction?"":"up"};return(0,t.onMounted)(()=>{a.direction=e.open?"":"up"}),{...(0,t.toRefs)(a),classes:l,style:o,handleClick:r}}}),bv=["ikey"],vv={class:"fox-sub-side-navbar__title__text"},Sv={class:"fox-sub-side-navbar__title__icon"};function kv(e,n,a,l,o,r){const i=(0,t.resolveComponent)("ArrowDown2"),c=(0,t.resolveComponent)("ArrowUp2");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ikey:e.ikey},[(0,t.createElementVNode)("view",{class:"fox-sub-side-navbar__title",onClick:n[0]||(n[0]=(0,t.withModifiers)((...s)=>e.handleClick&&e.handleClick(...s),["stop"]))},[(0,t.createElementVNode)("span",vv,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",Sv,[e.direction?((0,t.openBlock)(),(0,t.createBlock)(c,{key:1})):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0}))])]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,bv)}var so=re(yv,[["render",kv]]),{componentName:wv,create:Cv}=ee("range"),Nv=Cv({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const a=(0,t.ref)(0);let l,o;const r=(0,t.ref)(),i=(0,t.ref)(),c=lt(),s=(0,t.computed)(()=>{const{marks:D,max:M,min:z}=e;return Object.keys(D).map(parseFloat).sort((P,K)=>P-K).filter(P=>{const K=de(P);return K>=de(z)&&K<=de(M)})}),d=(0,t.computed)(()=>Number(e.max)-Number(e.min)),h=(0,t.computed)(()=>{const D=wv;return{[D]:!0,[`${D}-disabled`]:e.disabled,[`${D}-vertical`]:e.vertical,[`${D}-show-number`]:!e.hiddenRange}}),u=(0,t.computed)(()=>{const D="fox-range-container";return{[D]:!0,[`${D}-vertical`]:e.vertical}}),g=(0,t.computed)(()=>({background:e.inactiveColor})),S=(0,t.computed)(()=>({borderColor:e.buttonColor})),w=D=>!!e.range&&Array.isArray(D),b=()=>{const{modelValue:D,min:M}=e;return w(D)?`${(D[1]-D[0])*100/d.value}%`:`${(D-Number(M))*100/d.value}%`},k=()=>{const{modelValue:D,min:M}=e;return w(D)?`${(D[0]-Number(M))*100/d.value}%`:"0%"},f=(0,t.computed)(()=>e.vertical?{height:b(),top:k(),background:e.activeColor,transition:i.value?"none":void 0}:{width:b(),left:k(),background:e.activeColor,transition:i.value?"none":void 0}),v=D=>{const M="fox-range-mark",{modelValue:z,max:P,min:K}=e;let j=Number(K),x=Number(P);if(e.range){const[ne,W]=z;j=ne,x=W}else x=z;let _=D<=x&&D>=j;return{[`${M}-text`]:!0,[`${M}-text-active`]:_}},m=D=>{const{min:M,vertical:z}=e;let P={left:`${(D-Number(M))/d.value*100}%`};return z&&(P={top:`${(D-Number(M))/d.value*100}%`}),P},A=D=>{const{modelValue:M,max:z,min:P}=e;let K=Number(P),j=Number(z);if(e.range){const[x,_]=M;K=x,j=_}return{background:D<=j&&D>=K?e.activeColor:e.inactiveColor}},C=D=>{const{min:M,max:z,step:P}=e;return D=Math.max(+M,Math.min(D,+z)),Math.round(D/+P)*+P},y=(D,M)=>JSON.stringify(D)===JSON.stringify(M),p=D=>D[0]>D[1]?D.slice(0).reverse():D,N=(D,M)=>{w(D)?D=p(D).map(C):D=C(D),y(D,e.modelValue)||n("update:modelValue",D),M&&!y(D,l)&&n("change",D)},T=D=>{if(e.disabled)return;const{min:M,modelValue:z}=e,P=De(r);let K=D.clientX-P.left,j=P.width;e.vertical&&(K=D.clientY-P.top,j=P.height);const x=Number(M)+K/j*d.value;if(w(z)){const[_,ne]=z;x<=(_+ne)/2?N([x,ne],!0):N([_,x],!0)}else N(x,!0)},V=D=>{e.disabled||(c.start(D),o=e.modelValue,w(o)?l=o.map(C):l=C(o),i.value="start")},$=D=>{if(e.disabled)return;i.value==="start"&&n("drag-start"),c.move(D),i.value="draging";const M=De(r);let z=c.deltaX.value,P=M.width,K=z/P*d.value;e.vertical&&(z=c.deltaY.value,P=M.height,K=z/P*d.value),w(l)?o[a.value]=l[a.value]+K:o=l+K,N(o),D.stopPropagation(),D.preventDefault()},H=()=>{e.disabled||(i.value==="draging"&&(N(o,!0),n("drag-end")),i.value="")},X=D=>dn(e.modelValue)&&typeof D=="number"?e.modelValue[D]:Number(e.modelValue);return{root:r,classes:h,wrapperStyle:g,buttonStyle:S,onClick:T,onTouchStart:V,onTouchMove:$,onTouchEnd:H,...(0,t.toRefs)(e),barStyle:f,curValue:X,buttonIndex:a,containerClasses:u,markClassName:v,marksStyle:m,marksList:s,tickStyle:A}}}),Av={key:0,class:"fox-range-min"},Bv={key:0,class:"fox-range-mark"},Tv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Vv={key:0,class:"number"},$v=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Ev={key:0,class:"number"},Dv={key:1,class:"fox-range-max"};function Iv(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.containerClasses)},[e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Av,(0,t.toDisplayString)(+e.min),1)),(0,t.createElementVNode)("view",{ref:"root",style:(0,t.normalizeStyle)(e.wrapperStyle),class:(0,t.normalizeClass)(e.classes),onClick:n[9]||(n[9]=(0,t.withModifiers)((...i)=>e.onClick&&e.onClick(...i),["stop"]))},[e.marksList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",Bv,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.marksList,i=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:i,class:(0,t.normalizeClass)(e.markClassName(i)),style:(0,t.normalizeStyle)(e.marksStyle(i))},[(0,t.createTextVNode)((0,t.toDisplayString)(i)+" ",1),(0,t.createElementVNode)("span",{class:"fox-range-tick",style:(0,t.normalizeStyle)(e.tickStyle(i))},null,4)],6))),128))])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-range-bar",style:(0,t.normalizeStyle)(e.barStyle)},[e.range?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)([0,1],i=>(0,t.createElementVNode)("view",{key:i,role:"slider",class:(0,t.normalizeClass)({"fox-range-button-wrapper-left":i==0,"fox-range-button-wrapper-right":i==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(i),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:(0,t.withModifiers)(c=>{typeof i=="number"&&(e.buttonIndex=i),e.onTouchStart(c)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=(0,t.withModifiers)((...c)=>e.onTouchMove&&e.onTouchMove(...c),["stop","prevent"])),onTouchend:n[1]||(n[1]=(0,t.withModifiers)((...c)=>e.onTouchEnd&&e.onTouchEnd(...c),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=(0,t.withModifiers)((...c)=>e.onTouchEnd&&e.onTouchEnd(...c),["stop","prevent"])),onClick:n[3]||(n[3]=c=>c.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Vv,(0,t.toDisplayString)(e.curValue(i)),1))],4))],42,Tv)),64)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=(0,t.withModifiers)(i=>{e.onTouchStart(i)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=(0,t.withModifiers)((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=(0,t.withModifiers)((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:n[8]||(n[8]=i=>i.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Ev,(0,t.toDisplayString)(e.curValue()),1))],4))],40,$v))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Dv,(0,t.toDisplayString)(+e.max),1))],2)}var Gt=re(Nv,[["render",Iv]]),{create:qv,scope:xv}=ee("short-password"),Pv=qv({components:{[Se.name]:Se,Tips:oe.Tips},props:{title:{type:String},desc:{type:String},tips:{type:String},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,pe.useFoxI18n)(xv),l=a(e,["title","desc","tips"]),o=(0,t.ref)(e.modelValue),r=(0,t.computed)(()=>d(Number(e.length))),i=(0,t.ref)(e.visible),c=u=>{u.stopPropagation(),n("focus")};(0,t.watch)(()=>e.visible,u=>{i.value=u}),(0,t.watch)(()=>e.modelValue,u=>{o.value=u,String(u).length===r.value&&n("complete",u)});const s=()=>{n("update:visible",!1),n("close")},d=u=>Math.min(Math.max(4,u),6);return{comLen:r,realInput:o,onTouchStart:c,range:d,close:s,onTips:()=>{n("tips")},show:i,...l}}}),Mv={class:"fox-short-password-title"},zv={class:"fox-short-password-subtitle"},Lv={class:"fox-short-password-wrapper"},Rv={key:0,class:"fox-short-password__item-icon"},Fv={class:"fox-short-password__message"},Ov={class:"fox-short-password--error"},Kv={key:0,class:"fox-short-password--forget"};function Uv(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Tips"),c=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",null,[(0,t.createVNode)(c,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":n[2]||(n[2]=s=>e.show=s),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Mv,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",zv,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",Lv,[(0,t.createElementVNode)("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(new Array(e.comLen),(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?((0,t.openBlock)(),(0,t.createElementBlock)("view",Rv)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",Fv,[(0,t.createElementVNode)("view",Ov,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",Kv,[(0,t.createVNode)(i,{class:"icon",width:"11px",height:"11px"}),(0,t.createElementVNode)("view",{onClick:n[1]||(n[1]=(...s)=>e.onTips&&e.onTips(...s))},(0,t.toDisplayString)(e.tips),1)])):(0,t.createCommentVNode)("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}var co=re(Pv,[["render",Uv]]),Hv=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},jv=class{options;constructor(e){this.options=e}upload(){const e=this.options,n=new XMLHttpRequest;if(n.timeout=e.timeout,n.upload){n.upload.addEventListener("progress",a=>{e.onProgress?.(a,e)},!1),n.onreadystatechange=()=>{n.readyState===4&&(n.status==e.xhrState?e.onSuccess?.(n.responseText,e):e.onFailure?.(n.responseText,e))},n.withCredentials=e.withCredentials,n.open(e.method,e.url,!0);for(const[a,l]of Object.entries(e.headers))n.setRequestHeader(a,l);e.onStart?.(e),e.beforeXhrUpload?e.beforeXhrUpload(n,e):n.send(e.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}},Wv=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},Fi=(e,{args:n=[],done:a,canceled:l})=>{if(e){const o=e.apply(null,n);dt(o)?o.then(r=>{r?a(r):l&&l()}).catch(()=>{}):o?a():l&&l()}else a()},{create:Yv}=ee("progress"),Xv=Yv({components:{Checked:oe.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!(0,t.useSlots)().default,a=(0,t.ref)(e.strokeWidth+"px"),l=(0,t.ref)(),o=(0,t.ref)(),r=(0,t.computed)(()=>{const s=de(e.percentage);return s>=100?100:s}),i=(0,t.computed)(()=>({width:r.value+"%",background:e.strokeColor||""})),c=(0,t.computed)(()=>({color:e.textColor||""}));return(0,t.onMounted)(()=>{}),{height:a,percentage:r,bgStyle:i,textStyle:c,progressOuter:l,insideText:o,slotDefault:n}}}),Qv={class:"fox-progress"},Gv={key:0,class:"fox-progress-text"};function Zv(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",Qv,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-progress-outer",[e.showText&&!e.textInside?"fox-progress-outer-part":"",e.size?"fox-progress-"+e.size:""]]),ref:"progressOuter",style:(0,t.normalizeStyle)({height:e.height})},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-progress-inner",e.status=="active"?"fox-active":""]),style:(0,t.normalizeStyle)(e.bgStyle)},null,6),e.showText&&e.textInside&&!e.slotDefault?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-progress-text fox-progress-insidetext",ref:"insideText",style:(0,t.normalizeStyle)({lineHeight:e.height,left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`,background:e.textBackground||e.strokeColor})},[(0,t.createElementVNode)("span",{style:(0,t.normalizeStyle)(e.textStyle)},(0,t.toDisplayString)(e.percentage)+(0,t.toDisplayString)(e.isShowPercentage?"%":""),5)],4)):(0,t.createCommentVNode)("",!0),e.showText&&e.textInside&&e.slotDefault?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,ref:"insideText",style:(0,t.normalizeStyle)({position:"absolute",top:"50%",left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`})},[(0,t.renderSlot)(e.$slots,"default")],4)):(0,t.createCommentVNode)("",!0)],6),e.showText&&!e.textInside?((0,t.openBlock)(),(0,t.createElementBlock)("div",Gv,[e.status=="active"||e.status==""?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,style:(0,t.normalizeStyle)(e.textStyle)},(0,t.toDisplayString)(e.percentage)+(0,t.toDisplayString)(e.isShowPercentage?"%":""),5)):e.status=="icon"?(0,t.renderSlot)(e.$slots,"icon-name",{key:1},()=>[(0,t.createVNode)(i,{width:"15px",height:"15px",color:"#439422"})]):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)])}var Zt=re(Xv,[["render",Zv]]),{componentName:_v,create:Jv,scope:eS}=ee("uploader"),tS=Jv({components:{[Zt.name]:Zt,Photograph:oe.Photograph,Failure:oe.Failure,Loading:oe.Loading,Del:oe.Del,Link:oe.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=(0,pe.useFoxI18n)(eS),l=(0,t.reactive)(e.fileList);let o=[];const r=(0,t.computed)(()=>({[_v]:!0})),i=()=>{let v={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(v.capture="camera"),(0,t.h)("input",v)},c=v=>{v.value=""},s=v=>{n("file-item-click",{fileItem:v})},d=(v,m)=>{const A=new Hv;A.url=e.url,A.formData=v.formData,A.timeout=e.timeout*1,A.method=e.method,A.xhrState=e.xhrState,A.headers=e.headers,A.withCredentials=e.withCredentials,A.beforeXhrUpload=e.beforeXhrUpload;try{A.sourceFile=v.formData.get(e.name)}catch{}A.onStart=y=>{v.status="ready",v.message=a("readyUpload"),h(m),n("start",y)},A.onProgress=(y,p)=>{v.status="uploading",v.message=a("uploading"),v.percentage=(y.loaded/y.total*100).toFixed(0),n("progress",{event:y,option:p,percentage:v.percentage})},A.onSuccess=(y,p)=>{v.status="success",v.message=a("success"),n("success",{responseText:y,option:p,fileItem:v}),n("update:fileList",l)},A.onFailure=(y,p)=>{v.status="error",v.message=a("error"),n("failure",{responseText:y,option:p,fileItem:v})};let C=new jv(A);e.autoUpload?C.upload():o.push(new Promise((y,p)=>{y(C)}))},h=(v=-1)=>{v>-1?o.splice(v,1):(o=[],l.splice(0,l.length))},u=()=>{Promise.all(o).then(v=>{v.forEach(m=>m.upload())})},g=v=>{v.forEach((m,A)=>{const C=new FormData;for(const[p,N]of Object.entries(e.data))C.append(p,N);C.append(e.name,m);const y=(0,t.reactive)(new Wv);if(y.name=m.name,y.status="ready",y.type=m.type,y.formData=C,y.message=a("waitingUpload"),d(y,A),e.isPreview&&m.type.includes("image")){const p=new FileReader;p.onload=N=>{y.url=N.target.result,l.push(y)},p.readAsDataURL(m)}else l.push(y)})},S=v=>{const m=e.maximum*1,A=e.maximize*1,C=new Array;v=v.filter(p=>p.size>A?(C.push(p),!1):!0),C.length&&n("oversize",C);let y=v.length+l.length;return y>m&&v.splice(v.length-(y-m)),v},w=(v,m)=>{l.splice(m,1),n("delete",{file:v,fileList:l,index:m})},b=(v,m)=>{h(m),Fi(e.beforeDelete,{args:[v,l],done:()=>w(v,m)})},k=v=>{if(e.disabled)return;const m=v.target;let{files:A}=m;e.beforeUpload?e.beforeUpload(A).then(C=>f(C)):f(A),n("change",{fileList:l,event:v}),e.clearInput&&c(m)},f=v=>{g(S(new Array().slice.call(v)))};return{onChange:k,onDelete:b,fileList:l,classes:r,fileItemClick:s,clearUploadQueue:h,submit:u,renderInput:i}}}),nS={key:0,class:"fox-uploader__slot"},lS={key:0,class:"fox-uploader__preview-img"},aS={key:0,class:"fox-uploader__preview__progress"},oS={class:"fox-uploader__preview__progress__msg"},rS=["onClick"],iS=["onClick","src"],sS={key:3,class:"fox-uploader__preview-img__file"},cS=["onClick"],uS={class:"file__name_tips"},dS={class:"tips"},fS={key:1,class:"fox-uploader__preview-list"},mS=["onClick"],hS={class:"file__name_tips"};function pS(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Failure"),c=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Link"),d=(0,t.resolveComponent)("Del"),h=(0,t.resolveComponent)("fox-progress"),u=(0,t.resolveComponent)("Photograph");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",nS,[(0,t.renderSlot)(e.$slots,"default"),Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.fileList,(g,S)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-uploader__preview",[e.listType]]),key:g.uid},[e.listType=="picture"&&!e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",lS,[g.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",aS,[g.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[g.status=="error"?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,color:"#fff"})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1,name:"loading",color:"#fff"}))],64)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",oS,(0,t.toDisplayString)(g.message),1)])):(0,t.createCommentVNode)("",!0),e.isDeletable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"close",onClick:w=>e.onDelete(g,S)},[(0,t.renderSlot)(e.$slots,"delete-icon",{},()=>[(0,t.createVNode)(i)])],8,rS)):(0,t.createCommentVNode)("",!0),g?.type?.includes("image")&&g.url?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,class:"fox-uploader__preview-img__c",onClick:w=>e.fileItemClick(g),src:g.url},null,8,iS)):((0,t.openBlock)(),(0,t.createElementBlock)("view",sS,[(0,t.createElementVNode)("view",{onClick:w=>e.fileItemClick(g),class:"fox-uploader__preview-img__file__name"},[(0,t.createElementVNode)("view",uS,(0,t.toDisplayString)(g.name),1)],8,cS)])),(0,t.createElementVNode)("view",dS,(0,t.toDisplayString)(g.name),1)])):e.listType=="list"?((0,t.openBlock)(),(0,t.createElementBlock)("view",fS,[(0,t.createElementVNode)("view",{onClick:w=>e.fileItemClick(g),class:(0,t.normalizeClass)(["fox-uploader__preview-img__file__name",[g.status]])},[(0,t.createVNode)(s,{class:"fox-uploader__preview-img__file__link"}),(0,t.createElementVNode)("view",hS,(0,t.toDisplayString)(g.name),1),e.isDeletable?((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:w=>e.onDelete(g,S)},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],10,mS),g.status=="uploading"?((0,t.openBlock)(),(0,t.createBlock)(h,{key:0,size:"small",percentage:g.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(["fox-uploader__upload",[e.listType]])},[(0,t.renderSlot)(e.$slots,"upload-icon",{},()=>[(0,t.createVNode)(u,{color:"#808080"})]),((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):(0,t.createCommentVNode)("",!0)],2)}var uo=re(tS,[["render",pS]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a3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:bS,scope:vS}=ee("number-keyboard"),SS=bS({components:{[Se.name]:Se},props:{confirmText:{type:String},title:{type:String},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,pe.useFoxI18n)(vS),l=a(e,["confirmText"]),o=(0,t.ref)(void 0),r=(0,t.ref)(e.visible),i=(0,t.ref)();function c(){const{customKey:f}=e;let v={id:"lock",type:"lock"},m=Array.isArray(f)?f:[f];return m.length===1&&(v={id:m[0],type:"custom"}),[...s(),v,{id:0,type:"number"},{id:"delete",type:"delete"}]}function s(){const f=[];for(let v=1;v<=9;v++)f.push({id:v,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function d(){const f=s(),{customKey:v}=e;let m=Array.isArray(v)?v:[v];return m.length>2&&(m=[m[0],m[1]]),m.length==2&&e.title&&e.type!="rightColumn"&&(m=[m[0]]),m.length===1?e.title&&e.type!="rightColumn"?f.push({id:m[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:m[0],type:"custom"}):m.length===2&&f.push({id:m[0],type:"custom"},{id:0,type:"number"},{id:m[1],type:"custom"}),f}const h=(0,t.computed)(()=>e.type=="rightColumn"||e.title!=""?d():c()),u=()=>{e.visible&&n("blur")},g=f=>{const v=i.value;v&&!v.contains(f.target)&&u()};(0,t.watch)(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",g,!1):window.removeEventListener("touchstart",g,!1)});function S(f,v){v.stopPropagation(),o.value=f.id,(f.type=="number"||f.type=="custom")&&(n("input",f.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+f.id)),f.type=="lock"&&k(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function w(f){f.stopPropagation()}function b(f){f.preventDefault(),o.value=void 0}function k(){n("update:visible",!1),n("close")}return{...l,delImg:gS,lockImg:yS,clickKeyIndex:o,defaultKey:c,closeBoard:k,onTouchEnd:b,onTouchMove:w,onTouchstart:S,keysList:h,genCustomKeys:d,getBasicKeys:s,root:i,show:r}}}),kS={ref:"root"},wS={class:"fox-number-keyboard"},CS={key:0,class:"fox-number-keyboard__header"},NS={class:"fox-number-keyboard__title"},AS={class:"fox-number-keyboard__body"},BS={class:"fox-number-keyboard__keys"},TS=["onTouchstart"],VS=["src"],$S=["src"],ES={key:0,class:"fox-number-keyboard__sidebar"},DS={class:"fox-key__wrapper"},IS=["src"];function qS(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",kS,[(0,t.createVNode)(i,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=c=>e.show=c),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",wS,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",CS,[(0,t.createElementVNode)("h3",NS,(0,t.toDisplayString)(e.title),1),e.type=="default"?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-number-keyboard__close",onClick:n[0]||(n[0]=c=>e.closeBoard())},(0,t.toDisplayString)(e.confirmText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",AS,[(0,t.createElementVNode)("div",BS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.keysList,c=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:"key"+c.id,class:(0,t.normalizeClass)(["fox-key__wrapper",{"fox-key__wrapper--wider":c.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{"fox-key--active":c.id==e.clickKeyIndex},{"fox-key--lock":c.type=="lock"},{"fox-key--delete":c.type=="delete"}]),onTouchstart:s=>e.onTouchstart(c,s),onTouchmove:n[1]||(n[1]=s=>e.onTouchMove(s)),onTouchend:n[2]||(n[2]=s=>e.onTouchEnd(s))},[c.type=="number"||c.type=="custom"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(c.id),1)],64)):(0,t.createCommentVNode)("",!0),c.type=="lock"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:1,src:e.lockImg},null,8,VS)):(0,t.createCommentVNode)("",!0),c.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,$S)):(0,t.createCommentVNode)("",!0)],42,TS)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",ES,[(0,t.createElementVNode)("div",DS,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=c=>e.onTouchstart({id:"delete",type:"delete"},c)),onTouchmove:n[4]||(n[4]=c=>e.onTouchMove(c)),onTouchend:n[5]||(n[5]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[(0,t.createElementVNode)("img",{src:e.delImg},null,8,IS)],34)]),(0,t.createElementVNode)("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=c=>e.closeBoard())},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},(0,t.toDisplayString)(e.confirmText),3)])])):(0,t.createCommentVNode)("",!0)])])]),_:1},8,["visible","popClass"])],512)}var fo=re(SS,[["render",qS]]),{componentName:xS,create:PS}=ee("swipe"),MS=PS({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n}){const a=(0,t.computed)(()=>({[xS]:!0})),l=v=>v.value?.clientWidth||0,o=(0,t.ref)(),r=(0,t.computed)(()=>l(o)),i=(0,t.ref)(),c=(0,t.computed)(()=>l(i));let s=!1,d="",h="";const u=(0,t.reactive)({offset:0,moving:!1}),g=(v="")=>{s=!0,v&&(u.offset=v==="left"?-c.value:r.value),n("open",{name:e.name,position:d||v})},S=()=>{u.offset=0,s=!1,n("close",{name:e.name,position:d})},w=(0,t.computed)(()=>({transform:`translate3d(${u.offset}px, 0, 0)`})),b=v=>{d=v>0?"right":"left";let m=v;switch(d){case"left":s&&h===d?m=-c.value:m=Math.abs(v)>c.value?-c.value:v;break;case"right":s&&h===d?m=r.value:m=Math.abs(v)>r.value?r.value:v;break}u.offset=m},k=lt(),f={onTouchStart(v){e.disabled||k.start(v)},onTouchMove(v){e.disabled||(k.move(v),k.isHorizontal()&&(u.moving=!0,b(k.deltaX.value),e.touchMovePreventDefault&&v.preventDefault(),e.touchMoveStopPropagation&&v.stopPropagation()))},onTouchEnd(){if(u.moving)switch(u.moving=!1,h=d,d){case"left":Math.abs(u.offset)<=c.value/2?S():(u.offset=-c.value,g());break;case"right":Math.abs(u.offset)<=r.value/2?S():(u.offset=r.value,g());break}}};return be({open:g,close:S}),{classes:a,touchStyle:w,...f,leftRef:o,rightRef:i,open:g,close:S}}}),zS={class:"fox-swipe__left",ref:"leftRef"},LS={class:"fox-swipe__content"},RS={class:"fox-swipe__right",ref:"rightRef"};function FS(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.touchStyle),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[(0,t.createElementVNode)("view",zS,[(0,t.renderSlot)(e.$slots,"left")],512),(0,t.createElementVNode)("view",LS,[(0,t.renderSlot)(e.$slots,"default")]),(0,t.createElementVNode)("view",RS,[(0,t.renderSlot)(e.$slots,"right")],512)],38)}var mo=re(MS,[["render",FS]]),{componentName:OS,create:KS}=ee("action-sheet"),US=KS({components:{Popup:Se,Loading:oe.Loading},props:{...at,cancelTxt:{type:String},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String},title:{type:String},color:{type:String,default:"#ee0a24"},description:{type:String},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const a=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[OS]:!0}));return{slotDefault:a,isHighlight:s=>e.chooseTagValue&&e.chooseTagValue===s[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(s,d)=>{!s.disable&&!s.loading&&(n("choose",s,d),n("update:visible",!1))},close:s=>{n("close",s),n("update:visible",!1)},classes:l}}}),HS={key:0,class:"fox-action-sheet__title"},jS={key:1},WS={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},YS={key:1,class:"fox-action-sheet__menu"},XS=["onClick"],QS={key:1},GS={class:"fox-action-sheet__subdesc"};function ZS(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Loading"),c=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createBlock)(c,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes)},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",HS,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",jS,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",WS,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",YS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.menuItems,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":s.disable,"fox-action-sheet__item--loading":s.loading}]),style:(0,t.normalizeStyle)({color:e.isHighlight(s)||s.color}),key:d,onClick:h=>e.chooseItem(s,d)},[s.loading?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",QS,(0,t.toDisplayString)(s[e.optionTag]),1)),(0,t.createElementVNode)("view",GS,(0,t.toDisplayString)(s[e.optionSubTag]),1)],14,XS))),128))])):(0,t.createCommentVNode)("",!0),e.cancelTxt?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:"fox-action-sheet__cancel",onClick:n[0]||(n[0]=(...s)=>e.cancelActionSheet&&e.cancelActionSheet(...s))},(0,t.toDisplayString)(e.cancelTxt),1)):(0,t.createCommentVNode)("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}var ho=re(US,[["render",ZS]]),{componentName:_S,create:JS}=ee("backtop"),e1=JS({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:a}){const l=(0,t.reactive)({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),o=(0,t.computed)(()=>({[_S]:!0,show:l.backTop})),r=(0,t.computed)(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function i(){l.scrollEl instanceof Window?l.scrollTop=l.scrollEl.pageYOffset:l.scrollTop=l.scrollEl.scrollTop,l.backTop=l.scrollTop>=e.distance}function c(w=0){l.scrollEl instanceof Window?window.scrollTo(0,w):l.scrollEl.scrollTop=w}function s(){let w=Ge(function b(){var k=e.duration-Math.max(0,l.startTime-+new Date+e.duration),f=k*-l.scrollTop/e.duration+l.scrollTop;c(f),w=Ge(b),(k==e.duration||f==0)&&Qo(w)})}function d(){l.scrollEl.addEventListener("scroll",i,!1),l.scrollEl.addEventListener("resize",i,!1)}function h(){l.scrollEl.removeEventListener("scroll",i,!1),l.scrollEl.removeEventListener("resize",i,!1)}function u(w){l.startTime=+new Date,e.isAnimation&&e.duration>0?s():c(),n("click",w)}function g(){S.value?l.scrollEl=S.value.el:e.elId&&document.getElementById(e.elId)&&(l.scrollEl=document.getElementById(e.elId)),d()}(0,t.onMounted)(()=>{e.distance==0&&(l.backTop=!0),g()}),(0,t.onUnmounted)(()=>{h()}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1,g())}),(0,t.onDeactivated)(()=>{l.keepAlive=!0,h()});const S=(0,t.computed)(()=>{if(typeof a.content=="function"){const w=a.content();return Array.isArray(w)?w[0]:w}return null});return()=>{const w=[];S.value&&w.push(S.value);const b=[];if(typeof a.default=="function")b.push(a.default());else{const f=(0,t.h)(oe.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});b.push(f)}const k=(0,t.h)("div",{class:o.value,style:r.value,onClick:u},b);return w.push(k),w}}}),po=e1,{componentName:t1,create:n1}=ee("drag"),l1=n1({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,t.reactive)({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),o=(0,t.computed)(()=>({[t1]:!0}));function r(){const u=document.documentElement;l.elWidth=a.value.offsetWidth,l.elHeight=a.value.offsetHeight,l.screenWidth=u.clientWidth,l.screenHeight=u.clientHeight}function i(u){l.boundary.left?+u.style.left.split("px")[0]>l.boundary.left?(u.style.left=+u.style.left.split("px")[0]-10+"px",je(()=>{i(u)})):u.style.left=`${l.boundary.left}px`:+u.style.left.split("px")[0]>10?(u.style.left=+u.style.left.split("px")[0]-10+"px",je(()=>{i(u)})):u.style.left="0px"}function c(u,g){g-parseInt(u.style.left.split("px")[0])>10?(u.style.left=parseInt(u.style.left.split("px")[0])+10+"px",je(()=>{c(u,g)})):u.style.left=g+"px"}function s(u){u.preventDefault();const g=u.currentTarget;if(u.targetTouches.length===1){const S=u.targetTouches[0];l.nx=S.clientX-l.position.x,l.ny=S.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const w=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>w?l.xPum=w:l.xPum<=l.boundary.left&&(l.xPum=l.boundary.left),l.yPum<l.boundary.top?l.yPum=l.boundary.top:l.yPum>l.screenHeight-l.elHeight-l.boundary.bottom&&(l.yPum=l.screenHeight-l.elHeight-l.boundary.bottom),e.direction!="y"&&(g.style.left=l.xPum+"px"),e.direction!="x"&&(g.style.top=l.yPum+"px")}}function d(u){const g=u.currentTarget;let S=u.changedTouches[0].clientX;const w=l.screenWidth-l.elWidth-l.boundary.right;S>w?S=w:S<l.boundary.left?S=l.boundary.left:S=S<l.screenWidth/2?l.boundary.left:w,e.direction!="y"&&e.attract&&(S<l.screenWidth/2?je(()=>{i(g)}):je(()=>{c(g,w)})),e.direction!="x"&&(g.style.top=l.yPum+"px")}function h(u){const g=u.currentTarget,S=u.touches[0],w=u.targetTouches[0];l.startTop=g.offsetTop,l.startLeft=g.offsetLeft,l.position.x=S.clientX,l.position.y=S.clientY,l.nx=w.clientX-l.position.x,l.ny=w.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return(0,t.onMounted)(()=>{r(),l.boundary=e.boundary}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1)}),(0,t.onDeactivated)(()=>{l.keepAlive=!0;const u=a;u.value.removeEventListener("touchstart",h),u.value.removeEventListener("touchmove",s),u.value.removeEventListener("touchend",d)}),{classes:o,myDrag:a,touchStart:h,touchMove:s,touchEnd:d}}});function a1(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=i=>e.touchStart(i)),onTouchmove:n[1]||(n[1]=i=>e.touchMove(i)),onTouchend:n[2]||(n[2]=i=>e.touchEnd(i))},[(0,t.renderSlot)(e.$slots,"default")],34)}var go=re(l1,[["render",a1]]),o1={width:{type:[String,Number]},height:{type:[String,Number]},plain:{type:[Boolean]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},showClose:{type:Boolean,default:!1},closeIcon:{type:Object},content:{type:[String,Object]},showFooter:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},cancelButtonText:{type:String},cancelText:{type:String},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},confirmButtonText:{type:String},confirmText:{type:String},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},footerDirection:{type:String,default:"horizontal"},popClass:{type:String},popStyle:{type:Object},beforeClose:{type:Function}},r1=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function i1(e,n,a,l,o){return{props:{...at,...o1},setup(r,{attrs:i,slots:c,emit:s}){const{toLocaleRefs:d}=(0,pe.useFoxI18n)(n),h=d(r,["confirmText","cancelText"]),u=e,g=(0,t.ref)(r.visible);(0,t.watch)(()=>r.visible,y=>{g.value!==y&&(g.value=y,y&&s("opened"))});const S=y=>{g.value=y,s("update:visible",y),s("update",y)},w=y=>{if(s(y),!(y==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const p=r.beforeClose(y);dt(p)?p.then(N=>{N&&(S(!1),s("closed",y))}):p===!0&&(S(!1),s("closed",y))}else S(!1),s("closed",y)},b=()=>{w("confirm")},k=()=>{w("cancel")},f=()=>{w("close")},v=(y,p)=>r1(y)?(p.src=y,(0,t.h)("img",p)):typeof y=="string"?(Array.isArray(p.class)?p.class.push(y):p.class&&typeof p.class=="object"?p[`${y}`]=!0:typeof p.class=="string"?p.class=`${p.class}, ${y}`:p.class=y,(0,t.h)(r.tag,p)):(0,t.h)(y,p),m=()=>{const y=[];if(c.header){const p=c.header();y.push(p)}else{if(r.title){const p=(0,t.h)("view",{class:`${u}__header-title`},[r.title]);y.push(p)}if(r.showClose){const p={class:[`${u}__header-close-icon`],onClick:f},N=v(r.closeIcon??o,p);y.push(N)}}return y.length===0?null:(0,t.h)("view",{class:[`${u}__header`]},y)},A=()=>{const y=[];if(c.default)y.push(c.default());else{const p={class:[`${u}__content`]};if(r.textAlign&&p.class.push(r.textAlign),typeof r.content=="string"){p.innerHTML=r.content;const N=(0,t.h)("view",p);y.push(N)}else if(typeof r.content=="function"){const N=(0,t.h)("view",p,[r.content()]);y.push(N)}else{const N=(0,t.h)("view",p,[r.content]);y.push(N)}}return y.length===0?null:(0,t.h)("view",{class:[`${u}__body`]},y)},C=()=>{if(!r.showFooter)return null;const y=[];if(c.footer)y.push(c.footer());else if(r.plain){if(r.showCancelButton){const p={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},onClick:k};r.cancelButtonClass&&p.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(p.style,r.cancleButtonStyle);const N=(0,t.h)("view",p,[r.cancelButtonText??h.cancelText.value]);y.push(N)}if(r.showConfirmButton){const p={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},onClick:b};r.confirmButtonClass&&p.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(p.style,r.confirmButtonStyle);const N=(0,t.h)("view",p,[r.confirmButtonText??h.confirmText.value]);y.push(N)}}else{if(r.showCancelButton){const p={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:k};r.cancelButtonClass&&p.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(p.style,r.cancleButtonStyle);const N=(0,t.h)(l,p,{default:()=>[r.cancelButtonText??h.cancelText.value]});y.push(N)}if(r.showConfirmButton){const p={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:b};r.confirmButtonClass&&p.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(p.style,r.confirmButtonStyle);const N=(0,t.h)(l,p,{default:()=>[r.confirmButtonText??h.confirmText.value]});y.push(N)}}return y.length===0?null:(0,t.h)("view",{class:[`${u}__footer`,`${u}__footer--${r.footerDirection}`]},y)};return()=>{const y=[],p=m();p&&y.push(p);const N=A();N&&y.push(N);const T=C();T&&y.push(T);const V=(0,t.h)("view",{class:{[`${u}`]:!0,[`${u}--plain`]:r.plain}},y),$=[`${u}__popup`];r.popClass&&$.push(r.popClass);const H={};return r.width&&(H.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(H.height=typeof r.height=="number"?`${r.height}px`:r.height),(0,t.h)(a,{...ye(r,at),popClass:$.join(" "),style:H,visible:g.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":S,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay},{default:()=>V})}}}}var{componentName:s1,create:c1,scope:u1}=ee("dialog"),d1=c1(i1(s1,u1,Se,ct,oe.Close)),Oi=d1,f1=class{title="";content="";cancelText=null;confirmText=null;textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=e=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1},m1=class{options=new f1;constructor(e){let n=Object.assign(this.options,e),a=document.body,l=n.teleport;l!="body"&&(typeof l=="string"?a=document.querySelector(l):a=n.teleport);const o=document.createElement("view"),r=`dialog-${n.id}`;o.id=r;const i=(0,t.createVNode)({setup(){return n.onUpdate=c=>{if(c===!1){const s=document.querySelector(`#${r}`);s&&s.parentNode?.removeChild(s)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(Oi,n)}});a.appendChild(o),(0,t.render)(i,o)}},_t=function(e){return new m1(e)};_t.install=e=>{e.use(Oi),e.config.globalProperties.$dialog=_t};var h1={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},p1=(e,n,a)=>({props:{...h1},emits:["change","refresh","update:modelValue"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),c=i(l,["pullingText","loosingText","loadingText"]),s=Xn(),d=(0,t.ref)(),h=Ti(d),u=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),g=(0,t.computed)(()=>({[e]:!0})),S=(0,t.computed)(()=>{switch(u.status){case"pulling":return r.pulling?"":c.pullingText.value;case"loosing":return r.loosing?"":c.loosingText.value;case"loading":return r.loading?"":c.loadingText.value;default:return""}}),w=(0,t.computed)(()=>({transitionDuration:`${l.duration}s`,transform:u.distance?`translate3d(0,${u.distance}px, 0)`:""})),b=(0,t.computed)(()=>{const p={};return l.headHeight!=50&&(p.height=me(l.headHeight)),p}),k=p=>{const N=+(l.pullDistance||l.headHeight);let T=p;return p>N&&(p<N*2?T=(p+N)/2:T=N+p/4),Math.round(T)},f=(p,N)=>{const T=+(l.pullDistance||l.headHeight);u.distance=p,N?u.status="loading":p===0?u.status="normal":p<T?u.status="pulling":u.status="loosing",o("change",{status:u.status,distance:p})},v=()=>u.status!=="loading"&&u.status!=="complete",m=()=>h.value==window?Vi()==0:h.value&&h.value.scrollTop==0,A=p=>{v()&&(m()?(s.start(p),u.isPullRefresh=!0,u.moving=!0):(u.distance=0,u.isPullRefresh=!1))},C=p=>{v()&&u.moving&&(s.move(p),s.isVertical()&&s.state.deltaY>0&&u.isPullRefresh&&(p.cancelable&&p.preventDefault(),f(k(s.state.deltaY))))},y=()=>{u.moving=!1,u.isPullRefresh&&v()&&s.state.deltaY&&(u.status==="loosing"?(f(+l.headHeight,!0),o("update:modelValue",!0),(0,t.nextTick)(()=>o("refresh"))):f(0)),setTimeout(()=>{s.reset()},0)};return(0,t.watch)(()=>l.modelValue,p=>{p?f(+l.headHeight,!0):f(0)}),()=>{const p=[];let N=null;u.status==="loading"?(N=r?.loading?.()??null,N||(N=(0,t.h)(a,{class:["fox-pull-refresh-container-topbox-icon"]}))):u.status==="pulling"?N=r?.pulling?.()??null:u.status==="loosing"&&(N=r?.loosing?.()??null),N&&p.push(N);const T=(0,t.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[S.value]);p.push(T);const V=(0,t.h)("div",{class:["fox-pull-refresh-container-topbox"],style:b.value},p),$=(0,t.h)("div",{class:"fox-pull-refresh-container",style:w.value},[V,r?.default?.()]),H={ref:d,class:g.value};return Yn()?Object.assign(H,{onTouchstart:A,onTouchmove:C,onTouchend:y}):Object.assign(H,{onMousedown:A,onMousemove:C,onMouseup:y}),(0,t.h)("div",H,[$])}}}),{componentName:g1,create:y1,scope:b1}=ee("pull-refresh"),v1=y1(p1(g1,b1,oe.Loading)),yo=v1,{create:S1}=ee("notify"),k1=S1({components:{[Se.name]:Se},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const a=()=>{e.onClick&&e.onClick()};let l=null;const o=()=>{l&&clearTimeout(l),l=null},r=()=>{n("update:visible",!1)},i=(0,t.ref)(!1),c=(0,t.watch)(()=>e.visible,d=>{i.value=e.visible;const h=e.duration;d&&h&&(l=setTimeout(()=>{r()},h))},{immediate:!0});return{onAfterLeave:()=>{o(),c&&c(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:i}}});function w1(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(i,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.isShowPopup=c),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-notify",`fox-notify--${e.type}`,e.className]),style:(0,t.normalizeStyle)({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...c)=>e.clickCover&&e.clickCover(...c))},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}var bo=re(k1,[["render",w1]]),vo={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function},Tt=[],Jt=[],Ki=e=>{if(e){const n=document.getElementById(e);Jt=Jt.filter(a=>a.id!==e),Tt=Tt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Tt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Jt=[],Tt=[]},C1=e=>{const n=document.getElementById(e.id);if(n){const a=Jt.find(o=>o.id===e.id);a?e={...vo,...a,...e}:e={...vo,...e};const l=(0,t.createVNode)(bo,e);return(0,t.render)(l,n),l.component.data}},en=e=>{e.unmount=Ki;let n;if(e.id){if(n=e.id,Tt.find(o=>o===e.id))return C1(e)}else n=new Date().getTime()+"";e={...vo,...e},e.id=n,Tt.push(e.id),Jt.push(e);const a=document.createElement("view");a.id="notify-"+e.id;const l=(0,t.createVNode)({setup(){return e.teleport=`#notify-${e.id}`,(0,t.onMounted)(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(a)},e.duration)}),()=>(0,t.h)(bo,e)}});document.body.appendChild(a),(0,t.render)(l,a)},tn=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},So={text(e,n={}){return tn(e),en({...n,msg:e})},primary(e,n={}){return tn(e),en({...n,msg:e,type:"primary"})},success(e,n={}){return tn(e),en({...n,msg:e,type:"success"})},danger(e,n={}){return tn(e),en({...n,msg:e,type:"danger"})},warn(e,n={}){return tn(e),en({...n,msg:e,type:"warning"})},hide(){Ki()},install(e){e.use(bo)}},{create:N1}=ee("toast"),A1=N1({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const o=()=>{a&&(clearTimeout(a),a=null)},r=()=>{l.mounted=!1},i=()=>{o(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},c=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),(0,t.watch)(()=>e.duration,S=>{S&&i()});const s=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const S=ce(e.iconSize);return(0,t.h)(e.icon,{width:S,height:S,color:e.iconColor})},h=(0,t.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),u=(0,t.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:r,clickCover:c,renderIcon:d,hasIcon:s,toastBodyClass:h,toastIconWrapperClass:u,onAfterLeave:()=>{o(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),B1={key:1,class:"fox-toast-title"},T1=["innerHTML"];function V1(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.toastBodyClass),style:(0,t.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[(0,t.createElementVNode)("view",{class:"fox-toast-inner",style:(0,t.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.toastIconWrapperClass)},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon())))],2)):(0,t.createCommentVNode)("",!0),e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",B1,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,T1)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var ko=re(A1,[["render",V1]]),wo={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1},Vt=[],nn=[],Ui=e=>{if(e){const n=document.getElementById(e);nn=nn.filter(a=>a.id!==e),Vt=Vt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Vt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),nn=[],Vt=[]},$1=e=>{const n=document.getElementById(e.id);if(n){const a=nn.find(l=>l.id===e.id);return a?e={...wo,...a,...e}:e={...wo,...e},(0,t.render)((0,t.createVNode)(ko,e),n),$t}},ln=e=>{e.unmount=Ui;let n;if(e.id){if(n=e.id,Vt.find(l=>l===e.id))return $1(e)}else n=new Date().getTime()+"";e={...wo,...e},e.id=n,Vt.push(e.id),nn.push(e);const a=document.createElement("div");return a.id=e.id,(0,t.render)((0,t.createVNode)(ko,e),a),document.body.appendChild(a),$t},yl=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},$t={text(e,n={}){return yl(e),ln({...n,type:"text",msg:e})},success(e,n={}){return yl(e),ln({icon:oe.Success,...n,msg:e,type:"success"})},fail(e,n={}){return yl(e),ln({icon:oe.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return yl(e),ln({icon:oe.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return ln({icon:oe.Loading,...n,msg:e,type:"loading"})},hide(e){Ui(e)},install(e){e.use(ko),e.config.globalProperties.$toast=$t}},{componentName:z2,create:E1}=ee("audio"),D1=E1({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:oe.Service,[Gt.name]:Gt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)(null),o=(0,t.reactive)({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});(0,t.onMounted)(()=>{var b=["webkitVisibilityState","visibilitychange"];try{for(let k=0;k<b.length;k++)document.addEventListener(b[k],()=>{document.hidden?l.value.pause():o.playing&&setTimeout(()=>{l.value.play()},200)})}catch(k){k.message}});const r=b=>{const k=l.value;e.autoplay&&k&&k.paused&&k.play(),o.second=k.duration,o.duration=w(k.duration),n("can-play",b)},i=b=>{o.currentTime=parseInt(b.target.currentTime)},c=()=>{o.currentTime>0&&o.currentTime--,l.value.currentTime=o.currentTime,n("fastBack",o.currentTime)},s=()=>{const b=l.value;o.playing?(b.pause(),o.handPlaying=!1):(b.play(),o.handPlaying=!0),o.playing=!o.playing,n("play",o.playing)},d=()=>{o.currentTime++,l.value.currentTime=o.currentTime,n("forward",o.currentTime)},h=b=>{o.currentDuration=w(b),o.percent=b/o.second*100},u=()=>{o.playing=!1,n("ended")},g=b=>{const k=l.value;k.currentTime=o.second*b/100,n("changeProgress",k.currentTime)},S=()=>{o.hanMuted=!o.hanMuted,n("mute",o.hanMuted)},w=b=>{if(!b)return"00:00:00";let k=parseInt(b),f=Math.floor(k/3600),v=Math.floor((k-f*3600)/60),m=k-f*3600-v*60,A="";return A+=("0"+f.toString()).slice(-2)+":",A+=("0"+v.toString()).slice(-2)+":",A+=("0"+m.toString()).slice(-2),A};return(0,t.watch)(()=>o.currentTime,b=>{h(b)}),(0,t.provide)("audioParent",{children:[],props:e,audioData:o,handleMute:S,forward:d,fastBack:c,changeStatus:s}),{...(0,t.toRefs)(e),...(0,t.toRefs)(o),audioRef:l,fastBack:c,forward:d,changeStatus:s,progressChange:g,audioEnd:u,onTimeupdate:i,handleMute:S,onCanplay:r,slots:a}}}),I1={class:"fox-audio"},q1={key:0,class:"fox-audio__progress"},x1={class:"fox-audio__time"},P1={class:"fox-audio__bar"},M1={class:"fox-audio__time"},z1={key:1,class:"fox-audio__icon"},L1=["controls","src","preload","autoplay","loop","muted"];function R1(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-range"),c=(0,t.resolveComponent)("Service");return(0,t.openBlock)(),(0,t.createElementBlock)("div",I1,[e.type=="progress"?((0,t.openBlock)(),(0,t.createElementBlock)("div",q1,[(0,t.createElementVNode)("div",x1,(0,t.toDisplayString)(e.currentDuration),1),(0,t.createElementVNode)("div",P1,[(0,t.createVNode)(i,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=s=>e.percent=s),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:(0,t.withCtx)(()=>[...n[6]||(n[6]=[(0,t.createElementVNode)("div",{class:"fox-audio__button--custom"},null,-1)])]),_:1},8,["modelValue","onChange"])]),(0,t.createElementVNode)("div",M1,(0,t.toDisplayString)(e.duration),1)])):(0,t.createCommentVNode)("",!0),e.type=="icon"?((0,t.openBlock)(),(0,t.createElementBlock)("div",z1,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:n[1]||(n[1]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[e.playing?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1}))],2)])):(0,t.createCommentVNode)("",!0),e.type=="none"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,onClick:n[2]||(n[2]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type!="none"?(0,t.renderSlot)(e.$slots,"default",{key:3}):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:n[3]||(n[3]=(...s)=>e.onTimeupdate&&e.onTimeupdate(...s)),onCanplay:n[4]||(n[4]=(...s)=>e.onCanplay&&e.onCanplay(...s)),onEnded:n[5]||(n[5]=(...s)=>e.audioEnd&&e.audioEnd(...s)),muted:e.hanMuted},null,40,L1)])}var Co=re(D1,[["render",R1]]),{componentName:L2,create:F1,scope:O1}=ee("audio-operate"),K1=F1({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=(0,pe.useFoxI18n)(O1),l=(0,t.reactive)((0,t.inject)("audioParent")),o=(0,t.ref)((0,t.useSlots)().default);return{...(0,t.toRefs)(e),...(0,t.toRefs)(l),customSlot:o,t:a}}}),U1={class:"fox-audio-operate"};function H1(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",U1,[e.type=="back"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...c)=>e.fastBack&&e.fastBack(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("back")),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="play"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="forward"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...c)=>e.forward&&e.forward(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("forward")),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="mute"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...c)=>e.handleMute&&e.handleMute(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("mute")),1)]),_:1},8,["type"])),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0)])}var No=re(K1,[["render",H1]]),{componentName:j1,create:W1}=ee("avatar"),Y1=W1({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:a,bgColor:l,color:o}=(0,t.toRefs)(e),r=["large","normal","small"],i=(0,t.inject)("avatarGroup",null),c=(0,t.ref)(null),s=(0,t.reactive)({lightTheme:!1}),d=(0,t.reactive)({index:1,showMax:!1,maxIndex:0});(0,t.onMounted)(()=>{const w=i?.avatarGroupRef?.value?.children;w&&S(w)});const h=(0,t.computed)(()=>({[j1]:!0,[`fox-avatar-${n.value||i?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||i?.props?.shape||"normal"}`]:!0})),u=(0,t.computed)(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${l.value}`,color:`${o.value}`,marginLeft:d.index!=1&&(i?.props?.span?`${i?.props?.span}px`:""),zIndex:i?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),g=(0,t.computed)(()=>({backgroundColor:`${i?.props?.maxBgColor}`,color:`${i?.props?.maxColor}`})),S=w=>{d.maxIndex=w.length;for(let b=0;b<w.length;b++)w[b]&&w[b].classList&&w[b].classList[0]=="fox-avatar"&&w[b].setAttribute("data-index",b+1);d.index=c?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=i?.props?.maxCount&&(d.showMax=!0)};return{classes:h,styles:u,maxStyles:g,avatarGroup:i,visible:s,avatarRef:c,...(0,t.toRefs)(d)}}});function X1(e,n,a,l,o,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,style:(0,t.normalizeStyle)(e.showMax?e.maxStyles:e.styles),class:(0,t.normalizeClass)(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):(0,t.createCommentVNode)("",!0)],6)):(0,t.createCommentVNode)("",!0)}var an=re(Y1,[["render",X1]]),{componentName:Q1,create:G1}=ee("avatar-group"),Z1=G1({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:a}){const{size:l}=(0,t.toRefs)(e),o=(0,t.ref)(null),r=(0,t.ref)(0),i=(0,t.computed)(()=>({[Q1]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:o,index:r}),{classes:i,avatarGroupRef:o}}});function _1(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"avatarGroupRef"},[(0,t.renderSlot)(e.$slots,"default")],2)}var Ao=re(Z1,[["render",_1]]),Et=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function J1(e,n,a){let l=0,o=e.length-1,r=null;for(;l<=o;){r=Math.floor((l+o)/2);const i=e[r],c=a(i,n);if(c===Et.eq)return r;c===Et.lt?l=r+1:c===Et.gt&&(o=r-1)}return r}var{componentName:ek,create:tk}=ee("list"),Hi=document.documentElement.clientHeight||document.body.clientHeight||667,nk=tk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Hi},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const a=(0,t.ref)(null),l=(0,t.ref)(null),o=(0,t.ref)(null),r=(0,t.reactive)({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),i=(0,t.computed)(()=>Math.min(e.containerHeight,Hi)),c=(0,t.computed)(()=>Math.ceil(i.value/e.height)),s=(0,t.computed)(()=>Math.min(r.originStartIndex+c.value+e.bufferSize,r.list.length)),d=(0,t.computed)(()=>({[ek]:!0})),h=(0,t.computed)(()=>r.list.slice(r.start,s.value)),u=()=>{if(o.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},g=()=>{r.cachePositions=[];for(let f=0;f<r.list.length;++f)r.cachePositions[f]={index:f,height:e.height,top:f*e.height,bottom:(f+1)*(e.height+e.margin),dValue:0}},S=()=>{let f=o.value.childNodes;f=Array.from(f).filter(y=>y.nodeType===1);const v=f[0];f.forEach((y,p)=>{if(!y)return;const{height:N}=De(y),T=r.cachePositions[p+r.start].height-N;T&&(r.cachePositions[p+r.start].bottom-=T,r.cachePositions[p+r.start].height=N,r.cachePositions[p+r.start].dValue=T)});let m=0;v&&(m=r.start);const A=r.cachePositions.length;let C=r.cachePositions[m].dValue;r.cachePositions[m].dValue=0;for(let y=m+1;y<A;++y){const p=r.cachePositions[y];r.cachePositions[y].top=r.cachePositions[y-1].bottom,r.cachePositions[y].bottom=r.cachePositions[y].bottom-C,p.dValue!==0&&(C+=p.dValue,p.dValue=0)}r.phantomHeight=r.cachePositions[A-1].bottom},w=(f=0)=>{let v=J1(r.cachePositions,f,(m,A)=>{const C=m.bottom;return C===A?Et.eq:C<A?Et.lt:Et.gt});return r.cachePositions[v].bottom<f&&(v+=1),v},b=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,a.value.scrollTop=0,g(),r.phantomHeight=e.height*r.list.length},k=()=>{const f=a.value?.scrollTop,{originStartIndex:v}=r,m=w(f);m!==v&&(r.originStartIndex=m,r.start=Math.max(r.originStartIndex-e.bufferSize,0),s.value>=r.list.length-1&&n("scroll-bottom")),n(f>r.scrollTop?"scroll-up":"scroll-down",f),r.scrollTop=f};return(0,t.watch)(()=>e.listData,f=>{if(r.list=f.slice(),r.list.length===f.length)g(),S();else{b();return}}),(0,t.watch)(()=>r.start,()=>{o.value&&r.list.length>0&&S()}),{...(0,t.toRefs)(r),list:a,phantom:l,actualContent:o,getTransform:u,visibleData:h,classes:d,getContainerHeight:i,handleScrollEvent:k}}});function lk(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...i)=>e.handleScrollEvent&&e.handleScrollEvent(...i)),ref:"list"},[(0,t.createElementVNode)("div",{class:"fox-list-phantom",style:(0,t.normalizeStyle)({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),(0,t.createElementVNode)("div",{class:"fox-list-container",style:(0,t.normalizeStyle)({transform:e.getTransform()}),ref:"actualContent"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.visibleData,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-list-item",key:i},[(0,t.renderSlot)(e.$slots,"default",{item:i,index:c+e.start})]))),128))],4)],38)}var Bo=re(nk,[["render",lk]]),{componentName:ak,create:ok}=ee("circleprogress"),rk=ok({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const a=!!(0,t.useSlots)().default,l=Math.random().toString(36).slice(-8),o=(0,t.computed)(()=>({[ak]:!0})),r=(0,t.computed)(()=>{const c=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${c} 0 90 a 45 45 0 1, ${c} 0 -90`}),i=(0,t.computed)(()=>Ve(e.color)?`url(#${l})`:e.color);return{classes:o,hoverStyle:(0,t.computed)(()=>{let c=283,s=c*Number(e.progress)/100;return{stroke:Ve(e.color)?`url(#${l})`:e.color,strokeDasharray:`${s}px ${c}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:r,hoverColor:i,stop:(0,t.computed)(()=>{if(!Ve(e.color))return;let c=e.color;const s=Object.keys(c).sort((h,u)=>parseFloat(h)-parseFloat(u));let d=[];return s.map((h,u)=>{let g={key:"",value:""};g.key=h,g.value=c[h],d.push(g)}),d}),slotDefault:a,refRandomId:l}}}),ik={viewBox:"0 0 100 100"},sk=["id"],ck=["offset","stop-color"],uk=["d","stroke-width"],dk=["d","stroke","stroke-linecap","stroke-width"],fk={class:"fox-circleprogress-text"},mk={key:0};function hk(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:e.radius*2+"px",width:e.radius*2+"px"})},[((0,t.openBlock)(),(0,t.createElementBlock)("svg",ik,[(0,t.createElementVNode)("defs",null,[(0,t.createElementVNode)("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.stop,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("stop",{key:c,offset:i.key,"stop-color":i.value},null,8,ck))),128))],8,sk)]),(0,t.createElementVNode)("path",{class:"fox-circleprogress-path",style:(0,t.normalizeStyle)(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,uk),(0,t.createElementVNode)("path",{class:"fox-circleprogress-hover",style:(0,t.normalizeStyle)(e.hoverStyle),d:e.path,fill:"none",stroke:e.hoverColor,"stroke-linecap":e.strokeLinecap,"stroke-width":e.strokeWidth},null,12,dk)])),(0,t.createElementVNode)("div",fk,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",mk,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var To=re(rk,[["render",hk]]),{componentName:pk,create:gk}=ee("noticebar"),yk=gk({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,(0,t.h)(e.item)},Notice:oe.Notice,CircleClose:oe.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)(null),o=(0,t.ref)(null),r=(0,t.reactive)({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),i=(0,t.computed)(()=>({[pk]:!0})),c=(0,t.computed)(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),s=(0,t.computed)(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":c.value,[r.animationClass]:!0})),d=(0,t.computed)(()=>{let p={};return e.color&&(p.color=e.color),e.background&&(p.background=e.background),e.direction=="vertical"&&(p.height=`${e.height}px`),p}),h=(0,t.computed)(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),u=(0,t.computed)(()=>{let p={};if(e.complexAm)p={transform:`translateY(${r.distance}px)`};else if(r.animate){let N=~~(e.height/e.speed/4);p={transition:`all ${N==0?~~(e.height/e.speed):N}s`,"margin-top":`-${e.height}px`}}return p});(0,t.watch)(()=>e.text,p=>{g(p)}),(0,t.watch)(()=>e.list,p=>{r.scrollList=[...p]});const g=p=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!l.value||!o.value)return;const N=l.value.getBoundingClientRect().width,T=o.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?T>N:e.scrollable,r.isCanScroll?(r.wrapWidth=N,r.offsetWidth=T,r.duration=T/e.speed,r.animationClass="play"):r.animationClass=""},0)},S=p=>{n("click",p)},w=p=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",p)},b=p=>{r.firstRound=!1,n("across-end",p),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},k=()=>{f(),r.timer=setInterval(f,~~(e.height/e.speed/4*1e3)+e.standTime)},f=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},v=()=>{r.timer=setInterval(()=>{let p=100;for(let N=0;N<p;N++)m(N,!(N<p-1))},e.standTime+100*e.speed)},m=(p,N)=>{setTimeout(()=>{r.distance-=e.height/100,N&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},p*e.speed)},A=p=>{n("click",p)},C=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(a.default?y(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?v():k()},e.standTime)):g(e.text)}),(0,t.watch)(()=>a.default?a.default():[],p=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),y(p))});const y=p=>{p&&p.length>0&&(r.scrollList=p[0].children)};return(0,t.onActivated)(()=>{r.keepAlive&&(r.keepAlive=!1)}),(0,t.onDeactivated)(()=>{r.keepAlive=!0,clearInterval(r.timer)}),(0,t.onUnmounted)(()=>{clearInterval(r.timer)}),{...(0,t.toRefs)(e),...(0,t.toRefs)(r),isEllipsis:c,classes:i,barStyle:d,contentStyle:h,horseLampStyle:u,wrap:l,content:o,handleClick:S,onClickIcon:w,onAnimationEnd:b,go:A,handleClickIcon:C,slots:a,toPxString:me,wrapContentClass:s}}}),bk={key:0,class:"fox-noticebar__page-lefticon"},vk={ref:"wrap",class:"fox-noticebar__page-wrap"},Sk={class:"showNotica"},kk=["onClick"];function wk(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Notice"),c=(0,t.resolveComponent)("CircleClose"),s=(0,t.resolveComponent)("ScrollItem");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.direction=="across"?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:(0,t.normalizeStyle)(e.barStyle),onClick:n[3]||(n[3]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.showLeftIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",bk,[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,size:"16px"})):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",vk,[(0,t.createElementVNode)("view",{ref:"content",class:(0,t.normalizeClass)(e.wrapContentClass),style:(0,t.normalizeStyle)(e.contentStyle),onAnimationend:n[0]||(n[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":n[1]||(n[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=(0,t.withModifiers)((...d)=>e.onClickIcon&&e.onClickIcon(...d),["stop"]))},[e.$slots["right-icon"]?(0,t.renderSlot)(e.$slots,"right-icon",{key:0}):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1}))])):(0,t.createCommentVNode)("",!0)],6)),[[t.vShow,e.showNoticebar]]):(0,t.createCommentVNode)("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__vertical",style:(0,t.normalizeStyle)(e.barStyle)},[e.slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[(0,t.createElementVNode)("div",Sk,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,h)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:h,style:(0,t.normalizeStyle)({height:e.height+"px","line-height":e.height+"px"}),item:d},null,8,["style","item"]))),128))])],4)):((0,t.openBlock)(),(0,t.createElementBlock)("ul",{key:1,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,h)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{class:"fox-noticebar__vertical-item",key:h,style:(0,t.normalizeStyle)({height:e.toPxString(e.height),lineHeight:e.toPxString(e.height)}),onClick:u=>e.go(d)},[(0,t.renderSlot)(e.$slots,"item",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(d),1)])],12,kk))),128))],4)),(0,t.createElementVNode)("view",{class:"go",onClick:n[4]||(n[4]=d=>!e.slots.rightIcon&&e.handleClickIcon())},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[e.closeMode?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,color:e.color,size:"11px"},null,8,["color"])):(0,t.createCommentVNode)("",!0)])])],4)):(0,t.createCommentVNode)("",!0)],2)}var Vo=re(yk,[["render",wk]]),Ck="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/xdD/y9UyMD0TExP5sb+4uLj/y9X+w879ws3/y9X1tMH8s8H/y9UkJSWAgYHj5OT/ytTY2NheXWDs7e7r7Ozv8PDs7u55eYH09fXMzMzY2NgyMD3/y9UzMzP8s8GwsLDm5+eKiorv8PDLy8s6Ojrl5ubZ2trPz88UFBTh4uLV1dXc3Ny5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UH/zidR85Fwj5Y8nVzymDU9Y063xRs0CpM+1E089q1TipDRMIiZSde4OkduL1FOsm2CyXqBwTgvoN/2AWrGzwl2UgpO+og/il1+l33E87H98i51kAJxjvZ0Cp08lT074JcKKB8eUJMWwH+8K3v77/7N4LkfNLAGA28qgSl1xInpquROEseRhxSkAWPOM8wxRODSIt7GNHQanCpeQAtQURq4KR80AWOsNlmIK5vCpg0ZuVoNTqS9KpaTGbVp3aKSLlVOaZPCgOIjqKc7L6ojRAlRZxs8VoK5WMy6lTjT/gRak1QKlFFxO9FKsBZzZZZSWQBY3nNKllAOdG70CtDcP9/s4DHtSzEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:R2,create:Bk,scope:Tk}=ee("empty"),Vk={empty:Ck,error:Nk,network:Ak},$k=Bk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,pe.useFoxI18n)(Tk),a=n(e,["description"]),{image:l,imageSize:o}=(0,t.toRefs)(e),r=(0,t.computed)(()=>o.value?typeof o.value=="number"?`width:${o.value}px;height:${o.value}px`:`width:${o.value};height:${o.value}`:""),i=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:Vk[l.value];return{...a,imageUrl:i,imgStyle:r}}}),Ek={class:"fox-empty"},Dk=["src"],Ik={key:1,class:"fox-empty-description"};function qk(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Ek,[(0,t.createElementVNode)("view",{class:"fox-empty-image",style:(0,t.normalizeStyle)(e.imgStyle)},[e.$slots.image?(0,t.renderSlot)(e.$slots,"image",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.imageUrl?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,class:"img",src:e.imageUrl},null,8,Dk)):(0,t.createCommentVNode)("",!0)],64))],4),e.$slots.description?(0,t.renderSlot)(e.$slots,"description",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",Ik,(0,t.toDisplayString)(e.description),1)),e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:2}):(0,t.createCommentVNode)("",!0)])}var $o=re($k,[["render",qk]]),{create:xk,scope:Pk}=ee("video"),Mk=xk({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:a}=(0,pe.useFoxI18n)(Pk),l=(0,t.reactive)({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),o=(0,t.ref)(null),r=(0,t.computed)(()=>e.options.disabled);(0,t.watch)(()=>e.source,y=>{y.src&&(0,t.nextTick)(()=>{l.videoElm.load()})},{immediate:!0,deep:!0}),(0,t.watch)(()=>e.options,y=>{l.state.isMuted=y?y.muted:!1},{immediate:!0});const i=()=>{l.videoElm=o.value,e.options.autoplay&&setTimeout(()=>{l.videoElm.play()},200),e.options.touchPlay&&(l.showTouchMask=!0),e.options.playsinline&&(l.videoElm.setAttribute("playsinline",e.options.playsinline),l.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),l.videoElm.setAttribute("x5-video-player-type","h5-page"),l.videoElm.setAttribute("x5-video-player-fullscreen",!1)),w(),l.showToolbox?c():(l.videoElm.addEventListener("play",()=>{l.state.playing=!0,n("play",l.videoElm)}),l.videoElm.addEventListener("pause",()=>{l.state.playing=!1,n("pause",l.videoElm)}),l.videoElm.addEventListener("ended",g),l.videoElm.addEventListener("timeupdate",Sn(u,1e3)))},c=()=>{const y=o.value,p=o.value.getElementsByClassName("fox-video-controller__progress-value")[0];l.player.$player=y,l.progressBar.progressElm=p,l.progressBar.pos=p.getBoundingClientRect(),l.videoSet.progress.width=Math.round(p.getBoundingClientRect().width)},s=()=>{if(e.options.autoplay&&e.options.disabled)return l.state.playing=!0,!1;if(l.state.playing=!l.state.playing,l.videoElm)if(l.state.playing)try{setTimeout(()=>{l.videoElm.play()},200),l.videoElm.addEventListener("progress",()=>{h()}),l.videoElm.addEventListener("timeupdate",Sn(u,1e3)),l.videoElm.addEventListener("ended",g),n("play",l.videoElm)}catch{S()}else l.videoElm.pause(),n("pause",l.videoElm)},d=y=>{let p=[];const N=Math.floor(y/3600);N>0&&(N<10?p.push(`0${N}`):p.push(`${N}`));const T=Math.floor(y%3600/60);T<10?p.push(`0${T}`):p.push(`${T}`);const V=Math.round(y%3600%60);return V<10?p.push(`0${V}`):p.push(`${V}`),p.join(":")},h=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},u=()=>{const y=l.videoElm.currentTime/l.videoElm.duration;l.videoSet.progress.current=Math.round(l.videoSet.progress.width*y),l.videoSet.totalTime=d(l.videoElm.duration),l.videoSet.displayTime=d(l.videoElm.currentTime),n("time",l.videoSet.displayTime,l.videoSet.totalTime)},g=()=>{l.state.playing=!1,l.state.isEnd=!0,l.videoSet.displayTime="00:00",l.videoSet.progress.current=0,l.videoElm.currentTime=0,n("playend",l.videoElm)},S=()=>{l.state.isError=!0},w=()=>{l.state.vol=e.options.volume},b=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},k=()=>{},f=y=>{let p=y.targetTouches[0].pageX-l.progressBar.pos.left;p<=0&&(p=0),p>=l.videoSet.progress.width&&(p=l.videoSet.progress.width),l.videoSet.progress.current=p;let N=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&m(N,l.videoElm.duration)},v=y=>{let p=y.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=p;let N=p/l.videoSet.progress.width;l.videoElm.duration&&m(N,l.videoElm.duration)},m=(y,p)=>{l.videoElm.currentTime=Math.floor(y*p)},A=()=>{l.state.isError=!1,i()},C=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{i()}),{root:o,...(0,t.toRefs)(e),...(0,t.toRefs)(l),handleError:S,isDisabled:r,play:s,handleMuted:b,touchSlidSrart:k,touchSlidMove:f,touchSlidEnd:v,retry:A,fullScreen:C,t:a}}}),zk={class:"fox-video",ref:"videocon"},Lk=["muted","autoplay","loop","poster","controls","preload"],Rk=["src","type"],Fk={class:"fox-video-controller__now"},Ok={class:"fox-video-controller__progress"},Kk={class:"fox-video-controller__progress-value",ref:"progressBar"},Uk={class:"fox-video-controller__played",ref:"playedBar"},Hk={class:"fox-video-controller__total"},jk={class:"fox-video-error"},Wk={class:"fox-video-error-tip"};function Yk(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",zk,[(0,t.createElementVNode)("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:n[0]||(n[0]=(...i)=>e.handleError&&e.handleError(...i))},[(0,t.createElementVNode)("source",{src:e.source.src,type:e.source.type},null,8,Rk)],40,Lk),e.showToolbox&&!e.isDisabled?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...i)=>e.play&&e.play(...i))},null,512)):(0,t.createCommentVNode)("",!0),e.showToolbox&&!e.isDisabled?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:n[2]||(n[2]=(...i)=>e.play&&e.play(...i))},null,512)),[[t.vShow,!e.state.playing]]):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[(0,t.createElementVNode)("div",{class:"fox-video-controller__playbtn",onClick:n[3]||(n[3]=(...i)=>e.play&&e.play(...i))}),(0,t.createElementVNode)("div",Fk,(0,t.toDisplayString)(e.videoSet.displayTime),1),(0,t.createElementVNode)("div",Ok,[(0,t.createElementVNode)("div",Kk,[(0,t.createElementVNode)("div",{class:"buffered",style:(0,t.normalizeStyle)({width:`${e.videoSet.loaded}%`})},null,4),(0,t.createElementVNode)("div",{class:"fox-video-controller__ball",style:(0,t.normalizeStyle)({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:n[4]||(n[4]=(0,t.withModifiers)(i=>e.touchSlidMove(i),["stop","prevent"])),onTouchstart:n[5]||(n[5]=(0,t.withModifiers)(i=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)(i=>e.touchSlidEnd(i),["stop"]))},[...n[10]||(n[10]=[(0,t.createElementVNode)("div",{class:"fox-video-controller__ball-move"},null,-1)])],36),(0,t.createElementVNode)("div",Uk,null,512)],512)]),(0,t.createElementVNode)("div",Hk,(0,t.toDisplayString)(e.videoSet.totalTime),1),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...i)=>e.handleMuted&&e.handleMuted(...i))},null,2),(0,t.createElementVNode)("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...i)=>e.fullScreen&&e.fullScreen(...i))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),(0,t.withDirectives)((0,t.createElementVNode)("div",jk,[(0,t.createElementVNode)("p",Wk,(0,t.toDisplayString)(e.t("errorTip")),1),(0,t.createElementVNode)("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...i)=>e.retry&&e.retry(...i))},(0,t.toDisplayString)(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var Dt=re(Mk,[["render",Yk]]),{create:Xk,componentName:Qk}=ee("steps"),Gk=Xk({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:a}){const l=(0,t.reactive)({children:[]}),o=(0,t.computed)(()=>{const c=Qk;return{[c]:!0,[`${c}-${e.direction}`]:!0,[`${c}-dot`]:!!e.progressDot}}),r=c=>{c&&l.children.push(c)},i=c=>{n("click-step",c)};return(0,t.provide)("parent",{relation:r,state:l,props:e,onEmit:i}),()=>(0,t.h)("view",{class:o.value},a.default?.())}}),Eo=Gk,{create:Zk,componentName:_k}=ee("step"),Jk=Zk({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=(0,t.getCurrentInstance)(),n=(0,t.inject)("parent");n.relation(e);const a=(0,t.reactive)({dot:n.props.progressDot}),l=(0,t.computed)(()=>n.state.children.indexOf(e)+1),o=()=>{const s=l.value;return s<+n.props.current?"finish":s===+n.props.current?"process":"wait"},r=(0,t.computed)(()=>o()),i=(0,t.computed)(()=>{const s=_k;return{[s]:!0,[`${s}-${r.value}`]:!0}}),c=()=>{n.onEmit(l.value)};return{...(0,t.toRefs)(a),index:l,classes:i,handleClickStep:c}}}),ew={class:"fox-step-head"},tw={class:"fox-step-icon-inner"},nw={key:1,class:"fox-step-inner"},lw={class:"fox-step-main"},aw={class:"fox-step-title"},ow={key:0},rw={key:0,class:"fox-step-content"},iw=["innerHTML"];function sw(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...i)=>e.handleClickStep&&e.handleClickStep(...i))},[(0,t.createElementVNode)("view",ew,[n[1]||(n[1]=(0,t.createElementVNode)("view",{class:"fox-step-line"},null,-1)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-step-icon",[e.dot?"":"is-icon"]])},[(0,t.createElementVNode)("view",tw,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.dot?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[],64)):((0,t.openBlock)(),(0,t.createElementBlock)("view",nw,(0,t.toDisplayString)(e.index),1))])])],2)]),(0,t.createElementVNode)("view",lw,[(0,t.createElementVNode)("view",aw,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",ow,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",rw,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,iw)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var Do=re(Jk,[["render",sw]]),{create:cw,componentName:Io}=ee("swiper"),uw=cw({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)(),o=(0,t.reactive)({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=lt(),i=(0,t.computed)(()=>({[Io]:!0})),c=(0,t.computed)(()=>e.direction==="vertical"),s=(0,t.computed)(()=>{const P=Io;return{[`${P}-inner`]:!0,[`${P}-vertical`]:c.value}}),d=(0,t.computed)(()=>{const P=Io;return{[`${P}-pagination`]:!0,[`${P}-pagination-vertical`]:c.value}}),h=(0,t.computed)(()=>c.value?r.deltaY.value:r.deltaX.value),u=(0,t.computed)(()=>r.direction.value===e.direction),g=(0,t.computed)(()=>o.children.length),S=(0,t.computed)(()=>o[c.value?"height":"width"]),w=(0,t.computed)(()=>g.value*S.value),b=(0,t.computed)(()=>o.rect?(c.value?o.rect.height:o.rect.width)-S.value*g.value:0),k=(0,t.computed)(()=>(o.active+g.value)%g.value),f=()=>{let P=0;P=o.offset,o.style={transitionDuration:`${o.moving?0:e.duration}ms`,transform:`translate${c.value?"Y":"X"}(${P}px)`,[c.value?"height":"width"]:`${S.value*g.value}px`,[c.value?"width":"height"]:`${c.value?o.width:o.height}px`}},v=P=>{let K=[];const j=o.childrenVNode.length;let x=a?.default?.();if(x=x.filter(_=>_.children&&Array.isArray(_.children)),x.forEach(_=>{K=K.concat(_.children)}),!j)o.childrenVNode=K.slice(),P.proxy&&o.children.push(P.proxy);else if(j>K.length)o.children=o.children.filter(_=>P.proxy!==_);else if(j<K.length){for(let _=0;_<j;_++)if(K[_].key!==o.childrenVNode[_].key){P.proxy&&o.children.splice(_,0,P.proxy),P.vnode&&o.childrenVNode.splice(_,0,P.vnode);break}j!==K.length&&(P.proxy&&o.children.push(P.proxy),P.vnode&&o.childrenVNode.push(P.vnode))}else o.childrenVNode=K.slice(),P.proxy&&o.children.push(P.proxy)},m=(P,K=0)=>{let j=P*S.value;e.loop||(j=Math.min(j,-b.value));let x=K-j;return e.loop||(x=Ye(x,b.value,0)),x},A=P=>{const{active:K}=o;return P?e.loop?Ye(K+P,-1,g.value):Ye(K+P,0,g.value-1):K},C=({pace:P=0,offset:K=0,isEmit:j=!1})=>{if(g.value<=1)return;const{active:x}=o,_=A(P),ne=m(_,K);if(e.loop){if(o.children[0]&&ne!==b.value){const W=ne<b.value;o.children[0].setOffset(W?w.value:0)}if(o.children[g.value-1]&&ne!==0){const W=ne>0;o.children[g.value-1].setOffset(W?-w.value:0)}}o.active=_,o.offset=ne,j&&x!==o.active&&n("change",k.value),f()},y=()=>{o.moving=!0,o.active<=-1&&C({pace:g.value}),o.active>=g.value&&C({pace:-g.value})},p=()=>{o.autoplayTimer&&clearTimeout(o.autoplayTimer)},N=P=>{y(),r.reset(),Ge(()=>{Ge(()=>{o.moving=!1,C({pace:P,isEmit:!0})})})},T=()=>{N(-1)},V=()=>{N(1)},$=P=>{y(),r.reset(),Ge(()=>{o.moving=!1;let K;e.loop&&g.value===P?K=o.active===0?0:P:K=P%g.value,C({pace:K-o.active,isEmit:!0})})},H=()=>{const P=de(e.autoPlay);P<=0||g.value<=1||(p(),o.autoplayTimer=setTimeout(()=>{V(),H()},P))},X=(P=+e.initPage)=>{p(),o.rect=l.value.getBoundingClientRect(),P=Math.min(g.value-1,P),o.width=e.width?+e.width:o.rect.width,o.height=e.height?+e.height:o.rect.height,o.active=P,o.offset=m(o.active),o.moving=!0,f(),H()},D=P=>{e.isPreventDefault&&P.preventDefault(),e.isStopPropagation&&P.stopPropagation(),e.touchable&&(r.start(P),o.touchTime=Date.now(),p(),y())},M=P=>{e.touchable&&o.moving&&(r.move(P),u.value&&C({offset:h.value}))},z=P=>{if(!e.touchable||!o.moving)return;const K=h.value/(Date.now()-o.touchTime);if((Math.abs(K)>.3||Math.abs(h.value)>+(S.value/2).toFixed(2))&&u.value){let j=0;const x=c.value?r.offsetY.value:r.offsetX.value;e.loop?j=x>0?h.value>0?-1:1:0:j=-Math[h.value>0?"ceil":"floor"](h.value/S.value),C({pace:j,isEmit:!0})}else h.value&&C({pace:0});o.moving=!1,f(),H()};return(0,t.provide)("parent",{props:e,size:S,relation:v}),be({prev:T,next:V,to:$}),(0,t.onDeactivated)(()=>{p()}),(0,t.onBeforeUnmount)(()=>{p()}),(0,t.watch)(()=>e.initPage,P=>{(0,t.nextTick)(()=>{X(Number(P))})}),(0,t.watch)(()=>o.children.length,()=>{(0,t.nextTick)(()=>{X()})}),(0,t.watch)(()=>e.autoPlay,P=>{de(P)>0?H():p()}),{state:o,classes:i,classesInner:s,classesPagination:d,container:l,activePagination:k,onTouchStart:D,onTouchMove:M,onTouchEnd:z}}});function dw(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{ref:"container",class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classesInner),style:(0,t.normalizeStyle)(e.state.style)},[(0,t.renderSlot)(e.$slots,"default")],6),(0,t.renderSlot)(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classesPagination)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.state.children.length,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("i",{style:(0,t.normalizeStyle)({backgroundColor:e.activePagination===c?e.paginationColor:"#ddd"}),class:(0,t.normalizeClass)({active:e.activePagination===c}),key:c},null,6))),128))],2)):(0,t.createCommentVNode)("",!0)],34)}var It=re(uw,[["render",dw]]),{create:fw,componentName:mw}=ee("swiper-item"),hw=fw({setup(e,{slots:n}){const a=(0,t.inject)("parent");a.relation((0,t.getCurrentInstance)());const l=(0,t.reactive)({offset:0}),o=(0,t.computed)(()=>({[mw]:!0})),r=(0,t.computed)(()=>{const c={},s=a?.props.direction;return a?.size.value&&(c[s==="horizontal"?"width":"height"]=`${a?.size.value}px`),l.offset&&(c.transform=`translate${s==="horizontal"?"X":"Y"}(${l.offset}px)`),c}),i=c=>{l.offset=c};return(0,t.onUnmounted)(()=>{a.relation((0,t.getCurrentInstance)(),"unmount")}),be({setOffset:i}),{style:r,classes:o}}});function pw(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var qt=re(hw,[["render",pw]]),ji={show:{type:Boolean,default:!1},initNo:{type:Number,default:0},showIndex:{type:Boolean,default:!0},minZoom:{type:Number,default:1/3},maxZoom:{type:Number,default:3}},{create:gw}=ee("image-preview-item"),yw=gw({props:{...ji,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},contentClose:{type:Boolean,default:!0}},emits:["close","scale"],components:{[Dt.name]:Dt,[qt.name]:qt},setup(e,{emit:n}){const a=(0,t.reactive)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),l=lt(),o=(0,t.computed)(()=>{const{rootWidth:T,rootHeight:V}=e,$=V/T;return a.imageRatio>$}),r=(0,t.computed)(()=>{const T=e.image;if(T&&T.src){const{scale:V,moveX:$,moveY:H,moving:X,zooming:D}=a,M={transitionDuration:D||X?"0s":".3s"};return V!==1&&(M.transform=`scale(${V}, ${V}) translate(${$/V}px, ${H/V}px)`),M}return{}}),i=(0,t.computed)(()=>{if(a.imageRatio){const{rootWidth:T,rootHeight:V}=e,$=o.value?V/a.imageRatio:T;return Math.max(0,(a.scale*$-T)/2)}return 0}),c=(0,t.computed)(()=>{if(a.imageRatio){const{rootWidth:T,rootHeight:V}=e,$=o.value?V:T*a.imageRatio;return Math.max(0,(a.scale*$-V)/2)}return 0}),s=T=>{const{naturalWidth:V,naturalHeight:$}=T.target;a.imageRatio=$/V},d=()=>{h(1),a.moveX=0,a.moveY=0},h=T=>{T=Ye(T,+e.minZoom,+e.maxZoom+1),T!==a.scale&&(a.scale=T,n("scale",{scale:T,index:e.initNo}))},u=()=>{h(a.scale>1?1:2),a.moveX=0,a.moveY=0},g=T=>Math.sqrt((T[0].clientX-T[1].clientX)**2+(T[0].clientY-T[1].clientY)**2);let S,w,b,k,f,v,m;const A=T=>{const{touches:V}=T,{offsetX:$}=l;l.start(T),m=V.length,S=a.moveX,w=a.moveY,v=Date.now(),a.moving=m===1&&a.scale!==1,a.zooming=m===2&&!$.value,a.zooming&&(b=a.scale,k=g(T.touches))},C=T=>{const{touches:V}=T;if(l.move(T),(a.moving||a.zooming)&&Il(T,!0),a.moving){const{deltaX:$,deltaY:H}=l,X=$.value+S,D=H.value+w;a.moveX=Ye(X,-i.value,i.value),a.moveY=Ye(D,-c.value,c.value)}if(a.zooming&&V.length===2){const $=g(V);h(b*$/k)}},y=()=>{if(m==1&&e.video&&e.video.source||m>1)return;const{offsetX:T,offsetY:V}=l,$=Date.now()-v,H=250,X=5;T.value<X&&V.value<X&&$<H&&(f?(clearTimeout(f),f=null,u()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},H))},p=T=>{let V=!1;(a.moving||a.zooming)&&(V=!0,a.moving&&S===a.moveX&&w===a.moveY&&(V=!1),T.touches.length||(a.zooming&&(a.moveX=Ye(a.moveX,-i.value,i.value),a.moveY=Ye(a.moveY,-c.value,c.value),a.zooming=!1),a.moving=!1,S=0,w=0,b=1,a.scale<1&&d(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),Il(T,V),y(),l.reset()},N=()=>{n("close")};return(0,t.watch)(()=>e.initNo,d),(0,t.watch)(()=>e.show,T=>{T||d()}),{...(0,t.toRefs)(a),onTouchStart:A,onTouchMove:C,onTouchEnd:p,getDistance:g,imageStyle:r,imageLoad:s,closeSwiper:N}}}),bw=["src"];function vw(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-video"),c=(0,t.resolveComponent)("fox-swiper-item");return(0,t.openBlock)(),(0,t.createBlock)(c,{onClick:e.closeSwiper},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{style:(0,t.normalizeStyle)(e.imageStyle),class:"fox-image-preview-box",onTouchstart:n[1]||(n[1]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[2]||(n[2]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[4]||(n[4]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[e.image&&e.image.src?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:n[0]||(n[0]=(...s)=>e.imageLoad&&e.imageLoad(...s))},null,40,bw)):(0,t.createCommentVNode)("",!0),e.video&&e.video.source?((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):(0,t.createCommentVNode)("",!0)],36)]),_:1},8,["onClick"])}var Sw=re(yw,[["render",vw]]),{create:kw}=ee("image-preview"),ww=kw({props:{...ji,images:{type:Array,default:()=>[]},videos:{type:Array,default:()=>[]},contentClose:{type:Boolean,default:!0},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},autoplay:{type:[Number,String],default:0},teleport:{type:[String,Element],default:"body"},teleportDisable:{ype:Boolean,default:!1},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},beforeClose:Function,isLoop:{type:Boolean,default:!0}},emits:["close","change"],components:{ImagePreviewItem:Sw,CircleClose:oe.CircleClose,[Se.name]:Se,[It.name]:It},setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,t.reactive)({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),o=(0,t.computed)(()=>{const h="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${h}-right`:`${h}-left`}`}),r=(0,t.computed)(()=>dn(e.videos)?[].concat(e.videos).concat(e.images):e.images),i=h=>{h!==l.active&&(l.active=h,n("change",l.active))},c=()=>{Fi(e.beforeClose,{args:[l.active],done:()=>s()})},s=()=>{l.showPop=!1,n("close")},d=()=>{if(a.value){const h=De(a.value);l.rootHeight=h.height,l.rootWidth=h.width}};return(0,t.watch)(()=>e.show,h=>{l.showPop=h,h&&(i(e.initNo),d())}),(0,t.watch)(()=>e.initNo,h=>{h!=l.active&&i(h)}),(0,t.onMounted)(()=>{i(e.initNo)}),{swipeRef:a,...(0,t.toRefs)(l),onClose:c,mergeImages:r,setActive:i,iconClasses:o}}}),Cw={class:"fox-image-preview",ref:"swipeRef"},Nw={key:0,class:"fox-image-preview-index"};function Aw(e,n,a,l,o,r){const i=(0,t.resolveComponent)("image-preview-item"),c=(0,t.resolveComponent)("fox-swiper"),s=(0,t.resolveComponent)("CircleClose"),d=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=h=>e.showPop=h),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Cw,[e.showPop?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.mergeImages,(h,u)=>((0,t.openBlock)(),(0,t.createBlock)(i,{key:u,video:u<e.videos.length?h:{},image:u>=e.videos.length?h:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):(0,t.createCommentVNode)("",!0)],512),e.showIndex?((0,t.openBlock)(),(0,t.createElementBlock)("view",Nw,(0,t.toDisplayString)(e.active+1)+" / "+(0,t.toDisplayString)(e.mergeImages.length),1)):(0,t.createCommentVNode)("",!0),e.closeable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.iconClasses),onClick:n[0]||(n[0]=(...h)=>e.onClose&&e.onClose(...h))},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(s,{color:"#ffffff"})])],2)):(0,t.createCommentVNode)("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}var Wi=re(ww,[["render",Aw]]),Bw=class{show=!1;images=[];videos=[];contentClose=!0;initNo=0;paginationVisible=!1;paginationColor="";autoplay=0;isWrapTeleport=!1;showIndex=!0;closeable=!1;closeIconPosition="top-right";beforeClose;maxZoom=3;minZoom=1/3;isLoop=!0;teleport="body"},Tw=class{options=new Bw;constructor(e){const n=Object.assign(this.options,e),{unmount:a}=zs(n,{name:"image-preview",components:[Se,Dt,It,qt,st],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{a()})},(0,t.h)(Wi,n))}})})}},bl=e=>new Tw(e);bl.install=e=>{e.use(Wi)};function Vw(e){const n=(0,t.getCurrentInstance)();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}var{componentName:F2,create:$w}=ee("countup"),Ew=$w({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:n}){const a=(0,t.ref)(null),l=(0,t.ref)([]),o=N=>{N&&l.value.push(N)},r=(0,t.reactive)({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:i,scrolling:c,customBgImg:s,type:d}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,(N,T)=>{u(),k(0)}),(0,t.watch)(()=>e.machinePrizeLevel,(N,T)=>{r.prizeLevelTrun=N}),(0,t.watch)(()=>e.initNum,(N,T)=>{r.current=N,r.valFlag=!1,h()}),(0,t.watch)(()=>e.endNum,(N,T)=>{r.current=e.initNum,r.valFlag=!1,h()});const h=()=>{if(r.valFlag)return!1;i&&(c||s?d!="machine"&&k():(b(),setTimeout(()=>{r.valFlag=!0},300)))},u=()=>{clearInterval(Number(r.timer)),r.timer=null},g=(N,T,V)=>{const $=(N.toString().split(".")[1]||"").length,H=(T.toString().split(".")[1]||"").length,X=Math.pow(10,Math.max($,H));return V=="-"?Number((N*X-T*X).toFixed(0))/X:Number((N*X+T*X).toFixed(0))/X},S=N=>{let{num_total_len:T,pointNum:V,initDigit1:$,initDigit2:H,sortFlag:X}=r,D=X=="add"||X=="equal"?String(H)[N-(T-V)]:10-Number(String(H)[N-(T-V)]),M=X=="add"||X=="equal"?String($)[N]:10-Number(String($)[N]),z=N>T-V-1?-D*100+"%":N<=String($).length-1?-M*100+"%":0;return z=="-1000%"&&(z=0),z},w=N=>{let{num_total_len:T,pointNum:V,initDigit1:$,initDigit2:H,sortFlag:X}=r,D=String(H)[N-(T-V)];return N>T-V-1?D||0:N<=String($).length-1?String($)[N]:0},b=()=>{let{endNum:N,initNum:T,speed:V,toFixed:$}=e,H=setInterval(()=>{if(T>N)if(r.current<=N||r.current<=V)r.current=Number(N.toFixed($)),clearInterval(H),n("scroll-end"),r.valFlag=!1;else{let X=parseFloat(String(r.current))-parseFloat(String(V));r.current=Number(X.toFixed($))}else if(r.current>=N)r.current=Number(N.toFixed($)),clearInterval(H),n("scroll-end"),r.valFlag=!1;else{let X=parseFloat(String(r.current))+parseFloat(String(V));r.current=Number(X.toFixed($))}},e.during)},k=N=>{let{initNum:T,endNum:V,toFixed:$,customBgImg:H}=e;H&&(T=e.customChangeNum);let X,D,M,z;T!=0?($!=0&&(T=Number(T.toFixed($))),String(T).indexOf(".")>-1?(X=String(T).split(".")[0].length,D=String(T).split(".")[1].length):(X=String(T).length,D=0)):(X=1,D=0),V!=0?($!=0&&(V=Number(V.toFixed($))),String(V).indexOf(".")>-1?(M=String(V).split(".")[0].length,z=String(V).split(".")[1].length):(M=String(V).length,z=0)):(M=1,z=0);let P=X>=M?X:M,K=D>=z?D:z;r.num_total_len=P+K,r.pointNum=K,T>V?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=g(T,V,"-"),r.numberVal=Number(String(T))):T<V?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=g(V,T,"-"),r.numberVal=Number(String(V))):r.sortFlag="equal";var j=1;for(let _=0;_<r.pointNum;_++)j*=10;var x=r.numberVal*j;if(r.relNum=x,$!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(x).length),String(T).indexOf(".")>-1){let _=String(T).split(".");r.initDigit1=Number(_[0]),r.initDigit2=Number(_[1])}else r.initDigit1=T,r.initDigit2=0;c&&!H?(0,t.nextTick)(()=>{if(r.sortFlag=="equal")return!1;let _=l.value[r.num_total_len-1];f(_)}):N!==0&&A()},f=N=>{u();var T=1;r.pointNum!=0&&(T=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{v(N),r.totalCount=g(r.totalCount,T,"-"),r.totalCount<=0&&(u(),n("scroll-end"),r.valFlag=!1)},e.during)},v=N=>{let T=N.getAttribute("turn-number"),V;if(r.sortFlag=="add"?V=parseInt(String(T))+1:V=parseInt(String(T))-1>=0?parseInt(String(T))-1:9,N.setAttribute("turn-number",String(V)),(N.style.transition=="none 0s ease 0s"||V==1||!N.style.transition)&&(N.style.transition=`all linear ${e.during}ms`),V==10||r.sortFlag=="reduce"&&V==0){var $=null;N.style.top=`-${r.sortFlag=="add"?V*100:(10-V)*100}%`,N.setAttribute("turn-number","0"),$=setTimeout(()=>{$&&clearTimeout($),N.style.transition="none",N.style.top="0",m(N,V)},.975*e.during)}else N.style.top=`-${r.sortFlag=="add"?V*100:(10-V)*100}%`;N.style.top=="-100%"&&r.sortFlag=="reduce"&&v(N.previousSibling)},m=(N,T)=>{setTimeout(()=>{T==10&&N.previousSibling&&v(N.previousSibling)},200)},A=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),(0,t.nextTick)(()=>{a.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},C=()=>{for(r.notPrize=[];r.notPrize.length<3;){var N=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(N)==-1&&r.notPrize.push(N)}};Vw({machineLuck:()=>{const N=e.machineTurnMore<0?0:e.machineTurnMore;let T=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&C();for(let V=0;V<e.machineNum;V++)setTimeout(()=>{let $=T*(V+1+parseFloat(String(N)));r.prizeYPrev.length!=0&&(r.prizeY[V]=r.prizeYPrev[V]);let H=r.prizeYPrev[V]?r.prizeYPrev[V]:0,X=$+H+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(T-H);r.prizeLevelTrun<0&&(X+=e.numHeight*r.notPrize[V]),p(V,X,H)},500*V)}});const p=(N,T,V)=>{let $=setInterval(()=>{if(V<=T)V+=10,r.prizeY[N]=parseFloat(String(V));else if(clearInterval($),$=null,r.finshMachine+=1,r.prizeY[N]=T,r.finshMachine==e.machineNum){let H=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(X=>{let D=X;for(;D>H;)D-=H;r.prizeYPrev.push(D)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return(0,t.onMounted)(()=>{r.current=e.initNum,(0,t.nextTick)(()=>{h()})}),(0,t.onUnmounted)(()=>{u(),r.timer=null}),{...(0,t.toRefs)(r),...(0,t.toRefs)((0,t.reactive)(e)),runNumberImg:a,setRef:o,topNumber:S,turnNumber:w}}}),Dw={class:"fox-countup"},Iw=["turn-number"];function qw(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Dw,[e.customBgImg!=""?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.type=="machine"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup__machine",style:(0,t.normalizeStyle)({height:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.machineNum,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-countup__machine-item",key:"mImg"+c,style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[c]+"px"})},null,4))),128))],4)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:(0,t.normalizeStyle)({height:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.num_total_len,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-countup__numberimg__item",key:"cImg"+c,style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(Number(c)>e.num_total_len-e.pointNum-1?Number(c)==e.num_total_len-e.pointNum?Number(c)*1.5:Number(c)*1.3:Number(c))+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[c]*e.numHeight+e.customSpacNum*+String(e.relNum)[c])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup-pointstyl",style:(0,t.normalizeStyle)({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):(0,t.createCommentVNode)("",!0)],4))],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.scrolling?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup__number",style:(0,t.normalizeStyle)({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.num_total_len,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{ref_for:!0,ref:s=>e.setRef(s),class:"fox-countup__number-item",key:i,style:(0,t.normalizeStyle)({top:e.topNumber(c),left:e.numWidth*(Number(c)>e.num_total_len-e.pointNum-1?Number(c)*1.1:Number(c))+"px"}),"turn-number":e.turnNumber(c)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.to0_10,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-countup__number-item__span",key:"dote"+d,style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},(0,t.toDisplayString)(s),5))),128))],12,Iw))),128)),e.pointNum>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup-pointstyl",style:(0,t.normalizeStyle)({width:e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px",top:0,left:e.numWidth*(e.num_total_len-e.pointNum)+"px"})},".",4)):(0,t.createCommentVNode)("",!0)],4)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.current),1)],64))],64))])}var qo=re(Ew,[["render",qw]]),xw=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:Pw,create:Mw}=ee("countdown"),zw=Mw({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:a}){const l=(0,t.reactive)({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),o=(0,t.computed)(()=>({[Pw]:!0})),r=(0,t.computed)(()=>s(l.restTime)),i=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-xw(e.startTime),l.counting||(l.counting=!0),c()},c=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const S=Date.now()-l.diffTime,w=Math.max(l.handleEndTime-S,0);l.restTime=w,w||(l.counting=!1,u(),n("on-end")),w>0&&c()}}))},s=(S,w)=>{const b=S;let k={d:0,h:0,m:0,s:0,ms:0};const f=1e3,v=60*f,m=60*v,A=24*m;return b>0&&(k.d=b>=f?Math.floor(b/A):0,k.h=Math.floor(b%A/m),k.m=Math.floor(b%m/v),k.s=Math.floor(b%v/f),k.ms=Math.floor(b%f)),w=="custom"?k:d({...k})},d=S=>{let{d:w,h:b,m:k,s:f,ms:v}=S,m=e.format;if(m.includes("DD")?m=m.replace("DD",rt(w)):b+=Number(w)*24,m.includes("HH")?m=m.replace("HH",rt(b)):k+=Number(b)*60,m.includes("mm")?m=m.replace("mm",rt(k)):f+=Number(k)*60,m.includes("ss")?m=m.replace("ss",rt(f)):v+=Number(f)*1e3,m.includes("S")){const A=rt(v,3).toString();m.includes("SSS")?m=m.replace("SSS",A):m.includes("SS")?m=m.replace("SS",A.slice(0,2)):m.includes("S")&&(m=m.replace("SS",A.slice(0,1)))}return m},h=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),c(),n("on-restart",l.restTime))},u=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},g=()=>{e.autoStart||(u(),l.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?i():l.restTime=e.time}),(0,t.watch)(()=>l.restTime,S=>{let w=s(S,"custom");n("update:modelValue",w),n("input",w)}),(0,t.watch)(()=>e.paused,(S,w)=>{w?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),c()),n("on-restart",l.restTime)):l.counting&&u()}),(0,t.watch)(()=>e.endTime,S=>{i()}),(0,t.watch)(()=>e.startTime,S=>{i()}),{...(0,t.toRefs)(e),slots:a,classes:o,start:h,pause:u,renderTime:r,reset:g}}}),Lw=["innerHTML"];function Rw(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,Lw))],2)}var xo=re(zw,[["render",Rw]]),{create:Fw}=ee("badge"),Ow=Fw({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){return{state:(0,t.reactive)({}),stl:(0,t.computed)(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),content:(0,t.computed)(()=>{if(e.dot)return;const n=e.value,a=e.max;return typeof n=="number"&&typeof a=="number"&&a<n?`${a}+`:n})}}}),Kw={class:"fox-badge"},Uw=["textContent"];function Hw(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Kw,[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-badge__icon",style:(0,t.normalizeStyle)(e.stl)},[(0,t.renderSlot)(e.$slots,"icon")],4),[[t.vShow,!e.hidden&&!e.dot&&e.$slots.icon]]),(0,t.renderSlot)(e.$slots,"default"),(0,t.withDirectives)((0,t.createElementVNode)("view",{textContent:(0,t.toDisplayString)(e.content),class:(0,t.normalizeClass)(["fox-badge__content fox-badge__content--sup",{"fox-badge__content--dot":e.dot,"fox-badge__content--bubble":!e.dot&&e.bubble}]),style:(0,t.normalizeStyle)(e.stl)},null,14,Uw),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var Po=re(Ow,[["render",Hw]]),{componentName:jw,create:Ww}=ee("tag"),Yw=Ww({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:oe.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:(0,t.computed)(()=>{const i=jw;return{[i]:!0,[`${i}--${e.type}`]:!0,[`${i}--plain`]:e.plain,[`${i}--round`]:e.round,[`${i}--mark`]:e.mark,[`${i}--symbol`]:e.symbol,[`${i}--text`]:e.text,[`${i}--light`]:e.light}}),getStyle:()=>{const i={};return e.textColor?i.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(i.color=e.color),e.plain?(i.background="#fff",i["border-color"]=e.color):!e.text&&e.color&&(i.background=e.color),i},onClose:i=>{i.stopPropagation(),n("close",i)},onClick:i=>{n("click",i)}}}});function Xw(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle()),onClick:n[0]||(n[0]=(...c)=>e.onClick&&e.onClick(...c))},[(0,t.renderSlot)(e.$slots,"default"),e.closeable?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],6)}var Mo=re(Yw,[["render",Xw]]),{create:Qw}=ee("popover"),Gw=Qw({components:{FoxPopup:Se},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,t.ref)(),o=(0,t.ref)(e.visible);let r=(0,t.ref)(),i=(0,t.ref)();const c=(0,t.computed)(()=>{const v="fox-popover-arrow",m=e.location;return`${v} ${v}-${m.split("-")[0]} ${v}--${m}`}),s=(0,t.computed)(()=>{const v={},{bgColor:m,arrowOffset:A,location:C}=e,y=C.split("-")[0],p=C.split("-")[1],N=16;return m&&(v[`border${d(y)}Color`]=m),e.arrowOffset!=0&&(["bottom","top"].includes(y)&&(p||(v.left=`calc(50% + ${A}px)`),p=="start"&&(v.left=`${N+A}px`),p=="end"&&(v.right=`${N-A}px`)),["left","right"].includes(y)&&(p||(v.top=`calc(50% - ${A}px)`),p=="start"&&(v.top=`${N-A}px`),p=="end"&&(v.bottom=`${N+A}px`))),v}),d=v=>(v=v.toLowerCase(),v=v.replace(/\b\w+\b/g,m=>m.substring(0,1).toUpperCase()+m.substring(1)),v),h=(0,t.computed)(()=>{let v={};if(!r.value||!i.value)return{};const m=i.value.width,A=i.value.height,{width:C,height:y,left:p,top:N}=r.value,{location:T,offset:V}=e,$=T.split("-")[0],H=T.split("-")[1];let X=0,D=0;return dn(V)&&V.length==2&&(X+=Number(V[1]),D+=Number(V[0])),C&&(["bottom","top"].includes($)&&(v.top=`${N+($=="bottom"?y+X:-(A+X))}px`,H||(v.left=`${-(m-C)/2+p+D}px`),H=="start"&&(v.left=`${p+D}px`),H=="end"&&(v.left=`${r.value.right+D}px`)),["left","right"].includes($)&&(v.left=`${p+($=="left"?-(m+X):C+X)}px`,H||(v.top=`${N-A/2+y/2-4+D}px`),H=="start"&&(v.top=`${N+D}px`),H=="end"&&(v.top=`${N+y+D}px`))),v}),u=(0,t.computed)(()=>{const v={};return e.bgColor&&(v.background=e.bgColor),v}),g=()=>{let v=De(a.value);e.targetId&&(v=De(document.querySelector(`#${e.targetId}`))),r.value=v,setTimeout(()=>{i.value={height:l.value?.clientHeight,width:l.value?.clientWidth}},0)};(0,t.onMounted)(()=>{setTimeout(()=>{g()},200)}),(0,t.watch)(()=>e.visible,v=>{o.value=v,v?(window.addEventListener("touchstart",f,!0),g()):window.removeEventListener("touchstart",f,!0)});const S=v=>{n("update",v),n("update:visible",v)},w=()=>{S(!e.visible),n("open")},b=()=>{n("update:visible",!1),n("close")},k=(v,m)=>{!v.disabled&&n("choose",v,m),e.closeOnClickAction&&b()},f=v=>{const m=a.value,A=l.value;let C=m&&!m.contains(v.target);if(e.targetId){const y=document.querySelector(`#${e.targetId}`);C=y&&!y.contains(v.target)}C&&A&&!A.contains(v.target)&&e.closeOnClickOutside&&b()};return{showPopup:o,openPopover:w,popoverArrow:c,closePopover:b,chooseItem:k,popoverRef:a,popoverContentRef:l,getRootPosition:h,customStyle:u,popoverArrowStyle:s,renderIcon:Dr}}}),Zw={ref:"popoverContentRef",class:"fox-popover-content-group"},_w=["onClick"],Jw={class:"fox-popover-menu-item-name"};function eC(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.targetId?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:n[0]||(n[0]=(...c)=>e.openPopover&&e.openPopover(...c))},[(0,t.renderSlot)(e.$slots,"reference")],512)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:(0,t.normalizeStyle)(e.getRootPosition)},[(0,t.createVNode)(i,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.showPopup=c),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:(0,t.normalizeStyle)(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Zw,[e.showArrow?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.popoverArrow),style:(0,t.normalizeStyle)(e.popoverArrowStyle)},null,6)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content"),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.list,(c,s)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:s,class:(0,t.normalizeClass)([c.className,c.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:(0,t.withModifiers)(d=>e.chooseItem(c,s),["stop"])},[c.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(c.icon)),{key:0,class:"fox-popover-item-img"})):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Jw,(0,t.toDisplayString)(c.name),1)],10,_w))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}var on=re(Gw,[["render",eC]]),tC=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:a,round:l,avatarSize:o}=(0,t.toRefs)(n),r=(0,t.computed)(()=>{const s="avatarClass";return{[s]:!0,[`${s}--${a.value}`]:a.value}});return{avatarShape:a,avatarClass:r,getBlockClass:s=>({[s]:!0,[`${s}--round`]:l.value}),getStyle:()=>o.value?{width:o.value,height:o.value}:{width:"50px",height:"50px"}}}}),{create:nC}=ee("skeleton"),lC=nC(tC({[an.name]:an})),aC={key:0},oC={key:1,class:"fox-skeleton"},rC={key:0,class:"fox-skeleton-animation"},iC={class:"fox-skeleton-content"};function sC(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",oC,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",rC)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",iC,[e.avatar?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:(0,t.normalizeClass)(e.avatarClass),shape:e.avatarShape,style:(0,t.normalizeStyle)(e.getStyle())},null,8,["class","shape","style"])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-skeleton-content__line",style:(0,t.normalizeStyle)({width:e.width})},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.getBlockClass("fox-skeleton-blockTitle")),style:(0,t.normalizeStyle)({height:e.height})},null,6)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.row),c=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:c,class:(0,t.normalizeClass)(e.getBlockClass("fox-skeleton-blockLine")),style:(0,t.normalizeStyle)({height:e.height})},null,6))),128))],4)])])):((0,t.openBlock)(),(0,t.createElementBlock)("view",aC,[(0,t.renderSlot)(e.$slots,"default")]))}var zo=re(lC,[["render",sC]]),{create:cC,componentName:uC}=ee("collapse"),dC=cC({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=(0,t.ref)(null),l=(0,t.ref)(e.modelValue||(e.accordion?"":[])),o=(0,t.computed)(()=>({[uC]:!0}));(0,t.watch)(()=>e.modelValue,s=>{l.value=s});const r=(s,d,h=!0)=>{l.value=s,n("update:modelValue",s),n("change",s,d,h)},i=s=>{e.accordion?l.value===s?r("",s,!1):r(s,s,!0):Array.isArray(l.value)?l.value.includes(s)?r(l.value.filter(d=>d!==s),s,!1):r(l.value.concat([s]),s,!0):console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},c=s=>e.accordion?l.value===s:Array.isArray(l.value)?l.value.includes(s):!1;return(0,t.provide)("collapseParent",{updateVal:i,isExpanded:c}),{collapseDom:a,classes:o}}});function fC(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"collapseDom"},[(0,t.renderSlot)(e.$slots,"default")],2)}var Lo=re(dC,[["render",fC]]),{create:mC,componentName:hC}=ee("collapse-item"),pC=mC({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:oe.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=(0,t.ref)(null),a=(0,t.ref)(null),l=(0,t.reactive)((0,t.inject)("collapseParent")),o=(0,t.computed)(()=>{const u=hC;return{[u]:!0,[u+"__border"]:e.border}}),r=(0,t.computed)(()=>l?l.isExpanded(e.name):!1),i=(0,t.ref)(r.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},s=()=>{r.value&&(i.value="auto")},d=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const u=a.value?.offsetHeight;i.value=u?`${u}px`:"auto"})})},h=()=>{const u=a.value?.offsetHeight;i.value=u?`${u}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return(0,t.watch)(r,u=>{u?d():h()}),{classes:o,renderIcon:Dr,wrapperRef:n,contentRef:a,open:d,toggle:c,wrapperHeight:i,expanded:r,onTransitionEnd:s}}}),gC={class:"fox-collapse-item__title-main"},yC={class:"fox-collapse-item__title-main-value"},bC=["innerHTML"],vC={key:2,class:"fox-collapse-item__title-label"},SC={key:0,class:"fox-collapse-item__title-sub"},kC=["innerHTML"],wC={key:0,class:"fox-collapse__item-extraWrapper"},CC={class:"fox-collapse__item-extraWrapper__extraRender"},NC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function AC(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:n[0]||(n[0]=(...i)=>e.toggle&&e.toggle(...i))},[(0,t.createElementVNode)("view",gC,[(0,t.createElementVNode)("view",yC,[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,innerHTML:e.title,class:"fox-collapse-item__title-mtitle"},null,8,bC)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",vC,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",SC,[(0,t.renderSlot)(e.$slots,"value")])):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,kC)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-collapse-item__title-icon",{"fox-collapse-item__title-icon--expanded":e.expanded}]),style:(0,t.normalizeStyle)({transform:"rotate("+(e.expanded?e.rotate:0)+"deg)"})},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.icon))))],6)],2),e.$slots.extra?((0,t.openBlock)(),(0,t.createElementBlock)("view",wC,[(0,t.createElementVNode)("div",CC,[(0,t.renderSlot)(e.$slots,"extra")])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:(0,t.normalizeStyle)({willChange:"height",height:e.wrapperHeight}),onTransitionend:n[1]||(n[1]=(...i)=>e.onTransitionEnd&&e.onTransitionEnd(...i))},[(0,t.createElementVNode)("view",NC,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var Ro=re(pC,[["render",AC]]),BC=(0,t.defineComponent)({setup(e){return()=>(0,t.h)("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}}),{componentName:TC,create:VC,scope:$C}=ee("table"),EC=VC({components:{RenderColumn:BC,DownArrow:oe.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:l}=(0,pe.useFoxI18n)($C),o=(0,t.reactive)({curData:e.data}),r=(0,t.computed)(()=>({[TC]:!0})),i=S=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${S.align?S.align:""}`]:!0}),c=S=>S.stylehead?S.stylehead:"",s=S=>S.stylecolumn?S.stylecolumn:"",d=S=>e.columns.filter(w=>w.key===S)[0],h=S=>{const w=e.columns.filter(b=>b.key===S);return w[0].stylecolumn?w[0].stylecolumn:""},u=S=>{S.sorter&&(n("sorter",S),o.curData=typeof S.sorter=="function"?o.curData.sort(S.sorter):S.sorter==="default"?o.curData.sort():o.curData)},g=()=>e.columns.map(S=>[S.key,S.render]);return(0,t.watch)(()=>e.data,S=>{o.curData=S.slice()}),{...(0,t.toRefs)(o),classes:r,cellClasses:i,getColumnItem:d,getColumnItemStyle:h,handleSorterClick:u,sortDataItem:g,t:l,stylehead:c,stylecolumn:s}}}),DC={class:"fox-table__main__head"},IC={class:"fox-table__main__head__tr"},qC=["onClick"],xC={class:"fox-table__main__body"},PC={key:1},MC={key:0,class:"fox-table__nodata"},zC={key:0,class:"fox-table__nodata__text"},LC={key:1,class:"fox-table__summary"},RC=["innerHTML"];function FC(e,n,a,l,o,r){const i=(0,t.resolveComponent)("DownArrow"),c=(0,t.resolveComponent)("RenderColumn");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-table__main",{"fox-table__main--striped":e.striped}])},[(0,t.createElementVNode)("view",DC,[(0,t.createElementVNode)("view",IC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,s=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__head__tr__th",e.cellClasses(s)]),key:s.key,onClick:d=>e.handleSorterClick(s),style:(0,t.normalizeStyle)(s.stylehead)},[(0,t.createTextVNode)((0,t.toDisplayString)(s.title)+" ",1),(0,t.renderSlot)(e.$slots,"icon"),!e.$slots.icon&&s.sorter?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,width:"12px",height:"12px"})):(0,t.createCommentVNode)("",!0)],14,qC))),128))])]),(0,t.createElementVNode)("view",xC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.curData,s=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-table__main__body__tr",key:s},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.sortDataItem(),([d,h])=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:(0,t.normalizeStyle)(e.getColumnItemStyle(d))},[typeof s[d]=="function"||typeof h=="function"?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,slots:[h,s[d]],record:s},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",PC,(0,t.toDisplayString)(s[d]),1))],6))),128))]))),128))])],2),e.curData.length?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",MC,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-table__nodata",{"fox-table__nodata--border":e.bordered}])},[(0,t.renderSlot)(e.$slots,"nodata"),e.$slots.nodata?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",zC,(0,t.toDisplayString)(e.t("noData")),1))],2)])),e.summary?((0,t.openBlock)(),(0,t.createElementBlock)("view",LC,[(0,t.createElementVNode)("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,RC)])):(0,t.createCommentVNode)("",!0)],2)}var Fo=re(EC,[["render",FC]]),{componentName:OC,create:KC}=ee("ellipsis"),UC=KC({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const a=(0,t.ref)(null);let l=null,o=0;const r=(0,t.ref)(),i=(0,t.reactive)({exceeded:!1,expanded:!1}),c=(0,t.computed)(()=>({[OC]:!0}));(0,t.watch)(()=>e.content,(b,k)=>{b!=k&&s()}),(0,t.onMounted)(()=>{s()});const s=()=>{if(!a.value)return;const b=window.getComputedStyle(a.value);l=document.createElement("div"),Array.prototype.slice.apply(b).forEach(f=>{l.style.setProperty(f,b.getPropertyValue(f))}),l.style.position="fixed",l.style.left="999999px",l.style.top="999999px",l.style.zIndex="-1000",l.style.height="auto",l.style.minHeight="auto",l.style.maxHeight="auto",l.style.textOverflow="clip",l.style.whiteSpace="normal",l.style.webkitLineClamp="unset",l.style.display="block";const k=g(b.lineHeight==="normal"?e.lineHeight:b.lineHeight);o=Math.floor(k*(Number(e.rows)+.5)+g(b.paddingTop)+g(b.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),d()},d=()=>{if(l.offsetHeight<=o)i.exceeded=!1,document.body.removeChild(l);else{i.exceeded=!0;const b=e.content.length,k=Math.floor((0+b)/2);r.value=e.direction==="middle"?u([0,k],[k,b]):h(0,b),document.body.removeChild(l)}},h=(b,k)=>{const f=i.expanded?e.collapseText:e.expandText,v=e.content.length;if(k-b<=1)return e.direction==="end"?{leading:e.content.slice(0,b)+e.symbol}:{tailing:e.symbol+e.content.slice(k,v)};const m=Math.round((b+k)/2);return e.direction==="end"?l.innerText=e.content.slice(0,m)+e.symbol+f:l.innerText=f+e.symbol+e.content.slice(m,v),l.offsetHeight<=o?e.direction==="end"?h(m,k):h(b,m):e.direction==="end"?h(b,m):h(m,k)},u=(b,k)=>{const f=i.expanded?e.collapseText:e.expandText,v=e.content.length;if(b[1]-b[0]<=1&&k[1]-k[0]<=1)return{leading:e.content.slice(0,b[0])+e.symbol,tailing:e.symbol+e.content.slice(k[1],v)};const m=Math.floor((b[0]+b[1])/2),A=Math.ceil((k[0]+k[1])/2);return l.innerText=e.content.slice(0,m)+e.symbol+f+e.symbol+e.content.slice(A,v),l.offsetHeight<=o?u([m,b[1]],[k[0],A]):u([b[0],m],[A,k[1]])},g=b=>{if(!b)return 0;const k=b.match(/^\d*(\.\d*)?/);return k?Number(k[0]):0},S=b=>{b==1?(i.expanded=!0,n("change","expand")):(i.expanded=!1,n("change","collapse"))},w=()=>{n("click")};return{...(0,t.toRefs)(i),root:a,ellipsis:r,classes:c,clickHandle:S,handleClick:w}}}),HC={key:0},jC={key:1},WC={key:2};function YC(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[2]||(n[2]=(...i)=>e.handleClick&&e.handleClick(...i)),ref:"root"},[e.exceeded?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",HC,(0,t.toDisplayString)(e.content),1)),e.exceeded&&!e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",jC,[(0,t.createTextVNode)((0,t.toDisplayString)(e.ellipsis&&e.ellipsis.leading),1),e.expandText?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-ellipsis__text",onClick:n[0]||(n[0]=(0,t.withModifiers)(i=>e.clickHandle(1),["stop"]))},(0,t.toDisplayString)(e.expandText),1)):(0,t.createCommentVNode)("",!0),(0,t.createTextVNode)((0,t.toDisplayString)(e.ellipsis&&e.ellipsis.tailing),1)])):(0,t.createCommentVNode)("",!0),e.exceeded&&e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",WC,[(0,t.createTextVNode)((0,t.toDisplayString)(e.content)+" ",1),e.expandText?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-ellipsis__text",onClick:n[1]||(n[1]=(0,t.withModifiers)(i=>e.clickHandle(2),["stop"]))},(0,t.toDisplayString)(e.collapseText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2)}var Oo=re(UC,[["render",YC]]),{componentName:XC,create:QC}=ee("animate"),GC=QC({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:a,loop:l,action:o}=(0,t.toRefs)(e),r=(0,t.reactive)({clicked:!1});let i=(0,t.computed)(()=>({"fox-animate__container":!0,[`${XC}-${a.value}`]:o.value==="initial"||r.clicked?a.value:!1,loop:l.value}));const c=s=>{r.clicked=!0,l.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",s)};return{...(0,t.toRefs)(r),classes:i,handleClick:c}}}),ZC={class:"fox-animate"};function _C(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",ZC,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i)),style:(0,t.normalizeStyle)({animationDuration:e.duration?`${e.duration}ms`:void 0})},[(0,t.renderSlot)(e.$slots,"default")],6)])}var Ko=re(GC,[["render",_C]]),{componentName:JC,create:e2}=ee("watermark"),t2=e2({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const a=(0,t.reactive)({base64Url:""}),{zIndex:l,gapX:o,gapY:r,width:i,height:c,rotate:s,image:d,imageWidth:h,imageHeight:u,content:g,fontStyle:S,fontWeight:w,fontColor:b,fontSize:k,fontFamily:f}=e,v=()=>{const A=document.createElement("canvas"),C=window.devicePixelRatio,y=A.getContext("2d"),p=`${(o+i)*C}px`,N=`${(r+c)*C}px`,T=i*C,V=c*C;if(A.setAttribute("width",p),A.setAttribute("height",N),y)if(d){y.translate(T/2,V/2),y.rotate(Math.PI/180*Number(s));const $=new Image;$.crossOrigin="anonymous",$.referrerPolicy="no-referrer",$.src=d,$.onload=()=>{y.drawImage($,-h*C/2,-u*C/2,h*C,u*C),y.restore(),a.base64Url=A.toDataURL()}}else g&&(y.textBaseline="middle",y.textAlign="center",y.translate(T/2,V/2),y.rotate(Math.PI/180*Number(s)),y.font=`${S} normal ${w} ${Number(k)*C}px/${V}px ${f}`,y.fillStyle=b,y.fillText(g,0,0),y.restore(),a.base64Url=A.toDataURL());else throw new Error("当前环境不支持Canvas")};v(),(0,t.watch)(()=>[l,o,r,i,c,s,d,h,u,g,S,w,b,k,f],()=>{v()});const m=(0,t.computed)(()=>{const A=JC;return{[A]:!0,[`${A}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(a),classes:m}}});function n2(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}var Uo=re(t2,[["render",n2]]);function l2(e,n=2){return Object.is(parseFloat(e),NaN)?console.log(`传入的值:${e}不是一个数字`):(e=parseFloat(e),(Math.round((e+Number.EPSILON)*Math.pow(10,n))/Math.pow(10,n)).toFixed(n))}var{componentName:a2,create:o2}=ee("trend-arrow"),r2=o2({components:{TriangleUp:oe.TriangleUp,TriangleDown:oe.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=(0,t.reactive)({rateTrend:e.rate>0}),a=(0,t.computed)(()=>({[a2]:!0})),l=(0,t.computed)(()=>{const{rate:r,digits:i,showSign:c,showZero:s}=e;n.rateTrend=r>0;const d=Math.abs(r);return!s&&r===0?"--":`${c&&r!==0?n.rateTrend?"+":"-":""}${l2(Number(d),i)}%`}),o=(0,t.computed)(()=>{const{dropColor:r,riseColor:i,syncTextColor:c,textColor:s,rate:d}=e;return{color:d===0?s:c?n.rateTrend?i:r:s}});return{...(0,t.toRefs)(n),classes:a,calcRate:l,calcStyle:o}}});function i2(e,n,a,l,o,r){const i=(0,t.resolveComponent)("TriangleUp"),c=(0,t.resolveComponent)("TriangleDown");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.arrowLeft?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?(0,t.renderSlot)(e.$slots,"up-icon",{key:1},()=>[(0,t.createVNode)(i,{color:e.riseColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),Number(e.rate)!==0&&!e.rateTrend?(0,t.renderSlot)(e.$slots,"down-icon",{key:2},()=>[(0,t.createVNode)(c,{color:e.dropColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.arrowLeft?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)):(0,t.createCommentVNode)("",!0)],2)}var Ho=re(r2,[["render",i2]]),{create:s2}=ee("tour"),c2=s2({components:{[on.name]:on,Close:oe.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),l=(0,t.ref)({}),o=(0,t.computed)(()=>"fox-tour"),r=(0,t.computed)(()=>{const{offset:h,maskWidth:u,maskHeight:g}=e,{width:S,height:w,left:b,top:k}=l.value,f=[b+S/2,k+w/2],v=Number(u||S),m=Number(g||w);return{width:`${v+ +h[1]*2}px`,height:`${m+ +h[0]*2}px`,top:`${f[1]-m/2-+h[0]}px`,left:`${f[0]-v/2-+h[1]}px`}}),i=h=>{h=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,(0,t.nextTick)(()=>{a.showPopup=!0,c()}),n("change",a.active)},c=()=>{l.value=De(document.querySelector(`#${e.steps[a.active].target}`))},s=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&s()};return(0,t.onMounted)(()=>{a.active=0,c()}),(0,t.watch)(()=>e.modelValue,h=>{h&&c(),a.active=0,a.showTour=h,a.showPopup=h}),{...(0,t.toRefs)(a),classes:o,maskStyle:r,changeStep:i,close:s,handleClickMask:d}}}),u2={key:0,class:"fox-tour-content"},d2={key:0,class:"fox-tour-content-top"},f2={class:"fox-tour-content-inner"},m2={class:"fox-tour-content-bottom"},h2={class:"fox-tour-content-bottom-init"},p2={class:"fox-tour-content-bottom-operate"},g2={key:1,class:"fox-tour-content fox-tour-content-tile"},y2={class:"fox-tour-content-inner"};function b2(e,n,a,l,o,r){const i=(0,t.resolveComponent)("Close"),c=(0,t.resolveComponent)("fox-popover");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...s)=>e.handleClickMask&&e.handleClickMask(...s))},null,512),[[t.vShow,e.showTour]]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.steps,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:d,style:{height:"0"}},[d==e.active?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.showTour?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:(0,t.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(c,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=h=>e.showPopup=h),location:s.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:s.popoverOffset||[0,12],arrowOffset:s.arrowOffset||0},{content:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,t.openBlock)(),(0,t.createElementBlock)("div",u2,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",d2,[(0,t.createElementVNode)("div",{onClick:n[1]||(n[1]=(...h)=>e.close&&e.close(...h))},[(0,t.createVNode)(i,{class:"fox-tour-content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",f2,(0,t.toDisplayString)(s.content),1),(0,t.createElementVNode)("div",m2,[(0,t.createElementVNode)("div",h2,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",p2,[(0,t.renderSlot)(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:n[2]||(n[2]=h=>e.changeStep("prev"))},(0,t.toDisplayString)(e.prevStepTxt),1)):(0,t.createCommentVNode)("",!0)]),e.steps.length-1==e.active?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[3]||(n[3]=(...h)=>e.close&&e.close(...h))},(0,t.toDisplayString)(e.completeTxt),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[4]||(n[4]=h=>e.changeStep("next"))},(0,t.toDisplayString)(e.nextStepTxt),1)):(0,t.createCommentVNode)("",!0)])])])])):(0,t.createCommentVNode)("",!0),e.type=="tile"?((0,t.openBlock)(),(0,t.createElementBlock)("div",g2,[(0,t.createElementVNode)("div",y2,(0,t.toDisplayString)(s.content),1)])):(0,t.createCommentVNode)("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):(0,t.createCommentVNode)("",!0)]))),128))],2)}var jo=re(c2,[["render",b2]]),{componentName:v2,create:S2}=ee("barrage"),k2=S2({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const n=new Date().getTime(),a=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[v2]:!0}));let o=(0,t.ref)(document.createElement("div")),r=(0,t.ref)(document.createElement("div")),i=null;const c=(0,t.ref)(e.danmu),s=(0,t.ref)(e.rows),d=(0,t.ref)(e.top),h=(0,t.ref)(0),u=e.speeds,g=(0,t.ref)(0);(0,t.onMounted)(()=>{S(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(b(),h.value=0,w("hidden")):document.visibilityState==="visible"&&S()})}),(0,t.onUnmounted)(()=>{c.value=[],b()});const S=()=>{g.value=o.value.offsetWidth,a&&w("init"),setTimeout(()=>{o.value?.style.setProperty("--move-distance",`-${g.value}px`),f()},300)},w=m=>{let A=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const C=[];A&&Array.from(A).forEach(y=>{m=="init"?(y.style.opacity="0",C.push(y)):(y.classList="",y.style={})}),m=="init"&&(c.value=C)},b=()=>{i&&(clearTimeout(i),i=null)};(0,t.watch)(()=>e.danmu,m=>{e.danmu.length>0&&(c.value=[...m])});const k=m=>{const A=h.value%c.value.length;!e.loop&&h.value===c.value.length?c.value.splice(c.value.length,0,m):c.value.splice(A,0,m)},f=()=>{b(),i=setTimeout(()=>{v()},e.frequency)},v=()=>{const m=e.loop?h.value%c.value.length:h.value;let A=document.createElement("view");a&&typeof c.value[m]=="object"?(A=c.value[m],A?.classList?.add("fox-barrage__item")):(A.innerHTML=c.value[m],A.classList.add("fox-barrage__item"),r.value.appendChild(A)),(0,t.nextTick)(()=>{const C=A.offsetHeight;if(A?.classList?.add("move"),A.style.animationDuration=`${u}ms`,A.style.top=m%s.value*(C+d.value)+20+"px",A.style.opacity="1",!a){const y=A.offsetWidth;A.style.width=y+20+"px"}A.addEventListener("animationend",()=>{a?A.classList.remove("move"):r.value.removeChild(A)}),!(!e.loop&&h.value>=c.value.length-1)&&(h.value++,h.value>=c.value.length&&(h.value=0),A.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:l,danmuList:c,dmBody:o,dmContainer:r,add:k}}});function w2(e,n,a,l,o,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{ref:"dmBody",class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",{ref:"dmContainer",class:(0,t.normalizeClass)(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["slotBody","slotBody"+e.classTime])},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)],2)],2)}var Wo=re(k2,[["render",w2]]),{componentName:C2,create:N2,scope:A2}=ee("signature"),B2=N2({props:{customClass:{type:String,default:""},lineWidth:{type:Number,default:2},strokeStyle:{type:String,default:()=>document.getElementsByTagName("body")[0].className.indexOf("fox-theme-dark")==-1?"#000":"#fff"},type:{type:String,default:"png"},unSupportTpl:{type:String,default:""}},components:{[ct.name]:ct},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,pe.useFoxI18n)(A2),l=a(e,["unSupportTpl","reSign","confirmText"]),o=(0,t.ref)(null),r=(0,t.ref)(null),i=(0,t.computed)(()=>({[C2]:!0,[`${e.customClass}`]:e.customClass})),c=(0,t.reactive)({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),s=()=>{let v=document.createElement("canvas");return!!(v.getContext&&v.getContext("2d"))},d=()=>{o.value.addEventListener(c.events[0],h,!1)},h=v=>{v.preventDefault(),c.ctx.beginPath(),c.ctx.lineWidth=e.lineWidth,c.ctx.strokeStyle=e.strokeStyle,n("start"),o.value.addEventListener(c.events[1],u,!1),o.value.addEventListener(c.events[2],g,!1),o.value.addEventListener(c.events[3],S,!1)},u=v=>{v.preventDefault();let m=c.isSupportTouch?v.touches[0]:v;n("signing",m);let A=o.value.getBoundingClientRect(),C=m.clientX-A.left,y=m.clientY-A.top;c.ctx.lineTo(C,y),c.ctx.stroke()},g=v=>{v.preventDefault(),n("end"),o.value.removeEventListener(c.events[1],u,!1),o.value.removeEventListener(c.events[2],g,!1)},S=v=>{v.preventDefault(),o.value.removeEventListener(c.events[1],u,!1),o.value.removeEventListener(c.events[2],g,!1)},w=()=>{o.value.addEventListener(c.events[2],g,!1),c.ctx.clearRect(0,0,c.canvasWidth,c.canvasHeight),c.ctx.closePath(),n("clear")},b=()=>{f(o.value)},k=v=>{if(!v)return!0;var m=document.createElement("canvas");return m.width=v.width,m.height=v.height,v?.toDataURL()==m.toDataURL()},f=v=>{let m;switch(e.type){case"png":m=v.toDataURL("image/png");break;case"jpg":m=v.toDataURL("image/jpeg",.8);break}n("confirm",k(v)?"请绘制签名":v,k(v)?"":m)};return(0,t.onMounted)(()=>{s()&&(c.ctx=o.value.getContext("2d"),c.canvasWidth=r.value.offsetWidth,c.canvasHeight=r.value.offsetHeight,d())}),{...l,...(0,t.toRefs)(c),canvas:o,wrap:r,isCanvasSupported:s,confirm:b,clear:w,classes:i}}}),T2={class:"fox-signature-inner",ref:"wrap"},V2=["height","width"],$2={key:0,class:"fox-signature-unsopport"};function E2(e,n,a,l,o,r){const i=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",T2,[(0,t.withDirectives)((0,t.createElementVNode)("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,V2),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("p",$2,(0,t.toDisplayString)(e.unSupportTpl),1))],512),(0,t.createVNode)(i,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=c=>e.clear())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.reSign),1)]),_:1}),(0,t.createVNode)(i,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=c=>e.confirm())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.confirmText),1)]),_:1})],2)}var Yo=re(B2,[["render",E2]]),D2=[Ol,Ul,Hl,jl,Xl,St,Un,_l,Jl,ea,ta,la,Wn,ra,ua,ha,ga,ll,al,ya,rl,il,va,ka,vt,wa,Na,pl,Ba,Va,Wt,Yt,Gn,$a,Ia,qa,xa,ut,Pa,Ma,Hn,kt,jn,za,La,ct,Ra,Fa,Oa,st,Se,Ka,Ua,Ha,ja,Qt,Wa,Ya,Xa,Qa,Ga,Za,_a,Ja,eo,to,no,lo,ao,oo,ro,io,so,Gt,fl,Zn,nl,el,gl,ul,Ht,co,uo,fo,mo,ho,po,go,_t,dl,yo,So,cl,$t,Co,No,an,Ao,Bo,Zt,To,Vo,$o,Dt,Eo,Do,It,qt,Fn,bl,qo,xo,Po,Mo,on,zo,Lo,Ro,Fo,Oo,Ko,Uo,Ho,jo,Wo,Yo],I2=new Ms(D2,"4.0.0");B.AbstractPageScopeKey=Rl,B.ActionSheet=ho,B.FoxActionSheet=ho,B.ActionsheetItem=Ba,B.FoxActionsheetItem=Ba,B.ActionsheetPane=pl,B.FoxActionsheetPane=pl,B.Animate=Ko,B.FoxAnimate=Ko,B.Audio=Co,B.FoxAudio=Co,B.AudioOperate=No,B.FoxAudioOperate=No,B.Avatar=an,B.FoxAvatar=an,B.AvatarGroup=Ao,B.FoxAvatarGroup=Ao,B.BackTop=po,B.FoxBackTop=po,B.Badge=Po,B.FoxBadge=Po,B.Barrage=Wo,B.FoxBarrage=Wo,B.Broadcast=ql,B.BroadcastKey=Ce,B.Button=ct,B.FoxButton=ct,B.ButtonsItem=_l,B.FoxButtonsItem=_l,B.Calendar=nl,B.FoxCalendar=nl,B.CalendarItem=ga,B.FoxCalendarItem=ga,B.Cascader=Zn,B.FoxCascader=Zn,B.CascaderItem=ua,B.FoxCascaderItem=ua,B.Cell=Ra,B.FoxCell=Ra,B.CellGroup=Oa,B.FoxCellGroup=Oa,B.Checkbox=rl,B.FoxCheckbox=rl,B.CheckboxGroup=il,B.FoxCheckboxGroup=il,B.CheckboxItem=va,B.FoxCheckboxItem=va,B.CircleProgress=To,B.FoxCircleProgress=To,B.Col=Ha,B.FoxCol=Ha,B.Collapse=Lo,B.FoxCollapse=Lo,B.CollapseItem=Ro,B.FoxCollapseItem=Ro,B.Content=jl,B.FoxContent=jl,B.CountDown=xo,B.FoxCountDown=xo,B.CountUp=qo,B.FoxCountUp=qo,B.DataItemsKey=ht,B.DateItem=ha,B.FoxDateItem=ha,B.DatePicker=el,B.FoxDatePicker=el,B.DateUtils=Nt,B.Dialog=_t,B.FoxDialog=_t,B.Divider=Wa,B.FoxDivider=Wa,B.Domain=kn,B.DomainKey=Ee,B.DomainProvider=za,B.FoxDomainProvider=za,B.Drag=go,B.FoxDrag=go,B.Dropdown=Ma,B.FoxDropdown=Ma,B.Elevator=to,B.FoxElevator=to,B.Ellipsis=Oo,B.FoxEllipsis=Oo,B.Empty=$o,B.FoxEmpty=$o,B.FixedNav=Ga,B.FoxFixedNav=Ga,B.FloatingButton=qa,B.FoxFloatingButton=qa,B.FooterBar=Hl,B.FoxFooterBar=Hl,B.FoxGrid=Ya,B.Grid=Ya,B.FoxGridItem=Xa,B.GridItem=Xa,B.FoxGroup=Xl,B.Group=Xl,B.FoxHeaderBar=Ul,B.HeaderBar=Ul,B.FoxHintText=vt,B.HintText=vt,B.FoxIcon=Fa,B.Icon=Fa,B.FoxImage=Ka,B.Image=Ka,B.FoxImagePreview=bl,B.ImagePreview=bl,B.FoxIndicator=oo,B.Indicator=oo,B.FoxInfiniteLoading=dl,B.InfiniteLoading=dl,B.FoxInputItem=ea,B.InputItem=ea,B.FoxInputNumber=gl,B.InputNumber=gl,B.FoxInputNumberItem=Va,B.InputNumberItem=Va,B.FoxItem=St,B.Item=St,B.FoxLayout=Ua,B.Layout=Ua,B.FoxLinkItem=wa,B.LinkItem=wa,B.FoxList=Bo,B.List=Bo,B.FoxMapping=jn,B.Mapping=jn,B.FoxMenu=Za,B.Menu=Za,B.FoxMenuItem=_a,B.MenuItem=_a,B.FoxMessageBox=ut,B.MessageBox=ut,B.FoxMoneyItem=ta,B.MoneyItem=ta,B.FoxMoreButton=xa,B.MoreButton=xa,B.FoxNavbar=Qa,B.Navbar=Qa,B.FoxNoticeBar=Vo,B.NoticeBar=Vo,B.FoxNotify=So,B.Notify=So,B.FoxNumberKeyboard=fo,B.NumberKeyboard=fo,B.FoxOverLay=st,B.OverLay=st,B.FoxPage=Ol,B.Page=Ol,B.FoxPagination=no,B.Pagination=no,B.FoxPicker=Ht,B.Picker=Ht,B.FoxPickerItem=ra,B.PickerItem=ra,B.FoxPopover=on,B.Popover=on,B.FoxPopoverDialog=Hn,B.PopoverDialog=Hn,B.FoxPopup=Se,B.Popup=Se,B.FoxPopupWrapper=Pa,B.PopupWrapper=Pa,B.FoxPrice=Fn,B.Price=Fn,B.FoxProgress=Zt,B.Progress=Zt,B.FoxPullRefresh=yo,B.PullRefresh=yo,B.FoxRadio=ll,B.Radio=ll,B.FoxRadioGroup=al,B.RadioGroup=al,B.FoxRadioItem=ya,B.RadioItem=ya,B.FoxRange=Gt,B.Range=Gt,B.FoxRate=ul,B.Rate=ul,B.FoxRateItem=Na,B.RateItem=Na,B.FoxRollingProvider=La,B.RollingProvider=La,B.FoxRow=ja,B.Row=ja,B.FoxRowItem=Un,B.RowItem=Un,B.FoxSearchBar=fl,B.SearchBar=fl,B.FoxShortPassword=co,B.ShortPassword=co,B.FoxSideNavBar=ro,B.SideNavBar=ro,B.FoxSideNavBarItem=io,B.SideNavBarItem=io,B.FoxSignature=Yo,B.Signature=Yo,B.FoxSkeleton=zo,B.Skeleton=zo,B.FoxSlotItem=Jl,B.SlotItem=Jl,B.FoxStep=Do,B.Step=Do,B.FoxSteps=Eo,B.Steps=Eo,B.FoxStepsBar=Ia,B.StepsBar=Ia,B.FoxSticky=Qt,B.Sticky=Qt,B.FoxSubSideNavBar=so,B.SubSideNavBar=so,B.FoxSwipe=mo,B.Swipe=mo,B.FoxSwiper=It,B.Swiper=It,B.FoxSwiperItem=qt,B.SwiperItem=qt,B.FoxSwitch=cl,B.Switch=cl,B.FoxSwitchItem=ka,B.SwitchItem=ka,B.FoxTabPane=ao,B.TabPane=ao,B.FoxTabbar=Ja,B.Tabbar=Ja,B.FoxTabbarItem=eo,B.TabbarItem=eo,B.FoxTable=Fo,B.Table=Fo,B.FoxTabs=lo,B.Tabs=lo,B.FoxTabsBar=Wt,B.TabsBar=Wt,B.FoxTabsContainer=Yt,B.TabsContainer=Yt,B.FoxTabsFrame=$a,B.TabsFrame=$a,B.FoxTabsPane=Gn,B.TabsPane=Gn,B.FoxTag=Mo,B.Tag=Mo,B.FoxText=kt,B.Text=kt,B.FoxTextarea=Wn,B.Textarea=Wn,B.FoxTextareaItem=la,B.TextareaItem=la,B.FoxToast=$t,B.Toast=$t,B.FoxTour=jo,B.Tour=jo,B.FoxTrendArrow=Ho,B.TrendArrow=Ho,B.FoxUploader=uo,B.Uploader=uo,B.FoxVideo=Dt,B.Video=Dt,B.FoxWaterMark=Uo,B.WaterMark=Uo,B.InnerPageScopeKey=Ll,B.PriorityPolicy=tt,B.UniqueID=On,B.ValidateSchema=br,B.ValidateSchemaKey=Le,B.browseProperty=Vr,B.cancelRaf=Qo,B.clamp=Ye,B.clearNonNumber=Dl,B.compareTo=Tl,B.createBroadcast=gn,B.createValidateSchema=bn,B.debounce=Ie,B.debounceRef=Ns,B.decimalLength=fr,B.default=I2,B.defineBroadcast=ps,B.defineConfigDomain=Sr,B.defineDataItem=kr,B.defineDomain=Ml,B.defineDomainItemProperty=qe,B.defineItem=Be,B.definePageState=wr,B.defineSimpleItem=gt,B.deleteGlobalValidator=Ss,B.disabledProperty=$n,B.divide=Bl,B.excludeProps=_e,B.extend=ft,B.floatData=ms,B.getGlobalIcons=In,B.getGlobalValidateCheckEvents=pr,B.getGlobalValidateResetEvents=yr,B.getPageContentAreaHeight=An,B.getPageContentAreaWidth=Bn,B.getPageFooterAreaHeight=Nn,B.getPageHeaderAreaHeight=Cn,B.getRootDomain=pt,B.hasSymbol=rr,B.includeProps=ye,B.indexOf=ds,B.injectAbstractPageScope=Ot,B.injectAbstractPageScopeForContent=Tr,B.injectAbstractPageScopeForFooterBar=Br,B.injectAbstractPageScopeForHeaderBar=Ar,B.injectInnerPageScope=Ft,B.integerLength=dr,B.isArray=dn,B.isArrayLike=cr,B.isBrowser=Ze,B.isDate=We,B.isDisplayNone=$l,B.isESModule=rs,B.isEmptyString=fe,B.isEqual=$e,B.isFunction=fn,B.isHidden=ir,B.isMap=ns,B.isNil=Me,B.isNumberString=hn,B.isObject=Ve,B.isPlainObject=os,B.isPromise=dt,B.isRegExp=El,B.isSet=ls,B.isString=ar,B.isSubPage=$s,B.isSymbol=as,B.isTouch=Yn,B.isWindow=sr,B.kebabToPascal=pn,B.lastIndexOf=fs,B.makeArray=us,B.merge=ur,B.multiply=tr,B.negate=nr,B.nextTick=ss,B.numberFormat=un,B.objectToString=or,B.once=As,B.overrideGlobalIcons=Hs,B.overrideGlobalValidateHandler=bs,B.padZero=rt,B.pascalToKebab=hs,B.preventDefault=Il,B.property=Te,B.provideAbstractPageScope=Nr,B.provideInnerPageScope=Cr,B.px2Number=Vs,B.raf=je,B.readonlyProperty=Vn,B.setGlobalValidateCheckEvents=ks,B.setGlobalValidateHandler=ys,B.setGlobalValidateMessages=Cs,B.setGlobalValidateResetEvents=ws,B.setGlobalValidator=vs,B.throttle=Sn,B.toBoolean=ke,B.toNumber=de,B.toPadding=Fe,B.toPx=ce,B.toPxDesc=Ts,B.toPxString=me,B.toTypeString=mn,B.toValue=xe,B.tryTimes=xl,B.typeOf=mt,B.unNumberFormat=lr,B.updatePageState=zl,B.useBroadcast=zt,B.useDomain=Je,B.useExpose=be,B.useInnerSize=Dn,B.usePageState=wn,B.usePosition=Ql,B.useRawTouch=Xn,B.useRect=De,B.useSize=Kl,B.useSlotChildren=Rn,B.useTouch=lt,B.valueLength=we});