@fox-js/foxui-pc 4.0.1-63 → 4.0.1-65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +3770 -3370
- package/dist/index.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +20 -0
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(h,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],r):(h=typeof globalThis<"u"?globalThis:h||self,r(h.FoxUI={},h.Vue,h.FoxValidator,h.ElementPlus,h.ElementPlusIconsVue,h.FoxI18n))})(this,function(h,r,
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/const
|
|
1
|
+
(function(h,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],r):(h=typeof globalThis<"u"?globalThis:h||self,r(h.FoxUI={},h.Vue,h.FoxValidator,h.ElementPlus,h.ElementPlusIconsVue,h.FoxI18n))})(this,function(h,r,Le,g,Ve,xe){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Fri Aug 25 2023 17:57:07 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const dt=window,Ta=typeof window<"u";function xa(){return typeof dt<"u"?dt.requestAnimationFrame||dt.webkitRequestAnimationFrame||function(e){dt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ca(e){Ta?cancelAnimationFrame(e):clearTimeout(e)}const Ea=xa();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function ft(e,t="0"){let a=0,n=-1;e[0]=="-"&&(a++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(a++,n=2,t=t.substring(1),t.length),e=he(e),t=he(t),[e,t]=Dt(he(e),he(t)),a==1&&(n==1?e=At(e):t=At(t));let l=fn(e,t);return a?a==2?"-"+he(l):e.length<l.length?he(l.substring(1)):"-"+he(At(l)):he(l)}function At(e){let t="",a=e.length,n=e.split(".")[1],l=n?n.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let o=l>0?"0."+new Array(l).join("0")+"1":"1";return fn(t,o)}function he(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 Dt(e,t){let a=e.split("."),n=t.split("."),l=a[0].length,o=n[0].length;return l>o?n[0]=new Array(Math.abs(l-o)+1).join("0")+(n[0]?n[0]:""):a[0]=new Array(Math.abs(l-o)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,o=n[1]?n[1].length:0,(l||o)&&(l>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(l-o)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-o)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function fn(e,t){[e,t]=Dt(e,t);let a="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let o=parseInt(e[l])+parseInt(t[l])+n;a=o%10+a,n=Math.floor(o/10)}return n?n.toString()+a:a}var ae=(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))(ae||{});function Ze(e,t=0,a=ae.HALF_EVEN){if(a===ae.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 l=e.split("."),o=l[0],s=l[1];if(t<0){if(t=-t,o.length<=t)return"0";{let u=o.substr(0,o.length-t);return e=u+"."+o.substr(o.length-t)+s,u=Ze(e,0,a),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return o.length,dn(l[1],o,n,a)?(n?"-":"")+Bt(o):(n?"-":"")+o;if(l[1]){if(l[1].length<t)return(n?"-":"")+o+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(n?"-":"")+o+"."+new Array(t+1).join("0");s=l[1].substring(0,t);let i=l[1].substring(t);return i&&dn(i,s,n,a)&&(s=Bt(s),s.length>t)?(n?"-":"")+Bt(o,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+o+"."+s}function dn(e,t,a,n){if(!e||e===new Array(e.length+1).join("0")||n===ae.DOWN||!a&&n===ae.FLOOR||a&&n===ae.CEILING)return!1;if(n===ae.UP||a&&n===ae.FLOOR||!a&&n===ae.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(n){case ae.HALF_DOWN:return!1;case ae.HALF_UP:return!0;case ae.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Bt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let a=e.length-1,n="";for(let l=a;l>=0;l--){let o=parseInt(e[l])+t;o==10?(t=1,o=0):t=0,n+=o}return t&&(n+=t),n.split("").reverse().join("")}function Ft(e,t){e=e.toString(),t=t.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),t[0]=="-"&&(a++,t=t.substr(1)),e=Je(e),t=Je(t);let n=0,l=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let o=n+l;if(e=Je(e.replace(".","")),t=Je(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let s=t.length,i=0,u=[],c=s-1,f="";for(let d=0;d<s;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let S=0;for(let b=t.length-1;b>=c&&b>=0;b--)u[b]>-1&&u[b]<e.length&&(S+=parseInt(e[u[b]--])*parseInt(t[b]));S+=i,i=Math.floor(S/10),f=S%10+f,c--}return f=Je($a(f,o)),a==1&&(f="-"+f),f}function $a(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 Je(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 qt(e,t,a=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 l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=he(t.replace(".","")),l>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=he(e+new Array(l+1).join("0"));else if(l>c)e=e.replace(".",""),e=he(e+new Array(l-c+1).join("0"));else if(l<c){e=e.replace(".","");let f=e.length-c+l;e=he(e.substring(0,f)+"."+e.substring(f))}else l==c&&(e=he(e.replace(".","")))}let o=0,s=t.length,i="",u=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),u.indexOf(".")>-1){let c=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(c+=s-u.length,u=u+new Array(s-u.length+1).join("0")),o=c,i="0."+new Array(c).join("0")}for(a=a+2;o<=a;){let c=0;for(;parseInt(u)>=parseInt(t);)u=ft(u,"-"+t),c++;i+=c,e?(e[0]=="."&&(i+=".",o++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(o||(i+="."),o++,u=u+"0")}return(n==1?"-":"")+he(Ze(i,a-2))}function Lt(e,t){return e=e.toString(),t=t.toString(),t=jt(t),ft(e,t)}function jt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function hn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),gn(e),gn(t);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Lt(e,Ft(t,Ze(qt(e,t),0,ae.FLOOR)));return a+n}function gn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function mn(e,t){let a=!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),a=!0),[e,t]=Dt(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]?a?-1:1:a?1:-1;return 0}class J{value;static RoundingModes=ae;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[a,n]=t.split(/[eE]/);a=he(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(n=parseInt(n)+a.indexOf("."),a=a.replace(".","")):n=parseInt(n)+a.length,a.length<n?t=l+a+new Array(n-a.length+1).join("0"):a.length>=n&&n>0?t=l+he(a.substring(0,n))+(a.length>n?"."+a.substring(n):""):t=l+"0."+new Array(-n+1).join("0")+a}return t}constructor(t="0"){this.value=J.validate(t)}getValue(){return this.value}static getPrettyValue(t,a,n){if(!(a||n))a=3,n=",";else if(!(a&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=J.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var s="",i=o;i>0;)i<a?(a=i,i=0):i-=a,s=t.substring(i,i+a)+(i<o-a&&i>=0?n:"")+s;return(l?"-":"")+s+t.substring(o)}getPrettyValue(t,a){return J.getPrettyValue(this.value,t,a)}static round(t,a=0,n=ae.HALF_EVEN){if(t=J.validate(t),isNaN(a))throw Error("Precision is not a number: "+a);return Ze(t,a,n)}round(t=0,a=ae.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new J(Ze(this.value,t,a))}static floor(t){return t=J.validate(t),t.indexOf(".")===-1?t:J.round(t,0,ae.FLOOR)}floor(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,ae.FLOOR)}static ceil(t){return t=J.validate(t),t.indexOf(".")===-1?t:J.round(t,0,ae.CEILING)}ceil(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,ae.CEILING)}static add(t,a){return t=J.validate(t),a=J.validate(a),ft(t,a)}add(t){return new J(ft(this.value,t.getValue()))}static subtract(t,a){return t=J.validate(t),a=J.validate(a),Lt(t,a)}subtract(t){return new J(Lt(this.value,t.getValue()))}static multiply(t,a){return t=J.validate(t),a=J.validate(a),Ft(t,a)}multiply(t){return new J(Ft(this.value,t.getValue()))}static divide(t,a,n){return t=J.validate(t),a=J.validate(a),qt(t,a,n)}divide(t,a){return new J(qt(this.value,t.getValue(),a))}static modulus(t,a){return t=J.validate(t),a=J.validate(a),hn(t,a)}modulus(t){return new J(hn(this.value,t.getValue()))}static compareTo(t,a){return t=J.validate(t),a=J.validate(a),mn(t,a)}compareTo(t){return mn(this.value,t.getValue())}static negate(t){return t=J.validate(t),jt(t)}negate(){return new J(jt(this.value))}}function pn(e,t){return J.multiply(`${e}`,`${t}`)}function Mt(e,t,a=8){return J.divide(`${e}`,`${t}`,a)}function _t(e,t){return e=`${e}`,t=`${t}`,J.compareTo(e,t)}function yn(e){return J.negate(e)}function dt(e,t=-1,a=!1,n=3,l=","){let o=`${e}`;if(o.length==0||o==="-")return"";let s=o.charAt(0);s=="-"?o=o.substring(1):s="";let i=o,u="",c=o.indexOf(".");c!=-1&&(i=o.substring(0,c),u=o.substring(c+1)),t!=-1&&(t<u.length?u=u.substring(0,t):a&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let d="",S=i.split("").reverse();for(let b=0;b<S.length;b++)d+=S[b]+((b+1)%n==0&&b+1!=S.length?l:"");u.length==0?f=`${s}${d.split("").reverse().join("")}`:f=`${s}${d.split("").reverse().join("")}.${u}`}else u.length==0?f=`${s}${i}`:f=`${s}${i}.${u}`;return f}function bn(e){let t=`${e}`,a=t.charAt(0);a=="-"?t=t.substring(1):a="";let n=t.replace(/[^\d\.-]/g,"");return`${a}${n}`}const va=wa,Ta=Array.isArray,xa=e=>ht(e)==="[object Map]",Ca=e=>ht(e)==="[object Set]",Ea=e=>e instanceof Date,Pt=e=>typeof e=="function",Na=e=>typeof e=="string",ka=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",Va=e=>Re(e)&&Pt(e.then)&&Pt(e.catch),Sn=Object.prototype.toString,ht=e=>Sn.call(e),Ht=e=>ht(e)==="[object Object]",wn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Oa(e){return e.__esModule||wn&&e[Symbol.toStringTag]==="Module"}const Ia=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function qe(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,n=e.length,l=!1;for(typeof t=="boolean"&&(l=t,t=e[a]??{},a++),typeof t!="object"&&(t={});a<n;a++)if(e[a]!==null&&e[a]!==void 0){let o=e[a];for(let s in o){let i=t[s],u=o[s];if(i!==u)if(l===!0&&u&&typeof u=="object"){let c;Array.isArray(u)?c=i&&Array.isArray(i)?i:[]:c=i&&typeof i=="object"?i:{},t[s]=qe(l,c,u)}else u!==void 0&&(t[s]=u)}}return t}function zt(e,t,a=!1){if(!a)qe(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let l in t){let o=e[l],s=t[l];if(o!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Ht(s))continue;o=zt(o,s,a),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}const n=Object.getOwnPropertySymbols(t);for(let l of n){let o=e[l],s=t[l];if(o!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Ht(s))continue;o=zt(o,s,a),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}}return e}const Kt=Ia?Promise.resolve():null;function Ra(e,...t){Kt!==null?t&&t.length>0?Kt.then(()=>{e(t)}):Kt.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function te(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ge(e){return typeof e=="number"?e:Number(e)}const Aa={"[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 gt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Aa[a]||"object"}function $n(e){return e&&typeof e=="object"&&"setInterval"in e}function vn(e){return!e||e.offsetParent===null}function Tn(e){let t=!!e&&"length"in e&&e.length,a=gt(e);return a==="function"||$n(e)?!1:a==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function xn(e,t){let a=+t.length,n=0,l=e.length;for(;n<a;n++)e[l++]=t[n];return e.length=l,e}function Da(e,t=[]){let a=t;return e!=null&&(Tn(Object(e))?xn(a,typeof e=="string"?[e]:e):a.push(e)),a}function Ae(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let a=gt(e),n=gt(t);if(a!==n)return!1;if(a==="object"){let l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],u=e[i],c=t[i];if(!Ae(u,c))return!1}return!0}else if(a==="array"){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let o=e[l],s=t[l];if(!Ae(o,s))return!1}return!0}return!1}const Qe=typeof window<"u";function Cn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const le=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function En(e){return le(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),le(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Nn(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 a=t.indexOf(".");return a==-1?t.length:a}function kn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const a=t.indexOf(".");return a==-1?0:t.length-(a+1)}function Vn(e,t,a){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(a,"")}function Ba(e,t=!0,a=!0){t?e=Vn(e,".",/\./g):e=e.replace(/\./g,""),a?e=Vn(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Fa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(a=>{if(Ae(e,a))return!0}):t.indexOf(e)}function qa(e,t){if(typeof e=="object"||Array.isArray(e)){let a=t.reverse().findIndex(n=>{if(Ae(e,n))return!0});return a!==-1&&(a=t.length-1-a),a}return t.lastIndexOf(e)}function et(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function On(e,...t){const a={};return t.forEach(n=>{for(const l in n)a[l]=e[l]}),a}function me(e,...t){const a=[];t.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const n={};for(const l in e)a.includes(l)||(n[l]=e[l]);return n}const La=(e,t,a)=>{const n=Object.assign({},e),l=Object.assign({},a);return Object.keys(t).length>0?(Object.keys(n).forEach(o=>{l.hasOwnProperty(o)?typeof l[o]=="string"&&(n[o]=t[l[o]]):t[o]&&(n[o]=t[o])}),n):e},oe=Symbol.for("BroadcastKey");class Wt{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,a,n){this.parent=t,this.proxy=a,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const a=this.children.findIndex(n=>t===n);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,a,...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 l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):Cn(t.name)&&this.name&&t.name.test(this.name)?l=!0:typeof t.name=="function"?l=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(l=!0);const o=[];if(l){const s=this.callbacks.get(a);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&o.push(u)}const i=this.proxy??{};if(typeof i[a]=="function"){const u=Reflect.apply(i[a],i,[...n]);u!=null&&o.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},a,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,o,[...i])}),o}emitToChildren(t,a,...n){const l=[];return this.children.forEach(o=>{const s=Reflect.apply(o.emit,o,[{...t},a,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(t,a){this.callbacks.set(t,a)}}function mt(e,t,a,n){const l=new Wt(t,e,a);if(n&&typeof n=="object")for(const o in n)l.on(o,n[o]);return l}function ja(e,t,a){const n=a;if(n[oe])return n[oe];const l=r.inject(oe,null),o=new Wt(l,a,e);if(t&&typeof t=="object")for(const s in t)o.on(s,t[s]);return n[oe]=o,r.provide(oe,o),r.onUnmounted(()=>{o.destroy(),n[oe]=void 0}),o}function tt(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[oe]??r.inject(oe,null):r.inject(oe,null)}const Le=e=>e.default??e;class Ma{error(t,a){const n=a,l=tt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const a=t,n=tt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(t){const a=t,n=tt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(t,a,n){Array.isArray(t)||(t=[t]);const l=n,o=tt(n),s=a.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),i=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!s&&i?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let In=new Ma;function _a(e){In=e}function Pa(e,t){Le(Be).setValidator(e,t)}function Ha(e){Le(Be).deleteValidator(e)}let Rn=["blur","clear"];function za(e){Rn=e}function An(){return Rn}let Dn=["focus","change"];function Ka(e){Dn=e}function Bn(){return Dn}function Wa(e){Le(Be).messages(e)}function nt(...e){const t=[];return e.forEach(a=>{a.forEach(n=>{const l=t.findIndex(o=>o.type===n.type);l!==-1&&t.splice(l,1),t.push(n)})}),t}function pt(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 ke=Symbol("ValidateSchemaKey");class Fn{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,a,n){this.parent=t,this.descriptor=a,this.proxy=n,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=r.effectScope(),this.scope.run(()=>{r.watchEffect(()=>{const a=pt(nt(this.attrRules,this.rules)),n=[];for(let o in t){let s=t[o];if(this.hasValidator(o,!0)){if(s===!1)continue;let u={type:o};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(o);if(i!==null){let u={type:o,validator:i};n.push(u)}}this.attrRules=pt(n);const l=nt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...a){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...a]);const l=In;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...a]):null}decorate(t,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,a,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,a,n=!1){n?Le(Be).setValidator(t,a):this.validators[t]=a}getValidator(t){let a=this.validators[t]??null;return a||(a=this.parent?.getValidator(t)??null),a}deleteValidator(t,a=!1){a?Le(Be).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,a=!1){if(a)return Le(Be).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const a=nt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=pt(t):this.rules=pt([t]);const n=nt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(n,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=nt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${n}`]:a},o=this.getValue(),s={[`${n}`]:o},i=Le(Be),u=new i(l),c=this.proxy??s;return u.validate(s,{context:c}).then(d=>{if(d.pass)this.success();else{let S="error";Array.isArray(d.errors)&&d.errors.length>0&&(S=d.errors[0].message??S,d.errors=[d.errors[0]],d.errors[0].ref=c),this.error(S)}return d}).catch(d=>{const S=d.message??`${d}`;return this.error(S),d})}}return Promise.resolve({pass:!0})}}function yt(e,t,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(o){return o[l]}}}return new Fn(t,a,e)}const qn=Symbol.for("EventEmitterKey");class Ga{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,a){let n=this.register.get(t);if(n&&Array.isArray(n)){let l=n.findIndex(o=>o===a);l!==-1&&n.splice(l,1)}}on(t,a){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(a)}emit(t,...a){const n=this.register.get(t);n&&n.forEach(l=>{try{Reflect.apply(l,null,[t,...a])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...a])}}function rt(e,t){let a=null;return function(...n){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...n])},t)}}function Ln(e,t){let a=0;return function(...n){const l=new Date().getTime();l-a<t||(a=l,Reflect.apply(e,null,[...n]))}}function Ya(e,t){const a=rt((n,l)=>{e=n,l()},t);return r.customRef((n,l)=>({get(){return n(),e},set(o){a(o,l)}}))}function Ua(e){let t=!1;return function(...a){t||(t=!0,Reflect.apply(e,null,[...a]))}}const $e=Symbol("DomainKey"),Pe=Symbol("DataItemsKey");class bt{_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=r.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,a=[]){for(const n in t){const l=t[n];a.length>0&&a.indexOf(l)!==-1||(this._props[n]=l)}}has(t){if(Reflect.has(this._props,t)){const a=this._props[t];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,a){this._props[t]=a}get(t,a){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?a:this.parent.get(t,a)}getForParent(t,a){return this.parent==null?a:this.parent.get(t,a)}getForSelf(t){return this._props[t]}getAll(t){const a=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const l=n._props[t];a.push(l)}n=n._parent}return a}}const Xa=new bt;function He(){return Xa}function Ve(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[$e]??r.inject($e,null):r.inject($e,null)}const Gt=Symbol("OriginalDateKey");function Yt(e,t,a=[],n){const l=r.getCurrentInstance(),o=l?.proxy;let s=r.inject($e,null);s===null&&(s=He());const i=e||t.prop||t.name,u=new bt(i);u.parent=s;const c=p=>{o[Gt]||S(p),u.set("modelValue",p)},f=()=>u.getForSelf("modelValue")??null,d=()=>o[Gt]??null,S=p=>{const w={};qe(!0,w,r.toRaw(p)),o[Gt]=w};r.isReactive(t)?r.watchEffect(()=>{u.merge(t,a)}):u.merge(t,a),t.modelValue&&S(t.modelValue),o[$e]=u,r.provide($e,u);let b=null,$=null;if(l!==null){const p=r.inject(oe,null);b=mt(o,p,i,n),u.broadcast=b,o[oe]=b,r.provide(oe,b),o.broadcast=(m,x,...I)=>Reflect.apply(b.emit,b,[m,x,...I]);const w=r.inject(ke,null);$=yt(o,w,{componentName:""}),u.validateSchema=$,o[ke]=$,r.provide(ke,$),o[Pe]=new Map,o.validate=(m=!0)=>{const x=[];let I=null;const F={deep:!1};if(m===!0)I={name:"*"};else if(Array.isArray(m)&&m.length>0){const N=m;I={name:E=>E?N.indexOf(E)!==-1:!1}}else if(m!=null&&typeof m=="object"){const N=m;if(F.ignoreHidden=N.ignoreHidden,Array.isArray(N.include)&&N.include.length>0){const E=N.include;I={name:O=>O?E.indexOf(O)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const E=N.exclude;I={name:O=>O?E.indexOf(O)===-1:!1}}else I={name:"*"}}if(I){const N=b?.emitToChildren(I,"validate",F);N&&Reflect.apply([].push,x,N)}return x.length==1?x[0]:x.length>1?Promise.all(x).then(N=>{let E=[];return N.forEach(O=>{O.pass===!1&&Array.isArray(O.errors)&&(E=[...E,...O.errors])}),E.length>0?{pass:!1,errors:E}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(m,x=!0)=>{if(x){const I=Reflect.ownKeys(m),F=[...I],N={name:E=>{const O=I.includes(E);if(O){const V=F.findIndex(R=>E===R);V!==-1&&F.splice(V,1)}return O}};b?.emitToChildren(N,"setNameValidateRules",m,!1),F.length>0&&F.forEach(E=>{let O=String(E);const R=_n(u,O,{componentName:"",fieldName:O,pureDataValidate:!0},b,$);o[Pe].set(O,R);const B=m[O];B&&R.validateSchema.setRule(B)})}},o.clearValidate=(m=!0)=>{let x=null;if(m===!0)x={name:"*"};else if(Array.isArray(m)&&m.length>0){const I=m;x={name:F=>F?I.indexOf(F)!==-1:!1}}else if(m!=null&&typeof m=="object"){const I=m;if(Array.isArray(I.include)&&I.include.length>0){const F=I.include;x={name:N=>N?F.indexOf(N)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const F=I.exclude;x={name:N=>N?F.indexOf(N)===-1:!1}}else x={name:"*"}}x&&b?.emitToChildren(x,"clearValidate",!1)},o.resetFields=m=>{const x=f();if(!x)return;const I={};if(qe(!0,I,d()??{}),Array.isArray(m))m.forEach(F=>{x[F]=I[F]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(N=>{x[N]=I[N]});else if(m&&Array.isArray(m.exclude)){let F=m.exclude??[];Reflect.ownKeys(I).forEach(N=>{F.includes(N)||(x[N]=I[N])})}else Object.assign(x,I);o.clearValidate(m)},o.setModelValue=(m,x)=>{!x||x===i?c(m):b?.emitToChildren({name:x},"setModelValue",m)},o.getModelValue=()=>f()}return r.onUnmounted(()=>{u.destroy(),o[$e]=void 0,o[Pe]&&(o[Pe].clear(),o[Pe]=void 0),b!==null&&(b.destroy(),o[oe]=void 0),$!==null&&($.destroy(),o[ke]=void 0)}),u}function jn(e,t,a=[]){const l=r.getCurrentInstance()?.proxy;let o=r.inject($e,null);o===null&&(o=He());const s=e||t.prop||t.name,i=new bt(s);return i.parent=o,r.isReactive(t)?r.watchEffect(()=>{i.merge(t,a)}):i.merge(t,a),l[$e]=i,r.provide($e,i),r.onUnmounted(()=>{i.destroy(),l[$e]=void 0}),i}function Mn(e,t,a){const l=Ve(e)?.get("rules");if(!l)return;let o=l[a];o&&(Array.isArray(o)||(o=[o]),o.forEach(s=>{t.setRule(s)}))}function ue(e,t,a){const l=r.getCurrentInstance()?.proxy,o=t??"",s=r.inject(oe,null),i=mt(l,s,o,a);l[oe]=i,r.provide(oe,i),l.broadcast=($,p,...w)=>Reflect.apply(i.emit,i,[$,p,...w]);const u=r.inject(ke,null);e.fieldName=e.fieldName??o;const c=yt(l,u,e);l[ke]=c,r.provide(ke,c),Mn(l,c,o),l.validate=($=null)=>{const p=[];let w=!1,m=!1;if(Array.isArray($)&&$.indexOf(o)!==-1)m=!0,w=!0;else if($&&typeof $=="object"){const x=$;x.ignoreHidden===!0&&vn(l.$el)?m=!1:(Array.isArray(x.include)&&x.include.indexOf(o)!==-1||Array.isArray(x.exclude)&&x.exclude.indexOf(o),m=!0),w=x.deep??!1}else typeof $=="boolean"&&(w=$),m=!0;if(m){const x=c?.validate();p.push(x)}if(w){let x=null;const I={deep:!1};if($===!0)x={name:"*"};else if(Array.isArray($)&&$.length>0){const F=$;x={name:N=>N?F.indexOf(N)!==-1:!1}}else if($!=null&&typeof $=="object"){const F=$;if(I.ignoreHidden=F.ignoreHidden,Array.isArray(F.include)&&F.include.length>0){const N=F.include;x={name:E=>E?N.indexOf(E)!==-1:!1}}else if(Array.isArray(F.exclude)&&F.exclude.length>0){const N=F.exclude;x={name:E=>E?N.indexOf(E)===-1:!1}}else x={name:"*"}}if(x){const F=i.emitToChildren(x,"validate",I);Reflect.apply([].push,p,F)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(x=>{let I=[];return x.forEach(F=>{F.pass===!1&&Array.isArray(F.errors)&&(I=[...I,...F.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=$=>c?.setRule($),l.setNameValidateRules=($,p=!1)=>{const w=$[o];if(w&&c?.setRule(w),p){const m={name:x=>Reflect.ownKeys($).includes(x)};i.emitToChildren(m,"setNameValidateRules",$,!1)}},l.clearValidate=($=null)=>{(!Array.isArray($)||$.indexOf(t??"")!==-1)&&c?.clear();let p=null;if($===!0)p={name:"*"};else if(Array.isArray($)&&$.length>0){const w=$;p={name:m=>m?w.indexOf(m)!==-1:!1}}else if($!=null&&typeof $=="object"){const w=$;if(Array.isArray(w.include)&&w.include.length>0){const m=w.include;p={name:x=>x?m.indexOf(x)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const m=w.exclude;p={name:x=>x?m.indexOf(x)===-1:!1}}else p={name:"*"}}p&&i.emitToChildren(p,"clearValidate",!1)};const f=new Ga(l);l[qn]=f;const d=rt(($="validate")=>{$==="reset"?c.clear():c.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:An()).forEach($=>{f.on($,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Bn()).forEach($=>{f.on($,p=>{d("reset")})}),r.onUnmounted(()=>{i.destroy(),l[oe]=void 0,c.destroy(),l[ke]=void 0,f.destroy(),l[qn]=void 0}),{broadcast:i,validateSchema:c,emitEvent:($,...p)=>{Reflect.apply(f.emit,f,[$,...p])},onEvent:($,p)=>{Reflect.apply(f.on,f,[p])},offEvent:($,p)=>{Reflect.apply(f.off,f,[p])}}}function _n(e,t,a,n,l){const o={},s=t??"";a.fieldName=s,a.validateHandler={getValue(c){const f=e.getForSelf("modelValue");return f?f[s]:null}};const i=yt({},l,a);o.validate=(c=null)=>{const f=[];let d=!1,S=!1;if(Array.isArray(c)&&c.indexOf(s)!==-1)S=!0,d=!0;else if(c&&typeof c=="object"){const b=c;Array.isArray(b.include)&&b.include.indexOf(s)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(s),S=!0,d=b.deep??!1}else typeof c=="boolean"&&(d=c),S=!0;if(S){const b=i?.validate();f.push(b)}if(d){let b=null;const $={deep:!1};if(c===!0)b={name:"*"};else if(Array.isArray(c)&&c.length>0){const p=c;b={name:w=>w?p.indexOf(w)!==-1:!1}}else if(c!=null&&typeof c=="object"){const p=c;if(Array.isArray(p.include)&&p.include.length>0){const w=p.include;b={name:m=>m?w.indexOf(m)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const w=p.exclude;b={name:m=>m?w.indexOf(m)===-1:!1}}else b={name:"*"}}if(b){const p=u.emitToChildren(b,"validate",$);Reflect.apply([].push,f,p)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(b=>{let $=[];return b.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&($=[...$,...p.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=c=>i?.setRule(c),o.setNameValidateRules=c=>{const f=c[s];f&&i?.setRule(f)};const u=mt(null,n,s,o);return{broadcast:u,validateSchema:i}}const ce=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${re(e,t)}px`:"";function re(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 a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),o=1;if(Qe){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(o=Number(s.substring(0,i)))}return l*=o,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*t;const n=Number(e);return isNaN(n)?0:n}const De="PageStateKey";function xe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=re(e.top)),e.left!==null&&e.left!==void 0&&(t.left=re(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=re(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=re(e.right))),t}function Ut(e,t,a={},n=!0,l=-1,o=-1,s=0,i=0){if(e.headerHeight=re(a.headerHeight??t.headerHeight),e.headerPadding=xe(a.headerPadding??t.headerPadding),e.footerHeight=re(a.footerHeight??t.footerHeight),e.footerPadding=xe(a.footerPadding??t.footerPadding),e.contentPadding=xe(a.contentPadding??t.contentPadding),n){const u=a.height??t.height;u?e.height=re(u,o):e.height=re(o)-re(s,o)-re(i,o),e.width=re(a.width??t.width??0,l)}}function Pn(e,t={}){const a={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=re(l.top),n.safeAreaBottom=re(l.bottom),n.safeAreaLeft=re(l.left),n.safeAreaRight=re(l.right));const o=e.get("pageLayout");if(!o)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;Ut(n,o,t,!0,s,i,u,c);const f=r.reactive(n),d=e.getForParent(De);d&&(n.height=wt(e,d),n.width=$t(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{f.height=wt(e,d),f.width=$t(e,d)}));const S=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([b,$,p=-1,w=-1,m=0,x=0])=>{Ut(f,$,t,S,p,w,m,x)}),e.set(De,f),f}function St(e){return e.get(De)}function at(e,t){if(t=t??e.get(De),t&&t.headerMounted){const a=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+a}return 0}function lt(e,t){if(t=t??e.get(De),t&&t.footerMounted){const a=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+a}return 0}function wt(e,t){if(t=t??e.get(De),t){if(t.contentInnerHeight)return t.contentInnerHeight;const a=at(e,t),n=lt(e,t);return t.height-a-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function $t(e,t){return t=t??e.get(De),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Za(e,t){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[t,e]):!1}function Ja(e){return!!e.getForParent(De)}var ve=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ve||{});function Xt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function we(e,t,a=1,n){const l=Ve();return l==null?e:a===0?r.computed(()=>{const o=l.getAll(t);for(let i=o.length-1;i>=0;i--){const u=o[i];if(Xt(u,n))return u}const s=e.value;return Xt(s,n)?s:null}):r.computed(()=>{const o=e.value;return Xt(o,n)?o:l?.get(t)})}function be(e){return we(e,"readonly",0,function(a){return te(a)})}function Se(e){return we(e,"disabled",0,function(a){return te(a)})}function ne(e,t="modelValue",a){const n=r.toRef(e,t);let l=n.value;typeof a=="function"&&(l=a(n.value));const o=r.ref(l);return r.watch(n,s=>{if(typeof a=="function"){const i=a(s);i!==o.value&&(o.value=i)}else s!==o.value&&(o.value=s)}),o}const Hn=new Map,vt=new Map;let Zt=null;function Qa(e){Zt=e}function zn(e,t,a){if(a){let n=vt.get(a);n||(n=new Map,vt.set(a,n)),n.set(e,t)}else Hn.set(e,t)}function Ce(e,t,a){!a&&Zt&&(a=Zt(e)??void 0);let n=null;if(a){let l=vt.get(a);l&&(n=l.get(t))}return n||(n=Hn.get(t)),n}function el(e,t){for(let a in e){const n=e[a];zn(a,n,t)}}function tl(e){vt.delete(e)}function nl(){return{top:0,left:0,bottom:0,right:0}}function rl(e=0,t=0){if(Qe){const a=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:n-re(e,n)-re(t,n),headerHeight:44,footerHeight:44};return{rootWidth:a,rootHeight:n,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class al{packages;installers;_version;get version(){return this._version}constructor(t,a,n){this.packages=t,this.installers=a,this._version=n}install(t,a={}){a?.install!==!1&&(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"],l=He();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=Ln(()=>{const i={...a},u=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=c,this.initPageLayout(i,l)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in a)n.indexOf(o)===-1&&l.set(o,a[o])}initPageLayout(t,a){const n=t.headerBarHeight??0,l=t.footerBarHeight??0,o=qe({},nl(),t.safeAreaInset),s=rl(n,l),i=qe({},s.pageLayout,t.pageLayout);a=a??He(),a.set("safeAreaInset",o),a.set("headerBarHeight",n),a.set("footerBarHeight",l),a.set("pageLayout",i),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight)}setScopeGetter(t){Qa(t)}setAPI(t,a,n){zn(t,a,n)}getAPI(t,a,n){return Ce(t,a,n)}batchSetAPI(t,a){el(t,a)}clearScopeAPI(t){tl(t)}getRootDomain(){return He()}}const ll=[g.ElAffix,g.ElAlert,g.ElAutocomplete,g.ElAutoResizer,g.ElAvatar,g.ElBacktop,g.ElBadge,g.ElBreadcrumb,g.ElBreadcrumbItem,g.ElButton,g.ElButtonGroup,g.ElCalendar,g.ElCard,g.ElCarousel,g.ElCarouselItem,g.ElCascader,g.ElCascaderPanel,g.ElCheckTag,g.ElCheckbox,g.ElCheckboxButton,g.ElCheckboxGroup,g.ElCol,g.ElCollapse,g.ElCollapseItem,g.ElCollapseTransition,g.ElColorPicker,g.ElConfigProvider,g.ElContainer,g.ElAside,g.ElFooter,g.ElHeader,g.ElMain,g.ElDatePicker,g.ElDescriptions,g.ElDescriptionsItem,g.ElDialog,g.ElDivider,g.ElDrawer,g.ElDropdown,g.ElDropdownItem,g.ElDropdownMenu,g.ElEmpty,g.ElForm,g.ElFormItem,g.ElIcon,g.ElImage,g.ElImageViewer,g.ElInput,g.ElInputNumber,g.ElLink,g.ElMenu,g.ElSubMenu,g.ElMenuItem,g.ElMenuItemGroup,g.ElPageHeader,g.ElPagination,g.ElPopconfirm,g.ElPopover,g.ElPopper,g.ElProgress,g.ElRadio,g.ElRadioButton,g.ElRadioGroup,g.ElRate,g.ElResult,g.ElRow,g.ElScrollbar,g.ElSelect,g.ElOption,g.ElOptionGroup,g.ElSelectV2,g.ElSkeleton,g.ElSkeletonItem,g.ElSlider,g.ElSpace,g.ElSteps,g.ElStep,g.ElSwitch,g.ElTable,g.ElTableColumn,g.ElTableV2,g.ElTabs,g.ElTabPane,g.ElTag,g.ElTimePicker,g.ElTimeSelect,g.ElTimeline,g.ElTimelineItem,g.ElTooltip,g.ElTransfer,g.ElTree,g.ElTreeSelect,g.ElTreeV2,g.ElUpload],ol=[g.ElInfiniteScroll,g.ElLoading,g.ElMessage,g.ElMessageBox,g.ElNotification,g.ElPopoverDirective],il=e=>{ll.forEach(t=>{let a=t.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,t)):e.use(t)}),ol.forEach(t=>{e.use(t)})};function Q(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=t,a.install=n=>{n.component(a.name,a)},r.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,r.defineComponent(a)}}}const ie={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}},pe={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},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Kn={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Wn={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"grid"},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1}},Gn=[];for(const e in Wn)Gn.push(e);function fe(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let a=t.proxy;Object.assign(a,e)}}const sl=Symbol.for("InnerPageScopeKey"),ul=(e,t)=>({inheritAttrs:!0,props:{...ie,...Kn,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(a,n){const l=Yt(a.name,a);if(l){const c=Pn(l,a);fe({getPageContentHeight:()=>wt(l,c),getPageContentWidth:()=>$t(l,c),getPageHeaderHeight:()=>at(l,c),getPageFooterHeight:()=>lt(l,c)});const f=r.inject(sl,!1);c&&f&&(c.contentHeight="100%")}const o=r.computed(()=>({[e]:!0})),s=r.computed(()=>({})),i=r.getCurrentInstance(),u=c=>{const f=i?.proxy;f&&typeof f.setNameValidateRules=="function"&&f.setNameValidateRules(c,!0)};return r.watch(()=>a.rules,(c,f)=>{if(!c&&!f)return;const d=r.toRaw(f),S=r.toRaw(c),b=S?Reflect.ownKeys(S):[];(d?Reflect.ownKeys(d):[]).forEach(p=>{b.includes(p)||(S[p]=[])}),u(S)},{deep:!0}),r.onMounted(()=>{if(a.rules){const c=r.toRaw(a.rules);u(c)}}),r.onBeforeUnmount(()=>{}),{classes:o,styles:s}}}),{componentName:cl,create:fl,scope:Fu}=Q("page"),dl=fl(ul(cl));function hl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Ee=(e,t)=>{const a=e.__vccOpts||e;for(const[n,l]of t)a[n]=l;return a},Yn=Ee(dl,[["render",hl]]),gl=["aria-labelledby"],ml=r.createElementVNode("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1),pl=[ml],yl=r.defineComponent({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const a=e,n=i=>{t("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},o=r.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=r.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,u)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(o.value),style:r.normalizeStyle(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},pl,14,gl))}});function Jt(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Qt(e){const t=r.unref(e),a=window.getComputedStyle(t,null),n=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),o=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-l,height:t.clientHeight-o-s}}const bl=(e,t,a,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(l,o){const s=Ve(),i=s?St(s):null;i&&(i.headerMounted=!0);const u=r.computed(()=>{const y=e;return{[y]:!0,[`${y}--border`]:l.border,[`${y}--fixed`]:l.fixed,[`${y}--safe-area-inset-top`]:l.safeAreaInsetTop}}),c=l.height!==null&&l.height!==void 0?re(l.height):null,f=r.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const T=xe(l.padding??i.headerPadding);return Object.assign(y,T),c&&(i.headerHeight=c),y.height=i.headerHeight,y.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(T.top??0),y.height=y.height+y.safeAreaTop),y}if(c&&(y.height=c),l.padding){const T=xe(l.padding);Object.assign(y,T)}return y}),d=r.ref(null),S=()=>{if(i&&d.value){if(!n){const y=Jt(d.value);i.headerAllHeight=y.height}i.headerMounted=!0}};r.onMounted(()=>{S()}),r.onUnmounted(()=>{i&&(i.headerMounted=!1)});const b=r.computed(()=>{const y={};return f.value.height!==null&&f.value.height!==void 0&&(y.height=`${f.value.height}px`),f.value.top!==null&&f.value.top!==void 0&&(y.paddingTop=`${f.value.top}px`),f.value.left!==null&&f.value.left!==void 0&&(y.paddingLeft=`${f.value.left}px`),f.value.right!==null&&f.value.right!==void 0&&(y.paddingRight=`${f.value.right}px`),f.value.bottom!==null&&f.value.bottom!==void 0&&(y.paddingBottom=`${f.value.bottom}px`),y}),$=r.computed(()=>{const y={};return f.value.safeAreaTop!==null&&f.value.safeAreaTop!==void 0&&(y.top=`${f.value.safeAreaTop}px`),y}),p=r.computed(()=>{const y={};return f.value.safeAreaTop!==null&&f.value.safeAreaTop!==void 0&&(y.top=`${f.value.safeAreaTop}px`),y}),w=r.computed(()=>!!l.leftShow),m=r.computed(()=>!(f.value.height!==null&&f.value.height!==void 0&&f.value.height<=0)),x=r.computed(()=>l.titleShow?l.title||l.titleIcon||o.slots.titleIcon||o.slots.default:!1),I=r.computed(()=>l.rightShow?l.rightText||l.rightIcon||o.slots.rightIcon||o.slots.right:!1),F=r.computed(()=>l.leftIcon),N=r.computed(()=>F.value||o.slots.leftIcon),E=r.computed(()=>l.titleIcon),O=r.computed(()=>l.titleIcon||o.slots.titleIcon),V=r.computed(()=>l.rightIcon),R=r.computed(()=>l.rightIcon||o.slots.rightIcon);function B(){o.emit("back")}function W(){o.emit("click-title")}function z(){o.emit("click-right")}function v(){o.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:b,mHeaderShow:m,leftStyles:$,rightStyles:p,mLeftShow:w,mTitleShow:x,mRightShow:I,mLeftIcon:F,hasLeftIcon:N,mTitleIcon:E,hasTitleIcon:O,mRightIcon:V,hasRightIcon:R,handleLeft:B,handleCenter:W,handleRight:z,handleRightText:v}}}),{componentName:Sl,create:wl,scope:$l}=Q("header-bar"),vl=wl(bl(Sl,$l,yl)),Tl={key:1,class:"fox-header-bar__title"},xl={key:0,class:"title-text"};function Cl(e,t,a,n,l,o){return e.mHeaderShow?(r.openBlock(),r.createElementBlock("view",{key:0,ref:"headerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:r.normalizeStyle(e.leftStyles)},[r.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[0]||(t[0]=(...s)=>e.handleLeft&&e.handleLeft(...s)),class:"left-icon"},[r.renderSlot(e.$slots,"leftIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mLeftIcon)))])])):r.createCommentVNode("",!0),e.leftText?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[1]||(t[1]=(...s)=>e.handleLeft&&e.handleLeft(...s))},r.toDisplayString(e.leftText),1)):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0),e.mTitleShow?(r.openBlock(),r.createElementBlock("view",Tl,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",xl,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),e.hasTitleIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[2]||(t[2]=(...s)=>e.handleCenter&&e.handleCenter(...s)),class:"title-icon"},[r.renderSlot(e.$slots,"titleIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mTitleIcon)))])])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0),e.mRightShow?(r.openBlock(),r.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:r.normalizeStyle(e.rightStyles)},[r.renderSlot(e.$slots,"right",{},()=>[e.rightText?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[3]||(t[3]=(...s)=>e.handleRightText&&e.handleRightText(...s))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...s)=>e.handleRight&&e.handleRight(...s)),class:"right-icon"},[r.renderSlot(e.$slots,"rightIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mRightIcon)))])])):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0)])],6)):r.createCommentVNode("",!0)}const Un=Ee(vl,[["render",Cl]]);function El(e,t,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,l){const o=Ve(),s=o?St(o):null,i=r.computed(()=>{const b=e;return{[b]:!0,[`${b}--${n.align}`]:!0,[`${b}--border`]:n.border,[`${b}--fixed`]:n.fixed,[`${b}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?re(n.height):null,c=r.computed(()=>{const b={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(o&&s){const $=xe(n.padding??s.footerPadding);return Object.assign(b,$),u&&(s.footerHeight=u),b.height=s.footerHeight,b.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,b.safeAreaBottom>0&&(b.height=b.height+b.safeAreaBottom,b.bottom=b.safeAreaBottom+($.bottom??0)),b}if(u&&(b.height=u),n.padding){const $=xe(n.padding);Object.assign(b,$)}return b}),f=r.ref(null),d=()=>{if(s&&f.value){if(!a){const b=Jt(f.value);s.footerAllHeight=b.height}s.footerMounted=!0}};r.onMounted(()=>{d()}),r.onUnmounted(()=>{s&&(s.footerMounted=!1)});const S=r.computed(()=>{const b={};return c.value.height!==null&&c.value.height!==void 0&&(b.height=ce(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(b.paddingTop=ce(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(b.paddingLeft=ce(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(b.paddingRight=ce(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(b.paddingBottom=ce(c.value.bottom)),b});return{footerBarRef:f,classes:i,styles:S}}}}const{componentName:Nl,create:kl,scope:qu}=Q("footer-bar"),Vl=kl(El(Nl));function Ol(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("view",{ref:"footerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Xn=Ee(Vl,[["render",Ol]]);function Il(e,t){return{props:{padding:{type:[Object],required:!1}},setup(a){const n=Ve(),l=r.computed(()=>({[e]:!0})),o=n?St(n):null,s=r.computed(()=>{const c={};if(n&&o){if(a.padding){const b=xe(a.padding);Object.assign(o.contentPadding,b)}const f=at(n,o),d=lt(n,o);let S="";if(o.contentHeight?S=`${o.contentHeight}`:S=`${o.height}px`,o.contentPadding,c.height=S,o.contentPadding.top||f>0){const b=(o&&o.contentPadding&&o.contentPadding.top)??0;c.paddingTop=`${f+b}px`}if(o.contentPadding.bottom||d>0){const b=(o&&o.contentPadding&&o.contentPadding.bottom)??0;c.paddingBottom=`${d+b}px`}return o.contentPadding.left&&(c.paddingLeft=`${o.contentPadding.left}px`),o.contentPadding.right&&(c.paddingRight=`${o.contentPadding.right}px`),c}if(a.padding){const f=xe(a.padding);f.left&&(c.paddingLeft=`${f.left}px`),f.top&&(c.paddingTop=`${f.top}px`),f.right&&(c.paddingRight=`${f.right}px`),f.bottom&&(c.paddingBottom=`${f.bottom}px`)}return c}),i=r.ref(null),u=()=>{if(o&&i.value){const c=Qt(i.value);o.contentInnerHeight=c.height,o.contentInnerWidth=c.width}};return r.onMounted(()=>{u()}),n&&o&&r.watch([()=>at(n),()=>lt(n)],([])=>{u()}),{contentRef:i,classes:l,styles:s}}}}const{componentName:Rl,create:Al,scope:Lu}=Q("content"),Dl=Al(Il(Rl));function Bl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{ref:"contentRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Zn=Ee(Dl,[["render",Bl]]),ze="GroupStateKey",Jn=Symbol.for("GroupScopeKey");function Tt(){return r.inject(Jn,!1)}function xt(e=!0){r.provide(Jn,e)}function Fl(e,t={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,t);const l=r.shallowRef(n),o=r.markRaw({layout:l,passport:0,order:{index:0}});return e.set(ze,o),o}function en(e,t,a=-1,n=-1,l=!1,o,s){const i=e.get(ze);if(!i)return;const u=e.get("groupLayout")??{};a===-1&&(a=u.column??1),n===-1&&(n=u.gutter??0),o||(o=u.minItemWidth??-1),s||(s=u.maxItemWidth??-1);const c=re(o),f=re(s),d=()=>{const S=t===""||t===-1,b=re(t);let $=ge(a);const p=re(n);if(!S){let x=(b-($-1)*p)/$;for(;f!==-1&&x>f;)$++,x=(b-($-1)*p)/$;for(;c!==-1&&$>1&&x<c;)$--,x=(b-($-1)*p)/$}let w=!1;const m=i.layout;m.value.width=t,m.value.column!==$&&(m.value.column=$,w=!0),m.value.gutter!==p&&(m.value.gutter=p,w=!0),w&&r.triggerRef(m)};if(l)d();else{const S=++i.passport;setTimeout(()=>{S===i.passport&&d()},50)}}function Ct(e,t=!1){let a;return t?a=e.getForParent(ze):a=e.get(ze),a.layout}function Et(e,t=!1){let a;return t?a=e.getForParent(ze):a=e.get(ze),a.order}function Qn(e,t=1){if(t==="stretch")return-1;const a=ge(t);return a===-1?100:100*a/e}function Nt(e,t,a=1,n=0,l){const o={};let s=0;l?s=re(l):s=Qn(t.column,a),s>0&&(o.width=`${s}%`);const i=Qn(t.column,n);i>0&&(o["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(o["padding-left"]=`${u}px`,o["padding-right"]=`${u}px`),o}function kt(e,t,a=1,n=0){if(a==="stretch"){const u=e.index%t.column,c=u+(t.column-u);return e.index=e.index+(c-u),{"grid-column-start":u+1,"grid-column-end":c+1}}let l=ge(a);if(l===-1){const u=e.index%t.column,c=t.column;return u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column-start":1,"grid-column-end":c+1}}if(l>t.column){const u=e.index%t.column,c=t.column;return u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column-start":1,"grid-column-end":c+1}}const o=ge(n)%t.column;let s=(e.index+o)%t.column,i=s+l;return i>t.column?(s=0,i=s+l,e.index=e.index+(t.column-s)+l):e.index=e.index+o+l,{"grid-column-start":s+1,"grid-column-end":i+1}}function tn(e){let t=e.offsetHeight;if(t<=0){const a=e.cloneNode(!0),n=e.offsetWidth;a.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),t=a.offsetHeight,document.body.removeChild(a)}return t}function ql(e,t,a){if(e<=0)return"1fr";const n=(e-(t-1)*a)/t;return n>0?`${n}px`:"1fr"}function Ll(e,t,a){return{props:{...ie,...Kn,...Wn},emits:["update:collapse"],setup(n,l){const o=Yt(n.name,n,Gn),s=Fl(o,{type:n.type}),i=Tt();xt(!0);const u=r.computed(()=>i&&o?Ct(o,!0).value:null),c=r.getCurrentInstance(),f=M=>{const Y=c?.proxy;Y&&typeof Y.setNameValidateRules=="function"&&Y.setNameValidateRules(M,!0)};r.watch(()=>n.rules,(M,Y)=>{if(!M&&!Y)return;const A=r.toRaw(Y),P=r.toRaw(M),_=P?Reflect.ownKeys(P):[];(A?Reflect.ownKeys(A):[]).forEach(U=>{_.includes(U)||(P[U]=[])}),f(P)},{deep:!0});const d=e,S=r.computed(()=>{const M={};M.height=v.value;const Y=i?Et(o,!0):null;if(u.value&&Y){if(u.value.type==="grid"){const A=kt(Y,u.value,n.span,n.offset);Object.assign(M,A)}else if(u.value.type==="flow"){const A=Nt(Y,u.value,n.span,n.offset,n.width);Object.assign(M,A)}}else if(n.width){const A=ce(n.width);M.width=A}return L.value&&(M["box-sizing"]="content-box"),M}),b=r.computed(()=>n.type==="grid"||n.type==="flow"?{[`${d}--${n.type}`]:!0,[`${d}--${n.type}-justify-${n.justify}`]:!0,[`${d}--${n.type}-align-${n.align}`]:!0,[`${d}--gutter`]:!0}:{[`${d}--${n.type}`]:!0,[`${d}--gutter`]:!0}),$=r.computed(()=>{if(n.type==="grid"){let M="";if(n.columnWidth)M=`repeat(auto-fill, ${n.columnWidth})`;else{const Y=ql(E.value,s.layout.value.column,s.layout.value.gutter);M=`repeat(${s.layout.value.column}, ${Y})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":M}}}),p=r.toRef(n,"title"),w=r.toRef(n,"gutter"),m=r.toRef(n,"column"),x=r.computed(()=>i?!0:te(n.isWrap)),I=[],F=M=>{I.push(M)},N=()=>{let M=I.length;I.splice(0,M)},E=r.ref(-1),O=M=>{const Y=Qt(M).width;Y>0&&Y!==E.value&&(E.value=Y)};en(o,E.value,m.value,w.value,!0,n.minItemWidth,n.maxItemWidth),n.autoLayout&&r.watch([E,m,w],([M,Y,A])=>{s.order.index=0,en(o,M,Y,A,!1,n.minItemWidth,n.maxItemWidth)});const V=r.computed(()=>L.value?n.expandText??"":n.collapseText??""),R=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),B=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),W=r.ref(),z=r.ref(),v=r.computed(()=>T.value||ce(n.height)||""),y=r.ref(!1),T=r.ref(""),L=r.ref(!1);let j=-1;const G=(M,Y=!0)=>{const A=W.value;if(A&&y.value!==M){if(j=j===-1?tn(A):j,L.value=!0,Y)if(A.style["will-change"]="height",A.ontransitionend=function(){A.ontransitionend=null,this.style["will-change"]="auto",M||(T.value="",L.value=!1)},M){let P=0;n.collapseHeight?P=n.collapseHeight:z.value&&z.value.classList.contains(`${e}__header`)&&(P=tn(z.value)),T.value=`${j}px`,r.nextTick(()=>{T.value=`${P}px`})}else T.value=`${j}px`;else if(M){let P=0;n.collapseHeight?P=n.collapseHeight:z.value&&z.value.classList.contains(`${e}__header`)&&(P=tn(z.value)),T.value=`${P}px`}else L.value=!1,T.value=`${j}px`;y.value=M,l.emit("update:collapse",M)}};r.watch(()=>n.collapse,M=>{G(M)});const C=()=>{k()},k=M=>{M=M??!y.value,G(M)},H=r.ref(0);fe({toggleCollapse:k,doLayout:()=>{I[0]&&(O(I[0]),en(o,E.value,m.value,w.value,!0,n.minItemWidth,n.maxItemWidth),H.value=H.value+1)}});let K=null;r.onMounted(()=>{if(n.rules){const M=r.toRaw(n.rules);f(M)}if(Qe&&(G(te(n.collapse),!1),n.autoLayout&&Array.isArray(I)&&I.length>0)){const M=I[0];O(M),window.ResizeObserver&&(K=new window.ResizeObserver(()=>{O(M)}),K.observe(M))}}),r.onUnmounted(()=>{K?.disconnect()});const X=(M,Y,A,P)=>{const _={...b.value};return Y===0&&(_[`${d}__first`]=!0),A>=P-1&&(_[`${d}__last`]=!0),r.h("div",{ref:F,key:`${Y}`,class:_,style:$.value},M)};return()=>{H.value,s.order.index=0;const M=[];let Y=0;if(l.slots.header){const P={key:`${Y++}`,ref:z,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},_=r.h("div",P,[l.slots.header()]);M.push(_)}else{const P=[];if(p.value){if(n.showMark){const q={class:{[`${d}__header-mark`]:!0}};n.markColor&&(q.style={background:n.markColor});const U=r.h("div",q);P.push(U)}const _=r.h("div",{class:{[`${d}__header-title`]:!0}},[p.value]);P.push(_)}if(l.slots.toolbar&&P.push(l.slots.toolbar()),n.showCollapse){const _=[];if(V.value){const Z={class:R.value},ee=r.h("span",Z,[V.value]);_.push(ee)}const q={class:B.value},U=a(n.collapseIcon,q);if(U&&_.push(U),_.length>0){const Z=r.h("div",{class:{[`${d}__header-collapse`]:!0},onClick:C},_);P.push(Z)}}if(P.length>0){const _={key:`${Y++}`,ref:z,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},q=r.h("div",_,P);M.push(q)}}N();const A=l.slots.default?l.slots.default():[];if(n.type==="grid"){const P=X(A,Y++,0,A.length);M.push(P)}else if(n.type==="flow"){const P=X(A,Y++,0,A.length);M.push(P)}else for(let P=0;P<A.length;P++){const _=A[P],q=X([_],Y++,P,A.length);M.push(q)}if(x.value){const P=n.tag||"div";return r.h(P,{ref:W,prop:n.name,class:{[`${d}`]:!0,"is-collapse":L.value},style:S.value},[M])}else return M}}}}const{componentName:jl,create:Ml,scope:_l}=Q("group"),er=Ml(Ll(jl,_l,(e,t)=>(e=e??Fe.ArrowUp,r.h(g.ElIcon,t,{default:()=>[r.h(e)]}))));function Pl(e){return e===window}const Hl=/matrix\((.+)\)/,tr=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(Pl(t))return{x:0,y:0};let a=0,n=0,l=t;for(;l!==null;)a+=l.offsetLeft,n+=l.offsetTop,l=l.offsetParent;let o=0,s=0,i=0,u=0;for(l=t;l!==document;){s+=l.scrollTop,o+=l.scrollLeft;const{transform:c}=window.getComputedStyle(l);if(c){const f=Hl.exec(c);if(f){let S=f[1].split(/\s*,\s*/);S.length==6&&(i+=Number(S[4]),u+=Number(S[5]))}}l=l.parentNode}return a-=o,n-=s,a+=i,n+=u,{x:a,y:n}};function zl(e){return e===window}const nn=e=>{const t=r.unref(e);if(zl(t)){const a=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:a,bottom:n,width:a,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class Kl{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const a=this.watchedListeners.indexOf(t);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Wl{monitorRegister=new WeakMap;watch(t,a){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o||(o=new Kl,n.addEventListener("scroll",o.listen),n===document.body&&n.addEventListener("resize",o.listen),this.monitorRegister.set(n,o)),o.add(a),n=n.parentNode}}unwatch(t,a){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o&&(o.remove(a),o.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",o.listen),n===document.body&&n.removeEventListener("resize",o.listen))),n=n.parentNode}}}const nr=new Wl,rr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},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:Gl,create:Yl}=Q("price"),Ul=Yl({props:{...rr},setup(e){const t=r.computed(()=>({[Gl]:!0})),a=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>et(e.price)==0?"":dt(e.price,e.decimalLength,!0,ge(e.digits),e.separator)),l=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),o=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:a,intText:l,decimalText:o}}}),Xl=["innerHTML"],Zl=["innerHTML"];function Jl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("view",{class:r.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(r.openBlock(),r.createElementBlock("view",{key:0,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Xl)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--${e.size}`)},r.toDisplayString(e.intText),3),e.decimalText.length!=0?(r.openBlock(),r.createElementBlock("view",{key:1,class:r.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--decimal-${e.size}`)},r.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(r.openBlock(),r.createElementBlock("view",{key:2,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Zl)):r.createCommentVNode("",!0)],2)}const rn=Ee(Ul,[["render",Jl]]),{componentName:Vt,create:Ql}=Q("hint-text"),eo=Ql({components:{Price:rn},props:{...rr,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const o=r.ref(!0),s=r.ref({x:0,y:0}),i=r.ref({x:0,y:0}),u=r.ref(0),c=r.ref(0),f=r.ref(e.placement),d=r.computed(()=>({[Vt]:!0})),S=r.ref(null),b=(V,R,B=10)=>{if(!Qe||R===!1||!V)return;o.value=!0;const W=nn(e.reference);u.value=W.width,c.value=W.height,setTimeout(()=>{if(!S.value)return;const z=tr(e.reference),v=document.documentElement.clientWidth||document.body.clientWidth,y=S.value.offsetWidth,T=S.value.offsetHeight;z.y-T>=0?(f.value="top",s.value.y=z.y-T-10-4,i.value.y=T):(f.value="bottom",s.value.y=z.y+c.value+10,i.value.y=-10);const L=z.x+y-v;L<0?(s.value.x=z.x,i.value.x=20):(s.value.x=z.x-L,i.value.x=L+20),o.value=!1},B)},$=rt(()=>{b(e.message,e.visible)},10),p=r.computed(()=>e.visible&&w.value),w=r.ref(!0),m=rt(V=>{const R=V[0];R&&(w.value=R.isIntersecting)},10),x=new IntersectionObserver(m);r.watch([()=>e.message,()=>e.visible],([V,R])=>{b(V,R)}),r.onMounted(()=>{b(e.message,e.visible),nr.watch(e.reference,$),x.observe(e.reference)}),r.onBeforeMount(()=>{nr.unwatch(e.reference,$),x.unobserve(e.reference),x.disconnect()});const I=r.computed(()=>{const V={"min-width":ce(u.value)};return o.value?V.visibility="hidden":V.transform=`translate(${s.value.x}px, ${s.value.y}px)`,V}),F=r.computed(()=>({[`${Vt}__content`]:!0})),N=r.computed(()=>({})),E=r.computed(()=>({[`${Vt}__arrow`]:!0,[`${Vt}__arrow-${e.placement}`]:!0})),O=r.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:p,tipRef:S,classes:d,styles:I,textClasses:F,textStyles:N,arrowClasses:E,arrowStyles:O}}}),to={key:1,class:"text"};function no(e,t,a,n,l,o){const s=r.resolveComponent("Price");return r.openBlock(),r.createBlock(r.Transition,{name:"hint-text-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",to,r.toDisplayString(e.message),1))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])]),_:1})}const Ot=Ee(eo,[["render",no]]);class ar{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}}const an={},ro=new ar,Ke=new Map,ln=e=>{if(e){const t=document.getElementById(e);Ke.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of Ke.keys()){const a=document.getElementById(t);a&&a.parentNode?.removeChild(a)}Ke.clear()}},ao=e=>{const t=document.getElementById(e.id);if(t){const a=Ke.get(e.id);a?e={...an,...a,...e}:e={...an,...e};const n=r.createVNode(Ot,e);return r.render(n,t),e.id}},lo=e=>{e.unmount=ln;let t;if(e.id){if(t=e.id,Ke.has(t))return ao(e)}else t=`hinttext_${ro.get()}`;e={...an,...e},e.id=t,Ke.set(t,e);const a=document.createElement("div");a.id=e.id;const n=r.createVNode(Ot,e);return r.render(n,a),document.body.appendChild(a),t},oo=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},It={show(e,t,a={},n=!0){return n&&ln(),oo(t),lo({...a,message:t,reference:e})},hide(e){ln(e)},install(e){e.config.globalProperties.$hintText=It}},{componentName:lr,create:io}=Q("item"),so=io({inheritAttrs:!0,props:{...ie,...pe},emits:["appear","disappear"],setup(e,t){const a=e.prop??t.attrs.name;ue({componentName:lr,validate:!1},a);const n=Ve(),l=Tt();xt(!1);const o=r.computed(()=>l&&n?Ct(n,!1).value:null),s=lr,i=r.ref(null),u=r.computed(()=>{const A={[s]:!0,[`${s}__gutter`]:o.value&&o.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(A[e.errorMarkClass]=!!W.value,A[e.warnMarkClass]=!!R.value,A[e.infoMarkClass]=!!O.value,typeof i.value=="function"){const P=i.value(a);A[P]=!0}else if(typeof i.value=="string"){const P=i.value;A[P]=!0}return A}),c=r.computed(()=>{const A={},P=l&&n?Et(n,!1):null;if(o.value&&P)if(o.value.type==="grid"){const _=kt(P,o.value,e.span,e.offset);Object.assign(A,_)}else if(o.value.type==="flow"){const _=Nt(P,o.value,e.span,e.offset,e.width);Object.assign(A,_)}else return e.width&&(A.width=ce(e.width)),A;else e.width&&(A.width=ce(e.width));return A}),f=r.ref(null),d=r.computed({get:()=>f.value??te(e.isRequired),set:A=>{f.value=A}}),S=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),b=we(r.toRef(e,"labelPosition"),"labelPosition",ve.Near),$=r.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),p=r.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${$.value}`]:!0})),w=r.computed(()=>({label:!0,[`label--${$.value}`]:!0})),m=we(r.toRef(e,"labelWidth"),"labelWidth",ve.Near),x=r.computed(()=>m&&m.value?{width:ce(m.value)}:{}),I=r.computed(()=>({"label--string":!0,"label--required":d.value})),F=r.computed(()=>({content:!0,[e.contentClass]:!0})),N=r.computed(()=>({...e.contentStyle})),E=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(A){d.value=A},setErrorTip(A){E.errorTip=A},setErrorIcon(A){E.errorIcon=A},setWarnTip(A){E.warnTip=A},setWarnIcon(A){E.warnIcon=A},setInfoTip(A){E.infoTip=A},setInfoIcon(A){E.infoIcon=A},setCustomClassName(A){i.value=A}});const O=r.computed(()=>e.infoTip||E.infoTip),V=r.computed(()=>e.infoIcon||E.infoIcon),R=r.computed(()=>e.warnTip||E.warnTip),B=r.computed(()=>e.warnIcon||E.warnIcon),W=r.computed(()=>e.errorTip||E.errorTip),z=r.computed(()=>e.errorIcon||E.errorIcon),v=r.computed(()=>W.value?"error":R.value?"warn":O.value?"info":""),y=r.computed(()=>v.value.length>0),T=r.computed(()=>v.value==="error"?W.value:v.value==="warn"?R.value:v.value==="info"?O.value:""),L=r.computed(()=>v.value==="error"?z.value:v.value==="warn"?B.value:v.value==="info"?V.value:null),j=r.computed(()=>{let A={[`${s}__tip`]:!0,[`${s}__tip--${v.value}`]:!0};return v.value==="error"&&e.errorClass?A[`${e.errorClass}`]=!0:v.value==="warn"&&e.warnClass?A[`${e.warnClass}`]=!0:v.value==="info"&&e.infoClass&&(A[`${e.infoClass}`]=!0),A}),G=r.computed(()=>{let A={};return b&&b.value==="top"||!S.value?A["padding-left"]="0px":m&&m.value&&(A["padding-left"]=ce(m.value)),A}),C=()=>r.h(L.value,{width:12,height:12}),k=r.computed(()=>t.slots.fixedTip),H=r.computed(()=>({[`${s}__fixed-tip`]:!0})),D=r.ref();let K="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([A,P,_,q])=>{D.value&&(A&&!le(P)?K?It.show(D.value,P,{...q,id:K,type:_},!0):K=It.show(D.value,P,{...q,type:_},!0):It.hide(K))});let X=null;const M=()=>{X||!D.value||(X=new IntersectionObserver(A=>{let P=!1;for(let _ of A)if(_.intersectionRatio>0){P=!0,P&&t.emit("appear",_);break}P||t.emit("disappear")}),X.observe(D.value))},Y=()=>{!X||!D.value||(X.unobserve(D.value),X=null)};return r.watch(()=>te(e.appearListen),A=>{A?M():Y()}),r.onMounted(()=>{te(e.appearListen)&&M()}),r.onUnmounted(Y),{classes:u,styles:c,mainClasses:p,hasLabel:S,labelClasses:w,labelStyles:x,labelStringClasses:I,contentClasses:F,contentStyles:N,contentRef:D,hasTip:y,mTip:T,mIcon:L,renderIcon:C,tipClasses:j,tipStyles:G,hasFixedTip:k,fixedTipClasses:H}}}),uo=["prop"],co={key:0,class:"fox-item__tip--icon"},fo={class:"fox-item__tip--text"};function ho(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),prop:e.prop},[r.createElementVNode("div",{class:r.normalizeClass(e.mainClasses)},[e.hasLabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.labelClasses),style:r.normalizeStyle(e.labelStyles)},[r.createElementVNode("div",{class:r.normalizeClass(e.labelStringClasses)},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2)],6)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref:"contentRef",class:r.normalizeClass(e.contentClasses),style:r.normalizeStyle(e.contentStyles)},[r.renderSlot(e.$slots,"prepend"),r.renderSlot(e.$slots,"default"),r.renderSlot(e.$slots,"append"),e.hasFixedTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.fixedTipClasses)},[r.renderSlot(e.$slots,"fixedTip")],2)):r.createCommentVNode("",!0)],6)],2),r.createVNode(r.Transition,{name:"fox-item__animate"},{default:r.withCtx(()=>[e.hasTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.tipClasses),style:r.normalizeStyle(e.tipStyles)},[e.mIcon?(r.openBlock(),r.createElementBlock("div",co,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon())))])):r.createCommentVNode("",!0),r.createElementVNode("div",fo,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,uo)}const de=Ee(so,[["render",ho]]);function go(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(a,n){const l=Ve(),o=Tt();xt(!1);const s=r.computed(()=>o&&l?Ct(l,!1).value:null),i=e,u=r.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),c=r.computed(()=>{const f={},d=o&&l?Et(l,!1):null;if(s.value&&d)if(s.value.type==="grid"){const S=kt(d,s.value,a.span,a.offset);Object.assign(f,S)}else if(s.value.type==="flow"){const S=Nt(d,s.value,a.span,a.offset,a.width);Object.assign(f,S)}else return a.width&&(f.width=ce(a.width)),f;else a.width&&(f.width=ce(a.width));return f});return()=>{const f={class:u.value,style:c.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",f,n.slots.default()):r.h("div",f)}}}}const{componentName:mo,create:po,scope:Mu}=Q("slot-item"),or=po(go(mo));function yo(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(a,n){const l=e,o=r.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=Ve(),i=Tt();xt(!1);const u=r.computed(()=>{const c={};if(i&&s){const f=Ct(s,!1),d=Et(s,!1);if(f.value&&d)if(f.value.type==="grid"){const S=kt(d,f.value,a.span,a.offset);Object.assign(c,S)}else if(f.value.type==="flow"){const S=Nt(d,f.value,a.span,a.offset,a.width);Object.assign(c,S)}else a.width&&(c.width=ce(a.width))}else a.width&&(c.width=ce(a.width));return c});return()=>{const c=[];if(n.slots.default){const d=n.slots.default();if(a.divide)for(let S=0;S<d.length;S++){if(S>0){const b=r.h("div",{class:{[`${l}__divide`]:!0}});c.push(b)}c.push(d[S])}else Reflect.apply([].push,c,d)}const f={class:o.value,style:u.value};return r.h("div",f,c)}}}}const{componentName:bo,create:So,scope:_u}=Q("row-item"),ir=So(yo(bo)),sr={modelValue:{type:[String,Boolean,Number,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},showTooltip:{type:Boolean,default:!1}};function wo(e,t,a){return{props:{...ie,...pe,...sr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[S]:!0,[`${S}__disabled`]:o.value,[`${S}__readonly`]:s.value})),$=v=>{d.value=v,i("update:modelValue",v),i("input",v)},p=v=>{i("change",v)};let w=ne(n,"hintText"),m=r.ref(!1);const x=v=>{let T=v.target.value;f.value=!0,le(w.value)||(m.value=!0),i("focus",T,v)},I=v=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let T=v.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),i("blur",T,v)},F=()=>{i("clear","")},N=r.ref(!1);let E=null;const O=()=>{n.showTooltip&&N.value===!1&&(E=setTimeout(()=>{N.value=!0},150))},V=()=>{E&&(clearTimeout(E),N.value=!1,E=null)},R=r.computed(()=>N.value||m.value),B=r.computed(()=>N.value?d.value:w.value),W=r.computed(()=>et(n.unit)>0),z=r.ref();return fe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const y={...l.attrs,ref:z,class:b.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:F,onChange:p,onInput:$,onFocus:x,onBlur:I,onMouseover:O,onMouseleave:V},T={};l.slots.prepend&&(T.prepend=l.slots.prepend),l.slots.append&&(T.append=l.slots.append),l.slots.prefix&&(T.prefix=l.slots.prefix),l.slots.suffix?T.suffix=l.slots.suffix:W.value&&(T.suffix=()=>[n.unit]);const L=[],j=r.h(g.ElInput,y,T);L.push(j);const G={default:()=>L};l.slots.default&&(G.label=l.slots.default),l.slots.default&&(G.fixedTip=l.slots.fixedTip);const k={...me(n,sr),hintText:B.value,hintVisible:R.value,prop:`${n.prop}_item`};return r.h(a,k,G)}}}}const{componentName:$o,create:vo,scope:To}=Q("input-item"),ur=vo(wo($o,To,de));function je(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function We(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function cr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function xo(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Co=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Re(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function Eo(){const e=r.getCurrentInstance();return new Co(e.proxy)}function fr(e,t,a){const n=je(e,t),l=je(e,a);if(n!==l)return!1;const o=We(e,t),s=We(e,a);return o===s}function dr(e,t,a,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){const i=cr(e,s);if(Array.isArray(i)&&i.length>0){const u=dr(e,o,a,i)??[];Reflect.apply([].push,l,u)}else{let u=!1;if(a==="text")u=je(e,s)===o;else if(a==="item")u=fr(e,s,o);else{let c=We(e,s);c==null&&(c=je(e,s)),u=c===o}if(u){l.push(s);break}}}}),l}function No(e){return{text:e,value:e}}const hr={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"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1}};function ko(e,t,a){return{props:{...ie,...pe,...hr},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(null),d=r.ref([]),S=(D,K,X,M=!0)=>{const Y=dr(n,D,K,X);if(Y===null){if(d.value===null||d.value.length===0)return;f.value=null,d.value=[],M&&(i("update:modelValue",null),i("change",null));return}let A=!0;if(Y.length!==d.value.length)A=!1;else for(let P=0;P<Y.length;P++){const _=Y[P],q=d.value[P];if(!fr(n,_,q)){A=!1;break}}if(!A){d.value=Y;let P=[],_=[];Y.forEach(U=>{P.push(We(n,U)),n.valueType==="text"?_.push(je(n,U)):n.valueType==="item"?_.push(U):_.push(We(n,U))});let q;n.multiple?(f.value=P,q=r.toRaw(_)):(f.value=P[0]??"",q=r.toRaw(_[0]??"")),M&&(i("update:modelValue",q),i("change",q))}},b=r.ref(null),$=r.ref(null),p=r.computed(()=>$.value??b.value??[]),w=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,D=>te(D)),m=Eo(),x=async(D,K)=>{if(D){const X=await m.load("select",D,K);if(X.length>0)if(typeof X[0]=="string"){let A=X.map(P=>No(P));b.value=A}else b.value=X;else b.value=null}};r.watch([()=>n.source,()=>n.params],([D,K])=>{x(D,K)},{immediate:!w.value});let I=!1;const F=()=>{I||(I=!0,x(n.source,n.params))};r.watch([()=>p.value,()=>n.modelValue],([D,K])=>{S(K,n.valueType,D,!1)});let N=null,E=r.ref(!1);typeof n.remoteMethod=="function"&&(N=async D=>{if(D==null){$.value=null;return}E.value=!0;try{const K=await n.remoteMethod(D);K&&($.value=K)}catch(K){$.value=null,console.error(K)}E.value=!1});let O=null;typeof n.filterMethod=="function"&&(O=async D=>{if(D==null){$.value=null;return}E.value=!0;try{const K=await n.filterMethod(D,b.value);K&&($.value=K)}catch(K){$.value=null,console.error(K)}E.value=!1});const V=r.ref(!1),R=e,B=r.computed(()=>({[R]:!0})),W=D=>{n.allowCreate?(i("update:modelValue",D),i("change",D),f.value=D):S(D,"value",p.value,!0)};let z=ne(n,"hintText"),v=r.ref(!1);const y=D=>{let X=D.target.value;V.value=!0,le(z.value)||(v.value=!0),i("focus",X,D)},T=D=>{setTimeout(()=>{v.value&&(v.value=!1),V.value=!1},0);let X=D.target.value;n.maxLength&&X.length>Number(n.maxLength)&&(X=X.slice(0,Number(n.maxLength))),j.value||i("blur",X,D)},L=()=>{i("clear","")},j=r.ref(!1),G=D=>{j.value=D,i("visible-change",D),D||i("selected")},C=D=>{i("remove-tag",D)},k=(D,K)=>{const X=[];return D.forEach((M,Y)=>{const A=cr(n,M);if(Array.isArray(A)&&A.length>0){const P=k(A,K),_=je(n,M),U={key:`${_}_${Y}`,label:_};X.push(r.h(g.ElOptionGroup,U,{default:()=>P}))}else{const P=We(n,M),_=je(n,M),q=xo(n,M),Z={key:`${P}_${Y}`,label:_,disabled:q,value:P};if(typeof K=="function")X.push(r.h(g.ElOption,Z,{default:()=>K(M)}));else if(n.optionType==="item"){const ee={class:{"fox-select-item__option-left":!0}},ye=r.h("span",ee,[P]),se={class:{"fox-select-item__option-right":!0}},_e=r.h("span",se,[_]),pa=r.h("div",{class:{"fox-select-item__option":!0}},[ye,_e]);X.push(r.h(g.ElOption,Z,{default:()=>pa}))}else n.optionType==="value"?X.push(r.h(g.ElOption,Z,{default:()=>[P]})):X.push(r.h(g.ElOption,Z))}}),X},H=r.ref();return fe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()}}),()=>{const K={...l.attrs,ref:H,class:B.value,clearable:n.clearable,multiple:n.multiple,placeholder:c.placeholder.value,disabled:o.value||s.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:L,onChange:W,onFocus:y,onBlur:T,onVisibleChange:G,onRemoveTag:C};typeof N=="function"&&(K["remote-method"]=N,K.loading=E.value),typeof O=="function"&&(K["filter-method"]=O,K.loading=E.value);const X={};l.slots.prefix&&(X.prefix=l.slots.prefix),l.slots.empty&&(X.empty=l.slots.empty),l.slots.options?X.default=l.slots.options:X.default=()=>k(p.value,l.slots.option);const M=[],Y=r.h(g.ElSelect,K,X);M.push(Y);const A={default:()=>M};l.slots.default&&(A.label=l.slots.default),l.slots.fixedTip&&(A.fixedTip=l.slots.fixedTip);const _={...me(n,hr),hintText:z.value,hintVisible:v.value,prop:`${n.prop??l.attrs.name}_item`};return w.value&&(_["appear-listen"]=!0,_.onAppear=F),r.h(a,_,A)}}}}const{componentName:Vo,create:Oo,scope:Io}=Q("select-item"),gr=Oo(ko(Vo,Io,de));var Oe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){var a=1e3,n=6e4,l=36e5,o="millisecond",s="second",i="minute",u="hour",c="day",f="week",d="month",S="quarter",b="year",$="date",p="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,x={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("_")},I=function(v,y,T){var L=String(v);return!L||L.length>=y?v:""+Array(y+1-L.length).join(T)+v},F={s:I,z:function(v){var y=-v.utcOffset(),T=Math.abs(y),L=Math.floor(T/60),j=T%60;return(y<=0?"+":"-")+I(L,2,"0")+":"+I(j,2,"0")},m:function v(y,T){if(y.date()<T.date())return-v(T,y);var L=12*(T.year()-y.year())+(T.month()-y.month()),j=y.clone().add(L,d),G=T-j<0,C=y.clone().add(L+(G?-1:1),d);return+(-(L+(T-j)/(G?j-C:C-j))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:d,y:b,w:f,d:c,D:$,h:u,m:i,s,ms:o,Q:S}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},N="en",E={};E[N]=x;var O=function(v){return v instanceof W},V=function v(y,T,L){var j;if(!y)return N;if(typeof y=="string"){var G=y.toLowerCase();E[G]&&(j=G),T&&(E[G]=T,j=G);var C=y.split("-");if(!j&&C.length>1)return v(C[0])}else{var k=y.name;E[k]=y,j=k}return!L&&j&&(N=j),j||!L&&N},R=function(v,y){if(O(v))return v.clone();var T=typeof y=="object"?y:{};return T.date=v,T.args=arguments,new W(T)},B=F;B.l=V,B.i=O,B.w=function(v,y){return R(v,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var W=function(){function v(T){this.$L=V(T.locale,null,!0),this.parse(T)}var y=v.prototype;return y.parse=function(T){this.$d=function(L){var j=L.date,G=L.utc;if(j===null)return new Date(NaN);if(B.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var C=j.match(w);if(C){var k=C[2]-1||0,H=(C[7]||"0").substring(0,3);return G?new Date(Date.UTC(C[1],k,C[3]||1,C[4]||0,C[5]||0,C[6]||0,H)):new Date(C[1],k,C[3]||1,C[4]||0,C[5]||0,C[6]||0,H)}}return new Date(j)}(T),this.$x=T.x||{},this.init()},y.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},y.$utils=function(){return B},y.isValid=function(){return this.$d.toString()!==p},y.isSame=function(T,L){var j=R(T);return this.startOf(L)<=j&&j<=this.endOf(L)},y.isAfter=function(T,L){return R(T)<this.startOf(L)},y.isBefore=function(T,L){return this.endOf(L)<R(T)},y.$g=function(T,L,j){return B.u(T)?this[L]:this.set(j,T)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(T,L){var j=this,G=!!B.u(L)||L,C=B.p(T),k=function(P,_){var q=B.w(j.$u?Date.UTC(j.$y,_,P):new Date(j.$y,_,P),j);return G?q:q.endOf(c)},H=function(P,_){return B.w(j.toDate()[P].apply(j.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(_)),j)},D=this.$W,K=this.$M,X=this.$D,M="set"+(this.$u?"UTC":"");switch(C){case b:return G?k(1,0):k(31,11);case d:return G?k(1,K):k(0,K+1);case f:var Y=this.$locale().weekStart||0,A=(D<Y?D+7:D)-Y;return k(G?X-A:X+(6-A),K);case c:case $:return H(M+"Hours",0);case u:return H(M+"Minutes",1);case i:return H(M+"Seconds",2);case s:return H(M+"Milliseconds",3);default:return this.clone()}},y.endOf=function(T){return this.startOf(T,!1)},y.$set=function(T,L){var j,G=B.p(T),C="set"+(this.$u?"UTC":""),k=(j={},j[c]=C+"Date",j[$]=C+"Date",j[d]=C+"Month",j[b]=C+"FullYear",j[u]=C+"Hours",j[i]=C+"Minutes",j[s]=C+"Seconds",j[o]=C+"Milliseconds",j)[G],H=G===c?this.$D+(L-this.$W):L;if(G===d||G===b){var D=this.clone().set($,1);D.$d[k](H),D.init(),this.$d=D.set($,Math.min(this.$D,D.daysInMonth())).$d}else k&&this.$d[k](H);return this.init(),this},y.set=function(T,L){return this.clone().$set(T,L)},y.get=function(T){return this[B.p(T)]()},y.add=function(T,L){var j,G=this;T=Number(T);var C=B.p(L),k=function(K){var X=R(G);return B.w(X.date(X.date()+Math.round(K*T)),G)};if(C===d)return this.set(d,this.$M+T);if(C===b)return this.set(b,this.$y+T);if(C===c)return k(1);if(C===f)return k(7);var H=(j={},j[i]=n,j[u]=l,j[s]=a,j)[C]||1,D=this.$d.getTime()+T*H;return B.w(D,this)},y.subtract=function(T,L){return this.add(-1*T,L)},y.format=function(T){var L=this,j=this.$locale();if(!this.isValid())return j.invalidDate||p;var G=T||"YYYY-MM-DDTHH:mm:ssZ",C=B.z(this),k=this.$H,H=this.$m,D=this.$M,K=j.weekdays,X=j.months,M=function(_,q,U,Z){return _&&(_[q]||_(L,G))||U[q].slice(0,Z)},Y=function(_){return B.s(k%12||12,_,"0")},A=j.meridiem||function(_,q,U){var Z=_<12?"AM":"PM";return U?Z.toLowerCase():Z},P={YY:String(this.$y).slice(-2),YYYY:this.$y,M:D+1,MM:B.s(D+1,2,"0"),MMM:M(j.monthsShort,D,X,3),MMMM:M(X,D),D:this.$D,DD:B.s(this.$D,2,"0"),d:String(this.$W),dd:M(j.weekdaysMin,this.$W,K,2),ddd:M(j.weekdaysShort,this.$W,K,3),dddd:K[this.$W],H:String(k),HH:B.s(k,2,"0"),h:Y(1),hh:Y(2),a:A(k,H,!0),A:A(k,H,!1),m:String(H),mm:B.s(H,2,"0"),s:String(this.$s),ss:B.s(this.$s,2,"0"),SSS:B.s(this.$ms,3,"0"),Z:C};return G.replace(m,function(_,q){return q||P[_]||C.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(T,L,j){var G,C=B.p(L),k=R(T),H=(k.utcOffset()-this.utcOffset())*n,D=this-k,K=B.m(this,k);return K=(G={},G[b]=K/12,G[d]=K,G[S]=K/3,G[f]=(D-H)/6048e5,G[c]=(D-H)/864e5,G[u]=D/l,G[i]=D/n,G[s]=D/a,G)[C]||D,j?K:B.a(K)},y.daysInMonth=function(){return this.endOf(d).$D},y.$locale=function(){return E[this.$L]},y.locale=function(T,L){if(!T)return this.$L;var j=this.clone(),G=V(T,L,!0);return G&&(j.$L=G),j},y.clone=function(){return B.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},v}(),z=W.prototype;return R.prototype=z,[["$ms",o],["$s",s],["$m",i],["$H",u],["$W",c],["$M",d],["$y",b],["$D",$]].forEach(function(v){z[v[1]]=function(y){return this.$g(y,v[0],v[1])}}),R.extend=function(v,y){return v.$i||(v(y,W,R),v.$i=!0),R},R.locale=V,R.isDayjs=O,R.unix=function(v){return R(1e3*v)},R.en=E[N],R.Ls=E,R.p={},R})})(mr);var Ro=mr.exports;const Ne=Ie(Ro);var pr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(p){return(p=+p)+(p>68?1900:2e3)},c=function(p){return function(w){this[p]=+w}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var m=w.match(/([+-]|\d\d)/g),x=60*m[1]+(+m[2]||0);return x===0?0:m[0]==="+"?-x:x}(p)}],d=function(p){var w=i[p];return w&&(w.indexOf?w:w.s.concat(w.f))},S=function(p,w){var m,x=i.meridiem;if(x){for(var I=1;I<=24;I+=1)if(p.indexOf(x(I,0,w))>-1){m=I>12;break}}else m=p===(w?"pm":"PM");return m},b={A:[s,function(p){this.afternoon=S(p,!1)}],a:[s,function(p){this.afternoon=S(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[l,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[l,c("day")],Do:[s,function(p){var w=i.ordinal,m=p.match(/\d+/);if(this.day=m[0],w)for(var x=1;x<=31;x+=1)w(x).replace(/\[|\]/g,"")===p&&(this.day=x)}],M:[o,c("month")],MM:[l,c("month")],MMM:[s,function(p){var w=d("months"),m=(d("monthsShort")||w.map(function(x){return x.slice(0,3)})).indexOf(p)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[s,function(p){var w=d("months").indexOf(p)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,c("year")],YY:[l,function(p){this.year=u(p)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function $(p){var w,m;w=p,m=i&&i.formats;for(var x=(p=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(R,B,W){var z=W&&W.toUpperCase();return B||m[W]||a[W]||m[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,y,T){return y||T.slice(1)})})).match(n),I=x.length,F=0;F<I;F+=1){var N=x[F],E=b[N],O=E&&E[0],V=E&&E[1];x[F]=V?{regex:O,parser:V}:N.replace(/^\[|\]$/g,"")}return function(R){for(var B={},W=0,z=0;W<I;W+=1){var v=x[W];if(typeof v=="string")z+=v.length;else{var y=v.regex,T=v.parser,L=R.slice(z),j=y.exec(L)[0];T.call(B,j),R=R.replace(j,"")}}return function(G){var C=G.afternoon;if(C!==void 0){var k=G.hours;C?k<12&&(G.hours+=12):k===12&&(G.hours=0),delete G.afternoon}}(B),B}}return function(p,w,m){m.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var x=w.prototype,I=x.parse;x.parse=function(F){var N=F.date,E=F.utc,O=F.args;this.$u=E;var V=O[1];if(typeof V=="string"){var R=O[2]===!0,B=O[3]===!0,W=R||B,z=O[2];B&&(z=O[2]),i=this.$locale(),!R&&z&&(i=m.Ls[z]),this.$d=function(L,j,G){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*L);var C=$(j)(L),k=C.year,H=C.month,D=C.day,K=C.hours,X=C.minutes,M=C.seconds,Y=C.milliseconds,A=C.zone,P=new Date,_=D||(k||H?1:P.getDate()),q=k||P.getFullYear(),U=0;k&&!H||(U=H>0?H-1:P.getMonth());var Z=K||0,ee=X||0,ye=M||0,se=Y||0;return A?new Date(Date.UTC(q,U,_,Z,ee,ye,se+60*A.offset*1e3)):G?new Date(Date.UTC(q,U,_,Z,ee,ye,se)):new Date(q,U,_,Z,ee,ye,se)}catch{return new Date("")}}(N,V,E),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),W&&N!=this.format(V)&&(this.$d=new Date("")),i={}}else if(V instanceof Array)for(var v=V.length,y=1;y<=v;y+=1){O[1]=V[y-1];var T=m.apply(this,O);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}y===v&&(this.$d=new Date(""))}else I.call(this,F)}}})})(pr);var Ao=pr.exports;const Do=Ie(Ao);var yr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n,l){var o=n.prototype,s=o.format;l.en.ordinal=function(i){var u=["th","st","nd","rd"],c=i%100;return"["+i+(u[(c-20)%10]||u[c]||u[0])+"]"},o.format=function(i){var u=this,c=this.$locale();if(!this.isValid())return s.bind(this)(i);var f=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(S){switch(S){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return c.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return c.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),S==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),S==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),S==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return S}});return s.bind(this)(d)}}})})(yr);var Bo=yr.exports;const Fo=Ie(Bo);var br={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n,l){var o=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,S,b,$,p){var w=d.name?d:d.$locale(),m=s(w[S]),x=s(w[b]),I=m||x.map(function(N){return N.slice(0,$)});if(!p)return I;var F=w.weekStart;return I.map(function(N,E){return I[(E+(F||0))%7]})},u=function(){return l.Ls[l.locale()]},c=function(d,S){return d.formats[S]||function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,p,w){return p||w.slice(1)})}(d.formats[S.toUpperCase()])},f=function(){var d=this;return{months:function(S){return S?S.format("MMMM"):i(d,"months")},monthsShort:function(S){return S?S.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(S){return S?S.format("dddd"):i(d,"weekdays")},weekdaysMin:function(S){return S?S.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(S){return S?S.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(S){return c(d.$locale(),S)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return f.bind(this)()},l.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(S){return c(d,S)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return i(u(),"months")},l.monthsShort=function(){return i(u(),"monthsShort","months",3)},l.weekdays=function(d){return i(u(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return i(u(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return i(u(),"weekdaysMin","weekdays",2,d)}}})})(br);var qo=br.exports;const Lo=Ie(qo);var Sr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){var a="week",n="year";return function(l,o,s){var i=o.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(n).add(1,n).date(c),d=s(this).endOf(a);if(f.isBefore(d))return 1}var S=s(this).startOf(n).date(c).startOf(a).subtract(1,"millisecond"),b=this.diff(S,a,!0);return b<0?s(this).startOf("week").week():Math.ceil(b)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Sr);var jo=Sr.exports;const Mo=Ie(jo);var wr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n){n.prototype.weekYear=function(){var l=this.month(),o=this.week(),s=this.year();return o===1&&l===11?s+1:l===0&&o>=52?s-1:s}}})})(wr);var _o=wr.exports;const Po=Ie(_o);var $r={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n,l){n.prototype.dayOfYear=function(o){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}})})($r);var Ho=$r.exports;const zo=Ie(Ho);var vr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n){n.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})(vr);var Ko=vr.exports;const Wo=Ie(Ko);var Tr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n){n.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(Tr);var Go=Tr.exports;const Yo=Ie(Go);Ne.extend(Lo),Ne.extend(Fo),Ne.extend(Do),Ne.extend(Mo),Ne.extend(Po),Ne.extend(zo),Ne.extend(Wo),Ne.extend(Yo);const ot={format(e,t){return Ne(e).format(t)},parser(e,t){return Ne(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,a){const l=new Date(e+"/"+t+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const a=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,n,l].join(t)},getDay(e,t){e=e||0;let a=t??new Date;const n=e*(1e3*60*60*24);return a=new Date(a.getTime()+n),this.date2Str(a)},compareDate(e,t){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(a>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,a==n},getMonthWeek:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a));let o=l.getDay(),s=l.getDate(),i=6-o;return n!==0&&(o=o==0?7:o,i=7-o),Math.ceil((s+i)/7)},getYearWeek:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a)),o=new Date(Number(e),0,1),s=Math.round((l.valueOf()-o.valueOf())/864e5);let i=l.getDay(),u=6-i;return n!==0&&(i=i==0?7:i,u=7-i),Math.ceil((s+u)/7)},getWeekDate:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a)),o=l.getTime();let s=l.getDay();if(n===0){const u=o-s*864e5,c=o+(6-s)*864e5,f=this.date2Str(new Date(u)),d=this.date2Str(new Date(c));return[f,d]}else{s=s==0?7:s;const i=24*60*60*1e3,u=o-(s-1)*i,c=o+(7-s)*i,f=this.date2Str(new Date(u)),d=this.date2Str(new Date(c));return[f,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=ot.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=ot.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,a){const n=new Date(new Date(t).setDate(t.getDate()+a)),l=e.getTime(),o=n.getTime(),s=t.getTime();return o>s?l>=s&&l<=o:l>=o&&l<=s},inScope4Month(e,t,a){const n=new Date(new Date(t).setMonth(t.getMonth()+a)),l=e.getTime(),o=n.getTime(),s=t.getTime();return o>s?l>=s&&l<=o:l>=o&&l<=s}},xr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1}},Cr={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1}};function Uo(e,t,a){return{props:{...ie,...pe,...xr,...Cr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[`${S}__input`]:!0})),$=y=>{d.value=y,i("update:modelValue",y),i("change",y)};let p=ne(n,"hintText"),w=r.ref(!1);const m=y=>{let L=y.target.value;f.value=!0,le(p.value)||(w.value=!0),i("focus",L,y)},x=y=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let L=y.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),i("blur",L,y)},I=()=>{i("clear","")},F=y=>{i("calendar-change",y)},N=(y,T,L)=>{i("panel-change",y,T,L)},E=y=>{i("visible-change",y)},O=we(r.computed(()=>n.longTermValue),"longTermText",ve.Near),V=we(r.computed(()=>n.longTermValue),"longTermValue",ve.Near);let R=null;const B=r.ref(te(n.longTerm)),W=y=>{if(B.value=y,i("update:longTerm",y),y){let T="";Array.isArray(V.value)?T=V.value.map((L,j)=>L||(Array.isArray(d.value)?d.value[j]:n.valueFormat?ot.format(new Date,n.valueFormat):new Date)):T=V.value,R=d.value,i("update:modelValue",T)}else i("update:modelValue",R)},z=te(n.isLongTerm);if(z){const y=()=>{if(B.value===!0){let T="";Array.isArray(V.value)?T=V.value.map((L,j)=>L||(Array.isArray(d.value)?d.value[j]:n.valueFormat?ot.format(new Date,n.valueFormat):new Date)):T=V.value,R=d.value,i("update:modelValue",T)}else Ae(V.value,d.value)&&(B.value=!0)};y(),r.watch([()=>n.longTerm],([T])=>{B.value!==T&&y()})}const v=r.ref();return fe({focus:()=>{v?.value.focus()},blur:()=>{v?.value.blur()},handleOpen:()=>{v?.value.handleOpen()},handleClose:()=>{v?.value.handleClose()}}),()=>{const T={...l.attrs,ref:v,class:b.value,placeholder:c.placeholder.value,disabled:o.value||B.value,readonly:s.value,modelValue:d.value,valueFormat:n.valueFormat,"onUpdate:modelValue":$,onClear:I,onFocus:m,onBlur:x,onCalendarChange:F,onPanelChange:N,onVisibleChange:E},L={};l.slots["range-separator"]&&(L["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(L.default=l.slots.cell);const j=[],G=r.h(g.ElDatePicker,T,L);j.push(G);const C={default:()=>j};if(l.slots.default&&(C.label=l.slots.default),l.slots.fixedTip&&(C.fixedTip=l.slots.fixedTip),z){const K={label:O.value,disabled:s.value||o.value,modelValue:B.value,"onUpdate:modelValue":W},X=r.h(g.ElCheckbox,K),M=r.h("div",{class:{[`${S}__append`]:!0}},[X]);C.append=()=>M}const H={...me(n,xr,Cr),class:{[`${S}__wrapper`]:!0,"has-append":z},hintText:p.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(a,H,C)}}}}const{componentName:Xo,create:Zo,scope:Jo}=Q("date-item"),Er=Zo(Uo(Xo,Jo,de)),Nr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Qo(e,t,a){return{props:{...ie,...pe,...Nr},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[S]:!0})),$=E=>{d.value=E,i("update:modelValue",E),i("change",E)};let p=ne(n,"hintText"),w=r.ref(!1);const m=E=>{let V=E.target.value;f.value=!0,le(p.value)||(w.value=!0),i("focus",V,E)},x=E=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let V=E.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,E)},I=()=>{i("clear","")},F=E=>{i("visible-change",E)},N=r.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},handleOpen:()=>{N?.value.handleOpen()},handleClose:()=>{N?.value.handleClose()}}),()=>{const O={...l.attrs,ref:N,class:b.value,placeholder:c.placeholder.value,disabled:o.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":$,onClear:I,onFocus:m,onBlur:x,onVisibleChange:F},V={},R=[],B=r.h(g.ElTimePicker,O,V);R.push(B);const W={default:()=>R};l.slots.default&&(W.label=l.slots.default),l.slots.fixedTip&&(W.fixedTip=l.slots.fixedTip);const v={...me(n,Nr),hintText:p.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(a,v,W)}}}}const{componentName:ei,create:ti,scope:ni}=Q("time-item"),kr=ti(Qo(ei,ni,de)),Vr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ri(e,t,a){return{props:{...ie,...pe,...Vr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[S]:!0})),$=N=>{d.value=N,i("update:modelValue",N),i("change",N)};let p=ne(n,"hintText"),w=r.ref(!1);const m=N=>{let O=N.target.value;f.value=!0,le(p.value)||(w.value=!0),i("focus",O,N)},x=N=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let O=N.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),i("blur",O,N)},I=()=>{i("clear","")},F=r.ref();return fe({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},handleOpen:()=>{F?.value.handleOpen()},handleClose:()=>{F?.value.handleClose()}}),()=>{const E={...l.attrs,ref:F,class:b.value,placeholder:c.placeholder.value,disabled:o.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":$,onClear:I,onFocus:m,onBlur:x},O={},V=[],R=r.h(g.ElTimeSelect,E,O);V.push(R);const B={default:()=>V};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const z={...me(n,Vr),hintText:p.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(a,z,B)}}}}const{componentName:ai,create:li,scope:oi}=Q("time-select-item"),Or=li(ri(ai,oi,de));function Ir(e,t=0){let a=`${e}`,n=a.indexOf(".");if(n==-1)return a;let l=n;for(let o=a.length-1;o>=n;o--)if(a.charAt(o)!="0"){l=o;break}return l-n<t?l=n+t+1:l!=n&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function Rr(e,t,a=20){if(typeof t=="string"&&(t=ge(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=pn(`${e}`,`${t}`);return Ir(n)}else{let n=Mt(`${e}`,yn(`${t}`),20);return Ir(n)}}function ii(e,t=-1,a=!1,n=3,l=","){return dt(e,t,a,n,l)}function Ar(e,t,a,n,l=!0){if(e=="")return"";if(e=bn(e),t=ge(t),t==1)return e;if(n)e=Rr(e,t),a&&(e=="0"&&l?e=`${e}.`.padEnd(ge(a)+2,"0"):e=Mt(e,1,ge(a)));else{let o=-1*t;e=Rr(e,o)}return e}function Dr(e,t){let a={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=te(t.minInclude),l=_t(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let o="请输入不小于 {0} 的数值";a.message=o.replace("{0}",t.min),a.minValid=!1}}if(t.max!=null){let n=te(t.maxInclude),l=_t(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Br={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 si(e,t,a){return{props:{...ie,...pe,...Br},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=r.ref(!1),c=ne(n,"modelValue"),f=r.ref("");r.watch([()=>c.value,()=>n.rates,()=>n.precision],([v,y,T])=>{if(le(v)){f.value="";return}const L=Ar(v,y,T,!1);f.value!==L&&(f.value=L)},{immediate:!0});const d=r.computed(()=>{let v="";return u.value&&(v=f.value),v}),{t:S}=Te.useFoxI18n(t),b=r.computed(()=>{let v=n.placeholder??"";return!u.value&&!le(f.value)?v=ii(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):v=S(["placeholder",v]),v}),$=e,p=r.computed(()=>({[$]:!0,[`${$}__disabled`]:o.value,[`${$}__placeholder`]:f.value.length>0})),w=we(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:w.value??"right"});const m=r.ref(""),x=r.computed(()=>{let v=m.value;return le(v)&&(v=n.errorTip??""),v}),I=r.ref(""),F=r.ref(!1),N=(v,y)=>{if(v=`${v}`,le(v)){f.value="",c.value="",y.forEach(T=>{i(T,"")}),te(n.showTip)&&F.value&&(F.value=!1);return}if(v.length>=2){let T=v;if(T.charAt(0)=="-"&&(T=T.substring(1)),T.length>=2&&T.charAt(0)=="0"&&T.charAt(1)!="."){r.triggerRef(f);return}}if(v!="-"){if(!En(v)){r.triggerRef(f);return}if(n.integerLength!=-1&&Nn(v)>Number(n.integerLength)){r.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&kn(v)>Number(n.decimalLength)){r.triggerRef(f);return}let T=Dr(v,n);if(T.maxValid===!1){m.value=T.message,r.triggerRef(f);return}}else if(n.min!=null&&ge(n.min)>=0){r.triggerRef(f);return}I.value=v,te(n.showTip)&&(F.value=v.length>0),f.value=v,c.value=Ar(v,n.rates,n.precision,!0),y.forEach(T=>{i(T,c.value)})},E=v=>{N(v,["update:modelValue","input"])},O=v=>{N(v,["update:modelValue","change"])},V=v=>{if(u.value=!0,te(n.showTip)){let y=f.value;le(y)&&(y=n.hintText),le(y)||(I.value=y,F.value=!0)}m.value="",i("focus",c.value,v)},R=v=>{if(setTimeout(()=>{u.value=!1,te(n.showTip)&&F.value===!0&&(F.value=!1)},0),!le(f.value)){let y=Dr(f.value,n);if(y.minValid===!1||y.maxValid===!1){m.value=y.message;return}}i("update:modelValue",c.value,v),i("blur",c.value,v)},B=()=>{i("clear","")},W=r.computed(()=>et(n.unit)>0),z=r.ref();return fe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const y={...l.attrs,ref:z,class:p.value,type:"digit",maxlength:n.maxLength,placeholder:b.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onInput:E,onChange:O,onFocus:V,onBlur:R},T={};l.slots.prepend&&(T.prepend=l.slots.prepend),l.slots.append&&(T.append=l.slots.append),l.slots.prefix&&(T.prefix=l.slots.prefix),l.slots.suffix?T.suffix=l.slots.suffix:W.value&&(T.suffix=()=>[n.unit]);const L=[],j=r.h(g.ElInput,y,T);L.push(j);const G={default:()=>L};l.slots.default&&(G.label=l.slots.default),l.slots.fixedTip&&(G.fixedTip=l.slots.fixedTip);const k={...me(n,Br),errorTip:x.value,hintText:I.value,hintVisible:F.value,hintType:"number",prop:`${n.prop}_item`};return r.h(a,k,G)}}}}const{componentName:ui,create:ci,scope:fi}=Q("money-item"),Fr=ci(si(ui,fi,de)),qr={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 di(e,t,a){return{props:{...ie,...pe,...qr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[S]:!0,[`${S}__append`]:E.value})),$=r.computed(()=>({[`${S}__unit`]:!0})),p=V=>{d.value=V,i("update:modelValue",V),i("input",V)},w=V=>{i("change",V)};let m=ne(n,"hintText"),x=r.ref(!1);const I=V=>{let B=V.target.value;f.value=!0,le(m.value)||(x.value=!0),i("focus",B,V)},F=V=>{setTimeout(()=>{x.value&&(x.value=!1),f.value=!1},0);let B=V.target.value;n.maxLength&&B.length>Number(n.maxLength)&&(B=B.slice(0,Number(n.maxLength))),i("blur",B,V)},N=()=>{i("clear","")},E=r.computed(()=>et(n.unit)>0),O=r.ref();return fe({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()}}),()=>{const R={...l.attrs,ref:O,class:b.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:N,onChange:w,onInput:p,onFocus:I,onBlur:F},B={},W=[],z=r.h(g.ElInputNumber,R,B);W.push(z);const v={default:()=>W};l.slots.default&&(v.label=l.slots.default),l.slots.fixedTip&&(v.fixedTip=l.slots.fixedTip);const T={...me(n,qr),hintText:m.value,hintVisible:x.value,prop:`${n.prop}_item`};if(l.slots.append)v.append=l.slots.append;else if(E.value){const j={class:$.value},G=r.h("div",j,[n.unit]);v.append=()=>G}return r.h(a,T,v)}}}}const{componentName:hi,create:gi,scope:mi}=Q("input-number-item"),Lr=gi(di(hi,mi,de));function Ge(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Me(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function pi(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let yi=class{proxy;constructor(t){this.proxy=t}async load(t,a,n,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n,l);const o=Ce(this.proxy,t);return o===null?(console.error(`${t} component not found api function`),[]):(Re(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await o(a,n,l))}};function bi(){const e=r.getCurrentInstance();return new yi(e.proxy)}function on(e,t,a){const n=Ge(e,t),l=Ge(e,a);if(n!==l)return!1;const o=Me(e,t),s=Me(e,a);return o===s}function jr(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];let o=n;for(let s=0;Array.isArray(o)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=jr(e,i,a,n);l.push(u)}else{let u=!1;for(let c of o){if(a==="text")u=Ge(e,c)===i;else if(a==="item")u=on(e,c,i);else{let f=Me(e,c);f==null&&(f=Ge(e,c)),u=f===i}if(u){l.push(c),o=pi(e,c);break}}if(!u)break}}return l}function Si(e){return{text:e,value:e}}const Mr={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},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"}};function wi(e,t,a){return{props:{...ie,...pe,...Mr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(null),d=r.ref([]),S=(k,H,D,K=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===k)return;f.value=k;const Y=r.toRaw(k);if(K){const A=C?.value.getCheckedNodes();if(A)if(n.multiple){const P=[];A.forEach(_=>{const U=(_.pathNodes??[]).map(Z=>Z.data);P.push(U)}),i("update:pathNodes",P)}else{const _=(A[0]?.pathNodes??[]).map(q=>q.data);i("update:pathNodes",_)}i("update:modelValue",Y),i("change",Y)}}const X=jr(n,k,H,D);if(X===null){if(d.value.length===0||d.value===null)return;d.value=[],f.value=null,K&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}let M=!0;if(X.length!==d.value.length)M=!1;else for(let Y=0;Y<X.length;Y++){const A=X[Y],P=d.value[Y];if(Array.isArray(A)){if(!Array.isArray(P)||A.length!==P.length)M=!1;else for(let _=0;_<A.length;_++)if(!on(n,A[_],P[_])){M=!1;break}}else on(n,A,P)||(M=!1);if(!M)break}if(!M){d.value=X;let Y=[],A=[];X.forEach(_=>{if(Array.isArray(_)){let q=[],U=[];for(let Z of _)q.push(Me(n,Z)),n.valueType==="text"?U.push(Ge(n,Z)):n.valueType==="item"?U.push(Z):U.push(Me(n,Z));Y.push(q),A.push(U)}else Y.push(Me(n,_)),n.valueType==="text"?A.push(Ge(n,_)):n.valueType==="item"?A.push(_):A.push(Me(n,_))}),f.value=Y;const P=r.toRaw(A);K&&(i("update:pathNodes",X),i("update:modelValue",P),i("change",P))}},b=r.ref([]),$=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,k=>te(k)),p=bi(),w=async(k,H)=>{if(k){const D=await p.load("cascader",k,H);if(D.length>0)if(typeof D[0]=="string"){let M=D.map(Y=>Si(Y));b.value=M}else b.value=D}};r.watch([()=>n.source,()=>n.params],async([k,H])=>{w(k,H)},{immediate:!($.value||n.lazy)});let m=!1;const x=()=>{m||(m=!0,w(n.source,n.params))};r.watch([()=>b.value,()=>n.modelValue],([k,H])=>{S(H,n.valueType,k,!1)}),n.lazy&&S(n.modelValue,"value",[],!1);let I=null,F=r.ref(!1);typeof n.remoteMethod=="function"&&(I=async k=>{if(k!=null){F.value=!0;try{const H=await n.remoteMethod(k);b.value=H}catch(H){console.error(H)}F.value=!1}});const N=r.ref(!1),E=e,O=r.computed(()=>({[E]:!0})),V=r.computed(()=>{let k={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(k.multiple=!0),n.props&&Object.assign(k,n.props),n.lazy&&(k.lazy=!0,k.lazyLoad=async(H,D)=>{const K=await p.load("cascader",n.source,H,!0);D(K)}),k}),R=k=>{n.allowCreate?(i("update:modelValue",k),i("change",k),f.value=k):S(k,"value",b.value,!0)};let B=ne(n,"hintText"),W=r.ref(!1);const z=k=>{let D=k.target.value;N.value=!0,le(B.value)||(W.value=!0),i("focus",D,k)},v=k=>{setTimeout(()=>{W.value&&(W.value=!1),N.value=!1},0);let D=k.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),T.value||i("blur",D,k)},y=()=>{i("clear","")},T=r.ref(!1),L=k=>{T.value=k,i("visible-change",k),k||i("selected")},j=k=>{i("remove-tag",k)},G=k=>{i("expand-change",k)},C=r.ref();return fe({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},getCheckedNodes:()=>C?.value.getCheckedNodes()}),()=>{const H={...l.attrs,ref:C,class:O.value,props:V.value,clearable:n.clearable,placeholder:c.placeholder.value,disabled:o.value||s.value,options:b.value,modelValue:f.value,onClear:y,onChange:R,onFocus:z,onBlur:v,onVisibleChange:L,onRemoveTag:j,expandChange:G};typeof I=="function"&&(H["remote-method"]=I,H.loading=F.value);const D={};l.slots.option&&(D.default=l.slots.option),l.slots.empty&&(D.empty=l.slots.empty);const K=[],X=r.h(g.ElCascader,H,D);K.push(X);const M={default:()=>K};l.slots.default&&(M.label=l.slots.default),l.slots.fixedTip&&(M.fixedTip=l.slots.fixedTip);const A={...me(n,Mr),hintText:B.value,hintVisible:W.value,prop:`${n.prop??l.attrs.name}_item`};return $.value&&!n.lazy&&(A["appear-listen"]=!0,A.onAppear=x),r.h(a,A,M)}}}}const{componentName:$i,create:vi,scope:Ti}=Q("cascader-item"),_r=vi(wi($i,Ti,de)),Pr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function xi(e,t,a){return{props:{...ie,...pe,...Pr},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[S]:!0})),$=E=>{d.value=E,i("update:modelValue",E),i("input",E)},p=E=>{i("change",E)};let w=ne(n,"hintText"),m=r.ref(!1);const x=E=>{let V=E.target.value;f.value=!0,le(w.value)||(m.value=!0),i("focus",V,E)},I=E=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let V=E.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,E)},F=()=>{i("clear","")},N=r.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()}}),()=>{const O={...l.attrs,ref:N,class:b.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,onClear:F,onChange:p,onInput:$,onFocus:x,onBlur:I},V={};l.slots.prepend&&(V.prepend=l.slots.prepend),l.slots.append&&(V.append=l.slots.append),l.slots.prefix&&(V.prefix=l.slots.prefix),l.slots.suffix&&(V.suffix=l.slots.suffix),l.slots.option&&(V.default=l.slots.option);const R=[],B=r.h(g.ElAutocomplete,O,V);R.push(B);const W={default:()=>R};l.slots.default&&(W.label=l.slots.default),l.slots.fixedTip&&(W.fixedTip=l.slots.fixedTip);const v={...me(n,Pr),hintText:w.value,hintVisible:m.value,prop:`${n.prop}_item`};return r.h(a,v,W)}}}}const{componentName:Ci,create:Ei,scope:Ni}=Q("autocomplete-item"),Hr=Ei(xi(Ci,Ni,de));function ki(e,t,a,n,l){let o=[];Array.isArray(e)?o=e:o=[e];const s=[],i=t[0];if(Array.isArray(i))for(let u=0;u<t.length&&u<o.length;u++){let c=t[u],f=o[u];const d=c.find(S=>S[n]===f);if(!d)break;s.push(d[a])}else{let u=t;for(let c=0;u&&c<o.length;c++){let f=o[c],d=u.find(S=>S[n]===f);if(!d)break;s.push(d[a]),u=d[l]}}return s}let Vi=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Re(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function Oi(){const e=r.getCurrentInstance();return new Vi(e.proxy)}const zr={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:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Ii(e,t){return{props:{...zr},setup(a,{attrs:n,slots:l}){const o=Oi(),s=r.ref([]);r.watch([()=>a.source,()=>a.params],async([c,f])=>{s.value=await o.load(a.sourceType,c,f)},{immediate:!0});const i=r.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let c=ki(a.modelValue,s.value,a.textKey,a.valueKey,a.childrenKey);return c.length==0?a.emptyText??"":c.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${c[0]}`:c[0]:c.join(a.separator)}),u=a.resolveTag?r.resolveComponent(a.tag):a.tag;return()=>{const c={...n};return l.default?l.default({text:i.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===i.value?r.h(a.emptyTag??"span",{...n,class:a.emptyClass},i.value):r.h(u,c,{default:()=>i.value}):r.h(u,c,i.value)}}}}const{componentName:Pu,create:Ri,scope:Hu}=Q("mapping"),Rt=Ri(Ii());function Ai(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let c=o.substring(i+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(s==0){let d=o.substring(0,i);n=n[d][f]}else n=n[f];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function Di(e,t){return{props:{...zr},setup(a,{attrs:n,slots:l}){return()=>{const o={default:s=>{const i=Ai(s.row,s.column.property);return l.default?r.h(Rt,{...a,modelValue:i},{default:l.default}):r.h(Rt,{...a,modelValue:i})}};return r.h(g.ElTableColumn,{...n},o)}}}}const{componentName:zu,create:Bi,scope:Ku}=Q("table-mapping-column"),Kr=Bi(Di()),Fi=Symbol.for("TableStateKey");function Wr(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let c=o.substring(i+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(s==0){let d=o.substring(0,i);n=n[d][f]}else n=n[f];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function qi(e,t){return{props:{},setup(a,{attrs:n}){const l=r.inject(Fi,{});return()=>{const o=l.currentRow?l.currentRow.value:null,s={default:i=>{const u=Wr(i.row,i.column.property),c=o?Wr(o,i.column.property):null,f=u===c,d={class:{"el-radio__input":!0,"is-checked":f}},S=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),b={class:{"el-radio":!0,"is-checked":f}};return r.h("label",b,[S])}};return r.h(g.ElTableColumn,{...n},s)}}}}const{componentName:Wu,create:Li,scope:Gu}=Q("table-radio-column"),Gr=Li(qi()),ji={},Mi={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},_i=[r.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function Pi(e,t){return r.openBlock(),r.createElementBlock("svg",Mi,_i)}const Hi=Ee(ji,[["render",Pi]]),{componentName:Uu,create:zi,scope:Xu}=Q("table-setting"),Ki={tableRef:{type:Object,required:!0},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},Wi=zi({components:{FoxPopover:g.ElPopover,FoxCheckbox:g.ElCheckbox,FoxCheckboxGroup:g.ElCheckboxGroup,FoxButton:g.ElButton,FoxIcon:g.ElIcon,DragIcon:Hi,Download:Fe.Download,RefreshLeft:Fe.RefreshLeft},props:{...Ki},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:a}){let n=[];const l=r.ref([]),o=r.computed(()=>l.value.filter(C=>C.label===""||C.type?!1:C.fixed===""||C.fixed===!0||C.fixed==="left")),s=r.computed(()=>l.value.filter(C=>C.label===""||C.type?!1:C.fixed==="right")),i=r.computed(()=>l.value.filter(C=>!(C.label===""||C.type||C.fixed!==void 0))),u=r.computed(()=>(o.value.length>0||s.value.length>0)&&i.value.length>0),c=r.computed(()=>o.value.length>0),f=r.computed(()=>s.value.length>0),d=C=>C.length>1,S=C=>{const k=[];l.value=C.map((D,K)=>(!(D.label===""||D.type)&&D.visible!==!1&&k.push(D.prop),{...D,sortIndex:K})),i.value.length+o.value.length+s.value.length===k.length?x.value=!0:k.length>0&&(I.value=!0),E.value=k},b=C=>C?C.type?C.type:C.label?C.prop:"":"",$=(C,k)=>{if(C.length!==k.length)return!1;const H=C.map(D=>b(D));for(let D of k){const K=b(D);if(H.indexOf(K)===-1)return!1}return!0},p=C=>{if(!C){const k=e.tableRef.getColumnSetting(),H=k.srcColumnPropertyList;n=H.map((D,K)=>({...D,sortIndex:K})),C=k.columnPropertyList,C&&C.length>0&&$(H,C)||(C=H)}S(C)},w=()=>{e.tableRef.setColumnSetting(l.value)},m=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),x=r.ref(!1),I=r.ref(!1),F=C=>{const k=[];l.value.forEach(D=>{C&&!(D.label===""||D.type)&&k.push(D.prop),D.visible=C}),x.value=!1,I.value=!1,i.value.length+o.value.length+s.value.length===k.length?x.value=!0:k.length>0&&(I.value=!0),E.value=k,w()},N=()=>{p(n),w()},E=r.ref([]),O=C=>{l.value.forEach(H=>{if(H.label===""||H.type)return;const D=C.indexOf(H.prop)!==-1;H.visible=D}),x.value=!1,I.value=!1;const k=i.value.length+o.value.length+s.value.length;C.length===k?x.value=!0:C.length>0&&(I.value=!0),w()},V=()=>{p()};r.onMounted(()=>{setTimeout(()=>{p()},50)});const R={currentRow:null,index:null,roleType:null},B=C=>C?C.dataset&&C.dataset.role==="row"?C:C.tagName.toLowerCase()!=="body"?(C=C.parentElement,B(C)):null:null;return{attrs:a,leftFixedColumns:o,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:c,isShowRightFixedTitle:f,isDraggble:d,isCheckAll:x,isIndeterminate:I,handleCheckAllChange:F,handleReset:N,checkedValue:E,handleCheckChange:O,onShow:V,onDragStart:C=>{const k=C.currentTarget;k&&k.dataset&&(R.roleType=k.dataset.roleType,R.index=k.dataset.index)},onDragEnd:C=>{R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null),R.index=null,R.roleType=null},onDragOver:C=>{const k=C.currentTarget;C.relatedTarget;const H=B(k);if(!H)return;const D=H.dataset&&H.dataset.roleType;R.roleType===D&&(C.preventDefault(),R.currentRow&&R.currentRow!==H&&R.currentRow.classList.remove("is-dragover"),H.classList.add("is-dragover"),R.currentRow=H)},onDragLeave:C=>{C.preventDefault(),R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null)},onDrop:C=>{debugger;const k=C.currentTarget,H=B(k);if(!H)return;const D=H.dataset&&H.dataset.roleType;if(R.roleType!==D)return;C.preventDefault();const K=Number(R.index),X=Number(H.dataset.index);if(K!==X){if(K<X){const M=l.value[K];l.value.splice(K,1),l.value.splice(X,0,M)}else{const M=l.value[K];l.value.splice(K,1),l.value.splice(X+1,0,M)}S(l.value),w()}},toLeftFixed:C=>{const k=l.value[C];k.fixed="left",w()},toRightFixed:C=>{const k=l.value[C];k.fixed="right",w()},toUnFixed:C=>{const k=l.value[C];k.fixed=void 0,w()},checkboxLabelStyle:m}}}),Gi={class:"fox-table-setting"},Yi={class:"fox-table-setting__header"},Ui={class:"fox-table-setting__body"},Xi={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Zi={key:0,class:"fox-table-setting__body-title"},Ji=["data-index","draggable"],Qi={class:"tools-item"},es={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},ts={key:0,class:"fox-table-setting__body-title"},ns=["data-index","draggable"],rs={class:"tools-item"},as={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},ls={key:0,class:"fox-table-setting__body-title"},os=["data-index","draggable"],is={class:"tools-item"};function ss(e,t,a,n,l,o){const s=r.resolveComponent("FoxCheckbox"),i=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),c=r.resolveComponent("RefreshLeft"),f=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),S=r.resolveComponent("Download"),b=r.resolveComponent("fox-checkbox"),$=r.resolveComponent("FoxCheckboxGroup"),p=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(p,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",Gi,[r.createElementVNode("div",Yi,[r.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=w=>e.isCheckAll=w),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Ui,[r.createVNode($,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=w=>e.checkedValue=w),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Xi,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",Zi,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[2]||(t[2]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[3]||(t[3]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[4]||(t[4]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[5]||(t[5]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Qi,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(f,{onClick:m=>e.toUnFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(c)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(f,{onClick:m=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ji))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",es,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",ts,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[7]||(t[7]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[8]||(t[8]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[9]||(t[9]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[10]||(t[10]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",rs,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(f,{onClick:m=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(f,{onClick:m=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,ns))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",as,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",ls,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[12]||(t[12]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[13]||(t[13]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[14]||(t[14]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[15]||(t[15]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(b,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",is,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(f,{onClick:m=>e.toUnFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(c)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(f,{onClick:m=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,os))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const sn=Ee(Wi,[["render",ss]]);let us=class{proxy;constructor(t){this.proxy=t}async load(t,a,n,l,o,s,i){if(Array.isArray(a)){let c=(n-1)*l,f=c+l;f>a.length&&(f=a.length);const d=a.slice(c,f);return{totalSize:a.length,page:d}}if(typeof a=="function")return await Reflect.apply(a,null,[n,l,o,s,i]);const u=Ce(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Re(o)&&r.isReactive(o)&&(o=r.toRaw(o)),await Reflect.apply(u,null,[a,n,l,o,s,i]))}};function cs(){const e=r.getCurrentInstance();return new us(e.proxy)}class fs{proxy;constructor(t){this.proxy=t}async load(t){let a=null;const n=Ce(this.proxy,"tableSetting");return typeof n=="function"&&(a=await Reflect.apply(n,null,["load",t])),a}save(t,a){const n=Ce(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,a])}remove(t){const a=Ce(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",t])}}function ds(){const e=r.getCurrentInstance();return new fs(e.proxy)}const hs=Symbol.for("TableStateKey");function gs(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let c=o.substring(i+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(s==0){let d=o.substring(0,i);n=n[d][f]}else n=n[f];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function un(e,t){return e.filter(n=>{for(let l in t){const o=t[l],s=gs(n,l);if(o!==s)return!1}return!0})}const Yr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazy:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},Ur={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"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},cn={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}};function ms(e,t,a){return{inheritAttrs:!1,props:{...ie,...pe,...Yr,...Ur,...cn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,l){const{locale:o}=Te.useFoxI18n(t),{emitEvent:s}=ue({componentName:e,validateHandler:{getValue(...q){return I.value}}},n.prop??l.attrs.name),i=e,u=r.computed(()=>({[i]:!0})),c=r.computed(()=>({[`${i}__setting`]:!0})),f=r.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),S=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,q=>{S.value=q});const b=q=>{S.value=q,s("page-index-change",q)},$=r.ref(n.pageSize);r.watch(()=>n.pageSize,q=>{$.value=q});const p=q=>{$.value=q,s("page-size-change",q)},w=r.shallowRef({}),m=r.computed(()=>({...w.value,...n.params??{},...n.baseParams??{}})),x=r.ref(0),I=r.ref(),F=cs();let N=!0;const E=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:te(n.autoLoad),O=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,q=>te(q)),V=async(q,U,Z,ee)=>{try{const ye=await F.load("table",q,U,Z,ee,N,o.value);x.value=ye.totalSize,I.value=ye.page}catch(ye){console.error("[FoxUI] Load Table Data Fail",ye),x.value=0,I.value=[]}N=!1,setTimeout(()=>{s("loaded-data")},250)};r.watch([S,$],([q,U],[Z,ee])=>{U!==ee&&(S.value=1,q=1),V(n.data,q,U,m.value)}),r.watch([()=>n.data,m],([q,U],[Z,ee])=>{E()&&(q!==Z&&(N=!0),!(!Array.isArray(q)&&Ae(q,Z)&&Ae(U,ee))&&V(q,S.value,$.value,U))},{deep:!0});const R=(q={},U=!1)=>new Promise(Z=>{w.value=r.toRaw(q??{}),r.triggerRef(w),U||(S.value=n.pageIndex??1),r.nextTick(async()=>{await V(n.data,S.value,$.value,m.value),Z()})}),B=()=>{x.value=0,I.value=[]};let W=!1;const z=()=>{W||(W=!0,R())};E()&&!O.value&&R();const v=r.ref(null);r.provide(hs,{currentRow:v});const y=(q,U)=>{v.value=q,s("current-change",q,U)},T=(q,U,Z)=>{s("row-click",q,U,Z),te(n.rowClickSelectable)===!0&&_?.value.toggleRowSelection(q)},L=[],j=(q,U)=>{if(s("expand-change",q,U),te(n.uniqueExpansion))if(Array.isArray(U)&&U.length==0){const Z=L.length;L.splice(0,Z)}else{L.forEach(ee=>{ee!==q&&_?.value.toggleRowExpansion(ee,!1)});const Z=L.length;L.splice(0,Z,q)}},G=l.attrs.id??n.prop??l.attrs.name,C=ds(),k=r.ref([]);let H=[];const D=()=>({srcColumnPropertyList:H.map(U=>({...U})),columnPropertyList:k.value}),K=q=>{k.value=[...q],M()},X=async()=>{const q=await C.load(G);q&&(k.value=q)},M=()=>{C.save(G,k.value)},Y=()=>{C.remove(G)};X();const A=q=>q?q.type?q.type:q.label?q.prop:"":"",P=r.computed(()=>{if(typeof l.slots.default=="function"){const q=l.slots.default(),U=new Map;if(H=[],q.forEach(Z=>{const ee=Z;if(!ee.props)return;const ye=A(ee.props);U.set(ye,Z);const se={label:"",prop:""};Object.assign(se,ee.props),H.push(se)}),k.value.length===H.length){const Z=[];for(let ee of k.value){const ye=A(ee),se=U.get(ye);if(!se)return q;if(ee.visible===!1)continue;const _e=r.cloneVNode(se);_e.props.fixed=ee.fixed,Z.push(_e)}return Z}return q}return[]}),_=r.ref();return fe({clearSelection:()=>_?.value.clearSelection(),getSelectionRows:()=>_?.value.getSelectionRows(),toggleRowSelection:(q,U)=>{_?.value.toggleRowSelection(q,U)},toggleRowSelectionByProp:(q,U)=>{if(!I.value)return;const Z=un(I.value,q);Z.length!==0&&Z.forEach(ee=>{_?.value.toggleRowSelection(ee,U)})},toggleAllSelection:()=>{_?.value.toggleAllSelection()},toggleRowExpansion:(q,U)=>{_?.value.toggleRowExpansion(q,U)},toggleRowExpansionByProp:(q,U)=>{if(!I.value)return;const Z=un(I.value,q);Z.length!==0&&Z.forEach(ee=>{_?.value.toggleRowExpansion(ee,U)})},setCurrentRow:q=>{_?.value.setCurrentRow(q)},setCurrentRowByProp:q=>{if(!I.value)return;const U=un(I.value,q);U.length!==0&&_?.value.setCurrentRow(U[0])},getCurrentRow:()=>v.value,clearSort:()=>{_?.value.clearSort()},clearFilter:q=>{_?.value.clearFilter(q)},doLayout:()=>{_?.value.doLayout()},sort:(q,U)=>{_?.value.sort(q,U)},scrollTo:(q,U)=>{_?.value.scrollTo(q,U)},setScrollTop:q=>{_?.value.setScrollTop(q)},setScrollLeft:q=>{_?.value.setScrollLeft(q)},loadData:R,clearData:B,getData(){return I.value},getTotalSize(){return x.value},getPageIndex(){return S.value},getPageSize(){return $.value},getColumnSetting:D,setColumnSetting:K,removeColumnSetting:Y}),()=>{const U={...l.attrs,onCurrentChange:y,onRowClick:T,onExpandChange:j,data:I.value,ref:_,class:u.value},Z={};l.slots.default&&(Z.default=()=>P.value),l.slots.append&&(Z.append=l.slots.append),l.slots.empty&&(Z.empty=l.slots.empty);const ee=[],ye=r.h(g.ElTable,U,Z);ee.push(ye);let se=null;if(typeof l.slots.pagination=="function")se=l.slots.pagination();else if(n.showPagination){const ut={class:d.value,total:x.value,pageSize:$.value,"onUpdate:pageSize":p,pageSizes:n.pageSizes,currentPage:S.value,"onUpdate:currentPage":b,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};se=r.h(g.ElPagination,ut)}if(n.showSetting){const ut=[];se&&ut.push(se);const Ru=r.h(g.ElIcon,{class:c.value},{default:()=>r.h(Fe.Setting)}),Au=On(n,cn),Du=r.h(sn,{...Au,tableRef:{getColumnSetting:D,setColumnSetting:K,removeColumnSetting:Y}},{default:()=>Ru});ut.push(Du);const Bu=r.h("div",{class:f.value},ut);ee.push(Bu)}else se&&ee.push(se);const _e={default:()=>ee},st={...me(n,Yr,Ur,cn),prop:`${n.prop}_item`};return st.contentClass=`${i}__wrap`,st.errorMarkClass="is-table-error",O.value&&E()&&(st["appear-listen"]=!0,st.onAppear=z),r.h(a,st,_e)}}}}const{componentName:ps,create:ys,scope:bs}=Q("table-item"),Xr=ys(ms(ps,bs,de));function Ye(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function it(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ss(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ws=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Re(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function $s(){const e=r.getCurrentInstance();return new ws(e.proxy)}function Zr(e,t,a){if(t===a)return!0;if(t===null||a===null)return!1;const n=Ye(e,t),l=Ye(e,a);if(n!==l)return!1;const o=it(e,t),s=it(e,a);return o===s}function vs(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let o of n){let s=!1;if(a==="text")s=Ye(e,o)===t;else if(a==="item")s=Zr(e,o,t);else{let i=it(e,o);i==null&&(i=Ye(e,o)),s=i===t}if(s){l=o;break}}return l}function Ts(e){return{text:e,value:e}}function xs(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}const Jr={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"},disabledKey:{type:[String],required:!1,default:"disabled"},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"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Cs(e,t,a){return{inheritAttrs:!0,props:{...ie,...pe,...Jr},emits:["change","update:modelValue"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=r.ref(null),c=r.ref(null),f=(O,V,R,B=!0)=>{const W=vs(n,O,V,R);if(W===null){if(c.value===null)return;c.value=null,u.value=null,B&&(i("update:modelValue",null),i("change",null));return}if(!Zr(n,W,c.value)){u.value=O;const v=r.toRaw(W);c.value=v;let y=null;n.valueType==="text"?y=Ye(n,v):n.valueType==="item"?y=v:y=it(n,v),B&&(i("update:modelValue",y),i("change",y))}},d=r.ref([]),S=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,O=>te(O)),b=$s(),$=async(O,V)=>{if(O){const R=await b.load("radio",O,V);if(R.length>0)if(typeof R[0]=="string"){let z=R.map(v=>Ts(v));d.value=z}else d.value=R}};r.watch([()=>n.source,()=>n.params],async([O,V])=>{$(O,V)},{immediate:!S.value});let p=!1;const w=()=>{p||(p=!0,$(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([O,V])=>{f(V,n.valueType,O,!1)});const m=e,x=r.computed(()=>({[m]:!0,[`is-${n.direction}`]:!0})),I=O=>{f(O,"value",d.value,!0)};let F=ne(n,"hintText"),N=ne(n,"hintVisible");const E=(O,V)=>{const R=[];return O.forEach((B,W)=>{const z=it(n,B),v=Ye(n,B);let y=Ss(n,B);o.value===!0&&(y=o.value),s.value===!0&&(y=s.value);const T=xs(n,B,W)??{},L=`${z}_${W}`,j={...T,key:L,label:z,disabled:y,size:n.size,border:te(n.border)};n.itemType==="button"?R.push(r.h(g.ElRadioButton,j,{default:()=>[v]})):typeof V=="function"?R.push(r.h(g.ElRadio,j,{default:()=>V(B)})):R.push(r.h(g.ElRadio,j,{default:()=>[v]}))}),R};return()=>{const V={...l.attrs,class:x.value,disabled:o.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:I},R=[],B={};l.slots.options?B.default=l.slots.options:B.default=()=>E(d.value,l.slots.text);const W=r.h(g.ElRadioGroup,V,B);R.push(W);const z={default:()=>R};l.slots.default&&(z.label=l.slots.default),l.slots.fixedTip&&(z.fixedTip=l.slots.fixedTip);const y={...me(n,Jr),hintText:F.value,hintVisible:N.value,prop:`${n.prop??l.attrs.name}_item`};return S.value&&(y["appear-listen"]=!0,y.onAppear=w),r.h(a,y,z)}}}}const{componentName:Es,create:Ns,scope:ks}=Q("radio-item"),Qr=Ns(Cs(Es,ks,de));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Xe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Vs(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class Os{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Re(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}}function Is(){const e=r.getCurrentInstance();return new Os(e.proxy)}function ea(e,t,a){if(t===a)return!0;if(t===null||a===null)return!1;const n=Ue(e,t),l=Ue(e,a);if(n!==l)return!1;const o=Xe(e,t),s=Xe(e,a);return o===s}function Rs(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){let i=!1;if(a==="text")i=Ue(e,s)===o;else if(a==="item")i=ea(e,s,o);else{let u=Xe(e,s);u==null&&(u=Ue(e,s)),i=u===o}if(i){l.push(s);break}}}),l}function As(e){return{text:e,value:e}}function Ds(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}const ta={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"},disabledKey:{type:[String],required:!1,default:"disabled"},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"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Bs(e,t,a){return{inheritAttrs:!1,props:{...ie,...pe,...ta},emits:["change","update:modelValue"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=r.ref([]),c=r.ref([]),f=(O,V,R,B=!0)=>{const W=Rs(n,O,V,R);if(W===null){if(c.value===null||c.value.length===0)return;u.value=[],c.value=[],B&&(i("update:modelValue",[]),i("change",[]));return}let z=!0;if(W.length!==c.value.length)z=!1;else for(let v=0;v<W.length;v++){const y=W[v],T=c.value[v];if(!ea(n,y,T)){z=!1;break}}if(!z){c.value=W;let v=[],y=[];W.forEach(L=>{v.push(Xe(n,L)),n.valueType==="text"?y.push(Ue(n,L)):n.valueType==="item"?y.push(L):y.push(Xe(n,L))}),u.value=v;const T=r.toRaw(y);B&&(i("update:modelValue",T),i("change",T))}},d=r.ref([]),S=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,O=>te(O)),b=Is(),$=async(O,V)=>{if(O){const R=await b.load("checkbox",O,V);if(R.length>0)if(typeof R[0]=="string"){let z=R.map(v=>As(v));d.value=z}else d.value=R}};r.watch([()=>n.source,()=>n.params],async([O,V])=>{$(O,V)},{immediate:!S.value});let p=!1;const w=()=>{p||(p=!0,$(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([O,V])=>{f(V,n.valueType,O,!1)});const m=e,x=r.computed(()=>({[m]:!0,[`is-${n.direction}`]:!0})),I=O=>{f(O,"value",d.value,!0)};let F=ne(n,"hintText"),N=ne(n,"hintVisible");const E=(O,V)=>{const R=[];return O.forEach((B,W)=>{const z=Xe(n,B),v=Ue(n,B);let y=Vs(n,B);o.value===!0&&(y=o.value),s.value===!0&&(y=s.value);const T=Ds(n,B,W)??{},L=`${z}_${W}`,j={...T,key:L,class:n.itemClass,label:z,disabled:y,size:n.size,border:te(n.border)};n.itemType==="button"?R.push(r.h(g.ElCheckboxButton,j,{default:()=>[v]})):typeof V=="function"?R.push(r.h(g.ElCheckbox,j,{default:()=>V(B)})):R.push(r.h(g.ElCheckbox,j,{default:()=>[v]}))}),R};return()=>{const V={...l.attrs,class:x.value,disabled:o.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ge(n.max),min:ge(n.min),onChange:I},R=[],B={};l.slots.options?B.default=l.slots.options:B.default=()=>E(d.value,l.slots.text);const W=r.h(g.ElCheckboxGroup,V,B);R.push(W);const z={default:()=>R};l.slots.default&&(z.label=l.slots.default),l.slots.fixedTip&&(z.fixedTip=l.slots.fixedTip);const y={...me(n,ta),hintText:F.value,hintVisible:N.value,prop:`${n.prop??l.attrs.name}_item`};return S.value&&(y["appear-listen"]=!0,y.onAppear=w),r.h(a,y,z)}}}}const{componentName:Fs,create:qs,scope:Ls}=Q("checkbox-item"),na=qs(Bs(Fs,Ls,de)),ra={modelValue:{type:[Number,String],required:!1}};function js(e,t,a){return{props:{...ie,...pe,...ra},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=ne(n,"modelValue",p=>ge(p)),c=e,f=r.computed(()=>({[c]:!0})),d=p=>{i("update:modelValue",p),i("change",p)};let S=ne(n,"hintText"),b=r.ref(!1);const $=r.ref();return fe({}),()=>{const w={...l.attrs,ref:$,class:f.value,readonly:s.value||o.value,modelValue:u.value,onChange:d},m={},x=[],I=r.h(g.ElRate,w,m);x.push(I);const F={default:()=>x};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);const E={...me(n,ra),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(a,E,F)}}}}const{componentName:Ms,create:_s,scope:Ps}=Q("rate-item"),aa=_s(js(Ms,Ps,de)),la={modelValue:{type:[Boolean,String,Number],required:!1}};function Hs(e,t,a){return{props:{...ie,...pe,...la},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=ne(n,"modelValue"),c=e,f=r.computed(()=>({[c]:!0})),d=p=>{i("update:modelValue",p),i("change",p)};let S=ne(n,"hintText"),b=ne(n,"hintVisible");const $=r.ref();return fe({}),()=>{const w={...l.attrs,ref:$,class:f.value,readonly:s.value,disabled:o.value,modelValue:u.value,onChange:d},m={},x=[],I=r.h(g.ElSwitch,w,m);x.push(I);const F={default:()=>x};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);const E={...me(n,la),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(a,E,F)}}}}const{componentName:zs,create:Ks,scope:Ws}=Q("switch-item"),oa=Ks(Hs(zs,Ws,de)),ia={modelValue:{type:[String,Number,Boolean],required:!1}};function Gs(e,t,a){return{props:{...ie,...pe,...ia},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),i=r.ref(!1),{emitEvent:u}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),c=ne(n,"modelValue"),f=e,d=r.computed(()=>({[f]:!0})),S=N=>{u("update:modelValue",N),u("change",N)};let b=ne(n,"hintText"),$=r.ref(!1);const p=N=>{let O=N.target.value;i.value=!0,le(b.value)||($.value=!0),u("focus",O,N)},w=N=>{setTimeout(()=>{$.value&&($.value=!1),i.value=!1},0);let O=N.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),x.value||u("blur",O,N)},m=()=>{u("clear","")},x=r.ref(!1),I=N=>{x.value=N,u("visible-change",N),N||u("selected")},F=r.ref();return fe({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()}}),()=>{const E={...l.attrs,ref:F,class:d.value,disabled:o.value||s.value,modelValue:c.value,"onUpdate:modelValue":S,onClear:m,onFocus:p,onBlur:w,onVisibleChange:I},O={};l.slots.option&&(O.default=l.slots.option);const V=[],R=r.h(g.ElTreeSelect,E,O);V.push(R);const B={default:()=>V};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const z={...me(n,ia),hintText:b.value,hintVisible:$.value,prop:`${n.prop}_item`};return r.h(a,z,B)}}}}const{componentName:Ys,create:Us,scope:Xs}=Q("tree-select-item"),sa=Us(Gs(Ys,Xs,de)),Zs=Symbol.for("InnerPageScopeKey"),Js=Symbol.for("PageWrapperKey");function Qs(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(a,n){r.provide(Zs,!0);const l={};r.provide(Js,l);const o=u=>{typeof l.beforeClose=="function"&&l.beforeClose()},s=r.ref(!0),i=u=>{s.value=u};return()=>{const c={...n.attrs,title:a.title,draggable:a.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":o},f={};if(typeof n.slots.default=="function"){const d=n.slots.default();f.default=()=>d}return r.h(g.ElDialog,c,f)}}}}const{componentName:Zu,create:eu,scope:Ju}=Q("dialog-item"),ua=eu(Qs());function tu(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(a,{slots:n}){const l=e,o=r.computed(()=>({[l]:!0})),s=r.computed(()=>a.icon?{[`${l}__icon`]:!0,[`${l}__icon-${a.type}`]:!0}:{[`${l}__mark`]:!0,[`${l}__mark-${a.type}`]:!0}),i=r.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),u=r.computed(()=>{const f={[`${l}__text`]:!0,[`${l}__text-${a.type}`]:!0};return a.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),c=r.computed(()=>a.color?{color:a.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const p={class:s.value,style:i.value};f=r.h(a.icon??"div",p)}const d={class:u.value,style:c.value},S=n.default?n.default():[],b=r.h("div",d,S),$={class:o.value};return a.textPosition==="right"?r.h("div",$,[f,b]):r.h("div",$,[b,f])}}}}const{componentName:nu,create:ru,scope:Qu}=Q("indicator"),ca=ru(tu(nu));function au(e){const t=document.createRange();return t.setStart(e,0),t.setEnd(e,e.childNodes.length),t.getBoundingClientRect().width}const lu={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1}};function ou(e,t){return{props:{...lu},setup(a,n){const l=r.ref(!0),o=r.ref(null),s=r.computed(()=>{const f={[`${e}`]:!0,"is-truncated":a.truncated};return typeof a.class=="string"&&a.class.length>0&&a.class.split(/\s+/).forEach(S=>{f[S]=!0}),a.type&&(f[`${e}__${a.type}`]=!0),a.size&&(f[`${e}__${a.size}`]=!0),f}),i=f=>{if(f&&te(a.showOverflowTooltip)){const d=f.clientWidth,S=au(f);l.value=S<=d}};let u=null;r.onMounted(()=>{if(!te(a.showOverflowTooltip))return;const f=o.value;i(f),f&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{i(f)}),u.observe(f))}),r.onUnmounted(()=>{u?.disconnect()});const c=(f,d)=>{let S=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const b=a.highlightFilter;if(f.indexOf(b)!==-1){const p=f.replace(new RegExp(b,"g"),`<span>${b}</span>`);d.innerHTML=p,d.class["is-highlight"]=!0,S=r.h(a.tag,d)}}else if(typeof a.highlightFilter=="function"){const b=a.highlightFilter(f);b&&(d.innerHTML=b,d.class["is-highlight"]=!0,S=r.h(a.tag,d))}return S};return()=>{const f={},d={...n.attrs,class:{...s.value},ref:o};if(te(a.numberFormat)&&typeof n.slots.default=="function"){const p=n.slots.default();if(Array.isArray(p)&&p.length===1){const w=p[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const m=ge(a.digits),x=ge(a.decimalLength),I=te(a.autoPadding);let F=`${p[0].children}`,N=F.split("").reverse().join("");N=dt(N,x,I,m,a.separator),F=N.split("").reverse().join("");let E=null;a.highlightFilter!==void 0&&(E=c(F,d)),E||(d.innerHTML=F,E=r.h(a.tag,d)),f.default=()=>E}}}else{let p=null;if(a.highlightFilter!==void 0&&typeof n.slots.default=="function"){const w=n.slots.default();if(Array.isArray(w)&&w.length===1){const m=w[0].type.toString();if(m==="Symbol(Text)"||m==="Symbol(v-txt)"){const x=`${w[0].children}`;p=c(x,d),p||(d.innerHTML=x,p=r.h(a.tag,d))}}}p||(p=r.h(a.tag,d,{default:n.slots.default})),f.default=()=>p}const b={disabled:l.value};return f.content=n.slots.default,r.h(g.ElTooltip,b,f)}}}}const{componentName:iu,create:su,scope:ec}=Q("text"),fa=su(ou(iu)),uu={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Fe.ArrowUp}};function cu(e,t,a){return{props:{...uu},emits:["click","update:modelValue"],setup(n,{emit:l}){const o=r.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),s=ne(n,"modelValue"),i=r.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),c=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),f=()=>{l("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const p={class:u.value},w=r.h("span",p,[i.value]);d.push(w)}const S={class:c.value},b=a(n.icon,S);return b&&d.push(b),r.h("div",{class:o.value,onClick:f},d)}}}}const{componentName:fu,create:du,scope:hu}=Q("more-button"),da=du(cu(fu,hu,(e,t)=>(e=e??Fe.ArrowUp,r.h(g.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:gu,create:mu,scope:nc}=Q("tour"),pu=mu({components:{Close:Fe.Close,ElPopover:g.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const a=gu,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=r.ref({}),o=r.computed(()=>`${a}`),s=r.computed(()=>{const{offset:$,maskWidth:p,maskHeight:w}=e,{width:m,height:x,left:I,top:F}=l.value,N=e.steps[n.active].offset??$,E=[I+m/2,F+x/2],O=Number(p||m),V=Number(w||x);return{width:`${O+ +N.left+N.right}px`,height:`${V+N.top+N.bottom}px`,top:`${E[1]-V/2-+N.top}px`,left:`${E[0]-O/2-+N.left}px`}}),i=$=>{$=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,r.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=$=>$.popoverWidth??e.width,c=$=>$.location??e.location,f=()=>{const $=document.querySelector(`${e.steps[n.active].target}`),p=nn($);l.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},S=()=>{e.closeOnClickOverlay&&d()},b=($,p=0)=>{$&&f(),e.steps,n.active=p,n.showTour=$,n.showPopup=$};return r.onMounted(()=>{b(e.modelValue,e.current)}),r.watch(()=>e.modelValue,$=>{b($)}),{...r.toRefs(n),classes:o,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:c,close:d,handleClickMask:S}}}),yu={key:0,class:"fox-tour__content"},bu={key:0,class:"fox-tour__content-top"},Su={class:"fox-tour__content-inner"},wu={class:"fox-tour__content-bottom"},$u={class:"fox-tour__content-bottom-init"},vu={class:"fox-tour__content-bottom-operate"},Tu={key:1,class:"fox-tour__content fox-tour__content-tile"},xu={class:"fox-tour__content-inner"};function Cu(e,t,a,n,l,o){const s=r.resolveComponent("Close"),i=r.resolveComponent("fox-button"),u=r.resolveComponent("ElPopover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes)},[r.withDirectives(r.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(c,f)=>(r.openBlock(),r.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:r.withCtx(()=>[e.showTour?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:r.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(r.openBlock(),r.createElementBlock("div",yu,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",bu,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(s,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",Su,r.toDisplayString(c.content),1),r.createElementVNode("div",wu,[r.createElementVNode("div",$u,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",vu,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.nextStepText),1)]),_:1})):r.createCommentVNode("",!0)])])])])):r.createCommentVNode("",!0),e.type=="tile"?(r.openBlock(),r.createElementBlock("div",Tu,[r.createElementVNode("div",xu,r.toDisplayString(c.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const ha=Ee(pu,[["render",Cu]]);function Eu(e,t){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:n}){return jn(a.name,a.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:rc,create:Nu,scope:ac}=Q("domain-provider"),ga=Nu(Eu()),ma=10;function ku(e,t){return e>t&&e>ma?"horizontal":t>e&&t>ma?"vertical":""}function Vu(){const e=r.ref(0),t=r.ref(0),a=r.ref(0),n=r.ref(0),l=r.ref(0),o=r.ref(0),s=r.ref(0),i=r.ref(0),u=r.ref(0),c=r.ref(0),f=r.ref(""),d=()=>f.value==="vertical",S=()=>f.value==="horizontal",b=()=>{s.value=0,i.value=0,u.value=0,c.value=0,f.value="",a.value=0};return{move:w=>{const m=w.touches[0];s.value=m.clientX-e.value,i.value=m.clientY-t.value,l.value=m.clientX,o.value=m.clientY,u.value=Math.abs(s.value),c.value=Math.abs(i.value),n.value=Date.now()-a.value,f.value||(f.value=ku(u.value,c.value))},start:w=>{b(),e.value=w.touches[0].clientX,t.value=w.touches[0].clientY,a.value=Date.now()},reset:b,startX:e,startY:t,startTime:a,duration:n,moveX:l,moveY:o,deltaX:s,deltaY:i,offsetX:u,offsetY:c,direction:f,isVertical:d,isHorizontal:S}}const Ou=[Yn,Un,Xn,Zn,er,de,or,ir,Ot,ur,gr,Er,kr,Or,Fr,Lr,_r,Hr,Kr,Gr,sn,Xr,Qr,na,aa,oa,sa,ua,Rt,rn,ca,fa,da,ha,ga],Iu=new al(Ou,[il],"4.0.0");Object.defineProperty(h,"FoxAffix",{enumerable:!0,get:()=>g.ElAffix}),Object.defineProperty(h,"FoxAlert",{enumerable:!0,get:()=>g.ElAlert}),Object.defineProperty(h,"FoxAside",{enumerable:!0,get:()=>g.ElAside}),Object.defineProperty(h,"FoxAutoResizer",{enumerable:!0,get:()=>g.ElAutoResizer}),Object.defineProperty(h,"FoxAutocomplete",{enumerable:!0,get:()=>g.ElAutocomplete}),Object.defineProperty(h,"FoxAvatar",{enumerable:!0,get:()=>g.ElAvatar}),Object.defineProperty(h,"FoxBacktop",{enumerable:!0,get:()=>g.ElBacktop}),Object.defineProperty(h,"FoxBadge",{enumerable:!0,get:()=>g.ElBadge}),Object.defineProperty(h,"FoxBreadcrumb",{enumerable:!0,get:()=>g.ElBreadcrumb}),Object.defineProperty(h,"FoxBreadcrumbItem",{enumerable:!0,get:()=>g.ElBreadcrumbItem}),Object.defineProperty(h,"FoxButton",{enumerable:!0,get:()=>g.ElButton}),Object.defineProperty(h,"FoxButtonGroup",{enumerable:!0,get:()=>g.ElButtonGroup}),Object.defineProperty(h,"FoxCalendar",{enumerable:!0,get:()=>g.ElCalendar}),Object.defineProperty(h,"FoxCard",{enumerable:!0,get:()=>g.ElCard}),Object.defineProperty(h,"FoxCarousel",{enumerable:!0,get:()=>g.ElCarousel}),Object.defineProperty(h,"FoxCarouselItem",{enumerable:!0,get:()=>g.ElCarouselItem}),Object.defineProperty(h,"FoxCascader",{enumerable:!0,get:()=>g.ElCascader}),Object.defineProperty(h,"FoxCascaderPanel",{enumerable:!0,get:()=>g.ElCascaderPanel}),Object.defineProperty(h,"FoxCheckTag",{enumerable:!0,get:()=>g.ElCheckTag}),Object.defineProperty(h,"FoxCheckbox",{enumerable:!0,get:()=>g.ElCheckbox}),Object.defineProperty(h,"FoxCheckboxButton",{enumerable:!0,get:()=>g.ElCheckboxButton}),Object.defineProperty(h,"FoxCheckboxGroup",{enumerable:!0,get:()=>g.ElCheckboxGroup}),Object.defineProperty(h,"FoxCol",{enumerable:!0,get:()=>g.ElCol}),Object.defineProperty(h,"FoxCollapse",{enumerable:!0,get:()=>g.ElCollapse}),Object.defineProperty(h,"FoxCollapseItem",{enumerable:!0,get:()=>g.ElCollapseItem}),Object.defineProperty(h,"FoxCollapseTransition",{enumerable:!0,get:()=>g.ElCollapseTransition}),Object.defineProperty(h,"FoxColorPicker",{enumerable:!0,get:()=>g.ElColorPicker}),Object.defineProperty(h,"FoxConfigProvider",{enumerable:!0,get:()=>g.ElConfigProvider}),Object.defineProperty(h,"FoxContainer",{enumerable:!0,get:()=>g.ElContainer}),Object.defineProperty(h,"FoxDatePicker",{enumerable:!0,get:()=>g.ElDatePicker}),Object.defineProperty(h,"FoxDescriptions",{enumerable:!0,get:()=>g.ElDescriptions}),Object.defineProperty(h,"FoxDescriptionsItem",{enumerable:!0,get:()=>g.ElDescriptionsItem}),Object.defineProperty(h,"FoxDialog",{enumerable:!0,get:()=>g.ElDialog}),Object.defineProperty(h,"FoxDivider",{enumerable:!0,get:()=>g.ElDivider}),Object.defineProperty(h,"FoxDrawer",{enumerable:!0,get:()=>g.ElDrawer}),Object.defineProperty(h,"FoxDropdown",{enumerable:!0,get:()=>g.ElDropdown}),Object.defineProperty(h,"FoxDropdownItem",{enumerable:!0,get:()=>g.ElDropdownItem}),Object.defineProperty(h,"FoxDropdownMenu",{enumerable:!0,get:()=>g.ElDropdownMenu}),Object.defineProperty(h,"FoxEmpty",{enumerable:!0,get:()=>g.ElEmpty}),Object.defineProperty(h,"FoxFooter",{enumerable:!0,get:()=>g.ElFooter}),Object.defineProperty(h,"FoxForm",{enumerable:!0,get:()=>g.ElForm}),Object.defineProperty(h,"FoxFormItem",{enumerable:!0,get:()=>g.ElFormItem}),Object.defineProperty(h,"FoxHeader",{enumerable:!0,get:()=>g.ElHeader}),Object.defineProperty(h,"FoxIcon",{enumerable:!0,get:()=>g.ElIcon}),Object.defineProperty(h,"FoxImage",{enumerable:!0,get:()=>g.ElImage}),Object.defineProperty(h,"FoxImageViewer",{enumerable:!0,get:()=>g.ElImageViewer}),Object.defineProperty(h,"FoxInput",{enumerable:!0,get:()=>g.ElInput}),Object.defineProperty(h,"FoxInputNumber",{enumerable:!0,get:()=>g.ElInputNumber}),Object.defineProperty(h,"FoxLink",{enumerable:!0,get:()=>g.ElLink}),Object.defineProperty(h,"FoxMain",{enumerable:!0,get:()=>g.ElMain}),Object.defineProperty(h,"FoxMenu",{enumerable:!0,get:()=>g.ElMenu}),Object.defineProperty(h,"FoxMenuItem",{enumerable:!0,get:()=>g.ElMenuItem}),Object.defineProperty(h,"FoxMenuItemGroup",{enumerable:!0,get:()=>g.ElMenuItemGroup}),Object.defineProperty(h,"FoxOption",{enumerable:!0,get:()=>g.ElOption}),Object.defineProperty(h,"FoxOptionGroup",{enumerable:!0,get:()=>g.ElOptionGroup}),Object.defineProperty(h,"FoxPageHeader",{enumerable:!0,get:()=>g.ElPageHeader}),Object.defineProperty(h,"FoxPagination",{enumerable:!0,get:()=>g.ElPagination}),Object.defineProperty(h,"FoxPopconfirm",{enumerable:!0,get:()=>g.ElPopconfirm}),Object.defineProperty(h,"FoxPopover",{enumerable:!0,get:()=>g.ElPopover}),Object.defineProperty(h,"FoxPopper",{enumerable:!0,get:()=>g.ElPopper}),Object.defineProperty(h,"FoxProgress",{enumerable:!0,get:()=>g.ElProgress}),Object.defineProperty(h,"FoxRadio",{enumerable:!0,get:()=>g.ElRadio}),Object.defineProperty(h,"FoxRadioButton",{enumerable:!0,get:()=>g.ElRadioButton}),Object.defineProperty(h,"FoxRadioGroup",{enumerable:!0,get:()=>g.ElRadioGroup}),Object.defineProperty(h,"FoxRate",{enumerable:!0,get:()=>g.ElRate}),Object.defineProperty(h,"FoxResult",{enumerable:!0,get:()=>g.ElResult}),Object.defineProperty(h,"FoxRow",{enumerable:!0,get:()=>g.ElRow}),Object.defineProperty(h,"FoxScrollbar",{enumerable:!0,get:()=>g.ElScrollbar}),Object.defineProperty(h,"FoxSelect",{enumerable:!0,get:()=>g.ElSelect}),Object.defineProperty(h,"FoxSelectV2",{enumerable:!0,get:()=>g.ElSelectV2}),Object.defineProperty(h,"FoxSkeleton",{enumerable:!0,get:()=>g.ElSkeleton}),Object.defineProperty(h,"FoxSkeletonItem",{enumerable:!0,get:()=>g.ElSkeletonItem}),Object.defineProperty(h,"FoxSlider",{enumerable:!0,get:()=>g.ElSlider}),Object.defineProperty(h,"FoxSpace",{enumerable:!0,get:()=>g.ElSpace}),Object.defineProperty(h,"FoxStep",{enumerable:!0,get:()=>g.ElStep}),Object.defineProperty(h,"FoxSteps",{enumerable:!0,get:()=>g.ElSteps}),Object.defineProperty(h,"FoxSubMenu",{enumerable:!0,get:()=>g.ElSubMenu}),Object.defineProperty(h,"FoxSwitch",{enumerable:!0,get:()=>g.ElSwitch}),Object.defineProperty(h,"FoxTabPane",{enumerable:!0,get:()=>g.ElTabPane}),Object.defineProperty(h,"FoxTable",{enumerable:!0,get:()=>g.ElTable}),Object.defineProperty(h,"FoxTableColumn",{enumerable:!0,get:()=>g.ElTableColumn}),Object.defineProperty(h,"FoxTableV2",{enumerable:!0,get:()=>g.ElTableV2}),Object.defineProperty(h,"FoxTabs",{enumerable:!0,get:()=>g.ElTabs}),Object.defineProperty(h,"FoxTag",{enumerable:!0,get:()=>g.ElTag}),Object.defineProperty(h,"FoxTimePicker",{enumerable:!0,get:()=>g.ElTimePicker}),Object.defineProperty(h,"FoxTimeSelect",{enumerable:!0,get:()=>g.ElTimeSelect}),Object.defineProperty(h,"FoxTimeline",{enumerable:!0,get:()=>g.ElTimeline}),Object.defineProperty(h,"FoxTimelineItem",{enumerable:!0,get:()=>g.ElTimelineItem}),Object.defineProperty(h,"FoxTooltip",{enumerable:!0,get:()=>g.ElTooltip}),Object.defineProperty(h,"FoxTransfer",{enumerable:!0,get:()=>g.ElTransfer}),Object.defineProperty(h,"FoxTree",{enumerable:!0,get:()=>g.ElTree}),Object.defineProperty(h,"FoxTreeSelect",{enumerable:!0,get:()=>g.ElTreeSelect}),Object.defineProperty(h,"FoxTreeV2",{enumerable:!0,get:()=>g.ElTreeV2}),Object.defineProperty(h,"FoxUpload",{enumerable:!0,get:()=>g.ElUpload}),h.AutocompleteItem=Hr,h.Broadcast=Wt,h.BroadcastKey=oe,h.CascaderItem=_r,h.CheckboxItem=na,h.Content=Zn,h.DataItemsKey=Pe,h.DateItem=Er,h.DateUtils=ot,h.DialogItem=ua,h.Domain=bt,h.DomainKey=$e,h.DomainProvider=ga,h.FooterBar=Xn,h.Group=er,h.HeaderBar=Un,h.HintText=Ot,h.Indicator=ca,h.InputItem=ur,h.InputNumberItem=Lr,h.Item=de,h.Mapping=Rt,h.MoneyItem=Fr,h.MoreButton=da,h.Page=Yn,h.Price=rn,h.PriorityPolicy=ve,h.RadioItem=Qr,h.RateItem=aa,h.RowItem=ir,h.SelectItem=gr,h.SlotItem=or,h.SwitchItem=oa,h.TableItem=Xr,h.TableMappingColumn=Kr,h.TableRadioColumn=Gr,h.TableSetting=sn,h.Text=fa,h.TimeItem=kr,h.TimeSelectItem=Or,h.Tour=ha,h.TreeSelectItem=sa,h.UniqueID=ar,h.ValidateSchema=Fn,h.ValidateSchemaKey=ke,h.cancelRaf=Sa,h.clearNonNumber=Ba,h.clone=zt,h.compareTo=_t,h.createBroadcast=mt,h.createValidateSchema=yt,h.debounce=rt,h.debounceRef=Ya,h.decimalLength=kn,h.default=Iu,h.defineBroadcast=ja,h.defineConfigDomain=jn,h.defineDataItem=_n,h.defineDomain=Yt,h.defineItem=ue,h.definePageState=Pn,h.deleteGlobalValidator=Ha,h.disabledProperty=Se,h.divide=Mt,h.excludeProps=me,h.extend=qe,h.floatData=La,h.getGlobalValidateCheckEvents=An,h.getGlobalValidateResetEvents=Bn,h.getPageContentAreaHeight=wt,h.getPageContentAreaWidth=$t,h.getPageFooterAreaHeight=lt,h.getPageHeaderAreaHeight=at,h.getRootDomain=He,h.hasSymbol=wn,h.includeProps=On,h.indexOf=Fa,h.installRules=Mn,h.integerLength=Nn,h.isArray=Ta,h.isArrayLike=Tn,h.isBrowser=Qe,h.isDate=Ea,h.isESModule=Oa,h.isEmptyString=le,h.isEqual=Ae,h.isFunction=Pt,h.isHidden=vn,h.isInnerPage=Za,h.isMap=xa,h.isNumberString=En,h.isObject=Re,h.isPlainObject=Ht,h.isPromise=Va,h.isRegExp=Cn,h.isSet=Ca,h.isString=Na,h.isSubPage=Ja,h.isSymbol=ka,h.isWindow=$n,h.lastIndexOf=qa,h.makeArray=Da,h.merge=xn,h.multiply=pn,h.negate=yn,h.nextTick=Ra,h.numberFormat=dt,h.objectToString=Sn,h.once=Ua,h.property=we,h.raf=va,h.readonlyProperty=be,h.setGlobalValidateCheckEvents=za,h.setGlobalValidateHandler=_a,h.setGlobalValidateMessages=Wa,h.setGlobalValidateResetEvents=Ka,h.setGlobalValidator=Pa,h.throttle=Ln,h.toBoolean=te,h.toNumber=ge,h.toPadding=xe,h.toPx=re,h.toPxDesc=ce,h.toTypeString=ht,h.toValue=ne,h.typeOf=gt,h.unNumberFormat=bn,h.updatePageState=Ut,h.useBroadcast=tt,h.useDomain=Ve,h.useExpose=fe,h.useInnerSize=Qt,h.usePageState=St,h.usePosition=tr,h.useRect=nn,h.useSize=Jt,h.useTouch=Vu,h.valueLength=et,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/function ht(e,t="0"){let a=0,n=-1;e[0]=="-"&&(a++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(a++,n=2,t=t.substring(1),t.length),e=he(e),t=he(t),[e,t]=qt(he(e),he(t)),a==1&&(n==1?e=Bt(e):t=Bt(t));let l=mn(e,t);return a?a==2?"-"+he(l):e.length<l.length?he(l.substring(1)):"-"+he(Bt(l)):he(l)}function Bt(e){let t="",a=e.length,n=e.split(".")[1],l=n?n.length:0;for(let i=0;i<a;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let o=l>0?"0."+new Array(l).join("0")+"1":"1";return mn(t,o)}function he(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 qt(e,t){let a=e.split("."),n=t.split("."),l=a[0].length,o=n[0].length;return l>o?n[0]=new Array(Math.abs(l-o)+1).join("0")+(n[0]?n[0]:""):a[0]=new Array(Math.abs(l-o)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,o=n[1]?n[1].length:0,(l||o)&&(l>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(l-o)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-o)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function mn(e,t){[e,t]=qt(e,t);let a="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let o=parseInt(e[l])+parseInt(t[l])+n;a=o%10+a,n=Math.floor(o/10)}return n?n.toString()+a:a}var ae=(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))(ae||{});function Qe(e,t=0,a=ae.HALF_EVEN){if(a===ae.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 l=e.split("."),o=l[0],i=l[1];if(t<0){if(t=-t,o.length<=t)return"0";{let u=o.substr(0,o.length-t);return e=u+"."+o.substr(o.length-t)+i,u=Qe(e,0,a),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return o.length,pn(l[1],o,n,a)?(n?"-":"")+Ft(o):(n?"-":"")+o;if(l[1]){if(l[1].length<t)return(n?"-":"")+o+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(n?"-":"")+o+"."+new Array(t+1).join("0");i=l[1].substring(0,t);let s=l[1].substring(t);return s&&pn(s,i,n,a)&&(i=Ft(i),i.length>t)?(n?"-":"")+Ft(o,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+o+"."+i}function pn(e,t,a,n){if(!e||e===new Array(e.length+1).join("0")||n===ae.DOWN||!a&&n===ae.FLOOR||a&&n===ae.CEILING)return!1;if(n===ae.UP||a&&n===ae.FLOOR||!a&&n===ae.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(n){case ae.HALF_DOWN:return!1;case ae.HALF_UP:return!0;case ae.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Ft(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let a=e.length-1,n="";for(let l=a;l>=0;l--){let o=parseInt(e[l])+t;o==10?(t=1,o=0):t=0,n+=o}return t&&(n+=t),n.split("").reverse().join("")}function Lt(e,t){e=e.toString(),t=t.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),t[0]=="-"&&(a++,t=t.substr(1)),e=et(e),t=et(t);let n=0,l=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let o=n+l;if(e=et(e.replace(".","")),t=et(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],f=i-1,c="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let w=0;for(let b=t.length-1;b>=f&&b>=0;b--)u[b]>-1&&u[b]<e.length&&(w+=parseInt(e[u[b]--])*parseInt(t[b]));w+=s,s=Math.floor(w/10),c=w%10+c,f--}return c=et(Na(c,o)),a==1&&(c="-"+c),c}function Na(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 et(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 Mt(e,t,a=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 l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=he(t.replace(".","")),l>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=he(e+new Array(l+1).join("0"));else if(l>f)e=e.replace(".",""),e=he(e+new Array(l-f+1).join("0"));else if(l<f){e=e.replace(".","");let c=e.length-f+l;e=he(e.substring(0,c)+"."+e.substring(c))}else l==f&&(e=he(e.replace(".","")))}let o=0,i=t.length,s="",u=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),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(f+=i-u.length,u=u+new Array(i-u.length+1).join("0")),o=f,s="0."+new Array(f).join("0")}for(a=a+2;o<=a;){let f=0;for(;parseInt(u)>=parseInt(t);)u=ht(u,"-"+t),f++;s+=f,e?(e[0]=="."&&(s+=".",o++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(o||(s+="."),o++,u=u+"0")}return(n==1?"-":"")+he(Qe(s,a-2))}function jt(e,t){return e=e.toString(),t=t.toString(),t=_t(t),ht(e,t)}function _t(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function yn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),bn(e),bn(t);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=jt(e,Lt(t,Qe(Mt(e,t),0,ae.FLOOR)));return a+n}function bn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function wn(e,t){let a=!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),a=!0),[e,t]=qt(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]?a?-1:1:a?1:-1;return 0}class J{value;static RoundingModes=ae;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[a,n]=t.split(/[eE]/);a=he(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(n=parseInt(n)+a.indexOf("."),a=a.replace(".","")):n=parseInt(n)+a.length,a.length<n?t=l+a+new Array(n-a.length+1).join("0"):a.length>=n&&n>0?t=l+he(a.substring(0,n))+(a.length>n?"."+a.substring(n):""):t=l+"0."+new Array(-n+1).join("0")+a}return t}constructor(t="0"){this.value=J.validate(t)}getValue(){return this.value}static getPrettyValue(t,a,n){if(!(a||n))a=3,n=",";else if(!(a&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=J.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var i="",s=o;s>0;)s<a?(a=s,s=0):s-=a,i=t.substring(s,s+a)+(s<o-a&&s>=0?n:"")+i;return(l?"-":"")+i+t.substring(o)}getPrettyValue(t,a){return J.getPrettyValue(this.value,t,a)}static round(t,a=0,n=ae.HALF_EVEN){if(t=J.validate(t),isNaN(a))throw Error("Precision is not a number: "+a);return Qe(t,a,n)}round(t=0,a=ae.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new J(Qe(this.value,t,a))}static floor(t){return t=J.validate(t),t.indexOf(".")===-1?t:J.round(t,0,ae.FLOOR)}floor(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,ae.FLOOR)}static ceil(t){return t=J.validate(t),t.indexOf(".")===-1?t:J.round(t,0,ae.CEILING)}ceil(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,ae.CEILING)}static add(t,a){return t=J.validate(t),a=J.validate(a),ht(t,a)}add(t){return new J(ht(this.value,t.getValue()))}static subtract(t,a){return t=J.validate(t),a=J.validate(a),jt(t,a)}subtract(t){return new J(jt(this.value,t.getValue()))}static multiply(t,a){return t=J.validate(t),a=J.validate(a),Lt(t,a)}multiply(t){return new J(Lt(this.value,t.getValue()))}static divide(t,a,n){return t=J.validate(t),a=J.validate(a),Mt(t,a,n)}divide(t,a){return new J(Mt(this.value,t.getValue(),a))}static modulus(t,a){return t=J.validate(t),a=J.validate(a),yn(t,a)}modulus(t){return new J(yn(this.value,t.getValue()))}static compareTo(t,a){return t=J.validate(t),a=J.validate(a),wn(t,a)}compareTo(t){return wn(this.value,t.getValue())}static negate(t){return t=J.validate(t),_t(t)}negate(){return new J(_t(this.value))}}function Sn(e,t){return J.multiply(`${e}`,`${t}`)}function Pt(e,t,a=8){return J.divide(`${e}`,`${t}`,a)}function Ht(e,t){return e=`${e}`,t=`${t}`,J.compareTo(e,t)}function $n(e){return J.negate(e)}function gt(e,t=-1,a=!1,n=3,l=","){let o=`${e}`;if(o.length==0||o==="-")return"";let i=o.charAt(0);i=="-"?o=o.substring(1):i="";let s=o,u="",f=o.indexOf(".");f!=-1&&(s=o.substring(0,f),u=o.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):a&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",w=s.split("").reverse();for(let b=0;b<w.length;b++)d+=w[b]+((b+1)%n==0&&b+1!=w.length?l:"");u.length==0?c=`${i}${d.split("").reverse().join("")}`:c=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function vn(e){let t=`${e}`,a=t.charAt(0);a=="-"?t=t.substring(1):a="";let n=t.replace(/[^\d\.-]/g,"");return`${a}${n}`}const ka=Ea,Va=Array.isArray,Oa=e=>mt(e)==="[object Map]",Ia=e=>mt(e)==="[object Set]",Da=e=>e instanceof Date,zt=e=>typeof e=="function",Ra=e=>typeof e=="string",Aa=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",Ba=e=>Ae(e)&&zt(e.then)&&zt(e.catch),Tn=Object.prototype.toString,mt=e=>Tn.call(e),Wt=e=>mt(e)==="[object Object]",xn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function qa(e){return e.__esModule||xn&&e[Symbol.toStringTag]==="Module"}const Fa=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Me(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,n=e.length,l=!1;for(typeof t=="boolean"&&(l=t,t=e[a]??{},a++),typeof t!="object"&&(t={});a<n;a++)if(e[a]!==null&&e[a]!==void 0){let o=e[a];for(let i in o){let s=t[i],u=o[i];if(s!==u)if(l===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[i]=Me(l,f,u)}else u!==void 0&&(t[i]=u)}}return t}function Kt(e,t,a=!1){if(!a)Me(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let l in t){let o=e[l],i=t[l];if(o!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Wt(i))continue;o=Kt(o,i,a),e[l]=o}else{if(typeof i=="function")continue;e[l]=i}}const n=Object.getOwnPropertySymbols(t);for(let l of n){let o=e[l],i=t[l];if(o!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Wt(i))continue;o=Kt(o,i,a),e[l]=o}else{if(typeof i=="function")continue;e[l]=i}}}return e}const Yt=Fa?Promise.resolve():null;function La(e,...t){Yt!==null?t&&t.length>0?Yt.then(()=>{e(t)}):Yt.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function te(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ge(e){return typeof e=="number"?e:Number(e)}const Ma={"[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 pt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Ma[a]||"object"}function Cn(e){return e&&typeof e=="object"&&"setInterval"in e}function En(e){return!e||e.offsetParent===null}function Nn(e){let t=!!e&&"length"in e&&e.length,a=pt(e);return a==="function"||Cn(e)?!1:a==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function kn(e,t){let a=+t.length,n=0,l=e.length;for(;n<a;n++)e[l++]=t[n];return e.length=l,e}function ja(e,t=[]){let a=t;return e!=null&&(Nn(Object(e))?kn(a,typeof e=="string"?[e]:e):a.push(e)),a}function Be(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let a=pt(e),n=pt(t);if(a!==n)return!1;if(a==="object"){let l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(let i=0;i<l.length;i++){let s=l[i],u=e[s],f=t[s];if(!Be(u,f))return!1}return!0}else if(a==="array"){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let o=e[l],i=t[l];if(!Be(o,i))return!1}return!0}return!1}const tt=typeof window<"u";function Vn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const le=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function On(e){return le(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),le(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function In(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 a=t.indexOf(".");return a==-1?t.length:a}function Dn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const a=t.indexOf(".");return a==-1?0:t.length-(a+1)}function Rn(e,t,a){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(a,"")}function _a(e,t=!0,a=!0){t?e=Rn(e,".",/\./g):e=e.replace(/\./g,""),a?e=Rn(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Pa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(a=>{if(Be(e,a))return!0}):t.indexOf(e)}function Ha(e,t){if(typeof e=="object"||Array.isArray(e)){let a=t.reverse().findIndex(n=>{if(Be(e,n))return!0});return a!==-1&&(a=t.length-1-a),a}return t.lastIndexOf(e)}function nt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function An(e,...t){const a={};return t.forEach(n=>{for(const l in n)a[l]=e[l]}),a}function me(e,...t){const a=[];t.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const n={};for(const l in e)a.includes(l)||(n[l]=e[l]);return n}const za=(e,t,a)=>{const n=Object.assign({},e),l=Object.assign({},a);return Object.keys(t).length>0?(Object.keys(n).forEach(o=>{l.hasOwnProperty(o)?typeof l[o]=="string"&&(n[o]=t[l[o]]):t[o]&&(n[o]=t[o])}),n):e},oe=Symbol.for("BroadcastKey");class Gt{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,a,n){this.parent=t,this.proxy=a,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const a=this.children.findIndex(n=>t===n);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,a,...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 l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):Vn(t.name)&&this.name&&t.name.test(this.name)?l=!0:typeof t.name=="function"?l=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(l=!0);const o=[];if(l){const i=this.callbacks.get(a);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&o.push(u)}const s=this.proxy??{};if(typeof s[a]=="function"){const u=Reflect.apply(s[a],s,[...n]);u!=null&&o.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},a,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,o,[...s])}),o}emitToChildren(t,a,...n){const l=[];return this.children.forEach(o=>{const i=Reflect.apply(o.emit,o,[{...t},a,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(t,a){this.callbacks.set(t,a)}}function yt(e,t,a,n){const l=new Gt(t,e,a);if(n&&typeof n=="object")for(const o in n)l.on(o,n[o]);return l}function Wa(e,t,a){const n=a;if(n[oe])return n[oe];const l=r.inject(oe,null),o=new Gt(l,a,e);if(t&&typeof t=="object")for(const i in t)o.on(i,t[i]);return n[oe]=o,r.provide(oe,o),r.onUnmounted(()=>{o.destroy(),n[oe]=void 0}),o}function rt(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[oe]??r.inject(oe,null):r.inject(oe,null)}const je=e=>e.default??e;class Ka{error(t,a){const n=a,l=rt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const a=t,n=rt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(t){const a=t,n=rt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(t,a,n){Array.isArray(t)||(t=[t]);const l=n,o=rt(n),i=a.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):i&&!s&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Bn=new Ka;function Ya(e){Bn=e}function Ga(e,t){je(Le).setValidator(e,t)}function Ua(e){je(Le).deleteValidator(e)}let qn=["blur","clear"];function Xa(e){qn=e}function Fn(){return qn}let Ln=["focus","change"];function Za(e){Ln=e}function Mn(){return Ln}function Ja(e){je(Le).messages(e)}function at(...e){const t=[];return e.forEach(a=>{a.forEach(n=>{const l=t.findIndex(o=>o.type===n.type);l!==-1&&t.splice(l,1),t.push(n)})}),t}function bt(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 Oe=Symbol("ValidateSchemaKey");class jn{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,a,n){this.parent=t,this.descriptor=a,this.proxy=n,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=r.effectScope(),this.scope.run(()=>{r.watchEffect(()=>{const a=bt(at(this.attrRules,this.rules)),n=[];for(let o in t){let i=t[o];if(this.hasValidator(o,!0)){if(i===!1)continue;let u={type:o};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(o);if(s!==null){let u={type:o,validator:s};n.push(u)}}this.attrRules=bt(n);const l=at(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...a){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...a]);const l=Bn;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...a]):null}decorate(t,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,a,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,a,n=!1){n?je(Le).setValidator(t,a):this.validators[t]=a}getValidator(t){let a=this.validators[t]??null;return a||(a=this.parent?.getValidator(t)??null),a}deleteValidator(t,a=!1){a?je(Le).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,a=!1){if(a)return je(Le).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const a=at(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=bt(t):this.rules=bt([t]);const n=at(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(n,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=at(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${n}`]:a},o=this.getValue(),i={[`${n}`]:o},s=je(Le),u=new s(l),f=this.proxy??i;return u.validate(i,{context:f}).then(d=>{if(d.pass)this.success();else{let w="error";Array.isArray(d.errors)&&d.errors.length>0&&(w=d.errors[0].message??w,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(w)}return d}).catch(d=>{const w=d.message??`${d}`;return this.error(w),d})}}return Promise.resolve({pass:!0})}}function wt(e,t,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(o){return o[l]}}}return new jn(t,a,e)}const _n=Symbol.for("EventEmitterKey");class Qa{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,a){let n=this.register.get(t);if(n&&Array.isArray(n)){let l=n.findIndex(o=>o===a);l!==-1&&n.splice(l,1)}}on(t,a){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(a)}emit(t,...a){const n=this.register.get(t);n&&n.forEach(l=>{try{Reflect.apply(l,null,[t,...a])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...a])}}function lt(e,t){let a=null;return function(...n){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...n])},t)}}function Pn(e,t){let a=0;return function(...n){const l=new Date().getTime();l-a<t||(a=l,Reflect.apply(e,null,[...n]))}}function el(e,t){const a=lt((n,l)=>{e=n,l()},t);return r.customRef((n,l)=>({get(){return n(),e},set(o){a(o,l)}}))}function tl(e){let t=!1;return function(...a){t||(t=!0,Reflect.apply(e,null,[...a]))}}function Ut(e,t,a,n=0,l=!0){let o=t,i=0;if(l){const u=e();if(i++,u||i>a)return}const s=()=>{const u=e();i++,!(u||i>a)&&(o+=n,setTimeout(s,o))};setTimeout(s,o)}const $e=Symbol("DomainKey"),ze=Symbol("DataItemsKey");class St{_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=r.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,a=[]){for(const n in t){const l=t[n];a.length>0&&a.indexOf(l)!==-1||(this._props[n]=l)}}has(t){if(Reflect.has(this._props,t)){const a=this._props[t];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,a){this._props[t]=a}get(t,a){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?a:this.parent.get(t,a)}getForParent(t,a){return this.parent==null?a:this.parent.get(t,a)}getForSelf(t){return this._props[t]}getAll(t){const a=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const l=n._props[t];a.push(l)}n=n._parent}return a}}const nl=new St;function We(){return nl}function Ie(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[$e]??r.inject($e,null):r.inject($e,null)}const Xt=Symbol("OriginalDateKey");function Zt(e,t,a=[],n){const l=r.getCurrentInstance(),o=l?.proxy;let i=r.inject($e,null);i===null&&(i=We());const s=e||t.prop||t.name,u=new St(s);u.parent=i;const f=p=>{o[Xt]||w(p),u.set("modelValue",p)},c=()=>u.getForSelf("modelValue")??null,d=()=>o[Xt]??null,w=p=>{const S={};Me(!0,S,r.toRaw(p)),o[Xt]=S};r.isReactive(t)?r.watchEffect(()=>{u.merge(t,a)}):u.merge(t,a),t.modelValue&&w(t.modelValue),o[$e]=u,r.provide($e,u);let b=null,$=null;if(l!==null){const p=r.inject(oe,null);b=yt(o,p,s,n),u.broadcast=b,o[oe]=b,r.provide(oe,b),o.broadcast=(m,x,...R)=>Reflect.apply(b.emit,b,[m,x,...R]);const S=r.inject(Oe,null);$=wt(o,S,{componentName:""}),u.validateSchema=$,o[Oe]=$,r.provide(Oe,$),o[ze]=new Map,o.validate=(m=!0)=>{const x=[];let R=null;const B={deep:!1};if(m===!0)R={name:"*"};else if(Array.isArray(m)&&m.length>0){const N=m;R={name:E=>E?N.indexOf(E)!==-1:!1}}else if(m!=null&&typeof m=="object"){const N=m;if(B.ignoreHidden=N.ignoreHidden,Array.isArray(N.include)&&N.include.length>0){const E=N.include;R={name:O=>O?E.indexOf(O)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const E=N.exclude;R={name:O=>O?E.indexOf(O)===-1:!1}}else R={name:"*"}}if(R){const N=b?.emitToChildren(R,"validate",B);N&&Reflect.apply([].push,x,N)}return x.length==1?x[0]:x.length>1?Promise.all(x).then(N=>{let E=[];return N.forEach(O=>{O.pass===!1&&Array.isArray(O.errors)&&(E=[...E,...O.errors])}),E.length>0?{pass:!1,errors:E}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(m,x=!0)=>{if(x){const R=Reflect.ownKeys(m),B=[...R],N={name:E=>{const O=R.includes(E);if(O){const V=B.findIndex(A=>E===A);V!==-1&&B.splice(V,1)}return O}};b?.emitToChildren(N,"setNameValidateRules",m,!1),B.length>0&&B.forEach(E=>{let O=String(E);const A=Wn(u,O,{componentName:"",fieldName:O,pureDataValidate:!0},b,$);o[ze].set(O,A);const F=m[O];F&&A.validateSchema.setRule(F)})}},o.clearValidate=(m=!0)=>{let x=null;if(m===!0)x={name:"*"};else if(Array.isArray(m)&&m.length>0){const R=m;x={name:B=>B?R.indexOf(B)!==-1:!1}}else if(m!=null&&typeof m=="object"){const R=m;if(Array.isArray(R.include)&&R.include.length>0){const B=R.include;x={name:N=>N?B.indexOf(N)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const B=R.exclude;x={name:N=>N?B.indexOf(N)===-1:!1}}else x={name:"*"}}x&&b?.emitToChildren(x,"clearValidate",!1)},o.resetFields=m=>{const x=c();if(!x)return;const R={};if(Me(!0,R,d()??{}),Array.isArray(m))m.forEach(B=>{x[B]=R[B]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(N=>{x[N]=R[N]});else if(m&&Array.isArray(m.exclude)){let B=m.exclude??[];Reflect.ownKeys(R).forEach(N=>{B.includes(N)||(x[N]=R[N])})}else Object.assign(x,R);o.clearValidate(m)},o.setModelValue=(m,x)=>{!x||x===s?f(m):b?.emitToChildren({name:x},"setModelValue",m)},o.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),o[$e]=void 0,o[ze]&&(o[ze].clear(),o[ze]=void 0),b!==null&&(b.destroy(),o[oe]=void 0),$!==null&&($.destroy(),o[Oe]=void 0)}),u}function Hn(e,t,a=[]){const l=r.getCurrentInstance()?.proxy;let o=r.inject($e,null);o===null&&(o=We());const i=e||t.prop||t.name,s=new St(i);return s.parent=o,r.isReactive(t)?r.watchEffect(()=>{s.merge(t,a)}):s.merge(t,a),l[$e]=s,r.provide($e,s),r.onUnmounted(()=>{s.destroy(),l[$e]=void 0}),s}function zn(e,t,a){const l=Ie(e)?.get("rules");if(!l)return;let o=l[a];o&&(Array.isArray(o)||(o=[o]),o.forEach(i=>{t.setRule(i)}))}function ue(e,t,a){const l=r.getCurrentInstance()?.proxy,o=t??"",i=r.inject(oe,null),s=yt(l,i,o,a);l[oe]=s,r.provide(oe,s),l.broadcast=($,p,...S)=>Reflect.apply(s.emit,s,[$,p,...S]);const u=r.inject(Oe,null);e.fieldName=e.fieldName??o;const f=wt(l,u,e);l[Oe]=f,r.provide(Oe,f),zn(l,f,o),l.validate=($=null)=>{const p=[];let S=!1,m=!1;if(Array.isArray($)&&$.indexOf(o)!==-1)m=!0,S=!0;else if($&&typeof $=="object"){const x=$;x.ignoreHidden===!0&&En(l.$el)?m=!1:(Array.isArray(x.include)&&x.include.indexOf(o)!==-1||Array.isArray(x.exclude)&&x.exclude.indexOf(o),m=!0),S=x.deep??!1}else typeof $=="boolean"&&(S=$),m=!0;if(m){const x=f?.validate();p.push(x)}if(S){let x=null;const R={deep:!1};if($===!0)x={name:"*"};else if(Array.isArray($)&&$.length>0){const B=$;x={name:N=>N?B.indexOf(N)!==-1:!1}}else if($!=null&&typeof $=="object"){const B=$;if(R.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const N=B.include;x={name:E=>E?N.indexOf(E)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const N=B.exclude;x={name:E=>E?N.indexOf(E)===-1:!1}}else x={name:"*"}}if(x){const B=s.emitToChildren(x,"validate",R);Reflect.apply([].push,p,B)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(x=>{let R=[];return x.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(R=[...R,...B.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=$=>f?.setRule($),l.setNameValidateRules=($,p=!1)=>{const S=$[o];if(S&&f?.setRule(S),p){const m={name:x=>Reflect.ownKeys($).includes(x)};s.emitToChildren(m,"setNameValidateRules",$,!1)}},l.clearValidate=($=null)=>{(!Array.isArray($)||$.indexOf(t??"")!==-1)&&f?.clear();let p=null;if($===!0)p={name:"*"};else if(Array.isArray($)&&$.length>0){const S=$;p={name:m=>m?S.indexOf(m)!==-1:!1}}else if($!=null&&typeof $=="object"){const S=$;if(Array.isArray(S.include)&&S.include.length>0){const m=S.include;p={name:x=>x?m.indexOf(x)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const m=S.exclude;p={name:x=>x?m.indexOf(x)===-1:!1}}else p={name:"*"}}p&&s.emitToChildren(p,"clearValidate",!1)};const c=new Qa(l);l[_n]=c;const d=lt(($="validate")=>{$==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Fn()).forEach($=>{c.on($,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Mn()).forEach($=>{c.on($,p=>{d("reset")})}),r.onUnmounted(()=>{s.destroy(),l[oe]=void 0,f.destroy(),l[Oe]=void 0,c.destroy(),l[_n]=void 0}),{broadcast:s,validateSchema:f,emitEvent:($,...p)=>{Reflect.apply(c.emit,c,[$,...p])},onEvent:($,p)=>{Reflect.apply(c.on,c,[p])},offEvent:($,p)=>{Reflect.apply(c.off,c,[p])}}}function Wn(e,t,a,n,l){const o={},i=t??"";a.fieldName=i,a.validateHandler={getValue(f){const c=e.getForSelf("modelValue");return c?c[i]:null}};const s=wt({},l,a);o.validate=(f=null)=>{const c=[];let d=!1,w=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)w=!0,d=!0;else if(f&&typeof f=="object"){const b=f;Array.isArray(b.include)&&b.include.indexOf(i)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(i),w=!0,d=b.deep??!1}else typeof f=="boolean"&&(d=f),w=!0;if(w){const b=s?.validate();c.push(b)}if(d){let b=null;const $={deep:!1};if(f===!0)b={name:"*"};else if(Array.isArray(f)&&f.length>0){const p=f;b={name:S=>S?p.indexOf(S)!==-1:!1}}else if(f!=null&&typeof f=="object"){const p=f;if(Array.isArray(p.include)&&p.include.length>0){const S=p.include;b={name:m=>m?S.indexOf(m)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const S=p.exclude;b={name:m=>m?S.indexOf(m)===-1:!1}}else b={name:"*"}}if(b){const p=u.emitToChildren(b,"validate",$);Reflect.apply([].push,c,p)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(b=>{let $=[];return b.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&($=[...$,...p.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=f=>s?.setRule(f),o.setNameValidateRules=f=>{const c=f[i];c&&s?.setRule(c)};const u=yt(null,n,i,o);return{broadcast:u,validateSchema:s}}const ce=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${re(e,t)}px`:"";function re(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 a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),o=1;if(tt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(o=Number(i.substring(0,s)))}return l*=o,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*t;const n=Number(e);return isNaN(n)?0:n}const qe="PageStateKey";function Ce(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=re(e.top)),e.left!==null&&e.left!==void 0&&(t.left=re(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=re(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=re(e.right))),t}function Jt(e,t,a={},n=!0,l=-1,o=-1,i=0,s=0){if(e.headerHeight=re(a.headerHeight??t.headerHeight),e.headerPadding=Ce(a.headerPadding??t.headerPadding),e.footerHeight=re(a.footerHeight??t.footerHeight),e.footerPadding=Ce(a.footerPadding??t.footerPadding),e.contentPadding=Ce(a.contentPadding??t.contentPadding),n){const u=a.height??t.height;u?e.height=re(u,o):e.height=re(o)-re(i,o)-re(s,o),e.width=re(a.width??t.width??0,l)}}function Kn(e,t={}){const a={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=re(l.top),n.safeAreaBottom=re(l.bottom),n.safeAreaLeft=re(l.left),n.safeAreaRight=re(l.right));const o=e.get("pageLayout");if(!o)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;Jt(n,o,t,!0,i,s,u,f);const c=r.reactive(n),d=e.getForParent(qe);d&&(n.height=vt(e,d),n.width=Tt(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{c.height=vt(e,d),c.width=Tt(e,d)}));const w=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([b,$,p=-1,S=-1,m=0,x=0])=>{Jt(c,$,t,w,p,S,m,x)}),e.set(qe,c),c}function $t(e){return e.get(qe)}function ot(e,t){if(t=t??e.get(qe),t&&t.headerMounted){const a=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+a}return 0}function it(e,t){if(t=t??e.get(qe),t&&t.footerMounted){const a=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+a}return 0}function vt(e,t){if(t=t??e.get(qe),t){if(t.contentInnerHeight)return t.contentInnerHeight;const a=ot(e,t),n=it(e,t);return t.height-a-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Tt(e,t){return t=t??e.get(qe),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function rl(e,t){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[t,e]):!1}function al(e){return!!e.getForParent(qe)}var ve=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ve||{});function Qt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Se(e,t,a=1,n){const l=Ie();return l==null?e:a===0?r.computed(()=>{const o=l.getAll(t);for(let s=o.length-1;s>=0;s--){const u=o[s];if(Qt(u,n))return u}const i=e.value;return Qt(i,n)?i:null}):r.computed(()=>{const o=e.value;return Qt(o,n)?o:l?.get(t)})}function be(e){return Se(e,"readonly",0,function(a){return te(a)})}function we(e){return Se(e,"disabled",0,function(a){return te(a)})}function ne(e,t="modelValue",a){const n=r.toRef(e,t);let l=n.value;typeof a=="function"&&(l=a(n.value));const o=r.ref(l);return r.watch(n,i=>{if(typeof a=="function"){const s=a(i);s!==o.value&&(o.value=s)}else i!==o.value&&(o.value=i)}),o}const Yn=new Map,xt=new Map;let en=null;function ll(e){en=e}function Gn(e,t,a){if(a){let n=xt.get(a);n||(n=new Map,xt.set(a,n)),n.set(e,t)}else Yn.set(e,t)}function Ee(e,t,a){!a&&en&&(a=en(e)??void 0);let n=null;if(a){let l=xt.get(a);l&&(n=l.get(t))}return n||(n=Yn.get(t)),n}function ol(e,t){for(let a in e){const n=e[a];Gn(a,n,t)}}function il(e){xt.delete(e)}function sl(){return{top:0,left:0,bottom:0,right:0}}function ul(e=0,t=0){if(tt){const a=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:n-re(e,n)-re(t,n),headerHeight:44,footerHeight:44};return{rootWidth:a,rootHeight:n,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class cl{packages;installers;_version;get version(){return this._version}constructor(t,a,n){this.packages=t,this.installers=a,this._version=n}install(t,a={}){a?.install!==!1&&(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"],l=We();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=Pn(()=>{const s={...a},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=f,this.initPageLayout(s,l)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in a)n.indexOf(o)===-1&&l.set(o,a[o])}initPageLayout(t,a){const n=t.headerBarHeight??0,l=t.footerBarHeight??0,o=Me({},sl(),t.safeAreaInset),i=ul(n,l),s=Me({},i.pageLayout,t.pageLayout);a=a??We(),a.set("safeAreaInset",o),a.set("headerBarHeight",n),a.set("footerBarHeight",l),a.set("pageLayout",s),a.set("rootWidth",i.rootWidth),a.set("rootHeight",i.rootHeight)}setScopeGetter(t){ll(t)}setAPI(t,a,n){Gn(t,a,n)}getAPI(t,a,n){return Ee(t,a,n)}batchSetAPI(t,a){ol(t,a)}clearScopeAPI(t){il(t)}getRootDomain(){return We()}}const fl=[g.ElAffix,g.ElAlert,g.ElAutocomplete,g.ElAutoResizer,g.ElAvatar,g.ElBacktop,g.ElBadge,g.ElBreadcrumb,g.ElBreadcrumbItem,g.ElButton,g.ElButtonGroup,g.ElCalendar,g.ElCard,g.ElCarousel,g.ElCarouselItem,g.ElCascader,g.ElCascaderPanel,g.ElCheckTag,g.ElCheckbox,g.ElCheckboxButton,g.ElCheckboxGroup,g.ElCol,g.ElCollapse,g.ElCollapseItem,g.ElCollapseTransition,g.ElColorPicker,g.ElConfigProvider,g.ElContainer,g.ElAside,g.ElFooter,g.ElHeader,g.ElMain,g.ElDatePicker,g.ElDescriptions,g.ElDescriptionsItem,g.ElDialog,g.ElDivider,g.ElDrawer,g.ElDropdown,g.ElDropdownItem,g.ElDropdownMenu,g.ElEmpty,g.ElForm,g.ElFormItem,g.ElIcon,g.ElImage,g.ElImageViewer,g.ElInput,g.ElInputNumber,g.ElLink,g.ElMenu,g.ElSubMenu,g.ElMenuItem,g.ElMenuItemGroup,g.ElPageHeader,g.ElPagination,g.ElPopconfirm,g.ElPopover,g.ElPopper,g.ElProgress,g.ElRadio,g.ElRadioButton,g.ElRadioGroup,g.ElRate,g.ElResult,g.ElRow,g.ElScrollbar,g.ElSelect,g.ElOption,g.ElOptionGroup,g.ElSelectV2,g.ElSkeleton,g.ElSkeletonItem,g.ElSlider,g.ElSpace,g.ElSteps,g.ElStep,g.ElSwitch,g.ElTable,g.ElTableColumn,g.ElTableV2,g.ElTabs,g.ElTabPane,g.ElTag,g.ElTimePicker,g.ElTimeSelect,g.ElTimeline,g.ElTimelineItem,g.ElTooltip,g.ElTransfer,g.ElTree,g.ElTreeSelect,g.ElTreeV2,g.ElUpload],dl=[g.ElInfiniteScroll,g.ElLoading,g.ElMessage,g.ElMessageBox,g.ElNotification,g.ElPopoverDirective],hl=e=>{fl.forEach(t=>{let a=t.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,t)):e.use(t)}),dl.forEach(t=>{e.use(t)})};function Q(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=t,a.install=n=>{n.component(a.name,a)},r.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,r.defineComponent(a)}}}const ie={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}},pe={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},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Un={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Xn={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"grid"},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1}},Zn=[];for(const e in Xn)Zn.push(e);function fe(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let a=t.proxy;Object.assign(a,e)}}const gl=Symbol.for("InnerPageScopeKey"),ml=(e,t)=>({inheritAttrs:!0,props:{...ie,...Un,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(a,n){const l=Zt(a.name,a);if(l){const f=Kn(l,a);fe({getPageContentHeight:()=>vt(l,f),getPageContentWidth:()=>Tt(l,f),getPageHeaderHeight:()=>ot(l,f),getPageFooterHeight:()=>it(l,f)});const c=r.inject(gl,!1);f&&c&&(f.contentHeight="100%")}const o=r.computed(()=>({[e]:!0})),i=r.computed(()=>({})),s=r.getCurrentInstance(),u=f=>{const c=s?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(f,!0)};return r.watch(()=>a.rules,(f,c)=>{if(!f&&!c)return;const d=r.toRaw(c),w=r.toRaw(f),b=w?Reflect.ownKeys(w):[];(d?Reflect.ownKeys(d):[]).forEach(p=>{b.includes(p)||(w[p]=[])}),u(w)},{deep:!0}),r.onMounted(()=>{if(a.rules){const f=r.toRaw(a.rules);u(f)}}),r.onBeforeUnmount(()=>{}),{classes:o,styles:i}}}),{componentName:pl,create:yl,scope:lc}=Q("page"),bl=yl(ml(pl));function wl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Te=(e,t)=>{const a=e.__vccOpts||e;for(const[n,l]of t)a[n]=l;return a},Jn=Te(bl,[["render",wl]]),Sl=["aria-labelledby"],$l=r.createElementVNode("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1),vl=[$l],Tl=r.defineComponent({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const a=e,n=s=>{t("click",s)},l=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},o=r.computed(()=>{const s="fox-icon";return{[a.class]:!!a.class,[s]:!0,[s+"-"+a.name]:a.name}}),i=r.computed(()=>{const s={};return s.height=l(a.height)??l(a.size),s.width=l(a.width)??l(a.size),s.color=a.color,s});return(s,u)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(o.value),style:r.normalizeStyle(i.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},vl,14,Sl))}});function tn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function nn(e){const t=r.unref(e),a=window.getComputedStyle(t,null),n=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),o=parseFloat(a.getPropertyValue("padding-top")),i=parseFloat(a.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-l,height:t.clientHeight-o-i}}const xl=(e,t,a,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(l,o){const i=Ie(),s=i?$t(i):null;s&&(s.headerMounted=!0);const u=r.computed(()=>{const y=e;return{[y]:!0,[`${y}--border`]:l.border,[`${y}--fixed`]:l.fixed,[`${y}--safe-area-inset-top`]:l.safeAreaInsetTop}}),f=l.height!==null&&l.height!==void 0?re(l.height):null,c=r.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const T=Ce(l.padding??s.headerPadding);return Object.assign(y,T),f&&(s.headerHeight=f),y.height=s.headerHeight,y.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(T.top??0),y.height=y.height+y.safeAreaTop),y}if(f&&(y.height=f),l.padding){const T=Ce(l.padding);Object.assign(y,T)}return y}),d=r.ref(null),w=()=>{if(s&&d.value&&d.value.offsetParent!==null){if(!n){const y=tn(d.value);s.headerAllHeight=y.height}return s.headerMounted=!0,!0}return!1};r.onMounted(()=>{s&&Ut(w,50,5,50,!0)}),r.onUnmounted(()=>{s&&(s.headerMounted=!1)});const b=r.computed(()=>{const y={};return c.value.height!==null&&c.value.height!==void 0&&(y.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(y.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(y.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(y.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(y.paddingBottom=`${c.value.bottom}px`),y}),$=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),p=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),S=r.computed(()=>!!l.leftShow),m=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),x=r.computed(()=>l.titleShow?l.title||l.titleIcon||o.slots.titleIcon||o.slots.default:!1),R=r.computed(()=>l.rightShow?l.rightText||l.rightIcon||o.slots.rightIcon||o.slots.right:!1),B=r.computed(()=>l.leftIcon),N=r.computed(()=>B.value||o.slots.leftIcon),E=r.computed(()=>l.titleIcon),O=r.computed(()=>l.titleIcon||o.slots.titleIcon),V=r.computed(()=>l.rightIcon),A=r.computed(()=>l.rightIcon||o.slots.rightIcon);function F(){o.emit("back")}function W(){o.emit("click-title")}function _(){o.emit("click-right")}function v(){o.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:b,mHeaderShow:m,leftStyles:$,rightStyles:p,mLeftShow:S,mTitleShow:x,mRightShow:R,mLeftIcon:B,hasLeftIcon:N,mTitleIcon:E,hasTitleIcon:O,mRightIcon:V,hasRightIcon:A,handleLeft:F,handleCenter:W,handleRight:_,handleRightText:v}}}),{componentName:Cl,create:El,scope:Nl}=Q("header-bar"),kl=El(xl(Cl,Nl,Tl)),Vl={key:1,class:"fox-header-bar__title"},Ol={key:0,class:"title-text"};function Il(e,t,a,n,l,o){return e.mHeaderShow?(r.openBlock(),r.createElementBlock("view",{key:0,ref:"headerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:r.normalizeStyle(e.leftStyles)},[r.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[0]||(t[0]=(...i)=>e.handleLeft&&e.handleLeft(...i)),class:"left-icon"},[r.renderSlot(e.$slots,"leftIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mLeftIcon)))])])):r.createCommentVNode("",!0),e.leftText?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[1]||(t[1]=(...i)=>e.handleLeft&&e.handleLeft(...i))},r.toDisplayString(e.leftText),1)):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0),e.mTitleShow?(r.openBlock(),r.createElementBlock("view",Vl,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",Ol,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),e.hasTitleIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[2]||(t[2]=(...i)=>e.handleCenter&&e.handleCenter(...i)),class:"title-icon"},[r.renderSlot(e.$slots,"titleIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mTitleIcon)))])])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0),e.mRightShow?(r.openBlock(),r.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:r.normalizeStyle(e.rightStyles)},[r.renderSlot(e.$slots,"right",{},()=>[e.rightText?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[3]||(t[3]=(...i)=>e.handleRightText&&e.handleRightText(...i))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...i)=>e.handleRight&&e.handleRight(...i)),class:"right-icon"},[r.renderSlot(e.$slots,"rightIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mRightIcon)))])])):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0)])],6)):r.createCommentVNode("",!0)}const Qn=Te(kl,[["render",Il]]);function Dl(e,t,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,l){const o=Ie(),i=o?$t(o):null,s=r.computed(()=>{const b=e;return{[b]:!0,[`${b}--${n.align}`]:!0,[`${b}--border`]:n.border,[`${b}--fixed`]:n.fixed,[`${b}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?re(n.height):null,f=r.computed(()=>{const b={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(o&&i){const $=Ce(n.padding??i.footerPadding);return Object.assign(b,$),u&&(i.footerHeight=u),b.height=i.footerHeight,b.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,b.safeAreaBottom>0&&(b.height=b.height+b.safeAreaBottom,b.bottom=b.safeAreaBottom+($.bottom??0)),b}if(u&&(b.height=u),n.padding){const $=Ce(n.padding);Object.assign(b,$)}return b}),c=r.ref(null),d=()=>{if(i&&c.value&&c.value.offsetParent!==null){if(!a){const b=tn(c.value);i.footerAllHeight=b.height}return i.footerMounted=!0,!0}return!1};r.onMounted(()=>{i&&Ut(d,50,5,50,!0)}),r.onUnmounted(()=>{i&&(i.footerMounted=!1)});const w=r.computed(()=>{const b={};return f.value.height!==null&&f.value.height!==void 0&&(b.height=ce(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(b.paddingTop=ce(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(b.paddingLeft=ce(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(b.paddingRight=ce(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(b.paddingBottom=ce(f.value.bottom)),b});return{footerBarRef:c,classes:s,styles:w}}}}const{componentName:Rl,create:Al,scope:oc}=Q("footer-bar"),Bl=Al(Dl(Rl));function ql(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("view",{ref:"footerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const er=Te(Bl,[["render",ql]]);function Fl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(a){const n=Ie(),l=r.computed(()=>({[e]:!0})),o=n?$t(n):null,i=r.computed(()=>{const f={};if(n&&o){if(a.padding){const b=Ce(a.padding);Object.assign(o.contentPadding,b)}const c=ot(n,o),d=it(n,o);let w="";if(o.contentHeight?w=`${o.contentHeight}`:w=`${o.height}px`,o.contentPadding,f.height=w,o.contentPadding.top||c>0){const b=(o&&o.contentPadding&&o.contentPadding.top)??0;f.paddingTop=`${c+b}px`}if(o.contentPadding.bottom||d>0){const b=(o&&o.contentPadding&&o.contentPadding.bottom)??0;f.paddingBottom=`${d+b}px`}return o.contentPadding.left&&(f.paddingLeft=`${o.contentPadding.left}px`),o.contentPadding.right&&(f.paddingRight=`${o.contentPadding.right}px`),f}if(a.padding){const c=Ce(a.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),s=r.ref(null),u=()=>{if(o&&s.value){const f=nn(s.value);o.contentInnerHeight=f.height,o.contentInnerWidth=f.width}};return r.onMounted(()=>{u()}),n&&o&&r.watch([()=>ot(n),()=>it(n)],([])=>{u()}),{contentRef:s,classes:l,styles:i}}}}const{componentName:Ll,create:Ml,scope:ic}=Q("content"),jl=Ml(Fl(Ll));function _l(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{ref:"contentRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const tr=Te(jl,[["render",_l]]),Ke="GroupStateKey",nr=Symbol.for("GroupScopeKey");function Ct(){return r.inject(nr,!1)}function Et(e=!0){r.provide(nr,e)}function Pl(e,t={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,t);const l=r.shallowRef(n),o=r.markRaw({layout:l,passport:0,order:{index:0}});return e.set(Ke,o),o}function rn(e,t,a=-1,n=-1,l=!1,o,i){const s=e.get(Ke);if(!s)return;const u=e.get("groupLayout")??{};a===-1&&(a=u.column??1),n===-1&&(n=u.gutter??0),o||(o=u.minItemWidth??-1),i||(i=u.maxItemWidth??-1);const f=re(o),c=re(i),d=()=>{const w=t===""||t===-1,b=re(t);let $=ge(a);const p=re(n);if(!w){let x=(b-($-1)*p)/$;for(;c!==-1&&x>c;)$++,x=(b-($-1)*p)/$;for(;f!==-1&&$>1&&x<f;)$--,x=(b-($-1)*p)/$}let S=!1;const m=s.layout;m.value.width=t,m.value.column!==$&&(m.value.column=$,S=!0),m.value.gutter!==p&&(m.value.gutter=p,S=!0),S&&r.triggerRef(m)};if(l)d();else{const w=++s.passport;setTimeout(()=>{w===s.passport&&d()},50)}}function Nt(e,t=!1){let a;return t?a=e.getForParent(Ke):a=e.get(Ke),a.layout}function kt(e,t=!1){let a;return t?a=e.getForParent(Ke):a=e.get(Ke),a.order}function rr(e,t=1){if(t==="stretch")return-1;const a=ge(t);return a===-1?100:100*a/e}function Vt(e,t,a=1,n=0,l){const o={};let i=0;l?i=re(l):i=rr(t.column,a),i>0&&(o.width=`${i}%`);const s=rr(t.column,n);s>0&&(o["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(o["padding-left"]=`${u}px`,o["padding-right"]=`${u}px`),o}function Ot(e,t,a=1,n=0){if(a==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let l=ge(a);if(l===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(l>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const o=ge(n)%t.column;let i=(e.index+o)%t.column,s=i+l;return s>t.column?(i=0,s=i+l,e.index=e.index+(t.column-i)+l):e.index=e.index+o+l,o>0?{"grid-column":`${i+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}function an(e){let t=e.offsetHeight;if(t<=0){const a=e.cloneNode(!0),n=e.offsetWidth;a.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),t=a.offsetHeight,document.body.removeChild(a)}return t}function Hl(e,t,a){if(e<=0)return"1fr";const n=(e-(t-1)*a)/t;return n>0?`${n}px`:"1fr"}function zl(e,t,a){return{props:{...ie,...Un,...Xn},emits:["update:collapse"],setup(n,l){const o=Zt(n.name,n,Zn),i=Pl(o,{type:n.type}),s=Ct();Et(!0);const u=r.computed(()=>s&&o?Nt(o,!0).value:null),f=r.getCurrentInstance(),c=M=>{const Y=f?.proxy;Y&&typeof Y.setNameValidateRules=="function"&&Y.setNameValidateRules(M,!0)};r.watch(()=>n.rules,(M,Y)=>{if(!M&&!Y)return;const U=r.toRaw(Y),D=r.toRaw(M),G=D?Reflect.ownKeys(D):[];(U?Reflect.ownKeys(U):[]).forEach(j=>{G.includes(j)||(D[j]=[])}),c(D)},{deep:!0});const d=e,w=r.computed(()=>{const M={};M.height=v.value;const Y=s?kt(o,!0):null;if(u.value&&Y){if(u.value.type==="grid"){const U=Ot(Y,u.value,n.span,n.offset);Object.assign(M,U)}else if(u.value.type==="flow"){const U=Vt(Y,u.value,n.span,n.offset,n.width);Object.assign(M,U)}}else if(n.width){const U=ce(n.width);M.width=U}return k.value&&(M["box-sizing"]="content-box"),M}),b=r.computed(()=>n.type==="grid"||n.type==="flow"?{[`${d}--${n.type}`]:!0,[`${d}--${n.type}-justify-${n.justify}`]:!0,[`${d}--${n.type}-align-${n.align}`]:!0,[`${d}--gutter`]:!0}:{[`${d}--${n.type}`]:!0,[`${d}--gutter`]:!0}),$=r.computed(()=>{if(n.type==="grid"){let M="";if(n.columnWidth)M=`repeat(auto-fill, ${n.columnWidth})`;else{const Y=Hl(E.value,i.layout.value.column,i.layout.value.gutter);M=`repeat(${i.layout.value.column}, ${Y})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":M}}}),p=r.toRef(n,"title"),S=r.toRef(n,"gutter"),m=r.toRef(n,"column"),x=r.computed(()=>s?!0:te(n.isWrap)),R=[],B=M=>{R.push(M)},N=()=>{let M=R.length;R.splice(0,M)},E=r.ref(-1),O=M=>{const Y=nn(M).width;Y>0&&Y!==E.value&&(E.value=Y)};rn(o,E.value,m.value,S.value,!0,n.minItemWidth,n.maxItemWidth),n.autoLayout&&r.watch([E,m,S],([M,Y,U])=>{i.order.index=0,rn(o,M,Y,U,!1,n.minItemWidth,n.maxItemWidth)});const V=r.computed(()=>y.value?n.expandText??"":n.collapseText??""),A=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),F=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!y.value,"is-collapse":y.value})),W=r.ref(),_=r.ref(),v=r.computed(()=>T.value||ce(n.height)||""),y=r.ref(!1),T=r.ref(""),k=r.ref(!1);let L=-1;const K=(M,Y=!0)=>{const U=W.value;if(U&&y.value!==M){if(L=L===-1?an(U):L,k.value=!0,Y)if(U.style["will-change"]="height",U.ontransitionend=function(){U.ontransitionend=null,this.style["will-change"]="auto",M||(T.value="",k.value=!1)},M){let D=0;n.collapseHeight?D=n.collapseHeight:_.value&&_.value.classList.contains(`${e}__header`)&&(D=an(_.value)),T.value=`${L}px`,r.nextTick(()=>{T.value=`${D}px`})}else T.value=`${L}px`;else if(M){let D=0;n.collapseHeight?D=n.collapseHeight:_.value&&_.value.classList.contains(`${e}__header`)&&(D=an(_.value)),T.value=`${D}px`}else k.value=!1,T.value=`${L}px`;y.value=M,l.emit("update:collapse",M)}};r.watch(()=>n.collapse,M=>{K(M)});const C=()=>{I()},I=M=>{M=M??!y.value,K(M)};fe({toggleCollapse:I,doLayout:()=>{R[0]&&(O(R[0]),rn(o,E.value,m.value,S.value,!0,n.minItemWidth,n.maxItemWidth))}});let q=null;r.onMounted(()=>{if(n.rules){const M=r.toRaw(n.rules);c(M)}if(tt&&(K(te(n.collapse),!1),n.autoLayout&&Array.isArray(R)&&R.length>0)){const M=R[0];O(M),window.ResizeObserver&&(q=new window.ResizeObserver(()=>{O(M)}),q.observe(M))}}),r.onUnmounted(()=>{q?.disconnect()});const z=(M,Y,U,D)=>{const G={...b.value};return Y===0&&(G[`${d}__first`]=!0),U>=D-1&&(G[`${d}__last`]=!0),r.h("div",{ref:B,key:`${Y}`,class:G,style:$.value},M)};return()=>{i.order.index=0;const M=[];let Y=0;if(l.slots.header){const D={key:`${Y++}`,ref:_,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},G=r.h("div",D,[l.slots.header()]);M.push(G)}else{const D=[];if(p.value){if(n.showMark){const P={class:{[`${d}__header-mark`]:!0}};n.markColor&&(P.style={background:n.markColor});const j=r.h("div",P);D.push(j)}const G=r.h("div",{class:{[`${d}__header-title`]:!0}},[p.value]);D.push(G)}if(l.slots.toolbar&&D.push(l.slots.toolbar()),n.showCollapse){const G=[];if(V.value){const X={class:A.value},Z=r.h("span",X,[V.value]);G.push(Z)}const P={class:F.value},j=a(n.collapseIcon,P);if(j&&G.push(j),G.length>0){const X=r.h("div",{class:{[`${d}__header-collapse`]:!0},onClick:C},G);D.push(X)}}if(D.length>0){const G={key:`${Y++}`,ref:_,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},P=r.h("div",G,D);M.push(P)}}N();const U=l.slots.default?l.slots.default():[];if(n.type==="grid"){const D=z(U,Y++,0,U.length);M.push(D)}else if(n.type==="flow"){const D=z(U,Y++,0,U.length);M.push(D)}else for(let D=0;D<U.length;D++){const G=U[D],P=z([G],Y++,D,U.length);M.push(P)}if(x.value){const D=n.tag||"div";return r.h(D,{ref:W,prop:n.name,class:{[`${d}`]:!0,"is-collapse":k.value},style:w.value},[M])}else return M}}}}const{componentName:Wl,create:Kl,scope:Yl}=Q("group"),ar=Kl(zl(Wl,Yl,(e,t)=>(e=e??Ve.ArrowUp,r.h(g.ElIcon,t,{default:()=>[r.h(e)]}))));function Gl(e){return e===window}const Ul=/matrix\((.+)\)/,lr=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(Gl(t))return{x:0,y:0};let a=0,n=0,l=t;for(;l!==null;)a+=l.offsetLeft,n+=l.offsetTop,l=l.offsetParent;let o=0,i=0,s=0,u=0;for(l=t;l!==document;){i+=l.scrollTop,o+=l.scrollLeft;const{transform:f}=window.getComputedStyle(l);if(f){const c=Ul.exec(f);if(c){let w=c[1].split(/\s*,\s*/);w.length==6&&(s+=Number(w[4]),u+=Number(w[5]))}}l=l.parentNode}return a-=o,n-=i,a+=s,n+=u,{x:a,y:n}};function Xl(e){return e===window}const ln=e=>{const t=r.unref(e);if(Xl(t)){const a=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:a,bottom:n,width:a,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class Zl{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const a=this.watchedListeners.indexOf(t);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Jl{monitorRegister=new WeakMap;watch(t,a){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o||(o=new Zl,n.addEventListener("scroll",o.listen),n===document.body&&n.addEventListener("resize",o.listen),this.monitorRegister.set(n,o)),o.add(a),n=n.parentNode}}unwatch(t,a){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o&&(o.remove(a),o.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",o.listen),n===document.body&&n.removeEventListener("resize",o.listen))),n=n.parentNode}}}const or=new Jl,ir={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},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:Ql,create:eo}=Q("price"),to=eo({props:{...ir},setup(e){const t=r.computed(()=>({[Ql]:!0})),a=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>nt(e.price)==0?"":gt(e.price,e.decimalLength,!0,ge(e.digits),e.separator)),l=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),o=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:a,intText:l,decimalText:o}}}),no=["innerHTML"],ro=["innerHTML"];function ao(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("view",{class:r.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(r.openBlock(),r.createElementBlock("view",{key:0,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,no)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--${e.size}`)},r.toDisplayString(e.intText),3),e.decimalText.length!=0?(r.openBlock(),r.createElementBlock("view",{key:1,class:r.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--decimal-${e.size}`)},r.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(r.openBlock(),r.createElementBlock("view",{key:2,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ro)):r.createCommentVNode("",!0)],2)}const on=Te(to,[["render",ao]]),{componentName:It,create:lo}=Q("hint-text"),oo=lo({components:{Price:on},props:{...ir,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const o=r.ref(!0),i=r.ref({x:0,y:0}),s=r.ref({x:0,y:0}),u=r.ref(0),f=r.ref(0),c=r.ref(e.placement),d=r.computed(()=>({[It]:!0})),w=r.ref(null),b=(V,A,F=10)=>{if(!tt||A===!1||!V)return;o.value=!0;const W=ln(e.reference);u.value=W.width,f.value=W.height,setTimeout(()=>{if(!w.value)return;const _=lr(e.reference),v=document.documentElement.clientWidth||document.body.clientWidth,y=w.value.offsetWidth,T=w.value.offsetHeight;_.y-T>=0?(c.value="top",i.value.y=_.y-T-10-4,s.value.y=T):(c.value="bottom",i.value.y=_.y+f.value+10,s.value.y=-10);const k=_.x+y-v;k<0?(i.value.x=_.x,s.value.x=20):(i.value.x=_.x-k,s.value.x=k+20),o.value=!1},F)},$=lt(()=>{b(e.message,e.visible)},10),p=r.computed(()=>e.visible&&S.value),S=r.ref(!0),m=lt(V=>{const A=V[0];A&&(S.value=A.isIntersecting)},10),x=new IntersectionObserver(m);r.watch([()=>e.message,()=>e.visible],([V,A])=>{b(V,A)}),r.onMounted(()=>{b(e.message,e.visible),or.watch(e.reference,$),x.observe(e.reference)}),r.onBeforeMount(()=>{or.unwatch(e.reference,$),x.unobserve(e.reference),x.disconnect()});const R=r.computed(()=>{const V={"min-width":ce(u.value)};return o.value?V.visibility="hidden":V.transform=`translate(${i.value.x}px, ${i.value.y}px)`,V}),B=r.computed(()=>({[`${It}__content`]:!0})),N=r.computed(()=>({})),E=r.computed(()=>({[`${It}__arrow`]:!0,[`${It}__arrow-${e.placement}`]:!0})),O=r.computed(()=>({top:`${s.value.y}px`,left:`${s.value.x}px`}));return{show:p,tipRef:w,classes:d,styles:R,textClasses:B,textStyles:N,arrowClasses:E,arrowStyles:O}}}),io={key:1,class:"text"};function so(e,t,a,n,l,o){const i=r.resolveComponent("Price");return r.openBlock(),r.createBlock(r.Transition,{name:"hint-text-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(i,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",io,r.toDisplayString(e.message),1))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])]),_:1})}const Dt=Te(oo,[["render",so]]);class sr{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}}const sn={},uo=new sr,Ye=new Map,un=e=>{if(e){const t=document.getElementById(e);Ye.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of Ye.keys()){const a=document.getElementById(t);a&&a.parentNode?.removeChild(a)}Ye.clear()}},co=e=>{const t=document.getElementById(e.id);if(t){const a=Ye.get(e.id);a?e={...sn,...a,...e}:e={...sn,...e};const n=r.createVNode(Dt,e);return r.render(n,t),e.id}},fo=e=>{e.unmount=un;let t;if(e.id){if(t=e.id,Ye.has(t))return co(e)}else t=`hinttext_${uo.get()}`;e={...sn,...e},e.id=t,Ye.set(t,e);const a=document.createElement("div");a.id=e.id;const n=r.createVNode(Dt,e);return r.render(n,a),document.body.appendChild(a),t},ho=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Rt={show(e,t,a={},n=!0){return n&&un(),ho(t),fo({...a,message:t,reference:e})},hide(e){un(e)},install(e){e.config.globalProperties.$hintText=Rt}},{componentName:ur,create:go}=Q("item"),mo=go({inheritAttrs:!0,props:{...ie,...pe},emits:["appear","disappear"],setup(e,t){const a=e.prop??t.attrs.name;ue({componentName:ur,validate:!1},a);const n=Ie(),l=Ct();Et(!1);const o=r.computed(()=>l&&n?Nt(n,!1).value:null),i=ur,s=r.ref(null),u=r.computed(()=>{const D={[i]:!0,[`${i}__gutter`]:o.value&&o.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:e.hasBorder};if(D[e.errorMarkClass]=!!W.value,D[e.warnMarkClass]=!!A.value,D[e.infoMarkClass]=!!O.value,typeof s.value=="function"){const G=s.value(a);D[G]=!0}else if(typeof s.value=="string"){const G=s.value;D[G]=!0}return D}),f=r.computed(()=>{const D={},G=l&&n?kt(n,!1):null;if(o.value&&G)if(o.value.type==="grid"){const P=Ot(G,o.value,e.span,e.offset);Object.assign(D,P)}else if(o.value.type==="flow"){const P=Vt(G,o.value,e.span,e.offset,e.width);Object.assign(D,P)}else return e.width&&(D.width=ce(e.width)),D;else e.width&&(D.width=ce(e.width));return D}),c=r.ref(null),d=r.computed({get:()=>c.value??te(e.isRequired),set:D=>{c.value=D}}),w=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),b=Se(r.toRef(e,"labelPosition"),"labelPosition",ve.Near),$=r.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),p=r.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${$.value}`]:!0})),S=r.computed(()=>({label:!0,[`label--${$.value}`]:!0})),m=Se(r.toRef(e,"labelWidth"),"labelWidth",ve.Near),x=r.computed(()=>m&&m.value?{width:ce(m.value)}:{}),R=r.computed(()=>({"label--string":!0,"label--required":d.value})),B=r.computed(()=>({content:!0,[e.contentClass]:!0})),N=r.computed(()=>({...e.contentStyle})),E=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(D){d.value=D},setErrorTip(D){E.errorTip=D},setErrorIcon(D){E.errorIcon=D},setWarnTip(D){E.warnTip=D},setWarnIcon(D){E.warnIcon=D},setInfoTip(D){E.infoTip=D},setInfoIcon(D){E.infoIcon=D},setCustomClassName(D){s.value=D}});const O=r.computed(()=>e.infoTip||E.infoTip),V=r.computed(()=>e.infoIcon||E.infoIcon),A=r.computed(()=>e.warnTip||E.warnTip),F=r.computed(()=>e.warnIcon||E.warnIcon),W=r.computed(()=>e.errorTip||E.errorTip),_=r.computed(()=>e.errorIcon||E.errorIcon),v=r.computed(()=>W.value?"error":A.value?"warn":O.value?"info":""),y=r.computed(()=>v.value.length>0),T=r.computed(()=>v.value==="error"?W.value:v.value==="warn"?A.value:v.value==="info"?O.value:""),k=r.computed(()=>v.value==="error"?_.value:v.value==="warn"?F.value:v.value==="info"?V.value:null),L=r.computed(()=>{let D={[`${i}__tip`]:!0,[`${i}__tip--${v.value}`]:!0};return v.value==="error"&&e.errorClass?D[`${e.errorClass}`]=!0:v.value==="warn"&&e.warnClass?D[`${e.warnClass}`]=!0:v.value==="info"&&e.infoClass&&(D[`${e.infoClass}`]=!0),D}),K=r.computed(()=>{let D={};return b&&b.value==="top"||!w.value?D["padding-left"]="0px":m&&m.value&&(D["padding-left"]=ce(m.value)),D}),C=()=>r.h(k.value,{width:12,height:12}),I=r.computed(()=>t.slots.fixedTip),H=r.computed(()=>({[`${i}__fixed-tip`]:!0})),q=r.ref();let z="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([D,G,P,j])=>{q.value&&(D&&!le(G)?z?Rt.show(q.value,G,{...j,id:z,type:P},!0):z=Rt.show(q.value,G,{...j,type:P},!0):Rt.hide(z))});let M=null;const Y=()=>{M||!q.value||(M=new IntersectionObserver(D=>{let G=!1;for(let P of D)if(P.intersectionRatio>0){G=!0,G&&t.emit("appear",P);break}G||t.emit("disappear")}),M.observe(q.value))},U=()=>{!M||!q.value||(M.unobserve(q.value),M=null)};return r.watch(()=>te(e.appearListen),D=>{D?Y():U()}),r.onMounted(()=>{te(e.appearListen)&&Y()}),r.onUnmounted(U),{classes:u,styles:f,mainClasses:p,hasLabel:w,labelClasses:S,labelStyles:x,labelStringClasses:R,contentClasses:B,contentStyles:N,contentRef:q,hasTip:y,mTip:T,mIcon:k,renderIcon:C,tipClasses:L,tipStyles:K,hasFixedTip:I,fixedTipClasses:H}}}),po=["prop"],yo={key:0,class:"fox-item__tip--icon"},bo={class:"fox-item__tip--text"};function wo(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),prop:e.prop},[r.createElementVNode("div",{class:r.normalizeClass(e.mainClasses)},[e.hasLabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.labelClasses),style:r.normalizeStyle(e.labelStyles)},[r.createElementVNode("div",{class:r.normalizeClass(e.labelStringClasses)},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2)],6)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref:"contentRef",class:r.normalizeClass(e.contentClasses),style:r.normalizeStyle(e.contentStyles)},[r.renderSlot(e.$slots,"prepend"),r.renderSlot(e.$slots,"default"),r.renderSlot(e.$slots,"append"),e.hasFixedTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.fixedTipClasses)},[r.renderSlot(e.$slots,"fixedTip")],2)):r.createCommentVNode("",!0)],6)],2),r.createVNode(r.Transition,{name:"fox-item__animate"},{default:r.withCtx(()=>[e.hasTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.tipClasses),style:r.normalizeStyle(e.tipStyles)},[e.mIcon?(r.openBlock(),r.createElementBlock("div",yo,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon())))])):r.createCommentVNode("",!0),r.createElementVNode("div",bo,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,po)}const de=Te(mo,[["render",wo]]);function So(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(a,n){const l=Ie(),o=Ct();Et(!1);const i=r.computed(()=>o&&l?Nt(l,!1).value:null),s=e,u=r.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:a.span==="stretch"})),f=r.computed(()=>{const c={},d=o&&l?kt(l,!1):null;if(i.value&&d)if(i.value.type==="grid"){const w=Ot(d,i.value,a.span,a.offset);Object.assign(c,w)}else if(i.value.type==="flow"){const w=Vt(d,i.value,a.span,a.offset,a.width);Object.assign(c,w)}else return a.width&&(c.width=ce(a.width)),c;else a.width&&(c.width=ce(a.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",c,n.slots.default()):r.h("div",c)}}}}const{componentName:$o,create:vo,scope:uc}=Q("slot-item"),cr=vo(So($o));function To(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(a,n){const l=e,o=r.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),i=Ie(),s=Ct();Et(!1);const u=r.computed(()=>{const f={};if(s&&i){const c=Nt(i,!1),d=kt(i,!1);if(c.value&&d)if(c.value.type==="grid"){const w=Ot(d,c.value,a.span,a.offset);Object.assign(f,w)}else if(c.value.type==="flow"){const w=Vt(d,c.value,a.span,a.offset,a.width);Object.assign(f,w)}else a.width&&(f.width=ce(a.width))}else a.width&&(f.width=ce(a.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(a.divide)for(let w=0;w<d.length;w++){if(w>0){const b=r.h("div",{class:{[`${l}__divide`]:!0}});f.push(b)}f.push(d[w])}else Reflect.apply([].push,f,d)}const c={class:o.value,style:u.value};return r.h("div",c,f)}}}}const{componentName:xo,create:Co,scope:cc}=Q("row-item"),fr=Co(To(xo)),dr={modelValue:{type:[String,Boolean,Number,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},showTooltip:{type:Boolean,default:!1}};function Eo(e,t,a){return{props:{...ie,...pe,...dr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=xe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),w=e,b=r.computed(()=>({[w]:!0,[`${w}__disabled`]:o.value,[`${w}__readonly`]:i.value})),$=v=>{d.value=v,s("update:modelValue",v),s("input",v)},p=v=>{s("change",v)};let S=ne(n,"hintText"),m=r.ref(!1);const x=v=>{let T=v.target.value;c.value=!0,le(S.value)||(m.value=!0),s("focus",T,v)},R=v=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let T=v.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),s("blur",T,v)},B=()=>{s("clear","")},N=r.ref(!1);let E=null;const O=()=>{n.showTooltip&&N.value===!1&&(E=setTimeout(()=>{N.value=!0},150))},V=()=>{E&&(clearTimeout(E),N.value=!1,E=null)},A=r.computed(()=>N.value||m.value),F=r.computed(()=>N.value?d.value:S.value),W=r.computed(()=>nt(n.unit)>0),_=r.ref();return fe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const y={...l.attrs,ref:_,class:b.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:p,onInput:$,onFocus:x,onBlur:R,onMouseover:O,onMouseleave:V},T={};l.slots.prepend&&(T.prepend=l.slots.prepend),l.slots.append&&(T.append=l.slots.append),l.slots.prefix&&(T.prefix=l.slots.prefix),l.slots.suffix?T.suffix=l.slots.suffix:W.value&&(T.suffix=()=>[n.unit]);const k=[],L=r.h(g.ElInput,y,T);k.push(L);const K={default:()=>k};l.slots.default&&(K.label=l.slots.default),l.slots.default&&(K.fixedTip=l.slots.fixedTip);const I={...me(n,dr),hintText:F.value,hintVisible:A.value,prop:`${n.prop}_item`};return r.h(a,I,K)}}}}const{componentName:No,create:ko,scope:Vo}=Q("input-item"),hr=ko(Eo(No,Vo,de));function _e(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ge(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function gr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Oo(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Io=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ee(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ae(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function Do(){const e=r.getCurrentInstance();return new Io(e.proxy)}function mr(e,t,a){const n=_e(e,t),l=_e(e,a);if(n!==l)return!1;const o=Ge(e,t),i=Ge(e,a);return o===i}function pr(e,t,a,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let i of n){const s=gr(e,i);if(Array.isArray(s)&&s.length>0){const u=pr(e,o,a,s)??[];Reflect.apply([].push,l,u)}else{let u=!1;if(a==="text")u=_e(e,i)===o;else if(a==="item")u=mr(e,i,o);else{let f=Ge(e,i);f==null&&(f=_e(e,i)),u=f===o}if(u){l.push(i);break}}}}),l}function Ro(e){return{text:e,value:e}}const yr={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"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1}};function Ao(e,t,a){return{props:{...ie,...pe,...yr},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=xe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),w=(q,z,M,Y=!0)=>{const U=pr(n,q,z,M);if(U===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],Y&&(s("update:modelValue",null),s("change",null));return}let D=!0;if(U.length!==d.value.length)D=!1;else for(let G=0;G<U.length;G++){const P=U[G],j=d.value[G];if(!mr(n,P,j)){D=!1;break}}if(!D){d.value=U;let G=[],P=[];U.forEach(X=>{G.push(Ge(n,X)),n.valueType==="text"?P.push(_e(n,X)):n.valueType==="item"?P.push(X):P.push(Ge(n,X))});let j;n.multiple?(c.value=G,j=r.toRaw(P)):(c.value=G[0]??"",j=r.toRaw(P[0]??"")),Y&&(s("update:modelValue",j),s("change",j))}},b=r.ref(null),$=r.ref(null),p=r.computed(()=>$.value??b.value??[]),S=Se(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,q=>te(q)),m=Do(),x=async(q,z)=>{if(q){const M=await m.load("select",q,z);if(M.length>0)if(typeof M[0]=="string"){let D=M.map(G=>Ro(G));b.value=D}else b.value=M;else b.value=null}};r.watch([()=>n.source,()=>n.params],([q,z])=>{x(q,z)},{immediate:!S.value});let R=!1;const B=()=>{R||(R=!0,x(n.source,n.params))};r.watch([()=>p.value,()=>n.modelValue],([q,z])=>{w(z,n.valueType,q,!1)});let N=null,E=r.ref(!1);typeof n.remoteMethod=="function"&&(N=async q=>{if(q==null){$.value=null;return}E.value=!0;try{const z=await n.remoteMethod(q);z&&($.value=z)}catch(z){$.value=null,console.error(z)}E.value=!1});let O=null;typeof n.filterMethod=="function"&&(O=async q=>{if(q==null){$.value=null;return}E.value=!0;try{const z=await n.filterMethod(q,b.value);z&&($.value=z)}catch(z){$.value=null,console.error(z)}E.value=!1});const V=r.ref(!1),A=e,F=r.computed(()=>({[A]:!0})),W=q=>{n.allowCreate?(s("update:modelValue",q),s("change",q),c.value=q):w(q,"value",p.value,!0)};let _=ne(n,"hintText"),v=r.ref(!1);const y=q=>{let M=q.target.value;V.value=!0,le(_.value)||(v.value=!0),s("focus",M,q)},T=q=>{setTimeout(()=>{v.value&&(v.value=!1),V.value=!1},0);let M=q.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),L.value||s("blur",M,q)},k=()=>{s("clear","")},L=r.ref(!1),K=q=>{L.value=q,s("visible-change",q),q||s("selected")},C=q=>{s("remove-tag",q)},I=(q,z)=>{const M=[];return q.forEach((Y,U)=>{const D=gr(n,Y);if(Array.isArray(D)&&D.length>0){const G=I(D,z),P=_e(n,Y),X={key:`${P}_${U}`,label:P};M.push(r.h(g.ElOptionGroup,X,{default:()=>G}))}else{const G=Ge(n,Y),P=_e(n,Y),j=Oo(n,Y),Z={key:`${G}_${U}`,label:P,disabled:j,value:G};if(typeof z=="function")M.push(r.h(g.ElOption,Z,{default:()=>z(Y)}));else if(n.optionType==="item"){const ee={class:{"fox-select-item__option-left":!0}},ye=r.h("span",ee,[G]),se={class:{"fox-select-item__option-right":!0}},He=r.h("span",se,[P]),va=r.h("div",{class:{"fox-select-item__option":!0}},[ye,He]);M.push(r.h(g.ElOption,Z,{default:()=>va}))}else n.optionType==="value"?M.push(r.h(g.ElOption,Z,{default:()=>[G]})):M.push(r.h(g.ElOption,Z))}}),M},H=r.ref();return fe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()}}),()=>{const z={...l.attrs,ref:H,class:F.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:o.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:k,onChange:W,onFocus:y,onBlur:T,onVisibleChange:K,onRemoveTag:C};typeof N=="function"&&(z["remote-method"]=N,z.loading=E.value),typeof O=="function"&&(z["filter-method"]=O,z.loading=E.value);const M={};l.slots.prefix&&(M.prefix=l.slots.prefix),l.slots.empty&&(M.empty=l.slots.empty),l.slots.options?M.default=l.slots.options:M.default=()=>I(p.value,l.slots.option);const Y=[],U=r.h(g.ElSelect,z,M);Y.push(U);const D={default:()=>Y};l.slots.default&&(D.label=l.slots.default),l.slots.fixedTip&&(D.fixedTip=l.slots.fixedTip);const P={...me(n,yr),hintText:_.value,hintVisible:v.value,prop:`${n.prop??l.attrs.name}_item`};return S.value&&(P["appear-listen"]=!0,P.onAppear=B),r.h(a,P,D)}}}}const{componentName:Bo,create:qo,scope:Fo}=Q("select-item"),br=qo(Ao(Bo,Fo,de));var De=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Re(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){var a=1e3,n=6e4,l=36e5,o="millisecond",i="second",s="minute",u="hour",f="day",c="week",d="month",w="quarter",b="year",$="date",p="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,x={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("_")},R=function(v,y,T){var k=String(v);return!k||k.length>=y?v:""+Array(y+1-k.length).join(T)+v},B={s:R,z:function(v){var y=-v.utcOffset(),T=Math.abs(y),k=Math.floor(T/60),L=T%60;return(y<=0?"+":"-")+R(k,2,"0")+":"+R(L,2,"0")},m:function v(y,T){if(y.date()<T.date())return-v(T,y);var k=12*(T.year()-y.year())+(T.month()-y.month()),L=y.clone().add(k,d),K=T-L<0,C=y.clone().add(k+(K?-1:1),d);return+(-(k+(T-L)/(K?L-C:C-L))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:d,y:b,w:c,d:f,D:$,h:u,m:s,s:i,ms:o,Q:w}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},N="en",E={};E[N]=x;var O=function(v){return v instanceof W},V=function v(y,T,k){var L;if(!y)return N;if(typeof y=="string"){var K=y.toLowerCase();E[K]&&(L=K),T&&(E[K]=T,L=K);var C=y.split("-");if(!L&&C.length>1)return v(C[0])}else{var I=y.name;E[I]=y,L=I}return!k&&L&&(N=L),L||!k&&N},A=function(v,y){if(O(v))return v.clone();var T=typeof y=="object"?y:{};return T.date=v,T.args=arguments,new W(T)},F=B;F.l=V,F.i=O,F.w=function(v,y){return A(v,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var W=function(){function v(T){this.$L=V(T.locale,null,!0),this.parse(T)}var y=v.prototype;return y.parse=function(T){this.$d=function(k){var L=k.date,K=k.utc;if(L===null)return new Date(NaN);if(F.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var C=L.match(S);if(C){var I=C[2]-1||0,H=(C[7]||"0").substring(0,3);return K?new Date(Date.UTC(C[1],I,C[3]||1,C[4]||0,C[5]||0,C[6]||0,H)):new Date(C[1],I,C[3]||1,C[4]||0,C[5]||0,C[6]||0,H)}}return new Date(L)}(T),this.$x=T.x||{},this.init()},y.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},y.$utils=function(){return F},y.isValid=function(){return this.$d.toString()!==p},y.isSame=function(T,k){var L=A(T);return this.startOf(k)<=L&&L<=this.endOf(k)},y.isAfter=function(T,k){return A(T)<this.startOf(k)},y.isBefore=function(T,k){return this.endOf(k)<A(T)},y.$g=function(T,k,L){return F.u(T)?this[k]:this.set(L,T)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(T,k){var L=this,K=!!F.u(k)||k,C=F.p(T),I=function(G,P){var j=F.w(L.$u?Date.UTC(L.$y,P,G):new Date(L.$y,P,G),L);return K?j:j.endOf(f)},H=function(G,P){return F.w(L.toDate()[G].apply(L.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(P)),L)},q=this.$W,z=this.$M,M=this.$D,Y="set"+(this.$u?"UTC":"");switch(C){case b:return K?I(1,0):I(31,11);case d:return K?I(1,z):I(0,z+1);case c:var U=this.$locale().weekStart||0,D=(q<U?q+7:q)-U;return I(K?M-D:M+(6-D),z);case f:case $:return H(Y+"Hours",0);case u:return H(Y+"Minutes",1);case s:return H(Y+"Seconds",2);case i:return H(Y+"Milliseconds",3);default:return this.clone()}},y.endOf=function(T){return this.startOf(T,!1)},y.$set=function(T,k){var L,K=F.p(T),C="set"+(this.$u?"UTC":""),I=(L={},L[f]=C+"Date",L[$]=C+"Date",L[d]=C+"Month",L[b]=C+"FullYear",L[u]=C+"Hours",L[s]=C+"Minutes",L[i]=C+"Seconds",L[o]=C+"Milliseconds",L)[K],H=K===f?this.$D+(k-this.$W):k;if(K===d||K===b){var q=this.clone().set($,1);q.$d[I](H),q.init(),this.$d=q.set($,Math.min(this.$D,q.daysInMonth())).$d}else I&&this.$d[I](H);return this.init(),this},y.set=function(T,k){return this.clone().$set(T,k)},y.get=function(T){return this[F.p(T)]()},y.add=function(T,k){var L,K=this;T=Number(T);var C=F.p(k),I=function(z){var M=A(K);return F.w(M.date(M.date()+Math.round(z*T)),K)};if(C===d)return this.set(d,this.$M+T);if(C===b)return this.set(b,this.$y+T);if(C===f)return I(1);if(C===c)return I(7);var H=(L={},L[s]=n,L[u]=l,L[i]=a,L)[C]||1,q=this.$d.getTime()+T*H;return F.w(q,this)},y.subtract=function(T,k){return this.add(-1*T,k)},y.format=function(T){var k=this,L=this.$locale();if(!this.isValid())return L.invalidDate||p;var K=T||"YYYY-MM-DDTHH:mm:ssZ",C=F.z(this),I=this.$H,H=this.$m,q=this.$M,z=L.weekdays,M=L.months,Y=function(P,j,X,Z){return P&&(P[j]||P(k,K))||X[j].slice(0,Z)},U=function(P){return F.s(I%12||12,P,"0")},D=L.meridiem||function(P,j,X){var Z=P<12?"AM":"PM";return X?Z.toLowerCase():Z},G={YY:String(this.$y).slice(-2),YYYY:this.$y,M:q+1,MM:F.s(q+1,2,"0"),MMM:Y(L.monthsShort,q,M,3),MMMM:Y(M,q),D:this.$D,DD:F.s(this.$D,2,"0"),d:String(this.$W),dd:Y(L.weekdaysMin,this.$W,z,2),ddd:Y(L.weekdaysShort,this.$W,z,3),dddd:z[this.$W],H:String(I),HH:F.s(I,2,"0"),h:U(1),hh:U(2),a:D(I,H,!0),A:D(I,H,!1),m:String(H),mm:F.s(H,2,"0"),s:String(this.$s),ss:F.s(this.$s,2,"0"),SSS:F.s(this.$ms,3,"0"),Z:C};return K.replace(m,function(P,j){return j||G[P]||C.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(T,k,L){var K,C=F.p(k),I=A(T),H=(I.utcOffset()-this.utcOffset())*n,q=this-I,z=F.m(this,I);return z=(K={},K[b]=z/12,K[d]=z,K[w]=z/3,K[c]=(q-H)/6048e5,K[f]=(q-H)/864e5,K[u]=q/l,K[s]=q/n,K[i]=q/a,K)[C]||q,L?z:F.a(z)},y.daysInMonth=function(){return this.endOf(d).$D},y.$locale=function(){return E[this.$L]},y.locale=function(T,k){if(!T)return this.$L;var L=this.clone(),K=V(T,k,!0);return K&&(L.$L=K),L},y.clone=function(){return F.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},v}(),_=W.prototype;return A.prototype=_,[["$ms",o],["$s",i],["$m",s],["$H",u],["$W",f],["$M",d],["$y",b],["$D",$]].forEach(function(v){_[v[1]]=function(y){return this.$g(y,v[0],v[1])}}),A.extend=function(v,y){return v.$i||(v(y,W,A),v.$i=!0),A},A.locale=V,A.isDayjs=O,A.unix=function(v){return A(1e3*v)},A.en=E[N],A.Ls=E,A.p={},A})})(wr);var Lo=wr.exports;const Ne=Re(Lo);var Sr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(p){return(p=+p)+(p>68?1900:2e3)},f=function(p){return function(S){this[p]=+S}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var m=S.match(/([+-]|\d\d)/g),x=60*m[1]+(+m[2]||0);return x===0?0:m[0]==="+"?-x:x}(p)}],d=function(p){var S=s[p];return S&&(S.indexOf?S:S.s.concat(S.f))},w=function(p,S){var m,x=s.meridiem;if(x){for(var R=1;R<=24;R+=1)if(p.indexOf(x(R,0,S))>-1){m=R>12;break}}else m=p===(S?"pm":"PM");return m},b={A:[i,function(p){this.afternoon=w(p,!1)}],a:[i,function(p){this.afternoon=w(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[l,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[o,f("seconds")],ss:[o,f("seconds")],m:[o,f("minutes")],mm:[o,f("minutes")],H:[o,f("hours")],h:[o,f("hours")],HH:[o,f("hours")],hh:[o,f("hours")],D:[o,f("day")],DD:[l,f("day")],Do:[i,function(p){var S=s.ordinal,m=p.match(/\d+/);if(this.day=m[0],S)for(var x=1;x<=31;x+=1)S(x).replace(/\[|\]/g,"")===p&&(this.day=x)}],M:[o,f("month")],MM:[l,f("month")],MMM:[i,function(p){var S=d("months"),m=(d("monthsShort")||S.map(function(x){return x.slice(0,3)})).indexOf(p)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[i,function(p){var S=d("months").indexOf(p)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,f("year")],YY:[l,function(p){this.year=u(p)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function $(p){var S,m;S=p,m=s&&s.formats;for(var x=(p=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,F,W){var _=W&&W.toUpperCase();return F||m[W]||a[W]||m[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,y,T){return y||T.slice(1)})})).match(n),R=x.length,B=0;B<R;B+=1){var N=x[B],E=b[N],O=E&&E[0],V=E&&E[1];x[B]=V?{regex:O,parser:V}:N.replace(/^\[|\]$/g,"")}return function(A){for(var F={},W=0,_=0;W<R;W+=1){var v=x[W];if(typeof v=="string")_+=v.length;else{var y=v.regex,T=v.parser,k=A.slice(_),L=y.exec(k)[0];T.call(F,L),A=A.replace(L,"")}}return function(K){var C=K.afternoon;if(C!==void 0){var I=K.hours;C?I<12&&(K.hours+=12):I===12&&(K.hours=0),delete K.afternoon}}(F),F}}return function(p,S,m){m.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var x=S.prototype,R=x.parse;x.parse=function(B){var N=B.date,E=B.utc,O=B.args;this.$u=E;var V=O[1];if(typeof V=="string"){var A=O[2]===!0,F=O[3]===!0,W=A||F,_=O[2];F&&(_=O[2]),s=this.$locale(),!A&&_&&(s=m.Ls[_]),this.$d=function(k,L,K){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*k);var C=$(L)(k),I=C.year,H=C.month,q=C.day,z=C.hours,M=C.minutes,Y=C.seconds,U=C.milliseconds,D=C.zone,G=new Date,P=q||(I||H?1:G.getDate()),j=I||G.getFullYear(),X=0;I&&!H||(X=H>0?H-1:G.getMonth());var Z=z||0,ee=M||0,ye=Y||0,se=U||0;return D?new Date(Date.UTC(j,X,P,Z,ee,ye,se+60*D.offset*1e3)):K?new Date(Date.UTC(j,X,P,Z,ee,ye,se)):new Date(j,X,P,Z,ee,ye,se)}catch{return new Date("")}}(N,V,E),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),W&&N!=this.format(V)&&(this.$d=new Date("")),s={}}else if(V instanceof Array)for(var v=V.length,y=1;y<=v;y+=1){O[1]=V[y-1];var T=m.apply(this,O);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}y===v&&(this.$d=new Date(""))}else R.call(this,B)}}})})(Sr);var Mo=Sr.exports;const jo=Re(Mo);var $r={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){return function(a,n,l){var o=n.prototype,i=o.format;l.en.ordinal=function(s){var u=["th","st","nd","rd"],f=s%100;return"["+s+(u[(f-20)%10]||u[f]||u[0])+"]"},o.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(w){switch(w){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),w==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),w==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),w==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return w}});return i.bind(this)(d)}}})})($r);var _o=$r.exports;const Po=Re(_o);var vr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){return function(a,n,l){var o=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,w,b,$,p){var S=d.name?d:d.$locale(),m=i(S[w]),x=i(S[b]),R=m||x.map(function(N){return N.slice(0,$)});if(!p)return R;var B=S.weekStart;return R.map(function(N,E){return R[(E+(B||0))%7]})},u=function(){return l.Ls[l.locale()]},f=function(d,w){return d.formats[w]||function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,p,S){return p||S.slice(1)})}(d.formats[w.toUpperCase()])},c=function(){var d=this;return{months:function(w){return w?w.format("MMMM"):s(d,"months")},monthsShort:function(w){return w?w.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):s(d,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return f(d.$locale(),w)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},l.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(w){return f(d,w)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return s(u(),"months")},l.monthsShort=function(){return s(u(),"monthsShort","months",3)},l.weekdays=function(d){return s(u(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(vr);var Ho=vr.exports;const zo=Re(Ho);var Tr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){var a="week",n="year";return function(l,o,i){var s=o.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(f),d=i(this).endOf(a);if(c.isBefore(d))return 1}var w=i(this).startOf(n).date(f).startOf(a).subtract(1,"millisecond"),b=this.diff(w,a,!0);return b<0?i(this).startOf("week").week():Math.ceil(b)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Tr);var Wo=Tr.exports;const Ko=Re(Wo);var xr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){return function(a,n){n.prototype.weekYear=function(){var l=this.month(),o=this.week(),i=this.year();return o===1&&l===11?i+1:l===0&&o>=52?i-1:i}}})})(xr);var Yo=xr.exports;const Go=Re(Yo);var Cr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){return function(a,n,l){n.prototype.dayOfYear=function(o){var i=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return o==null?i:this.add(o-i,"day")}}})})(Cr);var Uo=Cr.exports;const Xo=Re(Uo);var Er={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){return function(a,n){n.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})(Er);var Zo=Er.exports;const Jo=Re(Zo);var Nr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){return function(a,n){n.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(Nr);var Qo=Nr.exports;const ei=Re(Qo);Ne.extend(zo),Ne.extend(Po),Ne.extend(jo),Ne.extend(Ko),Ne.extend(Go),Ne.extend(Xo),Ne.extend(Jo),Ne.extend(ei);const st={format(e,t){return Ne(e).format(t)},parser(e,t){return Ne(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,a){const l=new Date(e+"/"+t+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const a=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,n,l].join(t)},getDay(e,t){e=e||0;let a=t??new Date;const n=e*(1e3*60*60*24);return a=new Date(a.getTime()+n),this.date2Str(a)},compareDate(e,t){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(a>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,a==n},getMonthWeek:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a));let o=l.getDay(),i=l.getDate(),s=6-o;return n!==0&&(o=o==0?7:o,s=7-o),Math.ceil((i+s)/7)},getYearWeek:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a)),o=new Date(Number(e),0,1),i=Math.round((l.valueOf()-o.valueOf())/864e5);let s=l.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a)),o=l.getTime();let i=l.getDay();if(n===0){const u=o-i*864e5,f=o+(6-i)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=o-(i-1)*s,f=o+(7-i)*s,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=st.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=st.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,a){const n=new Date(new Date(t).setDate(t.getDate()+a)),l=e.getTime(),o=n.getTime(),i=t.getTime();return o>i?l>=i&&l<=o:l>=o&&l<=i},inScope4Month(e,t,a){const n=new Date(new Date(t).setMonth(t.getMonth()+a)),l=e.getTime(),o=n.getTime(),i=t.getTime();return o>i?l>=i&&l<=o:l>=o&&l<=i}},kr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1}},Vr={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1}};function ti(e,t,a){return{props:{...ie,...pe,...kr,...Vr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=xe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),w=e,b=r.computed(()=>({[`${w}__input`]:!0})),$=y=>{d.value=y,s("update:modelValue",y),s("change",y)};let p=ne(n,"hintText"),S=r.ref(!1);const m=y=>{let k=y.target.value;c.value=!0,le(p.value)||(S.value=!0),s("focus",k,y)},x=y=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let k=y.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),s("blur",k,y)},R=()=>{s("clear","")},B=y=>{s("calendar-change",y)},N=(y,T,k)=>{s("panel-change",y,T,k)},E=y=>{s("visible-change",y)},O=Se(r.computed(()=>n.longTermValue),"longTermText",ve.Near),V=Se(r.computed(()=>n.longTermValue),"longTermValue",ve.Near);let A=null;const F=r.ref(te(n.longTerm)),W=y=>{if(F.value=y,s("update:longTerm",y),y){let T="";Array.isArray(V.value)?T=V.value.map((k,L)=>k||(Array.isArray(d.value)?d.value[L]:n.valueFormat?st.format(new Date,n.valueFormat):new Date)):T=V.value,A=d.value,s("update:modelValue",T)}else s("update:modelValue",A)},_=te(n.isLongTerm);if(_){const y=()=>{if(F.value===!0){let T="";Array.isArray(V.value)?T=V.value.map((k,L)=>k||(Array.isArray(d.value)?d.value[L]:n.valueFormat?st.format(new Date,n.valueFormat):new Date)):T=V.value,A=d.value,s("update:modelValue",T)}else Be(V.value,d.value)&&(F.value=!0)};y(),r.watch([()=>n.longTerm],([T])=>{F.value!==T&&y()})}const v=r.ref();return fe({focus:()=>{v?.value.focus()},blur:()=>{v?.value.blur()},handleOpen:()=>{v?.value.handleOpen()},handleClose:()=>{v?.value.handleClose()}}),()=>{const T={...l.attrs,ref:v,class:b.value,placeholder:f.placeholder.value,disabled:o.value||F.value,readonly:i.value,modelValue:d.value,valueFormat:n.valueFormat,"onUpdate:modelValue":$,onClear:R,onFocus:m,onBlur:x,onCalendarChange:B,onPanelChange:N,onVisibleChange:E},k={};l.slots["range-separator"]&&(k["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(k.default=l.slots.cell);const L=[],K=r.h(g.ElDatePicker,T,k);L.push(K);const C={default:()=>L};if(l.slots.default&&(C.label=l.slots.default),l.slots.fixedTip&&(C.fixedTip=l.slots.fixedTip),_){const z={label:O.value,disabled:i.value||o.value,modelValue:F.value,"onUpdate:modelValue":W},M=r.h(g.ElCheckbox,z),Y=r.h("div",{class:{[`${w}__append`]:!0}},[M]);C.append=()=>Y}const H={...me(n,kr,Vr),class:{[`${w}__wrapper`]:!0,"has-append":_},hintText:p.value,hintVisible:S.value,prop:`${n.prop}_item`};return r.h(a,H,C)}}}}const{componentName:ni,create:ri,scope:ai}=Q("date-item"),Or=ri(ti(ni,ai,de)),Ir={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function li(e,t,a){return{props:{...ie,...pe,...Ir},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=xe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),w=e,b=r.computed(()=>({[w]:!0})),$=E=>{d.value=E,s("update:modelValue",E),s("change",E)};let p=ne(n,"hintText"),S=r.ref(!1);const m=E=>{let V=E.target.value;c.value=!0,le(p.value)||(S.value=!0),s("focus",V,E)},x=E=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let V=E.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),s("blur",V,E)},R=()=>{s("clear","")},B=E=>{s("visible-change",E)},N=r.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},handleOpen:()=>{N?.value.handleOpen()},handleClose:()=>{N?.value.handleClose()}}),()=>{const O={...l.attrs,ref:N,class:b.value,placeholder:f.placeholder.value,disabled:o.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":$,onClear:R,onFocus:m,onBlur:x,onVisibleChange:B},V={},A=[],F=r.h(g.ElTimePicker,O,V);A.push(F);const W={default:()=>A};l.slots.default&&(W.label=l.slots.default),l.slots.fixedTip&&(W.fixedTip=l.slots.fixedTip);const v={...me(n,Ir),hintText:p.value,hintVisible:S.value,prop:`${n.prop}_item`};return r.h(a,v,W)}}}}const{componentName:oi,create:ii,scope:si}=Q("time-item"),Dr=ii(li(oi,si,de)),Rr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ui(e,t,a){return{props:{...ie,...pe,...Rr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=xe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),w=e,b=r.computed(()=>({[w]:!0})),$=N=>{d.value=N,s("update:modelValue",N),s("change",N)};let p=ne(n,"hintText"),S=r.ref(!1);const m=N=>{let O=N.target.value;c.value=!0,le(p.value)||(S.value=!0),s("focus",O,N)},x=N=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let O=N.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),s("blur",O,N)},R=()=>{s("clear","")},B=r.ref();return fe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const E={...l.attrs,ref:B,class:b.value,placeholder:f.placeholder.value,disabled:o.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":$,onClear:R,onFocus:m,onBlur:x},O={},V=[],A=r.h(g.ElTimeSelect,E,O);V.push(A);const F={default:()=>V};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);const _={...me(n,Rr),hintText:p.value,hintVisible:S.value,prop:`${n.prop}_item`};return r.h(a,_,F)}}}}const{componentName:ci,create:fi,scope:di}=Q("time-select-item"),Ar=fi(ui(ci,di,de));function Br(e,t=0){let a=`${e}`,n=a.indexOf(".");if(n==-1)return a;let l=n;for(let o=a.length-1;o>=n;o--)if(a.charAt(o)!="0"){l=o;break}return l-n<t?l=n+t+1:l!=n&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function qr(e,t,a=20){if(typeof t=="string"&&(t=ge(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Sn(`${e}`,`${t}`);return Br(n)}else{let n=Pt(`${e}`,$n(`${t}`),20);return Br(n)}}function hi(e,t=-1,a=!1,n=3,l=","){return gt(e,t,a,n,l)}function Fr(e,t,a,n,l=!0){if(e=="")return"";if(e=vn(e),t=ge(t),t==1)return e;if(n)e=qr(e,t),a&&(e=="0"&&l?e=`${e}.`.padEnd(ge(a)+2,"0"):e=Pt(e,1,ge(a)));else{let o=-1*t;e=qr(e,o)}return e}function Lr(e,t){let a={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=te(t.minInclude),l=Ht(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let o="请输入不小于 {0} 的数值";a.message=o.replace("{0}",t.min),a.minValid=!1}}if(t.max!=null){let n=te(t.maxInclude),l=Ht(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Mr={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 gi(e,t,a){return{props:{...ie,...pe,...Mr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),u=r.ref(!1),f=ne(n,"modelValue"),c=r.ref("");r.watch([()=>f.value,()=>n.rates,()=>n.precision],([v,y,T])=>{if(le(v)){c.value="";return}const k=Fr(v,y,T,!1);c.value!==k&&(c.value=k)},{immediate:!0});const d=r.computed(()=>{let v="";return u.value&&(v=c.value),v}),{t:w}=xe.useFoxI18n(t),b=r.computed(()=>{let v=n.placeholder??"";return!u.value&&!le(c.value)?v=hi(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):v=w(["placeholder",v]),v}),$=e,p=r.computed(()=>({[$]:!0,[`${$}__disabled`]:o.value,[`${$}__placeholder`]:c.value.length>0})),S=Se(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:S.value??"right"});const m=r.ref(""),x=r.computed(()=>{let v=m.value;return le(v)&&(v=n.errorTip??""),v}),R=r.ref(""),B=r.ref(!1),N=(v,y)=>{if(v=`${v}`,le(v)){c.value="",f.value="",y.forEach(T=>{s(T,"")}),te(n.showTip)&&B.value&&(B.value=!1);return}if(v.length>=2){let T=v;if(T.charAt(0)=="-"&&(T=T.substring(1)),T.length>=2&&T.charAt(0)=="0"&&T.charAt(1)!="."){r.triggerRef(c);return}}if(v!="-"){if(!On(v)){r.triggerRef(c);return}if(n.integerLength!=-1&&In(v)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Dn(v)>Number(n.decimalLength)){r.triggerRef(c);return}let T=Lr(v,n);if(T.maxValid===!1){m.value=T.message,r.triggerRef(c);return}}else if(n.min!=null&&ge(n.min)>=0){r.triggerRef(c);return}R.value=v,te(n.showTip)&&(B.value=v.length>0),c.value=v,f.value=Fr(v,n.rates,n.precision,!0),y.forEach(T=>{s(T,f.value)})},E=v=>{N(v,["update:modelValue","input"])},O=v=>{N(v,["update:modelValue","change"])},V=v=>{if(u.value=!0,te(n.showTip)){let y=c.value;le(y)&&(y=n.hintText),le(y)||(R.value=y,B.value=!0)}m.value="",s("focus",f.value,v)},A=v=>{if(setTimeout(()=>{u.value=!1,te(n.showTip)&&B.value===!0&&(B.value=!1)},0),!le(c.value)){let y=Lr(c.value,n);if(y.minValid===!1||y.maxValid===!1){m.value=y.message;return}}s("update:modelValue",f.value,v),s("blur",f.value,v)},F=()=>{s("clear","")},W=r.computed(()=>nt(n.unit)>0),_=r.ref();return fe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const y={...l.attrs,ref:_,class:p.value,type:"digit",maxlength:n.maxLength,placeholder:b.value,clearable:n.clearable,disabled:o.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:F,onInput:E,onChange:O,onFocus:V,onBlur:A},T={};l.slots.prepend&&(T.prepend=l.slots.prepend),l.slots.append&&(T.append=l.slots.append),l.slots.prefix&&(T.prefix=l.slots.prefix),l.slots.suffix?T.suffix=l.slots.suffix:W.value&&(T.suffix=()=>[n.unit]);const k=[],L=r.h(g.ElInput,y,T);k.push(L);const K={default:()=>k};l.slots.default&&(K.label=l.slots.default),l.slots.fixedTip&&(K.fixedTip=l.slots.fixedTip);const I={...me(n,Mr),errorTip:x.value,hintText:R.value,hintVisible:B.value,hintType:"number",prop:`${n.prop}_item`};return r.h(a,I,K)}}}}const{componentName:mi,create:pi,scope:yi}=Q("money-item"),jr=pi(gi(mi,yi,de)),_r={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 bi(e,t,a){return{props:{...ie,...pe,..._r},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=xe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),w=e,b=r.computed(()=>({[w]:!0,[`${w}__append`]:E.value})),$=r.computed(()=>({[`${w}__unit`]:!0})),p=V=>{d.value=V,s("update:modelValue",V),s("input",V)},S=V=>{s("change",V)};let m=ne(n,"hintText"),x=r.ref(!1);const R=V=>{let F=V.target.value;c.value=!0,le(m.value)||(x.value=!0),s("focus",F,V)},B=V=>{setTimeout(()=>{x.value&&(x.value=!1),c.value=!1},0);let F=V.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),s("blur",F,V)},N=()=>{s("clear","")},E=r.computed(()=>nt(n.unit)>0),O=r.ref();return fe({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()}}),()=>{const A={...l.attrs,ref:O,class:b.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:N,onChange:S,onInput:p,onFocus:R,onBlur:B},F={},W=[],_=r.h(g.ElInputNumber,A,F);W.push(_);const v={default:()=>W};l.slots.default&&(v.label=l.slots.default),l.slots.fixedTip&&(v.fixedTip=l.slots.fixedTip);const T={...me(n,_r),hintText:m.value,hintVisible:x.value,prop:`${n.prop}_item`};if(l.slots.append)v.append=l.slots.append;else if(E.value){const L={class:$.value},K=r.h("div",L,[n.unit]);v.append=()=>K}return r.h(a,T,v)}}}}const{componentName:wi,create:Si,scope:$i}=Q("input-number-item"),Pr=Si(bi(wi,$i,de));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Pe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function vi(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Ti=class{proxy;constructor(t){this.proxy=t}async load(t,a,n,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n,l);const o=Ee(this.proxy,t);return o===null?(console.error(`${t} component not found api function`),[]):(Ae(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await o(a,n,l))}};function xi(){const e=r.getCurrentInstance();return new Ti(e.proxy)}function cn(e,t,a){const n=Ue(e,t),l=Ue(e,a);if(n!==l)return!1;const o=Pe(e,t),i=Pe(e,a);return o===i}function Hr(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];let o=n;for(let i=0;Array.isArray(o)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=Hr(e,s,a,n);l.push(u)}else{let u=!1;for(let f of o){if(a==="text")u=Ue(e,f)===s;else if(a==="item")u=cn(e,f,s);else{let c=Pe(e,f);c==null&&(c=Ue(e,f)),u=c===s}if(u){l.push(f),o=vi(e,f);break}}if(!u)break}}return l}function Ci(e){return{text:e,value:e}}const zr={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},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"}};function Ei(e,t,a){return{props:{...ie,...pe,...zr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=xe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),w=(I,H,q,z=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===I)return;c.value=I;const U=r.toRaw(I);if(z){const D=C?.value.getCheckedNodes();if(D)if(n.multiple){const G=[];D.forEach(P=>{const X=(P.pathNodes??[]).map(Z=>Z.data);G.push(X)}),s("update:pathNodes",G)}else{const P=(D[0]?.pathNodes??[]).map(j=>j.data);s("update:pathNodes",P)}s("update:modelValue",U),s("change",U)}}const M=Hr(n,I,H,q);if(M===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,z&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}let Y=!0;if(M.length!==d.value.length)Y=!1;else for(let U=0;U<M.length;U++){const D=M[U],G=d.value[U];if(Array.isArray(D)){if(!Array.isArray(G)||D.length!==G.length)Y=!1;else for(let P=0;P<D.length;P++)if(!cn(n,D[P],G[P])){Y=!1;break}}else cn(n,D,G)||(Y=!1);if(!Y)break}if(!Y){d.value=M;let U=[],D=[];M.forEach(P=>{if(Array.isArray(P)){let j=[],X=[];for(let Z of P)j.push(Pe(n,Z)),n.valueType==="text"?X.push(Ue(n,Z)):n.valueType==="item"?X.push(Z):X.push(Pe(n,Z));U.push(j),D.push(X)}else U.push(Pe(n,P)),n.valueType==="text"?D.push(Ue(n,P)):n.valueType==="item"?D.push(P):D.push(Pe(n,P))}),c.value=U;const G=r.toRaw(D);z&&(s("update:pathNodes",M),s("update:modelValue",G),s("change",G))}},b=r.ref([]),$=Se(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,I=>te(I)),p=xi(),S=async(I,H)=>{if(I){const q=await p.load("cascader",I,H);if(q.length>0)if(typeof q[0]=="string"){let Y=q.map(U=>Ci(U));b.value=Y}else b.value=q}};r.watch([()=>n.source,()=>n.params],async([I,H])=>{S(I,H)},{immediate:!($.value||n.lazy)});let m=!1;const x=()=>{m||(m=!0,S(n.source,n.params))};r.watch([()=>b.value,()=>n.modelValue],([I,H])=>{w(H,n.valueType,I,!1)}),n.lazy&&w(n.modelValue,"value",[],!1);let R=null,B=r.ref(!1);typeof n.remoteMethod=="function"&&(R=async I=>{if(I!=null){B.value=!0;try{const H=await n.remoteMethod(I);b.value=H}catch(H){console.error(H)}B.value=!1}});const N=r.ref(!1),E=e,O=r.computed(()=>({[E]:!0})),V=r.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),n.lazy&&(I.lazy=!0,I.lazyLoad=async(H,q)=>{const z=await p.load("cascader",n.source,H,!0);q(z)}),I}),A=I=>{n.allowCreate?(s("update:modelValue",I),s("change",I),c.value=I):w(I,"value",b.value,!0)};let F=ne(n,"hintText"),W=r.ref(!1);const _=I=>{let q=I.target.value;N.value=!0,le(F.value)||(W.value=!0),s("focus",q,I)},v=I=>{setTimeout(()=>{W.value&&(W.value=!1),N.value=!1},0);let q=I.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),T.value||s("blur",q,I)},y=()=>{s("clear","")},T=r.ref(!1),k=I=>{T.value=I,s("visible-change",I),I||s("selected")},L=I=>{s("remove-tag",I)},K=I=>{s("expand-change",I)},C=r.ref();return fe({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},getCheckedNodes:()=>C?.value.getCheckedNodes()}),()=>{const H={...l.attrs,ref:C,class:O.value,props:V.value,clearable:n.clearable,placeholder:f.placeholder.value,disabled:o.value||i.value,options:b.value,modelValue:c.value,onClear:y,onChange:A,onFocus:_,onBlur:v,onVisibleChange:k,onRemoveTag:L,expandChange:K};typeof R=="function"&&(H["remote-method"]=R,H.loading=B.value);const q={};l.slots.option&&(q.default=l.slots.option),l.slots.empty&&(q.empty=l.slots.empty);const z=[],M=r.h(g.ElCascader,H,q);z.push(M);const Y={default:()=>z};l.slots.default&&(Y.label=l.slots.default),l.slots.fixedTip&&(Y.fixedTip=l.slots.fixedTip);const D={...me(n,zr),hintText:F.value,hintVisible:W.value,prop:`${n.prop??l.attrs.name}_item`};return $.value&&!n.lazy&&(D["appear-listen"]=!0,D.onAppear=x),r.h(a,D,Y)}}}}const{componentName:Ni,create:ki,scope:Vi}=Q("cascader-item"),Wr=ki(Ei(Ni,Vi,de)),Kr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Oi(e,t,a){return{props:{...ie,...pe,...Kr},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=xe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),w=e,b=r.computed(()=>({[w]:!0})),$=E=>{d.value=E,s("update:modelValue",E),s("input",E)},p=E=>{s("change",E)};let S=ne(n,"hintText"),m=r.ref(!1);const x=E=>{let V=E.target.value;c.value=!0,le(S.value)||(m.value=!0),s("focus",V,E)},R=E=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let V=E.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),s("blur",V,E)},B=()=>{s("clear","")},N=r.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()}}),()=>{const O={...l.attrs,ref:N,class:b.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:i.value,modelValue:d.value,onClear:B,onChange:p,onInput:$,onFocus:x,onBlur:R},V={};l.slots.prepend&&(V.prepend=l.slots.prepend),l.slots.append&&(V.append=l.slots.append),l.slots.prefix&&(V.prefix=l.slots.prefix),l.slots.suffix&&(V.suffix=l.slots.suffix),l.slots.option&&(V.default=l.slots.option);const A=[],F=r.h(g.ElAutocomplete,O,V);A.push(F);const W={default:()=>A};l.slots.default&&(W.label=l.slots.default),l.slots.fixedTip&&(W.fixedTip=l.slots.fixedTip);const v={...me(n,Kr),hintText:S.value,hintVisible:m.value,prop:`${n.prop}_item`};return r.h(a,v,W)}}}}const{componentName:Ii,create:Di,scope:Ri}=Q("autocomplete-item"),Yr=Di(Oi(Ii,Ri,de));function Ai(e,t,a,n,l){let o=[];Array.isArray(e)?o=e:o=[e];const i=[],s=t[0];if(Array.isArray(s))for(let u=0;u<t.length&&u<o.length;u++){let f=t[u],c=o[u];const d=f.find(w=>w[n]===c);if(!d)break;i.push(d[a])}else{let u=t;for(let f=0;u&&f<o.length;f++){let c=o[f],d=u.find(w=>w[n]===c);if(!d)break;i.push(d[a]),u=d[l]}}return i}let Bi=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ee(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ae(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function qi(){const e=r.getCurrentInstance();return new Bi(e.proxy)}const Gr={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:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Fi(e,t){return{props:{...Gr},setup(a,{attrs:n,slots:l}){const o=qi(),i=r.ref([]);r.watch([()=>a.source,()=>a.params],async([f,c])=>{i.value=await o.load(a.sourceType,f,c)},{immediate:!0});const s=r.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=Ai(a.modelValue,i.value,a.textKey,a.valueKey,a.childrenKey);return f.length==0?a.emptyText??"":f.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${f[0]}`:f[0]:f.join(a.separator)}),u=a.resolveTag?r.resolveComponent(a.tag):a.tag;return()=>{const f={...n};return l.default?l.default({text:s.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===s.value?r.h(a.emptyTag??"span",{...n,class:a.emptyClass},s.value):r.h(u,f,{default:()=>s.value}):r.h(u,f,s.value)}}}}const{componentName:fc,create:Li,scope:dc}=Q("mapping"),At=Li(Fi());function Mi(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],i=0,s=o.indexOf("["),u=s==-1?-1:o.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=o.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=o.substring(0,s);n=n[d][c]}else n=n[c];i++}s=o.indexOf("[",u),u=s==-1?-1:o.indexOf("]",s)}i===0&&(n=n[o])}return n}function ji(e,t){return{props:{...Gr},setup(a,{attrs:n,slots:l}){return()=>{const o={default:i=>{const s=Mi(i.row,i.column.property);return l.default?r.h(At,{...a,modelValue:s},{default:l.default}):r.h(At,{...a,modelValue:s})}};return r.h(g.ElTableColumn,{...n},o)}}}}const{componentName:hc,create:_i,scope:gc}=Q("table-mapping-column"),Ur=_i(ji()),Pi=Symbol.for("TableStateKey");function Xr(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],i=0,s=o.indexOf("["),u=s==-1?-1:o.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=o.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=o.substring(0,s);n=n[d][c]}else n=n[c];i++}s=o.indexOf("[",u),u=s==-1?-1:o.indexOf("]",s)}i===0&&(n=n[o])}return n}function Hi(e,t){return{props:{},setup(a,{attrs:n}){const l=r.inject(Pi,{});return()=>{const o=l.currentRow?l.currentRow.value:null,i={default:s=>{const u=Xr(s.row,s.column.property),f=o?Xr(o,s.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},w=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),b={class:{"el-radio":!0,"is-checked":c}};return r.h("label",b,[w])}};return r.h(g.ElTableColumn,{...n},i)}}}}const{componentName:mc,create:zi,scope:pc}=Q("table-radio-column"),Zr=zi(Hi()),Wi={},Ki={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},Yi=[r.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function Gi(e,t){return r.openBlock(),r.createElementBlock("svg",Ki,Yi)}const Ui=Te(Wi,[["render",Gi]]),{componentName:bc,create:Xi,scope:wc}=Q("table-setting"),Zi={tableRef:{type:Object,required:!0},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},Ji=Xi({components:{FoxPopover:g.ElPopover,FoxCheckbox:g.ElCheckbox,FoxCheckboxGroup:g.ElCheckboxGroup,FoxButton:g.ElButton,FoxIcon:g.ElIcon,DragIcon:Ui,Download:Ve.Download,RefreshLeft:Ve.RefreshLeft},props:{...Zi},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:a}){let n=[];const l=r.ref([]),o=r.computed(()=>l.value.filter(C=>C.label===""||C.type?!1:C.fixed===""||C.fixed===!0||C.fixed==="left")),i=r.computed(()=>l.value.filter(C=>C.label===""||C.type?!1:C.fixed==="right")),s=r.computed(()=>l.value.filter(C=>!(C.label===""||C.type||C.fixed!==void 0))),u=r.computed(()=>(o.value.length>0||i.value.length>0)&&s.value.length>0),f=r.computed(()=>o.value.length>0),c=r.computed(()=>i.value.length>0),d=C=>C.length>1,w=C=>{const I=[];l.value=C.map((q,z)=>(!(q.label===""||q.type)&&q.visible!==!1&&I.push(q.prop),{...q,sortIndex:z})),s.value.length+o.value.length+i.value.length===I.length?x.value=!0:I.length>0&&(R.value=!0),E.value=I},b=C=>C?C.type?C.type:C.label?C.prop:"":"",$=(C,I)=>{if(C.length!==I.length)return!1;const H=C.map(q=>b(q));for(let q of I){const z=b(q);if(H.indexOf(z)===-1)return!1}return!0},p=C=>{if(!C){const I=e.tableRef.getColumnSetting(),H=I.srcColumnPropertyList;n=H.map((q,z)=>({...q,sortIndex:z})),C=I.columnPropertyList,C&&C.length>0&&$(H,C)||(C=H)}w(C)},S=()=>{e.tableRef.setColumnSetting(l.value)},m=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),x=r.ref(!1),R=r.ref(!1),B=C=>{const I=[];l.value.forEach(q=>{C&&!(q.label===""||q.type)&&I.push(q.prop),q.visible=C}),x.value=!1,R.value=!1,s.value.length+o.value.length+i.value.length===I.length?x.value=!0:I.length>0&&(R.value=!0),E.value=I,S()},N=()=>{p(n),S()},E=r.ref([]),O=C=>{l.value.forEach(H=>{if(H.label===""||H.type)return;const q=C.indexOf(H.prop)!==-1;H.visible=q}),x.value=!1,R.value=!1;const I=s.value.length+o.value.length+i.value.length;C.length===I?x.value=!0:C.length>0&&(R.value=!0),S()},V=()=>{p()};r.onMounted(()=>{setTimeout(()=>{p()},50)});const A={currentRow:null,index:null,roleType:null},F=C=>C?C.dataset&&C.dataset.role==="row"?C:C.tagName.toLowerCase()!=="body"?(C=C.parentElement,F(C)):null:null;return{attrs:a,leftFixedColumns:o,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:x,isIndeterminate:R,handleCheckAllChange:B,handleReset:N,checkedValue:E,handleCheckChange:O,onShow:V,onDragStart:C=>{const I=C.currentTarget;I&&I.dataset&&(A.roleType=I.dataset.roleType,A.index=I.dataset.index)},onDragEnd:C=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null,A.roleType=null},onDragOver:C=>{const I=C.currentTarget;C.relatedTarget;const H=F(I);if(!H)return;const q=H.dataset&&H.dataset.roleType;A.roleType===q&&(C.preventDefault(),A.currentRow&&A.currentRow!==H&&A.currentRow.classList.remove("is-dragover"),H.classList.add("is-dragover"),A.currentRow=H)},onDragLeave:C=>{C.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},onDrop:C=>{debugger;const I=C.currentTarget,H=F(I);if(!H)return;const q=H.dataset&&H.dataset.roleType;if(A.roleType!==q)return;C.preventDefault();const z=Number(A.index),M=Number(H.dataset.index);if(z!==M){if(z<M){const Y=l.value[z];l.value.splice(z,1),l.value.splice(M,0,Y)}else{const Y=l.value[z];l.value.splice(z,1),l.value.splice(M+1,0,Y)}w(l.value),S()}},toLeftFixed:C=>{const I=l.value[C];I.fixed="left",S()},toRightFixed:C=>{const I=l.value[C];I.fixed="right",S()},toUnFixed:C=>{const I=l.value[C];I.fixed=void 0,S()},checkboxLabelStyle:m}}}),Qi={class:"fox-table-setting"},es={class:"fox-table-setting__header"},ts={class:"fox-table-setting__body"},ns={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},rs={key:0,class:"fox-table-setting__body-title"},as=["data-index","draggable"],ls={class:"tools-item"},os={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},is={key:0,class:"fox-table-setting__body-title"},ss=["data-index","draggable"],us={class:"tools-item"},cs={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},fs={key:0,class:"fox-table-setting__body-title"},ds=["data-index","draggable"],hs={class:"tools-item"};function gs(e,t,a,n,l,o){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),w=r.resolveComponent("Download"),b=r.resolveComponent("fox-checkbox"),$=r.resolveComponent("FoxCheckboxGroup"),p=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(p,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",Qi,[r.createElementVNode("div",es,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=S=>e.isCheckAll=S),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",ts,[r.createVNode($,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=S=>e.checkedValue=S),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",ns,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",rs,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,S=>(r.openBlock(),r.createElementBlock("div",{key:S.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":S.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[2]||(t[2]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[3]||(t[3]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[4]||(t[4]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[5]||(t[5]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:S.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(S.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",ls,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toUnFixed(S.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toRightFixed(S.sortIndex)},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,as))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",os,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",is,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,S=>(r.openBlock(),r.createElementBlock("div",{key:S.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":S.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[7]||(t[7]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[8]||(t[8]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[9]||(t[9]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[10]||(t[10]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:S.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(S.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",us,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toLeftFixed(S.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toRightFixed(S.sortIndex)},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,ss))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",cs,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",fs,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,S=>(r.openBlock(),r.createElementBlock("div",{key:S.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":S.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[12]||(t[12]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[13]||(t[13]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[14]||(t[14]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[15]||(t[15]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(b,{class:"checkbox-item",label:S.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(S.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",hs,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toUnFixed(S.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toLeftFixed(S.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,ds))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const fn=Te(Ji,[["render",gs]]);let ms=class{proxy;constructor(t){this.proxy=t}async load(t,a,n,l,o,i,s){if(Array.isArray(a)){let f=(n-1)*l,c=f+l;c>a.length&&(c=a.length);const d=a.slice(f,c);return{totalSize:a.length,page:d}}if(typeof a=="function")return await Reflect.apply(a,null,[n,l,o,i,s]);const u=Ee(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Ae(o)&&r.isReactive(o)&&(o=r.toRaw(o)),await Reflect.apply(u,null,[a,n,l,o,i,s]))}};function ps(){const e=r.getCurrentInstance();return new ms(e.proxy)}class ys{proxy;constructor(t){this.proxy=t}async load(t){let a=null;const n=Ee(this.proxy,"tableSetting");return typeof n=="function"&&(a=await Reflect.apply(n,null,["load",t])),a}save(t,a){const n=Ee(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,a])}remove(t){const a=Ee(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",t])}}function bs(){const e=r.getCurrentInstance();return new ys(e.proxy)}const ws=Symbol.for("TableStateKey");function Ss(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],i=0,s=o.indexOf("["),u=s==-1?-1:o.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=o.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=o.substring(0,s);n=n[d][c]}else n=n[c];i++}s=o.indexOf("[",u),u=s==-1?-1:o.indexOf("]",s)}i===0&&(n=n[o])}return n}function dn(e,t){return e.filter(n=>{for(let l in t){const o=t[l],i=Ss(n,l);if(o!==i)return!1}return!0})}const Jr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazy:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},Qr={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"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},hn={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}};function $s(e,t,a){return{inheritAttrs:!1,props:{...ie,...pe,...Jr,...Qr,...hn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,l){const{locale:o}=xe.useFoxI18n(t),{emitEvent:i}=ue({componentName:e,validateHandler:{getValue(...j){return R.value}}},n.prop??l.attrs.name),s=e,u=r.computed(()=>({[s]:!0})),f=r.computed(()=>({[`${s}__setting`]:!0})),c=r.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),w=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,j=>{w.value=j});const b=j=>{w.value=j,i("page-index-change",j)},$=r.ref(n.pageSize);r.watch(()=>n.pageSize,j=>{$.value=j});const p=j=>{$.value=j,i("page-size-change",j)},S=r.shallowRef({}),m=r.computed(()=>({...S.value,...n.params??{},...n.baseParams??{}})),x=r.ref(0),R=r.ref(),B=ps();let N=!0;const E=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:te(n.autoLoad),O=Se(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,j=>te(j)),V=async(j,X,Z,ee)=>{try{const ye=await B.load("table",j,X,Z,ee,N,o.value);x.value=ye.totalSize,R.value=ye.page}catch(ye){console.error("[FoxUI] Load Table Data Fail",ye),x.value=0,R.value=[]}N=!1,setTimeout(()=>{i("loaded-data")},250)};r.watch([w,$],([j,X],[Z,ee])=>{X!==ee&&(w.value=1,j=1),V(n.data,j,X,m.value)}),r.watch([()=>n.data,m],([j,X],[Z,ee])=>{E()&&(j!==Z&&(N=!0),!(!Array.isArray(j)&&Be(j,Z)&&Be(X,ee))&&V(j,w.value,$.value,X))},{deep:!0});const A=(j={},X=!1)=>new Promise(Z=>{S.value=r.toRaw(j??{}),r.triggerRef(S),X||(w.value=n.pageIndex??1),r.nextTick(async()=>{await V(n.data,w.value,$.value,m.value),Z()})}),F=()=>{x.value=0,R.value=[]};let W=!1;const _=()=>{W||(W=!0,A())};E()&&!O.value&&A();const v=r.ref(null);r.provide(ws,{currentRow:v});const y=(j,X)=>{v.value=j,i("current-change",j,X)},T=(j,X,Z)=>{i("row-click",j,X,Z),te(n.rowClickSelectable)===!0&&P?.value.toggleRowSelection(j)},k=[],L=(j,X)=>{if(i("expand-change",j,X),te(n.uniqueExpansion))if(Array.isArray(X)&&X.length==0){const Z=k.length;k.splice(0,Z)}else{k.forEach(ee=>{ee!==j&&P?.value.toggleRowExpansion(ee,!1)});const Z=k.length;k.splice(0,Z,j)}},K=l.attrs.id??n.prop??l.attrs.name,C=bs(),I=r.ref([]);let H=[];const q=()=>({srcColumnPropertyList:H.map(X=>({...X})),columnPropertyList:I.value}),z=j=>{I.value=[...j],Y()},M=async()=>{const j=await C.load(K);j&&(I.value=j)},Y=()=>{C.save(K,I.value)},U=()=>{C.remove(K)};M();const D=j=>j?j.type?j.type:j.label?j.prop:"":"",G=r.computed(()=>{if(typeof l.slots.default=="function"){const j=l.slots.default(),X=new Map;if(H=[],j.forEach(Z=>{const ee=Z;if(!ee.props)return;const ye=D(ee.props);X.set(ye,Z);const se={label:"",prop:""};Object.assign(se,ee.props),H.push(se)}),I.value.length===H.length){const Z=[];for(let ee of I.value){const ye=D(ee),se=X.get(ye);if(!se)return j;if(ee.visible===!1)continue;const He=r.cloneVNode(se);He.props.fixed=ee.fixed,Z.push(He)}return Z}return j}return[]}),P=r.ref();return fe({clearSelection:()=>P?.value.clearSelection(),getSelectionRows:()=>P?.value.getSelectionRows(),toggleRowSelection:(j,X)=>{P?.value.toggleRowSelection(j,X)},toggleRowSelectionByProp:(j,X)=>{if(!R.value)return;const Z=dn(R.value,j);Z.length!==0&&Z.forEach(ee=>{P?.value.toggleRowSelection(ee,X)})},toggleAllSelection:()=>{P?.value.toggleAllSelection()},toggleRowExpansion:(j,X)=>{P?.value.toggleRowExpansion(j,X)},toggleRowExpansionByProp:(j,X)=>{if(!R.value)return;const Z=dn(R.value,j);Z.length!==0&&Z.forEach(ee=>{P?.value.toggleRowExpansion(ee,X)})},setCurrentRow:j=>{P?.value.setCurrentRow(j)},setCurrentRowByProp:j=>{if(!R.value)return;const X=dn(R.value,j);X.length!==0&&P?.value.setCurrentRow(X[0])},getCurrentRow:()=>v.value,clearSort:()=>{P?.value.clearSort()},clearFilter:j=>{P?.value.clearFilter(j)},doLayout:()=>{P?.value.doLayout()},sort:(j,X)=>{P?.value.sort(j,X)},scrollTo:(j,X)=>{P?.value.scrollTo(j,X)},setScrollTop:j=>{P?.value.setScrollTop(j)},setScrollLeft:j=>{P?.value.setScrollLeft(j)},loadData:A,clearData:F,getData(){return R.value},getTotalSize(){return x.value},getPageIndex(){return w.value},getPageSize(){return $.value},getColumnSetting:q,setColumnSetting:z,removeColumnSetting:U}),()=>{const X={...l.attrs,onCurrentChange:y,onRowClick:T,onExpandChange:L,data:R.value,ref:P,class:u.value},Z={};l.slots.default&&(Z.default=()=>G.value),l.slots.append&&(Z.append=l.slots.append),l.slots.empty&&(Z.empty=l.slots.empty);const ee=[],ye=r.h(g.ElTable,X,Z);ee.push(ye);let se=null;if(typeof l.slots.pagination=="function")se=l.slots.pagination();else if(n.showPagination){const ft={class:d.value,total:x.value,pageSize:$.value,"onUpdate:pageSize":p,pageSizes:n.pageSizes,currentPage:w.value,"onUpdate:currentPage":b,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};se=r.h(g.ElPagination,ft)}if(n.showSetting){const ft=[];se&&ft.push(se);const tc=r.h(g.ElIcon,{class:f.value},{default:()=>r.h(Ve.Setting)}),nc=An(n,hn),rc=r.h(fn,{...nc,tableRef:{getColumnSetting:q,setColumnSetting:z,removeColumnSetting:U}},{default:()=>tc});ft.push(rc);const ac=r.h("div",{class:c.value},ft);ee.push(ac)}else se&&ee.push(se);const He={default:()=>ee},ct={...me(n,Jr,Qr,hn),prop:`${n.prop}_item`};return ct.contentClass=`${s}__wrap`,ct.errorMarkClass="is-table-error",O.value&&E()&&(ct["appear-listen"]=!0,ct.onAppear=_),r.h(a,ct,He)}}}}const{componentName:vs,create:Ts,scope:xs}=Q("table-item"),ea=Ts($s(vs,xs,de));function Xe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ut(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Cs(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Es=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ee(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ae(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function Ns(){const e=r.getCurrentInstance();return new Es(e.proxy)}function ta(e,t,a){if(t===a)return!0;if(t===null||a===null)return!1;const n=Xe(e,t),l=Xe(e,a);if(n!==l)return!1;const o=ut(e,t),i=ut(e,a);return o===i}function ks(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let o of n){let i=!1;if(a==="text")i=Xe(e,o)===t;else if(a==="item")i=ta(e,o,t);else{let s=ut(e,o);s==null&&(s=Xe(e,o)),i=s===t}if(i){l=o;break}}return l}function Vs(e){return{text:e,value:e}}function Os(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}const na={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"},disabledKey:{type:[String],required:!1,default:"disabled"},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"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Is(e,t,a){return{inheritAttrs:!0,props:{...ie,...pe,...na},emits:["change","update:modelValue"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),u=r.ref(null),f=r.ref(null),c=(O,V,A,F=!0)=>{const W=ks(n,O,V,A);if(W===null){if(f.value===null)return;f.value=null,u.value=null,F&&(s("update:modelValue",null),s("change",null));return}if(!ta(n,W,f.value)){u.value=O;const v=r.toRaw(W);f.value=v;let y=null;n.valueType==="text"?y=Xe(n,v):n.valueType==="item"?y=v:y=ut(n,v),F&&(s("update:modelValue",y),s("change",y))}},d=r.ref([]),w=Se(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,O=>te(O)),b=Ns(),$=async(O,V)=>{if(O){const A=await b.load("radio",O,V);if(A.length>0)if(typeof A[0]=="string"){let _=A.map(v=>Vs(v));d.value=_}else d.value=A}};r.watch([()=>n.source,()=>n.params],async([O,V])=>{$(O,V)},{immediate:!w.value});let p=!1;const S=()=>{p||(p=!0,$(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([O,V])=>{c(V,n.valueType,O,!1)});const m=e,x=r.computed(()=>({[m]:!0,[`is-${n.direction}`]:!0})),R=O=>{c(O,"value",d.value,!0)};let B=ne(n,"hintText"),N=ne(n,"hintVisible");const E=(O,V)=>{const A=[];return O.forEach((F,W)=>{const _=ut(n,F),v=Xe(n,F);let y=Cs(n,F);o.value===!0&&(y=o.value),i.value===!0&&(y=i.value);const T=Os(n,F,W)??{},k=`${_}_${W}`,L={...T,key:k,label:_,disabled:y,size:n.size,border:te(n.border)};n.itemType==="button"?A.push(r.h(g.ElRadioButton,L,{default:()=>[v]})):typeof V=="function"?A.push(r.h(g.ElRadio,L,{default:()=>V(F)})):A.push(r.h(g.ElRadio,L,{default:()=>[v]}))}),A};return()=>{const V={...l.attrs,class:x.value,disabled:o.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:R},A=[],F={};l.slots.options?F.default=l.slots.options:F.default=()=>E(d.value,l.slots.text);const W=r.h(g.ElRadioGroup,V,F);A.push(W);const _={default:()=>A};l.slots.default&&(_.label=l.slots.default),l.slots.fixedTip&&(_.fixedTip=l.slots.fixedTip);const y={...me(n,na),hintText:B.value,hintVisible:N.value,prop:`${n.prop??l.attrs.name}_item`};return w.value&&(y["appear-listen"]=!0,y.onAppear=S),r.h(a,y,_)}}}}const{componentName:Ds,create:Rs,scope:As}=Q("radio-item"),ra=Rs(Is(Ds,As,de));function Ze(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 Bs(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class qs{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ee(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ae(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}}function Fs(){const e=r.getCurrentInstance();return new qs(e.proxy)}function aa(e,t,a){if(t===a)return!0;if(t===null||a===null)return!1;const n=Ze(e,t),l=Ze(e,a);if(n!==l)return!1;const o=Je(e,t),i=Je(e,a);return o===i}function Ls(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let i of n){let s=!1;if(a==="text")s=Ze(e,i)===o;else if(a==="item")s=aa(e,i,o);else{let u=Je(e,i);u==null&&(u=Ze(e,i)),s=u===o}if(s){l.push(i);break}}}),l}function Ms(e){return{text:e,value:e}}function js(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}const la={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"},disabledKey:{type:[String],required:!1,default:"disabled"},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"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function _s(e,t,a){return{inheritAttrs:!1,props:{...ie,...pe,...la},emits:["change","update:modelValue"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),u=r.ref([]),f=r.ref([]),c=(O,V,A,F=!0)=>{const W=Ls(n,O,V,A);if(W===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],F&&(s("update:modelValue",[]),s("change",[]));return}let _=!0;if(W.length!==f.value.length)_=!1;else for(let v=0;v<W.length;v++){const y=W[v],T=f.value[v];if(!aa(n,y,T)){_=!1;break}}if(!_){f.value=W;let v=[],y=[];W.forEach(k=>{v.push(Je(n,k)),n.valueType==="text"?y.push(Ze(n,k)):n.valueType==="item"?y.push(k):y.push(Je(n,k))}),u.value=v;const T=r.toRaw(y);F&&(s("update:modelValue",T),s("change",T))}},d=r.ref([]),w=Se(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,O=>te(O)),b=Fs(),$=async(O,V)=>{if(O){const A=await b.load("checkbox",O,V);if(A.length>0)if(typeof A[0]=="string"){let _=A.map(v=>Ms(v));d.value=_}else d.value=A}};r.watch([()=>n.source,()=>n.params],async([O,V])=>{$(O,V)},{immediate:!w.value});let p=!1;const S=()=>{p||(p=!0,$(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([O,V])=>{c(V,n.valueType,O,!1)});const m=e,x=r.computed(()=>({[m]:!0,[`is-${n.direction}`]:!0})),R=O=>{c(O,"value",d.value,!0)};let B=ne(n,"hintText"),N=ne(n,"hintVisible");const E=(O,V)=>{const A=[];return O.forEach((F,W)=>{const _=Je(n,F),v=Ze(n,F);let y=Bs(n,F);o.value===!0&&(y=o.value),i.value===!0&&(y=i.value);const T=js(n,F,W)??{},k=`${_}_${W}`,L={...T,key:k,class:n.itemClass,label:_,disabled:y,size:n.size,border:te(n.border)};n.itemType==="button"?A.push(r.h(g.ElCheckboxButton,L,{default:()=>[v]})):typeof V=="function"?A.push(r.h(g.ElCheckbox,L,{default:()=>V(F)})):A.push(r.h(g.ElCheckbox,L,{default:()=>[v]}))}),A};return()=>{const V={...l.attrs,class:x.value,disabled:o.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ge(n.max),min:ge(n.min),onChange:R},A=[],F={};l.slots.options?F.default=l.slots.options:F.default=()=>E(d.value,l.slots.text);const W=r.h(g.ElCheckboxGroup,V,F);A.push(W);const _={default:()=>A};l.slots.default&&(_.label=l.slots.default),l.slots.fixedTip&&(_.fixedTip=l.slots.fixedTip);const y={...me(n,la),hintText:B.value,hintVisible:N.value,prop:`${n.prop??l.attrs.name}_item`};return w.value&&(y["appear-listen"]=!0,y.onAppear=S),r.h(a,y,_)}}}}const{componentName:Ps,create:Hs,scope:zs}=Q("checkbox-item"),oa=Hs(_s(Ps,zs,de)),ia={modelValue:{type:[Number,String],required:!1}};function Ws(e,t,a){return{props:{...ie,...pe,...ia},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),u=ne(n,"modelValue",p=>ge(p)),f=e,c=r.computed(()=>({[f]:!0})),d=p=>{s("update:modelValue",p),s("change",p)};let w=ne(n,"hintText"),b=r.ref(!1);const $=r.ref();return fe({}),()=>{const S={...l.attrs,ref:$,class:c.value,readonly:i.value||o.value,modelValue:u.value,onChange:d},m={},x=[],R=r.h(g.ElRate,S,m);x.push(R);const B={default:()=>x};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const E={...me(n,ia),hintText:w.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(a,E,B)}}}}const{componentName:Ks,create:Ys,scope:Gs}=Q("rate-item"),sa=Ys(Ws(Ks,Gs,de)),ua={modelValue:{type:[Boolean,String,Number],required:!1}};function Us(e,t,a){return{props:{...ie,...pe,...ua},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),u=ne(n,"modelValue"),f=e,c=r.computed(()=>({[f]:!0})),d=p=>{s("update:modelValue",p),s("change",p)};let w=ne(n,"hintText"),b=ne(n,"hintVisible");const $=r.ref();return fe({}),()=>{const S={...l.attrs,ref:$,class:c.value,readonly:i.value,disabled:o.value,modelValue:u.value,onChange:d},m={},x=[],R=r.h(g.ElSwitch,S,m);x.push(R);const B={default:()=>x};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const E={...me(n,ua),hintText:w.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(a,E,B)}}}}const{componentName:Xs,create:Zs,scope:Js}=Q("switch-item"),ca=Zs(Us(Xs,Js,de)),fa={modelValue:{type:[String,Number,Boolean],required:!1}};function Qs(e,t,a){return{props:{...ie,...pe,...fa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),s=r.ref(!1),{emitEvent:u}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),f=ne(n,"modelValue"),c=e,d=r.computed(()=>({[c]:!0})),w=N=>{u("update:modelValue",N),u("change",N)};let b=ne(n,"hintText"),$=r.ref(!1);const p=N=>{let O=N.target.value;s.value=!0,le(b.value)||($.value=!0),u("focus",O,N)},S=N=>{setTimeout(()=>{$.value&&($.value=!1),s.value=!1},0);let O=N.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),x.value||u("blur",O,N)},m=()=>{u("clear","")},x=r.ref(!1),R=N=>{x.value=N,u("visible-change",N),N||u("selected")},B=r.ref();return fe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const E={...l.attrs,ref:B,class:d.value,disabled:o.value||i.value,modelValue:f.value,"onUpdate:modelValue":w,onClear:m,onFocus:p,onBlur:S,onVisibleChange:R},O={};l.slots.option&&(O.default=l.slots.option);const V=[],A=r.h(g.ElTreeSelect,E,O);V.push(A);const F={default:()=>V};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);const _={...me(n,fa),hintText:b.value,hintVisible:$.value,prop:`${n.prop}_item`};return r.h(a,_,F)}}}}const{componentName:eu,create:tu,scope:nu}=Q("tree-select-item"),da=tu(Qs(eu,nu,de)),ru=Symbol.for("InnerPageScopeKey"),au=Symbol.for("PageWrapperKey");function lu(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(a,n){r.provide(ru,!0);const l={};r.provide(au,l);const o=u=>{typeof l.beforeClose=="function"&&l.beforeClose()},i=r.ref(!0),s=u=>{i.value=u};return()=>{const f={...n.attrs,title:a.title,draggable:a.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":o},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return r.h(g.ElDialog,f,c)}}}}const{componentName:Sc,create:ou,scope:$c}=Q("dialog-item"),ha=ou(lu());function iu(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(a,{slots:n}){const l=e,o=r.computed(()=>({[l]:!0})),i=r.computed(()=>a.icon?{[`${l}__icon`]:!0,[`${l}__icon-${a.type}`]:!0}:{[`${l}__mark`]:!0,[`${l}__mark-${a.type}`]:!0}),s=r.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),u=r.computed(()=>{const c={[`${l}__text`]:!0,[`${l}__text-${a.type}`]:!0};return a.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=r.computed(()=>a.color?{color:a.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const p={class:i.value,style:s.value};c=r.h(a.icon??"div",p)}const d={class:u.value,style:f.value},w=n.default?n.default():[],b=r.h("div",d,w),$={class:o.value};return a.textPosition==="right"?r.h("div",$,[c,b]):r.h("div",$,[b,c])}}}}const{componentName:su,create:uu,scope:vc}=Q("indicator"),ga=uu(iu(su));function cu(e){const t=document.createRange();return t.setStart(e,0),t.setEnd(e,e.childNodes.length),t.getBoundingClientRect().width}const fu={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1}};function du(e,t){return{props:{...fu},setup(a,n){const l=r.ref(!0),o=r.ref(null),i=r.computed(()=>{const c={[`${e}`]:!0,"is-truncated":a.truncated};return typeof a.class=="string"&&a.class.length>0&&a.class.split(/\s+/).forEach(w=>{c[w]=!0}),a.type&&(c[`${e}__${a.type}`]=!0),a.size&&(c[`${e}__${a.size}`]=!0),c}),s=c=>{if(c&&te(a.showOverflowTooltip)){const d=c.clientWidth,w=cu(c);l.value=w<=d}};let u=null;r.onMounted(()=>{if(!te(a.showOverflowTooltip))return;const c=o.value;s(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{s(c)}),u.observe(c))}),r.onUnmounted(()=>{u?.disconnect()});const f=(c,d)=>{let w=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const b=a.highlightFilter;if(c.indexOf(b)!==-1){const p=c.replace(new RegExp(b,"g"),`<span>${b}</span>`);d.innerHTML=p,d.class["is-highlight"]=!0,w=r.h(a.tag,d)}}else if(typeof a.highlightFilter=="function"){const b=a.highlightFilter(c);b&&(d.innerHTML=b,d.class["is-highlight"]=!0,w=r.h(a.tag,d))}return w};return()=>{const c={},d={...n.attrs,class:{...i.value},ref:o};if(te(a.numberFormat)&&typeof n.slots.default=="function"){const p=n.slots.default();if(Array.isArray(p)&&p.length===1){const S=p[0].type.toString();if(S==="Symbol(Text)"||S==="Symbol(v-txt)"){const m=ge(a.digits),x=ge(a.decimalLength),R=te(a.autoPadding);let B=`${p[0].children}`,N=B.split("").reverse().join("");N=gt(N,x,R,m,a.separator),B=N.split("").reverse().join("");let E=null;a.highlightFilter!==void 0&&(E=f(B,d)),E||(d.innerHTML=B,E=r.h(a.tag,d)),c.default=()=>E}}}else{let p=null;if(a.highlightFilter!==void 0&&typeof n.slots.default=="function"){const S=n.slots.default();if(Array.isArray(S)&&S.length===1){const m=S[0].type.toString();if(m==="Symbol(Text)"||m==="Symbol(v-txt)"){const x=`${S[0].children}`;p=f(x,d),p||(d.innerHTML=x,p=r.h(a.tag,d))}}}p||(p=r.h(a.tag,d,{default:n.slots.default})),c.default=()=>p}const b={disabled:l.value};return c.content=n.slots.default,r.h(g.ElTooltip,b,c)}}}}const{componentName:hu,create:gu,scope:Tc}=Q("text"),ma=gu(du(hu)),mu={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Ve.ArrowUp}};function pu(e,t,a){return{props:{...mu},emits:["click","update:modelValue"],setup(n,{emit:l}){const o=r.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=ne(n,"modelValue"),s=r.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),f=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{l("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const p={class:u.value},S=r.h("span",p,[s.value]);d.push(S)}const w={class:f.value},b=a(n.icon,w);return b&&d.push(b),r.h("div",{class:o.value,onClick:c},d)}}}}const{componentName:yu,create:bu,scope:wu}=Q("more-button"),pa=bu(pu(yu,wu,(e,t)=>(e=e??Ve.ArrowUp,r.h(g.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:Su,create:$u,scope:Cc}=Q("tour"),vu=$u({components:{Close:Ve.Close,ElPopover:g.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const a=Su,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=r.ref({}),o=r.computed(()=>`${a}`),i=r.computed(()=>{const{offset:$,maskWidth:p,maskHeight:S}=e,{width:m,height:x,left:R,top:B}=l.value,N=e.steps[n.active].offset??$,E=[R+m/2,B+x/2],O=Number(p||m),V=Number(S||x);return{width:`${O+ +N.left+N.right}px`,height:`${V+N.top+N.bottom}px`,top:`${E[1]-V/2-+N.top}px`,left:`${E[0]-O/2-+N.left}px`}}),s=$=>{$=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,r.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=$=>$.popoverWidth??e.width,f=$=>$.location??e.location,c=()=>{const $=document.querySelector(`${e.steps[n.active].target}`),p=ln($);l.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},w=()=>{e.closeOnClickOverlay&&d()},b=($,p=0)=>{$&&c(),e.steps,n.active=p,n.showTour=$,n.showPopup=$};return r.onMounted(()=>{b(e.modelValue,e.current)}),r.watch(()=>e.modelValue,$=>{b($)}),{...r.toRefs(n),classes:o,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:w}}}),Tu={key:0,class:"fox-tour__content"},xu={key:0,class:"fox-tour__content-top"},Cu={class:"fox-tour__content-inner"},Eu={class:"fox-tour__content-bottom"},Nu={class:"fox-tour__content-bottom-init"},ku={class:"fox-tour__content-bottom-operate"},Vu={key:1,class:"fox-tour__content fox-tour__content-tile"},Ou={class:"fox-tour__content-inner"};function Iu(e,t,a,n,l,o){const i=r.resolveComponent("Close"),s=r.resolveComponent("fox-button"),u=r.resolveComponent("ElPopover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes)},[r.withDirectives(r.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(f,c)=>(r.openBlock(),r.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:r.withCtx(()=>[e.showTour?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:r.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(r.openBlock(),r.createElementBlock("div",Tu,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",xu,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(i,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",Cu,r.toDisplayString(f.content),1),r.createElementVNode("div",Eu,[r.createElementVNode("div",Nu,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",ku,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.nextStepText),1)]),_:1})):r.createCommentVNode("",!0)])])])])):r.createCommentVNode("",!0),e.type=="tile"?(r.openBlock(),r.createElementBlock("div",Vu,[r.createElementVNode("div",Ou,r.toDisplayString(f.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const ya=Te(vu,[["render",Iu]]);function gn(e){let t=e.offsetHeight;if(t<=0){const a=e.cloneNode(!0),n=e.offsetWidth;a.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),t=a.offsetHeight,document.body.removeChild(a)}return t}const ke=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Fe=e=>e==null,ba=10;function Du(e,t){return e>t&&e>ba?"horizontal":t>e&&t>ba?"vertical":""}function Ru(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY,e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Du(e.offsetX,e.offsetY))},start:i=>{n(),e.startX=i.clientX,e.startY=i.clientY,e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:a,state:e}}function Au(e){e.stopPropagation()}function Bu(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&Au(e)}class qu{startMove;updateMove;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,a){this.startMove=t,this.updateMove=a}open(t){this.el=t;const a=Ru(),n=(l,o,i,s,u)=>{this.updateMove({x:o,y:i})};this.touchstart=l=>{this.moving||(a.start(l),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener("mousemove",this.touchmove),document.addEventListener("mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(a.move(l),a.isHorizontal()&&Bu(l,!0),n(t,a.state.deltaX,a.state.deltaY))},this.touchend=()=>{n(t,a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener("mousemove",this.touchmove),this.touchend&&document.removeEventListener("mouseup",this.touchend),a.reset(),this.moving=!1},t.addEventListener("mousedown",this.touchstart)}close(){const t=this.el;this.touchstart&&t.addEventListener("mousedown",this.touchstart),this.el=null}}function Fu(e,t){return new qu(e,t)}const{componentName:Lu,create:Mu,scope:Ec}=Q("floating-window"),ju=Symbol.for("InnerPageScopeKey"),_u=Symbol.for("PageWrapperKey"),Pu={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},appendToBody:{type:[Boolean],required:!1,default:!0},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"展开"},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[Number,String],requried:!1},collapseWidth:{type:[Number,String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0}},Hu=Mu({components:{FoxIcon:g.ElIcon},props:{...Pu},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const a=Lu,n=r.ref(e.modelValue);r.watch(()=>e.modelValue,k=>{n.value=k});const l=r.ref(e.left),o=r.ref(e.top),i=r.ref(e.right),s=r.ref(e.bottom),u=r.computed(()=>{const k={};return Fe(l.value)||(k.left=ke(l.value)),Fe(o.value)||(k.top=ke(o.value)),Fe(i.value)||(k.right=ke(i.value)),Fe(s.value)||(k.bottom=ke(s.valu)),Fe(e.zIndex)||(k["z-index"]=ke(e.zIndex)),Fe(x.value)||(k.height=x.value),Fe(R.value)||(k.width=R.value),k}),f=r.computed(()=>e.closeIcon??Ve.Close);r.provide(ju,!0);const c={};r.provide(_u,c);const d=()=>{typeof c.beforeClose=="function"?c.beforeClose(()=>{n.value=!1}):n.value=!1},w=r.computed(()=>e.collapseIcon??Ve.ArrowUp),b=r.computed(()=>B.value?e.expandText??"":e.collapseText??""),$=r.computed(()=>({[`${a}__collapse-text`]:!0})),p=r.computed(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!B.value,"is-collapse":B.value})),S=r.ref(),m=r.ref(),x=r.computed(()=>N.value||ke(e.height)||""),R=r.computed(()=>E.value||ke(e.width)||""),B=r.ref(!1),N=r.ref(""),E=r.ref(""),O=r.ref(!1);let V=-1;const A=(k,L=!0)=>{const K=S.value;if(K&&B.value!==k){if(V=V===-1?gn(K):V,O.value=!0,L)if(K.style["will-change"]="height",K.ontransitionend=function(){K.ontransitionend=null,this.style["will-change"]="auto",k||(N.value="",O.value=!1)},k){let C=0;e.collapseHeight?C=e.collapseHeight:m.value&&m.value.classList.contains(`${a}__header`)&&(C=gn(m.value)),N.value=`${V}px`,r.nextTick(()=>{N.value=`${C}px`,E.value=Fe(e.collapseWidth)?"":ke(e.collapseWidth)})}else N.value=`${V}px`,E.value="";else if(k){let C=0;e.collapseHeight?C=e.collapseHeight:m.value&&m.value.classList.contains(`${a}__header`)&&(C=gn(m.value)),N.value=`${C}px`}else O.value=!1,N.value=`${V}px`;B.value=k,t("update:collapse",k)}};r.watch(()=>e.collapse,k=>{A(k)});const F=()=>{W()},W=k=>{k=k??!B.value,A(k)},_={x:0,y:0},T=Fu(k=>{if(!S.value)return;const L=S.value;l.value=L.offsetLeft,o.value=L.offsetTop,_.x=l.value,_.y=o.value,i.value=null,s.value=null},k=>{if(!S.value)return;const L=S.value;l.value=_.x+k.x,o.value=_.y+k.y,i.value=null,s.value=null,L.style.left=ke(l.value),L.style.top=ke(o.value)});return r.onMounted(()=>{e.draggable&&m.value&&S.value&&T.open(m.value)}),r.onBeforeUnmount(()=>{e.draggable&&m.value&&T.close()}),{styles:u,visible:n,closeIcon:f,onClose:d,dialogRef:S,headerRef:m,onClickToggle:F,collapseIcon:w,currentCollapseText:b,collapseTextClasses:$,collapseIconClasses:p}}}),zu={ref:"headerRef",class:"fox-floating-window__header"},Wu={class:"fox-floating-window__title"},Ku={class:"fox-floating-window__tools"},Yu={class:"fox-floating-window__body"};function Gu(e,t,a,n,l,o){const i=r.resolveComponent("FoxIcon");return r.openBlock(),r.createBlock(r.Teleport,{to:"body",disabled:!e.appendToBody},[r.createVNode(r.Transition,{name:"dialog-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"dialogRef",class:"fox-floating-window",style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",zu,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",Wu,r.toDisplayString(e.title),1),r.createElementVNode("div",Ku,[e.showCollapse?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[r.createElementVNode("span",{class:r.normalizeClass(e.collapseTextClasses)},r.toDisplayString(e.currentCollapseText),3),r.createVNode(i,{class:r.normalizeClass(e.collapseIconClasses)},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):r.createCommentVNode("",!0),e.showClose?(r.openBlock(),r.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):r.createCommentVNode("",!0)])])],512),r.createElementVNode("div",Yu,[r.renderSlot(e.$slots,"default")])],4),[[r.vShow,e.visible]])]),_:3})],8,["disabled"])}const wa=Te(Hu,[["render",Gu]]);function Uu(e,t){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:n}){return Hn(a.name,a.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Nc,create:Xu,scope:kc}=Q("domain-provider"),Sa=Xu(Uu()),$a=10;function Zu(e,t){return e>t&&e>$a?"horizontal":t>e&&t>$a?"vertical":""}function Ju(){const e=r.ref(0),t=r.ref(0),a=r.ref(0),n=r.ref(0),l=r.ref(0),o=r.ref(0),i=r.ref(0),s=r.ref(0),u=r.ref(0),f=r.ref(0),c=r.ref(""),d=()=>c.value==="vertical",w=()=>c.value==="horizontal",b=()=>{i.value=0,s.value=0,u.value=0,f.value=0,c.value="",a.value=0};return{move:S=>{const m=S.touches[0];i.value=m.clientX-e.value,s.value=m.clientY-t.value,l.value=m.clientX,o.value=m.clientY,u.value=Math.abs(i.value),f.value=Math.abs(s.value),n.value=Date.now()-a.value,c.value||(c.value=Zu(u.value,f.value))},start:S=>{b(),e.value=S.touches[0].clientX,t.value=S.touches[0].clientY,a.value=Date.now()},reset:b,startX:e,startY:t,startTime:a,duration:n,moveX:l,moveY:o,deltaX:i,deltaY:s,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:w}}const Qu=[Jn,Qn,er,tr,ar,de,cr,fr,Dt,hr,br,Or,Dr,Ar,jr,Pr,Wr,Yr,Ur,Zr,fn,ea,ra,oa,sa,ca,da,ha,At,on,ga,ma,pa,ya,wa,Sa],ec=new cl(Qu,[hl],"4.0.0");Object.defineProperty(h,"FoxAffix",{enumerable:!0,get:()=>g.ElAffix}),Object.defineProperty(h,"FoxAlert",{enumerable:!0,get:()=>g.ElAlert}),Object.defineProperty(h,"FoxAside",{enumerable:!0,get:()=>g.ElAside}),Object.defineProperty(h,"FoxAutoResizer",{enumerable:!0,get:()=>g.ElAutoResizer}),Object.defineProperty(h,"FoxAutocomplete",{enumerable:!0,get:()=>g.ElAutocomplete}),Object.defineProperty(h,"FoxAvatar",{enumerable:!0,get:()=>g.ElAvatar}),Object.defineProperty(h,"FoxBacktop",{enumerable:!0,get:()=>g.ElBacktop}),Object.defineProperty(h,"FoxBadge",{enumerable:!0,get:()=>g.ElBadge}),Object.defineProperty(h,"FoxBreadcrumb",{enumerable:!0,get:()=>g.ElBreadcrumb}),Object.defineProperty(h,"FoxBreadcrumbItem",{enumerable:!0,get:()=>g.ElBreadcrumbItem}),Object.defineProperty(h,"FoxButton",{enumerable:!0,get:()=>g.ElButton}),Object.defineProperty(h,"FoxButtonGroup",{enumerable:!0,get:()=>g.ElButtonGroup}),Object.defineProperty(h,"FoxCalendar",{enumerable:!0,get:()=>g.ElCalendar}),Object.defineProperty(h,"FoxCard",{enumerable:!0,get:()=>g.ElCard}),Object.defineProperty(h,"FoxCarousel",{enumerable:!0,get:()=>g.ElCarousel}),Object.defineProperty(h,"FoxCarouselItem",{enumerable:!0,get:()=>g.ElCarouselItem}),Object.defineProperty(h,"FoxCascader",{enumerable:!0,get:()=>g.ElCascader}),Object.defineProperty(h,"FoxCascaderPanel",{enumerable:!0,get:()=>g.ElCascaderPanel}),Object.defineProperty(h,"FoxCheckTag",{enumerable:!0,get:()=>g.ElCheckTag}),Object.defineProperty(h,"FoxCheckbox",{enumerable:!0,get:()=>g.ElCheckbox}),Object.defineProperty(h,"FoxCheckboxButton",{enumerable:!0,get:()=>g.ElCheckboxButton}),Object.defineProperty(h,"FoxCheckboxGroup",{enumerable:!0,get:()=>g.ElCheckboxGroup}),Object.defineProperty(h,"FoxCol",{enumerable:!0,get:()=>g.ElCol}),Object.defineProperty(h,"FoxCollapse",{enumerable:!0,get:()=>g.ElCollapse}),Object.defineProperty(h,"FoxCollapseItem",{enumerable:!0,get:()=>g.ElCollapseItem}),Object.defineProperty(h,"FoxCollapseTransition",{enumerable:!0,get:()=>g.ElCollapseTransition}),Object.defineProperty(h,"FoxColorPicker",{enumerable:!0,get:()=>g.ElColorPicker}),Object.defineProperty(h,"FoxConfigProvider",{enumerable:!0,get:()=>g.ElConfigProvider}),Object.defineProperty(h,"FoxContainer",{enumerable:!0,get:()=>g.ElContainer}),Object.defineProperty(h,"FoxDatePicker",{enumerable:!0,get:()=>g.ElDatePicker}),Object.defineProperty(h,"FoxDescriptions",{enumerable:!0,get:()=>g.ElDescriptions}),Object.defineProperty(h,"FoxDescriptionsItem",{enumerable:!0,get:()=>g.ElDescriptionsItem}),Object.defineProperty(h,"FoxDialog",{enumerable:!0,get:()=>g.ElDialog}),Object.defineProperty(h,"FoxDivider",{enumerable:!0,get:()=>g.ElDivider}),Object.defineProperty(h,"FoxDrawer",{enumerable:!0,get:()=>g.ElDrawer}),Object.defineProperty(h,"FoxDropdown",{enumerable:!0,get:()=>g.ElDropdown}),Object.defineProperty(h,"FoxDropdownItem",{enumerable:!0,get:()=>g.ElDropdownItem}),Object.defineProperty(h,"FoxDropdownMenu",{enumerable:!0,get:()=>g.ElDropdownMenu}),Object.defineProperty(h,"FoxEmpty",{enumerable:!0,get:()=>g.ElEmpty}),Object.defineProperty(h,"FoxFooter",{enumerable:!0,get:()=>g.ElFooter}),Object.defineProperty(h,"FoxForm",{enumerable:!0,get:()=>g.ElForm}),Object.defineProperty(h,"FoxFormItem",{enumerable:!0,get:()=>g.ElFormItem}),Object.defineProperty(h,"FoxHeader",{enumerable:!0,get:()=>g.ElHeader}),Object.defineProperty(h,"FoxIcon",{enumerable:!0,get:()=>g.ElIcon}),Object.defineProperty(h,"FoxImage",{enumerable:!0,get:()=>g.ElImage}),Object.defineProperty(h,"FoxImageViewer",{enumerable:!0,get:()=>g.ElImageViewer}),Object.defineProperty(h,"FoxInput",{enumerable:!0,get:()=>g.ElInput}),Object.defineProperty(h,"FoxInputNumber",{enumerable:!0,get:()=>g.ElInputNumber}),Object.defineProperty(h,"FoxLink",{enumerable:!0,get:()=>g.ElLink}),Object.defineProperty(h,"FoxMain",{enumerable:!0,get:()=>g.ElMain}),Object.defineProperty(h,"FoxMenu",{enumerable:!0,get:()=>g.ElMenu}),Object.defineProperty(h,"FoxMenuItem",{enumerable:!0,get:()=>g.ElMenuItem}),Object.defineProperty(h,"FoxMenuItemGroup",{enumerable:!0,get:()=>g.ElMenuItemGroup}),Object.defineProperty(h,"FoxOption",{enumerable:!0,get:()=>g.ElOption}),Object.defineProperty(h,"FoxOptionGroup",{enumerable:!0,get:()=>g.ElOptionGroup}),Object.defineProperty(h,"FoxPageHeader",{enumerable:!0,get:()=>g.ElPageHeader}),Object.defineProperty(h,"FoxPagination",{enumerable:!0,get:()=>g.ElPagination}),Object.defineProperty(h,"FoxPopconfirm",{enumerable:!0,get:()=>g.ElPopconfirm}),Object.defineProperty(h,"FoxPopover",{enumerable:!0,get:()=>g.ElPopover}),Object.defineProperty(h,"FoxPopper",{enumerable:!0,get:()=>g.ElPopper}),Object.defineProperty(h,"FoxProgress",{enumerable:!0,get:()=>g.ElProgress}),Object.defineProperty(h,"FoxRadio",{enumerable:!0,get:()=>g.ElRadio}),Object.defineProperty(h,"FoxRadioButton",{enumerable:!0,get:()=>g.ElRadioButton}),Object.defineProperty(h,"FoxRadioGroup",{enumerable:!0,get:()=>g.ElRadioGroup}),Object.defineProperty(h,"FoxRate",{enumerable:!0,get:()=>g.ElRate}),Object.defineProperty(h,"FoxResult",{enumerable:!0,get:()=>g.ElResult}),Object.defineProperty(h,"FoxRow",{enumerable:!0,get:()=>g.ElRow}),Object.defineProperty(h,"FoxScrollbar",{enumerable:!0,get:()=>g.ElScrollbar}),Object.defineProperty(h,"FoxSelect",{enumerable:!0,get:()=>g.ElSelect}),Object.defineProperty(h,"FoxSelectV2",{enumerable:!0,get:()=>g.ElSelectV2}),Object.defineProperty(h,"FoxSkeleton",{enumerable:!0,get:()=>g.ElSkeleton}),Object.defineProperty(h,"FoxSkeletonItem",{enumerable:!0,get:()=>g.ElSkeletonItem}),Object.defineProperty(h,"FoxSlider",{enumerable:!0,get:()=>g.ElSlider}),Object.defineProperty(h,"FoxSpace",{enumerable:!0,get:()=>g.ElSpace}),Object.defineProperty(h,"FoxStep",{enumerable:!0,get:()=>g.ElStep}),Object.defineProperty(h,"FoxSteps",{enumerable:!0,get:()=>g.ElSteps}),Object.defineProperty(h,"FoxSubMenu",{enumerable:!0,get:()=>g.ElSubMenu}),Object.defineProperty(h,"FoxSwitch",{enumerable:!0,get:()=>g.ElSwitch}),Object.defineProperty(h,"FoxTabPane",{enumerable:!0,get:()=>g.ElTabPane}),Object.defineProperty(h,"FoxTable",{enumerable:!0,get:()=>g.ElTable}),Object.defineProperty(h,"FoxTableColumn",{enumerable:!0,get:()=>g.ElTableColumn}),Object.defineProperty(h,"FoxTableV2",{enumerable:!0,get:()=>g.ElTableV2}),Object.defineProperty(h,"FoxTabs",{enumerable:!0,get:()=>g.ElTabs}),Object.defineProperty(h,"FoxTag",{enumerable:!0,get:()=>g.ElTag}),Object.defineProperty(h,"FoxTimePicker",{enumerable:!0,get:()=>g.ElTimePicker}),Object.defineProperty(h,"FoxTimeSelect",{enumerable:!0,get:()=>g.ElTimeSelect}),Object.defineProperty(h,"FoxTimeline",{enumerable:!0,get:()=>g.ElTimeline}),Object.defineProperty(h,"FoxTimelineItem",{enumerable:!0,get:()=>g.ElTimelineItem}),Object.defineProperty(h,"FoxTooltip",{enumerable:!0,get:()=>g.ElTooltip}),Object.defineProperty(h,"FoxTransfer",{enumerable:!0,get:()=>g.ElTransfer}),Object.defineProperty(h,"FoxTree",{enumerable:!0,get:()=>g.ElTree}),Object.defineProperty(h,"FoxTreeSelect",{enumerable:!0,get:()=>g.ElTreeSelect}),Object.defineProperty(h,"FoxTreeV2",{enumerable:!0,get:()=>g.ElTreeV2}),Object.defineProperty(h,"FoxUpload",{enumerable:!0,get:()=>g.ElUpload}),h.AutocompleteItem=Yr,h.Broadcast=Gt,h.BroadcastKey=oe,h.CascaderItem=Wr,h.CheckboxItem=oa,h.Content=tr,h.DataItemsKey=ze,h.DateItem=Or,h.DateUtils=st,h.DialogItem=ha,h.Domain=St,h.DomainKey=$e,h.DomainProvider=Sa,h.FloatingWindow=wa,h.FooterBar=er,h.Group=ar,h.HeaderBar=Qn,h.HintText=Dt,h.Indicator=ga,h.InputItem=hr,h.InputNumberItem=Pr,h.Item=de,h.Mapping=At,h.MoneyItem=jr,h.MoreButton=pa,h.Page=Jn,h.Price=on,h.PriorityPolicy=ve,h.RadioItem=ra,h.RateItem=sa,h.RowItem=fr,h.SelectItem=br,h.SlotItem=cr,h.SwitchItem=ca,h.TableItem=ea,h.TableMappingColumn=Ur,h.TableRadioColumn=Zr,h.TableSetting=fn,h.Text=ma,h.TimeItem=Dr,h.TimeSelectItem=Ar,h.Tour=ya,h.TreeSelectItem=da,h.UniqueID=sr,h.ValidateSchema=jn,h.ValidateSchemaKey=Oe,h.cancelRaf=Ca,h.clearNonNumber=_a,h.clone=Kt,h.compareTo=Ht,h.createBroadcast=yt,h.createValidateSchema=wt,h.debounce=lt,h.debounceRef=el,h.decimalLength=Dn,h.default=ec,h.defineBroadcast=Wa,h.defineConfigDomain=Hn,h.defineDataItem=Wn,h.defineDomain=Zt,h.defineItem=ue,h.definePageState=Kn,h.deleteGlobalValidator=Ua,h.disabledProperty=we,h.divide=Pt,h.excludeProps=me,h.extend=Me,h.floatData=za,h.getGlobalValidateCheckEvents=Fn,h.getGlobalValidateResetEvents=Mn,h.getPageContentAreaHeight=vt,h.getPageContentAreaWidth=Tt,h.getPageFooterAreaHeight=it,h.getPageHeaderAreaHeight=ot,h.getRootDomain=We,h.hasSymbol=xn,h.includeProps=An,h.indexOf=Pa,h.installRules=zn,h.integerLength=In,h.isArray=Va,h.isArrayLike=Nn,h.isBrowser=tt,h.isDate=Da,h.isESModule=qa,h.isEmptyString=le,h.isEqual=Be,h.isFunction=zt,h.isHidden=En,h.isInnerPage=rl,h.isMap=Oa,h.isNumberString=On,h.isObject=Ae,h.isPlainObject=Wt,h.isPromise=Ba,h.isRegExp=Vn,h.isSet=Ia,h.isString=Ra,h.isSubPage=al,h.isSymbol=Aa,h.isWindow=Cn,h.lastIndexOf=Ha,h.makeArray=ja,h.merge=kn,h.multiply=Sn,h.negate=$n,h.nextTick=La,h.numberFormat=gt,h.objectToString=Tn,h.once=tl,h.property=Se,h.raf=ka,h.readonlyProperty=be,h.setGlobalValidateCheckEvents=Xa,h.setGlobalValidateHandler=Ya,h.setGlobalValidateMessages=Ja,h.setGlobalValidateResetEvents=Za,h.setGlobalValidator=Ga,h.throttle=Pn,h.toBoolean=te,h.toNumber=ge,h.toPadding=Ce,h.toPx=re,h.toPxDesc=ce,h.toTypeString=mt,h.toValue=ne,h.tryTimes=Ut,h.typeOf=pt,h.unNumberFormat=vn,h.updatePageState=Jt,h.useBroadcast=rt,h.useDomain=Ie,h.useExpose=fe,h.useInnerSize=nn,h.usePageState=$t,h.usePosition=lr,h.useRect=ln,h.useSize=tn,h.useTouch=Ju,h.valueLength=nt,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|