@fox-js/foxui-pc 4.0.1-14 → 4.0.1-16

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,5 +1,5 @@
1
1
  (function(f,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@fox-js/i18n"],l):(f=typeof globalThis<"u"?globalThis:f||self,l(f.FoxUI={},f.Vue,f.Schema,f.elementPlus,f.i18n))})(this,function(f,l,Ve,h,ye){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Tue Jan 03 2023 15:03:28 GMT+0800 (中国标准时间)
2
+ * @fox-js/foxui-desktop v4.0.0 Mon Jan 16 2023 10:54:06 GMT+0800 (中国标准时间)
3
3
  *//*!
4
4
  * @fox-js/big-decimal v4.0.1-3 Wed Nov 02 2022 21:59:56 GMT+0800 (中国标准时间)
5
- */function Qe(e,t="0"){let r=0,n=-1;e[0]=="-"&&(r++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(r++,n=2,t=t.substring(1),t.length),e=le(e),t=le(t),[e,t]=wt(le(e),le(t)),r==1&&(n==1?e=bt(e):t=bt(t));let a=ln(e,t);return r?r==2?"-"+le(a):e.length<a.length?le(a.substring(1)):"-"+le(bt(a)):le(a)}function bt(e){let t="",r=e.length,n=e.split(".")[1],a=n?n.length:0;for(let i=0;i<r;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let o=a>0?"0."+new Array(a).join("0")+"1":"1";return ln(t,o)}function le(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function wt(e,t){let r=e.split("."),n=t.split("."),a=r[0].length,o=n[0].length;return a>o?n[0]=new Array(Math.abs(a-o)+1).join("0")+(n[0]?n[0]:""):r[0]=new Array(Math.abs(a-o)+1).join("0")+(r[0]?r[0]:""),a=r[1]?r[1].length:0,o=n[1]?n[1].length:0,(a||o)&&(a>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-o)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(a-o)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function ln(e,t){[e,t]=wt(e,t);let r="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){r="."+r;continue}let o=parseInt(e[a])+parseInt(t[a])+n;r=o%10+r,n=Math.floor(o/10)}return n?n.toString()+r:r}var Q=(e=>(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))(Q||{});function Ke(e,t=0,r=Q.HALF_EVEN){if(r===Q.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),o=a[0],i=a[1];if(t<0){if(t=-t,o.length<=t)return"0";{let s=o.substr(0,o.length-t);return e=s+"."+o.substr(o.length-t)+i,s=Ke(e,0,r),(n?"-":"")+s+new Array(t+1).join("0")}}if(t==0)return o.length,on(a[1],o,n,r)?(n?"-":"")+St(o):(n?"-":"")+o;if(a[1]){if(a[1].length<t)return(n?"-":"")+o+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(n?"-":"")+o+"."+new Array(t+1).join("0");i=a[1].substring(0,t);let u=a[1].substring(t);return u&&on(u,i,n,r)&&(i=St(i),i.length>t)?(n?"-":"")+St(o,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+o+"."+i}function on(e,t,r,n){if(!e||e===new Array(e.length+1).join("0")||n===Q.DOWN||!r&&n===Q.FLOOR||r&&n===Q.CEILING)return!1;if(n===Q.UP||r&&n===Q.FLOOR||!r&&n===Q.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case Q.HALF_DOWN:return!1;case Q.HALF_UP:return!0;case Q.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function St(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let r=e.length-1,n="";for(let a=r;a>=0;a--){let o=parseInt(e[a])+t;o==10?(t=1,o=0):t=0,n+=o}return t&&(n+=t),n.split("").reverse().join("")}function $t(e,t){e=e.toString(),t=t.toString();let r=0;e[0]=="-"&&(r++,e=e.substr(1)),t[0]=="-"&&(r++,t=t.substr(1)),e=ze(e),t=ze(t);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let o=n+a;if(e=ze(e.replace(".","")),t=ze(t.replace(".","")),e.length<t.length){let g=e;e=t,t=g}if(t=="0")return"0";let i=t.length,u=0,s=[],d=i-1,c="";for(let g=0;g<i;g++)s[g]=e.length-1;for(let g=0;g<2*e.length;g++){let E=0;for(let A=t.length-1;A>=d&&A>=0;A--)s[A]>-1&&s[A]<e.length&&(E+=parseInt(e[s[A]--])*parseInt(t[A]));E+=u,u=Math.floor(E/10),c=E%10+c,d--}return c=ze(_r(c,o)),r==1&&(c="-"+c),c}function _r(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function ze(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 vt(e,t,r=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=le(t.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=le(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=le(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let c=e.length-d+a;e=le(e.substring(0,c)+"."+e.substring(c))}else a==d&&(e=le(e.replace(".","")))}let o=0,i=t.length,u="",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")),o=d,u="0."+new Array(d).join("0")}for(r=r+2;o<=r;){let d=0;for(;parseInt(s)>=parseInt(t);)s=Qe(s,"-"+t),d++;u+=d,e?(e[0]=="."&&(u+=".",o++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(o||(u+="."),o++,s=s+"0")}return(n==1?"-":"")+le(Ke(u,r-2))}function Et(e,t){return e=e.toString(),t=t.toString(),t=xt(t),Qe(e,t)}function xt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function sn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),un(e),un(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Et(e,$t(t,Ke(vt(e,t),0,Q.FLOOR)));return r+n}function un(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function cn(e,t){let r=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),r=!0),[e,t]=wt(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?r?-1:1:r?1:-1;return 0}class H{value;static RoundingModes=Q;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[r,n]=t.split(/[eE]/);r=le(r);let a="";r[0]=="-"&&(a="-",r=r.substring(1)),r.indexOf(".")>=0?(n=parseInt(n)+r.indexOf("."),r=r.replace(".","")):n=parseInt(n)+r.length,r.length<n?t=a+r+new Array(n-r.length+1).join("0"):r.length>=n&&n>0?t=a+le(r.substring(0,n))+(r.length>n?"."+r.substring(n):""):t=a+"0."+new Array(-n+1).join("0")+r}return t}constructor(t="0"){this.value=H.validate(t)}getValue(){return this.value}static getPrettyValue(t,r,n){if(!(r||n))r=3,n=",";else if(!(r&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=H.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var i="",u=o;u>0;)u<r?(r=u,u=0):u-=r,i=t.substring(u,u+r)+(u<o-r&&u>=0?n:"")+i;return(a?"-":"")+i+t.substring(o)}getPrettyValue(t,r){return H.getPrettyValue(this.value,t,r)}static round(t,r=0,n=Q.HALF_EVEN){if(t=H.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return Ke(t,r,n)}round(t=0,r=Q.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new H(Ke(this.value,t,r))}static floor(t){return t=H.validate(t),t.indexOf(".")===-1?t:H.round(t,0,Q.FLOOR)}floor(){return this.value.indexOf(".")===-1?new H(this.value):new H(this.value).round(0,Q.FLOOR)}static ceil(t){return t=H.validate(t),t.indexOf(".")===-1?t:H.round(t,0,Q.CEILING)}ceil(){return this.value.indexOf(".")===-1?new H(this.value):new H(this.value).round(0,Q.CEILING)}static add(t,r){return t=H.validate(t),r=H.validate(r),Qe(t,r)}add(t){return new H(Qe(this.value,t.getValue()))}static subtract(t,r){return t=H.validate(t),r=H.validate(r),Et(t,r)}subtract(t){return new H(Et(this.value,t.getValue()))}static multiply(t,r){return t=H.validate(t),r=H.validate(r),$t(t,r)}multiply(t){return new H($t(this.value,t.getValue()))}static divide(t,r,n){return t=H.validate(t),r=H.validate(r),vt(t,r,n)}divide(t,r){return new H(vt(this.value,t.getValue(),r))}static modulus(t,r){return t=H.validate(t),r=H.validate(r),sn(t,r)}modulus(t){return new H(sn(this.value,t.getValue()))}static compareTo(t,r){return t=H.validate(t),r=H.validate(r),cn(t,r)}compareTo(t){return cn(this.value,t.getValue())}static negate(t){return t=H.validate(t),xt(t)}negate(){return new H(xt(this.value))}}function fn(e,t){return H.multiply(`${e}`,`${t}`)}function Ct(e,t,r=8){return H.divide(`${e}`,`${t}`,r)}function Ot(e,t){return e=`${e}`,t=`${t}`,H.compareTo(e,t)}function dn(e){return H.negate(e)}function Tt(e,t=-1,r=!1,n=3,a=","){let o=`${e}`;if(o.length==0||o==="-")return"";let i=o.charAt(0);i=="-"?o=o.substring(1):i="";let u=o,s="",d=o.indexOf(".");d!=-1&&(u=o.substring(0,d),s=o.substring(d+1)),t!=-1&&(t<s.length?s=s.substring(0,t):r&&t>s.length&&(s=s.padEnd(t,"0")));let c;if(n>0){let g="",E=u.split("").reverse();for(let A=0;A<E.length;A++)g+=E[A]+((A+1)%n==0&&A+1!=E.length?a:"");s.length==0?c=`${i}${g.split("").reverse().join("")}`:c=`${i}${g.split("").reverse().join("")}.${s}`}else s.length==0?c=`${i}${u}`:c=`${i}${u}.${s}`;return c}function hn(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let n=t.replace(/[^\d\.-]/g,"");return`${r}${n}`}const Hr=Array.isArray,Kr=e=>et(e)==="[object Map]",zr=e=>et(e)==="[object Set]",Gr=e=>e instanceof Date,Vt=e=>typeof e=="function",Yr=e=>typeof e=="string",Wr=e=>typeof e=="symbol",Se=e=>e!==null&&typeof e=="object",Ur=e=>Se(e)&&Vt(e.then)&&Vt(e.catch),gn=Object.prototype.toString,et=e=>gn.call(e),It=e=>et(e)==="[object Object]",mn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Xr(e){return e.__esModule||mn&&e[Symbol.toStringTag]==="Module"}const Zr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ie(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},r=1,n=e.length,a=!1;for(typeof t=="boolean"&&(a=t,t=e[r]??{},r++),typeof t!="object"&&(t={});r<n;r++)if(e[r]!==null&&e[r]!==void 0){let o=e[r];for(let i in o){let u=t[i],s=o[i];if(u!==s)if(a===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},t[i]=Ie(a,d,s)}else s!==void 0&&(t[i]=s)}}return t}function Nt(e,t,r=!1){if(!r)Ie(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let a in t){let o=e[a],i=t[a];if(o!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!It(i))continue;o=Nt(o,i,r),e[a]=o}else{if(typeof i=="function")continue;e[a]=i}}const n=Object.getOwnPropertySymbols(t);for(let a of n){let o=e[a],i=t[a];if(o!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!It(i))continue;o=Nt(o,i,r),e[a]=o}else{if(typeof i=="function")continue;e[a]=i}}}return e}const At=Zr?Promise.resolve():null;function Jr(e,...t){At!==null?t&&t.length>0?At.then(()=>{e(t)}):At.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function re(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":Boolean(e)}function Z(e){return typeof e=="number"?e:Number(e)}const Qr={"[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 tt(e){let r=Object.prototype.toString.call(e);return e==null?String(e):Qr[r]||"object"}function yn(e){return e&&typeof e=="object"&&"setInterval"in e}function pn(e){let t=!!e&&"length"in e&&e.length,r=tt(e);return r==="function"||yn(e)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function bn(e,t){let r=+t.length,n=0,a=e.length;for(;n<r;n++)e[a++]=t[n];return e.length=a,e}function ea(e,t=[]){let r=t;return e!=null&&(pn(Object(e))?bn(r,typeof e=="string"?[e]:e):r.push(e)),r}function Ne(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let r=tt(e),n=tt(t);if(r!==n)return!1;if(r==="object"){let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(let i=0;i<a.length;i++){let u=a[i],s=e[u],d=t[u];if(!Ne(s,d))return!1}return!0}else if(r==="array"){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){let o=e[a],i=t[a];if(!Ne(o,i))return!1}return!0}return!1}const Ge=typeof window<"u",ta=Ge&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function wn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ee=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Sn(e){return ee(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ee(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function $n(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const r=t.indexOf(".");return r==-1?t.length:r}function vn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const r=t.indexOf(".");return r==-1?0:t.length-(r+1)}function En(e,t,r){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(r,"")}function na(e,t=!0,r=!0){t?e=En(e,".",/\./g):e=e.replace(/\./g,""),r?e=En(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ra(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(Ne(e,r))return!0}):t.indexOf(e)}function aa(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(Ne(e,n))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function Ye(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function la(e,...t){const r={};return t.forEach(n=>{for(const a in n)r[a]=e[a]}),r}function ue(e,...t){const r=[];t.forEach(a=>{Reflect.apply([].push,r,Reflect.ownKeys(a))});const n={};for(const a in e)r.includes(a)||(n[a]=e[a]);return n}const oa=(e,t,r)=>{const n=Object.assign({},e),a=Object.assign({},r);return Object.keys(t).length>0?(Object.keys(n).forEach(o=>{a.hasOwnProperty(o)?typeof a[o]=="string"&&(n[o]=t[a[o]]):t[o]&&(n[o]=t[o])}),n):e},ne=Symbol("BroadcastKey");class Rt{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,r,n){this.parent=t,this.proxy=r,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const r=this.children.findIndex(n=>t===n);r!==-1&&this.children.splice(r,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,r,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):wn(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const o=[];if(a){const i=this.callbacks.get(r);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...n]);s!=null&&o.push(s)}const u=this.proxy??{};if(typeof u[r]=="function"){const s=Reflect.apply(u[r],u,[...n]);s!=null&&o.push(s)}}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...t},r,...n]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,o,[...u])}),o}emitToChildren(t,r,...n){const a=[];return this.children.forEach(o=>{const i=Reflect.apply(o.emit,o,[{...t},r,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}on(t,r){this.callbacks.set(t,r)}}function nt(e,t,r,n){const a=new Rt(t,e,r);if(n&&typeof n=="object")for(const o in n)a.on(o,n[o]);return a}function ia(e,t,r){const n=r;if(n[ne])return n[ne];const a=l.inject(ne,null),o=new Rt(a,r,e);if(t&&typeof t=="object")for(const i in t)o.on(i,t[i]);return n[ne]=o,l.provide(ne,o),l.onUnmounted(()=>{o.destroy(),n[ne]=void 0}),o}function We(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ne]??l.inject(ne,null):l.inject(ne,null)}class sa{error(t,r){const n=r,a=We(r);a?a.emit({name:"*"},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const r=t,n=We(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t){const r=t,n=We(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,r,n){Array.isArray(t)||(t=[t]);const a=n,o=We(n),i=r.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=t.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?o?o.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):i&&!u&&(o?o.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let xn=new sa;function ua(e){xn=e}function ca(e,t){Ve.setValidator(e,t)}function fa(e){Ve.deleteValidator(e)}let Cn=["blur","clear"];function da(e){Cn=e}function On(){return Cn}let Tn=["focus","change"];function ha(e){Tn=e}function Vn(){return Tn}function ga(e){Ve.messages(e)}function Ue(...e){const t=[];return e.forEach(r=>{r.forEach(n=>{const a=t.findIndex(o=>o.type===n.type);a!==-1&&t.splice(a,1),t.push(n)})}),t}function rt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const be=Symbol("ValidateSchemaKey");class In{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,r,n){this.parent=t,this.descriptor=r,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(),this.scope.run(()=>{l.watchEffect(()=>{const r=rt(Ue(this.attrRules,this.rules)),n=[];for(let o in t){let i=t[o];if(this.hasValidator(o,!0)){if(i===!1)continue;let s={type:o};i!==null&&typeof i=="object"&&Object.assign(s,i),n.push(s);continue}let u=this.getValidator(o);if(u!==null){let s={type:o,validator:u};n.push(s)}}this.attrRules=rt(n);const a=Ue(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(a,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...r){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...r]);const a=xn;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...r]):null}decorate(t,r){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,r,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,r,n=!1){n?Ve.setValidator(t,r):this.validators[t]=r}getValidator(t){let r=this.validators[t]??null;return r||(r=this.parent?.getValidator(t)??null),r}deleteValidator(t,r=!1){r?Ve.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)return Ve.hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const r=Ue(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=rt(t):this.rules=rt([t]);const n=Ue(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,r)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let r=Ue(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(r.length>0){const a={[`${n}`]:r},o=this.getValue(),i={[`${n}`]:o},u=new Ve(a),s=this.proxy??i;return u.validate(i,{context:s}).then(c=>{if(c.pass)this.success();else{let g="error";Array.isArray(c.errors)&&c.errors.length>0&&(g=c.errors[0].message??g,c.errors=[c.errors[0]],c.errors[0].ref=s),this.error(g)}return c}).catch(c=>{const g=c.message??`${c}`;return this.error(g),c})}}return Promise.resolve({pass:!0})}}function at(e,t,r){if(r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string",!r.validateHandler&&r.valueName!=="modelValue"){const a=r.valueName;r.validateHandler={getValue(o){return o[a]}}}return new In(t,r,e)}const Nn=Symbol("EventEmitterKey");class ma{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,r){let n=this.register.get(t);if(n&&Array.isArray(n)){let a=n.findIndex(o=>o===r);a!==-1&&n.splice(a,1)}}on(t,r){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(r)}emit(t,...r){const n=this.register.get(t);n&&n.forEach(a=>{try{Reflect.apply(a,null,[t,...r])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...r])}}function ya(e,t){let r=0;return function(...n){const a=Date.now();a-r>t&&(Reflect.apply(e,{},[...n]),r=a)}}function kt(e,t){let r,n=null;return function(...a){n=a,r||(r=setTimeout(()=>{r=null,Reflect.apply(e,{},[...n??[]])},t))}}const $e=Symbol("DomainKey"),Me=Symbol("DataItemsKey");class jt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,r=[]){for(const n in t){const a=t[n];r.length>0&&r.indexOf(a)!==-1||(this._props[n]=a)}}has(t){if(Reflect.has(this._props,t)){const r=this._props[t];if(r!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,r){this._props[t]=r}get(t,r){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?r:this.parent.get(t,r)}getForParent(t,r){return this.parent==null?r:this.parent.get(t,r)}getForSelf(t){return this._props[t]}getAll(t){const r=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const a=n._props[t];r.push(a)}n=n._parent}return r}}const pa=new jt;function Xe(){return pa}function ve(e=null){e||(e=l.getCurrentInstance());const t=e?.proxy;return t?t[$e]??l.inject($e,null):l.inject($e,null)}const Mt=Symbol("OriginalDateKey");function Dt(e,t,r=[],n){const a=l.getCurrentInstance(),o=a?.proxy;let i=l.inject($e,null);i===null&&(i=Xe());const u=e||t.prop||t.name,s=new jt(u);s.parent=i;const d=v=>{o[Mt]||E(v),s.set("modelValue",v)},c=()=>s.getForSelf("modelValue")??null,g=()=>o[Mt]??null,E=v=>{const k={};Ie(!0,k,l.toRaw(v)),o[Mt]=k};l.isReactive(t)?l.watchEffect(()=>{s.merge(t,r)}):s.merge(t,r),t.modelValue&&E(t.modelValue),o[$e]=s,l.provide($e,s);let A=null,x=null;if(a!==null){const v=l.inject(ne,null);A=nt(o,v,u,n),s.broadcast=A,o[ne]=A,l.provide(ne,A),o.broadcast=($,D,...j)=>Reflect.apply(A.emit,A,[$,D,...j]);const k=l.inject(be,null);x=at(o,k,{componentName:""}),s.validateSchema=x,o[be]=x,l.provide(be,x),o[Me]=new Map,o.validate=($=!0)=>{const D=[];let j=null;if($===!0)j={name:"*"};else if(Array.isArray($)&&$.length>0){const V=$;j={name:y=>y?V.indexOf(y)!==-1:!1}}else if($!=null&&typeof $=="object"){const V=$;if(Array.isArray(V.include)&&V.include.length>0){const y=V.include;j={name:p=>p?y.indexOf(p)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const y=V.exclude;j={name:p=>p?y.indexOf(p)===-1:!1}}else j={name:"*"}}if(j){const V=A?.emitToChildren(j,"validate",!1);V&&Reflect.apply([].push,D,V)}return D.length==1?D[0]:D.length>1?Promise.all(D).then(V=>{let y=[];return V.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(y=[...y,...p.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=($,D=!0)=>{if(D){const j=Reflect.ownKeys($),V=[...j],y={name:p=>{const m=j.includes(p);if(m){const S=V.findIndex(C=>p===C);S!==-1&&V.splice(S,1)}return m}};A?.emitToChildren(y,"setNameValidateRules",$,!1),V.length>0&&V.forEach(p=>{let m=String(p);const C=An(s,m,{componentName:"",fieldName:m,pureDataValidate:!0},A,x);o[Me].set(m,C);const w=$[m];w&&C.validateSchema.setRule(w)})}},o.clearValidate=($=!0)=>{let D=null;if($===!0)D={name:"*"};else if(Array.isArray($)&&$.length>0){const j=$;D={name:V=>V?j.indexOf(V)!==-1:!1}}else if($!=null&&typeof $=="object"){const j=$;if(Array.isArray(j.include)&&j.include.length>0){const V=j.include;D={name:y=>y?V.indexOf(y)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const V=j.exclude;D={name:y=>y?V.indexOf(y)===-1:!1}}else D={name:"*"}}D&&A?.emitToChildren(D,"clearValidate",!1)},o.resetFields=$=>{const D=c();if(!D)return;const j={};if(Ie(!0,j,g()??{}),Array.isArray($))$.forEach(V=>{D[V]=j[V]});else if($&&Array.isArray($.include))($.include??[]).forEach(y=>{D[y]=j[y]});else if($&&Array.isArray($.exclude)){let V=$.exclude??[];Reflect.ownKeys(j).forEach(y=>{V.includes(y)||(D[y]=j[y])})}else Object.assign(D,j);o.clearValidate($)},o.setModelValue=($,D)=>{!D||D===u?d($):A?.emitToChildren({name:D},"setModelValue",$)},o.getModelValue=()=>c()}return l.onUnmounted(()=>{s.destroy(),o[$e]=void 0,o[Me]&&(o[Me].clear(),o[Me]=void 0),A!==null&&(A.destroy(),o[ne]=void 0),x!==null&&(x.destroy(),o[be]=void 0)}),s}function oe(e,t,r){const a=l.getCurrentInstance()?.proxy,o=t??"",i=l.inject(ne,null),u=nt(a,i,o,r);a[ne]=u,l.provide(ne,u),a.broadcast=(x,v,...k)=>Reflect.apply(u.emit,u,[x,v,...k]);const s=l.inject(be,null);e.fieldName=e.fieldName??o;const d=at(a,s,e);a[be]=d,l.provide(be,d),a.validate=(x=null)=>{const v=[];if(!Array.isArray(x)||x.indexOf(o)!==-1){const $=d?.validate();v.push($)}let k=null;if(x===!0)k={name:"*"};else if(Array.isArray(x)&&x.length>0){const $=x;k={name:D=>D?$.indexOf(D)!==-1:!1}}else if(x!=null&&typeof x=="object"){const $=x;if(Array.isArray($.include)&&$.include.length>0){const D=$.include;k={name:j=>j?D.indexOf(j)!==-1:!1}}else if(Array.isArray($.exclude)&&$.exclude.length>0){const D=$.exclude;k={name:j=>j?D.indexOf(j)===-1:!1}}else k={name:"*"}}if(k){const $=u.emitToChildren(k,"validate",!1);Reflect.apply([].push,v,$)}return v.length==1?v[0]:v.length>1?Promise.all(v).then($=>{let D=[];return $.forEach(j=>{j.pass===!1&&Array.isArray(j.errors)&&(D=[...D,...j.errors])}),D.length>0?{pass:!1,errors:D}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=x=>d?.setRule(x),a.setNameValidateRules=(x,v=!1)=>{const k=x[o];if(k&&d?.setRule(k),v){const $={name:D=>Reflect.ownKeys(x).includes(D)};u.emitToChildren($,"setNameValidateRules",x,!1)}},a.clearValidate=(x=null)=>{(!Array.isArray(x)||x.indexOf(t??"")!==-1)&&d?.clear();let v=null;if(x===!0)v={name:"*"};else if(Array.isArray(x)&&x.length>0){const k=x;v={name:$=>$?k.indexOf($)!==-1:!1}}else if(x!=null&&typeof x=="object"){const k=x;if(Array.isArray(k.include)&&k.include.length>0){const $=k.include;v={name:D=>D?$.indexOf(D)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const $=k.exclude;v={name:D=>D?$.indexOf(D)===-1:!1}}else v={name:"*"}}v&&u.emitToChildren(v,"clearValidate",!1)};const c=new ma(a);a[Nn]=c;const g=kt((x="validate")=>{x==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:On()).forEach(x=>{c.on(x,v=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Vn()).forEach(x=>{c.on(x,v=>{g("reset")})}),l.onUnmounted(()=>{u.destroy(),a[ne]=void 0,d.destroy(),a[be]=void 0,c.destroy(),a[Nn]=void 0}),{broadcast:u,validateSchema:d,emitEvent:(x,...v)=>{Reflect.apply(c.emit,c,[x,...v])},onEvent:(x,v)=>{Reflect.apply(c.on,c,[v])},offEvent:(x,v)=>{Reflect.apply(c.off,c,[v])}}}function An(e,t,r,n,a){const o={},i=t??"";r.fieldName=i,r.validateHandler={getValue(d){const c=e.getForSelf("modelValue");return c?c[i]:null}};const u=at({},a,r);o.validate=(d=null)=>{const c=[];if(!Array.isArray(d)||d.indexOf(i)!==-1){const E=u?.validate();c.push(E)}let g=null;if(d===!0)g={name:"*"};else if(Array.isArray(d)&&d.length>0){const E=d;g={name:A=>A?E.indexOf(A)!==-1:!1}}else if(d!=null&&typeof d=="object"){const E=d;if(Array.isArray(E.include)&&E.include.length>0){const A=E.include;g={name:x=>x?A.indexOf(x)!==-1:!1}}else if(Array.isArray(E.exclude)&&E.exclude.length>0){const A=E.exclude;g={name:x=>x?A.indexOf(x)===-1:!1}}else g={name:"*"}}if(g){const E=s.emitToChildren(g,"validate",!1);Reflect.apply([].push,c,E)}return c.length==1?c[0]:c.length>1?Promise.all(c).then(E=>{let A=[];return E.forEach(x=>{x.pass===!1&&Array.isArray(x.errors)&&(A=[...A,...x.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=d=>u?.setRule(d),o.setNameValidateRules=d=>{const c=d[i];c&&u?.setRule(c)};const s=nt(null,n,i,o);return{broadcast:s,validateSchema:u}}const K=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${U(e,t)}px`:"";function U(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let a=Number(e.substring(0,r)),o=1;if(Ge){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(o=Number(i.substring(0,u)))}return a*=o,a}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))/100*t;const n=Number(e);return isNaN(n)?0:n}const Ee="PageStateKey";function pe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=U(e.top)),e.left!==null&&e.left!==void 0&&(t.left=U(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=U(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=U(e.right))),t}function qt(e,t,r={},n=!0,a=-1,o=-1,i=0,u=0){if(e.headerHeight=U(r.headerHeight??t.headerHeight),e.headerPadding=pe(r.headerPadding??t.headerPadding),e.footerHeight=U(r.footerHeight??t.footerHeight),e.footerPadding=pe(r.footerPadding??t.footerPadding),e.contentPadding=pe(r.contentPadding??t.contentPadding),n){const s=r.height??t.height;s?e.height=U(s,o):e.height=U(o)-U(i,o)-U(u,o),e.width=U(r.width??t.width,a)}}function Rn(e,t={}){const r={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(n.safeAreaTop=U(a.top),n.safeAreaBottom=U(a.bottom),n.safeAreaLeft=U(a.left),n.safeAreaRight=U(a.right));const o=e.get("pageLayout");if(!o)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;qt(n,o,t,!0,i,u,s,d);const c=l.reactive(n),g=e.getForParent(Ee);g&&(n.height=st(e,g),n.width=ut(e,g),l.watch([()=>g.height,()=>g.width,()=>g.contentPadding,()=>g.headerMounted,()=>g.footerMounted],()=>{c.height=st(e,g),c.width=ut(e,g)}));const E=!g;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([A,x,v=-1,k=-1,$=0,D=0])=>{qt(c,x,t,E,v,k,$,D)}),e.set(Ee,c),c}function lt(e){return e.get(Ee)}function ot(e,t){return t=t??e.get(Ee),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function it(e,t){return t=t??e.get(Ee),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function st(e,t){if(t=t??e.get(Ee),t){const r=ot(e,t),n=it(e,t);return t.height-r-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function ut(e,t){return t=t??e.get(Ee),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function ba(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function wa(e){return!!e.getForParent(Ee)}var ct=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ct||{});function Bt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function De(e,t,r=1,n){const a=ve();return a==null?e:r===0?l.computed(()=>{const o=a.getAll(t);for(let u=o.length-1;u>=0;u--){const s=o[u];if(Bt(s,n))return s}const i=e.value;return Bt(i,n)?i:null}):l.computed(()=>{const o=e.value;return Bt(o,n)?o:a?.get(t)})}function de(e){return De(e,"readonly",0,function(r){return re(r)})}function he(e){return De(e,"disabled",0,function(r){return re(r)})}function W(e,t="modelValue",r){const n=l.toRef(e,t);let a=n.value;typeof r=="function"&&(a=r(n.value));const o=l.ref(a);return l.watch(n,i=>{if(typeof r=="function"){const u=r(i);u!==o.value&&(o.value=u)}else i!==o.value&&(o.value=i)}),o}const kn=new Map,ft=new Map;let Ft=null;function Sa(e){Ft=e}function jn(e,t,r){if(r){let n=ft.get(r);n||(n=new Map,ft.set(r,n)),n.set(e,t)}else kn.set(e,t)}function Ae(e,t,r){!r&&Ft&&(r=Ft(e)??void 0);let n=null;if(r){let a=ft.get(r);a&&(n=a.get(t))}return n||(n=kn.get(t)),n}function $a(e,t){for(let r in e){const n=e[r];jn(r,n,t)}}function va(e){ft.delete(e)}function Ea(){return{top:0,left:0,bottom:0,right:0}}function xa(e=0,t=0){if(Ge){const r=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:r,height:n-U(e,n)-U(t,n),headerHeight:44,footerHeight:44};return{rootWidth:r,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Ca{packages;installers;_version;get version(){return this._version}constructor(t,r,n){this.packages=t,this.installers=r,this._version=n}install(t,r={}){this.packages.forEach(o=>{o.install?t.use(o):o.name&&t.component(o.name,o)}),this.installers.forEach(o=>{o(t)});const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=Xe();if(this.initPageLayout(r,a),r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=kt(()=>{const u={...r},s=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=d,this.initPageLayout(u,a)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in r)n.indexOf(o)===-1&&a.set(o,r[o])}initPageLayout(t,r){const n=t.headerBarHeight??0,a=t.footerBarHeight??0,o=Ie({},Ea(),t.safeAreaInset),i=xa(n,a),u=Ie({},i.pageLayout,t.pageLayout);r=r??Xe(),r.set("safeAreaInset",o),r.set("headerBarHeight",n),r.set("footerBarHeight",a),r.set("pageLayout",u),r.set("rootWidth",i.rootWidth),r.set("rootHeight",i.rootHeight)}setScopeGetter(t){Sa(t)}setAPI(t,r,n){jn(t,r,n)}getAPI(t,r,n){return Ae(t,r,n)}batchSetAPI(t,r){$a(t,r)}clearScopeAPI(t){va(t)}getRootDomain(){return Xe()}}const Oa=[h.ElAffix,h.ElAlert,h.ElAutocomplete,h.ElAutoResizer,h.ElAvatar,h.ElBacktop,h.ElBadge,h.ElBreadcrumb,h.ElBreadcrumbItem,h.ElButton,h.ElButtonGroup,h.ElCalendar,h.ElCard,h.ElCarousel,h.ElCarouselItem,h.ElCascader,h.ElCascaderPanel,h.ElCheckTag,h.ElCheckbox,h.ElCheckboxButton,h.ElCheckboxGroup,h.ElCol,h.ElCollapse,h.ElCollapseItem,h.ElCollapseTransition,h.ElColorPicker,h.ElConfigProvider,h.ElContainer,h.ElAside,h.ElFooter,h.ElHeader,h.ElMain,h.ElDatePicker,h.ElDescriptions,h.ElDescriptionsItem,h.ElDialog,h.ElDivider,h.ElDrawer,h.ElDropdown,h.ElDropdownItem,h.ElDropdownMenu,h.ElEmpty,h.ElForm,h.ElFormItem,h.ElIcon,h.ElImage,h.ElImageViewer,h.ElInput,h.ElInputNumber,h.ElLink,h.ElMenu,h.ElSubMenu,h.ElMenuItem,h.ElMenuItemGroup,h.ElPageHeader,h.ElPagination,h.ElPopconfirm,h.ElPopover,h.ElPopper,h.ElProgress,h.ElRadio,h.ElRadioButton,h.ElRadioGroup,h.ElRate,h.ElResult,h.ElRow,h.ElScrollbar,h.ElSelect,h.ElOption,h.ElOptionGroup,h.ElSelectV2,h.ElSkeleton,h.ElSkeletonItem,h.ElSlider,h.ElSpace,h.ElSteps,h.ElStep,h.ElSwitch,h.ElTable,h.ElTableColumn,h.ElTableV2,h.ElTabs,h.ElTabPane,h.ElTag,h.ElTimePicker,h.ElTimeSelect,h.ElTimeline,h.ElTimelineItem,h.ElTooltip,h.ElTransfer,h.ElTree,h.ElTreeSelect,h.ElTreeV2,h.ElUpload],Ta=[h.ElInfiniteScroll,h.ElLoading,h.ElMessage,h.ElMessageBox,h.ElNotification,h.ElPopoverDirective],Va=e=>{Oa.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),Ta.forEach(t=>{e.use(t)})};function Y(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=t,r.install=n=>{n.component(r.name,r)},l.defineComponent(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,l.defineComponent(r)}}}const ae={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},ce={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],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},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,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},hasBorder:{type:Boolean,default:!0}},Mn={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},Dn={name:{type:String,required:!1},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"flex"},title:{type:String,default:""},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:!0},markColor:{type:[String],required:!1}},qn=[];for(const e in Dn)qn.push(e);function fe(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const Ia=Symbol.for("InnerPageScopeKey"),Na=(e,t)=>({inheritAttrs:!0,props:{...ae,...Mn,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}},setup(r,n){const a=Dt(r.name,r);if(a){const d=Rn(a,r);fe({getPageContentHeight:()=>st(a,d),getPageContentWidth:()=>ut(a,d),getPageHeaderHeight:()=>ot(a,d),getPageFooterHeight:()=>it(a,d)});const c=l.inject(Ia,!1);d&&c&&(d.contentHeight="100%")}const o=l.computed(()=>({[e]:!0})),i=l.computed(()=>({})),u=l.getCurrentInstance(),s=d=>{const c=u?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(d,!0)};return l.watch(()=>r.rules,(d,c)=>{if(!d&&!c)return;const g=l.toRaw(c),E=l.toRaw(d),A=E?Reflect.ownKeys(E):[];(g?Reflect.ownKeys(g):[]).forEach(v=>{A.includes(v)||(E[v]=[])}),s(E)},{deep:!0}),l.onMounted(()=>{if(r.rules){const d=l.toRaw(r.rules);s(d)}}),{classes:o,styles:i}}}),{componentName:Aa,create:Ra,scope:qi}=Y("page"),ka=Ra(Na(Aa));function ja(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Re=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},Bn=Re(ka,[["render",ja]]),Ma=(e,t)=>({props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!1},leftIcon:{type:[String,Object],required:!1,default:"left"},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[String,Object],required:!1,default:""},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[String,Object],required:!1,default:""},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,n){const a=ve(),o=a?lt(a):null;o&&(o.headerMounted=!0);const i=l.computed(()=>({[e]:!0})),u=r.height!==null&&r.height!==void 0?U(r.height):null,s=l.computed(()=>{const m={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&o){const S=pe(r.padding??o.footerPadding);return Object.assign(m,S),u&&(o.headerHeight=u),m.height=o.headerHeight,m.safeAreaTop=o.safeAreaTop,m.safeAreaTop&&(m.top=m.safeAreaTop+(S.top??0),m.height=m.height+o.safeAreaTop),m.height,m.safeAreaTop,m}if(u&&(m.height=u),r.padding){const S=pe(r.padding);Object.assign(m,S)}return m});l.onUnmounted(()=>{o&&(o.headerMounted=!1)});const d=l.computed(()=>{const m={};return s.value.height!==null&&s.value.height!==void 0&&(m.height=`${s.value.height}px`),s.value.top!==null&&s.value.top!==void 0&&(m.paddingTop=`${s.value.top}px`),s.value.left!==null&&s.value.left!==void 0&&(m.paddingLeft=`${s.value.left}px`),s.value.right!==null&&s.value.right!==void 0&&(m.paddingRight=`${s.value.right}px`),s.value.bottom!==null&&s.value.bottom!==void 0&&(m.paddingBottom=`${s.value.bottom}px`),m}),c=l.computed(()=>{const m={};return s.value.safeAreaTop!==null&&s.value.safeAreaTop!==void 0&&(m.top=`${s.value.safeAreaTop}px`),m}),g=l.computed(()=>{const m={};return s.value.safeAreaTop!==null&&s.value.safeAreaTop!==void 0&&(m.top=`${s.value.safeAreaTop}px`),m}),E=l.computed(()=>r.leftShow?r.leftIcon||r.leftText||n.slots.left:!1),A=l.computed(()=>!(s.value.height!==null&&s.value.height!==void 0&&s.value.height<=0)),x=l.computed(()=>r.titleShow?r.title||r.titleIcon||n.slots.default:!1),v=l.computed(()=>r.rightShow?r.rightIcon||r.rightText||n.slots.right:!1),k=l.computed(()=>{let m={};return typeof r.leftIcon=="object"?Object.assign(m,r.leftIcon):m.name=r.leftIcon,m}),$=l.computed(()=>{let m={};return typeof r.titleIcon=="object"?Object.assign(m,r.titleIcon):m.name=r.titleIcon,m}),D=l.computed(()=>{let m={};return typeof r.rightIcon=="object"?Object.assign(m,r.rightIcon):m.name=r.rightIcon,m});function j(){n.emit("back")}function V(){n.emit("click-title")}function y(){n.emit("click-right")}function p(){n.emit("click-right-text")}return{classes:i,styles:d,mHeaderShow:A,leftStyles:c,rightStyles:g,mLeftShow:E,mTitleShow:x,mRightShow:v,mLeftIcon:k,mTitleIcon:$,mRightIcon:D,handleLeft:j,handleCenter:V,handleRight:y,handleRightText:p}}}),{componentName:Da,create:qa,scope:Bi}=Y("header-bar"),Ba=qa(Ma(Da)),Fa={key:1,class:"fox-header-bar__title"};function La(e,t,r,n,a,o){const i=l.resolveComponent("fox-ext-icon");return e.mHeaderShow?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(l.openBlock(),l.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:l.normalizeStyle(e.leftStyles)},[l.renderSlot(e.$slots,"left",{},()=>[e.leftIcon?(l.openBlock(),l.createBlock(i,{key:0,color:e.mLeftIcon.color,name:e.mLeftIcon.name,onClick:e.handleLeft},null,8,["color","name","onClick"])):l.createCommentVNode("",!0),e.leftText?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.handleLeft&&e.handleLeft(...u))},l.toDisplayString(e.leftText),1)):l.createCommentVNode("",!0)])],4)):l.createCommentVNode("",!0),e.mTitleShow?(l.openBlock(),l.createElementBlock("view",Fa,[l.renderSlot(e.$slots,"default",{},()=>[e.title?(l.openBlock(),l.createElementBlock("view",{key:0,class:"text-title",onClick:t[1]||(t[1]=(...u)=>e.handleTitle&&e.handleTitle(...u))},l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),e.titleIcon?(l.openBlock(),l.createBlock(i,{key:1,class:"icon-title",color:e.mTitleIcon.color,name:e.mTitleIcon.name,onClick:e.handleCenter},null,8,["color","name","onClick"])):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0),e.mRightShow?(l.openBlock(),l.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:l.normalizeStyle(e.rightStyles)},[l.renderSlot(e.$slots,"right",{},()=>[e.rightText?(l.openBlock(),l.createElementBlock("view",{key:0,onClick:t[2]||(t[2]=(...u)=>e.handleRightText&&e.handleRightText(...u))},l.toDisplayString(e.rightText),1)):l.createCommentVNode("",!0),e.rightIcon?(l.openBlock(),l.createBlock(i,{key:1,class:"right-icon",color:e.mRightIcon.color,name:e.mRightIcon.name,onClick:e.handleRight},null,8,["color","name","onClick"])):l.createCommentVNode("",!0)])],4)):l.createCommentVNode("",!0)])],6)):l.createCommentVNode("",!0)}const Fn=Re(Ba,[["render",La]]);function Pa(e,t){return{props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(r,n){const a=ve(),o=a?lt(a):null;o&&(o.footerMounted=!0);const i=l.computed(()=>{const c=e;let g=e;return r.align==="left"?g=`${g}__left`:r.align==="right"?g=`${g}__right`:g=`${g}__center`,{[c]:!0,[g]:!0}}),u=r.height!==null&&r.height!==void 0?U(r.height):null,s=l.computed(()=>{const c={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&o){const g=pe(r.padding??o.footerPadding);return Object.assign(c,g),u&&(o.footerHeight=u),c.height=o.footerHeight,c.safeAreaBottom=o.safeAreaBottom,c.safeAreaBottom&&(c.height=c.height+o.safeAreaBottom,c.bottom=c.safeAreaBottom+(g.bottom??0)),c}if(u&&(c.height=u),r.padding){const g=pe(r.padding);Object.assign(c,g)}return c});l.onUnmounted(()=>{o&&(o.footerMounted=!1)});const d=l.computed(()=>{const c={};return s.value.height!==null&&s.value.height!==void 0&&(c.height=K(s.value.height)),s.value.top!==null&&s.value.top!==void 0&&(c.paddingTop=K(s.value.top)),s.value.left!==null&&s.value.left!==void 0&&(c.paddingLeft=K(s.value.left)),s.value.right!==null&&s.value.right!==void 0&&(c.paddingRight=K(s.value.right)),s.value.bottom!==null&&s.value.bottom!==void 0&&(c.paddingBottom=K(s.value.bottom)),c});return{classes:i,styles:d}}}}const{componentName:_a,create:Ha,scope:Fi}=Y("footer-bar"),Ka=Ha(Pa(_a));function za(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Ln=Re(Ka,[["render",za]]);function Ga(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=ve(),a=l.computed(()=>({[e]:!0})),o=l.computed(()=>{const i={};if(n){const u=lt(n);if(u){if(r.padding){const g=pe(r.padding);Object.assign(u.contentPadding,g)}const s=ot(n,u),d=it(n,u);let c="";if(u.contentHeight?c=`${u.contentHeight}`:c=`${u.height}px`,u.contentPadding,i.height=c,u.contentPadding.top!==null&&u.contentPadding.top!==void 0||s>0){const g=(u&&u.contentPadding&&u.contentPadding.top)??0;i.paddingTop=`${s+g}px`}if(u.contentPadding.bottom!==null&&u.contentPadding.bottom!==void 0||d>0){const g=(u&&u.contentPadding&&u.contentPadding.bottom)??0;i.paddingBottom=`${d+g}px`}return u.contentPadding.left!==null&&u.contentPadding.left!==void 0&&(i.paddingLeft=`${u.contentPadding.left}px`),u.contentPadding.right!==null&&u.contentPadding.right!==void 0&&(i.paddingRight=`${u.contentPadding.right}px`),i}}if(r.padding){const u=pe(r.padding);u.left!==null&&u.left!==void 0&&(i.paddingLeft=`${u.left}px`),u.top!==null&&u.top!==void 0&&(i.paddingTop=`${u.top}px`),u.right!==null&&u.right!==void 0&&(i.paddingRight=`${u.right}px`),u.bottom!==null&&u.bottom!==void 0&&(i.paddingBottom=`${u.bottom}px`)}return i});return{classes:a,styles:o}}}}const{componentName:Ya,create:Wa,scope:Li}=Y("content"),Ua=Wa(Ga(Ya));function Xa(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Pn=Re(Ua,[["render",Xa]]),qe="GroupStateKey",_n=Symbol.for("GroupScopeKey");function dt(){return l.inject(_n,!1)}function ht(e=!0){l.provide(_n,e)}function Za(e,t={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,t);const a=l.shallowRef(n),o=l.markRaw({layout:a,passport:0,order:{index:0}});return e.set(qe,o),o}function Hn(e,t,r=-1,n=-1,a=!1,o=-1){const i=e.get(qe);if(!i)return;const u=e.get("groupLayout")??{};r===-1&&(r=u.column??1),n===-1&&(n=u.gutter??0),o||(o=u.minItemWidth??-1);const s=()=>{const d=t===""||t===-1,c=U(t);let g=Z(r);const E=U(n);if(!d){let v=(c-(g-1)*E)/g;for(;o!==-1&&g>1&&v<o;)g--,v=(c-(g-1)*E)/g}let A=!1;const x=i.layout;x.value.width=t,x.value.column!==g&&(x.value.column=g,A=!0),x.value.gutter!==E&&(x.value.gutter=E,A=!0),A&&l.triggerRef(x)};if(a)s();else{const d=++i.passport;setTimeout(()=>{d===i.passport&&s()},50)}}function Ze(e,t=!1){let r;return t?r=e.getForParent(qe):r=e.get(qe),r.layout}function Lt(e,t=!1){let r;return t?r=e.getForParent(qe):r=e.get(qe),r.order}function ge(e,t=1){return t==="stretch"?-1:(t=Z(t),t===-1?100:100*t/e)}function Ja(e){return e===window}const gt=e=>{const t=l.unref(e);if(Ja(t)){const r=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},xe=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,Qa=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const t=e.type,r=(t.props&&t.props.span&&t.props.span.default)??1;return typeof r=="function"?r():r}return e.props.span},el=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const r=e.type,n=(r.props&&r.props.offset&&r.props.offset.default)??0;return typeof n=="function"?n():n}const t=Z(e.props.offset);return t<0?0:t},tl=e=>{if(!e.props||e.props.foxItemType===null||e.props.foxItemType===void 0){const t=e.type,r=(t.props&&t.props.foxItemType&&t.props.foxItemType.default)??"Item";return typeof r=="function"?r():r}return e.props.foxItemType??"Item"},nl=e=>{if(!e.props||e.props.foxSubItemCount===null||e.props.foxSubItemCount===void 0){const r=e.type,n=(r.props&&r.props.foxSubItemCount&&r.props.foxSubItemCount.default)??"Item";return typeof n=="function"?n():n}const t=Z(e.props.foxSubItemCount);return t<0?1:t};function rl(e,t){return{props:{...ae,...Mn,...Dn},setup(r,n){const a=Dt(r.name,r,qn),o=Za(a,{type:r.type}),i=dt();ht(!0);const u=l.computed(()=>i&&a?Ze(a,!0).value:null),s=l.getCurrentInstance(),d=y=>{const p=s?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(y,!0)};l.watch(()=>r.rules,(y,p)=>{if(!y&&!p)return;const m=l.toRaw(p),S=l.toRaw(y),C=S?Reflect.ownKeys(S):[];(m?Reflect.ownKeys(m):[]).forEach(M=>{C.includes(M)||(S[M]=[])}),d(S)},{deep:!0}),l.onMounted(()=>{if(r.rules){const y=l.toRaw(r.rules);d(y)}});const c=e,g=l.computed(()=>{const y={};if(u.value){const p=Ze(a,!0);if(p.value.type==="flex"){if(r.width){const C=K(r.width);y.width=C}else{const C=ge(p.value.column,r.span);C>0&&(y.width=`${C}%`)}if(r.height){const C=K(r.height);y.height=C}const m=ge(p.value.column,r.offset);m>0&&(y["margin-left"]=`${m}%`);const S=p.value.gutter/2;S>0&&(y["padding-left"]=`${S}px`,y["padding-right"]=`${S}px`)}else if(p.value.type==="flow"){if(r.width){const C=K(r.width);y.width=C}else{const C=ge(p.value.column,r.span);C>0&&(y.width=`${C}%`)}if(r.height){const C=K(r.height);y.height=C}const m=ge(p.value.column,r.offset);m>0&&(y["margin-left"]=`${m}%`);const S=p.value.gutter/2;if(S>0){const C=a?Lt(a,!0):null;if(C){let w=Z(r.offset)+Z(r.span);(w===-1||w>p.value.column)&&(w=p.value.column);const M=Math.ceil((C.index+1)/p.value.column),B=Math.ceil((C.index+w)/p.value.column);if(M===B){const O=(C.index+1)%p.value.column,R=(C.index+w)%p.value.column,b=O===1?0:S,I=R===0?0:S;y["padding-left"]=`${b}px`,y["padding-right"]=`${I}px`}else{const O=w%p.value.column,R=0,b=O===0?0:S;y["padding-left"]=`${R}px`,y["padding-right"]=`${b}px`}C.index+=w}else y["padding-left"]=`${S}px`,y["padding-right"]=`${S}px`}}}else{if(r.width){const p=K(r.width);y.width=p}if(r.height){const p=K(r.height);y.height=p}}return y}),E=l.computed(()=>r.type==="flex"?{[`${xe("",r.type)}`]:!0,[`${xe("justify",r.justify)}`]:!0,[`${xe("align",r.align)}`]:!0,[`${xe("flex",r.flexWrap)}`]:!0,[`${c}__gutter`]:!0}:r.type==="flow"?{[`${xe("",r.type)}`]:!0,[`${xe("justify",r.justify)}`]:!0,[`${xe("align",r.align)}`]:!0}:{[`${xe("",r.type)}`]:!0,[`${c}__gutter`]:!0}),A=l.toRef(r,"title"),x=l.toRef(r,"gutter"),v=l.toRef(r,"column"),k=l.computed(()=>i?!0:re(r.isWrap)),$=l.ref([]),D=y=>{$.value.push(y)},j=l.ref(-1);if(Hn(a,j.value,v.value,x.value,!0,r.minItemWidth),r.autoLayout){l.watch([j,v,x],([p,m,S])=>{o.order.index=0,Hn(a,p,m,S,!1,r.minItemWidth)});let y=null;l.onMounted(()=>{if(Ge&&$.value&&$.value.length>0){const p=$.value[0];j.value=gt(p).width,window.ResizeObserver&&(y=new window.ResizeObserver(()=>{const m=gt(p).width;m>0&&m!==j.value&&(j.value=m)}),y.observe(p))}}),l.onUnmounted(()=>{y?.disconnect()})}const V=(y,p,m,S)=>{const C={...E.value};return p===0&&(C[`${c}__first`]=!0),m>=S-1&&(C[`${c}__last`]=!0),l.h("div",{ref:D,key:`${p}`,class:C},y)};return()=>{o.order.index=0;const y=[];let p=0;if(n.slots.title){const w={key:`${p++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},M=l.h("div",w,[n.slots.title()]);y.push(M)}else if(A.value){const w={key:`${p++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},M=[];if(r.showMark){const R={class:{[`${c}__title-mark`]:!0}};r.markColor&&(R.style={background:r.markColor});const b=l.h("div",R);M.push(b)}const B=l.h("div",{class:{[`${c}__title-text`]:!0}},[A.value]);M.push(B);const O=l.h("div",w,M);y.push(O)}const m=n.slots.default?n.slots.default():[];let S=[],C=0;if(r.type==="flex"){for(let w=0;w<m.length;w++){const M=String(m[w].type);if(M==="Symbol(Comment)")continue;if(M==="Symbol(Fragment)")if(Array.isArray(m[w].children)){const q=m[w].children;if(Reflect.apply([].splice,m,[w,1,...q]),q.length===0){w-=1;continue}}else{m.splice(w,1),w-=1;continue}const B=m[w];if(tl(B)==="fragment"){let q=nl(B);q>o.layout.value.column?q=o.layout.value.column:q<=0&&(q=1);const N=C+q;if(N>o.layout.value.column){const F=V([...S],p++,w-1,m.length);y.push(F),C=q,S=[B]}else S.push(B),C=N;continue}const R=Qa(B),b=el(B);if(R==="stretch"){if(C<o.layout.value.column){S.push(B);const q=V([...S],p++,w,m.length);y.push(q)}else{const q=V([...S],p++,w-1,m.length);y.push(q);const N=V([B],p++,w,m.length);y.push(N)}C=0,S=[];continue}let I=Z(R);if(I===-1){if(S.length>0){const N=V([...S],p++,w-1,m.length);y.push(N)}const q=V([B],p++,w,m.length);y.push(q),C=0,S=[];continue}I>o.layout.value.column?I=o.layout.value.column:I<=0&&(I=1);const T=C+I+b;if(T>o.layout.value.column){const q=V([...S],p++,w-1,m.length);y.push(q),C=I+b,S=[B]}else S.push(B),C=T}if(S.length>0){const w=V([...S],p++,m.length,m.length);y.push(w)}}else if(r.type==="flow"){const w=V(m,p++,0,m.length);y.push(w)}else for(let w=0;w<m.length;w++){const M=m[w],B=V([M],p++,w,m.length);y.push(B)}return k.value?l.h("div",{class:{[`${c}`]:!0},style:g.value},[y]):y}}}}const{componentName:al,create:ll,scope:Pi}=Y("group"),Kn=ll(rl(al)),zn={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:ol,create:il}=Y("price"),sl=il({props:{...zn},setup(e){const t=l.computed(()=>({[ol]:!0})),r=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>Ye(e.price)==0?"":Tt(e.price,e.decimalLength,!0,Z(e.digits),e.separator)),a=l.computed(()=>{let i=n.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),o=l.computed(()=>{let i=n.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:t,showSymbol:r,intText:a,decimalText:o}}}),ul=["innerHTML"],cl=["innerHTML"];function fl(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ul)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,cl)):l.createCommentVNode("",!0)],2)}const mt=Re(sl,[["render",fl]]),{componentName:Pt,create:dl}=Y("hint-text"),hl=dl({components:{[mt.name]:mt},props:{...zn,type:{type:String,default:"number"},id:{type:String},startPoint:{type:Object},width:{type:Number},height:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const a=l.computed(()=>({[Pt]:!0})),o=l.computed(()=>({left:K(e.startPoint.x),top:K(e.startPoint.y-e.height-10-4),height:K(e.height),width:K(e.width)})),i=l.computed(()=>({[`${Pt}__content`]:!0})),u=l.computed(()=>({})),s=l.computed(()=>({[`${Pt}__arrow`]:!0})),d=l.computed(()=>({top:K(e.height)}));return{classes:a,styles:o,textClasses:i,textStyles:u,arrowClasses:s,arrowStyles:d}}}),gl={key:1,class:"text"};function ml(e,t,r,n,a,o){const i=l.resolveComponent("fox-price");return l.openBlock(),l.createBlock(l.Transition,{name:"hint-text-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before"},null,8,["price"])):(l.openBlock(),l.createElementBlock("span",gl,l.toDisplayString(e.message),1))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.visible]])]),_:1})}const yt=Re(hl,[["render",ml]]);class Gn{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}function yl(e){return e===window}const Yn=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(yl(t))return{x:0,y:0};let r=0,n=0,a=t;for(;a!==null;)r+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let o=0,i=0;for(a=t;a!==document;)i+=a.scrollTop,o+=a.scrollLeft,a=a.parentNode;return r-=o,n-=i,{x:r,y:n}},_t={},pl=new Gn,Be=new Map,Ht=e=>{if(e){const t=document.getElementById(e);Be.delete(e),t&&document.body.removeChild(t)}else{for(const t of Be.keys()){const r=document.getElementById(t);r&&document.body.removeChild(r)}Be.clear()}},bl=e=>{const t=document.getElementById(e.id);if(t){const r=Be.get(e.id);r?e={..._t,...r,...e}:e={..._t,...e};const n=l.createVNode(yt,e);return l.render(n,t),e.id}},wl=e=>{e.unmount=Ht;let t;if(e.id){if(t=e.id,Be.has(t))return bl(e)}else t=`hinttext_${pl.get()}`;e={..._t,...e},e.id=t,Be.set(t,e);const r=document.createElement("div");r.id=e.id;const n=l.createVNode(yt,e);return l.render(n,r),document.body.appendChild(r),t},Sl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},pt={show(e,t,r={},n=!0){n&&Ht(),Sl(t);const a=Yn(e),o={x:a.x,y:a.y},i=r.width??gt(e).width;return wl({...r,message:t,startPoint:o,width:i})},hide(e){Ht(e)},install(e){e.config.globalProperties.$hintText=pt}},{componentName:Wn,create:$l}=Y("item"),vl=$l({inheritAttrs:!0,props:{...ae,...ce},setup(e,t){oe({componentName:Wn,validate:!1},e.prop??t.attrs.name);const r=ve(),n=dt();ht(!1);const a=l.computed(()=>n&&r?Ze(r,!1).value:null),o=Wn,i=l.computed(()=>({[o]:!0,[`${o}__gutter`]:a.value&&a.value.type!=="flow",[`${o}__stretch`]:e.span==="stretch",[`${o}__input--border`]:e.hasBorder,"is-error":!!C.value,"is-warn":!!m.value,"is-info":!!y.value})),u=l.computed(()=>{const N={};if(a.value)if(a.value.type==="flex"){if(e.width)N.width=K(e.width);else{const P=ge(a.value.column,e.span);P>0&&(N.width=`${P}%`)}const F=ge(a.value.column,e.offset);F>0&&(N["margin-left"]=`${F}%`);const L=a.value.gutter/2;L>0&&(N["padding-left"]=`${L}px`,N["padding-right"]=`${L}px`)}else if(a.value.type==="flow"){if(e.width)N.width=K(e.width);else{const P=ge(a.value.column,e.span);P>0&&(N.width=`${P}%`)}const F=ge(a.value.column,e.offset);F>0&&(N["margin-left"]=`${F}%`);const L=a.value.gutter/2;if(L>0){const P=r?Lt(r,!1):null;if(P){let _=Z(e.offset)+Z(e.span);(_===-1||_>a.value.column)&&(_=a.value.column);const G=Math.ceil((P.index+1)/a.value.column),z=Math.ceil((P.index+_)/a.value.column);if(G===z){const se=(P.index+1)%a.value.column,te=(P.index+_)%a.value.column,J=se===1?0:L,X=te===0?0:L;N["padding-left"]=`${J}px`,N["padding-right"]=`${X}px`}else{const se=_%a.value.column,te=0,J=se===0?0:L;N["padding-left"]=`${te}px`,N["padding-right"]=`${J}px`}P.index+=_}else N["padding-left"]=`${L}px`,N["padding-right"]=`${L}px`}}else return e.width&&(N.width=K(e.width)),N;else e.width&&(N.width=K(e.width));return N}),s=l.ref(null),d=l.computed({get:()=>s.value??re(e.isRequired),set:N=>{s.value=N}}),c=l.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),g=De(l.toRef(e,"labelPosition"),"labelPosition",ct.Near),E=l.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),A=l.computed(()=>({[`${o}__main`]:!0,[`${o}__main--${E.value}`]:!0})),x=l.computed(()=>({label:!0,[`label--${E.value}`]:!0})),v=De(l.toRef(e,"labelWidth"),"labelWidth",ct.Near),k=l.computed(()=>v&&v.value?{width:K(v.value)}:{}),$=l.computed(()=>({["label--string"]:!0,["label--required"]:d.value})),D=l.computed(()=>({content:!0,[e.contentClass]:!0})),j=l.computed(()=>({...e.contentStyle})),V=l.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(N){d.value=N},setErrorTip(N){V.errorTip=N},setErrorIcon(N){V.errorIcon=N},setWarnTip(N){V.warnTip=N},setWarnIcon(N){V.warnIcon=N},setInfoTip(N){V.infoTip=N},setInfoIcon(N){V.infoIcon=N}});const y=l.computed(()=>e.infoTip||V.infoTip),p=l.computed(()=>e.infoIcon||V.infoIcon),m=l.computed(()=>e.warnTip||V.warnTip),S=l.computed(()=>e.warnIcon||V.warnIcon),C=l.computed(()=>e.errorTip||V.errorTip),w=l.computed(()=>e.errorIcon||V.errorIcon),M=l.computed(()=>C.value?"error":m.value?"warn":y.value?"info":""),B=l.computed(()=>M.value.length>0),O=l.computed(()=>M.value==="error"?C.value:M.value==="warn"?m.value:M.value==="info"?y.value:""),R=l.computed(()=>M.value==="error"?w.value:M.value==="warn"?S.value:M.value==="info"?p.value:null),b=l.computed(()=>{let N={[`${o}__tip`]:!0,[`${o}__tip--${M.value}`]:!0};return M.value==="error"&&e.errorClass?N[`${e.errorClass}`]=!0:M.value==="warn"&&e.warnClass?N[`${e.warnClass}`]=!0:M.value==="info"&&e.infoClass&&(N[`${e.infoClass}`]=!0),N}),I=l.computed(()=>{let N={};return g&&g.value==="top"?N["padding-left"]="0px":v&&v.value&&(N["padding-left"]=K(v.value)),N}),T=l.ref();let q="";return l.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([N,F,L,P])=>{T.value&&(N&&!ee(F)?q?pt.show(T.value,F,{...P,id:q,type:L}):q=pt.show(T.value,F,{...P,type:L}):pt.hide(q))}),{classes:i,styles:u,mainClasses:A,hasLabel:c,labelClasses:x,labelStyles:k,labelStringClasses:$,contentClasses:D,contentStyles:j,contentRef:T,hasTip:B,mTip:O,mIcon:R,tipClasses:b,tipStyles:I}}}),El={key:0,class:"fox-item__tip-icon"},xl={class:"fox-item__tip-text"};function Cl(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.mainClasses)},[e.hasLabel?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(e.labelClasses),style:l.normalizeStyle(e.labelStyles)},[l.createElementVNode("div",{class:l.normalizeClass(e.labelStringClasses)},[l.renderSlot(e.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(e.label),1)])],2)],6)):l.createCommentVNode("",!0),l.createElementVNode("div",{ref:"contentRef",class:l.normalizeClass(e.contentClasses),style:l.normalizeStyle(e.contentStyles)},[l.renderSlot(e.$slots,"prepend"),l.renderSlot(e.$slots,"default"),l.renderSlot(e.$slots,"append")],6)],2),l.createVNode(l.Transition,{name:"fox-item__animate"},{default:l.withCtx(()=>[e.hasTip?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(e.tipClasses),style:l.normalizeStyle(e.tipStyles)},[e.mIcon?(l.openBlock(),l.createElementBlock("div",El,l.toDisplayString(e.mIcon),1)):l.createCommentVNode("",!0),l.createElementVNode("div",xl,l.toDisplayString(e.mTip),1)],6)):l.createCommentVNode("",!0)]),_:1}),l.renderSlot(e.$slots,"hide")],6)}const ie=Re(vl,[["render",Cl]]);function Ol(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(r,n){const a=ve(),o=dt();ht(!1);const i=l.computed(()=>o&&a?Ze(a,!1).value:null),u=e,s=l.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:r.span==="stretch"})),d=l.computed(()=>{const c={};if(i.value)if(i.value.type==="flex"){if(r.width)c.width=K(r.width);else{const A=ge(i.value.column,r.span);A>0&&(c.width=`${A}%`)}const g=ge(i.value.column,r.offset);g>0&&(c["margin-left"]=`${g}%`);const E=i.value.gutter/2;E>0&&(c["padding-left"]=`${E}px`,c["padding-right"]=`${E}px`)}else if(i.value.type==="flow"){if(r.width)c.width=K(r.width);else{const A=ge(i.value.column,r.span);A>0&&(c.width=`${A}%`)}const g=ge(i.value.column,r.offset);g>0&&(c["margin-left"]=`${g}%`);const E=i.value.gutter/2;if(E>0){const A=a?Lt(a,!1):null;if(A){let x=Z(r.offset)+Z(r.span);(x===-1||x>i.value.column)&&(x=i.value.column);const v=Math.ceil((A.index+1)/i.value.column),k=Math.ceil((A.index+x)/i.value.column);if(v===k){const $=(A.index+1)%i.value.column,D=(A.index+x)%i.value.column,j=$===1?0:E,V=D===0?0:E;c["padding-left"]=`${j}px`,c["padding-right"]=`${V}px`}else{const $=x%i.value.column,D=0,j=$===0?0:E;c["padding-left"]=`${D}px`,c["padding-right"]=`${j}px`}A.index+=x}else c["padding-left"]=`${E}px`,c["padding-right"]=`${E}px`}}else return r.width&&(c.width=K(r.width)),c;else r.width&&(c.width=K(r.width));return c});return()=>{const c={class:s.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",c,n.slots.default()):l.h("div",c)}}}}const{componentName:Tl,create:Vl,scope:_i}=Y("slot-item"),Un=Vl(Ol(Tl));function Il(e,t){return{props:{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"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(r,n){const a=e,o=l.computed(()=>({[a]:!0,[`${a}__stretch`]:r.span==="stretch",[`${a}__${r.align}`]:!0})),i=ve(),u=dt();ht(!1);const s=l.computed(()=>{const c={};if(u&&i){const g=Ze(i,!1);if(g.value.type!=="flex")return r.width&&(c.width=K(r.width)),c;if(r.width)c.width=K(r.width);else{const x=ge(g.value.column,r.span);x>0&&(c.width=`${x}%`)}const E=ge(g.value.column,r.offset);E>0&&(c["margin-left"]=`${E}%`);const A=g.value.gutter/2;A>0&&(c["padding-left"]=`${A}px`,c["padding-right"]=`${A}px`)}else r.width&&(c.width=K(r.width));return c}),d=l.computed(()=>({[`${a}__content`]:!0}));return()=>{const c=[];if(n.slots.default){const x=n.slots.default();if(r.divide)for(let v=0;v<x.length;v++){if(v>0){const k=l.h("div",{class:{[`${a}__divide`]:!0}});c.push(k)}c.push(x[v])}else Reflect.apply([].push,c,x)}const g={class:d.value},E=l.h("div",g,c),A={class:o.value,style:s.value};return l.h("div",A,[E])}}}}const{componentName:Nl,create:Al,scope:Hi}=Y("row-item"),Xn=Al(Il(Nl)),Zn={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Rl(e,t,r){return{props:{...ae,...ce,...Zn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),E=e,A=l.computed(()=>({[E]:!0})),x=m=>{g.value=m,o("update:modelValue",m),o("input",m)},v=m=>{o("change",m)};let k=W(n,"hintText"),$=l.ref(!1);const D=m=>{let C=m.target.value;s.value=!0,ee(k.value)||($.value=!0),o("focus",C,m)},j=m=>{setTimeout(()=>{$.value&&($.value=!1),s.value=!1},0);let C=m.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),o("blur",C,m)},V=()=>{o("clear","")},y=l.computed(()=>Ye(n.unit)>0),p=l.ref();return fe({focus:()=>{p?.value.focus()},blur:()=>{p?.value.blur()},select:()=>{p?.value.select()}}),()=>{const S={...a.attrs,ref:p,class:A.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:d.value,readonly:c.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:V,onChange:v,onInput:x,onFocus:D,onBlur:j},C={};a.slots.prepend&&(C.prepend=a.slots.prepend),a.slots.append&&(C.append=a.slots.append),a.slots.prefix&&(C.prefix=a.slots.prefix),a.slots.suffix?C.suffix=a.slots.suffix:y.value&&(C.suffix=()=>[n.unit]);const w=[],M=l.h(h.ElInput,S,C);w.push(M);const B={default:()=>w};if(a.slots.default){const I=a.slots.default();B.label=()=>I}const R={...ue(n,Zn),hintText:k.value,hintVisible:$.value,prop:`${n.prop}_item`};return l.h(r,R,B)}}}}const{componentName:kl,create:jl,scope:Ml}=Y("input-item"),Jn=jl(Rl(kl,Ml,ie));function ke(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Fe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Qn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Dl=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Se(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}};function ql(){const e=l.getCurrentInstance();return new Dl(e.proxy)}function er(e,t,r){const n=ke(e,t),a=ke(e,r);if(n!==a)return!1;const o=Fe(e,t),i=Fe(e,r);return o===i}function tr(e,t,r,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(o=>{for(let i of n){const u=Qn(e,i);if(Array.isArray(u)&&u.length>0){const s=tr(e,o,r,u)??[];Reflect.apply([].push,a,s)}else{let s=!1;if(r==="text")s=ke(e,i)===o;else if(r==="item")s=er(e,i,o);else{let d=Fe(e,i);d==null&&(d=ke(e,i)),s=d===o}if(s){a.push(i);break}}}}),a}function Bl(e){return{text:e,value:e}}const nr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Fl(e,t,r){return{props:{...ae,...ce,...nr},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(null),d=l.ref([]),c=(b,I,T,q=!0)=>{const N=tr(n,b,I,T);if(N===null){if(d.value===null||d.value.length===0)return;s.value=null,d.value=[],q&&(o("update:modelValue",null),o("change",null));return}let F=!0;if(N.length!==d.value.length)F=!1;else for(let L=0;L<N.length;L++){const P=N[L],_=d.value[L];if(!er(n,P,_)){F=!1;break}}if(!F){d.value=N;let L=[],P=[];N.forEach(G=>{L.push(Fe(n,G)),n.valueType==="text"?P.push(ke(n,G)):n.valueType==="item"?P.push(G):P.push(Fe(n,G))});let _;n.multiple?(s.value=L,_=l.toRaw(P)):(s.value=L[0]??"",_=l.toRaw(P[0]??"")),q&&(o("update:modelValue",_),o("change",_))}},g=l.ref([]),E=ql();l.watch([()=>n.source,()=>n.params],async([b,I])=>{if(b){const T=await E.load("select",b,I);if(T.length>0)if(typeof T[0]=="string"){let F=T.map(L=>Bl(L));g.value=F}else g.value=T}},{immediate:!0}),l.watch([()=>g.value,()=>n.modelValue],([b,I])=>{c(I,n.valueType,b,!1)});let A=null,x=l.ref(!1);typeof n.remoteMethod=="function"&&(A=async b=>{if(b!=null){x.value=!0;try{const I=await n.remoteMethod(b);g.value=I}catch(I){console.error(I)}x.value=!1}});const v=l.ref(!1),k=he(l.computed(()=>n.disabled)),$=de(l.computed(()=>n.readonly)),D=e,j=l.computed(()=>({[D]:!0})),V=b=>{n.allowCreate?(o("update:modelValue",b),o("change",b),s.value=b):c(b,"value",g.value,!0)};let y=W(n,"hintText"),p=l.ref(!1);const m=b=>{let T=b.target.value;v.value=!0,ee(y.value)||(p.value=!0),o("focus",T,b)},S=b=>{setTimeout(()=>{p.value&&(p.value=!1),v.value=!1},0);let T=b.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),w.value?setTimeout(()=>{o("blur",T,b)},50):o("blur",T,b)},C=()=>{o("clear","")},w=l.ref(!1),M=b=>{w.value=b,o("visible-change",b)},B=b=>{o("remove-tag",b)},O=(b,I)=>{const T=[];return b.forEach((q,N)=>{const F=Qn(n,q);if(Array.isArray(F)&&F.length>0){const L=O(F,I),P=ke(n,q),G={key:`${P}_${N}`,label:P};T.push(l.h(h.ElOptionGroup,G,{default:()=>L}))}else{const L=Fe(n,q),P=ke(n,q),_=re(q.disabled),z={key:`${L}_${N}`,label:P,disabled:_,value:L};if(typeof I=="function")T.push(l.h(h.ElOption,z,{default:()=>I(q)}));else if(n.optionType==="item"){const se={class:{"fox-select-item__option-left":!0}},te=l.h("span",se,[L]),J={class:{"fox-select-item__option-right":!0}},X=l.h("span",J,[P]),me=l.h("div",{class:{"fox-select-item__option":!0}},[te,X]);T.push(l.h(h.ElOption,z,{default:()=>me}))}else n.optionType==="value"?T.push(l.h(h.ElOption,z,{default:()=>[L]})):T.push(l.h(h.ElOption,z))}}),T},R=l.ref();return fe({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()}}),()=>{const I={...a.attrs,ref:R,class:j.value,clearable:n.clearable,multiple:n.multiple,placeholder:u.placeholder.value,disabled:k.value||$.value,modelValue:s.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:C,onChange:V,onFocus:m,onBlur:S,onVisibleChange:M,onRemoveTag:B};typeof A=="function"&&(I["remote-method"]=A,I.loading=x.value);const T={};a.slots.prefix&&(T.prefix=a.slots.prefix),a.slots.empty&&(T.empty=a.slots.empty),T.default=()=>O(g.value,a.slots.option);const q=[],N=l.h(h.ElSelect,I,T);q.push(N);const F={default:()=>q};if(a.slots.default){const G=a.slots.default();F.label=()=>G}const P={...ue(n,nr),hintText:y.value,hintVisible:p.value,prop:`${n.prop??a.attrs.name}_item`};return l.h(r,P,F)}}}}const{componentName:Ll,create:Pl,scope:_l}=Y("select-item"),rr=Pl(Fl(Ll,_l,ie)),ar={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Hl(e,t,r){return{props:{...ae,...ce,...ar},emits:["change","update:modelValue","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),E=e,A=l.computed(()=>({[E]:!0})),x=S=>{g.value=S,o("update:modelValue",S),o("change",S)};let v=W(n,"hintText"),k=l.ref(!1);const $=S=>{let w=S.target.value;s.value=!0,ee(v.value)||(k.value=!0),o("focus",w,S)},D=S=>{setTimeout(()=>{k.value&&(k.value=!1),s.value=!1},0);let w=S.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),o("blur",w,S)},j=()=>{o("clear","")},V=S=>{o("calendar-change",S)},y=(S,C,w)=>{o("panel-change",S,C,w)},p=S=>{o("visible-change",S)},m=l.ref();return fe({focus:()=>{m?.value.focus()},blur:()=>{m?.value.blur()},handleOpen:()=>{m?.value.handleOpen()},handleClose:()=>{m?.value.handleClose()}}),()=>{const C={...a.attrs,ref:m,class:A.value,placeholder:u.placeholder.value,disabled:d.value,readonly:c.value,modelValue:g.value,["onUpdate:modelValue"]:x,onClear:j,onFocus:$,onBlur:D,onCalendarChange:V,onPanelChange:y,onVisibleChange:p},w={};a.slots["range-separator"]&&(w["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(w.default=a.slots.cell);const M=[],B=l.h(h.ElDatePicker,C,w);M.push(B);const O={default:()=>M};if(a.slots.default){const T=a.slots.default();O.label=()=>T}const b={...ue(n,ar),hintText:v.value,hintVisible:k.value,prop:`${n.prop}_item`};return l.h(r,b,O)}}}}const{componentName:Kl,create:zl,scope:Gl}=Y("date-item"),lr=zl(Hl(Kl,Gl,ie)),or={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Yl(e,t,r){return{props:{...ae,...ce,...or},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),E=e,A=l.computed(()=>({[E]:!0})),x=p=>{g.value=p,o("update:modelValue",p),o("change",p)};let v=W(n,"hintText"),k=l.ref(!1);const $=p=>{let S=p.target.value;s.value=!0,ee(v.value)||(k.value=!0),o("focus",S,p)},D=p=>{setTimeout(()=>{k.value&&(k.value=!1),s.value=!1},0);let S=p.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),o("blur",S,p)},j=()=>{o("clear","")},V=p=>{o("visible-change",p)},y=l.ref();return fe({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},handleOpen:()=>{y?.value.handleOpen()},handleClose:()=>{y?.value.handleClose()}}),()=>{const m={...a.attrs,ref:y,class:A.value,placeholder:u.placeholder.value,disabled:d.value,readonly:c.value,modelValue:g.value,["onUpdate:modelValue"]:x,onClear:j,onFocus:$,onBlur:D,onVisibleChange:V},S={},C=[],w=l.h(h.ElTimePicker,m,S);C.push(w);const M={default:()=>C};if(a.slots.default){const b=a.slots.default();M.label=()=>b}const O={...ue(n,or),hintText:v.value,hintVisible:k.value,prop:`${n.prop}_item`};return l.h(r,O,M)}}}}const{componentName:Wl,create:Ul,scope:Xl}=Y("time-item"),ir=Ul(Yl(Wl,Xl,ie)),sr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Zl(e,t,r){return{props:{...ae,...ce,...sr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),E=e,A=l.computed(()=>({[E]:!0})),x=y=>{g.value=y,o("update:modelValue",y),o("change",y)};let v=W(n,"hintText"),k=l.ref(!1);const $=y=>{let m=y.target.value;s.value=!0,ee(v.value)||(k.value=!0),o("focus",m,y)},D=y=>{setTimeout(()=>{k.value&&(k.value=!1),s.value=!1},0);let m=y.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),o("blur",m,y)},j=()=>{o("clear","")},V=l.ref();return fe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const p={...a.attrs,ref:V,class:A.value,placeholder:u.placeholder.value,disabled:d.value,readonly:c.value,modelValue:g.value,["onUpdate:modelValue"]:x,onClear:j,onFocus:$,onBlur:D},m={},S=[],C=l.h(h.ElTimeSelect,p,m);S.push(C);const w={default:()=>S};if(a.slots.default){const R=a.slots.default();w.label=()=>R}const B={...ue(n,sr),hintText:v.value,hintVisible:k.value,prop:`${n.prop}_item`};return l.h(r,B,w)}}}}const{componentName:Jl,create:Ql,scope:eo}=Y("time-select-item"),ur=Ql(Zl(Jl,eo,ie));function cr(e,t=0){let r=`${e}`,n=r.indexOf(".");if(n==-1)return r;let a=n;for(let o=r.length-1;o>=n;o--)if(r.charAt(o)!="0"){a=o;break}return a-n<t?a=n+t+1:a!=n&&(a+=1),a>r.length?r=r.padEnd(a,"0"):r=r.substring(0,a),r}function fr(e,t,r=20){if(typeof t=="string"&&(t=Z(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=fn(`${e}`,`${t}`);return cr(n)}else{let n=Ct(`${e}`,dn(`${t}`),20);return cr(n)}}function to(e,t=-1,r=!1,n=3,a=","){return Tt(e,t,r,n,a)}function dr(e,t,r,n,a=!0){if(e=="")return"";if(e=hn(e),t=Z(t),t==1)return e;if(n)e=fr(e,t),r&&(e=="0"&&a?e=`${e}.`.padEnd(Z(r)+2,"0"):e=Ct(e,1,Z(r)));else{let o=-1*t;e=fr(e,o)}return e}function hr(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=re(t.minInclude),a=Ot(e,t.min);if(n&&a==-1||!n&&(a==0||a==-1)){let o="请输入不小于 {0} 的数值";r.message=o.replace("{0}",t.min),r.minValid=!1}}if(t.max!=null){let n=re(t.maxInclude),a=Ot(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(r.maxValid=!1)}return r}const gr={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,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function no(e,t,r){return{props:{...ae,...ce,...gr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),i=l.ref(!1),u=he(l.computed(()=>n.disabled)),s=de(l.computed(()=>n.readonly)),d=W(n,"modelValue"),c=l.ref("");l.watch([()=>d.value,()=>n.rates,()=>n.precision],([O,R,b])=>{if(ee(O))return"";const I=dr(O,R,b,!1);c.value!==I&&(c.value=I)},{immediate:!0});const g=l.computed(()=>{let O="";return i.value&&(O=c.value),O}),{t:E}=ye.useFoxI18n(t),A=l.computed(()=>{let O=n.placeholder??"";return!i.value&&!ee(c.value)?O=to(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):O=E(["placeholder",O]),O}),x=e,v=l.computed(()=>({[x]:!0,[`${x}__disabled`]:u.value,[`${x}__placeholder`]:c.value.length>0})),k=De(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>i.value?{textAlign:"left"}:{textAlign:k.value??"right"});const $=l.ref(""),D=l.computed(()=>{let O=$.value;return ee(O)&&(O=n.errorTip??""),O}),j=l.ref(""),V=l.ref(!1),y=(O,R)=>{if(O=`${O}`,ee(O)){c.value="",d.value="",R.forEach(b=>{o(b,"")}),re(n.showTip)&&V.value&&(V.value=!1);return}if(O.length>=2){let b=O;if(b.charAt(0)=="-"&&(b=b.substring(1)),b.length>=2&&b.charAt(0)=="0"&&b.charAt(1)!="."){l.triggerRef(c);return}}if(O!="-"){if(!Sn(O)){l.triggerRef(c);return}if(n.integerLength!=-1&&$n(O)>Number(n.integerLength)){l.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&vn(O)>Number(n.decimalLength)){l.triggerRef(c);return}let b=hr(O,n);if(b.maxValid===!1){$.value=b.message,l.triggerRef(c);return}}else if(n.min!=null&&Z(n.min)>=0){l.triggerRef(c);return}j.value=O,re(n.showTip)&&(V.value=O.length>0),c.value=O,d.value=dr(O,n.rates,n.precision,!0),R.forEach(b=>{o(b,d.value)})},p=O=>{y(O,["update:modelValue","input"])},m=O=>{y(O,["update:modelValue","change"])},S=O=>{if(i.value=!0,re(n.showTip)){let R=c.value;ee(R)&&(R=n.hintText),ee(R)||(j.value=R,V.value=!0)}$.value="",o("focus",d.value,O)},C=O=>{if(setTimeout(()=>{i.value=!1,re(n.showTip)&&V.value===!0&&(V.value=!1)},0),!ee(c.value)){let R=hr(c.value,n);if(R.minValid===!1||R.maxValid){$.value=R.message;return}}o("update:modelValue",d.value,O),o("blur",d.value,O)},w=()=>{o("clear","")},M=l.computed(()=>Ye(n.unit)>0),B=l.ref();return fe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()}}),()=>{const R={...a.attrs,ref:B,class:v.value,type:"digit",maxlength:n.maxLength,placeholder:A.value,clearable:n.clearable,disabled:u.value,readonly:s.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:w,onInput:p,onChange:m,onFocus:S,onBlur:C},b={};a.slots.prepend&&(b.prepend=a.slots.prepend),a.slots.append&&(b.append=a.slots.append),a.slots.prefix&&(b.prefix=a.slots.prefix),a.slots.suffix?b.suffix=a.slots.suffix:M.value&&(b.suffix=()=>[n.unit]);const I=[],T=l.h(h.ElInput,R,b);I.push(T);const q={default:()=>I};if(a.slots.default){const P=a.slots.default();q.label=()=>P}const F={...ue(n,gr),errorTip:D.value,hintText:j.value,hintVisible:V.value,hintType:"number",prop:`${n.prop}_item`};return l.h(r,F,q)}}}}const{componentName:ro,create:ao,scope:lo}=Y("money-item"),mr=ao(no(ro,lo,ie)),yr={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function oo(e,t,r){return{props:{...ae,...ce,...yr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),E=e,A=l.computed(()=>({[E]:!0,[`${E}__append`]:p.value})),x=l.computed(()=>({[`${E}__unit`]:!0})),v=S=>{g.value=S,o("update:modelValue",S),o("input",S)},k=S=>{o("change",S)};let $=W(n,"hintText"),D=l.ref(!1);const j=S=>{let w=S.target.value;s.value=!0,ee($.value)||(D.value=!0),o("focus",w,S)},V=S=>{setTimeout(()=>{D.value&&(D.value=!1),s.value=!1},0);let w=S.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),o("blur",w,S)},y=()=>{o("clear","")},p=l.computed(()=>Ye(n.unit)>0),m=l.ref();return fe({focus:()=>{m?.value.focus()},blur:()=>{m?.value.blur()}}),()=>{const C={...a.attrs,ref:m,class:A.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:d.value,readonly:c.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:y,onChange:k,onInput:v,onFocus:j,onBlur:V},w={},M=[],B=l.h(h.ElInputNumber,C,w);M.push(B);const O={default:()=>M};if(a.slots.default){const T=a.slots.default();O.label=()=>T}const b={...ue(n,yr),hintText:$.value,hintVisible:D.value,prop:`${n.prop}_item`};if(a.slots.append)O.append=a.slots.append;else if(p.value){const T={class:x.value},q=l.h("div",T,[n.unit]);O.append=()=>q}return l.h(r,b,O)}}}}const{componentName:io,create:so,scope:uo}=Y("input-number-item"),pr=so(oo(io,uo,ie));function Le(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function je(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function co(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let fo=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Se(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}};function ho(){const e=l.getCurrentInstance();return new fo(e.proxy)}function Kt(e,t,r){const n=Le(e,t),a=Le(e,r);if(n!==a)return!1;const o=je(e,t),i=je(e,r);return o===i}function br(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];let o=n;for(let i=0;Array.isArray(o)&&i<t.length;i++){const u=t[i];if(Array.isArray(u)){const s=br(e,u,r,n);a.push(s)}else{let s=!1;for(let d of o){if(r==="text")s=Le(e,d)===u;else if(r==="item")s=Kt(e,d,u);else{let c=je(e,d);c==null&&(c=Le(e,d)),s=c===u}if(s){a.push(d),o=co(e,d);break}}if(!s)break}}return a}function go(e){return{text:e,value:e}}const wr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1}};function mo(e,t,r){return{props:{...ae,...ce,...wr},emits:["change","update:modelValue","blur","focus","clear","visible-change","expand-change","remove-tag"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(null),d=l.ref([]),c=(I,T,q,N=!0)=>{if(n.props&&n.props.lazy===!0){if(s.value===I)return;s.value=I;const P=l.toRaw(I);N&&(o("update:modelValue",P),o("change",P))}const F=br(n,I,T,q);if(F===null){if(d.value.length===0||d.value===null)return;d.value=[],s.value=null,N&&(o("update:modelValue",null),o("change",null));return}let L=!0;if(F.length!==d.value.length)L=!1;else for(let P=0;P<F.length;P++){const _=F[P],G=d.value[P];if(Array.isArray(_)){if(!Array.isArray(G)||_.length!==G.length)L=!1;else for(let z=0;z<_.length;z++)if(!Kt(n,_[z],G[z])){L=!1;break}}else Kt(n,_,G)||(L=!1);if(!L)break}if(!L){d.value=F;let P=[],_=[];F.forEach(z=>{if(Array.isArray(z)){let se=[],te=[];for(let J of z)se.push(je(n,J)),n.valueType==="text"?te.push(Le(n,J)):n.valueType==="item"?te.push(J):te.push(je(n,J));P.push(se),_.push(te)}else P.push(je(n,z)),n.valueType==="text"?_.push(Le(n,z)):n.valueType==="item"?_.push(z):_.push(je(n,z))}),s.value=P;const G=l.toRaw(_);N&&(o("update:modelValue",G),o("change",G))}},g=l.ref([]),E=ho();l.watch([()=>n.source,()=>n.params],async([I,T])=>{if(I){const q=await E.load("cascader",I,T);if(q.length>0)if(typeof q[0]=="string"){let L=q.map(P=>go(P));g.value=L}else g.value=q}},{immediate:!0}),l.watch([()=>g.value,()=>n.modelValue],([I,T])=>{c(T,n.valueType,I,!1)});let A=null,x=l.ref(!1);typeof n.remoteMethod=="function"&&(A=async I=>{if(I!=null){x.value=!0;try{const T=await n.remoteMethod(I);g.value=T}catch(T){console.error(T)}x.value=!1}});const v=l.ref(!1),k=he(l.computed(()=>n.disabled)),$=de(l.computed(()=>n.readonly)),D=e,j=l.computed(()=>({[D]:!0})),V=l.computed(()=>{let I={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(I.multiple=!0),n.props&&Object.assign(I,n.props),I}),y=I=>{n.allowCreate?(o("update:modelValue",I),o("change",I),s.value=I):c(I,"value",g.value,!0)};let p=W(n,"hintText"),m=l.ref(!1);const S=I=>{let q=I.target.value;v.value=!0,ee(p.value)||(m.value=!0),o("focus",q,I)},C=I=>{setTimeout(()=>{m.value&&(m.value=!1),v.value=!1},0);let q=I.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),M.value?setTimeout(()=>{o("blur",q,I)},50):o("blur",q,I)},w=()=>{o("clear","")},M=l.ref(!1),B=I=>{M.value=I,o("visible-change",I)},O=I=>{o("remove-tag",I)},R=I=>{o("expand-change",I)},b=l.ref();return fe({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},getCheckedNodes:()=>b?.value.getCheckedNodes()}),()=>{const T={...a.attrs,ref:b,class:j.value,props:V.value,clearable:n.clearable,placeholder:u.placeholder.value,disabled:k.value||$.value,options:g.value,modelValue:s.value,onClear:w,onChange:y,onFocus:S,onBlur:C,onVisibleChange:B,onRemoveTag:O,expandChange:R};typeof A=="function"&&(T["remote-method"]=A,T.loading=x.value);const q={};a.slots.option&&(q.default=a.slots.option),a.slots.empty&&(q.empty=a.slots.empty);const N=[],F=l.h(h.ElCascader,T,q);N.push(F);const L={default:()=>N};if(a.slots.default){const z=a.slots.default();L.label=()=>z}const _={...ue(n,wr),hintText:p.value,hintVisible:m.value,prop:`${n.prop??a.attrs.name}_item`};return l.h(r,_,L)}}}}const{componentName:yo,create:po,scope:bo}=Y("cascader-item"),Sr=po(mo(yo,bo,ie)),$r={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function wo(e,t,r){return{props:{...ae,...ce,...$r},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),E=e,A=l.computed(()=>({[E]:!0})),x=p=>{g.value=p,o("update:modelValue",p),o("input",p)},v=p=>{o("change",p)};let k=W(n,"hintText"),$=l.ref(!1);const D=p=>{let S=p.target.value;s.value=!0,ee(k.value)||($.value=!0),o("focus",S,p)},j=p=>{setTimeout(()=>{$.value&&($.value=!1),s.value=!1},0);let S=p.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),o("blur",S,p)},V=()=>{o("clear","")},y=l.ref();return fe({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},select:()=>{y?.value.select()}}),()=>{const m={...a.attrs,ref:y,class:A.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:d.value,readonly:c.value,modelValue:g.value,onClear:V,onChange:v,onInput:x,onFocus:D,onBlur:j},S={};a.slots.prepend&&(S.prepend=a.slots.prepend),a.slots.append&&(S.append=a.slots.append),a.slots.prefix&&(S.prefix=a.slots.prefix),a.slots.suffix&&(S.suffix=a.slots.suffix),a.slots.option&&(S.default=a.slots.option);const C=[],w=l.h(h.ElAutocomplete,m,S);C.push(w);const M={default:()=>C};if(a.slots.default){const b=a.slots.default();M.label=()=>b}const O={...ue(n,$r),hintText:k.value,hintVisible:$.value,prop:`${n.prop}_item`};return l.h(r,O,M)}}}}const{componentName:So,create:$o,scope:vo}=Y("autocomplete-item"),vr=$o(wo(So,vo,ie));function Eo(e,t,r,n,a){let o=[];Array.isArray(e)?o=e:o=[e];const i=[],u=t[0];if(Array.isArray(u))for(let s=0;s<t.length&&s<o.length;s++){let d=t[s],c=o[s];const g=d.find(E=>E[n]===c);if(!g)break;i.push(g[r])}else{let s=t;for(let d=0;s&&d<o.length;d++){let c=o[d],g=s.find(E=>E[n]===c);if(!g)break;i.push(g[r]),s=g[a]}}return i}let xo=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Se(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}};function Co(){const e=l.getCurrentInstance();return new xo(e.proxy)}const Er={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},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,Boolean,Number,Array],required:!1,default:"/"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"}};function Oo(e,t){return{props:{...Er},setup(r,{attrs:n}){const a=Co(),o=l.ref([]);l.watch([()=>r.source,()=>r.params],async([s,d])=>{o.value=await a.load(r.sourceType,s,d)},{immediate:!0});const i=l.computed(()=>{if(!Array.isArray(o.value)||o.value.length===0)return"";let s=Eo(r.modelValue,o.value,r.textKey,r.valueKey,r.childrenKey);return s.length==0?"":s.length===1?s[0]:s.join(r.separator)}),u=r.resolveTag?l.resolveComponent(r.tag):r.tag;return()=>{const s={...n};return r.resolveTag?l.h(u,s,{default:()=>i.value}):l.h(u,s,i.value)}}}}const{componentName:Ki,create:To,scope:zi}=Y("mapping"),zt=To(Oo());function Vo(e,t){let r=t.split("."),n=e;for(let a=0;a<r.length;a++){let o=r[a],i=0,u=o.indexOf("["),s=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=o.substring(u+1,s);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let g=o.substring(0,u);n=n[g][c]}else n=n[c];i++}u=o.indexOf("[",s),s=u==-1?-1:o.indexOf("]",u)}i===0&&(n=n[o])}return n}function Io(e,t){return{props:{...Er},setup(r,{attrs:n}){return()=>{const a={default:o=>{const i=Vo(o.row,o.column.property);return l.h(zt,{...r,modelValue:i})}};return l.h(h.ElTableColumn,{...n},a)}}}}const{componentName:Gi,create:No,scope:Yi}=Y("table-mapping-column"),xr=No(Io());let Ao=class{proxy;constructor(t){this.proxy=t}async load(t,r,n,a,o,i,u){if(Array.isArray(r)){let d=(n-1)*a,c=d+a;c>r.length&&(c=r.length);const g=r.slice(d,c);return{totalSize:r.length,page:g}}if(typeof r=="function")return await Reflect.apply(r,null,[n,a,o,i,u]);const s=Ae(this.proxy,t);return s===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Se(o)&&l.isReactive(o)&&(o=l.toRaw(o)),await await Reflect.apply(s,null,[r,n,a,o,i,u]))}};function Ro(){const e=l.getCurrentInstance();return new Ao(e.proxy)}function ko(e,t){let r=t.split("."),n=e;for(let a=0;a<r.length;a++){let o=r[a],i=0,u=o.indexOf("["),s=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=o.substring(u+1,s);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let g=o.substring(0,u);n=n[g][c]}else n=n[c];i++}u=o.indexOf("[",s),s=u==-1?-1:o.indexOf("]",u)}i===0&&(n=n[o])}return n}function Gt(e,t){return e.filter(n=>{for(let a in t){const o=t[a],i=ko(n,a);if(o!==i)return!1}return!0})}const Cr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]}},Or={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationVisible:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}};function jo(e,t,r){return{inheritAttrs:!1,props:{...ae,...ce,...Cr,...Or},emits:["change","page-size-change","page-index-change","current-change"],setup(n,a){const{locale:o}=ye.useFoxI18n(t),{emitEvent:i}=oe({componentName:e},n.prop??a.attrs.name),u=e,s=l.computed(()=>({[u]:!0})),d=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),c=l.ref(n.pageIndex);l.watch(()=>n.pageIndex,M=>{c.value=M});const g=M=>{c.value=M,i("page-index-change",M)},E=l.ref(n.pageSize);l.watch(()=>n.pageSize,M=>{E.value=M});const A=M=>{E.value=M,i("page-size-change",M)},x=l.shallowRef({}),v=l.computed(()=>({...x.value,...n.params??{},...n.baseParams??{}})),k=l.ref(0),$=l.ref(),D=Ro();let j=!0;const V=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:re(n.autoLoad),y=async(M,B,O,R)=>{try{const b=await D.load("table",M,B,O,R,j,o.value);k.value=b.totalSize,$.value=b.page}catch(b){console.error("[FoxUI] Load Table Data Fail",b),k.value=0,$.value=[]}j=!1};l.watch([c,E],([M,B],[O,R])=>{B!==R&&(c.value=1,M=1),y(n.data,M,B,v.value)}),l.watch([()=>n.data,v],([M,B],[O,R])=>{V()&&(M!==O&&(j=!0),!(Ne(M,O)&&Ne(B,R))&&y(M,c.value,E.value,B))});const p=(M={})=>{x.value=l.toRaw(M??{}),l.triggerRef(x),l.nextTick(()=>{y(n.data,c.value,E.value,v.value)})},m=()=>{k.value=0,$.value=[]};V()&&p();let S=null;const C=(M,B)=>{S=M,i("current-change",M,B)},w=l.ref();return fe({clearSelection:()=>w?.value.clearSelection(),getSelectionRows:()=>w?.value.getSelectionRows(),toggleRowSelection:(M,B)=>{w?.value.toggleRowSelection(M,B)},toggleRowSelectionByProp:(M,B)=>{if(!$.value)return;const O=Gt($.value,M);O.length!==0&&O.forEach(R=>{w?.value.toggleRowSelection(R,B)})},toggleAllSelection:()=>{w?.value.toggleAllSelection()},toggleRowExpansion:(M,B)=>{w?.value.toggleRowExpansion(M,B)},toggleRowExpansionByProp:(M,B)=>{if(!$.value)return;const O=Gt($.value,M);O.length!==0&&O.forEach(R=>{w?.value.toggleRowExpansion(R,B)})},setCurrentRow:M=>{w?.value.setCurrentRow(M)},setCurrentRowByProp:M=>{if(!$.value)return;const B=Gt($.value,M);B.length!==0&&w?.value.setCurrentRow(B[0])},getCurrentRow:()=>S,clearSort:()=>{w?.value.clearSort()},clearFilter:M=>{w?.value.clearFilter(M)},doLayout:()=>{w?.value.doLayout()},sort:(M,B)=>{w?.value.sort(M,B)},scrollTo:(M,B)=>{w?.value.scrollTo(M,B)},setScrollTop:M=>{w?.value.setScrollTop(M)},setScrollLeft:M=>{w?.value.setScrollLeft(M)},loadData:p,clearData:m,getData(){return $.value},getTotalSize(){return k.value},getPageIndex(){return c.value},getPageSize(){return E.value}}),()=>{const B={...a.attrs,onCurrentChange:C,data:$.value,ref:w,class:s.value},O={};a.slots.default&&(O.default=a.slots.default),a.slots.append&&(O.append=a.slots.append),a.slots.empty&&(O.empty=a.slots.empty);const R=[],b=l.h(h.ElTable,B,O);if(R.push(b),typeof a.slots.pagination=="function"){const F=a.slots.pagination();R.push(F)}else if(n.paginationVisible){const F={class:d.value,total:k.value,pageSize:E.value,["onUpdate:pageSize"]:A,pageSizes:n.pageSizes,currentPage:c.value,["onUpdate:currentPage"]:g,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},L=l.h(h.ElPagination,F);R.push(L)}const I={default:()=>R},q={...ue(n,Cr,Or),prop:`${n.prop}_item`};return q.contentClass=`${u}__wrap`,l.h(r,q,I)}}}}const{componentName:Mo,create:Do,scope:qo}=Y("table-item"),Tr=Do(jo(Mo,qo,ie));function Pe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Je(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}let Bo=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Se(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}};function Fo(){const e=l.getCurrentInstance();return new Bo(e.proxy)}function Vr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Pe(e,t),a=Pe(e,r);if(n!==a)return!1;const o=Je(e,t),i=Je(e,r);return o===i}function Lo(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;let a=null;for(let o of n){let i=!1;if(r==="text")i=Pe(e,o)===t;else if(r==="item")i=Vr(e,o,t);else{let u=Je(e,o);u==null&&(u=Pe(e,o)),i=u===t}if(i){a=o;break}}return a}function Po(e){return{text:e,value:e}}const Ir={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemClass:{type:[String],required:!1}};function _o(e,t,r){return{inheritAttrs:!0,props:{...ae,...ce,...Ir},emits:["change","update:modelValue"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),i=l.ref(null),u=l.ref(null),s=(j,V,y,p=!0)=>{const m=Lo(n,j,V,y);if(m===null){if(u.value===null)return;u.value=null,i.value=null,p&&(o("update:modelValue",null),o("change",null));return}if(!Vr(n,m,u.value)){i.value=j;const C=l.toRaw(m);u.value=C;let w=null;n.valueType==="text"?w=Pe(n,C):n.valueType==="item"?w=C:w=Je(n,C),p&&(o("update:modelValue",w),o("change",w))}},d=l.ref([]),c=Fo();l.watch([()=>n.source,()=>n.params],async([j,V])=>{if(j){const y=await c.load("radio",j,V);if(y.length>0)if(typeof y[0]=="string"){let S=y.map(C=>Po(C));d.value=S}else d.value=y}},{immediate:!0}),l.watch([()=>d.value,()=>n.modelValue],([j,V])=>{s(V,n.valueType,j,!1)});const g=he(l.computed(()=>n.disabled)),E=de(l.computed(()=>n.readonly)),A=e,x=l.computed(()=>({[A]:!0})),v=j=>{s(j,"value",d.value,!0)};let k=W(n,"hintText"),$=W(n,"hintVisible");const D=(j,V)=>{const y=[];return j.forEach((p,m)=>{const S=Je(n,p),C=Pe(n,p),w=re(p.disabled),B={key:`${S}_${m}`,class:n.itemClass,label:S,disabled:w,size:n.size,border:re(n.border)};n.itemType==="button"?y.push(l.h(h.ElRadioButton,B,{default:()=>[C]})):typeof V=="function"?y.push(l.h(h.ElRadio,B,{default:()=>V(p)})):y.push(l.h(h.ElRadio,B,{default:()=>[C]}))}),y};return()=>{const V={...a.attrs,class:x.value,disabled:g.value||E.value,modelValue:i.value,["text-color"]:n.textColor,fill:n.fill,onChange:v},y=[],p={};a.slots.options?p.default=a.slots.options:p.default=()=>D(d.value,a.slots.text);const m=l.h(h.ElRadioGroup,V,p);y.push(m);const S={default:()=>y};if(a.slots.default){const B=a.slots.default();S.label=()=>B}const w={...ue(n,Ir),hintText:k.value,hintVisible:$.value,prop:`${n.prop??a.attrs.name}_item`};return l.h(r,w,S)}}}}const{componentName:Ho,create:Ko,scope:zo}=Y("radio-item"),Nr=Ko(_o(Ho,zo,ie));function _e(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function He(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class Go{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Se(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}}function Yo(){const e=l.getCurrentInstance();return new Go(e.proxy)}function Ar(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=_e(e,t),a=_e(e,r);if(n!==a)return!1;const o=He(e,t),i=He(e,r);return o===i}function Wo(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(o=>{for(let i of n){let u=!1;if(r==="text")u=_e(e,i)===o;else if(r==="item")u=Ar(e,i,o);else{let s=He(e,i);s==null&&(s=_e(e,i)),u=s===o}if(u){a.push(i);break}}}),a}function Uo(e){return{text:e,value:e}}const Rr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemClass:{type:[String],required:!1}};function Xo(e,t,r){return{inheritAttrs:!1,props:{...ae,...ce,...Rr},emits:["change","update:modelValue"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),i=l.ref([]),u=l.ref([]),s=(j,V,y,p=!0)=>{const m=Wo(n,j,V,y);if(m===null){if(u.value===null||u.value.length===0)return;i.value=[],u.value=[],p&&(o("update:modelValue",[]),o("change",[]));return}let S=!0;if(m.length!==u.value.length)S=!1;else for(let C=0;C<m.length;C++){const w=m[C],M=u.value[C];if(!Ar(n,w,M)){S=!1;break}}if(!S){u.value=m;let C=[],w=[];m.forEach(B=>{C.push(He(n,B)),n.valueType==="text"?w.push(_e(n,B)):n.valueType==="item"?w.push(B):w.push(He(n,B))}),i.value=C;const M=l.toRaw(w);p&&(o("update:modelValue",M),o("change",M))}},d=l.ref([]),c=Yo();l.watch([()=>n.source,()=>n.params],async([j,V])=>{if(j){const y=await c.load("checkbox",j,V);if(y.length>0)if(typeof y[0]=="string"){let S=y.map(C=>Uo(C));d.value=S}else d.value=y}},{immediate:!0}),l.watch([()=>d.value,()=>n.modelValue],([j,V])=>{s(V,n.valueType,j,!1)});const g=he(l.computed(()=>n.disabled)),E=de(l.computed(()=>n.readonly)),A=e,x=l.computed(()=>({[A]:!0})),v=j=>{s(j,"value",d.value,!0)};let k=W(n,"hintText"),$=W(n,"hintVisible");const D=(j,V)=>{const y=[];return j.forEach((p,m)=>{const S=He(n,p),C=_e(n,p),w=re(p.disabled),B={key:`${S}_${m}`,class:n.itemClass,label:S,disabled:w,size:n.size,border:re(n.border)};n.itemType==="button"?y.push(l.h(h.ElCheckboxButton,B,{default:()=>[C]})):typeof V=="function"?y.push(l.h(h.ElCheckbox,B,{default:()=>V(p)})):y.push(l.h(h.ElCheckbox,B,{default:()=>[C]}))}),y};return()=>{const V={...a.attrs,class:x.value,disabled:g.value||E.value,modelValue:i.value,["text-color"]:n.textColor,fill:n.fill,max:Z(n.max),min:Z(n.min),onChange:v},y=[],p={};a.slots.options?p.default=a.slots.options:p.default=()=>D(d.value,a.slots.text);const m=l.h(h.ElCheckboxGroup,V,p);y.push(m);const S={default:()=>y};if(a.slots.default){const B=a.slots.default();S.label=()=>B}const w={...ue(n,Rr),hintText:k.value,hintVisible:$.value,prop:`${n.prop??a.attrs.name}_item`};return l.h(r,w,S)}}}}const{componentName:Zo,create:Jo,scope:Qo}=Y("checkbox-item"),kr=Jo(Xo(Zo,Qo,ie)),jr={modelValue:{type:[Number,String],required:!1}};function ei(e,t,r){return{props:{...ae,...ce,...jr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),i=he(l.computed(()=>n.disabled)),u=de(l.computed(()=>n.readonly)),s=W(n,"modelValue",v=>Z(v)),d=e,c=l.computed(()=>({[d]:!0})),g=v=>{o("update:modelValue",v),o("change",v)};let E=W(n,"hintText"),A=l.ref(!1);const x=l.ref();return fe({}),()=>{const k={...a.attrs,ref:x,class:c.value,readonly:u.value||i.value,modelValue:s.value,onChange:g},$={},D=[],j=l.h(h.ElRate,k,$);D.push(j);const V={default:()=>D};if(a.slots.default){const S=a.slots.default();V.label=()=>S}const p={...ue(n,jr),hintText:E.value,hintVisible:A.value,prop:`${n.prop}_item`};return l.h(r,p,V)}}}}const{componentName:ti,create:ni,scope:ri}=Y("rate-item"),Mr=ni(ei(ti,ri,ie)),Dr={modelValue:{type:[Boolean,String,Number],required:!1}};function ai(e,t,r){return{props:{...ae,...ce,...Dr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),i=he(l.computed(()=>n.disabled)),u=de(l.computed(()=>n.readonly)),s=W(n,"modelValue"),d=e,c=l.computed(()=>({[d]:!0})),g=v=>{o("update:modelValue",v),o("change",v)};let E=W(n,"hintText"),A=W(n,"hintVisible");const x=l.ref();return fe({}),()=>{const k={...a.attrs,ref:x,class:c.value,readonly:u.value,disabled:i.value,modelValue:s.value,onChange:g},$={},D=[],j=l.h(h.ElSwitch,k,$);D.push(j);const V={default:()=>D};if(a.slots.default){const S=a.slots.default();V.label=()=>S}const p={...ue(n,Dr),hintText:E.value,hintVisible:A.value,prop:`${n.prop}_item`};return l.h(r,p,V)}}}}const{componentName:li,create:oi,scope:ii}=Y("switch-item"),qr=oi(ai(li,ii,ie)),si=Symbol.for("InnerPageScopeKey"),ui=Symbol.for("DialogItemStateKey");function ci(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(r,n){l.provide(si,!0);const a={};l.provide(ui,a);const o=s=>{typeof a.beforeClose=="function"&&a.beforeClose(s)},i=l.ref(!0),u=s=>{i.value=s};return()=>{const d={...n.attrs,title:r.title,draggable:r.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":o},c={};if(typeof n.slots.default=="function"){const g=n.slots.default();c.default=()=>g}return l.h(h.ElDialog,d,c)}}}}const{componentName:Wi,create:fi,scope:Ui}=Y("dialog-item"),Br=fi(ci()),{componentName:Xi,create:di}=Y("ext-icon"),Fr=di({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(e,{emit:t,slots:r}){const n=i=>{t("click",i)},a=l.computed(()=>e.name?e.name.indexOf("/")!==-1:!1),o="fox-icon";return()=>{const i=a.value;return l.h(i?"img":e.tag,{class:i?`${o}__img`:`${e.fontClassName} ${o} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:K(e.size),width:K(e.size),height:K(e.size)},onClick:n,src:i?e.name:""},r.default?.())}}});function hi(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""}},setup(r,{slots:n}){const a=e,o=l.computed(()=>({[a]:!0})),i=l.computed(()=>({[`${a}__mark`]:!0,[`${a}__mark-${r.type}`]:!0})),u=l.computed(()=>r.color?{background:r.color}:null),s=l.computed(()=>({[`${a}__text`]:!0,[`${a}__text-${r.type}`]:!0})),d=l.computed(()=>r.color?{color:r.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const v={class:i.value,style:u.value};c=l.h("div",v)}const g={class:s.value,style:d.value},E=n.default?n.default():[],A=l.h("div",g,E),x={class:o.value};return l.h("div",x,[c,A])}}}}const{componentName:gi,create:mi,scope:Zi}=Y("indicator"),Lr=mi(hi(gi));var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Yt={},yi={get exports(){return Yt},set exports(e){Yt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){var r=1e3,n=6e4,a=36e5,o="millisecond",i="second",u="minute",s="hour",d="day",c="week",g="month",E="quarter",A="year",x="date",v="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={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("_")},j=function(O,R,b){var I=String(O);return!I||I.length>=R?O:""+Array(R+1-I.length).join(b)+O},V={s:j,z:function(O){var R=-O.utcOffset(),b=Math.abs(R),I=Math.floor(b/60),T=b%60;return(R<=0?"+":"-")+j(I,2,"0")+":"+j(T,2,"0")},m:function O(R,b){if(R.date()<b.date())return-O(b,R);var I=12*(b.year()-R.year())+(b.month()-R.month()),T=R.clone().add(I,g),q=b-T<0,N=R.clone().add(I+(q?-1:1),g);return+(-(I+(b-T)/(q?T-N:N-T))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:g,y:A,w:c,d,D:x,h:s,m:u,s:i,ms:o,Q:E}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},y="en",p={};p[y]=D;var m=function(O){return O instanceof M},S=function O(R,b,I){var T;if(!R)return y;if(typeof R=="string"){var q=R.toLowerCase();p[q]&&(T=q),b&&(p[q]=b,T=q);var N=R.split("-");if(!T&&N.length>1)return O(N[0])}else{var F=R.name;p[F]=R,T=F}return!I&&T&&(y=T),T||!I&&y},C=function(O,R){if(m(O))return O.clone();var b=typeof R=="object"?R:{};return b.date=O,b.args=arguments,new M(b)},w=V;w.l=S,w.i=m,w.w=function(O,R){return C(O,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var M=function(){function O(b){this.$L=S(b.locale,null,!0),this.parse(b)}var R=O.prototype;return R.parse=function(b){this.$d=function(I){var T=I.date,q=I.utc;if(T===null)return new Date(NaN);if(w.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var N=T.match(k);if(N){var F=N[2]-1||0,L=(N[7]||"0").substring(0,3);return q?new Date(Date.UTC(N[1],F,N[3]||1,N[4]||0,N[5]||0,N[6]||0,L)):new Date(N[1],F,N[3]||1,N[4]||0,N[5]||0,N[6]||0,L)}}return new Date(T)}(b),this.$x=b.x||{},this.init()},R.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},R.$utils=function(){return w},R.isValid=function(){return this.$d.toString()!==v},R.isSame=function(b,I){var T=C(b);return this.startOf(I)<=T&&T<=this.endOf(I)},R.isAfter=function(b,I){return C(b)<this.startOf(I)},R.isBefore=function(b,I){return this.endOf(I)<C(b)},R.$g=function(b,I,T){return w.u(b)?this[I]:this.set(T,b)},R.unix=function(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function(){return this.$d.getTime()},R.startOf=function(b,I){var T=this,q=!!w.u(I)||I,N=w.p(b),F=function(J,X){var me=w.w(T.$u?Date.UTC(T.$y,X,J):new Date(T.$y,X,J),T);return q?me:me.endOf(d)},L=function(J,X){return w.w(T.toDate()[J].apply(T.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(X)),T)},P=this.$W,_=this.$M,G=this.$D,z="set"+(this.$u?"UTC":"");switch(N){case A:return q?F(1,0):F(31,11);case g:return q?F(1,_):F(0,_+1);case c:var se=this.$locale().weekStart||0,te=(P<se?P+7:P)-se;return F(q?G-te:G+(6-te),_);case d:case x:return L(z+"Hours",0);case s:return L(z+"Minutes",1);case u:return L(z+"Seconds",2);case i:return L(z+"Milliseconds",3);default:return this.clone()}},R.endOf=function(b){return this.startOf(b,!1)},R.$set=function(b,I){var T,q=w.p(b),N="set"+(this.$u?"UTC":""),F=(T={},T[d]=N+"Date",T[x]=N+"Date",T[g]=N+"Month",T[A]=N+"FullYear",T[s]=N+"Hours",T[u]=N+"Minutes",T[i]=N+"Seconds",T[o]=N+"Milliseconds",T)[q],L=q===d?this.$D+(I-this.$W):I;if(q===g||q===A){var P=this.clone().set(x,1);P.$d[F](L),P.init(),this.$d=P.set(x,Math.min(this.$D,P.daysInMonth())).$d}else F&&this.$d[F](L);return this.init(),this},R.set=function(b,I){return this.clone().$set(b,I)},R.get=function(b){return this[w.p(b)]()},R.add=function(b,I){var T,q=this;b=Number(b);var N=w.p(I),F=function(_){var G=C(q);return w.w(G.date(G.date()+Math.round(_*b)),q)};if(N===g)return this.set(g,this.$M+b);if(N===A)return this.set(A,this.$y+b);if(N===d)return F(1);if(N===c)return F(7);var L=(T={},T[u]=n,T[s]=a,T[i]=r,T)[N]||1,P=this.$d.getTime()+b*L;return w.w(P,this)},R.subtract=function(b,I){return this.add(-1*b,I)},R.format=function(b){var I=this,T=this.$locale();if(!this.isValid())return T.invalidDate||v;var q=b||"YYYY-MM-DDTHH:mm:ssZ",N=w.z(this),F=this.$H,L=this.$m,P=this.$M,_=T.weekdays,G=T.months,z=function(X,me,Oe,Te){return X&&(X[me]||X(I,q))||Oe[me].slice(0,Te)},se=function(X){return w.s(F%12||12,X,"0")},te=T.meridiem||function(X,me,Oe){var Te=X<12?"AM":"PM";return Oe?Te.toLowerCase():Te},J={YY:String(this.$y).slice(-2),YYYY:this.$y,M:P+1,MM:w.s(P+1,2,"0"),MMM:z(T.monthsShort,P,G,3),MMMM:z(G,P),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:z(T.weekdaysMin,this.$W,_,2),ddd:z(T.weekdaysShort,this.$W,_,3),dddd:_[this.$W],H:String(F),HH:w.s(F,2,"0"),h:se(1),hh:se(2),a:te(F,L,!0),A:te(F,L,!1),m:String(L),mm:w.s(L,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:N};return q.replace($,function(X,me){return me||J[X]||N.replace(":","")})},R.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},R.diff=function(b,I,T){var q,N=w.p(I),F=C(b),L=(F.utcOffset()-this.utcOffset())*n,P=this-F,_=w.m(this,F);return _=(q={},q[A]=_/12,q[g]=_,q[E]=_/3,q[c]=(P-L)/6048e5,q[d]=(P-L)/864e5,q[s]=P/a,q[u]=P/n,q[i]=P/r,q)[N]||P,T?_:w.a(_)},R.daysInMonth=function(){return this.endOf(g).$D},R.$locale=function(){return p[this.$L]},R.locale=function(b,I){if(!b)return this.$L;var T=this.clone(),q=S(b,I,!0);return q&&(T.$L=q),T},R.clone=function(){return w.w(this.$d,this)},R.toDate=function(){return new Date(this.valueOf())},R.toJSON=function(){return this.isValid()?this.toISOString():null},R.toISOString=function(){return this.$d.toISOString()},R.toString=function(){return this.$d.toUTCString()},O}(),B=M.prototype;return C.prototype=B,[["$ms",o],["$s",i],["$m",u],["$H",s],["$W",d],["$M",g],["$y",A],["$D",x]].forEach(function(O){B[O[1]]=function(R){return this.$g(R,O[0],O[1])}}),C.extend=function(O,R){return O.$i||(O(R,M,C),O.$i=!0),C},C.locale=S,C.isDayjs=m,C.unix=function(O){return C(1e3*O)},C.en=p[y],C.Ls=p,C.p={},C})})(yi);const Ce=Yt;var Wt={},pi={get exports(){return Wt},set exports(e){Wt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(k){this[v]=+k}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var $=k.match(/([+-]|\d\d)/g),D=60*$[1]+(+$[2]||0);return D===0?0:$[0]==="+"?-D:D}(v)}],g=function(v){var k=u[v];return k&&(k.indexOf?k:k.s.concat(k.f))},E=function(v,k){var $,D=u.meridiem;if(D){for(var j=1;j<=24;j+=1)if(v.indexOf(D(j,0,k))>-1){$=j>12;break}}else $=v===(k?"pm":"PM");return $},A={A:[i,function(v){this.afternoon=E(v,!1)}],a:[i,function(v){this.afternoon=E(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[o,d("seconds")],ss:[o,d("seconds")],m:[o,d("minutes")],mm:[o,d("minutes")],H:[o,d("hours")],h:[o,d("hours")],HH:[o,d("hours")],hh:[o,d("hours")],D:[o,d("day")],DD:[a,d("day")],Do:[i,function(v){var k=u.ordinal,$=v.match(/\d+/);if(this.day=$[0],k)for(var D=1;D<=31;D+=1)k(D).replace(/\[|\]/g,"")===v&&(this.day=D)}],M:[o,d("month")],MM:[a,d("month")],MMM:[i,function(v){var k=g("months"),$=(g("monthsShort")||k.map(function(D){return D.slice(0,3)})).indexOf(v)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[i,function(v){var k=g("months").indexOf(v)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(v){this.year=s(v)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function x(v){var k,$;k=v,$=u&&u.formats;for(var D=(v=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,w,M){var B=M&&M.toUpperCase();return w||$[M]||r[M]||$[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,R,b){return R||b.slice(1)})})).match(n),j=D.length,V=0;V<j;V+=1){var y=D[V],p=A[y],m=p&&p[0],S=p&&p[1];D[V]=S?{regex:m,parser:S}:y.replace(/^\[|\]$/g,"")}return function(C){for(var w={},M=0,B=0;M<j;M+=1){var O=D[M];if(typeof O=="string")B+=O.length;else{var R=O.regex,b=O.parser,I=C.slice(B),T=R.exec(I)[0];b.call(w,T),C=C.replace(T,"")}}return function(q){var N=q.afternoon;if(N!==void 0){var F=q.hours;N?F<12&&(q.hours+=12):F===12&&(q.hours=0),delete q.afternoon}}(w),w}}return function(v,k,$){$.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(s=v.parseTwoDigitYear);var D=k.prototype,j=D.parse;D.parse=function(V){var y=V.date,p=V.utc,m=V.args;this.$u=p;var S=m[1];if(typeof S=="string"){var C=m[2]===!0,w=m[3]===!0,M=C||w,B=m[2];w&&(B=m[2]),u=this.$locale(),!C&&B&&(u=$.Ls[B]),this.$d=function(I,T,q){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*I);var N=x(T)(I),F=N.year,L=N.month,P=N.day,_=N.hours,G=N.minutes,z=N.seconds,se=N.milliseconds,te=N.zone,J=new Date,X=P||(F||L?1:J.getDate()),me=F||J.getFullYear(),Oe=0;F&&!L||(Oe=L>0?L-1:J.getMonth());var Te=_||0,nn=G||0,rn=z||0,an=se||0;return te?new Date(Date.UTC(me,Oe,X,Te,nn,rn,an+60*te.offset*1e3)):q?new Date(Date.UTC(me,Oe,X,Te,nn,rn,an)):new Date(me,Oe,X,Te,nn,rn,an)}catch{return new Date("")}}(y,S,p),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),M&&y!=this.format(S)&&(this.$d=new Date("")),u={}}else if(S instanceof Array)for(var O=S.length,R=1;R<=O;R+=1){m[1]=S[R-1];var b=$.apply(this,m);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}R===O&&(this.$d=new Date(""))}else j.call(this,V)}}})})(pi);const bi=Wt;var Ut={},wi={get exports(){return Ut},set exports(e){Ut=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n,a){var o=n.prototype,i=o.format;a.en.ordinal=function(u){var s=["th","st","nd","rd"],d=u%100;return"["+u+(s[(d-20)%10]||s[d]||s[0])+"]"},o.format=function(u){var s=this,d=this.$locale();if(!this.isValid())return i.bind(this)(u);var c=this.$utils(),g=(u||"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(E){switch(E){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return d.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return d.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),E==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),E==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return E}});return i.bind(this)(g)}}})})(wi);const Si=Ut;var Xt={},$i={get exports(){return Xt},set exports(e){Xt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n,a){var o=n.prototype,i=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,E,A,x,v){var k=g.name?g:g.$locale(),$=i(k[E]),D=i(k[A]),j=$||D.map(function(y){return y.slice(0,x)});if(!v)return j;var V=k.weekStart;return j.map(function(y,p){return j[(p+(V||0))%7]})},s=function(){return a.Ls[a.locale()]},d=function(g,E){return g.formats[E]||function(A){return A.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(x,v,k){return v||k.slice(1)})}(g.formats[E.toUpperCase()])},c=function(){var g=this;return{months:function(E){return E?E.format("MMMM"):u(g,"months")},monthsShort:function(E){return E?E.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(E){return E?E.format("dddd"):u(g,"weekdays")},weekdaysMin:function(E){return E?E.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(E){return E?E.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(E){return d(g.$locale(),E)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},a.localeData=function(){var g=s();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(E){return d(g,E)},meridiem:g.meridiem,ordinal:g.ordinal}},a.months=function(){return u(s(),"months")},a.monthsShort=function(){return u(s(),"monthsShort","months",3)},a.weekdays=function(g){return u(s(),"weekdays",null,null,g)},a.weekdaysShort=function(g){return u(s(),"weekdaysShort","weekdays",3,g)},a.weekdaysMin=function(g){return u(s(),"weekdaysMin","weekdays",2,g)}}})})($i);const vi=Xt;var Zt={},Ei={get exports(){return Zt},set exports(e){Zt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){var r="week",n="year";return function(a,o,i){var u=o.prototype;u.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 c=i(this).startOf(n).add(1,n).date(d),g=i(this).endOf(r);if(c.isBefore(g))return 1}var E=i(this).startOf(n).date(d).startOf(r).subtract(1,"millisecond"),A=this.diff(E,r,!0);return A<0?i(this).startOf("week").week():Math.ceil(A)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(Ei);const xi=Zt;var Jt={},Ci={get exports(){return Jt},set exports(e){Jt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n){n.prototype.weekYear=function(){var a=this.month(),o=this.week(),i=this.year();return o===1&&a===11?i+1:a===0&&o>=52?i-1:i}}})})(Ci);const Oi=Jt;var Qt={},Ti={get exports(){return Qt},set exports(e){Qt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n,a){n.prototype.dayOfYear=function(o){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return o==null?i:this.add(o-i,"day")}}})})(Ti);const Vi=Qt;var en={},Ii={get exports(){return en},set exports(e){en=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n){n.prototype.isSameOrAfter=function(a,o){return this.isSame(a,o)||this.isAfter(a,o)}}})})(Ii);const Ni=en;var tn={},Ai={get exports(){return tn},set exports(e){tn=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n){n.prototype.isSameOrBefore=function(a,o){return this.isSame(a,o)||this.isBefore(a,o)}}})})(Ai);const Ri=tn;Ce.extend(vi),Ce.extend(Si),Ce.extend(bi),Ce.extend(xi),Ce.extend(Oi),Ce.extend(Vi),Ce.extend(Ni),Ce.extend(Ri);const Pr=10;function ki(e,t){return e>t&&e>Pr?"horizontal":t>e&&t>Pr?"vertical":""}function ji(){const e=l.ref(0),t=l.ref(0),r=l.ref(0),n=l.ref(0),a=l.ref(0),o=l.ref(0),i=l.ref(0),u=l.ref(0),s=l.ref(0),d=l.ref(0),c=l.ref(""),g=()=>c.value==="vertical",E=()=>c.value==="horizontal",A=()=>{i.value=0,u.value=0,s.value=0,d.value=0,c.value="",r.value=0};return{move:k=>{const $=k.touches[0];i.value=$.clientX-e.value,u.value=$.clientY-t.value,a.value=$.clientX,o.value=$.clientY,s.value=Math.abs(i.value),d.value=Math.abs(u.value),n.value=Date.now()-r.value,c.value||(c.value=ki(s.value,d.value))},start:k=>{A(),e.value=k.touches[0].clientX,t.value=k.touches[0].clientY,r.value=Date.now()},reset:A,startX:e,startY:t,startTime:r,duration:n,moveX:a,moveY:o,deltaX:i,deltaY:u,offsetX:s,offsetY:d,direction:c,isVertical:g,isHorizontal:E}}const Mi=[Bn,Fn,Ln,Pn,Kn,ie,Un,Xn,yt,Jn,rr,lr,ir,ur,mr,pr,Sr,vr,xr,Tr,Nr,kr,Mr,qr,Br,zt,mt,Fr,Lr],Di=new Ca(Mi,[Va],"4.0.0");Object.defineProperty(f,"FoxAffix",{enumerable:!0,get:()=>h.ElAffix}),Object.defineProperty(f,"FoxAlert",{enumerable:!0,get:()=>h.ElAlert}),Object.defineProperty(f,"FoxAside",{enumerable:!0,get:()=>h.ElAside}),Object.defineProperty(f,"FoxAutoResizer",{enumerable:!0,get:()=>h.ElAutoResizer}),Object.defineProperty(f,"FoxAutocomplete",{enumerable:!0,get:()=>h.ElAutocomplete}),Object.defineProperty(f,"FoxAvatar",{enumerable:!0,get:()=>h.ElAvatar}),Object.defineProperty(f,"FoxBacktop",{enumerable:!0,get:()=>h.ElBacktop}),Object.defineProperty(f,"FoxBadge",{enumerable:!0,get:()=>h.ElBadge}),Object.defineProperty(f,"FoxBreadcrumb",{enumerable:!0,get:()=>h.ElBreadcrumb}),Object.defineProperty(f,"FoxBreadcrumbItem",{enumerable:!0,get:()=>h.ElBreadcrumbItem}),Object.defineProperty(f,"FoxButton",{enumerable:!0,get:()=>h.ElButton}),Object.defineProperty(f,"FoxButtonGroup",{enumerable:!0,get:()=>h.ElButtonGroup}),Object.defineProperty(f,"FoxCalendar",{enumerable:!0,get:()=>h.ElCalendar}),Object.defineProperty(f,"FoxCard",{enumerable:!0,get:()=>h.ElCard}),Object.defineProperty(f,"FoxCarousel",{enumerable:!0,get:()=>h.ElCarousel}),Object.defineProperty(f,"FoxCarouselItem",{enumerable:!0,get:()=>h.ElCarouselItem}),Object.defineProperty(f,"FoxCascader",{enumerable:!0,get:()=>h.ElCascader}),Object.defineProperty(f,"FoxCascaderPanel",{enumerable:!0,get:()=>h.ElCascaderPanel}),Object.defineProperty(f,"FoxCheckTag",{enumerable:!0,get:()=>h.ElCheckTag}),Object.defineProperty(f,"FoxCheckbox",{enumerable:!0,get:()=>h.ElCheckbox}),Object.defineProperty(f,"FoxCheckboxButton",{enumerable:!0,get:()=>h.ElCheckboxButton}),Object.defineProperty(f,"FoxCheckboxGroup",{enumerable:!0,get:()=>h.ElCheckboxGroup}),Object.defineProperty(f,"FoxCol",{enumerable:!0,get:()=>h.ElCol}),Object.defineProperty(f,"FoxCollapse",{enumerable:!0,get:()=>h.ElCollapse}),Object.defineProperty(f,"FoxCollapseItem",{enumerable:!0,get:()=>h.ElCollapseItem}),Object.defineProperty(f,"FoxCollapseTransition",{enumerable:!0,get:()=>h.ElCollapseTransition}),Object.defineProperty(f,"FoxColorPicker",{enumerable:!0,get:()=>h.ElColorPicker}),Object.defineProperty(f,"FoxConfigProvider",{enumerable:!0,get:()=>h.ElConfigProvider}),Object.defineProperty(f,"FoxContainer",{enumerable:!0,get:()=>h.ElContainer}),Object.defineProperty(f,"FoxDatePicker",{enumerable:!0,get:()=>h.ElDatePicker}),Object.defineProperty(f,"FoxDescriptions",{enumerable:!0,get:()=>h.ElDescriptions}),Object.defineProperty(f,"FoxDescriptionsItem",{enumerable:!0,get:()=>h.ElDescriptionsItem}),Object.defineProperty(f,"FoxDialog",{enumerable:!0,get:()=>h.ElDialog}),Object.defineProperty(f,"FoxDivider",{enumerable:!0,get:()=>h.ElDivider}),Object.defineProperty(f,"FoxDrawer",{enumerable:!0,get:()=>h.ElDrawer}),Object.defineProperty(f,"FoxDropdown",{enumerable:!0,get:()=>h.ElDropdown}),Object.defineProperty(f,"FoxDropdownItem",{enumerable:!0,get:()=>h.ElDropdownItem}),Object.defineProperty(f,"FoxDropdownMenu",{enumerable:!0,get:()=>h.ElDropdownMenu}),Object.defineProperty(f,"FoxEmpty",{enumerable:!0,get:()=>h.ElEmpty}),Object.defineProperty(f,"FoxFooter",{enumerable:!0,get:()=>h.ElFooter}),Object.defineProperty(f,"FoxForm",{enumerable:!0,get:()=>h.ElForm}),Object.defineProperty(f,"FoxFormItem",{enumerable:!0,get:()=>h.ElFormItem}),Object.defineProperty(f,"FoxHeader",{enumerable:!0,get:()=>h.ElHeader}),Object.defineProperty(f,"FoxIcon",{enumerable:!0,get:()=>h.ElIcon}),Object.defineProperty(f,"FoxImage",{enumerable:!0,get:()=>h.ElImage}),Object.defineProperty(f,"FoxImageViewer",{enumerable:!0,get:()=>h.ElImageViewer}),Object.defineProperty(f,"FoxInput",{enumerable:!0,get:()=>h.ElInput}),Object.defineProperty(f,"FoxInputNumber",{enumerable:!0,get:()=>h.ElInputNumber}),Object.defineProperty(f,"FoxLink",{enumerable:!0,get:()=>h.ElLink}),Object.defineProperty(f,"FoxMain",{enumerable:!0,get:()=>h.ElMain}),Object.defineProperty(f,"FoxMenu",{enumerable:!0,get:()=>h.ElMenu}),Object.defineProperty(f,"FoxMenuItem",{enumerable:!0,get:()=>h.ElMenuItem}),Object.defineProperty(f,"FoxMenuItemGroup",{enumerable:!0,get:()=>h.ElMenuItemGroup}),Object.defineProperty(f,"FoxOption",{enumerable:!0,get:()=>h.ElOption}),Object.defineProperty(f,"FoxOptionGroup",{enumerable:!0,get:()=>h.ElOptionGroup}),Object.defineProperty(f,"FoxPageHeader",{enumerable:!0,get:()=>h.ElPageHeader}),Object.defineProperty(f,"FoxPagination",{enumerable:!0,get:()=>h.ElPagination}),Object.defineProperty(f,"FoxPopconfirm",{enumerable:!0,get:()=>h.ElPopconfirm}),Object.defineProperty(f,"FoxPopover",{enumerable:!0,get:()=>h.ElPopover}),Object.defineProperty(f,"FoxPopper",{enumerable:!0,get:()=>h.ElPopper}),Object.defineProperty(f,"FoxProgress",{enumerable:!0,get:()=>h.ElProgress}),Object.defineProperty(f,"FoxRadio",{enumerable:!0,get:()=>h.ElRadio}),Object.defineProperty(f,"FoxRadioButton",{enumerable:!0,get:()=>h.ElRadioButton}),Object.defineProperty(f,"FoxRadioGroup",{enumerable:!0,get:()=>h.ElRadioGroup}),Object.defineProperty(f,"FoxRate",{enumerable:!0,get:()=>h.ElRate}),Object.defineProperty(f,"FoxResult",{enumerable:!0,get:()=>h.ElResult}),Object.defineProperty(f,"FoxRow",{enumerable:!0,get:()=>h.ElRow}),Object.defineProperty(f,"FoxScrollbar",{enumerable:!0,get:()=>h.ElScrollbar}),Object.defineProperty(f,"FoxSelect",{enumerable:!0,get:()=>h.ElSelect}),Object.defineProperty(f,"FoxSelectV2",{enumerable:!0,get:()=>h.ElSelectV2}),Object.defineProperty(f,"FoxSkeleton",{enumerable:!0,get:()=>h.ElSkeleton}),Object.defineProperty(f,"FoxSkeletonItem",{enumerable:!0,get:()=>h.ElSkeletonItem}),Object.defineProperty(f,"FoxSlider",{enumerable:!0,get:()=>h.ElSlider}),Object.defineProperty(f,"FoxSpace",{enumerable:!0,get:()=>h.ElSpace}),Object.defineProperty(f,"FoxStep",{enumerable:!0,get:()=>h.ElStep}),Object.defineProperty(f,"FoxSteps",{enumerable:!0,get:()=>h.ElSteps}),Object.defineProperty(f,"FoxSubMenu",{enumerable:!0,get:()=>h.ElSubMenu}),Object.defineProperty(f,"FoxSwitch",{enumerable:!0,get:()=>h.ElSwitch}),Object.defineProperty(f,"FoxTabPane",{enumerable:!0,get:()=>h.ElTabPane}),Object.defineProperty(f,"FoxTable",{enumerable:!0,get:()=>h.ElTable}),Object.defineProperty(f,"FoxTableColumn",{enumerable:!0,get:()=>h.ElTableColumn}),Object.defineProperty(f,"FoxTableV2",{enumerable:!0,get:()=>h.ElTableV2}),Object.defineProperty(f,"FoxTabs",{enumerable:!0,get:()=>h.ElTabs}),Object.defineProperty(f,"FoxTag",{enumerable:!0,get:()=>h.ElTag}),Object.defineProperty(f,"FoxTimePicker",{enumerable:!0,get:()=>h.ElTimePicker}),Object.defineProperty(f,"FoxTimeSelect",{enumerable:!0,get:()=>h.ElTimeSelect}),Object.defineProperty(f,"FoxTimeline",{enumerable:!0,get:()=>h.ElTimeline}),Object.defineProperty(f,"FoxTimelineItem",{enumerable:!0,get:()=>h.ElTimelineItem}),Object.defineProperty(f,"FoxTooltip",{enumerable:!0,get:()=>h.ElTooltip}),Object.defineProperty(f,"FoxTransfer",{enumerable:!0,get:()=>h.ElTransfer}),Object.defineProperty(f,"FoxTree",{enumerable:!0,get:()=>h.ElTree}),Object.defineProperty(f,"FoxTreeSelect",{enumerable:!0,get:()=>h.ElTreeSelect}),Object.defineProperty(f,"FoxTreeV2",{enumerable:!0,get:()=>h.ElTreeV2}),Object.defineProperty(f,"FoxUpload",{enumerable:!0,get:()=>h.ElUpload}),f.AutocompleteItem=vr,f.Broadcast=Rt,f.BroadcastKey=ne,f.CascaderItem=Sr,f.CheckboxItem=kr,f.Content=Pn,f.DataItemsKey=Me,f.DateItem=lr,f.DialogItem=Br,f.Domain=jt,f.DomainKey=$e,f.ExtIcon=Fr,f.FooterBar=Ln,f.Group=Kn,f.HeaderBar=Fn,f.HintText=yt,f.Indicator=Lr,f.InputItem=Jn,f.InputNumberItem=pr,f.Item=ie,f.Mapping=zt,f.MoneyItem=mr,f.Page=Bn,f.Price=mt,f.PriorityPolicy=ct,f.RadioItem=Nr,f.RateItem=Mr,f.RowItem=Xn,f.SelectItem=rr,f.SlotItem=Un,f.SwitchItem=qr,f.TableItem=Tr,f.TableMappingColumn=xr,f.TimeItem=ir,f.TimeSelectItem=ur,f.UniqueID=Gn,f.ValidateSchema=In,f.ValidateSchemaKey=be,f.clearNonNumber=na,f.clone=Nt,f.compareTo=Ot,f.createBroadcast=nt,f.createValidateSchema=at,f.debounce=ya,f.decimalLength=vn,f.default=Di,f.defineBroadcast=ia,f.defineDataItem=An,f.defineDomain=Dt,f.defineItem=oe,f.definePageState=Rn,f.deleteGlobalValidator=fa,f.disabledProperty=he,f.divide=Ct,f.excludeProps=ue,f.extend=Ie,f.floatData=oa,f.getGlobalValidateCheckEvents=On,f.getGlobalValidateResetEvents=Vn,f.getPageContentAreaHeight=st,f.getPageContentAreaWidth=ut,f.getPageFooterAreaHeight=it,f.getPageHeaderAreaHeight=ot,f.getRootDomain=Xe,f.hasSymbol=mn,f.includeProps=la,f.indexOf=ra,f.integerLength=$n,f.isArray=Hr,f.isArrayLike=pn,f.isBrowser=Ge,f.isDate=Gr,f.isESModule=Xr,f.isEmptyString=ee,f.isEqual=Ne,f.isFunction=Vt,f.isInnerPage=ba,f.isMap=Kr,f.isNumberString=Sn,f.isObject=Se,f.isPlainObject=It,f.isPromise=Ur,f.isRegExp=wn,f.isSet=zr,f.isString=Yr,f.isSubPage=wa,f.isSymbol=Wr,f.isWindow=yn,f.lastIndexOf=aa,f.makeArray=ea,f.merge=bn,f.multiply=fn,f.negate=dn,f.nextTick=Jr,f.numberFormat=Tt,f.objectToString=gn,f.property=De,f.raf=ta,f.readonlyProperty=de,f.setGlobalValidateCheckEvents=da,f.setGlobalValidateHandler=ua,f.setGlobalValidateMessages=ga,f.setGlobalValidateResetEvents=ha,f.setGlobalValidator=ca,f.throttle=kt,f.toBoolean=re,f.toNumber=Z,f.toPadding=pe,f.toPx=U,f.toPxDesc=K,f.toTypeString=et,f.toValue=W,f.typeOf=tt,f.unNumberFormat=hn,f.updatePageState=qt,f.useBroadcast=We,f.useDomain=ve,f.useExpose=fe,f.usePageState=lt,f.usePosition=Yn,f.useRect=gt,f.useTouch=ji,f.valueLength=Ye,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */function Qe(e,t="0"){let r=0,n=-1;e[0]=="-"&&(r++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(r++,n=2,t=t.substring(1),t.length),e=le(e),t=le(t),[e,t]=wt(le(e),le(t)),r==1&&(n==1?e=bt(e):t=bt(t));let a=ln(e,t);return r?r==2?"-"+le(a):e.length<a.length?le(a.substring(1)):"-"+le(bt(a)):le(a)}function bt(e){let t="",r=e.length,n=e.split(".")[1],a=n?n.length:0;for(let i=0;i<r;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let o=a>0?"0."+new Array(a).join("0")+"1":"1";return ln(t,o)}function le(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function wt(e,t){let r=e.split("."),n=t.split("."),a=r[0].length,o=n[0].length;return a>o?n[0]=new Array(Math.abs(a-o)+1).join("0")+(n[0]?n[0]:""):r[0]=new Array(Math.abs(a-o)+1).join("0")+(r[0]?r[0]:""),a=r[1]?r[1].length:0,o=n[1]?n[1].length:0,(a||o)&&(a>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-o)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(a-o)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function ln(e,t){[e,t]=wt(e,t);let r="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){r="."+r;continue}let o=parseInt(e[a])+parseInt(t[a])+n;r=o%10+r,n=Math.floor(o/10)}return n?n.toString()+r:r}var Q=(e=>(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))(Q||{});function Ke(e,t=0,r=Q.HALF_EVEN){if(r===Q.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),o=a[0],i=a[1];if(t<0){if(t=-t,o.length<=t)return"0";{let s=o.substr(0,o.length-t);return e=s+"."+o.substr(o.length-t)+i,s=Ke(e,0,r),(n?"-":"")+s+new Array(t+1).join("0")}}if(t==0)return o.length,on(a[1],o,n,r)?(n?"-":"")+St(o):(n?"-":"")+o;if(a[1]){if(a[1].length<t)return(n?"-":"")+o+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(n?"-":"")+o+"."+new Array(t+1).join("0");i=a[1].substring(0,t);let u=a[1].substring(t);return u&&on(u,i,n,r)&&(i=St(i),i.length>t)?(n?"-":"")+St(o,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+o+"."+i}function on(e,t,r,n){if(!e||e===new Array(e.length+1).join("0")||n===Q.DOWN||!r&&n===Q.FLOOR||r&&n===Q.CEILING)return!1;if(n===Q.UP||r&&n===Q.FLOOR||!r&&n===Q.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case Q.HALF_DOWN:return!1;case Q.HALF_UP:return!0;case Q.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function St(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let r=e.length-1,n="";for(let a=r;a>=0;a--){let o=parseInt(e[a])+t;o==10?(t=1,o=0):t=0,n+=o}return t&&(n+=t),n.split("").reverse().join("")}function $t(e,t){e=e.toString(),t=t.toString();let r=0;e[0]=="-"&&(r++,e=e.substr(1)),t[0]=="-"&&(r++,t=t.substr(1)),e=ze(e),t=ze(t);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let o=n+a;if(e=ze(e.replace(".","")),t=ze(t.replace(".","")),e.length<t.length){let g=e;e=t,t=g}if(t=="0")return"0";let i=t.length,u=0,s=[],d=i-1,c="";for(let g=0;g<i;g++)s[g]=e.length-1;for(let g=0;g<2*e.length;g++){let x=0;for(let A=t.length-1;A>=d&&A>=0;A--)s[A]>-1&&s[A]<e.length&&(x+=parseInt(e[s[A]--])*parseInt(t[A]));x+=u,u=Math.floor(x/10),c=x%10+c,d--}return c=ze(_r(c,o)),r==1&&(c="-"+c),c}function _r(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function ze(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 vt(e,t,r=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=le(t.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=le(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=le(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let c=e.length-d+a;e=le(e.substring(0,c)+"."+e.substring(c))}else a==d&&(e=le(e.replace(".","")))}let o=0,i=t.length,u="",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")),o=d,u="0."+new Array(d).join("0")}for(r=r+2;o<=r;){let d=0;for(;parseInt(s)>=parseInt(t);)s=Qe(s,"-"+t),d++;u+=d,e?(e[0]=="."&&(u+=".",o++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(o||(u+="."),o++,s=s+"0")}return(n==1?"-":"")+le(Ke(u,r-2))}function Et(e,t){return e=e.toString(),t=t.toString(),t=xt(t),Qe(e,t)}function xt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function sn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),un(e),un(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Et(e,$t(t,Ke(vt(e,t),0,Q.FLOOR)));return r+n}function un(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function cn(e,t){let r=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),r=!0),[e,t]=wt(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?r?-1:1:r?1:-1;return 0}class H{value;static RoundingModes=Q;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[r,n]=t.split(/[eE]/);r=le(r);let a="";r[0]=="-"&&(a="-",r=r.substring(1)),r.indexOf(".")>=0?(n=parseInt(n)+r.indexOf("."),r=r.replace(".","")):n=parseInt(n)+r.length,r.length<n?t=a+r+new Array(n-r.length+1).join("0"):r.length>=n&&n>0?t=a+le(r.substring(0,n))+(r.length>n?"."+r.substring(n):""):t=a+"0."+new Array(-n+1).join("0")+r}return t}constructor(t="0"){this.value=H.validate(t)}getValue(){return this.value}static getPrettyValue(t,r,n){if(!(r||n))r=3,n=",";else if(!(r&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=H.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var i="",u=o;u>0;)u<r?(r=u,u=0):u-=r,i=t.substring(u,u+r)+(u<o-r&&u>=0?n:"")+i;return(a?"-":"")+i+t.substring(o)}getPrettyValue(t,r){return H.getPrettyValue(this.value,t,r)}static round(t,r=0,n=Q.HALF_EVEN){if(t=H.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return Ke(t,r,n)}round(t=0,r=Q.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new H(Ke(this.value,t,r))}static floor(t){return t=H.validate(t),t.indexOf(".")===-1?t:H.round(t,0,Q.FLOOR)}floor(){return this.value.indexOf(".")===-1?new H(this.value):new H(this.value).round(0,Q.FLOOR)}static ceil(t){return t=H.validate(t),t.indexOf(".")===-1?t:H.round(t,0,Q.CEILING)}ceil(){return this.value.indexOf(".")===-1?new H(this.value):new H(this.value).round(0,Q.CEILING)}static add(t,r){return t=H.validate(t),r=H.validate(r),Qe(t,r)}add(t){return new H(Qe(this.value,t.getValue()))}static subtract(t,r){return t=H.validate(t),r=H.validate(r),Et(t,r)}subtract(t){return new H(Et(this.value,t.getValue()))}static multiply(t,r){return t=H.validate(t),r=H.validate(r),$t(t,r)}multiply(t){return new H($t(this.value,t.getValue()))}static divide(t,r,n){return t=H.validate(t),r=H.validate(r),vt(t,r,n)}divide(t,r){return new H(vt(this.value,t.getValue(),r))}static modulus(t,r){return t=H.validate(t),r=H.validate(r),sn(t,r)}modulus(t){return new H(sn(this.value,t.getValue()))}static compareTo(t,r){return t=H.validate(t),r=H.validate(r),cn(t,r)}compareTo(t){return cn(this.value,t.getValue())}static negate(t){return t=H.validate(t),xt(t)}negate(){return new H(xt(this.value))}}function fn(e,t){return H.multiply(`${e}`,`${t}`)}function Ct(e,t,r=8){return H.divide(`${e}`,`${t}`,r)}function Ot(e,t){return e=`${e}`,t=`${t}`,H.compareTo(e,t)}function dn(e){return H.negate(e)}function Tt(e,t=-1,r=!1,n=3,a=","){let o=`${e}`;if(o.length==0||o==="-")return"";let i=o.charAt(0);i=="-"?o=o.substring(1):i="";let u=o,s="",d=o.indexOf(".");d!=-1&&(u=o.substring(0,d),s=o.substring(d+1)),t!=-1&&(t<s.length?s=s.substring(0,t):r&&t>s.length&&(s=s.padEnd(t,"0")));let c;if(n>0){let g="",x=u.split("").reverse();for(let A=0;A<x.length;A++)g+=x[A]+((A+1)%n==0&&A+1!=x.length?a:"");s.length==0?c=`${i}${g.split("").reverse().join("")}`:c=`${i}${g.split("").reverse().join("")}.${s}`}else s.length==0?c=`${i}${u}`:c=`${i}${u}.${s}`;return c}function hn(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let n=t.replace(/[^\d\.-]/g,"");return`${r}${n}`}const Hr=Array.isArray,Kr=e=>et(e)==="[object Map]",zr=e=>et(e)==="[object Set]",Gr=e=>e instanceof Date,Vt=e=>typeof e=="function",Yr=e=>typeof e=="string",Wr=e=>typeof e=="symbol",Se=e=>e!==null&&typeof e=="object",Ur=e=>Se(e)&&Vt(e.then)&&Vt(e.catch),gn=Object.prototype.toString,et=e=>gn.call(e),It=e=>et(e)==="[object Object]",mn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Xr(e){return e.__esModule||mn&&e[Symbol.toStringTag]==="Module"}const Zr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ie(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},r=1,n=e.length,a=!1;for(typeof t=="boolean"&&(a=t,t=e[r]??{},r++),typeof t!="object"&&(t={});r<n;r++)if(e[r]!==null&&e[r]!==void 0){let o=e[r];for(let i in o){let u=t[i],s=o[i];if(u!==s)if(a===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},t[i]=Ie(a,d,s)}else s!==void 0&&(t[i]=s)}}return t}function Nt(e,t,r=!1){if(!r)Ie(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let a in t){let o=e[a],i=t[a];if(o!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!It(i))continue;o=Nt(o,i,r),e[a]=o}else{if(typeof i=="function")continue;e[a]=i}}const n=Object.getOwnPropertySymbols(t);for(let a of n){let o=e[a],i=t[a];if(o!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!It(i))continue;o=Nt(o,i,r),e[a]=o}else{if(typeof i=="function")continue;e[a]=i}}}return e}const At=Zr?Promise.resolve():null;function Jr(e,...t){At!==null?t&&t.length>0?At.then(()=>{e(t)}):At.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function re(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":Boolean(e)}function Z(e){return typeof e=="number"?e:Number(e)}const Qr={"[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 tt(e){let r=Object.prototype.toString.call(e);return e==null?String(e):Qr[r]||"object"}function yn(e){return e&&typeof e=="object"&&"setInterval"in e}function pn(e){let t=!!e&&"length"in e&&e.length,r=tt(e);return r==="function"||yn(e)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function bn(e,t){let r=+t.length,n=0,a=e.length;for(;n<r;n++)e[a++]=t[n];return e.length=a,e}function ea(e,t=[]){let r=t;return e!=null&&(pn(Object(e))?bn(r,typeof e=="string"?[e]:e):r.push(e)),r}function Ne(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let r=tt(e),n=tt(t);if(r!==n)return!1;if(r==="object"){let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(let i=0;i<a.length;i++){let u=a[i],s=e[u],d=t[u];if(!Ne(s,d))return!1}return!0}else if(r==="array"){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){let o=e[a],i=t[a];if(!Ne(o,i))return!1}return!0}return!1}const Ge=typeof window<"u",ta=Ge&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function wn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ee=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Sn(e){return ee(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ee(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function $n(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const r=t.indexOf(".");return r==-1?t.length:r}function vn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const r=t.indexOf(".");return r==-1?0:t.length-(r+1)}function En(e,t,r){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(r,"")}function na(e,t=!0,r=!0){t?e=En(e,".",/\./g):e=e.replace(/\./g,""),r?e=En(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ra(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(Ne(e,r))return!0}):t.indexOf(e)}function aa(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(Ne(e,n))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function Ye(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function la(e,...t){const r={};return t.forEach(n=>{for(const a in n)r[a]=e[a]}),r}function ue(e,...t){const r=[];t.forEach(a=>{Reflect.apply([].push,r,Reflect.ownKeys(a))});const n={};for(const a in e)r.includes(a)||(n[a]=e[a]);return n}const oa=(e,t,r)=>{const n=Object.assign({},e),a=Object.assign({},r);return Object.keys(t).length>0?(Object.keys(n).forEach(o=>{a.hasOwnProperty(o)?typeof a[o]=="string"&&(n[o]=t[a[o]]):t[o]&&(n[o]=t[o])}),n):e},ne=Symbol("BroadcastKey");class Rt{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,r,n){this.parent=t,this.proxy=r,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const r=this.children.findIndex(n=>t===n);r!==-1&&this.children.splice(r,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,r,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):wn(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const o=[];if(a){const i=this.callbacks.get(r);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...n]);s!=null&&o.push(s)}const u=this.proxy??{};if(typeof u[r]=="function"){const s=Reflect.apply(u[r],u,[...n]);s!=null&&o.push(s)}}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...t},r,...n]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,o,[...u])}),o}emitToChildren(t,r,...n){const a=[];return this.children.forEach(o=>{const i=Reflect.apply(o.emit,o,[{...t},r,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}on(t,r){this.callbacks.set(t,r)}}function nt(e,t,r,n){const a=new Rt(t,e,r);if(n&&typeof n=="object")for(const o in n)a.on(o,n[o]);return a}function ia(e,t,r){const n=r;if(n[ne])return n[ne];const a=l.inject(ne,null),o=new Rt(a,r,e);if(t&&typeof t=="object")for(const i in t)o.on(i,t[i]);return n[ne]=o,l.provide(ne,o),l.onUnmounted(()=>{o.destroy(),n[ne]=void 0}),o}function We(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ne]??l.inject(ne,null):l.inject(ne,null)}class sa{error(t,r){const n=r,a=We(r);a?a.emit({name:"*"},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const r=t,n=We(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t){const r=t,n=We(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,r,n){Array.isArray(t)||(t=[t]);const a=n,o=We(n),i=r.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=t.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?o?o.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):i&&!u&&(o?o.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let xn=new sa;function ua(e){xn=e}function ca(e,t){Ve.setValidator(e,t)}function fa(e){Ve.deleteValidator(e)}let Cn=["blur","clear"];function da(e){Cn=e}function On(){return Cn}let Tn=["focus","change"];function ha(e){Tn=e}function Vn(){return Tn}function ga(e){Ve.messages(e)}function Ue(...e){const t=[];return e.forEach(r=>{r.forEach(n=>{const a=t.findIndex(o=>o.type===n.type);a!==-1&&t.splice(a,1),t.push(n)})}),t}function rt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const be=Symbol("ValidateSchemaKey");class In{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,r,n){this.parent=t,this.descriptor=r,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(),this.scope.run(()=>{l.watchEffect(()=>{const r=rt(Ue(this.attrRules,this.rules)),n=[];for(let o in t){let i=t[o];if(this.hasValidator(o,!0)){if(i===!1)continue;let s={type:o};i!==null&&typeof i=="object"&&Object.assign(s,i),n.push(s);continue}let u=this.getValidator(o);if(u!==null){let s={type:o,validator:u};n.push(s)}}this.attrRules=rt(n);const a=Ue(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(a,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...r){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...r]);const a=xn;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...r]):null}decorate(t,r){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,r,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,r,n=!1){n?Ve.setValidator(t,r):this.validators[t]=r}getValidator(t){let r=this.validators[t]??null;return r||(r=this.parent?.getValidator(t)??null),r}deleteValidator(t,r=!1){r?Ve.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)return Ve.hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const r=Ue(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=rt(t):this.rules=rt([t]);const n=Ue(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,r)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let r=Ue(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(r.length>0){const a={[`${n}`]:r},o=this.getValue(),i={[`${n}`]:o},u=new Ve(a),s=this.proxy??i;return u.validate(i,{context:s}).then(c=>{if(c.pass)this.success();else{let g="error";Array.isArray(c.errors)&&c.errors.length>0&&(g=c.errors[0].message??g,c.errors=[c.errors[0]],c.errors[0].ref=s),this.error(g)}return c}).catch(c=>{const g=c.message??`${c}`;return this.error(g),c})}}return Promise.resolve({pass:!0})}}function at(e,t,r){if(r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string",!r.validateHandler&&r.valueName!=="modelValue"){const a=r.valueName;r.validateHandler={getValue(o){return o[a]}}}return new In(t,r,e)}const Nn=Symbol("EventEmitterKey");class ma{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,r){let n=this.register.get(t);if(n&&Array.isArray(n)){let a=n.findIndex(o=>o===r);a!==-1&&n.splice(a,1)}}on(t,r){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(r)}emit(t,...r){const n=this.register.get(t);n&&n.forEach(a=>{try{Reflect.apply(a,null,[t,...r])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...r])}}function ya(e,t){let r=0;return function(...n){const a=Date.now();a-r>t&&(Reflect.apply(e,{},[...n]),r=a)}}function kt(e,t){let r,n=null;return function(...a){n=a,r||(r=setTimeout(()=>{r=null,Reflect.apply(e,{},[...n??[]])},t))}}const $e=Symbol("DomainKey"),Me=Symbol("DataItemsKey");class jt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,r=[]){for(const n in t){const a=t[n];r.length>0&&r.indexOf(a)!==-1||(this._props[n]=a)}}has(t){if(Reflect.has(this._props,t)){const r=this._props[t];if(r!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,r){this._props[t]=r}get(t,r){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?r:this.parent.get(t,r)}getForParent(t,r){return this.parent==null?r:this.parent.get(t,r)}getForSelf(t){return this._props[t]}getAll(t){const r=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const a=n._props[t];r.push(a)}n=n._parent}return r}}const pa=new jt;function Xe(){return pa}function ve(e=null){e||(e=l.getCurrentInstance());const t=e?.proxy;return t?t[$e]??l.inject($e,null):l.inject($e,null)}const Mt=Symbol("OriginalDateKey");function Dt(e,t,r=[],n){const a=l.getCurrentInstance(),o=a?.proxy;let i=l.inject($e,null);i===null&&(i=Xe());const u=e||t.prop||t.name,s=new jt(u);s.parent=i;const d=$=>{o[Mt]||x($),s.set("modelValue",$)},c=()=>s.getForSelf("modelValue")??null,g=()=>o[Mt]??null,x=$=>{const R={};Ie(!0,R,l.toRaw($)),o[Mt]=R};l.isReactive(t)?l.watchEffect(()=>{s.merge(t,r)}):s.merge(t,r),t.modelValue&&x(t.modelValue),o[$e]=s,l.provide($e,s);let A=null,V=null;if(a!==null){const $=l.inject(ne,null);A=nt(o,$,u,n),s.broadcast=A,o[ne]=A,l.provide(ne,A),o.broadcast=(S,D,...k)=>Reflect.apply(A.emit,A,[S,D,...k]);const R=l.inject(be,null);V=at(o,R,{componentName:""}),s.validateSchema=V,o[be]=V,l.provide(be,V),o[Me]=new Map,o.validate=(S=!0)=>{const D=[];let k=null;if(S===!0)k={name:"*"};else if(Array.isArray(S)&&S.length>0){const I=S;k={name:M=>M?I.indexOf(M)!==-1:!1}}else if(S!=null&&typeof S=="object"){const I=S;if(Array.isArray(I.include)&&I.include.length>0){const M=I.include;k={name:y=>y?M.indexOf(y)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const M=I.exclude;k={name:y=>y?M.indexOf(y)===-1:!1}}else k={name:"*"}}if(k){const I=A?.emitToChildren(k,"validate",!1);I&&Reflect.apply([].push,D,I)}return D.length==1?D[0]:D.length>1?Promise.all(D).then(I=>{let M=[];return I.forEach(y=>{y.pass===!1&&Array.isArray(y.errors)&&(M=[...M,...y.errors])}),M.length>0?{pass:!1,errors:M}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(S,D=!0)=>{if(D){const k=Reflect.ownKeys(S),I=[...k],M={name:y=>{const m=k.includes(y);if(m){const b=I.findIndex(C=>y===C);b!==-1&&I.splice(b,1)}return m}};A?.emitToChildren(M,"setNameValidateRules",S,!1),I.length>0&&I.forEach(y=>{let m=String(y);const C=An(s,m,{componentName:"",fieldName:m,pureDataValidate:!0},A,V);o[Me].set(m,C);const w=S[m];w&&C.validateSchema.setRule(w)})}},o.clearValidate=(S=!0)=>{let D=null;if(S===!0)D={name:"*"};else if(Array.isArray(S)&&S.length>0){const k=S;D={name:I=>I?k.indexOf(I)!==-1:!1}}else if(S!=null&&typeof S=="object"){const k=S;if(Array.isArray(k.include)&&k.include.length>0){const I=k.include;D={name:M=>M?I.indexOf(M)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const I=k.exclude;D={name:M=>M?I.indexOf(M)===-1:!1}}else D={name:"*"}}D&&A?.emitToChildren(D,"clearValidate",!1)},o.resetFields=S=>{const D=c();if(!D)return;const k={};if(Ie(!0,k,g()??{}),Array.isArray(S))S.forEach(I=>{D[I]=k[I]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(M=>{D[M]=k[M]});else if(S&&Array.isArray(S.exclude)){let I=S.exclude??[];Reflect.ownKeys(k).forEach(M=>{I.includes(M)||(D[M]=k[M])})}else Object.assign(D,k);o.clearValidate(S)},o.setModelValue=(S,D)=>{!D||D===u?d(S):A?.emitToChildren({name:D},"setModelValue",S)},o.getModelValue=()=>c()}return l.onUnmounted(()=>{s.destroy(),o[$e]=void 0,o[Me]&&(o[Me].clear(),o[Me]=void 0),A!==null&&(A.destroy(),o[ne]=void 0),V!==null&&(V.destroy(),o[be]=void 0)}),s}function oe(e,t,r){const a=l.getCurrentInstance()?.proxy,o=t??"",i=l.inject(ne,null),u=nt(a,i,o,r);a[ne]=u,l.provide(ne,u),a.broadcast=(V,$,...R)=>Reflect.apply(u.emit,u,[V,$,...R]);const s=l.inject(be,null);e.fieldName=e.fieldName??o;const d=at(a,s,e);a[be]=d,l.provide(be,d),a.validate=(V=null)=>{const $=[];if(!Array.isArray(V)||V.indexOf(o)!==-1){const S=d?.validate();$.push(S)}let R=null;if(V===!0)R={name:"*"};else if(Array.isArray(V)&&V.length>0){const S=V;R={name:D=>D?S.indexOf(D)!==-1:!1}}else if(V!=null&&typeof V=="object"){const S=V;if(Array.isArray(S.include)&&S.include.length>0){const D=S.include;R={name:k=>k?D.indexOf(k)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const D=S.exclude;R={name:k=>k?D.indexOf(k)===-1:!1}}else R={name:"*"}}if(R){const S=u.emitToChildren(R,"validate",!1);Reflect.apply([].push,$,S)}return $.length==1?$[0]:$.length>1?Promise.all($).then(S=>{let D=[];return S.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(D=[...D,...k.errors])}),D.length>0?{pass:!1,errors:D}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=V=>d?.setRule(V),a.setNameValidateRules=(V,$=!1)=>{const R=V[o];if(R&&d?.setRule(R),$){const S={name:D=>Reflect.ownKeys(V).includes(D)};u.emitToChildren(S,"setNameValidateRules",V,!1)}},a.clearValidate=(V=null)=>{(!Array.isArray(V)||V.indexOf(t??"")!==-1)&&d?.clear();let $=null;if(V===!0)$={name:"*"};else if(Array.isArray(V)&&V.length>0){const R=V;$={name:S=>S?R.indexOf(S)!==-1:!1}}else if(V!=null&&typeof V=="object"){const R=V;if(Array.isArray(R.include)&&R.include.length>0){const S=R.include;$={name:D=>D?S.indexOf(D)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const S=R.exclude;$={name:D=>D?S.indexOf(D)===-1:!1}}else $={name:"*"}}$&&u.emitToChildren($,"clearValidate",!1)};const c=new ma(a);a[Nn]=c;const g=kt((V="validate")=>{V==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:On()).forEach(V=>{c.on(V,$=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Vn()).forEach(V=>{c.on(V,$=>{g("reset")})}),l.onUnmounted(()=>{u.destroy(),a[ne]=void 0,d.destroy(),a[be]=void 0,c.destroy(),a[Nn]=void 0}),{broadcast:u,validateSchema:d,emitEvent:(V,...$)=>{Reflect.apply(c.emit,c,[V,...$])},onEvent:(V,$)=>{Reflect.apply(c.on,c,[$])},offEvent:(V,$)=>{Reflect.apply(c.off,c,[$])}}}function An(e,t,r,n,a){const o={},i=t??"";r.fieldName=i,r.validateHandler={getValue(d){const c=e.getForSelf("modelValue");return c?c[i]:null}};const u=at({},a,r);o.validate=(d=null)=>{const c=[];if(!Array.isArray(d)||d.indexOf(i)!==-1){const x=u?.validate();c.push(x)}let g=null;if(d===!0)g={name:"*"};else if(Array.isArray(d)&&d.length>0){const x=d;g={name:A=>A?x.indexOf(A)!==-1:!1}}else if(d!=null&&typeof d=="object"){const x=d;if(Array.isArray(x.include)&&x.include.length>0){const A=x.include;g={name:V=>V?A.indexOf(V)!==-1:!1}}else if(Array.isArray(x.exclude)&&x.exclude.length>0){const A=x.exclude;g={name:V=>V?A.indexOf(V)===-1:!1}}else g={name:"*"}}if(g){const x=s.emitToChildren(g,"validate",!1);Reflect.apply([].push,c,x)}return c.length==1?c[0]:c.length>1?Promise.all(c).then(x=>{let A=[];return x.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(A=[...A,...V.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=d=>u?.setRule(d),o.setNameValidateRules=d=>{const c=d[i];c&&u?.setRule(c)};const s=nt(null,n,i,o);return{broadcast:s,validateSchema:u}}const K=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${U(e,t)}px`:"";function U(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let a=Number(e.substring(0,r)),o=1;if(Ge){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(o=Number(i.substring(0,u)))}return a*=o,a}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))/100*t;const n=Number(e);return isNaN(n)?0:n}const Ee="PageStateKey";function pe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=U(e.top)),e.left!==null&&e.left!==void 0&&(t.left=U(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=U(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=U(e.right))),t}function qt(e,t,r={},n=!0,a=-1,o=-1,i=0,u=0){if(e.headerHeight=U(r.headerHeight??t.headerHeight),e.headerPadding=pe(r.headerPadding??t.headerPadding),e.footerHeight=U(r.footerHeight??t.footerHeight),e.footerPadding=pe(r.footerPadding??t.footerPadding),e.contentPadding=pe(r.contentPadding??t.contentPadding),n){const s=r.height??t.height;s?e.height=U(s,o):e.height=U(o)-U(i,o)-U(u,o),e.width=U(r.width??t.width,a)}}function Rn(e,t={}){const r={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(n.safeAreaTop=U(a.top),n.safeAreaBottom=U(a.bottom),n.safeAreaLeft=U(a.left),n.safeAreaRight=U(a.right));const o=e.get("pageLayout");if(!o)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;qt(n,o,t,!0,i,u,s,d);const c=l.reactive(n),g=e.getForParent(Ee);g&&(n.height=st(e,g),n.width=ut(e,g),l.watch([()=>g.height,()=>g.width,()=>g.contentPadding,()=>g.headerMounted,()=>g.footerMounted],()=>{c.height=st(e,g),c.width=ut(e,g)}));const x=!g;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([A,V,$=-1,R=-1,S=0,D=0])=>{qt(c,V,t,x,$,R,S,D)}),e.set(Ee,c),c}function lt(e){return e.get(Ee)}function ot(e,t){return t=t??e.get(Ee),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function it(e,t){return t=t??e.get(Ee),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function st(e,t){if(t=t??e.get(Ee),t){const r=ot(e,t),n=it(e,t);return t.height-r-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function ut(e,t){return t=t??e.get(Ee),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function ba(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function wa(e){return!!e.getForParent(Ee)}var ct=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ct||{});function Bt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function De(e,t,r=1,n){const a=ve();return a==null?e:r===0?l.computed(()=>{const o=a.getAll(t);for(let u=o.length-1;u>=0;u--){const s=o[u];if(Bt(s,n))return s}const i=e.value;return Bt(i,n)?i:null}):l.computed(()=>{const o=e.value;return Bt(o,n)?o:a?.get(t)})}function de(e){return De(e,"readonly",0,function(r){return re(r)})}function he(e){return De(e,"disabled",0,function(r){return re(r)})}function W(e,t="modelValue",r){const n=l.toRef(e,t);let a=n.value;typeof r=="function"&&(a=r(n.value));const o=l.ref(a);return l.watch(n,i=>{if(typeof r=="function"){const u=r(i);u!==o.value&&(o.value=u)}else i!==o.value&&(o.value=i)}),o}const kn=new Map,ft=new Map;let Ft=null;function Sa(e){Ft=e}function jn(e,t,r){if(r){let n=ft.get(r);n||(n=new Map,ft.set(r,n)),n.set(e,t)}else kn.set(e,t)}function Ae(e,t,r){!r&&Ft&&(r=Ft(e)??void 0);let n=null;if(r){let a=ft.get(r);a&&(n=a.get(t))}return n||(n=kn.get(t)),n}function $a(e,t){for(let r in e){const n=e[r];jn(r,n,t)}}function va(e){ft.delete(e)}function Ea(){return{top:0,left:0,bottom:0,right:0}}function xa(e=0,t=0){if(Ge){const r=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:r,height:n-U(e,n)-U(t,n),headerHeight:44,footerHeight:44};return{rootWidth:r,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Ca{packages;installers;_version;get version(){return this._version}constructor(t,r,n){this.packages=t,this.installers=r,this._version=n}install(t,r={}){this.packages.forEach(o=>{o.install?t.use(o):o.name&&t.component(o.name,o)}),this.installers.forEach(o=>{o(t)});const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=Xe();if(this.initPageLayout(r,a),r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=kt(()=>{const u={...r},s=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=d,this.initPageLayout(u,a)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in r)n.indexOf(o)===-1&&a.set(o,r[o])}initPageLayout(t,r){const n=t.headerBarHeight??0,a=t.footerBarHeight??0,o=Ie({},Ea(),t.safeAreaInset),i=xa(n,a),u=Ie({},i.pageLayout,t.pageLayout);r=r??Xe(),r.set("safeAreaInset",o),r.set("headerBarHeight",n),r.set("footerBarHeight",a),r.set("pageLayout",u),r.set("rootWidth",i.rootWidth),r.set("rootHeight",i.rootHeight)}setScopeGetter(t){Sa(t)}setAPI(t,r,n){jn(t,r,n)}getAPI(t,r,n){return Ae(t,r,n)}batchSetAPI(t,r){$a(t,r)}clearScopeAPI(t){va(t)}getRootDomain(){return Xe()}}const Oa=[h.ElAffix,h.ElAlert,h.ElAutocomplete,h.ElAutoResizer,h.ElAvatar,h.ElBacktop,h.ElBadge,h.ElBreadcrumb,h.ElBreadcrumbItem,h.ElButton,h.ElButtonGroup,h.ElCalendar,h.ElCard,h.ElCarousel,h.ElCarouselItem,h.ElCascader,h.ElCascaderPanel,h.ElCheckTag,h.ElCheckbox,h.ElCheckboxButton,h.ElCheckboxGroup,h.ElCol,h.ElCollapse,h.ElCollapseItem,h.ElCollapseTransition,h.ElColorPicker,h.ElConfigProvider,h.ElContainer,h.ElAside,h.ElFooter,h.ElHeader,h.ElMain,h.ElDatePicker,h.ElDescriptions,h.ElDescriptionsItem,h.ElDialog,h.ElDivider,h.ElDrawer,h.ElDropdown,h.ElDropdownItem,h.ElDropdownMenu,h.ElEmpty,h.ElForm,h.ElFormItem,h.ElIcon,h.ElImage,h.ElImageViewer,h.ElInput,h.ElInputNumber,h.ElLink,h.ElMenu,h.ElSubMenu,h.ElMenuItem,h.ElMenuItemGroup,h.ElPageHeader,h.ElPagination,h.ElPopconfirm,h.ElPopover,h.ElPopper,h.ElProgress,h.ElRadio,h.ElRadioButton,h.ElRadioGroup,h.ElRate,h.ElResult,h.ElRow,h.ElScrollbar,h.ElSelect,h.ElOption,h.ElOptionGroup,h.ElSelectV2,h.ElSkeleton,h.ElSkeletonItem,h.ElSlider,h.ElSpace,h.ElSteps,h.ElStep,h.ElSwitch,h.ElTable,h.ElTableColumn,h.ElTableV2,h.ElTabs,h.ElTabPane,h.ElTag,h.ElTimePicker,h.ElTimeSelect,h.ElTimeline,h.ElTimelineItem,h.ElTooltip,h.ElTransfer,h.ElTree,h.ElTreeSelect,h.ElTreeV2,h.ElUpload],Ta=[h.ElInfiniteScroll,h.ElLoading,h.ElMessage,h.ElMessageBox,h.ElNotification,h.ElPopoverDirective],Va=e=>{Oa.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),Ta.forEach(t=>{e.use(t)})};function Y(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=t,r.install=n=>{n.component(r.name,r)},l.defineComponent(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,l.defineComponent(r)}}}const ae={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},ce={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],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},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,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},hasBorder:{type:Boolean,default:!0}},Mn={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},Dn={name:{type:String,required:!1},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"flex"},title:{type:String,default:""},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:!0},markColor:{type:[String],required:!1}},qn=[];for(const e in Dn)qn.push(e);function fe(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const Ia=Symbol.for("InnerPageScopeKey"),Na=(e,t)=>({inheritAttrs:!0,props:{...ae,...Mn,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}},setup(r,n){const a=Dt(r.name,r);if(a){const d=Rn(a,r);fe({getPageContentHeight:()=>st(a,d),getPageContentWidth:()=>ut(a,d),getPageHeaderHeight:()=>ot(a,d),getPageFooterHeight:()=>it(a,d)});const c=l.inject(Ia,!1);d&&c&&(d.contentHeight="100%")}const o=l.computed(()=>({[e]:!0})),i=l.computed(()=>({})),u=l.getCurrentInstance(),s=d=>{const c=u?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(d,!0)};return l.watch(()=>r.rules,(d,c)=>{if(!d&&!c)return;const g=l.toRaw(c),x=l.toRaw(d),A=x?Reflect.ownKeys(x):[];(g?Reflect.ownKeys(g):[]).forEach($=>{A.includes($)||(x[$]=[])}),s(x)},{deep:!0}),l.onMounted(()=>{if(r.rules){const d=l.toRaw(r.rules);s(d)}}),{classes:o,styles:i}}}),{componentName:Aa,create:Ra,scope:qi}=Y("page"),ka=Ra(Na(Aa));function ja(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Re=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},Bn=Re(ka,[["render",ja]]),Ma=(e,t)=>({props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!1},leftIcon:{type:[String,Object],required:!1,default:"left"},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[String,Object],required:!1,default:""},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[String,Object],required:!1,default:""},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,n){const a=ve(),o=a?lt(a):null;o&&(o.headerMounted=!0);const i=l.computed(()=>({[e]:!0})),u=r.height!==null&&r.height!==void 0?U(r.height):null,s=l.computed(()=>{const m={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&o){const b=pe(r.padding??o.footerPadding);return Object.assign(m,b),u&&(o.headerHeight=u),m.height=o.headerHeight,m.safeAreaTop=o.safeAreaTop,m.safeAreaTop&&(m.top=m.safeAreaTop+(b.top??0),m.height=m.height+o.safeAreaTop),m.height,m.safeAreaTop,m}if(u&&(m.height=u),r.padding){const b=pe(r.padding);Object.assign(m,b)}return m});l.onUnmounted(()=>{o&&(o.headerMounted=!1)});const d=l.computed(()=>{const m={};return s.value.height!==null&&s.value.height!==void 0&&(m.height=`${s.value.height}px`),s.value.top!==null&&s.value.top!==void 0&&(m.paddingTop=`${s.value.top}px`),s.value.left!==null&&s.value.left!==void 0&&(m.paddingLeft=`${s.value.left}px`),s.value.right!==null&&s.value.right!==void 0&&(m.paddingRight=`${s.value.right}px`),s.value.bottom!==null&&s.value.bottom!==void 0&&(m.paddingBottom=`${s.value.bottom}px`),m}),c=l.computed(()=>{const m={};return s.value.safeAreaTop!==null&&s.value.safeAreaTop!==void 0&&(m.top=`${s.value.safeAreaTop}px`),m}),g=l.computed(()=>{const m={};return s.value.safeAreaTop!==null&&s.value.safeAreaTop!==void 0&&(m.top=`${s.value.safeAreaTop}px`),m}),x=l.computed(()=>r.leftShow?r.leftIcon||r.leftText||n.slots.left:!1),A=l.computed(()=>!(s.value.height!==null&&s.value.height!==void 0&&s.value.height<=0)),V=l.computed(()=>r.titleShow?r.title||r.titleIcon||n.slots.default:!1),$=l.computed(()=>r.rightShow?r.rightIcon||r.rightText||n.slots.right:!1),R=l.computed(()=>{let m={};return typeof r.leftIcon=="object"?Object.assign(m,r.leftIcon):m.name=r.leftIcon,m}),S=l.computed(()=>{let m={};return typeof r.titleIcon=="object"?Object.assign(m,r.titleIcon):m.name=r.titleIcon,m}),D=l.computed(()=>{let m={};return typeof r.rightIcon=="object"?Object.assign(m,r.rightIcon):m.name=r.rightIcon,m});function k(){n.emit("back")}function I(){n.emit("click-title")}function M(){n.emit("click-right")}function y(){n.emit("click-right-text")}return{classes:i,styles:d,mHeaderShow:A,leftStyles:c,rightStyles:g,mLeftShow:x,mTitleShow:V,mRightShow:$,mLeftIcon:R,mTitleIcon:S,mRightIcon:D,handleLeft:k,handleCenter:I,handleRight:M,handleRightText:y}}}),{componentName:Da,create:qa,scope:Bi}=Y("header-bar"),Ba=qa(Ma(Da)),Fa={key:1,class:"fox-header-bar__title"};function La(e,t,r,n,a,o){const i=l.resolveComponent("fox-ext-icon");return e.mHeaderShow?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(l.openBlock(),l.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:l.normalizeStyle(e.leftStyles)},[l.renderSlot(e.$slots,"left",{},()=>[e.leftIcon?(l.openBlock(),l.createBlock(i,{key:0,color:e.mLeftIcon.color,name:e.mLeftIcon.name,onClick:e.handleLeft},null,8,["color","name","onClick"])):l.createCommentVNode("",!0),e.leftText?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.handleLeft&&e.handleLeft(...u))},l.toDisplayString(e.leftText),1)):l.createCommentVNode("",!0)])],4)):l.createCommentVNode("",!0),e.mTitleShow?(l.openBlock(),l.createElementBlock("view",Fa,[l.renderSlot(e.$slots,"default",{},()=>[e.title?(l.openBlock(),l.createElementBlock("view",{key:0,class:"text-title",onClick:t[1]||(t[1]=(...u)=>e.handleTitle&&e.handleTitle(...u))},l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),e.titleIcon?(l.openBlock(),l.createBlock(i,{key:1,class:"icon-title",color:e.mTitleIcon.color,name:e.mTitleIcon.name,onClick:e.handleCenter},null,8,["color","name","onClick"])):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0),e.mRightShow?(l.openBlock(),l.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:l.normalizeStyle(e.rightStyles)},[l.renderSlot(e.$slots,"right",{},()=>[e.rightText?(l.openBlock(),l.createElementBlock("view",{key:0,onClick:t[2]||(t[2]=(...u)=>e.handleRightText&&e.handleRightText(...u))},l.toDisplayString(e.rightText),1)):l.createCommentVNode("",!0),e.rightIcon?(l.openBlock(),l.createBlock(i,{key:1,class:"right-icon",color:e.mRightIcon.color,name:e.mRightIcon.name,onClick:e.handleRight},null,8,["color","name","onClick"])):l.createCommentVNode("",!0)])],4)):l.createCommentVNode("",!0)])],6)):l.createCommentVNode("",!0)}const Fn=Re(Ba,[["render",La]]);function Pa(e,t){return{props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(r,n){const a=ve(),o=a?lt(a):null;o&&(o.footerMounted=!0);const i=l.computed(()=>{const c=e;let g=e;return r.align==="left"?g=`${g}__left`:r.align==="right"?g=`${g}__right`:g=`${g}__center`,{[c]:!0,[g]:!0}}),u=r.height!==null&&r.height!==void 0?U(r.height):null,s=l.computed(()=>{const c={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&o){const g=pe(r.padding??o.footerPadding);return Object.assign(c,g),u&&(o.footerHeight=u),c.height=o.footerHeight,c.safeAreaBottom=o.safeAreaBottom,c.safeAreaBottom&&(c.height=c.height+o.safeAreaBottom,c.bottom=c.safeAreaBottom+(g.bottom??0)),c}if(u&&(c.height=u),r.padding){const g=pe(r.padding);Object.assign(c,g)}return c});l.onUnmounted(()=>{o&&(o.footerMounted=!1)});const d=l.computed(()=>{const c={};return s.value.height!==null&&s.value.height!==void 0&&(c.height=K(s.value.height)),s.value.top!==null&&s.value.top!==void 0&&(c.paddingTop=K(s.value.top)),s.value.left!==null&&s.value.left!==void 0&&(c.paddingLeft=K(s.value.left)),s.value.right!==null&&s.value.right!==void 0&&(c.paddingRight=K(s.value.right)),s.value.bottom!==null&&s.value.bottom!==void 0&&(c.paddingBottom=K(s.value.bottom)),c});return{classes:i,styles:d}}}}const{componentName:_a,create:Ha,scope:Fi}=Y("footer-bar"),Ka=Ha(Pa(_a));function za(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Ln=Re(Ka,[["render",za]]);function Ga(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=ve(),a=l.computed(()=>({[e]:!0})),o=l.computed(()=>{const i={};if(n){const u=lt(n);if(u){if(r.padding){const g=pe(r.padding);Object.assign(u.contentPadding,g)}const s=ot(n,u),d=it(n,u);let c="";if(u.contentHeight?c=`${u.contentHeight}`:c=`${u.height}px`,u.contentPadding,i.height=c,u.contentPadding.top!==null&&u.contentPadding.top!==void 0||s>0){const g=(u&&u.contentPadding&&u.contentPadding.top)??0;i.paddingTop=`${s+g}px`}if(u.contentPadding.bottom!==null&&u.contentPadding.bottom!==void 0||d>0){const g=(u&&u.contentPadding&&u.contentPadding.bottom)??0;i.paddingBottom=`${d+g}px`}return u.contentPadding.left!==null&&u.contentPadding.left!==void 0&&(i.paddingLeft=`${u.contentPadding.left}px`),u.contentPadding.right!==null&&u.contentPadding.right!==void 0&&(i.paddingRight=`${u.contentPadding.right}px`),i}}if(r.padding){const u=pe(r.padding);u.left!==null&&u.left!==void 0&&(i.paddingLeft=`${u.left}px`),u.top!==null&&u.top!==void 0&&(i.paddingTop=`${u.top}px`),u.right!==null&&u.right!==void 0&&(i.paddingRight=`${u.right}px`),u.bottom!==null&&u.bottom!==void 0&&(i.paddingBottom=`${u.bottom}px`)}return i});return{classes:a,styles:o}}}}const{componentName:Ya,create:Wa,scope:Li}=Y("content"),Ua=Wa(Ga(Ya));function Xa(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Pn=Re(Ua,[["render",Xa]]),qe="GroupStateKey",_n=Symbol.for("GroupScopeKey");function dt(){return l.inject(_n,!1)}function ht(e=!0){l.provide(_n,e)}function Za(e,t={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,t);const a=l.shallowRef(n),o=l.markRaw({layout:a,passport:0,order:{index:0}});return e.set(qe,o),o}function Hn(e,t,r=-1,n=-1,a=!1,o=-1){const i=e.get(qe);if(!i)return;const u=e.get("groupLayout")??{};r===-1&&(r=u.column??1),n===-1&&(n=u.gutter??0),o||(o=u.minItemWidth??-1);const s=()=>{const d=t===""||t===-1,c=U(t);let g=Z(r);const x=U(n);if(!d){let $=(c-(g-1)*x)/g;for(;o!==-1&&g>1&&$<o;)g--,$=(c-(g-1)*x)/g}let A=!1;const V=i.layout;V.value.width=t,V.value.column!==g&&(V.value.column=g,A=!0),V.value.gutter!==x&&(V.value.gutter=x,A=!0),A&&l.triggerRef(V)};if(a)s();else{const d=++i.passport;setTimeout(()=>{d===i.passport&&s()},50)}}function Ze(e,t=!1){let r;return t?r=e.getForParent(qe):r=e.get(qe),r.layout}function Lt(e,t=!1){let r;return t?r=e.getForParent(qe):r=e.get(qe),r.order}function ge(e,t=1){return t==="stretch"?-1:(t=Z(t),t===-1?100:100*t/e)}function Ja(e){return e===window}const gt=e=>{const t=l.unref(e);if(Ja(t)){const r=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},xe=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,Qa=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const t=e.type,r=(t.props&&t.props.span&&t.props.span.default)??1;return typeof r=="function"?r():r}return e.props.span},el=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const r=e.type,n=(r.props&&r.props.offset&&r.props.offset.default)??0;return typeof n=="function"?n():n}const t=Z(e.props.offset);return t<0?0:t},tl=e=>{if(!e.props||e.props.foxItemType===null||e.props.foxItemType===void 0){const t=e.type,r=(t.props&&t.props.foxItemType&&t.props.foxItemType.default)??"Item";return typeof r=="function"?r():r}return e.props.foxItemType??"Item"},nl=e=>{if(!e.props||e.props.foxSubItemCount===null||e.props.foxSubItemCount===void 0){const r=e.type,n=(r.props&&r.props.foxSubItemCount&&r.props.foxSubItemCount.default)??"Item";return typeof n=="function"?n():n}const t=Z(e.props.foxSubItemCount);return t<0?1:t};function rl(e,t){return{props:{...ae,...Mn,...Dn},setup(r,n){const a=Dt(r.name,r,qn),o=Za(a,{type:r.type}),i=dt();ht(!0);const u=l.computed(()=>i&&a?Ze(a,!0).value:null),s=l.getCurrentInstance(),d=y=>{const m=s?.proxy;m&&typeof m.setNameValidateRules=="function"&&m.setNameValidateRules(y,!0)};l.watch(()=>r.rules,(y,m)=>{if(!y&&!m)return;const b=l.toRaw(m),C=l.toRaw(y),w=C?Reflect.ownKeys(C):[];(b?Reflect.ownKeys(b):[]).forEach(q=>{w.includes(q)||(C[q]=[])}),d(C)},{deep:!0}),l.onMounted(()=>{if(r.rules){const y=l.toRaw(r.rules);d(y)}});const c=e,g=l.computed(()=>{const y={};if(u.value){const m=Ze(a,!0);if(m.value.type==="flex"){if(r.width){const w=K(r.width);y.width=w}else{const w=ge(m.value.column,r.span);w>0&&(y.width=`${w}%`)}if(r.height){const w=K(r.height);y.height=w}const b=ge(m.value.column,r.offset);b>0&&(y["margin-left"]=`${b}%`);const C=m.value.gutter/2;C>0&&(y["padding-left"]=`${C}px`,y["padding-right"]=`${C}px`)}else if(m.value.type==="flow"){if(r.width){const w=K(r.width);y.width=w}else{const w=ge(m.value.column,r.span);w>0&&(y.width=`${w}%`)}if(r.height){const w=K(r.height);y.height=w}const b=ge(m.value.column,r.offset);b>0&&(y["margin-left"]=`${b}%`);const C=m.value.gutter/2;if(C>0){const w=a?Lt(a,!0):null;if(w){let v=Z(r.offset)+Z(r.span);(v===-1||v>m.value.column)&&(v=m.value.column);const q=Math.ceil((w.index+1)/m.value.column),E=Math.ceil((w.index+v)/m.value.column);if(q===E){const j=(w.index+1)%m.value.column,p=(w.index+v)%m.value.column,N=j===1?0:C,O=p===0?0:C;y["padding-left"]=`${N}px`,y["padding-right"]=`${O}px`}else{const j=v%m.value.column,p=0,N=j===0?0:C;y["padding-left"]=`${p}px`,y["padding-right"]=`${N}px`}w.index+=v}else y["padding-left"]=`${C}px`,y["padding-right"]=`${C}px`}}}else{if(r.width){const m=K(r.width);y.width=m}if(r.height){const m=K(r.height);y.height=m}}return y}),x=l.computed(()=>r.type==="flex"?{[`${xe("",r.type)}`]:!0,[`${xe("justify",r.justify)}`]:!0,[`${xe("align",r.align)}`]:!0,[`${xe("flex",r.flexWrap)}`]:!0,[`${c}__gutter`]:!0}:r.type==="flow"?{[`${xe("",r.type)}`]:!0,[`${xe("justify",r.justify)}`]:!0,[`${xe("align",r.align)}`]:!0}:{[`${xe("",r.type)}`]:!0,[`${c}__gutter`]:!0}),A=l.toRef(r,"title"),V=l.toRef(r,"gutter"),$=l.toRef(r,"column"),R=l.computed(()=>i?!0:re(r.isWrap)),S=l.ref([]),D=y=>{S.value.push(y)},k=l.ref(-1);if(Hn(a,k.value,$.value,V.value,!0,r.minItemWidth),r.autoLayout){l.watch([k,$,V],([m,b,C])=>{o.order.index=0,Hn(a,m,b,C,!1,r.minItemWidth)});let y=null;l.onMounted(()=>{if(Ge&&S.value&&S.value.length>0){const m=S.value[0];k.value=gt(m).width,window.ResizeObserver&&(y=new window.ResizeObserver(()=>{const b=gt(m).width;b>0&&b!==k.value&&(k.value=b)}),y.observe(m))}}),l.onUnmounted(()=>{y?.disconnect()})}const I=(y,m,b,C)=>{const w={...x.value};return m===0&&(w[`${c}__first`]=!0),b>=C-1&&(w[`${c}__last`]=!0),l.h("div",{ref:D,key:`${m}`,class:w},y)},M=y=>{const m=String(y.type);if(m==="Symbol(Comment)")return null;if(m==="Symbol(Fragment)"){if(Array.isArray(y.children)){const b=[...y.children];for(let C=b.length-1;C>=0;C--){const w=b[C],v=M(w);v===null?b.splice(C,1):v.length>0&&Reflect.apply([].splice,b,[C,1,...v])}return b}return null}return[]};return()=>{o.order.index=0;const y=[];let m=0;if(n.slots.title){const v={key:`${m++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},q=l.h("div",v,[n.slots.title()]);y.push(q)}else if(A.value){const v={key:`${m++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},q=[];if(r.showMark){const p={class:{[`${c}__title-mark`]:!0}};r.markColor&&(p.style={background:r.markColor});const N=l.h("div",p);q.push(N)}const E=l.h("div",{class:{[`${c}__title-text`]:!0}},[A.value]);q.push(E);const j=l.h("div",v,q);y.push(j)}const b=n.slots.default?n.slots.default():[];let C=[],w=0;if(r.type==="flex"){for(let v=0;v<b.length;v++){const q=M(b[v]);if(q===null)continue;q.length>0&&Reflect.apply([].splice,b,[v,1,...q]);const E=b[v];if(tl(E)==="fragment"){let T=nl(E);T>o.layout.value.column?T=o.layout.value.column:T<=0&&(T=1);const F=w+T;if(F>o.layout.value.column){const L=I([...C],m++,v-1,b.length);y.push(L),w=T,C=[E]}else C.push(E),w=F;continue}const p=Qa(E),N=el(E);if(p==="stretch"){if(w<o.layout.value.column){C.push(E);const T=I([...C],m++,v,b.length);y.push(T)}else{const T=I([...C],m++,v-1,b.length);y.push(T);const F=I([E],m++,v,b.length);y.push(F)}w=0,C=[];continue}let O=Z(p);if(O===-1){if(C.length>0){const F=I([...C],m++,v-1,b.length);y.push(F)}const T=I([E],m++,v,b.length);y.push(T),w=0,C=[];continue}O>o.layout.value.column?O=o.layout.value.column:O<=0&&(O=1);const B=w+O+N;if(B>o.layout.value.column){const T=I([...C],m++,v-1,b.length);y.push(T),w=O+N,C=[E]}else C.push(E),w=B}if(C.length>0){const v=I([...C],m++,b.length,b.length);y.push(v)}}else if(r.type==="flow"){const v=I(b,m++,0,b.length);y.push(v)}else for(let v=0;v<b.length;v++){const q=b[v],E=I([q],m++,v,b.length);y.push(E)}return R.value?l.h("div",{class:{[`${c}`]:!0},style:g.value},[y]):y}}}}const{componentName:al,create:ll,scope:Pi}=Y("group"),Kn=ll(rl(al)),zn={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:ol,create:il}=Y("price"),sl=il({props:{...zn},setup(e){const t=l.computed(()=>({[ol]:!0})),r=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>Ye(e.price)==0?"":Tt(e.price,e.decimalLength,!0,Z(e.digits),e.separator)),a=l.computed(()=>{let i=n.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),o=l.computed(()=>{let i=n.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:t,showSymbol:r,intText:a,decimalText:o}}}),ul=["innerHTML"],cl=["innerHTML"];function fl(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ul)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,cl)):l.createCommentVNode("",!0)],2)}const mt=Re(sl,[["render",fl]]),{componentName:Pt,create:dl}=Y("hint-text"),hl=dl({components:{[mt.name]:mt},props:{...zn,type:{type:String,default:"number"},id:{type:String},startPoint:{type:Object},width:{type:Number},height:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const a=l.computed(()=>({[Pt]:!0})),o=l.computed(()=>({left:K(e.startPoint.x),top:K(e.startPoint.y-e.height-10-4),height:K(e.height),width:K(e.width)})),i=l.computed(()=>({[`${Pt}__content`]:!0})),u=l.computed(()=>({})),s=l.computed(()=>({[`${Pt}__arrow`]:!0})),d=l.computed(()=>({top:K(e.height)}));return{classes:a,styles:o,textClasses:i,textStyles:u,arrowClasses:s,arrowStyles:d}}}),gl={key:1,class:"text"};function ml(e,t,r,n,a,o){const i=l.resolveComponent("fox-price");return l.openBlock(),l.createBlock(l.Transition,{name:"hint-text-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before"},null,8,["price"])):(l.openBlock(),l.createElementBlock("span",gl,l.toDisplayString(e.message),1))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.visible]])]),_:1})}const yt=Re(hl,[["render",ml]]);class Gn{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}function yl(e){return e===window}const Yn=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(yl(t))return{x:0,y:0};let r=0,n=0,a=t;for(;a!==null;)r+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let o=0,i=0;for(a=t;a!==document;)i+=a.scrollTop,o+=a.scrollLeft,a=a.parentNode;return r-=o,n-=i,{x:r,y:n}},_t={},pl=new Gn,Be=new Map,Ht=e=>{if(e){const t=document.getElementById(e);Be.delete(e),t&&document.body.removeChild(t)}else{for(const t of Be.keys()){const r=document.getElementById(t);r&&document.body.removeChild(r)}Be.clear()}},bl=e=>{const t=document.getElementById(e.id);if(t){const r=Be.get(e.id);r?e={..._t,...r,...e}:e={..._t,...e};const n=l.createVNode(yt,e);return l.render(n,t),e.id}},wl=e=>{e.unmount=Ht;let t;if(e.id){if(t=e.id,Be.has(t))return bl(e)}else t=`hinttext_${pl.get()}`;e={..._t,...e},e.id=t,Be.set(t,e);const r=document.createElement("div");r.id=e.id;const n=l.createVNode(yt,e);return l.render(n,r),document.body.appendChild(r),t},Sl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},pt={show(e,t,r={},n=!0){n&&Ht(),Sl(t);const a=Yn(e),o={x:a.x,y:a.y},i=r.width??gt(e).width;return wl({...r,message:t,startPoint:o,width:i})},hide(e){Ht(e)},install(e){e.config.globalProperties.$hintText=pt}},{componentName:Wn,create:$l}=Y("item"),vl=$l({inheritAttrs:!0,props:{...ae,...ce},setup(e,t){oe({componentName:Wn,validate:!1},e.prop??t.attrs.name);const r=ve(),n=dt();ht(!1);const a=l.computed(()=>n&&r?Ze(r,!1).value:null),o=Wn,i=l.computed(()=>({[o]:!0,[`${o}__gutter`]:a.value&&a.value.type!=="flow",[`${o}__stretch`]:e.span==="stretch",[`${o}__input--border`]:e.hasBorder,"is-error":!!C.value,"is-warn":!!m.value,"is-info":!!M.value})),u=l.computed(()=>{const T={};if(a.value)if(a.value.type==="flex"){if(e.width)T.width=K(e.width);else{const P=ge(a.value.column,e.span);P>0&&(T.width=`${P}%`)}const F=ge(a.value.column,e.offset);F>0&&(T["margin-left"]=`${F}%`);const L=a.value.gutter/2;L>0&&(T["padding-left"]=`${L}px`,T["padding-right"]=`${L}px`)}else if(a.value.type==="flow"){if(e.width)T.width=K(e.width);else{const P=ge(a.value.column,e.span);P>0&&(T.width=`${P}%`)}const F=ge(a.value.column,e.offset);F>0&&(T["margin-left"]=`${F}%`);const L=a.value.gutter/2;if(L>0){const P=r?Lt(r,!1):null;if(P){let _=Z(e.offset)+Z(e.span);(_===-1||_>a.value.column)&&(_=a.value.column);const G=Math.ceil((P.index+1)/a.value.column),z=Math.ceil((P.index+_)/a.value.column);if(G===z){const se=(P.index+1)%a.value.column,te=(P.index+_)%a.value.column,J=se===1?0:L,X=te===0?0:L;T["padding-left"]=`${J}px`,T["padding-right"]=`${X}px`}else{const se=_%a.value.column,te=0,J=se===0?0:L;T["padding-left"]=`${te}px`,T["padding-right"]=`${J}px`}P.index+=_}else T["padding-left"]=`${L}px`,T["padding-right"]=`${L}px`}}else return e.width&&(T.width=K(e.width)),T;else e.width&&(T.width=K(e.width));return T}),s=l.ref(null),d=l.computed({get:()=>s.value??re(e.isRequired),set:T=>{s.value=T}}),c=l.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),g=De(l.toRef(e,"labelPosition"),"labelPosition",ct.Near),x=l.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),A=l.computed(()=>({[`${o}__main`]:!0,[`${o}__main--${x.value}`]:!0})),V=l.computed(()=>({label:!0,[`label--${x.value}`]:!0})),$=De(l.toRef(e,"labelWidth"),"labelWidth",ct.Near),R=l.computed(()=>$&&$.value?{width:K($.value)}:{}),S=l.computed(()=>({["label--string"]:!0,["label--required"]:d.value})),D=l.computed(()=>({content:!0,[e.contentClass]:!0})),k=l.computed(()=>({...e.contentStyle})),I=l.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(T){d.value=T},setErrorTip(T){I.errorTip=T},setErrorIcon(T){I.errorIcon=T},setWarnTip(T){I.warnTip=T},setWarnIcon(T){I.warnIcon=T},setInfoTip(T){I.infoTip=T},setInfoIcon(T){I.infoIcon=T}});const M=l.computed(()=>e.infoTip||I.infoTip),y=l.computed(()=>e.infoIcon||I.infoIcon),m=l.computed(()=>e.warnTip||I.warnTip),b=l.computed(()=>e.warnIcon||I.warnIcon),C=l.computed(()=>e.errorTip||I.errorTip),w=l.computed(()=>e.errorIcon||I.errorIcon),v=l.computed(()=>C.value?"error":m.value?"warn":M.value?"info":""),q=l.computed(()=>v.value.length>0),E=l.computed(()=>v.value==="error"?C.value:v.value==="warn"?m.value:v.value==="info"?M.value:""),j=l.computed(()=>v.value==="error"?w.value:v.value==="warn"?b.value:v.value==="info"?y.value:null),p=l.computed(()=>{let T={[`${o}__tip`]:!0,[`${o}__tip--${v.value}`]:!0};return v.value==="error"&&e.errorClass?T[`${e.errorClass}`]=!0:v.value==="warn"&&e.warnClass?T[`${e.warnClass}`]=!0:v.value==="info"&&e.infoClass&&(T[`${e.infoClass}`]=!0),T}),N=l.computed(()=>{let T={};return g&&g.value==="top"?T["padding-left"]="0px":$&&$.value&&(T["padding-left"]=K($.value)),T}),O=l.ref();let B="";return l.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([T,F,L,P])=>{O.value&&(T&&!ee(F)?B?pt.show(O.value,F,{...P,id:B,type:L}):B=pt.show(O.value,F,{...P,type:L}):pt.hide(B))}),{classes:i,styles:u,mainClasses:A,hasLabel:c,labelClasses:V,labelStyles:R,labelStringClasses:S,contentClasses:D,contentStyles:k,contentRef:O,hasTip:q,mTip:E,mIcon:j,tipClasses:p,tipStyles:N}}}),El={key:0,class:"fox-item__tip-icon"},xl={class:"fox-item__tip-text"};function Cl(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.mainClasses)},[e.hasLabel?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(e.labelClasses),style:l.normalizeStyle(e.labelStyles)},[l.createElementVNode("div",{class:l.normalizeClass(e.labelStringClasses)},[l.renderSlot(e.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(e.label),1)])],2)],6)):l.createCommentVNode("",!0),l.createElementVNode("div",{ref:"contentRef",class:l.normalizeClass(e.contentClasses),style:l.normalizeStyle(e.contentStyles)},[l.renderSlot(e.$slots,"prepend"),l.renderSlot(e.$slots,"default"),l.renderSlot(e.$slots,"append")],6)],2),l.createVNode(l.Transition,{name:"fox-item__animate"},{default:l.withCtx(()=>[e.hasTip?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(e.tipClasses),style:l.normalizeStyle(e.tipStyles)},[e.mIcon?(l.openBlock(),l.createElementBlock("div",El,l.toDisplayString(e.mIcon),1)):l.createCommentVNode("",!0),l.createElementVNode("div",xl,l.toDisplayString(e.mTip),1)],6)):l.createCommentVNode("",!0)]),_:1}),l.renderSlot(e.$slots,"hide")],6)}const ie=Re(vl,[["render",Cl]]);function Ol(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(r,n){const a=ve(),o=dt();ht(!1);const i=l.computed(()=>o&&a?Ze(a,!1).value:null),u=e,s=l.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:r.span==="stretch"})),d=l.computed(()=>{const c={};if(i.value)if(i.value.type==="flex"){if(r.width)c.width=K(r.width);else{const A=ge(i.value.column,r.span);A>0&&(c.width=`${A}%`)}const g=ge(i.value.column,r.offset);g>0&&(c["margin-left"]=`${g}%`);const x=i.value.gutter/2;x>0&&(c["padding-left"]=`${x}px`,c["padding-right"]=`${x}px`)}else if(i.value.type==="flow"){if(r.width)c.width=K(r.width);else{const A=ge(i.value.column,r.span);A>0&&(c.width=`${A}%`)}const g=ge(i.value.column,r.offset);g>0&&(c["margin-left"]=`${g}%`);const x=i.value.gutter/2;if(x>0){const A=a?Lt(a,!1):null;if(A){let V=Z(r.offset)+Z(r.span);(V===-1||V>i.value.column)&&(V=i.value.column);const $=Math.ceil((A.index+1)/i.value.column),R=Math.ceil((A.index+V)/i.value.column);if($===R){const S=(A.index+1)%i.value.column,D=(A.index+V)%i.value.column,k=S===1?0:x,I=D===0?0:x;c["padding-left"]=`${k}px`,c["padding-right"]=`${I}px`}else{const S=V%i.value.column,D=0,k=S===0?0:x;c["padding-left"]=`${D}px`,c["padding-right"]=`${k}px`}A.index+=V}else c["padding-left"]=`${x}px`,c["padding-right"]=`${x}px`}}else return r.width&&(c.width=K(r.width)),c;else r.width&&(c.width=K(r.width));return c});return()=>{const c={class:s.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",c,n.slots.default()):l.h("div",c)}}}}const{componentName:Tl,create:Vl,scope:_i}=Y("slot-item"),Un=Vl(Ol(Tl));function Il(e,t){return{props:{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"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(r,n){const a=e,o=l.computed(()=>({[a]:!0,[`${a}__stretch`]:r.span==="stretch",[`${a}__${r.align}`]:!0})),i=ve(),u=dt();ht(!1);const s=l.computed(()=>{const c={};if(u&&i){const g=Ze(i,!1);if(g.value.type!=="flex")return r.width&&(c.width=K(r.width)),c;if(r.width)c.width=K(r.width);else{const V=ge(g.value.column,r.span);V>0&&(c.width=`${V}%`)}const x=ge(g.value.column,r.offset);x>0&&(c["margin-left"]=`${x}%`);const A=g.value.gutter/2;A>0&&(c["padding-left"]=`${A}px`,c["padding-right"]=`${A}px`)}else r.width&&(c.width=K(r.width));return c}),d=l.computed(()=>({[`${a}__content`]:!0}));return()=>{const c=[];if(n.slots.default){const V=n.slots.default();if(r.divide)for(let $=0;$<V.length;$++){if($>0){const R=l.h("div",{class:{[`${a}__divide`]:!0}});c.push(R)}c.push(V[$])}else Reflect.apply([].push,c,V)}const g={class:d.value},x=l.h("div",g,c),A={class:o.value,style:s.value};return l.h("div",A,[x])}}}}const{componentName:Nl,create:Al,scope:Hi}=Y("row-item"),Xn=Al(Il(Nl)),Zn={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Rl(e,t,r){return{props:{...ae,...ce,...Zn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),x=e,A=l.computed(()=>({[x]:!0})),V=m=>{g.value=m,o("update:modelValue",m),o("input",m)},$=m=>{o("change",m)};let R=W(n,"hintText"),S=l.ref(!1);const D=m=>{let C=m.target.value;s.value=!0,ee(R.value)||(S.value=!0),o("focus",C,m)},k=m=>{setTimeout(()=>{S.value&&(S.value=!1),s.value=!1},0);let C=m.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),o("blur",C,m)},I=()=>{o("clear","")},M=l.computed(()=>Ye(n.unit)>0),y=l.ref();return fe({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},select:()=>{y?.value.select()}}),()=>{const b={...a.attrs,ref:y,class:A.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:d.value,readonly:c.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:I,onChange:$,onInput:V,onFocus:D,onBlur:k},C={};a.slots.prepend&&(C.prepend=a.slots.prepend),a.slots.append&&(C.append=a.slots.append),a.slots.prefix&&(C.prefix=a.slots.prefix),a.slots.suffix?C.suffix=a.slots.suffix:M.value&&(C.suffix=()=>[n.unit]);const w=[],v=l.h(h.ElInput,b,C);w.push(v);const q={default:()=>w};if(a.slots.default){const N=a.slots.default();q.label=()=>N}const j={...ue(n,Zn),hintText:R.value,hintVisible:S.value,prop:`${n.prop}_item`};return l.h(r,j,q)}}}}const{componentName:kl,create:jl,scope:Ml}=Y("input-item"),Jn=jl(Rl(kl,Ml,ie));function ke(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Fe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Qn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Dl=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Se(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}};function ql(){const e=l.getCurrentInstance();return new Dl(e.proxy)}function er(e,t,r){const n=ke(e,t),a=ke(e,r);if(n!==a)return!1;const o=Fe(e,t),i=Fe(e,r);return o===i}function tr(e,t,r,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(o=>{for(let i of n){const u=Qn(e,i);if(Array.isArray(u)&&u.length>0){const s=tr(e,o,r,u)??[];Reflect.apply([].push,a,s)}else{let s=!1;if(r==="text")s=ke(e,i)===o;else if(r==="item")s=er(e,i,o);else{let d=Fe(e,i);d==null&&(d=ke(e,i)),s=d===o}if(s){a.push(i);break}}}}),a}function Bl(e){return{text:e,value:e}}const nr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Fl(e,t,r){return{props:{...ae,...ce,...nr},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(null),d=l.ref([]),c=(p,N,O,B=!0)=>{const T=tr(n,p,N,O);if(T===null){if(d.value===null||d.value.length===0)return;s.value=null,d.value=[],B&&(o("update:modelValue",null),o("change",null));return}let F=!0;if(T.length!==d.value.length)F=!1;else for(let L=0;L<T.length;L++){const P=T[L],_=d.value[L];if(!er(n,P,_)){F=!1;break}}if(!F){d.value=T;let L=[],P=[];T.forEach(G=>{L.push(Fe(n,G)),n.valueType==="text"?P.push(ke(n,G)):n.valueType==="item"?P.push(G):P.push(Fe(n,G))});let _;n.multiple?(s.value=L,_=l.toRaw(P)):(s.value=L[0]??"",_=l.toRaw(P[0]??"")),B&&(o("update:modelValue",_),o("change",_))}},g=l.ref([]),x=ql();l.watch([()=>n.source,()=>n.params],async([p,N])=>{if(p){const O=await x.load("select",p,N);if(O.length>0)if(typeof O[0]=="string"){let F=O.map(L=>Bl(L));g.value=F}else g.value=O}},{immediate:!0}),l.watch([()=>g.value,()=>n.modelValue],([p,N])=>{c(N,n.valueType,p,!1)});let A=null,V=l.ref(!1);typeof n.remoteMethod=="function"&&(A=async p=>{if(p!=null){V.value=!0;try{const N=await n.remoteMethod(p);g.value=N}catch(N){console.error(N)}V.value=!1}});const $=l.ref(!1),R=he(l.computed(()=>n.disabled)),S=de(l.computed(()=>n.readonly)),D=e,k=l.computed(()=>({[D]:!0})),I=p=>{n.allowCreate?(o("update:modelValue",p),o("change",p),s.value=p):c(p,"value",g.value,!0)};let M=W(n,"hintText"),y=l.ref(!1);const m=p=>{let O=p.target.value;$.value=!0,ee(M.value)||(y.value=!0),o("focus",O,p)},b=p=>{setTimeout(()=>{y.value&&(y.value=!1),$.value=!1},0);let O=p.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),w.value?setTimeout(()=>{o("blur",O,p)},50):o("blur",O,p)},C=()=>{o("clear","")},w=l.ref(!1),v=p=>{w.value=p,o("visible-change",p)},q=p=>{o("remove-tag",p)},E=(p,N)=>{const O=[];return p.forEach((B,T)=>{const F=Qn(n,B);if(Array.isArray(F)&&F.length>0){const L=E(F,N),P=ke(n,B),G={key:`${P}_${T}`,label:P};O.push(l.h(h.ElOptionGroup,G,{default:()=>L}))}else{const L=Fe(n,B),P=ke(n,B),_=re(B.disabled),z={key:`${L}_${T}`,label:P,disabled:_,value:L};if(typeof N=="function")O.push(l.h(h.ElOption,z,{default:()=>N(B)}));else if(n.optionType==="item"){const se={class:{"fox-select-item__option-left":!0}},te=l.h("span",se,[L]),J={class:{"fox-select-item__option-right":!0}},X=l.h("span",J,[P]),me=l.h("div",{class:{"fox-select-item__option":!0}},[te,X]);O.push(l.h(h.ElOption,z,{default:()=>me}))}else n.optionType==="value"?O.push(l.h(h.ElOption,z,{default:()=>[L]})):O.push(l.h(h.ElOption,z))}}),O},j=l.ref();return fe({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const N={...a.attrs,ref:j,class:k.value,clearable:n.clearable,multiple:n.multiple,placeholder:u.placeholder.value,disabled:R.value||S.value,modelValue:s.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:C,onChange:I,onFocus:m,onBlur:b,onVisibleChange:v,onRemoveTag:q};typeof A=="function"&&(N["remote-method"]=A,N.loading=V.value);const O={};a.slots.prefix&&(O.prefix=a.slots.prefix),a.slots.empty&&(O.empty=a.slots.empty),O.default=()=>E(g.value,a.slots.option);const B=[],T=l.h(h.ElSelect,N,O);B.push(T);const F={default:()=>B};if(a.slots.default){const G=a.slots.default();F.label=()=>G}const P={...ue(n,nr),hintText:M.value,hintVisible:y.value,prop:`${n.prop??a.attrs.name}_item`};return l.h(r,P,F)}}}}const{componentName:Ll,create:Pl,scope:_l}=Y("select-item"),rr=Pl(Fl(Ll,_l,ie)),ar={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Hl(e,t,r){return{props:{...ae,...ce,...ar},emits:["change","update:modelValue","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),x=e,A=l.computed(()=>({[x]:!0})),V=b=>{g.value=b,o("update:modelValue",b),o("change",b)};let $=W(n,"hintText"),R=l.ref(!1);const S=b=>{let w=b.target.value;s.value=!0,ee($.value)||(R.value=!0),o("focus",w,b)},D=b=>{setTimeout(()=>{R.value&&(R.value=!1),s.value=!1},0);let w=b.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),o("blur",w,b)},k=()=>{o("clear","")},I=b=>{o("calendar-change",b)},M=(b,C,w)=>{o("panel-change",b,C,w)},y=b=>{o("visible-change",b)},m=l.ref();return fe({focus:()=>{m?.value.focus()},blur:()=>{m?.value.blur()},handleOpen:()=>{m?.value.handleOpen()},handleClose:()=>{m?.value.handleClose()}}),()=>{const C={...a.attrs,ref:m,class:A.value,placeholder:u.placeholder.value,disabled:d.value,readonly:c.value,modelValue:g.value,["onUpdate:modelValue"]:V,onClear:k,onFocus:S,onBlur:D,onCalendarChange:I,onPanelChange:M,onVisibleChange:y},w={};a.slots["range-separator"]&&(w["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(w.default=a.slots.cell);const v=[],q=l.h(h.ElDatePicker,C,w);v.push(q);const E={default:()=>v};if(a.slots.default){const O=a.slots.default();E.label=()=>O}const p={...ue(n,ar),hintText:$.value,hintVisible:R.value,prop:`${n.prop}_item`};return l.h(r,p,E)}}}}const{componentName:Kl,create:zl,scope:Gl}=Y("date-item"),lr=zl(Hl(Kl,Gl,ie)),or={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Yl(e,t,r){return{props:{...ae,...ce,...or},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),x=e,A=l.computed(()=>({[x]:!0})),V=y=>{g.value=y,o("update:modelValue",y),o("change",y)};let $=W(n,"hintText"),R=l.ref(!1);const S=y=>{let b=y.target.value;s.value=!0,ee($.value)||(R.value=!0),o("focus",b,y)},D=y=>{setTimeout(()=>{R.value&&(R.value=!1),s.value=!1},0);let b=y.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),o("blur",b,y)},k=()=>{o("clear","")},I=y=>{o("visible-change",y)},M=l.ref();return fe({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},handleOpen:()=>{M?.value.handleOpen()},handleClose:()=>{M?.value.handleClose()}}),()=>{const m={...a.attrs,ref:M,class:A.value,placeholder:u.placeholder.value,disabled:d.value,readonly:c.value,modelValue:g.value,["onUpdate:modelValue"]:V,onClear:k,onFocus:S,onBlur:D,onVisibleChange:I},b={},C=[],w=l.h(h.ElTimePicker,m,b);C.push(w);const v={default:()=>C};if(a.slots.default){const p=a.slots.default();v.label=()=>p}const E={...ue(n,or),hintText:$.value,hintVisible:R.value,prop:`${n.prop}_item`};return l.h(r,E,v)}}}}const{componentName:Wl,create:Ul,scope:Xl}=Y("time-item"),ir=Ul(Yl(Wl,Xl,ie)),sr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Zl(e,t,r){return{props:{...ae,...ce,...sr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),x=e,A=l.computed(()=>({[x]:!0})),V=M=>{g.value=M,o("update:modelValue",M),o("change",M)};let $=W(n,"hintText"),R=l.ref(!1);const S=M=>{let m=M.target.value;s.value=!0,ee($.value)||(R.value=!0),o("focus",m,M)},D=M=>{setTimeout(()=>{R.value&&(R.value=!1),s.value=!1},0);let m=M.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),o("blur",m,M)},k=()=>{o("clear","")},I=l.ref();return fe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()}}),()=>{const y={...a.attrs,ref:I,class:A.value,placeholder:u.placeholder.value,disabled:d.value,readonly:c.value,modelValue:g.value,["onUpdate:modelValue"]:V,onClear:k,onFocus:S,onBlur:D},m={},b=[],C=l.h(h.ElTimeSelect,y,m);b.push(C);const w={default:()=>b};if(a.slots.default){const j=a.slots.default();w.label=()=>j}const q={...ue(n,sr),hintText:$.value,hintVisible:R.value,prop:`${n.prop}_item`};return l.h(r,q,w)}}}}const{componentName:Jl,create:Ql,scope:eo}=Y("time-select-item"),ur=Ql(Zl(Jl,eo,ie));function cr(e,t=0){let r=`${e}`,n=r.indexOf(".");if(n==-1)return r;let a=n;for(let o=r.length-1;o>=n;o--)if(r.charAt(o)!="0"){a=o;break}return a-n<t?a=n+t+1:a!=n&&(a+=1),a>r.length?r=r.padEnd(a,"0"):r=r.substring(0,a),r}function fr(e,t,r=20){if(typeof t=="string"&&(t=Z(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=fn(`${e}`,`${t}`);return cr(n)}else{let n=Ct(`${e}`,dn(`${t}`),20);return cr(n)}}function to(e,t=-1,r=!1,n=3,a=","){return Tt(e,t,r,n,a)}function dr(e,t,r,n,a=!0){if(e=="")return"";if(e=hn(e),t=Z(t),t==1)return e;if(n)e=fr(e,t),r&&(e=="0"&&a?e=`${e}.`.padEnd(Z(r)+2,"0"):e=Ct(e,1,Z(r)));else{let o=-1*t;e=fr(e,o)}return e}function hr(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=re(t.minInclude),a=Ot(e,t.min);if(n&&a==-1||!n&&(a==0||a==-1)){let o="请输入不小于 {0} 的数值";r.message=o.replace("{0}",t.min),r.minValid=!1}}if(t.max!=null){let n=re(t.maxInclude),a=Ot(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(r.maxValid=!1)}return r}const gr={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,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function no(e,t,r){return{props:{...ae,...ce,...gr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),i=l.ref(!1),u=he(l.computed(()=>n.disabled)),s=de(l.computed(()=>n.readonly)),d=W(n,"modelValue"),c=l.ref("");l.watch([()=>d.value,()=>n.rates,()=>n.precision],([E,j,p])=>{if(ee(E))return"";const N=dr(E,j,p,!1);c.value!==N&&(c.value=N)},{immediate:!0});const g=l.computed(()=>{let E="";return i.value&&(E=c.value),E}),{t:x}=ye.useFoxI18n(t),A=l.computed(()=>{let E=n.placeholder??"";return!i.value&&!ee(c.value)?E=to(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):E=x(["placeholder",E]),E}),V=e,$=l.computed(()=>({[V]:!0,[`${V}__disabled`]:u.value,[`${V}__placeholder`]:c.value.length>0})),R=De(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>i.value?{textAlign:"left"}:{textAlign:R.value??"right"});const S=l.ref(""),D=l.computed(()=>{let E=S.value;return ee(E)&&(E=n.errorTip??""),E}),k=l.ref(""),I=l.ref(!1),M=(E,j)=>{if(E=`${E}`,ee(E)){c.value="",d.value="",j.forEach(p=>{o(p,"")}),re(n.showTip)&&I.value&&(I.value=!1);return}if(E.length>=2){let p=E;if(p.charAt(0)=="-"&&(p=p.substring(1)),p.length>=2&&p.charAt(0)=="0"&&p.charAt(1)!="."){l.triggerRef(c);return}}if(E!="-"){if(!Sn(E)){l.triggerRef(c);return}if(n.integerLength!=-1&&$n(E)>Number(n.integerLength)){l.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&vn(E)>Number(n.decimalLength)){l.triggerRef(c);return}let p=hr(E,n);if(p.maxValid===!1){S.value=p.message,l.triggerRef(c);return}}else if(n.min!=null&&Z(n.min)>=0){l.triggerRef(c);return}k.value=E,re(n.showTip)&&(I.value=E.length>0),c.value=E,d.value=dr(E,n.rates,n.precision,!0),j.forEach(p=>{o(p,d.value)})},y=E=>{M(E,["update:modelValue","input"])},m=E=>{M(E,["update:modelValue","change"])},b=E=>{if(i.value=!0,re(n.showTip)){let j=c.value;ee(j)&&(j=n.hintText),ee(j)||(k.value=j,I.value=!0)}S.value="",o("focus",d.value,E)},C=E=>{if(setTimeout(()=>{i.value=!1,re(n.showTip)&&I.value===!0&&(I.value=!1)},0),!ee(c.value)){let j=hr(c.value,n);if(j.minValid===!1||j.maxValid){S.value=j.message;return}}o("update:modelValue",d.value,E),o("blur",d.value,E)},w=()=>{o("clear","")},v=l.computed(()=>Ye(n.unit)>0),q=l.ref();return fe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const j={...a.attrs,ref:q,class:$.value,type:"digit",maxlength:n.maxLength,placeholder:A.value,clearable:n.clearable,disabled:u.value,readonly:s.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:w,onInput:y,onChange:m,onFocus:b,onBlur:C},p={};a.slots.prepend&&(p.prepend=a.slots.prepend),a.slots.append&&(p.append=a.slots.append),a.slots.prefix&&(p.prefix=a.slots.prefix),a.slots.suffix?p.suffix=a.slots.suffix:v.value&&(p.suffix=()=>[n.unit]);const N=[],O=l.h(h.ElInput,j,p);N.push(O);const B={default:()=>N};if(a.slots.default){const P=a.slots.default();B.label=()=>P}const F={...ue(n,gr),errorTip:D.value,hintText:k.value,hintVisible:I.value,hintType:"number",prop:`${n.prop}_item`};return l.h(r,F,B)}}}}const{componentName:ro,create:ao,scope:lo}=Y("money-item"),mr=ao(no(ro,lo,ie)),yr={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function oo(e,t,r){return{props:{...ae,...ce,...yr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),x=e,A=l.computed(()=>({[x]:!0,[`${x}__append`]:y.value})),V=l.computed(()=>({[`${x}__unit`]:!0})),$=b=>{g.value=b,o("update:modelValue",b),o("input",b)},R=b=>{o("change",b)};let S=W(n,"hintText"),D=l.ref(!1);const k=b=>{let w=b.target.value;s.value=!0,ee(S.value)||(D.value=!0),o("focus",w,b)},I=b=>{setTimeout(()=>{D.value&&(D.value=!1),s.value=!1},0);let w=b.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),o("blur",w,b)},M=()=>{o("clear","")},y=l.computed(()=>Ye(n.unit)>0),m=l.ref();return fe({focus:()=>{m?.value.focus()},blur:()=>{m?.value.blur()}}),()=>{const C={...a.attrs,ref:m,class:A.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:d.value,readonly:c.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:M,onChange:R,onInput:$,onFocus:k,onBlur:I},w={},v=[],q=l.h(h.ElInputNumber,C,w);v.push(q);const E={default:()=>v};if(a.slots.default){const O=a.slots.default();E.label=()=>O}const p={...ue(n,yr),hintText:S.value,hintVisible:D.value,prop:`${n.prop}_item`};if(a.slots.append)E.append=a.slots.append;else if(y.value){const O={class:V.value},B=l.h("div",O,[n.unit]);E.append=()=>B}return l.h(r,p,E)}}}}const{componentName:io,create:so,scope:uo}=Y("input-number-item"),pr=so(oo(io,uo,ie));function Le(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function je(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function co(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let fo=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Se(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}};function ho(){const e=l.getCurrentInstance();return new fo(e.proxy)}function Kt(e,t,r){const n=Le(e,t),a=Le(e,r);if(n!==a)return!1;const o=je(e,t),i=je(e,r);return o===i}function br(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];let o=n;for(let i=0;Array.isArray(o)&&i<t.length;i++){const u=t[i];if(Array.isArray(u)){const s=br(e,u,r,n);a.push(s)}else{let s=!1;for(let d of o){if(r==="text")s=Le(e,d)===u;else if(r==="item")s=Kt(e,d,u);else{let c=je(e,d);c==null&&(c=Le(e,d)),s=c===u}if(s){a.push(d),o=co(e,d);break}}if(!s)break}}return a}function go(e){return{text:e,value:e}}const wr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1}};function mo(e,t,r){return{props:{...ae,...ce,...wr},emits:["change","update:modelValue","blur","focus","clear","visible-change","expand-change","remove-tag"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(null),d=l.ref([]),c=(N,O,B,T=!0)=>{if(n.props&&n.props.lazy===!0){if(s.value===N)return;s.value=N;const P=l.toRaw(N);T&&(o("update:modelValue",P),o("change",P))}const F=br(n,N,O,B);if(F===null){if(d.value.length===0||d.value===null)return;d.value=[],s.value=null,T&&(o("update:modelValue",null),o("change",null));return}let L=!0;if(F.length!==d.value.length)L=!1;else for(let P=0;P<F.length;P++){const _=F[P],G=d.value[P];if(Array.isArray(_)){if(!Array.isArray(G)||_.length!==G.length)L=!1;else for(let z=0;z<_.length;z++)if(!Kt(n,_[z],G[z])){L=!1;break}}else Kt(n,_,G)||(L=!1);if(!L)break}if(!L){d.value=F;let P=[],_=[];F.forEach(z=>{if(Array.isArray(z)){let se=[],te=[];for(let J of z)se.push(je(n,J)),n.valueType==="text"?te.push(Le(n,J)):n.valueType==="item"?te.push(J):te.push(je(n,J));P.push(se),_.push(te)}else P.push(je(n,z)),n.valueType==="text"?_.push(Le(n,z)):n.valueType==="item"?_.push(z):_.push(je(n,z))}),s.value=P;const G=l.toRaw(_);T&&(o("update:modelValue",G),o("change",G))}},g=l.ref([]),x=ho();l.watch([()=>n.source,()=>n.params],async([N,O])=>{if(N){const B=await x.load("cascader",N,O);if(B.length>0)if(typeof B[0]=="string"){let L=B.map(P=>go(P));g.value=L}else g.value=B}},{immediate:!0}),l.watch([()=>g.value,()=>n.modelValue],([N,O])=>{c(O,n.valueType,N,!1)});let A=null,V=l.ref(!1);typeof n.remoteMethod=="function"&&(A=async N=>{if(N!=null){V.value=!0;try{const O=await n.remoteMethod(N);g.value=O}catch(O){console.error(O)}V.value=!1}});const $=l.ref(!1),R=he(l.computed(()=>n.disabled)),S=de(l.computed(()=>n.readonly)),D=e,k=l.computed(()=>({[D]:!0})),I=l.computed(()=>{let N={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(N.multiple=!0),n.props&&Object.assign(N,n.props),N}),M=N=>{n.allowCreate?(o("update:modelValue",N),o("change",N),s.value=N):c(N,"value",g.value,!0)};let y=W(n,"hintText"),m=l.ref(!1);const b=N=>{let B=N.target.value;$.value=!0,ee(y.value)||(m.value=!0),o("focus",B,N)},C=N=>{setTimeout(()=>{m.value&&(m.value=!1),$.value=!1},0);let B=N.target.value;n.maxLength&&B.length>Number(n.maxLength)&&(B=B.slice(0,Number(n.maxLength))),v.value?setTimeout(()=>{o("blur",B,N)},50):o("blur",B,N)},w=()=>{o("clear","")},v=l.ref(!1),q=N=>{v.value=N,o("visible-change",N)},E=N=>{o("remove-tag",N)},j=N=>{o("expand-change",N)},p=l.ref();return fe({focus:()=>{p?.value.focus()},blur:()=>{p?.value.blur()},getCheckedNodes:()=>p?.value.getCheckedNodes()}),()=>{const O={...a.attrs,ref:p,class:k.value,props:I.value,clearable:n.clearable,placeholder:u.placeholder.value,disabled:R.value||S.value,options:g.value,modelValue:s.value,onClear:w,onChange:M,onFocus:b,onBlur:C,onVisibleChange:q,onRemoveTag:E,expandChange:j};typeof A=="function"&&(O["remote-method"]=A,O.loading=V.value);const B={};a.slots.option&&(B.default=a.slots.option),a.slots.empty&&(B.empty=a.slots.empty);const T=[],F=l.h(h.ElCascader,O,B);T.push(F);const L={default:()=>T};if(a.slots.default){const z=a.slots.default();L.label=()=>z}const _={...ue(n,wr),hintText:y.value,hintVisible:m.value,prop:`${n.prop??a.attrs.name}_item`};return l.h(r,_,L)}}}}const{componentName:yo,create:po,scope:bo}=Y("cascader-item"),Sr=po(mo(yo,bo,ie)),$r={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function wo(e,t,r){return{props:{...ae,...ce,...$r},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),x=e,A=l.computed(()=>({[x]:!0})),V=y=>{g.value=y,o("update:modelValue",y),o("input",y)},$=y=>{o("change",y)};let R=W(n,"hintText"),S=l.ref(!1);const D=y=>{let b=y.target.value;s.value=!0,ee(R.value)||(S.value=!0),o("focus",b,y)},k=y=>{setTimeout(()=>{S.value&&(S.value=!1),s.value=!1},0);let b=y.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),o("blur",b,y)},I=()=>{o("clear","")},M=l.ref();return fe({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()}}),()=>{const m={...a.attrs,ref:M,class:A.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:d.value,readonly:c.value,modelValue:g.value,onClear:I,onChange:$,onInput:V,onFocus:D,onBlur:k},b={};a.slots.prepend&&(b.prepend=a.slots.prepend),a.slots.append&&(b.append=a.slots.append),a.slots.prefix&&(b.prefix=a.slots.prefix),a.slots.suffix&&(b.suffix=a.slots.suffix),a.slots.option&&(b.default=a.slots.option);const C=[],w=l.h(h.ElAutocomplete,m,b);C.push(w);const v={default:()=>C};if(a.slots.default){const p=a.slots.default();v.label=()=>p}const E={...ue(n,$r),hintText:R.value,hintVisible:S.value,prop:`${n.prop}_item`};return l.h(r,E,v)}}}}const{componentName:So,create:$o,scope:vo}=Y("autocomplete-item"),vr=$o(wo(So,vo,ie));function Eo(e,t,r,n,a){let o=[];Array.isArray(e)?o=e:o=[e];const i=[],u=t[0];if(Array.isArray(u))for(let s=0;s<t.length&&s<o.length;s++){let d=t[s],c=o[s];const g=d.find(x=>x[n]===c);if(!g)break;i.push(g[r])}else{let s=t;for(let d=0;s&&d<o.length;d++){let c=o[d],g=s.find(x=>x[n]===c);if(!g)break;i.push(g[r]),s=g[a]}}return i}let xo=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Se(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}};function Co(){const e=l.getCurrentInstance();return new xo(e.proxy)}const Er={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},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,Boolean,Number,Array],required:!1,default:"/"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"}};function Oo(e,t){return{props:{...Er},setup(r,{attrs:n}){const a=Co(),o=l.ref([]);l.watch([()=>r.source,()=>r.params],async([s,d])=>{o.value=await a.load(r.sourceType,s,d)},{immediate:!0});const i=l.computed(()=>{if(!Array.isArray(o.value)||o.value.length===0)return"";let s=Eo(r.modelValue,o.value,r.textKey,r.valueKey,r.childrenKey);return s.length==0?"":s.length===1?s[0]:s.join(r.separator)}),u=r.resolveTag?l.resolveComponent(r.tag):r.tag;return()=>{const s={...n};return r.resolveTag?l.h(u,s,{default:()=>i.value}):l.h(u,s,i.value)}}}}const{componentName:Ki,create:To,scope:zi}=Y("mapping"),zt=To(Oo());function Vo(e,t){let r=t.split("."),n=e;for(let a=0;a<r.length;a++){let o=r[a],i=0,u=o.indexOf("["),s=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=o.substring(u+1,s);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let g=o.substring(0,u);n=n[g][c]}else n=n[c];i++}u=o.indexOf("[",s),s=u==-1?-1:o.indexOf("]",u)}i===0&&(n=n[o])}return n}function Io(e,t){return{props:{...Er},setup(r,{attrs:n}){return()=>{const a={default:o=>{const i=Vo(o.row,o.column.property);return l.h(zt,{...r,modelValue:i})}};return l.h(h.ElTableColumn,{...n},a)}}}}const{componentName:Gi,create:No,scope:Yi}=Y("table-mapping-column"),xr=No(Io());let Ao=class{proxy;constructor(t){this.proxy=t}async load(t,r,n,a,o,i,u){if(Array.isArray(r)){let d=(n-1)*a,c=d+a;c>r.length&&(c=r.length);const g=r.slice(d,c);return{totalSize:r.length,page:g}}if(typeof r=="function")return await Reflect.apply(r,null,[n,a,o,i,u]);const s=Ae(this.proxy,t);return s===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Se(o)&&l.isReactive(o)&&(o=l.toRaw(o)),await await Reflect.apply(s,null,[r,n,a,o,i,u]))}};function Ro(){const e=l.getCurrentInstance();return new Ao(e.proxy)}function ko(e,t){let r=t.split("."),n=e;for(let a=0;a<r.length;a++){let o=r[a],i=0,u=o.indexOf("["),s=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=o.substring(u+1,s);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let g=o.substring(0,u);n=n[g][c]}else n=n[c];i++}u=o.indexOf("[",s),s=u==-1?-1:o.indexOf("]",u)}i===0&&(n=n[o])}return n}function Gt(e,t){return e.filter(n=>{for(let a in t){const o=t[a],i=ko(n,a);if(o!==i)return!1}return!0})}const Cr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]}},Or={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationVisible:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}};function jo(e,t,r){return{inheritAttrs:!1,props:{...ae,...ce,...Cr,...Or},emits:["change","page-size-change","page-index-change","current-change","loaded-data"],setup(n,a){const{locale:o}=ye.useFoxI18n(t),{emitEvent:i}=oe({componentName:e,validateHandler:{getValue(...v){return S.value}}},n.prop??a.attrs.name),u=e,s=l.computed(()=>({[u]:!0})),d=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),c=l.ref(n.pageIndex);l.watch(()=>n.pageIndex,v=>{c.value=v});const g=v=>{c.value=v,i("page-index-change",v)},x=l.ref(n.pageSize);l.watch(()=>n.pageSize,v=>{x.value=v});const A=v=>{x.value=v,i("page-size-change",v)},V=l.shallowRef({}),$=l.computed(()=>({...V.value,...n.params??{},...n.baseParams??{}})),R=l.ref(0),S=l.ref(),D=Ro();let k=!0;const I=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:re(n.autoLoad),M=async(v,q,E,j)=>{try{const p=await D.load("table",v,q,E,j,k,o.value);R.value=p.totalSize,S.value=p.page}catch(p){console.error("[FoxUI] Load Table Data Fail",p),R.value=0,S.value=[]}k=!1,setTimeout(()=>{i("loaded-data")},250)};l.watch([c,x],([v,q],[E,j])=>{q!==j&&(c.value=1,v=1),M(n.data,v,q,$.value)}),l.watch([()=>n.data,$],([v,q],[E,j])=>{I()&&(v!==E&&(k=!0),!(Ne(v,E)&&Ne(q,j))&&M(v,c.value,x.value,q))});const y=(v={})=>new Promise(q=>{V.value=l.toRaw(v??{}),l.triggerRef(V),l.nextTick(async()=>{await M(n.data,c.value,x.value,$.value),q()})}),m=()=>{R.value=0,S.value=[]};I()&&y();let b=null;const C=(v,q)=>{b=v,i("current-change",v,q)},w=l.ref();return fe({clearSelection:()=>w?.value.clearSelection(),getSelectionRows:()=>w?.value.getSelectionRows(),toggleRowSelection:(v,q)=>{w?.value.toggleRowSelection(v,q)},toggleRowSelectionByProp:(v,q)=>{if(!S.value)return;const E=Gt(S.value,v);E.length!==0&&E.forEach(j=>{w?.value.toggleRowSelection(j,q)})},toggleAllSelection:()=>{w?.value.toggleAllSelection()},toggleRowExpansion:(v,q)=>{w?.value.toggleRowExpansion(v,q)},toggleRowExpansionByProp:(v,q)=>{if(!S.value)return;const E=Gt(S.value,v);E.length!==0&&E.forEach(j=>{w?.value.toggleRowExpansion(j,q)})},setCurrentRow:v=>{w?.value.setCurrentRow(v)},setCurrentRowByProp:v=>{if(!S.value)return;const q=Gt(S.value,v);q.length!==0&&w?.value.setCurrentRow(q[0])},getCurrentRow:()=>b,clearSort:()=>{w?.value.clearSort()},clearFilter:v=>{w?.value.clearFilter(v)},doLayout:()=>{w?.value.doLayout()},sort:(v,q)=>{w?.value.sort(v,q)},scrollTo:(v,q)=>{w?.value.scrollTo(v,q)},setScrollTop:v=>{w?.value.setScrollTop(v)},setScrollLeft:v=>{w?.value.setScrollLeft(v)},loadData:y,clearData:m,getData(){return S.value},getTotalSize(){return R.value},getPageIndex(){return c.value},getPageSize(){return x.value}}),()=>{const q={...a.attrs,onCurrentChange:C,data:S.value,ref:w,class:s.value},E={};a.slots.default&&(E.default=a.slots.default),a.slots.append&&(E.append=a.slots.append),a.slots.empty&&(E.empty=a.slots.empty);const j=[],p=l.h(h.ElTable,q,E);if(j.push(p),typeof a.slots.pagination=="function"){const F=a.slots.pagination();j.push(F)}else if(n.paginationVisible){const F={class:d.value,total:R.value,pageSize:x.value,["onUpdate:pageSize"]:A,pageSizes:n.pageSizes,currentPage:c.value,["onUpdate:currentPage"]:g,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},L=l.h(h.ElPagination,F);j.push(L)}const N={default:()=>j},B={...ue(n,Cr,Or),prop:`${n.prop}_item`};return B.contentClass=`${u}__wrap`,l.h(r,B,N)}}}}const{componentName:Mo,create:Do,scope:qo}=Y("table-item"),Tr=Do(jo(Mo,qo,ie));function Pe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Je(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}let Bo=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Se(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}};function Fo(){const e=l.getCurrentInstance();return new Bo(e.proxy)}function Vr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Pe(e,t),a=Pe(e,r);if(n!==a)return!1;const o=Je(e,t),i=Je(e,r);return o===i}function Lo(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;let a=null;for(let o of n){let i=!1;if(r==="text")i=Pe(e,o)===t;else if(r==="item")i=Vr(e,o,t);else{let u=Je(e,o);u==null&&(u=Pe(e,o)),i=u===t}if(i){a=o;break}}return a}function Po(e){return{text:e,value:e}}const Ir={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemClass:{type:[String],required:!1}};function _o(e,t,r){return{inheritAttrs:!0,props:{...ae,...ce,...Ir},emits:["change","update:modelValue"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),i=l.ref(null),u=l.ref(null),s=(k,I,M,y=!0)=>{const m=Lo(n,k,I,M);if(m===null){if(u.value===null)return;u.value=null,i.value=null,y&&(o("update:modelValue",null),o("change",null));return}if(!Vr(n,m,u.value)){i.value=k;const C=l.toRaw(m);u.value=C;let w=null;n.valueType==="text"?w=Pe(n,C):n.valueType==="item"?w=C:w=Je(n,C),y&&(o("update:modelValue",w),o("change",w))}},d=l.ref([]),c=Fo();l.watch([()=>n.source,()=>n.params],async([k,I])=>{if(k){const M=await c.load("radio",k,I);if(M.length>0)if(typeof M[0]=="string"){let b=M.map(C=>Po(C));d.value=b}else d.value=M}},{immediate:!0}),l.watch([()=>d.value,()=>n.modelValue],([k,I])=>{s(I,n.valueType,k,!1)});const g=he(l.computed(()=>n.disabled)),x=de(l.computed(()=>n.readonly)),A=e,V=l.computed(()=>({[A]:!0})),$=k=>{s(k,"value",d.value,!0)};let R=W(n,"hintText"),S=W(n,"hintVisible");const D=(k,I)=>{const M=[];return k.forEach((y,m)=>{const b=Je(n,y),C=Pe(n,y),w=re(y.disabled),q={key:`${b}_${m}`,class:n.itemClass,label:b,disabled:w,size:n.size,border:re(n.border)};n.itemType==="button"?M.push(l.h(h.ElRadioButton,q,{default:()=>[C]})):typeof I=="function"?M.push(l.h(h.ElRadio,q,{default:()=>I(y)})):M.push(l.h(h.ElRadio,q,{default:()=>[C]}))}),M};return()=>{const I={...a.attrs,class:V.value,disabled:g.value||x.value,modelValue:i.value,["text-color"]:n.textColor,fill:n.fill,onChange:$},M=[],y={};a.slots.options?y.default=a.slots.options:y.default=()=>D(d.value,a.slots.text);const m=l.h(h.ElRadioGroup,I,y);M.push(m);const b={default:()=>M};if(a.slots.default){const q=a.slots.default();b.label=()=>q}const w={...ue(n,Ir),hintText:R.value,hintVisible:S.value,prop:`${n.prop??a.attrs.name}_item`};return l.h(r,w,b)}}}}const{componentName:Ho,create:Ko,scope:zo}=Y("radio-item"),Nr=Ko(_o(Ho,zo,ie));function _e(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function He(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class Go{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Se(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}}function Yo(){const e=l.getCurrentInstance();return new Go(e.proxy)}function Ar(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=_e(e,t),a=_e(e,r);if(n!==a)return!1;const o=He(e,t),i=He(e,r);return o===i}function Wo(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(o=>{for(let i of n){let u=!1;if(r==="text")u=_e(e,i)===o;else if(r==="item")u=Ar(e,i,o);else{let s=He(e,i);s==null&&(s=_e(e,i)),u=s===o}if(u){a.push(i);break}}}),a}function Uo(e){return{text:e,value:e}}const Rr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemClass:{type:[String],required:!1}};function Xo(e,t,r){return{inheritAttrs:!1,props:{...ae,...ce,...Rr},emits:["change","update:modelValue"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),i=l.ref([]),u=l.ref([]),s=(k,I,M,y=!0)=>{const m=Wo(n,k,I,M);if(m===null){if(u.value===null||u.value.length===0)return;i.value=[],u.value=[],y&&(o("update:modelValue",[]),o("change",[]));return}let b=!0;if(m.length!==u.value.length)b=!1;else for(let C=0;C<m.length;C++){const w=m[C],v=u.value[C];if(!Ar(n,w,v)){b=!1;break}}if(!b){u.value=m;let C=[],w=[];m.forEach(q=>{C.push(He(n,q)),n.valueType==="text"?w.push(_e(n,q)):n.valueType==="item"?w.push(q):w.push(He(n,q))}),i.value=C;const v=l.toRaw(w);y&&(o("update:modelValue",v),o("change",v))}},d=l.ref([]),c=Yo();l.watch([()=>n.source,()=>n.params],async([k,I])=>{if(k){const M=await c.load("checkbox",k,I);if(M.length>0)if(typeof M[0]=="string"){let b=M.map(C=>Uo(C));d.value=b}else d.value=M}},{immediate:!0}),l.watch([()=>d.value,()=>n.modelValue],([k,I])=>{s(I,n.valueType,k,!1)});const g=he(l.computed(()=>n.disabled)),x=de(l.computed(()=>n.readonly)),A=e,V=l.computed(()=>({[A]:!0})),$=k=>{s(k,"value",d.value,!0)};let R=W(n,"hintText"),S=W(n,"hintVisible");const D=(k,I)=>{const M=[];return k.forEach((y,m)=>{const b=He(n,y),C=_e(n,y),w=re(y.disabled),q={key:`${b}_${m}`,class:n.itemClass,label:b,disabled:w,size:n.size,border:re(n.border)};n.itemType==="button"?M.push(l.h(h.ElCheckboxButton,q,{default:()=>[C]})):typeof I=="function"?M.push(l.h(h.ElCheckbox,q,{default:()=>I(y)})):M.push(l.h(h.ElCheckbox,q,{default:()=>[C]}))}),M};return()=>{const I={...a.attrs,class:V.value,disabled:g.value||x.value,modelValue:i.value,["text-color"]:n.textColor,fill:n.fill,max:Z(n.max),min:Z(n.min),onChange:$},M=[],y={};a.slots.options?y.default=a.slots.options:y.default=()=>D(d.value,a.slots.text);const m=l.h(h.ElCheckboxGroup,I,y);M.push(m);const b={default:()=>M};if(a.slots.default){const q=a.slots.default();b.label=()=>q}const w={...ue(n,Rr),hintText:R.value,hintVisible:S.value,prop:`${n.prop??a.attrs.name}_item`};return l.h(r,w,b)}}}}const{componentName:Zo,create:Jo,scope:Qo}=Y("checkbox-item"),kr=Jo(Xo(Zo,Qo,ie)),jr={modelValue:{type:[Number,String],required:!1}};function ei(e,t,r){return{props:{...ae,...ce,...jr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),i=he(l.computed(()=>n.disabled)),u=de(l.computed(()=>n.readonly)),s=W(n,"modelValue",$=>Z($)),d=e,c=l.computed(()=>({[d]:!0})),g=$=>{o("update:modelValue",$),o("change",$)};let x=W(n,"hintText"),A=l.ref(!1);const V=l.ref();return fe({}),()=>{const R={...a.attrs,ref:V,class:c.value,readonly:u.value||i.value,modelValue:s.value,onChange:g},S={},D=[],k=l.h(h.ElRate,R,S);D.push(k);const I={default:()=>D};if(a.slots.default){const b=a.slots.default();I.label=()=>b}const y={...ue(n,jr),hintText:x.value,hintVisible:A.value,prop:`${n.prop}_item`};return l.h(r,y,I)}}}}const{componentName:ti,create:ni,scope:ri}=Y("rate-item"),Mr=ni(ei(ti,ri,ie)),Dr={modelValue:{type:[Boolean,String,Number],required:!1}};function ai(e,t,r){return{props:{...ae,...ce,...Dr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),i=he(l.computed(()=>n.disabled)),u=de(l.computed(()=>n.readonly)),s=W(n,"modelValue"),d=e,c=l.computed(()=>({[d]:!0})),g=$=>{o("update:modelValue",$),o("change",$)};let x=W(n,"hintText"),A=W(n,"hintVisible");const V=l.ref();return fe({}),()=>{const R={...a.attrs,ref:V,class:c.value,readonly:u.value,disabled:i.value,modelValue:s.value,onChange:g},S={},D=[],k=l.h(h.ElSwitch,R,S);D.push(k);const I={default:()=>D};if(a.slots.default){const b=a.slots.default();I.label=()=>b}const y={...ue(n,Dr),hintText:x.value,hintVisible:A.value,prop:`${n.prop}_item`};return l.h(r,y,I)}}}}const{componentName:li,create:oi,scope:ii}=Y("switch-item"),qr=oi(ai(li,ii,ie)),si=Symbol.for("InnerPageScopeKey"),ui=Symbol.for("DialogItemStateKey");function ci(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(r,n){l.provide(si,!0);const a={};l.provide(ui,a);const o=s=>{typeof a.beforeClose=="function"&&a.beforeClose(s)},i=l.ref(!0),u=s=>{i.value=s};return()=>{const d={...n.attrs,title:r.title,draggable:r.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":o},c={};if(typeof n.slots.default=="function"){const g=n.slots.default();c.default=()=>g}return l.h(h.ElDialog,d,c)}}}}const{componentName:Wi,create:fi,scope:Ui}=Y("dialog-item"),Br=fi(ci()),{componentName:Xi,create:di}=Y("ext-icon"),Fr=di({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(e,{emit:t,slots:r}){const n=i=>{t("click",i)},a=l.computed(()=>e.name?e.name.indexOf("/")!==-1:!1),o="fox-icon";return()=>{const i=a.value;return l.h(i?"img":e.tag,{class:i?`${o}__img`:`${e.fontClassName} ${o} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:K(e.size),width:K(e.size),height:K(e.size)},onClick:n,src:i?e.name:""},r.default?.())}}});function hi(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""}},setup(r,{slots:n}){const a=e,o=l.computed(()=>({[a]:!0})),i=l.computed(()=>({[`${a}__mark`]:!0,[`${a}__mark-${r.type}`]:!0})),u=l.computed(()=>r.color?{background:r.color}:null),s=l.computed(()=>({[`${a}__text`]:!0,[`${a}__text-${r.type}`]:!0})),d=l.computed(()=>r.color?{color:r.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const $={class:i.value,style:u.value};c=l.h("div",$)}const g={class:s.value,style:d.value},x=n.default?n.default():[],A=l.h("div",g,x),V={class:o.value};return l.h("div",V,[c,A])}}}}const{componentName:gi,create:mi,scope:Zi}=Y("indicator"),Lr=mi(hi(gi));var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Yt={},yi={get exports(){return Yt},set exports(e){Yt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){var r=1e3,n=6e4,a=36e5,o="millisecond",i="second",u="minute",s="hour",d="day",c="week",g="month",x="quarter",A="year",V="date",$="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={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("_")},k=function(E,j,p){var N=String(E);return!N||N.length>=j?E:""+Array(j+1-N.length).join(p)+E},I={s:k,z:function(E){var j=-E.utcOffset(),p=Math.abs(j),N=Math.floor(p/60),O=p%60;return(j<=0?"+":"-")+k(N,2,"0")+":"+k(O,2,"0")},m:function E(j,p){if(j.date()<p.date())return-E(p,j);var N=12*(p.year()-j.year())+(p.month()-j.month()),O=j.clone().add(N,g),B=p-O<0,T=j.clone().add(N+(B?-1:1),g);return+(-(N+(p-O)/(B?O-T:T-O))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:g,y:A,w:c,d,D:V,h:s,m:u,s:i,ms:o,Q:x}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},M="en",y={};y[M]=D;var m=function(E){return E instanceof v},b=function E(j,p,N){var O;if(!j)return M;if(typeof j=="string"){var B=j.toLowerCase();y[B]&&(O=B),p&&(y[B]=p,O=B);var T=j.split("-");if(!O&&T.length>1)return E(T[0])}else{var F=j.name;y[F]=j,O=F}return!N&&O&&(M=O),O||!N&&M},C=function(E,j){if(m(E))return E.clone();var p=typeof j=="object"?j:{};return p.date=E,p.args=arguments,new v(p)},w=I;w.l=b,w.i=m,w.w=function(E,j){return C(E,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var v=function(){function E(p){this.$L=b(p.locale,null,!0),this.parse(p)}var j=E.prototype;return j.parse=function(p){this.$d=function(N){var O=N.date,B=N.utc;if(O===null)return new Date(NaN);if(w.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var T=O.match(R);if(T){var F=T[2]-1||0,L=(T[7]||"0").substring(0,3);return B?new Date(Date.UTC(T[1],F,T[3]||1,T[4]||0,T[5]||0,T[6]||0,L)):new Date(T[1],F,T[3]||1,T[4]||0,T[5]||0,T[6]||0,L)}}return new Date(O)}(p),this.$x=p.x||{},this.init()},j.init=function(){var p=this.$d;this.$y=p.getFullYear(),this.$M=p.getMonth(),this.$D=p.getDate(),this.$W=p.getDay(),this.$H=p.getHours(),this.$m=p.getMinutes(),this.$s=p.getSeconds(),this.$ms=p.getMilliseconds()},j.$utils=function(){return w},j.isValid=function(){return this.$d.toString()!==$},j.isSame=function(p,N){var O=C(p);return this.startOf(N)<=O&&O<=this.endOf(N)},j.isAfter=function(p,N){return C(p)<this.startOf(N)},j.isBefore=function(p,N){return this.endOf(N)<C(p)},j.$g=function(p,N,O){return w.u(p)?this[N]:this.set(O,p)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(p,N){var O=this,B=!!w.u(N)||N,T=w.p(p),F=function(J,X){var me=w.w(O.$u?Date.UTC(O.$y,X,J):new Date(O.$y,X,J),O);return B?me:me.endOf(d)},L=function(J,X){return w.w(O.toDate()[J].apply(O.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(X)),O)},P=this.$W,_=this.$M,G=this.$D,z="set"+(this.$u?"UTC":"");switch(T){case A:return B?F(1,0):F(31,11);case g:return B?F(1,_):F(0,_+1);case c:var se=this.$locale().weekStart||0,te=(P<se?P+7:P)-se;return F(B?G-te:G+(6-te),_);case d:case V:return L(z+"Hours",0);case s:return L(z+"Minutes",1);case u:return L(z+"Seconds",2);case i:return L(z+"Milliseconds",3);default:return this.clone()}},j.endOf=function(p){return this.startOf(p,!1)},j.$set=function(p,N){var O,B=w.p(p),T="set"+(this.$u?"UTC":""),F=(O={},O[d]=T+"Date",O[V]=T+"Date",O[g]=T+"Month",O[A]=T+"FullYear",O[s]=T+"Hours",O[u]=T+"Minutes",O[i]=T+"Seconds",O[o]=T+"Milliseconds",O)[B],L=B===d?this.$D+(N-this.$W):N;if(B===g||B===A){var P=this.clone().set(V,1);P.$d[F](L),P.init(),this.$d=P.set(V,Math.min(this.$D,P.daysInMonth())).$d}else F&&this.$d[F](L);return this.init(),this},j.set=function(p,N){return this.clone().$set(p,N)},j.get=function(p){return this[w.p(p)]()},j.add=function(p,N){var O,B=this;p=Number(p);var T=w.p(N),F=function(_){var G=C(B);return w.w(G.date(G.date()+Math.round(_*p)),B)};if(T===g)return this.set(g,this.$M+p);if(T===A)return this.set(A,this.$y+p);if(T===d)return F(1);if(T===c)return F(7);var L=(O={},O[u]=n,O[s]=a,O[i]=r,O)[T]||1,P=this.$d.getTime()+p*L;return w.w(P,this)},j.subtract=function(p,N){return this.add(-1*p,N)},j.format=function(p){var N=this,O=this.$locale();if(!this.isValid())return O.invalidDate||$;var B=p||"YYYY-MM-DDTHH:mm:ssZ",T=w.z(this),F=this.$H,L=this.$m,P=this.$M,_=O.weekdays,G=O.months,z=function(X,me,Oe,Te){return X&&(X[me]||X(N,B))||Oe[me].slice(0,Te)},se=function(X){return w.s(F%12||12,X,"0")},te=O.meridiem||function(X,me,Oe){var Te=X<12?"AM":"PM";return Oe?Te.toLowerCase():Te},J={YY:String(this.$y).slice(-2),YYYY:this.$y,M:P+1,MM:w.s(P+1,2,"0"),MMM:z(O.monthsShort,P,G,3),MMMM:z(G,P),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:z(O.weekdaysMin,this.$W,_,2),ddd:z(O.weekdaysShort,this.$W,_,3),dddd:_[this.$W],H:String(F),HH:w.s(F,2,"0"),h:se(1),hh:se(2),a:te(F,L,!0),A:te(F,L,!1),m:String(L),mm:w.s(L,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:T};return B.replace(S,function(X,me){return me||J[X]||T.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(p,N,O){var B,T=w.p(N),F=C(p),L=(F.utcOffset()-this.utcOffset())*n,P=this-F,_=w.m(this,F);return _=(B={},B[A]=_/12,B[g]=_,B[x]=_/3,B[c]=(P-L)/6048e5,B[d]=(P-L)/864e5,B[s]=P/a,B[u]=P/n,B[i]=P/r,B)[T]||P,O?_:w.a(_)},j.daysInMonth=function(){return this.endOf(g).$D},j.$locale=function(){return y[this.$L]},j.locale=function(p,N){if(!p)return this.$L;var O=this.clone(),B=b(p,N,!0);return B&&(O.$L=B),O},j.clone=function(){return w.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},E}(),q=v.prototype;return C.prototype=q,[["$ms",o],["$s",i],["$m",u],["$H",s],["$W",d],["$M",g],["$y",A],["$D",V]].forEach(function(E){q[E[1]]=function(j){return this.$g(j,E[0],E[1])}}),C.extend=function(E,j){return E.$i||(E(j,v,C),E.$i=!0),C},C.locale=b,C.isDayjs=m,C.unix=function(E){return C(1e3*E)},C.en=y[M],C.Ls=y,C.p={},C})})(yi);const Ce=Yt;var Wt={},pi={get exports(){return Wt},set exports(e){Wt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function($){return($=+$)+($>68?1900:2e3)},d=function($){return function(R){this[$]=+R}},c=[/[+-]\d\d:?(\d\d)?|Z/,function($){(this.zone||(this.zone={})).offset=function(R){if(!R||R==="Z")return 0;var S=R.match(/([+-]|\d\d)/g),D=60*S[1]+(+S[2]||0);return D===0?0:S[0]==="+"?-D:D}($)}],g=function($){var R=u[$];return R&&(R.indexOf?R:R.s.concat(R.f))},x=function($,R){var S,D=u.meridiem;if(D){for(var k=1;k<=24;k+=1)if($.indexOf(D(k,0,R))>-1){S=k>12;break}}else S=$===(R?"pm":"PM");return S},A={A:[i,function($){this.afternoon=x($,!1)}],a:[i,function($){this.afternoon=x($,!0)}],S:[/\d/,function($){this.milliseconds=100*+$}],SS:[a,function($){this.milliseconds=10*+$}],SSS:[/\d{3}/,function($){this.milliseconds=+$}],s:[o,d("seconds")],ss:[o,d("seconds")],m:[o,d("minutes")],mm:[o,d("minutes")],H:[o,d("hours")],h:[o,d("hours")],HH:[o,d("hours")],hh:[o,d("hours")],D:[o,d("day")],DD:[a,d("day")],Do:[i,function($){var R=u.ordinal,S=$.match(/\d+/);if(this.day=S[0],R)for(var D=1;D<=31;D+=1)R(D).replace(/\[|\]/g,"")===$&&(this.day=D)}],M:[o,d("month")],MM:[a,d("month")],MMM:[i,function($){var R=g("months"),S=(g("monthsShort")||R.map(function(D){return D.slice(0,3)})).indexOf($)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[i,function($){var R=g("months").indexOf($)+1;if(R<1)throw new Error;this.month=R%12||R}],Y:[/[+-]?\d+/,d("year")],YY:[a,function($){this.year=s($)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function V($){var R,S;R=$,S=u&&u.formats;for(var D=($=R.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,w,v){var q=v&&v.toUpperCase();return w||S[v]||r[v]||S[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(E,j,p){return j||p.slice(1)})})).match(n),k=D.length,I=0;I<k;I+=1){var M=D[I],y=A[M],m=y&&y[0],b=y&&y[1];D[I]=b?{regex:m,parser:b}:M.replace(/^\[|\]$/g,"")}return function(C){for(var w={},v=0,q=0;v<k;v+=1){var E=D[v];if(typeof E=="string")q+=E.length;else{var j=E.regex,p=E.parser,N=C.slice(q),O=j.exec(N)[0];p.call(w,O),C=C.replace(O,"")}}return function(B){var T=B.afternoon;if(T!==void 0){var F=B.hours;T?F<12&&(B.hours+=12):F===12&&(B.hours=0),delete B.afternoon}}(w),w}}return function($,R,S){S.p.customParseFormat=!0,$&&$.parseTwoDigitYear&&(s=$.parseTwoDigitYear);var D=R.prototype,k=D.parse;D.parse=function(I){var M=I.date,y=I.utc,m=I.args;this.$u=y;var b=m[1];if(typeof b=="string"){var C=m[2]===!0,w=m[3]===!0,v=C||w,q=m[2];w&&(q=m[2]),u=this.$locale(),!C&&q&&(u=S.Ls[q]),this.$d=function(N,O,B){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*N);var T=V(O)(N),F=T.year,L=T.month,P=T.day,_=T.hours,G=T.minutes,z=T.seconds,se=T.milliseconds,te=T.zone,J=new Date,X=P||(F||L?1:J.getDate()),me=F||J.getFullYear(),Oe=0;F&&!L||(Oe=L>0?L-1:J.getMonth());var Te=_||0,nn=G||0,rn=z||0,an=se||0;return te?new Date(Date.UTC(me,Oe,X,Te,nn,rn,an+60*te.offset*1e3)):B?new Date(Date.UTC(me,Oe,X,Te,nn,rn,an)):new Date(me,Oe,X,Te,nn,rn,an)}catch{return new Date("")}}(M,b,y),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),v&&M!=this.format(b)&&(this.$d=new Date("")),u={}}else if(b instanceof Array)for(var E=b.length,j=1;j<=E;j+=1){m[1]=b[j-1];var p=S.apply(this,m);if(p.isValid()){this.$d=p.$d,this.$L=p.$L,this.init();break}j===E&&(this.$d=new Date(""))}else k.call(this,I)}}})})(pi);const bi=Wt;var Ut={},wi={get exports(){return Ut},set exports(e){Ut=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n,a){var o=n.prototype,i=o.format;a.en.ordinal=function(u){var s=["th","st","nd","rd"],d=u%100;return"["+u+(s[(d-20)%10]||s[d]||s[0])+"]"},o.format=function(u){var s=this,d=this.$locale();if(!this.isValid())return i.bind(this)(u);var c=this.$utils(),g=(u||"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(x){switch(x){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return d.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return d.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),x==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),x==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),x==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return x}});return i.bind(this)(g)}}})})(wi);const Si=Ut;var Xt={},$i={get exports(){return Xt},set exports(e){Xt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n,a){var o=n.prototype,i=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,x,A,V,$){var R=g.name?g:g.$locale(),S=i(R[x]),D=i(R[A]),k=S||D.map(function(M){return M.slice(0,V)});if(!$)return k;var I=R.weekStart;return k.map(function(M,y){return k[(y+(I||0))%7]})},s=function(){return a.Ls[a.locale()]},d=function(g,x){return g.formats[x]||function(A){return A.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(V,$,R){return $||R.slice(1)})}(g.formats[x.toUpperCase()])},c=function(){var g=this;return{months:function(x){return x?x.format("MMMM"):u(g,"months")},monthsShort:function(x){return x?x.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(x){return x?x.format("dddd"):u(g,"weekdays")},weekdaysMin:function(x){return x?x.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(x){return x?x.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(x){return d(g.$locale(),x)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},a.localeData=function(){var g=s();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(x){return d(g,x)},meridiem:g.meridiem,ordinal:g.ordinal}},a.months=function(){return u(s(),"months")},a.monthsShort=function(){return u(s(),"monthsShort","months",3)},a.weekdays=function(g){return u(s(),"weekdays",null,null,g)},a.weekdaysShort=function(g){return u(s(),"weekdaysShort","weekdays",3,g)},a.weekdaysMin=function(g){return u(s(),"weekdaysMin","weekdays",2,g)}}})})($i);const vi=Xt;var Zt={},Ei={get exports(){return Zt},set exports(e){Zt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){var r="week",n="year";return function(a,o,i){var u=o.prototype;u.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 c=i(this).startOf(n).add(1,n).date(d),g=i(this).endOf(r);if(c.isBefore(g))return 1}var x=i(this).startOf(n).date(d).startOf(r).subtract(1,"millisecond"),A=this.diff(x,r,!0);return A<0?i(this).startOf("week").week():Math.ceil(A)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(Ei);const xi=Zt;var Jt={},Ci={get exports(){return Jt},set exports(e){Jt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n){n.prototype.weekYear=function(){var a=this.month(),o=this.week(),i=this.year();return o===1&&a===11?i+1:a===0&&o>=52?i-1:i}}})})(Ci);const Oi=Jt;var Qt={},Ti={get exports(){return Qt},set exports(e){Qt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n,a){n.prototype.dayOfYear=function(o){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return o==null?i:this.add(o-i,"day")}}})})(Ti);const Vi=Qt;var en={},Ii={get exports(){return en},set exports(e){en=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n){n.prototype.isSameOrAfter=function(a,o){return this.isSame(a,o)||this.isAfter(a,o)}}})})(Ii);const Ni=en;var tn={},Ai={get exports(){return tn},set exports(e){tn=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n){n.prototype.isSameOrBefore=function(a,o){return this.isSame(a,o)||this.isBefore(a,o)}}})})(Ai);const Ri=tn;Ce.extend(vi),Ce.extend(Si),Ce.extend(bi),Ce.extend(xi),Ce.extend(Oi),Ce.extend(Vi),Ce.extend(Ni),Ce.extend(Ri);const Pr=10;function ki(e,t){return e>t&&e>Pr?"horizontal":t>e&&t>Pr?"vertical":""}function ji(){const e=l.ref(0),t=l.ref(0),r=l.ref(0),n=l.ref(0),a=l.ref(0),o=l.ref(0),i=l.ref(0),u=l.ref(0),s=l.ref(0),d=l.ref(0),c=l.ref(""),g=()=>c.value==="vertical",x=()=>c.value==="horizontal",A=()=>{i.value=0,u.value=0,s.value=0,d.value=0,c.value="",r.value=0};return{move:R=>{const S=R.touches[0];i.value=S.clientX-e.value,u.value=S.clientY-t.value,a.value=S.clientX,o.value=S.clientY,s.value=Math.abs(i.value),d.value=Math.abs(u.value),n.value=Date.now()-r.value,c.value||(c.value=ki(s.value,d.value))},start:R=>{A(),e.value=R.touches[0].clientX,t.value=R.touches[0].clientY,r.value=Date.now()},reset:A,startX:e,startY:t,startTime:r,duration:n,moveX:a,moveY:o,deltaX:i,deltaY:u,offsetX:s,offsetY:d,direction:c,isVertical:g,isHorizontal:x}}const Mi=[Bn,Fn,Ln,Pn,Kn,ie,Un,Xn,yt,Jn,rr,lr,ir,ur,mr,pr,Sr,vr,xr,Tr,Nr,kr,Mr,qr,Br,zt,mt,Fr,Lr],Di=new Ca(Mi,[Va],"4.0.0");Object.defineProperty(f,"FoxAffix",{enumerable:!0,get:()=>h.ElAffix}),Object.defineProperty(f,"FoxAlert",{enumerable:!0,get:()=>h.ElAlert}),Object.defineProperty(f,"FoxAside",{enumerable:!0,get:()=>h.ElAside}),Object.defineProperty(f,"FoxAutoResizer",{enumerable:!0,get:()=>h.ElAutoResizer}),Object.defineProperty(f,"FoxAutocomplete",{enumerable:!0,get:()=>h.ElAutocomplete}),Object.defineProperty(f,"FoxAvatar",{enumerable:!0,get:()=>h.ElAvatar}),Object.defineProperty(f,"FoxBacktop",{enumerable:!0,get:()=>h.ElBacktop}),Object.defineProperty(f,"FoxBadge",{enumerable:!0,get:()=>h.ElBadge}),Object.defineProperty(f,"FoxBreadcrumb",{enumerable:!0,get:()=>h.ElBreadcrumb}),Object.defineProperty(f,"FoxBreadcrumbItem",{enumerable:!0,get:()=>h.ElBreadcrumbItem}),Object.defineProperty(f,"FoxButton",{enumerable:!0,get:()=>h.ElButton}),Object.defineProperty(f,"FoxButtonGroup",{enumerable:!0,get:()=>h.ElButtonGroup}),Object.defineProperty(f,"FoxCalendar",{enumerable:!0,get:()=>h.ElCalendar}),Object.defineProperty(f,"FoxCard",{enumerable:!0,get:()=>h.ElCard}),Object.defineProperty(f,"FoxCarousel",{enumerable:!0,get:()=>h.ElCarousel}),Object.defineProperty(f,"FoxCarouselItem",{enumerable:!0,get:()=>h.ElCarouselItem}),Object.defineProperty(f,"FoxCascader",{enumerable:!0,get:()=>h.ElCascader}),Object.defineProperty(f,"FoxCascaderPanel",{enumerable:!0,get:()=>h.ElCascaderPanel}),Object.defineProperty(f,"FoxCheckTag",{enumerable:!0,get:()=>h.ElCheckTag}),Object.defineProperty(f,"FoxCheckbox",{enumerable:!0,get:()=>h.ElCheckbox}),Object.defineProperty(f,"FoxCheckboxButton",{enumerable:!0,get:()=>h.ElCheckboxButton}),Object.defineProperty(f,"FoxCheckboxGroup",{enumerable:!0,get:()=>h.ElCheckboxGroup}),Object.defineProperty(f,"FoxCol",{enumerable:!0,get:()=>h.ElCol}),Object.defineProperty(f,"FoxCollapse",{enumerable:!0,get:()=>h.ElCollapse}),Object.defineProperty(f,"FoxCollapseItem",{enumerable:!0,get:()=>h.ElCollapseItem}),Object.defineProperty(f,"FoxCollapseTransition",{enumerable:!0,get:()=>h.ElCollapseTransition}),Object.defineProperty(f,"FoxColorPicker",{enumerable:!0,get:()=>h.ElColorPicker}),Object.defineProperty(f,"FoxConfigProvider",{enumerable:!0,get:()=>h.ElConfigProvider}),Object.defineProperty(f,"FoxContainer",{enumerable:!0,get:()=>h.ElContainer}),Object.defineProperty(f,"FoxDatePicker",{enumerable:!0,get:()=>h.ElDatePicker}),Object.defineProperty(f,"FoxDescriptions",{enumerable:!0,get:()=>h.ElDescriptions}),Object.defineProperty(f,"FoxDescriptionsItem",{enumerable:!0,get:()=>h.ElDescriptionsItem}),Object.defineProperty(f,"FoxDialog",{enumerable:!0,get:()=>h.ElDialog}),Object.defineProperty(f,"FoxDivider",{enumerable:!0,get:()=>h.ElDivider}),Object.defineProperty(f,"FoxDrawer",{enumerable:!0,get:()=>h.ElDrawer}),Object.defineProperty(f,"FoxDropdown",{enumerable:!0,get:()=>h.ElDropdown}),Object.defineProperty(f,"FoxDropdownItem",{enumerable:!0,get:()=>h.ElDropdownItem}),Object.defineProperty(f,"FoxDropdownMenu",{enumerable:!0,get:()=>h.ElDropdownMenu}),Object.defineProperty(f,"FoxEmpty",{enumerable:!0,get:()=>h.ElEmpty}),Object.defineProperty(f,"FoxFooter",{enumerable:!0,get:()=>h.ElFooter}),Object.defineProperty(f,"FoxForm",{enumerable:!0,get:()=>h.ElForm}),Object.defineProperty(f,"FoxFormItem",{enumerable:!0,get:()=>h.ElFormItem}),Object.defineProperty(f,"FoxHeader",{enumerable:!0,get:()=>h.ElHeader}),Object.defineProperty(f,"FoxIcon",{enumerable:!0,get:()=>h.ElIcon}),Object.defineProperty(f,"FoxImage",{enumerable:!0,get:()=>h.ElImage}),Object.defineProperty(f,"FoxImageViewer",{enumerable:!0,get:()=>h.ElImageViewer}),Object.defineProperty(f,"FoxInput",{enumerable:!0,get:()=>h.ElInput}),Object.defineProperty(f,"FoxInputNumber",{enumerable:!0,get:()=>h.ElInputNumber}),Object.defineProperty(f,"FoxLink",{enumerable:!0,get:()=>h.ElLink}),Object.defineProperty(f,"FoxMain",{enumerable:!0,get:()=>h.ElMain}),Object.defineProperty(f,"FoxMenu",{enumerable:!0,get:()=>h.ElMenu}),Object.defineProperty(f,"FoxMenuItem",{enumerable:!0,get:()=>h.ElMenuItem}),Object.defineProperty(f,"FoxMenuItemGroup",{enumerable:!0,get:()=>h.ElMenuItemGroup}),Object.defineProperty(f,"FoxOption",{enumerable:!0,get:()=>h.ElOption}),Object.defineProperty(f,"FoxOptionGroup",{enumerable:!0,get:()=>h.ElOptionGroup}),Object.defineProperty(f,"FoxPageHeader",{enumerable:!0,get:()=>h.ElPageHeader}),Object.defineProperty(f,"FoxPagination",{enumerable:!0,get:()=>h.ElPagination}),Object.defineProperty(f,"FoxPopconfirm",{enumerable:!0,get:()=>h.ElPopconfirm}),Object.defineProperty(f,"FoxPopover",{enumerable:!0,get:()=>h.ElPopover}),Object.defineProperty(f,"FoxPopper",{enumerable:!0,get:()=>h.ElPopper}),Object.defineProperty(f,"FoxProgress",{enumerable:!0,get:()=>h.ElProgress}),Object.defineProperty(f,"FoxRadio",{enumerable:!0,get:()=>h.ElRadio}),Object.defineProperty(f,"FoxRadioButton",{enumerable:!0,get:()=>h.ElRadioButton}),Object.defineProperty(f,"FoxRadioGroup",{enumerable:!0,get:()=>h.ElRadioGroup}),Object.defineProperty(f,"FoxRate",{enumerable:!0,get:()=>h.ElRate}),Object.defineProperty(f,"FoxResult",{enumerable:!0,get:()=>h.ElResult}),Object.defineProperty(f,"FoxRow",{enumerable:!0,get:()=>h.ElRow}),Object.defineProperty(f,"FoxScrollbar",{enumerable:!0,get:()=>h.ElScrollbar}),Object.defineProperty(f,"FoxSelect",{enumerable:!0,get:()=>h.ElSelect}),Object.defineProperty(f,"FoxSelectV2",{enumerable:!0,get:()=>h.ElSelectV2}),Object.defineProperty(f,"FoxSkeleton",{enumerable:!0,get:()=>h.ElSkeleton}),Object.defineProperty(f,"FoxSkeletonItem",{enumerable:!0,get:()=>h.ElSkeletonItem}),Object.defineProperty(f,"FoxSlider",{enumerable:!0,get:()=>h.ElSlider}),Object.defineProperty(f,"FoxSpace",{enumerable:!0,get:()=>h.ElSpace}),Object.defineProperty(f,"FoxStep",{enumerable:!0,get:()=>h.ElStep}),Object.defineProperty(f,"FoxSteps",{enumerable:!0,get:()=>h.ElSteps}),Object.defineProperty(f,"FoxSubMenu",{enumerable:!0,get:()=>h.ElSubMenu}),Object.defineProperty(f,"FoxSwitch",{enumerable:!0,get:()=>h.ElSwitch}),Object.defineProperty(f,"FoxTabPane",{enumerable:!0,get:()=>h.ElTabPane}),Object.defineProperty(f,"FoxTable",{enumerable:!0,get:()=>h.ElTable}),Object.defineProperty(f,"FoxTableColumn",{enumerable:!0,get:()=>h.ElTableColumn}),Object.defineProperty(f,"FoxTableV2",{enumerable:!0,get:()=>h.ElTableV2}),Object.defineProperty(f,"FoxTabs",{enumerable:!0,get:()=>h.ElTabs}),Object.defineProperty(f,"FoxTag",{enumerable:!0,get:()=>h.ElTag}),Object.defineProperty(f,"FoxTimePicker",{enumerable:!0,get:()=>h.ElTimePicker}),Object.defineProperty(f,"FoxTimeSelect",{enumerable:!0,get:()=>h.ElTimeSelect}),Object.defineProperty(f,"FoxTimeline",{enumerable:!0,get:()=>h.ElTimeline}),Object.defineProperty(f,"FoxTimelineItem",{enumerable:!0,get:()=>h.ElTimelineItem}),Object.defineProperty(f,"FoxTooltip",{enumerable:!0,get:()=>h.ElTooltip}),Object.defineProperty(f,"FoxTransfer",{enumerable:!0,get:()=>h.ElTransfer}),Object.defineProperty(f,"FoxTree",{enumerable:!0,get:()=>h.ElTree}),Object.defineProperty(f,"FoxTreeSelect",{enumerable:!0,get:()=>h.ElTreeSelect}),Object.defineProperty(f,"FoxTreeV2",{enumerable:!0,get:()=>h.ElTreeV2}),Object.defineProperty(f,"FoxUpload",{enumerable:!0,get:()=>h.ElUpload}),f.AutocompleteItem=vr,f.Broadcast=Rt,f.BroadcastKey=ne,f.CascaderItem=Sr,f.CheckboxItem=kr,f.Content=Pn,f.DataItemsKey=Me,f.DateItem=lr,f.DialogItem=Br,f.Domain=jt,f.DomainKey=$e,f.ExtIcon=Fr,f.FooterBar=Ln,f.Group=Kn,f.HeaderBar=Fn,f.HintText=yt,f.Indicator=Lr,f.InputItem=Jn,f.InputNumberItem=pr,f.Item=ie,f.Mapping=zt,f.MoneyItem=mr,f.Page=Bn,f.Price=mt,f.PriorityPolicy=ct,f.RadioItem=Nr,f.RateItem=Mr,f.RowItem=Xn,f.SelectItem=rr,f.SlotItem=Un,f.SwitchItem=qr,f.TableItem=Tr,f.TableMappingColumn=xr,f.TimeItem=ir,f.TimeSelectItem=ur,f.UniqueID=Gn,f.ValidateSchema=In,f.ValidateSchemaKey=be,f.clearNonNumber=na,f.clone=Nt,f.compareTo=Ot,f.createBroadcast=nt,f.createValidateSchema=at,f.debounce=ya,f.decimalLength=vn,f.default=Di,f.defineBroadcast=ia,f.defineDataItem=An,f.defineDomain=Dt,f.defineItem=oe,f.definePageState=Rn,f.deleteGlobalValidator=fa,f.disabledProperty=he,f.divide=Ct,f.excludeProps=ue,f.extend=Ie,f.floatData=oa,f.getGlobalValidateCheckEvents=On,f.getGlobalValidateResetEvents=Vn,f.getPageContentAreaHeight=st,f.getPageContentAreaWidth=ut,f.getPageFooterAreaHeight=it,f.getPageHeaderAreaHeight=ot,f.getRootDomain=Xe,f.hasSymbol=mn,f.includeProps=la,f.indexOf=ra,f.integerLength=$n,f.isArray=Hr,f.isArrayLike=pn,f.isBrowser=Ge,f.isDate=Gr,f.isESModule=Xr,f.isEmptyString=ee,f.isEqual=Ne,f.isFunction=Vt,f.isInnerPage=ba,f.isMap=Kr,f.isNumberString=Sn,f.isObject=Se,f.isPlainObject=It,f.isPromise=Ur,f.isRegExp=wn,f.isSet=zr,f.isString=Yr,f.isSubPage=wa,f.isSymbol=Wr,f.isWindow=yn,f.lastIndexOf=aa,f.makeArray=ea,f.merge=bn,f.multiply=fn,f.negate=dn,f.nextTick=Jr,f.numberFormat=Tt,f.objectToString=gn,f.property=De,f.raf=ta,f.readonlyProperty=de,f.setGlobalValidateCheckEvents=da,f.setGlobalValidateHandler=ua,f.setGlobalValidateMessages=ga,f.setGlobalValidateResetEvents=ha,f.setGlobalValidator=ca,f.throttle=kt,f.toBoolean=re,f.toNumber=Z,f.toPadding=pe,f.toPx=U,f.toPxDesc=K,f.toTypeString=et,f.toValue=W,f.typeOf=tt,f.unNumberFormat=hn,f.updatePageState=qt,f.useBroadcast=We,f.useDomain=ve,f.useExpose=fe,f.usePageState=lt,f.usePosition=Yn,f.useRect=gt,f.useTouch=ji,f.valueLength=Ye,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});